(Fnetwork_interface_info): Correctly terminate the
[emacs.git] / src / ChangeLog
blob1d3a92444e2e07547d277e759f15841912e25a29
1 2005-12-30  Andreas Schwab  <schwab@suse.de>
3         * process.c (Fnetwork_interface_info): Correctly terminate the
4         loop over ifflag_table.
6 2005-12-29  Richard M. Stallman  <rms@gnu.org>
8         * lread.c (readevalloop): Test for reading a whole buffer
9         before actually reading anything.  Handle all cases, including
10         START = END = nil and an already-narrowed buffer.
11         Convert END to a marker if it is a number.
13         * keymap.c (describe_map): Put sparse map elements into an array,
14         sort them, then output a sequence of identical bindings on one line.
15         (struct describe_map_elt): New data type.
16         (describe_map_compare): New function.
18 2005-12-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
20         * gtkutil.c (xg_get_file_with_chooser): Changed message shown
21         in file chooser.
23 2005-12-27  Richard M. Stallman  <rms@gnu.org>
25         * lread.c (readevalloop): Set PT and ZV in the proper buffer,
26         not the current one.
28         * minibuf.c (Fminibuffer_message): Doc fix.
29         (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
31         * eval.c (do_autoload): Ignore elements of Vautoload_queue
32         where car is not symbol.
34 2005-12-27  Kenichi Handa  <handa@m17n.org>
36         * charset.c (lisp_string_width): Check multibyteness of STRING.
38 2005-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
40         * xfns.c: x_show_hidden_files, new variable.
41         (syms_of_xfns): Defvar it.
43         * gtkutil.c (xg_toggle_visibility_cb): New function.
44         (xg_get_file_with_chooser): Add toggle hidden files and a message
45         to the new file chooser dialog.  Show hidden files if
46         x_show_hidden_files is non-zero.
48 2005-12-26  Richard M. Stallman  <rms@gnu.org>
50         * keyboard.h: Undo previous change.
52         * Makefile.in (undo.o): Undo previous change.
54         * undo.c: Undo previous change.
56 2005-12-26  Luc Teirlinck  <teirllm@auburn.edu>
58         * keyboard.h: extern last_point_position_window.
60         * undo.c: include keyboard.h.
62         * Makefile.in (undo.o): Depend on keyboard.h.
64 2005-12-26  Richard M. Stallman  <rms@gnu.org>
66         * commands.h (last_point_position_window): Declare.
68         * undo.c: Depend on window.h.
69         (record_point): Save old point from the correct window.
71         * keyboard.c (last_point_position_window): New variable.
72         (command_loop_1): Set last_point_position_window.
73         (syms_of_keyboard): Init it.
75         * Makefile.in (undo.o): Depend on window.h.
77 2005-12-25  Richard M. Stallman  <rms@gnu.org>
79         * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
80         to undo a `provide'.
82         * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
84 2005-12-25  Giorgos Keramidas  <keramida@ceid.upatras.gr>
86         * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
87         define for FreeBSD on this platform.
89 2005-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
91         * macterm.h (TYPE_FILE_NAME): New define.
92         (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
94         * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Add
95         prototypes.  Make static.
96         (mac_aedesc_to_lisp): Initialize err to noErr.
97         (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
98         (init_coercion_handler): New functions.
99         (Fmac_coerce_ae_data): Use coercion of Apple event data for
100         translation from/to file names.
102         * macterm.c: Don't include sys/param.h.
103         (init_coercion_handler): Add extern.
104         [MAC_OS8] (main): Call init_coercion_handler.
105         (mac_initialize) [MAC_OSX]: Likewise.
106         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
107         Apple event data for translation from/to file names.
109         * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
111         * image.c [MAC_OS] (find_image_fsspec): Likewise.
113 2005-12-23  Martin Rudalics  <rudalics@gmx.at>  (tiny change)
115         * insdel.c (insert, insert_and_inherit, insert_before_markers)
116         (insert_before_markers_and_inherit): Make sure FROM is correct
117         when `after-change-functions' are called.
119 2005-12-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
121         * xfns.c (Fx_uses_old_gtk_dialog): New function.
123         * gtkutil.c (xg_uses_old_file_dialog): New function.
124         (xg_get_file_name): Use xg_uses_old_file_dialog.
126         * gtkutil.h: Declare xg_uses_old_file_dialog.
128 2005-12-22  Richard M. Stallman  <rms@gnu.org>
130         * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
132 2005-12-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
134         * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
136         * macgui.h (XCharStruct): Remove member `valid_p'.
137         (STORE_XCHARSTRUCT): Don't set member `valid_p'.
138         (XCharStructRow): New typedef.
139         (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID): New
140         macros.
141         (struct MacFontStruct): Add member `bounds'.  Remove member
142         `per_char'.  All uses for QuichDraw Text fonts are changed to
143         `bounds.per_char'.  ATSUI font bounds are represented as an array
144         `bounds.rows' of XCharStructRow's, each of which consists of a
145         bitmap of valid entries and an array of char bounds.
147         * macterm.c (mac_per_char_metric): Add prototype.
148         (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
149         (mac_query_char_extents): New function.
150         (x_per_char_metric): Use it.
151         (XLoadQueryFont): Likewise.  Consolidate min/max_bounds calculations.
152         [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Use
153         mac_per_char_metric instead of x_per_char_metric.
154         (mac_text_extents_16): New function.
155         (mac_compute_glyph_string_overhangs): Use it.
156         (mac_unload_font): Free member `bounds' in struct MacFontStruct.
158 2005-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
160         * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
161         (Fminibuffer_completion_help): Remove duplicates before display.
163 2005-12-21  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
165         * print.c (print_preprocess): Don't lose print_depth levels while
166         iterating.
168 2005-12-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
170         * macmenu.c (Qmac_apple_event): Add extern.
171         (set_frame_menubar, mac_menu_show keymp_panes)
172         (single_keymap_panes, list_of_panes, list_of_item)
173         (single_menu_item): Add argument types to prototypes.
174         (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
175         (struct skp): New struct (from xmenu.c).
176         (single_keymap_panes, single_menu_item, list_of_panes)
177         (list_of_item): Sync with xmenu.c.
178         (Fx_popup_menu, Fx_popup_dialog): Likewise.  Don't get window from
179         POSITION if it is mac-apple-event event.
180         (menubar_selection_callback): Don't use menu_command_in_progress.
181         (set_frame_menubar): First parse all submenus, then make
182         widget_value trees from them.  Don't allocate any widget_value
183         objects until we are done with the parsing.
184         (parse_single_submenu, digest_single_submenu): New functions.
185         (single_submenu): Function deleted, replaced by those two.
186         (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
187         create or dispose of EventHandlerUPP.  Install hander to all submenus.
188         (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
189         instead of ENCODE_SYSTEM.
190         (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
191         integer values.
192         [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
193         (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
194         format menu item string.  Don't use NULL for integer value.
196         * macterm.h (struct mac_output): Remove unused member
197         menu_command_in_progress.
199 2005-12-20  Juri Linkov  <juri@jurta.org>
201         * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
202         position is non-nil, else set it to nil.
204         * macmenu.c (Fx_popup_menu): Add `else' to set
205         Vmenu_updating_frame to nil only if position is nil.
207         * w32menu.c (Fx_popup_menu): Add `else' to set
208         Vmenu_updating_frame to nil only if position is nil.
210 2005-12-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
212         * keyboard.c (make_lispy_event): Drag-and-drop items are now
213         stored in member `args' of struct input_event.
215         * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
217         * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
218         stored in member `args' of struct input_event.
220         * w32term.c (construct_drag_n_drop): Likewise.
222         * macterm.c (mac_do_receive_drag): Likewise.
223         (x_use_underline_position_properties): Undo 2005-07-13 change.
224         (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
225         (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
226         (mac_pass_command_to_system, mac_pass_control_to_system):
227         New boolean variables renamed from Lisp_Object ones
228         Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
229         Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
230         All uses changed.
231         (syms_of_macterm): DEFVAR_BOOL them.  Remove previous DEFVAR_LISPs.
232         Make them user options.
233         (mac_handle_command_event, mac_store_services_event):
234         Call create_apple_event_from_event_ref without 5th argument.
235         (backtranslate_modified_keycode): Mask off modifier keys that are
236         mapped to some Emacs modifiers before passing it to KeyTranslate.
237         (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
238         `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
239         Fix docstrings of `mac-*-modifier'.
241         * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
242         (do_applescript): Change argument types to Lisp_Object.
243         All uses changed.
245         * macterm.h (create_apple_event_from_event_ref): Remove 5th
246         argument from extern.
248 2005-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
250         * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
251         the answer, return `lambda', not nil.
253 2005-12-17  Eli Zaretskii  <eliz@gnu.org>
255         * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
256         enclosed in $(ARGQUOTE)s should not be split between two lines, as
257         that will break with GNU Make >3.80, when sh.exe is used and
258         arg quoting is with '..'.
260 2005-12-17  Chong Yidong  <cyd@stupidchicken.com>
262         * print.c (print_preprocess): Just signal an error if print_depth
263         is exceeded.
265 2005-12-17  Eli Zaretskii  <eliz@gnu.org>
267         * .gdbinit: Set a breakpoint on w32_abort.
269 2005-12-16  Juri Linkov  <juri@jurta.org>
271         * minibuf.c (Fminibuffer_completion_contents): New Lisp function
272         created from minibuffer_completion_contents.
273         (minibuffer_completion_contents): Remove.
274         (do_completion, Fminibuffer_complete_word)
275         (Fminibuffer_completion_help): Replace minibuffer_completion_contents
276         with Fminibuffer_completion_contents.
277         (syms_of_minibuf): Add Sminibuffer_completion_contents.
278         (Fdisplay_completion_list): Doc fix.
279         (display_completion_list_1): Use `nil' for second arg of
280         `Fdisplay_completion_list'.
282 2005-12-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
284         * xfns.c (compute_tip_xy): Handle negative dx and dy.
286         * w32fns.c (compute_tip_xy): Ditto.
288         * macfns.c (compute_tip_xy): Ditto.
290 2005-12-14  Chong Yidong  <cyd@stupidchicken.com>
292         * print.c (print_preprocess): Go to a deeper print_depth to avoid
293         print_object loop.
295 2005-12-14  Kyotaro HORIGUCHI  <horiguti@meadowy.org>  (tiny change)
297         * coding.c (code_convert_region_unwind): GCPRO arg.
299 2005-12-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
301         * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
302         i.e. dy is offset from top of frame instead of bottom.
304         * macfns.c (compute_tip_xy): Ditto.
306         * w32fns.c (compute_tip_xy): Ditto.
308         * gtkutil.c (SSDATA): New macro to remove compiler warnings.
309         (xg_get_image_for_pixmap, xg_create_frame_widgets)
310         (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
312         * xmenu.c (menubar_selection_callback): Do nothing if the callback
313         is for an unselected radio menu item.
315 2005-12-11  Richard M. Stallman  <rms@gnu.org>
317         * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
319         * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
321         * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
322         (Flookup_key): Doc fix.
323         (syms_of_keymap) <function-key-map>: Doc fix.
325         * fns.c (Frequire): Treat evaluating from a source file
326         like loading the file.
328         * floatfns.c (Flog): Doc fix.
330         * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
331         when we change the buffer.
333 2005-12-11  Juri Linkov  <juri@jurta.org>
335         * minibuf.c (display_completion_list_1):
336         Call `minibuffer_completion_contents' instead of using `nil' as
337         second arg of `Fdisplay_completion_list'.
338         (keys_of_minibuf): Unbind SPC in
339         Vminibuffer_local_filename_completion_map (see also related
340         change on 2005-12-06).
342 2005-12-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
344         * emacs.c (main) [MAC_OS8]: Undo previous change.
346         * macselect.c (syms_of_macselect) <mac-apple-event-map>:
347         Initialize to nil.  Keymap is now created in lisp/term/mac-win.el.
349 2005-12-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
351         * Makefile.in (macselect.o): Depend on keymap.h.
353         * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
354         syms_of_macselect.
356         * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
357         [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
359         * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
360         (syms_of_keyboard) [MAC_OS]: Initialize it.
361         (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
363         * mac.c (Qundecoded_file_name): New variable.
364         (syms_of_mac): Initialize it.
365         (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
366         [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
367         (Fmac_coerce_ae_data): New defun.
368         (syms_of_mac): Defsubr it.
370         * macselect.c: Include keymap.h.
371         (mac_ready_for_apple_events): New variable.
372         (Vmac_apple_event_map, Qmac_apple_event_class)
373         (Qmac_apple_event_id): New variables.
374         (syms_of_macselect): Initialize them.
375         (Qundefined, mac_store_apple_event): Add externs.
376         (struct apple_event_binding): New struct.
377         (find_event_binding_fun, find_event_binding)
378         (mac_find_apple_event_spec, defer_apple_events)
379         (mac_handle_apple_event, init_apple_event_handler)
380         (copy_scrap_flavor_data): New functions.
381         (Fmac_process_deferred_apple_events): New defun.
382         (syms_of_macselect): Defsubr it.
383         (mac_store_services_event): Fix extern.
384         (mac_handle_service_event): Don't allocate Lisp objects during
385         asynchronous input processing.  Use mac_store_services_event
386         instead of mac_store_application_menu_event.
388         * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
389         (Qpreferences): Remove variables.
390         (syms_of_macterm) : Don't initialize them.
391         (Qhicommand) [USE_CARBON_EVENTS]: New variable.
392         (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
393         (init_required_apple_events, do_ae_open_application)
394         (do_ae_print_documents, do_ae_open_documents)
395         (do_ae_quit_application): Remove functions and prototypes.
396         (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
397         (mac_find_apple_event_spec): Add externs.
398         (mac_store_application_menu_event): Remove function.
399         (mac_store_apple_event, mac_make_lispy_event_code): New functions.
400         (mac_handle_command_event): Create Apple event from Carbon event.
401         Use mac_store_apple_event instead of mac_store_application_menu_event.
402         [MAC_OSX] (mac_store_services_event): Likewise.
403         (struct SelectionRange, SelectionRange): Remove struct and typedef.
404         [MAC_OS8] (main): Call init_apple_event_handler instead of
405         init_required_apple_events.
406         (mac_initialize) [MAC_OSX]: Likewise.
407         [!USE_CARBON_EVENTS] (mac_wait_next_event): Use
408         mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
410         * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp): Add
411         externs.
412         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
413         (Fmac_get_preference): Add EXFUN.
415         * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
416         event.
418 2005-12-09  Richard M. Stallman  <rms@gnu.org>
420         * xfns.c (Fx_create_frame): Reinstate previous change.
422 2005-12-09  Eli Zaretskii  <eliz@gnu.org>
424         * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
425         GDB to the abort dialog.
427 2005-12-09  Kyotaro HORIGUCHI <horiguti@meadowy.org>  (tiny change)
429         * indent.c (Fvertical_motion): Force move if starting on
430         stretch glyph.
432 2005-12-08  Richard M. Stallman  <rms@gnu.org>
434         * lread.c (read_escape) <\s>: Don't treat strings specially.
436         * xfns.c (Fx_create_frame): Comment out previous change.
438 2005-12-07  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
440         * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
441         when needed.
443 2005-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
445         * minibuf.c (keys_of_minibuf): Just unbind SPC in
446         Vminibuffer_local_filename_completion_map rather than forcing it
447         explicitly to the same binding as the global map.
449 2005-12-06  Ken Raeburn  <raeburn@gnu.org>
451         * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP
452         argument.
453         * bytecode.c (Fbyte_code): Likewise.
454         * fileio.c (internal_delete_file, Fread_file_name_internal):
455         Likewise.
456         * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
457         * undo.c (truncate_undo_list): Likewise.
459 2005-12-05  Richard M. Stallman  <rms@gnu.org>
461         * window.c (enlarge_window): Eliminate arg preserve_before.
462         Assume it is 0.  All callers changed.
463         (Fenlarge_window, Fshrink_window): Likewise.
465 2005-12-02  Eli Zaretskii  <eliz@gnu.org>
467         * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
468         fit below.
470 2005-12-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
472         * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
474         * xfns.c (x_real_positions): int ign => unsigned int.
475         (xg_set_icon_from_xpm_data): Remove unused variable err.
476         (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
477         to remove compiler warning.
478         (compute_tip_xy): Put tip above pointer if it doesn't fit below.
480 2005-12-02  David Reitter  <david.reitter@gmail.com>
482         * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
483         non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
484         and Vminibuffer_local_must_match_filename_map keymaps.
485         (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
487         * keymap.c (Vminibuffer_local_filename_completion_map)
488         (Vminibuffer_local_must_match_filename_map): New variables.
489         (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
490         parent to be Vminibuffer_local_completion_map and
491         Vminibuffer_local_must_match_map, respectively.
493         * commands.h (Vminibuffer_local_filename_completion_map)
494         (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
496 2005-12-01  Stefan Monnier  <monnier@iro.umontreal.ca>
498         * window.c (Fset_window_configuration): Don't accidentally copy the
499         window-point of one window to another.
501 2005-11-30  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
503         * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
505 2005-11-30  Kim F. Storm  <storm@cua.dk>
507         * alloc.c: Include fcntl.h.  Define O_WRONLY if not defined.
508         (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
509         passing it to `emacs_write'.
511 2005-11-29  Ari Roponen  <arjuropo@cc.jyu.fi>  (tiny change)
513         * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
515 2005-11-27  Richard M. Stallman  <rms@gnu.org>
517         * window.c (adjust_window_trailing_edge): New function.
518         (Fadjust_window_trailing_edge): New function.
519         (syms_of_window): Defsubr it.
520         (window_deletion_count): New variable.
521         (delete_window): Update window_deletion_count.
523 2005-11-26  Eli Zaretskii  <eliz@gnu.org>
525         * minibuf.c (syms_of_minibuf): Mention the extension of
526         `completion-auto-help's meaning by complete.el.
528 2005-11-26  Henrik Enberg  <henrik.enberg@telia.com>
530         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
531         Handle :inherit property as a lisp expression.
533 2005-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
535         * macterm.c (Qcontrol): Rename from Qctrl.  All uses changed.
536         (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
537         Qsuper, and Qmodifier_value.
538         (Vmac_control_modifier, Vmac_option_modifier)
539         (Vmac_command_modifier, Vmac_function_modifier)
540         (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
541         (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
542         (Vmac_charset_info_alist): Doc fixes.
544 2005-11-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
546         * emacs.c (main) [MAC_OSX]: Change working directory to home
547         directory if `-psn_*' option is specified.
549         * mac.c (DECODE_UTF_8): Remove macro.
550         [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
551         created from cfstring_to_lisp.
552         [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
553         (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
555         * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
556         Add prototype.
558 2005-11-21  Ken Raeburn  <raeburn@gnu.org>
560         * keymap.c (shadow_lookup): Use make_number to pass a number to
561         Fsubstring.
563 2005-11-21  Juri Linkov  <juri@jurta.org>
565         * puresize.h (BASE_PURESIZE): Increment to 1180000.
567 2005-11-20  Chong Yidong  <cyd@stupidchicken.com>
569         * xfaces.c (Finternal_set_lisp_face_attribute):
570         Use :ignore-defface for new frame defaults when `unspecified' is
571         supplied.
572         (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
573         (merge_face_vectors): Don't do :ignore-defface overwriting here.
574         (Finternal_merge_in_global_face): Do it here.
576 2005-11-20  Juri Linkov  <juri@jurta.org>
578         * charset.c (invalid_character): Use Lisp-readable syntax
579         for octal and hex.  Reorder decimal, octal and hex values.
581 2005-11-20  Nick Roberts  <nickrob@snap.net.nz>
583         * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
584         this type is recognised when debugging.
586 2005-11-19  Andreas Schwab  <schwab@suse.de>
588         * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
589         Lisp_Cons and Lisp_Float.
591 2005-11-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
593         * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
594         New variable.
595         [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
596         (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
597         [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
598         font size is smaller than or equal to cg_text_anti_aliasing_threshold.
600 2005-11-17  Chong Yidong  <cyd@stupidchicken.com>
602         * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
604         * xfaces.c (Qignore_defface): New variable.
605         (syms_of_xfaces): Provide `:ignore-defface'.
606         (IGNORE_DEFFACE_P): New macro.
607         (check_lface_attrs, lface_fully_specified_p)
608         (Finternal_set_lisp_face_attribute)
609         (Fface_attribute_relative_p, Fmerge_face_attribute):
610         Handle Qignore_defface as a possible value.
611         (merge_face_vectors): The merged face is `unspecified' if the
612         mergee specifies `:ignore-defface'.
614 2005-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
616         * lread.c (readevalloop): Add missing GCPROs.
618 2005-11-16  Chong Yidong  <cyd@stupidchicken.com>
620         * xfns.c (xg_set_icon_from_xpm_data): New function.
622         * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
623         (gnu_xbm_bits): Rename from gnu_bits (xbm version).
625         * xterm.c (x_bitmap_icon): Use the xpm if available.
627         * image.c (x_create_bitmap_from_xpm_data): New function.
628         (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
630 2005-11-15  Luc Teirlinck  <teirllm@auburn.edu>
632         * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
634 2005-11-16  Nick Roberts  <nickrob@snap.net.nz>
636         * .gdbinit: Make SIGTSTP work like SIGINT normally does.
638 2005-11-15  Andreas Schwab  <schwab@suse.de>
640         * lisp.h (struct Lisp_Cons): Make cdr a union.
641         (XCDR_AS_LVALUE): Adjust.
642         (struct Lisp_Float): Make data a union.
643         (XFLOAT_DATA): Adjust.
645         * alloc.c (free_float): Make free list chaining aliasing-safe.
646         (make_float): Likewise.
647         (free_cons): Likewise.
648         (Fcons): Likewise.
649         (check_cons_list): Likewise.
650         (Fmake_symbol): Likewise.
651         (allocate_misc): Likewise.
652         (free_misc): Likewise.
653         (gc_sweep): Likewise.
655 2005-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
657         * mac.c (HASHKEY_QUERY_CACHE): New define.
658         (xrm_create_database, xrm_q_put_resource): Empty query cache.
659         (xrm_get_resource): Use query cache.
661         * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
662         inhibit_window_system is set.
664 2005-11-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
666         * macgui.h (USE_CG_TEXT_DRAWING): New define.
667         (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
668         and cg_glyphs.
670         * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
671         (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
672         (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
673         cg_glyphs in struct MacFontStruct if synthesized bold or italic is
674         not used and font substitution never occurs for ASCII and Latin-1
675         characters.
676         (XLoadQueryFont): Maximum and minimum metrics are now those among
677         ASCII characters.
678         (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
679         height adjustments for Courier, Helvetica, and Times.
681         * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
683 2005-11-11  David Reitter <david.reitter@gmail.com>
685         * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
686         macMetaKey, macAltKey. Introduce Qctrl, Qmeta,
687         Vmac_control_modifier / mac-control-modifier,
688         Vmac_option_modifier / mac-option-modifier,
689         Vmac_command_modifier / mac-command-modifier.
690         (mac_to_emacs_modifiers): Use the new style modifier
691         variables.  Return UInt32 (modifiers are longs now.)
692         (backtranslate_modified_keycode): New function (refactoring).
693         (XTread_socket): Use new modifier variables and refactored function.
694         (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
695         no dedicated meta key.  Not in use anyway.)
696         (convert_fn_keycode): Map Fn-keys to their original keycode
697         using a table (english keyboard only).
699 2005-11-11  Kim F. Storm  <storm@cua.dk>
701         * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
702         Add post hook to "backtrace" to always dump lisp call stack to
703         increase chance of people sending it to us when reporting bugs.
705         * doc.c (Fsubstitute_command_keys): Doc fix.
707         * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
709         * xdisp.c (handle_stop): Skip overlay string handling if
710         ignore_overlay_strings_at_pos_p is set.
711         (set_iterator_to_next): At end of display vector, set
712         ignore_overlay_strings_at_pos_p if dpvec came from an overlay
713         string, so we skip those overlay strings at current pos.
715 2005-11-10  Lars Hansen <larsh@soem.dk>
717         * fileio.c (file-regular-p): Doc fix.
719 2005-11-10  Kim F. Storm  <storm@cua.dk>
721         * alloc.c (valid_lisp_object_p): New function to validate that
722         an object is really a valid Lisp_Object.
724         * lisp.h (valid_lisp_object_p): Add prototype.
726         * print.c (safe_debug_print): New function to be called from gdb
727         to print Lisp objects; use valid_lisp_object_p to avoid crashing
728         if user tries to print something which is not a Lisp object.
730         * .gdbinit (pp, pp1): Use safe_debug_print.
731         (pv, pv1): New commands to print value of a lisp variable.
733 2005-11-10  Nick Roberts  <nickrob@snap.net.nz>
735         * .gdbinit (pp1): New user-defined function.
737 2005-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
739         * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
741         * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
742         related variables for dumped executable.
744         * unexmacosx.c (unexec_write_zero): New function.
745         (copy_data_segment): Clear uninitialized local variables in
746         statically linked libraries.
748         * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
750 2005-11-09  Juri Linkov  <juri@jurta.org>
752         * keymap.c (shadow_lookup): If Flookup_key returns a number,
753         call it again with a sub-key-sequence, and if its return value
754         is non-nil (sub-key is bound), return nil.
756 2005-11-08  Kim F. Storm  <storm@cua.dk>
758         * process.c (Fsignal_process): Recognize signal names with and
759         without SIG prefix, e.g. SIGHUP and HUP.
761         * search.c (search_buffer): No need to initialize base_pat.
763 2005-11-04  Stefan Monnier  <monnier@iro.umontreal.ca>
765         * window.c (Fget_lru_window, Fget_largest_window, window_loop):
766         Don't abuse the `mini' arg.  Use the `obj' arg instead.
768 2005-11-04  Kim F. Storm  <storm@cua.dk>
770         * xdisp.c (show_mouse_face): Clear mouse face to eol.
772 2005-11-03  Dan Nicolaescu  <dann@ics.uci.edu>
774         * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
775         font-lock.elc and jit-lock.elc.
777 2005-11-03  Richard M. Stallman  <rms@gnu.org>
779         * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
780         (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
781         (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
783         * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
785         * alloc.c (refill_memory_reserve): Move decl out of conditionals.
787 2005-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
789         * window.c (Fdisplay_buffer): Fix last change to not use
790         a dedicated window.
792 2005-11-01  Kim F. Storm  <storm@cua.dk>
794         * fringe.c (update_window_fringes): Undo 2005-10-27 change.
795         Instead, rotate the bottom angle bitmap 180 degrees to indicate
796         that the bottom row does not end in a newline.
798 2005-11-01  Andreas Schwab  <schwab@suse.de>
800         * unexelf.c (unexec): Handle .plt section in BSS segment.
802 2005-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
804         * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
806         * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
807         determine whether to consider dedicated windows as well.
808         (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
809         (Fdisplay_buffer): Do consider dedicated windows in those cases where
810         we will split the window rather than reuse it.
811         Don't try to use windows on other displays.
813 2005-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
815         * puresize.h (BASE_PURESIZE): Increment to 1170000.
817 2005-10-31  Romain Francoise  <romain@orebokech.com>
819         * macfns.c: Update copyright year.
820         * m/gould.h: Likewise.
822 2005-10-30  Kim F. Storm  <storm@cua.dk>
824         * xdisp.c (display_line): Restore it->current_x and call
825         extend_face_to_end_of_line when last glyph doesn't fit on line.
826         (set_glyph_string_background_width): Remove specific tests  here
827         to see if face background should extend to end of line.  Simplify.
829 2005-10-30  Richard M. Stallman  <rms@gnu.org>
831         * alloc.c (BYTES_USED): Use uordblks, not arena.
832         (bytes_used_when_reconsidered): New variable.
833         (emacs_blocked_free): Set that.
835 2005-10-29  Chong Yidong  <cyd@stupidchicken.com>
837         * alloc.c (emacs_blocked_free): Fix typo.
839 2005-10-29  Richard M. Stallman  <rms@gnu.org>
841         * data.c (Fmake_variable_frame_local): Doc fix.
843         * xdisp.c (handle_fontified_prop): Do nothing if memory full.
844         (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
845         controls whether to save and restore mode_line_proptrans_alist.
846         Callers changed.
847         (unwind_format_mode_line): Work with that feature.
848         (redisplay_internal): Don't call prepare_menu_bars if memory full.
849         (move_elt_to_front): New function.
850         (display_mode_element): Use move_elt_to_front.
851         Don't bother munging text props on a null string.
852         Delete obsolete elts from mode_line_proptrans_alist.
853         (decode_mode_spec): Test Vmemory_full, not spare_memory.
854         (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
856         * lisp.h (memory_full_cons_threshold): Declare.
857         (internal_lisp_condition_case): Declare.
859         * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
860         (Fmemory_full_p): Function deleted.
861         (syms_of_alloc): Don't defsubr it.
862         (memory_full_cons_threshold): New variable.
863         (spare_memory): Now a vector of 7 elts.
864         (buffer_memory_full): Don't set Vmemory_full here.
865         (xfree): Don't try to refill here.
866         (emacs_blocked_free): Record BYTES_USED in local var.
867         (memory_full): Now free all the slots in spare_memory.
868         (refill_memory_reserve): Allocate each slot in spare_memory.
869         (init_alloc_once): Call refill_memory_reserve.
871         * keyboard.c (command_loop_1): Don't set Vmemory_full here.
873         * eval.c (internal_lisp_condition_case): New function.
874         (Fcondition_case): Use internal_lisp_condition_case.
875         (Feval): Test Vmemory_full and memory_full_cons_threshold.
876         (Ffuncall): Likewise.
878         * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
880 2005-10-29  Stefan Monnier  <monnier@iro.umontreal.ca>
882         * syntax.c (Fparse_partial_sexp): Fix docstring.
884 2005-10-28  Romain Francoise  <romain@orebokech.com>
886         * puresize.h (BASE_PURESIZE): Increment to 1130000.
888 2005-10-28  Richard M. Stallman  <rms@gnu.org>
890         * xfns.c (syms_of_xfns): Provide `x' as feature.
892         * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
894         * editfns.c (Fformat): Don't include string padding
895         between info[n].start and info[n].end.
897         * alloc.c (spare_memory): No longer static.
898         (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
900         * puresize.h (BASE_PURESIZE): Increment to 1120000.
902 2005-10-27  Chong Yidong  <cyd@stupidchicken.com>
904         * data.c (Fmake_variable_frame_local): Add clarification to docstring.
906         * fringe.c (update_window_fringes): Handle case where buffer ends
907         with a newline.
909 2005-10-27  Kenichi Handa  <handa@m17n.org>
911         * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
913 2005-10-24  Kenichi Handa  <handa@m17n.org>
915         * charset.h (charset_mule_unicode_0100_24ff)
916         (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
917         Extern them.
919         * charset.c (charset_mule_unicode_0100_24ff)
920         (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
921         New variables.
922         (Fsetup_special_charsets): Initialize them.
924         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
925         supported Unicode characters.
927 2005-10-25  Jason Rumney  <jasonr@gnu.org>
929         * w32fns.c (w32_to_x_font): Avoid forcing font widths.
931 2005-10-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
933         * image.c [MAC_OS] (image_load_qt_1): Check image size.
934         Use GraphicsImportGetImageDescription instead of
935         GraphicsImportGetNaturalBounds.
936         [MAC_OSX] (image_load_quartz2d): Check image size.
937         [MAC_OS] (xpm_load_image): Likewise.
939         * macterm.c (last_mouse_glyph_frame): New var.
940         (note_mouse_movement): Say mouse moved if current frame differs
941         from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
942         (XTmouse_position): Set last_mouse_glyph_frame.
943         (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
944         (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
945         Use EndianU16_BtoN.
946         (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
947         (x_per_char_metric, XLoadQueryFont)
948         [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
949         glyph bounds.
950         (mac_to_x_fontname, mac_do_list_fonts)
951         (mac_initialize_display_info): Change screen resolutions to 72dpi.
953 2005-10-25  Masatake YAMATO  <jet@gyve.org>
955         * minibuf.c (Fdisplay_completion_list): Small doc fix.
957 2005-10-24  Kim F. Storm  <storm@cua.dk>
959         * xterm.c: Undo 2005-10-23 change.
960         (last_mouse_glyph_frame): New var.
961         (note_mouse_movement): Say mouse moved if current frame differs
962         from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
963         (XTmouse_position): Set last_mouse_glyph_frame.
964         (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
965         last_mouse_glyph] on mouse up/down event.
967         * editfns.c (Fcompare_buffer_substrings): Fix last change.
969 2005-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
971         * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
973 2005-10-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
975         * xterm.c (note_mouse_movement): Always call note_mouse_highlight
976         so tool tips don't interfere with press on tool bar button.
978 2005-10-23  Richard M. Stallman  <rms@gnu.org>
980         * casetab.c (Fset_case_table): Doc fix.
982         * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
983         (readevalloop): Compute ENTIRE properly.
984         (syms_of_lread) <load-history>: Doc fix.
986 2005-10-21  Richard M. Stallman  <rms@gnu.org>
988         * lread.c (Fload): Simplify gcpro structure.
989         Gcpro FOUND as well as FILE, but not EFOUND.
990         Unless preloading, record FOUND instead of FILE in Vload_history.
991         Rename repeat local FILE to MSG_FILE.
992         (syms_of_lread) <load-history>: Doc fix.
994 2005-10-21  Kenichi Handa  <handa@m17n.org>
996         * search.c (boyer_moore): Add parens to fix and/or precedence bug.
998 2005-10-20  Kim F. Storm  <storm@cua.dk>
1000         * buffer.c (clone_per_buffer_values): Remove unused var tem.
1001         (init_buffer): Remove unused vars dotstat, pwdstat.
1003         * ccl.c (check_ccl_update): Remove unused var vp.
1005         * fileio.c (auto_save_error): Call SAFE_FREE.
1007         * fns.c (Fchar_table_range): Remove unused var i.
1009         * minibuf.c (display_completion_list_1): New wrapper function
1010         for Fdisplay_completion_list.
1011         (Fminibuffer_completion_help): Use it.
1013         * term.c (encode_terminal_code): Remove unused var src_start.
1015         * window.c (Fwindow_tree): Remove unused var alist.
1017         * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
1019 2005-10-20  Aubrey Jaffer  <agj@alum.mit.edu>  (tiny change)
1021         * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
1023 2005-10-20  Olli Savia  <ops@iki.fi>  (tiny change)
1025         * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
1027 2005-10-20  Andreas Schwab  <schwab@suse.de>
1029         * minibuf.c (Fdisplay_completion_list): Doc fix.
1031 2005-10-19  Kim F. Storm  <storm@cua.dk>
1033         * image.c (check_image_size): Handle integer Vmax_image_size value
1034         directly as max pixel value.  Use default frame size for null frame.
1035         (syms_of_image) <max-image-size>: Describe integer value.
1037 2005-10-19  Romain Francoise  <romain@orebokech.com>
1039         * emacs.c (main): Update copyright year.
1041 2005-10-18  Chong Yidong  <cyd@stupidchicken.com>
1043         * image.c (Vmax_image_size): New variable.
1044         (check_image_size): New function.
1045         (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
1046         (gif_load, gs_load): Use it.
1047         (lookup_image): Try loading again if previous load failed.
1048         (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
1049         to display in, NULL if none.
1050         (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
1051         argument.
1053 2005-10-18  Richard M. Stallman  <rms@gnu.org>
1055         * search.c (Fstring_match): Doc fix.
1057 2005-10-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1059         * macterm.c (note_mouse_movement): Use PtInRect.
1060         (XTread_socket): Also ignore mouse motion just before a button
1061         release event.  Don't process button release event when mouse is
1062         not grabbed.
1064 2005-10-16  Masatake YAMATO  <jet@gyve.org>
1066         * minibuf.c (Fdisplay_completion_list): Add new optional
1067         argument COMMON_SUBSTRING.  Bind `completion-common-substring'
1068         to the optional argument during running `completion-setup-hook'.
1070 2005-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1072         * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
1073         Allow nil as argument.
1074          [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
1075         for encoding arguments as UTF-16 in native byte order, no BOM.
1077         * macfns.c (Fx_create_frame): Add debugging code.
1078         (Fx_show_tip): Set frame pixel width and height.
1080         * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
1081         (FRAME_NORMAL_GC): New macro.
1082         (mac_draw_line, mac_clear_area, mac_clear_window)
1083         (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
1084         (mac_draw_image_string, mac_draw_image_string_16): Rename from
1085         XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
1086         XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
1087         All uses changed.
1088         (mac_draw_line, mac_erase_rectangle, mac_clear_area)
1089         (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
1090         (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
1091         (mac_draw_string_16, mac_draw_image_string)
1092         (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
1093         (mac_scroll_area): Drawing functions now take frame as destination.
1094         All uses changed.
1095         (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
1096         (x_draw_fringe_bitmap): Set clipping area in face->gc.
1098         * macterm.h (mac_clear_area): Add extern.
1100 2005-10-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1102         * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
1103         changes for xterm.c.
1105         * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
1107 2005-10-14  Kenichi Handa  <handa@m17n.org>
1109         * search.c (search_buffer): Give up BM search on case-fold-search
1110         if one of a target character has a case-equivalence of different
1111         charset even if that target charcter is an ASCII.
1113         * casefiddle.c (casify_object): Fix for the case that case
1114         conversion change the byte length.
1116 2005-10-14  Kim F. Storm  <storm@cua.dk>
1118         * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
1119         (handle_one_xevent): Only clear help_echo_string; restore it if
1120         note_mouse_movement didn't record any mouse movement.
1122         * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
1123         (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
1125         * keyboard.c (make_lispy_position): Adjust wx for left margin if ON_TEXT.
1126         (Fposn_at_x_y): Fix calculation of x coordinate.
1127         (Fposn_at_point): Return nil if point is hscrolled out of view.
1129 2005-10-13  Andreas Schwab  <schwab@suse.de>
1131         * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
1132         non-interactive mode.
1134 2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1136         * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
1138 2005-10-12  Kim F. Storm  <storm@cua.dk>
1140         * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
1142 2005-10-12  Romain Francoise  <romain@orebokech.com>
1144         * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
1146 2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1148         * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
1149         get end of text rows.  Obtain header-line/mode-line rows directly.
1151         * xterm.c, w32term.c, macterm.c (note_mouse_movement):
1152         Restore help_echo_string if mouse is moved inside last_mouse_glyph.
1154 2005-10-12  Kim F. Storm  <storm@cua.dk>
1156         * xdisp.c (remember_mouse_glyph): New generic version based on
1157         glyph_rect and remember_mouse_glyph from xterm.c enhanced to
1158         properly handle all different window areas.
1160         * dispextern.h (remember_mouse_glyph): Add prototype.
1162         * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
1163         (note_mouse_movement, XTmouse_position): Use generic
1164         remember_mouse_glyph, add last_mouse_glyph arg.
1166         * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
1167         (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
1168         (note_mouse_movement, w32_mouse_position): Use generic
1169         remember_mouse_glyph, add last_mouse_glyph arg.
1171         * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
1172         (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
1173         (XTmouse_position): Adapt to use generic remember_mouse_glyph
1174         instead of pixel_to_glyph_coords.
1176         * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
1177         Fix x position for ON_TEXT when left margin width > 0.
1179 2005-10-11  Kim F. Storm  <storm@cua.dk>
1181         * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
1183         * keyboard.c (make_lispy_position): Fix buffer calculations for
1184         mouse click or movement in right fringe and the margins.
1186 2005-10-11  Juanma Barranquero  <lekktu@gmail.com>
1188         * image.c (fn_jpeg_stdio_src): Don't define it.
1189         (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
1190         (our_common_init_source): Rename from `our_init_source'.
1191         (our_common_term_source): Rename from `our_term_source'.
1192         (our_memory_fill_input_buffer): Rename from
1193         `our_fill_input_buffer'.
1194         (our_memory_skip_input_data): Rename from `our_skip_input_data'.
1195         (jpeg_memory_src): Use the new names.
1196         (struct jpeg_stdio_mgr): New struct.
1197         (JPEG_STDIO_BUFFER_SIZE): New constant.
1198         (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
1199         (jpeg_file_src): New functions.
1200         (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
1202 2005-10-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1204         * macterm.c (PER_CHAR_METRIC): Remove unused macro.
1205         (fm_font_family_alist): New variable.
1206         (syms_of_macterm): Initialize and staticpro it.
1207         (decode_mac_font_name): Replace '-' in family name with '_' if it
1208         occurs just once.  Lower family name.
1209         (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
1210         All uses changed.  Remove argument MF and code conversion for it.
1211         Add argument SIZE.  Rename argument MF_DECODED to FAMILY, and CS
1212         to CHARSET.  Parse font size.  Lower family name.  Return integer
1213         value for status of parsing.
1214         (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
1215         Don't use Fdowncase because family name is already lowered by
1216         decode_mac_font_name.
1217         (init_font_name_table): Always call decode_mac_font_name.
1218         Add pair of family name and its reference to fm_font_family_alist.
1219         (mac_clear_font_name_table): Clear fm_font_family_alist.
1220         (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
1221         Lookup fm_font_family_alist to get font family reference.
1222         (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
1223         name is already lowered by parse_x_font_name.
1225 2005-10-11  Kim F. Storm  <storm@cua.dk>
1227         * xterm.c (glyph_rect): Return 0 if position is outside text area.
1229         * keyboard.c (make_lispy_position): Fix buffer position calculation for
1230         mouse click or movement in fringe.
1232 2005-10-10  Jason Rumney  <jasonr@gnu.org>
1234         * xterm.c (remember_mouse_glyph): New function.
1235         (note_mouse_movement): Use it to remember the current glyph if changed.
1236         (XTmouse_position): Fix calculation of fake glyph under mouse.
1237         Move code to calculate glyph under mouse into remember_mouse_glyph.
1239 2005-10-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1241         * emacs.c (USAGE3, standard_args): -nb => -nbi.
1243 2005-10-10  Juanma Barranquero  <lekktu@gmail.com>
1245         * frame.c (Fredirect_frame_focus): Fix typos in docstring.
1246         (next_frame, prev_frame, set_term_frame_name): Make static.
1248         * window.c (Fwindow_tree): Fix spelling.
1250 2005-10-09  Romain Francoise  <romain@orebokech.com>
1252         * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
1254 2005-10-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1256         * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
1257         Add options -nb, --no-bitmap-icon.
1259         * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
1261 2005-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1263         * macgui.h (MAX_CLIP_RECTS): New define.
1264         (struct _XGC): New member clip_region.
1265         (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
1266         clip_rects.
1268         * macterm.c (GC_CLIP_REGION): New macro.
1269         (saved_port_clip_region): New variable.
1270         (mac_begin_clip, mac_end_clip): New functions.
1271         (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
1272         (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
1273         (mac_copy_area_with_mask, mac_scroll_area): Use them.
1274         (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
1275         [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
1276         [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
1277         (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
1278         rectangles stored in gc.
1279         (XFreeGC): Dispose of clipping region.
1280         (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
1281         (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
1282         (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
1283         (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
1284         (x_draw_bar_cursor): Use them.
1285         (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
1286         get multiple clipping rectangles.
1288         * macterm.h (mac_term_init): Add types to extern.
1289         (struct mac_output): Remove members mWP and pending_menu_activation.
1290         Put members scroll_bar_foreground_pixel and
1291         scroll_bar_background_pixel in #if 0.
1292         (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
1294         * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
1295         Add debugging code.
1297 2005-10-08  Kim F. Storm  <storm@cua.dk>
1299         * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
1301 2005-10-07  Kim F. Storm  <storm@cua.dk>
1303         * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
1304         [!HAVE_WINDOW_SYSTEM]: Don't declare them...
1305         (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
1307 2005-10-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1309         * dispextern.h (struct glyph_string): Rename member for_overlaps_p
1310         to for_overlaps.  Now occupy 3 bits.
1311         (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
1312         (OVERLAPS_ERASED_CURSOR): New defines.
1313         (struct redisplay_interface): Add new OVERLAPS arg to member
1314         fix_overlapping_area.
1315         (x_fix_overlapping_area): Add new OVERLAPS arg.
1316         (get_glyph_string_clip_rects): Add extern.
1318         * dispnew.c (redraw_overlapping_rows):
1319         Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
1321         * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
1322         for_overlaps.
1323         (get_glyph_string_clip_rects): New function created from
1324         get_glyph_string_clip_rect.  Set clipping rectangles according to the
1325         value of for_overlaps.  Enable to store multiple clipping rectangles.
1326         (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
1327         (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
1328         Rename argument OVERLAPS_P to OVERLAPS.  All uses in macros changed.
1329         (x_fix_overlapping_area): Add OVERLAPS arg.  Pass it to draw_glyphs.
1330         (draw_phys_cursor_glyph): Set width of erased cursor to use it for
1331         calculating clipping rectangles later.  Call x_fix_overlapping_area
1332         with new OVERLAPS arg to draw only erased cursor area.
1333         (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
1334         to draw overlaps in both preceding and succeeding rows.
1336         * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
1337         struct glyph_string to for_overlaps.
1339 2005-10-04  Richard M. Stallman  <rms@gnu.org>
1341         * alloc.c (refill_memory_reserve): Conditionalize the body,
1342         not the function's existence.
1344 2005-10-04  Kim F. Storm  <storm@cua.dk>
1346         * window.c (window_split_tree): New function.
1347         (Fwindow_split_tree): New defun.
1348         (syms_of_window): Defsubr it.
1350 2005-10-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1352         * macterm.c (mac_invert_rectangle): New function.
1353         (XTflash): Use it.
1355 2005-10-04  Stefan Monnier  <monnier@iro.umontreal.ca>
1357         * regex.h (re_char): Don't expose it in the interface.
1358         (re_set_whitespace_regexp): Adjust the arg's type to not use it.
1360         * regex.c (re_char): Move it back here.
1361         (re_set_whitespace_regexp): Change the arg's type to not use it.
1363         * keyboard.c (make_lispy_event): If point has moved between down and up
1364         event, make it a drag, not a click, to mirror what
1365         mouse-drag-region expects.
1367 2005-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
1369         * lisp.h (fatal): Undo previous change.
1370         * term.c (fatal): Undo previous change.
1372 2005-10-01  Richard M. Stallman  <rms@gnu.org>
1374         * xfaces.c (face_color_gray_p): Colors close to black count as gray.
1376 2005-10-01  Kim F. Storm  <storm@cua.dk>
1378         * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
1380 2005-10-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1382         * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
1384         * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
1385         (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
1386         (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
1387         Try ATSUI-compatible 12pt Monaco font first.
1389         * macgui.h (struct _XCharStruct): New member valid_p.
1390         (STORE_XCHARSTRUCT): Set valid_p.
1391         (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
1393         * macterm.c (mac_draw_string_common, x_per_char_metric)
1394         (mac_compute_glyph_string_overhangs, init_font_name_table)
1395         (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
1396         (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
1397         (x_draw_glyph_string_background)
1398         (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
1399         XDrawImageString.  Always draw background and foreground separately.
1400         (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
1401         functions for one-byte chars when using ATSUI-compatible fonts.
1402         (atsu_font_id_hash) [USE_ATSUI]: New variable.
1403         (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
1404         (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
1405         max_char_or_byte2 more in detail.
1406         (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
1408 2005-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
1410         * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
1411         * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
1413         * unexelf.c (fatal): Fix prototype.
1415         * term.c (fatal): Implement using varargs.
1417         * regex.c (re_char): Move typedef ...
1418         * regex.h (re_char): ... here.
1419         (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
1421         * emacs.c (malloc_set_state): Fix return type.
1422         (endif): Fix type.
1424         * lisp.h (fatal): Add argument types.
1426         * dispextern.h (fatal): Delete prototype.
1428         * systime.h: (make_time): Prototype moved from ...
1429         * editfns.c (make_time): ... here.
1431         * editfns.c: Move systime.h include after lisp.h.
1432         * dired.c:
1433         * xsmfns.c:
1434         * process.c: Likewise.
1436         * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
1437         Add parameter types.
1438         (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
1439         (emacs_blocked_free): Change definition to match __free_hook.
1440         (emacs_blocked_malloc): Change definition to match __malloc_hook.
1441         (emacs_blocked_realloc): Change definition to match __realloc_hook.
1443 2005-09-30  Romain Francoise  <romain@orebokech.com>
1445         * minibuf.c (Fread_buffer): Follow convention for reading from the
1446         minibuffer with a default value.  Doc fix.
1448 2005-09-29  Juri Linkov  <juri@jurta.org>
1450         * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
1451         Rename argument name `string' to `format-string'.
1452         (Fformat): Doc fix.
1454 2005-09-28  Kim F. Storm  <storm@cua.dk>
1456         * image.c (gif_load): Fix size of allocated image buffer
1457         for images where a sub-image may be larger than the image's
1458         total height/width specifications.
1460 2005-09-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1462         * macgui.h (struct _XCharStruct): Each member now takes short value.
1464 2005-09-27  Dan Nicolaescu  <dann@ics.uci.edu>
1466         * xfaces.c (lookup_derived_face): Add parameter type.
1468         * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
1470         * marker.c (verify_bytepos): Add parameter type.
1472         * process.c (get_operating_system_release): Move prototype ...
1474         * systime.h (get_operating_system_release): ... here.
1476         * xterm.c (handle_one_xevent): Refer to union field to match the
1477         type required by the function definition.
1478         (set_vertical_scroll_bar): Move prototype ...
1480         * xterm.h: ... here.
1482         * fns.c (internal_equal, seed_random): Fix prototypes.
1483         (internal_equal): Add missing parameter.
1485 2005-09-25  Richard M. Stallman  <rms@gnu.org>
1487         * keyboard.c (update_menu_bindings): Variable deleted.
1488         (syms_of_keyboard): Don't defvar it.
1489         (parse_menu_item): Don't test it.
1491 2005-09-23  Richard M. Stallman  <rms@gnu.org>
1493         * editfns.c (Fformat): Explicitly test for end of format string
1494         and don't use `index'.
1496 2005-09-23  Dan Nicolaescu  <dann@ics.uci.edu>
1498         * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
1499         Define BROKEN_GET_CURRENT_DIR_NAME.
1501         * sysdep.c (get_current_dir_name): Also define if
1502         BROKEN_GET_CURRENT_DIR_NAME.
1504         * m/ibmrs6000.h: Test for USG5, not USG5_4.
1506 2005-09-22  Kim F. Storm  <storm@cua.dk>
1508         * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
1509         (message2): Fix commentary.  Ok to use alloca'ed memory.
1510         Still not ok to use Lisp string data (because of GC).
1511         (set_message): Add comment why GC cannot happen.
1513 2005-09-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1515         * macterm.c (xlfdpat_block_match_1): Fix assertion.
1516         (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
1517         variants for a scalable font multiple times.
1519 2005-09-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1521         * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
1522         Setup slave tty options before forking.
1524 2005-09-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1526         * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
1527         positions have been set for the frame (as is done for frames in
1528         special-display-buffer-names).
1530 2005-09-19  Kim F. Storm  <storm@cua.dk>
1532         * editfns.c (Fformat): Don't scan past end of format string that
1533         ends in %.  Reported by: Johan Bockg\e,Ae\e(Brd.
1535 2005-09-18  Andreas Schwab  <schwab@suse.de>
1537         * window.h (struct window): Remove height_fixed_p, no longer set.
1539         * window.c (make_window): Don't initialize height_fixed_p.
1540         (window_fixed_size_p): Don't use it.
1542 2005-09-18  John Paul Wallington  <jpw@pobox.com>
1544         * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
1546 2005-09-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1548         * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
1550         * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
1551         New variables.
1552         [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
1553         file selection.
1555         * sysdep.c [MAC_OS8]: Don't include stdlib.h.  Include sys/param.h.
1557 2005-09-17  Eli Zaretskii  <eliz@gnu.org>
1559         * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
1560         (obj): Use XMENU_OBJ, not a literal xmenu.o.
1562 2005-09-16  Romain Francoise  <romain@orebokech.com>
1564         * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
1566 2005-09-15  Richard M. Stallman  <rms@gnu.org>
1568         * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
1569         (display_mode_element): Instead of `lisp_string' and `this',
1570         record `offset' and increment that.
1571         `last_offset' replaces `last'.
1573         * Makefile.in (XMENU_OBJ): Variable deleted.
1574         (obj): Use xmenu.o unconditionally.
1575         (SOME_MACHINE_OBJECTS): Delete xmenu.o.
1577         * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
1579 2005-09-15  Kim F. Storm  <storm@cua.dk>
1581         * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
1582         (reseat_at_next_visible_line_start): Likewise (in xassert).
1584 2005-09-14  Romain Francoise  <romain@orebokech.com>
1586         * fileio.c (write_region_inhibit_fsync): New variable.
1587         (Fwrite_region): Use it to skip call to fsync.
1588         (syms_of_fileio): Initialize it.
1590 2005-09-14  Kenichi Handa  <handa@m17n.org>
1592         * coding.c (code_convert_region_unwind): Argument format changed.
1593         (run_pre_post_conversion_on_str): If pre-write-conversion function
1594         changed the current buffer, delete the new buffer.
1595         (run_pre_write_conversin_on_c_str): Likewise.
1597         * fileio.c (Fexpand_file_name): Check multibyteness of
1598         default_directory.
1600 2005-09-13  Kenichi Handa  <handa@m17n.org>
1602         * composite.c (compose_chars_in_text): Delete it.
1604         * composite.h (compose_chars_in_text): Delete extern.
1606 2005-09-13  Kim F. Storm  <storm@cua.dk>
1608         * print.c (print_error_message): Fix last change.
1610 2005-09-12  Kim F. Storm  <storm@cua.dk>
1612         * composite.c (compose_chars_in_text): Fix setup of `pend'.
1613         Unconditionally reload `ptr' and `pend' after eval.
1615         * xdisp.c (message3): Pass copy of lisp string to message_dolog.
1617         * print.c (print_error_message): Pass copy of caller name to
1618         message_dolog.
1620         * fileio.c (auto_save_error): Pass copy of lisp string to message2.
1622 2005-09-12  Kenichi Handa  <handa@m17n.org>
1624         * xdisp.c (display_mode_element): Be sure to make variables THIS
1625         and LISP_STRING point into a string data of ELT.
1627 2005-09-12  Kim F. Storm  <storm@cua.dk>
1629         * editfns.c (Ftranslate_region_internal): Reload `tt' after
1630         signal_after_change that may have GC'ed.
1631         (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
1633         * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
1634         after insert while runs signal_after_change.
1636         * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
1637         declaration to where it is used.
1639         * w32.c (check_windows_init_file): Fix allocation of error buffer.
1641         * xfns.c (x_encode_text): Declare static.  Add FREEP arg.
1642         (x_set_name_internal): Call x_encode_text with new FREEP arg to
1643         know if xfree is needed instead of guessing.
1645         * xterm.h (x_encode_text): Remove prototype.
1647 2005-09-11  Chris Prince  <cprince@gmail.com>  (tiny change)
1649         * w32term.c (x_bitmap_icon): Load small icons too.
1651 2005-09-10  Romain Francoise  <romain@orebokech.com>
1653         * buffer.c (init_buffer): Grow buffer to add directory separator
1654         and terminal zero.  Fix typos.
1656 2005-09-10  Eli Zaretskii  <eliz@gnu.org>
1658         * buffer.c (init_buffer): Fix error message for failed call to
1659         get_current_dir_name.
1660         (get_current_dir_name): Remove prototype.
1662         * xsmfns.c: (get_current_dir_name): Remove prototype.
1664         * lisp.h: (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
1665         Add prototype.
1667         * sysdep.c [WINDOWSNT]: Add prototype for getwd.
1668         Don't #undef NULL after including blockinput.h.
1670         * config.in: Regenerated.
1672 2005-09-10  Giuseppe Scrivano  <gscrivano@gmail.com>
1674         Remove the MAXPATHLEN limitations:
1676         * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
1677         New function.
1679         * buffer.c (init_buffer): Use it.
1681         * xsmfns.c (smc_save_yourself_CB): Ditto.
1683 2005-09-09  Kim F. Storm  <storm@cua.dk>
1685         * doc.c (Fsubstitute_command_keys): Lookup key binding for
1686         commands that are remapped from some other command.
1688         * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
1689         flag in disabled rows below the window.
1691         * frame.h (struct frame): New member updated_p.
1693         * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
1694         member.  Remove local `updated' array and associated variables.
1696 2005-09-07  Kim F. Storm  <storm@cua.dk>
1698         * xdisp.c (handle_display_prop): Respect overlay window property.
1700         * xdisp.c (try_window): Remove superfluous cursor_height calculation.
1701         Fixes crash reported by YAMAMOTO Mitsuharu.
1703 2005-09-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1705         * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
1706         (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
1707         (xlfdpat_block_match_1, xlfdpat_match): New functions.
1708         (xlfdpat_block_match): New macro.
1709         (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
1710         (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
1711         (add_font_name_table_entry): Increase font_name_table_size more
1712         rapidly.
1713         (mac_c_string_match): Remove function.
1714         (mac_do_list_fonts): Use XLFD pattern match instead of regular
1715         expression match.
1717         * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
1719 2005-09-03  Richard M. Stallman  <rms@gnu.org>
1721         * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
1722         (move_it_in_display_line_to): Stop after last char on line even
1723         on a windowing terminal, if that's the specified stop position.
1725         * fns.c (Fsort): Doc fix.
1727         * editfns.c (Fpropertize): Don't insist that properties be symbols.
1729 2005-09-02  Stefan Monnier  <monnier@iro.umontreal.ca>
1731         * dired.c (directory_files_internal_unwind, directory_files_internal)
1732         (file_name_completion): Use a Save_Value object rather than a cons of
1733         two 16bit ints to store the DIR*.
1734         (directory_files_internal, file_name_completion): Handle both EINTR and
1735         EAGAIN consistently after `readdir'.
1737 2005-09-01  Stefan Monnier  <monnier@iro.umontreal.ca>
1739         * intervals.c (update_interval): Add position info in error.
1741         * dispnew.c (window_to_frame_hpos, update_window):
1742         Avoid gcc warning about unused variable `f'.
1744 2005-08-31  Jason Rumney  <jasonr@gnu.org>
1746         * w32menu.c (add_menu_item): If unicode_append_menu returns an
1747         error, revert to using AppendMenu.
1749 2005-08-31  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1751         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
1752         All uses changed.
1753         [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
1754         cases.
1755         (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
1756         [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
1757         Use posix_pathname_to_fsspec.
1758         [MAC_OS] (xpm_load_image): Fill in background_transparent field
1759         while we have mask.
1761         * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
1763         * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
1765 2005-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
1767         * syntax.c (update_syntax_table): Properly reproduce the special +1
1768         setting of e_property at the end of the buffer when bumping into the
1769         INTERVALS_AT_ONCE limit.
1771 2005-08-27  Eli Zaretskii  <eliz@gnu.org>
1773         * emacs.c (USAGE1): Fix the description of the -Q option.
1775 2005-08-26  Stefan Monnier  <monnier@iro.umontreal.ca>
1777         * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
1779 2005-08-26  Kim F. Storm  <storm@cua.dk>
1781         * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
1782         Don't move PT to new window start.
1784 2005-08-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1786         * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
1787         ICONIFY/DEICONIFY_EVENT.
1789         * macterm.c (mac_copy_area, mac_copy_area_with_mask):
1790         Restore background color.
1791         (mac_handle_visibility_change): New function.
1792         (x_make_frame_invisible, x_iconify_frame)
1793         (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
1794         [USE_CARBON_EVENTS] (mac_handle_window_event)
1795         (install_window_handler): Handle visibility change events.
1796         (x_make_frame_visible): Don't reposition window if it is iconified
1797         or asked for visible before.  Select and uncollapse window when it
1798         is made visible.
1799         (x_make_frame_invisible): Don't reset x_highlight_frame.
1800         (x_iconify_frame): Likewise.  Make invisible frame visible before
1801         it is iconified.
1802         (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
1803         (do_window_update): Don't change visibility of invisible frame.
1805 2005-08-22  Juri Linkov  <juri@jurta.org>
1807         * term.c (turn_on_face): Check for TS_set_foreground and
1808         TS_set_background depending on standout_mode.  Simplify.
1810 2005-08-21  Kim F. Storm  <storm@cua.dk>
1812         * fringe.c (update_window_fringes): Only put TOP and BOTTOM
1813         bitmaps on fully visible rows.
1815         * fringe.c (update_window_fringes): Replace FORCE_P arg with
1816         KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
1817         and return 0.
1819         * xdisp.c (redisplay_window): Call update_window_fringes with
1820         KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
1822 2005-08-20  Richard M. Stallman  <rms@gnu.org>
1824         * xdisp.c (display_echo_area_1): Get display start pos from w->start.
1825         (resize_mini_window): Set w->start, and PT, so as to display the tail
1826         end of the buffer, if it doesn't all fit.
1828 2005-08-18  Kim F. Storm  <storm@cua.dk>
1830         * xdisp.c (calc_pixel_width_or_height): Use actual display
1831         resolution when available instead of Vdisplay_pixels_per_inch.
1833 2005-08-17  Kim F. Storm  <storm@cua.dk>
1835         * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
1837         * dispnew.c (buffer_posn_from_coords): Check that target row is
1838         within matrix.
1840 2005-08-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1842         * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
1843         xg_set_frame_icon and call it.
1845         * gtkutil.c (xg_set_frame_icon): New function.
1847         * gtkutil.h (xg_set_frame_icon): Declare it.
1849 2005-08-16  Kim F. Storm  <storm@cua.dk>
1851         * dispnew.c (increment_row_positions): Skip non-enabled rows.
1853         * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
1854         (Fcurrent_window_configuration): Use VECSIZE macro instead.
1856 2005-08-15  Richard M. Stallman  <rms@gnu.org>
1858         * xdisp.c (message3_nolog): Clear echo_message_buffer.
1860 2005-08-15  Kim F. Storm  <storm@cua.dk>
1862         * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
1864         * process.c (deactivate_process, status_notify, read_process_output)
1865         (update_status, status_convert, decode_status, allocate_pty)
1866         (make_process, remove_process, list_processes_1)
1867         (create_process_1, unwind_request_sigio, read_process_output)
1868         (send_process, keyboard_bit_set): Declare static.
1869         (Fdelete_process): Simplify.  Pass process to status_notify, so we
1870         don't try to read output from it.
1871         (status_notify): New arg deleting_process--don't try to read
1872         output from that process.
1874         * lisp.h (deactivate_process, status_notify, read_process_output):
1875         Remove prototypes.
1877 2005-08-14  Richard M. Stallman  <rms@gnu.org>
1879         * image.c (syms_of_image): Init Qxbm, Qpbm before calling
1880         define_image_type.
1882 2005-08-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1884         * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
1885         (xg_get_image_for_pixmap): Move some code to
1886         xg_get_pixbuf_from_pix_and_mask, and call it.
1888         * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
1890         * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
1891         to get an GTK icon and set it with GTK functions to avoid having GTK
1892         override an icon set with just X functions.
1894 2005-08-11  Richard M. Stallman  <rms@gnu.org>
1896         * image.c (syms_of_image): Init image_types here, and call
1897         define_image_type.
1898         (init_image): Not here.
1900 2005-08-09  Richard M. Stallman  <rms@gnu.org>
1902         * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
1904         * lisp.h (QUIT): Throw t to Vthrow_on_input.
1906 2005-08-09  Thien-Thi Nguyen  <ttn@gnu.org>
1908         * floatfns.c (Fexpt): Use floats for negative exponent.
1910 2005-08-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1912         * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
1913         should not be there, causing menu display errors with GTK 2.6.9.
1915 2005-08-07  Richard M. Stallman  <rms@gnu.org>
1917         * floatfns.c (Fexpt): Undo previous change.
1919         * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
1920         so it can be used with various state vectors.
1922         * emacs.c (endif): Convert -script into -scriptload.
1923         (standard_args): Add -scriptload.  Allow -basic-display with one dash.
1925         * fns.c (syms_of_fns): Add `emacs' to features.
1927         * term.c (set_terminal_modes): If no TS_termcap_modes string,
1928         output newlines to scroll the old screen contents off the screen.
1930 2005-08-06  Thien-Thi Nguyen  <ttn@gnu.org>
1932         * floatfns.c (Fexpt): Use floats for negative exponent.
1933         Reported by D Goel.
1935 2005-08-02  Richard M. Stallman  <rms@gnu.org>
1937         * frame.c (Fframe_char_width): Doc fix.
1939 2005-07-30  Juanma Barranquero  <lekktu@gmail.com>
1941         * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
1942         Defvar it.
1944 2005-07-28  Juanma Barranquero  <lekktu@gmail.com>
1946         * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
1947         (my_create_window, my_create_tip_window): Make static.
1949         * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
1950         (my_set_foreground_window, my_destroy_window): Make static.
1952 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
1954         Merge gnulib getopt implementation into Emacs.
1956         * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
1957         now part of lib-src.
1959 2005-07-26  Stefan Monnier  <monnier@iro.umontreal.ca>
1961         * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
1963 2005-07-25  Jason Rumney  <jasonr@gnu.org>
1965         * w32menu.c (w32_menu_display_help): Suppress tooltip when
1966         navigating menus with the keyboard.
1968 2005-07-23  Richard M. Stallman  <rms@gnu.org>
1970         * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
1972         * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
1973         gc_relative_threshold, one by one.
1975         * keyboard.c (read_char): Test gc_cons_threshold.
1976         (syms_of_keyboard): staticpro Qecho_area_clear_hook.
1978         * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
1979         gc_relative_threshold, one by one.
1981         * alloc.c (gc_cons_threshold): Not static.
1982         (gc_cons_combined_threshold): Var deleted.
1983         (gc_relative_threshold): New variable.
1984         (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
1985         instead of gc_cons_combined_threshold.
1987         * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
1988         (gc_cons_combined_threshold): Declaration deleted.
1990 2005-07-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1992         * mac.c: Don't include stdlib.h or string.h.
1993         (Fdo_applescript, Fmac_file_name_to_posix)
1994         (Fmac_file_name_to_posix): Doc fixes.
1995         [TARGET_API_MAC_CARBON] (Fmac_get_preference)
1996         (Fmac_code_convert_string): Likewise.
1997         [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
1998         if the executable is not contained in a bundle.
2000         * macfns.c: Don't include stdlib.h or string.h.  Include atimer.h.
2001         (gray_width, gray_height): Remove defines.
2002         (gray_bits, gray_bitmap_width, gray_bitmap_height)
2003         (gray_bitmap_bits): Remove variables.
2004         (lispy_function_keys): Remove extern.
2005         (free_frame_menubar): Add extern.
2006         (x_window_to_frame): Remove function.
2007         (unwind_create_tip_frame): Add declaration.
2008         (x_set_name_internal): New function.
2009         (x_set_name, x_set_title): Use it.
2010         (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
2011         (Fx_display_pixel_height, Fx_display_planes)
2012         (Fx_display_color_cells, Fx_server_max_request_size)
2013         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
2014         (Fx_display_mm_height, Fx_display_mm_width)
2015         (Fx_display_backing_store, Fx_display_visual_class)
2016         (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
2018         * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
2020         * macselect.c (Fx_own_selection_internal): Follow error conventions.
2021         (Fx_get_selection_internal, Fx_selection_owner_p)
2022         (Fx_selection_exists_p): Doc fixes.
2023         (syms_of_macselect) <selection-converter-alist>: Likewise.
2025 2005-07-21  Juanma Barranquero  <lekktu@gmail.com>
2027         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2029         * ccl.c (Fregister_ccl_program): Fix typos in docstring.
2030         (Fccl_execute_on_string): Likewise; add usage info.
2032         * composite.c (Fcompose_region_internal)
2033         (Fcompose_string_internal):
2034         Improve argument/docstring consistency.
2036         * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
2037         Fix typos in docstrings.
2039         * textprop.c (Fnext_char_property_change)
2040         (Fprevious_char_property_change): Doc fixes.
2042         * window.c (Fset_window_margins, Fset_window_fringes):
2043         Improve argument/docstring consistency.
2045         * xfaces.c (Finternal_lisp_face_p): Doc fix.
2047 2005-07-21  Andreas Schwab  <schwab@suse.de>
2049         * eval.c (restore_stack_limits): Return a value.
2051 2005-07-20  Juanma Barranquero  <lekktu@gmail.com>
2053         * eval.c (Fdefvar): Doc fix.
2055 2005-07-20  Kim F. Storm  <storm@cua.dk>
2057         * fileio.c (Fdo_auto_save, do_auto_save_unwind):
2058         Use make_save_value to unwind protect stream.
2060         * lread.c (Fload, load_unwind):
2061         Use make_save_value to unwind protect stream.
2063 2005-07-19  Juanma Barranquero  <lekktu@gmail.com>
2065         * eval.c (Fprog2, Fcalled_interactively_p),
2066         (syms_of_eval) <debug-on-quit>: Doc fixes.
2067         (syms_of_eval) <max-specpdl-size>:
2068         (Finteractive_p): Fix typos in docstrings.
2070 2005-07-19  Kim F. Storm  <storm@cua.dk>
2072         * w32fns.c (Vx_hand_shape): Variable removed.
2073         (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
2075 2005-07-19  Kenichi Handa  <handa@m17n.org>
2077         * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
2079 2005-07-18  Stefan Monnier  <monnier@iro.umontreal.ca>
2081         * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
2083 2005-07-18  Kim F. Storm  <storm@cua.dk>
2085         * frame.h (struct frame): New member already_hscrolled_p.
2087         * xdisp.c (redisplay_internal): Only try to hscroll each frame once
2088         to avoid redisplay looping hscrolling back and forth ad infinitum.
2090 2005-07-18  Juri Linkov  <juri@jurta.org>
2092         * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
2093         * keymap.c (Fminor_mode_key_binding):
2094         * macterm.c (mac-emulate-three-button-mouse):
2095         Delete duplicate duplicate words.
2097 2005-07-18  Ken Raeburn  <raeburn@gnu.org>
2099         * minibuf.c (Ftest_completion): Fix odd syntax in test.
2101 2005-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2103         * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
2105         * macgui.h (struct _XGC): New struct.
2106         (GC): Use it.
2107         (GCForeground, GCBackground, GCFont): Use X11 mask values.
2108         (XCreateGC, XParseGeometry): Move externs to macterm.h.
2110         * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
2111         (XSetFont): Add declaration.
2112         (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
2113         Remove functions.
2114         (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
2115         New defines.
2116         (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
2117         (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
2118         (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
2119         Use them.
2120         (mac_erase_rectangle): New function.
2121         (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
2122         (x_draw_stretch_glyph_string): Use it.
2123         (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
2124         (XSetBackground, XSetFont): Adjust for new GC implementation.
2125         (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
2126         (XTset_vertical_scroll_bar): Clear area under scroll bar.
2128         * macterm.h (struct mac_display_info): Change types of
2129         scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
2130         (XCreateGC, XParseGeometry): Move externs from macgui.h.
2132         * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
2134 2005-07-16  Richard M. Stallman  <rms@gnu.org>
2136         * buffer.c (Fmake_overlay): Doc fix.
2138 2005-07-16  Eli Zaretskii  <eliz@gnu.org>
2140         * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
2141         Vw32_valid_locale_ids, and Vw32_valid_codepages.
2143 2005-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2145         * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
2146         Use Fstring_as_unibyte instead of string_make_unibyte.
2148 2005-07-15  Richard M. Stallman  <rms@gnu.org>
2150         * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
2152 2005-07-15  Kim F. Storm  <storm@cua.dk>
2154         * xdisp.c: Fix redisplay loop in last change.
2155         (IT_POS_VALID_AFTER_MOVE_P): New macro.
2156         (move_it_vertically_backward, move_it_by_lines): Use it.
2158 2005-07-14  Jason Rumney  <jasonr@gnu.org>
2160         * w32.c (init_environment): Default HOME directory to user's
2161         appdata directory if possible.
2163 2005-07-14  Kim F. Storm  <storm@cua.dk>
2165         * .gdbinit (pitx): Fix output format.  Print string charpos.
2167         * lread.c (syms_of_lread): Initialize seen_list.
2169         * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
2171         * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
2172         Staticpro re_match_object.
2174 2005-07-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2176         * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
2177         dereference.
2179         * macterm.c (mac_window_to_frame): Remove duplicate define.
2181 2005-07-14  Kenichi Handa  <handa@m17n.org>
2183         * coding.c (code_convert_region_unwind): ARG is changed to a cons.
2184         (code_convert_region): Adjust for the above change.
2185         (set_conversion_work_buffer): If the work buffer is already in
2186         use, generate a new buffer and return it.  Otherwise return Qnil.
2187         (run_pre_post_conversion_on_str): Adjust for the above change.
2188         (run_pre_write_conversin_on_c_str): Likewise.
2190 2005-07-13  Kim F. Storm  <storm@cua.dk>
2192         * xdisp.c (start_display): Don't reseat to next visible line start
2193         if current start position is in a string or image.
2194         (move_it_vertically_backward): Be sure to move out of strings and
2195         images when moving it2 forward.
2196         (move_it_by_lines): When moving forward, move to next buffer
2197         position if we end up in a string or image.  When moving backward,
2198         count rows moved over when moving to start of current row in case
2199         row starts in middle of a string or image.  Also move further
2200         backward if we end up in a string or image.
2201         (try_cursor_movement): If overlay string spans multiple lines,
2202         move backward to set cursor on start of an overlay string.
2203         (cursor_row_p): Row is ok if cursor is at newline from string, but
2204         string starts on this line (so we always position cursor at start
2205         of string).
2207         * indent.c (Fvertical_motion): If start position is on an image,
2208         don't move back if we move too far (that's almost certain to happen).
2210         * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
2211         row in minibuffer windows.
2212         (try_window): Don't check margins in minibuffer windows.
2214 2005-07-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2216         * macterm.c: Don't include stdlib.h or composite.h.
2217         (x_use_underline_position_properties, last_mouse_press_frame)
2218         (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
2219         (syms_of_macterm, mac_initialize): Don't initialize them.
2220         (waiting_for_input, initial_argv, initial_argc)
2221         (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
2222         (set_frame_menubar, path_from_vol_dir_name): Remove externs.
2223         (extra_keyboard_modifiers): Fix type in extern.
2224         (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
2225         (x_scroll_bar_report_motion): Add argument types to declaration.
2226         (mac_compute_glyph_string_overhangs): Add declaration.
2227         (disable_mouse_highlight): Remove unused variable.
2228         [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
2229         (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
2230         (x_scroll_bar_handle_drag): Remove argument `timestamp'.
2231         All callers changed.
2232         [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
2233         timestamp.
2234         [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
2235         (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
2236         only when its width is less than the height.
2237         (XTredeem_scroll_bar): Sync with xterm.c.
2238         (font_name_table, font_name_table_size, font_name_count):
2239         Make static.
2240         (drag_and_drop_file_list): Remove variable.  Previous use is now
2241         local to function.
2242         (do_ae_open_documents): Move DRAG_N_DROP event construction part
2243         from XTread_socket.
2244         (XTread_socket): Consolidate setting of event timestamp.
2245         Move DRAG_N_DROP event construction part to do_ae_open_documents.
2246         Support extra_keyboard_modifiers.
2248         * xfaces.c (try_font_list) [MAC_OS]: Try font family name
2249         beginning with that for ASCII.
2251 2005-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2253         * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
2254         (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
2255         (syms_of_alloc): Declare gc-cons-percentage.
2257         * eval.c (Feval, Ffuncall):
2258         * keyboard.c (read_char):
2259         * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
2261         * lisp.h (gc_cons_combined_threshold): Declare.
2263 2005-07-12  Kim F. Storm  <storm@cua.dk>
2265         * coding.c (Qprocess_argument):
2266         * coding.h (Qprocess_argument): Remove unused var.
2268         * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
2270 2005-07-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2272         * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
2273         Endian.h.
2274         [!MAC_OSX] (fchmod, fchown): New functions.
2275         (mac_get_code_from_arg): Don't accept Lisp integer as argument.
2276         Use SBYTES and EndianU32_BtoN.
2277         (mac_get_object_from_code): Return 4 byte string even if argument
2278         is 0.  Use make_unibyte_string and EndianU32_NtoB.
2279         (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
2280         (Fmac_set_file_type): Fix documents and argument declarations.
2281         Don't specify kFSCatInfoNodeFlags.  Support Mac OS Classic.
2283 2005-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
2285         * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
2287 2005-07-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2289         * xfaces.c (x_update_menu_appearance): Use fontSet resource for
2290         Lucid if X_I18N, font otherwise.
2292 2005-07-10  Steven Tamm  <steventamm@mac.com>
2294         * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
2295         (Fmac_set_file_type, Fmac_set_file_creator): Add.
2296         (mac_get_object_from_code, mac_get_code_from_arg): Add.
2298 2005-07-10  Richard M. Stallman  <rms@gnu.org>
2300         * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
2301         (syms_of_lread): Set up eval-buffer-list.
2302         (Feval_buffer, Feval_region): Bind eval-buffer-list.
2304 2005-07-08  Richard M. Stallman  <rms@gnu.org>
2306         * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
2308 2005-07-08  Kim F. Storm  <storm@cua.dk>
2310         * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
2311         (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
2313 2005-07-07  Kim F. Storm  <storm@cua.dk>
2315         * window.c (Frecenter): Fix last change (set iarg before use).
2317 2005-07-06  Richard M. Stallman  <rms@gnu.org>
2319         * window.c (Frecenter): When arg is inside the scroll margin,
2320         move it out of the margin.
2322 2005-07-06  Jason Rumney  <jasonr@gnu.org>
2324         * w32console.c (initialize_w32_display): Detect when the console
2325         dimensions are insane, and default to 80x25 instead.
2326         (w32_use_full_screen_buffer): Default to NIL.
2328 2005-07-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2330         * macterm.c (mac_draw_vertical_window_border): Use foreground of
2331         VERTICAL_BORDER_FACE_ID for vertical border line.
2332         (mac_encode_char): Call check_ccl_update in advance.
2333         (mac_to_x_fontname, x_font_name_to_mac_font_name)
2334         (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
2335         Don't assume that font family length is less than 32.
2336         (x_compute_min_glyph_bounds): Make static.
2337         (x_load_font): Never set fonts_changed_p to zero.
2339 2005-07-04  Lute Kamstra  <lute@gnu.org>
2341         * Update FSF's address in GPL notices.
2343 2005-07-03  Richard M. Stallman  <rms@gnu.org>
2345         * xdisp.c (try_window): Fix previous change in how it handles
2346         a partially-visible line or one only partly past the margin.
2348         * window.c (window_scroll_pixel_based): Take account
2349         of this_scroll_margin when finding point when scrolling up.
2351 2005-06-29  Ralf Angeli  <angeli@iwi.uni-sb.de>
2353         * window.c (window_scroll_pixel_based, window_scroll_line_based):
2354         Handle `scroll-preserve-screen-position' non-nil, non-t specially.
2355         (syms_of_window): <scroll-preserve-screen-position>: Doc fix.
2357 2005-07-02  Juri Linkov  <juri@jurta.org>
2359         * w32term.c (w32_draw_vertical_window_border): Use foreground of
2360         VERTICAL_BORDER_FACE_ID for vertical border line.
2362 2005-07-02  Eli Zaretskii  <eliz@gnu.org>
2364         * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
2365         fchmod so that chmod doesn't get called on MSDOS before the file
2366         is closed.
2368 2005-07-01  Jason Rumney  <jasonr@gnu.org>
2370         * w32term.c (cleartype_active): New flag for enabling sub-pixel
2371         workaround.
2372         (w32_initialize): Initialize it.
2373         (w32_native_per_char_metric): Allow a couple of extra pixels when
2374         Cleartype is active.
2376         * w32term.c (w32_initialize): Move check for screen reader here
2377         from syms_of_w32term.
2379 2005-06-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2381         * xterm.c (handle_one_xevent): bzero compose_status when nbytes
2382         is not zero.
2384 2005-07-01  Masatake YAMATO  <jet@gyve.org>
2386         * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
2388 2005-06-30  Juri Linkov  <juri@jurta.org>
2390         * xdisp.c (x_draw_vertical_border): If left fringe is not present
2391         decrease x coord of vertical border by 1 pixel to not occupy text
2392         area of the right window.
2394         * xterm.c (x_draw_vertical_window_border): Use foreground of
2395         VERTICAL_BORDER_FACE_ID for vertical border line.
2397         * term.c (turn_on_face): In standout mode apply specified
2398         fg to bg, and specified bg to fg (this makes the logic of
2399         inversion on terminal consistent with X).
2401 2005-06-29  Juanma Barranquero  <lekktu@gmail.com>
2403         * eval.c (user_variable_p_eh): New function.
2404         (Fuser_variable_p): Use it.  Clarify docstring.
2405         Return t for aliases of user options, nil for alias loops.
2407 2005-06-27  Richard M. Stallman  <rms@gnu.org>
2409         * eval.c (Fdefvar): Improve error message.
2411 2005-06-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2413         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
2414         change.
2416 2005-06-27  Juanma Barranquero  <lekktu@gmail.com>
2418         * eval.c (Fdefvar): Don't try to set constant symbols.
2420 2005-06-25  Richard M. Stallman  <rms@gnu.org>
2422         * macfns.c (Fx_show_tip): Pass new arg to try_window.
2424         * w32fns.c (Fx_show_tip): Pass new arg to try_window.
2426         * xfns.c (Fx_show_tip): Pass new arg to try_window.
2428         * xdisp.c (try_window): New arg CHECK_MARGINS.  Calls changed.
2429         (redisplay_window): Handle try_window reporting point in scroll margin.
2431         * dispextern.h (try_window): Declare new arg.
2433         * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
2434         Use fchmod to copy the file modes.
2435         (Frename_file): Don't copy UID and GID here;
2436         instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
2438         * eval.c (call_debugger): Take full care of extending stack limits
2439         to make space for the debugger, and restore the change afterward.
2440         Bind debug-on-error to nil.
2441         (restore_stack_limits): New subroutine.
2442         (Fsignal): Extend specpdl bound along with eval depth bound,
2443         for calling edebug.  Don't do either one, for calling debugger.
2444         (find_handler_clause): Don't bind debug-on-error here.
2445         Don't unbind anything either.
2446         Temporarily advance max_specpdl_size for calling
2447         internal_with_output_to_temp_buffer.
2448         (grow_specpdl): Don't alter max_specpdl_size before signaling
2449         an error.
2450         (syms_of_eval) <max-specpdl-size>: Doc fix.
2452         * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
2454 2005-06-24  Eli Zaretskii  <eliz@gnu.org>
2456         * fileio.c (Frename_file): Undo last change: no need to ifdef away
2457         chown on DOS_NT platforms.
2459         * w32.c (sys_chown): New function.
2461         * s/ms-w32.h (chown): New; define to sys_chown.
2463 2005-06-24  Juanma Barranquero  <lekktu@gmail.com>
2465         * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
2466         (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
2468         * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
2470 2005-06-23  Richard M. Stallman  <rms@gnu.org>
2472         * xdisp.c (get_next_display_element): Finish reversing the tests of
2473         Vnobreak_char_display.
2475         * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
2476         All uses changed.
2477         (Qnobreak_space): Rename from Qno_break_space.  All uses changed.
2478         (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
2480         * fileio.c (Frename_file): Preserve owner and group, if possible,
2481         when copying.
2483 2005-06-23  Juanma Barranquero  <lekktu@gmail.com>
2485         * abbrev.c (Funexpand_abbrev):
2486         * category.c (Fmake_category_set):
2487         * dispnew.c (Fsleep_for, Fsit_for):
2488         * editfns.c (Fsubst_char_in_region):
2489         * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
2490         * frame.c (make_frame_without_minibuffer):
2491         * lread.c (read_vector):
2492         * macfns.c (check_x_frame):
2493         * process.c (Fstop_process, Fcontinue_process):
2494         * search.c (Freplace_match):
2495         * syntax.c (Fstring_to_syntax):
2496         * w32fns.c (check_x_frame, check_x_display_info):
2497         * xfaces.c (x_supports_face_attributes_p):
2498         * xselect.c (Fx_own_selection_internal): Follow error conventions.
2500         * image.c (fn_png_init_io): Don't define it.
2501         (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
2502         (png_read_from_file): New function, based on png_read_from_memory.
2503         (png_load): Use it, instead of fn_png_init_io.
2505 2005-06-23  Kim F. Storm  <storm@cua.dk>
2507         * search.c (Fmatch_data): Remove evaporate option.
2508         (Fset_match_data): Do not mention evaporate option in doc string.
2509         Add commentary explaining evaporate arg (for internal use only).
2510         (unwind_set_match_data): Add comment on evaporate use.
2512 2005-06-22  Miles Bader  <miles@gnu.org>
2514         * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
2515         (realize_basic_faces, syms_of_xfaces): Update references to it.
2516         * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
2517         to `VERTICAL_BORDER_FACE_ID'.
2518         * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
2520 2005-06-21  Juri Linkov  <juri@jurta.org>
2522         * dispextern.h: Add extern Qframe_set_background_mode.
2524         * xfaces.c: Rename obsolete function Qframe_update_face_colors to
2525         Qframe_set_background_mode.
2527         * frame.c (Fmodify_frame_parameters):
2528         Call frame-set-background-mode after changing the background color
2529         on non-window non-dos branch.
2531 2005-06-21  Juanma Barranquero  <lekktu@gmail.com>
2533         * fns.c (Fchar_table_range):
2534         * process.c (Fmake_network_process): Fix spellings.
2536 2005-06-20  Kim F. Storm  <storm@cua.dk>
2538         * fns.c (Fsort): Doc fix.
2540 2005-06-20  Miles Bader  <miles@gnu.org>
2542         * xfaces.c (Qvertical_divider): New variable.
2543         (realize_basic_faces): Realize its face.
2544         (syms_of_xfaces): Initialize it.
2546         * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
2548         * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
2549         window-separator on ttys using `vertical-divider' face by default.
2551 2005-06-17  Richard M. Stallman  <rms@gnu.org>
2553         * xdisp.c (get_next_display_element):
2554         Reverse test of Vshow_nonbreak_escape.
2556         * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
2557         (Ftty_no_underline): New function.
2558         (syms_of_term): defsubr it.
2560         * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
2562         * dispnew.c (spec_glyph_lookup_face): New function.
2563         (build_frame_matrix_from_leaf_window): Use it.
2565         * dispextern.h (spec_glyph_lookup_face): Add declaration.
2567         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2569 2005-06-12  Richard M. Stallman  <rms@gnu.org>
2571         * keyboard.c (read_char): After catching a longjmp,
2572         call restore_getcjmp.
2574 2005-06-17  Juanma Barranquero  <lekktu@gmail.com>
2576         * xselect.c (lisp_data_to_selection_data): Fix spelling.
2578 2005-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2580         * macterm.c (mac_compute_glyph_string_overhangs): Don't set
2581         overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
2582         [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
2583         events.
2584         (XTread_socket): Don't pass keyboard events with the option
2585         modifier to the system when Vmac_command_key_is_meta is nil or
2586         Vmac_option_modifier is non-nil.
2587         [USE_CARBON_EVENTS] (read_socket_inev): New variable.
2588         [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
2589         [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
2590         handler function.
2591         (install_window_handler) [USE_CARBON_EVENTS]: Install it.
2592         (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
2593         handler part to mac_handle_mouse_event.
2595 2005-06-14  Juanma Barranquero  <lekktu@gmail.com>
2597         * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
2598         NEW-ALIAS and BASE-VARIABLE, respectively.
2600 2005-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2602         * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
2603         (get_phys_cursor_geometry, format_mode_line_unwind_data)
2604         (get_line_height_property, x_produce_glyphs): Remove unused vars.
2606         * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
2608 2005-06-13  Eli Zaretskii  <eliz@gnu.org>
2610         * w32term.c (x_use_underline_position_properties): New variable.
2611         (x_draw_glyph_string): Remind in a comment to change doc string of
2612         x-use-underline-position-properties if/when underline positioning
2613         is implemented.
2614         (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
2615         and initialize it to nil.
2617 2005-06-12  Jason Rumney  <jasonr@gnu.org>
2619         * w32fns.c (NEWOPENFILENAME): New struct.
2620         (Fx_file_dialog): Use it to trick the system into giving us up to
2621         date dialogs on systems that are documented to support it.
2622         Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
2624 2005-06-12  Eli Zaretskii  <eliz@gnu.org>
2626         * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
2627         MB_ABORTRETRYIGNORE.  Never return, even if DebugBreak does.
2629 2005-06-11  Eli Zaretskii  <eliz@gnu.org>
2631         * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
2632         to CreateDIBSection to avoid a compiler warning.
2633         (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
2634         warning.
2635         (png_load): Cast return values of fn_png_create_read_struct and
2636         fn_png_create_info_struct, to avoid compiler warnings on W32.
2637         Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
2638         to avoid compiler warnings.
2639         (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
2640         compiler warning on W32.  Cast 3rd arg to IMAGE_BACKGROUND to
2641         avoid a compiler warning.
2642         (tiff_load): Cast return values of fn_TIFFOpen and
2643         fn_TIFFClientOpen to avoid compiler warning on W32.  Cast 3rd arg
2644         to IMAGE_BACKGROUND to avoid a compiler warning.
2645         (gif_load): Cast return values of fn_DGifOpenFileName and
2646         fn_DGifOpen to avoid compiler warnings on W32.  Cast 3rd arg to
2647         IMAGE_BACKGROUND to avoid a compiler warning.
2648         (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
2649         before redefining.
2651         * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
2652         the call to CreateDIBSection, to avoid a compiler warning.
2654 2005-06-11  Jason Rumney  <jasonr@gnu.org>
2656         * w32fns.c (Fx_file_dialog): Unblock input before falling back to
2657         minibuffer.
2658         * macfns.c (Fx_file_dialog): Likewise.
2660 2005-06-10  Eli Zaretskii  <eliz@gnu.org>
2662         * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
2664 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
2666         * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
2667         * w32fns.c (syms_of_w32fns): Fix spellings.
2669 2005-06-10  Eli Zaretskii  <eliz@gnu.org>
2671         * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
2672         `verbose'; print diagnostic messages only if it is non-zero.
2673         All callers changed to pass a zero value unless DEBUG_DUMP is defined
2674         in the environment.
2675         (copy_executable_and_dump_data): Print section names with %.8s.
2677 2005-06-10  Masatake YAMATO  <jet@gyve.org>
2679         * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
2680         when mouse_face is not given.
2682 2005-06-09  Luc Teirlinck  <teirllm@auburn.edu>
2684         * window.c (Fselect_window): Adapt call to Fselect_frame.
2686         * lisp.h: Update EXFUN of Fselect_frame.
2688         * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
2690         * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
2691         no_enter.
2692         (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
2693         Adapt to above change.
2695 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
2697         * fns.c (Fmemq, Fmaphash): Doc fixes.
2699 2005-06-09  Juanma Barranquero  <lekktu@gmail.com>
2701         * xfaces.c (Fdisplay_supports_face_attributes_p):
2702         Fix typo in docstring.
2704 2005-06-08  Steven Tamm  <steventamm@mac.com>
2706         * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
2707         used by gcc4 on intel mac.
2709 2005-06-09  Kim F. Storm  <storm@cua.dk>
2711         * search.c (Fmatch_data): Add optional RESEAT arg.  Unchain markers
2712         in REUSE list if non-nil; free them if equal to evaporate.
2713         (Fset_match_data): Add optional RESEAT arg.  Unchain markers in LIST
2714         if non-nil; free them if equal to evaporate.  Use XCAR/XCDR.
2715         (restore_search_regs): Rename from restore_match_data.  Uses changed.
2716         (unwind_set_match_data): New function.
2717         (record_unwind_save_match_data): New function like save-match-data.
2719         * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
2720         (record_unwind_save_match_data): Add prototype.
2721         (restore_search_regs): Rename from restore_match_data.
2723         * composite.c (compose_chars_in_text):
2724         * eval.c (do_autoload):
2725         * macmenu.c (set_frame_menubar):
2726         * process.c (read_process_output, exec_sentinel):
2727         * xmenu.c (set_frame_menubar):
2728         * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
2729         * w32menu.c (set_frame_menubar):
2730         Use record_unwind_save_match_data.
2732 2005-06-08  Richard M. Stallman  <rms@gnu.org>
2734         * xdisp.c (get_next_display_element): Alter previous change:
2735         Distinguish Vshow_nonbreak_escape = t or not t.
2736         For t, use escape_glyph once again, as before previous change.
2737         Use space or hyphen for display, instead of the non-ASCII char.
2738         (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
2740         * process.c (Fstart_process): Don't touch command_channel_p slot.
2742         * process.h (struct process): Delete command_channel_p.
2744 2005-06-07  Masatake YAMATO  <jet@gyve.org>
2746         * xdisp.c (note_mode_line_or_margin_highlight):
2747         Check the overlapping of re-rendering area to avoid flickering.
2748         (note_mouse_highlight): Call clear_mouse_face if PART
2749         is not ON_MODE_LINE nor ON_HEADER_LINE.
2751 2005-06-07  Kim F. Storm  <storm@cua.dk>
2753         * process.c: Improve commentary for adaptive read buffering.
2755 2005-06-06  Stefan Monnier  <monnier@iro.umontreal.ca>
2757         * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
2758         if available.
2760 2005-06-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2762         * macmenu.c (menu_quit_handler, install_menu_quit_handler):
2763         New functions for popping down menus on C-g.
2764         (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
2766         * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
2767         non-static.
2769         * config.in: Add HAVE_CANCELMENUTRACKING.
2771 2005-06-06  Eli Zaretskii  <eliz@gnu.org>
2773         * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
2775         * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
2777         * w32proc.c (RVA_TO_PTR): New macro.
2779         * w32heap.c (RVA_TO_PTR): No need to #undef now.
2781         * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
2782         Depend on w32heap.h.
2784 2005-06-06  Luc Teirlinck  <teirllm@auburn.edu>
2786         * keyboard.c (command_loop_1): Update Vthis_original_command.
2788 2005-06-06  Richard M. Stallman  <rms@gnu.org>
2790         * xmenu.c (popup_get_selection): Undo previous change.
2792 2005-06-06  Juri Linkov  <juri@jurta.org>
2794         * xdisp.c (Qno_break_space): New variable.
2795         (syms_of_xdisp): Initialize it.
2796         (get_next_display_element): Add no-break space and soft hypen
2797         codes for iso8859-2 and iso8859-5.  Don't add `\' for them.
2798         Use `no-break-space' face for no-break spaces.
2800 2005-06-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2802         * window.c (delete_window): Handle the case where a h/vchild has
2803         a h/vchild.
2805 2005-06-05  Eli Zaretskii  <eliz@gnu.org>
2807         * w32.c (sys_setsockopt): Change arg 4 to `const void *'.  In the
2808         call to pfn_setsockopt, cast optval to `const char *'.
2810 2005-06-04  Eli Zaretskii  <eliz@gnu.org>
2812         * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
2813         (open_unc_volume): Cast return value of map_w32_filename, to avoid
2814         compiler warnings.
2816         * s/ms-w32.h (fileno): Don't define if already defined.
2818         * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
2820         * makefile.w32-in (DOC): Define to point to the generated DOC-X.
2822 2005-06-04  Richard M. Stallman  <rms@gnu.org>
2824         * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
2826 2005-06-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2828         * macmenu.c (cleanup_popup_menu): New function.
2829         (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
2830         mac_menu_show Quit:s.
2831         (mac_menu_show): Quit on cancel if not popped up on click (i.e.
2832         a dialog).
2834 2005-06-04  Kim F. Storm  <storm@cua.dk>
2836         * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
2838         * callproc.c (Fcall_process): Don't use alloca to gradually
2839         increase size of buf, as it effectively uses twice the necessary
2840         space on the stack.  Instead, pre-allocate buf of full size, and
2841         gradually increase the read size.
2843         * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
2845         * eval.c (unbind_to): Preserve value of Vquit_flag.
2847         * xterm.c (handle_one_xevent): Also ignore mouse motion just
2848         before a button release event.
2850 2005-06-03  Juanma Barranquero  <lekktu@gmail.com>
2852         * xfaces.c (Finternal_lisp_face_equal_p): Really report
2853         on faces in a frame, if the argument FRAME is non-nil.
2854         Improve argument/docstring consistency.
2856 2005-06-02  Kim F. Storm  <storm@cua.dk>
2858         * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
2859         (x_consider_frame_title, Fformat_mode_line): Save offset into
2860         mode_line_noprop_buf rather than pointer, in case buffer is relocated.
2862 2005-06-01  Kim F. Storm  <storm@cua.dk>
2864         * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
2866 2005-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2868         * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
2869         resolution fields for scalable fonts to 0.
2871         * xfaces.c (build_scalable_font_name): Round pixel size to the
2872         nearest integer.
2874 2005-06-01  Kim F. Storm  <storm@cua.dk>
2876         * xdisp.c (display_mode_line): Support nested calls to redisplay
2877         and format-mode-line.  Set mode_line_target to MODE_LINE_DISPLAY.
2879 2005-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
2881         * fileio.c (Finsert_file_contents):
2882         * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
2884 2005-05-31  Kim F. Storm  <storm@cua.dk>
2886         * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
2887         (mode_line_noprop_ptr): Rename from frame_title_*.
2888         (store_mode_line_noprop_char): Rename from store_frame_title_char.
2889         (store_mode_line_noprop): Rename from store_frame_title.
2890         (mode_line_target): New enum to specify current output target
2891         for mode line formatting.
2892         (display_mode_element): Test it rather than frame_title_ptr and
2893         mode_line_string_list to determine where output should go.
2894         (mode_line_proptrans_alist, mode_line_string_alist): Make static.
2895         (Vmode_line_unwind_vector): New variable.
2896         (format_mode_line_unwind_data, unwind_format_mode_line):
2897         New functions for unwind protection in mode line formatting.
2898         (x_consider_frame_title): Use them and new local var 'title_start'
2899         to support nested calls to format-mode-line and redisplay.
2900         Set mode_line_target to MODE_LINE_TITLE.
2901         (Fformat_mode_line): Use them and new local var 'string_start' to
2902         support nested calls to format-mode-line and redisplay.
2903         Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
2904         Don't trim trailing dashes.
2905         (decode_mode_spec): Don't make infinite number of trailing dashes
2906         for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
2907         (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
2908         mode_line_string_face_prop, and Vmode_line_unwind_vector.
2909         (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
2910         Initialize mode_line_target to MODE_LINE_DISPLAY.
2912 2005-05-29  Richard M. Stallman  <rms@gnu.org>
2914         * buffer.c (Fbuffer_local_value): Call indirect_variable.
2916 2005-05-28  Masatake YAMATO  <jet@gyve.org>
2918         * xdisp.c (note_mode_line_or_margin_highlight): Change the
2919         pointer to a hand cursor when hoovering over a mouse-face.
2921 2005-05-27  Kenichi Handa  <handa@m17n.org>
2923         * xterm.c (x_encode_char): Call check_ccl_update in advance.
2925         * ccl.c: Now an element of Vccl_program_table is a vector of
2926         length 4, not 3.
2927         (ccl_get_compiled_code): New arg idx.  Caller changed.
2928         Adjust for the change of Vccl_program_table.
2929         (setup_ccl_program): Adjust for the change of Vccl_program_table.
2930         (check_ccl_update): New function.
2931         (Fregister_ccl_program): Use ASET to set an element of a vector.
2932         Adjusted for the change of Vccl_program_table.
2934         * ccl.h (struct ccl_program): New member idx.
2935         (check_ccl_update): Extern it.
2937 2005-05-27  Juanma Barranquero  <lekktu@gmail.com>
2939         * image.c (Vimage_library_alist): Move from image.el.
2940         (syms_of_image): Defvar it.
2941         (lookup_image_type): Use it.
2943         * buffer.c (Fbuffer_local_value): Make argument name match its use
2944         in docstring.
2946 2005-05-26  Juanma Barranquero  <lekktu@gmail.com>
2948         * keyboard.c (Frecursive_edit): Fix typo in docstring.
2949         (Fposn_at_x_y): Make argument name match its use in docstring.
2951 2005-05-26  Lute Kamstra  <lute@gnu.org>
2953         * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
2955 2005-05-24  Masatake YAMATO  <jet@gyve.org>
2957         * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
2958         as loop sentinels.
2960 2005-05-24  Nick Roberts  <nickrob@snap.net.nz>
2962         * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
2963         select frame title ("Question"/"Information").
2964         (xdialog_show): Use it.
2966         * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
2968         * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
2970         * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
2971         a third argument (Qnil).
2973         * lisp.h: x-popup-dialog can have three arguments.
2975         * editfns.c (Fmessage_box): Use "Information" for frame title.
2977 2005-05-23  Thien-Thi Nguyen  <ttn@gnu.org>
2979         * termcap.c [VMS]: Include <starlet.h>.
2981 2005-05-23  Masatake YAMATO  <jet@gyve.org>
2983         * xdisp.c (note_mode_line_or_margin_highlight): Add code
2984         for mouse-face.  Change the type of the first argument from `window'
2985         to `Lisp_Object'.
2986         (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
2987         window instead of w.
2989 2005-05-22  Andreas Schwab  <schwab@suse.de>
2991         * process.c (send_process): Move misplaced volatile.
2993 2005-05-21  Richard M. Stallman  <rms@gnu.org>
2995         * xdisp.c (display_mode_element): If we're processing a list and
2996         padding is specified, put it after the last element.
2998 2005-05-21  Eli Zaretskii  <eliz@gnu.org>
3000         * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
3001         "superroot" on DOS_NT systems.
3003 2005-05-21  David Hunter  <hunterd42@comcast.net>  (tiny change)
3005         * process.c (send_process): Restore the SIGPIPE handler if we
3006         catch a SIGPIPE.
3008 2005-05-20  Juanma Barranquero  <lekktu@gmail.com>
3010         * image.c (lookup_image, png_read_from_memory): Remove hacks (and
3011         misleading comments).
3012         (DEF_IMGLIB_FN): Use C calling convention for image libraries.
3014 2005-05-20  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
3016         * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
3017         Correct the right value.
3019 2005-05-19  Nick Roberts  <nickrob@snap.net.nz>
3021         * keyboard.c (syms_of_keyboard): Remove Lisp variables
3022         post-command-idle-hook and post-command-idle-delay.
3023         (command_loop_1): Don't try to execute post-command-idle-hook.
3025 2005-05-16  Kim F. Storm  <storm@cua.dk>
3027         * xdisp.c (handle_display_prop): Handle empty replacement.
3028         (handle_single_display_spec): Return -1 for empty replacement.
3030         * keyboard.c (adjust_point_for_property): Skip empty overlay string.
3032         * .gdbinit (pitx): Print more info about iterator.
3034 2005-05-16  Andreas Schwab  <schwab@suse.de>
3036         * unexmacosx.c (unexec_realloc): Move declarations before statements.
3038 2005-05-14  Richard M. Stallman  <rms@gnu.org>
3040         * xdisp.c (message3): Call cancel_echoing.
3042         * alloc.c (Fmemory_full_p): New function.
3043         (syms_of_alloc): defsubr it.
3045         * process.c (send_process_trap): Unblock SIGPIPE.
3046         (send_process): Reset SIGPIPE handler before reporting error.
3048 2005-05-14  Nick Roberts  <nickrob@snap.net.nz>
3050         * emacs.c (syms_of_emacs): Fix doc string for system-type.
3052 2005-05-13  Richard M. Stallman  <rms@gnu.org>
3054         * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
3055         (Finsert_file_contents): If we read 0 bytes from a special file,
3056         unlock the visited file if we locked it.
3057         (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
3058         (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
3060 2005-05-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3062         * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
3064         * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
3065         Regard toolkit scroll bar thumb drag events as squeezable and prevent
3066         redisplay from being paused by them.
3068         * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
3069         [!MAC_OSX] (target_ticks): Remove variable.
3070         [!MAC_OSX] (check_alarm, pause, index): Remove functions.
3071         [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
3072         [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
3073         event occurs before timeout, behave as if the function were interrupted.
3074         [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
3075         handling using Time Manager routines.
3076         [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
3077         New variables.
3078         [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
3079         (setitimer): New functions.
3081         * macfns.c, macmenu.c: Don't include signal.h.
3083         * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
3084         Rename from get_control_part_bound.  All callers changed.
3085         (x_scroll_bar_clear): New function.
3086         (x_clear_frame): Use it.
3087         (XTset_vertical_scroll_bar): Don't call Draw1Control.
3088         (x_scroll_bar_handle_click): Change type of second argument from
3089         int to ControlPartCode.
3090         (check_alarm): Remove declaration.
3091         (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
3092         (XTread_socket): Use ControlPartCode instead of SInt16.
3094 2005-05-13  Nozomu Ando  <nand@mac.com>
3096         * unexmacosx.c: Include assert.h.
3097         (MACOSX_MALLOC_MULT16): New define.
3098         [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
3099         ptr is in unexec regions by checking it is multiple of 16.
3100         (unexec_malloc_header_t): New typedef.
3101         (unexec_malloc, unexec_realloc, unexec_free): Store and use
3102         allocated size information in unexec_malloc_header.
3104 2005-05-10  Richard M. Stallman  <rms@gnu.org>
3106         * xterm.c (noinclude): Add #undef.
3108         * image.c, xfns.c, xmenu.c: Don't include signal.h.
3110 2005-05-09  Juanma Barranquero  <lekktu@gmail.com>
3112         * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
3113         (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
3114         Doc fixes.
3116         * dired.c (Ffile_name_completion): Make argument name
3117         match its use in docstring.
3119 2005-05-08  Luc Teirlinck  <teirllm@auburn.edu>
3121         * eval.c (Fdefvaralias): Remove any pre-existing
3122         variable-documentation property of the alias.
3124 2005-05-07  Thien-Thi Nguyen  <ttn@gnu.org>
3126         * xfns.c (start_hourglass): Do nothing when running on a tty.
3128 2005-05-07  Juanma Barranquero  <lekktu@gmail.com>
3130         * fns.c (Fchar_table_range): Fix typos in docstring.
3132 2005-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
3134         * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
3136 2005-05-06  Eli Zaretskii  <eliz@gnu.org>
3138         * lread.c (Flocate_file_internal): Doc fix.
3140         * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
3142 2005-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3144         * macselect.c (x_own_selection): Accept Lisp string as result of
3145         selection converter function.
3146         (x_clear_frame_selections): Don't call x-lost-selection-functions
3147         if Emacs is not owner of the selection.
3148         (Vmac_services_selection): Put variable and initialization in
3149         #ifdef MAC_OSX.
3150         (syms_of_macselect) [MAC_OSX]: Set default value of
3151         Vmac_services_selection to PRIMARY.
3153         * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
3154         (mac_handle_tool_bar_click): Remove unused function and declaration.
3155         [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
3156         (install_scroll_bar_timer, set_scroll_bar_timer)
3157         (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
3158         (get_control_part_bound, x_scroll_bar_handle_press)
3159         (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
3160         (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
3161         [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
3162         (scroll_bar_timer_event_posted_p): New variables.
3163         [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
3164         (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
3165         (x_scroll_bar_create): Set control reference with NewControl.
3166         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
3167         Initialize track_top and track_height to nil.
3168         (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
3169         Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
3170         (XTset_vertical_scroll_bar): Don't make space between scroll bar
3171         and associated window.
3172         (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
3173         from window config.
3174         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3175         Set track_top and track_height to nil when scroll bar size is changed.
3176         Recalculate them if they are nil.
3177         (XTread_socket) [MAC_OSX]: Use control kind to determine if the
3178         clicked control is a scroll bar.
3179         (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
3180         event handler functions.  Don't add modifiers to scroll bar click
3181         events.  Call scroll bar release handler when window is deactivated.
3182         (mac_initialize): Remove unused code for X toolkit.
3183         (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
3184         Initialize Vx_toolkit_scroll_bars to nil.
3186         * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
3187         New members track_top and track_height.
3189         * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
3190         init_process when including sys/select.h.
3192 2005-05-05  Luc Teirlinck  <teirllm@auburn.edu>
3194         * eval.c (Fdefvaralias): Doc fix.
3196         * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
3198 2005-05-05  Kim F. Storm  <storm@cua.dk>
3200         * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
3201         default value.
3202         (syms_of_buffer): Add default-cursor-in-non-selected-windows.
3203         Fix type of cursor-in-non-selected-windows.
3205 2005-05-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3207         * mac.c: #undef init_process so not to conflict with system headers.
3209 2005-05-02  Richard M. Stallman  <rms@gnu.org>
3211         * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
3213         * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
3215         * xdisp.c (Vcursor_in_non_selected_windows)
3216         (Qcursor_in_non_selected_windows): Vars deleted.
3217         (syms_of_xdisp): Don't initialize them.
3218         (get_window_cursor_type): Use cursor_in_non_selected_windows
3219         buffer slot.
3221 2005-05-02  Kim F. Storm  <storm@cua.dk>
3223         * macros.c (executing_kbd_macro_index): Rename from
3224         executing_macro_index.  All uses changed.
3225         (executing_kbd_macro_iterations): Rename from
3226         executing_macro_iterations.  All uses changed.
3227         (executing_kbd_macro): Rename from executing_macro.
3228         All uses changed.
3229         (syms_of_macros): Rename Lisp var executing-macro-index to
3230         executing-kbd-macro-index.
3232         * xdisp.c (move_it_in_display_line_to): Fix last change.
3234 2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
3236         * xmenu.c (Fx_popup_menu): Doc fix.
3238         * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
3240 2005-05-02  Jason Rumney  <jasonr@gnu.org>
3242         * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
3244 2005-05-02  Nozomu Ando  <nand@mac.com>
3246         * sysselect.h: Fix typo.
3248 2005-05-02  Nick Roberts  <nickrob@snap.net.nz>
3250         * charset.c (Fchars_in_region): Remove as obsolete.
3252 2005-05-01  Kim F. Storm  <storm@cua.dk>
3254         * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
3255         TO_CHARPOS.  This may happen if last glyphs was an image or stretch
3256         glyph.
3258 2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
3260         * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
3262 2005-05-01  Richard M. Stallman  <rms@gnu.org>
3264         * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
3265         If user cancels the menu, quit unless FOR_CLICK.
3267         * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
3268         All uses changed.
3269         (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
3270         * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
3271         * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
3272         * commands.h (Vexecuting_kbd_macro): Likewise.
3274 2005-05-01  Thien-Thi Nguyen  <ttn@gnu.org>
3276         * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
3278 2005-04-30  Richard M. Stallman  <rms@gnu.org>
3280         * fileio.c (Ffind_file_name_handler): Handle the `operations'
3281         property of the file name handler.
3282         (Qoperations): New variable.
3283         (syms_of_fileio): Initialize and staticpro it.
3285         * xdisp.c (set_message_1): Delete xassert.
3287 2005-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3289         * mac.c: Don't include time.h.  Include sysselect.h after systime.h.
3291         * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
3293         * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
3294         before/after including Carbon.h if there is a working mktime.
3296 2005-04-28  Kim F. Storm  <storm@cua.dk>
3298         * xfaces.c (resolve_face_name): Add arg SIGNAL_P.  Calls changed.
3299         Fix cyclic alias check.  If alias loop is detected, signal
3300         circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
3302 2005-04-28  Lute Kamstra  <lute@gnu.org>
3304         * eval.c (do_autoload): Record only autoloads in the autoload
3305         property of symbols.
3307 2005-04-28  Nick Roberts  <nickrob@snap.net.nz>
3309         * emacs.c (USAGE1): Add --basic-display and --quick options.
3311 2005-04-27  Kim F. Storm  <storm@cua.dk>
3313         * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
3315 2005-04-26  Richard M. Stallman  <rms@gnu.org>
3317         * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
3318         (syms_of_window): Doc fixes.
3320         * indent.c (Fvertical_motion): Undo previous change.
3322 2005-04-26  Kenichi Handa  <handa@m17n.org>
3324         * fns.c (char_table_range): New function.
3325         (Fchar_table_range): Signal an error if characters in the range
3326         have inconsistent values.  Don't check the parent.
3328 2005-04-25  Kenichi Handa  <handa@m17n.org>
3330         * fontset.c (fontset_set): Fix previous change.
3332 2005-04-24  Richard M. Stallman  <rms@gnu.org>
3334         * indent.c (Fvertical_motion): Bind fontification-functions to nil.
3336 2005-04-24  Eli Zaretskii  <eliz@gnu.org>
3338         * regex.c (re_search_2, re_match_2_internal): Convert second arg
3339         of RE_TRANSLATE to int, to shut up GCC warnings.
3341         * fileio.c (Fcopy_file): Doc fix.
3342         [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
3343         not needed.
3345 2005-04-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3347         * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
3348         (SOME_MACHINE_OBJECTS): Likewise.
3349         (mac.o): Depend on ccl.h.
3350         (macselect.o): New target.
3352         * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
3353         Call syms_of_macselect.
3355         * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
3357         * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
3358         (QCLIPBOARD): Remove variable.
3359         (syms_of_mac): Don't initialize it.
3360         (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
3361         Remove functions.
3362         (syms_of_mac): Don't defsubr them.
3363         [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
3364         (QHFS_plus_D, QHFS_plus_C): New variables.
3365         (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3366         [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
3367         (cfstring_create_normalized): New functions.
3368         [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
3369         (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3371         * macterm.c (handling_window_update, terminate_flag):
3372         Remove variables.
3373         (do_window_update, do_ae_quit_application, XTread_socket):
3374         Don't use them.
3375         (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
3376         [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
3377         (init_service_handler): Move to macselect.c.  Remove declarations.
3378         [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
3379         (Qapplication, Qabout): New variables.
3380         (syms_of_mac): Initialize them.
3381         [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
3382         (Qperform): New variables.
3383         (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
3384         (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
3385         (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
3386         (mac_store_application_menu_event, init_menu_bar): New functions.
3387         [USE_CARBON_EVENTS] (mac_handle_command_event)
3388         (init_command_handler): New functions.
3389         (mac_handle_window_event): Return noErr on window update event.
3390         (do_ae_quit_application): Call mac_store_application_menu_event.
3391         (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
3392         and init_menu_bar.
3394         * macterm.h (x_clear_frame_selections): Add extern.
3396         * macselect.c: New file for selection processing on Mac OS.
3398 2005-04-23  Richard M. Stallman  <rms@gnu.org>
3400         * fileio.c (Fcopy_file): New arg MUSTBENEW.
3401         (Frename_file): Pass new arg to Fcopy_file.
3403         * window.c (window_size_fixed): Variable deleted.
3404         (syms_of_window): Initialize window-size-fixed to nil.
3405         But don't DEFVAR window_size_fixed.
3407 2005-04-23  Andreas Schwab  <schwab@suse.de>
3409         * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
3410         (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
3411         use lib64 instead of lib.
3412         (_LP64) [_ARCH_PPC64]: Define if not defined.
3414 2005-04-23  David Hunter  <hunterd42@comcast.net>  (tiny change)
3416         * s/ms-w32.h (HAVE_PWD_H): Define.
3418 2005-04-22  Kenichi Handa  <handa@m17n.org>
3420         * fns.c (copy_sub_char_table): Explicitly copy the default value
3421         of the sub-chartable.
3423         * fontset.c (fontset_set): When a sub-chartable is created,
3424         explicitly sets the defalt value.
3426 2005-04-22  Kim F. Storm  <storm@cua.dk>
3428         * fns.c (Fplist_get): Replace by Fsafe_plist_get.
3429         (Fsafe_plist_get): Rename to Fplist_get.
3430         (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
3431         (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
3433         * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
3435         * xdisp.c (store_mode_line_string, produce_stretch_glyph)
3436         (note_mode_line_or_margin_highlight, note_mouse_highlight):
3437         Use Fplist_get instead of Fsafe_plist_get.
3439         * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
3441 2005-04-21  Miles Bader  <miles@gnu.org>
3443         * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
3445 2005-04-20  Thien-Thi Nguyen  <ttn@gnu.org>
3447         * sysdep.c: Remove reference to defunct vms-pwd.h.
3448         * dired.c: Likewise.  Also, for pwd.h, use HAVE_PWD_H, not !VMS.
3449         * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
3451         * config.in: Regenerate.
3453 2005-04-20  Kenichi Handa  <handa@m17n.org>
3455         * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
3456         (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
3457         (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
3459         * alloc.c (make_sub_char_table): Argument changed to initial
3460         value of the slots.
3462         * data.c (Faref): Handle special slots used as default values of
3463         ascii, eight-bit-control, eight-bit-control.  Don't ignore a
3464         default value set for a group of characters.
3465         (Faset): Signal an error if IDXVAL is not a valid character code.
3466         Make a sub-chartable with correct initial value.
3468         * fns.c (Fset_char_table_range): Don't set slots used as default
3469         values for ascii, eight-bit-control, eight-bit-graphic.
3470         Don't call Faref with charset-id.
3471         (Fset_char_table_default): Document how to treat normal character
3472         argument.  Handle special slots used as default values of ascii,
3473         eight-bit-control, eight-bit-control.  Make a sub chartable if
3474         necessary.
3476 2005-04-20  Kenichi Handa  <handa@m17n.org>
3478         * search.c (boyer_moore): Fix previous change.
3480 2005-04-19  Kim F. Storm  <storm@cua.dk>
3482         * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
3483         face unless last visible char and first invisible char have the
3484         same face.  Also use default face if saved_face_id is undefined.
3486 2005-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3488         * macgui.h (MacFontStruct): Remove member `fontname'.  Add member
3489         `full_name'.
3490         [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
3491         mac_scriptcode member.
3493         * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
3494         (syms_of_mac): Don't initialize them.
3495         (Vmac_charset_info_alist): New variable.
3496         (syms_of_mac): Defvar it.
3497         (create_text_encoding_info_alist): New function.
3498         (decode_mac_font_name, mac_to_x_fontname)
3499         (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
3500         code the correspondence among XLFD charsets, Mac script codes, and
3501         Emacs coding systems.  Use Vmac_charset_info_alist and result of
3502         create_text_encoding_info_alist instead.
3503         (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
3504         routines also on Mac OS Classic.
3505         (init_font_name_table) [!TARGET_API_MAC_CARBON]:
3506         Use add_font_name_table_entry.
3507         (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
3508         specified.  Derive unspecified scalable fields from specified one.
3509         (x_list_fonts): Consider Valternate_fontname_alist.
3510         (kDefaultFontSize): Change value from 9 to 12.
3511         (XLoadQueryFont): Get decoded font family, font face, and charset
3512         from x_font_name_to_mac_font_name.  Set full name of loaded font.
3513         (mac_unload_font): Free `full_name' member.
3514         (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
3515         NULL.  Copy full_name member of struct MacFontStruct to that of
3516         struct font_info.
3518 2005-04-19  Kim F. Storm  <storm@cua.dk>
3520         * xdisp.c (handle_stop): Set saved_face_id to current face if
3521         selective_display_ellipsis_p so ellipsis will be shown in same
3522         face as preceding text.
3523         (setup_for_ellipsis): Don't set saved_face_id here.
3524         (next_element_from_display_vector): Default to saved_face_id.
3526         * fns.c (Fsafe_get): New function.
3527         (syms_of_fns): Defsubr it.
3529         * lisp.h (Fsafe_get): EXFUN it.
3531         * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
3532         loops in case of bad face property lists.  Limit number of face
3533         alias lookups to 10 (in case of face alias loops).
3535 2005-04-18  Kim F. Storm  <storm@cua.dk>
3537         * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
3538         It replaces the corresponding member from struct window, as a
3539         window may now show multiple overlay arrows.
3540         Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
3542         * dispnew.c (row_equal_p, update_window_line, scrolling_window):
3543         Compare overlay_arrow_bitmap than overlay_arrow_p members.
3545         * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
3546         rather than from window.
3547         (update_window_fringes): Compare overlay_arrow_bitmap rather than
3548         overlay_arrow_p members.
3549         (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
3550         if not default.
3552         * window.h (struct window): Remove member overlay_arrow_bitmap.
3554         * window.c (make_window): Don't initialize overlay_arrow_bitmap.
3556         * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
3557         Calls changed.  Don't check for overlay-arrow-bitmap property here.
3558         (overlay_arrow_at_row): Remove PBITMAP arg.  Instead, if left
3559         fringe is present, return Lisp integer for bitmap (or -1 for default).
3560         Fix value of overlay-arrow-bitmap property to be a symbol, use
3561         lookup_fringe_bitmap to parse it.
3562         (display_line): Change call to overlay_arrow_at_row.  Store integer
3563         return value as overlay bitmap in row rather than window.
3564         Only show overlay arrow if row displays text, or if no other overlay
3565         arrow is seen in window (if overlay marker is at point-max).
3567 2005-04-18  Thien-Thi Nguyen  <ttn@gnu.org>
3569         * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
3571 2005-04-18  Lute Kamstra  <lute@gnu.org>
3573         * lread.c (Vloads_in_progress): Static.
3574         * fns.c (Vloads_in_progress): Remove extern.
3575         (load_in_progress): Add extern.
3576         (Frequire): Use load_in_progress instead of Vloads_in_progress.
3578 2005-04-18  Thien-Thi Nguyen  <ttn@gnu.org>
3580         * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
3582 2005-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3584         * macterm.c (XTread_socket): Don't beep on keyboard input even if
3585         no frame is visible.
3587 2005-04-16  Dan Nicolaescu  <dann@ics.uci.edu>
3589         * term.c (struct keys): Add support for shifted keys.
3591 2005-04-16  Richard M. Stallman  <rms@gnu.org>
3593         * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
3594         (set_message): Call with_echo_area_buffer with WHICH = 0.
3595         (set_message_1): Erase the echo area buffer first thing.
3596         (echo_area_display): Don't clear echo_message_buffer.
3598 2005-04-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3600         * Makefile.in (mac.o): Depend on charset.h and coding.h.
3602         * mac.c: Include charset.h and coding.h.
3603         [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
3604         [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
3605         [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
3607         * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
3609         * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
3611         * macterm.c (x_autoselect_window_p): Remove variable.
3612         (last_window): New variable.
3613         (XTreassert_line_highlight, x_change_line_highlight):
3614         Remove declarations.
3615         (mac_focus_changed, x_detect_focus_change): New functions and
3616         declarations.
3617         (XTextExtents16, front_emacs_window): Remove function.
3618         (mac_focus_frame): New function.
3619         (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
3620         (mac_check_for_quit_char): Use it instead of front_emacs_window.
3621         (x_scroll_bar_report_motion): Obtain window from control owner.
3622         (x_make_frame_invisible): Set window manager size hint.
3623         (do_mouse_moved): Remove function.
3624         (XTread_socket): Move its contents here.  Generate select-window
3625         event on mouse movement if needed.  Use x_detect_focus_change on
3626         activate/deactivate events.  Don't deiconify frame or invalidate
3627         window rectangle when dnd items are dropped.
3628         Don't activate/deactivate root control.
3629         (frame_highlight, frame_unhighlight): Activate/deactivate root
3630         control here.
3631         (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
3633         * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
3634         New extern.
3636 2005-04-15  Luc Teirlinck  <teirllm@auburn.edu>
3638         * Makefile.in: Define new macro TOOLTIP_SUPPORT.
3639         (lisp): Use it.
3640         (SOME_MACHINE_LISP): Add tooltip.
3642 2005-04-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3644         * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
3645         Don't include TextEncodingConverter.h.
3646         (mac_system_script_code, Vmac_system_locale): New variables.
3647         (syms_of_mac): Defvar them.
3648         (mac_get_system_locale): New function.
3650         * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
3651         Use ENCODE_SYSTEM to encode title bar string.
3652         (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
3653         (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
3654         Use CFStringGetSystemEncoding to get system default string encoding.
3656         * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
3657         TextEncodingConverter.h.
3659 2005-04-13  Steven Tamm  <steventamm@mac.com>
3661         * macterm.c (syms_of_macterm): Remove redundant definition of
3662         mac-pass-control-to-system.
3664 2005-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
3666         * window.c (Fset_window_configuration): Be careful when you choose
3667         among several possible points for the new_current_buffer.
3669 2005-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3671         * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
3672         poll_for_input_1.  Set interrupt_input_pending to 1 instead.
3673         (Qlanguage_change) [MAC_OS]: New variable.
3674         (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
3675         (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
3677         * macterm.c (mac_keyboard_text_encoding)
3678         (current_mac_keyboard_text_encoding): Remove variables.
3679         (XTread_socket): Store language-change event if keyboard script change
3680         is detected.  Don't convert input to `mac_keyboard_text_encoding'.
3681         (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
3683         * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
3685 2005-04-10  Richard M. Stallman  <rms@gnu.org>
3687         * emacs.c (standard_args): Rename --bare-bones to --quick.
3688         Add -D aka --basic-display.
3690         * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
3692 2005-04-09  Richard M. Stallman  <rms@gnu.org>
3694         * keymap.c (where_is_internal): Convert a string used as event type
3695         into "(any string)".
3697         * lread.c (Vloads_in_progress): Not static.
3698         * fns.c (Vloads_in_progress): Add extern.
3699         (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
3701 2005-04-09  Thien-Thi Nguyen  <ttn@surf.glug.org>
3703         * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
3705 2005-04-09  Lute Kamstra  <lute@gnu.org>
3707         * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
3708         within the accessible part of the buffer.
3710 2005-04-09  Kim F. Storm  <storm@cua.dk>
3712         * lread.c (readevalloop): Add args START and END as region in
3713         current buffer to read.  Callers changed.
3714         When specified, narrow to this region only when reading,
3715         not during eval.  Track next point to read from during eval.
3716         Also restore point to "real" buffer position before eval.
3717         (Feval_region): Don't save excursion and restriction here, and
3718         don't narrow to region.  Just pass region to readevalloop.
3719         Note: Point is now preserved even when PRINTFLAG is nil.
3721 2005-04-08  Kim F. Storm  <storm@cua.dk>
3723         * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
3725 2005-04-06  Kim F. Storm  <storm@cua.dk>
3727         * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
3729 2005-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3731         * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
3732         (Fmac_get_preference): Doc fix.
3734         * macfns.c (Fx_create_frame, x_create_tip_frame):
3735         Add "fontset-mac" to fallback font/fontsets.
3737 2005-04-04  Kim F. Storm  <storm@cua.dk>
3739         * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
3741         * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
3742         Call it again after autoload.
3744 2005-04-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3746         * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
3747         mallopt.
3749         * ralloc.c (r_alloc_init): Ditto.
3751 2005-04-01  Kenichi Handa  <handa@m17n.org>
3753         * lisp.h (Vascii_upcase_table, Vascii_canon_table)
3754         (Vascii_eqv_table): Extern them.
3756         * casetab.c (set_case_table): If standard is nonzero, setup
3757         Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
3759         * search.c (looking_at_1): Use current_buffer->case_canon_table,
3760         not DOWNCASE_TABLE.
3761         (string_match_1): Likewise.
3762         (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
3763         Vascii_downcase_table.
3764         (fast_string_match_ignore_case): Likewise.
3765         (search_buffer): Fix checking of boyer-moore usability.
3766         (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
3767         No need of tranlating characters in PAT.  Fix calculation of
3768         simple_translate.
3770 2005-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
3772         * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
3773         (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
3774         Use XtNtopShadowPixel and XtNbottomShadowPixel.
3775         (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
3776         really work and that breaks with some versions of Xaw3d.
3778 2005-03-31  Kenichi Handa  <handa@m17n.org>
3780         * coding.c (syms_of_coding): Fix previous change.
3782 2005-03-30  Stefan Monnier  <monnier@iro.umontreal.ca>
3784         * fileio.c (search_embedded_absfilename): Fix last change.
3786 2005-03-25  Kenichi Handa  <handa@m17n.org>
3788         * coding.c (syms_of_coding): Suggest to use set-coding-category in
3789         the docstring of coding-category-list.
3791 2005-03-31  Kim F. Storm  <storm@cua.dk>
3793         * keyboard.c (Qmouse_fixup_help_message): New var.
3794         (syms_of_keyboard): Intern and staticpro it.
3795         (show_help_echo): Apply mouse-fixup-help-message to help string.
3797 2005-03-30  Kim F. Storm  <storm@cua.dk>
3799         * xdisp.c (display_line): Allow multiple overlay arrows in window.
3801 2005-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
3803         * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
3804         (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
3805         (Ffile_name_absolute_p): Use it.
3806         (search_embedded_absfilename): New fun, extracted from
3807         Fsubstitute_in_file_name.  Use file_name_absolute_p.
3808         Free the pw data after use.
3809         (Fsubstitute_in_file_name): Use it.
3810         After cutting a prefix, re-check file-name-handler.
3812 2005-03-26  Lennart Borgman  <lennart.borgman.073@student.lu.se>
3814         * w32term.h (x_output): Add focus_state.
3816         * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
3817         (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
3819 2005-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
3821         * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
3822         Use Fexit_minibuffer.
3823         (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
3825 2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
3827         * dired.c (Ffile_attributes): Add a missing gcpro.
3829         * alloc.c (make_number): The arg can be bigger than `int'.
3830         * lisp.h (make_number): Make prototype more precise.
3832         * process.c, dired.c (Vfile_name_coding_system)
3833         (Vdefault_file_name_coding_system):
3834         * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
3835         (Vdefault_file_name_coding_system): Remove unused declarations.
3837 2005-03-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3839         * xmenu.c (create_and_show_popup_menu): Just remove menu and return
3840         if it failed to pop up (Gnome "show pointer on ctrl" option makes
3841         menus fail to pop up).
3843 2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
3845         * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
3846         Just prepend a backslash without replacing the NBSP by an SPC.
3848 2005-03-22  Kim F. Storm  <storm@cua.dk>
3850         * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
3851         * dispextern.h (lookup_derived_face): Fix prototype.
3852         * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
3854         * xdisp.c (handle_single_display_spec): Derive left-fringe and
3855         right-fringe face from fringe face.
3857         * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
3858         Derive face from fringe face.
3860 2005-03-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3862         * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
3864 2005-03-22  David Kastrup  <dak@gnu.org>
3866         * textprop.c (Fnext_char_property_change)
3867         (Fprevious_char_property_change): Allow marker as limit.
3868         (Fnext_single_char_property_change)
3869         (Fprevious_single_char_property_change): Check that limit is a
3870         number in strings.
3871         (Fnext_single_char_property_change): Coerce position to integer.
3872         (Fprevious_single_char_property_change): Same here.
3874 2005-03-21  Thien-Thi Nguyen  <ttn@gnu.org>
3876         * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
3878 2005-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
3880         * frame.c (Fignore_event): Remove.
3881         (syms_of_frame): Don't defsubr it.
3883         * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
3884         redundant `ignore-event'.
3886 2005-03-19  Eli Zaretskii  <eliz@gnu.org>
3888         * unexec.c (write_segment, unexec): Move these functions to avoid
3889         forward references (which cause errors with "gcc -gcoff").
3891 2005-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3893         * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
3894         that it doesn't become "tooltip".  The specbind is enough.
3896         * xrdb.c (x_load_resources): Use different char *helv when I18N
3897         is present.
3899 2005-03-17  Kenichi Handa  <handa@m17n.org>
3901         * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
3903 2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
3905         * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
3906         Use xic_create_fontsetname even for non-Motif menus.
3907         Don't forget to free the fontsetname.
3909         * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
3911 2005-03-17  Richard M. Stallman  <rms@gnu.org>
3913         * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
3915         * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
3916         (Fmake_symbolic_link): Use G to read the new file name.
3918         * callint.c (Finteractive): Document G option.
3919         (Fcall_interactively): Implement G option.
3921         * buffer.c (buffer_lisp_local_variables): New function,
3922         broken out from Fbuffer_local_variables.
3923         (clone_per_buffer_values): Use buffer_lisp_local_variables.
3925 2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
3927         * xfns.c (xic_create_fontsetname): Add `motif' argument.
3928         Always return a freshly allocated string.
3929         (xic_create_xfontset): Adjust call.
3931         * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
3932         Use xic_create_fontsetname to create a fontset so utf-8 locales work.
3933         (dump_realized_face): Fix warning.
3935         * emacs.c (Fkill_emacs): YAILOM.
3937         * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
3939 2005-03-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3941         * mac.c (HASHKEY_TERMINAL): Remove.
3942         (HASHKEY_MAX_NID): New macro.
3943         (xrm_q_get_resource_1): Rename from xrm_q_get_resource.  Add extra
3944         argument.
3945         (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
3946         (xrm_create_database, xrm_q_put_resource)
3947         (xrm_merge_string_database, xrm_q_get_resource_1)
3948         (xrm_q_get_resource): Change resource database representation so
3949         that it may not use multiple hash tables for a single database.
3950         [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
3952 2005-03-16  Stefan Monnier  <monnier@iro.umontreal.ca>
3954         * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
3956         * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
3957         locale-coding-system, as was already done for WINDOWSNT.
3959         * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
3960         translation for chars in the 0-255 range.
3962 2005-03-16  Lute Kamstra  <lute@gnu.org>
3964         * floatfns.c (Ffloor): Doc fix.
3966 2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3968         * mac.c: Include macterm.h instead of directly including Carbon.h.
3969         [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
3970         (Qarray, Qdictionary): New variables.
3971         (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
3972         [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
3973         [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
3974         [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
3975         in callback for CFDictionaryApplyFunction.
3976         [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
3977         (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
3978         (cfobject_desc_to_lisp, cfdictionary_add_to_list)
3979         (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
3980         [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
3981         (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
3982         (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
3983         (skip_white_space, parse_comment, parse_include_file)
3984         (parse_binding, parse_component, parse_resource_name, parse_value)
3985         (parse_resource_line, xrm_create_database, xrm_q_put_resource)
3986         (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
3987         (xrm_cfproperty_list_to_value, xrm_get_preference_database):
3988         New functions.
3990         * macfns.c (mac_get_rdb_resource): Remove function.
3991         (x_get_string_resource): Use xrm_get_resource.
3993         * macgui.h (XrmDatabase): Typedef to Lisp_Object.
3995         * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
3996         name_list_element.
3997         (mac_make_rdb): Create resource database from preferences and
3998         argument string.
3999         (mac_term_init): Save resource database to cddr part of
4000         name_list_element.
4002         * macterm.h (xrm_merge_string_database, xrm_get_resource)
4003         (xrm_get_preference_database): Add externs.
4004         [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
4005         (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
4006         (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
4008         * process.c (init_process): Change `#ifdef DARWIN' to `#if
4009         defined (DARWIN) || defined (MAC_OSX)'
4011         * s/darwin.h (DARWIN): Don't define.
4013 2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4015         * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
4016         Remove unused variables.
4017         (syms_of_macfns): Don't initialize them.  Likewise for
4018         Qface_set_after_frame_default.  Defvar and initialize
4019         Vx_window_horizontal_drag_shape.
4020         (x_set_mouse_color): Change mouse pointer shape.
4021         (mac_window) [!MAC_OSX]: Create root control.
4022         (Fx_create_frame): Remove initializations of mouse pointer shapes.
4023         (hourglass_started): New function (from xfns.c).
4024         (start_hourglass, cancel_hourglass): Put function body in #ifdef
4025         MAC_OSX.
4026         (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
4027         indicator for each non-tooltip frame if needed, and show it.
4028         (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
4030         * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
4031         Controls.h.  Use ThemeCursor instead of CursHandle.
4033         * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
4034         Remove functions and declarations.
4035         (mac_set_colors): Take argument for saving background color.
4036         All callers changed.
4037         (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
4038         (mac_draw_rectangle, mac_draw_string_common): Save and Restore
4039         background color.
4040         (x_update_end, mac_do_track_drag): Don't reset background color.
4041         (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
4042         Use SetThemeCursor.
4043         (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
4044         indicator control to the upper-right corner of the window.
4045         (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
4046         (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
4047         (do_window_update): Update controls after updating content area.
4048         (mac_handle_window_event): Remove unused extern.
4049         (XTread_socket): Check both control handle and control part code
4050         to determine whether a scroll bar is clicked.  Activate/deactivate
4051         root control instead of contained scroll bar controls.
4052         (make_mac_terminal_frame): Use ThemeCursor constants.
4054         * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
4055         New member hourglass_control.
4056         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
4057         (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
4059 2005-03-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4061         * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
4062         coincides with that in Apple X11 except `clear', `enter' on
4063         laptops, and fn + `enter' on laptops.
4065 2005-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
4067         * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
4068         (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
4069         (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
4071         * xfns.c (xic_defaut_fontset): New constant.
4072         (xic_create_fontsetname): New function.
4073         Extracted from create_frame_xic.  Try to generate a slightly
4074         better fontset.
4075         (xic_create_xfontset): Use it.
4076         (create_frame_xic): Simplify.
4078 2005-03-11  Stefan Monnier  <monnier@iro.umontreal.ca>
4080         * fileio.c (Fmake_symbolic_link): Fix last change.
4082 2005-03-11  Richard M. Stallman  <rms@gnu.org>
4084         * fileio.c (Frename_file, Fadd_name_to_file)
4085         (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
4086         expand the basename of FILE relative to it.
4088 2005-03-11  Kenichi Handa  <handa@m17n.org>
4090         * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
4091         before calling setup_coding_system so that autoloading of a coding
4092         system work.
4094 2005-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4096         * xfns.c (hourglass_started): New function.
4098         * dispextern.h: Declare hourglass_started.
4100         * keyboard.c (Fexecute_extended_command): Restart hourglass
4101         after call to Fcompleting_read if already started.
4103         * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
4104         GTK main loop is entered in xterm.c, thus doing the redraw.
4106 2005-03-10  Kim F. Storm  <storm@cua.dk>
4108         * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
4110 2005-03-08  Kenichi Handa  <handa@m17n.org>
4112         * frame.c (x_set_font): Call set_default_ascii_font if an
4113         available font is found.
4115         * fontset.c (set_default_ascii_font): New function.
4116         (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
4118         * fontset.h (set_default_ascii_font): Extern it.
4120 2005-03-07  Kim F. Storm  <storm@cua.dk>
4122         * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
4123         (clear_image_cache_count): New var.
4124         (redisplay_internal): Don't clear face and image caches in the
4125         middle of redisplay; do it afterwards.
4127         * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
4129         * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
4130         is valid.  If not, clear phys_cursor_on_p and return.
4132 2005-03-07  Andreas Schwab  <schwab@suse.de>
4134         * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
4136 2005-03-06  Richard M. Stallman  <rms@gnu.org>
4138         * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
4140         * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
4141         (Feval, Ffuncall): Use CHECK_CONS_LIST.
4143         * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
4145         * blockinput.h (UNBLOCK_INPUT_TO): New macro.
4146         (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
4148 2005-03-05  Juri Linkov  <juri@jurta.org>
4150         * emacs.c (USAGE1): Replace Info node name "command arguments"
4151         with "emacs invocation".
4152         (USAGE3): Fix usage of `--color=MODE' which actually doesn't
4153         allow arguments `--color' and `MODE' to be separated by space.
4154         Add --no-blinking-cursor, -nbc.
4155         (standard_args): Add -nbc, --no-blinking-cursor.
4157 2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
4159         * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
4160         * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
4161         * fileio.c (Fexpand_file_name) [VMS]:
4162         Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
4163         * doc.c (munge_doc_file_name) [VMS]: Likewise.
4164         (Fsnarf_documentation): Call munge_doc_file_name.
4166 2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
4168         * s/vms.h (FILE_SYSTEM_CASE): New macro.
4169         * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
4170         "manually"; this is now handled generally via FILE_SYSTEM_CASE.
4172 2005-03-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4174         * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
4175         defined (MAC_OSX) && defined (HAVE_CARBON)'.
4177         * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
4179         * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4180         [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
4181         (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
4182         (mac_clear_font_name_table): Move extern to macterm.h.
4184         * macfns.c (install_window_handler): Move extern to macterm.h.
4185         (Fx_file_dialog): Check STRINGP (default_filename) to see it is
4186         valid.  Don't check !NILP (dir) because it is already checked with
4187         CHECK_STRING.
4188         (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
4189         specifying the default location and obtaining the selected filename.
4191         * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
4193         * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
4194         are included via Carbon.h.
4196         * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
4197         Define USE_CARBON_EVENTS to 1.
4198         (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
4199         (x_free_frame_resources): Call remove_window_handler for
4200         non-tooltip windows.
4201         [TARGET_API_MAC_CARBON]: Don't include headers that are included
4202         via Carbon.h.
4203         [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
4204         (mac_do_receive_dragUPP): New variables.
4205         (mac_handle_service_event, init_service_handler): Put declarations
4206         and definitions in #ifdef MAC_OSX.
4207         (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
4208         drag-and-drop handler functions and register them.
4209         (remove_window_handler): New function.
4210         (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
4211         Use fsspec_to_posix_pathname.
4212         (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
4213         (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
4214         [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
4215         Set default cursors.
4216         (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
4217         init_service_handler or init_quit_char_handler.
4218         (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
4220         * macterm.h (install_window_handler, remove_window_handler)
4221         (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
4222         (mac_clear_font_name_table): New externs.
4224 2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
4226         * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
4227         (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
4228         (Fexpand_file_name): Likewise.
4230 2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
4232         * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
4233         no longer special-case VMS.  Add bogus return value.
4235 2005-03-02  Kim F. Storm  <storm@cua.dk>
4237         * dispextern.h (XASSERTS): Define to 0 if not already defined.
4238         (xassert) [!XASSERTS]: Define dummy version.
4240 2005-03-02  Kim F. Storm  <storm@cua.dk>
4242         * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
4243         Reported by David Kastrup.
4245 2005-03-01  Ehud Karni  <ehud@unix.mvs.co.il>
4247         * xdisp.c (get_next_display_element): Fix control and escape
4248         glyph from display vector.
4250 2005-03-01  Stefan Monnier  <monnier@iro.umontreal.ca>
4252         * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
4254 2005-02-27  Richard M. Stallman  <rms@gnu.org>
4256         * xdisp.c (fast_find_position): Rename END to BEG.
4257         (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
4259 2005-02-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4261         * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
4262         gtk_window_resize and x_wm_set_size_hint.
4264 2005-02-25  Kim F. Storm  <storm@cua.dk>
4266         * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
4268         * xdisp.c (init_from_display_pos): Don't read past end of
4269         it->overlay_strings array.
4271 2005-02-25  Stephan Stahl  <stahl@eos.franken.de>  (tiny change)
4273         * buffer.c (syms_of_buffer): Fix typo.
4275 2005-02-23  Lute Kamstra  <lute@gnu.org>
4277         * buffer.c (Foverlay_buffer): Doc fix.
4279 2005-02-22  Kim F. Storm  <storm@cua.dk>
4281         * minibuf.c (Ftry_completion, Fall_completions): Allow both string
4282         and symbol keys in alists and hash tables.
4284         * xdisp.c (fast_find_position): Fix search for start of overlay.
4286 2005-02-21  Kim F. Storm  <storm@cua.dk>
4288         * window.c (window_scroll_pixel_based): When scrolling backwards,
4289         handle partial visible line at end of window even when we hit PT.
4291 2005-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
4293         * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
4295 2005-02-21  Kim F. Storm  <storm@cua.dk>
4297         * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
4298         I think those asserts are bogus if buffer contains invisible text
4299         or images.
4301 2005-02-21  David Kastrup  <dak@gnu.org>
4303         * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
4305 2005-02-20  Kim F. Storm  <storm@cua.dk>
4307         * xdisp.c (pos_visible_p): Be sure to move to the specified
4308         position.  Always get the full ascent / descent of the
4309         corresponding row, to return reliable rtop and rbot values.
4310         (back_to_previous_visible_line_start): Fix 2005-01-18 change.
4311         Must look one character back, as back_to_previous_line_start
4312         returns position after the newline.
4313         (move_it_vertically_backward): Fix heuristic for when to move further
4314         back in case line_height * 2/3 is larger than window height.
4315         (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
4316         as it does not do anything anymore.  Add arg current_matrix_p to
4317         use current matrix rather than desired matrix when set.
4318         (try_cursor_movement): Don't scroll to make cursor row fully
4319         visible if cursor didn't move.  This avoids unexpected recentering
4320         in case of blinking cursor or accepting process output.
4321         Use current matrix to check cursor row visibility.
4322         (redisplay_window): Fix whether to recenter or move to top in case
4323         cursor line is taller than window height.
4324         (find_first_unchanged_at_end_row): Stop search if we reach a row
4325         which not enabled (instead of abort).
4327 2005-02-18  Kim F. Storm  <storm@cua.dk>
4329         * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
4330         to be nil in a :box attribute value list; customize prints that
4331         as lisp value when no box color is specified.
4333         * .gdbinit (pitx, pit): Pretty print display iterator.
4334         (prowx, prow): Pretty print glyph row.
4335         (pcursorx, pcursor): Pretty print a window cursor.
4336         (pwinx, pwin): Pretty print struct window.
4338 2005-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
4340         * alloc.c (BLOCK_BYTES): Harmless typo.
4342 2005-02-17  Andreas Schwab  <schwab@suse.de>
4344         * xfns.c (hack_wm_protocols): Use correct type for last parameter
4345         of XGetWindowProperty to avoid aliasing issues.
4346         (Fx_window_property): Likewise.
4348         * xselect.c (Fx_disown_selection_internal): Use union of struct
4349         input_event and struct selection_input_event to avoid aliasing issues.
4351         * xterm.c (handle_one_xevent): Use union of struct input_event and
4352         struct selection_input_event to avoid aliasing issues.
4353         (SET_SAVED_MENU_EVENT): Adapt reference to inev.
4355 2005-02-17  Kim F. Storm  <storm@cua.dk>
4357         * dispextern.h (enum it_method): New enum.
4358         (GET_FROM_*): Its members.
4359         (struct it): Change member method from function pointer to enum.
4361         * xdisp.c (check_it, init_from_display_pos, handle_stop)
4362         (setup_for_ellipsis, handle_single_display_spec)
4363         (handle_composition_prop, next_overlay_string)
4364         (get_overlay_strings, reseat_1, reseat_to_string)
4365         (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
4366         (in_display_vector_p, display_line, get_next_display_element):
4367         Change it->method from function pointer to enum.
4368         (get_next_element): New array to map it->method to function.
4369         (get_next_display_element): Use it.
4370         (set_iterator_to_next): Use switch instead of if/else chain.
4372 2005-02-15  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
4374         * w32select.c: Summary: Thorough rework to implement Unicode
4375         clipboard operations and delayed rendering.
4377         Drop last_clipboard_text and related code, keep track of
4378         ownership via clipboard_owner instead.  Drop old #if0 sections.
4380         (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
4381         (clipboard_owner, modifying_clipboard, cfg_coding_system)
4382         (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
4383         (current_coding_system, current_requires_encoding)
4384         (current_num_nls, current_clipboard_type, current_lcid):
4385         New static variables.
4387         (convert_to_handle_as_ascii, convert_to_handle_as_coded)
4388         (render, render_all, run_protected, lisp_error_handler)
4389         (owner_callback, create_owner, setup_config)
4390         (enum_locale_callback, cp_from_locale, coding_from_cp):
4391         New local functions.
4393         (term_w32select, globals_of_w32select): New global functions.
4395         (Fw32_set_clipboard_data): Ignore parameter FRAME, use
4396         clipboard_owner instead.  Use delayed rendering and provide
4397         all text formats.  Provide CF_LOCALE if necessary.
4399         (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
4400         CF_LOCALE.  Fall back to CF_TEXT, if CF_UNICODETEXT is not
4401         available.  Force DOS line-ends for decoding.
4403         (Fx_selection_exists_p): Handle CF_UNICODETEXT.
4405         (syms_of_w32select): Init and register new variables.
4407         * w32.h: Add prototypes for globals_of_w32select and
4408         term_w32select.  Make the neighboring K&R declarations into
4409         prototypes, too.
4411         * emacs.c: Include w32.h to get function prototypes.
4412         (main): Call globals_of_w32select.
4414         * w32.c (term_ntproc): Call term_w32select.
4416         * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
4418 2005-02-16  Kim F. Storm  <storm@cua.dk>
4420         * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
4421         at end of display vector.
4423 2005-02-15  Richard M. Stallman  <rms@gnu.org>
4425         * xdisp.c (get_next_display_element): Fix escape-glyph criterion
4426         for mode and header lines.
4428         * lread.c (syms_of_lread) <user-init-file>: Doc fix.
4430         * keymap.h (describe_map_tree): Change decl.
4432         * keyboard.c (command_loop_1): Always use safe_run_hooks
4433         to run Qdeferred_action_function.
4435         * keymap.c (describe_map_tree): New arg MENTION_SHADOW.  Calls changed.
4436         (describe_map, describe_vector): Likewise.  When it's 1,
4437         don't omit shadowed bindings, instead mark them as shadowed.
4439         * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
4440         for describe_map_tree.  Pass 1 for MENTION_SHADOW.
4442         * data.c (Fsetq_default): Allow no arg case.
4444 2005-02-14  Kenichi Handa  <handa@m17n.org>
4446         * coding.c (encode_coding_string): Always return a unibyte string.
4447         If NOCOPY is nonzero and there's no need of encoding, make STR
4448         unibyte directly.
4450         * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
4451         multibyte string, signal an error instead of aborting.
4453 2005-02-12  Dan Nicolaescu  <dann@ics.uci.edu>
4455         * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
4457 2005-02-12  Kim F. Storm  <storm@cua.dk>
4459         * xdisp.c (expose_window): Don't fix overlaps for mode lines.
4461 2005-02-10  Kim F. Storm  <storm@cua.dk>
4463         * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
4464         if it moves outside window or it doesn't display text.
4466 2005-02-09  Kim F. Storm  <storm@cua.dk>
4468         * undo.c (Fprimitive_undo): Check that undo function does not
4469         switch buffer.
4471 2005-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4473         * xselect.c (selection_data_to_lisp_data): For the special case
4474         type == XA_ATOM, data contains array of int, not array of Atom.
4475         (x_property_data_to_lisp, selection_data_to_lisp_data):
4476         Comment update: data must be array of int for format == 32.
4478 2005-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
4480         * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
4482 2005-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4484         * xfns.c (Fx_change_window_property): Use long array when format is 32.
4485         (Fx_window_property): If format is 32 and long is bigger than 32 bits,
4486         convert long array returned from XGetWindowProperty to an int array.
4487         (x_set_tool_bar_lines): Check that width and height is greater than
4488         zero before clearing area.
4490         * xselect.c (x_reply_selection_request): Pass long array to
4491         XChangeProperty so that 64 bit longs are handeled correctly.
4492         (x_get_window_property): If format is 32 and long is bigger than 32
4493         bits convert data from XGetWindowProperty from long array to int array.
4494         (lisp_data_to_selection_data): When the input is a vector and the
4495         format is 32, allocate a long array even if long is bigger than 32 bits.
4496         (x_fill_property_data): Use char, short and long as the man page
4497         for XChangeProperty specifies.  This way the data returned is OK for
4498         both 32 and 64 bit machines.
4499         (x_handle_dnd_message): Calculate size correctly even for 64 bit
4500         machines.
4501         (Fx_send_client_event): Undo change from 2005-02-05,
4502         x_fill_property_data now handles that case.
4504         * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
4505         reason for the approach in the code.
4507 2005-02-07  Kim F. Storm  <storm@cua.dk>
4509         * undo.c (Fprimitive_undo): Record max one dummmy apply element.
4511 2005-02-06  Richard M. Stallman  <rms@gnu.org>
4513         * eval.c (Frun_hook_with_args)
4514         (Frun_hook_with_args_until_success)
4515         (Frun_hook_with_args_until_failure): Doc fixes.
4517 2005-02-05  Andreas Schwab  <schwab@suse.de>
4519         * sysdep.c (sys_subshell): Properly terminate execlp argument list.
4521 2005-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4523         * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
4524         the longs in a XClientMessageEvent correctly when long is 64 bits.
4526 2005-02-05  Eli Zaretskii  <eliz@gnu.org>
4528         * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
4529         instead of HAVE_X_WINDOWS, for non-X windowed sessions.
4531 2005-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4533         * xmenu.c (menubar_selection_callback): Force out GTK buffered
4534         events so the menu event comes after them.  This is to prevent sit-for
4535         from exiting on buffered events directly after a menu selection,
4536         lisp code for Help => About Emacs uses sit-for.
4538         * gtkutil.c (create_menus): Connect selection-done event instead of
4539         the deactivate event to deactivate_cb.  This will make the last
4540         leave event come before the call to deactivate_cb, so the leave
4541         event does not make sit-for exit after a menu selection.
4543 2005-02-03  Kim F. Storm  <storm@cua.dk>
4545         * dispnew.c (build_frame_matrix_from_leaf_window)
4546          [!GLYPH_DEBUG]: Fix xassert.
4548         * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
4550         * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
4552 2005-02-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4554         * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
4555         the compiling OS version.
4557         * macfns.c (x_create_tip_frame): Likewise.
4559         * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
4561 2005-02-03  Richard M. Stallman  <rms@gnu.org>
4563         * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
4565         * xdisp.c (echo_area_display): Clear echo_message_buffer.
4567         * buffer.c (Fbury_buffer): Doc fix.
4569 2005-02-02  Steven Tamm  <steventamm@mac.com>
4571         * macfns.c (unwind_create_frame): Fix compile error due to
4572         xassert being uncondition, but predicate is.
4573         * dispnew.c (update_window): Fix compile error due to
4574         xassert being uncondition, but predicate is.
4576 2005-02-02  Miles Bader  <miles@gnu.org>
4578         * dispextern.h (xassert): Enable unconditionally.
4580 2005-02-02  Kim F. Storm  <storm@cua.dk>
4582         * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
4584 2005-02-02  Kenichi Handa  <handa@m17n.org>
4586         * casefiddle.c (casify_object): Enable changing characters of
4587         different byte length.
4588         (casify_region): Fix loop condition, args to replace_range_2, and
4589         update opoint_byte.
4591         * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
4593 2005-02-01  Kim F. Storm  <storm@cua.dk>
4595         * xdisp.c (back_to_previous_visible_line_start): Reset iterator
4596         stack before calling handle_display_prop.
4598 2005-01-31  Kim F. Storm  <storm@cua.dk>
4600         * undo.c (Qapply): New lisp var.
4601         (syms_of_undo): Intern and staticpro it.
4602         (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
4603         (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
4605         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
4607 2005-01-30  Jesper Harder  <harder@phys.au.dk>
4609         * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
4610         <mac-emulate-three-button-mouse>: Fix docstring indentation.
4612 2005-01-29  Luc Teirlinck  <teirllm@auburn.edu>
4614         * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
4615         Increase value to 3 Meg.
4617 2005-01-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4619         * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
4620         button events are not received otherwise.
4622 2005-01-29  Richard M. Stallman  <rms@gnu.org>
4624         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
4626         * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
4628 2005-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
4630         * keymap.c (access_keymap): YAILOM.
4632 2005-01-27  Kim F. Storm  <storm@cua.dk>
4634         * xdisp.c (get_phys_cursor_geometry): New function to calculate
4635         phys cursor position and size for hollow cursor.  Position is
4636         aligned with get_glyph_string_clip_rect and ensures that a hollow
4637         cursor is shown, even when the actual glyph is not visible.
4639         * dispextern.h (get_phys_cursor_geometry): Add prototype.
4641         * xterm.c (x_clip_to_row): Ensure y >= 0.
4642         (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4644         * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4646         * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
4648 2005-01-27  Stefan Monnier  <monnier@iro.umontreal.ca>
4650         * xterm.c (x_error_quitter): Add a prototype.  Make it static again.
4652 2005-01-27  Kim F. Storm  <storm@cua.dk>
4654         * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
4655         glyph, even when row is only partially visible and actual cursor
4656         position is not visible.
4658 2005-01-24  Richard M. Stallman  <rms@gnu.org>
4660         * xterm.c (x_error_quitter): No longer static, and moved after
4661         x_error_handler.
4663 2005-01-24  Kim F. Storm  <storm@cua.dk>
4665         * xdisp.c (move_it_by_lines): If we move forward after going too
4666         far back, cancel move if end position is same as start position.
4668 2005-01-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4670         * dispextern.h (struct glyph_string): New members clip_head and
4671         clip_tail.
4673         * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
4674         region to the area between clip_head and clip_tail.
4675         (draw_glyphs): Record the area that need to be actually redrawn to
4676         the new variables clip_head and clip_tail when there are
4677         overhangs.  Set values of these variables to the corresponding
4678         members in struct glyph_string.  Refine x coordinates for
4679         notice_overwritten_cursor using clip_head and clip_tail.
4681         * macgui.h (STORE_XCHARSETSTRUCT): New macro.
4683         * macterm.c (mac_compute_glyph_string_overhangs): Implement with
4684         QDTextBounds.
4685         (x_draw_glyph_string): Don't fill the background of the successor
4686         of a glyph with a right overhang if the successor will draw a cursor.
4687         (XLoadQueryFont): Obtain font metrics using QDTextBounds.
4688         (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
4690 2005-01-24  Kim F. Storm  <storm@cua.dk>
4692         * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
4693         direction if window height was smaller than next-screen-context-lines.
4694         Now always scroll at least one line in the requested direction.
4695         Ensure that we actually do scroll backwards when requested to do so.
4697         * xdisp.c (redisplay_window): Only try to make cursor line fully
4698         visible once (to avoid redisplay loop).
4700 2005-01-23  Kim F. Storm  <storm@cua.dk>
4702         * window.c (Fpos_visible_in_window_p): Simplify return value for
4703         partially visible rows.
4704         (window_scroll_pixel_based): Adapt to that change.
4706         * window.c (window_scroll_pixel_based): Force moving to next line
4707         if scrolling doesn't move start point, e.g. if looking at tall image.
4709         * xdisp.c (pos_visible_p): Return 0 if non-interactive.
4710         Clear last_height before calling line_bottom_y to get real height.
4711         Fix calculation of y.
4713 2005-01-22  Steven Tamm  <steventamm@mac.com>
4715         * s/darwin.h: Removed PTY_ITERATION from here.
4716         (DARWIN): Define.
4718         * process.c (init_process): Default process-connection-type to
4719         nil on darwin 6 or less, t if it is 7 or higher.  This way the
4720         broken pty behavior is still allowed on darwin 6 for interactive
4721         processes for people that know what they are doing.
4723 2005-01-22  Kim F. Storm  <storm@cua.dk>
4725         * window.c (auto_window_vscroll_p): New boolean.
4726         (syms_of_window): DEFVAR_BOOL it.
4727         (Fpos_visible_in_window_p): Extend return value to include RTOP
4728         and RBOT values if FULLY is nil.
4729         (window_scroll_pixel_based): Adjust vscroll for partially visible
4730         rows if auto_window_vscroll_p is set.
4731         (Fset_window_vscroll): Do nothing if vscroll is not modified.
4733         * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
4734         to return number of partially invisible pixels at top and bottom
4735         of the dislay row at POS.
4737         * lisp.h (pos_visible_p): Fix prototype.
4739 2005-01-21  Richard M. Stallman  <rms@gnu.org>
4741         * fileio.c (Fcopy_file): Doc fix.
4743 2005-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4745         * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
4746         (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
4747         start of function for older compilers.
4749 2005-01-20  Richard M. Stallman  <rms@gnu.org>
4751         * editfns.c (Fmessage): If arg is "", return "" (as before).
4753         * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
4755         * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
4756         variable.
4758 2005-01-20  Steven Tamm  <steventamm@mac.com>
4760         * editfns.c (Voperating_system_release): Add.
4761         (init_editfns): Assign new variable operating-system-release
4762         based on call to uname if available.
4763         (get_operating_system_release): Add function to
4764         allow c-level access to operating system release.
4766         * config.h: Regenerated.
4768         * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
4769         (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
4770         using ptys as '7'.
4772 2005-01-20  Kim F. Storm  <storm@cua.dk>
4774         * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
4776         * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
4777         Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
4779         * macterm.c (x_draw_glyph_string_box): Likewise.
4781         * w32term.c (x_draw_glyph_string_box): Likewise.
4783         * indent.c (Fvertical_motion): Temporarily disable selective display.
4785 2005-01-19  Kim F. Storm  <storm@cua.dk>
4787         * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
4788         image property.
4790         * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
4792 2005-01-18  Kim F. Storm  <storm@cua.dk>
4794         * xdisp.c (fast_find_position): Backtrack to find first row if
4795         charpos is inside a display overlay that spans multiple lines.
4797 2005-01-18  Kenichi Handa  <handa@m17n.org>
4799         * coding.c (decode_coding_iso2022): Translate invalid codes if
4800         translation-table is specified.
4802 2005-01-18  Kim F. Storm  <storm@cua.dk>
4804         * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
4805         change.  If handle_display_prop indicates newline is replaced by
4806         image or text, move back to start of relevant overlay or interval
4807         and continue scan from there.  Simplify.
4809 2005-01-17  Kim F. Storm  <storm@cua.dk>
4811         * dispnew.c (mode_line_string, marginal_area_string):
4812         Fix off-by-one error in search for glyph.
4814 2005-01-16  Kim F. Storm  <storm@cua.dk>
4816         * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
4818 2005-01-16  Steven Tamm  <steventamm@mac.com>
4820         * macterm.c (mac_to_x_fontname): Remove spurious argument.
4822 2005-01-16  Andreas Schwab  <schwab@suse.de>
4824         * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
4826 2005-01-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4828         * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
4829         fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
4831 2005-01-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4833         * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
4834         (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
4835         New flags for readable_events.
4836         (get_filtered_input_pending, readable_filtered_events): Remove.
4837         (tracking_off): Call readable_events and get_input_pending with
4838         flag READABLE_EVENTS_DO_TIMERS_NOW.
4839         (readable_events): Move code from old readable_filtered_events here,
4840         but check new READABLE_EVENTS_* in argument flags instead of previous
4841         two boolean arguments do_timers_now and filter_events.
4842         If we are doing mouse tracking and the mouse moved, return only if
4843         READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
4844         (swallow_events): Call get_input_pending with flag
4845         READABLE_EVENTS_DO_TIMERS_NOW.
4846         (get_input_pending): Move code from old get_filtered_input_pending
4847         here.  Replace boolean arguments do_timers_now, filter_events with
4848         flags, and pass flags to readable_events.  Document new
4849         READABLE_EVENTS_* flags.
4850         (detect_input_pending_ignore_squeezables): New function.
4851         (detect_input_pending_run_timers): Call get_input_pending with flag
4852         READABLE_EVENTS_DO_TIMERS_NOW.
4853         (Finput_pending_p): Call get_input_pending with flags
4854         READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
4856         * dispnew.c (update_window, update_frame_1): Replace calls to
4857         detect_input_pending with detect_input_pending_ignore_squeezables
4858         so that redisplay is not paused if the event queue contains only
4859         mouse movements.
4861         * lisp.h: Declare detect_input_pending_ignore_squeezables.
4863 2005-01-15  Steven Tamm  <steventamm@mac.com>
4865         * macterm.c (Vmac_use_core_graphics): Declare variable for
4866         mac-allow-anti-aliasing.
4867         (syms_of_macterm): DEFVAR_LISP and initialize it.
4868         (mac_draw_string_common): Use core graphics text rendering if
4869         mac-allow-anti-aliasing is enabled.
4871         * macfns.c (Fx_file_dialog): Save As dialog includes only the
4872         file name in the text box.
4874 2005-01-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4876         * macfns.c (x_set_foreground_color, x_set_background_color):
4877         Sync with xfns.c.
4878         (mac_window, x_create_tip_frame): Use XSetWindowBackground.
4879         * macterm.c (XSetBackground, XSetWindowBackground): New functions.
4880         * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
4882 2005-01-14  Kim F. Storm  <storm@cua.dk>
4884         * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
4886 2005-01-13  Richard M. Stallman  <rms@gnu.org>
4888         * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
4889         if Voverriding_terminal_local_map is non-nil.
4891         * keyboard.c (syms_of_keyboard): Doc fix.
4893 2005-01-13  Kim F. Storm  <storm@cua.dk>
4895         * xdisp.c (Fformat_mode_line): Fix last change.  Remove NO_PROPS arg
4896         (specify 0 for FACE instead).  Reorder arg list.  Doc fix.
4898 2005-01-12  Richard M. Stallman  <rms@gnu.org>
4900         * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
4901         face property for characters that don't specify one.
4903         * fns.c (Frequire): Record in load-history unconditionally.
4905 2005-01-10  Kim F. Storm  <storm@cua.dk>
4907         * dispextern.h (merge_faces): Rename from merge_into_realized_face.
4909         * xfaces.c (merge_faces): Rename from merge_into_realized_face.
4910         Callers changed.
4911         Add support to merge with lisp face id too (if face_name is t).
4913         * xdisp.c (get_next_display_element, next_element_from_display_vector):
4914         Don't lookup lface_id from display table glyphs here; instead use
4915         merge_faces to merge the lisp face id into current face.
4917 2005-01-09  Kim F. Storm  <storm@cua.dk>
4919         * dispextern.h (struct it): New member dpvec_face_id.
4920         (merge_into_realized_face): Add prototype.
4922         * xfaces.c (merge_into_realized_face): New function.  Used to
4923         merge escape-glyph face or face from display table into current face.
4925         * xdisp.c (Vshow_nonbreak_escape): New lisp var.
4926         (syms_of_xdisp): DEFVAR_LISP it.
4927         (escape_glyph_face): Remove var.
4928         (redisplay_window): Don't initialize it.
4929         (setup_for_ellipsis, get_next_display_element):
4930         Set it->dpvec_face_id to -1.
4931         (get_next_display_element): Test Vshow_nonbreak_escape.
4932         Do not setup escape_glyph_face.
4933         Properly merge escape-glyph face or face from display table with
4934         current face for escape and control characters.
4935         Set it->dpvec_face_id to relevant face id instead of adding it to each
4936         element of display vector.
4937         (next_element_from_display_vector): If it->dpvec_face_id is set,
4938         use that instead of lface_id from glyph itself.
4940 2005-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4942         * xterm.h (struct x_output): New member, toolbar_detached.
4944         * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
4945         38.
4946         (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
4947         (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
4948         (xg_create_tool_bar): Initialize toolbar_detached.
4949         (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
4950         toolbar_detached is zero.
4952 2005-01-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4954         * xmenu.c (create_and_show_popup_menu): Pass zero as button to
4955         gtk_menu_popup if not for_click, so callbacks for the menu are called.
4957         * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
4958         (xg_tool_bar_callback, xg_tool_bar_help_callback)
4959         (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
4961         * xselect.c (x_get_foreign_selection, x_fill_property_data)
4962         (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
4963         XFLOAT_DATA to get extract number from Lisp object.
4965 2005-01-07  Kim F. Storm  <storm@cua.dk>
4967         * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
4968         Set stop_charpos to current charpos instead of 0.
4970 2005-01-06  Nick Roberts  <nickrob@snap.net.nz>
4972         * xdisp.c (Fformat_mode_line): First arg now required.
4974 2005-01-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4976         * macterm.c (XLoadQueryFont): Correctly handle 0 size
4977         font widths that are returned from some Japanese fonts.
4979 2005-01-06  Kim F. Storm  <storm@cua.dk>
4981         * fringe.c (fringe_faces): Change to Lisp_Object pointer.
4982         (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
4983         (destroy_fringe_bitmap): Set fringe_faces element to nil.
4984         (Fdefine_fringe_bitmap, init_fringe): Change allocation of
4985         fringe_faces array and init elements to nil.
4986         (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
4987         non-persistent face id.
4988         (mark_fringe_data): New function for GC.
4990         * alloc.c (mark_fringe_data): Declare extern.
4991         (Fgarbage_collect): Call mark_fringe_data.
4993         * alloc.c (overrun_check_free): Invalidate freed memory if
4994         XMALLOC_CLEAR_FREE_MEMORY is defined.
4996 2005-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4998         * macfns.c: Include sys/param.h.
4999         [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
5000         and function.
5001         [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
5002         of filename string.  Set event callback function when creating
5003         dialog boxes.  Add code conversions for filenames.  Don't dispose
5004         of apple event descriptor record if failed to create it.
5006         * macterm.c: Include sys/param.h.
5007         [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
5008         kEventWindowUpdate.
5009         (install_window_handler) [USE_CARBON_EVENTS]: Register it.
5010         (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
5011         of FSSpec from apple event descriptor record.
5012         (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
5013         size of filename string.
5014         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
5015         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
5016         file dialog is in action.
5017         [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
5018         Reject only when there are no filename items.  Set background color
5019         before (un)highlighting the window below the dragged items.
5020         (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
5022 2005-01-05  Romain Francoise  <romain@orebokech.com>
5024         * term.c (encode_terminal_code): Fix buffer size computation.
5026 2005-01-04  Richard M. Stallman  <rms@gnu.org>
5028         * xdisp.c (Fformat_mode_line): Doc fix.
5030 2005-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
5032         * alloc.c (refill_memory_reserve): Move.
5033         (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
5034         (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
5036 2005-01-03  Richard M. Stallman  <rms@gnu.org>
5038         * window.c (window_scroll_pixel_based): Don't correct preserve_y
5039         for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
5041 2005-01-03  Jason Rumney  <jasonr@gnu.org>
5043         * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
5044         fontp->space_width to FONT_WIDTH so they are valid.
5046         * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
5047         average width.  Set fontp->average_width and fontp->space_width to
5048         their appropriate values.
5050         * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5051         fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
5052         fontp->space_width.
5054 2005-01-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5056         * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
5057         (x_font_min_bounds, XLoadQueryFont): Use the correct font width
5058         metrics for max and min bounds.
5059         (x_load_font): Correctly calculate average font width metrics.
5061 2005-01-02  Richard M. Stallman  <rms@gnu.org>
5063         * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
5065 2004-12-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5067         * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
5069 2004-12-31  Richard M. Stallman  <rms@gnu.org>
5071         * xdisp.c (setup_for_ellipsis, get_next_display_element):
5072         Set it->ellipsis_p to 1 or 0.
5073         (display_line): Record whether row ends in mid-ellipsis.
5074         (set_cursor_from_row): If ends in ellipsis, find start of it.
5075         (cursor_row_p): If PT's at the end of the ellipsis the row
5076         ends within, don't display cursor on this row.
5078         * dispextern.h (struct it): New element ellipsis_p.
5079         (struct glyph_row): New element ends_in_ellipsis_p.
5081         * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
5082         position if we're reading from something other than the buffer.
5084         * window.c (window_scroll_pixel_based): Only look at
5085         Vscroll_preserve_screen_position if the old PT can't be kept.
5086         (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5088 2004-12-30  Kim F. Storm  <storm@cua.dk>
5090         * xdisp.c (get_line_height_property): New function extracted from
5091         original calc_line_height_property.
5092         (calc_line_height_property): Rework.  Handle t and (nil . ratio).
5093         (x_produce_glyphs): Use them to handle line-height and
5094         line-spacing according to new height spec.
5095         (Qtotal): Remove.
5096         (syms_of_xdisp): Remove intern and staticpro for Qtotal.
5098 2004-12-30  Kenichi Handa  <handa@m17n.org>
5100         * fileio.c (Finsert_file_contents): Don't use
5101         current_buffer->buffer_file_coding_system even if REPLACE is
5102         non-nil.  Call Qafter_insert_file_set_coding with the second arg VISIT.
5104         * fontset.h (struct font_info): New members space_width and
5105         average_width.
5107         * frame.h (struct frame): New member space_width.
5108         (FRAME_SPACE_WIDTH): New macro.
5110         * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
5112         * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
5113         fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
5114         fontp->space_width.
5115         (x_load_font): Calculate fontp->space_width and fontp->average_width.
5116         (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
5118         * xdisp.c (x_produce_glyphs): Calculate tab width by
5119         FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
5121 2004-12-29  Sanghyuk Suh  <han9kin@mac.com>
5123         * macterm.c (SelectionRange): Add Xcode position apple event struct.
5124         (do_ae_open_documents): Handle Xcode-style file position open events.
5126 2004-12-29  Luc Teirlinck  <teirllm@auburn.edu>
5128         * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
5130 2004-12-29  Richard M. Stallman  <rms@gnu.org>
5132         * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
5134 2004-12-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5136         * macfns.c (install_window_handler): Modify extern to return OSErr
5137         value.
5138         (mac_window): Handle return value of install_window_handler.
5140         * macterm.c (reflect_byte): Remove function.
5141         (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
5142         Lookup table instead.
5143         (mac_do_font_lists): Simplify calculation of the longest
5144         nonspecial string.
5145         (init_mac_drag_n_drop): Remove function and declaration.
5146         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
5147         init_mac_drag_n_drop.
5148         (mac_do_track_drag): New function and declaration.
5149         (install_window_handler): Return OSErr value.
5150         (install_window_handler) [TARGET_API_MAC_CARBON]:
5151         Register handlers for tracking/receiving drag-and-drop items.
5152         (do_ae_open_documents): Generate unibyte strings for filenames.
5153         (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
5154         Reject only non-filename items.  Set event modifiers, and return value.
5156 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
5158         * coding.c (decode_coding): Fix previous change.
5160 2004-12-28  Richard M. Stallman  <rms@gnu.org>
5162         * xdisp.c (back_to_previous_visible_line_start):
5163         Don't call handle_display_prop.
5165 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
5167         * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
5168         (decode_coding_emacs_mule, encode_coding_emacs_mule)
5169         (decode_coding_iso2022, encode_designation_at_bol)
5170         (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
5171         (decode_coding): Constify arguments and local vars.
5173 2004-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5175         * xmenu.c (popup_get_selection): Only pop down dialogs
5176         on C-g and Escape.
5177         (popup_get_selection): Remove parameter down_on_keypress.
5178         (create_and_show_popup_menu, create_and_show_dialog):
5179         Remove parameter down_on_keypress to popup_get_selection.
5181 2004-12-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5183         * dispextern.h: Change HAVE_CARBON to MAC_OS.
5184         (struct glyph_string): Likewise.
5186         * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
5187         mac_initialize.
5189         * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
5190         Change TARGET_API_MAC_CARBON to HAVE_CARBON.
5192         * fns.c (vector): Change MAC_OSX to MAC_OS.
5194         * frame.c (x_set_frame_parameters, x_report_frame_params)
5195         (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
5196         (x_set_border_width, Vdefault_frame_scroll_bars):
5197         Change HAVE_CARBON to MAC_OS.
5199         * image.c [MAC_OS]: Include sys/stat.h.
5200         [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
5201         QuickTimeComponents.h.
5203         * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
5204         [!MAC_OSX] (select): Use mac_wait_next_event.
5205         [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
5206         [!MAC_OSX] (select, run_mac_command): Change `#ifdef
5207         TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
5208         (mac_clear_font_name_table): Add extern.
5209         (Fmac_clear_font_name_table): New defun.
5210         (syms_of_mac): Defsubr it.
5211         [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
5212         [MAC_OSX] (select_and_poll_event): New function.
5213         [MAC_OSX] (sys_select): Use it.
5214         [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
5215         [MAC_OSX && SELECT_USE_CFSOCKET]
5216         (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
5217         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
5218         RunLoop for simultaneously monitoring two kinds of inputs, window
5219         events and process outputs, without periodically polling.
5221         * macfns.c (mac_initialized): Remove extern.
5222         (stricmp): Put in #if 0.  All callers changed to use xstricmp in
5223         xfaces.c.
5224         (strnicmp): Decrement `n' at the end of each loop, not the beginning.
5225         (check_mac): Use the term "Mac native windows" instead of "Mac OS".
5226         (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
5227         (mac_get_rdb_resource): New function (from w32reg.c).
5228         (x_get_string_resource): Use it.
5229         (install_window_handler): Add extern.
5230         (mac_window): New function.
5231         (Fx_create_frame): Use it instead of make_mac_frame.
5232         Set parameter for Qfullscreen.  Call x_wm_set_size_hint.
5233         (Fx_open_connection, Fx_close_connection): New defuns.
5234         (syms_of_macfns): Defsubr them.
5235         (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
5236         Add kWindowNoUpdatesAttribute to the window attribute.
5237         (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
5238         (x_create_tip_frame): Don't call ShowWindow.
5239         (Fx_show_tip): Call ShowWindow.
5240         (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
5241         TARGET_API_MAC_CARBON'.
5242         (mac_frame_parm_handlers): Set handlers for Qfullscreen.
5243         (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
5245         * macgui.h [!MAC_OSX]: Don't include Controls.h.  Include Windows.h.
5246         (Window): Typedef to WindowPtr and move outside `#if
5247         TARGET_API_MAC_CARBON'.
5248         (XSizeHints): New struct.
5250         * macterm.c (x_update_begin, x_update_end)
5251         [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
5252         frame.
5253         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5254         [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
5255         (construct_mouse_click): Put in #if 0.
5256         (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
5257         (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
5258         TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
5259         (activate_scroll_bars, deactivate_scroll_bars)
5260         [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
5261         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
5262         if the position is neither user-specified nor program-specified.
5263         (x_free_frame_resources): Free size_hints.
5264         (x_wm_set_size_hint): Allocate size_hints if needed.  Set size_hints.
5265         (mac_clear_font_name_table): New function.
5266         (mac_do_list_fonts): Initialize font_name_table if needed.
5267         (x_list_fonts): Don't initialize font_name_table.  Add BLOCK_INPUT
5268         around mac_do_list_fonts.
5269         (mac_unload_font): New function.
5270         (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
5271         (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
5272         and definitions with #if TARGET_API_MAC_CARBON.
5273         [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
5274         (install_window_handler): Add decl.
5275         (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
5276         window.  Use UpdateControls.  Get the rectangle that should be
5277         updated and restrict the target of expose_frame to it.
5278         (do_grow_window): Set minimum height/width according to size_hints.
5279         (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
5280         (do_zoom_window): Don't use x_set_window_size.
5281         [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
5282         (install_window_handler): New function.
5283         [!USE_CARBON_EVENTS] (mouse_region): New variable.
5284         [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
5285         (XTread_socket) [USE_CARBON_EVENTS]: Move call to
5286         GetEventDispatcherTarget inside BLOCK_INPUT.
5287         (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
5288         Update mouse_region when mouse is moved.
5289         (make_mac_frame): Remove.
5290         (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
5291         Initialize mouse pointer shapes.  Change values of f->left_pos and
5292         f->top_pos.  Don't use make_mac_frame.  Use NewCWindow.
5293         Don't call ShowWindow.
5294         (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
5295         Vinvocation_name and Vsystem_name.
5296         (mac_make_rdb): New function (from w32term.c).
5297         (mac_term_init): Use it.  Add BLOCK_INPUT.  Error if display has
5298         already been opened.  Don't pass argument to
5299         mac_initialize_display_info.  Don't set dpyinfo->height/width.
5300         Add entries to x_display_list and x_display_name_list.
5301         (x_delete_display): New function.
5302         (mac_initialize): Don't call mac_initialize_display_info.
5303         (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
5305         * macterm.h (check_mac): Add extern.
5306         (struct mac_output): New member size_hints.
5307         (FRAME_SIZE_HINTS): New macro.
5308         (mac_unload_font): Add extern.
5310         * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
5312         * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
5314 2004-12-27  Richard M. Stallman  <rms@gnu.org>
5316         * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
5317         (syms_of_buffer): Don't defsubr it.
5319         * process.c (list_processes_1): Set undo_list instead
5320         of calling Fbuffer_disable_undo.
5322         * xdisp.c (single_display_spec_string_p): Rename from
5323         single_display_prop_string_p.
5324         (single_display_spec_intangible_p): Rename from
5325         single_display_prop_intangible_p.
5326         (handle_single_display_spec): Rename from handle_single_display_prop.
5327         Rewritten to be easier to understand.
5329         Change in load-history format.  Functions now get (defun . NAME),
5330         and variables get just NAME.
5332         * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
5334         * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
5335         (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
5336         (Qdefvar): Var deleted.
5337         (syms_of_eval): Don't initialze it.
5339         * lread.c (syms_of_lread) <load-history>: Doc fix.
5341 2004-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5343         * xmenu.c (popup_get_selection): Pop down on C-g.
5344         (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
5345         pops down menu on C-g.
5346         (xdialog_show): If dialog popped down and no button in the dialog was
5347         pushed, call Fsignal to quit.
5348         (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
5349         Fsignal to quit.
5351         * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
5353         * gtkutil.c (xg_initialize): Install bindings for C-g so that
5354         dialogs and menus pop down.
5356 2004-12-27  Kenichi Handa  <handa@m17n.org>
5358         * coding.c (code_convert_region): Fix calculation of `ratio'.
5360 2004-12-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5362         * gtkutil.c (update_frame_tool_bar): Make the value of
5363         tool-bar-button-margin control margins of images in tool bar.
5365         * alloc.c (check_depth): New variable.
5366         (overrun_check_malloc, overrun_check_realloc): Only add
5367         overhead and write check pattern if check_depth is 1 (to handle
5368         recursive calls).  Increase/decrease check_depth in entry/exit.
5369         (overrun_check_free): Only check for overhead if check_depth is 1.
5370         Increase/decrease check_depth in entry/exit.
5372 2004-12-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5374         * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
5375         before touching input_available_clear_time, to avoid accessing it
5376         from multiple threads.
5378 2004-12-23  Jason Rumney  <jasonr@gnu.org>
5380         * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
5381         of JPEG library.
5383 2004-12-22  Richard M. Stallman  <rms@gnu.org>
5385         * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
5387         * lisp.h (Vundo_outer_limit): Fix decl.
5389         * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
5390         Uses changed.
5391         (syms_of_undo): Initialize appropriately.
5392         (truncate_undo_list): If it's nil, there's no limit.
5394 2004-12-22  Kenichi Handa  <handa@m17n.org>
5396         * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
5398 2004-12-21  Richard M. Stallman  <rms@gnu.org>
5400         * eval.c (unwind_to_catch): Clear immediate_quit.
5402         * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
5403         specially as `\ ' and `\-'.
5405         * keyboard.c (kbd_buffer_store_event_hold):
5406         In the code for while-no-input, handle immediate_quit.
5408         * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
5409         Call that at the very start.
5410         (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
5411         (syms_of_alloc): Don't define undo-limit,
5412         undo-strong-limit and undo-outer-limit here.
5414         * undo.c (truncate_undo_list): Return void.
5415         Take just one argument, the buffer.
5416         Make it current, and inhibit recursive GC.
5417         Access and update the undo list directly; return void.
5418         Refer to the undo...limit variables directly.
5419         Test undo_outer_limit only after counting the whole current command.
5420         When it's exceeded, call the function in undo-outer-limit-function.
5421         (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
5422         (Vundo_outer_limit_function): New variable.
5423         (syms_of_undo): Define undo-limit, undo-strong-limit
5424         and undo-outer-limit here, and undo-outer-limit-function.
5425         Doc fixes.
5427         * lisp.h (truncate_undo_list): Update decl.
5429 2004-12-21  Piet van Oostrum  <piet@cs.uu.nl>
5431         * fileio.c (Fread_file_name): Delete duplicates in
5432         file-name-history when history_delete_duplicates is true.
5434 2004-12-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5436         * macterm.c (mac_do_list_fonts): Fix memory leak
5438 2004-12-20  Richard M. Stallman  <rms@gnu.org>
5440         * regex.c (re_match_2_internal) <symend, wordend>:
5441         Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
5443 2004-12-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5445         * macterm.c (endif, x_font_name_to_mac_font_name):
5446         Use maccentraleurroman instead of maccentraleuropean
5447         (mac_c_string_match, mac_do_list_fonts): Speed up font search by
5448         quickly finding a specific font without needing regexps.
5450 2004-12-15  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5452         * syssignal.h: Declare main_thread.
5453         (SIGNAL_THREAD_CHECK): New macro.
5455         * keyboard.c (input_available_signal): Move thread checking code
5456         to macro SIGNAL_THREAD_CHECK and call that macro.
5457         (interrupt_signal): Call SIGNAL_THREAD_CHECK.
5459         * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
5461         * emacs.c: Define main_thread.
5462         (main): Initialize main_thread.
5463         (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
5464         (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
5466         * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
5468         * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
5470         * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
5472         * process.c (send_process_trap, sigchld_handler):
5473         Call SIGNAL_THREAD_CHECK.
5475         * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
5477         * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
5479         * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
5480         returning when xg_ignore_gtk_scrollbar is true.
5482 2004-12-14  Kim F. Storm  <storm@cua.dk>
5484         * keyboard.c (read_char): Save and restore echo_string when
5485         handling input method.
5487 2004-12-13  Richard M. Stallman  <rms@gnu.org>
5489         * eval.c (syms_of_eval) <quit-flag>: Doc fix.
5491         * keyboard.c (Vthrow_on_input): New variable.
5492         (syms_of_keyboard): Defvar and initialize it.
5493         (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
5495         * lisp.h (QUIT): Check for Vthrow_on_input.
5496         (Vthrow_on_input): Declare it.
5498 2004-12-13  Kim F. Storm  <storm@cua.dk>
5500         * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
5501         vector.
5503 2004-12-12  Richard M. Stallman  <rms@gnu.org>
5505         * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
5507         * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
5508         (Ftry_completion): Really use outer `zero'; eliminate inner one.
5510 2004-12-12  Kenichi Handa  <handa@m17n.org>
5512         * term.c (encode_terminal_code): Fix previous change.
5514 2004-12-11  Stefan Monnier  <monnier@iro.umontreal.ca>
5516         * keyboard.c (handle_async_input): Remove pthread mutex handling.
5517         (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
5519         * syntax.c (Fforward_word): Avoid non-idempotent side-effects
5520         in macro arguments.
5522         * minibuf.c (Ftry_completion, Fall_completions): Don't use
5523         XFASTINT blindly.
5525         * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
5527 2004-12-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5529         * w32term.c (x_calc_absolute_position): Remove calculation of
5530         difference between inner and outer window.  Don't subtract difference
5531         for left and top calculations.
5533         * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
5534         for left and top calculations.  Remove call to x_real_positions.
5535         [Bug report by Drew Adams in November]
5536         (x_check_expected_move): Do not set change_gravity to 1 when calling
5537         x_set_offset.
5539 2004-12-08  Richard M. Stallman  <rms@gnu.org>
5541         * xdisp.c (get_next_display_element): Use `escape-glyph' for
5542         control chars and escaped octal codes.
5543         (Qescape_glyph): New variable.
5544         (syms_of_xdisp): Initialize it.
5545         (escape_glyph_face): New variable.
5546         (redisplay_window): Initialize it.
5548 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
5550         * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
5551         (init_image): Use 1 rather than TRUE.  TRUE's not always defined.
5553 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5555         * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
5556         reset_malloc_hooks.
5558         * keyboard.c (handle_async_input, input_available_signal):
5559         Add ! defined (SYSTEM_MALLOC) around thread code.
5561         * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
5563 2004-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
5565         * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
5567         * config.in: Regenerate.
5569 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5571         * xmenu.c (Fx_popup_menu): Correct documentation about position.
5572         (xmenu_show): Do not call XTranslateCoordinates.  Adjust position
5573         if not given by a mouse click to correspond with x-popup-menu
5574         documentation.
5576         * config.in: Regenerate.
5578         * gtkutil.c: Include signal.h and syssignal.h.
5579         (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
5581         * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
5582         new variables main_thread and alloc_mutex,
5583         define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
5584         emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
5585         If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
5586         (UN)BLOCK_INPUT.
5587         (emacs_blocked_free, emacs_blocked_malloc)
5588         (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
5589         (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
5590         (reset_malloc_hooks): New function.
5592         * lisp.h: Declare reset_malloc_hooks.
5594         * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
5596         * keyboard.c: Conditionally include pthread.h
5597         (handle_async_input, input_available_signalt): If not in the main
5598         thread, block signal, send signal to main thread and return.
5600         * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
5601         Set current folder in file chooser if default_filename is a directory.
5603 2004-12-05  Stefan Monnier  <monnier@iro.umontreal.ca>
5605         * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
5606         Remove redundant correctness checks.
5607         (regex_compile): Fix up error codes for \{..\} expressions.
5609 2004-12-05  Richard M. Stallman  <rms@gnu.org>
5611         * regex.c (regex_compile): Fix end-of-pattern case for space.
5613 2004-12-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5615         * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
5616         * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
5617         crashes with invalid characters.
5618         * macmenu.c (add_menu_item): Use it.
5619         * image.c (image_load_quartz2d): Likewise.
5620         * macfns.c (x_set_name, x_set_title): Likewise.
5621         (Fx_file_dialog): Likewise.  Use constant CFRefs instead of
5622         creating them each time for labels.
5624 2004-12-02  Richard M. Stallman  <rms@gnu.org>
5626         * config.in (RE_TRANSLATE_P): If make_number is not a macro,
5627         don't use it here.
5629         * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
5630         (interactive_p): Skip Scalled_interactively_p frames
5631         like Sinteractive_p frames.
5632         (unwind_to_catch): Clear handling_signal.
5634         * data.c (Fmake_variable_buffer_local): Doc fix.
5635         (Fmake_local_variable): Doc fix.
5637         * insdel.c (insert_from_string_before_markers)
5638         (insert_from_string): Don't modify buffer on empty insertion.
5640         * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
5642 2004-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5644         * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
5645         menu text as UTF8 fails.
5647 2004-12-01  Kim F. Storm  <storm@cua.dk>
5649         * alloc.c: Add commentary for last change.
5650         (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
5651         sizeof(size_t) != 4.
5652         (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
5653         Use them.  Also clear header and trailer of freed memory.
5654         (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
5655         (string_overrun_cookie): Rename from string_overrun_pattern.
5656         (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
5658 2004-12-01  Andreas Schwab  <schwab@suse.de>
5660         * lisp.h: Declare string_to_multibyte.
5662 2004-12-01  Kenichi Handa  <handa@m17n.org>
5664         * w32console.c (w32con_write_glyphs): Decide coding here.
5665         Adjusted for the change of encode_terminal_code.
5667         * term.c (encode_terminal_code): Don't make it "static".
5669 2004-11-30  Kenichi Handa  <handa@m17n.org>
5671         * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
5672         (encode_terminal_code): Argument changed.  Encode all
5673         characters at once, and return a pointer to the result of encoding.
5674         (write_glyphs): Decide coding here.  Adjusted for the above change.
5675         (insert_glyphs): Likewise.
5676         (term_init): Initialize encode_terminal_bufsize to 0.
5678         * coding.c (Vcode_conversion_workbuf_name): New variable.
5679         (syms_of_coding): Initialize and staticpro it.
5680         (set_conversion_work_buffer): New function.
5681         (run_pre_post_conversion_on_str): Use it.
5682         (run_pre_write_conversin_on_c_str): New function.
5684         * coding.h (run_pre_write_conversin_on_c_str): Extern it.
5686 2004-11-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5688         * keyboard.c: Don't undef SIGIO
5689         * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
5690         * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
5691         (macfns.o): Don't depend on ccl.h.
5692         * macfns.c (mac_frame_parm_handlers): Set handlers for
5693         Qleft_fringe and Qright_fringe.
5694         * macterm.c (mac_fill_rectangle_to_pixmap)
5695         (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
5696         (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
5697         Put in #if 0.
5698         (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
5699         (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
5700         (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
5701         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
5702         [!MAC_OS8]: Added ifdef'd out code for os8.  Don't use
5703         XDrawImageString.  Always draw background and foreground separately.
5704         (x_draw_image_foreground): Use clipping instead of computing the
5705         intersection rectangle.
5706         (x_draw_image_glyph_string): Don't draw an image with mask to a
5707         pixmap.
5708         (x_redisplay_interface): Set flush_display_optional member to 0.
5709         (XTread_socket): Correctly reset the TEConverter
5710         object.
5712 2004-11-30  Kim F. Storm  <storm@cua.dk>
5714         * lisp.h: New defines to enable buffer overrun checking.
5715         (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
5716         (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
5718         * alloc.c: Add more checks for buffer overruns.
5719         (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
5720         xmalloc_overrun_check_trailer, overrun_check_malloc)
5721         overrun_check_realloc, overrun_check_free): Add.
5722         (GC_STRING_EXTRA, string_overrun_pattern): Add.
5723         (check_sblock, allocate_string_data, compact_small_strings):
5724         Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
5725         (check_cons_list): Condition on GC_CHECK_CONS_LIST.
5726         (check_string_free_list): Add.
5727         (allocate_string, sweep_strings): Call check_string_free_list.
5729         * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
5730         XMALLOC_OVERRUN_CHECK to avoid crash during load.
5732 2004-11-29  Kim F. Storm  <storm@cua.dk>
5734         * fns.c (concat): Use SAFE_ALLOCA.
5736 2004-11-29  Stefan Monnier  <monnier@iro.umontreal.ca>
5738         * sysdep.c (emacs_write): Don't use QUIT.
5740 2004-11-29  Kenichi Handa  <handa@m17n.org>
5742         * buffer.c (init_buffer): Set current_buffer->directory to a
5743         multibyte string made by string_to_multibyte.
5745         * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
5747 2004-11-27  Andreas Schwab  <schwab@suse.de>
5749         * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
5751         * s/gnu-linux.h: Enable no-op gcpros on ia64.
5752         (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
5754         * filelock.c (lock_file_1): Call get_boot_time early.
5755         Increase buffer size.
5757 2004-11-27  Eli Zaretskii  <eliz@gnu.org>
5759         * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
5760         is not defined.
5762 2004-11-27  Kim F. Storm  <storm@cua.dk>
5764         * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
5765         marker out of doc string.
5767 2004-11-26  Stefan Monnier  <monnier@iro.umontreal.ca>
5769         * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
5770         which was not mentioned in the log.
5772 2004-11-26  Kim F. Storm  <storm@cua.dk>
5774         * fringe.c (update_window_fringes): Prefer truncation bitmaps over
5775         angle bitmaps at top/bottom line.
5777         * xdisp.c: Undo recent changes for restoring saved_face_id.  Instead,
5778         set it when it->method is set to next_element_from_display_vector.
5779         (setup_for_ellipsis): Add LEN argument.  Callers changed.
5780         Set it->saved_face_id.
5781         (get_next_display_element): Use loop instead of recursion.
5782         Set it->saved_face_id.  Combine duplicate code for ctr chars.
5783         (next_element_from_display_vector): Do not set it->saved_face_id.
5784         (next_element_from_ellipsis): Use setup_for_ellipsis.
5786 2004-11-26  Eli Zaretskii  <eliz@gnu.org>
5788         * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
5789         prevent compiler warnings.
5791 2004-11-25  Stefan Monnier  <monnier@iro.umontreal.ca>
5793         * keyboard.c (command_loop_1): Print a message describing the key
5794         the user just pressed when this key has no binding.
5796         * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
5797         (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
5799         * lread.c (readchar): Check QUIT when `getc' is interrupted.
5801 2004-11-24  Richard M. Stallman  <rms@gnu.org>
5803         * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
5805         * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
5807 2004-11-24  Kim F. Storm  <storm@cua.dk>
5809         * xdisp.c (move_it_in_display_line_to, display_line):
5810         Restore saved_face_id also when truncate-lines or hscrolled.
5812 2004-11-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5814         * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
5815         x-use-old-gtk-file-dialog.
5817         * xfns.c: Define x_use_old_gtk_file_dialog.
5818         (syms_of_xfns): Rename use-old-gtk-file-dialog to x-...  Move it
5819         outside ifdef USE_GTK.
5821 2004-11-23  Stefan Monnier  <monnier@iro.umontreal.ca>
5823         * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
5824         Don't use XFASTINT blindly.
5826         * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
5828         * indent.c (skip_invisible): Avoid non-idempotent side-effects
5829         in macro arguments.
5831         * keymap.c (Flookup_key): Check INTEGERP before XINT.
5833         * lread.c (oblookup): Don't use XFASTINT blindly.
5835         * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
5836         (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
5838 2004-11-23  Kim F. Storm  <storm@cua.dk>
5840         * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
5841         (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
5843         * xfaces.c (lookup_named_face): Add signal_p arg.  Return -1 if
5844         signal_p is zero and face name is unknown.
5845         (Fx_list_fonts): Don't signal error in lookup_named_face.
5846         (Fface_font): Signal error in lookup_named_face.
5847         (ascii_face_of_lisp_face): Likewise.
5849         * dispextern.h (lookup_named_face): Fix prototype.
5851         * xdisp.c (handle_single_display_prop): Don't signal error in
5852         lookup_named_face for unknown fringe face name.
5853         (highlight_trailing_whitespace): Don't signal error in
5854         lookup_named_face if trailing-whitespace face unknown.
5855         (calc_line_height_property): Don't signal error in
5856         lookup_named_face if specified face name is unknown.
5858         * fringe.c (update_window_fringes): Show top row indicator if
5859         window has header-line.  Don't show arrow at bob and eob
5860         if the boundary indicators are not used.
5861         (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
5863         * window.c (set_window_buffer): Clear display_error_modiff.
5865 2004-11-22  Kim F. Storm  <storm@cua.dk>
5867         * fringe.c (update_window_fringes): Provide sensible fall-back
5868         value for non-nil indicate-buffer-boundaries setting.
5870 2004-11-22  Markus Rost  <rost@ias.edu>
5872         * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
5874 2004-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
5876         * eval.c (Fdefvar): Warn when var is let-bound but globally void.
5878 2004-11-21  Kim F. Storm  <storm@cua.dk>
5880         * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
5882         * xterm.c (x_clip_to_row): Add area arg.  Callers changed.
5883         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5885         * w32term.c (w32_clip_to_row): Add area arg.  Callers changed.
5886         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5888         * macterm.c (x_clip_to_row): Add area arg.  Callers changed.
5889         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
5891         * xdisp.c (move_it_in_display_line_to, display_line):
5892         Restore saved_face_id if overflow-newline-into-fringe is enabled and
5893         line is continued before or in middle of element from display vector.
5895         * indent.c (Fvertical_motion): Fix last change.  Use another
5896         method to detect if iterator moved too far ahead after reseat.
5898         * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro.  Do not
5899         expand matrix width for overflow in zero-width area.
5900         (append_glyph, append_composite_glyph, produce_image_glyph)
5901         (append_stretch_glyph): Use it to avoid loop in redisplay.
5902         (note_mode_line_or_margin_highlight): Don't let help-echo from
5903         string override help-echo from image map.
5905 2004-11-20  Luc Teirlinck  <teirllm@auburn.edu>
5907         * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
5908         * callint.c (Fcall_interactively): Ditto.
5910 2004-11-20  Stefan Monnier  <monnier@iro.umontreal.ca>
5912         * minibuf.c (Fminibuffer_complete_and_exit):
5913         Fixup the case of the completed value, for case-indep completion.
5915 2004-11-20  Richard M. Stallman  <rms@gnu.org>
5917         * lisp.h (Fread_from_minibuffer): Add arg in decl.
5919         * minibuf.c (read_minibuf): New arg KEEP_ALL.  Callers changed.
5920         (Fread_from_minibuffer): New arg KEEP_ALL.  Callers changed.
5922         * search.c (Vsearch_spaces_regexp):
5923         Rename from Vsearch_whitespace_regexp.  All uses changed.
5925 2004-11-20  Thien-Thi Nguyen  <ttn@gnu.org>
5927         * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
5929 2004-11-19  Richard M. Stallman  <rms@gnu.org>
5931         * search.c (Vsearch_whitespace_regexp): New variable.
5932         (syms_of_search): Defvar it.
5933         (compile_pattern_1): Call re_set_whitespace_regexp with it.
5934         (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
5935         is non-nil.
5936         (struct regexp_cache): New element whitespace_regexp.
5937         (syms_of_search): Initialize whitespace_regexp elements.
5938         (compile_pattern): Compare whitespace_regexp elements.
5939         (compile_pattern_1): Set whitespace_regexp elements.
5941         * regex.c (regex_compile): Substitute whitespace_regexp
5942         for spaces, if it is nonzero.
5943         (whitespace_regexp): New variable.
5944         (re_set_whitespace_regexp): New function.
5946 2004-11-19  Kim F. Storm  <storm@cua.dk>
5948         * indent.c (Fvertical_motion): Fix last change.
5950 2004-11-18  Kim F. Storm  <storm@cua.dk>
5952         * indent.c (Fvertical_motion): Undo 2004-11-16 change.
5953         Instead, move back again if reseating moves too far ahead.
5955 2004-11-17  Luc Teirlinck  <teirllm@auburn.edu>
5957         * xdisp.c (message3): Call clear_message.
5959 2004-11-17  Kim F. Storm  <storm@cua.dk>
5961         * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
5963 2004-11-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5965         * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
5967         * xmenu.c (x_menu_in_use): Remove.
5968         (x_menu_set_in_use): Also set popup_activated_flag.
5970         * xfns.c (Fx_file_dialog): Call popup_activated instead of
5971         x_menu_in_use.  Call x_menu_set_in_use in Motif version also.
5973         * xterm.h (x_menu_in_use): Remove.
5975 2004-11-16  Richard M. Stallman  <rms@gnu.org>
5977         * keymap.c (Fmap_keymap): New arg SORT-FIRST.
5978         Use map-keymap-internal to implement that.
5980         * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
5982 2004-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
5984         * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
5985         a window before using XWINDOW.
5987         * window.c (make_window, Fselect_window, make_dummy_parent)
5988         (save_window_save):
5989         * frame.c (make_frame):
5990         * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
5992         * lisp.h (NILP): Use EQ rather than XFASTINT.
5994 2004-11-16  Kim F. Storm  <storm@cua.dk>
5996         * fringe.c (Fdefine_fringe_bitmap): Always set 'h'.  Simplify.
5998         * indent.c (Fvertical_motion): Fix last change.  Only reseat when
5999         moving backwards.
6001 2004-11-16  Luc Teirlinck  <teirllm@auburn.edu>
6003         * dispextern.h: Extern reseat_at_previous_visible_line_start.
6005 2004-11-16  Kenichi Handa  <handa@m17n.org>
6007         * xdisp.c (display_mode_element): Fix previous change (calculate
6008         end position of substring to display correctly).
6010 2004-11-16  Kim F. Storm  <storm@cua.dk>
6012         * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
6013         Reported by Andrew M. Scott.
6015 2004-11-15  Kim F. Storm  <storm@cua.dk>
6017         * fns.c (Fsafe_plist_get): New defun.
6018         (syms_of_fns): Defsubr it.
6020         * lisp.h (Fsafe_plist_get): Add EXFUN.
6022         * xdisp.c (store_mode_line_string, produce_stretch_glyph):
6023         Use Fsafe_plist_get.
6024         (note_mode_line_or_margin_highlight, note_mouse_highlight):
6025         Fix image map element parsing.  Use Fsafe_plist_get.
6027 2004-11-15  Richard M. Stallman  <rms@gnu.org>
6029         * xdisp.c (get_next_display_element): Fix previous change.
6031 2004-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6033         * window.c (shrink_windows): Handle special case of one window left
6034         when trying to shrink the final reminder.  Grow windows if
6035         total_removed is less than total_shrink.
6037         * xmenu.c (pop_down_menu): Remove global variable current_menu,
6038         extract pointer from arg with XSAVE_VALUE.
6039         (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
6040         Construct arg to record_unwind_protect with make_save_value.
6042 2004-11-13  Richard M. Stallman  <rms@gnu.org>
6044         * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
6045         (get_next_display_element): Fix previous change to apply only to \n.
6047         * indent.c (Fvertical_motion): Scan to PT from start of line to
6048         make iterator consistent.
6050         * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
6052 2004-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6054         * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
6056         * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
6057         Record unwind with clean_up_file_dialog.
6059         * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
6060         Declare.
6062         * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
6064 2004-11-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6066         * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
6067         (xg_file_sel_destroy): Remove.
6068         (xg_file_response_cb, pop_down_file_dialog)
6069         (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
6070         New functions.
6071         (xg_get_file_with_chooser, xg_get_file_with_selection):
6072         Take new arg func, set it to xg_get_file_name_from_chooser/selector.
6073         Move common code to xg_get_file_name.  Return widget created.
6074         (xg_get_file_name): Set name, transient for, modal and destroy
6075         with parent here.  Connect response signal to xg_file_response_cb,
6076         connect delete-event to gtk_true.  Record pop_down_file_dialog
6077         for unwind.  Do event loop and call x_menu_wait_for_event in loop.
6078         (xg_create_widget): Make dialogs modal.
6080         * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
6081         Lisp_Object.
6082         (popup_get_selection): Move unwind protect ...
6083         (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6084         Move destroy of widget to pop_down_menu.
6085         (popup_widget_loop): Move unwind protect ...
6086         (create_and_show_popup_menu, create_and_show_dialog): ... to here.
6087         Move destroy of widget to pop_down_menu.
6088         (pop_down_menu): BLOCK_INPUT and destroy widget/window.
6089         (xmenu_show): Record unwind pop_down_menu.  Move XMenuDestroy,
6090         x_mouse_leave and grabbed = 0 to pop_down_menu.
6092 2004-11-13  Kim F. Storm  <storm@cua.dk>
6094         * xdisp.c (make_cursor_line_fully_visible_p): New variable.
6095         (syms_of_xdisp): DEFVAR_BOOL it.
6096         (make_cursor_line_fully_visible, try_cursor_movement)
6097         (try_window_id): Use it.
6099 2004-11-12  Kim F. Storm  <storm@cua.dk>
6101         * dispextern.h (struct glyph_row): New member extra_line_spacing.
6102         (struct it): New member max_extra_line_spacing.
6103         (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
6104         (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
6105         (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
6106         part of last line is only extra line spacing (so the text on the
6107         line is fully visible).  Use helper macros.
6108         Add W arg (to use them).  All callers changed.
6109         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
6110         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
6112         * window.c (window_scroll_pixel_based, Frecenter):
6113         Use move_it_vertically_backward directly.
6114         (Frecenter): Fix calculation of new start pos for negative arg.
6115         Before, the new start pos was sometimes chosen too far back, so
6116         the last line became only partially visible, and thus would be
6117         either only semi-visible or automatically scrolled to the middle
6118         of the window by redisplay.
6120         * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
6121         (move_it_vertically_backward): Don't recure to move further back.
6122         (move_it_vertically): Remove superfluous condition.
6123         (move_it_by_lines): Clear last_height when moved 0 lines.
6124         (resize_mini_window): Use it.max_extra_line_spacing.
6125         (display_tool_bar_line): Clear row->extra_line_spacing.
6126         (try_scrolling): Use move_it_vertically_backward directly.
6127         (redisplay_window): Likewise.
6128         (compute_line_metrics): Set row->extra_line_spacing.
6129         (display_line, display_string): Likewise.
6130         (x_produce_glyphs): Update it->max_extra_line_spacing.
6132         * xmenu.c (pop_down_menu): Return nil.
6134 2004-11-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6136         * xmenu.c (x_menu_wait_for_event): New function.
6137         (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
6138         to handle timers.
6139         (popup_widget_loop): Add argument do_timers.
6140         (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
6141         do_timers to popup_widget_loop.
6142         (xmenu_show): Call XMenuActivateSetWaitFunction so that
6143         x_menu_wait_for_event is called by XMenuActivate.
6144         (create_and_show_popup_menu): Pass 1 for do_timers to
6145         popup_get_selection.
6146         (pop_down_menu): New function.
6147         (popup_get_selection, popup_widget_loop): Unwind protect to
6148         pop_down_menu.
6149         (popup_widget_loop): Add argument widget.
6150         (create_and_show_popup_menu, create_and_show_dialog): Pass new
6151         argument widget to popup_widget_loop.
6153 2004-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
6155         * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
6157 2004-11-09  Kim F. Storm  <storm@cua.dk>
6159         * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
6160         Fix various comments referring to XEvents instead of input events.
6161         (x_queue_event): Fix format strings.
6162         (x_stop_queuing_selection_requests): Likewise.
6164         * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
6165         (pint2hrstr): Add extra braces to silence compiler.
6167         * print.c (print_object): Fix format string.
6169         * lread.c (read1): Fix next_char matching.
6171         * lisp.h (Fdelete): Add EXFUN.
6172         (replace_range_2): Add prototype.
6174         * keyboard.c (read_avail_input): Remove unused variable 'discard'.
6176         * intervals.h (NULL_INTERVAL_P): Add separate version when
6177         ENABLE_CHECKING is not defined to silence compiler.
6178         (compare_string_intervals): Add prototype.
6180         * fringe.c (destroy_fringe_bitmap): Fix return type.
6181         (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
6183         * emacs.c (Fdump_emacs): Fix format string.
6185         * doc.c: Include <ctype.h>.
6186         (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
6188         * data.c (store_symval_forwarding): Remove unused variables.
6190         * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
6192 2004-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6194         * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
6195         to ${OLDXMENU}.
6197 2004-11-09  Kim F. Storm  <storm@cua.dk>
6199         * process.c (Fmake_network_process): Remove kludge for interrupted
6200         connects on BSD.  If connect is interrupted, just close socket and
6201         start over rather than sleeping and retry with same socket.
6203 2004-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6205         * .cvsignore: Add buildobj.lst.
6207         * doc.c: New variable Vbuild_files.
6208         (Fsnarf_documentation): If Vbuild_files is nil, populate it with
6209         file names from buildobj.lst.  Only attach docstrings from files
6210         that are in Vbuild_files.
6211         (syms_of_doc): Defvar Vbuild_files.
6213         * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
6214         and w32*.o.
6215         (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
6216         (mostlyclean): Rm buildobj.lst
6218         * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
6219         is linked.
6221 2004-11-09  Kim F. Storm  <storm@cua.dk>
6223         * fringe.c (update_window_fringes): Update fringe bitmaps if
6224         cur and row ends_at_zv_p differs.  If bitmaps of a row is updated,
6225         also update previous row to get rid of misc. artifacts.
6227 2004-11-08  Kim F. Storm  <storm@cua.dk>
6229         * xdisp.c (fast_find_position): Fix start pos if header line present.
6230         (note_mouse_highlight): Clear mouse face if we move out of text area.
6232 2004-11-08  Eli Zaretskii  <eliz@gnu.org>
6234         * editfns.c: Move #include "systime.h" before <sys/resource.h>.
6235         Don't include <sys/time.h> explicitly.
6236         Include <stdio.h> unconditionally, not just on MacOS.
6238 2004-11-08  Kenichi Handa  <handa@m17n.org>
6240         * fontset.c (fontset_pattern_regexp): Cancel my previous change;
6241         don't pay attention to '\' before '*'.
6242         (fontset_pattern_regexp): Change the meaning of the second arg.
6243         (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
6244         (check_fontset_name): Try NAME as literal at first, and if it
6245         failes, try NAME as pattern.
6247 2004-11-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6249         * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
6251 2004-11-07  Andreas Schwab  <schwab@suse.de>
6253         * lisp.h (Fmsdos_downcase_filename): Declare.
6254         * dired.c (Fmsdos_downcase_filename): Don't declare here.
6255         * fileio.c: Likewise.
6257 2004-11-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6259         * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
6260         comparisons with integers instead of Lisp_Object address.
6261         (Fmsdos_set_keyboard): Declare argument allkeys.
6263         * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
6265         * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
6266         int/Lisp_Object mixup.
6268         * fileio.c: Ditto.
6270 2004-11-06  Steven Tamm  <steventamm@mac.com>
6272         * editfns.c: Need to include sys/time.h before resource.h on darwin.
6274 2004-11-06  Richard M. Stallman  <rms@gnu.org>
6276         * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
6278         * xfaces.c (merge_named_face): GCPRO the face_name in the
6279         named_merge_point struct that we make.
6280         (merge_face_heights): Eliminate GCPRO arg.  All callers changed.
6282         * keyboard.c (command_loop_1): Change Vtransient_mark_mode
6283         before deciding whether to inactivate mark.
6285 2004-11-06  Lars Brinkhoff  <lars@nocrew.org>
6287         * config.in: Regenerate (add HAVE_GETRUSAGE).
6288         * editfns.c (Fget_internal_run_time): New function.
6289         (syms_of_data): Defsubr it.
6290         * fns.c (sxhash): As far as possible, merge calculation of
6291         hash code for symbols and strings.
6293 2004-11-06  Eli Zaretskii  <eliz@gnu.org>
6295         * frame.c (syms_of_frame): Fix the example in the doc string.
6297 2004-11-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6299         * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
6301         * xmenu.c (popup_get_selection, create_and_show_popup_menu)
6302         (create_and_show_dialog): Revert change from 2004-10-31.
6304 2004-11-05  Luc Teirlinck  <teirllm@auburn.edu>
6306         * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
6308 2004-11-05  Kim F. Storm  <storm@cua.dk>
6310         * print.c (print_object): Print Lisp_Misc_Save_Value objects.
6312         * fileio.c (Ffile_modes): Doc fix.
6313         (auto_save_1): Check for Ffile_modes nil value.
6315 2004-11-05  Kim F. Storm  <storm@cua.dk>
6317         * xselect.c (struct selection_event_queue, selection_queue)
6318         (x_queue_selection_requests, x_queue_event)
6319         (x_start_queuing_selection_requests)
6320         (x_stop_queuing_selection_requests): Add new queue for selection
6321         input events to replace previous XEvent queue in xterm.c.
6322         (queue_selection_requests_unwind): Adapt to new queue.
6323         (x_reply_selection_request): Adapt to new queue.
6324         Unexpect wait_object in case of x errors (memory leak).
6325         (x_handle_selection_request, x_handle_selection_clear): Make static.
6326         (x_handle_selection_event): New function.  May queue selection events.
6327         (wait_for_property_change_unwind): Use save_value instead of cons.
6328         Clear property_change_reply_object.
6329         (wait_for_property_change): Abort if already waiting.
6330         Use save_value instead of cons for unwind data.
6331         (x_handle_property_notify): Skip events already arrived, but don't
6332         free them, as "arrived" field is checked by wait_for_property_change,
6333         and it will be freed by unwind or explicit unexpect_property_change.
6334         (x_get_foreign_selection): Add to new queue.
6335         (receive_incremental_selection): Don't unexpect wait_object when done
6336         as it has already been freed by previous wait_for_property_change.
6338         * xterm.h (x_start_queuing_selection_requests)
6339         (x_stop_queuing_selection_requests, x_handle_selection_request)
6340         (x_handle_selection_clear): Remove prototypes.
6341         (x_handle_selection_event): Add prototype.
6343         * xterm.c (handle_one_xevent): Don't queue X selection events
6344         here, it may be too late if we start queuing after we have already
6345         stored some selection events into the kbd buffer.
6346         (struct selection_event_queue, queue, x_queue_selection_requests)
6347         (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
6348         (x_stop_queuing_selection_requests): Remove/move to xselect.c.
6349         (x_catch_errors_unwind): Block input around final XSync.
6351         * keyboard.h (kbd_buffer_unget_event): Add prototype.
6353         * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
6354         (kbd_buffer_unget_event): New function.
6355         (kbd_buffer_get_event, swallow_events): Combine SELECTION events
6356         and use x_handle_selection_event.
6357         (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
6359 2004-11-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6361         * xselect.c (TRACE3): New debug macro.
6362         (x_reply_selection_request): Use it.
6363         (receive_incremental_selection): In call to TRACE0, the name of
6364         a symbol is in xname.
6366 2004-11-05  Kim F. Storm  <storm@cua.dk>
6368         * fontset.c (fontset_pattern_regexp): Use unsigned char.
6370 2004-11-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6372         * fileio.c (Fnext_read_file_uses_dialog_p): New function.
6374         * gtkutil.h (use_old_gtk_file_dialog): Declare.
6376         * gtkutil.c: Make use_old_gtk_file_dialog non-static.
6377         (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
6378         * xfns.c (syms_of_xfns): ... to here.
6380         * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
6381         it doesn't start with /.
6383 2004-11-04  Kenichi Handa  <handa@m17n.org>
6385         * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
6386         treat it as a literal character.
6388 2004-11-03  Kim F. Storm  <storm@cua.dk>
6390         * .gdbinit (ppt): New function.
6392 2004-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6394         * xterm.c (x_window_to_scroll_bar): Only call
6395         xg_get_scroll_id_for_window if toolkit scroll bars are used.
6397         * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
6398         of save.
6400 2004-11-02  Andreas Schwab  <schwab@suse.de>
6402         * window.c (Fscroll_right): Fix last change.
6404 2004-11-02  Kim F. Storm  <storm@cua.dk>
6406         * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
6408 2004-11-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6410         * callproc.c (Fcall_process): Block input around vfork.
6412 2004-11-02  Kim F. Storm  <storm@cua.dk>
6414         * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
6415         (syms_of_eval): Defsubr it.
6417 2004-11-02  Richard M. Stallman  <rms@gnu.org>
6419         * insdel.c (replace_range_2): New function.
6421         * casefiddle.c (casify_region): Handle changes in byte-length
6422         using replace_range_2.
6424         * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
6426         * xdisp.c (back_to_previous_visible_line_start):
6427         Subtract 1 from pos when checking previous newline for invisibility.
6429         * window.c (window_scroll_pixel_based): Update preserve_y
6430         for header line if any.
6431         (Fscroll_left, Fscroll_right): Don't call interactive_p;
6432         use a new second argument instead.
6434         * eval.c (Fcall_interactive_p): New function.
6435         (interactive_p): Don't test INTERACTIVE here.
6436         (Finteractive_p): Doc fix.
6438         * eval.c (Feval): Abort if INPUT_BLOCKED_P.
6440 2004-11-02  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
6442         * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
6443         comparing font names.
6445 2004-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6447         * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
6448         Fx_file_dialog if only directories should be read.
6450         * lisp.h: Fx_file_dialog takes 5 parameters.
6452         * xfns.c (Fx_file_dialog): Both Motif and GTK version:
6453         Add parameter only_dir_p.
6454         In Motif version, don't put DEFAULT_FILENAME in filter part of the
6455         dialog, just text field part.  Do not add DEFAULT_FILENAME
6456         to list of files if it isn't there.
6457         In GTK version, pass only_dir_p parameter to xg_get_file_name.
6459         * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
6460         Check only_dir_p instead of comparing prompt to "Dired".  When using
6461         a save dialog, add option kNavDontConfirmReplacement, change title
6462         to "Enter name", change text for save button to "Ok".
6464         * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
6465         Check only_dir_p instead of comparing prompt to "Dired".
6467         * gtkutil.c (xg_get_file_with_chooser)
6468         (xg_get_file_with_selection): New functions, only defined ifdef
6469         HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
6470         respectively.
6471         (xg_get_file_name): Add parameter only_dir_p.
6472         Call xg_get_file_with_chooser or xg_get_file_with_selection
6473         depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
6474         (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
6476         * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
6478         * config.in: Rebuild (added HAVE_GTK_FILE_*).
6480 2004-11-01  Kim F. Storm  <storm@cua.dk>
6482         * process.c (connect_wait_mask, num_pending_connects):
6483         Only declare and use them if NON_BLOCKING_CONNECT is defined.
6484         (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
6485         (IF_NON_BLOCKING_CONNECT): New helper macro.
6486         (wait_reading_process_output): Only declare and use local vars
6487         Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
6489 2004-11-01  Andy Petrusenco  <Igrek@star-sw.com>  (tiny change)
6491         * w32term.c (x_scroll_run): Delete region objects after use.
6493 2004-10-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6495         * xmenu.c: Add prototypes for forward function declarations.
6496         (popup_get_selection): Remove parameter do_timers, remove call to
6497         timer_check.
6498         (create_and_show_popup_menu, create_and_show_dialog):
6499         Remove parameter do_timers from call to popup_get_selection.
6501         * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
6502         tool_bar_items and assign the result to f->tool_bar_items if
6503         not equal.  Move BLOCK/UNBLOCK_INPUT from around call to
6504         tool_bar_items to assignment of result.
6506         * atimer.c (alarm_signal_handler): Do not call set_alarm if
6507         pending_atmers is non-zero.
6509 2004-10-31  Kim F. Storm  <storm@cua.dk>
6511         * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
6513 2004-10-28  Will  <will@glozer.net>
6515         * macterm.c: Allow user to assign key modifiers to the Mac Option
6516         key via a 'mac-option-modifier' variable.
6518 2004-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
6520         * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
6521         Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
6522         (x_handle_selection_request, x_handle_selection_clear)
6523         (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
6525 2004-10-28  Richard M. Stallman  <rms@gnu.org>
6527         * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
6529         * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
6531 2004-10-27  Stefan Monnier  <monnier@iro.umontreal.ca>
6533         * syntax.c (scan_sexps_forward): Give precedence to a 2-char
6534         comment-starter over a 1-char one.
6536 2004-10-27  Richard M. Stallman  <rms@gnu.org>
6538         * xdisp.c (get_next_display_element): In mode lines,
6539         treat newline and tab like other control characters.
6541         * editfns.c (Fmessage): Doc fix.
6543         * indent.c (vmotion): When moving up, check the newline before.
6544         Make prevline an int, not a Lisp_Object.
6546 2004-10-27  Kim F. Storm  <storm@cua.dk>
6548         * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
6549         Only allocate info and discarded tables once.
6551         * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
6552         (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
6553         (SAFE_FREE): Test it to determine if we need to unwind to free.
6554         Remove size arg.  All users changed.
6555         (SAFE_FREE_LISP) Remove.  All users changed to use SAFE_FREE.
6557 2004-10-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6559         * gtkutil.c: Put empty line between comment and function body.
6560         (xg_destroy_widgets): Rename from remove_from_container.
6561         Just destroy all widgets in list.  Argument wcont removed.
6562         (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
6563         instead of remove_from_container.
6564         (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
6565         (free_frame_tool_bar): Add comment.
6567         * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
6568         is not NULL before strcmp.
6570 2004-10-26  Kim F. Storm  <storm@cua.dk>
6572         * callint.c (Fcall_interactively): Add 'U' code to get the
6573         up-event discarded by a previous 'k' or 'K' argument.
6575 2004-10-26  David Kastrup  <dak@gnu.org>
6577         * buffer.c (syms_of_buffer): Fix a few typos.
6579 2004-10-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6581         * xsmfns.c: Put empty line between comment and function body.
6582         Use two spaces before comment end.
6584 2004-10-25  Kenichi Handa  <handa@m17n.org>
6586         * fontset.c (fontset_pattern_regexp): Optimize for the case that
6587         PATTERN is full XLFD.
6589 2004-10-24  Kenichi Handa  <handa@m17n.org>
6591         * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
6593         * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
6594         (regex_compile): Return REG_ERANGEX if appropriate.
6596 2004-10-22  Kenichi Handa  <handa@m17n.org>
6598         * editfns.c (Ftranslate_region_internal): New function.
6599         (syms_of_editfns): Defsubr it.
6601 2004-10-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6603         * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
6605 2004-10-21  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
6607         * xterm.h (x_output): New member `xic_base_fontname'.
6608         (FRAME_XIC_BASE_FONTNAME): New macro.
6609         (xic_free_xfontset): Declare.
6611         * xfns.c (xic_create_xfontset): Share fontsets between frames
6612         based on base_fontname.
6613         (xic_free_xfontset): New function.
6614         (free_frame_xic): Use it.
6615         (xic_set_xfontset): Ditto.
6617         * xterm.c (xim_destroy_callback): Ditto.
6620 2004-10-20  B. Anyos  <banyos@freemail.hu>  (tiny change)
6622         * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
6624 2004-10-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6626         * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
6627         XSync.
6629         * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
6630         New variables and constant.
6631         (main): Calculate heap_bss_diff.  If we are dumping and the
6632         heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
6633         and exec ourself again.
6634         (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
6635         print a warning.
6637         * lastfile.c: Make my_endbss and my_endbss_static available on all
6638         platforms.
6640         * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
6641         * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
6643 2004-10-19  Luc Teirlinck  <teirllm@auburn.edu>
6645         * data.c (Flocal_variable_if_set_p): Doc fix.
6647 2004-10-19  Jason Rumney  <jasonr@gnu.org>
6649         * w32.c (init_environment): Set emacs_dir correctly when running
6650         emacs from the build directory.
6652 2004-10-19  Richard M. Stallman  <rms@gnu.org>
6654         * editfns.c (Fdelete_and_extract_region):
6655         If region is empty, return null string.
6657 2004-10-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6659         * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
6660         and canon_width.
6661         (xg_frame_cleared): Remove.
6663         * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
6664         (xg_find_top_left_in_fixed): Remove.
6665         (xg_create_scroll_bar): Put an event box widget between
6666         the scroll bar widget and the edit widget.
6667         (xg_show_scroll_bar): Show the parent widget (the event box).
6668         (xg_remove_scroll_bar): Destroy parent (the event box) also.
6669         (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
6670         Move the parent (the event box) widget inside the fixed widget.
6671         Move window clear to xterm.c.
6673         * gtkutil.h (xg_frame_cleared): Remove.
6675         * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
6676         (x_scroll_bar_create, XTset_vertical_scroll_bar):
6677         Remove arguments left and width to xg_update_scrollbar_pos.
6678         (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
6680 2004-10-19  Kenichi Handa  <handa@m17n.org>
6682         * xdisp.c (display_mode_element): Fix display of wide chars.
6684 2004-10-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6686         * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
6687         gdk_window_clear and move gdk_window_process_all_updates after
6688         clear so events are sent to the X server in correct order.
6690 2004-10-18  Kenichi Handa  <handa@m17n.org>
6692         * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
6693         comparing font names.
6694         (fs_query_fontset): Use fast_string_match for comparing fontset names.
6695         (list_fontsets): Likewise.
6697         * search.c (fast_string_match_ignore_case): New function.
6699         * lisp.h (fast_string_match_ignore_case): Extern it.
6701 2004-10-17  Kim F. Storm  <storm@cua.dk>
6703         * xdisp.c (overlay_arrow_at_row): Return overlay string rather
6704         than bitmap if there is not left fringe.
6705         (get_overlay_arrow_glyph_row): Also used on windows system.
6706         (display_line): Display overlay string if no left fringe.
6708 2004-10-16  Jason Rumney  <jasonr@gnu.org>
6710         * w32fns.c (w32_font_match): Encode font name being matched.
6712 2004-10-16  Richard M. Stallman  <rms@gnu.org>
6714         * window.c (Fspecial_display_p): Doc fix.
6716 2004-10-15  Stefan Monnier  <monnier@iro.umontreal.ca>
6718         * doc.c (Fsubstitute_command_keys): Fix remap-handling.
6719         Don't ignore menus, because where-is-internal already does it for us.
6721 2004-10-15  Kim F. Storm  <storm@cua.dk>
6723         * xdisp.c (redisplay_window): Only update fringes and vertical
6724         border on window frames.
6726 2004-10-14  Andreas Schwab  <schwab@suse.de>
6728         * m/ia64.h (DATA_SEG_BITS): Don't define.
6730 2004-10-14  Kim F. Storm  <storm@cua.dk>
6732         * xterm.h: Include Xutil.h after keysym.h to work around bug
6733         in some X versions.
6735 2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>
6737         * fns.c (map_char_table): Add missing gcpros.
6739 2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>
6741         * keymap.c (get_keymap): An autoload form is not a keymap.
6743         * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
6745 2004-10-13  Kim F. Storm  <storm@cua.dk>
6747         * callproc.c (Fcall_process): Simplify handling of display arg.
6748         Resume `display_on_the_fly' once a coding system is determined.
6750         * xdisp.c (redisplay_preserve_echo_area): Fix last change.
6752 2004-10-12  Kim F. Storm  <storm@cua.dk>
6754         * xdisp.c (redisplay_preserve_echo_area): Flush display in case
6755         caller, such as call-process, is not going to poll for input.
6756         (calc_line_height_property): Handle case where it->object is nil.
6758         * xterm.c (x_redisplay_interface): Fix flush_display_optional.
6760 2004-10-12  Kenichi Handa  <handa@m17n.org>
6762         * xdisp.c (get_next_display_element):
6763         If unibyte_display_via_language_environment is zero, display 8-bit
6764         chars in octal in unibyte buffer.
6766 2004-10-12  Kim F. Storm  <storm@cua.dk>
6768         * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
6769         are no ordinary bindings.
6771 2004-10-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6773         * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
6775 2004-10-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6777         * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
6778         (x_lower_frame): Add BLOCK_INPUT around SendBehind.
6779         (make_mac_frame): Add BLOCK_INPUT around the making of a
6780         terminal frame.
6781         (mac_initialize): Add BLOCK_INPUT around carbon initialization.
6782         * macgui.h (mktime): Use emacs_mktime.
6783         * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
6784         Make a cancel file-open dialog be like C-g.
6785         * mac.c (mktime): Use emacs_mktime.
6786         (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
6787         (Fmac_paste_function): Add better error handling for carbon cut/paste.
6789 2004-10-10  Kim F. Storm  <storm@cua.dk>
6791         * keyboard.c (timer_resume_idle): New function to resume idle
6792         timer without resetting timers on the idle list.
6793         (read_char): Use timer_resume_idle.  Remove local var last_idle_start.
6794         (timer_start_idle, timer_stop_idle): Declare static.
6795         (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
6797         * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
6799 2004-10-08  Steven Tamm  <steventamm@mac.com>
6801         * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
6802         * macterm.c (mac_check_for_quit_char): Remove warning for using
6803         NULL where 0 should be used.
6804         * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
6805         objc/malloc.h
6806         * mac.c: Include time.h for Tiger compatibility.
6808 2004-10-07  Kim F. Storm  <storm@cua.dk>
6810         * xdisp.c (redisplay_window): Fix flicker on vertical line between
6811         windows.  Update vertical line after drawing window fringes, but
6812         only if actually drawing any bitmaps--or there is no fringe.
6814         * xterm.c (x_update_window_end): Likewise.
6815         * macterm.c (x_update_window_end): Likewise.
6816         * w32term.c (x_update_window_end): Likewise.
6818         * fringe.c (draw_window_fringes): Return value now indicates if
6819         any fringe bitmaps were redrawn (or there are no fringes).
6821         * dispextern.h (draw_window_fringes): Update prototype.
6823 2004-10-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6825         * macfns.c (mac_get_window_bounds): Add extern.
6826         (x_real_positions): Use mac_get_window_bounds.
6828         * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
6829         xmenu.c (YAILOM).
6831         * macterm.c [!MAC_OSX]: Include Windows.h.
6832         (front_emacs_window): Rename from mac_front_window.  All uses
6833         changed.  Return the frontmost non-tooltip emacs window.
6834         (mac_get_window_bounds): New function.
6835         (x_calc_absolute_position): Use the difference of width and height
6836         between the inner and outer window.
6837         (x_set_offset): Specify window position by the coordinae of the
6838         outer window.  Adjust the position if the title bar is completely
6839         outside the screen.
6840         (app_is_suspended, app_sleep_time): Remove unused variables.
6841         (do_app_resume, do_app_suspend): Remove their contents because
6842         window-activate/deactivate events will do the job.
6843         (do_zoom_window): Remove unused variables.  Make compliant to the
6844         standard way of zooming.  Set f->left_pos and f->top_pos.
6845         (XTread_socket): Don't use argument `expected'.  Don't use
6846         FrontWindow to determine the clicked window.  Exclude unprocessed
6847         mouseUp cases in the early stage.  Add parentheses to fix operator
6848         precedence.
6849         (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
6851 2004-10-05  Jan Dj\e,Ad\e(Brv.  <jan.h.d@swipnet.se>
6853         * config.in: Regenerate.
6855         * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
6856         HAVE_EXECSHIELD.
6858 2004-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6860         * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
6861         a row if Alt or Meta has been found for that row.  Also stop scanning
6862         for Keysyms for that row.
6864 2004-10-04  Kim F. Storm  <storm@cua.dk>
6866         * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
6867         to list.  Include overlay arrow bitmap in return value.
6869         * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
6870         bars with fractional column width.  If scroll bar separates two
6871         windows, move it towards the window it belongs to.  Only update
6872         the padding area below the scroll bar widget when necessary,
6873         i.e. when scroll bar widget is created, moved, or resized.
6875         * xdisp.c (define_frame_cursor1): Do not change frame cursor
6876         while tracking/dragging mouse.
6877         (x_draw_vertical_border): Do not draw line if frame has scroll bars.
6879         * window.c (coordinates_in_window): Relax check for cursor
6880         on vertial border between mode lines.
6881         (Fset_window_fringes): Do not allow negative widths.
6882         (Fset_window_scroll_bars): Likewise.
6884         * .gdbinit (pp): Shorthand for p ARG + pr.
6885         (ff): New command: flush frame updates (X only).
6887 2004-10-03  Michael Albinus  <michael.albinus@gmx.de>
6889         * fileio.c (auto_save_1) Call Ffile_modes for remote files.
6891 2004-09-30  Kenichi Handa  <handa@m17n.org>
6893         * process.c (send_process): Free composition data.
6895         * fileio.c (Finsert_file_contents): Free composition data.
6897         * coding.c (code_convert_region): Don't skip ASCIIs if there are
6898         compositions to encode.
6899         (encode_coding_string): Likewise.  Free composition data.
6901 2004-09-30  Florian Weimer  <fw@deneb.enyo.de>
6903         * coding.c (code_convert_region): Free composition data.
6905 2004-09-29  Kim F. Storm  <storm@cua.dk>
6907         * fringe.c: Remove limit on number of bitmaps.
6908         (fringe_bitmaps, fringe_faces): Change to pointers.
6909         (max_fringe_bitmaps): New var.
6910         (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
6911         (init_fringe): Allocate fringe_bitmaps and fringe_faces.
6913         * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
6914         (struct glyph_row): Reorder fringe_bitmap related fields.
6915         (struct it): Likewise.
6917         * w32term.c (fringe_bmp): Change to pointer.
6918         (max_fringe_bmp): New var.
6919         (w32_define_fringe_bitmap): Expand fringe_bmp.
6920         (w32_draw_fringe_bitmap): Check max_fringe_bmp.
6921         (w32_destroy_fringe_bitmap): Likewise.
6923 2004-09-29  Kim F. Storm  <storm@cua.dk>
6925         * fringe.c: Simplify last change.
6926         (lookup_fringe_bitmap): New function.
6927         (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
6928         (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
6929         Keep standard bitmaps in Vfringe_bitmaps.
6930         (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
6931         (Fset_fringe_bitmap_face): Likewise.
6933         * dispextern.h (lookup_fringe_bitmap): Add prototype.
6934         (valid_fringe_bitmap_p): Remove prototype.
6936         * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
6938 2004-09-29  Kim F. Storm  <storm@cua.dk>
6940         * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
6941         (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
6943         * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
6945         * fringe.c (Vfringe_bitmaps): New variable.
6946         (syms_of_fringe): DEFVAR_LISP it.
6947         (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
6948         Change arg to Lisp_Object and fail if not an integer.
6949         (get_fringe_bitmap_name, resolve_fringe_bitmap)
6950         (destroy_fringe_bitmap): New functions.
6951         (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
6952         Use destroy_fringe_bitmap.  Remove symbol from Vfringe_bitmaps and
6953         clear its fringe property.
6954         (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
6955         Fdestroy_fringe_bitmap.
6956         (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
6957         bitmap symbol; remove WHICH arg.  Add symbol to Vfringe_bitmaps
6958         and set fringe property.  Signal error if no free slots.
6959         (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
6960         (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
6962         * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
6963         symbols with a fringe property.
6965 2004-09-27  Kim F. Storm  <storm@cua.dk>
6967         * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
6968         Doc fix.  Format may now be a symbol or alist, not a cons.
6970         * fringe.c (update_window_fringes): Handle new formats of
6971         indicate-buffer-boundaries (symbol or alist).  No longer
6972         allow a simple cons.
6973         (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
6975 2004-09-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6977         * config.in: Rebuild.
6979 2004-09-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6981         * config.in: Rebuild.
6983         * Makefile.in: Run setarch i386 ./temacs if exec-shield  is present.
6985 2004-09-18  Stefan Monnier  <monnier@iro.umontreal.ca>
6987         * xterm.c (x_term_init): Work around a bug in some X servers.
6989 2004-09-18  Richard M. Stallman  <rms@gnu.org>
6991         * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
6993         * xdisp.c (try_window_reusing_current_matrix):
6994         Handle the case where we reach the old displayed text,
6995         out of sync with the old line boundary.
6997 2004-09-14  Stefan Monnier  <monnier@iro.umontreal.ca>
6999         * fileio.c (Finsert_file_contents): Fix case of replacement in a
7000         narrowed buffer.
7002 2004-09-14  Kim F. Storm  <storm@cua.dk>
7004         * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
7006         * xfaces.c (Qface_no_inherit): New var.
7007         (syms_of_xfaces): Intern and staticpro it.
7008         (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
7009         (Finternal_copy_lisp_face, update_face_from_frame_parameter):
7010         Don't increment face_change_count when face has non-nil
7011         face-no-inherit property.
7013 2004-09-13  Stefan Monnier  <monnier@iro.umontreal.ca>
7015         * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
7016         (Fbyte_code): Remove dead code after `wrong_type_argument'.
7018         * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
7019         before doing the mark_stack_check_gcpros since they're not on the stack.
7021 2004-09-12  Kim F. Storm  <storm@cua.dk>
7023         * editfns.c (Fformat): Handle format strings with multiple text
7024         properties.  Reverse text property list from the format string,
7025         so the positions are in increasing order.
7027 2004-09-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7029         * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
7030         x_uncatch_errors so that possible protocol errors are delivered.
7032 2004-09-10  Eli Zaretskii  <eliz@gnu.org>
7034         * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
7035         blockinput.h.
7036         (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
7037         charset.h, and coding.h
7038         (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
7039         (term.o): Depend on window.h and keymap.h.
7040         (abbrev.o): Depend on syntax.h.
7041         (callint.o): Depend on keymap.h.
7042         (casefiddle.o): Depend on charset.h and keymap.h.
7043         (category.o): Depend on keymap.h.
7044         (coding.o): Depend on dispextern.h.
7045         (cmds.o): Depend on keyboard.h and keymap.h.
7046         (dispnew.o): Depend on indent.h and intervals.h.
7047         (doc.o): Depend on keymap.h.
7048         (editfns.o): Depend on frame.h.
7049         (emacs.o): Depend on dispextern.h.
7050         (fileio.o): Don't depend on ccl.h.
7051         (filelock.o): Depend on charset.h and coding.h.
7052         (frame.o): Depend on w32term.h and macterm.h.
7053         (insdel.o): Depend on region-cache.h.
7054         (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
7055         (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
7056         (search.o): Depend on $(INTERVALS_SRC).
7057         (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
7058         (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
7059         xterm.h, w32term.h, and macterm.h.
7060         (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
7061         w32term.h, and macterm.h.
7062         (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
7063         region-cache.h, xterm.h, w32term.h, and macterm.h.
7064         (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
7065         (data.o): Depend on frame.h.
7066         (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
7067         (print.o): Depend on termchar.h and $(INTERVALS_SRC).
7068         (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
7069         (intervals.o): Depend on keymap.h.
7071         * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
7072         Add debugging print-out to termscript.
7074 2004-09-09  Richard M. Stallman  <rms@gnu.org>
7076         * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
7078 2004-09-08  Richard M. Stallman  <rms@gnu.org>
7080         * window.c (Fset_window_buffer): Doc fix.
7082         * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
7084 2004-09-08  Dan Nicolaescu  <dann@ics.uci.edu>
7086         * minibuf.c (history_delete_duplicates): New variable.
7087         (read_minibuf): Use it.
7088         (syms_of_minibuf): Create the corresponding lisp variable.
7090 2004-09-08  Kim F. Storm  <storm@cua.dk>
7092         * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
7093         overlay just before point.
7095 2004-09-07  Luc Teirlinck  <teirllm@auburn.edu>
7097         * buffer.h (struct buffer): Add auto_save_file_format field.
7098         * buffer.c (reset_buffer, init_buffer_once):
7099         Handle auto_save_file_format field.
7100         (syms_of_buffer): Add DEFVAR_PER_BUFFER for
7101         `buffer-auto-save-file-format'.
7102         * fileio.c: Delete declaration for removed Vauto_save_file_format.
7103         (build_annotations): Adapt to replacement of
7104         `auto-save-file-format' with the new buffer-local variable
7105         `buffer-auto-save-file-format'.
7106         (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
7108 2004-09-07  Jason Rumney  <jasonr@gnu.org>
7110         * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
7112         * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
7113         Handle Unicode menu titles.
7115 2004-09-07  Kim F. Storm  <storm@cua.dk>
7117         * xdisp.c (set_cursor_from_row): Fix last change.  Only use 'cursor'
7118         property from text property or overlay strings at point.
7120 2004-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
7122         * xmenu.c (update_submenu_strings): YAILOM.
7123         (set_frame_menubar): Make sure last_i is initialized.
7125 2004-09-03  Jason Rumney  <jasonr@gnu.org>
7127         * w32menu.c (_widget_value): Add lname and lkey.
7128         (digest_single_submenu): Set lname and lkey in widget_value
7129         instead of name and key.
7130         (update_submenu_strings): New function.
7131         (set_frame_menubar): Remove call to inhibit_garbage_collection,
7132         call update_submenu_strings.
7134         * w32menu.c (globals_of_w32menu): Check for Unicode API.
7135         (digest_single_submenu, w32_menu_show): Encode menu strings as
7136         UTF-8 if Unicode API is available.
7137         (utf8to16): New function.
7138         (add_menu_item): Use it when calling Unicode API.
7140 2004-09-03  Kim F. Storm  <storm@cua.dk>
7142         * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
7143         in overlay or text-property strings; set cursor on corresponding
7144         glyph rather than at end of the string.
7146 2004-09-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7148         * macfns.c (x_real_positions): Save the current window port and
7149         set a new one before obtaining the global coordinate.
7150         Use FRAME_MAC_WINDOW.
7151         (x_set_name, x_set_title): Encode title to UTF8.
7152         Use SetWindowTitleWithCFString.
7153         (Fx_server_version): Get correct OS version.
7155         * macmenu.c (add_menu_item): Remove unused variable `i'.
7156         Don't let separator items destroy refence constants of other menu items.
7158         * macterm.c (x_update_end): Move SetPortWindowPort to inside
7159         BLOCK_INPUT.
7160         (x_set_offset): Use FRAME_MAC_WINDOW.
7162         * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
7163         nontext_cursor if it is on a scroll bar.
7165         * s/darwin.h (LIBS_CARBON): New define to specify libraries for
7166         Carbon support.
7167         (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
7168         Use LIBS_CARBON.
7170 2004-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7172         * xfns.c (x_set_name_internal): New function.  Check if we shall call
7173         xfree before ENCODE_UTF_8.
7174         (x_set_name, x_set_title): Call x_set_name_internal.
7176 2004-08-31  NAKAMURA Toshikazu  <nr-tkz@nifty.com>  (tiny change)
7178         * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
7179         reload it.
7181 2004-08-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7183         * macmenu.c (_widget_value): Add lname and lkey.
7184         (single_submenu): Set lname and lkey in widget_value
7185         instead of name and key.
7186         (update_submenu_strings): New function.
7187         (set_frame_menubar): Remove call to inhibit_garbage_collection,
7188         call update_submenu_strings.
7190         * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
7191         instead of name and key.
7192         (update_submenu_strings): New function.
7193         (set_frame_menubar): Remove call to inhibit_garbage_collection,
7194         call update_submenu_strings.
7196         * gtkutil.h (_widget_value): Added lname and lkey.
7198 2004-08-30  Steven Tamm  <steventamm@mac.com>
7200         * macmenu.c (mac_menu_show): Remove shadowing of menu variable
7201         by using different names for inner loop variables.
7203 2004-08-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7205         * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
7206         from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
7208         * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
7209         tool bar items is 0.
7211 2004-08-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7213         * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
7214         strings in menu items.
7215         (single_submenu): Use ENCODE_MENU_STRING
7216         (mac_menu_show): Use ENCODE_MENU_STRING.  Reset grabbed because
7217         button release isn't passed to event loop
7218         (add_menu_item): Use SetMenuItemWithCFString
7220 2004-08-26  Steven Tamm  <steventamm@mac.com>
7222         * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
7223         tool-bar/menu click.
7224         * macfns.c (Fx_file_dialog): Implement using NavServices.
7226 2004-08-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7228         * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
7230         * xfns.c (x_window_to_frame, x_any_window_to_frame)
7231         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
7232         (x_top_window_to_frame): Return 0 if wdesc is None.
7234 2004-08-22  Richard M. Stallman  <rms@gnu.org>
7236         * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
7237         HAVE_TERMIOS]: If there's no char for this signal, drop through
7238         and use system calls.
7240         * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
7242 2004-08-20  Kim F. Storm  <storm@cua.dk>
7244         * process.c (wait_reading_process_output): Rename from
7245         wait_reading_process_input.  All uses changed.
7246         (wait_reading_process_output_1): Rename from
7247         wait_reading_process_input_1.  All uses changed.
7249         * dispnew.c (Fsleep_for): Remove obsolete code.
7251 2004-08-20  Kenichi Handa  <handa@m17n.org>
7253         * syntax.c (skip_chars): Fix for unibyte case.
7255 2004-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
7257         * syntax.c (char_quoted): Mixup byte/char pos.
7258         (back_comment): Fixup globals in all cases.
7260 2004-08-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7262         * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
7263         passing it to gtk_window_set_title.
7265 2004-08-19  Kim F. Storm  <storm@cua.dk>
7267         * process.c (wait_reading_process_input): Clean up.
7268         Add wait_for_cell, wait_proc, and just_wait_proc args
7269         to avoid overloading `read_kbd' and `do_display' args.
7270         Change read_kbd arg to int.  All callers changed.
7272         * process.c (process_send_signal): Use CDISABLE.
7274         * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
7276 2004-08-18  Kim F. Storm  <storm@cua.dk>
7278         * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
7279         forward to wait_reading_process_input via DO_DISPLAY arg.
7280         (wait_reading_process_input): If DO_DISPLAY < 0 for a process
7281         object, only process output from that process; also inhibit
7282         running timers if DO_DISPLAY==-2.
7284 2004-08-17  Kim F. Storm  <storm@cua.dk>
7286         * process.c (process_send_signal): Fix last change--use
7287         _POSIX_VDISABLE instead of CVDISABLE when available.
7289 2004-08-16  Richard M. Stallman  <rms@gnu.org>
7291         * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
7292         Set VQUIT and VINTR chars to the standard ones if they are unset.
7293         [AIX]: Don't do that here.  And don't force VINTR to standard
7294         when SIGNALS_VIA_CHARACTERS.
7296         * process.c (process_send_signal)
7297         [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
7298         Do nothing if the character is CVDISABLE.
7300         * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
7302         * intervals.c (move_if_not_intangible):
7303         Force POSITION to be between BEGV and ZV.
7305 2004-08-14  John Paul Wallington  <jpw@gnu.org>
7307         * buffer.c (Frestore_buffer_modified_p): Doc fix.
7309         * fileio.c (Fread_file_name): Doc fix.
7311         * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
7313 2004-08-09  Luc Teirlinck  <teirllm@auburn.edu>
7315         * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
7317 2004-08-08  Luc Teirlinck  <teirllm@auburn.edu>
7319         * keyboard.c: Declare Qdisabled_command_function instead of
7320         Qdisabled_command_hook.
7321         (Fcommand_execute): Use Qdisabled_command_function instead of
7322         Qdisabled_command_hook.
7323         (syms_of_keyboard): Ditto.
7325 2004-08-07  Luc Teirlinck  <teirllm@auburn.edu>
7327         * keymap.c (Flocal_key_binding, Fglobal_key_binding)
7328         (syms_of_keymap) <key-translation-map>: Doc fixes.
7330 2004-08-07  Stefan Monnier  <monnier@iro.umontreal.ca>
7332         * window.c (window_list_1): YAILOM.
7334         * fileio.c (make_temp_name): Handle multibyte prefixes.
7336 2004-08-06  Luc Teirlinck  <teirllm@auburn.edu>
7338         * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
7339         Doc fix.
7341 2004-08-03  Kenichi Handa  <handa@m17n.org>
7343         * coding.c (decode_coding_string): Adjust coding->consumed, and
7344         etc. with shrinked_bytes.
7346 2004-08-03  Kim F. Storm  <storm@cua.dk>
7348         * indent.c (compute_motion): Fix check for full width window
7349         in non-window case.  Do not count left truncation glyph on
7350         window systems.
7352 2004-08-02  Luc Teirlinck  <teirllm@auburn.edu>
7354         * data.c (Finteractive_form): Doc fix.
7356 2004-08-02  Kim F. Storm  <storm@cua.dk>
7358         * indent.c (compute_motion): Use actual window width if WIDTH is -1,
7359         properly accounting for continuation glyph on non-window systems.
7360         (Fcompute_motion): Use actual window width if WIDTH is nil, and
7361         actual window width/height if TOPOS is nil, properly accounting for
7362         continuation glyphs on non-window systems, and optional header lines.
7363         (vmotion): Let compute_motion calculate actual window width.
7365         * window.c (window_scroll_line_based): Let compute_motion
7366         calculate actual window width.
7368 2004-08-02  Kim F. Storm  <storm@cua.dk>
7370         * process.c (read_process_output): Use whole read buffer.
7371         Don't trigger adaptive read buffering on errors.
7373 2004-07-31  Luc Teirlinck  <teirllm@auburn.edu>
7375         * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
7377         * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
7379         * callint.c (Fcall_interactively): Doc fix.
7381 2004-07-30  Richard M. Stallman  <rms@gnu.org>
7383         * abbrev.c (Fexpand_abbrev): Undo previous change.
7385 2004-07-30  Kim F. Storm  <storm@cua.dk>
7387         * editfns.c (Fformat): Allocate extra (dummy) element in info.
7389 2004-07-28  Luc Teirlinck  <teirllm@auburn.edu>
7391         * eval.c (Fdefvar, Fdefconst): Doc fixes.
7393 2004-07-27  Kim F. Storm  <storm@cua.dk>
7395         * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
7396         we have ensured that the glyph fits on the current line (or returned
7397         MOVE_LINE_CONTINUED otherwise).
7399 2004-07-26  Kim F. Storm  <storm@cua.dk>
7401         * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
7402         is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
7403         if target position is at end of display line but char is not a newline.
7405 2004-07-25  Richard M. Stallman  <rms@gnu.org>
7407         * window.c (coordinates_in_window): Return ON_SCROLL_BAR
7408         instead of ON_VERTICAL_BORDER, when on scroll bar.
7409         (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
7411         * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
7413         * window.c (Fcoordinates_in_window_p):
7414         Take account of FRAME_INTERNAL_BORDER_WIDTH.
7416         * alloc.c (check_cons_list): New function (contents commented out).
7418 2004-07-24  Luc Teirlinck  <teirllm@auburn.edu>
7420         * xfaces.c (Fcolor_supported_p): Doc fix.
7422         * frame.c (Fselect_frame, Fset_frame_selected_window)
7423         (Fframe_visible_p, Fraise_frame): Doc fixes.
7425 2004-07-24  Richard M. Stallman  <rms@gnu.org>
7427         * keyboard.h (not_single_kboard_state): Declare.
7429         * fileio.c (Fwrite_region): Doc fix.
7431         * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
7433         * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
7434         only when a real abbrev is present.
7436         * xfns.c (x_icon_verify): New function.
7437         (Fx_create_frame): Use it.
7439 2004-07-22  Barry Fishman  <barry_fishman@att.net>  (tiny change)
7441         * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
7443 2004-07-21  Kim F. Storm  <storm@cua.dk>
7445         * window.h (struct glyph_matrix): New members nrows_scale_factor
7446         and ncols_scale_factor.
7448         * window.c (make_window): Initialize nrows_scale_factor and
7449         ncols_scale_factor members.
7451         * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
7452         (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
7453         (required_matrix_height): Apply nrows_scale_factor.
7454         (required_matrix_width): Apply ncols_scale_factor.
7456         * xdisp.c (display_line): Increment nrows_scale_factor and set
7457         fonts_changed_p if past last allocated row.
7458         (append_glyph, append_composite_glyph, produce_image_glyph)
7459         (append_stretch_glyph): Increment ncols_scale_factor and set
7460         fonts_changed_p if current area is full.
7462 2004-07-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7464         * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
7466 2004-07-19  Luc Teirlinck  <teirllm@auburn.edu>
7468         * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
7469         (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
7470         (Fset_window_start, Fscroll_up, Fscroll_down)
7471         (Fother_window_for_scrolling, Fscroll_other_window)
7472         (Fsave_window_excursion, Fset_window_vscroll)
7473         (syms_of_window) <window-size-fixed>: Doc fixes.
7475 2004-07-19  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
7477         * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
7478         ENCODE_SYSTEM for filenames.
7480 2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7482         * mac.c (sys_select): Block input around call to
7483         ReceiveNextEvent to prevent breakage.  Correctly handle
7484         blocking on event queue only by calling ReceiveNextEvent
7485         instead of select (since GUI events aren't on an fd).
7486         (sys_read): Remove function
7487         * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
7489 2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7491         * mac.c (sys_select): Redo sys_select to use alarm-based
7492         polling instead of 1 sec timeouts (like solaris).
7494         * macterm.c (x_make_frame_visible): Comment in polling on
7495         frame creation.
7497         * keyboard.c: Undef SIGIO on Carbon
7499         * atimer.c (alarm_signal_handler): Call alarm handlers after
7500         scheduling.
7502         * eval.c (Feval): Remove quit_char test
7504         * process.c (wait_reading_process_input): Remove clearing
7505         stdin for select call on process input.
7507 2004-07-18  Luc Teirlinck  <teirllm@auburn.edu>
7509         * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
7510         capitalization error in docstring.
7512 2004-07-17  Juanma Barranquero  <lektu@terra.es>
7514         * keyboard.c (not_single_kboard_state): Do nothing unless
7515         MULTI_KBOARD is defined.
7517 2004-07-17  Richard M. Stallman  <rms@gnu.org>
7519         * window.c (coordinates_in_window): Inside the window but outside
7520         its box to the L or R, return ON_VERTICAL_BORDER.
7521         (window_list_1): Rotate the list to start with WINDOW.
7523         * print.c (print_preprocess): Test for print_depth at limit
7524         before entering in being_printed.
7526         * keyboard.c (not_single_kboard_state): New function.
7527         (stuff_buffered_input): Now no-op only if no SIGTSTP.
7529         * frame.c (Fdelete_frame): If we're in single_bboard_state on
7530         this kboard, and we delete its last frame, go to any_kboard_state.
7532         * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
7534 2004-07-15  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
7536         * w32fns.c (Fx_file_dialog): Encode strings in system coding
7537         system before passing them to OS functions for display.
7539 2004-07-15  David Kastrup  <dak@gnu.org>
7541         * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
7542         Apparently fixes an abort condition.
7544 2004-07-14  Luc Teirlinck  <teirllm@auburn.edu>
7546         * fileio.c (Fvisited_file_modtime): Return a list of two integers,
7547         instead of a cons.
7549 2004-07-14  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
7551         * keyboard.c (echo_dash): Do nothing if there already is a dash
7552         at the end of the echo string.
7554 2004-07-12  Kim F. Storm  <storm@cua.dk>
7556         * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
7557         if GC_MARK_STACK.
7559 2004-07-10  Luc Teirlinck  <teirllm@auburn.edu>
7561         * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
7563         * window.c (Fwindow_buffer, Fother_window,  Fget_lru_window)
7564         (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
7565         (Freplace_buffer_in_windows, Fset_window_buffer)
7566         (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
7567         (syms_of_window): Expand docstring of `display-buffer-function'.
7569 2004-07-09  Luc Teirlinck  <teirllm@auburn.edu>
7571         * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
7572         (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
7573         that time values of the type (HIGH . LOW) are considered obsolete.
7575 2004-07-06  Luc Teirlinck  <teirllm@auburn.edu>
7577         * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
7578         docstring.
7580         * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
7582 2004-07-06  John Paul Wallington  <jpw@gnu.org>
7584         * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
7586         * fns.c (Fclear_string): Signal an error if STRING is not a string.
7588 2004-07-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7590         * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
7591         instead of CGMainDisplayID (only in OSX 10.2 and later).
7593 2004-07-04  John Paul Wallington  <jpw@gnu.org>
7595         * fileio.c (read_file_name_completion_ignore_case): New variable.
7596         (syms_of_fileio): Declare and initialise it.
7597         (Fread_file_name): Bind `completion-ignore-case' to respect it.
7599 2004-07-03  Eli Zaretskii  <eliz@gnu.org>
7601         * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
7602         for event.x and event.y.
7604 2004-07-01  Kenichi Handa  <handa@m17n.org>
7606         * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
7607         after getting a new string by pre-write-conversion.
7609 2004-06-30  Stefan Monnier  <monnier@iro.umontreal.ca>
7611         * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
7612         (x_calc_absolute_position): Remove unused var `child'.
7614         * xfaces.c (x_supports_face_attributes_p)
7615         (Fdisplay_supports_face_attributes_p): YAILOM.
7616         (tty_supports_face_attributes_p): Remove unused var `i'.
7618         * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
7619         back_unibyte_ok.
7621         * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
7623         * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
7625         * Makefile.in (${etc}DOC): Fix file name of make-docfile.
7627 2004-06-30  Andreas Schwab  <schwab@suse.de>
7629         * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
7630         (Finit_image_library): Pass LIBRARIES through to
7631         CHECK_LIB_AVAILABLE.  Declare parameters.  Doc fix.
7632         (lookup_image_type): Pass Qnil as second argument to
7633         Finit_image_library.
7635         * lisp.h (Finit_image_library): Declare.
7637 2004-06-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7639         * macterm.c (do_window_activate, do_window_deactivate): Remove.
7640         (XTread_socket): Send mouse button events to the toolbox
7641         dispatcher even when the mouse is grabbed.  Don't process window
7642         activate events for non-Emacs windows.  Replace function calls to
7643         do_window_activate and do_window_deactivate with their contents.
7644         Reset mouse grabbing status when a window is deactivated.
7646 2004-06-29  Steven Tamm  <steventamm@mac.com>
7648         * macterm.c (mac_get_emulated_btn)
7649         (mac_event_to_emacs_modifiers): Fix emulated mouse button
7650         support to correctly mask out modifiers.
7652 2004-06-29  David Kastrup  <dak@gnu.org>
7654         * search.c (Fset_match_data): Allow buffer before end of list
7655         which can happen if set-match-data is using a pre-consed list.
7657 2004-06-28  Steven Tamm  <steventamm@mac.com>
7659         * macterm.c (XTread_socket): Correctly set the frame position
7660         after the window is moved.
7662 2004-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7664         * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
7665         gpix and gmask just before return to avoid memory leak.
7666         (xg_get_image_for_pixmap): Add workaround for monochrome displays
7667         so insensitive and activated icons look ok.
7669 2004-06-27  Jason Rumney  <jasonr@gnu.org>
7671         * w32fns.c (file_dialog_callback): Disable edit control if set
7672         to directories only on CDN_INITDONE message.
7673         (Fx_file_dialog): Default to directories only when prompt starts
7674         with "Dired".
7676 2004-06-25  Kim F. Storm  <storm@cua.dk>
7678         * alloc.c (allocate_misc): Update total_free_markers.
7679         (free_misc): New function.
7680         (safe_alloca_unwind, free_marker): Use it.
7682         * lisp.h (free_misc): Add prototype.
7684         * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
7686 2004-06-24  Richard M. Stallman  <rms@gnu.org>
7688         * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
7689         (syms_of_emacs): Lisp variables deleted.
7691 2004-06-23  David Kastrup  <dak@gnu.org>
7693         * search.c (Freplace_match): Adjust the match-data more thoroughly
7694         when replacing strings in the buffer.
7695         (Fmatch_data): When INTEGERS is non-nil and the last match was in
7696         a buffer, add the buffer as last element to the match data.
7697         (Fset_match_data): If an additional element of the match-data is a
7698         buffer, restore it to last_thing_searched.
7699         (save_search_regs): Save last_thing_searched as part of the match data.
7700         (restore_match_data): Restore it again.
7702 2004-06-23  Luc Teirlinck  <teirllm@auburn.edu>
7704         * keymap.c (Ftext_char_description): Doc fix.
7705         * doc.c (Fsnarf_documentation): Doc fix.
7707 2004-06-22  Kim F. Storm  <storm@cua.dk>
7709         * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
7711         * lisp.h (struct Lisp_Save_Value): New member dogc.
7712         (SAFE_ALLOCA_LISP): Change second arg to number of elements.
7713         Set dogc member in Lisp_Save_Value object so it will be GC'ed.
7714         (SAFE_FREE_LISP): New macro.
7716         * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
7717         (make_save_value): Init new dogc member.
7718         (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
7720         * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
7721         SAFE_FREE_LISP macros.
7723 2004-06-22  Kim F. Storm  <storm@cua.dk>
7725         * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
7726         Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
7727         in that memory area are unknown to GC.  Add comments.
7729         * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
7731 2004-06-21  Kim F. Storm  <storm@cua.dk>
7733         * lisp.h (MAX_ALLOCA): Define here.
7734         (safe_alloca_unwind): Add prototype.
7735         (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
7737         * alloc.c (safe_alloca_unwind): New function.
7739         * casefiddle.c (casify_object): Use SAFE_ALLOCA.
7741         * charset.c (Fstring): Use SAFE_ALLOCA.
7743         * coding.c (MAX_ALLOCA): Remove define.
7745         * data.c (MAX_ALLOCA): Remove define.
7746         (Faset): Use SAFE_ALLOCA.
7748         * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
7750         * fns.c (string_make_multibyte, string_to_multibyte)
7751         (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
7752         (MAX_ALLOCA): Remove define.
7753         (Fbase64_encode_region, Fbase64_encode_string)
7754         (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
7755         (Fbase64_encode_region, Fbase64_encode_string): Fix potential
7756         memory leak if encoding fails.
7758         * xdisp.c (add_to_log): Use SAFE_ALLOCA.
7760 2004-06-21  Eli Zaretskii  <eliz@gnu.org>
7762         * print.c (Fwith_output_to_temp_buffer): Doc fix.
7764 2004-06-20  Richard M. Stallman  <rms@gnu.org>
7766         * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
7768         * search.c (match_limit): Cleaner err msg when no match data available.
7770         * window.c (syms_of_window): Doc fix.
7772         * keyboard.c (command_loop_1): Handle values `only' and `identity'
7773         for Vtransient_mark_mode.
7775         * buffer.c (syms_of_buffer): Doc fix.
7777 2004-06-21  David Kastrup  <dak@gnu.org>
7779         * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
7780         and unbinding of `case-fold-search' according to
7781         `completion-ignore-case' around calls of string-match and
7782         predicates, respectively.  Should give satisfactory performance
7783         in all relevant cases.
7785 2004-06-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7787         * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
7788         clip_x/y_origin.
7790         * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
7792         * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
7794         * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
7795         on Mac OSX.
7797 2004-06-16  Luc Teirlinck  <teirllm@auburn.edu>
7799         * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
7801 2004-06-16  Kim F. Storm  <storm@cua.dk>
7803         * dispextern.h (Vimage_types): Remove extern.
7805 2004-06-16  Miles Bader  <miles@gnu.org>
7807         * image.c (lookup_image_type): Initialize image type if necessary.
7809 2004-06-15  Kim F. Storm  <storm@cua.dk>
7811         * xdisp.c (try_cursor_movement): Exclude header line from scroll
7812         margin at top of window.
7813         (try_window_reusing_current_matrix): Calculate proper cursor position
7814         after scrolling up with non-zero scroll margin, as the old cursor
7815         position corresponds to value of PT before executing this command.
7816         (try_window_id): Consider scroll margin at bottom of window too;
7817         otherwise we fail to scroll when hl-line-mode is enabled.
7819         * syntax.c (skip_chars): Only recognize [:class:] when it has the
7820         proper format and class is a lower-case word.
7822 2004-06-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7824         * gtkutil.c (xg_get_image_for_pixmap): New function.
7825         (xg_get_gdk_pixmap_and_mask): Remove.
7826         (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
7827         xg_get_gdk_pixmap_and_mask.
7829         * xterm.h (struct x_display_info): Typo in comment fixed.
7831 2004-06-14  Juanma Barranquero  <lektu@terra.es>
7833         * dispextern.h (Vimage_types): Make it conditional on
7834         HAVE_WINDOW_SYSTEM.
7836         * image.c (Vimage_types): Move from xdisp.c.
7837         (Vimage_type_cache): New variable.
7838         (define_image_type): New argument indicating whether an image
7839         library was loaded; cache loaded status and return t on success,
7840         nil otherwise.
7841         (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
7842         (w32_delayed_load): New function to load an image library from a
7843         list of possible filenames.
7844         (init_xpm_functions, init_png_functions, init_jpeg_functions)
7845         (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
7846         (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
7847         (Finit_image_library): New function, extracted from `init_image'.
7848         Try to initialize an image library on demand and cache whether we
7849         were successful or not.
7850         (syms_of_image): Initialize `Vimage_types' and
7851         `Vimage_type_cache'.  Add recognized image types to Vimage_types.
7852         Export `init-image-library'.
7853         (init_image): Remove initialization of all image types, except xbm
7854         and pbm.
7856         * xdisp.c (Vimage_types): Delete (moved to image.c).
7858 2004-06-14  Andreas Schwab  <schwab@suse.de>
7860         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
7861         Avoid calling specbind when completion-regexp-list is empty.
7863 2004-06-13  Richard M. Stallman  <rms@gnu.org>
7865         * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
7866         (re_wctype, re_iswctype, re_wctype_to_bit):
7867         Non-function definitions moved here from regex.c.
7869         * regex.c (re_wctype, re_iswctype): Function defs longer static.
7870         (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
7871         (re_wctype, re_iswctype, re_wctype_to_bit):
7872         Non-function definitions moved to regex.h.
7874         * window.c (Fselect_window): Doc fix.
7876         * syntax.c: Include regex.h.
7877         (skip_chars): New arg HANDLE_ISO_CLASSES.  Callers changed.
7878         If requested, make a list of classes, then check the scanned
7879         chars for membership in them.
7880         (in_classes): New function.
7881         Doc fix.
7883         * keyboard.c (cmd_error): Don't call any_kboard_state
7884         if inside a recursive edit level.
7886 2004-06-13  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
7888         * keyboard.c (command_loop): Call any_kboard_state before
7889         command_loop_2 when at top level.
7891 2004-06-13  Andreas Schwab  <schwab@suse.de>
7893         * print.c (print_object): Always use %ld for printing EMACS_INT.
7895         * keyboard.c (cancel_hourglass_unwind): Return a value.
7896         (modify_event_symbol): Always use %ld for printing EMACS_INT.
7897         (Fexecute_extended_command): Likewise.
7899         * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
7900         avoid clashes.
7901         (SYNTAX): Likewise.
7902         (SYNTAX_WITH_FLAGS): Likewise.
7903         (SYNTAX_MATCH): Likewise.
7905         * syntax.c (char_quoted): Avoid warning about undefined operation.
7906         (find_defun_start): Likewise.
7907         (scan_lists): Likewise.
7908         (INC_FROM): Likewise.
7909         (scan_sexps_forward): Likewise.
7911         * image.c: Include <ctype.h>.
7913         * xfaces.c (face_attr_equal_p): Declare parameters.
7915 2004-06-13  Kenichi Handa  <handa@m17n.org>
7917         * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
7919 2004-06-12  Matthew Mundell  <matt@mundell.ukfsn.org>
7921         * eval.c (Fdefun): Signal an error if NAME is not a symbol.
7923 2004-06-12  Kenichi Handa  <handa@m17n.org>
7925         * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
7926         ccl_prog_stack_struct and update it.
7927         (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
7928         (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
7929         ccl->eof_ic on EOF.
7930         (ccl_debug_hook): New function.
7931         (struct ccl_prog_stack): New member eof_ic.
7932         (ccl_driver): Handle EOF in subrountine call correctly.
7934 2004-06-11  Kenichi Handa  <handa@m17n.org>
7936         * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
7938 2004-06-11  Kim F. Storm  <storm@cua.dk>
7940         * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
7942 2004-06-11  Juanma Barranquero  <lektu@terra.es>
7944         * keyboard.c (Fposn_at_point): Doc fix.
7946 2004-06-11  David Kastrup  <dak@gnu.org>
7948         * search.c (match_limit): Don't flag an error if match-data
7949         exceeding the allocated search_regs.num_regs gets requested, just
7950         return Qnil.
7952 2004-06-08  Miles Bader  <miles@gnu.org>
7954         * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
7956 2004-06-07  Juanma Barranquero  <lektu@terra.es>
7958         * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
7959         (Fcurrent_time_string, Fcurrent_time_zone)
7960         (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
7962 2004-06-07  Miles Bader  <miles@gnu.org>
7964         * xfaces.c (struct named_merge_point): New type.
7965         (push_named_merge_point): New function.
7966         (merge_named_face): New function.
7967         (merge_face_ref, face_at_buffer_position, face_at_string_position):
7968         Use `merge_named_face'.
7969         (merge_face_inheritance): Function removed.
7970         (merge_face_ref): Rename from `merge_face_vector_with_property'.
7971         Add new `err_msgs' and `named_merge_points' args.  Return error
7972         status.  Only print error messages if ERR_MSGS is true.  Don't try to
7973         do :inherit attribute validation.
7974         (merge_face_heights): Handle `unspecified' in both directions.
7975         (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
7976         Call `merge_face_ref' instead of `merge_face_inheritance'.
7977         (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
7978         (compute_char_face, face_at_buffer_position)
7979         (face_at_string_position): Call `merge_face_ref' instead of
7980         `merge_face_vector_with_property'.
7982 2004-06-07  Kenichi Handa  <handa@m17n.org>
7984         * coding.c (find_safe_codings): Check NILP (safe_codings) only at
7985         the necessary places.
7987 2004-06-07  Kim F. Storm  <storm@cua.dk>
7989         * process.c (Fdelete_process): Undo 2004-05-28 change.
7990         Instead, call status_notify also for network process.
7991         (status_message): Use process instead of status as arg.
7992         Give messages "deleted" or "connection broken by remote peer" for
7993         an exited network process.
7994         (status_notify): Change call to status_message.
7995         (read_process_output): Increase readmax to 4096.  Do not increase
7996         buffer size for datagram channels (default is now large enough).
7998 2004-06-06  Steven Tamm  <tamm@Steven-Tamms-Computer.local>
8000         * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
8001         problem due to newly defined variable.
8003 2004-06-06  Miles Bader  <miles@gnu.org>
8005         * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
8006         immediately if non-interactive or not initialized.
8008 2004-06-05  Richard M. Stallman  <rms@gnu.org>
8010         * minibuf.c (Fcompleting_read): Doc fix.
8012 2004-06-05  Andreas Schwab  <schwab@suse.de>
8014         * macfns.c (x_create_tip_frame): Fix declaration after statement.
8016 2004-06-05  Juanma Barranquero  <lektu@terra.es>
8018         * keymap.c (Fdescribe_vector): Fix docstring.
8019         (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
8021 2004-06-05  Miles Bader  <miles@gnu.org>
8023         * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
8024         attributes have different values than the default face.
8026 2004-06-04  Eli Zaretskii  <eliz@gnu.org>
8028         * xfaces.c (x_supports_face_attributes_p): Make this function
8029         conditional on HAVE_WINDOW_SYSTEM.
8030         (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
8031         Don't call x_supports_face_attributes_p if it was not compiled in.
8033 2004-06-04  Miles Bader  <miles@gnu.org>
8035         * xfaces.c (tty_supports_face_attributes_p): New function, mostly
8036         from Ftty_supports_face_attributes_p.
8037         (x_supports_face_attributes_p): New function.
8038         (Ftty_supports_face_attributes_p): Function deleted.
8039         (Fdisplay_supports_face_attributes_p): New function.
8040         (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
8041         (face_attr_equal_p): New function.
8042         (lface_equal_p): Use it.
8044 2004-06-03  Juanma Barranquero  <lektu@terra.es>
8046         * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
8047         (Vw32_color_map): Fix typo in docstring.
8048         (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
8049         (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
8050         Make argument names match their use in docstring.
8052 2004-06-02  Juanma Barranquero  <lektu@terra.es>
8054         Work around bugs/problems with MinGW builds of graphics libraries
8055         called from MSVC builds of Emacs.
8057         * image.c (lookup_image): Make pointer to img static.
8058         (png_read_from_memory): Disable "global" optimization.
8060 2004-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
8062         * eval.c (Fcondition_case): Fix usage.  Simplify.
8064         * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
8066 2004-05-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8068         * macfns.c: Don't include ccl.h.
8069         [MAC_OSX]: Don't include QuickTime/QuickTime.h.
8070         [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
8071         TextUtils.h.
8072         (Fx_create_frame): Sync with xfns.c.  Initialize cursor descriptors.
8073         (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
8074         display height/width.
8075         (compute_tip_xy, Vx_max_tooltip_size): Declare.
8076         (unwind_create_tip_frame, compute_tip_xy): New functions.
8077         (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
8078         (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
8079         and last_show_tip_args.
8081         * macgui.h [!MAC_OSX]: Include Gestalt.h.
8082         (Cursor, No_Cursor): New defines.
8083         [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
8084         [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
8086         * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
8088         * macterm.c: Don't include Gestalt.h.
8089         (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
8090         (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
8091         (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
8092         (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
8093         (mac_copy_area, mac_copy_area_with_mask, x_update_end)
8094         (construct_mouse_click, XTmouse_position)
8095         (x_scroll_bar_report_motion, x_calc_absolute_position)
8096         (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
8097         (XTread_socket, make_mac_frame): Use SetPortWindowPort.
8098         (note_mouse_movement): Clear the mouse face and reset the pointer
8099         shape when the pointer goes outside the frame without grabbing.
8100         (mac_front_window): New function.
8101         (mac_window_to_frame): New macro.
8102         (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
8103         (do_window_activate, do_window_deactivate, do_app_resume)
8104         (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
8105         (do_zoom_window, mac_do_receive_drag, XTread_socket)
8106         (mac_check_for_quit_char): Use mac_front_window and/or
8107         mac_window_to_frame.
8108         (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
8109         scroll-bar click event.
8110         (mac_define_frame_cursor): Change the pointer shape.
8111         (x_free_frame_resources): Reset tip_window to NULL when it is
8112         disposed of.
8113         [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
8114         [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
8115         (do_window_update): Don't do anything if the updated window is the
8116         tooltip window.
8117         (do_mouse_moved): Handle mouse movement events here (previously in
8118         XTread_socket).  Clear the mouse face if
8119         dpyinfo->mouse_face_hidden is set.
8120         (do_os_event, do_events): Remove (now in XTread_socket).
8121         (XTread_socket): Immediately return if interrupt_input_blocked.
8122         Loop until all the events in the queue are processed.
8123         Rearrange codes for mouse grabbing.  Add tooltip support.  Include the
8124         contents of do_os_event and do_events.  Remove mouse movement
8125         handling (now in do_mouse_moved).  Add the case where
8126         Vmouse_highlight has an integer value.
8127         (NewMacWindow): Remove.
8128         (make_mac_frame): Do what NewMacWindow previously did.  Don't do
8129         excess initializations.
8130         (make_mac_terminal_frame): Previous initializations in
8131         make_mac_frame are moved here.
8132         (mac_initialize_display_info):
8133         Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
8135         * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
8136         (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
8138 2004-05-29  Richard M. Stallman  <rms@gnu.org>
8140         * lisp.h (truncate_undo_list): Update decl.
8142         * alloc.c (undo_outer_limit): New variable.
8143         (syms_of_alloc): Defvar it.
8144         (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
8146         * undo.c (truncate_undo_list): New arg LIMITSIZE.
8148         * alloc.c (lisp_align_malloc): Check for base == 0
8149         regardless of HAVE_POSIX_MEMALIGN.
8150         Clean up HAVE_POSIX_MEMALIGN handling of `err'.
8152 2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
8154         * alloc.c: Undo Kim's recent changes and fix the same bug differently.
8155         (marker_blocks_pending_free): Remove.
8156         (Fgarbage_collect): Sweep after cleaning up undo-lists.
8157         Mark the undo lists after claning them up.
8158         Don't free block in marker_blocks_pending_free.
8159         (mark_buffer): Don't mark undo_list.
8160         (gc_sweep): Sweep hash-tables and strings first.
8161         Do free marker blocks that are empty.
8163 2004-05-28  Jim Blandy  <jimb@redhat.com>
8165         * regex.c (print_partial_compiled_pattern): Add missing 'break'
8166         after 'case wordend'.  For symbeg and symend, print to stderr,
8167         like the other cases.
8169 2004-05-28  Noah Friedman  <friedman@splode.com>
8171         * process.c (Fdelete_process): Do not call remove_process.
8173 2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
8175         * alloc.c (struct backtrace): Remove.
8176         (Fgarbage_collect): Use the new mark_backtrace.
8178         * eval.c (mark_backtrace): New function.
8180         * minibuf.c (run_exit_minibuf_hook): New function.
8181         (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
8182         (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
8184 2004-05-27  Kim F. Storm  <storm@cua.dk>
8186         * xdisp.c (back_to_previous_visible_line_start): Skip backwards
8187         over display properties, e.g. images, that replace buffer text.
8189 2004-05-25  Kim F. Storm  <storm@cua.dk>
8191         * alloc.c (marker_blocks_pending_free): New var.
8192         (gc_sweep): Store free marker blocks on that list.
8193         (Fgarbage_collect): Free them after undo-list cleanup.
8195         * process.c (wait_reading_process_input): Check connect_wait_mask
8196         before actually accepting connection in case it has already been
8197         accepted due to recursion.
8199 2004-05-23  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
8201         * coding.c (Fset_safe_terminal_coding_system_internal):
8202         Set suppress_error in safe_terminal_coding, not terminal_coding.
8204 2004-05-22  Richard M. Stallman  <rms@gnu.org>
8206         * alloc.c (Fmake_string): Doc fix.
8208         * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
8209         and the alist pairs too.
8211         * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
8213         * emacs.c (main): Update copyright year.
8215         * fileio.c (Fread_file_name): Expand DIR if not absolute.
8217         * insdel.c (del_range_2, replace_range): Don't write an anchor
8218         if the gap is empty.
8220         * xdisp.c (try_scrolling): If scroll-up-aggressively or
8221         scroll-down-aggressively is small but positive, put point
8222         near the screen edge.
8224 2004-05-22  Juanma Barranquero  <lektu@terra.es>
8226         * keymap.c (Fdefine_key): Doc fix.
8228 2004-05-22  Kim F. Storm  <storm@cua.dk>
8230         * alloc.c (struct backtrace): Add debug_on_exit member.
8231         (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
8232         Identify those markers as Lisp_Misc_Free objects.  Clear car and cdr of
8233         the removed cons cells.
8234         (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
8235         (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
8236         any cons cells pointing to unallocated stings.
8237         Do not lisp_free any marker blocks, as there may still be pointers
8238         to them from buffer undo lists at this stage of GC.
8240         * keyboard.c (struct backtrace): Add debug_on_exit member.
8241         (Fcommand_execute): Clear it.
8243 2004-05-20  Luc Teirlinck  <teirllm@auburn.edu>
8245         * intervals.c (lookup_char_property): Do not prematurely return nil.
8247 2004-05-19  Jim Blandy  <jimb@redhat.com>
8249         Add support for new '\_<' and '\_>' regexp operators, matching the
8250         beginning and end of symbols.
8252         * regex.c (enum syntaxcode): Add Ssymbol.
8253         (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
8254         (re_opcode_t): New opcodes `symbeg' and `symend'.
8255         (print_partial_compiled_pattern): Print the new opcodes properly.
8256         (regex_compile): Parse the new operators.
8257         (analyse_first): Skip sym(beg|end) (they match only the empty string).
8258         (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
8259         \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
8260         (re_match_2_internal): Match symbeg and symend.
8262         * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
8264 2004-05-19  Kim F. Storm  <storm@cua.dk>
8266         * .gdbinit (xsymbol): Fix last change.
8268 2004-05-18  Stefan Monnier  <monnier@iro.umontreal.ca>
8270         * .gdbinit (xprintstr): New fun.
8271         (xstring, xprintsym): Use it.
8273         * w32proc.c (create_child): Use INTMASK.
8275         * alloc.c (Fgarbage_collect): Do all the marking before flushing
8276         unmarked elements of the undo list.
8278 2004-05-18  David Ponce  <david@dponce.com>
8280         * print.c (print): Reset print_depth before to call print_object.
8282 2004-05-18  Jason Rumney  <jasonr@gnu.org>
8284         * w32console.c: Prefix RIF functions with w32con_ to avoid
8285         namespace clash with functions in term.c and w32term.c.
8287         * w32menu.c (add_menu_item, w32_menu_display_help)
8288         [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
8290         * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
8292 2004-05-18  Eli Zaretskii  <eliz@gnu.org>
8294         * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
8296         * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
8297         with make_number.
8298         (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
8299         with XINT.
8301 2004-05-18  Kim F. Storm  <storm@cua.dk>
8303         * blockinput.h (INPUT_BLOCKED_P): New macros.
8305         * keyboard.c (Frecursive_edit): Return immediately if input blocked.
8306         (Ftop_level): Unblock input if blocked.
8308         * buffer.h (GET_OVERLAYS_AT): New macro.
8309         * msdos.c (IT_note_mouse_highlight): Use it.
8310         * textprop.c (get_char_property_and_overlay): Use it.
8311         * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
8312         * xfaces.c (face_at_buffer_position): Use it.
8314         * print.c (print_object): Increase buf size.
8316 2004-05-17  Jason Rumney  <jasonr@gnu.org>
8318         * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
8319         (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
8320         Lisp_Object using i member.
8321         (w32_quit_key): Rename from Vw32_quit_key, and make an int.
8322         (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
8323         consistently.
8325         * w32proc.c (create_child): Use make_number instead of masking pid.
8327         * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
8328         (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
8329         Use EQ to compare Lisp_Objects.
8330         (w32_parse_hot_key): Use int for lisp_modifiers consistently.
8332         * w32term.c (w32_num_mouse_buttons): Rename from
8333         Vw32_num_mouse_buttons and make it an int.
8335         * w32.c (init_environment): Use it.
8337         * w32fns.c (w32_wnd_proc): Likewise.
8339         * w32proc.c (w32_pipe_read_delay): Rename from
8340         Vw32_pipe_read_delay and make it an int.
8342         * w32.c (_sys_read_ahead): Use it.
8344         * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
8346         * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
8348         * w32inevt.c (w32_console_mouse_position, do_mouse_event)
8349         (key_event): Don't mix Lisp_Object and int.
8351         * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
8353         * keyboard.c (kbd_buffer_get_event): Don't use event->code and
8354         modifiers in language change event.
8356 2004-05-17  Kim F. Storm  <storm@cua.dk>
8358         * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
8359         Such objects may be freed markers which still exist on an undo list.
8361 2004-05-16  Juanma Barranquero  <lektu@terra.es>
8363         * data.c (Fset_default): Make argument names match their use in
8364         docstring.
8366 2004-05-15  Andreas Schwab  <schwab@suse.de>
8368         * emacs.c (gdb_array_mark_flag): Define.
8369         * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
8371 2004-05-15  Eli Zaretskii  <eliz@gnu.org>
8373         * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
8374         __attribute__((__aligned__)), so that USE_LSB_TAG would not become
8375         defined for the MS-DOS build.
8377 2004-05-14  Stefan Monnier  <monnier@iro.umontreal.ca>
8379         * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
8381 2004-05-14  Kenichi Handa  <handa@m17n.org>
8383         * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
8385 2004-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8387         * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
8388         section to frame.c section.
8389         (Fxw_display_color_p, Fx_file_dialog): Declare if
8390         HAVE_WINDOW_SYSTEM defined.
8392         * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
8394         * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
8396         * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
8397         (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
8398         (XTread_socket): Fix int/Lisp_Object mixup.
8399         (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
8401         * macterm.h (struct frame, struct face, struct image)
8402         (display_x_get_resource, Fx_display_color_p)
8403         (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
8404         Add prototypes.
8406 2004-05-14  Kim F. Storm  <storm@cua.dk>
8408         * process.c (wait_reading_process_input): Make reentrant.
8409         Make Available and Connecting non-static.  Save and restore value
8410         of waiting_for_user_input_p.
8412 2004-05-13  Kim F. Storm  <storm@cua.dk>
8414         * keyboard.c (mark_kboards): Don't mark x and y members
8415         that are overloaded in selection request events.
8417 2004-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
8419         * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
8421 2004-05-13  Glenn Morris  <gmorris@ast.cam.ac.uk>
8423         * window.c (Fdisplay_buffer, Fsplit_window)
8424         (split-height-threshold): Doc fix.
8426 2004-05-13  Juanma Barranquero  <lektu@terra.es>
8428         * xfaces.c (Ftty_supports_face_attributes_p)
8429         (Finternal_copy_lisp_face): Fix typo in docstring.
8430         (Finternal_get_lisp_face_attribute): Fix docstring.
8432 2004-05-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8434         * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
8436 2004-05-11  Steven Tamm  <steventamm@mac.com>
8438         * macfns.c (Fx_create_frame): Default to using tool-bar by
8439         setting tool-bar-lines to 1 in default-frame-alist.
8441 2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8443         * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
8444         (xpm_get_color_table_v, xpm_make_color_table_h)
8445         (xpm_put_color_table_h, xpm_get_color_table_h)
8446         (xpm_str_to_color_key, xpm_load_image, xpm_load)
8447         (syms_of_image): Support XPM on Carbon Emacs.  Does not
8448         depend on libXpm, but only supports XPM version 3 without extensions.
8450 2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8452         * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
8453         instead of FRAME_X_P
8455 2004-05-11  Kim F. Storm  <storm@cua.dk>
8457         * process.c (read_process_output): Grow decoding_buf when needed;
8458         this could cause a crash in allocate_string and compact_small_strings.
8460 2004-04-29  Jim Blandy  <jimb@redhat.com>
8462         * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
8463         against proper opcode.
8465 2004-05-10  Juanma Barranquero  <lektu@terra.es>
8467         * process.c (Fstart_process): Fix docstring.
8469         * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
8470         (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
8471         (Fsplit_char, Fchar_charset): Make argument names match their use
8472         in docstring.
8474 2004-05-10  Richard M. Stallman  <rms@gnu.org>
8476         * print.c (print_preprocess): Use being_printed, loop_count and
8477         halftail to detect overdeep nesting and cyclic cdr chains.
8479 2004-05-10  Andreas Schwab  <schwab@suse.de>
8481         * lisp.h (Fmake_symbolic_link): Declare.
8483         * fileio.c (Frename_file): Remove extra argument in call to
8484         Fmake_symbolic_link.
8486 2004-05-10  Kim F. Storm  <storm@cua.dk>
8488         * xdisp.c (calc_line_height_property): Use string position when
8489         object is a string.
8491 2004-05-10  Kenichi Handa  <handa@m17n.org>
8493         * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
8494         inhibit-modification-hooks to t temporarily before calling
8495         Ferase_buffer.
8497         * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
8498         inhibit-modification-hooks to t temporarily before calling
8499         Ferase_buffer.
8501         * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
8502         inhibit-modification-hooks to t temporarily before calling
8503         Ferase_buffer.
8505         * fns.c (count_combining): Delete it.
8506         (concat): Don't check combining bytes.
8508 2004-05-09  Jason Rumney  <jasonr@gnu.org>
8510         * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
8511         (globals_of_w32fns): Set it.
8513 2004-05-09  Piet van Oostrum  <piet@cs.uu.nl>
8515         * data.c (Fquo): Simplify.
8517 2004-05-08  Peter Whaite  <emacs@whaite.ca>  (tiny change)
8519         * data.c (Fquo): If any argument is float, do the computation in
8520         floating point.
8522 2004-05-08  Juanma Barranquero  <lektu@terra.es>
8524         * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
8525         (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
8526         Fix spelling of Emacs on docstring.
8527         (Fset_process_coding_system, Fprocess_coding_system)
8528         (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
8529         Make argument names match their use in docstring.
8530         (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
8531         Fix docstring.
8533         * editfns.c (Finsert_buffer_substring): Make argument names match their
8534         use in docstring.
8536         * syntax.c (Fmodify_syntax_entry): Fix docstring.
8538 2004-05-07  Steven Tamm  <steventamm@mac.com>
8540         * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
8541         around call to ReceiveEvent to avoid certain crashes.
8543 2004-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8545         * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
8546         (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
8547         (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
8548         Save/restore the current graphics port and device handle when
8549         drawing into an offscreen graphics world.
8551         * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
8552         (gif_load): Likewise.
8554 2004-05-07  Juanma Barranquero  <lektu@terra.es>
8556         * window.c (Fset_window_buffer): Fix docstring.
8558 2004-05-06  Thien-Thi Nguyen  <ttn@gnu.org>
8560         * emacs.c (main) [VMS]: Fix var ref.
8562 2004-05-06  Romain Francoise  <romain@orebokech.com>
8564         * data.c (Fsetq_default): Fix docstring.
8566 2004-05-06  Jason Rumney  <jasonr@gnu.org>
8568         * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
8569         to avoid name clash.
8571 2004-05-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8573         * fileio.c (barf_or_query_if_file_exists): Use lstat.
8574         (Frename_file): Handle renaming of symlinks across file systems.
8575         (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
8577 2004-05-04  Kim F. Storm  <storm@cua.dk>
8579         * xdisp.c (Qtotal): New var.
8580         (syms_of_xdisp): Intern and staticpro it.
8581         (calc_line_height_property): New arg total.  Set it if
8582         line-spacing property has format (total . VALUE).
8583         (x_produce_glyphs): Ignore line-spacing if line-height is 0.
8584         Handle total line-spacing property.
8586 2004-05-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8588         * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
8589         "under" scroll bar when size/position changes.
8591 2004-05-03  Jason Rumney  <jasonr@gnu.org>
8593         * makefile.nt: Remove.
8595 2004-05-02  Eli Zaretskii  <eliz@gnu.org>
8597         * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
8598         Avoid compiler warnings.
8600         * Makefile.in (region-cache.o): Depend on config.h.
8602 2004-05-02  Romain Francoise  <romain@orebokech.com>
8604         * indent.c (compute_motion): Save vpos in prev_vpos when dealing
8605         with continuation lines, too.
8607 2004-05-02  Thien-Thi Nguyen  <ttn@gnu.org>
8609         * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
8611 2004-05-01  Stefan Monnier  <monnier@iro.umontreal.ca>
8613         * xdisp.c (calc_line_height_property): YAILOM (yet another
8614         int/Lisp_Object mixup).
8616 2004-05-01  Eli Zaretskii  <eliz@gnu.org>
8618         * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
8619         undo bad effect of pack(4) in some versions of system headers.
8621 2004-05-01  Jason Rumney  <jasonr@gnu.org>
8623         * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
8625 2004-04-30  Kim F. Storm  <storm@cua.dk>
8627         * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
8628         (syms_of_buffer) <cursor-type>: Doc fix.
8630         * dispextern.h (struct it): Remove member use_default_face.
8631         Add members override_ascent, override_descent, override_boff.
8633         * xdisp.c (init_iterator): Handle line-spacing float value.
8634         Initialize override_ascent member.
8635         (append_space_for_newline): Reset override_ascent.
8636         Remove use_default_face.
8637         (calc_line_height_property): New function to calculate value of
8638         line-height and line-spacing properties.  Look at overlays, too.
8639         Set override_ascent, override_descent, override_boff members when
8640         using another face than the current face.  Float values are now
8641         relative to the frame default font, by default; accept a cons
8642         of ratio and face name to specify value relative to a specific face.
8643         (x_produce_glyphs): Use calc_line_height_property.
8644         Use override_ascent etc. when set to handle different face heights.
8645         A negative line-spacing property value is interpreted as a total
8646         line height, rather than inter-line spacing.
8647         (note_mouse_highlight): Allocate room for 40 overlays initially.
8649 2004-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
8651         * data.c (Fsubr_name): New fun.
8652         (syms_of_data): Defsubr it.
8654 2004-04-29  Kim F. Storm  <storm@cua.dk>
8656         * xdisp.c (null_glyph_slice): New var.
8657         (append_glyph, append_composite_glyph, append_stretch_glyph):
8658         Use it to initialize glyph slice.
8660 2004-04-27  Stefan Monnier  <monnier@iro.umontreal.ca>
8662         * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
8663         (on_hot_spot_p): Make sure we always return a value.
8664         (Flookup_image_map): Remove unused var ix and iy.
8665         (note_mode_line_or_margin_highlight): Remove unused var `image'.
8667 2004-04-27  Eli Zaretskii  <eliz@gnu.org>
8669         * msdos.c (init_environment): If one of the TMP... environment
8670         variables is set to a drive letter without a trailing slash,
8671         append a slash.
8673 2004-04-27  Matthew Mundell  <matt@mundell.ukfsn.org>
8675         * editfns.c (lisp_time_argument): Provide externally.
8677         * fileio.c (Fset_file_times): New function.
8678         (syms_of_fileio): Intern and staticpro it.
8680 2004-04-27  Kim F. Storm  <storm@cua.dk>
8682         * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
8683         header line strings.
8685         * dispextern.h (struct it): New member use_default_face.
8687         * xdisp.c (Qline_height): New variable.
8688         (syms_of_xdisp): Intern and staticpro it.
8689         (append_space_for_newline): Partially undo 2004-04-25 change;
8690         add default_face_p arg, and restore callers.
8691         Clear it->use_default_face after use.
8692         (x_produce_glyphs): Set default font for ascii char if
8693         it->use_default_font is set.  Change line-spacing property to set
8694         just extra line spacing.  Handle new line-height property.
8696 2004-04-26  Andreas Schwab  <schwab@suse.de>
8698         * print.c (print_object): Print non-ascii characters in bool
8699         vector representation as octal escapes.
8701         * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
8702         * print.c (print_object): Use it instead of BITS_PER_CHAR for
8703         bool vectors.
8704         * lread.c (read1): Likewise.
8705         * alloc.c (Fmake_bool_vector): Likewise.
8706         * data.c (Faref, Faset): Likewise.
8707         * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
8708         (mapcar1): Likewise.
8710 2004-04-26  Steven Tamm  <tamm@Steven-Tamms-Computer.local>
8712         * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
8714 2004-04-26  Miles Bader  <miles@gnu.org>
8716         * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
8718 2004-04-26  Juanma Barranquero  <lektu@terra.es>
8720         * buffer.c (Fpop_to_buffer): Fix docstring.
8722 2004-04-26  Steven Tamm  <steventamm@mac.com>
8724         * lread.c (init_lread): Don't display missing lisp directory
8725         warnings with Carbon Emacs because self-contained bundled Emacs
8726         may be built without correct installation path.
8728 2004-04-25  Kim F. Storm  <storm@cua.dk>
8730         * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8732         * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
8734         * xdisp.c (append_space_for_newline): Rename from append_space.
8735         Remove DEFAULT_FACE_P arg; always use current face.  Callers changed.
8736         (x_produce_glyphs): Handle line-spacing property on newline char.
8737         If value is t, adjust ascent and descent to fit current row height.
8738         If value is an integer or float, set extra_line_spacing to integer
8739         value, or to float value x current line height.
8741 2004-04-23  Kenichi Handa  <handa@m17n.org>
8743         * fontset.c (Finternal_char_font): If POSITION is nil, return
8744         font for displaying CH with the default face.
8746 2004-04-23  Juanma Barranquero  <lektu@terra.es>
8748         * makefile.w32-in: Add "-*- makefile -*-" mode tag.
8750 2004-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
8752         * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
8753         Don't make assumptions about the relative place of i and val.
8754         (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
8756 2004-04-21  Kim F. Storm  <storm@cua.dk>
8758         * dispextern.h (struct glyph_slice): New struct.
8759         (struct glyph): New member slice.
8760         (GLYPH_SLICE_EQUAL_P): New macro.
8761         (GLYPH_EQUAL_P): Use it.
8762         (struct glyph_string): New member slice.
8763         (struct it_slice): New struct.
8764         (struct it): New member slice, add member to stack too.
8765         New member constrain_row_ascent_descent_p.
8766         (image_ascent): Add prototype.
8768         * dispnew.c (buffer_posn_from_coords): Return full image width
8769         and height even for image slices (posn is relative to full image).
8770         (marginal_area_string): Adjust x0,y0 for image slice.
8772         * image.c (image_ascent): Add slice arg; calculate ascent for
8773         image slice (or full image).
8775         * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
8776         (syms_of_keyboard): Defsubr them.
8778         * lisp.h (pos_visible_p): Fix prototype.
8780         * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
8781         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8782         (x_draw_image_foreground, x_draw_image_relief)
8783         (x_draw_image_foreground_1, x_draw_image_glyph_string):
8784         Draw sliced images.
8786         * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
8787         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8788         (x_draw_image_foreground, x_draw_image_relief)
8789         (w32_draw_image_foreground_1, x_draw_image_glyph_string):
8790         Draw sliced images.
8792         * w32term.h (image_ascent): Remove prototype.
8794         * window.c (Fpos_visible_in_window_p): Return pixel position if
8795         PARTIALLY arg is non-nil.  Simplify.  Doc fix.
8796         (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
8797         to return/set vscroll in pixels.
8799         * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
8801         * xdisp.c (Qslice): New variable.
8802         (syms_of_xdisp): Intern and staticpro it.
8803         (pos_visible_p): Return pixel position in new x and y args.
8804         (init_iterator): Reset it->slice info.
8805         (handle_display_prop): Parse (slice ...) property.
8806         (push_it, pop_it): Save/restore slice info.
8807         (make_cursor_line_fully_visible): Fix 2004-04-14 change.  Do not
8808         force repositioning of tall row if window is vscrolled, as that
8809         would reset vscroll.
8810         (append_space): Set it->constrain_row_ascent_descent_p to avoid
8811         increasing row height if row is non-empty.
8812         (fill_image_glyph_string): Copy slice info.
8813         (take_vertical_position_into_account): Simplify.
8814         (produce_image_glyph): Handle iterator slice info, setup glyph
8815         slice info.  Do not force minimum line height.
8816         (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
8817         do not increase height (ascent/descent) of non-empty row when
8818         adding normal character glyph; instead reduce glyph ascent/descent
8819         appropriately; if row is higher than current glyph, adjust glyph
8820         descent/ascent to reposition glyph within the existing row.
8821         Likewise, when char is newline, only set ascent/descent if row is
8822         currently empty.
8823         (note_mouse_highlight): Handle hotspots with sliced image.
8825         * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
8826         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
8827         (x_draw_image_foreground, x_draw_image_relief)
8828         (x_draw_image_foreground_1, x_draw_image_glyph_string):
8829         Draw sliced images.
8831         * xterm.h (image_ascent): Remove prototype.
8833 2004-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
8835         * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
8837 2004-04-20  John Paul Wallington  <jpw@gnu.org>
8839         * fns.c (Fassoc, Feql): Fix indentation.
8841         * fontset.c (regularize_fontname): Rename from regulalize_fontname.
8843 2004-04-19  John Paul Wallington  <jpw@gnu.org>
8845         * fns.c (Feql): New function.
8846         (syms_of_fns): Defsubr it.
8848 2004-04-18  Jason Rumney  <jasonr@gnu.org>
8850         * w32select.c (Fw32_set_clipboard_data): Get sequence number
8851         after closing the clipboard.
8853 2004-04-16  Luc Teirlinck  <teirllm@auburn.edu>
8855         * buffer.c (Fbuffer_base_buffer): Doc fix.
8857 2004-04-17  Kim F. Storm  <storm@cua.dk>
8859         * keymap.c (Fkey_description): Add optional PREFIX arg.
8860         Combine prefix with KEYS to make up the full key sequence to describe.
8861         Correlate meta_prefix_char and following (simple) key to describe
8862         as meta modifier.  All callers changed.
8863         (describe_map): Rename arg `keys' to `prefix'.  Remove local
8864         `elt_prefix' var.  Use Fkey_description with prefix instead of
8865         elt_prefix combined with Fsingle_key_description.
8866         (describe_vector): Declare static.  Replace arg `elt_prefix' with
8867         `prefix'.  Add KEYMAP_P arg.  Add local var `elt_prefix'; use it
8868         if !KEYMAP_P.  Use Fkey_description with prefix instead of
8869         Fsingle_key_description.
8871         * keymap.h (Fkey_description): Fix prototype.
8872         (describe_vector): Remove prototype.
8874         * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
8876         * image.c (PNG_BG_COLOR_SHIFT): Remove.
8877         (png_load): Fix calculation of transparent background color on X
8878         and W32 platforms.
8880 2004-04-16  Juanma Barranquero  <lektu@terra.es>
8882         * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
8883         not too large before computing how much to scroll.
8885 2004-04-15  Stefan Monnier  <monnier@iro.umontreal.ca>
8887         * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
8889 2004-04-14  Luc Teirlinck  <teirllm@auburn.edu>
8891         * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
8892         Add hyperlink to Elisp manual to the docstring.
8894 2004-04-14  Stefan Monnier  <monnier@iro.umontreal.ca>
8896         * callint.c (fix_command): Use XDCR.
8898 2004-04-14  Nick Roberts  <nick@nick.uklinux.net>
8900         * window.c (Fget_lru_window): Doc fix.
8902 2004-04-14  Kim F. Storm  <storm@cua.dk>
8904         * editfns.c (Fformat): Fix allocation size of precision array.
8906         * dispnew.c (update_window): Only set changed_p if
8907         scrolling_window actually did scroll.
8908         (scrolling_window): Only return 1 if we actually did scroll.
8910         * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
8911         height to glyph height when cursor row is not fully visible.
8912         (make_cursor_line_fully_visible): Add FORCE_P arg to return
8913         failure in case row is higher than window.  Callers changed.
8914         (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
8915         Try to scroll partially visible, higher-than-window cursor row.
8916         (redisplay_window): Always try to scroll partially visible,
8917         higher-than-window cursor row - both initially and again with
8918         centering_position = 0.
8919         Clear desired matrix before retrying with centering_position = 0.
8921 2004-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
8923         * syntax.c (scan_lists): Simplify backward string scan.
8924         Fix off-by-one boundary check for string and comment fences.
8926 2004-04-13  Joe Buehler  <jbuehler@hekimian.com>
8928         * sheap.c, unexcw.c: New files.
8930 2004-04-12  Luc Teirlinck  <teirllm@auburn.edu>
8932         * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
8933         base buffer has been killed.  Correct the error message if the
8934         base buffer does not exist.
8936 2004-04-12  Joe Buehler  <jbuehler@hekimian.com>
8938         * s/cygwin.h: Changes for Cygwin unexec() support, changes in
8939         Cygwin itself.  Add support for Xaw3d scrollbars.
8941         * puresize.h: Set up PURE_P() for Cygwin unexec() support.
8943         * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
8945         * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
8946         before Cygwin unexec.
8948         * Makefile.in: Link changes for Cygwin unexec() support.
8950 2004-04-12  Andreas Schwab  <schwab@suse.de>
8952         * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
8954 2004-04-11  Luc Teirlinck  <teirllm@auburn.edu>
8956         * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
8957         IGNORE argument equals NAME.  Doc fix.
8959 2004-04-11  Masatake YAMATO  <jet@gyve.org>
8961         * buffer.c (fix_start_end_in_overlays): Make overlays
8962         empty if they are backwards.
8964 2004-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
8966         * xfaces.c (face_color_supported_p): Fix compilation without X11.
8968 2004-04-07  Stefan Monnier  <monnier@iro.umontreal.ca>
8970         * doc.c (Fsnarf_documentation): Ignore new file name entries.
8972 2004-04-06  Kim F. Storm  <storm@cua.dk>
8974         * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8975         (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
8977         * w32term.c (w32_read_socket): Set mouse_face_hidden after
8978         clearing highlight.
8980         * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
8982         * xterm.c (handle_one_xevent): Set mouse_face_hidden after
8983         clearing highlight.
8985         * indent.c (vmotion): Do not reserve one column for continuation
8986         marks on window frames.
8988 2004-04-04  Eli Zaretskii  <eliz@gnu.org>
8990         * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
8991         from GCC.
8993 2004-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
8995         * .gdbinit-union: Remove.
8997         * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
8998         (xgetptr, xgetint, xgettype): New funs.  Use them everywhere.
8999         ($nonvalbits): Remove.
9000         ($valmask): Set it by calling xreload to avoid redundancy.
9002         * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
9003         (gdb_emacs_intbits): Remove.
9005 2004-03-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9007         * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
9009 2004-03-30  Kenichi Handa  <handa@m17n.org>
9011         * editfns.c (Fformat): Fix initialization of the array info.
9013 2004-03-30  Kim F. Storm  <storm@cua.dk>
9015         * xterm.c (x_mouse_click_focus_ignore_position): New var.
9016         (syms_of_xterm): DEFVAR_BOOL it.
9017         (ignore_next_mouse_click_timeout): New var.
9018         (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
9019         Use it to filter mouse clicks following focus event.
9021 2004-03-29  David Ponce  <david@dponce.com>
9023         * callint.c (Fcall_interactively): Fix last change.
9025 2004-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
9027         * eval.c (Fcommandp): Simplify.
9029         * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
9030         Extend to handle all kinds of functions.
9032         * lisp.h (Finteractive_form): Declare.
9034         * callint.c (Fcall_interactively): Use it.
9036 2004-03-26  Kim F. Storm  <storm@cua.dk>
9038         * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
9039         to catch errors in calc_pixel_width_or_height during redisplay.
9041 2004-03-26  Masatake YAMATO  <jet@gyve.org>
9043         * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
9045         * lisp.h (fix_start_end_in_overlays): Likewise.
9047         * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
9049         * editfns.c (Ftranspose_regions): Likewise.
9051 2004-03-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9053         * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
9055 2004-03-19  Richard M. Stallman  <rms@gnu.org>
9057         * s/sol2-6.h: Delete previous change.
9059 2004-03-19  Kim F. Storm  <storm@cua.dk>
9061         * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
9062         to_charpos corresponds to newline in right fringe.  Use local
9063         BUFFER_POS_REACHED_P macro.
9065 2004-03-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9067         * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
9068         to compile on non-window system.
9070 2004-03-19  Kim F. Storm  <storm@cua.dk>
9072         * dispextern.h (calc_pixel_width_or_height): Add prototype.
9074         * image.c (Qcenter): Move to xdisp.c.
9076         * xdisp.c (Qcenter): Declare here.
9077         (syms_of_xdisp): Intern and staticpro it.
9078         (handle_single_display_prop): Allow space display property on all
9079         platforms.
9080         (display_mode_line): Set mode_line_p before displaying line.
9081         (calc_pixel_width_or_height): Declare extern.  Add separate :align-to
9082         handling.  Remove complex cases for fringes and scroll-bars.
9083         Add left, right, and center alignment positions.  Add text (area)
9084         width/height.  Return width or height for image specs.
9085         (produce_stretch_glyph): Improve handling of :align-to.  Is now
9086         relative to left of text area by default, but other base offsets
9087         can be specified -- also for text lines.
9089         * term.c (produce_glyphs): Handle IT_STRETCH.
9090         (produce_stretch_glyph): New function to handle space width and
9091         align-to display properties on non-window systems.
9093 2004-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
9095         * fileio.c (Fread_file_name): Set completion-ignore-case for
9096         case-insensitive systems.
9098 2004-03-14  Masatake YAMATO  <jet@gyve.org>
9100         * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
9101         when keymap and cursor are setup.
9103 2004-03-14  Steven Tamm  <steventamm@mac.com>
9105         * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
9107 2004-03-14  Kim F. Storm  <storm@cua.dk>
9109         * dispextern.h (x_find_image_file): Add prototype.
9111         * image.c (x_find_image_file): Make extern.
9113         * xfns.c (x_find_image_file): Remove prototype.
9115 2004-03-13  Eli Zaretskii  <eliz@gnu.org>
9117         * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
9119         * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
9121 2004-03-12  Richard M. Stallman  <rms@gnu.org>
9123         * fns.c (internal_equal): New arg PROPS controls comparing
9124         text properties.  All callers changed.
9125         (Fequal_including_properties): New function.
9126         (syms_of_fns): defsubr it.
9128 2004-03-12  Kim F. Storm  <storm@cua.dk>
9130         Fix image support on MAC.  From YAMAMOTO Mitsuharu.
9132         * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
9133         (image_background, image_background_transparent): Fix prototypes.
9135         * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
9137         * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
9138         (x_query_font, x_find_ccl_program, x_set_window_size)
9139         (x_make_frame_visible, mac_initialize, XCreatePixmap)
9140         (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9141         (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
9143         * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
9144         (x_query_font, x_find_ccl_program, x_set_window_size)
9145         (x_make_frame_visible, mac_initialize, XCreatePixmap)
9146         (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
9147         (mac_draw_line_to_pixmap): Add prototypes.
9149 2004-03-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9151         * macterm.c (XTread_socket): Fix mouse click on tool bar.
9153 2004-03-11  Kim F. Storm  <storm@cua.dk>
9155         * dispextern.h: Move image related prototypes from xfns.c section
9156         to image.c.  Condition them by HAVE_WINDOW_SYSTEM rather than
9157         HAVE_X_WINDOWS.
9159         * Makefile.in (XOBJ): Consolidate into one list.  Add image.o.
9160         Move gtkutil.o to new GTK_OBJ list.
9161         (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
9162         (GTK_OBJ) [USE_GTK]: New declaration.
9163         (obj): Add $(GTK_OBJ) to list.
9165 2004-03-11  Steven Tamm  <steventamm@mac.com>
9167         * image.c [MAC_OSX]: Include sys/stat.h.
9169         * macfns.c (syms_of_macfns): Remove definitions of things now
9170         defined in image.c.
9172 2004-03-11  Kim F. Storm  <storm@cua.dk>
9174         The following changes consolidates the identical/similar image
9175         support code previously found in xfns.c, w32fns.c, and macfns.c
9176         into a new file image.c.
9178         * makefile.w32-in (OBJ1): Add image.o.
9179         ($(BLD)/image.$(O)): Add dependencies.
9181         * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
9182         (image.o): Add dependencies.
9184         * image.c: New file with consolidated image support code.
9185         (COLOR_TABLE_SUPPORT): New define to control whether
9186         color table support is available (X only).
9187         (Bitmap_Record): Common name for x_bitmap_record,
9188         w32_bitmap_record, and mac_bitmap_record.
9189         (XImagePtr): Common name for pointer to XImage or equivalent.
9190         (XImagePtr_or_DC): New type to simplify code sharing; equivalent
9191         to XImagePtr on X+MAC, and to HDC on W32.
9192         (GET_PIXEL): Wrapper for XGetPixel or equivalent.
9193         (NO_PIXMAP): Common name for "None" or equivalent.
9194         (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
9195         (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
9196         (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
9197         (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
9198         Define with suitable equivalents on W32 and MAC for code sharing.
9199         (XDrawLine): Define on MAC for code sharing.
9200         (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
9201         (IF_LIB_AVAILABLE): Macro to simplify code sharing.
9202         (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9203         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9204         (x_reference_bitmap, x_create_bitmap_from_data)
9205         (x_create_bitmap_from_file, x_destroy_bitmap)
9206         (x_destroy_all_bitmaps, x_create_bitmap_mask)
9207         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9208         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9209         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9210         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9211         (define_image_type, lookup_image_type, valid_image_p)
9212         (image_error, enum image_value_type, struct image_keyword)
9213         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9214         (make_image, free_image, prepare_image_for_display, image_ascent)
9215         (four_corners_best, image_background, image_background_transparent)
9216         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
9217         (make_image_cache, free_image_cache, clear_image_cache)
9218         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9219         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9220         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9221         (find_image_fsspec, image_load_qt_1, image_load_quicktime)
9222         (init_image_func_pointer, image_load_quartz2d)
9223         (struct ct_color, init_color_table, free_color_table)
9224         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9225         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9226         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9227         (x_disable_image, x_build_heuristic_mask)
9228         (XBM support, XPM support, PBM support, PNG support, JPEG support)
9229         (TIFF support, GIF support, Ghostscript support): Consolidate image
9230         code from xfns.c, w32fns.c, and macfns.c.
9231         (syms_of_image): Consolidate image related symbol setup here.
9232         (init_image): Consolidate image related initializations here.
9234         * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
9235         and init_image.  Remove call to init_xfns.
9237         * macterm.h (struct mac_bitmap_record): Add file member.
9238         Not currently used, but simplifies code sharing.
9240         * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9241         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9242         (x_reference_bitmap, x_create_bitmap_from_data)
9243         (x_create_bitmap_from_file, x_destroy_bitmap)
9244         (x_destroy_all_bitmaps, x_create_bitmap_mask)
9245         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9246         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9247         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9248         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9249         (define_image_type, lookup_image_type, valid_image_p)
9250         (image_error, enum image_value_type, struct image_keyword)
9251         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9252         (make_image, free_image, prepare_image_for_display, image_ascent)
9253         (four_corners_best, image_background, image_background_transparent)
9254         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
9255         (make_image_cache, free_image_cache, clear_image_cache)
9256         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9257         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9258         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9259         (find_image_fsspec, image_load_qt_1, image_load_quicktime)
9260         (init_image_func_pointer, image_load_quartz2d)
9261         (struct ct_color, init_color_table, free_color_table)
9262         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9263         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9264         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9265         (x_disable_image, x_build_heuristic_mask)
9266         (XBM support, XPM support, PBM support, PNG support, JPEG support)
9267         (TIFF support, GIF support, Ghostscript support): Merge with image
9268         code from xfns.c and macfns.c into image.c.
9269         (syms_of_xfns): Move image related symbols to image.c.
9270         (init_external_image_libraries, init_xfns): Remove; initialization
9271         moved to init_image in image.c.
9273         * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9274         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9275         (x_reference_bitmap, x_create_bitmap_from_data)
9276         (x_create_bitmap_from_file, x_destroy_bitmap)
9277         (x_destroy_all_bitmaps, x_create_bitmap_mask)
9278         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9279         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9280         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9281         (define_image_type, lookup_image_type, valid_image_p)
9282         (image_error, enum image_value_type, struct image_keyword)
9283         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9284         (make_image, free_image, prepare_image_for_display, image_ascent)
9285         (four_corners_best, image_background, image_background_transparent)
9286         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
9287         (make_image_cache, free_image_cache, clear_image_cache)
9288         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9289         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9290         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9291         (struct ct_color, init_color_table, free_color_table)
9292         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9293         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9294         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9295         (x_disable_image, x_build_heuristic_mask)
9296         (XBM support, XPM support, PBM support, PNG support, JPEG support)
9297         (TIFF support, GIF support, Ghostscript support): Merge with image
9298         code from xfns.c and macfns.c into image.c.
9299         (syms_of_xfns): Move image related symbols to image.c.
9300         (init_external_image_libraries, init_xfns): Remove; initialization
9301         moved to init_image in image.c.
9303         * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
9304         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9305         (x_reference_bitmap, x_create_bitmap_from_data)
9306         (x_create_bitmap_from_file, x_destroy_bitmap)
9307         (x_destroy_all_bitmaps, x_create_bitmap_mask)
9308         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
9309         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
9310         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
9311         (define_image_type, lookup_image_type, valid_image_p)
9312         (image_error, enum image_value_type, struct image_keyword)
9313         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
9314         (make_image, free_image, prepare_image_for_display, image_ascent)
9315         (four_corners_best, image_background, image_background_transparent)
9316         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
9317         (make_image_cache, free_image_cache, clear_image_cache)
9318         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
9319         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
9320         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
9321         (struct ct_color, init_color_table, free_color_table)
9322         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
9323         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
9324         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
9325         (x_disable_image, x_build_heuristic_mask)
9326         (XBM support, XPM support, PBM support, PNG support, JPEG support)
9327         (TIFF support, GIF support, Ghostscript support): Merge with
9328         w32fns.c and macfns.c image code into image.c.
9329         (syms_of_xfns): Move image related symbols to image.c.
9330         (init_xfns): Remove; initialization moved to init_image in image.c.
9332         * lisp.h (syms_of_image, init_image): Add protoypes.
9333         (init_xfns): Remove prototype.
9335         * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9336         (x_reference_bitmap, x_create_bitmap_from_data)
9337         (x_create_bitmap_from_file, x_destroy_bitmap)
9338         (x_create_bitmap_mask): Move prototypes from dispextern.h.
9339         (gamma_correct) [MAC_OS]: Add prototype.
9341         * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
9342         (x_reference_bitmap, x_create_bitmap_from_data)
9343         (x_create_bitmap_from_file, x_destroy_bitmap)
9344         (x_create_bitmap_mask): Move prototypes to dispextern.h.
9346 2004-03-09  Kenichi Handa  <handa@etlken2>
9348         * coding.c (decode_coding_emacs_mule): Handle insufficent source
9349         correctly.
9351 2004-03-04  Richard M. Stallman  <rms@gnu.org>
9353         * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
9355         * window.c (Fdisplay_buffer): Doc fix.
9357         * buffer.c (Fpop_to_buffer): Doc fix.
9359 2004-03-03  Kim F. Storm  <storm@cua.dk>
9361         * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
9363 2004-03-02  Stefan Monnier  <monnier@iro.umontreal.ca>
9365         * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
9367 2004-03-02  Richard M. Stallman  <rms@gnu.org>
9369         * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
9371 2004-03-02  Kenichi Handa  <handa@m17n.org>
9373         * doc.c (Fsubstitute_command_keys): Fix counding bytes.
9375 2004-03-02  Kim F. Storm  <storm@cua.dk>
9377         * window.h (struct window): New member overlay_arrow_bitmap.
9379         * window.c (make_window): Initialize overlay_arrow_bitmap.
9381         * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
9382         implement and integrate multiple overlay arrows with redisplay.
9383         (syms_of_xdisp): DEFVAR_LISP and initialize it.
9384         (last_arrow_position, last_arrow_string): Replace by properties.
9385         (Qlast_arrow_position, Qlast_arrow_string)
9386         (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
9387         (syms_of_xdisp): Intern and staticpro them.
9388         (overlay_arrow_string_or_property, update_overlay_arrows)
9389         (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
9390         (overlay_arrow_at_row): New functions for multiple overlay arrows.
9391         (redisplay_internal): Use them instead of directly accessing
9392         Voverlay_arrow_position etc. for multiple overlay arrows.
9393         (mark_window_display_accurate): Use update_overlay_arrows.
9394         (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
9395         (try_window_id): Use overlay_arrows_changed_p.
9396         (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
9397         (display_line): Use overlay_arrow_at_row to check multiple
9398         overlay arrows, and get relevant overlay-arrow-string and
9399         overlay-arrow-bitmap.  Set w->overlay_arrow_bitmap accordingly.
9400         (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
9401         (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
9403         * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
9404         (update_window_fringes): Remove unused code.
9406 2004-03-01  Jason Rumney  <jasonr@gnu.org>
9408         * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
9410 2004-03-01  Juanma Barranquero  <lektu@terra.es>
9412         * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
9414         * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
9416 2004-03-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9418         * xfns.c (Fx_display_color_cells): Use number of planes to calculate
9419         how many colors can be displayed.
9421 2004-03-01  Kenichi Handa  <handa@m17n.org>
9423         * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
9424         correctly.
9426 2004-02-28  Kim F. Storm  <storm@cua.dk>
9428         * dispnew.c (update_window): Update header line also if there are
9429         no other changes in window (move code after set_cursor label).
9431         * lisp.h (mark_window_display_accurate): Remove prototype.
9433         * window.c (window_loop, Fforce_window_update): Force mode line
9434         updates by setting prevent_redisplay_optimizations_p and
9435         update_mode_lines.
9437 2004-02-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9439         * xfns.c (x_window): Fix indentation.
9441         * xterm.c (x_calc_absolute_position): Call x_real_positions
9442         to get WM window sizes and use those to calculate position.
9443         (x_set_offset): Remove code commented out.
9445 2004-02-28  Miles Bader  <miles@gnu.org>
9447         * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
9449 2004-02-28  Kim F. Storm  <storm@cua.dk>
9451         * keyboard.c (kbd_buffer_store_event_hold): New function to store
9452         an event into kbd fifo, but with special handling of quit event;
9453         a quit event is saved for later, and further events are discarded
9454         until the saved quit event has been processed.
9455         (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
9456         (gen_help_event): Store help event in kbd fifo.
9457         (NREAD_INPUT_EVENTS): Remove.
9458         (read_avail_input): Adapt to new read_socket_hook interface.
9459         Remove allocation and initialization of local input_event buffer,
9460         as read_socket_hook stores events directly in fifo.  Allocate and
9461         initialize local hold_quit event to handle postponed quit event
9462         (and store it if set by kbd_buffer_store_event_hold).
9464         * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
9465         (gen_help_event): Fix prototype.
9467         * macterm.c (XTread_socket): Remove bufp_r and
9468         numcharsp args.  Add hold_quit arg.
9469         Rework to use just one, local, inev input_event.  Store inev
9470         directly in fifo using kbd_buffer_store_event_hold.
9472         * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
9473         (read_input_waiting): Adapt to new read_socket_hook interface.
9474         Remove allocation and initialization of local input_event buffer,
9475         as read_socket_hook stores events directly in fifo.  Allocate and
9476         initialize local hold_quit event to handle postponed quit event
9477         (and store it if set by kbd_buffer_store_event_hold).
9479         * term.c (read_socket_hook): Fix arg list.
9481         * termhooks.h (read_socket_hook): Fix prototype.
9483         * w32inevt.c (w32_console_read_socket): Remove bufp_r and
9484         numcharsp args.  Add hold_quit arg.
9485         Rework to use just one, local, inev input_event.  Store inev
9486         directly in fifo using kbd_buffer_store_event_hold.
9488         * w32inevt.h (w32_console_mouse_position): Fix prototype.
9490         * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
9491         Add hold_quit arg.  Rework to use just one, local, inev
9492         input_event.  Store inev directly in fifo using
9493         kbd_buffer_store_event_hold.  Update count in one place.
9494         Postpone call to gen_help_event until inev is stored; use new
9495         local do_help for this.
9496         Remove local emacs_event in handing of ButtonPress event; just use
9497         inev instead (so no reason to copy it later).
9499         * xsmfns.c (x_session_check_input): Remove numchars arg.
9501         * xterm.c (x_focus_changed, x_detect_focus_change):
9502         Remove numchars arg.  Always store event into bufp arg.
9503         Return nothing.  Callers changed accordingly.
9504         (glyph_rect): Simplify.
9505         (STORE_KEYSYM_FOR_DEBUG): New macro.
9506         (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
9507         (current_bufp, current_numcharsp) [USE_GTK]: Remove.
9508         (current_hold_quit) [USE_GTK]: Add.
9509         (event_handler_gdk): Adapt to new handle_one_xevent.
9510         (handle_one_xevent): Remove bufp_r and numcharsp args.
9511         Add hold_quit arg.  Rework to use just one, local, inev
9512         input_event.  Store inev directly in fifo using
9513         kbd_buffer_store_event_hold.  Update count in one place.
9514         Postpone call to gen_help_event until inev is stored; use new
9515         local do_help for this.
9516         Simplify handling of keysyms (consolidate common code).  Fix bug
9517         where count was updated with nchars instead of nbytes.
9518         Remove local emacs_event in handing of ButtonPress event; just use
9519         inev instead (so no reason to copy it later).
9520         Remove `out' label.  Rename label `ret' to `done'; add various
9521         `goto done' to clarify code flow in deeply nested blocks.
9522         (x_dispatch_event): Simplify as handle_one_xevent now calls
9523         kbd_buffer_store_event itself.
9524         (XTread_socket): Remove bufp_r and numcharsp args.  Add hold_quit
9525         arg.  Call handle_one_xevent with new arglist.  Store event from
9526         x_session_check_input in fifo.
9527         [USE_GTK]: Setup current_hold_quit.
9528         Decrement handling_signal before unblocking input.
9529         (x_initialize) [USE_GTK]: Initialize current_count.
9531         * xterm.h (x_session_check_input): Fix prototype.
9533 2004-02-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9535         * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
9537         * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
9538         macgui.h).
9540         * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
9542         * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
9543         (mktime, DEBUG, Z, free, malloc, realloc, max, min)
9544         (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
9545         [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
9546         (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
9547         (Bitmap): Remove typedef.
9548         (Pixmap): Change int to GWorldPtr.
9550         * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9552         * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9553         (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
9554         New #define to extract 16-bit depth color components from unsigned
9555         long representation.
9556         (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
9557         colors used for masks.
9558         (struct mac_display_info): Add color_p.  Remove n_cbits.
9560         * macfns.c: Include sys/types.h and sys/stat.h.
9561         [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
9562         Include QuickTime/QuickTime.h.
9563         (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
9564         (XSetForeground, mac_draw_line_to_pixmap): Add externs for
9565         functions defined in macterm.c.
9566         (XImagePtr): New typedef.  Corresponds to XImage * in xfns.c.
9567         (ZPixmap): New #define for compatibility with xfns.c.
9568         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
9569         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9570         (find_image_fsspec, image_load_qt_1, image_load_quicktime):
9571         New functions.
9572         (four_corners_best, x_create_x_image_and_pixmap)
9573         (x_destroy_x_image, unwind_create_frame, x_disable_image)
9574         (x_edge_detection, init_color_table, colors_in_color_table)
9575         (lookup_rgb_color, lookup_pixel_color, postprocess_image)
9576         (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
9577         (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
9578         (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
9579         (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
9580         long mixup.
9581         (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
9582         (x_decode_color): Don't use n_cbits (in struct mac_display_info).
9583         (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
9584         (x_set_cursor_type, Fxw_color_values, valid_image_p)
9585         (image_value_type, parse_image_spec, image_ascent, x_clear_image)
9586         (x_alloc_image_color, clear_image_cache, lookup_image)
9587         (x_find_image_file, xbm_read_bitmap_file_data)
9588         (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
9589         (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
9590         (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
9591         (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
9592         (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
9593         (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
9594         (x_make_gc): Sync with xfns.c.  Enclose unused `border_tile' with
9595         #if 0.
9596         (x_free_gcs): Sync with xfns.c.  Enclose unused `border_tile' with
9597         #if 0.  Free white_relief.gc and black_relief.gc.
9598         (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
9599         New functions (from xfns.c).
9600         (Fx_create_frame): Record unwind_create_frame.
9601         (Fxw_display_color_p): Use dpyinfo->color_p.
9602         (Fx_display_grayscale_p, Fx_display_planes): Don't use
9603         dpyinfo->n_cbits.
9604         (Fx_display_color_cells): Use dpyinfo->n_planes;
9605         (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
9606         (Qheuristic, cross_disabled_images, emboss_matrix)
9607         (laplace_matrix): New variables (from xfns.c).
9608         (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
9609         (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
9610         (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
9611         (image_background_transparent): New function (from xfns.c).
9612         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
9613         (image_load_quicktime): Add declaration.
9614         [MAC_OSX] (image_load_quartz2d): Likewise.
9615         [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
9616         [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
9617         [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
9618         (xbm_load_image_from_file, x_laplace_read_row)
9619         (x_laplace_write_row, pbm_read_file): Remove functions.
9620         [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
9621         (xpm_load): Sync with xfns.c (although XPM is not supported yet).
9622         (colors_in_color_table): Sync with xfns.c (although not used).
9623         (lookup_rgb_color): Don't lookup color table.  Just do gamma
9624         correction.
9625         (COLOR_INTENSITY): New #define (from xfns.c).
9626         (x_disable_image): New function (from xfns.c).
9627         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
9628         (x_build_heuristic_mask): Sync with xfns.c.
9629         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
9630         (HAVE_PBM): Remove #ifdef.
9631         (pbm_load): Sync with xfns.c.  Set img->width and img->height
9632         before IMAGE_BACKGROUND.
9633         (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
9634         (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
9635         Don't enclose with #if HAVE_PNG.
9636         [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
9637         symbol _CGImageCreateWithPNGDataProvider is defined.
9638         Otherwise use image_load_quicktime.
9639         [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
9640         [HAVE_PNG] (png_load): Sync with xfns.c.
9641         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
9642         (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
9643         HAVE_JPEG.
9644         (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
9645         (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
9646         [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
9647         [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
9648         [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
9649         (tiff_image_p, tiff_load): Don't enclose declarations with #if
9650         HAVE_TIFF.
9651         (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
9652         (tiff_image_p): Don't enclose with #if HAVE_TIFF.
9653         [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
9654         [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
9655         New functions (from xfns.c).
9656         [HAVE_TIFF] (tiff_load): Sync with xfns.c.
9657         (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
9658         (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
9659         Don't enclose with #if HAVE_GIF.
9660         [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
9661         animated gif.  Otherwise use image_load_quicktime.
9662         [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
9663         gif_DrawText to avoid conflict with QuickdrawText.h.
9664         [HAVE_GIF] (gif_load): Sync with xfns.c.
9665         (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
9666         [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
9667         Ghostscript is not supported yet).
9668         (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
9669         QCmatrix, QCcolor_adjustment, and QCmask.  Add DEFVAR_BOOL
9670         cross_disabled_images (from xfns.c).  Remove #if 0 for supported
9671         image types.  Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
9672         HAVE_PNG.  Add defsubr for Simage_size and Simage_mask_p.
9673         (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
9674         HAVE_PNG.  Call EnterMovies to support animated gifs.
9675         Call init_image_func_pointer to bind a symbol
9676         _CGImageCreateWithPNGDataProvider if it is defined.
9678         * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
9679         (x_draw_bar_cursor): Sync declaration with xterm.c.
9680         (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
9681         (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
9682         graphics).
9683         (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
9684         (mac_draw_line_to_pixmap, XCreatePixmap)
9685         (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
9686         (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
9687         New functions.
9688         (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
9689         Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
9690         Cast bits to char *.
9691         (reflect_byte): New function (from w32fns.c).
9692         (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
9693         due to byte alignment.
9694         (mac_scroll_area) [TARGET_API_MAC_CARBON]:
9695         Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
9696         (XSetForeground): Remove static (now used in macfns.c).
9697         (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
9698         (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
9699         (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
9700         (x_draw_glyph_string_box, x_draw_image_foreground)
9701         (x_draw_image_foreground_1, x_draw_image_glyph_string)
9702         (x_draw_stretch_glyph_string, x_draw_glyph_string)
9703         (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
9704         Sync with xterm.c.
9705         (x_draw_relief_rect): Sync with xterm.c.  Make 1 pixel shorter
9706         than the xterm.c version when a strictly horizontal or vertical
9707         line is drawn.
9708         (XTset_terminal_window): Add static.
9709         (x_make_frame_visible): Add UNBLOCK_INPUT.
9710         (x_free_frame_resources): New funcion (from xterm.c).
9711         (XTread_socket): Call handle_tool_bar_click if mouse up/down event
9712         occurs in tool bar area.
9713         (mac_initialize_display_info): Remove dpyinfo->n_cbits.
9714         Set dpyinfo->color_p.  Determine dpyinfo->n_planes using HasDepth.
9715         Initialize image cache.
9716         (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
9717         Enclose unused functions with #if 0.
9718         (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
9719         (decode_mac_font_name): New function to apply code conversions
9720         from a mac font name to an XLFD font name according to its script code.
9721         (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
9722         font name to a mac font name according to REGISTRY and ENCODING fields.
9723         (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
9724         whose name starts with `.'.
9725         (init_font_name_table): Use decode_mac_font_name.  Add both
9726         jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
9727         of a font is smJapanese.
9728         (mac_do_list_fonts): New function to list fonts that match a given
9729         pattern.
9730         (x_list_fonts, XLoadQueryFont): Use it.
9731         (XLoadQueryFont): Set rbearing field for each variable width
9732         character to avoid needless redraw.
9733         (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
9735 2004-02-26  Kim F. Storm  <storm@cua.dk>
9737         * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
9738         as read_socket_hook handler on X aborts if buffer is too small
9739         and W32 handler doesn't always check buffer limit.
9741         * xdisp.c (handle_single_display_prop): Handle left-fringe and
9742         right-fringe similar to a display margin image.  Specifically,
9743         the characters having the fringe prop are no longer shown, and
9744         we use IT_IMAGE/next_element_from_image with image_id = -1 to
9745         do this.  Set fringe bitmap face_id in it->face_id.
9746         (produce_image_glyph): Handle image_id < 0 as "no image" case, but
9747         still realize it->face (i.e. the fringe bitmap face).
9749 2004-02-25  Miles Bader  <miles@gnu.org>
9751         * xdisp.c (check_it): Check string/string_pos consistency.
9752         (init_iterator): Initialize string-related fields properly.
9754 2004-02-11  Miles Bader  <miles@gnu.org>
9756         * xdisp.c (produce_image_glyph): Force negative descents to zero.
9758 2004-02-10  Miles Bader  <miles@gnu.org>
9760         * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
9761         BLOCK_INPUT can be nested, so it doesn't make much sense.
9763 2004-02-24  Michael Mauger  <mmaug@yahoo.com>
9765         * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
9766         (xbm_read_bitmap_data): Use unsigned char for image data.
9768 2004-02-23  Luc Teirlinck  <teirllm@auburn.edu>
9770         * abbrev.c (Finsert_abbrev_table_description): Doc fix.
9772 2004-02-22  Jason Rumney  <jasonr@gnu.org>
9774         * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
9775         correctly over other bitmaps.
9777 2004-02-21  Eli Zaretskii  <eliz@gnu.org>
9779         * emacs.c (USAGE1): Split into two halves.
9780         (USAGE2): Second half of the old USAGE1.
9781         (USAGE3): Rename from USAGE2.
9782         (USAGE4): Rename from USAGE3.
9784 2004-02-21  Juri Linkov  <juri@jurta.org>
9786         * emacs.c (USAGE1): Add --no-desktop.  Move --display from USAGE2.
9787         Fix --multibyte.  Move --help, --version to USAGE2.  Add alias
9788         --file.  Fix -f, -l.  Sort options.  Untabify.
9789         (USAGE2): Add -hb.  Fix --name, --title.  Sort options.  Untabify.
9791 2004-02-19  Luc Teirlinck  <teirllm@auburn.edu>
9793         * category.c (Fdefine_category, Fcategory_docstring)
9794         (Fget_unused_category, Fset_category_table)
9795         (Fcategory_set_mnemonics): Doc fixes.
9797 2004-02-20  Kim F. Storm  <storm@cua.dk>
9799         * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
9800         The following changes are relative to the 2004-01-21 revision.
9801         (NREAD_INPUT_EVENTS): Define as max number of input events to read
9802         in one call to read_socket_hook.  Value is 8.
9803         (read_avail_input): Separate and rework handling of read_socket_hook
9804         and non-read_socket_hook cases.  Use smaller input_event buffer
9805         in read_socket_hook case, and repeat if full buffer is read.
9806         Use new local variable 'discard' to skip input after C-g.
9807         In non-read_socket_hook case, just use a single input_event, and
9808         call kbd_buffer_store_event on the fly for each character.
9810 2004-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
9812         * lisp.h (union Lisp_Object): Give a more precise type for `type'.
9813         Remove unused `gu' alternative.
9815 2004-02-19  Andreas Schwab  <schwab@suse.de>
9817         * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
9818         warning.
9820 2004-02-18  Kim F. Storm  <storm@cua.dk>
9822         * xdisp.c (get_window_cursor_type, display_and_set_cursor):
9823         Fix last change.
9825 2004-02-17  Kim F. Storm  <storm@cua.dk>
9827         * xdisp.c (fast_find_position): Fix return value of new version;
9828         it was inverted compared to the 21.1 version.
9829         (get_window_cursor_type): Don't look at glyph if NULL.
9830         (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
9832         * keyboard.c: Rework previous change; it didn't consider that the
9833         buf array was allocated on the stack.
9834         (prev_read): Remove variable.
9835         (read_avail_input_buf): New static event buffer array.
9836         (in_read_avail_input): New static variable to handle re-entrancy.
9837         (read_avail_input): Change buf to pinter to read_avail_input_buf.
9838         Use in_read_avail_input to handle re-entrance; when re-entered,
9839         fully initialize and use tmp_buf array instead of read_avail_input_buf.
9840         Do not initialize read_avail_input_buf in full here; instead assume it
9841         is always cleared on entry.  To ensure that, we clear (just) the
9842         entries that were used before we return.
9843         (init_keyboard): Initialize read_avail_input_buf here.
9845 2004-02-16  Jesper Harder  <harder@ifa.au.dk>
9847         * cmds.c (Fend_of_line): Doc fix.
9849 2004-02-16  Dmitry Antipov  <dmitry.antipov@mail.ru>  (tiny change)
9851         * keyboard.c (prev_read): New static variable.
9852         (read_avail_input): Use it to zero out only those slots in buf[]
9853         that were used last time we were called.
9855 2004-02-16  Eli Zaretskii  <eliz@gnu.org>
9857         * Makefile.in (obj): Move fringe.o from here...
9858         (XOBJ, MAC_OBJ): ...to here.
9860 2004-02-16  Stephen Eglen  <stephen@gnu.org>
9862         * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
9864 2004-02-15  Stefan Monnier  <monnier@iro.umontreal.ca>
9866         * data.c (Fbyteorder):
9867         * fringe.c (Fdefine_fringe_bitmap):
9868         * xdisp.c (handle_single_display_prop):
9869         * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
9871 2004-02-16  Jason Rumney  <jasonr@gnu.org>
9873         * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
9875 2004-02-15  Steven Tamm  <steventamm@mac.com>
9877         * macterm.c (Vmac_emulate_three_button_mouse): New variable for
9878         controlling emulation of a three button mouse with option and
9879         command keys.
9880         (Qreverse, mac_get_enumlated_btn): Handle the emulation.
9881         (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
9883 2004-02-15  Kim F. Storm  <storm@cua.dk>
9885         * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
9887         * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
9888         Perform byte-swapping.
9890 2004-02-14  Kim F. Storm  <storm@cua.dk>
9892         * dispextern.h (struct draw_fringe_bitmap_params): Change member
9893         bits from char to short to facilitate wider bitmaps.
9894         (struct redisplay_interface): Fix prototype of define_fringe_bitmap
9895         member.
9897         * fringe.c (struct fringe_bitmap): Change member bits from char to
9898         short to facilitate 16 bits wide bitmaps.  Modify all standard
9899         bitmaps accordingly.
9900         (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
9901         (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
9902         (draw_fringe_bitmap): Ditto.
9903         (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
9904         (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
9905         handle up to 16 bits wide bitmaps.
9906         (Fdefine_fringe_bitmap): Doc fix.  Handle wider bitmaps.
9907         (Ffringe_bitmaps_at_pos): Add missing arg declarations.
9909         * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
9910         (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
9911         need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
9913         * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
9914         so it is no longer necessary to expand them here.
9916         * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
9918 2004-02-12  Kim F. Storm  <storm@cua.dk>
9920         * window.c (Fwindow_fringes): Doc fix.
9922 2004-02-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9924         * xselect.c (x_get_foreign_selection): Add new optional parameter
9925         time_stamp.
9926         (Fx_get_selection_internal): Ditto, pass time_stamp to
9927         x_get_foreign_selection.
9929         * data.c (Fbyteorder): New function.
9931 2004-02-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9933         * atimer.c: Move include stdio.h to same place as in other files.
9935         * region-cache.c: Ditto.
9937         * sysdep.c: Ditto.
9939         * xfaces.c: Ditto.
9941 2004-02-09  Sam Steingold  <sds@gnu.org>
9943         * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
9945 2004-02-09  Kim F. Storm  <storm@cua.dk>
9947         * fringe.c: New file.  Move original fringe related declarations
9948         and code from dispextern.h and xdisp.c here.
9949         Rework code to support user defined fringe bitmaps, redefining
9950         standard bitmaps, ability to overlay user defined bitmap with
9951         overlay arrow bitmap, and add faces to bitmaps.
9952         (Voverflow_newline_into_fringe): Declare here.
9953         (enum fringe_bitmap_align): New enum.
9954         (..._bits): All bitmaps are now defined without bitswapping; that
9955         is now done in init_fringe_once (if necessary).
9956         (standard_bitmaps): New array with specifications for the
9957         standard fringe bitmaps.
9958         (fringe_faces): New array.
9959         (valid_fringe_bitmap_id_p): New function.
9960         (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
9961         (draw_fringe_bitmap): New function which draws fringe bitmap,
9962         possibly overlaying bitmap with cursor in right fringe or the
9963         overlay arrow in the left fringe.
9964         (update_window_fringes): Do not handle overlay arrow here.
9965         Compare and copy fringe bitmap faces.
9966         (init_fringe_bitmap): New function.
9967         (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
9968         define and destroy user defined fringe bitmaps.
9969         (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
9970         (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
9971         (syms_of_fringe): New function.  Defsubr new DEFUNs.
9972         DEFVAR_LISP Voverflow_newline_into_fringe.
9973         (init_fringe_once, init_fringe): New functions.
9974         (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
9976         * Makefile.in (obj): Add fringe.o.
9977         (fringe.o): New dependencies.
9979         * dispextern.h (FRINGE_ID_BITS): New definition for number of
9980         bits allocated to hold a fringe number.  Increase number of bits
9981         from 4 to 8 to allow user defined fringe bitmaps.
9982         (struct glyph_row, struct it): New members left_user_fringe_bitmap,
9983         left_user_fringe_face_id, right_user_fringe_bitmap,
9984         right_user_fringe_face_id.
9985         (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
9986         Move to new file fringe.c.
9987         (MAX_FRINGE_BITMAPS): Define here.
9988         (struct draw_fringe_bitmap_params): New members bits, cursor_p,
9989         and overlay_p.  Change member which to int.
9990         (struct redisplay_interface): New members define_fringe_bitmap
9991         and destroy_fringe_bitmap.
9992         (valid_fringe_bitmap_id_p): Add prototype.
9993         (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
9995         * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
9996         arrows.
9997         (update_frame): Do flush_display if force_flush_display_p to
9998         ensure display (specifically fringes) are updated in a timely
9999         manner when resizing the frame by dragging the mouse.
10000         (update_window_line): Update row if overlay arrow changed.
10001         (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
10002         or overlay arrow changed.
10004         * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
10005         syms_of_fringe, and init_fringe.
10007         * frame.h (struct frame): New member force_flush_display_p.
10009         * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
10010         Add prototypes.
10012         * macterm.c (mac_draw_bitmap): Add overlay_p arg.
10013         (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
10014         thanks to YAMAMOTO Mitsuharu for advice on how to do this.
10015         Use cursor color for displaying cursor in fringe.
10016         (x_redisplay_interface): Add null handlers for
10017         define_fringe_bitmap and destroy_fringe_bitmap functions.
10019         * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
10020         xterm.c to handle overlayed fringe bitmaps and to use cursor color
10021         for displaying cursor in fringe.
10022         (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
10023         specific functions to define and destroy fringe bitmaps in fringe_bmp.
10024         (w32_redisplay_interface): Add them to redisplay_interface.
10025         (w32_term_init): Call w32_init_fringe instead of explicitly
10026         defining fringe bitmaps in fringe_bmp array.
10027         (x_delete_display): Call w32_reset_fringes instead of explicitly
10028         destroying fringe bitmaps in fringe_bmp array.
10030         * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
10031         (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
10032         (continued_bits, continuation_bits, ov_bits, first_line_bits)
10033         (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
10034         (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
10035         (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
10036         (draw_window_fringes, compute_fringe_widths, update_window_fringes):
10037         Move fringe handling vars and code to new file fringe.c.
10038         (handle_display_prop): Handle left-fringe and right-fringe
10039         display properties; store user fringe bitmaps in iterator.
10040         (move_it_in_display_line_to): Handle cursor in fringe at eob.
10041         (clear_garbaged_frames): Set force_flush_display_p if resized.
10042         (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
10043         (display_line): Handle cursor in fringe at eob.
10044         (display_line): Set row user fringe bitmaps from iterator.
10046         * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
10047         Use cursor color for displaying cursor in fringe.
10048         (x_redisplay_interface): Add null handlers for
10049         define_fringe_bitmap and destroy_fringe_bitmap functions.
10051 2004-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10053         * macfns.c (Fx_change_window_property): Make doc string and
10054         parameters same as for X version.
10056         * w32fns.c (Fx_change_window_property): Ditto.
10058 2004-02-07  Kim F. Storm  <storm@cua.dk>
10060         * xdisp.c (hscroll_window_tree): Position cursor near to right
10061         margin in hscrolled window when jumping to end of line (rather
10062         than centering cursor).
10064         * process.c (wait_reading_process_input): Don't do adaptive read
10065         buffering if waiting for a specific process.
10067 2004-02-05  Luc Teirlinck  <teirllm@auburn.edu>
10069         * minibuf.c (Fminibufferp, Fread_from_minibuffer)
10070         (Fread_minibuffer, Feval_minibuffer)
10071         (Fread_string, Fread_no_blanks_input)
10072         (Fcompleting_read): Doc fixes.
10073         (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
10074         completion-regexp-list.  Define Qcase_fold_search and staticpro it.
10075         (read_minibuf): Fix initial comment.
10076         (Ftry_completion, Fall_completions, Ftest_completion): Bind
10077         case-fold-search to the value of completion-ignore-case when
10078         checking completion-regexp-list.
10079         (Fdisplay_completion_list): Make it handle arguments that are
10080         symbols.  Doc fix.
10082 2004-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10084         * xterm.h: Add declaration of free_frame_menubar.
10086         * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
10087         (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
10088         (Fx_change_window_property): Add declaration of parameters type and
10089         format.  Remove unused variable cons.
10091         * xselect.c: Include stdio,h.
10093 2004-02-05  Kenichi Handa  <handa@m17n.org>
10095         * fns.c (Fset_char_table_range): Fix previous change.
10097         * buffer.c (Fset_buffer_multibyte): Fix docstring.
10099 2004-02-04  Luc Teirlinck  <teirllm@auburn.edu>
10101         * editfns.c (Fchar_after, Fchar_before): Doc fixes.
10103 2004-02-04  Stefan Monnier  <monnier@iro.umontreal.ca>
10105         * keymap.c (Vmouse_events): Rename from Vmenu_events.
10106         (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
10108 2004-02-04  Kenichi Handa  <handa@m17n.org>
10110         * fns.c (Fset_char_table_range): Handle charsets ascii,
10111         eight-bit-control, and eight-bit-graphic correctly.
10113 2004-02-03  Jason Rumney  <jasonr@gnu.org>
10115         * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
10117         * w32fns.c (x_to_w32_font): Likewise.
10119 2004-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10121         * xterm.h: Add x_handle_dnd_message, x_check_property_data,
10122         x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
10124         * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
10125         ClientMessages.
10127         * xselect.c: Include termhooks.h and X11/Xproto.h
10128         (x_check_property_data, x_fill_property_data)
10129         (x_property_data_to_lisp, mouse_position_for_drop)
10130         (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
10131         (Fx_send_client_event): Move here from xfns.c.
10132         (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
10134         * xfns.c (x-send-client-message): Move to xselect.c
10135         (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
10136         OUTER_P.
10137         (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
10138         VECTOR_RET_P.  Handle AnyPropertyType.  Call x_property_data_to_lisp
10139         if vector_ret_p is true.
10140         (syms_of_xfns): Sx_send_client_message moved to xselect.c.
10142 2004-02-02  Eli Zaretskii  <eliz@gnu.org>
10144         * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
10145         basename of FILE relative to it, not FILE itself.
10147 2004-02-02  Kenichi Handa  <handa@m17n.org>
10149         * coding.c (coding_restore_composition): Check invalid
10150         composition data more rigidly.
10152 2004-01-30  Luc Teirlinck  <teirllm@auburn.edu>
10154         * fileio.c (Fread_file_name_internal): Correctly handle the case
10155         where insert-default-directory is nil.
10156         (Fread_file_name): Always return an empty string if the user exits
10157         with an empty minibuffer.  Adapt the docstring accordingly.
10158         (syms_of_fileio): Adapt the docstring of insert-default-directory
10159         to the change in Fread_file_name.
10161 2004-01-29  Eli Zaretskii  <eliz@gnu.org>
10163         * alloca.c [!alloca]: Fix the prototype for xfree.
10165 2004-01-29  Kenichi Handa  <handa@m17n.org>
10167         * fns.c (string_char_to_byte): Optimize for ASCII only string.
10168         (string_byte_to_char): Likewise.
10170 2004-01-28  Peter Runestig  <peter@runestig.com>
10172         * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
10174 2004-01-27  Steven Tamm  <steventamm@mac.com>
10176         * unexmacosx.c (unexec_copy): Do not copy more than was
10177         requested to prevent overwriting during unexec.
10179 2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10181         * process.c (sigchld_handler): Add comment about not calling malloc.
10183         * process.h: Add extern to synch_process_termsig.
10185 2004-01-27  Steven Tamm  <steventamm@mac.com>
10187         * macterm.c (make_mac_frame, make_mac_terminal_frame):
10188         Move setting of scroll bars from make_mac_frame to
10189         make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
10191 2004-01-26  Richard M. Stallman  <rms@gnu.org>
10193         * search.c (Freplace_match): Handle nonexistent
10194         back-references properly.
10196 2004-01-03  Richard M. Stallman  <rms@gnu.org>
10198         * window.c (decode_any_window): New function.
10199         (Fwindow_height, Fwindow_width, Fwindow_edges)
10200         (Fwindow_pixel_edges, Fwindow_inside_edges)
10201         (Fwindow_inside_pixel_edges): Use decode_any_window.
10203 2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10205         * process.h: synch_process_termsig new variable.
10207         * callproc.c: Define synch_process_termsig.
10208         (Fcall_process): Initiate synch_process_termsig to zero and
10209         check if non-zero and get signal name after subprocess has ended.
10211         * process.c (sigchld_handler): Set synch_process_termsig
10212         if terminated by a signal.  synch_process_death setting removed.
10214         * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
10216 2004-01-26  Andreas Schwab  <schwab@suse.de>
10218         * print.c (print_preprocess): Declare size as EMACS_INT to not
10219         lose bits.
10220         (print_object): Likewise.
10221         * alloc.c (Fpurecopy): Likewise.
10223 2004-01-25  Luc Teirlinck  <teirllm@auburn.edu>
10225         * window.c (Fwindow_minibuffer_p): Doc fix.
10227 2004-01-24  Jonathan Yavner  <jyavner@member.fsf.org>
10229         * editfns.c (Fformat): Make both passes accept the same set of flags.
10231 2004-01-23  Kenichi Handa  <handa@m17n.org>
10233         * fns.c (Fmd5): If OBJECT is a buffer different from the current
10234         one, set buffer to OBJECT temporarily.
10236 2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
10238         * keyboard.c (kbd_buffer_gcpro): Remove.
10239         (kbd_buffer_store_event, clear_event, Fdiscard_input)
10240         (stuff_buffered_input, init_keyboard, syms_of_keyboard):
10241         Don't initialize and/or maintain the variable any more.  It was made
10242         redundant by my commit of 2003-06-15.
10244         * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
10246 2004-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10248         * lisp.h: Add undef DECL_ALIGN.
10250 2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
10252         * process.c (wait_reading_process_input) [SYNC_INPUT]:
10253         Check interrupt_input_pending explicitly.
10255         * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
10257         * keyboard.c (handle_async_input): New fun,
10258         extracted from input_available_signal.
10259         (input_available_signal, reinvoke_input_signal): Use it.
10261 2004-01-20  Stefan Monnier  <monnier@iro.umontreal.ca>
10263         * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
10265         * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
10266         manipulation macros for when tags are in the lower bits.
10267         (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
10268         (DECL_ALIGN): New macro.
10269         (DEFUN): Use it.
10271         * lisp.h [ENABLE_CHECKING]: Don't force union type.
10273         * s/darwin.h (__attribute__): Remove outdated workaround.
10275         * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
10277         * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
10278         Don't check range of malloc address.
10279         (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
10281         * process.c (wait_reading_process_input): Lisp_Object/int mixup.
10283         * dired.c (Ffile_attributes): Lisp_Object/int mixup.
10285 2004-01-19  Kenichi Handa  <handa@m17n.org>
10287         * fontset.c (fontset_font_pattern): Fix previous change.
10289 2004-01-16  Miles Bader  <miles@gnu.ai.mit.edu>
10291         * xdisp.c (Voverflow_newline_into_fringe)
10292         (move_it_in_display_line_to, redisplay_internal)
10293         (update_window_fringes, redisplay_window, display_line, window):
10294         Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
10295         that it compiles without a window-system.
10296         * dispnew.c (direct_output_for_insert, update_window): Likewise.
10298 2004-01-16  Kim F. Storm  <storm@cua.dk>
10300         * buffer.h (struct buffer): New member indicate_buffer_boundaries.
10302         * buffer.c (init_buffer_once): Set buffer_defaults and
10303         buffer_local_flags for indicate_buffer_boundaries.
10304         (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
10305         default- variable for it.
10307         * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
10308         right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
10309         New members exact_window_width_line_p and cursor_in_fringe_p for
10310         overflowing newlines into right fringe.
10311         New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
10312         and indicate_bottom_line_p for buffer boundaries and scrolling.
10313         (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
10314         FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
10315         HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
10316         and HOLLOW_SQUARE_BITMAP.
10317         (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
10318         Add prototypes.
10320         * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
10321         instead of related indicator fields.
10322         Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
10323         (direct_output_for_insert): Handle exact width lines like
10324         contined lines.  Call update_window_fringes.
10325         (update_window): Call update_window_fringes.
10326         (scrolling_window): Don't skip desired rows with changed bitmaps.
10327         Check if fringe bitmaps changes when assigning scrolled rows.
10329         * xdisp.c (Voverflow_newline_into_fringe): New variable.
10330         (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
10331         (move_it_in_display_line_to): Overflow newline into fringe for
10332         rows that are exactly as wide as the window.
10333         (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
10334         (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
10335         (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
10336         (fringe_bitmaps): Add new bitmaps.
10337         (draw_fringe_bitmap): Make extern.  Remove WHICH arg.
10338         Select proper bitmap for cursor in fringe when appropriate.
10339         Handle alignment of bitmap to top or bottom of row.
10340         (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
10341         done by update_window_fringes.
10342         (update_window_fringes, draw_window_fringes): New functions.
10343         (redisplay_internal): Call update_window_fringes in case only
10344         cursor row is updated.
10345         (redisplay_window): Call update_window_fringes.
10346         Explicitly call draw_window_fringes if redisplay was done using
10347         the current matrix or the overlay arrow is in the window.
10348         (try_window_reusing_current_matrix): Mark scrolled rows for
10349         fringe update (to update buffer-boundaries / scrolling icons).
10350         (find_last_unchanged_at_beg_row): Handle exact width lines line
10351         continued lines.
10352         (display_line): Overflow newline into fringe for rows that are
10353         exactly as wide as the window.  Don't append space for newline
10354         in this case.
10355         (notice_overwritten_cursor): Explicitly clear cursor bitmap
10356         in fringe as if it had been overwritten.
10357         (erase_phys_cursor): Erase cursor bitmap in fringe.
10358         (syms_of_xdisp): Mark show-trailing-whitespace and
10359         void-text-area-pointer as user options.
10360         DEFVAR_LISP Voverflow_newline_into_fringe.  Enable by default.
10362         * xterm.c (x_update_window_end): Call draw_window_fringes.
10363         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10364         in row instead of actually drawing fringe bitmaps.
10365         (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10366         (x_draw_window_cursor): Draw cursor in fringe.
10368         * w32term.c (x_update_window_end): Call draw_window_fringes.
10369         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10370         in row instead of actually drawing fringe bitmaps.
10371         (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10372         (w32_draw_window_cursor): Draw cursor in fringe.
10374         * macterm.c (x_update_window_end): Call draw_window_fringes.
10375         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
10376         in row instead of actually drawing fringe bitmaps.
10377         (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
10378         (mac_draw_window_cursor): Draw cursor in fringe.
10380 2004-01-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10382         * xterm.c (handle_one_xevent): Don't handle characters that are part
10383         of an old style (XLookupString) compose sequence.
10385 2004-01-15  Kenichi Handa  <handa@m17n.org>
10387         * search.c (Freplace_match): Use make_multibyte_string or
10388         make_unibyte_string according to the buffer multibyteness.
10390 2004-01-14  Stefan Monnier  <monnier@iro.umontreal.ca>
10392         * alloc.c (struct interval_block, struct string_block)
10393         (struct symbol_block, struct marker_block, live_string_p)
10394         (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
10395         Better preserve alignment for objects in blocks.
10396         (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
10398         * lread.c (defvar_per_buffer): Remove dead declaration.
10400         * macterm.c (do_check_ram_size): Don't hardcode the lisp address
10401         space size.
10403 2004-01-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10405         * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
10406         if a key press should pop down.  Only pop down if a key is pressed
10407         outside the menu/dialog.
10408         (create_and_show_popup_menu): Pass 0 for down_on_keypress to
10409         popup_get_selection.
10410         (create_and_show_dialog): Pass 1 for down_on_keypress to
10411         popup_get_selection.
10413 2004-01-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10415         * alloc.c (allocate_vectorlike): Surround calls to mallopt with
10416         BLOCK/UNBLOCK_INPUT.
10418 2004-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10420         * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
10421         specified.
10423 2004-01-08  Kenichi Handa  <handa@m17n.org>
10425         * editfns.c (Fformat): Fix '&' to '&&'.
10427 2004-01-08  Andreas Schwab  <schwab@suse.de>
10429         * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
10430         size if PSEUDOVECTOR_FLAG is set.
10432 2004-01-07  Kenichi Handa  <handa@m17n.org>
10434         * charset.c (Fdeclare_equiv_charset): Fix docstring.
10436         * fontset.c (fontset_ref_via_base): Fix previous change.
10438 2004-01-07  Kim F. Storm  <storm@cua.dk>
10440         * process.c (read_process_output): Only activate adaptive
10441         buffering if we read less than 256 bytes at a time.
10443 2004-01-06  Kim F. Storm  <storm@cua.dk>
10445         * dispnew.c (buffer_posn_from_coords): Return both buffer/string
10446         object and image object.  Return glyph width and height.
10447         (mode_line_string, marginal_area_string): Ditto.
10449         * dispextern.h (buffer_posn_from_coords, mode_line_string)
10450         (marginal_area_string): Fix prototypes.
10452         * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
10453         POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN.  All uses changed.
10454         (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
10456         * keyboard.c (make_lispy_position): Use modified mode_line_string,
10457         buffer_posn_from_coords, and marginal_area_string functions to
10458         include both string object and image object in the lispy position.
10459         Also add actual glyph width and height to position.
10460         (read_key_sequence): Use real buffer position from mouse
10461         event to find keymap property even when click is in marginal area.
10463         * xdisp.c (note_mode_line_or_margin_highlight): Use modified
10464         mode_line_string and marginal_area_string functions to handle
10465         both string object and image object properties.
10467 2004-01-06  Andreas Schwab  <schwab@suse.de>
10469         * syntax.c (skip_chars): Treat '-' at end of string as ordinary
10470         character.
10472 2004-01-02  Andreas Schwab  <schwab@suse.de>
10474         * macterm.c (emacs_options, x_initialized, same_x_server):
10475         Remove unused (and duplicated) definitions.
10477 2004-01-02  Kim F. Storm  <storm@cua.dk>
10479         * process.h (struct Lisp_Process): New members for adaptive read
10480         buffering: adaptive_read_buffering, read_output_delay, and
10481         read_output_skip.
10483         * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
10484         (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
10485         (READ_OUTPUT_DELAY_MAX_MAX): New constants.
10486         (process_output_delay_count, process_output_skip): New vars.
10487         (Vprocess_adaptive_read_buffering): New variable.
10488         (make_process): Initialize adaptive read buffering members.
10489         (Fstart_process): Set adaptive_read_buffering member.
10490         (deactivate_process): Cleanup adaptive read buffering.
10491         (wait_reading_process_input): Temporarily omit delayed
10492         subprocesses from the set of file descriptors to read from;
10493         adjust the select timeout if we skipped any subprocesses.
10494         (read_process_output): Increase adaptive read buffering delay if
10495         we read less than a full buffer; reduce delay when we read a
10496         full buffer.
10497         (send_process): Simplify using local Lisp_Process var.
10498         Reset adaptive read buffering delay after write.
10499         (init_process): Initialize process_output_delay_count and
10500         process_output_skip.
10501         (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
10503 2004-01-01  Jason Rumney  <jasonr@gnu.org>
10505         * w32term.c (w32_text_out): Use s->font, for consistency with callers.
10507 2003-12-30  Luc Teirlinck  <teirllm@auburn.edu>
10509         * print.c (Ferror_message_string): Add hyperlink in the docstring
10510         to the definition of `signal' in the Elisp manual.
10511         * eval.c (Fsignal): Ditto.
10513 2003-12-29  James Clark  <jjc@jclark.com>
10515         * fns.c (internal_equal): Return t for two NaN arguments.
10517 2003-12-29  Richard M. Stallman  <rms@gnu.org>
10519         * data.c (store_symval_forwarding): Handle setting
10520         default-fill-column, etc., by changing the value in
10521         buffers that use the default.
10523         * minibuf.c (Fset_minibuffer_window): Doc fix.
10525         * fileio.c (choose_write_coding_system): Ignore auto_saving
10526         if using the visited file for auto saves.
10527         (Fwrite_region): Don't update SAVE_MODIFF
10528         if auto-saving in visited file.
10530 2003-12-29  Kenichi Handa  <handa@m17n.org>
10532         * dispextern.h (face_font_available_p): Extern it.
10534         * fontset.c (Voverriding_fontspec_alist): New variable.
10535         (lookup_overriding_fontspec): New function.
10536         (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
10537         (fontset_font_pattern): Likewise.
10538         (regulalize_fontname): New function.
10539         (Fset_fontset_font): Call regulalize_fontname.
10540         (Fset_overriding_fontspec_internal): New function.
10541         (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
10542         Defsubr Sset_overriding_fontspec_internal.
10544         * xfaces.c (face_font_available_p): New function.
10546 2003-12-28  Richard M. Stallman  <rms@gnu.org>
10548         * buffer.c (Fother_buffer): Don't crash if BUF is nil
10549         or if its name is nil.
10551         * buffer.c (Fkill_buffer): Don't delete auto-save file
10552         if it's the same as the visited file.
10554 2003-12-28  Luc Teirlinck  <teirllm@auburn.edu>
10556         * coding.c (Fcheck_coding_system): Doc fix.
10558 2003-12-28  Kim F. Storm  <storm@cua.dk>
10560         * Makefile.in (eval.o): Depend on dispextern.h.
10562         * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
10563         image glyph using image's ascent.
10564         (mode_line_string): Return image glyph as object clicked on.
10565         Adjust y0 for image glyph using image's ascent.
10567         * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
10568         (struct glyph): New members, ascent and descent.  Used to save
10569         this glyph's ascent and descent, instead of having.
10570         (struct glyph): Declare member face_id using FACE_ID_BITS.
10571         (find_hot_spot): Add prototype.
10573         * keyboard.c (Qimage): Remove extern (now in lisp.h).
10574         (QCmap): Declare extern.
10575         (make_lispy_position): When position is inside image hot-spot,
10576         use hot-spot element's id as posn element.
10578         * lisp.h (IMAGEP): New macro to test for image object type.
10579         (Qimage): Declare extern.
10581         * macfns.c (Qimage): Remove extern (now in lisp.h).
10582         (valid_image_p, parse_image_spec): Use IMAGEP macro.
10584         * macterm.c (Qface, Qmouse_face): Remove unused externs.
10586         * w32fns.c (Qimage): Remove extern (now in lisp.h).
10587         (valid_image_p, parse_image_spec): Use IMAGEP macro.
10589         * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
10591         * w32term.c (Qface, Qmouse_face): Remove unused externs.
10593         * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
10594         pointer types.
10595         (Qrelative_width, Qalign_to): Remove unused variables.
10596         (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
10597         (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
10598         image maps.
10599         (x_y_to_hpos_vpos): Return glyph relative coordinates through
10600         new dx and dy args.
10601         Remove buffer_only_p arg (always 0).  Simplify code accordingly.
10602         (get_glyph_string_clip_rect): Draw cursor using glyph's rather
10603         than row's ascent and height, to get sensible height on tall rows.
10604         (build_desired_tool_bar_string): Remove Qimage extern.
10605         (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
10606         (produce_image_glyph): Adjust it.ascent to minimum row ascent if
10607         image glyph is alone on the last line.
10608         (append_glyph, append_composite_glyph, produce_image_glyph)
10609         (append_stretch_glyph): Set glyph's ascent and descent.
10610         (on_hot_spot_p): New function to check if position is inside an
10611         rectangular, circular, or polygon-shaped image hot-spot,
10612         (find_hot_spot): New function to search for image hot-spot.
10613         (Flookup_image_map): New defun to search for image hot-spot.
10614         (define_frame_cursor1): New aux function to determine frame pointer.
10615         (note_mode_line_or_margin_highlight, note_mouse_highlight):
10616         Handle `pointer' text property and :pointer image property to
10617         control frame pointer shape.  Detect image hot-spots for pointer
10618         and help_echo properties.  Use define_frame_cursor1.
10619         (note_mouse_highlight): Use Vvoid_text_area_pointer.
10620         (syms_of_xdisp): Defsubr new defun.  Intern and staticpro new variables.
10621         DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
10623         * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
10625         * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
10626         (Qimage): Remove extern (now in lisp.h).
10627         (valid_image_p, parse_image_spec): Use IMAGEP macro.
10629         * xmenu.c (show_help_event): Remove unused code.
10631         * xterm.c (Qface, Qmouse_face): Remove unused externs.
10632         (x_draw_hollow_cursor): Draw cursor using glyph's rather than
10633         row's ascent and descent, to get a sensible height on tall rows.
10635 2003-12-25  Luc Teirlinck  <teirllm@auburn.edu>
10637         * minibuf.c (Fcompleting_read): Undo previous change.
10639 2003-12-25  Lars Hansen  <larsh@math.ku.dk>
10641         * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
10642         Arguments GCPRO'ed in call to file name handler.
10644 2003-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
10646         * termcap.c (tgetst1): Scan for "%pN"; if all
10647         N are continuous in [1,9], remove all "%pN".
10649 2003-12-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10651         * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
10653         * xfaces.c (lface_fully_specified_p): Take into account that
10654         MAC OS always have unspecified stipple.
10656 2003-12-24  Thien-Thi Nguyen  <ttn@gnu.org>
10658         * tparam.c (tparam1): Add handling for `%pN', which
10659         means use param N for the next substitution.
10661 2003-12-24  Thien-Thi Nguyen  <ttn@gnu.org>
10663         * xfaces.c (Fcolor_gray_p): Fix omission bug:
10664         In case `frame' is nil, consult the selected frame.
10665         (Fcolor_supported_p): Likewise.
10667 2003-12-23  Luc Teirlinck  <teirllm@auburn.edu>
10669         * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
10670         Doc fixes.
10672         * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
10673         and an integer.  Adapt the introductory comment accordingly.
10674         (Fread_from_minibuffer): Delete code moved into read_minibuf.
10675         Doc fix.
10676         (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
10677         read_minibuf.
10678         (Fcompleting_read): Delete code moved into read_minibuf.
10679         (Ftest_completion): Make it handle obarrays and hash tables correctly.
10681 2003-12-03  Kenichi Handa  <handa@m17n.org>
10683         * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
10684         encoding sequence.
10686 2003-12-01  Kenichi Handa  <handa@m17n.org>
10688         * composite.c (syms_of_composite): Don't make the compostion hash
10689         table week.
10691 2003-11-30  Luc Teirlinck  <teirllm@auburn.edu>
10693         * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
10694         * textprop.c (Fget_char_property_and_overlay): New function.
10695         (syms_of_textprop): Defsubr it.
10697 2003-11-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10699         * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
10700         to compile on terminal configuration.
10702         * fileio.c (Fread_file_name): Check use_file_dialog also before
10703         calling Fx_file_dialog.
10705         * fns.c (use_file_dialog): New variable.
10706         (syms_of_fns): DEFVAR_BOOL use-file-dialog.
10708 2003-11-29  Kim F. Storm  <storm@cua.dk>
10710         * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
10711         (syms_of_msdos): Don't intern and staticpro them.
10713 2003-11-27  Kim F. Storm  <storm@cua.dk>
10715         * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
10716         coordinates relative to glyph at posn.  If glyph is an image,
10717         return that as object at posn.  Callers changed.
10718         (mode_line_string, marginal_area_string): Calculate and return
10719         pixel coordinates relative to glyph.  Callers changed.
10721         * dispextern.h (buffer_posn_from_coords, mode_line_string)
10722         (marginal_area_string): Fix prototypes.
10723         (window_box_left_offset, window_box_right_offset): Add prototypes.
10725         * frame.h (get_specified_cursor_type, get_window_cursor_type):
10726         Remove prototypes.
10728         * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
10730         * keyboard.c (make_lispy_position): Add x and y coordinates
10731         relative to the current glyph as 7th element of position.
10732         If glyph is an image, return it in the object element.
10733         (read_key_sequence): Skip checks for keymap property in cases
10734         where POSN_STRING is not a string (e.g. an image).
10736         * xdisp.c (Vdisplay_pixels_per_inch): New variable.
10737         (Vshow_text_cursor_in_void): New variable.
10738         (glyph_to_pixel_coords): Don't use negative hpos.
10739         (x_y_to_hpos_vpos): Fix for partially visible first glyph.
10740         (append_stretch_glyph): Change ascent arg to be actual value
10741         in pixels rather than ratio to height.  Callers changed.
10742         (calc_pixel_width_or_height): New aux function, implementing
10743         pixel based artihmetic for glyph widths and heights.
10744         (produce_stretch_glyph): Use calc_pixel_width_or_height for
10745         :width, :height, :align-to, and :ascent, thus allowing these to
10746         be specified in pixels as well as multiples of characters.
10747         Don't produce stretch glyphs with zero width or height.
10748         (get_specified_cursor_type): Declare static.
10749         (get_window_cursor_type): Declare static.  Add glyph arg to be
10750         able to know when cursor is on an image; always substitute
10751         hollow-box cursor for filled-box cursor on images, to avoid
10752         negative images and flicker when blinking the cursor.
10753         (display_and_set_cursor): Pass glyph to get_window_cursor_type.
10754         (note_mode_line_or_margin_highlight): Use non-text cursor rather
10755         than vertical scroll-bar cursor in display margins.
10756         (note_mouse_highlight): Use non-text cursor rather than text
10757         cursor in fringes and over images in the text area.
10758         Use non-text cursor when mouse pointer is outside editable text,
10759         i.e. in the void after end-of-line or end-of-buffer; this was
10760         already done for W32, but is now standard for all systems --
10761         user can toggle show-text-cursor-in-void to get old behaviour.
10762         (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
10763         Vdisplay_pixels_per_inch.
10765 2003-11-25  Andreas Schwab  <schwab@suse.de>
10767         * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
10768         EMACS_INT to not lose bits.
10769         (Ffillarray): Don't set bits beyond the size of a bool vector.
10771 2003-11-25  Kim F. Storm  <storm@cua.dk>
10773         * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
10774         define this defun on systems that cannot use stderr as lvalue.
10776 2003-11-24  Gerd Moellmann  <gerd@gnu.org>
10778         * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
10779         [__FreeBSD_version >= 500042]: Define as -znocombreloc because
10780         ld's default is incompatible with unexec.
10782 2003-11-23  Kim F. Storm  <storm@cua.dk>
10784         * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
10785         (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
10786         (Fforce_window_update): New defun.
10787         (syms_of_window): Defsubr it.
10788         (Fset_window_margins, Fset_window_fringes): Doc fix.
10790         * print.c (Fredirect_debugging_output): New defun.
10791         (syms_of_print): Defsubr it.
10793 2003-11-22  Luc Teirlinck  <teirllm@auburn.edu>
10795         * fns.c (Fset_char_table_parent): Doc fix.
10797 2003-11-22  Kim F. Storm  <storm@cua.dk>
10799         * dispnew.c (buffer_posn_from_coords): Return actual row/column
10800         for glyph clicked on, rather than (unused) pixel positions.
10801         (mode_line_string, marginal_area_string): Change X and Y args to
10802         pointers for returning actual row/column for glyph clicked on.
10803         Simplify and optimize loops.
10805         * dispextern.h (mode_line_string, marginal_area_string):
10806         Update prototypes.
10808         * keyboard.c (make_lispy_position): New function for generating
10809         mouse click positions from frame and pixel coordinates.
10810         Enhanced to return buffer position and actual row/column for
10811         events outside the text area using updated mode_line_string and
10812         marginal_area_string functions.
10813         Return left-fringe and right-fringe clicks as such, rather than
10814         clicks in text area.
10815         (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
10816         pixel_to_glyph_coords, as we never use the results.
10817         (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
10818         WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
10819         Eliminate unused code in WHEEL_EVENT handling.
10820         (make_lispy_movement): Use make_lispy_position.
10822         * window.c (coordinates_in_window): Remove redundant tests.
10823         Fix returned X pixel value for left-margin.
10825         * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
10826         mode_line_string and marginal_area_string parameters.
10828 2003-11-22  Lars Hansen  <larsh@math.ku.dk>
10830         * w32.c (struct the_group, getgrgid): Add.
10831         * mac.c (struct my_group, getgrgid): Add.
10833 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
10835         * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
10837 2003-11-21  Lars Hansen  <larsh@math.ku.dk>
10839         * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
10840         include in call to file name handler.  Optionally translate numeric
10841         UID and GID to strings.  Update docstring.
10842         (directory_files_internal): Add parameter ID-FORMAT.
10843         (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
10844         include in call to file name handler and call to
10845         directory_files_internal.  Update Docstring.
10846         (Fdirectory_files): Add dummy parameter in call to
10847         directory_files_internal.
10848         * lisp.h (Qinteger): Add.
10849         (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
10850         (Ffile_attributes): Add parameter.
10851         * data.c (Qinteger): Export.
10853 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
10855         * fns.c (Freverse, Fnreverse): Doc fixes.
10857 2003-11-19  Kim F. Storm  <storm@cua.dk>
10859         * xdisp.c (init_iterator): Initialize it->start to position
10860         before reseating (in case start position is invisible).
10861         (init_to_row_start): Set it->start to row-start.
10862         (redisplay_window): Accept optional_new_start if start position
10863         is invisible (in which case IT_CHARPOS overshoots PT).
10864         (display_line): Setup row->start from it->start (rather than
10865         it->current which is wrong if first char on line is invisible).
10866         When done, reseat it->start to it->current (= start of next row).
10867         (expose_area): Fix exposure of text area when first char (e.g. TAB)
10868         is only partially visible.
10870         * dispextern.h (struct it): New member start.
10872 2003-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
10874         * alloc.c (make_float, Fcons): Clear the markbit at init time.
10875         (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
10876         of block_index outside of the macro call.
10877         (Fgarbage_collect): Remove null code.
10879         * m/amdx86-64.h: Don't redefine XPNTR.
10881         * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
10882         of VALMASK.
10884         * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
10885         (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
10886         (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
10888         * lisp.h (VALMASK): Only define for non-union type.
10889         (MARKBIT): Remove.
10890         (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
10891         (XTYPE): Define unconditionally.
10892         (XSETTYPE): Remove one more remnant.
10893         (EQ): Define differently for the union and non-union cases.
10894         (INTMASK): New bit mask.
10895         (struct Lisp_Marker): Move down to prepare for upcoming patch.
10896         (GC_EQ): Delegate to EQ.
10898         * coding.c (coding_restore_composition): Lisp_Object/int mixup.
10900 2003-11-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10902         * xterm.c (x_window_to_scroll_bar): Move check of display to
10903         where window_id is compared.
10905 2003-11-17  Kim F. Storm  <storm@cua.dk>
10907         * dispextern.h (struct it): New member first_vpos.
10909         * xdisp.c (start_display): Set it->first_vpos.
10910         (try_window_id): Use first_vpos to start display in first _text_
10911         line if no reusable lines at start of window with header line.
10913 2003-11-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10915         * w32fns.c (XPutPixel):
10916         * w32bdf.c (w32_init_bdf_font):
10917         * sunfns.c (sel_read):
10918         * process.c (Fmake_network_process):
10919         * frame.c (store_frame_param):
10920         * fontset.c (Fset_fontset_font):
10921         * emacs.c (shut_down_emacs):
10922         * ccl.c (ccl_driver): Remove period at end of error message.
10924         * config.in: Regenerate.
10926         * xfns.c (x_window_to_frame, x_any_window_to_frame)
10927         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10928         (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
10929         (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
10930         (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
10932         * xterm.h (struct x_display_info): New field xg_cursor for GTK.
10934         * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
10935         (XTmouse_position, handle_one_xevent): Pass Display* to
10936         x_window_to_scroll_bar.
10937         (x_window_to_scroll_bar): Take a Display* argument.
10938         Check that display for frame is equal to Display* argument.
10939         (event_handler_gdk): Remove current_dpyinfo.  Get dpyinfo from
10940         x_display_info_for_display instead.  Use Display in xev instead
10941         of GDK_DISPLAY.
10942         (x_dispatch_event): Call x_display_info_for_display.
10943         (XTread_socket): Move GTK part out of loop.  current_dpyinfo removed.
10944         (x_connection_closed): Call xg_display_close for GTK.
10945         (x_term_init): Call xg_display_open for additional displays.
10946         Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
10947         for GTK.
10949         * xmenu.c (single_menu_item, mouse_position_for_popup)
10950         (x_activate_menubar): Formatting adjustments.
10952         * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
10953         adjustments.
10955         * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
10956         (xg_display_close, xg_create_default_cursor)
10957         (xg_get_gdk_pixmap_and_mask): New functions for multiple display
10958         handling.
10959         (xg_left_ptr_cursor): Remove.
10960         (xg_set_cursor): Change cursor to GdkCursor*.  Do not create
10961         cursor here.
10962         (xg_win_to_widget): Take Display* argument, call
10963         gdk_xid_table_lookup_for_display.
10964         (xg_create_frame_widgets, xg_get_file_name, create_menus)
10965         (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
10966         (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
10967         in FRAME_X_DISPLAY_INFO.
10968         (xg_get_scroll_id_for_window): Take Display* argument.
10969         (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
10970         (xg_initialize): Remove xg_left_ptr_cursor.
10972         * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
10973         Display* argument.
10974         (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
10976 2003-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10978         * xterm.c (x_detect_focus_change): Do not change focus frame for
10979         Enter/LeaveNotify if the current focus frame has explicit focus.
10981 2003-11-14  Kim F. Storm  <storm@cua.dk>
10983         * dispnew.c (update_text_area): Fix redisplay error when hscroll
10984         is active and first glyph is only partially visible.
10986 2003-11-13  Kenichi Handa  <handa@m17n.org>
10988         * xdisp.c (select_frame_for_redisplay): New function.
10989         (redisplay_internal): Record also selected_frame for
10990         unwind_redisplay.  Call select_frame_for_redisplay before
10991         redrawing each frame.
10992         (unwind_redisplay): Argument changed to a cons.
10994 2003-11-12  Luc Teirlinck  <teirllm@auburn.edu>
10996         * fns.c (Fstring_to_multibyte): Doc fix.
10998 2003-11-11  Kenichi Handa  <handa@m17n.org>
11000         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
11002 2003-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11004         * xfns.c (x_window): Set XtNx and XtNy in shell widget for
11005         program specified positions.
11007 2003-11-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11009         * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
11011 2003-11-08  Kenichi Handa  <handa@m17n.org>
11013         * Makefile.in (lisp): Add kannada.el.
11014         (shortlisp): Likewise.
11016 2003-11-07  Kenichi Handa  <handa@m17n.org>
11018         * coding.c (coding_allocate_composition_data):
11019         Reset coding->composing to COMPOSITION_NO.
11020         (coding_restore_composition): Detect invalid composition data.
11021         Give Fstring and Fvector a Lispy integer, not C int.
11023 2003-11-05  Stefan Monnier  <monnier@iro.umontreal.ca>
11025         * floatfns.c (Flogb): Don't use VALMASK.
11027         * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
11028         * m/ia64.h (VALBITS, XINT, XUINT): Remove.
11030         * lisp.h (XINT): Move the cast to clarify what is going on.
11031         (GCTYPEMASK, XSETTYPE): Remove.
11032         (XGCTYPE): Make it an alias of XTYPE.
11034 2003-11-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11036         * xterm.c (x_term_init): Fix formatting.
11038 2003-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11040         * gtkutil.h (xg_have_tear_offs): Declare.
11041         (xg_keep_popup, xg_did_tearoff): Remove.
11043         * gtkutil.c: Remove variable xg_did_tearoff.
11044         (xg_have_tear_offs): New function.
11045         (tearoff_remove): Just decrease xg_detached_menus.
11046         (tearoff_activate): Increase xg_detached_menus and call
11047         tearoff_remove when tearoff is removed.
11048         (xg_keep_popup): Remove function.
11049         (create_menus): Give add_tearoff_p as argument to recursive
11050         call to create_menus.
11051         (xg_create_widget): Use variables instead of multiple
11052         strcmp.  Tell create_menus to create tear off only for
11053         menu bar menus.
11054         (xg_update_menubar): Change title for a detached menu also.
11055         (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
11056         of deep_p.
11057         (xg_initialize): Initialize xg_detached_menus, remove
11058         initialization of xg_did_tearoff.
11060         * xmenu.c (set_frame_menubar): For GTK, set deep_p if
11061         xg_have_tear_offs returns non-zero.
11062         (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
11063         call to xg_keep_popup.
11065 2003-11-01  Andrew Choi  <akochoi@shaw.ca>
11067         * macterm.c (XTread_socket): Handle menubar selection and grow
11068         window only for mouseDown events.
11070 2003-10-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11072         * xterm.c (x_term_init): For GTK part, increase x_initialized
11073         to check for more than one display.  Use error instead of return 0.
11075 2003-10-31  Andrew Choi  <akochoi@shaw.ca>
11077         * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
11078         (copy_dysymtab): Call it.
11080 2003-10-31  Luc Teirlinck  <teirllm@auburn.edu>
11082         * eval.c (Fdefvaralias): Doc fix.
11084 2003-10-26  Luc Teirlinck  <teirllm@auburn.edu>
11086         * data.c (Fsetplist): Doc fix.
11088 2003-10-14  Lute Kamstra  <lute@gnu.org>
11090         * window.c (Fset_window_fringes): Clarify docstring.
11092 2003-10-14  Kim F. Storm  <storm@cua.dk>
11094         * window.c (Fset_window_margins): Simplify arg checking.
11096 2003-10-13  Richard M. Stallman  <rms@gnu.org>
11098         * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
11099         (print_partial_compiled_pattern): Replace assert with a printout.
11100         (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
11102         * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
11104         * window.c (Fset_window_margins): Allow only integers as args.
11105         (syms_of_window) <special-display-buffer-names, special-display-regexps>:
11106         Doc fixes.
11108 2003-10-13  Lute Kamstra  <lute@gnu.org>
11110         * window.c (Fset_window_fringes): Elaborate docstring.
11112 2003-10-12  Andrew Choi  <akochoi@shaw.ca>
11114         * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
11116         * s/darwin.h (GC_MARK_STACK): Define.
11118 2003-10-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11120         * window.c (shrink_windows): New function.
11121         (size_window): Call shrink_windows to calculate window sizes when
11122         shrinking frame with more than one window.
11124 2003-10-12  Kim F. Storm  <storm@cua.dk>
11126         * xdisp.c (compute_fringe_widths): Doc fix.
11128 2003-10-08  Kenichi Handa  <handa@m17n.org>
11130         * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
11132 2003-10-07  Kenichi Handa  <handa@m17n.org>
11134         * coding.c (Qcoding_system_define_form): New variable.
11135         (syms_of_coding): Intern and staticpro it.
11136         (Fcheck_coding_system): Try to autoload the definition of
11137         CODING-SYSTEM.
11139 2003-10-05  Luc Teirlinck  <teirllm@auburn.edu>
11141         * fns.c (Frequire): Doc fix.
11143 2003-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11145         * xfns.c (Fx_send_client_event): New function as a base for
11146         manipulating extended window manager hints.
11147         (Fx_send_client_event): Remove unused variable s.
11149         * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
11150         that function is removed.
11152         * xterm.c (x_set_offset): Use move_offset_left/top instead of
11153         x/y_pixels_outer_diff.
11154         (x_check_expected_move): Calculate move_offset_left/top.
11156         * xterm.h (struct x_output): New members: move_offset_top/left.
11158         * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
11159         call x_set_offset directly.
11161         * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
11163         * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
11165         * xterm.c (x_delete_display): Free font names and font_encoder
11166         in dpyinfo->font_table.
11168         * xfns.c (Fx_close_connection): Only call XFreeFont here.
11169         Move xfree of font names to x_delete_display.
11171         * xterm.h (struct x_display_info): New member, wm_type.
11172         (struct x_output): New members, expected_top/left and
11173         check_expected_move.
11175         * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
11176         is received.
11177         (handle_one_xevent): Rename x_check_expected_move from
11178         x_check_fullscreen_move.
11179         (x_set_offset): Only add WM decoration sizes to modified_top/left
11180         for X_WMTYPE_A.  Set check_expected_move when WM type is unknown.
11181         (x_check_expected_move): Rename from x_check_fullscreen_move.
11182         Removed fullscreen specific code.  Use check_expected_move,
11183         expected_left/top instead.  Also, set wm_type.
11184         (x_term_init): Initialize wm_type to unknown.
11186         * frame.c (x_fullscreen_move): Remove addition of WM decoration
11187         sizes to move_x/y.
11189 2003-10-03  Kenichi Handa  <handa@m17n.org>
11191         * macterm.c (x_load_font): Clear all members of FONTP before start
11192         filling them.
11194 2003-10-02  Kenichi Handa  <handa@m17n.org>
11196         * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
11197         before calling find_ccl_program_func.  Call find_ccl_program_func
11198         only when fontp->font_encoder is not NULL.
11200         * xterm.c (x_load_font): Clear all members of FONTP before start
11201         filling them.
11203 2003-10-03  John Paul Wallington  <jpw@gnu.org>
11205         * keymap.c (map_keymap): Don't abort when binding is a vector.
11207 2003-10-02  Jason Rumney  <jasonr@gnu.org>
11209         * makefile.w32-in (emacs.o, coding.o, bytecode.o):
11210         Sync dependencies with Makefile.in.
11211         (alloca.o): Remove.
11213         * w32fns.c (w32_load_system_font): Clear all members of FONTP before
11214         filling them.
11216         * w32bdf.c (w32_load_bdf_font): Likewise.
11218 2003-09-30  Richard M. Stallman  <rms@gnu.org>
11220         * term.c (set_tty_color_mode): Calculate current_mode_spec
11221         regardless of value of VAL.
11223         * intervals.c (graft_intervals_into_buffer):
11224         Set BUF_INTERVALS (buffer)->up_obj when appropriate.
11225         Handle over_used when splitting UNDER.
11227 2003-09-30  YAMAMOTO  Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11229         * regex.c (regex_compile): Free the stack when returning from function.
11231 2003-09-28  Kenichi Handa  <handa@m17n.org>
11233         * fontset.c (Finternal_char_font): Change return value to
11234         cons (FONT-NAME . GLYPH-CODE).
11236 2003-09-28  Eli Zaretskii  <eliz@gnu.org>
11238         * term.c (tty_setup_colors): Treat any negative argument as -1.
11240 2003-09-27  Gaute B Strokkenes  <biggaute@uwc.net>  (tiny change)
11242         * process.c (send_process): Delete unused temp_buf.
11244 2003-09-26  Dave Love  <fx@gnu.org>
11246         * xterm.c (x_bitmap_mask): Declare.
11248 2003-09-25  Dave Love  <fx@gnu.org>
11250         * Makefile.in (fns.o): Depend on md5.h.
11252 2003-09-25  Kim F. Storm  <storm@cua.dk>
11254         * window.c (set_window_buffer): Fix redisplay problems when
11255         switching between buffers with different display margin widths.
11257 2003-09-23  Kim F. Storm  <storm@cua.dk>
11259         * process.c (set_socket_option): Fix :bindtodevice option.
11260         (Fset_network_process_option): Update process contact list when
11261         setting option succeeds.
11262         (Fmake_network_process): Doc fix.
11264 2003-09-23  Dave Love  <fx@gnu.org>
11266         * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
11268 2003-09-22  Eli Zaretskii  <eliz@gnu.org>
11270         * term.c (set_tty_color_mode): Use INTEGERP to test whether a
11271         color mode is an integer number (it could be -1).
11273 2003-09-22  Richard M. Stallman  <rms@gnu.org>
11275         * intervals.c (graft_intervals_into_buffer): Correct the main loop
11276         in the case where OVER is longer than UNDER.
11278 2003-09-22  Masatake YAMATO  <jet@gyve.org>
11280         * window.c (Fset_window_scroll_bars): Validate the value of
11281         `vertical_type'.
11283 2003-09-21  Kim F. Storm  <storm@cua.dk>
11285         * frame.c (Vdefault_frame_scroll_bars): New variable.
11286         (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
11287         (syms_of_frame): DEFVAR_LISP it, and initialize according to
11288         window-system default scroll bar position.
11290         * window.c (Fwindow_scroll_bars): Doc fix.
11292 2003-09-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11294         * xterm.c (x_set_offset): Take window manager decorations into account.
11296 2003-09-19  Richard M. Stallman  <rms@gnu.org>
11298         * atimer.h: Don't include lisp.h.
11299         (P_): Define it here (as well as elsewhere).
11301         * print.c (Fprin1_to_string): Move the PRINTPREPARE
11302         later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
11304         * data.c (Fvariable_binding_locus): New function.
11305         (syms_of_data): defsubr it.
11306         (Flocal_variable_p): Delete duplicate call to indirect_variable.
11308 2003-09-18  Dave Love  <fx@gnu.org>
11310         * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
11312         * process.c (Fnetwork_interface_info): Fix type error.
11313         (Fnetwork_interface_list): Doc fix.
11314         (read_process_output, read_process_output): Delete unused var.
11316 2003-09-17  Kim F. Storm  <storm@cua.dk>
11318         * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
11319         Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
11320         (Fnetwork_interface_info): Check that ifreq struct has required
11321         fields before accessing them; this requires that those fields are
11322         defined as macros, which may be too restrictive on some platforms,
11323         but it is better than failing on other platforms.
11324         (syms_of_process): Only defsubr above fns when included.
11326 2003-09-17  Dave Love  <fx@gnu.org>
11328         * unexalpha.c: Don't include varargs.h.
11330 2003-09-17  Kim F. Storm  <storm@cua.dk>
11332         * process.c (Fset_process_sentinel): Add sentinel to childp plist
11333         for network process.
11334         (socket_options): Add `:' prefix to option names.  Add optbit field.
11335         (set_socket_option): Remove no_error arg and special handling of s < 0.
11336         Return 1<<optbit for known option, 0 for unknown.
11337         Do not interpret 0 as false for boolean option (only nil).
11338         Pass failed option and value to report_file_error.
11339         (Fset_network_process_options): Replace by Fset_network_process_option.
11340         (Fset_network_process_option): New function to set just one option.
11341         (Fmake_network_process): Allow :coding arg to be a cons.
11342         Allow :server arg to be an integer specifying backlog size.
11343         Remove :options arg, and allow options to be specified directly
11344         as :KEY, VALUE pairs.  Parse these options before binding socket.
11345         As before, :reuseaddr t is default for a server process, but this
11346         can now be disabled by specifying :reuseaddr nil.
11347         (Fnetwork_interface_info): Rename from Fget_network_interface_info.
11348         (init_process): Availability of network options is now checked with
11349         simpler syntax (featurep 'make-network-process :OPTION); use loop to
11350         setup features.
11351         (syms_of_process): Fix defsubr's for the replaced functions.
11353 2003-09-16  Dave Love  <fx@gnu.org>
11355         * Makefile.in: Depend on coding.h.
11357 2003-09-14  Kim F. Storm  <storm@cua.dk>
11359         * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
11360         (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
11361         (syms_of_process): Defsubr them.
11363         * config.in: Regenerate.
11365 2003-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
11367         * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
11368         * m/news-r6.h (XUNMARK): Remove.
11369         * m/mips.h (XUNMARK): Remove.
11370         * m/mips-siemens.h (XUNMARK): Remove.
11371         * m/iris4d.h (XUNMARK): Remove.
11372         * m/hp800.h (XMARKBIT, XUNMARK): Remove.
11374 2003-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
11376         * lisp.h (VALBITS): Don't remove 1 for the markbit.
11377         (union Lisp_Object): Use unsigned int for types.  Remove markbit.
11378         (MARKBIT): Remove 1 from VALBITS so we still use same old val.
11379         (XTYPE): Use unsigned right-shift.
11380         (XMARKBIT, XMARK, XUNMARK): Remove.
11382         * alloc.c (init_intervals, init_symbol, init_marker):
11383         Don't preallocate anything.
11384         (Fgarbage_collect, mark_object): Ignore the markbit.
11386         * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
11388 2003-09-08  Lute Kamstra  <lute@gnu.org>
11390         * xdisp.c (pint2hrstr): New function.
11391         (decode_mode_spec): Add `%i' and `%I' specs.
11392         * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
11393         for `mode-line-format'.
11395 2003-09-07  Andreas Schwab  <schwab@suse.de>
11397         * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
11398         avoid warning.
11400 2003-09-07  Eli Zaretskii  <eliz@gnu.org>
11402         * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
11404 2003-09-03  Kim F. Storm  <storm@cua.dk>
11406         * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
11407         change (superseded by 2002-08-30 change); the default blink-off
11408         cursor is now again "no cursor".
11410 2003-09-01  Jason Rumney  <jasonr@gnu.org>
11412         * makefile.w32-in (alloca.o): Remove.
11413         (coding.o): Depend on intervals.h
11414         (emacs.o, bytecode.o): Depend on window.h
11416 2003-09-01  Dave Love  <fx@gnu.org>
11418         * Makefile.in (alloca.o): Remove commands.
11419         (coding.o): Depend on intervals.h composite.h window.h.
11420         (emacs.o): Depend on window.h keyboard.h keymap.h.
11421         (gtkutil.o): Depend on keyboard.h charset.h coding.h.
11422         (bytecode.o): Depend on window.h.
11424 2003-08-31  Jason Rumney  <jasonr@gnu.org>
11426         * w32term.c (w32_per_char_metric): Allow cached metrics to be
11427         returned even when font_type is unknown.
11429         * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
11431 2003-08-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11433         * xterm.c (x_term_init): Initialize new fields in x_display_info.
11435         * xterm.h (struct x_display_info): Add red/green/blue_bits and
11436         *_offset.
11438         * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
11439         calculate pixel value.
11441 2003-08-29  Gerd Moellmann  <gerd.moellmann@t-online.de>
11443         * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
11444         Don't tell redisplay display is accurate when it's actually been
11445         paused for pending input.
11447 2003-08-29  Richard M. Stallman  <rms@gnu.org>
11449         * dispnew.c (adjust_glyph_matrix): Call window_box
11450         whenever W is nonzero.
11452         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
11453         (Fkill_local_variable, Fmake_variable_frame_local)
11454         (Flocal_variable_p, Flocal_variable_if_set_p):
11455         Use indirect_variable to trace thru variable aliases.
11457         * config.in: Updated.
11459         * callint.c (Fcall_interactively): Save and restore
11460         Vthis_command, Vthis_original_command, real_this_command,
11461         and current_kboard->Vlast_command.
11463         * abbrev.c (Fexpand_abbrev): Insert before deleting.
11465 2003-08-29  Gerd Moellmann  <gerd@gnu.org>
11467         * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
11469 2003-08-28  David Abrahams  <dave@boost-consulting.com>  (tiny change)
11471         * coding.c (decode_coding_iso2022): Initialize local variable c2.
11472         (decode_coding_sjis_big5): Likewise.
11474 2003-08-27  Jason Rumney  <jasonr@gnu.org>
11476         * w32.c (sys_pipe): Protect against file descriptor overflow.
11478         * w32fns.c (syms_of_w32fns): Remove non-existent functions.
11480         * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
11482 2003-08-26  Terje Rosten  <terjeros@phys.ntnu.no>
11484         * xfns.c (Vgtk_version_string): New variable.
11485         (syms_of_xfns): DEFVAR_LISP it.  Provide gtk.
11487 2003-08-24  Eli Zaretskii  <eliz@gnu.org>
11489         * term.c (term_init): Remove `const' from buffer_size's declaration.
11491         * Makefile.in (msdos.o): Depend on intervals.h.
11493         * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
11495 2003-08-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11497         * xterm.h (struct x_display_info): New fields: client_leader_window
11498         and Xatom_wm_client_leader.
11500         * xterm.c (x_initialize): Move call to x_session_initialize to ...
11501         (x_term_init): ... here.  Initialize client_leader fields in dpyinfo.
11503         * xsmfns.c (create_client_leader_window): New function.
11504         (x_session_initialize): Call create_client_leader_window, take
11505         dpyinfo as argument.
11507         * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
11509         * Makefile.in (xsmfns.o): Add more depenedencies.
11511 2003-08-21  Dave Love  <fx@gnu.org>
11513         * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
11515 2003-08-21  Kenichi Handa  <handa@m17n.org>
11517         * term.c (term_init): Fix previous change; don't rely on the
11518         length of `buffer' if TERMINFO is defined.
11520 2003-08-20  Dave Love  <fx@gnu.org>
11522         * atimer.h: Include lisp.h.
11524         * lisp.h (EMACS_LISP_H): New.
11525         (popup_activated_flag): Don't declare.
11527         * alloca.c: Some merging with gnulib.  Change logic and doc
11528         concerning (x)malloc/(x)free -- no longer Emacs-specific.
11529         [DO_BLOCK_INPUT]: Don't include lisp.h.
11530         (xmalloc, xfree): Declare.
11531         (malloc): Don't declare.
11533         * Makefile.in (LWLIB_OPTIONS): Remove (unused).
11534         (alloca.o): Remove obsolete stuff concerning alloca.s.  Depend on
11535         atimer.h, blockinput.h.
11537         * alloc.c (lisp_align_malloc): Change type of `aligned'.
11539         * alloca.s: Remove.
11541 2003-08-19  Gerd Moellmann  <gerd@gnu.org>
11543         * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
11544         use -lncurses.
11546         * term.c (term_init): Use a buffer of size 4096 for tgetent since
11547         FreeBSD returns something longer than 2044.  Abort if the end of
11548         the buffer is overwritten.
11550 2003-08-19  Miles Bader  <miles@gnu.org>
11552         * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
11554 2003-08-19  Gerd Moellmann  <gerd@gnu.org>
11556         * alloc.c (lisp_align_malloc): Check for memory full when
11557         allocating ablocks, which also avoids freeing a pointer into an
11558         ablocks structure.
11560         * puresize.h (BASE_PURESIZE): Increase to 1100000.
11562         * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
11564 2003-08-16  Richard M. Stallman  <rms@gnu.org>
11566         * editfns.c (Fencode_time): Doc fix.
11568 2003-08-16  David Ponce  <david@dponce.com>
11570         * fileio.c (Fwrite_region): Fix conditional expression to issue
11571         the right message.
11573 2003-08-16  Juri Linkov  <juri@jurta.org>
11575         * syntax.c (Fforward_word): Argument changed to optional.
11576         Set default value to 1.
11578 2003-08-15  Kenichi Handa  <handa@m17n.org>
11580         * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
11581         what autoscaled.
11582         (best_matching_font): Once we find a better scalable font, set
11583         non_scalable_has_exact_height_p to 1.
11584         (try_font_list): Call try_alternative_families to try any family
11585         with the given registry.
11587 2003-08-09  Andreas Schwab  <schwab@suse.de>
11589         * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
11591         * print.c (print_string): Fix printing of multibyte string with
11592         nontrivial printcharfun.
11594 2003-07-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11596         * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
11598         * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
11600 2003-07-31  Kenichi Handa  <handa@m17n.org>
11602         * process.c (read_process_output): Return the actually read bytes
11603         instead of the result of decoding.
11605 2003-07-31  Kenichi Handa  <handa@m17n.org>
11607         * xterm.h (struct x_bitmap_record): New member have_mask.
11609         * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
11610         to 0.
11611         (x_create_bitmap_from_file): Likewise.
11612         (x_destroy_bitmap): Check have_mask member before freeing a mask.
11613         (x_destroy_all_bitmaps): Likewise.
11614         (x_create_bitmap_mask): Set have_mask member to 1.
11616 2003-07-30  Richard M. Stallman  <rms@gnu.org>
11618         * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
11620 2003-07-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11622         * gtkutil.c (xg_mark_data): Update calls to mark_object.
11624 2003-07-29  Richard M. Stallman  <rms@gnu.org>
11626         * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
11627         Conditionalize XIM code on HAVE_XIM.
11629         * fns.c (Fclear_string): New function.
11630         (syms_of_fns): defsubr it.
11632 2003-07-28  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
11634         * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
11636 2003-07-22  Stefan Monnier  <monnier@cs.yale.edu>
11638         * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
11640         * buffer.c (delete_all_overlays): New function.
11641         * buffer.h (delete_all_overlays): Declare.
11642         * coding.c (run_pre_post_conversion_on_str):
11643         * print.c (temp_output_buffer_setup):
11644         * fileio.c (Finsert_file_contents):
11645         * minibuf.c (get_minibuffer): Use it.
11647 2003-07-22  Andrew Choi  <akochoi@shaw.ca>
11649         * unexmacosx.c (unexec_regions_sort_compare):
11650         (unexec_regions_merge): New functions.  Sort and merge unexec
11651         regions before dumping them.
11653 2003-07-22  Dave Love  <fx@gnu.org>
11655         * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
11657 2003-07-21  Stefan Monnier  <monnier@cs.yale.edu>
11659         * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
11660         (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
11661         MARKBIT as the gcmarkbit for strings.
11663 2003-07-21  Richard M. Stallman  <rms@gnu.org>
11665         * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
11667         * fns.c (Flocale_info): Rename from Flanginfo.  Doc fixes.
11668         (syms_of_fns): Corresponding change.
11670         * alloc.c (syms_of_alloc): Doc fixes.
11672 2003-07-20  Han Boetes  <han@mijncomputer.nl>  (tiny change)
11674         * s/netbsd.h: Use -Wl syntax.
11676 2003-07-17  Richard M. Stallman  <rms@gnu.org>
11678         * xterm.c (xim_initialize): Redo 6/24 change.
11680 2003-07-15  Stefan Monnier  <monnier@cs.yale.edu>
11682         * buffer.c (copy_overlays): Use EMACS_INT for positions.
11683         (Fswitch_to_buffer): Don't signal an error when switching to the same
11684         buffer in a dedicated window.
11686         * alloc.c: Use bitmaps for cons, as was done for floats.
11687         (init_float, init_cons): Let the normal code allocate the first block.
11688         (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
11689         (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
11690         New macros.
11691         (struct cons_block): Move conses to the beginning.  Add gcmarkbits.
11692         (Fcons): Use lisp_align_malloc and CONS_UNMARK.
11693         (live_cons_p): Check the pointer is not past the `conses' array.
11694         (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
11695         (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
11696         (survives_gc_p): Use CONS_MARKED_P and simplify.
11697         (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
11699 2003-07-13  Paul Eggert  <eggert@twinsun.com>
11701         GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
11702         puts it into BSS instead, at least on Solaris 8 and 9.
11703         This is a valid optimization, and it may occur on other platforms,
11704         so Emacs should not assume that initializing a static variable to
11705         zero puts it into data.
11706         * alloc.c (pure, staticvec):
11707         Initialize these arrays to nonzero, so that they're not
11708         put into BSS by that optimization.
11710 2003-07-13  Stefan Monnier  <monnier@cs.yale.edu>
11712         * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING.  Update users.
11713         (lisp_align_malloc): Use posix_memalign is available.
11714         (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
11715         (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
11716         for consistency.  Update users.
11718 2003-07-13  Richard M. Stallman  <rms@gnu.org>
11720         * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
11722 2003-07-13  Terje Rosten  <terjeros@phys.ntnu.no>
11724         * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
11725         and use the Gtk+ function gtk_window_icon_from_file if available.
11727         * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
11728         handle mask of bitmaps.
11729         (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
11730         mask property.
11731         (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
11733         * xterm.h (xg_set_icon): New function.
11735 2003-07-12  Paul Eggert  <eggert@twinsun.com>
11737         * unexelf.c (unexec): Consider a section to precede the .bss
11738         section if its addresses overlap that of .bss.
11740 2003-07-12  Richard M. Stallman  <rms@gnu.org>
11742         * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
11744         * config.in (HAVE_CRTIN): Add #undef.
11745         (INLINE): Really inline only if OPTIMIZE is defined.
11747         * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
11748         END_FILES_1.
11749         (START_FILES_1, END_FILES_1): New macros (conditional).
11750         (LD_SWITCH_SYSTEM_TEMACS): Define.
11752         * s/openbsd.h: Don't include bsd4-3.h.
11753         (TERMINFO): Define.
11754         (LIBS_TERMCAP): Define.
11755         (LD_SWITCH_SYSTEM): Define (two definitions).
11757         * xfns.c: Include libpng/png.h instead of png.h.
11759 2003-07-11  Andreas Schwab  <schwab@suse.de>
11761         * buffer.c (modify_overlay): Update prototype.
11762         * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
11763         Likewise.
11765 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
11767         * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
11768         (struct interval): Move to intervals.h.
11769         (struct Lisp_Marker): Use EMACS_INT for position info.
11770         (forward_point): Remove prototype of defunct function.
11771         (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
11772         (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
11773         (syms_of_textprop, set_text_properties): Remove prototypes that are
11774         already in intervals.h.
11776         * intervals.h (struct interval): Move from lisp.h.
11777         Use EMACS_INT for position and size info.
11779         * coding.c: Include intervals.h for Fset_text_properties.
11781         * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
11782         position and length information.
11784 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
11786         * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
11787         position and length information.
11789 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
11791         Change overlays_after and overlays_before so the overlays themselves
11792         are linked into lists, rather than using cons cells.  After all each
11793         Lisp_Misc already occupies 5 words, so we can add a `next' field to
11794         Lisp_Overlay for free and save up one cons cell per overlay (not
11795         to mention one indirection when traversing the list of overlay).
11797         * lisp.h (struct Lisp_Overlay): New field `next'.
11799         * buffer.h (struct buffer): Change overlays_before and overlays_after
11800         from Lisp lists of overlays to pointers to overlays.
11802         * buffer.c (overlay_strings, recenter_overlay_lists):
11803         Fix typo in eassert in last commit.
11804         (unchain_overlay): New function.
11805         (add_overlay_mod_hooklist): Use AREF.
11806         (copy_overlays, reset_buffer, overlays_at, overlays_in)
11807         (overlay_touches_p, overlay_strings, recenter_overlay_lists)
11808         (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
11809         (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
11810         (report_overlay_modification, evaporate_overlays, init_buffer_once):
11811         Adjust to new type of overlays_(before|after).
11813         * alloc.c (mark_object): Mark the new `next' field of overlays.
11814         (mark_buffer): Manually mark the overlays_(after|before) fields.
11816         * coding.c (run_pre_post_conversion_on_str):
11817         * editfns.c (overlays_around):
11818         * xdisp.c (load_overlay_strings):
11819         * fileio.c (Finsert_file_contents):
11820         * indent.c (current_column):
11821         * insdel.c (signal_before_change, signal_after_change):
11822         * intervals.c (set_point_both):
11823         * print.c (temp_output_buffer_setup): Use new type for
11824         overlays_(before|after).
11826 2003-07-08  Stefan Monnier  <monnier@cs.yale.edu>
11828         * buffer.c (report_overlay_modification): Don't run hooks while
11829         traversing the list of overlays.
11831         * buffer.h (struct buffer): Use an int for overlay_center.
11832         (overlays_at, evaporate_overlays, recenter_overlay_lists)
11833         (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
11835         * buffer.c (reset_buffer, recenter_overlay_lists)
11836         (adjust_overlays_for_insert, adjust_overlays_for_delete)
11837         (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
11838         (evaporate_overlays, init_buffer_once): Update use of overlay_center.
11839         (overlays_at, evaporate_overlays, recenter_overlay_lists)
11840         (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
11842         * xdisp.c (fast_find_position): Remove unused var.
11844         * cmds.c (Qexpand_abbrev): New sym.
11845         (syms_of_cmds): Initialize it.
11846         (internal_self_insert): Use it to call expand-abbrev.
11848 2003-07-09  Kim F. Storm  <storm@cua.dk>
11850         * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
11851         was configured with --without-xim.
11852         (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
11854 2003-07-07  Richard M. Stallman  <rms@gnu.org>
11856         * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
11858         * alloc.c (Fgarbage_collect): Doc fix.
11860 2003-07-07  Nozomu Ando  <nand@mac.com>
11862         * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
11864 2003-07-06  Stefan Monnier  <monnier@cs.yale.edu>
11866         * minibuf.c (read_minibuf): UNGCPRO before returning.
11867         (Ftry_completion, Fall_completions): Doc fix.
11869         * alloc.c (live_float_p): Check that p is not past the `floats' array,
11870         now that `floats' is not the last element of the struct any more.
11872 2003-07-06  Jason Rumney  <jasonr@gnu.org>
11874         * w32term.h (ClipboardSequence_Proc): New type.
11876         * w32fns.c (clipboard_sequence_fn): New variable.
11877         (globals_of_w32fns): Initialize it.
11879         * w32select.c (last_clipboard_sequence_number): New variable.
11880         (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
11881         number if possible.
11883 2003-07-06  Stefan Monnier  <monnier@cs.yale.edu>
11885         * m/amdx86-64.h (MARKBIT):
11886         * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
11887         MARKBIT and ARRAY_MARK_FLAG any more.
11889         * m/hp800.h (XSETMARKBIT):
11890         * m/sr2k.h (XSETMARKBIT):
11891         * lisp.h (XSETMARKBIT): Remove unused macro.
11893         * lisp.h (mark_object): Change prototype.
11895         * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
11896         (last_marked): Change accordingly.
11897         (mark_interval, mark_maybe_object, mark_maybe_pointer)
11898         (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
11899         (mark_buffer): Update calls to mark_object.
11901         * bytecode.c (mark_byte_stack):
11902         * fns.c (sweep_weak_table):
11903         * keyboard.c (mark_kboards): Update calls to mark_object.
11905 2003-07-06  Jason Rumney  <jasonr@gnu.org>
11907         * alloc.c (struct ablock): Only include padding when there is some.
11909 2003-07-04  Stefan Monnier  <monnier@cs.yale.edu>
11911         * alloc.c (ALIGN): Add casts to simplify usage.
11912         (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
11913         (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
11914         (struct ablock, struct ablocks): New types.
11915         (free_ablock): New global var.
11916         (lisp_align_malloc, lisp_align_free): New functions.
11917         (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
11918         (struct float_block): Reorder and add gcmarkbits.
11919         (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
11920         (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
11921         (init_float, make_float): Use lisp_align_malloc.
11922         (free_float, live_float_p): Don't use `type' any more.
11923         (make_float): Use FLOAT_UNMARK to access to mark bit.
11924         (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
11925         Use FLOAT_MARKED_P to access the mark bit.
11926         (pure_alloc): Simplify use of ALIGN.
11927         (mark_object): Use FLOAT_MARK to access the mark bit.
11928         (gc_sweep): Use new macros to access the float's mark bit.
11929         (init_alloc_once): Init free_ablock.
11931         * lisp.h (struct Lisp_Float): Remove unused field `type'.
11933 2003-06-27  Stefan Monnier  <monnier@cs.yale.edu>
11935         * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
11936         (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
11937         (allocate_buffer): Move.
11938         (string_bytes): Don't mask markbit of `size_byte'.
11939         (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
11940         (mark_object, mark_buffer, survives_gc_p, gc_sweep):
11941         Use the `size' field of buffers (rather than the `name' field) for
11942         the mark bit, as is done for all other vectorlike objects.
11943         Use the new macros to access the mark bit of vectorlike objects.
11945 2003-06-26  Richard M. Stallman  <rms@gnu.org>
11947         * puresize.h (BASE_PURESIZE): Increment base size.
11949         * xdisp.c (fast_find_position): Enable Gerd's new definition.
11951         * xterm.c (xim_initialize): Undo previous change.
11953 2003-06-26  Stefan Monnier  <monnier@cs.yale.edu>
11955         * alloc.c (survives_gc_p): Simplify.
11957         * buffer.c (set_buffer_internal_1): Test CONSP for lists.
11959         * window.c (Fset_window_dedicated_p): Simplify.
11960         (display_buffer_1): Don't raise the win from which minibuf was entered.
11961         (temp_output_buffer_show): Don't assume BEG == 1.  Simplify.
11962         (Fminibuffer_selected_window): Simplify.
11964         * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
11966         * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
11967         (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
11969         * insdel.c (check_markers, adjust_markers_for_delete)
11970         (adjust_markers_for_insert, adjust_markers_for_replace)
11971         (prepare_to_modify_buffer, RESTORE_VALUE):
11972         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
11973         (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
11974         (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
11975         * alloc.c (Fmake_marker, free_marker, gc_sweep):
11976         * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
11977         * editfns.c (save_excursion_restore, transpose_markers):
11978         * window.c (delete_window):
11979         * xdisp.c (message_dolog): Update for new types.
11981 2003-06-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11983         * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
11984         (realize_default_face): Use default_face_done_p for the force_p
11985         argument to set_lface_from_font_name.  Set default_face_done_p to one.
11987         * frame.c (make_frame): Initialize default_face_done_p.
11989         * frame.h (struct frame): Add default_face_done_p.
11991         * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
11992         will be defined.
11994 2003-06-25  Stefan Monnier  <monnier@cs.yale.edu>
11996         * alloc.c (make_interval, Fmake_symbol, allocate_misc):
11997         Initialize the new field `gcmarkbit'.
11998         (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
11999         (mark_interval_tree): Don't mark the tree separately from the nodes.
12000         (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
12001         (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
12002         (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
12004         * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
12005         (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
12006         (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
12007         (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
12008         (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
12010 2003-06-24  Dave Love  <fx@gnu.org>
12012         * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
12014         * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux.  Merge changes
12015         from gnulib.
12017 2003-06-21  Richard M. Stallman  <rms@gnu.org>
12019         * fileio.c (Fwrite_region): Alternate messages
12020         for append and partial write.
12022         * keyboard.c (read_key_sequence): When converting upcase fn key to
12023         downcase, update fkey and keytran so `backspace' gets translated.
12025         * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
12027         * process.c (wait_reading_process_input): Don't signal SIGIO
12028         in batch mode.
12030 2003-06-17  Kenichi Handa  <handa@m17n.org>
12032         * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
12033         composite.h.
12035         * xselect.c: Don't include charset.h, coding.h, composite.h.
12036         (Qforeign_selection): New variable.
12037         (syms_of_xselect): Intern and static it.
12038         (selection_data_to_lisp_data): Return a unibyte string made from
12039         data with `foreign-selection' text property.
12041 2003-06-15  Stefan Monnier  <monnier@cs.yale.edu>
12043         * termhooks.h (EVENT_INIT): New macro.
12045         * keyboard.c (mark_kboards): Move from alloc.c.  Mark kbd_buffer.
12047         * alloc.c (mark_kboards): Move to keyboard.c.
12049         * keyboard.c (record_asynch_buffer_change, read_avail_input):
12050         * xterm.c (x_dispatch_event):
12051         * xmenu.c (find_and_call_menu_selection):
12052         * xdisp.c (handle_tool_bar_click):
12053         * w32menu.c (menubar_selection_callback):
12054         * sysdep.c (kbd_input_ast, read_input_waiting):
12055         * msdos.c (dos_rawgetc):
12056         * macterm.c (mac_check_for_quit_char):
12057         * macmenu.c (menubar_selection_callback):
12058         * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
12059         data to kbd_buffer_store_event.
12061 2003-06-15  Kim F. Storm  <storm@cua.dk>
12063         * xdisp.c (x_fix_overlapping_area): Always use area relative X
12064         to fix redisplay problem with tall characters (such as \e,AC\e(B).
12066 2003-06-13  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
12068         * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
12070 2003-06-12  Kenichi Handa  <handa@m17n.org>
12072         * fileio.c (Fwrite_region): Save and restore restriction.
12074 2003-06-12  Dave Love  <fx@gnu.org>
12076         * alloca.c (alloca): Declare arg as size_t.
12078         * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
12079         Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
12081 2003-06-11  Dave Love  <fx@gnu.org>
12083         * search.c (shrink_regexp_cache): Use xrealloc.
12084         (syms_of_search): Use xmalloc.
12086 2003-06-10  Kim F. Storm  <storm@cua.dk>
12088         * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
12089         Adjust phys_cursor.x to be relative to window box, rather than
12090         text area before checking -- to ensure cursor is redrawn when
12091         exposing window.
12092         Note: This also fixes a similar (older) bug if display margins
12093         are present.
12095 2003-06-06  Kenichi Handa  <handa@m17n.org>
12097         * coding.c (encoding_buffer_size): If coding->type is
12098         coding_type_ccl, double magnification on CRLF encoding.
12100 2003-06-06  Jason Rumney  <jasonr@gnu.org>
12102         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
12103         (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
12105         * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
12106         Mac too.
12108 2003-06-05  Dave Love  <fx@gnu.org>
12110         * strftime.c: Merge changes from gnulib.
12112         * mktime.c (__mktime_internal): Merge changes from gnulib
12113         involving year 69 and dst2.
12115         Changes to merge with gnulib version and be consistent with the
12116         autoconf test:
12118         * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
12119         Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
12120         [HAVE_LOCALE_H]: Include locale.h.
12121         (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
12123 2003-06-05  Kim F. Storm  <storm@cua.dk>
12125         * window.c (coordinates_in_window): Convert X and Y to window
12126         relative coordinates inside mode-line and header-line parts.
12127         Convert X and Y to margin area relative coordinates inside left
12128         and right display margin parts.
12130 2003-06-05  Jason Rumney  <jasonr@gnu.org>
12132         * w32fns.c (add_system_logical_colors_to_map): New function.
12133         (Fx_open_connection): Use it.
12135 2003-06-04  Stefan Monnier  <monnier@cs.yale.edu>
12137         * process.c (allocate_pty): Revert part of the previous patch.
12138         (Faccept_process_output): Simplify.
12140 2003-06-04  Jason Rumney  <jasonr@gnu.org>
12142         * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
12144         * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
12145         (lispy_mouse_wheel_names): Remove.
12146         (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
12147         Always define drag_and_drop_syms.
12149         * macterm.c (XTread_socket): Map mouse wheel events to Emacs
12150         WHEEL_EVENT events.
12152 2003-06-03  Stefan Monnier  <monnier@cs.yale.edu>
12154         * xdisp.c (update_tool_bar): Add missing UNGCPRO.
12156         * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
12158 2003-06-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12160         * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
12161         menu item label.
12163 2003-06-03  Richard M. Stallman  <rms@gnu.org>
12165         * window.c (Fwindow_edges): Doc fix.
12166         (Fwindow_pixel_edges, Fwindow_inside_edges)
12167         (Fwindow_inside_pixel_edges): New functions.
12168         (syms_of_window): defsubr them.
12170         * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
12171         (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
12173 2003-06-02  Stefan Monnier  <monnier@cs.yale.edu>
12175         * dispnew.c (Fsit_for): Don't lie about the number of args.
12177 2003-06-02  Dave Love  <fx@gnu.org>
12179         * callproc.c: Use HAVE_FCNTL_H, not USG5.
12180         (syms_of_callproc) <process-environment>: Doc fix.
12182         * doc.c: Use HAVE_FCNTL_H, not USG5.
12184         * xfaces.c (font_rescale_ratio): Fix for K&R.
12186         * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
12188         * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
12190         * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
12192         * gtkutil.c: Include keyboard.h, charset.h, coding.h.
12193         (xg_create_frame_widgets): Use ENCODE_UTF_8.
12195         * xterm.c (Qutf_8): Move to coding.c
12197         * xmenu.c (ENCODE_MENU_STRING): New.
12198         (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
12199         Use it.
12201         * coding.h (ENCODE_UTF_8): New.
12202         (Qutf_8): Declare.
12204         * coding.c (Qutf_8): New.
12205         (syms_of_coding): Intern it.
12207         * fns.c: Doc fixes.
12209 2003-06-02  Kenichi Handa  <handa@m17n.org>
12211         * buffer.c (Fset_buffer_multibyte): Fix previous change.
12213 2003-06-01  Stefan Monnier  <monnier@cs.yale.edu>
12215         * lread.c (openp): Make sure STR is a string.
12217 2003-06-01  David Ponce  <david@dponce.com>
12219         * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
12220         Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
12222         * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
12223         (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
12224         (discard_mouse_events): Discard WHEEL_EVENT events too.
12225         (lispy_wheel_names, wheel_syms): New.
12226         (syms_of_keyboard): Init and staticpro `wheel_syms'.  Init and
12227         staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
12228         (make_lispy_event): Add WHEEL_EVENT handler.
12230         * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
12231         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
12232         WHEEL_EVENT events.
12234 2003-05-31  John Paul Wallington  <jpw@gnu.org>
12236         * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
12237         timer are in lisp/emacs-lisp.
12239 2003-05-31  Kenichi Handa  <handa@m17n.org>
12241         * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
12242         region when a buffer is changed to unibyte.
12244         * charset.h (VALID_LEADING_CODE_P): New macro.
12245         (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
12247         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
12248         is nonzero, accept multibyte form of eight-bit-control chars.
12249         (decode_composition_emacs_mule): Likewise.
12250         (decode_coding_emacs_mule): Likewise.
12251         (encode_coding_emacs_mule): If coding->flags is nonzero, produce
12252         multibyte form of eight-bit-control chars.
12254         * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
12255         (Finsert_file_contents): If coding-system-for-read is bound to
12256         Qauto_save_coding, use the coding system emacs-mule with special
12257         setting for recovering a file.
12258         (choose_write_coding_system): On auto saving, use the coding
12259         system emacs-mule with special setting for auto saving.
12260         (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
12262 2003-05-30  Kenichi Handa  <handa@m17n.org>
12264         * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
12265         properly before calling ccl_driver.
12267         * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
12269         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
12270         (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
12271         (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
12273 2003-05-29  Glenn Morris  <gmorris@ast.cam.ac.uk>
12275         * xfaces.c (realize_default_face): Do not abort if lface is
12276         non-existent - reverts change from 2003-05-19.
12278 2003-05-29  Kenichi Handa  <handa@m17n.org>
12280         * coding.c (decode_coding_iso2022): Pay attention to the byte
12281         sequence of CTEXT extended segment, and retain those bytes as is.
12283 2003-05-28  Kenichi Handa  <handa@m17n.org>
12285         * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
12286         of CODING_REPLACEMENT_CHARACTER.
12287         (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
12288         CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
12289         check this flag on encoding.
12290         (encode_coding_sjis_big5):
12291         Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
12292         (Fset_terminal_coding_system_internal):
12293         Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
12294         instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
12296         * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
12297         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
12298         (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
12300 2003-05-28  Richard M. Stallman  <rms@gnu.org>
12302         * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
12304         * eval.c (unbind_to): Move init of this_binding to separate statement.
12306 2003-05-28  Kim F. Storm  <storm@cua.dk>
12308         * xdisp.c (expose_window): Fix error in calculation of
12309         window relative coordinates of area to redisplay.
12311 2003-05-27  Jason Rumney  <jasonr@gnu.org>
12313         * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
12315 2003-05-27  David Ponce  <david@dponce.com>
12317         Handle W32 mouse wheel events as mouse click events, like in X.
12319         * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
12320         MOUSE_WHEEL_EVENT anymore.
12322         * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
12323         Scrolling down/up the mouse wheel is respectively mapped to mouse
12324         button 4 and 5.
12325         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
12326         MOUSE_CLICK_EVENT events.  Forward w32 MSH_MOUSEWHEEL events as
12327         WM_MOUSEWHEEL events.
12329 2003-05-27  Andreas Schwab  <schwab@suse.de>
12331         * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
12333         * xdisp.c (try_window_id): Avoid aborting if PT is inside a
12334         partially visible line.
12336         * alloc.c (Fgarbage_collect): Fix last change.
12338 2003-05-26  John Paul Wallington  <jpw@gnu.org>
12340         * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
12342 2003-05-25  Stefan Monnier  <monnier@cs.yale.edu>
12344         * window.c (Fset_window_buffer): Add type of `keep_margins'.
12345         (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
12347         * window.h (window_box_text_cols): Declare.
12349         * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
12350         (x_draw_vertical_border): Remove unused var `f'.
12352         * xfaces.c (build_scalable_font_name): Remove `unused var
12353         pixel_size' warning.
12355         * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
12357         * unexelf.c (unexec): Remove `unused var n' warning.
12359         * strftime.c (my_strftime_localtime_r): Remove `defined but
12360         unused' warning.
12362         * process.c (allocate_pty): Remove `unused var stb' and
12363         `cp might be used uninitialized' warnings.
12365         * dispnew.c (mode_line_string): Remove unused var `f'.
12367         * coding.c (find_safe_codings): Remove unused var `i'.
12369         * bytecode.c (Fbyte_code): Remove `unused val' warning.
12371         * buffer.c (Fkill_buffer): Remove unused var `list'.
12373         * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
12375 2003-05-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12377         * frame.c (make_frame): Condition want_fullscreen with
12378         HAVE_WINDOW_SYSTEM.
12380 2003-05-25  Juanma Barranquero  <lektu@terra.es>
12382         * window.c (Fset_window_scroll_bars): Fix typo in argument name.
12383         (Fwindow_scroll_bars): Fix typo in docstring.
12385 2003-05-24  Kim F. Storm  <storm@cua.dk>
12387         The following changes serve several purposes:
12389         1) Swap the position of fringes and display margins in windows, i.e.
12390         the fringes are now displayed between the margins and the text area
12391         (by default).
12393         2) Allow fringe and scroll bar parameters to be set per-buffer and
12394         per-window (like display margins).  Such settings are now stored
12395         in window configurations, preserved when frames are resized, and
12396         copied when windows are split vertically or horizontally.
12397         Several bugs related to display margins have been fixed.
12399         3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
12401         4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
12402         rather than FRAME_WIDTH (FRAME_FONT (f)).
12404         5) Introduce a consistent naming of variables, members and macros
12405         depending on whether their value is measured in pixels or in
12406         canonical columns/lines.  Pixel dimensions are named *_width and
12407         *_height, while canonical columns/lines are named *_cols and
12408         *_lines.  Pixel positions are named *_x and *_y, while column/line
12409         positions are named *_col and *_line.
12411         6) Consolidate more of the X, W32, and MAC gui code by moving
12412         common data into struct frame, and generalize it for the non-gui
12413         case by using suitable defaults.
12415         7) Cleanup and consolidate the macros controlling frame and window
12416         layout into frame.h and window.h, and generalize the use of the
12417         various window_box_* functions (enhanced to handle the new fringe
12418         position and the per-window fringe and scroll bar settings).
12420         * frame.h (struct frame): Rename members height to text_lines,
12421         width to text_cols, window_height to total_lines, window_width to
12422         total_cols, new_height to new_text_lines, new_width to
12423         new_text_cols.  All uses changed.
12424         (struct frame): New members which consolidate common members of
12425         x_output, w32_output, and mac_output structures: left_pos,
12426         top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
12427         win_gravity, size_hint_flags, border_width, internal_border_width,
12428         line_height, fringe_cols, left_fringe_width, right_fringe_width,
12429         want_fullscreen.  All uses changed.
12430         (struct frame): New member column_width contaning the canonical
12431         column width, analogue to line_height.  All uses changed.
12432         (struct frame): Rename members scroll_bar_pixel_width to
12433         config_scroll_bar_width, and scroll_bar_cols to
12434         config_scroll_bar_cols.  All uses changed.
12435         (struct frame): New member scroll_bar_actual_width which
12436         consolidates and renames the vertical_scroll_bar_extra member of
12437         x_output, w32_output, and mac_output structures.  All uses changed.
12438         (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
12439         from x/w32/macterm.h files.  All uses changed.  Also change code
12440         which referred to f->output_data...->pixel_height.
12441         (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
12442         from x/w32/macterm.h files.  All uses changed.  Also change code
12443         which referred to f->output_data...->pixel_width.
12444         (FRAME_LINES): Rename from FRAME_HEIGHT.  All uses changed.
12445         Also change code which referred to f->height.
12446         (FRAME_COLS): Rename from FRAME_WIDTH.  All uses changed.
12447         Also change code which referred to f->width.
12448         (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
12449         to update new_text_lines and new_text_cols members directly.
12450         (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
12451         FRAME_SCROLL_BAR_PIXEL_WIDTH.  All uses changed.
12452         (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
12453         FRAME_SCROLL_BAR_COLS.  All uses changed.
12454         (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
12455         Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
12456         FRAME_RIGHT_SCROLL_BAR_WIDTH, resp.  All uses changed.
12457         (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
12458         (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
12459         (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
12460         (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
12461         (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
12462         (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
12463         (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
12464         (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
12465         Unconditionally return line_height member (it now has proper value
12466         also for non-window frames).
12467         (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT.  Unconditionally
12468         return new column_width member (rather than the default font width).
12469         (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
12470         (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
12471         from x/w32/macterm.h files.  Unconditionally return corresponding
12472         member of frame structure (they now have proper values also for
12473         non-window frames).
12474         (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
12475         Calculate return value from left and right widths.
12476         (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
12477         internal_border_width member (has proper value for non-window frame).
12478         (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
12479         (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
12480         (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
12481         (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
12482         (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
12483         consolidated from xterm.h, macterm.h, and w32term.h.
12484         (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
12485         consolidated from xterm.h, macterm.h, and w32term.h.
12486         (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
12487         CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
12488         (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
12489         CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
12490         (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
12491         consolidated from x/mac/w32term.h.
12492         (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
12493         consolidated from x/mac/w32term.h.
12494         (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
12495         PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
12496         (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
12497         PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
12499         * window.h (struct window): Rename members left to left_col,
12500         top to top_line, height to total_lines, width to total_cols,
12501         left_margin_width to left_margin_cols, right_margin_width to
12502         right_margin_cols, orig_height to orig_total_lines, orig_top to
12503         orig_top_line.  All uses changed.
12504         (struct window): New members left_fringe_width, right_fringe_width,
12505         fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
12506         (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
12507         New macros primarily used to simplify other macros.
12508         (WINDOW_TOTAL_COLS): New macro.  Change relevant code that
12509         referred to XINT (w->width).
12510         (WINDOW_TOTAL_LINES): New macro.  Change relevant code that
12511         referred to XINT (w->height).
12512         (WINDOW_TOTAL_WIDTH): New macro.  Change relevant code that
12513         referred to XINT (w->width) * canon_x_unit.
12514         (WINDOW_TOTAL_HEIGHT): New macro.  Change relevant code that
12515         referred to XINT (w->height) * canon_y_unit.
12516         (WINDOW_LEFT_EDGE_COL): New macro.  Change relevant code that
12517         referred to XINT (w->left).
12518         (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE.  Change
12519         all uses and code that referred to XINT (w->left) + XINT (w->width).
12520         (WINDOW_TOP_EDGE_LINE): New macro.  Change relevant code that
12521         referred to XINT (w->top).
12522         (WINDOW_BOTTOM_EDGE_LINE): New macro.  Change relevant code that
12523         referred to XINT (w->top) + XINT (w->height).
12524         (WINDOW_LEFT_EDGE_X): New macro.  Change relevant code that
12525         referred to XINT (w->left) * canon_x_unit.
12526         (WINDOW_RIGHT_EDGE_X): New macro.  Change relevant code that
12527         referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
12528         (WINDOW_TOP_EDGE_Y): New macro.  Change relevant code that
12529         referred to XINT (w->top) * canon_y_unit.
12530         (WINDOW_BOTTOM_EDGE_Y): New macro.  Change relevant code that
12531         referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
12532         (WINDOW_LEFTMOST_P): New macro.
12533         (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
12534         All uses changed.
12535         (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
12536         All uses changed.
12537         (WINDOW_BOX_LEFT_EDGE_X): Rename from
12538         WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
12539         Do not exclude left fringe width.
12540         (WINDOW_BOX_RIGHT_EDGE_X): Rename from
12541         WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
12542         Do not exclude fringe widths.
12543         (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
12544         (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
12545         Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
12546         FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
12547         FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
12548         (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
12549         (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
12550         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
12551         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
12552         (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
12553         New macros.  Change code which referenced corresponding
12554         FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
12555         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
12556         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
12557         FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
12558         allow per-window scroll-bar settings.
12559         (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
12560         (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code that
12561         referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
12562         (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code
12563         that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
12564         FRAME_SCROLL_BAR_WIDTH.
12565         (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
12566         (WINDOW_SCROLL_BAR_AREA_X): New macros.
12567         (WINDOW_HEADER_LINE_HEIGHT): Rename from
12568         WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
12569         (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
12570         WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
12571         (WINDOW_BOX_TEXT_HEIGHT): Rename from
12572         WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
12573         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
12574         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
12575         (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
12576         (WINDOW_LEFT_MARGIN_WIDTH): Rename from
12577         WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
12578         (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
12579         WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
12580         (window_from_coordinates): Update prototype.
12581         (Fset_window_buffer): Update EXFUN.
12582         (set_window_buffer): Update prototype.
12584         * dispextern.h (struct glyph_matrix): Rename members window_left_x
12585         to window_left_col, window_top_y to window_top_line.  All uses
12586         changed.
12587         (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
12588         use FRAME_INTERNAL_BORDER_WIDTH macro instead as
12589         internal_border_width is now set to 0 for non-window frames.
12590         (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
12591         (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
12592         (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
12593         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
12594         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
12595         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
12596         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
12597         (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
12598         (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
12599         Move to window.h and renamed [see window.h changes].
12600         (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
12601         (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
12602         (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
12603         Use WINDOW_TOTAL_LINES.
12604         (frame_update_line_height): Remove prototype.
12606         * buffer.h (struct buffer): Rename members measured in columns:
12607         left_margin_width to left_margin_cols, right_margin_width to
12608         right_margin_cols.  All uses changed.
12609         New members left_fringe_width, right_fringe_width,
12610         fringes_outside_margins for per-buffer fringe settings.
12611         New members scroll_bar_width and vertical_scroll_bar_type for
12612         per-buffer scroll bar settings.
12614         * buffer.c (init_buffer_once): Set buffer_defaults and
12615         buffer_local_flags for new buffer-local variables
12616         left_fringe_width, right_fringe_width, fringes_outside_margins,
12617         scroll_bar_width, and vertical_scroll_bar_type.
12618         (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
12619         default-* variables for them.
12621         * dispnew.c: Make (many) trivial substitutions for renamed and
12622         new macros in dispextern.h, frame.h and window.h.
12623         (mode_line_string): No need to adjust width for mode lines, as it
12624         is already adjusted by the caller.
12625         (marginal_area_string): Handle fringes inside/outside margins.
12627         * frame.c: Make (many) trivial substitutions for renamed and
12628         new macros in dispextern.h, frame.h and window.h.
12629         (make_frame): Initialize left_fringe_width, right_fringe_width,
12630         fringe_cols, scroll_bar_actual_width, border_width,
12631         internal_border_width, column_width, line_height, x_pixels_diff,
12632         y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
12633         members with values suitable for a non-window frames.
12635         * gtkutil.c: Make (many) trivial substitutions for renamed and
12636         new macros in dispextern.h, frame.h and window.h.
12638         * indent.c: Make (few) trivial substitutions for renamed and
12639         new macros in dispextern.h, frame.h and window.h.
12641         * keyboard.c: Make (many) trivial substitutions for renamed and
12642         new macros in dispextern.h, frame.h and window.h.
12643         (make_lispy_event): Use window positions returned from
12644         window_from_coordinates when constructing the lisp event for
12645         MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
12646         (incorrect) values locally.
12647         (make_lispy_movement): Use window positions returned from
12648         window_from_coordinates when constructing the lisp event, rather
12649         than calculating (incorrect) values locally.
12651         * scroll.c: Make (some) trivial substitutions for renamed and
12652         new macros in dispextern.h, frame.h and window.h.
12654         * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
12655         scroll-bars.
12657         * sysdep.c: Make (few) trivial substitutions for renamed and
12658         new macros in dispextern.h, frame.h and window.h.
12660         * term.c: Make (some) trivial substitutions for renamed and
12661         new macros in dispextern.h, frame.h and window.h.
12663         * widget.c: Make (few) trivial substitutions for renamed and
12664         new macros in dispextern.h, frame.h and window.h.
12666         * window.c: Make (many) trivial substitutions for renamed and
12667         new macros in dispextern.h, frame.h and window.h.
12668         (make_window): Initialize new members
12669         left_margin_cols, right_margin_cols, left_fringe_width,
12670         right_fringe_width, fringes_outside_margins, scroll_bar_width,
12671         and vertical_scroll_bar_type.
12672         (coordinates_in_window): Adapt to new fringe/margin positions
12673         and per-window fringes and scroll-bars.
12674         Fix bug related to incorrectly adjusting coordinates by
12675         frame's internal_border_width (the effect normally negible since
12676         the internal_border_width is typically 0 or 1 pixel, but very
12677         noticeable for an internal_border_width of e.g. 25 pixels).
12678         Upon successful return (other than ON_NOTHING), the coordinates
12679         are now always properly converted to window relative for the
12680         given display element.
12681         (window_from_coordinates): Add new parameters wx and wy to
12682         return the window relative x and y position in the returned
12683         window and part.  A null arg means, don't return the position.
12684         All callers changed.
12685         (adjust_window_margins): New function which may reduce the width
12686         of the display margins if a window's text area is too small after
12687         resizing or splitting windows.
12688         (size_window): Fix bug that did not account for display margin
12689         widths when checking the minimum width of a window; use
12690         adjust_window_margins.
12691         (set_window_buffer): Call Fset_window_fringes and
12692         Fset_window_scroll_bars to setup per-window elements.
12693         Add new arg KEEP_MARGINS_P.  Non-nil means to keep window's
12694         existing display margin, fringe widths, and scroll bar settings
12695         (e.g. after splitting a window or resizing the frame).
12696         All callers changed.
12697         (Fset_window_buffer): New arg KEEP_MARGINS.  All callers changed.
12698         (Fsplit_window): Duplicate original window's display margin,
12699         fringe, and scroll-bar settings; then call Fset_window_buffer with
12700         KEEP_MARGINS non-nil.  This fixes a bug which caused a split
12701         window to only preserve the display margins in one of the windows.
12702         When splitting horizontally, call adjust_window_margins on both
12703         windows to ensure that the text area of the new windows is non too
12704         narrow.  This fixes a bug which could cause Emacs to trap if the
12705         width of the split window was less than the width of the display
12706         margins.
12707         (window_box_text_cols): Rename from window_internal_width.
12708         All uses changed.  Adapt to per-window fringes and scroll bars.
12709         Fix bug that caused vertical separator to be subtracted also on
12710         window frames.  Fix another bug that did not reduce the returned
12711         value by the columns used for display margins.
12712         (window_scroll_line_based): Fix bug related to scrolling too much
12713         when display margins are present (implicitly fixed by the fix to
12714         window_box_text_cols).
12715         (scroll_left, scroll_right): Fix bug related to scrolling too far
12716         by default when display margins are present (implicitly fixed by
12717         the fix to window_box_text_cols).
12718         (struct saved_window): Rename members left to left_col, top to
12719         top_line, width to total_cols, height to total_lines, orig_top to
12720         orig_top_line, orig_height to orig_total_lines.  All uses changed.
12721         New members left_margin_cols, right_margin_cols,
12722         left_fringe_width, right_fringe_width, fringes_outside_margins,
12723         scroll_bar_width, and vertical_scroll_bar_type for saving
12724         per-window display elements.
12725         (Fset_window_configuration): Restore display margins, fringes,
12726         and scroll bar settings.  This fixes a bug which caused display
12727         margins to be discarded when saving and restoring a window
12728         configuration.
12729         (save_window_save): Save display margins, fringes, and scroll bar
12730         settings.  This fixes a bug which caused display margins to be
12731         discarded when saving and restoring a window configuration.
12732         (Fset_window_margins): Do nothing if display margins are not
12733         really changed.  Otherwise, call adjust_window_margins to ensure
12734         the text area doesn't get too narrow.  This fixes a bug which
12735         could cause Emacs to trap if setting display margins wider than
12736         the width of the window.
12737         (Fset_window_fringes): New defun to allow user to specifically set
12738         this window's fringe widths and position vs. display margins.
12739         (Fwindow_fringes): New defun to return window's actual fringe settings.
12740         (Fset_window_scroll_bars): New defun to allow user to specifically
12741         set this window's scroll bar width and position.
12742         (Fwindow_scroll_bars): New defun to return window's actual scroll
12743         bar settings.
12744         (compare_window_configurations): Also compare display margins,
12745         fringes, and scroll bar settings.
12746         (syms_of_window): Defsubr new defuns for fringe and scroll bars.
12748         * xdisp.c: Make (many) trivial substitutions for renamed and
12749         new macros in dispextern.h, frame.h and window.h.
12750         (window_box_width): Adapt to per-window fringes and scroll bars,
12751         and new fringe vs. display margin position.  Note that returned
12752         value is no longer guaranteed to be a whole multiple of the frame
12753         column width, since per-window fringes may now be any width.
12754         (window_box_left_offset): New function like window_box_left, but
12755         value is relative to left border of window (rather than frame).
12756         (window_box_right_offset): New function like window_box_right,
12757         but value is relative to left border of window.
12758         (window_box_left): Adapt to per-window fringes and scroll bars,
12759         and new fringe vs. display margin position.  Simplify by using
12760         WINDOW_LEFT_EDGE_X and window_box_left_offset.
12761         (window_box): Allow null args for unnecessary return values;
12762         change/simplify relevant callers.
12763         (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
12764         and new fringe vs. display margin position.
12765         Use window_box_left_offset and window_box_right_offset
12766         (get_glyph_string_clip_rect): Adapt to per-window fringes and
12767         scroll bars, and new fringe vs. display margin position.
12768         Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
12769         (draw_fringe_bitmap): Rework to handle per-window fringes and new
12770         fringe vs. display margin position.
12771         (hscroll_window_tree): Use window_box_width instead of window_box.
12772         (redisplay_window): Adapt to per-window scroll bars.
12773         (draw_glyphs): Rework to handle per-window fringes and scroll
12774         bars, and new fringe vs. display margin position.
12775         Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
12776         (x_clear_end_of_line): Adapt to per-window fringes and scroll
12777         bars, and new fringe vs. display margin position.  Fix bug which
12778         increased total width of full_width rows by width of scroll bars
12779         although window's total width already includes that.
12780         (x_fix_overlapping_area): Simplify using window_box_left_offset.
12781         (expose_area): Simplify using window_box_left_offset.
12782         (x_draw_vertical_border): Handle per-window scroll bar settings,
12783         mixing windows with left, right and no scroll bars.
12785         * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
12786         where it's used in x_list_fonts (for clarity).
12787         (frame_update_line_height): Remove unused function; functionality
12788         is now done directly when setting the default font in x_set_font.
12790         * xfns.c: Make (many) trivial substitutions for renamed and
12791         new macros in dispextern.h, frame.h and window.h.
12793         * xmenu.c: Make (some) trivial substitutions for renamed and
12794         new macros in dispextern.h, frame.h and window.h.
12796         * xterm.h (struct x_output): Move members left_pos, top_pos,
12797         border_width, pixel_height, pixel_width, line_height,
12798         internal_border_width, vertical_scroll_bar_extra,
12799         left_fringe_width, right_fringe_width, fringe_cols,
12800         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12801         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
12802         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12803         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12804         (PIXEL_WIDTH, PIXEL_HEIGHT)
12805         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
12806         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
12807         frame.h and renamed [see frame.h changes].
12808         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12809         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
12810         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
12811         and renamed [see frame.h changes].
12813         * xterm.c: Make (several) trivial substitutions for renamed and
12814         new macros in dispextern.h, frame.h and window.h.
12815         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
12816         (scroll_run): Adapt to new fringe position.
12817         (glyph_rect): Use window coordinates returned from
12818         window_from_coordinates rather than frame_to_window_pixel_xy.
12819         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12820         scroll-bars.
12821         (handle_one_xevent): Simplify a USE_GTK conditional.
12822         (x_clip_to_row): Remove superfluous whole_line_p arg and code
12823         (fringes are now inside margins, i.e. always in the clipping area).
12824         All callers changed.
12825         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12826         directly, then call compute_fringe_widths.  Don't call
12827         frame_update_line_height.
12829         * w32term.h (struct w32_output): Move members left_pos, top_pos,
12830         border_width, pixel_height, pixel_width, line_height,
12831         internal_border_width, vertical_scroll_bar_extra,
12832         left_fringe_width, right_fringe_width, fringe_cols,
12833         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12834         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
12835         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12836         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12837         (PIXEL_WIDTH, PIXEL_HEIGHT)
12838         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
12839         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
12840         frame.h and renamed [see frame.h changes].
12841         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12842         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
12843         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
12844         and renamed [see frame.h changes].
12846         * w32term.c: Make (several) trivial substitutions for renamed and
12847         new macros in dispextern.h, frame.h and window.h.
12848         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
12849         (glyph_rect): Use window coordinates returned from
12850         window_from_coordinates rather than frame_to_window_pixel_xy.
12851         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12852         scroll-bars.
12853         (w32_clip_to_row): Remove superfluous whole_line_p arg and code
12854         (fringes are now inside margins, i.e. always in the clipping area).
12855         All callers changed.
12856         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12857         directly, then call compute_fringe_widths.  Don't call
12858         frame_update_line_height.
12860         * w32console.c: Make (few) trivial substitutions for renamed and
12861         new macros in dispextern.h, frame.h and window.h.
12863         * w32fns.c: Make (many) trivial substitutions for renamed and
12864         new macros in dispextern.h, frame.h and window.h.
12866         * w32menu.c: Make (few) trivial substitutions for renamed and
12867         new macros in dispextern.h, frame.h and window.h.
12869         * macterm.h (struct mac_output): Move members left_pos, top_pos,
12870         border_width, pixel_height, pixel_width, line_height,
12871         internal_border_width, vertical_scroll_bar_extra,
12872         left_fringe_width, right_fringe_width, fringe_cols,
12873         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
12874         x_pixels_diff, y_pixels_diff to struct frame (frame.h).
12875         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
12876         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
12877         (PIXEL_WIDTH, PIXEL_HEIGHT)
12878         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
12879         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
12880         frame.h and renamed [see frame.h changes].
12881         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
12882         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
12883         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
12884         and renamed [see frame.h changes].
12886         * macterm.c: Make (several) trivial substitutions for renamed and
12887         new macros in dispextern.h, frame.h and window.h.
12888         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
12889         (glyph_rect): Use window coordinates returned from
12890         window_from_coordinates rather than frame_to_window_pixel_xy.
12891         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
12892         scroll-bars.
12893         (x_clip_to_row): Remove superfluous whole_line_p arg and code
12894         (fringes are now inside margins, i.e. always in the clipping area).
12895         All callers changed.
12896         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
12897         directly, then call compute_fringe_widths.  Don't call
12898         frame_update_line_height.
12900         * macfns.c: Make (several) trivial substitutions for renamed and
12901         new macros in dispextern.h, frame.h and window.h.
12902         (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
12904         * macmenu.c: Make (few) trivial substitutions for renamed and
12905         new macros in dispextern.h, frame.h and window.h.
12907         * msdos.h (struct x_output): Remove members left_pos, top_pos,
12908         and line_height, and use corresponding new members in struct
12909         frame.  All uses changed.
12910         (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
12911         superseeded by corresponding macros in frame.h.
12913         * msdos.c: Make (several) trivial substitutions for renamed and
12914         new macros in dispextern.h, frame.h and window.h.
12915         (IT_note_mouse_highlight): Use updated window coordinates returned
12916         by window_from_coordinates, rather than adjusting them locally.
12917         (internal_terminal_init): No need to initialize line_height here;
12918         it now defaults to 1.
12920 2003-05-24  Stefan Monnier  <monnier@cs.yale.edu>
12922         * keyboard.c (read_key_sequence): Adjust fkey and keytran when
12923         dropping `down' events.
12925 2003-05-24  Andreas Schwab  <schwab@suse.de>
12927         * coding.c (find_safe_codings): Fix last change.
12929 2003-05-24  Istvan Marko  <mi@imarko.dhs.org>  (tiny change)
12931         * xfns.c (x_window): Fix typo from 2003-05-21 change.
12933 2003-05-23  Stefan Monnier  <monnier@cs.yale.edu>
12935         * xdisp.c (display_mode_element): Increase max depth.
12936         Simplify the error handling code.  Use a different error string
12937         for the case where we hit the depth limit.
12939         * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
12941         * buffer.c (reset_buffer_local_variables): Remove redundant setting.
12943 2003-05-21  Stefan Monnier  <monnier@cs.yale.edu>
12945         * intervals.c (get_local_map): Don't get char-property of previous
12946         point any more: get_pos_property already does it and better.
12948 2003-05-21  Dave Love  <fx@gnu.org>
12950         [Merged from unicode branch.]
12952         * xfns.c (x_window, x_window): Use use_xim.
12954         * xterm.c (use_xim): Initialize.
12955         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
12956         (x_term_init): Maybe set use_xim.
12958         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
12960 2003-05-21  Jason Rumney  <jasonr@gnu.org>
12962         * unexw32.c (_start): Remove _fmode initialization.
12964         * emacs.c (main) [WINDOWSNT]: Move it here.
12966 2003-05-20  Dave Love  <fx@gnu.org>
12968         * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
12970 2003-05-19  Richard M. Stallman  <rms@gnu.org>
12972         * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
12973         as value for QCfont attribute.
12974         (realize_default_face): lface should already exist; crash if not.
12975         Specify 0 for FORCE_P when calling set_lface_from_font_name.
12977         * frame.c (Fignore_event): Doc fix.
12979 2003-05-19  Kenichi Handa  <handa@m17n.org>
12981         * coding.c (decode_coding_string): Handle post-read-conversion
12982         even if the coding doesn't require decoding.
12984 2003-05-18  Richard M. Stallman  <rms@gnu.org>
12986         * callproc.c (Fcall_process_region): Doc fix.
12988 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
12990         * lread.c (Fload): Print a message if package is obsolete.
12992         * window.c (Fselect_window): Add optional `norecord' arg.
12993         (select_window_1): Fold into Fselect_window.
12994         (select_window_norecord): New function.
12995         (temp_output_buffer_show): Use it.  Preserve current buffer.
12997         * window.h (Fselect_window): Update declaration.
12999         * window.c (delete_window, Fother_window, Fset_window_configuration):
13000         * minibuf.c (read_minibuf):
13001         * macterm.c (x_new_focus_frame):
13002         * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
13003         * callint.c (Fcall_interactively):
13004         * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
13006         * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
13008 2003-05-17  David Kastrup  <dak@gnu.org>
13010         * process.c (read_process_output): Back out change from 2003-03-09.
13012 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
13014         * editfns.c (get_pos_property): Don't assume that `object' = nil.
13016         * textprop.c (text_property_stickiness): New arg `buffer'.
13018         * intervals.h (text_property_stickiness): New arg `buffer'.
13019         (get_pos_property): Declare.
13021         * intervals.c (get_local_map): Use get_pos_property, to obey
13022         stickiness and empty overlays.
13023         (create_root_interval, graft_intervals_into_buffer): Use BEG.
13024         (merge_properties, intervals_equal, merge_properties_sticky):
13025         Use XCAR, XCDR.
13026         (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
13028 2003-05-17  Richard M. Stallman  <rms@gnu.org>
13030         * minibuf.c (read_minibuf): If buffer is empty, record the default
13031         in the history.
13032         (Fminibuffer_complete_word): When deleting the overlap, take account
13033         of its real position.
13035         * fns.c (map_char_table): Fix previous change.
13037         * syntax.c (find_defun_start):
13038         When open_paren_in_column_0_is_defun_start,
13039         return beginning of buffer.
13041         * lisp.h (map_char_table): Declare added arg.
13043         * fns.c (map_char_table): New arg TABLE gets the master table.
13044         All calls changed.
13045         Process default and inheritance, resorting to Faref if necessary.
13047         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
13048         (Faccessible_keymaps): Pass new arg to map_char_table.
13050         * fontset.c (Ffontset_info): Pass new arg to map_char_table.
13052         * casetab.c (set_case_table): Pass new arg to map_char_table.
13054         * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
13056         * lisp.h (specbinding_func): New typedef.
13057         (struct specbinding): Use specbinding_func, to put the `volatile'
13058         in the right place.
13060         * alloc.c (Fgarbage_collect): Cast pointers into specpdl
13061         to avoid GCC warning.
13063 2003-05-16  Ralph Schleicher  <rs@nunatak.allgaeu.org>
13065         * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
13067 2003-05-15  Stefan Monnier  <monnier@cs.yale.edu>
13069         * keyboard.c (apply_modifiers): Don't fill the other cache.
13071 2003-05-14  Stefan Monnier  <monnier@cs.yale.edu>
13073         * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
13075         * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
13076         (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
13077         (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
13078         (Fset_window_configuration, Fcurrent_window_configuration)
13079         (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
13080         (Fpos_visible_in_window_p, mark_window_cursors_off)
13081         (window_internal_height, window_internal_width, Frecenter)
13082         (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
13083         (replace_buffer_in_all_windows, init_window_once, init_window)
13084         (syms_of_window, keys_of_window): Move from lisp.h.
13085         * lisp.h: Move window.c declarations to window.h.
13087         * bytecode.c: Include window.h.
13088         * emacs.c: Include window.h.
13090         * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
13091         (keyremap): Add `parent' field.
13092         (keyremap_step): Use it.  Remove `parent' argument.
13093         (read_key_sequence): Setup and use the new `parent' field.
13095 2003-05-11  Stefan Monnier  <monnier@cs.yale.edu>
13097         * keyboard.c (adjust_point_for_property): Ensure termination.
13099 2003-05-10  Stefan Monnier  <monnier@cs.yale.edu>
13101         * keyboard.c (follow_key): Remove dead variable `did_meta'.
13102         (access_keymap_keyremap, keyremap_step): New funs, extracted from the
13103         duplicated handling of function-key-map and key-translation-map
13104         in read_key_sequence.
13105         (read_key_sequence): Use them.
13107         * keyboard.c (adjust_point_for_property): Try harder to move point
13108         to the non-sticky end of an invisible property.
13110         * xdisp.c (single_display_prop_intangible_p): Make `space' display
13111         property intangible as well.
13113 2003-05-10  Andreas Schwab  <schwab@suse.de>
13115         * xmenu.c (single_menu_item): Change last parameter to void* to
13116         avoid warning.
13118 2003-05-09  Richard M. Stallman  <rms@gnu.org>
13120         * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
13121         Bind Qinhibit_modification_hooks to t so there will be no GC.
13122         Rename local `tem' to `save_deactivate_mark'.
13124         * eval.c (specpdl_ptr): Declare volatile.
13125         (unbind_to): Copy the whole binding and decrement specpdl_ptr
13126         before doing the work of unbinding it.
13128         * lisp.h (struct specbinding): Declare elements volatile.
13129         (specpdl_ptr): Declare volatile.
13131         * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
13133         * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
13134         for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
13136 2003-05-08  Dave Love  <fx@gnu.org>
13138         * coding.c (Vlast_coding_system_used): Doc fix.
13140 2003-05-07  Jason Rumney  <jasonr@gnu.org>
13142         * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
13143         when system does not support them.
13145 2003-05-05  Stefan Monnier  <monnier@cs.yale.edu>
13147         * fileio.c (Qwrite_region_annotate_functions): New var.
13148         (build_annotations): Use it to process the global part of the hook.
13149         (syms_of_fileio): Init and staticpro it.
13151         * keyboard.c (safe_run_hooks_error): Display a message instead of
13152         silently ignoring the error.
13154 2003-05-03  Stefan Monnier  <monnier@cs.yale.edu>
13156         * keyboard.c (input_available_signal): Mark static.
13157         (menu_bar_items): Use map_keymap.
13158         (menu_bar_one_keymap): Remove.
13159         (menu_bar_item): Adjust arglist (for use in map_keymap).
13160         Properly hide a second binding when not both are keymaps.
13162         * xmenu.c (struct skp): New struct, to pass args through map_keymap.
13163         (single_keymap_panes): Use it and map_keymap.
13164         (single_menu_item): Use skp as well.
13166         * keymap.h (map_keymap_function_t): New type.
13167         (map_keymap): Declare.
13169         * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
13170         (map_keymap_call, Fmap_keymap): New functions.
13171         (syms_of_keymap): Defsubr map-keymap.
13173 2003-05-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13175         * gtkutil.c (create_dialog, make_widget_for_menu_item)
13176         (make_menu_item, create_menus, xg_update_menu_item): Don't call
13177         ..._with_mnemonic functions for menu items.
13179 2003-05-01  Kenichi Handa  <handa@m17n.org>
13181         * coding.c (coding_system_accept_latin_extra_p): Delete this
13182         function.
13183         (find_safe_codings): Pay attention to
13184         the property tranlsation-table-for-encode of each codings.
13185         (syms_of_coding): Give Qtranslation_table the extra slot number 2.
13187 2003-05-01  Stefan Monnier  <monnier@cs.yale.edu>
13189         * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
13191 2003-04-30  Stefan Monnier  <monnier@cs.yale.edu>
13193         * eval.c (unbind_to): Don't handle symbol = Qnil any more.
13195         * lisp.h (CHECK): Wrap args in parenthesis.
13196         (specbind): Fix doc: symbol = Qnil is not supported any more.
13198         * bytecode.c (Fbyte_code) <unwind-protect>:
13199         Use Fprogn rather than 0 and Qnil.
13201         * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
13202         `double', and `triple' modifiers as well.
13204 2003-04-30  Richard M. Stallman  <rms@gnu.org>
13206         * keyboard.c (echo_char): Don't clear out a dash that follows a space.
13208         * alloc.c (abort_on_gc): New variable.
13209         (Fgarbage_collect): Abort if abort_on_gc is set.
13211         * lisp.h (abort_on_gc): Add decl.
13213         * eval.c (Fsignal): Clear abort_on_gc.
13215         * editfns.c (Fformat): Set abort_on_gc during first scan of format.
13216         Reinit FORMAT_START and END before second scan.
13218         * xdisp.c (move_it_vertically_backward): Do the final big else
13219         even if nlines is 0.
13221         * xdisp.c (redisplay_internal): Finish the per-frame loop
13222         even if redisplay is suspended by input.
13224 2003-04-24  Andrew Choi  <akochoi@shaw.ca>
13226         * macterm.c (x_list_fonts): Return all fonts that match if
13227         maxnames = -1.
13229 2003-04-25  Kenichi Handa  <handa@m17n.org>
13231         * syntax.c (skip_chars): Fix previous change.
13233 2003-04-24  Kenichi Handa  <handa@m17n.org>
13235         * syntax.c (skip_chars): Make the code faster by using the common
13236         technique of *p, *stop, and *endp.
13238 2003-04-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13240         * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
13241         tool_bar_items so GTK tool bar expose callback does not access items
13242         being updated.
13244 2003-04-19  Stefan Monnier  <monnier@cs.yale.edu>
13246         * eval.c (Fapply): Undo last change and add a comment about why.
13248 2003-04-18  Miles Bader  <miles@gnu.org>
13250         * data.c (Faset): Calculate nbytes earlier, to satisfy the now
13251         pickier PARSE_MULTIBYTE_SEQ.
13253 2003-04-17  Stefan Monnier  <monnier@cs.yale.edu>
13255         * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
13256         Use XCDR, XCAR, CONSP.
13257         (Fdefmacro): Fix docstring.  Use XCAR, XCDR.
13258         (Fapply): Remove unnecessary GCPRO.
13260         * doc.c (Fsubstitute_command_keys): Remove spurious casts.
13262         * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
13264         * buffer.h: Don't hardcode BEG==1.
13266         * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
13268 2003-04-16  Richard M. Stallman  <rms@gnu.org>
13270         * xdisp.c (try_window, try_window_reusing_current_matrix):
13271         When at end of window, set window_end_pos to Z-ZV.
13273         * buffer.c (Foverlay_recenter): Doc fix.
13275 2003-04-14  Stefan Monnier  <monnier@cs.yale.edu>
13277         * dispnew.c (Fsit_For): Support XEmacs-style arg list.
13279 2003-04-14  Andrew Choi  <akochoi@shaw.ca>
13281         * macterm.c (mac_check_for_quit_char): Don't check more often than
13282         once a second.
13284 2003-04-11  Stefan Monnier  <monnier@cs.yale.edu>
13286         * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
13287         specially, so that they can't hide an implicit switch-frame event.
13288         (make_lispy_event): Handle SELECT_WINDOW_EVENT.
13289         (head_table): Use switch-frame as event_kind for select-window.
13290         (keys_of_keyboard): Don't bind [select-window] in special-event-map.
13292         * editfns.c (Fformat): Lisp_Object/int mixup.
13293         (format2): Remove unused var numargs.
13295 2003-04-11  Kenichi Handa  <handa@m17n.org>
13297         * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
13298         (Qafter_insert_file_set_coding): New variable.
13299         (syms_of_fileio): Initialize and staticpro it.  Delete declaration
13300         for after-insert-file-adjust-coding-function.
13301         (Finsert_file_contents): Call Qafter_insert_file_set_coding
13302         instead of Vafter_insert_file_adjust_coding_function.
13304 2003-04-11  Kenichi Handa  <handa@m17n.org>
13306         * lisp.h (temp_echo_area_glyphs): Adjust prototype.
13308         * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
13309         string.  Callers changed.
13311 2003-04-10  Kenichi Handa  <handa@m17n.org>
13313         * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
13314         (syms_of_fileio): Declare it as a lisp variable.
13315         (Finsert_file_contents):
13316         Call Vafter_insert_file_adjust_coding_function before calling
13317         decode-format.
13319 2003-04-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13321         * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
13322         get GtkAdjustment as widget now is a GtkRange.
13324         * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
13325         GtkRange to avoid memory leak.
13327 2003-04-09  Kenichi Handa  <handa@m17n.org>
13329         * xfaces.c (Vface_font_rescale_alist): New variable.
13330         (struct font_name): New member rescale_ratio.
13331         (font_rescale_ratio): New function.
13332         (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
13333         (better_font_p): On comparing point sized, pay attention to
13334         recale_ratio member of fonts.
13335         (build_scalable_font_name): Reflect font->rescale_ratio in the
13336         font name.
13337         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
13339         * lread.c (read1): Before calling index, check if the 2nd
13340         arguemnt is in ASCII range.
13342 2003-04-08  Richard M. Stallman  <rms@gnu.org>
13344         * fileio.c (Ffile_symlink_p): Doc fix.
13346         * editfns.c (Fformat): Translate positions of text properties
13347         in the format string to apply them to the result.
13349         * fileio.c (Finsert_file_contents): Doc fix.
13350         (syms_of_fileio) <after-insert-file-functions>: Doc fix.
13352 2003-04-08  Ivan Zakharyaschev  <imz@altlinux.org>  (tiny change)
13354         * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
13356 2003-04-08  Steven Tamm  <steventamm@mac.com>
13358         * mac.c (init_mac_osx_environment): Switch libexec and bin so
13359         that self-contained application finds libexec files.
13361 2003-04-08  Kenichi Handa  <handa@m17n.org>
13363         * coding.c (code_convert_region_unwind):
13364         Set Vlast_coding_system_used to the argument.
13365         (code_convert_region): If post-read-conversion function changed
13366         the value of last-coding-sytem, keep the new value in
13367         coding->symbol so that it won't be overridden.
13368         (run_pre_post_conversion_on_str): Likewise.
13369         (coding_system_accept_latin_extra_p): New function.
13370         (find_safe_codings): Pay attention to characters registered in
13371         latin-extra-code-table.
13373 2003-04-07  Thien-Thi Nguyen  <ttn@gnu.org>
13375         * Makefile.in (md5.o): Add missing dependency info.
13377 2003-04-06  Richard M. Stallman  <rms@gnu.org>
13379         * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
13381         * marker.c (verify_bytepos): New function.
13383         * intervals.c (set_intervals_multibyte_1): When becoming
13384         multibyte, adjust right and left child sizes to a whole set of
13385         characters.  If an interval gets zero total-length, delete it.
13386         If an interval consists of just its children, delete one of them.
13388         * intervals.h (CHECK_TOTAL_LENGTH): New macro.
13389         * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
13391         * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
13392         All calls deleted.
13393         (lisp_malloc): Do the work here directly.
13395 2003-04-06  Gareth Jones  <emacs@referential.org.uk>  (tiny change)
13397         * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
13398         char tables.
13400 2003-04-04  Kenichi Handa  <handa@m17n.org>
13402         * editfns.c (Fformat): Use a copy of FORMAT string so that we can
13403         destructively change "%S" to "%s".
13405 2003-04-03  Miles Bader  <miles@gnu.org>
13407         * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
13408         always set.
13410 2003-04-01  Dave Love  <fx@gnu.org>
13412         * xfns.c (xpm_lookup_color): Grok "opaque".
13414 2003-03-31  Andrew Choi  <akochoi@shaw.ca>
13416         * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
13417         parent window ID.
13419         * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
13421         * macterm.h (struct mac_output): Define x_pixels_diff and
13422         y_pixels_diff.
13424 2003-03-31  Juanma Barranquero  <lektu@terra.es>
13426         * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
13427         blockinput.h and files included from it.
13429 2003-03-31  Kim F. Storm  <storm@cua.dk>
13431         The following changes consolidates the common code related to
13432         frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
13433         files into frame.c.
13435         * frame.c: Include blockinput.h.
13436         (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
13437         (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
13438         (Qauto_raise, Qauto_lower, ...): Define all frame parameter
13439         related vars here.
13440         (struct frame_parm_table, frame_parms): New table for describing
13441         frame parameters and their associated Q-variable.
13442         The order of the parameters corresponds to the sequence of the
13443         frame_parm_handlers table in redisplay_interface.
13444         (x_fullscreen_move, x_set_frame_parameters)
13445         (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
13446         (x_set_screen_gamma, x_set_font, x_set_fringe_width)
13447         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13448         (x_set_autoraise, x_set_autolower, x_set_unsplittable)
13449         (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
13450         Generic functions for processing of frame parameters.
13451         (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
13452         (display_x_get_resource, x_get_resource_string): Functions for
13453         generic access to X resources.
13454         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
13455         (x_default_parameter, Fx_parse_geometry): Functions for generic
13456         access to frame parameters.
13457         (x_figure_window_size): Generic calculation of frame size.
13458         Fixed to add space needed for tool bar.  Also setup size_hint_flags.
13459         (syms_of_frame): Intern and staticpro frame parameter variables.
13460         Defvar_lisp Vx_resource_class and Vx_resource_name here.
13461         Defsubr Sx_get_resource and Sx_parse_geometry.
13463         * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
13464         parameter related vars defined in frame.c.
13465         (EMACS_CLASS): Define here.
13466         (enum FULLSCREEN_*): Define here.
13467         (x_set_scroll_bar_default_width, x_wm_set_icon_position)
13468         (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
13469         (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
13470         (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
13471         (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
13472         (x_set_visibility, x_set_autoraise, x_set_autolower)
13473         (x_set_unsplittable, x_set_vertical_scroll_bars)
13474         (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
13475         (x_figure_window_size): Add prototypes.
13477         * dispextern.h (frame_parm_handler): New typedef.
13478         (struct redisplay_interface): New member frame_parm_handlers.
13479         (enum resource_types): Move declaration here.
13480         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
13481         (x_default_parameter): Add prototypes.
13483         * window.c: Remove extern decl for frame parameter vars.
13484         (change_window_heights): New generic function;
13485         replaces x_change_window_heights.  All users changed.
13487         * window.h (change_window_heights): Add prototype.
13489         * xfaces.c: Remove extern decl for frame parameter vars.
13491         * xterm.h (EMACS_CLASS): Remove.  Use generic define.
13492         (struct w32_display_info): Fix type of xrdb member.
13493         (enum FULLSCREEN_*): Remove.
13494         Remove prototypes for generic functions (in frame.h).
13496         * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13497         parameters now defined in frame.h and frame.c.
13498         (Vx_resource_name): Remove.  Use generic var.
13499         (enum x_frame_parms): Remove (bogus, unused enum).
13500         (check_x_display_info): Make non-static (for frame.c).
13501         (struct x_frame_parm_table, x_frame_parms): Remove.
13502         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13503         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13504         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13505         (x_change_window_heights, x_set_autoraise, x_set_autolower)
13506         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13507         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13508         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13509         Remove.  Use generic functions instead.
13510         (enum resource_types): Remove.
13511         (x_set_scroll_bar_default_width): New global function (for frame.c).
13512         (Fx_create_frame): Depend on x_figure_window_size to add space for
13513         toolbar and setup size_hint_flags.
13514         (x_frame_parm_handlers): New table for redisplay_interface.
13515         (syms_of_xfns): Don't intern/staticpro removed vars.
13517         * xterm.c: Remove unnecessary extern declarations.
13518         (x_fullscreen_adjust): Remove.  Use generic instead.
13519         (x_redisplay_interface): Add x_frame_parm_handlers member.
13521         * w32gui.h (XrmDatabase): New (dummy) typedef.
13523         * w32term.h (EMACS_CLASS): Remove.  Use generic define.
13524         (struct w32_display_info): Fix type of xrdb member.
13525         (enum FULLSCREEN_*): Remove.
13526         (x_fullscreen_adjust): Remove prototype.
13528         * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13529         parameters now defined in frame.h and frame.c.
13530         (Vx_resource_name): Remove.  Use generic var.
13531         (enum x_frame_parms): Remove (bogus, unused enum).
13532         (check_x_display_info): Make non-static (for frame.c).
13533         (struct x_frame_parm_table, x_frame_parms): Remove.
13534         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13535         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13536         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13537         (x_change_window_heights, x_set_autoraise, x_set_autolower)
13538         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13539         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13540         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13541         Remove.  Use generic functions instead.
13542         (enum resource_types): Remove.
13543         (x_set_scroll_bar_default_width): New global function (for frame.c).
13544         (Fx_create_frame): Depend on x_figure_window_size to add space for
13545         toolbar and setup size_hint_flags.
13546         (w32_frame_parm_handlers): New table for redisplay_interface.
13547         (syms_of_w32fns): Don't intern/staticpro removed vars.
13549         * w32term.c: Remove unnecessary extern declarations.
13550         (x_fullscreen_adjust): Remove.  Use generic instead.
13551         (x_redisplay_interface): Add w32_frame_parm_handlers member.
13553         * w32reg.c (x_get_string_resource): Use XrmDatabase.
13555         * macgui.h (XrmDatabase): New (dummy) typedef.
13557         * macterm.h (EMACS_CLASS): Remove.
13558         (struct mac_display_info): Add xrdb member.
13559         (struct mac_output): Add want_fullscreen member.
13561         * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
13562         parameters now defined in frame.h and frame.c.
13563         (Vx_resource_name): Remove.  Use generic var.
13564         (check_x_display_info): Make non-static (for frame.c).
13565         (struct x_frame_parm_table, x_frame_parms): Remove.
13566         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
13567         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
13568         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
13569         (x_change_window_heights, x_set_autoraise, x_set_autolower)
13570         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
13571         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
13572         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
13573         Remove.  Use generic functions instead.
13574         (enum resource_types): Remove.
13575         (x_set_scroll_bar_default_width): New global function (for frame.c).
13576         (mac_frame_parm_handlers): New table for redisplay_interface.
13577         (syms_of_macfns): Don't intern/staticpro removed vars.
13579         * macterm.c: Remove unnecessary extern declarations.
13580         (x_redisplay_interface): Add mac_frame_parm_handlers member.
13582         * Makefile.in (frame.o): Add dependency on blockinput.h and files
13583         included from it (atimer.h and systime.h).
13585 2003-03-30  Andreas Schwab  <schwab@suse.de>
13587         * xdisp.c (x_insert_glyphs): Fix swapped width and height
13588         parameters for shift_glyphs_for_insert.
13590         * macterm.c (x_redisplay_interface): Add missing entry for
13591         draw_vertical_window_border.
13593 2003-03-29  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
13595         * fileio.c (Fexpand_file_name): In the no-handler case, after
13596         expanding, look again for a handler and invoke it.  This is needed
13597         for filenames like "/foo/../user@host:/bar/../baz" -- the first
13598         expansion produces "/user@host:/bar/../baz" which needs to be
13599         expanded again for the finame result "/user@host:/baz".
13601 2003-03-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13603         * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
13604         of area to be redrawn for better performance.
13606 2003-03-28  Stefan Monnier  <monnier@cs.yale.edu>
13608         * xterm.c (take_vertical_position_into_account): Remove.
13609         (xt_action_hook): Call set_vertical_scroll_bar if needed.
13610         (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
13611         (xm_scroll_callback, x_create_toolkit_scroll_bar)
13612         (x_set_toolkit_scroll_bar_thumb): Simplify.
13613         (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
13614         (XTread_socket): Remove unused var.
13615         (x_make_frame_invisible): Replace goto with else.
13617         * xdisp.c (set_vertical_scroll_bar): New fun.
13618         (redisplay_window): Use it.
13620 2003-03-26  Richard M. Stallman  <rms@gnu.org>
13622         * xdisp.c (update_tool_bar): Recompute tool bar if
13623         update_mode_lines is set.  Set w->update_mode_line
13624         only if the tool bar contents actually change.
13625         (update_menu_bar): Undo previous change.
13627 2003-03-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13629         * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
13630         (xg_frame_set_char_size): Calculate scroll bar width before frame
13631         width.  Call SET_FRAME_GARBAGED and cancel_mouse_face.
13632         (xg_separator_p): Check for all documented separator types.
13633         (xg_update_scrollbar_pos): Variable gheight not needed, use height.
13634         (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
13636         * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
13637         so tool bar gets updated.
13639 2003-03-26  Stefan Monnier  <monnier@cs.yale.edu>
13641         * data.c (store_symval_forwarding): Re-instate part of the code
13642         that was deleted with too much enthusiasm.
13644 2003-03-25  Stefan Monnier  <monnier@cs.yale.edu>
13646         * data.c (store_symval_forwarding): Delete special read-only
13647         hack for type == -1, since we now use ->constant instead.
13648         (Fkill_local_variable): Don't use XBUFFER if it can be nil.
13650         * buffer.c (overlays_in): Declare static.
13651         (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
13652         `constant' field rather than the variable's `type' field.
13654 2003-03-24  Andrew Choi  <akochoi@shaw.ca>
13656         * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
13658         * dispextern.h [HAVE_CARBON]: Include Carbon.h.
13660         * fns.c [MAC_OSX]: Do not redefine vector.
13662         * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
13664         * macgui.h: Remove definition of No_Cursor.
13666         * macterm.h: Include Carbon.h.  Replace (struct Cursor *) by Cursor.
13668         * xdisp.c: Define No_Cursor.
13669         (x_write_glyphs, notice_overwritten_cursor)
13670         (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
13671         (note_mouse_highlight): Remove Mac-specific code.
13672         (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
13674 2003-03-24  John Paul Wallington  <jpw@gnu.org>
13676         * xdisp.c (redisplay_window): If mini window's buffer is not
13677         empty, then redisplay it like other windows.
13679 2003-03-23  Kim F. Storm  <storm@cua.dk>
13681         * w32term.c (w32_draw_window_cursor): Fix last change.
13683 2003-03-23  Kenichi Handa  <handa@m17n.org>
13685         * alloc.c (make_string_from_bytes, make_specified_string):
13686         Add `const' for the arg CONTENTS.
13688         * lisp.h (make_string_from_bytes, make_specified_string):
13689         Prototypes adjusted.
13691 2003-03-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13693         * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
13695         * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
13696         (XG_SB_RANGE): New define.
13698         * gtkutil.c (xg_fixed_handle_expose): New function.
13699         (xg_create_frame_widgets): Call xg_fixed_handle_expose for
13700         expose events.
13701         (xg_update_scrollbar_pos): Take two more arguments, left and width
13702         of scroll bar including borders.
13703         Clear left and right part outside scroll bar separately as some
13704         themes have bars that are not an even number of pixels.
13705         Don't set reallocate_redraws, don't call
13706         gdk_window_process_all_updates.
13707         (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
13708         so no need to change it.  Calculate size and value with XG_SB_RANGE.
13710         * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
13711         Pass left and width of scroll bar including borders to
13712         xg_update_scrollbar_pos.
13714 2003-03-22  Thien-Thi Nguyen  <ttn@gnu.org>
13716         * Makefile.in: Make sure space precedes end-of-line backslashes.
13718 2003-03-22  Kim F. Storm  <storm@cua.dk>
13720         * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
13721         Add generic versions here.  Remove system specific versions
13722         defined elsewhere.
13724         * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
13725         Add prototypes.
13727         * xterm.h (STORE_NATIVE_RECT): New macro.
13729 2003-03-21  Kim F. Storm  <storm@cua.dk>
13731         * xdisp.c (get_glyph_string_clip_rect):
13732         Use FRAME_INTERNAL_BORDER_WIDTH.
13734         * dispextern.h (struct redisplay_interface): Add active_p
13735         argument to draw_window_cursor member.  All uses changed.
13737 2003-03-21  Kim F. Storm  <storm@cua.dk>
13739         The following changes consolidate code related to writing and
13740         inserting glyphs, exposing frame, the tool bar, the mouse face,
13741         the output cursor, and help echo from xterm.c, w32term.c and
13742         macterm.c into xdisp.c.  It also generalizes the use of the
13743         window_part enum instead of using numeric values throughout.
13745         * xdisp.c: Consolidate gui-independent code here.
13746         Include keymap.h.
13747         (Qhelp_echo): Import.
13748         (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
13749         (help_echo_string, help_echo_window, help_echo_object)
13750         (previous_help_echo_string, help_echo_pos): Declare here.
13751         (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
13752         (estimate_mode_line_height): Define here.  Handle windowing
13753         systems directly (without using estimate_mode_line_height_hook).
13754         (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
13755         (update_window_cursor, update_cursor_in_window_tree)
13756         (fast_find_position, fast_find_string_pos)
13757         (note_mode_line_highlight, note_mode_line_or_margin_highlight)
13758         (expose_area, expose_line, expose_overlaps, expose_window)
13759         (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
13760         declared static as they are only used locally in xdisp.c.
13761         (draw_glyphs): Rename from x_draw_glyphs and make static.
13762         (tool_bar_item_info, notice_overwritten_cursor): Make static.
13763         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13764         (set_output_cursor, x_cursor_to, handle_tool_bar_click)
13765         (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
13766         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
13767         (display_and_set_cursor, x_update_cursor, x_clear_cursor)
13768         (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
13769         (note_mouse_highlight, x_clear_window_mouse_face)
13770         (cancel_mouse_face, x_draw_vertical_border, expose_frame)
13771         (x_intersect_rectangles): New generic functions for use by xdisp.c
13772         and GUI front-ends.
13773         (syms_of_xdisp): Initialize and staticpro help_echo* variables.
13774         Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
13776         * dispextern.h (Display_Info): Generic typedef for *_display_info.
13777         (NativeRectangle): Generic typedef for rectangle type.
13778         (enum window_part): Move here from window.c.
13779         (struct redisplay_interface): New members flush_display_optional,
13780         define_frame_cursor, clear_frame_area, draw_window_cursor,
13781         draw_vertical_window_border, shift_glyphs_for_insert.
13782         Rename member clear_mouse_face to clear_window_mouse_face.
13783         (estimate_mode_line_height_hook): Remove hook.
13784         (auto_raise_tool_bar_buttons_p): Don't declare extern.
13785         (tool_bar_item_info): Remove prototype.
13786         (help_echo_string, help_echo_window, help_echo_object)
13787         (previous_help_echo_string, help_echo_pos)
13788         (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
13789         (x_stretch_cursor_p, output_cursor): Declare extern.
13790         (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
13791         (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
13792         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
13793         (display_and_set_cursor, set_output_cursor, x_cursor_to)
13794         (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
13795         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
13796         (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
13797         (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
13798         (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
13799         Add prototypes.
13800         (mode_line_string, marginal_area_string): Fix prototypes.
13802         * window.c (enum window_part): Move to dispextern.h.
13803         (coordinates_in_window): Use enum window_part member names
13804         instead of numbers to describe return value.
13805         (struct check_window_data): Change part member to window_part.
13806         (check_window_containing): Return window_part unaltered.
13807         (window_from_coordinates): Change part arg from int to enum
13808         window_part.  Allow part arg to be null.  All users changed.
13810         * window.h (window_from_coordinates): Fix prototype.
13812         * term.c (estimate_mode_line_height): Move to xdisp.c.
13814         * keyboard.c (make_lispy_event): Use enum window_part.
13816         * dispnew.c (mode_line_string, marginal_area_string): Use enum
13817         window_part instead of int in arg list.  Users changed.
13819         * xterm.h (No_Cursor): Declare as None for X.
13820         (struct mac_output): Replace member cross_cursor by hand_cursor.
13822         * xterm.c: Remove consolidated defines and code.
13823         (BETWEEN): Remove unused macro.
13824         (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
13825         (x_define_frame_cursor, x_clear_frame_area)
13826         (x_draw_window_cursor): New X-specific functions for RIF.
13827         (x_redisplay_interface): Add new members.
13829         * xfns.c: Setup and use hand_cursor instead of cross_cursor.
13831         * w32term.h (struct w32_output): Remove cross_cursor member.
13833         * w32term.c: Remove consolidated defines and code.
13834         (BETWEEN): Remove unused macro.
13835         (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
13836         (w32_define_frame_cursor, w32_clear_frame_area)
13837         (w32_draw_window_cursor): New W32-specific functions for RIF.
13838         (w32_redisplay_interface): Add new members.
13840         * w32gui.h (No_Cursor): Define as 0 for W32.
13841         (XRectangle): Add X compatible rectangle type.
13842         (NativeRectangle): Declare as RECT for W32.
13843         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
13845         * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
13847         * w32console.c: Remove consolidated defines and code.
13849         * msdos.h (Display_Info): Add generic typedef.
13851         * msdos.c: Remove consolidated defines and code.
13852         (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
13854         * macterm.h (struct mac_output): Replace member cross_cursor by
13855         hand_cursor.
13856         (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
13858         * macterm.c: Remove consolidated defines and code.
13859         (BETWEEN): Remove unused macro.
13860         (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
13861         (mac_define_frame_cursor, mac_clear_frame_area)
13862         (mac_draw_window_cursor): New Mac-specific functions for RIF.
13863         (x_redisplay_interface): Add new members.
13865         * macgui.h (No_Cursor): Define as 0 for Mac.
13866         (XRectangle): Add X compatible rectangle type.
13867         (NativeRectangle): Declare as Rect for Mac.
13868         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
13870         * macfns.c (x_set_mouse_color): Setup hand_cursor.
13871         (x_set_cursor_color): Use x_display_and_set_cursor.
13873         * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
13874         included from it.  Add dependency on keymap.h.
13876         * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
13878 2003-03-21  Kenichi Handa  <handa@m17n.org>
13880         * fileio.c (Fexpand_file_name): Fix previous change.
13882 2003-03-19  Kenichi Handa  <handa@m17n.org>
13884         * fileio.c (Ffile_name_directory): Reconstruct file name by
13885         make_specified_string.
13886         (Ffile_name_nondirectory, Ffile_name_as_directory)
13887         (Fdirectory_file_name, Fexpand_file_name)
13888         (Fsubstitute_in_file_name): Likewise.
13889         (Fread_file_name): Compare decoded homedir with DIR and
13890         DEFAULT_FILENAME.
13892         * alloc.c (make_specified_string): If NCHARS is negative, count
13893         the number of characters.
13895 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13897         * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
13898         all widgets.
13900         * gtkutil.h: Removed xg_ignore_next_thumb.
13902 2003-03-18  Kenichi Handa  <handa@m17n.org>
13904         * coding.c (Vchar_coding_system_table): Remove this variable.
13905         (Vcoding_system_safe_chars): New variable.
13906         (intersection): Remove this function.
13907         (find_safe_codings): Don't use Vchar_coding_system_table, but try
13908         all codings in SAFE_CODINGS.
13909         (Ffind_coding_systems_region_internal): Adjust for the change of
13910         find_safe_codings.  Get generic coding systems from
13911         Vcoding_system_safe_chars.
13912         (Fdefine_coding_system_internal): New function.
13913         (syms_of_coding): Defsubr Sdefine_coding_system_internal.
13914         Initialize and staticpro Vcoding_system_safe_chars.
13916 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13918         * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
13919         equal old values before updating.
13921         * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
13923         * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
13925 2003-03-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13927         * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
13928         (xg_resize_widgets): Don't call foreach(handle_fixed_child).
13929         (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
13930         (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
13931         (xg_create_scroll_bar): Pass bar to button event callback.
13932         (xg_find_top_left_in_fixed): New function.
13933         (xg_update_scrollbar_pos): Don't call gdk_window_clear on
13934         whole scroll bar area.  Get old position with
13935         xg_find_top_left_in_fixed, calculate and only clear needed areas.
13936         (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
13937         dragging is in progress.  Calculate whole as for Motif.
13938         Remove code that saved last values.  Call gtk_range functions to
13939         set scroll bar sizes.
13941         * gtkutil.h: Removed xg_ignore_next_thumb.
13943 2003-03-17  Juanma Barranquero  <lektu@terra.es>
13945         * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
13946         and files included from it.
13948 2003-03-18  Stefan Monnier  <monnier@cs.yale.edu>
13950         * keymap.c (accessible_keymaps_1): Break cycles but without preventing
13951         multiple occurrences of the same keymap under different prefixes.
13952         (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
13954 2003-03-16  Jason Rumney  <jasonr@gnu.org>
13956         * w32gui.h: Use HDC for Display.
13958         * w32term.c (w32_encode_char): Prevent double-byte chars from
13959         crashing Emacs.
13961         * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
13962         as binary.
13964 2003-03-16  Juanma Barranquero  <lektu@terra.es>
13966         * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
13968 2003-03-16  Kim F. Storm  <storm@cua.dk>
13970         The following changes consolidate some of the gui-independent
13971         parts of the processing and drawing of "glyph strings" from
13972         xterm.c, w32term.c, and macterm.c into xdisp.c.
13974         * dispextern.h (struct glyph): Reduce face_id member from 22 to
13975         21 bits (this reduces number of faces from 4M to 2M).
13976         Replace W32 specific w32_font_type member (2 bits) by generic
13977         font_type member (3 bits) for portability.
13978         (FONT_TYPE_UNKNOWN): New define, default for font_type member.
13979         (enum draw_glyphs_face): Define here.
13980         (struct glyph_string): Define here.  Merge W32 and X versions.
13981         (struct redisplay_interface): New members per_char_metric,
13982         encode_char, compute_glyph_string_overhangs, draw_glyph_string.
13983         (VCENTER_BASELINE_OFFSET): Define here.
13984         (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
13985         (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
13987         * xdisp.c: Consolidate gui-independent "glyph string" code here.
13988         (dump_glyph_string): Moved here.
13989         (init_glyph_string, append_glyph_string_lists, append_glyph_string)
13990         (prepend_glyph_string_lists, get_glyph_face_and_encoding)
13991         (fill_composite_glyph_string, fill_glyph_string)
13992         (fill_image_glyph_string, fill_stretch_glyph_string)
13993         (left_overwritten, left_overwriting, right_overwritten)
13994         (right_overwriting, get_char_face_and_encoding)
13995         (set_glyph_string_background_width, compute_overhangs_and_x)
13996         (append_glyph, append_composite_glyph, produce_image_glyph)
13997         (take_vertical_position_into_account, append_stretch_glyph)
13998         (produce_stretch_glyph): New generic functions (based on X version).
13999         Call platform specific functions through rif.
14000         (INIT_GLYPH_STRING): New macro, hides W32 details.
14001         (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
14002         (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
14003         (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
14004         (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
14005         (notice_overwritten_cursor):
14006         Generic functions exported to platform modules.  Users changed.
14008         * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
14009         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
14010         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
14011         New macros for consolidated code.
14013         * xterm.c: Remove consolidated defines and code.
14014         (x_per_char_metric, x_encode_char)
14015         (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
14016         (x_redisplay_interface): Add new members.
14018         * w32gui.h (Display): Add dummy typedef for consolidation.
14019         (XChar2b): Define alias for wchar_t for consolidation.
14020         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
14022         * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
14023         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
14024         New macros for consolidation.
14026         * w32term.c: Remove consolidated defines and code.
14027         (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
14028         to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
14029         (w32_per_char_metric): Change font_type arg to int for RIF.
14030         (w32_encode_char): Return int according to RIF requirements.
14031         (w32_compute_glyph_string_overhangs): Adapt to RIF.
14032         (w32_get_glyph_overhangs): New function for RIF.  Uses generic
14033         x_get_glyph_overhangs.
14034         (w32_redisplay_interface): Add new members.
14036         * macgui.h (XChar2b): Move typedef here for consolidation.
14037         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
14039         * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
14040         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
14041         consolidation.
14043         * macterm.c: Remove consolidated defines and code.
14044         (mac_per_char_metric): New function for RIF.
14045         (mac_encode_char): Adapt to new RIF requirements.
14046         (mac_compute_glyph_string_overhangs): Adapt for RIF.
14047         (x_redisplay_interface): Add new members.
14049 2003-03-15  Stefan Monnier  <monnier@cs.yale.edu>
14051         * keymap.c (Vmenu_events): New var.
14052         (syms_of_keymap): Initialize it.
14053         (where_is_internal): Check more carefully what is a menu event.
14055 2003-03-14  Richard M. Stallman  <rms@gnu.org>
14057         * lread.c (read1): After #!, exit loop on eof.
14059 2003-03-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14061         * gtkutil.h: Add declaration for xg_frame_cleared.
14063         * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
14065         * gtkutil.c (struct xg_last_sb_pos): New structure.
14066         (handle_fixed_child): New function.
14067         (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
14068         and force a redraw on them.
14069         (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
14070         (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
14071         so we can avoid unneeded redraws.
14072         (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
14073         and force a redraw on the scroll bar.
14074         (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
14075         if xg_last_sb_pos shows the positions are up to date.
14076         (xg_frame_cleared): New function.
14078 2003-03-13  Kenichi Handa  <handa@m17n.org>
14080         * coding.c (Fdetect_coding_region): Fix docstring.
14081         (Fdetect_coding_string): Fix docstring.
14083 2003-03-13  Andreas Schwab  <schwab@suse.de>
14085         * gtkutil.c: Add prototype for create_menus.
14087         * data.c (long_to_cons): Fix type of top.
14089         * xselect.c (selection_data_to_lisp_data): Use int instead of
14090         long for an integer of size 4.
14092         * gtkutil.c (xg_update_frame_menubar): Add missing return value.
14093         (xg_tool_bar_help_callback): Likewise.
14095 2003-03-12  Andreas Schwab  <schwab@suse.de>
14097         * xterm.c (x_term_init) [USE_GTK]: Fix typo.
14099 2003-03-12  Kim F. Storm  <storm@cua.dk>
14101         The following changes consolidate the fringe handling from
14102         xterm.c, w32term.c, and macterm.c into xdisp.c.
14104         * xdisp.c: Consolidate fringe handling code here.
14105         (left_bits, right_bits, continued_bits, continuation_bits)
14106         (ov_bits, zv_bits): Define fringe bitmaps.
14107         (fringe_bitmaps): New array holding fringe bitmaps.
14108         (draw_fringe_bitmap): Draw a specific bitmap; call display
14109         specific drawing routine via rif->draw_fringe_bitmap.
14110         (draw_row_fringe_bitmaps): Generic replacement for
14111         x_draw_row_fringe_bitmaps; all callers changed.
14112         (compute_fringe_widths): Generic replacement for
14113         x_compute_fringe_widths; all callers changed.
14115         * dispextern.h (enum fringe_bitmap_type): Define here.
14116         (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
14117         (fringe_bitmaps): Declare extern.
14118         (struct redisplay_interface): New member draw_fringe_bitmap.
14119         (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
14121         * xterm.c: Remove generic fringe code.
14122         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14123         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14125         * w32term.c: Remove generic fringe code.
14126         (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
14127         (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
14129         * macterm.c: Remove generic fringe code.
14130         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
14131         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
14133 2003-03-11  Stefan Monnier  <monnier@cs.yale.edu>
14135         * print.c (Fprin1_to_string): Return unibyte string if possible.
14137 2003-03-09  David Kastrup  <dak@gnu.org>
14139         * process.c (read_process_output): We have allocated enough space
14140         for readmax and carryover, so actually use the alloted space.
14142 2003-03-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14144         * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
14145         toolkit scrollbar click.
14147         * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
14148         for USE_GTK.
14149         (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
14150         also.
14151         (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
14152         scrollbar and control is pressed, call x_scroll_bar_handle_click.
14154         * gtkutil.h (xg_get_scroll_id_for_window): Declare.
14156         * gtkutil.c (xg_get_scroll_id_for_window): New function.
14157         (xg_tool_bar_item_expose_callback): New function.
14158         (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
14159         (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
14160         on the tool bar widget.
14161         (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
14162         to expose on the tool bar item widgets.
14164 2003-03-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14166         * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
14167         struct image* when deciding to update (struct image* may have been
14168         deleted from the image cache).
14170         * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
14171         the event isn't for a frame (i.e. for dialogs).
14173 2003-03-07  Kenichi Handa  <handa@m17n.org>
14175         * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
14176         composition components reaches the limit, terminate composing.
14177         (COMPOSITION_OK): New macro.
14178         (detect_coding_iso2022): Use it if an escape sequence for
14179         composition is found.
14180         (coding_restore_composition): Adjust the number of composition
14181         components if it is not sane.
14183 2003-03-06  Juanma Barranquero  <lektu@terra.es>
14185         * w32term.h (struct w32_display_info): Add xrdb member to support
14186         passing resources via -xrm on Windows.
14188         * w32term.c (w32_make_rdb): New function.
14189         (w32_term_init): Use it to initialize xrdb member of w32_display_info
14190         struct.  Delete leftover code.
14192         * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
14193         for resources passed on the command line.
14195         * w32reg.c (w32_get_rdb_resource): New function.
14196         (x_get_string_resource): Use it, so resources passed with -xrm
14197         supercede the ones in the registry.
14199 2003-03-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14201         * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
14202         instead of x_top_window_to_frame.
14204 2003-03-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14206         * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
14207         when restarting Emacs.
14209 2003-03-03  Richard M. Stallman  <rms@gnu.org>
14211         * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
14212         to run kill-buffer-query-functions.
14213         (Qkill_buffer_query_functions): New var.
14214         (syms_of_buffer): Init and staticpro it.
14216 2003-03-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14218         * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
14220 2003-02-25  Kim F. Storm  <storm@cua.dk>
14222         * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
14223         If centering point failed to make whole line visible and vscroll
14224         is non-zero, disable vscroll and try centering point again.
14226         * lread.c (read1): Accept `single space' syntax like (? x).
14228 2003-02-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14230         * keyboard.c (cancel_hourglass_unwind): Surround with
14231         #ifdef HAVE_X_WINDOWS
14233 2003-02-25  Kenichi Handa  <handa@m17n.org>
14235         * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
14236         process only when "subprocesses" is defined.
14238 2003-02-24  Stefan Monnier  <monnier@cs.yale.edu>
14240         * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
14242 2003-02-24  Juanma Barranquero  <lektu@terra.es>
14244         * callint.c (fix_command): Declare as static void and move before
14245         Fcall_interactively.
14247         * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
14248         (syms_of_xdisp): Don't initialize Qwhen.
14250 2003-02-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14252         * keyboard.c (cancel_hourglass_unwind): New function.
14253         (command_loop_1): Cancel hourglass with unwind-protect.
14255 2003-02-23  Richard M. Stallman  <rms@gnu.org>
14257         * callint.c (fix_command): New subroutine, from Fcall_interactively.
14258         Detect (when ... (region-beginning)) etc.
14259         (Fcall_interactively): Call fix_command.
14260         (Qif, Qwhen): New variables.
14261         (syms_of_callint): Init and staticpro them.
14263         * regex.c (print_partial_compiled_pattern): Output to stderr.
14265 2003-02-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
14267         * dired.c (directory_files_internal): Don't expand directory.
14268         (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
14269         instead.  From Lars Hansen <larsh@math.ku.dk>.
14271 2003-02-22  Stefan Monnier  <monnier@cs.yale.edu>
14273         * fns.c (string_to_multibyte): Remove unused var i.
14274         (Flanginfo): Fix int/Lisp_Object mixup.
14275         (void_call2): New fun.
14276         (Fmap_char_table): Use it in place of call2.
14278         * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
14280         * macros.c (Fstart_kbd_macro): Remove redundant assignment.
14282         * keymap.c (copy_keymap_1): Make it static.
14284         * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
14286 2003-02-22  David Ponce  <david@dponce.com>
14288         * lread.c (Fload): Don't check STRING_MULTIBYTE.
14290 2003-02-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14292         * process.h: Removed subtty field from struct Lisp_Process.
14294         * process.c (create_process): Remove setting of subtty.
14295         (emacs_get_tty_pgrp): New function.
14296         (Fprocess_running_child_p, process_send_signal):
14297         Call emacs_get_tty_pgrp instead of ioctl.
14298         (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
14300 2003-02-21  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
14302         * keymap.c (Fdefine_key): Doc fix.
14304 2003-02-21  Juanma Barranquero  <lektu@terra.es>
14306         Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
14308         * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
14309         POLLING_PROBLEM_IN_SELECT.
14311         * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
14312         Delete #undef of POLLING_PROBLEM_IN_SELECT.
14314         * s/hpux10-20.h: New file.
14316         * process.c (wait_reading_process_input):
14317         Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
14319 2003-02-20  Kenichi Handa  <handa@m17n.org>
14321         * fontset.c (check_fontset_name): If NAME is nil, return the
14322         default fontset.
14323         (override_font_info): New function.
14324         (Fset_fontset_font): Document that NAME nil means the default fontset.
14325         (Ffontset_info): If FONTSET is not the default fontset, merge
14326         FONTSET onto the copy of the default fontset, and work on that
14327         copy.  Document that NAME nil means the default fontset.
14328         (Ffontset_font): Document that NAME nil means the default fontset.
14330         * process.c (setup_process_coding_systems): If the process's
14331         in/out descriptor is -1, do nothing.
14333 2003-02-19  Andreas Schwab  <schwab@suse.de>
14335         * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
14336         Add prototypes.
14338 2003-02-19  Kenichi Handa  <handa@m17n.org>
14340         * xfaces.c (try_alternative_families): Try all scalable fonts if
14341         Vscalable_fonts_allowed is not Qt.
14343 2003-02-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14345         * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
14347 2003-02-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14349         * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
14350         names.
14352         * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
14353         (sorted_font_list): Move allocation of struct font_name to
14354         x_face_list_fonts.
14355         (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
14356         (Fx_list_fonts): Set maxnames to -1 to get all font names.
14358 2003-02-18  Kim F. Storm  <storm@cua.dk>
14360         * lread.c (read1): Fix last change.
14361         "`" is not always special.  Allow "?" after a character constant.
14363 2003-02-18  Andrew Choi  <akochoi@shaw.ca>
14365         * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
14367 2003-02-18  Andreas Schwab  <schwab@suse.de>
14369         * window.c (window_scroll_pixel_based): Move outside a
14370         multi-glyph character before setting new window start.
14372         * xdisp.c (in_display_vector_p): New function.
14373         * dispextern.h (in_display_vector_p): Declare.
14375 2003-02-18  Kim F. Storm  <storm@cua.dk>
14377         * lread.c (read1): Fix and relax read syntax.
14378         Recognize "[", ";", "#", and "?" after a dotted-pair dot.
14379         Only recognize "," after dotted-pair dot if inside backquote.
14380         Never include "`" or "," (inside backquote) in a symbol.
14381         Allow dotted-pair dot after a character constant.
14382         Allow "`" and "," (inside backquote) after a character constant.
14384 2003-02-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14386         * gtkutil.c (xg_tool_bar_expose_callback): New function.
14387         (xg_create_tool_bar): Force style of tool bar to be horizontal with
14388         icons.  Set name of tool bar to emacs-toolbar.
14389         (update_frame_tool_bar): Connect expose event to
14390         xg_tool_bar_expose_callback.
14392 2003-02-17  Richard M. Stallman  <rms@gnu.org>
14394         * keyboard.c (this_command_key_count_reset): New variable.
14395         Initiatize to 0 where this_command_key_count is set.
14396         (read_char): Save and restore this_command_key_count_reset
14397         around input method code.
14398         (read_char): If this_command_key_count_reset, echo reread commands.
14399         (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
14401 2003-02-17  Kenichi Handa  <handa@m17n.org>
14403         * fns.c (string_to_multibyte): Always return a multibyte string.
14405 2003-02-16  Jason Rumney  <jasonr@gnu.org>
14407         * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
14408         Negative max_fonts parameter means list all.
14410 2003-02-14  Dave Love  <fx@gnu.org>
14412         * fns.c (Flanginfo): Doc fix.
14414 2003-02-13  Kim F. Storm  <storm@cua.dk>
14416         * lread.c (read_escape): Interpret \s as a SPACE character, except
14417         for \s-X in a character constant which still is the super modifier.
14418         (read1): Signal an `invalid read syntax' error if a character
14419         constant is immediately followed by a digit or symbol character.
14421         * search.c (Fmatch_data): Doc fix.  Explicitly state that
14422         match-data is undefined if last search failed.
14424         * keymap.c (Fcommand_remapping): Rename from Fremap_command.
14425         All uses changed.
14427 2003-02-12  Juanma Barranquero  <lektu@terra.es>
14429         * eval.c (Fdefmacro): Fix typo.
14431 2003-02-12  Kim F. Storm  <storm@cua.dk>
14433         * macros.c (Fstart_kbd_macro): If appending, and last keyboard
14434         macro is a string, convert meta modifiers in string when copying
14435         the string into a vector.
14437 2003-02-11  Kim F. Storm  <storm@cua.dk>
14439         * keymap.c (Fremap_command): Return nil if arg is not a symbol.
14441 2003-02-11  Kenichi Handa  <handa@m17n.org>
14443         * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
14445 2003-02-10  Kim F. Storm  <storm@cua.dk>
14447         * process.c: Doc fixes.
14448         (syms_of_process): Add `:' prefix to QCfilter_multibyte.
14450 2003-02-10  Kenichi Handa  <handa@m17n.org>
14452         * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
14454         * process.c (QCfilter_multibyte): New variable.
14455         (setup_process_coding_systems): New function.
14456         (Fset_process_buffer, Fset_process_filter):
14457         Call setup_process_coding_systems.
14458         (Fstart_process): Initialize the member `filter_multibyte' of
14459         struct Lisp_Process.
14460         (create_process): Call setup_process_coding_systems.
14461         (Fmake_network_process): New keyward `:filter-multibyte'.
14462         Initialize the member `filter_multibyte' of struct Lisp_Process.
14463         Call setup_process_coding_systems.
14464         (server_accept_connection): Call setup_process_coding_systems.
14465         (read_process_output): If the process has a filter, decide the
14466         multibyteness of a string to given to the filter by
14467         `filter_multibyte' member of the process.  If the process doesn't
14468         have a filter and the result of conversion is unibyte, use
14469         Fstring_to_multibyte (not Fstring_make_multibyte) to get the
14470         multibyte form.
14471         (Fset_process_coding_system): Call setup_process_coding_systems.
14472         (Fset_process_filter_multibyte): New function.
14473         (Fprocess_filter_multibyte_p): New function.
14474         (syms_of_process): Intern and staticpro QCfilter_multibyte.
14475         Defsubr Sset_process_filter_multibyte and
14476         Sprocess_filter_multibyte_p.
14478         * process.h (struct Lisp_Process): New member filter_multibyte.
14480         * lisp.h (setup_process_coding_systems): Add prototype.
14482         * buffer.c (Fset_buffer_multibyte): If the current buffer has a
14483         process, update coding systems for the process.
14485 2003-02-09  Kenichi Handa  <handa@m17n.org>
14487         * fns.c (string_to_multibyte): New function.
14488         (Fstring_to_multibyte): New function.
14489         (syms_of_fns): Defsubr it.
14491 2003-02-08  Andreas Schwab  <schwab@suse.de>
14493         * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
14494         instead of the substitution.
14496 2003-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14498         * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
14500         * xmenu.c (menu_position_func): Adjust menu popup position so that
14501         the menu is fully visible.
14503 2003-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14505         * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
14506         (x_make_frame_invisible, x_wm_set_icon_position):
14507         Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
14509         * xfns.c (x_set_name, x_set_title): Ditto.
14511 2003-02-04  Richard M. Stallman  <rms@gnu.org>
14513         * keyboard.c (echo_now): Update before_command_echo_length.
14514         (Freset_this_command_lengths): Reset this_command_key_count etc.
14515         immediately rather than arranging to do it later.
14516         (before_command_key_count_1, before_command_echo_length_1)
14517         (before_command_restore_flag): Vars deleted.
14518         (add_command_key): Don't handle before_command_restore_flag.
14519         (read_char, record_menu_key): Don't update before_command_key_count or
14520         before_command_echo_length.
14521         (read_char): Don't handle before_command_restore_flag.
14523         * keyboard.c (command_loop_1): Don't call adjust_point_for_property
14524         in direct-output clauses if it wouldn't be called in the ordinary case.
14526 2003-02-04  Kim F. Storm  <storm@cua.dk>
14528         * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
14530 2003-02-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14532         * gtkutil.c (remove_from_container): Copying list is not needed.
14533         (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
14534         (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
14535         on list returned from gtk_container_get_children to avoid memory leak.
14537 2003-02-01  Jason Rumney  <jasonr@gnu.org>
14539         * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
14540         local malloc.
14541         [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
14542         definitions in xpm.h.
14543         (init_xpm_functions): New function.
14544         (xpm_load): Sync with xfns.c.  Adapt for Windows version of libXpm.
14545         (init_external_image_libraries): Try to load libXpm.dll.
14547         * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
14548         timestamp.
14550 2003-01-31  Dave Love  <fx@gnu.org>
14552         * syntax.c (Fskip_chars_forward)
14553         (open-paren-in-column-0-is-defun-start): Doc fix.
14555 2003-01-31  Joe Buehler  <jhpb@draco.hekimian.com>
14557         * fileio.c: Support // at start of name for Cygwin (just added proper
14558         preprocessor tests).
14560         * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
14562         * Makefile.in: Use @EXEEXT@ for Cygwin.
14564         * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
14566         * s/cygwin.h: Added for Cygwin port.
14568 2003-01-31  Juanma Barranquero  <lektu@terra.es>
14570         * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
14571         when including gif_lib.h.
14572         (init_gif_functions, init_tiff_functions): New functions.
14573         (gif_load, tiff_load): Sync with xfns.c version.  Adjust colors for
14574         Windows.  Disable color table lookups.  Call library functions
14575         through pointers determined at runtime.
14576         (init_external_image_libraries): Try to load libungif.dll and
14577         libtiff.dll.
14579 2003-01-31  Kenichi Handa  <handa@m17n.org>
14581         * xdisp.c (SKIP_GLYPHS): New macro.
14582         (set_cursor_from_row): Skip all glyphs that comes from overlay string.
14584 2003-01-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14586         * gtkutil.c (free_frame_tool_bar): Remove debug printf.
14588 2003-01-30  Dave Love  <fx@gnu.org>
14590         * alloc.c (Vgc_elapsed, gcs_done): New variables.
14591         (Fgarbage_collect): Use them.
14592         (init_alloc, syms_of_alloc): Set them up.
14594 2003-01-30  Juanma Barranquero  <lektu@terra.es>
14596         * w32fns.c (init_external_image_libraries): Add missing operator.
14598 2003-01-29  Jason Rumney  <jasonr@gnu.org>
14600         * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
14601         an alternative name for jpeg.dll.
14603 2003-01-29  Kenichi Handa  <handa@m17n.org>
14605         * xdisp.c (set_cursor_from_row): Pay attention to string display
14606         properties.
14608 2003-01-28  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
14610         * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
14611         <escape>.
14612         (keycode_to_xkeysym_table): Reformat and add more comments.
14613         (XTread_socket): Drop special case for backspace.
14615 2003-01-28  Andrew Choi  <akochoi@shaw.ca>
14617         * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
14618         values in old-style RGB specs.
14620 2003-01-27  Juanma Barranquero  <lektu@terra.es>
14622         * w32fns.c (init_external_image_libraries): Try alternate names for the
14623         jpeg dll.
14625 2003-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14627         * gtkutil.c (create_dialog, xg_separator_p)
14628         (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
14629         before calling strcmp or strlen.
14631 2003-01-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14633         * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
14634         and handle image load failure.
14636 2003-01-26  Jason Rumney  <jasonr@gnu.org>
14638         * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
14639         New functions.
14640         (jpeg_load): Sync with xfns.c version.  Adjust colors for Windows.
14641         Disable color table lookups.  Call jpeg library functions
14642         through pointers determined at runtime.
14643         (init_external_image_libraries): Try to load jpeg.dll.
14645 2003-01-25  Richard M. Stallman  <rms@gnu.org>
14647         * lisp.h: Declare format2 instead of format1.
14649         * fileio.c (barf_or_query_if_file_exists):
14650         Call format2 instead of format1.
14652         * editfns.c (format2): New function, replaces format1
14653         but takes exactly two Lisp Objects as format args.
14655         * buffer.c (Fkill_buffer): Call format2 instead of format1.
14657 2003-01-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14659         * xterm.h: Change to return value of x_dispatch_event to int.
14661         * xterm.c (x_filter_event): New function.
14662         (event_handler_gdk, XTread_socket): Call x_filter_event.
14663         (x_dispatch_event): Change to return value of finish.
14664         (event_handler_gdk): Use return value from x_dispatch_event.
14666         * xfns.c (x_window): Call create_frame_xic for GTK version to
14667         initialize input methods.
14669         * gtkutil.h: Add (void) prototypes.
14671         * gtkutil.c (create_menus): Remove code that puts the help menu to
14672         the right.
14674 2003-01-25  Jason Rumney  <jasonr@gnu.org>
14676         * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
14677         [HAVE_PNG]: Sync with xfns.c version.
14678         (png_load): Adjust colors for Windows.  Use Windows
14679         bitmaps.  Disable color table lookups.
14680         (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
14681         (init_png_functions): New function.
14682         (png_read_from_memory, png_load): Call png library functions
14683         through pointers determined at runtime.
14684         (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
14685         (init_external_image_libraries): New function.
14686         (init_xfns): Call it.
14688 2003-01-24  Andreas Schwab  <schwab@suse.de>
14690         * minibuf.c (Fminibuffer_message): Verify type of parameter.
14692 2003-01-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14694         * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
14695         of static initializer.
14697 2003-01-24  Dave Love  <fx@gnu.org>
14699         * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
14700         architectures.
14702         * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
14703         Use __alignof__.
14705 2003-01-24  Kenichi Handa  <handa@m17n.org>
14707         * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
14708         It it is nonzero, don't pretend that an invisible area doesn't exist.
14709         (command_loop_1): Call adjust_point_for_property with proper
14710         second arg.
14712 2003-01-22  Jason Rumney  <jasonr@gnu.org>
14714         Sync changes with xterm.c and xfns.c.
14716         * w32term.c (x_draw_glyph_string_foreground)
14717         (x_draw_composite_glyph_string_foreground): Implement overstriking.
14719         * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
14720         phys_cursor's hpos is overwritten.  This is still not completely
14721         correct, as it doesn't really make sense to use hpos at all to
14722         get the cursor glyph (as that is relative to the width of the
14723         characters on the line, which may have changed during the update).
14725         * w32term.c (notice_overwritten_cursor): Handle the special case
14726         of the cursor being in the first blank non-text line at the
14727         end of a window.
14729         * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14730         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14731         Compute from the x position returned by x_draw_glyphs.
14733         (x_display_and_set_cursor): Don't set phys_cursor_width here,
14734         except for NO_CURSOR and system caret, to make phys_cursor_width
14735         contain what its name suggests.
14736         (notice_overwritten_cursor): Consider the cursor image erased if
14737         the output area intersects the cursor image in y-direction.
14739         * w32term.c (note_mode_line_or_margin_highlight): Rename from
14740         note_mode_line_highlight and extend.
14742         * w32term.c (last_window): New variable.
14743         (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
14744         (note_mouse_movement): Remove reimplemented code in #if 0.
14746         * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
14747         not update_mode_lines, and always set it to 1.
14749 2003-01-21  Jason Rumney  <jasonr@gnu.org>
14751         * w32fns.c (IDC_HAND): Define it if system headers don't.
14753 2003-01-21  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
14755         * w32term.h (struct w32_output): New member hand_cursor.
14756         (WM_EMACS_SETCURSOR): New message definition.
14758         * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
14759         function w32_define_cursor.
14760         (note_mouse_highlight): Initialize, setup cursor accoding to mouse
14761         position, change member name output_data.x to output_data.w32 and
14762         add function w32_define_cursor.
14763         (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
14764         and change member name output_data.x to output_data.w32.
14765         (w32_initialize_display_info):
14766         Setup dpyinfo->vertical_scroll_bar_cursor.
14768         * w32fns.c (Vx_hand_shape): New variable.
14769         (w32_wnd_proc): Add message entries for WM_SETCURSOR and
14770         WM_EMACS_SETCURSOR.
14771         (x-create-frame): Setup Cursor types.
14773 2003-01-21  David Ponce  <david@dponce.com>
14775         * w32term.c (w32_encode_char): For DIM=1 charset, set
14776         ccl->reg[2] to -1 before calling ccl_driver.
14777         (Sync. with xterm.c x_encode_char change by Kenichi Handa
14778         <handa@m17n.org> on 2002-09-30.)
14779         (w32_draw_relief_rect): Declare all args.
14780         (w32_define_cursor): New.
14782         * w32fns.c (w32_load_cursor): New function.
14783         (w32_init_class): Use it.
14784         (x_put_x_image): Declare all args.
14786 2003-01-21  Richard Dawe  <rich@phekda.freeserve.co.uk>
14788         * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
14790 2003-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14792         * gtkutil.c: Must include stdio.h before termhooks.h
14794 2003-01-21  Dave Love  <fx@gnu.org>
14796         * alloc.c (Fgc_status): Print zombie list.
14797         (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
14798         Fix assignment of zombies.
14799         (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
14800         Don't take car of non-cons.
14802         * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14804         * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
14806 2003-01-20  David Ponce  <david@dponce.com>
14808         * w32menu.c (digest_single_submenu): Declare all args.
14810         Sync with 2002-12-23  Richard M. Stallman  <rms@gnu.org>
14811         changes in xmenu.c:
14813         (parse_single_submenu): Use individual keymap's prompt
14814         string as pane name, if there is one.
14815         (set_frame_menubar): Save menu_items_n_panes from each call to
14816         parse_single_submenu and use it when calling digest_single_submenu.
14818 2003-01-20  Steven Tamm  <steventamm@mac.com>
14820         * macterm.c (XTread_socket): Check for valid, visible window
14821         before sending a scroll-wheel event.
14823 2003-01-20  Richard M. Stallman  <rms@gnu.org>
14825         * xdisp.c (redisplay_window): If mini window's buffer is not
14826         a minibuffer, then redisplay it like other windows.
14828 2003-01-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14830         * gtkutil.c (xg_create_frame_widgets): Check if there is an
14831         external tool bar before setting tool bar height.
14833 2003-01-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14835         * xterm.c (handle_one_xevent): Surround popup_activated
14836         with #ifdef:s for non-toolkit version.
14838         * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
14839         (gtkutil.o): New file.
14840         (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
14841         (LIBW): Set to @GTK_LIBS@ if USE_GTK.
14843         * gtkutil.c: New file for GTK version.
14845         * gtkutil.h: New file for GTK version.
14847         * xterm.h: Add xt_or_gtk_widget.
14848         Include gtk files for USE_GTK.
14849         (struct x_output): Add toolbar_height.
14850         (struct x_output): Add GTK widgets and Gdk size_hints.
14851         (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
14852         (FRAME_OUTER_WINDOW): New macros for USE_GTK.
14853         (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
14855         * xterm.c: Include gtkutil.h for USE_GTK.
14856         (free_frame_menubar): Declare extern void for USE_GTK.
14857         (note_mouse_highlight): Check popup_activated for USE_GTK.
14858         (xt_action_hook): Don't compile if USE_GTK.
14859         (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
14860         (xg_scroll_callback): New function.
14861         (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
14862         (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
14863         for USE_GTK.
14864         (x_scroll_bar_create): Call xg_update_scrollbar_pos and
14865         xg_show_scroll_bar for USE_GTK.
14866         (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
14867         (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
14868         (event_handler_gdk): New function for USE_GTK.
14869         (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
14870         (handle_one_xevent): Make sure widget is mapped before
14871         calling x_real_positions for USE_GTK.
14872         (XTread_socket): Add GTK event loop for USE_GTK.
14873         (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
14874         (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
14875         (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
14876         (x_iconify_frame): Add code for USE_GTK.
14877         (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
14878         (x_wm_set_size_hint): Only compile if not USE_GTK.  GTK version
14879         is in gtkutil.c.
14880         (x_term_init): Add initialization for GTK.
14881         (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
14883         * xmenu.c: Include gtkutil.h for USE_GTK.
14884         (Fx_popup_menu): Use current position if x and y is NIL.
14885         (single_menu_item, single_menu_item, Fx_popup_dialog):
14886         Check for USE_GTK.
14887         (popup_widget_loop): New function for USE_GTK.
14888         (x_activate_menubar): Add code for USE_GTK.
14889         (popup_activate_callback, popup_deactivate_callback)
14890         (menu_highlight_callback, menubar_selection_callback):
14891         Add USE_GTK versions.
14892         (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
14893         (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
14894         (free_frame_menubar): Only compile if not USE_GTK.  GTK version
14895         is in gtkutil.c.
14896         (popup_selection_callback): New version for USE_GTK.
14897         (create_and_show_popup_menu): New fuction, one USE_GTK version and
14898         one USE_X_TOOLKIT version.
14899         (xmenu_show): Call create_and_show_popup_menu.
14900         (dialog_selection_callback): New version for USE_GTK.
14901         (create_and_show_dialog): New fuction, one USE_GTK version and
14902         one USE_X_TOOLKIT version.
14903         (xdialog_show): Call create_and_show_dialog.
14905         * xfns.c: Include gtkutil for USE_GTK.
14906         (x_window_to_frame, x_any_window_to_frame)
14907         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
14908         (x_top_window_to_frame): Add code for USE_GTK.
14909         (x_set_background_color): Call xg_set_background_color for GTK.
14910         (x_set_menu_bar_lines): Check for USE_GTK.
14911         (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
14912         (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
14913         (x_window): Call xg_create_frame_widgets for USE_GTK.
14914         (Fx_create_frame): Check for USE_GTK
14915         (Fx_file_dialog): New implementation for USE_GTK.
14917         * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
14918         (update_menu_bar): Add check for USE_GTK.
14919         (update_tool_bar): Add check for USE_GTK and external tool bar.
14920         (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
14921         (redisplay_internal): Add check for USE_GTK and popup_activated.
14922         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
14923         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
14924         (display_menu_bar): Add check for USE_GTK
14926         * lisp.h (Vx_resource_name): Declare extern.
14928         * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
14929         for USE_GTK.
14930         (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
14932         * frame.h (struct frame): Add external_tool_bar.  Check for USE_GTK.
14933         (FRAME_EXTERNAL_TOOL_BAR): New macro.
14934         (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
14936         * fileio.c (Fread_file_name): Add check for USE_GTK.
14938         * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
14939         Add check for USE_GTK.
14941         * config.in: Added HAVE_GTK
14943         * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
14945 2003-01-18  Stefan Monnier  <monnier@cs.yale.edu>
14947         * charset.h (Funibyte_char_to_multibyte): Export.
14949 2003-01-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14951         * xmenu.c (mouse_position_for_popup): New function.
14952         (Fx_popup_menu): Call mouse_position_for_popup for X and
14953         mouse_position_hook for others.
14955 2003-01-17  Kim F. Storm  <storm@cua.dk>
14957         * editfns.c (Finsert): Mention `string-make-multibyte' and
14958         `string-as-multibyte' in doc string.
14960 2003-01-17  Kenichi Handa  <handa@m17n.org>
14962         * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
14964         * editfns.c (Fformat): Convert an unibyte char argument that is
14965         formatted by "%c" to multibyte if the total result must be a
14966         multibyte string.
14968 2003-01-16  Kim F. Storm  <storm@cua.dk>
14970         * process.c (set-process-filter): Document unibyte/multibyte-ness
14971         of string argument.
14973 2003-01-16  Kenichi Handa  <handa@m17n.org>
14975         * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
14977         * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
14978         (re_search_2): Likewise.
14980 2003-01-15  Kenichi Handa  <handa@m17n.org>
14982         * xdisp.c (message_dolog): Fix bug of the case that *Message*
14983         buffer is unibyte.
14985 2003-01-15  Francesco Potort\e,Al\e(B  <pot@gnu.org>
14987         * fns.c (Fsubstring): Clarify doc string.
14989         * textprop.c (Ftext_properties_at, Fnext_char_property_change)
14990         (Fprevious_char_property_change)
14991         (Fnext_single_char_property_change)
14992         (Fprevious_single_char_property_change, Fnext_property_change)
14993         (Fnext_single_property_change, Fprevious_property_change)
14994         (Fprevious_single_property_change, Fadd_text_properties)
14995         (Fput_text_property, Fset_text_properties)
14996         (Fremove_text_properties, Fremove_list_of_text_properties)
14997         (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
14999 2003-01-14  Kim F. Storm  <storm@cua.dk>
15001         * process.h (struct Lisp_Process): New member plist replaces old
15002         member private_vars.  All uses changed.
15004         * process.c: Reworked 2003-01-12 change -- call a plist a plist!
15005         (QCplist): Rename from QCvars.  Change all uses.
15006         (Fprocess_plist): Replaces Fprocess_variable.  Simplified.
15007         (Fset_process_plist): Replaces Fset_process_variable.  Simplify.
15008         (syms_of_process): Intern, staticpro, defsubr these.
15009         (Fmake_network_process): Describe :plist arg.  Remove :vars arg.
15011 2003-01-14  Francesco Potort\e,Al\e(B  <pot@gnu.org>
15013         * m/delta.h: Remove (obsolete).
15015 2003-01-13  Francesco Potort\e,Al\e(B  <pot@gnu.org>
15017         * fileio.c (Fdelete_directory, Fdelete_file): Document the
15018         behaviour in front of symlinks.
15019         (Fdelete_file): Raise an error on directories.
15021 2003-01-13  Dave Love  <fx@gnu.org>
15023         * fns.c (Freverse): Use QUIT.
15025 2003-01-13  Richard M. Stallman  <rms@gnu.org>
15027         * minibuf.c (minibuffer_completion_contents):
15028         Error if point is inside prompt.
15030         * keyboard.c (command_loop_1): Don't redisplay directly
15031         if there's a post-command-hook.
15033         * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
15034         (Fdo_auto_save): Add gcpros around Ffile_name_directory.
15036 2003-01-12  Kim F. Storm  <storm@cua.dk>
15038         * process.h (struct Lisp_Process): New member private_vars.
15040         * process.c (QCvars): New variable.
15041         (syms_of_process): Intern and staticpro it.
15042         (Fset_process_contact): Removed function.
15043         (Fprocess_variable, Fset_process_variable): New functions.
15044         (syms_of_process): Defsubr them.
15045         (Fstart_process): Initialize private_vars plist to nil.
15046         (Fmake_network_process): New arg :vars to setup the private
15047         variables for new network process.
15048         (server_accept_connection): Copy server's private variables to
15049         client process.
15051         * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
15052         crashes).  Code rewritten and simplified.  Now directly aligns the
15053         pointer and recalculates pure_bytes_used, rather than aligning the
15054         size and adjusting the pointer.
15056 2003-01-11  Kim F. Storm  <storm@cua.dk>
15058         * process.c (Fset_process_contact): New function.
15059         (syms_of_process): defsubr it.
15060         (make-network-process): Update doc.
15062 2003-01-10  Andreas Schwab  <schwab@suse.de>
15064         * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
15065         Reported by Berthold Gunreben <b.gunreben@web.de>.
15067 2003-01-10  Dave Love  <fx@gnu.org>
15069         * composite.c (syms_of_composite): Make composition_hash_table weak.
15071 2003-01-09  Kim F. Storm  <storm@cua.dk>
15073         * process.c (Fmake_network_process): Convert new port number
15074         to host byte order for `:service t' case.  From Mario Lang.
15076 2003-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15078         * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
15079         instead of XtAppProcessEvent.
15081         * xterm.c (handle_one_xevent): New function.
15082         (x_dispatch_event): New function.
15083         (XTread_socket): Call handle_one_xevent.
15085         * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
15087         * xmenu.c (Fx_popup_menu): If popping up at mouse position,
15088         call XQueryPointer to get coordinates.
15089         (popup_get_selection): Do not set popup_activated_flag to zero,
15090         let popup_deactivate_callback do that.  Needed for Motif.
15091         Call x_dispatch_event instead of XtDispatchEvent.
15092         (xmenu_show): Calculate root coordinate from frame top/left position.
15094 2003-01-08  Kim F. Storm  <storm@cua.dk>
15096         * process.c (server_accept_connection): Fix recording of new
15097         connection's local address in :local property of contact info.
15098         (Fmake_network_process): Record local network address for new
15099         client processes in :local property of contact info.
15100         (format-network-address): Add arg OMIT-PORT.  Change callers.
15102 2003-01-07  Dave Love  <fx@gnu.org>
15104         * Makefile.in (fns.o): Depend on coding.h.
15106 2003-01-07  Markus Rost  <rost@math.ohio-state.edu>
15108         * minibuf.c (Fread_variable): Doc fix.
15110         * eval.c (Fuser_variable_p): Doc change.  For custom variables,
15111         use the same test as for custom-variable-p.
15113 2003-01-05  Richard M. Stallman  <rms@gnu.org>
15115         * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
15116         Count LAST_LINE_MISFIT in scroll margin for end of window.
15117         Move label too_near_end before setting SCROLL_MARGIN_POS.
15118         Set LAST_LINE_MISFIT before jumping there.
15120         * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
15121         scroll_conservatively case.  If scrolling that much doesn't change
15122         STARTP, move it down one line.
15124         * xdisp.c (redisplay_window): Pass last_line_misfit arg to
15125         try_scrolling.  Make it 1 after make_cursor_line_fully_visible fails.
15127         * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
15128         selected frame.
15130         * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
15131         (syms_of_keymap): Staticpro them.
15132         (Fapropos_internal): Initialize them and clear them out.
15133         Don't GCPRO them.
15135         * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
15136         Doc fixes.
15138         * lisp.h: New misc type Lisp_Save_Value.
15139         (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
15140         (XSAVE_VALUE): New macro.
15141         (struct Lisp_Save_Value): New data type.
15142         (union Lisp_Misc): Add u_save_value alternative.
15143         (make_save_value): Declare.
15145         * alloc.c (make_save_value): New function.
15147         * xterm.c (x_catch_errors): Save dpy using make_save_value.
15148         (x_catch_errors_unwind): Call XSync.
15150 2003-01-01  Richard M. Stallman  <rms@gnu.org>
15152         * window.c (window_scroll_pixel_based): Partially undo last change.
15154         * keyboard.c (command_loop_1): Call adjust_point_for_property
15155         in direct action cases for Qforward_char and Qbackward_char.
15156         Set already_adjusted so it won't be done twice.
15158 2002-12-30  Richard Dawe  <rich@phekda.freeserve.co.uk>
15160         * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
15161         type definition of size_t.
15163 2003-01-02  Steven Tamm  <steventamm@mac.com>
15165         * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
15166         distinguish Carbon GUI builds from X11 builds on darwin.
15168 2002-12-30  Steven Tamm  <steventamm@mac.com>
15170         * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
15171         to default to t.
15173 2002-12-29  Francesco Potort\e,Al\e(B  <pot@gnu.org>
15175         * data.c (Fstring_to_number, Fminus): Better English in doc strings.
15177 2002-12-28  Steven Tamm  <steventamm@mac.com>
15179         * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
15180         allow building in a different directory than source.  Uses some
15181         GNU Make extensions, but there is no other make on Mac OS X.
15183 2002-12-26  Francesco Potort\e,Al\e(B  <pot@gnu.org>
15185         * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
15186         (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
15187         (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
15188         (Fstring_to_number): Mention the returned value in the doc strings.
15190 2002-12-23  Richard M. Stallman  <rms@gnu.org>
15192         * buffer.c (syms_of_buffer) <scroll-up-aggressively>
15193         <scroll-down-aggressively>: Doc fix.
15195         * xmenu.c (parse_single_submenu): Use individual keymap's prompt
15196         string as pane name, if there is one.
15197         (set_frame_menubar): Save menu_items_n_panes from each call to
15198         parse_single_submenu and use it when calling digest_single_submenu.
15200         * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
15201         Don't try to make last line fully visible if it is past end of window.
15203 2002-12-22  Steven Tamm  <steventamm@mac.com>
15205         * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
15206         (mac_menu_show): Add support for hierarchical popup menus.
15207         (add_menu_item): Remove indentation support.
15208         (fill_submenu, fill_menu): Create hierarchical menus
15209         instead of using indentation.
15211 2002-12-22  Richard M. Stallman  <rms@gnu.org>
15213         * xdisp.c (try_cursor_movement): Don't call try_window here.
15214         (redisplay_window): Never redisplay minibuffer when inactive.
15216         * window.c (select_window_1): Undo 9/21 change.
15218 2002-12-22  Steven Tamm  <steventamm@mac.com>
15220         * macterm.c (XTread_socket): Call KeyTranslate for control and
15221         meta to deal correctly shifted non-alpha characters, like C-S-5
15222         being treated like C-%.  Do not look for shift key to deal
15223         with masking off control-key with mac-reverse-ctrl-meta.
15225 2002-12-21  Richard M. Stallman  <rms@gnu.org>
15227         * xmenu.c (popup_get_selection): Now static.  New arg DO_TIMERS.
15228         If it is non-nil, run timers.  Use an unwind-protect to requeue
15229         the events that were read ahead.
15230         (popup_get_selection_unwind): New subroutine.
15231         (popup_get_selection_queue): File-scope variable now holds that queue.
15232         (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
15233         (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
15234         Use an unwind-protect to pop down the dialog box.
15235         (xdialog_show_unwind): New subroutine implements that.
15237         * xdisp.c (row_containing_pos): Change exit test using last_y.
15238         (try_window_id): Abort if row_containing_pos returns null.
15240         * lread.c (load_error_handler): New function.
15241         (Fload): Handle errors in Fsubstitute_in_file_name.
15242         Don't expect Fsignal to return.
15244         * eval.c: Errors and throws work right with interrupt blocking.
15245         (struct catchtag): New elt interrupt_input_blocked.
15246         (unwind_to_catch): Restore interrupt_input_blocked from saved value.
15247         (internal_catch, Fcondition_case, internal_condition_case)
15248         (internal_condition_case_1, internal_condition_case_2): Save it.
15249         (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
15251         * editfns.c (Fformat): Add parens.
15253         * dired.c (file_name_completion): Fix that change.
15254         Delete special quit-handling code; just use QUIT.
15256 2002-12-21  Tak Ota  <Takaaki.Ota@am.sony.com>
15258         * dired.c (file_name_completion): Close directory on error
15259         just as in directory_files_internal.
15261 2002-12-19  David Kastrup  <David.Kastrup@t-online.de>
15263         * window.c (Fset_window_configuration): Set old_point to correct
15264         value when new_current_buffer == current_buffer.
15266 2002-12-17  Ben Key  <bkey1@tampabay.rr.com>
15268         Revisited my earlier fix for the following entry in etc/PROBLEMS:
15269         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
15270         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
15272         These changes were in part based upon suggestions made by Peter
15273         'Luna' Runestig [peter@runestig.com].
15275         * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
15276         (g_b_init_get_token_information, g_b_init_lookup_account_sid)
15277         (g_b_init_get_sid_identifier_authority ): Add several static
15278         global variables.
15280         * w32.c (globals_of_w32): New function.  Used to initialize those
15281         global variables that must always be initialized on startup even
15282         when the global variable initialized is non zero.  Its primary
15283         purpose at this time is to set the global variables
15284         g_b_init_is_windows_9x, g_b_init_open_process_token,
15285         g_b_init_get_token_information, g_b_init_lookup_account_sid, and
15286         g_b_init_get_sid_identifier_authority to 0 on startup.
15287         Called from main.
15289         * w32.c (is_windows_9x): Perform initialization only if
15290         g_b_init_is_windows_9x is equal to 0.  On initialization set
15291         g_b_init_is_windows_9x equal to 1.
15293         * w32.c (open_process_token): Perform initialization only if
15294         g_b_init_open_process_token is equal to 0.  On initialization set
15295         g_b_init_open_process_token equal to 1.
15297         * w32.c (get_token_information): Perform initialization only if
15298         g_b_init_get_token_information is equal to 0.  On initialization
15299         set g_b_init_get_token_information equal to 1.
15301         * w32.c (lookup_account_sid): Perform initialization only if
15302         g_b_init_lookup_account_sid is equal to 0.  On initialization
15303         set g_b_init_lookup_account_sid equal to 1.
15305         * w32.c (get_sid_identifier_authority): Perform initialization
15306         only if g_b_init_get_sid_identifier_authority is equal to 0.
15307         On initialization set g_b_init_get_sid_identifier_authority equal to 1.
15309         * w32fns.c (globals_of_w32fns): New function.  Used to initialize
15310         those global variables that must always be initialized on startup
15311         even when the global variable initialized is non zero.
15312         Its primary purpose at this time is to initialize the global variable
15313         track_mouse_event_fn.
15315         * w32fns.c (w32_wnd_proc): Remove initialization of
15316         track_mouse_event_fn from the handler for the WM_SETFOCUS message.
15318         * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
15320         * w32menu.c (globals_of_w32menu): New function.  Used to
15321         initialize those global variables that must always be initialized
15322         on startup even when the global variable initialized is non zero.
15323         Its primary purpose at this time is to initialize the global
15324         variables get_menu_item_info and set_menu_item_info.
15326         * w32menu.c (initialize_frame_menubar): Remove initialization of
15327         get_menu_item_info and set_menu_item_info.
15329         * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
15331         * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
15332         Declare them.
15334         * emacs.c (main): Call globals_of_w32 prior to calling
15335         init_environment if WINDOWSNT is defined.  Call globals_of_w32fns
15336         and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
15337         is defined.
15339         * w32term.c (x_update_window_begin): Fix Windows API error
15340         detected by BoundsChecker.  Test to determine if
15341         w32_system_caret_hwnd is NULL prior to attempting to use
15342         SendMessage to send the WM_EMACS_HIDE_CARET message to it.
15344         * w32term.c (x_update_window_end): Fix Windows API error
15345         detected by BoundsChecker.  Test to determine if
15346         w32_system_caret_hwnd is NULL prior to attempting to use
15347         SendMessage to send the WM_EMACS_SHOW_CARET message to it.
15349 2002-12-17  Kenichi Handa  <handa@m17n.org>
15351         * coding.c (coding_system_require_warning): New variable.
15352         (syms_of_coding): DEFVAR it.
15354         * coding.h (coding_system_require_warning): Extern it.
15356         * fileio.c (choose_write_coding_system): Even if
15357         Vcoding_system_for_write is non-nil, if
15358         coding_system_require_warning is nonzero, call
15359         Vselect_safe_coding_system_function.
15361 2002-12-17  Markus Rost  <rost@math.ohio-state.edu>
15363         * Makefile.in (lisp, shortlisp): Add cus-face and timer.
15364         (lisp): Add font-core.
15366 2002-12-13  Stefan Monnier  <monnier@cs.yale.edu>
15368         * textprop.c (text_read_only): New arg `propval'.
15369         (get_char_property_and_overlay): Remove unused var `next_overlay'.
15370         (verify_interval_modification): Use text_read_only's new arg.
15372 2002-12-13  Kenichi Handa  <handa@m17n.org>
15374         * coding.c (Funencodable_char_position): Set pend correctly.
15376 2002-12-12  Jason Rumney  <jasonr@gnu.org>
15378         * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
15379         (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
15380         Be more careful about when help_events are generated.
15382 2002-12-12  Steven Tamm  <steventamm@mac.com>
15384         * macterm.c (mac_check_for_quit_char): Correctly set the
15385         modifiers of the event to 0.
15386         * mac.c (sys_select): Duplicate rfds before calling select to
15387         ensure that rfds survive the while loop.
15389 2002-12-11  Kim F. Storm  <storm@cua.dk>
15391         * xdisp.c (try_window_id): Don't call set_cursor_from_row if
15392         row_containing_pos returned NULL.
15394 2002-12-10  Steven Tamm  <steventamm@mac.com>
15396         * mac.c (sys_read): Fix sys_read to not call select if IO is
15397         non-blocking.
15398         (sys_select): Fix sys_select to not use a timeout larger than
15399         the one given.
15401 2002-12-10  Juanma Barranquero  <lektu@terra.es>
15403         * editfns.c (Fformat): Use alloca, not _alloca.
15405 2002-12-09  Richard M. Stallman  <rms@gnu.org>
15407         * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
15408         as the last thing.
15410 2002-12-09  Dave Love  <fx@gnu.org>
15412         * s/sol2-8.h: Removed.  (Not necessary.)
15414 2002-12-09  Matthew Swift  <swift@alum.mit.edu>
15416         * editfns.c (Fformat): Handle precision in string conversion
15417         specifiers like libc functions do (ie, print at most that many
15418         characters).
15420 2002-12-08  Richard M. Stallman  <rms@gnu.org>
15422         * xdisp.c (row_containing_pos): Check more carefully
15423         whether charpos is really in the row before returning it.
15425 2002-12-07  Steven Tamm  <steventamm@mac.com>
15427         * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
15429         * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
15430         each stack frame.  This may change as it could be time consuming.
15432         * macterm.c (mac_check_for_quit_char, quit_char_comp)
15433         (init_quit_char_handler, mac_determine_quit_char_modifiers)
15434         (mac_initialize): Add code to check for pressing of quit_char
15435         in the OS event queue.
15437         * mac.c (sys_select): Call mac_check_for_quit_char every second
15438         while blocking on select.
15440         * mac.c (sys_read): Use sys_select to test for input first
15441         before calling read, to allow C-g to break.
15443 2002-12-07  Richard M. Stallman  <rms@gnu.org>
15445         * minibuf.c (Fcompleting_read): Doc fix.
15447         * lread.c (syms_of_lread) <load-history>: Doc fix.
15449         * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
15451         * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
15452         autoload.
15454         * data.c (Fdefalias): Record in load-history redefining an autoload.
15456         * alloca.c: Undo ifdef change accidentally made on 12-04.
15458 2002-12-06  Francesco Potorti`  <pot@gnu.org>
15460         * xfns.c (png_load): Avoid double gamma correction for PNG images.
15462 2002-12-04  Richard M. Stallman  <rms@gnu.org>
15464         * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
15466         * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
15468         * alloca.c: Don't use #error.
15470 2002-12-03  Dave Love  <fx@gnu.org>
15472         * buffer.c (Qucs_set_table_for_input): New.
15473         (Fget_buffer_create): Use it.
15474         (Qset_buffer_major_mode_hook): Deleted.
15475         (Fset_buffer_major_mode): Revert previous change.
15476         (init_buffer_once): Intern ucs-set-table-for-input.
15477         (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
15478         Add &Qucs_set_table_for_input.
15480 2002-12-03  Andreas Schwab  <schwab@suse.de>
15482         * callint.c (Fcall_interactively): Use next_event only if less
15483         than key_count.
15485 2002-12-02  Andrew Choi  <akochoi@shaw.ca>
15487         * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
15488         names to 255 characters.
15490         * macterm.c (XTread_socket): If all frames have been collapsed,
15491         expand the first one before handling drag-and-drop events.
15493         * s/darwin.h (GETPGRP_NO_ARG): Delete.  Replaced by GETPGRP_VOID,
15494         which is detected by autoconf.
15496 2002-12-01  Steven Tamm  <steventamm@mac.com>
15498         * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
15499         offset in two hints table to allow prebinding to be redone and
15500         allow the executable to be stripped.
15502 2002-11-29  Dave Love  <fx@gnu.org>
15504         * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
15505         already provided.
15507 2002-11-29  Richard M. Stallman  <rms@gnu.org>
15509         * xdisp.c (start_display): Check more intelligently for
15510         whether the line is continued.
15511         (move_it_vertically_backward): Clear it->continuation_lines_width.
15513 2002-11-28  Dave Love  <fx@gnu.org>
15515         * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
15516         * s/alliant.h, s/altos.h: Deleted.  (Unused/empty.)
15518 2002-11-27  Steven Tamm  <steventamm@mac.com>
15520         * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
15521         more descriptive error output from lread.c:Fload upon most require
15522         cycles during boostrapping.
15524 2002-11-27  Jason Rumney  <jasonr@gnu.org>
15526         * fileio.c (Finsert_file_contents): Give a more appropriate error
15527         for files bigger than 2Gb when off_t is 32 bit.
15529         * dired.c (Ffile_attributes): Don't return negative file sizes for
15530         files bigger than 2Gb when off_t is 32 bit.
15532 2002-11-27  Dave Love  <fx@gnu.org>
15534         * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15536         * systty.h: Don't conditionally define GETPGRP_NO_ARG.
15537         Test GETPGRP_VOID instead.
15538         [BSD_TERMIOS]: Remove definitions (never used).
15540         * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
15541         Don't define.
15542         (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
15544         * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
15546 2002-11-25  Jason Rumney  <jasonr@gnu.org>
15548         * w32.c (sys_write): Avoid non-blocking mode, which is not fully
15549         supported.
15551 2002-11-25  Dave Love  <fx@gnu.org>
15553         * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
15555         * Makefile.in (TEMACS_LDFLAGS): Update last change.
15557 2002-11-25  Andreas Schwab  <schwab@suse.de>
15559         * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
15561 2002-11-24  Steven Tamm  <steventamm@mac.com>
15563         * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
15564         determine the size of pointers alloced in unexed space instead
15565         of using possibly invalid emacs_zone pointers.  This fixes the
15566         binary incompatibility problems caused by updates to libSystem.B.
15568 2002-11-24  Richard M. Stallman  <rms@gnu.org>
15570         * search.c (Fstring_match): Doc fix.
15572         * callint.c (Fcall_interactively): If a command fails because
15573         `*' detects a read-only buffer, but RECORD_FLAG is set,
15574         record it anyway if the args don't actually do tty input.
15576 2002-11-22  Dave Love  <fx@gnu.org>
15578         * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
15580         * keyboard.c (interrupt_signal): Provide forward declaration.
15581         (kbd_buffer_store_event): Don't declare interrupt_signal.
15583         * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
15585 2002-11-21  Richard M. Stallman  <rms@gnu.org>
15587         * eval.c (interactive_p): Skip any number of bytecode
15588         and special form frames, in any order.
15590 2002-11-20  Jason Rumney  <jasonr@gnu.org>
15592         * w32fns.c (convert_mono_to_color_image): New function.
15593         (xbm_load, xbm_load_image): Use it when foreground or background
15594         is explicitly set.
15596 2002-11-19  Dave Love  <fx@gnu.org>
15598         * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
15600 2002-11-18  Jason Rumney  <jasonr@gnu.org>
15602         * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
15603         (XPutPixel): Swap blue and red.
15604         (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
15605         (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
15606         (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
15607         (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
15609 2002-11-18  Dave Love  <fx@gnu.org>
15611         * m/orion105.h (HAVE_ALLOCA): Don't define.
15613         * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
15615         * m/intel386.h: Don't include alloca.h or define alloca.
15617         * m/ia64.h: Don't include alloca.h, stdlib.h.  Don't declare
15618         malloc, realloc, calloc.
15620         * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
15621         (bcmp): Don't define.
15623         * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
15625         * m/amdahl.h: Don't define LIB_STANDARD.
15627         * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
15629         * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
15631         * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
15632         Don't include alloca.h.
15634         * s/aix3-2.h (HAVE_FSYNC): Don't define.
15636         * regex.c (_GNU_SOURCE): Don't define.
15638         * process.c (_GNU_SOURCE): Don't define.
15640         * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
15642 2002-11-18  Markus Rost  <rost@math.ohio-state.edu>
15644         * s/sol2-8.h: Include sol2-6.h.
15646 2002-11-18  Miles Bader  <miles@gnu.org>
15648         * dispextern.h (struct face): Add `overstrike' field.
15649         * xterm.c (x_draw_glyph_string_foreground)
15650         (x_draw_composite_glyph_string_foreground): Implement overstriking.
15651         * xfaces.c (load_face_font): Set `face->overstrike' based on
15652         result from choose_face_font.
15653         (best_matching_font, choose_face_font): Add `needs_overstrike'
15654         argument, and use it to return whether overstriking is desirable
15655         for this face/font combo.
15656         (set_font_frame_param: Pass new argument to choose_face_font.
15658 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
15660         This change is my fix for the following entry in etc/PROBLEMS:
15661         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
15662         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
15664         * w32.c: Added wrapper functions around the win32 API functions
15665         OpenProcessToken, GetTokenInformation, LookupAccountSid, and
15666         GetSidIdentifierAuthority.  These wrapper functions serve two
15667         purposes:
15668         1.  They ensure that the wrapped function can never be called
15669         when Emacs is running on an operating system on which they are
15670         not supported (Microsoft Windows 95 / 98 / ME).
15671         2.  They call the wrapped functions via function pointers rather
15672         than calling them directly.  This avoids taking advantage of the
15673         undocumented fact that although these functions are not supported
15674         in the 9x branch of Microsoft Windows, the functions do exist in
15675         the version of advapi32.dll that is found in the 9x branch of
15676         Microsoft Windows.
15678         * w32.c (init_user_info): Replace the calls to the win32 API
15679         functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
15680         and GetSidIdentifierAuthority with calls to the newly added
15681         wrapper functions.
15683         * w32.h: Added extern declarations for the following functions:
15684         syms_of_w32term, syms_of_w32fns, syms_of_w32select,
15685         syms_of_w32menu, and void syms_of_fontset.
15687         * w32fns.c (w32_wnd_proc): Add code to reinitialize the
15688         function pointer track_mouse_event_fn in the handler for the
15689         WM_SETFOCUS message.
15691         * w32menu.c (initialize_frame_menubar): Add code to
15692         reinitialize the function pointers set_menu_item_info and
15693         get_menu_item_info.
15695 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
15697         * sound.c: Added a partial implementation of play-sound-internal
15698         for Microsoft Windows.  Added various #ifdef / #else / #endif
15699         code blocks to separate the code that will compile under
15700         Microsoft Windows from the code that is specific to GNU/Linux.
15701         Moved several blocks of code around to make this separation of code
15702         into Windows compatible and GNU/Linux compatible code blocks easier.
15704         * makefile.w32-in: Include sound.c and link with WinMM.lib.
15706         * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
15707         added support for play-sound-internal under Windows would be
15708         included in the build of Emacs.
15710 2002-11-16  Jason Rumney  <jasonr@gnu.org>
15712         * w32fns.c (w32_load_system_font): Don't disable Cleartype.
15714         * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
15716 2002-11-15  Stefan Monnier  <monnier@cs.yale.edu>
15718         * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
15719         (adjust_point_for_property): Move out of display and invisible even if
15720         we were already inside before (in case a property was added while
15721         we weren't looking).  Be more careful when handling invisible props.
15722         Skip invisible text as if it really wasn't there at all.
15724 2002-11-15  Jason Rumney  <jasonr@gnu.org>
15726         * w32term.c (x_draw_image_foreground)
15727         (w32_draw_image_foreground_1): Use standard copy and invert
15728         operations to draw images.
15730         * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
15731         depth of 1.
15732         (xbm_read_bitmap_data): Invert bits as xbm is read in.
15733         (XPutPixel): Don't invert bits here.
15735 2002-11-15  Jason Rumney  <jasonr@gnu.org>
15737         * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
15738         (w32_draw_image_foreground_1): Handle image masks.
15739         (x_draw_image_glyph_string): Don't BitBlt transparently.
15741         * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
15742         (x_from_xcolors): Adjust RGB values for W32.
15743         (image_background, image_background_transparent)
15744         (postprocess_image, x_to_xcolors, x_disable_image)
15745         (x_build_heuristic_mask): Adapt for W32 and enable.
15746         (x_create_x_image_and_pixmap): Mark images with palettes as such.
15747         (xbm_load): Remove unused variable.
15749 2002-11-14  Richard M. Stallman  <rms@gnu.org>
15751         * buffer.c (syms_of_buffer): Doc fix.
15753 2002-11-14  Dave Love  <fx@gnu.org>
15755         * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
15757         * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
15758         * xmenu.c (unuse_menu_items, digest_single_submenu):
15759         * xfns.c (x_put_x_image):
15760         * xdisp.c (message2_nolog, set_message):
15761         * undo.c (record_point):
15762         * terminfo.c (tparam):
15763         * syntax.c (scan_sexps_forward):
15764         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
15765         * composite.c (update_compositions):
15766         * cm.c (calccost, cmgoto):
15767         * charset.c (c_string_width): Declare all args (per C99).
15769         * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
15771         * lisp.h (get_specified_cursor_type, get_window_cursor_type):
15772         Don't declare.
15774         * emacs.c (main) [!VMS]: Avoid third arg.
15776         * fns.c (Fcopy_sequence): Doc fix.
15777         (Fmap_char_table): Cast `call2'.
15779 2002-11-14  Francesco Potorti`  <pot@gnu.org>
15781         * s/sol2-8.h: New file.
15783 2002-11-14  Kim F. Storm  <storm@cua.dk>
15785         * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
15786         dependency on `risky-local-variable' and the :propertize form.
15788 2002-11-12  Stefan Monnier  <monnier@cs.yale.edu>
15790         * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
15792         * syntax.c (scan_sexps_forward): Undo last patch.
15793         Use a more obvious fix: check eob before updating the syntax table.
15795 2002-11-09  Stefan Monnier  <monnier@cs.yale.edu>
15797         * syntax.c (scan_sexps_forward): Update syntax table before reading
15798         a char rather than after so we don't update the table past eob.
15800 2002-11-09  Dave Love  <fx@gnu.org>
15802         * buffer.c (Fset_buffer_major_mode): Fix last change.
15804         * regex.c (regexec): Fix pmatch declaration.
15806         * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
15808         * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
15809         to self-inserting characters.
15810         (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
15812         * coding.c (Vtranslation_table_for_input): New.
15813         (syms_of_coding): DEFVAR it.
15815 2002-11-08  Juanma Barranquero  <lektu@terra.es>
15817         * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
15818         window.
15820 2002-11-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15822         * process.c (Fformat_network_address): Remove unused locals p,
15823         cp, and i.
15825 2002-11-06  Dave Love  <fx@gnu.org>
15827         * buffer.c (Qset_buffer_major_mode_hook): New.
15828         (Fset_buffer_major_mode): Use it.
15830 2002-11-06  Richard M. Stallman  <rms@gnu.org>
15832         * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
15833         and stop_polling.
15835         * process.c (wait_reading_process_input):
15836         Test POLLING_PROBLEM_IN_SELECT, not hpux.
15837         Avoid initialization for auto Lisp_Object var.
15839         * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
15841         * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
15843 2002-11-05  Richard M. Stallman  <rms@gnu.org>
15845         * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
15847         * callint.c (Fcall_interactively): New local filter_specs.
15848         (Fcall_interactively): Check for progn as well as let.
15849         Add a gcpro.
15850         (Qprogn): New variable.
15851         (syms_of_callint): Staticpro and init Qprogn.
15853 2002-11-04  John Paul Wallington  <jpw@shootybangbang.com>
15855         * lread.c (Feval_buffer): Doc fix.
15857 2002-11-04  Dave Love  <fx@gnu.org>
15859         * keyboard.c (read_char): Always translate iff
15860         Vkeyboard_translate_table is a char table and c is valid.
15862         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
15863         and fix C types.
15865 2002-11-03  Stefan Monnier  <monnier@cs.yale.edu>
15867         * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
15869         * editfns.c (get_pos_property): Don't hardcode Qfield.
15871         * keyboard.c (adjust_point_for_property): Handle `display' prop on
15872         overlays.  Also handle `invisible' prop.
15874 2002-11-02  Stefan Monnier  <monnier@cs.yale.edu>
15876         * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
15877         (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
15879 2002-11-01  Andreas Schwab  <schwab@suse.de>
15881         * editfns.c (Fmessage): Revert last change to properly handle %%.
15883 2002-11-01  Stefan Monnier  <monnier@cs.yale.edu>
15885         * xmenu.c (unuse_menu_items): New fun.
15886         (menu_items_inuse): New var.
15887         (syms_of_xmenu): Initialize it.
15888         (init_menu_items): Use it to detect re-entrance.
15889         (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
15890         (Fx_popup_menu): Remove spurious XSETFRAME.
15892         * editfns.c (find_field): Make an exception for nil fields.
15894 2002-11-01  Dave Love  <fx@gnu.org>
15896         * m/gec63.h: Deleted.
15898 2002-10-31  Dave Love  <fx@gnu.org>
15900         * xterm.c (XTread_socket): Fix last change.
15901         (xaw_scroll_callback): Cast call_data to long to avoid warning.
15903 2002-10-31  Stefan Monnier  <monnier@cs.yale.edu>
15905         * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
15907 2002-10-30  Stefan Monnier  <monnier@cs.yale.edu>
15909         * editfns.c (overlays_around, get_pos_property): New funs.
15910         (find_field): Use them.
15911         Also be careful not to modify POS before its last use.
15912         (Fmessage): Don't Fformat if there's nothing to format.
15914 2002-10-30  Dave Love  <fx@gnu.org>
15916         * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
15917         [HAVE_PTY_H]; Include pty.h.
15919         * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
15921         * xterm.c (Qeql): Declare.
15922         (Vx_keysym_table): New.
15923         (syms_of_xterm): Initialize it.
15924         (XTread_socket): Use it.  Deal with ASCII keysyms.
15925         (XSetIMValues) [HAVE_X11R6]: Prototype.
15927         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
15928         (lispy_kana_keys): Comment out.
15929         (make_lispy_event) [XK_kana_A]: Comment out.
15930         (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
15931         Fix sprintf call.
15933         * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
15934         regexp.h change).
15935         (TERMINFO, LIBS_TERMCAP): Define.
15937         * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
15938         (bcmp): Define conditional on HAVE_BCMP.
15939         (NO_SIOCTL_H): Don't define.
15940         (TIOCSIGSEND): Don't make conditional on IRIX6.
15942         * s/sol2-5.h: Don't include strings.h.
15943         (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
15945         * s/irix6-0.h (IRIX6): Don't define.
15946         (bcopy, bcmp, bzero): Don't undef.
15948         * s/irix6-5.h: Don't include strings.h.
15949         (IRIX6): Don't define.
15950         (bcopy, bcmp, bzero): Don't undef.
15952         * syntax.c (Fforward_comment): Doc fix.
15954 2002-10-29  Kim F. Storm  <storm@cua.dk>
15956         * process.c (Fsignal_process): Allow PROCESS to be specified by
15957         name in addition to pid (as integer or string).
15959 2002-10-28  Harald Maier  <Harald.Maier.BW@t-online.de>  (tiny change)
15961         * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
15962         environments.
15964 2002-10-27  Kim F. Storm  <storm@cua.dk>
15966         * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15968         * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
15970         * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
15972         * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
15974 2002-10-26  Richard M. Stallman  <rms@gnu.org>
15976         * editfns.c (Fformat): Detect invalid format letters for floats.
15978 2002-10-25  Kenichi Handa  <handa@m17n.org>
15980         * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
15981         (x_set_title): Likewise.
15983 2002-10-25  Juanma Barranquero  <lektu@terra.es>
15985         * macgui.h:
15986         * w32gui.h: Remove definition of XColor.
15988         * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
15990 2002-10-24  Kim F. Storm  <storm@cua.dk>
15992         * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
15993         Callers changed (supply dummy arg).
15995         * lisp.h (get_window_cursor_type): Update prototype.
15997         * w32term.c (x_display_and_set_cursor): Get active_cursor from
15998         get_window_cursor_type to track system caret.
16000 2002-10-24  Kim F. Storm  <storm@cua.dk>
16002         * process.c (Fformat_network_address): New function.
16003         (syms_of_process): Defsubr it.
16004         (list_processes_1): Use it to format :local/:remote address if
16005         service/host is not set; before Emacs would crash in that case.
16006         (Fmake_network_process): Don't use Ffind_operation_coding_system
16007         to setup coding system if host or service is not set.
16009 2002-10-23  Juanma Barranquero  <lektu@terra.es>
16011         Patch suggested by Jay Finger <jay_finger@hotmail.com>.
16013         * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
16014         COLORREF.
16016         * macgui.h:
16017         * w32gui.h: Add definition of XColor.
16019         * macfns.c:
16020         * w32fns.c:
16021         * xfaces.c: Remove definition of XColor.
16023 2002-10-22  Stefan Monnier  <monnier@cs.yale.edu>
16025         * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
16027         * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
16028         Only ignore truly dedicated windows.  For UNSHOW_BUFFER, delete the
16029         window if it is dedicated.
16030         (Fshrink_window): Add preserve_before as was done for enlarge_window.
16031         (Vspecial_display_function): Update docstring.
16033         * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
16034         (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
16035         (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
16037 2002-10-21  Stefan Monnier  <monnier@cs.yale.edu>
16039         * casefiddle.c (casify_region): Don't treat a prefix char as part
16040         of a word when at the beginning.
16042 2002-10-17  Juanma Barranquero  <lektu@terra.es>
16044         * lread.c (syms_of_lread): Fix typos.
16046 2002-10-17  Dave Love  <fx@gnu.org>
16048         * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
16050 2002-10-16  Richard M. Stallman  <rms@gnu.org>
16052         * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
16054 2002-10-14  Juanma Barranquero  <lektu@terra.es>
16056         * w16select.c (syms_of_win16select): Fix docstring for
16057         `selection-coding-system'.
16059         * w32select.c (syms_of_w32select): Likewise.
16061 2002-10-14  Stefan Monnier  <monnier@cs.yale.edu>
16063         * syntax.c (scan_lists): Don't get fooled by a symbol ending with
16064         a backslash-quoted char.
16065         (scan_lists, scan_sexps_forward): Pacify the compiler.
16067 2002-10-13  Richard M. Stallman  <rms@gnu.org>
16069         * window.c (window_scroll): Set immediate_quit.
16071         * print.c (print): When backquote form is the car of a list,
16072         output in old style.  Use old_backquote_output to output all
16073         comma forms inside it in old style too.
16075         * buffer.h (struct buffer): Move `undo_list' down below `name'.
16077 2002-10-11  Markus Rost  <rost@math.ohio-state.edu>
16079         * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
16080         batch mode).
16082         * lread.c (Fload): Doc fix (load-suffixes).
16084 2002-10-10  Steven Tamm  <steventamm@mac.com>
16086         * macterm.c (syms_of_macterm, mac_get_mouse_btn):
16087         Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
16088         Also switch the default to Qnil from Qt.
16090 2002-10-08  Kenichi Handa  <handa@m17n.org>
16092         * coding.c (code_convert_region): When we need more GAP for
16093         conversion, pay attention to the case that coding->produced is not
16094         greater than coding->consumed.
16096 2002-10-07  Richard M. Stallman  <rms@gnu.org>
16098         * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
16100 2002-10-06  Andrew Choi  <akochoi@shaw.ca>
16102         * macmenu.c (mac_menu_show): Add j to count menu items; match
16103         menu_item_selection to it to find selected item.
16105 2002-10-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16107         * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
16108         cases.  The correct fix is to pass ReparentNotify to Xt.
16109         The shell widget interprets ConfigureNotify differently depending
16110         on if it has been reparented or not.
16112 2002-10-05  Markus Rost  <rost@math.ohio-state.edu>
16114         * editfns.c (Fformat_time_string): Doc fix.
16116 2002-10-05  John Paul Wallington  <jpw@shootybangbang.com>
16118         * fns.c (Flength): Doc fix.
16120 2002-10-04  Stefan Monnier  <monnier@cs.yale.edu>
16122         * keyboard.c (keyremap): New struct.
16123         (read_key_sequence): Use it: globally replace keytran_foo with
16124         keytran.foo and fkey_foo with fkey.foo.  Rename temp vars
16125         keytran_next and fkey_next to just `next'.
16127 2002-10-04  Steven Tamm  <steventamm@mac.com>
16129         * macterm.c (keycode_to_xkeysym_table): Change return to be
16130         treated like an X keysym.
16132 2002-10-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16134         * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
16135         and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
16136         This is to also handle x/y changes that occur because of a resize.
16138 2002-10-02  John Paul Wallington  <jpw@shootybangbang.com>
16140         * frame.c (Vdelete_frame_functions): New variable.
16141         (syms_of_frame): Initialize and defvar it.
16142         (Fdelete_frame): Use it instead of delete-frame-hook.  Don't run
16143         it when frame's `tooltip' parameter is non-nil.
16145         * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
16147         * w32fns.c (x_create_tip_frame): Likewise.
16149         * macfns.c (x_create_tip_frame): Likewise.
16151 2002-09-30  Kenichi Handa  <handa@m17n.org>
16153         * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
16154         -1 before calling ccl_driver.
16156         * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
16157         Only when it is non-nil, handle composition sequence.
16158         (setup_coding_system) <0>: Don't force composition handling.
16160         * Makefile.in (lisp, shortlisp): Add utf-16.elc
16162 2002-09-29  Richard M. Stallman  <rms@gnu.org>
16164         * search.c (Freplace_match): Adjust match data for the substitution
16165         just made in the buffer.
16167         * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
16168         (redisplay_internal): Use them.  Do RESUME_POLLING at end of function.
16170 2002-09-27  Richard M. Stallman  <rms@gnu.org>
16172         * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
16173         (read_char): Use them.  Do all exits thru the end of the function.
16175 2002-09-27  Kenichi Handa  <handa@etl.go.jp>
16177         * xfaces.c (try_font_list): Pay attention to the case that FAMILY
16178         is nil.
16180 2002-09-26  Richard M. Stallman  <rms@gnu.org>
16182         * regex.h (__restrict_arr): Don't define if already defined.
16184         * coding.c (run_pre_post_conversion_on_str):
16185         Save and restore Vdeactivate_mark.
16187 2002-09-26  John Paul Wallington  <jpw@shootybangbang.com>
16189         * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
16191 2002-09-26  Kenichi Handa  <handa@etl.go.jp>
16193         * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY.  If it is
16194         nonzero, try face's family at first.  Otherwise try FAMILY at first.
16195         (choose_face_font): If C is a single byte char or latin-1, call
16196         try_font_list with PREFER_FACE_FAMILY 1.
16198 2002-09-21  Richard M. Stallman  <rms@gnu.org>
16200         * window.c (select_window_1): Don't select frame.
16201         Set frame's selected window only when frame itself is selected.
16202         (Fselect_window): Doc fix.
16204 2002-09-18  Kim F. Storm  <storm@cua.dk>
16206         * process.c (make-network-process): Doc fix (there is no
16207         network-server-log-function hook).
16209 2002-09-18  Richard M. Stallman  <rms@gnu.org>
16211         * print.c (print): Clear out the unused parts of Vprint_number_table.
16212         (syms_of_print): Doc fix for `print-number-table'.
16214         * unexelf.c (unexec): Undo previous change.
16216 2002-09-17  Andreas Schwab  <schwab@suse.de>
16218         * m/alpha.h [LINUX]: Don't define DATA_START.
16220 2002-09-16  Dave Love  <fx@gnu.org>
16222         * unexelf.c (unexec): Deal with .got, reinstating change from
16223         25-08-1999.
16225 2002-09-13  Richard M. Stallman  <rms@gnu.org>
16227         * s/sol2-6.h (UNEXEC): Comment out definition.
16229         * unexsol.c (unexec): Don't downcase first letter of error msg.
16231         * xfaces.c (Fcolor_supported_p): Just one arg is required.
16233 2002-09-12  Markus Rost  <rost@math.ohio-state.edu>
16235         * unexsol.c: Include buffer.h, charset.h, coding.h.
16237 2002-09-11  Richard M. Stallman  <rms@gnu.org>
16239         * unexsol.c: Don't use report_file_error; do it by hand
16240         using dlerror.
16242         * process.c (wait_reading_process_input, both versions):
16243         Before calling turn_on_atimers, call stop_polling.
16245         * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
16247         * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
16248         we go to too_near_end, call clear_glyph_matrix.
16249         (redisplay_window): After make_cursor_line_fully_visible,
16250         call clear_glyph_matrix and bypass `goto done'.
16252         * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
16253         and we have non-toolkit scroll bars, return nil for scroll-bar-width.
16255 2002-09-10  Richard M. Stallman  <rms@gnu.org>
16257         * fileio.c (Fdo_auto_save): Catch error making directory.
16258         Only call push_message if we need to.
16259         At the same time, make an unwind-protect to pop it.
16260         Rename local message_p to old_message_p.
16261         (do_auto_save_make_dir, do_auto_save_eh): New functions.
16262         (do_auto_save_unwind): Don't call pop_message.
16264         * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
16266         * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
16268         * alloc.c (Fgarbage_collect): Use pop_message_unwind.
16270         * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
16272 2002-09-10  Stefan Monnier  <monnier@cs.yale.edu>
16274         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
16275         (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
16276         (re_match_2_internal): Be more careful with infinite loops.
16278 2002-09-10  Kim F. Storm  <storm@cua.dk>
16280         * macros.c (end_kbd_macro): New function.
16281         (Fend_kbd_macro): Use it.
16283         * macros.h (end_kbd_macro): Declare extern.
16285         * keyboard.c (Fdiscard_input): If defining keyboard macro,
16286         end and save it instead of discarding it.
16288 2002-09-09  Markus Rost  <rost@math.ohio-state.edu>
16290         * s/sol2-6.h: Fix typo.  Add comment.
16292 2002-09-09  Richard M. Stallman  <rms@gnu.org>
16294         * regex.c (regnum_t): Use signed int, not unsigned int.
16296         * s/sol2-6.h: New file.
16298         * s/sol2-5.h (UNEXEC): Definition deleted.
16300 2002-09-08  Kim F. Storm  <storm@cua.dk>
16302         * macros.c (executing_macro_index): Change type to EMACS_INT.
16303         (syms_of_macros): DEFVAR_INT it  (needed by kmacro).
16305         * macros.h (executing_macro_index): Change type to EMACS_INT.
16307 2002-09-06  Richard M. Stallman  <rms@gnu.org>
16309         * casetab.c (set_case_table): Make canon table point to eqv table.
16311 2002-09-06  Juanma Barranquero  <lektu@terra.es>
16313         * coding.c (syms_of_coding): Fix spacing.
16315         * composite.c (Fcompose_region_internal)
16316         (Fcompose_string_internal): Likewise.
16318         * data.c (Flsh): Likewise.
16320         * fontset.c (Fset_fontset_font): Likewise.
16322         * macfns.c (Fx_server_max_request_size): Likewise.
16324         * w16select.c (syms_of_win16select): Likewise.
16326         * w32select.c (syms_of_w32select): Likewise.
16328         * xselect.c (syms_of_xselect): Likewise.
16330 2002-09-05  Richard M. Stallman  <rms@gnu.org>
16332         * regex.c (set_image_of_range_1): In no-TRANSLATE case,
16333         call EXTEND_RANGE_TABLE and return a proper value.
16334         (set_image_of_range): Don't call set_image_of_range_1
16335         if no TRANSLATE or if range includes all of Latin-1.
16336         Only call it for the Latin-1 part of the range.
16337         For other cases, make two separate ranges,
16338         one for the original specified characters and one for
16339         their case-conversions.
16341 2002-09-04  Richard M. Stallman  <rms@gnu.org>
16343         * s/sol2-5.h (UNEXEC): Use unexsol.o.
16345         * window.c (displayed_window_lines): Correct for one-off bug
16346         in HEIGHT on non-window displays.
16348         * regex.c (set_image_of_range_1): New function.
16349         (set_image_of_range): Use set_image_of_range_1 for Latin-1.
16350         Return a value to indicate running out of memory.
16351         (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
16352         (extend_range_table_work_area): New subroutine.
16353         (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
16354         Different calling conventions, and used from set_image_of_range{,_1}.
16355         (IMMEDIATE_QUIT_CHECK): Definitions moved.
16357 2002-09-04  Juanma Barranquero  <lektu@terra.es>
16359         * makefile.w32-in: All dependencies updated.
16361 2002-09-01  Richard M. Stallman  <rms@gnu.org>
16363         * unexsol.c: New file.
16365         * xfns.c (Qbox): Declare external, don't define.
16367         * xdisp.c (redisplay_window) <force-start case>:
16368         If point is on semi-visible last line, reposition
16369         it at previous line.
16371         * alloc.c (display_malloc_warning): Use display-warning.
16372         (malloc_warning_1): Function deleted.
16374         * alloc.c [ALLOC_DEBUG]: #undef INLINE.
16376         * lread.c (read1): Handle #! by skipping the line.
16378 2002-08-31  Richard M. Stallman  <rms@gnu.org>
16380         * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
16381         Don't include LDFLAGS.
16382         (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
16384 2002-08-31  Eli Zaretskii  <eliz@is.elta.co.il>
16386         * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
16387         member of x_display_info unless we compile for some window system.
16389 2002-08-31  Kim F. Storm  <storm@cua.dk>
16391         * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
16392         (get_window_cursor_type): Don't use them.
16393         (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
16395 2002-08-30  Kenichi Handa  <handa@etl.go.jp>
16397         * xdisp.c (get_next_display_element): Fix previous change.
16399 2002-08-30  Andrew Choi  <akochoi@shaw.ca>
16401         * macterm.c (expose_overlaps): New function (merge code from xterm.c).
16402         (expose_window): Use it to fix the display of overlapping
16403         rows (merge code from xterm.c).
16405         * macfns.c (Qbox): Add extern declaration.
16407 2002-08-30  Juanma Barranquero  <lektu@terra.es>
16409         * w32fns.c (Qbox): Make extern.
16410         (syms_of_w32fns): Remove initialization of Qbox.
16412 2002-08-30  Rune Kleveland  <runekl@viewpoint.no>  (tiny change)
16414         * xfns.c (Fx_open_connection): Fix error message.
16416 2002-08-30  Kim F. Storm  <storm@cua.dk>
16418         The following changes consolidates the handling of the cursor
16419         type in xdisp.c, moving duplicate code and functionality from
16420         xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
16422         * frame.h (enum text_cursor_kinds): Consolidated here.
16423         Added DEFAULT_CURSOR value.
16424         (struct frame) <desired_cursor, cursor_width>
16425         <blink_off_cursor, blink_off_cursor_width>: New fields.
16426         Consolidated from output_x, output_w32 and output_mac structs.
16427         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16428         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
16430         * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
16431         Variables consolidated here.
16432         (Valternate_cursor_type, Qalternate_cursor_type): New variables.
16433         (Vcursor_in_non_selected_windows): Renamed from
16434         cursor_in_non_selected_windows and changed to Lisp_Object.
16435         (syms_of_xdisp): Define and staticpro new and moved variables.
16436         (get_specified_cursor_type): Renamed from x_specified_cursor_type;
16437         consolidated here.  Recognize Qhollow setting.
16438         (set_frame_cursor_types): New function to set frame cursor types
16439         based on the frame parameters.
16440         (get_window_cursor_type): New function to calculate new cursor
16441         type and width for the specified window.  Based on duplicated
16442         code consolidated here.
16443         Enhancements: cursor-in-non-selected-windows may be a cursor type,
16444         check buffer-local alternate-cursor-type and blink-cursor-alist
16445         before using built-in blink off methods.
16447         * dispextern.h (cursor_in_non_selected_windows): Extern removed.
16449         * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
16450         (get_specified_cursor_type, get_window_cursor_type)
16451         (set_frame_cursor_types): Added prototypes.
16453         * macfns.c (x_specified_cursor_type): Removed.
16454         (x_set_cursor_type): Use set_frame_cursor_types.
16455         (Qbar, Qbox): Removed.
16456         (syms_of_macfns): Don't intern or staticpro them.
16458         * macterm.c (x_specified_cursor_type): Remove prototype.
16459         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16460         (x_display_and_set_cursor): Use get_window_cursor_type.
16461         Remove unused local variables cursor_non_selected, active_cursor.
16462         Redraw cursor if hbar cursor width changes.
16463         (make_mac_frame): Set FRAME_DESIRED_CURSOR.
16465         * macterm.h (enum text_cursor_kinds): Removed.
16466         (struct output_mac) <current_cursor, desired_cursor, cursor_width>
16467         <blink_off_cursor, blink_off_cursor_width>: Members removed.
16468         (FRAME_DESIRED_CURSOR): Macro removed.
16470         * w32fns.c (Vblink_cursor_alist): Removed.
16471         (Qbar, Qhbar, Qbox, Qhollow): Removed.
16472         (syms_of_w32fns): Don't intern, staticpro, or define them.
16473         (x_specified_cursor_type): Removed.
16474         (x_set_cursor_type): Use set_frame_cursor_types.
16476         * w32term.c (x_specified_cursor_type): Remove prototype.
16477         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16478         (x_display_and_set_cursor): Use get_window_cursor_type.
16479         Remove unused local variables cursor_off_state.
16480         Redraw cursor if hbar cursor width changes.
16481         Changed all occurrences of w32_highlight_frame to x_highlight_frame.
16483         * w32term.h (enum text_cursor_kinds): Removed.
16484         (struct output_w32) <current_cursor, desired_cursor, cursor_width>
16485         <blink_off_cursor, blink_off_cursor_width>: Members removed.
16486         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16487         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
16488         (struct w32_display_info) <x_highlight_frame>: Renamed member from
16489         w32_highlight_frame.
16491         * xfns.c (Vblink_cursor_alist): Removed.
16492         (Qbar, Qhbar, Qbox, Qhollow): Removed.
16493         (syms_of_xfns): Don't intern, staticpro, or define them.
16494         (x_specified_cursor_type): Removed.
16495         (x_set_cursor_type): Use set_frame_cursor_types.
16497         * xterm.c (x_specified_cursor_type): Remove prototype.
16498         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
16499         (x_display_and_set_cursor): Use get_window_cursor_type.
16500         Remove unused local variables cursor_off_state.
16501         Redraw cursor if hbar cursor width changes.
16503         * xterm.h (enum text_cursor_kinds): Removed.
16504         (struct output_x) <current_cursor, desired_cursor, cursor_width>
16505         <blink_off_cursor, blink_off_cursor_width>: Members removed.
16506         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
16507         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
16508         (x_specified_cursor_type): Remove prototype.
16510 2002-08-28  Richard M. Stallman  <rms@gnu.org>
16512         * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
16513         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
16514         (Vblink_cursor_alist): New variable.
16515         (syms_of_w32fns): Initialize and defvar it.
16516         (x_specified_cursor_type): Recognize Qbox for filled box.
16517         Exceptions are hollow boxes.
16518         (Qbox, Qhollow): New variables.
16519         (syms_of_w32fns): Initialize and staticpro them.
16521         * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
16522         New macros.
16523         (struct w32_output): New fields blink_off_cursor,
16524         blink_off_cursor_width.
16525         (FRAME_CURSOR_WIDTH): New macro.
16527         * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
16528         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
16530         * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16531         for bar cursor.
16533         * w32term.c (expose_overlaps): New function.
16534         (expose_window): Use it to fix the display of overlapping rows.
16536 2002-08-28  Simon Josefsson  <jas@extundo.com>
16538         * xfns.c (Fx_open_connection): Improve help when X connection
16539         fails, xhost is insecure and xauth is better.
16541 2002-08-28  Juanma Barranquero  <lektu@terra.es>
16543         * makefile.w32-in: Add missing dependencies on w32term.h and
16544         composite.h.
16546         * emacs.c (USAGE1): Add missing newline.
16548 2002-08-27  Andrew Choi  <akochoi@shaw.ca>
16550         * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
16552 2002-08-27  Richard M. Stallman  <rms@gnu.org>
16554         * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
16555         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
16556         (Vblink_cursor_alist): New variable.
16557         (syms_of_xfns): Initialize and defvar it.
16558         (x_specified_cursor_type): Recognize Qbox for filled box.
16559         Exceptions are hollow boxes.
16560         (Qbox, Qhollow): New variables.
16561         (syms_of_xfns): Initialize and staticpro them.
16563         * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
16564         New macros.
16565         (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
16567         * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
16568         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
16570         * emacs.c (main): Handle --script.
16571         (USAGE1): Mention --script.
16572         (standard_args): Define sort order for --script.
16574 2002-08-27  Gerd Moellmann  <gerd.moellmann@t-online.de>
16576         * xdisp.c (redisplay_updating_p): Variable removed.
16577         (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
16578         New variables.
16579         (init_iterator): Don't free realized faces if
16580         inhibit_free_realized_faces is set.
16581         (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
16582         (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
16583         initialize Qinhibit_free_realized_faces.
16585         * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
16586         when iterator is adding glyphs to a glyph matrix.
16588 2002-08-27  Kenichi Handa  <handa@etl.go.jp>
16590         * xdisp.c (get_next_display_element): In unibyte case, don't use
16591         octal form for such eight-bit characters that can be converted to
16592         multibyte char.
16594 2002-08-26  Kim F. Storm  <storm@cua.dk>
16596         * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
16597         foreground and background colors.  From Joe Buehler.
16599 2002-08-26  Miles Bader  <miles@gnu.org>
16601         * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
16603 2002-08-25  Andrew Choi  <akochoi@shaw.ca>
16605         * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
16606         defined instead of MAC_OSX.
16608         * s/darwin.h (select): Define select to sys_select only if
16609         HAVE_CARBON is defined.
16610         (HAVE_WORKING_VFORK): #undef it.  Define vfork to fork.
16611         (DONT_REOPEN_PTY): #def it.
16613         * macterm.c (XTread_socket): Remove code to call
16614         SendEventToEventTarget for keys with command modifiers when
16615         mac_command_key_is_meta is nil.
16617 2002-08-24  Andreas Schwab  <schwab@suse.de>
16619         * eval.c (Fdefvar): Fix last change.
16621 2002-08-23  Richard M. Stallman  <rms@gnu.org>
16623         * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
16624         Record variables in load history as (defvar . VAR).
16625         (Fdefvar): Don't record in load history if no initial value.
16626         (Qdefvar): New variable.
16627         (syms_of_eval): Init and staticpro it.
16629         * lread.c (syms_of_lread): Doc fix.
16630         (build_load_history): Use Fmember to see if a definition
16631         is already in the Vload_history element.
16633         * process.c (Fstart_process): Remove /: from program name.
16635         * emacs.c (decode_env_path): Don't add /: if file name handler
16636         has a `safe-magic' property.
16638         * callproc.c (Fcall_process): Remove /: from program name.
16640 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
16642         * regex.c (PATFETCH): Remove the translating fetch.
16643         (PATFETCH_RAW): Rename to PATFETCH.
16644         (set_image_of_range): New fun.
16645         (SET_RANGE_TABLE_WORK_AREA): Use it.
16646         (regex_compile): Don't translate the pattern chars so eagerly.
16647         Only do it when inserting an `exactn' bytecode or when handling
16648         a char-range.
16649         (mutually_exclusive_p): Avoid empty statement.
16651 2002-08-22  Kim F. Storm  <storm@cua.dk>
16653         * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
16654         end up on a partially visible line; this reverts a specific part
16655         of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
16656         display error which has been reported several times now.
16657         However it introduces the problem that changes was supposed to fix.
16658         See my comments in the source if you want to debug this further.
16660 2002-08-20  Kenichi Handa  <handa@etl.go.jp>
16662         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
16664 2002-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
16666         * msdos.c (croak): Add `void' to definition.
16668         * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
16669         Don't define them, they are defined in msdos.c.
16671         * mem-limits.h [MSDOS]: Declare etext.
16673         * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
16674         `const' since CORRECT_DIR_SEPS modifies its target.
16676 2002-08-19  Kim F. Storm  <storm@cua.dk>
16678         * keyboard.c (Fclear_this_command_keys): Add optional arg
16679         KEEP-RECORD to avoid clearing lossage when we just want to clear
16680         the current key sequence (kmacro needs this).
16682 2002-08-19  Kenichi Handa  <handa@localhost>
16684         * composite.c (run_composition_function): Call FUNC if it is fboundp.
16686         * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
16687         cons, return Qnil.
16689 2002-08-17  Richard M. Stallman  <rms@gnu.org>
16691         * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
16693         * sysdep.c [!VMS]: Include sys/files.h.
16695         * editfns.c (save_restriction_restore): Defend from unchained marker.
16697         * buffer.c (overlays_at): Handle extending vec uniformly.
16698         (overlays_in): Handle extending vec from length 0 as in overlays_at.
16700 2002-08-15  Andrew Choi  <akochoi@shaw.ca>
16702         * mac.c (init_mac_osx_environment): New function.
16704         * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
16706 2002-08-14  Kim F. Storm  <storm@cua.dk>
16708         * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
16709         executing macro before appending to it (when used from Lisp).
16710         (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
16711         which is called prior to each iteration of macro (for kmacro.el).
16712         (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
16714         * lisp.h (Fexecute_kbd_macro): Update prototype.
16716         * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
16718 2002-08-14  Kenichi Handa  <handa@etl.go.jp>
16720         * xselect.c (QUTF8_STRING): New variable.
16721         (symbol_to_x_atom): Pay attention to QUTF8_STRING.
16722         (x_atom_to_symbol): Likewise.
16723         (x_get_local_selection): New argument local_request.  If it is
16724         nonzero, call handler_fn with the second arg nil.
16725         (x_handle_selection_request): Call x_get_local_selection with
16726         local_request 0.
16727         (lisp_data_to_selection_data): Don't encode the string here.
16728         (Fx_get_selection_internal): Call x_get_local_selection with
16729         local_request 1.
16730         (syms_of_xselect): Intern and staticpro QUTF8_STRING.
16732         * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
16734         * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
16736 2002-08-13  Richard M. Stallman  <rms@gnu.org>
16738         * minibuf.c (Fminibufferp): New function.
16739         (syms_of_minibuf): Defsubr it.
16740         (Fminibuffer_prompt_end): Handle non-minibuffers specially.
16742 2002-08-13  Gerd Moellmann  <gerd.moellmann@t-online.de>
16744         * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
16746 2002-08-12  Richard M. Stallman  <rms@gnu.org>
16748         * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
16749         [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
16750         (WSTOPSIG, WTERMSIG): Define each one independently if not defined
16751         already.
16753         * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
16755 2002-08-11  Andrew Choi  <akochoi@shaw.ca>
16757         * macterm.c (XTmouse_position): Check wp with is_emacs_window.
16758         (Vmac_pass_command_to_system): New variable.
16759         (Vmac_pass_control_to_system): New variable.
16760         (do_mouse_moved): Check wp with is_emacs_window.
16761         (XTread_socket): Check window_ptr with is_emacs_window.
16762         Call FrontNonFloatingWindow instead of FrontWindow.  Send keydown
16763         events back to Mac Toolbox for processing, depending on values of
16764         Vmac_pass_command_to_system and Vmac_pass_control_to_system.
16765         (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
16766         Vmac_pass_control_to_system.
16768 2002-08-10  Kenichi Handa  <handa@etl.go.jp>
16770         * coding.c (unencodable_char_position): New function.
16771         (Funencodable_char_position): New function.
16772         (syms_of_coding): Defsubr Funencodable_char_position.
16774 2002-08-10  Andrew Choi  <akochoi@shaw.ca>
16776         * mac.c (sys_select) [MAC_OSX]: New function.
16778         * macterm.c (MakeMeTheFrontProcess): New function.
16779         (mac_initialize): Call MakeMeTheFrontProcess.
16781         * s/darwin.h: Define select to sys_select.
16783 2002-08-09  Richard M. Stallman  <rms@gnu.org>
16785         * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
16787 2002-08-09  Gerd Moellmann  <gerd.moellmann@t-online.de>
16789         * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
16790         end of the buffer.
16792 2002-08-08  Ken Raeburn  <raeburn@gnu.org>
16794         * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
16796         * puresize.h (BASE_PURESIZE): Increase to 910000.
16798 2002-08-08  Kenichi Handa  <handa@etl.go.jp>
16800         * coding.c (Ffind_operation_coding_system): For write-region, if
16801         VISIT is a filename, make it the target.
16803 2002-08-07  Richard M. Stallman  <rms@gnu.org>
16805         * alloc.c (mark_object): Detect long lists for debugging.
16806         (mark_object_loop_halt): New variable.
16808         * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
16810         * data.c (Fmake_variable_frame_local): Doc fix.
16812 2002-08-01  David Ponce  <david@dponce.com>
16814         * w32menu.c (local_heap, local_alloc, local_free): New macros.
16815         (malloc_widget_value, free_widget_value)
16816         (w32_free_submenu_strings): Use them.
16818         (push_submenu_start, push_submenu_end, push_left_right_boundary)
16819         (push_menu_pane, push_menu_item, single_keymap_panes)
16820         (single_menu_item, Fx_popup_menu, menubar_selection_callback)
16821         (single_submenu, set_frame_menubar)
16822         (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
16824         (Fx_popup_menu): Don't show pop up menu until preceding one is
16825         actually cleaned up.  Moved UNGCPRO outside #ifdef HAVE_MENUS block.
16827         * w32menu.c: Changes adapted from xmenu.c
16828         (set_frame_menubar): First parse all submenus,
16829         then make widget_value trees from them.
16830         Don't allocate any widget_value objects
16831         until we are done with the parsing.
16832         (parse_single_submenu): New function.
16833         (digest_single_submenu): New function.
16834         (single_submenu): Function deleted, replaced by those two.
16836 2002-08-04  Andrew Choi  <akochoi@shaw.ca>
16838         * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
16839         returns a valid window pointer before proceeding for keyDown and
16840         autoKey events.
16842 2002-08-03  Andrew Choi  <akochoi@shaw.ca>
16844         * macterm.c (USE_CARBON_EVENTS): New macro.
16845         (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
16846         (x_iconify_frame): Call CollapseWindow.
16847         (Vmac_reverse_ctrl_meta): New variable.
16848         (Vmac_wheel_button_is_mouse_2): New variable.
16849         (init_mac_drag_n_drop): New function.
16850         (mac_do_receive_drag): New function.
16851         (mac_handle_service_event): New function.
16852         (init_service_handler): New function.
16853         (mac_to_emacs_modifiers): New function.
16854         (mac_event_to_emacs_modifiers): New function.
16855         (mac_get_mouse_btn): New function.
16856         (mac_convert_event_ref): New function.
16857         (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
16858         SendEventToEventTarget, mac_event_to_emacs_modifiers, and
16859         mac_get_mouse_btn.
16860         (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
16862         * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
16863         lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
16864         (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
16865         TOOL_BAR_EVENT for MAC_OS as well.
16866         (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
16867         as for WINDOWS_NT.
16868         (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
16870         * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
16872 2002-08-03  Gerd Moellmann  <gerd.moellmann@t-online.de>
16874         * xdisp.c (forward_to_next_line_start): Fix a condition that
16875         lead to a newline being skipped.
16877 2002-08-02  Andrew Choi  <akochoi@shaw.ca>
16879         * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
16881 2002-08-01  Richard M. Stallman  <rms@gnu.org>
16883         * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
16885 2002-07-31  Andrew Choi  <akochoi@shaw.ca>
16887         * macfns.c: #undef init_process before #define-ing it.
16889         * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
16890         HAVE_CARBON is defined.
16892 2002-07-31  Richard M. Stallman  <rms@gnu.org>
16894         * xmenu.c (set_frame_menubar): First parse all submenus,
16895         then make widget_value trees from them.
16896         Don't allocate any widget_value objects
16897         until we are done with the parsing.
16898         (parse_single_submenu): New function.
16899         (digest_single_submenu): New function.
16900         (single_submenu): Function deleted, replaced by those two.
16902 2002-07-30  Juanma Barranquero  <lektu@terra.es>
16904         * w32proc.c (syms_of_ntproc): Fix docstring of
16905         `w32-get-true-file-attributes'.
16907 2002-07-28  Richard M. Stallman  <rms@gnu.org>
16909         * s/hpux8.h (HPUX8): Define this before including hpux.h.
16910         (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
16912         * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
16914         * keyboard.c (make_lispy_event):
16915         Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
16916         Explicitly clear up_modifier in event->modifiers.
16918 2002-07-27  Richard M. Stallman  <rms@gnu.org>
16920         * xterm.h (FRAME_CURSOR_WIDTH): New macro.
16922         * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
16923         for bar cursor.
16925 2002-07-26  Kenichi Handa  <handa@etl.go.jp>
16927         * coding.c (detect_coding_iso2022): While checking a byte sequence
16928         for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
16929         it in the normal loop.
16931 2002-07-24  Gerd Moellmann  <gerd.moellmann@t-online.de>
16933         * xterm.c (expose_overlaps): New function.
16934         (expose_window): Use it to fix the display of overlapping rows.
16936         * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
16938 2002-07-23  Ken Raeburn  <raeburn@gnu.org>
16940         * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
16941         since it only depends on XUINT.
16943         * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
16944         EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
16945         PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
16946         Macros deleted.
16948         * mem-limits.h (start_of_data): If DATA_START is defined, prefer
16949         its value over other approaches.
16950         * sysdep.c (start_of_data): Don't define the function if a macro
16951         form has been defined.
16953 2002-07-23  Gerd Moellmann  <gerd.moellmann@t-online.de>
16955         * xdisp.c (redisplay_updating_p): New variable.
16956         (init_iterator): Don't free realized faces when
16957         redisplay_updating_p is set.
16958         (redisplay_internal): Set redisplay_updating_p while updating
16959         the display.
16961 2002-07-23  Richard M. Stallman  <rms@gnu.org>
16963         * editfns.c (Fmessage): Treat "" like nil.
16965 2002-07-23  Kenichi Handa  <handa@etl.go.jp>
16967         * xdisp.c (face_before_or_after_it_pos):
16968         Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
16970 2002-07-22  Juanma Barranquero  <lektu@terra.es>
16972         * callproc.c (init_callproc) [DOS_NT]:
16973         Initialize Vshared_game_score_directory to nil.
16974         (syms_of_callproc) [DOS_NT]: Likewise.
16976 2002-07-22  Gerd Moellmann  <gerd.moellmann@t-online.de>
16978         * xdisp.c (display_line): Replace an abort with xassert.
16980 2002-07-21  Richard M. Stallman  <rms@gnu.org>
16982         * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
16983         and END_UNCHANGED when setting buffer_unchanged_p.
16984         Use current_matrix_up_to_date_p to decide whether to use
16985         try_cursor_movement.
16987         * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
16989         * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
16991         * callproc.c (init_callproc): Set up Vshared_game_score_directory.
16992         Set to nil if dir does not exist.
16993         (syms_of_callproc): Init unconditionally and simply.
16995         * buffer.c (Fbuffer_list): Doc fix.
16997 2002-07-21  Ken Raeburn  <raeburn@gnu.org>
16999         * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
17001         * buffer.c (mmap_realloc): When shrinking, make sure number of
17002         pages to unmap is rounded towards zero.
17004         * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
17005         (XSETINT): Deleted.
17007         * m/att3b.h (XINT): Don't define.
17008         (VALBITS, VALMASK, XTYPE): Deleted.
17009         (DATA_SEG_BITS): Define.
17010         * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
17011         ARRAY_MARK_FLAG): Deleted.
17012         (DATA_SEG_BITS): Define.
17013         * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
17014         (DATA_SEG_BITS): Define.
17016 2002-07-20  Richard M. Stallman  <rms@gnu.org>
17018         * print.c (print_error_message): New args CONTEXT and CALLER.
17019         Calls changed.
17021         * lisp.h (print_error_message): Declare new args.
17023         * keyboard.c (cmd_error_internal): Pass Vsignaling_function
17024         and CONTEXT to print_error_message, don't print them here.
17025         For a Quit, don't use Vsignaling_function.
17026         Call message_log_maybe_newline.
17028         * Makefile.in (xsmfns.o): Don't depend on lisp.h.
17030 2002-07-20  Kim F. Storm  <storm@cua.dk>
17032         * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
17034 2002-07-19  Ken Raeburn  <raeburn@gnu.org>
17036         * bytecode.c (struct byte_stack): Pointers into byte string now
17037         point to const.
17038         * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
17039         const.
17040         * charset.h (BCOPY_SHORT): Source pointer now points to const.
17041         * coding.c (encode_eol, detect_coding, detect_eol):
17042         (decode_coding, encode_coding, detect_coding_system):
17043         Source strings now treated as const.
17044         (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
17045         modify Lisp string contents.
17046         * coding.h (decode_coding, encode_coding, detect_coding,
17047         detect_eol): Declarations updated.
17048         * composite.c (compose_chars_in_text): Treat Lisp string contents
17049         as const.
17050         * dispnew.c (safe_bcopy): Source pointer now points to const.
17051         * lisp.h (STRING_COPYIN): New macro.
17052         (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
17053         (internal_with_output_to_temp_buffer): Declarations updated.
17054         * print.c (temp_output_buffer_setup):
17055         (internal_with_output_to_temp_buffer): Buffer name argument is now
17056         pointer to const.
17057         * sound.c (struct sound_device): Function pointer field "write"
17058         buffer argument now points to const.
17059         (vox_write): Buffer argument points to const.
17060         * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
17061         contents as const.
17062         * sysdep.c (emacs_write): Buffer pointer now const.
17063         * term.c (encode_terminal_code): Buffer pointer now const.
17064         * xfaces.c (may_use_scalable_font_p): Argument now points to const.
17065         (x_face_list_fonts, x_update_menu_appearance):
17066         (hash_string_case_insensitive): Treat Lisp string contents as const.
17068 2002-07-19  Juanma Barranquero  <lektu@terra.es>
17070         * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
17072         * fileio.c (syms_of_fileio): Likewise.
17073         (Ffile_name_as_directory): Fix argument name in docstring.
17074         (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
17076 2002-07-18  Richard M. Stallman  <rms@gnu.org>
17078         * data.c (Fdefalias): Doc fix.
17080 2002-07-17  Dave Love  <fx@gnu.org>
17082         * intervals.h (text_property_stickiness): Use P_.
17084         * ccl.c: Remove `emacs' conditionals.
17085         (ccl_backtrace_table): Fix size spec.
17086         (ccl_driver): Fix type errors.
17088 2002-07-16  Ken Raeburn  <raeburn@gnu.org>
17090         * alloc.c (xstrdup, make_string, make_unibyte_string)
17091         (make_multibyte_string, build_string): String pointer args now
17092         point to const.
17093         * charset.c (find_charset_in_text, c_string_width):
17094         (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
17095         * fileio.c (report_file_error):
17096         * insdel.c (copy_text, count_size_as_multibyte, insert_1):
17097         (count_combining_before, count_combining_after, insert_1_both):
17098         (insert, insert_and_inherit, insert_string):
17099         (insert_before_markers, insert_before_markers_and_inherit):
17100         * lread.c (intern, oblookup, hash_string):
17101         * minibuf.c (temp_echo_area_glyphs):
17102         * search.c (fast_c_string_match_ignore_case):
17103         * sysdep.c (emacs_open, set_file_times):
17104         * xfaces.c (xstricmp):
17105         * xdisp.c (store_frame_title, string_char_and_length):
17106         (message_dolog, message2, message2_nolog, set_message): Likewise.
17107         (set_message_1): Cast message string argument to const pointer.
17108         * editfns.c (general_insert_function): Insertion function now
17109         takes pointer to const for input data.
17110         * charset.h (find_charset_in_text, c_string_width):
17111         (parse_str_as_multibyte): Declarations updated.
17112         * dispextern.h (xstricmp): Declaration updated.
17113         * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
17114         (count_size_as_multibyte, count_combining_before):
17115         (count_combining_after, insert_1, insert_1_both, message_dolog):
17116         (insert, insert_and_inherit, insert_before_markers)
17117         (insert_before_markers_and_inherit, set_message, message2):
17118         (message2_dolog, build_string, make_string, make_unibyte_string):
17119         (make_multibyte_string, intern, oblookup, report_file_error):
17120         (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
17121         (emacs_open, xstrdup): Declarations updated.
17122         * systime.h (set_file_times): Declaration updated.
17124         * charset.c (find_charset_in_text, lisp_string_width): Use const
17125         for pointer to lisp string data.
17126         * charset.h (FETCH_STRING_CHAR_ADVANCE):
17127         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
17128         * coding.c (Ffind_coding_systems_region_interval):
17129         * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
17130         (Fmake_directory_internal, Fdelete_directory):
17131         (Ffile_name_absolute_p, Fwrite_region, double_dollars):
17132         * fontset.c (font_family_registry, fs_query_fontset):
17133         (list_fontsets):
17134         * frame.c (Fframe_parameter):
17135         * keyboard.c (cmd_error_internal):
17136         * keymap.c (Fdescribe_buffer_bindings):
17137         * lread.c (complete_filename_p, openp):
17138         * minibuf.c (Fminibuffer_complete_word):
17139         * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
17140         (face_before_or_after_it_pos, next_element_from_string):
17141         (get_overlay_arrow_glyph_row, display_mode_element):
17142         (decode_mode_spec_coding):
17143         * xterm.c (same_x_server): Likewise.
17145         * buffer.c (reset_buffer_local_variables): Delete "#if 0"
17146         settings of non-existent fields.
17148         * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
17149         copy a lisp value.
17151         * lread.c (Fintern_soft): Use string macros instead of
17152         Lisp_String fields.
17153         * keyboard.c (echo_char, parse_modifiers_uncached):
17154         (parse_solitary_modifier, Fexecute_extended_command): Likewise.
17155         * textprop.c (validate_interval_range, interval_of): Likewise.
17157         * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
17159         * charset.h (FETCH_STRING_CHAR_ADVANCE)
17160         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
17161         XSTRING()->size_byte.
17163         * lisp.h (SDATA, SREF): Produce rvalue.
17164         (SSET): New macro.
17165         * alloc.c (make_event_array): Use SSET for storing into a string.
17166         * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
17167         a string.
17168         * casefiddle.c (casify_object): Use SSET.
17169         * charset.h (FETCH_STRING_CHAR_ADVANCE)
17170         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
17171         address of string contents.
17172         * data.c (Faref): Use SDATA.
17173         (Faset): Use SDATA, SSET.
17174         * dired.c (directory_files_internal): Use SSET.
17175         * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
17176         (Fread_file_name): Use SREF, SSET.
17177         * fns.c (concat): Use SSET.
17178         (concat, Fdelete): Use SDATA.
17179         * insdel.c (insert_from_string_1): Use SDATA.
17180         * keyboard.c (Fevent_convert_list): Use SREF.
17181         * lread.c (Fload): Use SDATA, SSET.
17182         * macfns.c (validate_x_resource_name): Use SSET.
17183         * process.c (status_message): Use SSET.
17184         * search.c (wordify): Use SDATA.
17185         (Freplace_match): Use SREF.
17186         * w32fns.c (validate_x_resource_name): Use SSET.
17187         * xfns.c (validate_x_resource_name): Use SSET.
17188         * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
17190 2002-07-16  Richard M. Stallman  <rms@gnu.org>
17192         * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
17194         * xdisp.c (reconsider_clip_changes):
17195         Don't test prevent_redisplay_optimizations_p.
17196         (redisplay_internal): Test prevent_redisplay_optimizations_p
17197         along with clip_changed in some cases.
17198         (try_window_id): Likewise.
17199         (redisplay_window): New local var buffer_unchanged_p.
17201         * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
17203         * process.c (create_process): Test USG_SUBTTY_WORKS.
17204         (process_send_signal): Clean up handling of GID.
17205         Detect errors in ioctls meant to set GID.
17207         * window.c (temp_output_buffer_show):
17208         Don't set prevent_redisplay_optimizations_p.
17210 2002-07-15  Juanma Barranquero  <lektu@terra.es>
17212         * eval.c (Fdefvaralias): Add docstring argument.
17214 2002-07-15  Ken Raeburn  <raeburn@gnu.org>
17216         * lisp.h (STRING_INTERVALS): Produce rvalue.
17217         (STRING_SET_INTERVALS): New macro.
17218         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
17219         * fns.c (Fstring_as_multibyte): Likewise.
17220         * intervals.c (balance_possible_root_interval, delete_interval)
17221         (create_root_interval, copy_intervals_to_string): Likewise.
17222         * textprop.c (set_text_properties): Likewise.  Use NULL_INTERVAL
17223         instead of 0.
17225 2002-07-14  Ken Raeburn  <raeburn@gnu.org>
17227         * lisp.h (STRING_SET_CHARS): New macro.
17228         (SCHARS, SBYTES): Produce rvalues.
17229         * dired.c (directory_files_internal): Use STRING_SET_CHARS.
17230         * fns.c (concat): Likewise.
17231         * lread.c (read_vector): Likewise.
17233         * lisp.h (SMBP): Delete.  All uses changed to STRING_MULTIBYTE.
17234         (STRING_SET_UNIBYTE): New macro.
17235         (SET_STRING_BYTES): Delete.  Callers (all of which supplied a
17236         length of -1) changed to use STRING_SET_UNIBYTE.
17237         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17238         casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
17239         composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
17240         dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
17241         fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
17242         keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
17243         minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
17244         sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
17245         w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
17246         w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
17247         xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
17248         STRING_BYTES or indirection changed to SCHARS, SBYTES,
17249         STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
17250         unchanged for now.
17252 2002-07-13  Kim F. Storm  <storm@cua.dk>
17254         * keyboard.c (command_loop_1): Invert check on Vmemory_full.
17256 2002-07-12  Richard M. Stallman  <rms@gnu.org>
17258         * fileio.c (Fwrite_region): Doc fix.
17260         * print.c (print_error_message): Don't handle Vsignaling_function here.
17262         * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
17263         (command_loop_1): Avoid certain actions after memory-full error.
17265         * eval.c (Fsignal): Don't call cancel_hourglass.
17266         For a memory-full error, don't call Vsignal_hook_function
17267         and don't set Vsignaling_function.
17269         * process.c (process_send_signal): Add abort call.
17271 2002-07-11  Markus Rost  <rost@math.ohio-state.edu>
17273         * keymap.c (Fkey_binding): Fix typo.
17275 2002-07-11  Richard M. Stallman  <rms@gnu.org>
17277         * alloc.c (Vmemory_full): New variable.
17278         (Vmemory_signal_data): Rename from memory_signal_data.
17279         Uses changed.
17280         (syms_of_alloc): Defvar them.
17281         (memory_full, buffer_memory_full): Set Vmemory_full.
17283         * lisp.h (Vmemory_full): Add declaration.
17284         (current_column, indented_beyond_p): Change declaration.
17286         * indent.c (last_known_column): Declare as double, not float.
17287         (current_column, current_column_1, string_display_width)
17288         (position_indentation): Return `double'.
17289         (indented_beyond_p): Arg `column' is `double'.  Callers changed.
17291         * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
17292         (back_to_previous_visible_line_start)
17293         (reseat_at_next_visible_line_start, next_element_from_buffer):
17294         Use `double', not `float', when calling indented_beyond_p.
17296         * s/hpux11.h (BROKEN_SA_RESTART): Define.
17298         * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
17300 2002-07-11  Juanma Barranquero  <lektu@terra.es>
17302         * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
17303         * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
17304         * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
17305         * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
17306         * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
17307         * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
17309 2002-07-10  Juanma Barranquero  <lektu@terra.es>
17311         * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
17312         All callers changed.
17314 2002-07-09  Stefan Monnier  <monnier@cs.yale.edu>
17316         * data.c (Fdefalias): Add an optional `docstring' argument.
17317         (set_internal, Fsetq_default): Use XCAR/XCDR.
17319         * composite.c (HASH_VALUE, HASH_KEY):
17320         * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
17322 2002-07-09  Kenichi Handa  <handa@etl.go.jp>
17324         * callproc.c (Fcall_process): Fix previous change.
17326 2002-07-07  Stefan Monnier  <monnier@cs.yale.edu>
17328         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
17329         Add support for hash-tables.
17330         (Ftry_completion): Return t even if the string appears multiple times.
17332         * fns.c (Fnconc): Use XCDR.
17333         (Fprovide): Use CONSP and XCDR.
17334         (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
17335         (HASH_TABLE_SIZE): Delete: moved to lisp.h.
17336         (Fmake_hash_table): Accept `:size nil'.
17337         (Fmakehash): Delete: moved to subr.el.
17338         (syms_of_fns): Don't defsubr makehash.
17340         * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
17341         (HASH_TABLE_SIZE): Move from fns.c.
17343 2002-07-07  Richard M. Stallman  <rms@gnu.org>
17345         * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
17346         Instead just return 0 when there is something to be done.
17347         (try_scrolling): If make_cursor_line_fully_visible returns 0,
17348         retry scrolling as if cursor were off the bottom.
17349         (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
17350         return CURSOR_MOVEMENT_MUST_SCROLL.
17351         (redisplay_window): If make_cursor_line_fully_visible returns 0,
17352         go to try_to_scroll.
17354         * buffer.c (Fbuffer_local_value): Store current value into its binding
17355         so we get the up-to-date value for the binding that is loaded.
17357         * eval.c (Fdefmacro): Doc fix.
17359 2002-07-05  Dave Love  <fx@gnu.org>
17361         * keyboard.c (read_key_sequence): Set initial_idleness_start_time
17362         correctly.
17364         * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
17365         (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
17366         (ccl_driver): Add cases for CCL_LookupIntConstTbl,
17367         CCL_LookupCharConstTbl.
17368         (syms_of_ccl): Defvar translation-hash-table-vector.
17370 2002-07-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17372         * xdisp.c: Remove unused variable `face'.
17374 2002-07-04  Juanma Barranquero  <lektu@terra.es>
17376         * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
17377         obsolescence information.
17379 2002-07-03  Andrew Choi  <akochoi@shaw.ca>
17381         * macterm.c (x_list_fonts): Fix comment.  Cache fonts matching
17382         pattern.  Search cache first.
17383         (init_font_name_table): Also add entry for jisx0201.1976-0 coding
17384         for Japanese font.
17385         (XLoadQueryFont): Use it.
17387 2002-07-02  Richard M. Stallman  <rms@gnu.org>
17389         * keymap.c (Fdefine_key): Doc fix.
17391         * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
17393 2002-07-02  Juanma Barranquero  <lektu@terra.es>
17395         * keymap.c (syms_of_keymap): Fix typo.
17397 2002-07-01  Andrew Choi  <akochoi@shaw.ca>
17399         * s/darwin.h: Define POSIX_SIGNALS.
17401         * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
17402         and FSRefMakePath to convert FSSpec returned with Apple Event to
17403         Posix pathname.
17404         (mac_initialize) [TARGET_API_MAC_CARBON]:
17405         Call init_required_apple_events and disable the `Quit' menu item
17406         provided automatically by the Carbon Toolbox.
17408 2002-07-01  Dave Love  <fx@gnu.org>
17410         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
17411         for K&R.
17413         * xterm.c: Fix prototype for K&R.
17415         * term.c (costs_set): Declare static, non-initialized for pcc.
17417 2002-07-01  Richard M. Stallman  <rms@gnu.org>
17419         * keyboard.c (timer_last_idleness_start_time): New variable.
17420         (timer_start_idle): Set that.
17421         (read_key_sequence): Use that to reset timer_idleness_start_time
17422         to previous value.
17424         * window.c (Frecenter): With arg, set optional_new_start.
17426         * xdisp.c (redisplay_internal): Make optional_new_start really work.
17428         * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
17429         buffer for completion.
17431 2002-06-29  Ken Raeburn  <raeburn@gnu.org>
17433         * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
17435 2002-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17437         * keyboard.c (readable_filtered_events): New function that filters
17438         FOCUS_IN_EVENT depending on parameter.
17439         (readable_events): Calls readable_filtered_events, not filtering
17440         FOCUS_IN_EVENT.
17441         (get_filtered_input_pending): New function, filtering parameter passed
17442         to readable_filtered_events.
17443         (get_input_pending): Calls get_filtered_input_pending, not filtering
17444         FOCUS_IN_EVENT.
17445         (Finput_pending_p): Calls get_filtered_input_pending, DO filter
17446         FOCUS_IN_EVENT.
17448         * xterm.h (struct x_output): Add focus_state.
17450         * xterm.c (x_focus_changed): New function.
17451         (x_detect_focus_change): New function.
17452         (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
17453         EnterNotify and LeaveNotify to track X focus changes.
17455 2002-06-28  Andreas Schwab  <schwab@suse.de>
17457         * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
17459 2002-06-27  Kim F. Storm  <storm@cua.dk>
17461         * xdisp.c (mode_line_string_list, mode_line_string_face)
17462         (mode_line_string_face_prop): New variables.
17463         (store_mode_line_string): New function.
17464         (display_mode_element): Use store_mode_line_string to
17465         add mode-line string elements to mode_line_string_list
17466         when mode_line_string_list is non-nil.
17467         (Fformat_mode_line): Now returns propertized string by
17468         default.  New arg NO-PROPS to ignore properties.
17469         (decode_mode_spec): Only add two dashes for %- in propertized
17470         mode-line string.
17471         (syms_of_xdisp): Init and staticpro mode_line_string_list.
17473 2002-06-27  Stefan Monnier  <monnier@cs.yale.edu>
17475         * minibuf.c (minibuffer_completion_contents): Add return type.
17477 2002-06-27  Juanma Barranquero  <lektu@terra.es>
17479         * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
17481 2002-06-26  Juanma Barranquero  <lektu@terra.es>
17483         * fileio.c (read_file_name_cleanup): Add missing return.
17485 2002-06-26  Richard M. Stallman  <rms@gnu.org>
17487         * window.c (Frecenter): Don't set force_start flag.
17489         * minibuf.c (do_completion, Fminibuffer_complete_word)
17490         (Fminibuffer_completion_help): Complete just the text before point.
17491         (minibuffer_completion_contents): New function.
17493         * buffer.c (Fbury_buffer): Use frames_discard_buffer.
17495         * frame.c (frames_bury_buffer): Function deleted.
17497 2002-06-25  Miles Bader  <miles@gnu.org>
17499         * callint.c (Fcall_interactively): When checking to see if doprnt hit
17500         the end of callint_message, allow for a terminating '\0'.
17502 2002-06-24  Juanma Barranquero  <lektu@terra.es>
17504         * w32select.c: Include composite.h.
17506         * w16select.c: Likewise.
17508 2002-06-24  Kenichi Handa  <handa@etl.go.jp>
17510         * callproc.c (Fcall_process): If code detection is necessary,
17511         call detect_coding directly here.
17513         * coding.c (detect_eol): Preserve coding->cmp_data.
17515         * w16select.c (Fw16_get_clipboard_data):
17516         * w32fns.c (w32_to_x_font):
17517         * w32select.c (Fw32_get_clipboard_data):
17518         * xselect.c (selection_data_to_lisp_data):
17519         * xterm.c (XTread_socket): Disable composition handling.
17521 2002-06-24  Stefan Monnier  <monnier@cs.yale.edu>
17523         * print.c (temp_output_buffer_setup): Kill all local variables.
17525 2002-06-22  Stefan Monnier  <monnier@cs.yale.edu>
17527         * lread.c (Fread): Remove redundant and imprecise declaration.
17529         * xfns.c (check_x_display_info): Use check_x_frame.
17531         * .gdbinit (xprintsym): Use the new `xname' field.
17532         (xsymbol): Use it.
17534 2002-06-22  Jason Rumney  <jasonr@gnu.org>
17536         * w32fns.c (file_dialog_callback): New function.
17537         (Fx_file_dialog): Allow selecting directories as well as files.
17539 2002-06-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17541         * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
17542         OpenBSD.  Add support for mipseb-*-netbsd* machines.
17544 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
17546         * macterm.c (mac_scroll_area): Set foreground and backcolor to
17547         black and white before scrolling.  Restore frame background and
17548         foreground color after scrolling.
17549         (do_window_update): Call XClearWindow before calling expose_frame.
17550         (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
17551         FRAME_FOREGROUND_PIXEL of frame.
17553         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
17554         test Mac command key as <ALT> key.
17556 2002-06-17  Stefan Monnier  <monnier@cs.yale.edu>
17558         * window.c (Fset_window_configuration): Lisp_Object/int mixup.
17560         * keyboard.c (read_key_sequence): Be more careful with first_unbound.
17561         Lookup keys in function-key-map immediately so that key-translation-map
17562         can be applied earlier.
17563         Remove function_key_possible and key_translation_possible, replaced
17564         by checking `keytran_start < t'.
17566         * .gdbinit (xsymbol): Use the new `xname' field.
17568 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
17570         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
17571         test Mac command key as <ALT> key.
17573         * mac.c (do_applescript): Call initialize_applescript if necessary
17574         when first called.  Dispose of result_desc only when there is no error.
17575         (Fdo_applescript): Use %d format specifier instead of %ld.
17577 2002-06-16  Andrew Choi  <akochoi@shaw.ca>
17579         * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
17580         of FrontWindow for cases keyDown and autoKey.
17582         * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
17583         Vdefault_fontset to Monaco with mac-roman coding.
17585         * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
17586         init_process before and after inclusion of Carbon/Carbon.h, resp.
17588         * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
17589         cursor_gc.
17590         (add_font_name_table_entry): New function.
17591         (init_font_name_table): Use add_font_name_table_entry; add italic,
17592         bold, and bold-italic entries for truetype fonts.
17594         * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
17595         for Mac too.
17596         (try_font_list) [MAC_OS]: If no font matches given registry, try
17597         fonts with any registry matching face_family.
17598         (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
17600         * s/darwin.h: If autoconf detects the Ncurses library, define
17601         LIBS_TERMCAP to -lncurses to use it.
17603 2002-06-16  Eli Zaretskii  <eliz@is.elta.co.il>
17605         * strftime.c [__hpux]: Include sys/_mbstate_t.h.
17607 2002-06-15  Richard M. Stallman  <rms@gnu.org>
17609         * window.c (Fset_window_configuration): Explicitly preserve
17610         the point value that new_current_buffer had at the start.
17612 2002-06-14  Juanma Barranquero  <lektu@terra.es>
17614         * composite.c (Fcompose_region_internal, Fcompose_string_internal):
17615         Fix typos.
17617 2002-06-14  Kim F. Storm  <storm@cua.dk>
17619         * insdel.c (insert_1_both, insert_from_string_1)
17620         (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
17621         insert happened in the end_unchanged region.  Otherwise, the
17622         redisplay may be confused and duplicate the last line in the
17623         buffer [seen after save-buffer when require-final-newline==t].
17625 2002-06-13  Jason Rumney  <jasonr@gnu.org>
17627         * w32.c (init_environment): Remove EMACSLOCKDIR.
17628         (stat): Swap _S_IFDIR and _S_IFREG.
17630 2002-06-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17632         * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
17633         * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
17634         * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
17635         ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
17636         to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
17637         NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
17638         to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
17639         language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
17640         to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
17641         W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
17642         SELECTION_REQUEST_EVENT, selection_clear_event to
17643         SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
17644         delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
17645         ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
17646         menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
17647         DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
17648         no_event to NO_EVENT.
17650 2002-06-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17652         * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
17654 2002-06-12  Stefan Monnier  <monnier@cs.yale.edu>
17656         * intervals.c (textget): Don't forget to `return'.
17657         (lookup_char_property): Use XCAR/XCDR.
17659 2002-06-12  Juanma Barranquero  <lektu@terra.es>
17661         * xdisp.c (Fformat_mode_line): Fix typo.
17663 2002-06-12  Kim F. Storm  <storm@cua.dk>
17665         * xdisp.c (Fformat_mode_line): New function.
17666         (frame_title_buf, frame_title_buf_end, frame_title_ptr)
17667         (store_frame_title_char, store_frame_title): Use unconditionally.
17668         (init_xdisp): Defsubr Fformat_mode_line.
17669         Initialize frame_title_buf etc. unconditionally.
17671 2002-06-11  Stefan Monnier  <monnier@cs.yale.edu>
17673         * keyboard.c (read_key_sequence):
17674         Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
17675         things through those maps after downcasing events.
17676         Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
17677         applies after function-key-map.
17678         Make sure that keytran can be done in the middle in the sequence.
17679         Be careful not to throw away events past the one we downcase.
17681         * lread.c (read_integer): Remove unused var `tem'.
17682         (read1): Fix int/Lisp_Object mixup.
17684         * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
17686 2002-06-11  Richard M. Stallman  <rms@gnu.org>
17688         * keyboard.c (readable_events): Ignore any number of
17689         FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
17691 2002-06-09  Miles Bader  <miles@gnu.org>
17693         * xfaces.c (Ftty_supports_face_attributes_p): New function.
17694         (parse_rgb_list, tty_lookup_color): New functions.
17695         (tty_defined_color): Use `tty_lookup_color' to do all the work.
17696         (color_distance, Fcolor_distance): New functions.
17697         (TTY_SAME_COLOR_THRESHOLD): New macro.
17698         (Qtty_color_standard_values): New variable.
17699         (syms_of_xfaces): Initialize new vars & functions.
17701 2002-06-08  Colin Walters  <walters@verbum.org>
17703         * textprop.c (Vchar_property_alias_alist): New variable.
17704         (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
17706         * intervals.c (lookup_char_property): New function for looking up
17707         overlay and text properties, created from textget.
17708         (textget): Use it.
17710         * intervals.h (lookup_char_property): Declare.
17711         (Vchar_property_alias_alist): Declare.
17713         * buffer.c (Foverlay_get): Use lookup_char_property.
17715 2002-06-07  Sam Steingold  <sds@gnu.org>
17717         * xselect.c (lisp_data_to_selection_data): Fix last change:
17718         *data_ret is not a Lisp string, while unibyte_string is.
17720 2002-06-07  Eli Zaretskii  <eliz@is.elta.co.il>
17722         * xselect.c (lisp_data_to_selection_data): Fix last change:
17723         set size_ret.
17725 2002-06-07  Andreas Schwab  <schwab@suse.de>
17727         * m/amdx86-64.h: New file.
17729 2002-06-05  Eli Zaretskii  <eliz@is.elta.co.il>
17731         * fns.c (Fstring_make_unibyte): Doc fix.
17733         * xselect.c (lisp_data_to_selection_data): If the requested type
17734          is STRING, call string_make_unibyte to encode the selected text
17735          as a string.
17737         * window.c (Fset_window_hscroll): Doc fix.
17739 2002-06-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17741         * fileio.c (choose_write_coding_system):
17742         Call select-safe-coding-system properly.
17744 2002-06-03  Richard M. Stallman  <rms@gnu.org>
17746         * xdisp.c (message_with_string): Error if STRING is not a string.
17748         * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
17750         * fileio.c (choose_write_coding_system): Pass FILE arg to
17751         Vselect_safe_coding_system_function.
17753 2002-06-03  Ken Raeburn  <raeburn@gnu.org>
17755         * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
17757 2002-06-02  Thien-Thi Nguyen  <ttn@gnu.org>
17759         * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
17760         * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
17761         * keymap.c (describe_command): Likewise.
17762         * minibuf.c (read_minibuf): Likewise.
17764         * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
17765         Cast `current_column' return value to int.
17766         (back_to_previous_visible_line_start)
17767         (reseat_at_next_visible_line_start, next_element_from_buffer):
17768         Cast `indented_beyond_p' 3rd arg to float.
17770         * indent.c (last_known_column): Now a float.
17771         (current_column_1, position_indentation, current_column)
17772         (string_display_width): Return float.
17773         (Fcurrent_column): Cast `current_column' return value to int.
17774         (Fcurrent_indentation): Cast `position_indentation' retval to int.
17775         (indented_beyond_p): Third arg now a float.
17776         (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
17778         * lisp.h (current_column): Now returns float.
17779         (indented_beyond_p): 3rd arg now a float.
17781 2002-05-31  Eli Zaretskii  <eliz@is.elta.co.il>
17783         * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
17784         is Qcompound_text_with_extensions.
17786         * xselect.c (lisp_data_to_selection_data): Always set selection
17787         type as string if x_encode_text returns streingp non-NULL.
17789         * s/netbsd.h: Include /usr/pkg in the run time shared library path.
17791 2002-05-30  Richard M. Stallman  <rms@gnu.org>
17793         * window.c (Fset_window_configuration): Correct the handling
17794         of point in current buffer, to work with multiple windows.
17796 2002-05-29  Colin Walters  <walters@verbum.org>
17798         * lread.c (Fread_from_string): Don't depend on order of evaluation
17799         for C function parameters.
17801 2002-05-28  Richard M. Stallman  <rms@gnu.org>
17803         * xterm.c (x_display_and_set_cursor): Change the cursor in the same
17804         way for blinked-off state and for a nonselected window.
17806         * window.c (window_scroll_pixel_based): Don't call Fbolp;
17807         instead, see if the new start pos is at beginning of line.
17809         * fileio.c (Fwrite_region): If START is a string, don't
17810         make any annotations.
17812         * eval.c (syms_of_eval): Doc fix.
17814 2002-05-28  Colin Walters  <walters@debian.org>
17816         * emacs.c (USAGE1): Add --no-splash.
17817         (standard_args): Ditto.
17819 2002-05-28  Colin Walters  <walters@gnu.org>
17821         * lread.c (readchar_count): New variable.
17822         (readchar): Increment it.
17823         (unreadchar): Decrement it.
17824         (read_multibyte): Decrement it.
17825         (Vread_with_symbol_positions): New variable.
17826         (Vread_symbol_positions_list): New variable.
17827         (read_internal_start): New function, created from Fread and
17828         Fread_from_string.  Handle Vread_symbol_positions_list and
17829         Vread_with_symbol_positions.
17830         (readevalloop, Fread, Fread_from_string): Use it.
17831         (read1): Use readchar_count to add symbol positions to
17832         Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
17833         (syms_of_lread): DEFVAR_LISP and initialize them.
17835         * lread.c (read0, read1, read_list, read_vector, read_multibyte)
17836         (substitute_object_recurse, substitute_object_in_subtree)
17837         (substitute_in_interval): Prototype.
17838         (read_multibyte): Return c if it's less than zero.
17840 2002-05-28  Kim F. Storm  <storm@cua.dk>
17842         * fileio.c (Fread_file_name_internal): Added brute-force
17843         speed up for using predicate file-directory-p.
17845 2002-05-28  Kim F. Storm  <storm@cua.dk>
17847         * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
17848         New variables.
17849         (syms_of_fileio): DEFVAR_LISP them.
17850         (read_file_name_cleanup): New unwind function.
17851         (Fread_file_name_internal): Only return completions satifying
17852         Vread_file_name_predicate.  Temporarily unwind protect and rebind
17853         default-directory while checking completions against the predicate.
17854         (Fread_file_name): Added PREDICATE argument.  Specbind it to
17855         Vread_file_name_predicate during completion.
17856         Call Vread_file_name_function to read the file name if non-nil.
17858         * lisp.h (Fread_file_name): Now has 6 args.
17860         * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
17861         predicate for Fread_file_name when reading directory name.
17862         Supply Qnil for predicate in other calls to Fread_file_name.
17864 2002-05-26  Miles Bader  <miles@gnu.org>
17866         * term.c (tty_capable_p): New function.
17867         * dispextern.h (tty_capable_p): New function declaration.
17868         (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
17869         (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
17871 2002-05-23  Stefan Monnier  <monnier@cs.yale.edu>
17873         * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
17874         (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
17875         (Vwrite_region_annotate_functions): Docstring fix.
17877 2002-05-23  Kim F. Storm  <storm@cua.dk>
17879         * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
17880         phys_cursor's hpos is overwritten.  This is still not completely
17881         correct, as it doesn't really make sense to use hpos at all to
17882         get the cursor glyph (as that is relative to the width of the
17883         characters on the line, which may have changed during the update).
17885 2002-05-22  Jason Rumney  <jasonr@gnu.org>
17887         * w32fns.c (enumfont_t): Remove tail, make pattern a normal
17888         Lisp_Object.
17889         (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
17890         Use modified enumfont_t struct.
17892         * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
17894         * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
17895         Handle the `hbar' cursor type.
17896         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
17898         * w32fns.c (Qhbar): New variable.
17899         (x_specified_cursor_type): Use it.
17901 2002-05-21  Ken Raeburn  <raeburn@gnu.org>
17903         * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
17904         now, when the address is needed.
17906 2002-05-21  Colin Walters  <walters@gnu.org>
17908         * Makefile.in (shortlisp): Add font-core.el.
17910 2002-05-20  Richard M. Stallman  <rms@gnu.org>
17912         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
17914         * keyboard.c (read_char_minibuf_menu_prompt): Don't list
17915         equivalent key bindings here.
17917 2002-05-20  Ken Raeburn  <raeburn@gnu.org>
17919         Change symbol structure to contain a lisp object for the symbol
17920         name:
17921         * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
17922         object field named "xname".
17923         (SYMBOL_NAME): New macro.
17924         * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
17925         name field.
17926         * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
17927         (mark_object, gc_sweep): Use symbol xname field and XSTRING
17928         instead of name field.
17929         * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
17930         SYMBOL_NAME instead of XSYMBOL and name field.
17931         * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
17932         instead of XSYMBOL and name field.
17933         * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
17934         and SYMBOL_NAME instead of XSYMBOL and name field.
17935         * coding.c (Fread_coding_system, code_convert_region1)
17936         (code_convert_string1, code_convert_string_norecord)
17937         (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
17938         XSYMBOL and name field.
17939         * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
17940         (Fmake_variable_buffer_local, Fmake_local_variable)
17941         (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
17942         of XSYMBOL and name field.
17943         * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
17944         XSYMBOL and name field.
17945         * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
17946         instead of XSYMBOL and name field.
17947         * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
17948         XSYMBOL and name field.
17949         * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
17950         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17951         * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
17952         instead of XSYMBOL and name field.
17953         * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
17954         (parse_modifiers, apply_modifiers, Fevent_convert_list)
17955         (parse_solitary_modifier, Fexecute_extended_command):
17956         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17957         * keymap.c (silly_event_symbol_error, Fsingle_key_description)
17958         (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
17959         of XSYMBOL and name field.
17960         (describe_command, describe_translation): Use SYMBOL_NAME and
17961         assignment instead of XSYMBOL and name field and XSETSTRING.
17962         * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
17963         instead of XSYMBOL and name field.
17964         (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
17965         name field and XSETSTRING.
17966         * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17967         of XSYMBOL and name field.
17968         * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
17969         assignment instead of XSYMBOL and name field and XSETSTRING.
17970         * print.c (print_error_message, print_object): Use SYMBOL_NAME and
17971         XSTRING instead of XSYMBOL and name field.
17972         * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
17973         and XSTRING instead of XSYMBOL and name field.
17974         * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
17975         and XSTRING instead of XSYMBOL and name field.
17976         * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
17977         XSTRING instead of XSYMBOL and name field.
17978         * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
17979         of XSYMBOL and name field.
17980         * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
17981         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
17983 2002-05-19  Ken Raeburn  <raeburn@gnu.org>
17985         * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
17986         and XCDR real rvalues in most configurations.
17988         * buffer.c (fix_overlays_in_range, fix_overlays_before):
17989         Don't take the address of the cdr part of a cons cell; instead, track
17990         the parent cell and call XSETCDR, or set the variable for the head
17991         of the list if we haven't started down the list yet.
17993 2002-05-19  Richard M. Stallman  <rms@gnu.org>
17995         * doc.c (reread_doc_file): Don't ask for confirmation.
17997 2002-05-18  Jason Rumney  <jasonr@gnu.org>
17999         * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
18000         (xbm_load_image): Use it.
18001         (xbm_load): Ditto.
18002         (xbm_read_bitmap_data): Reverted to xfns.c version.
18003         From David Ponce <david@dponce.com>.
18005 2002-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
18007         * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
18008         2.02 and later.
18010 2002-05-16  Juanma Barranquero  <lektu@terra.es>
18012         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
18014 2002-05-15  Stefan Monnier  <monnier@cs.yale.edu>
18016         * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
18017         meaningful test.
18018         (read_char_minibuf_menu_prompt): Fix typo.
18020 2002-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
18022         * eval.c (Fcommandp): Doc fix.
18024 2002-05-13  Stefan Monnier  <monnier@cs.yale.edu>
18026         * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
18027         (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
18028         (Fset_keymap_parent): Gcpro a bit more.
18029         (access_keymap): Gcpro around meta_map call and around the main loop.
18030         (get_keyelt): Gcpro when following indirect references.
18031         (copy_keymap_item): New fun, extracted from Fcopy_keymap.
18032         (copy_keymap_1, Fcopy_keymap): Use it.  Don't copy the parent map.
18033         (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
18034         Remove useless ad-hoc remap code.
18036 2002-05-13  Richard M. Stallman  <rms@gnu.org>
18038         * search.c (search_buffer): Give up boyer moore search if inverse
18039         translation change charset_base.
18041 2002-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
18043         * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
18044         characters is carried over from the previous block of text, adjust
18045         coding->produced to account for the extra character.
18047 2002-05-11  Andreas Schwab  <schwab@suse.de>
18049         * coding.c (intersection): Keep the elements of the returned list
18050         in the same order as in the first list.
18052 2002-05-11  Kim F. Storm  <storm@cua.dk>
18054         * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
18055         only update cmm_size if realloc actually succeeds.
18056         Testing with initial size of 2 elements revealed that using
18057         realloc on GNU/Linux would cause a random trap in xmalloc
18058         later on, so I rewrote the code to use malloc/bcopy/free instead
18059         of realloc.
18061 2002-05-10  Jason Rumney  <jasonr@gnu.org>
18063         * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
18065 2002-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
18067         * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
18068         parens, to ensure correct evaluation order.
18070 2002-05-10  Kim F. Storm  <storm@cua.dk>
18072         * keymap.c (Vemulation_mode_map_alists): New variable.
18073         (syms_of_keymap): DEFVAR_LISP it.
18074         (current_minor_maps): Process keymap alists in that list before
18075         minor-mode-overriding-map-alist and minor-mode-map-alist.
18077 2002-05-09  Richard M. Stallman  <rms@gnu.org>
18079         * search.c (Freplace_match): Doc fix.
18081 2002-05-09  Kim F. Storm  <storm@cua.dk>
18083         * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18084         Enlarge cursor rectangle drawn around image with non-zero relief.
18086         * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
18087         Enlarge cursor rectangle drawn around image with non-zero relief.
18089         * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
18090         Enlarge cursor rectangle drawn around image with non-zero relief.
18092 2002-05-07  Eli Zaretskii  <eliz@is.elta.co.il>
18094         * xselect.c (lisp_data_to_selection_data): Don't set selection
18095         type if comes from the Lisp object's car.  If the selection
18096         contains a pure ASCII text, always return QSTRING as its type.
18098 2002-05-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18100         * mac.c (mac-cut-function): Doc fix.
18102 2002-05-05  Richard M. Stallman  <rms@gnu.org>
18104         * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
18106 2002-05-04  Jason Rumney  <jasonr@gnu.org>
18108         * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
18109         for event-click-count.
18111         * process.c (init_process): Only add server subfeature if we can
18112         use non-blocking I/O.
18114 2002-05-04  Andrew Choi  <akochoi@shaw.ca>
18116         * macterm.c (XTread_socket): Call WaitNextEvent once instead of
18117         repeatedly.
18119 2002-05-03  Jason Rumney  <jasonr@gnu.org>
18121         * process.c (Fmake_network_process): Only support server sockets
18122         when we can make them non-blocking.
18124         * s/ms-w32.h (HAVE_SELECT): Define.
18126         * w32.h (FILE_NDELAY): New flag.
18128         * w32.c (sys_getpeername, fcntl): New functions.
18129         (_sys_read_ahead): Temporarily block on non-blocking sockets.
18131         * w32proc.c: Include sys/file.h.
18133 2002-05-03  Colin Walters  <walters@verbum.org>
18135         * callproc.c (Vgame_score_directory): Renamed to
18136         Vshared_game_score_directory.
18138 2002-04-30  Richard M. Stallman  <rms@gnu.org>
18140         * s/gnu.h [emacs]: Include stdio.h.
18141         (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
18143         * eval.c (do_autoload): Error if called while preparing to dump.
18145         * fns.c (Frequire): Error if need to load while preparing to dump.
18147 2002-04-28  Colin Walters  <walters@verbum.org>
18149         * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
18150         Default to "~/.emacs.d/games".
18152 2002-04-29  Stefan Monnier  <monnier@cs.yale.edu>
18154         * lread.c (openp): Change arg exec_only to predicate.
18155         (build_load_history): Use XCAR/XCDR.
18156         (Flocate_file_internal): New fun.
18157         (syms_of_lread): Defsubr it.
18158         (Fload): Update call to openp.
18160         * lisp.h (openp): Update prototype.
18162         * xfns.c (x_create_bitmap_from_file, x_find_image_file):
18163         * w32proc.c (sys_spawnve):
18164         * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
18165         * w32.c (check_windows_init_file):
18166         * sound.c (Fplay_sound_internal):
18167         * process.c (Fstart_process):
18168         * macfns.c (x_create_bitmap_from_file, x_find_image_file):
18169         * mac.c (run_mac_command):
18170         * emacs.c (init_cmdargs):
18171         * callproc.c (Fcall_process): Update call to openp.
18173         * textprop.c (remove_properties): Don't use XCAR without CONSP.
18175         * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
18177 2002-04-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18179         * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
18180         (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
18182 2002-04-28  Richard M. Stallman  <rms@gnu.org>
18184         * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
18186         * eval.c (Fcommandp): New arg for_call_interactively.
18187         * lisp.h (Fcommandp): Declare new arg.
18189 2002-04-28  Jason Rumney  <jasonr@gnu.org>
18191         * w32proc.c (syms_of_w32proc): Get true file attributes by default.
18193         * w32.c (stat, fstat): Use file index information to generate
18194         inodes for directories where available.
18196 2002-04-26  Andrew Choi  <akochoi@shaw.ca>
18198         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
18199         [HAVE_CARBON]: Include Mac object files.
18201         * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
18202         fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
18203         termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
18204         MAC_OSX, and MAC_OS instead of macintosh.
18206         * editfns.c [MAC_OS8]: Include stdio.h.
18208         * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
18210         * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
18211         Apple Monaco.
18213         * process.c (QCfamily, QCfilte): Declare extern.
18214         (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
18215         calling select.
18217         * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
18219         * tparam.c [MAC_OSX]: Don't define BC and UP.
18221         * config.in [HAVE_CARBON]: Add.
18223         * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
18224         Move here from mac/src and mac/inc.
18226         * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
18228 2002-04-26  Gerd Moellmann  <gerd@gnu.org>
18230         * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
18231         Compute phys_cursor_width from the x position returned
18232         by x_draw_glyhs, which is cheaper.
18233         (x_display_and_set_cursor): Compute the buffer-local value
18234         of `cursor-in-non-selected-windows' only when needed.
18236 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
18238         * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
18239         cursor on a stretch glyph has a width that depends on
18240         x_stretch_cursor_p.
18242 2002-04-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18244         * abbrev.c (abbrev-start-location): Doc fix.
18246         * indent.c (Fvertical_motion): Fix last change.
18248 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
18250         * indent.c (Fvertical_motion): Move to the start of the line
18251         containing PT before moving up or down.
18253 2002-04-24  Gerd Moellmann  <gerd@gnu.org>
18255         * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
18256         case of writing a whole row, more or less analogous to the case of
18257         writing only parts of a row.
18259         * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
18260         0 for NO_CURSOR.
18262         * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
18264 2002-04-23  Colin Walters  <walters@verbum.org>
18266         * buffer.c (syms_of_buffer): Doc fix.
18268 2002-04-23  Gerd Moellmann  <gerd@gnu.org>
18270         * xterm.c (notice_overwritten_cursor): Handle the special case
18271         of the cursor being in the first blank non-text line at the
18272         end of a window.
18274         * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
18275         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
18276         (x_display_and_set_cursor): Don't set phys_cursor_width here, for
18277         bar cursors only, to make phys_cursor_width contain what its name
18278         suggests.
18279         (notice_overwritten_cursor): Consider the cursor image erased if
18280         the output area intersects the cursor image in y-direction.
18282 2002-04-23  Simon Marshall  <simon@gnu.org>
18284         * xfns.c (x_set_mouse_color): Change default for cross_cursor
18285         to XC_hand2.
18287 2002-04-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18289         * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
18291 2002-04-22  Kim F. Storm  <storm@cua.dk>
18293         * textprop.c (remove_properties): Fixed trap for malformed plist.
18295 2002-04-22  Richard M. Stallman  <rms@gnu.org>
18297         * cmds.c (Fend_of_line): Handle intangible text in mid line.
18299         * window.c (make_window): Initialize height_fixed_p,
18300         last_cursor_off_p, and p->cursor_off_p slots.
18302 2002-04-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18304         * fns.c (use-dialog-box): Doc fix.
18306 2002-04-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18308         * xterm.c (note_mode_line_or_margin_highlight): Remove unused
18309         variables `row', `i' and `area'.
18310         (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
18311         toolkit library.
18313 2002-04-19  Stefan Monnier  <monnier@cs.yale.edu>
18315         * xfaces.c (clear_font_table): Don't free the default font of
18316         a frame even if it's on another display.
18317         (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
18318         that could be Qt.
18320 2002-04-19  Juanma Barranquero  <lektu@terra.es>
18322         * indent.c (Fmove_to_column): Remove unused local variable
18323         `next_boundary_byte'.
18324         (current_column_1): Likewise.
18326 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
18328         * msdos.c (Qhbar): New variable.
18329         (syms_of_msdos): Intern and staticpro it.
18330         (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
18331         cursor type.
18333 2002-04-19  Dave Lambert  <dlambert@acm.org>
18335         Theses change implement an underscore-like (`hbar') cursor.
18337         * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
18339         * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
18340         Handle the `hbar' cursor type.
18341         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
18343         * xfns.c (Qhbar): New variable.
18344         (syms_of_xfns): Intern and staticpro it.
18345         (x_specified_cursor_type): Handle `hbar' cursor.
18347         * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
18348         not defined.
18350 2002-04-18  Richard M. Stallman  <rms@gnu.org>
18352         * textprop.c (remove_properties): New arg LIST allows scanning
18353         either a list or a plist.
18354         (interval_has_some_properties_list): New function, like
18355         interval_has_some_properties using list instead of plist.
18356         All callers changed.
18357         (Fremove_list_of_text_properties): New function.
18358         (syms_of_textprop): Defsubr it.
18360 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
18362         * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
18364 2002-04-17  Juanma Barranquero  <lektu@terra.es>
18366         * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
18368 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
18370         * window.c (coordinates_in_window): Don't report on margin area
18371         if its width is zero.
18373 2002-04-16  Jason Rumney  <jasonr@gnu.org>
18375         * w32fns.c (Fx_file_dialog): Decode file name before using.
18377         * w32term.c (construct_drag_n_drop): Likewise.
18379 2002-04-16  Eli Zaretskii  <eliz@is.elta.co.il>
18381         * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
18382         store load-history in pure space.
18384         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
18386 2002-04-16  Stefan Monnier  <monnier@cs.yale.edu>
18388         * xterm.c (Qlatin_1, Qutf_8): New vars.
18389         (syms_of_xterm): Initialize them.
18390         (XTread_socket): Eliminate incorrect optimization that tried to avoid
18391         decoding the output of X*LookupString.
18392         Always use latin-1 to decode the output of XLookupString.
18393         Try Xutf8LookupString if XmbLookupString failed.
18395         * region-cache.c (new_region_cache): Use BEG.
18397 2002-04-16  Gerd Moellmann  <gerd@gnu.org>
18399         * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
18400         configuration files.
18401         (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
18402         returns 0.
18404 2002-04-15  Andreas Schwab  <schwab@suse.de>
18406         * config.in: Regenerated using autoheader.
18408         * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
18409         m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
18410         m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
18411         m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
18412         m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
18413         m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
18414         m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
18415         m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
18416         m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
18417         m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
18418         m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
18419         m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
18420         m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
18421         m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
18422         m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
18423         s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
18424         STACK_DIRECTION, now set by autoconf.
18426 2002-04-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18428         * dispnew.c (marginal_area_string): Sort arguments.
18430         * dispextern.h (marginal_area_string): Add prototype.
18432 2002-04-13  Richard M. Stallman  <rms@gnu.org>
18434         * fileio.c (Finsert_file_contents):
18435         Don't call temp_output_buffer_setup--do just part, by hand.
18437         * coding.c (run_pre_post_conversion_on_str):
18438         Don't call temp_output_buffer_setup--do just part, by hand.
18440         * keyboard.c (command_loop_1): Don't call start_hourglass
18441         or cancel_hourglass when executing a macro.
18443         * marker.c (count_markers): New function.
18445         * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
18446         grow without limit.  Move recently used elements to the front.
18448 2002-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
18450         * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
18452 2002-04-12  Gerd Moellmann  <gerd@gnu.org>
18454         * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
18455         rows marginal areas.
18456         (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
18457         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
18459         * dispnew.c (marginal_area_string): Check that glyph row is enabled.
18461 2002-04-12  Dave Love  <fx@gnu.org>
18463         * dispnew.c (marginal_area_string): New.
18465         * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
18466         (Qleft_margin, Qright_margin): Declare.
18467         (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
18469         * xterm.c (note_mode_line_or_margin_highlight): Renamed from
18470         note_mode_line_highlight and extended.
18472         * keyboard.c (Qleft_margin, Qright_margin): Declare.
18473         (make_lispy_event): Deal with mouse events in margins.
18475 2002-04-12  Stefan Monnier  <monnier@cs.yale.edu>
18477         * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
18479         * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
18480         than deactivating the mark if tmm is set to `lambda'.
18481         (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
18482         Use a single event for HELP_EVENT.
18483         (Fexecute_extended_command): Save last_point_position.
18485 2002-04-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18487         * lisp.h (Fpropertize): Add prototype.
18489         * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
18491 2002-04-10  Colin Walters  <walters@verbum.org>
18493         * config.in: Add HAVE_SHARED_GAME_DIR.
18495         * callproc.c (Vgame_score_directory): New variable.
18496         (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
18498 2002-04-10  Richard M. Stallman  <rms@gnu.org>
18500         * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
18502 2002-04-09  Stefan Monnier  <monnier@cs.yale.edu>
18504         * minibuf.c (read_minibuf): Use empty_string.
18505         (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
18506         Short-circuit the search as soon as it "failed".
18507         (Fall_completions): Allow lambda forms and lists of strings for alist.
18508         (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
18509         when require_match is nil.
18510         (Ftest_completion): Rename from `test_completion' and export to elisp.
18511         Call the predicate also when alist is a list.
18512         Obey Vcompletion_regexp_list.
18513         (do_completion, Fminibuffer_complete_and_exit): Use it.
18514         (Fassoc_string): Rename from `assoc_for_completion'.
18515         Allow list of strings as well and export to elisp.
18517 2002-04-08  Stefan Monnier  <monnier@cs.yale.edu>
18519         * puresize.h (BASE_PURESIZE): Increase to 900KB.
18521 2002-04-08  Juanma Barranquero  <lektu@terra.es>
18523         * w32.c (sys_accept): Don't hide variable `s'.
18525 2002-04-05  Gerd Moellmann  <gerd@gnu.org>
18527         * callint.c (Fcall_interactively): Use INTEGERP instead of
18528         NUMBERP for checking Vhistory_length.
18530 2002-04-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18532         * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
18533         Doc fix to reflect it.
18535 2002-04-04  Richard M. Stallman  <rms@gnu.org>
18537         * xdisp.c (display_mode_element): New arg RISKY.
18538         Disregard text props found or specified within a variable
18539         that isn't marked risky-local-variable.
18540         (Qrisky_local_variable): New variable.
18541         (syms_of_xdisp): Init and staticpro it.
18543 2002-04-04  Stefan Monnier  <monnier@cs.yale.edu>
18545         * undo.c (record_point): New fun.
18546         (record_delete, record_insert): Use it.
18548 2002-04-03  Juanma Barranquero  <lektu@terra.es>
18550         * doc.c (Fdocumentation): Add missing parentheses.
18551         (Fdocumentation_property): Likewise.
18553 2002-04-03  Stefan Monnier  <monnier@cs.yale.edu>
18555         * doc.c (Fdocumentation, Fdocumentation_property): When the doc
18556         data is 0, just return nil.
18558 2002-04-03  Eli Zaretskii  <eliz@is.elta.co.il>
18560         * msdos.c (syms_of_msdos): Fix last change with
18561         mouse_autoselect_window.
18563 2002-04-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18565         * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
18566         mouse_autoselect_window.
18568 2002-04-02  Stefan Monnier  <monnier@cs.yale.edu>
18570         * keyboard.c (make_lispy_event): Handle unknown keysyms together
18571         with system-specific keysyms.  Use it also for unknown function keys.
18573         * doc.c (reread_doc_file): Return whether reload was attempted.
18574         (Fdocumentation, Fdocumentation_property): Don't try to reload
18575         if the doc is 0 and only ask once.
18577         * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
18579 2002-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
18581         * keyboard.c (read_char): If the event was Qselect_window,
18582         restore timer_idleness_start_time to its previous value.
18584         * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
18586 2002-04-01  Stefan Monnier  <monnier@cs.yale.edu>
18588         * region-cache.c (new_region_cache): Use BEG.
18590         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
18591         Use BEG and BEG_BYTE.
18593         * doc.c (get_doc_string): Return nil if the location is wrong.
18594         (reread_doc_file): New fun.
18595         (Fdocumentation, Fdocumentation_property):
18596         Call it if get_doc_string fails.
18597         (Fsnarf_documentation): Make it work for a dumped Emacs.
18599         * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
18600         Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
18602         * charset.c (Fstring): Allow 0 arguments.
18604         * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
18606         * process.c (DATAGRAM_CONN_P, list_processes_1)
18607         (Fprocess_datagram_address, Fset_process_datagram_address)
18608         (Fset_network_process_options, server_accept_connection):
18609         Fix some int/Lisp_Object confusions (thank you union types).
18611 2002-04-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18613         * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
18615         * w32term.c: Likewise.
18616         (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
18618         * keyboard.c (Qselect_window): New symbol.
18619         (head_table): Use it.
18620         (keys_of_keyboard): Bound select-window event to handle-select-window.
18621         (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
18623         * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
18624         (last_window): New variable.
18625         (XTread_socket): Generate SELECT_WINDOW_EVENTs.
18626         (note_mouse_movement): Remove reimplemented code in #if 0.
18627         (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
18628         Emacs windows.
18630         * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
18632 2002-03-31  Gerd Moellmann  <gerd@gnu.org>
18634         * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
18635         Callers changed.
18637 2002-03-30  Richard M. Stallman  <rms@gnu.org>
18639         * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
18640         loop whenever it stops making progress.
18642         * widget.c (set_frame_size): Don't call change_frame_size.
18644 2002-03-30  Gerd Moellmann  <gerd@gnu.org>
18646         * dispnew.c (direct_output_for_insert):
18647         Call mark_window_display_accurate.
18649 2002-03-29  Jason Rumney  <jasonr@gnu.org>
18651         * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
18653 2002-03-29  Eli Zaretskii  <eliz@is.elta.co.il>
18655         * Makefile.in (lread.o): Depend on coding.h.
18657         * lread.c (openp, Fload): Encode the file name before passing it
18658         to `stat', `access', and `emacs_open'.
18659         (openp): GCPRO the encoded file name.  Don't recompute Lisp
18660         strings unnecessarily.
18662 2002-03-29  Kim F. Storm  <storm@cua.dk>
18664         * fns.c (Flax_plist_put): Doc fix.
18666 2002-03-28  Miles Bader  <miles@gnu.org>
18668         * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
18670 2002-03-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18672         * process.c (set-network-process-options): Add usage.
18673         (make-network-process): Doc fix.
18675 2002-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
18677         * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
18679 2002-03-26  Richard M. Stallman  <rms@gnu.org>
18681         * fns.c (Fsubstring_no_properties): New function.
18682         (Flax_plist_get, Flax_plist_put): New functions.
18683         (syms_of_fns): defsubr them.
18685         * xdisp.c (update_menu_bar): Test only update_mode_lines;
18686         don't test or alter w->update_mode_line.
18688         * window.c (Fdisplay_buffer): Doc fix.
18690 2002-03-24  Richard M. Stallman  <rms@gnu.org>
18692         * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
18694 2002-03-24  Gerd Moellmann  <gerd@gnu.org>
18696         * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
18697         (Fdefmacro): Handle `(declare ...)'.
18698         (syms_of_eval) <Qdeclare>: Initialize and staticpro.
18699         (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
18701 2002-03-24  Jason Rumney  <jasonr@gnu.org>
18703         * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
18704         (xbm_file_p): Add prototypes.
18705         (xbm_format, xbm_image_p): Sync with xfns.c.
18706         (reflect_byte): New function.
18707         (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
18708         (xbm_load_image): Create bitmaps with a depth of 1.
18709         (init_xfns): Enable XBM images.
18711 2002-03-23  Jason Rumney  <jasonr@gnu.org>
18713         * w32term.c (w32_handle_tool_bar_click): Detect up and down events
18714         correctly.  Do not pass up_modifier to keyboard buffer.
18716         * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
18718 2002-03-22  Stefan Monnier  <monnier@cs.yale.edu>
18720         * Makefile.in (bootstrapclean): New target.
18721         (bootstrap-temacs, bootstrap-doc): Remove.
18722         (bootstrap-emacs): Use a bog-standard `temacs'.
18723         Don't bother to build a DOC file.
18725         * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
18727         * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
18728         in temacs even if !CANNOT_DUMP.
18729         (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
18731         * alloc.c (check_pure_size): Only output a warning.
18733 2002-03-22  Jason Rumney  <jasonr@gnu.org>
18735         * w32fns.c (Fx_create_frame): Enable tool-bar when images are
18736         supported.
18738         * w32term.c (zv_bits): Declare as short, for word alignment.
18739         (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
18740         (syms_of_w32term): Define x-use-underline-position-properties.
18742         * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
18743         (clear_image_cache): Block input, fix logic, clear matrices in
18744         all frames that share this cache.
18746 2002-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
18748         * emacs.c (main): Update the Copyright year in the blurb printed
18749         by "emacs --version".
18751         * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
18753         * xterm.c (XTread_socket): If XK_ISO_Lock and
18754         XK_ISO_Last_Group_Lock are defined, handle keysyms between
18755         XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
18757 2002-03-21  Kim F. Storm  <storm@cua.dk>
18759         * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
18760         menu-bar bindings in keymap and local-map properties _are_ used.
18761         But try keymap property first in accordance with 2002-01-03 patch.
18762         Added comment describing why this is not always reliable.
18763         (tool_bar_items): Ditto for tool-bar.
18765 2002-03-21  Jason Rumney  <jasonr@gnu.org>
18767         * w32fns.c (x_clear_image_1): Disable color table code.
18769 2002-03-21  Kim F. Storm  <storm@cua.dk>
18771         * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
18772         removed the wrong version of the DEFUN macro; fixed it.
18774         * fns.c (Ffeaturep): Allow subfeature to be a list (test using
18775         Fmember rather than Fmemq).
18776         (Fprovide): Check that subfeatures is a list.
18778         * process.c (QCfeature, QCdatagram): Removed variables.
18779         (QCtype, Qdatagram): New variables.
18780         (network_process_featurep): Removed function.
18781         (Fmake_network_process): Removed :feature check.
18782         Use :type 'datagram instead of :datagram t to create a datagram
18783         socket.  This allows us to add other connection types (e.g. raw
18784         sockets) later in a consistent manner.
18785         (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
18786         supported subfeatures for feature make-network-process.
18787         (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
18788         Intern and staticpro QCtype and Qdatagram.
18789         (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
18791         * xfns.c: (QCtype): Remove duplicate declaration and
18792         initialization (is now declared in process.c).
18794         * w32fns.c: (QCtype): Remove duplicate declaration and
18795         initialization (is now declared in process.c).
18797 2002-03-21  Richard M. Stallman  <rms@gnu.org>
18799         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
18800         (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
18801         when jumping to `fail' to avoid undoing reg changes in the
18802         last iteration of the loop.
18803         (GET_UNSIGNED_NUMBER): Skip spaces around the number.
18805         * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
18806         Depend on process.h.
18808 2002-03-20  Jason Rumney  <jasonr@gnu.org>
18810         Most of the following changes are still conditional on HAVE_IMAGES
18811         which is not set by default on Windows.
18813         * emacs.c (main) [WINDOWSNT]: Call init_xfns.
18815         * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
18816         (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
18817         (four_corners_best, x_clear_image_1, x_clear_image)
18818         (x_alloc_image_color, postprocess_image)
18819         (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
18820         (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
18821         (init_xfns, syms_of_w32fns): Initialize image functions and constants.
18823         * w32gui.h (struct XImage): Define.
18825         * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
18826         extract mouse co-ordinates.
18828 2002-03-20  Jason Rumney  <jasonr@gnu.org>
18830         * w32.c (init_winsock): Dynamically load new server and UDP
18831         socket functions.
18832         (socket_to_fd): New function.
18833         (sys_socket): Use it.
18834         (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
18835         (sys_recvfrom, sys_sendto): New wrapper functions.
18837         * process.c (QCfamily, QCfilter): Remove duplicate declaration
18838         and initialization.
18840         * makefile.w32-in (LIBS): Remove $(WSOCK32).
18842 2002-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
18844         * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
18845         Don't use "sun" as a variable, it's a predefined constant on Sun
18846         machines.
18848 2002-03-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18850         * bytecode.c (Fbyte_code): Revert last change.
18852 2002-03-19  Kim F. Storm  <storm@cua.dk>
18854         * makefile.w32-in (LIBS): Add $(WSOCK32).
18855         From David Ponce <dponce@voila.fr>.
18857 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18859         * process.c (wait_reading_process_input): Move variables `pname'
18860         and `pnamelen' down where they are used.
18862         * bytecode.c (Fbyte_code): Discard unused computed value to
18863         prevent gcc warning.
18865         * lisp.h (Fplist_member): Add prototype.
18867 2002-03-18  Kim F. Storm  <storm@cua.dk>
18869         * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
18870         HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
18872         * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
18873         Remove explicit GNU_LINUX settings for datagram support.
18875 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18877         * process.c (Fmake_network_process): Remove unused variable `sa'.
18878         Doc fix.  Add usage:.
18879         (set_socket_options): Remove unused variables `optnum' and `opttype'.
18881 2002-03-17  Richard M. Stallman  <rms@gnu.org>
18883         * xdisp.c (cursor_type_changed): New variable.
18884         (redisplay_internal): Redisplay all windows if cursor_type_changed.
18885         Clear it when clearing windows_or_buffers_changed.
18886         (try_cursor_movement, redisplay_window, try_window_id)
18887         (try_window_reusing_current_matrix): Test cursor_type_changed
18888         along with windows_or_buffers_changed.
18890         * window.h (cursor_type_changed): New variable.
18892         * xfns.c (x_set_cursor_type): Set cursor_type_changed,
18893         not update_mode_lines, and always set it to 1.
18895         * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
18896         if no frames needed redrawing.
18898 2002-03-17  Kim F. Storm  <storm@cua.dk>
18900         The following changes add support for network server processes,
18901         datagram connections, and local (unix) sockets.
18903         * process.h (struct Lisp_Process): New member log.
18904         Doc fix: Member command used to indicate stopped network process.
18905         Doc fix: Member childp contains plist for network process.
18906         Doc fix: Member kill_without_query is inverse of query-on-exit flag.
18908         * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
18909         (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
18910         (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
18911         New variables.
18912         (NETCONN1_P): New macro.
18913         (DATAGRAM_SOCKETS): New conditional symbol.
18914         (datagram_address): New array.
18915         (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
18916         (status_message): Use concat3.
18917         (Fprocess_status): Add `listen' status to doc string.  Return `stop'
18918         for a stopped network process.
18919         (Fset_process_buffer): Update contact plist for network process.
18920         (Fset_process_filter): Ditto.  Don't enable input for stopped
18921         network processes.  Server must listen, even if filter is t.
18922         (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
18923         New functions.
18924         (Fprocess_kill_without_query): Removed.  Now defined in simple.el.
18925         (Fprocess_contact): Added KEY argument.  Handle datagrams.
18926         (list_processes_1): Optionally show only processes with the query
18927         on exit flag set.  Dynamically adjust column widths.  Omit tty
18928         column if not needed.  Report stopped network processes.
18929         Identify server and datagram network processes.
18930         (Flist_processes): New optional arg `query-only'.
18931         (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
18932         (conv_lisp_to_sockaddr, set_socket_options)
18933         (network_process_featurep, unwind_request_sigio): New helper functions.
18934         (Fprocess_datagram_address, Fset_process_datagram_address):
18935         (Fset_network_process_options): New lisp functions.
18936         (Fopen_network_stream): Removed.  Now defined in simple.el.
18937         (Fmake_network_process): New lisp function.  Code is based on previous
18938         Fopen_network_stream, but heavily reworked with new property list based
18939         argument list, support for datagrams, server processes, and local
18940         sockets in addition to old client-only functionality.
18941         (server_accept_connection): New function.
18942         (wait_reading_process_input): Use it to handle incoming connects.
18943         Do not enable input on a new connection if process is stopped.
18944         (read_process_output): Handle datagram sockets.  Use 2k buffer for them.
18945         (send_process): Handle datagram sockets.
18946         (Fstop_process, Fcontinue_process): Apply to network processes.  A stopped
18947         network process is indicated by setting command field to t .
18948         (Fprocess_send_eof): No-op if datagram connection.
18949         (Fstatus_notify): Don't read input for a stream server socket or a
18950         stopped network process.
18951         (init_process): Initialize datagram_address array.
18952         (syms_of_process): Intern and staticpro new variables, defsubr new
18953         functions.
18955 2002-03-16  Jason Rumney  <jasonr@gnu.org>
18957         * w32fns.c (w32_to_all_x_charsets): Return correct type in
18958         startup case.
18960 2002-03-16  Richard M. Stallman  <rms@gnu.org>
18962         * xdisp.c (redisplay_internal, redisplay_windows):
18963         Use list_of_error to call internal_condition_case_1.
18964         (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
18965         so as to catch all errors with no possibility of debugger redisplay.
18966         (list_of_error): New variable.
18967         (syms_of_xdisp): Init and staticpro it.
18969         * print.c (print_object): Delete `\ ' from printed rep of frame.
18971 2002-03-15  Eli Zaretskii  <eliz@is.elta.co.il>
18973         * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
18974         until its implementation is fixed.
18976 2002-03-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
18978         * xfns.c (png_load): Remove unused variable `gamma_str'.
18980 2002-03-14  Richard M. Stallman  <rms@gnu.org>
18982         * xfns.c (x_real_positions): Handle failure in XQueryTree.
18984 2002-03-14  Miles Bader  <miles@gnu.org>
18986         * intervals.c (adjust_for_invis_intang): New function.
18987         (set_point_both): Use `adjust_for_invis_intang' to do most of the
18988         work for dealing with invisible+intangible regions.  Do so before
18989         and after both forward and backward movements, to handle both
18990         front-sticky and rear-sticky cases.
18991         * textprop.c (text_property_stickiness): Function moved here from
18992         `editfns.c'.
18993         * intervals.h (text_property_stickiness): New declaration.
18994         * editfns.c (char_property_eq): Function removed.
18995         (text_property_stickiness): Function moved to `textprop.c'.
18997 2002-03-13  Jason Rumney  <jasonr@gnu.org>
18999         * config.in: Add STRFTIME_NO_POSIX2.
19001         * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
19002         and %OX when underlying strftime does not.
19004 2002-03-13  Stefan Monnier  <monnier@cs.yale.edu>
19006         * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
19007         Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
19008         line) to avoid annoying flicker.
19009         (xm_scroll_callback): Get rid of the now unnecessary kludge.
19010         (XTread_socket): Mark it static.
19012         * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
19014 2002-03-13  Kim F. Storm  <storm@cua.dk>
19016         * puresize.h (BASE_PURESIZE): Increase to 775000.
19018 2002-03-12  Juanma Barranquero  <lektu@terra.es>
19020         * editfns.c (syms_of_editfns): Fix typo.
19022 2002-03-12  Gerd Moellmann  <gerd@gnu.org>
19024         * xsmfns.c: Include stdio.h because termhooks.h needs it.
19025         Include termopt.h for interrupt_input.
19027 2002-03-11  Andreas Schwab  <schwab@suse.de>
19029         * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
19031 2002-03-11  Gerd Moellmann  <gerd@gnu.org>
19033         * xterm.c (note_mouse_movement): Put code for
19034         x_autoselect_window_p in #if 0.
19036         * lread.c (Fload): Don't assume that message_with_string uses the
19037         string it is given like a C string.
19039 2002-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19041         * xterm.h (x_session_check_input, x_session_initialize): Declare.
19043         * xterm.c (XTread_socket): Add call to x_session_check_input and
19044         x_session_have_connection.
19045         (x_initialize): Add call to x_session_initialize.
19047         * termhooks.h (enum event_kind): Add save_session_event.
19049         * keyboard.c: Add Emacs event save_session_event.
19051         * emacs.c (main): Add call to syms_of_xsmfns.
19053         * lisp.h (syms_of_xsmfns): Declare extern.
19055         * config.in: Add HAVE_X_SM.
19057         * Makefile.in (LIBXT): Add -lSM -lICE
19058         if HAVE_X_SM and not USE_X_TOOLKIT.
19059         (XOBJ): New file xsmfns.c added.
19061         * xsmfns.c: New file for X session management.
19063 2002-03-09  Jason Rumney  <jasonr@gnu.org>
19065         * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
19066         read-only when setting modified time.
19068 2002-03-08  Gerd Moellmann  <gerd@gnu.org>
19070         * xdisp.c (move_it_vertically_backward): At the end of the function,
19071         when moving forward by lines, treat terminal frames specially.
19073         * keyboard.c (echo_char): Make sure to add a separator between
19074         keys even if echo_dash hasn't been called.
19076         * xdisp.c: Use new string macros.
19077         (update_echo_area): Pass number of bytes to message3 instead of
19078         number of chars.
19079         (set_message_1): Don't access a string's size_byte directly.
19080         (decode_mode_spec_coding): Use number of bytes of eoltype string
19081         instead number of chars.
19083         * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
19085 2002-03-08  Juanma Barranquero  <lektu@terra.es>
19087         * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
19088         24-bit.
19090 2002-03-06  Jason Rumney  <jasonr@gnu.org>
19092         * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
19094 2002-03-06  Gerd Moellmann  <gerd@gnu.org>
19096         * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
19097         (cancel_echoing, echo_length, echo_truncate): Changed to
19098         work with new kboard definition.
19099         (echo_now): Use message3_nolog instead of message2_nolog.
19101         * alloc.c (mark_kboards): Mark echo_string.
19103         * keyboard.h (ECHOBUFSIZE): Removed.
19104         (struct kboard): Member echoptr removed, member echobuf renamed
19105         to echo_string.
19107         * xdisp.c (message_with_string): Use Fformat instead of doprnt and
19108         message3 instead of message2 to display the message using STRING's
19109         text properties.
19111 2002-03-05  Andreas Schwab  <schwab@suse.de>
19113         * xdisp.c (hscroll_margin): Change to EMACS_INT.
19115 2002-03-05  Per Abrahamsen  <abraham@dina.kvl.dk>
19117         * frame.c (default-frame-alist): Explain that setting it doesn't
19118         affect existing frames.
19120 2002-03-05  Stefan Monnier  <monnier@cs.yale.edu>
19122         * indent.c (skip_invisible): Fix my brain fart.
19124         * dispnew.c (sit_for): Don't wait if executing a kbd macro.
19126 2002-03-04  Stefan Monnier  <monnier@cs.yale.edu>
19128         * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
19129         * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
19130         * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
19131         * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
19132         and variables to use EMACS_INT instead of just int.
19134         * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
19136 2002-03-04  Eli Zaretskii  <eliz@is.elta.co.il>
19138         * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
19139         environment, pass it down with corrected value.
19141 2002-03-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19143         * lread.c (read_filtered_event): Do not call start_hourglass
19144         before returning.
19146 2002-03-04  Juanma Barranquero  <lektu@terra.es>
19148         * w32term.c (x_display_and_set_cursor): Fix typo.
19150 2002-03-03  Richard M. Stallman  <rms@gnu.org>
19152         * fileio.c (Fmake_temp_name): Doc fix.
19154 2002-03-03  Gary Wong  <gtw@gnu.org>
19156         * termcap.c [!emacs]: Replace ospeed for building standalone
19157         libtermcap, for binary compatibility.
19159         * tparam.c [!emacs]: Move #define of bcopy to after string.h.
19161 2002-03-03  Richard M. Stallman  <rms@gnu.org>
19163         * xrdb.c (file_p): Rename arg `path' to `filename'.
19165         * abbrev.c (Fexpand_abbrev): Increment plist as use count
19166         only if it is an integer.
19168         * xfns.c (png_load): Set screen_gamma based on f->gamma.
19169         If png_get_sRGB gives an answer, call png_set_gamma
19170         using the default image gamma value.
19172         * lread.c (read1): When reading from a file, default string to
19173         multibyte only if it has some multibyte characters.
19175         * print.c (print_object): Output multibyte chars 128...255
19176         using \x even if ! print_escape_multibyte.
19178         * xdisp.c (display_mode_element): Move the places where
19179         bytepos, charpos, this, and lisp_string are set.
19180         Use lisp_string to set bytepos.
19182         * xdisp.c (redisplay_internal):
19183         Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
19185         * xdisp.c (display_mode_element): Merge properties specified with
19186         :propertize onto those that come with the string.
19188 2002-03-03  Eli Zaretskii  <eliz@is.elta.co.il>
19190         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
19191         automatic-hscrolling.  Users changed.
19192         <hscroll-margin>: Renamed from automatic-hscroll-margin.
19193         Users changed.
19194         <hscroll-step>: Renamed from automatic-hscroll-step.  Users changed.
19196 2002-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
19198         * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
19200 2002-03-02  Kim F. Storm  <storm@cua.dk>
19202         * window.c (Fminibuffer_selected_window): New function.
19203         (syms_of_window): Defsubr it.
19205 2002-03-01  Kim F. Storm  <storm@cua.dk>
19207         * window.h (struct window): New member phys_cursor_width.
19209         * window.c (make_window, replace_window): Init phys_cursor_width.
19211         * xterm.c (x_display_and_set_cursor): Blink box cursor using
19212         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
19214         * w32term.c (x_display_and_set_cursor): Blink box cursor using
19215         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
19217         * lisp.h (GCPRO6): New macro.
19219         * process.c (Fopen_network_stream): Use GCPRO6.
19221 2002-03-01  Kim F. Storm  <storm@cua.dk>
19223         * process.c (Qconnect, Qfailed): New variables.
19224         (syms_of_process): Intern and staticpro them.
19225         (Fprocess_status): Document connect and failed return values.
19226         [NON_BLOCKING_CONNECT]: New conditional.
19227         (connect_wait_mask, num_pending_connects): New variables.
19228         (status_message): Convert Qfailed status.
19229         (Fopen_network_stream): Added support for non-blocking connect.
19230         New optional args: filter, sentinel, non_blocking.  Doc updated.
19231         [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
19232         (deactivate_process): Handle pending non-blocking connect.
19233         (wait_reading_process_input): Poll for status of non-blocking
19234         connects.  Exec sentinel directly when connect succeeds.
19235         (status_notify): Don't read process output if not yet connected.
19237 2002-02-28  Kim F. Storm  <storm@cua.dk>
19239         * window.c: (minibuf_selected_window): Renamed from
19240         Vminibuf_selected_window.  Users changed.
19241         (syms_of_window): Staticpro it.
19243 2002-02-26  Kim F. Storm  <storm@cua.dk>
19245         The following changes add a new Vminibuf_selected_window variable
19246         which is similar to Vminibuf_scroll_window, but which is only set
19247         on entry to the minibuffer (from a non-minibuffer window):
19249         * window.c: (Vminibuf_selected_window): New variable.
19250         (struct save_window_data): New member minibuf_selected_window.
19251         (Fset_window_configuration): Restore Vminibuf_selected_window.
19252         (Fcurrent_window_configuration): Save Vminibuf_selected_window.
19253         Set minibuf_scroll_window member to nil if minibuf_level is 0.
19254         (compare_window_configurations): Compare minibuf_selected_window.
19256         * window.h: (Vminibuf_selected_window): Declare extern.
19258         * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
19259         entry to minibuffer or on entry from a non-minibuffer window.
19261         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
19262         Vminibuf_selected_window instead of Vminibuf_scroll_window.
19264         * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
19265         instead of Vminibuf_scroll_window when deciding in which window
19266         the region should be highlighted.  Consequently, the region remains
19267         highlighteded even when a completion buffer is also displayed.
19269 2002-02-26  Eli Zaretskii  <eliz@is.elta.co.il>
19271         * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
19273         * xselect.c (Qcompound_text_with_extensions): Renamed from
19274         Qcompound_text_no_extensions.
19275         (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
19277 2002-02-26  Juanma Barranquero  <lektu@terra.es>
19279         * w32proc.c (syms_of_ntproc): Doc fix.
19281 2002-02-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19283         * intervals.h: Include "dispextern.h" unconditionally.
19285 2002-02-24  Jason Rumney  <jasonr@gnu.org>
19287         * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
19288         and disp-table.elc.
19289         (lisp): Add emacs-lisp/backquote.elc.
19291 2002-02-24  Kim F. Storm  <storm@cua.dk>
19293         * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
19294         The validation of the event type was too strict as it didn't
19295         allow string events; buffer names are used in bindings for
19296         menu-bar-select-buffer (see `menu-bar-update-buffers').
19298 2002-02-23  Kim F. Storm  <storm@cua.dk>
19300         The following changes rework my patch of 2002-02-06 which
19301         added command remapping by entering the commands directly into
19302         the keymaps.  Now, command remapping uses an explicit `remap'
19303         prefix in the keymaps, i.e. [remap COMMAND].
19305         * keymap.c (Qremap, remap_command_vector): New variables.
19306         (is_command_symbol): Remove function.
19307         (Fdefine_key): No longer accept a symbol for KEY.
19308         Added validation of [remap COMMAND] argument for KEY.
19309         The DEF is no longer required to be a symbol when remapping a command.
19310         (Fremap_command): New function to remap command through keymaps.
19311         (Flookup_key): Perform command remapping initiated by
19312         Fremap_command directly for speed.
19313         (Fkey_binding): Use Fremap_command for command remapping.
19314         (where_is_internal): Handle new command remapping representation.
19315         (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
19316         staticpro them.  Defsubr Fremap_command.
19318         * keymap.h (Fremap_command): Declare extern.
19319         (is_command_symbol): Remove extern.
19321         * keyboard.c (command_loop_1): Use Fremap_command for command
19322         remapping; now try command remapping for all symbols.
19324 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
19326         * coding.h (run_pre_post_conversion_on_str): Add prototype.
19328 2002-02-23  Jason Rumney  <jasonr@gnu.org>
19330         * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
19331         on the string before encoding it.
19332         (Fw32_get_clipboard_data): Run post-read-conversion on the string
19333         after decoding it.
19335         * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
19337 2002-02-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19339         * w32term.c (enter_timestamp): Remove unused static variable to
19340         prevent warning.
19342         * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
19344 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
19346         * w16select.c (Fw16_get_clipboard_data): Fix last change.
19348         * xselect.c (selection_data_to_lisp_data): Fix last change.
19350 2002-02-22  Jason Rumney  <jasonr@gnu.org>
19352         * w32term.h (struct w32_output): New member menu_command_in_progress.
19354         * w32menu.c (menubar_selection_callback): Free the menu and
19355         clear the menu_command_in_progress flag.
19357         * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
19358         (menu_free_timer): New variable.
19359         (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
19360         (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
19361         <WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
19362         menu command is in progress.
19363         <WM_COMMAND>: Set the menu_command_in_progress flag.
19364         Kill any menu_free_timer that is running.
19366         * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
19367         Call ExtTextOutA rather than ExtTextOut.
19369 2002-02-22  Eli Zaretskii  <eliz@gnu.org>
19371         * puresize.h (BASE_PURESIZE): Increase to 755000.
19373 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
19375         * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
19376         on the string before encoding it.
19377         (Fw16_get_clipboard_data): Run post-read-conversion on the string
19378         after decoding it.
19380 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
19382         Support for ICCCM  Extended Segments in X selections:
19384         * xselect.c <Qcompound_text_no_extensions>: New variable.
19385         (syms_of_xselect): Intern and staticpro it.
19386         (selection_data_to_lisp_data): Run post-read-conversion on decoded
19387         selection text.
19388         (lisp_data_to_selection_data): If next-selection-coding-system is
19389         compound-text-no-extensions, set the type of selection to be
19390         compound-text.
19392         * xterm.h (x_encode_text): Update prototype.
19394         * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
19395         callers changed.  If SELECTIONP is non-zero, run the
19396         pre-write-conversion function before encoding the selection text.
19398 2002-02-21  Kim F. Storm  <storm@cua.dk>
19400         * frame.c (syms_of_frame): Change mouse-highlight default to t.
19402         * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
19403         Correct composing of language-change event.
19405 2002-02-20  Kim F. Storm  <storm@cua.dk>
19407         * keyboard.c (menu_bar_items): Don't include keymap or local-map
19408         bindings at PT when building menu (the menu is not updated often
19409         enough for this to work reliable).
19410         (tool_bar_items): Likewise.
19411         (current_active_maps): Removed unused (and buggy) function.
19413 2002-02-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19415         * xfns.c (gif_load): Use correct width and height for GIF images.
19417 2002-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
19419         * floatfns.c (Fatan): Accept an optional second arg and call
19420         atan2 if passed 2 args.
19422 2002-02-18  Jason Rumney  <jasonr@gnu.org>
19424         * w32term.c (glyph_rect): Determine the row and glyph more precisely.
19426 2002-02-17  Jason Rumney  <jasonr@gnu.org>
19428         * w32term.c (x_autoselect_window_p): New variable.
19429         (syms_of_w32term): DEFVAR_BOOL and initialize it.
19430         (note_mouse_movement): Use it.
19432         * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
19434         * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
19436         * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19437         New variables.
19438         (syms_of_w32fns): Intern and staticpro them.
19439         (x_frame_parms) <"fullscreen">: New parameter.
19440         (x_fullscreen_move, x_set_fullscreen): New functions.
19441         (x_set_frame_parameters): Support Qfullscreen.
19442         (x_real_positions): Save x/y_pixels_diff frame params.
19443         (x_figure_window_size): Support full-screen frames.
19444         (Fx_create_frame): Default the fullscreen parameter.
19446         * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
19447         (x_fullscreen_adjust): New functions.
19448         (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't  resize to
19449         fullscreen.  Call x_check_fullscreen_move, and set the
19450         want_fullscreen member of output_data.w32
19451         <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
19453         * w32term.h: New enum for FULLSCREEN_* constants.
19454         (struct w32_output): New members want_fullscreen, x_pixels_diff,
19455         y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
19456         (x-fullscreen-adjust): New prototype.
19458 2002-02-17  Kim F. Storm  <storm@cua.dk>
19460         * frame.c (Vmouse_highlight): New variable.
19461         (syms_of_frame): DEFVAR_LISP it.
19463         * frame.h (Vmouse_highlight): Declare extern.
19465         * xterm.h (struct x_display_info): Add mouse_face_hidden.
19467         * xterm.c (disable_mouse_highlight): Removed variable.
19468         (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
19469         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19470         (XTread_socket): Turn mouse_face_hidden off after mouse movement,
19471         and on after keyboard input.
19472         (x_term_init): Initialize mouse_face_hidden.
19474         * msdos.h (struct display_info): Add mouse_face_hidden.
19476         * msdos.c (disable_mouse_highlight): Removed variable.
19477         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19478         (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
19479         (internal_terminal_init): Initialize mouse_face_hidden.
19480         (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
19481         and on after keyboard input.
19483         * w32term.h (struct w32_display_info): Add mouse_face_hidden.
19485         * w32term.c (disable_mouse_highlight): Removed variable.
19486         (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
19487         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
19488         (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
19489         and on after keyboard input.
19490         (w32_initialize_display_info): Initialize mouse_face_hidden.
19492 2002-02-16  Eli Zaretskii  <eliz@is.elta.co.il>
19494         * msdos.c (last_mouse_window): New variable.
19495         (dos_rawgetc): Fix last change--if the mouse is in the same window
19496         as recorded in last_mouse_window, don't select this window.
19498         * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
19500         * msdos.c (x_autoselect_window_p): New variable.
19501         (syms_of_msdos): Defvar it.
19502         (dos_rawgetc): If x_autoselect_window_p is set, select the window in
19503         which the last mouse movement occured, unless it is already selected.
19505         * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
19506         New variables.
19507         (syms_of_xdisp): DEVFAR them.
19508         (hscroll_window_tree): Use automatic_hscroll_margin and
19509         Vautomatic_hscroll_step to compute the amount of window scrolling.
19511 2002-02-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19513         * xterm.c (x-autoselect-window): New variable.
19514         (note_mouse_movement): Use it.
19516         * keyboard.c: Do not include "systime.h" twice.
19518 2002-02-15  Andreas Schwab  <schwab@suse.de>
19520         * puresize.h (PURESIZE_RATIO): Increase to 9/5.
19522         * alloc.c (NSTATICS): Increase to 1280.
19524 2002-02-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
19526         * alloc.c (NSTATICS): Bump to 1026.
19528         * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
19529         (Vx_super_keysym): New variables.
19530         (syms_of_xterm): DEFVAR_LISP them.
19531         (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
19532         variables to determine which keys to use for the various modifiers.
19534 2002-02-13  Kim F. Storm  <storm@cua.dk>
19536         * window.c: (Vmode_line_in_non_selected_windows): Removed.
19537         (mode_line_in_non_selected_windows): New variable.
19538         (syms_of_window): DEFVAR_BOOL it.
19540         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
19541         Use mode_line_in_non_selected_windows.
19542         (mode_line_in_non_selected_windows): Declare extern.
19543         (Vmode_line_in_non_selected_windows): Removed extern.
19545 2002-02-13  Richard M. Stallman  <rms@gnu.org>
19547         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
19548         (Fthis_single_command_keys, Fthis_single_command_raw_keys)
19549         (Fclear_this_command_keys): Doc fixes.
19551         * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
19552         (update_face_from_frame_parameter): Increment face_change_count
19553         and windows_or_buffers_changed to force redisplay using changed faces.
19555         * xdisp.c (QCpropertize): New variable.
19556         (mode_line_proptrans_alist): New variable.
19557         (display_mode_element): New arg PROPS; all calls changed.
19558         Implement this, for strings.
19559         Handle literal output of strings by sharing the
19560         main-line code for strings, using local var `literal'.
19561         Handle :propertize feature.
19562         (syms_of_xdisp): Initialze and staticpro QCpropertize and
19563         mode_line_proptrans_alist.
19565 2002-02-11  Kim F. Storm  <storm@cua.dk>
19567         * window.c: (Vmode_line_in_non_selected_windows): New variable.
19568         (syms_of_window): DEFVAR_LISP it.
19570         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
19571         (CURRENT_MODE_LINE_FACE_ID): Use it.
19572         (Vmode_line_in_non_selected_windows): Declare extern.
19574         * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
19575         to get mode line face.
19577 2002-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
19579         * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
19580         variables; cus-start.el doesn't need them anymore.
19582 2002-02-09  Kim F. Storm  <storm@cua.dk>
19584         * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
19585         reduction.  This fixes a display problem where stray newlines were
19586         inserted in the window (corrected by C-l).  Clarified code (IMHO).
19588 2002-02-09  Eli Zaretskii  <eliz@is.elta.co.il>
19590         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
19592         * xdisp.c (display_mode_lines): Fix last change.
19594 2002-02-09  Jason Rumney  <jasonr@gnu.org>
19596         * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
19597         match each other.
19598         (w32_load_system_font): Prevent Cleartype fonts from loading.
19599         (Fx_show_tip): Ensure tip frames are above other topmost windows.
19601 2002-02-09  Kim F. Storm  <storm@cua.dk>
19603         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
19604         (CURRENT_MODE_LINE_HEIGHT): Use it.
19605         (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
19607         * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
19608         (pos_visible_p, handle_face_prop): Likewise.
19609         (display_mode_lines): Likewise, but for the real selected window.
19610         (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
19612         * xfaces.c (Qmode_line_inactive): New face variable for mode-line
19613         in non-selected windows.
19614         (realize_basic_faces): Realize it.
19615         (syms_of_term): Intern and staticpro it.
19617 2002-02-08  Kim F. Storm  <storm@cua.dk>
19619         * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
19620         Changed mail addresses to emacs-devel@gnu.org.
19622 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
19624         * fileio.c (Fsubstitute_in_file_name): If the file name includes
19625         ~user, and there's no such user, don't discard everything before ~user.
19627         * floatfns.c (Fround): Doc fix.
19629 2002-02-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19631         * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
19633 2002-02-07  Stefan Monnier  <monnier@cs.yale.edu>
19635         * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
19637 2002-02-07  Kim F. Storm  <storm@cua.dk>
19639         * keymap.c (where_is_internal): Only check whether definition is
19640         remapped if it fulfills is_command_symbol.
19642 2002-02-07  Andreas Schwab  <schwab@suse.de>
19644         * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
19646         * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
19648 2002-02-06  Kim F. Storm  <storm@cua.dk>
19650         * keymap.c (Fdefine_key): Allow symbol as KEY argument for
19651         defining command remapping.  Doc updated.
19652         (Flookup_key): Remap command through keymap if KEY is a symbol.
19653         (is_command_symbol): New function.
19654         (Fkey_binding): Use it.  New optional argument NO-REMAP.
19655         Doc updated.  Callers changed.  Perform command remapping via
19656         recursive call unless that arg is non-nil.
19657         (where_is_internal): New argument no_remap.  Callers changed.
19658         Call recursively to find original key bindings for a remapped
19659         comand unless that arg is non-nil.
19660         (Fwhere_is_internal): New optional argument NO-REMAP.
19661         Doc updated.  Callers changed.  Pass arg to where_is_internal.
19663         * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
19664         (is_command_symbol): Add prototype.
19666         * keyboard.c (Vthis_original_command): New variable.
19667         (syms_of_keyboard): DEFVAR_LISP it.
19668         (command_loop_1): Set it, and perform command remapping.
19670 2002-02-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19672         * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
19674 2002-02-06  Jason Rumney  <jasonr@gnu.org>
19676         * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
19678 2002-02-06  Eli Zaretskii  <eliz@is.elta.co.il>
19680         * charset.c (get_charset_id): Use if-else instead of ?:.
19682 2002-02-06  Richard M. Stallman  <rms@gnu.org>
19684         * filelock.c (S_ISLNK): Define if not defined.
19686 2002-02-03  Richard M. Stallman  <rms@gnu.org>
19688         * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
19690         * lread.c (read1): Redesign strategy for force_multibyte and
19691         force_singlebyte.  Now is_multibyte records whether read_buffer
19692         is multibyte.  Encountering any multibyte character makes it so.
19694 2002-02-02  Stefan Monnier  <monnier@cs.yale.edu>
19696         * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
19697         with the same sequence, map that sequence to f10 rather than f0.
19699 2002-02-03  Andreas Schwab  <schwab@suse.de>
19701         * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
19702         latter never being defined on GNU/Linux.
19704 2002-02-02  Eli Zaretskii  <eliz@is.elta.co.il>
19706         * xfaces.c (realize_default_face): Don't set the weight and slant of
19707         the default face to Qnormal, unless these attributes are unspecified.
19709 2002-02-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19711         * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
19712         Call cancel_hourglass unconditionally.
19714         * eval.c (Fsignal): Remove duplicated declaration of
19715         the variable `display_hourglass_p'.
19717 2002-01-31  Richard M. Stallman  <rms@gnu.org>
19719         * editfns.c (region_limit): Nicer error message.
19721         * coding.c (decode_composition_emacs_mule):
19722         Give up if NCOMPONENT gets too large to index `component'.
19724         * callint.c (check_mark): New arg to specify clearer error message.
19725         Callers changed.
19727 2002-01-27  Richard M. Stallman  <rms@gnu.org>
19729         * minibuf.c (Fcompleting_read): Doc fix.
19731 2002-01-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19733         * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
19734         (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
19735         Fix doc-strings.
19737 2002-01-26  Richard M. Stallman  <rms@gnu.org>
19739         * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
19741         * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
19742         and scroll_up_aggressively.
19744 2002-01-26  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19746         * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
19748 2002-01-25  Stefan Monnier  <monnier@cs.yale.edu>
19750         * textprop.c (Fnext_property_change, Fnext_single_property_change)
19751         (Fprevious_property_change, Fprevious_single_property_change):
19752         Stay within the narrowed-buffer boundaries.
19754 2002-01-25  Eli Zaretskii  <eliz@is.elta.co.il>
19756         * term.c (Ftty_display_color_cells): New function.
19757         (syms_of_term): Defsubr it.
19758         (Ftty_display_color_cells, Ftty_display_color_p): Change the
19759         argument name to DISPLAY.  Doc fix.
19761         * dispextern.h: Add prototype for set_tty_color_mode and
19762         tty_setup_colors.
19764 2002-01-24  Jason Rumney  <jasonr@gnu.org>
19766         * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
19767         If region left to draw is not what was expected, mark the frame as
19768         garbaged.
19770         * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
19771         Combine the regions returned by BeginPaint and GetUpdateRect.
19773 2002-01-23  Jason Rumney  <jasonr@gnu.org>
19775         * w32term.c (x_update_window_begin): Only hide caret if
19776         w32_use_visible_system_caret is set.
19777         (x_update_window_end): Only show caret if
19778         w32_use_visible_system_caret is set.
19779         (syms_of_w32term): Handle SystemParametersInfo call failing.
19781         * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
19783 2002-01-22  Richard M. Stallman  <rms@gnu.org>
19785         * unexelf.c (unexec): Define n so as to cause compilation error
19786         for the code where people have often written n instead of nn.
19788         * .gdbinit (hookpost-run): Defined.
19790 2002-01-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19792         * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
19794 2002-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19796         * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
19797         if fullscreen is being set.
19799 2002-01-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19801         * minibuf.c (Fminibuffer_contents)
19802         (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
19803         (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
19805 2002-01-21  Richard M. Stallman  <rms@gnu.org>
19807         * window.c (check_frame_size): Fix minimum height calculation.
19809 2002-01-20  Ken Raeburn  <raeburn@gnu.org>
19811         * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
19812         height before comparison.
19813         (WINDOW_WANTS_HEADER_LINE_P): Likewise.
19815 2002-01-20  Jason Rumney  <jasonr@gnu.org>
19817         * w32term.c (w32_system_caret_width): Remove.
19818         (w32_use_visible_system_caret): New user flag.
19819         (syms_of_w32term): DEFVAR_BOOL it.  Initialize based on whether
19820         Windows reports a screen reader running.
19821         (x_update_window_begin): Hide the system caret.
19822         (x_update_window_end): Show the system caret.
19823         (x_display_and_set_cursor): Don't draw a cursor when
19824         w32_use_visible_system_caret is set.  Do not adjust width.
19826         * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
19827         (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
19828         <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
19829         the user requests it.  Use system default width when creating.
19830         <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
19832         * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
19833         New window messages.
19835 2002-01-20  Richard M. Stallman  <rms@gnu.org>
19837         * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
19839 2002-01-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19841         * doprnt.c (doprnt1): Fix typos in error call.
19843 2002-01-20  Eli Zaretskii  <eliz@is.elta.co.il>
19845         * unexelf.c (unexec) [__sgi]: Support the .got sections.
19847 2002-01-20  Jason Rumney  <jasonr@gnu.org>
19849         * w32term.c (w32_native_per_char_metric): Don't trust the metrics
19850         that Windows returns.  If a double check fails, try to guess how
19851         ExtTextOut is going to act.
19853         * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
19854         in place of stricmp.
19855         (w32_list_synthesized_fonts): Removed.
19856         (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
19857         (struct enumfont_t): New element; list.
19858         (enum_font_cb2): List all style and charset variations of a font.
19859         (Fw32_select_font): New optional argument; include_proportional.
19860         Exclude vertical fonts.  Exclude proportional fonts unless
19861         include_proportional is non-nil.
19862         (w32_enable_synthesized_fonts): Change to a boolean.
19863         (Fw32_send_sys_command): Doc fix.
19865 2002-01-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19867         * dispnew.c (update_frame): Move the variable `tem' to the block
19868         where it is used.
19870 2002-01-19  Jason Rumney  <jasonr@gnu.org>
19872         * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
19873         call to face-set-after-frame-default.
19875 2002-01-18  Richard M. Stallman  <rms@gnu.org>
19877         * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
19878         (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
19880 2002-01-17  Richard M. Stallman  <rms@gnu.org>
19882         * window.c (enlarge_window): When exceeding size of parent,
19883         directly delete all the siblings instead of trying to resize it.
19885 2002-01-17  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19887         * term.c (set_tty_color_mode): Remove unused variable `tem'.
19889 2002-01-16  Henrik Enberg  <henrik@enberg.org>
19891         * lread.c (init_lread): Move the installed-lisp dirs later in the path.
19893 2002-01-16  Kim F. Storm  <storm@cua.dk>
19895         * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
19896         is invisible.  This can happen if cursor is on top line of a
19897         window, and we switch to a buffer with a header line.
19899         * w32term.c (x_erase_phys_cursor): Ditto.
19901 2002-01-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19903         * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
19904         `dont_resize' only when used.
19906         * xdisp.c: Remove forgotten extern declaration of `Qimage'.
19908 2002-01-15  Eli Zaretskii  <eliz@is.elta.co.il>
19910         * xdisp.c (display_mode_element): When computing charpos, depend
19911         on multibyteness of elt, not the text in field.
19913 2002-01-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19915         * buffer.c (Fkill_all_local_variables):
19916         Increment `update_mode_lines' only once.
19918 2002-01-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19920         * lisp.h (adjust_after_replace_noundo)
19921         (Fupdate_coding_systems_internal): Add prototypes.
19923         * sound.c (Fplay_sound): Initialize header_size also for :data case.
19925 2002-01-14  Eli Zaretskii  <eliz@is.elta.co.il>
19927         Support for the --color command-line argument and tty-color-mode
19928         frame parameter:
19930         * term.c (tty_default_color_capabilities, tty_setup_colors)
19931         (set_tty_color_mode): New functions.
19932         (term_init): Call tty_default_color_capabilities.
19933         (Qtty_color_mode_alist): New variable.
19934         (syms_of_term): Intern and staticpro it.
19936         * frame.c (store_frame_param): Call set_tty_color_mode for termcap
19937         frames.
19938         (do_switch_frame): For termcap frames, switch the tty
19939         color mode as specified by the frame's parameters.
19940         (Qtty_color_mode): New variable.
19941         (syms_of_frame): Intern and staticpro it.
19943         * emacs.c (USAGE2): Add the --color option.
19944         (standard_args): Ditto.
19946 2002-01-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19948         * xterm.h (struct x_output): New members want_fullscreen,
19949         x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
19950         y_pixels_outer_diff.
19951         New enum for FULLSCREEN_* constants.
19952         (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
19953         is NULL.
19954         (x_fullscreen_adjust): Add prototype.
19956         * emacs.c (USAGE2): Add the new full-screen arguments.
19957         (standard_args): Ditto.
19959         * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
19960         New variables.
19961         (syms_of_xfns): Intern and staticpro them.
19962         (x_frame_parms) <"fullscreen">: New parameter.
19963         (x_fullscreen_move, x_set_fullscreen): New functions.
19964         (x_set_frame_parameters): Support for Qfullscreen.
19965         (x_real_positions): More accurate computation of the frame position.
19966         (x_figure_window_size): Support full-screen frames.
19967         (Fx_create_frame): Default the fullscreen parameter.
19969         * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
19970         (XTread_socket) <Expose>: Call x_check_fullscreen.
19971         <ConfigureNotify>: Don't resize to fullscreen.
19972         Call x_check_fullscreen_move, and set the want_fullscreen member of
19973         output_data.x.
19975 2002-01-13  Jason Rumney  <jasonr@gnu.org>
19977         * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
19978         for mice with more than 3 buttons.
19980         * w32term.c (parse_button): New parameter xbutton.  Callers changed.
19981         (w32_read_socket): Handle new "XBUTTON" messages.
19983         * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
19984         (syms_of_w32fns): DEFVAR_BOOL it.
19985         (w32_wnd_proc): Handle new "XBUTTON" messages.
19987 2002-01-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
19989         * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
19991 2002-01-13  Andreas Schwab  <schwab@suse.de>
19993         * xterm.c (x_load_font): Never set fonts_changed_p to zero.
19995 2002-01-12  Andreas Schwab  <schwab@suse.de>
19997         * .gdbinit (xbuffer): Remove address operator since data is now a
19998         pointer.
20000 2002-01-11  Richard M. Stallman  <rms@gnu.org>
20002         * insdel.c (adjust_after_replace_noundo): New function.
20004         * coding.c (code_convert_region): Don't copy old text if undo disabled.
20006 2002-01-09  Jason Rumney  <jasonr@gnu.org>
20008         * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
20009         when checking for multiple frames.
20011 2002-01-08  Richard M. Stallman  <rms@gnu.org>
20013         * window.c (delete_window): Rewrite the code for changing the
20014         selected window to handle the case where WINDOW is not a leaf.
20016 2002-01-07  Eli Zaretskii  <eliz@is.elta.co.il>
20018         * process.c (send_process): Set src_multibyte to 1 after the call
20019         top setup_coding_system, not before the call.
20021 2002-01-07  Jason Rumney  <jasonr@gnu.org>
20023         * xmenu.c (set_frame_menubar, xmenu_show):
20024         (xdialog_show): Initialize wv->help to Qnil.
20026         * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
20027         (w32_dialog_show): Initialize wv->help to Qnil.
20029 2002-01-06  Jason Rumney  <jasonr@gnu.org>
20031         * xmenu.c (single_submenu): Initialize wv->help to Qnil.
20033         * w32menu.c (w32_menu_display_help): Revert last change.
20035         * xmenu.c (menu_highlight_callback): Revert last change.
20037 2002-01-06  Andreas Schwab  <schwab@suse.de>
20039         * insdel.c (make_gap_larger): Make sure buffer size does not
20040         overflow range of int.
20042 2002-01-05  Jason Rumney  <jasonr@gnu.org>
20044         * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
20045         OVERLAPS_P.
20047         * w32menu.c (w32_menu_display_help): Hide any tooltip window.
20049         * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
20050         to the left or to the right of the pointer, put it against
20051         the left screen edge.
20052         (x_frame_parms): Add missing braces around initializer.
20054         * w32term.c (x_setup_relief_colors): Don't compute an image's
20055         background color if it doesn't have a Pixmap.
20056         (notice_overwritten_cursor): Don't depend on
20057         output_cursor and updated_area.  Compare pixel coordinates with
20058         window's cursor pixel coordinates.
20059         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20060         Call notice_overwritten_cursor with new arg list.
20061         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20062         unconditionally.
20063         (x_draw_image_relief): Use predefined macro instead of
20064         constant when the value of `tool_bar_button_relief' is negative.
20066         * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
20068 2002-01-04  Richard M. Stallman  <rms@gnu.org>
20070         * xmenu.c (menu_highlight_callback): Hide any tooltip window.
20072 2002-01-03  Richard M. Stallman  <rms@gnu.org>
20074         * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
20075         (Fkey_binding): Try the `keymap' property map first.
20076         (Fdescribe_buffer_bindings): Show `keymap' property bindings before
20077         minor mode bindings.
20079 2002-01-03  Kim F. Storm  <storm@cua.dk>
20081         * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
20083 2002-01-02  Richard M. Stallman  <rms@gnu.org>
20085         * keyboard.c (read_key_sequence): Handle the keymap property
20086         before minor mode maps.
20088         * editfns.c (Fformat): Update thissize from field_width
20089         based on the actual width, in the string case.
20091 2002-01-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20093         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
20094         when used as truth value to prevent gcc warnings.
20096         * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
20097         * w32proc.c: Include <config.h>.
20099 2002-01-01  Andreas Schwab  <schwab@suse.de>
20101         * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
20102         not EMACS_INT, to make them compatible with DEFVAR_INT.
20103         * lisp.h (max_specpdl_size): Adjust declaration.
20105 2002-01-01  Richard M. Stallman  <rms@gnu.org>
20107         * print.c (print_object): Test print_escape_nonascii only for
20108         unibyte strings.
20109         (PRINTPREPARE): Once again bind Qprint_escape_nonascii
20110         when outputting to a multibyte buffer.
20112 2001-12-29  Richard M. Stallman  <rms@gnu.org>
20114         * print.c (print_object): In multibyte string, use hex escapes.
20115         Use octal only for unibyte strings.
20116         (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
20118         * lread.c (read_escape): New arg BYTEREP for reporting whether
20119         escape forces unibyte or multibyte.
20120         (read1): When reading a string, take note of that info.
20122 2001-12-29  Ken Raeburn  <raeburn@gnu.org>
20124         * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
20125         comparison to test lisp value returned by Fget.
20127 2001-12-29  Richard M. Stallman  <rms@gnu.org>
20129         * lisp.h (max_specpdl_size): Add declaration.
20131         * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
20133         * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
20134         Handle modifier bits.  Correct typo in error message.
20136 2001-12-28  Richard M. Stallman  <rms@gnu.org>
20138         * abbrev.c: Use the plist of an abbrev for multiple params if nec.
20139         (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
20140         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
20141         Update calls to Fdefine_abbrev.
20142         (write_abbrev): Update for changed data format.
20143         Don't list "system" abbrevs.
20144         (Fexpand_abbrev): Update use count with new data format.
20145         (describe_abbrev): Update for changed data format.
20146         (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
20148         * config.in (HAVE_MBSINIT): Add #undef.
20150         * strftime.c (mbsinit): Define as no-op if not available.
20152         * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
20153         (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
20155         * keymap.c (Flookup_key): Error message if key has wrong data type.
20156         (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
20157         (exclude_key): New variable.
20159 2001-12-28  Gerd Moellmann  <gerd@gnu.org>
20161         * xterm.c (x_setup_relief_colors): Don't compute an image's
20162         background color if it doesn't have a Pixmap.
20164         * xterm.c (notice_overwritten_cursor): Don't depend on
20165         output_cursor and updated_area.  Compare pixel coordinates with
20166         window's cursor pixel coordinates.
20167         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
20168         Call notice_overwritten_cursor with new arg list.
20169         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
20170         unconditionally.
20172         * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
20173         height of the cursor line to the amount to scroll.
20175 2001-12-27  Richard M. Stallman  <rms@gnu.org>
20177         * intervals.c (set_point_both): The position after an invisible,
20178         intangible character is not an acceptable stopping point.
20180 2001-12-27  Ken Raeburn  <raeburn@gnu.org>
20182         * window.c (enlarge_window): In new preserve_before code, convert
20183         CURBEG from lisp object to integer before doing arithmetic.
20185 2001-12-27  Richard M. Stallman  <rms@gnu.org>
20187         * bytecode.c (Fbyte_code): Undo previous change.
20189 2001-12-26  Kim F. Storm  <storm@cua.dk>
20191         * keyboard.c (record_char): Ignore duplicate help-echo events only
20192         separated by mouse-movement.  When tracking mouse, only record
20193         first and last mouse-movement event in same window.
20194         Don't record mouse-movement events in keyboard macros.
20196 2001-12-25  Richard M. Stallman  <rms@gnu.org>
20198         * window.c (enlarge_window): New arg PRESERVE_BEFORE.  Callers changed.
20199         (Fenlarge_window): New arg PRESERVE_BEFORE.
20201         * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
20202         instead of Fstring_as_unibyte.
20204 2001-12-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20206         The following changes remove mocklisp support:
20208         * mocklisp.h, mocklisp.c: Files removed.
20210         * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
20211         `Qmocklisp' and `Qmocklisp_arguments'.
20212         Remove prototype of syms_of_mocklisp.
20214         * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
20216         * callint.c: Do not include mocklisp.h.
20217         (Fcall_interactively): Do not test for mocklisp case.
20219         * eval.c: Remove variables `Qmocklisp_arguments',
20220         `Vmocklisp_arguments' and `Qmocklisp'.  Remove prototype of ml_apply.
20221         (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
20222         Do not test for mocklisp case.
20223         (Fwhile): Remove unused variable `tem'.
20224         (syms_of_eval): Remove variable `moclisp-arguments'.
20226         * data.c (wrong_type_argument): Remove mocklisp case.
20228         * doc.c (Fdocumentation): Remove mocklisp case.
20230         * emacs.c (main): Do not call syms_of_mocklisp.
20232 2001-12-21  Richard M. Stallman  <rms@gnu.org>
20234         * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
20235         to the left or to the right of the pointer, put it against
20236         the left screen edge.
20238 2001-12-21  Eli Zaretskii  <eliz@is.elta.co.il>
20240         * Makefile.in (distclean): Remove .gdbinit if we are building
20241         outside the source tree.
20243 2001-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
20245         * w32.c (emacs_root_dir): New function.
20247         * msdos.c (emacs_root_dir): New function.
20249         * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
20250         of the current drive as the fallback for default_directory.
20252         * dired.c (file_name_completion): Run the elements of
20253         completion-ignored-extensions through ENCODE_FILE.
20255         * lisp.h (scmp): Remove prototype, since it's now a static
20256         function private to dired.c.
20258 2001-12-18  Richard M. Stallman  <rms@gnu.org>
20260         * dired.c (scmp): Function moved from minibuf.c.
20261         Delete multibyte handling--used only on encoded strings.
20263         * minibuf.c (scmp): Function moved to dired.c.
20265         * fns.c (merge): Add QUIT call.
20267 2001-12-18  Dave Love  <fx@gnu.org>
20269         * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
20270         language/georgian.el.
20272 2001-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
20274         * Makefile.in (lisp, shortlisp): Synchronize with changes to
20275         lisp/Makefile.in:DONTCOMPILE.
20277 2001-12-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20279         * xdisp.c (window_box_height): Do not return negative values.
20280         From Gerd Moellmann <gerd@gnu.org>.
20282         * keyboard.c (head_table): Add missing braces around initializer.
20284         * term.c (keys): Likewise.
20286         * xfns.c (x_frame_parms, visual_classes): Likewise.
20288 2001-12-17  Sam Steingold  <sds@gnu.org>
20290         * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
20291         patch (COMPOSING_P, not COMPOSING).
20293 2001-12-17  Richard M. Stallman  <rms@gnu.org>
20295         * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
20297         * coding.c (code_convert_region): Update coding->cmp_data->char_offset
20298         before calling decode_coding.
20300         * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
20302         * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
20303         instead of only for COMPOSITION_DISABLED.
20305 2001-12-16  Richard M. Stallman  <rms@gnu.org>
20307         * alloc.c (pure_alloc): After overflow, allocate just a small block.
20309         * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
20311         * buffer.h (struct buffer): New field `display_error_modiff'.
20312         * buffer.c (reset_buffer): Initialize `display_error_modiff'.
20314         * window.c (Frecenter): Clear display_error_modiff field.
20316         * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
20317         Call redisplay_window, but not if display_error_modiff field says no.
20318         (redisplay_window_error): New function.
20319         (displayed_buffer): New variable.
20320         (redisplay_internal, redisplay_windows): Call the new functions
20321         instead of redisplay_window directly.
20323 2001-12-15  Richard M. Stallman  <rms@gnu.org>
20325         * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
20327 2001-12-14  Andrew Innes  <andrewi@gnu.org>
20329         * makefile.w32-in (EMACSLOADPATH): Define.
20330         ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
20331         (bootstrap-temacs): Remove dependency on bootstrap-clean.
20333 2001-12-13  Eli Zaretskii  <eliz@is.elta.co.il>
20335         * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
20336         parameter have a numeric value all the time.
20338         * w32fns.c (x_report_frame_params): Likewise.
20340 2001-12-12  Richard M. Stallman  <rms@gnu.org>
20342         * fileio.c (Fwrite_region): Doc fix.
20344         * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
20345         (redisplay_internal): Call clear_image_cache only for window terminals.
20347 2001-12-12  Gerd Moellmann  <gerd@gnu.org>
20349         * xdisp.c (move_it_vertically_backward): Change heuristic
20350         for the case that we didn't move far enough initially.
20352         * window.c (Frecenter): Simplify computation in the case of window
20353         system frames and ARG < 0; use window_box_height.
20355 2001-12-11  Richard M. Stallman  <rms@gnu.org>
20357         * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
20358         * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
20360 2001-12-11  Andrew Innes  <andrewi@gnu.org>
20362         * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
20363         arg is negative.
20365 2001-12-11  Richard M. Stallman  <rms@gnu.org>
20367         * m/hp800.h: Split the __hpux conditional into the parts
20368         that are right for GNU/Linux too and the parts that are not.
20369         Use the former if GNU_LINUX.
20370         (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
20372         * s/gnu-linux.h (GNU_LINUX): Defined.
20374 2001-12-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20376         * macros.c, msdos.c, w16select.c: Change doc-string comments to
20377         `new style' [w/`doc:' keyword].
20379 2001-12-10  Jason Rumney  <jasonr@gnu.org>
20381         * w32menu.c (w32_free_submenu_strings): Clear menu item struct
20382         before using.
20384 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20386         * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
20387         keyword].
20389 2001-12-09  Eli Zaretskii  <eliz@is.elta.co.il>
20391         * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
20393         * s/hpux10.h (srand48): Don't undefine.
20395 2001-12-09  Jason Rumney  <jasonr@gnu.org>
20397         * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
20398         Add comment to explain where the struct came from.
20399         (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
20400         (add_menu_item): Process pop-up menus first to avoid memory leak.
20401         (add_menu_item, w32_menu_display_help): Use `help' field as
20402         Lisp_Object.
20403         (w32_free_submenu_strings): Only free owner-drawn strings.
20405 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20407         * COPYING: Moved back.
20409         * charset.c (char_to_string_1, translate_char, Fdefine_charset):
20410         Add parentheses around && within ||.
20412         * indent.c (compute_motion): Likewise.
20414         * intervals.c (merge_properties_sticky): Likewise.
20416         * coding.c (setup_coding_system, shrink_encoding_region)
20417         (Fdecode_sjis_char): Likewise.
20419 2001-12-07  Andreas Schwab  <schwab@suse.de>
20421         * xdisp.c (display_mode_element): Don't read past end of string if
20422         it ends with '%'.
20424         * alloc.c (inhibit_garbage_collection): Don't exceed value an int
20425         can hold.
20427         * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
20428         Rename from most_positive_fixnum and most_negative_fixnum, resp., and
20429         type changed to Lisp_Object.
20430         (syms_of_data): DEFVAR_LISP them.
20432 2001-12-07  Richard M. Stallman  <rms@gnu.org>
20434         * callproc.c (init_callproc): Set Vdata_directory based on the source
20435         location whenever Emacs was run uninstalled.
20437 2001-12-06  Paul Eggert  <eggert@twinsun.com>
20439         * config.in (HAVE_WORKING_VFORK): New #undefs.
20440         * process.c (create_process):
20441         Use HAVE_WORKING_VFORK, not HAVE_VFORK.
20442         * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
20443         * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
20444         * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
20445         * m/intel386.h (HAVE_VFORK): Likewise.
20446         * m/mips-siemens.h (HAVE_VFORK): Likewise.
20447         * m/mips.h (HAVE_VFORK): Likewise.
20448         * s/freebsd.h (vfork): Remove #define.
20449         * s/lynxos.h (HAVE_VFORK): Remove #undef.
20450         * s/usg5-4-2.h: Fix comment about vfork.
20452 2001-12-06  Richard M. Stallman  <rms@gnu.org>
20454         * s/hpux10.h (random): Add undef.
20455         (HAVE_RANDOM): Define it just once.
20457 2001-12-06  Stefan Monnier  <monnier@cs.yale.edu>
20459         * eval.c: Undo last change: the standard syntax is not wanted.
20461 2001-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
20463         * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
20464         scroll bars of the frame before deleting the frame itself.  If the
20465         frame has a widget, delete the frame with XtDestroyWidget, and do
20466         not call XDestroyWindow before that.
20468 2001-12-06  Kim F. Storm  <storm@cua.dk>
20470         * xfns.c (x_report_frame_params): Return actual fringe widths.
20472         * w32fns.c (x_report_frame_params): Return actual fringe widths.
20474 2001-12-05  Andrew Innes  <andrewi@gnu.org>
20476         * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
20477         excessively large.
20479         * insdel.c (make_gap_larger): New function.
20480         (make_gap_smaller): New function.
20481         (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
20482         Call make_gap_smaller if arg is negative.
20484 2001-12-04  Stefan Monnier  <monnier@cs.yale.edu>
20486         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
20487         Pass a dummy argument when calling interrupt_signal.
20488         (parse_menu_item): Mark disabled items before checking for empty def.
20489         (read_char_minibuf_menu_prompt): Make safety more visible.
20490         (read_key_sequence): Add a `first_unbound' variable.
20491         Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
20492         unbound prefix as soon as we can detect it.
20494         * doc.c (Fsnarf_documentation): Add prototype.
20495         (get_doc_string): Handle negative arguments.
20496         (Fdocumentation): Use AREF and ASIZE.
20497         Move the calls to get_doc_string to a single place.
20498         Don't confuse an interactive-spec for a docstring reference.
20499         (Fdocumentation_property): Take advantage of the fact that
20500         get_doc_string now ignores the sign of the docstring position.
20502         * eval.c: Use standard syntax for usage in docstrings.
20504 2001-12-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20506         * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
20508 2001-12-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20510         * xterm.c (x_draw_image_relief): Use predefined macro instead of
20511         constant when the value of `tool_bar_button_relief' is negative.
20513 2001-12-02  Richard M. Stallman  <rms@gnu.org>
20515         * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
20516         (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
20518         * fileio.c (read_non_regular): Delete Fsignal call.
20520 2001-12-01  Stefan Monnier  <monnier@cs.yale.edu>
20522         * lisp.h (run_hook_list_with_args): Undo last change.
20524 2001-12-01  Gerd Moellmann  <gerd@gnu.org>
20526         * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
20528 2001-12-01  Jason Rumney  <jasonr@gnu.org>
20530         * window.c (Qleft_fringe, Qright_fringe): Remove.  Now in frame.c.
20532         * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
20533         [!WM_MOUSELEAVE]: Define.
20535         * w32menu.c (current_popup_menu, get_menu_item_info):
20536         (set_menu_item_info): New vars.
20537         (set_frame_menubar): Doc fix clarifying GC interaction with menus.
20538         (w32_menu_show): Set current_popup_menu.
20539         (add_menu_item): Allocate new strings for owner-drawn menu items
20540         and help strings.
20541         Use owner-draw for disabled menu items again.
20542         (w32_menu_display_help): Ignore owner-drawn items and popup menus.
20543         (w32_free_submenu_strings, w32_free_menu_strings): New functions.
20545         * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
20546         (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
20547         <WM_EXITMENULOOP>: Free menu strings.
20548         <WM_MOUSELEAVE>: Stop tracking mouse.
20549         (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
20551         * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
20552         and mouse face.
20554 2001-12-01  Kim F. Storm  <storm@cua.dk>
20556         The following changes add left-fringe and right-fringe
20557         frame parameters to adjust fringe widths, or remove one or
20558         both fringes.
20560         * frame.h (struct frame): Remove trunc_area_pixel_width and
20561         trunc_area_cols fields.
20562         (Qleft_fringe, Qright_fringe): Declare.
20563         (FRAME_RIGHT_FRINGE_WIDTH): New macro.
20565         * frame.c (Qleft_fringe, Qright_fringe): New vars.
20566         (syms_of_frame): Initialize them.
20568         * window.c (coordinates_in_window): Handle separate left and right
20569         fringe widths.
20571         * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
20572         and fringe_cols fields.
20573         (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
20574         (FRAME_X_FRINGE_COLS): Use fringe_cols field.
20575         (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
20576         (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
20577         (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
20578         (x_compute_fringe_widths): Add prototype.
20580         * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
20581         fill fringe evenly with small dashes.
20582         (x_draw_fringe_bitmap): Clear background if necessary.  Align and
20583         clip the new ZV bitmap to avoid jitter between rows.
20584         (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
20585         background.  Don't draw fringe bitmaps if fringe width is zero.
20586         (x_compute_fringe_widths): New function.
20587         (x_new_font, x_set_window_size_1): Use it.
20589         * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
20590         (x_set_frame_parameters): Process `font' parameter before other
20591         parameters as fringe widths depend on it.
20592         (x_set_fringe_width): New function.
20593         (x_figure_window_size): Use x_compute_fringe_widths.
20594         (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
20595         parameters.
20597         * widget.c (set_frame_size): Use x_compute_fringe_widths.
20598         (EmacsFrameSetCharSize): Ditto.
20600         * w32term.h: Merged changes from xterm.h.
20601         * w32term.c: Merged changes from xterm.c.
20602         * w32fns.c: Merged changes from xfns.c.
20604 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20606         * COPYING: Removed.
20608 2001-11-29  Dave Love  <fx@gnu.org>
20610         * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
20611         extra extra slot.
20612         (detect_coding_mask): Fix call of detect_coding_iso2022.
20614 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20616         * fileio.c (file-name-coding-system)
20617         (default-file-name-coding-system): Doc fix (links to referenced
20618         variables added).
20620 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
20622         * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
20623         Add dummy uses of gcproN variables.
20625         * category.c (describe_category, describe_category_1)
20626         (Fdescribe_categories): Remove.  (Moved to lisp/help-fns.el.)
20627         (syms_of_category): Don't defsubr Sdescribe_categories.
20629 2001-11-28  Richard M. Stallman  <rms@gnu.org>
20631         * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
20633         * Makefile.in (lispdir): New variable, referring to build dir.
20634         (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
20636 2001-11-28  Andrew Innes  <andrewi@gnu.org>
20638         * w32menu.c (w32_menu_display_help): Actually add the new argument
20639         OWNER.
20641 2001-11-28  Jason Rumney  <jasonr@gnu.org>
20643         * w32menu.c (add_menu_item): Do not use owner-draw for disabled
20644         menu items.  From David Ponce <dponce@wanadoo.fr>.
20645         (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
20646         conditionally.
20647         (w32_menu_display_help): New argument OWNER.  Rewritten to store a
20648         help event in the owner frame's keyboard buffer.
20650         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
20651         (Fx_show_tip): Don't subtract last width from row width.
20653         * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
20654         (w32_read_socket): Use EQ to compare frames.
20656 2001-11-28  Gerd Moellmann  <gerd@gnu.org>
20658         * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
20659         OVERLAPS_P.
20661 2001-11-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20663         * xdisp.c (message_dolog): Remove unused variables `gcpro2',
20664         `gcpro3' and `gcpro4'.
20666         * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
20668 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
20670         * ccl.c: Use AREF and ASIZE.
20672 2001-11-27  Stefan Monnier  <monnier@cs.yale.edu>
20674         * lisp.h (run_hook_list_with_args): Remove.
20675         (LIST_END_P): Fix call to wrong_type_argument.
20676         (make_fixnum_or_float): Use EMACS_INT rather than int.
20678 2001-11-26  Stefan Monnier  <monnier@cs.yale.edu>
20680         * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
20681         (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
20683         * eval.c: Use AREF and ASIZE.
20684         (Ffetch_bytecode): Add the file name to the error message.
20686         * fileio.c (Ffind_file_name_handler): Give precedence to handlers
20687         which match the end of the file-name.
20688         (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
20689         is not a valid env var, but leave it as is instead.
20691         * keymap.c (access_keymap): Handle t bindings like nil bindings.
20692         Make nil bindings in char-tables transparent.
20693         (store_in_keymap): Turn a nil binding into a t binding for char-tables.
20695 2001-11-26  Richard M. Stallman  <rms@gnu.org>
20697         * textprop.c (set_text_properties_1): Allow START, END in either order.
20698         Do nothing if range is empty.
20700         * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
20702         * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
20703         (clean): Not here.
20705 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
20707         * textprop.c (set_text_properties_1): Clearly mark that the
20708         interval should not be empty.
20710         * intervals.c (graft_intervals_into_buffer):
20711         Don't call set_text_properties_1 on an empty interval.
20713 2001-11-25  Richard M. Stallman  <rms@gnu.org>
20715         * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
20717         * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
20718         don't lose the data in it.
20720 2001-11-25  Juanma Barranquero  <lektu@terra.es>
20722         * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
20724         * buffer.c (Fkill_buffer): Likewise.
20726         * print.c (temp_output_buffer_setup): Likewise.
20728 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
20730         * xfaces.c (merge_face_heights): Coerce back to int explicitly.
20732 2001-11-25  Eli Zaretskii  <eliz@is.elta.co.il>
20734         * window.c (Fset_window_vscroll): Doc fix.  From Kalle Olavi
20735         Niemitalo <kon@iki.fi>.
20737 2001-11-25  Jason Rumney  <jasonr@gnu.org>
20739         * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
20741         * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
20742         (Fx_show_tip): Block input during frame creation.
20743         (Fx_show_tip, Fx_hide_tip): Enable.
20745 2001-11-24  Richard M. Stallman  <rms@gnu.org>
20747         * lread.c (Fload): Detect recursive load error for more than 3
20748         nestings of the same file.
20749         (Vrecursive_load_depth_limit): Variable deleted.
20750         (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
20752 2001-11-24  Jason Rumney  <jasonr@gnu.org>
20754         * xfns.c (compute_tip_xy): Initialize root_x and root_y from
20755         mouse position if either left or top is not specified.
20757         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
20758         <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
20759         (my_create_tip_window, Fx_show_tip): Adjust size for external border.
20760         (my_create_tip_window): Assign tip_window.
20761         (x_create_tip_frame): Use same defaults as X.
20762         (compute_tip_xy): Remove unused variable.  Use full screen width.
20763         (Fx_show_tip): Do not double height.  Call ShowWindow directly.
20765         * w32term.c (x_after_update_window_line): Doc fix.
20766         (w32_read_socket): Doc fix.  Avoid SET_FRAME_GARBAGED for tip
20767         frames.
20768         <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
20770         * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
20771         for all Windowed systems.
20773 2001-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
20775         * msdos.c (IT_clear_screen): If the frame's faces are not yet
20776         realized, use the initial screen colors to clear the screen.
20778 2001-11-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20780         * textprop.c (Fset_text_properties): Remove unused variables
20781         `unchanged', `prev_changed', `s' and `len'.
20783         * search.c (Freplace_match): Remove unused variable `inslen'.
20785         * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
20787 2001-11-22  Jason Rumney  <jasonr@gnu.org>
20789         * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
20790         (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
20791         (my_create_tip_window): New function.
20792         (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
20793         (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
20795 2001-11-20  Jason Rumney  <jasonr@gnu.org>
20797         * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
20798         (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
20800         * w32fns.c (Vw32_system_coding_system): Remove.
20801         (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
20803 2001-11-19  Stefan Monnier  <monnier@cs.yale.edu>
20805         * fileio.c (Fwrite_region): Move choose_write_coding_system to
20806         after build_annotations.
20808         * syntax.c (describe_syntax): Add dummy arg.
20809         (describe_syntax_1): Update call to describe_vector.
20811         * category.c (describe_category): Add dummy arg.
20812         (describe_category_1): Update call to describe_vector.
20814         * keymap.c (Fdescribe_vector): Add `describer' parameter.
20815         (describe_command, describe_translation): Add dummy second param.
20816         (describe_map): Call elt_describer with two arguments.
20817         (describe_vector_princ): Add `fun' parameter.
20818         Call it instead of the hardcoded `princ'.
20819         (describe_vector): Add arg `args'.
20820         Pass it as a new second argument to elt_describer.
20822         * keymap.h (describe_vector): Update prototype.
20824         * frame.c: Don't include keymap.h any more.
20825         (keys_of_frame): Remove.
20827         * lisp.h (keys_of_frame): Remove declaration.
20829         * emacs.c (main): Don't call `keys_of_frame' any more.
20831 2001-11-14  Andreas Schwab  <schwab@suse.de>
20833         * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
20834         if defined, 0 otherwise.
20835         (MAP_FAILED): Define if not defined and use it to test mmap failure.
20836         (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
20838 2001-11-19  Richard M. Stallman  <rms@gnu.org>
20840         * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
20842 2001-11-18  Jason Rumney  <jasonr@gnu.org>
20844         * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
20845         (x_draw_bar_cursor): If the background color of the glyph under
20846         the cursor equals the frame's cursor color, use the glyph's
20847         foreground color for drawing the bar cursor.
20848         (x_after_update_window_line): Clear internal border in different
20849         circumstances.
20850         (w32_set_vertical_scroll_bar): Check for width and height > 0.
20851         (w32_draw_relief_rect): Correct relief by 1 pixel.
20852         (x_set_glyph_string_background_width):
20853         Set extends_to_end_of_line_p if the row's fill_line_p is set and
20854         drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
20855         (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
20856         if cursor_in_non_selected_windows is false.
20857         (show_mouse_face): Clean up.  Recognize overwritten cursor differently.
20858         (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
20859         Notice if cursor gets overwritten.
20860         (notice_overwritten_cursor): Renamed from
20861         note_overwritten_text_cursor.  Rewritten to take glyph widths
20862         into account, and to take X positions as parameters.
20863         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
20864         around call to x_draw_glyphs.
20865         (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
20866         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
20867         color to use for image glyph reliefs.
20868         (x_draw_image_relief): Accept zero tool_bar_button_relief.
20869         (glyph_rect): Remove unused variable `area'.
20871         * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
20872         some items.
20873         (x_set_internal_border_width): Set frame garbaged when window
20874         doesn't exist yet.
20875         (Fx_create_frame): Accept zero tool_bar_button_relief.
20876         (x_clear_image_1, four_corners_best, image_background)
20877         (image_background_transparent): New functions.
20878         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
20879         (gs_format): Add `:background' entry.
20880         (lookup_image): Set IMG's background color if specified.
20881         (pbm_load, xbm_load_image, png_load): Set IMG's background field
20882         when appropriate.
20883         (x_clear_image_1): Reset `background_valid' and
20884         `background_transparent_valid' fields.
20885         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
20886         calculating it here.  Set IMG's background_transparent field.
20887         (enum xpm_keyword_index): Add XPM_BACKGROUND.
20888         (enum png_keyword_index): Add PNG_BACKGROUND.
20889         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
20890         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
20891         (enum gif_keyword_index): Add GIF_BACKGROUND.
20892         (enum gs_keyword_index): Add GS_BACKGROUND.
20893         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
20894         Pre-calculate image background color where necessary.
20895         (x_create_x_image_and_pixmap, xbm_load, gs_load):
20896         Use display info's n_cbits entry for screen depth.
20897         (Fx_show_tip): Remove unused variables `buffer', `top',
20898         `left', `max_width' and `max_height'.
20900         * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
20902 2001-11-18  Gerd Moellmann  <gerd@gnu.org>
20904         * puresize.h (BASE_PURESIZE): Increase to 750000.
20906 2001-11-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20908         * frame.c (Fframe_live_p): Doc fix.
20910 2001-11-18  Richard M. Stallman  <rms@gnu.org>
20912         * xdisp.c (message_dolog_marker1, message_dolog_marker2)
20913         (message_dolog_marker3): New static variables hold three markers.
20914         (syms_of_xdisp): Initialize and staticpro them.
20915         (message_dolog): Use message_dolog_marker1..3 instead of
20916         allocating markers each time.  Unchain them when done.
20918 2001-11-17  Richard M. Stallman  <rms@gnu.org>
20920         * doc.c (Fsnarf_documentation): Doc fix.
20922 2001-11-17  Andreas Schwab  <schwab@suse.de>
20924         * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
20926 2001-11-17  Richard M. Stallman  <rms@gnu.org>
20928         * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
20930 2001-11-17  Jason Rumney  <jasonr@gnu.org>
20932         * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
20934 2001-11-17  Gerd Moellmann  <gerd@gnu.org>
20936         * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
20937         with invalid position.
20939 2001-11-16  Richard M. Stallman  <rms@gnu.org>
20941         * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
20943         * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
20944         * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
20945         * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
20947         * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
20949 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
20951         * fileio.c (build_annotations): Split off the tail.
20952         (build_annotations_2): New fun.  Extracted from build_annotations.
20953         (Fwrite_region): Split the call to build_annotations into two
20954         calls to build_annotations and build_annotations_2.
20956 2001-11-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20958         * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
20959         clear_waiting_for_input with argument.
20961         * xterm.h (x_update_cursor): Remove duplicated prototype.
20963         * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
20965         * xterm.c (waiting_for_input): Remove unnecessary declaration.
20967         * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
20969 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
20971         * fileio.c (choose_write_coding_system): New fun, extracted
20972         from Fwrite_region.
20973         (Fwrite_region): Use it.
20975         * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
20976         (funcall_lambda, run_hook_with_args): Make static and add prototype.
20977         (ml_apply, find_handler_clause): Add prototype.
20979 2001-11-16  Eli Zaretskii  <eliz@gnu.org>
20981         * config.in: Add #undef HAVE_COFF_H.
20983         * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
20984         Required for ISC 4.1.
20986 2001-11-16  Eli Zaretskii  <eliz@is.elta.co.il>
20988         * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
20989         Andrew Wiseman <a.wiseman@btclick.com>.
20991 2001-11-16  Kim F. Storm  <storm@cua.dk>
20993         The following changes are made to clean up the various internal
20994         references to the fringes to actually use the term `fringe' for
20995         them.  Previously, they were called `flags areas', `bitmap areas',
20996         `left/right side of windows', or implicitly as `flags' or
20997         `bitmaps':
20999         * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
21000         Comments fixed.  Use renamed symbols.
21002         * dispnew.c: Comment fix.  Use renamed symbols.
21004         * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
21005         (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
21006         (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
21008         * msdos.c: Comment fix.
21010         * w32fns.c: Use renamed symbols.
21012         * w32term.c: Comment fixes.  Use renamed symbols.
21013         (fringe_bitmap_type): Renamed from bitmap_type.
21014         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
21015         (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
21016         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
21018         * w32term.h: Comment fixes.  Use renamed symbols.
21019         (fringes_extra): Renamed from flags_areas_extra.
21020         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
21021         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
21022         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
21023         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
21024         (FRAME_X_LEFT_FRINGE_WIDTH):
21025         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
21026         (FRAME_X_RIGHT_FRINGE_WIDTH):
21027         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
21029         * widget.c: Use renamed symbols.
21031         * window.c: Comment fixes.  Use renamed symbols.
21032         (coordinates-in-window-p): Doc fix.
21034         * xdisp.c: Comment fixes.  Use renamed symbols.
21036         * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
21038         * xfns.c: Use renamed symbols.
21040         * xterm.c: Comment fixes.  Use renamed symbols.
21041         (fringe_bitmap_type): Renamed from bitmap_type.
21042         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
21043         (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
21044         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
21046         * xterm.h: Comment fixes.  Use renamed symbols.
21047         (fringes_extra): Renamed from flags_areas_extra.
21048         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
21049         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
21050         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
21051         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
21052         (FRAME_X_LEFT_FRINGE_WIDTH):
21053         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
21054         (FRAME_X_RIGHT_FRINGE_WIDTH):
21055         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
21057 2001-11-15  Jason Rumney  <jasonr@gnu.org>
21059         * w32menu.c (add-menu-item): Make help_echo and radio buttons
21060         work for most menu items.  From David Ponce
21061         <david.ponce@wanadoo.fr>.
21063 2001-11-15  Gerd Moellmann  <gerd@gnu.org>
21065         * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
21066         Some x_set_* function expect to be called even if old and new
21067         value are equal.
21069         * xdisp.c (build_desired_tool_bar_string): Accept zero
21070         tool_bar_button_relief.
21072         * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
21074         * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
21076         * xterm.c (x_draw_bar_cursor): If the background color of the
21077         glyph under the cursor equals the frame's cursor color, use
21078         the glyph's foreground color for drawing the bar cursor.
21080         * dispnew.c (direct_output_forward_char): Fix character/byte
21081         position comparison.
21083 2001-11-15  Miles Bader  <miles@gnu.org>
21085         * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
21086         (Fdelete_field, Ffield_string, Ffield_string_no_properties):
21087         Update arguments to find_field.
21088         (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
21089         (Fconstrain_to_field): Use LIMIT arg to shorten search time.
21090         * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
21091         * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
21093 2001-11-14  Richard M. Stallman  <rms@gnu.org>
21095         * editfns.c (Fpropertize): Allow call with 1 arg.
21097         * dispextern.h (image_background, image_background_transparent):
21098         Conditionalize on HAVE_X_WINDOWS.
21100 2001-11-13  Richard M. Stallman  <rms@gnu.org>
21102         * print.c (Fprin1_to_string): Doc fix.
21104         * sunfns.c (Fsun_change_cursor_icon): Doc fix.
21106         * floatfns.c (Fceiling, Ffloor): Doc fixes.
21108         * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
21110         * fileio.c (Ffile_accessible_directory_p): Doc fix.
21112         * eval.c (syms_of_eval): Doc fix.
21114         * coding.c (syms_of_coding): Doc fix.
21116         * doc.c (Fsnarf_documentation): Doc fix.
21118         * dispnew.c (syms_of_display): Doc fix.
21120         * category.c (Fget_unused_category): Doc fix.
21122         * buffer.c (syms_of_buffer): Doc fixes.
21124 2001-11-14  Eli Zaretskii  <eliz@is.elta.co.il>
21126         * print.c (prin1, print): Doc fix.
21128 2001-11-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21130         * fontset.h: Remove declarations of variables
21131         `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
21133         * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
21134         `Vclip_large_size_font'.
21136 2001-11-13  Jason Rumney  <jasonr@gnu.org>
21138         * w32fns.c: Doc fix.
21140 2001-11-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21142         * xfaces.c (Fface_attributes_as_vector): Doc fix.
21144         * fns.c: Doc fix.
21146         * emacs.c: Doc fix.
21148         * coding.c: Doc fix.
21150         * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
21151         * fontset.c, insdel.c, keymap.c: Change doc-string comments to
21152         `new style' [w/`doc:' keyword].
21154 2001-11-12  Richard M. Stallman  <rms@gnu.org>
21156         * xterm.c (XTread_socket): Don't update focus for EnterNotify or
21157         LeaveNotify events.  Only FocusIn and FocusOut do that now.
21158         (x_display_and_set_cursor): Do display hollow cursors in active
21159         minibuffer windows when they are not selected.
21161 2001-11-12  Jason Rumney  <jasonr@gnu.org>
21163         * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
21164         * w32term.c: Change doc-string comments to `new style'
21165         [w/`doc:' keyword].  Doc fixes.
21167         * w32fns.c: Don't define max.
21168         (Fx_open_connection): Only execute once.
21170 2001-11-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21172         * ccl.c: Change macros to use do-while block instead of if-else.
21173         Use braces to follow GNU Coding Standards.
21175 2001-11-11  Richard M. Stallman  <rms@gnu.org>
21177         * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
21179         * lread.c (read_escape): Use end_of_file_error for reporting eof.
21181         * insdel.c (replace_range): Use adjust_markers_for_replace
21182         instead of adjust_markers_for_delete and adjust_markers_for_insert.
21184         * intervals.h (set_text_properties, set_text_properties_1): Declare.
21186         * textprop.c (set_text_properties_1): New subroutine
21187         broken out of set_text_properties.
21188         (set_text_properties): Use set_text_properties_1.
21190         * intervals.c (graft_intervals_into_buffer):
21191         Use set_text_properties_1 to clear out properties.
21193         * search.c (Freplace_match): Use replace_range to insert
21194         and delete.  Don't request property inheritance from
21195         surrounding text.
21197 2001-11-10  Jason Rumney  <jasonr@gnu.org>
21199         * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
21200         vertical fonts.  Allow them if face name is explicitly specified.
21201         Do not give up if we find a font that cannot be converted to an xlfd.
21203 2001-11-10  Gerd Moellmann  <gerd@gnu.org>
21205         * unexelf.c (unexec): Use mmap/munmap to allocate buffers
21206         instead of malloc/free.
21208 2001-11-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21210         * xfaces.c (merge_face_vectors): Use braces to follow GNU
21211         Coding Standards.
21212         (Finternal_set_lisp_face_attribute): Likewise.
21214         * buffer.c (Fbury_buffer): Likewise.
21216         * indent.c (current_column_1): Remove unused variable `prev_col'.
21218         * coding.c (encode_coding): Use precomputed value of `src'.
21219         (encode_coding): Remove unused variable `src_end'.
21220         (code_convert_region): Remove unused variables `count'.
21222 2001-11-07  Jason Rumney  <jasonr@gnu.org>
21224         * w32term.c (x_display_and_set_cursor): Do not move system caret
21225         if cursor_glyph is NULL.
21227 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21229         * keymap.c (access_keymap): Fix compilation error.
21231 2001-11-07  Miles Bader  <miles@gnu.org>
21233         * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
21235 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21237         * intervals.c (graft_intervals_into_buffer):
21238         Remove #ifdef'd-out code.
21239         (graft_intervals_into_buffer): Remove unused variable `middle'.
21241         * lread.c (Feval_region): Remove obsolete #ifdef'd-out
21242         code (eval-current-buffer).
21243         Change doc-string comments to `new style' [w/`doc:' keyword].
21245 2001-11-06  Richard M. Stallman  <rms@gnu.org>
21247         * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
21249 2001-11-06  Stefan Monnier  <monnier@cs.yale.edu>
21251         * lread.c (read1): Fix behavior with nested backquoting.
21253         * keyboard.c (make_lispy_event): Check integerness and fix
21254         Lisp_Object/int mixup.
21256 2001-11-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21258         * fns.c (copy_hash_table): Remove unused variable `v'.
21260         * fontset.c (fontset_font_pattern): Remove unused variable
21261         `family_registry'.
21263         * indent.c (current_column_1): Remove unused variable `prev_col'.
21265 2001-11-05  Richard M. Stallman  <rms@gnu.org>
21267         * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
21269         * buffer.c (Fkill_buffer): Don't delete auto save file
21270         if buffer is modified.
21272 2001-11-05  Andrew Innes  <andrewi@gnu.org>
21274         * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
21275         CHECK_NUMBER_CDR.
21277 2001-11-05  Richard M. Stallman  <rms@gnu.org>
21279         * unexelf.c (unexec): Minor changes; clean up comments.
21281 2001-11-05  Sam Steingold  <sds@gnu.org>
21283         * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
21285 2001-11-05  Andreas Schwab  <schwab@suse.de>
21287         * sound.c (sound_perror): Save errno from being clobbered.
21289 2001-11-05  Dale Hagglund  <rdh@yottayotta.com>
21291         * unexelf.c (unexec): Don't use `mmap'.  Instead, read and write
21292         the program image directly.
21294 2001-11-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21296         * buffer.h (Fbuffer_local_value): Add prototype.
21298 2001-11-04  Richard M. Stallman  <rms@gnu.org>
21300         * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
21301         and CHECK_BUFFER.
21303         * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
21304         (record_char): Likewise.
21306         * keyboard.c (make_lispy_event): Don't insist a drag event must
21307         move to a different buffer position.  Instead, check for moving at
21308         least double_click_fuzz.
21310         * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
21312         * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
21314         * indent.c (current_column_1, Fmove_to_column): Separate the code
21315         for display-table glyphs from the code for buffer text, to fix
21316         bugs in the former.
21318 2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>
21320         * buffer.c (Fbuffer_local_value): New function.
21321         (syms_of_buffer): Defsubr it.
21323         * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
21324         value of `cursor-in-non-selected-windows'.
21326         * lisp.h (Qcursor_in_non_selected_windows): New declaration.
21327         * xdisp.c (Qcursor_in_non_selected_windows): New variable.
21328         (syms_of_xdisp): Initialize it.
21330 2001-11-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21332         * xfns.c (Fx_create_frame): Doc fix.
21334         * coding.c: Change doc-string comments to `new style' [w/`doc:'
21335         keyword].
21337         * eval.c (top_level_value, top_level_set): Remove commented and
21338         #ifdef'd-out code.
21339         (Fdefvar): Fix usage in doc-string.
21341 2001-11-03  Richard M. Stallman  <rms@gnu.org>
21343         * xfns.c: Include unistd.h, if it exists.
21345         * editfns.c: Move the include of ctype.h after unistd.h.
21347         * gmalloc.c: Test BROKEN_PROTOTYPES.
21349 2001-11-03  Ken Raeburn  <raeburn@gnu.org>
21351         * lisp.h (CHECK_STRING_CAR): New macro.
21352         * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
21353         treating XCAR and XCDR as lvalues.
21354         (openp): Use CHECK_STRING_CAR.
21355         (read_list): Use XSETCDR instead of treating XCDR as lvalue.
21357 2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>
21359         * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
21360         (SIGMASKTYPE): Define.
21362         * syssignal.h (sigunblock): Don't define if already defined.
21364 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21366         * eval.c (debugger_may_continue, Vdebug_ignored_errors)
21367         (call_debugger, Fcondition_case, skip_debugger, unbind_to):
21368         Fix typos in comments.
21370         * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
21371         and #ifdef'd-out code.
21372         Fix and reindent comments.
21374         * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
21376         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
21377         argument `i' in macros.
21379         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
21380         `i' in macros.
21382         * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
21383         (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
21384         (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
21385         (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
21386         (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
21387         (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
21388         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
21389         (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
21390         in macros.
21392         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
21393         * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
21394         * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
21395         * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
21396         * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
21397         * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
21398         * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
21399         * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
21400         * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
21401         (remove unused second argument).
21403 2001-11-02  Stefan Monnier  <monnier@cs.yale.edu>
21405         * syntax.c (describe_syntax): New wrapper.
21406         (Finternal_describe_syntax_value): Rename from describe_syntax.
21407         Don't insert space at front and \n at the end.
21408         (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
21410         * regex.c (re_wctype): Try to fix some warnings.
21411         (regcomp, regexec): Don't forget the __restrict.
21413 2001-11-02  Richard M. Stallman  <rms@gnu.org>
21415         * textprop.c (Fget_char_property): Doc fix.
21417 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21419         * process.c (Fstart_process): Add usage to doc-string.
21421         * data.c (Fsetq_default): Ditto.
21423         * callint.c (Finteractive): Ditto.
21425 2001-11-01  Stefan Monnier  <monnier@cs.yale.edu>
21427         * macros.c: Don't include keymap.h any more.
21429 2001-11-01  Richard M. Stallman  <rms@gnu.org>
21431         * data.c (Fmake_local_variable): Doc fix.
21433         * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
21434         (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
21436         * keymap.c (Fdescribe_buffer_bindings): Print character property
21437         bindings along with or instead of the buffer local map.
21438         Make the overriding maps override what they should.
21440 2001-11-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21442         * window.c (grow_mini_window): Fix typo in comment.
21444 2001-11-01  Gerd Moellmann  <gerd@gnu.org>
21446         * xterm.c (x_scroll_bar_create): Check for width and height > 0.
21447         (XTset_vertical_scroll_bar): Likewise.
21449         * xfns.c (x_build_heuristic_mask): Use four_corners_best
21450         instead of IMAGE_BACKGROUND.
21452         * xfns.c (four_corners_best): Reindent.
21454         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
21455         Handle :box so that it is possible to specify sexprs.
21457 2001-10-31  Eli Zaretskii  <eliz@is.elta.co.il>
21459         * s/hpux11.h: New file.
21461 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21463         * emacs.c (USAGE1): Show command line option --no-window-system
21464         instead of --no-windows in usage.
21465         (standard_args): Rename --no-windows to --no-window-system.
21466         (bug_reporting_address): Follow Emacs coding conventions.
21468         * eval.c (Fcommandp): Doc fix.
21469         Change doc-string comments to `new style' [w/`doc:' keyword].
21471         * frame.c (Fframe_live_p): Doc fix.
21473         * buffer.c (selective-display-ellipses): Doc fix.
21475 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
21477         * lread.c (to_multibyte): Fix computation of new read_buffer_size.
21479         * xfaces.c (realize_x_face): If C is not a single-byte character,
21480         set the face's colors_copied_bitwise_p instead of the defaulted_p
21481         members which have a different meaning.
21482         (free_face_colors): Do nothing for a face whose colors have been
21483         copied bitwise.
21485         * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
21487 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21489         * marker.c, mocklisp.c: Change doc-string comments to `new style'
21490         [w/`doc:' keyword].
21492 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
21494         * fns.c (require_unwind): Return Lisp_Object.
21496 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21498         * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
21499         (last-input-char): Revert doc-string to be the same as the
21500         doc-string of `last-input-event'.
21502         * xdisp.c: Fix typos in comments.
21504 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
21506         * window.c (grow_mini_window): Handle case that the root
21507         window is already smaller than the nominal mininum height.
21509 2001-10-30  Stefan Monnier  <monnier@cs.yale.edu>
21511         * emacs.c (main): Don't call keys_of_macros any more.
21513         * lisp.h (keys_of_macros): Remove.
21515         * macros.c (keys_of_macros): Remove.
21517         * xfaces.c (Fface_attribute_relative_p): Declare args.
21519 2001-10-30  Jason Rumney  <jasonr@gnu.org>
21521         * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
21522         (enum_font_cb2): Ignore fonts with vertical orientation.
21524 2001-10-30  Richard M. Stallman  <rms@gnu.org>
21526         * keyboard.c (Finput_pending_p): Doc fix.
21528 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
21530         * xterm.c (x_after_update_window_line): Don't run the code
21531         clearing in borders for rows whose visible height is 0.
21533         * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
21534         resized_p flag is set.  If not set, use the much less flickering
21535         method previously used.
21537         * dispnew.c (change_frame_size_1): Set frame's resized_p.
21539         * frame.h (struct frame) <resized_p>: New member.
21541         * lread.c (to_multibyte): Ensure read_buffer is at least twice
21542         as large as the number of bytes to convert.
21544         * lread.c (to_multibyte): New function.
21545         (read1): Use it.
21547 2001-10-30  Eli Zaretskii  <eliz@is.elta.co.il>
21549         * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
21551 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
21553         * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
21554         (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
21555         if the row's fill_line_p is set and drawing the last glyph with
21556         DRAW_IMAGE_{RAISED,SUNKEN}.
21558         * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
21560 2001-10-29  Stefan Monnier  <monnier@cs.yale.edu>
21562         * xmenu.c: Include coding.h and charset.h.
21563         (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
21564         (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
21565         (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
21566         Explicitly set wv->help.  Use `TRUE' rather than `True'.
21567         (menu_help_callback): Use empty_string.
21569         * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
21570         (Fx_popup_dialog): Explicitly init f.
21571         (w32_menu_display_help): Use empty_string.
21573 2001-10-29  Richard M. Stallman  <rms@gnu.org>
21575         * fns.c (Frequire): Detect recursive try to require the same
21576         feature 3 or more levels deep, and get error.
21577         (require_unwind): New subroutine.
21578         (require_nesting_list): New variable.
21579         (syms_of_fns): Init and staticpro it.
21581         * print.c (print_object): Clarify indication of insertion type.
21583 2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>
21585         * coding.c (syms_of_coding): Document that locale-coding-system is
21586         used for decoding input on X.
21588         * window.c (Fscroll_left, Fscroll_right): Doc fix.
21590 2001-10-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21592         * keyboard.c (Finput_pending_p): Fix typo in doc-string.
21593         (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
21595 2001-10-29  Gerd Moellmann  <gerd@gnu.org>
21597         * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
21598         use NO_CURSOR if cursor_in_non_selected_windows is false.
21600         * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
21601         the slant attribute if FRAME is t.
21603         * xfns.c (x_set_internal_border_width): Set frame garbaged
21604         when X window doesn't exist yet.
21606         * xterm.c (x_after_update_window_line): Clear internal border
21607         in different circumstances.
21609         * xterm.c (XTread_socket) <KeyPress>: Don't use
21610         STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
21611         <handa@etl.go.jp>.
21613 2001-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
21615         * m/ibms390.h: New file.  From Adam Thornton
21616         <athornton@sinenomine.net>.
21618 2001-10-28  Gerd Moellmann  <gerd@gnu.org>
21620         * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
21622         * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
21623         a loop counter.
21625 2001-10-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21627         * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
21629         * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
21630         keyword].
21631         Fix typos in comments.
21633         * emacs.c (bug_reporting_address): New function.
21634         Use it when displaying usage message.
21636         * minibuf.c (read_minibuf): Remove unused external declaration of
21637         variable `Qread_only'.
21639         * keymap.c (access_keymap): Remove unused variable `charset'.
21641 2001-10-28  Miles Bader  <miles@gnu.org>
21643         * xfaces.c (merge_face_heights): Handle TO being relative as well.
21644         Remove #ifdef'd-out code.
21645         (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
21646         (syms_of_xfaces): Initialize them.
21648 2001-10-27  Jason Rumney  <jasonr@gnu.org>
21650         * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
21651         <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
21652         position using the system caret.
21654         * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
21655         (w32_system_caret_height, w32_system_caret_x)
21656         (w32_system_caret_y): New variables for tracking system caret.
21657         (w32_initialize): Initialize them.
21658         (x_display_and_set_cursor): Make system caret follow the active cursor.
21660         * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
21661         New messages types.
21663         * w32term.c (note_mouse_highlight): Clear old help_echo.
21665 2001-10-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21667         * xterm.c: Fix typo in a comment.
21669         * emacs.c: Fix typos in comments.
21670         Remove unnecessary spaces.
21671         Change doc-string comments to `new style' [w/`doc:' keyword].
21672         (USAGE2): Fix typos in usage string.
21674         * xterm.c: Fix typo in a comment.
21676         * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
21677         emacs.c.
21679 2001-10-27  Gerd Moellmann  <gerd@gnu.org>
21681         * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
21682         instead of 1/2 line_height in the heuristic for skipping
21683         farther backward when target_y was not reached.
21685         * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
21686         Display errno only if non-zero.
21687         (sound_warning): New function.
21688         (vox_configure): Don't treat failing to set sample rate as error.
21689         (various places): Improve error messages.
21691 2001-10-26  Eli Zaretskii  <eliz@is.elta.co.il>
21693         * fileio.c (Faccess_file): Run the argument filename through
21694         Fexpand_file_name, before using it.
21696         * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
21697         ring-bell-function.  Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
21699 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
21701         * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
21703         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21704         Fix clearing in the case of scroll bars on the right.
21706 2001-10-26  Juanma Barranquero  <lektu@terra.es>
21708         * w32gui.h (XImage): Add a dummy typedef.
21710 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
21712         * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
21714 2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>
21716         * frame.c (Fframe_parameter): Fix last change.
21718         * fileio.c: Revert last change (which removed old commented-out
21719         version of expand-file-name).  Add a comment that explains why
21720         this old version should not be removed.
21722 2001-10-25  Gerd Moellmann  <gerd@gnu.org>
21724         * frame.c (Fframe_parameter): Fix a bug whereby some
21725         ``artificial'' frame parameters, like `minibuffer' were not
21726         obtained by calling Fframe_parameters.
21728         * xterm.c (show_mouse_face): Clean up.  Recognize overwritten
21729         cursor differently.
21731         * xdisp.c (move_it_vertically_backward): Compute line height
21732         differently.  Add heuristic to try to be more compatible to 20.x.
21734 2001-10-25  Stefan Monnier  <monnier@cs.yale.edu>
21736         * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
21738         * editfns.c (text_property_stickiness): Fix Lisp_Object used as
21739         boolean.
21741 2001-10-25  Miles Bader  <miles@gnu.org>
21743         * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
21744         BG is a pointer to a structure, not a structure.
21745         (gif_format, png_format): Add missing commas.
21747 2001-10-24  Richard M. Stallman  <rms@gnu.org>
21749         * xfaces.c (Fface_attributes_as_vector): New function.
21750         (syms_of_xfaces): Defsubr it.
21752 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21754         * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
21755         variable `area'.
21757 2001-10-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21759         * search.c (scan_newline): Remove unused variable `selective_display'.
21761 2001-10-25  Miles Bader  <miles@gnu.org>
21763         * dispextern.h (struct image): Add `background',
21764         `background_valid', and `background_transparent' fields.
21765         (image_background, image_background_transparent): New declarations.
21766         (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
21767         * xfns.c (image_background, image_background_transparent)
21768         (four_corners_best): New functions.
21769         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
21770         (gs_format): Add `:background' entry.
21771         (lookup_image): Set IMG's background color if specified.
21772         (pbm_load, xbm_load_image, png_load): Set IMG's background field
21773         when appropriate.
21774         (x_clear_image_1): Reset `background_valid' and
21775         `background_transparent_valid' fields.
21776         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
21777         calculating it here.  Set IMG's background_transparent field.
21778         (enum xpm_keyword_index): Add XPM_BACKGROUND.
21779         (enum png_keyword_index): Add PNG_BACKGROUND.
21780         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
21781         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
21782         (enum gif_keyword_index): Add GIF_BACKGROUND.
21783         (enum gs_keyword_index): Add GS_BACKGROUND.
21784         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
21785         Pre-calculate image background color where necessary.
21786         * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
21787         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
21788         color to use for image glyph reliefs.
21790 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
21792         * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
21793         in full-width rows.
21795         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
21796         Fix clearing of area not covered by scroll bar.
21798 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21800         * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
21801         and `real_start'.
21802         (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
21803         (glyph_rect): Remove unused variable `area'.
21805 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
21807         * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
21809         * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
21810         (row_containing_pos): Take additional argument DY.
21811         Treat rows ending in middle of char differently.
21812         (display_line): Handle tabs on window systems differently.
21814         * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
21815         with additional argument.
21817         * dispextern.h (row_containing_pos): Adjust prototype.
21819         * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
21820         (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
21821         (try_window_id, try_window_reusing_current_matrix)
21822         (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
21823         (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
21825 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21827         * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
21828         gnuemacs).
21829         (HAVE_BOXES): Fix typo in comment.
21830         (push_menu_pane): Fix typo in comment.
21832         * xdisp.c (display_prop_string_p): Remove unused local declaration
21833         of `Qwhen'.
21834         (single_display_prop_string_p): Remove unused local declarations
21835         of `Qwhen' and `Qmargin'.
21836         (string_buffer_position): Remove unused variable `around'.
21837         (store_frame_title): Remove unused variable `width'.
21839         * window.c: Don't define max.
21840         (coordinates_in_window): Remove unused variable `uy'.
21842         * widget.c: Don't define max.
21844         * process.c: Don't define max.
21845         (create_process): Remove unused variable `buffer'.
21847 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
21849         * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
21851 2001-10-23  Eli Zaretskii  <eliz@is.elta.co.il>
21853         * xfaces.c (Finternal_set_lisp_face_attribute)
21854         [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
21855         frame is on a windowed display.
21857 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
21859         * dispnew.c (sync_window_with_frame_matrix_rows):
21860         Fix handling of windows which aren't full-width, fix handling
21861         of marginal areas.
21863         * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
21865 2001-10-23  Andreas Schwab  <schwab@suse.de>
21867         * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
21868         LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
21870 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
21872         * xterm.c (x_draw_glyphs): Remove parameters READ_START and
21873         REAL_END.  Notice if cursor gets overwritten.
21874         (notice_overwritten_cursor): Take X positions as parameters.
21875         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
21876         around call to x_draw_glyphs.
21878 2001-10-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21880         * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
21881         instead of C) and usage.
21883         * editfns.c (char-to-string): Fix argument names (use CHAR instead
21884         of C) and usage.
21886         * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
21887         `left', `max_width' and `max_height'.
21889 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
21891         * xdisp.c (display_line): For a tab continued to the next line,
21892         set row's ends_in_middle_of_char_p.
21894 2001-10-22  Gerd Moellmann  <gerd@gnu.org>
21896         * xdisp.c (display_line): Fix computation of continuation lines
21897         width for TABs.
21899 2001-10-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21901         * xdisp.c (build_desired_tool_bar_string): Remove unused variable
21902         `Qlaplace'.
21904         * fileio.c: Remove unused code.
21906 2001-10-22  Miles Bader  <miles@gnu.org>
21908         * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
21909         (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
21910         Remove `DOC_STRINGS_IN_COMMENTS' cases.
21912 2001-10-21  Jason Rumney  <jasonr@gnu.org>
21914         * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
21916 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
21918         * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
21919         (Finsert_string): Avoid the multi-line string literals warning.
21921 2001-10-22  Miles Bader  <miles@gnu.org>
21923         * doc.c (Vhelp_manyarg_func_alist): Variable removed.
21924         (Fdocumentation): Don't use it.
21925         (syms_of_doc): Don't initialize it.
21927         * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
21928         * print.c (Fwith_output_to_temp_buffer): Likewise.
21929         * window.c (Fsave_window_excursion): Likewise.
21930         * editfns.c (Fsave_excursion, Fsave_current_buffer)
21931         (Fsave_restriction): Likewise.
21932         * eval.c (Frun_hooks, Frun_hook_with_args)
21933         (Frun_hook_with_args_until_failure)
21934         (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
21935         (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
21936         (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
21937         (Funwind_protect, Fcondition_case): Likewise.
21938         * coding.c (Ffind_operation_coding_system): Likewise.
21939         * keyboard.c (Ftrack_mouse): Likewise.
21941 2001-10-21  Miles Bader  <miles@gnu.org>
21943         * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
21944         (Fmake_hash_table): Add usage: string to doc string.
21945         * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
21946         (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
21947         (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
21948         * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
21949         (Fml_prefix_argument_loop): Likewise.
21951 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
21953         * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
21955         * sysdep.c (init_sys_modes): Change doc-string comments to `new
21956         style' [w/`doc:' keyword].
21958         * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
21959         * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
21960         comments to `new style' [w/`doc:' keyword].
21962 2001-10-21  Jason Rumney  <jasonr@gnu.org>
21964         * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
21966         * w32term.c (remember_mouse_glyph): New function.
21967         (w32_mouse_position): Use it.
21968         (note_mouse_movement): If the mouse moved off the glyph, remember
21969         its new position.
21971         * w32term.h (struct w32_output): Correct spelling of x_compatible.
21972         (w32_display_info): Add mouse_face_overlay.
21974         * w32term.c (notice_overwritten_cursor): Renamed from
21975         note_overwritten_text_cursor.  Rewritten to take glyph widths into
21976         account.
21977         (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
21978         (fast_find_string_pos): New function.
21979         (fast_find_position): Return the correct vpos.  Add parameter
21980         STOP.  In the final row, stop before glyphs having STOP as object.
21981         Don't consider glyphs that are not from a buffer.
21982         (fast_find_position) [0]: Add a presumably more correct version
21983         for after 21.1.
21984         (expose_window_tree, expose_frame): Don't compute intersections here.
21985         (expose_window): Do it here instead.
21986         (expose_window_tree, expose_window, expose_line): Return 1 when
21987         overwriting mouse-face.
21988         (expose_window): If W is the window currently being updated, mark
21989         the frame garbaged.
21990         (expose_frame): If mouse-face was overwritten, redo it.
21991         (x_use_underline_position_properties): New variable.
21992         (syms_of_xterm): DEFVAR_BOOL it.
21993         (x_draw_glyph_string): Add comment to use it in future.
21994         (x_draw_glyph_string): Restore clipping after drawing box.
21995         Fix a computation of the underline position.
21996         (w32_get_glyph_string_clip_rect): Minor cleanup.
21997         (x_fill_stretch_glyph_string): Remove an assertion.
21998         (x_produce_glyphs): Don't convert multibyte characters
21999         to unibyte characters in unibyte buffers.
22000         (cursor_in_mouse_face_p): New function.
22001         (x_draw_stretch_glyph_string): Use it to choose a different GC
22002         when drawing a cursor within highlighted text.  Don't draw
22003         background again if it has already been drawn.
22004         (x_draw_glyph_string_box): Don't draw a full-width
22005         box just because the glyph row's full_width_p flag is set.
22006         (x_draw_glyphs): Fix computation of rightmost x for
22007         full-width rows.
22008         (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
22009         (w32_draw_relief_rect): Extend left shadow to the bottom and left;
22010         change bottom shadow accordingly.  Some cleanup.
22011         (x_update_window_end): Handle overwritten mouse face
22012         also for tool bar windows.
22013         (show_mouse_face): Set the glyph row's mouse_face_p flag also when
22014         DRAW is DRAW_IMAGE_RAISED.
22015         (clear_mouse_face): Return 1 if text with mouse face was
22016         actually redrawn.  Make the function static.
22017         Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
22018         optimize away highlighting if we pass over that same overlay again.
22019         (note_mouse_highlight): Call mouse_face_overlay_overlaps
22020         to detect a case where we have to highlight a different region
22021         despite not having left the currently highlighted region.
22022         Set mouse_face_overlay in the x_display_info.  Avoid changing the
22023         mouse pointer shape when show_mouse_face has already done it, or
22024         there is no need.  Handle mouse-face and help-echo in strings.
22025         (glyph_rect): New function.
22026         (w32_mouse_position): Use it to raise the threshold for mouse
22027         movement event generation.
22028         (w32_initialize_display_info): Initialize the x_display_info's
22029         mouse_face_overlay.
22030         (w32_set_vertical_scroll_bar): Don't clear a zero height
22031         or width area.
22032         (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
22033         a widget to zero height.
22035         * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
22036         Protect unibyte strings created by replacing their multibyte
22037         equivalents in menu_items.
22038         (w32_menu_show): Don't overwrite an item's name with its key
22039         description in case the description is a multibyte string.
22040         (single_submenu): Some cleanup.
22042         * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
22043         (postprocess_image): New function.
22044         (lookup_image): Call it for all image types except PostScript.
22045         (x_kill_gs_process): Call postprocess_image.
22046         (tiff_error_handler, tiff_warning_handler): New functions.
22047         (tiff_load): Install them as handlers.
22048         (x_kill_gs_process): Recognize if someone has cleared the image
22049         cache under us.
22050         (valid_image_p): Protect better against invalid image
22051         specifications.  Previous code could signal an error.
22052         (Fx_hide_tip, Fshow_tip): Doc fix.
22053         (Fv_max_tooltip_size): New variable.
22054         (syns_of_xfns): DEFVAR_LISP it.
22055         (Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
22056         window buffer to *tip* right after creating the frame.  Set frame's
22057         window_width.  Use a maximum tooltip size specified by
22058         Vx_max_tooltip_size, if that has valid contents.
22059         (compute_tip_xy): Add parameters WIDTH and HEIGHT.
22060         Make sure the tooltip is completely visible.
22061         (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
22062         (Fx_create_frame): Adjust the frame's height for presence
22063         of the tool bar before calling x_figure_window_size.
22064         (x_set_tool_bar_lines): Clear the tool bar window's current matrix
22065         when the window gets smaller.
22066         (x_set_foreground_color): Set frame's cursor_pixel.
22067         (x_set_foreground_color, x_set_background_color): Cleaned up.
22068         (x_set_font): Handle case of x_new_fontset returning the same name
22069         as before, although there was a change in fontsets.
22071 2001-10-21  Miles Bader  <miles@gnu.org>
22073         * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
22074         (Flogxor): Add usage: string to doc string.
22075         * charset.c (Fstring): Likewise.
22076         * callproc.c (Fcall_process_region, Fcall_process): Likewise.
22077         * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
22079 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
22081         * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
22083         * alloc.c: Reindent DEFUNs with doc: keywords.
22085         * abbrev.c (Finsert_abbrev_table_description): Reindent.
22087         * frame.c: Change doc-string comments to `new style' [w/`doc:'
22088         keyword].
22090 See ChangeLog.9 for earlier changes.
22092 ;; Local Variables:
22093 ;; coding: iso-2022-7bit
22094 ;; End:
22096     Copyright (C) 2001, 2002 Free Software Foundation, Inc.
22097   Copying and distribution of this file, with or without modification,
22098   are permitted provided the copyright notice and this notice are preserved.
22100 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4