]> code.delx.au - gnu-emacs/blob - src/ChangeLog
(IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
[gnu-emacs] / src / ChangeLog
1 2006-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
4 (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
5 Don't check for quit, since any loop will go through fail or jump.
6
7 2006-01-24 Chong Yidong <cyd@stupidchicken.com>
8
9 * alloc.c (allocate_string_data): Update next_free immediately, to
10 reduce risk of memory clobberage.
11
12 2006-01-24 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
13
14 * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
15 display when point moves across an ellipsis. If there are
16 adjacent invisible texts, don't lose the second one's ellipsis.
17 (x_produce_glyphs): Doc fix.
18
19 2006-01-23 Stefan Monnier <monnier@iro.umontreal.ca>
20
21 * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
22
23 2006-01-23 Kim F. Storm <storm@cua.dk>
24
25 * xdisp.c (handle_single_display_spec): Fix handling of space
26 property on char from string: set *position rather than
27 it->current.pos.
28 (produce_stretch_glyph): Reduce width of stretch glyphs so they
29 don't get wider than the window (unless truncate-lines is on).
30
31 2006-01-22 Stefan Monnier <monnier@iro.umontreal.ca>
32
33 * xterm.c: Avoid allocating Lisp data from a signal handler.
34 (x_error_message): New var to replace x_error_message_string.
35 (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
36 (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
37 (syms_of_xterm): Use it instead of x_error_message_string.
38
39 * alloc.c (lisp_align_free): Add an assertion.
40 (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
41 (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
42 a signal handler.
43
44 2006-01-21 Luc Teirlinck <teirllm@auburn.edu>
45
46 * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
47
48 2006-01-21 Romain Francoise <romain@orebokech.com>
49
50 * xdisp.c (get_window_cursor_type): Fix last change.
51 Update copyright year.
52
53 2006-01-20 Eli Zaretskii <eliz@gnu.org>
54
55 * lread.c (Fload): Don't leak the file descriptor returned by
56 openp if we are going to signal an error.
57
58 * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
59 directly to _close.
60 (sys_dup): Protect against new_fd larger than fd_info[] can handle.
61 (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
62 to _read.
63 (sys_write): If FD is outside [0..MAXDESC) limits, pass it
64 directly to _write.
65
66 * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
67 if it is NULL.
68
69 2006-01-20 Kenichi Handa <handa@m17n.org>
70
71 * puresize.h (BASE_PURESIZE): Increment to 1190000.
72
73 2006-01-19 Chong Yidong <cyd@stupidchicken.com>
74
75 * xdisp.c (get_window_cursor_type): Use cursor type specified by
76 the selected buffer for the echo area too.
77
78 2006-01-19 Richard M. Stallman <rms@gnu.org>
79
80 * keymap.c (Fmap_keymap): Doc fix.
81
82 * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
83
84 * keyboard.c (echo_char): Don't omit the space between first two
85 echoed chars.
86
87 * minibuf.c (read_minibuf): Fix previous change.
88
89 2006-01-19 Kenichi Handa <handa@m17n.org>
90
91 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
92
93 2006-01-17 Richard M. Stallman <rms@gnu.org>
94
95 * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
96 value in f->param_alist.
97
98 2006-01-15 Andreas Schwab <schwab@suse.de>
99
100 * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
101
102 2006-01-13 Richard M. Stallman <rms@gnu.org>
103
104 * Makefile.in: Define new macro WINDOW_SUPPORT.
105 (lisp): Use it.
106 (SOME_MACHINE_LISP): Add conditionally loaded files.
107
108 2006-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
109
110 * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
111 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
112 (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
113 decomposed form.
114
115 * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
116 (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
117 (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
118 macro. Also try member ifr_addr when getting netmask.
119
120 2006-01-10 Stefan Monnier <monnier@iro.umontreal.ca>
121
122 * fileio.c (Fexpand_file_name): Remove redundant tests.
123 Fix elimination of // so that it doesn't prevent elimination of an
124 immediately following /. or /..
125
126 2006-01-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
127
128 * gtkutil.c (xg_toggle_notify_cb): New function.
129 (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
130 xg_toggle_notify_cb.
131 (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
132 parameter value changes so the toggle button gets updated.
133
134 2006-01-06 Nick Roberts <nickrob@snap.net.nz>
135
136 * .gdbinit: Fix typo.
137
138 2006-01-05 Eli Zaretskii <eliz@gnu.org>
139
140 * .gdbinit: Fix last change.
141
142 2006-01-05 Kim F. Storm <storm@cua.dk>
143
144 * process.c (Fmake_network_process): Use AF_INET instead of
145 AF_UNSPEC when AF_INET6 is not defined.
146
147 2006-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
148
149 * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
150 Don't check that the other type is known file-related one.
151
152 * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
153 gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
154 OS X 10.4 and later.
155
156 2006-01-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
157
158 * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
159 let GTK do all image processing. Importing Emacs own pixmaps to GTK
160 looks bad for inactive tool bar items with some Gnome themes.
161
162 2006-01-04 Eli Zaretskii <eliz@gnu.org>
163
164 * .gdbinit: Avoid a warning message when x_error_quitter is not
165 compiled in.
166
167 * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
168 for w32.
169
170 2006-01-04 Kim F. Storm <storm@cua.dk>
171
172 * process.c: Add IPv6 support.
173 (Qipv4, Qipv6): New vars.
174 (syms_of_process): Intern and staticpro them.
175 (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
176 with or without port number. Handle 4 element vector as IPv4 address
177 without port number.
178 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
179 (conv_lisp_to_sockaddr): Handle IPv6 addresses.
180 (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
181 request that address family only. :family nil or omitted means to
182 determine address family from the specified :host and :service.
183 (ifflag_table): Add missing OpenBSD IFF_ flags.
184 (server_accept_connection): Handle IPv6 addresses.
185 (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
186
187 * .gdbinit: Undo last change. Instead, look at Vsystem_type to
188 determine which breakpoints to set.
189
190 2006-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
191
192 * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
193
194 * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
195
196 2006-01-03 Romain Francoise <romain@orebokech.com>
197
198 * emacs.c (main): Update copyright year.
199
200 2006-01-03 Ken Raeburn <raeburn@gnu.org>
201
202 * callproc.c (delete_temp_file): Bind file-name-handler-alist to
203 nil for the call to internal_delete_file.
204
205 2006-01-01 Ken Raeburn <raeburn@gnu.org>
206
207 * callproc.c (Fcall_process_region): Bind file-name-handler-alist
208 to nil for the call to Fwrite_region.
209
210 2005-12-31 Richard M. Stallman <rms@gnu.org>
211
212 * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
213
214 2005-12-31 Eli Zaretskii <eliz@gnu.org>
215
216 * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
217
218 2005-12-30 Luc Teirlinck <teirllm@auburn.edu>
219
220 * textprop.c (set_text_properties): Reword description of return value.
221 Return Qnil if caller wants to remove all text properties from a
222 string and the string already has no intervals.
223
224 2005-12-30 Stefan Monnier <monnier@iro.umontreal.ca>
225
226 * term.c (visible_cursor): New boolean var.
227 (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
228 visible_cursor.
229 (syms_of_term): Export the new var as "visible-cursor".
230
231 2005-12-30 Eli Zaretskii <eliz@gnu.org>
232
233 * .gdbinit: Tell users not to worry about GDB warnings that some
234 functions do not exist in the binary.
235
236 2005-12-30 Andreas Schwab <schwab@suse.de>
237
238 * process.c (Fnetwork_interface_info): Correctly terminate the
239 loop over ifflag_table.
240
241 2005-12-29 Richard M. Stallman <rms@gnu.org>
242
243 * lread.c (readevalloop): Test for reading a whole buffer
244 before actually reading anything. Handle all cases, including
245 START = END = nil and an already-narrowed buffer.
246 Convert END to a marker if it is a number.
247
248 * keymap.c (describe_map): Put sparse map elements into an array,
249 sort them, then output a sequence of identical bindings on one line.
250 (struct describe_map_elt): New data type.
251 (describe_map_compare): New function.
252
253 2005-12-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
254
255 * gtkutil.c (xg_get_file_with_chooser): Change message shown
256 in file chooser.
257
258 2005-12-27 Richard M. Stallman <rms@gnu.org>
259
260 * lread.c (readevalloop): Set PT and ZV in the proper buffer,
261 not the current one.
262
263 * minibuf.c (Fminibuffer_message): Doc fix.
264 (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
265
266 * eval.c (do_autoload): Ignore elements of Vautoload_queue
267 where car is not symbol.
268
269 2005-12-27 Kenichi Handa <handa@m17n.org>
270
271 * charset.c (lisp_string_width): Check multibyteness of STRING.
272
273 2005-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
274
275 * xfns.c: x_show_hidden_files, new variable.
276 (syms_of_xfns): Defvar it.
277
278 * gtkutil.c (xg_toggle_visibility_cb): New function.
279 (xg_get_file_with_chooser): Add toggle hidden files and a message
280 to the new file chooser dialog. Show hidden files if
281 x_show_hidden_files is non-zero.
282
283 2005-12-26 Richard M. Stallman <rms@gnu.org>
284
285 * keyboard.h: Undo previous change.
286
287 * Makefile.in (undo.o): Undo previous change.
288
289 * undo.c: Undo previous change.
290
291 2005-12-26 Luc Teirlinck <teirllm@auburn.edu>
292
293 * keyboard.h: extern last_point_position_window.
294
295 * undo.c: include keyboard.h.
296
297 * Makefile.in (undo.o): Depend on keyboard.h.
298
299 2005-12-26 Richard M. Stallman <rms@gnu.org>
300
301 * commands.h (last_point_position_window): Declare.
302
303 * undo.c: Depend on window.h.
304 (record_point): Save old point from the correct window.
305
306 * keyboard.c (last_point_position_window): New variable.
307 (command_loop_1): Set last_point_position_window.
308 (syms_of_keyboard): Init it.
309
310 * Makefile.in (undo.o): Depend on window.h.
311
312 2005-12-25 Richard M. Stallman <rms@gnu.org>
313
314 * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
315 to undo a `provide'.
316
317 * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
318
319 2005-12-25 Giorgos Keramidas <keramida@ceid.upatras.gr>
320
321 * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
322 define for FreeBSD on this platform.
323
324 2005-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
325
326 * macterm.h (TYPE_FILE_NAME): New define.
327 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
328
329 * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
330 Add prototypes. Make static.
331 (mac_aedesc_to_lisp): Initialize err to noErr.
332 (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
333 (init_coercion_handler): New functions.
334 (Fmac_coerce_ae_data): Use coercion of Apple event data for
335 translation from/to file names.
336
337 * macterm.c: Don't include sys/param.h.
338 (init_coercion_handler): Add extern.
339 [MAC_OS8] (main): Call init_coercion_handler.
340 (mac_initialize) [MAC_OSX]: Likewise.
341 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
342 Apple event data for translation from/to file names.
343
344 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
345
346 * image.c [MAC_OS] (find_image_fsspec): Likewise.
347
348 2005-12-23 Martin Rudalics <rudalics@gmx.at> (tiny change)
349
350 * insdel.c (insert, insert_and_inherit, insert_before_markers)
351 (insert_before_markers_and_inherit): Make sure FROM is correct
352 when `after-change-functions' are called.
353
354 2005-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
355
356 * xfns.c (Fx_uses_old_gtk_dialog): New function.
357
358 * gtkutil.c (xg_uses_old_file_dialog): New function.
359 (xg_get_file_name): Use xg_uses_old_file_dialog.
360
361 * gtkutil.h: Declare xg_uses_old_file_dialog.
362
363 2005-12-22 Richard M. Stallman <rms@gnu.org>
364
365 * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
366
367 2005-12-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
368
369 * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
370
371 * macgui.h (XCharStruct): Remove member `valid_p'.
372 (STORE_XCHARSTRUCT): Don't set member `valid_p'.
373 (XCharStructRow): New typedef.
374 (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
375 New macros.
376 (struct MacFontStruct): Add member `bounds'. Remove member
377 `per_char'. All uses for QuichDraw Text fonts are changed to
378 `bounds.per_char'. ATSUI font bounds are represented as an array
379 `bounds.rows' of XCharStructRow's, each of which consists of a
380 bitmap of valid entries and an array of char bounds.
381
382 * macterm.c (mac_per_char_metric): Add prototype.
383 (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
384 (mac_query_char_extents): New function.
385 (x_per_char_metric): Use it.
386 (XLoadQueryFont): Likewise. Consolidate min/max_bounds calculations.
387 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
388 Use mac_per_char_metric instead of x_per_char_metric.
389 (mac_text_extents_16): New function.
390 (mac_compute_glyph_string_overhangs): Use it.
391 (mac_unload_font): Free member `bounds' in struct MacFontStruct.
392
393 2005-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
394
395 * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
396 (Fminibuffer_completion_help): Remove duplicates before display.
397
398 2005-12-21 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
399
400 * print.c (print_preprocess): Don't lose print_depth levels while
401 iterating.
402
403 2005-12-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
404
405 * macmenu.c (Qmac_apple_event): Add extern.
406 (set_frame_menubar, mac_menu_show keymp_panes)
407 (single_keymap_panes, list_of_panes, list_of_item)
408 (single_menu_item): Add argument types to prototypes.
409 (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
410 (struct skp): New struct (from xmenu.c).
411 (single_keymap_panes, single_menu_item, list_of_panes)
412 (list_of_item): Sync with xmenu.c.
413 (Fx_popup_menu, Fx_popup_dialog): Likewise. Don't get window from
414 POSITION if it is mac-apple-event event.
415 (menubar_selection_callback): Don't use menu_command_in_progress.
416 (set_frame_menubar): First parse all submenus, then make
417 widget_value trees from them. Don't allocate any widget_value
418 objects until we are done with the parsing.
419 (parse_single_submenu, digest_single_submenu): New functions.
420 (single_submenu): Function deleted, replaced by those two.
421 (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
422 create or dispose of EventHandlerUPP. Install hander to all submenus.
423 (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
424 instead of ENCODE_SYSTEM.
425 (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
426 integer values.
427 [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
428 (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
429 format menu item string. Don't use NULL for integer value.
430
431 * macterm.h (struct mac_output): Remove unused member
432 menu_command_in_progress.
433
434 2005-12-20 Juri Linkov <juri@jurta.org>
435
436 * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
437 position is non-nil, else set it to nil.
438
439 * macmenu.c (Fx_popup_menu): Add `else' to set
440 Vmenu_updating_frame to nil only if position is nil.
441
442 * w32menu.c (Fx_popup_menu): Add `else' to set
443 Vmenu_updating_frame to nil only if position is nil.
444
445 2005-12-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
446
447 * keyboard.c (make_lispy_event): Drag-and-drop items are now
448 stored in member `args' of struct input_event.
449
450 * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
451
452 * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
453 stored in member `args' of struct input_event.
454
455 * w32term.c (construct_drag_n_drop): Likewise.
456
457 * macterm.c (mac_do_receive_drag): Likewise.
458 (x_use_underline_position_properties): Undo 2005-07-13 change.
459 (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
460 (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
461 (mac_pass_command_to_system, mac_pass_control_to_system):
462 New boolean variables renamed from Lisp_Object ones
463 Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
464 Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
465 All uses changed.
466 (syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
467 Make them user options.
468 (mac_handle_command_event, mac_store_services_event):
469 Call create_apple_event_from_event_ref without 5th argument.
470 (backtranslate_modified_keycode): Mask off modifier keys that are
471 mapped to some Emacs modifiers before passing it to KeyTranslate.
472 (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
473 `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
474 Fix docstrings of `mac-*-modifier'.
475
476 * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
477 (do_applescript): Change argument types to Lisp_Object.
478 All uses changed.
479
480 * macterm.h (create_apple_event_from_event_ref): Remove 5th
481 argument from extern.
482
483 2005-12-18 Dan Nicolaescu <dann@ics.uci.edu>
484
485 * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
486 the answer, return `lambda', not nil.
487
488 2005-12-17 Eli Zaretskii <eliz@gnu.org>
489
490 * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
491 enclosed in $(ARGQUOTE)s should not be split between two lines, as
492 that will break with GNU Make >3.80, when sh.exe is used and
493 arg quoting is with '..'.
494
495 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
496
497 * print.c (print_preprocess): Just signal an error if print_depth
498 is exceeded.
499
500 2005-12-17 Eli Zaretskii <eliz@gnu.org>
501
502 * .gdbinit: Set a breakpoint on w32_abort.
503
504 2005-12-16 Juri Linkov <juri@jurta.org>
505
506 * minibuf.c (Fminibuffer_completion_contents): New Lisp function
507 created from minibuffer_completion_contents.
508 (minibuffer_completion_contents): Remove.
509 (do_completion, Fminibuffer_complete_word)
510 (Fminibuffer_completion_help): Replace minibuffer_completion_contents
511 with Fminibuffer_completion_contents.
512 (syms_of_minibuf): Add Sminibuffer_completion_contents.
513 (Fdisplay_completion_list): Doc fix.
514 (display_completion_list_1): Use `nil' for second arg of
515 `Fdisplay_completion_list'.
516
517 2005-12-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
518
519 * xfns.c (compute_tip_xy): Handle negative dx and dy.
520
521 * w32fns.c (compute_tip_xy): Ditto.
522
523 * macfns.c (compute_tip_xy): Ditto.
524
525 2005-12-14 Chong Yidong <cyd@stupidchicken.com>
526
527 * print.c (print_preprocess): Go to a deeper print_depth to avoid
528 print_object loop.
529
530 2005-12-14 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
531
532 * coding.c (code_convert_region_unwind): GCPRO arg.
533
534 2005-12-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
535
536 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
537 i.e. dy is offset from top of frame instead of bottom.
538
539 * macfns.c (compute_tip_xy): Ditto.
540
541 * w32fns.c (compute_tip_xy): Ditto.
542
543 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
544 (xg_get_image_for_pixmap, xg_create_frame_widgets)
545 (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
546
547 * xmenu.c (menubar_selection_callback): Do nothing if the callback
548 is for an unselected radio menu item.
549
550 2005-12-11 Richard M. Stallman <rms@gnu.org>
551
552 * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
553
554 * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
555
556 * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
557 (Flookup_key): Doc fix.
558 (syms_of_keymap) <function-key-map>: Doc fix.
559
560 * fns.c (Frequire): Treat evaluating from a source file
561 like loading the file.
562
563 * floatfns.c (Flog): Doc fix.
564
565 * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
566 when we change the buffer.
567
568 2005-12-11 Juri Linkov <juri@jurta.org>
569
570 * minibuf.c (display_completion_list_1):
571 Call `minibuffer_completion_contents' instead of using `nil' as
572 second arg of `Fdisplay_completion_list'.
573 (keys_of_minibuf): Unbind SPC in
574 Vminibuffer_local_filename_completion_map (see also related
575 change on 2005-12-06).
576
577 2005-12-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
578
579 * emacs.c (main) [MAC_OS8]: Undo previous change.
580
581 * macselect.c (syms_of_macselect) <mac-apple-event-map>:
582 Initialize to nil. Keymap is now created in lisp/term/mac-win.el.
583
584 2005-12-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
585
586 * Makefile.in (macselect.o): Depend on keymap.h.
587
588 * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
589 syms_of_macselect.
590
591 * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
592 [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
593
594 * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
595 (syms_of_keyboard) [MAC_OS]: Initialize it.
596 (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
597
598 * mac.c (Qundecoded_file_name): New variable.
599 (syms_of_mac): Initialize it.
600 (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
601 [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
602 (Fmac_coerce_ae_data): New defun.
603 (syms_of_mac): Defsubr it.
604
605 * macselect.c: Include keymap.h.
606 (mac_ready_for_apple_events): New variable.
607 (Vmac_apple_event_map, Qmac_apple_event_class)
608 (Qmac_apple_event_id): New variables.
609 (syms_of_macselect): Initialize them.
610 (Qundefined, mac_store_apple_event): Add externs.
611 (struct apple_event_binding): New struct.
612 (find_event_binding_fun, find_event_binding)
613 (mac_find_apple_event_spec, defer_apple_events)
614 (mac_handle_apple_event, init_apple_event_handler)
615 (copy_scrap_flavor_data): New functions.
616 (Fmac_process_deferred_apple_events): New defun.
617 (syms_of_macselect): Defsubr it.
618 (mac_store_services_event): Fix extern.
619 (mac_handle_service_event): Don't allocate Lisp objects during
620 asynchronous input processing. Use mac_store_services_event
621 instead of mac_store_application_menu_event.
622
623 * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
624 (Qpreferences): Remove variables.
625 (syms_of_macterm) : Don't initialize them.
626 (Qhicommand) [USE_CARBON_EVENTS]: New variable.
627 (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
628 (init_required_apple_events, do_ae_open_application)
629 (do_ae_print_documents, do_ae_open_documents)
630 (do_ae_quit_application): Remove functions and prototypes.
631 (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
632 (mac_find_apple_event_spec): Add externs.
633 (mac_store_application_menu_event): Remove function.
634 (mac_store_apple_event, mac_make_lispy_event_code): New functions.
635 (mac_handle_command_event): Create Apple event from Carbon event.
636 Use mac_store_apple_event instead of mac_store_application_menu_event.
637 [MAC_OSX] (mac_store_services_event): Likewise.
638 (struct SelectionRange, SelectionRange): Remove struct and typedef.
639 [MAC_OS8] (main): Call init_apple_event_handler instead of
640 init_required_apple_events.
641 (mac_initialize) [MAC_OSX]: Likewise.
642 [!USE_CARBON_EVENTS] (mac_wait_next_event):
643 Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
644
645 * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
646 Add externs.
647 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
648 (Fmac_get_preference): Add EXFUN.
649
650 * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
651 event.
652
653 2005-12-09 Richard M. Stallman <rms@gnu.org>
654
655 * xfns.c (Fx_create_frame): Reinstate previous change.
656
657 2005-12-09 Eli Zaretskii <eliz@gnu.org>
658
659 * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
660 GDB to the abort dialog.
661
662 2005-12-09 Kyotaro HORIGUCHI <horiguti@meadowy.org> (tiny change)
663
664 * indent.c (Fvertical_motion): Force move if starting on
665 stretch glyph.
666
667 2005-12-08 Richard M. Stallman <rms@gnu.org>
668
669 * lread.c (read_escape) <\s>: Don't treat strings specially.
670
671 * xfns.c (Fx_create_frame): Comment out previous change.
672
673 2005-12-07 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
674
675 * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
676 when needed.
677
678 2005-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
679
680 * minibuf.c (keys_of_minibuf): Just unbind SPC in
681 Vminibuffer_local_filename_completion_map rather than forcing it
682 explicitly to the same binding as the global map.
683
684 2005-12-06 Ken Raeburn <raeburn@gnu.org>
685
686 * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
687 * bytecode.c (Fbyte_code): Likewise.
688 * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
689 * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
690 * undo.c (truncate_undo_list): Likewise.
691
692 2005-12-05 Richard M. Stallman <rms@gnu.org>
693
694 * window.c (enlarge_window): Eliminate arg preserve_before.
695 Assume it is 0. All callers changed.
696 (Fenlarge_window, Fshrink_window): Likewise.
697
698 2005-12-02 Eli Zaretskii <eliz@gnu.org>
699
700 * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
701 fit below.
702
703 2005-12-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
704
705 * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
706
707 * xfns.c (x_real_positions): int ign => unsigned int.
708 (xg_set_icon_from_xpm_data): Remove unused variable err.
709 (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
710 to remove compiler warning.
711 (compute_tip_xy): Put tip above pointer if it doesn't fit below.
712
713 2005-12-02 David Reitter <david.reitter@gmail.com>
714
715 * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
716 non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
717 and Vminibuffer_local_must_match_filename_map keymaps.
718 (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
719
720 * keymap.c (Vminibuffer_local_filename_completion_map)
721 (Vminibuffer_local_must_match_filename_map): New variables.
722 (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
723 parent to be Vminibuffer_local_completion_map and
724 Vminibuffer_local_must_match_map, respectively.
725
726 * commands.h (Vminibuffer_local_filename_completion_map)
727 (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
728
729 2005-12-01 Stefan Monnier <monnier@iro.umontreal.ca>
730
731 * window.c (Fset_window_configuration): Don't accidentally copy the
732 window-point of one window to another.
733
734 2005-11-30 L\e$,1 q\e(Brentey K\e,Aa\e(Broly <lorentey@elte.hu>
735
736 * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
737
738 2005-11-30 Kim F. Storm <storm@cua.dk>
739
740 * alloc.c: Include fcntl.h. Define O_WRONLY if not defined.
741 (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
742 passing it to `emacs_write'.
743
744 2005-11-29 Ari Roponen <arjuropo@cc.jyu.fi> (tiny change)
745
746 * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
747
748 2005-11-27 Richard M. Stallman <rms@gnu.org>
749
750 * window.c (adjust_window_trailing_edge): New function.
751 (Fadjust_window_trailing_edge): New function.
752 (syms_of_window): Defsubr it.
753 (window_deletion_count): New variable.
754 (delete_window): Update window_deletion_count.
755
756 2005-11-26 Eli Zaretskii <eliz@gnu.org>
757
758 * minibuf.c (syms_of_minibuf): Mention the extension of
759 `completion-auto-help's meaning by complete.el.
760
761 2005-11-26 Henrik Enberg <henrik.enberg@telia.com>
762
763 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
764 Handle :inherit property as a lisp expression.
765
766 2005-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
767
768 * macterm.c (Qcontrol): Rename from Qctrl. All uses changed.
769 (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
770 Qsuper, and Qmodifier_value.
771 (Vmac_control_modifier, Vmac_option_modifier)
772 (Vmac_command_modifier, Vmac_function_modifier)
773 (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
774 (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
775 (Vmac_charset_info_alist): Doc fixes.
776
777 2005-11-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
778
779 * emacs.c (main) [MAC_OSX]: Change working directory to home
780 directory if `-psn_*' option is specified.
781
782 * mac.c (DECODE_UTF_8): Remove macro.
783 [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
784 created from cfstring_to_lisp.
785 [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
786 (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
787
788 * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
789 Add prototype.
790
791 2005-11-21 Ken Raeburn <raeburn@gnu.org>
792
793 * keymap.c (shadow_lookup): Use make_number to pass a number to
794 Fsubstring.
795
796 2005-11-21 Juri Linkov <juri@jurta.org>
797
798 * puresize.h (BASE_PURESIZE): Increment to 1180000.
799
800 2005-11-20 Chong Yidong <cyd@stupidchicken.com>
801
802 * xfaces.c (Finternal_set_lisp_face_attribute):
803 Use :ignore-defface for new frame defaults when `unspecified' is
804 supplied.
805 (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
806 (merge_face_vectors): Don't do :ignore-defface overwriting here.
807 (Finternal_merge_in_global_face): Do it here.
808
809 2005-11-20 Juri Linkov <juri@jurta.org>
810
811 * charset.c (invalid_character): Use Lisp-readable syntax
812 for octal and hex. Reorder decimal, octal and hex values.
813
814 2005-11-20 Nick Roberts <nickrob@snap.net.nz>
815
816 * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
817 this type is recognised when debugging.
818
819 2005-11-19 Andreas Schwab <schwab@suse.de>
820
821 * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
822 Lisp_Cons and Lisp_Float.
823
824 2005-11-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
825
826 * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
827 New variable.
828 [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
829 (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
830 [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
831 font size is smaller than or equal to cg_text_anti_aliasing_threshold.
832
833 2005-11-17 Chong Yidong <cyd@stupidchicken.com>
834
835 * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
836
837 * xfaces.c (Qignore_defface): New variable.
838 (syms_of_xfaces): Provide `:ignore-defface'.
839 (IGNORE_DEFFACE_P): New macro.
840 (check_lface_attrs, lface_fully_specified_p)
841 (Finternal_set_lisp_face_attribute)
842 (Fface_attribute_relative_p, Fmerge_face_attribute):
843 Handle Qignore_defface as a possible value.
844 (merge_face_vectors): The merged face is `unspecified' if the
845 mergee specifies `:ignore-defface'.
846
847 2005-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
848
849 * lread.c (readevalloop): Add missing GCPROs.
850
851 2005-11-16 Chong Yidong <cyd@stupidchicken.com>
852
853 * xfns.c (xg_set_icon_from_xpm_data): New function.
854
855 * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
856 (gnu_xbm_bits): Rename from gnu_bits (xbm version).
857
858 * xterm.c (x_bitmap_icon): Use the xpm if available.
859
860 * image.c (x_create_bitmap_from_xpm_data): New function.
861 (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
862
863 2005-11-15 Luc Teirlinck <teirllm@auburn.edu>
864
865 * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
866
867 2005-11-16 Nick Roberts <nickrob@snap.net.nz>
868
869 * .gdbinit: Make SIGTSTP work like SIGINT normally does.
870
871 2005-11-15 Andreas Schwab <schwab@suse.de>
872
873 * lisp.h (struct Lisp_Cons): Make cdr a union.
874 (XCDR_AS_LVALUE): Adjust.
875 (struct Lisp_Float): Make data a union.
876 (XFLOAT_DATA): Adjust.
877
878 * alloc.c (free_float): Make free list chaining aliasing-safe.
879 (make_float): Likewise.
880 (free_cons): Likewise.
881 (Fcons): Likewise.
882 (check_cons_list): Likewise.
883 (Fmake_symbol): Likewise.
884 (allocate_misc): Likewise.
885 (free_misc): Likewise.
886 (gc_sweep): Likewise.
887
888 2005-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
889
890 * mac.c (HASHKEY_QUERY_CACHE): New define.
891 (xrm_create_database, xrm_q_put_resource): Empty query cache.
892 (xrm_get_resource): Use query cache.
893
894 * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
895 inhibit_window_system is set.
896
897 2005-11-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
898
899 * macgui.h (USE_CG_TEXT_DRAWING): New define.
900 (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
901 and cg_glyphs.
902
903 * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
904 (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
905 (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
906 cg_glyphs in struct MacFontStruct if synthesized bold or italic is
907 not used and font substitution never occurs for ASCII and Latin-1
908 characters.
909 (XLoadQueryFont): Maximum and minimum metrics are now those among
910 ASCII characters.
911 (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
912 height adjustments for Courier, Helvetica, and Times.
913
914 * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
915
916 2005-11-11 David Reitter <david.reitter@gmail.com>
917
918 * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
919 macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
920 Vmac_control_modifier / mac-control-modifier,
921 Vmac_option_modifier / mac-option-modifier,
922 Vmac_command_modifier / mac-command-modifier.
923 (mac_to_emacs_modifiers): Use the new style modifier
924 variables. Return UInt32 (modifiers are longs now.)
925 (backtranslate_modified_keycode): New function (refactoring).
926 (XTread_socket): Use new modifier variables and refactored function.
927 (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
928 no dedicated meta key. Not in use anyway.)
929 (convert_fn_keycode): Map Fn-keys to their original keycode
930 using a table (english keyboard only).
931
932 2005-11-11 Kim F. Storm <storm@cua.dk>
933
934 * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
935 Add post hook to "backtrace" to always dump lisp call stack to
936 increase chance of people sending it to us when reporting bugs.
937
938 * doc.c (Fsubstitute_command_keys): Doc fix.
939
940 * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
941
942 * xdisp.c (handle_stop): Skip overlay string handling if
943 ignore_overlay_strings_at_pos_p is set.
944 (set_iterator_to_next): At end of display vector, set
945 ignore_overlay_strings_at_pos_p if dpvec came from an overlay
946 string, so we skip those overlay strings at current pos.
947
948 2005-11-10 Lars Hansen <larsh@soem.dk>
949
950 * fileio.c (file-regular-p): Doc fix.
951
952 2005-11-10 Kim F. Storm <storm@cua.dk>
953
954 * alloc.c (valid_lisp_object_p): New function to validate that
955 an object is really a valid Lisp_Object.
956
957 * lisp.h (valid_lisp_object_p): Add prototype.
958
959 * print.c (safe_debug_print): New function to be called from gdb
960 to print Lisp objects; use valid_lisp_object_p to avoid crashing
961 if user tries to print something which is not a Lisp object.
962
963 * .gdbinit (pp, pp1): Use safe_debug_print.
964 (pv, pv1): New commands to print value of a lisp variable.
965
966 2005-11-10 Nick Roberts <nickrob@snap.net.nz>
967
968 * .gdbinit (pp1): New user-defined function.
969
970 2005-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
971
972 * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
973
974 * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
975 related variables for dumped executable.
976
977 * unexmacosx.c (unexec_write_zero): New function.
978 (copy_data_segment): Clear uninitialized local variables in
979 statically linked libraries.
980
981 * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
982
983 2005-11-09 Juri Linkov <juri@jurta.org>
984
985 * keymap.c (shadow_lookup): If Flookup_key returns a number,
986 call it again with a sub-key-sequence, and if its return value
987 is non-nil (sub-key is bound), return nil.
988
989 2005-11-08 Kim F. Storm <storm@cua.dk>
990
991 * process.c (Fsignal_process): Recognize signal names with and
992 without SIG prefix, e.g. SIGHUP and HUP.
993
994 * search.c (search_buffer): No need to initialize base_pat.
995
996 2005-11-04 Stefan Monnier <monnier@iro.umontreal.ca>
997
998 * window.c (Fget_lru_window, Fget_largest_window, window_loop):
999 Don't abuse the `mini' arg. Use the `obj' arg instead.
1000
1001 2005-11-04 Kim F. Storm <storm@cua.dk>
1002
1003 * xdisp.c (show_mouse_face): Clear mouse face to eol.
1004
1005 2005-11-03 Dan Nicolaescu <dann@ics.uci.edu>
1006
1007 * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
1008 font-lock.elc and jit-lock.elc.
1009
1010 2005-11-03 Richard M. Stallman <rms@gnu.org>
1011
1012 * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
1013 (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
1014 (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
1015
1016 * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
1017
1018 * alloc.c (refill_memory_reserve): Move decl out of conditionals.
1019
1020 2005-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
1021
1022 * window.c (Fdisplay_buffer): Fix last change to not use
1023 a dedicated window.
1024
1025 2005-11-01 Kim F. Storm <storm@cua.dk>
1026
1027 * fringe.c (update_window_fringes): Undo 2005-10-27 change.
1028 Instead, rotate the bottom angle bitmap 180 degrees to indicate
1029 that the bottom row does not end in a newline.
1030
1031 2005-11-01 Andreas Schwab <schwab@suse.de>
1032
1033 * unexelf.c (unexec): Handle .plt section in BSS segment.
1034
1035 2005-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
1036
1037 * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
1038
1039 * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
1040 determine whether to consider dedicated windows as well.
1041 (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
1042 (Fdisplay_buffer): Do consider dedicated windows in those cases where
1043 we will split the window rather than reuse it.
1044 Don't try to use windows on other displays.
1045
1046 2005-10-31 Dan Nicolaescu <dann@ics.uci.edu>
1047
1048 * puresize.h (BASE_PURESIZE): Increment to 1170000.
1049
1050 2005-10-31 Romain Francoise <romain@orebokech.com>
1051
1052 * macfns.c: Update copyright year.
1053 * m/gould.h: Likewise.
1054
1055 2005-10-30 Kim F. Storm <storm@cua.dk>
1056
1057 * xdisp.c (display_line): Restore it->current_x and call
1058 extend_face_to_end_of_line when last glyph doesn't fit on line.
1059 (set_glyph_string_background_width): Remove specific tests here
1060 to see if face background should extend to end of line. Simplify.
1061
1062 2005-10-30 Richard M. Stallman <rms@gnu.org>
1063
1064 * alloc.c (BYTES_USED): Use uordblks, not arena.
1065 (bytes_used_when_reconsidered): New variable.
1066 (emacs_blocked_free): Set that.
1067
1068 2005-10-29 Chong Yidong <cyd@stupidchicken.com>
1069
1070 * alloc.c (emacs_blocked_free): Fix typo.
1071
1072 2005-10-29 Richard M. Stallman <rms@gnu.org>
1073
1074 * data.c (Fmake_variable_frame_local): Doc fix.
1075
1076 * xdisp.c (handle_fontified_prop): Do nothing if memory full.
1077 (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
1078 controls whether to save and restore mode_line_proptrans_alist.
1079 Callers changed.
1080 (unwind_format_mode_line): Work with that feature.
1081 (redisplay_internal): Don't call prepare_menu_bars if memory full.
1082 (move_elt_to_front): New function.
1083 (display_mode_element): Use move_elt_to_front.
1084 Don't bother munging text props on a null string.
1085 Delete obsolete elts from mode_line_proptrans_alist.
1086 (decode_mode_spec): Test Vmemory_full, not spare_memory.
1087 (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
1088
1089 * lisp.h (memory_full_cons_threshold): Declare.
1090 (internal_lisp_condition_case): Declare.
1091
1092 * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
1093 (Fmemory_full_p): Function deleted.
1094 (syms_of_alloc): Don't defsubr it.
1095 (memory_full_cons_threshold): New variable.
1096 (spare_memory): Now a vector of 7 elts.
1097 (buffer_memory_full): Don't set Vmemory_full here.
1098 (xfree): Don't try to refill here.
1099 (emacs_blocked_free): Record BYTES_USED in local var.
1100 (memory_full): Now free all the slots in spare_memory.
1101 (refill_memory_reserve): Allocate each slot in spare_memory.
1102 (init_alloc_once): Call refill_memory_reserve.
1103
1104 * keyboard.c (command_loop_1): Don't set Vmemory_full here.
1105
1106 * eval.c (internal_lisp_condition_case): New function.
1107 (Fcondition_case): Use internal_lisp_condition_case.
1108 (Feval): Test Vmemory_full and memory_full_cons_threshold.
1109 (Ffuncall): Likewise.
1110
1111 * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
1112
1113 2005-10-29 Stefan Monnier <monnier@iro.umontreal.ca>
1114
1115 * syntax.c (Fparse_partial_sexp): Fix docstring.
1116
1117 2005-10-28 Romain Francoise <romain@orebokech.com>
1118
1119 * puresize.h (BASE_PURESIZE): Increment to 1130000.
1120
1121 2005-10-28 Richard M. Stallman <rms@gnu.org>
1122
1123 * xfns.c (syms_of_xfns): Provide `x' as feature.
1124
1125 * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
1126
1127 * editfns.c (Fformat): Don't include string padding
1128 between info[n].start and info[n].end.
1129
1130 * alloc.c (spare_memory): No longer static.
1131 (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
1132
1133 * puresize.h (BASE_PURESIZE): Increment to 1120000.
1134
1135 2005-10-27 Chong Yidong <cyd@stupidchicken.com>
1136
1137 * data.c (Fmake_variable_frame_local): Add clarification to docstring.
1138
1139 * fringe.c (update_window_fringes): Handle case where buffer ends
1140 with a newline.
1141
1142 2005-10-27 Kenichi Handa <handa@m17n.org>
1143
1144 * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
1145
1146 2005-10-24 Kenichi Handa <handa@m17n.org>
1147
1148 * charset.h (charset_mule_unicode_0100_24ff)
1149 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
1150 Extern them.
1151
1152 * charset.c (charset_mule_unicode_0100_24ff)
1153 (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
1154 New variables.
1155 (Fsetup_special_charsets): Initialize them.
1156
1157 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
1158 supported Unicode characters.
1159
1160 2005-10-25 Jason Rumney <jasonr@gnu.org>
1161
1162 * w32fns.c (w32_to_x_font): Avoid forcing font widths.
1163
1164 2005-10-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1165
1166 * image.c [MAC_OS] (image_load_qt_1): Check image size.
1167 Use GraphicsImportGetImageDescription instead of
1168 GraphicsImportGetNaturalBounds.
1169 [MAC_OSX] (image_load_quartz2d): Check image size.
1170 [MAC_OS] (xpm_load_image): Likewise.
1171
1172 * macterm.c (last_mouse_glyph_frame): New var.
1173 (note_mouse_movement): Say mouse moved if current frame differs
1174 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
1175 (XTmouse_position): Set last_mouse_glyph_frame.
1176 (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
1177 (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
1178 Use EndianU16_BtoN.
1179 (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
1180 (x_per_char_metric, XLoadQueryFont)
1181 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
1182 glyph bounds.
1183 (mac_to_x_fontname, mac_do_list_fonts)
1184 (mac_initialize_display_info): Change screen resolutions to 72dpi.
1185
1186 2005-10-25 Masatake YAMATO <jet@gyve.org>
1187
1188 * minibuf.c (Fdisplay_completion_list): Small doc fix.
1189
1190 2005-10-24 Kim F. Storm <storm@cua.dk>
1191
1192 * xterm.c: Undo 2005-10-23 change.
1193 (last_mouse_glyph_frame): New var.
1194 (note_mouse_movement): Say mouse moved if current frame differs
1195 from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
1196 (XTmouse_position): Set last_mouse_glyph_frame.
1197 (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
1198 last_mouse_glyph] on mouse up/down event.
1199
1200 * editfns.c (Fcompare_buffer_substrings): Fix last change.
1201
1202 2005-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
1203
1204 * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
1205
1206 2005-10-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1207
1208 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
1209 so tool tips don't interfere with press on tool bar button.
1210
1211 2005-10-23 Richard M. Stallman <rms@gnu.org>
1212
1213 * casetab.c (Fset_case_table): Doc fix.
1214
1215 * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
1216 (readevalloop): Compute ENTIRE properly.
1217 (syms_of_lread) <load-history>: Doc fix.
1218
1219 2005-10-21 Richard M. Stallman <rms@gnu.org>
1220
1221 * lread.c (Fload): Simplify gcpro structure.
1222 Gcpro FOUND as well as FILE, but not EFOUND.
1223 Unless preloading, record FOUND instead of FILE in Vload_history.
1224 Rename repeat local FILE to MSG_FILE.
1225 (syms_of_lread) <load-history>: Doc fix.
1226
1227 2005-10-21 Kenichi Handa <handa@m17n.org>
1228
1229 * search.c (boyer_moore): Add parens to fix and/or precedence bug.
1230
1231 2005-10-20 Kim F. Storm <storm@cua.dk>
1232
1233 * buffer.c (clone_per_buffer_values): Remove unused var tem.
1234 (init_buffer): Remove unused vars dotstat, pwdstat.
1235
1236 * ccl.c (check_ccl_update): Remove unused var vp.
1237
1238 * fileio.c (auto_save_error): Call SAFE_FREE.
1239
1240 * fns.c (Fchar_table_range): Remove unused var i.
1241
1242 * minibuf.c (display_completion_list_1): New wrapper function
1243 for Fdisplay_completion_list.
1244 (Fminibuffer_completion_help): Use it.
1245
1246 * term.c (encode_terminal_code): Remove unused var src_start.
1247
1248 * window.c (Fwindow_tree): Remove unused var alist.
1249
1250 * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
1251
1252 2005-10-20 Aubrey Jaffer <agj@alum.mit.edu> (tiny change)
1253
1254 * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
1255
1256 2005-10-20 Olli Savia <ops@iki.fi> (tiny change)
1257
1258 * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
1259
1260 2005-10-20 Andreas Schwab <schwab@suse.de>
1261
1262 * minibuf.c (Fdisplay_completion_list): Doc fix.
1263
1264 2005-10-19 Kim F. Storm <storm@cua.dk>
1265
1266 * image.c (check_image_size): Handle integer Vmax_image_size value
1267 directly as max pixel value. Use default frame size for null frame.
1268 (syms_of_image) <max-image-size>: Describe integer value.
1269
1270 2005-10-19 Romain Francoise <romain@orebokech.com>
1271
1272 * emacs.c (main): Update copyright year.
1273
1274 2005-10-18 Chong Yidong <cyd@stupidchicken.com>
1275
1276 * image.c (Vmax_image_size): New variable.
1277 (check_image_size): New function.
1278 (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
1279 (gif_load, gs_load): Use it.
1280 (lookup_image): Try loading again if previous load failed.
1281 (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
1282 to display in, NULL if none.
1283 (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
1284 argument.
1285
1286 2005-10-18 Richard M. Stallman <rms@gnu.org>
1287
1288 * search.c (Fstring_match): Doc fix.
1289
1290 2005-10-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1291
1292 * macterm.c (note_mouse_movement): Use PtInRect.
1293 (XTread_socket): Also ignore mouse motion just before a button
1294 release event. Don't process button release event when mouse is
1295 not grabbed.
1296
1297 2005-10-16 Masatake YAMATO <jet@gyve.org>
1298
1299 * minibuf.c (Fdisplay_completion_list): Add new optional
1300 argument COMMON_SUBSTRING. Bind `completion-common-substring'
1301 to the optional argument during running `completion-setup-hook'.
1302
1303 2005-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1304
1305 * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
1306 Allow nil as argument.
1307 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
1308 for encoding arguments as UTF-16 in native byte order, no BOM.
1309
1310 * macfns.c (Fx_create_frame): Add debugging code.
1311 (Fx_show_tip): Set frame pixel width and height.
1312
1313 * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
1314 (FRAME_NORMAL_GC): New macro.
1315 (mac_draw_line, mac_clear_area, mac_clear_window)
1316 (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
1317 (mac_draw_image_string, mac_draw_image_string_16): Rename from
1318 XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
1319 XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
1320 All uses changed.
1321 (mac_draw_line, mac_erase_rectangle, mac_clear_area)
1322 (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
1323 (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
1324 (mac_draw_string_16, mac_draw_image_string)
1325 (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
1326 (mac_scroll_area): Drawing functions now take frame as destination.
1327 All uses changed.
1328 (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
1329 (x_draw_fringe_bitmap): Set clipping area in face->gc.
1330
1331 * macterm.h (mac_clear_area): Add extern.
1332
1333 2005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1334
1335 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
1336 changes for xterm.c.
1337
1338 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
1339
1340 2005-10-14 Kenichi Handa <handa@m17n.org>
1341
1342 * search.c (search_buffer): Give up BM search on case-fold-search
1343 if one of a target character has a case-equivalence of different
1344 charset even if that target charcter is an ASCII.
1345
1346 * casefiddle.c (casify_object): Fix for the case that case
1347 conversion change the byte length.
1348
1349 2005-10-14 Kim F. Storm <storm@cua.dk>
1350
1351 * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
1352 (handle_one_xevent): Only clear help_echo_string; restore it if
1353 note_mouse_movement didn't record any mouse movement.
1354
1355 * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
1356 (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
1357
1358 * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
1359 (Fposn_at_x_y): Fix calculation of x coordinate.
1360 (Fposn_at_point): Return nil if point is hscrolled out of view.
1361
1362 2005-10-13 Andreas Schwab <schwab@suse.de>
1363
1364 * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
1365 non-interactive mode.
1366
1367 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1368
1369 * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
1370
1371 2005-10-12 Kim F. Storm <storm@cua.dk>
1372
1373 * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
1374
1375 2005-10-12 Romain Francoise <romain@orebokech.com>
1376
1377 * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
1378
1379 2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1380
1381 * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
1382 get end of text rows. Obtain header-line/mode-line rows directly.
1383
1384 * xterm.c, w32term.c, macterm.c (note_mouse_movement):
1385 Restore help_echo_string if mouse is moved inside last_mouse_glyph.
1386
1387 2005-10-12 Kim F. Storm <storm@cua.dk>
1388
1389 * xdisp.c (remember_mouse_glyph): New generic version based on
1390 glyph_rect and remember_mouse_glyph from xterm.c enhanced to
1391 properly handle all different window areas.
1392
1393 * dispextern.h (remember_mouse_glyph): Add prototype.
1394
1395 * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
1396 (note_mouse_movement, XTmouse_position): Use generic
1397 remember_mouse_glyph, add last_mouse_glyph arg.
1398
1399 * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
1400 (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
1401 (note_mouse_movement, w32_mouse_position): Use generic
1402 remember_mouse_glyph, add last_mouse_glyph arg.
1403
1404 * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
1405 (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
1406 (XTmouse_position): Adapt to use generic remember_mouse_glyph
1407 instead of pixel_to_glyph_coords.
1408
1409 * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
1410 Fix x position for ON_TEXT when left margin width > 0.
1411
1412 2005-10-11 Kim F. Storm <storm@cua.dk>
1413
1414 * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
1415
1416 * keyboard.c (make_lispy_position): Fix buffer calculations for
1417 mouse click or movement in right fringe and the margins.
1418
1419 2005-10-11 Juanma Barranquero <lekktu@gmail.com>
1420
1421 * image.c (fn_jpeg_stdio_src): Don't define it.
1422 (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
1423 (our_common_init_source): Rename from `our_init_source'.
1424 (our_common_term_source): Rename from `our_term_source'.
1425 (our_memory_fill_input_buffer): Rename from
1426 `our_fill_input_buffer'.
1427 (our_memory_skip_input_data): Rename from `our_skip_input_data'.
1428 (jpeg_memory_src): Use the new names.
1429 (struct jpeg_stdio_mgr): New struct.
1430 (JPEG_STDIO_BUFFER_SIZE): New constant.
1431 (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
1432 (jpeg_file_src): New functions.
1433 (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
1434
1435 2005-10-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1436
1437 * macterm.c (PER_CHAR_METRIC): Remove unused macro.
1438 (fm_font_family_alist): New variable.
1439 (syms_of_macterm): Initialize and staticpro it.
1440 (decode_mac_font_name): Replace '-' in family name with '_' if it
1441 occurs just once. Lower family name.
1442 (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
1443 All uses changed. Remove argument MF and code conversion for it.
1444 Add argument SIZE. Rename argument MF_DECODED to FAMILY, and CS
1445 to CHARSET. Parse font size. Lower family name. Return integer
1446 value for status of parsing.
1447 (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
1448 Don't use Fdowncase because family name is already lowered by
1449 decode_mac_font_name.
1450 (init_font_name_table): Always call decode_mac_font_name.
1451 Add pair of family name and its reference to fm_font_family_alist.
1452 (mac_clear_font_name_table): Clear fm_font_family_alist.
1453 (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
1454 Lookup fm_font_family_alist to get font family reference.
1455 (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
1456 name is already lowered by parse_x_font_name.
1457
1458 2005-10-11 Kim F. Storm <storm@cua.dk>
1459
1460 * xterm.c (glyph_rect): Return 0 if position is outside text area.
1461
1462 * keyboard.c (make_lispy_position): Fix buffer position calculation for
1463 mouse click or movement in fringe.
1464
1465 2005-10-10 Jason Rumney <jasonr@gnu.org>
1466
1467 * xterm.c (remember_mouse_glyph): New function.
1468 (note_mouse_movement): Use it to remember the current glyph if changed.
1469 (XTmouse_position): Fix calculation of fake glyph under mouse.
1470 Move code to calculate glyph under mouse into remember_mouse_glyph.
1471
1472 2005-10-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1473
1474 * emacs.c (USAGE3, standard_args): -nb => -nbi.
1475
1476 2005-10-10 Juanma Barranquero <lekktu@gmail.com>
1477
1478 * frame.c (Fredirect_frame_focus): Fix typos in docstring.
1479 (next_frame, prev_frame, set_term_frame_name): Make static.
1480
1481 * window.c (Fwindow_tree): Fix spelling.
1482
1483 2005-10-09 Romain Francoise <romain@orebokech.com>
1484
1485 * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
1486
1487 2005-10-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1488
1489 * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
1490 Add options -nb, --no-bitmap-icon.
1491
1492 * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
1493
1494 2005-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1495
1496 * macgui.h (MAX_CLIP_RECTS): New define.
1497 (struct _XGC): New member clip_region.
1498 (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
1499 clip_rects.
1500
1501 * macterm.c (GC_CLIP_REGION): New macro.
1502 (saved_port_clip_region): New variable.
1503 (mac_begin_clip, mac_end_clip): New functions.
1504 (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
1505 (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
1506 (mac_copy_area_with_mask, mac_scroll_area): Use them.
1507 (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
1508 [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
1509 [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
1510 (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
1511 rectangles stored in gc.
1512 (XFreeGC): Dispose of clipping region.
1513 (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
1514 (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
1515 (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
1516 (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
1517 (x_draw_bar_cursor): Use them.
1518 (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
1519 get multiple clipping rectangles.
1520
1521 * macterm.h (mac_term_init): Add types to extern.
1522 (struct mac_output): Remove members mWP and pending_menu_activation.
1523 Put members scroll_bar_foreground_pixel and
1524 scroll_bar_background_pixel in #if 0.
1525 (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
1526
1527 * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
1528 Add debugging code.
1529
1530 2005-10-08 Kim F. Storm <storm@cua.dk>
1531
1532 * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
1533
1534 2005-10-07 Kim F. Storm <storm@cua.dk>
1535
1536 * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
1537 [!HAVE_WINDOW_SYSTEM]: Don't declare them...
1538 (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
1539
1540 2005-10-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1541
1542 * dispextern.h (struct glyph_string): Rename member for_overlaps_p
1543 to for_overlaps. Now occupy 3 bits.
1544 (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
1545 (OVERLAPS_ERASED_CURSOR): New defines.
1546 (struct redisplay_interface): Add new OVERLAPS arg to member
1547 fix_overlapping_area.
1548 (x_fix_overlapping_area): Add new OVERLAPS arg.
1549 (get_glyph_string_clip_rects): Add extern.
1550
1551 * dispnew.c (redraw_overlapping_rows):
1552 Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
1553
1554 * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
1555 for_overlaps.
1556 (get_glyph_string_clip_rects): New function created from
1557 get_glyph_string_clip_rect. Set clipping rectangles according to the
1558 value of for_overlaps. Enable to store multiple clipping rectangles.
1559 (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
1560 (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
1561 Rename argument OVERLAPS_P to OVERLAPS. All uses in macros changed.
1562 (x_fix_overlapping_area): Add OVERLAPS arg. Pass it to draw_glyphs.
1563 (draw_phys_cursor_glyph): Set width of erased cursor to use it for
1564 calculating clipping rectangles later. Call x_fix_overlapping_area
1565 with new OVERLAPS arg to draw only erased cursor area.
1566 (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
1567 to draw overlaps in both preceding and succeeding rows.
1568
1569 * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
1570 struct glyph_string to for_overlaps.
1571
1572 2005-10-04 Richard M. Stallman <rms@gnu.org>
1573
1574 * alloc.c (refill_memory_reserve): Conditionalize the body,
1575 not the function's existence.
1576
1577 2005-10-04 Kim F. Storm <storm@cua.dk>
1578
1579 * window.c (window_split_tree): New function.
1580 (Fwindow_split_tree): New defun.
1581 (syms_of_window): Defsubr it.
1582
1583 2005-10-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1584
1585 * macterm.c (mac_invert_rectangle): New function.
1586 (XTflash): Use it.
1587
1588 2005-10-04 Stefan Monnier <monnier@iro.umontreal.ca>
1589
1590 * regex.h (re_char): Don't expose it in the interface.
1591 (re_set_whitespace_regexp): Adjust the arg's type to not use it.
1592
1593 * regex.c (re_char): Move it back here.
1594 (re_set_whitespace_regexp): Change the arg's type to not use it.
1595
1596 * keyboard.c (make_lispy_event): If point has moved between down and up
1597 event, make it a drag, not a click, to mirror what
1598 mouse-drag-region expects.
1599
1600 2005-10-02 Dan Nicolaescu <dann@ics.uci.edu>
1601
1602 * lisp.h (fatal): Undo previous change.
1603 * term.c (fatal): Undo previous change.
1604
1605 2005-10-01 Richard M. Stallman <rms@gnu.org>
1606
1607 * xfaces.c (face_color_gray_p): Colors close to black count as gray.
1608
1609 2005-10-01 Kim F. Storm <storm@cua.dk>
1610
1611 * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
1612
1613 2005-10-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1614
1615 * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
1616
1617 * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
1618 (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
1619 (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
1620 Try ATSUI-compatible 12pt Monaco font first.
1621
1622 * macgui.h (struct _XCharStruct): New member valid_p.
1623 (STORE_XCHARSTRUCT): Set valid_p.
1624 (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
1625
1626 * macterm.c (mac_draw_string_common, x_per_char_metric)
1627 (mac_compute_glyph_string_overhangs, init_font_name_table)
1628 (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
1629 (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
1630 (x_draw_glyph_string_background)
1631 (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
1632 XDrawImageString. Always draw background and foreground separately.
1633 (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
1634 functions for one-byte chars when using ATSUI-compatible fonts.
1635 (atsu_font_id_hash) [USE_ATSUI]: New variable.
1636 (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
1637 (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
1638 max_char_or_byte2 more in detail.
1639 (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
1640
1641 2005-09-30 Dan Nicolaescu <dann@ics.uci.edu>
1642
1643 * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
1644 * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
1645
1646 * unexelf.c (fatal): Fix prototype.
1647
1648 * term.c (fatal): Implement using varargs.
1649
1650 * regex.c (re_char): Move typedef ...
1651 * regex.h (re_char): ... here.
1652 (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
1653
1654 * emacs.c (malloc_set_state): Fix return type.
1655 (endif): Fix type.
1656
1657 * lisp.h (fatal): Add argument types.
1658
1659 * dispextern.h (fatal): Delete prototype.
1660
1661 * systime.h (make_time): Prototype moved from ...
1662 * editfns.c (make_time): ... here.
1663
1664 * editfns.c: Move systime.h include after lisp.h.
1665 * dired.c:
1666 * xsmfns.c:
1667 * process.c: Likewise.
1668
1669 * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
1670 Add parameter types.
1671 (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
1672 (emacs_blocked_free): Change definition to match __free_hook.
1673 (emacs_blocked_malloc): Change definition to match __malloc_hook.
1674 (emacs_blocked_realloc): Change definition to match __realloc_hook.
1675
1676 2005-09-30 Romain Francoise <romain@orebokech.com>
1677
1678 * minibuf.c (Fread_buffer): Follow convention for reading from the
1679 minibuffer with a default value. Doc fix.
1680
1681 2005-09-29 Juri Linkov <juri@jurta.org>
1682
1683 * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
1684 Rename argument name `string' to `format-string'.
1685 (Fformat): Doc fix.
1686
1687 2005-09-28 Kim F. Storm <storm@cua.dk>
1688
1689 * image.c (gif_load): Fix size of allocated image buffer
1690 for images where a sub-image may be larger than the image's
1691 total height/width specifications.
1692
1693 2005-09-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1694
1695 * macgui.h (struct _XCharStruct): Each member now takes short value.
1696
1697 2005-09-27 Dan Nicolaescu <dann@ics.uci.edu>
1698
1699 * xfaces.c (lookup_derived_face): Add parameter type.
1700
1701 * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
1702
1703 * marker.c (verify_bytepos): Add parameter type.
1704
1705 * process.c (get_operating_system_release): Move prototype ...
1706
1707 * systime.h (get_operating_system_release): ... here.
1708
1709 * xterm.c (handle_one_xevent): Refer to union field to match the
1710 type required by the function definition.
1711 (set_vertical_scroll_bar): Move prototype ...
1712
1713 * xterm.h: ... here.
1714
1715 * fns.c (internal_equal, seed_random): Fix prototypes.
1716 (internal_equal): Add missing parameter.
1717
1718 2005-09-25 Richard M. Stallman <rms@gnu.org>
1719
1720 * keyboard.c (update_menu_bindings): Variable deleted.
1721 (syms_of_keyboard): Don't defvar it.
1722 (parse_menu_item): Don't test it.
1723
1724 2005-09-23 Richard M. Stallman <rms@gnu.org>
1725
1726 * editfns.c (Fformat): Explicitly test for end of format string
1727 and don't use `index'.
1728
1729 2005-09-23 Dan Nicolaescu <dann@ics.uci.edu>
1730
1731 * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
1732 Define BROKEN_GET_CURRENT_DIR_NAME.
1733
1734 * sysdep.c (get_current_dir_name): Also define if
1735 BROKEN_GET_CURRENT_DIR_NAME.
1736
1737 * m/ibmrs6000.h: Test for USG5, not USG5_4.
1738
1739 2005-09-22 Kim F. Storm <storm@cua.dk>
1740
1741 * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
1742 (message2): Fix commentary. Ok to use alloca'ed memory.
1743 Still not ok to use Lisp string data (because of GC).
1744 (set_message): Add comment why GC cannot happen.
1745
1746 2005-09-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1747
1748 * macterm.c (xlfdpat_block_match_1): Fix assertion.
1749 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
1750 variants for a scalable font multiple times.
1751
1752 2005-09-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1753
1754 * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
1755 Setup slave tty options before forking.
1756
1757 2005-09-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
1758
1759 * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
1760 positions have been set for the frame (as is done for frames in
1761 special-display-buffer-names).
1762
1763 2005-09-19 Kim F. Storm <storm@cua.dk>
1764
1765 * editfns.c (Fformat): Don't scan past end of format string that
1766 ends in %. Reported by: Johan Bockg\e,Ae\e(Brd.
1767
1768 2005-09-18 Andreas Schwab <schwab@suse.de>
1769
1770 * window.h (struct window): Remove height_fixed_p, no longer set.
1771
1772 * window.c (make_window): Don't initialize height_fixed_p.
1773 (window_fixed_size_p): Don't use it.
1774
1775 2005-09-18 John Paul Wallington <jpw@pobox.com>
1776
1777 * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
1778
1779 2005-09-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1780
1781 * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
1782
1783 * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
1784 New variables.
1785 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
1786 file selection.
1787
1788 * sysdep.c [MAC_OS8]: Don't include stdlib.h. Include sys/param.h.
1789
1790 2005-09-17 Eli Zaretskii <eliz@gnu.org>
1791
1792 * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
1793 (obj): Use XMENU_OBJ, not a literal xmenu.o.
1794
1795 2005-09-16 Romain Francoise <romain@orebokech.com>
1796
1797 * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
1798
1799 2005-09-15 Richard M. Stallman <rms@gnu.org>
1800
1801 * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
1802 (display_mode_element): Instead of `lisp_string' and `this',
1803 record `offset' and increment that.
1804 `last_offset' replaces `last'.
1805
1806 * Makefile.in (XMENU_OBJ): Variable deleted.
1807 (obj): Use xmenu.o unconditionally.
1808 (SOME_MACHINE_OBJECTS): Delete xmenu.o.
1809
1810 * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
1811
1812 2005-09-15 Kim F. Storm <storm@cua.dk>
1813
1814 * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
1815 (reseat_at_next_visible_line_start): Likewise (in xassert).
1816
1817 2005-09-14 Romain Francoise <romain@orebokech.com>
1818
1819 * fileio.c (write_region_inhibit_fsync): New variable.
1820 (Fwrite_region): Use it to skip call to fsync.
1821 (syms_of_fileio): Initialize it.
1822
1823 2005-09-14 Kenichi Handa <handa@m17n.org>
1824
1825 * coding.c (code_convert_region_unwind): Argument format changed.
1826 (run_pre_post_conversion_on_str): If pre-write-conversion function
1827 changed the current buffer, delete the new buffer.
1828 (run_pre_write_conversin_on_c_str): Likewise.
1829
1830 * fileio.c (Fexpand_file_name): Check multibyteness of
1831 default_directory.
1832
1833 2005-09-13 Kenichi Handa <handa@m17n.org>
1834
1835 * composite.c (compose_chars_in_text): Delete it.
1836
1837 * composite.h (compose_chars_in_text): Delete extern.
1838
1839 2005-09-13 Kim F. Storm <storm@cua.dk>
1840
1841 * print.c (print_error_message): Fix last change.
1842
1843 2005-09-12 Kim F. Storm <storm@cua.dk>
1844
1845 * composite.c (compose_chars_in_text): Fix setup of `pend'.
1846 Unconditionally reload `ptr' and `pend' after eval.
1847
1848 * xdisp.c (message3): Pass copy of lisp string to message_dolog.
1849
1850 * print.c (print_error_message): Pass copy of caller name to
1851 message_dolog.
1852
1853 * fileio.c (auto_save_error): Pass copy of lisp string to message2.
1854
1855 2005-09-12 Kenichi Handa <handa@m17n.org>
1856
1857 * xdisp.c (display_mode_element): Be sure to make variables THIS
1858 and LISP_STRING point into a string data of ELT.
1859
1860 2005-09-12 Kim F. Storm <storm@cua.dk>
1861
1862 * editfns.c (Ftranslate_region_internal): Reload `tt' after
1863 signal_after_change that may have GC'ed.
1864 (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
1865
1866 * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
1867 after insert while runs signal_after_change.
1868
1869 * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
1870 declaration to where it is used.
1871
1872 * w32.c (check_windows_init_file): Fix allocation of error buffer.
1873
1874 * xfns.c (x_encode_text): Declare static. Add FREEP arg.
1875 (x_set_name_internal): Call x_encode_text with new FREEP arg to
1876 know if xfree is needed instead of guessing.
1877
1878 * xterm.h (x_encode_text): Remove prototype.
1879
1880 2005-09-11 Chris Prince <cprince@gmail.com> (tiny change)
1881
1882 * w32term.c (x_bitmap_icon): Load small icons too.
1883
1884 2005-09-10 Romain Francoise <romain@orebokech.com>
1885
1886 * buffer.c (init_buffer): Grow buffer to add directory separator
1887 and terminal zero. Fix typos.
1888
1889 2005-09-10 Eli Zaretskii <eliz@gnu.org>
1890
1891 * buffer.c (init_buffer): Fix error message for failed call to
1892 get_current_dir_name.
1893 (get_current_dir_name): Remove prototype.
1894
1895 * xsmfns.c (get_current_dir_name): Remove prototype.
1896
1897 * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
1898 Add prototype.
1899
1900 * sysdep.c [WINDOWSNT]: Add prototype for getwd.
1901 Don't #undef NULL after including blockinput.h.
1902
1903 * config.in: Regenerated.
1904
1905 2005-09-10 Giuseppe Scrivano <gscrivano@gmail.com>
1906
1907 Remove the MAXPATHLEN limitations:
1908
1909 * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
1910 New function.
1911
1912 * buffer.c (init_buffer): Use it.
1913
1914 * xsmfns.c (smc_save_yourself_CB): Ditto.
1915
1916 2005-09-09 Kim F. Storm <storm@cua.dk>
1917
1918 * doc.c (Fsubstitute_command_keys): Lookup key binding for
1919 commands that are remapped from some other command.
1920
1921 * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
1922 flag in disabled rows below the window.
1923
1924 * frame.h (struct frame): New member updated_p.
1925
1926 * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
1927 member. Remove local `updated' array and associated variables.
1928
1929 2005-09-07 Kim F. Storm <storm@cua.dk>
1930
1931 * xdisp.c (handle_display_prop): Respect overlay window property.
1932
1933 * xdisp.c (try_window): Remove superfluous cursor_height calculation.
1934 Fixes crash reported by YAMAMOTO Mitsuharu.
1935
1936 2005-09-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1937
1938 * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
1939 (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
1940 (xlfdpat_block_match_1, xlfdpat_match): New functions.
1941 (xlfdpat_block_match): New macro.
1942 (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
1943 (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
1944 (add_font_name_table_entry): Increase font_name_table_size more
1945 rapidly.
1946 (mac_c_string_match): Remove function.
1947 (mac_do_list_fonts): Use XLFD pattern match instead of regular
1948 expression match.
1949
1950 * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
1951
1952 2005-09-03 Richard M. Stallman <rms@gnu.org>
1953
1954 * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
1955 (move_it_in_display_line_to): Stop after last char on line even
1956 on a windowing terminal, if that's the specified stop position.
1957
1958 * fns.c (Fsort): Doc fix.
1959
1960 * editfns.c (Fpropertize): Don't insist that properties be symbols.
1961
1962 2005-09-02 Stefan Monnier <monnier@iro.umontreal.ca>
1963
1964 * dired.c (directory_files_internal_unwind, directory_files_internal)
1965 (file_name_completion): Use a Save_Value object rather than a cons of
1966 two 16bit ints to store the DIR*.
1967 (directory_files_internal, file_name_completion): Handle both EINTR and
1968 EAGAIN consistently after `readdir'.
1969
1970 2005-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
1971
1972 * intervals.c (update_interval): Add position info in error.
1973
1974 * dispnew.c (window_to_frame_hpos, update_window):
1975 Avoid gcc warning about unused variable `f'.
1976
1977 2005-08-31 Jason Rumney <jasonr@gnu.org>
1978
1979 * w32menu.c (add_menu_item): If unicode_append_menu returns an
1980 error, revert to using AppendMenu.
1981
1982 2005-08-31 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1983
1984 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
1985 All uses changed.
1986 [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
1987 cases.
1988 (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
1989 [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
1990 Use posix_pathname_to_fsspec.
1991 [MAC_OS] (xpm_load_image): Fill in background_transparent field
1992 while we have mask.
1993
1994 * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
1995
1996 * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
1997
1998 2005-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
1999
2000 * syntax.c (update_syntax_table): Properly reproduce the special +1
2001 setting of e_property at the end of the buffer when bumping into the
2002 INTERVALS_AT_ONCE limit.
2003
2004 2005-08-27 Eli Zaretskii <eliz@gnu.org>
2005
2006 * emacs.c (USAGE1): Fix the description of the -Q option.
2007
2008 2005-08-26 Stefan Monnier <monnier@iro.umontreal.ca>
2009
2010 * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
2011
2012 2005-08-26 Kim F. Storm <storm@cua.dk>
2013
2014 * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
2015 Don't move PT to new window start.
2016
2017 2005-08-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2018
2019 * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
2020 ICONIFY/DEICONIFY_EVENT.
2021
2022 * macterm.c (mac_copy_area, mac_copy_area_with_mask):
2023 Restore background color.
2024 (mac_handle_visibility_change): New function.
2025 (x_make_frame_invisible, x_iconify_frame)
2026 (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
2027 [USE_CARBON_EVENTS] (mac_handle_window_event)
2028 (install_window_handler): Handle visibility change events.
2029 (x_make_frame_visible): Don't reposition window if it is iconified
2030 or asked for visible before. Select and uncollapse window when it
2031 is made visible.
2032 (x_make_frame_invisible): Don't reset x_highlight_frame.
2033 (x_iconify_frame): Likewise. Make invisible frame visible before
2034 it is iconified.
2035 (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
2036 (do_window_update): Don't change visibility of invisible frame.
2037
2038 2005-08-22 Juri Linkov <juri@jurta.org>
2039
2040 * term.c (turn_on_face): Check for TS_set_foreground and
2041 TS_set_background depending on standout_mode. Simplify.
2042
2043 2005-08-21 Kim F. Storm <storm@cua.dk>
2044
2045 * fringe.c (update_window_fringes): Only put TOP and BOTTOM
2046 bitmaps on fully visible rows.
2047
2048 * fringe.c (update_window_fringes): Replace FORCE_P arg with
2049 KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
2050 and return 0.
2051
2052 * xdisp.c (redisplay_window): Call update_window_fringes with
2053 KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
2054
2055 2005-08-20 Richard M. Stallman <rms@gnu.org>
2056
2057 * xdisp.c (display_echo_area_1): Get display start pos from w->start.
2058 (resize_mini_window): Set w->start, and PT, so as to display the tail
2059 end of the buffer, if it doesn't all fit.
2060
2061 2005-08-18 Kim F. Storm <storm@cua.dk>
2062
2063 * xdisp.c (calc_pixel_width_or_height): Use actual display
2064 resolution when available instead of Vdisplay_pixels_per_inch.
2065
2066 2005-08-17 Kim F. Storm <storm@cua.dk>
2067
2068 * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
2069
2070 * dispnew.c (buffer_posn_from_coords): Check that target row is
2071 within matrix.
2072
2073 2005-08-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2074
2075 * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
2076 xg_set_frame_icon and call it.
2077
2078 * gtkutil.c (xg_set_frame_icon): New function.
2079
2080 * gtkutil.h (xg_set_frame_icon): Declare it.
2081
2082 2005-08-16 Kim F. Storm <storm@cua.dk>
2083
2084 * dispnew.c (increment_row_positions): Skip non-enabled rows.
2085
2086 * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
2087 (Fcurrent_window_configuration): Use VECSIZE macro instead.
2088
2089 2005-08-15 Richard M. Stallman <rms@gnu.org>
2090
2091 * xdisp.c (message3_nolog): Clear echo_message_buffer.
2092
2093 2005-08-15 Kim F. Storm <storm@cua.dk>
2094
2095 * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
2096
2097 * process.c (deactivate_process, status_notify, read_process_output)
2098 (update_status, status_convert, decode_status, allocate_pty)
2099 (make_process, remove_process, list_processes_1)
2100 (create_process_1, unwind_request_sigio, read_process_output)
2101 (send_process, keyboard_bit_set): Declare static.
2102 (Fdelete_process): Simplify. Pass process to status_notify, so we
2103 don't try to read output from it.
2104 (status_notify): New arg deleting_process--don't try to read
2105 output from that process.
2106
2107 * lisp.h (deactivate_process, status_notify, read_process_output):
2108 Remove prototypes.
2109
2110 2005-08-14 Richard M. Stallman <rms@gnu.org>
2111
2112 * image.c (syms_of_image): Init Qxbm, Qpbm before calling
2113 define_image_type.
2114
2115 2005-08-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2116
2117 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
2118 (xg_get_image_for_pixmap): Move some code to
2119 xg_get_pixbuf_from_pix_and_mask, and call it.
2120
2121 * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
2122
2123 * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
2124 to get an GTK icon and set it with GTK functions to avoid having GTK
2125 override an icon set with just X functions.
2126
2127 2005-08-11 Richard M. Stallman <rms@gnu.org>
2128
2129 * image.c (syms_of_image): Init image_types here, and call
2130 define_image_type.
2131 (init_image): Not here.
2132
2133 2005-08-09 Richard M. Stallman <rms@gnu.org>
2134
2135 * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
2136
2137 * lisp.h (QUIT): Throw t to Vthrow_on_input.
2138
2139 2005-08-09 Thien-Thi Nguyen <ttn@gnu.org>
2140
2141 * floatfns.c (Fexpt): Use floats for negative exponent.
2142
2143 2005-08-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2144
2145 * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
2146 should not be there, causing menu display errors with GTK 2.6.9.
2147
2148 2005-08-07 Richard M. Stallman <rms@gnu.org>
2149
2150 * floatfns.c (Fexpt): Undo previous change.
2151
2152 * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
2153 so it can be used with various state vectors.
2154
2155 * emacs.c (endif): Convert -script into -scriptload.
2156 (standard_args): Add -scriptload. Allow -basic-display with one dash.
2157
2158 * fns.c (syms_of_fns): Add `emacs' to features.
2159
2160 * term.c (set_terminal_modes): If no TS_termcap_modes string,
2161 output newlines to scroll the old screen contents off the screen.
2162
2163 2005-08-06 Thien-Thi Nguyen <ttn@gnu.org>
2164
2165 * floatfns.c (Fexpt): Use floats for negative exponent.
2166 Reported by D Goel.
2167
2168 2005-08-02 Richard M. Stallman <rms@gnu.org>
2169
2170 * frame.c (Fframe_char_width): Doc fix.
2171
2172 2005-07-30 Juanma Barranquero <lekktu@gmail.com>
2173
2174 * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
2175 Defvar it.
2176
2177 2005-07-28 Juanma Barranquero <lekktu@gmail.com>
2178
2179 * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
2180 (my_create_window, my_create_tip_window): Make static.
2181
2182 * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
2183 (my_set_foreground_window, my_destroy_window): Make static.
2184
2185 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
2186
2187 Merge gnulib getopt implementation into Emacs.
2188
2189 * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
2190 now part of lib-src.
2191
2192 2005-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
2193
2194 * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
2195
2196 2005-07-25 Jason Rumney <jasonr@gnu.org>
2197
2198 * w32menu.c (w32_menu_display_help): Suppress tooltip when
2199 navigating menus with the keyboard.
2200
2201 2005-07-23 Richard M. Stallman <rms@gnu.org>
2202
2203 * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
2204
2205 * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
2206 gc_relative_threshold, one by one.
2207
2208 * keyboard.c (read_char): Test gc_cons_threshold.
2209 (syms_of_keyboard): staticpro Qecho_area_clear_hook.
2210
2211 * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
2212 gc_relative_threshold, one by one.
2213
2214 * alloc.c (gc_cons_threshold): Not static.
2215 (gc_cons_combined_threshold): Var deleted.
2216 (gc_relative_threshold): New variable.
2217 (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
2218 instead of gc_cons_combined_threshold.
2219
2220 * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
2221 (gc_cons_combined_threshold): Declaration deleted.
2222
2223 2005-07-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2224
2225 * mac.c: Don't include stdlib.h or string.h.
2226 (Fdo_applescript, Fmac_file_name_to_posix)
2227 (Fmac_file_name_to_posix): Doc fixes.
2228 [TARGET_API_MAC_CARBON] (Fmac_get_preference)
2229 (Fmac_code_convert_string): Likewise.
2230 [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
2231 if the executable is not contained in a bundle.
2232
2233 * macfns.c: Don't include stdlib.h or string.h. Include atimer.h.
2234 (gray_width, gray_height): Remove defines.
2235 (gray_bits, gray_bitmap_width, gray_bitmap_height)
2236 (gray_bitmap_bits): Remove variables.
2237 (lispy_function_keys): Remove extern.
2238 (free_frame_menubar): Add extern.
2239 (x_window_to_frame): Remove function.
2240 (unwind_create_tip_frame): Add declaration.
2241 (x_set_name_internal): New function.
2242 (x_set_name, x_set_title): Use it.
2243 (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
2244 (Fx_display_pixel_height, Fx_display_planes)
2245 (Fx_display_color_cells, Fx_server_max_request_size)
2246 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2247 (Fx_display_mm_height, Fx_display_mm_width)
2248 (Fx_display_backing_store, Fx_display_visual_class)
2249 (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
2250
2251 * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2252
2253 * macselect.c (Fx_own_selection_internal): Follow error conventions.
2254 (Fx_get_selection_internal, Fx_selection_owner_p)
2255 (Fx_selection_exists_p): Doc fixes.
2256 (syms_of_macselect) <selection-converter-alist>: Likewise.
2257
2258 2005-07-21 Juanma Barranquero <lekktu@gmail.com>
2259
2260 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2261
2262 * ccl.c (Fregister_ccl_program): Fix typos in docstring.
2263 (Fccl_execute_on_string): Likewise; add usage info.
2264
2265 * composite.c (Fcompose_region_internal)
2266 (Fcompose_string_internal):
2267 Improve argument/docstring consistency.
2268
2269 * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
2270 Fix typos in docstrings.
2271
2272 * textprop.c (Fnext_char_property_change)
2273 (Fprevious_char_property_change): Doc fixes.
2274
2275 * window.c (Fset_window_margins, Fset_window_fringes):
2276 Improve argument/docstring consistency.
2277
2278 * xfaces.c (Finternal_lisp_face_p): Doc fix.
2279
2280 2005-07-21 Andreas Schwab <schwab@suse.de>
2281
2282 * eval.c (restore_stack_limits): Return a value.
2283
2284 2005-07-20 Juanma Barranquero <lekktu@gmail.com>
2285
2286 * eval.c (Fdefvar): Doc fix.
2287
2288 2005-07-20 Kim F. Storm <storm@cua.dk>
2289
2290 * fileio.c (Fdo_auto_save, do_auto_save_unwind):
2291 Use make_save_value to unwind protect stream.
2292
2293 * lread.c (Fload, load_unwind):
2294 Use make_save_value to unwind protect stream.
2295
2296 2005-07-19 Juanma Barranquero <lekktu@gmail.com>
2297
2298 * eval.c (Fprog2, Fcalled_interactively_p),
2299 (syms_of_eval) <debug-on-quit>: Doc fixes.
2300 (syms_of_eval) <max-specpdl-size>:
2301 (Finteractive_p): Fix typos in docstrings.
2302
2303 2005-07-19 Kim F. Storm <storm@cua.dk>
2304
2305 * w32fns.c (Vx_hand_shape): Variable removed.
2306 (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
2307
2308 2005-07-19 Kenichi Handa <handa@m17n.org>
2309
2310 * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
2311
2312 2005-07-18 Stefan Monnier <monnier@iro.umontreal.ca>
2313
2314 * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
2315
2316 2005-07-18 Kim F. Storm <storm@cua.dk>
2317
2318 * frame.h (struct frame): New member already_hscrolled_p.
2319
2320 * xdisp.c (redisplay_internal): Only try to hscroll each frame once
2321 to avoid redisplay looping hscrolling back and forth ad infinitum.
2322
2323 2005-07-18 Juri Linkov <juri@jurta.org>
2324
2325 * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
2326 * keymap.c (Fminor_mode_key_binding):
2327 * macterm.c (mac-emulate-three-button-mouse):
2328 Delete duplicate duplicate words.
2329
2330 2005-07-18 Ken Raeburn <raeburn@gnu.org>
2331
2332 * minibuf.c (Ftest_completion): Fix odd syntax in test.
2333
2334 2005-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2335
2336 * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
2337
2338 * macgui.h (struct _XGC): New struct.
2339 (GC): Use it.
2340 (GCForeground, GCBackground, GCFont): Use X11 mask values.
2341 (XCreateGC, XParseGeometry): Move externs to macterm.h.
2342
2343 * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
2344 (XSetFont): Add declaration.
2345 (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
2346 Remove functions.
2347 (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
2348 New defines.
2349 (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
2350 (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
2351 (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
2352 Use them.
2353 (mac_erase_rectangle): New function.
2354 (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
2355 (x_draw_stretch_glyph_string): Use it.
2356 (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
2357 (XSetBackground, XSetFont): Adjust for new GC implementation.
2358 (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
2359 (XTset_vertical_scroll_bar): Clear area under scroll bar.
2360
2361 * macterm.h (struct mac_display_info): Change types of
2362 scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
2363 (XCreateGC, XParseGeometry): Move externs from macgui.h.
2364
2365 * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
2366
2367 2005-07-16 Richard M. Stallman <rms@gnu.org>
2368
2369 * buffer.c (Fmake_overlay): Doc fix.
2370
2371 2005-07-16 Eli Zaretskii <eliz@gnu.org>
2372
2373 * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
2374 Vw32_valid_locale_ids, and Vw32_valid_codepages.
2375
2376 2005-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2377
2378 * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
2379 Use Fstring_as_unibyte instead of string_make_unibyte.
2380
2381 2005-07-15 Richard M. Stallman <rms@gnu.org>
2382
2383 * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
2384
2385 2005-07-15 Kim F. Storm <storm@cua.dk>
2386
2387 * xdisp.c: Fix redisplay loop in last change.
2388 (IT_POS_VALID_AFTER_MOVE_P): New macro.
2389 (move_it_vertically_backward, move_it_by_lines): Use it.
2390
2391 2005-07-14 Jason Rumney <jasonr@gnu.org>
2392
2393 * w32.c (init_environment): Default HOME directory to user's
2394 appdata directory if possible.
2395
2396 2005-07-14 Kim F. Storm <storm@cua.dk>
2397
2398 * .gdbinit (pitx): Fix output format. Print string charpos.
2399
2400 * lread.c (syms_of_lread): Initialize seen_list.
2401
2402 * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
2403
2404 * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
2405 Staticpro re_match_object.
2406
2407 2005-07-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2408
2409 * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
2410 dereference.
2411
2412 * macterm.c (mac_window_to_frame): Remove duplicate define.
2413
2414 2005-07-14 Kenichi Handa <handa@m17n.org>
2415
2416 * coding.c (code_convert_region_unwind): ARG is changed to a cons.
2417 (code_convert_region): Adjust for the above change.
2418 (set_conversion_work_buffer): If the work buffer is already in
2419 use, generate a new buffer and return it. Otherwise return Qnil.
2420 (run_pre_post_conversion_on_str): Adjust for the above change.
2421 (run_pre_write_conversin_on_c_str): Likewise.
2422
2423 2005-07-13 Kim F. Storm <storm@cua.dk>
2424
2425 * xdisp.c (start_display): Don't reseat to next visible line start
2426 if current start position is in a string or image.
2427 (move_it_vertically_backward): Be sure to move out of strings and
2428 images when moving it2 forward.
2429 (move_it_by_lines): When moving forward, move to next buffer
2430 position if we end up in a string or image. When moving backward,
2431 count rows moved over when moving to start of current row in case
2432 row starts in middle of a string or image. Also move further
2433 backward if we end up in a string or image.
2434 (try_cursor_movement): If overlay string spans multiple lines,
2435 move backward to set cursor on start of an overlay string.
2436 (cursor_row_p): Row is ok if cursor is at newline from string, but
2437 string starts on this line (so we always position cursor at start
2438 of string).
2439
2440 * indent.c (Fvertical_motion): If start position is on an image,
2441 don't move back if we move too far (that's almost certain to happen).
2442
2443 * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
2444 row in minibuffer windows.
2445 (try_window): Don't check margins in minibuffer windows.
2446
2447 2005-07-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2448
2449 * macterm.c: Don't include stdlib.h or composite.h.
2450 (x_use_underline_position_properties, last_mouse_press_frame)
2451 (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
2452 (syms_of_macterm, mac_initialize): Don't initialize them.
2453 (waiting_for_input, initial_argv, initial_argc)
2454 (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
2455 (set_frame_menubar, path_from_vol_dir_name): Remove externs.
2456 (extra_keyboard_modifiers): Fix type in extern.
2457 (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
2458 (x_scroll_bar_report_motion): Add argument types to declaration.
2459 (mac_compute_glyph_string_overhangs): Add declaration.
2460 (disable_mouse_highlight): Remove unused variable.
2461 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
2462 (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
2463 (x_scroll_bar_handle_drag): Remove argument `timestamp'.
2464 All callers changed.
2465 [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
2466 timestamp.
2467 [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
2468 (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
2469 only when its width is less than the height.
2470 (XTredeem_scroll_bar): Sync with xterm.c.
2471 (font_name_table, font_name_table_size, font_name_count):
2472 Make static.
2473 (drag_and_drop_file_list): Remove variable. Previous use is now
2474 local to function.
2475 (do_ae_open_documents): Move DRAG_N_DROP event construction part
2476 from XTread_socket.
2477 (XTread_socket): Consolidate setting of event timestamp.
2478 Move DRAG_N_DROP event construction part to do_ae_open_documents.
2479 Support extra_keyboard_modifiers.
2480
2481 * xfaces.c (try_font_list) [MAC_OS]: Try font family name
2482 beginning with that for ASCII.
2483
2484 2005-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
2485
2486 * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
2487 (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
2488 (syms_of_alloc): Declare gc-cons-percentage.
2489
2490 * eval.c (Feval, Ffuncall):
2491 * keyboard.c (read_char):
2492 * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
2493
2494 * lisp.h (gc_cons_combined_threshold): Declare.
2495
2496 2005-07-12 Kim F. Storm <storm@cua.dk>
2497
2498 * coding.c (Qprocess_argument):
2499 * coding.h (Qprocess_argument): Remove unused var.
2500
2501 * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
2502
2503 2005-07-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2504
2505 * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
2506 Endian.h.
2507 [!MAC_OSX] (fchmod, fchown): New functions.
2508 (mac_get_code_from_arg): Don't accept Lisp integer as argument.
2509 Use SBYTES and EndianU32_BtoN.
2510 (mac_get_object_from_code): Return 4 byte string even if argument
2511 is 0. Use make_unibyte_string and EndianU32_NtoB.
2512 (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
2513 (Fmac_set_file_type): Fix documents and argument declarations.
2514 Don't specify kFSCatInfoNodeFlags. Support Mac OS Classic.
2515
2516 2005-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
2517
2518 * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
2519
2520 2005-07-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2521
2522 * xfaces.c (x_update_menu_appearance): Use fontSet resource for
2523 Lucid if X_I18N, font otherwise.
2524
2525 2005-07-10 Steven Tamm <steventamm@mac.com>
2526
2527 * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
2528 (Fmac_set_file_type, Fmac_set_file_creator): Add.
2529 (mac_get_object_from_code, mac_get_code_from_arg): Add.
2530
2531 2005-07-10 Richard M. Stallman <rms@gnu.org>
2532
2533 * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
2534 (syms_of_lread): Set up eval-buffer-list.
2535 (Feval_buffer, Feval_region): Bind eval-buffer-list.
2536
2537 2005-07-08 Richard M. Stallman <rms@gnu.org>
2538
2539 * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
2540
2541 2005-07-08 Kim F. Storm <storm@cua.dk>
2542
2543 * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
2544 (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
2545
2546 2005-07-07 Kim F. Storm <storm@cua.dk>
2547
2548 * window.c (Frecenter): Fix last change (set iarg before use).
2549
2550 2005-07-06 Richard M. Stallman <rms@gnu.org>
2551
2552 * window.c (Frecenter): When arg is inside the scroll margin,
2553 move it out of the margin.
2554
2555 2005-07-06 Jason Rumney <jasonr@gnu.org>
2556
2557 * w32console.c (initialize_w32_display): Detect when the console
2558 dimensions are insane, and default to 80x25 instead.
2559 (w32_use_full_screen_buffer): Default to NIL.
2560
2561 2005-07-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2562
2563 * macterm.c (mac_draw_vertical_window_border): Use foreground of
2564 VERTICAL_BORDER_FACE_ID for vertical border line.
2565 (mac_encode_char): Call check_ccl_update in advance.
2566 (mac_to_x_fontname, x_font_name_to_mac_font_name)
2567 (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
2568 Don't assume that font family length is less than 32.
2569 (x_compute_min_glyph_bounds): Make static.
2570 (x_load_font): Never set fonts_changed_p to zero.
2571
2572 2005-07-04 Lute Kamstra <lute@gnu.org>
2573
2574 * Update FSF's address in GPL notices.
2575
2576 2005-07-03 Richard M. Stallman <rms@gnu.org>
2577
2578 * xdisp.c (try_window): Fix previous change in how it handles
2579 a partially-visible line or one only partly past the margin.
2580
2581 * window.c (window_scroll_pixel_based): Take account
2582 of this_scroll_margin when finding point when scrolling up.
2583
2584 2005-06-29 Ralf Angeli <angeli@iwi.uni-sb.de>
2585
2586 * window.c (window_scroll_pixel_based, window_scroll_line_based):
2587 Handle `scroll-preserve-screen-position' non-nil, non-t specially.
2588 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
2589
2590 2005-07-02 Juri Linkov <juri@jurta.org>
2591
2592 * w32term.c (w32_draw_vertical_window_border): Use foreground of
2593 VERTICAL_BORDER_FACE_ID for vertical border line.
2594
2595 2005-07-02 Eli Zaretskii <eliz@gnu.org>
2596
2597 * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
2598 fchmod so that chmod doesn't get called on MSDOS before the file
2599 is closed.
2600
2601 2005-07-01 Jason Rumney <jasonr@gnu.org>
2602
2603 * w32term.c (cleartype_active): New flag for enabling sub-pixel
2604 workaround.
2605 (w32_initialize): Initialize it.
2606 (w32_native_per_char_metric): Allow a couple of extra pixels when
2607 Cleartype is active.
2608
2609 * w32term.c (w32_initialize): Move check for screen reader here
2610 from syms_of_w32term.
2611
2612 2005-06-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2613
2614 * xterm.c (handle_one_xevent): bzero compose_status when nbytes
2615 is not zero.
2616
2617 2005-07-01 Masatake YAMATO <jet@gyve.org>
2618
2619 * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
2620
2621 2005-06-30 Juri Linkov <juri@jurta.org>
2622
2623 * xdisp.c (x_draw_vertical_border): If left fringe is not present
2624 decrease x coord of vertical border by 1 pixel to not occupy text
2625 area of the right window.
2626
2627 * xterm.c (x_draw_vertical_window_border): Use foreground of
2628 VERTICAL_BORDER_FACE_ID for vertical border line.
2629
2630 * term.c (turn_on_face): In standout mode apply specified
2631 fg to bg, and specified bg to fg (this makes the logic of
2632 inversion on terminal consistent with X).
2633
2634 2005-06-29 Juanma Barranquero <lekktu@gmail.com>
2635
2636 * eval.c (user_variable_p_eh): New function.
2637 (Fuser_variable_p): Use it. Clarify docstring.
2638 Return t for aliases of user options, nil for alias loops.
2639
2640 2005-06-27 Richard M. Stallman <rms@gnu.org>
2641
2642 * eval.c (Fdefvar): Improve error message.
2643
2644 2005-06-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2645
2646 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
2647 change.
2648
2649 2005-06-27 Juanma Barranquero <lekktu@gmail.com>
2650
2651 * eval.c (Fdefvar): Don't try to set constant symbols.
2652
2653 2005-06-25 Richard M. Stallman <rms@gnu.org>
2654
2655 * macfns.c (Fx_show_tip): Pass new arg to try_window.
2656
2657 * w32fns.c (Fx_show_tip): Pass new arg to try_window.
2658
2659 * xfns.c (Fx_show_tip): Pass new arg to try_window.
2660
2661 * xdisp.c (try_window): New arg CHECK_MARGINS. Calls changed.
2662 (redisplay_window): Handle try_window reporting point in scroll margin.
2663
2664 * dispextern.h (try_window): Declare new arg.
2665
2666 * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
2667 Use fchmod to copy the file modes.
2668 (Frename_file): Don't copy UID and GID here;
2669 instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
2670
2671 * eval.c (call_debugger): Take full care of extending stack limits
2672 to make space for the debugger, and restore the change afterward.
2673 Bind debug-on-error to nil.
2674 (restore_stack_limits): New subroutine.
2675 (Fsignal): Extend specpdl bound along with eval depth bound,
2676 for calling edebug. Don't do either one, for calling debugger.
2677 (find_handler_clause): Don't bind debug-on-error here.
2678 Don't unbind anything either.
2679 Temporarily advance max_specpdl_size for calling
2680 internal_with_output_to_temp_buffer.
2681 (grow_specpdl): Don't alter max_specpdl_size before signaling
2682 an error.
2683 (syms_of_eval) <max-specpdl-size>: Doc fix.
2684
2685 * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
2686
2687 2005-06-24 Eli Zaretskii <eliz@gnu.org>
2688
2689 * fileio.c (Frename_file): Undo last change: no need to ifdef away
2690 chown on DOS_NT platforms.
2691
2692 * w32.c (sys_chown): New function.
2693
2694 * s/ms-w32.h (chown): New; define to sys_chown.
2695
2696 2005-06-24 Juanma Barranquero <lekktu@gmail.com>
2697
2698 * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
2699 (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
2700
2701 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
2702
2703 2005-06-23 Richard M. Stallman <rms@gnu.org>
2704
2705 * xdisp.c (get_next_display_element): Finish reversing the tests of
2706 Vnobreak_char_display.
2707
2708 * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
2709 All uses changed.
2710 (Qnobreak_space): Rename from Qno_break_space. All uses changed.
2711 (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
2712
2713 * fileio.c (Frename_file): Preserve owner and group, if possible,
2714 when copying.
2715
2716 2005-06-23 Juanma Barranquero <lekktu@gmail.com>
2717
2718 * abbrev.c (Funexpand_abbrev):
2719 * category.c (Fmake_category_set):
2720 * dispnew.c (Fsleep_for, Fsit_for):
2721 * editfns.c (Fsubst_char_in_region):
2722 * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
2723 * frame.c (make_frame_without_minibuffer):
2724 * lread.c (read_vector):
2725 * macfns.c (check_x_frame):
2726 * process.c (Fstop_process, Fcontinue_process):
2727 * search.c (Freplace_match):
2728 * syntax.c (Fstring_to_syntax):
2729 * w32fns.c (check_x_frame, check_x_display_info):
2730 * xfaces.c (x_supports_face_attributes_p):
2731 * xselect.c (Fx_own_selection_internal): Follow error conventions.
2732
2733 * image.c (fn_png_init_io): Don't define it.
2734 (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
2735 (png_read_from_file): New function, based on png_read_from_memory.
2736 (png_load): Use it, instead of fn_png_init_io.
2737
2738 2005-06-23 Kim F. Storm <storm@cua.dk>
2739
2740 * search.c (Fmatch_data): Remove evaporate option.
2741 (Fset_match_data): Do not mention evaporate option in doc string.
2742 Add commentary explaining evaporate arg (for internal use only).
2743 (unwind_set_match_data): Add comment on evaporate use.
2744
2745 2005-06-22 Miles Bader <miles@gnu.org>
2746
2747 * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
2748 (realize_basic_faces, syms_of_xfaces): Update references to it.
2749 * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
2750 to `VERTICAL_BORDER_FACE_ID'.
2751 * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
2752
2753 2005-06-21 Juri Linkov <juri@jurta.org>
2754
2755 * dispextern.h: Add extern Qframe_set_background_mode.
2756
2757 * xfaces.c: Rename obsolete function Qframe_update_face_colors to
2758 Qframe_set_background_mode.
2759
2760 * frame.c (Fmodify_frame_parameters):
2761 Call frame-set-background-mode after changing the background color
2762 on non-window non-dos branch.
2763
2764 2005-06-21 Juanma Barranquero <lekktu@gmail.com>
2765
2766 * fns.c (Fchar_table_range):
2767 * process.c (Fmake_network_process): Fix spellings.
2768
2769 2005-06-20 Kim F. Storm <storm@cua.dk>
2770
2771 * fns.c (Fsort): Doc fix.
2772
2773 2005-06-20 Miles Bader <miles@gnu.org>
2774
2775 * xfaces.c (Qvertical_divider): New variable.
2776 (realize_basic_faces): Realize its face.
2777 (syms_of_xfaces): Initialize it.
2778
2779 * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
2780
2781 * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
2782 window-separator on ttys using `vertical-divider' face by default.
2783
2784 2005-06-17 Richard M. Stallman <rms@gnu.org>
2785
2786 * xdisp.c (get_next_display_element):
2787 Reverse test of Vshow_nonbreak_escape.
2788
2789 * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
2790 (Ftty_no_underline): New function.
2791 (syms_of_term): defsubr it.
2792
2793 * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
2794
2795 * dispnew.c (spec_glyph_lookup_face): New function.
2796 (build_frame_matrix_from_leaf_window): Use it.
2797
2798 * dispextern.h (spec_glyph_lookup_face): Add declaration.
2799
2800 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2801
2802 2005-06-12 Richard M. Stallman <rms@gnu.org>
2803
2804 * keyboard.c (read_char): After catching a longjmp,
2805 call restore_getcjmp.
2806
2807 2005-06-17 Juanma Barranquero <lekktu@gmail.com>
2808
2809 * xselect.c (lisp_data_to_selection_data): Fix spelling.
2810
2811 2005-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2812
2813 * macterm.c (mac_compute_glyph_string_overhangs): Don't set
2814 overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
2815 [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
2816 events.
2817 (XTread_socket): Don't pass keyboard events with the option
2818 modifier to the system when Vmac_command_key_is_meta is nil or
2819 Vmac_option_modifier is non-nil.
2820 [USE_CARBON_EVENTS] (read_socket_inev): New variable.
2821 [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
2822 [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
2823 handler function.
2824 (install_window_handler) [USE_CARBON_EVENTS]: Install it.
2825 (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
2826 handler part to mac_handle_mouse_event.
2827
2828 2005-06-14 Juanma Barranquero <lekktu@gmail.com>
2829
2830 * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
2831 NEW-ALIAS and BASE-VARIABLE, respectively.
2832
2833 2005-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
2834
2835 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
2836 (get_phys_cursor_geometry, format_mode_line_unwind_data)
2837 (get_line_height_property, x_produce_glyphs): Remove unused vars.
2838
2839 * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
2840
2841 2005-06-13 Eli Zaretskii <eliz@gnu.org>
2842
2843 * w32term.c (x_use_underline_position_properties): New variable.
2844 (x_draw_glyph_string): Remind in a comment to change doc string of
2845 x-use-underline-position-properties if/when underline positioning
2846 is implemented.
2847 (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
2848 and initialize it to nil.
2849
2850 2005-06-12 Jason Rumney <jasonr@gnu.org>
2851
2852 * w32fns.c (NEWOPENFILENAME): New struct.
2853 (Fx_file_dialog): Use it to trick the system into giving us up to
2854 date dialogs on systems that are documented to support it.
2855 Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
2856
2857 2005-06-12 Eli Zaretskii <eliz@gnu.org>
2858
2859 * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
2860 MB_ABORTRETRYIGNORE. Never return, even if DebugBreak does.
2861
2862 2005-06-11 Eli Zaretskii <eliz@gnu.org>
2863
2864 * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
2865 to CreateDIBSection to avoid a compiler warning.
2866 (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
2867 warning.
2868 (png_load): Cast return values of fn_png_create_read_struct and
2869 fn_png_create_info_struct, to avoid compiler warnings on W32.
2870 Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
2871 to avoid compiler warnings.
2872 (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
2873 compiler warning on W32. Cast 3rd arg to IMAGE_BACKGROUND to
2874 avoid a compiler warning.
2875 (tiff_load): Cast return values of fn_TIFFOpen and
2876 fn_TIFFClientOpen to avoid compiler warning on W32. Cast 3rd arg
2877 to IMAGE_BACKGROUND to avoid a compiler warning.
2878 (gif_load): Cast return values of fn_DGifOpenFileName and
2879 fn_DGifOpen to avoid compiler warnings on W32. Cast 3rd arg to
2880 IMAGE_BACKGROUND to avoid a compiler warning.
2881 (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
2882 before redefining.
2883
2884 * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
2885 the call to CreateDIBSection, to avoid a compiler warning.
2886
2887 2005-06-11 Jason Rumney <jasonr@gnu.org>
2888
2889 * w32fns.c (Fx_file_dialog): Unblock input before falling back to
2890 minibuffer.
2891 * macfns.c (Fx_file_dialog): Likewise.
2892
2893 2005-06-10 Eli Zaretskii <eliz@gnu.org>
2894
2895 * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
2896
2897 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
2898
2899 * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
2900 * w32fns.c (syms_of_w32fns): Fix spellings.
2901
2902 2005-06-10 Eli Zaretskii <eliz@gnu.org>
2903
2904 * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
2905 `verbose'; print diagnostic messages only if it is non-zero.
2906 All callers changed to pass a zero value unless DEBUG_DUMP is defined
2907 in the environment.
2908 (copy_executable_and_dump_data): Print section names with %.8s.
2909
2910 2005-06-10 Masatake YAMATO <jet@gyve.org>
2911
2912 * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
2913 when mouse_face is not given.
2914
2915 2005-06-09 Luc Teirlinck <teirllm@auburn.edu>
2916
2917 * window.c (Fselect_window): Adapt call to Fselect_frame.
2918
2919 * lisp.h: Update EXFUN of Fselect_frame.
2920
2921 * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
2922
2923 * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
2924 no_enter.
2925 (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
2926 Adapt to above change.
2927
2928 2005-06-10 Juanma Barranquero <lekktu@gmail.com>
2929
2930 * fns.c (Fmemq, Fmaphash): Doc fixes.
2931
2932 2005-06-09 Juanma Barranquero <lekktu@gmail.com>
2933
2934 * xfaces.c (Fdisplay_supports_face_attributes_p):
2935 Fix typo in docstring.
2936
2937 2005-06-08 Steven Tamm <steventamm@mac.com>
2938
2939 * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
2940 used by gcc4 on intel mac.
2941
2942 2005-06-09 Kim F. Storm <storm@cua.dk>
2943
2944 * search.c (Fmatch_data): Add optional RESEAT arg. Unchain markers
2945 in REUSE list if non-nil; free them if equal to evaporate.
2946 (Fset_match_data): Add optional RESEAT arg. Unchain markers in LIST
2947 if non-nil; free them if equal to evaporate. Use XCAR/XCDR.
2948 (restore_search_regs): Rename from restore_match_data. Uses changed.
2949 (unwind_set_match_data): New function.
2950 (record_unwind_save_match_data): New function like save-match-data.
2951
2952 * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
2953 (record_unwind_save_match_data): Add prototype.
2954 (restore_search_regs): Rename from restore_match_data.
2955
2956 * composite.c (compose_chars_in_text):
2957 * eval.c (do_autoload):
2958 * macmenu.c (set_frame_menubar):
2959 * process.c (read_process_output, exec_sentinel):
2960 * xmenu.c (set_frame_menubar):
2961 * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
2962 * w32menu.c (set_frame_menubar):
2963 Use record_unwind_save_match_data.
2964
2965 2005-06-08 Richard M. Stallman <rms@gnu.org>
2966
2967 * xdisp.c (get_next_display_element): Alter previous change:
2968 Distinguish Vshow_nonbreak_escape = t or not t.
2969 For t, use escape_glyph once again, as before previous change.
2970 Use space or hyphen for display, instead of the non-ASCII char.
2971 (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
2972
2973 * process.c (Fstart_process): Don't touch command_channel_p slot.
2974
2975 * process.h (struct process): Delete command_channel_p.
2976
2977 2005-06-07 Masatake YAMATO <jet@gyve.org>
2978
2979 * xdisp.c (note_mode_line_or_margin_highlight):
2980 Check the overlapping of re-rendering area to avoid flickering.
2981 (note_mouse_highlight): Call clear_mouse_face if PART
2982 is not ON_MODE_LINE nor ON_HEADER_LINE.
2983
2984 2005-06-07 Kim F. Storm <storm@cua.dk>
2985
2986 * process.c: Improve commentary for adaptive read buffering.
2987
2988 2005-06-06 Stefan Monnier <monnier@iro.umontreal.ca>
2989
2990 * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
2991 if available.
2992
2993 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
2994
2995 * macmenu.c (menu_quit_handler, install_menu_quit_handler):
2996 New functions for popping down menus on C-g.
2997 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
2998
2999 * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
3000 non-static.
3001
3002 * config.in: Add HAVE_CANCELMENUTRACKING.
3003
3004 2005-06-06 Eli Zaretskii <eliz@gnu.org>
3005
3006 * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
3007
3008 * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
3009
3010 * w32proc.c (RVA_TO_PTR): New macro.
3011
3012 * w32heap.c (RVA_TO_PTR): No need to #undef now.
3013
3014 * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
3015 Depend on w32heap.h.
3016
3017 2005-06-06 Luc Teirlinck <teirllm@auburn.edu>
3018
3019 * keyboard.c (command_loop_1): Update Vthis_original_command.
3020
3021 2005-06-06 Richard M. Stallman <rms@gnu.org>
3022
3023 * xmenu.c (popup_get_selection): Undo previous change.
3024
3025 2005-06-06 Juri Linkov <juri@jurta.org>
3026
3027 * xdisp.c (Qno_break_space): New variable.
3028 (syms_of_xdisp): Initialize it.
3029 (get_next_display_element): Add no-break space and soft hypen
3030 codes for iso8859-2 and iso8859-5. Don't add `\' for them.
3031 Use `no-break-space' face for no-break spaces.
3032
3033 2005-06-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3034
3035 * window.c (delete_window): Handle the case where a h/vchild has
3036 a h/vchild.
3037
3038 2005-06-05 Eli Zaretskii <eliz@gnu.org>
3039
3040 * w32.c (sys_setsockopt): Change arg 4 to `const void *'. In the
3041 call to pfn_setsockopt, cast optval to `const char *'.
3042
3043 2005-06-04 Eli Zaretskii <eliz@gnu.org>
3044
3045 * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
3046 (open_unc_volume): Cast return value of map_w32_filename, to avoid
3047 compiler warnings.
3048
3049 * s/ms-w32.h (fileno): Don't define if already defined.
3050
3051 * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
3052
3053 * makefile.w32-in (DOC): Define to point to the generated DOC-X.
3054
3055 2005-06-04 Richard M. Stallman <rms@gnu.org>
3056
3057 * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
3058
3059 2005-06-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3060
3061 * macmenu.c (cleanup_popup_menu): New function.
3062 (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
3063 mac_menu_show Quit:s.
3064 (mac_menu_show): Quit on cancel if not popped up on click (i.e.
3065 a dialog).
3066
3067 2005-06-04 Kim F. Storm <storm@cua.dk>
3068
3069 * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
3070
3071 * callproc.c (Fcall_process): Don't use alloca to gradually
3072 increase size of buf, as it effectively uses twice the necessary
3073 space on the stack. Instead, pre-allocate buf of full size, and
3074 gradually increase the read size.
3075
3076 * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
3077
3078 * eval.c (unbind_to): Preserve value of Vquit_flag.
3079
3080 * xterm.c (handle_one_xevent): Also ignore mouse motion just
3081 before a button release event.
3082
3083 2005-06-03 Juanma Barranquero <lekktu@gmail.com>
3084
3085 * xfaces.c (Finternal_lisp_face_equal_p): Really report
3086 on faces in a frame, if the argument FRAME is non-nil.
3087 Improve argument/docstring consistency.
3088
3089 2005-06-02 Kim F. Storm <storm@cua.dk>
3090
3091 * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
3092 (x_consider_frame_title, Fformat_mode_line): Save offset into
3093 mode_line_noprop_buf rather than pointer, in case buffer is relocated.
3094
3095 2005-06-01 Kim F. Storm <storm@cua.dk>
3096
3097 * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
3098
3099 2005-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3100
3101 * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
3102 resolution fields for scalable fonts to 0.
3103
3104 * xfaces.c (build_scalable_font_name): Round pixel size to the
3105 nearest integer.
3106
3107 2005-06-01 Kim F. Storm <storm@cua.dk>
3108
3109 * xdisp.c (display_mode_line): Support nested calls to redisplay
3110 and format-mode-line. Set mode_line_target to MODE_LINE_DISPLAY.
3111
3112 2005-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3113
3114 * fileio.c (Finsert_file_contents):
3115 * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
3116
3117 2005-05-31 Kim F. Storm <storm@cua.dk>
3118
3119 * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
3120 (mode_line_noprop_ptr): Rename from frame_title_*.
3121 (store_mode_line_noprop_char): Rename from store_frame_title_char.
3122 (store_mode_line_noprop): Rename from store_frame_title.
3123 (mode_line_target): New enum to specify current output target
3124 for mode line formatting.
3125 (display_mode_element): Test it rather than frame_title_ptr and
3126 mode_line_string_list to determine where output should go.
3127 (mode_line_proptrans_alist, mode_line_string_alist): Make static.
3128 (Vmode_line_unwind_vector): New variable.
3129 (format_mode_line_unwind_data, unwind_format_mode_line):
3130 New functions for unwind protection in mode line formatting.
3131 (x_consider_frame_title): Use them and new local var 'title_start'
3132 to support nested calls to format-mode-line and redisplay.
3133 Set mode_line_target to MODE_LINE_TITLE.
3134 (Fformat_mode_line): Use them and new local var 'string_start' to
3135 support nested calls to format-mode-line and redisplay.
3136 Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
3137 Don't trim trailing dashes.
3138 (decode_mode_spec): Don't make infinite number of trailing dashes
3139 for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
3140 (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
3141 mode_line_string_face_prop, and Vmode_line_unwind_vector.
3142 (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
3143 Initialize mode_line_target to MODE_LINE_DISPLAY.
3144
3145 2005-05-29 Richard M. Stallman <rms@gnu.org>
3146
3147 * buffer.c (Fbuffer_local_value): Call indirect_variable.
3148
3149 2005-05-28 Masatake YAMATO <jet@gyve.org>
3150
3151 * xdisp.c (note_mode_line_or_margin_highlight): Change the
3152 pointer to a hand cursor when hoovering over a mouse-face.
3153
3154 2005-05-27 Kenichi Handa <handa@m17n.org>
3155
3156 * xterm.c (x_encode_char): Call check_ccl_update in advance.
3157
3158 * ccl.c: Now an element of Vccl_program_table is a vector of
3159 length 4, not 3.
3160 (ccl_get_compiled_code): New arg idx. Caller changed.
3161 Adjust for the change of Vccl_program_table.
3162 (setup_ccl_program): Adjust for the change of Vccl_program_table.
3163 (check_ccl_update): New function.
3164 (Fregister_ccl_program): Use ASET to set an element of a vector.
3165 Adjusted for the change of Vccl_program_table.
3166
3167 * ccl.h (struct ccl_program): New member idx.
3168 (check_ccl_update): Extern it.
3169
3170 2005-05-27 Juanma Barranquero <lekktu@gmail.com>
3171
3172 * image.c (Vimage_library_alist): Move from image.el.
3173 (syms_of_image): Defvar it.
3174 (lookup_image_type): Use it.
3175
3176 * buffer.c (Fbuffer_local_value): Make argument name match its use
3177 in docstring.
3178
3179 2005-05-26 Juanma Barranquero <lekktu@gmail.com>
3180
3181 * keyboard.c (Frecursive_edit): Fix typo in docstring.
3182 (Fposn_at_x_y): Make argument name match its use in docstring.
3183
3184 2005-05-26 Lute Kamstra <lute@gnu.org>
3185
3186 * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
3187
3188 2005-05-24 Masatake YAMATO <jet@gyve.org>
3189
3190 * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
3191 as loop sentinels.
3192
3193 2005-05-24 Nick Roberts <nickrob@snap.net.nz>
3194
3195 * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
3196 select frame title ("Question"/"Information").
3197 (xdialog_show): Use it.
3198
3199 * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
3200
3201 * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
3202
3203 * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
3204 a third argument (Qnil).
3205
3206 * lisp.h: x-popup-dialog can have three arguments.
3207
3208 * editfns.c (Fmessage_box): Use "Information" for frame title.
3209
3210 2005-05-23 Thien-Thi Nguyen <ttn@gnu.org>
3211
3212 * termcap.c [VMS]: Include <starlet.h>.
3213
3214 2005-05-23 Masatake YAMATO <jet@gyve.org>
3215
3216 * xdisp.c (note_mode_line_or_margin_highlight): Add code
3217 for mouse-face. Change the type of the first argument from `window'
3218 to `Lisp_Object'.
3219 (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
3220 window instead of w.
3221
3222 2005-05-22 Andreas Schwab <schwab@suse.de>
3223
3224 * process.c (send_process): Move misplaced volatile.
3225
3226 2005-05-21 Richard M. Stallman <rms@gnu.org>
3227
3228 * xdisp.c (display_mode_element): If we're processing a list and
3229 padding is specified, put it after the last element.
3230
3231 2005-05-21 Eli Zaretskii <eliz@gnu.org>
3232
3233 * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
3234 "superroot" on DOS_NT systems.
3235
3236 2005-05-21 David Hunter <hunterd42@comcast.net> (tiny change)
3237
3238 * process.c (send_process): Restore the SIGPIPE handler if we
3239 catch a SIGPIPE.
3240
3241 2005-05-20 Juanma Barranquero <lekktu@gmail.com>
3242
3243 * image.c (lookup_image, png_read_from_memory): Remove hacks (and
3244 misleading comments).
3245 (DEF_IMGLIB_FN): Use C calling convention for image libraries.
3246
3247 2005-05-20 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
3248
3249 * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
3250 Correct the right value.
3251
3252 2005-05-19 Nick Roberts <nickrob@snap.net.nz>
3253
3254 * keyboard.c (syms_of_keyboard): Remove Lisp variables
3255 post-command-idle-hook and post-command-idle-delay.
3256 (command_loop_1): Don't try to execute post-command-idle-hook.
3257
3258 2005-05-16 Kim F. Storm <storm@cua.dk>
3259
3260 * xdisp.c (handle_display_prop): Handle empty replacement.
3261 (handle_single_display_spec): Return -1 for empty replacement.
3262
3263 * keyboard.c (adjust_point_for_property): Skip empty overlay string.
3264
3265 * .gdbinit (pitx): Print more info about iterator.
3266
3267 2005-05-16 Andreas Schwab <schwab@suse.de>
3268
3269 * unexmacosx.c (unexec_realloc): Move declarations before statements.
3270
3271 2005-05-14 Richard M. Stallman <rms@gnu.org>
3272
3273 * xdisp.c (message3): Call cancel_echoing.
3274
3275 * alloc.c (Fmemory_full_p): New function.
3276 (syms_of_alloc): defsubr it.
3277
3278 * process.c (send_process_trap): Unblock SIGPIPE.
3279 (send_process): Reset SIGPIPE handler before reporting error.
3280
3281 2005-05-14 Nick Roberts <nickrob@snap.net.nz>
3282
3283 * emacs.c (syms_of_emacs): Fix doc string for system-type.
3284
3285 2005-05-13 Richard M. Stallman <rms@gnu.org>
3286
3287 * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
3288 (Finsert_file_contents): If we read 0 bytes from a special file,
3289 unlock the visited file if we locked it.
3290 (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
3291 (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
3292
3293 2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3294
3295 * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
3296
3297 * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
3298 Regard toolkit scroll bar thumb drag events as squeezable and prevent
3299 redisplay from being paused by them.
3300
3301 * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
3302 [!MAC_OSX] (target_ticks): Remove variable.
3303 [!MAC_OSX] (check_alarm, pause, index): Remove functions.
3304 [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
3305 [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3306 event occurs before timeout, behave as if the function were interrupted.
3307 [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
3308 handling using Time Manager routines.
3309 [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
3310 New variables.
3311 [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
3312 (setitimer): New functions.
3313
3314 * macfns.c, macmenu.c: Don't include signal.h.
3315
3316 * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
3317 Rename from get_control_part_bound. All callers changed.
3318 (x_scroll_bar_clear): New function.
3319 (x_clear_frame): Use it.
3320 (XTset_vertical_scroll_bar): Don't call Draw1Control.
3321 (x_scroll_bar_handle_click): Change type of second argument from
3322 int to ControlPartCode.
3323 (check_alarm): Remove declaration.
3324 (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
3325 (XTread_socket): Use ControlPartCode instead of SInt16.
3326
3327 2005-05-13 Nozomu Ando <nand@mac.com>
3328
3329 * unexmacosx.c: Include assert.h.
3330 (MACOSX_MALLOC_MULT16): New define.
3331 [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
3332 ptr is in unexec regions by checking it is multiple of 16.
3333 (unexec_malloc_header_t): New typedef.
3334 (unexec_malloc, unexec_realloc, unexec_free): Store and use
3335 allocated size information in unexec_malloc_header.
3336
3337 2005-05-10 Richard M. Stallman <rms@gnu.org>
3338
3339 * xterm.c (noinclude): Add #undef.
3340
3341 * image.c, xfns.c, xmenu.c: Don't include signal.h.
3342
3343 2005-05-09 Juanma Barranquero <lekktu@gmail.com>
3344
3345 * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
3346 (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
3347 Doc fixes.
3348
3349 * dired.c (Ffile_name_completion): Make argument name
3350 match its use in docstring.
3351
3352 2005-05-08 Luc Teirlinck <teirllm@auburn.edu>
3353
3354 * eval.c (Fdefvaralias): Remove any pre-existing
3355 variable-documentation property of the alias.
3356
3357 2005-05-07 Thien-Thi Nguyen <ttn@gnu.org>
3358
3359 * xfns.c (start_hourglass): Do nothing when running on a tty.
3360
3361 2005-05-07 Juanma Barranquero <lekktu@gmail.com>
3362
3363 * fns.c (Fchar_table_range): Fix typos in docstring.
3364
3365 2005-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
3366
3367 * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
3368
3369 2005-05-06 Eli Zaretskii <eliz@gnu.org>
3370
3371 * lread.c (Flocate_file_internal): Doc fix.
3372
3373 * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
3374
3375 2005-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3376
3377 * macselect.c (x_own_selection): Accept Lisp string as result of
3378 selection converter function.
3379 (x_clear_frame_selections): Don't call x-lost-selection-functions
3380 if Emacs is not owner of the selection.
3381 (Vmac_services_selection): Put variable and initialization in
3382 #ifdef MAC_OSX.
3383 (syms_of_macselect) [MAC_OSX]: Set default value of
3384 Vmac_services_selection to PRIMARY.
3385
3386 * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
3387 (mac_handle_tool_bar_click): Remove unused function and declaration.
3388 [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
3389 (install_scroll_bar_timer, set_scroll_bar_timer)
3390 (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
3391 (get_control_part_bound, x_scroll_bar_handle_press)
3392 (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
3393 (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
3394 [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
3395 (scroll_bar_timer_event_posted_p): New variables.
3396 [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
3397 (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
3398 (x_scroll_bar_create): Set control reference with NewControl.
3399 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
3400 Initialize track_top and track_height to nil.
3401 (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
3402 Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
3403 (XTset_vertical_scroll_bar): Don't make space between scroll bar
3404 and associated window.
3405 (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
3406 from window config.
3407 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3408 Set track_top and track_height to nil when scroll bar size is changed.
3409 Recalculate them if they are nil.
3410 (XTread_socket) [MAC_OSX]: Use control kind to determine if the
3411 clicked control is a scroll bar.
3412 (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
3413 event handler functions. Don't add modifiers to scroll bar click
3414 events. Call scroll bar release handler when window is deactivated.
3415 (mac_initialize): Remove unused code for X toolkit.
3416 (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
3417 Initialize Vx_toolkit_scroll_bars to nil.
3418
3419 * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3420 New members track_top and track_height.
3421
3422 * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
3423 init_process when including sys/select.h.
3424
3425 2005-05-05 Luc Teirlinck <teirllm@auburn.edu>
3426
3427 * eval.c (Fdefvaralias): Doc fix.
3428
3429 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
3430
3431 2005-05-05 Kim F. Storm <storm@cua.dk>
3432
3433 * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
3434 default value.
3435 (syms_of_buffer): Add default-cursor-in-non-selected-windows.
3436 Fix type of cursor-in-non-selected-windows.
3437
3438 2005-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3439
3440 * mac.c: #undef init_process so not to conflict with system headers.
3441
3442 2005-05-02 Richard M. Stallman <rms@gnu.org>
3443
3444 * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
3445
3446 * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
3447
3448 * xdisp.c (Vcursor_in_non_selected_windows)
3449 (Qcursor_in_non_selected_windows): Vars deleted.
3450 (syms_of_xdisp): Don't initialize them.
3451 (get_window_cursor_type): Use cursor_in_non_selected_windows
3452 buffer slot.
3453
3454 2005-05-02 Kim F. Storm <storm@cua.dk>
3455
3456 * macros.c (executing_kbd_macro_index): Rename from
3457 executing_macro_index. All uses changed.
3458 (executing_kbd_macro_iterations): Rename from
3459 executing_macro_iterations. All uses changed.
3460 (executing_kbd_macro): Rename from executing_macro.
3461 All uses changed.
3462 (syms_of_macros): Rename Lisp var executing-macro-index to
3463 executing-kbd-macro-index.
3464
3465 * xdisp.c (move_it_in_display_line_to): Fix last change.
3466
3467 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
3468
3469 * xmenu.c (Fx_popup_menu): Doc fix.
3470
3471 * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
3472
3473 2005-05-02 Jason Rumney <jasonr@gnu.org>
3474
3475 * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
3476
3477 2005-05-02 Nozomu Ando <nand@mac.com>
3478
3479 * sysselect.h: Fix typo.
3480
3481 2005-05-02 Nick Roberts <nickrob@snap.net.nz>
3482
3483 * charset.c (Fchars_in_region): Remove as obsolete.
3484
3485 2005-05-01 Kim F. Storm <storm@cua.dk>
3486
3487 * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
3488 TO_CHARPOS. This may happen if last glyphs was an image or stretch
3489 glyph.
3490
3491 2005-05-01 Luc Teirlinck <teirllm@auburn.edu>
3492
3493 * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
3494
3495 2005-05-01 Richard M. Stallman <rms@gnu.org>
3496
3497 * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
3498 If user cancels the menu, quit unless FOR_CLICK.
3499
3500 * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
3501 All uses changed.
3502 (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
3503 * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
3504 * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
3505 * commands.h (Vexecuting_kbd_macro): Likewise.
3506
3507 2005-05-01 Thien-Thi Nguyen <ttn@gnu.org>
3508
3509 * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
3510
3511 2005-04-30 Richard M. Stallman <rms@gnu.org>
3512
3513 * fileio.c (Ffind_file_name_handler): Handle the `operations'
3514 property of the file name handler.
3515 (Qoperations): New variable.
3516 (syms_of_fileio): Initialize and staticpro it.
3517
3518 * xdisp.c (set_message_1): Delete xassert.
3519
3520 2005-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3521
3522 * mac.c: Don't include time.h. Include sysselect.h after systime.h.
3523
3524 * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
3525
3526 * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
3527 before/after including Carbon.h if there is a working mktime.
3528
3529 2005-04-28 Kim F. Storm <storm@cua.dk>
3530
3531 * xfaces.c (resolve_face_name): Add arg SIGNAL_P. Calls changed.
3532 Fix cyclic alias check. If alias loop is detected, signal
3533 circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
3534
3535 2005-04-28 Lute Kamstra <lute@gnu.org>
3536
3537 * eval.c (do_autoload): Record only autoloads in the autoload
3538 property of symbols.
3539
3540 2005-04-28 Nick Roberts <nickrob@snap.net.nz>
3541
3542 * emacs.c (USAGE1): Add --basic-display and --quick options.
3543
3544 2005-04-27 Kim F. Storm <storm@cua.dk>
3545
3546 * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
3547
3548 2005-04-26 Richard M. Stallman <rms@gnu.org>
3549
3550 * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
3551 (syms_of_window): Doc fixes.
3552
3553 * indent.c (Fvertical_motion): Undo previous change.
3554
3555 2005-04-26 Kenichi Handa <handa@m17n.org>
3556
3557 * fns.c (char_table_range): New function.
3558 (Fchar_table_range): Signal an error if characters in the range
3559 have inconsistent values. Don't check the parent.
3560
3561 2005-04-25 Kenichi Handa <handa@m17n.org>
3562
3563 * fontset.c (fontset_set): Fix previous change.
3564
3565 2005-04-24 Richard M. Stallman <rms@gnu.org>
3566
3567 * indent.c (Fvertical_motion): Bind fontification-functions to nil.
3568
3569 2005-04-24 Eli Zaretskii <eliz@gnu.org>
3570
3571 * regex.c (re_search_2, re_match_2_internal): Convert second arg
3572 of RE_TRANSLATE to int, to shut up GCC warnings.
3573
3574 * fileio.c (Fcopy_file): Doc fix.
3575 [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
3576 not needed.
3577
3578 2005-04-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3579
3580 * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
3581 (SOME_MACHINE_OBJECTS): Likewise.
3582 (mac.o): Depend on ccl.h.
3583 (macselect.o): New target.
3584
3585 * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
3586 Call syms_of_macselect.
3587
3588 * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
3589
3590 * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
3591 (QCLIPBOARD): Remove variable.
3592 (syms_of_mac): Don't initialize it.
3593 (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
3594 Remove functions.
3595 (syms_of_mac): Don't defsubr them.
3596 [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
3597 (QHFS_plus_D, QHFS_plus_C): New variables.
3598 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3599 [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
3600 (cfstring_create_normalized): New functions.
3601 [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
3602 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3603
3604 * macterm.c (handling_window_update, terminate_flag):
3605 Remove variables.
3606 (do_window_update, do_ae_quit_application, XTread_socket):
3607 Don't use them.
3608 (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
3609 [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
3610 (init_service_handler): Move to macselect.c. Remove declarations.
3611 [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
3612 (Qapplication, Qabout): New variables.
3613 (syms_of_mac): Initialize them.
3614 [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
3615 (Qperform): New variables.
3616 (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
3617 (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
3618 (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
3619 (mac_store_application_menu_event, init_menu_bar): New functions.
3620 [USE_CARBON_EVENTS] (mac_handle_command_event)
3621 (init_command_handler): New functions.
3622 (mac_handle_window_event): Return noErr on window update event.
3623 (do_ae_quit_application): Call mac_store_application_menu_event.
3624 (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
3625 and init_menu_bar.
3626
3627 * macterm.h (x_clear_frame_selections): Add extern.
3628
3629 * macselect.c: New file for selection processing on Mac OS.
3630
3631 2005-04-23 Richard M. Stallman <rms@gnu.org>
3632
3633 * fileio.c (Fcopy_file): New arg MUSTBENEW.
3634 (Frename_file): Pass new arg to Fcopy_file.
3635
3636 * window.c (window_size_fixed): Variable deleted.
3637 (syms_of_window): Initialize window-size-fixed to nil.
3638 But don't DEFVAR window_size_fixed.
3639
3640 2005-04-23 Andreas Schwab <schwab@suse.de>
3641
3642 * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
3643 (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
3644 use lib64 instead of lib.
3645 (_LP64) [_ARCH_PPC64]: Define if not defined.
3646
3647 2005-04-23 David Hunter <hunterd42@comcast.net> (tiny change)
3648
3649 * s/ms-w32.h (HAVE_PWD_H): Define.
3650
3651 2005-04-22 Kenichi Handa <handa@m17n.org>
3652
3653 * fns.c (copy_sub_char_table): Explicitly copy the default value
3654 of the sub-chartable.
3655
3656 * fontset.c (fontset_set): When a sub-chartable is created,
3657 explicitly sets the defalt value.
3658
3659 2005-04-22 Kim F. Storm <storm@cua.dk>
3660
3661 * fns.c (Fplist_get): Replace by Fsafe_plist_get.
3662 (Fsafe_plist_get): Rename to Fplist_get.
3663 (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
3664 (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
3665
3666 * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
3667
3668 * xdisp.c (store_mode_line_string, produce_stretch_glyph)
3669 (note_mode_line_or_margin_highlight, note_mouse_highlight):
3670 Use Fplist_get instead of Fsafe_plist_get.
3671
3672 * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
3673
3674 2005-04-21 Miles Bader <miles@gnu.org>
3675
3676 * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
3677
3678 2005-04-20 Thien-Thi Nguyen <ttn@gnu.org>
3679
3680 * sysdep.c: Remove reference to defunct vms-pwd.h.
3681 * dired.c: Likewise. Also, for pwd.h, use HAVE_PWD_H, not !VMS.
3682 * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
3683
3684 * config.in: Regenerate.
3685
3686 2005-04-20 Kenichi Handa <handa@m17n.org>
3687
3688 * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
3689 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
3690 (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
3691
3692 * alloc.c (make_sub_char_table): Argument changed to initial
3693 value of the slots.
3694
3695 * data.c (Faref): Handle special slots used as default values of
3696 ascii, eight-bit-control, eight-bit-control. Don't ignore a
3697 default value set for a group of characters.
3698 (Faset): Signal an error if IDXVAL is not a valid character code.
3699 Make a sub-chartable with correct initial value.
3700
3701 * fns.c (Fset_char_table_range): Don't set slots used as default
3702 values for ascii, eight-bit-control, eight-bit-graphic.
3703 Don't call Faref with charset-id.
3704 (Fset_char_table_default): Document how to treat normal character
3705 argument. Handle special slots used as default values of ascii,
3706 eight-bit-control, eight-bit-control. Make a sub chartable if
3707 necessary.
3708
3709 2005-04-20 Kenichi Handa <handa@m17n.org>
3710
3711 * search.c (boyer_moore): Fix previous change.
3712
3713 2005-04-19 Kim F. Storm <storm@cua.dk>
3714
3715 * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
3716 face unless last visible char and first invisible char have the
3717 same face. Also use default face if saved_face_id is undefined.
3718
3719 2005-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3720
3721 * macgui.h (MacFontStruct): Remove member `fontname'. Add member
3722 `full_name'.
3723 [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
3724 mac_scriptcode member.
3725
3726 * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
3727 (syms_of_mac): Don't initialize them.
3728 (Vmac_charset_info_alist): New variable.
3729 (syms_of_mac): Defvar it.
3730 (create_text_encoding_info_alist): New function.
3731 (decode_mac_font_name, mac_to_x_fontname)
3732 (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
3733 code the correspondence among XLFD charsets, Mac script codes, and
3734 Emacs coding systems. Use Vmac_charset_info_alist and result of
3735 create_text_encoding_info_alist instead.
3736 (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
3737 routines also on Mac OS Classic.
3738 (init_font_name_table) [!TARGET_API_MAC_CARBON]:
3739 Use add_font_name_table_entry.
3740 (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
3741 specified. Derive unspecified scalable fields from specified one.
3742 (x_list_fonts): Consider Valternate_fontname_alist.
3743 (kDefaultFontSize): Change value from 9 to 12.
3744 (XLoadQueryFont): Get decoded font family, font face, and charset
3745 from x_font_name_to_mac_font_name. Set full name of loaded font.
3746 (mac_unload_font): Free `full_name' member.
3747 (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
3748 NULL. Copy full_name member of struct MacFontStruct to that of
3749 struct font_info.
3750
3751 2005-04-19 Kim F. Storm <storm@cua.dk>
3752
3753 * xdisp.c (handle_stop): Set saved_face_id to current face if
3754 selective_display_ellipsis_p so ellipsis will be shown in same
3755 face as preceding text.
3756 (setup_for_ellipsis): Don't set saved_face_id here.
3757 (next_element_from_display_vector): Default to saved_face_id.
3758
3759 * fns.c (Fsafe_get): New function.
3760 (syms_of_fns): Defsubr it.
3761
3762 * lisp.h (Fsafe_get): EXFUN it.
3763
3764 * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
3765 loops in case of bad face property lists. Limit number of face
3766 alias lookups to 10 (in case of face alias loops).
3767
3768 2005-04-18 Kim F. Storm <storm@cua.dk>
3769
3770 * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
3771 It replaces the corresponding member from struct window, as a
3772 window may now show multiple overlay arrows.
3773 Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
3774
3775 * dispnew.c (row_equal_p, update_window_line, scrolling_window):
3776 Compare overlay_arrow_bitmap than overlay_arrow_p members.
3777
3778 * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
3779 rather than from window.
3780 (update_window_fringes): Compare overlay_arrow_bitmap rather than
3781 overlay_arrow_p members.
3782 (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
3783 if not default.
3784
3785 * window.h (struct window): Remove member overlay_arrow_bitmap.
3786
3787 * window.c (make_window): Don't initialize overlay_arrow_bitmap.
3788
3789 * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
3790 Calls changed. Don't check for overlay-arrow-bitmap property here.
3791 (overlay_arrow_at_row): Remove PBITMAP arg. Instead, if left
3792 fringe is present, return Lisp integer for bitmap (or -1 for default).
3793 Fix value of overlay-arrow-bitmap property to be a symbol, use
3794 lookup_fringe_bitmap to parse it.
3795 (display_line): Change call to overlay_arrow_at_row. Store integer
3796 return value as overlay bitmap in row rather than window.
3797 Only show overlay arrow if row displays text, or if no other overlay
3798 arrow is seen in window (if overlay marker is at point-max).
3799
3800 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
3801
3802 * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
3803
3804 2005-04-18 Lute Kamstra <lute@gnu.org>
3805
3806 * lread.c (Vloads_in_progress): Static.
3807 * fns.c (Vloads_in_progress): Remove extern.
3808 (load_in_progress): Add extern.
3809 (Frequire): Use load_in_progress instead of Vloads_in_progress.
3810
3811 2005-04-18 Thien-Thi Nguyen <ttn@gnu.org>
3812
3813 * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
3814
3815 2005-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3816
3817 * macterm.c (XTread_socket): Don't beep on keyboard input even if
3818 no frame is visible.
3819
3820 2005-04-16 Dan Nicolaescu <dann@ics.uci.edu>
3821
3822 * term.c (struct keys): Add support for shifted keys.
3823
3824 2005-04-16 Richard M. Stallman <rms@gnu.org>
3825
3826 * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
3827 (set_message): Call with_echo_area_buffer with WHICH = 0.
3828 (set_message_1): Erase the echo area buffer first thing.
3829 (echo_area_display): Don't clear echo_message_buffer.
3830
3831 2005-04-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3832
3833 * Makefile.in (mac.o): Depend on charset.h and coding.h.
3834
3835 * mac.c: Include charset.h and coding.h.
3836 [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
3837 [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
3838 [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
3839
3840 * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
3841
3842 * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
3843
3844 * macterm.c (x_autoselect_window_p): Remove variable.
3845 (last_window): New variable.
3846 (XTreassert_line_highlight, x_change_line_highlight):
3847 Remove declarations.
3848 (mac_focus_changed, x_detect_focus_change): New functions and
3849 declarations.
3850 (XTextExtents16, front_emacs_window): Remove function.
3851 (mac_focus_frame): New function.
3852 (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
3853 (mac_check_for_quit_char): Use it instead of front_emacs_window.
3854 (x_scroll_bar_report_motion): Obtain window from control owner.
3855 (x_make_frame_invisible): Set window manager size hint.
3856 (do_mouse_moved): Remove function.
3857 (XTread_socket): Move its contents here. Generate select-window
3858 event on mouse movement if needed. Use x_detect_focus_change on
3859 activate/deactivate events. Don't deiconify frame or invalidate
3860 window rectangle when dnd items are dropped.
3861 Don't activate/deactivate root control.
3862 (frame_highlight, frame_unhighlight): Activate/deactivate root
3863 control here.
3864 (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
3865
3866 * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
3867 New extern.
3868
3869 2005-04-15 Luc Teirlinck <teirllm@auburn.edu>
3870
3871 * Makefile.in: Define new macro TOOLTIP_SUPPORT.
3872 (lisp): Use it.
3873 (SOME_MACHINE_LISP): Add tooltip.
3874
3875 2005-04-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3876
3877 * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
3878 Don't include TextEncodingConverter.h.
3879 (mac_system_script_code, Vmac_system_locale): New variables.
3880 (syms_of_mac): Defvar them.
3881 (mac_get_system_locale): New function.
3882
3883 * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
3884 Use ENCODE_SYSTEM to encode title bar string.
3885 (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
3886 (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
3887 Use CFStringGetSystemEncoding to get system default string encoding.
3888
3889 * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
3890 TextEncodingConverter.h.
3891
3892 2005-04-13 Steven Tamm <steventamm@mac.com>
3893
3894 * macterm.c (syms_of_macterm): Remove redundant definition of
3895 mac-pass-control-to-system.
3896
3897 2005-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
3898
3899 * window.c (Fset_window_configuration): Be careful when you choose
3900 among several possible points for the new_current_buffer.
3901
3902 2005-04-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3903
3904 * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
3905 poll_for_input_1. Set interrupt_input_pending to 1 instead.
3906 (Qlanguage_change) [MAC_OS]: New variable.
3907 (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
3908 (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
3909
3910 * macterm.c (mac_keyboard_text_encoding)
3911 (current_mac_keyboard_text_encoding): Remove variables.
3912 (XTread_socket): Store language-change event if keyboard script change
3913 is detected. Don't convert input to `mac_keyboard_text_encoding'.
3914 (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
3915
3916 * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
3917
3918 2005-04-10 Richard M. Stallman <rms@gnu.org>
3919
3920 * emacs.c (standard_args): Rename --bare-bones to --quick.
3921 Add -D aka --basic-display.
3922
3923 * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
3924
3925 2005-04-09 Richard M. Stallman <rms@gnu.org>
3926
3927 * keymap.c (where_is_internal): Convert a string used as event type
3928 into "(any string)".
3929
3930 * lread.c (Vloads_in_progress): Not static.
3931 * fns.c (Vloads_in_progress): Add extern.
3932 (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
3933
3934 2005-04-09 Thien-Thi Nguyen <ttn@surf.glug.org>
3935
3936 * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
3937
3938 2005-04-09 Lute Kamstra <lute@gnu.org>
3939
3940 * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
3941 within the accessible part of the buffer.
3942
3943 2005-04-09 Kim F. Storm <storm@cua.dk>
3944
3945 * lread.c (readevalloop): Add args START and END as region in
3946 current buffer to read. Callers changed.
3947 When specified, narrow to this region only when reading,
3948 not during eval. Track next point to read from during eval.
3949 Also restore point to "real" buffer position before eval.
3950 (Feval_region): Don't save excursion and restriction here, and
3951 don't narrow to region. Just pass region to readevalloop.
3952 Note: Point is now preserved even when PRINTFLAG is nil.
3953
3954 2005-04-08 Kim F. Storm <storm@cua.dk>
3955
3956 * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
3957
3958 2005-04-06 Kim F. Storm <storm@cua.dk>
3959
3960 * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
3961
3962 2005-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3963
3964 * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
3965 (Fmac_get_preference): Doc fix.
3966
3967 * macfns.c (Fx_create_frame, x_create_tip_frame):
3968 Add "fontset-mac" to fallback font/fontsets.
3969
3970 2005-04-04 Kim F. Storm <storm@cua.dk>
3971
3972 * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
3973
3974 * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
3975 Call it again after autoload.
3976
3977 2005-04-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
3978
3979 * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
3980 mallopt.
3981
3982 * ralloc.c (r_alloc_init): Ditto.
3983
3984 2005-04-01 Kenichi Handa <handa@m17n.org>
3985
3986 * lisp.h (Vascii_upcase_table, Vascii_canon_table)
3987 (Vascii_eqv_table): Extern them.
3988
3989 * casetab.c (set_case_table): If standard is nonzero, setup
3990 Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
3991
3992 * search.c (looking_at_1): Use current_buffer->case_canon_table,
3993 not DOWNCASE_TABLE.
3994 (string_match_1): Likewise.
3995 (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
3996 Vascii_downcase_table.
3997 (fast_string_match_ignore_case): Likewise.
3998 (search_buffer): Fix checking of boyer-moore usability.
3999 (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
4000 No need of tranlating characters in PAT. Fix calculation of
4001 simple_translate.
4002
4003 2005-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
4004
4005 * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
4006 (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
4007 Use XtNtopShadowPixel and XtNbottomShadowPixel.
4008 (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
4009 really work and that breaks with some versions of Xaw3d.
4010
4011 2005-03-31 Kenichi Handa <handa@m17n.org>
4012
4013 * coding.c (syms_of_coding): Fix previous change.
4014
4015 2005-03-30 Stefan Monnier <monnier@iro.umontreal.ca>
4016
4017 * fileio.c (search_embedded_absfilename): Fix last change.
4018
4019 2005-03-25 Kenichi Handa <handa@m17n.org>
4020
4021 * coding.c (syms_of_coding): Suggest to use set-coding-category in
4022 the docstring of coding-category-list.
4023
4024 2005-03-31 Kim F. Storm <storm@cua.dk>
4025
4026 * keyboard.c (Qmouse_fixup_help_message): New var.
4027 (syms_of_keyboard): Intern and staticpro it.
4028 (show_help_echo): Apply mouse-fixup-help-message to help string.
4029
4030 2005-03-30 Kim F. Storm <storm@cua.dk>
4031
4032 * xdisp.c (display_line): Allow multiple overlay arrows in window.
4033
4034 2005-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4035
4036 * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
4037 (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
4038 (Ffile_name_absolute_p): Use it.
4039 (search_embedded_absfilename): New fun, extracted from
4040 Fsubstitute_in_file_name. Use file_name_absolute_p.
4041 Free the pw data after use.
4042 (Fsubstitute_in_file_name): Use it.
4043 After cutting a prefix, re-check file-name-handler.
4044
4045 2005-03-26 Lennart Borgman <lennart.borgman.073@student.lu.se>
4046
4047 * w32term.h (x_output): Add focus_state.
4048
4049 * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
4050 (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
4051
4052 2005-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
4053
4054 * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
4055 Use Fexit_minibuffer.
4056 (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
4057
4058 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4059
4060 * dired.c (Ffile_attributes): Add a missing gcpro.
4061
4062 * alloc.c (make_number): The arg can be bigger than `int'.
4063 * lisp.h (make_number): Make prototype more precise.
4064
4065 * process.c, dired.c (Vfile_name_coding_system)
4066 (Vdefault_file_name_coding_system):
4067 * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
4068 (Vdefault_file_name_coding_system): Remove unused declarations.
4069
4070 2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4071
4072 * xmenu.c (create_and_show_popup_menu): Just remove menu and return
4073 if it failed to pop up (Gnome "show pointer on ctrl" option makes
4074 menus fail to pop up).
4075
4076 2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
4077
4078 * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
4079 Just prepend a backslash without replacing the NBSP by an SPC.
4080
4081 2005-03-22 Kim F. Storm <storm@cua.dk>
4082
4083 * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
4084 * dispextern.h (lookup_derived_face): Fix prototype.
4085 * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
4086
4087 * xdisp.c (handle_single_display_spec): Derive left-fringe and
4088 right-fringe face from fringe face.
4089
4090 * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
4091 Derive face from fringe face.
4092
4093 2005-03-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4094
4095 * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
4096
4097 2005-03-22 David Kastrup <dak@gnu.org>
4098
4099 * textprop.c (Fnext_char_property_change)
4100 (Fprevious_char_property_change): Allow marker as limit.
4101 (Fnext_single_char_property_change)
4102 (Fprevious_single_char_property_change): Check that limit is a
4103 number in strings.
4104 (Fnext_single_char_property_change): Coerce position to integer.
4105 (Fprevious_single_char_property_change): Same here.
4106
4107 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org>
4108
4109 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
4110
4111 2005-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
4112
4113 * frame.c (Fignore_event): Remove.
4114 (syms_of_frame): Don't defsubr it.
4115
4116 * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
4117 redundant `ignore-event'.
4118
4119 2005-03-19 Eli Zaretskii <eliz@gnu.org>
4120
4121 * unexec.c (write_segment, unexec): Move these functions to avoid
4122 forward references (which cause errors with "gcc -gcoff").
4123
4124 2005-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4125
4126 * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
4127 that it doesn't become "tooltip". The specbind is enough.
4128
4129 * xrdb.c (x_load_resources): Use different char *helv when I18N
4130 is present.
4131
4132 2005-03-17 Kenichi Handa <handa@m17n.org>
4133
4134 * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
4135
4136 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4137
4138 * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
4139 Use xic_create_fontsetname even for non-Motif menus.
4140 Don't forget to free the fontsetname.
4141
4142 * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
4143
4144 2005-03-17 Richard M. Stallman <rms@gnu.org>
4145
4146 * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
4147
4148 * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
4149 (Fmake_symbolic_link): Use G to read the new file name.
4150
4151 * callint.c (Finteractive): Document G option.
4152 (Fcall_interactively): Implement G option.
4153
4154 * buffer.c (buffer_lisp_local_variables): New function,
4155 broken out from Fbuffer_local_variables.
4156 (clone_per_buffer_values): Use buffer_lisp_local_variables.
4157
4158 2005-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4159
4160 * xfns.c (xic_create_fontsetname): Add `motif' argument.
4161 Always return a freshly allocated string.
4162 (xic_create_xfontset): Adjust call.
4163
4164 * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
4165 Use xic_create_fontsetname to create a fontset so utf-8 locales work.
4166 (dump_realized_face): Fix warning.
4167
4168 * emacs.c (Fkill_emacs): YAILOM.
4169
4170 * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
4171
4172 2005-03-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4173
4174 * mac.c (HASHKEY_TERMINAL): Remove.
4175 (HASHKEY_MAX_NID): New macro.
4176 (xrm_q_get_resource_1): Rename from xrm_q_get_resource. Add extra
4177 argument.
4178 (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
4179 (xrm_create_database, xrm_q_put_resource)
4180 (xrm_merge_string_database, xrm_q_get_resource_1)
4181 (xrm_q_get_resource): Change resource database representation so
4182 that it may not use multiple hash tables for a single database.
4183 [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
4184
4185 2005-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
4186
4187 * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
4188
4189 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
4190 locale-coding-system, as was already done for WINDOWSNT.
4191
4192 * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
4193 translation for chars in the 0-255 range.
4194
4195 2005-03-16 Lute Kamstra <lute@gnu.org>
4196
4197 * floatfns.c (Ffloor): Doc fix.
4198
4199 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4200
4201 * mac.c: Include macterm.h instead of directly including Carbon.h.
4202 [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
4203 (Qarray, Qdictionary): New variables.
4204 (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
4205 [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
4206 [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
4207 [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
4208 in callback for CFDictionaryApplyFunction.
4209 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
4210 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
4211 (cfobject_desc_to_lisp, cfdictionary_add_to_list)
4212 (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
4213 [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
4214 (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
4215 (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
4216 (skip_white_space, parse_comment, parse_include_file)
4217 (parse_binding, parse_component, parse_resource_name, parse_value)
4218 (parse_resource_line, xrm_create_database, xrm_q_put_resource)
4219 (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
4220 (xrm_cfproperty_list_to_value, xrm_get_preference_database):
4221 New functions.
4222
4223 * macfns.c (mac_get_rdb_resource): Remove function.
4224 (x_get_string_resource): Use xrm_get_resource.
4225
4226 * macgui.h (XrmDatabase): Typedef to Lisp_Object.
4227
4228 * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
4229 name_list_element.
4230 (mac_make_rdb): Create resource database from preferences and
4231 argument string.
4232 (mac_term_init): Save resource database to cddr part of
4233 name_list_element.
4234
4235 * macterm.h (xrm_merge_string_database, xrm_get_resource)
4236 (xrm_get_preference_database): Add externs.
4237 [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
4238 (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
4239 (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
4240
4241 * process.c (init_process): Change `#ifdef DARWIN' to `#if
4242 defined (DARWIN) || defined (MAC_OSX)'
4243
4244 * s/darwin.h (DARWIN): Don't define.
4245
4246 2005-03-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4247
4248 * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
4249 Remove unused variables.
4250 (syms_of_macfns): Don't initialize them. Likewise for
4251 Qface_set_after_frame_default. Defvar and initialize
4252 Vx_window_horizontal_drag_shape.
4253 (x_set_mouse_color): Change mouse pointer shape.
4254 (mac_window) [!MAC_OSX]: Create root control.
4255 (Fx_create_frame): Remove initializations of mouse pointer shapes.
4256 (hourglass_started): New function (from xfns.c).
4257 (start_hourglass, cancel_hourglass): Put function body in #ifdef
4258 MAC_OSX.
4259 (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
4260 indicator for each non-tooltip frame if needed, and show it.
4261 (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
4262
4263 * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
4264 Controls.h. Use ThemeCursor instead of CursHandle.
4265
4266 * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
4267 Remove functions and declarations.
4268 (mac_set_colors): Take argument for saving background color.
4269 All callers changed.
4270 (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
4271 (mac_draw_rectangle, mac_draw_string_common): Save and Restore
4272 background color.
4273 (x_update_end, mac_do_track_drag): Don't reset background color.
4274 (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
4275 Use SetThemeCursor.
4276 (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
4277 indicator control to the upper-right corner of the window.
4278 (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
4279 (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
4280 (do_window_update): Update controls after updating content area.
4281 (mac_handle_window_event): Remove unused extern.
4282 (XTread_socket): Check both control handle and control part code
4283 to determine whether a scroll bar is clicked. Activate/deactivate
4284 root control instead of contained scroll bar controls.
4285 (make_mac_terminal_frame): Use ThemeCursor constants.
4286
4287 * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
4288 New member hourglass_control.
4289 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
4290 (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
4291
4292 2005-03-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4293
4294 * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
4295 coincides with that in Apple X11 except `clear', `enter' on
4296 laptops, and fn + `enter' on laptops.
4297
4298 2005-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
4299
4300 * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
4301 (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
4302 (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
4303
4304 * xfns.c (xic_defaut_fontset): New constant.
4305 (xic_create_fontsetname): New function.
4306 Extracted from create_frame_xic. Try to generate a slightly
4307 better fontset.
4308 (xic_create_xfontset): Use it.
4309 (create_frame_xic): Simplify.
4310
4311 2005-03-11 Stefan Monnier <monnier@iro.umontreal.ca>
4312
4313 * fileio.c (Fmake_symbolic_link): Fix last change.
4314
4315 2005-03-11 Richard M. Stallman <rms@gnu.org>
4316
4317 * fileio.c (Frename_file, Fadd_name_to_file)
4318 (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
4319 expand the basename of FILE relative to it.
4320
4321 2005-03-11 Kenichi Handa <handa@m17n.org>
4322
4323 * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
4324 before calling setup_coding_system so that autoloading of a coding
4325 system work.
4326
4327 2005-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4328
4329 * xfns.c (hourglass_started): New function.
4330
4331 * dispextern.h: Declare hourglass_started.
4332
4333 * keyboard.c (Fexecute_extended_command): Restart hourglass
4334 after call to Fcompleting_read if already started.
4335
4336 * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
4337 GTK main loop is entered in xterm.c, thus doing the redraw.
4338
4339 2005-03-10 Kim F. Storm <storm@cua.dk>
4340
4341 * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
4342
4343 2005-03-08 Kenichi Handa <handa@m17n.org>
4344
4345 * frame.c (x_set_font): Call set_default_ascii_font if an
4346 available font is found.
4347
4348 * fontset.c (set_default_ascii_font): New function.
4349 (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
4350
4351 * fontset.h (set_default_ascii_font): Extern it.
4352
4353 2005-03-07 Kim F. Storm <storm@cua.dk>
4354
4355 * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
4356 (clear_image_cache_count): New var.
4357 (redisplay_internal): Don't clear face and image caches in the
4358 middle of redisplay; do it afterwards.
4359
4360 * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
4361
4362 * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
4363 is valid. If not, clear phys_cursor_on_p and return.
4364
4365 2005-03-07 Andreas Schwab <schwab@suse.de>
4366
4367 * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
4368
4369 2005-03-06 Richard M. Stallman <rms@gnu.org>
4370
4371 * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
4372
4373 * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
4374 (Feval, Ffuncall): Use CHECK_CONS_LIST.
4375
4376 * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
4377
4378 * blockinput.h (UNBLOCK_INPUT_TO): New macro.
4379 (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
4380
4381 2005-03-05 Juri Linkov <juri@jurta.org>
4382
4383 * emacs.c (USAGE1): Replace Info node name "command arguments"
4384 with "emacs invocation".
4385 (USAGE3): Fix usage of `--color=MODE' which actually doesn't
4386 allow arguments `--color' and `MODE' to be separated by space.
4387 Add --no-blinking-cursor, -nbc.
4388 (standard_args): Add -nbc, --no-blinking-cursor.
4389
4390 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
4391
4392 * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
4393 * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
4394 * fileio.c (Fexpand_file_name) [VMS]:
4395 Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
4396 * doc.c (munge_doc_file_name) [VMS]: Likewise.
4397 (Fsnarf_documentation): Call munge_doc_file_name.
4398
4399 2005-03-04 Thien-Thi Nguyen <ttn@gnu.org>
4400
4401 * s/vms.h (FILE_SYSTEM_CASE): New macro.
4402 * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
4403 "manually"; this is now handled generally via FILE_SYSTEM_CASE.
4404
4405 2005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4406
4407 * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
4408 defined (MAC_OSX) && defined (HAVE_CARBON)'.
4409
4410 * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
4411
4412 * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4413 [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
4414 (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
4415 (mac_clear_font_name_table): Move extern to macterm.h.
4416
4417 * macfns.c (install_window_handler): Move extern to macterm.h.
4418 (Fx_file_dialog): Check STRINGP (default_filename) to see it is
4419 valid. Don't check !NILP (dir) because it is already checked with
4420 CHECK_STRING.
4421 (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
4422 specifying the default location and obtaining the selected filename.
4423
4424 * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4425
4426 * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
4427 are included via Carbon.h.
4428
4429 * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
4430 Define USE_CARBON_EVENTS to 1.
4431 (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
4432 (x_free_frame_resources): Call remove_window_handler for
4433 non-tooltip windows.
4434 [TARGET_API_MAC_CARBON]: Don't include headers that are included
4435 via Carbon.h.
4436 [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
4437 (mac_do_receive_dragUPP): New variables.
4438 (mac_handle_service_event, init_service_handler): Put declarations
4439 and definitions in #ifdef MAC_OSX.
4440 (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
4441 drag-and-drop handler functions and register them.
4442 (remove_window_handler): New function.
4443 (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
4444 Use fsspec_to_posix_pathname.
4445 (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
4446 (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
4447 [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
4448 Set default cursors.
4449 (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
4450 init_service_handler or init_quit_char_handler.
4451 (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
4452
4453 * macterm.h (install_window_handler, remove_window_handler)
4454 (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
4455 (mac_clear_font_name_table): New externs.
4456
4457 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
4458
4459 * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
4460 (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
4461 (Fexpand_file_name): Likewise.
4462
4463 2005-03-03 Thien-Thi Nguyen <ttn@gnu.org>
4464
4465 * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
4466 no longer special-case VMS. Add bogus return value.
4467
4468 2005-03-02 Kim F. Storm <storm@cua.dk>
4469
4470 * dispextern.h (XASSERTS): Define to 0 if not already defined.
4471 (xassert) [!XASSERTS]: Define dummy version.
4472
4473 2005-03-02 Kim F. Storm <storm@cua.dk>
4474
4475 * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
4476 Reported by David Kastrup.
4477
4478 2005-03-01 Ehud Karni <ehud@unix.mvs.co.il>
4479
4480 * xdisp.c (get_next_display_element): Fix control and escape
4481 glyph from display vector.
4482
4483 2005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
4484
4485 * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
4486
4487 2005-02-27 Richard M. Stallman <rms@gnu.org>
4488
4489 * xdisp.c (fast_find_position): Rename END to BEG.
4490 (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
4491
4492 2005-02-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4493
4494 * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
4495 gtk_window_resize and x_wm_set_size_hint.
4496
4497 2005-02-25 Kim F. Storm <storm@cua.dk>
4498
4499 * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
4500
4501 * xdisp.c (init_from_display_pos): Don't read past end of
4502 it->overlay_strings array.
4503
4504 2005-02-25 Stephan Stahl <stahl@eos.franken.de> (tiny change)
4505
4506 * buffer.c (syms_of_buffer): Fix typo.
4507
4508 2005-02-23 Lute Kamstra <lute@gnu.org>
4509
4510 * buffer.c (Foverlay_buffer): Doc fix.
4511
4512 2005-02-22 Kim F. Storm <storm@cua.dk>
4513
4514 * minibuf.c (Ftry_completion, Fall_completions): Allow both string
4515 and symbol keys in alists and hash tables.
4516
4517 * xdisp.c (fast_find_position): Fix search for start of overlay.
4518
4519 2005-02-21 Kim F. Storm <storm@cua.dk>
4520
4521 * window.c (window_scroll_pixel_based): When scrolling backwards,
4522 handle partial visible line at end of window even when we hit PT.
4523
4524 2005-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
4525
4526 * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
4527
4528 2005-02-21 Kim F. Storm <storm@cua.dk>
4529
4530 * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
4531 I think those asserts are bogus if buffer contains invisible text
4532 or images.
4533
4534 2005-02-21 David Kastrup <dak@gnu.org>
4535
4536 * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
4537
4538 2005-02-20 Kim F. Storm <storm@cua.dk>
4539
4540 * xdisp.c (pos_visible_p): Be sure to move to the specified
4541 position. Always get the full ascent / descent of the
4542 corresponding row, to return reliable rtop and rbot values.
4543 (back_to_previous_visible_line_start): Fix 2005-01-18 change.
4544 Must look one character back, as back_to_previous_line_start
4545 returns position after the newline.
4546 (move_it_vertically_backward): Fix heuristic for when to move further
4547 back in case line_height * 2/3 is larger than window height.
4548 (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
4549 as it does not do anything anymore. Add arg current_matrix_p to
4550 use current matrix rather than desired matrix when set.
4551 (try_cursor_movement): Don't scroll to make cursor row fully
4552 visible if cursor didn't move. This avoids unexpected recentering
4553 in case of blinking cursor or accepting process output.
4554 Use current matrix to check cursor row visibility.
4555 (redisplay_window): Fix whether to recenter or move to top in case
4556 cursor line is taller than window height.
4557 (find_first_unchanged_at_end_row): Stop search if we reach a row
4558 which not enabled (instead of abort).
4559
4560 2005-02-18 Kim F. Storm <storm@cua.dk>
4561
4562 * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
4563 to be nil in a :box attribute value list; customize prints that
4564 as lisp value when no box color is specified.
4565
4566 * .gdbinit (pitx, pit): Pretty print display iterator.
4567 (prowx, prow): Pretty print glyph row.
4568 (pcursorx, pcursor): Pretty print a window cursor.
4569 (pwinx, pwin): Pretty print struct window.
4570
4571 2005-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
4572
4573 * alloc.c (BLOCK_BYTES): Harmless typo.
4574
4575 2005-02-17 Andreas Schwab <schwab@suse.de>
4576
4577 * xfns.c (hack_wm_protocols): Use correct type for last parameter
4578 of XGetWindowProperty to avoid aliasing issues.
4579 (Fx_window_property): Likewise.
4580
4581 * xselect.c (Fx_disown_selection_internal): Use union of struct
4582 input_event and struct selection_input_event to avoid aliasing issues.
4583
4584 * xterm.c (handle_one_xevent): Use union of struct input_event and
4585 struct selection_input_event to avoid aliasing issues.
4586 (SET_SAVED_MENU_EVENT): Adapt reference to inev.
4587
4588 2005-02-17 Kim F. Storm <storm@cua.dk>
4589
4590 * dispextern.h (enum it_method): New enum.
4591 (GET_FROM_*): Its members.
4592 (struct it): Change member method from function pointer to enum.
4593
4594 * xdisp.c (check_it, init_from_display_pos, handle_stop)
4595 (setup_for_ellipsis, handle_single_display_spec)
4596 (handle_composition_prop, next_overlay_string)
4597 (get_overlay_strings, reseat_1, reseat_to_string)
4598 (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
4599 (in_display_vector_p, display_line, get_next_display_element):
4600 Change it->method from function pointer to enum.
4601 (get_next_element): New array to map it->method to function.
4602 (get_next_display_element): Use it.
4603 (set_iterator_to_next): Use switch instead of if/else chain.
4604
4605 2005-02-15 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
4606
4607 * w32select.c: Summary: Thorough rework to implement Unicode
4608 clipboard operations and delayed rendering.
4609
4610 Drop last_clipboard_text and related code, keep track of
4611 ownership via clipboard_owner instead. Drop old #if0 sections.
4612
4613 (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
4614 (clipboard_owner, modifying_clipboard, cfg_coding_system)
4615 (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
4616 (current_coding_system, current_requires_encoding)
4617 (current_num_nls, current_clipboard_type, current_lcid):
4618 New static variables.
4619
4620 (convert_to_handle_as_ascii, convert_to_handle_as_coded)
4621 (render, render_all, run_protected, lisp_error_handler)
4622 (owner_callback, create_owner, setup_config)
4623 (enum_locale_callback, cp_from_locale, coding_from_cp):
4624 New local functions.
4625
4626 (term_w32select, globals_of_w32select): New global functions.
4627
4628 (Fw32_set_clipboard_data): Ignore parameter FRAME, use
4629 clipboard_owner instead. Use delayed rendering and provide
4630 all text formats. Provide CF_LOCALE if necessary.
4631
4632 (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
4633 CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not
4634 available. Force DOS line-ends for decoding.
4635
4636 (Fx_selection_exists_p): Handle CF_UNICODETEXT.
4637
4638 (syms_of_w32select): Init and register new variables.
4639
4640 * w32.h: Add prototypes for globals_of_w32select and
4641 term_w32select. Make the neighboring K&R declarations into
4642 prototypes, too.
4643
4644 * emacs.c: Include w32.h to get function prototypes.
4645 (main): Call globals_of_w32select.
4646
4647 * w32.c (term_ntproc): Call term_w32select.
4648
4649 * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
4650
4651 2005-02-16 Kim F. Storm <storm@cua.dk>
4652
4653 * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
4654 at end of display vector.
4655
4656 2005-02-15 Richard M. Stallman <rms@gnu.org>
4657
4658 * xdisp.c (get_next_display_element): Fix escape-glyph criterion
4659 for mode and header lines.
4660
4661 * lread.c (syms_of_lread) <user-init-file>: Doc fix.
4662
4663 * keymap.h (describe_map_tree): Change decl.
4664
4665 * keyboard.c (command_loop_1): Always use safe_run_hooks
4666 to run Qdeferred_action_function.
4667
4668 * keymap.c (describe_map_tree): New arg MENTION_SHADOW. Calls changed.
4669 (describe_map, describe_vector): Likewise. When it's 1,
4670 don't omit shadowed bindings, instead mark them as shadowed.
4671
4672 * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
4673 for describe_map_tree. Pass 1 for MENTION_SHADOW.
4674
4675 * data.c (Fsetq_default): Allow no arg case.
4676
4677 2005-02-14 Kenichi Handa <handa@m17n.org>
4678
4679 * coding.c (encode_coding_string): Always return a unibyte string.
4680 If NOCOPY is nonzero and there's no need of encoding, make STR
4681 unibyte directly.
4682
4683 * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
4684 multibyte string, signal an error instead of aborting.
4685
4686 2005-02-12 Dan Nicolaescu <dann@ics.uci.edu>
4687
4688 * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
4689
4690 2005-02-12 Kim F. Storm <storm@cua.dk>
4691
4692 * xdisp.c (expose_window): Don't fix overlaps for mode lines.
4693
4694 2005-02-10 Kim F. Storm <storm@cua.dk>
4695
4696 * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
4697 if it moves outside window or it doesn't display text.
4698
4699 2005-02-09 Kim F. Storm <storm@cua.dk>
4700
4701 * undo.c (Fprimitive_undo): Check that undo function does not
4702 switch buffer.
4703
4704 2005-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4705
4706 * xselect.c (selection_data_to_lisp_data): For the special case
4707 type == XA_ATOM, data contains array of int, not array of Atom.
4708 (x_property_data_to_lisp, selection_data_to_lisp_data):
4709 Comment update: data must be array of int for format == 32.
4710
4711 2005-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
4712
4713 * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
4714
4715 2005-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4716
4717 * xfns.c (Fx_change_window_property): Use long array when format is 32.
4718 (Fx_window_property): If format is 32 and long is bigger than 32 bits,
4719 convert long array returned from XGetWindowProperty to an int array.
4720 (x_set_tool_bar_lines): Check that width and height is greater than
4721 zero before clearing area.
4722
4723 * xselect.c (x_reply_selection_request): Pass long array to
4724 XChangeProperty so that 64 bit longs are handeled correctly.
4725 (x_get_window_property): If format is 32 and long is bigger than 32
4726 bits convert data from XGetWindowProperty from long array to int array.
4727 (lisp_data_to_selection_data): When the input is a vector and the
4728 format is 32, allocate a long array even if long is bigger than 32 bits.
4729 (x_fill_property_data): Use char, short and long as the man page
4730 for XChangeProperty specifies. This way the data returned is OK for
4731 both 32 and 64 bit machines.
4732 (x_handle_dnd_message): Calculate size correctly even for 64 bit
4733 machines.
4734 (Fx_send_client_event): Undo change from 2005-02-05,
4735 x_fill_property_data now handles that case.
4736
4737 * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
4738 reason for the approach in the code.
4739
4740 2005-02-07 Kim F. Storm <storm@cua.dk>
4741
4742 * undo.c (Fprimitive_undo): Record max one dummmy apply element.
4743
4744 2005-02-06 Richard M. Stallman <rms@gnu.org>
4745
4746 * eval.c (Frun_hook_with_args)
4747 (Frun_hook_with_args_until_success)
4748 (Frun_hook_with_args_until_failure): Doc fixes.
4749
4750 2005-02-05 Andreas Schwab <schwab@suse.de>
4751
4752 * sysdep.c (sys_subshell): Properly terminate execlp argument list.
4753
4754 2005-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4755
4756 * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
4757 the longs in a XClientMessageEvent correctly when long is 64 bits.
4758
4759 2005-02-05 Eli Zaretskii <eliz@gnu.org>
4760
4761 * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
4762 instead of HAVE_X_WINDOWS, for non-X windowed sessions.
4763
4764 2005-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4765
4766 * xmenu.c (menubar_selection_callback): Force out GTK buffered
4767 events so the menu event comes after them. This is to prevent sit-for
4768 from exiting on buffered events directly after a menu selection,
4769 lisp code for Help => About Emacs uses sit-for.
4770
4771 * gtkutil.c (create_menus): Connect selection-done event instead of
4772 the deactivate event to deactivate_cb. This will make the last
4773 leave event come before the call to deactivate_cb, so the leave
4774 event does not make sit-for exit after a menu selection.
4775
4776 2005-02-03 Kim F. Storm <storm@cua.dk>
4777
4778 * dispnew.c (build_frame_matrix_from_leaf_window)
4779 [!GLYPH_DEBUG]: Fix xassert.
4780
4781 * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
4782
4783 * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4784
4785 2005-02-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4786
4787 * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
4788 the compiling OS version.
4789
4790 * macfns.c (x_create_tip_frame): Likewise.
4791
4792 * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
4793
4794 2005-02-03 Richard M. Stallman <rms@gnu.org>
4795
4796 * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
4797
4798 * xdisp.c (echo_area_display): Clear echo_message_buffer.
4799
4800 * buffer.c (Fbury_buffer): Doc fix.
4801
4802 2005-02-02 Steven Tamm <steventamm@mac.com>
4803
4804 * macfns.c (unwind_create_frame): Fix compile error due to
4805 xassert being uncondition, but predicate is.
4806 * dispnew.c (update_window): Fix compile error due to
4807 xassert being uncondition, but predicate is.
4808
4809 2005-02-02 Miles Bader <miles@gnu.org>
4810
4811 * dispextern.h (xassert): Enable unconditionally.
4812
4813 2005-02-02 Kim F. Storm <storm@cua.dk>
4814
4815 * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
4816
4817 2005-02-02 Kenichi Handa <handa@m17n.org>
4818
4819 * casefiddle.c (casify_object): Enable changing characters of
4820 different byte length.
4821 (casify_region): Fix loop condition, args to replace_range_2, and
4822 update opoint_byte.
4823
4824 * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
4825
4826 2005-02-01 Kim F. Storm <storm@cua.dk>
4827
4828 * xdisp.c (back_to_previous_visible_line_start): Reset iterator
4829 stack before calling handle_display_prop.
4830
4831 2005-01-31 Kim F. Storm <storm@cua.dk>
4832
4833 * undo.c (Qapply): New lisp var.
4834 (syms_of_undo): Intern and staticpro it.
4835 (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
4836 (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
4837
4838 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
4839
4840 2005-01-30 Jesper Harder <harder@phys.au.dk>
4841
4842 * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
4843 <mac-emulate-three-button-mouse>: Fix docstring indentation.
4844
4845 2005-01-29 Luc Teirlinck <teirllm@auburn.edu>
4846
4847 * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
4848 Increase value to 3 Meg.
4849
4850 2005-01-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4851
4852 * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
4853 button events are not received otherwise.
4854
4855 2005-01-29 Richard M. Stallman <rms@gnu.org>
4856
4857 * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
4858
4859 * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
4860
4861 2005-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
4862
4863 * keymap.c (access_keymap): YAILOM.
4864
4865 2005-01-27 Kim F. Storm <storm@cua.dk>
4866
4867 * xdisp.c (get_phys_cursor_geometry): New function to calculate
4868 phys cursor position and size for hollow cursor. Position is
4869 aligned with get_glyph_string_clip_rect and ensures that a hollow
4870 cursor is shown, even when the actual glyph is not visible.
4871
4872 * dispextern.h (get_phys_cursor_geometry): Add prototype.
4873
4874 * xterm.c (x_clip_to_row): Ensure y >= 0.
4875 (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4876
4877 * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4878
4879 * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4880
4881 2005-01-27 Stefan Monnier <monnier@iro.umontreal.ca>
4882
4883 * xterm.c (x_error_quitter): Add a prototype. Make it static again.
4884
4885 2005-01-27 Kim F. Storm <storm@cua.dk>
4886
4887 * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
4888 glyph, even when row is only partially visible and actual cursor
4889 position is not visible.
4890
4891 2005-01-24 Richard M. Stallman <rms@gnu.org>
4892
4893 * xterm.c (x_error_quitter): No longer static, and moved after
4894 x_error_handler.
4895
4896 2005-01-24 Kim F. Storm <storm@cua.dk>
4897
4898 * xdisp.c (move_it_by_lines): If we move forward after going too
4899 far back, cancel move if end position is same as start position.
4900
4901 2005-01-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4902
4903 * dispextern.h (struct glyph_string): New members clip_head and
4904 clip_tail.
4905
4906 * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
4907 region to the area between clip_head and clip_tail.
4908 (draw_glyphs): Record the area that need to be actually redrawn to
4909 the new variables clip_head and clip_tail when there are
4910 overhangs. Set values of these variables to the corresponding
4911 members in struct glyph_string. Refine x coordinates for
4912 notice_overwritten_cursor using clip_head and clip_tail.
4913
4914 * macgui.h (STORE_XCHARSETSTRUCT): New macro.
4915
4916 * macterm.c (mac_compute_glyph_string_overhangs): Implement with
4917 QDTextBounds.
4918 (x_draw_glyph_string): Don't fill the background of the successor
4919 of a glyph with a right overhang if the successor will draw a cursor.
4920 (XLoadQueryFont): Obtain font metrics using QDTextBounds.
4921 (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4922
4923 2005-01-24 Kim F. Storm <storm@cua.dk>
4924
4925 * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
4926 direction if window height was smaller than next-screen-context-lines.
4927 Now always scroll at least one line in the requested direction.
4928 Ensure that we actually do scroll backwards when requested to do so.
4929
4930 * xdisp.c (redisplay_window): Only try to make cursor line fully
4931 visible once (to avoid redisplay loop).
4932
4933 2005-01-23 Kim F. Storm <storm@cua.dk>
4934
4935 * window.c (Fpos_visible_in_window_p): Simplify return value for
4936 partially visible rows.
4937 (window_scroll_pixel_based): Adapt to that change.
4938
4939 * window.c (window_scroll_pixel_based): Force moving to next line
4940 if scrolling doesn't move start point, e.g. if looking at tall image.
4941
4942 * xdisp.c (pos_visible_p): Return 0 if non-interactive.
4943 Clear last_height before calling line_bottom_y to get real height.
4944 Fix calculation of y.
4945
4946 2005-01-22 Steven Tamm <steventamm@mac.com>
4947
4948 * s/darwin.h: Removed PTY_ITERATION from here.
4949 (DARWIN): Define.
4950
4951 * process.c (init_process): Default process-connection-type to
4952 nil on darwin 6 or less, t if it is 7 or higher. This way the
4953 broken pty behavior is still allowed on darwin 6 for interactive
4954 processes for people that know what they are doing.
4955
4956 2005-01-22 Kim F. Storm <storm@cua.dk>
4957
4958 * window.c (auto_window_vscroll_p): New boolean.
4959 (syms_of_window): DEFVAR_BOOL it.
4960 (Fpos_visible_in_window_p): Extend return value to include RTOP
4961 and RBOT values if FULLY is nil.
4962 (window_scroll_pixel_based): Adjust vscroll for partially visible
4963 rows if auto_window_vscroll_p is set.
4964 (Fset_window_vscroll): Do nothing if vscroll is not modified.
4965
4966 * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
4967 to return number of partially invisible pixels at top and bottom
4968 of the dislay row at POS.
4969
4970 * lisp.h (pos_visible_p): Fix prototype.
4971
4972 2005-01-21 Richard M. Stallman <rms@gnu.org>
4973
4974 * fileio.c (Fcopy_file): Doc fix.
4975
4976 2005-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
4977
4978 * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
4979 (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
4980 start of function for older compilers.
4981
4982 2005-01-20 Richard M. Stallman <rms@gnu.org>
4983
4984 * editfns.c (Fmessage): If arg is "", return "" (as before).
4985
4986 * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
4987
4988 * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
4989 variable.
4990
4991 2005-01-20 Steven Tamm <steventamm@mac.com>
4992
4993 * editfns.c (Voperating_system_release): Add.
4994 (init_editfns): Assign new variable operating-system-release
4995 based on call to uname if available.
4996 (get_operating_system_release): Add function to
4997 allow c-level access to operating system release.
4998
4999 * config.h: Regenerated.
5000
5001 * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
5002 (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
5003 using ptys as '7'.
5004
5005 2005-01-20 Kim F. Storm <storm@cua.dk>
5006
5007 * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
5008
5009 * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
5010 Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
5011
5012 * macterm.c (x_draw_glyph_string_box): Likewise.
5013
5014 * w32term.c (x_draw_glyph_string_box): Likewise.
5015
5016 * indent.c (Fvertical_motion): Temporarily disable selective display.
5017
5018 2005-01-19 Kim F. Storm <storm@cua.dk>
5019
5020 * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
5021 image property.
5022
5023 * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
5024
5025 2005-01-18 Kim F. Storm <storm@cua.dk>
5026
5027 * xdisp.c (fast_find_position): Backtrack to find first row if
5028 charpos is inside a display overlay that spans multiple lines.
5029
5030 2005-01-18 Kenichi Handa <handa@m17n.org>
5031
5032 * coding.c (decode_coding_iso2022): Translate invalid codes if
5033 translation-table is specified.
5034
5035 2005-01-18 Kim F. Storm <storm@cua.dk>
5036
5037 * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
5038 change. If handle_display_prop indicates newline is replaced by
5039 image or text, move back to start of relevant overlay or interval
5040 and continue scan from there. Simplify.
5041
5042 2005-01-17 Kim F. Storm <storm@cua.dk>
5043
5044 * dispnew.c (mode_line_string, marginal_area_string):
5045 Fix off-by-one error in search for glyph.
5046
5047 2005-01-16 Kim F. Storm <storm@cua.dk>
5048
5049 * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
5050
5051 2005-01-16 Steven Tamm <steventamm@mac.com>
5052
5053 * macterm.c (mac_to_x_fontname): Remove spurious argument.
5054
5055 2005-01-16 Andreas Schwab <schwab@suse.de>
5056
5057 * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
5058
5059 2005-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5060
5061 * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
5062 fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
5063
5064 2005-01-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5065
5066 * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
5067 (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
5068 New flags for readable_events.
5069 (get_filtered_input_pending, readable_filtered_events): Remove.
5070 (tracking_off): Call readable_events and get_input_pending with
5071 flag READABLE_EVENTS_DO_TIMERS_NOW.
5072 (readable_events): Move code from old readable_filtered_events here,
5073 but check new READABLE_EVENTS_* in argument flags instead of previous
5074 two boolean arguments do_timers_now and filter_events.
5075 If we are doing mouse tracking and the mouse moved, return only if
5076 READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
5077 (swallow_events): Call get_input_pending with flag
5078 READABLE_EVENTS_DO_TIMERS_NOW.
5079 (get_input_pending): Move code from old get_filtered_input_pending
5080 here. Replace boolean arguments do_timers_now, filter_events with
5081 flags, and pass flags to readable_events. Document new
5082 READABLE_EVENTS_* flags.
5083 (detect_input_pending_ignore_squeezables): New function.
5084 (detect_input_pending_run_timers): Call get_input_pending with flag
5085 READABLE_EVENTS_DO_TIMERS_NOW.
5086 (Finput_pending_p): Call get_input_pending with flags
5087 READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
5088
5089 * dispnew.c (update_window, update_frame_1): Replace calls to
5090 detect_input_pending with detect_input_pending_ignore_squeezables
5091 so that redisplay is not paused if the event queue contains only
5092 mouse movements.
5093
5094 * lisp.h: Declare detect_input_pending_ignore_squeezables.
5095
5096 2005-01-15 Steven Tamm <steventamm@mac.com>
5097
5098 * macterm.c (Vmac_use_core_graphics): Declare variable for
5099 mac-allow-anti-aliasing.
5100 (syms_of_macterm): DEFVAR_LISP and initialize it.
5101 (mac_draw_string_common): Use core graphics text rendering if
5102 mac-allow-anti-aliasing is enabled.
5103
5104 * macfns.c (Fx_file_dialog): Save As dialog includes only the
5105 file name in the text box.
5106
5107 2005-01-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5108
5109 * macfns.c (x_set_foreground_color, x_set_background_color):
5110 Sync with xfns.c.
5111 (mac_window, x_create_tip_frame): Use XSetWindowBackground.
5112 * macterm.c (XSetBackground, XSetWindowBackground): New functions.
5113 * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
5114
5115 2005-01-14 Kim F. Storm <storm@cua.dk>
5116
5117 * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
5118
5119 2005-01-13 Richard M. Stallman <rms@gnu.org>
5120
5121 * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
5122 if Voverriding_terminal_local_map is non-nil.
5123
5124 * keyboard.c (syms_of_keyboard): Doc fix.
5125
5126 2005-01-13 Kim F. Storm <storm@cua.dk>
5127
5128 * xdisp.c (Fformat_mode_line): Fix last change. Remove NO_PROPS arg
5129 (specify 0 for FACE instead). Reorder arg list. Doc fix.
5130
5131 2005-01-12 Richard M. Stallman <rms@gnu.org>
5132
5133 * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
5134 face property for characters that don't specify one.
5135
5136 * fns.c (Frequire): Record in load-history unconditionally.
5137
5138 2005-01-10 Kim F. Storm <storm@cua.dk>
5139
5140 * dispextern.h (merge_faces): Rename from merge_into_realized_face.
5141
5142 * xfaces.c (merge_faces): Rename from merge_into_realized_face.
5143 Callers changed.
5144 Add support to merge with lisp face id too (if face_name is t).
5145
5146 * xdisp.c (get_next_display_element, next_element_from_display_vector):
5147 Don't lookup lface_id from display table glyphs here; instead use
5148 merge_faces to merge the lisp face id into current face.
5149
5150 2005-01-09 Kim F. Storm <storm@cua.dk>
5151
5152 * dispextern.h (struct it): New member dpvec_face_id.
5153 (merge_into_realized_face): Add prototype.
5154
5155 * xfaces.c (merge_into_realized_face): New function. Used to
5156 merge escape-glyph face or face from display table into current face.
5157
5158 * xdisp.c (Vshow_nonbreak_escape): New lisp var.
5159 (syms_of_xdisp): DEFVAR_LISP it.
5160 (escape_glyph_face): Remove var.
5161 (redisplay_window): Don't initialize it.
5162 (setup_for_ellipsis, get_next_display_element):
5163 Set it->dpvec_face_id to -1.
5164 (get_next_display_element): Test Vshow_nonbreak_escape.
5165 Do not setup escape_glyph_face.
5166 Properly merge escape-glyph face or face from display table with
5167 current face for escape and control characters.
5168 Set it->dpvec_face_id to relevant face id instead of adding it to each
5169 element of display vector.
5170 (next_element_from_display_vector): If it->dpvec_face_id is set,
5171 use that instead of lface_id from glyph itself.
5172
5173 2005-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5174
5175 * xterm.h (struct x_output): New member, toolbar_detached.
5176
5177 * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
5178 38.
5179 (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
5180 (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
5181 (xg_create_tool_bar): Initialize toolbar_detached.
5182 (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
5183 toolbar_detached is zero.
5184
5185 2005-01-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5186
5187 * xmenu.c (create_and_show_popup_menu): Pass zero as button to
5188 gtk_menu_popup if not for_click, so callbacks for the menu are called.
5189
5190 * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
5191 (xg_tool_bar_callback, xg_tool_bar_help_callback)
5192 (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
5193
5194 * xselect.c (x_get_foreign_selection, x_fill_property_data)
5195 (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
5196 XFLOAT_DATA to get extract number from Lisp object.
5197
5198 2005-01-07 Kim F. Storm <storm@cua.dk>
5199
5200 * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
5201 Set stop_charpos to current charpos instead of 0.
5202
5203 2005-01-06 Nick Roberts <nickrob@snap.net.nz>
5204
5205 * xdisp.c (Fformat_mode_line): First arg now required.
5206
5207 2005-01-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5208
5209 * macterm.c (XLoadQueryFont): Correctly handle 0 size
5210 font widths that are returned from some Japanese fonts.
5211
5212 2005-01-06 Kim F. Storm <storm@cua.dk>
5213
5214 * fringe.c (fringe_faces): Change to Lisp_Object pointer.
5215 (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
5216 (destroy_fringe_bitmap): Set fringe_faces element to nil.
5217 (Fdefine_fringe_bitmap, init_fringe): Change allocation of
5218 fringe_faces array and init elements to nil.
5219 (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
5220 non-persistent face id.
5221 (mark_fringe_data): New function for GC.
5222
5223 * alloc.c (mark_fringe_data): Declare extern.
5224 (Fgarbage_collect): Call mark_fringe_data.
5225
5226 * alloc.c (overrun_check_free): Invalidate freed memory if
5227 XMALLOC_CLEAR_FREE_MEMORY is defined.
5228
5229 2005-01-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5230
5231 * macfns.c: Include sys/param.h.
5232 [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
5233 and function.
5234 [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
5235 of filename string. Set event callback function when creating
5236 dialog boxes. Add code conversions for filenames. Don't dispose
5237 of apple event descriptor record if failed to create it.
5238
5239 * macterm.c: Include sys/param.h.
5240 [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
5241 kEventWindowUpdate.
5242 (install_window_handler) [USE_CARBON_EVENTS]: Register it.
5243 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
5244 of FSSpec from apple event descriptor record.
5245 (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
5246 size of filename string.
5247 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
5248 [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
5249 file dialog is in action.
5250 [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
5251 Reject only when there are no filename items. Set background color
5252 before (un)highlighting the window below the dragged items.
5253 (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
5254
5255 2005-01-05 Romain Francoise <romain@orebokech.com>
5256
5257 * term.c (encode_terminal_code): Fix buffer size computation.
5258
5259 2005-01-04 Richard M. Stallman <rms@gnu.org>
5260
5261 * xdisp.c (Fformat_mode_line): Doc fix.
5262
5263 2005-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5264
5265 * alloc.c (refill_memory_reserve): Move.
5266 (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
5267 (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
5268
5269 2005-01-03 Richard M. Stallman <rms@gnu.org>
5270
5271 * window.c (window_scroll_pixel_based): Don't correct preserve_y
5272 for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
5273
5274 2005-01-03 Jason Rumney <jasonr@gnu.org>
5275
5276 * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
5277 fontp->space_width to FONT_WIDTH so they are valid.
5278
5279 * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
5280 average width. Set fontp->average_width and fontp->space_width to
5281 their appropriate values.
5282
5283 * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5284 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
5285 fontp->space_width.
5286
5287 2005-01-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5288
5289 * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
5290 (x_font_min_bounds, XLoadQueryFont): Use the correct font width
5291 metrics for max and min bounds.
5292 (x_load_font): Correctly calculate average font width metrics.
5293
5294 2005-01-02 Richard M. Stallman <rms@gnu.org>
5295
5296 * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
5297
5298 2004-12-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5299
5300 * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
5301
5302 2004-12-31 Richard M. Stallman <rms@gnu.org>
5303
5304 * xdisp.c (setup_for_ellipsis, get_next_display_element):
5305 Set it->ellipsis_p to 1 or 0.
5306 (display_line): Record whether row ends in mid-ellipsis.
5307 (set_cursor_from_row): If ends in ellipsis, find start of it.
5308 (cursor_row_p): If PT's at the end of the ellipsis the row
5309 ends within, don't display cursor on this row.
5310
5311 * dispextern.h (struct it): New element ellipsis_p.
5312 (struct glyph_row): New element ends_in_ellipsis_p.
5313
5314 * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
5315 position if we're reading from something other than the buffer.
5316
5317 * window.c (window_scroll_pixel_based): Only look at
5318 Vscroll_preserve_screen_position if the old PT can't be kept.
5319 (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5320
5321 2004-12-30 Kim F. Storm <storm@cua.dk>
5322
5323 * xdisp.c (get_line_height_property): New function extracted from
5324 original calc_line_height_property.
5325 (calc_line_height_property): Rework. Handle t and (nil . ratio).
5326 (x_produce_glyphs): Use them to handle line-height and
5327 line-spacing according to new height spec.
5328 (Qtotal): Remove.
5329 (syms_of_xdisp): Remove intern and staticpro for Qtotal.
5330
5331 2004-12-30 Kenichi Handa <handa@m17n.org>
5332
5333 * fileio.c (Finsert_file_contents): Don't use
5334 current_buffer->buffer_file_coding_system even if REPLACE is
5335 non-nil. Call Qafter_insert_file_set_coding with the second arg VISIT.
5336
5337 * fontset.h (struct font_info): New members space_width and
5338 average_width.
5339
5340 * frame.h (struct frame): New member space_width.
5341 (FRAME_SPACE_WIDTH): New macro.
5342
5343 * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
5344
5345 * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5346 fontp->average_width, not FONT_WIDTH. Set FRAME_SPACE_WIDTH to
5347 fontp->space_width.
5348 (x_load_font): Calculate fontp->space_width and fontp->average_width.
5349 (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
5350
5351 * xdisp.c (x_produce_glyphs): Calculate tab width by
5352 FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
5353
5354 2004-12-29 Sanghyuk Suh <han9kin@mac.com>
5355
5356 * macterm.c (SelectionRange): Add Xcode position apple event struct.
5357 (do_ae_open_documents): Handle Xcode-style file position open events.
5358
5359 2004-12-29 Luc Teirlinck <teirllm@auburn.edu>
5360
5361 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
5362
5363 2004-12-29 Richard M. Stallman <rms@gnu.org>
5364
5365 * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
5366
5367 2004-12-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5368
5369 * macfns.c (install_window_handler): Modify extern to return OSErr
5370 value.
5371 (mac_window): Handle return value of install_window_handler.
5372
5373 * macterm.c (reflect_byte): Remove function.
5374 (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
5375 Lookup table instead.
5376 (mac_do_font_lists): Simplify calculation of the longest
5377 nonspecial string.
5378 (init_mac_drag_n_drop): Remove function and declaration.
5379 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
5380 init_mac_drag_n_drop.
5381 (mac_do_track_drag): New function and declaration.
5382 (install_window_handler): Return OSErr value.
5383 (install_window_handler) [TARGET_API_MAC_CARBON]:
5384 Register handlers for tracking/receiving drag-and-drop items.
5385 (do_ae_open_documents): Generate unibyte strings for filenames.
5386 (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
5387 Reject only non-filename items. Set event modifiers, and return value.
5388
5389 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
5390
5391 * coding.c (decode_coding): Fix previous change.
5392
5393 2004-12-28 Richard M. Stallman <rms@gnu.org>
5394
5395 * xdisp.c (back_to_previous_visible_line_start):
5396 Don't call handle_display_prop.
5397
5398 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu>
5399
5400 * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
5401 (decode_coding_emacs_mule, encode_coding_emacs_mule)
5402 (decode_coding_iso2022, encode_designation_at_bol)
5403 (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
5404 (decode_coding): Constify arguments and local vars.
5405
5406 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5407
5408 * xmenu.c (popup_get_selection): Only pop down dialogs
5409 on C-g and Escape.
5410 (popup_get_selection): Remove parameter down_on_keypress.
5411 (create_and_show_popup_menu, create_and_show_dialog):
5412 Remove parameter down_on_keypress to popup_get_selection.
5413
5414 2004-12-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5415
5416 * dispextern.h: Change HAVE_CARBON to MAC_OS.
5417 (struct glyph_string): Likewise.
5418
5419 * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
5420 mac_initialize.
5421
5422 * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
5423 Change TARGET_API_MAC_CARBON to HAVE_CARBON.
5424
5425 * fns.c (vector): Change MAC_OSX to MAC_OS.
5426
5427 * frame.c (x_set_frame_parameters, x_report_frame_params)
5428 (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
5429 (x_set_border_width, Vdefault_frame_scroll_bars):
5430 Change HAVE_CARBON to MAC_OS.
5431
5432 * image.c [MAC_OS]: Include sys/stat.h.
5433 [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
5434 QuickTimeComponents.h.
5435
5436 * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
5437 [!MAC_OSX] (select): Use mac_wait_next_event.
5438 [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
5439 [!MAC_OSX] (select, run_mac_command): Change `#ifdef
5440 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
5441 (mac_clear_font_name_table): Add extern.
5442 (Fmac_clear_font_name_table): New defun.
5443 (syms_of_mac): Defsubr it.
5444 [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
5445 [MAC_OSX] (select_and_poll_event): New function.
5446 [MAC_OSX] (sys_select): Use it.
5447 [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
5448 [MAC_OSX && SELECT_USE_CFSOCKET]
5449 (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
5450 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
5451 RunLoop for simultaneously monitoring two kinds of inputs, window
5452 events and process outputs, without periodically polling.
5453
5454 * macfns.c (mac_initialized): Remove extern.
5455 (stricmp): Put in #if 0. All callers changed to use xstricmp in
5456 xfaces.c.
5457 (strnicmp): Decrement `n' at the end of each loop, not the beginning.
5458 (check_mac): Use the term "Mac native windows" instead of "Mac OS".
5459 (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
5460 (mac_get_rdb_resource): New function (from w32reg.c).
5461 (x_get_string_resource): Use it.
5462 (install_window_handler): Add extern.
5463 (mac_window): New function.
5464 (Fx_create_frame): Use it instead of make_mac_frame.
5465 Set parameter for Qfullscreen. Call x_wm_set_size_hint.
5466 (Fx_open_connection, Fx_close_connection): New defuns.
5467 (syms_of_macfns): Defsubr them.
5468 (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
5469 Add kWindowNoUpdatesAttribute to the window attribute.
5470 (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
5471 (x_create_tip_frame): Don't call ShowWindow.
5472 (Fx_show_tip): Call ShowWindow.
5473 (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
5474 TARGET_API_MAC_CARBON'.
5475 (mac_frame_parm_handlers): Set handlers for Qfullscreen.
5476 (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
5477
5478 * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h.
5479 (Window): Typedef to WindowPtr and move outside `#if
5480 TARGET_API_MAC_CARBON'.
5481 (XSizeHints): New struct.
5482
5483 * macterm.c (x_update_begin, x_update_end)
5484 [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
5485 frame.
5486 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5487 [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
5488 (construct_mouse_click): Put in #if 0.
5489 (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
5490 (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
5491 TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
5492 (activate_scroll_bars, deactivate_scroll_bars)
5493 [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
5494 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
5495 if the position is neither user-specified nor program-specified.
5496 (x_free_frame_resources): Free size_hints.
5497 (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints.
5498 (mac_clear_font_name_table): New function.
5499 (mac_do_list_fonts): Initialize font_name_table if needed.
5500 (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT
5501 around mac_do_list_fonts.
5502 (mac_unload_font): New function.
5503 (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
5504 (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
5505 and definitions with #if TARGET_API_MAC_CARBON.
5506 [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
5507 (install_window_handler): Add decl.
5508 (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
5509 window. Use UpdateControls. Get the rectangle that should be
5510 updated and restrict the target of expose_frame to it.
5511 (do_grow_window): Set minimum height/width according to size_hints.
5512 (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
5513 (do_zoom_window): Don't use x_set_window_size.
5514 [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
5515 (install_window_handler): New function.
5516 [!USE_CARBON_EVENTS] (mouse_region): New variable.
5517 [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
5518 (XTread_socket) [USE_CARBON_EVENTS]: Move call to
5519 GetEventDispatcherTarget inside BLOCK_INPUT.
5520 (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
5521 Update mouse_region when mouse is moved.
5522 (make_mac_frame): Remove.
5523 (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
5524 Initialize mouse pointer shapes. Change values of f->left_pos and
5525 f->top_pos. Don't use make_mac_frame. Use NewCWindow.
5526 Don't call ShowWindow.
5527 (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
5528 Vinvocation_name and Vsystem_name.
5529 (mac_make_rdb): New function (from w32term.c).
5530 (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has
5531 already been opened. Don't pass argument to
5532 mac_initialize_display_info. Don't set dpyinfo->height/width.
5533 Add entries to x_display_list and x_display_name_list.
5534 (x_delete_display): New function.
5535 (mac_initialize): Don't call mac_initialize_display_info.
5536 (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
5537
5538 * macterm.h (check_mac): Add extern.
5539 (struct mac_output): New member size_hints.
5540 (FRAME_SIZE_HINTS): New macro.
5541 (mac_unload_font): Add extern.
5542
5543 * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
5544
5545 * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
5546
5547 2004-12-27 Richard M. Stallman <rms@gnu.org>
5548
5549 * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
5550 (syms_of_buffer): Don't defsubr it.
5551
5552 * process.c (list_processes_1): Set undo_list instead
5553 of calling Fbuffer_disable_undo.
5554
5555 * xdisp.c (single_display_spec_string_p): Rename from
5556 single_display_prop_string_p.
5557 (single_display_spec_intangible_p): Rename from
5558 single_display_prop_intangible_p.
5559 (handle_single_display_spec): Rename from handle_single_display_prop.
5560 Rewritten to be easier to understand.
5561
5562 Change in load-history format. Functions now get (defun . NAME),
5563 and variables get just NAME.
5564
5565 * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
5566
5567 * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
5568 (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
5569 (Qdefvar): Var deleted.
5570 (syms_of_eval): Don't initialze it.
5571
5572 * lread.c (syms_of_lread) <load-history>: Doc fix.
5573
5574 2004-12-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5575
5576 * xmenu.c (popup_get_selection): Pop down on C-g.
5577 (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
5578 pops down menu on C-g.
5579 (xdialog_show): If dialog popped down and no button in the dialog was
5580 pushed, call Fsignal to quit.
5581 (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
5582 Fsignal to quit.
5583
5584 * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
5585
5586 * gtkutil.c (xg_initialize): Install bindings for C-g so that
5587 dialogs and menus pop down.
5588
5589 2004-12-27 Kenichi Handa <handa@m17n.org>
5590
5591 * coding.c (code_convert_region): Fix calculation of `ratio'.
5592
5593 2004-12-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5594
5595 * gtkutil.c (update_frame_tool_bar): Make the value of
5596 tool-bar-button-margin control margins of images in tool bar.
5597
5598 * alloc.c (check_depth): New variable.
5599 (overrun_check_malloc, overrun_check_realloc): Only add
5600 overhead and write check pattern if check_depth is 1 (to handle
5601 recursive calls). Increase/decrease check_depth in entry/exit.
5602 (overrun_check_free): Only check for overhead if check_depth is 1.
5603 Increase/decrease check_depth in entry/exit.
5604
5605 2004-12-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5606
5607 * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
5608 before touching input_available_clear_time, to avoid accessing it
5609 from multiple threads.
5610
5611 2004-12-23 Jason Rumney <jasonr@gnu.org>
5612
5613 * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
5614 of JPEG library.
5615
5616 2004-12-22 Richard M. Stallman <rms@gnu.org>
5617
5618 * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
5619
5620 * lisp.h (Vundo_outer_limit): Fix decl.
5621
5622 * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
5623 Uses changed.
5624 (syms_of_undo): Initialize appropriately.
5625 (truncate_undo_list): If it's nil, there's no limit.
5626
5627 2004-12-22 Kenichi Handa <handa@m17n.org>
5628
5629 * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
5630
5631 2004-12-21 Richard M. Stallman <rms@gnu.org>
5632
5633 * eval.c (unwind_to_catch): Clear immediate_quit.
5634
5635 * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
5636 specially as `\ ' and `\-'.
5637
5638 * keyboard.c (kbd_buffer_store_event_hold):
5639 In the code for while-no-input, handle immediate_quit.
5640
5641 * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
5642 Call that at the very start.
5643 (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
5644 (syms_of_alloc): Don't define undo-limit,
5645 undo-strong-limit and undo-outer-limit here.
5646
5647 * undo.c (truncate_undo_list): Return void.
5648 Take just one argument, the buffer.
5649 Make it current, and inhibit recursive GC.
5650 Access and update the undo list directly; return void.
5651 Refer to the undo...limit variables directly.
5652 Test undo_outer_limit only after counting the whole current command.
5653 When it's exceeded, call the function in undo-outer-limit-function.
5654 (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
5655 (Vundo_outer_limit_function): New variable.
5656 (syms_of_undo): Define undo-limit, undo-strong-limit
5657 and undo-outer-limit here, and undo-outer-limit-function.
5658 Doc fixes.
5659
5660 * lisp.h (truncate_undo_list): Update decl.
5661
5662 2004-12-21 Piet van Oostrum <piet@cs.uu.nl>
5663
5664 * fileio.c (Fread_file_name): Delete duplicates in
5665 file-name-history when history_delete_duplicates is true.
5666
5667 2004-12-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5668
5669 * macterm.c (mac_do_list_fonts): Fix memory leak
5670
5671 2004-12-20 Richard M. Stallman <rms@gnu.org>
5672
5673 * regex.c (re_match_2_internal) <symend, wordend>:
5674 Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
5675
5676 2004-12-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5677
5678 * macterm.c (endif, x_font_name_to_mac_font_name):
5679 Use maccentraleurroman instead of maccentraleuropean
5680 (mac_c_string_match, mac_do_list_fonts): Speed up font search by
5681 quickly finding a specific font without needing regexps.
5682
5683 2004-12-15 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5684
5685 * syssignal.h: Declare main_thread.
5686 (SIGNAL_THREAD_CHECK): New macro.
5687
5688 * keyboard.c (input_available_signal): Move thread checking code
5689 to macro SIGNAL_THREAD_CHECK and call that macro.
5690 (interrupt_signal): Call SIGNAL_THREAD_CHECK.
5691
5692 * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
5693
5694 * emacs.c: Define main_thread.
5695 (main): Initialize main_thread.
5696 (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
5697 (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
5698
5699 * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
5700
5701 * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
5702
5703 * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
5704
5705 * process.c (send_process_trap, sigchld_handler):
5706 Call SIGNAL_THREAD_CHECK.
5707
5708 * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
5709
5710 * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
5711
5712 * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
5713 returning when xg_ignore_gtk_scrollbar is true.
5714
5715 2004-12-14 Kim F. Storm <storm@cua.dk>
5716
5717 * keyboard.c (read_char): Save and restore echo_string when
5718 handling input method.
5719
5720 2004-12-13 Richard M. Stallman <rms@gnu.org>
5721
5722 * eval.c (syms_of_eval) <quit-flag>: Doc fix.
5723
5724 * keyboard.c (Vthrow_on_input): New variable.
5725 (syms_of_keyboard): Defvar and initialize it.
5726 (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
5727
5728 * lisp.h (QUIT): Check for Vthrow_on_input.
5729 (Vthrow_on_input): Declare it.
5730
5731 2004-12-13 Kim F. Storm <storm@cua.dk>
5732
5733 * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
5734 vector.
5735
5736 2004-12-12 Richard M. Stallman <rms@gnu.org>
5737
5738 * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
5739
5740 * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
5741 (Ftry_completion): Really use outer `zero'; eliminate inner one.
5742
5743 2004-12-12 Kenichi Handa <handa@m17n.org>
5744
5745 * term.c (encode_terminal_code): Fix previous change.
5746
5747 2004-12-11 Stefan Monnier <monnier@iro.umontreal.ca>
5748
5749 * keyboard.c (handle_async_input): Remove pthread mutex handling.
5750 (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
5751
5752 * syntax.c (Fforward_word): Avoid non-idempotent side-effects
5753 in macro arguments.
5754
5755 * minibuf.c (Ftry_completion, Fall_completions): Don't use
5756 XFASTINT blindly.
5757
5758 * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
5759
5760 2004-12-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5761
5762 * w32term.c (x_calc_absolute_position): Remove calculation of
5763 difference between inner and outer window. Don't subtract difference
5764 for left and top calculations.
5765
5766 * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
5767 for left and top calculations. Remove call to x_real_positions.
5768 [Bug report by Drew Adams in November]
5769 (x_check_expected_move): Do not set change_gravity to 1 when calling
5770 x_set_offset.
5771
5772 2004-12-08 Richard M. Stallman <rms@gnu.org>
5773
5774 * xdisp.c (get_next_display_element): Use `escape-glyph' for
5775 control chars and escaped octal codes.
5776 (Qescape_glyph): New variable.
5777 (syms_of_xdisp): Initialize it.
5778 (escape_glyph_face): New variable.
5779 (redisplay_window): Initialize it.
5780
5781 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
5782
5783 * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
5784 (init_image): Use 1 rather than TRUE. TRUE's not always defined.
5785
5786 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5787
5788 * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
5789 reset_malloc_hooks.
5790
5791 * keyboard.c (handle_async_input, input_available_signal):
5792 Add ! defined (SYSTEM_MALLOC) around thread code.
5793
5794 * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
5795
5796 2004-12-07 Stefan Monnier <monnier@iro.umontreal.ca>
5797
5798 * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
5799
5800 * config.in: Regenerate.
5801
5802 2004-12-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
5803
5804 * xmenu.c (Fx_popup_menu): Correct documentation about position.
5805 (xmenu_show): Do not call XTranslateCoordinates. Adjust position
5806 if not given by a mouse click to correspond with x-popup-menu
5807 documentation.
5808
5809 * config.in: Regenerate.
5810
5811 * gtkutil.c: Include signal.h and syssignal.h.
5812 (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
5813
5814 * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
5815 new variables main_thread and alloc_mutex,
5816 define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
5817 emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
5818 If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
5819 (UN)BLOCK_INPUT.
5820 (emacs_blocked_free, emacs_blocked_malloc)
5821 (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
5822 (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
5823 (reset_malloc_hooks): New function.
5824
5825 * lisp.h: Declare reset_malloc_hooks.
5826
5827 * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
5828
5829 * keyboard.c: Conditionally include pthread.h
5830 (handle_async_input, input_available_signalt): If not in the main
5831 thread, block signal, send signal to main thread and return.
5832
5833 * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
5834 Set current folder in file chooser if default_filename is a directory.
5835
5836 2004-12-05 Stefan Monnier <monnier@iro.umontreal.ca>
5837
5838 * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
5839 Remove redundant correctness checks.
5840 (regex_compile): Fix up error codes for \{..\} expressions.
5841
5842 2004-12-05 Richard M. Stallman <rms@gnu.org>
5843
5844 * regex.c (regex_compile): Fix end-of-pattern case for space.
5845
5846 2004-12-03 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5847
5848 * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
5849 * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
5850 crashes with invalid characters.
5851 * macmenu.c (add_menu_item): Use it.
5852 * image.c (image_load_quartz2d): Likewise.
5853 * macfns.c (x_set_name, x_set_title): Likewise.
5854 (Fx_file_dialog): Likewise. Use constant CFRefs instead of
5855 creating them each time for labels.
5856
5857 2004-12-02 Richard M. Stallman <rms@gnu.org>
5858
5859 * config.in (RE_TRANSLATE_P): If make_number is not a macro,
5860 don't use it here.
5861
5862 * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
5863 (interactive_p): Skip Scalled_interactively_p frames
5864 like Sinteractive_p frames.
5865 (unwind_to_catch): Clear handling_signal.
5866
5867 * data.c (Fmake_variable_buffer_local): Doc fix.
5868 (Fmake_local_variable): Doc fix.
5869
5870 * insdel.c (insert_from_string_before_markers)
5871 (insert_from_string): Don't modify buffer on empty insertion.
5872
5873 * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
5874
5875 2004-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5876
5877 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
5878 menu text as UTF8 fails.
5879
5880 2004-12-01 Kim F. Storm <storm@cua.dk>
5881
5882 * alloc.c: Add commentary for last change.
5883 (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
5884 sizeof(size_t) != 4.
5885 (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
5886 Use them. Also clear header and trailer of freed memory.
5887 (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
5888 (string_overrun_cookie): Rename from string_overrun_pattern.
5889 (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
5890
5891 2004-12-01 Andreas Schwab <schwab@suse.de>
5892
5893 * lisp.h: Declare string_to_multibyte.
5894
5895 2004-12-01 Kenichi Handa <handa@m17n.org>
5896
5897 * w32console.c (w32con_write_glyphs): Decide coding here.
5898 Adjusted for the change of encode_terminal_code.
5899
5900 * term.c (encode_terminal_code): Don't make it "static".
5901
5902 2004-11-30 Kenichi Handa <handa@m17n.org>
5903
5904 * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
5905 (encode_terminal_code): Argument changed. Encode all
5906 characters at once, and return a pointer to the result of encoding.
5907 (write_glyphs): Decide coding here. Adjusted for the above change.
5908 (insert_glyphs): Likewise.
5909 (term_init): Initialize encode_terminal_bufsize to 0.
5910
5911 * coding.c (Vcode_conversion_workbuf_name): New variable.
5912 (syms_of_coding): Initialize and staticpro it.
5913 (set_conversion_work_buffer): New function.
5914 (run_pre_post_conversion_on_str): Use it.
5915 (run_pre_write_conversin_on_c_str): New function.
5916
5917 * coding.h (run_pre_write_conversin_on_c_str): Extern it.
5918
5919 2004-11-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5920
5921 * keyboard.c: Don't undef SIGIO
5922 * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
5923 * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
5924 (macfns.o): Don't depend on ccl.h.
5925 * macfns.c (mac_frame_parm_handlers): Set handlers for
5926 Qleft_fringe and Qright_fringe.
5927 * macterm.c (mac_fill_rectangle_to_pixmap)
5928 (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
5929 (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
5930 Put in #if 0.
5931 (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
5932 (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
5933 (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
5934 (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5935 [!MAC_OS8]: Added ifdef'd out code for os8. Don't use
5936 XDrawImageString. Always draw background and foreground separately.
5937 (x_draw_image_foreground): Use clipping instead of computing the
5938 intersection rectangle.
5939 (x_draw_image_glyph_string): Don't draw an image with mask to a
5940 pixmap.
5941 (x_redisplay_interface): Set flush_display_optional member to 0.
5942 (XTread_socket): Correctly reset the TEConverter
5943 object.
5944
5945 2004-11-30 Kim F. Storm <storm@cua.dk>
5946
5947 * lisp.h: New defines to enable buffer overrun checking.
5948 (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
5949 (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
5950
5951 * alloc.c: Add more checks for buffer overruns.
5952 (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
5953 xmalloc_overrun_check_trailer, overrun_check_malloc)
5954 overrun_check_realloc, overrun_check_free): Add.
5955 (GC_STRING_EXTRA, string_overrun_pattern): Add.
5956 (check_sblock, allocate_string_data, compact_small_strings):
5957 Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
5958 (check_cons_list): Condition on GC_CHECK_CONS_LIST.
5959 (check_string_free_list): Add.
5960 (allocate_string, sweep_strings): Call check_string_free_list.
5961
5962 * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
5963 XMALLOC_OVERRUN_CHECK to avoid crash during load.
5964
5965 2004-11-29 Kim F. Storm <storm@cua.dk>
5966
5967 * fns.c (concat): Use SAFE_ALLOCA.
5968
5969 2004-11-29 Stefan Monnier <monnier@iro.umontreal.ca>
5970
5971 * sysdep.c (emacs_write): Don't use QUIT.
5972
5973 2004-11-29 Kenichi Handa <handa@m17n.org>
5974
5975 * buffer.c (init_buffer): Set current_buffer->directory to a
5976 multibyte string made by string_to_multibyte.
5977
5978 * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
5979
5980 2004-11-27 Andreas Schwab <schwab@suse.de>
5981
5982 * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
5983
5984 * s/gnu-linux.h: Enable no-op gcpros on ia64.
5985 (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
5986
5987 * filelock.c (lock_file_1): Call get_boot_time early.
5988 Increase buffer size.
5989
5990 2004-11-27 Eli Zaretskii <eliz@gnu.org>
5991
5992 * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
5993 is not defined.
5994
5995 2004-11-27 Kim F. Storm <storm@cua.dk>
5996
5997 * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
5998 marker out of doc string.
5999
6000 2004-11-26 Stefan Monnier <monnier@iro.umontreal.ca>
6001
6002 * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
6003 which was not mentioned in the log.
6004
6005 2004-11-26 Kim F. Storm <storm@cua.dk>
6006
6007 * fringe.c (update_window_fringes): Prefer truncation bitmaps over
6008 angle bitmaps at top/bottom line.
6009
6010 * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
6011 set it when it->method is set to next_element_from_display_vector.
6012 (setup_for_ellipsis): Add LEN argument. Callers changed.
6013 Set it->saved_face_id.
6014 (get_next_display_element): Use loop instead of recursion.
6015 Set it->saved_face_id. Combine duplicate code for ctr chars.
6016 (next_element_from_display_vector): Do not set it->saved_face_id.
6017 (next_element_from_ellipsis): Use setup_for_ellipsis.
6018
6019 2004-11-26 Eli Zaretskii <eliz@gnu.org>
6020
6021 * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
6022 prevent compiler warnings.
6023
6024 2004-11-25 Stefan Monnier <monnier@iro.umontreal.ca>
6025
6026 * keyboard.c (command_loop_1): Print a message describing the key
6027 the user just pressed when this key has no binding.
6028
6029 * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
6030 (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
6031
6032 * lread.c (readchar): Check QUIT when `getc' is interrupted.
6033
6034 2004-11-24 Richard M. Stallman <rms@gnu.org>
6035
6036 * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
6037
6038 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
6039
6040 2004-11-24 Kim F. Storm <storm@cua.dk>
6041
6042 * xdisp.c (move_it_in_display_line_to, display_line):
6043 Restore saved_face_id also when truncate-lines or hscrolled.
6044
6045 2004-11-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6046
6047 * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
6048 x-use-old-gtk-file-dialog.
6049
6050 * xfns.c: Define x_use_old_gtk_file_dialog.
6051 (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it
6052 outside ifdef USE_GTK.
6053
6054 2004-11-23 Stefan Monnier <monnier@iro.umontreal.ca>
6055
6056 * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
6057 Don't use XFASTINT blindly.
6058
6059 * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
6060
6061 * indent.c (skip_invisible): Avoid non-idempotent side-effects
6062 in macro arguments.
6063
6064 * keymap.c (Flookup_key): Check INTEGERP before XINT.
6065
6066 * lread.c (oblookup): Don't use XFASTINT blindly.
6067
6068 * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
6069 (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
6070
6071 2004-11-23 Kim F. Storm <storm@cua.dk>
6072
6073 * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
6074 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
6075
6076 * xfaces.c (lookup_named_face): Add signal_p arg. Return -1 if
6077 signal_p is zero and face name is unknown.
6078 (Fx_list_fonts): Don't signal error in lookup_named_face.
6079 (Fface_font): Signal error in lookup_named_face.
6080 (ascii_face_of_lisp_face): Likewise.
6081
6082 * dispextern.h (lookup_named_face): Fix prototype.
6083
6084 * xdisp.c (handle_single_display_prop): Don't signal error in
6085 lookup_named_face for unknown fringe face name.
6086 (highlight_trailing_whitespace): Don't signal error in
6087 lookup_named_face if trailing-whitespace face unknown.
6088 (calc_line_height_property): Don't signal error in
6089 lookup_named_face if specified face name is unknown.
6090
6091 * fringe.c (update_window_fringes): Show top row indicator if
6092 window has header-line. Don't show arrow at bob and eob
6093 if the boundary indicators are not used.
6094 (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
6095
6096 * window.c (set_window_buffer): Clear display_error_modiff.
6097
6098 2004-11-22 Kim F. Storm <storm@cua.dk>
6099
6100 * fringe.c (update_window_fringes): Provide sensible fall-back
6101 value for non-nil indicate-buffer-boundaries setting.
6102
6103 2004-11-22 Markus Rost <rost@ias.edu>
6104
6105 * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
6106
6107 2004-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
6108
6109 * eval.c (Fdefvar): Warn when var is let-bound but globally void.
6110
6111 2004-11-21 Kim F. Storm <storm@cua.dk>
6112
6113 * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
6114
6115 * xterm.c (x_clip_to_row): Add area arg. Callers changed.
6116 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
6117
6118 * w32term.c (w32_clip_to_row): Add area arg. Callers changed.
6119 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
6120
6121 * macterm.c (x_clip_to_row): Add area arg. Callers changed.
6122 (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
6123
6124 * xdisp.c (move_it_in_display_line_to, display_line):
6125 Restore saved_face_id if overflow-newline-into-fringe is enabled and
6126 line is continued before or in middle of element from display vector.
6127
6128 * indent.c (Fvertical_motion): Fix last change. Use another
6129 method to detect if iterator moved too far ahead after reseat.
6130
6131 * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro. Do not
6132 expand matrix width for overflow in zero-width area.
6133 (append_glyph, append_composite_glyph, produce_image_glyph)
6134 (append_stretch_glyph): Use it to avoid loop in redisplay.
6135 (note_mode_line_or_margin_highlight): Don't let help-echo from
6136 string override help-echo from image map.
6137
6138 2004-11-20 Luc Teirlinck <teirllm@auburn.edu>
6139
6140 * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
6141 * callint.c (Fcall_interactively): Ditto.
6142
6143 2004-11-20 Stefan Monnier <monnier@iro.umontreal.ca>
6144
6145 * minibuf.c (Fminibuffer_complete_and_exit):
6146 Fixup the case of the completed value, for case-indep completion.
6147
6148 2004-11-20 Richard M. Stallman <rms@gnu.org>
6149
6150 * lisp.h (Fread_from_minibuffer): Add arg in decl.
6151
6152 * minibuf.c (read_minibuf): New arg KEEP_ALL. Callers changed.
6153 (Fread_from_minibuffer): New arg KEEP_ALL. Callers changed.
6154
6155 * search.c (Vsearch_spaces_regexp):
6156 Rename from Vsearch_whitespace_regexp. All uses changed.
6157
6158 2004-11-20 Thien-Thi Nguyen <ttn@gnu.org>
6159
6160 * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
6161
6162 2004-11-19 Richard M. Stallman <rms@gnu.org>
6163
6164 * search.c (Vsearch_whitespace_regexp): New variable.
6165 (syms_of_search): Defvar it.
6166 (compile_pattern_1): Call re_set_whitespace_regexp with it.
6167 (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
6168 is non-nil.
6169 (struct regexp_cache): New element whitespace_regexp.
6170 (syms_of_search): Initialize whitespace_regexp elements.
6171 (compile_pattern): Compare whitespace_regexp elements.
6172 (compile_pattern_1): Set whitespace_regexp elements.
6173
6174 * regex.c (regex_compile): Substitute whitespace_regexp
6175 for spaces, if it is nonzero.
6176 (whitespace_regexp): New variable.
6177 (re_set_whitespace_regexp): New function.
6178
6179 2004-11-19 Kim F. Storm <storm@cua.dk>
6180
6181 * indent.c (Fvertical_motion): Fix last change.
6182
6183 2004-11-18 Kim F. Storm <storm@cua.dk>
6184
6185 * indent.c (Fvertical_motion): Undo 2004-11-16 change.
6186 Instead, move back again if reseating moves too far ahead.
6187
6188 2004-11-17 Luc Teirlinck <teirllm@auburn.edu>
6189
6190 * xdisp.c (message3): Call clear_message.
6191
6192 2004-11-17 Kim F. Storm <storm@cua.dk>
6193
6194 * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
6195
6196 2004-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6197
6198 * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
6199
6200 * xmenu.c (x_menu_in_use): Remove.
6201 (x_menu_set_in_use): Also set popup_activated_flag.
6202
6203 * xfns.c (Fx_file_dialog): Call popup_activated instead of
6204 x_menu_in_use. Call x_menu_set_in_use in Motif version also.
6205
6206 * xterm.h (x_menu_in_use): Remove.
6207
6208 2004-11-16 Richard M. Stallman <rms@gnu.org>
6209
6210 * keymap.c (Fmap_keymap): New arg SORT-FIRST.
6211 Use map-keymap-internal to implement that.
6212
6213 * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
6214
6215 2004-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
6216
6217 * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
6218 a window before using XWINDOW.
6219
6220 * window.c (make_window, Fselect_window, make_dummy_parent)
6221 (save_window_save):
6222 * frame.c (make_frame):
6223 * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
6224
6225 * lisp.h (NILP): Use EQ rather than XFASTINT.
6226
6227 2004-11-16 Kim F. Storm <storm@cua.dk>
6228
6229 * fringe.c (Fdefine_fringe_bitmap): Always set 'h'. Simplify.
6230
6231 * indent.c (Fvertical_motion): Fix last change. Only reseat when
6232 moving backwards.
6233
6234 2004-11-16 Luc Teirlinck <teirllm@auburn.edu>
6235
6236 * dispextern.h: Extern reseat_at_previous_visible_line_start.
6237
6238 2004-11-16 Kenichi Handa <handa@m17n.org>
6239
6240 * xdisp.c (display_mode_element): Fix previous change (calculate
6241 end position of substring to display correctly).
6242
6243 2004-11-16 Kim F. Storm <storm@cua.dk>
6244
6245 * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
6246 Reported by Andrew M. Scott.
6247
6248 2004-11-15 Kim F. Storm <storm@cua.dk>
6249
6250 * fns.c (Fsafe_plist_get): New defun.
6251 (syms_of_fns): Defsubr it.
6252
6253 * lisp.h (Fsafe_plist_get): Add EXFUN.
6254
6255 * xdisp.c (store_mode_line_string, produce_stretch_glyph):
6256 Use Fsafe_plist_get.
6257 (note_mode_line_or_margin_highlight, note_mouse_highlight):
6258 Fix image map element parsing. Use Fsafe_plist_get.
6259
6260 2004-11-15 Richard M. Stallman <rms@gnu.org>
6261
6262 * xdisp.c (get_next_display_element): Fix previous change.
6263
6264 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6265
6266 * window.c (shrink_windows): Handle special case of one window left
6267 when trying to shrink the final reminder. Grow windows if
6268 total_removed is less than total_shrink.
6269
6270 * xmenu.c (pop_down_menu): Remove global variable current_menu,
6271 extract pointer from arg with XSAVE_VALUE.
6272 (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
6273 Construct arg to record_unwind_protect with make_save_value.
6274
6275 2004-11-13 Richard M. Stallman <rms@gnu.org>
6276
6277 * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
6278 (get_next_display_element): Fix previous change to apply only to \n.
6279
6280 * indent.c (Fvertical_motion): Scan to PT from start of line to
6281 make iterator consistent.
6282
6283 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
6284
6285 2004-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6286
6287 * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
6288
6289 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
6290 Record unwind with clean_up_file_dialog.
6291
6292 * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
6293 Declare.
6294
6295 * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
6296
6297 2004-11-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6298
6299 * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6300 (xg_file_sel_destroy): Remove.
6301 (xg_file_response_cb, pop_down_file_dialog)
6302 (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
6303 New functions.
6304 (xg_get_file_with_chooser, xg_get_file_with_selection):
6305 Take new arg func, set it to xg_get_file_name_from_chooser/selector.
6306 Move common code to xg_get_file_name. Return widget created.
6307 (xg_get_file_name): Set name, transient for, modal and destroy
6308 with parent here. Connect response signal to xg_file_response_cb,
6309 connect delete-event to gtk_true. Record pop_down_file_dialog
6310 for unwind. Do event loop and call x_menu_wait_for_event in loop.
6311 (xg_create_widget): Make dialogs modal.
6312
6313 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
6314 Lisp_Object.
6315 (popup_get_selection): Move unwind protect ...
6316 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6317 Move destroy of widget to pop_down_menu.
6318 (popup_widget_loop): Move unwind protect ...
6319 (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6320 Move destroy of widget to pop_down_menu.
6321 (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6322 (xmenu_show): Record unwind pop_down_menu. Move XMenuDestroy,
6323 x_mouse_leave and grabbed = 0 to pop_down_menu.
6324
6325 2004-11-13 Kim F. Storm <storm@cua.dk>
6326
6327 * xdisp.c (make_cursor_line_fully_visible_p): New variable.
6328 (syms_of_xdisp): DEFVAR_BOOL it.
6329 (make_cursor_line_fully_visible, try_cursor_movement)
6330 (try_window_id): Use it.
6331
6332 2004-11-12 Kim F. Storm <storm@cua.dk>
6333
6334 * dispextern.h (struct glyph_row): New member extra_line_spacing.
6335 (struct it): New member max_extra_line_spacing.
6336 (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
6337 (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
6338 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
6339 part of last line is only extra line spacing (so the text on the
6340 line is fully visible). Use helper macros.
6341 Add W arg (to use them). All callers changed.
6342 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
6343 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
6344
6345 * window.c (window_scroll_pixel_based, Frecenter):
6346 Use move_it_vertically_backward directly.
6347 (Frecenter): Fix calculation of new start pos for negative arg.
6348 Before, the new start pos was sometimes chosen too far back, so
6349 the last line became only partially visible, and thus would be
6350 either only semi-visible or automatically scrolled to the middle
6351 of the window by redisplay.
6352
6353 * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
6354 (move_it_vertically_backward): Don't recure to move further back.
6355 (move_it_vertically): Remove superfluous condition.
6356 (move_it_by_lines): Clear last_height when moved 0 lines.
6357 (resize_mini_window): Use it.max_extra_line_spacing.
6358 (display_tool_bar_line): Clear row->extra_line_spacing.
6359 (try_scrolling): Use move_it_vertically_backward directly.
6360 (redisplay_window): Likewise.
6361 (compute_line_metrics): Set row->extra_line_spacing.
6362 (display_line, display_string): Likewise.
6363 (x_produce_glyphs): Update it->max_extra_line_spacing.
6364
6365 * xmenu.c (pop_down_menu): Return nil.
6366
6367 2004-11-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6368
6369 * xmenu.c (x_menu_wait_for_event): New function.
6370 (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
6371 to handle timers.
6372 (popup_widget_loop): Add argument do_timers.
6373 (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
6374 do_timers to popup_widget_loop.
6375 (xmenu_show): Call XMenuActivateSetWaitFunction so that
6376 x_menu_wait_for_event is called by XMenuActivate.
6377 (create_and_show_popup_menu): Pass 1 for do_timers to
6378 popup_get_selection.
6379 (pop_down_menu): New function.
6380 (popup_get_selection, popup_widget_loop): Unwind protect to
6381 pop_down_menu.
6382 (popup_widget_loop): Add argument widget.
6383 (create_and_show_popup_menu, create_and_show_dialog): Pass new
6384 argument widget to popup_widget_loop.
6385
6386 2004-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6387
6388 * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
6389
6390 2004-11-09 Kim F. Storm <storm@cua.dk>
6391
6392 * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
6393 Fix various comments referring to XEvents instead of input events.
6394 (x_queue_event): Fix format strings.
6395 (x_stop_queuing_selection_requests): Likewise.
6396
6397 * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
6398 (pint2hrstr): Add extra braces to silence compiler.
6399
6400 * print.c (print_object): Fix format string.
6401
6402 * lread.c (read1): Fix next_char matching.
6403
6404 * lisp.h (Fdelete): Add EXFUN.
6405 (replace_range_2): Add prototype.
6406
6407 * keyboard.c (read_avail_input): Remove unused variable 'discard'.
6408
6409 * intervals.h (NULL_INTERVAL_P): Add separate version when
6410 ENABLE_CHECKING is not defined to silence compiler.
6411 (compare_string_intervals): Add prototype.
6412
6413 * fringe.c (destroy_fringe_bitmap): Fix return type.
6414 (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
6415
6416 * emacs.c (Fdump_emacs): Fix format string.
6417
6418 * doc.c: Include <ctype.h>.
6419 (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
6420
6421 * data.c (store_symval_forwarding): Remove unused variables.
6422
6423 * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
6424
6425 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6426
6427 * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
6428 to ${OLDXMENU}.
6429
6430 2004-11-09 Kim F. Storm <storm@cua.dk>
6431
6432 * process.c (Fmake_network_process): Remove kludge for interrupted
6433 connects on BSD. If connect is interrupted, just close socket and
6434 start over rather than sleeping and retry with same socket.
6435
6436 2004-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6437
6438 * .cvsignore: Add buildobj.lst.
6439
6440 * doc.c: New variable Vbuild_files.
6441 (Fsnarf_documentation): If Vbuild_files is nil, populate it with
6442 file names from buildobj.lst. Only attach docstrings from files
6443 that are in Vbuild_files.
6444 (syms_of_doc): Defvar Vbuild_files.
6445
6446 * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
6447 and w32*.o.
6448 (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6449 (mostlyclean): Rm buildobj.lst
6450
6451 * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
6452 is linked.
6453
6454 2004-11-09 Kim F. Storm <storm@cua.dk>
6455
6456 * fringe.c (update_window_fringes): Update fringe bitmaps if
6457 cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
6458 also update previous row to get rid of misc. artifacts.
6459
6460 2004-11-08 Kim F. Storm <storm@cua.dk>
6461
6462 * xdisp.c (fast_find_position): Fix start pos if header line present.
6463 (note_mouse_highlight): Clear mouse face if we move out of text area.
6464
6465 2004-11-08 Eli Zaretskii <eliz@gnu.org>
6466
6467 * editfns.c: Move #include "systime.h" before <sys/resource.h>.
6468 Don't include <sys/time.h> explicitly.
6469 Include <stdio.h> unconditionally, not just on MacOS.
6470
6471 2004-11-08 Kenichi Handa <handa@m17n.org>
6472
6473 * fontset.c (fontset_pattern_regexp): Cancel my previous change;
6474 don't pay attention to '\' before '*'.
6475 (fontset_pattern_regexp): Change the meaning of the second arg.
6476 (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
6477 (check_fontset_name): Try NAME as literal at first, and if it
6478 failes, try NAME as pattern.
6479
6480 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6481
6482 * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
6483
6484 2004-11-07 Andreas Schwab <schwab@suse.de>
6485
6486 * lisp.h (Fmsdos_downcase_filename): Declare.
6487 * dired.c (Fmsdos_downcase_filename): Don't declare here.
6488 * fileio.c: Likewise.
6489
6490 2004-11-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6491
6492 * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
6493 comparisons with integers instead of Lisp_Object address.
6494 (Fmsdos_set_keyboard): Declare argument allkeys.
6495
6496 * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
6497
6498 * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
6499 int/Lisp_Object mixup.
6500
6501 * fileio.c: Ditto.
6502
6503 2004-11-06 Steven Tamm <steventamm@mac.com>
6504
6505 * editfns.c: Need to include sys/time.h before resource.h on darwin.
6506
6507 2004-11-06 Richard M. Stallman <rms@gnu.org>
6508
6509 * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
6510
6511 * xfaces.c (merge_named_face): GCPRO the face_name in the
6512 named_merge_point struct that we make.
6513 (merge_face_heights): Eliminate GCPRO arg. All callers changed.
6514
6515 * keyboard.c (command_loop_1): Change Vtransient_mark_mode
6516 before deciding whether to inactivate mark.
6517
6518 2004-11-06 Lars Brinkhoff <lars@nocrew.org>
6519
6520 * config.in: Regenerate (add HAVE_GETRUSAGE).
6521 * editfns.c (Fget_internal_run_time): New function.
6522 (syms_of_data): Defsubr it.
6523 * fns.c (sxhash): As far as possible, merge calculation of
6524 hash code for symbols and strings.
6525
6526 2004-11-06 Eli Zaretskii <eliz@gnu.org>
6527
6528 * frame.c (syms_of_frame): Fix the example in the doc string.
6529
6530 2004-11-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6531
6532 * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
6533
6534 * xmenu.c (popup_get_selection, create_and_show_popup_menu)
6535 (create_and_show_dialog): Revert change from 2004-10-31.
6536
6537 2004-11-05 Luc Teirlinck <teirllm@auburn.edu>
6538
6539 * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
6540
6541 2004-11-05 Kim F. Storm <storm@cua.dk>
6542
6543 * print.c (print_object): Print Lisp_Misc_Save_Value objects.
6544
6545 * fileio.c (Ffile_modes): Doc fix.
6546 (auto_save_1): Check for Ffile_modes nil value.
6547
6548 2004-11-05 Kim F. Storm <storm@cua.dk>
6549
6550 * xselect.c (struct selection_event_queue, selection_queue)
6551 (x_queue_selection_requests, x_queue_event)
6552 (x_start_queuing_selection_requests)
6553 (x_stop_queuing_selection_requests): Add new queue for selection
6554 input events to replace previous XEvent queue in xterm.c.
6555 (queue_selection_requests_unwind): Adapt to new queue.
6556 (x_reply_selection_request): Adapt to new queue.
6557 Unexpect wait_object in case of x errors (memory leak).
6558 (x_handle_selection_request, x_handle_selection_clear): Make static.
6559 (x_handle_selection_event): New function. May queue selection events.
6560 (wait_for_property_change_unwind): Use save_value instead of cons.
6561 Clear property_change_reply_object.
6562 (wait_for_property_change): Abort if already waiting.
6563 Use save_value instead of cons for unwind data.
6564 (x_handle_property_notify): Skip events already arrived, but don't
6565 free them, as "arrived" field is checked by wait_for_property_change,
6566 and it will be freed by unwind or explicit unexpect_property_change.
6567 (x_get_foreign_selection): Add to new queue.
6568 (receive_incremental_selection): Don't unexpect wait_object when done
6569 as it has already been freed by previous wait_for_property_change.
6570
6571 * xterm.h (x_start_queuing_selection_requests)
6572 (x_stop_queuing_selection_requests, x_handle_selection_request)
6573 (x_handle_selection_clear): Remove prototypes.
6574 (x_handle_selection_event): Add prototype.
6575
6576 * xterm.c (handle_one_xevent): Don't queue X selection events
6577 here, it may be too late if we start queuing after we have already
6578 stored some selection events into the kbd buffer.
6579 (struct selection_event_queue, queue, x_queue_selection_requests)
6580 (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
6581 (x_stop_queuing_selection_requests): Remove/move to xselect.c.
6582 (x_catch_errors_unwind): Block input around final XSync.
6583
6584 * keyboard.h (kbd_buffer_unget_event): Add prototype.
6585
6586 * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
6587 (kbd_buffer_unget_event): New function.
6588 (kbd_buffer_get_event, swallow_events): Combine SELECTION events
6589 and use x_handle_selection_event.
6590 (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
6591
6592 2004-11-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6593
6594 * xselect.c (TRACE3): New debug macro.
6595 (x_reply_selection_request): Use it.
6596 (receive_incremental_selection): In call to TRACE0, the name of
6597 a symbol is in xname.
6598
6599 2004-11-05 Kim F. Storm <storm@cua.dk>
6600
6601 * fontset.c (fontset_pattern_regexp): Use unsigned char.
6602
6603 2004-11-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6604
6605 * fileio.c (Fnext_read_file_uses_dialog_p): New function.
6606
6607 * gtkutil.h (use_old_gtk_file_dialog): Declare.
6608
6609 * gtkutil.c: Make use_old_gtk_file_dialog non-static.
6610 (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
6611 * xfns.c (syms_of_xfns): ... to here.
6612
6613 * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
6614 it doesn't start with /.
6615
6616 2004-11-04 Kenichi Handa <handa@m17n.org>
6617
6618 * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
6619 treat it as a literal character.
6620
6621 2004-11-03 Kim F. Storm <storm@cua.dk>
6622
6623 * .gdbinit (ppt): New function.
6624
6625 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6626
6627 * xterm.c (x_window_to_scroll_bar): Only call
6628 xg_get_scroll_id_for_window if toolkit scroll bars are used.
6629
6630 * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
6631 of save.
6632
6633 2004-11-02 Andreas Schwab <schwab@suse.de>
6634
6635 * window.c (Fscroll_right): Fix last change.
6636
6637 2004-11-02 Kim F. Storm <storm@cua.dk>
6638
6639 * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
6640
6641 2004-11-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6642
6643 * callproc.c (Fcall_process): Block input around vfork.
6644
6645 2004-11-02 Kim F. Storm <storm@cua.dk>
6646
6647 * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
6648 (syms_of_eval): Defsubr it.
6649
6650 2004-11-02 Richard M. Stallman <rms@gnu.org>
6651
6652 * insdel.c (replace_range_2): New function.
6653
6654 * casefiddle.c (casify_region): Handle changes in byte-length
6655 using replace_range_2.
6656
6657 * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
6658
6659 * xdisp.c (back_to_previous_visible_line_start):
6660 Subtract 1 from pos when checking previous newline for invisibility.
6661
6662 * window.c (window_scroll_pixel_based): Update preserve_y
6663 for header line if any.
6664 (Fscroll_left, Fscroll_right): Don't call interactive_p;
6665 use a new second argument instead.
6666
6667 * eval.c (Fcall_interactive_p): New function.
6668 (interactive_p): Don't test INTERACTIVE here.
6669 (Finteractive_p): Doc fix.
6670
6671 * eval.c (Feval): Abort if INPUT_BLOCKED_P.
6672
6673 2004-11-02 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
6674
6675 * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
6676 comparing font names.
6677
6678 2004-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6679
6680 * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
6681 Fx_file_dialog if only directories should be read.
6682
6683 * lisp.h: Fx_file_dialog takes 5 parameters.
6684
6685 * xfns.c (Fx_file_dialog): Both Motif and GTK version:
6686 Add parameter only_dir_p.
6687 In Motif version, don't put DEFAULT_FILENAME in filter part of the
6688 dialog, just text field part. Do not add DEFAULT_FILENAME
6689 to list of files if it isn't there.
6690 In GTK version, pass only_dir_p parameter to xg_get_file_name.
6691
6692 * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
6693 Check only_dir_p instead of comparing prompt to "Dired". When using
6694 a save dialog, add option kNavDontConfirmReplacement, change title
6695 to "Enter name", change text for save button to "Ok".
6696
6697 * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
6698 Check only_dir_p instead of comparing prompt to "Dired".
6699
6700 * gtkutil.c (xg_get_file_with_chooser)
6701 (xg_get_file_with_selection): New functions, only defined ifdef
6702 HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
6703 respectively.
6704 (xg_get_file_name): Add parameter only_dir_p.
6705 Call xg_get_file_with_chooser or xg_get_file_with_selection
6706 depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
6707 (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
6708
6709 * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
6710
6711 * config.in: Rebuild (added HAVE_GTK_FILE_*).
6712
6713 2004-11-01 Kim F. Storm <storm@cua.dk>
6714
6715 * process.c (connect_wait_mask, num_pending_connects):
6716 Only declare and use them if NON_BLOCKING_CONNECT is defined.
6717 (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
6718 (IF_NON_BLOCKING_CONNECT): New helper macro.
6719 (wait_reading_process_output): Only declare and use local vars
6720 Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
6721
6722 2004-11-01 Andy Petrusenco <Igrek@star-sw.com> (tiny change)
6723
6724 * w32term.c (x_scroll_run): Delete region objects after use.
6725
6726 2004-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6727
6728 * xmenu.c: Add prototypes for forward function declarations.
6729 (popup_get_selection): Remove parameter do_timers, remove call to
6730 timer_check.
6731 (create_and_show_popup_menu, create_and_show_dialog):
6732 Remove parameter do_timers from call to popup_get_selection.
6733
6734 * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
6735 tool_bar_items and assign the result to f->tool_bar_items if
6736 not equal. Move BLOCK/UNBLOCK_INPUT from around call to
6737 tool_bar_items to assignment of result.
6738
6739 * atimer.c (alarm_signal_handler): Do not call set_alarm if
6740 pending_atmers is non-zero.
6741
6742 2004-10-31 Kim F. Storm <storm@cua.dk>
6743
6744 * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
6745
6746 2004-10-28 Will <will@glozer.net>
6747
6748 * macterm.c: Allow user to assign key modifiers to the Mac Option
6749 key via a 'mac-option-modifier' variable.
6750
6751 2004-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6752
6753 * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
6754 Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
6755 (x_handle_selection_request, x_handle_selection_clear)
6756 (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
6757
6758 2004-10-28 Richard M. Stallman <rms@gnu.org>
6759
6760 * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
6761
6762 * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
6763
6764 2004-10-27 Stefan Monnier <monnier@iro.umontreal.ca>
6765
6766 * syntax.c (scan_sexps_forward): Give precedence to a 2-char
6767 comment-starter over a 1-char one.
6768
6769 2004-10-27 Richard M. Stallman <rms@gnu.org>
6770
6771 * xdisp.c (get_next_display_element): In mode lines,
6772 treat newline and tab like other control characters.
6773
6774 * editfns.c (Fmessage): Doc fix.
6775
6776 * indent.c (vmotion): When moving up, check the newline before.
6777 Make prevline an int, not a Lisp_Object.
6778
6779 2004-10-27 Kim F. Storm <storm@cua.dk>
6780
6781 * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
6782 Only allocate info and discarded tables once.
6783
6784 * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
6785 (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
6786 (SAFE_FREE): Test it to determine if we need to unwind to free.
6787 Remove size arg. All users changed.
6788 (SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
6789
6790 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6791
6792 * gtkutil.c: Put empty line between comment and function body.
6793 (xg_destroy_widgets): Rename from remove_from_container.
6794 Just destroy all widgets in list. Argument wcont removed.
6795 (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
6796 instead of remove_from_container.
6797 (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
6798 (free_frame_tool_bar): Add comment.
6799
6800 * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
6801 is not NULL before strcmp.
6802
6803 2004-10-26 Kim F. Storm <storm@cua.dk>
6804
6805 * callint.c (Fcall_interactively): Add 'U' code to get the
6806 up-event discarded by a previous 'k' or 'K' argument.
6807
6808 2004-10-26 David Kastrup <dak@gnu.org>
6809
6810 * buffer.c (syms_of_buffer): Fix a few typos.
6811
6812 2004-10-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6813
6814 * xsmfns.c: Put empty line between comment and function body.
6815 Use two spaces before comment end.
6816
6817 2004-10-25 Kenichi Handa <handa@m17n.org>
6818
6819 * fontset.c (fontset_pattern_regexp): Optimize for the case that
6820 PATTERN is full XLFD.
6821
6822 2004-10-24 Kenichi Handa <handa@m17n.org>
6823
6824 * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
6825
6826 * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
6827 (regex_compile): Return REG_ERANGEX if appropriate.
6828
6829 2004-10-22 Kenichi Handa <handa@m17n.org>
6830
6831 * editfns.c (Ftranslate_region_internal): New function.
6832 (syms_of_editfns): Defsubr it.
6833
6834 2004-10-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6835
6836 * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
6837
6838 2004-10-21 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
6839
6840 * xterm.h (x_output): New member `xic_base_fontname'.
6841 (FRAME_XIC_BASE_FONTNAME): New macro.
6842 (xic_free_xfontset): Declare.
6843
6844 * xfns.c (xic_create_xfontset): Share fontsets between frames
6845 based on base_fontname.
6846 (xic_free_xfontset): New function.
6847 (free_frame_xic): Use it.
6848 (xic_set_xfontset): Ditto.
6849
6850 * xterm.c (xim_destroy_callback): Ditto.
6851
6852
6853 2004-10-20 B. Anyos <banyos@freemail.hu> (tiny change)
6854
6855 * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
6856
6857 2004-10-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6858
6859 * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
6860 XSync.
6861
6862 * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
6863 New variables and constant.
6864 (main): Calculate heap_bss_diff. If we are dumping and the
6865 heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
6866 and exec ourself again.
6867 (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
6868 print a warning.
6869
6870 * lastfile.c: Make my_endbss and my_endbss_static available on all
6871 platforms.
6872
6873 * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
6874 * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
6875
6876 2004-10-19 Luc Teirlinck <teirllm@auburn.edu>
6877
6878 * data.c (Flocal_variable_if_set_p): Doc fix.
6879
6880 2004-10-19 Jason Rumney <jasonr@gnu.org>
6881
6882 * w32.c (init_environment): Set emacs_dir correctly when running
6883 emacs from the build directory.
6884
6885 2004-10-19 Richard M. Stallman <rms@gnu.org>
6886
6887 * editfns.c (Fdelete_and_extract_region):
6888 If region is empty, return null string.
6889
6890 2004-10-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6891
6892 * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
6893 and canon_width.
6894 (xg_frame_cleared): Remove.
6895
6896 * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
6897 (xg_find_top_left_in_fixed): Remove.
6898 (xg_create_scroll_bar): Put an event box widget between
6899 the scroll bar widget and the edit widget.
6900 (xg_show_scroll_bar): Show the parent widget (the event box).
6901 (xg_remove_scroll_bar): Destroy parent (the event box) also.
6902 (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
6903 Move the parent (the event box) widget inside the fixed widget.
6904 Move window clear to xterm.c.
6905
6906 * gtkutil.h (xg_frame_cleared): Remove.
6907
6908 * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
6909 (x_scroll_bar_create, XTset_vertical_scroll_bar):
6910 Remove arguments left and width to xg_update_scrollbar_pos.
6911 (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
6912
6913 2004-10-19 Kenichi Handa <handa@m17n.org>
6914
6915 * xdisp.c (display_mode_element): Fix display of wide chars.
6916
6917 2004-10-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
6918
6919 * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
6920 gdk_window_clear and move gdk_window_process_all_updates after
6921 clear so events are sent to the X server in correct order.
6922
6923 2004-10-18 Kenichi Handa <handa@m17n.org>
6924
6925 * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
6926 comparing font names.
6927 (fs_query_fontset): Use fast_string_match for comparing fontset names.
6928 (list_fontsets): Likewise.
6929
6930 * search.c (fast_string_match_ignore_case): New function.
6931
6932 * lisp.h (fast_string_match_ignore_case): Extern it.
6933
6934 2004-10-17 Kim F. Storm <storm@cua.dk>
6935
6936 * xdisp.c (overlay_arrow_at_row): Return overlay string rather
6937 than bitmap if there is not left fringe.
6938 (get_overlay_arrow_glyph_row): Also used on windows system.
6939 (display_line): Display overlay string if no left fringe.
6940
6941 2004-10-16 Jason Rumney <jasonr@gnu.org>
6942
6943 * w32fns.c (w32_font_match): Encode font name being matched.
6944
6945 2004-10-16 Richard M. Stallman <rms@gnu.org>
6946
6947 * window.c (Fspecial_display_p): Doc fix.
6948
6949 2004-10-15 Stefan Monnier <monnier@iro.umontreal.ca>
6950
6951 * doc.c (Fsubstitute_command_keys): Fix remap-handling.
6952 Don't ignore menus, because where-is-internal already does it for us.
6953
6954 2004-10-15 Kim F. Storm <storm@cua.dk>
6955
6956 * xdisp.c (redisplay_window): Only update fringes and vertical
6957 border on window frames.
6958
6959 2004-10-14 Andreas Schwab <schwab@suse.de>
6960
6961 * m/ia64.h (DATA_SEG_BITS): Don't define.
6962
6963 2004-10-14 Kim F. Storm <storm@cua.dk>
6964
6965 * xterm.h: Include Xutil.h after keysym.h to work around bug
6966 in some X versions.
6967
6968 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
6969
6970 * fns.c (map_char_table): Add missing gcpros.
6971
6972 2004-10-13 Stefan Monnier <monnier@iro.umontreal.ca>
6973
6974 * keymap.c (get_keymap): An autoload form is not a keymap.
6975
6976 * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
6977
6978 2004-10-13 Kim F. Storm <storm@cua.dk>
6979
6980 * callproc.c (Fcall_process): Simplify handling of display arg.
6981 Resume `display_on_the_fly' once a coding system is determined.
6982
6983 * xdisp.c (redisplay_preserve_echo_area): Fix last change.
6984
6985 2004-10-12 Kim F. Storm <storm@cua.dk>
6986
6987 * xdisp.c (redisplay_preserve_echo_area): Flush display in case
6988 caller, such as call-process, is not going to poll for input.
6989 (calc_line_height_property): Handle case where it->object is nil.
6990
6991 * xterm.c (x_redisplay_interface): Fix flush_display_optional.
6992
6993 2004-10-12 Kenichi Handa <handa@m17n.org>
6994
6995 * xdisp.c (get_next_display_element):
6996 If unibyte_display_via_language_environment is zero, display 8-bit
6997 chars in octal in unibyte buffer.
6998
6999 2004-10-12 Kim F. Storm <storm@cua.dk>
7000
7001 * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
7002 are no ordinary bindings.
7003
7004 2004-10-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7005
7006 * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
7007
7008 2004-10-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7009
7010 * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
7011 (x_lower_frame): Add BLOCK_INPUT around SendBehind.
7012 (make_mac_frame): Add BLOCK_INPUT around the making of a
7013 terminal frame.
7014 (mac_initialize): Add BLOCK_INPUT around carbon initialization.
7015 * macgui.h (mktime): Use emacs_mktime.
7016 * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
7017 Make a cancel file-open dialog be like C-g.
7018 * mac.c (mktime): Use emacs_mktime.
7019 (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
7020 (Fmac_paste_function): Add better error handling for carbon cut/paste.
7021
7022 2004-10-10 Kim F. Storm <storm@cua.dk>
7023
7024 * keyboard.c (timer_resume_idle): New function to resume idle
7025 timer without resetting timers on the idle list.
7026 (read_char): Use timer_resume_idle. Remove local var last_idle_start.
7027 (timer_start_idle, timer_stop_idle): Declare static.
7028 (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
7029
7030 * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
7031
7032 2004-10-08 Steven Tamm <steventamm@mac.com>
7033
7034 * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
7035 * macterm.c (mac_check_for_quit_char): Remove warning for using
7036 NULL where 0 should be used.
7037 * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
7038 objc/malloc.h
7039 * mac.c: Include time.h for Tiger compatibility.
7040
7041 2004-10-07 Kim F. Storm <storm@cua.dk>
7042
7043 * xdisp.c (redisplay_window): Fix flicker on vertical line between
7044 windows. Update vertical line after drawing window fringes, but
7045 only if actually drawing any bitmaps--or there is no fringe.
7046
7047 * xterm.c (x_update_window_end): Likewise.
7048 * macterm.c (x_update_window_end): Likewise.
7049 * w32term.c (x_update_window_end): Likewise.
7050
7051 * fringe.c (draw_window_fringes): Return value now indicates if
7052 any fringe bitmaps were redrawn (or there are no fringes).
7053
7054 * dispextern.h (draw_window_fringes): Update prototype.
7055
7056 2004-10-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7057
7058 * macfns.c (mac_get_window_bounds): Add extern.
7059 (x_real_positions): Use mac_get_window_bounds.
7060
7061 * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
7062 xmenu.c (YAILOM).
7063
7064 * macterm.c [!MAC_OSX]: Include Windows.h.
7065 (front_emacs_window): Rename from mac_front_window. All uses
7066 changed. Return the frontmost non-tooltip emacs window.
7067 (mac_get_window_bounds): New function.
7068 (x_calc_absolute_position): Use the difference of width and height
7069 between the inner and outer window.
7070 (x_set_offset): Specify window position by the coordinae of the
7071 outer window. Adjust the position if the title bar is completely
7072 outside the screen.
7073 (app_is_suspended, app_sleep_time): Remove unused variables.
7074 (do_app_resume, do_app_suspend): Remove their contents because
7075 window-activate/deactivate events will do the job.
7076 (do_zoom_window): Remove unused variables. Make compliant to the
7077 standard way of zooming. Set f->left_pos and f->top_pos.
7078 (XTread_socket): Don't use argument `expected'. Don't use
7079 FrontWindow to determine the clicked window. Exclude unprocessed
7080 mouseUp cases in the early stage. Add parentheses to fix operator
7081 precedence.
7082 (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
7083
7084 2004-10-05 Jan Dj\e,Ad\e(Brv. <jan.h.d@swipnet.se>
7085
7086 * config.in: Regenerate.
7087
7088 * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
7089 HAVE_EXECSHIELD.
7090
7091 2004-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7092
7093 * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
7094 a row if Alt or Meta has been found for that row. Also stop scanning
7095 for Keysyms for that row.
7096
7097 2004-10-04 Kim F. Storm <storm@cua.dk>
7098
7099 * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
7100 to list. Include overlay arrow bitmap in return value.
7101
7102 * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
7103 bars with fractional column width. If scroll bar separates two
7104 windows, move it towards the window it belongs to. Only update
7105 the padding area below the scroll bar widget when necessary,
7106 i.e. when scroll bar widget is created, moved, or resized.
7107
7108 * xdisp.c (define_frame_cursor1): Do not change frame cursor
7109 while tracking/dragging mouse.
7110 (x_draw_vertical_border): Do not draw line if frame has scroll bars.
7111
7112 * window.c (coordinates_in_window): Relax check for cursor
7113 on vertial border between mode lines.
7114 (Fset_window_fringes): Do not allow negative widths.
7115 (Fset_window_scroll_bars): Likewise.
7116
7117 * .gdbinit (pp): Shorthand for p ARG + pr.
7118 (ff): New command: flush frame updates (X only).
7119
7120 2004-10-03 Michael Albinus <michael.albinus@gmx.de>
7121
7122 * fileio.c (auto_save_1) Call Ffile_modes for remote files.
7123
7124 2004-09-30 Kenichi Handa <handa@m17n.org>
7125
7126 * process.c (send_process): Free composition data.
7127
7128 * fileio.c (Finsert_file_contents): Free composition data.
7129
7130 * coding.c (code_convert_region): Don't skip ASCIIs if there are
7131 compositions to encode.
7132 (encode_coding_string): Likewise. Free composition data.
7133
7134 2004-09-30 Florian Weimer <fw@deneb.enyo.de>
7135
7136 * coding.c (code_convert_region): Free composition data.
7137
7138 2004-09-29 Kim F. Storm <storm@cua.dk>
7139
7140 * fringe.c: Remove limit on number of bitmaps.
7141 (fringe_bitmaps, fringe_faces): Change to pointers.
7142 (max_fringe_bitmaps): New var.
7143 (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
7144 (init_fringe): Allocate fringe_bitmaps and fringe_faces.
7145
7146 * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
7147 (struct glyph_row): Reorder fringe_bitmap related fields.
7148 (struct it): Likewise.
7149
7150 * w32term.c (fringe_bmp): Change to pointer.
7151 (max_fringe_bmp): New var.
7152 (w32_define_fringe_bitmap): Expand fringe_bmp.
7153 (w32_draw_fringe_bitmap): Check max_fringe_bmp.
7154 (w32_destroy_fringe_bitmap): Likewise.
7155
7156 2004-09-29 Kim F. Storm <storm@cua.dk>
7157
7158 * fringe.c: Simplify last change.
7159 (lookup_fringe_bitmap): New function.
7160 (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
7161 (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
7162 Keep standard bitmaps in Vfringe_bitmaps.
7163 (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
7164 (Fset_fringe_bitmap_face): Likewise.
7165
7166 * dispextern.h (lookup_fringe_bitmap): Add prototype.
7167 (valid_fringe_bitmap_p): Remove prototype.
7168
7169 * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
7170
7171 2004-09-29 Kim F. Storm <storm@cua.dk>
7172
7173 * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
7174 (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
7175
7176 * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
7177
7178 * fringe.c (Vfringe_bitmaps): New variable.
7179 (syms_of_fringe): DEFVAR_LISP it.
7180 (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
7181 Change arg to Lisp_Object and fail if not an integer.
7182 (get_fringe_bitmap_name, resolve_fringe_bitmap)
7183 (destroy_fringe_bitmap): New functions.
7184 (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
7185 Use destroy_fringe_bitmap. Remove symbol from Vfringe_bitmaps and
7186 clear its fringe property.
7187 (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
7188 Fdestroy_fringe_bitmap.
7189 (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
7190 bitmap symbol; remove WHICH arg. Add symbol to Vfringe_bitmaps
7191 and set fringe property. Signal error if no free slots.
7192 (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
7193 (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
7194
7195 * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
7196 symbols with a fringe property.
7197
7198 2004-09-27 Kim F. Storm <storm@cua.dk>
7199
7200 * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
7201 Doc fix. Format may now be a symbol or alist, not a cons.
7202
7203 * fringe.c (update_window_fringes): Handle new formats of
7204 indicate-buffer-boundaries (symbol or alist). No longer
7205 allow a simple cons.
7206 (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
7207
7208 2004-09-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7209
7210 * config.in: Rebuild.
7211
7212 2004-09-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7213
7214 * config.in: Rebuild.
7215
7216 * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
7217
7218 2004-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
7219
7220 * xterm.c (x_term_init): Work around a bug in some X servers.
7221
7222 2004-09-18 Richard M. Stallman <rms@gnu.org>
7223
7224 * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
7225
7226 * xdisp.c (try_window_reusing_current_matrix):
7227 Handle the case where we reach the old displayed text,
7228 out of sync with the old line boundary.
7229
7230 2004-09-14 Stefan Monnier <monnier@iro.umontreal.ca>
7231
7232 * fileio.c (Finsert_file_contents): Fix case of replacement in a
7233 narrowed buffer.
7234
7235 2004-09-14 Kim F. Storm <storm@cua.dk>
7236
7237 * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
7238
7239 * xfaces.c (Qface_no_inherit): New var.
7240 (syms_of_xfaces): Intern and staticpro it.
7241 (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
7242 (Finternal_copy_lisp_face, update_face_from_frame_parameter):
7243 Don't increment face_change_count when face has non-nil
7244 face-no-inherit property.
7245
7246 2004-09-13 Stefan Monnier <monnier@iro.umontreal.ca>
7247
7248 * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
7249 (Fbyte_code): Remove dead code after `wrong_type_argument'.
7250
7251 * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
7252 before doing the mark_stack_check_gcpros since they're not on the stack.
7253
7254 2004-09-12 Kim F. Storm <storm@cua.dk>
7255
7256 * editfns.c (Fformat): Handle format strings with multiple text
7257 properties. Reverse text property list from the format string,
7258 so the positions are in increasing order.
7259
7260 2004-09-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7261
7262 * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
7263 x_uncatch_errors so that possible protocol errors are delivered.
7264
7265 2004-09-10 Eli Zaretskii <eliz@gnu.org>
7266
7267 * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
7268 blockinput.h.
7269 (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
7270 charset.h, and coding.h
7271 (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
7272 (term.o): Depend on window.h and keymap.h.
7273 (abbrev.o): Depend on syntax.h.
7274 (callint.o): Depend on keymap.h.
7275 (casefiddle.o): Depend on charset.h and keymap.h.
7276 (category.o): Depend on keymap.h.
7277 (coding.o): Depend on dispextern.h.
7278 (cmds.o): Depend on keyboard.h and keymap.h.
7279 (dispnew.o): Depend on indent.h and intervals.h.
7280 (doc.o): Depend on keymap.h.
7281 (editfns.o): Depend on frame.h.
7282 (emacs.o): Depend on dispextern.h.
7283 (fileio.o): Don't depend on ccl.h.
7284 (filelock.o): Depend on charset.h and coding.h.
7285 (frame.o): Depend on w32term.h and macterm.h.
7286 (insdel.o): Depend on region-cache.h.
7287 (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
7288 (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
7289 (search.o): Depend on $(INTERVALS_SRC).
7290 (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
7291 (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
7292 xterm.h, w32term.h, and macterm.h.
7293 (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
7294 w32term.h, and macterm.h.
7295 (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
7296 region-cache.h, xterm.h, w32term.h, and macterm.h.
7297 (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
7298 (data.o): Depend on frame.h.
7299 (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
7300 (print.o): Depend on termchar.h and $(INTERVALS_SRC).
7301 (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
7302 (intervals.o): Depend on keymap.h.
7303
7304 * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
7305 Add debugging print-out to termscript.
7306
7307 2004-09-09 Richard M. Stallman <rms@gnu.org>
7308
7309 * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
7310
7311 2004-09-08 Richard M. Stallman <rms@gnu.org>
7312
7313 * window.c (Fset_window_buffer): Doc fix.
7314
7315 * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
7316
7317 2004-09-08 Dan Nicolaescu <dann@ics.uci.edu>
7318
7319 * minibuf.c (history_delete_duplicates): New variable.
7320 (read_minibuf): Use it.
7321 (syms_of_minibuf): Create the corresponding lisp variable.
7322
7323 2004-09-08 Kim F. Storm <storm@cua.dk>
7324
7325 * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
7326 overlay just before point.
7327
7328 2004-09-07 Luc Teirlinck <teirllm@auburn.edu>
7329
7330 * buffer.h (struct buffer): Add auto_save_file_format field.
7331 * buffer.c (reset_buffer, init_buffer_once):
7332 Handle auto_save_file_format field.
7333 (syms_of_buffer): Add DEFVAR_PER_BUFFER for
7334 `buffer-auto-save-file-format'.
7335 * fileio.c: Delete declaration for removed Vauto_save_file_format.
7336 (build_annotations): Adapt to replacement of
7337 `auto-save-file-format' with the new buffer-local variable
7338 `buffer-auto-save-file-format'.
7339 (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
7340
7341 2004-09-07 Jason Rumney <jasonr@gnu.org>
7342
7343 * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
7344
7345 * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
7346 Handle Unicode menu titles.
7347
7348 2004-09-07 Kim F. Storm <storm@cua.dk>
7349
7350 * xdisp.c (set_cursor_from_row): Fix last change. Only use 'cursor'
7351 property from text property or overlay strings at point.
7352
7353 2004-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7354
7355 * xmenu.c (update_submenu_strings): YAILOM.
7356 (set_frame_menubar): Make sure last_i is initialized.
7357
7358 2004-09-03 Jason Rumney <jasonr@gnu.org>
7359
7360 * w32menu.c (_widget_value): Add lname and lkey.
7361 (digest_single_submenu): Set lname and lkey in widget_value
7362 instead of name and key.
7363 (update_submenu_strings): New function.
7364 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7365 call update_submenu_strings.
7366
7367 * w32menu.c (globals_of_w32menu): Check for Unicode API.
7368 (digest_single_submenu, w32_menu_show): Encode menu strings as
7369 UTF-8 if Unicode API is available.
7370 (utf8to16): New function.
7371 (add_menu_item): Use it when calling Unicode API.
7372
7373 2004-09-03 Kim F. Storm <storm@cua.dk>
7374
7375 * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
7376 in overlay or text-property strings; set cursor on corresponding
7377 glyph rather than at end of the string.
7378
7379 2004-09-02 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7380
7381 * macfns.c (x_real_positions): Save the current window port and
7382 set a new one before obtaining the global coordinate.
7383 Use FRAME_MAC_WINDOW.
7384 (x_set_name, x_set_title): Encode title to UTF8.
7385 Use SetWindowTitleWithCFString.
7386 (Fx_server_version): Get correct OS version.
7387
7388 * macmenu.c (add_menu_item): Remove unused variable `i'.
7389 Don't let separator items destroy refence constants of other menu items.
7390
7391 * macterm.c (x_update_end): Move SetPortWindowPort to inside
7392 BLOCK_INPUT.
7393 (x_set_offset): Use FRAME_MAC_WINDOW.
7394
7395 * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
7396 nontext_cursor if it is on a scroll bar.
7397
7398 * s/darwin.h (LIBS_CARBON): New define to specify libraries for
7399 Carbon support.
7400 (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
7401 Use LIBS_CARBON.
7402
7403 2004-09-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7404
7405 * xfns.c (x_set_name_internal): New function. Check if we shall call
7406 xfree before ENCODE_UTF_8.
7407 (x_set_name, x_set_title): Call x_set_name_internal.
7408
7409 2004-08-31 NAKAMURA Toshikazu <nr-tkz@nifty.com> (tiny change)
7410
7411 * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
7412 reload it.
7413
7414 2004-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7415
7416 * macmenu.c (_widget_value): Add lname and lkey.
7417 (single_submenu): Set lname and lkey in widget_value
7418 instead of name and key.
7419 (update_submenu_strings): New function.
7420 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7421 call update_submenu_strings.
7422
7423 * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
7424 instead of name and key.
7425 (update_submenu_strings): New function.
7426 (set_frame_menubar): Remove call to inhibit_garbage_collection,
7427 call update_submenu_strings.
7428
7429 * gtkutil.h (_widget_value): Added lname and lkey.
7430
7431 2004-08-30 Steven Tamm <steventamm@mac.com>
7432
7433 * macmenu.c (mac_menu_show): Remove shadowing of menu variable
7434 by using different names for inner loop variables.
7435
7436 2004-08-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7437
7438 * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
7439 from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
7440
7441 * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
7442 tool bar items is 0.
7443
7444 2004-08-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7445
7446 * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
7447 strings in menu items.
7448 (single_submenu): Use ENCODE_MENU_STRING
7449 (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because
7450 button release isn't passed to event loop
7451 (add_menu_item): Use SetMenuItemWithCFString
7452
7453 2004-08-26 Steven Tamm <steventamm@mac.com>
7454
7455 * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7456 tool-bar/menu click.
7457 * macfns.c (Fx_file_dialog): Implement using NavServices.
7458
7459 2004-08-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7460
7461 * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
7462
7463 * xfns.c (x_window_to_frame, x_any_window_to_frame)
7464 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7465 (x_top_window_to_frame): Return 0 if wdesc is None.
7466
7467 2004-08-22 Richard M. Stallman <rms@gnu.org>
7468
7469 * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
7470 HAVE_TERMIOS]: If there's no char for this signal, drop through
7471 and use system calls.
7472
7473 * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
7474
7475 2004-08-20 Kim F. Storm <storm@cua.dk>
7476
7477 * process.c (wait_reading_process_output): Rename from
7478 wait_reading_process_input. All uses changed.
7479 (wait_reading_process_output_1): Rename from
7480 wait_reading_process_input_1. All uses changed.
7481
7482 * dispnew.c (Fsleep_for): Remove obsolete code.
7483
7484 2004-08-20 Kenichi Handa <handa@m17n.org>
7485
7486 * syntax.c (skip_chars): Fix for unibyte case.
7487
7488 2004-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7489
7490 * syntax.c (char_quoted): Mixup byte/char pos.
7491 (back_comment): Fixup globals in all cases.
7492
7493 2004-08-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7494
7495 * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
7496 passing it to gtk_window_set_title.
7497
7498 2004-08-19 Kim F. Storm <storm@cua.dk>
7499
7500 * process.c (wait_reading_process_input): Clean up.
7501 Add wait_for_cell, wait_proc, and just_wait_proc args
7502 to avoid overloading `read_kbd' and `do_display' args.
7503 Change read_kbd arg to int. All callers changed.
7504
7505 * process.c (process_send_signal): Use CDISABLE.
7506
7507 * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
7508
7509 2004-08-18 Kim F. Storm <storm@cua.dk>
7510
7511 * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
7512 forward to wait_reading_process_input via DO_DISPLAY arg.
7513 (wait_reading_process_input): If DO_DISPLAY < 0 for a process
7514 object, only process output from that process; also inhibit
7515 running timers if DO_DISPLAY==-2.
7516
7517 2004-08-17 Kim F. Storm <storm@cua.dk>
7518
7519 * process.c (process_send_signal): Fix last change--use
7520 _POSIX_VDISABLE instead of CVDISABLE when available.
7521
7522 2004-08-16 Richard M. Stallman <rms@gnu.org>
7523
7524 * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
7525 Set VQUIT and VINTR chars to the standard ones if they are unset.
7526 [AIX]: Don't do that here. And don't force VINTR to standard
7527 when SIGNALS_VIA_CHARACTERS.
7528
7529 * process.c (process_send_signal)
7530 [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
7531 Do nothing if the character is CVDISABLE.
7532
7533 * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
7534
7535 * intervals.c (move_if_not_intangible):
7536 Force POSITION to be between BEGV and ZV.
7537
7538 2004-08-14 John Paul Wallington <jpw@gnu.org>
7539
7540 * buffer.c (Frestore_buffer_modified_p): Doc fix.
7541
7542 * fileio.c (Fread_file_name): Doc fix.
7543
7544 * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
7545
7546 2004-08-09 Luc Teirlinck <teirllm@auburn.edu>
7547
7548 * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
7549
7550 2004-08-08 Luc Teirlinck <teirllm@auburn.edu>
7551
7552 * keyboard.c: Declare Qdisabled_command_function instead of
7553 Qdisabled_command_hook.
7554 (Fcommand_execute): Use Qdisabled_command_function instead of
7555 Qdisabled_command_hook.
7556 (syms_of_keyboard): Ditto.
7557
7558 2004-08-07 Luc Teirlinck <teirllm@auburn.edu>
7559
7560 * keymap.c (Flocal_key_binding, Fglobal_key_binding)
7561 (syms_of_keymap) <key-translation-map>: Doc fixes.
7562
7563 2004-08-07 Stefan Monnier <monnier@iro.umontreal.ca>
7564
7565 * window.c (window_list_1): YAILOM.
7566
7567 * fileio.c (make_temp_name): Handle multibyte prefixes.
7568
7569 2004-08-06 Luc Teirlinck <teirllm@auburn.edu>
7570
7571 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
7572 Doc fix.
7573
7574 2004-08-03 Kenichi Handa <handa@m17n.org>
7575
7576 * coding.c (decode_coding_string): Adjust coding->consumed, and
7577 etc. with shrinked_bytes.
7578
7579 2004-08-03 Kim F. Storm <storm@cua.dk>
7580
7581 * indent.c (compute_motion): Fix check for full width window
7582 in non-window case. Do not count left truncation glyph on
7583 window systems.
7584
7585 2004-08-02 Luc Teirlinck <teirllm@auburn.edu>
7586
7587 * data.c (Finteractive_form): Doc fix.
7588
7589 2004-08-02 Kim F. Storm <storm@cua.dk>
7590
7591 * indent.c (compute_motion): Use actual window width if WIDTH is -1,
7592 properly accounting for continuation glyph on non-window systems.
7593 (Fcompute_motion): Use actual window width if WIDTH is nil, and
7594 actual window width/height if TOPOS is nil, properly accounting for
7595 continuation glyphs on non-window systems, and optional header lines.
7596 (vmotion): Let compute_motion calculate actual window width.
7597
7598 * window.c (window_scroll_line_based): Let compute_motion
7599 calculate actual window width.
7600
7601 2004-08-02 Kim F. Storm <storm@cua.dk>
7602
7603 * process.c (read_process_output): Use whole read buffer.
7604 Don't trigger adaptive read buffering on errors.
7605
7606 2004-07-31 Luc Teirlinck <teirllm@auburn.edu>
7607
7608 * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
7609
7610 * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
7611
7612 * callint.c (Fcall_interactively): Doc fix.
7613
7614 2004-07-30 Richard M. Stallman <rms@gnu.org>
7615
7616 * abbrev.c (Fexpand_abbrev): Undo previous change.
7617
7618 2004-07-30 Kim F. Storm <storm@cua.dk>
7619
7620 * editfns.c (Fformat): Allocate extra (dummy) element in info.
7621
7622 2004-07-28 Luc Teirlinck <teirllm@auburn.edu>
7623
7624 * eval.c (Fdefvar, Fdefconst): Doc fixes.
7625
7626 2004-07-27 Kim F. Storm <storm@cua.dk>
7627
7628 * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
7629 we have ensured that the glyph fits on the current line (or returned
7630 MOVE_LINE_CONTINUED otherwise).
7631
7632 2004-07-26 Kim F. Storm <storm@cua.dk>
7633
7634 * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
7635 is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
7636 if target position is at end of display line but char is not a newline.
7637
7638 2004-07-25 Richard M. Stallman <rms@gnu.org>
7639
7640 * window.c (coordinates_in_window): Return ON_SCROLL_BAR
7641 instead of ON_VERTICAL_BORDER, when on scroll bar.
7642 (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
7643
7644 * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
7645
7646 * window.c (Fcoordinates_in_window_p):
7647 Take account of FRAME_INTERNAL_BORDER_WIDTH.
7648
7649 * alloc.c (check_cons_list): New function (contents commented out).
7650
7651 2004-07-24 Luc Teirlinck <teirllm@auburn.edu>
7652
7653 * xfaces.c (Fcolor_supported_p): Doc fix.
7654
7655 * frame.c (Fselect_frame, Fset_frame_selected_window)
7656 (Fframe_visible_p, Fraise_frame): Doc fixes.
7657
7658 2004-07-24 Richard M. Stallman <rms@gnu.org>
7659
7660 * keyboard.h (not_single_kboard_state): Declare.
7661
7662 * fileio.c (Fwrite_region): Doc fix.
7663
7664 * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
7665
7666 * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
7667 only when a real abbrev is present.
7668
7669 * xfns.c (x_icon_verify): New function.
7670 (Fx_create_frame): Use it.
7671
7672 2004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
7673
7674 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
7675
7676 2004-07-21 Kim F. Storm <storm@cua.dk>
7677
7678 * window.h (struct glyph_matrix): New members nrows_scale_factor
7679 and ncols_scale_factor.
7680
7681 * window.c (make_window): Initialize nrows_scale_factor and
7682 ncols_scale_factor members.
7683
7684 * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
7685 (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
7686 (required_matrix_height): Apply nrows_scale_factor.
7687 (required_matrix_width): Apply ncols_scale_factor.
7688
7689 * xdisp.c (display_line): Increment nrows_scale_factor and set
7690 fonts_changed_p if past last allocated row.
7691 (append_glyph, append_composite_glyph, produce_image_glyph)
7692 (append_stretch_glyph): Increment ncols_scale_factor and set
7693 fonts_changed_p if current area is full.
7694
7695 2004-07-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7696
7697 * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
7698
7699 2004-07-19 Luc Teirlinck <teirllm@auburn.edu>
7700
7701 * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
7702 (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
7703 (Fset_window_start, Fscroll_up, Fscroll_down)
7704 (Fother_window_for_scrolling, Fscroll_other_window)
7705 (Fsave_window_excursion, Fset_window_vscroll)
7706 (syms_of_window) <window-size-fixed>: Doc fixes.
7707
7708 2004-07-19 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7709
7710 * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
7711 ENCODE_SYSTEM for filenames.
7712
7713 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7714
7715 * mac.c (sys_select): Block input around call to
7716 ReceiveNextEvent to prevent breakage. Correctly handle
7717 blocking on event queue only by calling ReceiveNextEvent
7718 instead of select (since GUI events aren't on an fd).
7719 (sys_read): Remove function
7720 * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
7721
7722 2004-07-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7723
7724 * mac.c (sys_select): Redo sys_select to use alarm-based
7725 polling instead of 1 sec timeouts (like solaris).
7726
7727 * macterm.c (x_make_frame_visible): Comment in polling on
7728 frame creation.
7729
7730 * keyboard.c: Undef SIGIO on Carbon
7731
7732 * atimer.c (alarm_signal_handler): Call alarm handlers after
7733 scheduling.
7734
7735 * eval.c (Feval): Remove quit_char test
7736
7737 * process.c (wait_reading_process_input): Remove clearing
7738 stdin for select call on process input.
7739
7740 2004-07-18 Luc Teirlinck <teirllm@auburn.edu>
7741
7742 * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
7743 capitalization error in docstring.
7744
7745 2004-07-17 Juanma Barranquero <lektu@terra.es>
7746
7747 * keyboard.c (not_single_kboard_state): Do nothing unless
7748 MULTI_KBOARD is defined.
7749
7750 2004-07-17 Richard M. Stallman <rms@gnu.org>
7751
7752 * window.c (coordinates_in_window): Inside the window but outside
7753 its box to the L or R, return ON_VERTICAL_BORDER.
7754 (window_list_1): Rotate the list to start with WINDOW.
7755
7756 * print.c (print_preprocess): Test for print_depth at limit
7757 before entering in being_printed.
7758
7759 * keyboard.c (not_single_kboard_state): New function.
7760 (stuff_buffered_input): Now no-op only if no SIGTSTP.
7761
7762 * frame.c (Fdelete_frame): If we're in single_bboard_state on
7763 this kboard, and we delete its last frame, go to any_kboard_state.
7764
7765 * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
7766
7767 2004-07-15 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
7768
7769 * w32fns.c (Fx_file_dialog): Encode strings in system coding
7770 system before passing them to OS functions for display.
7771
7772 2004-07-15 David Kastrup <dak@gnu.org>
7773
7774 * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
7775 Apparently fixes an abort condition.
7776
7777 2004-07-14 Luc Teirlinck <teirllm@auburn.edu>
7778
7779 * fileio.c (Fvisited_file_modtime): Return a list of two integers,
7780 instead of a cons.
7781
7782 2004-07-14 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
7783
7784 * keyboard.c (echo_dash): Do nothing if there already is a dash
7785 at the end of the echo string.
7786
7787 2004-07-12 Kim F. Storm <storm@cua.dk>
7788
7789 * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
7790 if GC_MARK_STACK.
7791
7792 2004-07-10 Luc Teirlinck <teirllm@auburn.edu>
7793
7794 * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
7795
7796 * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
7797 (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
7798 (Freplace_buffer_in_windows, Fset_window_buffer)
7799 (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
7800 (syms_of_window): Expand docstring of `display-buffer-function'.
7801
7802 2004-07-09 Luc Teirlinck <teirllm@auburn.edu>
7803
7804 * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
7805 (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
7806 that time values of the type (HIGH . LOW) are considered obsolete.
7807
7808 2004-07-06 Luc Teirlinck <teirllm@auburn.edu>
7809
7810 * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
7811 docstring.
7812
7813 * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
7814
7815 2004-07-06 John Paul Wallington <jpw@gnu.org>
7816
7817 * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
7818
7819 * fns.c (Fclear_string): Signal an error if STRING is not a string.
7820
7821 2004-07-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7822
7823 * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
7824 instead of CGMainDisplayID (only in OSX 10.2 and later).
7825
7826 2004-07-04 John Paul Wallington <jpw@gnu.org>
7827
7828 * fileio.c (read_file_name_completion_ignore_case): New variable.
7829 (syms_of_fileio): Declare and initialise it.
7830 (Fread_file_name): Bind `completion-ignore-case' to respect it.
7831
7832 2004-07-03 Eli Zaretskii <eliz@gnu.org>
7833
7834 * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
7835 for event.x and event.y.
7836
7837 2004-07-01 Kenichi Handa <handa@m17n.org>
7838
7839 * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
7840 after getting a new string by pre-write-conversion.
7841
7842 2004-06-30 Stefan Monnier <monnier@iro.umontreal.ca>
7843
7844 * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
7845 (x_calc_absolute_position): Remove unused var `child'.
7846
7847 * xfaces.c (x_supports_face_attributes_p)
7848 (Fdisplay_supports_face_attributes_p): YAILOM.
7849 (tty_supports_face_attributes_p): Remove unused var `i'.
7850
7851 * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
7852 back_unibyte_ok.
7853
7854 * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
7855
7856 * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
7857
7858 * Makefile.in (${etc}DOC): Fix file name of make-docfile.
7859
7860 2004-06-30 Andreas Schwab <schwab@suse.de>
7861
7862 * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
7863 (Finit_image_library): Pass LIBRARIES through to
7864 CHECK_LIB_AVAILABLE. Declare parameters. Doc fix.
7865 (lookup_image_type): Pass Qnil as second argument to
7866 Finit_image_library.
7867
7868 * lisp.h (Finit_image_library): Declare.
7869
7870 2004-06-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7871
7872 * macterm.c (do_window_activate, do_window_deactivate): Remove.
7873 (XTread_socket): Send mouse button events to the toolbox
7874 dispatcher even when the mouse is grabbed. Don't process window
7875 activate events for non-Emacs windows. Replace function calls to
7876 do_window_activate and do_window_deactivate with their contents.
7877 Reset mouse grabbing status when a window is deactivated.
7878
7879 2004-06-29 Steven Tamm <steventamm@mac.com>
7880
7881 * macterm.c (mac_get_emulated_btn)
7882 (mac_event_to_emacs_modifiers): Fix emulated mouse button
7883 support to correctly mask out modifiers.
7884
7885 2004-06-29 David Kastrup <dak@gnu.org>
7886
7887 * search.c (Fset_match_data): Allow buffer before end of list
7888 which can happen if set-match-data is using a pre-consed list.
7889
7890 2004-06-28 Steven Tamm <steventamm@mac.com>
7891
7892 * macterm.c (XTread_socket): Correctly set the frame position
7893 after the window is moved.
7894
7895 2004-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
7896
7897 * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
7898 gpix and gmask just before return to avoid memory leak.
7899 (xg_get_image_for_pixmap): Add workaround for monochrome displays
7900 so insensitive and activated icons look ok.
7901
7902 2004-06-27 Jason Rumney <jasonr@gnu.org>
7903
7904 * w32fns.c (file_dialog_callback): Disable edit control if set
7905 to directories only on CDN_INITDONE message.
7906 (Fx_file_dialog): Default to directories only when prompt starts
7907 with "Dired".
7908
7909 2004-06-25 Kim F. Storm <storm@cua.dk>
7910
7911 * alloc.c (allocate_misc): Update total_free_markers.
7912 (free_misc): New function.
7913 (safe_alloca_unwind, free_marker): Use it.
7914
7915 * lisp.h (free_misc): Add prototype.
7916
7917 * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
7918
7919 2004-06-24 Richard M. Stallman <rms@gnu.org>
7920
7921 * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
7922 (syms_of_emacs): Lisp variables deleted.
7923
7924 2004-06-23 David Kastrup <dak@gnu.org>
7925
7926 * search.c (Freplace_match): Adjust the match-data more thoroughly
7927 when replacing strings in the buffer.
7928 (Fmatch_data): When INTEGERS is non-nil and the last match was in
7929 a buffer, add the buffer as last element to the match data.
7930 (Fset_match_data): If an additional element of the match-data is a
7931 buffer, restore it to last_thing_searched.
7932 (save_search_regs): Save last_thing_searched as part of the match data.
7933 (restore_match_data): Restore it again.
7934
7935 2004-06-23 Luc Teirlinck <teirllm@auburn.edu>
7936
7937 * keymap.c (Ftext_char_description): Doc fix.
7938 * doc.c (Fsnarf_documentation): Doc fix.
7939
7940 2004-06-22 Kim F. Storm <storm@cua.dk>
7941
7942 * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
7943
7944 * lisp.h (struct Lisp_Save_Value): New member dogc.
7945 (SAFE_ALLOCA_LISP): Change second arg to number of elements.
7946 Set dogc member in Lisp_Save_Value object so it will be GC'ed.
7947 (SAFE_FREE_LISP): New macro.
7948
7949 * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
7950 (make_save_value): Init new dogc member.
7951 (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
7952
7953 * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
7954 SAFE_FREE_LISP macros.
7955
7956 2004-06-22 Kim F. Storm <storm@cua.dk>
7957
7958 * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
7959 Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
7960 in that memory area are unknown to GC. Add comments.
7961
7962 * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
7963
7964 2004-06-21 Kim F. Storm <storm@cua.dk>
7965
7966 * lisp.h (MAX_ALLOCA): Define here.
7967 (safe_alloca_unwind): Add prototype.
7968 (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
7969
7970 * alloc.c (safe_alloca_unwind): New function.
7971
7972 * casefiddle.c (casify_object): Use SAFE_ALLOCA.
7973
7974 * charset.c (Fstring): Use SAFE_ALLOCA.
7975
7976 * coding.c (MAX_ALLOCA): Remove define.
7977
7978 * data.c (MAX_ALLOCA): Remove define.
7979 (Faset): Use SAFE_ALLOCA.
7980
7981 * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
7982
7983 * fns.c (string_make_multibyte, string_to_multibyte)
7984 (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
7985 (MAX_ALLOCA): Remove define.
7986 (Fbase64_encode_region, Fbase64_encode_string)
7987 (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
7988 (Fbase64_encode_region, Fbase64_encode_string): Fix potential
7989 memory leak if encoding fails.
7990
7991 * xdisp.c (add_to_log): Use SAFE_ALLOCA.
7992
7993 2004-06-21 Eli Zaretskii <eliz@gnu.org>
7994
7995 * print.c (Fwith_output_to_temp_buffer): Doc fix.
7996
7997 2004-06-20 Richard M. Stallman <rms@gnu.org>
7998
7999 * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
8000
8001 * search.c (match_limit): Cleaner err msg when no match data available.
8002
8003 * window.c (syms_of_window): Doc fix.
8004
8005 * keyboard.c (command_loop_1): Handle values `only' and `identity'
8006 for Vtransient_mark_mode.
8007
8008 * buffer.c (syms_of_buffer): Doc fix.
8009
8010 2004-06-21 David Kastrup <dak@gnu.org>
8011
8012 * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
8013 and unbinding of `case-fold-search' according to
8014 `completion-ignore-case' around calls of string-match and
8015 predicates, respectively. Should give satisfactory performance
8016 in all relevant cases.
8017
8018 2004-06-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8019
8020 * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
8021 clip_x/y_origin.
8022
8023 * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
8024
8025 * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
8026
8027 * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
8028 on Mac OSX.
8029
8030 2004-06-16 Luc Teirlinck <teirllm@auburn.edu>
8031
8032 * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
8033
8034 2004-06-16 Kim F. Storm <storm@cua.dk>
8035
8036 * dispextern.h (Vimage_types): Remove extern.
8037
8038 2004-06-16 Miles Bader <miles@gnu.org>
8039
8040 * image.c (lookup_image_type): Initialize image type if necessary.
8041
8042 2004-06-15 Kim F. Storm <storm@cua.dk>
8043
8044 * xdisp.c (try_cursor_movement): Exclude header line from scroll
8045 margin at top of window.
8046 (try_window_reusing_current_matrix): Calculate proper cursor position
8047 after scrolling up with non-zero scroll margin, as the old cursor
8048 position corresponds to value of PT before executing this command.
8049 (try_window_id): Consider scroll margin at bottom of window too;
8050 otherwise we fail to scroll when hl-line-mode is enabled.
8051
8052 * syntax.c (skip_chars): Only recognize [:class:] when it has the
8053 proper format and class is a lower-case word.
8054
8055 2004-06-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8056
8057 * gtkutil.c (xg_get_image_for_pixmap): New function.
8058 (xg_get_gdk_pixmap_and_mask): Remove.
8059 (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
8060 xg_get_gdk_pixmap_and_mask.
8061
8062 * xterm.h (struct x_display_info): Typo in comment fixed.
8063
8064 2004-06-14 Juanma Barranquero <lektu@terra.es>
8065
8066 * dispextern.h (Vimage_types): Make it conditional on
8067 HAVE_WINDOW_SYSTEM.
8068
8069 * image.c (Vimage_types): Move from xdisp.c.
8070 (Vimage_type_cache): New variable.
8071 (define_image_type): New argument indicating whether an image
8072 library was loaded; cache loaded status and return t on success,
8073 nil otherwise.
8074 (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
8075 (w32_delayed_load): New function to load an image library from a
8076 list of possible filenames.
8077 (init_xpm_functions, init_png_functions, init_jpeg_functions)
8078 (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
8079 (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
8080 (Finit_image_library): New function, extracted from `init_image'.
8081 Try to initialize an image library on demand and cache whether we
8082 were successful or not.
8083 (syms_of_image): Initialize `Vimage_types' and
8084 `Vimage_type_cache'. Add recognized image types to Vimage_types.
8085 Export `init-image-library'.
8086 (init_image): Remove initialization of all image types, except xbm
8087 and pbm.
8088
8089 * xdisp.c (Vimage_types): Delete (moved to image.c).
8090
8091 2004-06-14 Andreas Schwab <schwab@suse.de>
8092
8093 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
8094 Avoid calling specbind when completion-regexp-list is empty.
8095
8096 2004-06-13 Richard M. Stallman <rms@gnu.org>
8097
8098 * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
8099 (re_wctype, re_iswctype, re_wctype_to_bit):
8100 Non-function definitions moved here from regex.c.
8101
8102 * regex.c (re_wctype, re_iswctype): Function defs longer static.
8103 (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
8104 (re_wctype, re_iswctype, re_wctype_to_bit):
8105 Non-function definitions moved to regex.h.
8106
8107 * window.c (Fselect_window): Doc fix.
8108
8109 * syntax.c: Include regex.h.
8110 (skip_chars): New arg HANDLE_ISO_CLASSES. Callers changed.
8111 If requested, make a list of classes, then check the scanned
8112 chars for membership in them.
8113 (in_classes): New function.
8114 Doc fix.
8115
8116 * keyboard.c (cmd_error): Don't call any_kboard_state
8117 if inside a recursive edit level.
8118
8119 2004-06-13 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
8120
8121 * keyboard.c (command_loop): Call any_kboard_state before
8122 command_loop_2 when at top level.
8123
8124 2004-06-13 Andreas Schwab <schwab@suse.de>
8125
8126 * print.c (print_object): Always use %ld for printing EMACS_INT.
8127
8128 * keyboard.c (cancel_hourglass_unwind): Return a value.
8129 (modify_event_symbol): Always use %ld for printing EMACS_INT.
8130 (Fexecute_extended_command): Likewise.
8131
8132 * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
8133 avoid clashes.
8134 (SYNTAX): Likewise.
8135 (SYNTAX_WITH_FLAGS): Likewise.
8136 (SYNTAX_MATCH): Likewise.
8137
8138 * syntax.c (char_quoted): Avoid warning about undefined operation.
8139 (find_defun_start): Likewise.
8140 (scan_lists): Likewise.
8141 (INC_FROM): Likewise.
8142 (scan_sexps_forward): Likewise.
8143
8144 * image.c: Include <ctype.h>.
8145
8146 * xfaces.c (face_attr_equal_p): Declare parameters.
8147
8148 2004-06-13 Kenichi Handa <handa@m17n.org>
8149
8150 * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
8151
8152 2004-06-12 Matthew Mundell <matt@mundell.ukfsn.org>
8153
8154 * eval.c (Fdefun): Signal an error if NAME is not a symbol.
8155
8156 2004-06-12 Kenichi Handa <handa@m17n.org>
8157
8158 * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
8159 ccl_prog_stack_struct and update it.
8160 (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
8161 (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
8162 ccl->eof_ic on EOF.
8163 (ccl_debug_hook): New function.
8164 (struct ccl_prog_stack): New member eof_ic.
8165 (ccl_driver): Handle EOF in subrountine call correctly.
8166
8167 2004-06-11 Kenichi Handa <handa@m17n.org>
8168
8169 * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
8170
8171 2004-06-11 Kim F. Storm <storm@cua.dk>
8172
8173 * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
8174
8175 2004-06-11 Juanma Barranquero <lektu@terra.es>
8176
8177 * keyboard.c (Fposn_at_point): Doc fix.
8178
8179 2004-06-11 David Kastrup <dak@gnu.org>
8180
8181 * search.c (match_limit): Don't flag an error if match-data
8182 exceeding the allocated search_regs.num_regs gets requested, just
8183 return Qnil.
8184
8185 2004-06-08 Miles Bader <miles@gnu.org>
8186
8187 * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
8188
8189 2004-06-07 Juanma Barranquero <lektu@terra.es>
8190
8191 * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
8192 (Fcurrent_time_string, Fcurrent_time_zone)
8193 (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
8194
8195 2004-06-07 Miles Bader <miles@gnu.org>
8196
8197 * xfaces.c (struct named_merge_point): New type.
8198 (push_named_merge_point): New function.
8199 (merge_named_face): New function.
8200 (merge_face_ref, face_at_buffer_position, face_at_string_position):
8201 Use `merge_named_face'.
8202 (merge_face_inheritance): Function removed.
8203 (merge_face_ref): Rename from `merge_face_vector_with_property'.
8204 Add new `err_msgs' and `named_merge_points' args. Return error
8205 status. Only print error messages if ERR_MSGS is true. Don't try to
8206 do :inherit attribute validation.
8207 (merge_face_heights): Handle `unspecified' in both directions.
8208 (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
8209 Call `merge_face_ref' instead of `merge_face_inheritance'.
8210 (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
8211 (compute_char_face, face_at_buffer_position)
8212 (face_at_string_position): Call `merge_face_ref' instead of
8213 `merge_face_vector_with_property'.
8214
8215 2004-06-07 Kenichi Handa <handa@m17n.org>
8216
8217 * coding.c (find_safe_codings): Check NILP (safe_codings) only at
8218 the necessary places.
8219
8220 2004-06-07 Kim F. Storm <storm@cua.dk>
8221
8222 * process.c (Fdelete_process): Undo 2004-05-28 change.
8223 Instead, call status_notify also for network process.
8224 (status_message): Use process instead of status as arg.
8225 Give messages "deleted" or "connection broken by remote peer" for
8226 an exited network process.
8227 (status_notify): Change call to status_message.
8228 (read_process_output): Increase readmax to 4096. Do not increase
8229 buffer size for datagram channels (default is now large enough).
8230
8231 2004-06-06 Steven Tamm <tamm@Steven-Tamms-Computer.local>
8232
8233 * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
8234 problem due to newly defined variable.
8235
8236 2004-06-06 Miles Bader <miles@gnu.org>
8237
8238 * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
8239 immediately if non-interactive or not initialized.
8240
8241 2004-06-05 Richard M. Stallman <rms@gnu.org>
8242
8243 * minibuf.c (Fcompleting_read): Doc fix.
8244
8245 2004-06-05 Andreas Schwab <schwab@suse.de>
8246
8247 * macfns.c (x_create_tip_frame): Fix declaration after statement.
8248
8249 2004-06-05 Juanma Barranquero <lektu@terra.es>
8250
8251 * keymap.c (Fdescribe_vector): Fix docstring.
8252 (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
8253
8254 2004-06-05 Miles Bader <miles@gnu.org>
8255
8256 * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
8257 attributes have different values than the default face.
8258
8259 2004-06-04 Eli Zaretskii <eliz@gnu.org>
8260
8261 * xfaces.c (x_supports_face_attributes_p): Make this function
8262 conditional on HAVE_WINDOW_SYSTEM.
8263 (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
8264 Don't call x_supports_face_attributes_p if it was not compiled in.
8265
8266 2004-06-04 Miles Bader <miles@gnu.org>
8267
8268 * xfaces.c (tty_supports_face_attributes_p): New function, mostly
8269 from Ftty_supports_face_attributes_p.
8270 (x_supports_face_attributes_p): New function.
8271 (Ftty_supports_face_attributes_p): Function deleted.
8272 (Fdisplay_supports_face_attributes_p): New function.
8273 (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
8274 (face_attr_equal_p): New function.
8275 (lface_equal_p): Use it.
8276
8277 2004-06-03 Juanma Barranquero <lektu@terra.es>
8278
8279 * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
8280 (Vw32_color_map): Fix typo in docstring.
8281 (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
8282 (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
8283 Make argument names match their use in docstring.
8284
8285 2004-06-02 Juanma Barranquero <lektu@terra.es>
8286
8287 Work around bugs/problems with MinGW builds of graphics libraries
8288 called from MSVC builds of Emacs.
8289
8290 * image.c (lookup_image): Make pointer to img static.
8291 (png_read_from_memory): Disable "global" optimization.
8292
8293 2004-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8294
8295 * eval.c (Fcondition_case): Fix usage. Simplify.
8296
8297 * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
8298
8299 2004-05-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8300
8301 * macfns.c: Don't include ccl.h.
8302 [MAC_OSX]: Don't include QuickTime/QuickTime.h.
8303 [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
8304 TextUtils.h.
8305 (Fx_create_frame): Sync with xfns.c. Initialize cursor descriptors.
8306 (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
8307 display height/width.
8308 (compute_tip_xy, Vx_max_tooltip_size): Declare.
8309 (unwind_create_tip_frame, compute_tip_xy): New functions.
8310 (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
8311 (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
8312 and last_show_tip_args.
8313
8314 * macgui.h [!MAC_OSX]: Include Gestalt.h.
8315 (Cursor, No_Cursor): New defines.
8316 [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
8317 [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
8318
8319 * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
8320
8321 * macterm.c: Don't include Gestalt.h.
8322 (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
8323 (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
8324 (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
8325 (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
8326 (mac_copy_area, mac_copy_area_with_mask, x_update_end)
8327 (construct_mouse_click, XTmouse_position)
8328 (x_scroll_bar_report_motion, x_calc_absolute_position)
8329 (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
8330 (XTread_socket, make_mac_frame): Use SetPortWindowPort.
8331 (note_mouse_movement): Clear the mouse face and reset the pointer
8332 shape when the pointer goes outside the frame without grabbing.
8333 (mac_front_window): New function.
8334 (mac_window_to_frame): New macro.
8335 (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
8336 (do_window_activate, do_window_deactivate, do_app_resume)
8337 (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
8338 (do_zoom_window, mac_do_receive_drag, XTread_socket)
8339 (mac_check_for_quit_char): Use mac_front_window and/or
8340 mac_window_to_frame.
8341 (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
8342 scroll-bar click event.
8343 (mac_define_frame_cursor): Change the pointer shape.
8344 (x_free_frame_resources): Reset tip_window to NULL when it is
8345 disposed of.
8346 [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
8347 [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
8348 (do_window_update): Don't do anything if the updated window is the
8349 tooltip window.
8350 (do_mouse_moved): Handle mouse movement events here (previously in
8351 XTread_socket). Clear the mouse face if
8352 dpyinfo->mouse_face_hidden is set.
8353 (do_os_event, do_events): Remove (now in XTread_socket).
8354 (XTread_socket): Immediately return if interrupt_input_blocked.
8355 Loop until all the events in the queue are processed.
8356 Rearrange codes for mouse grabbing. Add tooltip support. Include the
8357 contents of do_os_event and do_events. Remove mouse movement
8358 handling (now in do_mouse_moved). Add the case where
8359 Vmouse_highlight has an integer value.
8360 (NewMacWindow): Remove.
8361 (make_mac_frame): Do what NewMacWindow previously did. Don't do
8362 excess initializations.
8363 (make_mac_terminal_frame): Previous initializations in
8364 make_mac_frame are moved here.
8365 (mac_initialize_display_info):
8366 Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
8367
8368 * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
8369 (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
8370
8371 2004-05-29 Richard M. Stallman <rms@gnu.org>
8372
8373 * lisp.h (truncate_undo_list): Update decl.
8374
8375 * alloc.c (undo_outer_limit): New variable.
8376 (syms_of_alloc): Defvar it.
8377 (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
8378
8379 * undo.c (truncate_undo_list): New arg LIMITSIZE.
8380
8381 * alloc.c (lisp_align_malloc): Check for base == 0
8382 regardless of HAVE_POSIX_MEMALIGN.
8383 Clean up HAVE_POSIX_MEMALIGN handling of `err'.
8384
8385 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8386
8387 * alloc.c: Undo Kim's recent changes and fix the same bug differently.
8388 (marker_blocks_pending_free): Remove.
8389 (Fgarbage_collect): Sweep after cleaning up undo-lists.
8390 Mark the undo lists after claning them up.
8391 Don't free block in marker_blocks_pending_free.
8392 (mark_buffer): Don't mark undo_list.
8393 (gc_sweep): Sweep hash-tables and strings first.
8394 Do free marker blocks that are empty.
8395
8396 2004-05-28 Jim Blandy <jimb@redhat.com>
8397
8398 * regex.c (print_partial_compiled_pattern): Add missing 'break'
8399 after 'case wordend'. For symbeg and symend, print to stderr,
8400 like the other cases.
8401
8402 2004-05-28 Noah Friedman <friedman@splode.com>
8403
8404 * process.c (Fdelete_process): Do not call remove_process.
8405
8406 2004-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
8407
8408 * alloc.c (struct backtrace): Remove.
8409 (Fgarbage_collect): Use the new mark_backtrace.
8410
8411 * eval.c (mark_backtrace): New function.
8412
8413 * minibuf.c (run_exit_minibuf_hook): New function.
8414 (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
8415 (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
8416
8417 2004-05-27 Kim F. Storm <storm@cua.dk>
8418
8419 * xdisp.c (back_to_previous_visible_line_start): Skip backwards
8420 over display properties, e.g. images, that replace buffer text.
8421
8422 2004-05-25 Kim F. Storm <storm@cua.dk>
8423
8424 * alloc.c (marker_blocks_pending_free): New var.
8425 (gc_sweep): Store free marker blocks on that list.
8426 (Fgarbage_collect): Free them after undo-list cleanup.
8427
8428 * process.c (wait_reading_process_input): Check connect_wait_mask
8429 before actually accepting connection in case it has already been
8430 accepted due to recursion.
8431
8432 2004-05-23 K\e,Ba\e(Broly L\e,Bu\e(Brentey <lorentey@elte.hu>
8433
8434 * coding.c (Fset_safe_terminal_coding_system_internal):
8435 Set suppress_error in safe_terminal_coding, not terminal_coding.
8436
8437 2004-05-22 Richard M. Stallman <rms@gnu.org>
8438
8439 * alloc.c (Fmake_string): Doc fix.
8440
8441 * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
8442 and the alist pairs too.
8443
8444 * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
8445
8446 * emacs.c (main): Update copyright year.
8447
8448 * fileio.c (Fread_file_name): Expand DIR if not absolute.
8449
8450 * insdel.c (del_range_2, replace_range): Don't write an anchor
8451 if the gap is empty.
8452
8453 * xdisp.c (try_scrolling): If scroll-up-aggressively or
8454 scroll-down-aggressively is small but positive, put point
8455 near the screen edge.
8456
8457 2004-05-22 Juanma Barranquero <lektu@terra.es>
8458
8459 * keymap.c (Fdefine_key): Doc fix.
8460
8461 2004-05-22 Kim F. Storm <storm@cua.dk>
8462
8463 * alloc.c (struct backtrace): Add debug_on_exit member.
8464 (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
8465 Identify those markers as Lisp_Misc_Free objects. Clear car and cdr of
8466 the removed cons cells.
8467 (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
8468 (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
8469 any cons cells pointing to unallocated stings.
8470 Do not lisp_free any marker blocks, as there may still be pointers
8471 to them from buffer undo lists at this stage of GC.
8472
8473 * keyboard.c (struct backtrace): Add debug_on_exit member.
8474 (Fcommand_execute): Clear it.
8475
8476 2004-05-20 Luc Teirlinck <teirllm@auburn.edu>
8477
8478 * intervals.c (lookup_char_property): Do not prematurely return nil.
8479
8480 2004-05-19 Jim Blandy <jimb@redhat.com>
8481
8482 Add support for new '\_<' and '\_>' regexp operators, matching the
8483 beginning and end of symbols.
8484
8485 * regex.c (enum syntaxcode): Add Ssymbol.
8486 (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
8487 (re_opcode_t): New opcodes `symbeg' and `symend'.
8488 (print_partial_compiled_pattern): Print the new opcodes properly.
8489 (regex_compile): Parse the new operators.
8490 (analyse_first): Skip sym(beg|end) (they match only the empty string).
8491 (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
8492 \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
8493 (re_match_2_internal): Match symbeg and symend.
8494
8495 * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
8496
8497 2004-05-19 Kim F. Storm <storm@cua.dk>
8498
8499 * .gdbinit (xsymbol): Fix last change.
8500
8501 2004-05-18 Stefan Monnier <monnier@iro.umontreal.ca>
8502
8503 * .gdbinit (xprintstr): New fun.
8504 (xstring, xprintsym): Use it.
8505
8506 * w32proc.c (create_child): Use INTMASK.
8507
8508 * alloc.c (Fgarbage_collect): Do all the marking before flushing
8509 unmarked elements of the undo list.
8510
8511 2004-05-18 David Ponce <david@dponce.com>
8512
8513 * print.c (print): Reset print_depth before to call print_object.
8514
8515 2004-05-18 Jason Rumney <jasonr@gnu.org>
8516
8517 * w32console.c: Prefix RIF functions with w32con_ to avoid
8518 namespace clash with functions in term.c and w32term.c.
8519
8520 * w32menu.c (add_menu_item, w32_menu_display_help)
8521 [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
8522
8523 * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
8524
8525 2004-05-18 Eli Zaretskii <eliz@gnu.org>
8526
8527 * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
8528
8529 * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
8530 with make_number.
8531 (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
8532 with XINT.
8533
8534 2004-05-18 Kim F. Storm <storm@cua.dk>
8535
8536 * blockinput.h (INPUT_BLOCKED_P): New macros.
8537
8538 * keyboard.c (Frecursive_edit): Return immediately if input blocked.
8539 (Ftop_level): Unblock input if blocked.
8540
8541 * buffer.h (GET_OVERLAYS_AT): New macro.
8542 * msdos.c (IT_note_mouse_highlight): Use it.
8543 * textprop.c (get_char_property_and_overlay): Use it.
8544 * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
8545 * xfaces.c (face_at_buffer_position): Use it.
8546
8547 * print.c (print_object): Increase buf size.
8548
8549 2004-05-17 Jason Rumney <jasonr@gnu.org>
8550
8551 * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
8552 (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
8553 Lisp_Object using i member.
8554 (w32_quit_key): Rename from Vw32_quit_key, and make an int.
8555 (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
8556 consistently.
8557
8558 * w32proc.c (create_child): Use make_number instead of masking pid.
8559
8560 * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
8561 (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
8562 Use EQ to compare Lisp_Objects.
8563 (w32_parse_hot_key): Use int for lisp_modifiers consistently.
8564
8565 * w32term.c (w32_num_mouse_buttons): Rename from
8566 Vw32_num_mouse_buttons and make it an int.
8567
8568 * w32.c (init_environment): Use it.
8569
8570 * w32fns.c (w32_wnd_proc): Likewise.
8571
8572 * w32proc.c (w32_pipe_read_delay): Rename from
8573 Vw32_pipe_read_delay and make it an int.
8574
8575 * w32.c (_sys_read_ahead): Use it.
8576
8577 * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
8578
8579 * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
8580
8581 * w32inevt.c (w32_console_mouse_position, do_mouse_event)
8582 (key_event): Don't mix Lisp_Object and int.
8583
8584 * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
8585
8586 * keyboard.c (kbd_buffer_get_event): Don't use event->code and
8587 modifiers in language change event.
8588
8589 2004-05-17 Kim F. Storm <storm@cua.dk>
8590
8591 * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
8592 Such objects may be freed markers which still exist on an undo list.
8593
8594 2004-05-16 Juanma Barranquero <lektu@terra.es>
8595
8596 * data.c (Fset_default): Make argument names match their use in
8597 docstring.
8598
8599 2004-05-15 Andreas Schwab <schwab@suse.de>
8600
8601 * emacs.c (gdb_array_mark_flag): Define.
8602 * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
8603
8604 2004-05-15 Eli Zaretskii <eliz@gnu.org>
8605
8606 * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
8607 __attribute__((__aligned__)), so that USE_LSB_TAG would not become
8608 defined for the MS-DOS build.
8609
8610 2004-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8611
8612 * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
8613
8614 2004-05-14 Kenichi Handa <handa@m17n.org>
8615
8616 * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
8617
8618 2004-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8619
8620 * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
8621 section to frame.c section.
8622 (Fxw_display_color_p, Fx_file_dialog): Declare if
8623 HAVE_WINDOW_SYSTEM defined.
8624
8625 * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
8626
8627 * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
8628
8629 * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
8630 (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
8631 (XTread_socket): Fix int/Lisp_Object mixup.
8632 (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
8633
8634 * macterm.h (struct frame, struct face, struct image)
8635 (display_x_get_resource, Fx_display_color_p)
8636 (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
8637 Add prototypes.
8638
8639 2004-05-14 Kim F. Storm <storm@cua.dk>
8640
8641 * process.c (wait_reading_process_input): Make reentrant.
8642 Make Available and Connecting non-static. Save and restore value
8643 of waiting_for_user_input_p.
8644
8645 2004-05-13 Kim F. Storm <storm@cua.dk>
8646
8647 * keyboard.c (mark_kboards): Don't mark x and y members
8648 that are overloaded in selection request events.
8649
8650 2004-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
8651
8652 * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
8653
8654 2004-05-13 Glenn Morris <gmorris@ast.cam.ac.uk>
8655
8656 * window.c (Fdisplay_buffer, Fsplit_window)
8657 (split-height-threshold): Doc fix.
8658
8659 2004-05-13 Juanma Barranquero <lektu@terra.es>
8660
8661 * xfaces.c (Ftty_supports_face_attributes_p)
8662 (Finternal_copy_lisp_face): Fix typo in docstring.
8663 (Finternal_get_lisp_face_attribute): Fix docstring.
8664
8665 2004-05-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8666
8667 * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
8668
8669 2004-05-11 Steven Tamm <steventamm@mac.com>
8670
8671 * macfns.c (Fx_create_frame): Default to using tool-bar by
8672 setting tool-bar-lines to 1 in default-frame-alist.
8673
8674 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8675
8676 * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
8677 (xpm_get_color_table_v, xpm_make_color_table_h)
8678 (xpm_put_color_table_h, xpm_get_color_table_h)
8679 (xpm_str_to_color_key, xpm_load_image, xpm_load)
8680 (syms_of_image): Support XPM on Carbon Emacs. Does not
8681 depend on libXpm, but only supports XPM version 3 without extensions.
8682
8683 2004-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8684
8685 * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
8686 instead of FRAME_X_P
8687
8688 2004-05-11 Kim F. Storm <storm@cua.dk>
8689
8690 * process.c (read_process_output): Grow decoding_buf when needed;
8691 this could cause a crash in allocate_string and compact_small_strings.
8692
8693 2004-04-29 Jim Blandy <jimb@redhat.com>
8694
8695 * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
8696 against proper opcode.
8697
8698 2004-05-10 Juanma Barranquero <lektu@terra.es>
8699
8700 * process.c (Fstart_process): Fix docstring.
8701
8702 * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
8703 (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
8704 (Fsplit_char, Fchar_charset): Make argument names match their use
8705 in docstring.
8706
8707 2004-05-10 Richard M. Stallman <rms@gnu.org>
8708
8709 * print.c (print_preprocess): Use being_printed, loop_count and
8710 halftail to detect overdeep nesting and cyclic cdr chains.
8711
8712 2004-05-10 Andreas Schwab <schwab@suse.de>
8713
8714 * lisp.h (Fmake_symbolic_link): Declare.
8715
8716 * fileio.c (Frename_file): Remove extra argument in call to
8717 Fmake_symbolic_link.
8718
8719 2004-05-10 Kim F. Storm <storm@cua.dk>
8720
8721 * xdisp.c (calc_line_height_property): Use string position when
8722 object is a string.
8723
8724 2004-05-10 Kenichi Handa <handa@m17n.org>
8725
8726 * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
8727 inhibit-modification-hooks to t temporarily before calling
8728 Ferase_buffer.
8729
8730 * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
8731 inhibit-modification-hooks to t temporarily before calling
8732 Ferase_buffer.
8733
8734 * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
8735 inhibit-modification-hooks to t temporarily before calling
8736 Ferase_buffer.
8737
8738 * fns.c (count_combining): Delete it.
8739 (concat): Don't check combining bytes.
8740
8741 2004-05-09 Jason Rumney <jasonr@gnu.org>
8742
8743 * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
8744 (globals_of_w32fns): Set it.
8745
8746 2004-05-09 Piet van Oostrum <piet@cs.uu.nl>
8747
8748 * data.c (Fquo): Simplify.
8749
8750 2004-05-08 Peter Whaite <emacs@whaite.ca> (tiny change)
8751
8752 * data.c (Fquo): If any argument is float, do the computation in
8753 floating point.
8754
8755 2004-05-08 Juanma Barranquero <lektu@terra.es>
8756
8757 * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
8758 (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
8759 Fix spelling of Emacs on docstring.
8760 (Fset_process_coding_system, Fprocess_coding_system)
8761 (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
8762 Make argument names match their use in docstring.
8763 (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
8764 Fix docstring.
8765
8766 * editfns.c (Finsert_buffer_substring): Make argument names match their
8767 use in docstring.
8768
8769 * syntax.c (Fmodify_syntax_entry): Fix docstring.
8770
8771 2004-05-07 Steven Tamm <steventamm@mac.com>
8772
8773 * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
8774 around call to ReceiveEvent to avoid certain crashes.
8775
8776 2004-05-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8777
8778 * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
8779 (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
8780 (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
8781 Save/restore the current graphics port and device handle when
8782 drawing into an offscreen graphics world.
8783
8784 * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
8785 (gif_load): Likewise.
8786
8787 2004-05-07 Juanma Barranquero <lektu@terra.es>
8788
8789 * window.c (Fset_window_buffer): Fix docstring.
8790
8791 2004-05-06 Thien-Thi Nguyen <ttn@gnu.org>
8792
8793 * emacs.c (main) [VMS]: Fix var ref.
8794
8795 2004-05-06 Romain Francoise <romain@orebokech.com>
8796
8797 * data.c (Fsetq_default): Fix docstring.
8798
8799 2004-05-06 Jason Rumney <jasonr@gnu.org>
8800
8801 * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
8802 to avoid name clash.
8803
8804 2004-05-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8805
8806 * fileio.c (barf_or_query_if_file_exists): Use lstat.
8807 (Frename_file): Handle renaming of symlinks across file systems.
8808 (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
8809
8810 2004-05-04 Kim F. Storm <storm@cua.dk>
8811
8812 * xdisp.c (Qtotal): New var.
8813 (syms_of_xdisp): Intern and staticpro it.
8814 (calc_line_height_property): New arg total. Set it if
8815 line-spacing property has format (total . VALUE).
8816 (x_produce_glyphs): Ignore line-spacing if line-height is 0.
8817 Handle total line-spacing property.
8818
8819 2004-05-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
8820
8821 * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
8822 "under" scroll bar when size/position changes.
8823
8824 2004-05-03 Jason Rumney <jasonr@gnu.org>
8825
8826 * makefile.nt: Remove.
8827
8828 2004-05-02 Eli Zaretskii <eliz@gnu.org>
8829
8830 * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
8831 Avoid compiler warnings.
8832
8833 * Makefile.in (region-cache.o): Depend on config.h.
8834
8835 2004-05-02 Romain Francoise <romain@orebokech.com>
8836
8837 * indent.c (compute_motion): Save vpos in prev_vpos when dealing
8838 with continuation lines, too.
8839
8840 2004-05-02 Thien-Thi Nguyen <ttn@gnu.org>
8841
8842 * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
8843
8844 2004-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
8845
8846 * xdisp.c (calc_line_height_property): YAILOM (yet another
8847 int/Lisp_Object mixup).
8848
8849 2004-05-01 Eli Zaretskii <eliz@gnu.org>
8850
8851 * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
8852 undo bad effect of pack(4) in some versions of system headers.
8853
8854 2004-05-01 Jason Rumney <jasonr@gnu.org>
8855
8856 * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
8857
8858 2004-04-30 Kim F. Storm <storm@cua.dk>
8859
8860 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
8861 (syms_of_buffer) <cursor-type>: Doc fix.
8862
8863 * dispextern.h (struct it): Remove member use_default_face.
8864 Add members override_ascent, override_descent, override_boff.
8865
8866 * xdisp.c (init_iterator): Handle line-spacing float value.
8867 Initialize override_ascent member.
8868 (append_space_for_newline): Reset override_ascent.
8869 Remove use_default_face.
8870 (calc_line_height_property): New function to calculate value of
8871 line-height and line-spacing properties. Look at overlays, too.
8872 Set override_ascent, override_descent, override_boff members when
8873 using another face than the current face. Float values are now
8874 relative to the frame default font, by default; accept a cons
8875 of ratio and face name to specify value relative to a specific face.
8876 (x_produce_glyphs): Use calc_line_height_property.
8877 Use override_ascent etc. when set to handle different face heights.
8878 A negative line-spacing property value is interpreted as a total
8879 line height, rather than inter-line spacing.
8880 (note_mouse_highlight): Allocate room for 40 overlays initially.
8881
8882 2004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
8883
8884 * data.c (Fsubr_name): New fun.
8885 (syms_of_data): Defsubr it.
8886
8887 2004-04-29 Kim F. Storm <storm@cua.dk>
8888
8889 * xdisp.c (null_glyph_slice): New var.
8890 (append_glyph, append_composite_glyph, append_stretch_glyph):
8891 Use it to initialize glyph slice.
8892
8893 2004-04-27 Stefan Monnier <monnier@iro.umontreal.ca>
8894
8895 * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
8896 (on_hot_spot_p): Make sure we always return a value.
8897 (Flookup_image_map): Remove unused var ix and iy.
8898 (note_mode_line_or_margin_highlight): Remove unused var `image'.
8899
8900 2004-04-27 Eli Zaretskii <eliz@gnu.org>
8901
8902 * msdos.c (init_environment): If one of the TMP... environment
8903 variables is set to a drive letter without a trailing slash,
8904 append a slash.
8905
8906 2004-04-27 Matthew Mundell <matt@mundell.ukfsn.org>
8907
8908 * editfns.c (lisp_time_argument): Provide externally.
8909
8910 * fileio.c (Fset_file_times): New function.
8911 (syms_of_fileio): Intern and staticpro it.
8912
8913 2004-04-27 Kim F. Storm <storm@cua.dk>
8914
8915 * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
8916 header line strings.
8917
8918 * dispextern.h (struct it): New member use_default_face.
8919
8920 * xdisp.c (Qline_height): New variable.
8921 (syms_of_xdisp): Intern and staticpro it.
8922 (append_space_for_newline): Partially undo 2004-04-25 change;
8923 add default_face_p arg, and restore callers.
8924 Clear it->use_default_face after use.
8925 (x_produce_glyphs): Set default font for ascii char if
8926 it->use_default_font is set. Change line-spacing property to set
8927 just extra line spacing. Handle new line-height property.
8928
8929 2004-04-26 Andreas Schwab <schwab@suse.de>
8930
8931 * print.c (print_object): Print non-ascii characters in bool
8932 vector representation as octal escapes.
8933
8934 * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
8935 * print.c (print_object): Use it instead of BITS_PER_CHAR for
8936 bool vectors.
8937 * lread.c (read1): Likewise.
8938 * alloc.c (Fmake_bool_vector): Likewise.
8939 * data.c (Faref, Faset): Likewise.
8940 * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
8941 (mapcar1): Likewise.
8942
8943 2004-04-26 Steven Tamm <tamm@Steven-Tamms-Computer.local>
8944
8945 * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
8946
8947 2004-04-26 Miles Bader <miles@gnu.org>
8948
8949 * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
8950
8951 2004-04-26 Juanma Barranquero <lektu@terra.es>
8952
8953 * buffer.c (Fpop_to_buffer): Fix docstring.
8954
8955 2004-04-26 Steven Tamm <steventamm@mac.com>
8956
8957 * lread.c (init_lread): Don't display missing lisp directory
8958 warnings with Carbon Emacs because self-contained bundled Emacs
8959 may be built without correct installation path.
8960
8961 2004-04-25 Kim F. Storm <storm@cua.dk>
8962
8963 * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8964
8965 * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8966
8967 * xdisp.c (append_space_for_newline): Rename from append_space.
8968 Remove DEFAULT_FACE_P arg; always use current face. Callers changed.
8969 (x_produce_glyphs): Handle line-spacing property on newline char.
8970 If value is t, adjust ascent and descent to fit current row height.
8971 If value is an integer or float, set extra_line_spacing to integer
8972 value, or to float value x current line height.
8973
8974 2004-04-23 Kenichi Handa <handa@m17n.org>
8975
8976 * fontset.c (Finternal_char_font): If POSITION is nil, return
8977 font for displaying CH with the default face.
8978
8979 2004-04-23 Juanma Barranquero <lektu@terra.es>
8980
8981 * makefile.w32-in: Add "-*- makefile -*-" mode tag.
8982
8983 2004-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
8984
8985 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
8986 Don't make assumptions about the relative place of i and val.
8987 (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
8988
8989 2004-04-21 Kim F. Storm <storm@cua.dk>
8990
8991 * dispextern.h (struct glyph_slice): New struct.
8992 (struct glyph): New member slice.
8993 (GLYPH_SLICE_EQUAL_P): New macro.
8994 (GLYPH_EQUAL_P): Use it.
8995 (struct glyph_string): New member slice.
8996 (struct it_slice): New struct.
8997 (struct it): New member slice, add member to stack too.
8998 New member constrain_row_ascent_descent_p.
8999 (image_ascent): Add prototype.
9000
9001 * dispnew.c (buffer_posn_from_coords): Return full image width
9002 and height even for image slices (posn is relative to full image).
9003 (marginal_area_string): Adjust x0,y0 for image slice.
9004
9005 * image.c (image_ascent): Add slice arg; calculate ascent for
9006 image slice (or full image).
9007
9008 * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
9009 (syms_of_keyboard): Defsubr them.
9010
9011 * lisp.h (pos_visible_p): Fix prototype.
9012
9013 * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
9014 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
9015 (x_draw_image_foreground, x_draw_image_relief)
9016 (x_draw_image_foreground_1, x_draw_image_glyph_string):
9017 Draw sliced images.
9018
9019 * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
9020 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
9021 (x_draw_image_foreground, x_draw_image_relief)
9022 (w32_draw_image_foreground_1, x_draw_image_glyph_string):
9023 Draw sliced images.
9024
9025 * w32term.h (image_ascent): Remove prototype.
9026
9027 * window.c (Fpos_visible_in_window_p): Return pixel position if
9028 PARTIALLY arg is non-nil. Simplify. Doc fix.
9029 (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
9030 to return/set vscroll in pixels.
9031
9032 * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
9033
9034 * xdisp.c (Qslice): New variable.
9035 (syms_of_xdisp): Intern and staticpro it.
9036 (pos_visible_p): Return pixel position in new x and y args.
9037 (init_iterator): Reset it->slice info.
9038 (handle_display_prop): Parse (slice ...) property.
9039 (push_it, pop_it): Save/restore slice info.
9040 (make_cursor_line_fully_visible): Fix 2004-04-14 change. Do not
9041 force repositioning of tall row if window is vscrolled, as that
9042 would reset vscroll.
9043 (append_space): Set it->constrain_row_ascent_descent_p to avoid
9044 increasing row height if row is non-empty.
9045 (fill_image_glyph_string): Copy slice info.
9046 (take_vertical_position_into_account): Simplify.
9047 (produce_image_glyph): Handle iterator slice info, setup glyph
9048 slice info. Do not force minimum line height.
9049 (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
9050 do not increase height (ascent/descent) of non-empty row when
9051 adding normal character glyph; instead reduce glyph ascent/descent
9052 appropriately; if row is higher than current glyph, adjust glyph
9053 descent/ascent to reposition glyph within the existing row.
9054 Likewise, when char is newline, only set ascent/descent if row is
9055 currently empty.
9056 (note_mouse_highlight): Handle hotspots with sliced image.
9057
9058 * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
9059 (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
9060 (x_draw_image_foreground, x_draw_image_relief)
9061 (x_draw_image_foreground_1, x_draw_image_glyph_string):
9062 Draw sliced images.
9063
9064 * xterm.h (image_ascent): Remove prototype.
9065
9066 2004-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9067
9068 * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
9069
9070 2004-04-20 John Paul Wallington <jpw@gnu.org>
9071
9072 * fns.c (Fassoc, Feql): Fix indentation.
9073
9074 * fontset.c (regularize_fontname): Rename from regulalize_fontname.
9075
9076 2004-04-19 John Paul Wallington <jpw@gnu.org>
9077
9078 * fns.c (Feql): New function.
9079 (syms_of_fns): Defsubr it.
9080
9081 2004-04-18 Jason Rumney <jasonr@gnu.org>
9082
9083 * w32select.c (Fw32_set_clipboard_data): Get sequence number
9084 after closing the clipboard.
9085
9086 2004-04-16 Luc Teirlinck <teirllm@auburn.edu>
9087
9088 * buffer.c (Fbuffer_base_buffer): Doc fix.
9089
9090 2004-04-17 Kim F. Storm <storm@cua.dk>
9091
9092 * keymap.c (Fkey_description): Add optional PREFIX arg.
9093 Combine prefix with KEYS to make up the full key sequence to describe.
9094 Correlate meta_prefix_char and following (simple) key to describe
9095 as meta modifier. All callers changed.
9096 (describe_map): Rename arg `keys' to `prefix'. Remove local
9097 `elt_prefix' var. Use Fkey_description with prefix instead of
9098 elt_prefix combined with Fsingle_key_description.
9099 (describe_vector): Declare static. Replace arg `elt_prefix' with
9100 `prefix'. Add KEYMAP_P arg. Add local var `elt_prefix'; use it
9101 if !KEYMAP_P. Use Fkey_description with prefix instead of
9102 Fsingle_key_description.
9103
9104 * keymap.h (Fkey_description): Fix prototype.
9105 (describe_vector): Remove prototype.
9106
9107 * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
9108
9109 * image.c (PNG_BG_COLOR_SHIFT): Remove.
9110 (png_load): Fix calculation of transparent background color on X
9111 and W32 platforms.
9112
9113 2004-04-16 Juanma Barranquero <lektu@terra.es>
9114
9115 * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
9116 not too large before computing how much to scroll.
9117
9118 2004-04-15 Stefan Monnier <monnier@iro.umontreal.ca>
9119
9120 * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
9121
9122 2004-04-14 Luc Teirlinck <teirllm@auburn.edu>
9123
9124 * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
9125 Add hyperlink to Elisp manual to the docstring.
9126
9127 2004-04-14 Stefan Monnier <monnier@iro.umontreal.ca>
9128
9129 * callint.c (fix_command): Use XDCR.
9130
9131 2004-04-14 Nick Roberts <nick@nick.uklinux.net>
9132
9133 * window.c (Fget_lru_window): Doc fix.
9134
9135 2004-04-14 Kim F. Storm <storm@cua.dk>
9136
9137 * editfns.c (Fformat): Fix allocation size of precision array.
9138
9139 * dispnew.c (update_window): Only set changed_p if
9140 scrolling_window actually did scroll.
9141 (scrolling_window): Only return 1 if we actually did scroll.
9142
9143 * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
9144 height to glyph height when cursor row is not fully visible.
9145 (make_cursor_line_fully_visible): Add FORCE_P arg to return
9146 failure in case row is higher than window. Callers changed.
9147 (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
9148 Try to scroll partially visible, higher-than-window cursor row.
9149 (redisplay_window): Always try to scroll partially visible,
9150 higher-than-window cursor row - both initially and again with
9151 centering_position = 0.
9152 Clear desired matrix before retrying with centering_position = 0.
9153
9154 2004-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9155
9156 * syntax.c (scan_lists): Simplify backward string scan.
9157 Fix off-by-one boundary check for string and comment fences.
9158
9159 2004-04-13 Joe Buehler <jbuehler@hekimian.com>
9160
9161 * sheap.c, unexcw.c: New files.
9162
9163 2004-04-12 Luc Teirlinck <teirllm@auburn.edu>
9164
9165 * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
9166 base buffer has been killed. Correct the error message if the
9167 base buffer does not exist.
9168
9169 2004-04-12 Joe Buehler <jbuehler@hekimian.com>
9170
9171 * s/cygwin.h: Changes for Cygwin unexec() support, changes in
9172 Cygwin itself. Add support for Xaw3d scrollbars.
9173
9174 * puresize.h: Set up PURE_P() for Cygwin unexec() support.
9175
9176 * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
9177
9178 * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
9179 before Cygwin unexec.
9180
9181 * Makefile.in: Link changes for Cygwin unexec() support.
9182
9183 2004-04-12 Andreas Schwab <schwab@suse.de>
9184
9185 * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
9186
9187 2004-04-11 Luc Teirlinck <teirllm@auburn.edu>
9188
9189 * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
9190 IGNORE argument equals NAME. Doc fix.
9191
9192 2004-04-11 Masatake YAMATO <jet@gyve.org>
9193
9194 * buffer.c (fix_start_end_in_overlays): Make overlays
9195 empty if they are backwards.
9196
9197 2004-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
9198
9199 * xfaces.c (face_color_supported_p): Fix compilation without X11.
9200
9201 2004-04-07 Stefan Monnier <monnier@iro.umontreal.ca>
9202
9203 * doc.c (Fsnarf_documentation): Ignore new file name entries.
9204
9205 2004-04-06 Kim F. Storm <storm@cua.dk>
9206
9207 * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
9208 (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
9209
9210 * w32term.c (w32_read_socket): Set mouse_face_hidden after
9211 clearing highlight.
9212
9213 * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
9214
9215 * xterm.c (handle_one_xevent): Set mouse_face_hidden after
9216 clearing highlight.
9217
9218 * indent.c (vmotion): Do not reserve one column for continuation
9219 marks on window frames.
9220
9221 2004-04-04 Eli Zaretskii <eliz@gnu.org>
9222
9223 * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
9224 from GCC.
9225
9226 2004-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
9227
9228 * .gdbinit-union: Remove.
9229
9230 * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
9231 (xgetptr, xgetint, xgettype): New funs. Use them everywhere.
9232 ($nonvalbits): Remove.
9233 ($valmask): Set it by calling xreload to avoid redundancy.
9234
9235 * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
9236 (gdb_emacs_intbits): Remove.
9237
9238 2004-03-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9239
9240 * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
9241
9242 2004-03-30 Kenichi Handa <handa@m17n.org>
9243
9244 * editfns.c (Fformat): Fix initialization of the array info.
9245
9246 2004-03-30 Kim F. Storm <storm@cua.dk>
9247
9248 * xterm.c (x_mouse_click_focus_ignore_position): New var.
9249 (syms_of_xterm): DEFVAR_BOOL it.
9250 (ignore_next_mouse_click_timeout): New var.
9251 (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
9252 Use it to filter mouse clicks following focus event.
9253
9254 2004-03-29 David Ponce <david@dponce.com>
9255
9256 * callint.c (Fcall_interactively): Fix last change.
9257
9258 2004-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9259
9260 * eval.c (Fcommandp): Simplify.
9261
9262 * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
9263 Extend to handle all kinds of functions.
9264
9265 * lisp.h (Finteractive_form): Declare.
9266
9267 * callint.c (Fcall_interactively): Use it.
9268
9269 2004-03-26 Kim F. Storm <storm@cua.dk>
9270
9271 * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
9272 to catch errors in calc_pixel_width_or_height during redisplay.
9273
9274 2004-03-26 Masatake YAMATO <jet@gyve.org>
9275
9276 * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
9277
9278 * lisp.h (fix_start_end_in_overlays): Likewise.
9279
9280 * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
9281
9282 * editfns.c (Ftranspose_regions): Likewise.
9283
9284 2004-03-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9285
9286 * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
9287
9288 2004-03-19 Richard M. Stallman <rms@gnu.org>
9289
9290 * s/sol2-6.h: Delete previous change.
9291
9292 2004-03-19 Kim F. Storm <storm@cua.dk>
9293
9294 * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
9295 to_charpos corresponds to newline in right fringe. Use local
9296 BUFFER_POS_REACHED_P macro.
9297
9298 2004-03-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9299
9300 * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
9301 to compile on non-window system.
9302
9303 2004-03-19 Kim F. Storm <storm@cua.dk>
9304
9305 * dispextern.h (calc_pixel_width_or_height): Add prototype.
9306
9307 * image.c (Qcenter): Move to xdisp.c.
9308
9309 * xdisp.c (Qcenter): Declare here.
9310 (syms_of_xdisp): Intern and staticpro it.
9311 (handle_single_display_prop): Allow space display property on all
9312 platforms.
9313 (display_mode_line): Set mode_line_p before displaying line.
9314 (calc_pixel_width_or_height): Declare extern. Add separate :align-to
9315 handling. Remove complex cases for fringes and scroll-bars.
9316 Add left, right, and center alignment positions. Add text (area)
9317 width/height. Return width or height for image specs.
9318 (produce_stretch_glyph): Improve handling of :align-to. Is now
9319 relative to left of text area by default, but other base offsets
9320 can be specified -- also for text lines.
9321
9322 * term.c (produce_glyphs): Handle IT_STRETCH.
9323 (produce_stretch_glyph): New function to handle space width and
9324 align-to display properties on non-window systems.
9325
9326 2004-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9327
9328 * fileio.c (Fread_file_name): Set completion-ignore-case for
9329 case-insensitive systems.
9330
9331 2004-03-14 Masatake YAMATO <jet@gyve.org>
9332
9333 * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
9334 when keymap and cursor are setup.
9335
9336 2004-03-14 Steven Tamm <steventamm@mac.com>
9337
9338 * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9339
9340 2004-03-14 Kim F. Storm <storm@cua.dk>
9341
9342 * dispextern.h (x_find_image_file): Add prototype.
9343
9344 * image.c (x_find_image_file): Make extern.
9345
9346 * xfns.c (x_find_image_file): Remove prototype.
9347
9348 2004-03-13 Eli Zaretskii <eliz@gnu.org>
9349
9350 * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
9351
9352 * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
9353
9354 2004-03-12 Richard M. Stallman <rms@gnu.org>
9355
9356 * fns.c (internal_equal): New arg PROPS controls comparing
9357 text properties. All callers changed.
9358 (Fequal_including_properties): New function.
9359 (syms_of_fns): defsubr it.
9360
9361 2004-03-12 Kim F. Storm <storm@cua.dk>
9362
9363 Fix image support on MAC. From YAMAMOTO Mitsuharu.
9364
9365 * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
9366 (image_background, image_background_transparent): Fix prototypes.
9367
9368 * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
9369
9370 * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
9371 (x_query_font, x_find_ccl_program, x_set_window_size)
9372 (x_make_frame_visible, mac_initialize, XCreatePixmap)
9373 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9374 (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
9375
9376 * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
9377 (x_query_font, x_find_ccl_program, x_set_window_size)
9378 (x_make_frame_visible, mac_initialize, XCreatePixmap)
9379 (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9380 (mac_draw_line_to_pixmap): Add prototypes.
9381
9382 2004-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9383
9384 * macterm.c (XTread_socket): Fix mouse click on tool bar.
9385
9386 2004-03-11 Kim F. Storm <storm@cua.dk>
9387
9388 * dispextern.h: Move image related prototypes from xfns.c section
9389 to image.c. Condition them by HAVE_WINDOW_SYSTEM rather than
9390 HAVE_X_WINDOWS.
9391
9392 * Makefile.in (XOBJ): Consolidate into one list. Add image.o.
9393 Move gtkutil.o to new GTK_OBJ list.
9394 (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
9395 (GTK_OBJ) [USE_GTK]: New declaration.
9396 (obj): Add $(GTK_OBJ) to list.
9397
9398 2004-03-11 Steven Tamm <steventamm@mac.com>
9399
9400 * image.c [MAC_OSX]: Include sys/stat.h.
9401
9402 * macfns.c (syms_of_macfns): Remove definitions of things now
9403 defined in image.c.
9404
9405 2004-03-11 Kim F. Storm <storm@cua.dk>
9406
9407 The following changes consolidates the identical/similar image
9408 support code previously found in xfns.c, w32fns.c, and macfns.c
9409 into a new file image.c.
9410
9411 * makefile.w32-in (OBJ1): Add image.o.
9412 ($(BLD)/image.$(O)): Add dependencies.
9413
9414 * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
9415 (image.o): Add dependencies.
9416
9417 * image.c: New file with consolidated image support code.
9418 (COLOR_TABLE_SUPPORT): New define to control whether
9419 color table support is available (X only).
9420 (Bitmap_Record): Common name for x_bitmap_record,
9421 w32_bitmap_record, and mac_bitmap_record.
9422 (XImagePtr): Common name for pointer to XImage or equivalent.
9423 (XImagePtr_or_DC): New type to simplify code sharing; equivalent
9424 to XImagePtr on X+MAC, and to HDC on W32.
9425 (GET_PIXEL): Wrapper for XGetPixel or equivalent.
9426 (NO_PIXMAP): Common name for "None" or equivalent.
9427 (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
9428 (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
9429 (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
9430 (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
9431 Define with suitable equivalents on W32 and MAC for code sharing.
9432 (XDrawLine): Define on MAC for code sharing.
9433 (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
9434 (IF_LIB_AVAILABLE): Macro to simplify code sharing.
9435 (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9436 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9437 (x_reference_bitmap, x_create_bitmap_from_data)
9438 (x_create_bitmap_from_file, x_destroy_bitmap)
9439 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9440 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9441 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9442 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9443 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9444 (define_image_type, lookup_image_type, valid_image_p)
9445 (image_error, enum image_value_type, struct image_keyword)
9446 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9447 (make_image, free_image, prepare_image_for_display, image_ascent)
9448 (four_corners_best, image_background, image_background_transparent)
9449 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9450 (make_image_cache, free_image_cache, clear_image_cache)
9451 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9452 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9453 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9454 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
9455 (init_image_func_pointer, image_load_quartz2d)
9456 (struct ct_color, init_color_table, free_color_table)
9457 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9458 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9459 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9460 (x_disable_image, x_build_heuristic_mask)
9461 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9462 (TIFF support, GIF support, Ghostscript support): Consolidate image
9463 code from xfns.c, w32fns.c, and macfns.c.
9464 (syms_of_image): Consolidate image related symbol setup here.
9465 (init_image): Consolidate image related initializations here.
9466
9467 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
9468 and init_image. Remove call to init_xfns.
9469
9470 * macterm.h (struct mac_bitmap_record): Add file member.
9471 Not currently used, but simplifies code sharing.
9472
9473 * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9474 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9475 (x_reference_bitmap, x_create_bitmap_from_data)
9476 (x_create_bitmap_from_file, x_destroy_bitmap)
9477 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9478 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9479 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9480 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9481 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9482 (define_image_type, lookup_image_type, valid_image_p)
9483 (image_error, enum image_value_type, struct image_keyword)
9484 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9485 (make_image, free_image, prepare_image_for_display, image_ascent)
9486 (four_corners_best, image_background, image_background_transparent)
9487 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9488 (make_image_cache, free_image_cache, clear_image_cache)
9489 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9490 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9491 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9492 (find_image_fsspec, image_load_qt_1, image_load_quicktime)
9493 (init_image_func_pointer, image_load_quartz2d)
9494 (struct ct_color, init_color_table, free_color_table)
9495 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9496 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9497 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9498 (x_disable_image, x_build_heuristic_mask)
9499 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9500 (TIFF support, GIF support, Ghostscript support): Merge with image
9501 code from xfns.c and macfns.c into image.c.
9502 (syms_of_xfns): Move image related symbols to image.c.
9503 (init_external_image_libraries, init_xfns): Remove; initialization
9504 moved to init_image in image.c.
9505
9506 * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9507 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9508 (x_reference_bitmap, x_create_bitmap_from_data)
9509 (x_create_bitmap_from_file, x_destroy_bitmap)
9510 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9511 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9512 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9513 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9514 (define_image_type, lookup_image_type, valid_image_p)
9515 (image_error, enum image_value_type, struct image_keyword)
9516 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9517 (make_image, free_image, prepare_image_for_display, image_ascent)
9518 (four_corners_best, image_background, image_background_transparent)
9519 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9520 (make_image_cache, free_image_cache, clear_image_cache)
9521 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9522 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9523 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9524 (struct ct_color, init_color_table, free_color_table)
9525 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9526 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9527 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9528 (x_disable_image, x_build_heuristic_mask)
9529 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9530 (TIFF support, GIF support, Ghostscript support): Merge with image
9531 code from xfns.c and macfns.c into image.c.
9532 (syms_of_xfns): Move image related symbols to image.c.
9533 (init_external_image_libraries, init_xfns): Remove; initialization
9534 moved to init_image in image.c.
9535
9536 * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9537 (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9538 (x_reference_bitmap, x_create_bitmap_from_data)
9539 (x_create_bitmap_from_file, x_destroy_bitmap)
9540 (x_destroy_all_bitmaps, x_create_bitmap_mask)
9541 (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9542 (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9543 (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9544 (define_image_type, lookup_image_type, valid_image_p)
9545 (image_error, enum image_value_type, struct image_keyword)
9546 (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9547 (make_image, free_image, prepare_image_for_display, image_ascent)
9548 (four_corners_best, image_background, image_background_transparent)
9549 (x_clear_image_1, x_clear_image, x_alloc_image_color)
9550 (make_image_cache, free_image_cache, clear_image_cache)
9551 (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9552 (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9553 (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9554 (struct ct_color, init_color_table, free_color_table)
9555 (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9556 (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9557 (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9558 (x_disable_image, x_build_heuristic_mask)
9559 (XBM support, XPM support, PBM support, PNG support, JPEG support)
9560 (TIFF support, GIF support, Ghostscript support): Merge with
9561 w32fns.c and macfns.c image code into image.c.
9562 (syms_of_xfns): Move image related symbols to image.c.
9563 (init_xfns): Remove; initialization moved to init_image in image.c.
9564
9565 * lisp.h (syms_of_image, init_image): Add protoypes.
9566 (init_xfns): Remove prototype.
9567
9568 * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9569 (x_reference_bitmap, x_create_bitmap_from_data)
9570 (x_create_bitmap_from_file, x_destroy_bitmap)
9571 (x_create_bitmap_mask): Move prototypes from dispextern.h.
9572 (gamma_correct) [MAC_OS]: Add prototype.
9573
9574 * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9575 (x_reference_bitmap, x_create_bitmap_from_data)
9576 (x_create_bitmap_from_file, x_destroy_bitmap)
9577 (x_create_bitmap_mask): Move prototypes to dispextern.h.
9578
9579 2004-03-09 Kenichi Handa <handa@etlken2>
9580
9581 * coding.c (decode_coding_emacs_mule): Handle insufficent source
9582 correctly.
9583
9584 2004-03-04 Richard M. Stallman <rms@gnu.org>
9585
9586 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
9587
9588 * window.c (Fdisplay_buffer): Doc fix.
9589
9590 * buffer.c (Fpop_to_buffer): Doc fix.
9591
9592 2004-03-03 Kim F. Storm <storm@cua.dk>
9593
9594 * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
9595
9596 2004-03-02 Stefan Monnier <monnier@iro.umontreal.ca>
9597
9598 * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
9599
9600 2004-03-02 Richard M. Stallman <rms@gnu.org>
9601
9602 * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
9603
9604 2004-03-02 Kenichi Handa <handa@m17n.org>
9605
9606 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
9607
9608 2004-03-02 Kim F. Storm <storm@cua.dk>
9609
9610 * window.h (struct window): New member overlay_arrow_bitmap.
9611
9612 * window.c (make_window): Initialize overlay_arrow_bitmap.
9613
9614 * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
9615 implement and integrate multiple overlay arrows with redisplay.
9616 (syms_of_xdisp): DEFVAR_LISP and initialize it.
9617 (last_arrow_position, last_arrow_string): Replace by properties.
9618 (Qlast_arrow_position, Qlast_arrow_string)
9619 (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
9620 (syms_of_xdisp): Intern and staticpro them.
9621 (overlay_arrow_string_or_property, update_overlay_arrows)
9622 (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
9623 (overlay_arrow_at_row): New functions for multiple overlay arrows.
9624 (redisplay_internal): Use them instead of directly accessing
9625 Voverlay_arrow_position etc. for multiple overlay arrows.
9626 (mark_window_display_accurate): Use update_overlay_arrows.
9627 (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
9628 (try_window_id): Use overlay_arrows_changed_p.
9629 (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
9630 (display_line): Use overlay_arrow_at_row to check multiple
9631 overlay arrows, and get relevant overlay-arrow-string and
9632 overlay-arrow-bitmap. Set w->overlay_arrow_bitmap accordingly.
9633 (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
9634 (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
9635
9636 * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
9637 (update_window_fringes): Remove unused code.
9638
9639 2004-03-01 Jason Rumney <jasonr@gnu.org>
9640
9641 * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
9642
9643 2004-03-01 Juanma Barranquero <lektu@terra.es>
9644
9645 * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
9646
9647 * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
9648
9649 2004-03-01 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9650
9651 * xfns.c (Fx_display_color_cells): Use number of planes to calculate
9652 how many colors can be displayed.
9653
9654 2004-03-01 Kenichi Handa <handa@m17n.org>
9655
9656 * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
9657 correctly.
9658
9659 2004-02-28 Kim F. Storm <storm@cua.dk>
9660
9661 * dispnew.c (update_window): Update header line also if there are
9662 no other changes in window (move code after set_cursor label).
9663
9664 * lisp.h (mark_window_display_accurate): Remove prototype.
9665
9666 * window.c (window_loop, Fforce_window_update): Force mode line
9667 updates by setting prevent_redisplay_optimizations_p and
9668 update_mode_lines.
9669
9670 2004-02-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
9671
9672 * xfns.c (x_window): Fix indentation.
9673
9674 * xterm.c (x_calc_absolute_position): Call x_real_positions
9675 to get WM window sizes and use those to calculate position.
9676 (x_set_offset): Remove code commented out.
9677
9678 2004-02-28 Miles Bader <miles@gnu.org>
9679
9680 * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
9681
9682 2004-02-28 Kim F. Storm <storm@cua.dk>
9683
9684 * keyboard.c (kbd_buffer_store_event_hold): New function to store
9685 an event into kbd fifo, but with special handling of quit event;
9686 a quit event is saved for later, and further events are discarded
9687 until the saved quit event has been processed.
9688 (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
9689 (gen_help_event): Store help event in kbd fifo.
9690 (NREAD_INPUT_EVENTS): Remove.
9691 (read_avail_input): Adapt to new read_socket_hook interface.
9692 Remove allocation and initialization of local input_event buffer,
9693 as read_socket_hook stores events directly in fifo. Allocate and
9694 initialize local hold_quit event to handle postponed quit event
9695 (and store it if set by kbd_buffer_store_event_hold).
9696
9697 * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
9698 (gen_help_event): Fix prototype.
9699
9700 * macterm.c (XTread_socket): Remove bufp_r and
9701 numcharsp args. Add hold_quit arg.
9702 Rework to use just one, local, inev input_event. Store inev
9703 directly in fifo using kbd_buffer_store_event_hold.
9704
9705 * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
9706 (read_input_waiting): Adapt to new read_socket_hook interface.
9707 Remove allocation and initialization of local input_event buffer,
9708 as read_socket_hook stores events directly in fifo. Allocate and
9709 initialize local hold_quit event to handle postponed quit event
9710 (and store it if set by kbd_buffer_store_event_hold).
9711
9712 * term.c (read_socket_hook): Fix arg list.
9713
9714 * termhooks.h (read_socket_hook): Fix prototype.
9715
9716 * w32inevt.c (w32_console_read_socket): Remove bufp_r and
9717 numcharsp args. Add hold_quit arg.
9718 Rework to use just one, local, inev input_event. Store inev
9719 directly in fifo using kbd_buffer_store_event_hold.
9720
9721 * w32inevt.h (w32_console_mouse_position): Fix prototype.
9722
9723 * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
9724 Add hold_quit arg. Rework to use just one, local, inev
9725 input_event. Store inev directly in fifo using
9726 kbd_buffer_store_event_hold. Update count in one place.
9727 Postpone call to gen_help_event until inev is stored; use new
9728 local do_help for this.
9729 Remove local emacs_event in handing of ButtonPress event; just use
9730 inev instead (so no reason to copy it later).
9731
9732 * xsmfns.c (x_session_check_input): Remove numchars arg.
9733
9734 * xterm.c (x_focus_changed, x_detect_focus_change):
9735 Remove numchars arg. Always store event into bufp arg.
9736 Return nothing. Callers changed accordingly.
9737 (glyph_rect): Simplify.
9738 (STORE_KEYSYM_FOR_DEBUG): New macro.
9739 (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
9740 (current_bufp, current_numcharsp) [USE_GTK]: Remove.
9741 (current_hold_quit) [USE_GTK]: Add.
9742 (event_handler_gdk): Adapt to new handle_one_xevent.
9743 (handle_one_xevent): Remove bufp_r and numcharsp args.
9744 Add hold_quit arg. Rework to use just one, local, inev
9745 input_event. Store inev directly in fifo using
9746 kbd_buffer_store_event_hold. Update count in one place.
9747 Postpone call to gen_help_event until inev is stored; use new
9748 local do_help for this.
9749 Simplify handling of keysyms (consolidate common code). Fix bug
9750 where count was updated with nchars instead of nbytes.
9751 Remove local emacs_event in handing of ButtonPress event; just use
9752 inev instead (so no reason to copy it later).
9753 Remove `out' label. Rename label `ret' to `done'; add various
9754 `goto done' to clarify code flow in deeply nested blocks.
9755 (x_dispatch_event): Simplify as handle_one_xevent now calls
9756 kbd_buffer_store_event itself.
9757 (XTread_socket): Remove bufp_r and numcharsp args. Add hold_quit
9758 arg. Call handle_one_xevent with new arglist. Store event from
9759 x_session_check_input in fifo.
9760 [USE_GTK]: Setup current_hold_quit.
9761 Decrement handling_signal before unblocking input.
9762 (x_initialize) [USE_GTK]: Initialize current_count.
9763
9764 * xterm.h (x_session_check_input): Fix prototype.
9765
9766 2004-02-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9767
9768 * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
9769
9770 * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
9771 macgui.h).
9772
9773 * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
9774
9775 * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
9776 (mktime, DEBUG, Z, free, malloc, realloc, max, min)
9777 (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
9778 [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
9779 (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
9780 (Bitmap): Remove typedef.
9781 (Pixmap): Change int to GWorldPtr.
9782
9783 * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9784
9785 * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9786 (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
9787 New #define to extract 16-bit depth color components from unsigned
9788 long representation.
9789 (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
9790 colors used for masks.
9791 (struct mac_display_info): Add color_p. Remove n_cbits.
9792
9793 * macfns.c: Include sys/types.h and sys/stat.h.
9794 [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
9795 Include QuickTime/QuickTime.h.
9796 (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9797 (XSetForeground, mac_draw_line_to_pixmap): Add externs for
9798 functions defined in macterm.c.
9799 (XImagePtr): New typedef. Corresponds to XImage * in xfns.c.
9800 (ZPixmap): New #define for compatibility with xfns.c.
9801 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9802 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9803 (find_image_fsspec, image_load_qt_1, image_load_quicktime):
9804 New functions.
9805 (four_corners_best, x_create_x_image_and_pixmap)
9806 (x_destroy_x_image, unwind_create_frame, x_disable_image)
9807 (x_edge_detection, init_color_table, colors_in_color_table)
9808 (lookup_rgb_color, lookup_pixel_color, postprocess_image)
9809 (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
9810 (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
9811 (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
9812 (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
9813 long mixup.
9814 (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
9815 (x_decode_color): Don't use n_cbits (in struct mac_display_info).
9816 (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
9817 (x_set_cursor_type, Fxw_color_values, valid_image_p)
9818 (image_value_type, parse_image_spec, image_ascent, x_clear_image)
9819 (x_alloc_image_color, clear_image_cache, lookup_image)
9820 (x_find_image_file, xbm_read_bitmap_file_data)
9821 (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
9822 (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
9823 (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
9824 (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
9825 (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
9826 (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
9827 (x_make_gc): Sync with xfns.c. Enclose unused `border_tile' with
9828 #if 0.
9829 (x_free_gcs): Sync with xfns.c. Enclose unused `border_tile' with
9830 #if 0. Free white_relief.gc and black_relief.gc.
9831 (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
9832 New functions (from xfns.c).
9833 (Fx_create_frame): Record unwind_create_frame.
9834 (Fxw_display_color_p): Use dpyinfo->color_p.
9835 (Fx_display_grayscale_p, Fx_display_planes): Don't use
9836 dpyinfo->n_cbits.
9837 (Fx_display_color_cells): Use dpyinfo->n_planes;
9838 (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
9839 (Qheuristic, cross_disabled_images, emboss_matrix)
9840 (laplace_matrix): New variables (from xfns.c).
9841 (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
9842 (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
9843 (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
9844 (image_background_transparent): New function (from xfns.c).
9845 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
9846 (image_load_quicktime): Add declaration.
9847 [MAC_OSX] (image_load_quartz2d): Likewise.
9848 [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
9849 [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
9850 [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
9851 (xbm_load_image_from_file, x_laplace_read_row)
9852 (x_laplace_write_row, pbm_read_file): Remove functions.
9853 [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
9854 (xpm_load): Sync with xfns.c (although XPM is not supported yet).
9855 (colors_in_color_table): Sync with xfns.c (although not used).
9856 (lookup_rgb_color): Don't lookup color table. Just do gamma
9857 correction.
9858 (COLOR_INTENSITY): New #define (from xfns.c).
9859 (x_disable_image): New function (from xfns.c).
9860 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
9861 (x_build_heuristic_mask): Sync with xfns.c.
9862 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
9863 (HAVE_PBM): Remove #ifdef.
9864 (pbm_load): Sync with xfns.c. Set img->width and img->height
9865 before IMAGE_BACKGROUND.
9866 (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
9867 (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
9868 Don't enclose with #if HAVE_PNG.
9869 [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
9870 symbol _CGImageCreateWithPNGDataProvider is defined.
9871 Otherwise use image_load_quicktime.
9872 [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
9873 [HAVE_PNG] (png_load): Sync with xfns.c.
9874 Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
9875 (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
9876 HAVE_JPEG.
9877 (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
9878 (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
9879 [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
9880 [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
9881 [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
9882 (tiff_image_p, tiff_load): Don't enclose declarations with #if
9883 HAVE_TIFF.
9884 (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
9885 (tiff_image_p): Don't enclose with #if HAVE_TIFF.
9886 [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
9887 [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
9888 New functions (from xfns.c).
9889 [HAVE_TIFF] (tiff_load): Sync with xfns.c.
9890 (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
9891 (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
9892 Don't enclose with #if HAVE_GIF.
9893 [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
9894 animated gif. Otherwise use image_load_quicktime.
9895 [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
9896 gif_DrawText to avoid conflict with QuickdrawText.h.
9897 [HAVE_GIF] (gif_load): Sync with xfns.c.
9898 (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
9899 [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
9900 Ghostscript is not supported yet).
9901 (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
9902 QCmatrix, QCcolor_adjustment, and QCmask. Add DEFVAR_BOOL
9903 cross_disabled_images (from xfns.c). Remove #if 0 for supported
9904 image types. Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
9905 HAVE_PNG. Add defsubr for Simage_size and Simage_mask_p.
9906 (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
9907 HAVE_PNG. Call EnterMovies to support animated gifs.
9908 Call init_image_func_pointer to bind a symbol
9909 _CGImageCreateWithPNGDataProvider if it is defined.
9910
9911 * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9912 (x_draw_bar_cursor): Sync declaration with xterm.c.
9913 (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
9914 (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
9915 graphics).
9916 (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
9917 (mac_draw_line_to_pixmap, XCreatePixmap)
9918 (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
9919 (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
9920 New functions.
9921 (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
9922 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
9923 Cast bits to char *.
9924 (reflect_byte): New function (from w32fns.c).
9925 (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
9926 due to byte alignment.
9927 (mac_scroll_area) [TARGET_API_MAC_CARBON]:
9928 Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
9929 (XSetForeground): Remove static (now used in macfns.c).
9930 (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
9931 (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
9932 (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
9933 (x_draw_glyph_string_box, x_draw_image_foreground)
9934 (x_draw_image_foreground_1, x_draw_image_glyph_string)
9935 (x_draw_stretch_glyph_string, x_draw_glyph_string)
9936 (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
9937 Sync with xterm.c.
9938 (x_draw_relief_rect): Sync with xterm.c. Make 1 pixel shorter
9939 than the xterm.c version when a strictly horizontal or vertical
9940 line is drawn.
9941 (XTset_terminal_window): Add static.
9942 (x_make_frame_visible): Add UNBLOCK_INPUT.
9943 (x_free_frame_resources): New funcion (from xterm.c).
9944 (XTread_socket): Call handle_tool_bar_click if mouse up/down event
9945 occurs in tool bar area.
9946 (mac_initialize_display_info): Remove dpyinfo->n_cbits.
9947 Set dpyinfo->color_p. Determine dpyinfo->n_planes using HasDepth.
9948 Initialize image cache.
9949 (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
9950 Enclose unused functions with #if 0.
9951 (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
9952 (decode_mac_font_name): New function to apply code conversions
9953 from a mac font name to an XLFD font name according to its script code.
9954 (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
9955 font name to a mac font name according to REGISTRY and ENCODING fields.
9956 (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
9957 whose name starts with `.'.
9958 (init_font_name_table): Use decode_mac_font_name. Add both
9959 jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
9960 of a font is smJapanese.
9961 (mac_do_list_fonts): New function to list fonts that match a given
9962 pattern.
9963 (x_list_fonts, XLoadQueryFont): Use it.
9964 (XLoadQueryFont): Set rbearing field for each variable width
9965 character to avoid needless redraw.
9966 (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
9967
9968 2004-02-26 Kim F. Storm <storm@cua.dk>
9969
9970 * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
9971 as read_socket_hook handler on X aborts if buffer is too small
9972 and W32 handler doesn't always check buffer limit.
9973
9974 * xdisp.c (handle_single_display_prop): Handle left-fringe and
9975 right-fringe similar to a display margin image. Specifically,
9976 the characters having the fringe prop are no longer shown, and
9977 we use IT_IMAGE/next_element_from_image with image_id = -1 to
9978 do this. Set fringe bitmap face_id in it->face_id.
9979 (produce_image_glyph): Handle image_id < 0 as "no image" case, but
9980 still realize it->face (i.e. the fringe bitmap face).
9981
9982 2004-02-25 Miles Bader <miles@gnu.org>
9983
9984 * xdisp.c (check_it): Check string/string_pos consistency.
9985 (init_iterator): Initialize string-related fields properly.
9986
9987 2004-02-11 Miles Bader <miles@gnu.org>
9988
9989 * xdisp.c (produce_image_glyph): Force negative descents to zero.
9990
9991 2004-02-10 Miles Bader <miles@gnu.org>
9992
9993 * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
9994 BLOCK_INPUT can be nested, so it doesn't make much sense.
9995
9996 2004-02-24 Michael Mauger <mmaug@yahoo.com>
9997
9998 * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
9999 (xbm_read_bitmap_data): Use unsigned char for image data.
10000
10001 2004-02-23 Luc Teirlinck <teirllm@auburn.edu>
10002
10003 * abbrev.c (Finsert_abbrev_table_description): Doc fix.
10004
10005 2004-02-22 Jason Rumney <jasonr@gnu.org>
10006
10007 * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
10008 correctly over other bitmaps.
10009
10010 2004-02-21 Eli Zaretskii <eliz@gnu.org>
10011
10012 * emacs.c (USAGE1): Split into two halves.
10013 (USAGE2): Second half of the old USAGE1.
10014 (USAGE3): Rename from USAGE2.
10015 (USAGE4): Rename from USAGE3.
10016
10017 2004-02-21 Juri Linkov <juri@jurta.org>
10018
10019 * emacs.c (USAGE1): Add --no-desktop. Move --display from USAGE2.
10020 Fix --multibyte. Move --help, --version to USAGE2. Add alias
10021 --file. Fix -f, -l. Sort options. Untabify.
10022 (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
10023
10024 2004-02-19 Luc Teirlinck <teirllm@auburn.edu>
10025
10026 * category.c (Fdefine_category, Fcategory_docstring)
10027 (Fget_unused_category, Fset_category_table)
10028 (Fcategory_set_mnemonics): Doc fixes.
10029
10030 2004-02-20 Kim F. Storm <storm@cua.dk>
10031
10032 * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
10033 The following changes are relative to the 2004-01-21 revision.
10034 (NREAD_INPUT_EVENTS): Define as max number of input events to read
10035 in one call to read_socket_hook. Value is 8.
10036 (read_avail_input): Separate and rework handling of read_socket_hook
10037 and non-read_socket_hook cases. Use smaller input_event buffer
10038 in read_socket_hook case, and repeat if full buffer is read.
10039 Use new local variable 'discard' to skip input after C-g.
10040 In non-read_socket_hook case, just use a single input_event, and
10041 call kbd_buffer_store_event on the fly for each character.
10042
10043 2004-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
10044
10045 * lisp.h (union Lisp_Object): Give a more precise type for `type'.
10046 Remove unused `gu' alternative.
10047
10048 2004-02-19 Andreas Schwab <schwab@suse.de>
10049
10050 * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
10051 warning.
10052
10053 2004-02-18 Kim F. Storm <storm@cua.dk>
10054
10055 * xdisp.c (get_window_cursor_type, display_and_set_cursor):
10056 Fix last change.
10057
10058 2004-02-17 Kim F. Storm <storm@cua.dk>
10059
10060 * xdisp.c (fast_find_position): Fix return value of new version;
10061 it was inverted compared to the 21.1 version.
10062 (get_window_cursor_type): Don't look at glyph if NULL.
10063 (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
10064
10065 * keyboard.c: Rework previous change; it didn't consider that the
10066 buf array was allocated on the stack.
10067 (prev_read): Remove variable.
10068 (read_avail_input_buf): New static event buffer array.
10069 (in_read_avail_input): New static variable to handle re-entrancy.
10070 (read_avail_input): Change buf to pinter to read_avail_input_buf.
10071 Use in_read_avail_input to handle re-entrance; when re-entered,
10072 fully initialize and use tmp_buf array instead of read_avail_input_buf.
10073 Do not initialize read_avail_input_buf in full here; instead assume it
10074 is always cleared on entry. To ensure that, we clear (just) the
10075 entries that were used before we return.
10076 (init_keyboard): Initialize read_avail_input_buf here.
10077
10078 2004-02-16 Jesper Harder <harder@ifa.au.dk>
10079
10080 * cmds.c (Fend_of_line): Doc fix.
10081
10082 2004-02-16 Dmitry Antipov <dmitry.antipov@mail.ru> (tiny change)
10083
10084 * keyboard.c (prev_read): New static variable.
10085 (read_avail_input): Use it to zero out only those slots in buf[]
10086 that were used last time we were called.
10087
10088 2004-02-16 Eli Zaretskii <eliz@gnu.org>
10089
10090 * Makefile.in (obj): Move fringe.o from here...
10091 (XOBJ, MAC_OBJ): ...to here.
10092
10093 2004-02-16 Stephen Eglen <stephen@gnu.org>
10094
10095 * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
10096
10097 2004-02-15 Stefan Monnier <monnier@iro.umontreal.ca>
10098
10099 * data.c (Fbyteorder):
10100 * fringe.c (Fdefine_fringe_bitmap):
10101 * xdisp.c (handle_single_display_prop):
10102 * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
10103
10104 2004-02-16 Jason Rumney <jasonr@gnu.org>
10105
10106 * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
10107
10108 2004-02-15 Steven Tamm <steventamm@mac.com>
10109
10110 * macterm.c (Vmac_emulate_three_button_mouse): New variable for
10111 controlling emulation of a three button mouse with option and
10112 command keys.
10113 (Qreverse, mac_get_enumlated_btn): Handle the emulation.
10114 (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
10115
10116 2004-02-15 Kim F. Storm <storm@cua.dk>
10117
10118 * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
10119
10120 * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
10121 Perform byte-swapping.
10122
10123 2004-02-14 Kim F. Storm <storm@cua.dk>
10124
10125 * dispextern.h (struct draw_fringe_bitmap_params): Change member
10126 bits from char to short to facilitate wider bitmaps.
10127 (struct redisplay_interface): Fix prototype of define_fringe_bitmap
10128 member.
10129
10130 * fringe.c (struct fringe_bitmap): Change member bits from char to
10131 short to facilitate 16 bits wide bitmaps. Modify all standard
10132 bitmaps accordingly.
10133 (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
10134 (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
10135 (draw_fringe_bitmap): Ditto.
10136 (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
10137 (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
10138 handle up to 16 bits wide bitmaps.
10139 (Fdefine_fringe_bitmap): Doc fix. Handle wider bitmaps.
10140 (Ffringe_bitmaps_at_pos): Add missing arg declarations.
10141
10142 * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
10143 (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
10144 need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
10145
10146 * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
10147 so it is no longer necessary to expand them here.
10148
10149 * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
10150
10151 2004-02-12 Kim F. Storm <storm@cua.dk>
10152
10153 * window.c (Fwindow_fringes): Doc fix.
10154
10155 2004-02-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10156
10157 * xselect.c (x_get_foreign_selection): Add new optional parameter
10158 time_stamp.
10159 (Fx_get_selection_internal): Ditto, pass time_stamp to
10160 x_get_foreign_selection.
10161
10162 * data.c (Fbyteorder): New function.
10163
10164 2004-02-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10165
10166 * atimer.c: Move include stdio.h to same place as in other files.
10167
10168 * region-cache.c: Ditto.
10169
10170 * sysdep.c: Ditto.
10171
10172 * xfaces.c: Ditto.
10173
10174 2004-02-09 Sam Steingold <sds@gnu.org>
10175
10176 * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
10177
10178 2004-02-09 Kim F. Storm <storm@cua.dk>
10179
10180 * fringe.c: New file. Move original fringe related declarations
10181 and code from dispextern.h and xdisp.c here.
10182 Rework code to support user defined fringe bitmaps, redefining
10183 standard bitmaps, ability to overlay user defined bitmap with
10184 overlay arrow bitmap, and add faces to bitmaps.
10185 (Voverflow_newline_into_fringe): Declare here.
10186 (enum fringe_bitmap_align): New enum.
10187 (..._bits): All bitmaps are now defined without bitswapping; that
10188 is now done in init_fringe_once (if necessary).
10189 (standard_bitmaps): New array with specifications for the
10190 standard fringe bitmaps.
10191 (fringe_faces): New array.
10192 (valid_fringe_bitmap_id_p): New function.
10193 (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
10194 (draw_fringe_bitmap): New function which draws fringe bitmap,
10195 possibly overlaying bitmap with cursor in right fringe or the
10196 overlay arrow in the left fringe.
10197 (update_window_fringes): Do not handle overlay arrow here.
10198 Compare and copy fringe bitmap faces.
10199 (init_fringe_bitmap): New function.
10200 (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
10201 define and destroy user defined fringe bitmaps.
10202 (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
10203 (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
10204 (syms_of_fringe): New function. Defsubr new DEFUNs.
10205 DEFVAR_LISP Voverflow_newline_into_fringe.
10206 (init_fringe_once, init_fringe): New functions.
10207 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
10208
10209 * Makefile.in (obj): Add fringe.o.
10210 (fringe.o): New dependencies.
10211
10212 * dispextern.h (FRINGE_ID_BITS): New definition for number of
10213 bits allocated to hold a fringe number. Increase number of bits
10214 from 4 to 8 to allow user defined fringe bitmaps.
10215 (struct glyph_row, struct it): New members left_user_fringe_bitmap,
10216 left_user_fringe_face_id, right_user_fringe_bitmap,
10217 right_user_fringe_face_id.
10218 (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
10219 Move to new file fringe.c.
10220 (MAX_FRINGE_BITMAPS): Define here.
10221 (struct draw_fringe_bitmap_params): New members bits, cursor_p,
10222 and overlay_p. Change member which to int.
10223 (struct redisplay_interface): New members define_fringe_bitmap
10224 and destroy_fringe_bitmap.
10225 (valid_fringe_bitmap_id_p): Add prototype.
10226 (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
10227
10228 * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
10229 arrows.
10230 (update_frame): Do flush_display if force_flush_display_p to
10231 ensure display (specifically fringes) are updated in a timely
10232 manner when resizing the frame by dragging the mouse.
10233 (update_window_line): Update row if overlay arrow changed.
10234 (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
10235 or overlay arrow changed.
10236
10237 * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
10238 syms_of_fringe, and init_fringe.
10239
10240 * frame.h (struct frame): New member force_flush_display_p.
10241
10242 * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
10243 Add prototypes.
10244
10245 * macterm.c (mac_draw_bitmap): Add overlay_p arg.
10246 (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
10247 thanks to YAMAMOTO Mitsuharu for advice on how to do this.
10248 Use cursor color for displaying cursor in fringe.
10249 (x_redisplay_interface): Add null handlers for
10250 define_fringe_bitmap and destroy_fringe_bitmap functions.
10251
10252 * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
10253 xterm.c to handle overlayed fringe bitmaps and to use cursor color
10254 for displaying cursor in fringe.
10255 (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
10256 specific functions to define and destroy fringe bitmaps in fringe_bmp.
10257 (w32_redisplay_interface): Add them to redisplay_interface.
10258 (w32_term_init): Call w32_init_fringe instead of explicitly
10259 defining fringe bitmaps in fringe_bmp array.
10260 (x_delete_display): Call w32_reset_fringes instead of explicitly
10261 destroying fringe bitmaps in fringe_bmp array.
10262
10263 * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
10264 (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
10265 (continued_bits, continuation_bits, ov_bits, first_line_bits)
10266 (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
10267 (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
10268 (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
10269 (draw_window_fringes, compute_fringe_widths, update_window_fringes):
10270 Move fringe handling vars and code to new file fringe.c.
10271 (handle_display_prop): Handle left-fringe and right-fringe
10272 display properties; store user fringe bitmaps in iterator.
10273 (move_it_in_display_line_to): Handle cursor in fringe at eob.
10274 (clear_garbaged_frames): Set force_flush_display_p if resized.
10275 (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
10276 (display_line): Handle cursor in fringe at eob.
10277 (display_line): Set row user fringe bitmaps from iterator.
10278
10279 * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
10280 Use cursor color for displaying cursor in fringe.
10281 (x_redisplay_interface): Add null handlers for
10282 define_fringe_bitmap and destroy_fringe_bitmap functions.
10283
10284 2004-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10285
10286 * macfns.c (Fx_change_window_property): Make doc string and
10287 parameters same as for X version.
10288
10289 * w32fns.c (Fx_change_window_property): Ditto.
10290
10291 2004-02-07 Kim F. Storm <storm@cua.dk>
10292
10293 * xdisp.c (hscroll_window_tree): Position cursor near to right
10294 margin in hscrolled window when jumping to end of line (rather
10295 than centering cursor).
10296
10297 * process.c (wait_reading_process_input): Don't do adaptive read
10298 buffering if waiting for a specific process.
10299
10300 2004-02-05 Luc Teirlinck <teirllm@auburn.edu>
10301
10302 * minibuf.c (Fminibufferp, Fread_from_minibuffer)
10303 (Fread_minibuffer, Feval_minibuffer)
10304 (Fread_string, Fread_no_blanks_input)
10305 (Fcompleting_read): Doc fixes.
10306 (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
10307 completion-regexp-list. Define Qcase_fold_search and staticpro it.
10308 (read_minibuf): Fix initial comment.
10309 (Ftry_completion, Fall_completions, Ftest_completion): Bind
10310 case-fold-search to the value of completion-ignore-case when
10311 checking completion-regexp-list.
10312 (Fdisplay_completion_list): Make it handle arguments that are
10313 symbols. Doc fix.
10314
10315 2004-02-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10316
10317 * xterm.h: Add declaration of free_frame_menubar.
10318
10319 * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
10320 (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
10321 (Fx_change_window_property): Add declaration of parameters type and
10322 format. Remove unused variable cons.
10323
10324 * xselect.c: Include stdio.h.
10325
10326 2004-02-05 Kenichi Handa <handa@m17n.org>
10327
10328 * fns.c (Fset_char_table_range): Fix previous change.
10329
10330 * buffer.c (Fset_buffer_multibyte): Fix docstring.
10331
10332 2004-02-04 Luc Teirlinck <teirllm@auburn.edu>
10333
10334 * editfns.c (Fchar_after, Fchar_before): Doc fixes.
10335
10336 2004-02-04 Stefan Monnier <monnier@iro.umontreal.ca>
10337
10338 * keymap.c (Vmouse_events): Rename from Vmenu_events.
10339 (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
10340
10341 2004-02-04 Kenichi Handa <handa@m17n.org>
10342
10343 * fns.c (Fset_char_table_range): Handle charsets ascii,
10344 eight-bit-control, and eight-bit-graphic correctly.
10345
10346 2004-02-03 Jason Rumney <jasonr@gnu.org>
10347
10348 * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
10349
10350 * w32fns.c (x_to_w32_font): Likewise.
10351
10352 2004-02-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10353
10354 * xterm.h: Add x_handle_dnd_message, x_check_property_data,
10355 x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
10356
10357 * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
10358 ClientMessages.
10359
10360 * xselect.c: Include termhooks.h and X11/Xproto.h
10361 (x_check_property_data, x_fill_property_data)
10362 (x_property_data_to_lisp, mouse_position_for_drop)
10363 (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
10364 (Fx_send_client_event): Move here from xfns.c.
10365 (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
10366
10367 * xfns.c (x-send-client-message): Move to xselect.c
10368 (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
10369 OUTER_P.
10370 (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
10371 VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp
10372 if vector_ret_p is true.
10373 (syms_of_xfns): Sx_send_client_message moved to xselect.c.
10374
10375 2004-02-02 Eli Zaretskii <eliz@gnu.org>
10376
10377 * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
10378 basename of FILE relative to it, not FILE itself.
10379
10380 2004-02-02 Kenichi Handa <handa@m17n.org>
10381
10382 * coding.c (coding_restore_composition): Check invalid
10383 composition data more rigidly.
10384
10385 2004-01-30 Luc Teirlinck <teirllm@auburn.edu>
10386
10387 * fileio.c (Fread_file_name_internal): Correctly handle the case
10388 where insert-default-directory is nil.
10389 (Fread_file_name): Always return an empty string if the user exits
10390 with an empty minibuffer. Adapt the docstring accordingly.
10391 (syms_of_fileio): Adapt the docstring of insert-default-directory
10392 to the change in Fread_file_name.
10393
10394 2004-01-29 Eli Zaretskii <eliz@gnu.org>
10395
10396 * alloca.c [!alloca]: Fix the prototype for xfree.
10397
10398 2004-01-29 Kenichi Handa <handa@m17n.org>
10399
10400 * fns.c (string_char_to_byte): Optimize for ASCII only string.
10401 (string_byte_to_char): Likewise.
10402
10403 2004-01-28 Peter Runestig <peter@runestig.com>
10404
10405 * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
10406
10407 2004-01-27 Steven Tamm <steventamm@mac.com>
10408
10409 * unexmacosx.c (unexec_copy): Do not copy more than was
10410 requested to prevent overwriting during unexec.
10411
10412 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10413
10414 * process.c (sigchld_handler): Add comment about not calling malloc.
10415
10416 * process.h: Add extern to synch_process_termsig.
10417
10418 2004-01-27 Steven Tamm <steventamm@mac.com>
10419
10420 * macterm.c (make_mac_frame, make_mac_terminal_frame):
10421 Move setting of scroll bars from make_mac_frame to
10422 make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
10423
10424 2004-01-26 Richard M. Stallman <rms@gnu.org>
10425
10426 * search.c (Freplace_match): Handle nonexistent
10427 back-references properly.
10428
10429 2004-01-03 Richard M. Stallman <rms@gnu.org>
10430
10431 * window.c (decode_any_window): New function.
10432 (Fwindow_height, Fwindow_width, Fwindow_edges)
10433 (Fwindow_pixel_edges, Fwindow_inside_edges)
10434 (Fwindow_inside_pixel_edges): Use decode_any_window.
10435
10436 2004-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10437
10438 * process.h: synch_process_termsig new variable.
10439
10440 * callproc.c: Define synch_process_termsig.
10441 (Fcall_process): Initiate synch_process_termsig to zero and
10442 check if non-zero and get signal name after subprocess has ended.
10443
10444 * process.c (sigchld_handler): Set synch_process_termsig
10445 if terminated by a signal. synch_process_death setting removed.
10446
10447 * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
10448
10449 2004-01-26 Andreas Schwab <schwab@suse.de>
10450
10451 * print.c (print_preprocess): Declare size as EMACS_INT to not
10452 lose bits.
10453 (print_object): Likewise.
10454 * alloc.c (Fpurecopy): Likewise.
10455
10456 2004-01-25 Luc Teirlinck <teirllm@auburn.edu>
10457
10458 * window.c (Fwindow_minibuffer_p): Doc fix.
10459
10460 2004-01-24 Jonathan Yavner <jyavner@member.fsf.org>
10461
10462 * editfns.c (Fformat): Make both passes accept the same set of flags.
10463
10464 2004-01-23 Kenichi Handa <handa@m17n.org>
10465
10466 * fns.c (Fmd5): If OBJECT is a buffer different from the current
10467 one, set buffer to OBJECT temporarily.
10468
10469 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
10470
10471 * keyboard.c (kbd_buffer_gcpro): Remove.
10472 (kbd_buffer_store_event, clear_event, Fdiscard_input)
10473 (stuff_buffered_input, init_keyboard, syms_of_keyboard):
10474 Don't initialize and/or maintain the variable any more. It was made
10475 redundant by my commit of 2003-06-15.
10476
10477 * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
10478
10479 2004-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10480
10481 * lisp.h: Add undef DECL_ALIGN.
10482
10483 2004-01-21 Stefan Monnier <monnier@iro.umontreal.ca>
10484
10485 * process.c (wait_reading_process_input) [SYNC_INPUT]:
10486 Check interrupt_input_pending explicitly.
10487
10488 * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
10489
10490 * keyboard.c (handle_async_input): New fun,
10491 extracted from input_available_signal.
10492 (input_available_signal, reinvoke_input_signal): Use it.
10493
10494 2004-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
10495
10496 * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
10497
10498 * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
10499 manipulation macros for when tags are in the lower bits.
10500 (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
10501 (DECL_ALIGN): New macro.
10502 (DEFUN): Use it.
10503
10504 * lisp.h [ENABLE_CHECKING]: Don't force union type.
10505
10506 * s/darwin.h (__attribute__): Remove outdated workaround.
10507
10508 * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
10509
10510 * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
10511 Don't check range of malloc address.
10512 (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
10513
10514 * process.c (wait_reading_process_input): Lisp_Object/int mixup.
10515
10516 * dired.c (Ffile_attributes): Lisp_Object/int mixup.
10517
10518 2004-01-19 Kenichi Handa <handa@m17n.org>
10519
10520 * fontset.c (fontset_font_pattern): Fix previous change.
10521
10522 2004-01-16 Miles Bader <miles@gnu.ai.mit.edu>
10523
10524 * xdisp.c (Voverflow_newline_into_fringe)
10525 (move_it_in_display_line_to, redisplay_internal)
10526 (update_window_fringes, redisplay_window, display_line, window):
10527 Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
10528 that it compiles without a window-system.
10529 * dispnew.c (direct_output_for_insert, update_window): Likewise.
10530
10531 2004-01-16 Kim F. Storm <storm@cua.dk>
10532
10533 * buffer.h (struct buffer): New member indicate_buffer_boundaries.
10534
10535 * buffer.c (init_buffer_once): Set buffer_defaults and
10536 buffer_local_flags for indicate_buffer_boundaries.
10537 (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
10538 default- variable for it.
10539
10540 * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
10541 right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
10542 New members exact_window_width_line_p and cursor_in_fringe_p for
10543 overflowing newlines into right fringe.
10544 New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
10545 and indicate_bottom_line_p for buffer boundaries and scrolling.
10546 (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
10547 FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
10548 HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
10549 and HOLLOW_SQUARE_BITMAP.
10550 (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
10551 Add prototypes.
10552
10553 * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
10554 instead of related indicator fields.
10555 Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
10556 (direct_output_for_insert): Handle exact width lines like
10557 contined lines. Call update_window_fringes.
10558 (update_window): Call update_window_fringes.
10559 (scrolling_window): Don't skip desired rows with changed bitmaps.
10560 Check if fringe bitmaps changes when assigning scrolled rows.
10561
10562 * xdisp.c (Voverflow_newline_into_fringe): New variable.
10563 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
10564 (move_it_in_display_line_to): Overflow newline into fringe for
10565 rows that are exactly as wide as the window.
10566 (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
10567 (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
10568 (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
10569 (fringe_bitmaps): Add new bitmaps.
10570 (draw_fringe_bitmap): Make extern. Remove WHICH arg.
10571 Select proper bitmap for cursor in fringe when appropriate.
10572 Handle alignment of bitmap to top or bottom of row.
10573 (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
10574 done by update_window_fringes.
10575 (update_window_fringes, draw_window_fringes): New functions.
10576 (redisplay_internal): Call update_window_fringes in case only
10577 cursor row is updated.
10578 (redisplay_window): Call update_window_fringes.
10579 Explicitly call draw_window_fringes if redisplay was done using
10580 the current matrix or the overlay arrow is in the window.
10581 (try_window_reusing_current_matrix): Mark scrolled rows for
10582 fringe update (to update buffer-boundaries / scrolling icons).
10583 (find_last_unchanged_at_beg_row): Handle exact width lines line
10584 continued lines.
10585 (display_line): Overflow newline into fringe for rows that are
10586 exactly as wide as the window. Don't append space for newline
10587 in this case.
10588 (notice_overwritten_cursor): Explicitly clear cursor bitmap
10589 in fringe as if it had been overwritten.
10590 (erase_phys_cursor): Erase cursor bitmap in fringe.
10591 (syms_of_xdisp): Mark show-trailing-whitespace and
10592 void-text-area-pointer as user options.
10593 DEFVAR_LISP Voverflow_newline_into_fringe. Enable by default.
10594
10595 * xterm.c (x_update_window_end): Call draw_window_fringes.
10596 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10597 in row instead of actually drawing fringe bitmaps.
10598 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10599 (x_draw_window_cursor): Draw cursor in fringe.
10600
10601 * w32term.c (x_update_window_end): Call draw_window_fringes.
10602 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10603 in row instead of actually drawing fringe bitmaps.
10604 (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10605 (w32_draw_window_cursor): Draw cursor in fringe.
10606
10607 * macterm.c (x_update_window_end): Call draw_window_fringes.
10608 (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10609 in row instead of actually drawing fringe bitmaps.
10610 (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10611 (mac_draw_window_cursor): Draw cursor in fringe.
10612
10613 2004-01-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10614
10615 * xterm.c (handle_one_xevent): Don't handle characters that are part
10616 of an old style (XLookupString) compose sequence.
10617
10618 2004-01-15 Kenichi Handa <handa@m17n.org>
10619
10620 * search.c (Freplace_match): Use make_multibyte_string or
10621 make_unibyte_string according to the buffer multibyteness.
10622
10623 2004-01-14 Stefan Monnier <monnier@iro.umontreal.ca>
10624
10625 * alloc.c (struct interval_block, struct string_block)
10626 (struct symbol_block, struct marker_block, live_string_p)
10627 (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
10628 Better preserve alignment for objects in blocks.
10629 (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
10630
10631 * lread.c (defvar_per_buffer): Remove dead declaration.
10632
10633 * macterm.c (do_check_ram_size): Don't hardcode the lisp address
10634 space size.
10635
10636 2004-01-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10637
10638 * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
10639 if a key press should pop down. Only pop down if a key is pressed
10640 outside the menu/dialog.
10641 (create_and_show_popup_menu): Pass 0 for down_on_keypress to
10642 popup_get_selection.
10643 (create_and_show_dialog): Pass 1 for down_on_keypress to
10644 popup_get_selection.
10645
10646 2004-01-11 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10647
10648 * alloc.c (allocate_vectorlike): Surround calls to mallopt with
10649 BLOCK/UNBLOCK_INPUT.
10650
10651 2004-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10652
10653 * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
10654 specified.
10655
10656 2004-01-08 Kenichi Handa <handa@m17n.org>
10657
10658 * editfns.c (Fformat): Fix '&' to '&&'.
10659
10660 2004-01-08 Andreas Schwab <schwab@suse.de>
10661
10662 * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
10663 size if PSEUDOVECTOR_FLAG is set.
10664
10665 2004-01-07 Kenichi Handa <handa@m17n.org>
10666
10667 * charset.c (Fdeclare_equiv_charset): Fix docstring.
10668
10669 * fontset.c (fontset_ref_via_base): Fix previous change.
10670
10671 2004-01-07 Kim F. Storm <storm@cua.dk>
10672
10673 * process.c (read_process_output): Only activate adaptive
10674 buffering if we read less than 256 bytes at a time.
10675
10676 2004-01-06 Kim F. Storm <storm@cua.dk>
10677
10678 * dispnew.c (buffer_posn_from_coords): Return both buffer/string
10679 object and image object. Return glyph width and height.
10680 (mode_line_string, marginal_area_string): Ditto.
10681
10682 * dispextern.h (buffer_posn_from_coords, mode_line_string)
10683 (marginal_area_string): Fix prototypes.
10684
10685 * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
10686 POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
10687 (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
10688
10689 * keyboard.c (make_lispy_position): Use modified mode_line_string,
10690 buffer_posn_from_coords, and marginal_area_string functions to
10691 include both string object and image object in the lispy position.
10692 Also add actual glyph width and height to position.
10693 (read_key_sequence): Use real buffer position from mouse
10694 event to find keymap property even when click is in marginal area.
10695
10696 * xdisp.c (note_mode_line_or_margin_highlight): Use modified
10697 mode_line_string and marginal_area_string functions to handle
10698 both string object and image object properties.
10699
10700 2004-01-06 Andreas Schwab <schwab@suse.de>
10701
10702 * syntax.c (skip_chars): Treat '-' at end of string as ordinary
10703 character.
10704
10705 2004-01-02 Andreas Schwab <schwab@suse.de>
10706
10707 * macterm.c (emacs_options, x_initialized, same_x_server):
10708 Remove unused (and duplicated) definitions.
10709
10710 2004-01-02 Kim F. Storm <storm@cua.dk>
10711
10712 * process.h (struct Lisp_Process): New members for adaptive read
10713 buffering: adaptive_read_buffering, read_output_delay, and
10714 read_output_skip.
10715
10716 * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
10717 (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
10718 (READ_OUTPUT_DELAY_MAX_MAX): New constants.
10719 (process_output_delay_count, process_output_skip): New vars.
10720 (Vprocess_adaptive_read_buffering): New variable.
10721 (make_process): Initialize adaptive read buffering members.
10722 (Fstart_process): Set adaptive_read_buffering member.
10723 (deactivate_process): Cleanup adaptive read buffering.
10724 (wait_reading_process_input): Temporarily omit delayed
10725 subprocesses from the set of file descriptors to read from;
10726 adjust the select timeout if we skipped any subprocesses.
10727 (read_process_output): Increase adaptive read buffering delay if
10728 we read less than a full buffer; reduce delay when we read a
10729 full buffer.
10730 (send_process): Simplify using local Lisp_Process var.
10731 Reset adaptive read buffering delay after write.
10732 (init_process): Initialize process_output_delay_count and
10733 process_output_skip.
10734 (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
10735
10736 2004-01-01 Jason Rumney <jasonr@gnu.org>
10737
10738 * w32term.c (w32_text_out): Use s->font, for consistency with callers.
10739
10740 2003-12-30 Luc Teirlinck <teirllm@auburn.edu>
10741
10742 * print.c (Ferror_message_string): Add hyperlink in the docstring
10743 to the definition of `signal' in the Elisp manual.
10744 * eval.c (Fsignal): Ditto.
10745
10746 2003-12-29 James Clark <jjc@jclark.com>
10747
10748 * fns.c (internal_equal): Return t for two NaN arguments.
10749
10750 2003-12-29 Richard M. Stallman <rms@gnu.org>
10751
10752 * data.c (store_symval_forwarding): Handle setting
10753 default-fill-column, etc., by changing the value in
10754 buffers that use the default.
10755
10756 * minibuf.c (Fset_minibuffer_window): Doc fix.
10757
10758 * fileio.c (choose_write_coding_system): Ignore auto_saving
10759 if using the visited file for auto saves.
10760 (Fwrite_region): Don't update SAVE_MODIFF
10761 if auto-saving in visited file.
10762
10763 2003-12-29 Kenichi Handa <handa@m17n.org>
10764
10765 * dispextern.h (face_font_available_p): Extern it.
10766
10767 * fontset.c (Voverriding_fontspec_alist): New variable.
10768 (lookup_overriding_fontspec): New function.
10769 (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
10770 (fontset_font_pattern): Likewise.
10771 (regulalize_fontname): New function.
10772 (Fset_fontset_font): Call regulalize_fontname.
10773 (Fset_overriding_fontspec_internal): New function.
10774 (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
10775 Defsubr Sset_overriding_fontspec_internal.
10776
10777 * xfaces.c (face_font_available_p): New function.
10778
10779 2003-12-28 Richard M. Stallman <rms@gnu.org>
10780
10781 * buffer.c (Fother_buffer): Don't crash if BUF is nil
10782 or if its name is nil.
10783
10784 * buffer.c (Fkill_buffer): Don't delete auto-save file
10785 if it's the same as the visited file.
10786
10787 2003-12-28 Luc Teirlinck <teirllm@auburn.edu>
10788
10789 * coding.c (Fcheck_coding_system): Doc fix.
10790
10791 2003-12-28 Kim F. Storm <storm@cua.dk>
10792
10793 * Makefile.in (eval.o): Depend on dispextern.h.
10794
10795 * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
10796 image glyph using image's ascent.
10797 (mode_line_string): Return image glyph as object clicked on.
10798 Adjust y0 for image glyph using image's ascent.
10799
10800 * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
10801 (struct glyph): New members, ascent and descent. Used to save
10802 this glyph's ascent and descent, instead of having.
10803 (struct glyph): Declare member face_id using FACE_ID_BITS.
10804 (find_hot_spot): Add prototype.
10805
10806 * keyboard.c (Qimage): Remove extern (now in lisp.h).
10807 (QCmap): Declare extern.
10808 (make_lispy_position): When position is inside image hot-spot,
10809 use hot-spot element's id as posn element.
10810
10811 * lisp.h (IMAGEP): New macro to test for image object type.
10812 (Qimage): Declare extern.
10813
10814 * macfns.c (Qimage): Remove extern (now in lisp.h).
10815 (valid_image_p, parse_image_spec): Use IMAGEP macro.
10816
10817 * macterm.c (Qface, Qmouse_face): Remove unused externs.
10818
10819 * w32fns.c (Qimage): Remove extern (now in lisp.h).
10820 (valid_image_p, parse_image_spec): Use IMAGEP macro.
10821
10822 * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
10823
10824 * w32term.c (Qface, Qmouse_face): Remove unused externs.
10825
10826 * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
10827 pointer types.
10828 (Qrelative_width, Qalign_to): Remove unused variables.
10829 (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
10830 (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
10831 image maps.
10832 (x_y_to_hpos_vpos): Return glyph relative coordinates through
10833 new dx and dy args.
10834 Remove buffer_only_p arg (always 0). Simplify code accordingly.
10835 (get_glyph_string_clip_rect): Draw cursor using glyph's rather
10836 than row's ascent and height, to get sensible height on tall rows.
10837 (build_desired_tool_bar_string): Remove Qimage extern.
10838 (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
10839 (produce_image_glyph): Adjust it.ascent to minimum row ascent if
10840 image glyph is alone on the last line.
10841 (append_glyph, append_composite_glyph, produce_image_glyph)
10842 (append_stretch_glyph): Set glyph's ascent and descent.
10843 (on_hot_spot_p): New function to check if position is inside an
10844 rectangular, circular, or polygon-shaped image hot-spot,
10845 (find_hot_spot): New function to search for image hot-spot.
10846 (Flookup_image_map): New defun to search for image hot-spot.
10847 (define_frame_cursor1): New aux function to determine frame pointer.
10848 (note_mode_line_or_margin_highlight, note_mouse_highlight):
10849 Handle `pointer' text property and :pointer image property to
10850 control frame pointer shape. Detect image hot-spots for pointer
10851 and help_echo properties. Use define_frame_cursor1.
10852 (note_mouse_highlight): Use Vvoid_text_area_pointer.
10853 (syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
10854 DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
10855
10856 * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
10857
10858 * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
10859 (Qimage): Remove extern (now in lisp.h).
10860 (valid_image_p, parse_image_spec): Use IMAGEP macro.
10861
10862 * xmenu.c (show_help_event): Remove unused code.
10863
10864 * xterm.c (Qface, Qmouse_face): Remove unused externs.
10865 (x_draw_hollow_cursor): Draw cursor using glyph's rather than
10866 row's ascent and descent, to get a sensible height on tall rows.
10867
10868 2003-12-25 Luc Teirlinck <teirllm@auburn.edu>
10869
10870 * minibuf.c (Fcompleting_read): Undo previous change.
10871
10872 2003-12-25 Lars Hansen <larsh@math.ku.dk>
10873
10874 * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
10875 Arguments GCPRO'ed in call to file name handler.
10876
10877 2003-12-25 Thien-Thi Nguyen <ttn@gnu.org>
10878
10879 * termcap.c (tgetst1): Scan for "%pN"; if all
10880 N are continuous in [1,9], remove all "%pN".
10881
10882 2003-12-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10883
10884 * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
10885
10886 * xfaces.c (lface_fully_specified_p): Take into account that
10887 MAC OS always have unspecified stipple.
10888
10889 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
10890
10891 * tparam.c (tparam1): Add handling for `%pN', which
10892 means use param N for the next substitution.
10893
10894 2003-12-24 Thien-Thi Nguyen <ttn@gnu.org>
10895
10896 * xfaces.c (Fcolor_gray_p): Fix omission bug:
10897 In case `frame' is nil, consult the selected frame.
10898 (Fcolor_supported_p): Likewise.
10899
10900 2003-12-23 Luc Teirlinck <teirllm@auburn.edu>
10901
10902 * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
10903 Doc fixes.
10904
10905 * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
10906 and an integer. Adapt the introductory comment accordingly.
10907 (Fread_from_minibuffer): Delete code moved into read_minibuf.
10908 Doc fix.
10909 (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
10910 read_minibuf.
10911 (Fcompleting_read): Delete code moved into read_minibuf.
10912 (Ftest_completion): Make it handle obarrays and hash tables correctly.
10913
10914 2003-12-03 Kenichi Handa <handa@m17n.org>
10915
10916 * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
10917 encoding sequence.
10918
10919 2003-12-01 Kenichi Handa <handa@m17n.org>
10920
10921 * composite.c (syms_of_composite): Don't make the compostion hash
10922 table week.
10923
10924 2003-11-30 Luc Teirlinck <teirllm@auburn.edu>
10925
10926 * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
10927 * textprop.c (Fget_char_property_and_overlay): New function.
10928 (syms_of_textprop): Defsubr it.
10929
10930 2003-11-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
10931
10932 * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
10933 to compile on terminal configuration.
10934
10935 * fileio.c (Fread_file_name): Check use_file_dialog also before
10936 calling Fx_file_dialog.
10937
10938 * fns.c (use_file_dialog): New variable.
10939 (syms_of_fns): DEFVAR_BOOL use-file-dialog.
10940
10941 2003-11-29 Kim F. Storm <storm@cua.dk>
10942
10943 * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
10944 (syms_of_msdos): Don't intern and staticpro them.
10945
10946 2003-11-27 Kim F. Storm <storm@cua.dk>
10947
10948 * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
10949 coordinates relative to glyph at posn. If glyph is an image,
10950 return that as object at posn. Callers changed.
10951 (mode_line_string, marginal_area_string): Calculate and return
10952 pixel coordinates relative to glyph. Callers changed.
10953
10954 * dispextern.h (buffer_posn_from_coords, mode_line_string)
10955 (marginal_area_string): Fix prototypes.
10956 (window_box_left_offset, window_box_right_offset): Add prototypes.
10957
10958 * frame.h (get_specified_cursor_type, get_window_cursor_type):
10959 Remove prototypes.
10960
10961 * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
10962
10963 * keyboard.c (make_lispy_position): Add x and y coordinates
10964 relative to the current glyph as 7th element of position.
10965 If glyph is an image, return it in the object element.
10966 (read_key_sequence): Skip checks for keymap property in cases
10967 where POSN_STRING is not a string (e.g. an image).
10968
10969 * xdisp.c (Vdisplay_pixels_per_inch): New variable.
10970 (Vshow_text_cursor_in_void): New variable.
10971 (glyph_to_pixel_coords): Don't use negative hpos.
10972 (x_y_to_hpos_vpos): Fix for partially visible first glyph.
10973 (append_stretch_glyph): Change ascent arg to be actual value
10974 in pixels rather than ratio to height. Callers changed.
10975 (calc_pixel_width_or_height): New aux function, implementing
10976 pixel based artihmetic for glyph widths and heights.
10977 (produce_stretch_glyph): Use calc_pixel_width_or_height for
10978 :width, :height, :align-to, and :ascent, thus allowing these to
10979 be specified in pixels as well as multiples of characters.
10980 Don't produce stretch glyphs with zero width or height.
10981 (get_specified_cursor_type): Declare static.
10982 (get_window_cursor_type): Declare static. Add glyph arg to be
10983 able to know when cursor is on an image; always substitute
10984 hollow-box cursor for filled-box cursor on images, to avoid
10985 negative images and flicker when blinking the cursor.
10986 (display_and_set_cursor): Pass glyph to get_window_cursor_type.
10987 (note_mode_line_or_margin_highlight): Use non-text cursor rather
10988 than vertical scroll-bar cursor in display margins.
10989 (note_mouse_highlight): Use non-text cursor rather than text
10990 cursor in fringes and over images in the text area.
10991 Use non-text cursor when mouse pointer is outside editable text,
10992 i.e. in the void after end-of-line or end-of-buffer; this was
10993 already done for W32, but is now standard for all systems --
10994 user can toggle show-text-cursor-in-void to get old behaviour.
10995 (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
10996 Vdisplay_pixels_per_inch.
10997
10998 2003-11-25 Andreas Schwab <schwab@suse.de>
10999
11000 * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
11001 EMACS_INT to not lose bits.
11002 (Ffillarray): Don't set bits beyond the size of a bool vector.
11003
11004 2003-11-25 Kim F. Storm <storm@cua.dk>
11005
11006 * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
11007 define this defun on systems that cannot use stderr as lvalue.
11008
11009 2003-11-24 Gerd Moellmann <gerd@gnu.org>
11010
11011 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
11012 [__FreeBSD_version >= 500042]: Define as -znocombreloc because
11013 ld's default is incompatible with unexec.
11014
11015 2003-11-23 Kim F. Storm <storm@cua.dk>
11016
11017 * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
11018 (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
11019 (Fforce_window_update): New defun.
11020 (syms_of_window): Defsubr it.
11021 (Fset_window_margins, Fset_window_fringes): Doc fix.
11022
11023 * print.c (Fredirect_debugging_output): New defun.
11024 (syms_of_print): Defsubr it.
11025
11026 2003-11-22 Luc Teirlinck <teirllm@auburn.edu>
11027
11028 * fns.c (Fset_char_table_parent): Doc fix.
11029
11030 2003-11-22 Kim F. Storm <storm@cua.dk>
11031
11032 * dispnew.c (buffer_posn_from_coords): Return actual row/column
11033 for glyph clicked on, rather than (unused) pixel positions.
11034 (mode_line_string, marginal_area_string): Change X and Y args to
11035 pointers for returning actual row/column for glyph clicked on.
11036 Simplify and optimize loops.
11037
11038 * dispextern.h (mode_line_string, marginal_area_string):
11039 Update prototypes.
11040
11041 * keyboard.c (make_lispy_position): New function for generating
11042 mouse click positions from frame and pixel coordinates.
11043 Enhanced to return buffer position and actual row/column for
11044 events outside the text area using updated mode_line_string and
11045 marginal_area_string functions.
11046 Return left-fringe and right-fringe clicks as such, rather than
11047 clicks in text area.
11048 (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
11049 pixel_to_glyph_coords, as we never use the results.
11050 (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
11051 WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
11052 Eliminate unused code in WHEEL_EVENT handling.
11053 (make_lispy_movement): Use make_lispy_position.
11054
11055 * window.c (coordinates_in_window): Remove redundant tests.
11056 Fix returned X pixel value for left-margin.
11057
11058 * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
11059 mode_line_string and marginal_area_string parameters.
11060
11061 2003-11-22 Lars Hansen <larsh@math.ku.dk>
11062
11063 * w32.c (struct the_group, getgrgid): Add.
11064 * mac.c (struct my_group, getgrgid): Add.
11065
11066 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
11067
11068 * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
11069
11070 2003-11-21 Lars Hansen <larsh@math.ku.dk>
11071
11072 * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
11073 include in call to file name handler. Optionally translate numeric
11074 UID and GID to strings. Update docstring.
11075 (directory_files_internal): Add parameter ID-FORMAT.
11076 (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
11077 include in call to file name handler and call to
11078 directory_files_internal. Update Docstring.
11079 (Fdirectory_files): Add dummy parameter in call to
11080 directory_files_internal.
11081 * lisp.h (Qinteger): Add.
11082 (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
11083 (Ffile_attributes): Add parameter.
11084 * data.c (Qinteger): Export.
11085
11086 2003-11-21 Luc Teirlinck <teirllm@auburn.edu>
11087
11088 * fns.c (Freverse, Fnreverse): Doc fixes.
11089
11090 2003-11-19 Kim F. Storm <storm@cua.dk>
11091
11092 * xdisp.c (init_iterator): Initialize it->start to position
11093 before reseating (in case start position is invisible).
11094 (init_to_row_start): Set it->start to row-start.
11095 (redisplay_window): Accept optional_new_start if start position
11096 is invisible (in which case IT_CHARPOS overshoots PT).
11097 (display_line): Setup row->start from it->start (rather than
11098 it->current which is wrong if first char on line is invisible).
11099 When done, reseat it->start to it->current (= start of next row).
11100 (expose_area): Fix exposure of text area when first char (e.g. TAB)
11101 is only partially visible.
11102
11103 * dispextern.h (struct it): New member start.
11104
11105 2003-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11106
11107 * alloc.c (make_float, Fcons): Clear the markbit at init time.
11108 (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
11109 of block_index outside of the macro call.
11110 (Fgarbage_collect): Remove null code.
11111
11112 * m/amdx86-64.h: Don't redefine XPNTR.
11113
11114 * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
11115 of VALMASK.
11116
11117 * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
11118 (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
11119 (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
11120
11121 * lisp.h (VALMASK): Only define for non-union type.
11122 (MARKBIT): Remove.
11123 (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
11124 (XTYPE): Define unconditionally.
11125 (XSETTYPE): Remove one more remnant.
11126 (EQ): Define differently for the union and non-union cases.
11127 (INTMASK): New bit mask.
11128 (struct Lisp_Marker): Move down to prepare for upcoming patch.
11129 (GC_EQ): Delegate to EQ.
11130
11131 * coding.c (coding_restore_composition): Lisp_Object/int mixup.
11132
11133 2003-11-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11134
11135 * xterm.c (x_window_to_scroll_bar): Move check of display to
11136 where window_id is compared.
11137
11138 2003-11-17 Kim F. Storm <storm@cua.dk>
11139
11140 * dispextern.h (struct it): New member first_vpos.
11141
11142 * xdisp.c (start_display): Set it->first_vpos.
11143 (try_window_id): Use first_vpos to start display in first _text_
11144 line if no reusable lines at start of window with header line.
11145
11146 2003-11-16 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11147
11148 * w32fns.c (XPutPixel):
11149 * w32bdf.c (w32_init_bdf_font):
11150 * sunfns.c (sel_read):
11151 * process.c (Fmake_network_process):
11152 * frame.c (store_frame_param):
11153 * fontset.c (Fset_fontset_font):
11154 * emacs.c (shut_down_emacs):
11155 * ccl.c (ccl_driver): Remove period at end of error message.
11156
11157 * config.in: Regenerate.
11158
11159 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11160 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
11161 (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
11162 (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
11163 (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
11164
11165 * xterm.h (struct x_display_info): New field xg_cursor for GTK.
11166
11167 * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
11168 (XTmouse_position, handle_one_xevent): Pass Display* to
11169 x_window_to_scroll_bar.
11170 (x_window_to_scroll_bar): Take a Display* argument.
11171 Check that display for frame is equal to Display* argument.
11172 (event_handler_gdk): Remove current_dpyinfo. Get dpyinfo from
11173 x_display_info_for_display instead. Use Display in xev instead
11174 of GDK_DISPLAY.
11175 (x_dispatch_event): Call x_display_info_for_display.
11176 (XTread_socket): Move GTK part out of loop. current_dpyinfo removed.
11177 (x_connection_closed): Call xg_display_close for GTK.
11178 (x_term_init): Call xg_display_open for additional displays.
11179 Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
11180 for GTK.
11181
11182 * xmenu.c (single_menu_item, mouse_position_for_popup)
11183 (x_activate_menubar): Formatting adjustments.
11184
11185 * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
11186 adjustments.
11187
11188 * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
11189 (xg_display_close, xg_create_default_cursor)
11190 (xg_get_gdk_pixmap_and_mask): New functions for multiple display
11191 handling.
11192 (xg_left_ptr_cursor): Remove.
11193 (xg_set_cursor): Change cursor to GdkCursor*. Do not create
11194 cursor here.
11195 (xg_win_to_widget): Take Display* argument, call
11196 gdk_xid_table_lookup_for_display.
11197 (xg_create_frame_widgets, xg_get_file_name, create_menus)
11198 (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
11199 (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
11200 in FRAME_X_DISPLAY_INFO.
11201 (xg_get_scroll_id_for_window): Take Display* argument.
11202 (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
11203 (xg_initialize): Remove xg_left_ptr_cursor.
11204
11205 * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
11206 Display* argument.
11207 (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
11208
11209 2003-11-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11210
11211 * xterm.c (x_detect_focus_change): Do not change focus frame for
11212 Enter/LeaveNotify if the current focus frame has explicit focus.
11213
11214 2003-11-14 Kim F. Storm <storm@cua.dk>
11215
11216 * dispnew.c (update_text_area): Fix redisplay error when hscroll
11217 is active and first glyph is only partially visible.
11218
11219 2003-11-13 Kenichi Handa <handa@m17n.org>
11220
11221 * xdisp.c (select_frame_for_redisplay): New function.
11222 (redisplay_internal): Record also selected_frame for
11223 unwind_redisplay. Call select_frame_for_redisplay before
11224 redrawing each frame.
11225 (unwind_redisplay): Argument changed to a cons.
11226
11227 2003-11-12 Luc Teirlinck <teirllm@auburn.edu>
11228
11229 * fns.c (Fstring_to_multibyte): Doc fix.
11230
11231 2003-11-11 Kenichi Handa <handa@m17n.org>
11232
11233 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
11234
11235 2003-11-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11236
11237 * xfns.c (x_window): Set XtNx and XtNy in shell widget for
11238 program specified positions.
11239
11240 2003-11-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11241
11242 * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
11243
11244 2003-11-08 Kenichi Handa <handa@m17n.org>
11245
11246 * Makefile.in (lisp): Add kannada.el.
11247 (shortlisp): Likewise.
11248
11249 2003-11-07 Kenichi Handa <handa@m17n.org>
11250
11251 * coding.c (coding_allocate_composition_data):
11252 Reset coding->composing to COMPOSITION_NO.
11253 (coding_restore_composition): Detect invalid composition data.
11254 Give Fstring and Fvector a Lispy integer, not C int.
11255
11256 2003-11-05 Stefan Monnier <monnier@iro.umontreal.ca>
11257
11258 * floatfns.c (Flogb): Don't use VALMASK.
11259
11260 * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
11261 * m/ia64.h (VALBITS, XINT, XUINT): Remove.
11262
11263 * lisp.h (XINT): Move the cast to clarify what is going on.
11264 (GCTYPEMASK, XSETTYPE): Remove.
11265 (XGCTYPE): Make it an alias of XTYPE.
11266
11267 2003-11-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11268
11269 * xterm.c (x_term_init): Fix formatting.
11270
11271 2003-11-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11272
11273 * gtkutil.h (xg_have_tear_offs): Declare.
11274 (xg_keep_popup, xg_did_tearoff): Remove.
11275
11276 * gtkutil.c: Remove variable xg_did_tearoff.
11277 (xg_have_tear_offs): New function.
11278 (tearoff_remove): Just decrease xg_detached_menus.
11279 (tearoff_activate): Increase xg_detached_menus and call
11280 tearoff_remove when tearoff is removed.
11281 (xg_keep_popup): Remove function.
11282 (create_menus): Give add_tearoff_p as argument to recursive
11283 call to create_menus.
11284 (xg_create_widget): Use variables instead of multiple
11285 strcmp. Tell create_menus to create tear off only for
11286 menu bar menus.
11287 (xg_update_menubar): Change title for a detached menu also.
11288 (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
11289 of deep_p.
11290 (xg_initialize): Initialize xg_detached_menus, remove
11291 initialization of xg_did_tearoff.
11292
11293 * xmenu.c (set_frame_menubar): For GTK, set deep_p if
11294 xg_have_tear_offs returns non-zero.
11295 (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
11296 call to xg_keep_popup.
11297
11298 2003-11-01 Andrew Choi <akochoi@shaw.ca>
11299
11300 * macterm.c (XTread_socket): Handle menubar selection and grow
11301 window only for mouseDown events.
11302
11303 2003-10-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11304
11305 * xterm.c (x_term_init): For GTK part, increase x_initialized
11306 to check for more than one display. Use error instead of return 0.
11307
11308 2003-10-31 Andrew Choi <akochoi@shaw.ca>
11309
11310 * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
11311 (copy_dysymtab): Call it.
11312
11313 2003-10-31 Luc Teirlinck <teirllm@auburn.edu>
11314
11315 * eval.c (Fdefvaralias): Doc fix.
11316
11317 2003-10-26 Luc Teirlinck <teirllm@auburn.edu>
11318
11319 * data.c (Fsetplist): Doc fix.
11320
11321 2003-10-14 Lute Kamstra <lute@gnu.org>
11322
11323 * window.c (Fset_window_fringes): Clarify docstring.
11324
11325 2003-10-14 Kim F. Storm <storm@cua.dk>
11326
11327 * window.c (Fset_window_margins): Simplify arg checking.
11328
11329 2003-10-13 Richard M. Stallman <rms@gnu.org>
11330
11331 * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
11332 (print_partial_compiled_pattern): Replace assert with a printout.
11333 (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
11334
11335 * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
11336
11337 * window.c (Fset_window_margins): Allow only integers as args.
11338 (syms_of_window) <special-display-buffer-names, special-display-regexps>:
11339 Doc fixes.
11340
11341 2003-10-13 Lute Kamstra <lute@gnu.org>
11342
11343 * window.c (Fset_window_fringes): Elaborate docstring.
11344
11345 2003-10-12 Andrew Choi <akochoi@shaw.ca>
11346
11347 * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
11348
11349 * s/darwin.h (GC_MARK_STACK): Define.
11350
11351 2003-10-12 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11352
11353 * window.c (shrink_windows): New function.
11354 (size_window): Call shrink_windows to calculate window sizes when
11355 shrinking frame with more than one window.
11356
11357 2003-10-12 Kim F. Storm <storm@cua.dk>
11358
11359 * xdisp.c (compute_fringe_widths): Doc fix.
11360
11361 2003-10-08 Kenichi Handa <handa@m17n.org>
11362
11363 * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
11364
11365 2003-10-07 Kenichi Handa <handa@m17n.org>
11366
11367 * coding.c (Qcoding_system_define_form): New variable.
11368 (syms_of_coding): Intern and staticpro it.
11369 (Fcheck_coding_system): Try to autoload the definition of
11370 CODING-SYSTEM.
11371
11372 2003-10-05 Luc Teirlinck <teirllm@auburn.edu>
11373
11374 * fns.c (Frequire): Doc fix.
11375
11376 2003-10-05 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11377
11378 * xfns.c (Fx_send_client_event): New function as a base for
11379 manipulating extended window manager hints.
11380 (Fx_send_client_event): Remove unused variable s.
11381
11382 * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
11383 that function is removed.
11384
11385 * xterm.c (x_set_offset): Use move_offset_left/top instead of
11386 x/y_pixels_outer_diff.
11387 (x_check_expected_move): Calculate move_offset_left/top.
11388
11389 * xterm.h (struct x_output): New members: move_offset_top/left.
11390
11391 * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
11392 call x_set_offset directly.
11393
11394 * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
11395
11396 * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
11397
11398 * xterm.c (x_delete_display): Free font names and font_encoder
11399 in dpyinfo->font_table.
11400
11401 * xfns.c (Fx_close_connection): Only call XFreeFont here.
11402 Move xfree of font names to x_delete_display.
11403
11404 * xterm.h (struct x_display_info): New member, wm_type.
11405 (struct x_output): New members, expected_top/left and
11406 check_expected_move.
11407
11408 * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
11409 is received.
11410 (handle_one_xevent): Rename x_check_expected_move from
11411 x_check_fullscreen_move.
11412 (x_set_offset): Only add WM decoration sizes to modified_top/left
11413 for X_WMTYPE_A. Set check_expected_move when WM type is unknown.
11414 (x_check_expected_move): Rename from x_check_fullscreen_move.
11415 Removed fullscreen specific code. Use check_expected_move,
11416 expected_left/top instead. Also, set wm_type.
11417 (x_term_init): Initialize wm_type to unknown.
11418
11419 * frame.c (x_fullscreen_move): Remove addition of WM decoration
11420 sizes to move_x/y.
11421
11422 2003-10-03 Kenichi Handa <handa@m17n.org>
11423
11424 * macterm.c (x_load_font): Clear all members of FONTP before start
11425 filling them.
11426
11427 2003-10-02 Kenichi Handa <handa@m17n.org>
11428
11429 * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
11430 before calling find_ccl_program_func. Call find_ccl_program_func
11431 only when fontp->font_encoder is not NULL.
11432
11433 * xterm.c (x_load_font): Clear all members of FONTP before start
11434 filling them.
11435
11436 2003-10-03 John Paul Wallington <jpw@gnu.org>
11437
11438 * keymap.c (map_keymap): Don't abort when binding is a vector.
11439
11440 2003-10-02 Jason Rumney <jasonr@gnu.org>
11441
11442 * makefile.w32-in (emacs.o, coding.o, bytecode.o):
11443 Sync dependencies with Makefile.in.
11444 (alloca.o): Remove.
11445
11446 * w32fns.c (w32_load_system_font): Clear all members of FONTP before
11447 filling them.
11448
11449 * w32bdf.c (w32_load_bdf_font): Likewise.
11450
11451 2003-09-30 Richard M. Stallman <rms@gnu.org>
11452
11453 * term.c (set_tty_color_mode): Calculate current_mode_spec
11454 regardless of value of VAL.
11455
11456 * intervals.c (graft_intervals_into_buffer):
11457 Set BUF_INTERVALS (buffer)->up_obj when appropriate.
11458 Handle over_used when splitting UNDER.
11459
11460 2003-09-30 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11461
11462 * regex.c (regex_compile): Free the stack when returning from function.
11463
11464 2003-09-28 Kenichi Handa <handa@m17n.org>
11465
11466 * fontset.c (Finternal_char_font): Change return value to
11467 cons (FONT-NAME . GLYPH-CODE).
11468
11469 2003-09-28 Eli Zaretskii <eliz@gnu.org>
11470
11471 * term.c (tty_setup_colors): Treat any negative argument as -1.
11472
11473 2003-09-27 Gaute B Strokkenes <biggaute@uwc.net> (tiny change)
11474
11475 * process.c (send_process): Delete unused temp_buf.
11476
11477 2003-09-26 Dave Love <fx@gnu.org>
11478
11479 * xterm.c (x_bitmap_mask): Declare.
11480
11481 2003-09-25 Dave Love <fx@gnu.org>
11482
11483 * Makefile.in (fns.o): Depend on md5.h.
11484
11485 2003-09-25 Kim F. Storm <storm@cua.dk>
11486
11487 * window.c (set_window_buffer): Fix redisplay problems when
11488 switching between buffers with different display margin widths.
11489
11490 2003-09-23 Kim F. Storm <storm@cua.dk>
11491
11492 * process.c (set_socket_option): Fix :bindtodevice option.
11493 (Fset_network_process_option): Update process contact list when
11494 setting option succeeds.
11495 (Fmake_network_process): Doc fix.
11496
11497 2003-09-23 Dave Love <fx@gnu.org>
11498
11499 * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
11500
11501 2003-09-22 Eli Zaretskii <eliz@gnu.org>
11502
11503 * term.c (set_tty_color_mode): Use INTEGERP to test whether a
11504 color mode is an integer number (it could be -1).
11505
11506 2003-09-22 Richard M. Stallman <rms@gnu.org>
11507
11508 * intervals.c (graft_intervals_into_buffer): Correct the main loop
11509 in the case where OVER is longer than UNDER.
11510
11511 2003-09-22 Masatake YAMATO <jet@gyve.org>
11512
11513 * window.c (Fset_window_scroll_bars): Validate the value of
11514 `vertical_type'.
11515
11516 2003-09-21 Kim F. Storm <storm@cua.dk>
11517
11518 * frame.c (Vdefault_frame_scroll_bars): New variable.
11519 (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
11520 (syms_of_frame): DEFVAR_LISP it, and initialize according to
11521 window-system default scroll bar position.
11522
11523 * window.c (Fwindow_scroll_bars): Doc fix.
11524
11525 2003-09-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11526
11527 * xterm.c (x_set_offset): Take window manager decorations into account.
11528
11529 2003-09-19 Richard M. Stallman <rms@gnu.org>
11530
11531 * atimer.h: Don't include lisp.h.
11532 (P_): Define it here (as well as elsewhere).
11533
11534 * print.c (Fprin1_to_string): Move the PRINTPREPARE
11535 later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
11536
11537 * data.c (Fvariable_binding_locus): New function.
11538 (syms_of_data): defsubr it.
11539 (Flocal_variable_p): Delete duplicate call to indirect_variable.
11540
11541 2003-09-18 Dave Love <fx@gnu.org>
11542
11543 * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
11544
11545 * process.c (Fnetwork_interface_info): Fix type error.
11546 (Fnetwork_interface_list): Doc fix.
11547 (read_process_output, read_process_output): Delete unused var.
11548
11549 2003-09-17 Kim F. Storm <storm@cua.dk>
11550
11551 * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
11552 Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
11553 (Fnetwork_interface_info): Check that ifreq struct has required
11554 fields before accessing them; this requires that those fields are
11555 defined as macros, which may be too restrictive on some platforms,
11556 but it is better than failing on other platforms.
11557 (syms_of_process): Only defsubr above fns when included.
11558
11559 2003-09-17 Dave Love <fx@gnu.org>
11560
11561 * unexalpha.c: Don't include varargs.h.
11562
11563 2003-09-17 Kim F. Storm <storm@cua.dk>
11564
11565 * process.c (Fset_process_sentinel): Add sentinel to childp plist
11566 for network process.
11567 (socket_options): Add `:' prefix to option names. Add optbit field.
11568 (set_socket_option): Remove no_error arg and special handling of s < 0.
11569 Return 1<<optbit for known option, 0 for unknown.
11570 Do not interpret 0 as false for boolean option (only nil).
11571 Pass failed option and value to report_file_error.
11572 (Fset_network_process_options): Replace by Fset_network_process_option.
11573 (Fset_network_process_option): New function to set just one option.
11574 (Fmake_network_process): Allow :coding arg to be a cons.
11575 Allow :server arg to be an integer specifying backlog size.
11576 Remove :options arg, and allow options to be specified directly
11577 as :KEY, VALUE pairs. Parse these options before binding socket.
11578 As before, :reuseaddr t is default for a server process, but this
11579 can now be disabled by specifying :reuseaddr nil.
11580 (Fnetwork_interface_info): Rename from Fget_network_interface_info.
11581 (init_process): Availability of network options is now checked with
11582 simpler syntax (featurep 'make-network-process :OPTION); use loop to
11583 setup features.
11584 (syms_of_process): Fix defsubr's for the replaced functions.
11585
11586 2003-09-16 Dave Love <fx@gnu.org>
11587
11588 * Makefile.in: Depend on coding.h.
11589
11590 2003-09-14 Kim F. Storm <storm@cua.dk>
11591
11592 * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
11593 (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
11594 (syms_of_process): Defsubr them.
11595
11596 * config.in: Regenerate.
11597
11598 2003-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11599
11600 * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
11601 * m/news-r6.h (XUNMARK): Remove.
11602 * m/mips.h (XUNMARK): Remove.
11603 * m/mips-siemens.h (XUNMARK): Remove.
11604 * m/iris4d.h (XUNMARK): Remove.
11605 * m/hp800.h (XMARKBIT, XUNMARK): Remove.
11606
11607 2003-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
11608
11609 * lisp.h (VALBITS): Don't remove 1 for the markbit.
11610 (union Lisp_Object): Use unsigned int for types. Remove markbit.
11611 (MARKBIT): Remove 1 from VALBITS so we still use same old val.
11612 (XTYPE): Use unsigned right-shift.
11613 (XMARKBIT, XMARK, XUNMARK): Remove.
11614
11615 * alloc.c (init_intervals, init_symbol, init_marker):
11616 Don't preallocate anything.
11617 (Fgarbage_collect, mark_object): Ignore the markbit.
11618
11619 * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
11620
11621 2003-09-08 Lute Kamstra <lute@gnu.org>
11622
11623 * xdisp.c (pint2hrstr): New function.
11624 (decode_mode_spec): Add `%i' and `%I' specs.
11625 * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
11626 for `mode-line-format'.
11627
11628 2003-09-07 Andreas Schwab <schwab@suse.de>
11629
11630 * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
11631 avoid warning.
11632
11633 2003-09-07 Eli Zaretskii <eliz@gnu.org>
11634
11635 * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
11636
11637 2003-09-03 Kim F. Storm <storm@cua.dk>
11638
11639 * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
11640 change (superseded by 2002-08-30 change); the default blink-off
11641 cursor is now again "no cursor".
11642
11643 2003-09-01 Jason Rumney <jasonr@gnu.org>
11644
11645 * makefile.w32-in (alloca.o): Remove.
11646 (coding.o): Depend on intervals.h
11647 (emacs.o, bytecode.o): Depend on window.h
11648
11649 2003-09-01 Dave Love <fx@gnu.org>
11650
11651 * Makefile.in (alloca.o): Remove commands.
11652 (coding.o): Depend on intervals.h composite.h window.h.
11653 (emacs.o): Depend on window.h keyboard.h keymap.h.
11654 (gtkutil.o): Depend on keyboard.h charset.h coding.h.
11655 (bytecode.o): Depend on window.h.
11656
11657 2003-08-31 Jason Rumney <jasonr@gnu.org>
11658
11659 * w32term.c (w32_per_char_metric): Allow cached metrics to be
11660 returned even when font_type is unknown.
11661
11662 * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
11663
11664 2003-08-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11665
11666 * xterm.c (x_term_init): Initialize new fields in x_display_info.
11667
11668 * xterm.h (struct x_display_info): Add red/green/blue_bits and
11669 *_offset.
11670
11671 * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
11672 calculate pixel value.
11673
11674 2003-08-29 Gerd Moellmann <gerd.moellmann@t-online.de>
11675
11676 * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
11677 Don't tell redisplay display is accurate when it's actually been
11678 paused for pending input.
11679
11680 2003-08-29 Richard M. Stallman <rms@gnu.org>
11681
11682 * dispnew.c (adjust_glyph_matrix): Call window_box
11683 whenever W is nonzero.
11684
11685 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11686 (Fkill_local_variable, Fmake_variable_frame_local)
11687 (Flocal_variable_p, Flocal_variable_if_set_p):
11688 Use indirect_variable to trace thru variable aliases.
11689
11690 * config.in: Updated.
11691
11692 * callint.c (Fcall_interactively): Save and restore
11693 Vthis_command, Vthis_original_command, real_this_command,
11694 and current_kboard->Vlast_command.
11695
11696 * abbrev.c (Fexpand_abbrev): Insert before deleting.
11697
11698 2003-08-29 Gerd Moellmann <gerd@gnu.org>
11699
11700 * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
11701
11702 2003-08-28 David Abrahams <dave@boost-consulting.com> (tiny change)
11703
11704 * coding.c (decode_coding_iso2022): Initialize local variable c2.
11705 (decode_coding_sjis_big5): Likewise.
11706
11707 2003-08-27 Jason Rumney <jasonr@gnu.org>
11708
11709 * w32.c (sys_pipe): Protect against file descriptor overflow.
11710
11711 * w32fns.c (syms_of_w32fns): Remove non-existent functions.
11712
11713 * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
11714
11715 2003-08-26 Terje Rosten <terjeros@phys.ntnu.no>
11716
11717 * xfns.c (Vgtk_version_string): New variable.
11718 (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
11719
11720 2003-08-24 Eli Zaretskii <eliz@gnu.org>
11721
11722 * term.c (term_init): Remove `const' from buffer_size's declaration.
11723
11724 * Makefile.in (msdos.o): Depend on intervals.h.
11725
11726 * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
11727
11728 2003-08-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11729
11730 * xterm.h (struct x_display_info): New fields: client_leader_window
11731 and Xatom_wm_client_leader.
11732
11733 * xterm.c (x_initialize): Move call to x_session_initialize to ...
11734 (x_term_init): ... here. Initialize client_leader fields in dpyinfo.
11735
11736 * xsmfns.c (create_client_leader_window): New function.
11737 (x_session_initialize): Call create_client_leader_window, take
11738 dpyinfo as argument.
11739
11740 * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
11741
11742 * Makefile.in (xsmfns.o): Add more depenedencies.
11743
11744 2003-08-21 Dave Love <fx@gnu.org>
11745
11746 * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
11747
11748 2003-08-21 Kenichi Handa <handa@m17n.org>
11749
11750 * term.c (term_init): Fix previous change; don't rely on the
11751 length of `buffer' if TERMINFO is defined.
11752
11753 2003-08-20 Dave Love <fx@gnu.org>
11754
11755 * atimer.h: Include lisp.h.
11756
11757 * lisp.h (EMACS_LISP_H): New.
11758 (popup_activated_flag): Don't declare.
11759
11760 * alloca.c: Some merging with gnulib. Change logic and doc
11761 concerning (x)malloc/(x)free -- no longer Emacs-specific.
11762 [DO_BLOCK_INPUT]: Don't include lisp.h.
11763 (xmalloc, xfree): Declare.
11764 (malloc): Don't declare.
11765
11766 * Makefile.in (LWLIB_OPTIONS): Remove (unused).
11767 (alloca.o): Remove obsolete stuff concerning alloca.s. Depend on
11768 atimer.h, blockinput.h.
11769
11770 * alloc.c (lisp_align_malloc): Change type of `aligned'.
11771
11772 * alloca.s: Remove.
11773
11774 2003-08-19 Gerd Moellmann <gerd@gnu.org>
11775
11776 * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
11777 use -lncurses.
11778
11779 * term.c (term_init): Use a buffer of size 4096 for tgetent since
11780 FreeBSD returns something longer than 2044. Abort if the end of
11781 the buffer is overwritten.
11782
11783 2003-08-19 Miles Bader <miles@gnu.org>
11784
11785 * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
11786
11787 2003-08-19 Gerd Moellmann <gerd@gnu.org>
11788
11789 * alloc.c (lisp_align_malloc): Check for memory full when
11790 allocating ablocks, which also avoids freeing a pointer into an
11791 ablocks structure.
11792
11793 * puresize.h (BASE_PURESIZE): Increase to 1100000.
11794
11795 * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
11796
11797 2003-08-16 Richard M. Stallman <rms@gnu.org>
11798
11799 * editfns.c (Fencode_time): Doc fix.
11800
11801 2003-08-16 David Ponce <david@dponce.com>
11802
11803 * fileio.c (Fwrite_region): Fix conditional expression to issue
11804 the right message.
11805
11806 2003-08-16 Juri Linkov <juri@jurta.org>
11807
11808 * syntax.c (Fforward_word): Argument changed to optional.
11809 Set default value to 1.
11810
11811 2003-08-15 Kenichi Handa <handa@m17n.org>
11812
11813 * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
11814 what autoscaled.
11815 (best_matching_font): Once we find a better scalable font, set
11816 non_scalable_has_exact_height_p to 1.
11817 (try_font_list): Call try_alternative_families to try any family
11818 with the given registry.
11819
11820 2003-08-09 Andreas Schwab <schwab@suse.de>
11821
11822 * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
11823
11824 * print.c (print_string): Fix printing of multibyte string with
11825 nontrivial printcharfun.
11826
11827 2003-07-31 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11828
11829 * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
11830
11831 * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
11832
11833 2003-07-31 Kenichi Handa <handa@m17n.org>
11834
11835 * process.c (read_process_output): Return the actually read bytes
11836 instead of the result of decoding.
11837
11838 2003-07-31 Kenichi Handa <handa@m17n.org>
11839
11840 * xterm.h (struct x_bitmap_record): New member have_mask.
11841
11842 * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
11843 to 0.
11844 (x_create_bitmap_from_file): Likewise.
11845 (x_destroy_bitmap): Check have_mask member before freeing a mask.
11846 (x_destroy_all_bitmaps): Likewise.
11847 (x_create_bitmap_mask): Set have_mask member to 1.
11848
11849 2003-07-30 Richard M. Stallman <rms@gnu.org>
11850
11851 * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
11852
11853 2003-07-29 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
11854
11855 * gtkutil.c (xg_mark_data): Update calls to mark_object.
11856
11857 2003-07-29 Richard M. Stallman <rms@gnu.org>
11858
11859 * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
11860 Conditionalize XIM code on HAVE_XIM.
11861
11862 * fns.c (Fclear_string): New function.
11863 (syms_of_fns): defsubr it.
11864
11865 2003-07-28 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
11866
11867 * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
11868
11869 2003-07-22 Stefan Monnier <monnier@cs.yale.edu>
11870
11871 * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
11872
11873 * buffer.c (delete_all_overlays): New function.
11874 * buffer.h (delete_all_overlays): Declare.
11875 * coding.c (run_pre_post_conversion_on_str):
11876 * print.c (temp_output_buffer_setup):
11877 * fileio.c (Finsert_file_contents):
11878 * minibuf.c (get_minibuffer): Use it.
11879
11880 2003-07-22 Andrew Choi <akochoi@shaw.ca>
11881
11882 * unexmacosx.c (unexec_regions_sort_compare):
11883 (unexec_regions_merge): New functions. Sort and merge unexec
11884 regions before dumping them.
11885
11886 2003-07-22 Dave Love <fx@gnu.org>
11887
11888 * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
11889
11890 2003-07-21 Stefan Monnier <monnier@cs.yale.edu>
11891
11892 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
11893 (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
11894 MARKBIT as the gcmarkbit for strings.
11895
11896 2003-07-21 Richard M. Stallman <rms@gnu.org>
11897
11898 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
11899
11900 * fns.c (Flocale_info): Rename from Flanginfo. Doc fixes.
11901 (syms_of_fns): Corresponding change.
11902
11903 * alloc.c (syms_of_alloc): Doc fixes.
11904
11905 2003-07-20 Han Boetes <han@mijncomputer.nl> (tiny change)
11906
11907 * s/netbsd.h: Use -Wl syntax.
11908
11909 2003-07-17 Richard M. Stallman <rms@gnu.org>
11910
11911 * xterm.c (xim_initialize): Redo 6/24 change.
11912
11913 2003-07-15 Stefan Monnier <monnier@cs.yale.edu>
11914
11915 * buffer.c (copy_overlays): Use EMACS_INT for positions.
11916 (Fswitch_to_buffer): Don't signal an error when switching to the same
11917 buffer in a dedicated window.
11918
11919 * alloc.c: Use bitmaps for cons, as was done for floats.
11920 (init_float, init_cons): Let the normal code allocate the first block.
11921 (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
11922 (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
11923 New macros.
11924 (struct cons_block): Move conses to the beginning. Add gcmarkbits.
11925 (Fcons): Use lisp_align_malloc and CONS_UNMARK.
11926 (live_cons_p): Check the pointer is not past the `conses' array.
11927 (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
11928 (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
11929 (survives_gc_p): Use CONS_MARKED_P and simplify.
11930 (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
11931
11932 2003-07-13 Paul Eggert <eggert@twinsun.com>
11933
11934 GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
11935 puts it into BSS instead, at least on Solaris 8 and 9.
11936 This is a valid optimization, and it may occur on other platforms,
11937 so Emacs should not assume that initializing a static variable to
11938 zero puts it into data.
11939 * alloc.c (pure, staticvec):
11940 Initialize these arrays to nonzero, so that they're not
11941 put into BSS by that optimization.
11942
11943 2003-07-13 Stefan Monnier <monnier@cs.yale.edu>
11944
11945 * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING. Update users.
11946 (lisp_align_malloc): Use posix_memalign is available.
11947 (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
11948 (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
11949 for consistency. Update users.
11950
11951 2003-07-13 Richard M. Stallman <rms@gnu.org>
11952
11953 * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
11954
11955 2003-07-13 Terje Rosten <terjeros@phys.ntnu.no>
11956
11957 * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
11958 and use the Gtk+ function gtk_window_icon_from_file if available.
11959
11960 * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
11961 handle mask of bitmaps.
11962 (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
11963 mask property.
11964 (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
11965
11966 * xterm.h (xg_set_icon): New function.
11967
11968 2003-07-12 Paul Eggert <eggert@twinsun.com>
11969
11970 * unexelf.c (unexec): Consider a section to precede the .bss
11971 section if its addresses overlap that of .bss.
11972
11973 2003-07-12 Richard M. Stallman <rms@gnu.org>
11974
11975 * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
11976
11977 * config.in (HAVE_CRTIN): Add #undef.
11978 (INLINE): Really inline only if OPTIMIZE is defined.
11979
11980 * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
11981 END_FILES_1.
11982 (START_FILES_1, END_FILES_1): New macros (conditional).
11983 (LD_SWITCH_SYSTEM_TEMACS): Define.
11984
11985 * s/openbsd.h: Don't include bsd4-3.h.
11986 (TERMINFO): Define.
11987 (LIBS_TERMCAP): Define.
11988 (LD_SWITCH_SYSTEM): Define (two definitions).
11989
11990 * xfns.c: Include libpng/png.h instead of png.h.
11991
11992 2003-07-11 Andreas Schwab <schwab@suse.de>
11993
11994 * buffer.c (modify_overlay): Update prototype.
11995 * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
11996 Likewise.
11997
11998 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
11999
12000 * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
12001 (struct interval): Move to intervals.h.
12002 (struct Lisp_Marker): Use EMACS_INT for position info.
12003 (forward_point): Remove prototype of defunct function.
12004 (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
12005 (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
12006 (syms_of_textprop, set_text_properties): Remove prototypes that are
12007 already in intervals.h.
12008
12009 * intervals.h (struct interval): Move from lisp.h.
12010 Use EMACS_INT for position and size info.
12011
12012 * coding.c: Include intervals.h for Fset_text_properties.
12013
12014 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
12015 position and length information.
12016
12017 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
12018
12019 * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
12020 position and length information.
12021
12022 2003-07-09 Stefan Monnier <monnier@cs.yale.edu>
12023
12024 Change overlays_after and overlays_before so the overlays themselves
12025 are linked into lists, rather than using cons cells. After all each
12026 Lisp_Misc already occupies 5 words, so we can add a `next' field to
12027 Lisp_Overlay for free and save up one cons cell per overlay (not
12028 to mention one indirection when traversing the list of overlay).
12029
12030 * lisp.h (struct Lisp_Overlay): New field `next'.
12031
12032 * buffer.h (struct buffer): Change overlays_before and overlays_after
12033 from Lisp lists of overlays to pointers to overlays.
12034
12035 * buffer.c (overlay_strings, recenter_overlay_lists):
12036 Fix typo in eassert in last commit.
12037 (unchain_overlay): New function.
12038 (add_overlay_mod_hooklist): Use AREF.
12039 (copy_overlays, reset_buffer, overlays_at, overlays_in)
12040 (overlay_touches_p, overlay_strings, recenter_overlay_lists)
12041 (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
12042 (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
12043 (report_overlay_modification, evaporate_overlays, init_buffer_once):
12044 Adjust to new type of overlays_(before|after).
12045
12046 * alloc.c (mark_object): Mark the new `next' field of overlays.
12047 (mark_buffer): Manually mark the overlays_(after|before) fields.
12048
12049 * coding.c (run_pre_post_conversion_on_str):
12050 * editfns.c (overlays_around):
12051 * xdisp.c (load_overlay_strings):
12052 * fileio.c (Finsert_file_contents):
12053 * indent.c (current_column):
12054 * insdel.c (signal_before_change, signal_after_change):
12055 * intervals.c (set_point_both):
12056 * print.c (temp_output_buffer_setup): Use new type for
12057 overlays_(before|after).
12058
12059 2003-07-08 Stefan Monnier <monnier@cs.yale.edu>
12060
12061 * buffer.c (report_overlay_modification): Don't run hooks while
12062 traversing the list of overlays.
12063
12064 * buffer.h (struct buffer): Use an int for overlay_center.
12065 (overlays_at, evaporate_overlays, recenter_overlay_lists)
12066 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
12067
12068 * buffer.c (reset_buffer, recenter_overlay_lists)
12069 (adjust_overlays_for_insert, adjust_overlays_for_delete)
12070 (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
12071 (evaporate_overlays, init_buffer_once): Update use of overlay_center.
12072 (overlays_at, evaporate_overlays, recenter_overlay_lists)
12073 (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
12074
12075 * xdisp.c (fast_find_position): Remove unused var.
12076
12077 * cmds.c (Qexpand_abbrev): New sym.
12078 (syms_of_cmds): Initialize it.
12079 (internal_self_insert): Use it to call expand-abbrev.
12080
12081 2003-07-09 Kim F. Storm <storm@cua.dk>
12082
12083 * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
12084 was configured with --without-xim.
12085 (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
12086
12087 2003-07-07 Richard M. Stallman <rms@gnu.org>
12088
12089 * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
12090
12091 * alloc.c (Fgarbage_collect): Doc fix.
12092
12093 2003-07-07 Nozomu Ando <nand@mac.com>
12094
12095 * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
12096
12097 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
12098
12099 * minibuf.c (read_minibuf): UNGCPRO before returning.
12100 (Ftry_completion, Fall_completions): Doc fix.
12101
12102 * alloc.c (live_float_p): Check that p is not past the `floats' array,
12103 now that `floats' is not the last element of the struct any more.
12104
12105 2003-07-06 Jason Rumney <jasonr@gnu.org>
12106
12107 * w32term.h (ClipboardSequence_Proc): New type.
12108
12109 * w32fns.c (clipboard_sequence_fn): New variable.
12110 (globals_of_w32fns): Initialize it.
12111
12112 * w32select.c (last_clipboard_sequence_number): New variable.
12113 (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
12114 number if possible.
12115
12116 2003-07-06 Stefan Monnier <monnier@cs.yale.edu>
12117
12118 * m/amdx86-64.h (MARKBIT):
12119 * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
12120 MARKBIT and ARRAY_MARK_FLAG any more.
12121
12122 * m/hp800.h (XSETMARKBIT):
12123 * m/sr2k.h (XSETMARKBIT):
12124 * lisp.h (XSETMARKBIT): Remove unused macro.
12125
12126 * lisp.h (mark_object): Change prototype.
12127
12128 * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
12129 (last_marked): Change accordingly.
12130 (mark_interval, mark_maybe_object, mark_maybe_pointer)
12131 (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
12132 (mark_buffer): Update calls to mark_object.
12133
12134 * bytecode.c (mark_byte_stack):
12135 * fns.c (sweep_weak_table):
12136 * keyboard.c (mark_kboards): Update calls to mark_object.
12137
12138 2003-07-06 Jason Rumney <jasonr@gnu.org>
12139
12140 * alloc.c (struct ablock): Only include padding when there is some.
12141
12142 2003-07-04 Stefan Monnier <monnier@cs.yale.edu>
12143
12144 * alloc.c (ALIGN): Add casts to simplify usage.
12145 (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
12146 (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
12147 (struct ablock, struct ablocks): New types.
12148 (free_ablock): New global var.
12149 (lisp_align_malloc, lisp_align_free): New functions.
12150 (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
12151 (struct float_block): Reorder and add gcmarkbits.
12152 (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
12153 (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
12154 (init_float, make_float): Use lisp_align_malloc.
12155 (free_float, live_float_p): Don't use `type' any more.
12156 (make_float): Use FLOAT_UNMARK to access to mark bit.
12157 (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
12158 Use FLOAT_MARKED_P to access the mark bit.
12159 (pure_alloc): Simplify use of ALIGN.
12160 (mark_object): Use FLOAT_MARK to access the mark bit.
12161 (gc_sweep): Use new macros to access the float's mark bit.
12162 (init_alloc_once): Init free_ablock.
12163
12164 * lisp.h (struct Lisp_Float): Remove unused field `type'.
12165
12166 2003-06-27 Stefan Monnier <monnier@cs.yale.edu>
12167
12168 * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
12169 (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
12170 (allocate_buffer): Move.
12171 (string_bytes): Don't mask markbit of `size_byte'.
12172 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
12173 (mark_object, mark_buffer, survives_gc_p, gc_sweep):
12174 Use the `size' field of buffers (rather than the `name' field) for
12175 the mark bit, as is done for all other vectorlike objects.
12176 Use the new macros to access the mark bit of vectorlike objects.
12177
12178 2003-06-26 Richard M. Stallman <rms@gnu.org>
12179
12180 * puresize.h (BASE_PURESIZE): Increment base size.
12181
12182 * xdisp.c (fast_find_position): Enable Gerd's new definition.
12183
12184 * xterm.c (xim_initialize): Undo previous change.
12185
12186 2003-06-26 Stefan Monnier <monnier@cs.yale.edu>
12187
12188 * alloc.c (survives_gc_p): Simplify.
12189
12190 * buffer.c (set_buffer_internal_1): Test CONSP for lists.
12191
12192 * window.c (Fset_window_dedicated_p): Simplify.
12193 (display_buffer_1): Don't raise the win from which minibuf was entered.
12194 (temp_output_buffer_show): Don't assume BEG == 1. Simplify.
12195 (Fminibuffer_selected_window): Simplify.
12196
12197 * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
12198
12199 * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
12200 (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
12201
12202 * insdel.c (check_markers, adjust_markers_for_delete)
12203 (adjust_markers_for_insert, adjust_markers_for_replace)
12204 (prepare_to_modify_buffer, RESTORE_VALUE):
12205 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
12206 (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
12207 (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
12208 * alloc.c (Fmake_marker, free_marker, gc_sweep):
12209 * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
12210 * editfns.c (save_excursion_restore, transpose_markers):
12211 * window.c (delete_window):
12212 * xdisp.c (message_dolog): Update for new types.
12213
12214 2003-06-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12215
12216 * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
12217 (realize_default_face): Use default_face_done_p for the force_p
12218 argument to set_lface_from_font_name. Set default_face_done_p to one.
12219
12220 * frame.c (make_frame): Initialize default_face_done_p.
12221
12222 * frame.h (struct frame): Add default_face_done_p.
12223
12224 * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
12225 will be defined.
12226
12227 2003-06-25 Stefan Monnier <monnier@cs.yale.edu>
12228
12229 * alloc.c (make_interval, Fmake_symbol, allocate_misc):
12230 Initialize the new field `gcmarkbit'.
12231 (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
12232 (mark_interval_tree): Don't mark the tree separately from the nodes.
12233 (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
12234 (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
12235 (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
12236
12237 * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
12238 (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
12239 (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
12240 (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
12241 (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
12242
12243 2003-06-24 Dave Love <fx@gnu.org>
12244
12245 * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
12246
12247 * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux. Merge changes
12248 from gnulib.
12249
12250 2003-06-21 Richard M. Stallman <rms@gnu.org>
12251
12252 * fileio.c (Fwrite_region): Alternate messages
12253 for append and partial write.
12254
12255 * keyboard.c (read_key_sequence): When converting upcase fn key to
12256 downcase, update fkey and keytran so `backspace' gets translated.
12257
12258 * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
12259
12260 * process.c (wait_reading_process_input): Don't signal SIGIO
12261 in batch mode.
12262
12263 2003-06-17 Kenichi Handa <handa@m17n.org>
12264
12265 * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
12266 composite.h.
12267
12268 * xselect.c: Don't include charset.h, coding.h, composite.h.
12269 (Qforeign_selection): New variable.
12270 (syms_of_xselect): Intern and static it.
12271 (selection_data_to_lisp_data): Return a unibyte string made from
12272 data with `foreign-selection' text property.
12273
12274 2003-06-15 Stefan Monnier <monnier@cs.yale.edu>
12275
12276 * termhooks.h (EVENT_INIT): New macro.
12277
12278 * keyboard.c (mark_kboards): Move from alloc.c. Mark kbd_buffer.
12279
12280 * alloc.c (mark_kboards): Move to keyboard.c.
12281
12282 * keyboard.c (record_asynch_buffer_change, read_avail_input):
12283 * xterm.c (x_dispatch_event):
12284 * xmenu.c (find_and_call_menu_selection):
12285 * xdisp.c (handle_tool_bar_click):
12286 * w32menu.c (menubar_selection_callback):
12287 * sysdep.c (kbd_input_ast, read_input_waiting):
12288 * msdos.c (dos_rawgetc):
12289 * macterm.c (mac_check_for_quit_char):
12290 * macmenu.c (menubar_selection_callback):
12291 * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
12292 data to kbd_buffer_store_event.
12293
12294 2003-06-15 Kim F. Storm <storm@cua.dk>
12295
12296 * xdisp.c (x_fix_overlapping_area): Always use area relative X
12297 to fix redisplay problem with tall characters (such as \e,AC\e(B).
12298
12299 2003-06-13 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
12300
12301 * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
12302
12303 2003-06-12 Kenichi Handa <handa@m17n.org>
12304
12305 * fileio.c (Fwrite_region): Save and restore restriction.
12306
12307 2003-06-12 Dave Love <fx@gnu.org>
12308
12309 * alloca.c (alloca): Declare arg as size_t.
12310
12311 * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
12312 Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
12313
12314 2003-06-11 Dave Love <fx@gnu.org>
12315
12316 * search.c (shrink_regexp_cache): Use xrealloc.
12317 (syms_of_search): Use xmalloc.
12318
12319 2003-06-10 Kim F. Storm <storm@cua.dk>
12320
12321 * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
12322 Adjust phys_cursor.x to be relative to window box, rather than
12323 text area before checking -- to ensure cursor is redrawn when
12324 exposing window.
12325 Note: This also fixes a similar (older) bug if display margins
12326 are present.
12327
12328 2003-06-06 Kenichi Handa <handa@m17n.org>
12329
12330 * coding.c (encoding_buffer_size): If coding->type is
12331 coding_type_ccl, double magnification on CRLF encoding.
12332
12333 2003-06-06 Jason Rumney <jasonr@gnu.org>
12334
12335 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
12336 (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
12337
12338 * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
12339 Mac too.
12340
12341 2003-06-05 Dave Love <fx@gnu.org>
12342
12343 * strftime.c: Merge changes from gnulib.
12344
12345 * mktime.c (__mktime_internal): Merge changes from gnulib
12346 involving year 69 and dst2.
12347
12348 Changes to merge with gnulib version and be consistent with the
12349 autoconf test:
12350
12351 * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
12352 Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
12353 [HAVE_LOCALE_H]: Include locale.h.
12354 (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
12355
12356 2003-06-05 Kim F. Storm <storm@cua.dk>
12357
12358 * window.c (coordinates_in_window): Convert X and Y to window
12359 relative coordinates inside mode-line and header-line parts.
12360 Convert X and Y to margin area relative coordinates inside left
12361 and right display margin parts.
12362
12363 2003-06-05 Jason Rumney <jasonr@gnu.org>
12364
12365 * w32fns.c (add_system_logical_colors_to_map): New function.
12366 (Fx_open_connection): Use it.
12367
12368 2003-06-04 Stefan Monnier <monnier@cs.yale.edu>
12369
12370 * process.c (allocate_pty): Revert part of the previous patch.
12371 (Faccept_process_output): Simplify.
12372
12373 2003-06-04 Jason Rumney <jasonr@gnu.org>
12374
12375 * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
12376
12377 * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
12378 (lispy_mouse_wheel_names): Remove.
12379 (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
12380 Always define drag_and_drop_syms.
12381
12382 * macterm.c (XTread_socket): Map mouse wheel events to Emacs
12383 WHEEL_EVENT events.
12384
12385 2003-06-03 Stefan Monnier <monnier@cs.yale.edu>
12386
12387 * xdisp.c (update_tool_bar): Add missing UNGCPRO.
12388
12389 * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
12390
12391 2003-06-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12392
12393 * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
12394 menu item label.
12395
12396 2003-06-03 Richard M. Stallman <rms@gnu.org>
12397
12398 * window.c (Fwindow_edges): Doc fix.
12399 (Fwindow_pixel_edges, Fwindow_inside_edges)
12400 (Fwindow_inside_pixel_edges): New functions.
12401 (syms_of_window): defsubr them.
12402
12403 * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
12404 (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
12405
12406 2003-06-02 Stefan Monnier <monnier@cs.yale.edu>
12407
12408 * dispnew.c (Fsit_for): Don't lie about the number of args.
12409
12410 2003-06-02 Dave Love <fx@gnu.org>
12411
12412 * callproc.c: Use HAVE_FCNTL_H, not USG5.
12413 (syms_of_callproc) <process-environment>: Doc fix.
12414
12415 * doc.c: Use HAVE_FCNTL_H, not USG5.
12416
12417 * xfaces.c (font_rescale_ratio): Fix for K&R.
12418
12419 * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
12420
12421 * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
12422
12423 * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
12424
12425 * gtkutil.c: Include keyboard.h, charset.h, coding.h.
12426 (xg_create_frame_widgets): Use ENCODE_UTF_8.
12427
12428 * xterm.c (Qutf_8): Move to coding.c
12429
12430 * xmenu.c (ENCODE_MENU_STRING): New.
12431 (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
12432 Use it.
12433
12434 * coding.h (ENCODE_UTF_8): New.
12435 (Qutf_8): Declare.
12436
12437 * coding.c (Qutf_8): New.
12438 (syms_of_coding): Intern it.
12439
12440 * fns.c: Doc fixes.
12441
12442 2003-06-02 Kenichi Handa <handa@m17n.org>
12443
12444 * buffer.c (Fset_buffer_multibyte): Fix previous change.
12445
12446 2003-06-01 Stefan Monnier <monnier@cs.yale.edu>
12447
12448 * lread.c (openp): Make sure STR is a string.
12449
12450 2003-06-01 David Ponce <david@dponce.com>
12451
12452 * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
12453 Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
12454
12455 * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
12456 (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
12457 (discard_mouse_events): Discard WHEEL_EVENT events too.
12458 (lispy_wheel_names, wheel_syms): New.
12459 (syms_of_keyboard): Init and staticpro `wheel_syms'. Init and
12460 staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
12461 (make_lispy_event): Add WHEEL_EVENT handler.
12462
12463 * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
12464 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
12465 WHEEL_EVENT events.
12466
12467 2003-05-31 John Paul Wallington <jpw@gnu.org>
12468
12469 * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
12470 timer are in lisp/emacs-lisp.
12471
12472 2003-05-31 Kenichi Handa <handa@m17n.org>
12473
12474 * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
12475 region when a buffer is changed to unibyte.
12476
12477 * charset.h (VALID_LEADING_CODE_P): New macro.
12478 (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
12479
12480 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
12481 is nonzero, accept multibyte form of eight-bit-control chars.
12482 (decode_composition_emacs_mule): Likewise.
12483 (decode_coding_emacs_mule): Likewise.
12484 (encode_coding_emacs_mule): If coding->flags is nonzero, produce
12485 multibyte form of eight-bit-control chars.
12486
12487 * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
12488 (Finsert_file_contents): If coding-system-for-read is bound to
12489 Qauto_save_coding, use the coding system emacs-mule with special
12490 setting for recovering a file.
12491 (choose_write_coding_system): On auto saving, use the coding
12492 system emacs-mule with special setting for auto saving.
12493 (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
12494
12495 2003-05-30 Kenichi Handa <handa@m17n.org>
12496
12497 * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
12498 properly before calling ccl_driver.
12499
12500 * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
12501
12502 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
12503 (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
12504 (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
12505
12506 2003-05-29 Glenn Morris <gmorris@ast.cam.ac.uk>
12507
12508 * xfaces.c (realize_default_face): Do not abort if lface is
12509 non-existent - reverts change from 2003-05-19.
12510
12511 2003-05-29 Kenichi Handa <handa@m17n.org>
12512
12513 * coding.c (decode_coding_iso2022): Pay attention to the byte
12514 sequence of CTEXT extended segment, and retain those bytes as is.
12515
12516 2003-05-28 Kenichi Handa <handa@m17n.org>
12517
12518 * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
12519 of CODING_REPLACEMENT_CHARACTER.
12520 (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
12521 CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
12522 check this flag on encoding.
12523 (encode_coding_sjis_big5):
12524 Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
12525 (Fset_terminal_coding_system_internal):
12526 Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
12527 instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
12528
12529 * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
12530 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
12531 (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
12532
12533 2003-05-28 Richard M. Stallman <rms@gnu.org>
12534
12535 * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
12536
12537 * eval.c (unbind_to): Move init of this_binding to separate statement.
12538
12539 2003-05-28 Kim F. Storm <storm@cua.dk>
12540
12541 * xdisp.c (expose_window): Fix error in calculation of
12542 window relative coordinates of area to redisplay.
12543
12544 2003-05-27 Jason Rumney <jasonr@gnu.org>
12545
12546 * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
12547
12548 2003-05-27 David Ponce <david@dponce.com>
12549
12550 Handle W32 mouse wheel events as mouse click events, like in X.
12551
12552 * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
12553 MOUSE_WHEEL_EVENT anymore.
12554
12555 * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
12556 Scrolling down/up the mouse wheel is respectively mapped to mouse
12557 button 4 and 5.
12558 (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
12559 MOUSE_CLICK_EVENT events. Forward w32 MSH_MOUSEWHEEL events as
12560 WM_MOUSEWHEEL events.
12561
12562 2003-05-27 Andreas Schwab <schwab@suse.de>
12563
12564 * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
12565
12566 * xdisp.c (try_window_id): Avoid aborting if PT is inside a
12567 partially visible line.
12568
12569 * alloc.c (Fgarbage_collect): Fix last change.
12570
12571 2003-05-26 John Paul Wallington <jpw@gnu.org>
12572
12573 * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
12574
12575 2003-05-25 Stefan Monnier <monnier@cs.yale.edu>
12576
12577 * window.c (Fset_window_buffer): Add type of `keep_margins'.
12578 (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
12579
12580 * window.h (window_box_text_cols): Declare.
12581
12582 * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
12583 (x_draw_vertical_border): Remove unused var `f'.
12584
12585 * xfaces.c (build_scalable_font_name): Remove `unused var
12586 pixel_size' warning.
12587
12588 * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
12589
12590 * unexelf.c (unexec): Remove `unused var n' warning.
12591
12592 * strftime.c (my_strftime_localtime_r): Remove `defined but
12593 unused' warning.
12594
12595 * process.c (allocate_pty): Remove `unused var stb' and
12596 `cp might be used uninitialized' warnings.
12597
12598 * dispnew.c (mode_line_string): Remove unused var `f'.
12599
12600 * coding.c (find_safe_codings): Remove unused var `i'.
12601
12602 * bytecode.c (Fbyte_code): Remove `unused val' warning.
12603
12604 * buffer.c (Fkill_buffer): Remove unused var `list'.
12605
12606 * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
12607
12608 2003-05-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
12609
12610 * frame.c (make_frame): Condition want_fullscreen with
12611 HAVE_WINDOW_SYSTEM.
12612
12613 2003-05-25 Juanma Barranquero <lektu@terra.es>
12614
12615 * window.c (Fset_window_scroll_bars): Fix typo in argument name.
12616 (Fwindow_scroll_bars): Fix typo in docstring.
12617
12618 2003-05-24 Kim F. Storm <storm@cua.dk>
12619
12620 The following changes serve several purposes:
12621
12622 1) Swap the position of fringes and display margins in windows, i.e.
12623 the fringes are now displayed between the margins and the text area
12624 (by default).
12625
12626 2) Allow fringe and scroll bar parameters to be set per-buffer and
12627 per-window (like display margins). Such settings are now stored
12628 in window configurations, preserved when frames are resized, and
12629 copied when windows are split vertically or horizontally.
12630 Several bugs related to display margins have been fixed.
12631
12632 3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
12633
12634 4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
12635 rather than FRAME_WIDTH (FRAME_FONT (f)).
12636
12637 5) Introduce a consistent naming of variables, members and macros
12638 depending on whether their value is measured in pixels or in
12639 canonical columns/lines. Pixel dimensions are named *_width and
12640 *_height, while canonical columns/lines are named *_cols and
12641 *_lines. Pixel positions are named *_x and *_y, while column/line
12642 positions are named *_col and *_line.
12643
12644 6) Consolidate more of the X, W32, and MAC gui code by moving
12645 common data into struct frame, and generalize it for the non-gui
12646 case by using suitable defaults.
12647
12648 7) Cleanup and consolidate the macros controlling frame and window
12649 layout into frame.h and window.h, and generalize the use of the
12650 various window_box_* functions (enhanced to handle the new fringe
12651 position and the per-window fringe and scroll bar settings).
12652
12653 * frame.h (struct frame): Rename members height to text_lines,
12654 width to text_cols, window_height to total_lines, window_width to
12655 total_cols, new_height to new_text_lines, new_width to
12656 new_text_cols. All uses changed.
12657 (struct frame): New members which consolidate common members of
12658 x_output, w32_output, and mac_output structures: left_pos,
12659 top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
12660 win_gravity, size_hint_flags, border_width, internal_border_width,
12661 line_height, fringe_cols, left_fringe_width, right_fringe_width,
12662 want_fullscreen. All uses changed.
12663 (struct frame): New member column_width contaning the canonical
12664 column width, analogue to line_height. All uses changed.
12665 (struct frame): Rename members scroll_bar_pixel_width to
12666 config_scroll_bar_width, and scroll_bar_cols to
12667 config_scroll_bar_cols. All uses changed.
12668 (struct frame): New member scroll_bar_actual_width which
12669 consolidates and renames the vertical_scroll_bar_extra member of
12670 x_output, w32_output, and mac_output structures. All uses changed.
12671 (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
12672 from x/w32/macterm.h files. All uses changed. Also change code
12673 which referred to f->output_data...->pixel_height.
12674 (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
12675 from x/w32/macterm.h files. All uses changed. Also change code
12676 which referred to f->output_data...->pixel_width.
12677 (FRAME_LINES): Rename from FRAME_HEIGHT. All uses changed.
12678 Also change code which referred to f->height.
12679 (FRAME_COLS): Rename from FRAME_WIDTH. All uses changed.
12680 Also change code which referred to f->width.
12681 (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
12682 to update new_text_lines and new_text_cols members directly.
12683 (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
12684 FRAME_SCROLL_BAR_PIXEL_WIDTH. All uses changed.
12685 (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
12686 FRAME_SCROLL_BAR_COLS. All uses changed.
12687 (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
12688 Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
12689 FRAME_RIGHT_SCROLL_BAR_WIDTH, resp. All uses changed.
12690 (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
12691 (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
12692 (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
12693 (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
12694 (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
12695 (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
12696 (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
12697 (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
12698 Unconditionally return line_height member (it now has proper value
12699 also for non-window frames).
12700 (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT. Unconditionally
12701 return new column_width member (rather than the default font width).
12702 (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
12703 (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
12704 from x/w32/macterm.h files. Unconditionally return corresponding
12705 member of frame structure (they now have proper values also for
12706 non-window frames).
12707 (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
12708 Calculate return value from left and right widths.
12709 (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
12710 internal_border_width member (has proper value for non-window frame).
12711 (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
12712 (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
12713 (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
12714 (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
12715 (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
12716 consolidated from xterm.h, macterm.h, and w32term.h.
12717 (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
12718 consolidated from xterm.h, macterm.h, and w32term.h.
12719 (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
12720 CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
12721 (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
12722 CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
12723 (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
12724 consolidated from x/mac/w32term.h.
12725 (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
12726 consolidated from x/mac/w32term.h.
12727 (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
12728 PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
12729 (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
12730 PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
12731
12732 * window.h (struct window): Rename members left to left_col,
12733 top to top_line, height to total_lines, width to total_cols,
12734 left_margin_width to left_margin_cols, right_margin_width to
12735 right_margin_cols, orig_height to orig_total_lines, orig_top to
12736 orig_top_line. All uses changed.
12737 (struct window): New members left_fringe_width, right_fringe_width,
12738 fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
12739 (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
12740 New macros primarily used to simplify other macros.
12741 (WINDOW_TOTAL_COLS): New macro. Change relevant code that
12742 referred to XINT (w->width).
12743 (WINDOW_TOTAL_LINES): New macro. Change relevant code that
12744 referred to XINT (w->height).
12745 (WINDOW_TOTAL_WIDTH): New macro. Change relevant code that
12746 referred to XINT (w->width) * canon_x_unit.
12747 (WINDOW_TOTAL_HEIGHT): New macro. Change relevant code that
12748 referred to XINT (w->height) * canon_y_unit.
12749 (WINDOW_LEFT_EDGE_COL): New macro. Change relevant code that
12750 referred to XINT (w->left).
12751 (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE. Change
12752 all uses and code that referred to XINT (w->left) + XINT (w->width).
12753 (WINDOW_TOP_EDGE_LINE): New macro. Change relevant code that
12754 referred to XINT (w->top).
12755 (WINDOW_BOTTOM_EDGE_LINE): New macro. Change relevant code that
12756 referred to XINT (w->top) + XINT (w->height).
12757 (WINDOW_LEFT_EDGE_X): New macro. Change relevant code that
12758 referred to XINT (w->left) * canon_x_unit.
12759 (WINDOW_RIGHT_EDGE_X): New macro. Change relevant code that
12760 referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
12761 (WINDOW_TOP_EDGE_Y): New macro. Change relevant code that
12762 referred to XINT (w->top) * canon_y_unit.
12763 (WINDOW_BOTTOM_EDGE_Y): New macro. Change relevant code that
12764 referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
12765 (WINDOW_LEFTMOST_P): New macro.
12766 (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
12767 All uses changed.
12768 (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
12769 All uses changed.
12770 (WINDOW_BOX_LEFT_EDGE_X): Rename from
12771 WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
12772 Do not exclude left fringe width.
12773 (WINDOW_BOX_RIGHT_EDGE_X): Rename from
12774 WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
12775 Do not exclude fringe widths.
12776 (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
12777 (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
12778 Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
12779 FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
12780 FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
12781 (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
12782 (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
12783 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
12784 (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
12785 (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
12786 New macros. Change code which referenced corresponding
12787 FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
12788 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
12789 FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
12790 FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
12791 allow per-window scroll-bar settings.
12792 (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
12793 (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro. Change code that
12794 referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
12795 (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro. Change code
12796 that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
12797 FRAME_SCROLL_BAR_WIDTH.
12798 (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
12799 (WINDOW_SCROLL_BAR_AREA_X): New macros.
12800 (WINDOW_HEADER_LINE_HEIGHT): Rename from
12801 WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
12802 (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
12803 WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
12804 (WINDOW_BOX_TEXT_HEIGHT): Rename from
12805 WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
12806 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
12807 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
12808 (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
12809 (WINDOW_LEFT_MARGIN_WIDTH): Rename from
12810 WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
12811 (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
12812 WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
12813 (window_from_coordinates): Update prototype.
12814 (Fset_window_buffer): Update EXFUN.
12815 (set_window_buffer): Update prototype.
12816
12817 * dispextern.h (struct glyph_matrix): Rename members window_left_x
12818 to window_left_col, window_top_y to window_top_line. All uses
12819 changed.
12820 (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
12821 use FRAME_INTERNAL_BORDER_WIDTH macro instead as
12822 internal_border_width is now set to 0 for non-window frames.
12823 (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
12824 (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
12825 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
12826 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
12827 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
12828 (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
12829 (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
12830 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
12831 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
12832 Move to window.h and renamed [see window.h changes].
12833 (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
12834 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
12835 (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
12836 Use WINDOW_TOTAL_LINES.
12837 (frame_update_line_height): Remove prototype.
12838
12839 * buffer.h (struct buffer): Rename members measured in columns:
12840 left_margin_width to left_margin_cols, right_margin_width to
12841 right_margin_cols. All uses changed.
12842 New members left_fringe_width, right_fringe_width,
12843 fringes_outside_margins for per-buffer fringe settings.
12844 New members scroll_bar_width and vertical_scroll_bar_type for
12845 per-buffer scroll bar settings.
12846
12847 * buffer.c (init_buffer_once): Set buffer_defaults and
12848 buffer_local_flags for new buffer-local variables
12849 left_fringe_width, right_fringe_width, fringes_outside_margins,
12850 scroll_bar_width, and vertical_scroll_bar_type.
12851 (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
12852 default-* variables for them.
12853
12854 * dispnew.c: Make (many) trivial substitutions for renamed and
12855 new macros in dispextern.h, frame.h and window.h.
12856 (mode_line_string): No need to adjust width for mode lines, as it
12857 is already adjusted by the caller.
12858 (marginal_area_string): Handle fringes inside/outside margins.
12859
12860 * frame.c: Make (many) trivial substitutions for renamed and
12861 new macros in dispextern.h, frame.h and window.h.
12862 (make_frame): Initialize left_fringe_width, right_fringe_width,
12863 fringe_cols, scroll_bar_actual_width, border_width,
12864 internal_border_width, column_width, line_height, x_pixels_diff,
12865 y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
12866 members with values suitable for a non-window frames.
12867
12868 * gtkutil.c: Make (many) trivial substitutions for renamed and
12869 new macros in dispextern.h, frame.h and window.h.
12870
12871 * indent.c: Make (few) trivial substitutions for renamed and
12872 new macros in dispextern.h, frame.h and window.h.
12873
12874 * keyboard.c: Make (many) trivial substitutions for renamed and
12875 new macros in dispextern.h, frame.h and window.h.
12876 (make_lispy_event): Use window positions returned from
12877 window_from_coordinates when constructing the lisp event for
12878 MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
12879 (incorrect) values locally.
12880 (make_lispy_movement): Use window positions returned from
12881 window_from_coordinates when constructing the lisp event, rather
12882 than calculating (incorrect) values locally.
12883
12884 * scroll.c: Make (some) trivial substitutions for renamed and
12885 new macros in dispextern.h, frame.h and window.h.
12886
12887 * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
12888 scroll-bars.
12889
12890 * sysdep.c: Make (few) trivial substitutions for renamed and
12891 new macros in dispextern.h, frame.h and window.h.
12892
12893 * term.c: Make (some) trivial substitutions for renamed and
12894 new macros in dispextern.h, frame.h and window.h.
12895
12896 * widget.c: Make (few) trivial substitutions for renamed and
12897 new macros in dispextern.h, frame.h and window.h.
12898
12899 * window.c: Make (many) trivial substitutions for renamed and
12900 new macros in dispextern.h, frame.h and window.h.
12901 (make_window): Initialize new members
12902 left_margin_cols, right_margin_cols, left_fringe_width,
12903 right_fringe_width, fringes_outside_margins, scroll_bar_width,
12904 and vertical_scroll_bar_type.
12905 (coordinates_in_window): Adapt to new fringe/margin positions
12906 and per-window fringes and scroll-bars.
12907 Fix bug related to incorrectly adjusting coordinates by
12908 frame's internal_border_width (the effect normally negible since
12909 the internal_border_width is typically 0 or 1 pixel, but very
12910 noticeable for an internal_border_width of e.g. 25 pixels).
12911 Upon successful return (other than ON_NOTHING), the coordinates
12912 are now always properly converted to window relative for the
12913 given display element.
12914 (window_from_coordinates): Add new parameters wx and wy to
12915 return the window relative x and y position in the returned
12916 window and part. A null arg means, don't return the position.
12917 All callers changed.
12918 (adjust_window_margins): New function which may reduce the width
12919 of the display margins if a window's text area is too small after
12920 resizing or splitting windows.
12921 (size_window): Fix bug that did not account for display margin
12922 widths when checking the minimum width of a window; use
12923 adjust_window_margins.
12924 (set_window_buffer): Call Fset_window_fringes and
12925 Fset_window_scroll_bars to setup per-window elements.
12926 Add new arg KEEP_MARGINS_P. Non-nil means to keep window's
12927 existing display margin, fringe widths, and scroll bar settings
12928 (e.g. after splitting a window or resizing the frame).
12929 All callers changed.
12930 (Fset_window_buffer): New arg KEEP_MARGINS. All callers changed.
12931 (Fsplit_window): Duplicate original window's display margin,
12932 fringe, and scroll-bar settings; then call Fset_window_buffer with
12933 KEEP_MARGINS non-nil. This fixes a bug which caused a split
12934 window to only preserve the display margins in one of the windows.
12935 When splitting horizontally, call adjust_window_margins on both
12936 windows to ensure that the text area of the new windows is non too
12937 narrow. This fixes a bug which could cause Emacs to trap if the
12938 width of the split window was less than the width of the display
12939 margins.
12940 (window_box_text_cols): Rename from window_internal_width.
12941 All uses changed. Adapt to per-window fringes and scroll bars.
12942 Fix bug that caused vertical separator to be subtracted also on
12943 window frames. Fix another bug that did not reduce the returned
12944 value by the columns used for display margins.
12945 (window_scroll_line_based): Fix bug related to scrolling too much
12946 when display margins are present (implicitly fixed by the fix to
12947 window_box_text_cols).
12948 (scroll_left, scroll_right): Fix bug related to scrolling too far
12949 by default when display margins are present (implicitly fixed by
12950 the fix to window_box_text_cols).
12951 (struct saved_window): Rename members left to left_col, top to
12952 top_line, width to total_cols, height to total_lines, orig_top to
12953 orig_top_line, orig_height to orig_total_lines. All uses changed.
12954 New members left_margin_cols, right_margin_cols,
12955 left_fringe_width, right_fringe_width, fringes_outside_margins,
12956 scroll_bar_width, and vertical_scroll_bar_type for saving
12957 per-window display elements.
12958 (Fset_window_configuration): Restore display margins, fringes,
12959 and scroll bar settings. This fixes a bug which caused display
12960 margins to be discarded when saving and restoring a window
12961 configuration.
12962 (save_window_save): Save display margins, fringes, and scroll bar
12963 settings. This fixes a bug which caused display margins to be
12964 discarded when saving and restoring a window configuration.
12965 (Fset_window_margins): Do nothing if display margins are not
12966 really changed. Otherwise, call adjust_window_margins to ensure
12967 the text area doesn't get too narrow. This fixes a bug which
12968 could cause Emacs to trap if setting display margins wider than
12969 the width of the window.
12970 (Fset_window_fringes): New defun to allow user to specifically set
12971 this window's fringe widths and position vs. display margins.
12972 (Fwindow_fringes): New defun to return window's actual fringe settings.
12973 (Fset_window_scroll_bars): New defun to allow user to specifically
12974 set this window's scroll bar width and position.
12975 (Fwindow_scroll_bars): New defun to return window's actual scroll
12976 bar settings.
12977 (compare_window_configurations): Also compare display margins,
12978 fringes, and scroll bar settings.
12979 (syms_of_window): Defsubr new defuns for fringe and scroll bars.
12980
12981 * xdisp.c: Make (many) trivial substitutions for renamed and
12982 new macros in dispextern.h, frame.h and window.h.
12983 (window_box_width): Adapt to per-window fringes and scroll bars,
12984 and new fringe vs. display margin position. Note that returned
12985 value is no longer guaranteed to be a whole multiple of the frame
12986 column width, since per-window fringes may now be any width.
12987 (window_box_left_offset): New function like window_box_left, but
12988 value is relative to left border of window (rather than frame).
12989 (window_box_right_offset): New function like window_box_right,
12990 but value is relative to left border of window.
12991 (window_box_left): Adapt to per-window fringes and scroll bars,
12992 and new fringe vs. display margin position. Simplify by using
12993 WINDOW_LEFT_EDGE_X and window_box_left_offset.
12994 (window_box): Allow null args for unnecessary return values;
12995 change/simplify relevant callers.
12996 (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
12997 and new fringe vs. display margin position.
12998 Use window_box_left_offset and window_box_right_offset
12999 (get_glyph_string_clip_rect): Adapt to per-window fringes and
13000 scroll bars, and new fringe vs. display margin position.
13001 Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
13002 (draw_fringe_bitmap): Rework to handle per-window fringes and new
13003 fringe vs. display margin position.
13004 (hscroll_window_tree): Use window_box_width instead of window_box.
13005 (redisplay_window): Adapt to per-window scroll bars.
13006 (draw_glyphs): Rework to handle per-window fringes and scroll
13007 bars, and new fringe vs. display margin position.
13008 Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
13009 (x_clear_end_of_line): Adapt to per-window fringes and scroll
13010 bars, and new fringe vs. display margin position. Fix bug which
13011 increased total width of full_width rows by width of scroll bars
13012 although window's total width already includes that.
13013 (x_fix_overlapping_area): Simplify using window_box_left_offset.
13014 (expose_area): Simplify using window_box_left_offset.
13015 (x_draw_vertical_border): Handle per-window scroll bar settings,
13016 mixing windows with left, right and no scroll bars.
13017
13018 * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
13019 where it's used in x_list_fonts (for clarity).
13020 (frame_update_line_height): Remove unused function; functionality
13021 is now done directly when setting the default font in x_set_font.
13022
13023 * xfns.c: Make (many) trivial substitutions for renamed and
13024 new macros in dispextern.h, frame.h and window.h.
13025
13026 * xmenu.c: Make (some) trivial substitutions for renamed and
13027 new macros in dispextern.h, frame.h and window.h.
13028
13029 * xterm.h (struct x_output): Move members left_pos, top_pos,
13030 border_width, pixel_height, pixel_width, line_height,
13031 internal_border_width, vertical_scroll_bar_extra,
13032 left_fringe_width, right_fringe_width, fringe_cols,
13033 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
13034 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
13035 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
13036 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
13037 (PIXEL_WIDTH, PIXEL_HEIGHT)
13038 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
13039 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
13040 frame.h and renamed [see frame.h changes].
13041 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
13042 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
13043 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
13044 and renamed [see frame.h changes].
13045
13046 * xterm.c: Make (several) trivial substitutions for renamed and
13047 new macros in dispextern.h, frame.h and window.h.
13048 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
13049 (scroll_run): Adapt to new fringe position.
13050 (glyph_rect): Use window coordinates returned from
13051 window_from_coordinates rather than frame_to_window_pixel_xy.
13052 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
13053 scroll-bars.
13054 (handle_one_xevent): Simplify a USE_GTK conditional.
13055 (x_clip_to_row): Remove superfluous whole_line_p arg and code
13056 (fringes are now inside margins, i.e. always in the clipping area).
13057 All callers changed.
13058 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
13059 directly, then call compute_fringe_widths. Don't call
13060 frame_update_line_height.
13061
13062 * w32term.h (struct w32_output): Move members left_pos, top_pos,
13063 border_width, pixel_height, pixel_width, line_height,
13064 internal_border_width, vertical_scroll_bar_extra,
13065 left_fringe_width, right_fringe_width, fringe_cols,
13066 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
13067 x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
13068 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
13069 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
13070 (PIXEL_WIDTH, PIXEL_HEIGHT)
13071 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
13072 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
13073 frame.h and renamed [see frame.h changes].
13074 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
13075 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
13076 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
13077 and renamed [see frame.h changes].
13078
13079 * w32term.c: Make (several) trivial substitutions for renamed and
13080 new macros in dispextern.h, frame.h and window.h.
13081 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
13082 (glyph_rect): Use window coordinates returned from
13083 window_from_coordinates rather than frame_to_window_pixel_xy.
13084 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
13085 scroll-bars.
13086 (w32_clip_to_row): Remove superfluous whole_line_p arg and code
13087 (fringes are now inside margins, i.e. always in the clipping area).
13088 All callers changed.
13089 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
13090 directly, then call compute_fringe_widths. Don't call
13091 frame_update_line_height.
13092
13093 * w32console.c: Make (few) trivial substitutions for renamed and
13094 new macros in dispextern.h, frame.h and window.h.
13095
13096 * w32fns.c: Make (many) trivial substitutions for renamed and
13097 new macros in dispextern.h, frame.h and window.h.
13098
13099 * w32menu.c: Make (few) trivial substitutions for renamed and
13100 new macros in dispextern.h, frame.h and window.h.
13101
13102 * macterm.h (struct mac_output): Move members left_pos, top_pos,
13103 border_width, pixel_height, pixel_width, line_height,
13104 internal_border_width, vertical_scroll_bar_extra,
13105 left_fringe_width, right_fringe_width, fringe_cols,
13106 fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
13107 x_pixels_diff, y_pixels_diff to struct frame (frame.h).
13108 (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
13109 (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
13110 (PIXEL_WIDTH, PIXEL_HEIGHT)
13111 (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
13112 (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
13113 frame.h and renamed [see frame.h changes].
13114 (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
13115 (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
13116 (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
13117 and renamed [see frame.h changes].
13118
13119 * macterm.c: Make (several) trivial substitutions for renamed and
13120 new macros in dispextern.h, frame.h and window.h.
13121 (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
13122 (glyph_rect): Use window coordinates returned from
13123 window_from_coordinates rather than frame_to_window_pixel_xy.
13124 (XTset_vertical_scroll_bar): Adapt to per-window fringes and
13125 scroll-bars.
13126 (x_clip_to_row): Remove superfluous whole_line_p arg and code
13127 (fringes are now inside margins, i.e. always in the clipping area).
13128 All callers changed.
13129 (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
13130 directly, then call compute_fringe_widths. Don't call
13131 frame_update_line_height.
13132
13133 * macfns.c: Make (several) trivial substitutions for renamed and
13134 new macros in dispextern.h, frame.h and window.h.
13135 (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
13136
13137 * macmenu.c: Make (few) trivial substitutions for renamed and
13138 new macros in dispextern.h, frame.h and window.h.
13139
13140 * msdos.h (struct x_output): Remove members left_pos, top_pos,
13141 and line_height, and use corresponding new members in struct
13142 frame. All uses changed.
13143 (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
13144 superseeded by corresponding macros in frame.h.
13145
13146 * msdos.c: Make (several) trivial substitutions for renamed and
13147 new macros in dispextern.h, frame.h and window.h.
13148 (IT_note_mouse_highlight): Use updated window coordinates returned
13149 by window_from_coordinates, rather than adjusting them locally.
13150 (internal_terminal_init): No need to initialize line_height here;
13151 it now defaults to 1.
13152
13153 2003-05-24 Stefan Monnier <monnier@cs.yale.edu>
13154
13155 * keyboard.c (read_key_sequence): Adjust fkey and keytran when
13156 dropping `down' events.
13157
13158 2003-05-24 Andreas Schwab <schwab@suse.de>
13159
13160 * coding.c (find_safe_codings): Fix last change.
13161
13162 2003-05-24 Istvan Marko <mi@imarko.dhs.org> (tiny change)
13163
13164 * xfns.c (x_window): Fix typo from 2003-05-21 change.
13165
13166 2003-05-23 Stefan Monnier <monnier@cs.yale.edu>
13167
13168 * xdisp.c (display_mode_element): Increase max depth.
13169 Simplify the error handling code. Use a different error string
13170 for the case where we hit the depth limit.
13171
13172 * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
13173
13174 * buffer.c (reset_buffer_local_variables): Remove redundant setting.
13175
13176 2003-05-21 Stefan Monnier <monnier@cs.yale.edu>
13177
13178 * intervals.c (get_local_map): Don't get char-property of previous
13179 point any more: get_pos_property already does it and better.
13180
13181 2003-05-21 Dave Love <fx@gnu.org>
13182
13183 [Merged from unicode branch.]
13184
13185 * xfns.c (x_window, x_window): Use use_xim.
13186
13187 * xterm.c (use_xim): Initialize.
13188 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
13189 (x_term_init): Maybe set use_xim.
13190
13191 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
13192
13193 2003-05-21 Jason Rumney <jasonr@gnu.org>
13194
13195 * unexw32.c (_start): Remove _fmode initialization.
13196
13197 * emacs.c (main) [WINDOWSNT]: Move it here.
13198
13199 2003-05-20 Dave Love <fx@gnu.org>
13200
13201 * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
13202
13203 2003-05-19 Richard M. Stallman <rms@gnu.org>
13204
13205 * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
13206 as value for QCfont attribute.
13207 (realize_default_face): lface should already exist; crash if not.
13208 Specify 0 for FORCE_P when calling set_lface_from_font_name.
13209
13210 * frame.c (Fignore_event): Doc fix.
13211
13212 2003-05-19 Kenichi Handa <handa@m17n.org>
13213
13214 * coding.c (decode_coding_string): Handle post-read-conversion
13215 even if the coding doesn't require decoding.
13216
13217 2003-05-18 Richard M. Stallman <rms@gnu.org>
13218
13219 * callproc.c (Fcall_process_region): Doc fix.
13220
13221 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
13222
13223 * lread.c (Fload): Print a message if package is obsolete.
13224
13225 * window.c (Fselect_window): Add optional `norecord' arg.
13226 (select_window_1): Fold into Fselect_window.
13227 (select_window_norecord): New function.
13228 (temp_output_buffer_show): Use it. Preserve current buffer.
13229
13230 * window.h (Fselect_window): Update declaration.
13231
13232 * window.c (delete_window, Fother_window, Fset_window_configuration):
13233 * minibuf.c (read_minibuf):
13234 * macterm.c (x_new_focus_frame):
13235 * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
13236 * callint.c (Fcall_interactively):
13237 * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
13238
13239 * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
13240
13241 2003-05-17 David Kastrup <dak@gnu.org>
13242
13243 * process.c (read_process_output): Back out change from 2003-03-09.
13244
13245 2003-05-17 Stefan Monnier <monnier@cs.yale.edu>
13246
13247 * editfns.c (get_pos_property): Don't assume that `object' = nil.
13248
13249 * textprop.c (text_property_stickiness): New arg `buffer'.
13250
13251 * intervals.h (text_property_stickiness): New arg `buffer'.
13252 (get_pos_property): Declare.
13253
13254 * intervals.c (get_local_map): Use get_pos_property, to obey
13255 stickiness and empty overlays.
13256 (create_root_interval, graft_intervals_into_buffer): Use BEG.
13257 (merge_properties, intervals_equal, merge_properties_sticky):
13258 Use XCAR, XCDR.
13259 (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
13260
13261 2003-05-17 Richard M. Stallman <rms@gnu.org>
13262
13263 * minibuf.c (read_minibuf): If buffer is empty, record the default
13264 in the history.
13265 (Fminibuffer_complete_word): When deleting the overlap, take account
13266 of its real position.
13267
13268 * fns.c (map_char_table): Fix previous change.
13269
13270 * syntax.c (find_defun_start):
13271 When open_paren_in_column_0_is_defun_start,
13272 return beginning of buffer.
13273
13274 * lisp.h (map_char_table): Declare added arg.
13275
13276 * fns.c (map_char_table): New arg TABLE gets the master table.
13277 All calls changed.
13278 Process default and inheritance, resorting to Faref if necessary.
13279
13280 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13281 (Faccessible_keymaps): Pass new arg to map_char_table.
13282
13283 * fontset.c (Ffontset_info): Pass new arg to map_char_table.
13284
13285 * casetab.c (set_case_table): Pass new arg to map_char_table.
13286
13287 * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
13288
13289 * lisp.h (specbinding_func): New typedef.
13290 (struct specbinding): Use specbinding_func, to put the `volatile'
13291 in the right place.
13292
13293 * alloc.c (Fgarbage_collect): Cast pointers into specpdl
13294 to avoid GCC warning.
13295
13296 2003-05-16 Ralph Schleicher <rs@nunatak.allgaeu.org>
13297
13298 * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
13299
13300 2003-05-15 Stefan Monnier <monnier@cs.yale.edu>
13301
13302 * keyboard.c (apply_modifiers): Don't fill the other cache.
13303
13304 2003-05-14 Stefan Monnier <monnier@cs.yale.edu>
13305
13306 * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
13307
13308 * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
13309 (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
13310 (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
13311 (Fset_window_configuration, Fcurrent_window_configuration)
13312 (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
13313 (Fpos_visible_in_window_p, mark_window_cursors_off)
13314 (window_internal_height, window_internal_width, Frecenter)
13315 (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
13316 (replace_buffer_in_all_windows, init_window_once, init_window)
13317 (syms_of_window, keys_of_window): Move from lisp.h.
13318 * lisp.h: Move window.c declarations to window.h.
13319
13320 * bytecode.c: Include window.h.
13321 * emacs.c: Include window.h.
13322
13323 * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
13324 (keyremap): Add `parent' field.
13325 (keyremap_step): Use it. Remove `parent' argument.
13326 (read_key_sequence): Setup and use the new `parent' field.
13327
13328 2003-05-11 Stefan Monnier <monnier@cs.yale.edu>
13329
13330 * keyboard.c (adjust_point_for_property): Ensure termination.
13331
13332 2003-05-10 Stefan Monnier <monnier@cs.yale.edu>
13333
13334 * keyboard.c (follow_key): Remove dead variable `did_meta'.
13335 (access_keymap_keyremap, keyremap_step): New funs, extracted from the
13336 duplicated handling of function-key-map and key-translation-map
13337 in read_key_sequence.
13338 (read_key_sequence): Use them.
13339
13340 * keyboard.c (adjust_point_for_property): Try harder to move point
13341 to the non-sticky end of an invisible property.
13342
13343 * xdisp.c (single_display_prop_intangible_p): Make `space' display
13344 property intangible as well.
13345
13346 2003-05-10 Andreas Schwab <schwab@suse.de>
13347
13348 * xmenu.c (single_menu_item): Change last parameter to void* to
13349 avoid warning.
13350
13351 2003-05-09 Richard M. Stallman <rms@gnu.org>
13352
13353 * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
13354 Bind Qinhibit_modification_hooks to t so there will be no GC.
13355 Rename local `tem' to `save_deactivate_mark'.
13356
13357 * eval.c (specpdl_ptr): Declare volatile.
13358 (unbind_to): Copy the whole binding and decrement specpdl_ptr
13359 before doing the work of unbinding it.
13360
13361 * lisp.h (struct specbinding): Declare elements volatile.
13362 (specpdl_ptr): Declare volatile.
13363
13364 * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
13365
13366 * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
13367 for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
13368
13369 2003-05-08 Dave Love <fx@gnu.org>
13370
13371 * coding.c (Vlast_coding_system_used): Doc fix.
13372
13373 2003-05-07 Jason Rumney <jasonr@gnu.org>
13374
13375 * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
13376 when system does not support them.
13377
13378 2003-05-05 Stefan Monnier <monnier@cs.yale.edu>
13379
13380 * fileio.c (Qwrite_region_annotate_functions): New var.
13381 (build_annotations): Use it to process the global part of the hook.
13382 (syms_of_fileio): Init and staticpro it.
13383
13384 * keyboard.c (safe_run_hooks_error): Display a message instead of
13385 silently ignoring the error.
13386
13387 2003-05-03 Stefan Monnier <monnier@cs.yale.edu>
13388
13389 * keyboard.c (input_available_signal): Mark static.
13390 (menu_bar_items): Use map_keymap.
13391 (menu_bar_one_keymap): Remove.
13392 (menu_bar_item): Adjust arglist (for use in map_keymap).
13393 Properly hide a second binding when not both are keymaps.
13394
13395 * xmenu.c (struct skp): New struct, to pass args through map_keymap.
13396 (single_keymap_panes): Use it and map_keymap.
13397 (single_menu_item): Use skp as well.
13398
13399 * keymap.h (map_keymap_function_t): New type.
13400 (map_keymap): Declare.
13401
13402 * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
13403 (map_keymap_call, Fmap_keymap): New functions.
13404 (syms_of_keymap): Defsubr map-keymap.
13405
13406 2003-05-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13407
13408 * gtkutil.c (create_dialog, make_widget_for_menu_item)
13409 (make_menu_item, create_menus, xg_update_menu_item): Don't call
13410 ..._with_mnemonic functions for menu items.
13411
13412 2003-05-01 Kenichi Handa <handa@m17n.org>
13413
13414 * coding.c (coding_system_accept_latin_extra_p): Delete this
13415 function.
13416 (find_safe_codings): Pay attention to
13417 the property tranlsation-table-for-encode of each codings.
13418 (syms_of_coding): Give Qtranslation_table the extra slot number 2.
13419
13420 2003-05-01 Stefan Monnier <monnier@cs.yale.edu>
13421
13422 * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
13423
13424 2003-04-30 Stefan Monnier <monnier@cs.yale.edu>
13425
13426 * eval.c (unbind_to): Don't handle symbol = Qnil any more.
13427
13428 * lisp.h (CHECK): Wrap args in parenthesis.
13429 (specbind): Fix doc: symbol = Qnil is not supported any more.
13430
13431 * bytecode.c (Fbyte_code) <unwind-protect>:
13432 Use Fprogn rather than 0 and Qnil.
13433
13434 * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
13435 `double', and `triple' modifiers as well.
13436
13437 2003-04-30 Richard M. Stallman <rms@gnu.org>
13438
13439 * keyboard.c (echo_char): Don't clear out a dash that follows a space.
13440
13441 * alloc.c (abort_on_gc): New variable.
13442 (Fgarbage_collect): Abort if abort_on_gc is set.
13443
13444 * lisp.h (abort_on_gc): Add decl.
13445
13446 * eval.c (Fsignal): Clear abort_on_gc.
13447
13448 * editfns.c (Fformat): Set abort_on_gc during first scan of format.
13449 Reinit FORMAT_START and END before second scan.
13450
13451 * xdisp.c (move_it_vertically_backward): Do the final big else
13452 even if nlines is 0.
13453
13454 * xdisp.c (redisplay_internal): Finish the per-frame loop
13455 even if redisplay is suspended by input.
13456
13457 2003-04-24 Andrew Choi <akochoi@shaw.ca>
13458
13459 * macterm.c (x_list_fonts): Return all fonts that match if
13460 maxnames = -1.
13461
13462 2003-04-25 Kenichi Handa <handa@m17n.org>
13463
13464 * syntax.c (skip_chars): Fix previous change.
13465
13466 2003-04-24 Kenichi Handa <handa@m17n.org>
13467
13468 * syntax.c (skip_chars): Make the code faster by using the common
13469 technique of *p, *stop, and *endp.
13470
13471 2003-04-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13472
13473 * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
13474 tool_bar_items so GTK tool bar expose callback does not access items
13475 being updated.
13476
13477 2003-04-19 Stefan Monnier <monnier@cs.yale.edu>
13478
13479 * eval.c (Fapply): Undo last change and add a comment about why.
13480
13481 2003-04-18 Miles Bader <miles@gnu.org>
13482
13483 * data.c (Faset): Calculate nbytes earlier, to satisfy the now
13484 pickier PARSE_MULTIBYTE_SEQ.
13485
13486 2003-04-17 Stefan Monnier <monnier@cs.yale.edu>
13487
13488 * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
13489 Use XCDR, XCAR, CONSP.
13490 (Fdefmacro): Fix docstring. Use XCAR, XCDR.
13491 (Fapply): Remove unnecessary GCPRO.
13492
13493 * doc.c (Fsubstitute_command_keys): Remove spurious casts.
13494
13495 * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
13496
13497 * buffer.h: Don't hardcode BEG==1.
13498
13499 * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
13500
13501 2003-04-16 Richard M. Stallman <rms@gnu.org>
13502
13503 * xdisp.c (try_window, try_window_reusing_current_matrix):
13504 When at end of window, set window_end_pos to Z-ZV.
13505
13506 * buffer.c (Foverlay_recenter): Doc fix.
13507
13508 2003-04-14 Stefan Monnier <monnier@cs.yale.edu>
13509
13510 * dispnew.c (Fsit_For): Support XEmacs-style arg list.
13511
13512 2003-04-14 Andrew Choi <akochoi@shaw.ca>
13513
13514 * macterm.c (mac_check_for_quit_char): Don't check more often than
13515 once a second.
13516
13517 2003-04-11 Stefan Monnier <monnier@cs.yale.edu>
13518
13519 * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
13520 specially, so that they can't hide an implicit switch-frame event.
13521 (make_lispy_event): Handle SELECT_WINDOW_EVENT.
13522 (head_table): Use switch-frame as event_kind for select-window.
13523 (keys_of_keyboard): Don't bind [select-window] in special-event-map.
13524
13525 * editfns.c (Fformat): Lisp_Object/int mixup.
13526 (format2): Remove unused var numargs.
13527
13528 2003-04-11 Kenichi Handa <handa@m17n.org>
13529
13530 * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
13531 (Qafter_insert_file_set_coding): New variable.
13532 (syms_of_fileio): Initialize and staticpro it. Delete declaration
13533 for after-insert-file-adjust-coding-function.
13534 (Finsert_file_contents): Call Qafter_insert_file_set_coding
13535 instead of Vafter_insert_file_adjust_coding_function.
13536
13537 2003-04-11 Kenichi Handa <handa@m17n.org>
13538
13539 * lisp.h (temp_echo_area_glyphs): Adjust prototype.
13540
13541 * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
13542 string. Callers changed.
13543
13544 2003-04-10 Kenichi Handa <handa@m17n.org>
13545
13546 * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
13547 (syms_of_fileio): Declare it as a lisp variable.
13548 (Finsert_file_contents):
13549 Call Vafter_insert_file_adjust_coding_function before calling
13550 decode-format.
13551
13552 2003-04-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13553
13554 * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
13555 get GtkAdjustment as widget now is a GtkRange.
13556
13557 * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
13558 GtkRange to avoid memory leak.
13559
13560 2003-04-09 Kenichi Handa <handa@m17n.org>
13561
13562 * xfaces.c (Vface_font_rescale_alist): New variable.
13563 (struct font_name): New member rescale_ratio.
13564 (font_rescale_ratio): New function.
13565 (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
13566 (better_font_p): On comparing point sized, pay attention to
13567 recale_ratio member of fonts.
13568 (build_scalable_font_name): Reflect font->rescale_ratio in the
13569 font name.
13570 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13571
13572 * lread.c (read1): Before calling index, check if the 2nd
13573 arguemnt is in ASCII range.
13574
13575 2003-04-08 Richard M. Stallman <rms@gnu.org>
13576
13577 * fileio.c (Ffile_symlink_p): Doc fix.
13578
13579 * editfns.c (Fformat): Translate positions of text properties
13580 in the format string to apply them to the result.
13581
13582 * fileio.c (Finsert_file_contents): Doc fix.
13583 (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13584
13585 2003-04-08 Ivan Zakharyaschev <imz@altlinux.org> (tiny change)
13586
13587 * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
13588
13589 2003-04-08 Steven Tamm <steventamm@mac.com>
13590
13591 * mac.c (init_mac_osx_environment): Switch libexec and bin so
13592 that self-contained application finds libexec files.
13593
13594 2003-04-08 Kenichi Handa <handa@m17n.org>
13595
13596 * coding.c (code_convert_region_unwind):
13597 Set Vlast_coding_system_used to the argument.
13598 (code_convert_region): If post-read-conversion function changed
13599 the value of last-coding-sytem, keep the new value in
13600 coding->symbol so that it won't be overridden.
13601 (run_pre_post_conversion_on_str): Likewise.
13602 (coding_system_accept_latin_extra_p): New function.
13603 (find_safe_codings): Pay attention to characters registered in
13604 latin-extra-code-table.
13605
13606 2003-04-07 Thien-Thi Nguyen <ttn@gnu.org>
13607
13608 * Makefile.in (md5.o): Add missing dependency info.
13609
13610 2003-04-06 Richard M. Stallman <rms@gnu.org>
13611
13612 * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
13613
13614 * marker.c (verify_bytepos): New function.
13615
13616 * intervals.c (set_intervals_multibyte_1): When becoming
13617 multibyte, adjust right and left child sizes to a whole set of
13618 characters. If an interval gets zero total-length, delete it.
13619 If an interval consists of just its children, delete one of them.
13620
13621 * intervals.h (CHECK_TOTAL_LENGTH): New macro.
13622 * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
13623
13624 * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
13625 All calls deleted.
13626 (lisp_malloc): Do the work here directly.
13627
13628 2003-04-06 Gareth Jones <emacs@referential.org.uk> (tiny change)
13629
13630 * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
13631 char tables.
13632
13633 2003-04-04 Kenichi Handa <handa@m17n.org>
13634
13635 * editfns.c (Fformat): Use a copy of FORMAT string so that we can
13636 destructively change "%S" to "%s".
13637
13638 2003-04-03 Miles Bader <miles@gnu.org>
13639
13640 * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
13641 always set.
13642
13643 2003-04-01 Dave Love <fx@gnu.org>
13644
13645 * xfns.c (xpm_lookup_color): Grok "opaque".
13646
13647 2003-03-31 Andrew Choi <akochoi@shaw.ca>
13648
13649 * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
13650 parent window ID.
13651
13652 * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
13653
13654 * macterm.h (struct mac_output): Define x_pixels_diff and
13655 y_pixels_diff.
13656
13657 2003-03-31 Juanma Barranquero <lektu@terra.es>
13658
13659 * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
13660 blockinput.h and files included from it.
13661
13662 2003-03-31 Kim F. Storm <storm@cua.dk>
13663
13664 The following changes consolidates the common code related to
13665 frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
13666 files into frame.c.
13667
13668 * frame.c: Include blockinput.h.
13669 (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
13670 (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
13671 (Qauto_raise, Qauto_lower, ...): Define all frame parameter
13672 related vars here.
13673 (struct frame_parm_table, frame_parms): New table for describing
13674 frame parameters and their associated Q-variable.
13675 The order of the parameters corresponds to the sequence of the
13676 frame_parm_handlers table in redisplay_interface.
13677 (x_fullscreen_move, x_set_frame_parameters)
13678 (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
13679 (x_set_screen_gamma, x_set_font, x_set_fringe_width)
13680 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13681 (x_set_autoraise, x_set_autolower, x_set_unsplittable)
13682 (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
13683 Generic functions for processing of frame parameters.
13684 (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
13685 (display_x_get_resource, x_get_resource_string): Functions for
13686 generic access to X resources.
13687 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
13688 (x_default_parameter, Fx_parse_geometry): Functions for generic
13689 access to frame parameters.
13690 (x_figure_window_size): Generic calculation of frame size.
13691 Fixed to add space needed for tool bar. Also setup size_hint_flags.
13692 (syms_of_frame): Intern and staticpro frame parameter variables.
13693 Defvar_lisp Vx_resource_class and Vx_resource_name here.
13694 Defsubr Sx_get_resource and Sx_parse_geometry.
13695
13696 * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
13697 parameter related vars defined in frame.c.
13698 (EMACS_CLASS): Define here.
13699 (enum FULLSCREEN_*): Define here.
13700 (x_set_scroll_bar_default_width, x_wm_set_icon_position)
13701 (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
13702 (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
13703 (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
13704 (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
13705 (x_set_visibility, x_set_autoraise, x_set_autolower)
13706 (x_set_unsplittable, x_set_vertical_scroll_bars)
13707 (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
13708 (x_figure_window_size): Add prototypes.
13709
13710 * dispextern.h (frame_parm_handler): New typedef.
13711 (struct redisplay_interface): New member frame_parm_handlers.
13712 (enum resource_types): Move declaration here.
13713 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
13714 (x_default_parameter): Add prototypes.
13715
13716 * window.c: Remove extern decl for frame parameter vars.
13717 (change_window_heights): New generic function;
13718 replaces x_change_window_heights. All users changed.
13719
13720 * window.h (change_window_heights): Add prototype.
13721
13722 * xfaces.c: Remove extern decl for frame parameter vars.
13723
13724 * xterm.h (EMACS_CLASS): Remove. Use generic define.
13725 (struct w32_display_info): Fix type of xrdb member.
13726 (enum FULLSCREEN_*): Remove.
13727 Remove prototypes for generic functions (in frame.h).
13728
13729 * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13730 parameters now defined in frame.h and frame.c.
13731 (Vx_resource_name): Remove. Use generic var.
13732 (enum x_frame_parms): Remove (bogus, unused enum).
13733 (check_x_display_info): Make non-static (for frame.c).
13734 (struct x_frame_parm_table, x_frame_parms): Remove.
13735 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13736 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13737 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13738 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13739 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13740 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13741 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13742 Remove. Use generic functions instead.
13743 (enum resource_types): Remove.
13744 (x_set_scroll_bar_default_width): New global function (for frame.c).
13745 (Fx_create_frame): Depend on x_figure_window_size to add space for
13746 toolbar and setup size_hint_flags.
13747 (x_frame_parm_handlers): New table for redisplay_interface.
13748 (syms_of_xfns): Don't intern/staticpro removed vars.
13749
13750 * xterm.c: Remove unnecessary extern declarations.
13751 (x_fullscreen_adjust): Remove. Use generic instead.
13752 (x_redisplay_interface): Add x_frame_parm_handlers member.
13753
13754 * w32gui.h (XrmDatabase): New (dummy) typedef.
13755
13756 * w32term.h (EMACS_CLASS): Remove. Use generic define.
13757 (struct w32_display_info): Fix type of xrdb member.
13758 (enum FULLSCREEN_*): Remove.
13759 (x_fullscreen_adjust): Remove prototype.
13760
13761 * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13762 parameters now defined in frame.h and frame.c.
13763 (Vx_resource_name): Remove. Use generic var.
13764 (enum x_frame_parms): Remove (bogus, unused enum).
13765 (check_x_display_info): Make non-static (for frame.c).
13766 (struct x_frame_parm_table, x_frame_parms): Remove.
13767 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13768 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13769 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13770 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13771 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13772 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13773 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13774 Remove. Use generic functions instead.
13775 (enum resource_types): Remove.
13776 (x_set_scroll_bar_default_width): New global function (for frame.c).
13777 (Fx_create_frame): Depend on x_figure_window_size to add space for
13778 toolbar and setup size_hint_flags.
13779 (w32_frame_parm_handlers): New table for redisplay_interface.
13780 (syms_of_w32fns): Don't intern/staticpro removed vars.
13781
13782 * w32term.c: Remove unnecessary extern declarations.
13783 (x_fullscreen_adjust): Remove. Use generic instead.
13784 (x_redisplay_interface): Add w32_frame_parm_handlers member.
13785
13786 * w32reg.c (x_get_string_resource): Use XrmDatabase.
13787
13788 * macgui.h (XrmDatabase): New (dummy) typedef.
13789
13790 * macterm.h (EMACS_CLASS): Remove.
13791 (struct mac_display_info): Add xrdb member.
13792 (struct mac_output): Add want_fullscreen member.
13793
13794 * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13795 parameters now defined in frame.h and frame.c.
13796 (Vx_resource_name): Remove. Use generic var.
13797 (check_x_display_info): Make non-static (for frame.c).
13798 (struct x_frame_parm_table, x_frame_parms): Remove.
13799 (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13800 (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13801 (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13802 (x_change_window_heights, x_set_autoraise, x_set_autolower)
13803 (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13804 (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13805 (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13806 Remove. Use generic functions instead.
13807 (enum resource_types): Remove.
13808 (x_set_scroll_bar_default_width): New global function (for frame.c).
13809 (mac_frame_parm_handlers): New table for redisplay_interface.
13810 (syms_of_macfns): Don't intern/staticpro removed vars.
13811
13812 * macterm.c: Remove unnecessary extern declarations.
13813 (x_redisplay_interface): Add mac_frame_parm_handlers member.
13814
13815 * Makefile.in (frame.o): Add dependency on blockinput.h and files
13816 included from it (atimer.h and systime.h).
13817
13818 2003-03-30 Andreas Schwab <schwab@suse.de>
13819
13820 * xdisp.c (x_insert_glyphs): Fix swapped width and height
13821 parameters for shift_glyphs_for_insert.
13822
13823 * macterm.c (x_redisplay_interface): Add missing entry for
13824 draw_vertical_window_border.
13825
13826 2003-03-29 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@gmx.net>
13827
13828 * fileio.c (Fexpand_file_name): In the no-handler case, after
13829 expanding, look again for a handler and invoke it. This is needed
13830 for filenames like "/foo/../user@host:/bar/../baz" -- the first
13831 expansion produces "/user@host:/bar/../baz" which needs to be
13832 expanded again for the finame result "/user@host:/baz".
13833
13834 2003-03-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13835
13836 * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
13837 of area to be redrawn for better performance.
13838
13839 2003-03-28 Stefan Monnier <monnier@cs.yale.edu>
13840
13841 * xterm.c (take_vertical_position_into_account): Remove.
13842 (xt_action_hook): Call set_vertical_scroll_bar if needed.
13843 (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
13844 (xm_scroll_callback, x_create_toolkit_scroll_bar)
13845 (x_set_toolkit_scroll_bar_thumb): Simplify.
13846 (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
13847 (XTread_socket): Remove unused var.
13848 (x_make_frame_invisible): Replace goto with else.
13849
13850 * xdisp.c (set_vertical_scroll_bar): New fun.
13851 (redisplay_window): Use it.
13852
13853 2003-03-26 Richard M. Stallman <rms@gnu.org>
13854
13855 * xdisp.c (update_tool_bar): Recompute tool bar if
13856 update_mode_lines is set. Set w->update_mode_line
13857 only if the tool bar contents actually change.
13858 (update_menu_bar): Undo previous change.
13859
13860 2003-03-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13861
13862 * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
13863 (xg_frame_set_char_size): Calculate scroll bar width before frame
13864 width. Call SET_FRAME_GARBAGED and cancel_mouse_face.
13865 (xg_separator_p): Check for all documented separator types.
13866 (xg_update_scrollbar_pos): Variable gheight not needed, use height.
13867 (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
13868
13869 * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
13870 so tool bar gets updated.
13871
13872 2003-03-26 Stefan Monnier <monnier@cs.yale.edu>
13873
13874 * data.c (store_symval_forwarding): Re-instate part of the code
13875 that was deleted with too much enthusiasm.
13876
13877 2003-03-25 Stefan Monnier <monnier@cs.yale.edu>
13878
13879 * data.c (store_symval_forwarding): Delete special read-only
13880 hack for type == -1, since we now use ->constant instead.
13881 (Fkill_local_variable): Don't use XBUFFER if it can be nil.
13882
13883 * buffer.c (overlays_in): Declare static.
13884 (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
13885 `constant' field rather than the variable's `type' field.
13886
13887 2003-03-24 Andrew Choi <akochoi@shaw.ca>
13888
13889 * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
13890
13891 * dispextern.h [HAVE_CARBON]: Include Carbon.h.
13892
13893 * fns.c [MAC_OSX]: Do not redefine vector.
13894
13895 * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
13896
13897 * macgui.h: Remove definition of No_Cursor.
13898
13899 * macterm.h: Include Carbon.h. Replace (struct Cursor *) by Cursor.
13900
13901 * xdisp.c: Define No_Cursor.
13902 (x_write_glyphs, notice_overwritten_cursor)
13903 (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
13904 (note_mouse_highlight): Remove Mac-specific code.
13905 (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
13906
13907 2003-03-24 John Paul Wallington <jpw@gnu.org>
13908
13909 * xdisp.c (redisplay_window): If mini window's buffer is not
13910 empty, then redisplay it like other windows.
13911
13912 2003-03-23 Kim F. Storm <storm@cua.dk>
13913
13914 * w32term.c (w32_draw_window_cursor): Fix last change.
13915
13916 2003-03-23 Kenichi Handa <handa@m17n.org>
13917
13918 * alloc.c (make_string_from_bytes, make_specified_string):
13919 Add `const' for the arg CONTENTS.
13920
13921 * lisp.h (make_string_from_bytes, make_specified_string):
13922 Prototypes adjusted.
13923
13924 2003-03-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
13925
13926 * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
13927
13928 * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
13929 (XG_SB_RANGE): New define.
13930
13931 * gtkutil.c (xg_fixed_handle_expose): New function.
13932 (xg_create_frame_widgets): Call xg_fixed_handle_expose for
13933 expose events.
13934 (xg_update_scrollbar_pos): Take two more arguments, left and width
13935 of scroll bar including borders.
13936 Clear left and right part outside scroll bar separately as some
13937 themes have bars that are not an even number of pixels.
13938 Don't set reallocate_redraws, don't call
13939 gdk_window_process_all_updates.
13940 (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
13941 so no need to change it. Calculate size and value with XG_SB_RANGE.
13942
13943 * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
13944 Pass left and width of scroll bar including borders to
13945 xg_update_scrollbar_pos.
13946
13947 2003-03-22 Thien-Thi Nguyen <ttn@gnu.org>
13948
13949 * Makefile.in: Make sure space precedes end-of-line backslashes.
13950
13951 2003-03-22 Kim F. Storm <storm@cua.dk>
13952
13953 * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
13954 Add generic versions here. Remove system specific versions
13955 defined elsewhere.
13956
13957 * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
13958 Add prototypes.
13959
13960 * xterm.h (STORE_NATIVE_RECT): New macro.
13961
13962 2003-03-21 Kim F. Storm <storm@cua.dk>
13963
13964 * xdisp.c (get_glyph_string_clip_rect):
13965 Use FRAME_INTERNAL_BORDER_WIDTH.
13966
13967 * dispextern.h (struct redisplay_interface): Add active_p
13968 argument to draw_window_cursor member. All uses changed.
13969
13970 2003-03-21 Kim F. Storm <storm@cua.dk>
13971
13972 The following changes consolidate code related to writing and
13973 inserting glyphs, exposing frame, the tool bar, the mouse face,
13974 the output cursor, and help echo from xterm.c, w32term.c and
13975 macterm.c into xdisp.c. It also generalizes the use of the
13976 window_part enum instead of using numeric values throughout.
13977
13978 * xdisp.c: Consolidate gui-independent code here.
13979 Include keymap.h.
13980 (Qhelp_echo): Import.
13981 (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
13982 (help_echo_string, help_echo_window, help_echo_object)
13983 (previous_help_echo_string, help_echo_pos): Declare here.
13984 (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
13985 (estimate_mode_line_height): Define here. Handle windowing
13986 systems directly (without using estimate_mode_line_height_hook).
13987 (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
13988 (update_window_cursor, update_cursor_in_window_tree)
13989 (fast_find_position, fast_find_string_pos)
13990 (note_mode_line_highlight, note_mode_line_or_margin_highlight)
13991 (expose_area, expose_line, expose_overlaps, expose_window)
13992 (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
13993 declared static as they are only used locally in xdisp.c.
13994 (draw_glyphs): Rename from x_draw_glyphs and make static.
13995 (tool_bar_item_info, notice_overwritten_cursor): Make static.
13996 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13997 (set_output_cursor, x_cursor_to, handle_tool_bar_click)
13998 (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
13999 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
14000 (display_and_set_cursor, x_update_cursor, x_clear_cursor)
14001 (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
14002 (note_mouse_highlight, x_clear_window_mouse_face)
14003 (cancel_mouse_face, x_draw_vertical_border, expose_frame)
14004 (x_intersect_rectangles): New generic functions for use by xdisp.c
14005 and GUI front-ends.
14006 (syms_of_xdisp): Initialize and staticpro help_echo* variables.
14007 Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
14008
14009 * dispextern.h (Display_Info): Generic typedef for *_display_info.
14010 (NativeRectangle): Generic typedef for rectangle type.
14011 (enum window_part): Move here from window.c.
14012 (struct redisplay_interface): New members flush_display_optional,
14013 define_frame_cursor, clear_frame_area, draw_window_cursor,
14014 draw_vertical_window_border, shift_glyphs_for_insert.
14015 Rename member clear_mouse_face to clear_window_mouse_face.
14016 (estimate_mode_line_height_hook): Remove hook.
14017 (auto_raise_tool_bar_buttons_p): Don't declare extern.
14018 (tool_bar_item_info): Remove prototype.
14019 (help_echo_string, help_echo_window, help_echo_object)
14020 (previous_help_echo_string, help_echo_pos)
14021 (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
14022 (x_stretch_cursor_p, output_cursor): Declare extern.
14023 (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
14024 (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
14025 (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
14026 (display_and_set_cursor, set_output_cursor, x_cursor_to)
14027 (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
14028 (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
14029 (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
14030 (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
14031 (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
14032 Add prototypes.
14033 (mode_line_string, marginal_area_string): Fix prototypes.
14034
14035 * window.c (enum window_part): Move to dispextern.h.
14036 (coordinates_in_window): Use enum window_part member names
14037 instead of numbers to describe return value.
14038 (struct check_window_data): Change part member to window_part.
14039 (check_window_containing): Return window_part unaltered.
14040 (window_from_coordinates): Change part arg from int to enum
14041 window_part. Allow part arg to be null. All users changed.
14042
14043 * window.h (window_from_coordinates): Fix prototype.
14044
14045 * term.c (estimate_mode_line_height): Move to xdisp.c.
14046
14047 * keyboard.c (make_lispy_event): Use enum window_part.
14048
14049 * dispnew.c (mode_line_string, marginal_area_string): Use enum
14050 window_part instead of int in arg list. Users changed.
14051
14052 * xterm.h (No_Cursor): Declare as None for X.
14053 (struct mac_output): Replace member cross_cursor by hand_cursor.
14054
14055 * xterm.c: Remove consolidated defines and code.
14056 (BETWEEN): Remove unused macro.
14057 (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
14058 (x_define_frame_cursor, x_clear_frame_area)
14059 (x_draw_window_cursor): New X-specific functions for RIF.
14060 (x_redisplay_interface): Add new members.
14061
14062 * xfns.c: Setup and use hand_cursor instead of cross_cursor.
14063
14064 * w32term.h (struct w32_output): Remove cross_cursor member.
14065
14066 * w32term.c: Remove consolidated defines and code.
14067 (BETWEEN): Remove unused macro.
14068 (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
14069 (w32_define_frame_cursor, w32_clear_frame_area)
14070 (w32_draw_window_cursor): New W32-specific functions for RIF.
14071 (w32_redisplay_interface): Add new members.
14072
14073 * w32gui.h (No_Cursor): Define as 0 for W32.
14074 (XRectangle): Add X compatible rectangle type.
14075 (NativeRectangle): Declare as RECT for W32.
14076 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
14077
14078 * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
14079
14080 * w32console.c: Remove consolidated defines and code.
14081
14082 * msdos.h (Display_Info): Add generic typedef.
14083
14084 * msdos.c: Remove consolidated defines and code.
14085 (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
14086
14087 * macterm.h (struct mac_output): Replace member cross_cursor by
14088 hand_cursor.
14089 (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
14090
14091 * macterm.c: Remove consolidated defines and code.
14092 (BETWEEN): Remove unused macro.
14093 (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
14094 (mac_define_frame_cursor, mac_clear_frame_area)
14095 (mac_draw_window_cursor): New Mac-specific functions for RIF.
14096 (x_redisplay_interface): Add new members.
14097
14098 * macgui.h (No_Cursor): Define as 0 for Mac.
14099 (XRectangle): Add X compatible rectangle type.
14100 (NativeRectangle): Declare as Rect for Mac.
14101 (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
14102
14103 * macfns.c (x_set_mouse_color): Setup hand_cursor.
14104 (x_set_cursor_color): Use x_display_and_set_cursor.
14105
14106 * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
14107 included from it. Add dependency on keymap.h.
14108
14109 * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
14110
14111 2003-03-21 Kenichi Handa <handa@m17n.org>
14112
14113 * fileio.c (Fexpand_file_name): Fix previous change.
14114
14115 2003-03-19 Kenichi Handa <handa@m17n.org>
14116
14117 * fileio.c (Ffile_name_directory): Reconstruct file name by
14118 make_specified_string.
14119 (Ffile_name_nondirectory, Ffile_name_as_directory)
14120 (Fdirectory_file_name, Fexpand_file_name)
14121 (Fsubstitute_in_file_name): Likewise.
14122 (Fread_file_name): Compare decoded homedir with DIR and
14123 DEFAULT_FILENAME.
14124
14125 * alloc.c (make_specified_string): If NCHARS is negative, count
14126 the number of characters.
14127
14128 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14129
14130 * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
14131 all widgets.
14132
14133 * gtkutil.h: Removed xg_ignore_next_thumb.
14134
14135 2003-03-18 Kenichi Handa <handa@m17n.org>
14136
14137 * coding.c (Vchar_coding_system_table): Remove this variable.
14138 (Vcoding_system_safe_chars): New variable.
14139 (intersection): Remove this function.
14140 (find_safe_codings): Don't use Vchar_coding_system_table, but try
14141 all codings in SAFE_CODINGS.
14142 (Ffind_coding_systems_region_internal): Adjust for the change of
14143 find_safe_codings. Get generic coding systems from
14144 Vcoding_system_safe_chars.
14145 (Fdefine_coding_system_internal): New function.
14146 (syms_of_coding): Defsubr Sdefine_coding_system_internal.
14147 Initialize and staticpro Vcoding_system_safe_chars.
14148
14149 2003-03-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14150
14151 * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
14152 equal old values before updating.
14153
14154 * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
14155
14156 * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
14157
14158 2003-03-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14159
14160 * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
14161 (xg_resize_widgets): Don't call foreach(handle_fixed_child).
14162 (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
14163 (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
14164 (xg_create_scroll_bar): Pass bar to button event callback.
14165 (xg_find_top_left_in_fixed): New function.
14166 (xg_update_scrollbar_pos): Don't call gdk_window_clear on
14167 whole scroll bar area. Get old position with
14168 xg_find_top_left_in_fixed, calculate and only clear needed areas.
14169 (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
14170 dragging is in progress. Calculate whole as for Motif.
14171 Remove code that saved last values. Call gtk_range functions to
14172 set scroll bar sizes.
14173
14174 * gtkutil.h: Removed xg_ignore_next_thumb.
14175
14176 2003-03-17 Juanma Barranquero <lektu@terra.es>
14177
14178 * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
14179 and files included from it.
14180
14181 2003-03-18 Stefan Monnier <monnier@cs.yale.edu>
14182
14183 * keymap.c (accessible_keymaps_1): Break cycles but without preventing
14184 multiple occurrences of the same keymap under different prefixes.
14185 (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
14186
14187 2003-03-16 Jason Rumney <jasonr@gnu.org>
14188
14189 * w32gui.h: Use HDC for Display.
14190
14191 * w32term.c (w32_encode_char): Prevent double-byte chars from
14192 crashing Emacs.
14193
14194 * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
14195 as binary.
14196
14197 2003-03-16 Juanma Barranquero <lektu@terra.es>
14198
14199 * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
14200
14201 2003-03-16 Kim F. Storm <storm@cua.dk>
14202
14203 The following changes consolidate some of the gui-independent
14204 parts of the processing and drawing of "glyph strings" from
14205 xterm.c, w32term.c, and macterm.c into xdisp.c.
14206
14207 * dispextern.h (struct glyph): Reduce face_id member from 22 to
14208 21 bits (this reduces number of faces from 4M to 2M).
14209 Replace W32 specific w32_font_type member (2 bits) by generic
14210 font_type member (3 bits) for portability.
14211 (FONT_TYPE_UNKNOWN): New define, default for font_type member.
14212 (enum draw_glyphs_face): Define here.
14213 (struct glyph_string): Define here. Merge W32 and X versions.
14214 (struct redisplay_interface): New members per_char_metric,
14215 encode_char, compute_glyph_string_overhangs, draw_glyph_string.
14216 (VCENTER_BASELINE_OFFSET): Define here.
14217 (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
14218 (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
14219
14220 * xdisp.c: Consolidate gui-independent "glyph string" code here.
14221 (dump_glyph_string): Moved here.
14222 (init_glyph_string, append_glyph_string_lists, append_glyph_string)
14223 (prepend_glyph_string_lists, get_glyph_face_and_encoding)
14224 (fill_composite_glyph_string, fill_glyph_string)
14225 (fill_image_glyph_string, fill_stretch_glyph_string)
14226 (left_overwritten, left_overwriting, right_overwritten)
14227 (right_overwriting, get_char_face_and_encoding)
14228 (set_glyph_string_background_width, compute_overhangs_and_x)
14229 (append_glyph, append_composite_glyph, produce_image_glyph)
14230 (take_vertical_position_into_account, append_stretch_glyph)
14231 (produce_stretch_glyph): New generic functions (based on X version).
14232 Call platform specific functions through rif.
14233 (INIT_GLYPH_STRING): New macro, hides W32 details.
14234 (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
14235 (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
14236 (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
14237 (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
14238 (notice_overwritten_cursor):
14239 Generic functions exported to platform modules. Users changed.
14240
14241 * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
14242 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
14243 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
14244 New macros for consolidated code.
14245
14246 * xterm.c: Remove consolidated defines and code.
14247 (x_per_char_metric, x_encode_char)
14248 (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
14249 (x_redisplay_interface): Add new members.
14250
14251 * w32gui.h (Display): Add dummy typedef for consolidation.
14252 (XChar2b): Define alias for wchar_t for consolidation.
14253 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
14254
14255 * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
14256 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
14257 New macros for consolidation.
14258
14259 * w32term.c: Remove consolidated defines and code.
14260 (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
14261 to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
14262 (w32_per_char_metric): Change font_type arg to int for RIF.
14263 (w32_encode_char): Return int according to RIF requirements.
14264 (w32_compute_glyph_string_overhangs): Adapt to RIF.
14265 (w32_get_glyph_overhangs): New function for RIF. Uses generic
14266 x_get_glyph_overhangs.
14267 (w32_redisplay_interface): Add new members.
14268
14269 * macgui.h (XChar2b): Move typedef here for consolidation.
14270 (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
14271
14272 * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
14273 (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
14274 consolidation.
14275
14276 * macterm.c: Remove consolidated defines and code.
14277 (mac_per_char_metric): New function for RIF.
14278 (mac_encode_char): Adapt to new RIF requirements.
14279 (mac_compute_glyph_string_overhangs): Adapt for RIF.
14280 (x_redisplay_interface): Add new members.
14281
14282 2003-03-15 Stefan Monnier <monnier@cs.yale.edu>
14283
14284 * keymap.c (Vmenu_events): New var.
14285 (syms_of_keymap): Initialize it.
14286 (where_is_internal): Check more carefully what is a menu event.
14287
14288 2003-03-14 Richard M. Stallman <rms@gnu.org>
14289
14290 * lread.c (read1): After #!, exit loop on eof.
14291
14292 2003-03-14 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14293
14294 * gtkutil.h: Add declaration for xg_frame_cleared.
14295
14296 * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
14297
14298 * gtkutil.c (struct xg_last_sb_pos): New structure.
14299 (handle_fixed_child): New function.
14300 (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
14301 and force a redraw on them.
14302 (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
14303 (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
14304 so we can avoid unneeded redraws.
14305 (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
14306 and force a redraw on the scroll bar.
14307 (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
14308 if xg_last_sb_pos shows the positions are up to date.
14309 (xg_frame_cleared): New function.
14310
14311 2003-03-13 Kenichi Handa <handa@m17n.org>
14312
14313 * coding.c (Fdetect_coding_region): Fix docstring.
14314 (Fdetect_coding_string): Fix docstring.
14315
14316 2003-03-13 Andreas Schwab <schwab@suse.de>
14317
14318 * gtkutil.c: Add prototype for create_menus.
14319
14320 * data.c (long_to_cons): Fix type of top.
14321
14322 * xselect.c (selection_data_to_lisp_data): Use int instead of
14323 long for an integer of size 4.
14324
14325 * gtkutil.c (xg_update_frame_menubar): Add missing return value.
14326 (xg_tool_bar_help_callback): Likewise.
14327
14328 2003-03-12 Andreas Schwab <schwab@suse.de>
14329
14330 * xterm.c (x_term_init) [USE_GTK]: Fix typo.
14331
14332 2003-03-12 Kim F. Storm <storm@cua.dk>
14333
14334 The following changes consolidate the fringe handling from
14335 xterm.c, w32term.c, and macterm.c into xdisp.c.
14336
14337 * xdisp.c: Consolidate fringe handling code here.
14338 (left_bits, right_bits, continued_bits, continuation_bits)
14339 (ov_bits, zv_bits): Define fringe bitmaps.
14340 (fringe_bitmaps): New array holding fringe bitmaps.
14341 (draw_fringe_bitmap): Draw a specific bitmap; call display
14342 specific drawing routine via rif->draw_fringe_bitmap.
14343 (draw_row_fringe_bitmaps): Generic replacement for
14344 x_draw_row_fringe_bitmaps; all callers changed.
14345 (compute_fringe_widths): Generic replacement for
14346 x_compute_fringe_widths; all callers changed.
14347
14348 * dispextern.h (enum fringe_bitmap_type): Define here.
14349 (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
14350 (fringe_bitmaps): Declare extern.
14351 (struct redisplay_interface): New member draw_fringe_bitmap.
14352 (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
14353
14354 * xterm.c: Remove generic fringe code.
14355 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14356 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14357
14358 * w32term.c: Remove generic fringe code.
14359 (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
14360 (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
14361
14362 * macterm.c: Remove generic fringe code.
14363 (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14364 (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14365
14366 2003-03-11 Stefan Monnier <monnier@cs.yale.edu>
14367
14368 * print.c (Fprin1_to_string): Return unibyte string if possible.
14369
14370 2003-03-09 David Kastrup <dak@gnu.org>
14371
14372 * process.c (read_process_output): We have allocated enough space
14373 for readmax and carryover, so actually use the alloted space.
14374
14375 2003-03-09 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14376
14377 * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
14378 toolkit scrollbar click.
14379
14380 * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
14381 for USE_GTK.
14382 (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
14383 also.
14384 (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
14385 scrollbar and control is pressed, call x_scroll_bar_handle_click.
14386
14387 * gtkutil.h (xg_get_scroll_id_for_window): Declare.
14388
14389 * gtkutil.c (xg_get_scroll_id_for_window): New function.
14390 (xg_tool_bar_item_expose_callback): New function.
14391 (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
14392 (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
14393 on the tool bar widget.
14394 (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
14395 to expose on the tool bar item widgets.
14396
14397 2003-03-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14398
14399 * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
14400 struct image* when deciding to update (struct image* may have been
14401 deleted from the image cache).
14402
14403 * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
14404 the event isn't for a frame (i.e. for dialogs).
14405
14406 2003-03-07 Kenichi Handa <handa@m17n.org>
14407
14408 * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
14409 composition components reaches the limit, terminate composing.
14410 (COMPOSITION_OK): New macro.
14411 (detect_coding_iso2022): Use it if an escape sequence for
14412 composition is found.
14413 (coding_restore_composition): Adjust the number of composition
14414 components if it is not sane.
14415
14416 2003-03-06 Juanma Barranquero <lektu@terra.es>
14417
14418 * w32term.h (struct w32_display_info): Add xrdb member to support
14419 passing resources via -xrm on Windows.
14420
14421 * w32term.c (w32_make_rdb): New function.
14422 (w32_term_init): Use it to initialize xrdb member of w32_display_info
14423 struct. Delete leftover code.
14424
14425 * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
14426 for resources passed on the command line.
14427
14428 * w32reg.c (w32_get_rdb_resource): New function.
14429 (x_get_string_resource): Use it, so resources passed with -xrm
14430 supercede the ones in the registry.
14431
14432 2003-03-04 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14433
14434 * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
14435 instead of x_top_window_to_frame.
14436
14437 2003-03-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14438
14439 * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
14440 when restarting Emacs.
14441
14442 2003-03-03 Richard M. Stallman <rms@gnu.org>
14443
14444 * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
14445 to run kill-buffer-query-functions.
14446 (Qkill_buffer_query_functions): New var.
14447 (syms_of_buffer): Init and staticpro it.
14448
14449 2003-03-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14450
14451 * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
14452
14453 2003-02-25 Kim F. Storm <storm@cua.dk>
14454
14455 * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
14456 If centering point failed to make whole line visible and vscroll
14457 is non-zero, disable vscroll and try centering point again.
14458
14459 * lread.c (read1): Accept `single space' syntax like (? x).
14460
14461 2003-02-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14462
14463 * keyboard.c (cancel_hourglass_unwind): Surround with
14464 #ifdef HAVE_X_WINDOWS
14465
14466 2003-02-25 Kenichi Handa <handa@m17n.org>
14467
14468 * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
14469 process only when "subprocesses" is defined.
14470
14471 2003-02-24 Stefan Monnier <monnier@cs.yale.edu>
14472
14473 * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
14474
14475 2003-02-24 Juanma Barranquero <lektu@terra.es>
14476
14477 * callint.c (fix_command): Declare as static void and move before
14478 Fcall_interactively.
14479
14480 * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
14481 (syms_of_xdisp): Don't initialize Qwhen.
14482
14483 2003-02-23 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14484
14485 * keyboard.c (cancel_hourglass_unwind): New function.
14486 (command_loop_1): Cancel hourglass with unwind-protect.
14487
14488 2003-02-23 Richard M. Stallman <rms@gnu.org>
14489
14490 * callint.c (fix_command): New subroutine, from Fcall_interactively.
14491 Detect (when ... (region-beginning)) etc.
14492 (Fcall_interactively): Call fix_command.
14493 (Qif, Qwhen): New variables.
14494 (syms_of_callint): Init and staticpro them.
14495
14496 * regex.c (print_partial_compiled_pattern): Output to stderr.
14497
14498 2003-02-23 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
14499
14500 * dired.c (directory_files_internal): Don't expand directory.
14501 (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
14502 instead. From Lars Hansen <larsh@math.ku.dk>.
14503
14504 2003-02-22 Stefan Monnier <monnier@cs.yale.edu>
14505
14506 * fns.c (string_to_multibyte): Remove unused var i.
14507 (Flanginfo): Fix int/Lisp_Object mixup.
14508 (void_call2): New fun.
14509 (Fmap_char_table): Use it in place of call2.
14510
14511 * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
14512
14513 * macros.c (Fstart_kbd_macro): Remove redundant assignment.
14514
14515 * keymap.c (copy_keymap_1): Make it static.
14516
14517 * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
14518
14519 2003-02-22 David Ponce <david@dponce.com>
14520
14521 * lread.c (Fload): Don't check STRING_MULTIBYTE.
14522
14523 2003-02-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14524
14525 * process.h: Removed subtty field from struct Lisp_Process.
14526
14527 * process.c (create_process): Remove setting of subtty.
14528 (emacs_get_tty_pgrp): New function.
14529 (Fprocess_running_child_p, process_send_signal):
14530 Call emacs_get_tty_pgrp instead of ioctl.
14531 (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
14532
14533 2003-02-21 Kai Gro\e,A_\e(Bjohann <kai.grossjohann@uni-duisburg.de>
14534
14535 * keymap.c (Fdefine_key): Doc fix.
14536
14537 2003-02-21 Juanma Barranquero <lektu@terra.es>
14538
14539 Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
14540
14541 * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
14542 POLLING_PROBLEM_IN_SELECT.
14543
14544 * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
14545 Delete #undef of POLLING_PROBLEM_IN_SELECT.
14546
14547 * s/hpux10-20.h: New file.
14548
14549 * process.c (wait_reading_process_input):
14550 Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
14551
14552 2003-02-20 Kenichi Handa <handa@m17n.org>
14553
14554 * fontset.c (check_fontset_name): If NAME is nil, return the
14555 default fontset.
14556 (override_font_info): New function.
14557 (Fset_fontset_font): Document that NAME nil means the default fontset.
14558 (Ffontset_info): If FONTSET is not the default fontset, merge
14559 FONTSET onto the copy of the default fontset, and work on that
14560 copy. Document that NAME nil means the default fontset.
14561 (Ffontset_font): Document that NAME nil means the default fontset.
14562
14563 * process.c (setup_process_coding_systems): If the process's
14564 in/out descriptor is -1, do nothing.
14565
14566 2003-02-19 Andreas Schwab <schwab@suse.de>
14567
14568 * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
14569 Add prototypes.
14570
14571 2003-02-19 Kenichi Handa <handa@m17n.org>
14572
14573 * xfaces.c (try_alternative_families): Try all scalable fonts if
14574 Vscalable_fonts_allowed is not Qt.
14575
14576 2003-02-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14577
14578 * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
14579
14580 2003-02-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14581
14582 * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
14583 names.
14584
14585 * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
14586 (sorted_font_list): Move allocation of struct font_name to
14587 x_face_list_fonts.
14588 (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
14589 (Fx_list_fonts): Set maxnames to -1 to get all font names.
14590
14591 2003-02-18 Kim F. Storm <storm@cua.dk>
14592
14593 * lread.c (read1): Fix last change.
14594 "`" is not always special. Allow "?" after a character constant.
14595
14596 2003-02-18 Andrew Choi <akochoi@shaw.ca>
14597
14598 * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
14599
14600 2003-02-18 Andreas Schwab <schwab@suse.de>
14601
14602 * window.c (window_scroll_pixel_based): Move outside a
14603 multi-glyph character before setting new window start.
14604
14605 * xdisp.c (in_display_vector_p): New function.
14606 * dispextern.h (in_display_vector_p): Declare.
14607
14608 2003-02-18 Kim F. Storm <storm@cua.dk>
14609
14610 * lread.c (read1): Fix and relax read syntax.
14611 Recognize "[", ";", "#", and "?" after a dotted-pair dot.
14612 Only recognize "," after dotted-pair dot if inside backquote.
14613 Never include "`" or "," (inside backquote) in a symbol.
14614 Allow dotted-pair dot after a character constant.
14615 Allow "`" and "," (inside backquote) after a character constant.
14616
14617 2003-02-17 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14618
14619 * gtkutil.c (xg_tool_bar_expose_callback): New function.
14620 (xg_create_tool_bar): Force style of tool bar to be horizontal with
14621 icons. Set name of tool bar to emacs-toolbar.
14622 (update_frame_tool_bar): Connect expose event to
14623 xg_tool_bar_expose_callback.
14624
14625 2003-02-17 Richard M. Stallman <rms@gnu.org>
14626
14627 * keyboard.c (this_command_key_count_reset): New variable.
14628 Initiatize to 0 where this_command_key_count is set.
14629 (read_char): Save and restore this_command_key_count_reset
14630 around input method code.
14631 (read_char): If this_command_key_count_reset, echo reread commands.
14632 (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
14633
14634 2003-02-17 Kenichi Handa <handa@m17n.org>
14635
14636 * fns.c (string_to_multibyte): Always return a multibyte string.
14637
14638 2003-02-16 Jason Rumney <jasonr@gnu.org>
14639
14640 * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
14641 Negative max_fonts parameter means list all.
14642
14643 2003-02-14 Dave Love <fx@gnu.org>
14644
14645 * fns.c (Flanginfo): Doc fix.
14646
14647 2003-02-13 Kim F. Storm <storm@cua.dk>
14648
14649 * lread.c (read_escape): Interpret \s as a SPACE character, except
14650 for \s-X in a character constant which still is the super modifier.
14651 (read1): Signal an `invalid read syntax' error if a character
14652 constant is immediately followed by a digit or symbol character.
14653
14654 * search.c (Fmatch_data): Doc fix. Explicitly state that
14655 match-data is undefined if last search failed.
14656
14657 * keymap.c (Fcommand_remapping): Rename from Fremap_command.
14658 All uses changed.
14659
14660 2003-02-12 Juanma Barranquero <lektu@terra.es>
14661
14662 * eval.c (Fdefmacro): Fix typo.
14663
14664 2003-02-12 Kim F. Storm <storm@cua.dk>
14665
14666 * macros.c (Fstart_kbd_macro): If appending, and last keyboard
14667 macro is a string, convert meta modifiers in string when copying
14668 the string into a vector.
14669
14670 2003-02-11 Kim F. Storm <storm@cua.dk>
14671
14672 * keymap.c (Fremap_command): Return nil if arg is not a symbol.
14673
14674 2003-02-11 Kenichi Handa <handa@m17n.org>
14675
14676 * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
14677
14678 2003-02-10 Kim F. Storm <storm@cua.dk>
14679
14680 * process.c: Doc fixes.
14681 (syms_of_process): Add `:' prefix to QCfilter_multibyte.
14682
14683 2003-02-10 Kenichi Handa <handa@m17n.org>
14684
14685 * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
14686
14687 * process.c (QCfilter_multibyte): New variable.
14688 (setup_process_coding_systems): New function.
14689 (Fset_process_buffer, Fset_process_filter):
14690 Call setup_process_coding_systems.
14691 (Fstart_process): Initialize the member `filter_multibyte' of
14692 struct Lisp_Process.
14693 (create_process): Call setup_process_coding_systems.
14694 (Fmake_network_process): New keyward `:filter-multibyte'.
14695 Initialize the member `filter_multibyte' of struct Lisp_Process.
14696 Call setup_process_coding_systems.
14697 (server_accept_connection): Call setup_process_coding_systems.
14698 (read_process_output): If the process has a filter, decide the
14699 multibyteness of a string to given to the filter by
14700 `filter_multibyte' member of the process. If the process doesn't
14701 have a filter and the result of conversion is unibyte, use
14702 Fstring_to_multibyte (not Fstring_make_multibyte) to get the
14703 multibyte form.
14704 (Fset_process_coding_system): Call setup_process_coding_systems.
14705 (Fset_process_filter_multibyte): New function.
14706 (Fprocess_filter_multibyte_p): New function.
14707 (syms_of_process): Intern and staticpro QCfilter_multibyte.
14708 Defsubr Sset_process_filter_multibyte and
14709 Sprocess_filter_multibyte_p.
14710
14711 * process.h (struct Lisp_Process): New member filter_multibyte.
14712
14713 * lisp.h (setup_process_coding_systems): Add prototype.
14714
14715 * buffer.c (Fset_buffer_multibyte): If the current buffer has a
14716 process, update coding systems for the process.
14717
14718 2003-02-09 Kenichi Handa <handa@m17n.org>
14719
14720 * fns.c (string_to_multibyte): New function.
14721 (Fstring_to_multibyte): New function.
14722 (syms_of_fns): Defsubr it.
14723
14724 2003-02-08 Andreas Schwab <schwab@suse.de>
14725
14726 * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
14727 instead of the substitution.
14728
14729 2003-02-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14730
14731 * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
14732
14733 * xmenu.c (menu_position_func): Adjust menu popup position so that
14734 the menu is fully visible.
14735
14736 2003-02-07 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14737
14738 * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
14739 (x_make_frame_invisible, x_wm_set_icon_position):
14740 Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
14741
14742 * xfns.c (x_set_name, x_set_title): Ditto.
14743
14744 2003-02-04 Richard M. Stallman <rms@gnu.org>
14745
14746 * keyboard.c (echo_now): Update before_command_echo_length.
14747 (Freset_this_command_lengths): Reset this_command_key_count etc.
14748 immediately rather than arranging to do it later.
14749 (before_command_key_count_1, before_command_echo_length_1)
14750 (before_command_restore_flag): Vars deleted.
14751 (add_command_key): Don't handle before_command_restore_flag.
14752 (read_char, record_menu_key): Don't update before_command_key_count or
14753 before_command_echo_length.
14754 (read_char): Don't handle before_command_restore_flag.
14755
14756 * keyboard.c (command_loop_1): Don't call adjust_point_for_property
14757 in direct-output clauses if it wouldn't be called in the ordinary case.
14758
14759 2003-02-04 Kim F. Storm <storm@cua.dk>
14760
14761 * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
14762
14763 2003-02-02 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14764
14765 * gtkutil.c (remove_from_container): Copying list is not needed.
14766 (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
14767 (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
14768 on list returned from gtk_container_get_children to avoid memory leak.
14769
14770 2003-02-01 Jason Rumney <jasonr@gnu.org>
14771
14772 * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
14773 local malloc.
14774 [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
14775 definitions in xpm.h.
14776 (init_xpm_functions): New function.
14777 (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
14778 (init_external_image_libraries): Try to load libXpm.dll.
14779
14780 * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
14781 timestamp.
14782
14783 2003-01-31 Dave Love <fx@gnu.org>
14784
14785 * syntax.c (Fskip_chars_forward)
14786 (open-paren-in-column-0-is-defun-start): Doc fix.
14787
14788 2003-01-31 Joe Buehler <jhpb@draco.hekimian.com>
14789
14790 * fileio.c: Support // at start of name for Cygwin (just added proper
14791 preprocessor tests).
14792
14793 * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
14794
14795 * Makefile.in: Use @EXEEXT@ for Cygwin.
14796
14797 * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
14798
14799 * s/cygwin.h: Added for Cygwin port.
14800
14801 2003-01-31 Juanma Barranquero <lektu@terra.es>
14802
14803 * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
14804 when including gif_lib.h.
14805 (init_gif_functions, init_tiff_functions): New functions.
14806 (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
14807 Windows. Disable color table lookups. Call library functions
14808 through pointers determined at runtime.
14809 (init_external_image_libraries): Try to load libungif.dll and
14810 libtiff.dll.
14811
14812 2003-01-31 Kenichi Handa <handa@m17n.org>
14813
14814 * xdisp.c (SKIP_GLYPHS): New macro.
14815 (set_cursor_from_row): Skip all glyphs that comes from overlay string.
14816
14817 2003-01-30 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14818
14819 * gtkutil.c (free_frame_tool_bar): Remove debug printf.
14820
14821 2003-01-30 Dave Love <fx@gnu.org>
14822
14823 * alloc.c (Vgc_elapsed, gcs_done): New variables.
14824 (Fgarbage_collect): Use them.
14825 (init_alloc, syms_of_alloc): Set them up.
14826
14827 2003-01-30 Juanma Barranquero <lektu@terra.es>
14828
14829 * w32fns.c (init_external_image_libraries): Add missing operator.
14830
14831 2003-01-29 Jason Rumney <jasonr@gnu.org>
14832
14833 * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
14834 an alternative name for jpeg.dll.
14835
14836 2003-01-29 Kenichi Handa <handa@m17n.org>
14837
14838 * xdisp.c (set_cursor_from_row): Pay attention to string display
14839 properties.
14840
14841 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>
14842
14843 * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
14844 <escape>.
14845 (keycode_to_xkeysym_table): Reformat and add more comments.
14846 (XTread_socket): Drop special case for backspace.
14847
14848 2003-01-28 Andrew Choi <akochoi@shaw.ca>
14849
14850 * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
14851 values in old-style RGB specs.
14852
14853 2003-01-27 Juanma Barranquero <lektu@terra.es>
14854
14855 * w32fns.c (init_external_image_libraries): Try alternate names for the
14856 jpeg dll.
14857
14858 2003-01-27 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14859
14860 * gtkutil.c (create_dialog, xg_separator_p)
14861 (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
14862 before calling strcmp or strlen.
14863
14864 2003-01-26 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14865
14866 * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
14867 and handle image load failure.
14868
14869 2003-01-26 Jason Rumney <jasonr@gnu.org>
14870
14871 * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
14872 New functions.
14873 (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
14874 Disable color table lookups. Call jpeg library functions
14875 through pointers determined at runtime.
14876 (init_external_image_libraries): Try to load jpeg.dll.
14877
14878 2003-01-25 Richard M. Stallman <rms@gnu.org>
14879
14880 * lisp.h: Declare format2 instead of format1.
14881
14882 * fileio.c (barf_or_query_if_file_exists):
14883 Call format2 instead of format1.
14884
14885 * editfns.c (format2): New function, replaces format1
14886 but takes exactly two Lisp Objects as format args.
14887
14888 * buffer.c (Fkill_buffer): Call format2 instead of format1.
14889
14890 2003-01-25 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14891
14892 * xterm.h: Change to return value of x_dispatch_event to int.
14893
14894 * xterm.c (x_filter_event): New function.
14895 (event_handler_gdk, XTread_socket): Call x_filter_event.
14896 (x_dispatch_event): Change to return value of finish.
14897 (event_handler_gdk): Use return value from x_dispatch_event.
14898
14899 * xfns.c (x_window): Call create_frame_xic for GTK version to
14900 initialize input methods.
14901
14902 * gtkutil.h: Add (void) prototypes.
14903
14904 * gtkutil.c (create_menus): Remove code that puts the help menu to
14905 the right.
14906
14907 2003-01-25 Jason Rumney <jasonr@gnu.org>
14908
14909 * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
14910 [HAVE_PNG]: Sync with xfns.c version.
14911 (png_load): Adjust colors for Windows. Use Windows
14912 bitmaps. Disable color table lookups.
14913 (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
14914 (init_png_functions): New function.
14915 (png_read_from_memory, png_load): Call png library functions
14916 through pointers determined at runtime.
14917 (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
14918 (init_external_image_libraries): New function.
14919 (init_xfns): Call it.
14920
14921 2003-01-24 Andreas Schwab <schwab@suse.de>
14922
14923 * minibuf.c (Fminibuffer_message): Verify type of parameter.
14924
14925 2003-01-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
14926
14927 * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
14928 of static initializer.
14929
14930 2003-01-24 Dave Love <fx@gnu.org>
14931
14932 * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
14933 architectures.
14934
14935 * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
14936 Use __alignof__.
14937
14938 2003-01-24 Kenichi Handa <handa@m17n.org>
14939
14940 * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
14941 It it is nonzero, don't pretend that an invisible area doesn't exist.
14942 (command_loop_1): Call adjust_point_for_property with proper
14943 second arg.
14944
14945 2003-01-22 Jason Rumney <jasonr@gnu.org>
14946
14947 Sync changes with xterm.c and xfns.c.
14948
14949 * w32term.c (x_draw_glyph_string_foreground)
14950 (x_draw_composite_glyph_string_foreground): Implement overstriking.
14951
14952 * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
14953 phys_cursor's hpos is overwritten. This is still not completely
14954 correct, as it doesn't really make sense to use hpos at all to
14955 get the cursor glyph (as that is relative to the width of the
14956 characters on the line, which may have changed during the update).
14957
14958 * w32term.c (notice_overwritten_cursor): Handle the special case
14959 of the cursor being in the first blank non-text line at the
14960 end of a window.
14961
14962 * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14963 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14964 Compute from the x position returned by x_draw_glyphs.
14965
14966 (x_display_and_set_cursor): Don't set phys_cursor_width here,
14967 except for NO_CURSOR and system caret, to make phys_cursor_width
14968 contain what its name suggests.
14969 (notice_overwritten_cursor): Consider the cursor image erased if
14970 the output area intersects the cursor image in y-direction.
14971
14972 * w32term.c (note_mode_line_or_margin_highlight): Rename from
14973 note_mode_line_highlight and extend.
14974
14975 * w32term.c (last_window): New variable.
14976 (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
14977 (note_mouse_movement): Remove reimplemented code in #if 0.
14978
14979 * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
14980 not update_mode_lines, and always set it to 1.
14981
14982 2003-01-21 Jason Rumney <jasonr@gnu.org>
14983
14984 * w32fns.c (IDC_HAND): Define it if system headers don't.
14985
14986 2003-01-21 KOBAYASHI Yasuhiro <kobayays@otsukakj.co.jp>
14987
14988 * w32term.h (struct w32_output): New member hand_cursor.
14989 (WM_EMACS_SETCURSOR): New message definition.
14990
14991 * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
14992 function w32_define_cursor.
14993 (note_mouse_highlight): Initialize, setup cursor accoding to mouse
14994 position, change member name output_data.x to output_data.w32 and
14995 add function w32_define_cursor.
14996 (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
14997 and change member name output_data.x to output_data.w32.
14998 (w32_initialize_display_info):
14999 Setup dpyinfo->vertical_scroll_bar_cursor.
15000
15001 * w32fns.c (Vx_hand_shape): New variable.
15002 (w32_wnd_proc): Add message entries for WM_SETCURSOR and
15003 WM_EMACS_SETCURSOR.
15004 (x-create-frame): Setup Cursor types.
15005
15006 2003-01-21 David Ponce <david@dponce.com>
15007
15008 * w32term.c (w32_encode_char): For DIM=1 charset, set
15009 ccl->reg[2] to -1 before calling ccl_driver.
15010 (Sync. with xterm.c x_encode_char change by Kenichi Handa
15011 <handa@m17n.org> on 2002-09-30.)
15012 (w32_draw_relief_rect): Declare all args.
15013 (w32_define_cursor): New.
15014
15015 * w32fns.c (w32_load_cursor): New function.
15016 (w32_init_class): Use it.
15017 (x_put_x_image): Declare all args.
15018
15019 2003-01-21 Richard Dawe <rich@phekda.freeserve.co.uk>
15020
15021 * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
15022
15023 2003-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15024
15025 * gtkutil.c: Must include stdio.h before termhooks.h
15026
15027 2003-01-21 Dave Love <fx@gnu.org>
15028
15029 * alloc.c (Fgc_status): Print zombie list.
15030 (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
15031 Fix assignment of zombies.
15032 (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
15033 Don't take car of non-cons.
15034
15035 * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15036
15037 * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15038
15039 2003-01-20 David Ponce <david@dponce.com>
15040
15041 * w32menu.c (digest_single_submenu): Declare all args.
15042
15043 Sync with 2002-12-23 Richard M. Stallman <rms@gnu.org>
15044 changes in xmenu.c:
15045
15046 (parse_single_submenu): Use individual keymap's prompt
15047 string as pane name, if there is one.
15048 (set_frame_menubar): Save menu_items_n_panes from each call to
15049 parse_single_submenu and use it when calling digest_single_submenu.
15050
15051 2003-01-20 Steven Tamm <steventamm@mac.com>
15052
15053 * macterm.c (XTread_socket): Check for valid, visible window
15054 before sending a scroll-wheel event.
15055
15056 2003-01-20 Richard M. Stallman <rms@gnu.org>
15057
15058 * xdisp.c (redisplay_window): If mini window's buffer is not
15059 a minibuffer, then redisplay it like other windows.
15060
15061 2003-01-20 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15062
15063 * gtkutil.c (xg_create_frame_widgets): Check if there is an
15064 external tool bar before setting tool bar height.
15065
15066 2003-01-19 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15067
15068 * xterm.c (handle_one_xevent): Surround popup_activated
15069 with #ifdef:s for non-toolkit version.
15070
15071 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
15072 (gtkutil.o): New file.
15073 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
15074 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
15075
15076 * gtkutil.c: New file for GTK version.
15077
15078 * gtkutil.h: New file for GTK version.
15079
15080 * xterm.h: Add xt_or_gtk_widget.
15081 Include gtk files for USE_GTK.
15082 (struct x_output): Add toolbar_height.
15083 (struct x_output): Add GTK widgets and Gdk size_hints.
15084 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
15085 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
15086 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
15087
15088 * xterm.c: Include gtkutil.h for USE_GTK.
15089 (free_frame_menubar): Declare extern void for USE_GTK.
15090 (note_mouse_highlight): Check popup_activated for USE_GTK.
15091 (xt_action_hook): Don't compile if USE_GTK.
15092 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
15093 (xg_scroll_callback): New function.
15094 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
15095 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
15096 for USE_GTK.
15097 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
15098 xg_show_scroll_bar for USE_GTK.
15099 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
15100 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
15101 (event_handler_gdk): New function for USE_GTK.
15102 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
15103 (handle_one_xevent): Make sure widget is mapped before
15104 calling x_real_positions for USE_GTK.
15105 (XTread_socket): Add GTK event loop for USE_GTK.
15106 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
15107 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
15108 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
15109 (x_iconify_frame): Add code for USE_GTK.
15110 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
15111 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
15112 is in gtkutil.c.
15113 (x_term_init): Add initialization for GTK.
15114 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
15115
15116 * xmenu.c: Include gtkutil.h for USE_GTK.
15117 (Fx_popup_menu): Use current position if x and y is NIL.
15118 (single_menu_item, single_menu_item, Fx_popup_dialog):
15119 Check for USE_GTK.
15120 (popup_widget_loop): New function for USE_GTK.
15121 (x_activate_menubar): Add code for USE_GTK.
15122 (popup_activate_callback, popup_deactivate_callback)
15123 (menu_highlight_callback, menubar_selection_callback):
15124 Add USE_GTK versions.
15125 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
15126 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
15127 (free_frame_menubar): Only compile if not USE_GTK. GTK version
15128 is in gtkutil.c.
15129 (popup_selection_callback): New version for USE_GTK.
15130 (create_and_show_popup_menu): New fuction, one USE_GTK version and
15131 one USE_X_TOOLKIT version.
15132 (xmenu_show): Call create_and_show_popup_menu.
15133 (dialog_selection_callback): New version for USE_GTK.
15134 (create_and_show_dialog): New fuction, one USE_GTK version and
15135 one USE_X_TOOLKIT version.
15136 (xdialog_show): Call create_and_show_dialog.
15137
15138 * xfns.c: Include gtkutil for USE_GTK.
15139 (x_window_to_frame, x_any_window_to_frame)
15140 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
15141 (x_top_window_to_frame): Add code for USE_GTK.
15142 (x_set_background_color): Call xg_set_background_color for GTK.
15143 (x_set_menu_bar_lines): Check for USE_GTK.
15144 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
15145 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
15146 (x_window): Call xg_create_frame_widgets for USE_GTK.
15147 (Fx_create_frame): Check for USE_GTK
15148 (Fx_file_dialog): New implementation for USE_GTK.
15149
15150 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
15151 (update_menu_bar): Add check for USE_GTK.
15152 (update_tool_bar): Add check for USE_GTK and external tool bar.
15153 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
15154 (redisplay_internal): Add check for USE_GTK and popup_activated.
15155 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
15156 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
15157 (display_menu_bar): Add check for USE_GTK
15158
15159 * lisp.h (Vx_resource_name): Declare extern.
15160
15161 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
15162 for USE_GTK.
15163 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
15164
15165 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
15166 (FRAME_EXTERNAL_TOOL_BAR): New macro.
15167 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
15168
15169 * fileio.c (Fread_file_name): Add check for USE_GTK.
15170
15171 * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
15172 Add check for USE_GTK.
15173
15174 * config.in: Added HAVE_GTK
15175
15176 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
15177
15178 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
15179
15180 * charset.h (Funibyte_char_to_multibyte): Export.
15181
15182 2003-01-18 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15183
15184 * xmenu.c (mouse_position_for_popup): New function.
15185 (Fx_popup_menu): Call mouse_position_for_popup for X and
15186 mouse_position_hook for others.
15187
15188 2003-01-17 Kim F. Storm <storm@cua.dk>
15189
15190 * editfns.c (Finsert): Mention `string-make-multibyte' and
15191 `string-as-multibyte' in doc string.
15192
15193 2003-01-17 Kenichi Handa <handa@m17n.org>
15194
15195 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
15196
15197 * editfns.c (Fformat): Convert an unibyte char argument that is
15198 formatted by "%c" to multibyte if the total result must be a
15199 multibyte string.
15200
15201 2003-01-16 Kim F. Storm <storm@cua.dk>
15202
15203 * process.c (set-process-filter): Document unibyte/multibyte-ness
15204 of string argument.
15205
15206 2003-01-16 Kenichi Handa <handa@m17n.org>
15207
15208 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
15209
15210 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
15211 (re_search_2): Likewise.
15212
15213 2003-01-15 Kenichi Handa <handa@m17n.org>
15214
15215 * xdisp.c (message_dolog): Fix bug of the case that *Message*
15216 buffer is unibyte.
15217
15218 2003-01-15 Francesco Potort\e,Al\e(B <pot@gnu.org>
15219
15220 * fns.c (Fsubstring): Clarify doc string.
15221
15222 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
15223 (Fprevious_char_property_change)
15224 (Fnext_single_char_property_change)
15225 (Fprevious_single_char_property_change, Fnext_property_change)
15226 (Fnext_single_property_change, Fprevious_property_change)
15227 (Fprevious_single_property_change, Fadd_text_properties)
15228 (Fput_text_property, Fset_text_properties)
15229 (Fremove_text_properties, Fremove_list_of_text_properties)
15230 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
15231
15232 2003-01-14 Kim F. Storm <storm@cua.dk>
15233
15234 * process.h (struct Lisp_Process): New member plist replaces old
15235 member private_vars. All uses changed.
15236
15237 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
15238 (QCplist): Rename from QCvars. Change all uses.
15239 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
15240 (Fset_process_plist): Replaces Fset_process_variable. Simplify.
15241 (syms_of_process): Intern, staticpro, defsubr these.
15242 (Fmake_network_process): Describe :plist arg. Remove :vars arg.
15243
15244 2003-01-14 Francesco Potort\e,Al\e(B <pot@gnu.org>
15245
15246 * m/delta.h: Remove (obsolete).
15247
15248 2003-01-13 Francesco Potort\e,Al\e(B <pot@gnu.org>
15249
15250 * fileio.c (Fdelete_directory, Fdelete_file): Document the
15251 behaviour in front of symlinks.
15252 (Fdelete_file): Raise an error on directories.
15253
15254 2003-01-13 Dave Love <fx@gnu.org>
15255
15256 * fns.c (Freverse): Use QUIT.
15257
15258 2003-01-13 Richard M. Stallman <rms@gnu.org>
15259
15260 * minibuf.c (minibuffer_completion_contents):
15261 Error if point is inside prompt.
15262
15263 * keyboard.c (command_loop_1): Don't redisplay directly
15264 if there's a post-command-hook.
15265
15266 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
15267 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
15268
15269 2003-01-12 Kim F. Storm <storm@cua.dk>
15270
15271 * process.h (struct Lisp_Process): New member private_vars.
15272
15273 * process.c (QCvars): New variable.
15274 (syms_of_process): Intern and staticpro it.
15275 (Fset_process_contact): Removed function.
15276 (Fprocess_variable, Fset_process_variable): New functions.
15277 (syms_of_process): Defsubr them.
15278 (Fstart_process): Initialize private_vars plist to nil.
15279 (Fmake_network_process): New arg :vars to setup the private
15280 variables for new network process.
15281 (server_accept_connection): Copy server's private variables to
15282 client process.
15283
15284 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
15285 crashes). Code rewritten and simplified. Now directly aligns the
15286 pointer and recalculates pure_bytes_used, rather than aligning the
15287 size and adjusting the pointer.
15288
15289 2003-01-11 Kim F. Storm <storm@cua.dk>
15290
15291 * process.c (Fset_process_contact): New function.
15292 (syms_of_process): defsubr it.
15293 (make-network-process): Update doc.
15294
15295 2003-01-10 Andreas Schwab <schwab@suse.de>
15296
15297 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
15298 Reported by Berthold Gunreben <b.gunreben@web.de>.
15299
15300 2003-01-10 Dave Love <fx@gnu.org>
15301
15302 * composite.c (syms_of_composite): Make composition_hash_table weak.
15303
15304 2003-01-09 Kim F. Storm <storm@cua.dk>
15305
15306 * process.c (Fmake_network_process): Convert new port number
15307 to host byte order for `:service t' case. From Mario Lang.
15308
15309 2003-01-08 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
15310
15311 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
15312 instead of XtAppProcessEvent.
15313
15314 * xterm.c (handle_one_xevent): New function.
15315 (x_dispatch_event): New function.
15316 (XTread_socket): Call handle_one_xevent.
15317
15318 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
15319
15320 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
15321 call XQueryPointer to get coordinates.
15322 (popup_get_selection): Do not set popup_activated_flag to zero,
15323 let popup_deactivate_callback do that. Needed for Motif.
15324 Call x_dispatch_event instead of XtDispatchEvent.
15325 (xmenu_show): Calculate root coordinate from frame top/left position.
15326
15327 2003-01-08 Kim F. Storm <storm@cua.dk>
15328
15329 * process.c (server_accept_connection): Fix recording of new
15330 connection's local address in :local property of contact info.
15331 (Fmake_network_process): Record local network address for new
15332 client processes in :local property of contact info.
15333 (format-network-address): Add arg OMIT-PORT. Change callers.
15334
15335 2003-01-07 Dave Love <fx@gnu.org>
15336
15337 * Makefile.in (fns.o): Depend on coding.h.
15338
15339 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
15340
15341 * minibuf.c (Fread_variable): Doc fix.
15342
15343 * eval.c (Fuser_variable_p): Doc change. For custom variables,
15344 use the same test as for custom-variable-p.
15345
15346 2003-01-05 Richard M. Stallman <rms@gnu.org>
15347
15348 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
15349 Count LAST_LINE_MISFIT in scroll margin for end of window.
15350 Move label too_near_end before setting SCROLL_MARGIN_POS.
15351 Set LAST_LINE_MISFIT before jumping there.
15352
15353 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
15354 scroll_conservatively case. If scrolling that much doesn't change
15355 STARTP, move it down one line.
15356
15357 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
15358 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
15359
15360 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
15361 selected frame.
15362
15363 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
15364 (syms_of_keymap): Staticpro them.
15365 (Fapropos_internal): Initialize them and clear them out.
15366 Don't GCPRO them.
15367
15368 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
15369 Doc fixes.
15370
15371 * lisp.h: New misc type Lisp_Save_Value.
15372 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
15373 (XSAVE_VALUE): New macro.
15374 (struct Lisp_Save_Value): New data type.
15375 (union Lisp_Misc): Add u_save_value alternative.
15376 (make_save_value): Declare.
15377
15378 * alloc.c (make_save_value): New function.
15379
15380 * xterm.c (x_catch_errors): Save dpy using make_save_value.
15381 (x_catch_errors_unwind): Call XSync.
15382
15383 2003-01-01 Richard M. Stallman <rms@gnu.org>
15384
15385 * window.c (window_scroll_pixel_based): Partially undo last change.
15386
15387 * keyboard.c (command_loop_1): Call adjust_point_for_property
15388 in direct action cases for Qforward_char and Qbackward_char.
15389 Set already_adjusted so it won't be done twice.
15390
15391 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk>
15392
15393 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
15394 type definition of size_t.
15395
15396 2003-01-02 Steven Tamm <steventamm@mac.com>
15397
15398 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
15399 distinguish Carbon GUI builds from X11 builds on darwin.
15400
15401 2002-12-30 Steven Tamm <steventamm@mac.com>
15402
15403 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
15404 to default to t.
15405
15406 2002-12-29 Francesco Potort\e,Al\e(B <pot@gnu.org>
15407
15408 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
15409
15410 2002-12-28 Steven Tamm <steventamm@mac.com>
15411
15412 * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
15413 allow building in a different directory than source. Uses some
15414 GNU Make extensions, but there is no other make on Mac OS X.
15415
15416 2002-12-26 Francesco Potort\e,Al\e(B <pot@gnu.org>
15417
15418 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
15419 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
15420 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
15421 (Fstring_to_number): Mention the returned value in the doc strings.
15422
15423 2002-12-23 Richard M. Stallman <rms@gnu.org>
15424
15425 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
15426 <scroll-down-aggressively>: Doc fix.
15427
15428 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
15429 string as pane name, if there is one.
15430 (set_frame_menubar): Save menu_items_n_panes from each call to
15431 parse_single_submenu and use it when calling digest_single_submenu.
15432
15433 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
15434 Don't try to make last line fully visible if it is past end of window.
15435
15436 2002-12-22 Steven Tamm <steventamm@mac.com>
15437
15438 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
15439 (mac_menu_show): Add support for hierarchical popup menus.
15440 (add_menu_item): Remove indentation support.
15441 (fill_submenu, fill_menu): Create hierarchical menus
15442 instead of using indentation.
15443
15444 2002-12-22 Richard M. Stallman <rms@gnu.org>
15445
15446 * xdisp.c (try_cursor_movement): Don't call try_window here.
15447 (redisplay_window): Never redisplay minibuffer when inactive.
15448
15449 * window.c (select_window_1): Undo 9/21 change.
15450
15451 2002-12-22 Steven Tamm <steventamm@mac.com>
15452
15453 * macterm.c (XTread_socket): Call KeyTranslate for control and
15454 meta to deal correctly shifted non-alpha characters, like C-S-5
15455 being treated like C-%. Do not look for shift key to deal
15456 with masking off control-key with mac-reverse-ctrl-meta.
15457
15458 2002-12-21 Richard M. Stallman <rms@gnu.org>
15459
15460 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
15461 If it is non-nil, run timers. Use an unwind-protect to requeue
15462 the events that were read ahead.
15463 (popup_get_selection_unwind): New subroutine.
15464 (popup_get_selection_queue): File-scope variable now holds that queue.
15465 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
15466 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
15467 Use an unwind-protect to pop down the dialog box.
15468 (xdialog_show_unwind): New subroutine implements that.
15469
15470 * xdisp.c (row_containing_pos): Change exit test using last_y.
15471 (try_window_id): Abort if row_containing_pos returns null.
15472
15473 * lread.c (load_error_handler): New function.
15474 (Fload): Handle errors in Fsubstitute_in_file_name.
15475 Don't expect Fsignal to return.
15476
15477 * eval.c: Errors and throws work right with interrupt blocking.
15478 (struct catchtag): New elt interrupt_input_blocked.
15479 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
15480 (internal_catch, Fcondition_case, internal_condition_case)
15481 (internal_condition_case_1, internal_condition_case_2): Save it.
15482 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
15483
15484 * editfns.c (Fformat): Add parens.
15485
15486 * dired.c (file_name_completion): Fix that change.
15487 Delete special quit-handling code; just use QUIT.
15488
15489 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com>
15490
15491 * dired.c (file_name_completion): Close directory on error
15492 just as in directory_files_internal.
15493
15494 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
15495
15496 * window.c (Fset_window_configuration): Set old_point to correct
15497 value when new_current_buffer == current_buffer.
15498
15499 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
15500
15501 Revisited my earlier fix for the following entry in etc/PROBLEMS:
15502 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
15503 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
15504
15505 These changes were in part based upon suggestions made by Peter
15506 'Luna' Runestig [peter@runestig.com].
15507
15508 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
15509 (g_b_init_get_token_information, g_b_init_lookup_account_sid)
15510 (g_b_init_get_sid_identifier_authority ): Add several static
15511 global variables.
15512
15513 * w32.c (globals_of_w32): New function. Used to initialize those
15514 global variables that must always be initialized on startup even
15515 when the global variable initialized is non zero. Its primary
15516 purpose at this time is to set the global variables
15517 g_b_init_is_windows_9x, g_b_init_open_process_token,
15518 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
15519 g_b_init_get_sid_identifier_authority to 0 on startup.
15520 Called from main.
15521
15522 * w32.c (is_windows_9x): Perform initialization only if
15523 g_b_init_is_windows_9x is equal to 0. On initialization set
15524 g_b_init_is_windows_9x equal to 1.
15525
15526 * w32.c (open_process_token): Perform initialization only if
15527 g_b_init_open_process_token is equal to 0. On initialization set
15528 g_b_init_open_process_token equal to 1.
15529
15530 * w32.c (get_token_information): Perform initialization only if
15531 g_b_init_get_token_information is equal to 0. On initialization
15532 set g_b_init_get_token_information equal to 1.
15533
15534 * w32.c (lookup_account_sid): Perform initialization only if
15535 g_b_init_lookup_account_sid is equal to 0. On initialization
15536 set g_b_init_lookup_account_sid equal to 1.
15537
15538 * w32.c (get_sid_identifier_authority): Perform initialization
15539 only if g_b_init_get_sid_identifier_authority is equal to 0.
15540 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
15541
15542 * w32fns.c (globals_of_w32fns): New function. Used to initialize
15543 those global variables that must always be initialized on startup
15544 even when the global variable initialized is non zero.
15545 Its primary purpose at this time is to initialize the global variable
15546 track_mouse_event_fn.
15547
15548 * w32fns.c (w32_wnd_proc): Remove initialization of
15549 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
15550
15551 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
15552
15553 * w32menu.c (globals_of_w32menu): New function. Used to
15554 initialize those global variables that must always be initialized
15555 on startup even when the global variable initialized is non zero.
15556 Its primary purpose at this time is to initialize the global
15557 variables get_menu_item_info and set_menu_item_info.
15558
15559 * w32menu.c (initialize_frame_menubar): Remove initialization of
15560 get_menu_item_info and set_menu_item_info.
15561
15562 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
15563
15564 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
15565 Declare them.
15566
15567 * emacs.c (main): Call globals_of_w32 prior to calling
15568 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
15569 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
15570 is defined.
15571
15572 * w32term.c (x_update_window_begin): Fix Windows API error
15573 detected by BoundsChecker. Test to determine if
15574 w32_system_caret_hwnd is NULL prior to attempting to use
15575 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
15576
15577 * w32term.c (x_update_window_end): Fix Windows API error
15578 detected by BoundsChecker. Test to determine if
15579 w32_system_caret_hwnd is NULL prior to attempting to use
15580 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
15581
15582 2002-12-17 Kenichi Handa <handa@m17n.org>
15583
15584 * coding.c (coding_system_require_warning): New variable.
15585 (syms_of_coding): DEFVAR it.
15586
15587 * coding.h (coding_system_require_warning): Extern it.
15588
15589 * fileio.c (choose_write_coding_system): Even if
15590 Vcoding_system_for_write is non-nil, if
15591 coding_system_require_warning is nonzero, call
15592 Vselect_safe_coding_system_function.
15593
15594 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
15595
15596 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
15597 (lisp): Add font-core.
15598
15599 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
15600
15601 * textprop.c (text_read_only): New arg `propval'.
15602 (get_char_property_and_overlay): Remove unused var `next_overlay'.
15603 (verify_interval_modification): Use text_read_only's new arg.
15604
15605 2002-12-13 Kenichi Handa <handa@m17n.org>
15606
15607 * coding.c (Funencodable_char_position): Set pend correctly.
15608
15609 2002-12-12 Jason Rumney <jasonr@gnu.org>
15610
15611 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
15612 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
15613 Be more careful about when help_events are generated.
15614
15615 2002-12-12 Steven Tamm <steventamm@mac.com>
15616
15617 * macterm.c (mac_check_for_quit_char): Correctly set the
15618 modifiers of the event to 0.
15619 * mac.c (sys_select): Duplicate rfds before calling select to
15620 ensure that rfds survive the while loop.
15621
15622 2002-12-11 Kim F. Storm <storm@cua.dk>
15623
15624 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
15625 row_containing_pos returned NULL.
15626
15627 2002-12-10 Steven Tamm <steventamm@mac.com>
15628
15629 * mac.c (sys_read): Fix sys_read to not call select if IO is
15630 non-blocking.
15631 (sys_select): Fix sys_select to not use a timeout larger than
15632 the one given.
15633
15634 2002-12-10 Juanma Barranquero <lektu@terra.es>
15635
15636 * editfns.c (Fformat): Use alloca, not _alloca.
15637
15638 2002-12-09 Richard M. Stallman <rms@gnu.org>
15639
15640 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
15641 as the last thing.
15642
15643 2002-12-09 Dave Love <fx@gnu.org>
15644
15645 * s/sol2-8.h: Removed. (Not necessary.)
15646
15647 2002-12-09 Matthew Swift <swift@alum.mit.edu>
15648
15649 * editfns.c (Fformat): Handle precision in string conversion
15650 specifiers like libc functions do (ie, print at most that many
15651 characters).
15652
15653 2002-12-08 Richard M. Stallman <rms@gnu.org>
15654
15655 * xdisp.c (row_containing_pos): Check more carefully
15656 whether charpos is really in the row before returning it.
15657
15658 2002-12-07 Steven Tamm <steventamm@mac.com>
15659
15660 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
15661
15662 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
15663 each stack frame. This may change as it could be time consuming.
15664
15665 * macterm.c (mac_check_for_quit_char, quit_char_comp)
15666 (init_quit_char_handler, mac_determine_quit_char_modifiers)
15667 (mac_initialize): Add code to check for pressing of quit_char
15668 in the OS event queue.
15669
15670 * mac.c (sys_select): Call mac_check_for_quit_char every second
15671 while blocking on select.
15672
15673 * mac.c (sys_read): Use sys_select to test for input first
15674 before calling read, to allow C-g to break.
15675
15676 2002-12-07 Richard M. Stallman <rms@gnu.org>
15677
15678 * minibuf.c (Fcompleting_read): Doc fix.
15679
15680 * lread.c (syms_of_lread) <load-history>: Doc fix.
15681
15682 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
15683
15684 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
15685 autoload.
15686
15687 * data.c (Fdefalias): Record in load-history redefining an autoload.
15688
15689 * alloca.c: Undo ifdef change accidentally made on 12-04.
15690
15691 2002-12-06 Francesco Potorti` <pot@gnu.org>
15692
15693 * xfns.c (png_load): Avoid double gamma correction for PNG images.
15694
15695 2002-12-04 Richard M. Stallman <rms@gnu.org>
15696
15697 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
15698
15699 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
15700
15701 * alloca.c: Don't use #error.
15702
15703 2002-12-03 Dave Love <fx@gnu.org>
15704
15705 * buffer.c (Qucs_set_table_for_input): New.
15706 (Fget_buffer_create): Use it.
15707 (Qset_buffer_major_mode_hook): Deleted.
15708 (Fset_buffer_major_mode): Revert previous change.
15709 (init_buffer_once): Intern ucs-set-table-for-input.
15710 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
15711 Add &Qucs_set_table_for_input.
15712
15713 2002-12-03 Andreas Schwab <schwab@suse.de>
15714
15715 * callint.c (Fcall_interactively): Use next_event only if less
15716 than key_count.
15717
15718 2002-12-02 Andrew Choi <akochoi@shaw.ca>
15719
15720 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
15721 names to 255 characters.
15722
15723 * macterm.c (XTread_socket): If all frames have been collapsed,
15724 expand the first one before handling drag-and-drop events.
15725
15726 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
15727 which is detected by autoconf.
15728
15729 2002-12-01 Steven Tamm <steventamm@mac.com>
15730
15731 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
15732 offset in two hints table to allow prebinding to be redone and
15733 allow the executable to be stripped.
15734
15735 2002-11-29 Dave Love <fx@gnu.org>
15736
15737 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
15738 already provided.
15739
15740 2002-11-29 Richard M. Stallman <rms@gnu.org>
15741
15742 * xdisp.c (start_display): Check more intelligently for
15743 whether the line is continued.
15744 (move_it_vertically_backward): Clear it->continuation_lines_width.
15745
15746 2002-11-28 Dave Love <fx@gnu.org>
15747
15748 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
15749 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
15750
15751 2002-11-27 Steven Tamm <steventamm@mac.com>
15752
15753 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
15754 more descriptive error output from lread.c:Fload upon most require
15755 cycles during boostrapping.
15756
15757 2002-11-27 Jason Rumney <jasonr@gnu.org>
15758
15759 * fileio.c (Finsert_file_contents): Give a more appropriate error
15760 for files bigger than 2Gb when off_t is 32 bit.
15761
15762 * dired.c (Ffile_attributes): Don't return negative file sizes for
15763 files bigger than 2Gb when off_t is 32 bit.
15764
15765 2002-11-27 Dave Love <fx@gnu.org>
15766
15767 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15768
15769 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
15770 Test GETPGRP_VOID instead.
15771 [BSD_TERMIOS]: Remove definitions (never used).
15772
15773 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
15774 Don't define.
15775 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15776
15777 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
15778
15779 2002-11-25 Jason Rumney <jasonr@gnu.org>
15780
15781 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
15782 supported.
15783
15784 2002-11-25 Dave Love <fx@gnu.org>
15785
15786 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
15787
15788 * Makefile.in (TEMACS_LDFLAGS): Update last change.
15789
15790 2002-11-25 Andreas Schwab <schwab@suse.de>
15791
15792 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
15793
15794 2002-11-24 Steven Tamm <steventamm@mac.com>
15795
15796 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
15797 determine the size of pointers alloced in unexed space instead
15798 of using possibly invalid emacs_zone pointers. This fixes the
15799 binary incompatibility problems caused by updates to libSystem.B.
15800
15801 2002-11-24 Richard M. Stallman <rms@gnu.org>
15802
15803 * search.c (Fstring_match): Doc fix.
15804
15805 * callint.c (Fcall_interactively): If a command fails because
15806 `*' detects a read-only buffer, but RECORD_FLAG is set,
15807 record it anyway if the args don't actually do tty input.
15808
15809 2002-11-22 Dave Love <fx@gnu.org>
15810
15811 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
15812
15813 * keyboard.c (interrupt_signal): Provide forward declaration.
15814 (kbd_buffer_store_event): Don't declare interrupt_signal.
15815
15816 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
15817
15818 2002-11-21 Richard M. Stallman <rms@gnu.org>
15819
15820 * eval.c (interactive_p): Skip any number of bytecode
15821 and special form frames, in any order.
15822
15823 2002-11-20 Jason Rumney <jasonr@gnu.org>
15824
15825 * w32fns.c (convert_mono_to_color_image): New function.
15826 (xbm_load, xbm_load_image): Use it when foreground or background
15827 is explicitly set.
15828
15829 2002-11-19 Dave Love <fx@gnu.org>
15830
15831 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
15832
15833 2002-11-18 Jason Rumney <jasonr@gnu.org>
15834
15835 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
15836 (XPutPixel): Swap blue and red.
15837 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
15838 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
15839 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
15840 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
15841
15842 2002-11-18 Dave Love <fx@gnu.org>
15843
15844 * m/orion105.h (HAVE_ALLOCA): Don't define.
15845
15846 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
15847
15848 * m/intel386.h: Don't include alloca.h or define alloca.
15849
15850 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
15851 malloc, realloc, calloc.
15852
15853 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
15854 (bcmp): Don't define.
15855
15856 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
15857
15858 * m/amdahl.h: Don't define LIB_STANDARD.
15859
15860 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
15861
15862 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
15863
15864 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
15865 Don't include alloca.h.
15866
15867 * s/aix3-2.h (HAVE_FSYNC): Don't define.
15868
15869 * regex.c (_GNU_SOURCE): Don't define.
15870
15871 * process.c (_GNU_SOURCE): Don't define.
15872
15873 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
15874
15875 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
15876
15877 * s/sol2-8.h: Include sol2-6.h.
15878
15879 2002-11-18 Miles Bader <miles@gnu.org>
15880
15881 * dispextern.h (struct face): Add `overstrike' field.
15882 * xterm.c (x_draw_glyph_string_foreground)
15883 (x_draw_composite_glyph_string_foreground): Implement overstriking.
15884 * xfaces.c (load_face_font): Set `face->overstrike' based on
15885 result from choose_face_font.
15886 (best_matching_font, choose_face_font): Add `needs_overstrike'
15887 argument, and use it to return whether overstriking is desirable
15888 for this face/font combo.
15889 (set_font_frame_param: Pass new argument to choose_face_font.
15890
15891 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
15892
15893 This change is my fix for the following entry in etc/PROBLEMS:
15894 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
15895 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
15896
15897 * w32.c: Added wrapper functions around the win32 API functions
15898 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
15899 GetSidIdentifierAuthority. These wrapper functions serve two
15900 purposes:
15901 1. They ensure that the wrapped function can never be called
15902 when Emacs is running on an operating system on which they are
15903 not supported (Microsoft Windows 95 / 98 / ME).
15904 2. They call the wrapped functions via function pointers rather
15905 than calling them directly. This avoids taking advantage of the
15906 undocumented fact that although these functions are not supported
15907 in the 9x branch of Microsoft Windows, the functions do exist in
15908 the version of advapi32.dll that is found in the 9x branch of
15909 Microsoft Windows.
15910
15911 * w32.c (init_user_info): Replace the calls to the win32 API
15912 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
15913 and GetSidIdentifierAuthority with calls to the newly added
15914 wrapper functions.
15915
15916 * w32.h: Added extern declarations for the following functions:
15917 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
15918 syms_of_w32menu, and void syms_of_fontset.
15919
15920 * w32fns.c (w32_wnd_proc): Add code to reinitialize the
15921 function pointer track_mouse_event_fn in the handler for the
15922 WM_SETFOCUS message.
15923
15924 * w32menu.c (initialize_frame_menubar): Add code to
15925 reinitialize the function pointers set_menu_item_info and
15926 get_menu_item_info.
15927
15928 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
15929
15930 * sound.c: Added a partial implementation of play-sound-internal
15931 for Microsoft Windows. Added various #ifdef / #else / #endif
15932 code blocks to separate the code that will compile under
15933 Microsoft Windows from the code that is specific to GNU/Linux.
15934 Moved several blocks of code around to make this separation of code
15935 into Windows compatible and GNU/Linux compatible code blocks easier.
15936
15937 * makefile.w32-in: Include sound.c and link with WinMM.lib.
15938
15939 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
15940 added support for play-sound-internal under Windows would be
15941 included in the build of Emacs.
15942
15943 2002-11-16 Jason Rumney <jasonr@gnu.org>
15944
15945 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
15946
15947 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
15948
15949 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
15950
15951 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
15952 (adjust_point_for_property): Move out of display and invisible even if
15953 we were already inside before (in case a property was added while
15954 we weren't looking). Be more careful when handling invisible props.
15955 Skip invisible text as if it really wasn't there at all.
15956
15957 2002-11-15 Jason Rumney <jasonr@gnu.org>
15958
15959 * w32term.c (x_draw_image_foreground)
15960 (w32_draw_image_foreground_1): Use standard copy and invert
15961 operations to draw images.
15962
15963 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
15964 depth of 1.
15965 (xbm_read_bitmap_data): Invert bits as xbm is read in.
15966 (XPutPixel): Don't invert bits here.
15967
15968 2002-11-15 Jason Rumney <jasonr@gnu.org>
15969
15970 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
15971 (w32_draw_image_foreground_1): Handle image masks.
15972 (x_draw_image_glyph_string): Don't BitBlt transparently.
15973
15974 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
15975 (x_from_xcolors): Adjust RGB values for W32.
15976 (image_background, image_background_transparent)
15977 (postprocess_image, x_to_xcolors, x_disable_image)
15978 (x_build_heuristic_mask): Adapt for W32 and enable.
15979 (x_create_x_image_and_pixmap): Mark images with palettes as such.
15980 (xbm_load): Remove unused variable.
15981
15982 2002-11-14 Richard M. Stallman <rms@gnu.org>
15983
15984 * buffer.c (syms_of_buffer): Doc fix.
15985
15986 2002-11-14 Dave Love <fx@gnu.org>
15987
15988 * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
15989
15990 * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
15991 * xmenu.c (unuse_menu_items, digest_single_submenu):
15992 * xfns.c (x_put_x_image):
15993 * xdisp.c (message2_nolog, set_message):
15994 * undo.c (record_point):
15995 * terminfo.c (tparam):
15996 * syntax.c (scan_sexps_forward):
15997 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15998 * composite.c (update_compositions):
15999 * cm.c (calccost, cmgoto):
16000 * charset.c (c_string_width): Declare all args (per C99).
16001
16002 * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
16003
16004 * lisp.h (get_specified_cursor_type, get_window_cursor_type):
16005 Don't declare.
16006
16007 * emacs.c (main) [!VMS]: Avoid third arg.
16008
16009 * fns.c (Fcopy_sequence): Doc fix.
16010 (Fmap_char_table): Cast `call2'.
16011
16012 2002-11-14 Francesco Potorti` <pot@gnu.org>
16013
16014 * s/sol2-8.h: New file.
16015
16016 2002-11-14 Kim F. Storm <storm@cua.dk>
16017
16018 * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
16019 dependency on `risky-local-variable' and the :propertize form.
16020
16021 2002-11-12 Stefan Monnier <monnier@cs.yale.edu>
16022
16023 * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
16024
16025 * syntax.c (scan_sexps_forward): Undo last patch.
16026 Use a more obvious fix: check eob before updating the syntax table.
16027
16028 2002-11-09 Stefan Monnier <monnier@cs.yale.edu>
16029
16030 * syntax.c (scan_sexps_forward): Update syntax table before reading
16031 a char rather than after so we don't update the table past eob.
16032
16033 2002-11-09 Dave Love <fx@gnu.org>
16034
16035 * buffer.c (Fset_buffer_major_mode): Fix last change.
16036
16037 * regex.c (regexec): Fix pmatch declaration.
16038
16039 * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
16040
16041 * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
16042 to self-inserting characters.
16043 (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
16044
16045 * coding.c (Vtranslation_table_for_input): New.
16046 (syms_of_coding): DEFVAR it.
16047
16048 2002-11-08 Juanma Barranquero <lektu@terra.es>
16049
16050 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
16051 window.
16052
16053 2002-11-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
16054
16055 * process.c (Fformat_network_address): Remove unused locals p,
16056 cp, and i.
16057
16058 2002-11-06 Dave Love <fx@gnu.org>
16059
16060 * buffer.c (Qset_buffer_major_mode_hook): New.
16061 (Fset_buffer_major_mode): Use it.
16062
16063 2002-11-06 Richard M. Stallman <rms@gnu.org>
16064
16065 * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
16066 and stop_polling.
16067
16068 * process.c (wait_reading_process_input):
16069 Test POLLING_PROBLEM_IN_SELECT, not hpux.
16070 Avoid initialization for auto Lisp_Object var.
16071
16072 * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
16073
16074 * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
16075
16076 2002-11-05 Richard M. Stallman <rms@gnu.org>
16077
16078 * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
16079
16080 * callint.c (Fcall_interactively): New local filter_specs.
16081 (Fcall_interactively): Check for progn as well as let.
16082 Add a gcpro.
16083 (Qprogn): New variable.
16084 (syms_of_callint): Staticpro and init Qprogn.
16085
16086 2002-11-04 John Paul Wallington <jpw@shootybangbang.com>
16087
16088 * lread.c (Feval_buffer): Doc fix.
16089
16090 2002-11-04 Dave Love <fx@gnu.org>
16091
16092 * keyboard.c (read_char): Always translate iff
16093 Vkeyboard_translate_table is a char table and c is valid.
16094
16095 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
16096 and fix C types.
16097
16098 2002-11-03 Stefan Monnier <monnier@cs.yale.edu>
16099
16100 * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
16101
16102 * editfns.c (get_pos_property): Don't hardcode Qfield.
16103
16104 * keyboard.c (adjust_point_for_property): Handle `display' prop on
16105 overlays. Also handle `invisible' prop.
16106
16107 2002-11-02 Stefan Monnier <monnier@cs.yale.edu>
16108
16109 * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
16110 (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
16111
16112 2002-11-01 Andreas Schwab <schwab@suse.de>
16113
16114 * editfns.c (Fmessage): Revert last change to properly handle %%.
16115
16116 2002-11-01 Stefan Monnier <monnier@cs.yale.edu>
16117
16118 * xmenu.c (unuse_menu_items): New fun.
16119 (menu_items_inuse): New var.
16120 (syms_of_xmenu): Initialize it.
16121 (init_menu_items): Use it to detect re-entrance.
16122 (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
16123 (Fx_popup_menu): Remove spurious XSETFRAME.
16124
16125 * editfns.c (find_field): Make an exception for nil fields.
16126
16127 2002-11-01 Dave Love <fx@gnu.org>
16128
16129 * m/gec63.h: Deleted.
16130
16131 2002-10-31 Dave Love <fx@gnu.org>
16132
16133 * xterm.c (XTread_socket): Fix last change.
16134 (xaw_scroll_callback): Cast call_data to long to avoid warning.
16135
16136 2002-10-31 Stefan Monnier <monnier@cs.yale.edu>
16137
16138 * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
16139
16140 2002-10-30 Stefan Monnier <monnier@cs.yale.edu>
16141
16142 * editfns.c (overlays_around, get_pos_property): New funs.
16143 (find_field): Use them.
16144 Also be careful not to modify POS before its last use.
16145 (Fmessage): Don't Fformat if there's nothing to format.
16146
16147 2002-10-30 Dave Love <fx@gnu.org>
16148
16149 * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
16150 [HAVE_PTY_H]; Include pty.h.
16151
16152 * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
16153
16154 * xterm.c (Qeql): Declare.
16155 (Vx_keysym_table): New.
16156 (syms_of_xterm): Initialize it.
16157 (XTread_socket): Use it. Deal with ASCII keysyms.
16158 (XSetIMValues) [HAVE_X11R6]: Prototype.
16159
16160 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
16161 (lispy_kana_keys): Comment out.
16162 (make_lispy_event) [XK_kana_A]: Comment out.
16163 (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
16164 Fix sprintf call.
16165
16166 * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
16167 regexp.h change).
16168 (TERMINFO, LIBS_TERMCAP): Define.
16169
16170 * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
16171 (bcmp): Define conditional on HAVE_BCMP.
16172 (NO_SIOCTL_H): Don't define.
16173 (TIOCSIGSEND): Don't make conditional on IRIX6.
16174
16175 * s/sol2-5.h: Don't include strings.h.
16176 (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
16177
16178 * s/irix6-0.h (IRIX6): Don't define.
16179 (bcopy, bcmp, bzero): Don't undef.
16180
16181 * s/irix6-5.h: Don't include strings.h.
16182 (IRIX6): Don't define.
16183 (bcopy, bcmp, bzero): Don't undef.
16184
16185 * syntax.c (Fforward_comment): Doc fix.
16186
16187 2002-10-29 Kim F. Storm <storm@cua.dk>
16188
16189 * process.c (Fsignal_process): Allow PROCESS to be specified by
16190 name in addition to pid (as integer or string).
16191
16192 2002-10-28 Harald Maier <Harald.Maier.BW@t-online.de> (tiny change)
16193
16194 * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
16195 environments.
16196
16197 2002-10-27 Kim F. Storm <storm@cua.dk>
16198
16199 * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
16200
16201 * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
16202
16203 * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
16204
16205 * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
16206
16207 2002-10-26 Richard M. Stallman <rms@gnu.org>
16208
16209 * editfns.c (Fformat): Detect invalid format letters for floats.
16210
16211 2002-10-25 Kenichi Handa <handa@m17n.org>
16212
16213 * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
16214 (x_set_title): Likewise.
16215
16216 2002-10-25 Juanma Barranquero <lektu@terra.es>
16217
16218 * macgui.h:
16219 * w32gui.h: Remove definition of XColor.
16220
16221 * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
16222
16223 2002-10-24 Kim F. Storm <storm@cua.dk>
16224
16225 * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
16226 Callers changed (supply dummy arg).
16227
16228 * lisp.h (get_window_cursor_type): Update prototype.
16229
16230 * w32term.c (x_display_and_set_cursor): Get active_cursor from
16231 get_window_cursor_type to track system caret.
16232
16233 2002-10-24 Kim F. Storm <storm@cua.dk>
16234
16235 * process.c (Fformat_network_address): New function.
16236 (syms_of_process): Defsubr it.
16237 (list_processes_1): Use it to format :local/:remote address if
16238 service/host is not set; before Emacs would crash in that case.
16239 (Fmake_network_process): Don't use Ffind_operation_coding_system
16240 to setup coding system if host or service is not set.
16241
16242 2002-10-23 Juanma Barranquero <lektu@terra.es>
16243
16244 Patch suggested by Jay Finger <jay_finger@hotmail.com>.
16245
16246 * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
16247 COLORREF.
16248
16249 * macgui.h:
16250 * w32gui.h: Add definition of XColor.
16251
16252 * macfns.c:
16253 * w32fns.c:
16254 * xfaces.c: Remove definition of XColor.
16255
16256 2002-10-22 Stefan Monnier <monnier@cs.yale.edu>
16257
16258 * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
16259
16260 * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
16261 Only ignore truly dedicated windows. For UNSHOW_BUFFER, delete the
16262 window if it is dedicated.
16263 (Fshrink_window): Add preserve_before as was done for enlarge_window.
16264 (Vspecial_display_function): Update docstring.
16265
16266 * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
16267 (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
16268 (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
16269
16270 2002-10-21 Stefan Monnier <monnier@cs.yale.edu>
16271
16272 * casefiddle.c (casify_region): Don't treat a prefix char as part
16273 of a word when at the beginning.
16274
16275 2002-10-17 Juanma Barranquero <lektu@terra.es>
16276
16277 * lread.c (syms_of_lread): Fix typos.
16278
16279 2002-10-17 Dave Love <fx@gnu.org>
16280
16281 * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
16282
16283 2002-10-16 Richard M. Stallman <rms@gnu.org>
16284
16285 * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
16286
16287 2002-10-14 Juanma Barranquero <lektu@terra.es>
16288
16289 * w16select.c (syms_of_win16select): Fix docstring for
16290 `selection-coding-system'.
16291
16292 * w32select.c (syms_of_w32select): Likewise.
16293
16294 2002-10-14 Stefan Monnier <monnier@cs.yale.edu>
16295
16296 * syntax.c (scan_lists): Don't get fooled by a symbol ending with
16297 a backslash-quoted char.
16298 (scan_lists, scan_sexps_forward): Pacify the compiler.
16299
16300 2002-10-13 Richard M. Stallman <rms@gnu.org>
16301
16302 * window.c (window_scroll): Set immediate_quit.
16303
16304 * print.c (print): When backquote form is the car of a list,
16305 output in old style. Use old_backquote_output to output all
16306 comma forms inside it in old style too.
16307
16308 * buffer.h (struct buffer): Move `undo_list' down below `name'.
16309
16310 2002-10-11 Markus Rost <rost@math.ohio-state.edu>
16311
16312 * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
16313 batch mode).
16314
16315 * lread.c (Fload): Doc fix (load-suffixes).
16316
16317 2002-10-10 Steven Tamm <steventamm@mac.com>
16318
16319 * macterm.c (syms_of_macterm, mac_get_mouse_btn):
16320 Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
16321 Also switch the default to Qnil from Qt.
16322
16323 2002-10-08 Kenichi Handa <handa@m17n.org>
16324
16325 * coding.c (code_convert_region): When we need more GAP for
16326 conversion, pay attention to the case that coding->produced is not
16327 greater than coding->consumed.
16328
16329 2002-10-07 Richard M. Stallman <rms@gnu.org>
16330
16331 * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
16332
16333 2002-10-06 Andrew Choi <akochoi@shaw.ca>
16334
16335 * macmenu.c (mac_menu_show): Add j to count menu items; match
16336 menu_item_selection to it to find selected item.
16337
16338 2002-10-06 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16339
16340 * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
16341 cases. The correct fix is to pass ReparentNotify to Xt.
16342 The shell widget interprets ConfigureNotify differently depending
16343 on if it has been reparented or not.
16344
16345 2002-10-05 Markus Rost <rost@math.ohio-state.edu>
16346
16347 * editfns.c (Fformat_time_string): Doc fix.
16348
16349 2002-10-05 John Paul Wallington <jpw@shootybangbang.com>
16350
16351 * fns.c (Flength): Doc fix.
16352
16353 2002-10-04 Stefan Monnier <monnier@cs.yale.edu>
16354
16355 * keyboard.c (keyremap): New struct.
16356 (read_key_sequence): Use it: globally replace keytran_foo with
16357 keytran.foo and fkey_foo with fkey.foo. Rename temp vars
16358 keytran_next and fkey_next to just `next'.
16359
16360 2002-10-04 Steven Tamm <steventamm@mac.com>
16361
16362 * macterm.c (keycode_to_xkeysym_table): Change return to be
16363 treated like an X keysym.
16364
16365 2002-10-03 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
16366
16367 * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
16368 and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
16369 This is to also handle x/y changes that occur because of a resize.
16370
16371 2002-10-02 John Paul Wallington <jpw@shootybangbang.com>
16372
16373 * frame.c (Vdelete_frame_functions): New variable.
16374 (syms_of_frame): Initialize and defvar it.
16375 (Fdelete_frame): Use it instead of delete-frame-hook. Don't run
16376 it when frame's `tooltip' parameter is non-nil.
16377
16378 * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
16379
16380 * w32fns.c (x_create_tip_frame): Likewise.
16381
16382 * macfns.c (x_create_tip_frame): Likewise.
16383
16384 2002-09-30 Kenichi Handa <handa@m17n.org>
16385
16386 * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
16387 -1 before calling ccl_driver.
16388
16389 * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
16390 Only when it is non-nil, handle composition sequence.
16391 (setup_coding_system) <0>: Don't force composition handling.
16392
16393 * Makefile.in (lisp, shortlisp): Add utf-16.elc
16394
16395 2002-09-29 Richard M. Stallman <rms@gnu.org>
16396
16397 * search.c (Freplace_match): Adjust match data for the substitution
16398 just made in the buffer.
16399
16400 * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
16401 (redisplay_internal): Use them. Do RESUME_POLLING at end of function.
16402
16403 2002-09-27 Richard M. Stallman <rms@gnu.org>
16404
16405 * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
16406 (read_char): Use them. Do all exits thru the end of the function.
16407
16408 2002-09-27 Kenichi Handa <handa@etl.go.jp>
16409
16410 * xfaces.c (try_font_list): Pay attention to the case that FAMILY
16411 is nil.
16412
16413 2002-09-26 Richard M. Stallman <rms@gnu.org>
16414
16415 * regex.h (__restrict_arr): Don't define if already defined.
16416
16417 * coding.c (run_pre_post_conversion_on_str):
16418 Save and restore Vdeactivate_mark.
16419
16420 2002-09-26 John Paul Wallington <jpw@shootybangbang.com>
16421
16422 * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
16423
16424 2002-09-26 Kenichi Handa <handa@etl.go.jp>
16425
16426 * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY. If it is
16427 nonzero, try face's family at first. Otherwise try FAMILY at first.
16428 (choose_face_font): If C is a single byte char or latin-1, call
16429 try_font_list with PREFER_FACE_FAMILY 1.
16430
16431 2002-09-21 Richard M. Stallman <rms@gnu.org>
16432
16433 * window.c (select_window_1): Don't select frame.
16434 Set frame's selected window only when frame itself is selected.
16435 (Fselect_window): Doc fix.
16436
16437 2002-09-18 Kim F. Storm <storm@cua.dk>
16438
16439 * process.c (make-network-process): Doc fix (there is no
16440 network-server-log-function hook).
16441
16442 2002-09-18 Richard M. Stallman <rms@gnu.org>
16443
16444 * print.c (print): Clear out the unused parts of Vprint_number_table.
16445 (syms_of_print): Doc fix for `print-number-table'.
16446
16447 * unexelf.c (unexec): Undo previous change.
16448
16449 2002-09-17 Andreas Schwab <schwab@suse.de>
16450
16451 * m/alpha.h [LINUX]: Don't define DATA_START.
16452
16453 2002-09-16 Dave Love <fx@gnu.org>
16454
16455 * unexelf.c (unexec): Deal with .got, reinstating change from
16456 25-08-1999.
16457
16458 2002-09-13 Richard M. Stallman <rms@gnu.org>
16459
16460 * s/sol2-6.h (UNEXEC): Comment out definition.
16461
16462 * unexsol.c (unexec): Don't downcase first letter of error msg.
16463
16464 * xfaces.c (Fcolor_supported_p): Just one arg is required.
16465
16466 2002-09-12 Markus Rost <rost@math.ohio-state.edu>
16467
16468 * unexsol.c: Include buffer.h, charset.h, coding.h.
16469
16470 2002-09-11 Richard M. Stallman <rms@gnu.org>
16471
16472 * unexsol.c: Don't use report_file_error; do it by hand
16473 using dlerror.
16474
16475 * process.c (wait_reading_process_input, both versions):
16476 Before calling turn_on_atimers, call stop_polling.
16477
16478 * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
16479
16480 * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
16481 we go to too_near_end, call clear_glyph_matrix.
16482 (redisplay_window): After make_cursor_line_fully_visible,
16483 call clear_glyph_matrix and bypass `goto done'.
16484
16485 * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
16486 and we have non-toolkit scroll bars, return nil for scroll-bar-width.
16487
16488 2002-09-10 Richard M. Stallman <rms@gnu.org>
16489
16490 * fileio.c (Fdo_auto_save): Catch error making directory.
16491 Only call push_message if we need to.
16492 At the same time, make an unwind-protect to pop it.
16493 Rename local message_p to old_message_p.
16494 (do_auto_save_make_dir, do_auto_save_eh): New functions.
16495 (do_auto_save_unwind): Don't call pop_message.
16496
16497 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
16498
16499 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
16500
16501 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
16502
16503 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
16504
16505 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
16506
16507 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
16508 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
16509 (re_match_2_internal): Be more careful with infinite loops.
16510
16511 2002-09-10 Kim F. Storm <storm@cua.dk>
16512
16513 * macros.c (end_kbd_macro): New function.
16514 (Fend_kbd_macro): Use it.
16515
16516 * macros.h (end_kbd_macro): Declare extern.
16517
16518 * keyboard.c (Fdiscard_input): If defining keyboard macro,
16519 end and save it instead of discarding it.
16520
16521 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
16522
16523 * s/sol2-6.h: Fix typo. Add comment.
16524
16525 2002-09-09 Richard M. Stallman <rms@gnu.org>
16526
16527 * regex.c (regnum_t): Use signed int, not unsigned int.
16528
16529 * s/sol2-6.h: New file.
16530
16531 * s/sol2-5.h (UNEXEC): Definition deleted.
16532
16533 2002-09-08 Kim F. Storm <storm@cua.dk>
16534
16535 * macros.c (executing_macro_index): Change type to EMACS_INT.
16536 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
16537
16538 * macros.h (executing_macro_index): Change type to EMACS_INT.
16539
16540 2002-09-06 Richard M. Stallman <rms@gnu.org>
16541
16542 * casetab.c (set_case_table): Make canon table point to eqv table.
16543
16544 2002-09-06 Juanma Barranquero <lektu@terra.es>
16545
16546 * coding.c (syms_of_coding): Fix spacing.
16547
16548 * composite.c (Fcompose_region_internal)
16549 (Fcompose_string_internal): Likewise.
16550
16551 * data.c (Flsh): Likewise.
16552
16553 * fontset.c (Fset_fontset_font): Likewise.
16554
16555 * macfns.c (Fx_server_max_request_size): Likewise.
16556
16557 * w16select.c (syms_of_win16select): Likewise.
16558
16559 * w32select.c (syms_of_w32select): Likewise.
16560
16561 * xselect.c (syms_of_xselect): Likewise.
16562
16563 2002-09-05 Richard M. Stallman <rms@gnu.org>
16564
16565 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
16566 call EXTEND_RANGE_TABLE and return a proper value.
16567 (set_image_of_range): Don't call set_image_of_range_1
16568 if no TRANSLATE or if range includes all of Latin-1.
16569 Only call it for the Latin-1 part of the range.
16570 For other cases, make two separate ranges,
16571 one for the original specified characters and one for
16572 their case-conversions.
16573
16574 2002-09-04 Richard M. Stallman <rms@gnu.org>
16575
16576 * s/sol2-5.h (UNEXEC): Use unexsol.o.
16577
16578 * window.c (displayed_window_lines): Correct for one-off bug
16579 in HEIGHT on non-window displays.
16580
16581 * regex.c (set_image_of_range_1): New function.
16582 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
16583 Return a value to indicate running out of memory.
16584 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
16585 (extend_range_table_work_area): New subroutine.
16586 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
16587 Different calling conventions, and used from set_image_of_range{,_1}.
16588 (IMMEDIATE_QUIT_CHECK): Definitions moved.
16589
16590 2002-09-04 Juanma Barranquero <lektu@terra.es>
16591
16592 * makefile.w32-in: All dependencies updated.
16593
16594 2002-09-01 Richard M. Stallman <rms@gnu.org>
16595
16596 * unexsol.c: New file.
16597
16598 * xfns.c (Qbox): Declare external, don't define.
16599
16600 * xdisp.c (redisplay_window) <force-start case>:
16601 If point is on semi-visible last line, reposition
16602 it at previous line.
16603
16604 * alloc.c (display_malloc_warning): Use display-warning.
16605 (malloc_warning_1): Function deleted.
16606
16607 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
16608
16609 * lread.c (read1): Handle #! by skipping the line.
16610
16611 2002-08-31 Richard M. Stallman <rms@gnu.org>
16612
16613 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
16614 Don't include LDFLAGS.
16615 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
16616
16617 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
16618
16619 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
16620 member of x_display_info unless we compile for some window system.
16621
16622 2002-08-31 Kim F. Storm <storm@cua.dk>
16623
16624 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
16625 (get_window_cursor_type): Don't use them.
16626 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
16627
16628 2002-08-30 Kenichi Handa <handa@etl.go.jp>
16629
16630 * xdisp.c (get_next_display_element): Fix previous change.
16631
16632 2002-08-30 Andrew Choi <akochoi@shaw.ca>
16633
16634 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
16635 (expose_window): Use it to fix the display of overlapping
16636 rows (merge code from xterm.c).
16637
16638 * macfns.c (Qbox): Add extern declaration.
16639
16640 2002-08-30 Juanma Barranquero <lektu@terra.es>
16641
16642 * w32fns.c (Qbox): Make extern.
16643 (syms_of_w32fns): Remove initialization of Qbox.
16644
16645 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
16646
16647 * xfns.c (Fx_open_connection): Fix error message.
16648
16649 2002-08-30 Kim F. Storm <storm@cua.dk>
16650
16651 The following changes consolidates the handling of the cursor
16652 type in xdisp.c, moving duplicate code and functionality from
16653 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
16654
16655 * frame.h (enum text_cursor_kinds): Consolidated here.
16656 Added DEFAULT_CURSOR value.
16657 (struct frame) <desired_cursor, cursor_width>
16658 <blink_off_cursor, blink_off_cursor_width>: New fields.
16659 Consolidated from output_x, output_w32 and output_mac structs.
16660 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16661 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
16662
16663 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
16664 Variables consolidated here.
16665 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
16666 (Vcursor_in_non_selected_windows): Renamed from
16667 cursor_in_non_selected_windows and changed to Lisp_Object.
16668 (syms_of_xdisp): Define and staticpro new and moved variables.
16669 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
16670 consolidated here. Recognize Qhollow setting.
16671 (set_frame_cursor_types): New function to set frame cursor types
16672 based on the frame parameters.
16673 (get_window_cursor_type): New function to calculate new cursor
16674 type and width for the specified window. Based on duplicated
16675 code consolidated here.
16676 Enhancements: cursor-in-non-selected-windows may be a cursor type,
16677 check buffer-local alternate-cursor-type and blink-cursor-alist
16678 before using built-in blink off methods.
16679
16680 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
16681
16682 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
16683 (get_specified_cursor_type, get_window_cursor_type)
16684 (set_frame_cursor_types): Added prototypes.
16685
16686 * macfns.c (x_specified_cursor_type): Removed.
16687 (x_set_cursor_type): Use set_frame_cursor_types.
16688 (Qbar, Qbox): Removed.
16689 (syms_of_macfns): Don't intern or staticpro them.
16690
16691 * macterm.c (x_specified_cursor_type): Remove prototype.
16692 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16693 (x_display_and_set_cursor): Use get_window_cursor_type.
16694 Remove unused local variables cursor_non_selected, active_cursor.
16695 Redraw cursor if hbar cursor width changes.
16696 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
16697
16698 * macterm.h (enum text_cursor_kinds): Removed.
16699 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
16700 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16701 (FRAME_DESIRED_CURSOR): Macro removed.
16702
16703 * w32fns.c (Vblink_cursor_alist): Removed.
16704 (Qbar, Qhbar, Qbox, Qhollow): Removed.
16705 (syms_of_w32fns): Don't intern, staticpro, or define them.
16706 (x_specified_cursor_type): Removed.
16707 (x_set_cursor_type): Use set_frame_cursor_types.
16708
16709 * w32term.c (x_specified_cursor_type): Remove prototype.
16710 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16711 (x_display_and_set_cursor): Use get_window_cursor_type.
16712 Remove unused local variables cursor_off_state.
16713 Redraw cursor if hbar cursor width changes.
16714 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
16715
16716 * w32term.h (enum text_cursor_kinds): Removed.
16717 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
16718 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16719 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16720 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
16721 (struct w32_display_info) <x_highlight_frame>: Renamed member from
16722 w32_highlight_frame.
16723
16724 * xfns.c (Vblink_cursor_alist): Removed.
16725 (Qbar, Qhbar, Qbox, Qhollow): Removed.
16726 (syms_of_xfns): Don't intern, staticpro, or define them.
16727 (x_specified_cursor_type): Removed.
16728 (x_set_cursor_type): Use set_frame_cursor_types.
16729
16730 * xterm.c (x_specified_cursor_type): Remove prototype.
16731 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16732 (x_display_and_set_cursor): Use get_window_cursor_type.
16733 Remove unused local variables cursor_off_state.
16734 Redraw cursor if hbar cursor width changes.
16735
16736 * xterm.h (enum text_cursor_kinds): Removed.
16737 (struct output_x) <current_cursor, desired_cursor, cursor_width>
16738 <blink_off_cursor, blink_off_cursor_width>: Members removed.
16739 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16740 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
16741 (x_specified_cursor_type): Remove prototype.
16742
16743 2002-08-28 Richard M. Stallman <rms@gnu.org>
16744
16745 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
16746 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
16747 (Vblink_cursor_alist): New variable.
16748 (syms_of_w32fns): Initialize and defvar it.
16749 (x_specified_cursor_type): Recognize Qbox for filled box.
16750 Exceptions are hollow boxes.
16751 (Qbox, Qhollow): New variables.
16752 (syms_of_w32fns): Initialize and staticpro them.
16753
16754 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
16755 New macros.
16756 (struct w32_output): New fields blink_off_cursor,
16757 blink_off_cursor_width.
16758 (FRAME_CURSOR_WIDTH): New macro.
16759
16760 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
16761 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
16762
16763 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16764 for bar cursor.
16765
16766 * w32term.c (expose_overlaps): New function.
16767 (expose_window): Use it to fix the display of overlapping rows.
16768
16769 2002-08-28 Simon Josefsson <jas@extundo.com>
16770
16771 * xfns.c (Fx_open_connection): Improve help when X connection
16772 fails, xhost is insecure and xauth is better.
16773
16774 2002-08-28 Juanma Barranquero <lektu@terra.es>
16775
16776 * makefile.w32-in: Add missing dependencies on w32term.h and
16777 composite.h.
16778
16779 * emacs.c (USAGE1): Add missing newline.
16780
16781 2002-08-27 Andrew Choi <akochoi@shaw.ca>
16782
16783 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
16784
16785 2002-08-27 Richard M. Stallman <rms@gnu.org>
16786
16787 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
16788 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
16789 (Vblink_cursor_alist): New variable.
16790 (syms_of_xfns): Initialize and defvar it.
16791 (x_specified_cursor_type): Recognize Qbox for filled box.
16792 Exceptions are hollow boxes.
16793 (Qbox, Qhollow): New variables.
16794 (syms_of_xfns): Initialize and staticpro them.
16795
16796 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
16797 New macros.
16798 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
16799
16800 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
16801 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
16802
16803 * emacs.c (main): Handle --script.
16804 (USAGE1): Mention --script.
16805 (standard_args): Define sort order for --script.
16806
16807 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
16808
16809 * xdisp.c (redisplay_updating_p): Variable removed.
16810 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
16811 New variables.
16812 (init_iterator): Don't free realized faces if
16813 inhibit_free_realized_faces is set.
16814 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
16815 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
16816 initialize Qinhibit_free_realized_faces.
16817
16818 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
16819 when iterator is adding glyphs to a glyph matrix.
16820
16821 2002-08-27 Kenichi Handa <handa@etl.go.jp>
16822
16823 * xdisp.c (get_next_display_element): In unibyte case, don't use
16824 octal form for such eight-bit characters that can be converted to
16825 multibyte char.
16826
16827 2002-08-26 Kim F. Storm <storm@cua.dk>
16828
16829 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
16830 foreground and background colors. From Joe Buehler.
16831
16832 2002-08-26 Miles Bader <miles@gnu.org>
16833
16834 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
16835
16836 2002-08-25 Andrew Choi <akochoi@shaw.ca>
16837
16838 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
16839 defined instead of MAC_OSX.
16840
16841 * s/darwin.h (select): Define select to sys_select only if
16842 HAVE_CARBON is defined.
16843 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
16844 (DONT_REOPEN_PTY): #def it.
16845
16846 * macterm.c (XTread_socket): Remove code to call
16847 SendEventToEventTarget for keys with command modifiers when
16848 mac_command_key_is_meta is nil.
16849
16850 2002-08-24 Andreas Schwab <schwab@suse.de>
16851
16852 * eval.c (Fdefvar): Fix last change.
16853
16854 2002-08-23 Richard M. Stallman <rms@gnu.org>
16855
16856 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
16857 Record variables in load history as (defvar . VAR).
16858 (Fdefvar): Don't record in load history if no initial value.
16859 (Qdefvar): New variable.
16860 (syms_of_eval): Init and staticpro it.
16861
16862 * lread.c (syms_of_lread): Doc fix.
16863 (build_load_history): Use Fmember to see if a definition
16864 is already in the Vload_history element.
16865
16866 * process.c (Fstart_process): Remove /: from program name.
16867
16868 * emacs.c (decode_env_path): Don't add /: if file name handler
16869 has a `safe-magic' property.
16870
16871 * callproc.c (Fcall_process): Remove /: from program name.
16872
16873 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
16874
16875 * regex.c (PATFETCH): Remove the translating fetch.
16876 (PATFETCH_RAW): Rename to PATFETCH.
16877 (set_image_of_range): New fun.
16878 (SET_RANGE_TABLE_WORK_AREA): Use it.
16879 (regex_compile): Don't translate the pattern chars so eagerly.
16880 Only do it when inserting an `exactn' bytecode or when handling
16881 a char-range.
16882 (mutually_exclusive_p): Avoid empty statement.
16883
16884 2002-08-22 Kim F. Storm <storm@cua.dk>
16885
16886 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
16887 end up on a partially visible line; this reverts a specific part
16888 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
16889 display error which has been reported several times now.
16890 However it introduces the problem that changes was supposed to fix.
16891 See my comments in the source if you want to debug this further.
16892
16893 2002-08-20 Kenichi Handa <handa@etl.go.jp>
16894
16895 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16896
16897 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
16898
16899 * msdos.c (croak): Add `void' to definition.
16900
16901 * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
16902 Don't define them, they are defined in msdos.c.
16903
16904 * mem-limits.h [MSDOS]: Declare etext.
16905
16906 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
16907 `const' since CORRECT_DIR_SEPS modifies its target.
16908
16909 2002-08-19 Kim F. Storm <storm@cua.dk>
16910
16911 * keyboard.c (Fclear_this_command_keys): Add optional arg
16912 KEEP-RECORD to avoid clearing lossage when we just want to clear
16913 the current key sequence (kmacro needs this).
16914
16915 2002-08-19 Kenichi Handa <handa@localhost>
16916
16917 * composite.c (run_composition_function): Call FUNC if it is fboundp.
16918
16919 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
16920 cons, return Qnil.
16921
16922 2002-08-17 Richard M. Stallman <rms@gnu.org>
16923
16924 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
16925
16926 * sysdep.c [!VMS]: Include sys/files.h.
16927
16928 * editfns.c (save_restriction_restore): Defend from unchained marker.
16929
16930 * buffer.c (overlays_at): Handle extending vec uniformly.
16931 (overlays_in): Handle extending vec from length 0 as in overlays_at.
16932
16933 2002-08-15 Andrew Choi <akochoi@shaw.ca>
16934
16935 * mac.c (init_mac_osx_environment): New function.
16936
16937 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
16938
16939 2002-08-14 Kim F. Storm <storm@cua.dk>
16940
16941 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
16942 executing macro before appending to it (when used from Lisp).
16943 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
16944 which is called prior to each iteration of macro (for kmacro.el).
16945 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
16946
16947 * lisp.h (Fexecute_kbd_macro): Update prototype.
16948
16949 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
16950
16951 2002-08-14 Kenichi Handa <handa@etl.go.jp>
16952
16953 * xselect.c (QUTF8_STRING): New variable.
16954 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
16955 (x_atom_to_symbol): Likewise.
16956 (x_get_local_selection): New argument local_request. If it is
16957 nonzero, call handler_fn with the second arg nil.
16958 (x_handle_selection_request): Call x_get_local_selection with
16959 local_request 0.
16960 (lisp_data_to_selection_data): Don't encode the string here.
16961 (Fx_get_selection_internal): Call x_get_local_selection with
16962 local_request 1.
16963 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
16964
16965 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
16966
16967 * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
16968
16969 2002-08-13 Richard M. Stallman <rms@gnu.org>
16970
16971 * minibuf.c (Fminibufferp): New function.
16972 (syms_of_minibuf): Defsubr it.
16973 (Fminibuffer_prompt_end): Handle non-minibuffers specially.
16974
16975 2002-08-13 Gerd Moellmann <gerd.moellmann@t-online.de>
16976
16977 * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
16978
16979 2002-08-12 Richard M. Stallman <rms@gnu.org>
16980
16981 * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
16982 [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
16983 (WSTOPSIG, WTERMSIG): Define each one independently if not defined
16984 already.
16985
16986 * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
16987
16988 2002-08-11 Andrew Choi <akochoi@shaw.ca>
16989
16990 * macterm.c (XTmouse_position): Check wp with is_emacs_window.
16991 (Vmac_pass_command_to_system): New variable.
16992 (Vmac_pass_control_to_system): New variable.
16993 (do_mouse_moved): Check wp with is_emacs_window.
16994 (XTread_socket): Check window_ptr with is_emacs_window.
16995 Call FrontNonFloatingWindow instead of FrontWindow. Send keydown
16996 events back to Mac Toolbox for processing, depending on values of
16997 Vmac_pass_command_to_system and Vmac_pass_control_to_system.
16998 (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
16999 Vmac_pass_control_to_system.
17000
17001 2002-08-10 Kenichi Handa <handa@etl.go.jp>
17002
17003 * coding.c (unencodable_char_position): New function.
17004 (Funencodable_char_position): New function.
17005 (syms_of_coding): Defsubr Funencodable_char_position.
17006
17007 2002-08-10 Andrew Choi <akochoi@shaw.ca>
17008
17009 * mac.c (sys_select) [MAC_OSX]: New function.
17010
17011 * macterm.c (MakeMeTheFrontProcess): New function.
17012 (mac_initialize): Call MakeMeTheFrontProcess.
17013
17014 * s/darwin.h: Define select to sys_select.
17015
17016 2002-08-09 Richard M. Stallman <rms@gnu.org>
17017
17018 * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
17019
17020 2002-08-09 Gerd Moellmann <gerd.moellmann@t-online.de>
17021
17022 * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
17023 end of the buffer.
17024
17025 2002-08-08 Ken Raeburn <raeburn@gnu.org>
17026
17027 * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
17028
17029 * puresize.h (BASE_PURESIZE): Increase to 910000.
17030
17031 2002-08-08 Kenichi Handa <handa@etl.go.jp>
17032
17033 * coding.c (Ffind_operation_coding_system): For write-region, if
17034 VISIT is a filename, make it the target.
17035
17036 2002-08-07 Richard M. Stallman <rms@gnu.org>
17037
17038 * alloc.c (mark_object): Detect long lists for debugging.
17039 (mark_object_loop_halt): New variable.
17040
17041 * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
17042
17043 * data.c (Fmake_variable_frame_local): Doc fix.
17044
17045 2002-08-01 David Ponce <david@dponce.com>
17046
17047 * w32menu.c (local_heap, local_alloc, local_free): New macros.
17048 (malloc_widget_value, free_widget_value)
17049 (w32_free_submenu_strings): Use them.
17050
17051 (push_submenu_start, push_submenu_end, push_left_right_boundary)
17052 (push_menu_pane, push_menu_item, single_keymap_panes)
17053 (single_menu_item, Fx_popup_menu, menubar_selection_callback)
17054 (single_submenu, set_frame_menubar)
17055 (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
17056
17057 (Fx_popup_menu): Don't show pop up menu until preceding one is
17058 actually cleaned up. Moved UNGCPRO outside #ifdef HAVE_MENUS block.
17059
17060 * w32menu.c: Changes adapted from xmenu.c
17061 (set_frame_menubar): First parse all submenus,
17062 then make widget_value trees from them.
17063 Don't allocate any widget_value objects
17064 until we are done with the parsing.
17065 (parse_single_submenu): New function.
17066 (digest_single_submenu): New function.
17067 (single_submenu): Function deleted, replaced by those two.
17068
17069 2002-08-04 Andrew Choi <akochoi@shaw.ca>
17070
17071 * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
17072 returns a valid window pointer before proceeding for keyDown and
17073 autoKey events.
17074
17075 2002-08-03 Andrew Choi <akochoi@shaw.ca>
17076
17077 * macterm.c (USE_CARBON_EVENTS): New macro.
17078 (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
17079 (x_iconify_frame): Call CollapseWindow.
17080 (Vmac_reverse_ctrl_meta): New variable.
17081 (Vmac_wheel_button_is_mouse_2): New variable.
17082 (init_mac_drag_n_drop): New function.
17083 (mac_do_receive_drag): New function.
17084 (mac_handle_service_event): New function.
17085 (init_service_handler): New function.
17086 (mac_to_emacs_modifiers): New function.
17087 (mac_event_to_emacs_modifiers): New function.
17088 (mac_get_mouse_btn): New function.
17089 (mac_convert_event_ref): New function.
17090 (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
17091 SendEventToEventTarget, mac_event_to_emacs_modifiers, and
17092 mac_get_mouse_btn.
17093 (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
17094
17095 * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
17096 lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
17097 (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
17098 TOOL_BAR_EVENT for MAC_OS as well.
17099 (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
17100 as for WINDOWS_NT.
17101 (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
17102
17103 * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
17104
17105 2002-08-03 Gerd Moellmann <gerd.moellmann@t-online.de>
17106
17107 * xdisp.c (forward_to_next_line_start): Fix a condition that
17108 lead to a newline being skipped.
17109
17110 2002-08-02 Andrew Choi <akochoi@shaw.ca>
17111
17112 * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
17113
17114 2002-08-01 Richard M. Stallman <rms@gnu.org>
17115
17116 * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
17117
17118 2002-07-31 Andrew Choi <akochoi@shaw.ca>
17119
17120 * macfns.c: #undef init_process before #define-ing it.
17121
17122 * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
17123 HAVE_CARBON is defined.
17124
17125 2002-07-31 Richard M. Stallman <rms@gnu.org>
17126
17127 * xmenu.c (set_frame_menubar): First parse all submenus,
17128 then make widget_value trees from them.
17129 Don't allocate any widget_value objects
17130 until we are done with the parsing.
17131 (parse_single_submenu): New function.
17132 (digest_single_submenu): New function.
17133 (single_submenu): Function deleted, replaced by those two.
17134
17135 2002-07-30 Juanma Barranquero <lektu@terra.es>
17136
17137 * w32proc.c (syms_of_ntproc): Fix docstring of
17138 `w32-get-true-file-attributes'.
17139
17140 2002-07-28 Richard M. Stallman <rms@gnu.org>
17141
17142 * s/hpux8.h (HPUX8): Define this before including hpux.h.
17143 (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
17144
17145 * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
17146
17147 * keyboard.c (make_lispy_event):
17148 Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
17149 Explicitly clear up_modifier in event->modifiers.
17150
17151 2002-07-27 Richard M. Stallman <rms@gnu.org>
17152
17153 * xterm.h (FRAME_CURSOR_WIDTH): New macro.
17154
17155 * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
17156 for bar cursor.
17157
17158 2002-07-26 Kenichi Handa <handa@etl.go.jp>
17159
17160 * coding.c (detect_coding_iso2022): While checking a byte sequence
17161 for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
17162 it in the normal loop.
17163
17164 2002-07-24 Gerd Moellmann <gerd.moellmann@t-online.de>
17165
17166 * xterm.c (expose_overlaps): New function.
17167 (expose_window): Use it to fix the display of overlapping rows.
17168
17169 * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
17170
17171 2002-07-23 Ken Raeburn <raeburn@gnu.org>
17172
17173 * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
17174 since it only depends on XUINT.
17175
17176 * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
17177 EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
17178 PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
17179 Macros deleted.
17180
17181 * mem-limits.h (start_of_data): If DATA_START is defined, prefer
17182 its value over other approaches.
17183 * sysdep.c (start_of_data): Don't define the function if a macro
17184 form has been defined.
17185
17186 2002-07-23 Gerd Moellmann <gerd.moellmann@t-online.de>
17187
17188 * xdisp.c (redisplay_updating_p): New variable.
17189 (init_iterator): Don't free realized faces when
17190 redisplay_updating_p is set.
17191 (redisplay_internal): Set redisplay_updating_p while updating
17192 the display.
17193
17194 2002-07-23 Richard M. Stallman <rms@gnu.org>
17195
17196 * editfns.c (Fmessage): Treat "" like nil.
17197
17198 2002-07-23 Kenichi Handa <handa@etl.go.jp>
17199
17200 * xdisp.c (face_before_or_after_it_pos):
17201 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17202
17203 2002-07-22 Juanma Barranquero <lektu@terra.es>
17204
17205 * callproc.c (init_callproc) [DOS_NT]:
17206 Initialize Vshared_game_score_directory to nil.
17207 (syms_of_callproc) [DOS_NT]: Likewise.
17208
17209 2002-07-22 Gerd Moellmann <gerd.moellmann@t-online.de>
17210
17211 * xdisp.c (display_line): Replace an abort with xassert.
17212
17213 2002-07-21 Richard M. Stallman <rms@gnu.org>
17214
17215 * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
17216 and END_UNCHANGED when setting buffer_unchanged_p.
17217 Use current_matrix_up_to_date_p to decide whether to use
17218 try_cursor_movement.
17219
17220 * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
17221
17222 * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
17223
17224 * callproc.c (init_callproc): Set up Vshared_game_score_directory.
17225 Set to nil if dir does not exist.
17226 (syms_of_callproc): Init unconditionally and simply.
17227
17228 * buffer.c (Fbuffer_list): Doc fix.
17229
17230 2002-07-21 Ken Raeburn <raeburn@gnu.org>
17231
17232 * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
17233
17234 * buffer.c (mmap_realloc): When shrinking, make sure number of
17235 pages to unmap is rounded towards zero.
17236
17237 * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
17238 (XSETINT): Deleted.
17239
17240 * m/att3b.h (XINT): Don't define.
17241 (VALBITS, VALMASK, XTYPE): Deleted.
17242 (DATA_SEG_BITS): Define.
17243 * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
17244 ARRAY_MARK_FLAG): Deleted.
17245 (DATA_SEG_BITS): Define.
17246 * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
17247 (DATA_SEG_BITS): Define.
17248
17249 2002-07-20 Richard M. Stallman <rms@gnu.org>
17250
17251 * print.c (print_error_message): New args CONTEXT and CALLER.
17252 Calls changed.
17253
17254 * lisp.h (print_error_message): Declare new args.
17255
17256 * keyboard.c (cmd_error_internal): Pass Vsignaling_function
17257 and CONTEXT to print_error_message, don't print them here.
17258 For a Quit, don't use Vsignaling_function.
17259 Call message_log_maybe_newline.
17260
17261 * Makefile.in (xsmfns.o): Don't depend on lisp.h.
17262
17263 2002-07-20 Kim F. Storm <storm@cua.dk>
17264
17265 * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
17266
17267 2002-07-19 Ken Raeburn <raeburn@gnu.org>
17268
17269 * bytecode.c (struct byte_stack): Pointers into byte string now
17270 point to const.
17271 * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
17272 const.
17273 * charset.h (BCOPY_SHORT): Source pointer now points to const.
17274 * coding.c (encode_eol, detect_coding, detect_eol):
17275 (decode_coding, encode_coding, detect_coding_system):
17276 Source strings now treated as const.
17277 (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
17278 modify Lisp string contents.
17279 * coding.h (decode_coding, encode_coding, detect_coding,
17280 detect_eol): Declarations updated.
17281 * composite.c (compose_chars_in_text): Treat Lisp string contents
17282 as const.
17283 * dispnew.c (safe_bcopy): Source pointer now points to const.
17284 * lisp.h (STRING_COPYIN): New macro.
17285 (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
17286 (internal_with_output_to_temp_buffer): Declarations updated.
17287 * print.c (temp_output_buffer_setup):
17288 (internal_with_output_to_temp_buffer): Buffer name argument is now
17289 pointer to const.
17290 * sound.c (struct sound_device): Function pointer field "write"
17291 buffer argument now points to const.
17292 (vox_write): Buffer argument points to const.
17293 * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
17294 contents as const.
17295 * sysdep.c (emacs_write): Buffer pointer now const.
17296 * term.c (encode_terminal_code): Buffer pointer now const.
17297 * xfaces.c (may_use_scalable_font_p): Argument now points to const.
17298 (x_face_list_fonts, x_update_menu_appearance):
17299 (hash_string_case_insensitive): Treat Lisp string contents as const.
17300
17301 2002-07-19 Juanma Barranquero <lektu@terra.es>
17302
17303 * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
17304
17305 * fileio.c (syms_of_fileio): Likewise.
17306 (Ffile_name_as_directory): Fix argument name in docstring.
17307 (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
17308
17309 2002-07-18 Richard M. Stallman <rms@gnu.org>
17310
17311 * data.c (Fdefalias): Doc fix.
17312
17313 2002-07-17 Dave Love <fx@gnu.org>
17314
17315 * intervals.h (text_property_stickiness): Use P_.
17316
17317 * ccl.c: Remove `emacs' conditionals.
17318 (ccl_backtrace_table): Fix size spec.
17319 (ccl_driver): Fix type errors.
17320
17321 2002-07-16 Ken Raeburn <raeburn@gnu.org>
17322
17323 * alloc.c (xstrdup, make_string, make_unibyte_string)
17324 (make_multibyte_string, build_string): String pointer args now
17325 point to const.
17326 * charset.c (find_charset_in_text, c_string_width):
17327 (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
17328 * fileio.c (report_file_error):
17329 * insdel.c (copy_text, count_size_as_multibyte, insert_1):
17330 (count_combining_before, count_combining_after, insert_1_both):
17331 (insert, insert_and_inherit, insert_string):
17332 (insert_before_markers, insert_before_markers_and_inherit):
17333 * lread.c (intern, oblookup, hash_string):
17334 * minibuf.c (temp_echo_area_glyphs):
17335 * search.c (fast_c_string_match_ignore_case):
17336 * sysdep.c (emacs_open, set_file_times):
17337 * xfaces.c (xstricmp):
17338 * xdisp.c (store_frame_title, string_char_and_length):
17339 (message_dolog, message2, message2_nolog, set_message): Likewise.
17340 (set_message_1): Cast message string argument to const pointer.
17341 * editfns.c (general_insert_function): Insertion function now
17342 takes pointer to const for input data.
17343 * charset.h (find_charset_in_text, c_string_width):
17344 (parse_str_as_multibyte): Declarations updated.
17345 * dispextern.h (xstricmp): Declaration updated.
17346 * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
17347 (count_size_as_multibyte, count_combining_before):
17348 (count_combining_after, insert_1, insert_1_both, message_dolog):
17349 (insert, insert_and_inherit, insert_before_markers)
17350 (insert_before_markers_and_inherit, set_message, message2):
17351 (message2_dolog, build_string, make_string, make_unibyte_string):
17352 (make_multibyte_string, intern, oblookup, report_file_error):
17353 (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
17354 (emacs_open, xstrdup): Declarations updated.
17355 * systime.h (set_file_times): Declaration updated.
17356
17357 * charset.c (find_charset_in_text, lisp_string_width): Use const
17358 for pointer to lisp string data.
17359 * charset.h (FETCH_STRING_CHAR_ADVANCE):
17360 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
17361 * coding.c (Ffind_coding_systems_region_interval):
17362 * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
17363 (Fmake_directory_internal, Fdelete_directory):
17364 (Ffile_name_absolute_p, Fwrite_region, double_dollars):
17365 * fontset.c (font_family_registry, fs_query_fontset):
17366 (list_fontsets):
17367 * frame.c (Fframe_parameter):
17368 * keyboard.c (cmd_error_internal):
17369 * keymap.c (Fdescribe_buffer_bindings):
17370 * lread.c (complete_filename_p, openp):
17371 * minibuf.c (Fminibuffer_complete_word):
17372 * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
17373 (face_before_or_after_it_pos, next_element_from_string):
17374 (get_overlay_arrow_glyph_row, display_mode_element):
17375 (decode_mode_spec_coding):
17376 * xterm.c (same_x_server): Likewise.
17377
17378 * buffer.c (reset_buffer_local_variables): Delete "#if 0"
17379 settings of non-existent fields.
17380
17381 * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
17382 copy a lisp value.
17383
17384 * lread.c (Fintern_soft): Use string macros instead of
17385 Lisp_String fields.
17386 * keyboard.c (echo_char, parse_modifiers_uncached):
17387 (parse_solitary_modifier, Fexecute_extended_command): Likewise.
17388 * textprop.c (validate_interval_range, interval_of): Likewise.
17389
17390 * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
17391
17392 * charset.h (FETCH_STRING_CHAR_ADVANCE)
17393 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
17394 XSTRING()->size_byte.
17395
17396 * lisp.h (SDATA, SREF): Produce rvalue.
17397 (SSET): New macro.
17398 * alloc.c (make_event_array): Use SSET for storing into a string.
17399 * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
17400 a string.
17401 * casefiddle.c (casify_object): Use SSET.
17402 * charset.h (FETCH_STRING_CHAR_ADVANCE)
17403 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
17404 address of string contents.
17405 * data.c (Faref): Use SDATA.
17406 (Faset): Use SDATA, SSET.
17407 * dired.c (directory_files_internal): Use SSET.
17408 * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
17409 (Fread_file_name): Use SREF, SSET.
17410 * fns.c (concat): Use SSET.
17411 (concat, Fdelete): Use SDATA.
17412 * insdel.c (insert_from_string_1): Use SDATA.
17413 * keyboard.c (Fevent_convert_list): Use SREF.
17414 * lread.c (Fload): Use SDATA, SSET.
17415 * macfns.c (validate_x_resource_name): Use SSET.
17416 * process.c (status_message): Use SSET.
17417 * search.c (wordify): Use SDATA.
17418 (Freplace_match): Use SREF.
17419 * w32fns.c (validate_x_resource_name): Use SSET.
17420 * xfns.c (validate_x_resource_name): Use SSET.
17421 * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
17422
17423 2002-07-16 Richard M. Stallman <rms@gnu.org>
17424
17425 * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
17426
17427 * xdisp.c (reconsider_clip_changes):
17428 Don't test prevent_redisplay_optimizations_p.
17429 (redisplay_internal): Test prevent_redisplay_optimizations_p
17430 along with clip_changed in some cases.
17431 (try_window_id): Likewise.
17432 (redisplay_window): New local var buffer_unchanged_p.
17433
17434 * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
17435
17436 * process.c (create_process): Test USG_SUBTTY_WORKS.
17437 (process_send_signal): Clean up handling of GID.
17438 Detect errors in ioctls meant to set GID.
17439
17440 * window.c (temp_output_buffer_show):
17441 Don't set prevent_redisplay_optimizations_p.
17442
17443 2002-07-15 Juanma Barranquero <lektu@terra.es>
17444
17445 * eval.c (Fdefvaralias): Add docstring argument.
17446
17447 2002-07-15 Ken Raeburn <raeburn@gnu.org>
17448
17449 * lisp.h (STRING_INTERVALS): Produce rvalue.
17450 (STRING_SET_INTERVALS): New macro.
17451 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
17452 * fns.c (Fstring_as_multibyte): Likewise.
17453 * intervals.c (balance_possible_root_interval, delete_interval)
17454 (create_root_interval, copy_intervals_to_string): Likewise.
17455 * textprop.c (set_text_properties): Likewise. Use NULL_INTERVAL
17456 instead of 0.
17457
17458 2002-07-14 Ken Raeburn <raeburn@gnu.org>
17459
17460 * lisp.h (STRING_SET_CHARS): New macro.
17461 (SCHARS, SBYTES): Produce rvalues.
17462 * dired.c (directory_files_internal): Use STRING_SET_CHARS.
17463 * fns.c (concat): Likewise.
17464 * lread.c (read_vector): Likewise.
17465
17466 * lisp.h (SMBP): Delete. All uses changed to STRING_MULTIBYTE.
17467 (STRING_SET_UNIBYTE): New macro.
17468 (SET_STRING_BYTES): Delete. Callers (all of which supplied a
17469 length of -1) changed to use STRING_SET_UNIBYTE.
17470 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17471 casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
17472 composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
17473 dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
17474 fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
17475 keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
17476 minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
17477 sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
17478 w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
17479 w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
17480 xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
17481 STRING_BYTES or indirection changed to SCHARS, SBYTES,
17482 STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
17483 unchanged for now.
17484
17485 2002-07-13 Kim F. Storm <storm@cua.dk>
17486
17487 * keyboard.c (command_loop_1): Invert check on Vmemory_full.
17488
17489 2002-07-12 Richard M. Stallman <rms@gnu.org>
17490
17491 * fileio.c (Fwrite_region): Doc fix.
17492
17493 * print.c (print_error_message): Don't handle Vsignaling_function here.
17494
17495 * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
17496 (command_loop_1): Avoid certain actions after memory-full error.
17497
17498 * eval.c (Fsignal): Don't call cancel_hourglass.
17499 For a memory-full error, don't call Vsignal_hook_function
17500 and don't set Vsignaling_function.
17501
17502 * process.c (process_send_signal): Add abort call.
17503
17504 2002-07-11 Markus Rost <rost@math.ohio-state.edu>
17505
17506 * keymap.c (Fkey_binding): Fix typo.
17507
17508 2002-07-11 Richard M. Stallman <rms@gnu.org>
17509
17510 * alloc.c (Vmemory_full): New variable.
17511 (Vmemory_signal_data): Rename from memory_signal_data.
17512 Uses changed.
17513 (syms_of_alloc): Defvar them.
17514 (memory_full, buffer_memory_full): Set Vmemory_full.
17515
17516 * lisp.h (Vmemory_full): Add declaration.
17517 (current_column, indented_beyond_p): Change declaration.
17518
17519 * indent.c (last_known_column): Declare as double, not float.
17520 (current_column, current_column_1, string_display_width)
17521 (position_indentation): Return `double'.
17522 (indented_beyond_p): Arg `column' is `double'. Callers changed.
17523
17524 * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
17525 (back_to_previous_visible_line_start)
17526 (reseat_at_next_visible_line_start, next_element_from_buffer):
17527 Use `double', not `float', when calling indented_beyond_p.
17528
17529 * s/hpux11.h (BROKEN_SA_RESTART): Define.
17530
17531 * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
17532
17533 2002-07-11 Juanma Barranquero <lektu@terra.es>
17534
17535 * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
17536 * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
17537 * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
17538 * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
17539 * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
17540 * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
17541
17542 2002-07-10 Juanma Barranquero <lektu@terra.es>
17543
17544 * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
17545 All callers changed.
17546
17547 2002-07-09 Stefan Monnier <monnier@cs.yale.edu>
17548
17549 * data.c (Fdefalias): Add an optional `docstring' argument.
17550 (set_internal, Fsetq_default): Use XCAR/XCDR.
17551
17552 * composite.c (HASH_VALUE, HASH_KEY):
17553 * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
17554
17555 2002-07-09 Kenichi Handa <handa@etl.go.jp>
17556
17557 * callproc.c (Fcall_process): Fix previous change.
17558
17559 2002-07-07 Stefan Monnier <monnier@cs.yale.edu>
17560
17561 * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
17562 Add support for hash-tables.
17563 (Ftry_completion): Return t even if the string appears multiple times.
17564
17565 * fns.c (Fnconc): Use XCDR.
17566 (Fprovide): Use CONSP and XCDR.
17567 (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
17568 (HASH_TABLE_SIZE): Delete: moved to lisp.h.
17569 (Fmake_hash_table): Accept `:size nil'.
17570 (Fmakehash): Delete: moved to subr.el.
17571 (syms_of_fns): Don't defsubr makehash.
17572
17573 * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
17574 (HASH_TABLE_SIZE): Move from fns.c.
17575
17576 2002-07-07 Richard M. Stallman <rms@gnu.org>
17577
17578 * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
17579 Instead just return 0 when there is something to be done.
17580 (try_scrolling): If make_cursor_line_fully_visible returns 0,
17581 retry scrolling as if cursor were off the bottom.
17582 (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
17583 return CURSOR_MOVEMENT_MUST_SCROLL.
17584 (redisplay_window): If make_cursor_line_fully_visible returns 0,
17585 go to try_to_scroll.
17586
17587 * buffer.c (Fbuffer_local_value): Store current value into its binding
17588 so we get the up-to-date value for the binding that is loaded.
17589
17590 * eval.c (Fdefmacro): Doc fix.
17591
17592 2002-07-05 Dave Love <fx@gnu.org>
17593
17594 * keyboard.c (read_key_sequence): Set initial_idleness_start_time
17595 correctly.
17596
17597 * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
17598 (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
17599 (ccl_driver): Add cases for CCL_LookupIntConstTbl,
17600 CCL_LookupCharConstTbl.
17601 (syms_of_ccl): Defvar translation-hash-table-vector.
17602
17603 2002-07-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17604
17605 * xdisp.c: Remove unused variable `face'.
17606
17607 2002-07-04 Juanma Barranquero <lektu@terra.es>
17608
17609 * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
17610 obsolescence information.
17611
17612 2002-07-03 Andrew Choi <akochoi@shaw.ca>
17613
17614 * macterm.c (x_list_fonts): Fix comment. Cache fonts matching
17615 pattern. Search cache first.
17616 (init_font_name_table): Also add entry for jisx0201.1976-0 coding
17617 for Japanese font.
17618 (XLoadQueryFont): Use it.
17619
17620 2002-07-02 Richard M. Stallman <rms@gnu.org>
17621
17622 * keymap.c (Fdefine_key): Doc fix.
17623
17624 * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
17625
17626 2002-07-02 Juanma Barranquero <lektu@terra.es>
17627
17628 * keymap.c (syms_of_keymap): Fix typo.
17629
17630 2002-07-01 Andrew Choi <akochoi@shaw.ca>
17631
17632 * s/darwin.h: Define POSIX_SIGNALS.
17633
17634 * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
17635 and FSRefMakePath to convert FSSpec returned with Apple Event to
17636 Posix pathname.
17637 (mac_initialize) [TARGET_API_MAC_CARBON]:
17638 Call init_required_apple_events and disable the `Quit' menu item
17639 provided automatically by the Carbon Toolbox.
17640
17641 2002-07-01 Dave Love <fx@gnu.org>
17642
17643 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17644 for K&R.
17645
17646 * xterm.c: Fix prototype for K&R.
17647
17648 * term.c (costs_set): Declare static, non-initialized for pcc.
17649
17650 2002-07-01 Richard M. Stallman <rms@gnu.org>
17651
17652 * keyboard.c (timer_last_idleness_start_time): New variable.
17653 (timer_start_idle): Set that.
17654 (read_key_sequence): Use that to reset timer_idleness_start_time
17655 to previous value.
17656
17657 * window.c (Frecenter): With arg, set optional_new_start.
17658
17659 * xdisp.c (redisplay_internal): Make optional_new_start really work.
17660
17661 * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
17662 buffer for completion.
17663
17664 2002-06-29 Ken Raeburn <raeburn@gnu.org>
17665
17666 * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
17667
17668 2002-06-28 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
17669
17670 * keyboard.c (readable_filtered_events): New function that filters
17671 FOCUS_IN_EVENT depending on parameter.
17672 (readable_events): Calls readable_filtered_events, not filtering
17673 FOCUS_IN_EVENT.
17674 (get_filtered_input_pending): New function, filtering parameter passed
17675 to readable_filtered_events.
17676 (get_input_pending): Calls get_filtered_input_pending, not filtering
17677 FOCUS_IN_EVENT.
17678 (Finput_pending_p): Calls get_filtered_input_pending, DO filter
17679 FOCUS_IN_EVENT.
17680
17681 * xterm.h (struct x_output): Add focus_state.
17682
17683 * xterm.c (x_focus_changed): New function.
17684 (x_detect_focus_change): New function.
17685 (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
17686 EnterNotify and LeaveNotify to track X focus changes.
17687
17688 2002-06-28 Andreas Schwab <schwab@suse.de>
17689
17690 * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
17691
17692 2002-06-27 Kim F. Storm <storm@cua.dk>
17693
17694 * xdisp.c (mode_line_string_list, mode_line_string_face)
17695 (mode_line_string_face_prop): New variables.
17696 (store_mode_line_string): New function.
17697 (display_mode_element): Use store_mode_line_string to
17698 add mode-line string elements to mode_line_string_list
17699 when mode_line_string_list is non-nil.
17700 (Fformat_mode_line): Now returns propertized string by
17701 default. New arg NO-PROPS to ignore properties.
17702 (decode_mode_spec): Only add two dashes for %- in propertized
17703 mode-line string.
17704 (syms_of_xdisp): Init and staticpro mode_line_string_list.
17705
17706 2002-06-27 Stefan Monnier <monnier@cs.yale.edu>
17707
17708 * minibuf.c (minibuffer_completion_contents): Add return type.
17709
17710 2002-06-27 Juanma Barranquero <lektu@terra.es>
17711
17712 * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
17713
17714 2002-06-26 Juanma Barranquero <lektu@terra.es>
17715
17716 * fileio.c (read_file_name_cleanup): Add missing return.
17717
17718 2002-06-26 Richard M. Stallman <rms@gnu.org>
17719
17720 * window.c (Frecenter): Don't set force_start flag.
17721
17722 * minibuf.c (do_completion, Fminibuffer_complete_word)
17723 (Fminibuffer_completion_help): Complete just the text before point.
17724 (minibuffer_completion_contents): New function.
17725
17726 * buffer.c (Fbury_buffer): Use frames_discard_buffer.
17727
17728 * frame.c (frames_bury_buffer): Function deleted.
17729
17730 2002-06-25 Miles Bader <miles@gnu.org>
17731
17732 * callint.c (Fcall_interactively): When checking to see if doprnt hit
17733 the end of callint_message, allow for a terminating '\0'.
17734
17735 2002-06-24 Juanma Barranquero <lektu@terra.es>
17736
17737 * w32select.c: Include composite.h.
17738
17739 * w16select.c: Likewise.
17740
17741 2002-06-24 Kenichi Handa <handa@etl.go.jp>
17742
17743 * callproc.c (Fcall_process): If code detection is necessary,
17744 call detect_coding directly here.
17745
17746 * coding.c (detect_eol): Preserve coding->cmp_data.
17747
17748 * w16select.c (Fw16_get_clipboard_data):
17749 * w32fns.c (w32_to_x_font):
17750 * w32select.c (Fw32_get_clipboard_data):
17751 * xselect.c (selection_data_to_lisp_data):
17752 * xterm.c (XTread_socket): Disable composition handling.
17753
17754 2002-06-24 Stefan Monnier <monnier@cs.yale.edu>
17755
17756 * print.c (temp_output_buffer_setup): Kill all local variables.
17757
17758 2002-06-22 Stefan Monnier <monnier@cs.yale.edu>
17759
17760 * lread.c (Fread): Remove redundant and imprecise declaration.
17761
17762 * xfns.c (check_x_display_info): Use check_x_frame.
17763
17764 * .gdbinit (xprintsym): Use the new `xname' field.
17765 (xsymbol): Use it.
17766
17767 2002-06-22 Jason Rumney <jasonr@gnu.org>
17768
17769 * w32fns.c (file_dialog_callback): New function.
17770 (Fx_file_dialog): Allow selecting directories as well as files.
17771
17772 2002-06-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17773
17774 * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
17775 OpenBSD. Add support for mipseb-*-netbsd* machines.
17776
17777 2002-06-17 Andrew Choi <akochoi@shaw.ca>
17778
17779 * macterm.c (mac_scroll_area): Set foreground and backcolor to
17780 black and white before scrolling. Restore frame background and
17781 foreground color after scrolling.
17782 (do_window_update): Call XClearWindow before calling expose_frame.
17783 (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
17784 FRAME_FOREGROUND_PIXEL of frame.
17785
17786 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
17787 test Mac command key as <ALT> key.
17788
17789 2002-06-17 Stefan Monnier <monnier@cs.yale.edu>
17790
17791 * window.c (Fset_window_configuration): Lisp_Object/int mixup.
17792
17793 * keyboard.c (read_key_sequence): Be more careful with first_unbound.
17794 Lookup keys in function-key-map immediately so that key-translation-map
17795 can be applied earlier.
17796 Remove function_key_possible and key_translation_possible, replaced
17797 by checking `keytran_start < t'.
17798
17799 * .gdbinit (xsymbol): Use the new `xname' field.
17800
17801 2002-06-17 Andrew Choi <akochoi@shaw.ca>
17802
17803 * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
17804 test Mac command key as <ALT> key.
17805
17806 * mac.c (do_applescript): Call initialize_applescript if necessary
17807 when first called. Dispose of result_desc only when there is no error.
17808 (Fdo_applescript): Use %d format specifier instead of %ld.
17809
17810 2002-06-16 Andrew Choi <akochoi@shaw.ca>
17811
17812 * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
17813 of FrontWindow for cases keyDown and autoKey.
17814
17815 * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
17816 Vdefault_fontset to Monaco with mac-roman coding.
17817
17818 * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
17819 init_process before and after inclusion of Carbon/Carbon.h, resp.
17820
17821 * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
17822 cursor_gc.
17823 (add_font_name_table_entry): New function.
17824 (init_font_name_table): Use add_font_name_table_entry; add italic,
17825 bold, and bold-italic entries for truetype fonts.
17826
17827 * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
17828 for Mac too.
17829 (try_font_list) [MAC_OS]: If no font matches given registry, try
17830 fonts with any registry matching face_family.
17831 (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
17832
17833 * s/darwin.h: If autoconf detects the Ncurses library, define
17834 LIBS_TERMCAP to -lncurses to use it.
17835
17836 2002-06-16 Eli Zaretskii <eliz@is.elta.co.il>
17837
17838 * strftime.c [__hpux]: Include sys/_mbstate_t.h.
17839
17840 2002-06-15 Richard M. Stallman <rms@gnu.org>
17841
17842 * window.c (Fset_window_configuration): Explicitly preserve
17843 the point value that new_current_buffer had at the start.
17844
17845 2002-06-14 Juanma Barranquero <lektu@terra.es>
17846
17847 * composite.c (Fcompose_region_internal, Fcompose_string_internal):
17848 Fix typos.
17849
17850 2002-06-14 Kim F. Storm <storm@cua.dk>
17851
17852 * insdel.c (insert_1_both, insert_from_string_1)
17853 (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
17854 insert happened in the end_unchanged region. Otherwise, the
17855 redisplay may be confused and duplicate the last line in the
17856 buffer [seen after save-buffer when require-final-newline==t].
17857
17858 2002-06-13 Jason Rumney <jasonr@gnu.org>
17859
17860 * w32.c (init_environment): Remove EMACSLOCKDIR.
17861 (stat): Swap _S_IFDIR and _S_IFREG.
17862
17863 2002-06-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17864
17865 * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
17866 * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
17867 * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
17868 ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
17869 to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
17870 NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
17871 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
17872 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
17873 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
17874 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
17875 SELECTION_REQUEST_EVENT, selection_clear_event to
17876 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
17877 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
17878 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
17879 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
17880 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
17881 no_event to NO_EVENT.
17882
17883 2002-06-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17884
17885 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
17886
17887 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
17888
17889 * intervals.c (textget): Don't forget to `return'.
17890 (lookup_char_property): Use XCAR/XCDR.
17891
17892 2002-06-12 Juanma Barranquero <lektu@terra.es>
17893
17894 * xdisp.c (Fformat_mode_line): Fix typo.
17895
17896 2002-06-12 Kim F. Storm <storm@cua.dk>
17897
17898 * xdisp.c (Fformat_mode_line): New function.
17899 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
17900 (store_frame_title_char, store_frame_title): Use unconditionally.
17901 (init_xdisp): Defsubr Fformat_mode_line.
17902 Initialize frame_title_buf etc. unconditionally.
17903
17904 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
17905
17906 * keyboard.c (read_key_sequence):
17907 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
17908 things through those maps after downcasing events.
17909 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
17910 applies after function-key-map.
17911 Make sure that keytran can be done in the middle in the sequence.
17912 Be careful not to throw away events past the one we downcase.
17913
17914 * lread.c (read_integer): Remove unused var `tem'.
17915 (read1): Fix int/Lisp_Object mixup.
17916
17917 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
17918
17919 2002-06-11 Richard M. Stallman <rms@gnu.org>
17920
17921 * keyboard.c (readable_events): Ignore any number of
17922 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
17923
17924 2002-06-09 Miles Bader <miles@gnu.org>
17925
17926 * xfaces.c (Ftty_supports_face_attributes_p): New function.
17927 (parse_rgb_list, tty_lookup_color): New functions.
17928 (tty_defined_color): Use `tty_lookup_color' to do all the work.
17929 (color_distance, Fcolor_distance): New functions.
17930 (TTY_SAME_COLOR_THRESHOLD): New macro.
17931 (Qtty_color_standard_values): New variable.
17932 (syms_of_xfaces): Initialize new vars & functions.
17933
17934 2002-06-08 Colin Walters <walters@verbum.org>
17935
17936 * textprop.c (Vchar_property_alias_alist): New variable.
17937 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
17938
17939 * intervals.c (lookup_char_property): New function for looking up
17940 overlay and text properties, created from textget.
17941 (textget): Use it.
17942
17943 * intervals.h (lookup_char_property): Declare.
17944 (Vchar_property_alias_alist): Declare.
17945
17946 * buffer.c (Foverlay_get): Use lookup_char_property.
17947
17948 2002-06-07 Sam Steingold <sds@gnu.org>
17949
17950 * xselect.c (lisp_data_to_selection_data): Fix last change:
17951 *data_ret is not a Lisp string, while unibyte_string is.
17952
17953 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
17954
17955 * xselect.c (lisp_data_to_selection_data): Fix last change:
17956 set size_ret.
17957
17958 2002-06-07 Andreas Schwab <schwab@suse.de>
17959
17960 * m/amdx86-64.h: New file.
17961
17962 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
17963
17964 * fns.c (Fstring_make_unibyte): Doc fix.
17965
17966 * xselect.c (lisp_data_to_selection_data): If the requested type
17967 is STRING, call string_make_unibyte to encode the selected text
17968 as a string.
17969
17970 * window.c (Fset_window_hscroll): Doc fix.
17971
17972 2002-06-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
17973
17974 * fileio.c (choose_write_coding_system):
17975 Call select-safe-coding-system properly.
17976
17977 2002-06-03 Richard M. Stallman <rms@gnu.org>
17978
17979 * xdisp.c (message_with_string): Error if STRING is not a string.
17980
17981 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
17982
17983 * fileio.c (choose_write_coding_system): Pass FILE arg to
17984 Vselect_safe_coding_system_function.
17985
17986 2002-06-03 Ken Raeburn <raeburn@gnu.org>
17987
17988 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
17989
17990 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
17991
17992 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
17993 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
17994 * keymap.c (describe_command): Likewise.
17995 * minibuf.c (read_minibuf): Likewise.
17996
17997 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
17998 Cast `current_column' return value to int.
17999 (back_to_previous_visible_line_start)
18000 (reseat_at_next_visible_line_start, next_element_from_buffer):
18001 Cast `indented_beyond_p' 3rd arg to float.
18002
18003 * indent.c (last_known_column): Now a float.
18004 (current_column_1, position_indentation, current_column)
18005 (string_display_width): Return float.
18006 (Fcurrent_column): Cast `current_column' return value to int.
18007 (Fcurrent_indentation): Cast `position_indentation' retval to int.
18008 (indented_beyond_p): Third arg now a float.
18009 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
18010
18011 * lisp.h (current_column): Now returns float.
18012 (indented_beyond_p): 3rd arg now a float.
18013
18014 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
18015
18016 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
18017 is Qcompound_text_with_extensions.
18018
18019 * xselect.c (lisp_data_to_selection_data): Always set selection
18020 type as string if x_encode_text returns streingp non-NULL.
18021
18022 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
18023
18024 2002-05-30 Richard M. Stallman <rms@gnu.org>
18025
18026 * window.c (Fset_window_configuration): Correct the handling
18027 of point in current buffer, to work with multiple windows.
18028
18029 2002-05-29 Colin Walters <walters@verbum.org>
18030
18031 * lread.c (Fread_from_string): Don't depend on order of evaluation
18032 for C function parameters.
18033
18034 2002-05-28 Richard M. Stallman <rms@gnu.org>
18035
18036 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
18037 way for blinked-off state and for a nonselected window.
18038
18039 * window.c (window_scroll_pixel_based): Don't call Fbolp;
18040 instead, see if the new start pos is at beginning of line.
18041
18042 * fileio.c (Fwrite_region): If START is a string, don't
18043 make any annotations.
18044
18045 * eval.c (syms_of_eval): Doc fix.
18046
18047 2002-05-28 Colin Walters <walters@debian.org>
18048
18049 * emacs.c (USAGE1): Add --no-splash.
18050 (standard_args): Ditto.
18051
18052 2002-05-28 Colin Walters <walters@gnu.org>
18053
18054 * lread.c (readchar_count): New variable.
18055 (readchar): Increment it.
18056 (unreadchar): Decrement it.
18057 (read_multibyte): Decrement it.
18058 (Vread_with_symbol_positions): New variable.
18059 (Vread_symbol_positions_list): New variable.
18060 (read_internal_start): New function, created from Fread and
18061 Fread_from_string. Handle Vread_symbol_positions_list and
18062 Vread_with_symbol_positions.
18063 (readevalloop, Fread, Fread_from_string): Use it.
18064 (read1): Use readchar_count to add symbol positions to
18065 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
18066 (syms_of_lread): DEFVAR_LISP and initialize them.
18067
18068 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
18069 (substitute_object_recurse, substitute_object_in_subtree)
18070 (substitute_in_interval): Prototype.
18071 (read_multibyte): Return c if it's less than zero.
18072
18073 2002-05-28 Kim F. Storm <storm@cua.dk>
18074
18075 * fileio.c (Fread_file_name_internal): Added brute-force
18076 speed up for using predicate file-directory-p.
18077
18078 2002-05-28 Kim F. Storm <storm@cua.dk>
18079
18080 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
18081 New variables.
18082 (syms_of_fileio): DEFVAR_LISP them.
18083 (read_file_name_cleanup): New unwind function.
18084 (Fread_file_name_internal): Only return completions satifying
18085 Vread_file_name_predicate. Temporarily unwind protect and rebind
18086 default-directory while checking completions against the predicate.
18087 (Fread_file_name): Added PREDICATE argument. Specbind it to
18088 Vread_file_name_predicate during completion.
18089 Call Vread_file_name_function to read the file name if non-nil.
18090
18091 * lisp.h (Fread_file_name): Now has 6 args.
18092
18093 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
18094 predicate for Fread_file_name when reading directory name.
18095 Supply Qnil for predicate in other calls to Fread_file_name.
18096
18097 2002-05-26 Miles Bader <miles@gnu.org>
18098
18099 * term.c (tty_capable_p): New function.
18100 * dispextern.h (tty_capable_p): New function declaration.
18101 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
18102 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
18103
18104 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
18105
18106 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
18107 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
18108 (Vwrite_region_annotate_functions): Docstring fix.
18109
18110 2002-05-23 Kim F. Storm <storm@cua.dk>
18111
18112 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
18113 phys_cursor's hpos is overwritten. This is still not completely
18114 correct, as it doesn't really make sense to use hpos at all to
18115 get the cursor glyph (as that is relative to the width of the
18116 characters on the line, which may have changed during the update).
18117
18118 2002-05-22 Jason Rumney <jasonr@gnu.org>
18119
18120 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
18121 Lisp_Object.
18122 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
18123 Use modified enumfont_t struct.
18124
18125 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
18126
18127 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
18128 Handle the `hbar' cursor type.
18129 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
18130
18131 * w32fns.c (Qhbar): New variable.
18132 (x_specified_cursor_type): Use it.
18133
18134 2002-05-21 Ken Raeburn <raeburn@gnu.org>
18135
18136 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
18137 now, when the address is needed.
18138
18139 2002-05-21 Colin Walters <walters@gnu.org>
18140
18141 * Makefile.in (shortlisp): Add font-core.el.
18142
18143 2002-05-20 Richard M. Stallman <rms@gnu.org>
18144
18145 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
18146
18147 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
18148 equivalent key bindings here.
18149
18150 2002-05-20 Ken Raeburn <raeburn@gnu.org>
18151
18152 Change symbol structure to contain a lisp object for the symbol
18153 name:
18154 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
18155 object field named "xname".
18156 (SYMBOL_NAME): New macro.
18157 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
18158 name field.
18159 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
18160 (mark_object, gc_sweep): Use symbol xname field and XSTRING
18161 instead of name field.
18162 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
18163 SYMBOL_NAME instead of XSYMBOL and name field.
18164 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
18165 instead of XSYMBOL and name field.
18166 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
18167 and SYMBOL_NAME instead of XSYMBOL and name field.
18168 * coding.c (Fread_coding_system, code_convert_region1)
18169 (code_convert_string1, code_convert_string_norecord)
18170 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
18171 XSYMBOL and name field.
18172 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
18173 (Fmake_variable_buffer_local, Fmake_local_variable)
18174 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
18175 of XSYMBOL and name field.
18176 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
18177 XSYMBOL and name field.
18178 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
18179 instead of XSYMBOL and name field.
18180 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
18181 XSYMBOL and name field.
18182 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
18183 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
18184 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
18185 instead of XSYMBOL and name field.
18186 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
18187 (parse_modifiers, apply_modifiers, Fevent_convert_list)
18188 (parse_solitary_modifier, Fexecute_extended_command):
18189 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
18190 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
18191 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
18192 of XSYMBOL and name field.
18193 (describe_command, describe_translation): Use SYMBOL_NAME and
18194 assignment instead of XSYMBOL and name field and XSETSTRING.
18195 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
18196 instead of XSYMBOL and name field.
18197 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
18198 name field and XSETSTRING.
18199 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
18200 of XSYMBOL and name field.
18201 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
18202 assignment instead of XSYMBOL and name field and XSETSTRING.
18203 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
18204 XSTRING instead of XSYMBOL and name field.
18205 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
18206 and XSTRING instead of XSYMBOL and name field.
18207 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
18208 and XSTRING instead of XSYMBOL and name field.
18209 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
18210 XSTRING instead of XSYMBOL and name field.
18211 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
18212 of XSYMBOL and name field.
18213 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
18214 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
18215
18216 2002-05-19 Ken Raeburn <raeburn@gnu.org>
18217
18218 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
18219 and XCDR real rvalues in most configurations.
18220
18221 * buffer.c (fix_overlays_in_range, fix_overlays_before):
18222 Don't take the address of the cdr part of a cons cell; instead, track
18223 the parent cell and call XSETCDR, or set the variable for the head
18224 of the list if we haven't started down the list yet.
18225
18226 2002-05-19 Richard M. Stallman <rms@gnu.org>
18227
18228 * doc.c (reread_doc_file): Don't ask for confirmation.
18229
18230 2002-05-18 Jason Rumney <jasonr@gnu.org>
18231
18232 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
18233 (xbm_load_image): Use it.
18234 (xbm_load): Ditto.
18235 (xbm_read_bitmap_data): Reverted to xfns.c version.
18236 From David Ponce <david@dponce.com>.
18237
18238 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
18239
18240 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
18241 2.02 and later.
18242
18243 2002-05-16 Juanma Barranquero <lektu@terra.es>
18244
18245 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
18246
18247 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
18248
18249 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
18250 meaningful test.
18251 (read_char_minibuf_menu_prompt): Fix typo.
18252
18253 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
18254
18255 * eval.c (Fcommandp): Doc fix.
18256
18257 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
18258
18259 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
18260 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
18261 (Fset_keymap_parent): Gcpro a bit more.
18262 (access_keymap): Gcpro around meta_map call and around the main loop.
18263 (get_keyelt): Gcpro when following indirect references.
18264 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
18265 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
18266 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
18267 Remove useless ad-hoc remap code.
18268
18269 2002-05-13 Richard M. Stallman <rms@gnu.org>
18270
18271 * search.c (search_buffer): Give up boyer moore search if inverse
18272 translation change charset_base.
18273
18274 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
18275
18276 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
18277 characters is carried over from the previous block of text, adjust
18278 coding->produced to account for the extra character.
18279
18280 2002-05-11 Andreas Schwab <schwab@suse.de>
18281
18282 * coding.c (intersection): Keep the elements of the returned list
18283 in the same order as in the first list.
18284
18285 2002-05-11 Kim F. Storm <storm@cua.dk>
18286
18287 * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
18288 only update cmm_size if realloc actually succeeds.
18289 Testing with initial size of 2 elements revealed that using
18290 realloc on GNU/Linux would cause a random trap in xmalloc
18291 later on, so I rewrote the code to use malloc/bcopy/free instead
18292 of realloc.
18293
18294 2002-05-10 Jason Rumney <jasonr@gnu.org>
18295
18296 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
18297
18298 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
18299
18300 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
18301 parens, to ensure correct evaluation order.
18302
18303 2002-05-10 Kim F. Storm <storm@cua.dk>
18304
18305 * keymap.c (Vemulation_mode_map_alists): New variable.
18306 (syms_of_keymap): DEFVAR_LISP it.
18307 (current_minor_maps): Process keymap alists in that list before
18308 minor-mode-overriding-map-alist and minor-mode-map-alist.
18309
18310 2002-05-09 Richard M. Stallman <rms@gnu.org>
18311
18312 * search.c (Freplace_match): Doc fix.
18313
18314 2002-05-09 Kim F. Storm <storm@cua.dk>
18315
18316 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18317 Enlarge cursor rectangle drawn around image with non-zero relief.
18318
18319 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
18320 Enlarge cursor rectangle drawn around image with non-zero relief.
18321
18322 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18323 Enlarge cursor rectangle drawn around image with non-zero relief.
18324
18325 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
18326
18327 * xselect.c (lisp_data_to_selection_data): Don't set selection
18328 type if comes from the Lisp object's car. If the selection
18329 contains a pure ASCII text, always return QSTRING as its type.
18330
18331 2002-05-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18332
18333 * mac.c (mac-cut-function): Doc fix.
18334
18335 2002-05-05 Richard M. Stallman <rms@gnu.org>
18336
18337 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
18338
18339 2002-05-04 Jason Rumney <jasonr@gnu.org>
18340
18341 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
18342 for event-click-count.
18343
18344 * process.c (init_process): Only add server subfeature if we can
18345 use non-blocking I/O.
18346
18347 2002-05-04 Andrew Choi <akochoi@shaw.ca>
18348
18349 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
18350 repeatedly.
18351
18352 2002-05-03 Jason Rumney <jasonr@gnu.org>
18353
18354 * process.c (Fmake_network_process): Only support server sockets
18355 when we can make them non-blocking.
18356
18357 * s/ms-w32.h (HAVE_SELECT): Define.
18358
18359 * w32.h (FILE_NDELAY): New flag.
18360
18361 * w32.c (sys_getpeername, fcntl): New functions.
18362 (_sys_read_ahead): Temporarily block on non-blocking sockets.
18363
18364 * w32proc.c: Include sys/file.h.
18365
18366 2002-05-03 Colin Walters <walters@verbum.org>
18367
18368 * callproc.c (Vgame_score_directory): Renamed to
18369 Vshared_game_score_directory.
18370
18371 2002-04-30 Richard M. Stallman <rms@gnu.org>
18372
18373 * s/gnu.h [emacs]: Include stdio.h.
18374 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
18375
18376 * eval.c (do_autoload): Error if called while preparing to dump.
18377
18378 * fns.c (Frequire): Error if need to load while preparing to dump.
18379
18380 2002-04-28 Colin Walters <walters@verbum.org>
18381
18382 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
18383 Default to "~/.emacs.d/games".
18384
18385 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
18386
18387 * lread.c (openp): Change arg exec_only to predicate.
18388 (build_load_history): Use XCAR/XCDR.
18389 (Flocate_file_internal): New fun.
18390 (syms_of_lread): Defsubr it.
18391 (Fload): Update call to openp.
18392
18393 * lisp.h (openp): Update prototype.
18394
18395 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
18396 * w32proc.c (sys_spawnve):
18397 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
18398 * w32.c (check_windows_init_file):
18399 * sound.c (Fplay_sound_internal):
18400 * process.c (Fstart_process):
18401 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
18402 * mac.c (run_mac_command):
18403 * emacs.c (init_cmdargs):
18404 * callproc.c (Fcall_process): Update call to openp.
18405
18406 * textprop.c (remove_properties): Don't use XCAR without CONSP.
18407
18408 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
18409
18410 2002-04-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18411
18412 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
18413 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
18414
18415 2002-04-28 Richard M. Stallman <rms@gnu.org>
18416
18417 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
18418
18419 * eval.c (Fcommandp): New arg for_call_interactively.
18420 * lisp.h (Fcommandp): Declare new arg.
18421
18422 2002-04-28 Jason Rumney <jasonr@gnu.org>
18423
18424 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
18425
18426 * w32.c (stat, fstat): Use file index information to generate
18427 inodes for directories where available.
18428
18429 2002-04-26 Andrew Choi <akochoi@shaw.ca>
18430
18431 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
18432 [HAVE_CARBON]: Include Mac object files.
18433
18434 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
18435 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
18436 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
18437 MAC_OSX, and MAC_OS instead of macintosh.
18438
18439 * editfns.c [MAC_OS8]: Include stdio.h.
18440
18441 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
18442
18443 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
18444 Apple Monaco.
18445
18446 * process.c (QCfamily, QCfilte): Declare extern.
18447 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
18448 calling select.
18449
18450 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
18451
18452 * tparam.c [MAC_OSX]: Don't define BC and UP.
18453
18454 * config.in [HAVE_CARBON]: Add.
18455
18456 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
18457 Move here from mac/src and mac/inc.
18458
18459 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
18460
18461 2002-04-26 Gerd Moellmann <gerd@gnu.org>
18462
18463 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
18464 Compute phys_cursor_width from the x position returned
18465 by x_draw_glyhs, which is cheaper.
18466 (x_display_and_set_cursor): Compute the buffer-local value
18467 of `cursor-in-non-selected-windows' only when needed.
18468
18469 2002-04-25 Gerd Moellmann <gerd@gnu.org>
18470
18471 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
18472 cursor on a stretch glyph has a width that depends on
18473 x_stretch_cursor_p.
18474
18475 2002-04-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18476
18477 * abbrev.c (abbrev-start-location): Doc fix.
18478
18479 * indent.c (Fvertical_motion): Fix last change.
18480
18481 2002-04-25 Gerd Moellmann <gerd@gnu.org>
18482
18483 * indent.c (Fvertical_motion): Move to the start of the line
18484 containing PT before moving up or down.
18485
18486 2002-04-24 Gerd Moellmann <gerd@gnu.org>
18487
18488 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
18489 case of writing a whole row, more or less analogous to the case of
18490 writing only parts of a row.
18491
18492 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
18493 0 for NO_CURSOR.
18494
18495 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
18496
18497 2002-04-23 Colin Walters <walters@verbum.org>
18498
18499 * buffer.c (syms_of_buffer): Doc fix.
18500
18501 2002-04-23 Gerd Moellmann <gerd@gnu.org>
18502
18503 * xterm.c (notice_overwritten_cursor): Handle the special case
18504 of the cursor being in the first blank non-text line at the
18505 end of a window.
18506
18507 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
18508 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
18509 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
18510 bar cursors only, to make phys_cursor_width contain what its name
18511 suggests.
18512 (notice_overwritten_cursor): Consider the cursor image erased if
18513 the output area intersects the cursor image in y-direction.
18514
18515 2002-04-23 Simon Marshall <simon@gnu.org>
18516
18517 * xfns.c (x_set_mouse_color): Change default for cross_cursor
18518 to XC_hand2.
18519
18520 2002-04-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18521
18522 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
18523
18524 2002-04-22 Kim F. Storm <storm@cua.dk>
18525
18526 * textprop.c (remove_properties): Fixed trap for malformed plist.
18527
18528 2002-04-22 Richard M. Stallman <rms@gnu.org>
18529
18530 * cmds.c (Fend_of_line): Handle intangible text in mid line.
18531
18532 * window.c (make_window): Initialize height_fixed_p,
18533 last_cursor_off_p, and p->cursor_off_p slots.
18534
18535 2002-04-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18536
18537 * fns.c (use-dialog-box): Doc fix.
18538
18539 2002-04-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18540
18541 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
18542 variables `row', `i' and `area'.
18543 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
18544 toolkit library.
18545
18546 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
18547
18548 * xfaces.c (clear_font_table): Don't free the default font of
18549 a frame even if it's on another display.
18550 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
18551 that could be Qt.
18552
18553 2002-04-19 Juanma Barranquero <lektu@terra.es>
18554
18555 * indent.c (Fmove_to_column): Remove unused local variable
18556 `next_boundary_byte'.
18557 (current_column_1): Likewise.
18558
18559 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
18560
18561 * msdos.c (Qhbar): New variable.
18562 (syms_of_msdos): Intern and staticpro it.
18563 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
18564 cursor type.
18565
18566 2002-04-19 Dave Lambert <dlambert@acm.org>
18567
18568 Theses change implement an underscore-like (`hbar') cursor.
18569
18570 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
18571
18572 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
18573 Handle the `hbar' cursor type.
18574 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
18575
18576 * xfns.c (Qhbar): New variable.
18577 (syms_of_xfns): Intern and staticpro it.
18578 (x_specified_cursor_type): Handle `hbar' cursor.
18579
18580 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
18581 not defined.
18582
18583 2002-04-18 Richard M. Stallman <rms@gnu.org>
18584
18585 * textprop.c (remove_properties): New arg LIST allows scanning
18586 either a list or a plist.
18587 (interval_has_some_properties_list): New function, like
18588 interval_has_some_properties using list instead of plist.
18589 All callers changed.
18590 (Fremove_list_of_text_properties): New function.
18591 (syms_of_textprop): Defsubr it.
18592
18593 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
18594
18595 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
18596
18597 2002-04-17 Juanma Barranquero <lektu@terra.es>
18598
18599 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
18600
18601 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
18602
18603 * window.c (coordinates_in_window): Don't report on margin area
18604 if its width is zero.
18605
18606 2002-04-16 Jason Rumney <jasonr@gnu.org>
18607
18608 * w32fns.c (Fx_file_dialog): Decode file name before using.
18609
18610 * w32term.c (construct_drag_n_drop): Likewise.
18611
18612 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
18613
18614 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
18615 store load-history in pure space.
18616
18617 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
18618
18619 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
18620
18621 * xterm.c (Qlatin_1, Qutf_8): New vars.
18622 (syms_of_xterm): Initialize them.
18623 (XTread_socket): Eliminate incorrect optimization that tried to avoid
18624 decoding the output of X*LookupString.
18625 Always use latin-1 to decode the output of XLookupString.
18626 Try Xutf8LookupString if XmbLookupString failed.
18627
18628 * region-cache.c (new_region_cache): Use BEG.
18629
18630 2002-04-16 Gerd Moellmann <gerd@gnu.org>
18631
18632 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
18633 configuration files.
18634 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
18635 returns 0.
18636
18637 2002-04-15 Andreas Schwab <schwab@suse.de>
18638
18639 * config.in: Regenerated using autoheader.
18640
18641 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
18642 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
18643 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
18644 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
18645 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
18646 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
18647 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
18648 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
18649 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
18650 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
18651 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
18652 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
18653 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
18654 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
18655 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
18656 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
18657 STACK_DIRECTION, now set by autoconf.
18658
18659 2002-04-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18660
18661 * dispnew.c (marginal_area_string): Sort arguments.
18662
18663 * dispextern.h (marginal_area_string): Add prototype.
18664
18665 2002-04-13 Richard M. Stallman <rms@gnu.org>
18666
18667 * fileio.c (Finsert_file_contents):
18668 Don't call temp_output_buffer_setup--do just part, by hand.
18669
18670 * coding.c (run_pre_post_conversion_on_str):
18671 Don't call temp_output_buffer_setup--do just part, by hand.
18672
18673 * keyboard.c (command_loop_1): Don't call start_hourglass
18674 or cancel_hourglass when executing a macro.
18675
18676 * marker.c (count_markers): New function.
18677
18678 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
18679 grow without limit. Move recently used elements to the front.
18680
18681 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
18682
18683 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
18684
18685 2002-04-12 Gerd Moellmann <gerd@gnu.org>
18686
18687 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
18688 rows marginal areas.
18689 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
18690 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
18691
18692 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
18693
18694 2002-04-12 Dave Love <fx@gnu.org>
18695
18696 * dispnew.c (marginal_area_string): New.
18697
18698 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
18699 (Qleft_margin, Qright_margin): Declare.
18700 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
18701
18702 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
18703 note_mode_line_highlight and extended.
18704
18705 * keyboard.c (Qleft_margin, Qright_margin): Declare.
18706 (make_lispy_event): Deal with mouse events in margins.
18707
18708 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
18709
18710 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
18711
18712 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
18713 than deactivating the mark if tmm is set to `lambda'.
18714 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
18715 Use a single event for HELP_EVENT.
18716 (Fexecute_extended_command): Save last_point_position.
18717
18718 2002-04-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18719
18720 * lisp.h (Fpropertize): Add prototype.
18721
18722 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
18723
18724 2002-04-10 Colin Walters <walters@verbum.org>
18725
18726 * config.in: Add HAVE_SHARED_GAME_DIR.
18727
18728 * callproc.c (Vgame_score_directory): New variable.
18729 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
18730
18731 2002-04-10 Richard M. Stallman <rms@gnu.org>
18732
18733 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
18734
18735 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
18736
18737 * minibuf.c (read_minibuf): Use empty_string.
18738 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
18739 Short-circuit the search as soon as it "failed".
18740 (Fall_completions): Allow lambda forms and lists of strings for alist.
18741 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
18742 when require_match is nil.
18743 (Ftest_completion): Rename from `test_completion' and export to elisp.
18744 Call the predicate also when alist is a list.
18745 Obey Vcompletion_regexp_list.
18746 (do_completion, Fminibuffer_complete_and_exit): Use it.
18747 (Fassoc_string): Rename from `assoc_for_completion'.
18748 Allow list of strings as well and export to elisp.
18749
18750 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
18751
18752 * puresize.h (BASE_PURESIZE): Increase to 900KB.
18753
18754 2002-04-08 Juanma Barranquero <lektu@terra.es>
18755
18756 * w32.c (sys_accept): Don't hide variable `s'.
18757
18758 2002-04-05 Gerd Moellmann <gerd@gnu.org>
18759
18760 * callint.c (Fcall_interactively): Use INTEGERP instead of
18761 NUMBERP for checking Vhistory_length.
18762
18763 2002-04-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18764
18765 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
18766 Doc fix to reflect it.
18767
18768 2002-04-04 Richard M. Stallman <rms@gnu.org>
18769
18770 * xdisp.c (display_mode_element): New arg RISKY.
18771 Disregard text props found or specified within a variable
18772 that isn't marked risky-local-variable.
18773 (Qrisky_local_variable): New variable.
18774 (syms_of_xdisp): Init and staticpro it.
18775
18776 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
18777
18778 * undo.c (record_point): New fun.
18779 (record_delete, record_insert): Use it.
18780
18781 2002-04-03 Juanma Barranquero <lektu@terra.es>
18782
18783 * doc.c (Fdocumentation): Add missing parentheses.
18784 (Fdocumentation_property): Likewise.
18785
18786 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
18787
18788 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
18789 data is 0, just return nil.
18790
18791 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
18792
18793 * msdos.c (syms_of_msdos): Fix last change with
18794 mouse_autoselect_window.
18795
18796 2002-04-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18797
18798 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
18799 mouse_autoselect_window.
18800
18801 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
18802
18803 * keyboard.c (make_lispy_event): Handle unknown keysyms together
18804 with system-specific keysyms. Use it also for unknown function keys.
18805
18806 * doc.c (reread_doc_file): Return whether reload was attempted.
18807 (Fdocumentation, Fdocumentation_property): Don't try to reload
18808 if the doc is 0 and only ask once.
18809
18810 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
18811
18812 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
18813
18814 * keyboard.c (read_char): If the event was Qselect_window,
18815 restore timer_idleness_start_time to its previous value.
18816
18817 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
18818
18819 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
18820
18821 * region-cache.c (new_region_cache): Use BEG.
18822
18823 * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
18824 Use BEG and BEG_BYTE.
18825
18826 * doc.c (get_doc_string): Return nil if the location is wrong.
18827 (reread_doc_file): New fun.
18828 (Fdocumentation, Fdocumentation_property):
18829 Call it if get_doc_string fails.
18830 (Fsnarf_documentation): Make it work for a dumped Emacs.
18831
18832 * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
18833 Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
18834
18835 * charset.c (Fstring): Allow 0 arguments.
18836
18837 * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
18838
18839 * process.c (DATAGRAM_CONN_P, list_processes_1)
18840 (Fprocess_datagram_address, Fset_process_datagram_address)
18841 (Fset_network_process_options, server_accept_connection):
18842 Fix some int/Lisp_Object confusions (thank you union types).
18843
18844 2002-04-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18845
18846 * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
18847
18848 * w32term.c: Likewise.
18849 (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
18850
18851 * keyboard.c (Qselect_window): New symbol.
18852 (head_table): Use it.
18853 (keys_of_keyboard): Bound select-window event to handle-select-window.
18854 (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
18855
18856 * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
18857 (last_window): New variable.
18858 (XTread_socket): Generate SELECT_WINDOW_EVENTs.
18859 (note_mouse_movement): Remove reimplemented code in #if 0.
18860 (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
18861 Emacs windows.
18862
18863 * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
18864
18865 2002-03-31 Gerd Moellmann <gerd@gnu.org>
18866
18867 * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
18868 Callers changed.
18869
18870 2002-03-30 Richard M. Stallman <rms@gnu.org>
18871
18872 * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
18873 loop whenever it stops making progress.
18874
18875 * widget.c (set_frame_size): Don't call change_frame_size.
18876
18877 2002-03-30 Gerd Moellmann <gerd@gnu.org>
18878
18879 * dispnew.c (direct_output_for_insert):
18880 Call mark_window_display_accurate.
18881
18882 2002-03-29 Jason Rumney <jasonr@gnu.org>
18883
18884 * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
18885
18886 2002-03-29 Eli Zaretskii <eliz@is.elta.co.il>
18887
18888 * Makefile.in (lread.o): Depend on coding.h.
18889
18890 * lread.c (openp, Fload): Encode the file name before passing it
18891 to `stat', `access', and `emacs_open'.
18892 (openp): GCPRO the encoded file name. Don't recompute Lisp
18893 strings unnecessarily.
18894
18895 2002-03-29 Kim F. Storm <storm@cua.dk>
18896
18897 * fns.c (Flax_plist_put): Doc fix.
18898
18899 2002-03-28 Miles Bader <miles@gnu.org>
18900
18901 * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
18902
18903 2002-03-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
18904
18905 * process.c (set-network-process-options): Add usage.
18906 (make-network-process): Doc fix.
18907
18908 2002-03-26 Eli Zaretskii <eliz@is.elta.co.il>
18909
18910 * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
18911
18912 2002-03-26 Richard M. Stallman <rms@gnu.org>
18913
18914 * fns.c (Fsubstring_no_properties): New function.
18915 (Flax_plist_get, Flax_plist_put): New functions.
18916 (syms_of_fns): defsubr them.
18917
18918 * xdisp.c (update_menu_bar): Test only update_mode_lines;
18919 don't test or alter w->update_mode_line.
18920
18921 * window.c (Fdisplay_buffer): Doc fix.
18922
18923 2002-03-24 Richard M. Stallman <rms@gnu.org>
18924
18925 * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
18926
18927 2002-03-24 Gerd Moellmann <gerd@gnu.org>
18928
18929 * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
18930 (Fdefmacro): Handle `(declare ...)'.
18931 (syms_of_eval) <Qdeclare>: Initialize and staticpro.
18932 (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
18933
18934 2002-03-24 Jason Rumney <jasonr@gnu.org>
18935
18936 * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
18937 (xbm_file_p): Add prototypes.
18938 (xbm_format, xbm_image_p): Sync with xfns.c.
18939 (reflect_byte): New function.
18940 (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
18941 (xbm_load_image): Create bitmaps with a depth of 1.
18942 (init_xfns): Enable XBM images.
18943
18944 2002-03-23 Jason Rumney <jasonr@gnu.org>
18945
18946 * w32term.c (w32_handle_tool_bar_click): Detect up and down events
18947 correctly. Do not pass up_modifier to keyboard buffer.
18948
18949 * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
18950
18951 2002-03-22 Stefan Monnier <monnier@cs.yale.edu>
18952
18953 * Makefile.in (bootstrapclean): New target.
18954 (bootstrap-temacs, bootstrap-doc): Remove.
18955 (bootstrap-emacs): Use a bog-standard `temacs'.
18956 Don't bother to build a DOC file.
18957
18958 * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
18959
18960 * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
18961 in temacs even if !CANNOT_DUMP.
18962 (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
18963
18964 * alloc.c (check_pure_size): Only output a warning.
18965
18966 2002-03-22 Jason Rumney <jasonr@gnu.org>
18967
18968 * w32fns.c (Fx_create_frame): Enable tool-bar when images are
18969 supported.
18970
18971 * w32term.c (zv_bits): Declare as short, for word alignment.
18972 (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
18973 (syms_of_w32term): Define x-use-underline-position-properties.
18974
18975 * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
18976 (clear_image_cache): Block input, fix logic, clear matrices in
18977 all frames that share this cache.
18978
18979 2002-03-22 Eli Zaretskii <eliz@is.elta.co.il>
18980
18981 * emacs.c (main): Update the Copyright year in the blurb printed
18982 by "emacs --version".
18983
18984 * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
18985
18986 * xterm.c (XTread_socket): If XK_ISO_Lock and
18987 XK_ISO_Last_Group_Lock are defined, handle keysyms between
18988 XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
18989
18990 2002-03-21 Kim F. Storm <storm@cua.dk>
18991
18992 * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
18993 menu-bar bindings in keymap and local-map properties _are_ used.
18994 But try keymap property first in accordance with 2002-01-03 patch.
18995 Added comment describing why this is not always reliable.
18996 (tool_bar_items): Ditto for tool-bar.
18997
18998 2002-03-21 Jason Rumney <jasonr@gnu.org>
18999
19000 * w32fns.c (x_clear_image_1): Disable color table code.
19001
19002 2002-03-21 Kim F. Storm <storm@cua.dk>
19003
19004 * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
19005 removed the wrong version of the DEFUN macro; fixed it.
19006
19007 * fns.c (Ffeaturep): Allow subfeature to be a list (test using
19008 Fmember rather than Fmemq).
19009 (Fprovide): Check that subfeatures is a list.
19010
19011 * process.c (QCfeature, QCdatagram): Removed variables.
19012 (QCtype, Qdatagram): New variables.
19013 (network_process_featurep): Removed function.
19014 (Fmake_network_process): Removed :feature check.
19015 Use :type 'datagram instead of :datagram t to create a datagram
19016 socket. This allows us to add other connection types (e.g. raw
19017 sockets) later in a consistent manner.
19018 (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
19019 supported subfeatures for feature make-network-process.
19020 (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
19021 Intern and staticpro QCtype and Qdatagram.
19022 (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
19023
19024 * xfns.c (QCtype): Remove duplicate declaration and
19025 initialization (is now declared in process.c).
19026
19027 * w32fns.c (QCtype): Remove duplicate declaration and
19028 initialization (is now declared in process.c).
19029
19030 2002-03-21 Richard M. Stallman <rms@gnu.org>
19031
19032 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
19033 (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
19034 when jumping to `fail' to avoid undoing reg changes in the
19035 last iteration of the loop.
19036 (GET_UNSIGNED_NUMBER): Skip spaces around the number.
19037
19038 * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
19039 Depend on process.h.
19040
19041 2002-03-20 Jason Rumney <jasonr@gnu.org>
19042
19043 Most of the following changes are still conditional on HAVE_IMAGES
19044 which is not set by default on Windows.
19045
19046 * emacs.c (main) [WINDOWSNT]: Call init_xfns.
19047
19048 * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
19049 (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
19050 (four_corners_best, x_clear_image_1, x_clear_image)
19051 (x_alloc_image_color, postprocess_image)
19052 (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
19053 (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
19054 (init_xfns, syms_of_w32fns): Initialize image functions and constants.
19055
19056 * w32gui.h (struct XImage): Define.
19057
19058 * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
19059 extract mouse co-ordinates.
19060
19061 2002-03-20 Jason Rumney <jasonr@gnu.org>
19062
19063 * w32.c (init_winsock): Dynamically load new server and UDP
19064 socket functions.
19065 (socket_to_fd): New function.
19066 (sys_socket): Use it.
19067 (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
19068 (sys_recvfrom, sys_sendto): New wrapper functions.
19069
19070 * process.c (QCfamily, QCfilter): Remove duplicate declaration
19071 and initialization.
19072
19073 * makefile.w32-in (LIBS): Remove $(WSOCK32).
19074
19075 2002-03-20 Eli Zaretskii <eliz@is.elta.co.il>
19076
19077 * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
19078 Don't use "sun" as a variable, it's a predefined constant on Sun
19079 machines.
19080
19081 2002-03-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19082
19083 * bytecode.c (Fbyte_code): Revert last change.
19084
19085 2002-03-19 Kim F. Storm <storm@cua.dk>
19086
19087 * makefile.w32-in (LIBS): Add $(WSOCK32).
19088 From David Ponce <dponce@voila.fr>.
19089
19090 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19091
19092 * process.c (wait_reading_process_input): Move variables `pname'
19093 and `pnamelen' down where they are used.
19094
19095 * bytecode.c (Fbyte_code): Discard unused computed value to
19096 prevent gcc warning.
19097
19098 * lisp.h (Fplist_member): Add prototype.
19099
19100 2002-03-18 Kim F. Storm <storm@cua.dk>
19101
19102 * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
19103 HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
19104
19105 * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
19106 Remove explicit GNU_LINUX settings for datagram support.
19107
19108 2002-03-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19109
19110 * process.c (Fmake_network_process): Remove unused variable `sa'.
19111 Doc fix. Add usage:.
19112 (set_socket_options): Remove unused variables `optnum' and `opttype'.
19113
19114 2002-03-17 Richard M. Stallman <rms@gnu.org>
19115
19116 * xdisp.c (cursor_type_changed): New variable.
19117 (redisplay_internal): Redisplay all windows if cursor_type_changed.
19118 Clear it when clearing windows_or_buffers_changed.
19119 (try_cursor_movement, redisplay_window, try_window_id)
19120 (try_window_reusing_current_matrix): Test cursor_type_changed
19121 along with windows_or_buffers_changed.
19122
19123 * window.h (cursor_type_changed): New variable.
19124
19125 * xfns.c (x_set_cursor_type): Set cursor_type_changed,
19126 not update_mode_lines, and always set it to 1.
19127
19128 * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
19129 if no frames needed redrawing.
19130
19131 2002-03-17 Kim F. Storm <storm@cua.dk>
19132
19133 The following changes add support for network server processes,
19134 datagram connections, and local (unix) sockets.
19135
19136 * process.h (struct Lisp_Process): New member log.
19137 Doc fix: Member command used to indicate stopped network process.
19138 Doc fix: Member childp contains plist for network process.
19139 Doc fix: Member kill_without_query is inverse of query-on-exit flag.
19140
19141 * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
19142 (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
19143 (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
19144 New variables.
19145 (NETCONN1_P): New macro.
19146 (DATAGRAM_SOCKETS): New conditional symbol.
19147 (datagram_address): New array.
19148 (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
19149 (status_message): Use concat3.
19150 (Fprocess_status): Add `listen' status to doc string. Return `stop'
19151 for a stopped network process.
19152 (Fset_process_buffer): Update contact plist for network process.
19153 (Fset_process_filter): Ditto. Don't enable input for stopped
19154 network processes. Server must listen, even if filter is t.
19155 (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
19156 New functions.
19157 (Fprocess_kill_without_query): Removed. Now defined in simple.el.
19158 (Fprocess_contact): Added KEY argument. Handle datagrams.
19159 (list_processes_1): Optionally show only processes with the query
19160 on exit flag set. Dynamically adjust column widths. Omit tty
19161 column if not needed. Report stopped network processes.
19162 Identify server and datagram network processes.
19163 (Flist_processes): New optional arg `query-only'.
19164 (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
19165 (conv_lisp_to_sockaddr, set_socket_options)
19166 (network_process_featurep, unwind_request_sigio): New helper functions.
19167 (Fprocess_datagram_address, Fset_process_datagram_address):
19168 (Fset_network_process_options): New lisp functions.
19169 (Fopen_network_stream): Removed. Now defined in simple.el.
19170 (Fmake_network_process): New lisp function. Code is based on previous
19171 Fopen_network_stream, but heavily reworked with new property list based
19172 argument list, support for datagrams, server processes, and local
19173 sockets in addition to old client-only functionality.
19174 (server_accept_connection): New function.
19175 (wait_reading_process_input): Use it to handle incoming connects.
19176 Do not enable input on a new connection if process is stopped.
19177 (read_process_output): Handle datagram sockets. Use 2k buffer for them.
19178 (send_process): Handle datagram sockets.
19179 (Fstop_process, Fcontinue_process): Apply to network processes. A stopped
19180 network process is indicated by setting command field to t .
19181 (Fprocess_send_eof): No-op if datagram connection.
19182 (Fstatus_notify): Don't read input for a stream server socket or a
19183 stopped network process.
19184 (init_process): Initialize datagram_address array.
19185 (syms_of_process): Intern and staticpro new variables, defsubr new
19186 functions.
19187
19188 2002-03-16 Jason Rumney <jasonr@gnu.org>
19189
19190 * w32fns.c (w32_to_all_x_charsets): Return correct type in
19191 startup case.
19192
19193 2002-03-16 Richard M. Stallman <rms@gnu.org>
19194
19195 * xdisp.c (redisplay_internal, redisplay_windows):
19196 Use list_of_error to call internal_condition_case_1.
19197 (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
19198 so as to catch all errors with no possibility of debugger redisplay.
19199 (list_of_error): New variable.
19200 (syms_of_xdisp): Init and staticpro it.
19201
19202 * print.c (print_object): Delete `\ ' from printed rep of frame.
19203
19204 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il>
19205
19206 * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
19207 until its implementation is fixed.
19208
19209 2002-03-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19210
19211 * xfns.c (png_load): Remove unused variable `gamma_str'.
19212
19213 2002-03-14 Richard M. Stallman <rms@gnu.org>
19214
19215 * xfns.c (x_real_positions): Handle failure in XQueryTree.
19216
19217 2002-03-14 Miles Bader <miles@gnu.org>
19218
19219 * intervals.c (adjust_for_invis_intang): New function.
19220 (set_point_both): Use `adjust_for_invis_intang' to do most of the
19221 work for dealing with invisible+intangible regions. Do so before
19222 and after both forward and backward movements, to handle both
19223 front-sticky and rear-sticky cases.
19224 * textprop.c (text_property_stickiness): Function moved here from
19225 `editfns.c'.
19226 * intervals.h (text_property_stickiness): New declaration.
19227 * editfns.c (char_property_eq): Function removed.
19228 (text_property_stickiness): Function moved to `textprop.c'.
19229
19230 2002-03-13 Jason Rumney <jasonr@gnu.org>
19231
19232 * config.in: Add STRFTIME_NO_POSIX2.
19233
19234 * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
19235 and %OX when underlying strftime does not.
19236
19237 2002-03-13 Stefan Monnier <monnier@cs.yale.edu>
19238
19239 * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
19240 Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
19241 line) to avoid annoying flicker.
19242 (xm_scroll_callback): Get rid of the now unnecessary kludge.
19243 (XTread_socket): Mark it static.
19244
19245 * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
19246
19247 2002-03-13 Kim F. Storm <storm@cua.dk>
19248
19249 * puresize.h (BASE_PURESIZE): Increase to 775000.
19250
19251 2002-03-12 Juanma Barranquero <lektu@terra.es>
19252
19253 * editfns.c (syms_of_editfns): Fix typo.
19254
19255 2002-03-12 Gerd Moellmann <gerd@gnu.org>
19256
19257 * xsmfns.c: Include stdio.h because termhooks.h needs it.
19258 Include termopt.h for interrupt_input.
19259
19260 2002-03-11 Andreas Schwab <schwab@suse.de>
19261
19262 * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
19263
19264 2002-03-11 Gerd Moellmann <gerd@gnu.org>
19265
19266 * xterm.c (note_mouse_movement): Put code for
19267 x_autoselect_window_p in #if 0.
19268
19269 * lread.c (Fload): Don't assume that message_with_string uses the
19270 string it is given like a C string.
19271
19272 2002-03-10 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
19273
19274 * xterm.h (x_session_check_input, x_session_initialize): Declare.
19275
19276 * xterm.c (XTread_socket): Add call to x_session_check_input and
19277 x_session_have_connection.
19278 (x_initialize): Add call to x_session_initialize.
19279
19280 * termhooks.h (enum event_kind): Add save_session_event.
19281
19282 * keyboard.c: Add Emacs event save_session_event.
19283
19284 * emacs.c (main): Add call to syms_of_xsmfns.
19285
19286 * lisp.h (syms_of_xsmfns): Declare extern.
19287
19288 * config.in: Add HAVE_X_SM.
19289
19290 * Makefile.in (LIBXT): Add -lSM -lICE
19291 if HAVE_X_SM and not USE_X_TOOLKIT.
19292 (XOBJ): New file xsmfns.c added.
19293
19294 * xsmfns.c: New file for X session management.
19295
19296 2002-03-09 Jason Rumney <jasonr@gnu.org>
19297
19298 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
19299 read-only when setting modified time.
19300
19301 2002-03-08 Gerd Moellmann <gerd@gnu.org>
19302
19303 * xdisp.c (move_it_vertically_backward): At the end of the function,
19304 when moving forward by lines, treat terminal frames specially.
19305
19306 * keyboard.c (echo_char): Make sure to add a separator between
19307 keys even if echo_dash hasn't been called.
19308
19309 * xdisp.c: Use new string macros.
19310 (update_echo_area): Pass number of bytes to message3 instead of
19311 number of chars.
19312 (set_message_1): Don't access a string's size_byte directly.
19313 (decode_mode_spec_coding): Use number of bytes of eoltype string
19314 instead number of chars.
19315
19316 * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
19317
19318 2002-03-08 Juanma Barranquero <lektu@terra.es>
19319
19320 * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
19321 24-bit.
19322
19323 2002-03-06 Jason Rumney <jasonr@gnu.org>
19324
19325 * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
19326
19327 2002-03-06 Gerd Moellmann <gerd@gnu.org>
19328
19329 * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
19330 (cancel_echoing, echo_length, echo_truncate): Changed to
19331 work with new kboard definition.
19332 (echo_now): Use message3_nolog instead of message2_nolog.
19333
19334 * alloc.c (mark_kboards): Mark echo_string.
19335
19336 * keyboard.h (ECHOBUFSIZE): Removed.
19337 (struct kboard): Member echoptr removed, member echobuf renamed
19338 to echo_string.
19339
19340 * xdisp.c (message_with_string): Use Fformat instead of doprnt and
19341 message3 instead of message2 to display the message using STRING's
19342 text properties.
19343
19344 2002-03-05 Andreas Schwab <schwab@suse.de>
19345
19346 * xdisp.c (hscroll_margin): Change to EMACS_INT.
19347
19348 2002-03-05 Per Abrahamsen <abraham@dina.kvl.dk>
19349
19350 * frame.c (default-frame-alist): Explain that setting it doesn't
19351 affect existing frames.
19352
19353 2002-03-05 Stefan Monnier <monnier@cs.yale.edu>
19354
19355 * indent.c (skip_invisible): Fix my brain fart.
19356
19357 * dispnew.c (sit_for): Don't wait if executing a kbd macro.
19358
19359 2002-03-04 Stefan Monnier <monnier@cs.yale.edu>
19360
19361 * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
19362 * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
19363 * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
19364 * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
19365 and variables to use EMACS_INT instead of just int.
19366
19367 * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
19368
19369 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
19370
19371 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
19372 environment, pass it down with corrected value.
19373
19374 2002-03-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19375
19376 * lread.c (read_filtered_event): Do not call start_hourglass
19377 before returning.
19378
19379 2002-03-04 Juanma Barranquero <lektu@terra.es>
19380
19381 * w32term.c (x_display_and_set_cursor): Fix typo.
19382
19383 2002-03-03 Richard M. Stallman <rms@gnu.org>
19384
19385 * fileio.c (Fmake_temp_name): Doc fix.
19386
19387 2002-03-03 Gary Wong <gtw@gnu.org>
19388
19389 * termcap.c [!emacs]: Replace ospeed for building standalone
19390 libtermcap, for binary compatibility.
19391
19392 * tparam.c [!emacs]: Move #define of bcopy to after string.h.
19393
19394 2002-03-03 Richard M. Stallman <rms@gnu.org>
19395
19396 * xrdb.c (file_p): Rename arg `path' to `filename'.
19397
19398 * abbrev.c (Fexpand_abbrev): Increment plist as use count
19399 only if it is an integer.
19400
19401 * xfns.c (png_load): Set screen_gamma based on f->gamma.
19402 If png_get_sRGB gives an answer, call png_set_gamma
19403 using the default image gamma value.
19404
19405 * lread.c (read1): When reading from a file, default string to
19406 multibyte only if it has some multibyte characters.
19407
19408 * print.c (print_object): Output multibyte chars 128...255
19409 using \x even if ! print_escape_multibyte.
19410
19411 * xdisp.c (display_mode_element): Move the places where
19412 bytepos, charpos, this, and lisp_string are set.
19413 Use lisp_string to set bytepos.
19414
19415 * xdisp.c (redisplay_internal):
19416 Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
19417
19418 * xdisp.c (display_mode_element): Merge properties specified with
19419 :propertize onto those that come with the string.
19420
19421 2002-03-03 Eli Zaretskii <eliz@is.elta.co.il>
19422
19423 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
19424 automatic-hscrolling. Users changed.
19425 <hscroll-margin>: Renamed from automatic-hscroll-margin.
19426 Users changed.
19427 <hscroll-step>: Renamed from automatic-hscroll-step. Users changed.
19428
19429 2002-03-02 Eli Zaretskii <eliz@is.elta.co.il>
19430
19431 * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
19432
19433 2002-03-02 Kim F. Storm <storm@cua.dk>
19434
19435 * window.c (Fminibuffer_selected_window): New function.
19436 (syms_of_window): Defsubr it.
19437
19438 2002-03-01 Kim F. Storm <storm@cua.dk>
19439
19440 * window.h (struct window): New member phys_cursor_width.
19441
19442 * window.c (make_window, replace_window): Init phys_cursor_width.
19443
19444 * xterm.c (x_display_and_set_cursor): Blink box cursor using
19445 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
19446
19447 * w32term.c (x_display_and_set_cursor): Blink box cursor using
19448 hollow box cursor. Blink bar cursor using 1 pixel wide bar.
19449
19450 * lisp.h (GCPRO6): New macro.
19451
19452 * process.c (Fopen_network_stream): Use GCPRO6.
19453
19454 2002-03-01 Kim F. Storm <storm@cua.dk>
19455
19456 * process.c (Qconnect, Qfailed): New variables.
19457 (syms_of_process): Intern and staticpro them.
19458 (Fprocess_status): Document connect and failed return values.
19459 [NON_BLOCKING_CONNECT]: New conditional.
19460 (connect_wait_mask, num_pending_connects): New variables.
19461 (status_message): Convert Qfailed status.
19462 (Fopen_network_stream): Added support for non-blocking connect.
19463 New optional args: filter, sentinel, non_blocking. Doc updated.
19464 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
19465 (deactivate_process): Handle pending non-blocking connect.
19466 (wait_reading_process_input): Poll for status of non-blocking
19467 connects. Exec sentinel directly when connect succeeds.
19468 (status_notify): Don't read process output if not yet connected.
19469
19470 2002-02-28 Kim F. Storm <storm@cua.dk>
19471
19472 * window.c (minibuf_selected_window): Renamed from
19473 Vminibuf_selected_window. Users changed.
19474 (syms_of_window): Staticpro it.
19475
19476 2002-02-26 Kim F. Storm <storm@cua.dk>
19477
19478 The following changes add a new Vminibuf_selected_window variable
19479 which is similar to Vminibuf_scroll_window, but which is only set
19480 on entry to the minibuffer (from a non-minibuffer window):
19481
19482 * window.c (Vminibuf_selected_window): New variable.
19483 (struct save_window_data): New member minibuf_selected_window.
19484 (Fset_window_configuration): Restore Vminibuf_selected_window.
19485 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
19486 Set minibuf_scroll_window member to nil if minibuf_level is 0.
19487 (compare_window_configurations): Compare minibuf_selected_window.
19488
19489 * window.h (Vminibuf_selected_window): Declare extern.
19490
19491 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
19492 entry to minibuffer or on entry from a non-minibuffer window.
19493
19494 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
19495 Vminibuf_selected_window instead of Vminibuf_scroll_window.
19496
19497 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
19498 instead of Vminibuf_scroll_window when deciding in which window
19499 the region should be highlighted. Consequently, the region remains
19500 highlighteded even when a completion buffer is also displayed.
19501
19502 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
19503
19504 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
19505
19506 * xselect.c (Qcompound_text_with_extensions): Renamed from
19507 Qcompound_text_no_extensions.
19508 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
19509
19510 2002-02-26 Juanma Barranquero <lektu@terra.es>
19511
19512 * w32proc.c (syms_of_ntproc): Doc fix.
19513
19514 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19515
19516 * intervals.h: Include "dispextern.h" unconditionally.
19517
19518 2002-02-24 Jason Rumney <jasonr@gnu.org>
19519
19520 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
19521 and disp-table.elc.
19522 (lisp): Add emacs-lisp/backquote.elc.
19523
19524 2002-02-24 Kim F. Storm <storm@cua.dk>
19525
19526 * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
19527 The validation of the event type was too strict as it didn't
19528 allow string events; buffer names are used in bindings for
19529 menu-bar-select-buffer (see `menu-bar-update-buffers').
19530
19531 2002-02-23 Kim F. Storm <storm@cua.dk>
19532
19533 The following changes rework my patch of 2002-02-06 which
19534 added command remapping by entering the commands directly into
19535 the keymaps. Now, command remapping uses an explicit `remap'
19536 prefix in the keymaps, i.e. [remap COMMAND].
19537
19538 * keymap.c (Qremap, remap_command_vector): New variables.
19539 (is_command_symbol): Remove function.
19540 (Fdefine_key): No longer accept a symbol for KEY.
19541 Added validation of [remap COMMAND] argument for KEY.
19542 The DEF is no longer required to be a symbol when remapping a command.
19543 (Fremap_command): New function to remap command through keymaps.
19544 (Flookup_key): Perform command remapping initiated by
19545 Fremap_command directly for speed.
19546 (Fkey_binding): Use Fremap_command for command remapping.
19547 (where_is_internal): Handle new command remapping representation.
19548 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
19549 staticpro them. Defsubr Fremap_command.
19550
19551 * keymap.h (Fremap_command): Declare extern.
19552 (is_command_symbol): Remove extern.
19553
19554 * keyboard.c (command_loop_1): Use Fremap_command for command
19555 remapping; now try command remapping for all symbols.
19556
19557 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
19558
19559 * coding.h (run_pre_post_conversion_on_str): Add prototype.
19560
19561 2002-02-23 Jason Rumney <jasonr@gnu.org>
19562
19563 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
19564 on the string before encoding it.
19565 (Fw32_get_clipboard_data): Run post-read-conversion on the string
19566 after decoding it.
19567
19568 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
19569
19570 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19571
19572 * w32term.c (enter_timestamp): Remove unused static variable to
19573 prevent warning.
19574
19575 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
19576
19577 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
19578
19579 * w16select.c (Fw16_get_clipboard_data): Fix last change.
19580
19581 * xselect.c (selection_data_to_lisp_data): Fix last change.
19582
19583 2002-02-22 Jason Rumney <jasonr@gnu.org>
19584
19585 * w32term.h (struct w32_output): New member menu_command_in_progress.
19586
19587 * w32menu.c (menubar_selection_callback): Free the menu and
19588 clear the menu_command_in_progress flag.
19589
19590 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
19591 (menu_free_timer): New variable.
19592 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
19593 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
19594 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
19595 menu command is in progress.
19596 <WM_COMMAND>: Set the menu_command_in_progress flag.
19597 Kill any menu_free_timer that is running.
19598
19599 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
19600 Call ExtTextOutA rather than ExtTextOut.
19601
19602 2002-02-22 Eli Zaretskii <eliz@gnu.org>
19603
19604 * puresize.h (BASE_PURESIZE): Increase to 755000.
19605
19606 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
19607
19608 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
19609 on the string before encoding it.
19610 (Fw16_get_clipboard_data): Run post-read-conversion on the string
19611 after decoding it.
19612
19613 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
19614
19615 Support for ICCCM Extended Segments in X selections:
19616
19617 * xselect.c <Qcompound_text_no_extensions>: New variable.
19618 (syms_of_xselect): Intern and staticpro it.
19619 (selection_data_to_lisp_data): Run post-read-conversion on decoded
19620 selection text.
19621 (lisp_data_to_selection_data): If next-selection-coding-system is
19622 compound-text-no-extensions, set the type of selection to be
19623 compound-text.
19624
19625 * xterm.h (x_encode_text): Update prototype.
19626
19627 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
19628 callers changed. If SELECTIONP is non-zero, run the
19629 pre-write-conversion function before encoding the selection text.
19630
19631 2002-02-21 Kim F. Storm <storm@cua.dk>
19632
19633 * frame.c (syms_of_frame): Change mouse-highlight default to t.
19634
19635 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
19636 Correct composing of language-change event.
19637
19638 2002-02-20 Kim F. Storm <storm@cua.dk>
19639
19640 * keyboard.c (menu_bar_items): Don't include keymap or local-map
19641 bindings at PT when building menu (the menu is not updated often
19642 enough for this to work reliable).
19643 (tool_bar_items): Likewise.
19644 (current_active_maps): Removed unused (and buggy) function.
19645
19646 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19647
19648 * xfns.c (gif_load): Use correct width and height for GIF images.
19649
19650 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
19651
19652 * floatfns.c (Fatan): Accept an optional second arg and call
19653 atan2 if passed 2 args.
19654
19655 2002-02-18 Jason Rumney <jasonr@gnu.org>
19656
19657 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
19658
19659 2002-02-17 Jason Rumney <jasonr@gnu.org>
19660
19661 * w32term.c (x_autoselect_window_p): New variable.
19662 (syms_of_w32term): DEFVAR_BOOL and initialize it.
19663 (note_mouse_movement): Use it.
19664
19665 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
19666
19667 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
19668
19669 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19670 New variables.
19671 (syms_of_w32fns): Intern and staticpro them.
19672 (x_frame_parms) <"fullscreen">: New parameter.
19673 (x_fullscreen_move, x_set_fullscreen): New functions.
19674 (x_set_frame_parameters): Support Qfullscreen.
19675 (x_real_positions): Save x/y_pixels_diff frame params.
19676 (x_figure_window_size): Support full-screen frames.
19677 (Fx_create_frame): Default the fullscreen parameter.
19678
19679 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
19680 (x_fullscreen_adjust): New functions.
19681 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
19682 fullscreen. Call x_check_fullscreen_move, and set the
19683 want_fullscreen member of output_data.w32
19684 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
19685
19686 * w32term.h: New enum for FULLSCREEN_* constants.
19687 (struct w32_output): New members want_fullscreen, x_pixels_diff,
19688 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
19689 (x-fullscreen-adjust): New prototype.
19690
19691 2002-02-17 Kim F. Storm <storm@cua.dk>
19692
19693 * frame.c (Vmouse_highlight): New variable.
19694 (syms_of_frame): DEFVAR_LISP it.
19695
19696 * frame.h (Vmouse_highlight): Declare extern.
19697
19698 * xterm.h (struct x_display_info): Add mouse_face_hidden.
19699
19700 * xterm.c (disable_mouse_highlight): Removed variable.
19701 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
19702 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19703 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
19704 and on after keyboard input.
19705 (x_term_init): Initialize mouse_face_hidden.
19706
19707 * msdos.h (struct display_info): Add mouse_face_hidden.
19708
19709 * msdos.c (disable_mouse_highlight): Removed variable.
19710 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19711 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
19712 (internal_terminal_init): Initialize mouse_face_hidden.
19713 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
19714 and on after keyboard input.
19715
19716 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
19717
19718 * w32term.c (disable_mouse_highlight): Removed variable.
19719 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
19720 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19721 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
19722 and on after keyboard input.
19723 (w32_initialize_display_info): Initialize mouse_face_hidden.
19724
19725 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
19726
19727 * msdos.c (last_mouse_window): New variable.
19728 (dos_rawgetc): Fix last change--if the mouse is in the same window
19729 as recorded in last_mouse_window, don't select this window.
19730
19731 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
19732
19733 * msdos.c (x_autoselect_window_p): New variable.
19734 (syms_of_msdos): Defvar it.
19735 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
19736 which the last mouse movement occured, unless it is already selected.
19737
19738 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
19739 New variables.
19740 (syms_of_xdisp): DEVFAR them.
19741 (hscroll_window_tree): Use automatic_hscroll_margin and
19742 Vautomatic_hscroll_step to compute the amount of window scrolling.
19743
19744 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19745
19746 * xterm.c (x-autoselect-window): New variable.
19747 (note_mouse_movement): Use it.
19748
19749 * keyboard.c: Do not include "systime.h" twice.
19750
19751 2002-02-15 Andreas Schwab <schwab@suse.de>
19752
19753 * puresize.h (PURESIZE_RATIO): Increase to 9/5.
19754
19755 * alloc.c (NSTATICS): Increase to 1280.
19756
19757 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
19758
19759 * alloc.c (NSTATICS): Bump to 1026.
19760
19761 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
19762 (Vx_super_keysym): New variables.
19763 (syms_of_xterm): DEFVAR_LISP them.
19764 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
19765 variables to determine which keys to use for the various modifiers.
19766
19767 2002-02-13 Kim F. Storm <storm@cua.dk>
19768
19769 * window.c (Vmode_line_in_non_selected_windows): Removed.
19770 (mode_line_in_non_selected_windows): New variable.
19771 (syms_of_window): DEFVAR_BOOL it.
19772
19773 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
19774 Use mode_line_in_non_selected_windows.
19775 (mode_line_in_non_selected_windows): Declare extern.
19776 (Vmode_line_in_non_selected_windows): Removed extern.
19777
19778 2002-02-13 Richard M. Stallman <rms@gnu.org>
19779
19780 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
19781 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
19782 (Fclear_this_command_keys): Doc fixes.
19783
19784 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
19785 (update_face_from_frame_parameter): Increment face_change_count
19786 and windows_or_buffers_changed to force redisplay using changed faces.
19787
19788 * xdisp.c (QCpropertize): New variable.
19789 (mode_line_proptrans_alist): New variable.
19790 (display_mode_element): New arg PROPS; all calls changed.
19791 Implement this, for strings.
19792 Handle literal output of strings by sharing the
19793 main-line code for strings, using local var `literal'.
19794 Handle :propertize feature.
19795 (syms_of_xdisp): Initialze and staticpro QCpropertize and
19796 mode_line_proptrans_alist.
19797
19798 2002-02-11 Kim F. Storm <storm@cua.dk>
19799
19800 * window.c (Vmode_line_in_non_selected_windows): New variable.
19801 (syms_of_window): DEFVAR_LISP it.
19802
19803 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
19804 (CURRENT_MODE_LINE_FACE_ID): Use it.
19805 (Vmode_line_in_non_selected_windows): Declare extern.
19806
19807 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
19808 to get mode line face.
19809
19810 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
19811
19812 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
19813 variables; cus-start.el doesn't need them anymore.
19814
19815 2002-02-09 Kim F. Storm <storm@cua.dk>
19816
19817 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
19818 reduction. This fixes a display problem where stray newlines were
19819 inserted in the window (corrected by C-l). Clarified code (IMHO).
19820
19821 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
19822
19823 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
19824
19825 * xdisp.c (display_mode_lines): Fix last change.
19826
19827 2002-02-09 Jason Rumney <jasonr@gnu.org>
19828
19829 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
19830 match each other.
19831 (w32_load_system_font): Prevent Cleartype fonts from loading.
19832 (Fx_show_tip): Ensure tip frames are above other topmost windows.
19833
19834 2002-02-09 Kim F. Storm <storm@cua.dk>
19835
19836 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
19837 (CURRENT_MODE_LINE_HEIGHT): Use it.
19838 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
19839
19840 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
19841 (pos_visible_p, handle_face_prop): Likewise.
19842 (display_mode_lines): Likewise, but for the real selected window.
19843 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
19844
19845 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
19846 in non-selected windows.
19847 (realize_basic_faces): Realize it.
19848 (syms_of_term): Intern and staticpro it.
19849
19850 2002-02-08 Kim F. Storm <storm@cua.dk>
19851
19852 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
19853 Changed mail addresses to emacs-devel@gnu.org.
19854
19855 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
19856
19857 * fileio.c (Fsubstitute_in_file_name): If the file name includes
19858 ~user, and there's no such user, don't discard everything before ~user.
19859
19860 * floatfns.c (Fround): Doc fix.
19861
19862 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19863
19864 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
19865
19866 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
19867
19868 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
19869
19870 2002-02-07 Kim F. Storm <storm@cua.dk>
19871
19872 * keymap.c (where_is_internal): Only check whether definition is
19873 remapped if it fulfills is_command_symbol.
19874
19875 2002-02-07 Andreas Schwab <schwab@suse.de>
19876
19877 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
19878
19879 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
19880
19881 2002-02-06 Kim F. Storm <storm@cua.dk>
19882
19883 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
19884 defining command remapping. Doc updated.
19885 (Flookup_key): Remap command through keymap if KEY is a symbol.
19886 (is_command_symbol): New function.
19887 (Fkey_binding): Use it. New optional argument NO-REMAP.
19888 Doc updated. Callers changed. Perform command remapping via
19889 recursive call unless that arg is non-nil.
19890 (where_is_internal): New argument no_remap. Callers changed.
19891 Call recursively to find original key bindings for a remapped
19892 comand unless that arg is non-nil.
19893 (Fwhere_is_internal): New optional argument NO-REMAP.
19894 Doc updated. Callers changed. Pass arg to where_is_internal.
19895
19896 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
19897 (is_command_symbol): Add prototype.
19898
19899 * keyboard.c (Vthis_original_command): New variable.
19900 (syms_of_keyboard): DEFVAR_LISP it.
19901 (command_loop_1): Set it, and perform command remapping.
19902
19903 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19904
19905 * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
19906
19907 2002-02-06 Jason Rumney <jasonr@gnu.org>
19908
19909 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
19910
19911 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
19912
19913 * charset.c (get_charset_id): Use if-else instead of ?:.
19914
19915 2002-02-06 Richard M. Stallman <rms@gnu.org>
19916
19917 * filelock.c (S_ISLNK): Define if not defined.
19918
19919 2002-02-03 Richard M. Stallman <rms@gnu.org>
19920
19921 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
19922
19923 * lread.c (read1): Redesign strategy for force_multibyte and
19924 force_singlebyte. Now is_multibyte records whether read_buffer
19925 is multibyte. Encountering any multibyte character makes it so.
19926
19927 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
19928
19929 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
19930 with the same sequence, map that sequence to f10 rather than f0.
19931
19932 2002-02-03 Andreas Schwab <schwab@suse.de>
19933
19934 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
19935 latter never being defined on GNU/Linux.
19936
19937 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
19938
19939 * xfaces.c (realize_default_face): Don't set the weight and slant of
19940 the default face to Qnormal, unless these attributes are unspecified.
19941
19942 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19943
19944 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
19945 Call cancel_hourglass unconditionally.
19946
19947 * eval.c (Fsignal): Remove duplicated declaration of
19948 the variable `display_hourglass_p'.
19949
19950 2002-01-31 Richard M. Stallman <rms@gnu.org>
19951
19952 * editfns.c (region_limit): Nicer error message.
19953
19954 * coding.c (decode_composition_emacs_mule):
19955 Give up if NCOMPONENT gets too large to index `component'.
19956
19957 * callint.c (check_mark): New arg to specify clearer error message.
19958 Callers changed.
19959
19960 2002-01-27 Richard M. Stallman <rms@gnu.org>
19961
19962 * minibuf.c (Fcompleting_read): Doc fix.
19963
19964 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19965
19966 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
19967 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
19968 Fix doc-strings.
19969
19970 2002-01-26 Richard M. Stallman <rms@gnu.org>
19971
19972 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
19973
19974 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
19975 and scroll_up_aggressively.
19976
19977 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
19978
19979 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
19980
19981 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
19982
19983 * textprop.c (Fnext_property_change, Fnext_single_property_change)
19984 (Fprevious_property_change, Fprevious_single_property_change):
19985 Stay within the narrowed-buffer boundaries.
19986
19987 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
19988
19989 * term.c (Ftty_display_color_cells): New function.
19990 (syms_of_term): Defsubr it.
19991 (Ftty_display_color_cells, Ftty_display_color_p): Change the
19992 argument name to DISPLAY. Doc fix.
19993
19994 * dispextern.h: Add prototype for set_tty_color_mode and
19995 tty_setup_colors.
19996
19997 2002-01-24 Jason Rumney <jasonr@gnu.org>
19998
19999 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
20000 If region left to draw is not what was expected, mark the frame as
20001 garbaged.
20002
20003 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
20004 Combine the regions returned by BeginPaint and GetUpdateRect.
20005
20006 2002-01-23 Jason Rumney <jasonr@gnu.org>
20007
20008 * w32term.c (x_update_window_begin): Only hide caret if
20009 w32_use_visible_system_caret is set.
20010 (x_update_window_end): Only show caret if
20011 w32_use_visible_system_caret is set.
20012 (syms_of_w32term): Handle SystemParametersInfo call failing.
20013
20014 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
20015
20016 2002-01-22 Richard M. Stallman <rms@gnu.org>
20017
20018 * unexelf.c (unexec): Define n so as to cause compilation error
20019 for the code where people have often written n instead of nn.
20020
20021 * .gdbinit (hookpost-run): Defined.
20022
20023 2002-01-22 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20024
20025 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
20026
20027 2002-01-21 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20028
20029 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
20030 if fullscreen is being set.
20031
20032 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20033
20034 * minibuf.c (Fminibuffer_contents)
20035 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
20036 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
20037
20038 2002-01-21 Richard M. Stallman <rms@gnu.org>
20039
20040 * window.c (check_frame_size): Fix minimum height calculation.
20041
20042 2002-01-20 Ken Raeburn <raeburn@gnu.org>
20043
20044 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
20045 height before comparison.
20046 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
20047
20048 2002-01-20 Jason Rumney <jasonr@gnu.org>
20049
20050 * w32term.c (w32_system_caret_width): Remove.
20051 (w32_use_visible_system_caret): New user flag.
20052 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
20053 Windows reports a screen reader running.
20054 (x_update_window_begin): Hide the system caret.
20055 (x_update_window_end): Show the system caret.
20056 (x_display_and_set_cursor): Don't draw a cursor when
20057 w32_use_visible_system_caret is set. Do not adjust width.
20058
20059 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
20060 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
20061 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
20062 the user requests it. Use system default width when creating.
20063 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
20064
20065 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
20066 New window messages.
20067
20068 2002-01-20 Richard M. Stallman <rms@gnu.org>
20069
20070 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
20071
20072 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20073
20074 * doprnt.c (doprnt1): Fix typos in error call.
20075
20076 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
20077
20078 * unexelf.c (unexec) [__sgi]: Support the .got sections.
20079
20080 2002-01-20 Jason Rumney <jasonr@gnu.org>
20081
20082 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
20083 that Windows returns. If a double check fails, try to guess how
20084 ExtTextOut is going to act.
20085
20086 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
20087 in place of stricmp.
20088 (w32_list_synthesized_fonts): Removed.
20089 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
20090 (struct enumfont_t): New element; list.
20091 (enum_font_cb2): List all style and charset variations of a font.
20092 (Fw32_select_font): New optional argument; include_proportional.
20093 Exclude vertical fonts. Exclude proportional fonts unless
20094 include_proportional is non-nil.
20095 (w32_enable_synthesized_fonts): Change to a boolean.
20096 (Fw32_send_sys_command): Doc fix.
20097
20098 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20099
20100 * dispnew.c (update_frame): Move the variable `tem' to the block
20101 where it is used.
20102
20103 2002-01-19 Jason Rumney <jasonr@gnu.org>
20104
20105 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
20106 call to face-set-after-frame-default.
20107
20108 2002-01-18 Richard M. Stallman <rms@gnu.org>
20109
20110 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
20111 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
20112
20113 2002-01-17 Richard M. Stallman <rms@gnu.org>
20114
20115 * window.c (enlarge_window): When exceeding size of parent,
20116 directly delete all the siblings instead of trying to resize it.
20117
20118 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20119
20120 * term.c (set_tty_color_mode): Remove unused variable `tem'.
20121
20122 2002-01-16 Henrik Enberg <henrik@enberg.org>
20123
20124 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
20125
20126 2002-01-16 Kim F. Storm <storm@cua.dk>
20127
20128 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
20129 is invisible. This can happen if cursor is on top line of a
20130 window, and we switch to a buffer with a header line.
20131
20132 * w32term.c (x_erase_phys_cursor): Ditto.
20133
20134 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20135
20136 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
20137 `dont_resize' only when used.
20138
20139 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
20140
20141 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
20142
20143 * xdisp.c (display_mode_element): When computing charpos, depend
20144 on multibyteness of elt, not the text in field.
20145
20146 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20147
20148 * buffer.c (Fkill_all_local_variables):
20149 Increment `update_mode_lines' only once.
20150
20151 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20152
20153 * lisp.h (adjust_after_replace_noundo)
20154 (Fupdate_coding_systems_internal): Add prototypes.
20155
20156 * sound.c (Fplay_sound): Initialize header_size also for :data case.
20157
20158 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
20159
20160 Support for the --color command-line argument and tty-color-mode
20161 frame parameter:
20162
20163 * term.c (tty_default_color_capabilities, tty_setup_colors)
20164 (set_tty_color_mode): New functions.
20165 (term_init): Call tty_default_color_capabilities.
20166 (Qtty_color_mode_alist): New variable.
20167 (syms_of_term): Intern and staticpro it.
20168
20169 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
20170 frames.
20171 (do_switch_frame): For termcap frames, switch the tty
20172 color mode as specified by the frame's parameters.
20173 (Qtty_color_mode): New variable.
20174 (syms_of_frame): Intern and staticpro it.
20175
20176 * emacs.c (USAGE2): Add the --color option.
20177 (standard_args): Ditto.
20178
20179 2002-01-13 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
20180
20181 * xterm.h (struct x_output): New members want_fullscreen,
20182 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
20183 y_pixels_outer_diff.
20184 New enum for FULLSCREEN_* constants.
20185 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
20186 is NULL.
20187 (x_fullscreen_adjust): Add prototype.
20188
20189 * emacs.c (USAGE2): Add the new full-screen arguments.
20190 (standard_args): Ditto.
20191
20192 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
20193 New variables.
20194 (syms_of_xfns): Intern and staticpro them.
20195 (x_frame_parms) <"fullscreen">: New parameter.
20196 (x_fullscreen_move, x_set_fullscreen): New functions.
20197 (x_set_frame_parameters): Support for Qfullscreen.
20198 (x_real_positions): More accurate computation of the frame position.
20199 (x_figure_window_size): Support full-screen frames.
20200 (Fx_create_frame): Default the fullscreen parameter.
20201
20202 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
20203 (XTread_socket) <Expose>: Call x_check_fullscreen.
20204 <ConfigureNotify>: Don't resize to fullscreen.
20205 Call x_check_fullscreen_move, and set the want_fullscreen member of
20206 output_data.x.
20207
20208 2002-01-13 Jason Rumney <jasonr@gnu.org>
20209
20210 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
20211 for mice with more than 3 buttons.
20212
20213 * w32term.c (parse_button): New parameter xbutton. Callers changed.
20214 (w32_read_socket): Handle new "XBUTTON" messages.
20215
20216 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
20217 (syms_of_w32fns): DEFVAR_BOOL it.
20218 (w32_wnd_proc): Handle new "XBUTTON" messages.
20219
20220 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20221
20222 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
20223
20224 2002-01-13 Andreas Schwab <schwab@suse.de>
20225
20226 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
20227
20228 2002-01-12 Andreas Schwab <schwab@suse.de>
20229
20230 * .gdbinit (xbuffer): Remove address operator since data is now a
20231 pointer.
20232
20233 2002-01-11 Richard M. Stallman <rms@gnu.org>
20234
20235 * insdel.c (adjust_after_replace_noundo): New function.
20236
20237 * coding.c (code_convert_region): Don't copy old text if undo disabled.
20238
20239 2002-01-09 Jason Rumney <jasonr@gnu.org>
20240
20241 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
20242 when checking for multiple frames.
20243
20244 2002-01-08 Richard M. Stallman <rms@gnu.org>
20245
20246 * window.c (delete_window): Rewrite the code for changing the
20247 selected window to handle the case where WINDOW is not a leaf.
20248
20249 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
20250
20251 * process.c (send_process): Set src_multibyte to 1 after the call
20252 top setup_coding_system, not before the call.
20253
20254 2002-01-07 Jason Rumney <jasonr@gnu.org>
20255
20256 * xmenu.c (set_frame_menubar, xmenu_show):
20257 (xdialog_show): Initialize wv->help to Qnil.
20258
20259 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
20260 (w32_dialog_show): Initialize wv->help to Qnil.
20261
20262 2002-01-06 Jason Rumney <jasonr@gnu.org>
20263
20264 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
20265
20266 * w32menu.c (w32_menu_display_help): Revert last change.
20267
20268 * xmenu.c (menu_highlight_callback): Revert last change.
20269
20270 2002-01-06 Andreas Schwab <schwab@suse.de>
20271
20272 * insdel.c (make_gap_larger): Make sure buffer size does not
20273 overflow range of int.
20274
20275 2002-01-05 Jason Rumney <jasonr@gnu.org>
20276
20277 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
20278 OVERLAPS_P.
20279
20280 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
20281
20282 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
20283 to the left or to the right of the pointer, put it against
20284 the left screen edge.
20285 (x_frame_parms): Add missing braces around initializer.
20286
20287 * w32term.c (x_setup_relief_colors): Don't compute an image's
20288 background color if it doesn't have a Pixmap.
20289 (notice_overwritten_cursor): Don't depend on
20290 output_cursor and updated_area. Compare pixel coordinates with
20291 window's cursor pixel coordinates.
20292 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20293 Call notice_overwritten_cursor with new arg list.
20294 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20295 unconditionally.
20296 (x_draw_image_relief): Use predefined macro instead of
20297 constant when the value of `tool_bar_button_relief' is negative.
20298
20299 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
20300
20301 2002-01-04 Richard M. Stallman <rms@gnu.org>
20302
20303 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
20304
20305 2002-01-03 Richard M. Stallman <rms@gnu.org>
20306
20307 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
20308 (Fkey_binding): Try the `keymap' property map first.
20309 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
20310 minor mode bindings.
20311
20312 2002-01-03 Kim F. Storm <storm@cua.dk>
20313
20314 * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
20315
20316 2002-01-02 Richard M. Stallman <rms@gnu.org>
20317
20318 * keyboard.c (read_key_sequence): Handle the keymap property
20319 before minor mode maps.
20320
20321 * editfns.c (Fformat): Update thissize from field_width
20322 based on the actual width, in the string case.
20323
20324 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20325
20326 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
20327 when used as truth value to prevent gcc warnings.
20328
20329 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
20330 * w32proc.c: Include <config.h>.
20331
20332 2002-01-01 Andreas Schwab <schwab@suse.de>
20333
20334 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
20335 not EMACS_INT, to make them compatible with DEFVAR_INT.
20336 * lisp.h (max_specpdl_size): Adjust declaration.
20337
20338 2002-01-01 Richard M. Stallman <rms@gnu.org>
20339
20340 * print.c (print_object): Test print_escape_nonascii only for
20341 unibyte strings.
20342 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
20343 when outputting to a multibyte buffer.
20344
20345 2001-12-29 Richard M. Stallman <rms@gnu.org>
20346
20347 * print.c (print_object): In multibyte string, use hex escapes.
20348 Use octal only for unibyte strings.
20349 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
20350
20351 * lread.c (read_escape): New arg BYTEREP for reporting whether
20352 escape forces unibyte or multibyte.
20353 (read1): When reading a string, take note of that info.
20354
20355 2001-12-29 Ken Raeburn <raeburn@gnu.org>
20356
20357 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
20358 comparison to test lisp value returned by Fget.
20359
20360 2001-12-29 Richard M. Stallman <rms@gnu.org>
20361
20362 * lisp.h (max_specpdl_size): Add declaration.
20363
20364 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
20365
20366 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
20367 Handle modifier bits. Correct typo in error message.
20368
20369 2001-12-28 Richard M. Stallman <rms@gnu.org>
20370
20371 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
20372 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
20373 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20374 Update calls to Fdefine_abbrev.
20375 (write_abbrev): Update for changed data format.
20376 Don't list "system" abbrevs.
20377 (Fexpand_abbrev): Update use count with new data format.
20378 (describe_abbrev): Update for changed data format.
20379 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
20380
20381 * config.in (HAVE_MBSINIT): Add #undef.
20382
20383 * strftime.c (mbsinit): Define as no-op if not available.
20384
20385 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
20386 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
20387
20388 * keymap.c (Flookup_key): Error message if key has wrong data type.
20389 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
20390 (exclude_key): New variable.
20391
20392 2001-12-28 Gerd Moellmann <gerd@gnu.org>
20393
20394 * xterm.c (x_setup_relief_colors): Don't compute an image's
20395 background color if it doesn't have a Pixmap.
20396
20397 * xterm.c (notice_overwritten_cursor): Don't depend on
20398 output_cursor and updated_area. Compare pixel coordinates with
20399 window's cursor pixel coordinates.
20400 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20401 Call notice_overwritten_cursor with new arg list.
20402 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20403 unconditionally.
20404
20405 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
20406 height of the cursor line to the amount to scroll.
20407
20408 2001-12-27 Richard M. Stallman <rms@gnu.org>
20409
20410 * intervals.c (set_point_both): The position after an invisible,
20411 intangible character is not an acceptable stopping point.
20412
20413 2001-12-27 Ken Raeburn <raeburn@gnu.org>
20414
20415 * window.c (enlarge_window): In new preserve_before code, convert
20416 CURBEG from lisp object to integer before doing arithmetic.
20417
20418 2001-12-27 Richard M. Stallman <rms@gnu.org>
20419
20420 * bytecode.c (Fbyte_code): Undo previous change.
20421
20422 2001-12-26 Kim F. Storm <storm@cua.dk>
20423
20424 * keyboard.c (record_char): Ignore duplicate help-echo events only
20425 separated by mouse-movement. When tracking mouse, only record
20426 first and last mouse-movement event in same window.
20427 Don't record mouse-movement events in keyboard macros.
20428
20429 2001-12-25 Richard M. Stallman <rms@gnu.org>
20430
20431 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
20432 (Fenlarge_window): New arg PRESERVE_BEFORE.
20433
20434 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
20435 instead of Fstring_as_unibyte.
20436
20437 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20438
20439 The following changes remove mocklisp support:
20440
20441 * mocklisp.h, mocklisp.c: Files removed.
20442
20443 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
20444 `Qmocklisp' and `Qmocklisp_arguments'.
20445 Remove prototype of syms_of_mocklisp.
20446
20447 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
20448
20449 * callint.c: Do not include mocklisp.h.
20450 (Fcall_interactively): Do not test for mocklisp case.
20451
20452 * eval.c: Remove variables `Qmocklisp_arguments',
20453 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
20454 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
20455 Do not test for mocklisp case.
20456 (Fwhile): Remove unused variable `tem'.
20457 (syms_of_eval): Remove variable `moclisp-arguments'.
20458
20459 * data.c (wrong_type_argument): Remove mocklisp case.
20460
20461 * doc.c (Fdocumentation): Remove mocklisp case.
20462
20463 * emacs.c (main): Do not call syms_of_mocklisp.
20464
20465 2001-12-21 Richard M. Stallman <rms@gnu.org>
20466
20467 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
20468 to the left or to the right of the pointer, put it against
20469 the left screen edge.
20470
20471 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
20472
20473 * Makefile.in (distclean): Remove .gdbinit if we are building
20474 outside the source tree.
20475
20476 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
20477
20478 * w32.c (emacs_root_dir): New function.
20479
20480 * msdos.c (emacs_root_dir): New function.
20481
20482 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
20483 of the current drive as the fallback for default_directory.
20484
20485 * dired.c (file_name_completion): Run the elements of
20486 completion-ignored-extensions through ENCODE_FILE.
20487
20488 * lisp.h (scmp): Remove prototype, since it's now a static
20489 function private to dired.c.
20490
20491 2001-12-18 Richard M. Stallman <rms@gnu.org>
20492
20493 * dired.c (scmp): Function moved from minibuf.c.
20494 Delete multibyte handling--used only on encoded strings.
20495
20496 * minibuf.c (scmp): Function moved to dired.c.
20497
20498 * fns.c (merge): Add QUIT call.
20499
20500 2001-12-18 Dave Love <fx@gnu.org>
20501
20502 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
20503 language/georgian.el.
20504
20505 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
20506
20507 * Makefile.in (lisp, shortlisp): Synchronize with changes to
20508 lisp/Makefile.in:DONTCOMPILE.
20509
20510 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20511
20512 * xdisp.c (window_box_height): Do not return negative values.
20513 From Gerd Moellmann <gerd@gnu.org>.
20514
20515 * keyboard.c (head_table): Add missing braces around initializer.
20516
20517 * term.c (keys): Likewise.
20518
20519 * xfns.c (x_frame_parms, visual_classes): Likewise.
20520
20521 2001-12-17 Sam Steingold <sds@gnu.org>
20522
20523 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
20524 patch (COMPOSING_P, not COMPOSING).
20525
20526 2001-12-17 Richard M. Stallman <rms@gnu.org>
20527
20528 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
20529
20530 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
20531 before calling decode_coding.
20532
20533 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
20534
20535 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
20536 instead of only for COMPOSITION_DISABLED.
20537
20538 2001-12-16 Richard M. Stallman <rms@gnu.org>
20539
20540 * alloc.c (pure_alloc): After overflow, allocate just a small block.
20541
20542 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
20543
20544 * buffer.h (struct buffer): New field `display_error_modiff'.
20545 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
20546
20547 * window.c (Frecenter): Clear display_error_modiff field.
20548
20549 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
20550 Call redisplay_window, but not if display_error_modiff field says no.
20551 (redisplay_window_error): New function.
20552 (displayed_buffer): New variable.
20553 (redisplay_internal, redisplay_windows): Call the new functions
20554 instead of redisplay_window directly.
20555
20556 2001-12-15 Richard M. Stallman <rms@gnu.org>
20557
20558 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
20559
20560 2001-12-14 Andrew Innes <andrewi@gnu.org>
20561
20562 * makefile.w32-in (EMACSLOADPATH): Define.
20563 ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
20564 (bootstrap-temacs): Remove dependency on bootstrap-clean.
20565
20566 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
20567
20568 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
20569 parameter have a numeric value all the time.
20570
20571 * w32fns.c (x_report_frame_params): Likewise.
20572
20573 2001-12-12 Richard M. Stallman <rms@gnu.org>
20574
20575 * fileio.c (Fwrite_region): Doc fix.
20576
20577 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
20578 (redisplay_internal): Call clear_image_cache only for window terminals.
20579
20580 2001-12-12 Gerd Moellmann <gerd@gnu.org>
20581
20582 * xdisp.c (move_it_vertically_backward): Change heuristic
20583 for the case that we didn't move far enough initially.
20584
20585 * window.c (Frecenter): Simplify computation in the case of window
20586 system frames and ARG < 0; use window_box_height.
20587
20588 2001-12-11 Richard M. Stallman <rms@gnu.org>
20589
20590 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
20591 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
20592
20593 2001-12-11 Andrew Innes <andrewi@gnu.org>
20594
20595 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
20596 arg is negative.
20597
20598 2001-12-11 Richard M. Stallman <rms@gnu.org>
20599
20600 * m/hp800.h: Split the __hpux conditional into the parts
20601 that are right for GNU/Linux too and the parts that are not.
20602 Use the former if GNU_LINUX.
20603 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
20604
20605 * s/gnu-linux.h (GNU_LINUX): Defined.
20606
20607 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20608
20609 * macros.c, msdos.c, w16select.c: Change doc-string comments to
20610 `new style' [w/`doc:' keyword].
20611
20612 2001-12-10 Jason Rumney <jasonr@gnu.org>
20613
20614 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
20615 before using.
20616
20617 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20618
20619 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
20620 keyword].
20621
20622 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
20623
20624 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
20625
20626 * s/hpux10.h (srand48): Don't undefine.
20627
20628 2001-12-09 Jason Rumney <jasonr@gnu.org>
20629
20630 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
20631 Add comment to explain where the struct came from.
20632 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
20633 (add_menu_item): Process pop-up menus first to avoid memory leak.
20634 (add_menu_item, w32_menu_display_help): Use `help' field as
20635 Lisp_Object.
20636 (w32_free_submenu_strings): Only free owner-drawn strings.
20637
20638 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20639
20640 * COPYING: Moved back.
20641
20642 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
20643 Add parentheses around && within ||.
20644
20645 * indent.c (compute_motion): Likewise.
20646
20647 * intervals.c (merge_properties_sticky): Likewise.
20648
20649 * coding.c (setup_coding_system, shrink_encoding_region)
20650 (Fdecode_sjis_char): Likewise.
20651
20652 2001-12-07 Andreas Schwab <schwab@suse.de>
20653
20654 * xdisp.c (display_mode_element): Don't read past end of string if
20655 it ends with '%'.
20656
20657 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
20658 can hold.
20659
20660 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
20661 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
20662 type changed to Lisp_Object.
20663 (syms_of_data): DEFVAR_LISP them.
20664
20665 2001-12-07 Richard M. Stallman <rms@gnu.org>
20666
20667 * callproc.c (init_callproc): Set Vdata_directory based on the source
20668 location whenever Emacs was run uninstalled.
20669
20670 2001-12-06 Paul Eggert <eggert@twinsun.com>
20671
20672 * config.in (HAVE_WORKING_VFORK): New #undefs.
20673 * process.c (create_process):
20674 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
20675 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
20676 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
20677 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
20678 * m/intel386.h (HAVE_VFORK): Likewise.
20679 * m/mips-siemens.h (HAVE_VFORK): Likewise.
20680 * m/mips.h (HAVE_VFORK): Likewise.
20681 * s/freebsd.h (vfork): Remove #define.
20682 * s/lynxos.h (HAVE_VFORK): Remove #undef.
20683 * s/usg5-4-2.h: Fix comment about vfork.
20684
20685 2001-12-06 Richard M. Stallman <rms@gnu.org>
20686
20687 * s/hpux10.h (random): Add undef.
20688 (HAVE_RANDOM): Define it just once.
20689
20690 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
20691
20692 * eval.c: Undo last change: the standard syntax is not wanted.
20693
20694 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
20695
20696 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
20697 scroll bars of the frame before deleting the frame itself. If the
20698 frame has a widget, delete the frame with XtDestroyWidget, and do
20699 not call XDestroyWindow before that.
20700
20701 2001-12-06 Kim F. Storm <storm@cua.dk>
20702
20703 * xfns.c (x_report_frame_params): Return actual fringe widths.
20704
20705 * w32fns.c (x_report_frame_params): Return actual fringe widths.
20706
20707 2001-12-05 Andrew Innes <andrewi@gnu.org>
20708
20709 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
20710 excessively large.
20711
20712 * insdel.c (make_gap_larger): New function.
20713 (make_gap_smaller): New function.
20714 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
20715 Call make_gap_smaller if arg is negative.
20716
20717 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
20718
20719 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
20720 Pass a dummy argument when calling interrupt_signal.
20721 (parse_menu_item): Mark disabled items before checking for empty def.
20722 (read_char_minibuf_menu_prompt): Make safety more visible.
20723 (read_key_sequence): Add a `first_unbound' variable.
20724 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
20725 unbound prefix as soon as we can detect it.
20726
20727 * doc.c (Fsnarf_documentation): Add prototype.
20728 (get_doc_string): Handle negative arguments.
20729 (Fdocumentation): Use AREF and ASIZE.
20730 Move the calls to get_doc_string to a single place.
20731 Don't confuse an interactive-spec for a docstring reference.
20732 (Fdocumentation_property): Take advantage of the fact that
20733 get_doc_string now ignores the sign of the docstring position.
20734
20735 * eval.c: Use standard syntax for usage in docstrings.
20736
20737 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20738
20739 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
20740
20741 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20742
20743 * xterm.c (x_draw_image_relief): Use predefined macro instead of
20744 constant when the value of `tool_bar_button_relief' is negative.
20745
20746 2001-12-02 Richard M. Stallman <rms@gnu.org>
20747
20748 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
20749 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
20750
20751 * fileio.c (read_non_regular): Delete Fsignal call.
20752
20753 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
20754
20755 * lisp.h (run_hook_list_with_args): Undo last change.
20756
20757 2001-12-01 Gerd Moellmann <gerd@gnu.org>
20758
20759 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
20760
20761 2001-12-01 Jason Rumney <jasonr@gnu.org>
20762
20763 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
20764
20765 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
20766 [!WM_MOUSELEAVE]: Define.
20767
20768 * w32menu.c (current_popup_menu, get_menu_item_info):
20769 (set_menu_item_info): New vars.
20770 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
20771 (w32_menu_show): Set current_popup_menu.
20772 (add_menu_item): Allocate new strings for owner-drawn menu items
20773 and help strings.
20774 Use owner-draw for disabled menu items again.
20775 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
20776 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
20777
20778 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
20779 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
20780 <WM_EXITMENULOOP>: Free menu strings.
20781 <WM_MOUSELEAVE>: Stop tracking mouse.
20782 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
20783
20784 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
20785 and mouse face.
20786
20787 2001-12-01 Kim F. Storm <storm@cua.dk>
20788
20789 The following changes add left-fringe and right-fringe
20790 frame parameters to adjust fringe widths, or remove one or
20791 both fringes.
20792
20793 * frame.h (struct frame): Remove trunc_area_pixel_width and
20794 trunc_area_cols fields.
20795 (Qleft_fringe, Qright_fringe): Declare.
20796 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
20797
20798 * frame.c (Qleft_fringe, Qright_fringe): New vars.
20799 (syms_of_frame): Initialize them.
20800
20801 * window.c (coordinates_in_window): Handle separate left and right
20802 fringe widths.
20803
20804 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
20805 and fringe_cols fields.
20806 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
20807 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
20808 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
20809 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
20810 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
20811 (x_compute_fringe_widths): Add prototype.
20812
20813 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
20814 fill fringe evenly with small dashes.
20815 (x_draw_fringe_bitmap): Clear background if necessary. Align and
20816 clip the new ZV bitmap to avoid jitter between rows.
20817 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
20818 background. Don't draw fringe bitmaps if fringe width is zero.
20819 (x_compute_fringe_widths): New function.
20820 (x_new_font, x_set_window_size_1): Use it.
20821
20822 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
20823 (x_set_frame_parameters): Process `font' parameter before other
20824 parameters as fringe widths depend on it.
20825 (x_set_fringe_width): New function.
20826 (x_figure_window_size): Use x_compute_fringe_widths.
20827 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
20828 parameters.
20829
20830 * widget.c (set_frame_size): Use x_compute_fringe_widths.
20831 (EmacsFrameSetCharSize): Ditto.
20832
20833 * w32term.h: Merged changes from xterm.h.
20834 * w32term.c: Merged changes from xterm.c.
20835 * w32fns.c: Merged changes from xfns.c.
20836
20837 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20838
20839 * COPYING: Removed.
20840
20841 2001-11-29 Dave Love <fx@gnu.org>
20842
20843 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
20844 extra extra slot.
20845 (detect_coding_mask): Fix call of detect_coding_iso2022.
20846
20847 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20848
20849 * fileio.c (file-name-coding-system)
20850 (default-file-name-coding-system): Doc fix (links to referenced
20851 variables added).
20852
20853 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
20854
20855 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
20856 Add dummy uses of gcproN variables.
20857
20858 * category.c (describe_category, describe_category_1)
20859 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
20860 (syms_of_category): Don't defsubr Sdescribe_categories.
20861
20862 2001-11-28 Richard M. Stallman <rms@gnu.org>
20863
20864 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
20865
20866 * Makefile.in (lispdir): New variable, referring to build dir.
20867 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
20868
20869 2001-11-28 Andrew Innes <andrewi@gnu.org>
20870
20871 * w32menu.c (w32_menu_display_help): Actually add the new argument
20872 OWNER.
20873
20874 2001-11-28 Jason Rumney <jasonr@gnu.org>
20875
20876 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
20877 menu items. From David Ponce <dponce@wanadoo.fr>.
20878 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
20879 conditionally.
20880 (w32_menu_display_help): New argument OWNER. Rewritten to store a
20881 help event in the owner frame's keyboard buffer.
20882
20883 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
20884 (Fx_show_tip): Don't subtract last width from row width.
20885
20886 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
20887 (w32_read_socket): Use EQ to compare frames.
20888
20889 2001-11-28 Gerd Moellmann <gerd@gnu.org>
20890
20891 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
20892 OVERLAPS_P.
20893
20894 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
20895
20896 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
20897 `gcpro3' and `gcpro4'.
20898
20899 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
20900
20901 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
20902
20903 * ccl.c: Use AREF and ASIZE.
20904
20905 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
20906
20907 * lisp.h (run_hook_list_with_args): Remove.
20908 (LIST_END_P): Fix call to wrong_type_argument.
20909 (make_fixnum_or_float): Use EMACS_INT rather than int.
20910
20911 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
20912
20913 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
20914 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
20915
20916 * eval.c: Use AREF and ASIZE.
20917 (Ffetch_bytecode): Add the file name to the error message.
20918
20919 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
20920 which match the end of the file-name.
20921 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
20922 is not a valid env var, but leave it as is instead.
20923
20924 * keymap.c (access_keymap): Handle t bindings like nil bindings.
20925 Make nil bindings in char-tables transparent.
20926 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
20927
20928 2001-11-26 Richard M. Stallman <rms@gnu.org>
20929
20930 * textprop.c (set_text_properties_1): Allow START, END in either order.
20931 Do nothing if range is empty.
20932
20933 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
20934
20935 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
20936 (clean): Not here.
20937
20938 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
20939
20940 * textprop.c (set_text_properties_1): Clearly mark that the
20941 interval should not be empty.
20942
20943 * intervals.c (graft_intervals_into_buffer):
20944 Don't call set_text_properties_1 on an empty interval.
20945
20946 2001-11-25 Richard M. Stallman <rms@gnu.org>
20947
20948 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
20949
20950 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
20951 don't lose the data in it.
20952
20953 2001-11-25 Juanma Barranquero <lektu@terra.es>
20954
20955 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
20956
20957 * buffer.c (Fkill_buffer): Likewise.
20958
20959 * print.c (temp_output_buffer_setup): Likewise.
20960
20961 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
20962
20963 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
20964
20965 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
20966
20967 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
20968 Niemitalo <kon@iki.fi>.
20969
20970 2001-11-25 Jason Rumney <jasonr@gnu.org>
20971
20972 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
20973
20974 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
20975 (Fx_show_tip): Block input during frame creation.
20976 (Fx_show_tip, Fx_hide_tip): Enable.
20977
20978 2001-11-24 Richard M. Stallman <rms@gnu.org>
20979
20980 * lread.c (Fload): Detect recursive load error for more than 3
20981 nestings of the same file.
20982 (Vrecursive_load_depth_limit): Variable deleted.
20983 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
20984
20985 2001-11-24 Jason Rumney <jasonr@gnu.org>
20986
20987 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
20988 mouse position if either left or top is not specified.
20989
20990 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
20991 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
20992 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
20993 (my_create_tip_window): Assign tip_window.
20994 (x_create_tip_frame): Use same defaults as X.
20995 (compute_tip_xy): Remove unused variable. Use full screen width.
20996 (Fx_show_tip): Do not double height. Call ShowWindow directly.
20997
20998 * w32term.c (x_after_update_window_line): Doc fix.
20999 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
21000 frames.
21001 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
21002
21003 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
21004 for all Windowed systems.
21005
21006 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
21007
21008 * msdos.c (IT_clear_screen): If the frame's faces are not yet
21009 realized, use the initial screen colors to clear the screen.
21010
21011 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21012
21013 * textprop.c (Fset_text_properties): Remove unused variables
21014 `unchanged', `prev_changed', `s' and `len'.
21015
21016 * search.c (Freplace_match): Remove unused variable `inslen'.
21017
21018 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
21019
21020 2001-11-22 Jason Rumney <jasonr@gnu.org>
21021
21022 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
21023 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
21024 (my_create_tip_window): New function.
21025 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
21026 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
21027
21028 2001-11-20 Jason Rumney <jasonr@gnu.org>
21029
21030 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
21031 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
21032
21033 * w32fns.c (Vw32_system_coding_system): Remove.
21034 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
21035
21036 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
21037
21038 * fileio.c (Fwrite_region): Move choose_write_coding_system to
21039 after build_annotations.
21040
21041 * syntax.c (describe_syntax): Add dummy arg.
21042 (describe_syntax_1): Update call to describe_vector.
21043
21044 * category.c (describe_category): Add dummy arg.
21045 (describe_category_1): Update call to describe_vector.
21046
21047 * keymap.c (Fdescribe_vector): Add `describer' parameter.
21048 (describe_command, describe_translation): Add dummy second param.
21049 (describe_map): Call elt_describer with two arguments.
21050 (describe_vector_princ): Add `fun' parameter.
21051 Call it instead of the hardcoded `princ'.
21052 (describe_vector): Add arg `args'.
21053 Pass it as a new second argument to elt_describer.
21054
21055 * keymap.h (describe_vector): Update prototype.
21056
21057 * frame.c: Don't include keymap.h any more.
21058 (keys_of_frame): Remove.
21059
21060 * lisp.h (keys_of_frame): Remove declaration.
21061
21062 * emacs.c (main): Don't call `keys_of_frame' any more.
21063
21064 2001-11-14 Andreas Schwab <schwab@suse.de>
21065
21066 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
21067 if defined, 0 otherwise.
21068 (MAP_FAILED): Define if not defined and use it to test mmap failure.
21069 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
21070
21071 2001-11-19 Richard M. Stallman <rms@gnu.org>
21072
21073 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
21074
21075 2001-11-18 Jason Rumney <jasonr@gnu.org>
21076
21077 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
21078 (x_draw_bar_cursor): If the background color of the glyph under
21079 the cursor equals the frame's cursor color, use the glyph's
21080 foreground color for drawing the bar cursor.
21081 (x_after_update_window_line): Clear internal border in different
21082 circumstances.
21083 (w32_set_vertical_scroll_bar): Check for width and height > 0.
21084 (w32_draw_relief_rect): Correct relief by 1 pixel.
21085 (x_set_glyph_string_background_width):
21086 Set extends_to_end_of_line_p if the row's fill_line_p is set and
21087 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
21088 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
21089 if cursor_in_non_selected_windows is false.
21090 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
21091 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
21092 Notice if cursor gets overwritten.
21093 (notice_overwritten_cursor): Renamed from
21094 note_overwritten_text_cursor. Rewritten to take glyph widths
21095 into account, and to take X positions as parameters.
21096 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
21097 around call to x_draw_glyphs.
21098 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
21099 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
21100 color to use for image glyph reliefs.
21101 (x_draw_image_relief): Accept zero tool_bar_button_relief.
21102 (glyph_rect): Remove unused variable `area'.
21103
21104 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
21105 some items.
21106 (x_set_internal_border_width): Set frame garbaged when window
21107 doesn't exist yet.
21108 (Fx_create_frame): Accept zero tool_bar_button_relief.
21109 (x_clear_image_1, four_corners_best, image_background)
21110 (image_background_transparent): New functions.
21111 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
21112 (gs_format): Add `:background' entry.
21113 (lookup_image): Set IMG's background color if specified.
21114 (pbm_load, xbm_load_image, png_load): Set IMG's background field
21115 when appropriate.
21116 (x_clear_image_1): Reset `background_valid' and
21117 `background_transparent_valid' fields.
21118 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
21119 calculating it here. Set IMG's background_transparent field.
21120 (enum xpm_keyword_index): Add XPM_BACKGROUND.
21121 (enum png_keyword_index): Add PNG_BACKGROUND.
21122 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
21123 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
21124 (enum gif_keyword_index): Add GIF_BACKGROUND.
21125 (enum gs_keyword_index): Add GS_BACKGROUND.
21126 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
21127 Pre-calculate image background color where necessary.
21128 (x_create_x_image_and_pixmap, xbm_load, gs_load):
21129 Use display info's n_cbits entry for screen depth.
21130 (Fx_show_tip): Remove unused variables `buffer', `top',
21131 `left', `max_width' and `max_height'.
21132
21133 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
21134
21135 2001-11-18 Gerd Moellmann <gerd@gnu.org>
21136
21137 * puresize.h (BASE_PURESIZE): Increase to 750000.
21138
21139 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21140
21141 * frame.c (Fframe_live_p): Doc fix.
21142
21143 2001-11-18 Richard M. Stallman <rms@gnu.org>
21144
21145 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
21146 (message_dolog_marker3): New static variables hold three markers.
21147 (syms_of_xdisp): Initialize and staticpro them.
21148 (message_dolog): Use message_dolog_marker1..3 instead of
21149 allocating markers each time. Unchain them when done.
21150
21151 2001-11-17 Richard M. Stallman <rms@gnu.org>
21152
21153 * doc.c (Fsnarf_documentation): Doc fix.
21154
21155 2001-11-17 Andreas Schwab <schwab@suse.de>
21156
21157 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
21158
21159 2001-11-17 Richard M. Stallman <rms@gnu.org>
21160
21161 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
21162
21163 2001-11-17 Jason Rumney <jasonr@gnu.org>
21164
21165 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
21166
21167 2001-11-17 Gerd Moellmann <gerd@gnu.org>
21168
21169 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
21170 with invalid position.
21171
21172 2001-11-16 Richard M. Stallman <rms@gnu.org>
21173
21174 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
21175
21176 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
21177 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
21178 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
21179
21180 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
21181
21182 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
21183
21184 * fileio.c (build_annotations): Split off the tail.
21185 (build_annotations_2): New fun. Extracted from build_annotations.
21186 (Fwrite_region): Split the call to build_annotations into two
21187 calls to build_annotations and build_annotations_2.
21188
21189 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21190
21191 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
21192 clear_waiting_for_input with argument.
21193
21194 * xterm.h (x_update_cursor): Remove duplicated prototype.
21195
21196 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
21197
21198 * xterm.c (waiting_for_input): Remove unnecessary declaration.
21199
21200 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
21201
21202 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
21203
21204 * fileio.c (choose_write_coding_system): New fun, extracted
21205 from Fwrite_region.
21206 (Fwrite_region): Use it.
21207
21208 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
21209 (funcall_lambda, run_hook_with_args): Make static and add prototype.
21210 (ml_apply, find_handler_clause): Add prototype.
21211
21212 2001-11-16 Eli Zaretskii <eliz@gnu.org>
21213
21214 * config.in: Add #undef HAVE_COFF_H.
21215
21216 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
21217 Required for ISC 4.1.
21218
21219 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
21220
21221 * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
21222 Andrew Wiseman <a.wiseman@btclick.com>.
21223
21224 2001-11-16 Kim F. Storm <storm@cua.dk>
21225
21226 The following changes are made to clean up the various internal
21227 references to the fringes to actually use the term `fringe' for
21228 them. Previously, they were called `flags areas', `bitmap areas',
21229 `left/right side of windows', or implicitly as `flags' or
21230 `bitmaps':
21231
21232 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
21233 Comments fixed. Use renamed symbols.
21234
21235 * dispnew.c: Comment fix. Use renamed symbols.
21236
21237 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
21238 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
21239 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
21240
21241 * msdos.c: Comment fix.
21242
21243 * w32fns.c: Use renamed symbols.
21244
21245 * w32term.c: Comment fixes. Use renamed symbols.
21246 (fringe_bitmap_type): Renamed from bitmap_type.
21247 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
21248 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
21249 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
21250
21251 * w32term.h: Comment fixes. Use renamed symbols.
21252 (fringes_extra): Renamed from flags_areas_extra.
21253 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
21254 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
21255 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
21256 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
21257 (FRAME_X_LEFT_FRINGE_WIDTH):
21258 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
21259 (FRAME_X_RIGHT_FRINGE_WIDTH):
21260 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
21261
21262 * widget.c: Use renamed symbols.
21263
21264 * window.c: Comment fixes. Use renamed symbols.
21265 (coordinates-in-window-p): Doc fix.
21266
21267 * xdisp.c: Comment fixes. Use renamed symbols.
21268
21269 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
21270
21271 * xfns.c: Use renamed symbols.
21272
21273 * xterm.c: Comment fixes. Use renamed symbols.
21274 (fringe_bitmap_type): Renamed from bitmap_type.
21275 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
21276 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
21277 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
21278
21279 * xterm.h: Comment fixes. Use renamed symbols.
21280 (fringes_extra): Renamed from flags_areas_extra.
21281 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
21282 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
21283 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
21284 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
21285 (FRAME_X_LEFT_FRINGE_WIDTH):
21286 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
21287 (FRAME_X_RIGHT_FRINGE_WIDTH):
21288 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
21289
21290 2001-11-15 Jason Rumney <jasonr@gnu.org>
21291
21292 * w32menu.c (add-menu-item): Make help_echo and radio buttons
21293 work for most menu items. From David Ponce
21294 <david.ponce@wanadoo.fr>.
21295
21296 2001-11-15 Gerd Moellmann <gerd@gnu.org>
21297
21298 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
21299 Some x_set_* function expect to be called even if old and new
21300 value are equal.
21301
21302 * xdisp.c (build_desired_tool_bar_string): Accept zero
21303 tool_bar_button_relief.
21304
21305 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
21306
21307 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
21308
21309 * xterm.c (x_draw_bar_cursor): If the background color of the
21310 glyph under the cursor equals the frame's cursor color, use
21311 the glyph's foreground color for drawing the bar cursor.
21312
21313 * dispnew.c (direct_output_forward_char): Fix character/byte
21314 position comparison.
21315
21316 2001-11-15 Miles Bader <miles@gnu.org>
21317
21318 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
21319 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
21320 Update arguments to find_field.
21321 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
21322 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
21323 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
21324 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
21325
21326 2001-11-14 Richard M. Stallman <rms@gnu.org>
21327
21328 * editfns.c (Fpropertize): Allow call with 1 arg.
21329
21330 * dispextern.h (image_background, image_background_transparent):
21331 Conditionalize on HAVE_X_WINDOWS.
21332
21333 2001-11-13 Richard M. Stallman <rms@gnu.org>
21334
21335 * print.c (Fprin1_to_string): Doc fix.
21336
21337 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
21338
21339 * floatfns.c (Fceiling, Ffloor): Doc fixes.
21340
21341 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
21342
21343 * fileio.c (Ffile_accessible_directory_p): Doc fix.
21344
21345 * eval.c (syms_of_eval): Doc fix.
21346
21347 * coding.c (syms_of_coding): Doc fix.
21348
21349 * doc.c (Fsnarf_documentation): Doc fix.
21350
21351 * dispnew.c (syms_of_display): Doc fix.
21352
21353 * category.c (Fget_unused_category): Doc fix.
21354
21355 * buffer.c (syms_of_buffer): Doc fixes.
21356
21357 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
21358
21359 * print.c (prin1, print): Doc fix.
21360
21361 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21362
21363 * fontset.h: Remove declarations of variables
21364 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
21365
21366 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
21367 `Vclip_large_size_font'.
21368
21369 2001-11-13 Jason Rumney <jasonr@gnu.org>
21370
21371 * w32fns.c: Doc fix.
21372
21373 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21374
21375 * xfaces.c (Fface_attributes_as_vector): Doc fix.
21376
21377 * fns.c: Doc fix.
21378
21379 * emacs.c: Doc fix.
21380
21381 * coding.c: Doc fix.
21382
21383 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
21384 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
21385 `new style' [w/`doc:' keyword].
21386
21387 2001-11-12 Richard M. Stallman <rms@gnu.org>
21388
21389 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
21390 LeaveNotify events. Only FocusIn and FocusOut do that now.
21391 (x_display_and_set_cursor): Do display hollow cursors in active
21392 minibuffer windows when they are not selected.
21393
21394 2001-11-12 Jason Rumney <jasonr@gnu.org>
21395
21396 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
21397 * w32term.c: Change doc-string comments to `new style'
21398 [w/`doc:' keyword]. Doc fixes.
21399
21400 * w32fns.c: Don't define max.
21401 (Fx_open_connection): Only execute once.
21402
21403 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21404
21405 * ccl.c: Change macros to use do-while block instead of if-else.
21406 Use braces to follow GNU Coding Standards.
21407
21408 2001-11-11 Richard M. Stallman <rms@gnu.org>
21409
21410 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
21411
21412 * lread.c (read_escape): Use end_of_file_error for reporting eof.
21413
21414 * insdel.c (replace_range): Use adjust_markers_for_replace
21415 instead of adjust_markers_for_delete and adjust_markers_for_insert.
21416
21417 * intervals.h (set_text_properties, set_text_properties_1): Declare.
21418
21419 * textprop.c (set_text_properties_1): New subroutine
21420 broken out of set_text_properties.
21421 (set_text_properties): Use set_text_properties_1.
21422
21423 * intervals.c (graft_intervals_into_buffer):
21424 Use set_text_properties_1 to clear out properties.
21425
21426 * search.c (Freplace_match): Use replace_range to insert
21427 and delete. Don't request property inheritance from
21428 surrounding text.
21429
21430 2001-11-10 Jason Rumney <jasonr@gnu.org>
21431
21432 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
21433 vertical fonts. Allow them if face name is explicitly specified.
21434 Do not give up if we find a font that cannot be converted to an xlfd.
21435
21436 2001-11-10 Gerd Moellmann <gerd@gnu.org>
21437
21438 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
21439 instead of malloc/free.
21440
21441 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21442
21443 * xfaces.c (merge_face_vectors): Use braces to follow GNU
21444 Coding Standards.
21445 (Finternal_set_lisp_face_attribute): Likewise.
21446
21447 * buffer.c (Fbury_buffer): Likewise.
21448
21449 * indent.c (current_column_1): Remove unused variable `prev_col'.
21450
21451 * coding.c (encode_coding): Use precomputed value of `src'.
21452 (encode_coding): Remove unused variable `src_end'.
21453 (code_convert_region): Remove unused variables `count'.
21454
21455 2001-11-07 Jason Rumney <jasonr@gnu.org>
21456
21457 * w32term.c (x_display_and_set_cursor): Do not move system caret
21458 if cursor_glyph is NULL.
21459
21460 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21461
21462 * keymap.c (access_keymap): Fix compilation error.
21463
21464 2001-11-07 Miles Bader <miles@gnu.org>
21465
21466 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
21467
21468 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21469
21470 * intervals.c (graft_intervals_into_buffer):
21471 Remove #ifdef'd-out code.
21472 (graft_intervals_into_buffer): Remove unused variable `middle'.
21473
21474 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
21475 code (eval-current-buffer).
21476 Change doc-string comments to `new style' [w/`doc:' keyword].
21477
21478 2001-11-06 Richard M. Stallman <rms@gnu.org>
21479
21480 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
21481
21482 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
21483
21484 * lread.c (read1): Fix behavior with nested backquoting.
21485
21486 * keyboard.c (make_lispy_event): Check integerness and fix
21487 Lisp_Object/int mixup.
21488
21489 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21490
21491 * fns.c (copy_hash_table): Remove unused variable `v'.
21492
21493 * fontset.c (fontset_font_pattern): Remove unused variable
21494 `family_registry'.
21495
21496 * indent.c (current_column_1): Remove unused variable `prev_col'.
21497
21498 2001-11-05 Richard M. Stallman <rms@gnu.org>
21499
21500 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
21501
21502 * buffer.c (Fkill_buffer): Don't delete auto save file
21503 if buffer is modified.
21504
21505 2001-11-05 Andrew Innes <andrewi@gnu.org>
21506
21507 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
21508 CHECK_NUMBER_CDR.
21509
21510 2001-11-05 Richard M. Stallman <rms@gnu.org>
21511
21512 * unexelf.c (unexec): Minor changes; clean up comments.
21513
21514 2001-11-05 Sam Steingold <sds@gnu.org>
21515
21516 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
21517
21518 2001-11-05 Andreas Schwab <schwab@suse.de>
21519
21520 * sound.c (sound_perror): Save errno from being clobbered.
21521
21522 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
21523
21524 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
21525 the program image directly.
21526
21527 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21528
21529 * buffer.h (Fbuffer_local_value): Add prototype.
21530
21531 2001-11-04 Richard M. Stallman <rms@gnu.org>
21532
21533 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
21534 and CHECK_BUFFER.
21535
21536 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
21537 (record_char): Likewise.
21538
21539 * keyboard.c (make_lispy_event): Don't insist a drag event must
21540 move to a different buffer position. Instead, check for moving at
21541 least double_click_fuzz.
21542
21543 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
21544
21545 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
21546
21547 * indent.c (current_column_1, Fmove_to_column): Separate the code
21548 for display-table glyphs from the code for buffer text, to fix
21549 bugs in the former.
21550
21551 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
21552
21553 * buffer.c (Fbuffer_local_value): New function.
21554 (syms_of_buffer): Defsubr it.
21555
21556 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
21557 value of `cursor-in-non-selected-windows'.
21558
21559 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
21560 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
21561 (syms_of_xdisp): Initialize it.
21562
21563 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21564
21565 * xfns.c (Fx_create_frame): Doc fix.
21566
21567 * coding.c: Change doc-string comments to `new style' [w/`doc:'
21568 keyword].
21569
21570 * eval.c (top_level_value, top_level_set): Remove commented and
21571 #ifdef'd-out code.
21572 (Fdefvar): Fix usage in doc-string.
21573
21574 2001-11-03 Richard M. Stallman <rms@gnu.org>
21575
21576 * xfns.c: Include unistd.h, if it exists.
21577
21578 * editfns.c: Move the include of ctype.h after unistd.h.
21579
21580 * gmalloc.c: Test BROKEN_PROTOTYPES.
21581
21582 2001-11-03 Ken Raeburn <raeburn@gnu.org>
21583
21584 * lisp.h (CHECK_STRING_CAR): New macro.
21585 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
21586 treating XCAR and XCDR as lvalues.
21587 (openp): Use CHECK_STRING_CAR.
21588 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
21589
21590 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
21591
21592 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
21593 (SIGMASKTYPE): Define.
21594
21595 * syssignal.h (sigunblock): Don't define if already defined.
21596
21597 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21598
21599 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
21600 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
21601 Fix typos in comments.
21602
21603 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
21604 and #ifdef'd-out code.
21605 Fix and reindent comments.
21606
21607 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
21608
21609 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
21610 argument `i' in macros.
21611
21612 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
21613 `i' in macros.
21614
21615 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
21616 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
21617 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
21618 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
21619 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
21620 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
21621 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
21622 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
21623 in macros.
21624
21625 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
21626 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
21627 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
21628 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
21629 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
21630 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
21631 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
21632 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
21633 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
21634 (remove unused second argument).
21635
21636 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
21637
21638 * syntax.c (describe_syntax): New wrapper.
21639 (Finternal_describe_syntax_value): Rename from describe_syntax.
21640 Don't insert space at front and \n at the end.
21641 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
21642
21643 * regex.c (re_wctype): Try to fix some warnings.
21644 (regcomp, regexec): Don't forget the __restrict.
21645
21646 2001-11-02 Richard M. Stallman <rms@gnu.org>
21647
21648 * textprop.c (Fget_char_property): Doc fix.
21649
21650 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21651
21652 * process.c (Fstart_process): Add usage to doc-string.
21653
21654 * data.c (Fsetq_default): Ditto.
21655
21656 * callint.c (Finteractive): Ditto.
21657
21658 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
21659
21660 * macros.c: Don't include keymap.h any more.
21661
21662 2001-11-01 Richard M. Stallman <rms@gnu.org>
21663
21664 * data.c (Fmake_local_variable): Doc fix.
21665
21666 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
21667 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
21668
21669 * keymap.c (Fdescribe_buffer_bindings): Print character property
21670 bindings along with or instead of the buffer local map.
21671 Make the overriding maps override what they should.
21672
21673 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21674
21675 * window.c (grow_mini_window): Fix typo in comment.
21676
21677 2001-11-01 Gerd Moellmann <gerd@gnu.org>
21678
21679 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
21680 (XTset_vertical_scroll_bar): Likewise.
21681
21682 * xfns.c (x_build_heuristic_mask): Use four_corners_best
21683 instead of IMAGE_BACKGROUND.
21684
21685 * xfns.c (four_corners_best): Reindent.
21686
21687 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
21688 Handle :box so that it is possible to specify sexprs.
21689
21690 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
21691
21692 * s/hpux11.h: New file.
21693
21694 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21695
21696 * emacs.c (USAGE1): Show command line option --no-window-system
21697 instead of --no-windows in usage.
21698 (standard_args): Rename --no-windows to --no-window-system.
21699 (bug_reporting_address): Follow Emacs coding conventions.
21700
21701 * eval.c (Fcommandp): Doc fix.
21702 Change doc-string comments to `new style' [w/`doc:' keyword].
21703
21704 * frame.c (Fframe_live_p): Doc fix.
21705
21706 * buffer.c (selective-display-ellipses): Doc fix.
21707
21708 2001-10-31 Gerd Moellmann <gerd@gnu.org>
21709
21710 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
21711
21712 * xfaces.c (realize_x_face): If C is not a single-byte character,
21713 set the face's colors_copied_bitwise_p instead of the defaulted_p
21714 members which have a different meaning.
21715 (free_face_colors): Do nothing for a face whose colors have been
21716 copied bitwise.
21717
21718 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
21719
21720 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21721
21722 * marker.c, mocklisp.c: Change doc-string comments to `new style'
21723 [w/`doc:' keyword].
21724
21725 2001-10-31 Gerd Moellmann <gerd@gnu.org>
21726
21727 * fns.c (require_unwind): Return Lisp_Object.
21728
21729 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21730
21731 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
21732 (last-input-char): Revert doc-string to be the same as the
21733 doc-string of `last-input-event'.
21734
21735 * xdisp.c: Fix typos in comments.
21736
21737 2001-10-31 Gerd Moellmann <gerd@gnu.org>
21738
21739 * window.c (grow_mini_window): Handle case that the root
21740 window is already smaller than the nominal mininum height.
21741
21742 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
21743
21744 * emacs.c (main): Don't call keys_of_macros any more.
21745
21746 * lisp.h (keys_of_macros): Remove.
21747
21748 * macros.c (keys_of_macros): Remove.
21749
21750 * xfaces.c (Fface_attribute_relative_p): Declare args.
21751
21752 2001-10-30 Jason Rumney <jasonr@gnu.org>
21753
21754 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
21755 (enum_font_cb2): Ignore fonts with vertical orientation.
21756
21757 2001-10-30 Richard M. Stallman <rms@gnu.org>
21758
21759 * keyboard.c (Finput_pending_p): Doc fix.
21760
21761 2001-10-30 Gerd Moellmann <gerd@gnu.org>
21762
21763 * xterm.c (x_after_update_window_line): Don't run the code
21764 clearing in borders for rows whose visible height is 0.
21765
21766 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
21767 resized_p flag is set. If not set, use the much less flickering
21768 method previously used.
21769
21770 * dispnew.c (change_frame_size_1): Set frame's resized_p.
21771
21772 * frame.h (struct frame) <resized_p>: New member.
21773
21774 * lread.c (to_multibyte): Ensure read_buffer is at least twice
21775 as large as the number of bytes to convert.
21776
21777 * lread.c (to_multibyte): New function.
21778 (read1): Use it.
21779
21780 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
21781
21782 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
21783
21784 2001-10-30 Gerd Moellmann <gerd@gnu.org>
21785
21786 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
21787 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
21788 if the row's fill_line_p is set and drawing the last glyph with
21789 DRAW_IMAGE_{RAISED,SUNKEN}.
21790
21791 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
21792
21793 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
21794
21795 * xmenu.c: Include coding.h and charset.h.
21796 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
21797 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
21798 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
21799 Explicitly set wv->help. Use `TRUE' rather than `True'.
21800 (menu_help_callback): Use empty_string.
21801
21802 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
21803 (Fx_popup_dialog): Explicitly init f.
21804 (w32_menu_display_help): Use empty_string.
21805
21806 2001-10-29 Richard M. Stallman <rms@gnu.org>
21807
21808 * fns.c (Frequire): Detect recursive try to require the same
21809 feature 3 or more levels deep, and get error.
21810 (require_unwind): New subroutine.
21811 (require_nesting_list): New variable.
21812 (syms_of_fns): Init and staticpro it.
21813
21814 * print.c (print_object): Clarify indication of insertion type.
21815
21816 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
21817
21818 * coding.c (syms_of_coding): Document that locale-coding-system is
21819 used for decoding input on X.
21820
21821 * window.c (Fscroll_left, Fscroll_right): Doc fix.
21822
21823 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21824
21825 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
21826 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
21827
21828 2001-10-29 Gerd Moellmann <gerd@gnu.org>
21829
21830 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
21831 use NO_CURSOR if cursor_in_non_selected_windows is false.
21832
21833 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
21834 the slant attribute if FRAME is t.
21835
21836 * xfns.c (x_set_internal_border_width): Set frame garbaged
21837 when X window doesn't exist yet.
21838
21839 * xterm.c (x_after_update_window_line): Clear internal border
21840 in different circumstances.
21841
21842 * xterm.c (XTread_socket) <KeyPress>: Don't use
21843 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
21844 <handa@etl.go.jp>.
21845
21846 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
21847
21848 * m/ibms390.h: New file. From Adam Thornton
21849 <athornton@sinenomine.net>.
21850
21851 2001-10-28 Gerd Moellmann <gerd@gnu.org>
21852
21853 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
21854
21855 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
21856 a loop counter.
21857
21858 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21859
21860 * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
21861
21862 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
21863 keyword].
21864 Fix typos in comments.
21865
21866 * emacs.c (bug_reporting_address): New function.
21867 Use it when displaying usage message.
21868
21869 * minibuf.c (read_minibuf): Remove unused external declaration of
21870 variable `Qread_only'.
21871
21872 * keymap.c (access_keymap): Remove unused variable `charset'.
21873
21874 2001-10-28 Miles Bader <miles@gnu.org>
21875
21876 * xfaces.c (merge_face_heights): Handle TO being relative as well.
21877 Remove #ifdef'd-out code.
21878 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
21879 (syms_of_xfaces): Initialize them.
21880
21881 2001-10-27 Jason Rumney <jasonr@gnu.org>
21882
21883 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
21884 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
21885 position using the system caret.
21886
21887 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
21888 (w32_system_caret_height, w32_system_caret_x)
21889 (w32_system_caret_y): New variables for tracking system caret.
21890 (w32_initialize): Initialize them.
21891 (x_display_and_set_cursor): Make system caret follow the active cursor.
21892
21893 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
21894 New messages types.
21895
21896 * w32term.c (note_mouse_highlight): Clear old help_echo.
21897
21898 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21899
21900 * xterm.c: Fix typo in a comment.
21901
21902 * emacs.c: Fix typos in comments.
21903 Remove unnecessary spaces.
21904 Change doc-string comments to `new style' [w/`doc:' keyword].
21905 (USAGE2): Fix typos in usage string.
21906
21907 * xterm.c: Fix typo in a comment.
21908
21909 * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
21910 emacs.c.
21911
21912 2001-10-27 Gerd Moellmann <gerd@gnu.org>
21913
21914 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
21915 instead of 1/2 line_height in the heuristic for skipping
21916 farther backward when target_y was not reached.
21917
21918 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
21919 Display errno only if non-zero.
21920 (sound_warning): New function.
21921 (vox_configure): Don't treat failing to set sample rate as error.
21922 (various places): Improve error messages.
21923
21924 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
21925
21926 * fileio.c (Faccess_file): Run the argument filename through
21927 Fexpand_file_name, before using it.
21928
21929 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
21930 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
21931
21932 2001-10-26 Gerd Moellmann <gerd@gnu.org>
21933
21934 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
21935
21936 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21937 Fix clearing in the case of scroll bars on the right.
21938
21939 2001-10-26 Juanma Barranquero <lektu@terra.es>
21940
21941 * w32gui.h (XImage): Add a dummy typedef.
21942
21943 2001-10-26 Gerd Moellmann <gerd@gnu.org>
21944
21945 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
21946
21947 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
21948
21949 * frame.c (Fframe_parameter): Fix last change.
21950
21951 * fileio.c: Revert last change (which removed old commented-out
21952 version of expand-file-name). Add a comment that explains why
21953 this old version should not be removed.
21954
21955 2001-10-25 Gerd Moellmann <gerd@gnu.org>
21956
21957 * frame.c (Fframe_parameter): Fix a bug whereby some
21958 ``artificial'' frame parameters, like `minibuffer' were not
21959 obtained by calling Fframe_parameters.
21960
21961 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
21962 cursor differently.
21963
21964 * xdisp.c (move_it_vertically_backward): Compute line height
21965 differently. Add heuristic to try to be more compatible to 20.x.
21966
21967 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
21968
21969 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
21970
21971 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
21972 boolean.
21973
21974 2001-10-25 Miles Bader <miles@gnu.org>
21975
21976 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
21977 BG is a pointer to a structure, not a structure.
21978 (gif_format, png_format): Add missing commas.
21979
21980 2001-10-24 Richard M. Stallman <rms@gnu.org>
21981
21982 * xfaces.c (Fface_attributes_as_vector): New function.
21983 (syms_of_xfaces): Defsubr it.
21984
21985 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21986
21987 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
21988 variable `area'.
21989
21990 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
21991
21992 * search.c (scan_newline): Remove unused variable `selective_display'.
21993
21994 2001-10-25 Miles Bader <miles@gnu.org>
21995
21996 * dispextern.h (struct image): Add `background',
21997 `background_valid', and `background_transparent' fields.
21998 (image_background, image_background_transparent): New declarations.
21999 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
22000 * xfns.c (image_background, image_background_transparent)
22001 (four_corners_best): New functions.
22002 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
22003 (gs_format): Add `:background' entry.
22004 (lookup_image): Set IMG's background color if specified.
22005 (pbm_load, xbm_load_image, png_load): Set IMG's background field
22006 when appropriate.
22007 (x_clear_image_1): Reset `background_valid' and
22008 `background_transparent_valid' fields.
22009 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
22010 calculating it here. Set IMG's background_transparent field.
22011 (enum xpm_keyword_index): Add XPM_BACKGROUND.
22012 (enum png_keyword_index): Add PNG_BACKGROUND.
22013 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
22014 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
22015 (enum gif_keyword_index): Add GIF_BACKGROUND.
22016 (enum gs_keyword_index): Add GS_BACKGROUND.
22017 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
22018 Pre-calculate image background color where necessary.
22019 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
22020 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
22021 color to use for image glyph reliefs.
22022
22023 2001-10-24 Gerd Moellmann <gerd@gnu.org>
22024
22025 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
22026 in full-width rows.
22027
22028 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
22029 Fix clearing of area not covered by scroll bar.
22030
22031 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22032
22033 * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
22034 and `real_start'.
22035 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
22036 (glyph_rect): Remove unused variable `area'.
22037
22038 2001-10-24 Gerd Moellmann <gerd@gnu.org>
22039
22040 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
22041
22042 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
22043 (row_containing_pos): Take additional argument DY.
22044 Treat rows ending in middle of char differently.
22045 (display_line): Handle tabs on window systems differently.
22046
22047 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
22048 with additional argument.
22049
22050 * dispextern.h (row_containing_pos): Adjust prototype.
22051
22052 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
22053 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
22054 (try_window_id, try_window_reusing_current_matrix)
22055 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
22056 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
22057
22058 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22059
22060 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
22061 gnuemacs).
22062 (HAVE_BOXES): Fix typo in comment.
22063 (push_menu_pane): Fix typo in comment.
22064
22065 * xdisp.c (display_prop_string_p): Remove unused local declaration
22066 of `Qwhen'.
22067 (single_display_prop_string_p): Remove unused local declarations
22068 of `Qwhen' and `Qmargin'.
22069 (string_buffer_position): Remove unused variable `around'.
22070 (store_frame_title): Remove unused variable `width'.
22071
22072 * window.c: Don't define max.
22073 (coordinates_in_window): Remove unused variable `uy'.
22074
22075 * widget.c: Don't define max.
22076
22077 * process.c: Don't define max.
22078 (create_process): Remove unused variable `buffer'.
22079
22080 2001-10-23 Gerd Moellmann <gerd@gnu.org>
22081
22082 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
22083
22084 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
22085
22086 * xfaces.c (Finternal_set_lisp_face_attribute)
22087 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
22088 frame is on a windowed display.
22089
22090 2001-10-23 Gerd Moellmann <gerd@gnu.org>
22091
22092 * dispnew.c (sync_window_with_frame_matrix_rows):
22093 Fix handling of windows which aren't full-width, fix handling
22094 of marginal areas.
22095
22096 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
22097
22098 2001-10-23 Andreas Schwab <schwab@suse.de>
22099
22100 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
22101 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
22102
22103 2001-10-23 Gerd Moellmann <gerd@gnu.org>
22104
22105 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
22106 REAL_END. Notice if cursor gets overwritten.
22107 (notice_overwritten_cursor): Take X positions as parameters.
22108 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
22109 around call to x_draw_glyphs.
22110
22111 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22112
22113 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
22114 instead of C) and usage.
22115
22116 * editfns.c (char-to-string): Fix argument names (use CHAR instead
22117 of C) and usage.
22118
22119 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
22120 `left', `max_width' and `max_height'.
22121
22122 2001-10-23 Gerd Moellmann <gerd@gnu.org>
22123
22124 * xdisp.c (display_line): For a tab continued to the next line,
22125 set row's ends_in_middle_of_char_p.
22126
22127 2001-10-22 Gerd Moellmann <gerd@gnu.org>
22128
22129 * xdisp.c (display_line): Fix computation of continuation lines
22130 width for TABs.
22131
22132 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22133
22134 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
22135 `Qlaplace'.
22136
22137 * fileio.c: Remove unused code.
22138
22139 2001-10-22 Miles Bader <miles@gnu.org>
22140
22141 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
22142 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
22143 Remove `DOC_STRINGS_IN_COMMENTS' cases.
22144
22145 2001-10-21 Jason Rumney <jasonr@gnu.org>
22146
22147 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
22148
22149 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
22150
22151 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
22152 (Finsert_string): Avoid the multi-line string literals warning.
22153
22154 2001-10-22 Miles Bader <miles@gnu.org>
22155
22156 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
22157 (Fdocumentation): Don't use it.
22158 (syms_of_doc): Don't initialize it.
22159
22160 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
22161 * print.c (Fwith_output_to_temp_buffer): Likewise.
22162 * window.c (Fsave_window_excursion): Likewise.
22163 * editfns.c (Fsave_excursion, Fsave_current_buffer)
22164 (Fsave_restriction): Likewise.
22165 * eval.c (Frun_hooks, Frun_hook_with_args)
22166 (Frun_hook_with_args_until_failure)
22167 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
22168 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
22169 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
22170 (Funwind_protect, Fcondition_case): Likewise.
22171 * coding.c (Ffind_operation_coding_system): Likewise.
22172 * keyboard.c (Ftrack_mouse): Likewise.
22173
22174 2001-10-21 Miles Bader <miles@gnu.org>
22175
22176 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
22177 (Fmake_hash_table): Add usage: string to doc string.
22178 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
22179 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
22180 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
22181 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
22182 (Fml_prefix_argument_loop): Likewise.
22183
22184 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22185
22186 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
22187
22188 * sysdep.c (init_sys_modes): Change doc-string comments to `new
22189 style' [w/`doc:' keyword].
22190
22191 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
22192 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
22193 comments to `new style' [w/`doc:' keyword].
22194
22195 2001-10-21 Jason Rumney <jasonr@gnu.org>
22196
22197 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
22198
22199 * w32term.c (remember_mouse_glyph): New function.
22200 (w32_mouse_position): Use it.
22201 (note_mouse_movement): If the mouse moved off the glyph, remember
22202 its new position.
22203
22204 * w32term.h (struct w32_output): Correct spelling of x_compatible.
22205 (w32_display_info): Add mouse_face_overlay.
22206
22207 * w32term.c (notice_overwritten_cursor): Renamed from
22208 note_overwritten_text_cursor. Rewritten to take glyph widths into
22209 account.
22210 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
22211 (fast_find_string_pos): New function.
22212 (fast_find_position): Return the correct vpos. Add parameter
22213 STOP. In the final row, stop before glyphs having STOP as object.
22214 Don't consider glyphs that are not from a buffer.
22215 (fast_find_position) [0]: Add a presumably more correct version
22216 for after 21.1.
22217 (expose_window_tree, expose_frame): Don't compute intersections here.
22218 (expose_window): Do it here instead.
22219 (expose_window_tree, expose_window, expose_line): Return 1 when
22220 overwriting mouse-face.
22221 (expose_window): If W is the window currently being updated, mark
22222 the frame garbaged.
22223 (expose_frame): If mouse-face was overwritten, redo it.
22224 (x_use_underline_position_properties): New variable.
22225 (syms_of_xterm): DEFVAR_BOOL it.
22226 (x_draw_glyph_string): Add comment to use it in future.
22227 (x_draw_glyph_string): Restore clipping after drawing box.
22228 Fix a computation of the underline position.
22229 (w32_get_glyph_string_clip_rect): Minor cleanup.
22230 (x_fill_stretch_glyph_string): Remove an assertion.
22231 (x_produce_glyphs): Don't convert multibyte characters
22232 to unibyte characters in unibyte buffers.
22233 (cursor_in_mouse_face_p): New function.
22234 (x_draw_stretch_glyph_string): Use it to choose a different GC
22235 when drawing a cursor within highlighted text. Don't draw
22236 background again if it has already been drawn.
22237 (x_draw_glyph_string_box): Don't draw a full-width
22238 box just because the glyph row's full_width_p flag is set.
22239 (x_draw_glyphs): Fix computation of rightmost x for
22240 full-width rows.
22241 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
22242 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
22243 change bottom shadow accordingly. Some cleanup.
22244 (x_update_window_end): Handle overwritten mouse face
22245 also for tool bar windows.
22246 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
22247 DRAW is DRAW_IMAGE_RAISED.
22248 (clear_mouse_face): Return 1 if text with mouse face was
22249 actually redrawn. Make the function static.
22250 Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
22251 optimize away highlighting if we pass over that same overlay again.
22252 (note_mouse_highlight): Call mouse_face_overlay_overlaps
22253 to detect a case where we have to highlight a different region
22254 despite not having left the currently highlighted region.
22255 Set mouse_face_overlay in the x_display_info. Avoid changing the
22256 mouse pointer shape when show_mouse_face has already done it, or
22257 there is no need. Handle mouse-face and help-echo in strings.
22258 (glyph_rect): New function.
22259 (w32_mouse_position): Use it to raise the threshold for mouse
22260 movement event generation.
22261 (w32_initialize_display_info): Initialize the x_display_info's
22262 mouse_face_overlay.
22263 (w32_set_vertical_scroll_bar): Don't clear a zero height
22264 or width area.
22265 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
22266 a widget to zero height.
22267
22268 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
22269 Protect unibyte strings created by replacing their multibyte
22270 equivalents in menu_items.
22271 (w32_menu_show): Don't overwrite an item's name with its key
22272 description in case the description is a multibyte string.
22273 (single_submenu): Some cleanup.
22274
22275 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
22276 (postprocess_image): New function.
22277 (lookup_image): Call it for all image types except PostScript.
22278 (x_kill_gs_process): Call postprocess_image.
22279 (tiff_error_handler, tiff_warning_handler): New functions.
22280 (tiff_load): Install them as handlers.
22281 (x_kill_gs_process): Recognize if someone has cleared the image
22282 cache under us.
22283 (valid_image_p): Protect better against invalid image
22284 specifications. Previous code could signal an error.
22285 (Fx_hide_tip, Fshow_tip): Doc fix.
22286 (Fv_max_tooltip_size): New variable.
22287 (syns_of_xfns): DEFVAR_LISP it.
22288 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
22289 window buffer to *tip* right after creating the frame. Set frame's
22290 window_width. Use a maximum tooltip size specified by
22291 Vx_max_tooltip_size, if that has valid contents.
22292 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
22293 Make sure the tooltip is completely visible.
22294 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
22295 (Fx_create_frame): Adjust the frame's height for presence
22296 of the tool bar before calling x_figure_window_size.
22297 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
22298 when the window gets smaller.
22299 (x_set_foreground_color): Set frame's cursor_pixel.
22300 (x_set_foreground_color, x_set_background_color): Cleaned up.
22301 (x_set_font): Handle case of x_new_fontset returning the same name
22302 as before, although there was a change in fontsets.
22303
22304 2001-10-21 Miles Bader <miles@gnu.org>
22305
22306 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
22307 (Flogxor): Add usage: string to doc string.
22308 * charset.c (Fstring): Likewise.
22309 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
22310 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
22311
22312 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
22313
22314 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
22315
22316 * alloc.c: Reindent DEFUNs with doc: keywords.
22317
22318 * abbrev.c (Finsert_abbrev_table_description): Reindent.
22319
22320 * frame.c: Change doc-string comments to `new style' [w/`doc:'
22321 keyword].
22322
22323 See ChangeLog.9 for earlier changes.
22324
22325 ;; Local Variables:
22326 ;; coding: iso-2022-7bit
22327 ;; End:
22328
22329 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
22330 Copying and distribution of this file, with or without modification,
22331 are permitted provided the copyright notice and this notice are preserved.
22332
22333 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4