ChangeLog 308 KB
Newer Older
Stefan Monnier's avatar
Stefan Monnier committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
2003-05-05  Stefan Monnier  <monnier@cs.yale.edu>

	* fileio.c (Qwrite_region_annotate_functions): New var.
	(build_annotations): Use it to process the global part of the hook.
	(syms_of_fileio): Init and staticpro it.

	* keyboard.c (safe_run_hooks_error): Display a message instead of
	silently ignoring the error.

2003-05-03  Stefan Monnier  <monnier@cs.yale.edu>

	* keyboard.c (input_available_signal): Mark static.
	(menu_bar_items): Use map_keymap.
	(menu_bar_one_keymap): Remove.
	(menu_bar_item): Adjust arglist (for use in map_keymap).
	Properly hide a second binding when not both are keymaps.

	* xmenu.c (struct skp): New struct, to pass args through map_keymap.
	(single_keymap_panes): Use it and map_keymap.
	(single_menu_item): Use skp as well.

	* keymap.h (map_keymap_function_t): New type.
	(map_keymap): Declare.

	* keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
	(map_keymap_call, Fmap_keymap): New functions.
	(syms_of_keymap): Defsubr map-keymap.

29 30 31 32 33 34
2003-05-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (create_dialog, make_widget_for_menu_item)
	(make_menu_item, create_menus, xg_update_menu_item): Don't call
	..._with_mnemonic functions for menu items.

Stefan Monnier's avatar
Stefan Monnier committed
35 36 37 38
2003-05-01  Stefan Monnier  <monnier@cs.yale.edu>

	* eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.

39 40 41 42 43 44 45 46 47 48 49 50 51
2003-04-30  Stefan Monnier  <monnier@cs.yale.edu>

	* eval.c (unbind_to): Don't handle symbol = Qnil any more.

	* lisp.h (CHECK): Wrap args in parenthesis.
	(specbind): Fix doc: symbol = Qnil is not supported any more.

	* bytecode.c (Fbyte_code) <unwind-protect>:
	Use Fprogn rather than 0 and Qnil.

	* keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
	`double', and `triple' modifiers as well.

52 53 54 55 56 57 58 59 60 61 62 63
2003-04-30  Richard M. Stallman  <rms@gnu.org>

	* keyboard.c (echo_char): Don't clear out a dash that follows a space.

	* alloc.c (abort_on_gc): New variable.
	(Fgarbage_collect): Abort if abort_on_gc is set.

	* lisp.h (abort_on_gc): Add decl.

	* eval.c (Fsignal): Clear abort_on_gc.

	* editfns.c (Fformat): Set abort_on_gc during first scan of format.
64
	Reinit FORMAT_START and END before second scan.
65 66 67 68 69 70 71

	* xdisp.c (move_it_vertically_backward): Do the final big else
	even if nlines is 0.

	* xdisp.c (redisplay_internal): Finish the per-frame loop
	even if redisplay is suspended by input.

72 73 74 75 76
2003-04-24  Andrew Choi  <akochoi@shaw.ca>

	* macterm.c (x_list_fonts): Return all fonts that match if
	maxnames = -1.

77 78 79 80
2003-04-25  Kenichi Handa  <handa@m17n.org>

	* syntax.c (skip_chars): Fix previous change.

81 82 83 84 85
2003-04-24  Kenichi Handa  <handa@m17n.org>

	* syntax.c (skip_chars): Make the code faster by using the common
	technique of *p, *stop, and *endp.

86 87 88
2003-04-23  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xdisp.c (update_tool_bar): BLOCK_INPUT before calling
89
	tool_bar_items so GTK tool bar expose callback does not access items
90 91
	being updated.

92 93 94 95
2003-04-19  Stefan Monnier  <monnier@cs.yale.edu>

	* eval.c (Fapply): Undo last change and add a comment about why.

96 97 98 99 100
2003-04-18  Miles Bader  <miles@gnu.org>

	* data.c (Faset): Calculate nbytes earlier, to satisfy the now
	pickier PARSE_MULTIBYTE_SEQ.

101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
2003-04-17  Stefan Monnier  <monnier@cs.yale.edu>

	* eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
	Use XCDR, XCAR, CONSP.
	(Fdefmacro): Fix docstring.  Use XCAR, XCDR.
	(Fapply): Remove unnecessary GCPRO.

	* doc.c (Fsubstitute_command_keys): Remove spurious casts.

	* charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.

	* buffer.h: Don't hardcode BEG==1.

	* abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.

116 117 118 119 120 121 122
2003-04-16  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (try_window, try_window_reusing_current_matrix):
	When at end of window, set window_end_pos to Z-ZV.

	* buffer.c (Foverlay_recenter): Doc fix.

123 124 125 126
2003-04-14  Stefan Monnier  <monnier@cs.yale.edu>

	* dispnew.c (Fsit_For): Support XEmacs-style arg list.

127 128 129 130 131
2003-04-14  Andrew Choi  <akochoi@shaw.ca>

	* macterm.c (mac_check_for_quit_char): Don't check more often than
	once a second.

132 133 134 135 136 137 138 139 140 141 142
2003-04-11  Stefan Monnier  <monnier@cs.yale.edu>

	* keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
	specially, so that they can't hide an implicit switch-frame event.
	(make_lispy_event): Handle SELECT_WINDOW_EVENT.
	(head_table): Use switch-frame as event_kind for select-window.
	(keys_of_keyboard): Don't bind [select-window] in special-event-map.

	* editfns.c (Fformat): Lisp_Object/int mixup.
	(format2): Remove unused var numargs.

Kenichi Handa's avatar
Kenichi Handa committed
143
2003-04-11  Kenichi Handa  <handa@m17n.org>
Kenichi Handa's avatar
Kenichi Handa committed
144

145
	* fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
Kenichi Handa's avatar
Kenichi Handa committed
146 147 148 149 150 151
	(Qafter_insert_file_set_coding): New variable.
	(syms_of_fileio): Initialize and staticpro it.  Delete declaration
	for after-insert-file-adjust-coding-function.
	(Finsert_file_contents): Call Qafter_insert_file_set_coding
	instead of Vafter_insert_file_adjust_coding_function.

Kenichi Handa's avatar
Kenichi Handa committed
152 153 154 155 156 157 158 159
2003-04-11  Kenichi Handa  <handa@m17n.org>

	* lisp.h (temp_echo_area_glyphs): Adjust prototype.

	* minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
	string.  Callers changed.

2003-04-10  Kenichi Handa  <handa@m17n.org>
Kenichi Handa's avatar
Kenichi Handa committed
160

161
	* fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
Kenichi Handa's avatar
Kenichi Handa committed
162
	(syms_of_fileio): Declare it as a lisp variable.
163 164
	(Finsert_file_contents):
	Call Vafter_insert_file_adjust_coding_function before calling
Kenichi Handa's avatar
Kenichi Handa committed
165 166
	decode-format.

167 168 169 170 171 172 173 174
2003-04-09  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
	get GtkAdjustment as widget now is a GtkRange.

	* gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
	GtkRange to avoid memory leak.

Kenichi Handa's avatar
Kenichi Handa committed
175
2003-04-09  Kenichi Handa  <handa@m17n.org>
Kenichi Handa's avatar
Kenichi Handa committed
176

Kenichi Handa's avatar
Kenichi Handa committed
177 178 179
	* xfaces.c (Vface_font_rescale_alist): New variable.
	(struct font_name): New member rescale_ratio.
	(font_rescale_ratio): New function.
180
	(split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
Kenichi Handa's avatar
Kenichi Handa committed
181 182 183 184
	(better_font_p): On comparing point sized, pay attention to
	recale_ratio member of fonts.
	(build_scalable_font_name): Reflect font->rescale_ratio in the
	font name.
185
	(syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
Kenichi Handa's avatar
Kenichi Handa committed
186

Kenichi Handa's avatar
Kenichi Handa committed
187 188 189
	* lread.c (read1): Before calling index, check if the 2nd
	arguemnt is in ASCII range.

190 191
2003-04-08  Richard M. Stallman  <rms@gnu.org>

192 193 194 195 196
	* fileio.c (Ffile_symlink_p): Doc fix.

	* editfns.c (Fformat): Translate positions of text properties
	in the format string to apply them to the result.

197 198 199 200
	* fileio.c (Finsert_file_contents): Doc fix.
	(syms_of_fileio) <after-insert-file-functions>: Doc fix.

2003-04-08  Ivan Zakharyaschev  <imz@altlinux.org>  (tiny change)
201

202 203
	* lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.

204
2003-04-08  Steven Tamm  <steventamm@mac.com>
205

206 207 208
	* mac.c (init_mac_osx_environment): Switch libexec and bin so
	that self-contained application finds libexec files.

Kenichi Handa's avatar
Kenichi Handa committed
209
2003-04-08  Kenichi Handa  <handa@m17n.org>
Kenichi Handa's avatar
Kenichi Handa committed
210

211 212
	* coding.c (code_convert_region_unwind):
	Set Vlast_coding_system_used to the argument.
Kenichi Handa's avatar
Kenichi Handa committed
213 214 215 216
	(code_convert_region): If post-read-conversion function changed
	the value of last-coding-sytem, keep the new value in
	coding->symbol so that it won't be overridden.
	(run_pre_post_conversion_on_str): Likewise.
Kenichi Handa's avatar
Kenichi Handa committed
217 218 219
	(coding_system_accept_latin_extra_p): New function.
	(find_safe_codings): Pay attention to characters registered in
	latin-extra-code-table.
Kenichi Handa's avatar
Kenichi Handa committed
220

221 222 223 224
2003-04-07  Thien-Thi Nguyen  <ttn@gnu.org>

	* Makefile.in (md5.o): Add missing dependency info.

225 226 227 228 229 230 231 232 233 234 235 236 237
2003-04-06  Richard M. Stallman  <rms@gnu.org>

	* xselect.c (x_handle_selection_request): Move UNGCPRO to very end.

	* marker.c (verify_bytepos): New function.

	* intervals.c (set_intervals_multibyte_1): When becoming
	multibyte, adjust right and left child sizes to a whole set of
	characters.  If an interval gets zero total-length, delete it.
	If an interval consists of just its children, delete one of them.

	* intervals.h (CHECK_TOTAL_LENGTH): New macro.
	* intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
238

239 240 241 242
	* alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
	All calls deleted.
	(lisp_malloc): Do the work here directly.

243 244 245 246 247 248
2003-04-06  Gareth Jones  <emacs@referential.org.uk>  (tiny change)

	* fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
	char tables.

2003-04-04  Kenichi Handa  <handa@m17n.org>
249 250 251 252

	* editfns.c (Fformat): Use a copy of FORMAT string so that we can
	destructively change "%S" to "%s".

253 254 255 256 257
2003-04-03  Miles Bader  <miles@gnu.org>

	* xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
	always set.

Dave Love's avatar
Dave Love committed
258 259 260 261
2003-04-01  Dave Love  <fx@gnu.org>

	* xfns.c (xpm_lookup_color): Grok "opaque".

262 263 264 265 266 267 268 269 270
2003-03-31  Andrew Choi  <akochoi@shaw.ca>

	* frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
	parent window ID.

	* macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.

	* macterm.h (struct mac_output): Define x_pixels_diff and
	y_pixels_diff.
271

Juanma Barranquero's avatar
Juanma Barranquero committed
272 273 274 275 276
2003-03-31  Juanma Barranquero  <lektu@terra.es>

	* makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
	blockinput.h and files included from it.

Kim F. Storm's avatar
Kim F. Storm committed
277 278 279 280 281
2003-03-31  Kim F. Storm  <storm@cua.dk>

	The following changes consolidates the common code related to
	frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
	files into frame.c.
Juanma Barranquero's avatar
Juanma Barranquero committed
282

Kim F. Storm's avatar
Kim F. Storm committed
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304
	* frame.c: Include blockinput.h.
	(Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
	(Qx_resource_name, Qface_set_after_frame_default): Define vars here.
	(Qauto_raise, Qauto_lower, ...): Define all frame parameter
	related vars here.
	(struct frame_parm_table, frame_parms): New table for describing
	frame parameters and their associated Q-variable.
	The order of the parameters corresponds to the sequence of the
	frame_parm_handlers table in redisplay_interface.
	(x_fullscreen_move, x_set_frame_parameters)
	(x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
	(x_set_screen_gamma, x_set_font, x_set_fringe_width)
	(x_set_border_width, x_set_internal_border_width, x_set_visibility)
	(x_set_autoraise, x_set_autolower, x_set_unsplittable)
	(x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
	Generic functions for processing of frame parameters.
	(validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
	(display_x_get_resource, x_get_resource_string): Functions for
	generic access to X resources.
	(x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
	(x_default_parameter, Fx_parse_geometry): Functions for generic
	access to frame parameters.
305 306
	(x_figure_window_size): Generic calculation of frame size.
	Fixed to add space needed for tool bar.  Also setup size_hint_flags.
Kim F. Storm's avatar
Kim F. Storm committed
307 308 309
	(syms_of_frame): Intern and staticpro frame parameter variables.
	Defvar_lisp Vx_resource_class and Vx_resource_name here.
	Defsubr Sx_get_resource and Sx_parse_geometry.
Juanma Barranquero's avatar
Juanma Barranquero committed
310

Kim F. Storm's avatar
Kim F. Storm committed
311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363
	* frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
	parameter related vars defined in frame.c.
	(EMACS_CLASS): Define here.
	(enum FULLSCREEN_*): Define here.
	(x_set_scroll_bar_default_width, x_wm_set_icon_position)
	(x_set_offset, x_new_font, x_new_fontset): Add prototypes.
	(x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
	(x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
	(x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
	(x_set_visibility, x_set_autoraise, x_set_autolower)
	(x_set_unsplittable, x_set_vertical_scroll_bars)
	(x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
	(x_figure_window_size): Add prototypes.

	* dispextern.h (frame_parm_handler): New typedef.
	(struct redisplay_interface): New member frame_parm_handlers.
	(enum resource_types): Move declaration here.
	(x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
	(x_default_parameter): Add prototypes.

	* window.c: Remove extern decl for frame parameter vars.
	(change_window_heights): New generic function;
	replaces x_change_window_heights.  All users changed.

	* window.h (change_window_heights): Add prototype.

	* xfaces.c: Remove extern decl for frame parameter vars.

	* xterm.h (EMACS_CLASS): Remove.  Use generic define.
	(struct w32_display_info): Fix type of xrdb member.
	(enum FULLSCREEN_*): Remove.
	Remove prototypes for generic functions (in frame.h).

	* xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
	parameters now defined in frame.h and frame.c.
	(Vx_resource_name): Remove. Use generic var.
	(enum x_frame_parms): Remove (bogus, unused enum).
	(check_x_display_info): Make non-static (for frame.c).
	(struct x_frame_parm_table, x_frame_parms): Remove.
	(init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
	(x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
	(x_set_border_width, x_set_internal_border_width, x_set_visibility)
	(x_change_window_heights, x_set_autoraise, x_set_autolower)
	(x_set_vertical_scroll_bars, x_set_scroll_bar_width)
	(validate_x_resource_name, Fx_get_resource, x_get_resource_string)
	(x_default_parameter, Fx_parse_geometry, x_figure_window_size):
	Remove.  Use generic functions instead.
	(enum resource_types): Remove.
	(x_set_scroll_bar_default_width): New global function (for frame.c).
	(Fx_create_frame): Depend on x_figure_window_size to add space for
	toolbar and setup size_hint_flags.
	(x_frame_parm_handlers): New table for redisplay_interface.
	(syms_of_xfns): Don't intern/staticpro removed vars.
Juanma Barranquero's avatar
Juanma Barranquero committed
364

Kim F. Storm's avatar
Kim F. Storm committed
365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
	* xterm.c: Remove unnecessary extern declarations.
	(x_fullscreen_adjust): Remove. Use generic instead.
	(x_redisplay_interface): Add x_frame_parm_handlers member.

	* w32gui.h (XrmDatabase): New (dummy) typedef.

	* w32term.h (EMACS_CLASS): Remove.  Use generic define.
	(struct w32_display_info): Fix type of xrdb member.
	(enum FULLSCREEN_*): Remove.
	(x_fullscreen_adjust): Remove prototype.

	* w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
	parameters now defined in frame.h and frame.c.
	(Vx_resource_name): Remove. Use generic var.
	(enum x_frame_parms): Remove (bogus, unused enum).
	(check_x_display_info): Make non-static (for frame.c).
	(struct x_frame_parm_table, x_frame_parms): Remove.
	(init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
	(x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
	(x_set_border_width, x_set_internal_border_width, x_set_visibility)
	(x_change_window_heights, x_set_autoraise, x_set_autolower)
	(x_set_vertical_scroll_bars, x_set_scroll_bar_width)
	(validate_x_resource_name, Fx_get_resource, x_get_resource_string)
	(x_default_parameter, Fx_parse_geometry, x_figure_window_size):
	Remove.  Use generic functions instead.
	(enum resource_types): Remove.
	(x_set_scroll_bar_default_width): New global function (for frame.c).
	(Fx_create_frame): Depend on x_figure_window_size to add space for
	toolbar and setup size_hint_flags.
	(w32_frame_parm_handlers): New table for redisplay_interface.
	(syms_of_w32fns): Don't intern/staticpro removed vars.
Juanma Barranquero's avatar
Juanma Barranquero committed
396

Kim F. Storm's avatar
Kim F. Storm committed
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425
	* w32term.c: Remove unnecessary extern declarations.
	(x_fullscreen_adjust): Remove. Use generic instead.
	(x_redisplay_interface): Add w32_frame_parm_handlers member.

	* w32reg.c (x_get_string_resource): Use XrmDatabase.

	* macgui.h (XrmDatabase): New (dummy) typedef.

	* macterm.h (EMACS_CLASS): Remove.
	(struct mac_display_info): Add xrdb member.
	(struct mac_output): Add want_fullscreen member.

	* macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
	parameters now defined in frame.h and frame.c.
	(Vx_resource_name): Remove. Use generic var.
	(check_x_display_info): Make non-static (for frame.c).
	(struct x_frame_parm_table, x_frame_parms): Remove.
	(init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
	(x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
	(x_set_border_width, x_set_internal_border_width, x_set_visibility)
	(x_change_window_heights, x_set_autoraise, x_set_autolower)
	(x_set_vertical_scroll_bars, x_set_scroll_bar_width)
	(validate_x_resource_name, Fx_get_resource, x_get_resource_string)
	(x_default_parameter, Fx_parse_geometry, x_figure_window_size):
	Remove.  Use generic functions instead.
	(enum resource_types): Remove.
	(x_set_scroll_bar_default_width): New global function (for frame.c).
	(mac_frame_parm_handlers): New table for redisplay_interface.
	(syms_of_macfns): Don't intern/staticpro removed vars.
Juanma Barranquero's avatar
Juanma Barranquero committed
426

Kim F. Storm's avatar
Kim F. Storm committed
427 428 429
	* macterm.c: Remove unnecessary extern declarations.
	(x_redisplay_interface): Add mac_frame_parm_handlers member.

Kim F. Storm's avatar
Kim F. Storm committed
430 431 432
	* Makefile.in (frame.o): Add dependency on blockinput.h and files
	included from it (atimer.h and systime.h).

433 434 435 436 437 438 439 440
2003-03-30  Andreas Schwab  <schwab@suse.de>

	* xdisp.c (x_insert_glyphs): Fix swapped width and height
	parameters for shift_glyphs_for_insert.

	* macterm.c (x_redisplay_interface): Add missing entry for
	draw_vertical_window_border.

441 442 443 444 445 446 447 448
2003-03-29  Kai Gro,A_(Bjohann  <kai.grossjohann@gmx.net>

	* fileio.c (Fexpand_file_name): In the no-handler case, after
	expanding, look again for a handler and invoke it.  This is needed
	for filenames like "/foo/../user@host:/bar/../baz" -- the first
	expansion produces "/user@host:/bar/../baz" which needs to be
	expanded again for the finame result "/user@host:/baz".

449 450 451 452 453
2003-03-28  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
	of area to be redrawn for better performance.

454 455 456 457 458 459 460 461 462 463 464 465 466 467
2003-03-28  Stefan Monnier  <monnier@cs.yale.edu>

	* xterm.c (take_vertical_position_into_account): Remove.
	(xt_action_hook): Call set_vertical_scroll_bar if needed.
	(XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
	(xm_scroll_callback, x_create_toolkit_scroll_bar)
	(x_set_toolkit_scroll_bar_thumb): Simplify.
	(x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
	(XTread_socket): Remove unused var.
	(x_make_frame_invisible): Replace goto with else.

	* xdisp.c (set_vertical_scroll_bar): New fun.
	(redisplay_window): Use it.

468 469 470 471 472 473 474
2003-03-26  Richard M. Stallman  <rms@gnu.org>

	* xdisp.c (update_tool_bar): Recompute tool bar if
	update_mode_lines is set.  Set w->update_mode_line
	only if the tool bar contents actually change.
	(update_menu_bar): Undo previous change.

475 476
2003-03-26  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

477 478 479 480 481 482 483
	* gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
	(xg_frame_set_char_size): Calculate scroll bar width before frame
	width.  Call SET_FRAME_GARBAGED and cancel_mouse_face.
	(xg_separator_p): Check for all documented separator types.
	(xg_update_scrollbar_pos): Variable gheight not needed, use height.
	(update_frame_tool_bar): Don't call gdk_window_process_all_updates.

484 485 486
	* xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
	so tool bar gets updated.

487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
2003-03-26  Stefan Monnier  <monnier@cs.yale.edu>

	* data.c (store_symval_forwarding): Re-instate part of the code
	that was deleted with too much enthusiasm.

2003-03-25  Stefan Monnier  <monnier@cs.yale.edu>

	* data.c (store_symval_forwarding): Delete special read-only
	hack for type == -1, since we now use ->constant instead.
	(Fkill_local_variable): Don't use XBUFFER if it can be nil.

	* buffer.c (overlays_in): Declare static.
	(syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
	`constant' field rather than the variable's `type' field.

502 503 504 505 506 507 508 509 510 511 512 513
2003-03-24  Andrew Choi  <akochoi@shaw.ca>

	* config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.

	* dispextern.h [HAVE_CARBON]: Include Carbon.h.

	* fns.c [MAC_OSX]: Do not redefine vector.

	* keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.

	* macgui.h: Remove definition of No_Cursor.

514
	* macterm.h: Include Carbon.h.  Replace (struct Cursor *) by Cursor.
515 516 517 518 519 520

	* xdisp.c: Define No_Cursor.
	(x_write_glyphs, notice_overwritten_cursor)
	(draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
	(note_mouse_highlight): Remove Mac-specific code.
	(note_mouse_highlight): Use bcmp instead of == to compare Cursors.
521

522 523 524 525 526
2003-03-24  John Paul Wallington  <jpw@gnu.org>

	* xdisp.c (redisplay_window): If mini window's buffer is not
	empty, then redisplay it like other windows.

Kim F. Storm's avatar
Kim F. Storm committed
527 528 529 530
2003-03-23  Kim F. Storm  <storm@cua.dk>

	* w32term.c (w32_draw_window_cursor): Fix last change.

531 532
2003-03-23  Kenichi Handa  <handa@m17n.org>

Kim F. Storm's avatar
Kim F. Storm committed
533 534
	* alloc.c (make_string_from_bytes, make_specified_string):
	Add `const' for the arg CONTENTS.
535 536 537 538

	* lisp.h (make_string_from_bytes, make_specified_string):
	Prototypes adjusted.

539 540
2003-03-23  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

Kim F. Storm's avatar
Kim F. Storm committed
541
	* xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
542

543 544 545 546 547 548 549 550 551 552
	* gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
	(XG_SB_RANGE): New define.

	* gtkutil.c (xg_fixed_handle_expose): New function.
	(xg_create_frame_widgets): Call xg_fixed_handle_expose for
	expose events.
	(xg_update_scrollbar_pos): Take two more arguments, left and width
	of scroll bar including borders.
	Clear left and right part outside scroll bar separately as some
	themes have bars that are not an even number of pixels.
553
	Don't set reallocate_redraws, don't call
554 555 556 557
	gdk_window_process_all_updates.
	(xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
	so no need to change it.  Calculate size and value with XG_SB_RANGE.

558 559
	* xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
	Pass left and width of scroll bar including borders to
560 561
	xg_update_scrollbar_pos.

562 563 564 565
2003-03-22  Thien-Thi Nguyen  <ttn@gnu.org>

	* Makefile.in: Make sure space precedes end-of-line backslashes.

Kim F. Storm's avatar
Kim F. Storm committed
566 567 568 569 570 571 572 573 574
2003-03-22  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
	Add generic versions here.  Remove system specific versions
	defined elsewhere.

	* dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
	Add prototypes.

Kim F. Storm's avatar
Kim F. Storm committed
575 576
	* xterm.h (STORE_NATIVE_RECT): New macro.

Kim F. Storm's avatar
Kim F. Storm committed
577 578
2003-03-21  Kim F. Storm  <storm@cua.dk>

Stefan Monnier's avatar
Stefan Monnier committed
579 580
	* xdisp.c (get_glyph_string_clip_rect):
	Use FRAME_INTERNAL_BORDER_WIDTH.
Kim F. Storm's avatar
Kim F. Storm committed
581 582 583 584

	* dispextern.h (struct redisplay_interface): Add active_p
	argument to draw_window_cursor member.  All uses changed.

Kim F. Storm's avatar
Kim F. Storm committed
585 586 587 588 589 590 591
2003-03-21  Kim F. Storm  <storm@cua.dk>

	The following changes consolidate code related to writing and
	inserting glyphs, exposing frame, the tool bar, the mouse face,
	the output cursor, and help echo from xterm.c, w32term.c and
	macterm.c into xdisp.c.  It also generalizes the use of the
	window_part enum instead of using numeric values throughout.
592

Kim F. Storm's avatar
Kim F. Storm committed
593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612
	* xdisp.c: Consolidate gui-independent code here.
	Include keymap.h.
	(Qhelp_echo): Import.
	(mouse_autoselect_window, x_stretch_cursor_p): Declare here.
	(help_echo_string, help_echo_window, help_echo_object)
	(previous_help_echo_string, help_echo_pos): Declare here.
	(output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
	(estimate_mode_line_height): Define here.  Handle windowing
	systems directly (without using estimate_mode_line_height_hook).
	(x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
	(update_window_cursor, update_cursor_in_window_tree)
	(fast_find_position, fast_find_string_pos)
	(note_mode_line_highlight, note_mode_line_or_margin_highlight)
	(expose_area, expose_line, expose_overlaps, expose_window)
	(expose_window_tree, phys_cursor_in_rect_p): New generic versions;
	declared static as they are only used locally in xdisp.c.
	(draw_glyphs): Rename from x_draw_glyphs and make static.
	(tool_bar_item_info, notice_overwritten_cursor): Make static.
	(frame_to_window_pixel_xy, get_glyph_string_clip_rect)
	(set_output_cursor, x_cursor_to, handle_tool_bar_click)
613
	(x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
Kim F. Storm's avatar
Kim F. Storm committed
614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668
	(x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
	(display_and_set_cursor, x_update_cursor, x_clear_cursor)
	(show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
	(note_mouse_highlight, x_clear_window_mouse_face)
	(cancel_mouse_face, x_draw_vertical_border, expose_frame)
	(x_intersect_rectangles): New generic functions for use by xdisp.c
	and GUI front-ends.
	(syms_of_xdisp): Initialize and staticpro help_echo* variables.
	Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.

	* dispextern.h (Display_Info): Generic typedef for *_display_info.
	(NativeRectangle): Generic typedef for rectangle type.
	(enum window_part): Move here from window.c.
	(struct redisplay_interface): New members flush_display_optional,
	define_frame_cursor, clear_frame_area, draw_window_cursor,
	draw_vertical_window_border, shift_glyphs_for_insert.
	Rename member clear_mouse_face to clear_window_mouse_face.
	(estimate_mode_line_height_hook): Remove hook.
	(auto_raise_tool_bar_buttons_p): Don't declare extern.
	(tool_bar_item_info): Remove prototype.
	(help_echo_string, help_echo_window, help_echo_object)
	(previous_help_echo_string, help_echo_pos)
	(last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
	(x_stretch_cursor_p, output_cursor): Declare extern.
	(x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
	(x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
	(x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
	(display_and_set_cursor, set_output_cursor, x_cursor_to)
	(x_update_cursor, x_clear_cursor, x_draw_vertical_border)
	(frame_to_window_pixel_xy, get_glyph_string_clip_rect)
	(note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
	(handle_tool_bar_click, clear_mouse_face, show_mouse_face)
	(cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
	Add prototypes.
	(mode_line_string, marginal_area_string): Fix prototypes.

	* window.c (enum window_part): Move to dispextern.h.
	(coordinates_in_window): Use enum window_part member names
	instead of numbers to describe return value.
	(struct check_window_data): Change part member to window_part.
	(check_window_containing): Return window_part unaltered.
	(window_from_coordinates): Change part arg from int to enum
	window_part.  Allow part arg to be null.  All users changed.

	* window.h (window_from_coordinates): Fix prototype.

	* term.c (estimate_mode_line_height): Move to xdisp.c.

	* keyboard.c (make_lispy_event): Use enum window_part.

	* dispnew.c (mode_line_string, marginal_area_string): Use enum
	window_part instead of int in arg list.  Users changed.

	* xterm.h (No_Cursor): Declare as None for X.
	(struct mac_output): Replace member cross_cursor by hand_cursor.
669

Kim F. Storm's avatar
Kim F. Storm committed
670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695
	* xterm.c: Remove consolidated defines and code.
	(BETWEEN): Remove unused macro.
	(x_draw_vertical_window_border, x_shift_glyphs_for_insert)
	(x_define_frame_cursor, x_clear_frame_area)
	(x_draw_window_cursor): New X-specific functions for RIF.
	(x_redisplay_interface): Add new members.

	* xfns.c: Setup and use hand_cursor instead of cross_cursor.

	* w32term.h (struct w32_output): Remove cross_cursor member.

	* w32term.c: Remove consolidated defines and code.
	(BETWEEN): Remove unused macro.
	(w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
	(w32_define_frame_cursor, w32_clear_frame_area)
	(w32_draw_window_cursor): New W32-specific functions for RIF.
	(w32_redisplay_interface): Add new members.

	* w32gui.h (No_Cursor):  Define as 0 for W32.
	(XRectangle): Add X compatible rectangle type.
	(NativeRectangle): Declare as RECT for W32.
	(CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.

	* w32fns.c: Remove setup of cross_cursor (already has hand_cursor).

	* w32console.c: Remove consolidated defines and code.
696

Kim F. Storm's avatar
Kim F. Storm committed
697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717
	* msdos.h (Display_Info): Add generic typedef.

	* msdos.c: Remove consolidated defines and code.
	(IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.

	* macterm.h (struct mac_output): Replace member cross_cursor by
	hand_cursor.
	(activate_scroll_bars, deactivate_scroll_bars): Add prototypes.

	* macterm.c: Remove consolidated defines and code.
	(BETWEEN): Remove unused macro.
	(mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
	(mac_define_frame_cursor, mac_clear_frame_area)
	(mac_draw_window_cursor): New Mac-specific functions for RIF.
	(x_redisplay_interface): Add new members.

	* macgui.h (No_Cursor): Define as 0 for Mac.
	(XRectangle): Add X compatible rectangle type.
	(NativeRectangle): Declare as Rect for Mac.
	(CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.

Kim F. Storm's avatar
Kim F. Storm committed
718 719
	* macfns.c (x_set_mouse_color): Setup hand_cursor.
	(x_set_cursor_color): Use x_display_and_set_cursor.
Kim F. Storm's avatar
Kim F. Storm committed
720

Juanma Barranquero's avatar
Juanma Barranquero committed
721
	* Makefile.in (xdisp.o): Add dependency on blockinput.h and files
Kim F. Storm's avatar
Kim F. Storm committed
722 723 724 725
	included from it.  Add dependency on keymap.h.

	* makefile.w32-in (xdisp.o): Add dependency on keymap.h.

Kenichi Handa's avatar
Kenichi Handa committed
726
2003-03-21  Kenichi Handa  <handa@m17n.org>
727 728 729

	* fileio.c (Fexpand_file_name): Fix previous change.

Kenichi Handa's avatar
Kenichi Handa committed
730
2003-03-19  Kenichi Handa  <handa@m17n.org>
Kenichi Handa's avatar
Kenichi Handa committed
731 732 733 734 735 736 737 738 739 740 741 742

	* fileio.c (Ffile_name_directory): Reconstruct file name by
	make_specified_string.
	(Ffile_name_nondirectory, Ffile_name_as_directory)
	(Fdirectory_file_name, Fexpand_file_name)
	(Fsubstitute_in_file_name): Likewise.
	(Fread_file_name): Compare decoded homedir with DIR and
	DEFAULT_FILENAME.

	* alloc.c (make_specified_string): If NCHARS is negative, count
	the number of characters.

743 744
2003-03-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

745 746 747
	* gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
	all widgets.

748 749
	* gtkutil.h: Removed xg_ignore_next_thumb.

750
2003-03-18  Kenichi Handa  <handa@m17n.org>
Kenichi Handa's avatar
Kenichi Handa committed
751 752 753 754 755 756

	* coding.c (Vchar_coding_system_table): Remove this variable.
	(Vcoding_system_safe_chars): New variable.
	(intersection): Remove this function.
	(find_safe_codings): Don't use Vchar_coding_system_table, but try
	all codings in SAFE_CODINGS.
Stefan Monnier's avatar
Stefan Monnier committed
757
	(Ffind_coding_systems_region_internal): Adjust for the change of
Kenichi Handa's avatar
Kenichi Handa committed
758 759 760 761 762 763
	find_safe_codings.  Get generic coding systems from
	Vcoding_system_safe_chars.
	(Fdefine_coding_system_internal): New function.
	(syms_of_coding): Defsubr Sdefine_coding_system_internal.
	Initialize and staticpro Vcoding_system_safe_chars.

764 765
2003-03-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

766 767 768
	* gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
	equal old values before updating.

769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790
	* xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.

	* gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.

2003-03-17  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
	(xg_resize_widgets): Don't call foreach(handle_fixed_child).
	(xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
	(scroll_bar_button_cb): Set bar->dragging to NIL on button release.
	(xg_create_scroll_bar): Pass bar to button event callback.
	(xg_find_top_left_in_fixed): New function.
	(xg_update_scrollbar_pos): Don't call gdk_window_clear on
	whole scroll bar area.  Get old position with
	xg_find_top_left_in_fixed, calculate and only clear needed areas.
	(xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
	dragging is in progress.  Calculate whole as for Motif.
	Remove code that saved last values.  Call gtk_range functions to
	set scroll bar sizes.

	* gtkutil.h: Removed xg_ignore_next_thumb.

791 792 793 794 795
2003-03-17  Juanma Barranquero  <lektu@terra.es>

	* makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
	and files included from it.

Stefan Monnier's avatar
Stefan Monnier committed
796 797 798 799 800 801
2003-03-18  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (accessible_keymaps_1): Break cycles but without preventing
	multiple occurrences of the same keymap under different prefixes.
	(Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.

802 803 804 805 806 807 808 809 810 811
2003-03-16  Jason Rumney  <jasonr@gnu.org>

	* w32gui.h: Use HDC for Display.

	* w32term.c (w32_encode_char): Prevent double-byte chars from
	crashing Emacs.

	* w32fns.c (jpeg_load, png_load, slurp_file): Read image files
	as binary.

812 813 814 815
2003-03-16  Juanma Barranquero  <lektu@terra.es>

	* xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.

816 817 818 819 820
2003-03-16  Kim F. Storm  <storm@cua.dk>

	The following changes consolidate some of the gui-independent
	parts of the processing and drawing of "glyph strings" from
	xterm.c, w32term.c, and macterm.c into xdisp.c.
821

822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858
	* dispextern.h (struct glyph): Reduce face_id member from 22 to
	21 bits (this reduces number of faces from 4M to 2M).
	Replace W32 specific w32_font_type member (2 bits) by generic
	font_type member (3 bits) for portability.
	(FONT_TYPE_UNKNOWN): New define, default for font_type member.
	(enum draw_glyphs_face): Define here.
	(struct glyph_string): Define here.  Merge W32 and X versions.
	(struct redisplay_interface): New members per_char_metric,
	encode_char, compute_glyph_string_overhangs, draw_glyph_string.
	(VCENTER_BASELINE_OFFSET): Define here.
	(dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
	(x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.

	* xdisp.c: Consolidate gui-independent "glyph string" code here.
	(dump_glyph_string): Moved here.
	(init_glyph_string, append_glyph_string_lists, append_glyph_string)
	(prepend_glyph_string_lists, get_glyph_face_and_encoding)
	(fill_composite_glyph_string, fill_glyph_string)
	(fill_image_glyph_string, fill_stretch_glyph_string)
	(left_overwritten, left_overwriting, right_overwritten)
	(right_overwriting, get_char_face_and_encoding)
	(set_glyph_string_background_width, compute_overhangs_and_x)
	(append_glyph, append_composite_glyph, produce_image_glyph)
	(take_vertical_position_into_account, append_stretch_glyph)
	(produce_stretch_glyph): New generic functions (based on X version).
	Call platform specific functions through rif.
	(INIT_GLYPH_STRING): New macro, hides W32 details.
	(BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
	(BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
	(BUILD_GLYPH_STRINGS): Generic macros (based on X version).
	(x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
	(notice_overwritten_cursor):
	Generic functions exported to platform modules.  Users changed.

	* xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
	(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
	(STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
Kim F. Storm's avatar
Kim F. Storm committed
859
	New macros for consolidated code.
860

861 862 863 864 865 866 867 868 869 870
	* xterm.c: Remove consolidated defines and code.
	(x_per_char_metric, x_encode_char)
	(x_compute_glyph_string_overhangs): Adapt to RIF requirements.
	(x_redisplay_interface): Add new members.

	* w32gui.h (Display): Add dummy typedef for consolidation.
	(XChar2b): Define alias for wchar_t for consolidation.
	(STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.

	* w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
871
	(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
872 873
	New macros for consolidation.

Kim F. Storm's avatar
Kim F. Storm committed
874
	* w32term.c: Remove consolidated defines and code.
875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892
	(BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
	to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
	(w32_per_char_metric): Change font_type arg to int for RIF.
	(w32_encode_char): Return int according to RIF requirements.
	(w32_compute_glyph_string_overhangs): Adapt to RIF.
	(w32_get_glyph_overhangs): New function for RIF.  Uses generic
	x_get_glyph_overhangs.
	(w32_redisplay_interface): Add new members.

	* macgui.h (XChar2b): Move typedef here for consolidation.
	(STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.

	* macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
	(FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
	consolidation.

	* macterm.c: Remove consolidated defines and code.
	(mac_per_char_metric): New function for RIF.
Stefan Monnier's avatar
Stefan Monnier committed
893
	(mac_encode_char): Adapt to new RIF requirements.
894 895 896
	(mac_compute_glyph_string_overhangs): Adapt for RIF.
	(x_redisplay_interface): Add new members.

Stefan Monnier's avatar
Stefan Monnier committed
897 898 899 900 901 902
2003-03-15  Stefan Monnier  <monnier@cs.yale.edu>

	* keymap.c (Vmenu_events): New var.
	(syms_of_keymap): Initialize it.
	(where_is_internal): Check more carefully what is a menu event.

903 904 905 906
2003-03-14  Richard M. Stallman  <rms@gnu.org>

	* lread.c (read1): After #!, exit loop on eof.

Jan Djärv's avatar
Jan Djärv committed
907 908
2003-03-14  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

909 910
	* gtkutil.h: Add declaration for xg_frame_cleared.

911 912
	* xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.

Jan Djärv's avatar
Jan Djärv committed
913 914 915 916 917 918 919 920 921 922 923
	* gtkutil.c (struct xg_last_sb_pos): New structure.
	(handle_fixed_child): New function.
	(xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
	and force a redraw on them.
	(xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
	(xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
	so we can avoid unneeded redraws.
	(xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
	and force a redraw on the scroll bar.
	(xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
	if xg_last_sb_pos shows the positions are up to date.
924
	(xg_frame_cleared): New function.
Jan Djärv's avatar
Jan Djärv committed
925

Kenichi Handa's avatar
Kenichi Handa committed
926 927 928 929 930
2003-03-13  Kenichi Handa  <handa@m17n.org>

	* coding.c (Fdetect_coding_region): Fix docstring.
	(Fdetect_coding_string): Fix docstring.

Andreas Schwab's avatar
.  
Andreas Schwab committed
931 932
2003-03-13  Andreas Schwab  <schwab@suse.de>

Andreas Schwab's avatar
.  
Andreas Schwab committed
933 934
	* gtkutil.c: Add prototype for create_menus.

Andreas Schwab's avatar
.  
Andreas Schwab committed
935 936 937 938 939
	* data.c (long_to_cons): Fix type of top.

	* xselect.c (selection_data_to_lisp_data): Use int instead of
	long for an integer of size 4.

Andreas Schwab's avatar
.  
Andreas Schwab committed
940
	* gtkutil.c (xg_update_frame_menubar): Add missing return value.
Andreas Schwab's avatar
.  
Andreas Schwab committed
941
	(xg_tool_bar_help_callback): Likewise.
Andreas Schwab's avatar
.  
Andreas Schwab committed
942

943 944 945 946
2003-03-12  Andreas Schwab  <schwab@suse.de>

	* xterm.c (x_term_init) [USE_GTK]: Fix typo.

Kim F. Storm's avatar
Kim F. Storm committed
947 948
2003-03-12  Kim F. Storm  <storm@cua.dk>

949
	The following changes consolidate the fringe handling from
Kim F. Storm's avatar
Kim F. Storm committed
950
	xterm.c, w32term.c, and macterm.c into xdisp.c.
Stefan Monnier's avatar
Stefan Monnier committed
951

Kim F. Storm's avatar
Kim F. Storm committed
952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975
	* xdisp.c: Consolidate fringe handling code here.
	(left_bits, right_bits, continued_bits, continuation_bits)
	(ov_bits, zv_bits): Define fringe bitmaps.
	(fringe_bitmaps): New array holding fringe bitmaps.
	(draw_fringe_bitmap): Draw a specific bitmap; call display
	specific drawing routine via rif->draw_fringe_bitmap.
	(draw_row_fringe_bitmaps): Generic replacement for
	x_draw_row_fringe_bitmaps; all callers changed.
	(compute_fringe_widths): Generic replacement for
	x_compute_fringe_widths; all callers changed.

	* dispextern.h (enum fringe_bitmap_type): Define here.
	(struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
	(fringe_bitmaps): Declare extern.
	(struct redisplay_interface): New member draw_fringe_bitmap.
	(draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.

	* xterm.c: Remove generic fringe code.
	(x_draw_fringe_bitmap): Only perform actual fringe drawing.
	(x_redisplay_interface): Add x_draw_fringe_bitmap member.

	* w32term.c: Remove generic fringe code.
	(w32_draw_fringe_bitmap): Only perform actual fringe drawing.
	(w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
Stefan Monnier's avatar
Stefan Monnier committed
976

Kim F. Storm's avatar
Kim F. Storm committed
977 978 979 980
	* macterm.c: Remove generic fringe code.
	(x_draw_fringe_bitmap): Only perform actual fringe drawing.
	(x_redisplay_interface): Add x_draw_fringe_bitmap member.

Stefan Monnier's avatar
Stefan Monnier committed
981 982 983 984
2003-03-11  Stefan Monnier  <monnier@cs.yale.edu>

	* print.c (Fprin1_to_string): Return unibyte string if possible.

David Kastrup's avatar
David Kastrup committed
985 986 987 988 989
2003-03-09  David Kastrup  <dak@gnu.org>

	* process.c (read_process_output): We have allocated enough space
	for readmax and carryover, so actually use the alloted space.

990 991 992 993 994 995 996 997 998 999 1000
2003-03-09  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* keyboard.c (make_lispy_event): Extend mouse_syms if needed for
	toolkit scrollbar click.

	* xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
	for USE_GTK.
	(x_scroll_bar_handle_click): Use this function for toolkit scrollbars
	also.
	(handle_one_xevent): ButtonPress/Release:  If event is for a toolkit
	scrollbar and control is pressed, call x_scroll_bar_handle_click.
Stefan Monnier's avatar
Stefan Monnier committed
1001

1002 1003 1004 1005 1006 1007 1008 1009 1010 1011
	* gtkutil.h: Declare xg_get_scroll_id_for_window.

	* gtkutil.c (xg_get_scroll_id_for_window): New function.
	(xg_tool_bar_item_expose_callback): New function.
	(xg_tool_bar_expose_callback): Call update_frame_tool_bar.
	(xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
	on the tool bar widget.
	(update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
	to expose on the tool bar item widgets.

1012 1013
2003-03-08  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

1014
	* gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
Stefan Monnier's avatar
Stefan Monnier committed
1015
	struct image* when deciding to update (struct image* may have been
1016 1017
	deleted from the image cache).

1018 1019 1020
	* xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
	the event isn't for a frame (i.e. for dialogs).

Kenichi Handa's avatar
Kenichi Handa committed
1021
2003-03-07  Kenichi Handa  <handa@m17n.org>
Kenichi Handa's avatar
Kenichi Handa committed
1022 1023 1024 1025

	* coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
	composition components reaches the limit, terminate composing.
	(COMPOSITION_OK): New macro.
Stefan Monnier's avatar
Stefan Monnier committed
1026
	(detect_coding_iso2022): Use it if an escape sequence for
Kenichi Handa's avatar
Kenichi Handa committed
1027 1028 1029 1030
	composition is found.
	(coding_restore_composition): Adjust the number of composition
	components if it is not sane.

1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046
2003-03-06  Juanma Barranquero  <lektu@terra.es>

	* w32term.h (struct w32_display_info): Add xrdb member to support
	passing resources via -xrm on Windows.

	* w32term.c (w32_make_rdb): New function.
	(w32_term_init): Use it to initialize xrdb member of w32_display_info
	struct.  Delete leftover code.

	* w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
	for resources passed on the command line.

	* w32reg.c (w32_get_rdb_resource): New function.
	(x_get_string_resource): Use it, so resources passed with -xrm
	supercede the ones in the registry.

1047 1048 1049 1050 1051
2003-03-04  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (x_detect_focus_change): Call x_any_window_to_frame
	instead of x_top_window_to_frame.

1052 1053 1054 1055 1056
2003-03-03  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
	when restarting Emacs.

1057 1058 1059 1060 1061 1062 1063
2003-03-03  Richard M. Stallman  <rms@gnu.org>

	* buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
	to run kill-buffer-query-functions.
	(Qkill_buffer_query_functions): New var.
	(syms_of_buffer): Init and staticpro it.

1064 1065 1066 1067
2003-03-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.

1068 1069 1070 1071 1072 1073 1074 1075
2003-02-25  Kim F. Storm  <storm@cua.dk>

	* xdisp.c (redisplay_window): Fix infinite loop in redisplay.
	If centering point failed to make whole line visible and vscroll
	is non-zero, disable vscroll and try centering point again.

	* lread.c (read1): Accept `single space' syntax like (? x).

1076 1077 1078 1079 1080
2003-02-25  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* keyboard.c (cancel_hourglass_unwind): Surround with
	#ifdef HAVE_X_WINDOWS

Kenichi Handa's avatar
Kenichi Handa committed
1081 1082 1083 1084 1085
2003-02-25  Kenichi Handa  <handa@m17n.org>

	* buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
	process only when "subprocesses" is defined.

Stefan Monnier's avatar
Stefan Monnier committed
1086 1087 1088 1089
2003-02-24  Stefan Monnier  <monnier@cs.yale.edu>

	* syntax.c (back_comment): Only check nestedness of 2nd char if needed.

1090 1091
2003-02-24  Juanma Barranquero  <lektu@terra.es>

1092 1093 1094
	* callint.c (fix_command): Declare as static void and move before
	Fcall_interactively.

1095 1096 1097
	* xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
	(syms_of_xdisp): Don't initialize Qwhen.

1098 1099 1100 1101 1102
2003-02-23  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* keyboard.c (cancel_hourglass_unwind): New function.
	(command_loop_1): Cancel hourglass with unwind-protect.

1103 1104 1105 1106 1107 1108 1109
2003-02-23  Richard M. Stallman  <rms@gnu.org>

	* callint.c (fix_command): New subroutine, from Fcall_interactively.
	Detect (when ... (region-beginning)) etc.
	(Fcall_interactively): Call fix_command.
	(Qif, Qwhen): New variables.
	(syms_of_callint): Init and staticpro them.
1110

1111 1112
	* regex.c (print_partial_compiled_pattern): Output to stderr.

1113 1114 1115 1116 1117 1118
2003-02-23  Kai Gro,A_(Bjohann  <kai.grossjohann@uni-duisburg.de>

	* dired.c (directory_files_internal): Don't expand directory.
	(Fdirectory_files, Fdirectory_files_and_attributes): Do it here
	instead.  From Lars Hansen <larsh@math.ku.dk>.

1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133
2003-02-22  Stefan Monnier  <monnier@cs.yale.edu>

	* fns.c (string_to_multibyte): Remove unused var i.
	(Flanginfo): Fix int/Lisp_Object mixup.
	(void_call2): New fun.
	(Fmap_char_table): Use it in place of call2.

	* xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.

	* macros.c (Fstart_kbd_macro): Remove redundant assignment.

	* keymap.c (copy_keymap_1): Make it static.

	* alloc.c (Fgarbage_collect): Don't use XSETFLOAT.

1134 1135 1136 1137
2003-02-22  David Ponce  <david@dponce.com>

	* lread.c (Fload): Don't check STRING_MULTIBYTE.

1138 1139 1140 1141 1142 1143
2003-02-21  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* process.h: Removed subtty field from struct Lisp_Process.

	* process.c (create_process): Remove setting of subtty.
	(emacs_get_tty_pgrp): New function.
1144 1145
	(Fprocess_running_child_p, process_send_signal):
	Call emacs_get_tty_pgrp instead of ioctl.
1146 1147
	(process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.

Kai Großjohann's avatar
Kai Großjohann committed
1148 1149 1150 1151
2003-02-21  Kai Gro,A_(Bjohann  <kai.grossjohann@uni-duisburg.de>

	* keymap.c (Fdefine_key): Doc fix.

Juanma Barranquero's avatar
Juanma Barranquero committed
1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163
2003-02-21  Juanma Barranquero  <lektu@terra.es>

	Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.

	* s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
	POLLING_PROBLEM_IN_SELECT.

	* s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
	Delete #undef of POLLING_PROBLEM_IN_SELECT.

	* s/hpux10-20.h: New file.

1164 1165
	* process.c (wait_reading_process_input):
	Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
Juanma Barranquero's avatar
Juanma Barranquero committed
1166

1167 1168
2003-02-20  Kenichi Handa  <handa@m17n.org>

Kenichi Handa's avatar
Kenichi Handa committed
1169 1170 1171
	* fontset.c (check_fontset_name): If NAME is nil, return the
	default fontset.
	(override_font_info): New function.
1172
	(Fset_fontset_font): Document that NAME nil means the default fontset.
Kenichi Handa's avatar
Kenichi Handa committed
1173 1174 1175 1176 1177
	(Ffontset_info): If FONTSET is not the default fontset, merge
	FONTSET onto the copy of the default fontset, and work on that
	copy.  Document that NAME nil means the default fontset.
	(Ffontset_font): Document that NAME nil means the default fontset.

1178 1179 1180
	* process.c (setup_process_coding_systems): If the process's
	in/out descriptor is -1, do nothing.

Andreas Schwab's avatar
.  
Andreas Schwab committed
1181 1182
2003-02-19  Andreas Schwab  <schwab@suse.de>

1183 1184
	* lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
	Add prototypes.
Andreas Schwab's avatar
.  
Andreas Schwab committed
1185

1186 1187 1188 1189 1190
2003-02-19  Kenichi Handa  <handa@m17n.org>

	* xfaces.c (try_alternative_families): Try all scalable fonts if
	Vscalable_fonts_allowed is not Qt.

1191 1192 1193 1194
2003-02-19  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.

1195 1196 1197 1198 1199 1200
2003-02-18  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (x_list_fonts): If maxnames is less than 0, get all font
	names.

	* xfaces.c (x_face_list_fonts): Allocate struct font_name here.
1201
	(sorted_font_list): Move allocation of struct font_name to
1202 1203 1204 1205
	x_face_list_fonts.
	(Fx_font_family_list): Set font-list-limit to -1 to get all font names.
	(Fx_list_fonts): Set maxnames to -1 to get all font names.

Kim F. Storm's avatar
Kim F. Storm committed
1206 1207
2003-02-18  Kim F. Storm  <storm@cua.dk>

1208 1209
	* lread.c (read1): Fix last change.
	"`" is not always special.  Allow "?" after a character constant.
Kim F. Storm's avatar
Kim F. Storm committed
1210

1211 1212 1213 1214
2003-02-18  Andrew Choi  <akochoi@shaw.ca>

	* unexmacosx.c (copy_data_segment): Also copy __cfstring section.

Andreas Schwab's avatar
.  
Andreas Schwab committed
1215 1216 1217 1218 1219 1220 1221 1222
2003-02-18  Andreas Schwab  <schwab@suse.de>

	* window.c (window_scroll_pixel_based): Move outside a
	multi-glyph character before setting new window start.

	* xdisp.c (in_display_vector_p): New function.
	* dispextern.h (in_display_vector_p): Declare.

Kim F. Storm's avatar
Kim F. Storm committed
1223 1224 1225 1226 1227 1228 1229 1230
2003-02-18  Kim F. Storm  <storm@cua.dk>

	* lread.c (read1): Fix and relax read syntax.
	Recognize "[", ";", "#", and "?" after a dotted-pair dot.
	Only recognize "," after dotted-pair dot if inside backquote.
	Never include "`" or "," (inside backquote) in a symbol.
	Allow dotted-pair dot after a character constant.
	Allow "`" and "," (inside backquote) after a character constant.
Juanma Barranquero's avatar
Juanma Barranquero committed
1231

1232 1233 1234 1235 1236 1237 1238 1239
2003-02-17  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (xg_tool_bar_expose_callback): New function.
	(xg_create_tool_bar): Force style of tool bar to be horizontal with
	icons.	Set name of tool bar to emacs-toolbar.
	(update_frame_tool_bar): Connect expose event to
	xg_tool_bar_expose_callback.

1240 1241 1242 1243 1244 1245 1246 1247 1248
2003-02-17  Richard M. Stallman  <rms@gnu.org>

	* keyboard.c (this_command_key_count_reset): New variable.
	Initiatize to 0 where this_command_key_count is set.
	(read_char): Save and restore this_command_key_count_reset
	around input method code.
	(read_char): If this_command_key_count_reset, echo reread commands.
	(Freset_this_command_lengths): Set this_command_key_count_reset to 1.

1249 1250 1251 1252
2003-02-17  Kenichi Handa  <handa@m17n.org>

	* fns.c (string_to_multibyte): Always return a multibyte string.

1253 1254
2003-02-16  Jason Rumney  <jasonr@gnu.org>

1255 1256
	* w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
	Negative max_fonts parameter means list all.
1257

Dave Love's avatar
Dave Love committed
1258 1259 1260 1261
2003-02-14  Dave Love  <fx@gnu.org>

	* fns.c (Flanginfo): Doc fix.

1262 1263
2003-02-13  Kim F. Storm  <storm@cua.dk>

1264 1265 1266 1267 1268
	* lread.c (read_escape): Interpret \s as a SPACE character, except
	for \s-X in a character constant which still is the super modifier.
	(read1): Signal an `invalid read syntax' error if a character
	constant is immediately followed by a digit or symbol character.

1269 1270 1271
	* search.c (Fmatch_data): Doc fix.  Explicitly state that
	match-data is undefined if last search failed.

1272 1273 1274
	* keymap.c (Fcommand_remapping): Renamed from Fremap_command.
	All uses changed.

Juanma Barranquero's avatar
Juanma Barranquero committed
1275 1276 1277 1278
2003-02-12  Juanma Barranquero  <lektu@terra.es>

	* eval.c (Fdefmacro): Fix typo.

1279 1280 1281 1282 1283 1284
2003-02-12  Kim F. Storm  <storm@cua.dk>

	* macros.c (Fstart_kbd_macro): If appending, and last keyboard
	macro is a string, convert meta modifiers in string when copying
	the string into a vector.

Kim F. Storm's avatar
Kim F. Storm committed
1285 1286 1287 1288
2003-02-11  Kim F. Storm  <storm@cua.dk>

	* keymap.c (Fremap_command): Return nil if arg is not a symbol.

Kenichi Handa's avatar
Kenichi Handa committed
1289 1290 1291 1292
2003-02-11  Kenichi Handa  <handa@m17n.org>

	* Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.

Kim F. Storm's avatar
Kim F. Storm committed
1293 1294 1295 1296 1297
2003-02-10  Kim F. Storm  <storm@cua.dk>

	* process.c: Doc fixes.
	(syms_of_process): Add `:' prefix to QCfilter_multibyte.

Kenichi Handa's avatar
Kenichi Handa committed
1298 1299
2003-02-10  Kenichi Handa  <handa@m17n.org>

1300 1301
	* fns.c (Fstring_to_multibyte): Fix typo in the docstring.

Kenichi Handa's avatar
Kenichi Handa committed
1302 1303
	* process.c (QCfilter_multibyte): New variable.
	(setup_process_coding_systems): New function.
1304 1305
	(Fset_process_buffer, Fset_process_filter):
	Call setup_process_coding_systems.
Kenichi Handa's avatar
Kenichi Handa committed
1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332
	(Fstart_process): Initialize the member `filter_multibyte' of
	struct Lisp_Process.
	(create_process): Call setup_process_coding_systems.
	(Fmake_network_process): New keyward `:filter-multibyte'.
	Initialize the member `filter_multibyte' of struct Lisp_Process.
	Call setup_process_coding_systems.
	(server_accept_connection): Call setup_process_coding_systems.
	(read_process_output): If the process has a filter, decide the
	multibyteness of a string to given to the filter by
	`filter_multibyte' member of the process.  If the process doesn't
	have a filter and the result of conversion is unibyte, use
	Fstring_to_multibyte (not Fstring_make_multibyte) to get the
	multibyte form.
	(Fset_process_coding_system): Call setup_process_coding_systems.
	(Fset_process_filter_multibyte): New function.
	(Fprocess_filter_multibyte_p): New function.
	(syms_of_process): Intern and staticpro QCfilter_multibyte.
	Defsubr Sset_process_filter_multibyte and
	Sprocess_filter_multibyte_p.

	* process.h (struct Lisp_Process): New member filter_multibyte.

	* lisp.h (setup_process_coding_systems): Add prototype.

	* buffer.c (Fset_buffer_multibyte): If the current buffer has a
	process, update coding systems for the process.

Kenichi Handa's avatar
Kenichi Handa committed
1333 1334 1335 1336 1337 1338
2003-02-09  Kenichi Handa  <handa@m17n.org>

	* fns.c (string_to_multibyte): New function.
	(Fstring_to_multibyte): New function.
	(syms_of_fns): Defsubr it.

Andreas Schwab's avatar
Andreas Schwab committed
1339 1340 1341 1342 1343
2003-02-08  Andreas Schwab  <schwab@suse.de>

	* Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
	instead of the substitution.

1344 1345 1346 1347 1348 1349 1350
2003-02-08  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (x_make_frame_visible): Call gtk_window_deiconify.

	* xmenu.c (menu_position_func): Adjust menu popup position so that
	the menu is fully visible.

1351 1352 1353
2003-02-07  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
1354 1355
	(x_make_frame_invisible, x_wm_set_icon_position):
	Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
1356 1357 1358

	* xfns.c (x_set_name, x_set_title): Ditto.

1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373
2003-02-04  Richard M. Stallman  <rms@gnu.org>

	* keyboard.c (echo_now): Update before_command_echo_length.
	(Freset_this_command_lengths): Reset this_command_key_count etc.
	immediately rather than arranging to do it later.
	(before_command_key_count_1, before_command_echo_length_1)
	(before_command_restore_flag): Vars deleted.
	(add_command_key): Don't handle before_command_restore_flag.
	(read_char, record_menu_key): Don't update before_command_key_count or
	before_command_echo_length.
	(read_char): Don't handle before_command_restore_flag.

	* keyboard.c (command_loop_1): Don't call adjust_point_for_property
	in direct-output clauses if it wouldn't be called in the ordinary case.

Kim F. Storm's avatar
Kim F. Storm committed
1374 1375 1376 1377
2003-02-04  Kim F. Storm  <storm@cua.dk>

	* keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.

Jan Djärv's avatar
Jan Djärv committed
1378 1379 1380 1381 1382 1383 1384
2003-02-02  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (remove_from_container): Copying list is not needed.
	(xg_update_menubar, xg_update_menu_item, xg_update_submenu)
	(xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
	on list returned from gtk_container_get_children to avoid memory leak.

1385 1386
2003-02-01  Jason Rumney  <jasonr@gnu.org>

Jason Rumney's avatar
Jason Rumney committed
1387 1388 1389 1390 1391 1392 1393 1394
	* w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
	local malloc.
	[HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
	definitions in xpm.h.
	(init_xpm_functions): New function.
	(xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
	(init_external_image_libraries): Try to load libXpm.dll.

1395 1396 1397
	* fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
	timestamp.

Dave Love's avatar
Dave Love committed
1398 1399 1400 1401 1402
2003-01-31  Dave Love  <fx@gnu.org>

	* syntax.c (Fskip_chars_forward)
	(open-paren-in-column-0-is-defun-start): Doc fix.

Juanma Barranquero's avatar
Juanma Barranquero committed
1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415
2003-01-31  Joe Buehler  <jhpb@draco.hekimian.com>

	* fileio.c: Support // at start of name for Cygwin (just added proper
	preprocessor tests).

	* keyboard.c: Port to Cygwin (just added proper preprocessor tests).

	* Makefile.in: Use @EXEEXT@ for Cygwin.

	* mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.

	* s/cygwin.h: Added for Cygwin port.

Juanma Barranquero's avatar
Juanma Barranquero committed
1416 1417 1418 1419
2003-01-31  Juanma Barranquero  <lektu@terra.es>

	* w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
	when including gif_lib.h.
Juanma Barranquero's avatar
Juanma Barranquero committed
1420 1421 1422
	(init_gif_functions, init_tiff_functions): New functions.
	(gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
	Windows. Disable color table lookups. Call library functions
Juanma Barranquero's avatar
Juanma Barranquero committed
1423
	through pointers determined at runtime.
Juanma Barranquero's avatar
Juanma Barranquero committed
1424 1425
	(init_external_image_libraries): Try to load libungif.dll and
	libtiff.dll.
Juanma Barranquero's avatar
Juanma Barranquero committed
1426

Kenichi Handa's avatar
Kenichi Handa committed
1427 1428 1429
2003-01-31  Kenichi Handa  <handa@m17n.org>

	* xdisp.c (SKIP_GLYPHS): New macro.
1430
	(set_cursor_from_row): Skip all glyphs that comes from overlay string.
Kenichi Handa's avatar
Kenichi Handa committed
1431

1432 1433
2003-01-30  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

1434
	* gtkutil.c (free_frame_tool_bar): Remove debug printf.
1435

Dave Love's avatar
Dave Love committed
1436 1437 1438 1439 1440 1441
2003-01-30  Dave Love  <fx@gnu.org>

	* alloc.c (Vgc_elapsed, gcs_done): New variables.
	(Fgarbage_collect): Use them.
	(init_alloc, syms_of_alloc): Set them up.

1442 1443 1444 1445
2003-01-30  Juanma Barranquero  <lektu@terra.es>

	* w32fns.c (init_external_image_libraries): Add missing operator.

Jason Rumney's avatar
Jason Rumney committed
1446 1447 1448 1449 1450
2003-01-29  Jason Rumney  <jasonr@gnu.org>

	* w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
	an alternative name for jpeg.dll.

Kenichi Handa's avatar
Kenichi Handa committed
1451 1452 1453 1454 1455
2003-01-29  Kenichi Handa  <handa@m17n.org>

	* xdisp.c (set_cursor_from_row): Pay attention to string display
	properties.

1456 1457 1458 1459 1460 1461 1462
2003-01-28  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>

	* macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
	<escape>.
	(keycode_to_xkeysym_table): Reformat and add more comments.
	(XTread_socket): Drop special case for backspace.

1463 1464 1465 1466 1467
2003-01-28  Andrew Choi  <akochoi@shaw.ca>

	* macfns.c (x_to_mac_color): Correct the order for parsing the RGB
	values in old-style RGB specs.

1468 1469 1470 1471 1472
2003-01-27  Juanma Barranquero  <lektu@terra.es>

	* w32fns.c (init_external_image_libraries): Try alternate names for the
	jpeg dll.

1473 1474 1475 1476 1477 1478
2003-01-27  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>

	* gtkutil.c (create_dialog, xg_separator_p)
	(xg_item_label_same_p, xg_update_menu_item): Check for NULL string
	before calling strcmp or strlen.