Update copyright for years from Emacs 21 to present (mainly adding
[emacs.git] / src / ChangeLog
blobe3cc278bbd96759f7c819246e3e88f2552b12174
1 2007-01-20  Chong Yidong  <cyd@stupidchicken.com>
3         * xdisp.c (try_window): Clear mouse-face highlights first.
5         * window.c (set_window_buffer): Revert 2006-11-22 change.
7 2007-01-20  Eli Zaretskii  <eliz@gnu.org>
9         * .gdbinit (ppt, xtype, xmisctype, xint, xptr, xmarker, xframe)
10         (xbuffer, xcons, xcar, xcdr): Fix doc strings.
12 2007-01-20  Chong Yidong  <cyd@stupidchicken.com>
14         * keyboard.c (read_key_sequence): Extract local map only if the
15         given position is in an accessible buffer region.
17 2007-01-19  Nick Roberts  <nickrob@snap.net.nz>
19         * .gdbinit: Reformat documentation so that first sentence
20         displays properly with "help user-defined" (like apropos).
22 2007-01-18  Bruno Haible  <bruno@clisp.org> (tiny change)
24         * epaths.in: Move PATH_DOC from local/info to local/share/info.
26 2007-01-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
28         * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]:
29         Create movable modal window instead of movable alert window.
30         (create_and_show_dialog) [!MAC_OSX]: Use DeactivateControl instead
31         of DisableControl.
33         * macselect.c (Fmac_resume_apple_event): Set error number when
34         descriptor type of reply is non-null.
36 2007-01-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
38         * macmenu.c (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Use
39         DisableControl for disabled items.  Set default button to first
40         enabled one.  Use icon of application in execution.
42 2007-01-13  Eli Zaretskii  <eliz@gnu.org>
44         * process.c (Fdelete_process, Fprocess_id, sigchld_handler): Copy
45         PID into EMACS_INT to avoid GCC warnings.
47         * fns.c (maybe_resize_hash_table): Copy new size of hash table
48         into EMACS_INT to avoid GCC warnings.
50         * editfns.c (Fuser_uid, Fuser_real_uid): Copy values returned by
51         geteuid and getuid into EMACS_INT to avoid GCC warnings.
53         * dired.c (Ffile_attributes): Fix last change.
55 2007-01-12  Eli Zaretskii  <eliz@gnu.org>
57         * dired.c (Ffile_attributes): Copy some members of `struct stat'
58         into int's to avoid GCC warnings about limited range of short in
59         arguments to FIXNUM_OVERFLOW_P.
61 2007-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
63         * macmenu.c (HAVE_DIALOGS): Define if TARGET_API_MAC_CARBON.
64         (mac_handle_dialog_event, install_dialog_event_handler)
65         (create_and_show_dialog) [TARGET_API_MAC_CARBON]: New functions.
66         (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
67         (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH)
68         (DIALOG_MAX_INNER_WIDTH, DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
69         (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
70         (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
71         (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
72         (DIALOG_ICON_TOP_MARGIN) [TARGET_API_MAC_CARBON]: New macros.
73         (mac_dialog) [TARGET_API_MAC_CARBON]: Remove function.
74         (mac_dialog_show) [TARGET_API_MAC_CARBON]: Use create_and_show_dialog.
76         * macterm.c (x_free_frame_resources) [USE_CG_DRAWING]: Call
77         mac_prepare_for_quickdraw.
78         (quit_char, make_ctrl_char) [TARGET_API_MAC_CARBON]: Move externs
79         outside #ifdef MAC_OSX.
80         (mac_quit_char_key_p) [TARGET_API_MAC_CARBON]: Move function
81         outside #ifdef MAC_OSX.
82         (mac_check_bundle) [MAC_OSX]: Remove unused function.
84         * macterm.h (mac_quit_char_key_p): Move extern outside #ifdef MAC_OSX.
85         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Parenthesize definitions.
87 2007-01-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
89         * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Use pthread_equal,
90         block/unblock SIGIO.
92 2007-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
94         * editfns.c (Fformat): Allow integer-format to work with floats of size
95         larger than most-positive-fixnum (but still smaller than MAXINT).
97         * dired.c (Ffile_attributes): Use floats for large uids/gids.
99 2007-01-09  Eli Zaretskii  <eliz@gnu.org>
101         * emacs.c (syms_of_emacs) <path-separator>: Doc fix.
103 2007-01-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
105         * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Add BLOCK_INPUT
106         around mkstemp.
108         * image.c (XDrawLine) [MAC_OS]: Remove macro.
109         (XCreateGC_pixmap) [!HAVE_NTGUI]: Likewise.
110         (x_disable_image) [!HAVE_NTGUI]: Use XCreateGC instead of
111         XCreateGC_pixmap.
113         * macgui.h (Display): Typedef to opaque type.
115         * macmenu.c (mac_dialog_modal_filter) [MAC_OSX]: New function.
116         (Fx_popup_dialog) [MAC_OSX]: Use standard alert if called from
117         Fmessage_box, Fyes_or_no_p, or Fy_or_n_p.
118         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030] (menu_quit_handler):
119         Use mac_quit_char_key_p.
121         * macterm.c (XDrawLine): Rename from mac_draw_line_to_pixmap.
122         (XCreateGC): Change type of 2nd argument to void *.
123         (XFreeGC) [USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
124         Fix last change.
125         (mac_to_emacs_modifiers): Change return type to int.
126         [USE_CARBON_EVENTS] (mac_event_to_emacs_modifiers): Likewise.
127         (mac_mapped_modifiers): New function.
128         (XTread_socket): Use it.
129         [USE_TSM] (mac_handle_text_input_event): Likewise.
130         (do_window_update) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
131         (mac_quit_char_modifiers, mac_quit_char_keycode) [MAC_OSX]:
132         Remove variables.
133         (mac_determine_quit_char_modifiers, init_quit_char_handler)
134         [MAC_OSX]: Remove functions.
135         (make_ctrl_char) [MAC_OSX]: Add extern.
136         (mac_quit_char_key_p) [MAC_OSX]: New function.
137         (mac_initialize) [MAC_OSX]: Don't call init_quit_char_handler.
139         * macterm.h (FONT_MAX_WIDTH): Remove unused macro.
140         (XCreateGC): Change type in extern.
141         (XDrawLine): Rename from mac_draw_line_to_pixmap.
142         (mac_quit_char_key_p) [MAC_OSX]: Add extern.
144 2007-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
146         * keyboard.c (init_keyboard): Initialize interrupt_input_blocked and
147         interrupt_input_pending.
149         * xterm.h (x_display_info): New: net_supported_atoms,
150         nr_net_supported_atoms and net_supported_window.
152         * xterm.c: New variable last_user_time.
153         (handle_one_xevent): Set last_user_time from events that have Time.
154         Set net_supported_window to 0 when reparented.
155         (wm_supports): New function.
156         (do_ewmh_fullscreen): Use wm_supports to check for _NET_WM_STATE.
157         (x_term_init): Initialize net_supported_atoms, nr_net_supported_atoms
158         and net_supported_window.
160 2007-01-05  Kim F. Storm  <storm@cua.dk>
162         * indent.c (Fvertical_motion): Fix it overshoot check for overlay
163         strings without embedded newlines immediately followed by newline.
165 2007-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
167         * editfns.c (Fformat_time_string, Fdecode_time, Fencode_time)
168         (Fcurrent_time_string, Fcurrent_time_zone): Add BLOCK_INPUT around
169         gmtime/localtime/emacs_memftimeu/mktime.
171         * mac.c (Fmac_set_file_creator): Use MAC_EMACS_CREATOR_CODE
172         instead of 'EMAx'.
173         [!MAC_OSX] (sys_open, sys_creat, sys_fopen): Likewise.
175         * macgui.h (struct _XGC) [USE_CG_DRAWING
176         && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New members cg_fore_color
177         and cg_back_color.
179         * macmenu.c (Vshow_help_function) [TARGET_API_MAC_CARBON]: Add extern.
180         (restore_show_help_function, menu_target_item_handler)
181         [TARGET_API_MAC_CARBON]: New functions.
182         (install_menu_target_item_handler): New function.
183         (add_menu_item) [TARGET_API_MAC_CARBON]: Set help string as menu
184         item property.
186         * macterm.c (CG_SET_FILL_COLOR_MAYBE_WITH_CGCOLOR)
187         (CG_SET_FILL_COLOR_WITH_GC_FOREGROUND)
188         (CG_SET_FILL_COLOR_WITH_GC_BACKGROUND)
189         (CG_SET_STROKE_COLOR_MAYBE_WITH_CGCOLOR)
190         (CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND): New macros.
191         (mac_cg_color_space_rgb) [USE_CG_DRAWING]: New variable.
192         (mac_cg_color_black) [USE_CG_DRAWING
193         && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New variable.
194         (init_cg_color) [USE_CG_DRAWING]: New function.
195         (mac_draw_line, mac_draw_rectangle) [USE_CG_DRAWING]: Use
196         CG_SET_STROKE_COLOR_WITH_GC_FOREGROUND instead of CG_SET_STROKE_COLOR.
197         (mac_erase_rectangle, mac_clear_window, mac_draw_cg_image)
198         (mac_fill_rectangle, mac_draw_image_string_cg) [USE_CG_DRAWING]:
199         Use CG_SET_FILL_COLOR_WITH_GC_FOREGROUND or
200         CG_SET_FILL_COLOR_WITH_GC_BACKGROUND instead of CG_SET_FILL_COLOR.
201         (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Likewise.
202         (XCreateGC, XFreeGC, XSetForeground, XSetBackground) [USE_CG_DRAWING
203         && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use gc->cg_fore_color and/or
204         gc->cg_back_color.
205         (install_drag_handler, remove_drag_handler): Make extern.
206         (install_menu_target_item_handler): Add extern.
207         (install_window_handler): Call install_menu_target_item_handler.
208         [MAC_OS8] (main): Use MAC_EMACS_CREATOR_CODE instead of 'EMAx'.
209         (mac_initialize) [USE_CG_DRAWING]: Call init_cg_color.
211         * macterm.h (MAC_EMACS_CREATOR_CODE): New enumerator.
213 2007-01-04  Juanma Barranquero  <lekktu@gmail.com>
215         * window.c (Fwindow_end): Fix use of >= operator.
217 2007-01-03  Richard Stallman  <rms@gnu.org>
219         * window.c (Fwindow_end): Check BUF_OVERLAY_MODIFF like BUF_MODIFF.
221 2007-01-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
223         * gtkutil.h (xg_menu_item_cb_data_): Remove highlight_id and
224         unhighlight_id.
226         * gtkutil.c (menuitem_highlight_callback): Invoked widget is the
227         parent of the menu item.  Get menu item widget from event.
228         (xg_create_one_menuitem, xg_update_menu_item): highlight_id and
229         unhighlight_id has been removed.
230         (create_menus): Connect enter/leave-notify-event to the menu instead
231         of individual items.
233 2006-12-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
235         * gtkutil.c (update_frame_tool_bar): Connect create-menu-proxy with
236         xg_tool_bar_menu_proxy.
237         (xg_tool_bar_menu_proxy): New function.
238         (xg_tool_bar_proxy_callback): New function.
240 2006-12-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
242         * gtkutil.c (xg_tool_bar_button_cb): Save last modifier on widget.
243         (xg_tool_bar_callback): Remove check for button.
244         (update_frame_tool_bar): Put an event box in the tool bar and a button
245         in the event box.  Attach enter/leave-notify-event to the event box.
247 2006-12-30  Richard Stallman  <rms@gnu.org>
249         * keymap.c (Fdefine_key): Doc fix.
251 2006-12-29  Kim F. Storm  <storm@cua.dk>
253         * frame.h (struct frame): New member minimize_tool_bar_window_p.
255         * xdisp.c (auto_resize_tool_bars_p): Replace with ...
256         (Vauto_resize_tool_bars): ... this.
257         (syms_of_xdisp): DEFVAR_LISP and initialize it.  Update doc string
258         to describe new value `grow-only', and use of C-l.
259         (display_tool_bar_line): Only use default face for border below
260         toolbar if not grow-only (to get acceptable visual appearence).
261         Explicitly set visible_height for empty toolbar lines.
262         (redisplay_tool_bar): Handle `grow-only' setting.  Check and clear
263         minimize_tool_bar_window_p flag.
265         * window.c (Frecenter): Set minimize_tool_bar_window_p flag
266         when called without arg to redraw with minimum toolbar height.
267         Update doc string.
269 2006-12-29  Jason Rumney  <jasonr@gnu.org>
271         * s/ms-w32.h (tzname): Do not define in msvc8.
272         (utime): Do not define in msvc8.
274         * regex.c (regerror): Change parameter name err_code.
276 2006-12-26  Richard Stallman  <rms@gnu.org>
278         * search.c (Fsearch_forward): Doc fix.
280         * callint.c (Finteractive): Doc fix.
282 2006-12-25  Kim F. Storm  <storm@cua.dk>
284         * s/ms-w32.h (BROKEN_DATAGRAM_SOCKETS): Define it.
286 2006-12-23  Eli Zaretskii  <eliz@gnu.org>
288         * keyboard.c (some_mouse_moved): Fix last change.
290 2006-12-22  Eli Zaretskii  <eliz@gnu.org>
292         * callproc.c (syms_of_callproc) <shell-file-name>: Doc fix.
294 2006-12-22  Mark Davies  <mark@mcs.vuw.ac.nz>
296         * m/amdx86-64.h, m/hp800.h: Add support for NetBSD.
297         * m/sh3el.h: New file.
299 2006-12-22  Eli Zaretskii  <eliz@gnu.org>
301         * makefile.w32-in (emacs, temacs): Depend on stamp_BLD instead of
302         $(BLD).
303         ($(OBJ0) $(OBJ1) $(WIN32OBJ)): New dependency on stamp_BLD.
304         (bootstrap-temacs): Pass $(XMFLAGS) to sub-make.
305         ($(OBJ0) $(OBJ1) $(WIN32OBJ)): Add lastfile.$(O) and firstfile.$(O).
306         (clean): Delete stamp_BLD.
308 2006-12-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
310         * macfns.c (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
311         Call mac_update_proxy_icon also when buffer modification flag changed.
312         [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): Don't update alias,
313         but compare FSRef/FSSpec of resolved alias.
315 2006-12-21  Kim F. Storm  <storm@cua.dk>
317         * w32.c (_sys_wait_accept): Fix handle leak.
319 2006-12-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
321         * sound.c: Include <alsa/asoundlib.h> if ALSA_SUBDIR_INCLUDE is
322         defined.
324 2006-12-20  Kim F. Storm  <storm@cua.dk>
326         * s/ms-w32.h (BROKEN_NON_BLOCKING_CONNECT): Define it.
328 2006-12-19  Juanma Barranquero  <lekktu@gmail.com>
330         * keyboard.c (syms_of_keyboard) <double-click-time>:
331         * mac.c (Fmac_code_convert_string):
332         * search.c (Fsearch_forward): Doc fixes.
334 2006-12-19  Kim F. Storm  <storm@cua.dk>
336         Rework 2006-12-04 change.  A SIGUSR1 (SIGUSR2) signal now generates
337         a sigusr1 event instead of [signal usr1] sequence, and signal events
338         are now supposed to be handled via special-event-map.
340         * keyboard.c (kbd_buffer_store_event_hold): Undo 2006-12-04 change.
341         (make_lispy_event): Don't generate Qsignal prefix for code 0.
342         Abort if signal code is unknown.
343         (store_user_signal_events): Don't make Qsignal prefix (code 0).
344         (Qsignal): Move declaration back to process.c.
345         (syms_of_keyboard): Don't intern or staticpro it here.
347         * process.c (Qsignal): Declare here.
348         (syms_of_process): Intern or staticpro it.
350         * emacs.c (main): Rename user signals to sigusr1 and sigusr2.
352         * .gdbinit: Pass on SIGUSR1 and SIGUSR2 to Emacs.
354 2006-12-19  Juanma Barranquero  <lekktu@gmail.com>
356         * buffer.c (syms_of_buffer) <buffer-display-table>
357         <scroll-up-aggressively, scroll-down-aggressively>: Doc fixes.
359 2006-12-17  Richard Stallman  <rms@gnu.org>
361         * fileio.c (Fread_file_name_internal): Pass Vread_file_name_predicate
362         to Ffile_name_completion.
364         * dired.c (file_name_completion): New arg PREDICATE.  Some cleanup.
365         (Ffile_name_completion): New arg PREDICATE.
367 2006-12-17  Juanma Barranquero  <lekktu@gmail.com>
369         * buffer.c (Fkill_buffer): Doc fix.
370         (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
372 2006-12-16  Juanma Barranquero  <lekktu@gmail.com>
374         * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
376 2006-12-16  Eli Zaretskii  <eliz@gnu.org>
378         * w32fns.c (w32-window-exists-p): New function.
379         (syms_of_w32fns): Defsubr it.
381         * prefix-args.c [STDC_HEADERS]: Include stdlib.h.
383 2006-12-16  Juanma Barranquero  <lekktu@gmail.com>
385         * minibuf.c (Ftry_completion): Use `check_obarray' if ALIST is a vector.
387 2006-12-15  Eli Zaretskii  <eliz@gnu.org>
389         * emacs.c (USAGE3): Clarify documentation of --color.
391 2006-12-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
393         * mac.c (wakeup_from_rne_enabled_p) [TARGET_API_MAC_CARBON]:
394         New variable.
395         (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE): New macros.
396         [!MAC_OSX] (select): Use them.
397         [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
398         (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: New function.
400         * macfns.c (mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern.
401         (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function.
402         (syms_of_macfns) [USE_ATSUI]: Defsubr it.
404         * macselect.c [TARGET_API_MAC_CARBON] (mac_do_receive_drag):
405         Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
407         * macterm.c (mac_query_char_extents) [USE_ATSUI]: Don't call
408         ATSUGetGlyphBounds if not necessary.
409         (Vmac_atsu_font_table) [USE_ATSUI]: Remove variable.
410         (syms_of_macterm) [USE_ATSUI]: Don't defvar it.
411         (fm_get_style_from_font, atsu_find_font_from_family_name)
412         (atsu_find_font_family_name, mac_atsu_font_face_attributes)
413         [USE_ATSUI]: New functions.
414         (init_font_name_table) [USE_ATSUI]: Use atsu_find_font_family_name.
415         (mac_load_query_font) [USE_ATSUI]: Use atsu_find_font_from_family_name.
416         Don't get metrics for Latin-1 right half characters.
417         (mac_load_query_font): Don't load font if space width is not positive.
418         [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event):
419         Use mac_wakeup_from_rne instead of mac_post_mouse_moved_event.
420         (XTread_socket): Call SelectWindow when unfocused frame is clicked.
422         * macterm.h (mac_wakeup_from_rne) [TARGET_API_MAC_CARBON]: Add extern.
424 2006-12-15  Kim F. Storm  <storm@cua.dk>
426         * keyboard.c (ignore_mouse_drag_p): New global var.
427         (some_mouse_moved): Return 0 if it is non-zero.
428         (make_lispy_event): Generate click event on mouse up if
429         ignore_mouse_drag_p is non-zero, even if mouse moved.
430         Clear ignore_mouse_drag_p on mouse down/up.
432         * xdisp.c (redisplay_window): Set ignore_mouse_drag_p if tool-bar
433         is resized to avoid generating a mouse drag event.
435 2006-12-14  Juanma Barranquero  <lekktu@gmail.com>
437         * w32fns.c (w32_wnd_proc): Force non-tooltip frames to respect the
438         minimum tracking size.  Remove non-working old hack to do the same.
440 2006-12-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
442         * emacs.c (handle_user_signal): Move function to keyboard.c.
443         (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
445         * keyboard.c (make_lispy_event): Use find_user_signal_name.
446         (read_avail_input): Store pending user signal events.
447         (struct user_signal_info): New struct.
448         (user_signals): New variable.
449         (add_user_signal, store_user_signal_events)
450         (find_user_signal_name): New functions.
451         (handle_user_signal): Move function from emacs.c.  Don't store
452         USER_SIGNAL_EVENT here, but increment number of pending signals.
454         * keyboard.h (add_user_signals): Add extern.
456 2006-12-11  Juanma Barranquero  <lekktu@gmail.com>
458         * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
459         <default-scroll-up-aggressively, default-scroll-down-aggressively>:
460         <line-spacing, left-margin>: Doc fixes.
462         * xdisp.c (syms_of_xdisp) <mode-line-inverse-video>: Doc fix.
464 2006-12-10  Kim F. Storm  <storm@cua.dk>
466         * xdisp.c (show_mouse_face): Never use text cursor in tool-bar.
468 2006-12-10  Juanma Barranquero  <lekktu@gmail.com>
470         * abbrev.c (syms_of_abbrev) <last-abbrev-text>:
471         * buffer.c (syms_of_buffer) <default-major-mode>:
472         * keymap.c (Flookup_key):
473         * lread.c (Feval_buffer, Feval_region):
474         * macterm.c (syms_of_macterm) <x-use-underline-position-properties>:
475         <x-underline-at-descent-line, mac-emulate-three-button-mouse>:
476         * marker.c (Fmarker_insertion_type):
477         * minibuf.c (syms_of_minibuf) <minibuffer-completion-table>:
478         * msdos.c (syms_of_msdos) <delete-exited-processes>:
479         * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
480         <x-underline-at-descent-line>:
481         * xdisp.c (format-mode-line):
482         * xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
483         <x-underline-at-descent-line>: Doc fixes.
485 2006-12-10  Andreas Schwab  <schwab@suse.de>
487         * systime.h (EMACS_GET_TIME): Remove check for
488         HAVE_STRUCT_TIMEZONE which is never defined.
490 2006-12-10  Alan Mackenzie  <acm@muc.de>
492         * syntax.c (Fpartial_parse_sexp): Correct Docco: Elt 8 of the
493         result is now neither the last elt nor optional for OLDSTATE.
495 2006-12-09  Eli Zaretskii  <eliz@gnu.org>
497         * process.c (Fsignal_process): Doc fix.  Use XFLOAT_DATA to
498         extract the process ID from a Lisp float.
500 2006-12-09  Chong Yidong  <cyd@stupidchicken.com>
502         * xterm.c (XTframe_raise_lower): Comment out _NET_ACTIVE_WINDOW code.
504 2006-12-08  Eli Zaretskii  <eliz@gnu.org>
506         * frame.h (PIX_TYPE): Redefine as `unsigned long', for 64-bit
507         platforms where long is 64-bit.
509         * msdos.h (PIX_TYPE): Redefine as `unsigned long'.
511 2006-12-08  NAKAJI Hiroyuki  <nakaji@jp.freebsd.org>  (tiny change)
513         * m/amdx86-64.h: Add support for Solaris 10 on x86-64.
515 2006-12-08  Kenichi Handa  <handa@m17n.org>
517         * xterm.c (x_query_font): Use xstricmp instead off strcasecmp.
519 2006-12-08  Juanma Barranquero  <lekktu@gmail.com>
521         * emacs.c (syms_of_emacs) <system-type>: Doc fix.
523 2006-12-07  Kim F. Storm  <storm@cua.dk>
525         * process.c (parse_signal): Use xstricmp instead of strcasecmp.
526         (Fsignal_process): Don't use strncasecmp.
528 2006-12-05  Glenn Morris  <rgm@gnu.org>
530         * abbrev.c (Qforce): New Lisp_Object.
531         (Fdefine_abbrev): Do not overwrite non-system abbrevs with system
532         abbrevs, unless 'force is applied.
533         (syms_of_abbrev): Add Qforce.
535 2006-12-04  Kim F. Storm  <storm@cua.dk>
537         * process.c (parse_signal): Rename macro from handle_signal.
538         (Fsignal_process): Also accept lower-case variants of signal
539         names (to align with signal names generated by Emacs itself).
541         * emacs.c (handle_USR1_signal, handle_USR2_signal): Replace by...
542         (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs
543         first with code == 0 [signal] and one with code == sig number.
544         (main): Use it as handler for SIGUR1 and SIGUSR2.
546         * keyboard.c (kbd_buffer_store_event_hold): Don't throw-on-input
547         if first event in [signal xxx] sequence.
548         (lispy_user_signals, Qusr1_signal, Qusr2_signal): Remove.
549         (syms_of_keyboard): Don't intern and staticpro them.
550         (Qsignal): Declare here.
551         (syms_of_keyboard): Intern and staticpro it.
552         (make_lispy_event): Use it.  Intern symbols on the fly for other
553         USER_SIGNAL_EVENTs events.
555         * process.c (Qsignal): Declare extern.
556         (syms_of_process): Don't intern/staticpro it here.
558         * process.c (read_process_output): Abort if carryover < 0.
560 2006-12-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
562         * config.in: Regenerate.
564         * fileio.c [__NetBSD__]: Don't define `unix'.
565         (Funix_sync, syms_of_fileio): Use `#ifdef HAVE_SYNC' instead of
566         `#ifdef unix'.
568 2006-12-04  Glenn Morris  <rgm@gnu.org>
570         * Makefile.in (version): New variable, set by configure.
571         (bootstrapclean, mostlyclean): Also remove emacs-${version}.
573 2006-12-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
575         * gtkutil.c (update_frame_tool_bar): Handle modifying a toolbar item
576         without an image.
578 2006-12-01  Eli Zaretskii  <eliz@gnu.org>
580         * w32fns.c (Fw32_shell_execute): Doc fix.
582 2006-11-30  Chong Yidong  <cyd@stupidchicken.com>
584         * xdisp.c (move_it_to): Correctly count tab glyphs for continued
585         lines ending in tab.
587 2006-11-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
589         * xterm.c (x_raise_frame): Move setting of _NET_ACTIVE_WINDOW
590         property ...
591         (XTframe_raise_lower): ... to here.
593 2006-11-30  Kenichi Handa  <handa@m17n.org>
595         * regex.c (regex_compile): Fix previous change.
597 2006-11-29  Juanma Barranquero  <lekktu@gmail.com>
599         * sound.c (Fplay_sound_internal): Remove spurious newline in docstring.
601 2006-11-28  Chong Yidong  <cyd@stupidchicken.com>
603         * config.in: Regenerate.
605 2006-11-28  Kenichi Handa  <handa@m17n.org>
607         * regex.c (regex_compile): Don't call SET_LIST_BIT with a
608         multibyte character.
610 2006-11-27  Chong Yidong  <cyd@stupidchicken.com>
612         * s/aix4-2.h: Undefine _NO_PROTO.  Suggested by Joe Buehler.
614 2006-11-27  Kim F. Storm  <storm@cua.dk>
616         * window.c (set_window_buffer): Refactor recent changes.
618 2006-11-27  Jason Rumney  <jasonr@gnu.org>
620         * w32term.c (w32_msg_worker): Declare correctly.
621         (w32_initialize): Don't cast w32_msg_worker.
623         * w32fns.c (w32_msg_worker): Define as WINAPI and arg as void pointer.
625 2006-11-26  Chong Yidong  <cyd@stupidchicken.com>
627         * m/amdx86-64.h: Look for standard libs in /usr/lib64 only if that
628         directory exists.
630 2006-11-25  Eli Zaretskii  <eliz@gnu.org>
632         * w16select.c (Fw16_set_clipboard_data): Fix the call to sit_for
633         as per the calling sequence change on 2006-07-11.
635 2006-11-25  Chong Yidong  <cyd@stupidchicken.com>
637         * window.c (set_window_buffer): Use BLOCK_INPUT.
639 2006-11-24  Juanma Barranquero  <lekktu@gmail.com>
641         * fns.c (substring_both): Add missing address operator.
643 2006-11-24  Stefan Monnier  <monnier@iro.umontreal.ca>
645         * fns.c: Use AREF/ASIZE macros.
646         (concat): Provide the full ANSI prototype.
648 2006-11-24  Juanma Barranquero  <lekktu@gmail.com>
650         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
652 2006-11-23  William Smith  <William.Smith@global360.com>  (tiny change)
654         * strftime.c (HAVE_SYS__MBSTATE_T_H): Fix typo.
656 2006-11-02  Alfred M. Szmidt  <ams@gnu.org>  (tiny change)
658         * s/openbsd.h (LD_SWITCH_SYSTEM): Remove /usr/pkg/lib and
659         /usr/pkg/lib from the library search path.
660         (LD_SWITCH_X_DEFAULT): New macro.
662 2006-11-22  Chong Yidong  <cyd@stupidchicken.com>
664         * window.c (set_window_buffer): Clear mouse highlight if it is in
665         this window.
667 2006-11-21  Chong Yidong  <cyd@stupidchicken.com>
669         * xfaces.c (realize_default_face): Check if the default font name
670         exists on this display before trying to use it.
672 2006-11-21  Richard Stallman  <rms@gnu.org>
674         * fileio.c: Break line before &&, not after.
676 2006-11-20  Eli Zaretskii  <eliz@gnu.org>
678         * fns.c (concat) [!__GNUC__]: Add prototype.
680 2006-11-20  Kenichi Handa  <handa@m17n.org>
682         * fileio.c (Fread_file_name_internal): Use SBYTES (not SCHARS) to
683         check the tailing slash of a filename.
685 2006-11-20  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>  (tiny change)
687         * indent.c (Fvertical_motion): Include composition in the case of
688         overshoot expected.
690 2006-11-19  Andreas Schwab  <schwab@gnu.org>
692         * xfaces.c (Fdisplay_supports_face_attributes_p): Initialize supports.
694         * xmenu.c (Fx_popup_menu): Initialize selection.
696 2006-11-18  Andreas Schwab  <schwab@suse.de>
698         * s/gnu-linux.h (GC_MARK_SECONDARY_STACK): Update call to mark_memory.
700 2006-11-17  Tetsurou Okazaki  <okazaki@be.to>  (tiny change)
702         * xterm.c (do_ewmh_fullscreen): Declare variable before XSETFRAME
703         to avoid gcc 2.96 error.
705 2006-11-17  NIIMI Satoshi  <sa2c@sa2c.net>  (tiny change)
707         * search.c (simple_search): In the loop of backward searching,
708         check also the byte position against the limit.
710 2006-11-14  Romain Francoise  <romain@orebokech.com>
712         * minibuf.c (Fcompleting_read): Fix typo in docstring.
714 2006-11-14  Kenichi Handa  <handa@m17n.org>
716         * coding.c (code_convert_region): Initialize coding->heading_ascii.
717         (decode_coding_string, code_convert_region): Likewise.
719 2006-11-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
721         * config.in: Regenerate.
723         * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
724         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
725         && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
726         CGDisplayScreenSize is available.
728         * macmenu.c (menu_quit_handler, install_menu_quit_handler):
729         Replace `#ifdef HAVE_CANCELMENUTRACKING' with
730         `#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1030'.
731         (install_menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
732         && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
733         CancelMenuTracking is available.
735         * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg)
736         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
737         && MAC_OS_X_VERSION_MIN_REQUIRED == 1020]: Check if
738         CGContextShowGlyphsWithAdvances is available.
740 2006-11-13  Jason Rumney  <jasonr@gnu.org>
742         * s/ms-w32.h: Define HAVE_INET_SOCKETS.
744 2006-11-13  Nozomu Ando  <nand@mac.com>
746         * alloc.c (mark_memory): New argument OFFSET.  All uses changed.
747         Fix address calculations for case END < START.
748         (mark_stack): Impose Lisp_Object alignment on jmp_buf.
750 2006-11-12  Juanma Barranquero  <lekktu@gmail.com>
752         * coding.c (Fencode_sjis_char, Fencode_big5_char):
753         Improve argument/docstring consistency.
755         * editfns.c (Fmessage): Doc fixes.
757         * process.c (syms_of_process) <delete-exited-processes>: Doc fix.
759 2006-11-12  Chong Yidong  <cyd@stupidchicken.com>
761         * xmenu.c (popup_activated): Define outside HAVE_MENUS.
763 2006-11-12  Romain Francoise  <romain@orebokech.com>
765         * xselect.c (selection-coding-system): Fix docstring.
767 2006-11-12  Juanma Barranquero  <lekktu@gmail.com>
769         * category.c (Fchar_category_set): Improve arg/docstring consistency.
771         * data.c (Flogxor):
772         * fns.c (Frandom, Flength, Fsafe_length, Fstring_bytes)
773         (Fstring_equal, Fcompare_strings, Fstring_lessp, Fcopy_sequence)
774         (Fstring_make_unibyte): Fix typos in docstrings.
776 2006-11-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
778         * xterm.h (struct x_display_info): Fix indentation.
780         * xterm.c (do_ewmh_fullscreen, XTfullscreen_hook): New functions.
781         (x_check_fullscreen): Call do_ewmh_fullscreen.
782         (x_initialize): Set fullscreen_hook to XTfullscreen_hook.
784         * frame.c (x_set_fullscreen): Call fullscreen_hook if set.
786         * term.c: Define fullscreen_hook.
787         (syms_of_term): Initialize fullscreen_hook to NULL.
789         * termhooks.h: Add fullscreen_hook.
791 2006-11-08  Juanma Barranquero  <lekktu@gmail.com>
793         * bytecode.c (Fbyte_code):
794         * data.c (Fmakunbound): Use SYMBOL_CONSTANT_P macro.
796 2006-11-06  Juanma Barranquero  <lekktu@gmail.com>
798         * lread.c (syms_of_lread):
799         * xsmfns.c (syms_of_xsmfns): Fix typo in docstring.
801 2006-11-06  Martin Rudalics  <rudalics@gmx.at>
803         * macmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
805         * w32menu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
806         Return nil if building without menus.
808         * xmenu.c (Fmenu_or_popup_active_p): Define outside HAVE_MENUS.
809         Return nil if building without menus.
811 2006-11-05  Mark Davies  <mark@mcs.vuw.ac.nz>  (tiny change)
813         * s/netbsd.h (POSIX_SIGNALS): Define.
815 2006-11-05  Martin Rudalics  <rudalics@gmx.at>
817         * macmenu.c (Fmenu_or_popup_active_p): New function.
818         (syms_of_macmenu): Defsubr it.
820         * w32menu.c (Fmenu_or_popup_active_p): New function.
821         (syms_of_w32menu): Defsubr it.
822         (popup_activated_flag, popup_activated): Remove.
824         * xdisp.c (note_mouse_highlight) [HAVE_NTGUI]: Don't bother to
825         check popup_activated.
827         * xmenu.c (Fmenu_or_popup_active_p): New function.
828         (syms_of_xmenu): Defsubr it.
830 2006-11-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
832         * unexmacosx.c (malloc_cookie): Remove unused variable.
833         (region_list_head, region_list_tail, lca, nlc, infile_lc_highest_addr)
834         (text_seg_lowest_offset, mh, curr_header_offset, infd, outfd)
835         (emacs_zone, data_segment_old_fileoff, data_segment_scp)
836         (num_unexec_regions, unexec_regions): Make variables static.
837         (print_regions, find_emacs_zone_regions): Make static.
838         (unexec_region_info): New typedef.
839         (unexec_regions): Change type from vm_range_t[] to unexec_region_info[].
840         All uses changed.
841         (unexec_regions_recorder): Subtract size of trailing null pages from
842         filesize.  Show filesize.
843         (unexec_regions_merge): Don't merge if null pages of preceding region
844         is not too small.  Use long format in printf.
845         (copy_segment, copy_data_segment): Show filesize.
846         (copy_data_segment): Write filesize bytes of region data.
847         Adjust filesize in segment command accordingly.
848         (dump_it): Use long format in printf.
850 2006-11-05  Juanma Barranquero  <lekktu@gmail.com>
852         * dosfns.c (Finsert_startup_screen):
853         * fns.c (Ffeaturep, syms_of_fns):
854         * frame.c (syms_of_frame): Fix typos in docstrings.
856         * unexcw.c (unexec): Fix typo in output message.
858 2006-11-04  Ralf Angeli  <angeli@caeruleus.net>
860         * w32fns.c (w32_createwindow): Remove code for handling -geometry
861         command line option and `initial-frame-alist' which is superfluous
862         after the last change to `w32_createwindow'.
864 2006-11-04  Slawomir Nowaczyk  <slawek@cs.lth.se>  (tiny change)
866         * w32proc.c (sys_wait): Only wait for processes with fd<0.
867         Others should be handled by sys_select instead.  Fixes problems
868         with (progn (start-process "" nil "ls") (call-process "ls")).
870 2006-11-04  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
872         * xmenu.c (Fmenu_bar_open): Declare variable before BLOCK_INPUT to
873         avoid gcc 2.95 error.
875 2006-11-04  Chong Yidong  <cyd@stupidchicken.com>
877         * gtkutil.c (update_frame_tool_bar): If icon image is invalid and
878         wicon is null, insert an empty button.
880 2006-11-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
882         * xterm.c (x_raise_frame): Send _NET_ACTIVE_WINDOW when raising the
883         window.
885 2006-11-02  Juanma Barranquero  <lekktu@gmail.com>
887         * emacs.c (Fkill_emacs): Fix typo in docstring.
889 2006-11-02  Nozomu Ando  <nand@mac.com>
891         * unexmacosx.c (mach_header, segment_command, vm_region, section)
892         [_LP64]: New defines.
893         (VM_REGION_BASIC_INFO_COUNT, VM_REGION_BASIC_INFO, LC_SEGMENT)
894         (MH_MAGIC) [_LP64]: Redefine.
895         (delta): Remove variable.
896         (curr_file_offset, pagesize): New variables.
897         (ROUNDUP_TO_PAGE_BOUNDARY): New macro.
898         (data_segment_old_fileoff): Initialize explicitly.
899         (print_region, unexec_regions_recorder, print_load_command_name)
900         (copy_segment, copy_data_segment): Use long format in printf.
901         (MAX_UNEXEC_REGIONS): Increase to 400.
902         (unexec_regions_recorder): Don't warn too many regions here.
903         (find_emacs_zone_regions): Warn too many regions here.
904         (print_load_command_name) [_LP64]: Show correct load command name.
905         (copy_segment, copy_data_segment): Use variable `curr_file_offset'.
906         Show starting virtual memory address.  Don't show ending file offset.
907         (copy_symtab, copy_dysymtab, copy_twolevelhints): New argument DELTA.
908         (dump_it): Use new local variable `linkedit_delta' and pass to them.
909         Error if trying to handle multiple DATA segments.
910         (unexec): Initialize variable `pagesize'.
912 2006-11-01  Juanma Barranquero  <lekktu@gmail.com>
914         * eval.c (Fcatch): Doc fix.
916 2006-10-31  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
918         * image.c [MAC_OS] (image_load_qt_1, xpm_scan, xpm_make_color_table_v)
919         (xpm_put_color_table_v, xpm_get_color_table_v, xpm_make_color_table_h)
920         (xpm_put_color_table_h, xpm_get_color_table_h, xpm_str_to_color_key)
921         (xpm_load_image): Add const qualifier to arguments.
922         [MAC_OS] (xpm_color_key_strings): Make static const.
924         * mac.c (create_apple_event_from_event_ref)
925         (create_apple_event_from_drag_ref, skip_white_space, parse_comment)
926         (parse_include_file, parse_binding, parse_component)
927         (parse_resource_name, parse_value, parse_resource_line)
928         (xrm_merge_string_database, xrm_get_resource)
929         (xrm_get_preference_database): Add const qualifier to arguments.
930         [MAC_OSX] (sys_select): Make variable `context' static const.
932         * macfns.c (mac_color_map): Make static const.
933         (mac_color_map_lookup): Add const qualifier to arguments.
935         * macmenu.c (install_menu_quit_handler): Make variable `typesList'
936         static const.
937         (name_is_separator): Add const qualifier to arguments.
939         * macselect.c (init_service_handler): Make variable `specs' static
940         const.
942         * macterm.c (mac_create_bitmap_from_bitmap_data): Make variable
943         `swap_nibbles' static const.
944         (atsu_get_text_layout_with_text_ptr): Make variables `lengths',
945         `tags', `sizes', `values' static const.
946         (mac_draw_string_common): Make variables `context' static.
947         Make variables `tags', `sizes', and `values' static const.
948         (pcm_get_status, x_detect_focus_change, x_scroll_bar_handle_click)
949         (xlfdpat_create, xlfdpat_block_match_1, xlfdpat_match)
950         (mac_to_x_fontname, parse_x_font_name, add_mac_font_name)
951         (mac_do_list_fonts, is_fully_specified_xlfd, do_grow_window)
952         (mac_store_event_ref_as_apple_event, mac_make_rdb): Add const
953         qualifier to arguments.
954         (xlfd_scalable_fields, keycode_to_xkeysym_table)
955         (fn_keycode_to_keycode_table): Make static const.
956         (mac_load_query_font): Make variables `tags', `sizes', `values',
957         `types', and `selectors' static const.
958         (mac_handle_command_event, mac_handle_window_event):
959         Make variables `names' and `types' static const.
960         (init_command_handler, install_window_handler): Make variables
961         `specs*' static const.
962         (mac_handle_font_event, mac_handle_text_input_event)
963         (mac_store_service_event): Make variables `names' and `types'
964         const.  Make variables `names_*' and `types_*' static const.
966         * macterm.h (create_apple_event_from_event_ref)
967         (create_apple_event_from_drag_ref, xrm_merge_string_database)
968         (xrm_get_resource, xrm_get_preference_database): Add const
969         qualifier to arguments in externs.
971 2006-10-31  Kenichi Handa  <handa@m17n.org>
973         * xfns.c (xic_create_xfontset): Fix previous change.
975 2006-10-30  Chong Yidong  <cyd@stupidchicken.com>
977         * s/openbsd.h (LD_SWITCH_SYSTEM): Add /usr/pkg/lib and
978         /usr/pkg/lib to library search path.
980 2006-10-29  Mark Davies  <mark@mcs.vuw.ac.nz>  (tiny change)
982         * ralloc.c (relinquish): Use a long for excess space counter to
983         handle 64-bit case correctly.
985 2006-10-29  Jeramey Crawford  <jeramey@jeramey.com>
987         * m/amdx86-64.h: Add defines for OpenBSD x86-64.
989 2006-10-29  Juanma Barranquero  <lekktu@gmail.com>
991         * window.c (Fdisplay_buffer): Fix typo in docstring.
993 2006-10-27  Ben North  <ben@redfrontdoor.org>  (tiny change)
995         * w32term.c (x_draw_glyph_string_foreground): Set background mode
996         to TRANSPARENT before using overstrike to simulate bold faces.
998         * xfaces.c (best_matching_font): Fix logic to decide whether to
999         use overstriking to simulate bold-face (it was reversed).
1001 2006-10-23  Kim F. Storm  <storm@cua.dk>
1003         * xdisp.c (remember_mouse_glyph): Do nothing if glyphs are not
1004         initialized.
1006         * keyboard.c (read_char): Make an element (t . EVENT) in
1007         unread-command-events add EVENT to the current command's key sequence.
1008         (syms_of_keyboard) <unread-command-events>: Update doc.
1010 2006-10-21  Richard Stallman  <rms@gnu.org>
1012         * minibuf.c (Vread_expression_map): Define here.
1013         (Qread_expression_history): New variable.
1014         (syms_of_minibuf): Initialize them.
1015         (Feval_minibuffer): Use Vread_expression_map and
1016         Qread_expression_history.
1018 2006-10-21  Kenichi Handa  <handa@m17n.org>
1020         * xfns.c (xic_create_fontsetname): If ADSTYLE field is not a wild
1021         card, change it to "*".
1022         (xic_create_xfontset): Call XCreateFontSet for each single
1023         fontname in fontsetname.
1025 2006-10-19  Chong Yidong  <cyd@stupidchicken.com>
1027         * callint.c (callint_message): Convert to a Lisp string.
1028         (syms_of_callint): Initialize it.
1029         (callint_message_size): Var deleted.
1030         (Fcall_interactively): Use Fformat instead of doprnt to construct
1031         prompt string.
1033 2006-10-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1035         * xdisp.c (display_mode_line): Clear enabled_p flag on mode-line row.
1037 2006-10-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1039         * macfns.c (Vmac_carbon_version_string) [TARGET_API_MAC_CARBON]:
1040         New variable.
1041         (syms_of_macfns) [TARGET_API_MAC_CARBON]: Defvar it.
1043 2006-10-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1045         * xselect.c (x_handle_selection_request): If the converted_selection
1046         is nil or XCDR (converted_selection) is nil, decline the request.
1048 2006-10-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1050         * gtkutil.c (get_utf8_string): Remove warnings with casts.
1051         (xg_tool_bar_button_cb): Ditto.
1052         (xg_tool_bar_callback): Ditto.
1054 2006-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1056         * dispnew.c (adjust_frame_glyphs_for_frame_redisplay): Remove unused
1057         variable ch_dim.
1058         (adjust_frame_glyphs_for_window_redisplay): Likewise.  Don't allocate
1059         menu bar window matrices on non-X systems.
1061         * mac.c (Fmac_get_preference, Fmac_code_convert_string): Add GCPROs.
1063         * macterm.c (mac_query_char_extents): Don't return glyph ID if layout
1064         adjustment is needed.
1065         (mac_load_query_font): Check if width and height are positive.
1067 2006-10-14  Richard Stallman  <rms@gnu.org>
1069         * sysdep.c (init_sys_modes): Delete DEFVAR_LISP in the wrong place.
1071 2006-10-13  Chong Yidong  <cyd@stupidchicken.com>
1073         * xdisp.c (decode_mode_spec): Ignore %c and %l constructs in frame
1074         title.
1076 2006-10-12  Chong Yidong  <cyd@stupidchicken.com>
1078         * keymap.c (Fkey_binding): Check Lisp_Object types before doing
1079         XCAR and XINT.
1081 2006-10-12  Romain Francoise  <romain@orebokech.com>
1083         * image.c (xbm_read_bitmap_data): Delete extra semicolon.
1085 2006-10-10  Stefan Monnier  <monnier@iro.umontreal.ca>
1087         * eval.c: Include xterm.h for x_fully_uncatch_errors and friends.
1089         * dispextern.h: Declare x_create_bitmap_from_xpm_data.
1091         * xterm.c (x_check_expected_move): Remove unused var `count'.
1093         * xmenu.c (syms_of_xmenu): Use Ffset rather than Fdefalias, since
1094         Fdefalias is not declared in any *.h file.
1096 2006-10-09  Chong Yidong  <cyd@stupidchicken.com>
1098         * dispnew.c (sit_for): Sit forever if TIMEOUT is t.
1100         * keyboard.c (command_loop_1): Handle non-number values of
1101         `minibuffer-message-timeout'.
1102         (Fexecute_extended_command): Fix typo.
1104         * minibuf.c (temp_echo_area_glyphs): Sit for
1105         `minibuffer-message-timeout' seconds.
1107 2006-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1109         * macterm.c (mac_draw_image_string, mac_draw_image_string_16):
1110         Add argument OVERSTRIKE_P.
1111         (mac_draw_string_common, mac_draw_image_string_cg): Likewise.
1112         Support overstrike.
1113         (mac_draw_string, mac_draw_string_16): Remove functions.
1114         (x_draw_glyph_string_foreground): Use overstrike when needed.
1115         (x_draw_composite_glyph_string_foreground): Likewise.
1116         Use mac_draw_image_string_16 instead of mac_draw_string_16.
1117         (mac_load_query_font): Rename from XLoadQueryFont.  Take argument
1118         F instead of DPY.  All uses changed.  Don't save/restore font.
1120 2006-10-07  Ralf Angeli  <angeli@caeruleus.net>
1122         * w32fns.c (w32_createwindow): Honour left and top positions if
1123         supplied explicitly.
1125 2006-10-06  Kim F. Storm  <storm@cua.dk>
1127         * xdisp.c (pos_visible_p): Fix value when EOB is visible.
1129 2006-10-05  Chong Yidong  <cyd@stupidchicken.com>
1131         * frame.c (Qinhibit_face_set_after_frame_default): New var.
1132         (syms_of_frame): Initialize it.
1133         (x_set_frame_parameters): Avoid resetting :font attributes to the
1134         new-frame defaults.
1136 2006-10-03  Stefan Monnier  <monnier@iro.umontreal.ca>
1138         * lisp.h (clear_regexp_cache): Declare.
1140         * search.c (compile_pattern): Only check `cp->syntax_table' if needed.
1141         (compile_pattern_1): Remember `used_syntax' in `cp->syntax_table'.
1142         (clear_regexp_cache): Only flush those regexps which depend on
1143         a syntax-table.
1145         * regex.c (regex_compile): Set the new `used_syntax' bit.
1147         * regex.h: Remove file local variables.
1148         (struct re_pattern_buffer): New field `used_syntax'.
1150 2006-10-03  Kim F. Storm  <storm@cua.dk>
1152         * process.c (list_processes_1): Run sentinels before removing dead
1153         processes.  Also remove `closed' network connections.
1155 2006-10-01  Stefan Monnier  <monnier@iro.umontreal.ca>
1157         * xdisp.c (handle_fontified_prop): Don't fontify at EOB.
1159 2006-09-30  Eli Zaretskii  <eliz@gnu.org>
1161         * config.in: Regenerated.
1163 2006-09-29  Juri Linkov  <juri@jurta.org>
1165         * buffer.c (syms_of_buffer): Reorder coding systems in the
1166         docstring of %z to the real order displayed in the modeline.
1168 2006-09-28  Stefan Monnier  <monnier@iro.umontreal.ca>
1170         * keymap.c (Fdefine_key): Yet another int/Lisp_Object mixup (YAILOM).
1172 2006-09-26  Chong Yidong  <cyd@stupidchicken.com>
1174         * indent.c (Fvertical_motion): Do move back if the Lisp string
1175         being displayed contains newlines.
1177 2006-09-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1179         * macterm.c (mac_compute_glyph_string_overhangs, XLoadQueryFont)
1180         [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw before QDTextBounds.
1182 2006-09-26  Kenichi Handa  <handa@m17n.org>
1184         * keymap.c (Fsingle_key_description): For an invalid char, return
1185         "Invalid char code NNNNN".
1187 2006-09-25  Chong Yidong  <cyd@stupidchicken.com>
1189         * callint.c (Fcall_interactively): Doc fix.
1191 2006-09-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1193         * macterm.c (x_underline_at_descent_line): New variable.
1194         (syms_of_macterm): DEFVAR_BOOL it.
1195         (x_draw_glyph_string): Use it.
1196         (XLoadQueryFont): Calculate min_bounds.descent and max_bounds.descent.
1198 2006-09-25  Kenichi Handa  <handa@m17n.org>
1200         * keymap.c (Fsingle_key_description): Return unique names for
1201         generic characters.
1203 2006-09-24  Richard Stallman  <rms@gnu.org>
1205         * search.c (compile_pattern_1): Don't BLOCK_INPUT.
1207 2006-09-24  Eli Zaretskii  <eliz@gnu.org>
1209         * makefile.w32-in ($(BLD)/fns.$(O), $(BLD)/w32proc.$(O)):
1210         Depend on nt/inc/langinfo.h and nt/inc/nl_types.h.
1212         * w32proc.c (nl_langinfo): New function.
1214         * w32fns.c (w32-pass-alt-to-system, w32-alt-is-meta)
1215         (w32-pass-lwindow-to-system, w32-enable-num-lock)
1216         (w32-enable-caps-lock, w32-scroll-lock-modifier)
1217         (w32-lwindow-modifier, w32-rwindow-modifier)
1218         (w32-apps-modifier, w32-mouse-button-tolerance): Doc fix.
1220 2006-09-23  Juanma Barranquero  <lekktu@gmail.com>
1222         * minibuf.c (Finternal_complete_buffer, Fread_minibuffer)
1223         (Fdisplay_completion_list): Fix typos in docstrings.
1225 2006-09-23  Romain Francoise  <romain@orebokech.com>
1227         * s/gnu-linux.h (MAIL_USE_FLOCK): Check for HAVE_LIBLOCKFILE too.
1229 2006-09-23  Kenichi Handa  <handa@m17n.org>
1231         * keymap.c (Fmap_keymap): Docstring mentions about generic character.
1233 2006-09-22  Stefan Monnier  <monnier@iro.umontreal.ca>
1235         * regex.c (analyse_first): For eight-bit-control chars, mark both the
1236         char's value and its leading byte in the fastmap.
1237         (re_search_2): When fast-scanning without translation, be careful to
1238         check that we only match the leading byte of a multibyte char.
1240         * charset.h (PREV_CHAR_BOUNDARY): Make it work from within a char's
1241         byte sequence.
1242         (AT_CHAR_BOUNDARY): New macro.
1244 2006-09-22  Kenichi Handa  <handa@m17n.org>
1246         * fns.c (optimize_sub_char_table): Don't optimize a sub-char-table
1247         whose default value is non-nil.
1249 2006-09-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1251         * gtkutil.c (xg_get_file_with_chooser): Only show C-l help for
1252         Gtk+ versions < 2.10.
1254         * xfns.c (syms_of_xfns): Fix typo in help text for
1255         x-gtk-file-dialog-help-text.
1257 2006-09-21  Kim F. Storm  <storm@cua.dk>
1259         * fns.c (Fmemq): Refill doc string.
1260         (Fmemql): New defun, like memq but using eql.
1261         (syms_of_fns): Defsubr it.
1263 2006-09-20  Kim F. Storm  <storm@cua.dk>
1265         * xdisp.c (pos_visible_p): CHARPOS < 0 means return info for
1266         last visible glyph in window.
1268         * window.c (Fset_window_hscroll, Fwindow_line_height):
1269         Doc fix.  Use "off-window" instead of "off-screen".
1270         (Fpos_visible_in_window_p): Likewise.
1271         If POS is t, return info for last visible glyph in window.
1273 2006-09-19  Chong Yidong  <cyd@stupidchicken.com>
1275         * search.c (struct regexp_cache): New entry syntax_table.
1276         (compile_pattern_1): Set it.
1277         (syms_of_search): Initialize it.
1278         (compile_pattern): Require the syntax_table entry of the cache
1279         element to match the current syntax table entry.
1281 2006-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>
1283         * window.c (Fwindow_end): Fix recent change.
1285 2006-09-19  Kim F. Storm  <storm@cua.dk>
1287         * window.c (Fset_window_hscroll, Fpos_visible_in_window_p):
1288         Doc fix.  Use "off-screen" instead of "invisible".
1289         (Fwindow_line_height): Make line numbers 0-based.  Make line arg
1290         optional; if nil, use current cursor row.  Handle text terminals
1291         properly.  Return nil if non-interactive or pseudo-window.
1293 2006-09-19  Stefan Monnier  <monnier@iro.umontreal.ca>
1295         * keymap.c: Include alloca.h if available.
1296         (Fkey_binding): Only use AREF after checking it's a vector.
1297         Remove unused var `window'.
1299 2006-09-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1301         * emacs.c (shut_down_emacs) [!subprocesses]: Don't set
1302         inhibit_sentinels.
1304         * mac.c [!MAC_OSX] (select): Fix argument name.
1306         * macmenu.c (enum mac_menu_kind, min_menu_id): New enumerator and
1307         menu ID for Apple menu.
1308         (menubar_selection_callback): Remove function.
1309         (find_and_call_menu_selection): New function from xmenu.c.
1310         (x_activate_menubar): Use it.
1311         (set_frame_menubar): Don't use f->output_data.mac->menubar_active.
1313         * macterm.c (menubar_selection_callback): Remove extern.
1314         (M_APPLE): Change to 234.
1315         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Make non-static.
1316         (do_menu_choice): Remove function.
1318         * macterm.h (struct mac_output): Remove member menubar_active.
1319         (do_menu_choice): Remove extern.
1320         (do_apple_menu) [!TARGET_API_MAC_CARBON]: Add extern.
1322 2006-09-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1324         * xfns.c (syms_of_xfns): Rename x_gtk_show_chooser_help_text to
1325         x_gtk_file_dialog_help_text.
1327         * gtkutil.c (xg_uses_old_file_dialog): Rename x-use-old-gtk-file-dialog
1328         to x-gtk-use-old-file-dialog.
1329         (xg_get_file_with_chooser): Rename x_gtk_show_chooser_help_text to
1330         x_gtk_file_dialog_help_text.
1332         * xfns.c (syms_of_xfns): Ditto.
1334 2006-09-18  Kim F. Storm  <storm@cua.dk>
1336         * window.c (Fwindow_line_visibility): Remove.
1337         (Fwindow_line_height): New defun replacing it.
1338         (syms_of_window): Defsubr it.
1340 2006-09-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1342         * mac.c (SELECT_USE_CFSOCKET) [MAC_OSX]: Set default to 1.
1343         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Fix pointer type.
1345 2006-09-17  Jay Belanger  <belanger@truman.edu>
1347         * gmalloc.c:
1348         * md5.c:
1349         * md5.h:
1350         * strftime.c: Replace "GNU Library General Public License" by "GNU
1351         General Public License" throughout.
1353 2006-09-17  Kim F. Storm  <storm@cua.dk>
1355         * dispnew.c (update_text_area): Undo 2000-07-18 change.
1356         Always redrawing whole row if line has mouse-face in it causes
1357         excessive flickering of the mode line.
1359 2006-09-17  Chong Yidong  <cyd@stupidchicken.com>
1361         * search.c (clear_regexp_cache): New function.
1363         * syntax.c (Fmodify_syntax_entry): Clear regexp cache.
1365 2006-09-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1367         * gtkutil.c (xg_get_file_with_chooser):
1368         Check x-gtk-show-chooser-help-text before adding the help text.
1370         * xfns.c (syms_of_xfns): New variable: x-gtk-show-chooser-help-text.
1372         * gtkutil.c (get_utf8_string): Try harder to convert to UTF8.  Gtk+
1373         will simply crash if we fail.
1375 2006-09-16  Richard Stallman  <rms@gnu.org>
1377         * regex.c (re_compile_pattern): Set gl_state.current_syntax_table.
1379 2006-09-15  Kim F. Storm  <storm@cua.dk>
1381         * window.c (Fwindow_line_visibility): New defun for line-move-partial.
1382         (syms_of_window): Defsubr it.
1383         (Fwindow_end): Use window's buffer rather than current buffer.
1385 2006-09-15  Jay Belanger  <belanger@truman.edu>
1387         * COPYING: Replace "Library Public License" by "Lesser Public
1388         License" throughout.
1390 2006-09-15  David Kastrup  <dak@gnu.org>
1392         * Makefile.in (keymap.o): Add "keymap.h" and "window.h" dependencies.
1394         * keymap.c: include "window.h".
1395         (Fcommand_remapping): New optional POSITION argument.
1396         (Fkey_binding): New optional POSITION argument.  Completely rework
1397         handling of mouse clicks to get the same order of keymaps as
1398         `read-key-sequence' and heed POSITION.  Also temporarily switch
1399         buffers to location of mouse click and back.
1401         * keyboard.c (command_loop_1): Adjust call of `Fcommand_remapping'
1402         for additional argument.
1403         (parse_menu_item): Adjust call of `Fkey_binding' for additional
1404         argument.
1405         (read_key_sequence): If there are both `local-map' and `keymap'
1406         text properties at some buffer position, heed both.
1408         * keymap.h: Declare additional optional arguments of
1409         `Fcommand_remapping' and `Fkey_binding'.
1411 2006-09-15  Juanma Barranquero  <lekktu@gmail.com>
1413         * indent.c (Fcurrent_column, Findent_to): Fix typos in docstring.
1415 2006-09-14  Andreas Schwab  <schwab@suse.de>
1417         * print.c: Whitespace fixup.
1419 2006-09-14  Kim F. Storm  <storm@cua.dk>
1421         * xdisp.c (produce_image_glyph): Automatically crop wide images at
1422         right window edge so we can draw the cursor on the same row to
1423         avoid confusing redisplay by placing the cursor outside the visible
1424         window area.
1426 2006-09-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1428         * xterm.c (x_initialize): Don't install Xt event timer here.
1429         (x_timeout_atimer_activated_flag): New var.
1430         (x_activate_timeout_atimer): New function to install Xt timer.
1431         (x_send_scroll_bar_event, x_process_timeouts): Use it.
1433         * xmenu.c (x_menu_set_in_use, popup_activate_callback)
1434         (create_and_show_popup_menu, create_and_show_dialog): Use it.
1436         * xterm.h (x_activate_timeout_atimer): Add prototype.
1438 2006-09-13  Richard Stallman  <rms@gnu.org>
1440         * print.c (print_string): When printcharfun is t,
1441         copy string contents and call strout on the copy.
1443         * keyboard.c (read_char): If end_time specified, don't put the
1444         event into this_command_keys.
1445         (read_key_sequence): If Voverriding_terminal_local_map is specified,
1446         don't check Voverriding_local_map at all.
1448 2006-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
1450         * textprop.c (Fnext_property_change, Fnext_single_property_change)
1451         (Fprevious_property_change, Fprevious_single_property_change):
1452         Avoid changing limit, so we can correctly catch the case where the
1453         property is constant up to limit.
1455 2006-09-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1457         * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1458         * macterm.c (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1459         Undo 2006-09-08 change.
1461 2006-09-11  Chong Yidong  <cyd@stupidchicken.com>
1463         * keymap.c (Fkey_binding): Use string position for string objects.
1465 2006-09-11  Kim F. Storm  <storm@cua.dk>
1467         * keymap.c (Fkey_binding): Fix last change.
1469         * editfns.c (Fmessage): Recommend using (message "%s" ...).
1471 2006-09-10  Chong Yidong  <cyd@stupidchicken.com>
1473         * keymap.c (Fkey_binding): Check for local keymap for mouse click
1474         events.
1476 2006-09-10  Kim F. Storm  <storm@cua.dk>
1478         * keyboard.c (Finput_pending_p): Check Vunread_input_method_events
1479         and Vunread_post_input_method_events.
1481         * dispnew.c (Fredisplay): Document return value.
1483 2006-09-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1485         * xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
1487         * gtkutil.c (xg_display_close): Always change default display if needed,
1488         check for < Gtk+ version 2.10 before calling gdk_display_close.
1490 2006-09-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1492         * mac.c [MAC_OSX] (sys_select): Check argument `nfds' more rigidly.
1493         Make variable `ofds' static.  Remove variable `maxfd'.
1495         * macfns.c (Fx_file_dialog): Remove unused variable `f'.
1496         Call check_mac.
1498         * macmenu.c (Vmenu_updating_frame, syms_of_macmenu):
1499         * w32menu.c (Vmenu_updating_frame, syms_of_w32menu):
1500         Apply 2006-09-08 change for xmenu.c.
1502         * xfns.c (Fx_file_dialog): Call check_x.
1504 2006-09-10  Kim F. Storm  <storm@cua.dk>
1506         * xdisp.c (get_window_cursor_type): Use hollow cursor on
1507         non-transparent images.
1509 2006-09-09  Eli Zaretskii  <eliz@gnu.org>
1511         * editfns.c (Fsystem_name): Mention "host" in the doc string.
1512         (syms_of_editfns) <system-name>: Likewise.
1514 2006-09-08  Martin Rudalics  <rudalics@gmx.at>
1516         * xdisp.c (mouse_autoselect_window): Remove.
1517         (Vmouse_autoselect_window): New variable.  DEFVAR_LISP it.
1519         * dispextern.h (mouse_autoselect_window): Remove extern.
1520         (Vmouse_autoselect_window): Add extern.
1522         * macterm.c (XTread_socket): Test Vmouse_autoselect_window
1523         instead of mouse_autoselect_window.
1525         * msdos.c (dos_rawgetc): Likewise.
1527         * w32term.c (w32_read_socket): Likewise.
1529         * xterm.c (handle_one_xevent): Likewise.
1531 2006-09-08  Richard Stallman  <rms@gnu.org>
1533         * xdisp.c (Vmenu_updating_frame): Define here.
1534         (syms_of_xdisp): DEFVAR it here.
1535         (update_menu_bar): Always return hooks_run.
1536         Set Vmenu_updating_frame.
1538         * xdisp.c (redisplay_internal): Test Vinhibit_redisplay
1539         before calculating SELECTED_FRAME.
1541         * xmenu.c (Vmenu_updating_frame): Don't define here.
1542         (syms_of_xmenu): Don't DEFVAR it here.
1544         * xterm.c (x_error_quitter): For BadName error, just return.
1546         * eval.c (find_handler_clause): Give up on debugger if INPUT_BLOCKED_P.
1548         * casetab.c (init_casetab_once): Call set_case_table.
1550         * emacs.c (shut_down_emacs): Set inhibit_sentinels.
1552         * process.c (inhibit_sentinels): New variable.
1553         (exec_sentinel): Test inhibit_sentinels.
1554         (init_process): Initialize it.
1556         * process.h (inhibit_sentinels): Add decl.
1558         * search.c (looking_at_1, string_match_1, search_command):
1559         Make syntax table's canon table point to eqv table.
1561 2006-09-08  Andreas Schwab  <schwab@suse.de>
1563         * print.c (strout): Fix whitespace.
1565 2006-09-08  Kim F. Storm  <storm@cua.dk>
1567         * xterm.c (x_draw_glyph_string): Fix 2006-08-24 change.
1569 2006-09-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1571         * mac.c [!MAC_OSX]: Don't include keyboard.h.
1572         [!MAC_OSX] (select): Try detect_input_pending before ReceiveNextEvent
1573         in the same BLOCK_INPUT block, in case that some input has already
1574         been read asynchronously.  Pretend to be interrupted by a signal
1575         if some input is available.
1576         [MAC_OSX] (select_and_poll_event, sys_select): Likewise.
1577         (SELECT_POLLING_PERIOD_USEC) [SELECT_USE_CFSOCKET]: Change to 100000.
1578         Now used for ReceiveNextEvent timeout instead of select timeout.
1579         (EVENT_CLASS_SOCK) [SELECT_USE_CFSOCKET]: Remove macro.
1580         [SELECT_USE_CFSOCKET] (socket_callback): Add non-blocking connect
1581         support.  Quit event loop.
1582         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Add non-blocking
1583         connect support.  Reuse previously allocated CFRunLoopSource.
1584         (Fmac_process_hi_command) [TARGET_API_MAC_CARBON]: New function.
1585         (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
1587         * macfns.c (mac_window) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
1588         Specify kWindowAsyncDragAttribute.
1590         * macterm.c (mac_handle_origin_change, mac_handle_size_change)
1591         (mac_get_ideal_size): New functions.
1592         (x_set_offset, x_set_window_size, x_make_frame_visible)
1593         (do_zoom_window, mac_handle_window_event, XTread_socket): Use them.
1594         (install_window_handler, mac_handle_window_event)
1595         [USE_CARBON_EVENTS]: Handle kEventWindowGetIdealSize and
1596         kEventWindowBoundsChanged.
1597         (XTread_socket) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Don't call
1598         DragWindow.
1600 2006-09-07  Andreas Schwab  <schwab@suse.de>
1602         * m/ibms390x.h (START_FILES, LIB_STANDARD): Override to
1603         use lib64 instead of lib.
1605 2006-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
1607         * Makefile.in: Avoid double quotes when possible.
1609 2006-09-06  Kenichi Handa  <handa@m17n.org>
1611         * editfns.c (Fformat_time_string): Use make_unibyte_string to make
1612         a Lisp string from the result of emacs_memftimeu call.
1614 2006-09-06  Kim F. Storm  <storm@cua.dk>
1616         * xdisp.c (pos_visible_p): Remove exact_mode_line_heights_p arg;
1617         so calculate heights even when pos-visible-in-window-p is called
1618         with partially = t.  Don't overshoot last_visible_y in move_it_to.
1619         Return row height and row number in new rowh and vpos args.
1620         (cursor_row_fully_visible_p): First line is always "fully visible".
1621         (try_window): Don't clear matrix if vscrolled.
1623         * lisp.h (pos_visible_p): Update prototype.
1625         * window.c (Fpos_visible_in_window_p): Adapt to new pos_visible_p.
1626         Return row height and row number for partially visible rows.
1627         Modify return value to a 2 element list for fully visible rows and
1628         6 for partially visible row.
1629         (window_scroll_pixel_based): Use pos_visible_p directly instead of
1630         Fpos_visible_in_window_p.  Fix auto vscrolling for partially
1631         visible lines.  Only vscroll backwards if already vscrolled
1632         forwards.  Unconditionally vscroll forwards if PT is first (and
1633         only) line.  Set new window start instead of scrolling at
1634         start/end of tall line.
1636 2006-09-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1638         * macterm.c (install_window_handler, mac_handle_window_event)
1639         [USE_CARBON_EVENTS]: Handle kEventWindowClose.
1640         [USE_MAC_TSM] (mac_handle_text_input_event): Set modifiers for
1641         ASCII keystroke event.
1643 2006-09-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1645         * gtkutil.c (xg_get_file_with_chooser): Don't mention specific keys in
1646         the file chooser message.  Only call gtk_file_chooser_set_current_name
1647         when action is SAVE.
1649 2006-09-04  Andreas Schwab  <schwab@suse.de>
1651         * Makefile.in: Double all single and back quotes in C-style
1652         comments to help fontifier.
1654 2006-09-03  Jason Rumney  <jasonr@gnu.org>
1656         * w32.c (shutdown_handler): New function to exit cleanly on shutdown.
1657         (globals_of_w32): Register it as a signal handler.
1659 2006-09-02  Juri Linkov  <juri@jurta.org>
1661         * marker.c (Fmarker_position): Doc fix.
1663 2006-09-03  Eli Zaretskii  <eliz@gnu.org>
1665         * window.c (syms_of_window) <split-height-threshold>:
1666         <window-min-height, window-min-width>: Doc fix.
1668 2006-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1670         * gtkutil.c (xg_get_file_with_chooser): Change file chooser message
1671         for writing files.  Call gtk_file_chooser_set_current_name to keep
1672         default filename.
1674         * minibuf.c (Finternal_complete_buffer): Move after DEFUN:s it calls
1676 2006-09-02  Jindrich Makovicka  <makovick@gmail.com>  (tiny change)
1678         * fns.c (concat) [__GNUC__]: Declare with
1679         `__attribute__((noinline))'.
1681         * eval.c (apply1, call2) [__GNUC__]: Declare with
1682         `__attribute__((noinline))'.
1684 2006-09-02  Stuart D. Herring  <herring@lanl.gov>
1686         * minibuf.c (Finternal_complete_buffer): New function.
1687         (syms_of_minibuf): Defsubr it.
1688         (Fread_buffer): Use it, instead of Vbuffer_alist.
1690 2006-09-01  Martin Rudalics  <rudalics@gmx.at>
1692         * buffer.h (struct buffer_text): New field chars_modiff.
1693         (CHARS_MODIFF, BUF_CHARS_MODIFF): New macros.
1694         * buffer.c (Fbuffer_chars_modified_tick): New function returning
1695         value of BUF_CHARS_MODIFF.
1696         (syms_of_buffer): Defsubr it.
1697         (Fget_buffer_create): Initialize BUF_CHARS_MODIFF.
1698         * insdel.c (modify_region): New argument preserve_chars_modiff.
1699         Set CHARS_MODIFF to MODIFF provided preserve_chars_modiff is zero.
1700         (insert_1_both, insert_from_string_1, insert_from_buffer_1)
1701         (adjust_after_replace, adjust_after_replace_noundo)
1702         (replace_range, replace_range_2, del_range_2): Reset CHARS_MODIFF.
1703         * lisp.h (modify_region): Add fourth argument in extern.
1704         * casefiddle.c (casify_region): Call modify_region with fourth
1705         argument zero to assert that CHARS_MODIFF is updated.
1706         * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
1707         (Ftranspose_regions): Likewise.
1708         * textprop.c (Fadd_text_properties, Fset_text_properties)
1709         (Fremove_text_properties, Fremove_list_of_text_properties):
1710         Call modify_region with fourth argument 1 to avoid that
1711         CHARS_MODIFF is updated.
1713 2006-08-31  Richard Stallman  <rms@gnu.org>
1715         * editfns.c (Fformat): Don't sign-extend for %o or %x.
1717 2006-08-29  Chong Yidong  <cyd@stupidchicken.com>
1719         * indent.c (Fvertical_motion): Don't move back if we were
1720         displaying a Lisp string, either.
1722 2006-08-28  Kim F. Storm  <storm@cua.dk>
1724         * xdisp.c (get_window_cursor_type) [!HAVE_WINDOW_SYSTEM]:
1725         Don't attempt to replace cursor on image glyphs.
1727 2006-08-28  Kenichi Handa  <handa@m17n.org>
1729         * coding.c (Fdetect_coding_region, Fdetect_coding_string): Fix
1730         docstring about ISO-2022 control characters.
1732 2006-08-28  Kim F. Storm  <storm@cua.dk>
1734         * xdisp.c (get_window_cursor_type): Replace BOX cursor on images
1735         with a hollow box cursor if image is larger than 32x32 (or the default
1736         frame font if that is bigger).  Replace any other cursor on images
1737         with hollow box cursor, as redisplay doesn't support bar and hbar
1738         cursors on images.
1740 2006-08-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1742         * alloc.c (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Undo previous
1743         change.  Move mutex lock/unlock operations inside BLOCK_INPUT.
1745         * dired.c (directory_files_internal_unwind, directory_files_internal)
1746         (file_name_completion): Add BLOCK_INPUT around opendir/closedir.
1748         * image.c [MAC_OS] (image_load_qt_1): Use ComponentResult instead
1749         of OSErr.
1751         * keyboard.c (in_sighandler): Remove variable.
1752         (Fcurrent_idle_time): Add missing `doc:'.
1753         (input_available_signal, init_keyboard): Undo previous change.
1755         * keyboard.h (in_sighandler): Remove extern.
1757         * mac.c (create_apple_event_from_event_ref, select)
1758         (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
1759         (Fmac_set_file_type, cfstring_create_normalized)
1760         (mac_get_system_locale, select_and_poll_event, sys_select):
1761         Use OSStatus instead of OSErr.
1763         * macfns.c [TARGET_API_MAC_CARBON] (mac_update_proxy_icon):
1764         Don't use FRAME_FILE_NAME.  Use (FS)UpdateAlias.
1765         (Fx_create_frame): Apply 2006-07-03 for xfns.c.
1767         * macselect.c (get_scrap_from_symbol, clear_scrap, put_scrap_string)
1768         (put_scrap_private_timestamp, scrap_has_target_type, get_scrap_string)
1769         (get_scrap_private_timestamp, get_scrap_target_type_list)
1770         (x_own_selection, x_get_foreign_selection)
1771         (Fx_disown_selection_internal, Fx_selection_owner_p)
1772         (Fx_selection_exists_p): Use OSStatus instead of OSErr.
1774         * macterm.c (mac_draw_string_common, mac_query_char_extents)
1775         (x_iconify_frame, XLoadQueryFont, install_window_handler)
1776         (mac_handle_command_event, init_command_handler, init_menu_bar):
1777         Use OSStatus instead of OSErr.
1778         (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Don't use
1779         FRAME_FILE_NAME.
1780         (x_query_font): Apply 2006-08-04 change for xterm.c.
1781         (Qhi_command): Rename from Qhicommand.  All uses changed.
1783         * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]: Remove member
1784         file_name.
1785         (FRAME_FILE_NAME): Remove macro.
1786         (install_window_handler, create_apple_event_from_event_ref):
1787         Return OSStatus instead of OSErr.
1789 2006-08-26  Kim F. Storm  <storm@cua.dk>
1791         * buffer.c (Fset_buffer_multibyte):
1792         * editfns.c (Fcurrent_time, Fget_internal_run_time):
1793         * macfns.c (Fxw_color_values):
1794         * w32fns.c (Fxw_color_values):
1795         * xfns.c (Fxw_color_values): Simplify; use list3.
1797         * fileio.c (Fmake_directory_internal, Fdelete_directory)
1798         (Fdelete_file): Simplify; use list1.
1799         (Frename_file, Fadd_name_to_file, Fmake_symbolic_link):
1800         Simplify; remove NO_ARG_ARRAY stuff, use list2.
1802 2006-08-25  Richard Stallman  <rms@gnu.org>
1804         * buffer.c (Fswitch_to_buffer): Fix previous change.
1806 2006-08-25  Kim F. Storm  <storm@cua.dk>
1808         * keyboard.c (Fcurrent_idle_time): Simplify.
1810 2006-08-25  Richard Stallman  <rms@gnu.org>
1812         * fns.c (sxhash_string): Rotate properly; don't lose bits.
1814 2006-08-24  Francesc Rocher  <francesc.rocher@gmail.com>
1816         * xdisp.c (overline_margin): New variable.
1817         (x_produce_glyphs): Use it.
1818         (syms_of_xdisp): DEFVAR_INT it.
1820         * xterm.c (x_underline_at_descent_line): New variable.
1821         (syms_of_xterm): DEFVAR_BOOL it.
1822         (x_draw_glyph_string): Use it.
1823         Draw underline and overline up to the end of line if the face
1824         extends to the end of line.
1826         * macterm.c: Likewise.
1828         * w32term.c: Likewise.
1830 2006-08-24  Nick Roberts  <nickrob@snap.net.nz>
1832         * buffer.c (Fswitch_to_buffer): Move buffer to front of
1833         buffer-alist if necessary.
1835 2006-08-22  Kim F. Storm  <storm@cua.dk>
1837         * xdisp.c (update_tool_bar): Redisplay toolbar also when only
1838         number of items changes.
1840 2006-08-22  Stefan Monnier  <monnier@iro.umontreal.ca>
1842         * buffer.c (Fset_buffer_multibyte): Record proper undo entry.
1844 2006-08-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1846         * keyboard.c: Clarify difference between in_sighandler and
1847         handling_signal.
1849 2006-08-21  Kim F. Storm  <storm@cua.dk>
1851         * macterm.c (x_draw_stretch_glyph_string):
1852         * w32term.c (x_draw_stretch_glyph_string):
1853         * xterm.c (x_draw_stretch_glyph_string): It is ok to draw a
1854         stretch glyph in left marginal areas on header and mode lines.
1856 2006-08-21  Kenichi Handa  <handa@m17n.org>
1858         * keyboard.c (syms_of_keyboard): Docstring of
1859         Vunread_post_input_method_events and Vunread_input_method_events
1860         fixed.
1862 2006-08-20  Chong Yidong  <cyd@stupidchicken.com>
1864         * keyboard.c (show_help_echo): Preserve mouse movement flag if
1865         tracking mouse.
1867 2006-08-20  Richard Stallman  <rms@gnu.org>
1869         * xfaces.c (load_pixmap): Add quotes in error message.
1871         * keyboard.c (Fcurrent_idle_time): New function.
1872         (syms_of_keyboard): defsubr it.
1874 2006-08-18  Nick Roberts  <nickrob@snap.net.nz>
1876         * window.c (Fset_window_fringes): Do nothing on a tty.
1877         (Fwindow_fringes): Put ? operator after the line break.
1879 2006-08-16  Andreas Schwab  <schwab@suse.de>
1881         * print.c (debug_output_compilation_hack): Fix return type.
1883 2006-08-16  Richard Stallman  <rms@gnu.org>
1885         * print.c (debug_output_compilation_hack): New function.
1887 2006-08-16  Kenichi Handa  <handa@m17n.org>
1889         * fileio.c (choose_write_coding_system): Use LF for end-of-line
1890         in auto-saving.
1892 2006-08-15  Chong Yidong  <cyd@stupidchicken.com>
1894         * keyboard.c (read_char): Don't change idle timer state at all if
1895         end_time is supplied.
1897 2006-08-15  Kenichi Handa  <handa@m17n.org>
1899         * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New arg RET.  If SRC
1900         is exhausted, return with RET.
1901         (detect_coding_emacs_mule, detect_coding_iso2022)
1902         (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
1903         (detect_coding_utf_16, detect_coding_ccl): Adjusted for the above
1904         change.
1906 2006-08-14  Chong Yidong  <cyd@stupidchicken.com>
1908         * keyboard.c (read_char): Don't reset idle timers if a time limit
1909         is supplied.
1911 2006-08-14  Kim F. Storm  <storm@cua.dk>
1913         * .gdbinit (pitx): Print iterator position.
1914         Limit stack dump in case iterator is not initialized.
1916 2006-08-12  Eli Zaretskii  <eliz@gnu.org>
1918         * frame.c (Fmouse_position, Fmouse_pixel_position)
1919         (Fset_mouse_position, Fset_mouse_pixel_position): Doc fix.
1921 2006-08-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1923         * xselect.c (Fx_register_dnd_atom): New function.
1924         (syms_of_xselect): Defsubr it.
1925         (x_handle_dnd_message): Check that message_type is in
1926         dpyinfo->x_dnd_atoms before generating lisp event.
1928         * xterm.h (struct x_display_info): Add x_dnd_atoms* to keep track
1929         of drag and drop Atoms.
1931         * xterm.c (x_term_init): Initialize dpyinfo->x_dnd_atoms*
1933 2006-08-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1935         * keyboard.c: Define in_sighandler.
1936         (input_available_signal): Set in_sighandler.
1937         (init_keyboard): Initialize in_sighandler.
1939         * keyboard.h: Declare in_sighandler.
1941         * alloc.c (UNBLOCK_INPUT_ALLOC, BLOCK_INPUT_ALLOC): Use in_sighandler
1942         to check if mutex should be locked or not.
1944 2006-08-09  Richard Stallman  <rms@gnu.org>
1946         * keyboard.c (keyremap_step): No-op if fkey->parent = nil.
1947         (read_key_sequence): Always start fkey.start and fkey.end at 0,
1948         and likewise for keytran.
1950 2006-08-09  Kenichi Handa  <handa@m17n.org>
1952         * coding.c (syms_of_coding): Improve the docstring
1953         file-coding-system-alist.
1955 2006-08-07  Andreas Schwab  <schwab@suse.de>
1957         * puresize.h (BASE_PURESIZE): Increase to 1120000.
1959 2006-08-06  Chong Yidong  <cyd@stupidchicken.com>
1961         * buffer.c (Vchange_major_mode_hook, Qchange_major_mode_hook): New vars.
1962         (Fkill_all_local_variables): Use it.
1963         (syms_of_buffer): Defvar it.
1965 2006-08-05  Eli Zaretskii  <eliz@gnu.org>
1967         * w32.c (w32_valid_pointer_p): New function.
1969         * w32.h: Add prototype for w32_valid_pointer_p.
1971         * alloc.c: Include w32.h.
1972         (valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do
1973         the job.
1975         * keyboard.c (kbd_buffer_get_event): Return Qnil when current time
1976         is exactly equal to end_time, not only when it is past that.
1978 2006-08-04  Chong Yidong  <cyd@stupidchicken.com>
1980         * keyboard.c (read_char): Rebalance specpdl after receiving jump.
1982         * process.c: Reapply 2006-08-01 change.
1984 2006-08-04  Eli Zaretskii  <eliz@gnu.org>
1986         * w32fns.c (w32_query_font): Fix last change: use stricmp.
1988 2006-08-04  Stefan Monnier  <monnier@iro.umontreal.ca>
1990         * editfns.c (Fsubst_char_in_region): Redo the setup work after running
1991         the before-change-functions since they may have altered the buffer.
1993 2006-08-04  Ralf Angeli  <angeli@caeruleus.net>
1995         * w32fns.c (w32_createwindow): Handle -geometry command line option
1996         and the geometry settings in the Registry.
1998 2006-08-04  Kenichi Handa  <handa@m17n.org>
2000         * w32fns.c (w32_query_font): Compare names by ignoring case.
2002         * xterm.c (x_query_font): Compare names by ignoring case.
2004 2006-08-03  Jason Rumney  <jasonr@gnu.org>
2006         * w32menu.c (w32_menu_show, w32_dialog_show): Call Fsignal to quit
2007         when no option selected.
2009 2006-08-03  Chong Yidong  <cyd@stupidchicken.com>
2011         * process.c: Revert last change.
2013 2006-08-01  Kim F. Storm  <storm@cua.dk>
2015         * process.c (wait_reading_process_output_unwind): New function.
2016         Restores waiting_for_user_input_p to saved value.
2017         (wait_reading_process_output): Unwind protect waiting_for_user_input_p
2018         instead of save/restore old value on stack.
2020 2006-07-30  Thien-Thi Nguyen  <ttn@gnu.org>
2022         * editfns.c: Undo 2006-06-27 change.
2024 2006-07-29  Eli Zaretskii  <eliz@gnu.org>
2026         * coding.c (Ffind_operation_coding_system): Revert the change from
2027         2006-05-29.
2029         * alloc.c [WINDOWSNT]: Include fcntl.h, to fix last change.
2031 2006-07-28  Richard Stallman  <rms@gnu.org>
2033         * xfaces.c (lookup_named_face, Fdisplay_supports_face_attributes_p):
2034         Add conditional aborts for clarity.
2036         * xdisp.c (update_menu_bar): New arg HOOKS_RUN.  Callers changed.
2037         Used to avoid running the hooks over and over for each frame.
2038         (prepare_menu_bars): Pass value from update_menu_bar
2039         as HOOKS_RUN of next call.
2041         * keyboard.c (safe_run_hooks_1): Don't crash if Vrun_hooks is nil.
2043 2006-07-28  Kim F. Storm  <storm@cua.dk>
2045         * alloc.c (valid_pointer_p): New function (from valid_lisp_object_p).
2046         (valid_lisp_object_p): Use it to check for valid SUBRP obj.
2048 2006-07-26  Chong Yidong  <cyd@stupidchicken.com>
2050         * keyboard.c (read_char): New arg END_TIME specifying timeout.
2051         All callers changed.  Turn off echoing if END_TIME is non-NULL.
2052         (kbd_buffer_get_event): New arg END_TIME.
2054         * lread.c (read_filtered_event): New arg SECONDS to wait until.
2055         (Fread_char, Fread_event, Fread_char_exclusive): New arg SECONDS.
2057         * lisp.h: Update read-char, read-event, and read_filtered_event
2058         prototypes.
2060         * keyboard.h: Include systime.h.  Update read_char prototype.
2062 2006-07-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2064         * alloc.c (find_string_data_in_pure): New function.
2065         (make_pure_string): Use it to reuse existing string data if possible.
2067         * puresize.h (BASE_PURESIZE): Decrease to 1102000.
2069 2006-07-22  Stefan Monnier  <monnier@iro.umontreal.ca>
2071         * keymap.c (Fdefine_key): If the key binding definition looks like an
2072         XEmacs-style key sequence, convert it to Emacs's format.
2074 2006-07-22  Ralf Angeli  <angeli@caeruleus.net>
2076         * w32fns.c (w32_createwindow): If `left' and/or `top' frame
2077         parameters are bound to some values, use that instead of
2078         CW_USEDEFAULT.
2080 2006-07-21  Eli Zaretskii  <eliz@gnu.org>
2082         * w32.c (convert_time): Use explicit long double constants to
2083         ensure long double arithmetics is used throughout.
2085 2006-07-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2087         * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): New vars.
2088         (init_alloc_once): Initialize them.
2089         (pure_alloc): Allocate non-Lisp objects from the end of pure storage
2090         without alignment.
2092         * puresize.h (BASE_PURESIZE): Decrease to 1141000.
2094 2006-07-18  Francis Litterio  <franl@world.std.com>
2096         * w32term.c (x_calc_absolute_position): Fix frame positioning
2097         with negative X/Y coordinates.
2099 2006-07-18  Dan Nicolaescu  <dann@ics.uci.edu>
2101         * xterm.c (x_connection_closed, x_error_quitter): Mark as NO_RETURN.
2103         * textprop.c (text_read_only): Likewise.
2105         * lread.c (end_of_file_error): Likewise.
2107         * lisp.h (circular_list_error, memory_full, buffer_memory_full):
2108         Likewise.
2110         * eval.c (unwind_to_catch): Likewise.
2112         * buffer.h (buffer_slot_type_mismatch): Likewise.
2114 2006-07-18  Kim F. Storm  <storm@cua.dk>
2116         Cleanup Fsignal calls that never returns; now only use it for Qquit.
2118         * eval.c (xsignal): New func.  Like Fsignal, but marked no-return.
2119         (xsignal0, xsignal1, xsignal2, xsignal3): New no-return functions.
2120         (signal_error): New no-return function (from xfaces.c).
2121         (Fthrow): Use xsignal2 instead of Fsignal + abort.
2122         (error): Use xsignal1 instead of Fsignal + abort.
2123         (FletX, Flet, grow_specpdl): Use signal_error.
2124         (Feval, Ffuncall, funcall_lambda): Use xsignal1, xsignal2.
2126         * alloc.c (buffer_memory_full, memory_full): Use xsignal.  Remove loop.
2127         (list1): New function.
2129         * lisp.h (list1): Add EXFUN.
2130         (xsignal, xsignal0, xsignal1, xsignal2, xsignal3, signal_error):
2131         Add prototypes.  Mark them as no-return.
2133         * buffer.c (Fbuffer_local_value, Fbarf_if_buffer_read_only):
2134         Use xsignal1.
2136         * callint.c (check_mark): Use xsignal0.
2138         * casefiddle.c (casify_object): wrong_type_argument is no-return.
2140         * cmds.c (Fforward_char, Fdelete_char): Use xsignal0.
2142         * coding.c (Fcheck_coding_system): Use xsignal1.  Remove loop.
2143         (Fdefine_coding_system_internal): Use xsignal1.
2145         * data.c (circular_list_error): Use xsignal.
2146         (wrong_type_argument): Use xsignal2.  Don't care about return value.
2147         (args_out_of_range, args_out_of_range_3): Use xsignal2, xsignal3.
2148         Remove loop around Fsignal.
2149         (indirect_variable, Fsymbol_value, set_internal, Fdefault_value)
2150         (indirect_function, Findirect_function, Fstring_to_number)
2151         (Fmakunbound, Ffmakunbound, Fsymbol_function, Ffset): Use xsignal1.
2152         (arith_driver, float_arith_driver, Frem, Fmod, arith_error):
2153         Use xsignal0.
2155         * doc.c (Fdocumentation): Use xsignal1.
2157         * editfns.c (region_limit, Fget_internal_run_time): Use xsignal0.
2159         * fileio.c (report_file_error): Use xsignal.
2160         (barf_or_query_if_file_exists, Fcopy_file, Fdelete_file)
2161         (Finsert_file_contents): Use xsignal2.
2162         (syms_of_fileio): Use list2, list3.
2164         * floatfns.c (arith_error, range_error, domain_error): Use xsignal2.
2165         (range_error2, domain_error2): Use xsignal3.
2166         (rounding_driver, fmod_float): Use xsignal0.
2167         (float_error): Use xsignal1.
2168         (matherr): Use xsignal.
2170         * fns.c (Flength): wrong_type_argument is no-return.
2171         (hashfn_user_defined, Fmake_hash_table): Use signal_error.
2172         (Fmd5): Use xsignal1.
2174         * frame.c (x_set_line_spacing, x_set_screen_gamma): Use signal_error.
2176         * keyboard.c (recursive_edit_1): Use xsignal1.
2178         * keymap.c (Fmap_keymap): Use xsignal1.
2180         * lread.c (Fload): Use xsignal2, signal_error.
2181         (end_of_file_error): Use xsignal0, xsignal1.
2182         (read0): Use xsignal1.
2183         (invalid_syntax): New error function marked no-return.
2184         (read_integer, read1, read_list): Use it.
2186         * macselect.c (x_get_local_selection): Use signal_error.
2188         * msdos.c (Fmsdos_set_mouse_buttons): Use xsignal2.
2190         * search.c (compile_pattern_1): Use xsignal1.
2191         (signal_failure): Remove (was only called once).
2192         (search_command): Use xsignal1 instead of signal_failure.
2194         * syntax.c (scan_lists): Use xsignal3.
2196         * textprop.c (text_read_only): Use xsignal0, xsignal1.
2198         * unexsol.c (unexec): Use xsignal.
2200         * window.c (window_scroll_pixel_based, window_scroll_line_based):
2201         Use xsignal0.
2203         * xfaces.c (signal_error): Move to eval.c.
2204         (resolve_face_name): Use xsignal1.
2206         * xfns.c (x_decode_color): Use signal_error.
2208         * xselect.c (x_get_local_selection, copy_multiple_data)
2209         (x_get_window_property_as_lisp_data)
2210         (lisp_data_to_selection_data, CHECK_CUT_BUFFER)
2211         (Fx_get_cut_buffer_internal): Use signal_error.
2213 2006-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2215         * macterm.c (XTread_socket): Undo previous change.
2217 2006-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2219         * macterm.c (keycode_to_xkeysym): Remove function.  All uses now
2220         directly lookup keycode_to_xkeysym_table.
2221         [USE_MAC_TSM] (mac_handle_text_input_event): Don't construct
2222         ASCII_KEYSTROKE_EVENT for non-zero keycode_to_xkeysym_table entries.
2223         (XTread_socket): Use character codes to construct keypad key events.
2224         (mac_initialize_display_info) [MAC_OSX]: Use CGDisplaySamplesPerPixel.
2225         (x_delete_display): Apply 2006-07-04 change for xterm.c.
2227 2006-07-17  Richard Stallman  <rms@gnu.org>
2229         * keyboard.c (Vcommand_error_function): New variable.
2230         (syms_of_keyboard): Defvar it.
2231         (cmd_error_internal): Simplify, and handle Vcommand_error_function.
2233         * dispnew.c (init_display): Mention DISPLAY as well as TERM in err msg.
2235 2006-07-17  Kim F. Storm  <storm@cua.dk>
2237         * xdisp.c (handle_single_display_spec): Ensure the right value of
2238         it->position is saved by push_it.
2239         (pop_it): Restore it->object for GET_FROM_BUFFER and GET_FROM_STRING.
2240         (reseat_1): Don't setup it->object twice.
2241         (set_iterator_to_next): No need to set it->object after pop_it.
2242         (move_it_to): Explicitly check to see if last move reached to_charpos.
2244 2006-07-17  Thien-Thi Nguyen  <ttn@gnu.org>
2246         * xdisp.c (display_mode_line): Preserve match data.
2248 2006-07-14  Kim F. Storm  <storm@cua.dk>
2250         * w32.c (pfn_WSACreateEvent, pfn_WSACloseEvent): New func ptrs.
2251         (init_winsock): Load them.  Use ws2_32.dll.
2252         (sys_listen): Undo last change.  Just set FILE_LISTEN flag.
2253         (sys_accept): Undo last change.  Instead, set child status to
2254         STATUS_READ_ACKNOWLEDGED and reset char_avail event so next
2255         sys_select will wakeup the reader thread.
2256         (_sys_wait_accept): New function used by reader thread to wait for
2257         an incoming connection on a server socket.
2259         * w32.h (_sys_read_ahead, _sys_wait_accept): Add prototypes.
2261         * w32proc.c (reader_thread): Use _sys_wait_accept to wait on a
2262         server socket (FILE_LISTEN flag).
2264 2006-07-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2266         * sound.c (alsa_init): Call snd_pcm_close after successful snd_pcm_open.
2268 2006-07-14  Kim F. Storm  <storm@cua.dk>
2270         * w32.c: Fix high cpu load for server sockets.
2271         (pfn_WSAEventSelect): New function ptr.
2272         (init_winsock): Load it.
2273         (sys_listen): Set FILE_LISTEN flag. Set event mask for socket's
2274         char_avail event object to FD_ACCEPT.
2275         (sys_accept): Check FILE_LISTEN flag.  Set event mask on new
2276         socket's char_avail event object to FD_READ|FD_CLOSE.
2278         * w32.h (FILE_LISTEN): New filedesc flag value.
2280 2006-07-13  Kim F. Storm  <storm@cua.dk>
2282         * bytecode.c (Fbyte_code): Use CAR, CDR for Bcar, Bcdr.
2283         Use CAR_SAFE, CDR_SAFE for Bcar_safe, Bcdr_safe.
2284         Simplify loops and use CAR for Bnth and Belt.
2286         * data.c (Findirect_function): Optimize for no indirection.
2288         * eval.c (Fthrow): Remove loop around Fsignal.
2289         (Feval, Fapply, Ffuncall): Optimize for no function indirection.
2290         Use original function name in all signaled errors.
2291         Simplify Fsignal calls (no return).
2292         (funcall_lambda): Simplify Fsignal calls (no return).
2294 2006-07-13  Andreas Schwab  <schwab@suse.de>
2296         * syntax.c (scan_sexps_forward): Use EMACS_INT for out_bytepos and
2297         out_charpos.
2299 2006-07-13  Kenichi Handa  <handa@m17n.org>
2301         * editfns.c (Fformat): Fix calculation of text property positions
2302         of format string.
2304 2006-07-12  Kim F. Storm  <storm@cua.dk>
2306         * lisp.h (CHECK_TYPE): New macro for generic type checking.
2307         (CAR_SAFE, CDR_SAFE): New macros.
2308         (ARRAYP, CHECK_ARRAY): New macros.
2309         (CHECK_VECTOR_OR_STRING, CHECK_SUBR): New macros.
2310         (CHECK_WINDOW_CONFIGURATION): New macro.
2311         (CHECK_LIST_CONS, CHECK_LIST_END): New checks for list traversal.
2312         (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2313         (CHECK_STRING, CHECK_STRING_CAR, CHECK_CONS, CHECK_SYMBOL)
2314         (CHECK_CHAR_TABLE, CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE)
2315         (CHECK_BUFFER, CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS)
2316         (CHECK_NUMBER, CHECK_NATNUM, CHECK_MARKER, CHECK_OVERLAY)
2317         (CHECK_NUMBER_COERCE_MARKER, CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2318         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER): Use CHECK_TYPE.
2320         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET):
2321         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Use CHECK_TYPE.
2323         * callint.c (Fcall_interactively):
2324         * casefiddle.c (casify_object):
2325         * editfns.c (general_insert_function):
2326         * fns.c (Flength, Felt, Ffillarray):
2327         * data.c (Fcar, Fcdr): Remove loop around wrong_type_argument.
2329         * data.c (wrong_type_argument): Remove loop around Fsignal.
2330         (Farrayp, Fsequencep): Use ARRAYP.
2331         (Fcar): Use CAR.
2332         (Fcar_safe): Use CAR_SAFE.
2333         (Fcdr): Use CDR.
2334         (Fcdr_safe): Use CDR_SAFE.
2335         (Fsetcar, Fsetcdr): Use CHECK_CONS.
2336         (Fsubr_arity, Fsubr_name): Use CHECK_SUBR.
2337         (Faset): Use CHECK_ARRAY.
2339         * fns.c (Felt): Use CHECK_ARRAY.
2340         (concat): Use CHECK_NUMBER.
2341         (Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
2342         (Fmemq): Use CHECK_LIST.
2343         (Fassq, Fassoc, Frassq, Frassoc): Use CAR.
2344         (assq_no_quit): Use CAR_SAFE.
2345         (Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
2346         Use CHECK_LIST_CONS.
2347         (Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
2349         * bytecode.c (Fbyte_code): Use CHECK_VECTOR.
2351         * casetab.c (check_case_table):
2352         * category.c (check_category_table):
2353         * marker.c (Fcopy_marker):
2354         * syntax.c (check_syntax_table):
2355         * xfaces.c (load_pixmap): Use CHECK_TYPE.
2357         * fns.c (Fcopy_sequence, concat):
2358         * fringe.c (Fdefine_fringe_bitmap):
2359         * lread.c (check_obarray): Cleanup wrong_type_argument use.
2361         * keyboard.c (access_keymap_keyremap): Use ARRAYP.
2363         * keymap.c (Fdefine_key, Flookup_key):
2364         * macros.c (Fstart_kbd_macro): Use CHECK_VECTOR_OR_STRING.
2366         * mac.c (Fmac_get_preference): Use CHECK_LIST_END.
2368         * search.c (Fset_match_data): Use CHECK_LIST.
2370         * sunfns.c (sun_item_create): Use CHECK_LIST_CONS.
2372         * window.c (Fwindow_configuration_frame, Fset_window_configuration):
2373         (compare_window_configurations): Use CHECK_WINDOW_CONFIGURATION.
2375 2006-07-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2377         * Makefile.in (dired.o, editfns.o, fileio.o): Depend on blockinput.h.
2379         * dired.c: Include blockinput.h.
2380         (Ffile_attributes): Add BLOCK_INPUT around getpwuid/getgrgid.
2382         * editfns.c: Include blockinput.h.
2383         (Fuser_login_name, Fuser_full_name): Add BLOCK_INPUT around
2384         getpwuid/getpwnam.
2386         * fileio.c: Include blockinput.h.
2387         (Fexpand_file_name, search_embedded_absfilename): Add BLOCK_INPUT
2388         around getpwnam.
2389         (search_embedded_absfilename): Remove spurious xfree.
2391 2006-07-11  Kim F. Storm  <storm@cua.dk>
2393         * dispnew.c (sit_for): Reduce number of args from 5 to 3.
2394         Now just one TIMEOUT arg that can be a Lisp float or Lisp int.
2395         Combine args DISPLAY and INITIAL_DISPLAY into one arg DO_DISPLAY.
2396         Signal error if TIMEOUT is not a number.
2397         Undo 2006-06-14 change for non-preemptive display if TIMEOUT < 0.
2398         The rework of sit_for args also fixes several incorrect Qt args
2399         which should have been 1.
2400         (Fredisplay): Pass 1 instead of Qt to swallow_events and
2401         detect_input_pending_run_timers.
2403         * lisp.h (sit_for): Update prototype.
2404         (Fredisplay): Add EXFUN.
2406         * dispextern.h (sit_for): Remove prototype.
2408         * callint.c (Fcall_interactively):
2409         * minibuf.c (temp_echo_area_glyphs):
2410         * keyboard.c (command_loop_1, read_char, Fexecute_extended_command):
2411         * fileio.c (Fdo_auto_save): Update/simplify sit_for calls.
2413 2006-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
2415         * syntax.c (forw_comment): Also use EMACS_INT for buffer positions.
2417 2006-07-11  Kim F. Storm  <storm@cua.dk>
2419         * dispnew.c (Fredisplay): Add FORCE argument to force redisplay when
2420         input is available.  Fix test for redisplay_dont_pause non-nil.
2421         Specbind redisplay-dont-pause to t if FORCE non-nil.
2423 2006-07-10  Chong Yidong  <cyd@stupidchicken.com>
2425         * puresize.h (BASE_PURESIZE): Increment to 1211000.
2427         * dispnew.c (Fredisplay): New function, equivalent to (sit-for 0).
2428         (Fsit_for): Function deleted.
2430         * keyboard.c (command_loop_1, Fexecute_extended_command):
2431         Call sit_for instead of Fsit_for.
2433         * minibuf.c (temp_echo_area_glyphs): Likewise.
2435 2006-07-09  Stefan Monnier  <monnier@iro.umontreal.ca>
2437         * syntax.c (Fforward_comment): Revert the reversion.
2438         (back_comment, scan_lists): Also use EMACS_INT for buffer positions.
2440 2006-07-09  John Paul Wallington  <jpw@pobox.com>
2442         * syntax.c (Fforward_comment): Revert previous change.
2444 2006-07-09  Kim F. Storm  <storm@cua.dk>
2446         * window.c (Fforce_window_update): Doc fix.
2448 2006-07-08  Stephen Gildea  <gildea@stop.mail-abuse.org>
2450         * fileio.c (do_auto_save_make_dir): Make the auto-save-list-file
2451         directory unreadable for better user privacy.
2453 2006-07-07  Stefan Monnier  <monnier@iro.umontreal.ca>
2455         * syntax.c (Fforward_comment): Fix int-32 vs EMACS_INT-64 mixup.
2457         * lread.c (read_filtered_event): Remove `register' qualifier because it
2458         causes compilation problem with gcc-4.0.2-20051125 on amd64.
2459         (readevalloop): Remove unused var `bpos'.
2460         Yet another int/Lisp_Object mixup (YAILOM).
2462 2006-07-07  Eli Zaretskii  <eliz@gnu.org>
2464         * keyboard.c (Fexecute_extended_command): Mention the argument
2465         PREFIXARG in the doc string.
2467 2006-07-07  Kim F. Storm  <storm@cua.dk>
2469         * fringe.c (Fdefine_fringe_bitmap): Doc fix.
2471 2006-07-05  Chong Yidong  <cyd@stupidchicken.com>
2473         * insdel.c (prepare_to_modify_buffer): For an indirect buffer, do
2474         clash detection using the base buffer.
2476         * puresize.h (BASE_PURESIZE): Increment to 1210500.
2478 2006-07-04  Kim F. Storm  <storm@cua.dk>
2480         * xterm.c (x_delete_display): Don't free or derefence NULL pointers.
2482 2006-07-04  Kenichi Handa  <handa@m17n.org>
2484         * fontset.c (Fset_overriding_fontspec_internal): Check if we need
2485         to update Voverriding_fontspec_alist.
2487 2006-07-03  Richard Stallman  <rms@gnu.org>
2489         * xfns.c (Fx_create_frame): Move unwind_create_frame setup down.
2491         * xfaces.c (Fface_attribute_relative_p): Doc fix.
2493         * textprop.c (Fget_char_property_and_overlay): Doc fix.
2495         * eval.c (Fdefvaralias): Doc fix.
2497 2006-07-03  Kim F. Storm  <storm@cua.dk>
2499         * dispnew.c (sit_for): Fix preempt condition.
2501 2006-07-02  Stefan Monnier  <monnier@iro.umontreal.ca>
2503         * lread.c (read_filtered_event): Treat select-window just like
2504         switch-frame.
2506 2006-07-02  Kim F. Storm  <storm@cua.dk>
2508         * xdisp.c (display_tool_bar_line): Skip glyphs which are too big
2509         to ever fit the tool-bar,
2510         (MAX_FRAME_TOOL_BAR_HEIGHT): New macro.
2511         (tool_bar_lines_needed): Use unused mode-line row as temp_row.
2512         (redisplay_tool_bar): Only clear desired matrix if we actually
2513         change the tool-bar window height.  Only try to make the tool-bar
2514         window bigger if there is actually room for it.
2516 2006-06-30  Ralf Angeli  <angeli@caeruleus.net>
2518         * w32term.c (x_make_frame_visible): Use SystemParametersInfo with
2519         SPI_GETWORKAREA to find the dimensions of the screen work area,
2520         and adjust vertical position of the frame in order to avoid being
2521         covered by the task bar.
2523         * w32fns.c (w32_createwindow): Use CW_USEDEFAULT instead of
2524         f->left_pos and SH_SHOW instead of f->top_pos in the call to
2525         CreateWindow.  Record the actual position in f->left_pos and
2526         f->top_pos.
2528 2006-06-30  John Paul Wallington  <jpw@pobox.com>
2530         * w32console.c (syms_of_ntterm) <w32-use-full-screen-buffer>:
2531         Doc fix - default value has changed.
2533 2006-06-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2535         * mac.c [!TARGET_API_MAC_CARBON]: Don't include FixMath.h or Scrap.h.
2537         * macfns.c (Fx_create_frame): Apply 2006-06-24 change for xfns.c.
2539         * macgui.h (USE_MAC_TSM) [TARGET_API_MAC_CARBON]: Set default to 1.
2541         * macterm.c (Qeql): Add extern.
2542         (x_set_mouse_pixel_position) [MAC_OSX]: Use CGWarpMouseCursorPosition.
2543         (fm_style_face_attributes_alist) [USE_ATSUI]: New variable.
2544         (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
2545         Change keys of Vmac_atsu_font_table from strings to numbers.
2546         (fm_style_to_face_attributes) [USE_ATSUI]: New function.
2547         (init_font_name_table) [USE_ATSUI]: Use it.
2548         (saved_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
2549         (syms_of_macterm) [USE_MAC_TSM]: Initialize and staticpro it.
2550         [USE_MAC_TSM] (mac_tsm_resume): Restore script and language codes
2551         only when saved_ts_script_language_on_focus coincides with
2552         Vmac_ts_script_language_on_focus.
2553         [USE_MAC_TSM] (mac_tsm_suspend): Save value of
2554         Vmac_ts_script_language_on_focus to saved_ts_script_language_on_focus.
2555         (XTread_socket) [USE_MAC_TSM]: Add Mac OS Classic support.
2556         [USE_MAC_TSM] (mac_handle_text_input_event, init_tsm): Likewise.
2558 2006-06-27  Chong Yidong  <cyd@stupidchicken.com>
2560         * editfns.c (Fdelete_field, Ffield_string, Ffield_beginning)
2561         (Ffield_string_no_properties, Ffield_end): Mention
2562         args-out-of-range error condition in docstring.
2564 2006-06-27  Kim F. Storm  <storm@cua.dk>
2566         * xdisp.c (handle_composition_prop): Set stop_charpos before push_it.
2568 2006-06-25  Kim F. Storm  <storm@cua.dk>
2570         * s/gnu-linux.h (SIGNALS_VIA_CHARACTERS): Define for Linux kernel
2571         version 2.4 and later.
2573 2006-06-24  Chong Yidong  <cyd@stupidchicken.com>
2575         * xfns.c (Fx_create_frame): Set font parameter directly instead of
2576         using x_default_parameter, since x_get_args clears the parm alist.
2578 2006-06-24  Eli Zaretskii  <eliz@gnu.org>
2580         * dired.c (directory_files_internal) [WINDOWSNT]: Find files
2581         case-insensitively.
2583 2006-06-24  Aidan Kehoe  <kehoea@parhasard.net>
2585         * lread.c (read_escape): When an unknown Unicode code point is
2586         encountered as a string or character escape, signal an error.
2588 2006-06-23  Kim F. Storm  <storm@cua.dk>
2590         * .gdbinit (pitx): Dump iterator stack.
2592         * xdisp.c (handle_composition_prop): Push iterator on stack.
2593         (set_iterator_to_next): Pop iterator at end of composition.
2595 2006-06-23  Martin Rudalics  <rudalics@gmx.at>
2597         * fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
2598         itself on DOS_NT platforms, if the old and new names are identical
2599         but for the letter-case.
2601 2006-06-21  Kim F. Storm  <storm@cua.dk>
2603         * dispextern.h (struct it): Add `position' member to iterator stack.
2604         Rename `pos' member to `current'.  Rearrange and add comments.
2606         * xdisp.c (handle_stop): Set it->ignore_overlay_strings_at_pos_p
2607         if  we get any overlays.
2608         (set_cursor_from_row): Don't clobber `end' if we rescan from
2609         start_string.
2610         (push_it, pop_it): Save it->position.
2612 2006-06-19  Richard Stallman  <rms@gnu.org>
2614         * window.c (size_window): New arg FIRST_ONLY.  All callers changed.
2615         (adjust_window_trailing_edge): Specially compute FIRST_PARALLEL
2616         for the case of a top-level window and the following minibuffer.
2617         Don't exit because of no `next' when there is a parent.
2618         Use the FIRST_ONLY feature when resizing following windows.
2620         * syntax.c (init_syntax_once): Give most control chars' syntax Spunct.
2622 2006-06-17  Kim F. Storm  <storm@cua.dk>
2624         * dispnew.c (update_frame): Check for input pending on entry.
2625         (update_window, update_frame_1): Break loop if input is detected.
2627 2006-06-16  Francis Litterio  <flitterio@gmail.com>
2629         * xterm.c (x_check_expected_move, handle_one_xevent)
2630         (x_set_offset, x_check_fullscreen): Extensive changes to make
2631         frame positioning deterministic under X.
2633         * xterm.h (x_output): Add members left_before_move and
2634         top_before_move.  Removed members expected_left and expected_top.
2636 2006-06-16  Kim F. Storm  <storm@cua.dk>
2638         * dispextern.h (struct it): Add union to iterator stack to save
2639         image, composition, and stretch specific paramters.
2641         * xdisp.c (next_overlay_string): Fix assert.
2642         (push_it, pop_it): Handle composition and stretch specific values.
2643         Only handle it->slice in image (for now).
2644         (back_to_previous_visible_line_start): Continue search if newline is
2645         part of a compisition.  Simplify.
2646         (reseat_1): Set it->object to buffer.
2647         (set_iterator_to_next): Set it->object to string or buffer, when
2648         setting it->method to GET_FROM_STRING or GET_FROM_BUFFER.
2649         (next_element_from_composition): Set it->object to buffer if not
2650         from string.
2651         (set_cursor_from_row): Only save start of string if not already
2652         done to handle multiple strings in a row.
2654         * .gdbinit (pitx): Show composition parameters.
2655         (pgx, pg): New commands to print a glyph structure.
2656         (pgi, pgn): New commands to print specific/next glyph.
2657         (pgrowx, pgrow): New commands to print all glyphs in a row.
2659 2006-06-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2661         * macfns.c (Fx_display_mm_height, Fx_display_mm_width)
2662         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Use CGDisplayScreenSize.
2664         * macterm.c (do_app_resume, do_app_suspend): Remove functions.
2665         (mac_tsm_resume, mac_tsm_suspend) [USE_MAC_TSM]: New functions.
2666         (mac_handle_window_event, XTread_socket) [USE_MAC_TSM]: Use them.
2667         (Vmac_ts_script_language_on_focus) [USE_MAC_TSM]: New variable.
2668         (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
2669         (saved_ts_language, saved_ts_component) [USE_MAC_TSM]: New variables.
2670         (mac_initialize_display_info) [MAC_OSX]: Use Quartz Display
2671         Services functions to get size of main display in pixels.
2673 2006-06-14  Chong Yidong  <cyd@stupidchicken.com>
2675         * xdisp.c (back_to_previous_visible_line_start):
2676         Reset it->continuation_lines_width.
2678 2006-06-14  Richard Stallman  <rms@gnu.org>
2680         * eval.c (Fdefconst): Mark variable as risky.
2682         * callproc.c (Fcall_process): Doc fix.
2684         * window.c (adjust_window_trailing_edge): Don't break out of the loop
2685         because there's no next window, if there are parallel windows.
2686         Do break out when WINDOW is nil.
2688 2006-06-14  Kim F. Storm  <storm@cua.dk>
2690         * dispextern.h (IT_STACK_SIZE): New macro specifying size of
2691         iterator stack (instead of hardcoded number).  Increase from 2 to
2692         4 to make room for propertized overlay strings before and after a
2693         display string, image or composition.
2694         (struct it): Add image_id and method members to iterator stack.
2696         * xdisp.c (init_from_display_pos): Don't set it->method and
2697         overlay_string_index after pop_it.  Add asserts.
2698         (handle_stop): Look for overlay strings around a display string,
2699         image, or composition.  Handle properties on those strings.
2700         (next_overlay_string): Don't set string, pos or method after pop_it.
2701         (get_overlay_strings_1): Split from get_overlay_strings; don't
2702         modify it if no overlay strings are found.
2703         (get_overlay_strings): Use get_overlay_strings_1.  Always set
2704         it->string and it->method.
2705         (push_it): Push it->image_id and it->method.  Push it->object
2706         instead of it->string if method is GET_FROM_IMAGE.
2707         (pop_it): Pop it->image_id and it->method.  Ppo it->object
2708         instead of it->string if method is GET_FROM_IMAGE.
2709         Reset it->current.string_pos if popped it->string is nil.
2710         (reseat_1): Remove comment dated 19 May 2003.  It expressed doubt
2711         whether a given change was correct; but the change is correct.
2712         Clear it->string_from_display_prop_p.
2713         (set_iterator_to_next): Rely on it->method and it->image_id from
2714         iterator stack, instead of setting them explicitly after pop_it.
2716         * dispnew.c (sit_for): Undo 2006-06-01 change.  Instead, a
2717         negative time forces redisplay even when input is available.
2718         (Fsit_for): Doc fix.
2720 2006-06-13  Kim F. Storm  <storm@cua.dk>
2722         * dispnew.c: Modify preemptive redisplay to be based on periodic
2723         checks for input.
2724         (PERIODIC_PREEMPTION_CHECKING): Define to 1 iff EMACS_HAS_USECS.
2725         (Vredisplay_preemption_period): New variable.
2726         (syms_of_display): DEFVAR_LISP and initialize it.
2727         (preemption_period, preemption_next_check): New variables.
2728         (update_frame, update_single_window): Initialize them based on
2729         Vredisplay_preemption_period if !force_p.
2730         (update_window, update_frame_1): Use them to determine when to
2731         check for input.
2733 2006-06-03  Aidan Kehoe  <kehoea@parhasard.net>
2735         * lread.c (read_escape): Provide a Unicode character escape
2736         syntax; \u followed by exactly four or \U followed by exactly
2737         eight hex digits in a comment or string is read as a Unicode
2738         character with that code point.
2740 2006-06-09  Eli Zaretskii  <eliz@gnu.org>
2742         * window.c (window_scroll_pixel_based): Signal "Beginning of
2743         buffer" when scroll-down at the beginning of an empty buffer.
2745 2006-06-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2747         * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
2748         Exclude 0x7f from ASCII range.
2750 2006-06-05  Jason Rumney  <jasonr@gnu.org>
2752         * w32term.c (w32_set_scroll_bar_thumb, x_scroll_bar_create)
2753         (w32_set_vertical_scroll_bar, w32_scroll_bar_handle_click)
2754         (x_scroll_bar_report_motion): Remove workarounds for
2755         versions of Windows NT < 3.51.
2756         [!SIF_ALL]: Remove.
2757         (pfnSetScrollInfo, pfnGetScrollInfo): Remove.
2758         (w32_initialize): Don't dynamically load Get/SetScrollInfo.
2760 2006-06-04  David Kastrup  <dak@gnu.org>
2762         * dispnew.c: Mention `redisplay-dont-pause' in doc string of
2763         `sit-for'.
2765 2006-06-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2767         * macfns.c (x_set_icon_name): Apply 2006-06-02 change for xfns.c.
2769         * macgui.h (USE_MAC_TSM): Set default to 1 on Mac OS X.
2771         * macterm.c (tsm_document_id) [USE_MAC_TSM]: New variable.
2772         (Qtext_input, Qupdate_active_input_area, Qunicode_for_key_event)
2773         [USE_MAC_TSM]: Likewise.
2774         (syms_of_macterm) [USE_MAC_TSM]: Intern and staticpro them.
2775         (Qbefore_string) [USE_MAC_TSM]: Add extern.
2776         (do_app_resume, do_app_suspend) [USE_MAC_TSM]: Call
2777         ActivateTSMDocument/DeactivateTSMDocument.
2778         (mac_store_event_ref_as_apple_event): Call mac_post_mouse_moved_event.
2779         (mac_handle_window_event) [USE_MAC_TSM]: Handle
2780         kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
2781         (mac_handle_text_input_event) [USE_MAC_TSM]: New function.
2782         (install_window_handler) [USE_MAC_TSM]: Install it.  Register
2783         kEventWindowFocusAcquired/kEventWindowFocusRelinquish.
2784         (keycode_to_xkeysym_table): Add entry for f16.
2785         (XTread_socket) [USE_MAC_TSM]: Set/reset read_socket_inev
2786         before/after passing keystroke event to toolbox dispatcher.
2787         (init_tsm) [USE_MAC_TSM]: New function.
2788         (mac_initialize) [USE_MAC_TSM]: Call it.
2789         (Vmac_ts_active_input_overlay) [USE_MAC_TSM]: New defvar.
2791         * macterm.h (EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER): New enumerator.
2793 2006-06-02  John Paul Wallington  <jpw@gnu.org>
2795         * xfns.c (x_set_name_internal): Set icon to `text', derived from
2796         name, when frame's icon_name isn't a string rather than only when
2797         it is nil.
2799 2006-06-03  Eli Zaretskii  <eliz@gnu.org>
2801         * w32fns.c (x_set_icon_name): Don't use arg if it's not a string
2802         and not nil.
2804 2006-06-02  Chong Yidong  <cyd@stupidchicken.com>
2806         * xfns.c (x_set_icon_name): No-op if arg is non-nil and not a
2807         string.
2809 2006-06-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2811         * xdisp.c (next_element_from_composition): Set it->object to
2812         it->string if composition is coming from string.
2813         (set_cursor_from_row): Don't return 0 unless row displays a
2814         continued line.
2815         (dump_glyph): Dump composite glyph.
2817 2006-06-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2819         * gtkutil.c (menu_nav_ended): Check that menubar_widget is not NULL.
2821 2006-06-01  Richard Stallman  <rms@gnu.org>
2823         * window.c (Fsplit_window): Doc fix.
2825 2006-06-01  Micha\e,Ak\e(Bl Cadilhac  <michael.cadilhac@lrde.org>
2827         * process.c (deleted_pid_list): New variable to store the pids
2828         of deleted processes.  Declare it only if SIGCHLD is defined.
2829         (init_process): Initialize it.
2830         (syms_of_process): Staticpro it.
2831         (Fdelete_process): Add pid of the deleted process to it.  Check after
2832         the addition and before the kill if the process is already stopped,
2833         in which case it is deleted from the list and not killed.
2834         (sigchld_handler): Define it only if SIGCHLD is.  Search the process
2835         that signaled Emacs in `deleted_pid_list' before `Vprocess_alist'.
2836         Original idea by Stefan Monnier.
2838 2006-06-01  Kim F. Storm  <storm@cua.dk>
2840         * dispnew.c (sit_for): Perform redisplay even if input is pending
2841         when redisplay-dont-pause is non-nil.
2843 2006-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2845         * macterm.c (mac_handle_visibility_change): Set buf.arg to Qnil.
2846         (XTread_socket): Remove obsolete comment.
2848 2006-06-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2850         * xmenu.c (syms_of_xmenu): Make accelerate-menu an alias for
2851         menu-bar-open.
2853 2006-06-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2855         * xmenu.c (Fmenu_bar_open, syms_of_xmenu): Change menu-bar-start to
2856         menu-bar-open.
2858         * gtkutil.c (menu_nav_ended): Change x-menu-bar-start to menu-bar-open.
2860 2006-05-31  Juri Linkov  <juri@jurta.org>
2862         * minibuf.c (Vhistory_add_new_input): New variable.
2863         (read_minibuf): Use it.
2864         (syms_of_minibuf) <history-add-new-input>: New Lisp variable.
2865         (syms_of_minibuf) <history-delete-duplicates>: Doc fix.
2867 2006-05-31  Kim F. Storm  <storm@cua.dk>
2869         * process.c (select_wrapper): Add wrapper around select to work around
2870         "incomplete backtrace" bug in gdb 5.3, when emacs is stopped inside
2871         select called from wait_reading_process_output.
2873 2006-05-30  Andreas Schwab  <schwab@suse.de>
2875         * xmenu.c (Fmenu_bar_start): Return a value.
2877 2006-05-30  Richard Stallman  <rms@gnu.org>
2879         * coding.c (Ffind_operation_coding_system): Doc fix.
2881 2006-05-30  Eli Zaretskii  <eliz@gnu.org>
2883         * w32term.c (x_draw_hollow_cursor): Fix last change.
2885 2006-05-29  Kim F. Storm  <storm@cua.dk>
2887         * w32term.c (x_draw_stretch_glyph_string): Fix last change.
2889 2006-05-29  Eli Zaretskii  <eliz@gnu.org>
2891         * coding.c (Ffind_operation_coding_system): Doc fix.
2893 2006-05-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2895         * macfns.c [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility):
2896         Call mac_set_font_info_for_selection if font panel is made visible.
2898         * macterm.c (font_panel_shown_p) [USE_MAC_FONT_PANEL]: New variable.
2899         (mac_font_panel_visible_p, mac_show_hide_font_panel)
2900         [USE_MAC_FONT_PANEL]: New functions.
2901         [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Return
2902         immediately if font panel is not visible.
2904         * macterm.h (mac_font_panel_visible_p, mac_show_hide_font_panel):
2905         Add externs.
2907 2006-05-29  Dan Nicolaescu  <dann@ics.uci.edu>
2909         * search.c (matcher_overflow): Mark as NO_RETURN.
2911         * xterm.c (x_connection_closed): Likewise.
2913         * sysdep.c (croak): Likewise.
2915         * sound.c (sound_perror, alsa_sound_perror): Likewise.
2917         * lisp.h (die, nsberror): Likewise.
2919 2006-05-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2921         * sound.c (alsa_open, alsa_configure, alsa_write): Move
2922         assignment to err out of if-statement.
2924         * gtkutil.c (menu_nav_ended): New function.
2925         (create_menus): Connect menu_nav_ended to "selection-done" to fix
2926         grabs.
2928         * xmenu.c (Fmenu_bar_start): New function for USE_GTK and USE_X_TOOLKIT.
2930 2006-05-28  Dan Nicolaescu  <dann@ics.uci.edu>
2932         * charset.h (invalid_character): Mark as NO_RETURN.
2934 2006-05-29  Kenichi Handa  <handa@m17n.org>
2936         * coding.c (Ffind_operation_coding_system): Call a function by
2937         safe_call1 instead of call1.
2939 2006-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
2941         * window.c (struct saved_window): Add `dedicated'.
2942         (Fset_window_configuration, save_window_save): Save/restore the
2943         `dedicated' flag.
2945 2006-05-28  Kim F. Storm  <storm@cua.dk>
2947         * xdisp.c (set_cursor_from_row): If cursor cannot be set in row,
2948         don't update w->cursor and return 0.  Return 1 on success.
2949         (try_cursor_movement): Repeat set_cursor_from_row on successive rows
2950         until it succeeds.
2952         * dispextern.h (set_cursor_from_row): Update prototype.
2954 2006-05-28  Kim F. Storm  <storm@cua.dk>
2956         * xdisp.c (get_phys_cursor_geometry): Return computed x and y through
2957         parameters.  Adjust x and width in case cursor in on a partially
2958         visible stretch glyph on the left edge.
2959         (erase_phys_cursor): Don't erase into left fringe/margin in case
2960         previous cursor glyph is a partially visible stretch glyph on left.
2962         * dispextern.h (get_phys_cursor_geometry): Update prototype.
2964         * xterm.c (x_draw_stretch_glyph_string): Fix problems with invisible
2965         cursor and erasing cursor on partially visible stretch glyph on left.
2966         (x_draw_hollow_cursor): Compute x via get_phys_cursor_geometry.
2968         * macterm.c: Likewise.
2970         * w32term.c: Likewise.
2972 2006-05-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2974         * macselect.c (mac_handle_apple_event):
2975         Return errAEEventNotHandled if key binding is not found.
2977 2006-05-26  Eli Zaretskii  <eliz@gnu.org>
2979         * emacs.c (main) [PROFILING]: Enable also for __MINGW32__.
2980         [__MINGW32__]: MinGW-specific declaration of `etext'.
2982         * w32heap.c (etext, edata): Remove unused definitions.
2984 2006-05-26  Chong Yidong  <cyd@stupidchicken.com>
2986         * fileio.c (Fcopy_file): Delete argument MUSTBENEW.
2987         Incorporate the exclusive file-opening functionality into the behavior
2988         when OK-IF-ALREADY-EXISTS is nil.
2989         (Frename_file): Call Fcopy_file without MUSTBENEW argument.
2991 2006-05-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2993         * sound.c (alsa_configure): Move get period/buffer_size after
2994         setting hwparams.
2996 2006-05-26  Kenichi Handa  <handa@m17n.org>
2998         * coding.c (Ffind_operation_coding_system): Allow (FILENAME
2999         . BUFFER) in TARGET.
3001 2006-05-25  Chong Yidong  <cyd@stupidchicken.com>
3003         * image.c (png_load): Don't call fclose on NULL.
3005 2006-05-25  Luc Teirlinck  <teirllm@auburn.edu>
3007         * fns.c (Fyes_or_no_p):
3008         * callint.c (Fcall_interactively): Fread_from_minibuffer now takes
3009         only seven args.
3011 2006-05-25  Juri Linkov  <juri@jurta.org>
3013         * lisp.h (Fread_from_minibuffer): Decrement number of args.
3015         * minibuf.c (read_minibuf): Remove arg KEEP_ALL.  Callers changed.
3016         (Fread_from_minibuffer): Remove arg KEEP_ALL.  Callers changed.
3018         * buffer.c (mode-line-format): Fix docstring.
3020 2006-05-25  Richard Stallman  <rms@gnu.org>
3022         * emacs.c (main, Fdump_emacs): Don't test __linux or __linux__.
3024 2006-05-24  Luc Teirlinck  <teirllm@auburn.edu>
3026         * puresize.h (BASE_PURESIZE): Increase to 1210000.
3028 2006-05-24  Alan Mackenzie  <acm@muc.de>
3030         * lread.c (Vload_history): Enhance doc-string to say that the file
3031         is the absolute truename of the loaded file.
3033         * lread.c (Vafter_load_alist): doc-string: state that an element
3034         now has a regexp to match file names, not a file name as such.
3036         * lread.c (readevalloop): Call file-truename on the name for
3037         load-history, except at preloading time.
3039         * lread.c (Fload): At preloading time, preserve the extension of
3040         the filename which goes into load-history.  New var hist_file_name.
3042         * lread.c (Fload): Do eval-after-load stuff by calling the lisp
3043         function do-after-load-evaluation.
3045 2006-05-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3047         * mac.c (ae_attr_table): New variable.
3048         (syms_of_mac): Intern and staticpro its elements.
3049         (mac_aelist_to_lisp): Also convert Apple event attributes.
3050         (mac_ae_put_lisp): New function.
3051         (create_apple_event_from_event_ref) [MAC_OSX]: Use typeUTF8Text.
3053         * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor etc.
3055         * macselect.c (Qemacs_suspension_id): New variable.
3056         (syms_of_macselect): Intern and staticpro it.
3057         (struct suspended_ae_info): New struct.
3058         (deferred_apple_events, defer_apple_events)
3059         (Fmac_process_deferred_apple_events): Use it.
3060         (suspended_apple_events): New variable.
3061         (mac_handle_apple_event_1): New function.
3062         (mac_handle_apple_event): Use it.  Don't process previously
3063         suspended events.
3064         (cleanup_suspended_apple_events, get_suspension_id)
3065         (cleanup_all_suspended_apple_events): New functions.
3066         (init_apple_event_handler): Call cleanup_all_suspended_apple_events
3067         at exit.
3068         (Fmac_cleanup_expired_apple_events, Fmac_ae_set_reply_parameter)
3069         (Fmac_resume_apple_event): New defuns.
3070         (syms_of_macselect): Defsubr them.
3072         * macterm.c (fn_keycode_to_keycode_table, XTread_socket) [MAC_OSX]:
3073         Fix last change.  Don't map `fn' modifier if pressed with F1 ... F12.
3075         * macterm.h (TYPE_FILE_NAME): Change from macro to enumerator.
3076         (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator.
3077         (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise.
3078         (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
3079         (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
3080         Likewise.
3081         (typeUTF8Text, kEventParamWindowMouseLocation)
3082         [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise.
3083         (x_get_focus_frame, mac_ae_put_lisp): Add externs.
3085 2006-05-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3087         * macterm.c (fn_keycode_to_xkeysym_table, convert_fn_keycode): Remove.
3088         (fn_keycode_to_keycode_table) [MAC_OSX]: New variable.
3089         (mac_set_unicode_keystroke_event) [TARGET_API_MAC_CARBON]: New function.
3090         (XTread_socket) [TARGET_API_MAC_CARBON]: Use it.
3091         (XTread_socket) [MAC_OSX]: Try 'uchr' Unicode keyboard-layout
3092         resource to backtranslate key with modifiers.
3093         (XTread_socket): Don't set read_socket_inev around AEProcessAppleEvent.
3095 2006-05-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3097         * xterm.c: Remove declarations already in xterm.h
3099         * xterm.h: Add extern declarations for x_clear_errors,
3100         x_fully_uncatch_errors, x_catching_errors and
3101         x_alloc_lighter_color_for_widget.  Remove duplicated declarations.
3103 2006-05-21  Richard Stallman  <rms@gnu.org>
3105         * xfaces.c (best_matching_font): Abort for best == NULL
3106         before we start to use it.
3108         * buffer.c (syms_of_buffer, Fmake_overlay): Doc fixes.
3110 2006-05-20  Kim F. Storm  <storm@cua.dk>
3112         * xfaces.c (best_matching_font): Fix crash in 2006-05-17 change.
3114 2006-05-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3116         * macterm.c (convert_fn_keycode): Fix last change.
3118 2006-05-19  Eli Zaretskii  <eliz@gnu.org>
3120         * w32.c (init_environment): Perform the processing of environment
3121         variables on a copy of default variables and their values, not on
3122         the original.  Simplify code that calls ExpandEnvironmentStrings
3123         and make buf1[] and buf2[] more visible for easier debugging.
3125 2006-05-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3127         * frame.c (x_set_border_width): Remove #ifndef MAC_OS.
3129         * image.c [MAC_OS] (gif_load): Allocate Lisp string first.
3131         * macfns.c (Fx_focus_frame): Don't check dpyinfo->x_focus_frame.
3133         * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON && MAC_OSX]:
3134         Forward keyUp events to toolbox_dispatcher.
3136         * window.c (foreach_window): Check WINDOWP (FRAME_ROOT_WINDOW (f)).
3138 2006-05-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3140         * config.in: Regenerated (HAVE_ALSA).
3142         * sound.c (alsa_sound_perror, alsa_open, alsa_period_size)
3143         (alsa_configure, alsa_close, alsa_choose_format, alsa_write)
3144         (snd_error_quiet, alsa_init): New functions.
3145         (vox_init): Return 0 if unable to open device.
3146         (Fplay_sound_internal): Test for alsa first and use vox (oss) as
3147         a fallback.
3148         (struct sound_device): Add period_size.
3149         (wav_play, au_play): Use period_size if set.
3151         * Makefile.in (CFLAGS_SOUND): New flags for ALSA.
3152         (ALL_CFLAGS): Add CFLAGS_SOUND.
3154 2006-05-18  Kenichi Handa  <handa@m17n.org>
3156         * callproc.c (Fcall_process): Reject encoding arguments by
3157         ascii-incompatible coding systems (e.g. utf-16).
3159         * coding.c (Qascii_incompatible): New variable.
3160         (syms_of_coding): Setup Qascii_incompatible.
3161         (setup_coding_system): Be sure to initialize coding->common_flags.
3162         Check `ascii-incompatible' property of the coding system.
3164         * coding.h (CODING_ASCII_INCOMPATIBLE_MASK): New macro.
3166 2006-05-18  Kim F. Storm  <storm@cua.dk>
3168         * xdisp.c (display_tool_bar_line): Restore entire tool-bar
3169         geometry when backtracking in case last image doesn't fit on line.
3171 2006-05-18  MIYOSHI Masanori  <miyoshi@meadowy.org>  (tiny change)
3173         * xdisp.c (display_tool_bar_line): Don't adjust tool-bar height by
3174         more than height of one frame default line.
3176 2006-05-17  Richard Stallman  <rms@gnu.org>
3178         * xfaces.c (better_font_p): Any font beats no font.
3179         (best_matching_font): Simplify based on above change.
3181         * buffer.c (Fprevious_overlay_change, Fnext_overlay_change): Doc fixes.
3183 2006-05-16  Kim F. Storm  <storm@cua.dk>
3185         * xterm.c (handle_one_xevent): Check that f is not NULL before
3186         calling x_kill_gs_process.
3188 2006-05-14  Richard Stallman  <rms@gnu.org>
3190         * textprop.c (Fnext_single_char_property_change)
3191         (Fprevious_single_char_property_change): Don't allow returning
3192         value beyond LIMIT in any cases.
3193         (Fnext_char_property_change, Fprevious_char_property_change): Doc fix.
3195         * intervals.c (get_local_map): Abort if POSITION outside BEGV, ZV.
3197 2006-05-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3199         * xterm.c (handle_one_xevent): Check that f is not NULL before
3200         calling _XEditResCheckMessages.
3202 2006-05-14  Kim F. Storm  <storm@cua.dk>
3204         * xterm.c (handle_one_xevent): Fix crash in 2006-03-24 change.
3206 2006-05-13  Eli Zaretskii  <eliz@gnu.org>
3208         * frame.c (x_set_border_width): Fix error message to say "frame",
3209         not "window".
3211         * Makefile.in (SOME_MACHINE_LISP): Add fringe.elc.
3213 2006-05-12  Chong Yidong  <cyd@stupidchicken.com>
3215         * intervals.c (set_point_both): Fix mixup before before and after
3216         in variable names.
3218         * editfns.c (Fline_beginning_position): Inhibit point-motion hooks
3219         while setting point temporarily.
3221 2006-05-11  Richard Stallman  <rms@gnu.org>
3223         * lread.c (readevalloop): Abort if START non-nil for non-buffer input.
3225 2006-05-11  Kim F. Storm  <storm@cua.dk>
3227         * xdisp.c (redisplay_tool_bar): Handle large tool-bar-border values.
3229 2006-05-11  Kenichi Handa  <handa@m17n.org>
3231         * fileio.c (Finsert_file_contents): Fix for the case of IO error
3232         while handling replace operation.
3234 2006-05-10  Kenichi Handa  <handa@m17n.org>
3236         * xfaces.c (realize_default_face) [HAVE_X_WINDOWS]: If the font
3237         chosen for the default face was different from the frame font,
3238         adjust the frame font.
3240 2006-05-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3242         * image.c (Qduration) [MAC_OS]: Undo previous change.
3243         (syms_of_image) [MAC_OS]: Likewise.
3244         [MAC_OS] (gif_load): Emulate Graphic Control Extension block.
3246         * macfns.c (x_to_mac_color): Fix shift amount change.
3247         (mac_set_font) [USE_MAC_FONT_PANEL]: Use x_get_focus_frame.
3248         [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): Doc fix.
3250         * macselect.c (Vmac_service_selection) [MAC_OSX]: Rename from
3251         Vmac_services_selection.  All uses changed.
3252         (mac_store_service_event): Rename from mac_store_services_event in
3253         extern and calls.
3255         * macterm.c (Qservice) [MAC_OSX]: Rename from Qservices.  All uses
3256         changed.
3257         [MAC_OSX] (mac_store_service_event): Rename from
3258         mac_store_services_event.  All callers changed.
3259         [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): Add args
3260         FACE_ID and C.  All callers changed.
3261         (x_free_frame_resources) [USE_MAC_FONT_PANEL]: Call
3262         mac_set_font_info_for_selection when focus frame is destroyed.
3263         (XTread_socket): Revert to FrontNonFloatingWindow/FrontWindow.
3265         * macterm.h (mac_set_font_info_for_selection): Add 2nd and 3rd
3266         args in extern.
3268 2006-05-09  Chong Yidong  <cyd@stupidchicken.com>
3270         * keymap.c (describe_map): Avoid generating duplicate entries if
3271         the shadowed binding has the same definition.
3273 2006-05-09  Kenichi Handa  <handa@m17n.org>
3275         * keymap.c (push_key_description): Handle invalid character key.
3277 2006-05-08  Kenichi Handa  <handa@m17n.org>
3279         * callproc.c (Fcall_process): Use system_eol_type for encoding
3280         arguments if eol_type is not yet decided.
3282         * coding.h (system_eol_type): Extern it.
3284         * coding.c (setup_coding_system): For invalid coding-system, set
3285         coding->eol_type to CODING_EOL_UNDECIDED.
3286         (encode_coding): Cancel previous change.
3287         (shrink_encoding_region): Likewise.
3288         (code_convert_region1): Likewise.
3289         (code_convert_string1): Likewise.
3290         (code_convert_string_norecord): Likewise.
3292         * fileio.c (choose_write_coding_system): Use system_eol_type for
3293         encoding if eol_type is not yet decided.
3295         * process.c (setup_process_coding_systems): Use system_eol_type
3296         for encoding if eol_type is not yet decided.
3297         (read_process_output): Likewise.
3298         (send_process): Likewise.
3300 2006-05-07  Juanma Barranquero  <lekktu@gmail.com>
3302         * minibuf.c (syms_of_minibuf) <history-length>: Fix typo in doc.
3304 2006-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3306         * mac.c (Fmac_clear_font_name_table): Move defun to macfns.c.
3307         (syms_of_mac): Likewise for defsubr.
3309         * macfns.c (mac_set_font): New function.
3310         (mac_frame_parm_handlers, syms_of_macfns): Replace x_set_font with it.
3311         (mac_window) [TARGET_API_MAC_CARBON && MAC_OSX]: Specify
3312         kWindowToolbarButtonAttribute when creating window.
3313         (Fmac_clear_font_name_table): Move from macfns.c.
3314         (syms_of_macfns): Likewise for defsubr.
3315         [USE_MAC_FONT_PANEL] (Fmac_set_font_panel_visibility): New defun.
3316         (syms_of_macfns) [USE_MAC_FONT_PANEL]: Defsubr it.
3318         * macgui.h (USE_MAC_FONT_PANEL): Define to 1 if USE_ATSUI is set
3319         and build is done on Mac OS X 10.2 and later.
3321         * macselect.c (mac_do_receive_drag): Remove unused variable `index'.
3322         (mac_store_services_event): Change return type in extern.
3324         * macterm.c (XLoadQueryFont) [USE_ATSUI]: Set font->mac_fontnum to
3325         FMFontFamily value.
3326         [USE_MAC_FONT_PANEL] (mac_set_font_info_for_selection): New function.
3327         (x_new_focus_frame) [USE_MAC_FONT_PANEL]: Use it.
3328         (QCfamily, QCweight, QCslant, Qnormal, Qbold, Qitalic): Add extern.
3329         (QWindow) [MAC_OSX]: Likewise.
3330         (Qfont) [USE_MAC_FONT_PANEL]: Likewise.
3331         (Vmac_atsu_font_table) [USE_ATSUI]: New variable.
3332         (syms_of_macterm) [USE_ATSUI]: Defvar it.
3333         (Qtoolbar_switch_mode) [MAC_OSX]: New variable.
3334         (Qpanel_closed, Qselection) [USE_MAC_FONT_PANEL]: Likewise.
3335         (syms_of_macterm): Intern and staticpro them.
3336         (init_font_name_table) [USE_ATSUI]: Add data to Vmac_atsu_font_table.
3337         [TARGET_API_MAC_CARBON] (mac_store_event_ref_as_apple_event): New
3338         function.
3339         [USE_CARBON_EVENTS] (mac_handle_command_event): Use it.
3340         [MAC_OSX] (mac_store_services_event): Likewise.
3341         [USE_CARBON_EVENTS] (mac_handle_window_event) [MAC_OSX]: Handle
3342         kEventWindowToolbarSwitchMode event.
3343         (install_window_handler) [USE_CARBON_EVENTS && MAC_OSX]: Register it.
3344         [MAC_OSX] (mac_store_services_event): Change return type to OSStatus.
3345         [USE_MAC_FONT_PANEL] (mac_handle_font_event): New function.
3346         (install_window_handler) [USE_MAC_FONT_PANEL]: Install it.
3347         (XTread_socket): Select window on mouse click if x_focus_frame is NULL.
3349         * macterm.h (mac_set_font_info_for_selection): Add extern.
3351 2006-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3353         * image.c (Qduration) [MAC_OS]: New variable.
3354         (syms_of_image) [MAC_OS]: Intern and staticpro it.
3355         [MAC_OS] (gif_load): Save image extension data in img->data.lisp_val.
3356         [MAC_OSX] (image_load_quartz2d): Use cfstring_create_with_utf8_cstring
3357         instead of cfstring_create_with_string.
3359 2006-05-06  Kim F. Storm  <storm@cua.dk>
3361         * .gdbinit (xframe): Print frame name.
3362         (xlist): New command to print a list (max 10 elements).
3363         (xpr): Print lisp object of any type.
3364         (pitx): Print it->pixel_width.
3366 2006-05-05  Kenichi Handa  <handa@m17n.org>
3368         * xdisp.c (handle_composition_prop): Fix for the case of empty
3369         composition component.
3371 2006-05-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3373         * keyboard.c (make_lispy_event) [MAC_OS]: Get Apple event info
3374         from event->arg.
3376         * termhooks.h (enum event_kind) [MAC_OS]: Update comment for
3377         MAC_APPLE_EVENT.
3379         * macterm.h (mac_make_lispy_event_code): Remove extern.
3380         (mac_post_mouse_moved_event): Add extern.
3381         (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
3382         `const AEDesc *' in externs.
3383         (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]: New extern.
3385         * mac.c (mac_aelist_to_lisp, mac_aedesc_to_lisp): Change arg 1 to
3386         `const AEDesc *'.
3387         [TARGET_API_MAC_CARBON] (create_apple_event): New function.
3388         [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): Use it.
3389         Use xrealloc instead of repeated xmalloc/xfree.
3390         [TARGET_API_MAC_CARBON] (create_apple_event_from_drag_ref): New
3391         function.
3393         * macmenu.c (restore_menu_items, cleanup_popup_menu): Return a value.
3395         * macselect.c: Update copyright year.
3396         (mac_store_apple_event): Change return type to void in extern.
3397         (mac_handle_apple_event): Don't get return value from
3398         mac_store_apple_event.
3399         [TARGET_API_MAC_CARBON] (Vmac_dnd_known_types): New variable.
3400         (syms_of_macselect) [TARGET_API_MAC_CARBON]: Defvar it.
3401         [TARGET_API_MAC_CARBON] (mac_do_track_drag): Move function from
3402         macterm.c.  Use Vmac_dnd_known_types as acceptable flavors.
3403         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.  New
3404         implementation using create_apple_event_from_drag_ref.
3405         [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
3406         (mac_do_receive_dragUPP): Move variables from macterm.c.
3407         (install_drag_handler, remove_drag_handler): New functions.
3409         * macterm.c (XTread_socket) [TARGET_API_MAC_CARBON]: Try window
3410         path select also for proxy icon click.
3411         [TARGET_API_MAC_CARBON] (mac_post_mouse_moved_event): New function.
3412         [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback): Use it.
3413         (xlfdpat_create): Remove unused label `error' and trailing sentences.
3414         (mac_do_track_drag, mac_do_receive_drag): Move functions to macselect.c.
3415         (mac_do_track_dragUPP, mac_do_receive_dragUPP): Move variables to
3416         macselect.c.
3417         (install_drag_handler, remove_drag_handler): Add extern.
3418         (mac_store_apple_event): Change return type to void.  All uses changed.
3419         Create Lisp object from Apple event and store it into input event.
3420         (mac_make_lispy_event_code): Remove function.
3421         [TARGET_API_MAC_CARBON] (mac_store_drag_event): New function.
3422         (install_window_handler): Call install_drag_handler.
3423         (remove_window_handler): Call remove_drag_handler.
3425 2006-05-03  Richard Stallman  <rms@gnu.org>
3427         * sound.c (Fplay_sound_internal): Dynamically allocate
3428         current_sound_device and current_sound.
3429         (sound_cleanup): Free them.
3431         * minibuf.c (read_minibuf): Don't use read_minibuf_noninteractive
3432         when inside a keyboard macro.
3434 2006-05-02  Andreas Schwab  <schwab@suse.de>
3436         * xmenu.c (restore_menu_items): Return a value.
3438 2006-05-01  Martin Rudalics  <rudalics@gmx.at>
3440         * syntax.c (Fforward_comment): Detect generic comment at beginning of
3441         buffer when moving backwards.
3443 2006-05-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3445         * dispnew.c (update_window): Don't set changed_p when mode/header
3446         line is updated.
3448         * xdisp.c (prepare_menu_bars) [MAC_OS]: Call mac_update_title_bar.
3449         (get_glyph_face_and_encoding, get_char_face_and_encoding):
3450         Don't distinguish known faces from others.
3452         * mac.c (mac_coerce_file_name_ptr): Try typeFSRef if coercion
3453         through typeFileURL failed.
3455         * macfns.c (mac_update_title_bar): New function.
3456         [TARGET_API_MAC_CARBON] (mac_update_proxy_icon): New function.
3457         (show_hourglass, hide_hourglass) [USE_CG_DRAWING]:
3458         Call mac_prepare_for_quickdraw.
3460         * macgui.h (USE_ATSUI): Set default to 1 if MAC_OSX is defined.
3461         (USE_CG_DRAWING): Don't define if compiled on Mac OS X 10.1.
3462         (enum pcm_status): New enum.
3463         (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID)
3464         (XCharStructRow): Remove.  Now validity is represented by
3465         non-negativeness of sum of ascent and descent.
3466         (struct MacFontStruct): Change type of member `rows'.
3467         (struct _XGC) [USE_CG_DRAWING]: Add member `clip_rects'.
3469         * macterm.c (mac_draw_line, mac_draw_line_to_pixmap):
3470         Adjust endpoints of strictly horizontal/vertical lines.
3471         (mac_set_clip_rectangles) [USE_CG_DRAWING]: Set clip_rects.
3472         (pcm_init, pcm_get_status): New functions.
3473         (x_per_char_metric, XLoadQueryFont): Use them instead of
3474         XCharStructRow and related macros.
3475         (x_draw_relief_rect): Don't adjust arguments of mac_draw_line.
3476         (x_free_frame_resources) [TARGET_API_MAC_CARBON]: Free FRAME_FILE_NAME.
3477         (XTread_socket) [TARGET_API_MAC_CARBON]: Handle proxy icon drag
3478         and window path pop-up menu on title bar.
3479         (mac_use_core_graphics) [USE_CG_DRAWING]: Set default to 1.
3481         * macterm.h (mac_update_title_bar): Add extern.
3482         (struct mac_output) [TARGET_API_MAC_CARBON]: New member `file_name'.
3483         (FRAME_FILE_NAME): New macro.
3485         * unexmacosx.c (unexec): Error if trying unexec from dumped executable.
3487 2006-04-30  Richard Stallman  <rms@gnu.org>
3489         * keymap.c (Fdefine_key): Improve error message
3490         when KEY begins with a non-prefix key.
3492 2006-04-30  Martin Rudalics  <rudalics@gmx.at>
3494         * syntax.c (Fforward_comment): Don't forget to break out of the loop
3495         when we skipped backward over a generic comment.
3497 2006-04-27  Nick Roberts  <nickrob@snap.net.nz>
3499         * .gdbinit (pp1, pv1): Only print value as expression is now
3500         printed out by gud-print.
3501         (pv1): Correct doc string.
3503 2006-04-26  Stefan Monnier  <monnier@iro.umontreal.ca>
3505         * keymap.c (store_in_keymap): Change `def' arg to not be `register'.
3506         Seems to trigger a bug in gcc-amd64 4.0.2 20051125 (Red Hat 4.0.2-8):
3507         keymap.c:895: error: address of register variable `def' requested.
3509 2006-04-26  Jason Rumney  <jasonr@gnu.org>
3511         * w32term.c (construct_mouse_wheel): Handle negative coordinates.
3513         * w32fns.c (w32_wnd_proc) <WM_LBUTTONDOWN, WM_RBUTTONDOWN>:
3514         <WM_LBUTTONUP, WM_RBUTTONUP>: Call signal_user_input in the cases
3515         where we preempt mouse_button_timer.
3517 2006-04-25  Miles Bader  <miles@gnu.org>
3519         * editfns.c (Ffield_beginning, find_field): Undo change of 2006-04-23.
3521 2006-04-24  Stefan Monnier  <monnier@iro.umontreal.ca>
3523         * process.h: Include headers for pid_t.
3525 2006-04-24  Kim F. Storm  <storm@cua.dk>
3527         * xdisp.c (fill_stretch_glyph_string): Set s->nchars = 1 for code which
3528         does last_glyph=s->first_glyph+s->nchars-1, e.g. if stretch has relief.
3529         (produce_stretch_glyph): Assume that face box height and width is
3530         already included in stretch glyph size so caller doesn't have to
3531         consider the extra space otherwise added (fixes problem in ses.el).
3533         * frame.c (x_set_font): Clear f->n_tool_bar_rows and current frame
3534         matrices to force recalculation of tool-bar height after font change.
3536         * xdisp.c (tool_bar_lines_needed): New local `temp_row' for clarity.
3537         Clear it when done, so we don't accidentally draw a second copy of
3538         the tool-bar after resetting f->n_tool_bar_rows.
3539         (redisplay_tool_bar): Update tool-bar-lines frame parameter whenever
3540         we recalculate f->n_tool_bar_rows.
3542 2006-04-23  Lars Hansen  <larsh@soem.dk>
3544         * editfns.c (find_field): Fix comment.
3545         (Ffield_beginning): Fix bug when POS is at field beginning.
3547 2006-04-22  Eli Zaretskii  <eliz@gnu.org>
3549         * puresize.h (BASE_PURESIZE): Increase to 1205000.
3551 2006-04-21  Kim F. Storm  <storm@cua.dk>
3553         * xdisp.c (redisplay_window): Fix last change.  Don't recenter if
3554         window start is at BEGV.
3556         * dispextern.h (struct image): New member `corners'.
3557         (TOP_CORNER, LEFT_CORNER, BOT_CORNER, RIGHT_CORNER): New macros.
3559         * image.c (four_corners_best): New arg CORNERS specifies what pixels
3560         to look at in case image has margin.
3561         (x_create_bitmap_mask): Pass NULL for CORNERS to four_corners_best.
3562         (image_background, image_background_transparent)
3563         (x_build_heuristic_mask): Pass img->corners to four_corners_best.
3564         (gif_load): Set img->corners according to image's margin spec.
3565         Use img->corners values directly where applicable.
3566         Save image extension data in img->data.lisp_val.
3567         (gif_clear_image): New function to free img->data.lisp_val.
3568         (gif_type): Use it instead of generic x_clear_image.
3569         (Fimage_extension_data): New defun.
3570         (syms_of_image): Defsubr it.
3572 2006-04-21  John Sullivan  <john@wjsullivan.net>  (tiny change)
3574         * window.c (Fdisplay_buffer): Doc fix.
3576 2006-04-21  Eli Zaretskii  <eliz@gnu.org>
3578         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Increase to 25000.
3580 2006-04-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3582         * image.c [MAC_OS] (xpm_load_image): Fill in background field
3583         while we have ximg handy.
3585         * macmenu.c (restore_menu_items, save_menu_items): New functions
3586         from xmenu.c.
3587         (set_frame_menubar, digest_single_submenu): Apply 2006-04-18
3588         changes for xmenu.c.
3590         * macterm.c (x_per_char_metric): Return NULL if glyph width is 0.
3591         (add_mac_font_name): New function.
3592         (init_font_name_table): Use it.  Adopt the first found font from
3593         those having the same family name.
3595 2006-04-21  Nick Roberts  <nickrob@snap.net.nz>
3597         * xdisp.c (note_mouse_highlight): Use build_string.
3599 2006-04-20  Lars Hansen  <larsh@soem.dk>
3601         * textprop.c (Fremove_list_of_text_properties):
3602         Ensure modify_region is called only when buffer is modified and that
3603         signal_after_change is allways called in that case.
3605         * print.c (PRINTFINISH): Call signal_after_change.
3607 2006-04-20  Kim F. Storm  <storm@cua.dk>
3609         * xdisp.c (redisplay_window): Fix last change.
3611         * xdisp.c (redisplay_window): If current window start is not at the
3612         beginning of a line, select a new window start if buffer is modified
3613         and window start is in the modified region, but the first change is
3614         before window start.
3616 2006-04-18  Richard Stallman  <rms@gnu.org>
3618         * xmenu.c (restore_menu_items, save_menu_items): New fns.
3619         (set_frame_menubar): Use save_menu_items.  Save updated vector in
3620         the frame before unwinding it.  Don't use unuse_menu_items.
3621         Don't use discard_menu_items.
3622         (digest_single_submenu): Abort if an item is not in a pane.
3623         (init_menu_items): Put the error check at the top.
3625         * keymap.c (describe_map): Make "shadowed" warning more verbose.
3627         * window.c (adjust_window_trailing_edge): Correctly distinguish
3628         series vs parallel cases, even when window has no parent.
3630         * abbrev.c (record_symbol): New function.
3631         (Finsert_abbrev_table_description): Sort the abbrevs alphabetically.
3633 2006-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3635         * image.c (x_create_bitmap_from_data) [MAC_OS]: Don't check return
3636         value of xmalloc.
3638         * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
3639         (create_apple_event_from_event_ref, xrm_get_preference_database)
3640         (cfstring_create_normalized): Don't check return value of xmalloc.
3642         * macselect.c (get_scrap_target_type_list, defer_apple_events)
3643         (copy_scrap_flavor_data, mac_handle_service_event): Don't check
3644         return value of xmalloc/xrealloc.
3646         * macterm.c (XCreateGC, x_per_char_metric, xlfdpat_create)
3647         (init_font_name_table, init_font_name_table, mac_do_list_fonts)
3648         (XLoadQueryFont, mac_store_apple_event): Don't check return value
3649         of xmalloc.
3651 2006-04-17  Kim F. Storm  <storm@cua.dk>
3653         * window.c (coordinates_in_window): On the vertical border,
3654         calculate the row number measured from the top of the window, not
3655         the top of the frame.
3656         (window_loop): Test w->dedicated with !NILP instead of EQ Qt.
3657         (window_scroll_pixel_based): Fix off-by-one bug in 2002-12-23 change.
3659 2006-04-16  Eli Zaretskii  <eliz@gnu.org>
3661         * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Reduce to 24000.
3663 2006-04-16  Romain Francoise  <romain@orebokech.com>
3665         * puresize.h (BASE_PURESIZE): Decrement back to 1200000.
3667 2006-04-16  Andreas Schwab  <schwab@suse.de>
3669         * puresize.h (PURESIZE_RATIO): Reduce to 10/6.
3671 2006-04-15  Romain Francoise  <romain@orebokech.com>
3673         * puresize.h (BASE_PURESIZE): Increment to 1210000.
3675 2006-04-13  Micha\e,Ak\e(Bl Cadilhac  <michael.cadilhac@lrde.org>
3677         * print.c (Fprin1_to_string): Mention in the `doc' that the
3678         behavior is modified by `print-level' and `print-length'.
3680 2006-04-13  Kenichi Handa  <handa@m17n.org>
3682         * coding.c (setup_coding_system): If eol-type is not yet decided
3683         and system_eol_type is not LF, set CODING_REQUIRE_ENCODING_MASK.
3684         If coding_system is nil, return 0.
3685         (code_convert_region1): Even if coding_system is nil, don't skip
3686         conversion if system_eol_type is not LF.
3687         (code_convert_string1): Likewise.
3688         (code_convert_string_norecord): Likewise.
3690 2006-04-13  Kenichi Handa  <handa@m17n.org>
3692         * coding.c (setup_coding_system): Fix previous change.
3693         (encode_coding): If eol_type is not yet decided, use system_eol_type.
3694         (shrink_encoding_region): If eol_type is not yet decided and
3695         system_eol_type is not LF, don't shrink.
3697 2006-04-13  Nick Roberts  <nickrob@snap.net.nz>
3699         * xdisp.c (note_mouse_highlight): Add help echo for dragging vertical
3700         line.
3702 2006-04-12  Richard Stallman  <rms@gnu.org>
3704         * keyboard.c (read_key_sequence): Explicitly avoid keybuf[-1].
3706         * process.c (conv_lisp_to_sockaddr): If FAMILY unknown, just return.
3707         (Fprocess_send_eof): Abort if fail to open null device.
3709 2006-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3711         * fns.c [HAVE_MENUS && MAC_OS]: Include macterm.h.
3713         * image.c [MAC_OS] (xpm_load_image): Add parentheses around
3714         assignment used as truth value.  Add explicit braces to avoid
3715         ambiguous `else'.
3716         [MAC_OS] (gif_load): Remove unused variable `gcpro1'.
3718         * lisp.h (syms_of_fontset, Fset_fontset_font): Put extern and
3719         EXFUN in #ifdef HAVE_WINDOW_SYSTEM.
3720         (syms_of_xfns, syms_of_xsmfns, syms_of_xselect, syms_of_xterm):
3721         Put externs in #ifdef HAVE_X_WINDOWS.
3722         (syms_of_macfns, syms_of_macselect, syms_of_macterm)
3723         (syms_of_macmenu, syms_of_mac) [MAC_OS]: Add externs.
3724         (init_mac_osx_environment) [MAC_OSX]: Add extern.
3726         * mac.c (init_process): Remove undef.
3727         (select) [MAC_OSX]: Undefine before including sysselect.h.
3728         (posix_pathname_to_fsspec, fsspec_to_posix_pathname) [MAC_OSX]:
3729         Remove functions and prototypes.
3730         (parse_value): Add parentheses around + inside shift.
3731         (path_from_vol_dir_name): Make static.
3732         (get_temp_dir_name): Remove unused variables `cpb' and `dir_name'.
3733         [!MAC_OSX] (get_path_to_system_folder): Likewise.
3734         (Fmac_get_file_creator, Fmac_get_file_type): Remove unused
3735         variable `cCode'.
3736         (Fmac_coerce_ae_data): Remove unused variables `fref' and `fs'.
3737         (Fmac_get_preference): Add explicit braces to avoid ambiguous `else'.
3739         * macfns.c (x_to_mac_color): Remove unused variable `tail'.
3740         (x_set_mouse_color): Remove unused variable `dpy'.
3741         (Fx_create_frame): Remove unused variable `x_frame_count'.
3742         (Fx_server_version): Add explicit braces to avoid ambiguous `else'.
3743         (x_sync): Move from macterm.c.
3744         (Fx_file_dialog): Remove unused variable `default_filter_index'.
3746         * macmenu.c (min_menu_id): Make element type explicit.
3748         * macselect.c (get_flavor_type_from_symbol): Remove unused
3749         variable `val'.
3750         (get_scrap_private_timestamp, x_get_foreign_selection)
3751         (copy_scrap_flavor_data): Add explicit braces to avoid ambiguous `else'.
3752         (Fmac_process_deferred_apple_events): Remove unused variables
3753         `keyword', `reply', `apple_event', `count', and `err'.
3755         * macterm.c: Don't include gnu.h.
3756         (x_io_error_quitter, x_draw_image_foreground_1): Remove prototypes.
3757         (x_sync): Move to macfns.c.
3758         [USE_CG_DRAWING] (mac_define_fringe_bitmap): Remove unused
3759         variable `mask_bits'.
3760         (mac_compute_glyph_string_overhangs): Avoid ambiguous `else'.
3761         (x_draw_image_glyph_string): Remove unused variable `pixmap'.
3762         (x_mac_to_emacs_modifiers): Remove function.
3763         (XTset_vertical_scroll_bar, mac_handle_visibility_change)
3764         (x_make_frame_visible, xlfdpat_create, mac_handle_command_event):
3765         Add explicit braces to avoid ambiguous `else'.
3766         (x_make_frame_visible): Remove unused variables `type',
3767         `original_top', and `original_left'.
3768         (mac_do_list_fonts, XTread_socket): Add parentheses around && within ||.
3769         (x_load_font): Remove unused variables `full_name', and `value'.
3770         (do_get_menus, do_init_managers, do_check_ram_size) [!MAC_OS8]:
3771         Remove functions.
3772         (do_zoom_window): Reorganize variables with respect to conditionals.
3773         (init_command_handler): Remove unused variable `err'.
3774         [MAC_OSX] (mac_check_bundle): Remove unused variable `child'.
3776         * macterm.h (x_set_mouse_position, x_set_mouse_pixel_position)
3777         (x_make_frame_invisible, x_iconify_frame, x_free_frame_resources)
3778         (x_destroy_window, x_wm_set_size_hint, x_delete_display, XFreeGC)
3779         (do_menu_choice, have_menus_p, x_real_positions)
3780         (x_set_menu_bar_lines, x_pixel_width, x_pixel_height, x_char_width)
3781         (x_char_height, x_sync, x_set_tool_bar_lines, x_activate_menubar)
3782         (free_frame_menubar): Add externs.
3784         * unexmacosx.c: Include config.h before using HAVE_MALLOC_MALLOC_H.
3785         (malloc, realloc, free): Add undefs.
3786         (read_load_commands): Remove unused variable `n' and `j'.
3787         (copy_data_segment): Remove unused variable `r'.
3789         * xdisp.c (get_glyph_string_clip_rects): Add parentheses around &&
3790         within ||.  Add explicit braces to avoid ambiguous `else'.
3791         (dump_glyph_row): Remove label for `inverse_p' from legend.
3793         * xfaces.c (Finternal_merge_in_global_face, try_font_list):
3794         Add explicit braces to avoid ambiguous `else'.
3796 2006-04-11  Micha\e,Ak\e(Bl Cadilhac  <michael.cadilhac@lrde.org>
3798         * dispnew.c (init_display): Don't init X display if the user asked
3799         for a non-X display.
3801 2006-04-12  Kenichi Handa  <handa@m17n.org>
3803         * coding.c (setup_coding_system): Use system_eol_type for default
3804         coding->eol_type.
3806 2006-04-11  Dan Nicolaescu  <dann@ics.uci.edu>
3808         * lisp.h (wrong_type_argument): Mark as NO_RETURN.
3810         * data.c (wrong_type_argument): Try to avoid compiler warnings due
3811         to the fact the function is now marked as NO_RETURN.
3813 2006-04-10  Eli Zaretskii  <eliz@gnu.org>
3815         * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef.
3817 2006-04-10  Romain Francoise  <romain@orebokech.com>
3819         * xrdb.c (gethomedir): Use xstrdup.
3821 2006-04-10  Andreas Schwab  <schwab@suse.de>
3823         * xrdb.c (gethomedir): Make sure to always return a pointer that
3824         can be passed to free.
3826 2006-04-09  Richard Stallman  <rms@gnu.org>
3828         * lisp.h (Fkill_emacs): Undo previous change.
3830 2006-04-08  Richard Stallman  <rms@gnu.org>
3832         * search.c (boyer_moore): Test ch >= 0400, not >.
3834 2006-04-09  Dan Nicolaescu  <dann@ics.uci.edu>
3836         * puresize.h (pure_write_error): Mark as NO_RETURN.
3838         * lisp.h (args_out_of_range, args_out_of_range_3)
3840 2006-04-08  Eli Zaretskii  <eliz@gnu.org>
3842         * w32fns.c (w32_wnd_proc) <WM_MOUSEMOVE>: Ignore mouse movements
3843         if a menu is active on this frame.
3845 2006-04-08  Dan Nicolaescu  <dann@ics.uci.edu>
3847         * lisp.h (report_file_error): Mark as NO_RETURN.
3849 2006-04-08  Eli Zaretskii  <eliz@gnu.org>
3851         * alloc.c [STDC_HEADERS]: Include stddef.h.
3853         * lisp.h (PSEUDOVECSIZE): Fix last change.
3855 2006-04-08  Stefan Monnier  <monnier@iro.umontreal.ca>
3857         * process.h (struct Lisp_Process): Replace Lisp_Objects `pid',
3858         `raw_status_high', and `raw_status_low' with plain integers, and move
3859         them to the end of the structure.
3861         * alloc.c (allocate_process): Use PSEUDOVECSIZE to initialize the
3862         pseudovector's size field so only the Lisp_Object fields get GC'd.
3864         * process.c (update_status, make_process, Fdelete_process)
3865         (Fprocess_status, list_processes_1, start_process_unwind)
3866         (create_process, Fmake_network_process, server_accept_connection)
3867         (wait_reading_process_output, send_process, Fprocess_running_child_p)
3868         (process_send_signal, proc_encode_coding_system, Fprocess_send_eof)
3869         (sigchld_handler, status_notify): Adjust to new non-Lisp fields for
3870         `pid' and `raw_status'.
3871         (Fprocess_id, Fsignal_process): Same, and additionally use floats when
3872         representing PIDs that are larger than most-positive-fixnum.
3874         * keymap.c (describe_map): Only use XINT if we checked INTEGERP.
3876         * lisp.h (OFFSETOF, PSEUDOVECSIZE): New macros.
3878 2006-04-08  Eli Zaretskii  <eliz@gnu.org>
3880         * w32fns.c (Fx_show_tip): Add 3 to the 5th arg of SetWindowPos.
3882 2006-04-03  Paul Eggert  <eggert@cs.ucla.edu>
3884         * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): New macro, identical to
3885         ../lib-src/b2m.c and ../lib-src/editfns.c.
3886         (Fcurrent_time_string): Use it.
3887         Document that the year might not consume 4 columns if it's outside
3888         the range 1000-9999.
3889         Check for asctime failure.
3890         Don't assume that the output string length is always exactly 24.
3892 2006-04-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3894         * macterm.c (XTread_socket): Initialize variable `f' before its use.
3896 2006-04-03  Kenichi Handa  <handa@m17n.org>
3898         * image.c: Include "charset.h" and "coding.h".
3899         (x_find_image_file): Return an encoded file name.
3901 2006-04-01  Eli Zaretskii  <eliz@gnu.org>
3903         * configure: Regenerated.
3905 2006-03-31  Kenichi Handa  <handa@m17n.org>
3907         * xfns.c (xg_set_icon): Delete superfluous UNGCPRO.
3909 2006-03-30  Dan Nicolaescu  <dann@ics.uci.edu>
3911         * xdisp.c (syms_of_xdisp): Fix variable name.
3913 2006-03-30  Kenichi Handa  <handa@m17n.org>
3915         * xterm.c (x_term_init): Delete superfluous UNGCPRO.
3917 2006-03-29  Juanma Barranquero  <lekktu@gmail.com>
3919         * keyboard.c (process_tool_bar_item): Reorder dummy args.
3921 2006-03-29  Stefan Monnier  <monnier@iro.umontreal.ca>
3923         * keyboard.c (tool_bar_items): Use map_keymap.
3924         (process_tool_bar_item): Add dummy args to fit the required interface.
3926 2006-03-25  Eli Zaretskii  <eliz@gnu.org>
3928         * .gdbinit (pr, pp, pp1, pv, pv1): Force print_output_debug_flag
3929         to zero before calling debug_print or safe_debug_print.
3931         * print.c (print_output_debug_flag): New global variable.
3932         (Fexternal_debugging_output) [WINDOWSNT]: Don't call
3933         OutputDebugString if print_output_debug_flag is zero.
3935 2006-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3937         * editfns.c (TM_YEAR_BASE): Move up, so the changes below can use it.
3938         (Fdecode_time, Fencode_time): Use TM_YEAR_BASE instead of 1900.
3939         (Fdecode_time): Cast tm_year to EMACS_INT.
3940         (Fcurrent_time_string): Report an invalid time specification if
3941         the argument is invalid.  Also, check for out-of-range time stamps.
3943 2006-03-24  Kim F. Storm  <storm@cua.dk>
3945         * xterm.c (handle_one_xevent):
3946         * w32term.c (w32_read_socket):
3947         * macterm.c (XTread_socket): Don't let key-press clear mouse face
3948         on in toolbar window if mouse-highlight is an integer.
3950         * fns.c (sxhash_list): Include last non-nil CDR in hash.
3952 2006-03-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3954         * macmenu.c (enum mac_menu_kind): New enum.
3955         (min_menu_id): New variable.
3956         (POPUP_SUBMENU_ID, MIN_POPUP_SUBMENU_ID, MIN_MENU_ID)
3957         (MIN_SUBMENU_ID): Remove defines.  All uses are replaced with
3958         min_menu_id and enumerators in enum mac_menu_kind.
3959         (fill_menu, dispose_menus, install_menu_quit_handler): New arg KIND.
3960         All uses changed.  Add range check for menu ID.
3961         (fill_menubar): Add range check for menu ID.
3962         [HAVE_CANCELMENUTRACKING] (menu_quit_handler): Check error code of
3963         GetEventParameter.
3964         (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler
3965         for each menu kind.
3967 2006-03-22  Kim F. Storm  <storm@cua.dk>
3969         * xdisp.c: Undo 2006-03-21 change.
3971         * term.c: Define aliases for append_glyph and produce_stretch_glyph
3972         when `static' is defined to avoid name clash with those in xdisp.c.
3974         * process.c (Faccept_process_output): Fix to comply with lisp
3975         reference.  Change arg "timeout" to "seconds" and allow both
3976         integer and float value.  Change arg "timeout-msec" to "millisec"
3977         and interpret" as milliseconds rather than microseconds.  Fix doc
3978         string accordingly.
3980 2006-03-21  Ken Raeburn  <raeburn@raeburn.org>
3982         * xdisp.c (store_next_glyph): Rename from append_glyph.
3983         (generate_stretch_glyph): Rename from produce_stretch_glyph.
3984         All callers changed accordingly.
3986 2006-03-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3988         * xterm.c: x_session_initialized new variable.
3989         (x_term_init): Use x_session_initialized to check if
3990         x_session_initialize should be called.
3991         (x_initialize): Initialize x_session_initialized.
3993 2006-03-21  Kim F. Storm  <storm@cua.dk>
3995         * fringe.c (draw_fringe_bitmap): Don't calculate default overlay arrow
3996         bitmap here, but ...
3997         (update_window_fringes): ... here, so we can test if it has changed.
3999 2006-03-20  Andreas Schwab  <schwab@suse.de>
4001         * dispnew.c (init_display): Check DISPLAY here.
4003         * emacs.c (main): Don't check here.
4005         * xterm.c (x_display_ok): Don't use DISPLAY env var.
4007 2006-03-20  Stefan Monnier  <monnier@iro.umontreal.ca>
4009         * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object
4010         mixup (YAILOM).
4012 2006-03-20  Eli Zaretskii  <eliz@gnu.org>
4014         * emacs.c (main): Fix last change.
4016 2006-03-20  Kenichi Handa  <handa@m17n.org>
4018         * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it.
4020         * keymap.c (map_keymap): Set tail to Qnil before GCPRO it.
4022         * xfns.c (xg_set_icon): Remove unnecessary GCPRO.
4024         * xterm.c (x_term_init): Remove unnecessary GCPRO.
4026 2006-03-19  Kim F. Storm  <storm@cua.dk>
4028         * xdisp.c (set_cursor_from_row): Fix cursor property on overlay string,
4029         so it doesn't associate overlay string with following glyph by default.
4030         Allow integer property value to specify explicit number of buffer
4031         positions associate with overlay string.
4033 2006-03-18  Chong Yidong  <cyd@stupidchicken.com>
4035         * xterm.c (x_display_ok): Fix minor bug and compilation warnings.
4037 2006-03-18  Nozomu Ando  <nand@mac.com>
4039         * m/pmax.h (BROKEN_NOCOMBRELOC) [__NetBSD__]: Define.
4040         (LIB_STANDARD, START_FILES) [__NetBSD__]: Don't define.
4041         (START_FILES, RUN_TIME_REMAP, UNEXEC) [__NetBSD__, __OpenBSD__]:
4042         Don't redefine.
4044         * m/mips.h: Don't use unexmips on NetBSD.
4045         (LIBS_MACHINE): Move definition lower, so it doesn't use
4046         LD_SWITCH_MACHINE, START_FILES, LIB_STANDARD, LIBS_TERMCAP,
4047         C_SWITCH_MACHINE, and C_DEBUG_SWITCH.
4049         * unexelf.c [BROKEN_NOCOMBRELOC]: Include assert.h.
4050         (unexec) [BROKEN_NOCOMBRELOC]: Handle platforms whose nocombreloc
4051         option is broken (e.g., MIPS/NetBSD).
4053 2006-03-18  Craig McDaniel  <craigmcd@gmail.com>  (tiny change)
4055         * sheap.c (STATIC_HEAP_SIZE): Enlarge STATIC_HEAP_SIZE to 12MB.
4056         Remove the HAVE_X_WINDOWS conditional.
4058 2006-03-18  Vivek Dasmohapatra  <vivek@etla.org>  (tiny change)
4060         * emacs.c (main): If user asks for a display that is unavailable,
4061         simulate -nw.
4063         * xterm.c (x_display_ok): New function.
4065         * xterm.h: Add prototype for x_display_ok.
4067 2006-03-18  Eli Zaretskii  <eliz@gnu.org>
4069         * w32fns.c (Fw32_select_font): Doc fix.
4071 2006-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4073         * image.c [MAC_OS] (XPutPixel, XGetPixel)
4074         [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized
4075         version when depth is 32.
4076         (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]:
4077         New function.
4078         (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it.
4079         (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage.
4081         * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]:
4082         Create GWorld in ARGB pixel format.
4083         (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]:
4084         Remove functions.
4085         (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image
4086         instead of mac_copy_area/mac_copy_area_with_mask.
4088 2006-03-15  Kim F. Storm  <storm@cua.dk>
4090         * xdisp.c (extend_face_to_end_of_line): Always add space glyph to
4091         empty row.  Fixes memory corruption revealed by 2006-03-02 change.
4092         (display_tool_bar_line): Skip empty tool-bar line if HEIGHT < 0.
4093         (tool_bar_lines_needed): Fix tool-bar display in case the tool-bar
4094         width is exactly the same as the window width.  Don't count a final
4095         empty tool-bar line (pass HEIGHT = -1 to display_tool_bar_line).
4097 2006-03-15  Juanma Barranquero  <lekktu@gmail.com>
4099         * fringe.c (w32_init_fringe, w32_reset_fringes): Revert to being
4100         conditional on HAVE_NTGUI, not WINDOWS_NT.
4102 2006-03-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4104         * dispextern.h (mac_init_fringe) [MAC_OS]: Add prototype.
4106         * fringe.c (mac_init_fringe) [MAC_OS]: New function.
4108         * macterm.c (mac_initialize) [USE_CG_DRAWING]: Call mac_init_fringe.
4109         (max_fringe_bmp, fringe_bmp) [USE_CG_DRAWING]: New variables.
4110         (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap)
4111         (mac_draw_cg_image) [USE_CG_DRAWING]: New functions.
4112         (mac_draw_bitmap) [USE_CG_DRAWING]: Remove function.
4113         (x_draw_fringe_bitmap) [USE_CG_DRAWING]: Use mac_draw_cg_image
4114         instead of mac_draw_bitmap.
4115         (x_redisplay_interface) [USE_CG_DRAWING]: Set handlers for
4116         define_fringe_bitmap and destroy_fringe_bitmap.
4118 2006-03-14  Chong Yidong  <cyd@stupidchicken.com>
4120         * xterm.c (x_uncatch_errors): Block input for entire function.
4122 2006-03-12  Jason Rumney  <jasonr@gnu.org>
4124         * w32fns.c (Fx_create_frame): Remove call to
4125         Qface_set_after_frame_default (from xfns.c 2003-05-26).
4127         * w32menu.c (Fx_popup_menu): Call w32_free_menu_strings when
4128         finished with the menu.
4130         * w32term.c: Sync 2005-10-24 xterm.c changes.
4131         (last_mouse_glyph_frame): New var.
4132         (note_mouse_movement): Say mouse moved if current frame differs
4133         from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
4134         (w32_mouse_position): Set last_mouse_glyph_frame.
4135         Remove OLD_REDISPLAY_CODE block.
4137 2006-03-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4139         * macgui.h [USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
4141         * macterm.h (struct mac_output) [USE_CG_DRAWING]: New member cg_context.
4142         (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Add prototype.
4144         * mac.c (sys_select) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4146         * macfns.c (x_create_tip_frame): Apply 2006-03-11 change for xfns.c.
4148         * macterm.c (mac_draw_rectangle, x_draw_glyph_string_foreground)
4149         (x_draw_composite_glyph_string_foreground)
4150         (x_draw_image_foreground): Undo previous changes.
4151         (x_draw_hollow_cursor): Likewise.  Subtract 1 from the last
4152         argument of mac_draw_rectangle.
4153         (CG_SET_FILL_COLOR, CG_SET_STROKE_COLOR): New macros.
4154         (mac_draw_string_common, mac_draw_image_string_cg): Use them.
4155         (FRAME_CG_CONTEXT) [USE_CG_DRAWING]: New macro.
4156         (mac_begin_cg_clip, mac_end_cg_clip, mac_prepare_for_quickdraw)
4157         [USE_CG_DRAWING]: New functions.
4158         (mac_draw_line, mac_erase_rectangle, mac_clear_window)
4159         (mac_fill_rectangle, mac_draw_rectangle, mac_draw_string_common)
4160         (mac_draw_image_string_cg) [USE_CG_DRAWING]: Add Quartz 2D drawing part.
4161         (mac_draw_bitmap, mac_invert_rectangle, mac_draw_string_common)
4162         (mac_copy_area, mac_scroll_area, x_scroll_bar_create)
4163         (x_scroll_bar_remove, XTset_vertical_scroll_bar, x_set_window_size)
4164         (XTread_socket) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
4166 2006-03-12  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
4168         * xfns.c (x_icon): Disable redundant call to `x_wm_set_window_state'.
4170 2006-03-11  Jason Rumney  <jasonr@gnu.org>
4172         * w32fns.c (signal_user_input): New function.
4173         (post_character_message): Use it for keyboard input.
4174         (w32_msg_pump): Use it for mouse input.
4176 2006-03-11  Luc Teirlinck  <teirllm@auburn.edu>
4178         * window.c: Rename preserve_y to window_scroll_pixel_based_preserve_y.
4179         (window_scroll_pixel_based, syms_of_window): Adapt to above change.
4181 2006-03-11  Eli Zaretskii  <eliz@gnu.org>
4183         * w32fns.c (w32_wnd_proc): Ignore middle and extra button events
4184         if a menu is already active (the menubar_active flag is on).
4186 2006-03-11  David Ponce  <david@dponce.com>
4188         * xfns.c (x_create_tip_frame): Preserve received parms by copying them.
4190 2006-03-11  Eli Zaretskii  <eliz@gnu.org>
4192         * w32term.c: Add x_fully_uncatch_errors and x_catching_errors to
4193         the list of unused display error handling functions.
4195         * eval.c (unwind_to_catch): Call x_fully_uncatch_errors only if
4196         HAVE_X_WINDOWS.
4197         (internal_condition_case, internal_condition_case_1)
4198         (internal_condition_case_2): Call x_catching_errors only if
4199         HAVE_X_WINDOWS.
4201         * vm-limit.c [HAVE_GETRLIMIT]: Don't define unconditionally.
4202         Don't include sys/resource.h unless defined.
4204 2006-03-11  Richard Stallman  <rms@gnu.org>
4206         * keymap.c (describe_map): Shorten string to indicate shadowed binding.
4208         * vm-limit.c (get_lim_data, lim_data, data_space_start):
4209         Move from mem-limits.h.
4210         (enum warnlevel): New data type.
4211         (check_memory_limits): Rewrite the logic about warnings.
4212         Use standard `struct rlimit'.  Check return values for nonsense.
4213         (memory_warnings): Always clear lim_data.
4215         * mem-limits.h (get_lim_data, lim_data, data_space_start):
4216         Move to vm-limit.c.
4218         * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions.
4220         * eval.c (unwind_to_catch): Call x_fully_uncatch_errors.
4221         (internal_condition_case_1, internal_condition_case_2):
4222         Abort if within unclosed x_catch_errors.
4224 2006-03-11  Romain Francoise  <romain@orebokech.com>
4226         * process.c (Vprocess_adaptive_read_buffering): Doc fix.
4228 2006-03-11  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
4230         * lisp.h: Remove duplicate prototypes.  Make the prototype of
4231         getloadavg be conditioned on HAVE_GETLOADAVG being undefined.
4233 2006-03-11  Eli Zaretskii  <eliz@gnu.org>
4235         * xterm.c (x_draw_hollow_cursor): Subtract 1 from the last
4236         argument of XDrawRectangle.
4238         * xdisp.c (get_phys_cursor_geometry): Don't decrease height by 1.
4240         * macterm.c (mac_draw_rectangle): Don't add 1 to width and height.
4241         (x_draw_glyph_string_foreground)
4242         (x_draw_composite_glyph_string_foreground)
4243         (x_draw_image_foreground): Don't subtract 1 from width and height
4244         arguments to mac_draw_rectangle.
4245         (x_draw_hollow_cursor): Add 1 to w->phys_cursor_width.
4247 2006-03-10  Kim F. Storm  <storm@cua.dk>
4249         * alloc.c (USE_POSIX_MEMALIGN): Fix last change.
4251 2006-03-09  Stefan Monnier  <monnier@iro.umontreal.ca>
4253         * alloc.c (USE_POSIX_MEMALIGN): New macro.
4254         (ABLOCKS_BASE, lisp_align_malloc, lisp_align_free): Use it.
4256 2006-03-09  Kenichi Handa  <handa@m17n.org>
4258         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Fix decoding
4259         ASCII component of a composition.
4261 2006-03-08  Luc Teirlinck  <teirllm@auburn.edu>
4263         * window.c: Declare preserve_y as a static global variable.
4264         (window_scroll_pixel_based): No longer declare preserve_y;
4265         it is global now.
4266         (syms_of_window): Set preserve_y to -1.
4268 2006-03-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4270         * image.c [MAC_OS] (XPutPixel): Set alpha channel bits if pixmap
4271         depth is 32.
4272         [MAC_OS] (XGetPixel): Strip off alpha channel bits if pixmap
4273         depth is 32.
4275 2006-03-06  Chong Yidong  <cyd@stupidchicken.com>
4277         * xdisp.c (handle_invisible_prop): Don't update it->position with
4278         a buffer position if we're in a display string.
4280 2006-03-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4282         * macterm.h (MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH)
4283         (MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH): New defines.
4285         * macfns.c (x_default_scroll_bar_color_parameter)
4286         (x_set_scroll_bar_foreground, x_set_scroll_bar_background):
4287         Remove unnecessary prototypes.
4288         (x_set_scroll_bar_default_width):
4289         Use MAC_AQUA_VERTICAL_SCROLL_BAR_WIDTH.
4290         (mac_set_scroll_bar_width): New function.
4291         (mac_frame_parm_handlers): Set it as handler for scroll-bar-width.
4293         * macterm.c (get_control_part_bounds): Fix type of return value.
4294         (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4295         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: Don't show
4296         scroll bar if it is not tall enough to display scroll bar thumb.
4297         [USE_CARBON_EVENTS] (mac_convert_event_ref)
4298         (mac_handle_command_event, mac_handle_window_event)
4299         (mac_handle_mouse_event): Check error code of GetEventParameter.
4300         (convert_fn_keycode) [MAC_OSX]: Likewise.
4302 2006-03-05  Andreas Schwab  <schwab@suse.de>
4304         * xselect.c (x_catch_errors_unwind): Fix missing return value.
4306 2006-03-02  Kim F. Storm  <storm@cua.dk>
4308         * frame.h (struct frame): New member n_tool_bar_rows.
4310         * xdisp.c: Minimize the unpleasent visual impact of the requirement
4311         that non-toolkit tool-bars must occupy an integral number of screen
4312         lines, by distributing the rows evenly over the tool-bar screen area.
4313         (Vtool_bar_border): New variable.
4314         (syms_of_xdisp): DEFVAR_LISP it.
4315         (display_tool_bar_line): Add HEIGHT arg for desired row height.
4316         Make tool-bar row the desired height.  Use default face for border
4317         below tool-bar.
4318         (tool_bar_lines_needed): Add N_ROWS arg.  Use it to return number of
4319         actual tool-bar rows.
4320         (redisplay_tool_bar): Calculate f->n_tool_bar_rows initially.
4321         Adjust the height of the tool-bar rows to fill tool-bar screen area.
4322         (redisplay_tool_bar): Calculate f->n_tool_bar_rows when tool-bar area
4323         is resized.
4325 2006-03-01  Luc Teirlinck  <teirllm@auburn.edu>
4327         * search.c (Fregexp_quote): Do not precede a literal `]' with two
4328         backslashes to try to make clear that it has a literal meaning; it
4329         does not do that.  (It could close a character alternative
4330         containing a backslash.)
4332 2006-02-28  Chong Yidong  <cyd@stupidchicken.com>
4334         * xselect.c (x_catch_errors_unwind): New function.
4335         (x_reply_selection_request): Put x_uncatch_errors in an unwind.
4336         (Fx_get_atom_name): Call x_uncatch_errors earlier.
4338         * window.c (Qscroll_up, Qscroll_down): New syms.
4339         (window_scroll_pixel_based): Make preserve_y static to avoid
4340         getting point stuck when scrolling 1 line.
4342 2006-02-26  Chong Yidong  <cyd@stupidchicken.com>
4344         * xterm.h, xterm.c (x_uncatch_errors): Delete unneccessary argument.
4346         * xterm.c (x_load_font, x_term_init, XTmouse_position)
4347         (handle_one_xevent, x_connection_closed, x_list_fonts):
4348         No arg for x_uncatch_errors.
4350         * xselect.c (x_own_selection, x_decline_selection_request)
4351         (x_reply_selection_request, x_get_foreign_selection)
4352         (Fx_get_atom_name, Fx_send_client_event): Likewise.
4354         * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
4355         Likewise.
4357 2006-02-26  Luc Teirlinck  <teirllm@auburn.edu>
4359         * lread.c: Declare Vload_file_rep_suffixes instead of
4360         deleted variable default_suffixes.
4361         (Fget_load_suffixes): New function.
4362         (Fload): Use Fget_load_suffixes and Vload_file_rep_suffixes.
4363         No longer use deleted variable default_suffixes.  Update docstring.
4364         (syms_of_lread): defsubr Sget_load_suffixes.
4365         Expand `load-suffixes' docstring.
4366         Delete default_suffixes and DEFVAR_LISP the new variable
4367         `load-file-rep-suffixes'.
4369         * w32.c (check_windows_init_file): Use Fget_load_suffixes instead
4370         of Vload_suffixes.
4372         * lisp.h: EXFUN Fget_load_suffixes.
4373         Extern Vload_file_rep_suffixes.
4375         * eval.c (specpdl_ptr): Remove volatile qualifier for consistency
4376         with lisp.h.
4378 2006-02-26  Stefan Monnier  <monnier@iro.umontreal.ca>
4380         * lisp.h (struct specbinding, specpdl_ptr): Remove the volatile
4381         qualifier which was trying to avoid the bug that was fixed by
4382         yesterday's changes to xterm.c.
4384 2006-02-25  Chong Yidong  <cyd@stupidchicken.com>
4386         * xterm.h (x_catch_errors) Return value changed to void.
4387         (x_uncatch_errors): Delete unused count argument.
4389         * xterm.c (x_catch_errors): Don't use record_unwind_protect, since
4390         it can be called in a signal handler.
4391         (x_catch_errors_unwind): Function deleted.
4392         (x_uncatch_errors): Deallocate last x_error_message_stack struct.
4393         (x_check_errors): Call x_uncatch_errors before signalling error.
4395         (x_load_font, x_term_init, XTmouse_position, handle_one_xevent)
4396         (x_connection_closed, x_list_fonts): Use new versions of
4397         x_catch_errors and x_uncatch_errors.
4399         * xselect.c (x_own_selection, x_decline_selection_request)
4400         (x_reply_selection_request, x_get_foreign_selection)
4401         (Fx_get_atom_name, Fx_send_client_event): Likewise.
4403         * xfns.c (x_real_positions, x_set_mouse_color, Fx_focus_frame):
4404         Likewise.
4406         * eval.c (record_unwind_protect): Add an assertion.
4408 2006-02-25  Stefan Monnier  <monnier@iro.umontreal.ca>
4410         * process.c (Fmake_network_process): Init the process's mark.
4412 2006-02-25  Kim F. Storm  <storm@cua.dk>
4414         * buffer.c (modify_overlay): Force redisplay if we modify an
4415         overlay at the end of the buffer.
4417 2006-02-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4419         * gtkutil.c (xg_get_image_for_pixmap): If x_find_image_file returns
4420         nil the image file has been removed, in that case use the (cached)
4421         pixmap.
4423 2006-02-24  Kenichi Handa  <handa@m17n.org>
4425         * fileio.c (Finsert_file_contents): When a text is replaced
4426         partially, be sure to set point before the inserted characters.
4428 2006-02-23  Zhang Wei  <id.brep@gmail.com>  (tiny change)
4430         * xfns.c (Fx_file_dialog): Return a decoded file name.
4432 2006-02-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4434         * dispnew.c (update_text_area): Avoid needless redraw of rightmost
4435         glyph whose face is extended to the text area end.
4437         * macterm.c (x_set_toolkit_scroll_bar_thumb): Don't set control
4438         values if control is not visible or values are not changed.
4440 2006-02-22  Stefan Monnier  <monnier@iro.umontreal.ca>
4442         * window.c (Fwindow_list): Check `window' before doing XWINDOW.
4443         The default `window' should not be "on a different frame".
4445 2006-02-22  Kim F. Storm  <storm@cua.dk>
4447         * indent.c (Fvertical_motion): Only try to move back if we can.
4449 2006-02-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4451         * macgui.h (struct _XGC) [!MAC_OSX || !USE_ATSUI]: New member
4452         n_clip_rects.
4454         * macmenu.c (digest_single_submenu): Apply 2006-02-19 change for
4455         xmenu.c.
4457         * macterm.c (GC_CLIP_REGION): Remove macro.
4458         (mac_begin_clip, mac_end_clip): Take arg GC instead of REGION.
4459         All uses changed.  Don't do clipping if n_clip_rects is zero.
4460         (mac_set_clip_rectangles): Use xassert instead of abort.
4461         Set n_clip_rects.  Don't make clip_region empty when number of
4462         clipping rectangles is zero.
4463         (mac_reset_clip_rectangles): Set n_clip_rects directly instead of
4464         calling mac_set_clip_rectangles.
4465         (x_set_toolkit_scroll_bar_thumb): Temporarily hide scroll bar to
4466         avoid multiple redraws.
4468 2006-02-22  Kim F. Storm  <storm@cua.dk>
4470         * fringe.c (draw_fringe_bitmap): Fix overlay-arrow display.
4472 2006-02-21  Kim F. Storm  <storm@cua.dk>
4474         * fringe.c (syms_of_fringe) <fringe-bitmaps>: Doc fix.
4476 2006-02-21  Zhang Wei  <brep@newsmth.org>
4478         * xfns.c (Fx_file_dialog, Motif and GTK): DECODE_FILE before
4479         returning it.
4481 2006-02-21  Giorgos Keramidas  <keramida@ceid.upatras.gr>  (tiny change)
4483         * fringe.c (horizontal_bar_bits): Rename from `horisontal_bar_bits'.
4484         (standard_bitmaps): Use it.
4486 2006-02-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4488         * macterm.c (mac_draw_string_common): Remove arg MODE.  New arg
4489         BG_WIDTH.  All uses changed.  Draw background if BG_WIDTH is not zero.
4490         (mac_draw_image_string, mac_draw_image_string_16): New arg BG_WIDTH.
4491         [USE_CG_TEXT_DRAWING] (mac_draw_image_string_cg): Rename from
4492         mac_draw_string_cg.  New arg BG_WIDTH.  All uses changed.
4493         Draw background if BG_WIDTH is not zero.  Use float constants as
4494         divisors instead of double.  Use alloca instead of xmalloc/xfree.
4495         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
4496         [!MAC_OS8 || USE_ATSUI]: Background may be drawn using
4497         mac_draw_image_string* functions.
4498         (XLoadQueryFont) [MAC_OS8 && USE_ATSUI]: Don't adjust heights of
4499         some fonts when srcCopy text transfer mode might be used.
4500         (mac_begin_clip, mac_end_clip): Check if region is empty.
4501         (mac_set_clip_rectangles): When resetting clip region, make it
4502         empty instead of disposing of it.
4504 2006-02-20  Kim F. Storm  <storm@cua.dk>
4506         * Makefile.in: Add fringe.elc to WINDOW_SUPPORT.
4508         * buffer.h (struct buffer): New members fringe_indicator_alist and
4509         fringe_cursor_alist.
4511         * buffer.c (init_buffer_once): Set dummy default values for
4512         fringe-indicator-alist and fringe-cursor-alist.  The proper
4513         default values are set by pre-loading fringe.el.
4514         (syms_of_buffer): defvar_per_buffer new fringe-indicator-alist and
4515         fringe-cursor-alist buffer-local variables and defvar_lisp_nopro
4516         corresponding default- variables.
4518         * fringe.c (enum fringe_bitmap_type): Remove.  Change all uses
4519         to use `int'.
4520         (NO_FRINGE_BITMAP, UNDEF_FRINGE_BITMAP, MAX_STANDARD_FRINGE_BITMAPS):
4521         Define explicitly.
4522         (Qtruncation, Qcontinuation, Qempty_line, Qtop_bottom)
4523         (Qhollow_small): New variables.
4524         (syms_of_fringe): Intern and staticpro them.
4525         (question_mark_bits): Rename from unknown_bits.
4526         (left_curly_arrow_bits): Rename from continuation_bits.
4527         (right_curly_arrow_bits): Rename from continued_bits.
4528         (left_triangle_bits): Rename from ov_bits.
4529         (right_triangle_bits): Add.
4530         (filled_rectangle_bits): Rename from filled_box_cursor_bits.
4531         (hollow_rectangle_bits): Rename from hollow_box_cursor_bits.
4532         (filled_square_bits): Add.
4533         (vertical_bar_bits): Rename from bar_cursor_bits.
4534         (horizontal_bar_bits): Rename from hbar_cursor_bits.
4535         (empty_line_bits): Rename from zv_bits.
4536         (standard_bitmaps): Update to use new names.
4537         (draw_fringe_bitmap_1): Make static.
4538         (get_logical_cursor_bitmap, get_logical_fringe_bitmap): New functions
4539         to map from logical cursors and indicators to physical bitmaps.
4540         (draw_fringe_bitmap): Resolve fringe cursor and overlay-arrow
4541         bitmaps using symbol names instead of bitmap numbers.
4542         (update_window_fringes): Use logical indicator symbol names
4543         instead of bitmap numbers for logical.  Add bitmap cache.
4544         (LEFT_FRINGE, RIGHT_FRINGE): New helper macros.
4546 2006-02-20  Chong Yidong  <cyd@stupidchicken.com>
4548         * regex.c: Revert 2006-02-19 change.
4549         (xmalloc, xrealloc): Define these when not linked to Emacs.
4550         Redefine malloc -> xmalloc, realloc -> xrealloc as in Emacs case.
4552 2006-02-19  Luc Teirlinck  <teirllm@auburn.edu>
4554         * regex.c (extend_range_table_work_area): Fix typo.
4556 2006-02-19  Richard M. Stallman  <rms@gnu.org>
4558         * xterm.c (x_catch_errors): Use xmalloc.
4560         * regex.c (extend_range_table_work_area): Call xmalloc and xrealloc.
4561         (regex_compile): Likewise.
4562         (regcomp): Use xmalloc.
4564         * gtkutil.c (malloc_widget_value): Use xmalloc.
4566         * vm-limit.c [HAVE_GETRLIMIT]: Include sys/resource.h.
4567         (check_memory_limits) [HAVE_GETRLIMIT]: Use getrlimit.
4569         * xmenu.c (digest_single_submenu): When pane_string is empty,
4570         do initialize save_wv.
4572 2006-02-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4574         * xdisp.c (update_menu_bar) [MAC_OS]: Don't set
4575         w->update_mode_line if arg F is not the selected frame.
4577         * macmenu.c (popup_activated_flag, submenu_id)
4578         (next_menubar_widget_id): Remove variables.
4579         (initialize_frame_menubar): Remove function.
4580         (pop_down_menu, mac_menu_show): Simplify save value.
4581         (dispose_menus): New function.
4582         (pop_down_menu, fill_menubar): Use it.
4583         (fill_submenu): Remove function.  All uses changed to fill_menu.
4584         (add_menu_item): Remove args SUBMENU and FORCE_DISABLE.  New arg
4585         POS.  Don't call SetMenuItemHierarchicalID here.
4586         (fill_menu): Add arg SUBMENU_ID.  Return submenu_id that is to be
4587         used next.  Call SetMenuItemHierarchicalID here.
4588         (fill_menubar): Add arg DEEP_P.  All uses changed.  Clean up menu
4589         objects if needed.  Reuse existing menu bar titles if possible.
4590         (set_frame_menubar): Don't clean up menu objects here.
4592 2006-02-18  Chong Yidong  <cyd@stupidchicken.com>
4594         * window.c (window_min_size_1): Ensure room for the scroll bar and
4595         fringes.
4597 2006-02-17  Romain Francoise  <romain@orebokech.com>
4599         * puresize.h (BASE_PURESIZE): Increment to 1200000.
4601 2006-02-17  Stefan Monnier  <monnier@iro.umontreal.ca>
4603         * alloc.c (Fmake_symbol): Comment-out left-over assert from before the
4604         addition of the BLOCK_INPUTs.
4606 2006-02-17  Juanma Barranquero  <lekktu@gmail.com>
4608         * window.c (Fset_window_scroll_bars): Doc fix.
4610 2006-02-17  Kenichi Handa  <handa@m17n.org>
4612         * xdisp.c (display_mode_element): Call display_string with correct
4613         PREC arg (which must be a number of characters, not column width).
4615 2006-02-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4617         * frame.c (x_get_arg): Clear out PARAM in ALIST also on Mac.
4619         * macfns.c (x_set_menu_bar_lines): Menu bar is always shown on Mac.
4621         * macmenu.c (set_frame_menubar): Don't call DrawMenuBar.
4623 2006-02-14  Richard M. Stallman  <rms@gnu.org>
4625         * frame.c (x_get_arg): Clear out all occurrences of PARAM in ALIST.
4627         * m/ibms390x.h: New file.
4629 2006-02-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4631         * gtkutil.c (xg_tool_bar_detach_callback): Set show-arrow to the
4632         value of x-gtk-whole-detached-tool-bar.
4633         (xg_tool_bar_attach_callback): Set show-arrow to TRUE.
4635         * xfns.c (syms_of_xfns): New variable: x-gtk-whole-detached-tool-bar.
4637 2006-02-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4639         * xterm.c (x_x_to_emacs_modifiers): Make non-static.
4641         * xterm.h: Declare x_x_to_emacs_modifiers.
4643         * gtkutil.c (xg_tool_bar_button_cb): New function.
4644         (xg_tool_bar_callback): Call x_x_to_emacs_modifiers to
4645         store modifiers in event.
4646         (update_frame_tool_bar): Connect button-release-event to
4647         xg_tool_bar_button_cb.
4649 2006-02-13  Richard M. Stallman  <rms@gnu.org>
4651         * .gdbinit (xwindow): Update the code to show the window box.
4653 2006-02-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4655         * xterm.c (note_mouse_movement): Check for NULL FRAME_X_OUTPUT (frame).
4657 2006-02-12  Richard M. Stallman  <rms@gnu.org>
4659         * cmds.c (internal_self_insert): Handle weird auto-fill-function.
4661 2006-02-11  Eli Zaretskii  <eliz@gnu.org>
4663         * keyboard.c (Venable_disabled_menus_and_buttons): New variable.
4664         (syms_of_keyboard): DEVFAR_LISP and initialize it.
4665         (parse_tool_bar_item, parse_menu_item): If that variable is
4666         non-nil, don't disable menu items and tool-bar buttons.
4668 2006-02-11  Juanma Barranquero  <lekktu@gmail.com>
4670         * doc.c (Fsubstitute_command_keys): Doc fix.
4672 2006-02-10  Thien-Thi Nguyen  <ttn@gnu.org>
4674         * data.c (Findirect_function): Rewrite docstring.
4675         Fix omission bug: Declare new arg NOERROR.
4677 2006-02-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4679         * macfns.c (x_set_mouse_color): Don't call rif->define_frame_cursor
4680         if window_desc is not set yet.
4681         (Fx_create_frame): Remove variable x_frame_name.  Apply 2005-12-07
4682         and 2006-01-26 changes for xfns.c.  Call x_iconify_frame if frame
4683         parameter `visibility' is `icon'.
4684         (Fx_create_frame, x_create_tip_frame): Use "fontset-standard"
4685         instead of "fontset-mac".
4686         (Fx_focus_frame): New defun.
4687         (syms_of_macfns): Defsubr it.
4689         * macterm.c (mac_define_frame_cursor): Don't change pointer shape
4690         for unfocused frame.
4691         (x_raise_frame): Call BringToFront instead of SelectWindow.
4692         (x_lower_frame): Use NULL instead of nil.
4693         (x_make_frame_visible): Don't call SelectWindow.
4694         (XTread_socket): Increment handling_signal at the start, decrement
4695         it at the end.
4696         [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): Use
4697         CFPreferencesGetAppIntegerValue instead of Fmac_get_preference.
4699 2006-02-10  Kim F. Storm  <storm@cua.dk>
4701         * data.c (Findirect_function): Add NOERROR arg.  All callers changed
4702         to pass Qnil for NOERROR.
4704         * keymap.c (current_minor_maps_error): Remove.
4705         (current_minor_maps): Pass Qt for NOERROR to Findirect_function
4706         instead of using internal_condition_case_1+current_minor_maps_error.
4708 2006-02-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4710         * xterm.c (handle_one_xevent): Must note mouse movement even for nil
4711         frames for GTK, in that case it is the tool bar.  This is so that
4712         highlighted text get reset properly.
4714 2006-02-09  Juanma Barranquero  <lekktu@gmail.com>
4716         * alloc.c (Fmake_bool_vector, Fpurecopy): Doc fixes.
4718 2006-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4720         * window.c (adjust_window_trailing_edge): Check that shrinking
4721         does not set a window to size zero or less.
4723 2006-02-08  Miles Bader  <miles@gnu.org>
4725         * editfns.c (Fconstrain_to_field): Use Fget_char_property instead
4726         of Fget_text_property (other field functions work with overlays as
4727         well as text-properties).
4729 2006-02-07  Kenichi Handa  <handa@m17n.org>
4731         * dispextern.h (unibyte_display_via_language_environment): Extern it.
4733         * xterm.h (unibyte_display_via_language_environment):
4734         * w32term.h (unibyte_display_via_language_environment):
4735         * macterm.h (unibyte_display_via_language_environment): Delete extern.
4737 2006-02-07  Kenichi Handa  <handa@m17n.org>
4739         * term.c (append_glyph): Refer to it->char_to_display instead of it->c.
4740         (produce_glyphs): Set the character to print in
4741         it->char_to_display.  Handle unibyte-display-via-language-environment.
4742         (produce_stretch_glyph): Set character to print in it->char_to_display.
4744 2006-02-06  Kenichi Handa  <handa@m17n.org>
4746         * lread.c (openp): Initialize encoded_fn before GCPRO it.
4748 2006-02-05  Ken Raeburn  <raeburn@raeburn.org>
4750         * editfns.c (Fconstrain_to_field): Fix int/Lisp_Object mixup.
4752         * lisp.h (XPNTR) [!NO_UNION_TYPE && !HAVE_SHM && !DATA_SEG_BITS]:
4753         Cast bitfield value to EMACS_INT, to suppress gcc warning.
4755         * xrdb.c (malloc, realloc, free) [emacs]: Undefine macros before
4756         defining.
4758 2006-02-03  Kim F. Storm  <storm@cua.dk>
4760         * xdisp.c: Cache last merged escape glyph face.
4761         (last_escape_glyph_frame, last_escape_glyph_face_id)
4762         (last_escape_glyph_merged_face_id): New variables.
4763         (get_next_display_element): Use/update them.
4764         (redisplay_internal): Reset them before redisplay.
4766         * xdisp.c (set_iterator_to_next): Optimize 2004-12-13 fix.
4767         Only recheck faces after displaying ellipsis.
4769 2006-02-02  Kenichi Handa  <handa@m17n.org>
4771         * coding.c (decode_composition_emacs_mule): Fix handling of
4772         incorrect format data.
4774 2006-01-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4776         * gtkutil.c (update_frame_tool_bar): Use new tool bar function
4777         gtk_toolbar_insert() so we can have tool bars of different sizes.
4779 2006-01-30  Luc Teirlinck  <teirllm@auburn.edu>
4781         * data.c (Flistp): Doc fix.
4783 2006-01-30  Juanma Barranquero  <lekktu@gmail.com>
4785         * window.c (Fother_window, Fwindow_vscroll, Fset_window_vscroll):
4786         Fix typos in docstrings.
4788 2006-01-28  Luc Teirlinck  <teirllm@auburn.edu>
4790         * data.c (Fcar, Fcdr): Add links to Elisp manual to the docstrings.
4792 2006-01-27  Chong Yidong  <cyd@stupidchicken.com>
4794         * alloc.c (make_interval, allocate_string)
4795         (allocate_string_data, make_float, Fcons, allocate_vectorlike)
4796         (Fmake_symbol, allocate_misc): Use BLOCK_INPUT when accessing
4797         global variables.
4799 2006-01-27  Eli Zaretskii  <eliz@gnu.org>
4801         * dired.c (DIRENTRY_NONEMPTY) [__CYGWIN__]: Don't use d_ino; use
4802         the MSDOS definition.
4804 2006-01-26  Richard M. Stallman  <rms@gnu.org>
4806         * alloc.c (check_pure_size): Make overflow message an "error message".
4808         * keymap.c (Fmap_keymap): Doc fix.
4810         * xfns.c (Fx_create_frame): Put all specified parms into f->param_alist
4811         unless they were cleared out.
4813         * frame.c (x_get_arg): "Clear out" the parm in ALIST if found there.
4815 2006-01-26  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
4817         * editfns.c (Fconstrain_to_field): Fix behaviour on field boundaries.
4818         (find_field): Set before_field to after_field when pos is at BEGV.
4819         (Fline_beginning_position, Fline_end_position):
4820         Clarify confusing doc string.
4822         * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify confusing doc
4823         string.
4825 2006-01-26  Kenichi Handa  <handa@m17n.org>
4827         * callproc.c (Fcall_process): GCPRO error_file.  Encode infile,
4828         current_dir, and error_file.  On reporting an error, decode them
4829         back.
4831 2006-01-24  Stefan Monnier  <monnier@iro.umontreal.ca>
4833         * regex.c (IMMEDIATE_QUIT_CHECK): Use it with SYNC_INPUT as well.
4834         (re_match_2_internal) <on_failure_jump, on_failure_jump_smart>:
4835         Don't check for quit, since any loop will go through fail or jump.
4837 2006-01-24  Chong Yidong  <cyd@stupidchicken.com>
4839         * alloc.c (allocate_string_data): Update next_free immediately, to
4840         reduce risk of memory clobberage.
4842 2006-01-24  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
4844         * xdisp.c (handle_invisible_prop): Set it->position to fix cursor
4845         display when point moves across an ellipsis.  If there are
4846         adjacent invisible texts, don't lose the second one's ellipsis.
4847         (x_produce_glyphs): Doc fix.
4849 2006-01-23  Stefan Monnier  <monnier@iro.umontreal.ca>
4851         * xterm.c (x_catch_errors_unwind): Yet another int/Lisp_Object mixup.
4853 2006-01-23  Kim F. Storm  <storm@cua.dk>
4855         * xdisp.c (handle_single_display_spec): Fix handling of space
4856         property on char from string: set *position rather than
4857         it->current.pos.
4858         (produce_stretch_glyph): Reduce width of stretch glyphs so they
4859         don't get wider than the window (unless truncate-lines is on).
4861 2006-01-22  Stefan Monnier  <monnier@iro.umontreal.ca>
4863         * xterm.c: Avoid allocating Lisp data from a signal handler.
4864         (x_error_message): New var to replace x_error_message_string.
4865         (x_error_catcher, x_catch_errors, x_catch_errors_unwind)
4866         (x_check_errors, x_had_errors_p, x_clear_errors, x_error_handler)
4867         (syms_of_xterm): Use it instead of x_error_message_string.
4869         * alloc.c (lisp_align_free): Add an assertion.
4870         (make_interval, allocate_string, make_float, Fcons, Fmake_symbol)
4871         (allocate_misc): If ENABLE_CHECKING is on, check we're not called from
4872         a signal handler.
4874 2006-01-21  Luc Teirlinck  <teirllm@auburn.edu>
4876         * dired.c (syms_of_dired) <completion-ignored-extensions>: Doc fix.
4878 2006-01-21  Romain Francoise  <romain@orebokech.com>
4880         * xdisp.c (get_window_cursor_type): Fix last change.
4881         Update copyright year.
4883 2006-01-20  Eli Zaretskii  <eliz@gnu.org>
4885         * lread.c (Fload): Don't leak the file descriptor returned by
4886         openp if we are going to signal an error.
4888         * w32.c (sys_close): If FD is outside [0..MAXDESC) limits, pass it
4889         directly to _close.
4890         (sys_dup): Protect against new_fd larger than fd_info[] can handle.
4891         (sys_read): If FD is outside [0..MAXDESC) limits, pass it directly
4892         to _read.
4893         (sys_write): If FD is outside [0..MAXDESC) limits, pass it
4894         directly to _write.
4896         * .gdbinit: Don't dereference Vsystem_type's Lisp_Symbol pointer
4897         if it is NULL.
4899 2006-01-20  Kenichi Handa  <handa@m17n.org>
4901         * puresize.h (BASE_PURESIZE): Increment to 1190000.
4903 2006-01-19  Chong Yidong  <cyd@stupidchicken.com>
4905         * xdisp.c (get_window_cursor_type): Use cursor type specified by
4906         the selected buffer for the echo area too.
4908 2006-01-19  Richard M. Stallman  <rms@gnu.org>
4910         * keymap.c (Fmap_keymap): Doc fix.
4912         * s/irix6-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): New definitions.
4914         * keyboard.c (echo_char): Don't omit the space between first two
4915         echoed chars.
4917         * minibuf.c (read_minibuf): Fix previous change.
4919 2006-01-19  Kenichi Handa  <handa@m17n.org>
4921         * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
4923 2006-01-17  Richard M. Stallman  <rms@gnu.org>
4925         * frame.c (x_frame_get_and_record_arg): Don't record Qunbound
4926         value in f->param_alist.
4928 2006-01-15  Andreas Schwab  <schwab@suse.de>
4930         * search.c (Freplace_match): Use UPPERCASEP instead of !NOCASEP.
4932 2006-01-13  Richard M. Stallman  <rms@gnu.org>
4934         * Makefile.in: Define new macro WINDOW_SUPPORT.
4935         (lisp): Use it.
4936         (SOME_MACHINE_LISP): Add conditionally loaded files.
4938 2006-01-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4940         * macterm.c [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
4941         [MAC_OS_X_VERSION_MAX_ALLOWED >= 1020]: Specify kATSLineUseQDRendering.
4942         (XLoadQueryFont) [USE_ATSUI]: Display diacritical marks in
4943         decomposed form.
4945         * process.c [HAVE_INTTYPES_H]: Include inttypes.h.
4946         (ifflag_table): Fix typo (IFF_OACTIV -> IFF_OACTIVE).
4947         (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ_IFR_NETMASK
4948         macro.  Also try member ifr_addr when getting netmask.
4950 2006-01-10  Stefan Monnier  <monnier@iro.umontreal.ca>
4952         * fileio.c (Fexpand_file_name): Remove redundant tests.
4953         Fix elimination of // so that it doesn't prevent elimination of an
4954         immediately following /. or /..
4956 2006-01-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4958         * gtkutil.c (xg_toggle_notify_cb): New function.
4959         (xg_toggle_visibility_cb): Move setting of x_gtk_show_hidden_files to
4960         xg_toggle_notify_cb.
4961         (xg_get_file_with_chooser): Add callback to xg_toggle_notify_cb when
4962         parameter value changes so the toggle button gets updated.
4964 2006-01-06  Nick Roberts  <nickrob@snap.net.nz>
4966         * .gdbinit: Fix typo.
4968 2006-01-05  Eli Zaretskii  <eliz@gnu.org>
4970         * .gdbinit: Fix last change.
4972 2006-01-05  Kim F. Storm  <storm@cua.dk>
4974         * process.c (Fmake_network_process): Use AF_INET instead of
4975         AF_UNSPEC when AF_INET6 is not defined.
4977 2006-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4979         * mac.c (mac_coerce_file_name_ptr, mac_coerce_file_name_desc):
4980         Don't check that the other type is known file-related one.
4982         * macfns.c (Fx_server_version): Use gestaltSystemVersionMajor,
4983         gestaltSystemVersionMinor, and gestaltSystemVersionBugFix on Mac
4984         OS X 10.4 and later.
4986 2006-01-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4988         * gtkutil.c (xg_get_image_for_pixmap): If the image is from a file,
4989         let GTK do all image processing.  Importing Emacs own pixmaps to GTK
4990         looks bad for inactive tool bar items with some Gnome themes.
4992 2006-01-04  Eli Zaretskii  <eliz@gnu.org>
4994         * .gdbinit: Avoid a warning message when x_error_quitter is not
4995         compiled in.
4997         * process.c [WINDOWSNT]: Undef AF_INET6 to disable IPv6 support
4998         for w32.
5000 2006-01-04  Kim F. Storm  <storm@cua.dk>
5002         * process.c: Add IPv6 support.
5003         (Qipv4, Qipv6): New vars.
5004         (syms_of_process): Intern and staticpro them.
5005         (Fformat_network_address): Handle 9 or 8 element vector as IPv6 address
5006         with or without port number.  Handle 4 element vector as IPv4 address
5007         without port number.
5008         (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
5009         (conv_lisp_to_sockaddr): Handle IPv6 addresses.
5010         (Fmake_network_process): Use :family 'ipv4 and 'ipv6 to explicitly
5011         request that address family only.  :family nil or omitted means to
5012         determine address family from the specified :host and :service.
5013         (ifflag_table): Add missing OpenBSD IFF_ flags.
5014         (server_accept_connection): Handle IPv6 addresses.
5015         (init_process): Add (:family ipv4) and (:family ipv6) sub-features.
5017         * .gdbinit: Undo last change.  Instead, look at Vsystem_type to
5018         determine which breakpoints to set.
5020 2006-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
5022         * keymap.c (describe_map_compare): Yet another int/Lisp_Object mixup.
5024         * window.h (Fwindow_minibuffer_p): Declare (for use in minibuf.c).
5026 2006-01-03  Romain Francoise  <romain@orebokech.com>
5028         * emacs.c (main): Update copyright year.
5030 2006-01-03  Ken Raeburn  <raeburn@gnu.org>
5032         * callproc.c (delete_temp_file): Bind file-name-handler-alist to
5033         nil for the call to internal_delete_file.
5035 2006-01-01  Ken Raeburn  <raeburn@gnu.org>
5037         * callproc.c (Fcall_process_region): Bind file-name-handler-alist
5038         to nil for the call to Fwrite_region.
5040 2005-12-31  Richard M. Stallman  <rms@gnu.org>
5042         * minibuf.c (read_minibuf): Clear out all other minibuffer windows.
5044 2005-12-31  Eli Zaretskii  <eliz@gnu.org>
5046         * emacs.c (gdb_pvec_type): A dummy variable for GDB's sake.
5048 2005-12-30  Luc Teirlinck  <teirllm@auburn.edu>
5050         * textprop.c (set_text_properties): Reword description of return value.
5051         Return Qnil if caller wants to remove all text properties from a
5052         string and the string already has no intervals.
5054 2005-12-30  Stefan Monnier  <monnier@iro.umontreal.ca>
5056         * term.c (visible_cursor): New boolean var.
5057         (set_terminal_modes, tty_show_cursor): Use "vs" or "ve" depending on
5058         visible_cursor.
5059         (syms_of_term): Export the new var as "visible-cursor".
5061 2005-12-30  Eli Zaretskii  <eliz@gnu.org>
5063         * .gdbinit: Tell users not to worry about GDB warnings that some
5064         functions do not exist in the binary.
5066 2005-12-30  Andreas Schwab  <schwab@suse.de>
5068         * process.c (Fnetwork_interface_info): Correctly terminate the
5069         loop over ifflag_table.
5071 2005-12-29  Richard M. Stallman  <rms@gnu.org>
5073         * lread.c (readevalloop): Test for reading a whole buffer
5074         before actually reading anything.  Handle all cases, including
5075         START = END = nil and an already-narrowed buffer.
5076         Convert END to a marker if it is a number.
5078         * keymap.c (describe_map): Put sparse map elements into an array,
5079         sort them, then output a sequence of identical bindings on one line.
5080         (struct describe_map_elt): New data type.
5081         (describe_map_compare): New function.
5083 2005-12-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5085         * gtkutil.c (xg_get_file_with_chooser): Change message shown
5086         in file chooser.
5088 2005-12-27  Richard M. Stallman  <rms@gnu.org>
5090         * lread.c (readevalloop): Set PT and ZV in the proper buffer,
5091         not the current one.
5093         * minibuf.c (Fminibuffer_message): Doc fix.
5094         (read_minibuf): Set current_buffer->enable_multibyte_characters sooner.
5096         * eval.c (do_autoload): Ignore elements of Vautoload_queue
5097         where car is not symbol.
5099 2005-12-27  Kenichi Handa  <handa@m17n.org>
5101         * charset.c (lisp_string_width): Check multibyteness of STRING.
5103 2005-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5105         * xfns.c (x_show_hidden_files): New variable.
5106         (syms_of_xfns): Defvar it.
5108         * gtkutil.c (xg_toggle_visibility_cb): New function.
5109         (xg_get_file_with_chooser): Add toggle hidden files and a message
5110         to the new file chooser dialog.  Show hidden files if
5111         x_show_hidden_files is non-zero.
5113 2005-12-26  Richard M. Stallman  <rms@gnu.org>
5115         * keyboard.h: Undo previous change.
5117         * Makefile.in (undo.o): Undo previous change.
5119         * undo.c: Undo previous change.
5121 2005-12-26  Luc Teirlinck  <teirllm@auburn.edu>
5123         * keyboard.h: extern last_point_position_window.
5125         * undo.c: include keyboard.h.
5127         * Makefile.in (undo.o): Depend on keyboard.h.
5129 2005-12-26  Richard M. Stallman  <rms@gnu.org>
5131         * commands.h (last_point_position_window): Declare.
5133         * undo.c: Depend on window.h.
5134         (record_point): Save old point from the correct window.
5136         * keyboard.c (last_point_position_window): New variable.
5137         (command_loop_1): Set last_point_position_window.
5138         (syms_of_keyboard): Init it.
5140         * Makefile.in (undo.o): Depend on window.h.
5142 2005-12-25  Richard M. Stallman  <rms@gnu.org>
5144         * eval.c (un_autoload): Expect (0 . OFEATURES) in Vautoload_queue
5145         to undo a `provide'.
5147         * fns.c (Fprovide): Store (0 . OFEATURES) in Vautoload_queue.
5149 2005-12-25  Giorgos Keramidas  <keramida@ceid.upatras.gr>
5151         * m/amdx86-64.h [__FreeBSD__] (START_FILES, LIB_STANDARD):
5152         define for FreeBSD on this platform.
5154 2005-12-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5156         * macterm.h (TYPE_FILE_NAME): New define.
5157         (posix_pathname_to_fsspec, fsspec_to_posix_pathname): Remove externs.
5159         * mac.c (posix_pathname_to_fsspec, fsspec_to_posix_pathname):
5160         Add prototypes.  Make static.
5161         (mac_aedesc_to_lisp): Initialize err to noErr.
5162         (mac_coerce_file_name_ptr, mac_coerce_file_name_desc)
5163         (init_coercion_handler): New functions.
5164         (Fmac_coerce_ae_data): Use coercion of Apple event data for
5165         translation from/to file names.
5167         * macterm.c: Don't include sys/param.h.
5168         (init_coercion_handler): Add extern.
5169         [MAC_OS8] (main): Call init_coercion_handler.
5170         (mac_initialize) [MAC_OSX]: Likewise.
5171         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Use coercion of
5172         Apple event data for translation from/to file names.
5174         * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
5176         * image.c [MAC_OS] (find_image_fsspec): Likewise.
5178 2005-12-23  Martin Rudalics  <rudalics@gmx.at>
5180         * insdel.c (insert, insert_and_inherit, insert_before_markers)
5181         (insert_before_markers_and_inherit): Make sure FROM is correct
5182         when `after-change-functions' are called.
5184 2005-12-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5186         * xfns.c (Fx_uses_old_gtk_dialog): New function.
5188         * gtkutil.c (xg_uses_old_file_dialog): New function.
5189         (xg_get_file_name): Use xg_uses_old_file_dialog.
5191         * gtkutil.h: Declare xg_uses_old_file_dialog.
5193 2005-12-22  Richard M. Stallman  <rms@gnu.org>
5195         * xmenu.c (xmenu_show): Call inhibit_garbage_collection.
5197 2005-12-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5199         * mac.c (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak.
5201         * macgui.h (XCharStruct): Remove member `valid_p'.
5202         (STORE_XCHARSTRUCT): Don't set member `valid_p'.
5203         (XCharStructRow): New typedef.
5204         (XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID):
5205         New macros.
5206         (struct MacFontStruct): Add member `bounds'.  Remove member
5207         `per_char'.  All uses for QuichDraw Text fonts are changed to
5208         `bounds.per_char'.  ATSUI font bounds are represented as an array
5209         `bounds.rows' of XCharStructRow's, each of which consists of a
5210         bitmap of valid entries and an array of char bounds.
5212         * macterm.c (mac_per_char_metric): Add prototype.
5213         (x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
5214         (mac_query_char_extents): New function.
5215         (x_per_char_metric): Use it.
5216         (XLoadQueryFont): Likewise.  Consolidate min/max_bounds calculations.
5217         [USE_CG_TEXT_DRAWING] (mac_draw_string_cg):
5218         Use mac_per_char_metric instead of x_per_char_metric.
5219         (mac_text_extents_16): New function.
5220         (mac_compute_glyph_string_overhangs): Use it.
5221         (mac_unload_font): Free member `bounds' in struct MacFontStruct.
5223 2005-12-21  Stefan Monnier  <monnier@iro.umontreal.ca>
5225         * minibuf.c (Fdisplay_completion_list): Use XCAR/XCDR.
5226         (Fminibuffer_completion_help): Remove duplicates before display.
5228 2005-12-21  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
5230         * print.c (print_preprocess): Don't lose print_depth levels while
5231         iterating.
5233 2005-12-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5235         * macmenu.c (Qmac_apple_event): Add extern.
5236         (set_frame_menubar, mac_menu_show keymp_panes)
5237         (single_keymap_panes, list_of_panes, list_of_item)
5238         (single_menu_item): Add argument types to prototypes.
5239         (mac_dialog_show) [HAVE_DIALOGS]: Likewise.
5240         (struct skp): New struct (from xmenu.c).
5241         (single_keymap_panes, single_menu_item, list_of_panes)
5242         (list_of_item): Sync with xmenu.c.
5243         (Fx_popup_menu, Fx_popup_dialog): Likewise.  Don't get window from
5244         POSITION if it is mac-apple-event event.
5245         (menubar_selection_callback): Don't use menu_command_in_progress.
5246         (set_frame_menubar): First parse all submenus, then make
5247         widget_value trees from them.  Don't allocate any widget_value
5248         objects until we are done with the parsing.
5249         (parse_single_submenu, digest_single_submenu): New functions.
5250         (single_submenu): Function deleted, replaced by those two.
5251         (install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
5252         create or dispose of EventHandlerUPP.  Install hander to all submenus.
5253         (mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
5254         instead of ENCODE_SYSTEM.
5255         (free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
5256         integer values.
5257         [HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
5258         (add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
5259         format menu item string.  Don't use NULL for integer value.
5261         * macterm.h (struct mac_output): Remove unused member
5262         menu_command_in_progress.
5264 2005-12-20  Juri Linkov  <juri@jurta.org>
5266         * xmenu.c (Fx_popup_menu): Set Vmenu_updating_frame to f if
5267         position is non-nil, else set it to nil.
5269         * macmenu.c (Fx_popup_menu): Add `else' to set
5270         Vmenu_updating_frame to nil only if position is nil.
5272         * w32menu.c (Fx_popup_menu): Add `else' to set
5273         Vmenu_updating_frame to nil only if position is nil.
5275 2005-12-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5277         * keyboard.c (make_lispy_event): Drag-and-drop items are now
5278         stored in member `args' of struct input_event.
5280         * termhooks.h (struct input_event): Fix comment for DRAG_N_DROP_EVENT.
5282         * xselect.c (x_handle_dnd_message): Drag-and-drop items are now
5283         stored in member `args' of struct input_event.
5285         * w32term.c (construct_drag_n_drop): Likewise.
5287         * macterm.c (mac_do_receive_drag): Likewise.
5288         (x_use_underline_position_properties): Undo 2005-07-13 change.
5289         (syms_of_macterm) <x-use-underline-position-properties>: Likewise.
5290         (mac_use_core_graphics, mac_wheel_button_is_mouse_2)
5291         (mac_pass_command_to_system, mac_pass_control_to_system):
5292         New boolean variables renamed from Lisp_Object ones
5293         Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
5294         Vmac_pass_command_to_system, and Vmac_pass_control_to_system.
5295         All uses changed.
5296         (syms_of_macterm): DEFVAR_BOOL them.  Remove previous DEFVAR_LISPs.
5297         Make them user options.
5298         (mac_handle_command_event, mac_store_services_event):
5299         Call create_apple_event_from_event_ref without 5th argument.
5300         (backtranslate_modified_keycode): Mask off modifier keys that are
5301         mapped to some Emacs modifiers before passing it to KeyTranslate.
5302         (syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
5303         `mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
5304         Fix docstrings of `mac-*-modifier'.
5306         * mac.c (create_apple_event_from_event_ref): Remove arg `types'.
5307         (do_applescript): Change argument types to Lisp_Object.
5308         All uses changed.
5310         * macterm.h (create_apple_event_from_event_ref): Remove 5th
5311         argument from extern.
5313 2005-12-18  Dan Nicolaescu  <dann@ics.uci.edu>
5315         * xfns.c (Fx_backspace_delete_keys_p): In case we cannot determine
5316         the answer, return `lambda', not nil.
5318 2005-12-17  Eli Zaretskii  <eliz@gnu.org>
5320         * makefile.w32-in (bootstrap-temacs): Warn that parts of commands
5321         enclosed in $(ARGQUOTE)s should not be split between two lines, as
5322         that will break with GNU Make >3.80, when sh.exe is used and
5323         arg quoting is with '..'.
5325 2005-12-17  Chong Yidong  <cyd@stupidchicken.com>
5327         * print.c (print_preprocess): Just signal an error if print_depth
5328         is exceeded.
5330 2005-12-17  Eli Zaretskii  <eliz@gnu.org>
5332         * .gdbinit: Set a breakpoint on w32_abort.
5334 2005-12-16  Juri Linkov  <juri@jurta.org>
5336         * minibuf.c (Fminibuffer_completion_contents): New Lisp function
5337         created from minibuffer_completion_contents.
5338         (minibuffer_completion_contents): Remove.
5339         (do_completion, Fminibuffer_complete_word)
5340         (Fminibuffer_completion_help): Replace minibuffer_completion_contents
5341         with Fminibuffer_completion_contents.
5342         (syms_of_minibuf): Add Sminibuffer_completion_contents.
5343         (Fdisplay_completion_list): Doc fix.
5344         (display_completion_list_1): Use `nil' for second arg of
5345         `Fdisplay_completion_list'.
5347 2005-12-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5349         * xfns.c (compute_tip_xy): Handle negative dx and dy.
5351         * w32fns.c (compute_tip_xy): Ditto.
5353         * macfns.c (compute_tip_xy): Ditto.
5355 2005-12-14  Chong Yidong  <cyd@stupidchicken.com>
5357         * print.c (print_preprocess): Go to a deeper print_depth to avoid
5358         print_object loop.
5360 2005-12-14  Kyotaro HORIGUCHI  <horiguti@meadowy.org>  (tiny change)
5362         * coding.c (code_convert_region_unwind): GCPRO arg.
5364 2005-12-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5366         * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
5367         i.e. dy is offset from top of frame instead of bottom.
5369         * macfns.c (compute_tip_xy): Ditto.
5371         * w32fns.c (compute_tip_xy): Ditto.
5373         * gtkutil.c (SSDATA): New macro to remove compiler warnings.
5374         (xg_get_image_for_pixmap, xg_create_frame_widgets)
5375         (xg_get_file_with_chooser): Use SSDATA instead of SDATA.
5377         * xmenu.c (menubar_selection_callback): Do nothing if the callback
5378         is for an unselected radio menu item.
5380 2005-12-11  Richard M. Stallman  <rms@gnu.org>
5382         * xdisp.c (syms_of_xdisp) <blink-cursor-alist>: Doc fix.
5384         * lisp.h [! NO_UNION_TYPE] (EQ): Use == so args are computed just once.
5386         * keymap.c (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
5387         (Flookup_key): Doc fix.
5388         (syms_of_keymap) <function-key-map>: Doc fix.
5390         * fns.c (Frequire): Treat evaluating from a source file
5391         like loading the file.
5393         * floatfns.c (Flog): Doc fix.
5395         * fileio.c (Finsert_file_contents): Set Vdeactivate_mark
5396         when we change the buffer.
5398 2005-12-11  Juri Linkov  <juri@jurta.org>
5400         * minibuf.c (display_completion_list_1):
5401         Call `minibuffer_completion_contents' instead of using `nil' as
5402         second arg of `Fdisplay_completion_list'.
5403         (keys_of_minibuf): Unbind SPC in
5404         Vminibuffer_local_filename_completion_map (see also related
5405         change on 2005-12-06).
5407 2005-12-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5409         * emacs.c (main) [MAC_OS8]: Undo previous change.
5411         * macselect.c (syms_of_macselect) <mac-apple-event-map>:
5412         Initialize to nil.  Keymap is now created in lisp/term/mac-win.el.
5414 2005-12-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5416         * Makefile.in (macselect.o): Depend on keymap.h.
5418         * emacs.c (main) [MAC_OS8]: Call syms_of_keymap before
5419         syms_of_macselect.
5421         * image.c (init_image) [MAC_OS]: Don't call EnterMovies.
5422         [!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
5424         * keyboard.c (Qmac_apple_event) [MAC_OS]: New variable.
5425         (syms_of_keyboard) [MAC_OS]: Initialize it.
5426         (make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
5428         * mac.c (Qundecoded_file_name): New variable.
5429         (syms_of_mac): Initialize it.
5430         (mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
5431         [TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New fun.
5432         (Fmac_coerce_ae_data): New defun.
5433         (syms_of_mac): Defsubr it.
5435         * macselect.c: Include keymap.h.
5436         (mac_ready_for_apple_events): New variable.
5437         (Vmac_apple_event_map, Qmac_apple_event_class)
5438         (Qmac_apple_event_id): New variables.
5439         (syms_of_macselect): Initialize them.
5440         (Qundefined, mac_store_apple_event): Add externs.
5441         (struct apple_event_binding): New struct.
5442         (find_event_binding_fun, find_event_binding)
5443         (mac_find_apple_event_spec, defer_apple_events)
5444         (mac_handle_apple_event, init_apple_event_handler)
5445         (copy_scrap_flavor_data): New functions.
5446         (Fmac_process_deferred_apple_events): New defun.
5447         (syms_of_macselect): Defsubr it.
5448         (mac_store_services_event): Fix extern.
5449         (mac_handle_service_event): Don't allocate Lisp objects during
5450         asynchronous input processing.  Use mac_store_services_event
5451         instead of mac_store_application_menu_event.
5453         * macterm.c (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
5454         (Qpreferences): Remove variables.
5455         (syms_of_macterm) : Don't initialize them.
5456         (Qhicommand) [USE_CARBON_EVENTS]: New variable.
5457         (syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
5458         (init_required_apple_events, do_ae_open_application)
5459         (do_ae_print_documents, do_ae_open_documents)
5460         (do_ae_quit_application): Remove functions and prototypes.
5461         (mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
5462         (mac_find_apple_event_spec): Add externs.
5463         (mac_store_application_menu_event): Remove function.
5464         (mac_store_apple_event, mac_make_lispy_event_code): New functions.
5465         (mac_handle_command_event): Create Apple event from Carbon event.
5466         Use mac_store_apple_event instead of mac_store_application_menu_event.
5467         [MAC_OSX] (mac_store_services_event): Likewise.
5468         (struct SelectionRange, SelectionRange): Remove struct and typedef.
5469         [MAC_OS8] (main): Call init_apple_event_handler instead of
5470         init_required_apple_events.
5471         (mac_initialize) [MAC_OSX]: Likewise.
5472         [!USE_CARBON_EVENTS] (mac_wait_next_event):
5473         Use mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
5475         * macterm.h (mac_make_lispy_event_code, mac_aedesc_to_lisp):
5476         Add externs.
5477         (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
5478         (Fmac_get_preference): Add EXFUN.
5480         * termhooks.h (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT
5481         event.
5483 2005-12-09  Richard M. Stallman  <rms@gnu.org>
5485         * xfns.c (Fx_create_frame): Reinstate previous change.
5487 2005-12-09  Eli Zaretskii  <eliz@gnu.org>
5489         * w32fns.c (w32_abort) [__GNUC__]: Add instructions for attaching
5490         GDB to the abort dialog.
5492 2005-12-09  Kyotaro HORIGUCHI  <horiguti@meadowy.org>  (tiny change)
5494         * indent.c (Fvertical_motion): Force move if starting on
5495         stretch glyph.
5497 2005-12-08  Richard M. Stallman  <rms@gnu.org>
5499         * lread.c (read_escape) <\s>: Don't treat strings specially.
5501         * xfns.c (Fx_create_frame): Comment out previous change.
5503 2005-12-07  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
5505         * xfns.c (Fx_create_frame): Initialize Vdefault_minibuffer_frame,
5506         when needed.
5508 2005-12-06  Stefan Monnier  <monnier@iro.umontreal.ca>
5510         * minibuf.c (keys_of_minibuf): Just unbind SPC in
5511         Vminibuffer_local_filename_completion_map rather than forcing it
5512         explicitly to the same binding as the global map.
5514 2005-12-06  Ken Raeburn  <raeburn@gnu.org>
5516         * buffer.c (Fkill_buffer): Avoid dangerous side effects in NILP args.
5517         * bytecode.c (Fbyte_code): Likewise.
5518         * fileio.c (internal_delete_file, Fread_file_name_internal): Likewise.
5519         * minibuf.c (Fminibuffer_complete_and_exit): Likewise.
5520         * undo.c (truncate_undo_list): Likewise.
5522 2005-12-05  Richard M. Stallman  <rms@gnu.org>
5524         * window.c (enlarge_window): Eliminate arg preserve_before.
5525         Assume it is 0.  All callers changed.
5526         (Fenlarge_window, Fshrink_window): Likewise.
5528 2005-12-02  Eli Zaretskii  <eliz@gnu.org>
5530         * w32fns.c (compute_tip_xy): Put tip above pointer if it doesn't
5531         fit below.
5533 2005-12-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5535         * xterm.h: Add prototype for xg_set_icon_from_xpm_data.
5537         * xfns.c (x_real_positions): int ign => unsigned int.
5538         (xg_set_icon_from_xpm_data): Remove unused variable err.
5539         (x_set_name_internal, Fx_create_frame, xg_set_icon): Add cast
5540         to remove compiler warning.
5541         (compute_tip_xy): Put tip above pointer if it doesn't fit below.
5543 2005-12-02  David Reitter  <david.reitter@gmail.com>
5545         * minibuf.c (Fcompleting_read): If Vminibuffer_completing_file_name is
5546         non-nil, use the new keymaps Vminibuffer_local_filename_completion_map
5547         and Vminibuffer_local_must_match_filename_map keymaps.
5548         (keys_of_minibuf): Bind SPC in the new file-name completion keymaps.
5550         * keymap.c (Vminibuffer_local_filename_completion_map)
5551         (Vminibuffer_local_must_match_filename_map): New variables.
5552         (syms_of_keymap): DEFVAR_LISP them, initialize them, and set their
5553         parent to be Vminibuffer_local_completion_map and
5554         Vminibuffer_local_must_match_map, respectively.
5556         * commands.h (Vminibuffer_local_filename_completion_map)
5557         (Vminibuffer_local_must_match_filename_map): Declare the new keymaps.
5559 2005-12-01  Stefan Monnier  <monnier@iro.umontreal.ca>
5561         * window.c (Fset_window_configuration): Don't accidentally copy the
5562         window-point of one window to another.
5564 2005-11-30  L\e$,1 q\e(Brentey K\e,Aa\e(Broly  <lorentey@elte.hu>
5566         * buffer.c (Fpop_to_buffer): Remove superfluous call to record_buffer.
5568 2005-11-30  Kim F. Storm  <storm@cua.dk>
5570         * alloc.c: Include fcntl.h.  Define O_WRONLY if not defined.
5571         (valid_lisp_object_p) [!GC_MARK_STACK]: Validate pointer by
5572         passing it to `emacs_write'.
5574 2005-11-29  Ari Roponen  <arjuropo@cc.jyu.fi>  (tiny change)
5576         * atimer.c (stop_other_atimers): Fix loop to correctly compute `prev'.
5578 2005-11-27  Richard M. Stallman  <rms@gnu.org>
5580         * window.c (adjust_window_trailing_edge): New function.
5581         (Fadjust_window_trailing_edge): New function.
5582         (syms_of_window): Defsubr it.
5583         (window_deletion_count): New variable.
5584         (delete_window): Update window_deletion_count.
5586 2005-11-26  Eli Zaretskii  <eliz@gnu.org>
5588         * minibuf.c (syms_of_minibuf): Mention the extension of
5589         `completion-auto-help's meaning by complete.el.
5591 2005-11-26  Henrik Enberg  <henrik.enberg@telia.com>
5593         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
5594         Handle :inherit property as a lisp expression.
5596 2005-11-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5598         * macterm.c (Qcontrol): Rename from Qctrl.  All uses changed.
5599         (syms_of_macterm): Staticpro Qcontrol, Qmeta, Qalt, Qhyper,
5600         Qsuper, and Qmodifier_value.
5601         (Vmac_control_modifier, Vmac_option_modifier)
5602         (Vmac_command_modifier, Vmac_function_modifier)
5603         (Vmac_emulate_three_button_mouse, Vmac_wheel_button_is_mouse_2)
5604         (Vmac_pass_command_to_system, Vmac_pass_control_to_system)
5605         (Vmac_charset_info_alist): Doc fixes.
5607 2005-11-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5609         * emacs.c (main) [MAC_OSX]: Change working directory to home
5610         directory if `-psn_*' option is specified.
5612         * mac.c (DECODE_UTF_8): Remove macro.
5613         [TARGET_API_MAC_CARBON] (cfstring_to_lisp_nodecode): New function
5614         created from cfstring_to_lisp.
5615         [TARGET_API_MAC_CARBON] (cfstring_to_lisp): Use it.
5616         (xrm_get_preference_database) [TARGET_API_MAC_CARBON]: Likewise.
5618         * macterm.h (cfstring_to_lisp_nodecode) [TARGET_API_MAC_CARBON]:
5619         Add prototype.
5621 2005-11-21  Ken Raeburn  <raeburn@gnu.org>
5623         * keymap.c (shadow_lookup): Use make_number to pass a number to
5624         Fsubstring.
5626 2005-11-21  Juri Linkov  <juri@jurta.org>
5628         * puresize.h (BASE_PURESIZE): Increment to 1180000.
5630 2005-11-20  Chong Yidong  <cyd@stupidchicken.com>
5632         * xfaces.c (Finternal_set_lisp_face_attribute):
5633         Use :ignore-defface for new frame defaults when `unspecified' is
5634         supplied.
5635         (Finternal_get_lisp_face_attribute): Hide :ignore-defface.
5636         (merge_face_vectors): Don't do :ignore-defface overwriting here.
5637         (Finternal_merge_in_global_face): Do it here.
5639 2005-11-20  Juri Linkov  <juri@jurta.org>
5641         * charset.c (invalid_character): Use Lisp-readable syntax
5642         for octal and hex.  Reorder decimal, octal and hex values.
5644 2005-11-20  Nick Roberts  <nickrob@snap.net.nz>
5646         * lisp.h: Use typedef when Lisp_Object is EMACS_INT so that
5647         this type is recognised when debugging.
5649 2005-11-19  Andreas Schwab  <schwab@suse.de>
5651         * .gdbinit (nextcons, xcdr, xfloat): Update for changes in
5652         Lisp_Cons and Lisp_Float.
5654 2005-11-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5656         * macterm.c [USE_CG_TEXT_DRAWING] (cg_text_anti_aliasing_threshold):
5657         New variable.
5658         [USE_CG_TEXT_DRAWING] (init_cg_text_anti_aliasing_threshold): New fun.
5659         (init_font_name_table) [USE_ATSUI && USE_CG_TEXT_DRAWING]: Use it.
5660         [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Don't do antialiasing if
5661         font size is smaller than or equal to cg_text_anti_aliasing_threshold.
5663 2005-11-17  Chong Yidong  <cyd@stupidchicken.com>
5665         * image.c (x_create_bitmap_from_xpm_data): Free attributes on fail.
5667         * xfaces.c (Qignore_defface): New variable.
5668         (syms_of_xfaces): Provide `:ignore-defface'.
5669         (IGNORE_DEFFACE_P): New macro.
5670         (check_lface_attrs, lface_fully_specified_p)
5671         (Finternal_set_lisp_face_attribute)
5672         (Fface_attribute_relative_p, Fmerge_face_attribute):
5673         Handle Qignore_defface as a possible value.
5674         (merge_face_vectors): The merged face is `unspecified' if the
5675         mergee specifies `:ignore-defface'.
5677 2005-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
5679         * lread.c (readevalloop): Add missing GCPROs.
5681 2005-11-16  Chong Yidong  <cyd@stupidchicken.com>
5683         * xfns.c (xg_set_icon_from_xpm_data): New function.
5685         * gnu.h (gnu_xpm_bits): Rename from gnu_bits.
5686         (gnu_xbm_bits): Rename from gnu_bits (xbm version).
5688         * xterm.c (x_bitmap_icon): Use the xpm if available.
5690         * image.c (x_create_bitmap_from_xpm_data): New function.
5691         (x_create_bitmap_from_xpm_data): Initialize XpmAttributes.
5693 2005-11-15  Luc Teirlinck  <teirllm@auburn.edu>
5695         * Makefile.in (lisp, shortlisp): Add rfn-eshadow.
5697 2005-11-16  Nick Roberts  <nickrob@snap.net.nz>
5699         * .gdbinit: Make SIGTSTP work like SIGINT normally does.
5701 2005-11-15  Andreas Schwab  <schwab@suse.de>
5703         * lisp.h (struct Lisp_Cons): Make cdr a union.
5704         (XCDR_AS_LVALUE): Adjust.
5705         (struct Lisp_Float): Make data a union.
5706         (XFLOAT_DATA): Adjust.
5708         * alloc.c (free_float): Make free list chaining aliasing-safe.
5709         (make_float): Likewise.
5710         (free_cons): Likewise.
5711         (Fcons): Likewise.
5712         (check_cons_list): Likewise.
5713         (Fmake_symbol): Likewise.
5714         (allocate_misc): Likewise.
5715         (free_misc): Likewise.
5716         (gc_sweep): Likewise.
5718 2005-11-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5720         * mac.c (HASHKEY_QUERY_CACHE): New define.
5721         (xrm_create_database, xrm_q_put_resource): Empty query cache.
5722         (xrm_get_resource): Use query cache.
5724         * image.c (init_image) [MAC_OS]: Don't call EnterMovies if
5725         inhibit_window_system is set.
5727 2005-11-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5729         * macgui.h (USE_CG_TEXT_DRAWING): New define.
5730         (struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
5731         and cg_glyphs.
5733         * macterm.c [USE_CG_TEXT_DRAWING] (mac_draw_string_cg): New function.
5734         (x_draw_glyph_string_foreground) [USE_CG_TEXT_DRAWING]: Use it.
5735         (XLoadQueryFont) [USE_CG_TEXT_DRAWING]: Set members cg_font and
5736         cg_glyphs in struct MacFontStruct if synthesized bold or italic is
5737         not used and font substitution never occurs for ASCII and Latin-1
5738         characters.
5739         (XLoadQueryFont): Maximum and minimum metrics are now those among
5740         ASCII characters.
5741         (XLoadQueryFont) [!MAC_OS8 || USE_ATSUI]: Apply WebKit-style
5742         height adjustments for Courier, Helvetica, and Times.
5744         * s/darwin.h (LIBS_CARBON) [!HAVE_CARBON]: Remove `-framework Carbon'.
5746 2005-11-11  David Reitter  <david.reitter@gmail.com>
5748         * macterm.c (syms_of_macterm): Remove macCtrlKey, macShiftKey,
5749         macMetaKey, macAltKey.  Introduce Qctrl, Qmeta,
5750         Vmac_control_modifier / mac-control-modifier,
5751         Vmac_option_modifier / mac-option-modifier,
5752         Vmac_command_modifier / mac-command-modifier.
5753         (mac_to_emacs_modifiers): Use the new style modifier
5754         variables.  Return UInt32 (modifiers are longs now.)
5755         (backtranslate_modified_keycode): New function (refactoring).
5756         (XTread_socket): Use new modifier variables and refactored function.
5757         (mac_determine_quit_char_modifiers): Remove macMetaKey (there is
5758         no dedicated meta key.  Not in use anyway.)
5759         (convert_fn_keycode): Map Fn-keys to their original keycode
5760         using a table (english keyboard only).
5762 2005-11-11  Kim F. Storm  <storm@cua.dk>
5764         * .gdbinit (pitx): Fix output format if n_overlay_strings > 0.
5765         Add post hook to "backtrace" to always dump lisp call stack to
5766         increase chance of people sending it to us when reporting bugs.
5768         * doc.c (Fsubstitute_command_keys): Doc fix.
5770         * dispextern.h (struct it): New member ignore_overlay_strings_at_pos_p.
5772         * xdisp.c (handle_stop): Skip overlay string handling if
5773         ignore_overlay_strings_at_pos_p is set.
5774         (set_iterator_to_next): At end of display vector, set
5775         ignore_overlay_strings_at_pos_p if dpvec came from an overlay
5776         string, so we skip those overlay strings at current pos.
5778 2005-11-10  Lars Hansen  <larsh@soem.dk>
5780         * fileio.c (file-regular-p): Doc fix.
5782 2005-11-10  Kim F. Storm  <storm@cua.dk>
5784         * alloc.c (valid_lisp_object_p): New function to validate that
5785         an object is really a valid Lisp_Object.
5787         * lisp.h (valid_lisp_object_p): Add prototype.
5789         * print.c (safe_debug_print): New function to be called from gdb
5790         to print Lisp objects; use valid_lisp_object_p to avoid crashing
5791         if user tries to print something which is not a Lisp object.
5793         * .gdbinit (pp, pp1): Use safe_debug_print.
5794         (pv, pv1): New commands to print value of a lisp variable.
5796 2005-11-10  Nick Roberts  <nickrob@snap.net.nz>
5798         * .gdbinit (pp1): New user-defined function.
5800 2005-11-09  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5802         * image.c [MAC_OSX] (image_load_quartz2d): Fix memory leak.
5804         * mac.c [MAC_OSX] (init_mac_osx_environment): Reinitialize locale
5805         related variables for dumped executable.
5807         * unexmacosx.c (unexec_write_zero): New function.
5808         (copy_data_segment): Clear uninitialized local variables in
5809         statically linked libraries.
5811         * s/darwin.h (C_SWITCH_SYSTEM): Remove -fno-common.
5813 2005-11-09  Juri Linkov  <juri@jurta.org>
5815         * keymap.c (shadow_lookup): If Flookup_key returns a number,
5816         call it again with a sub-key-sequence, and if its return value
5817         is non-nil (sub-key is bound), return nil.
5819 2005-11-08  Kim F. Storm  <storm@cua.dk>
5821         * process.c (Fsignal_process): Recognize signal names with and
5822         without SIG prefix, e.g. SIGHUP and HUP.
5824         * search.c (search_buffer): No need to initialize base_pat.
5826 2005-11-04  Stefan Monnier  <monnier@iro.umontreal.ca>
5828         * window.c (Fget_lru_window, Fget_largest_window, window_loop):
5829         Don't abuse the `mini' arg.  Use the `obj' arg instead.
5831 2005-11-04  Kim F. Storm  <storm@cua.dk>
5833         * xdisp.c (show_mouse_face): Clear mouse face to eol.
5835 2005-11-03  Dan Nicolaescu  <dann@ics.uci.edu>
5837         * Makefile.in (lisp, shortlisp): Add emacs-lisp/syntax.elc,
5838         font-lock.elc and jit-lock.elc.
5840 2005-11-03  Richard M. Stallman  <rms@gnu.org>
5842         * window.c (Fenlarge_window): Rename SIDE to HORIZONTAL.
5843         (enlarge_window): Rename WIDTHFLAG to HORIZ_FLAG.
5844         (CURBEG, CURSIZE): Use HORIZ_FLAG instead of WIDTHFLAG.
5846         * sheap.c (STATIC_HEAP_SIZE): Increment both definitions.
5848         * alloc.c (refill_memory_reserve): Move decl out of conditionals.
5850 2005-11-03  Stefan Monnier  <monnier@iro.umontreal.ca>
5852         * window.c (Fdisplay_buffer): Fix last change to not use
5853         a dedicated window.
5855 2005-11-01  Kim F. Storm  <storm@cua.dk>
5857         * fringe.c (update_window_fringes): Undo 2005-10-27 change.
5858         Instead, rotate the bottom angle bitmap 180 degrees to indicate
5859         that the bottom row does not end in a newline.
5861 2005-11-01  Andreas Schwab  <schwab@suse.de>
5863         * unexelf.c (unexec): Handle .plt section in BSS segment.
5865 2005-11-01  Stefan Monnier  <monnier@iro.umontreal.ca>
5867         * lread.c (readevalloop): Yet another int/Lisp_Object mixup (YAILOM).
5869         * window.c (window_loop): For LRU and LARGEST, let the `mini' argument
5870         determine whether to consider dedicated windows as well.
5871         (Fget_lru_window, Fget_largest_window): Add `dedicated' argument.
5872         (Fdisplay_buffer): Do consider dedicated windows in those cases where
5873         we will split the window rather than reuse it.
5874         Don't try to use windows on other displays.
5876 2005-10-31  Dan Nicolaescu  <dann@ics.uci.edu>
5878         * puresize.h (BASE_PURESIZE): Increment to 1170000.
5880 2005-10-31  Romain Francoise  <romain@orebokech.com>
5882         * macfns.c: Update copyright year.
5883         * m/gould.h: Likewise.
5885 2005-10-30  Kim F. Storm  <storm@cua.dk>
5887         * xdisp.c (display_line): Restore it->current_x and call
5888         extend_face_to_end_of_line when last glyph doesn't fit on line.
5889         (set_glyph_string_background_width): Remove specific tests here
5890         to see if face background should extend to end of line.  Simplify.
5892 2005-10-30  Richard M. Stallman  <rms@gnu.org>
5894         * alloc.c (BYTES_USED): Use uordblks, not arena.
5895         (bytes_used_when_reconsidered): New variable.
5896         (emacs_blocked_free): Set that.
5898 2005-10-29  Chong Yidong  <cyd@stupidchicken.com>
5900         * alloc.c (emacs_blocked_free): Fix typo.
5902 2005-10-29  Richard M. Stallman  <rms@gnu.org>
5904         * data.c (Fmake_variable_frame_local): Doc fix.
5906         * xdisp.c (handle_fontified_prop): Do nothing if memory full.
5907         (format_mode_line_unwind_data): New arg SAVE_PROPTRANS
5908         controls whether to save and restore mode_line_proptrans_alist.
5909         Callers changed.
5910         (unwind_format_mode_line): Work with that feature.
5911         (redisplay_internal): Don't call prepare_menu_bars if memory full.
5912         (move_elt_to_front): New function.
5913         (display_mode_element): Use move_elt_to_front.
5914         Don't bother munging text props on a null string.
5915         Delete obsolete elts from mode_line_proptrans_alist.
5916         (decode_mode_spec): Test Vmemory_full, not spare_memory.
5917         (Fformat_mode_line): Clear mode_line_proptrans_alist after saving.
5919         * lisp.h (memory_full_cons_threshold): Declare.
5920         (internal_lisp_condition_case): Declare.
5922         * alloc.c (syms_of_alloc) <memory-full>: Doc fix.
5923         (Fmemory_full_p): Function deleted.
5924         (syms_of_alloc): Don't defsubr it.
5925         (memory_full_cons_threshold): New variable.
5926         (spare_memory): Now a vector of 7 elts.
5927         (buffer_memory_full): Don't set Vmemory_full here.
5928         (xfree): Don't try to refill here.
5929         (emacs_blocked_free): Record BYTES_USED in local var.
5930         (memory_full): Now free all the slots in spare_memory.
5931         (refill_memory_reserve): Allocate each slot in spare_memory.
5932         (init_alloc_once): Call refill_memory_reserve.
5934         * keyboard.c (command_loop_1): Don't set Vmemory_full here.
5936         * eval.c (internal_lisp_condition_case): New function.
5937         (Fcondition_case): Use internal_lisp_condition_case.
5938         (Feval): Test Vmemory_full and memory_full_cons_threshold.
5939         (Ffuncall): Likewise.
5941         * bytecode.c (Fbyte_code): Use internal_lisp_condition_case.
5943 2005-10-29  Stefan Monnier  <monnier@iro.umontreal.ca>
5945         * syntax.c (Fparse_partial_sexp): Fix docstring.
5947 2005-10-28  Romain Francoise  <romain@orebokech.com>
5949         * puresize.h (BASE_PURESIZE): Increment to 1130000.
5951 2005-10-28  Richard M. Stallman  <rms@gnu.org>
5953         * xfns.c (syms_of_xfns): Provide `x' as feature.
5955         * xdisp.c (decode_mode_spec): Define %e to indicate memory full.
5957         * editfns.c (Fformat): Don't include string padding
5958         between info[n].start and info[n].end.
5960         * alloc.c (spare_memory): No longer static.
5961         (xfree) [!SYSTEM_MALLOC]: Call refill_memory_reserve.
5963         * puresize.h (BASE_PURESIZE): Increment to 1120000.
5965 2005-10-27  Chong Yidong  <cyd@stupidchicken.com>
5967         * data.c (Fmake_variable_frame_local): Add clarification to docstring.
5969         * fringe.c (update_window_fringes): Handle case where buffer ends
5970         with a newline.
5972 2005-10-27  Kenichi Handa  <handa@m17n.org>
5974         * coding.h (DECODE_SYSTEM): Fix argument name; name->str.
5976 2005-10-24  Kenichi Handa  <handa@m17n.org>
5978         * charset.h (charset_mule_unicode_0100_24ff)
5979         (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
5980         Extern them.
5982         * charset.c (charset_mule_unicode_0100_24ff)
5983         (charset_mule_unicode_2500_33ff, charset_mule_unicode_e000_ffff):
5984         New variables.
5985         (Fsetup_special_charsets): Initialize them.
5987         * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
5988         supported Unicode characters.
5990 2005-10-25  Jason Rumney  <jasonr@gnu.org>
5992         * w32fns.c (w32_to_x_font): Avoid forcing font widths.
5994 2005-10-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5996         * image.c [MAC_OS] (image_load_qt_1): Check image size.
5997         Use GraphicsImportGetImageDescription instead of
5998         GraphicsImportGetNaturalBounds.
5999         [MAC_OSX] (image_load_quartz2d): Check image size.
6000         [MAC_OS] (xpm_load_image): Likewise.
6002         * macterm.c (last_mouse_glyph_frame): New var.
6003         (note_mouse_movement): Say mouse moved if current frame differs
6004         from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6005         (XTmouse_position): Set last_mouse_glyph_frame.
6006         (XTread_socket): Clear last_mouse_glyph_frame on mouse up/down event.
6007         (mac_draw_string_common) [USE_ATSUI && WORDS_BIG_ENDIAN]: Fix typo.
6008         Use EndianU16_BtoN.
6009         (mac_draw_string_common) [MAC_OSX]: Don't use ATSUClearLayoutControls.
6010         (x_per_char_metric, XLoadQueryFont)
6011         [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Use device origins to get
6012         glyph bounds.
6013         (mac_to_x_fontname, mac_do_list_fonts)
6014         (mac_initialize_display_info): Change screen resolutions to 72dpi.
6016 2005-10-25  Masatake YAMATO  <jet@gyve.org>
6018         * minibuf.c (Fdisplay_completion_list): Small doc fix.
6020 2005-10-24  Kim F. Storm  <storm@cua.dk>
6022         * xterm.c: Undo 2005-10-23 change.
6023         (last_mouse_glyph_frame): New var.
6024         (note_mouse_movement): Say mouse moved if current frame differs
6025         from last_mouse_glyph_frame, and update last_mouse_glyph_frame.
6026         (XTmouse_position): Set last_mouse_glyph_frame.
6027         (handle_one_xevent): Clear last_mouse_glyph_frame [instead of
6028         last_mouse_glyph] on mouse up/down event.
6030         * editfns.c (Fcompare_buffer_substrings): Fix last change.
6032 2005-10-23  Stefan Monnier  <monnier@iro.umontreal.ca>
6034         * editfns.c (Fcompare_buffer_substrings): Handle multibyte chars.
6036 2005-10-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6038         * xterm.c (note_mouse_movement): Always call note_mouse_highlight
6039         so tool tips don't interfere with press on tool bar button.
6041 2005-10-23  Richard M. Stallman  <rms@gnu.org>
6043         * casetab.c (Fset_case_table): Doc fix.
6045         * lread.c (build_load_history): Replace STREAM arg with ENTIRE.
6046         (readevalloop): Compute ENTIRE properly.
6047         (syms_of_lread) <load-history>: Doc fix.
6049 2005-10-21  Richard M. Stallman  <rms@gnu.org>
6051         * lread.c (Fload): Simplify gcpro structure.
6052         Gcpro FOUND as well as FILE, but not EFOUND.
6053         Unless preloading, record FOUND instead of FILE in Vload_history.
6054         Rename repeat local FILE to MSG_FILE.
6055         (syms_of_lread) <load-history>: Doc fix.
6057 2005-10-21  Kenichi Handa  <handa@m17n.org>
6059         * search.c (boyer_moore): Add parens to fix and/or precedence bug.
6061 2005-10-20  Kim F. Storm  <storm@cua.dk>
6063         * buffer.c (clone_per_buffer_values): Remove unused var tem.
6064         (init_buffer): Remove unused vars dotstat, pwdstat.
6066         * ccl.c (check_ccl_update): Remove unused var vp.
6068         * fileio.c (auto_save_error): Call SAFE_FREE.
6070         * fns.c (Fchar_table_range): Remove unused var i.
6072         * minibuf.c (display_completion_list_1): New wrapper function
6073         for Fdisplay_completion_list.
6074         (Fminibuffer_completion_help): Use it.
6076         * term.c (encode_terminal_code): Remove unused var src_start.
6078         * window.c (Fwindow_tree): Remove unused var alist.
6080         * xterm.c (x_calc_absolute_position): Remove unused vars win_x, win_y.
6082 2005-10-20  Aubrey Jaffer  <agj@alum.mit.edu>  (tiny change)
6084         * unexelf.c (unexec): Fix calls to `fatal' with less than 3 arguments.
6086 2005-10-20  Olli Savia  <ops@iki.fi>  (tiny change)
6088         * syssignal.h [__Lynx__]: Undef SIGPOLL along with SIGIO.
6090 2005-10-20  Andreas Schwab  <schwab@suse.de>
6092         * minibuf.c (Fdisplay_completion_list): Doc fix.
6094 2005-10-19  Kim F. Storm  <storm@cua.dk>
6096         * image.c (check_image_size): Handle integer Vmax_image_size value
6097         directly as max pixel value.  Use default frame size for null frame.
6098         (syms_of_image) <max-image-size>: Describe integer value.
6100 2005-10-19  Romain Francoise  <romain@orebokech.com>
6102         * emacs.c (main): Update copyright year.
6104 2005-10-18  Chong Yidong  <cyd@stupidchicken.com>
6106         * image.c (Vmax_image_size): New variable.
6107         (check_image_size): New function.
6108         (xbm_read_bitmap_data, pbm_load, png_load, jpeg_load, tiff_load)
6109         (gif_load, gs_load): Use it.
6110         (lookup_image): Try loading again if previous load failed.
6111         (xbm_read_bitmap_data): Add a new argument, a pointer to the frame
6112         to display in, NULL if none.
6113         (xbm_load_image, xbm_file_p): Pass xbm_read_bitmap_data the new
6114         argument.
6116 2005-10-18  Richard M. Stallman  <rms@gnu.org>
6118         * search.c (Fstring_match): Doc fix.
6120 2005-10-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6122         * macterm.c (note_mouse_movement): Use PtInRect.
6123         (XTread_socket): Also ignore mouse motion just before a button
6124         release event.  Don't process button release event when mouse is
6125         not grabbed.
6127 2005-10-16  Masatake YAMATO  <jet@gyve.org>
6129         * minibuf.c (Fdisplay_completion_list): Add new optional
6130         argument COMMON_SUBSTRING.  Bind `completion-common-substring'
6131         to the optional argument during running `completion-setup-hook'.
6133 2005-10-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6135         * mac.c [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp):
6136         Allow nil as argument.
6137          [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Regard nil
6138         for encoding arguments as UTF-16 in native byte order, no BOM.
6140         * macfns.c (Fx_create_frame): Add debugging code.
6141         (Fx_show_tip): Set frame pixel width and height.
6143         * macterm.c (MAC_WINDOW_NORMAL_GC): Remove macro.
6144         (FRAME_NORMAL_GC): New macro.
6145         (mac_draw_line, mac_clear_area, mac_clear_window)
6146         (mac_fill_rectangle, mac_draw_string, mac_draw_string_16)
6147         (mac_draw_image_string, mac_draw_image_string_16): Rename from
6148         XDrawLine, XClearArea, XClearWindow, XFillRectangle, XDrawString,
6149         XDrawString16, XDrawImageString, and XDrawImageString16, respectively.
6150         All uses changed.
6151         (mac_draw_line, mac_erase_rectangle, mac_clear_area)
6152         (mac_clear_window, mac_draw_bitmap, mac_draw_rectangle)
6153         (mac_invert_rectangle, mac_draw_string_common, mac_draw_string)
6154         (mac_draw_string_16, mac_draw_image_string)
6155         (mac_draw_image_string_16, mac_copy_area, mac_copy_area_with_mask)
6156         (mac_scroll_area): Drawing functions now take frame as destination.
6157         All uses changed.
6158         (mac_draw_string_common): Get port height with FRAME_PIXEL_HEIGHT.
6159         (x_draw_fringe_bitmap): Set clipping area in face->gc.
6161         * macterm.h (mac_clear_area): Add extern.
6163 2005-10-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6165         * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
6166         changes for xterm.c.
6168         * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
6170 2005-10-14  Kenichi Handa  <handa@m17n.org>
6172         * search.c (search_buffer): Give up BM search on case-fold-search
6173         if one of a target character has a case-equivalence of different
6174         charset even if that target charcter is an ASCII.
6176         * casefiddle.c (casify_object): Fix for the case that case
6177         conversion change the byte length.
6179 2005-10-14  Kim F. Storm  <storm@cua.dk>
6181         * xterm.c (note_mouse_movement): Return 1 if mouse moved; 0 otherwise.
6182         (handle_one_xevent): Only clear help_echo_string; restore it if
6183         note_mouse_movement didn't record any mouse movement.
6185         * xdisp.c (pos_visible_p): Convert w->hscroll to pixels before use.
6186         (remember_mouse_glyph): Clear RECT if mouse is over an image glyph.
6188         * keyboard.c (make_lispy_position): Adjust wx for left margin if
6189         ON_TEXT.
6190         (Fposn_at_x_y): Fix calculation of x coordinate.
6191         (Fposn_at_point): Return nil if point is hscrolled out of view.
6193 2005-10-13  Andreas Schwab  <schwab@suse.de>
6195         * sysdep.c (request_sigio, unrequest_sigio): Do nothing in
6196         non-interactive mode.
6198 2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6200         * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
6202 2005-10-12  Kim F. Storm  <storm@cua.dk>
6204         * xterm.c (handle_one_xevent): Clear last_mouse_glyph on mouse up/down.
6206 2005-10-12  Romain Francoise  <romain@orebokech.com>
6208         * buffer.c (init_buffer): Rename `rc' to `len' for clarity.
6210 2005-10-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6212         * xdisp.c (remember_mouse_glyph): Use MATRIX_BOTTOM_TEXT_ROW to
6213         get end of text rows.  Obtain header-line/mode-line rows directly.
6215         * xterm.c, w32term.c, macterm.c (note_mouse_movement):
6216         Restore help_echo_string if mouse is moved inside last_mouse_glyph.
6218 2005-10-12  Kim F. Storm  <storm@cua.dk>
6220         * xdisp.c (remember_mouse_glyph): New generic version based on
6221         glyph_rect and remember_mouse_glyph from xterm.c enhanced to
6222         properly handle all different window areas.
6224         * dispextern.h (remember_mouse_glyph): Add prototype.
6226         * xterm.c (glyph_rect, remember_mouse_glyph): Remove X versions.
6227         (note_mouse_movement, XTmouse_position): Use generic
6228         remember_mouse_glyph, add last_mouse_glyph arg.
6230         * w32term.c (note_mouse_movement): Fix last_mouse_glyph check.
6231         (glyph_rect, remember_mouse_glyph): Remove w32 specific versions.
6232         (note_mouse_movement, w32_mouse_position): Use generic
6233         remember_mouse_glyph, add last_mouse_glyph arg.
6235         * macterm.c (note_mouse_movement): Add call to remember_mouse_glyph.
6236         (glyph_rect, remember_mouse_glyph): Remove mac specific versions.
6237         (XTmouse_position): Adapt to use generic remember_mouse_glyph
6238         instead of pixel_to_glyph_coords.
6240         * window.c (coordinates_in_window): Fix x position for ON_RIGHT_MARGIN.
6241         Fix x position for ON_TEXT when left margin width > 0.
6243 2005-10-11  Kim F. Storm  <storm@cua.dk>
6245         * window.c (coordinates_in_window): Fix y position for ON_SCROLL_BAR.
6247         * keyboard.c (make_lispy_position): Fix buffer calculations for
6248         mouse click or movement in right fringe and the margins.
6250 2005-10-11  Juanma Barranquero  <lekktu@gmail.com>
6252         * image.c (fn_jpeg_stdio_src): Don't define it.
6253         (init_jpeg_functions): Don't initialize `fn_jpeg_stdio_src'.
6254         (our_common_init_source): Rename from `our_init_source'.
6255         (our_common_term_source): Rename from `our_term_source'.
6256         (our_memory_fill_input_buffer): Rename from
6257         `our_fill_input_buffer'.
6258         (our_memory_skip_input_data): Rename from `our_skip_input_data'.
6259         (jpeg_memory_src): Use the new names.
6260         (struct jpeg_stdio_mgr): New struct.
6261         (JPEG_STDIO_BUFFER_SIZE): New constant.
6262         (our_stdio_fill_input_buffer, our_stdio_skip_input_data)
6263         (jpeg_file_src): New functions.
6264         (jpeg_load): Use `jpeg_file_src' instead of `fn_jpeg_stdio_src'.
6266 2005-10-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6268         * macterm.c (PER_CHAR_METRIC): Remove unused macro.
6269         (fm_font_family_alist): New variable.
6270         (syms_of_macterm): Initialize and staticpro it.
6271         (decode_mac_font_name): Replace '-' in family name with '_' if it
6272         occurs just once.  Lower family name.
6273         (parse_x_font_name): Rename from x_font_name_to_mac_font_name.
6274         All uses changed.  Remove argument MF and code conversion for it.
6275         Add argument SIZE.  Rename argument MF_DECODED to FAMILY, and CS
6276         to CHARSET.  Parse font size.  Lower family name.  Return integer
6277         value for status of parsing.
6278         (init_font_name_table) [USE_ATSUI]: Use decode_mac_font_name.
6279         Don't use Fdowncase because family name is already lowered by
6280         decode_mac_font_name.
6281         (init_font_name_table): Always call decode_mac_font_name.
6282         Add pair of family name and its reference to fm_font_family_alist.
6283         (mac_clear_font_name_table): Clear fm_font_family_alist.
6284         (XLoadQueryFont): Move font size parsing part to parse_x_font_name.
6285         Lookup fm_font_family_alist to get font family reference.
6286         (XLoadQueryFont) [USE_ATSUI]: Don't use Fdowncase because family
6287         name is already lowered by parse_x_font_name.
6289 2005-10-11  Kim F. Storm  <storm@cua.dk>
6291         * xterm.c (glyph_rect): Return 0 if position is outside text area.
6293         * keyboard.c (make_lispy_position): Fix buffer position calculation for
6294         mouse click or movement in fringe.
6296 2005-10-10  Jason Rumney  <jasonr@gnu.org>
6298         * xterm.c (remember_mouse_glyph): New function.
6299         (note_mouse_movement): Use it to remember the current glyph if changed.
6300         (XTmouse_position): Fix calculation of fake glyph under mouse.
6301         Move code to calculate glyph under mouse into remember_mouse_glyph.
6303 2005-10-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6305         * emacs.c (USAGE3, standard_args): -nb => -nbi.
6307 2005-10-10  Juanma Barranquero  <lekktu@gmail.com>
6309         * frame.c (Fredirect_frame_focus): Fix typos in docstring.
6310         (next_frame, prev_frame, set_term_frame_name): Make static.
6312         * window.c (Fwindow_tree): Fix spelling.
6314 2005-10-09  Romain Francoise  <romain@orebokech.com>
6316         * window.c (Fwindow_end): Don't try to redisplay if non-interactive.
6318 2005-10-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6320         * emacs.c (standard_args): Remove options -i, -itype, --icon-type.
6321         Add options -nb, --no-bitmap-icon.
6323         * xfns.c (Fx_create_frame): Make bitmapIcon have default on.
6325 2005-10-08  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6327         * macgui.h (MAX_CLIP_RECTS): New define.
6328         (struct _XGC): New member clip_region.
6329         (struct _XGC) [MAC_OSX && USE_ATSUI]: New members n_clip_rects and
6330         clip_rects.
6332         * macterm.c (GC_CLIP_REGION): New macro.
6333         (saved_port_clip_region): New variable.
6334         (mac_begin_clip, mac_end_clip): New functions.
6335         (XDrawLine, mac_erase_rectangle, mac_draw_bitmap, XFillRectangle)
6336         (mac_draw_rectangle, mac_draw_string_common, mac_copy_area)
6337         (mac_copy_area_with_mask, mac_scroll_area): Use them.
6338         (mac_set_clip_rectangle, mac_reset_clipping): Remove functions.
6339         [USE_ATSUI] (atsu_get_text_layout_with_text_ptr)
6340         [MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Specify kATSLineFractDisable.
6341         (mac_draw_string_common) [MAC_OSX && USE_ATSUI]: Clip to clipping
6342         rectangles stored in gc.
6343         (XFreeGC): Dispose of clipping region.
6344         (mac_set_clip_rectangles, mac_reset_clip_rectangles): New functions.
6345         (x_draw_fringe_bitmap, x_set_glyph_string_clipping)
6346         (x_draw_relief_rect, x_draw_box_rect, x_draw_stretch_glyph_string)
6347         (x_draw_glyph_string, x_clip_to_row, x_draw_hollow_cursor)
6348         (x_draw_bar_cursor): Use them.
6349         (x_set_glyph_string_clipping): Use get_glyph_string_clip_rects to
6350         get multiple clipping rectangles.
6352         * macterm.h (mac_term_init): Add types to extern.
6353         (struct mac_output): Remove members mWP and pending_menu_activation.
6354         Put members scroll_bar_foreground_pixel and
6355         scroll_bar_background_pixel in #if 0.
6356         (FRAME_MAC_WINDOW, FRAME_X_WINDOW): Use window_desc.
6358         * xfaces.c (x_create_gc, x_free_gc) [MAC_OS]: Add BLOCK_INPUT.
6359         Add debugging code.
6361 2005-10-08  Kim F. Storm  <storm@cua.dk>
6363         * window.c (window_tree, Fwindow_tree): Rename fns added 2005-10-04.
6365 2005-10-07  Kim F. Storm  <storm@cua.dk>
6367         * dispnew.c (redraw_overlapped_rows, redraw_overlapping_rows)
6368         [!HAVE_WINDOW_SYSTEM]: Don't declare them...
6369         (update_window) [!HAVE_WINDOW_SYSTEM]: ...and don't call them.
6371 2005-10-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6373         * dispextern.h (struct glyph_string): Rename member for_overlaps_p
6374         to for_overlaps.  Now occupy 3 bits.
6375         (OVERLAPS_PRED, OVERLAPS_SUCC, OVERLAPS_BOTH)
6376         (OVERLAPS_ERASED_CURSOR): New defines.
6377         (struct redisplay_interface): Add new OVERLAPS arg to member
6378         fix_overlapping_area.
6379         (x_fix_overlapping_area): Add new OVERLAPS arg.
6380         (get_glyph_string_clip_rects): Add extern.
6382         * dispnew.c (redraw_overlapping_rows):
6383         Call rif->fix_overlapping_area with new OVERLAPS arg as redrawn part.
6385         * xdisp.c: Rename member for_overlaps_p in struct glyph_string to
6386         for_overlaps.
6387         (get_glyph_string_clip_rects): New function created from
6388         get_glyph_string_clip_rect.  Set clipping rectangles according to the
6389         value of for_overlaps.  Enable to store multiple clipping rectangles.
6390         (get_glyph_string_clip_rect): Use get_glyph_string_clip_rects.
6391         (fill_composite_glyph_string, fill_glyph_string, draw_glyphs):
6392         Rename argument OVERLAPS_P to OVERLAPS.  All uses in macros changed.
6393         (x_fix_overlapping_area): Add OVERLAPS arg.  Pass it to draw_glyphs.
6394         (draw_phys_cursor_glyph): Set width of erased cursor to use it for
6395         calculating clipping rectangles later.  Call x_fix_overlapping_area
6396         with new OVERLAPS arg to draw only erased cursor area.
6397         (expose_overlaps): Call x_fix_overlapping_area with new OVERLAPS arg
6398         to draw overlaps in both preceding and succeeding rows.
6400         * xterm.c, w32term.c, macterm.c: Rename member for_overlaps_p in
6401         struct glyph_string to for_overlaps.
6403 2005-10-04  Richard M. Stallman  <rms@gnu.org>
6405         * alloc.c (refill_memory_reserve): Conditionalize the body,
6406         not the function's existence.
6408 2005-10-04  Kim F. Storm  <storm@cua.dk>
6410         * window.c (window_split_tree): New function.
6411         (Fwindow_split_tree): New defun.
6412         (syms_of_window): Defsubr it.
6414 2005-10-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6416         * macterm.c (mac_invert_rectangle): New function.
6417         (XTflash): Use it.
6419 2005-10-04  Stefan Monnier  <monnier@iro.umontreal.ca>
6421         * regex.h (re_char): Don't expose it in the interface.
6422         (re_set_whitespace_regexp): Adjust the arg's type to not use it.
6424         * regex.c (re_char): Move it back here.
6425         (re_set_whitespace_regexp): Change the arg's type to not use it.
6427         * keyboard.c (make_lispy_event): If point has moved between down and up
6428         event, make it a drag, not a click, to mirror what
6429         mouse-drag-region expects.
6431 2005-10-02  Dan Nicolaescu  <dann@ics.uci.edu>
6433         * lisp.h (fatal): Undo previous change.
6434         * term.c (fatal): Undo previous change.
6436 2005-10-01  Richard M. Stallman  <rms@gnu.org>
6438         * xfaces.c (face_color_gray_p): Colors close to black count as gray.
6440 2005-10-01  Kim F. Storm  <storm@cua.dk>
6442         * xdisp.c (try_window): Skip scroll-margin check if ZV is visible.
6444 2005-10-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6446         * keyboard.c (init_keyboard) [MAC_OSX]: Don't install SIGINT handler.
6448         * macfns.c (start_hourglass): Apply 2005-05-07 change for xfns.c.
6449         (x_create_tip_frame) [GLYPH_DEBUG]: Uncomment debugging code.
6450         (Fx_create_frame, x_create_tip_frame) [USE_ATSUI]:
6451         Try ATSUI-compatible 12pt Monaco font first.
6453         * macgui.h (struct _XCharStruct): New member valid_p.
6454         (STORE_XCHARSTRUCT): Set valid_p.
6455         (struct MacFontStruct) [USE_ATSUI]: New member mac_style.
6457         * macterm.c (mac_draw_string_common, x_per_char_metric)
6458         (mac_compute_glyph_string_overhangs, init_font_name_table)
6459         (XLoadQueryFont, mac_unload_font) [USE_ATSUI]: Add ATSUI support.
6460         (atsu_get_text_layout_with_text_ptr) [USE_ATSUI]: New function.
6461         (x_draw_glyph_string_background)
6462         (x_draw_glyph_string_foreground) [MAC_OS8 && USE_ATSUI]: Don't use
6463         XDrawImageString.  Always draw background and foreground separately.
6464         (x_draw_glyph_string_foreground) [USE_ATSUI]: Don't use 8-bit
6465         functions for one-byte chars when using ATSUI-compatible fonts.
6466         (atsu_font_id_hash) [USE_ATSUI]: New variable.
6467         (syms_of_macterm) [USE_ATSUI]: Initialize and staticpro it.
6468         (XLoadQueryFont): Set min_byte1, max_byte1, min_char_or_byte2, and
6469         max_char_or_byte2 more in detail.
6470         (quit_char_comp, mac_check_for_quit_char) [MAC_OSX]: Remove functions.
6472 2005-09-30  Dan Nicolaescu  <dann@ics.uci.edu>
6474         * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correct type.
6475         * xterm.c (handle_one_xevent, handle_one_xevent): Likewise.
6477         * unexelf.c (fatal): Fix prototype.
6479         * term.c (fatal): Implement using varargs.
6481         * regex.c (re_char): Move typedef ...
6482         * regex.h (re_char): ... here.
6483         (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes.
6485         * emacs.c (malloc_set_state): Fix return type.
6486         (endif): Fix type.
6488         * lisp.h (fatal): Add argument types.
6490         * dispextern.h (fatal): Delete prototype.
6492         * systime.h (make_time): Prototype moved from ...
6493         * editfns.c (make_time): ... here.
6495         * editfns.c: Move systime.h include after lisp.h.
6496         * dired.c:
6497         * xsmfns.c:
6498         * process.c: Likewise.
6500         * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook):
6501         Add parameter types.
6502         (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes.
6503         (emacs_blocked_free): Change definition to match __free_hook.
6504         (emacs_blocked_malloc): Change definition to match __malloc_hook.
6505         (emacs_blocked_realloc): Change definition to match __realloc_hook.
6507 2005-09-30  Romain Francoise  <romain@orebokech.com>
6509         * minibuf.c (Fread_buffer): Follow convention for reading from the
6510         minibuffer with a default value.  Doc fix.
6512 2005-09-29  Juri Linkov  <juri@jurta.org>
6514         * editfns.c (Fmessage, Fmessage_box, Fmessage_or_box):
6515         Rename argument name `string' to `format-string'.
6516         (Fformat): Doc fix.
6518 2005-09-28  Kim F. Storm  <storm@cua.dk>
6520         * image.c (gif_load): Fix size of allocated image buffer
6521         for images where a sub-image may be larger than the image's
6522         total height/width specifications.
6524 2005-09-28  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6526         * macgui.h (struct _XCharStruct): Each member now takes short value.
6528 2005-09-27  Dan Nicolaescu  <dann@ics.uci.edu>
6530         * xfaces.c (lookup_derived_face): Add parameter type.
6532         * xdisp.c (cursor_row_fully_visible_p): Add parameter type.
6534         * marker.c (verify_bytepos): Add parameter type.
6536         * process.c (get_operating_system_release): Move prototype ...
6538         * systime.h (get_operating_system_release): ... here.
6540         * xterm.c (handle_one_xevent): Refer to union field to match the
6541         type required by the function definition.
6542         (set_vertical_scroll_bar): Move prototype ...
6544         * xterm.h: ... here.
6546         * fns.c (internal_equal, seed_random): Fix prototypes.
6547         (internal_equal): Add missing parameter.
6549 2005-09-25  Richard M. Stallman  <rms@gnu.org>
6551         * keyboard.c (update_menu_bindings): Variable deleted.
6552         (syms_of_keyboard): Don't defvar it.
6553         (parse_menu_item): Don't test it.
6555 2005-09-23  Richard M. Stallman  <rms@gnu.org>
6557         * editfns.c (Fformat): Explicitly test for end of format string
6558         and don't use `index'.
6560 2005-09-23  Dan Nicolaescu  <dann@ics.uci.edu>
6562         * s/aix4-2.h (BROKEN_GET_CURRENT_DIR_NAME):
6563         Define BROKEN_GET_CURRENT_DIR_NAME.
6565         * sysdep.c (get_current_dir_name): Also define if
6566         BROKEN_GET_CURRENT_DIR_NAME.
6568         * m/ibmrs6000.h: Test for USG5, not USG5_4.
6570 2005-09-22  Kim F. Storm  <storm@cua.dk>
6572         * xdisp.c (message_dolog): Add warning about GC and Lisp strings.
6573         (message2): Fix commentary.  Ok to use alloca'ed memory.
6574         Still not ok to use Lisp string data (because of GC).
6575         (set_message): Add comment why GC cannot happen.
6577 2005-09-22  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6579         * macterm.c (xlfdpat_block_match_1): Fix assertion.
6580         (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't add style
6581         variants for a scalable font multiple times.
6583 2005-09-21  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6585         * process.c (create_process) [RTU || UNIPLUS || DONT_REOPEN_PTY]:
6586         Setup slave tty options before forking.
6588 2005-09-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6590         * gtkutil.c (xg_set_geometry): Do a gtk_window_move if program
6591         positions have been set for the frame (as is done for frames in
6592         special-display-buffer-names).
6594 2005-09-19  Kim F. Storm  <storm@cua.dk>
6596         * editfns.c (Fformat): Don't scan past end of format string that
6597         ends in %.  Reported by: Johan Bockg\e,Ae\e(Brd.
6599 2005-09-18  Andreas Schwab  <schwab@suse.de>
6601         * window.h (struct window): Remove height_fixed_p, no longer set.
6603         * window.c (make_window): Don't initialize height_fixed_p.
6604         (window_fixed_size_p): Don't use it.
6606 2005-09-18  John Paul Wallington  <jpw@pobox.com>
6608         * data.c (Fdefalias): Signal an error if SYMBOL is not a symbol.
6610 2005-09-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6612         * Makefile.in (SOME_MACHINE_OBJECTS): Undo previous change.
6614         * macfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
6615         New variables.
6616         [TARGET_API_MAC_CARBON] (Fx_file_dialog): Don't allow multiple
6617         file selection.
6619         * sysdep.c [MAC_OS8]: Don't include stdlib.h.  Include sys/param.h.
6621 2005-09-17  Eli Zaretskii  <eliz@gnu.org>
6623         * Makefile.in (XMENU_OBJ) [!HAVE_CARBON]: Reinstate variable.
6624         (obj): Use XMENU_OBJ, not a literal xmenu.o.
6626 2005-09-16  Romain Francoise  <romain@orebokech.com>
6628         * fileio.c (syms_of_fileio) <write-region-inhibit-fsync>: Doc fix.
6630 2005-09-15  Richard M. Stallman  <rms@gnu.org>
6632         * xdisp.c (overlay_arrow_at_row): Add HAVE_WINDOW_SYSTEM conditional.
6633         (display_mode_element): Instead of `lisp_string' and `this',
6634         record `offset' and increment that.
6635         `last_offset' replaces `last'.
6637         * Makefile.in (XMENU_OBJ): Variable deleted.
6638         (obj): Use xmenu.o unconditionally.
6639         (SOME_MACHINE_OBJECTS): Delete xmenu.o.
6641         * emacs.c (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.
6643 2005-09-15  Kim F. Storm  <storm@cua.dk>
6645         * xdisp.c (move_it_vertically): Don't try to fetch byte BEGV-1.
6646         (reseat_at_next_visible_line_start): Likewise (in xassert).
6648 2005-09-14  Romain Francoise  <romain@orebokech.com>
6650         * fileio.c (write_region_inhibit_fsync): New variable.
6651         (Fwrite_region): Use it to skip call to fsync.
6652         (syms_of_fileio): Initialize it.
6654 2005-09-14  Kenichi Handa  <handa@m17n.org>
6656         * coding.c (code_convert_region_unwind): Argument format changed.
6657         (run_pre_post_conversion_on_str): If pre-write-conversion function
6658         changed the current buffer, delete the new buffer.
6659         (run_pre_write_conversin_on_c_str): Likewise.
6661         * fileio.c (Fexpand_file_name): Check multibyteness of
6662         default_directory.
6664 2005-09-13  Kenichi Handa  <handa@m17n.org>
6666         * composite.c (compose_chars_in_text): Delete it.
6668         * composite.h (compose_chars_in_text): Delete extern.
6670 2005-09-13  Kim F. Storm  <storm@cua.dk>
6672         * print.c (print_error_message): Fix last change.
6674 2005-09-12  Kim F. Storm  <storm@cua.dk>
6676         * composite.c (compose_chars_in_text): Fix setup of `pend'.
6677         Unconditionally reload `ptr' and `pend' after eval.
6679         * xdisp.c (message3): Pass copy of lisp string to message_dolog.
6681         * print.c (print_error_message): Pass copy of caller name to
6682         message_dolog.
6684         * fileio.c (auto_save_error): Pass copy of lisp string to message2.
6686 2005-09-12  Kenichi Handa  <handa@m17n.org>
6688         * xdisp.c (display_mode_element): Be sure to make variables THIS
6689         and LISP_STRING point into a string data of ELT.
6691 2005-09-12  Kim F. Storm  <storm@cua.dk>
6693         * editfns.c (Ftranslate_region_internal): Reload `tt' after
6694         signal_after_change that may have GC'ed.
6695         (Fmessage, Fmessage_box, Fmessage_or_box): Doc fix.
6697         * keymap.c (Fdescribe_buffer_bindings): Reload `translate'
6698         after insert while runs signal_after_change.
6700         * minibuf.c (Fminibuffer_complete_word): Move `completion_string'
6701         declaration to where it is used.
6703         * w32.c (check_windows_init_file): Fix allocation of error buffer.
6705         * xfns.c (x_encode_text): Declare static.  Add FREEP arg.
6706         (x_set_name_internal): Call x_encode_text with new FREEP arg to
6707         know if xfree is needed instead of guessing.
6709         * xterm.h (x_encode_text): Remove prototype.
6711 2005-09-11  Chris Prince  <cprince@gmail.com>  (tiny change)
6713         * w32term.c (x_bitmap_icon): Load small icons too.
6715 2005-09-10  Romain Francoise  <romain@orebokech.com>
6717         * buffer.c (init_buffer): Grow buffer to add directory separator
6718         and terminal zero.  Fix typos.
6720 2005-09-10  Eli Zaretskii  <eliz@gnu.org>
6722         * buffer.c (init_buffer): Fix error message for failed call to
6723         get_current_dir_name.
6724         (get_current_dir_name): Remove prototype.
6726         * xsmfns.c (get_current_dir_name): Remove prototype.
6728         * lisp.h (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
6729         Add prototype.
6731         * sysdep.c [WINDOWSNT]: Add prototype for getwd.
6732         Don't #undef NULL after including blockinput.h.
6734         * config.in: Regenerated.
6736 2005-09-10  Giuseppe Scrivano  <gscrivano@gmail.com>
6738         Remove the MAXPATHLEN limitations:
6740         * sysdep.c (get_current_dir_name) [!HAVE_GET_CURRENT_DIR_NAME]:
6741         New function.
6743         * buffer.c (init_buffer): Use it.
6745         * xsmfns.c (smc_save_yourself_CB): Ditto.
6747 2005-09-09  Kim F. Storm  <storm@cua.dk>
6749         * doc.c (Fsubstitute_command_keys): Lookup key binding for
6750         commands that are remapped from some other command.
6752         * xdisp.c (try_window_reusing_current_matrix): Clear mode_line_p
6753         flag in disabled rows below the window.
6755         * frame.h (struct frame): New member updated_p.
6757         * xdisp.c (redisplay_internal): Mark updated frames in new updated_p
6758         member.  Remove local `updated' array and associated variables.
6760 2005-09-07  Kim F. Storm  <storm@cua.dk>
6762         * xdisp.c (handle_display_prop): Respect overlay window property.
6764         * xdisp.c (try_window): Remove superfluous cursor_height calculation.
6765         Fixes crash reported by YAMAMOTO Mitsuharu.
6767 2005-09-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6769         * macterm.c (struct xlfdpat_block, struct xlfdpat): New structs.
6770         (xlfdpat_destroy, xlfdpat_create, xlfdpat_exact_p)
6771         (xlfdpat_block_match_1, xlfdpat_match): New functions.
6772         (xlfdpat_block_match): New macro.
6773         (mac_to_x_fontname): Don't use tolower for non-ASCII characters.
6774         (x_font_name_to_mac_font_name): Set coding.dst_multibyte to 0.
6775         (add_font_name_table_entry): Increase font_name_table_size more
6776         rapidly.
6777         (mac_c_string_match): Remove function.
6778         (mac_do_list_fonts): Use XLFD pattern match instead of regular
6779         expression match.
6781         * xfaces.c (xstrlwr): Don't use tolower for non-ASCII characters.
6783 2005-09-03  Richard M. Stallman  <rms@gnu.org>
6785         * xdisp.c (redisplay_internal): Make UPDATED as long as needed.
6786         (move_it_in_display_line_to): Stop after last char on line even
6787         on a windowing terminal, if that's the specified stop position.
6789         * fns.c (Fsort): Doc fix.
6791         * editfns.c (Fpropertize): Don't insist that properties be symbols.
6793 2005-09-02  Stefan Monnier  <monnier@iro.umontreal.ca>
6795         * dired.c (directory_files_internal_unwind, directory_files_internal)
6796         (file_name_completion): Use a Save_Value object rather than a cons of
6797         two 16bit ints to store the DIR*.
6798         (directory_files_internal, file_name_completion): Handle both EINTR and
6799         EAGAIN consistently after `readdir'.
6801 2005-09-01  Stefan Monnier  <monnier@iro.umontreal.ca>
6803         * intervals.c (update_interval): Add position info in error.
6805         * dispnew.c (window_to_frame_hpos, update_window):
6806         Avoid gcc warning about unused variable `f'.
6808 2005-08-31  Jason Rumney  <jasonr@gnu.org>
6810         * w32menu.c (add_menu_item): If unicode_append_menu returns an
6811         error, revert to using AppendMenu.
6813 2005-08-31  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6815         * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN): Remove argument.
6816         All uses changed.
6817         [MAC_OS] (XPutPixel, XGetPixel): Add efficient versions for common
6818         cases.
6819         (x_create_x_image_and_pixmap) [MAC_OS]: Don't call x_destroy_x_image.
6820         [MAC_OS] (find_image_fsspec) [!MAC_OSX]: Don't use FSRef.
6821         Use posix_pathname_to_fsspec.
6822         [MAC_OS] (xpm_load_image): Fill in background_transparent field
6823         while we have mask.
6825         * macgui.h [!TARGET_API_MAC_CARBON] (GetPixDepth): New define.
6827         * macterm.h (PIX_MASK_DRAW, PIX_MASK_RETAIN): Move defines to image.c.
6829 2005-08-29  Stefan Monnier  <monnier@iro.umontreal.ca>
6831         * syntax.c (update_syntax_table): Properly reproduce the special +1
6832         setting of e_property at the end of the buffer when bumping into the
6833         INTERVALS_AT_ONCE limit.
6835 2005-08-27  Eli Zaretskii  <eliz@gnu.org>
6837         * emacs.c (USAGE1): Fix the description of the -Q option.
6839 2005-08-26  Stefan Monnier  <monnier@iro.umontreal.ca>
6841         * xdisp.c (pos_visible_p): Yet another int/Lisp_Object mixup (YAILOM).
6843 2005-08-26  Kim F. Storm  <storm@cua.dk>
6845         * xdisp.c (resize_mini_window): Fix 2005-08-20 change.
6846         Don't move PT to new window start.
6848 2005-08-25  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6850         * keyboard.c (kbd_buffer_get_event) [MAC_OS]: Make events for
6851         ICONIFY/DEICONIFY_EVENT.
6853         * macterm.c (mac_copy_area, mac_copy_area_with_mask):
6854         Restore background color.
6855         (mac_handle_visibility_change): New function.
6856         (x_make_frame_invisible, x_iconify_frame)
6857         (XTread_socket) [!USE_CARBON_EVENTS]: Use it.
6858         [USE_CARBON_EVENTS] (mac_handle_window_event)
6859         (install_window_handler): Handle visibility change events.
6860         (x_make_frame_visible): Don't reposition window if it is iconified
6861         or asked for visible before.  Select and uncollapse window when it
6862         is made visible.
6863         (x_make_frame_invisible): Don't reset x_highlight_frame.
6864         (x_iconify_frame): Likewise.  Make invisible frame visible before
6865         it is iconified.
6866         (read_socket_inev): Move variable outside #if USE_CARBON_EVENTS.
6867         (do_window_update): Don't change visibility of invisible frame.
6869 2005-08-22  Juri Linkov  <juri@jurta.org>
6871         * term.c (turn_on_face): Check for TS_set_foreground and
6872         TS_set_background depending on standout_mode.  Simplify.
6874 2005-08-21  Kim F. Storm  <storm@cua.dk>
6876         * fringe.c (update_window_fringes): Only put TOP and BOTTOM
6877         bitmaps on fully visible rows.
6879         * fringe.c (update_window_fringes): Replace FORCE_P arg with
6880         KEEP_CURRENT_P arg; if non-zero, don't update current row fringes,
6881         and return 0.
6883         * xdisp.c (redisplay_window): Call update_window_fringes with
6884         KEEP_CURRENT_P non-0 if we are going to refresh fringes later.
6886 2005-08-20  Richard M. Stallman  <rms@gnu.org>
6888         * xdisp.c (display_echo_area_1): Get display start pos from w->start.
6889         (resize_mini_window): Set w->start, and PT, so as to display the tail
6890         end of the buffer, if it doesn't all fit.
6892 2005-08-18  Kim F. Storm  <storm@cua.dk>
6894         * xdisp.c (calc_pixel_width_or_height): Use actual display
6895         resolution when available instead of Vdisplay_pixels_per_inch.
6897 2005-08-17  Kim F. Storm  <storm@cua.dk>
6899         * xdisp.c (pos_visible_p): Adjust X value if window is hscrolled.
6901         * dispnew.c (buffer_posn_from_coords): Check that target row is
6902         within matrix.
6904 2005-08-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6906         * xterm.c (x_wm_set_icon_pixmap): Move GTK specific code to
6907         xg_set_frame_icon and call it.
6909         * gtkutil.c (xg_set_frame_icon): New function.
6911         * gtkutil.h (xg_set_frame_icon): Declare it.
6913 2005-08-16  Kim F. Storm  <storm@cua.dk>
6915         * dispnew.c (increment_row_positions): Skip non-enabled rows.
6917         * window.c (SAVED_WINDOW_VECTOR_SIZE): Remove dangerous define.
6918         (Fcurrent_window_configuration): Use VECSIZE macro instead.
6920 2005-08-15  Richard M. Stallman  <rms@gnu.org>
6922         * xdisp.c (message3_nolog): Clear echo_message_buffer.
6924 2005-08-15  Kim F. Storm  <storm@cua.dk>
6926         * lisp.h (QUIT) [!SYNC_INPUT]: Throw t to Vthrow_on_input.
6928         * process.c (deactivate_process, status_notify, read_process_output)
6929         (update_status, status_convert, decode_status, allocate_pty)
6930         (make_process, remove_process, list_processes_1)
6931         (create_process_1, unwind_request_sigio, read_process_output)
6932         (send_process, keyboard_bit_set): Declare static.
6933         (Fdelete_process): Simplify.  Pass process to status_notify, so we
6934         don't try to read output from it.
6935         (status_notify): New arg deleting_process--don't try to read
6936         output from that process.
6938         * lisp.h (deactivate_process, status_notify, read_process_output):
6939         Remove prototypes.
6941 2005-08-14  Richard M. Stallman  <rms@gnu.org>
6943         * image.c (syms_of_image): Init Qxbm, Qpbm before calling
6944         define_image_type.
6946 2005-08-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6948         * gtkutil.c (xg_get_pixbuf_from_pix_and_mask): New function.
6949         (xg_get_image_for_pixmap): Move some code to
6950         xg_get_pixbuf_from_pix_and_mask, and call it.
6952         * gtkutil.h (xg_get_pixbuf_from_pix_and_mask): Declare.
6954         * xterm.c (x_wm_set_icon_pixmap): Call xg_get_pixbuf_from_pix_and_mask
6955         to get an GTK icon and set it with GTK functions to avoid having GTK
6956         override an icon set with just X functions.
6958 2005-08-11  Richard M. Stallman  <rms@gnu.org>
6960         * image.c (syms_of_image): Init image_types here, and call
6961         define_image_type.
6962         (init_image): Not here.
6964 2005-08-09  Richard M. Stallman  <rms@gnu.org>
6966         * bytecode.c (BYTE_CODE_QUIT): Throw t to Vthrow_on_input.
6968         * lisp.h (QUIT): Throw t to Vthrow_on_input.
6970 2005-08-09  Thien-Thi Nguyen  <ttn@gnu.org>
6972         * floatfns.c (Fexpt): Use floats for negative exponent.
6974 2005-08-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6976         * gtkutil.c (xg_modify_menubar_widgets): Remove semicolon that
6977         should not be there, causing menu display errors with GTK 2.6.9.
6979 2005-08-07  Richard M. Stallman  <rms@gnu.org>
6981         * floatfns.c (Fexpt): Undo previous change.
6983         * dispnew.c (Fframe_or_buffer_changed_p): Take an arg
6984         so it can be used with various state vectors.
6986         * emacs.c (endif): Convert -script into -scriptload.
6987         (standard_args): Add -scriptload.  Allow -basic-display with one dash.
6989         * fns.c (syms_of_fns): Add `emacs' to features.
6991         * term.c (set_terminal_modes): If no TS_termcap_modes string,
6992         output newlines to scroll the old screen contents off the screen.
6994 2005-08-06  Thien-Thi Nguyen  <ttn@gnu.org>
6996         * floatfns.c (Fexpt): Use floats for negative exponent.
6997         Reported by D Goel.
6999 2005-08-02  Richard M. Stallman  <rms@gnu.org>
7001         * frame.c (Fframe_char_width): Doc fix.
7003 2005-07-30  Juanma Barranquero  <lekktu@gmail.com>
7005         * xdisp.c (syms_of_xdisp) <redisplay-end-trigger-functions>:
7006         Defvar it.
7008 2005-07-28  Juanma Barranquero  <lekktu@gmail.com>
7010         * w32fns.c (my_set_window_pos, my_show_window): Don't declare.
7011         (my_create_window, my_create_tip_window): Make static.
7013         * w32term.c (my_show_window, my_set_window_pos, my_set_focus)
7014         (my_set_foreground_window, my_destroy_window): Make static.
7016 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
7018         Merge gnulib getopt implementation into Emacs.
7020         * s/cygwin.h (C_SWITCH_SYSTEM): Remove, since gettext.h is
7021         now part of lib-src.
7023 2005-07-26  Stefan Monnier  <monnier@iro.umontreal.ca>
7025         * eval.c (Fdefvar): Allow (defvar enable-multibyte-characters).
7027 2005-07-25  Jason Rumney  <jasonr@gnu.org>
7029         * w32menu.c (w32_menu_display_help): Suppress tooltip when
7030         navigating menus with the keyboard.
7032 2005-07-23  Richard M. Stallman  <rms@gnu.org>
7034         * insdel.c (syms_of_insdel): staticpro combine_after_change_buffer.
7036         * bytecode.c (MAYBE_GC): Test gc_cons_threshold and
7037         gc_relative_threshold, one by one.
7039         * keyboard.c (read_char): Test gc_cons_threshold.
7040         (syms_of_keyboard): staticpro Qecho_area_clear_hook.
7042         * eval.c (Feval, Ffuncall): Test gc_cons_threshold and
7043         gc_relative_threshold, one by one.
7045         * alloc.c (gc_cons_threshold): Not static.
7046         (gc_cons_combined_threshold): Var deleted.
7047         (gc_relative_threshold): New variable.
7048         (Fgarbage_collect, init_alloc_once): Compute gc_relative_threshold
7049         instead of gc_cons_combined_threshold.
7051         * lisp.h (gc_cons_threshold, gc_relative_threshold): Declare.
7052         (gc_cons_combined_threshold): Declaration deleted.
7054 2005-07-23  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7056         * mac.c: Don't include stdlib.h or string.h.
7057         (Fdo_applescript, Fmac_file_name_to_posix)
7058         (Fmac_file_name_to_posix): Doc fixes.
7059         [TARGET_API_MAC_CARBON] (Fmac_get_preference)
7060         (Fmac_code_convert_string): Likewise.
7061         [MAC_OSX] (init_mac_osx_environment): Fall back on terminal mode
7062         if the executable is not contained in a bundle.
7064         * macfns.c: Don't include stdlib.h or string.h.  Include atimer.h.
7065         (gray_width, gray_height): Remove defines.
7066         (gray_bits, gray_bitmap_width, gray_bitmap_height)
7067         (gray_bitmap_bits): Remove variables.
7068         (lispy_function_keys): Remove extern.
7069         (free_frame_menubar): Add extern.
7070         (x_window_to_frame): Remove function.
7071         (unwind_create_tip_frame): Add declaration.
7072         (x_set_name_internal): New function.
7073         (x_set_name, x_set_title): Use it.
7074         (Fx_create_frame, Fx_display_grayscale_p, Fx_display_pixel_width)
7075         (Fx_display_pixel_height, Fx_display_planes)
7076         (Fx_display_color_cells, Fx_server_max_request_size)
7077         (Fx_server_vendor, Fx_server_version, Fx_display_screens)
7078         (Fx_display_mm_height, Fx_display_mm_width)
7079         (Fx_display_backing_store, Fx_display_visual_class)
7080         (Fx_display_save_under, Fx_synchronize, Fx_show_tip): Doc fixes.
7082         * macmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
7084         * macselect.c (Fx_own_selection_internal): Follow error conventions.
7085         (Fx_get_selection_internal, Fx_selection_owner_p)
7086         (Fx_selection_exists_p): Doc fixes.
7087         (syms_of_macselect) <selection-converter-alist>: Likewise.
7089 2005-07-21  Juanma Barranquero  <lekktu@gmail.com>
7091         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
7093         * ccl.c (Fregister_ccl_program): Fix typos in docstring.
7094         (Fccl_execute_on_string): Likewise; add usage info.
7096         * composite.c (Fcompose_region_internal)
7097         (Fcompose_string_internal):
7098         Improve argument/docstring consistency.
7100         * minibuf.c (Fminibuffer_prompt_end, Feval_minibuffer):
7101         Fix typos in docstrings.
7103         * textprop.c (Fnext_char_property_change)
7104         (Fprevious_char_property_change): Doc fixes.
7106         * window.c (Fset_window_margins, Fset_window_fringes):
7107         Improve argument/docstring consistency.
7109         * xfaces.c (Finternal_lisp_face_p): Doc fix.
7111 2005-07-21  Andreas Schwab  <schwab@suse.de>
7113         * eval.c (restore_stack_limits): Return a value.
7115 2005-07-20  Juanma Barranquero  <lekktu@gmail.com>
7117         * eval.c (Fdefvar): Doc fix.
7119 2005-07-20  Kim F. Storm  <storm@cua.dk>
7121         * fileio.c (Fdo_auto_save, do_auto_save_unwind):
7122         Use make_save_value to unwind protect stream.
7124         * lread.c (Fload, load_unwind):
7125         Use make_save_value to unwind protect stream.
7127 2005-07-19  Juanma Barranquero  <lekktu@gmail.com>
7129         * eval.c (Fprog2, Fcalled_interactively_p),
7130         (syms_of_eval) <debug-on-quit>: Doc fixes.
7131         (syms_of_eval) <max-specpdl-size>:
7132         (Finteractive_p): Fix typos in docstrings.
7134 2005-07-19  Kim F. Storm  <storm@cua.dk>
7136         * w32fns.c (Vx_hand_shape): Variable removed.
7137         (syms_of_w32fns): Intern and staticpro Qw32_charset_default.
7139 2005-07-19  Kenichi Handa  <handa@m17n.org>
7141         * fns.c (Fstring_as_multibyte): Escape backslashes in the docstring.
7143 2005-07-18  Stefan Monnier  <monnier@iro.umontreal.ca>
7145         * buffer.h (Fgenerate_new_buffer_name): Declare (for use in coding.c).
7147 2005-07-18  Kim F. Storm  <storm@cua.dk>
7149         * frame.h (struct frame): New member already_hscrolled_p.
7151         * xdisp.c (redisplay_internal): Only try to hscroll each frame once
7152         to avoid redisplay looping hscrolling back and forth ad infinitum.
7154 2005-07-18  Juri Linkov  <juri@jurta.org>
7156         * buffer.c (scroll-up-aggressively, scroll-down-aggressively):
7157         * keymap.c (Fminor_mode_key_binding):
7158         * macterm.c (mac-emulate-three-button-mouse):
7159         Delete duplicate duplicate words.
7161 2005-07-18  Ken Raeburn  <raeburn@gnu.org>
7163         * minibuf.c (Ftest_completion): Fix odd syntax in test.
7165 2005-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7167         * macfns.c (x_set_cursor_color): Use XSetBackground and XSetForeground.
7169         * macgui.h (struct _XGC): New struct.
7170         (GC): Use it.
7171         (GCForeground, GCBackground, GCFont): Use X11 mask values.
7172         (XCreateGC, XParseGeometry): Move externs to macterm.h.
7174         * macterm.c (x_bitmap_icon, x_make_frame_visible): Remove declarations.
7175         (XSetFont): Add declaration.
7176         (mac_set_forecolor, mac_set_backcolor, mac_set_colors):
7177         Remove functions.
7178         (GC_FORE_COLOR, GC_BACK_COLOR, GC_FONT, MAC_WINDOW_NORMAL_GC):
7179         New defines.
7180         (XDrawLine, mac_draw_line_to_pixmap, XClearWindow)
7181         (mac_draw_bitmap, XCreatePixmapFromBitmapData, XFillRectangle)
7182         (mac_draw_rectangle, mac_draw_string_common, mac_scroll_area):
7183         Use them.
7184         (mac_erase_rectangle): New function.
7185         (XClearArea, x_draw_fringe_bitmap, x_clear_glyph_string_rect)
7186         (x_draw_stretch_glyph_string): Use it.
7187         (XChangeGC, XCreateGC, XGetGCValues, XSetForeground)
7188         (XSetBackground, XSetFont): Adjust for new GC implementation.
7189         (x_draw_fringe_bitmap, x_draw_box_rect): Use GC to set colors.
7190         (XTset_vertical_scroll_bar): Clear area under scroll bar.
7192         * macterm.h (struct mac_display_info): Change types of
7193         scratch_cursor_gc black_relief.gc, and white_relief.gc to GC.
7194         (XCreateGC, XParseGeometry): Move externs from macgui.h.
7196         * xfaces.c [MAC_OS] (XCreateGC): Remove extern.
7198 2005-07-16  Richard M. Stallman  <rms@gnu.org>
7200         * buffer.c (Fmake_overlay): Doc fix.
7202 2005-07-16  Eli Zaretskii  <eliz@gnu.org>
7204         * w32proc.c (syms_of_ntproc): staticpro Qhigh, Qlow,
7205         Vw32_valid_locale_ids, and Vw32_valid_codepages.
7207 2005-07-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7209         * mac.c [TARGET_API_MAC_CARBON] (Fmac_code_convert_string):
7210         Use Fstring_as_unibyte instead of string_make_unibyte.
7212 2005-07-15  Richard M. Stallman  <rms@gnu.org>
7214         * xdisp.c (select_frame_for_redisplay): Use find_symbol_value.
7216 2005-07-15  Kim F. Storm  <storm@cua.dk>
7218         * xdisp.c: Fix redisplay loop in last change.
7219         (IT_POS_VALID_AFTER_MOVE_P): New macro.
7220         (move_it_vertically_backward, move_it_by_lines): Use it.
7222 2005-07-14  Jason Rumney  <jasonr@gnu.org>
7224         * w32.c (init_environment): Default HOME directory to user's
7225         appdata directory if possible.
7227 2005-07-14  Kim F. Storm  <storm@cua.dk>
7229         * .gdbinit (pitx): Fix output format.  Print string charpos.
7231         * lread.c (syms_of_lread): Initialize seen_list.
7233         * search.c (syms_of_search): Staticpro searchbuf.whitespace_regexp.
7235         * syntax.c (syms_of_syntax): Staticpro lisp objects in gl_state.
7236         Staticpro re_match_object.
7238 2005-07-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7240         * macselect.c (get_scrap_target_type_list): Avoid NULL pointer
7241         dereference.
7243         * macterm.c (mac_window_to_frame): Remove duplicate define.
7245 2005-07-14  Kenichi Handa  <handa@m17n.org>
7247         * coding.c (code_convert_region_unwind): ARG is changed to a cons.
7248         (code_convert_region): Adjust for the above change.
7249         (set_conversion_work_buffer): If the work buffer is already in
7250         use, generate a new buffer and return it.  Otherwise return Qnil.
7251         (run_pre_post_conversion_on_str): Adjust for the above change.
7252         (run_pre_write_conversin_on_c_str): Likewise.
7254 2005-07-13  Kim F. Storm  <storm@cua.dk>
7256         * xdisp.c (start_display): Don't reseat to next visible line start
7257         if current start position is in a string or image.
7258         (move_it_vertically_backward): Be sure to move out of strings and
7259         images when moving it2 forward.
7260         (move_it_by_lines): When moving forward, move to next buffer
7261         position if we end up in a string or image.  When moving backward,
7262         count rows moved over when moving to start of current row in case
7263         row starts in middle of a string or image.  Also move further
7264         backward if we end up in a string or image.
7265         (try_cursor_movement): If overlay string spans multiple lines,
7266         move backward to set cursor on start of an overlay string.
7267         (cursor_row_p): Row is ok if cursor is at newline from string, but
7268         string starts on this line (so we always position cursor at start
7269         of string).
7271         * indent.c (Fvertical_motion): If start position is on an image,
7272         don't move back if we move too far (that's almost certain to happen).
7274         * xdisp.c (cursor_row_fully_visible_p): Allow partially visible
7275         row in minibuffer windows.
7276         (try_window): Don't check margins in minibuffer windows.
7278 2005-07-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7280         * macterm.c: Don't include stdlib.h or composite.h.
7281         (x_use_underline_position_properties, last_mouse_press_frame)
7282         (x_noop_count, Qvendor_specific_keysyms): Remove unused variables.
7283         (syms_of_macterm, mac_initialize): Don't initialize them.
7284         (waiting_for_input, initial_argv, initial_argc)
7285         (Vcommand_line_args, Vx_no_window_manager, errno, window_scroll)
7286         (set_frame_menubar, path_from_vol_dir_name): Remove externs.
7287         (extra_keyboard_modifiers): Fix type in extern.
7288         (x_window_to_frame, x_window_to_scroll_bar): Remove declarations.
7289         (x_scroll_bar_report_motion): Add argument types to declaration.
7290         (mac_compute_glyph_string_overhangs): Add declaration.
7291         (disable_mouse_highlight): Remove unused variable.
7292         [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click)
7293         (x_scroll_bar_handle_press, x_scroll_bar_handle_release)
7294         (x_scroll_bar_handle_drag): Remove argument `timestamp'.
7295         All callers changed.
7296         [USE_TOOLKIT_SCROLL_BARS] (construct_scroll_bar_click): Don't set
7297         timestamp.
7298         [USE_CARBON_EVENTS] (mac_handle_mouse_event): Likewise.
7299         (x_scroll_bar_create, XTset_vertical_scroll_bar): Show scroll bar
7300         only when its width is less than the height.
7301         (XTredeem_scroll_bar): Sync with xterm.c.
7302         (font_name_table, font_name_table_size, font_name_count):
7303         Make static.
7304         (drag_and_drop_file_list): Remove variable.  Previous use is now
7305         local to function.
7306         (do_ae_open_documents): Move DRAG_N_DROP event construction part
7307         from XTread_socket.
7308         (XTread_socket): Consolidate setting of event timestamp.
7309         Move DRAG_N_DROP event construction part to do_ae_open_documents.
7310         Support extra_keyboard_modifiers.
7312         * xfaces.c (try_font_list) [MAC_OS]: Try font family name
7313         beginning with that for ASCII.
7315 2005-07-13  Stefan Monnier  <monnier@iro.umontreal.ca>
7317         * alloc.c (gc_cons_combined_threshold, Vgc_cons_percentage): New vars.
7318         (Fgarbage_collect, init_alloc_once): Set gc_cons_combined_threshold.
7319         (syms_of_alloc): Declare gc-cons-percentage.
7321         * eval.c (Feval, Ffuncall):
7322         * keyboard.c (read_char):
7323         * bytecode.c (MAYBE_GC): Use gc_cons_combined_threshold.
7325         * lisp.h (gc_cons_combined_threshold): Declare.
7327 2005-07-12  Kim F. Storm  <storm@cua.dk>
7329         * coding.c (Qprocess_argument):
7330         * coding.h (Qprocess_argument): Remove unused var.
7332         * xselect.c (intern): Remove dup. intern and staticpro for QTIMESTAMP.
7334 2005-07-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7336         * mac.c [!TARGET_API_MAC_CARBON]: Include charset.h, coding.h, and
7337         Endian.h.
7338         [!MAC_OSX] (fchmod, fchown): New functions.
7339         (mac_get_code_from_arg): Don't accept Lisp integer as argument.
7340         Use SBYTES and EndianU32_BtoN.
7341         (mac_get_object_from_code): Return 4 byte string even if argument
7342         is 0.  Use make_unibyte_string and EndianU32_NtoB.
7343         (Fmac_get_file_creator, Fmac_get_file_type, Fmac_set_file_creator)
7344         (Fmac_set_file_type): Fix documents and argument declarations.
7345         Don't specify kFSCatInfoNodeFlags.  Support Mac OS Classic.
7347 2005-07-11  Stefan Monnier  <monnier@iro.umontreal.ca>
7349         * window.c (Frecenter): Yet another int/Lisp_Object mixup (YAILOM).
7351 2005-07-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7353         * xfaces.c (x_update_menu_appearance): Use fontSet resource for
7354         Lucid if X_I18N, font otherwise.
7356 2005-07-10  Steven Tamm  <steventamm@mac.com>
7358         * mac.c (Fmac_get_file_type, Fmac_get_file_creator): Add.
7359         (Fmac_set_file_type, Fmac_set_file_creator): Add.
7360         (mac_get_object_from_code, mac_get_code_from_arg): Add.
7362 2005-07-10  Richard M. Stallman  <rms@gnu.org>
7364         * lread.c (Qeval_buffer_list, Veval_buffer_list): New vars.
7365         (syms_of_lread): Set up eval-buffer-list.
7366         (Feval_buffer, Feval_region): Bind eval-buffer-list.
7368 2005-07-08  Richard M. Stallman  <rms@gnu.org>
7370         * eval.c (Fdefvar): Allow defvaring a constant to itself quoted.
7372 2005-07-08  Kim F. Storm  <storm@cua.dk>
7374         * keyboard.c (menu_bar_items): Don't GCPRO menu_bar_items_vector here.
7375         (syms_of_keyboard): Initialize and staticpro menu_bar_items_vector.
7377 2005-07-07  Kim F. Storm  <storm@cua.dk>
7379         * window.c (Frecenter): Fix last change (set iarg before use).
7381 2005-07-06  Richard M. Stallman  <rms@gnu.org>
7383         * window.c (Frecenter): When arg is inside the scroll margin,
7384         move it out of the margin.
7386 2005-07-06  Jason Rumney  <jasonr@gnu.org>
7388         * w32console.c (initialize_w32_display): Detect when the console
7389         dimensions are insane, and default to 80x25 instead.
7390         (w32_use_full_screen_buffer): Default to nil.
7392 2005-07-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7394         * macterm.c (mac_draw_vertical_window_border): Use foreground of
7395         VERTICAL_BORDER_FACE_ID for vertical border line.
7396         (mac_encode_char): Call check_ccl_update in advance.
7397         (mac_to_x_fontname, x_font_name_to_mac_font_name)
7398         (init_font_name_table, mac_do_list_fonts, XLoadQueryFont):
7399         Don't assume that font family length is less than 32.
7400         (x_compute_min_glyph_bounds): Make static.
7401         (x_load_font): Never set fonts_changed_p to zero.
7403 2005-07-04  Lute Kamstra  <lute@gnu.org>
7405         * Update FSF's address in GPL notices.
7407 2005-07-03  Richard M. Stallman  <rms@gnu.org>
7409         * xdisp.c (try_window): Fix previous change in how it handles
7410         a partially-visible line or one only partly past the margin.
7412         * window.c (window_scroll_pixel_based): Take account
7413         of this_scroll_margin when finding point when scrolling up.
7415 2005-06-29  Ralf Angeli  <angeli@iwi.uni-sb.de>
7417         * window.c (window_scroll_pixel_based, window_scroll_line_based):
7418         Handle `scroll-preserve-screen-position' non-nil, non-t specially.
7419         (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
7421 2005-07-02  Juri Linkov  <juri@jurta.org>
7423         * w32term.c (w32_draw_vertical_window_border): Use foreground of
7424         VERTICAL_BORDER_FACE_ID for vertical border line.
7426 2005-07-02  Eli Zaretskii  <eliz@gnu.org>
7428         * fileio.c (Fcopy_file): Rearrange the code that calls fchown and
7429         fchmod so that chmod doesn't get called on MSDOS before the file
7430         is closed.
7432 2005-07-01  Jason Rumney  <jasonr@gnu.org>
7434         * w32term.c (cleartype_active): New flag for enabling sub-pixel
7435         workaround.
7436         (w32_initialize): Initialize it.
7437         (w32_native_per_char_metric): Allow a couple of extra pixels when
7438         Cleartype is active.
7440         * w32term.c (w32_initialize): Move check for screen reader here
7441         from syms_of_w32term.
7443 2005-06-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7445         * xterm.c (handle_one_xevent): bzero compose_status when nbytes
7446         is not zero.
7448 2005-07-01  Masatake YAMATO  <jet@gyve.org>
7450         * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
7452 2005-06-30  Juri Linkov  <juri@jurta.org>
7454         * xdisp.c (x_draw_vertical_border): If left fringe is not present
7455         decrease x coord of vertical border by 1 pixel to not occupy text
7456         area of the right window.
7458         * xterm.c (x_draw_vertical_window_border): Use foreground of
7459         VERTICAL_BORDER_FACE_ID for vertical border line.
7461         * term.c (turn_on_face): In standout mode apply specified
7462         fg to bg, and specified bg to fg (this makes the logic of
7463         inversion on terminal consistent with X).
7465 2005-06-29  Juanma Barranquero  <lekktu@gmail.com>
7467         * eval.c (user_variable_p_eh): New function.
7468         (Fuser_variable_p): Use it.  Clarify docstring.
7469         Return t for aliases of user options, nil for alias loops.
7471 2005-06-27  Richard M. Stallman  <rms@gnu.org>
7473         * eval.c (Fdefvar): Improve error message.
7475 2005-06-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7477         * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Fix last
7478         change.
7480 2005-06-27  Juanma Barranquero  <lekktu@gmail.com>
7482         * eval.c (Fdefvar): Don't try to set constant symbols.
7484 2005-06-25  Richard M. Stallman  <rms@gnu.org>
7486         * macfns.c (Fx_show_tip): Pass new arg to try_window.
7488         * w32fns.c (Fx_show_tip): Pass new arg to try_window.
7490         * xfns.c (Fx_show_tip): Pass new arg to try_window.
7492         * xdisp.c (try_window): New arg CHECK_MARGINS.  Calls changed.
7493         (redisplay_window): Handle try_window reporting point in scroll margin.
7495         * dispextern.h (try_window): Declare new arg.
7497         * fileio.c (Fcopy_file): New arg PRESERVE_UID_GID.
7498         Use fchmod to copy the file modes.
7499         (Frename_file): Don't copy UID and GID here;
7500         instead, specify t for PRESERVE_UID_GID when calling Fcopy_file.
7502         * eval.c (call_debugger): Take full care of extending stack limits
7503         to make space for the debugger, and restore the change afterward.
7504         Bind debug-on-error to nil.
7505         (restore_stack_limits): New subroutine.
7506         (Fsignal): Extend specpdl bound along with eval depth bound,
7507         for calling edebug.  Don't do either one, for calling debugger.
7508         (find_handler_clause): Don't bind debug-on-error here.
7509         Don't unbind anything either.
7510         Temporarily advance max_specpdl_size for calling
7511         internal_with_output_to_temp_buffer.
7512         (grow_specpdl): Don't alter max_specpdl_size before signaling
7513         an error.
7514         (syms_of_eval) <max-specpdl-size>: Doc fix.
7516         * lread.c (read1): 0.0e+NaN should make a "positive" NaN.
7518 2005-06-24  Eli Zaretskii  <eliz@gnu.org>
7520         * fileio.c (Frename_file): Undo last change: no need to ifdef away
7521         chown on DOS_NT platforms.
7523         * w32.c (sys_chown): New function.
7525         * s/ms-w32.h (chown): New; define to sys_chown.
7527 2005-06-24  Juanma Barranquero  <lekktu@gmail.com>
7529         * xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
7530         (syms_of_xdisp) <void-text-area-pointer>: Doc fix.
7532         * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
7534 2005-06-23  Richard M. Stallman  <rms@gnu.org>
7536         * xdisp.c (get_next_display_element): Finish reversing the tests of
7537         Vnobreak_char_display.
7539         * xdisp.c (Vnobreak_char_display): Rename from Vshow_nonbreak_escape.
7540         All uses changed.
7541         (Qnobreak_space): Rename from Qno_break_space.  All uses changed.
7542         (syms_of_xdisp): Define nobreak-char-display and nobreak-space.
7544         * fileio.c (Frename_file): Preserve owner and group, if possible,
7545         when copying.
7547 2005-06-23  Juanma Barranquero  <lekktu@gmail.com>
7549         * abbrev.c (Funexpand_abbrev):
7550         * category.c (Fmake_category_set):
7551         * dispnew.c (Fsleep_for, Fsit_for):
7552         * editfns.c (Fsubst_char_in_region):
7553         * eval.c (Fdefvar, Fdefconst, Feval, Ffuncall):
7554         * frame.c (make_frame_without_minibuffer):
7555         * lread.c (read_vector):
7556         * macfns.c (check_x_frame):
7557         * process.c (Fstop_process, Fcontinue_process):
7558         * search.c (Freplace_match):
7559         * syntax.c (Fstring_to_syntax):
7560         * w32fns.c (check_x_frame, check_x_display_info):
7561         * xfaces.c (x_supports_face_attributes_p):
7562         * xselect.c (Fx_own_selection_internal): Follow error conventions.
7564         * image.c (fn_png_init_io): Don't define it.
7565         (init_png_functions) [HAVE_NTGUI]: Don't initialize fn_png_init_io.
7566         (png_read_from_file): New function, based on png_read_from_memory.
7567         (png_load): Use it, instead of fn_png_init_io.
7569 2005-06-23  Kim F. Storm  <storm@cua.dk>
7571         * search.c (Fmatch_data): Remove evaporate option.
7572         (Fset_match_data): Do not mention evaporate option in doc string.
7573         Add commentary explaining evaporate arg (for internal use only).
7574         (unwind_set_match_data): Add comment on evaporate use.
7576 2005-06-22  Miles Bader  <miles@gnu.org>
7578         * xfaces.c (Qvertical_border): Rename from `Qvertical_divider'.
7579         (realize_basic_faces, syms_of_xfaces): Update references to it.
7580         * dispextern.h (enum face_id): Rename `VERTICAL_DIVIDER_FACE_ID'
7581         to `VERTICAL_BORDER_FACE_ID'.
7582         * dispnew.c (build_frame_matrix_from_leaf_window): Update references.
7584 2005-06-21  Juri Linkov  <juri@jurta.org>
7586         * dispextern.h: Add extern Qframe_set_background_mode.
7588         * xfaces.c: Rename obsolete function Qframe_update_face_colors to
7589         Qframe_set_background_mode.
7591         * frame.c (Fmodify_frame_parameters):
7592         Call frame-set-background-mode after changing the background color
7593         on non-window non-dos branch.
7595 2005-06-21  Juanma Barranquero  <lekktu@gmail.com>
7597         * fns.c (Fchar_table_range):
7598         * process.c (Fmake_network_process): Fix spellings.
7600 2005-06-20  Kim F. Storm  <storm@cua.dk>
7602         * fns.c (Fsort): Doc fix.
7604 2005-06-20  Miles Bader  <miles@gnu.org>
7606         * xfaces.c (Qvertical_divider): New variable.
7607         (realize_basic_faces): Realize its face.
7608         (syms_of_xfaces): Initialize it.
7610         * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
7612         * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
7613         window-separator on ttys using `vertical-divider' face by default.
7615 2005-06-17  Richard M. Stallman  <rms@gnu.org>
7617         * xdisp.c (get_next_display_element):
7618         Reverse test of Vshow_nonbreak_escape.
7620         * term.c (produce_special_glyphs): Use spec_glyph_lookup_face.
7621         (Ftty_no_underline): New function.
7622         (syms_of_term): defsubr it.
7624         * keyboard.c (read_char): Call restore_getcjmp after jump occurs.
7626         * dispnew.c (spec_glyph_lookup_face): New function.
7627         (build_frame_matrix_from_leaf_window): Use it.
7629         * dispextern.h (spec_glyph_lookup_face): Add declaration.
7631         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
7633 2005-06-12  Richard M. Stallman  <rms@gnu.org>
7635         * keyboard.c (read_char): After catching a longjmp,
7636         call restore_getcjmp.
7638 2005-06-17  Juanma Barranquero  <lekktu@gmail.com>
7640         * xselect.c (lisp_data_to_selection_data): Fix spelling.
7642 2005-06-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7644         * macterm.c (mac_compute_glyph_string_overhangs): Don't set
7645         overhangs unless the given glyph type is noncomposite CHAR_GLYPH.
7646         [USE_CARBON_EVENTS] (mac_convert_event_ref): Convert dead key down
7647         events.
7648         (XTread_socket): Don't pass keyboard events with the option
7649         modifier to the system when Vmac_command_key_is_meta is nil or
7650         Vmac_option_modifier is non-nil.
7651         [USE_CARBON_EVENTS] (read_socket_inev): New variable.
7652         [USE_CARBON_EVENTS] (init_command_handler): Fix argument.
7653         [USE_CARBON_EVENTS] (mac_handle_mouse_event): New Carbon event
7654         handler function.
7655         (install_window_handler) [USE_CARBON_EVENTS]: Install it.
7656         (XTread_socket) [USE_CARBON_EVENTS]: Move mouse wheel event
7657         handler part to mac_handle_mouse_event.
7659 2005-06-14  Juanma Barranquero  <lekktu@gmail.com>
7661         * eval.c (Fdefvaralias): Rename arguments SYMBOL and ALIASED to
7662         NEW-ALIAS and BASE-VARIABLE, respectively.
7664 2005-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
7666         * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
7667         (get_phys_cursor_geometry, format_mode_line_unwind_data)
7668         (get_line_height_property, x_produce_glyphs): Remove unused vars.
7670         * coding.c (run_pre_post_conversion_on_str): Remove unused var `buf'.
7672 2005-06-13  Eli Zaretskii  <eliz@gnu.org>
7674         * w32term.c (x_use_underline_position_properties): New variable.
7675         (x_draw_glyph_string): Remind in a comment to change doc string of
7676         x-use-underline-position-properties if/when underline positioning
7677         is implemented.
7678         (syms_of_w32term): DEFVAR_BOOL x-use-underline-position-properties,
7679         and initialize it to nil.
7681 2005-06-12  Jason Rumney  <jasonr@gnu.org>
7683         * w32fns.c (NEWOPENFILENAME): New struct.
7684         (Fx_file_dialog): Use it to trick the system into giving us up to
7685         date dialogs on systems that are documented to support it.
7686         Do not set OFN_FILEMUSTEXIST flag if looking for a directory.
7688 2005-06-12  Eli Zaretskii  <eliz@gnu.org>
7690         * w32fns.c (w32_abort): Use the MB_YESNO dialog instead of
7691         MB_ABORTRETRYIGNORE.  Never return, even if DebugBreak does.
7693 2005-06-11  Eli Zaretskii  <eliz@gnu.org>
7695         * image.c (x_create_x_image_and_pixmap) [HAVE_NTGUI]: Cast 4th arg
7696         to CreateDIBSection to avoid a compiler warning.
7697         (pbm_load): Cast 3rd arg to IMAGE_BACKGROUND to avoid a compiler
7698         warning.
7699         (png_load): Cast return values of fn_png_create_read_struct and
7700         fn_png_create_info_struct, to avoid compiler warnings on W32.
7701         Cast 3rd arg to IMAGE_BACKGROUND and image_background_transparent
7702         to avoid compiler warnings.
7703         (jpeg_load): Cast return value of fn_jpeg_std_error to avoid a
7704         compiler warning on W32.  Cast 3rd arg to IMAGE_BACKGROUND to
7705         avoid a compiler warning.
7706         (tiff_load): Cast return values of fn_TIFFOpen and
7707         fn_TIFFClientOpen to avoid compiler warning on W32.  Cast 3rd arg
7708         to IMAGE_BACKGROUND to avoid a compiler warning.
7709         (gif_load): Cast return values of fn_DGifOpenFileName and
7710         fn_DGifOpen to avoid compiler warnings on W32.  Cast 3rd arg to
7711         IMAGE_BACKGROUND to avoid a compiler warning.
7712         (DrawText) [HAVE_NTGUI || MAC_OS]: If already defined, undef
7713         before redefining.
7715         * w32bdf.c (create_offscreen_bitmap): Cast `bitsp' to `void **' in
7716         the call to CreateDIBSection, to avoid a compiler warning.
7718 2005-06-11  Jason Rumney  <jasonr@gnu.org>
7720         * w32fns.c (Fx_file_dialog): Unblock input before falling back to
7721         minibuffer.
7722         * macfns.c (Fx_file_dialog): Likewise.
7724 2005-06-10  Eli Zaretskii  <eliz@gnu.org>
7726         * makefile.w32-in ($(TEMACS)): Depend on addsection.exe.
7728 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
7730         * process.c (syms_of_process) [ADAPTIVE_READ_BUFFERING]:
7731         * w32fns.c (syms_of_w32fns): Fix spellings.
7733 2005-06-10  Eli Zaretskii  <eliz@gnu.org>
7735         * unexw32.c (COPY_CHUNK, COPY_PROC_CHUNK): Add a new argument
7736         `verbose'; print diagnostic messages only if it is non-zero.
7737         All callers changed to pass a zero value unless DEBUG_DUMP is defined
7738         in the environment.
7739         (copy_executable_and_dump_data): Print section names with %.8s.
7741 2005-06-10  Masatake YAMATO  <jet@gyve.org>
7743         * xdisp.c (note_mode_line_or_margin_highlight): Call clear_mouse_face
7744         when mouse_face is not given.
7746 2005-06-09  Luc Teirlinck  <teirllm@auburn.edu>
7748         * window.c (Fselect_window): Adapt call to Fselect_frame.
7750         * lisp.h: Update EXFUN of Fselect_frame.
7752         * keyboard.c (command_loop_1): Adapt call to Fselect_frame.
7754         * frame.c (Fhandle_switch_frame, Fselect_frame): Delete unused arg
7755         no_enter.
7756         (Fset_mouse_position, Fset_mouse_pixel_position, Ficonify_frame):
7757         Adapt to above change.
7759 2005-06-10  Juanma Barranquero  <lekktu@gmail.com>
7761         * fns.c (Fmemq, Fmaphash): Doc fixes.
7763 2005-06-09  Juanma Barranquero  <lekktu@gmail.com>
7765         * xfaces.c (Fdisplay_supports_face_attributes_p):
7766         Fix typo in docstring.
7768 2005-06-08  Steven Tamm  <steventamm@mac.com>
7770         * unexmacosx.c (copy_data_segment): Copy __la_sym_ptr2 section
7771         used by gcc4 on intel mac.
7773 2005-06-09  Kim F. Storm  <storm@cua.dk>
7775         * search.c (Fmatch_data): Add optional RESEAT arg.  Unchain markers
7776         in REUSE list if non-nil; free them if equal to evaporate.
7777         (Fset_match_data): Add optional RESEAT arg.  Unchain markers in LIST
7778         if non-nil; free them if equal to evaporate.  Use XCAR/XCDR.
7779         (restore_search_regs): Rename from restore_match_data.  Uses changed.
7780         (unwind_set_match_data): New function.
7781         (record_unwind_save_match_data): New function like save-match-data.
7783         * lisp.h (Fmatch_data, Fset_match_data): Fix EXFUN.
7784         (record_unwind_save_match_data): Add prototype.
7785         (restore_search_regs): Rename from restore_match_data.
7787         * composite.c (compose_chars_in_text):
7788         * eval.c (do_autoload):
7789         * macmenu.c (set_frame_menubar):
7790         * process.c (read_process_output, exec_sentinel):
7791         * xmenu.c (set_frame_menubar):
7792         * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
7793         * w32menu.c (set_frame_menubar):
7794         Use record_unwind_save_match_data.
7796 2005-06-08  Richard M. Stallman  <rms@gnu.org>
7798         * xdisp.c (get_next_display_element): Alter previous change:
7799         Distinguish Vshow_nonbreak_escape = t or not t.
7800         For t, use escape_glyph once again, as before previous change.
7801         Use space or hyphen for display, instead of the non-ASCII char.
7802         (syms_of_xdisp) <show-nonbreak-escape>: Doc fix.
7804         * process.c (Fstart_process): Don't touch command_channel_p slot.
7806         * process.h (struct process): Delete command_channel_p.
7808 2005-06-07  Masatake YAMATO  <jet@gyve.org>
7810         * xdisp.c (note_mode_line_or_margin_highlight):
7811         Check the overlapping of re-rendering area to avoid flickering.
7812         (note_mouse_highlight): Call clear_mouse_face if PART
7813         is not ON_MODE_LINE nor ON_HEADER_LINE.
7815 2005-06-07  Kim F. Storm  <storm@cua.dk>
7817         * process.c: Improve commentary for adaptive read buffering.
7819 2005-06-06  Stefan Monnier  <monnier@iro.umontreal.ca>
7821         * xterm.c (x_create_toolkit_scroll_bar): Use XtNarrowScrollbars
7822         if available.
7824 2005-06-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7826         * macmenu.c (menu_quit_handler, install_menu_quit_handler):
7827         New functions for popping down menus on C-g.
7828         (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
7830         * macterm.c: Make mac_quit_char_modifiers and mac_quit_char_keycode
7831         non-static.
7833         * config.in: Add HAVE_CANCELMENUTRACKING.
7835 2005-06-06  Eli Zaretskii  <eliz@gnu.org>
7837         * w32heap.h (OFFSET_TO_RVA, RVA_TO_OFFSET, RVA_TO_PTR): Remove macros.
7839         * unexw32.c (RVA_TO_PTR): Move here from w32heap.h.
7841         * w32proc.c (RVA_TO_PTR): New macro.
7843         * w32heap.c (RVA_TO_PTR): No need to #undef now.
7845         * makefile.w32-in ($(BLD)/emacs.$(O), $(BLD)/w32select.$(O)):
7846         Depend on w32heap.h.
7848 2005-06-06  Luc Teirlinck  <teirllm@auburn.edu>
7850         * keyboard.c (command_loop_1): Update Vthis_original_command.
7852 2005-06-06  Richard M. Stallman  <rms@gnu.org>
7854         * xmenu.c (popup_get_selection): Undo previous change.
7856 2005-06-06  Juri Linkov  <juri@jurta.org>
7858         * xdisp.c (Qno_break_space): New variable.
7859         (syms_of_xdisp): Initialize it.
7860         (get_next_display_element): Add no-break space and soft hypen
7861         codes for iso8859-2 and iso8859-5.  Don't add `\' for them.
7862         Use `no-break-space' face for no-break spaces.
7864 2005-06-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7866         * window.c (delete_window): Handle the case where a h/vchild has
7867         a h/vchild.
7869 2005-06-05  Eli Zaretskii  <eliz@gnu.org>
7871         * w32.c (sys_setsockopt): Change arg 4 to `const void *'.  In the
7872         call to pfn_setsockopt, cast optval to `const char *'.
7874 2005-06-04  Eli Zaretskii  <eliz@gnu.org>
7876         * w32.c (gettimeofday): Use struct _timeb, not struct timeb.
7877         (open_unc_volume): Cast return value of map_w32_filename, to avoid
7878         compiler warnings.
7880         * s/ms-w32.h (fileno): Don't define if already defined.
7882         * emacs.c: Include w32heap.h, to avoid compiler warning about sbrk.
7884         * makefile.w32-in (DOC): Define to point to the generated DOC-X.
7886 2005-06-04  Richard M. Stallman  <rms@gnu.org>
7888         * xmenu.c (popup_get_selection): Click not in menu deactivates menu.
7890 2005-06-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7892         * macmenu.c (cleanup_popup_menu): New function.
7893         (Fx_popup_menu): Unwind protect cleanup_popup_menu in case
7894         mac_menu_show Quit:s.
7895         (mac_menu_show): Quit on cancel if not popped up on click (i.e.
7896         a dialog).
7898 2005-06-04  Kim F. Storm  <storm@cua.dk>
7900         * coding.c (decode_coding_string): Handle CODING_FINISH_INTERRUPT.
7902         * callproc.c (Fcall_process): Don't use alloca to gradually
7903         increase size of buf, as it effectively uses twice the necessary
7904         space on the stack.  Instead, pre-allocate buf of full size, and
7905         gradually increase the read size.
7907         * bytecode.c (BYTE_CODE_QUIT): Check Vthrow_on_input.
7909         * eval.c (unbind_to): Preserve value of Vquit_flag.
7911         * xterm.c (handle_one_xevent): Also ignore mouse motion just
7912         before a button release event.
7914 2005-06-03  Juanma Barranquero  <lekktu@gmail.com>
7916         * xfaces.c (Finternal_lisp_face_equal_p): Really report
7917         on faces in a frame, if the argument FRAME is non-nil.
7918         Improve argument/docstring consistency.
7920 2005-06-02  Kim F. Storm  <storm@cua.dk>
7922         * xdisp.c (MODE_LINE_NOPROP_LEN): New macro.
7923         (x_consider_frame_title, Fformat_mode_line): Save offset into
7924         mode_line_noprop_buf rather than pointer, in case buffer is relocated.
7926 2005-06-01  Kim F. Storm  <storm@cua.dk>
7928         * fns.c (mapcar1): Maybe exit loop if original sequence was modified.
7930 2005-06-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
7932         * macterm.c (mac_to_x_fontname, mac_do_list_fonts): Set XLFD
7933         resolution fields for scalable fonts to 0.
7935         * xfaces.c (build_scalable_font_name): Round pixel size to the
7936         nearest integer.
7938 2005-06-01  Kim F. Storm  <storm@cua.dk>
7940         * xdisp.c (display_mode_line): Support nested calls to redisplay
7941         and format-mode-line.  Set mode_line_target to MODE_LINE_DISPLAY.
7943 2005-05-31  Stefan Monnier  <monnier@iro.umontreal.ca>
7945         * fileio.c (Finsert_file_contents):
7946         * xdisp.c (note_mode_line_or_margin_highlight): Lisp_Object/int mixup.
7948 2005-05-31  Kim F. Storm  <storm@cua.dk>
7950         * xdisp.c (mode_line_noprop_buf, mode_line_noprop_buf_end)
7951         (mode_line_noprop_ptr): Rename from frame_title_*.
7952         (store_mode_line_noprop_char): Rename from store_frame_title_char.
7953         (store_mode_line_noprop): Rename from store_frame_title.
7954         (mode_line_target): New enum to specify current output target
7955         for mode line formatting.
7956         (display_mode_element): Test it rather than frame_title_ptr and
7957         mode_line_string_list to determine where output should go.
7958         (mode_line_proptrans_alist, mode_line_string_alist): Make static.
7959         (Vmode_line_unwind_vector): New variable.
7960         (format_mode_line_unwind_data, unwind_format_mode_line):
7961         New functions for unwind protection in mode line formatting.
7962         (x_consider_frame_title): Use them and new local var 'title_start'
7963         to support nested calls to format-mode-line and redisplay.
7964         Set mode_line_target to MODE_LINE_TITLE.
7965         (Fformat_mode_line): Use them and new local var 'string_start' to
7966         support nested calls to format-mode-line and redisplay.
7967         Set mode_line_target to MODE_LINE_NOPROP or MODE_LINE_STRING.
7968         Don't trim trailing dashes.
7969         (decode_mode_spec): Don't make infinite number of trailing dashes
7970         for MODE_LINE_NOPROP and MODE_LINE_STRING targets.
7971         (syms_of_xdisp): Initialize and staticpro mode_line_string_face,
7972         mode_line_string_face_prop, and Vmode_line_unwind_vector.
7973         (init_xdisp): Initialize mode_line_noprop_ptr to start of _buf.
7974         Initialize mode_line_target to MODE_LINE_DISPLAY.
7976 2005-05-29  Richard M. Stallman  <rms@gnu.org>
7978         * buffer.c (Fbuffer_local_value): Call indirect_variable.
7980 2005-05-28  Masatake YAMATO  <jet@gyve.org>
7982         * xdisp.c (note_mode_line_or_margin_highlight): Change the
7983         pointer to a hand cursor when hoovering over a mouse-face.
7985 2005-05-27  Kenichi Handa  <handa@m17n.org>
7987         * xterm.c (x_encode_char): Call check_ccl_update in advance.
7989         * ccl.c: Now an element of Vccl_program_table is a vector of
7990         length 4, not 3.
7991         (ccl_get_compiled_code): New arg idx.  Caller changed.
7992         Adjust for the change of Vccl_program_table.
7993         (setup_ccl_program): Adjust for the change of Vccl_program_table.
7994         (check_ccl_update): New function.
7995         (Fregister_ccl_program): Use ASET to set an element of a vector.
7996         Adjusted for the change of Vccl_program_table.
7998         * ccl.h (struct ccl_program): New member idx.
7999         (check_ccl_update): Extern it.
8001 2005-05-27  Juanma Barranquero  <lekktu@gmail.com>
8003         * image.c (Vimage_library_alist): Move from image.el.
8004         (syms_of_image): Defvar it.
8005         (lookup_image_type): Use it.
8007         * buffer.c (Fbuffer_local_value): Make argument name match its use
8008         in docstring.
8010 2005-05-26  Juanma Barranquero  <lekktu@gmail.com>
8012         * keyboard.c (Frecursive_edit): Fix typo in docstring.
8013         (Fposn_at_x_y): Make argument name match its use in docstring.
8015 2005-05-26  Lute Kamstra  <lute@gnu.org>
8017         * eval.c (Frun_hooks): Mention run-mode-hooks in docstring.
8019 2005-05-24  Masatake YAMATO  <jet@gyve.org>
8021         * xdisp.c (note_mode_line_or_margin_highlight): Use b and e
8022         as loop sentinels.
8024 2005-05-24  Nick Roberts  <nickrob@snap.net.nz>
8026         * xmenu.c (Fx_popup_dialog): Add a third boolean argument to
8027         select frame title ("Question"/"Information").
8028         (xdialog_show): Use it.
8030         * macmenu.c (Fx_popup_dialog, mac_dialog_show): As for xmenu.c.
8032         * w32menu.c (Fx_popup_dialog, w32_dialog_show): As for xmenu.c.
8034         * fns.c (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
8035         a third argument (Qnil).
8037         * lisp.h: x-popup-dialog can have three arguments.
8039         * editfns.c (Fmessage_box): Use "Information" for frame title.
8041 2005-05-23  Thien-Thi Nguyen  <ttn@gnu.org>
8043         * termcap.c [VMS]: Include <starlet.h>.
8045 2005-05-23  Masatake YAMATO  <jet@gyve.org>
8047         * xdisp.c (note_mode_line_or_margin_highlight): Add code
8048         for mouse-face.  Change the type of the first argument from `window'
8049         to `Lisp_Object'.
8050         (note_mouse_highlight): Call note_mode_line_or_margin_highlight with
8051         window instead of w.
8053 2005-05-22  Andreas Schwab  <schwab@suse.de>
8055         * process.c (send_process): Move misplaced volatile.
8057 2005-05-21  Richard M. Stallman  <rms@gnu.org>
8059         * xdisp.c (display_mode_element): If we're processing a list and
8060         padding is specified, put it after the last element.
8062 2005-05-21  Eli Zaretskii  <eliz@gnu.org>
8064         * fileio.c (Fexpand_file_name) [DOS_NT]: Don't try to support
8065         "superroot" on DOS_NT systems.
8067 2005-05-21  David Hunter  <hunterd42@comcast.net>  (tiny change)
8069         * process.c (send_process): Restore the SIGPIPE handler if we
8070         catch a SIGPIPE.
8072 2005-05-20  Juanma Barranquero  <lekktu@gmail.com>
8074         * image.c (lookup_image, png_read_from_memory): Remove hacks (and
8075         misleading comments).
8076         (DEF_IMGLIB_FN): Use C calling convention for image libraries.
8078 2005-05-20  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
8080         * window.c (Fwindow_inside_edges, Fwindow_inside_pixel_edges):
8081         Correct the right value.
8083 2005-05-19  Nick Roberts  <nickrob@snap.net.nz>
8085         * keyboard.c (syms_of_keyboard): Remove Lisp variables
8086         post-command-idle-hook and post-command-idle-delay.
8087         (command_loop_1): Don't try to execute post-command-idle-hook.
8089 2005-05-16  Kim F. Storm  <storm@cua.dk>
8091         * xdisp.c (handle_display_prop): Handle empty replacement.
8092         (handle_single_display_spec): Return -1 for empty replacement.
8094         * keyboard.c (adjust_point_for_property): Skip empty overlay string.
8096         * .gdbinit (pitx): Print more info about iterator.
8098 2005-05-16  Andreas Schwab  <schwab@suse.de>
8100         * unexmacosx.c (unexec_realloc): Move declarations before statements.
8102 2005-05-14  Richard M. Stallman  <rms@gnu.org>
8104         * xdisp.c (message3): Call cancel_echoing.
8106         * alloc.c (Fmemory_full_p): New function.
8107         (syms_of_alloc): defsubr it.
8109         * process.c (send_process_trap): Unblock SIGPIPE.
8110         (send_process): Reset SIGPIPE handler before reporting error.
8112 2005-05-14  Nick Roberts  <nickrob@snap.net.nz>
8114         * emacs.c (syms_of_emacs): Fix doc string for system-type.
8116 2005-05-13  Richard M. Stallman  <rms@gnu.org>
8118         * fileio.c (Ffind_file_name_handler): Handle lambda-exp as handler.
8119         (Finsert_file_contents): If we read 0 bytes from a special file,
8120         unlock the visited file if we locked it.
8121         (Fmake_symbolic_link, Frecent_auto_save_p): Doc fixes.
8122         (Ffile_exists_p, Ffile_symlink_p): Doc fixes.
8124 2005-05-13  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8126         * emacs.c (main) [MAC_OS8]: Call init_atimer before mac_term_init.
8128         * keyboard.c (readable_events) [USE_TOOLKIT_SCROLL_BARS]:
8129         Regard toolkit scroll bar thumb drag events as squeezable and prevent
8130         redisplay from being paused by them.
8132         * mac.c [!MAC_OSX]: Include keyboard.h and syssignal.h.
8133         [!MAC_OSX] (target_ticks): Remove variable.
8134         [!MAC_OSX] (check_alarm, pause, index): Remove functions.
8135         [!MAC_OSX && __MRC__] (sys_strftime): Likewise.
8136         [!MAC_OSX] (select): If fd 0 is not set in rfds and some input
8137         event occurs before timeout, behave as if the function were interrupted.
8138         [!MAC_OSX] (sigblock, sigsetmask, alarm): Simulate SIGALRM
8139         handling using Time Manager routines.
8140         [!MAC_OSX] (mac_atimer_task, mac_atimer_qlink, signal_mask):
8141         New variables.
8142         [!MAC_OSX] (mac_atimer_handler, set_mac_atimer, remove_mac_atimer)
8143         (setitimer): New functions.
8145         * macfns.c, macmenu.c: Don't include signal.h.
8147         * macterm.c [USE_TOOLKIT_SCROLL_BARS] (get_control_part_bounds):
8148         Rename from get_control_part_bound.  All callers changed.
8149         (x_scroll_bar_clear): New function.
8150         (x_clear_frame): Use it.
8151         (XTset_vertical_scroll_bar): Don't call Draw1Control.
8152         (x_scroll_bar_handle_click): Change type of second argument from
8153         int to ControlPartCode.
8154         (check_alarm): Remove declaration.
8155         (XTread_socket) [!TARGET_API_MAC_CARBON]: Don't call it.
8156         (XTread_socket): Use ControlPartCode instead of SInt16.
8158 2005-05-13  Nozomu Ando  <nand@mac.com>
8160         * unexmacosx.c: Include assert.h.
8161         (MACOSX_MALLOC_MULT16): New define.
8162         [MACOSX_MALLOC_MULT16] (ptr_in_unexec_regions): Determine whether
8163         ptr is in unexec regions by checking it is multiple of 16.
8164         (unexec_malloc_header_t): New typedef.
8165         (unexec_malloc, unexec_realloc, unexec_free): Store and use
8166         allocated size information in unexec_malloc_header.
8168 2005-05-10  Richard M. Stallman  <rms@gnu.org>
8170         * xterm.c (noinclude): Add #undef.
8172         * image.c, xfns.c, xmenu.c: Don't include signal.h.
8174 2005-05-09  Juanma Barranquero  <lekktu@gmail.com>
8176         * fileio.c (Fexpand_file_name, Frename_file, Fadd_name_to_file)
8177         (Fmake_symbolic_link, Faccess_file, Frecent_auto_save_p):
8178         Doc fixes.
8180         * dired.c (Ffile_name_completion): Make argument name
8181         match its use in docstring.
8183 2005-05-08  Luc Teirlinck  <teirllm@auburn.edu>
8185         * eval.c (Fdefvaralias): Remove any pre-existing
8186         variable-documentation property of the alias.
8188 2005-05-07  Thien-Thi Nguyen  <ttn@gnu.org>
8190         * xfns.c (start_hourglass): Do nothing when running on a tty.
8192 2005-05-07  Juanma Barranquero  <lekktu@gmail.com>
8194         * fns.c (Fchar_table_range): Fix typos in docstring.
8196 2005-05-06  Stefan Monnier  <monnier@iro.umontreal.ca>
8198         * fns.c (Fchar_table_range): Yet Another Int/Lisp_Object Mixup.
8200 2005-05-06  Eli Zaretskii  <eliz@gnu.org>
8202         * lread.c (Flocate_file_internal): Doc fix.
8204         * Makefile.in (lisp, shortlisp): Add jka-cmpr-hook.elc.
8206 2005-05-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8208         * macselect.c (x_own_selection): Accept Lisp string as result of
8209         selection converter function.
8210         (x_clear_frame_selections): Don't call x-lost-selection-functions
8211         if Emacs is not owner of the selection.
8212         (Vmac_services_selection): Put variable and initialization in
8213         #ifdef MAC_OSX.
8214         (syms_of_macselect) [MAC_OSX]: Set default value of
8215         Vmac_services_selection to PRIMARY.
8217         * macterm.c (toolkit_scroll_bar_interaction): Remove unused variable.
8218         (mac_handle_tool_bar_click): Remove unused function and declaration.
8219         [USE_TOOLKIT_SCROLL_BARS] (scroll_bar_timer_callback)
8220         (install_scroll_bar_timer, set_scroll_bar_timer)
8221         (control_part_code_to_scroll_bar_part, construct_scroll_bar_click)
8222         (get_control_part_bound, x_scroll_bar_handle_press)
8223         (x_scroll_bar_handle_release, x_scroll_bar_handle_drag)
8224         (x_set_toolkit_scroll_bar_thumb): New functions and declarations.
8225         [USE_TOOLKIT_SCROLL_BARS] (last_scroll_bar_part, scroll_bar_timer)
8226         (scroll_bar_timer_event_posted_p): New variables.
8227         [USE_TOOLKIT_SCROLL_BARS] (SCROLL_BAR_FIRST_DELAY)
8228         (SCROLL_BAR_CONTINUOUS_DELAY): New macros.
8229         (x_scroll_bar_create): Set control reference with NewControl.
8230         (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
8231         Initialize track_top and track_height to nil.
8232         (x_scroll_bar_set_handle, x_scroll_bar_note_movement):
8233         Put functions in #ifndef USE_TOOLKIT_SCROLL_BARS.
8234         (XTset_vertical_scroll_bar): Don't make space between scroll bar
8235         and associated window.
8236         (XTset_vertical_scroll_bar) [MAC_OSX]: Get scroll bar area width
8237         from window config.
8238         (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
8239         Set track_top and track_height to nil when scroll bar size is changed.
8240         Recalculate them if they are nil.
8241         (XTread_socket) [MAC_OSX]: Use control kind to determine if the
8242         clicked control is a scroll bar.
8243         (XTread_socket) [USE_TOOLKIT_SCROLL_BARS]: Use toolkit scroll bar
8244         event handler functions.  Don't add modifiers to scroll bar click
8245         events.  Call scroll bar release handler when window is deactivated.
8246         (mac_initialize): Remove unused code for X toolkit.
8247         (syms_of_macterm) [!USE_TOOLKIT_SCROLL_BARS]:
8248         Initialize Vx_toolkit_scroll_bars to nil.
8250         * macterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
8251         New members track_top and track_height.
8253         * sysselect.h [DARWIN || MAC_OSX]: Temporarily undefine
8254         init_process when including sys/select.h.
8256 2005-05-05  Luc Teirlinck  <teirllm@auburn.edu>
8258         * eval.c (Fdefvaralias): Doc fix.
8260         * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Doc fixes.
8262 2005-05-05  Kim F. Storm  <storm@cua.dk>
8264         * buffer.c (init_buffer_once): Set cursor_in_non_selected_windows
8265         default value.
8266         (syms_of_buffer): Add default-cursor-in-non-selected-windows.
8267         Fix type of cursor-in-non-selected-windows.
8269 2005-05-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8271         * mac.c: #undef init_process so not to conflict with system headers.
8273 2005-05-02  Richard M. Stallman  <rms@gnu.org>
8275         * buffer.c (syms_of_buffer): Define cursor-in-non-selected-windows.
8277         * buffer.h (struct buffer): Add cursor_in_non_selected_windows slot.
8279         * xdisp.c (Vcursor_in_non_selected_windows)
8280         (Qcursor_in_non_selected_windows): Vars deleted.
8281         (syms_of_xdisp): Don't initialize them.
8282         (get_window_cursor_type): Use cursor_in_non_selected_windows
8283         buffer slot.
8285 2005-05-02  Kim F. Storm  <storm@cua.dk>
8287         * macros.c (executing_kbd_macro_index): Rename from
8288         executing_macro_index.  All uses changed.
8289         (executing_kbd_macro_iterations): Rename from
8290         executing_macro_iterations.  All uses changed.
8291         (executing_kbd_macro): Rename from executing_macro.
8292         All uses changed.
8293         (syms_of_macros): Rename Lisp var executing-macro-index to
8294         executing-kbd-macro-index.
8296         * xdisp.c (move_it_in_display_line_to): Fix last change.
8298 2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
8300         * xmenu.c (Fx_popup_menu): Doc fix.
8302         * charset.c (syms_of_charset): Delete defsubr for Schars_in_region.
8304 2005-05-02  Jason Rumney  <jasonr@gnu.org>
8306         * emacs.c (USAGE3, USAGE4): Keep strings below 2048 bytes.
8308 2005-05-02  Nozomu Ando  <nand@mac.com>
8310         * sysselect.h: Fix typo.
8312 2005-05-02  Nick Roberts  <nickrob@snap.net.nz>
8314         * charset.c (Fchars_in_region): Remove as obsolete.
8316 2005-05-01  Kim F. Storm  <storm@cua.dk>
8318         * xdisp.c (move_it_in_display_line_to): Stop if we move beyond
8319         TO_CHARPOS.  This may happen if last glyphs was an image or stretch
8320         glyph.
8322 2005-05-01  Luc Teirlinck  <teirllm@auburn.edu>
8324         * dispnew.c (sit_for): Vexecuting_macro -> Vexecuting_kbd_macro.
8326 2005-05-01  Richard M. Stallman  <rms@gnu.org>
8328         * xmenu.c [not HAVE_X_TOOLKIT] (xmenu_show):
8329         If user cancels the menu, quit unless FOR_CLICK.
8331         * macros.c (Vexecuting_kbd_macro): Rename from Vexecuting_macro.
8332         All uses changed.
8333         (syms_of_macros): Define only executing-kbd-macro, not executing-macro.
8334         * keyboard.c: Change Vexecuting_macro to Vexecuting_kbd_macro.
8335         * macros.h (Vexecuting_kbd_macro): Declare instead of Vexecuting_macro.
8336         * commands.h (Vexecuting_kbd_macro): Likewise.
8338 2005-05-01  Thien-Thi Nguyen  <ttn@gnu.org>
8340         * sysdep.c (get_frame_size) [VMS]: Use a fresh i/o channel.
8342 2005-04-30  Richard M. Stallman  <rms@gnu.org>
8344         * fileio.c (Ffind_file_name_handler): Handle the `operations'
8345         property of the file name handler.
8346         (Qoperations): New variable.
8347         (syms_of_fileio): Initialize and staticpro it.
8349         * xdisp.c (set_message_1): Delete xassert.
8351 2005-04-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8353         * mac.c: Don't include time.h.  Include sysselect.h after systime.h.
8355         * macfns.c (Fx_server_version): Add BLOCK_INPUT around Gestalt.
8357         * macgui.h [HAVE_CARBON && MAC_OSX]: Don't undefine/define mktime
8358         before/after including Carbon.h if there is a working mktime.
8360 2005-04-28  Kim F. Storm  <storm@cua.dk>
8362         * xfaces.c (resolve_face_name): Add arg SIGNAL_P.  Calls changed.
8363         Fix cyclic alias check.  If alias loop is detected, signal
8364         circular-list error if SIGNAL_P, and return Qdefault if !SIGNAL_P.
8366 2005-04-28  Lute Kamstra  <lute@gnu.org>
8368         * eval.c (do_autoload): Record only autoloads in the autoload
8369         property of symbols.
8371 2005-04-28  Nick Roberts  <nickrob@snap.net.nz>
8373         * emacs.c (USAGE1): Add --basic-display and --quick options.
8375 2005-04-27  Kim F. Storm  <storm@cua.dk>
8377         * data.c (syms_of_data) Staticpro Qcyclic_variable_indirection.
8379 2005-04-26  Richard M. Stallman  <rms@gnu.org>
8381         * window.c (Fsame_window_p, Fspecial_display_p): Doc fixes.
8382         (syms_of_window): Doc fixes.
8384         * indent.c (Fvertical_motion): Undo previous change.
8386 2005-04-26  Kenichi Handa  <handa@m17n.org>
8388         * fns.c (char_table_range): New function.
8389         (Fchar_table_range): Signal an error if characters in the range
8390         have inconsistent values.  Don't check the parent.
8392 2005-04-25  Kenichi Handa  <handa@m17n.org>
8394         * fontset.c (fontset_set): Fix previous change.
8396 2005-04-24  Richard M. Stallman  <rms@gnu.org>
8398         * indent.c (Fvertical_motion): Bind fontification-functions to nil.
8400 2005-04-24  Eli Zaretskii  <eliz@gnu.org>
8402         * regex.c (re_search_2, re_match_2_internal): Convert second arg
8403         of RE_TRANSLATE to int, to shut up GCC warnings.
8405         * fileio.c (Fcopy_file): Doc fix.
8406         [MSDOS]: Fix call to emacs_open: buffer_file_type not defined and
8407         not needed.
8409 2005-04-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8411         * Makefile.in [HAVE_CARBON] (MAC_OBJ): Add macselect.o.
8412         (SOME_MACHINE_OBJECTS): Likewise.
8413         (mac.o): Depend on ccl.h.
8414         (macselect.o): New target.
8416         * emacs.c (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]:
8417         Call syms_of_macselect.
8419         * frame.c (Fdelete_frame) [MAC_OS]: Call x_clear_frame_selections.
8421         * mac.c [!TARGET_API_MAC_CARBON]: Don't include charset.h or coding.h.
8422         (QCLIPBOARD): Remove variable.
8423         (syms_of_mac): Don't initialize it.
8424         (Fmac_paste_function, Fmac_cut_function, Fx_selection_exists_p):
8425         Remove functions.
8426         (syms_of_mac): Don't defsubr them.
8427         [TARGET_API_MAC_CARBON] (Qmime_charset, QNFD, QNFKD, QNFC, QNFKC)
8428         (QHFS_plus_D, QHFS_plus_C): New variables.
8429         (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
8430         [TARGET_API_MAC_CARBON] (get_cfstring_encoding_from_lisp)
8431         (cfstring_create_normalized): New functions.
8432         [TARGET_API_MAC_CARBON] (Fmac_code_convert_string): Likewise.
8433         (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
8435         * macterm.c (handling_window_update, terminate_flag):
8436         Remove variables.
8437         (do_window_update, do_ae_quit_application, XTread_socket):
8438         Don't use them.
8439         (WNE_SLEEP_AT_SUSPEND, WNE_SLEEP_AT_RESUME): Don't define.
8440         [USE_CARBON_EVENTS && MAC_OSX] (mac_handle_service_event)
8441         (init_service_handler): Move to macselect.c.  Remove declarations.
8442         [USE_CARBON_EVENTS && MAC_OSX] (init_service_handler): Add extern.
8443         (Qapplication, Qabout): New variables.
8444         (syms_of_mac): Initialize them.
8445         [USE_CARBON_EVENTS && MAC_OSX] (Qpreferences, Qservices, Qpaste)
8446         (Qperform): New variables.
8447         (syms_of_mac) [USE_CARBON_EVENTS && MAC_OSX]: Initialize them.
8448         (do_get_menus) [TARGET_API_MAC_CARBON]: Don't call AppendResMenu.
8449         (do_menu_choice): Unhighlight menu bar also when menu_id is 0.
8450         (mac_store_application_menu_event, init_menu_bar): New functions.
8451         [USE_CARBON_EVENTS] (mac_handle_command_event)
8452         (init_command_handler): New functions.
8453         (mac_handle_window_event): Return noErr on window update event.
8454         (do_ae_quit_application): Call mac_store_application_menu_event.
8455         (mac_initialize) [USE_CARBON_EVENTS]: Call init_command_handler
8456         and init_menu_bar.
8458         * macterm.h (x_clear_frame_selections): Add extern.
8460         * macselect.c: New file for selection processing on Mac OS.
8462 2005-04-23  Richard M. Stallman  <rms@gnu.org>
8464         * fileio.c (Fcopy_file): New arg MUSTBENEW.
8465         (Frename_file): Pass new arg to Fcopy_file.
8467         * window.c (window_size_fixed): Variable deleted.
8468         (syms_of_window): Initialize window-size-fixed to nil.
8469         But don't DEFVAR window_size_fixed.
8471 2005-04-23  Andreas Schwab  <schwab@suse.de>
8473         * m/macppc.h (LD_SWITCH_MACHINE) [LINUX]: Don't define.
8474         (START_FILES, LIB_STANDARD) [LINUX && _ARCH_PPC64]: Override to
8475         use lib64 instead of lib.
8476         (_LP64) [_ARCH_PPC64]: Define if not defined.
8478 2005-04-23  David Hunter  <hunterd42@comcast.net>  (tiny change)
8480         * s/ms-w32.h (HAVE_PWD_H): Define.
8482 2005-04-22  Kenichi Handa  <handa@m17n.org>
8484         * fns.c (copy_sub_char_table): Explicitly copy the default value
8485         of the sub-chartable.
8487         * fontset.c (fontset_set): When a sub-chartable is created,
8488         explicitly sets the defalt value.
8490 2005-04-22  Kim F. Storm  <storm@cua.dk>
8492         * fns.c (Fplist_get): Replace by Fsafe_plist_get.
8493         (Fsafe_plist_get): Rename to Fplist_get.
8494         (Fsafe_get): Remove, as Fget now uses safe Fplist_get.
8495         (defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
8497         * lisp.h (Fsafe_plist_get, Fsafe_get): Remove EXFUN.
8499         * xdisp.c (store_mode_line_string, produce_stretch_glyph)
8500         (note_mode_line_or_margin_highlight, note_mouse_highlight):
8501         Use Fplist_get instead of Fsafe_plist_get.
8503         * xfaces.c (resolve_face_name): Use Fget instead of Fsafe_get.
8505 2005-04-21  Miles Bader  <miles@gnu.org>
8507         * xdisp.c (dump_glyph_row): Don't display overlay_arrow_p field.
8509 2005-04-20  Thien-Thi Nguyen  <ttn@gnu.org>
8511         * sysdep.c: Remove reference to defunct vms-pwd.h.
8512         * dired.c: Likewise.  Also, for pwd.h, use HAVE_PWD_H, not !VMS.
8513         * editfns.c, fileio.c, filelock.c, sysdep.c, xrdb.c: Likewise.
8515         * config.in: Regenerate.
8517 2005-04-20  Kenichi Handa  <handa@m17n.org>
8519         * lisp.h (CHAR_TABLE_DEFAULT_SLOT_ASCII): New macro.
8520         (CHAR_TABLE_DEFAULT_SLOT_8_BIT_CONTROL): New macro.
8521         (CHAR_TABLE_DEFAULT_SLOT_8_BIT_GRAPHIC): New macro.
8523         * alloc.c (make_sub_char_table): Argument changed to initial
8524         value of the slots.
8526         * data.c (Faref): Handle special slots used as default values of
8527         ascii, eight-bit-control, eight-bit-control.  Don't ignore a
8528         default value set for a group of characters.
8529         (Faset): Signal an error if IDXVAL is not a valid character code.
8530         Make a sub-chartable with correct initial value.
8532         * fns.c (Fset_char_table_range): Don't set slots used as default
8533         values for ascii, eight-bit-control, eight-bit-graphic.
8534         Don't call Faref with charset-id.
8535         (Fset_char_table_default): Document how to treat normal character
8536         argument.  Handle special slots used as default values of ascii,
8537         eight-bit-control, eight-bit-control.  Make a sub chartable if
8538         necessary.
8540 2005-04-20  Kenichi Handa  <handa@m17n.org>
8542         * search.c (boyer_moore): Fix previous change.
8544 2005-04-19  Kim F. Storm  <storm@cua.dk>
8546         * xdisp.c (setup_for_ellipsis): Reset saved_face_id to use default
8547         face unless last visible char and first invisible char have the
8548         same face.  Also use default face if saved_face_id is undefined.
8550 2005-04-19  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8552         * macgui.h (MacFontStruct): Remove member `fontname'.  Add member
8553         `full_name'.
8554         [TARGET_API_MAC_CARBON] (MacFontStruct): Use type int for
8555         mac_scriptcode member.
8557         * macterm.c (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): Remove variables.
8558         (syms_of_mac): Don't initialize them.
8559         (Vmac_charset_info_alist): New variable.
8560         (syms_of_mac): Defvar it.
8561         (create_text_encoding_info_alist): New function.
8562         (decode_mac_font_name, mac_to_x_fontname)
8563         (x_font_name_to_mac_font_name, init_font_name_table): Don't hard
8564         code the correspondence among XLFD charsets, Mac script codes, and
8565         Emacs coding systems.  Use Vmac_charset_info_alist and result of
8566         create_text_encoding_info_alist instead.
8567         (init_font_name_table) [TARGET_API_MAC_CARBON]: Use Font Manager
8568         routines also on Mac OS Classic.
8569         (init_font_name_table) [!TARGET_API_MAC_CARBON]:
8570         Use add_font_name_table_entry.
8571         (mac_do_list_fonts): Regard 0 in XLFD scaleble fields as
8572         specified.  Derive unspecified scalable fields from specified one.
8573         (x_list_fonts): Consider Valternate_fontname_alist.
8574         (kDefaultFontSize): Change value from 9 to 12.
8575         (XLoadQueryFont): Get decoded font family, font face, and charset
8576         from x_font_name_to_mac_font_name.  Set full name of loaded font.
8577         (mac_unload_font): Free `full_name' member.
8578         (x_load_font): Don't try XLoadQueryFont if x_list_fonts returns
8579         NULL.  Copy full_name member of struct MacFontStruct to that of
8580         struct font_info.
8582 2005-04-19  Kim F. Storm  <storm@cua.dk>
8584         * xdisp.c (handle_stop): Set saved_face_id to current face if
8585         selective_display_ellipsis_p so ellipsis will be shown in same
8586         face as preceding text.
8587         (setup_for_ellipsis): Don't set saved_face_id here.
8588         (next_element_from_display_vector): Default to saved_face_id.
8590         * fns.c (Fsafe_get): New function.
8591         (syms_of_fns): Defsubr it.
8593         * lisp.h (Fsafe_get): EXFUN it.
8595         * xfaces.c (resolve_face_name): Use Fsafe_get to avoid redisplay
8596         loops in case of bad face property lists.  Limit number of face
8597         alias lookups to 10 (in case of face alias loops).
8599 2005-04-18  Kim F. Storm  <storm@cua.dk>
8601         * dispextern.h (struct glyph_row): New member overlay_arrow_bitmap.
8602         It replaces the corresponding member from struct window, as a
8603         window may now show multiple overlay arrows.
8604         Remove member overlay_arrow_p, superseeded by overlay_arrow_bitmap.
8606         * dispnew.c (row_equal_p, update_window_line, scrolling_window):
8607         Compare overlay_arrow_bitmap than overlay_arrow_p members.
8609         * fringe.c (draw_fringe_bitmap): Use overlay_arrow_bitmap from row
8610         rather than from window.
8611         (update_window_fringes): Compare overlay_arrow_bitmap rather than
8612         overlay_arrow_p members.
8613         (Ffringe_bitmaps_at_pos): Return fringe overlay_arrow_bitmap name
8614         if not default.
8616         * window.h (struct window): Remove member overlay_arrow_bitmap.
8618         * window.c (make_window): Don't initialize overlay_arrow_bitmap.
8620         * xdisp.c (overlay_arrow_string_or_property): Remove PBITMAP arg.
8621         Calls changed.  Don't check for overlay-arrow-bitmap property here.
8622         (overlay_arrow_at_row): Remove PBITMAP arg.  Instead, if left
8623         fringe is present, return Lisp integer for bitmap (or -1 for default).
8624         Fix value of overlay-arrow-bitmap property to be a symbol, use
8625         lookup_fringe_bitmap to parse it.
8626         (display_line): Change call to overlay_arrow_at_row.  Store integer
8627         return value as overlay bitmap in row rather than window.
8628         Only show overlay arrow if row displays text, or if no other overlay
8629         arrow is seen in window (if overlay marker is at point-max).
8631 2005-04-18  Thien-Thi Nguyen  <ttn@gnu.org>
8633         * xfaces.c (realize_x_face) [!HAVE_WINDOW_SYSTEM]: Return NULL.
8635 2005-04-18  Lute Kamstra  <lute@gnu.org>
8637         * lread.c (Vloads_in_progress): Static.
8638         * fns.c (Vloads_in_progress): Remove extern.
8639         (load_in_progress): Add extern.
8640         (Frequire): Use load_in_progress instead of Vloads_in_progress.
8642 2005-04-18  Thien-Thi Nguyen  <ttn@gnu.org>
8644         * xmenu.c (Fx_popup_menu): Initialize error_name to NULL.
8646 2005-04-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8648         * macterm.c (XTread_socket): Don't beep on keyboard input even if
8649         no frame is visible.
8651 2005-04-16  Dan Nicolaescu  <dann@ics.uci.edu>
8653         * term.c (struct keys): Add support for shifted keys.
8655 2005-04-16  Richard M. Stallman  <rms@gnu.org>
8657         * xdisp.c (with_echo_area_buffer): Delete WHICH < 0 case.
8658         (set_message): Call with_echo_area_buffer with WHICH = 0.
8659         (set_message_1): Erase the echo area buffer first thing.
8660         (echo_area_display): Don't clear echo_message_buffer.
8662 2005-04-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8664         * Makefile.in (mac.o): Depend on charset.h and coding.h.
8666         * mac.c: Include charset.h and coding.h.
8667         [TARGET_API_MAC_CARBON] (Qutf_8): Remove extern.
8668         [TARGET_API_MAC_CARBON] (cfstring_create_with_string): New function.
8669         [TARGET_API_MAC_CARBON] (Fmac_get_preference): Use it.
8671         * macfns.c [TARGET_API_MAC_CARBON] (Fx_file_dialog): Likewise.
8673         * image.c [MAC_OSX] (image_load_quartz2d): Likewise.
8675         * macterm.c (x_autoselect_window_p): Remove variable.
8676         (last_window): New variable.
8677         (XTreassert_line_highlight, x_change_line_highlight):
8678         Remove declarations.
8679         (mac_focus_changed, x_detect_focus_change): New functions and
8680         declarations.
8681         (XTextExtents16, front_emacs_window): Remove function.
8682         (mac_focus_frame): New function.
8683         (XTmouse_position, do_menu_choice, do_zoom_window, XTread_socket)
8684         (mac_check_for_quit_char): Use it instead of front_emacs_window.
8685         (x_scroll_bar_report_motion): Obtain window from control owner.
8686         (x_make_frame_invisible): Set window manager size hint.
8687         (do_mouse_moved): Remove function.
8688         (XTread_socket): Move its contents here.  Generate select-window
8689         event on mouse movement if needed.  Use x_detect_focus_change on
8690         activate/deactivate events.  Don't deiconify frame or invalidate
8691         window rectangle when dnd items are dropped.
8692         Don't activate/deactivate root control.
8693         (frame_highlight, frame_unhighlight): Activate/deactivate root
8694         control here.
8695         (syms_of_macterm): Delete DEFVAR_BOOL for x_autoselect_window_p.
8697         * macterm.h (cfstring_create_with_string) [TARGET_API_MAC_CARBON]:
8698         New extern.
8700 2005-04-15  Luc Teirlinck  <teirllm@auburn.edu>
8702         * Makefile.in: Define new macro TOOLTIP_SUPPORT.
8703         (lisp): Use it.
8704         (SOME_MACHINE_LISP): Add tooltip.
8706 2005-04-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8708         * mac.c [!TARGET_API_MAC_CARBON]: Include MacLocales.h.
8709         Don't include TextEncodingConverter.h.
8710         (mac_system_script_code, Vmac_system_locale): New variables.
8711         (syms_of_mac): Defvar them.
8712         (mac_get_system_locale): New function.
8714         * macfns.c (x_set_name, x_set_title) [!TARGET_API_MAC_CARBON]:
8715         Use ENCODE_SYSTEM to encode title bar string.
8716         (x_create_tip_frame): Apply 2005-03-18 change for xfns.c.
8717         (Fx_file_dialog) [TARGET_API_MAC_CARBON && !MAC_OSX]:
8718         Use CFStringGetSystemEncoding to get system default string encoding.
8720         * macterm.c [!TARGET_API_MAC_CARBON]: Don't include
8721         TextEncodingConverter.h.
8723 2005-04-13  Steven Tamm  <steventamm@mac.com>
8725         * macterm.c (syms_of_macterm): Remove redundant definition of
8726         mac-pass-control-to-system.
8728 2005-04-12  Stefan Monnier  <monnier@iro.umontreal.ca>
8730         * window.c (Fset_window_configuration): Be careful when you choose
8731         among several possible points for the new_current_buffer.
8733 2005-04-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8735         * keyboard.c (poll_for_input) [SYNC_INPUT]: Don't call
8736         poll_for_input_1.  Set interrupt_input_pending to 1 instead.
8737         (Qlanguage_change) [MAC_OS]: New variable.
8738         (syms_of_keyboard) [MAC_OS]: Intern and staticpro it.
8739         (kbd_buffer_get_event) [MAC_OS]: Make event for LANGUAGE_CHANGE_EVENT.
8741         * macterm.c (mac_keyboard_text_encoding)
8742         (current_mac_keyboard_text_encoding): Remove variables.
8743         (XTread_socket): Store language-change event if keyboard script change
8744         is detected.  Don't convert input to `mac_keyboard_text_encoding'.
8745         (syms_of_macterm): Delete DEFVAR_INT for mac-keyboard-text-encoding.
8747         * termhooks.h (enum event_kind) [MAC_OS]: Add LANGUAGE_CHANGE_EVENT.
8749 2005-04-10  Richard M. Stallman  <rms@gnu.org>
8751         * emacs.c (standard_args): Rename --bare-bones to --quick.
8752         Add -D aka --basic-display.
8754         * buffer.c (Fmake_indirect_buffer): Clear out some local variables.
8756 2005-04-09  Richard M. Stallman  <rms@gnu.org>
8758         * keymap.c (where_is_internal): Convert a string used as event type
8759         into "(any string)".
8761         * lread.c (Vloads_in_progress): Not static.
8762         * fns.c (Vloads_in_progress): Add extern.
8763         (Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
8765 2005-04-09  Thien-Thi Nguyen  <ttn@surf.glug.org>
8767         * dispnew.c (mirror_line_dance): Avoid crash if W2 is null.
8769 2005-04-09  Lute Kamstra  <lute@gnu.org>
8771         * print.c (PRINTPREPARE): Check if the marker PRINTCHARFUN is
8772         within the accessible part of the buffer.
8774 2005-04-09  Kim F. Storm  <storm@cua.dk>
8776         * lread.c (readevalloop): Add args START and END as region in
8777         current buffer to read.  Callers changed.
8778         When specified, narrow to this region only when reading,
8779         not during eval.  Track next point to read from during eval.
8780         Also restore point to "real" buffer position before eval.
8781         (Feval_region): Don't save excursion and restriction here, and
8782         don't narrow to region.  Just pass region to readevalloop.
8783         Note: Point is now preserved even when PRINTFLAG is nil.
8785 2005-04-08  Kim F. Storm  <storm@cua.dk>
8787         * xdisp.c (syms_of_xdisp): Init overlay-arrow-string to "=>".
8789 2005-04-06  Kim F. Storm  <storm@cua.dk>
8791         * emacs.c (standard_args): Add -Q, --bare-bones, -bare-bones.
8793 2005-04-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
8795         * mac.c (cfdate_to_lisp): Add `const' for variable `epoch_gdate'.
8796         (Fmac_get_preference): Doc fix.
8798         * macfns.c (Fx_create_frame, x_create_tip_frame):
8799         Add "fontset-mac" to fallback font/fontsets.
8801 2005-04-04  Kim F. Storm  <storm@cua.dk>
8803         * alloc.c (Fgarbage_collect): Call CHECK_CONS_LIST before and after gc.
8805         * eval.c (Ffuncall): Always call CHECK_CONS_LIST on entry.
8806         Call it again after autoload.
8808 2005-04-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8810         * alloc.c (allocate_string_data): Call BLOCK_INPUT before calling
8811         mallopt.
8813         * ralloc.c (r_alloc_init): Ditto.
8815 2005-04-01  Kenichi Handa  <handa@m17n.org>
8817         * lisp.h (Vascii_upcase_table, Vascii_canon_table)
8818         (Vascii_eqv_table): Extern them.
8820         * casetab.c (set_case_table): If standard is nonzero, setup
8821         Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table.
8823         * search.c (looking_at_1): Use current_buffer->case_canon_table,
8824         not DOWNCASE_TABLE.
8825         (string_match_1): Likewise.
8826         (fast_c_string_match_ignore_case): Use Vascii_canon_table, not
8827         Vascii_downcase_table.
8828         (fast_string_match_ignore_case): Likewise.
8829         (search_buffer): Fix checking of boyer-moore usability.
8830         (boyer_moore): Calculate translate_prev_byte1/2/3 in advance.
8831         No need of tranlating characters in PAT.  Fix calculation of
8832         simple_translate.
8834 2005-03-31  Stefan Monnier  <monnier@iro.umontreal.ca>
8836         * xterm.c [HAVE_XAW3D]: Include ThreeD.h for XtNbeNiceToColormap.
8837         (x_create_toolkit_scroll_bar): Test XtNbeNiceToColormap before using it.
8838         Use XtNtopShadowPixel and XtNbottomShadowPixel.
8839         (x_set_toolkit_scroll_bar_thumb): Remove ugly old hack that didn't
8840         really work and that breaks with some versions of Xaw3d.
8842 2005-03-31  Kenichi Handa  <handa@m17n.org>
8844         * coding.c (syms_of_coding): Fix previous change.
8846 2005-03-30  Stefan Monnier  <monnier@iro.umontreal.ca>
8848         * fileio.c (search_embedded_absfilename): Fix last change.
8850 2005-03-25  Kenichi Handa  <handa@m17n.org>
8852         * coding.c (syms_of_coding): Suggest to use set-coding-category in
8853         the docstring of coding-category-list.
8855 2005-03-31  Kim F. Storm  <storm@cua.dk>
8857         * keyboard.c (Qmouse_fixup_help_message): New var.
8858         (syms_of_keyboard): Intern and staticpro it.
8859         (show_help_echo): Apply mouse-fixup-help-message to help string.
8861 2005-03-30  Kim F. Storm  <storm@cua.dk>
8863         * xdisp.c (display_line): Allow multiple overlay arrows in window.
8865 2005-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
8867         * fileio.c (Fexpand_file_name): Use IS_DEVICE_SEP.
8868         (file_name_absolute_p): New fun, extracted from Ffile_name_absolute_p.
8869         (Ffile_name_absolute_p): Use it.
8870         (search_embedded_absfilename): New fun, extracted from
8871         Fsubstitute_in_file_name.  Use file_name_absolute_p.
8872         Free the pw data after use.
8873         (Fsubstitute_in_file_name): Use it.
8874         After cutting a prefix, re-check file-name-handler.
8876 2005-03-26  Lennart Borgman  <lennart.borgman.073@student.lu.se>
8878         * w32term.h (x_output): Add focus_state.
8880         * w32term.c (x_focus_changed, w32_detect_focus_change): New functions.
8881         (w32_read_socket) [WM_SETFOCUS]: Call w32_detect_focus_change.
8883 2005-03-25  Stefan Monnier  <monnier@iro.umontreal.ca>
8885         * minibuf.c (Fminibuffer_complete_and_exit, Fself_insert_and_exit):
8886         Use Fexit_minibuffer.
8887         (Fexit_minibuffer): Mark it as no-return, deactivate the mark.
8889 2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
8891         * dired.c (Ffile_attributes): Add a missing gcpro.
8893         * alloc.c (make_number): The arg can be bigger than `int'.
8894         * lisp.h (make_number): Make prototype more precise.
8896         * process.c, dired.c (Vfile_name_coding_system)
8897         (Vdefault_file_name_coding_system):
8898         * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
8899         (Vdefault_file_name_coding_system): Remove unused declarations.
8901 2005-03-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8903         * xmenu.c (create_and_show_popup_menu): Just remove menu and return
8904         if it failed to pop up (Gnome "show pointer on ctrl" option makes
8905         menus fail to pop up).
8907 2005-03-24  Stefan Monnier  <monnier@iro.umontreal.ca>
8909         * xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
8910         Just prepend a backslash without replacing the NBSP by an SPC.
8912 2005-03-22  Kim F. Storm  <storm@cua.dk>
8914         * xfaces.c (lookup_derived_face): Add arg SIGNAL_P.
8915         * dispextern.h (lookup_derived_face): Fix prototype.
8916         * msdos.c (XMenuActivate): Fix call to lookup_derived_face.
8918         * xdisp.c (handle_single_display_spec): Derive left-fringe and
8919         right-fringe face from fringe face.
8921         * fringe.c (draw_fringe_bitmap_1, Fset_fringe_bitmap_face):
8922         Derive face from fringe face.
8924 2005-03-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8926         * xrdb.c (x_load_resources): Undo previous change (2005-03-18).
8928 2005-03-22  David Kastrup  <dak@gnu.org>
8930         * textprop.c (Fnext_char_property_change)
8931         (Fprevious_char_property_change): Allow marker as limit.
8932         (Fnext_single_char_property_change)
8933         (Fprevious_single_char_property_change): Check that limit is a
8934         number in strings.
8935         (Fnext_single_char_property_change): Coerce position to integer.
8936         (Fprevious_single_char_property_change): Same here.
8938 2005-03-21  Thien-Thi Nguyen  <ttn@gnu.org>
8940         * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Define if undefined.
8942 2005-03-19  Stefan Monnier  <monnier@iro.umontreal.ca>
8944         * frame.c (Fignore_event): Remove.
8945         (syms_of_frame): Don't defsubr it.
8947         * keyboard.c (keys_of_keyboard): Just use `ignore' instead of the
8948         redundant `ignore-event'.
8950 2005-03-19  Eli Zaretskii  <eliz@gnu.org>
8952         * unexec.c (write_segment, unexec): Move these functions to avoid
8953         forward references (which cause errors with "gcc -gcoff").
8955 2005-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8957         * xfns.c (x_create_tip_frame): Remove setting of Vx_resource_name so
8958         that it doesn't become "tooltip".  The specbind is enough.
8960         * xrdb.c (x_load_resources): Use different char *helv when I18N
8961         is present.
8963 2005-03-17  Kenichi Handa  <handa@m17n.org>
8965         * coding.c (syms_of_coding): Docstring of coding-category-list fixed.
8967 2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
8969         * xfaces.c (x_update_menu_appearance) [HAVE_X_I18N]:
8970         Use xic_create_fontsetname even for non-Motif menus.
8971         Don't forget to free the fontsetname.
8973         * xfns.c (xic_create_fontsetname): Add a final catch-all font pattern.
8975 2005-03-17  Richard M. Stallman  <rms@gnu.org>
8977         * dispnew.c (mirror_line_dance): Set W2 according to FRAME_FROM.
8979         * fileio.c (Fcopy_file, Frename_file, Fadd_name_to_file)
8980         (Fmake_symbolic_link): Use G to read the new file name.
8982         * callint.c (Finteractive): Document G option.
8983         (Fcall_interactively): Implement G option.
8985         * buffer.c (buffer_lisp_local_variables): New function,
8986         broken out from Fbuffer_local_variables.
8987         (clone_per_buffer_values): Use buffer_lisp_local_variables.
8989 2005-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
8991         * xfns.c (xic_create_fontsetname): Add `motif' argument.
8992         Always return a freshly allocated string.
8993         (xic_create_xfontset): Adjust call.
8995         * xfaces.c (x_update_menu_appearance) [USE_MOTIF]:
8996         Use xic_create_fontsetname to create a fontset so utf-8 locales work.
8997         (dump_realized_face): Fix warning.
8999         * emacs.c (Fkill_emacs): YAILOM.
9001         * frame.c (Fignore_event): Fix ancient obscure C-u handling bug.
9003 2005-03-17  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9005         * mac.c (HASHKEY_TERMINAL): Remove.
9006         (HASHKEY_MAX_NID): New macro.
9007         (xrm_q_get_resource_1): Rename from xrm_q_get_resource.  Add extra
9008         argument.
9009         (xrm_q_get_resource): Call xrm_q_get_resource_1 with extra argument.
9010         (xrm_create_database, xrm_q_put_resource)
9011         (xrm_merge_string_database, xrm_q_get_resource_1)
9012         (xrm_q_get_resource): Change resource database representation so
9013         that it may not use multiple hash tables for a single database.
9014         [TARGET_API_MAC_CARBON] (xrm_cfproperty_list_to_value): YAILOM.
9016 2005-03-16  Stefan Monnier  <monnier@iro.umontreal.ca>
9018         * xmenu.c (ENCODE_MENU_STRING) [HAVE_X_I18N]: Use ENCODE_SYSTEM.
9020         * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [!WINDOWSNT]: Use the
9021         locale-coding-system, as was already done for WINDOWSNT.
9023         * keyboard.c (read_char): Only do the 7-bit-meta -> 27-bit-meta
9024         translation for chars in the 0-255 range.
9026 2005-03-16  Lute Kamstra  <lute@gnu.org>
9028         * floatfns.c (Ffloor): Doc fix.
9030 2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9032         * mac.c: Include macterm.h instead of directly including Carbon.h.
9033         [TARGET_API_MAC_CARBON] (Qstring, Qnumber, Qboolean, Qdate, Qdata)
9034         (Qarray, Qdictionary): New variables.
9035         (syms_of_mac) [TARGET_API_MAC_CARBON]: Initialize them.
9036         [TARGET_API_MAC_CARBON] (Qutf_8): Add extern.
9037         [TARGET_API_MAC_CARBON] (DECODE_UTF_8): New macro.
9038         [TARGET_API_MAC_CARBON] (struct cfdict_context): New struct used
9039         in callback for CFDictionaryApplyFunction.
9040         [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9041         (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9042         (cfobject_desc_to_lisp, cfdictionary_add_to_list)
9043         (cfdictionary_puthash, cfproperty_list_to_lisp): New functions.
9044         [TARGET_API_MAC_CARBON] (Fmac_get_preference): New function.
9045         (syms_of_mac) [TARGET_API_MAC_CARBON]: Defsubr it.
9046         (P, LOOSE_BINDING, SINGLE_COMPONENT, HASHKEY_TERMINAL): New macro.
9047         (skip_white_space, parse_comment, parse_include_file)
9048         (parse_binding, parse_component, parse_resource_name, parse_value)
9049         (parse_resource_line, xrm_create_database, xrm_q_put_resource)
9050         (xrm_merge_string_database, xrm_q_get_resource, xrm_get_resource)
9051         (xrm_cfproperty_list_to_value, xrm_get_preference_database):
9052         New functions.
9054         * macfns.c (mac_get_rdb_resource): Remove function.
9055         (x_get_string_resource): Use xrm_get_resource.
9057         * macgui.h (XrmDatabase): Typedef to Lisp_Object.
9059         * macterm.c (x_list_fonts): FONT-LIST-CACHE is now cadr part of
9060         name_list_element.
9061         (mac_make_rdb): Create resource database from preferences and
9062         argument string.
9063         (mac_term_init): Save resource database to cddr part of
9064         name_list_element.
9066         * macterm.h (xrm_merge_string_database, xrm_get_resource)
9067         (xrm_get_preference_database): Add externs.
9068         [TARGET_API_MAC_CARBON] (cfdata_to_lisp, cfstring_to_lisp)
9069         (cfnumber_to_lisp, cfdate_to_lisp, cfboolean_to_lisp)
9070         (cfobject_desc_to_lisp, cfproperty_list_to_lisp): Likewise.
9072         * process.c (init_process): Change `#ifdef DARWIN' to `#if
9073         defined (DARWIN) || defined (MAC_OSX)'
9075         * s/darwin.h (DARWIN): Don't define.
9077 2005-03-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9079         * macfns.c (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift):
9080         Remove unused variables.
9081         (syms_of_macfns): Don't initialize them.  Likewise for
9082         Qface_set_after_frame_default.  Defvar and initialize
9083         Vx_window_horizontal_drag_shape.
9084         (x_set_mouse_color): Change mouse pointer shape.
9085         (mac_window) [!MAC_OSX]: Create root control.
9086         (Fx_create_frame): Remove initializations of mouse pointer shapes.
9087         (hourglass_started): New function (from xfns.c).
9088         (start_hourglass, cancel_hourglass): Put function body in #ifdef
9089         MAC_OSX.
9090         (show_hourglass) [TARGET_API_MAC_CARBON]: Create progress
9091         indicator for each non-tooltip frame if needed, and show it.
9092         (hide_hourglass) [TARGET_API_MAC_CARBON]: Hide progress indicators.
9094         * macgui.h [!TARGET_API_MAC_CARBON]: Include Appearance.h and
9095         Controls.h.  Use ThemeCursor instead of CursHandle.
9097         * macterm.c (activate_scroll_bars, deactivate_scroll_bars):
9098         Remove functions and declarations.
9099         (mac_set_colors): Take argument for saving background color.
9100         All callers changed.
9101         (XDrawLine, XClearArea, mac_draw_bitmap, XFillRectangle)
9102         (mac_draw_rectangle, mac_draw_string_common): Save and Restore
9103         background color.
9104         (x_update_end, mac_do_track_drag): Don't reset background color.
9105         (mac_define_frame_cursor) [!TARGET_API_MAC_CARBON]:
9106         Use SetThemeCursor.
9107         (x_set_window_size) [TARGET_API_MAC_CARBON]: Move progress
9108         indicator control to the upper-right corner of the window.
9109         (arrow_cursor) [!TARGET_API_MAC_CARBON]: Remove variable.
9110         (do_init_managers) [!TARGET_API_MAC_CARBON]: Don't initialize it.
9111         (do_window_update): Update controls after updating content area.
9112         (mac_handle_window_event): Remove unused extern.
9113         (XTread_socket): Check both control handle and control part code
9114         to determine whether a scroll bar is clicked.  Activate/deactivate
9115         root control instead of contained scroll bar controls.
9116         (make_mac_terminal_frame): Use ThemeCursor constants.
9118         * macterm.h (struct mac_output) [TARGET_API_MAC_CARBON]:
9119         New member hourglass_control.
9120         (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): New defines.
9121         (activate_scroll_bars, deactivate_scroll_bars): Remove declarations.
9123 2005-03-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9125         * macterm.c (keycode_to_xkeysym_table): Change mapping so that it
9126         coincides with that in Apple X11 except `clear', `enter' on
9127         laptops, and fn + `enter' on laptops.
9129 2005-03-12  Stefan Monnier  <monnier@iro.umontreal.ca>
9131         * xmenu.c (ENCODE_MENU_STRING): Explicitly use string_make_unibyte.
9132         (list_of_panes, list_of_items, Fx_popup_menu): Use XCAR/XCDR.
9133         (digest_single_submenu, xmenu_show): Use ENCODE_MENU_STRING.
9135         * xfns.c (xic_defaut_fontset): New constant.
9136         (xic_create_fontsetname): New function.
9137         Extracted from create_frame_xic.  Try to generate a slightly
9138         better fontset.
9139         (xic_create_xfontset): Use it.
9140         (create_frame_xic): Simplify.
9142 2005-03-11  Stefan Monnier  <monnier@iro.umontreal.ca>
9144         * fileio.c (Fmake_symbolic_link): Fix last change.
9146 2005-03-11  Richard M. Stallman  <rms@gnu.org>
9148         * fileio.c (Frename_file, Fadd_name_to_file)
9149         (Fmake_symbolic_link): If NEWNAME or LINKNAME is a directory,
9150         expand the basename of FILE relative to it.
9152 2005-03-11  Kenichi Handa  <handa@m17n.org>
9154         * fileio.c (Finsert_file_contents): Call Fcheck_coding_system
9155         before calling setup_coding_system so that autoloading of a coding
9156         system work.
9158 2005-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9160         * xfns.c (hourglass_started): New function.
9162         * dispextern.h: Declare hourglass_started.
9164         * keyboard.c (Fexecute_extended_command): Restart hourglass
9165         after call to Fcompleting_read if already started.
9167         * gtkutil.c (xg_update_scrollbar_pos): Call x_sync so that the
9168         GTK main loop is entered in xterm.c, thus doing the redraw.
9170 2005-03-10  Kim F. Storm  <storm@cua.dk>
9172         * xdisp.c (pos_visible_p): Fix X value in last line of buffer.
9174 2005-03-08  Kenichi Handa  <handa@m17n.org>
9176         * frame.c (x_set_font): Call set_default_ascii_font if an
9177         available font is found.
9179         * fontset.c (set_default_ascii_font): New function.
9180         (syms_of_fontset): Don't set FONTSET_ASCII (Vdefault_fontset) here.
9182         * fontset.h (set_default_ascii_font): Extern it.
9184 2005-03-07  Kim F. Storm  <storm@cua.dk>
9186         * xdisp.c (CLEAR_IMAGE_CACHE_COUNT): New const.
9187         (clear_image_cache_count): New var.
9188         (redisplay_internal): Don't clear face and image caches in the
9189         middle of redisplay; do it afterwards.
9191         * blockinput.h (TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
9193         * xdisp.c (notice_overwritten_cursor): Check that phys_cursor.vpos
9194         is valid.  If not, clear phys_cursor_on_p and return.
9196 2005-03-07  Andreas Schwab  <schwab@suse.de>
9198         * blockinput.h (UNBLOCK_INPUT_TO): Always call UNBLOCK_INPUT.
9200 2005-03-06  Richard M. Stallman  <rms@gnu.org>
9202         * keyboard.c (Ftop_level): Let Fthrow deal with UNBLOCK_INPUT.
9204         * eval.c (unwind_to_catch): Use UNBLOCK_INPUT_TO.
9205         (Feval, Ffuncall): Use CHECK_CONS_LIST.
9207         * lisp.h (CHECK_CONS_LIST): New macro (two definitions).
9209         * blockinput.h (UNBLOCK_INPUT_TO): New macro.
9210         (TOTALLY_UNBLOCK_INPUT): Handle a pending signal if any.
9212 2005-03-05  Juri Linkov  <juri@jurta.org>
9214         * emacs.c (USAGE1): Replace Info node name "command arguments"
9215         with "emacs invocation".
9216         (USAGE3): Fix usage of `--color=MODE' which actually doesn't
9217         allow arguments `--color' and `MODE' to be separated by space.
9218         Add --no-blinking-cursor, -nbc.
9219         (standard_args): Add -nbc, --no-blinking-cursor.
9221 2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
9223         * s/vms.h: Define NO_HYPHENS_IN_FILENAMES.
9224         * s/vms4-4.h, s/vms5-5.h: Undefine NO_HYPHENS_IN_FILENAMES.
9225         * fileio.c (Fexpand_file_name) [VMS]:
9226         Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
9227         * doc.c (munge_doc_file_name) [VMS]: Likewise.
9228         (Fsnarf_documentation): Call munge_doc_file_name.
9230 2005-03-04  Thien-Thi Nguyen  <ttn@gnu.org>
9232         * s/vms.h (FILE_SYSTEM_CASE): New macro.
9233         * fileio.c (Fexpand_file_name) [VMS]: Don't upcase the name
9234         "manually"; this is now handled generally via FILE_SYSTEM_CASE.
9236 2005-03-04  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9238         * emacs.c (main): Change `#ifdef HAVE_CARBON' to `#if
9239         defined (MAC_OSX) && defined (HAVE_CARBON)'.
9241         * image.c [!MAC_OSX && TARGET_API_MAC_CARBON]: Include QuickTime.h.
9243         * mac.c [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
9244         [!MAC_OSX] (select) [TARGET_API_MAC_CARBON]: Use ReceiveNextEvent.
9245         (posix_pathname_to_fsspec, fsspec_to_posix_pathname): New functions.
9246         (mac_clear_font_name_table): Move extern to macterm.h.
9248         * macfns.c (install_window_handler): Move extern to macterm.h.
9249         (Fx_file_dialog): Check STRINGP (default_filename) to see it is
9250         valid.  Don't check !NILP (dir) because it is already checked with
9251         CHECK_STRING.
9252         (Fx_file_dialog) [!MAC_OSX]: Use FSSpec instead of FSRef for
9253         specifying the default location and obtaining the selected filename.
9255         * macgui.h [!MAC_OSX && HAVE_CARBON]: Include Carbon.h.
9257         * macmenu.c [TARGET_API_MAC_CARBON]: Don't include headers that
9258         are included via Carbon.h.
9260         * macterm.c [TARGET_API_MAC_CARBON && !MAC_OSX]:
9261         Define USE_CARBON_EVENTS to 1.
9262         (qd) [__MRC__ && TARGET_API_MAC_CARBON]: Don't declare.
9263         (x_free_frame_resources): Call remove_window_handler for
9264         non-tooltip windows.
9265         [TARGET_API_MAC_CARBON]: Don't include headers that are included
9266         via Carbon.h.
9267         [TARGET_API_MAC_CARBON] (mac_do_track_dragUPP)
9268         (mac_do_receive_dragUPP): New variables.
9269         (mac_handle_service_event, init_service_handler): Put declarations
9270         and definitions in #ifdef MAC_OSX.
9271         (install_window_handler) [TARGET_API_MAC_CARBON]: Create UPPs for
9272         drag-and-drop handler functions and register them.
9273         (remove_window_handler): New function.
9274         (do_ae_open_documents, mac_do_receive_drag) [!MAC_OSX]:
9275         Use fsspec_to_posix_pathname.
9276         (main): Change #if !TARGET_API_MAC_CARBON to #ifdef MAC_OS8.
9277         (XTread_socket) [!MAC_OSX]: Don't pass keyboard events to TSM.
9278         [MAC_OS8] (make_mac_terminal_frame) [TARGET_API_MAC_CARBON]:
9279         Set default cursors.
9280         (mac_initialize) [USE_CARBON_EVENTS && !MAC_OSX] : Don't call
9281         init_service_handler or init_quit_char_handler.
9282         (mac_initialize) [!MAC_OSX]: Don't call MakeMeTheFrontProcess.
9284         * macterm.h (install_window_handler, remove_window_handler)
9285         (posix_pathname_to_fsspec, fsspec_to_posix_pathname)
9286         (mac_clear_font_name_table): New externs.
9288 2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
9290         * fileio.c (FILE_SYSTEM_CASE): Define macro if not already defined.
9291         (Ffile_name_directory): Use FILE_SYSTEM_CASE unconditionally.
9292         (Fexpand_file_name): Likewise.
9294 2005-03-03  Thien-Thi Nguyen  <ttn@gnu.org>
9296         * emacs.c (Fkill_emacs): Use EXIT_SUCCESS;
9297         no longer special-case VMS.  Add bogus return value.
9299 2005-03-02  Kim F. Storm  <storm@cua.dk>
9301         * dispextern.h (XASSERTS): Define to 0 if not already defined.
9302         (xassert) [!XASSERTS]: Define dummy version.
9304 2005-03-02  Kim F. Storm  <storm@cua.dk>
9306         * xdisp.c (redisplay_window): YABX (yet another bogus xassert).
9307         Reported by David Kastrup.
9309 2005-03-01  Ehud Karni  <ehud@unix.mvs.co.il>
9311         * xdisp.c (get_next_display_element): Fix control and escape
9312         glyph from display vector.
9314 2005-03-01  Stefan Monnier  <monnier@iro.umontreal.ca>
9316         * keyboard.c (Fposn_at_x_y): Check integerness of X and Y.
9318 2005-02-27  Richard M. Stallman  <rms@gnu.org>
9320         * xdisp.c (fast_find_position): Rename END to BEG.
9321         (syms_of_xdisp) <menu-bar-update-hook>: Doc fix.
9323 2005-02-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9325         * gtkutil.c (xg_resize_outer_widget): Remove unneeded call to
9326         gtk_window_resize and x_wm_set_size_hint.
9328 2005-02-25  Kim F. Storm  <storm@cua.dk>
9330         * dispextern.h (OVERLAY_STRING_CHUNK_SIZE): Increase from 3 to 16.
9332         * xdisp.c (init_from_display_pos): Don't read past end of
9333         it->overlay_strings array.
9335 2005-02-25  Stephan Stahl  <stahl@eos.franken.de>  (tiny change)
9337         * buffer.c (syms_of_buffer): Fix typo.
9339 2005-02-23  Lute Kamstra  <lute@gnu.org>
9341         * buffer.c (Foverlay_buffer): Doc fix.
9343 2005-02-22  Kim F. Storm  <storm@cua.dk>
9345         * minibuf.c (Ftry_completion, Fall_completions): Allow both string
9346         and symbol keys in alists and hash tables.
9348         * xdisp.c (fast_find_position): Fix search for start of overlay.
9350 2005-02-21  Kim F. Storm  <storm@cua.dk>
9352         * window.c (window_scroll_pixel_based): When scrolling backwards,
9353         handle partial visible line at end of window even when we hit PT.
9355 2005-02-21  Stefan Monnier  <monnier@iro.umontreal.ca>
9357         * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
9359 2005-02-21  Kim F. Storm  <storm@cua.dk>
9361         * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
9362         I think those asserts are bogus if buffer contains invisible text
9363         or images.
9365 2005-02-21  David Kastrup  <dak@gnu.org>
9367         * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
9369 2005-02-20  Kim F. Storm  <storm@cua.dk>
9371         * xdisp.c (pos_visible_p): Be sure to move to the specified
9372         position.  Always get the full ascent / descent of the
9373         corresponding row, to return reliable rtop and rbot values.
9374         (back_to_previous_visible_line_start): Fix 2005-01-18 change.
9375         Must look one character back, as back_to_previous_line_start
9376         returns position after the newline.
9377         (move_it_vertically_backward): Fix heuristic for when to move further
9378         back in case line_height * 2/3 is larger than window height.
9379         (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
9380         as it does not do anything anymore.  Add arg current_matrix_p to
9381         use current matrix rather than desired matrix when set.
9382         (try_cursor_movement): Don't scroll to make cursor row fully
9383         visible if cursor didn't move.  This avoids unexpected recentering
9384         in case of blinking cursor or accepting process output.
9385         Use current matrix to check cursor row visibility.
9386         (redisplay_window): Fix whether to recenter or move to top in case
9387         cursor line is taller than window height.
9388         (find_first_unchanged_at_end_row): Stop search if we reach a row
9389         which not enabled (instead of abort).
9391 2005-02-18  Kim F. Storm  <storm@cua.dk>
9393         * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
9394         to be nil in a :box attribute value list; customize prints that
9395         as lisp value when no box color is specified.
9397         * .gdbinit (pitx, pit): Pretty print display iterator.
9398         (prowx, prow): Pretty print glyph row.
9399         (pcursorx, pcursor): Pretty print a window cursor.
9400         (pwinx, pwin): Pretty print struct window.
9402 2005-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
9404         * alloc.c (BLOCK_BYTES): Harmless typo.
9406 2005-02-17  Andreas Schwab  <schwab@suse.de>
9408         * xfns.c (hack_wm_protocols): Use correct type for last parameter
9409         of XGetWindowProperty to avoid aliasing issues.
9410         (Fx_window_property): Likewise.
9412         * xselect.c (Fx_disown_selection_internal): Use union of struct
9413         input_event and struct selection_input_event to avoid aliasing issues.
9415         * xterm.c (handle_one_xevent): Use union of struct input_event and
9416         struct selection_input_event to avoid aliasing issues.
9417         (SET_SAVED_MENU_EVENT): Adapt reference to inev.
9419 2005-02-17  Kim F. Storm  <storm@cua.dk>
9421         * dispextern.h (enum it_method): New enum.
9422         (GET_FROM_*): Its members.
9423         (struct it): Change member method from function pointer to enum.
9425         * xdisp.c (check_it, init_from_display_pos, handle_stop)
9426         (setup_for_ellipsis, handle_single_display_spec)
9427         (handle_composition_prop, next_overlay_string)
9428         (get_overlay_strings, reseat_1, reseat_to_string)
9429         (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
9430         (in_display_vector_p, display_line, get_next_display_element):
9431         Change it->method from function pointer to enum.
9432         (get_next_element): New array to map it->method to function.
9433         (get_next_display_element): Use it.
9434         (set_iterator_to_next): Use switch instead of if/else chain.
9436 2005-02-15  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
9438         * w32select.c: Summary: Thorough rework to implement Unicode
9439         clipboard operations and delayed rendering.
9441         Drop last_clipboard_text and related code, keep track of
9442         ownership via clipboard_owner instead.  Drop old #if0 sections.
9444         (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
9445         (clipboard_owner, modifying_clipboard, cfg_coding_system)
9446         (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
9447         (current_coding_system, current_requires_encoding)
9448         (current_num_nls, current_clipboard_type, current_lcid):
9449         New static variables.
9451         (convert_to_handle_as_ascii, convert_to_handle_as_coded)
9452         (render, render_all, run_protected, lisp_error_handler)
9453         (owner_callback, create_owner, setup_config)
9454         (enum_locale_callback, cp_from_locale, coding_from_cp):
9455         New local functions.
9457         (term_w32select, globals_of_w32select): New global functions.
9459         (Fw32_set_clipboard_data): Ignore parameter FRAME, use
9460         clipboard_owner instead.  Use delayed rendering and provide
9461         all text formats.  Provide CF_LOCALE if necessary.
9463         (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
9464         CF_LOCALE.  Fall back to CF_TEXT, if CF_UNICODETEXT is not
9465         available.  Force DOS line-ends for decoding.
9467         (Fx_selection_exists_p): Handle CF_UNICODETEXT.
9469         (syms_of_w32select): Init and register new variables.
9471         * w32.h: Add prototypes for globals_of_w32select and
9472         term_w32select.  Make the neighboring K&R declarations into
9473         prototypes, too.
9475         * emacs.c: Include w32.h to get function prototypes.
9476         (main): Call globals_of_w32select.
9478         * w32.c (term_ntproc): Call term_w32select.
9480         * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
9482 2005-02-16  Kim F. Storm  <storm@cua.dk>
9484         * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
9485         at end of display vector.
9487 2005-02-15  Richard M. Stallman  <rms@gnu.org>
9489         * xdisp.c (get_next_display_element): Fix escape-glyph criterion
9490         for mode and header lines.
9492         * lread.c (syms_of_lread) <user-init-file>: Doc fix.
9494         * keymap.h (describe_map_tree): Change decl.
9496         * keyboard.c (command_loop_1): Always use safe_run_hooks
9497         to run Qdeferred_action_function.
9499         * keymap.c (describe_map_tree): New arg MENTION_SHADOW.  Calls changed.
9500         (describe_map, describe_vector): Likewise.  When it's 1,
9501         don't omit shadowed bindings, instead mark them as shadowed.
9503         * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
9504         for describe_map_tree.  Pass 1 for MENTION_SHADOW.
9506         * data.c (Fsetq_default): Allow no arg case.
9508 2005-02-14  Kenichi Handa  <handa@m17n.org>
9510         * coding.c (encode_coding_string): Always return a unibyte string.
9511         If NOCOPY is nonzero and there's no need of encoding, make STR
9512         unibyte directly.
9514         * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
9515         multibyte string, signal an error instead of aborting.
9517 2005-02-12  Dan Nicolaescu  <dann@ics.uci.edu>
9519         * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
9521 2005-02-12  Kim F. Storm  <storm@cua.dk>
9523         * xdisp.c (expose_window): Don't fix overlaps for mode lines.
9525 2005-02-10  Kim F. Storm  <storm@cua.dk>
9527         * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
9528         if it moves outside window or it doesn't display text.
9530 2005-02-09  Kim F. Storm  <storm@cua.dk>
9532         * undo.c (Fprimitive_undo): Check that undo function does not
9533         switch buffer.
9535 2005-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9537         * xselect.c (selection_data_to_lisp_data): For the special case
9538         type == XA_ATOM, data contains array of int, not array of Atom.
9539         (x_property_data_to_lisp, selection_data_to_lisp_data):
9540         Comment update: data must be array of int for format == 32.
9542 2005-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
9544         * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
9546 2005-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9548         * xfns.c (Fx_change_window_property): Use long array when format is 32.
9549         (Fx_window_property): If format is 32 and long is bigger than 32 bits,
9550         convert long array returned from XGetWindowProperty to an int array.
9551         (x_set_tool_bar_lines): Check that width and height is greater than
9552         zero before clearing area.
9554         * xselect.c (x_reply_selection_request): Pass long array to
9555         XChangeProperty so that 64 bit longs are handeled correctly.
9556         (x_get_window_property): If format is 32 and long is bigger than 32
9557         bits convert data from XGetWindowProperty from long array to int array.
9558         (lisp_data_to_selection_data): When the input is a vector and the
9559         format is 32, allocate a long array even if long is bigger than 32 bits.
9560         (x_fill_property_data): Use char, short and long as the man page
9561         for XChangeProperty specifies.  This way the data returned is OK for
9562         both 32 and 64 bit machines.
9563         (x_handle_dnd_message): Calculate size correctly even for 64 bit
9564         machines.
9565         (Fx_send_client_event): Undo change from 2005-02-05,
9566         x_fill_property_data now handles that case.
9568         * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
9569         reason for the approach in the code.
9571 2005-02-07  Kim F. Storm  <storm@cua.dk>
9573         * undo.c (Fprimitive_undo): Record max one dummmy apply element.
9575 2005-02-06  Richard M. Stallman  <rms@gnu.org>
9577         * eval.c (Frun_hook_with_args)
9578         (Frun_hook_with_args_until_success)
9579         (Frun_hook_with_args_until_failure): Doc fixes.
9581 2005-02-05  Andreas Schwab  <schwab@suse.de>
9583         * sysdep.c (sys_subshell): Properly terminate execlp argument list.
9585 2005-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9587         * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
9588         the longs in a XClientMessageEvent correctly when long is 64 bits.
9590 2005-02-05  Eli Zaretskii  <eliz@gnu.org>
9592         * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
9593         instead of HAVE_X_WINDOWS, for non-X windowed sessions.
9595 2005-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9597         * xmenu.c (menubar_selection_callback): Force out GTK buffered
9598         events so the menu event comes after them.  This is to prevent sit-for
9599         from exiting on buffered events directly after a menu selection,
9600         lisp code for Help => About Emacs uses sit-for.
9602         * gtkutil.c (create_menus): Connect selection-done event instead of
9603         the deactivate event to deactivate_cb.  This will make the last
9604         leave event come before the call to deactivate_cb, so the leave
9605         event does not make sit-for exit after a menu selection.
9607 2005-02-03  Kim F. Storm  <storm@cua.dk>
9609         * dispnew.c (build_frame_matrix_from_leaf_window)
9610          [!GLYPH_DEBUG]: Fix xassert.
9612         * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
9614         * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
9616 2005-02-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9618         * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
9619         the compiling OS version.
9621         * macfns.c (x_create_tip_frame): Likewise.
9623         * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
9625 2005-02-03  Richard M. Stallman  <rms@gnu.org>
9627         * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
9629         * xdisp.c (echo_area_display): Clear echo_message_buffer.
9631         * buffer.c (Fbury_buffer): Doc fix.
9633 2005-02-02  Steven Tamm  <steventamm@mac.com>
9635         * macfns.c (unwind_create_frame): Fix compile error due to
9636         xassert being uncondition, but predicate is.
9637         * dispnew.c (update_window): Fix compile error due to
9638         xassert being uncondition, but predicate is.
9640 2005-02-02  Miles Bader  <miles@gnu.org>
9642         * dispextern.h (xassert): Enable unconditionally.
9644 2005-02-02  Kim F. Storm  <storm@cua.dk>
9646         * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
9648 2005-02-02  Kenichi Handa  <handa@m17n.org>
9650         * casefiddle.c (casify_object): Enable changing characters of
9651         different byte length.
9652         (casify_region): Fix loop condition, args to replace_range_2, and
9653         update opoint_byte.
9655         * insdel.c (replace_range_2): Fix bugs in adjusting markers and point.
9657 2005-02-01  Kim F. Storm  <storm@cua.dk>
9659         * xdisp.c (back_to_previous_visible_line_start): Reset iterator
9660         stack before calling handle_display_prop.
9662 2005-01-31  Kim F. Storm  <storm@cua.dk>
9664         * undo.c (Qapply): New lisp var.
9665         (syms_of_undo): Intern and staticpro it.
9666         (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
9667         (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
9669         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
9671 2005-01-30  Jesper Harder  <harder@phys.au.dk>
9673         * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
9674         <mac-emulate-three-button-mouse>: Fix docstring indentation.
9676 2005-01-29  Luc Teirlinck  <teirllm@auburn.edu>
9678         * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
9679         Increase value to 3 Meg.
9681 2005-01-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9683         * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
9684         button events are not received otherwise.
9686 2005-01-29  Richard M. Stallman  <rms@gnu.org>
9688         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
9690         * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
9692 2005-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
9694         * keymap.c (access_keymap): YAILOM.
9696 2005-01-27  Kim F. Storm  <storm@cua.dk>
9698         * xdisp.c (get_phys_cursor_geometry): New function to calculate
9699         phys cursor position and size for hollow cursor.  Position is
9700         aligned with get_glyph_string_clip_rect and ensures that a hollow
9701         cursor is shown, even when the actual glyph is not visible.
9703         * dispextern.h (get_phys_cursor_geometry): Add prototype.
9705         * xterm.c (x_clip_to_row): Ensure y >= 0.
9706         (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9708         * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9710         * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
9712 2005-01-27  Stefan Monnier  <monnier@iro.umontreal.ca>
9714         * xterm.c (x_error_quitter): Add a prototype.  Make it static again.
9716 2005-01-27  Kim F. Storm  <storm@cua.dk>
9718         * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
9719         glyph, even when row is only partially visible and actual cursor
9720         position is not visible.
9722 2005-01-24  Richard M. Stallman  <rms@gnu.org>
9724         * xterm.c (x_error_quitter): No longer static, and moved after
9725         x_error_handler.
9727 2005-01-24  Kim F. Storm  <storm@cua.dk>
9729         * xdisp.c (move_it_by_lines): If we move forward after going too
9730         far back, cancel move if end position is same as start position.
9732 2005-01-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9734         * dispextern.h (struct glyph_string): New members clip_head and
9735         clip_tail.
9737         * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
9738         region to the area between clip_head and clip_tail.
9739         (draw_glyphs): Record the area that need to be actually redrawn to
9740         the new variables clip_head and clip_tail when there are
9741         overhangs.  Set values of these variables to the corresponding
9742         members in struct glyph_string.  Refine x coordinates for
9743         notice_overwritten_cursor using clip_head and clip_tail.
9745         * macgui.h (STORE_XCHARSETSTRUCT): New macro.
9747         * macterm.c (mac_compute_glyph_string_overhangs): Implement with
9748         QDTextBounds.
9749         (x_draw_glyph_string): Don't fill the background of the successor
9750         of a glyph with a right overhang if the successor will draw a cursor.
9751         (XLoadQueryFont): Obtain font metrics using QDTextBounds.
9752         (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
9754 2005-01-24  Kim F. Storm  <storm@cua.dk>
9756         * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
9757         direction if window height was smaller than next-screen-context-lines.
9758         Now always scroll at least one line in the requested direction.
9759         Ensure that we actually do scroll backwards when requested to do so.
9761         * xdisp.c (redisplay_window): Only try to make cursor line fully
9762         visible once (to avoid redisplay loop).
9764 2005-01-23  Kim F. Storm  <storm@cua.dk>
9766         * window.c (Fpos_visible_in_window_p): Simplify return value for
9767         partially visible rows.
9768         (window_scroll_pixel_based): Adapt to that change.
9770         * window.c (window_scroll_pixel_based): Force moving to next line
9771         if scrolling doesn't move start point, e.g. if looking at tall image.
9773         * xdisp.c (pos_visible_p): Return 0 if non-interactive.
9774         Clear last_height before calling line_bottom_y to get real height.
9775         Fix calculation of y.
9777 2005-01-22  Steven Tamm  <steventamm@mac.com>
9779         * s/darwin.h: Removed PTY_ITERATION from here.
9780         (DARWIN): Define.
9782         * process.c (init_process): Default process-connection-type to
9783         nil on darwin 6 or less, t if it is 7 or higher.  This way the
9784         broken pty behavior is still allowed on darwin 6 for interactive
9785         processes for people that know what they are doing.
9787 2005-01-22  Kim F. Storm  <storm@cua.dk>
9789         * window.c (auto_window_vscroll_p): New boolean.
9790         (syms_of_window): DEFVAR_BOOL it.
9791         (Fpos_visible_in_window_p): Extend return value to include RTOP
9792         and RBOT values if FULLY is nil.
9793         (window_scroll_pixel_based): Adjust vscroll for partially visible
9794         rows if auto_window_vscroll_p is set.
9795         (Fset_window_vscroll): Do nothing if vscroll is not modified.
9797         * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
9798         to return number of partially invisible pixels at top and bottom
9799         of the dislay row at POS.
9801         * lisp.h (pos_visible_p): Fix prototype.
9803 2005-01-21  Richard M. Stallman  <rms@gnu.org>
9805         * fileio.c (Fcopy_file): Doc fix.
9807 2005-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9809         * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
9810         (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
9811         start of function for older compilers.
9813 2005-01-20  Richard M. Stallman  <rms@gnu.org>
9815         * editfns.c (Fmessage): If arg is "", return "" (as before).
9817         * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
9819         * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
9820         variable.
9822 2005-01-20  Steven Tamm  <steventamm@mac.com>
9824         * editfns.c (Voperating_system_release): Add.
9825         (init_editfns): Assign new variable operating-system-release
9826         based on call to uname if available.
9827         (get_operating_system_release): Add function to
9828         allow c-level access to operating system release.
9830         * config.h: Regenerated.
9832         * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
9833         (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
9834         using ptys as '7'.
9836 2005-01-20  Kim F. Storm  <storm@cua.dk>
9838         * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
9840         * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
9841         Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
9843         * macterm.c (x_draw_glyph_string_box): Likewise.
9845         * w32term.c (x_draw_glyph_string_box): Likewise.
9847         * indent.c (Fvertical_motion): Temporarily disable selective display.
9849 2005-01-19  Kim F. Storm  <storm@cua.dk>
9851         * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
9852         image property.
9854         * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
9856 2005-01-18  Kim F. Storm  <storm@cua.dk>
9858         * xdisp.c (fast_find_position): Backtrack to find first row if
9859         charpos is inside a display overlay that spans multiple lines.
9861 2005-01-18  Kenichi Handa  <handa@m17n.org>
9863         * coding.c (decode_coding_iso2022): Translate invalid codes if
9864         translation-table is specified.
9866 2005-01-18  Kim F. Storm  <storm@cua.dk>
9868         * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
9869         change.  If handle_display_prop indicates newline is replaced by
9870         image or text, move back to start of relevant overlay or interval
9871         and continue scan from there.  Simplify.
9873 2005-01-17  Kim F. Storm  <storm@cua.dk>
9875         * dispnew.c (mode_line_string, marginal_area_string):
9876         Fix off-by-one error in search for glyph.
9878 2005-01-16  Kim F. Storm  <storm@cua.dk>
9880         * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
9882 2005-01-16  Steven Tamm  <steventamm@mac.com>
9884         * macterm.c (mac_to_x_fontname): Remove spurious argument.
9886 2005-01-16  Andreas Schwab  <schwab@suse.de>
9888         * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
9890 2005-01-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9892         * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
9893         fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
9895 2005-01-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9897         * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
9898         (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
9899         New flags for readable_events.
9900         (get_filtered_input_pending, readable_filtered_events): Remove.
9901         (tracking_off): Call readable_events and get_input_pending with
9902         flag READABLE_EVENTS_DO_TIMERS_NOW.
9903         (readable_events): Move code from old readable_filtered_events here,
9904         but check new READABLE_EVENTS_* in argument flags instead of previous
9905         two boolean arguments do_timers_now and filter_events.
9906         If we are doing mouse tracking and the mouse moved, return only if
9907         READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
9908         (swallow_events): Call get_input_pending with flag
9909         READABLE_EVENTS_DO_TIMERS_NOW.
9910         (get_input_pending): Move code from old get_filtered_input_pending
9911         here.  Replace boolean arguments do_timers_now, filter_events with
9912         flags, and pass flags to readable_events.  Document new
9913         READABLE_EVENTS_* flags.
9914         (detect_input_pending_ignore_squeezables): New function.
9915         (detect_input_pending_run_timers): Call get_input_pending with flag
9916         READABLE_EVENTS_DO_TIMERS_NOW.
9917         (Finput_pending_p): Call get_input_pending with flags
9918         READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
9920         * dispnew.c (update_window, update_frame_1): Replace calls to
9921         detect_input_pending with detect_input_pending_ignore_squeezables
9922         so that redisplay is not paused if the event queue contains only
9923         mouse movements.
9925         * lisp.h: Declare detect_input_pending_ignore_squeezables.
9927 2005-01-15  Steven Tamm  <steventamm@mac.com>
9929         * macterm.c (Vmac_use_core_graphics): Declare variable for
9930         mac-allow-anti-aliasing.
9931         (syms_of_macterm): DEFVAR_LISP and initialize it.
9932         (mac_draw_string_common): Use core graphics text rendering if
9933         mac-allow-anti-aliasing is enabled.
9935         * macfns.c (Fx_file_dialog): Save As dialog includes only the
9936         file name in the text box.
9938 2005-01-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
9940         * macfns.c (x_set_foreground_color, x_set_background_color):
9941         Sync with xfns.c.
9942         (mac_window, x_create_tip_frame): Use XSetWindowBackground.
9943         * macterm.c (XSetBackground, XSetWindowBackground): New functions.
9944         * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
9946 2005-01-14  Kim F. Storm  <storm@cua.dk>
9948         * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
9950 2005-01-13  Richard M. Stallman  <rms@gnu.org>
9952         * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
9953         if Voverriding_terminal_local_map is non-nil.
9955         * keyboard.c (syms_of_keyboard): Doc fix.
9957 2005-01-13  Kim F. Storm  <storm@cua.dk>
9959         * xdisp.c (Fformat_mode_line): Fix last change.  Remove NO_PROPS arg
9960         (specify 0 for FACE instead).  Reorder arg list.  Doc fix.
9962 2005-01-12  Richard M. Stallman  <rms@gnu.org>
9964         * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
9965         face property for characters that don't specify one.
9967         * fns.c (Frequire): Record in load-history unconditionally.
9969 2005-01-10  Kim F. Storm  <storm@cua.dk>
9971         * dispextern.h (merge_faces): Rename from merge_into_realized_face.
9973         * xfaces.c (merge_faces): Rename from merge_into_realized_face.
9974         Callers changed.
9975         Add support to merge with lisp face id too (if face_name is t).
9977         * xdisp.c (get_next_display_element, next_element_from_display_vector):
9978         Don't lookup lface_id from display table glyphs here; instead use
9979         merge_faces to merge the lisp face id into current face.
9981 2005-01-09  Kim F. Storm  <storm@cua.dk>
9983         * dispextern.h (struct it): New member dpvec_face_id.
9984         (merge_into_realized_face): Add prototype.
9986         * xfaces.c (merge_into_realized_face): New function.  Used to
9987         merge escape-glyph face or face from display table into current face.
9989         * xdisp.c (Vshow_nonbreak_escape): New lisp var.
9990         (syms_of_xdisp): DEFVAR_LISP it.
9991         (escape_glyph_face): Remove var.
9992         (redisplay_window): Don't initialize it.
9993         (setup_for_ellipsis, get_next_display_element):
9994         Set it->dpvec_face_id to -1.
9995         (get_next_display_element): Test Vshow_nonbreak_escape.
9996         Do not setup escape_glyph_face.
9997         Properly merge escape-glyph face or face from display table with
9998         current face for escape and control characters.
9999         Set it->dpvec_face_id to relevant face id instead of adding it to each
10000         element of display vector.
10001         (next_element_from_display_vector): If it->dpvec_face_id is set,
10002         use that instead of lface_id from glyph itself.
10004 2005-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10006         * xterm.h (struct x_output): New member, toolbar_detached.
10008         * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
10009         38.
10010         (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
10011         (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
10012         (xg_create_tool_bar): Initialize toolbar_detached.
10013         (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
10014         toolbar_detached is zero.
10016 2005-01-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10018         * xmenu.c (create_and_show_popup_menu): Pass zero as button to
10019         gtk_menu_popup if not for_click, so callbacks for the menu are called.
10021         * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
10022         (xg_tool_bar_callback, xg_tool_bar_help_callback)
10023         (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
10025         * xselect.c (x_get_foreign_selection, x_fill_property_data)
10026         (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
10027         XFLOAT_DATA to get extract number from Lisp object.
10029 2005-01-07  Kim F. Storm  <storm@cua.dk>
10031         * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
10032         Set stop_charpos to current charpos instead of 0.
10034 2005-01-06  Nick Roberts  <nickrob@snap.net.nz>
10036         * xdisp.c (Fformat_mode_line): First arg now required.
10038 2005-01-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10040         * macterm.c (XLoadQueryFont): Correctly handle 0 size
10041         font widths that are returned from some Japanese fonts.
10043 2005-01-06  Kim F. Storm  <storm@cua.dk>
10045         * fringe.c (fringe_faces): Change to Lisp_Object pointer.
10046         (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
10047         (destroy_fringe_bitmap): Set fringe_faces element to nil.
10048         (Fdefine_fringe_bitmap, init_fringe): Change allocation of
10049         fringe_faces array and init elements to nil.
10050         (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
10051         non-persistent face id.
10052         (mark_fringe_data): New function for GC.
10054         * alloc.c (mark_fringe_data): Declare extern.
10055         (Fgarbage_collect): Call mark_fringe_data.
10057         * alloc.c (overrun_check_free): Invalidate freed memory if
10058         XMALLOC_CLEAR_FREE_MEMORY is defined.
10060 2005-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10062         * macfns.c: Include sys/param.h.
10063         [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
10064         and function.
10065         [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
10066         of filename string.  Set event callback function when creating
10067         dialog boxes.  Add code conversions for filenames.  Don't dispose
10068         of apple event descriptor record if failed to create it.
10070         * macterm.c: Include sys/param.h.
10071         [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
10072         kEventWindowUpdate.
10073         (install_window_handler) [USE_CARBON_EVENTS]: Register it.
10074         (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
10075         of FSSpec from apple event descriptor record.
10076         (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
10077         size of filename string.
10078         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
10079         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
10080         file dialog is in action.
10081         [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
10082         Reject only when there are no filename items.  Set background color
10083         before (un)highlighting the window below the dragged items.
10084         (XTread_socket) [USE_CARBON_EVENTS]: Don't call do_window_update.
10086 2005-01-05  Romain Francoise  <romain@orebokech.com>
10088         * term.c (encode_terminal_code): Fix buffer size computation.
10090 2005-01-04  Richard M. Stallman  <rms@gnu.org>
10092         * xdisp.c (Fformat_mode_line): Doc fix.
10094 2005-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
10096         * alloc.c (refill_memory_reserve): Move.
10097         (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
10098         (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
10100 2005-01-03  Richard M. Stallman  <rms@gnu.org>
10102         * window.c (window_scroll_pixel_based): Don't correct preserve_y
10103         for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
10105 2005-01-03  Jason Rumney  <jasonr@gnu.org>
10107         * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
10108         fontp->space_width to FONT_WIDTH so they are valid.
10110         * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
10111         average width.  Set fontp->average_width and fontp->space_width to
10112         their appropriate values.
10114         * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10115         fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
10116         fontp->space_width.
10118 2005-01-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10120         * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
10121         (x_font_min_bounds, XLoadQueryFont): Use the correct font width
10122         metrics for max and min bounds.
10123         (x_load_font): Correctly calculate average font width metrics.
10125 2005-01-02  Richard M. Stallman  <rms@gnu.org>
10127         * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
10129 2004-12-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10131         * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
10133 2004-12-31  Richard M. Stallman  <rms@gnu.org>
10135         * xdisp.c (setup_for_ellipsis, get_next_display_element):
10136         Set it->ellipsis_p to 1 or 0.
10137         (display_line): Record whether row ends in mid-ellipsis.
10138         (set_cursor_from_row): If ends in ellipsis, find start of it.
10139         (cursor_row_p): If PT's at the end of the ellipsis the row
10140         ends within, don't display cursor on this row.
10142         * dispextern.h (struct it): New element ellipsis_p.
10143         (struct glyph_row): New element ends_in_ellipsis_p.
10145         * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
10146         position if we're reading from something other than the buffer.
10148         * window.c (window_scroll_pixel_based): Only look at
10149         Vscroll_preserve_screen_position if the old PT can't be kept.
10150         (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
10152 2004-12-30  Kim F. Storm  <storm@cua.dk>
10154         * xdisp.c (get_line_height_property): New function extracted from
10155         original calc_line_height_property.
10156         (calc_line_height_property): Rework.  Handle t and (nil . ratio).
10157         (x_produce_glyphs): Use them to handle line-height and
10158         line-spacing according to new height spec.
10159         (Qtotal): Remove.
10160         (syms_of_xdisp): Remove intern and staticpro for Qtotal.
10162 2004-12-30  Kenichi Handa  <handa@m17n.org>
10164         * fileio.c (Finsert_file_contents): Don't use
10165         current_buffer->buffer_file_coding_system even if REPLACE is
10166         non-nil.  Call Qafter_insert_file_set_coding with the second arg VISIT.
10168         * fontset.h (struct font_info): New members space_width and
10169         average_width.
10171         * frame.h (struct frame): New member space_width.
10172         (FRAME_SPACE_WIDTH): New macro.
10174         * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
10176         * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
10177         fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
10178         fontp->space_width.
10179         (x_load_font): Calculate fontp->space_width and fontp->average_width.
10180         (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
10182         * xdisp.c (x_produce_glyphs): Calculate tab width by
10183         FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
10185 2004-12-29  Sanghyuk Suh  <han9kin@mac.com>
10187         * macterm.c (SelectionRange): Add Xcode position apple event struct.
10188         (do_ae_open_documents): Handle Xcode-style file position open events.
10190 2004-12-29  Luc Teirlinck  <teirllm@auburn.edu>
10192         * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
10194 2004-12-29  Richard M. Stallman  <rms@gnu.org>
10196         * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
10198 2004-12-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10200         * macfns.c (install_window_handler): Modify extern to return OSErr
10201         value.
10202         (mac_window): Handle return value of install_window_handler.
10204         * macterm.c (reflect_byte): Remove function.
10205         (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
10206         Lookup table instead.
10207         (mac_do_font_lists): Simplify calculation of the longest
10208         nonspecial string.
10209         (init_mac_drag_n_drop): Remove function and declaration.
10210         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
10211         init_mac_drag_n_drop.
10212         (mac_do_track_drag): New function and declaration.
10213         (install_window_handler): Return OSErr value.
10214         (install_window_handler) [TARGET_API_MAC_CARBON]:
10215         Register handlers for tracking/receiving drag-and-drop items.
10216         (do_ae_open_documents): Generate unibyte strings for filenames.
10217         (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
10218         Reject only non-filename items.  Set event modifiers, and return value.
10220 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
10222         * coding.c (decode_coding): Fix previous change.
10224 2004-12-28  Richard M. Stallman  <rms@gnu.org>
10226         * xdisp.c (back_to_previous_visible_line_start):
10227         Don't call handle_display_prop.
10229 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
10231         * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
10232         (decode_coding_emacs_mule, encode_coding_emacs_mule)
10233         (decode_coding_iso2022, encode_designation_at_bol)
10234         (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
10235         (decode_coding): Constify arguments and local vars.
10237 2004-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10239         * xmenu.c (popup_get_selection): Only pop down dialogs
10240         on C-g and Escape.
10241         (popup_get_selection): Remove parameter down_on_keypress.
10242         (create_and_show_popup_menu, create_and_show_dialog):
10243         Remove parameter down_on_keypress to popup_get_selection.
10245 2004-12-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10247         * dispextern.h: Change HAVE_CARBON to MAC_OS.
10248         (struct glyph_string): Likewise.
10250         * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
10251         mac_initialize.
10253         * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
10254         Change TARGET_API_MAC_CARBON to HAVE_CARBON.
10256         * fns.c (vector): Change MAC_OSX to MAC_OS.
10258         * frame.c (x_set_frame_parameters, x_report_frame_params)
10259         (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
10260         (x_set_border_width, Vdefault_frame_scroll_bars):
10261         Change HAVE_CARBON to MAC_OS.
10263         * image.c [MAC_OS]: Include sys/stat.h.
10264         [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
10265         QuickTimeComponents.h.
10267         * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
10268         [!MAC_OSX] (select): Use mac_wait_next_event.
10269         [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
10270         [!MAC_OSX] (select, run_mac_command): Change `#ifdef
10271         TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
10272         (mac_clear_font_name_table): Add extern.
10273         (Fmac_clear_font_name_table): New defun.
10274         (syms_of_mac): Defsubr it.
10275         [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
10276         [MAC_OSX] (select_and_poll_event): New function.
10277         [MAC_OSX] (sys_select): Use it.
10278         [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
10279         [MAC_OSX && SELECT_USE_CFSOCKET]
10280         (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
10281         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
10282         RunLoop for simultaneously monitoring two kinds of inputs, window
10283         events and process outputs, without periodically polling.
10285         * macfns.c (mac_initialized): Remove extern.
10286         (stricmp): Put in #if 0.  All callers changed to use xstricmp in
10287         xfaces.c.
10288         (strnicmp): Decrement `n' at the end of each loop, not the beginning.
10289         (check_mac): Use the term "Mac native windows" instead of "Mac OS".
10290         (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
10291         (mac_get_rdb_resource): New function (from w32reg.c).
10292         (x_get_string_resource): Use it.
10293         (install_window_handler): Add extern.
10294         (mac_window): New function.
10295         (Fx_create_frame): Use it instead of make_mac_frame.
10296         Set parameter for Qfullscreen.  Call x_wm_set_size_hint.
10297         (Fx_open_connection, Fx_close_connection): New defuns.
10298         (syms_of_macfns): Defsubr them.
10299         (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
10300         Add kWindowNoUpdatesAttribute to the window attribute.
10301         (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
10302         (x_create_tip_frame): Don't call ShowWindow.
10303         (Fx_show_tip): Call ShowWindow.
10304         (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
10305         TARGET_API_MAC_CARBON'.
10306         (mac_frame_parm_handlers): Set handlers for Qfullscreen.
10307         (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
10309         * macgui.h [!MAC_OSX]: Don't include Controls.h.  Include Windows.h.
10310         (Window): Typedef to WindowPtr and move outside `#if
10311         TARGET_API_MAC_CARBON'.
10312         (XSizeHints): New struct.
10314         * macterm.c (x_update_begin, x_update_end)
10315         [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
10316         frame.
10317         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
10318         [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
10319         (construct_mouse_click): Put in #if 0.
10320         (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
10321         (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
10322         TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
10323         (activate_scroll_bars, deactivate_scroll_bars)
10324         [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
10325         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
10326         if the position is neither user-specified nor program-specified.
10327         (x_free_frame_resources): Free size_hints.
10328         (x_wm_set_size_hint): Allocate size_hints if needed.  Set size_hints.
10329         (mac_clear_font_name_table): New function.
10330         (mac_do_list_fonts): Initialize font_name_table if needed.
10331         (x_list_fonts): Don't initialize font_name_table.  Add BLOCK_INPUT
10332         around mac_do_list_fonts.
10333         (mac_unload_font): New function.
10334         (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
10335         (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
10336         and definitions with #if TARGET_API_MAC_CARBON.
10337         [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
10338         (install_window_handler): Add decl.
10339         (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
10340         window.  Use UpdateControls.  Get the rectangle that should be
10341         updated and restrict the target of expose_frame to it.
10342         (do_grow_window): Set minimum height/width according to size_hints.
10343         (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
10344         (do_zoom_window): Don't use x_set_window_size.
10345         [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
10346         (install_window_handler): New function.
10347         [!USE_CARBON_EVENTS] (mouse_region): New variable.
10348         [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
10349         (XTread_socket) [USE_CARBON_EVENTS]: Move call to
10350         GetEventDispatcherTarget inside BLOCK_INPUT.
10351         (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
10352         Update mouse_region when mouse is moved.
10353         (make_mac_frame): Remove.
10354         (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
10355         Initialize mouse pointer shapes.  Change values of f->left_pos and
10356         f->top_pos.  Don't use make_mac_frame.  Use NewCWindow.
10357         Don't call ShowWindow.
10358         (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
10359         Vinvocation_name and Vsystem_name.
10360         (mac_make_rdb): New function (from w32term.c).
10361         (mac_term_init): Use it.  Add BLOCK_INPUT.  Error if display has
10362         already been opened.  Don't pass argument to
10363         mac_initialize_display_info.  Don't set dpyinfo->height/width.
10364         Add entries to x_display_list and x_display_name_list.
10365         (x_delete_display): New function.
10366         (mac_initialize): Don't call mac_initialize_display_info.
10367         (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
10369         * macterm.h (check_mac): Add extern.
10370         (struct mac_output): New member size_hints.
10371         (FRAME_SIZE_HINTS): New macro.
10372         (mac_unload_font): Add extern.
10374         * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
10376         * xfaces.c (clear_font_table) [MAC_OS]: Call mac_unload_font.
10378 2004-12-27  Richard M. Stallman  <rms@gnu.org>
10380         * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
10381         (syms_of_buffer): Don't defsubr it.
10383         * process.c (list_processes_1): Set undo_list instead
10384         of calling Fbuffer_disable_undo.
10386         * xdisp.c (single_display_spec_string_p): Rename from
10387         single_display_prop_string_p.
10388         (single_display_spec_intangible_p): Rename from
10389         single_display_prop_intangible_p.
10390         (handle_single_display_spec): Rename from handle_single_display_prop.
10391         Rewritten to be easier to understand.
10393         Change in load-history format.  Functions now get (defun . NAME),
10394         and variables get just NAME.
10396         * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
10398         * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
10399         (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
10400         (Qdefvar): Var deleted.
10401         (syms_of_eval): Don't initialze it.
10403         * lread.c (syms_of_lread) <load-history>: Doc fix.
10405 2004-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10407         * xmenu.c (popup_get_selection): Pop down on C-g.
10408         (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
10409         pops down menu on C-g.
10410         (xdialog_show): If dialog popped down and no button in the dialog was
10411         pushed, call Fsignal to quit.
10412         (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
10413         Fsignal to quit.
10415         * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g.
10417         * gtkutil.c (xg_initialize): Install bindings for C-g so that
10418         dialogs and menus pop down.
10420 2004-12-27  Kenichi Handa  <handa@m17n.org>
10422         * coding.c (code_convert_region): Fix calculation of `ratio'.
10424 2004-12-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10426         * gtkutil.c (update_frame_tool_bar): Make the value of
10427         tool-bar-button-margin control margins of images in tool bar.
10429         * alloc.c (check_depth): New variable.
10430         (overrun_check_malloc, overrun_check_realloc): Only add
10431         overhead and write check pattern if check_depth is 1 (to handle
10432         recursive calls).  Increase/decrease check_depth in entry/exit.
10433         (overrun_check_free): Only check for overhead if check_depth is 1.
10434         Increase/decrease check_depth in entry/exit.
10436 2004-12-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10438         * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
10439         before touching input_available_clear_time, to avoid accessing it
10440         from multiple threads.
10442 2004-12-23  Jason Rumney  <jasonr@gnu.org>
10444         * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
10445         of JPEG library.
10447 2004-12-22  Richard M. Stallman  <rms@gnu.org>
10449         * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
10451         * lisp.h (Vundo_outer_limit): Fix decl.
10453         * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
10454         Uses changed.
10455         (syms_of_undo): Initialize appropriately.
10456         (truncate_undo_list): If it's nil, there's no limit.
10458 2004-12-22  Kenichi Handa  <handa@m17n.org>
10460         * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
10462 2004-12-21  Richard M. Stallman  <rms@gnu.org>
10464         * eval.c (unwind_to_catch): Clear immediate_quit.
10466         * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
10467         specially as `\ ' and `\-'.
10469         * keyboard.c (kbd_buffer_store_event_hold):
10470         In the code for while-no-input, handle immediate_quit.
10472         * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
10473         Call that at the very start.
10474         (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
10475         (syms_of_alloc): Don't define undo-limit,
10476         undo-strong-limit and undo-outer-limit here.
10478         * undo.c (truncate_undo_list): Return void.
10479         Take just one argument, the buffer.
10480         Make it current, and inhibit recursive GC.
10481         Access and update the undo list directly; return void.
10482         Refer to the undo...limit variables directly.
10483         Test undo_outer_limit only after counting the whole current command.
10484         When it's exceeded, call the function in undo-outer-limit-function.
10485         (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
10486         (Vundo_outer_limit_function): New variable.
10487         (syms_of_undo): Define undo-limit, undo-strong-limit
10488         and undo-outer-limit here, and undo-outer-limit-function.
10489         Doc fixes.
10491         * lisp.h (truncate_undo_list): Update decl.
10493 2004-12-21  Piet van Oostrum  <piet@cs.uu.nl>
10495         * fileio.c (Fread_file_name): Delete duplicates in
10496         file-name-history when history_delete_duplicates is true.
10498 2004-12-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10500         * macterm.c (mac_do_list_fonts): Fix memory leak
10502 2004-12-20  Richard M. Stallman  <rms@gnu.org>
10504         * regex.c (re_match_2_internal) <symend, wordend>:
10505         Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
10507 2004-12-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10509         * macterm.c (endif, x_font_name_to_mac_font_name):
10510         Use maccentraleurroman instead of maccentraleuropean
10511         (mac_c_string_match, mac_do_list_fonts): Speed up font search by
10512         quickly finding a specific font without needing regexps.
10514 2004-12-15  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10516         * syssignal.h: Declare main_thread.
10517         (SIGNAL_THREAD_CHECK): New macro.
10519         * keyboard.c (input_available_signal): Move thread checking code
10520         to macro SIGNAL_THREAD_CHECK and call that macro.
10521         (interrupt_signal): Call SIGNAL_THREAD_CHECK.
10523         * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
10525         * emacs.c: Define main_thread.
10526         (main): Initialize main_thread.
10527         (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
10528         (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
10530         * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
10532         * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
10534         * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
10536         * process.c (send_process_trap, sigchld_handler):
10537         Call SIGNAL_THREAD_CHECK.
10539         * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
10541         * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
10543         * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
10544         returning when xg_ignore_gtk_scrollbar is true.
10546 2004-12-14  Kim F. Storm  <storm@cua.dk>
10548         * keyboard.c (read_char): Save and restore echo_string when
10549         handling input method.
10551 2004-12-13  Richard M. Stallman  <rms@gnu.org>
10553         * eval.c (syms_of_eval) <quit-flag>: Doc fix.
10555         * keyboard.c (Vthrow_on_input): New variable.
10556         (syms_of_keyboard): Defvar and initialize it.
10557         (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
10559         * lisp.h (QUIT): Check for Vthrow_on_input.
10560         (Vthrow_on_input): Declare it.
10562 2004-12-13  Kim F. Storm  <storm@cua.dk>
10564         * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
10565         vector.
10567 2004-12-12  Richard M. Stallman  <rms@gnu.org>
10569         * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
10571         * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
10572         (Ftry_completion): Really use outer `zero'; eliminate inner one.
10574 2004-12-12  Kenichi Handa  <handa@m17n.org>
10576         * term.c (encode_terminal_code): Fix previous change.
10578 2004-12-11  Stefan Monnier  <monnier@iro.umontreal.ca>
10580         * keyboard.c (handle_async_input): Remove pthread mutex handling.
10581         (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
10583         * syntax.c (Fforward_word): Avoid non-idempotent side-effects
10584         in macro arguments.
10586         * minibuf.c (Ftry_completion, Fall_completions): Don't use
10587         XFASTINT blindly.
10589         * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
10591 2004-12-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10593         * w32term.c (x_calc_absolute_position): Remove calculation of
10594         difference between inner and outer window.  Don't subtract difference
10595         for left and top calculations.
10597         * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
10598         for left and top calculations.  Remove call to x_real_positions.
10599         [Bug report by Drew Adams in November.]
10600         (x_check_expected_move): Do not set change_gravity to 1 when calling
10601         x_set_offset.
10603 2004-12-08  Richard M. Stallman  <rms@gnu.org>
10605         * xdisp.c (get_next_display_element): Use `escape-glyph' for
10606         control chars and escaped octal codes.
10607         (Qescape_glyph): New variable.
10608         (syms_of_xdisp): Initialize it.
10609         (escape_glyph_face): New variable.
10610         (redisplay_window): Initialize it.
10612 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
10614         * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
10615         (init_image): Use 1 rather than TRUE.  TRUE's not always defined.
10617 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10619         * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
10620         reset_malloc_hooks.
10622         * keyboard.c (handle_async_input, input_available_signal):
10623         Add ! defined (SYSTEM_MALLOC) around thread code.
10625         * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
10627 2004-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
10629         * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
10631         * config.in: Regenerate.
10633 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10635         * xmenu.c (Fx_popup_menu): Correct documentation about position.
10636         (xmenu_show): Do not call XTranslateCoordinates.  Adjust position
10637         if not given by a mouse click to correspond with x-popup-menu
10638         documentation.
10640         * config.in: Regenerate.
10642         * gtkutil.c: Include signal.h and syssignal.h.
10643         (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
10645         * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
10646         new variables main_thread and alloc_mutex,
10647         define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
10648         emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
10649         If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same
10650         as (UN)BLOCK_INPUT.
10651         (emacs_blocked_free, emacs_blocked_malloc)
10652         (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
10653         (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
10654         (reset_malloc_hooks): New function.
10656         * lisp.h: Declare reset_malloc_hooks.
10658         * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
10660         * keyboard.c: Conditionally include pthread.h.
10661         (handle_async_input, input_available_signalt): If not in the main
10662         thread, block signal, send signal to main thread and return.
10664         * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
10665         Set current folder in file chooser if default_filename is a directory.
10667 2004-12-05  Stefan Monnier  <monnier@iro.umontreal.ca>
10669         * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
10670         Remove redundant correctness checks.
10671         (regex_compile): Fix up error codes for \{..\} expressions.
10673 2004-12-05  Richard M. Stallman  <rms@gnu.org>
10675         * regex.c (regex_compile): Fix end-of-pattern case for space.
10677 2004-12-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10679         * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
10680         * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
10681         crashes with invalid characters.
10682         * macmenu.c (add_menu_item): Use it.
10683         * image.c (image_load_quartz2d): Likewise.
10684         * macfns.c (x_set_name, x_set_title): Likewise.
10685         (Fx_file_dialog): Likewise.  Use constant CFRefs instead of
10686         creating them each time for labels.
10688 2004-12-02  Richard M. Stallman  <rms@gnu.org>
10690         * config.in (RE_TRANSLATE_P): If make_number is not a macro,
10691         don't use it here.
10693         * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
10694         (interactive_p): Skip Scalled_interactively_p frames
10695         like Sinteractive_p frames.
10696         (unwind_to_catch): Clear handling_signal.
10698         * data.c (Fmake_variable_buffer_local): Doc fix.
10699         (Fmake_local_variable): Doc fix.
10701         * insdel.c (insert_from_string_before_markers)
10702         (insert_from_string): Don't modify buffer on empty insertion.
10704         * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
10706 2004-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10708         * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
10709         menu text as UTF8 fails.
10711 2004-12-01  Kim F. Storm  <storm@cua.dk>
10713         * alloc.c: Add commentary for last change.
10714         (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
10715         sizeof(size_t) != 4.
10716         (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
10717         Use them.  Also clear header and trailer of freed memory.
10718         (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
10719         (string_overrun_cookie): Rename from string_overrun_pattern.
10720         (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
10722 2004-12-01  Andreas Schwab  <schwab@suse.de>
10724         * lisp.h: Declare string_to_multibyte.
10726 2004-12-01  Kenichi Handa  <handa@m17n.org>
10728         * w32console.c (w32con_write_glyphs): Decide coding here.
10729         Adjusted for the change of encode_terminal_code.
10731         * term.c (encode_terminal_code): Don't make it "static".
10733 2004-11-30  Kenichi Handa  <handa@m17n.org>
10735         * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
10736         (encode_terminal_code): Argument changed.  Encode all
10737         characters at once, and return a pointer to the result of encoding.
10738         (write_glyphs): Decide coding here.  Adjusted for the above change.
10739         (insert_glyphs): Likewise.
10740         (term_init): Initialize encode_terminal_bufsize to 0.
10742         * coding.c (Vcode_conversion_workbuf_name): New variable.
10743         (syms_of_coding): Initialize and staticpro it.
10744         (set_conversion_work_buffer): New function.
10745         (run_pre_post_conversion_on_str): Use it.
10746         (run_pre_write_conversin_on_c_str): New function.
10748         * coding.h (run_pre_write_conversin_on_c_str): Extern it.
10750 2004-11-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
10752         * keyboard.c: Don't undef SIGIO
10753         * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
10754         * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
10755         (macfns.o): Don't depend on ccl.h.
10756         * macfns.c (mac_frame_parm_handlers): Set handlers for
10757         Qleft_fringe and Qright_fringe.
10758         * macterm.c (mac_fill_rectangle_to_pixmap)
10759         (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
10760         (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
10761         Put in #if 0.
10762         (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
10763         (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
10764         (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
10765         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
10766         [!MAC_OS8]: Added ifdef'd out code for os8.  Don't use
10767         XDrawImageString.  Always draw background and foreground separately.
10768         (x_draw_image_foreground): Use clipping instead of computing the
10769         intersection rectangle.
10770         (x_draw_image_glyph_string): Don't draw an image with mask to a
10771         pixmap.
10772         (x_redisplay_interface): Set flush_display_optional member to 0.
10773         (XTread_socket): Correctly reset the TEConverter
10774         object.
10776 2004-11-30  Kim F. Storm  <storm@cua.dk>
10778         * lisp.h: New defines to enable buffer overrun checking.
10779         (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
10780         (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
10782         * alloc.c: Add more checks for buffer overruns.
10783         (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
10784         xmalloc_overrun_check_trailer, overrun_check_malloc)
10785         overrun_check_realloc, overrun_check_free): Add.
10786         (GC_STRING_EXTRA, string_overrun_pattern): Add.
10787         (check_sblock, allocate_string_data, compact_small_strings):
10788         Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
10789         (check_cons_list): Condition on GC_CHECK_CONS_LIST.
10790         (check_string_free_list): Add.
10791         (allocate_string, sweep_strings): Call check_string_free_list.
10793         * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
10794         XMALLOC_OVERRUN_CHECK to avoid crash during load.
10796 2004-11-29  Kim F. Storm  <storm@cua.dk>
10798         * fns.c (concat): Use SAFE_ALLOCA.
10800 2004-11-29  Stefan Monnier  <monnier@iro.umontreal.ca>
10802         * sysdep.c (emacs_write): Don't use QUIT.
10804 2004-11-29  Kenichi Handa  <handa@m17n.org>
10806         * buffer.c (init_buffer): Set current_buffer->directory to a
10807         multibyte string made by string_to_multibyte.
10809         * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
10811 2004-11-27  Andreas Schwab  <schwab@suse.de>
10813         * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
10815         * s/gnu-linux.h: Enable no-op gcpros on ia64.
10816         (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
10818         * filelock.c (lock_file_1): Call get_boot_time early.
10819         Increase buffer size.
10821 2004-11-27  Eli Zaretskii  <eliz@gnu.org>
10823         * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
10824         is not defined.
10826 2004-11-27  Kim F. Storm  <storm@cua.dk>
10828         * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
10829         marker out of doc string.
10831 2004-11-26  Stefan Monnier  <monnier@iro.umontreal.ca>
10833         * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
10834         which was not mentioned in the log.
10836 2004-11-26  Kim F. Storm  <storm@cua.dk>
10838         * fringe.c (update_window_fringes): Prefer truncation bitmaps over
10839         angle bitmaps at top/bottom line.
10841         * xdisp.c: Undo recent changes for restoring saved_face_id.  Instead,
10842         set it when it->method is set to next_element_from_display_vector.
10843         (setup_for_ellipsis): Add LEN argument.  Callers changed.
10844         Set it->saved_face_id.
10845         (get_next_display_element): Use loop instead of recursion.
10846         Set it->saved_face_id.  Combine duplicate code for ctr chars.
10847         (next_element_from_display_vector): Do not set it->saved_face_id.
10848         (next_element_from_ellipsis): Use setup_for_ellipsis.
10850 2004-11-26  Eli Zaretskii  <eliz@gnu.org>
10852         * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
10853         prevent compiler warnings.
10855 2004-11-25  Stefan Monnier  <monnier@iro.umontreal.ca>
10857         * keyboard.c (command_loop_1): Print a message describing the key
10858         the user just pressed when this key has no binding.
10860         * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
10861         (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
10863         * lread.c (readchar): Check QUIT when `getc' is interrupted.
10865 2004-11-24  Richard M. Stallman  <rms@gnu.org>
10867         * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
10869         * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
10871 2004-11-24  Kim F. Storm  <storm@cua.dk>
10873         * xdisp.c (move_it_in_display_line_to, display_line):
10874         Restore saved_face_id also when truncate-lines or hscrolled.
10876 2004-11-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10878         * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
10879         x-use-old-gtk-file-dialog.
10881         * xfns.c: Define x_use_old_gtk_file_dialog.
10882         (syms_of_xfns): Rename use-old-gtk-file-dialog to x-...  Move it
10883         outside ifdef USE_GTK.
10885 2004-11-23  Stefan Monnier  <monnier@iro.umontreal.ca>
10887         * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
10888         Don't use XFASTINT blindly.
10890         * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
10892         * indent.c (skip_invisible): Avoid non-idempotent side-effects
10893         in macro arguments.
10895         * keymap.c (Flookup_key): Check INTEGERP before XINT.
10897         * lread.c (oblookup): Don't use XFASTINT blindly.
10899         * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
10900         (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
10902 2004-11-23  Kim F. Storm  <storm@cua.dk>
10904         * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
10905         (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
10907         * xfaces.c (lookup_named_face): Add signal_p arg.  Return -1 if
10908         signal_p is zero and face name is unknown.
10909         (Fx_list_fonts): Don't signal error in lookup_named_face.
10910         (Fface_font): Signal error in lookup_named_face.
10911         (ascii_face_of_lisp_face): Likewise.
10913         * dispextern.h (lookup_named_face): Fix prototype.
10915         * xdisp.c (handle_single_display_prop): Don't signal error in
10916         lookup_named_face for unknown fringe face name.
10917         (highlight_trailing_whitespace): Don't signal error in
10918         lookup_named_face if trailing-whitespace face unknown.
10919         (calc_line_height_property): Don't signal error in
10920         lookup_named_face if specified face name is unknown.
10922         * fringe.c (update_window_fringes): Show top row indicator if
10923         window has header-line.  Don't show arrow at bob and eob
10924         if the boundary indicators are not used.
10925         (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
10927         * window.c (set_window_buffer): Clear display_error_modiff.
10929 2004-11-22  Kim F. Storm  <storm@cua.dk>
10931         * fringe.c (update_window_fringes): Provide sensible fall-back
10932         value for non-nil indicate-buffer-boundaries setting.
10934 2004-11-22  Markus Rost  <rost@ias.edu>
10936         * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
10938 2004-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
10940         * eval.c (Fdefvar): Warn when var is let-bound but globally void.
10942 2004-11-21  Kim F. Storm  <storm@cua.dk>
10944         * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
10946         * xterm.c (x_clip_to_row): Add area arg.  Callers changed.
10947         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10949         * w32term.c (w32_clip_to_row): Add area arg.  Callers changed.
10950         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10952         * macterm.c (x_clip_to_row): Add area arg.  Callers changed.
10953         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
10955         * xdisp.c (move_it_in_display_line_to, display_line):
10956         Restore saved_face_id if overflow-newline-into-fringe is enabled and
10957         line is continued before or in middle of element from display vector.
10959         * indent.c (Fvertical_motion): Fix last change.  Use another
10960         method to detect if iterator moved too far ahead after reseat.
10962         * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro.  Do not
10963         expand matrix width for overflow in zero-width area.
10964         (append_glyph, append_composite_glyph, produce_image_glyph)
10965         (append_stretch_glyph): Use it to avoid loop in redisplay.
10966         (note_mode_line_or_margin_highlight): Don't let help-echo from
10967         string override help-echo from image map.
10969 2004-11-20  Luc Teirlinck  <teirllm@auburn.edu>
10971         * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
10972         * callint.c (Fcall_interactively): Ditto.
10974 2004-11-20  Stefan Monnier  <monnier@iro.umontreal.ca>
10976         * minibuf.c (Fminibuffer_complete_and_exit):
10977         Fixup the case of the completed value, for case-indep completion.
10979 2004-11-20  Richard M. Stallman  <rms@gnu.org>
10981         * lisp.h (Fread_from_minibuffer): Add arg in decl.
10983         * minibuf.c (read_minibuf): New arg KEEP_ALL.  Callers changed.
10984         (Fread_from_minibuffer): New arg KEEP_ALL.  Callers changed.
10986         * search.c (Vsearch_spaces_regexp):
10987         Rename from Vsearch_whitespace_regexp.  All uses changed.
10989 2004-11-20  Thien-Thi Nguyen  <ttn@gnu.org>
10991         * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
10993 2004-11-19  Richard M. Stallman  <rms@gnu.org>
10995         * search.c (Vsearch_whitespace_regexp): New variable.
10996         (syms_of_search): Defvar it.
10997         (compile_pattern_1): Call re_set_whitespace_regexp with it.
10998         (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
10999         is non-nil.
11000         (struct regexp_cache): New element whitespace_regexp.
11001         (syms_of_search): Initialize whitespace_regexp elements.
11002         (compile_pattern): Compare whitespace_regexp elements.
11003         (compile_pattern_1): Set whitespace_regexp elements.
11005         * regex.c (regex_compile): Substitute whitespace_regexp
11006         for spaces, if it is nonzero.
11007         (whitespace_regexp): New variable.
11008         (re_set_whitespace_regexp): New function.
11010 2004-11-19  Kim F. Storm  <storm@cua.dk>
11012         * indent.c (Fvertical_motion): Fix last change.
11014 2004-11-18  Kim F. Storm  <storm@cua.dk>
11016         * indent.c (Fvertical_motion): Undo 2004-11-16 change.
11017         Instead, move back again if reseating moves too far ahead.
11019 2004-11-17  Luc Teirlinck  <teirllm@auburn.edu>
11021         * xdisp.c (message3): Call clear_message.
11023 2004-11-17  Kim F. Storm  <storm@cua.dk>
11025         * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
11027 2004-11-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11029         * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
11031         * xmenu.c (x_menu_in_use): Remove.
11032         (x_menu_set_in_use): Also set popup_activated_flag.
11034         * xfns.c (Fx_file_dialog): Call popup_activated instead of
11035         x_menu_in_use.  Call x_menu_set_in_use in Motif version also.
11037         * xterm.h (x_menu_in_use): Remove.
11039 2004-11-16  Richard M. Stallman  <rms@gnu.org>
11041         * keymap.c (Fmap_keymap): New arg SORT-FIRST.
11042         Use map-keymap-internal to implement that.
11044         * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
11046 2004-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
11048         * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
11049         a window before using XWINDOW.
11051         * window.c (make_window, Fselect_window, make_dummy_parent)
11052         (save_window_save):
11053         * frame.c (make_frame):
11054         * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
11056         * lisp.h (NILP): Use EQ rather than XFASTINT.
11058 2004-11-16  Kim F. Storm  <storm@cua.dk>
11060         * fringe.c (Fdefine_fringe_bitmap): Always set 'h'.  Simplify.
11062         * indent.c (Fvertical_motion): Fix last change.  Only reseat when
11063         moving backwards.
11065 2004-11-16  Luc Teirlinck  <teirllm@auburn.edu>
11067         * dispextern.h: Extern reseat_at_previous_visible_line_start.
11069 2004-11-16  Kenichi Handa  <handa@m17n.org>
11071         * xdisp.c (display_mode_element): Fix previous change (calculate
11072         end position of substring to display correctly).
11074 2004-11-16  Kim F. Storm  <storm@cua.dk>
11076         * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
11077         Reported by Andrew M. Scott.
11079 2004-11-15  Kim F. Storm  <storm@cua.dk>
11081         * fns.c (Fsafe_plist_get): New defun.
11082         (syms_of_fns): Defsubr it.
11084         * lisp.h (Fsafe_plist_get): Add EXFUN.
11086         * xdisp.c (store_mode_line_string, produce_stretch_glyph):
11087         Use Fsafe_plist_get.
11088         (note_mode_line_or_margin_highlight, note_mouse_highlight):
11089         Fix image map element parsing.  Use Fsafe_plist_get.
11091 2004-11-15  Richard M. Stallman  <rms@gnu.org>
11093         * xdisp.c (get_next_display_element): Fix previous change.
11095 2004-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11097         * window.c (shrink_windows): Handle special case of one window left
11098         when trying to shrink the final reminder.  Grow windows if
11099         total_removed is less than total_shrink.
11101         * xmenu.c (pop_down_menu): Remove global variable current_menu,
11102         extract pointer from arg with XSAVE_VALUE.
11103         (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
11104         Construct arg to record_unwind_protect with make_save_value.
11106 2004-11-13  Richard M. Stallman  <rms@gnu.org>
11108         * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
11109         (get_next_display_element): Fix previous change to apply only to \n.
11111         * indent.c (Fvertical_motion): Scan to PT from start of line to
11112         make iterator consistent.
11114         * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
11116 2004-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11118         * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
11120         * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
11121         Record unwind with clean_up_file_dialog.
11123         * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
11124         Declare.
11126         * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
11128 2004-11-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11130         * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
11131         (xg_file_sel_destroy): Remove.
11132         (xg_file_response_cb, pop_down_file_dialog)
11133         (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
11134         New functions.
11135         (xg_get_file_with_chooser, xg_get_file_with_selection):
11136         Take new arg func, set it to xg_get_file_name_from_chooser/selector.
11137         Move common code to xg_get_file_name.  Return widget created.
11138         (xg_get_file_name): Set name, transient for, modal and destroy
11139         with parent here.  Connect response signal to xg_file_response_cb,
11140         connect delete-event to gtk_true.  Record pop_down_file_dialog
11141         for unwind.  Do event loop and call x_menu_wait_for_event in loop.
11142         (xg_create_widget): Make dialogs modal.
11144         * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
11145         Lisp_Object.
11146         (popup_get_selection): Move unwind protect ...
11147         (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11148         Move destroy of widget to pop_down_menu.
11149         (popup_widget_loop): Move unwind protect ...
11150         (create_and_show_popup_menu, create_and_show_dialog): ... to here.
11151         Move destroy of widget to pop_down_menu.
11152         (pop_down_menu): BLOCK_INPUT and destroy widget/window.
11153         (xmenu_show): Record unwind pop_down_menu.  Move XMenuDestroy,
11154         x_mouse_leave and grabbed = 0 to pop_down_menu.
11156 2004-11-13  Kim F. Storm  <storm@cua.dk>
11158         * xdisp.c (make_cursor_line_fully_visible_p): New variable.
11159         (syms_of_xdisp): DEFVAR_BOOL it.
11160         (make_cursor_line_fully_visible, try_cursor_movement)
11161         (try_window_id): Use it.
11163 2004-11-12  Kim F. Storm  <storm@cua.dk>
11165         * dispextern.h (struct glyph_row): New member extra_line_spacing.
11166         (struct it): New member max_extra_line_spacing.
11167         (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
11168         (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
11169         (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
11170         part of last line is only extra line spacing (so the text on the
11171         line is fully visible).  Use helper macros.
11172         Add W arg (to use them).  All callers changed.
11173         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
11174         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
11176         * window.c (window_scroll_pixel_based, Frecenter):
11177         Use move_it_vertically_backward directly.
11178         (Frecenter): Fix calculation of new start pos for negative arg.
11179         Before, the new start pos was sometimes chosen too far back, so
11180         the last line became only partially visible, and thus would be
11181         either only semi-visible or automatically scrolled to the middle
11182         of the window by redisplay.
11184         * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
11185         (move_it_vertically_backward): Don't recure to move further back.
11186         (move_it_vertically): Remove superfluous condition.
11187         (move_it_by_lines): Clear last_height when moved 0 lines.
11188         (resize_mini_window): Use it.max_extra_line_spacing.
11189         (display_tool_bar_line): Clear row->extra_line_spacing.
11190         (try_scrolling): Use move_it_vertically_backward directly.
11191         (redisplay_window): Likewise.
11192         (compute_line_metrics): Set row->extra_line_spacing.
11193         (display_line, display_string): Likewise.
11194         (x_produce_glyphs): Update it->max_extra_line_spacing.
11196         * xmenu.c (pop_down_menu): Return nil.
11198 2004-11-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11200         * xmenu.c (x_menu_wait_for_event): New function.
11201         (popup_get_selection, popup_widget_loop): Call x_menu_wait_for_event
11202         to handle timers.
11203         (popup_widget_loop): Add argument do_timers.
11204         (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
11205         do_timers to popup_widget_loop.
11206         (xmenu_show): Call XMenuActivateSetWaitFunction so that
11207         x_menu_wait_for_event is called by XMenuActivate.
11208         (create_and_show_popup_menu): Pass 1 for do_timers to
11209         popup_get_selection.
11210         (pop_down_menu): New function.
11211         (popup_get_selection, popup_widget_loop): Unwind protect to
11212         pop_down_menu.
11213         (popup_widget_loop): Add argument widget.
11214         (create_and_show_popup_menu, create_and_show_dialog): Pass new
11215         argument widget to popup_widget_loop.
11217 2004-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
11219         * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
11221 2004-11-09  Kim F. Storm  <storm@cua.dk>
11223         * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
11224         Fix various comments referring to XEvents instead of input events.
11225         (x_queue_event): Fix format strings.
11226         (x_stop_queuing_selection_requests): Likewise.
11228         * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
11229         (pint2hrstr): Add extra braces to silence compiler.
11231         * print.c (print_object): Fix format string.
11233         * lread.c (read1): Fix next_char matching.
11235         * lisp.h (Fdelete): Add EXFUN.
11236         (replace_range_2): Add prototype.
11238         * keyboard.c (read_avail_input): Remove unused variable 'discard'.
11240         * intervals.h (NULL_INTERVAL_P): Add separate version when
11241         ENABLE_CHECKING is not defined to silence compiler.
11242         (compare_string_intervals): Add prototype.
11244         * fringe.c (destroy_fringe_bitmap): Fix return type.
11245         (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
11247         * emacs.c (Fdump_emacs): Fix format string.
11249         * doc.c: Include <ctype.h>.
11250         (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
11252         * data.c (store_symval_forwarding): Remove unused variables.
11254         * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
11256 2004-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11258         * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
11259         to ${OLDXMENU}.
11261 2004-11-09  Kim F. Storm  <storm@cua.dk>
11263         * process.c (Fmake_network_process): Remove kludge for interrupted
11264         connects on BSD.  If connect is interrupted, just close socket and
11265         start over rather than sleeping and retry with same socket.
11267 2004-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11269         * .cvsignore: Add buildobj.lst.
11271         * doc.c: New variable Vbuild_files.
11272         (Fsnarf_documentation): If Vbuild_files is nil, populate it with
11273         file names from buildobj.lst.  Only attach docstrings from files
11274         that are in Vbuild_files.
11275         (syms_of_doc): Defvar Vbuild_files.
11277         * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
11278         and w32*.o.
11279         (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
11280         (mostlyclean): Rm buildobj.lst
11282         * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
11283         is linked.
11285 2004-11-09  Kim F. Storm  <storm@cua.dk>
11287         * fringe.c (update_window_fringes): Update fringe bitmaps if
11288         cur and row ends_at_zv_p differs.  If bitmaps of a row is updated,
11289         also update previous row to get rid of misc. artifacts.
11291 2004-11-08  Kim F. Storm  <storm@cua.dk>
11293         * xdisp.c (fast_find_position): Fix start pos if header line present.
11294         (note_mouse_highlight): Clear mouse face if we move out of text area.
11296 2004-11-08  Eli Zaretskii  <eliz@gnu.org>
11298         * editfns.c: Move #include "systime.h" before <sys/resource.h>.
11299         Don't include <sys/time.h> explicitly.
11300         Include <stdio.h> unconditionally, not just on MacOS.
11302 2004-11-08  Kenichi Handa  <handa@m17n.org>
11304         * fontset.c (fontset_pattern_regexp): Cancel my previous change;
11305         don't pay attention to '\' before '*'.
11306         (fontset_pattern_regexp): Change the meaning of the second arg.
11307         (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
11308         (check_fontset_name): Try NAME as literal at first, and if it
11309         failes, try NAME as pattern.
11311 2004-11-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11313         * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
11315 2004-11-07  Andreas Schwab  <schwab@suse.de>
11317         * lisp.h (Fmsdos_downcase_filename): Declare.
11318         * dired.c (Fmsdos_downcase_filename): Don't declare here.
11319         * fileio.c: Likewise.
11321 2004-11-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11323         * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
11324         comparisons with integers instead of Lisp_Object address.
11325         (Fmsdos_set_keyboard): Declare argument allkeys.
11327         * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
11329         * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
11330         int/Lisp_Object mixup.
11332         * fileio.c: Ditto.
11334 2004-11-06  Steven Tamm  <steventamm@mac.com>
11336         * editfns.c: Need to include sys/time.h before resource.h on darwin.
11338 2004-11-06  Richard M. Stallman  <rms@gnu.org>
11340         * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
11342         * xfaces.c (merge_named_face): GCPRO the face_name in the
11343         named_merge_point struct that we make.
11344         (merge_face_heights): Eliminate GCPRO arg.  All callers changed.
11346         * keyboard.c (command_loop_1): Change Vtransient_mark_mode
11347         before deciding whether to inactivate mark.
11349 2004-11-06  Lars Brinkhoff  <lars@nocrew.org>
11351         * config.in: Regenerate (add HAVE_GETRUSAGE).
11352         * editfns.c (Fget_internal_run_time): New function.
11353         (syms_of_data): Defsubr it.
11354         * fns.c (sxhash): As far as possible, merge calculation of
11355         hash code for symbols and strings.
11357 2004-11-06  Eli Zaretskii  <eliz@gnu.org>
11359         * frame.c (syms_of_frame): Fix the example in the doc string.
11361 2004-11-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11363         * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
11365         * xmenu.c (popup_get_selection, create_and_show_popup_menu)
11366         (create_and_show_dialog): Revert change from 2004-10-31.
11368 2004-11-05  Luc Teirlinck  <teirllm@auburn.edu>
11370         * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
11372 2004-11-05  Kim F. Storm  <storm@cua.dk>
11374         * print.c (print_object): Print Lisp_Misc_Save_Value objects.
11376         * fileio.c (Ffile_modes): Doc fix.
11377         (auto_save_1): Check for Ffile_modes nil value.
11379 2004-11-05  Kim F. Storm  <storm@cua.dk>
11381         * xselect.c (struct selection_event_queue, selection_queue)
11382         (x_queue_selection_requests, x_queue_event)
11383         (x_start_queuing_selection_requests)
11384         (x_stop_queuing_selection_requests): Add new queue for selection
11385         input events to replace previous XEvent queue in xterm.c.
11386         (queue_selection_requests_unwind): Adapt to new queue.
11387         (x_reply_selection_request): Adapt to new queue.
11388         Unexpect wait_object in case of x errors (memory leak).
11389         (x_handle_selection_request, x_handle_selection_clear): Make static.
11390         (x_handle_selection_event): New function.  May queue selection events.
11391         (wait_for_property_change_unwind): Use save_value instead of cons.
11392         Clear property_change_reply_object.
11393         (wait_for_property_change): Abort if already waiting.
11394         Use save_value instead of cons for unwind data.
11395         (x_handle_property_notify): Skip events already arrived, but don't
11396         free them, as "arrived" field is checked by wait_for_property_change,
11397         and it will be freed by unwind or explicit unexpect_property_change.
11398         (x_get_foreign_selection): Add to new queue.
11399         (receive_incremental_selection): Don't unexpect wait_object when done
11400         as it has already been freed by previous wait_for_property_change.
11402         * xterm.h (x_start_queuing_selection_requests)
11403         (x_stop_queuing_selection_requests, x_handle_selection_request)
11404         (x_handle_selection_clear): Remove prototypes.
11405         (x_handle_selection_event): Add prototype.
11407         * xterm.c (handle_one_xevent): Don't queue X selection events
11408         here, it may be too late if we start queuing after we have already
11409         stored some selection events into the kbd buffer.
11410         (struct selection_event_queue, queue, x_queue_selection_requests)
11411         (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
11412         (x_stop_queuing_selection_requests): Remove/move to xselect.c.
11413         (x_catch_errors_unwind): Block input around final XSync.
11415         * keyboard.h (kbd_buffer_unget_event): Add prototype.
11417         * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
11418         (kbd_buffer_unget_event): New function.
11419         (kbd_buffer_get_event, swallow_events): Combine SELECTION events
11420         and use x_handle_selection_event.
11421         (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
11423 2004-11-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11425         * xselect.c (TRACE3): New debug macro.
11426         (x_reply_selection_request): Use it.
11427         (receive_incremental_selection): In call to TRACE0, the name of
11428         a symbol is in xname.
11430 2004-11-05  Kim F. Storm  <storm@cua.dk>
11432         * fontset.c (fontset_pattern_regexp): Use unsigned char.
11434 2004-11-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11436         * fileio.c (Fnext_read_file_uses_dialog_p): New function.
11438         * gtkutil.h (use_old_gtk_file_dialog): Declare.
11440         * gtkutil.c: Make use_old_gtk_file_dialog non-static.
11441         (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
11442         * xfns.c (syms_of_xfns): ... to here.
11444         * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
11445         it doesn't start with /.
11447 2004-11-04  Kenichi Handa  <handa@m17n.org>
11449         * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
11450         treat it as a literal character.
11452 2004-11-03  Kim F. Storm  <storm@cua.dk>
11454         * .gdbinit (ppt): New function.
11456 2004-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11458         * xterm.c (x_window_to_scroll_bar): Only call
11459         xg_get_scroll_id_for_window if toolkit scroll bars are used.
11461         * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
11462         of save.
11464 2004-11-02  Andreas Schwab  <schwab@suse.de>
11466         * window.c (Fscroll_right): Fix last change.
11468 2004-11-02  Kim F. Storm  <storm@cua.dk>
11470         * Makefile.in (callproc.o): Depend on blockinput.h, atimer.h, systime.h.
11472 2004-11-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11474         * callproc.c (Fcall_process): Block input around vfork.
11476 2004-11-02  Kim F. Storm  <storm@cua.dk>
11478         * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
11479         (syms_of_eval): Defsubr it.
11481 2004-11-02  Richard M. Stallman  <rms@gnu.org>
11483         * insdel.c (replace_range_2): New function.
11485         * casefiddle.c (casify_region): Handle changes in byte-length
11486         using replace_range_2.
11488         * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
11490         * xdisp.c (back_to_previous_visible_line_start):
11491         Subtract 1 from pos when checking previous newline for invisibility.
11493         * window.c (window_scroll_pixel_based): Update preserve_y
11494         for header line if any.
11495         (Fscroll_left, Fscroll_right): Don't call interactive_p;
11496         use a new second argument instead.
11498         * eval.c (Fcall_interactive_p): New function.
11499         (interactive_p): Don't test INTERACTIVE here.
11500         (Finteractive_p): Doc fix.
11502         * eval.c (Feval): Abort if INPUT_BLOCKED_P.
11504 2004-11-02  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
11506         * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
11507         comparing font names.
11509 2004-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11511         * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
11512         Fx_file_dialog if only directories should be read.
11514         * lisp.h: Fx_file_dialog takes 5 parameters.
11516         * xfns.c (Fx_file_dialog): Both Motif and GTK version:
11517         Add parameter only_dir_p.
11518         In Motif version, don't put DEFAULT_FILENAME in filter part of the
11519         dialog, just text field part.  Do not add DEFAULT_FILENAME
11520         to list of files if it isn't there.
11521         In GTK version, pass only_dir_p parameter to xg_get_file_name.
11523         * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
11524         Check only_dir_p instead of comparing prompt to "Dired".  When using
11525         a save dialog, add option kNavDontConfirmReplacement, change title
11526         to "Enter name", change text for save button to "Ok".
11528         * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
11529         Check only_dir_p instead of comparing prompt to "Dired".
11531         * gtkutil.c (xg_get_file_with_chooser, xg_get_file_with_selection):
11532         New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW
11533         and HAVE_GTK_FILE_SELECTION_NEW respectively.
11534         (xg_get_file_name): Add parameter only_dir_p.
11535         Call xg_get_file_with_chooser or xg_get_file_with_selection
11536         depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
11537         (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
11539         * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
11541         * config.in: Rebuild (added HAVE_GTK_FILE_*).
11543 2004-11-01  Kim F. Storm  <storm@cua.dk>
11545         * process.c (connect_wait_mask, num_pending_connects):
11546         Only declare and use them if NON_BLOCKING_CONNECT is defined.
11547         (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
11548         (IF_NON_BLOCKING_CONNECT): New helper macro.
11549         (wait_reading_process_output): Only declare and use local vars
11550         Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
11552 2004-11-01  Andy Petrusenco  <Igrek@star-sw.com>  (tiny change)
11554         * w32term.c (x_scroll_run): Delete region objects after use.
11556 2004-10-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11558         * xmenu.c: Add prototypes for forward function declarations.
11559         (popup_get_selection): Remove parameter do_timers, remove call to
11560         timer_check.
11561         (create_and_show_popup_menu, create_and_show_dialog):
11562         Remove parameter do_timers from call to popup_get_selection.
11564         * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
11565         tool_bar_items and assign the result to f->tool_bar_items if
11566         not equal.  Move BLOCK/UNBLOCK_INPUT from around call to
11567         tool_bar_items to assignment of result.
11569         * atimer.c (alarm_signal_handler): Do not call set_alarm if
11570         pending_atimers is non-zero.
11572 2004-10-31  Kim F. Storm  <storm@cua.dk>
11574         * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
11576 2004-10-28  Will  <will@glozer.net>
11578         * macterm.c: Allow user to assign key modifiers to the Mac Option
11579         key via a 'mac-option-modifier' variable.
11581 2004-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
11583         * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
11584         Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
11585         (x_handle_selection_request, x_handle_selection_clear)
11586         (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
11588 2004-10-28  Richard M. Stallman  <rms@gnu.org>
11590         * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
11592         * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
11594 2004-10-27  Stefan Monnier  <monnier@iro.umontreal.ca>
11596         * syntax.c (scan_sexps_forward): Give precedence to a 2-char
11597         comment-starter over a 1-char one.
11599 2004-10-27  Richard M. Stallman  <rms@gnu.org>
11601         * xdisp.c (get_next_display_element): In mode lines,
11602         treat newline and tab like other control characters.
11604         * editfns.c (Fmessage): Doc fix.
11606         * indent.c (vmotion): When moving up, check the newline before.
11607         Make prevline an int, not a Lisp_Object.
11609 2004-10-27  Kim F. Storm  <storm@cua.dk>
11611         * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
11612         Only allocate info and discarded tables once.
11614         * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
11615         (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
11616         (SAFE_FREE): Test it to determine if we need to unwind to free.
11617         Remove size arg.  All users changed.
11618         (SAFE_FREE_LISP) Remove.  All users changed to use SAFE_FREE.
11620 2004-10-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11622         * gtkutil.c: Put empty line between comment and function body.
11623         (xg_destroy_widgets): Rename from remove_from_container.
11624         Just destroy all widgets in list.  Argument wcont removed.
11625         (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
11626         instead of remove_from_container.
11627         (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
11628         (free_frame_tool_bar): Add comment.
11630         * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
11631         is not NULL before strcmp.
11633 2004-10-26  Kim F. Storm  <storm@cua.dk>
11635         * callint.c (Fcall_interactively): Add 'U' code to get the
11636         up-event discarded by a previous 'k' or 'K' argument.
11638 2004-10-26  David Kastrup  <dak@gnu.org>
11640         * buffer.c (syms_of_buffer): Fix a few typos.
11642 2004-10-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11644         * xsmfns.c: Put empty line between comment and function body.
11645         Use two spaces before comment end.
11647 2004-10-25  Kenichi Handa  <handa@m17n.org>
11649         * fontset.c (fontset_pattern_regexp): Optimize for the case that
11650         PATTERN is full XLFD.
11652 2004-10-24  Kenichi Handa  <handa@m17n.org>
11654         * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
11656         * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
11657         (regex_compile): Return REG_ERANGEX if appropriate.
11659 2004-10-22  Kenichi Handa  <handa@m17n.org>
11661         * editfns.c (Ftranslate_region_internal): New function.
11662         (syms_of_editfns): Defsubr it.
11664 2004-10-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11666         * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
11668 2004-10-21  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <lorentey@elte.hu>
11670         * xterm.h (x_output): New member `xic_base_fontname'.
11671         (FRAME_XIC_BASE_FONTNAME): New macro.
11672         (xic_free_xfontset): Declare.
11674         * xfns.c (xic_create_xfontset): Share fontsets between frames
11675         based on base_fontname.
11676         (xic_free_xfontset): New function.
11677         (free_frame_xic): Use it.
11678         (xic_set_xfontset): Ditto.
11680         * xterm.c (xim_destroy_callback): Ditto.
11682 2004-10-20  B. Anyos  <banyos@freemail.hu>  (tiny change)
11684         * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
11686 2004-10-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11688         * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
11689         XSync.
11691         * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
11692         New variables and constant.
11693         (main): Calculate heap_bss_diff.  If we are dumping and the
11694         heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
11695         and exec ourself again.
11696         (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
11697         print a warning.
11699         * lastfile.c: Make my_endbss and my_endbss_static available on all
11700         platforms.
11702         * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
11703         * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
11705 2004-10-19  Luc Teirlinck  <teirllm@auburn.edu>
11707         * data.c (Flocal_variable_if_set_p): Doc fix.
11709 2004-10-19  Jason Rumney  <jasonr@gnu.org>
11711         * w32.c (init_environment): Set emacs_dir correctly when running
11712         emacs from the build directory.
11714 2004-10-19  Richard M. Stallman  <rms@gnu.org>
11716         * editfns.c (Fdelete_and_extract_region):
11717         If region is empty, return null string.
11719 2004-10-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11721         * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
11722         and canon_width.
11723         (xg_frame_cleared): Remove.
11725         * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
11726         (xg_find_top_left_in_fixed): Remove.
11727         (xg_create_scroll_bar): Put an event box widget between
11728         the scroll bar widget and the edit widget.
11729         (xg_show_scroll_bar): Show the parent widget (the event box).
11730         (xg_remove_scroll_bar): Destroy parent (the event box) also.
11731         (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
11732         Move the parent (the event box) widget inside the fixed widget.
11733         Move window clear to xterm.c.
11735         * gtkutil.h (xg_frame_cleared): Remove.
11737         * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
11738         (x_scroll_bar_create, XTset_vertical_scroll_bar):
11739         Remove arguments left and width to xg_update_scrollbar_pos.
11740         (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
11742 2004-10-19  Kenichi Handa  <handa@m17n.org>
11744         * xdisp.c (display_mode_element): Fix display of wide chars.
11746 2004-10-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11748         * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
11749         gdk_window_clear and move gdk_window_process_all_updates after
11750         clear so events are sent to the X server in correct order.
11752 2004-10-18  Kenichi Handa  <handa@m17n.org>
11754         * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
11755         comparing font names.
11756         (fs_query_fontset): Use fast_string_match for comparing fontset names.
11757         (list_fontsets): Likewise.
11759         * search.c (fast_string_match_ignore_case): New function.
11761         * lisp.h (fast_string_match_ignore_case): Extern it.
11763 2004-10-17  Kim F. Storm  <storm@cua.dk>
11765         * xdisp.c (overlay_arrow_at_row): Return overlay string rather
11766         than bitmap if there is not left fringe.
11767         (get_overlay_arrow_glyph_row): Also used on windows system.
11768         (display_line): Display overlay string if no left fringe.
11770 2004-10-16  Jason Rumney  <jasonr@gnu.org>
11772         * w32fns.c (w32_font_match): Encode font name being matched.
11774 2004-10-16  Richard M. Stallman  <rms@gnu.org>
11776         * window.c (Fspecial_display_p): Doc fix.
11778 2004-10-15  Stefan Monnier  <monnier@iro.umontreal.ca>
11780         * doc.c (Fsubstitute_command_keys): Fix remap-handling.
11781         Don't ignore menus, because where-is-internal already does it for us.
11783 2004-10-15  Kim F. Storm  <storm@cua.dk>
11785         * xdisp.c (redisplay_window): Only update fringes and vertical
11786         border on window frames.
11788 2004-10-14  Andreas Schwab  <schwab@suse.de>
11790         * m/ia64.h (DATA_SEG_BITS): Don't define.
11792 2004-10-14  Kim F. Storm  <storm@cua.dk>
11794         * xterm.h: Include Xutil.h after keysym.h to work around bug
11795         in some X versions.
11797 2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>
11799         * fns.c (map_char_table): Add missing gcpros.
11801 2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>
11803         * keymap.c (get_keymap): An autoload form is not a keymap.
11805         * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
11807 2004-10-13  Kim F. Storm  <storm@cua.dk>
11809         * callproc.c (Fcall_process): Simplify handling of display arg.
11810         Resume `display_on_the_fly' once a coding system is determined.
11812         * xdisp.c (redisplay_preserve_echo_area): Fix last change.
11814 2004-10-12  Kim F. Storm  <storm@cua.dk>
11816         * xdisp.c (redisplay_preserve_echo_area): Flush display in case
11817         caller, such as call-process, is not going to poll for input.
11818         (calc_line_height_property): Handle case where it->object is nil.
11820         * xterm.c (x_redisplay_interface): Fix flush_display_optional.
11822 2004-10-12  Kenichi Handa  <handa@m17n.org>
11824         * xdisp.c (get_next_display_element):
11825         If unibyte_display_via_language_environment is zero, display 8-bit
11826         chars in octal in unibyte buffer.
11828 2004-10-12  Kim F. Storm  <storm@cua.dk>
11830         * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
11831         are no ordinary bindings.
11833 2004-10-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11835         * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
11837 2004-10-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11839         * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
11840         (x_lower_frame): Add BLOCK_INPUT around SendBehind.
11841         (make_mac_frame): Add BLOCK_INPUT around the making of a
11842         terminal frame.
11843         (mac_initialize): Add BLOCK_INPUT around carbon initialization.
11844         * macgui.h (mktime): Use emacs_mktime.
11845         * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
11846         Make a cancel file-open dialog be like C-g.
11847         * mac.c (mktime): Use emacs_mktime.
11848         (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
11849         (Fmac_paste_function): Add better error handling for carbon cut/paste.
11851 2004-10-10  Kim F. Storm  <storm@cua.dk>
11853         * keyboard.c (timer_resume_idle): New function to resume idle
11854         timer without resetting timers on the idle list.
11855         (read_char): Use timer_resume_idle.  Remove local var last_idle_start.
11856         (timer_start_idle, timer_stop_idle): Declare static.
11857         (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
11859         * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
11861 2004-10-08  Steven Tamm  <steventamm@mac.com>
11863         * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
11864         * macterm.c (mac_check_for_quit_char): Remove warning for using
11865         NULL where 0 should be used.
11866         * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
11867         objc/malloc.h
11868         * mac.c: Include time.h for Tiger compatibility.
11870 2004-10-07  Kim F. Storm  <storm@cua.dk>
11872         * xdisp.c (redisplay_window): Fix flicker on vertical line between
11873         windows.  Update vertical line after drawing window fringes, but
11874         only if actually drawing any bitmaps--or there is no fringe.
11876         * xterm.c (x_update_window_end): Likewise.
11877         * macterm.c (x_update_window_end): Likewise.
11878         * w32term.c (x_update_window_end): Likewise.
11880         * fringe.c (draw_window_fringes): Return value now indicates if
11881         any fringe bitmaps were redrawn (or there are no fringes).
11883         * dispextern.h (draw_window_fringes): Update prototype.
11885 2004-10-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
11887         * macfns.c (mac_get_window_bounds): Add extern.
11888         (x_real_positions): Use mac_get_window_bounds.
11890         * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
11891         xmenu.c (YAILOM).
11893         * macterm.c [!MAC_OSX]: Include Windows.h.
11894         (front_emacs_window): Rename from mac_front_window.  All uses
11895         changed.  Return the frontmost non-tooltip emacs window.
11896         (mac_get_window_bounds): New function.
11897         (x_calc_absolute_position): Use the difference of width and height
11898         between the inner and outer window.
11899         (x_set_offset): Specify window position by the coordinae of the
11900         outer window.  Adjust the position if the title bar is completely
11901         outside the screen.
11902         (app_is_suspended, app_sleep_time): Remove unused variables.
11903         (do_app_resume, do_app_suspend): Remove their contents because
11904         window-activate/deactivate events will do the job.
11905         (do_zoom_window): Remove unused variables.  Make compliant to the
11906         standard way of zooming.  Set f->left_pos and f->top_pos.
11907         (XTread_socket): Don't use argument `expected'.  Don't use
11908         FrontWindow to determine the clicked window.  Exclude unprocessed
11909         mouseUp cases in the early stage.  Add parentheses to fix operator
11910         precedence.
11911         (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
11913 2004-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11915         * config.in: Regenerate.
11917         * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
11918         HAVE_EXECSHIELD.
11920 2004-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11922         * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
11923         a row if Alt or Meta has been found for that row.  Also stop scanning
11924         for Keysyms for that row.
11926 2004-10-04  Kim F. Storm  <storm@cua.dk>
11928         * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
11929         to list.  Include overlay arrow bitmap in return value.
11931         * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
11932         bars with fractional column width.  If scroll bar separates two
11933         windows, move it towards the window it belongs to.  Only update
11934         the padding area below the scroll bar widget when necessary,
11935         i.e. when scroll bar widget is created, moved, or resized.
11937         * xdisp.c (define_frame_cursor1): Do not change frame cursor
11938         while tracking/dragging mouse.
11939         (x_draw_vertical_border): Do not draw line if frame has scroll bars.
11941         * window.c (coordinates_in_window): Relax check for cursor
11942         on vertial border between mode lines.
11943         (Fset_window_fringes): Do not allow negative widths.
11944         (Fset_window_scroll_bars): Likewise.
11946         * .gdbinit (pp): Shorthand for p ARG + pr.
11947         (ff): New command: flush frame updates (X only).
11949 2004-10-03  Michael Albinus  <michael.albinus@gmx.de>
11951         * fileio.c (auto_save_1) Call Ffile_modes for remote files.
11953 2004-09-30  Kenichi Handa  <handa@m17n.org>
11955         * process.c (send_process): Free composition data.
11957         * fileio.c (Finsert_file_contents): Free composition data.
11959         * coding.c (code_convert_region): Don't skip ASCIIs if there are
11960         compositions to encode.
11961         (encode_coding_string): Likewise.  Free composition data.
11963 2004-09-30  Florian Weimer  <fw@deneb.enyo.de>
11965         * coding.c (code_convert_region): Free composition data.
11967 2004-09-29  Kim F. Storm  <storm@cua.dk>
11969         * fringe.c: Remove limit on number of bitmaps.
11970         (fringe_bitmaps, fringe_faces): Change to pointers.
11971         (max_fringe_bitmaps): New var.
11972         (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
11973         (init_fringe): Allocate fringe_bitmaps and fringe_faces.
11975         * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
11976         (struct glyph_row): Reorder fringe_bitmap related fields.
11977         (struct it): Likewise.
11979         * w32term.c (fringe_bmp): Change to pointer.
11980         (max_fringe_bmp): New var.
11981         (w32_define_fringe_bitmap): Expand fringe_bmp.
11982         (w32_draw_fringe_bitmap): Check max_fringe_bmp.
11983         (w32_destroy_fringe_bitmap): Likewise.
11985 2004-09-29  Kim F. Storm  <storm@cua.dk>
11987         * fringe.c: Simplify last change.
11988         (lookup_fringe_bitmap): New function.
11989         (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
11990         (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
11991         Keep standard bitmaps in Vfringe_bitmaps.
11992         (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
11993         (Fset_fringe_bitmap_face): Likewise.
11995         * dispextern.h (lookup_fringe_bitmap): Add prototype.
11996         (valid_fringe_bitmap_p): Remove prototype.
11998         * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
12000 2004-09-29  Kim F. Storm  <storm@cua.dk>
12002         * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
12003         (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
12005         * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
12007         * fringe.c (Vfringe_bitmaps): New variable.
12008         (syms_of_fringe): DEFVAR_LISP it.
12009         (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
12010         Change arg to Lisp_Object and fail if not an integer.
12011         (get_fringe_bitmap_name, resolve_fringe_bitmap)
12012         (destroy_fringe_bitmap): New functions.
12013         (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
12014         Use destroy_fringe_bitmap.  Remove symbol from Vfringe_bitmaps and
12015         clear its fringe property.
12016         (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
12017         Fdestroy_fringe_bitmap.
12018         (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
12019         bitmap symbol; remove WHICH arg.  Add symbol to Vfringe_bitmaps
12020         and set fringe property.  Signal error if no free slots.
12021         (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
12022         (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
12024         * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
12025         symbols with a fringe property.
12027 2004-09-27  Kim F. Storm  <storm@cua.dk>
12029         * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
12030         Doc fix.  Format may now be a symbol or alist, not a cons.
12032         * fringe.c (update_window_fringes): Handle new formats of
12033         indicate-buffer-boundaries (symbol or alist).  No longer
12034         allow a simple cons.
12035         (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
12037 2004-09-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12039         * config.in: Rebuild.
12041 2004-09-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12043         * config.in: Rebuild.
12045         * Makefile.in: Run setarch i386 ./temacs if exec-shield is present.
12047 2004-09-18  Stefan Monnier  <monnier@iro.umontreal.ca>
12049         * xterm.c (x_term_init): Work around a bug in some X servers.
12051 2004-09-18  Richard M. Stallman  <rms@gnu.org>
12053         * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
12055         * xdisp.c (try_window_reusing_current_matrix):
12056         Handle the case where we reach the old displayed text,
12057         out of sync with the old line boundary.
12059 2004-09-14  Stefan Monnier  <monnier@iro.umontreal.ca>
12061         * fileio.c (Finsert_file_contents): Fix case of replacement in a
12062         narrowed buffer.
12064 2004-09-14  Kim F. Storm  <storm@cua.dk>
12066         * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
12068         * xfaces.c (Qface_no_inherit): New var.
12069         (syms_of_xfaces): Intern and staticpro it.
12070         (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
12071         (Finternal_copy_lisp_face, update_face_from_frame_parameter):
12072         Don't increment face_change_count when face has non-nil
12073         face-no-inherit property.
12075 2004-09-13  Stefan Monnier  <monnier@iro.umontreal.ca>
12077         * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
12078         (Fbyte_code): Remove dead code after `wrong_type_argument'.
12080         * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
12081         before doing the mark_stack_check_gcpros since they're not on the stack.
12083 2004-09-12  Kim F. Storm  <storm@cua.dk>
12085         * editfns.c (Fformat): Handle format strings with multiple text
12086         properties.  Reverse text property list from the format string,
12087         so the positions are in increasing order.
12089 2004-09-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12091         * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
12092         x_uncatch_errors so that possible protocol errors are delivered.
12094 2004-09-10  Eli Zaretskii  <eliz@gnu.org>
12096         * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
12097         blockinput.h.
12098         (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
12099         charset.h, and coding.h
12100         (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
12101         (term.o): Depend on window.h and keymap.h.
12102         (abbrev.o): Depend on syntax.h.
12103         (callint.o): Depend on keymap.h.
12104         (casefiddle.o): Depend on charset.h and keymap.h.
12105         (category.o): Depend on keymap.h.
12106         (coding.o): Depend on dispextern.h.
12107         (cmds.o): Depend on keyboard.h and keymap.h.
12108         (dispnew.o): Depend on indent.h and intervals.h.
12109         (doc.o): Depend on keymap.h.
12110         (editfns.o): Depend on frame.h.
12111         (emacs.o): Depend on dispextern.h.
12112         (fileio.o): Don't depend on ccl.h.
12113         (filelock.o): Depend on charset.h and coding.h.
12114         (frame.o): Depend on w32term.h and macterm.h.
12115         (insdel.o): Depend on region-cache.h.
12116         (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
12117         (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
12118         (search.o): Depend on $(INTERVALS_SRC).
12119         (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
12120         (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
12121         xterm.h, w32term.h, and macterm.h.
12122         (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
12123         w32term.h, and macterm.h.
12124         (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
12125         region-cache.h, xterm.h, w32term.h, and macterm.h.
12126         (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
12127         (data.o): Depend on frame.h.
12128         (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
12129         (print.o): Depend on termchar.h and $(INTERVALS_SRC).
12130         (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
12131         (intervals.o): Depend on keymap.h.
12133         * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
12134         Add debugging print-out to termscript.
12136 2004-09-09  Richard M. Stallman  <rms@gnu.org>
12138         * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
12140 2004-09-08  Richard M. Stallman  <rms@gnu.org>
12142         * window.c (Fset_window_buffer): Doc fix.
12144         * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
12146 2004-09-08  Dan Nicolaescu  <dann@ics.uci.edu>
12148         * minibuf.c (history_delete_duplicates): New variable.
12149         (read_minibuf): Use it.
12150         (syms_of_minibuf): Create the corresponding lisp variable.
12152 2004-09-08  Kim F. Storm  <storm@cua.dk>
12154         * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
12155         overlay just before point.
12157 2004-09-07  Luc Teirlinck  <teirllm@auburn.edu>
12159         * buffer.h (struct buffer): Add auto_save_file_format field.
12160         * buffer.c (reset_buffer, init_buffer_once):
12161         Handle auto_save_file_format field.
12162         (syms_of_buffer): Add DEFVAR_PER_BUFFER for
12163         `buffer-auto-save-file-format'.
12164         * fileio.c: Delete declaration for removed Vauto_save_file_format.
12165         (build_annotations): Adapt to replacement of
12166         `auto-save-file-format' with the new buffer-local variable
12167         `buffer-auto-save-file-format'.
12168         (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
12170 2004-09-07  Jason Rumney  <jasonr@gnu.org>
12172         * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
12174         * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
12175         Handle Unicode menu titles.
12177 2004-09-07  Kim F. Storm  <storm@cua.dk>
12179         * xdisp.c (set_cursor_from_row): Fix last change.  Only use 'cursor'
12180         property from text property or overlay strings at point.
12182 2004-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
12184         * xmenu.c (update_submenu_strings): YAILOM.
12185         (set_frame_menubar): Make sure last_i is initialized.
12187 2004-09-03  Jason Rumney  <jasonr@gnu.org>
12189         * w32menu.c (_widget_value): Add lname and lkey.
12190         (digest_single_submenu): Set lname and lkey in widget_value
12191         instead of name and key.
12192         (update_submenu_strings): New function.
12193         (set_frame_menubar): Remove call to inhibit_garbage_collection,
12194         call update_submenu_strings.
12196         * w32menu.c (globals_of_w32menu): Check for Unicode API.
12197         (digest_single_submenu, w32_menu_show): Encode menu strings as
12198         UTF-8 if Unicode API is available.
12199         (utf8to16): New function.
12200         (add_menu_item): Use it when calling Unicode API.
12202 2004-09-03  Kim F. Storm  <storm@cua.dk>
12204         * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
12205         in overlay or text-property strings; set cursor on corresponding
12206         glyph rather than at end of the string.
12208 2004-09-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12210         * macfns.c (x_real_positions): Save the current window port and
12211         set a new one before obtaining the global coordinate.
12212         Use FRAME_MAC_WINDOW.
12213         (x_set_name, x_set_title): Encode title to UTF8.
12214         Use SetWindowTitleWithCFString.
12215         (Fx_server_version): Get correct OS version.
12217         * macmenu.c (add_menu_item): Remove unused variable `i'.
12218         Don't let separator items destroy refence constants of other menu items.
12220         * macterm.c (x_update_end): Move SetPortWindowPort to inside
12221         BLOCK_INPUT.
12222         (x_set_offset): Use FRAME_MAC_WINDOW.
12224         * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
12225         nontext_cursor if it is on a scroll bar.
12227         * s/darwin.h (LIBS_CARBON): New define to specify libraries for
12228         Carbon support.
12229         (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
12230         Use LIBS_CARBON.
12232 2004-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12234         * xfns.c (x_set_name_internal): New function.  Check if we shall call
12235         xfree before ENCODE_UTF_8.
12236         (x_set_name, x_set_title): Call x_set_name_internal.
12238 2004-08-31  NAKAMURA Toshikazu  <nr-tkz@nifty.com>  (tiny change)
12240         * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
12241         reload it.
12243 2004-08-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12245         * macmenu.c (_widget_value): Add lname and lkey.
12246         (single_submenu): Set lname and lkey in widget_value
12247         instead of name and key.
12248         (update_submenu_strings): New function.
12249         (set_frame_menubar): Remove call to inhibit_garbage_collection,
12250         call update_submenu_strings.
12252         * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
12253         instead of name and key.
12254         (update_submenu_strings): New function.
12255         (set_frame_menubar): Remove call to inhibit_garbage_collection,
12256         call update_submenu_strings.
12258         * gtkutil.h (_widget_value): Added lname and lkey.
12260 2004-08-30  Steven Tamm  <steventamm@mac.com>
12262         * macmenu.c (mac_menu_show): Remove shadowing of menu variable
12263         by using different names for inner loop variables.
12265 2004-08-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12267         * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
12268         from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
12270         * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
12271         tool bar items is 0.
12273 2004-08-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12275         * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
12276         strings in menu items.
12277         (single_submenu): Use ENCODE_MENU_STRING
12278         (mac_menu_show): Use ENCODE_MENU_STRING.  Reset grabbed because
12279         button release isn't passed to event loop
12280         (add_menu_item): Use SetMenuItemWithCFString
12282 2004-08-26  Steven Tamm  <steventamm@mac.com>
12284         * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
12285         tool-bar/menu click.
12286         * macfns.c (Fx_file_dialog): Implement using NavServices.
12288 2004-08-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12290         * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
12292         * xfns.c (x_window_to_frame, x_any_window_to_frame)
12293         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
12294         (x_top_window_to_frame): Return 0 if wdesc is None.
12296 2004-08-22  Richard M. Stallman  <rms@gnu.org>
12298         * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
12299         HAVE_TERMIOS]: If there's no char for this signal, drop through
12300         and use system calls.
12302         * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
12304 2004-08-20  Kim F. Storm  <storm@cua.dk>
12306         * process.c (wait_reading_process_output): Rename from
12307         wait_reading_process_input.  All uses changed.
12308         (wait_reading_process_output_1): Rename from
12309         wait_reading_process_input_1.  All uses changed.
12311         * dispnew.c (Fsleep_for): Remove obsolete code.
12313 2004-08-20  Kenichi Handa  <handa@m17n.org>
12315         * syntax.c (skip_chars): Fix for unibyte case.
12317 2004-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
12319         * syntax.c (char_quoted): Mixup byte/char pos.
12320         (back_comment): Fixup globals in all cases.
12322 2004-08-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12324         * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
12325         passing it to gtk_window_set_title.
12327 2004-08-19  Kim F. Storm  <storm@cua.dk>
12329         * process.c (wait_reading_process_input): Clean up.
12330         Add wait_for_cell, wait_proc, and just_wait_proc args
12331         to avoid overloading `read_kbd' and `do_display' args.
12332         Change read_kbd arg to int.  All callers changed.
12334         * process.c (process_send_signal): Use CDISABLE.
12336         * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
12338 2004-08-18  Kim F. Storm  <storm@cua.dk>
12340         * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
12341         forward to wait_reading_process_input via DO_DISPLAY arg.
12342         (wait_reading_process_input): If DO_DISPLAY < 0 for a process
12343         object, only process output from that process; also inhibit
12344         running timers if DO_DISPLAY==-2.
12346 2004-08-17  Kim F. Storm  <storm@cua.dk>
12348         * process.c (process_send_signal): Fix last change--use
12349         _POSIX_VDISABLE instead of CVDISABLE when available.
12351 2004-08-16  Richard M. Stallman  <rms@gnu.org>
12353         * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
12354         Set VQUIT and VINTR chars to the standard ones if they are unset.
12355         [AIX]: Don't do that here.  And don't force VINTR to standard
12356         when SIGNALS_VIA_CHARACTERS.
12358         * process.c (process_send_signal)
12359         [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
12360         Do nothing if the character is CVDISABLE.
12362         * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
12364         * intervals.c (move_if_not_intangible):
12365         Force POSITION to be between BEGV and ZV.
12367 2004-08-14  John Paul Wallington  <jpw@gnu.org>
12369         * buffer.c (Frestore_buffer_modified_p): Doc fix.
12371         * fileio.c (Fread_file_name): Doc fix.
12373         * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
12375 2004-08-09  Luc Teirlinck  <teirllm@auburn.edu>
12377         * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
12379 2004-08-08  Luc Teirlinck  <teirllm@auburn.edu>
12381         * keyboard.c: Declare Qdisabled_command_function instead of
12382         Qdisabled_command_hook.
12383         (Fcommand_execute): Use Qdisabled_command_function instead of
12384         Qdisabled_command_hook.
12385         (syms_of_keyboard): Ditto.
12387 2004-08-07  Luc Teirlinck  <teirllm@auburn.edu>
12389         * keymap.c (Flocal_key_binding, Fglobal_key_binding)
12390         (syms_of_keymap) <key-translation-map>: Doc fixes.
12392 2004-08-07  Stefan Monnier  <monnier@iro.umontreal.ca>
12394         * window.c (window_list_1): YAILOM.
12396         * fileio.c (make_temp_name): Handle multibyte prefixes.
12398 2004-08-06  Luc Teirlinck  <teirllm@auburn.edu>
12400         * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
12401         Doc fix.
12403 2004-08-03  Kenichi Handa  <handa@m17n.org>
12405         * coding.c (decode_coding_string): Adjust coding->consumed, and
12406         etc. with shrinked_bytes.
12408 2004-08-03  Kim F. Storm  <storm@cua.dk>
12410         * indent.c (compute_motion): Fix check for full width window
12411         in non-window case.  Do not count left truncation glyph on
12412         window systems.
12414 2004-08-02  Luc Teirlinck  <teirllm@auburn.edu>
12416         * data.c (Finteractive_form): Doc fix.
12418 2004-08-02  Kim F. Storm  <storm@cua.dk>
12420         * indent.c (compute_motion): Use actual window width if WIDTH is -1,
12421         properly accounting for continuation glyph on non-window systems.
12422         (Fcompute_motion): Use actual window width if WIDTH is nil, and
12423         actual window width/height if TOPOS is nil, properly accounting for
12424         continuation glyphs on non-window systems, and optional header lines.
12425         (vmotion): Let compute_motion calculate actual window width.
12427         * window.c (window_scroll_line_based): Let compute_motion
12428         calculate actual window width.
12430 2004-08-02  Kim F. Storm  <storm@cua.dk>
12432         * process.c (read_process_output): Use whole read buffer.
12433         Don't trigger adaptive read buffering on errors.
12435 2004-07-31  Luc Teirlinck  <teirllm@auburn.edu>
12437         * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
12439         * keyboard.c (syms_of_keyboard) <disable-point-adjustment>: Doc fix.
12441         * callint.c (Fcall_interactively): Doc fix.
12443 2004-07-30  Richard M. Stallman  <rms@gnu.org>
12445         * abbrev.c (Fexpand_abbrev): Undo previous change.
12447 2004-07-30  Kim F. Storm  <storm@cua.dk>
12449         * editfns.c (Fformat): Allocate extra (dummy) element in info.
12451 2004-07-28  Luc Teirlinck  <teirllm@auburn.edu>
12453         * eval.c (Fdefvar, Fdefconst): Doc fixes.
12455 2004-07-27  Kim F. Storm  <storm@cua.dk>
12457         * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
12458         we have ensured that the glyph fits on the current line (or returned
12459         MOVE_LINE_CONTINUED otherwise).
12461 2004-07-26  Kim F. Storm  <storm@cua.dk>
12463         * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
12464         is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
12465         if target position is at end of display line but char is not a newline.
12467 2004-07-25  Richard M. Stallman  <rms@gnu.org>
12469         * window.c (coordinates_in_window): Return ON_SCROLL_BAR
12470         instead of ON_VERTICAL_BORDER, when on scroll bar.
12471         (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
12473         * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
12475         * window.c (Fcoordinates_in_window_p):
12476         Take account of FRAME_INTERNAL_BORDER_WIDTH.
12478         * alloc.c (check_cons_list): New function (contents commented out).
12480 2004-07-24  Luc Teirlinck  <teirllm@auburn.edu>
12482         * xfaces.c (Fcolor_supported_p): Doc fix.
12484         * frame.c (Fselect_frame, Fset_frame_selected_window)
12485         (Fframe_visible_p, Fraise_frame): Doc fixes.
12487 2004-07-24  Richard M. Stallman  <rms@gnu.org>
12489         * keyboard.h (not_single_kboard_state): Declare.
12491         * fileio.c (Fwrite_region): Doc fix.
12493         * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
12495         * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
12496         only when a real abbrev is present.
12498         * xfns.c (x_icon_verify): New function.
12499         (Fx_create_frame): Use it.
12501 2004-07-22  Barry Fishman  <barry_fishman@att.net>  (tiny change)
12503         * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
12505 2004-07-21  Kim F. Storm  <storm@cua.dk>
12507         * window.h (struct glyph_matrix): New members nrows_scale_factor
12508         and ncols_scale_factor.
12510         * window.c (make_window): Initialize nrows_scale_factor and
12511         ncols_scale_factor members.
12513         * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
12514         (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
12515         (required_matrix_height): Apply nrows_scale_factor.
12516         (required_matrix_width): Apply ncols_scale_factor.
12518         * xdisp.c (display_line): Increment nrows_scale_factor and set
12519         fonts_changed_p if past last allocated row.
12520         (append_glyph, append_composite_glyph, produce_image_glyph)
12521         (append_stretch_glyph): Increment ncols_scale_factor and set
12522         fonts_changed_p if current area is full.
12524 2004-07-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12526         * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
12528 2004-07-19  Luc Teirlinck  <teirllm@auburn.edu>
12530         * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
12531         (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
12532         (Fset_window_start, Fscroll_up, Fscroll_down)
12533         (Fother_window_for_scrolling, Fscroll_other_window)
12534         (Fsave_window_excursion, Fset_window_vscroll)
12535         (syms_of_window) <window-size-fixed>: Doc fixes.
12537 2004-07-19  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
12539         * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
12540         ENCODE_SYSTEM for filenames.
12542 2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12544         * mac.c (sys_select): Block input around call to
12545         ReceiveNextEvent to prevent breakage.  Correctly handle
12546         blocking on event queue only by calling ReceiveNextEvent
12547         instead of select (since GUI events aren't on an fd).
12548         (sys_read): Remove function
12549         * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
12551 2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12553         * mac.c (sys_select): Redo sys_select to use alarm-based
12554         polling instead of 1 sec timeouts (like solaris).
12556         * macterm.c (x_make_frame_visible): Comment in polling on
12557         frame creation.
12559         * keyboard.c: Undef SIGIO on Carbon
12561         * atimer.c (alarm_signal_handler): Call alarm handlers after
12562         scheduling.
12564         * eval.c (Feval): Remove quit_char test
12566         * process.c (wait_reading_process_input): Remove clearing
12567         stdin for select call on process input.
12569 2004-07-18  Luc Teirlinck  <teirllm@auburn.edu>
12571         * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
12572         capitalization error in docstring.
12574 2004-07-17  Juanma Barranquero  <lektu@terra.es>
12576         * keyboard.c (not_single_kboard_state): Do nothing unless
12577         MULTI_KBOARD is defined.
12579 2004-07-17  Richard M. Stallman  <rms@gnu.org>
12581         * window.c (coordinates_in_window): Inside the window but outside
12582         its box to the L or R, return ON_VERTICAL_BORDER.
12583         (window_list_1): Rotate the list to start with WINDOW.
12585         * print.c (print_preprocess): Test for print_depth at limit
12586         before entering in being_printed.
12588         * keyboard.c (not_single_kboard_state): New function.
12589         (stuff_buffered_input): Now no-op only if no SIGTSTP.
12591         * frame.c (Fdelete_frame): If we're in single_bboard_state on
12592         this kboard, and we delete its last frame, go to any_kboard_state.
12594         * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
12596 2004-07-15  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
12598         * w32fns.c (Fx_file_dialog): Encode strings in system coding
12599         system before passing them to OS functions for display.
12601 2004-07-15  David Kastrup  <dak@gnu.org>
12603         * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
12604         Apparently fixes an abort condition.
12606 2004-07-14  Luc Teirlinck  <teirllm@auburn.edu>
12608         * fileio.c (Fvisited_file_modtime): Return a list of two integers,
12609         instead of a cons.
12611 2004-07-14  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <lorentey@elte.hu>
12613         * keyboard.c (echo_dash): Do nothing if there already is a dash
12614         at the end of the echo string.
12616 2004-07-12  Kim F. Storm  <storm@cua.dk>
12618         * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
12619         if GC_MARK_STACK.
12621 2004-07-10  Luc Teirlinck  <teirllm@auburn.edu>
12623         * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
12625         * window.c (Fwindow_buffer, Fother_window, Fget_lru_window)
12626         (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
12627         (Freplace_buffer_in_windows, Fset_window_buffer)
12628         (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
12629         (syms_of_window): Expand docstring of `display-buffer-function'.
12631 2004-07-09  Luc Teirlinck  <teirllm@auburn.edu>
12633         * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
12634         (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
12635         that time values of the type (HIGH . LOW) are considered obsolete.
12637 2004-07-06  Luc Teirlinck  <teirllm@auburn.edu>
12639         * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
12640         docstring.
12642         * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
12644 2004-07-06  John Paul Wallington  <jpw@gnu.org>
12646         * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
12648         * fns.c (Fclear_string): Signal an error if STRING is not a string.
12650 2004-07-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12652         * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
12653         instead of CGMainDisplayID (only in OSX 10.2 and later).
12655 2004-07-04  John Paul Wallington  <jpw@gnu.org>
12657         * fileio.c (read_file_name_completion_ignore_case): New variable.
12658         (syms_of_fileio): Declare and initialise it.
12659         (Fread_file_name): Bind `completion-ignore-case' to respect it.
12661 2004-07-03  Eli Zaretskii  <eliz@gnu.org>
12663         * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
12664         for event.x and event.y.
12666 2004-07-01  Kenichi Handa  <handa@m17n.org>
12668         * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
12669         after getting a new string by pre-write-conversion.
12671 2004-06-30  Stefan Monnier  <monnier@iro.umontreal.ca>
12673         * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
12674         (x_calc_absolute_position): Remove unused var `child'.
12676         * xfaces.c (x_supports_face_attributes_p)
12677         (Fdisplay_supports_face_attributes_p): YAILOM.
12678         (tty_supports_face_attributes_p): Remove unused var `i'.
12680         * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
12681         back_unibyte_ok.
12683         * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
12685         * fontset.c (Fset_fontset_font): Remove unused vars `family' and
12686         `registry'.
12688         * Makefile.in (${etc}DOC): Fix file name of make-docfile.
12690 2004-06-30  Andreas Schwab  <schwab@suse.de>
12692         * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
12693         (Finit_image_library): Pass LIBRARIES through to
12694         CHECK_LIB_AVAILABLE.  Declare parameters.  Doc fix.
12695         (lookup_image_type): Pass Qnil as second argument to
12696         Finit_image_library.
12698         * lisp.h (Finit_image_library): Declare.
12700 2004-06-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
12702         * macterm.c (do_window_activate, do_window_deactivate): Remove.
12703         (XTread_socket): Send mouse button events to the toolbox
12704         dispatcher even when the mouse is grabbed.  Don't process window
12705         activate events for non-Emacs windows.  Replace function calls to
12706         do_window_activate and do_window_deactivate with their contents.
12707         Reset mouse grabbing status when a window is deactivated.
12709 2004-06-29  Steven Tamm  <steventamm@mac.com>
12711         * macterm.c (mac_get_emulated_btn)
12712         (mac_event_to_emacs_modifiers): Fix emulated mouse button
12713         support to correctly mask out modifiers.
12715 2004-06-29  David Kastrup  <dak@gnu.org>
12717         * search.c (Fset_match_data): Allow buffer before end of list
12718         which can happen if set-match-data is using a pre-consed list.
12720 2004-06-28  Steven Tamm  <steventamm@mac.com>
12722         * macterm.c (XTread_socket): Correctly set the frame position
12723         after the window is moved.
12725 2004-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12727         * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
12728         gpix and gmask just before return to avoid memory leak.
12729         (xg_get_image_for_pixmap): Add workaround for monochrome displays
12730         so insensitive and activated icons look ok.
12732 2004-06-27  Jason Rumney  <jasonr@gnu.org>
12734         * w32fns.c (file_dialog_callback): Disable edit control if set
12735         to directories only on CDN_INITDONE message.
12736         (Fx_file_dialog): Default to directories only when prompt starts
12737         with "Dired".
12739 2004-06-25  Kim F. Storm  <storm@cua.dk>
12741         * alloc.c (allocate_misc): Update total_free_markers.
12742         (free_misc): New function.
12743         (safe_alloca_unwind, free_marker): Use it.
12745         * lisp.h (free_misc): Add prototype.
12747         * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
12749 2004-06-24  Richard M. Stallman  <rms@gnu.org>
12751         * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
12752         (syms_of_emacs): Lisp variables deleted.
12754 2004-06-23  David Kastrup  <dak@gnu.org>
12756         * search.c (Freplace_match): Adjust the match-data more thoroughly
12757         when replacing strings in the buffer.
12758         (Fmatch_data): When INTEGERS is non-nil and the last match was in
12759         a buffer, add the buffer as last element to the match data.
12760         (Fset_match_data): If an additional element of the match-data is a
12761         buffer, restore it to last_thing_searched.
12762         (save_search_regs): Save last_thing_searched as part of the match data.
12763         (restore_match_data): Restore it again.
12765 2004-06-23  Luc Teirlinck  <teirllm@auburn.edu>
12767         * keymap.c (Ftext_char_description): Doc fix.
12768         * doc.c (Fsnarf_documentation): Doc fix.
12770 2004-06-22  Kim F. Storm  <storm@cua.dk>
12772         * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
12774         * lisp.h (struct Lisp_Save_Value): New member dogc.
12775         (SAFE_ALLOCA_LISP): Change second arg to number of elements.
12776         Set dogc member in Lisp_Save_Value object so it will be GC'ed.
12777         (SAFE_FREE_LISP): New macro.
12779         * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
12780         (make_save_value): Init new dogc member.
12781         (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
12783         * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
12784         SAFE_FREE_LISP macros.
12786 2004-06-22  Kim F. Storm  <storm@cua.dk>
12788         * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
12789         Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
12790         in that memory area are unknown to GC.  Add comments.
12792         * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
12794 2004-06-21  Kim F. Storm  <storm@cua.dk>
12796         * lisp.h (MAX_ALLOCA): Define here.
12797         (safe_alloca_unwind): Add prototype.
12798         (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
12800         * alloc.c (safe_alloca_unwind): New function.
12802         * casefiddle.c (casify_object): Use SAFE_ALLOCA.
12804         * charset.c (Fstring): Use SAFE_ALLOCA.
12806         * coding.c (MAX_ALLOCA): Remove define.
12808         * data.c (MAX_ALLOCA): Remove define.
12809         (Faset): Use SAFE_ALLOCA.
12811         * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
12813         * fns.c (string_make_multibyte, string_to_multibyte)
12814         (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
12815         (MAX_ALLOCA): Remove define.
12816         (Fbase64_encode_region, Fbase64_encode_string)
12817         (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
12818         (Fbase64_encode_region, Fbase64_encode_string): Fix potential
12819         memory leak if encoding fails.
12821         * xdisp.c (add_to_log): Use SAFE_ALLOCA.
12823 2004-06-21  Eli Zaretskii  <eliz@gnu.org>
12825         * print.c (Fwith_output_to_temp_buffer): Doc fix.
12827 2004-06-20  Richard M. Stallman  <rms@gnu.org>
12829         * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
12831         * search.c (match_limit): Cleaner err msg when no match data available.
12833         * window.c (syms_of_window): Doc fix.
12835         * keyboard.c (command_loop_1): Handle values `only' and `identity'
12836         for Vtransient_mark_mode.
12838         * buffer.c (syms_of_buffer): Doc fix.
12840 2004-06-21  David Kastrup  <dak@gnu.org>
12842         * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
12843         and unbinding of `case-fold-search' according to
12844         `completion-ignore-case' around calls of string-match and
12845         predicates, respectively.  Should give satisfactory performance
12846         in all relevant cases.
12848 2004-06-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12850         * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
12851         clip_x/y_origin.
12853         * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
12855         * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
12857         * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
12858         on Mac OSX.
12860 2004-06-16  Luc Teirlinck  <teirllm@auburn.edu>
12862         * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
12864 2004-06-16  Kim F. Storm  <storm@cua.dk>
12866         * dispextern.h (Vimage_types): Remove extern.
12868 2004-06-16  Miles Bader  <miles@gnu.org>
12870         * image.c (lookup_image_type): Initialize image type if necessary.
12872 2004-06-15  Kim F. Storm  <storm@cua.dk>
12874         * xdisp.c (try_cursor_movement): Exclude header line from scroll
12875         margin at top of window.
12876         (try_window_reusing_current_matrix): Calculate proper cursor position
12877         after scrolling up with non-zero scroll margin, as the old cursor
12878         position corresponds to value of PT before executing this command.
12879         (try_window_id): Consider scroll margin at bottom of window too;
12880         otherwise we fail to scroll when hl-line-mode is enabled.
12882         * syntax.c (skip_chars): Only recognize [:class:] when it has the
12883         proper format and class is a lower-case word.
12885 2004-06-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
12887         * gtkutil.c (xg_get_image_for_pixmap): New function.
12888         (xg_get_gdk_pixmap_and_mask): Remove.
12889         (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
12890         xg_get_gdk_pixmap_and_mask.
12892         * xterm.h (struct x_display_info): Typo in comment fixed.
12894 2004-06-14  Juanma Barranquero  <lektu@terra.es>
12896         * dispextern.h (Vimage_types): Make it conditional on
12897         HAVE_WINDOW_SYSTEM.
12899         * image.c (Vimage_types): Move from xdisp.c.
12900         (Vimage_type_cache): New variable.
12901         (define_image_type): New argument indicating whether an image
12902         library was loaded; cache loaded status and return t on success,
12903         nil otherwise.
12904         (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
12905         (w32_delayed_load): New function to load an image library from a
12906         list of possible filenames.
12907         (init_xpm_functions, init_png_functions, init_jpeg_functions)
12908         (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
12909         (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
12910         (Finit_image_library): New function, extracted from `init_image'.
12911         Try to initialize an image library on demand and cache whether we
12912         were successful or not.
12913         (syms_of_image): Initialize `Vimage_types' and
12914         `Vimage_type_cache'.  Add recognized image types to Vimage_types.
12915         Export `init-image-library'.
12916         (init_image): Remove initialization of all image types, except xbm
12917         and pbm.
12919         * xdisp.c (Vimage_types): Delete (moved to image.c).
12921 2004-06-14  Andreas Schwab  <schwab@suse.de>
12923         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
12924         Avoid calling specbind when completion-regexp-list is empty.
12926 2004-06-13  Richard M. Stallman  <rms@gnu.org>
12928         * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
12929         (re_wctype, re_iswctype, re_wctype_to_bit):
12930         Non-function definitions moved here from regex.c.
12932         * regex.c (re_wctype, re_iswctype): Function defs longer static.
12933         (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
12934         (re_wctype, re_iswctype, re_wctype_to_bit):
12935         Non-function definitions moved to regex.h.
12937         * window.c (Fselect_window): Doc fix.
12939         * syntax.c: Include regex.h.
12940         (skip_chars): New arg HANDLE_ISO_CLASSES.  Callers changed.
12941         If requested, make a list of classes, then check the scanned
12942         chars for membership in them.
12943         (in_classes): New function.
12944         Doc fix.
12946         * keyboard.c (cmd_error): Don't call any_kboard_state
12947         if inside a recursive edit level.
12949 2004-06-13  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <lorentey@elte.hu>
12951         * keyboard.c (command_loop): Call any_kboard_state before
12952         command_loop_2 when at top level.
12954 2004-06-13  Andreas Schwab  <schwab@suse.de>
12956         * print.c (print_object): Always use %ld for printing EMACS_INT.
12958         * keyboard.c (cancel_hourglass_unwind): Return a value.
12959         (modify_event_symbol): Always use %ld for printing EMACS_INT.
12960         (Fexecute_extended_command): Likewise.
12962         * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
12963         avoid clashes.
12964         (SYNTAX): Likewise.
12965         (SYNTAX_WITH_FLAGS): Likewise.
12966         (SYNTAX_MATCH): Likewise.
12968         * syntax.c (char_quoted): Avoid warning about undefined operation.
12969         (find_defun_start): Likewise.
12970         (scan_lists): Likewise.
12971         (INC_FROM): Likewise.
12972         (scan_sexps_forward): Likewise.
12974         * image.c: Include <ctype.h>.
12976         * xfaces.c (face_attr_equal_p): Declare parameters.
12978 2004-06-13  Kenichi Handa  <handa@m17n.org>
12980         * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
12982 2004-06-12  Matthew Mundell  <matt@mundell.ukfsn.org>
12984         * eval.c (Fdefun): Signal an error if NAME is not a symbol.
12986 2004-06-12  Kenichi Handa  <handa@m17n.org>
12988         * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
12989         ccl_prog_stack_struct and update it.
12990         (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
12991         (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
12992         ccl->eof_ic on EOF.
12993         (ccl_debug_hook): New function.
12994         (struct ccl_prog_stack): New member eof_ic.
12995         (ccl_driver): Handle EOF in subrountine call correctly.
12997 2004-06-11  Kenichi Handa  <handa@m17n.org>
12999         * coding.c (encode_coding_string): Check CODING_FINISH_INTERRUPT.
13001 2004-06-11  Kim F. Storm  <storm@cua.dk>
13003         * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
13005 2004-06-11  Juanma Barranquero  <lektu@terra.es>
13007         * keyboard.c (Fposn_at_point): Doc fix.
13009 2004-06-11  David Kastrup  <dak@gnu.org>
13011         * search.c (match_limit): Don't flag an error if match-data
13012         exceeding the allocated search_regs.num_regs gets requested, just
13013         return Qnil.
13015 2004-06-08  Miles Bader  <miles@gnu.org>
13017         * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
13019 2004-06-07  Juanma Barranquero  <lektu@terra.es>
13021         * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
13022         (Fcurrent_time_string, Fcurrent_time_zone)
13023         (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
13025 2004-06-07  Miles Bader  <miles@gnu.org>
13027         * xfaces.c (struct named_merge_point): New type.
13028         (push_named_merge_point): New function.
13029         (merge_named_face): New function.
13030         (merge_face_ref, face_at_buffer_position, face_at_string_position):
13031         Use `merge_named_face'.
13032         (merge_face_inheritance): Function removed.
13033         (merge_face_ref): Rename from `merge_face_vector_with_property'.
13034         Add new `err_msgs' and `named_merge_points' args.  Return error
13035         status.  Only print error messages if ERR_MSGS is true.  Don't try to
13036         do :inherit attribute validation.
13037         (merge_face_heights): Handle `unspecified' in both directions.
13038         (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
13039         Call `merge_face_ref' instead of `merge_face_inheritance'.
13040         (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
13041         (compute_char_face, face_at_buffer_position)
13042         (face_at_string_position): Call `merge_face_ref' instead of
13043         `merge_face_vector_with_property'.
13045 2004-06-07  Kenichi Handa  <handa@m17n.org>
13047         * coding.c (find_safe_codings): Check NILP (safe_codings) only at
13048         the necessary places.
13050 2004-06-07  Kim F. Storm  <storm@cua.dk>
13052         * process.c (Fdelete_process): Undo 2004-05-28 change.
13053         Instead, call status_notify also for network process.
13054         (status_message): Use process instead of status as arg.
13055         Give messages "deleted" or "connection broken by remote peer" for
13056         an exited network process.
13057         (status_notify): Change call to status_message.
13058         (read_process_output): Increase readmax to 4096.  Do not increase
13059         buffer size for datagram channels (default is now large enough).
13061 2004-06-06  Steven Tamm  <tamm@Steven-Tamms-Computer.local>
13063         * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
13064         problem due to newly defined variable.
13066 2004-06-06  Miles Bader  <miles@gnu.org>
13068         * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
13069         immediately if non-interactive or not initialized.
13071 2004-06-05  Richard M. Stallman  <rms@gnu.org>
13073         * minibuf.c (Fcompleting_read): Doc fix.
13075 2004-06-05  Andreas Schwab  <schwab@suse.de>
13077         * macfns.c (x_create_tip_frame): Fix declaration after statement.
13079 2004-06-05  Juanma Barranquero  <lektu@terra.es>
13081         * keymap.c (Fdescribe_vector): Fix docstring.
13082         (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
13084 2004-06-05  Miles Bader  <miles@gnu.org>
13086         * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
13087         attributes have different values than the default face.
13089 2004-06-04  Eli Zaretskii  <eliz@gnu.org>
13091         * xfaces.c (x_supports_face_attributes_p): Make this function
13092         conditional on HAVE_WINDOW_SYSTEM.
13093         (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
13094         Don't call x_supports_face_attributes_p if it was not compiled in.
13096 2004-06-04  Miles Bader  <miles@gnu.org>
13098         * xfaces.c (tty_supports_face_attributes_p): New function, mostly
13099         from Ftty_supports_face_attributes_p.
13100         (x_supports_face_attributes_p): New function.
13101         (Ftty_supports_face_attributes_p): Function deleted.
13102         (Fdisplay_supports_face_attributes_p): New function.
13103         (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
13104         (face_attr_equal_p): New function.
13105         (lface_equal_p): Use it.
13107 2004-06-03  Juanma Barranquero  <lektu@terra.es>
13109         * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
13110         (Vw32_color_map): Fix typo in docstring.
13111         (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
13112         (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
13113         Make argument names match their use in docstring.
13115 2004-06-02  Juanma Barranquero  <lektu@terra.es>
13117         Work around bugs/problems with MinGW builds of graphics libraries
13118         called from MSVC builds of Emacs.
13120         * image.c (lookup_image): Make pointer to img static.
13121         (png_read_from_memory): Disable "global" optimization.
13123 2004-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
13125         * eval.c (Fcondition_case): Fix usage.  Simplify.
13127         * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
13129 2004-05-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13131         * macfns.c: Don't include ccl.h.
13132         [MAC_OSX]: Don't include QuickTime/QuickTime.h.
13133         [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
13134         TextUtils.h.
13135         (Fx_create_frame): Sync with xfns.c.  Initialize cursor descriptors.
13136         (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
13137         display height/width.
13138         (compute_tip_xy, Vx_max_tooltip_size): Declare.
13139         (unwind_create_tip_frame, compute_tip_xy): New functions.
13140         (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
13141         (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
13142         and last_show_tip_args.
13144         * macgui.h [!MAC_OSX]: Include Gestalt.h.
13145         (Cursor, No_Cursor): New defines.
13146         [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
13147         [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
13149         * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
13151         * macterm.c: Don't include Gestalt.h.
13152         (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
13153         (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
13154         (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
13155         (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
13156         (mac_copy_area, mac_copy_area_with_mask, x_update_end)
13157         (construct_mouse_click, XTmouse_position)
13158         (x_scroll_bar_report_motion, x_calc_absolute_position)
13159         (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
13160         (XTread_socket, make_mac_frame): Use SetPortWindowPort.
13161         (note_mouse_movement): Clear the mouse face and reset the pointer
13162         shape when the pointer goes outside the frame without grabbing.
13163         (mac_front_window): New function.
13164         (mac_window_to_frame): New macro.
13165         (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
13166         (do_window_activate, do_window_deactivate, do_app_resume)
13167         (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
13168         (do_zoom_window, mac_do_receive_drag, XTread_socket)
13169         (mac_check_for_quit_char): Use mac_front_window and/or
13170         mac_window_to_frame.
13171         (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
13172         scroll-bar click event.
13173         (mac_define_frame_cursor): Change the pointer shape.
13174         (x_free_frame_resources): Reset tip_window to NULL when it is
13175         disposed of.
13176         [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
13177         [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
13178         (do_window_update): Don't do anything if the updated window is the
13179         tooltip window.
13180         (do_mouse_moved): Handle mouse movement events here (previously in
13181         XTread_socket).  Clear the mouse face if
13182         dpyinfo->mouse_face_hidden is set.
13183         (do_os_event, do_events): Remove (now in XTread_socket).
13184         (XTread_socket): Immediately return if interrupt_input_blocked.
13185         Loop until all the events in the queue are processed.
13186         Rearrange codes for mouse grabbing.  Add tooltip support.  Include the
13187         contents of do_os_event and do_events.  Remove mouse movement
13188         handling (now in do_mouse_moved).  Add the case where
13189         Vmouse_highlight has an integer value.
13190         (NewMacWindow): Remove.
13191         (make_mac_frame): Do what NewMacWindow previously did.  Don't do
13192         excess initializations.
13193         (make_mac_terminal_frame): Previous initializations in
13194         make_mac_frame are moved here.
13195         (mac_initialize_display_info):
13196         Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
13198         * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
13199         (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
13201 2004-05-29  Richard M. Stallman  <rms@gnu.org>
13203         * lisp.h (truncate_undo_list): Update decl.
13205         * alloc.c (undo_outer_limit): New variable.
13206         (syms_of_alloc): Defvar it.
13207         (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
13209         * undo.c (truncate_undo_list): New arg LIMITSIZE.
13211         * alloc.c (lisp_align_malloc): Check for base == 0
13212         regardless of HAVE_POSIX_MEMALIGN.
13213         Clean up HAVE_POSIX_MEMALIGN handling of `err'.
13215 2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
13217         * alloc.c: Undo Kim's recent changes and fix the same bug differently.
13218         (marker_blocks_pending_free): Remove.
13219         (Fgarbage_collect): Sweep after cleaning up undo-lists.
13220         Mark the undo lists after claning them up.
13221         Don't free block in marker_blocks_pending_free.
13222         (mark_buffer): Don't mark undo_list.
13223         (gc_sweep): Sweep hash-tables and strings first.
13224         Do free marker blocks that are empty.
13226 2004-05-28  Jim Blandy  <jimb@redhat.com>
13228         * regex.c (print_partial_compiled_pattern): Add missing 'break'
13229         after 'case wordend'.  For symbeg and symend, print to stderr,
13230         like the other cases.
13232 2004-05-28  Noah Friedman  <friedman@splode.com>
13234         * process.c (Fdelete_process): Do not call remove_process.
13236 2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
13238         * alloc.c (struct backtrace): Remove.
13239         (Fgarbage_collect): Use the new mark_backtrace.
13241         * eval.c (mark_backtrace): New function.
13243         * minibuf.c (run_exit_minibuf_hook): New function.
13244         (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
13245         (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
13247 2004-05-27  Kim F. Storm  <storm@cua.dk>
13249         * xdisp.c (back_to_previous_visible_line_start): Skip backwards
13250         over display properties, e.g. images, that replace buffer text.
13252 2004-05-25  Kim F. Storm  <storm@cua.dk>
13254         * alloc.c (marker_blocks_pending_free): New var.
13255         (gc_sweep): Store free marker blocks on that list.
13256         (Fgarbage_collect): Free them after undo-list cleanup.
13258         * process.c (wait_reading_process_input): Check connect_wait_mask
13259         before actually accepting connection in case it has already been
13260         accepted due to recursion.
13262 2004-05-23  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <lorentey@elte.hu>
13264         * coding.c (Fset_safe_terminal_coding_system_internal):
13265         Set suppress_error in safe_terminal_coding, not terminal_coding.
13267 2004-05-22  Richard M. Stallman  <rms@gnu.org>
13269         * alloc.c (Fmake_string): Doc fix.
13271         * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
13272         and the alist pairs too.
13274         * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
13276         * emacs.c (main): Update copyright year.
13278         * fileio.c (Fread_file_name): Expand DIR if not absolute.
13280         * insdel.c (del_range_2, replace_range): Don't write an anchor
13281         if the gap is empty.
13283         * xdisp.c (try_scrolling): If scroll-up-aggressively or
13284         scroll-down-aggressively is small but positive, put point
13285         near the screen edge.
13287 2004-05-22  Juanma Barranquero  <lektu@terra.es>
13289         * keymap.c (Fdefine_key): Doc fix.
13291 2004-05-22  Kim F. Storm  <storm@cua.dk>
13293         * alloc.c (struct backtrace): Add debug_on_exit member.
13294         (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
13295         Identify those markers as Lisp_Misc_Free objects.  Clear car and cdr of
13296         the removed cons cells.
13297         (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
13298         (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
13299         any cons cells pointing to unallocated stings.
13300         Do not lisp_free any marker blocks, as there may still be pointers
13301         to them from buffer undo lists at this stage of GC.
13303         * keyboard.c (struct backtrace): Add debug_on_exit member.
13304         (Fcommand_execute): Clear it.
13306 2004-05-20  Luc Teirlinck  <teirllm@auburn.edu>
13308         * intervals.c (lookup_char_property): Do not prematurely return nil.
13310 2004-05-19  Jim Blandy  <jimb@redhat.com>
13312         Add support for new '\_<' and '\_>' regexp operators, matching the
13313         beginning and end of symbols.
13315         * regex.c (enum syntaxcode): Add Ssymbol.
13316         (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
13317         (re_opcode_t): New opcodes `symbeg' and `symend'.
13318         (print_partial_compiled_pattern): Print the new opcodes properly.
13319         (regex_compile): Parse the new operators.
13320         (analyse_first): Skip sym(beg|end) (they match only the empty string).
13321         (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
13322         \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
13323         (re_match_2_internal): Match symbeg and symend.
13325         * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
13327 2004-05-19  Kim F. Storm  <storm@cua.dk>
13329         * .gdbinit (xsymbol): Fix last change.
13331 2004-05-18  Stefan Monnier  <monnier@iro.umontreal.ca>
13333         * .gdbinit (xprintstr): New fun.
13334         (xstring, xprintsym): Use it.
13336         * w32proc.c (create_child): Use INTMASK.
13338         * alloc.c (Fgarbage_collect): Do all the marking before flushing
13339         unmarked elements of the undo list.
13341 2004-05-18  David Ponce  <david@dponce.com>
13343         * print.c (print): Reset print_depth before to call print_object.
13345 2004-05-18  Jason Rumney  <jasonr@gnu.org>
13347         * w32console.c: Prefix RIF functions with w32con_ to avoid
13348         namespace clash with functions in term.c and w32term.c.
13350         * w32menu.c (add_menu_item, w32_menu_display_help)
13351         [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
13353         * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
13355 2004-05-18  Eli Zaretskii  <eliz@gnu.org>
13357         * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
13359         * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
13360         with make_number.
13361         (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
13362         with XINT.
13364 2004-05-18  Kim F. Storm  <storm@cua.dk>
13366         * blockinput.h (INPUT_BLOCKED_P): New macros.
13368         * keyboard.c (Frecursive_edit): Return immediately if input blocked.
13369         (Ftop_level): Unblock input if blocked.
13371         * buffer.h (GET_OVERLAYS_AT): New macro.
13372         * msdos.c (IT_note_mouse_highlight): Use it.
13373         * textprop.c (get_char_property_and_overlay): Use it.
13374         * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
13375         * xfaces.c (face_at_buffer_position): Use it.
13377         * print.c (print_object): Increase buf size.
13379 2004-05-17  Jason Rumney  <jasonr@gnu.org>
13381         * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
13382         (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
13383         Lisp_Object using i member.
13384         (w32_quit_key): Rename from Vw32_quit_key, and make an int.
13385         (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
13386         consistently.
13388         * w32proc.c (create_child): Use make_number instead of masking pid.
13390         * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
13391         (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
13392         Use EQ to compare Lisp_Objects.
13393         (w32_parse_hot_key): Use int for lisp_modifiers consistently.
13395         * w32term.c (w32_num_mouse_buttons): Rename from
13396         Vw32_num_mouse_buttons and make it an int.
13398         * w32.c (init_environment): Use it.
13400         * w32fns.c (w32_wnd_proc): Likewise.
13402         * w32proc.c (w32_pipe_read_delay): Rename from
13403         Vw32_pipe_read_delay and make it an int.
13405         * w32.c (_sys_read_ahead): Use it.
13407         * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
13409         * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
13411         * w32inevt.c (w32_console_mouse_position, do_mouse_event)
13412         (key_event): Don't mix Lisp_Object and int.
13414         * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
13416         * keyboard.c (kbd_buffer_get_event): Don't use event->code and
13417         modifiers in language change event.
13419 2004-05-17  Kim F. Storm  <storm@cua.dk>
13421         * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
13422         Such objects may be freed markers which still exist on an undo list.
13424 2004-05-16  Juanma Barranquero  <lektu@terra.es>
13426         * data.c (Fset_default): Make argument names match their use in
13427         docstring.
13429 2004-05-15  Andreas Schwab  <schwab@suse.de>
13431         * emacs.c (gdb_array_mark_flag): Define.
13432         * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
13434 2004-05-15  Eli Zaretskii  <eliz@gnu.org>
13436         * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
13437         __attribute__((__aligned__)), so that USE_LSB_TAG would not become
13438         defined for the MS-DOS build.
13440 2004-05-14  Stefan Monnier  <monnier@iro.umontreal.ca>
13442         * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
13444 2004-05-14  Kenichi Handa  <handa@m17n.org>
13446         * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
13448 2004-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13450         * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
13451         section to frame.c section.
13452         (Fxw_display_color_p, Fx_file_dialog): Declare if
13453         HAVE_WINDOW_SYSTEM defined.
13455         * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
13457         * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
13459         * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
13460         (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
13461         (XTread_socket): Fix int/Lisp_Object mixup.
13462         (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
13464         * macterm.h (struct frame, struct face, struct image)
13465         (display_x_get_resource, Fx_display_color_p)
13466         (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
13467         Add prototypes.
13469 2004-05-14  Kim F. Storm  <storm@cua.dk>
13471         * process.c (wait_reading_process_input): Make reentrant.
13472         Make Available and Connecting non-static.  Save and restore value
13473         of waiting_for_user_input_p.
13475 2004-05-13  Kim F. Storm  <storm@cua.dk>
13477         * keyboard.c (mark_kboards): Don't mark x and y members
13478         that are overloaded in selection request events.
13480 2004-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
13482         * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
13484 2004-05-13  Glenn Morris  <gmorris@ast.cam.ac.uk>
13486         * window.c (Fdisplay_buffer, Fsplit_window)
13487         (split-height-threshold): Doc fix.
13489 2004-05-13  Juanma Barranquero  <lektu@terra.es>
13491         * xfaces.c (Ftty_supports_face_attributes_p)
13492         (Finternal_copy_lisp_face): Fix typo in docstring.
13493         (Finternal_get_lisp_face_attribute): Fix docstring.
13495 2004-05-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13497         * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
13499 2004-05-11  Steven Tamm  <steventamm@mac.com>
13501         * macfns.c (Fx_create_frame): Default to using tool-bar by
13502         setting tool-bar-lines to 1 in default-frame-alist.
13504 2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13506         * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
13507         (xpm_get_color_table_v, xpm_make_color_table_h)
13508         (xpm_put_color_table_h, xpm_get_color_table_h)
13509         (xpm_str_to_color_key, xpm_load_image, xpm_load)
13510         (syms_of_image): Support XPM on Carbon Emacs.  Does not
13511         depend on libXpm, but only supports XPM version 3 without extensions.
13513 2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13515         * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
13516         instead of FRAME_X_P
13518 2004-05-11  Kim F. Storm  <storm@cua.dk>
13520         * process.c (read_process_output): Grow decoding_buf when needed;
13521         this could cause a crash in allocate_string and compact_small_strings.
13523 2004-04-29  Jim Blandy  <jimb@redhat.com>
13525         * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
13526         against proper opcode.
13528 2004-05-10  Juanma Barranquero  <lektu@terra.es>
13530         * process.c (Fstart_process): Fix docstring.
13532         * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
13533         (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
13534         (Fsplit_char, Fchar_charset): Make argument names match their use
13535         in docstring.
13537 2004-05-10  Richard M. Stallman  <rms@gnu.org>
13539         * print.c (print_preprocess): Use being_printed, loop_count and
13540         halftail to detect overdeep nesting and cyclic cdr chains.
13542 2004-05-10  Andreas Schwab  <schwab@suse.de>
13544         * lisp.h (Fmake_symbolic_link): Declare.
13546         * fileio.c (Frename_file): Remove extra argument in call to
13547         Fmake_symbolic_link.
13549 2004-05-10  Kim F. Storm  <storm@cua.dk>
13551         * xdisp.c (calc_line_height_property): Use string position when
13552         object is a string.
13554 2004-05-10  Kenichi Handa  <handa@m17n.org>
13556         * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
13557         inhibit-modification-hooks to t temporarily before calling
13558         Ferase_buffer.
13560         * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
13561         inhibit-modification-hooks to t temporarily before calling
13562         Ferase_buffer.
13564         * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
13565         inhibit-modification-hooks to t temporarily before calling
13566         Ferase_buffer.
13568         * fns.c (count_combining): Delete it.
13569         (concat): Don't check combining bytes.
13571 2004-05-09  Jason Rumney  <jasonr@gnu.org>
13573         * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
13574         (globals_of_w32fns): Set it.
13576 2004-05-09  Piet van Oostrum  <piet@cs.uu.nl>
13578         * data.c (Fquo): Simplify.
13580 2004-05-08  Peter Whaite  <emacs@whaite.ca>  (tiny change)
13582         * data.c (Fquo): If any argument is float, do the computation in
13583         floating point.
13585 2004-05-08  Juanma Barranquero  <lektu@terra.es>
13587         * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
13588         (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
13589         Fix spelling of Emacs on docstring.
13590         (Fset_process_coding_system, Fprocess_coding_system)
13591         (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
13592         Make argument names match their use in docstring.
13593         (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
13594         Fix docstring.
13596         * editfns.c (Finsert_buffer_substring): Make argument names match their
13597         use in docstring.
13599         * syntax.c (Fmodify_syntax_entry): Fix docstring.
13601 2004-05-07  Steven Tamm  <steventamm@mac.com>
13603         * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
13604         around call to ReceiveEvent to avoid certain crashes.
13606 2004-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
13608         * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
13609         (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
13610         (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
13611         Save/restore the current graphics port and device handle when
13612         drawing into an offscreen graphics world.
13614         * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
13615         (gif_load): Likewise.
13617 2004-05-07  Juanma Barranquero  <lektu@terra.es>
13619         * window.c (Fset_window_buffer): Fix docstring.
13621 2004-05-06  Thien-Thi Nguyen  <ttn@gnu.org>
13623         * emacs.c (main) [VMS]: Fix var ref.
13625 2004-05-06  Romain Francoise  <romain@orebokech.com>
13627         * data.c (Fsetq_default): Fix docstring.
13629 2004-05-06  Jason Rumney  <jasonr@gnu.org>
13631         * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
13632         to avoid name clash.
13634 2004-05-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13636         * fileio.c (barf_or_query_if_file_exists): Use lstat.
13637         (Frename_file): Handle renaming of symlinks across file systems.
13638         (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
13640 2004-05-04  Kim F. Storm  <storm@cua.dk>
13642         * xdisp.c (Qtotal): New var.
13643         (syms_of_xdisp): Intern and staticpro it.
13644         (calc_line_height_property): New arg total.  Set it if
13645         line-spacing property has format (total . VALUE).
13646         (x_produce_glyphs): Ignore line-spacing if line-height is 0.
13647         Handle total line-spacing property.
13649 2004-05-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13651         * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
13652         "under" scroll bar when size/position changes.
13654 2004-05-03  Jason Rumney  <jasonr@gnu.org>
13656         * makefile.nt: Remove.
13658 2004-05-02  Eli Zaretskii  <eliz@gnu.org>
13660         * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
13661         Avoid compiler warnings.
13663         * Makefile.in (region-cache.o): Depend on config.h.
13665 2004-05-02  Romain Francoise  <romain@orebokech.com>
13667         * indent.c (compute_motion): Save vpos in prev_vpos when dealing
13668         with continuation lines, too.
13670 2004-05-02  Thien-Thi Nguyen  <ttn@gnu.org>
13672         * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
13674 2004-05-01  Stefan Monnier  <monnier@iro.umontreal.ca>
13676         * xdisp.c (calc_line_height_property): YAILOM (yet another
13677         int/Lisp_Object mixup).
13679 2004-05-01  Eli Zaretskii  <eliz@gnu.org>
13681         * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
13682         undo bad effect of pack(4) in some versions of system headers.
13684 2004-05-01  Jason Rumney  <jasonr@gnu.org>
13686         * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
13688 2004-04-30  Kim F. Storm  <storm@cua.dk>
13690         * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
13691         (syms_of_buffer) <cursor-type>: Doc fix.
13693         * dispextern.h (struct it): Remove member use_default_face.
13694         Add members override_ascent, override_descent, override_boff.
13696         * xdisp.c (init_iterator): Handle line-spacing float value.
13697         Initialize override_ascent member.
13698         (append_space_for_newline): Reset override_ascent.
13699         Remove use_default_face.
13700         (calc_line_height_property): New function to calculate value of
13701         line-height and line-spacing properties.  Look at overlays, too.
13702         Set override_ascent, override_descent, override_boff members when
13703         using another face than the current face.  Float values are now
13704         relative to the frame default font, by default; accept a cons
13705         of ratio and face name to specify value relative to a specific face.
13706         (x_produce_glyphs): Use calc_line_height_property.
13707         Use override_ascent etc. when set to handle different face heights.
13708         A negative line-spacing property value is interpreted as a total
13709         line height, rather than inter-line spacing.
13710         (note_mouse_highlight): Allocate room for 40 overlays initially.
13712 2004-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
13714         * data.c (Fsubr_name): New fun.
13715         (syms_of_data): Defsubr it.
13717 2004-04-29  Kim F. Storm  <storm@cua.dk>
13719         * xdisp.c (null_glyph_slice): New var.
13720         (append_glyph, append_composite_glyph, append_stretch_glyph):
13721         Use it to initialize glyph slice.
13723 2004-04-27  Stefan Monnier  <monnier@iro.umontreal.ca>
13725         * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
13726         (on_hot_spot_p): Make sure we always return a value.
13727         (Flookup_image_map): Remove unused var ix and iy.
13728         (note_mode_line_or_margin_highlight): Remove unused var `image'.
13730 2004-04-27  Eli Zaretskii  <eliz@gnu.org>
13732         * msdos.c (init_environment): If one of the TMP... environment
13733         variables is set to a drive letter without a trailing slash,
13734         append a slash.
13736 2004-04-27  Matthew Mundell  <matt@mundell.ukfsn.org>
13738         * editfns.c (lisp_time_argument): Provide externally.
13740         * fileio.c (Fset_file_times): New function.
13741         (syms_of_fileio): Intern and staticpro it.
13743 2004-04-27  Kim F. Storm  <storm@cua.dk>
13745         * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
13746         header line strings.
13748         * dispextern.h (struct it): New member use_default_face.
13750         * xdisp.c (Qline_height): New variable.
13751         (syms_of_xdisp): Intern and staticpro it.
13752         (append_space_for_newline): Partially undo 2004-04-25 change;
13753         add default_face_p arg, and restore callers.
13754         Clear it->use_default_face after use.
13755         (x_produce_glyphs): Set default font for ascii char if
13756         it->use_default_font is set.  Change line-spacing property to set
13757         just extra line spacing.  Handle new line-height property.
13759 2004-04-26  Andreas Schwab  <schwab@suse.de>
13761         * print.c (print_object): Print non-ascii characters in bool
13762         vector representation as octal escapes.
13764         * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
13765         * print.c (print_object): Use it instead of BITS_PER_CHAR for
13766         bool vectors.
13767         * lread.c (read1): Likewise.
13768         * alloc.c (Fmake_bool_vector): Likewise.
13769         * data.c (Faref, Faset): Likewise.
13770         * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
13771         (mapcar1): Likewise.
13773 2004-04-26  Steven Tamm  <tamm@Steven-Tamms-Computer.local>
13775         * lread.c (init_lread): Fix typo in HAVE_CARBON test logic.
13777 2004-04-26  Miles Bader  <miles@gnu.org>
13779         * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
13781 2004-04-26  Juanma Barranquero  <lektu@terra.es>
13783         * buffer.c (Fpop_to_buffer): Fix docstring.
13785 2004-04-26  Steven Tamm  <steventamm@mac.com>
13787         * lread.c (init_lread): Don't display missing lisp directory
13788         warnings with Carbon Emacs because self-contained bundled Emacs
13789         may be built without correct installation path.
13791 2004-04-25  Kim F. Storm  <storm@cua.dk>
13793         * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
13795         * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
13797         * xdisp.c (append_space_for_newline): Rename from append_space.
13798         Remove DEFAULT_FACE_P arg; always use current face.  Callers changed.
13799         (x_produce_glyphs): Handle line-spacing property on newline char.
13800         If value is t, adjust ascent and descent to fit current row height.
13801         If value is an integer or float, set extra_line_spacing to integer
13802         value, or to float value x current line height.
13804 2004-04-23  Kenichi Handa  <handa@m17n.org>
13806         * fontset.c (Finternal_char_font): If POSITION is nil, return
13807         font for displaying CH with the default face.
13809 2004-04-23  Juanma Barranquero  <lektu@terra.es>
13811         * makefile.w32-in: Add "-*- makefile -*-" mode tag.
13813 2004-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
13815         * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
13816         Don't make assumptions about the relative place of i and val.
13817         (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
13819 2004-04-21  Kim F. Storm  <storm@cua.dk>
13821         * dispextern.h (struct glyph_slice): New struct.
13822         (struct glyph): New member slice.
13823         (GLYPH_SLICE_EQUAL_P): New macro.
13824         (GLYPH_EQUAL_P): Use it.
13825         (struct glyph_string): New member slice.
13826         (struct it_slice): New struct.
13827         (struct it): New member slice, add member to stack too.
13828         New member constrain_row_ascent_descent_p.
13829         (image_ascent): Add prototype.
13831         * dispnew.c (buffer_posn_from_coords): Return full image width
13832         and height even for image slices (posn is relative to full image).
13833         (marginal_area_string): Adjust x0,y0 for image slice.
13835         * image.c (image_ascent): Add slice arg; calculate ascent for
13836         image slice (or full image).
13838         * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
13839         (syms_of_keyboard): Defsubr them.
13841         * lisp.h (pos_visible_p): Fix prototype.
13843         * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
13844         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
13845         (x_draw_image_foreground, x_draw_image_relief)
13846         (x_draw_image_foreground_1, x_draw_image_glyph_string):
13847         Draw sliced images.
13849         * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
13850         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
13851         (x_draw_image_foreground, x_draw_image_relief)
13852         (w32_draw_image_foreground_1, x_draw_image_glyph_string):
13853         Draw sliced images.
13855         * w32term.h (image_ascent): Remove prototype.
13857         * window.c (Fpos_visible_in_window_p): Return pixel position if
13858         PARTIALLY arg is non-nil.  Simplify.  Doc fix.
13859         (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
13860         to return/set vscroll in pixels.
13862         * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
13864         * xdisp.c (Qslice): New variable.
13865         (syms_of_xdisp): Intern and staticpro it.
13866         (pos_visible_p): Return pixel position in new x and y args.
13867         (init_iterator): Reset it->slice info.
13868         (handle_display_prop): Parse (slice ...) property.
13869         (push_it, pop_it): Save/restore slice info.
13870         (make_cursor_line_fully_visible): Fix 2004-04-14 change.  Do not
13871         force repositioning of tall row if window is vscrolled, as that
13872         would reset vscroll.
13873         (append_space): Set it->constrain_row_ascent_descent_p to avoid
13874         increasing row height if row is non-empty.
13875         (fill_image_glyph_string): Copy slice info.
13876         (take_vertical_position_into_account): Simplify.
13877         (produce_image_glyph): Handle iterator slice info, setup glyph
13878         slice info.  Do not force minimum line height.
13879         (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
13880         do not increase height (ascent/descent) of non-empty row when
13881         adding normal character glyph; instead reduce glyph ascent/descent
13882         appropriately; if row is higher than current glyph, adjust glyph
13883         descent/ascent to reposition glyph within the existing row.
13884         Likewise, when char is newline, only set ascent/descent if row is
13885         currently empty.
13886         (note_mouse_highlight): Handle hotspots with sliced image.
13888         * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
13889         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
13890         (x_draw_image_foreground, x_draw_image_relief)
13891         (x_draw_image_foreground_1, x_draw_image_glyph_string):
13892         Draw sliced images.
13894         * xterm.h (image_ascent): Remove prototype.
13896 2004-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
13898         * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
13900 2004-04-20  John Paul Wallington  <jpw@gnu.org>
13902         * fns.c (Fassoc, Feql): Fix indentation.
13904         * fontset.c (regularize_fontname): Rename from regulalize_fontname.
13906 2004-04-19  John Paul Wallington  <jpw@gnu.org>
13908         * fns.c (Feql): New function.
13909         (syms_of_fns): Defsubr it.
13911 2004-04-18  Jason Rumney  <jasonr@gnu.org>
13913         * w32select.c (Fw32_set_clipboard_data): Get sequence number
13914         after closing the clipboard.
13916 2004-04-16  Luc Teirlinck  <teirllm@auburn.edu>
13918         * buffer.c (Fbuffer_base_buffer): Doc fix.
13920 2004-04-17  Kim F. Storm  <storm@cua.dk>
13922         * keymap.c (Fkey_description): Add optional PREFIX arg.
13923         Combine prefix with KEYS to make up the full key sequence to describe.
13924         Correlate meta_prefix_char and following (simple) key to describe
13925         as meta modifier.  All callers changed.
13926         (describe_map): Rename arg `keys' to `prefix'.  Remove local
13927         `elt_prefix' var.  Use Fkey_description with prefix instead of
13928         elt_prefix combined with Fsingle_key_description.
13929         (describe_vector): Declare static.  Replace arg `elt_prefix' with
13930         `prefix'.  Add KEYMAP_P arg.  Add local var `elt_prefix'; use it
13931         if !KEYMAP_P.  Use Fkey_description with prefix instead of
13932         Fsingle_key_description.
13934         * keymap.h (Fkey_description): Fix prototype.
13935         (describe_vector): Remove prototype.
13937         * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
13939         * image.c (PNG_BG_COLOR_SHIFT): Remove.
13940         (png_load): Fix calculation of transparent background color on X
13941         and W32 platforms.
13943 2004-04-16  Juanma Barranquero  <lektu@terra.es>
13945         * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
13946         not too large before computing how much to scroll.
13948 2004-04-15  Stefan Monnier  <monnier@iro.umontreal.ca>
13950         * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
13952 2004-04-14  Luc Teirlinck  <teirllm@auburn.edu>
13954         * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
13955         Add hyperlink to Elisp manual to the docstring.
13957 2004-04-14  Stefan Monnier  <monnier@iro.umontreal.ca>
13959         * callint.c (fix_command): Use XDCR.
13961 2004-04-14  Nick Roberts  <nick@nick.uklinux.net>
13963         * window.c (Fget_lru_window): Doc fix.
13965 2004-04-14  Kim F. Storm  <storm@cua.dk>
13967         * editfns.c (Fformat): Fix allocation size of precision array.
13969         * dispnew.c (update_window): Only set changed_p if
13970         scrolling_window actually did scroll.
13971         (scrolling_window): Only return 1 if we actually did scroll.
13973         * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
13974         height to glyph height when cursor row is not fully visible.
13975         (make_cursor_line_fully_visible): Add FORCE_P arg to return
13976         failure in case row is higher than window.  Callers changed.
13977         (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
13978         Try to scroll partially visible, higher-than-window cursor row.
13979         (redisplay_window): Always try to scroll partially visible,
13980         higher-than-window cursor row - both initially and again with
13981         centering_position = 0.
13982         Clear desired matrix before retrying with centering_position = 0.
13984 2004-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
13986         * syntax.c (scan_lists): Simplify backward string scan.
13987         Fix off-by-one boundary check for string and comment fences.
13989 2004-04-13  Joe Buehler  <jbuehler@hekimian.com>
13991         * sheap.c, unexcw.c: New files.
13993 2004-04-12  Luc Teirlinck  <teirllm@auburn.edu>
13995         * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
13996         base buffer has been killed.  Correct the error message if the
13997         base buffer does not exist.
13999 2004-04-12  Joe Buehler  <jbuehler@hekimian.com>
14001         * s/cygwin.h: Changes for Cygwin unexec() support, changes in
14002         Cygwin itself.  Add support for Xaw3d scrollbars.
14004         * puresize.h: Set up PURE_P() for Cygwin unexec() support.
14006         * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
14008         * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
14009         before Cygwin unexec.
14011         * Makefile.in: Link changes for Cygwin unexec() support.
14013 2004-04-12  Andreas Schwab  <schwab@suse.de>
14015         * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
14017 2004-04-11  Luc Teirlinck  <teirllm@auburn.edu>
14019         * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
14020         IGNORE argument equals NAME.  Doc fix.
14022 2004-04-11  Masatake YAMATO  <jet@gyve.org>
14024         * buffer.c (fix_start_end_in_overlays): Make overlays
14025         empty if they are backwards.
14027 2004-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
14029         * xfaces.c (face_color_supported_p): Fix compilation without X11.
14031 2004-04-07  Stefan Monnier  <monnier@iro.umontreal.ca>
14033         * doc.c (Fsnarf_documentation): Ignore new file name entries.
14035 2004-04-06  Kim F. Storm  <storm@cua.dk>
14037         * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
14038         (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
14040         * w32term.c (w32_read_socket): Set mouse_face_hidden after
14041         clearing highlight.
14043         * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
14045         * xterm.c (handle_one_xevent): Set mouse_face_hidden after
14046         clearing highlight.
14048         * indent.c (vmotion): Do not reserve one column for continuation
14049         marks on window frames.
14051 2004-04-04  Eli Zaretskii  <eliz@gnu.org>
14053         * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
14054         from GCC.
14056 2004-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
14058         * .gdbinit-union: Remove.
14060         * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
14061         (xgetptr, xgetint, xgettype): New funs.  Use them everywhere.
14062         ($nonvalbits): Remove.
14063         ($valmask): Set it by calling xreload to avoid redundancy.
14065         * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
14066         (gdb_emacs_intbits): Remove.
14068 2004-03-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14070         * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
14072 2004-03-30  Kenichi Handa  <handa@m17n.org>
14074         * editfns.c (Fformat): Fix initialization of the array info.
14076 2004-03-30  Kim F. Storm  <storm@cua.dk>
14078         * xterm.c (x_mouse_click_focus_ignore_position): New var.
14079         (syms_of_xterm): DEFVAR_BOOL it.
14080         (ignore_next_mouse_click_timeout): New var.
14081         (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
14082         Use it to filter mouse clicks following focus event.
14084 2004-03-29  David Ponce  <david@dponce.com>
14086         * callint.c (Fcall_interactively): Fix last change.
14088 2004-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
14090         * eval.c (Fcommandp): Simplify.
14092         * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
14093         Extend to handle all kinds of functions.
14095         * lisp.h (Finteractive_form): Declare.
14097         * callint.c (Fcall_interactively): Use it.
14099 2004-03-26  Kim F. Storm  <storm@cua.dk>
14101         * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
14102         to catch errors in calc_pixel_width_or_height during redisplay.
14104 2004-03-26  Masatake YAMATO  <jet@gyve.org>
14106         * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
14108         * lisp.h (fix_start_end_in_overlays): Likewise.
14110         * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
14112         * editfns.c (Ftranspose_regions): Likewise.
14114 2004-03-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14116         * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
14118 2004-03-19  Richard M. Stallman  <rms@gnu.org>
14120         * s/sol2-6.h: Delete previous change.
14122 2004-03-19  Kim F. Storm  <storm@cua.dk>
14124         * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
14125         to_charpos corresponds to newline in right fringe.  Use local
14126         BUFFER_POS_REACHED_P macro.
14128 2004-03-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14130         * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
14131         to compile on non-window system.
14133 2004-03-19  Kim F. Storm  <storm@cua.dk>
14135         * dispextern.h (calc_pixel_width_or_height): Add prototype.
14137         * image.c (Qcenter): Move to xdisp.c.
14139         * xdisp.c (Qcenter): Declare here.
14140         (syms_of_xdisp): Intern and staticpro it.
14141         (handle_single_display_prop): Allow space display property on all
14142         platforms.
14143         (display_mode_line): Set mode_line_p before displaying line.
14144         (calc_pixel_width_or_height): Declare extern.  Add separate :align-to
14145         handling.  Remove complex cases for fringes and scroll-bars.
14146         Add left, right, and center alignment positions.  Add text (area)
14147         width/height.  Return width or height for image specs.
14148         (produce_stretch_glyph): Improve handling of :align-to.  Is now
14149         relative to left of text area by default, but other base offsets
14150         can be specified -- also for text lines.
14152         * term.c (produce_glyphs): Handle IT_STRETCH.
14153         (produce_stretch_glyph): New function to handle space width and
14154         align-to display properties on non-window systems.
14156 2004-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
14158         * fileio.c (Fread_file_name): Set completion-ignore-case for
14159         case-insensitive systems.
14161 2004-03-14  Masatake YAMATO  <jet@gyve.org>
14163         * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
14164         when keymap and cursor are setup.
14166 2004-03-14  Steven Tamm  <steventamm@mac.com>
14168         * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
14170 2004-03-14  Kim F. Storm  <storm@cua.dk>
14172         * dispextern.h (x_find_image_file): Add prototype.
14174         * image.c (x_find_image_file): Make extern.
14176         * xfns.c (x_find_image_file): Remove prototype.
14178 2004-03-13  Eli Zaretskii  <eliz@gnu.org>
14180         * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
14182         * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
14184 2004-03-12  Richard M. Stallman  <rms@gnu.org>
14186         * fns.c (internal_equal): New arg PROPS controls comparing
14187         text properties.  All callers changed.
14188         (Fequal_including_properties): New function.
14189         (syms_of_fns): defsubr it.
14191 2004-03-12  Kim F. Storm  <storm@cua.dk>
14193         Fix image support on MAC.  From YAMAMOTO Mitsuharu.
14195         * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
14196         (image_background, image_background_transparent): Fix prototypes.
14198         * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
14200         * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
14201         (x_query_font, x_find_ccl_program, x_set_window_size)
14202         (x_make_frame_visible, mac_initialize, XCreatePixmap)
14203         (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14204         (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
14206         * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
14207         (x_query_font, x_find_ccl_program, x_set_window_size)
14208         (x_make_frame_visible, mac_initialize, XCreatePixmap)
14209         (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
14210         (mac_draw_line_to_pixmap): Add prototypes.
14212 2004-03-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14214         * macterm.c (XTread_socket): Fix mouse click on tool bar.
14216 2004-03-11  Kim F. Storm  <storm@cua.dk>
14218         * dispextern.h: Move image related prototypes from xfns.c section
14219         to image.c.  Condition them by HAVE_WINDOW_SYSTEM rather than
14220         HAVE_X_WINDOWS.
14222         * Makefile.in (XOBJ): Consolidate into one list.  Add image.o.
14223         Move gtkutil.o to new GTK_OBJ list.
14224         (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
14225         (GTK_OBJ) [USE_GTK]: New declaration.
14226         (obj): Add $(GTK_OBJ) to list.
14228 2004-03-11  Steven Tamm  <steventamm@mac.com>
14230         * image.c [MAC_OSX]: Include sys/stat.h.
14232         * macfns.c (syms_of_macfns): Remove definitions of things now
14233         defined in image.c.
14235 2004-03-11  Kim F. Storm  <storm@cua.dk>
14237         The following changes consolidates the identical/similar image
14238         support code previously found in xfns.c, w32fns.c, and macfns.c
14239         into a new file image.c.
14241         * makefile.w32-in (OBJ1): Add image.o.
14242         ($(BLD)/image.$(O)): Add dependencies.
14244         * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
14245         (image.o): Add dependencies.
14247         * image.c: New file with consolidated image support code.
14248         (COLOR_TABLE_SUPPORT): New define to control whether
14249         color table support is available (X only).
14250         (Bitmap_Record): Common name for x_bitmap_record,
14251         w32_bitmap_record, and mac_bitmap_record.
14252         (XImagePtr): Common name for pointer to XImage or equivalent.
14253         (XImagePtr_or_DC): New type to simplify code sharing; equivalent
14254         to XImagePtr on X+MAC, and to HDC on W32.
14255         (GET_PIXEL): Wrapper for XGetPixel or equivalent.
14256         (NO_PIXMAP): Common name for "None" or equivalent.
14257         (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
14258         (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
14259         (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
14260         (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
14261         Define with suitable equivalents on W32 and MAC for code sharing.
14262         (XDrawLine): Define on MAC for code sharing.
14263         (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
14264         (IF_LIB_AVAILABLE): Macro to simplify code sharing.
14265         (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14266         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14267         (x_reference_bitmap, x_create_bitmap_from_data)
14268         (x_create_bitmap_from_file, x_destroy_bitmap)
14269         (x_destroy_all_bitmaps, x_create_bitmap_mask)
14270         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14271         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14272         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14273         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14274         (define_image_type, lookup_image_type, valid_image_p)
14275         (image_error, enum image_value_type, struct image_keyword)
14276         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14277         (make_image, free_image, prepare_image_for_display, image_ascent)
14278         (four_corners_best, image_background, image_background_transparent)
14279         (x_clear_image_1, x_clear_image, x_alloc_image_color)
14280         (make_image_cache, free_image_cache, clear_image_cache)
14281         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14282         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14283         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14284         (find_image_fsspec, image_load_qt_1, image_load_quicktime)
14285         (init_image_func_pointer, image_load_quartz2d)
14286         (struct ct_color, init_color_table, free_color_table)
14287         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14288         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14289         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14290         (x_disable_image, x_build_heuristic_mask)
14291         (XBM support, XPM support, PBM support, PNG support, JPEG support)
14292         (TIFF support, GIF support, Ghostscript support): Consolidate image
14293         code from xfns.c, w32fns.c, and macfns.c.
14294         (syms_of_image): Consolidate image related symbol setup here.
14295         (init_image): Consolidate image related initializations here.
14297         * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
14298         and init_image.  Remove call to init_xfns.
14300         * macterm.h (struct mac_bitmap_record): Add file member.
14301         Not currently used, but simplifies code sharing.
14303         * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14304         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14305         (x_reference_bitmap, x_create_bitmap_from_data)
14306         (x_create_bitmap_from_file, x_destroy_bitmap)
14307         (x_destroy_all_bitmaps, x_create_bitmap_mask)
14308         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14309         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14310         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14311         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14312         (define_image_type, lookup_image_type, valid_image_p)
14313         (image_error, enum image_value_type, struct image_keyword)
14314         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14315         (make_image, free_image, prepare_image_for_display, image_ascent)
14316         (four_corners_best, image_background, image_background_transparent)
14317         (x_clear_image_1, x_clear_image, x_alloc_image_color)
14318         (make_image_cache, free_image_cache, clear_image_cache)
14319         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14320         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14321         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14322         (find_image_fsspec, image_load_qt_1, image_load_quicktime)
14323         (init_image_func_pointer, image_load_quartz2d)
14324         (struct ct_color, init_color_table, free_color_table)
14325         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14326         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14327         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14328         (x_disable_image, x_build_heuristic_mask)
14329         (XBM support, XPM support, PBM support, PNG support, JPEG support)
14330         (TIFF support, GIF support, Ghostscript support): Merge with image
14331         code from xfns.c and macfns.c into image.c.
14332         (syms_of_xfns): Move image related symbols to image.c.
14333         (init_external_image_libraries, init_xfns): Remove; initialization
14334         moved to init_image in image.c.
14336         * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14337         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14338         (x_reference_bitmap, x_create_bitmap_from_data)
14339         (x_create_bitmap_from_file, x_destroy_bitmap)
14340         (x_destroy_all_bitmaps, x_create_bitmap_mask)
14341         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14342         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14343         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14344         (define_image_type, lookup_image_type, valid_image_p)
14345         (image_error, enum image_value_type, struct image_keyword)
14346         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14347         (make_image, free_image, prepare_image_for_display, image_ascent)
14348         (four_corners_best, image_background, image_background_transparent)
14349         (x_clear_image_1, x_clear_image, x_alloc_image_color)
14350         (make_image_cache, free_image_cache, clear_image_cache)
14351         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14352         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14353         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14354         (struct ct_color, init_color_table, free_color_table)
14355         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14356         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14357         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14358         (x_disable_image, x_build_heuristic_mask)
14359         (XBM support, XPM support, PBM support, PNG support, JPEG support)
14360         (TIFF support, GIF support, Ghostscript support): Merge with image
14361         code from xfns.c and macfns.c into image.c.
14362         (syms_of_xfns): Move image related symbols to image.c.
14363         (init_external_image_libraries, init_xfns): Remove; initialization
14364         moved to init_image in image.c.
14366         * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
14367         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14368         (x_reference_bitmap, x_create_bitmap_from_data)
14369         (x_create_bitmap_from_file, x_destroy_bitmap)
14370         (x_destroy_all_bitmaps, x_create_bitmap_mask)
14371         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
14372         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
14373         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
14374         (define_image_type, lookup_image_type, valid_image_p)
14375         (image_error, enum image_value_type, struct image_keyword)
14376         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
14377         (make_image, free_image, prepare_image_for_display, image_ascent)
14378         (four_corners_best, image_background, image_background_transparent)
14379         (x_clear_image_1, x_clear_image, x_alloc_image_color)
14380         (make_image_cache, free_image_cache, clear_image_cache)
14381         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
14382         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
14383         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
14384         (struct ct_color, init_color_table, free_color_table)
14385         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
14386         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
14387         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
14388         (x_disable_image, x_build_heuristic_mask)
14389         (XBM support, XPM support, PBM support, PNG support, JPEG support)
14390         (TIFF support, GIF support, Ghostscript support): Merge with
14391         w32fns.c and macfns.c image code into image.c.
14392         (syms_of_xfns): Move image related symbols to image.c.
14393         (init_xfns): Remove; initialization moved to init_image in image.c.
14395         * lisp.h (syms_of_image, init_image): Add protoypes.
14396         (init_xfns): Remove prototype.
14398         * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14399         (x_reference_bitmap, x_create_bitmap_from_data)
14400         (x_create_bitmap_from_file, x_destroy_bitmap)
14401         (x_create_bitmap_mask): Move prototypes from dispextern.h.
14402         (gamma_correct) [MAC_OS]: Add prototype.
14404         * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
14405         (x_reference_bitmap, x_create_bitmap_from_data)
14406         (x_create_bitmap_from_file, x_destroy_bitmap)
14407         (x_create_bitmap_mask): Move prototypes to dispextern.h.
14409 2004-03-09  Kenichi Handa  <handa@etlken2>
14411         * coding.c (decode_coding_emacs_mule): Handle insufficent source
14412         correctly.
14414 2004-03-04  Richard M. Stallman  <rms@gnu.org>
14416         * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
14418         * window.c (Fdisplay_buffer): Doc fix.
14420         * buffer.c (Fpop_to_buffer): Doc fix.
14422 2004-03-03  Kim F. Storm  <storm@cua.dk>
14424         * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
14426 2004-03-02  Stefan Monnier  <monnier@iro.umontreal.ca>
14428         * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
14430 2004-03-02  Richard M. Stallman  <rms@gnu.org>
14432         * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
14434 2004-03-02  Kenichi Handa  <handa@m17n.org>
14436         * doc.c (Fsubstitute_command_keys): Fix counding bytes.
14438 2004-03-02  Kim F. Storm  <storm@cua.dk>
14440         * window.h (struct window): New member overlay_arrow_bitmap.
14442         * window.c (make_window): Initialize overlay_arrow_bitmap.
14444         * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
14445         implement and integrate multiple overlay arrows with redisplay.
14446         (syms_of_xdisp): DEFVAR_LISP and initialize it.
14447         (last_arrow_position, last_arrow_string): Replace by properties.
14448         (Qlast_arrow_position, Qlast_arrow_string)
14449         (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
14450         (syms_of_xdisp): Intern and staticpro them.
14451         (overlay_arrow_string_or_property, update_overlay_arrows)
14452         (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
14453         (overlay_arrow_at_row): New functions for multiple overlay arrows.
14454         (redisplay_internal): Use them instead of directly accessing
14455         Voverlay_arrow_position etc. for multiple overlay arrows.
14456         (mark_window_display_accurate): Use update_overlay_arrows.
14457         (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
14458         (try_window_id): Use overlay_arrows_changed_p.
14459         (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
14460         (display_line): Use overlay_arrow_at_row to check multiple
14461         overlay arrows, and get relevant overlay-arrow-string and
14462         overlay-arrow-bitmap.  Set w->overlay_arrow_bitmap accordingly.
14463         (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
14464         (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
14466         * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
14467         (update_window_fringes): Remove unused code.
14469 2004-03-01  Jason Rumney  <jasonr@gnu.org>
14471         * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
14473 2004-03-01  Juanma Barranquero  <lektu@terra.es>
14475         * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
14477         * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
14479 2004-03-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14481         * xfns.c (Fx_display_color_cells): Use number of planes to calculate
14482         how many colors can be displayed.
14484 2004-03-01  Kenichi Handa  <handa@m17n.org>
14486         * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
14487         correctly.
14489 2004-02-28  Kim F. Storm  <storm@cua.dk>
14491         * dispnew.c (update_window): Update header line also if there are
14492         no other changes in window (move code after set_cursor label).
14494         * lisp.h (mark_window_display_accurate): Remove prototype.
14496         * window.c (window_loop, Fforce_window_update): Force mode line
14497         updates by setting prevent_redisplay_optimizations_p and
14498         update_mode_lines.
14500 2004-02-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14502         * xfns.c (x_window): Fix indentation.
14504         * xterm.c (x_calc_absolute_position): Call x_real_positions
14505         to get WM window sizes and use those to calculate position.
14506         (x_set_offset): Remove code commented out.
14508 2004-02-28  Miles Bader  <miles@gnu.org>
14510         * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
14512 2004-02-28  Kim F. Storm  <storm@cua.dk>
14514         * keyboard.c (kbd_buffer_store_event_hold): New function to store
14515         an event into kbd fifo, but with special handling of quit event;
14516         a quit event is saved for later, and further events are discarded
14517         until the saved quit event has been processed.
14518         (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
14519         (gen_help_event): Store help event in kbd fifo.
14520         (NREAD_INPUT_EVENTS): Remove.
14521         (read_avail_input): Adapt to new read_socket_hook interface.
14522         Remove allocation and initialization of local input_event buffer,
14523         as read_socket_hook stores events directly in fifo.  Allocate and
14524         initialize local hold_quit event to handle postponed quit event
14525         (and store it if set by kbd_buffer_store_event_hold).
14527         * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
14528         (gen_help_event): Fix prototype.
14530         * macterm.c (XTread_socket): Remove bufp_r and
14531         numcharsp args.  Add hold_quit arg.
14532         Rework to use just one, local, inev input_event.  Store inev
14533         directly in fifo using kbd_buffer_store_event_hold.
14535         * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
14536         (read_input_waiting): Adapt to new read_socket_hook interface.
14537         Remove allocation and initialization of local input_event buffer,
14538         as read_socket_hook stores events directly in fifo.  Allocate and
14539         initialize local hold_quit event to handle postponed quit event
14540         (and store it if set by kbd_buffer_store_event_hold).
14542         * term.c (read_socket_hook): Fix arg list.
14544         * termhooks.h (read_socket_hook): Fix prototype.
14546         * w32inevt.c (w32_console_read_socket): Remove bufp_r and
14547         numcharsp args.  Add hold_quit arg.
14548         Rework to use just one, local, inev input_event.  Store inev
14549         directly in fifo using kbd_buffer_store_event_hold.
14551         * w32inevt.h (w32_console_mouse_position): Fix prototype.
14553         * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
14554         Add hold_quit arg.  Rework to use just one, local, inev
14555         input_event.  Store inev directly in fifo using
14556         kbd_buffer_store_event_hold.  Update count in one place.
14557         Postpone call to gen_help_event until inev is stored; use new
14558         local do_help for this.
14559         Remove local emacs_event in handing of ButtonPress event; just use
14560         inev instead (so no reason to copy it later).
14562         * xsmfns.c (x_session_check_input): Remove numchars arg.
14564         * xterm.c (x_focus_changed, x_detect_focus_change):
14565         Remove numchars arg.  Always store event into bufp arg.
14566         Return nothing.  Callers changed accordingly.
14567         (glyph_rect): Simplify.
14568         (STORE_KEYSYM_FOR_DEBUG): New macro.
14569         (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
14570         (current_bufp, current_numcharsp) [USE_GTK]: Remove.
14571         (current_hold_quit) [USE_GTK]: Add.
14572         (event_handler_gdk): Adapt to new handle_one_xevent.
14573         (handle_one_xevent): Remove bufp_r and numcharsp args.
14574         Add hold_quit arg.  Rework to use just one, local, inev
14575         input_event.  Store inev directly in fifo using
14576         kbd_buffer_store_event_hold.  Update count in one place.
14577         Postpone call to gen_help_event until inev is stored; use new
14578         local do_help for this.
14579         Simplify handling of keysyms (consolidate common code).  Fix bug
14580         where count was updated with nchars instead of nbytes.
14581         Remove local emacs_event in handing of ButtonPress event; just use
14582         inev instead (so no reason to copy it later).
14583         Remove `out' label.  Rename label `ret' to `done'; add various
14584         `goto done' to clarify code flow in deeply nested blocks.
14585         (x_dispatch_event): Simplify as handle_one_xevent now calls
14586         kbd_buffer_store_event itself.
14587         (XTread_socket): Remove bufp_r and numcharsp args.  Add hold_quit
14588         arg.  Call handle_one_xevent with new arglist.  Store event from
14589         x_session_check_input in fifo.
14590         [USE_GTK]: Setup current_hold_quit.
14591         Decrement handling_signal before unblocking input.
14592         (x_initialize) [USE_GTK]: Initialize current_count.
14594         * xterm.h (x_session_check_input): Fix prototype.
14596 2004-02-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
14598         * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
14600         * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
14601         macgui.h).
14603         * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
14605         * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
14606         (mktime, DEBUG, Z, free, malloc, realloc, max, min)
14607         (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
14608         [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
14609         (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
14610         (Bitmap): Remove typedef.
14611         (Pixmap): Change int to GWorldPtr.
14613         * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
14615         * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
14616         (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
14617         New #define to extract 16-bit depth color components from unsigned
14618         long representation.
14619         (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
14620         colors used for masks.
14621         (struct mac_display_info): Add color_p.  Remove n_cbits.
14623         * macfns.c: Include sys/types.h and sys/stat.h.
14624         [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
14625         Include QuickTime/QuickTime.h.
14626         (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
14627         (XSetForeground, mac_draw_line_to_pixmap): Add externs for
14628         functions defined in macterm.c.
14629         (XImagePtr): New typedef.  Corresponds to XImage * in xfns.c.
14630         (ZPixmap): New #define for compatibility with xfns.c.
14631         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
14632         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
14633         (find_image_fsspec, image_load_qt_1, image_load_quicktime):
14634         New functions.
14635         (four_corners_best, x_create_x_image_and_pixmap)
14636         (x_destroy_x_image, unwind_create_frame, x_disable_image)
14637         (x_edge_detection, init_color_table, colors_in_color_table)
14638         (lookup_rgb_color, lookup_pixel_color, postprocess_image)
14639         (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
14640         (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
14641         (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
14642         (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
14643         long mixup.
14644         (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
14645         (x_decode_color): Don't use n_cbits (in struct mac_display_info).
14646         (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
14647         (x_set_cursor_type, Fxw_color_values, valid_image_p)
14648         (image_value_type, parse_image_spec, image_ascent, x_clear_image)
14649         (x_alloc_image_color, clear_image_cache, lookup_image)
14650         (x_find_image_file, xbm_read_bitmap_file_data)
14651         (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
14652         (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
14653         (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
14654         (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
14655         (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
14656         (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
14657         (x_make_gc): Sync with xfns.c.  Enclose unused `border_tile' with
14658         #if 0.
14659         (x_free_gcs): Sync with xfns.c.  Enclose unused `border_tile' with
14660         #if 0.  Free white_relief.gc and black_relief.gc.
14661         (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
14662         New functions (from xfns.c).
14663         (Fx_create_frame): Record unwind_create_frame.
14664         (Fxw_display_color_p): Use dpyinfo->color_p.
14665         (Fx_display_grayscale_p, Fx_display_planes): Don't use
14666         dpyinfo->n_cbits.
14667         (Fx_display_color_cells): Use dpyinfo->n_planes;
14668         (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
14669         (Qheuristic, cross_disabled_images, emboss_matrix)
14670         (laplace_matrix): New variables (from xfns.c).
14671         (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
14672         (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
14673         (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
14674         (image_background_transparent): New function (from xfns.c).
14675         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
14676         (image_load_quicktime): Add declaration.
14677         [MAC_OSX] (image_load_quartz2d): Likewise.
14678         [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
14679         [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
14680         [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
14681         (xbm_load_image_from_file, x_laplace_read_row)
14682         (x_laplace_write_row, pbm_read_file): Remove functions.
14683         [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
14684         (xpm_load): Sync with xfns.c (although XPM is not supported yet).
14685         (colors_in_color_table): Sync with xfns.c (although not used).
14686         (lookup_rgb_color): Don't lookup color table.  Just do gamma
14687         correction.
14688         (COLOR_INTENSITY): New #define (from xfns.c).
14689         (x_disable_image): New function (from xfns.c).
14690         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
14691         (x_build_heuristic_mask): Sync with xfns.c.
14692         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
14693         (HAVE_PBM): Remove #ifdef.
14694         (pbm_load): Sync with xfns.c.  Set img->width and img->height
14695         before IMAGE_BACKGROUND.
14696         (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
14697         (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
14698         Don't enclose with #if HAVE_PNG.
14699         [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
14700         symbol _CGImageCreateWithPNGDataProvider is defined.
14701         Otherwise use image_load_quicktime.
14702         [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
14703         [HAVE_PNG] (png_load): Sync with xfns.c.
14704         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
14705         (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
14706         HAVE_JPEG.
14707         (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
14708         (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
14709         [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
14710         [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
14711         [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
14712         (tiff_image_p, tiff_load): Don't enclose declarations with #if
14713         HAVE_TIFF.
14714         (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
14715         (tiff_image_p): Don't enclose with #if HAVE_TIFF.
14716         [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
14717         [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
14718         New functions (from xfns.c).
14719         [HAVE_TIFF] (tiff_load): Sync with xfns.c.
14720         (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
14721         (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
14722         Don't enclose with #if HAVE_GIF.
14723         [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
14724         animated gif.  Otherwise use image_load_quicktime.
14725         [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
14726         gif_DrawText to avoid conflict with QuickdrawText.h.
14727         [HAVE_GIF] (gif_load): Sync with xfns.c.
14728         (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
14729         [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
14730         Ghostscript is not supported yet).
14731         (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
14732         QCmatrix, QCcolor_adjustment, and QCmask.  Add DEFVAR_BOOL
14733         cross_disabled_images (from xfns.c).  Remove #if 0 for supported
14734         image types.  Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
14735         HAVE_PNG.  Add defsubr for Simage_size and Simage_mask_p.
14736         (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
14737         HAVE_PNG.  Call EnterMovies to support animated gifs.
14738         Call init_image_func_pointer to bind a symbol
14739         _CGImageCreateWithPNGDataProvider if it is defined.
14741         * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
14742         (x_draw_bar_cursor): Sync declaration with xterm.c.
14743         (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
14744         (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
14745         graphics).
14746         (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
14747         (mac_draw_line_to_pixmap, XCreatePixmap)
14748         (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
14749         (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
14750         New functions.
14751         (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
14752         Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
14753         Cast bits to char *.
14754         (reflect_byte): New function (from w32fns.c).
14755         (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
14756         due to byte alignment.
14757         (mac_scroll_area) [TARGET_API_MAC_CARBON]:
14758         Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
14759         (XSetForeground): Remove static (now used in macfns.c).
14760         (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
14761         (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
14762         (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
14763         (x_draw_glyph_string_box, x_draw_image_foreground)
14764         (x_draw_image_foreground_1, x_draw_image_glyph_string)
14765         (x_draw_stretch_glyph_string, x_draw_glyph_string)
14766         (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
14767         Sync with xterm.c.
14768         (x_draw_relief_rect): Sync with xterm.c.  Make 1 pixel shorter
14769         than the xterm.c version when a strictly horizontal or vertical
14770         line is drawn.
14771         (XTset_terminal_window): Add static.
14772         (x_make_frame_visible): Add UNBLOCK_INPUT.
14773         (x_free_frame_resources): New funcion (from xterm.c).
14774         (XTread_socket): Call handle_tool_bar_click if mouse up/down event
14775         occurs in tool bar area.
14776         (mac_initialize_display_info): Remove dpyinfo->n_cbits.
14777         Set dpyinfo->color_p.  Determine dpyinfo->n_planes using HasDepth.
14778         Initialize image cache.
14779         (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
14780         Enclose unused functions with #if 0.
14781         (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
14782         (decode_mac_font_name): New function to apply code conversions
14783         from a mac font name to an XLFD font name according to its script code.
14784         (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
14785         font name to a mac font name according to REGISTRY and ENCODING fields.
14786         (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
14787         whose name starts with `.'.
14788         (init_font_name_table): Use decode_mac_font_name.  Add both
14789         jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
14790         of a font is smJapanese.
14791         (mac_do_list_fonts): New function to list fonts that match a given
14792         pattern.
14793         (x_list_fonts, XLoadQueryFont): Use it.
14794         (XLoadQueryFont): Set rbearing field for each variable width
14795         character to avoid needless redraw.
14796         (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
14798 2004-02-26  Kim F. Storm  <storm@cua.dk>
14800         * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
14801         as read_socket_hook handler on X aborts if buffer is too small
14802         and W32 handler doesn't always check buffer limit.
14804         * xdisp.c (handle_single_display_prop): Handle left-fringe and
14805         right-fringe similar to a display margin image.  Specifically,
14806         the characters having the fringe prop are no longer shown, and
14807         we use IT_IMAGE/next_element_from_image with image_id = -1 to
14808         do this.  Set fringe bitmap face_id in it->face_id.
14809         (produce_image_glyph): Handle image_id < 0 as "no image" case, but
14810         still realize it->face (i.e. the fringe bitmap face).
14812 2004-02-25  Miles Bader  <miles@gnu.org>
14814         * xdisp.c (check_it): Check string/string_pos consistency.
14815         (init_iterator): Initialize string-related fields properly.
14817 2004-02-11  Miles Bader  <miles@gnu.org>
14819         * xdisp.c (produce_image_glyph): Force negative descents to zero.
14821 2004-02-10  Miles Bader  <miles@gnu.org>
14823         * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
14824         BLOCK_INPUT can be nested, so it doesn't make much sense.
14826 2004-02-24  Michael Mauger  <mmaug@yahoo.com>
14828         * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
14829         (xbm_read_bitmap_data): Use unsigned char for image data.
14831 2004-02-23  Luc Teirlinck  <teirllm@auburn.edu>
14833         * abbrev.c (Finsert_abbrev_table_description): Doc fix.
14835 2004-02-22  Jason Rumney  <jasonr@gnu.org>
14837         * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
14838         correctly over other bitmaps.
14840 2004-02-21  Eli Zaretskii  <eliz@gnu.org>
14842         * emacs.c (USAGE1): Split into two halves.
14843         (USAGE2): Second half of the old USAGE1.
14844         (USAGE3): Rename from USAGE2.
14845         (USAGE4): Rename from USAGE3.
14847 2004-02-21  Juri Linkov  <juri@jurta.org>
14849         * emacs.c (USAGE1): Add --no-desktop.  Move --display from USAGE2.
14850         Fix --multibyte.  Move --help, --version to USAGE2.  Add alias
14851         --file.  Fix -f, -l.  Sort options.  Untabify.
14852         (USAGE2): Add -hb.  Fix --name, --title.  Sort options.  Untabify.
14854 2004-02-19  Luc Teirlinck  <teirllm@auburn.edu>
14856         * category.c (Fdefine_category, Fcategory_docstring)
14857         (Fget_unused_category, Fset_category_table)
14858         (Fcategory_set_mnemonics): Doc fixes.
14860 2004-02-20  Kim F. Storm  <storm@cua.dk>
14862         * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
14863         The following changes are relative to the 2004-01-21 revision.
14864         (NREAD_INPUT_EVENTS): Define as max number of input events to read
14865         in one call to read_socket_hook.  Value is 8.
14866         (read_avail_input): Separate and rework handling of read_socket_hook
14867         and non-read_socket_hook cases.  Use smaller input_event buffer
14868         in read_socket_hook case, and repeat if full buffer is read.
14869         Use new local variable 'discard' to skip input after C-g.
14870         In non-read_socket_hook case, just use a single input_event, and
14871         call kbd_buffer_store_event on the fly for each character.
14873 2004-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
14875         * lisp.h (union Lisp_Object): Give a more precise type for `type'.
14876         Remove unused `gu' alternative.
14878 2004-02-19  Andreas Schwab  <schwab@suse.de>
14880         * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
14881         warning.
14883 2004-02-18  Kim F. Storm  <storm@cua.dk>
14885         * xdisp.c (get_window_cursor_type, display_and_set_cursor):
14886         Fix last change.
14888 2004-02-17  Kim F. Storm  <storm@cua.dk>
14890         * xdisp.c (fast_find_position): Fix return value of new version;
14891         it was inverted compared to the 21.1 version.
14892         (get_window_cursor_type): Don't look at glyph if NULL.
14893         (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
14895         * keyboard.c: Rework previous change; it didn't consider that the
14896         buf array was allocated on the stack.
14897         (prev_read): Remove variable.
14898         (read_avail_input_buf): New static event buffer array.
14899         (in_read_avail_input): New static variable to handle re-entrancy.
14900         (read_avail_input): Change buf to pinter to read_avail_input_buf.
14901         Use in_read_avail_input to handle re-entrance; when re-entered,
14902         fully initialize and use tmp_buf array instead of read_avail_input_buf.
14903         Do not initialize read_avail_input_buf in full here; instead assume it
14904         is always cleared on entry.  To ensure that, we clear (just) the
14905         entries that were used before we return.
14906         (init_keyboard): Initialize read_avail_input_buf here.
14908 2004-02-16  Jesper Harder  <harder@ifa.au.dk>
14910         * cmds.c (Fend_of_line): Doc fix.
14912 2004-02-16  Dmitry Antipov  <dmitry.antipov@mail.ru>  (tiny change)
14914         * keyboard.c (prev_read): New static variable.
14915         (read_avail_input): Use it to zero out only those slots in buf[]
14916         that were used last time we were called.
14918 2004-02-16  Eli Zaretskii  <eliz@gnu.org>
14920         * Makefile.in (obj): Move fringe.o from here...
14921         (XOBJ, MAC_OBJ): ...to here.
14923 2004-02-16  Stephen Eglen  <stephen@gnu.org>
14925         * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
14927 2004-02-15  Stefan Monnier  <monnier@iro.umontreal.ca>
14929         * data.c (Fbyteorder):
14930         * fringe.c (Fdefine_fringe_bitmap):
14931         * xdisp.c (handle_single_display_prop):
14932         * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
14934 2004-02-16  Jason Rumney  <jasonr@gnu.org>
14936         * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
14938 2004-02-15  Steven Tamm  <steventamm@mac.com>
14940         * macterm.c (Vmac_emulate_three_button_mouse): New variable for
14941         controlling emulation of a three button mouse with option and
14942         command keys.
14943         (Qreverse, mac_get_enumlated_btn): Handle the emulation.
14944         (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
14946 2004-02-15  Kim F. Storm  <storm@cua.dk>
14948         * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
14950         * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
14951         Perform byte-swapping.
14953 2004-02-14  Kim F. Storm  <storm@cua.dk>
14955         * dispextern.h (struct draw_fringe_bitmap_params): Change member
14956         bits from char to short to facilitate wider bitmaps.
14957         (struct redisplay_interface): Fix prototype of define_fringe_bitmap
14958         member.
14960         * fringe.c (struct fringe_bitmap): Change member bits from char to
14961         short to facilitate 16 bits wide bitmaps.  Modify all standard
14962         bitmaps accordingly.
14963         (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
14964         (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
14965         (draw_fringe_bitmap): Ditto.
14966         (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
14967         (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
14968         handle up to 16 bits wide bitmaps.
14969         (Fdefine_fringe_bitmap): Doc fix.  Handle wider bitmaps.
14970         (Ffringe_bitmaps_at_pos): Add missing arg declarations.
14972         * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
14973         (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
14974         need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
14976         * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
14977         so it is no longer necessary to expand them here.
14979         * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
14981 2004-02-12  Kim F. Storm  <storm@cua.dk>
14983         * window.c (Fwindow_fringes): Doc fix.
14985 2004-02-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14987         * xselect.c (x_get_foreign_selection): Add new optional parameter
14988         time_stamp.
14989         (Fx_get_selection_internal): Ditto, pass time_stamp to
14990         x_get_foreign_selection.
14992         * data.c (Fbyteorder): New function.
14994 2004-02-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14996         * atimer.c: Move include stdio.h to same place as in other files.
14998         * region-cache.c: Ditto.
15000         * sysdep.c: Ditto.
15002         * xfaces.c: Ditto.
15004 2004-02-09  Sam Steingold  <sds@gnu.org>
15006         * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
15008 2004-02-09  Kim F. Storm  <storm@cua.dk>
15010         * fringe.c: New file.  Move original fringe related declarations
15011         and code from dispextern.h and xdisp.c here.
15012         Rework code to support user defined fringe bitmaps, redefining
15013         standard bitmaps, ability to overlay user defined bitmap with
15014         overlay arrow bitmap, and add faces to bitmaps.
15015         (Voverflow_newline_into_fringe): Declare here.
15016         (enum fringe_bitmap_align): New enum.
15017         (..._bits): All bitmaps are now defined without bitswapping; that
15018         is now done in init_fringe_once (if necessary).
15019         (standard_bitmaps): New array with specifications for the
15020         standard fringe bitmaps.
15021         (fringe_faces): New array.
15022         (valid_fringe_bitmap_id_p): New function.
15023         (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
15024         (draw_fringe_bitmap): New function which draws fringe bitmap,
15025         possibly overlaying bitmap with cursor in right fringe or the
15026         overlay arrow in the left fringe.
15027         (update_window_fringes): Do not handle overlay arrow here.
15028         Compare and copy fringe bitmap faces.
15029         (init_fringe_bitmap): New function.
15030         (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
15031         define and destroy user defined fringe bitmaps.
15032         (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
15033         (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
15034         (syms_of_fringe): New function.  Defsubr new DEFUNs.
15035         DEFVAR_LISP Voverflow_newline_into_fringe.
15036         (init_fringe_once, init_fringe): New functions.
15037         (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
15039         * Makefile.in (obj): Add fringe.o.
15040         (fringe.o): New dependencies.
15042         * dispextern.h (FRINGE_ID_BITS): New definition for number of
15043         bits allocated to hold a fringe number.  Increase number of bits
15044         from 4 to 8 to allow user defined fringe bitmaps.
15045         (struct glyph_row, struct it): New members left_user_fringe_bitmap,
15046         left_user_fringe_face_id, right_user_fringe_bitmap,
15047         right_user_fringe_face_id.
15048         (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
15049         Move to new file fringe.c.
15050         (MAX_FRINGE_BITMAPS): Define here.
15051         (struct draw_fringe_bitmap_params): New members bits, cursor_p,
15052         and overlay_p.  Change member which to int.
15053         (struct redisplay_interface): New members define_fringe_bitmap
15054         and destroy_fringe_bitmap.
15055         (valid_fringe_bitmap_id_p): Add prototype.
15056         (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
15058         * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
15059         arrows.
15060         (update_frame): Do flush_display if force_flush_display_p to
15061         ensure display (specifically fringes) are updated in a timely
15062         manner when resizing the frame by dragging the mouse.
15063         (update_window_line): Update row if overlay arrow changed.
15064         (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
15065         or overlay arrow changed.
15067         * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
15068         syms_of_fringe, and init_fringe.
15070         * frame.h (struct frame): New member force_flush_display_p.
15072         * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
15073         Add prototypes.
15075         * macterm.c (mac_draw_bitmap): Add overlay_p arg.
15076         (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
15077         thanks to YAMAMOTO Mitsuharu for advice on how to do this.
15078         Use cursor color for displaying cursor in fringe.
15079         (x_redisplay_interface): Add null handlers for
15080         define_fringe_bitmap and destroy_fringe_bitmap functions.
15082         * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
15083         xterm.c to handle overlayed fringe bitmaps and to use cursor color
15084         for displaying cursor in fringe.
15085         (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
15086         specific functions to define and destroy fringe bitmaps in fringe_bmp.
15087         (w32_redisplay_interface): Add them to redisplay_interface.
15088         (w32_term_init): Call w32_init_fringe instead of explicitly
15089         defining fringe bitmaps in fringe_bmp array.
15090         (x_delete_display): Call w32_reset_fringes instead of explicitly
15091         destroying fringe bitmaps in fringe_bmp array.
15093         * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
15094         (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
15095         (continued_bits, continuation_bits, ov_bits, first_line_bits)
15096         (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
15097         (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
15098         (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
15099         (draw_window_fringes, compute_fringe_widths, update_window_fringes):
15100         Move fringe handling vars and code to new file fringe.c.
15101         (handle_display_prop): Handle left-fringe and right-fringe
15102         display properties; store user fringe bitmaps in iterator.
15103         (move_it_in_display_line_to): Handle cursor in fringe at eob.
15104         (clear_garbaged_frames): Set force_flush_display_p if resized.
15105         (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
15106         (display_line): Handle cursor in fringe at eob.
15107         (display_line): Set row user fringe bitmaps from iterator.
15109         * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
15110         Use cursor color for displaying cursor in fringe.
15111         (x_redisplay_interface): Add null handlers for
15112         define_fringe_bitmap and destroy_fringe_bitmap functions.
15114 2004-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15116         * macfns.c (Fx_change_window_property): Make doc string and
15117         parameters same as for X version.
15119         * w32fns.c (Fx_change_window_property): Ditto.
15121 2004-02-07  Kim F. Storm  <storm@cua.dk>
15123         * xdisp.c (hscroll_window_tree): Position cursor near to right
15124         margin in hscrolled window when jumping to end of line (rather
15125         than centering cursor).
15127         * process.c (wait_reading_process_input): Don't do adaptive read
15128         buffering if waiting for a specific process.
15130 2004-02-05  Luc Teirlinck  <teirllm@auburn.edu>
15132         * minibuf.c (Fminibufferp, Fread_from_minibuffer)
15133         (Fread_minibuffer, Feval_minibuffer)
15134         (Fread_string, Fread_no_blanks_input)
15135         (Fcompleting_read): Doc fixes.
15136         (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
15137         completion-regexp-list.  Define Qcase_fold_search and staticpro it.
15138         (read_minibuf): Fix initial comment.
15139         (Ftry_completion, Fall_completions, Ftest_completion): Bind
15140         case-fold-search to the value of completion-ignore-case when
15141         checking completion-regexp-list.
15142         (Fdisplay_completion_list): Make it handle arguments that are
15143         symbols.  Doc fix.
15145 2004-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15147         * xterm.h: Add declaration of free_frame_menubar.
15149         * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
15150         (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
15151         (Fx_change_window_property): Add declaration of parameters type and
15152         format.  Remove unused variable cons.
15154         * xselect.c: Include stdio.h.
15156 2004-02-05  Kenichi Handa  <handa@m17n.org>
15158         * fns.c (Fset_char_table_range): Fix previous change.
15160         * buffer.c (Fset_buffer_multibyte): Fix docstring.
15162 2004-02-04  Luc Teirlinck  <teirllm@auburn.edu>
15164         * editfns.c (Fchar_after, Fchar_before): Doc fixes.
15166 2004-02-04  Stefan Monnier  <monnier@iro.umontreal.ca>
15168         * keymap.c (Vmouse_events): Rename from Vmenu_events.
15169         (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
15171 2004-02-04  Kenichi Handa  <handa@m17n.org>
15173         * fns.c (Fset_char_table_range): Handle charsets ascii,
15174         eight-bit-control, and eight-bit-graphic correctly.
15176 2004-02-03  Jason Rumney  <jasonr@gnu.org>
15178         * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
15180         * w32fns.c (x_to_w32_font): Likewise.
15182 2004-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15184         * xterm.h: Add x_handle_dnd_message, x_check_property_data,
15185         x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
15187         * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
15188         ClientMessages.
15190         * xselect.c: Include termhooks.h and X11/Xproto.h.
15191         (x_check_property_data, x_fill_property_data)
15192         (x_property_data_to_lisp, mouse_position_for_drop)
15193         (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
15194         (Fx_send_client_event): Move here from xfns.c.
15195         (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
15197         * xfns.c (x-send-client-message): Move to xselect.c.
15198         (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
15199         OUTER_P.
15200         (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
15201         VECTOR_RET_P.  Handle AnyPropertyType.  Call x_property_data_to_lisp
15202         if vector_ret_p is true.
15203         (syms_of_xfns): Sx_send_client_message moved to xselect.c.
15205 2004-02-02  Eli Zaretskii  <eliz@gnu.org>
15207         * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
15208         basename of FILE relative to it, not FILE itself.
15210 2004-02-02  Kenichi Handa  <handa@m17n.org>
15212         * coding.c (coding_restore_composition): Check invalid
15213         composition data more rigidly.
15215 2004-01-30  Luc Teirlinck  <teirllm@auburn.edu>
15217         * fileio.c (Fread_file_name_internal): Correctly handle the case
15218         where insert-default-directory is nil.
15219         (Fread_file_name): Always return an empty string if the user exits
15220         with an empty minibuffer.  Adapt the docstring accordingly.
15221         (syms_of_fileio): Adapt the docstring of insert-default-directory
15222         to the change in Fread_file_name.
15224 2004-01-29  Eli Zaretskii  <eliz@gnu.org>
15226         * alloca.c [!alloca]: Fix the prototype for xfree.
15228 2004-01-29  Kenichi Handa  <handa@m17n.org>
15230         * fns.c (string_char_to_byte): Optimize for ASCII only string.
15231         (string_byte_to_char): Likewise.
15233 2004-01-28  Peter Runestig  <peter@runestig.com>
15235         * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
15237 2004-01-27  Steven Tamm  <steventamm@mac.com>
15239         * unexmacosx.c (unexec_copy): Do not copy more than was
15240         requested to prevent overwriting during unexec.
15242 2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15244         * process.c (sigchld_handler): Add comment about not calling malloc.
15246         * process.h: Add extern to synch_process_termsig.
15248 2004-01-27  Steven Tamm  <steventamm@mac.com>
15250         * macterm.c (make_mac_frame, make_mac_terminal_frame):
15251         Move setting of scroll bars from make_mac_frame to
15252         make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
15254 2004-01-26  Richard M. Stallman  <rms@gnu.org>
15256         * search.c (Freplace_match): Handle nonexistent
15257         back-references properly.
15259 2004-01-03  Richard M. Stallman  <rms@gnu.org>
15261         * window.c (decode_any_window): New function.
15262         (Fwindow_height, Fwindow_width, Fwindow_edges)
15263         (Fwindow_pixel_edges, Fwindow_inside_edges)
15264         (Fwindow_inside_pixel_edges): Use decode_any_window.
15266 2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15268         * process.h: synch_process_termsig new variable.
15270         * callproc.c: Define synch_process_termsig.
15271         (Fcall_process): Initiate synch_process_termsig to zero and
15272         check if non-zero and get signal name after subprocess has ended.
15274         * process.c (sigchld_handler): Set synch_process_termsig
15275         if terminated by a signal.  synch_process_death setting removed.
15277         * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
15279 2004-01-26  Andreas Schwab  <schwab@suse.de>
15281         * print.c (print_preprocess): Declare size as EMACS_INT to not
15282         lose bits.
15283         (print_object): Likewise.
15284         * alloc.c (Fpurecopy): Likewise.
15286 2004-01-25  Luc Teirlinck  <teirllm@auburn.edu>
15288         * window.c (Fwindow_minibuffer_p): Doc fix.
15290 2004-01-24  Jonathan Yavner  <jyavner@member.fsf.org>
15292         * editfns.c (Fformat): Make both passes accept the same set of flags.
15294 2004-01-23  Kenichi Handa  <handa@m17n.org>
15296         * fns.c (Fmd5): If OBJECT is a buffer different from the current
15297         one, set buffer to OBJECT temporarily.
15299 2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
15301         * keyboard.c (kbd_buffer_gcpro): Remove.
15302         (kbd_buffer_store_event, clear_event, Fdiscard_input)
15303         (stuff_buffered_input, init_keyboard, syms_of_keyboard):
15304         Don't initialize and/or maintain the variable any more.  It was made
15305         redundant by my commit of 2003-06-15.
15307         * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
15309 2004-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15311         * lisp.h: Add undef DECL_ALIGN.
15313 2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
15315         * process.c (wait_reading_process_input) [SYNC_INPUT]:
15316         Check interrupt_input_pending explicitly.
15318         * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
15320         * keyboard.c (handle_async_input): New fun,
15321         extracted from input_available_signal.
15322         (input_available_signal, reinvoke_input_signal): Use it.
15324 2004-01-20  Stefan Monnier  <monnier@iro.umontreal.ca>
15326         * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
15328         * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
15329         manipulation macros for when tags are in the lower bits.
15330         (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
15331         (DECL_ALIGN): New macro.
15332         (DEFUN): Use it.
15334         * lisp.h [ENABLE_CHECKING]: Don't force union type.
15336         * s/darwin.h (__attribute__): Remove outdated workaround.
15338         * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
15340         * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
15341         Don't check range of malloc address.
15342         (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
15344         * process.c (wait_reading_process_input): Lisp_Object/int mixup.
15346         * dired.c (Ffile_attributes): Lisp_Object/int mixup.
15348 2004-01-19  Kenichi Handa  <handa@m17n.org>
15350         * fontset.c (fontset_font_pattern): Fix previous change.
15352 2004-01-16  Miles Bader  <miles@gnu.ai.mit.edu>
15354         * xdisp.c (Voverflow_newline_into_fringe)
15355         (move_it_in_display_line_to, redisplay_internal)
15356         (update_window_fringes, redisplay_window, display_line, window):
15357         Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
15358         that it compiles without a window-system.
15359         * dispnew.c (direct_output_for_insert, update_window): Likewise.
15361 2004-01-16  Kim F. Storm  <storm@cua.dk>
15363         * buffer.h (struct buffer): New member indicate_buffer_boundaries.
15365         * buffer.c (init_buffer_once): Set buffer_defaults and
15366         buffer_local_flags for indicate_buffer_boundaries.
15367         (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
15368         default- variable for it.
15370         * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
15371         right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
15372         New members exact_window_width_line_p and cursor_in_fringe_p for
15373         overflowing newlines into right fringe.
15374         New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
15375         and indicate_bottom_line_p for buffer boundaries and scrolling.
15376         (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
15377         FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
15378         HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
15379         and HOLLOW_SQUARE_BITMAP.
15380         (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
15381         Add prototypes.
15383         * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
15384         instead of related indicator fields.
15385         Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
15386         (direct_output_for_insert): Handle exact width lines like
15387         contined lines.  Call update_window_fringes.
15388         (update_window): Call update_window_fringes.
15389         (scrolling_window): Don't skip desired rows with changed bitmaps.
15390         Check if fringe bitmaps changes when assigning scrolled rows.
15392         * xdisp.c (Voverflow_newline_into_fringe): New variable.
15393         (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
15394         (move_it_in_display_line_to): Overflow newline into fringe for
15395         rows that are exactly as wide as the window.
15396         (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
15397         (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
15398         (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
15399         (fringe_bitmaps): Add new bitmaps.
15400         (draw_fringe_bitmap): Make extern.  Remove WHICH arg.
15401         Select proper bitmap for cursor in fringe when appropriate.
15402         Handle alignment of bitmap to top or bottom of row.
15403         (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
15404         done by update_window_fringes.
15405         (update_window_fringes, draw_window_fringes): New functions.
15406         (redisplay_internal): Call update_window_fringes in case only
15407         cursor row is updated.
15408         (redisplay_window): Call update_window_fringes.
15409         Explicitly call draw_window_fringes if redisplay was done using
15410         the current matrix or the overlay arrow is in the window.
15411         (try_window_reusing_current_matrix): Mark scrolled rows for
15412         fringe update (to update buffer-boundaries / scrolling icons).
15413         (find_last_unchanged_at_beg_row): Handle exact width lines line
15414         continued lines.
15415         (display_line): Overflow newline into fringe for rows that are
15416         exactly as wide as the window.  Don't append space for newline
15417         in this case.
15418         (notice_overwritten_cursor): Explicitly clear cursor bitmap
15419         in fringe as if it had been overwritten.
15420         (erase_phys_cursor): Erase cursor bitmap in fringe.
15421         (syms_of_xdisp): Mark show-trailing-whitespace and
15422         void-text-area-pointer as user options.
15423         DEFVAR_LISP Voverflow_newline_into_fringe.  Enable by default.
15425         * xterm.c (x_update_window_end): Call draw_window_fringes.
15426         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15427         in row instead of actually drawing fringe bitmaps.
15428         (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15429         (x_draw_window_cursor): Draw cursor in fringe.
15431         * w32term.c (x_update_window_end): Call draw_window_fringes.
15432         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15433         in row instead of actually drawing fringe bitmaps.
15434         (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15435         (w32_draw_window_cursor): Draw cursor in fringe.
15437         * macterm.c (x_update_window_end): Call draw_window_fringes.
15438         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
15439         in row instead of actually drawing fringe bitmaps.
15440         (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
15441         (mac_draw_window_cursor): Draw cursor in fringe.
15443 2004-01-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15445         * xterm.c (handle_one_xevent): Don't handle characters that are part
15446         of an old style (XLookupString) compose sequence.
15448 2004-01-15  Kenichi Handa  <handa@m17n.org>
15450         * search.c (Freplace_match): Use make_multibyte_string or
15451         make_unibyte_string according to the buffer multibyteness.
15453 2004-01-14  Stefan Monnier  <monnier@iro.umontreal.ca>
15455         * alloc.c (struct interval_block, struct string_block)
15456         (struct symbol_block, struct marker_block, live_string_p)
15457         (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
15458         Better preserve alignment for objects in blocks.
15459         (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
15461         * lread.c (defvar_per_buffer): Remove dead declaration.
15463         * macterm.c (do_check_ram_size): Don't hardcode the lisp address
15464         space size.
15466 2004-01-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15468         * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
15469         if a key press should pop down.  Only pop down if a key is pressed
15470         outside the menu/dialog.
15471         (create_and_show_popup_menu): Pass 0 for down_on_keypress to
15472         popup_get_selection.
15473         (create_and_show_dialog): Pass 1 for down_on_keypress to
15474         popup_get_selection.
15476 2004-01-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15478         * alloc.c (allocate_vectorlike): Surround calls to mallopt with
15479         BLOCK/UNBLOCK_INPUT.
15481 2004-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15483         * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
15484         specified.
15486 2004-01-08  Kenichi Handa  <handa@m17n.org>
15488         * editfns.c (Fformat): Fix '&' to '&&'.
15490 2004-01-08  Andreas Schwab  <schwab@suse.de>
15492         * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
15493         size if PSEUDOVECTOR_FLAG is set.
15495 2004-01-07  Kenichi Handa  <handa@m17n.org>
15497         * charset.c (Fdeclare_equiv_charset): Fix docstring.
15499         * fontset.c (fontset_ref_via_base): Fix previous change.
15501 2004-01-07  Kim F. Storm  <storm@cua.dk>
15503         * process.c (read_process_output): Only activate adaptive
15504         buffering if we read less than 256 bytes at a time.
15506 2004-01-06  Kim F. Storm  <storm@cua.dk>
15508         * dispnew.c (buffer_posn_from_coords): Return both buffer/string
15509         object and image object.  Return glyph width and height.
15510         (mode_line_string, marginal_area_string): Ditto.
15512         * dispextern.h (buffer_posn_from_coords, mode_line_string)
15513         (marginal_area_string): Fix prototypes.
15515         * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
15516         POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN.  All uses changed.
15517         (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
15519         * keyboard.c (make_lispy_position): Use modified mode_line_string,
15520         buffer_posn_from_coords, and marginal_area_string functions to
15521         include both string object and image object in the lispy position.
15522         Also add actual glyph width and height to position.
15523         (read_key_sequence): Use real buffer position from mouse
15524         event to find keymap property even when click is in marginal area.
15526         * xdisp.c (note_mode_line_or_margin_highlight): Use modified
15527         mode_line_string and marginal_area_string functions to handle
15528         both string object and image object properties.
15530 2004-01-06  Andreas Schwab  <schwab@suse.de>
15532         * syntax.c (skip_chars): Treat '-' at end of string as ordinary
15533         character.
15535 2004-01-02  Andreas Schwab  <schwab@suse.de>
15537         * macterm.c (emacs_options, x_initialized, same_x_server):
15538         Remove unused (and duplicated) definitions.
15540 2004-01-02  Kim F. Storm  <storm@cua.dk>
15542         * process.h (struct Lisp_Process): New members for adaptive read
15543         buffering: adaptive_read_buffering, read_output_delay, and
15544         read_output_skip.
15546         * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
15547         (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
15548         (READ_OUTPUT_DELAY_MAX_MAX): New constants.
15549         (process_output_delay_count, process_output_skip): New vars.
15550         (Vprocess_adaptive_read_buffering): New variable.
15551         (make_process): Initialize adaptive read buffering members.
15552         (Fstart_process): Set adaptive_read_buffering member.
15553         (deactivate_process): Cleanup adaptive read buffering.
15554         (wait_reading_process_input): Temporarily omit delayed
15555         subprocesses from the set of file descriptors to read from;
15556         adjust the select timeout if we skipped any subprocesses.
15557         (read_process_output): Increase adaptive read buffering delay if
15558         we read less than a full buffer; reduce delay when we read a
15559         full buffer.
15560         (send_process): Simplify using local Lisp_Process var.
15561         Reset adaptive read buffering delay after write.
15562         (init_process): Initialize process_output_delay_count and
15563         process_output_skip.
15564         (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
15566 2004-01-01  Jason Rumney  <jasonr@gnu.org>
15568         * w32term.c (w32_text_out): Use s->font, for consistency with callers.
15570 2003-12-30  Luc Teirlinck  <teirllm@auburn.edu>
15572         * print.c (Ferror_message_string): Add hyperlink in the docstring
15573         to the definition of `signal' in the Elisp manual.
15574         * eval.c (Fsignal): Ditto.
15576 2003-12-29  James Clark  <jjc@jclark.com>
15578         * fns.c (internal_equal): Return t for two NaN arguments.
15580 2003-12-29  Richard M. Stallman  <rms@gnu.org>
15582         * data.c (store_symval_forwarding): Handle setting
15583         default-fill-column, etc., by changing the value in
15584         buffers that use the default.
15586         * minibuf.c (Fset_minibuffer_window): Doc fix.
15588         * fileio.c (choose_write_coding_system): Ignore auto_saving
15589         if using the visited file for auto saves.
15590         (Fwrite_region): Don't update SAVE_MODIFF
15591         if auto-saving in visited file.
15593 2003-12-29  Kenichi Handa  <handa@m17n.org>
15595         * dispextern.h (face_font_available_p): Extern it.
15597         * fontset.c (Voverriding_fontspec_alist): New variable.
15598         (lookup_overriding_fontspec): New function.
15599         (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
15600         (fontset_font_pattern): Likewise.
15601         (regulalize_fontname): New function.
15602         (Fset_fontset_font): Call regulalize_fontname.
15603         (Fset_overriding_fontspec_internal): New function.
15604         (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
15605         Defsubr Sset_overriding_fontspec_internal.
15607         * xfaces.c (face_font_available_p): New function.
15609 2003-12-28  Richard M. Stallman  <rms@gnu.org>
15611         * buffer.c (Fother_buffer): Don't crash if BUF is nil
15612         or if its name is nil.
15614         * buffer.c (Fkill_buffer): Don't delete auto-save file
15615         if it's the same as the visited file.
15617 2003-12-28  Luc Teirlinck  <teirllm@auburn.edu>
15619         * coding.c (Fcheck_coding_system): Doc fix.
15621 2003-12-28  Kim F. Storm  <storm@cua.dk>
15623         * Makefile.in (eval.o): Depend on dispextern.h.
15625         * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
15626         image glyph using image's ascent.
15627         (mode_line_string): Return image glyph as object clicked on.
15628         Adjust y0 for image glyph using image's ascent.
15630         * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
15631         (struct glyph): New members, ascent and descent.  Used to save
15632         this glyph's ascent and descent, instead of having.
15633         (struct glyph): Declare member face_id using FACE_ID_BITS.
15634         (find_hot_spot): Add prototype.
15636         * keyboard.c (Qimage): Remove extern (now in lisp.h).
15637         (QCmap): Declare extern.
15638         (make_lispy_position): When position is inside image hot-spot,
15639         use hot-spot element's id as posn element.
15641         * lisp.h (IMAGEP): New macro to test for image object type.
15642         (Qimage): Declare extern.
15644         * macfns.c (Qimage): Remove extern (now in lisp.h).
15645         (valid_image_p, parse_image_spec): Use IMAGEP macro.
15647         * macterm.c (Qface, Qmouse_face): Remove unused externs.
15649         * w32fns.c (Qimage): Remove extern (now in lisp.h).
15650         (valid_image_p, parse_image_spec): Use IMAGEP macro.
15652         * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
15654         * w32term.c (Qface, Qmouse_face): Remove unused externs.
15656         * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
15657         pointer types.
15658         (Qrelative_width, Qalign_to): Remove unused variables.
15659         (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
15660         (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for image
15661         maps.
15662         (x_y_to_hpos_vpos): Return glyph relative coordinates through new
15663         dx and dy args.  Remove buffer_only_p arg (always 0).  Simplify
15664         code accordingly.
15665         (get_glyph_string_clip_rect): Draw cursor using glyph's rather
15666         than row's ascent and height, to get sensible height on tall rows.
15667         (build_desired_tool_bar_string): Remove Qimage extern.
15668         (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
15669         (produce_image_glyph): Adjust it.ascent to minimum row ascent if
15670         image glyph is alone on the last line.
15671         (append_glyph, append_composite_glyph, produce_image_glyph)
15672         (append_stretch_glyph): Set glyph's ascent and descent.
15673         (on_hot_spot_p): New function to check if position is inside an
15674         rectangular, circular, or polygon-shaped image hot-spot,
15675         (find_hot_spot): New function to search for image hot-spot.
15676         (Flookup_image_map): New defun to search for image hot-spot.
15677         (define_frame_cursor1): New aux function to determine frame
15678         pointer.
15679         (note_mode_line_or_margin_highlight, note_mouse_highlight): Handle
15680         `pointer' text property and :pointer image property to control
15681         frame pointer shape.  Detect image hot-spots for pointer and
15682         help_echo properties.  Use define_frame_cursor1.
15683         (note_mouse_highlight): Use Vvoid_text_area_pointer.
15684         (syms_of_xdisp): Defsubr new defun.  Intern and staticpro new
15685         variables.  DEFVAR_LISP Vvoid_text_area_pointer instead of
15686         Vshow_text_cursor_in_void.
15688         * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
15690         * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
15691         (Qimage): Remove extern (now in lisp.h).
15692         (valid_image_p, parse_image_spec): Use IMAGEP macro.
15694         * xmenu.c (show_help_event): Remove unused code.
15696         * xterm.c (Qface, Qmouse_face): Remove unused externs.
15697         (x_draw_hollow_cursor): Draw cursor using glyph's rather than
15698         row's ascent and descent, to get a sensible height on tall rows.
15700 2003-12-25  Luc Teirlinck  <teirllm@auburn.edu>
15702         * minibuf.c (Fcompleting_read): Undo previous change.
15704 2003-12-25  Lars Hansen  <larsh@math.ku.dk>
15706         * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
15707         Arguments GCPRO'ed in call to file name handler.
15709 2003-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
15711         * termcap.c (tgetst1): Scan for "%pN"; if all
15712         N are continuous in [1,9], remove all "%pN".
15714 2003-12-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15716         * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
15718         * xfaces.c (lface_fully_specified_p): Take into account that
15719         MAC OS always have unspecified stipple.
15721 2003-12-24  Thien-Thi Nguyen  <ttn@gnu.org>
15723         * tparam.c (tparam1): Add handling for `%pN', which
15724         means use param N for the next substitution.
15726 2003-12-24  Thien-Thi Nguyen  <ttn@gnu.org>
15728         * xfaces.c (Fcolor_gray_p): Fix omission bug:
15729         In case `frame' is nil, consult the selected frame.
15730         (Fcolor_supported_p): Likewise.
15732 2003-12-23  Luc Teirlinck  <teirllm@auburn.edu>
15734         * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
15735         Doc fixes.
15737         * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
15738         and an integer.  Adapt the introductory comment accordingly.
15739         (Fread_from_minibuffer): Delete code moved into read_minibuf.
15740         Doc fix.
15741         (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
15742         read_minibuf.
15743         (Fcompleting_read): Delete code moved into read_minibuf.
15744         (Ftest_completion): Make it handle obarrays and hash tables correctly.
15746 2003-12-03  Kenichi Handa  <handa@m17n.org>
15748         * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
15749         encoding sequence.
15751 2003-12-01  Kenichi Handa  <handa@m17n.org>
15753         * composite.c (syms_of_composite): Don't make the compostion hash
15754         table week.
15756 2003-11-30  Luc Teirlinck  <teirllm@auburn.edu>
15758         * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
15759         * textprop.c (Fget_char_property_and_overlay): New function.
15760         (syms_of_textprop): Defsubr it.
15762 2003-11-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15764         * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
15765         to compile on terminal configuration.
15767         * fileio.c (Fread_file_name): Check use_file_dialog also before
15768         calling Fx_file_dialog.
15770         * fns.c (use_file_dialog): New variable.
15771         (syms_of_fns): DEFVAR_BOOL use-file-dialog.
15773 2003-11-29  Kim F. Storm  <storm@cua.dk>
15775         * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
15776         (syms_of_msdos): Don't intern and staticpro them.
15778 2003-11-27  Kim F. Storm  <storm@cua.dk>
15780         * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
15781         coordinates relative to glyph at posn.  If glyph is an image,
15782         return that as object at posn.  Callers changed.
15783         (mode_line_string, marginal_area_string): Calculate and return
15784         pixel coordinates relative to glyph.  Callers changed.
15786         * dispextern.h (buffer_posn_from_coords, mode_line_string)
15787         (marginal_area_string): Fix prototypes.
15788         (window_box_left_offset, window_box_right_offset): Add prototypes.
15790         * frame.h (get_specified_cursor_type, get_window_cursor_type):
15791         Remove prototypes.
15793         * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
15795         * keyboard.c (make_lispy_position): Add x and y coordinates
15796         relative to the current glyph as 7th element of position.
15797         If glyph is an image, return it in the object element.
15798         (read_key_sequence): Skip checks for keymap property in cases
15799         where POSN_STRING is not a string (e.g. an image).
15801         * xdisp.c (Vdisplay_pixels_per_inch): New variable.
15802         (Vshow_text_cursor_in_void): New variable.
15803         (glyph_to_pixel_coords): Don't use negative hpos.
15804         (x_y_to_hpos_vpos): Fix for partially visible first glyph.
15805         (append_stretch_glyph): Change ascent arg to be actual value
15806         in pixels rather than ratio to height.  Callers changed.
15807         (calc_pixel_width_or_height): New aux function, implementing
15808         pixel based artihmetic for glyph widths and heights.
15809         (produce_stretch_glyph): Use calc_pixel_width_or_height for
15810         :width, :height, :align-to, and :ascent, thus allowing these to
15811         be specified in pixels as well as multiples of characters.
15812         Don't produce stretch glyphs with zero width or height.
15813         (get_specified_cursor_type): Declare static.
15814         (get_window_cursor_type): Declare static.  Add glyph arg to be
15815         able to know when cursor is on an image; always substitute
15816         hollow-box cursor for filled-box cursor on images, to avoid
15817         negative images and flicker when blinking the cursor.
15818         (display_and_set_cursor): Pass glyph to get_window_cursor_type.
15819         (note_mode_line_or_margin_highlight): Use non-text cursor rather
15820         than vertical scroll-bar cursor in display margins.
15821         (note_mouse_highlight): Use non-text cursor rather than text
15822         cursor in fringes and over images in the text area.
15823         Use non-text cursor when mouse pointer is outside editable text,
15824         i.e. in the void after end-of-line or end-of-buffer; this was
15825         already done for W32, but is now standard for all systems --
15826         user can toggle show-text-cursor-in-void to get old behaviour.
15827         (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
15828         Vdisplay_pixels_per_inch.
15830 2003-11-25  Andreas Schwab  <schwab@suse.de>
15832         * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
15833         EMACS_INT to not lose bits.
15834         (Ffillarray): Don't set bits beyond the size of a bool vector.
15836 2003-11-25  Kim F. Storm  <storm@cua.dk>
15838         * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
15839         define this defun on systems that cannot use stderr as lvalue.
15841 2003-11-24  Gerd Moellmann  <gerd@gnu.org>
15843         * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
15844         [__FreeBSD_version >= 500042]: Define as -znocombreloc because
15845         ld's default is incompatible with unexec.
15847 2003-11-23  Kim F. Storm  <storm@cua.dk>
15849         * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
15850         (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
15851         (Fforce_window_update): New defun.
15852         (syms_of_window): Defsubr it.
15853         (Fset_window_margins, Fset_window_fringes): Doc fix.
15855         * print.c (Fredirect_debugging_output): New defun.
15856         (syms_of_print): Defsubr it.
15858 2003-11-22  Luc Teirlinck  <teirllm@auburn.edu>
15860         * fns.c (Fset_char_table_parent): Doc fix.
15862 2003-11-22  Kim F. Storm  <storm@cua.dk>
15864         * dispnew.c (buffer_posn_from_coords): Return actual row/column
15865         for glyph clicked on, rather than (unused) pixel positions.
15866         (mode_line_string, marginal_area_string): Change X and Y args to
15867         pointers for returning actual row/column for glyph clicked on.
15868         Simplify and optimize loops.
15870         * dispextern.h (mode_line_string, marginal_area_string):
15871         Update prototypes.
15873         * keyboard.c (make_lispy_position): New function for generating
15874         mouse click positions from frame and pixel coordinates.
15875         Enhanced to return buffer position and actual row/column for
15876         events outside the text area using updated mode_line_string and
15877         marginal_area_string functions.
15878         Return left-fringe and right-fringe clicks as such, rather than
15879         clicks in text area.
15880         (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
15881         pixel_to_glyph_coords, as we never use the results.
15882         (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
15883         WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
15884         Eliminate unused code in WHEEL_EVENT handling.
15885         (make_lispy_movement): Use make_lispy_position.
15887         * window.c (coordinates_in_window): Remove redundant tests.
15888         Fix returned X pixel value for left-margin.
15890         * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
15891         mode_line_string and marginal_area_string parameters.
15893 2003-11-22  Lars Hansen  <larsh@math.ku.dk>
15895         * w32.c (struct the_group, getgrgid): Add.
15896         * mac.c (struct my_group, getgrgid): Add.
15898 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
15900         * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
15902 2003-11-21  Lars Hansen  <larsh@math.ku.dk>
15904         * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
15905         include in call to file name handler.  Optionally translate numeric
15906         UID and GID to strings.  Update docstring.
15907         (directory_files_internal): Add parameter ID-FORMAT.
15908         (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
15909         include in call to file name handler and call to
15910         directory_files_internal.  Update Docstring.
15911         (Fdirectory_files): Add dummy parameter in call to
15912         directory_files_internal.
15913         * lisp.h (Qinteger): Add.
15914         (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
15915         (Ffile_attributes): Add parameter.
15916         * data.c (Qinteger): Export.
15918 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
15920         * fns.c (Freverse, Fnreverse): Doc fixes.
15922 2003-11-19  Kim F. Storm  <storm@cua.dk>
15924         * xdisp.c (init_iterator): Initialize it->start to position
15925         before reseating (in case start position is invisible).
15926         (init_to_row_start): Set it->start to row-start.
15927         (redisplay_window): Accept optional_new_start if start position
15928         is invisible (in which case IT_CHARPOS overshoots PT).
15929         (display_line): Setup row->start from it->start (rather than
15930         it->current which is wrong if first char on line is invisible).
15931         When done, reseat it->start to it->current (= start of next row).
15932         (expose_area): Fix exposure of text area when first char (e.g. TAB)
15933         is only partially visible.
15935         * dispextern.h (struct it): New member start.
15937 2003-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
15939         * alloc.c (make_float, Fcons): Clear the markbit at init time.
15940         (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
15941         of block_index outside of the macro call.
15942         (Fgarbage_collect): Remove null code.
15944         * m/amdx86-64.h: Don't redefine XPNTR.
15946         * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
15947         of VALMASK.
15949         * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
15950         (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
15951         (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
15953         * lisp.h (VALMASK): Only define for non-union type.
15954         (MARKBIT): Remove.
15955         (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
15956         (XTYPE): Define unconditionally.
15957         (XSETTYPE): Remove one more remnant.
15958         (EQ): Define differently for the union and non-union cases.
15959         (INTMASK): New bit mask.
15960         (struct Lisp_Marker): Move down to prepare for upcoming patch.
15961         (GC_EQ): Delegate to EQ.
15963         * coding.c (coding_restore_composition): Lisp_Object/int mixup.
15965 2003-11-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15967         * xterm.c (x_window_to_scroll_bar): Move check of display to
15968         where window_id is compared.
15970 2003-11-17  Kim F. Storm  <storm@cua.dk>
15972         * dispextern.h (struct it): New member first_vpos.
15974         * xdisp.c (start_display): Set it->first_vpos.
15975         (try_window_id): Use first_vpos to start display in first _text_
15976         line if no reusable lines at start of window with header line.
15978 2003-11-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15980         * w32fns.c (XPutPixel):
15981         * w32bdf.c (w32_init_bdf_font):
15982         * sunfns.c (sel_read):
15983         * process.c (Fmake_network_process):
15984         * frame.c (store_frame_param):
15985         * fontset.c (Fset_fontset_font):
15986         * emacs.c (shut_down_emacs):
15987         * ccl.c (ccl_driver): Remove period at end of error message.
15989         * config.in: Regenerate.
15991         * xfns.c (x_window_to_frame, x_any_window_to_frame)
15992         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
15993         (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
15994         (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
15995         (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
15997         * xterm.h (struct x_display_info): New field xg_cursor for GTK.
15999         * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
16000         (XTmouse_position, handle_one_xevent): Pass Display* to
16001         x_window_to_scroll_bar.
16002         (x_window_to_scroll_bar): Take a Display* argument.
16003         Check that display for frame is equal to Display* argument.
16004         (event_handler_gdk): Remove current_dpyinfo.  Get dpyinfo from
16005         x_display_info_for_display instead.  Use Display in xev instead
16006         of GDK_DISPLAY.
16007         (x_dispatch_event): Call x_display_info_for_display.
16008         (XTread_socket): Move GTK part out of loop.  current_dpyinfo removed.
16009         (x_connection_closed): Call xg_display_close for GTK.
16010         (x_term_init): Call xg_display_open for additional displays.
16011         Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
16012         for GTK.
16014         * xmenu.c (single_menu_item, mouse_position_for_popup)
16015         (x_activate_menubar): Formatting adjustments.
16017         * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
16018         adjustments.
16020         * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
16021         (xg_display_close, xg_create_default_cursor)
16022         (xg_get_gdk_pixmap_and_mask): New functions for multiple display
16023         handling.
16024         (xg_left_ptr_cursor): Remove.
16025         (xg_set_cursor): Change cursor to GdkCursor*.  Do not create
16026         cursor here.
16027         (xg_win_to_widget): Take Display* argument, call
16028         gdk_xid_table_lookup_for_display.
16029         (xg_create_frame_widgets, xg_get_file_name, create_menus)
16030         (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
16031         (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
16032         in FRAME_X_DISPLAY_INFO.
16033         (xg_get_scroll_id_for_window): Take Display* argument.
16034         (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
16035         (xg_initialize): Remove xg_left_ptr_cursor.
16037         * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
16038         Display* argument.
16039         (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
16041 2003-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16043         * xterm.c (x_detect_focus_change): Do not change focus frame for
16044         Enter/LeaveNotify if the current focus frame has explicit focus.
16046 2003-11-14  Kim F. Storm  <storm@cua.dk>
16048         * dispnew.c (update_text_area): Fix redisplay error when hscroll
16049         is active and first glyph is only partially visible.
16051 2003-11-13  Kenichi Handa  <handa@m17n.org>
16053         * xdisp.c (select_frame_for_redisplay): New function.
16054         (redisplay_internal): Record also selected_frame for
16055         unwind_redisplay.  Call select_frame_for_redisplay before
16056         redrawing each frame.
16057         (unwind_redisplay): Argument changed to a cons.
16059 2003-11-12  Luc Teirlinck  <teirllm@auburn.edu>
16061         * fns.c (Fstring_to_multibyte): Doc fix.
16063 2003-11-11  Kenichi Handa  <handa@m17n.org>
16065         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16067 2003-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16069         * xfns.c (x_window): Set XtNx and XtNy in shell widget for
16070         program specified positions.
16072 2003-11-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16074         * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
16076 2003-11-08  Kenichi Handa  <handa@m17n.org>
16078         * Makefile.in (lisp): Add kannada.el.
16079         (shortlisp): Likewise.
16081 2003-11-07  Kenichi Handa  <handa@m17n.org>
16083         * coding.c (coding_allocate_composition_data):
16084         Reset coding->composing to COMPOSITION_NO.
16085         (coding_restore_composition): Detect invalid composition data.
16086         Give Fstring and Fvector a Lispy integer, not C int.
16088 2003-11-05  Stefan Monnier  <monnier@iro.umontreal.ca>
16090         * floatfns.c (Flogb): Don't use VALMASK.
16092         * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
16093         * m/ia64.h (VALBITS, XINT, XUINT): Remove.
16095         * lisp.h (XINT): Move the cast to clarify what is going on.
16096         (GCTYPEMASK, XSETTYPE): Remove.
16097         (XGCTYPE): Make it an alias of XTYPE.
16099 2003-11-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16101         * xterm.c (x_term_init): Fix formatting.
16103 2003-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16105         * gtkutil.h (xg_have_tear_offs): Declare.
16106         (xg_keep_popup, xg_did_tearoff): Remove.
16108         * gtkutil.c: Remove variable xg_did_tearoff.
16109         (xg_have_tear_offs): New function.
16110         (tearoff_remove): Just decrease xg_detached_menus.
16111         (tearoff_activate): Increase xg_detached_menus and call
16112         tearoff_remove when tearoff is removed.
16113         (xg_keep_popup): Remove function.
16114         (create_menus): Give add_tearoff_p as argument to recursive
16115         call to create_menus.
16116         (xg_create_widget): Use variables instead of multiple
16117         strcmp.  Tell create_menus to create tear off only for
16118         menu bar menus.
16119         (xg_update_menubar): Change title for a detached menu also.
16120         (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
16121         of deep_p.
16122         (xg_initialize): Initialize xg_detached_menus, remove
16123         initialization of xg_did_tearoff.
16125         * xmenu.c (set_frame_menubar): For GTK, set deep_p if
16126         xg_have_tear_offs returns non-zero.
16127         (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
16128         call to xg_keep_popup.
16130 2003-11-01  Andrew Choi  <akochoi@shaw.ca>
16132         * macterm.c (XTread_socket): Handle menubar selection and grow
16133         window only for mouseDown events.
16135 2003-10-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16137         * xterm.c (x_term_init): For GTK part, increase x_initialized
16138         to check for more than one display.  Use error instead of return 0.
16140 2003-10-31  Andrew Choi  <akochoi@shaw.ca>
16142         * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
16143         (copy_dysymtab): Call it.
16145 2003-10-31  Luc Teirlinck  <teirllm@auburn.edu>
16147         * eval.c (Fdefvaralias): Doc fix.
16149 2003-10-26  Luc Teirlinck  <teirllm@auburn.edu>
16151         * data.c (Fsetplist): Doc fix.
16153 2003-10-14  Lute Kamstra  <lute@gnu.org>
16155         * window.c (Fset_window_fringes): Clarify docstring.
16157 2003-10-14  Kim F. Storm  <storm@cua.dk>
16159         * window.c (Fset_window_margins): Simplify arg checking.
16161 2003-10-13  Richard M. Stallman  <rms@gnu.org>
16163         * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
16164         (print_partial_compiled_pattern): Replace assert with a printout.
16165         (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
16167         * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
16169         * window.c (Fset_window_margins): Allow only integers as args.
16170         (syms_of_window) <special-display-buffer-names,
16171         special-display-regexps>: Doc fixes.
16173 2003-10-13  Lute Kamstra  <lute@gnu.org>
16175         * window.c (Fset_window_fringes): Elaborate docstring.
16177 2003-10-12  Andrew Choi  <akochoi@shaw.ca>
16179         * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
16181         * s/darwin.h (GC_MARK_STACK): Define.
16183 2003-10-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16185         * window.c (shrink_windows): New function.
16186         (size_window): Call shrink_windows to calculate window sizes when
16187         shrinking frame with more than one window.
16189 2003-10-12  Kim F. Storm  <storm@cua.dk>
16191         * xdisp.c (compute_fringe_widths): Doc fix.
16193 2003-10-08  Kenichi Handa  <handa@m17n.org>
16195         * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
16197 2003-10-07  Kenichi Handa  <handa@m17n.org>
16199         * coding.c (Qcoding_system_define_form): New variable.
16200         (syms_of_coding): Intern and staticpro it.
16201         (Fcheck_coding_system): Try to autoload the definition of
16202         CODING-SYSTEM.
16204 2003-10-05  Luc Teirlinck  <teirllm@auburn.edu>
16206         * fns.c (Frequire): Doc fix.
16208 2003-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16210         * xfns.c (Fx_send_client_event): New function as a base for
16211         manipulating extended window manager hints.
16212         (Fx_send_client_event): Remove unused variable s.
16214         * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
16215         that function is removed.
16217         * xterm.c (x_set_offset): Use move_offset_left/top instead of
16218         x/y_pixels_outer_diff.
16219         (x_check_expected_move): Calculate move_offset_left/top.
16221         * xterm.h (struct x_output): New members: move_offset_top/left.
16223         * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
16224         call x_set_offset directly.
16226         * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
16228         * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
16230         * xterm.c (x_delete_display): Free font names and font_encoder
16231         in dpyinfo->font_table.
16233         * xfns.c (Fx_close_connection): Only call XFreeFont here.
16234         Move xfree of font names to x_delete_display.
16236         * xterm.h (struct x_display_info): New member, wm_type.
16237         (struct x_output): New members, expected_top/left and
16238         check_expected_move.
16240         * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
16241         is received.
16242         (handle_one_xevent): Rename x_check_expected_move from
16243         x_check_fullscreen_move.
16244         (x_set_offset): Only add WM decoration sizes to modified_top/left
16245         for X_WMTYPE_A.  Set check_expected_move when WM type is unknown.
16246         (x_check_expected_move): Rename from x_check_fullscreen_move.
16247         Removed fullscreen specific code.  Use check_expected_move,
16248         expected_left/top instead.  Also, set wm_type.
16249         (x_term_init): Initialize wm_type to unknown.
16251         * frame.c (x_fullscreen_move): Remove addition of WM decoration
16252         sizes to move_x/y.
16254 2003-10-03  Kenichi Handa  <handa@m17n.org>
16256         * macterm.c (x_load_font): Clear all members of FONTP before start
16257         filling them.
16259 2003-10-02  Kenichi Handa  <handa@m17n.org>
16261         * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
16262         before calling find_ccl_program_func.  Call find_ccl_program_func
16263         only when fontp->font_encoder is not NULL.
16265         * xterm.c (x_load_font): Clear all members of FONTP before start
16266         filling them.
16268 2003-10-03  John Paul Wallington  <jpw@gnu.org>
16270         * keymap.c (map_keymap): Don't abort when binding is a vector.
16272 2003-10-02  Jason Rumney  <jasonr@gnu.org>
16274         * makefile.w32-in (emacs.o, coding.o, bytecode.o):
16275         Sync dependencies with Makefile.in.
16276         (alloca.o): Remove.
16278         * w32fns.c (w32_load_system_font): Clear all members of FONTP before
16279         filling them.
16281         * w32bdf.c (w32_load_bdf_font): Likewise.
16283 2003-09-30  Richard M. Stallman  <rms@gnu.org>
16285         * term.c (set_tty_color_mode): Calculate current_mode_spec
16286         regardless of value of VAL.
16288         * intervals.c (graft_intervals_into_buffer):
16289         Set BUF_INTERVALS (buffer)->up_obj when appropriate.
16290         Handle over_used when splitting UNDER.
16292 2003-09-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
16294         * regex.c (regex_compile): Free the stack when returning from function.
16296 2003-09-28  Kenichi Handa  <handa@m17n.org>
16298         * fontset.c (Finternal_char_font): Change return value to
16299         cons (FONT-NAME . GLYPH-CODE).
16301 2003-09-28  Eli Zaretskii  <eliz@gnu.org>
16303         * term.c (tty_setup_colors): Treat any negative argument as -1.
16305 2003-09-27  Gaute B Strokkenes  <biggaute@uwc.net>  (tiny change)
16307         * process.c (send_process): Delete unused temp_buf.
16309 2003-09-26  Dave Love  <fx@gnu.org>
16311         * xterm.c (x_bitmap_mask): Declare.
16313 2003-09-25  Dave Love  <fx@gnu.org>
16315         * Makefile.in (fns.o): Depend on md5.h.
16317 2003-09-25  Kim F. Storm  <storm@cua.dk>
16319         * window.c (set_window_buffer): Fix redisplay problems when
16320         switching between buffers with different display margin widths.
16322 2003-09-23  Kim F. Storm  <storm@cua.dk>
16324         * process.c (set_socket_option): Fix :bindtodevice option.
16325         (Fset_network_process_option): Update process contact list when
16326         setting option succeeds.
16327         (Fmake_network_process): Doc fix.
16329 2003-09-23  Dave Love  <fx@gnu.org>
16331         * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
16333 2003-09-22  Eli Zaretskii  <eliz@gnu.org>
16335         * term.c (set_tty_color_mode): Use INTEGERP to test whether a
16336         color mode is an integer number (it could be -1).
16338 2003-09-22  Richard M. Stallman  <rms@gnu.org>
16340         * intervals.c (graft_intervals_into_buffer): Correct the main loop
16341         in the case where OVER is longer than UNDER.
16343 2003-09-22  Masatake YAMATO  <jet@gyve.org>
16345         * window.c (Fset_window_scroll_bars): Validate the value of
16346         `vertical_type'.
16348 2003-09-21  Kim F. Storm  <storm@cua.dk>
16350         * frame.c (Vdefault_frame_scroll_bars): New variable.
16351         (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
16352         (syms_of_frame): DEFVAR_LISP it, and initialize according to
16353         window-system default scroll bar position.
16355         * window.c (Fwindow_scroll_bars): Doc fix.
16357 2003-09-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16359         * xterm.c (x_set_offset): Take window manager decorations into account.
16361 2003-09-19  Richard M. Stallman  <rms@gnu.org>
16363         * atimer.h: Don't include lisp.h.
16364         (P_): Define it here (as well as elsewhere).
16366         * print.c (Fprin1_to_string): Move the PRINTPREPARE
16367         later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
16369         * data.c (Fvariable_binding_locus): New function.
16370         (syms_of_data): defsubr it.
16371         (Flocal_variable_p): Delete duplicate call to indirect_variable.
16373 2003-09-18  Dave Love  <fx@gnu.org>
16375         * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
16377         * process.c (Fnetwork_interface_info): Fix type error.
16378         (Fnetwork_interface_list): Doc fix.
16379         (read_process_output, read_process_output): Delete unused var.
16381 2003-09-17  Kim F. Storm  <storm@cua.dk>
16383         * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
16384         Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
16385         (Fnetwork_interface_info): Check that ifreq struct has required
16386         fields before accessing them; this requires that those fields are
16387         defined as macros, which may be too restrictive on some platforms,
16388         but it is better than failing on other platforms.
16389         (syms_of_process): Only defsubr above fns when included.
16391 2003-09-17  Dave Love  <fx@gnu.org>
16393         * unexalpha.c: Don't include varargs.h.
16395 2003-09-17  Kim F. Storm  <storm@cua.dk>
16397         * process.c (Fset_process_sentinel): Add sentinel to childp plist
16398         for network process.
16399         (socket_options): Add `:' prefix to option names.  Add optbit field.
16400         (set_socket_option): Remove no_error arg and special handling of s < 0.
16401         Return 1<<optbit for known option, 0 for unknown.
16402         Do not interpret 0 as false for boolean option (only nil).
16403         Pass failed option and value to report_file_error.
16404         (Fset_network_process_options): Replace by Fset_network_process_option.
16405         (Fset_network_process_option): New function to set just one option.
16406         (Fmake_network_process): Allow :coding arg to be a cons.
16407         Allow :server arg to be an integer specifying backlog size.
16408         Remove :options arg, and allow options to be specified directly
16409         as :KEY, VALUE pairs.  Parse these options before binding socket.
16410         As before, :reuseaddr t is default for a server process, but this
16411         can now be disabled by specifying :reuseaddr nil.
16412         (Fnetwork_interface_info): Rename from Fget_network_interface_info.
16413         (init_process): Availability of network options is now checked with
16414         simpler syntax (featurep 'make-network-process :OPTION); use loop to
16415         setup features.
16416         (syms_of_process): Fix defsubr's for the replaced functions.
16418 2003-09-16  Dave Love  <fx@gnu.org>
16420         * Makefile.in: Depend on coding.h.
16422 2003-09-14  Kim F. Storm  <storm@cua.dk>
16424         * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
16425         (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
16426         (syms_of_process): Defsubr them.
16428         * config.in: Regenerate.
16430 2003-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
16432         * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
16433         * m/news-r6.h (XUNMARK): Remove.
16434         * m/mips.h (XUNMARK): Remove.
16435         * m/mips-siemens.h (XUNMARK): Remove.
16436         * m/iris4d.h (XUNMARK): Remove.
16437         * m/hp800.h (XMARKBIT, XUNMARK): Remove.
16439 2003-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
16441         * lisp.h (VALBITS): Don't remove 1 for the markbit.
16442         (union Lisp_Object): Use unsigned int for types.  Remove markbit.
16443         (MARKBIT): Remove 1 from VALBITS so we still use same old val.
16444         (XTYPE): Use unsigned right-shift.
16445         (XMARKBIT, XMARK, XUNMARK): Remove.
16447         * alloc.c (init_intervals, init_symbol, init_marker):
16448         Don't preallocate anything.
16449         (Fgarbage_collect, mark_object): Ignore the markbit.
16451         * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
16453 2003-09-08  Lute Kamstra  <lute@gnu.org>
16455         * xdisp.c (pint2hrstr): New function.
16456         (decode_mode_spec): Add `%i' and `%I' specs.
16457         * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
16458         for `mode-line-format'.
16460 2003-09-07  Andreas Schwab  <schwab@suse.de>
16462         * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
16463         avoid warning.
16465 2003-09-07  Eli Zaretskii  <eliz@gnu.org>
16467         * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
16469 2003-09-03  Kim F. Storm  <storm@cua.dk>
16471         * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
16472         change (superseded by 2002-08-30 change); the default blink-off
16473         cursor is now again "no cursor".
16475 2003-09-01  Jason Rumney  <jasonr@gnu.org>
16477         * makefile.w32-in (alloca.o): Remove.
16478         (coding.o): Depend on intervals.h
16479         (emacs.o, bytecode.o): Depend on window.h
16481 2003-09-01  Dave Love  <fx@gnu.org>
16483         * Makefile.in (alloca.o): Remove commands.
16484         (coding.o): Depend on intervals.h composite.h window.h.
16485         (emacs.o): Depend on window.h keyboard.h keymap.h.
16486         (gtkutil.o): Depend on keyboard.h charset.h coding.h.
16487         (bytecode.o): Depend on window.h.
16489 2003-08-31  Jason Rumney  <jasonr@gnu.org>
16491         * w32term.c (w32_per_char_metric): Allow cached metrics to be
16492         returned even when font_type is unknown.
16494         * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
16496 2003-08-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16498         * xterm.c (x_term_init): Initialize new fields in x_display_info.
16500         * xterm.h (struct x_display_info): Add red/green/blue_bits and
16501         *_offset.
16503         * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
16504         calculate pixel value.
16506 2003-08-29  Gerd Moellmann  <gerd.moellmann@t-online.de>
16508         * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
16509         Don't tell redisplay display is accurate when it's actually been
16510         paused for pending input.
16512 2003-08-29  Richard M. Stallman  <rms@gnu.org>
16514         * dispnew.c (adjust_glyph_matrix): Call window_box
16515         whenever W is nonzero.
16517         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
16518         (Fkill_local_variable, Fmake_variable_frame_local)
16519         (Flocal_variable_p, Flocal_variable_if_set_p):
16520         Use indirect_variable to trace thru variable aliases.
16522         * config.in: Updated.
16524         * callint.c (Fcall_interactively): Save and restore
16525         Vthis_command, Vthis_original_command, real_this_command,
16526         and current_kboard->Vlast_command.
16528         * abbrev.c (Fexpand_abbrev): Insert before deleting.
16530 2003-08-29  Gerd Moellmann  <gerd@gnu.org>
16532         * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
16534 2003-08-28  David Abrahams  <dave@boost-consulting.com>  (tiny change)
16536         * coding.c (decode_coding_iso2022): Initialize local variable c2.
16537         (decode_coding_sjis_big5): Likewise.
16539 2003-08-27  Jason Rumney  <jasonr@gnu.org>
16541         * w32.c (sys_pipe): Protect against file descriptor overflow.
16543         * w32fns.c (syms_of_w32fns): Remove non-existent functions.
16545         * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
16547 2003-08-26  Terje Rosten  <terjeros@phys.ntnu.no>
16549         * xfns.c (Vgtk_version_string): New variable.
16550         (syms_of_xfns): DEFVAR_LISP it.  Provide gtk.
16552 2003-08-24  Eli Zaretskii  <eliz@gnu.org>
16554         * term.c (term_init): Remove `const' from buffer_size's declaration.
16556         * Makefile.in (msdos.o): Depend on intervals.h.
16558         * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
16560 2003-08-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16562         * xterm.h (struct x_display_info): New fields: client_leader_window
16563         and Xatom_wm_client_leader.
16565         * xterm.c (x_initialize): Move call to x_session_initialize to ...
16566         (x_term_init): ... here.  Initialize client_leader fields in dpyinfo.
16568         * xsmfns.c (create_client_leader_window): New function.
16569         (x_session_initialize): Call create_client_leader_window, take
16570         dpyinfo as argument.
16572         * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
16574         * Makefile.in (xsmfns.o): Add more depenedencies.
16576 2003-08-21  Dave Love  <fx@gnu.org>
16578         * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
16580 2003-08-21  Kenichi Handa  <handa@m17n.org>
16582         * term.c (term_init): Fix previous change; don't rely on the
16583         length of `buffer' if TERMINFO is defined.
16585 2003-08-20  Dave Love  <fx@gnu.org>
16587         * atimer.h: Include lisp.h.
16589         * lisp.h (EMACS_LISP_H): New.
16590         (popup_activated_flag): Don't declare.
16592         * alloca.c: Some merging with gnulib.  Change logic and doc
16593         concerning (x)malloc/(x)free -- no longer Emacs-specific.
16594         [DO_BLOCK_INPUT]: Don't include lisp.h.
16595         (xmalloc, xfree): Declare.
16596         (malloc): Don't declare.
16598         * Makefile.in (LWLIB_OPTIONS): Remove (unused).
16599         (alloca.o): Remove obsolete stuff concerning alloca.s.  Depend on
16600         atimer.h, blockinput.h.
16602         * alloc.c (lisp_align_malloc): Change type of `aligned'.
16604         * alloca.s: Remove.
16606 2003-08-19  Gerd Moellmann  <gerd@gnu.org>
16608         * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
16609         use -lncurses.
16611         * term.c (term_init): Use a buffer of size 4096 for tgetent since
16612         FreeBSD returns something longer than 2044.  Abort if the end of
16613         the buffer is overwritten.
16615 2003-08-19  Miles Bader  <miles@gnu.org>
16617         * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
16619 2003-08-19  Gerd Moellmann  <gerd@gnu.org>
16621         * alloc.c (lisp_align_malloc): Check for memory full when
16622         allocating ablocks, which also avoids freeing a pointer into an
16623         ablocks structure.
16625         * puresize.h (BASE_PURESIZE): Increase to 1100000.
16627         * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
16629 2003-08-16  Richard M. Stallman  <rms@gnu.org>
16631         * editfns.c (Fencode_time): Doc fix.
16633 2003-08-16  David Ponce  <david@dponce.com>
16635         * fileio.c (Fwrite_region): Fix conditional expression to issue
16636         the right message.
16638 2003-08-16  Juri Linkov  <juri@jurta.org>
16640         * syntax.c (Fforward_word): Argument changed to optional.
16641         Set default value to 1.
16643 2003-08-15  Kenichi Handa  <handa@m17n.org>
16645         * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
16646         what autoscaled.
16647         (best_matching_font): Once we find a better scalable font, set
16648         non_scalable_has_exact_height_p to 1.
16649         (try_font_list): Call try_alternative_families to try any family
16650         with the given registry.
16652 2003-08-09  Andreas Schwab  <schwab@suse.de>
16654         * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
16656         * print.c (print_string): Fix printing of multibyte string with
16657         nontrivial printcharfun.
16659 2003-07-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16661         * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
16663         * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
16665 2003-07-31  Kenichi Handa  <handa@m17n.org>
16667         * process.c (read_process_output): Return the actually read bytes
16668         instead of the result of decoding.
16670 2003-07-31  Kenichi Handa  <handa@m17n.org>
16672         * xterm.h (struct x_bitmap_record): New member have_mask.
16674         * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
16675         to 0.
16676         (x_create_bitmap_from_file): Likewise.
16677         (x_destroy_bitmap): Check have_mask member before freeing a mask.
16678         (x_destroy_all_bitmaps): Likewise.
16679         (x_create_bitmap_mask): Set have_mask member to 1.
16681 2003-07-30  Richard M. Stallman  <rms@gnu.org>
16683         * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
16685 2003-07-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
16687         * gtkutil.c (xg_mark_data): Update calls to mark_object.
16689 2003-07-29  Richard M. Stallman  <rms@gnu.org>
16691         * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
16692         Conditionalize XIM code on HAVE_XIM.
16694         * fns.c (Fclear_string): New function.
16695         (syms_of_fns): defsubr it.
16697 2003-07-28  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
16699         * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
16701 2003-07-22  Stefan Monnier  <monnier@cs.yale.edu>
16703         * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
16705         * buffer.c (delete_all_overlays): New function.
16706         * buffer.h (delete_all_overlays): Declare.
16707         * coding.c (run_pre_post_conversion_on_str):
16708         * print.c (temp_output_buffer_setup):
16709         * fileio.c (Finsert_file_contents):
16710         * minibuf.c (get_minibuffer): Use it.
16712 2003-07-22  Andrew Choi  <akochoi@shaw.ca>
16714         * unexmacosx.c (unexec_regions_sort_compare):
16715         (unexec_regions_merge): New functions.  Sort and merge unexec
16716         regions before dumping them.
16718 2003-07-22  Dave Love  <fx@gnu.org>
16720         * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
16722 2003-07-21  Stefan Monnier  <monnier@cs.yale.edu>
16724         * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
16725         (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
16726         MARKBIT as the gcmarkbit for strings.
16728 2003-07-21  Richard M. Stallman  <rms@gnu.org>
16730         * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
16732         * fns.c (Flocale_info): Rename from Flanginfo.  Doc fixes.
16733         (syms_of_fns): Corresponding change.
16735         * alloc.c (syms_of_alloc): Doc fixes.
16737 2003-07-20  Han Boetes  <han@mijncomputer.nl>  (tiny change)
16739         * s/netbsd.h: Use -Wl syntax.
16741 2003-07-17  Richard M. Stallman  <rms@gnu.org>
16743         * xterm.c (xim_initialize): Redo 6/24 change.
16745 2003-07-15  Stefan Monnier  <monnier@cs.yale.edu>
16747         * buffer.c (copy_overlays): Use EMACS_INT for positions.
16748         (Fswitch_to_buffer): Don't signal an error when switching to the same
16749         buffer in a dedicated window.
16751         * alloc.c: Use bitmaps for cons, as was done for floats.
16752         (init_float, init_cons): Let the normal code allocate the first block.
16753         (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
16754         (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
16755         New macros.
16756         (struct cons_block): Move conses to the beginning.  Add gcmarkbits.
16757         (Fcons): Use lisp_align_malloc and CONS_UNMARK.
16758         (live_cons_p): Check the pointer is not past the `conses' array.
16759         (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
16760         (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
16761         (survives_gc_p): Use CONS_MARKED_P and simplify.
16762         (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
16764 2003-07-13  Paul Eggert  <eggert@twinsun.com>
16766         GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
16767         puts it into BSS instead, at least on Solaris 8 and 9.
16768         This is a valid optimization, and it may occur on other platforms,
16769         so Emacs should not assume that initializing a static variable to
16770         zero puts it into data.
16771         * alloc.c (pure, staticvec):
16772         Initialize these arrays to nonzero, so that they're not
16773         put into BSS by that optimization.
16775 2003-07-13  Stefan Monnier  <monnier@cs.yale.edu>
16777         * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING.  Update users.
16778         (lisp_align_malloc): Use posix_memalign is available.
16779         (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
16780         (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
16781         for consistency.  Update users.
16783 2003-07-13  Richard M. Stallman  <rms@gnu.org>
16785         * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
16787 2003-07-13  Terje Rosten  <terjeros@phys.ntnu.no>
16789         * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap): Modify to add mask,
16790         and use the Gtk+ function gtk_window_icon_from_file if available.
16792         * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
16793         handle mask of bitmaps.
16794         (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
16795         mask property.
16796         (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
16798         * xterm.h (xg_set_icon): New function.
16800 2003-07-12  Paul Eggert  <eggert@twinsun.com>
16802         * unexelf.c (unexec): Consider a section to precede the .bss
16803         section if its addresses overlap that of .bss.
16805 2003-07-12  Richard M. Stallman  <rms@gnu.org>
16807         * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
16809         * config.in (HAVE_CRTIN): Add #undef.
16810         (INLINE): Really inline only if OPTIMIZE is defined.
16812         * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
16813         END_FILES_1.
16814         (START_FILES_1, END_FILES_1): New macros (conditional).
16815         (LD_SWITCH_SYSTEM_TEMACS): Define.
16817         * s/openbsd.h: Don't include bsd4-3.h.
16818         (TERMINFO): Define.
16819         (LIBS_TERMCAP): Define.
16820         (LD_SWITCH_SYSTEM): Define (two definitions).
16822         * xfns.c: Include libpng/png.h instead of png.h.
16824 2003-07-11  Andreas Schwab  <schwab@suse.de>
16826         * buffer.c (modify_overlay): Update prototype.
16827         * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
16828         Likewise.
16830 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
16832         * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
16833         (struct interval): Move to intervals.h.
16834         (struct Lisp_Marker): Use EMACS_INT for position info.
16835         (forward_point): Remove prototype of defunct function.
16836         (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
16837         (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
16838         (syms_of_textprop, set_text_properties): Remove prototypes that are
16839         already in intervals.h.
16841         * intervals.h (struct interval): Move from lisp.h.
16842         Use EMACS_INT for position and size info.
16844         * coding.c: Include intervals.h for Fset_text_properties.
16846         * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
16847         position and length information.
16849 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
16851         * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
16852         position and length information.
16854 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
16856         Change overlays_after and overlays_before so the overlays themselves
16857         are linked into lists, rather than using cons cells.  After all each
16858         Lisp_Misc already occupies 5 words, so we can add a `next' field to
16859         Lisp_Overlay for free and save up one cons cell per overlay (not
16860         to mention one indirection when traversing the list of overlay).
16862         * lisp.h (struct Lisp_Overlay): New field `next'.
16864         * buffer.h (struct buffer): Change overlays_before and overlays_after
16865         from Lisp lists of overlays to pointers to overlays.
16867         * buffer.c (overlay_strings, recenter_overlay_lists):
16868         Fix typo in eassert in last commit.
16869         (unchain_overlay): New function.
16870         (add_overlay_mod_hooklist): Use AREF.
16871         (copy_overlays, reset_buffer, overlays_at, overlays_in)
16872         (overlay_touches_p, overlay_strings, recenter_overlay_lists)
16873         (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
16874         (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
16875         (report_overlay_modification, evaporate_overlays, init_buffer_once):
16876         Adjust to new type of overlays_(before|after).
16878         * alloc.c (mark_object): Mark the new `next' field of overlays.
16879         (mark_buffer): Manually mark the overlays_(after|before) fields.
16881         * coding.c (run_pre_post_conversion_on_str):
16882         * editfns.c (overlays_around):
16883         * xdisp.c (load_overlay_strings):
16884         * fileio.c (Finsert_file_contents):
16885         * indent.c (current_column):
16886         * insdel.c (signal_before_change, signal_after_change):
16887         * intervals.c (set_point_both):
16888         * print.c (temp_output_buffer_setup): Use new type for
16889         overlays_(before|after).
16891 2003-07-08  Stefan Monnier  <monnier@cs.yale.edu>
16893         * buffer.c (report_overlay_modification): Don't run hooks while
16894         traversing the list of overlays.
16896         * buffer.h (struct buffer): Use an int for overlay_center.
16897         (overlays_at, evaporate_overlays, recenter_overlay_lists)
16898         (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
16900         * buffer.c (reset_buffer, recenter_overlay_lists)
16901         (adjust_overlays_for_insert, adjust_overlays_for_delete)
16902         (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
16903         (evaporate_overlays, init_buffer_once): Update use of overlay_center.
16904         (overlays_at, evaporate_overlays, recenter_overlay_lists)
16905         (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
16907         * xdisp.c (fast_find_position): Remove unused var.
16909         * cmds.c (Qexpand_abbrev): New sym.
16910         (syms_of_cmds): Initialize it.
16911         (internal_self_insert): Use it to call expand-abbrev.
16913 2003-07-09  Kim F. Storm  <storm@cua.dk>
16915         * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
16916         was configured with --without-xim.
16917         (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
16919 2003-07-07  Richard M. Stallman  <rms@gnu.org>
16921         * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
16923         * alloc.c (Fgarbage_collect): Doc fix.
16925 2003-07-07  Nozomu Ando  <nand@mac.com>
16927         * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
16929 2003-07-06  Stefan Monnier  <monnier@cs.yale.edu>
16931         * minibuf.c (read_minibuf): UNGCPRO before returning.
16932         (Ftry_completion, Fall_completions): Doc fix.
16934         * alloc.c (live_float_p): Check that p is not past the `floats' array,
16935         now that `floats' is not the last element of the struct any more.
16937 2003-07-06  Jason Rumney  <jasonr@gnu.org>
16939         * w32term.h (ClipboardSequence_Proc): New type.
16941         * w32fns.c (clipboard_sequence_fn): New variable.
16942         (globals_of_w32fns): Initialize it.
16944         * w32select.c (last_clipboard_sequence_number): New variable.
16945         (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
16946         number if possible.
16948 2003-07-06  Stefan Monnier  <monnier@cs.yale.edu>
16950         * m/amdx86-64.h (MARKBIT):
16951         * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
16952         MARKBIT and ARRAY_MARK_FLAG any more.
16954         * m/hp800.h (XSETMARKBIT):
16955         * m/sr2k.h (XSETMARKBIT):
16956         * lisp.h (XSETMARKBIT): Remove unused macro.
16958         * lisp.h (mark_object): Change prototype.
16960         * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
16961         (last_marked): Change accordingly.
16962         (mark_interval, mark_maybe_object, mark_maybe_pointer)
16963         (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
16964         (mark_buffer): Update calls to mark_object.
16966         * bytecode.c (mark_byte_stack):
16967         * fns.c (sweep_weak_table):
16968         * keyboard.c (mark_kboards): Update calls to mark_object.
16970 2003-07-06  Jason Rumney  <jasonr@gnu.org>
16972         * alloc.c (struct ablock): Only include padding when there is some.
16974 2003-07-04  Stefan Monnier  <monnier@cs.yale.edu>
16976         * alloc.c (ALIGN): Add casts to simplify usage.
16977         (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
16978         (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
16979         (struct ablock, struct ablocks): New types.
16980         (free_ablock): New global var.
16981         (lisp_align_malloc, lisp_align_free): New functions.
16982         (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
16983         (struct float_block): Reorder and add gcmarkbits.
16984         (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
16985         (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
16986         (init_float, make_float): Use lisp_align_malloc.
16987         (free_float, live_float_p): Don't use `type' any more.
16988         (make_float): Use FLOAT_UNMARK to access to mark bit.
16989         (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
16990         Use FLOAT_MARKED_P to access the mark bit.
16991         (pure_alloc): Simplify use of ALIGN.
16992         (mark_object): Use FLOAT_MARK to access the mark bit.
16993         (gc_sweep): Use new macros to access the float's mark bit.
16994         (init_alloc_once): Init free_ablock.
16996         * lisp.h (struct Lisp_Float): Remove unused field `type'.
16998 2003-06-27  Stefan Monnier  <monnier@cs.yale.edu>
17000         * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
17001         (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
17002         (allocate_buffer): Move.
17003         (string_bytes): Don't mask markbit of `size_byte'.
17004         (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17005         (mark_object, mark_buffer, survives_gc_p, gc_sweep):
17006         Use the `size' field of buffers (rather than the `name' field) for
17007         the mark bit, as is done for all other vectorlike objects.
17008         Use the new macros to access the mark bit of vectorlike objects.
17010 2003-06-26  Richard M. Stallman  <rms@gnu.org>
17012         * puresize.h (BASE_PURESIZE): Increment base size.
17014         * xdisp.c (fast_find_position): Enable Gerd's new definition.
17016         * xterm.c (xim_initialize): Undo previous change.
17018 2003-06-26  Stefan Monnier  <monnier@cs.yale.edu>
17020         * alloc.c (survives_gc_p): Simplify.
17022         * buffer.c (set_buffer_internal_1): Test CONSP for lists.
17024         * window.c (Fset_window_dedicated_p): Simplify.
17025         (display_buffer_1): Don't raise the win from which minibuf was entered.
17026         (temp_output_buffer_show): Don't assume BEG == 1.  Simplify.
17027         (Fminibuffer_selected_window): Simplify.
17029         * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
17031         * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
17032         (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
17034         * insdel.c (check_markers, adjust_markers_for_delete)
17035         (adjust_markers_for_insert, adjust_markers_for_replace)
17036         (prepare_to_modify_buffer, RESTORE_VALUE):
17037         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
17038         (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
17039         (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
17040         * alloc.c (Fmake_marker, free_marker, gc_sweep):
17041         * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
17042         * editfns.c (save_excursion_restore, transpose_markers):
17043         * window.c (delete_window):
17044         * xdisp.c (message_dolog): Update for new types.
17046 2003-06-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17048         * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
17049         (realize_default_face): Use default_face_done_p for the force_p
17050         argument to set_lface_from_font_name.  Set default_face_done_p to one.
17052         * frame.c (make_frame): Initialize default_face_done_p.
17054         * frame.h (struct frame): Add default_face_done_p.
17056         * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
17057         will be defined.
17059 2003-06-25  Stefan Monnier  <monnier@cs.yale.edu>
17061         * alloc.c (make_interval, Fmake_symbol, allocate_misc):
17062         Initialize the new field `gcmarkbit'.
17063         (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
17064         (mark_interval_tree): Don't mark the tree separately from the nodes.
17065         (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
17066         (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
17067         (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
17069         * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
17070         (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
17071         (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
17072         (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
17073         (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
17075 2003-06-24  Dave Love  <fx@gnu.org>
17077         * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
17079         * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux.  Merge changes
17080         from gnulib.
17082 2003-06-21  Richard M. Stallman  <rms@gnu.org>
17084         * fileio.c (Fwrite_region): Alternate messages
17085         for append and partial write.
17087         * keyboard.c (read_key_sequence): When converting upcase fn key to
17088         downcase, update fkey and keytran so `backspace' gets translated.
17090         * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
17092         * process.c (wait_reading_process_input): Don't signal SIGIO
17093         in batch mode.
17095 2003-06-17  Kenichi Handa  <handa@m17n.org>
17097         * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
17098         composite.h.
17100         * xselect.c: Don't include charset.h, coding.h, composite.h.
17101         (Qforeign_selection): New variable.
17102         (syms_of_xselect): Intern and static it.
17103         (selection_data_to_lisp_data): Return a unibyte string made from
17104         data with `foreign-selection' text property.
17106 2003-06-15  Stefan Monnier  <monnier@cs.yale.edu>
17108         * termhooks.h (EVENT_INIT): New macro.
17110         * keyboard.c (mark_kboards): Move from alloc.c.  Mark kbd_buffer.
17112         * alloc.c (mark_kboards): Move to keyboard.c.
17114         * keyboard.c (record_asynch_buffer_change, read_avail_input):
17115         * xterm.c (x_dispatch_event):
17116         * xmenu.c (find_and_call_menu_selection):
17117         * xdisp.c (handle_tool_bar_click):
17118         * w32menu.c (menubar_selection_callback):
17119         * sysdep.c (kbd_input_ast, read_input_waiting):
17120         * msdos.c (dos_rawgetc):
17121         * macterm.c (mac_check_for_quit_char):
17122         * macmenu.c (menubar_selection_callback):
17123         * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
17124         data to kbd_buffer_store_event.
17126 2003-06-15  Kim F. Storm  <storm@cua.dk>
17128         * xdisp.c (x_fix_overlapping_area): Always use area relative X
17129         to fix redisplay problem with tall characters (such as \e,AC\e(B).
17131 2003-06-13  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
17133         * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
17135 2003-06-12  Kenichi Handa  <handa@m17n.org>
17137         * fileio.c (Fwrite_region): Save and restore restriction.
17139 2003-06-12  Dave Love  <fx@gnu.org>
17141         * alloca.c (alloca): Declare arg as size_t.
17143         * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
17144         Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
17146 2003-06-11  Dave Love  <fx@gnu.org>
17148         * search.c (shrink_regexp_cache): Use xrealloc.
17149         (syms_of_search): Use xmalloc.
17151 2003-06-10  Kim F. Storm  <storm@cua.dk>
17153         * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
17154         Adjust phys_cursor.x to be relative to window box, rather than
17155         text area before checking -- to ensure cursor is redrawn when
17156         exposing window.
17157         Note: This also fixes a similar (older) bug if display margins
17158         are present.
17160 2003-06-06  Kenichi Handa  <handa@m17n.org>
17162         * coding.c (encoding_buffer_size): If coding->type is
17163         coding_type_ccl, double magnification on CRLF encoding.
17165 2003-06-06  Jason Rumney  <jasonr@gnu.org>
17167         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
17168         (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
17170         * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
17171         Mac too.
17173 2003-06-05  Dave Love  <fx@gnu.org>
17175         * strftime.c: Merge changes from gnulib.
17177         * mktime.c (__mktime_internal): Merge changes from gnulib
17178         involving year 69 and dst2.
17180         Changes to merge with gnulib version and be consistent with the
17181         autoconf test:
17183         * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
17184         Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
17185         [HAVE_LOCALE_H]: Include locale.h.
17186         (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
17188 2003-06-05  Kim F. Storm  <storm@cua.dk>
17190         * window.c (coordinates_in_window): Convert X and Y to window
17191         relative coordinates inside mode-line and header-line parts.
17192         Convert X and Y to margin area relative coordinates inside left
17193         and right display margin parts.
17195 2003-06-05  Jason Rumney  <jasonr@gnu.org>
17197         * w32fns.c (add_system_logical_colors_to_map): New function.
17198         (Fx_open_connection): Use it.
17200 2003-06-04  Stefan Monnier  <monnier@cs.yale.edu>
17202         * process.c (allocate_pty): Revert part of the previous patch.
17203         (Faccept_process_output): Simplify.
17205 2003-06-04  Jason Rumney  <jasonr@gnu.org>
17207         * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
17209         * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
17210         (lispy_mouse_wheel_names): Remove.
17211         (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
17212         Always define drag_and_drop_syms.
17214         * macterm.c (XTread_socket): Map mouse wheel events to Emacs
17215         WHEEL_EVENT events.
17217 2003-06-03  Stefan Monnier  <monnier@cs.yale.edu>
17219         * xdisp.c (update_tool_bar): Add missing UNGCPRO.
17221         * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
17223 2003-06-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17225         * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
17226         menu item label.
17228 2003-06-03  Richard M. Stallman  <rms@gnu.org>
17230         * window.c (Fwindow_edges): Doc fix.
17231         (Fwindow_pixel_edges, Fwindow_inside_edges)
17232         (Fwindow_inside_pixel_edges): New functions.
17233         (syms_of_window): defsubr them.
17235         * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
17236         (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
17238 2003-06-02  Stefan Monnier  <monnier@cs.yale.edu>
17240         * dispnew.c (Fsit_for): Don't lie about the number of args.
17242 2003-06-02  Dave Love  <fx@gnu.org>
17244         * callproc.c: Use HAVE_FCNTL_H, not USG5.
17245         (syms_of_callproc) <process-environment>: Doc fix.
17247         * doc.c: Use HAVE_FCNTL_H, not USG5.
17249         * xfaces.c (font_rescale_ratio): Fix for K&R.
17251         * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
17253         * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
17255         * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
17257         * gtkutil.c: Include keyboard.h, charset.h, coding.h.
17258         (xg_create_frame_widgets): Use ENCODE_UTF_8.
17260         * xterm.c (Qutf_8): Move to coding.c
17262         * xmenu.c (ENCODE_MENU_STRING): New.
17263         (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
17264         Use it.
17266         * coding.h (ENCODE_UTF_8): New.
17267         (Qutf_8): Declare.
17269         * coding.c (Qutf_8): New.
17270         (syms_of_coding): Intern it.
17272         * fns.c: Doc fixes.
17274 2003-06-02  Kenichi Handa  <handa@m17n.org>
17276         * buffer.c (Fset_buffer_multibyte): Fix previous change.
17278 2003-06-01  Stefan Monnier  <monnier@cs.yale.edu>
17280         * lread.c (openp): Make sure STR is a string.
17282 2003-06-01  David Ponce  <david@dponce.com>
17284         * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
17285         Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
17287         * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
17288         (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
17289         (discard_mouse_events): Discard WHEEL_EVENT events too.
17290         (lispy_wheel_names, wheel_syms): New.
17291         (syms_of_keyboard): Init and staticpro `wheel_syms'.  Init and
17292         staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
17293         (make_lispy_event): Add WHEEL_EVENT handler.
17295         * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
17296         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
17297         WHEEL_EVENT events.
17299 2003-05-31  John Paul Wallington  <jpw@gnu.org>
17301         * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
17302         timer are in lisp/emacs-lisp.
17304 2003-05-31  Kenichi Handa  <handa@m17n.org>
17306         * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
17307         region when a buffer is changed to unibyte.
17309         * charset.h (VALID_LEADING_CODE_P): New macro.
17310         (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
17312         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
17313         is nonzero, accept multibyte form of eight-bit-control chars.
17314         (decode_composition_emacs_mule): Likewise.
17315         (decode_coding_emacs_mule): Likewise.
17316         (encode_coding_emacs_mule): If coding->flags is nonzero, produce
17317         multibyte form of eight-bit-control chars.
17319         * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
17320         (Finsert_file_contents): If coding-system-for-read is bound to
17321         Qauto_save_coding, use the coding system emacs-mule with special
17322         setting for recovering a file.
17323         (choose_write_coding_system): On auto saving, use the coding
17324         system emacs-mule with special setting for auto saving.
17325         (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
17327 2003-05-30  Kenichi Handa  <handa@m17n.org>
17329         * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
17330         properly before calling ccl_driver.
17332         * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
17334         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
17335         (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
17336         (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
17338 2003-05-29  Glenn Morris  <gmorris@ast.cam.ac.uk>
17340         * xfaces.c (realize_default_face): Do not abort if lface is
17341         non-existent - reverts change from 2003-05-19.
17343 2003-05-29  Kenichi Handa  <handa@m17n.org>
17345         * coding.c (decode_coding_iso2022): Pay attention to the byte
17346         sequence of CTEXT extended segment, and retain those bytes as is.
17348 2003-05-28  Kenichi Handa  <handa@m17n.org>
17350         * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
17351         of CODING_REPLACEMENT_CHARACTER.
17352         (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
17353         CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
17354         check this flag on encoding.
17355         (encode_coding_sjis_big5):
17356         Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
17357         (Fset_terminal_coding_system_internal):
17358         Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
17359         instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
17361         * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
17362         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
17363         (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
17365 2003-05-28  Richard M. Stallman  <rms@gnu.org>
17367         * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
17369         * eval.c (unbind_to): Move init of this_binding to separate statement.
17371 2003-05-28  Kim F. Storm  <storm@cua.dk>
17373         * xdisp.c (expose_window): Fix error in calculation of
17374         window relative coordinates of area to redisplay.
17376 2003-05-27  Jason Rumney  <jasonr@gnu.org>
17378         * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
17380 2003-05-27  David Ponce  <david@dponce.com>
17382         Handle W32 mouse wheel events as mouse click events, like in X.
17384         * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
17385         MOUSE_WHEEL_EVENT anymore.
17387         * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
17388         Scrolling down/up the mouse wheel is respectively mapped to mouse
17389         button 4 and 5.
17390         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
17391         MOUSE_CLICK_EVENT events.  Forward w32 MSH_MOUSEWHEEL events as
17392         WM_MOUSEWHEEL events.
17394 2003-05-27  Andreas Schwab  <schwab@suse.de>
17396         * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
17398         * xdisp.c (try_window_id): Avoid aborting if PT is inside a
17399         partially visible line.
17401         * alloc.c (Fgarbage_collect): Fix last change.
17403 2003-05-26  John Paul Wallington  <jpw@gnu.org>
17405         * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
17407 2003-05-25  Stefan Monnier  <monnier@cs.yale.edu>
17409         * window.c (Fset_window_buffer): Add type of `keep_margins'.
17410         (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
17412         * window.h (window_box_text_cols): Declare.
17414         * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
17415         (x_draw_vertical_border): Remove unused var `f'.
17417         * xfaces.c (build_scalable_font_name): Remove `unused var
17418         pixel_size' warning.
17420         * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
17422         * unexelf.c (unexec): Remove `unused var n' warning.
17424         * strftime.c (my_strftime_localtime_r): Remove `defined but
17425         unused' warning.
17427         * process.c (allocate_pty): Remove `unused var stb' and
17428         `cp might be used uninitialized' warnings.
17430         * dispnew.c (mode_line_string): Remove unused var `f'.
17432         * coding.c (find_safe_codings): Remove unused var `i'.
17434         * bytecode.c (Fbyte_code): Remove `unused val' warning.
17436         * buffer.c (Fkill_buffer): Remove unused var `list'.
17438         * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
17440 2003-05-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
17442         * frame.c (make_frame): Condition want_fullscreen with
17443         HAVE_WINDOW_SYSTEM.
17445 2003-05-25  Juanma Barranquero  <lektu@terra.es>
17447         * window.c (Fset_window_scroll_bars): Fix typo in argument name.
17448         (Fwindow_scroll_bars): Fix typo in docstring.
17450 2003-05-24  Kim F. Storm  <storm@cua.dk>
17452         The following changes serve several purposes:
17454         1) Swap the position of fringes and display margins in windows, i.e.
17455         the fringes are now displayed between the margins and the text area
17456         (by default).
17458         2) Allow fringe and scroll bar parameters to be set per-buffer and
17459         per-window (like display margins).  Such settings are now stored
17460         in window configurations, preserved when frames are resized, and
17461         copied when windows are split vertically or horizontally.
17462         Several bugs related to display margins have been fixed.
17464         3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
17466         4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
17467         rather than FRAME_WIDTH (FRAME_FONT (f)).
17469         5) Introduce a consistent naming of variables, members and macros
17470         depending on whether their value is measured in pixels or in
17471         canonical columns/lines.  Pixel dimensions are named *_width and
17472         *_height, while canonical columns/lines are named *_cols and
17473         *_lines.  Pixel positions are named *_x and *_y, while column/line
17474         positions are named *_col and *_line.
17476         6) Consolidate more of the X, W32, and MAC gui code by moving
17477         common data into struct frame, and generalize it for the non-gui
17478         case by using suitable defaults.
17480         7) Cleanup and consolidate the macros controlling frame and window
17481         layout into frame.h and window.h, and generalize the use of the
17482         various window_box_* functions (enhanced to handle the new fringe
17483         position and the per-window fringe and scroll bar settings).
17485         * frame.h (struct frame): Rename members height to text_lines,
17486         width to text_cols, window_height to total_lines, window_width to
17487         total_cols, new_height to new_text_lines, new_width to
17488         new_text_cols.  All uses changed.
17489         (struct frame): New members which consolidate common members of
17490         x_output, w32_output, and mac_output structures: left_pos,
17491         top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
17492         win_gravity, size_hint_flags, border_width, internal_border_width,
17493         line_height, fringe_cols, left_fringe_width, right_fringe_width,
17494         want_fullscreen.  All uses changed.
17495         (struct frame): New member column_width contaning the canonical
17496         column width, analogue to line_height.  All uses changed.
17497         (struct frame): Rename members scroll_bar_pixel_width to
17498         config_scroll_bar_width, and scroll_bar_cols to
17499         config_scroll_bar_cols.  All uses changed.
17500         (struct frame): New member scroll_bar_actual_width which
17501         consolidates and renames the vertical_scroll_bar_extra member of
17502         x_output, w32_output, and mac_output structures.  All uses changed.
17503         (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
17504         from x/w32/macterm.h files.  All uses changed.  Also change code
17505         which referred to f->output_data...->pixel_height.
17506         (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
17507         from x/w32/macterm.h files.  All uses changed.  Also change code
17508         which referred to f->output_data...->pixel_width.
17509         (FRAME_LINES): Rename from FRAME_HEIGHT.  All uses changed.
17510         Also change code which referred to f->height.
17511         (FRAME_COLS): Rename from FRAME_WIDTH.  All uses changed.
17512         Also change code which referred to f->width.
17513         (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
17514         to update new_text_lines and new_text_cols members directly.
17515         (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
17516         FRAME_SCROLL_BAR_PIXEL_WIDTH.  All uses changed.
17517         (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
17518         FRAME_SCROLL_BAR_COLS.  All uses changed.
17519         (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
17520         Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
17521         FRAME_RIGHT_SCROLL_BAR_WIDTH, resp.  All uses changed.
17522         (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
17523         (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
17524         (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
17525         (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
17526         (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
17527         (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
17528         (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
17529         (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
17530         Unconditionally return line_height member (it now has proper value
17531         also for non-window frames).
17532         (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT.  Unconditionally
17533         return new column_width member (rather than the default font width).
17534         (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
17535         (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
17536         from x/w32/macterm.h files.  Unconditionally return corresponding
17537         member of frame structure (they now have proper values also for
17538         non-window frames).
17539         (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
17540         Calculate return value from left and right widths.
17541         (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
17542         internal_border_width member (has proper value for non-window frame).
17543         (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
17544         (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
17545         (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
17546         (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
17547         (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
17548         consolidated from xterm.h, macterm.h, and w32term.h.
17549         (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
17550         consolidated from xterm.h, macterm.h, and w32term.h.
17551         (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
17552         CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
17553         (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
17554         CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
17555         (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
17556         consolidated from x/mac/w32term.h.
17557         (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
17558         consolidated from x/mac/w32term.h.
17559         (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
17560         PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
17561         (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
17562         PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
17564         * window.h (struct window): Rename members left to left_col,
17565         top to top_line, height to total_lines, width to total_cols,
17566         left_margin_width to left_margin_cols, right_margin_width to
17567         right_margin_cols, orig_height to orig_total_lines, orig_top to
17568         orig_top_line.  All uses changed.
17569         (struct window): New members left_fringe_width, right_fringe_width,
17570         fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
17571         (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
17572         New macros primarily used to simplify other macros.
17573         (WINDOW_TOTAL_COLS): New macro.  Change relevant code that
17574         referred to XINT (w->width).
17575         (WINDOW_TOTAL_LINES): New macro.  Change relevant code that
17576         referred to XINT (w->height).
17577         (WINDOW_TOTAL_WIDTH): New macro.  Change relevant code that
17578         referred to XINT (w->width) * canon_x_unit.
17579         (WINDOW_TOTAL_HEIGHT): New macro.  Change relevant code that
17580         referred to XINT (w->height) * canon_y_unit.
17581         (WINDOW_LEFT_EDGE_COL): New macro.  Change relevant code that
17582         referred to XINT (w->left).
17583         (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE.  Change
17584         all uses and code that referred to XINT (w->left) + XINT (w->width).
17585         (WINDOW_TOP_EDGE_LINE): New macro.  Change relevant code that
17586         referred to XINT (w->top).
17587         (WINDOW_BOTTOM_EDGE_LINE): New macro.  Change relevant code that
17588         referred to XINT (w->top) + XINT (w->height).
17589         (WINDOW_LEFT_EDGE_X): New macro.  Change relevant code that
17590         referred to XINT (w->left) * canon_x_unit.
17591         (WINDOW_RIGHT_EDGE_X): New macro.  Change relevant code that
17592         referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
17593         (WINDOW_TOP_EDGE_Y): New macro.  Change relevant code that
17594         referred to XINT (w->top) * canon_y_unit.
17595         (WINDOW_BOTTOM_EDGE_Y): New macro.  Change relevant code that
17596         referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
17597         (WINDOW_LEFTMOST_P): New macro.
17598         (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
17599         All uses changed.
17600         (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
17601         All uses changed.
17602         (WINDOW_BOX_LEFT_EDGE_X): Rename from
17603         WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
17604         Do not exclude left fringe width.
17605         (WINDOW_BOX_RIGHT_EDGE_X): Rename from
17606         WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
17607         Do not exclude fringe widths.
17608         (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
17609         (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
17610         Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
17611         FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
17612         FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
17613         (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
17614         (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
17615         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
17616         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
17617         (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
17618         New macros.  Change code which referenced corresponding
17619         FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
17620         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
17621         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
17622         FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
17623         allow per-window scroll-bar settings.
17624         (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
17625         (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code that
17626         referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
17627         (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code
17628         that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
17629         FRAME_SCROLL_BAR_WIDTH.
17630         (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
17631         (WINDOW_SCROLL_BAR_AREA_X): New macros.
17632         (WINDOW_HEADER_LINE_HEIGHT): Rename from
17633         WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
17634         (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
17635         WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
17636         (WINDOW_BOX_TEXT_HEIGHT): Rename from
17637         WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
17638         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
17639         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
17640         (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
17641         (WINDOW_LEFT_MARGIN_WIDTH): Rename from
17642         WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
17643         (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
17644         WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
17645         (window_from_coordinates): Update prototype.
17646         (Fset_window_buffer): Update EXFUN.
17647         (set_window_buffer): Update prototype.
17649         * dispextern.h (struct glyph_matrix): Rename members window_left_x
17650         to window_left_col, window_top_y to window_top_line.  All uses
17651         changed.
17652         (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
17653         use FRAME_INTERNAL_BORDER_WIDTH macro instead as
17654         internal_border_width is now set to 0 for non-window frames.
17655         (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
17656         (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
17657         (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
17658         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
17659         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
17660         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
17661         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
17662         (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
17663         (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
17664         Move to window.h and renamed [see window.h changes].
17665         (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
17666         (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
17667         (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
17668         Use WINDOW_TOTAL_LINES.
17669         (frame_update_line_height): Remove prototype.
17671         * buffer.h (struct buffer): Rename members measured in columns:
17672         left_margin_width to left_margin_cols, right_margin_width to
17673         right_margin_cols.  All uses changed.
17674         New members left_fringe_width, right_fringe_width,
17675         fringes_outside_margins for per-buffer fringe settings.
17676         New members scroll_bar_width and vertical_scroll_bar_type for
17677         per-buffer scroll bar settings.
17679         * buffer.c (init_buffer_once): Set buffer_defaults and
17680         buffer_local_flags for new buffer-local variables
17681         left_fringe_width, right_fringe_width, fringes_outside_margins,
17682         scroll_bar_width, and vertical_scroll_bar_type.
17683         (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
17684         default-* variables for them.
17686         * dispnew.c: Make (many) trivial substitutions for renamed and
17687         new macros in dispextern.h, frame.h and window.h.
17688         (mode_line_string): No need to adjust width for mode lines, as it
17689         is already adjusted by the caller.
17690         (marginal_area_string): Handle fringes inside/outside margins.
17692         * frame.c: Make (many) trivial substitutions for renamed and
17693         new macros in dispextern.h, frame.h and window.h.
17694         (make_frame): Initialize left_fringe_width, right_fringe_width,
17695         fringe_cols, scroll_bar_actual_width, border_width,
17696         internal_border_width, column_width, line_height, x_pixels_diff,
17697         y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
17698         members with values suitable for a non-window frames.
17700         * gtkutil.c: Make (many) trivial substitutions for renamed and
17701         new macros in dispextern.h, frame.h and window.h.
17703         * indent.c: Make (few) trivial substitutions for renamed and
17704         new macros in dispextern.h, frame.h and window.h.
17706         * keyboard.c: Make (many) trivial substitutions for renamed and
17707         new macros in dispextern.h, frame.h and window.h.
17708         (make_lispy_event): Use window positions returned from
17709         window_from_coordinates when constructing the lisp event for
17710         MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
17711         (incorrect) values locally.
17712         (make_lispy_movement): Use window positions returned from
17713         window_from_coordinates when constructing the lisp event, rather
17714         than calculating (incorrect) values locally.
17716         * scroll.c: Make (some) trivial substitutions for renamed and
17717         new macros in dispextern.h, frame.h and window.h.
17719         * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
17720         scroll-bars.
17722         * sysdep.c: Make (few) trivial substitutions for renamed and
17723         new macros in dispextern.h, frame.h and window.h.
17725         * term.c: Make (some) trivial substitutions for renamed and
17726         new macros in dispextern.h, frame.h and window.h.
17728         * widget.c: Make (few) trivial substitutions for renamed and
17729         new macros in dispextern.h, frame.h and window.h.
17731         * window.c: Make (many) trivial substitutions for renamed and
17732         new macros in dispextern.h, frame.h and window.h.
17733         (make_window): Initialize new members
17734         left_margin_cols, right_margin_cols, left_fringe_width,
17735         right_fringe_width, fringes_outside_margins, scroll_bar_width,
17736         and vertical_scroll_bar_type.
17737         (coordinates_in_window): Adapt to new fringe/margin positions
17738         and per-window fringes and scroll-bars.
17739         Fix bug related to incorrectly adjusting coordinates by
17740         frame's internal_border_width (the effect normally negible since
17741         the internal_border_width is typically 0 or 1 pixel, but very
17742         noticeable for an internal_border_width of e.g. 25 pixels).
17743         Upon successful return (other than ON_NOTHING), the coordinates
17744         are now always properly converted to window relative for the
17745         given display element.
17746         (window_from_coordinates): Add new parameters wx and wy to
17747         return the window relative x and y position in the returned
17748         window and part.  A null arg means, don't return the position.
17749         All callers changed.
17750         (adjust_window_margins): New function which may reduce the width
17751         of the display margins if a window's text area is too small after
17752         resizing or splitting windows.
17753         (size_window): Fix bug that did not account for display margin
17754         widths when checking the minimum width of a window; use
17755         adjust_window_margins.
17756         (set_window_buffer): Call Fset_window_fringes and
17757         Fset_window_scroll_bars to setup per-window elements.
17758         Add new arg KEEP_MARGINS_P.  Non-nil means to keep window's
17759         existing display margin, fringe widths, and scroll bar settings
17760         (e.g. after splitting a window or resizing the frame).
17761         All callers changed.
17762         (Fset_window_buffer): New arg KEEP_MARGINS.  All callers changed.
17763         (Fsplit_window): Duplicate original window's display margin,
17764         fringe, and scroll-bar settings; then call Fset_window_buffer with
17765         KEEP_MARGINS non-nil.  This fixes a bug which caused a split
17766         window to only preserve the display margins in one of the windows.
17767         When splitting horizontally, call adjust_window_margins on both
17768         windows to ensure that the text area of the new windows is non too
17769         narrow.  This fixes a bug which could cause Emacs to trap if the
17770         width of the split window was less than the width of the display
17771         margins.
17772         (window_box_text_cols): Rename from window_internal_width.
17773         All uses changed.  Adapt to per-window fringes and scroll bars.
17774         Fix bug that caused vertical separator to be subtracted also on
17775         window frames.  Fix another bug that did not reduce the returned
17776         value by the columns used for display margins.
17777         (window_scroll_line_based): Fix bug related to scrolling too much
17778         when display margins are present (implicitly fixed by the fix to
17779         window_box_text_cols).
17780         (scroll_left, scroll_right): Fix bug related to scrolling too far
17781         by default when display margins are present (implicitly fixed by
17782         the fix to window_box_text_cols).
17783         (struct saved_window): Rename members left to left_col, top to
17784         top_line, width to total_cols, height to total_lines, orig_top to
17785         orig_top_line, orig_height to orig_total_lines.  All uses changed.
17786         New members left_margin_cols, right_margin_cols,
17787         left_fringe_width, right_fringe_width, fringes_outside_margins,
17788         scroll_bar_width, and vertical_scroll_bar_type for saving
17789         per-window display elements.
17790         (Fset_window_configuration): Restore display margins, fringes,
17791         and scroll bar settings.  This fixes a bug which caused display
17792         margins to be discarded when saving and restoring a window
17793         configuration.
17794         (save_window_save): Save display margins, fringes, and scroll bar
17795         settings.  This fixes a bug which caused display margins to be
17796         discarded when saving and restoring a window configuration.
17797         (Fset_window_margins): Do nothing if display margins are not
17798         really changed.  Otherwise, call adjust_window_margins to ensure
17799         the text area doesn't get too narrow.  This fixes a bug which
17800         could cause Emacs to trap if setting display margins wider than
17801         the width of the window.
17802         (Fset_window_fringes): New defun to allow user to specifically set
17803         this window's fringe widths and position vs. display margins.
17804         (Fwindow_fringes): New defun to return window's actual fringe settings.
17805         (Fset_window_scroll_bars): New defun to allow user to specifically
17806         set this window's scroll bar width and position.
17807         (Fwindow_scroll_bars): New defun to return window's actual scroll
17808         bar settings.
17809         (compare_window_configurations): Also compare display margins,
17810         fringes, and scroll bar settings.
17811         (syms_of_window): Defsubr new defuns for fringe and scroll bars.
17813         * xdisp.c: Make (many) trivial substitutions for renamed and
17814         new macros in dispextern.h, frame.h and window.h.
17815         (window_box_width): Adapt to per-window fringes and scroll bars,
17816         and new fringe vs. display margin position.  Note that returned
17817         value is no longer guaranteed to be a whole multiple of the frame
17818         column width, since per-window fringes may now be any width.
17819         (window_box_left_offset): New function like window_box_left, but
17820         value is relative to left border of window (rather than frame).
17821         (window_box_right_offset): New function like window_box_right,
17822         but value is relative to left border of window.
17823         (window_box_left): Adapt to per-window fringes and scroll bars,
17824         and new fringe vs. display margin position.  Simplify by using
17825         WINDOW_LEFT_EDGE_X and window_box_left_offset.
17826         (window_box): Allow null args for unnecessary return values;
17827         change/simplify relevant callers.
17828         (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
17829         and new fringe vs. display margin position.
17830         Use window_box_left_offset and window_box_right_offset
17831         (get_glyph_string_clip_rect): Adapt to per-window fringes and
17832         scroll bars, and new fringe vs. display margin position.
17833         Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
17834         (draw_fringe_bitmap): Rework to handle per-window fringes and new
17835         fringe vs. display margin position.
17836         (hscroll_window_tree): Use window_box_width instead of window_box.
17837         (redisplay_window): Adapt to per-window scroll bars.
17838         (draw_glyphs): Rework to handle per-window fringes and scroll
17839         bars, and new fringe vs. display margin position.
17840         Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
17841         (x_clear_end_of_line): Adapt to per-window fringes and scroll
17842         bars, and new fringe vs. display margin position.  Fix bug which
17843         increased total width of full_width rows by width of scroll bars
17844         although window's total width already includes that.
17845         (x_fix_overlapping_area): Simplify using window_box_left_offset.
17846         (expose_area): Simplify using window_box_left_offset.
17847         (x_draw_vertical_border): Handle per-window scroll bar settings,
17848         mixing windows with left, right and no scroll bars.
17850         * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
17851         where it's used in x_list_fonts (for clarity).
17852         (frame_update_line_height): Remove unused function; functionality
17853         is now done directly when setting the default font in x_set_font.
17855         * xfns.c: Make (many) trivial substitutions for renamed and
17856         new macros in dispextern.h, frame.h and window.h.
17858         * xmenu.c: Make (some) trivial substitutions for renamed and
17859         new macros in dispextern.h, frame.h and window.h.
17861         * xterm.h (struct x_output): Move members left_pos, top_pos,
17862         border_width, pixel_height, pixel_width, line_height,
17863         internal_border_width, vertical_scroll_bar_extra,
17864         left_fringe_width, right_fringe_width, fringe_cols,
17865         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17866         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
17867         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17868         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17869         (PIXEL_WIDTH, PIXEL_HEIGHT)
17870         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
17871         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
17872         frame.h and renamed [see frame.h changes].
17873         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17874         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
17875         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
17876         and renamed [see frame.h changes].
17878         * xterm.c: Make (several) trivial substitutions for renamed and
17879         new macros in dispextern.h, frame.h and window.h.
17880         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
17881         (scroll_run): Adapt to new fringe position.
17882         (glyph_rect): Use window coordinates returned from
17883         window_from_coordinates rather than frame_to_window_pixel_xy.
17884         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17885         scroll-bars.
17886         (handle_one_xevent): Simplify a USE_GTK conditional.
17887         (x_clip_to_row): Remove superfluous whole_line_p arg and code
17888         (fringes are now inside margins, i.e. always in the clipping area).
17889         All callers changed.
17890         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17891         directly, then call compute_fringe_widths.  Don't call
17892         frame_update_line_height.
17894         * w32term.h (struct w32_output): Move members left_pos, top_pos,
17895         border_width, pixel_height, pixel_width, line_height,
17896         internal_border_width, vertical_scroll_bar_extra,
17897         left_fringe_width, right_fringe_width, fringe_cols,
17898         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17899         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
17900         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17901         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17902         (PIXEL_WIDTH, PIXEL_HEIGHT)
17903         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
17904         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
17905         frame.h and renamed [see frame.h changes].
17906         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17907         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
17908         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
17909         and renamed [see frame.h changes].
17911         * w32term.c: Make (several) trivial substitutions for renamed and
17912         new macros in dispextern.h, frame.h and window.h.
17913         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
17914         (glyph_rect): Use window coordinates returned from
17915         window_from_coordinates rather than frame_to_window_pixel_xy.
17916         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17917         scroll-bars.
17918         (w32_clip_to_row): Remove superfluous whole_line_p arg and code
17919         (fringes are now inside margins, i.e. always in the clipping area).
17920         All callers changed.
17921         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17922         directly, then call compute_fringe_widths.  Don't call
17923         frame_update_line_height.
17925         * w32console.c: Make (few) trivial substitutions for renamed and
17926         new macros in dispextern.h, frame.h and window.h.
17928         * w32fns.c: Make (many) trivial substitutions for renamed and
17929         new macros in dispextern.h, frame.h and window.h.
17931         * w32menu.c: Make (few) trivial substitutions for renamed and
17932         new macros in dispextern.h, frame.h and window.h.
17934         * macterm.h (struct mac_output): Move members left_pos, top_pos,
17935         border_width, pixel_height, pixel_width, line_height,
17936         internal_border_width, vertical_scroll_bar_extra,
17937         left_fringe_width, right_fringe_width, fringe_cols,
17938         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
17939         x_pixels_diff, y_pixels_diff to struct frame (frame.h).
17940         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
17941         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
17942         (PIXEL_WIDTH, PIXEL_HEIGHT)
17943         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
17944         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
17945         frame.h and renamed [see frame.h changes].
17946         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
17947         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
17948         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
17949         and renamed [see frame.h changes].
17951         * macterm.c: Make (several) trivial substitutions for renamed and
17952         new macros in dispextern.h, frame.h and window.h.
17953         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
17954         (glyph_rect): Use window coordinates returned from
17955         window_from_coordinates rather than frame_to_window_pixel_xy.
17956         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
17957         scroll-bars.
17958         (x_clip_to_row): Remove superfluous whole_line_p arg and code
17959         (fringes are now inside margins, i.e. always in the clipping area).
17960         All callers changed.
17961         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
17962         directly, then call compute_fringe_widths.  Don't call
17963         frame_update_line_height.
17965         * macfns.c: Make (several) trivial substitutions for renamed and
17966         new macros in dispextern.h, frame.h and window.h.
17967         (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
17969         * macmenu.c: Make (few) trivial substitutions for renamed and
17970         new macros in dispextern.h, frame.h and window.h.
17972         * msdos.h (struct x_output): Remove members left_pos, top_pos,
17973         and line_height, and use corresponding new members in struct
17974         frame.  All uses changed.
17975         (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
17976         superseeded by corresponding macros in frame.h.
17978         * msdos.c: Make (several) trivial substitutions for renamed and
17979         new macros in dispextern.h, frame.h and window.h.
17980         (IT_note_mouse_highlight): Use updated window coordinates returned
17981         by window_from_coordinates, rather than adjusting them locally.
17982         (internal_terminal_init): No need to initialize line_height here;
17983         it now defaults to 1.
17985 2003-05-24  Stefan Monnier  <monnier@cs.yale.edu>
17987         * keyboard.c (read_key_sequence): Adjust fkey and keytran when
17988         dropping `down' events.
17990 2003-05-24  Andreas Schwab  <schwab@suse.de>
17992         * coding.c (find_safe_codings): Fix last change.
17994 2003-05-24  Istvan Marko  <mi@imarko.dhs.org>  (tiny change)
17996         * xfns.c (x_window): Fix typo from 2003-05-21 change.
17998 2003-05-23  Stefan Monnier  <monnier@cs.yale.edu>
18000         * xdisp.c (display_mode_element): Increase max depth.
18001         Simplify the error handling code.  Use a different error string
18002         for the case where we hit the depth limit.
18004         * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
18006         * buffer.c (reset_buffer_local_variables): Remove redundant setting.
18008 2003-05-21  Stefan Monnier  <monnier@cs.yale.edu>
18010         * intervals.c (get_local_map): Don't get char-property of previous
18011         point any more: get_pos_property already does it and better.
18013 2003-05-21  Dave Love  <fx@gnu.org>
18015         [Merged from unicode branch.]
18017         * xfns.c (x_window, x_window): Use use_xim.
18019         * xterm.c (use_xim): Initialize.
18020         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
18021         (x_term_init): Maybe set use_xim.
18023         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
18025 2003-05-21  Jason Rumney  <jasonr@gnu.org>
18027         * unexw32.c (_start): Remove _fmode initialization.
18029         * emacs.c (main) [WINDOWSNT]: Move it here.
18031 2003-05-20  Dave Love  <fx@gnu.org>
18033         * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
18035 2003-05-19  Richard M. Stallman  <rms@gnu.org>
18037         * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
18038         as value for QCfont attribute.
18039         (realize_default_face): lface should already exist; crash if not.
18040         Specify 0 for FORCE_P when calling set_lface_from_font_name.
18042         * frame.c (Fignore_event): Doc fix.
18044 2003-05-19  Kenichi Handa  <handa@m17n.org>
18046         * coding.c (decode_coding_string): Handle post-read-conversion
18047         even if the coding doesn't require decoding.
18049 2003-05-18  Richard M. Stallman  <rms@gnu.org>
18051         * callproc.c (Fcall_process_region): Doc fix.
18053 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
18055         * lread.c (Fload): Print a message if package is obsolete.
18057         * window.c (Fselect_window): Add optional `norecord' arg.
18058         (select_window_1): Fold into Fselect_window.
18059         (select_window_norecord): New function.
18060         (temp_output_buffer_show): Use it.  Preserve current buffer.
18062         * window.h (Fselect_window): Update declaration.
18064         * window.c (delete_window, Fother_window, Fset_window_configuration):
18065         * minibuf.c (read_minibuf):
18066         * macterm.c (x_new_focus_frame):
18067         * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
18068         * callint.c (Fcall_interactively):
18069         * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
18071         * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
18073 2003-05-17  David Kastrup  <dak@gnu.org>
18075         * process.c (read_process_output): Back out change from 2003-03-09.
18077 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
18079         * editfns.c (get_pos_property): Don't assume that `object' = nil.
18081         * textprop.c (text_property_stickiness): New arg `buffer'.
18083         * intervals.h (text_property_stickiness): New arg `buffer'.
18084         (get_pos_property): Declare.
18086         * intervals.c (get_local_map): Use get_pos_property, to obey
18087         stickiness and empty overlays.
18088         (create_root_interval, graft_intervals_into_buffer): Use BEG.
18089         (merge_properties, intervals_equal, merge_properties_sticky):
18090         Use XCAR, XCDR.
18091         (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
18093 2003-05-17  Richard M. Stallman  <rms@gnu.org>
18095         * minibuf.c (read_minibuf): If buffer is empty, record the default
18096         in the history.
18097         (Fminibuffer_complete_word): When deleting the overlap, take account
18098         of its real position.
18100         * fns.c (map_char_table): Fix previous change.
18102         * syntax.c (find_defun_start):
18103         When open_paren_in_column_0_is_defun_start,
18104         return beginning of buffer.
18106         * lisp.h (map_char_table): Declare added arg.
18108         * fns.c (map_char_table): New arg TABLE gets the master table.
18109         All calls changed.
18110         Process default and inheritance, resorting to Faref if necessary.
18112         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
18113         (Faccessible_keymaps): Pass new arg to map_char_table.
18115         * fontset.c (Ffontset_info): Pass new arg to map_char_table.
18117         * casetab.c (set_case_table): Pass new arg to map_char_table.
18119         * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
18121         * lisp.h (specbinding_func): New typedef.
18122         (struct specbinding): Use specbinding_func, to put the `volatile'
18123         in the right place.
18125         * alloc.c (Fgarbage_collect): Cast pointers into specpdl
18126         to avoid GCC warning.
18128 2003-05-16  Ralph Schleicher  <rs@nunatak.allgaeu.org>
18130         * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
18132 2003-05-15  Stefan Monnier  <monnier@cs.yale.edu>
18134         * keyboard.c (apply_modifiers): Don't fill the other cache.
18136 2003-05-14  Stefan Monnier  <monnier@cs.yale.edu>
18138         * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
18140         * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
18141         (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
18142         (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
18143         (Fset_window_configuration, Fcurrent_window_configuration)
18144         (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
18145         (Fpos_visible_in_window_p, mark_window_cursors_off)
18146         (window_internal_height, window_internal_width, Frecenter)
18147         (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
18148         (replace_buffer_in_all_windows, init_window_once, init_window)
18149         (syms_of_window, keys_of_window): Move from lisp.h.
18150         * lisp.h: Move window.c declarations to window.h.
18152         * bytecode.c: Include window.h.
18153         * emacs.c: Include window.h.
18155         * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
18156         (keyremap): Add `parent' field.
18157         (keyremap_step): Use it.  Remove `parent' argument.
18158         (read_key_sequence): Setup and use the new `parent' field.
18160 2003-05-11  Stefan Monnier  <monnier@cs.yale.edu>
18162         * keyboard.c (adjust_point_for_property): Ensure termination.
18164 2003-05-10  Stefan Monnier  <monnier@cs.yale.edu>
18166         * keyboard.c (follow_key): Remove dead variable `did_meta'.
18167         (access_keymap_keyremap, keyremap_step): New funs, extracted from the
18168         duplicated handling of function-key-map and key-translation-map
18169         in read_key_sequence.
18170         (read_key_sequence): Use them.
18172         * keyboard.c (adjust_point_for_property): Try harder to move point
18173         to the non-sticky end of an invisible property.
18175         * xdisp.c (single_display_prop_intangible_p): Make `space' display
18176         property intangible as well.
18178 2003-05-10  Andreas Schwab  <schwab@suse.de>
18180         * xmenu.c (single_menu_item): Change last parameter to void* to
18181         avoid warning.
18183 2003-05-09  Richard M. Stallman  <rms@gnu.org>
18185         * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
18186         Bind Qinhibit_modification_hooks to t so there will be no GC.
18187         Rename local `tem' to `save_deactivate_mark'.
18189         * eval.c (specpdl_ptr): Declare volatile.
18190         (unbind_to): Copy the whole binding and decrement specpdl_ptr
18191         before doing the work of unbinding it.
18193         * lisp.h (struct specbinding): Declare elements volatile.
18194         (specpdl_ptr): Declare volatile.
18196         * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
18198         * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
18199         for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
18201 2003-05-08  Dave Love  <fx@gnu.org>
18203         * coding.c (Vlast_coding_system_used): Doc fix.
18205 2003-05-07  Jason Rumney  <jasonr@gnu.org>
18207         * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
18208         when system does not support them.
18210 2003-05-05  Stefan Monnier  <monnier@cs.yale.edu>
18212         * fileio.c (Qwrite_region_annotate_functions): New var.
18213         (build_annotations): Use it to process the global part of the hook.
18214         (syms_of_fileio): Init and staticpro it.
18216         * keyboard.c (safe_run_hooks_error): Display a message instead of
18217         silently ignoring the error.
18219 2003-05-03  Stefan Monnier  <monnier@cs.yale.edu>
18221         * keyboard.c (input_available_signal): Mark static.
18222         (menu_bar_items): Use map_keymap.
18223         (menu_bar_one_keymap): Remove.
18224         (menu_bar_item): Adjust arglist (for use in map_keymap).
18225         Properly hide a second binding when not both are keymaps.
18227         * xmenu.c (struct skp): New struct, to pass args through map_keymap.
18228         (single_keymap_panes): Use it and map_keymap.
18229         (single_menu_item): Use skp as well.
18231         * keymap.h (map_keymap_function_t): New type.
18232         (map_keymap): Declare.
18234         * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
18235         (map_keymap_call, Fmap_keymap): New functions.
18236         (syms_of_keymap): Defsubr map-keymap.
18238 2003-05-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18240         * gtkutil.c (create_dialog, make_widget_for_menu_item)
18241         (make_menu_item, create_menus, xg_update_menu_item): Don't call
18242         ..._with_mnemonic functions for menu items.
18244 2003-05-01  Kenichi Handa  <handa@m17n.org>
18246         * coding.c (coding_system_accept_latin_extra_p): Delete this
18247         function.
18248         (find_safe_codings): Pay attention to
18249         the property tranlsation-table-for-encode of each codings.
18250         (syms_of_coding): Give Qtranslation_table the extra slot number 2.
18252 2003-05-01  Stefan Monnier  <monnier@cs.yale.edu>
18254         * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
18256 2003-04-30  Stefan Monnier  <monnier@cs.yale.edu>
18258         * eval.c (unbind_to): Don't handle symbol = Qnil any more.
18260         * lisp.h (CHECK): Wrap args in parenthesis.
18261         (specbind): Fix doc: symbol = Qnil is not supported any more.
18263         * bytecode.c (Fbyte_code) <unwind-protect>:
18264         Use Fprogn rather than 0 and Qnil.
18266         * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
18267         `double', and `triple' modifiers as well.
18269 2003-04-30  Richard M. Stallman  <rms@gnu.org>
18271         * keyboard.c (echo_char): Don't clear out a dash that follows a space.
18273         * alloc.c (abort_on_gc): New variable.
18274         (Fgarbage_collect): Abort if abort_on_gc is set.
18276         * lisp.h (abort_on_gc): Add decl.
18278         * eval.c (Fsignal): Clear abort_on_gc.
18280         * editfns.c (Fformat): Set abort_on_gc during first scan of format.
18281         Reinit FORMAT_START and END before second scan.
18283         * xdisp.c (move_it_vertically_backward): Do the final big else
18284         even if nlines is 0.
18286         * xdisp.c (redisplay_internal): Finish the per-frame loop
18287         even if redisplay is suspended by input.
18289 2003-04-24  Andrew Choi  <akochoi@shaw.ca>
18291         * macterm.c (x_list_fonts): Return all fonts that match if
18292         maxnames = -1.
18294 2003-04-25  Kenichi Handa  <handa@m17n.org>
18296         * syntax.c (skip_chars): Fix previous change.
18298 2003-04-24  Kenichi Handa  <handa@m17n.org>
18300         * syntax.c (skip_chars): Make the code faster by using the common
18301         technique of *p, *stop, and *endp.
18303 2003-04-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18305         * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
18306         tool_bar_items so GTK tool bar expose callback does not access items
18307         being updated.
18309 2003-04-19  Stefan Monnier  <monnier@cs.yale.edu>
18311         * eval.c (Fapply): Undo last change and add a comment about why.
18313 2003-04-18  Miles Bader  <miles@gnu.org>
18315         * data.c (Faset): Calculate nbytes earlier, to satisfy the now
18316         pickier PARSE_MULTIBYTE_SEQ.
18318 2003-04-17  Stefan Monnier  <monnier@cs.yale.edu>
18320         * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
18321         Use XCDR, XCAR, CONSP.
18322         (Fdefmacro): Fix docstring.  Use XCAR, XCDR.
18323         (Fapply): Remove unnecessary GCPRO.
18325         * doc.c (Fsubstitute_command_keys): Remove spurious casts.
18327         * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
18329         * buffer.h: Don't hardcode BEG==1.
18331         * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
18333 2003-04-16  Richard M. Stallman  <rms@gnu.org>
18335         * xdisp.c (try_window, try_window_reusing_current_matrix):
18336         When at end of window, set window_end_pos to Z-ZV.
18338         * buffer.c (Foverlay_recenter): Doc fix.
18340 2003-04-14  Stefan Monnier  <monnier@cs.yale.edu>
18342         * dispnew.c (Fsit_For): Support XEmacs-style arg list.
18344 2003-04-14  Andrew Choi  <akochoi@shaw.ca>
18346         * macterm.c (mac_check_for_quit_char): Don't check more often than
18347         once a second.
18349 2003-04-11  Stefan Monnier  <monnier@cs.yale.edu>
18351         * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
18352         specially, so that they can't hide an implicit switch-frame event.
18353         (make_lispy_event): Handle SELECT_WINDOW_EVENT.
18354         (head_table): Use switch-frame as event_kind for select-window.
18355         (keys_of_keyboard): Don't bind [select-window] in special-event-map.
18357         * editfns.c (Fformat): Lisp_Object/int mixup.
18358         (format2): Remove unused var numargs.
18360 2003-04-11  Kenichi Handa  <handa@m17n.org>
18362         * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
18363         (Qafter_insert_file_set_coding): New variable.
18364         (syms_of_fileio): Initialize and staticpro it.  Delete declaration
18365         for after-insert-file-adjust-coding-function.
18366         (Finsert_file_contents): Call Qafter_insert_file_set_coding
18367         instead of Vafter_insert_file_adjust_coding_function.
18369 2003-04-11  Kenichi Handa  <handa@m17n.org>
18371         * lisp.h (temp_echo_area_glyphs): Adjust prototype.
18373         * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
18374         string.  Callers changed.
18376 2003-04-10  Kenichi Handa  <handa@m17n.org>
18378         * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
18379         (syms_of_fileio): Declare it as a lisp variable.
18380         (Finsert_file_contents):
18381         Call Vafter_insert_file_adjust_coding_function before calling
18382         decode-format.
18384 2003-04-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18386         * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
18387         get GtkAdjustment as widget now is a GtkRange.
18389         * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
18390         GtkRange to avoid memory leak.
18392 2003-04-09  Kenichi Handa  <handa@m17n.org>
18394         * xfaces.c (Vface_font_rescale_alist): New variable.
18395         (struct font_name): New member rescale_ratio.
18396         (font_rescale_ratio): New function.
18397         (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
18398         (better_font_p): On comparing point sized, pay attention to
18399         recale_ratio member of fonts.
18400         (build_scalable_font_name): Reflect font->rescale_ratio in the
18401         font name.
18402         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
18404         * lread.c (read1): Before calling index, check if the 2nd
18405         arguemnt is in ASCII range.
18407 2003-04-08  Richard M. Stallman  <rms@gnu.org>
18409         * fileio.c (Ffile_symlink_p): Doc fix.
18411         * editfns.c (Fformat): Translate positions of text properties
18412         in the format string to apply them to the result.
18414         * fileio.c (Finsert_file_contents): Doc fix.
18415         (syms_of_fileio) <after-insert-file-functions>: Doc fix.
18417 2003-04-08  Ivan Zakharyaschev  <imz@altlinux.org>  (tiny change)
18419         * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
18421 2003-04-08  Steven Tamm  <steventamm@mac.com>
18423         * mac.c (init_mac_osx_environment): Switch libexec and bin so
18424         that self-contained application finds libexec files.
18426 2003-04-08  Kenichi Handa  <handa@m17n.org>
18428         * coding.c (code_convert_region_unwind):
18429         Set Vlast_coding_system_used to the argument.
18430         (code_convert_region): If post-read-conversion function changed
18431         the value of last-coding-sytem, keep the new value in
18432         coding->symbol so that it won't be overridden.
18433         (run_pre_post_conversion_on_str): Likewise.
18434         (coding_system_accept_latin_extra_p): New function.
18435         (find_safe_codings): Pay attention to characters registered in
18436         latin-extra-code-table.
18438 2003-04-07  Thien-Thi Nguyen  <ttn@gnu.org>
18440         * Makefile.in (md5.o): Add missing dependency info.
18442 2003-04-06  Richard M. Stallman  <rms@gnu.org>
18444         * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
18446         * marker.c (verify_bytepos): New function.
18448         * intervals.c (set_intervals_multibyte_1): When becoming
18449         multibyte, adjust right and left child sizes to a whole set of
18450         characters.  If an interval gets zero total-length, delete it.
18451         If an interval consists of just its children, delete one of them.
18453         * intervals.h (CHECK_TOTAL_LENGTH): New macro.
18454         * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
18456         * alloc.c (VALIDATE_LISP_STORAGE): Macro deleted.
18457         All calls deleted.
18458         (lisp_malloc): Do the work here directly.
18460 2003-04-06  Gareth Jones  <emacs@referential.org.uk>  (tiny change)
18462         * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
18463         char tables.
18465 2003-04-04  Kenichi Handa  <handa@m17n.org>
18467         * editfns.c (Fformat): Use a copy of FORMAT string so that we can
18468         destructively change "%S" to "%s".
18470 2003-04-03  Miles Bader  <miles@gnu.org>
18472         * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
18473         always set.
18475 2003-04-01  Dave Love  <fx@gnu.org>
18477         * xfns.c (xpm_lookup_color): Grok "opaque".
18479 2003-03-31  Andrew Choi  <akochoi@shaw.ca>
18481         * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
18482         parent window ID.
18484         * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
18486         * macterm.h (struct mac_output): Define x_pixels_diff and
18487         y_pixels_diff.
18489 2003-03-31  Juanma Barranquero  <lektu@terra.es>
18491         * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
18492         blockinput.h and files included from it.
18494 2003-03-31  Kim F. Storm  <storm@cua.dk>
18496         The following changes consolidates the common code related to
18497         frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
18498         files into frame.c.
18500         * frame.c: Include blockinput.h.
18501         (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
18502         (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
18503         (Qauto_raise, Qauto_lower, ...): Define all frame parameter
18504         related vars here.
18505         (struct frame_parm_table, frame_parms): New table for describing
18506         frame parameters and their associated Q-variable.
18507         The order of the parameters corresponds to the sequence of the
18508         frame_parm_handlers table in redisplay_interface.
18509         (x_fullscreen_move, x_set_frame_parameters)
18510         (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
18511         (x_set_screen_gamma, x_set_font, x_set_fringe_width)
18512         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18513         (x_set_autoraise, x_set_autolower, x_set_unsplittable)
18514         (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
18515         Generic functions for processing of frame parameters.
18516         (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
18517         (display_x_get_resource, x_get_resource_string): Functions for
18518         generic access to X resources.
18519         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
18520         (x_default_parameter, Fx_parse_geometry): Functions for generic
18521         access to frame parameters.
18522         (x_figure_window_size): Generic calculation of frame size.
18523         Fixed to add space needed for tool bar.  Also setup size_hint_flags.
18524         (syms_of_frame): Intern and staticpro frame parameter variables.
18525         Defvar_lisp Vx_resource_class and Vx_resource_name here.
18526         Defsubr Sx_get_resource and Sx_parse_geometry.
18528         * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
18529         parameter related vars defined in frame.c.
18530         (EMACS_CLASS): Define here.
18531         (enum FULLSCREEN_*): Define here.
18532         (x_set_scroll_bar_default_width, x_wm_set_icon_position)
18533         (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
18534         (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
18535         (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
18536         (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
18537         (x_set_visibility, x_set_autoraise, x_set_autolower)
18538         (x_set_unsplittable, x_set_vertical_scroll_bars)
18539         (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
18540         (x_figure_window_size): Add prototypes.
18542         * dispextern.h (frame_parm_handler): New typedef.
18543         (struct redisplay_interface): New member frame_parm_handlers.
18544         (enum resource_types): Move declaration here.
18545         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
18546         (x_default_parameter): Add prototypes.
18548         * window.c: Remove extern decl for frame parameter vars.
18549         (change_window_heights): New generic function;
18550         replaces x_change_window_heights.  All users changed.
18552         * window.h (change_window_heights): Add prototype.
18554         * xfaces.c: Remove extern decl for frame parameter vars.
18556         * xterm.h (EMACS_CLASS): Remove.  Use generic define.
18557         (struct w32_display_info): Fix type of xrdb member.
18558         (enum FULLSCREEN_*): Remove.
18559         Remove prototypes for generic functions (in frame.h).
18561         * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18562         parameters now defined in frame.h and frame.c.
18563         (Vx_resource_name): Remove.  Use generic var.
18564         (enum x_frame_parms): Remove (bogus, unused enum).
18565         (check_x_display_info): Make non-static (for frame.c).
18566         (struct x_frame_parm_table, x_frame_parms): Remove.
18567         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18568         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18569         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18570         (x_change_window_heights, x_set_autoraise, x_set_autolower)
18571         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18572         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18573         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18574         Remove.  Use generic functions instead.
18575         (enum resource_types): Remove.
18576         (x_set_scroll_bar_default_width): New global function (for frame.c).
18577         (Fx_create_frame): Depend on x_figure_window_size to add space for
18578         toolbar and setup size_hint_flags.
18579         (x_frame_parm_handlers): New table for redisplay_interface.
18580         (syms_of_xfns): Don't intern/staticpro removed vars.
18582         * xterm.c: Remove unnecessary extern declarations.
18583         (x_fullscreen_adjust): Remove.  Use generic instead.
18584         (x_redisplay_interface): Add x_frame_parm_handlers member.
18586         * w32gui.h (XrmDatabase): New (dummy) typedef.
18588         * w32term.h (EMACS_CLASS): Remove.  Use generic define.
18589         (struct w32_display_info): Fix type of xrdb member.
18590         (enum FULLSCREEN_*): Remove.
18591         (x_fullscreen_adjust): Remove prototype.
18593         * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18594         parameters now defined in frame.h and frame.c.
18595         (Vx_resource_name): Remove.  Use generic var.
18596         (enum x_frame_parms): Remove (bogus, unused enum).
18597         (check_x_display_info): Make non-static (for frame.c).
18598         (struct x_frame_parm_table, x_frame_parms): Remove.
18599         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18600         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18601         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18602         (x_change_window_heights, x_set_autoraise, x_set_autolower)
18603         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18604         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18605         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18606         Remove.  Use generic functions instead.
18607         (enum resource_types): Remove.
18608         (x_set_scroll_bar_default_width): New global function (for frame.c).
18609         (Fx_create_frame): Depend on x_figure_window_size to add space for
18610         toolbar and setup size_hint_flags.
18611         (w32_frame_parm_handlers): New table for redisplay_interface.
18612         (syms_of_w32fns): Don't intern/staticpro removed vars.
18614         * w32term.c: Remove unnecessary extern declarations.
18615         (x_fullscreen_adjust): Remove.  Use generic instead.
18616         (x_redisplay_interface): Add w32_frame_parm_handlers member.
18618         * w32reg.c (x_get_string_resource): Use XrmDatabase.
18620         * macgui.h (XrmDatabase): New (dummy) typedef.
18622         * macterm.h (EMACS_CLASS): Remove.
18623         (struct mac_display_info): Add xrdb member.
18624         (struct mac_output): Add want_fullscreen member.
18626         * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
18627         parameters now defined in frame.h and frame.c.
18628         (Vx_resource_name): Remove.  Use generic var.
18629         (check_x_display_info): Make non-static (for frame.c).
18630         (struct x_frame_parm_table, x_frame_parms): Remove.
18631         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
18632         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
18633         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
18634         (x_change_window_heights, x_set_autoraise, x_set_autolower)
18635         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
18636         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
18637         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
18638         Remove.  Use generic functions instead.
18639         (enum resource_types): Remove.
18640         (x_set_scroll_bar_default_width): New global function (for frame.c).
18641         (mac_frame_parm_handlers): New table for redisplay_interface.
18642         (syms_of_macfns): Don't intern/staticpro removed vars.
18644         * macterm.c: Remove unnecessary extern declarations.
18645         (x_redisplay_interface): Add mac_frame_parm_handlers member.
18647         * Makefile.in (frame.o): Add dependency on blockinput.h and files
18648         included from it (atimer.h and systime.h).
18650 2003-03-30  Andreas Schwab  <schwab@suse.de>
18652         * xdisp.c (x_insert_glyphs): Fix swapped width and height
18653         parameters for shift_glyphs_for_insert.
18655         * macterm.c (x_redisplay_interface): Add missing entry for
18656         draw_vertical_window_border.
18658 2003-03-29  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
18660         * fileio.c (Fexpand_file_name): In the no-handler case, after
18661         expanding, look again for a handler and invoke it.  This is needed
18662         for filenames like "/foo/../user@host:/bar/../baz" -- the first
18663         expansion produces "/user@host:/bar/../baz" which needs to be
18664         expanded again for the finame result "/user@host:/baz".
18666 2003-03-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18668         * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
18669         of area to be redrawn for better performance.
18671 2003-03-28  Stefan Monnier  <monnier@cs.yale.edu>
18673         * xterm.c (take_vertical_position_into_account): Remove.
18674         (xt_action_hook): Call set_vertical_scroll_bar if needed.
18675         (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
18676         (xm_scroll_callback, x_create_toolkit_scroll_bar)
18677         (x_set_toolkit_scroll_bar_thumb): Simplify.
18678         (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
18679         (XTread_socket): Remove unused var.
18680         (x_make_frame_invisible): Replace goto with else.
18682         * xdisp.c (set_vertical_scroll_bar): New fun.
18683         (redisplay_window): Use it.
18685 2003-03-26  Richard M. Stallman  <rms@gnu.org>
18687         * xdisp.c (update_tool_bar): Recompute tool bar if
18688         update_mode_lines is set.  Set w->update_mode_line
18689         only if the tool bar contents actually change.
18690         (update_menu_bar): Undo previous change.
18692 2003-03-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18694         * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
18695         (xg_frame_set_char_size): Calculate scroll bar width before frame
18696         width.  Call SET_FRAME_GARBAGED and cancel_mouse_face.
18697         (xg_separator_p): Check for all documented separator types.
18698         (xg_update_scrollbar_pos): Variable gheight not needed, use height.
18699         (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
18701         * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
18702         so tool bar gets updated.
18704 2003-03-26  Stefan Monnier  <monnier@cs.yale.edu>
18706         * data.c (store_symval_forwarding): Re-instate part of the code
18707         that was deleted with too much enthusiasm.
18709 2003-03-25  Stefan Monnier  <monnier@cs.yale.edu>
18711         * data.c (store_symval_forwarding): Delete special read-only
18712         hack for type == -1, since we now use ->constant instead.
18713         (Fkill_local_variable): Don't use XBUFFER if it can be nil.
18715         * buffer.c (overlays_in): Declare static.
18716         (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
18717         `constant' field rather than the variable's `type' field.
18719 2003-03-24  Andrew Choi  <akochoi@shaw.ca>
18721         * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
18723         * dispextern.h [HAVE_CARBON]: Include Carbon.h.
18725         * fns.c [MAC_OSX]: Do not redefine vector.
18727         * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
18729         * macgui.h: Remove definition of No_Cursor.
18731         * macterm.h: Include Carbon.h.  Replace (struct Cursor *) by Cursor.
18733         * xdisp.c: Define No_Cursor.
18734         (x_write_glyphs, notice_overwritten_cursor)
18735         (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
18736         (note_mouse_highlight): Remove Mac-specific code.
18737         (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
18739 2003-03-24  John Paul Wallington  <jpw@gnu.org>
18741         * xdisp.c (redisplay_window): If mini window's buffer is not
18742         empty, then redisplay it like other windows.
18744 2003-03-23  Kim F. Storm  <storm@cua.dk>
18746         * w32term.c (w32_draw_window_cursor): Fix last change.
18748 2003-03-23  Kenichi Handa  <handa@m17n.org>
18750         * alloc.c (make_string_from_bytes, make_specified_string):
18751         Add `const' for the arg CONTENTS.
18753         * lisp.h (make_string_from_bytes, make_specified_string):
18754         Prototypes adjusted.
18756 2003-03-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18758         * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif.
18760         * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
18761         (XG_SB_RANGE): New define.
18763         * gtkutil.c (xg_fixed_handle_expose): New function.
18764         (xg_create_frame_widgets): Call xg_fixed_handle_expose for
18765         expose events.
18766         (xg_update_scrollbar_pos): Take two more arguments, left and width
18767         of scroll bar including borders.
18768         Clear left and right part outside scroll bar separately as some
18769         themes have bars that are not an even number of pixels.
18770         Don't set reallocate_redraws, don't call
18771         gdk_window_process_all_updates.
18772         (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
18773         so no need to change it.  Calculate size and value with XG_SB_RANGE.
18775         * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
18776         Pass left and width of scroll bar including borders to
18777         xg_update_scrollbar_pos.
18779 2003-03-22  Thien-Thi Nguyen  <ttn@gnu.org>
18781         * Makefile.in: Make sure space precedes end-of-line backslashes.
18783 2003-03-22  Kim F. Storm  <storm@cua.dk>
18785         * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
18786         Add generic versions here.  Remove system specific versions
18787         defined elsewhere.
18789         * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
18790         Add prototypes.
18792         * xterm.h (STORE_NATIVE_RECT): New macro.
18794 2003-03-21  Kim F. Storm  <storm@cua.dk>
18796         * xdisp.c (get_glyph_string_clip_rect):
18797         Use FRAME_INTERNAL_BORDER_WIDTH.
18799         * dispextern.h (struct redisplay_interface): Add active_p
18800         argument to draw_window_cursor member.  All uses changed.
18802 2003-03-21  Kim F. Storm  <storm@cua.dk>
18804         The following changes consolidate code related to writing and
18805         inserting glyphs, exposing frame, the tool bar, the mouse face,
18806         the output cursor, and help echo from xterm.c, w32term.c and
18807         macterm.c into xdisp.c.  It also generalizes the use of the
18808         window_part enum instead of using numeric values throughout.
18810         * xdisp.c: Consolidate gui-independent code here.
18811         Include keymap.h.
18812         (Qhelp_echo): Import.
18813         (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
18814         (help_echo_string, help_echo_window, help_echo_object)
18815         (previous_help_echo_string, help_echo_pos): Declare here.
18816         (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
18817         (estimate_mode_line_height): Define here.  Handle windowing
18818         systems directly (without using estimate_mode_line_height_hook).
18819         (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
18820         (update_window_cursor, update_cursor_in_window_tree)
18821         (fast_find_position, fast_find_string_pos)
18822         (note_mode_line_highlight, note_mode_line_or_margin_highlight)
18823         (expose_area, expose_line, expose_overlaps, expose_window)
18824         (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
18825         declared static as they are only used locally in xdisp.c.
18826         (draw_glyphs): Rename from x_draw_glyphs and make static.
18827         (tool_bar_item_info, notice_overwritten_cursor): Make static.
18828         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
18829         (set_output_cursor, x_cursor_to, handle_tool_bar_click)
18830         (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
18831         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
18832         (display_and_set_cursor, x_update_cursor, x_clear_cursor)
18833         (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
18834         (note_mouse_highlight, x_clear_window_mouse_face)
18835         (cancel_mouse_face, x_draw_vertical_border, expose_frame)
18836         (x_intersect_rectangles): New generic functions for use by xdisp.c
18837         and GUI front-ends.
18838         (syms_of_xdisp): Initialize and staticpro help_echo* variables.
18839         Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
18841         * dispextern.h (Display_Info): Generic typedef for *_display_info.
18842         (NativeRectangle): Generic typedef for rectangle type.
18843         (enum window_part): Move here from window.c.
18844         (struct redisplay_interface): New members flush_display_optional,
18845         define_frame_cursor, clear_frame_area, draw_window_cursor,
18846         draw_vertical_window_border, shift_glyphs_for_insert.
18847         Rename member clear_mouse_face to clear_window_mouse_face.
18848         (estimate_mode_line_height_hook): Remove hook.
18849         (auto_raise_tool_bar_buttons_p): Don't declare extern.
18850         (tool_bar_item_info): Remove prototype.
18851         (help_echo_string, help_echo_window, help_echo_object)
18852         (previous_help_echo_string, help_echo_pos)
18853         (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
18854         (x_stretch_cursor_p, output_cursor): Declare extern.
18855         (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
18856         (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
18857         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
18858         (display_and_set_cursor, set_output_cursor, x_cursor_to)
18859         (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
18860         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
18861         (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
18862         (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
18863         (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
18864         Add prototypes.
18865         (mode_line_string, marginal_area_string): Fix prototypes.
18867         * window.c (enum window_part): Move to dispextern.h.
18868         (coordinates_in_window): Use enum window_part member names
18869         instead of numbers to describe return value.
18870         (struct check_window_data): Change part member to window_part.
18871         (check_window_containing): Return window_part unaltered.
18872         (window_from_coordinates): Change part arg from int to enum
18873         window_part.  Allow part arg to be null.  All users changed.
18875         * window.h (window_from_coordinates): Fix prototype.
18877         * term.c (estimate_mode_line_height): Move to xdisp.c.
18879         * keyboard.c (make_lispy_event): Use enum window_part.
18881         * dispnew.c (mode_line_string, marginal_area_string): Use enum
18882         window_part instead of int in arg list.  Users changed.
18884         * xterm.h (No_Cursor): Declare as None for X.
18885         (struct mac_output): Replace member cross_cursor by hand_cursor.
18887         * xterm.c: Remove consolidated defines and code.
18888         (BETWEEN): Remove unused macro.
18889         (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
18890         (x_define_frame_cursor, x_clear_frame_area)
18891         (x_draw_window_cursor): New X-specific functions for RIF.
18892         (x_redisplay_interface): Add new members.
18894         * xfns.c: Setup and use hand_cursor instead of cross_cursor.
18896         * w32term.h (struct w32_output): Remove cross_cursor member.
18898         * w32term.c: Remove consolidated defines and code.
18899         (BETWEEN): Remove unused macro.
18900         (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
18901         (w32_define_frame_cursor, w32_clear_frame_area)
18902         (w32_draw_window_cursor): New W32-specific functions for RIF.
18903         (w32_redisplay_interface): Add new members.
18905         * w32gui.h (No_Cursor): Define as 0 for W32.
18906         (XRectangle): Add X compatible rectangle type.
18907         (NativeRectangle): Declare as RECT for W32.
18908         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
18910         * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
18912         * w32console.c: Remove consolidated defines and code.
18914         * msdos.h (Display_Info): Add generic typedef.
18916         * msdos.c: Remove consolidated defines and code.
18917         (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
18919         * macterm.h (struct mac_output): Replace member cross_cursor by
18920         hand_cursor.
18921         (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
18923         * macterm.c: Remove consolidated defines and code.
18924         (BETWEEN): Remove unused macro.
18925         (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
18926         (mac_define_frame_cursor, mac_clear_frame_area)
18927         (mac_draw_window_cursor): New Mac-specific functions for RIF.
18928         (x_redisplay_interface): Add new members.
18930         * macgui.h (No_Cursor): Define as 0 for Mac.
18931         (XRectangle): Add X compatible rectangle type.
18932         (NativeRectangle): Declare as Rect for Mac.
18933         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
18935         * macfns.c (x_set_mouse_color): Setup hand_cursor.
18936         (x_set_cursor_color): Use x_display_and_set_cursor.
18938         * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
18939         included from it.  Add dependency on keymap.h.
18941         * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
18943 2003-03-21  Kenichi Handa  <handa@m17n.org>
18945         * fileio.c (Fexpand_file_name): Fix previous change.
18947 2003-03-19  Kenichi Handa  <handa@m17n.org>
18949         * fileio.c (Ffile_name_directory): Reconstruct file name by
18950         make_specified_string.
18951         (Ffile_name_nondirectory, Ffile_name_as_directory)
18952         (Fdirectory_file_name, Fexpand_file_name)
18953         (Fsubstitute_in_file_name): Likewise.
18954         (Fread_file_name): Compare decoded homedir with DIR and
18955         DEFAULT_FILENAME.
18957         * alloc.c (make_specified_string): If NCHARS is negative, count
18958         the number of characters.
18960 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18962         * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
18963         all widgets.
18965         * gtkutil.h: Removed xg_ignore_next_thumb.
18967 2003-03-18  Kenichi Handa  <handa@m17n.org>
18969         * coding.c (Vchar_coding_system_table): Remove this variable.
18970         (Vcoding_system_safe_chars): New variable.
18971         (intersection): Remove this function.
18972         (find_safe_codings): Don't use Vchar_coding_system_table, but try
18973         all codings in SAFE_CODINGS.
18974         (Ffind_coding_systems_region_internal): Adjust for the change of
18975         find_safe_codings.  Get generic coding systems from
18976         Vcoding_system_safe_chars.
18977         (Fdefine_coding_system_internal): New function.
18978         (syms_of_coding): Defsubr Sdefine_coding_system_internal.
18979         Initialize and staticpro Vcoding_system_safe_chars.
18981 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18983         * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
18984         equal old values before updating.
18986         * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
18988         * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
18990 2003-03-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
18992         * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
18993         (xg_resize_widgets): Don't call foreach(handle_fixed_child).
18994         (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
18995         (scroll_bar_button_cb): Set bar->dragging to nil on button release.
18996         (xg_create_scroll_bar): Pass bar to button event callback.
18997         (xg_find_top_left_in_fixed): New function.
18998         (xg_update_scrollbar_pos): Don't call gdk_window_clear on
18999         whole scroll bar area.  Get old position with
19000         xg_find_top_left_in_fixed, calculate and only clear needed areas.
19001         (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
19002         dragging is in progress.  Calculate whole as for Motif.
19003         Remove code that saved last values.  Call gtk_range functions to
19004         set scroll bar sizes.
19006         * gtkutil.h: Removed xg_ignore_next_thumb.
19008 2003-03-17  Juanma Barranquero  <lektu@terra.es>
19010         * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
19011         and files included from it.
19013 2003-03-18  Stefan Monnier  <monnier@cs.yale.edu>
19015         * keymap.c (accessible_keymaps_1): Break cycles but without preventing
19016         multiple occurrences of the same keymap under different prefixes.
19017         (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
19019 2003-03-16  Jason Rumney  <jasonr@gnu.org>
19021         * w32gui.h: Use HDC for Display.
19023         * w32term.c (w32_encode_char): Prevent double-byte chars from
19024         crashing Emacs.
19026         * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
19027         as binary.
19029 2003-03-16  Juanma Barranquero  <lektu@terra.es>
19031         * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
19033 2003-03-16  Kim F. Storm  <storm@cua.dk>
19035         The following changes consolidate some of the gui-independent
19036         parts of the processing and drawing of "glyph strings" from
19037         xterm.c, w32term.c, and macterm.c into xdisp.c.
19039         * dispextern.h (struct glyph): Reduce face_id member from 22 to
19040         21 bits (this reduces number of faces from 4M to 2M).
19041         Replace W32 specific w32_font_type member (2 bits) by generic
19042         font_type member (3 bits) for portability.
19043         (FONT_TYPE_UNKNOWN): New define, default for font_type member.
19044         (enum draw_glyphs_face): Define here.
19045         (struct glyph_string): Define here.  Merge W32 and X versions.
19046         (struct redisplay_interface): New members per_char_metric,
19047         encode_char, compute_glyph_string_overhangs, draw_glyph_string.
19048         (VCENTER_BASELINE_OFFSET): Define here.
19049         (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
19050         (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
19052         * xdisp.c: Consolidate gui-independent "glyph string" code here.
19053         (dump_glyph_string): Moved here.
19054         (init_glyph_string, append_glyph_string_lists, append_glyph_string)
19055         (prepend_glyph_string_lists, get_glyph_face_and_encoding)
19056         (fill_composite_glyph_string, fill_glyph_string)
19057         (fill_image_glyph_string, fill_stretch_glyph_string)
19058         (left_overwritten, left_overwriting, right_overwritten)
19059         (right_overwriting, get_char_face_and_encoding)
19060         (set_glyph_string_background_width, compute_overhangs_and_x)
19061         (append_glyph, append_composite_glyph, produce_image_glyph)
19062         (take_vertical_position_into_account, append_stretch_glyph)
19063         (produce_stretch_glyph): New generic functions (based on X version).
19064         Call platform specific functions through rif.
19065         (INIT_GLYPH_STRING): New macro, hides W32 details.
19066         (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
19067         (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
19068         (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
19069         (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
19070         (notice_overwritten_cursor):
19071         Generic functions exported to platform modules.  Users changed.
19073         * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
19074         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
19075         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
19076         New macros for consolidated code.
19078         * xterm.c: Remove consolidated defines and code.
19079         (x_per_char_metric, x_encode_char)
19080         (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
19081         (x_redisplay_interface): Add new members.
19083         * w32gui.h (Display): Add dummy typedef for consolidation.
19084         (XChar2b): Define alias for wchar_t for consolidation.
19085         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19087         * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
19088         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
19089         New macros for consolidation.
19091         * w32term.c: Remove consolidated defines and code.
19092         (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
19093         to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
19094         (w32_per_char_metric): Change font_type arg to int for RIF.
19095         (w32_encode_char): Return int according to RIF requirements.
19096         (w32_compute_glyph_string_overhangs): Adapt to RIF.
19097         (w32_get_glyph_overhangs): New function for RIF.  Uses generic
19098         x_get_glyph_overhangs.
19099         (w32_redisplay_interface): Add new members.
19101         * macgui.h (XChar2b): Move typedef here for consolidation.
19102         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
19104         * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
19105         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
19106         consolidation.
19108         * macterm.c: Remove consolidated defines and code.
19109         (mac_per_char_metric): New function for RIF.
19110         (mac_encode_char): Adapt to new RIF requirements.
19111         (mac_compute_glyph_string_overhangs): Adapt for RIF.
19112         (x_redisplay_interface): Add new members.
19114 2003-03-15  Stefan Monnier  <monnier@cs.yale.edu>
19116         * keymap.c (Vmenu_events): New var.
19117         (syms_of_keymap): Initialize it.
19118         (where_is_internal): Check more carefully what is a menu event.
19120 2003-03-14  Richard M. Stallman  <rms@gnu.org>
19122         * lread.c (read1): After #!, exit loop on eof.
19124 2003-03-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19126         * gtkutil.h: Add declaration for xg_frame_cleared.
19128         * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
19130         * gtkutil.c (struct xg_last_sb_pos): New structure.
19131         (handle_fixed_child): New function.
19132         (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
19133         and force a redraw on them.
19134         (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
19135         (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
19136         so we can avoid unneeded redraws.
19137         (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
19138         and force a redraw on the scroll bar.
19139         (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
19140         if xg_last_sb_pos shows the positions are up to date.
19141         (xg_frame_cleared): New function.
19143 2003-03-13  Kenichi Handa  <handa@m17n.org>
19145         * coding.c (Fdetect_coding_region): Fix docstring.
19146         (Fdetect_coding_string): Fix docstring.
19148 2003-03-13  Andreas Schwab  <schwab@suse.de>
19150         * gtkutil.c: Add prototype for create_menus.
19152         * data.c (long_to_cons): Fix type of top.
19154         * xselect.c (selection_data_to_lisp_data): Use int instead of
19155         long for an integer of size 4.
19157         * gtkutil.c (xg_update_frame_menubar): Add missing return value.
19158         (xg_tool_bar_help_callback): Likewise.
19160 2003-03-12  Andreas Schwab  <schwab@suse.de>
19162         * xterm.c (x_term_init) [USE_GTK]: Fix typo.
19164 2003-03-12  Kim F. Storm  <storm@cua.dk>
19166         The following changes consolidate the fringe handling from
19167         xterm.c, w32term.c, and macterm.c into xdisp.c.
19169         * xdisp.c: Consolidate fringe handling code here.
19170         (left_bits, right_bits, continued_bits, continuation_bits)
19171         (ov_bits, zv_bits): Define fringe bitmaps.
19172         (fringe_bitmaps): New array holding fringe bitmaps.
19173         (draw_fringe_bitmap): Draw a specific bitmap; call display
19174         specific drawing routine via rif->draw_fringe_bitmap.
19175         (draw_row_fringe_bitmaps): Generic replacement for
19176         x_draw_row_fringe_bitmaps; all callers changed.
19177         (compute_fringe_widths): Generic replacement for
19178         x_compute_fringe_widths; all callers changed.
19180         * dispextern.h (enum fringe_bitmap_type): Define here.
19181         (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
19182         (fringe_bitmaps): Declare extern.
19183         (struct redisplay_interface): New member draw_fringe_bitmap.
19184         (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
19186         * xterm.c: Remove generic fringe code.
19187         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19188         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19190         * w32term.c: Remove generic fringe code.
19191         (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
19192         (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
19194         * macterm.c: Remove generic fringe code.
19195         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
19196         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
19198 2003-03-11  Stefan Monnier  <monnier@cs.yale.edu>
19200         * print.c (Fprin1_to_string): Return unibyte string if possible.
19202 2003-03-09  David Kastrup  <dak@gnu.org>
19204         * process.c (read_process_output): We have allocated enough space
19205         for readmax and carryover, so actually use the alloted space.
19207 2003-03-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19209         * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
19210         toolkit scrollbar click.
19212         * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
19213         for USE_GTK.
19214         (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
19215         also.
19216         (handle_one_xevent): ButtonPress/Release: If event is for a toolkit
19217         scrollbar and control is pressed, call x_scroll_bar_handle_click.
19219         * gtkutil.h (xg_get_scroll_id_for_window): Declare.
19221         * gtkutil.c (xg_get_scroll_id_for_window): New function.
19222         (xg_tool_bar_item_expose_callback): New function.
19223         (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
19224         (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
19225         on the tool bar widget.
19226         (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
19227         to expose on the tool bar item widgets.
19229 2003-03-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19231         * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
19232         struct image* when deciding to update (struct image* may have been
19233         deleted from the image cache).
19235         * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
19236         the event isn't for a frame (i.e. for dialogs).
19238 2003-03-07  Kenichi Handa  <handa@m17n.org>
19240         * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
19241         composition components reaches the limit, terminate composing.
19242         (COMPOSITION_OK): New macro.
19243         (detect_coding_iso2022): Use it if an escape sequence for
19244         composition is found.
19245         (coding_restore_composition): Adjust the number of composition
19246         components if it is not sane.
19248 2003-03-06  Juanma Barranquero  <lektu@terra.es>
19250         * w32term.h (struct w32_display_info): Add xrdb member to support
19251         passing resources via -xrm on Windows.
19253         * w32term.c (w32_make_rdb): New function.
19254         (w32_term_init): Use it to initialize xrdb member of w32_display_info
19255         struct.  Delete leftover code.
19257         * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
19258         for resources passed on the command line.
19260         * w32reg.c (w32_get_rdb_resource): New function.
19261         (x_get_string_resource): Use it, so resources passed with -xrm
19262         supercede the ones in the registry.
19264 2003-03-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19266         * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
19267         instead of x_top_window_to_frame.
19269 2003-03-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19271         * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
19272         when restarting Emacs.
19274 2003-03-03  Richard M. Stallman  <rms@gnu.org>
19276         * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
19277         to run kill-buffer-query-functions.
19278         (Qkill_buffer_query_functions): New var.
19279         (syms_of_buffer): Init and staticpro it.
19281 2003-03-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19283         * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
19285 2003-02-25  Kim F. Storm  <storm@cua.dk>
19287         * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
19288         If centering point failed to make whole line visible and vscroll
19289         is non-zero, disable vscroll and try centering point again.
19291         * lread.c (read1): Accept `single space' syntax like (? x).
19293 2003-02-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19295         * keyboard.c (cancel_hourglass_unwind): Surround with
19296         #ifdef HAVE_X_WINDOWS.
19298 2003-02-25  Kenichi Handa  <handa@m17n.org>
19300         * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
19301         process only when "subprocesses" is defined.
19303 2003-02-24  Stefan Monnier  <monnier@cs.yale.edu>
19305         * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
19307 2003-02-24  Juanma Barranquero  <lektu@terra.es>
19309         * callint.c (fix_command): Declare as static void and move before
19310         Fcall_interactively.
19312         * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
19313         (syms_of_xdisp): Don't initialize Qwhen.
19315 2003-02-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19317         * keyboard.c (cancel_hourglass_unwind): New function.
19318         (command_loop_1): Cancel hourglass with unwind-protect.
19320 2003-02-23  Richard M. Stallman  <rms@gnu.org>
19322         * callint.c (fix_command): New subroutine, from Fcall_interactively.
19323         Detect (when ... (region-beginning)) etc.
19324         (Fcall_interactively): Call fix_command.
19325         (Qif, Qwhen): New variables.
19326         (syms_of_callint): Init and staticpro them.
19328         * regex.c (print_partial_compiled_pattern): Output to stderr.
19330 2003-02-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
19332         * dired.c (directory_files_internal): Don't expand directory.
19333         (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
19334         instead.  From Lars Hansen <larsh@math.ku.dk>.
19336 2003-02-22  Stefan Monnier  <monnier@cs.yale.edu>
19338         * fns.c (string_to_multibyte): Remove unused var i.
19339         (Flanginfo): Fix int/Lisp_Object mixup.
19340         (void_call2): New fun.
19341         (Fmap_char_table): Use it in place of call2.
19343         * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
19345         * macros.c (Fstart_kbd_macro): Remove redundant assignment.
19347         * keymap.c (copy_keymap_1): Make it static.
19349         * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
19351 2003-02-22  David Ponce  <david@dponce.com>
19353         * lread.c (Fload): Don't check STRING_MULTIBYTE.
19355 2003-02-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19357         * process.h: Removed subtty field from struct Lisp_Process.
19359         * process.c (create_process): Remove setting of subtty.
19360         (emacs_get_tty_pgrp): New function.
19361         (Fprocess_running_child_p, process_send_signal):
19362         Call emacs_get_tty_pgrp instead of ioctl.
19363         (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
19365 2003-02-21  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
19367         * keymap.c (Fdefine_key): Doc fix.
19369 2003-02-21  Juanma Barranquero  <lektu@terra.es>
19371         Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
19373         * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
19374         POLLING_PROBLEM_IN_SELECT.
19376         * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
19377         Delete #undef of POLLING_PROBLEM_IN_SELECT.
19379         * s/hpux10-20.h: New file.
19381         * process.c (wait_reading_process_input):
19382         Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
19384 2003-02-20  Kenichi Handa  <handa@m17n.org>
19386         * fontset.c (check_fontset_name): If NAME is nil, return the
19387         default fontset.
19388         (override_font_info): New function.
19389         (Fset_fontset_font): Document that NAME nil means the default fontset.
19390         (Ffontset_info): If FONTSET is not the default fontset, merge
19391         FONTSET onto the copy of the default fontset, and work on that
19392         copy.  Document that NAME nil means the default fontset.
19393         (Ffontset_font): Document that NAME nil means the default fontset.
19395         * process.c (setup_process_coding_systems): If the process's
19396         in/out descriptor is -1, do nothing.
19398 2003-02-19  Andreas Schwab  <schwab@suse.de>
19400         * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
19401         Add prototypes.
19403 2003-02-19  Kenichi Handa  <handa@m17n.org>
19405         * xfaces.c (try_alternative_families): Try all scalable fonts if
19406         Vscalable_fonts_allowed is not Qt.
19408 2003-02-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19410         * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
19412 2003-02-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19414         * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
19415         names.
19417         * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
19418         (sorted_font_list): Move allocation of struct font_name to
19419         x_face_list_fonts.
19420         (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
19421         (Fx_list_fonts): Set maxnames to -1 to get all font names.
19423 2003-02-18  Kim F. Storm  <storm@cua.dk>
19425         * lread.c (read1): Fix last change.
19426         "`" is not always special.  Allow "?" after a character constant.
19428 2003-02-18  Andrew Choi  <akochoi@shaw.ca>
19430         * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
19432 2003-02-18  Andreas Schwab  <schwab@suse.de>
19434         * window.c (window_scroll_pixel_based): Move outside a
19435         multi-glyph character before setting new window start.
19437         * xdisp.c (in_display_vector_p): New function.
19438         * dispextern.h (in_display_vector_p): Declare.
19440 2003-02-18  Kim F. Storm  <storm@cua.dk>
19442         * lread.c (read1): Fix and relax read syntax.
19443         Recognize "[", ";", "#", and "?" after a dotted-pair dot.
19444         Only recognize "," after dotted-pair dot if inside backquote.
19445         Never include "`" or "," (inside backquote) in a symbol.
19446         Allow dotted-pair dot after a character constant.
19447         Allow "`" and "," (inside backquote) after a character constant.
19449 2003-02-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19451         * gtkutil.c (xg_tool_bar_expose_callback): New function.
19452         (xg_create_tool_bar): Force style of tool bar to be horizontal with
19453         icons.  Set name of tool bar to emacs-toolbar.
19454         (update_frame_tool_bar): Connect expose event to
19455         xg_tool_bar_expose_callback.
19457 2003-02-17  Richard M. Stallman  <rms@gnu.org>
19459         * keyboard.c (this_command_key_count_reset): New variable.
19460         Initiatize to 0 where this_command_key_count is set.
19461         (read_char): Save and restore this_command_key_count_reset
19462         around input method code.
19463         (read_char): If this_command_key_count_reset, echo reread commands.
19464         (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
19466 2003-02-17  Kenichi Handa  <handa@m17n.org>
19468         * fns.c (string_to_multibyte): Always return a multibyte string.
19470 2003-02-16  Jason Rumney  <jasonr@gnu.org>
19472         * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
19473         Negative max_fonts parameter means list all.
19475 2003-02-14  Dave Love  <fx@gnu.org>
19477         * fns.c (Flanginfo): Doc fix.
19479 2003-02-13  Kim F. Storm  <storm@cua.dk>
19481         * lread.c (read_escape): Interpret \s as a SPACE character, except
19482         for \s-X in a character constant which still is the super modifier.
19483         (read1): Signal an `invalid read syntax' error if a character
19484         constant is immediately followed by a digit or symbol character.
19486         * search.c (Fmatch_data): Doc fix.  Explicitly state that
19487         match-data is undefined if last search failed.
19489         * keymap.c (Fcommand_remapping): Rename from Fremap_command.
19490         All uses changed.
19492 2003-02-12  Juanma Barranquero  <lektu@terra.es>
19494         * eval.c (Fdefmacro): Fix typo.
19496 2003-02-12  Kim F. Storm  <storm@cua.dk>
19498         * macros.c (Fstart_kbd_macro): If appending, and last keyboard
19499         macro is a string, convert meta modifiers in string when copying
19500         the string into a vector.
19502 2003-02-11  Kim F. Storm  <storm@cua.dk>
19504         * keymap.c (Fremap_command): Return nil if arg is not a symbol.
19506 2003-02-11  Kenichi Handa  <handa@m17n.org>
19508         * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
19510 2003-02-10  Kim F. Storm  <storm@cua.dk>
19512         * process.c: Doc fixes.
19513         (syms_of_process): Add `:' prefix to QCfilter_multibyte.
19515 2003-02-10  Kenichi Handa  <handa@m17n.org>
19517         * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
19519         * process.c (QCfilter_multibyte): New variable.
19520         (setup_process_coding_systems): New function.
19521         (Fset_process_buffer, Fset_process_filter):
19522         Call setup_process_coding_systems.
19523         (Fstart_process): Initialize the member `filter_multibyte' of
19524         struct Lisp_Process.
19525         (create_process): Call setup_process_coding_systems.
19526         (Fmake_network_process): New keyward `:filter-multibyte'.
19527         Initialize the member `filter_multibyte' of struct Lisp_Process.
19528         Call setup_process_coding_systems.
19529         (server_accept_connection): Call setup_process_coding_systems.
19530         (read_process_output): If the process has a filter, decide the
19531         multibyteness of a string to given to the filter by
19532         `filter_multibyte' member of the process.  If the process doesn't
19533         have a filter and the result of conversion is unibyte, use
19534         Fstring_to_multibyte (not Fstring_make_multibyte) to get the
19535         multibyte form.
19536         (Fset_process_coding_system): Call setup_process_coding_systems.
19537         (Fset_process_filter_multibyte): New function.
19538         (Fprocess_filter_multibyte_p): New function.
19539         (syms_of_process): Intern and staticpro QCfilter_multibyte.
19540         Defsubr Sset_process_filter_multibyte and
19541         Sprocess_filter_multibyte_p.
19543         * process.h (struct Lisp_Process): New member filter_multibyte.
19545         * lisp.h (setup_process_coding_systems): Add prototype.
19547         * buffer.c (Fset_buffer_multibyte): If the current buffer has a
19548         process, update coding systems for the process.
19550 2003-02-09  Kenichi Handa  <handa@m17n.org>
19552         * fns.c (string_to_multibyte): New function.
19553         (Fstring_to_multibyte): New function.
19554         (syms_of_fns): Defsubr it.
19556 2003-02-08  Andreas Schwab  <schwab@suse.de>
19558         * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
19559         instead of the substitution.
19561 2003-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19563         * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
19565         * xmenu.c (menu_position_func): Adjust menu popup position so that
19566         the menu is fully visible.
19568 2003-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19570         * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
19571         (x_make_frame_invisible, x_wm_set_icon_position):
19572         Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
19574         * xfns.c (x_set_name, x_set_title): Ditto.
19576 2003-02-04  Richard M. Stallman  <rms@gnu.org>
19578         * keyboard.c (echo_now): Update before_command_echo_length.
19579         (Freset_this_command_lengths): Reset this_command_key_count etc.
19580         immediately rather than arranging to do it later.
19581         (before_command_key_count_1, before_command_echo_length_1)
19582         (before_command_restore_flag): Vars deleted.
19583         (add_command_key): Don't handle before_command_restore_flag.
19584         (read_char, record_menu_key): Don't update before_command_key_count or
19585         before_command_echo_length.
19586         (read_char): Don't handle before_command_restore_flag.
19588         * keyboard.c (command_loop_1): Don't call adjust_point_for_property
19589         in direct-output clauses if it wouldn't be called in the ordinary case.
19591 2003-02-04  Kim F. Storm  <storm@cua.dk>
19593         * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
19595 2003-02-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19597         * gtkutil.c (remove_from_container): Copying list is not needed.
19598         (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
19599         (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
19600         on list returned from gtk_container_get_children to avoid memory leak.
19602 2003-02-01  Jason Rumney  <jasonr@gnu.org>
19604         * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
19605         local malloc.
19606         [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
19607         definitions in xpm.h.
19608         (init_xpm_functions): New function.
19609         (xpm_load): Sync with xfns.c.  Adapt for Windows version of libXpm.
19610         (init_external_image_libraries): Try to load libXpm.dll.
19612         * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
19613         timestamp.
19615 2003-01-31  Dave Love  <fx@gnu.org>
19617         * syntax.c (Fskip_chars_forward)
19618         (open-paren-in-column-0-is-defun-start): Doc fix.
19620 2003-01-31  Joe Buehler  <jhpb@draco.hekimian.com>
19622         * fileio.c: Support // at start of name for Cygwin (just added proper
19623         preprocessor tests).
19625         * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
19627         * Makefile.in: Use @EXEEXT@ for Cygwin.
19629         * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
19631         * s/cygwin.h: Added for Cygwin port.
19633 2003-01-31  Juanma Barranquero  <lektu@terra.es>
19635         * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
19636         when including gif_lib.h.
19637         (init_gif_functions, init_tiff_functions): New functions.
19638         (gif_load, tiff_load): Sync with xfns.c version.  Adjust colors for
19639         Windows.  Disable color table lookups.  Call library functions
19640         through pointers determined at runtime.
19641         (init_external_image_libraries): Try to load libungif.dll and
19642         libtiff.dll.
19644 2003-01-31  Kenichi Handa  <handa@m17n.org>
19646         * xdisp.c (SKIP_GLYPHS): New macro.
19647         (set_cursor_from_row): Skip all glyphs that comes from overlay string.
19649 2003-01-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19651         * gtkutil.c (free_frame_tool_bar): Remove debug printf.
19653 2003-01-30  Dave Love  <fx@gnu.org>
19655         * alloc.c (Vgc_elapsed, gcs_done): New variables.
19656         (Fgarbage_collect): Use them.
19657         (init_alloc, syms_of_alloc): Set them up.
19659 2003-01-30  Juanma Barranquero  <lektu@terra.es>
19661         * w32fns.c (init_external_image_libraries): Add missing operator.
19663 2003-01-29  Jason Rumney  <jasonr@gnu.org>
19665         * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
19666         an alternative name for jpeg.dll.
19668 2003-01-29  Kenichi Handa  <handa@m17n.org>
19670         * xdisp.c (set_cursor_from_row): Pay attention to string display
19671         properties.
19673 2003-01-28  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
19675         * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
19676         <escape>.
19677         (keycode_to_xkeysym_table): Reformat and add more comments.
19678         (XTread_socket): Drop special case for backspace.
19680 2003-01-28  Andrew Choi  <akochoi@shaw.ca>
19682         * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
19683         values in old-style RGB specs.
19685 2003-01-27  Juanma Barranquero  <lektu@terra.es>
19687         * w32fns.c (init_external_image_libraries): Try alternate names for the
19688         jpeg dll.
19690 2003-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19692         * gtkutil.c (create_dialog, xg_separator_p)
19693         (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
19694         before calling strcmp or strlen.
19696 2003-01-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19698         * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
19699         and handle image load failure.
19701 2003-01-26  Jason Rumney  <jasonr@gnu.org>
19703         * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
19704         New functions.
19705         (jpeg_load): Sync with xfns.c version.  Adjust colors for Windows.
19706         Disable color table lookups.  Call jpeg library functions
19707         through pointers determined at runtime.
19708         (init_external_image_libraries): Try to load jpeg.dll.
19710 2003-01-25  Richard M. Stallman  <rms@gnu.org>
19712         * lisp.h: Declare format2 instead of format1.
19714         * fileio.c (barf_or_query_if_file_exists):
19715         Call format2 instead of format1.
19717         * editfns.c (format2): New function, replaces format1
19718         but takes exactly two Lisp Objects as format args.
19720         * buffer.c (Fkill_buffer): Call format2 instead of format1.
19722 2003-01-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19724         * xterm.h: Change to return value of x_dispatch_event to int.
19726         * xterm.c (x_filter_event): New function.
19727         (event_handler_gdk, XTread_socket): Call x_filter_event.
19728         (x_dispatch_event): Change to return value of finish.
19729         (event_handler_gdk): Use return value from x_dispatch_event.
19731         * xfns.c (x_window): Call create_frame_xic for GTK version to
19732         initialize input methods.
19734         * gtkutil.h: Add (void) prototypes.
19736         * gtkutil.c (create_menus): Remove code that puts the help menu to
19737         the right.
19739 2003-01-25  Jason Rumney  <jasonr@gnu.org>
19741         * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
19742         [HAVE_PNG]: Sync with xfns.c version.
19743         (png_load): Adjust colors for Windows.  Use Windows
19744         bitmaps.  Disable color table lookups.
19745         (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
19746         (init_png_functions): New function.
19747         (png_read_from_memory, png_load): Call png library functions
19748         through pointers determined at runtime.
19749         (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
19750         (init_external_image_libraries): New function.
19751         (init_xfns): Call it.
19753 2003-01-24  Andreas Schwab  <schwab@suse.de>
19755         * minibuf.c (Fminibuffer_message): Verify type of parameter.
19757 2003-01-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19759         * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
19760         of static initializer.
19762 2003-01-24  Dave Love  <fx@gnu.org>
19764         * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
19765         architectures.
19767         * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
19768         Use __alignof__.
19770 2003-01-24  Kenichi Handa  <handa@m17n.org>
19772         * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
19773         It it is nonzero, don't pretend that an invisible area doesn't exist.
19774         (command_loop_1): Call adjust_point_for_property with proper
19775         second arg.
19777 2003-01-22  Jason Rumney  <jasonr@gnu.org>
19779         Sync changes with xterm.c and xfns.c.
19781         * w32term.c (x_draw_glyph_string_foreground)
19782         (x_draw_composite_glyph_string_foreground): Implement overstriking.
19784         * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
19785         phys_cursor's hpos is overwritten.  This is still not completely
19786         correct, as it doesn't really make sense to use hpos at all to
19787         get the cursor glyph (as that is relative to the width of the
19788         characters on the line, which may have changed during the update).
19790         * w32term.c (notice_overwritten_cursor): Handle the special case
19791         of the cursor being in the first blank non-text line at the
19792         end of a window.
19794         * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
19795         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
19796         Compute from the x position returned by x_draw_glyphs.
19798         (x_display_and_set_cursor): Don't set phys_cursor_width here,
19799         except for NO_CURSOR and system caret, to make phys_cursor_width
19800         contain what its name suggests.
19801         (notice_overwritten_cursor): Consider the cursor image erased if
19802         the output area intersects the cursor image in y-direction.
19804         * w32term.c (note_mode_line_or_margin_highlight): Rename from
19805         note_mode_line_highlight and extend.
19807         * w32term.c (last_window): New variable.
19808         (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
19809         (note_mouse_movement): Remove reimplemented code in #if 0.
19811         * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
19812         not update_mode_lines, and always set it to 1.
19814 2003-01-21  Jason Rumney  <jasonr@gnu.org>
19816         * w32fns.c (IDC_HAND): Define it if system headers don't.
19818 2003-01-21  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
19820         * w32term.h (struct w32_output): New member hand_cursor.
19821         (WM_EMACS_SETCURSOR): New message definition.
19823         * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
19824         function w32_define_cursor.
19825         (note_mouse_highlight): Initialize, setup cursor accoding to mouse
19826         position, change member name output_data.x to output_data.w32 and
19827         add function w32_define_cursor.
19828         (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
19829         and change member name output_data.x to output_data.w32.
19830         (w32_initialize_display_info):
19831         Setup dpyinfo->vertical_scroll_bar_cursor.
19833         * w32fns.c (Vx_hand_shape): New variable.
19834         (w32_wnd_proc): Add message entries for WM_SETCURSOR and
19835         WM_EMACS_SETCURSOR.
19836         (x-create-frame): Setup Cursor types.
19838 2003-01-21  David Ponce  <david@dponce.com>
19840         * w32term.c (w32_encode_char): For DIM=1 charset, set
19841         ccl->reg[2] to -1 before calling ccl_driver.
19842         (Sync. with xterm.c x_encode_char change by Kenichi Handa
19843         <handa@m17n.org> on 2002-09-30.)
19844         (w32_draw_relief_rect): Declare all args.
19845         (w32_define_cursor): New.
19847         * w32fns.c (w32_load_cursor): New function.
19848         (w32_init_class): Use it.
19849         (x_put_x_image): Declare all args.
19851 2003-01-21  Richard Dawe  <rich@phekda.freeserve.co.uk>
19853         * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
19855 2003-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19857         * gtkutil.c: Must include stdio.h before termhooks.h.
19859 2003-01-21  Dave Love  <fx@gnu.org>
19861         * alloc.c (Fgc_status): Print zombie list.
19862         (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
19863         Fix assignment of zombies.
19864         (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
19865         Don't take car of non-cons.
19867         * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19869         * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
19871 2003-01-20  David Ponce  <david@dponce.com>
19873         * w32menu.c (digest_single_submenu): Declare all args.
19875         Sync with 2002-12-23  Richard M. Stallman  <rms@gnu.org>
19876         changes in xmenu.c:
19878         (parse_single_submenu): Use individual keymap's prompt
19879         string as pane name, if there is one.
19880         (set_frame_menubar): Save menu_items_n_panes from each call to
19881         parse_single_submenu and use it when calling digest_single_submenu.
19883 2003-01-20  Steven Tamm  <steventamm@mac.com>
19885         * macterm.c (XTread_socket): Check for valid, visible window
19886         before sending a scroll-wheel event.
19888 2003-01-20  Richard M. Stallman  <rms@gnu.org>
19890         * xdisp.c (redisplay_window): If mini window's buffer is not
19891         a minibuffer, then redisplay it like other windows.
19893 2003-01-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19895         * gtkutil.c (xg_create_frame_widgets): Check if there is an
19896         external tool bar before setting tool bar height.
19898 2003-01-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
19900         * xterm.c (handle_one_xevent): Surround popup_activated
19901         with #ifdef:s for non-toolkit version.
19903         * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK.
19904         (gtkutil.o): New file.
19905         (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
19906         (LIBW): Set to @GTK_LIBS@ if USE_GTK.
19908         * gtkutil.c: New file for GTK version.
19910         * gtkutil.h: New file for GTK version.
19912         * xterm.h: Add xt_or_gtk_widget.
19913         Include gtk files for USE_GTK.
19914         (struct x_output): Add toolbar_height.
19915         (struct x_output): Add GTK widgets and Gdk size_hints.
19916         (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
19917         (FRAME_OUTER_WINDOW): New macros for USE_GTK.
19918         (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
19920         * xterm.c: Include gtkutil.h for USE_GTK.
19921         (free_frame_menubar): Declare extern void for USE_GTK.
19922         (note_mouse_highlight): Check popup_activated for USE_GTK.
19923         (xt_action_hook): Don't compile if USE_GTK.
19924         (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
19925         (xg_scroll_callback): New function.
19926         (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
19927         (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
19928         for USE_GTK.
19929         (x_scroll_bar_create): Call xg_update_scrollbar_pos and
19930         xg_show_scroll_bar for USE_GTK.
19931         (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
19932         (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
19933         (event_handler_gdk): New function for USE_GTK.
19934         (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
19935         (handle_one_xevent): Make sure widget is mapped before
19936         calling x_real_positions for USE_GTK.
19937         (XTread_socket): Add GTK event loop for USE_GTK.
19938         (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
19939         (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
19940         (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
19941         (x_iconify_frame): Add code for USE_GTK.
19942         (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
19943         (x_wm_set_size_hint): Only compile if not USE_GTK.  GTK version
19944         is in gtkutil.c.
19945         (x_term_init): Add initialization for GTK.
19946         (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
19948         * xmenu.c: Include gtkutil.h for USE_GTK.
19949         (Fx_popup_menu): Use current position if x and y are nil.
19950         (single_menu_item, single_menu_item, Fx_popup_dialog):
19951         Check for USE_GTK.
19952         (popup_widget_loop): New function for USE_GTK.
19953         (x_activate_menubar): Add code for USE_GTK.
19954         (popup_activate_callback, popup_deactivate_callback)
19955         (menu_highlight_callback, menubar_selection_callback):
19956         Add USE_GTK versions.
19957         (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
19958         (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
19959         (free_frame_menubar): Only compile if not USE_GTK.  GTK version
19960         is in gtkutil.c.
19961         (popup_selection_callback): New version for USE_GTK.
19962         (create_and_show_popup_menu): New fuction, one USE_GTK version and
19963         one USE_X_TOOLKIT version.
19964         (xmenu_show): Call create_and_show_popup_menu.
19965         (dialog_selection_callback): New version for USE_GTK.
19966         (create_and_show_dialog): New fuction, one USE_GTK version and
19967         one USE_X_TOOLKIT version.
19968         (xdialog_show): Call create_and_show_dialog.
19970         * xfns.c: Include gtkutil for USE_GTK.
19971         (x_window_to_frame, x_any_window_to_frame)
19972         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
19973         (x_top_window_to_frame): Add code for USE_GTK.
19974         (x_set_background_color): Call xg_set_background_color for GTK.
19975         (x_set_menu_bar_lines): Check for USE_GTK.
19976         (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
19977         (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
19978         (x_window): Call xg_create_frame_widgets for USE_GTK.
19979         (Fx_create_frame): Check for USE_GTK.
19980         (Fx_file_dialog): New implementation for USE_GTK.
19982         * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
19983         (update_menu_bar): Add check for USE_GTK.
19984         (update_tool_bar): Add check for USE_GTK and external tool bar.
19985         (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
19986         (redisplay_internal): Add check for USE_GTK and popup_activated.
19987         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
19988         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
19989         (display_menu_bar): Add check for USE_GTK
19991         * lisp.h (Vx_resource_name): Declare extern.
19993         * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
19994         for USE_GTK.
19995         (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
19997         * frame.h (struct frame): Add external_tool_bar.  Check for USE_GTK.
19998         (FRAME_EXTERNAL_TOOL_BAR): New macro.
19999         (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
20001         * fileio.c (Fread_file_name): Add check for USE_GTK.
20003         * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
20004         Add check for USE_GTK.
20006         * config.in: Added HAVE_GTK.
20008         * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
20010 2003-01-18  Stefan Monnier  <monnier@cs.yale.edu>
20012         * charset.h (Funibyte_char_to_multibyte): Export.
20014 2003-01-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
20016         * xmenu.c (mouse_position_for_popup): New function.
20017         (Fx_popup_menu): Call mouse_position_for_popup for X and
20018         mouse_position_hook for others.
20020 2003-01-17  Kim F. Storm  <storm@cua.dk>
20022         * editfns.c (Finsert): Mention `string-make-multibyte' and
20023         `string-as-multibyte' in doc string.
20025 2003-01-17  Kenichi Handa  <handa@m17n.org>
20027         * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
20029         * editfns.c (Fformat): Convert an unibyte char argument that is
20030         formatted by "%c" to multibyte if the total result must be a
20031         multibyte string.
20033 2003-01-16  Kim F. Storm  <storm@cua.dk>
20035         * process.c (set-process-filter): Document unibyte/multibyte-ness
20036         of string argument.
20038 2003-01-16  Kenichi Handa  <handa@m17n.org>
20040         * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
20042         * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
20043         (re_search_2): Likewise.
20045 2003-01-15  Kenichi Handa  <handa@m17n.org>
20047         * xdisp.c (message_dolog): Fix bug of the case that *Message*
20048         buffer is unibyte.
20050 2003-01-15  Francesco Potort\e,Al\e(B  <pot@gnu.org>
20052         * fns.c (Fsubstring): Clarify doc string.
20054         * textprop.c (Ftext_properties_at, Fnext_char_property_change)
20055         (Fprevious_char_property_change)
20056         (Fnext_single_char_property_change)
20057         (Fprevious_single_char_property_change, Fnext_property_change)
20058         (Fnext_single_property_change, Fprevious_property_change)
20059         (Fprevious_single_property_change, Fadd_text_properties)
20060         (Fput_text_property, Fset_text_properties)
20061         (Fremove_text_properties, Fremove_list_of_text_properties)
20062         (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
20064 2003-01-14  Kim F. Storm  <storm@cua.dk>
20066         * process.h (struct Lisp_Process): New member plist replaces old
20067         member private_vars.  All uses changed.
20069         * process.c: Reworked 2003-01-12 change -- call a plist a plist!
20070         (QCplist): Rename from QCvars.  Change all uses.
20071         (Fprocess_plist): Replaces Fprocess_variable.  Simplified.
20072         (Fset_process_plist): Replaces Fset_process_variable.  Simplify.
20073         (syms_of_process): Intern, staticpro, defsubr these.
20074         (Fmake_network_process): Describe :plist arg.  Remove :vars arg.
20076 2003-01-14  Francesco Potort\e,Al\e(B  <pot@gnu.org>
20078         * m/delta.h: Remove (obsolete).
20080 2003-01-13  Francesco Potort\e,Al\e(B  <pot@gnu.org>
20082         * fileio.c (Fdelete_directory, Fdelete_file): Document the
20083         behaviour in front of symlinks.
20084         (Fdelete_file): Raise an error on directories.
20086 2003-01-13  Dave Love  <fx@gnu.org>
20088         * fns.c (Freverse): Use QUIT.
20090 2003-01-13  Richard M. Stallman  <rms@gnu.org>
20092         * minibuf.c (minibuffer_completion_contents):
20093         Error if point is inside prompt.
20095         * keyboard.c (command_loop_1): Don't redisplay directly
20096         if there's a post-command-hook.
20098         * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
20099         (Fdo_auto_save): Add gcpros around Ffile_name_directory.
20101 2003-01-12  Kim F. Storm  <storm@cua.dk>
20103         * process.h (struct Lisp_Process): New member private_vars.
20105         * process.c (QCvars): New variable.
20106         (syms_of_process): Intern and staticpro it.
20107         (Fset_process_contact): Removed function.
20108         (Fprocess_variable, Fset_process_variable): New functions.
20109         (syms_of_process): Defsubr them.
20110         (Fstart_process): Initialize private_vars plist to nil.
20111         (Fmake_network_process): New arg :vars to setup the private
20112         variables for new network process.
20113         (server_accept_connection): Copy server's private variables to
20114         client process.
20116         * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
20117         crashes).  Code rewritten and simplified.  Now directly aligns the
20118         pointer and recalculates pure_bytes_used, rather than aligning the
20119         size and adjusting the pointer.
20121 2003-01-11  Kim F. Storm  <storm@cua.dk>
20123         * process.c (Fset_process_contact): New function.
20124         (syms_of_process): defsubr it.
20125         (make-network-process): Update doc.
20127 2003-01-10  Andreas Schwab  <schwab@suse.de>
20129         * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
20130         Reported by Berthold Gunreben <b.gunreben@web.de>.
20132 2003-01-10  Dave Love  <fx@gnu.org>
20134         * composite.c (syms_of_composite): Make composition_hash_table weak.
20136 2003-01-09  Kim F. Storm  <storm@cua.dk>
20138         * process.c (Fmake_network_process): Convert new port number
20139         to host byte order for `:service t' case.  From Mario Lang.
20141 2003-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
20143         * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
20144         instead of XtAppProcessEvent.
20146         * xterm.c (handle_one_xevent): New function.
20147         (x_dispatch_event): New function.
20148         (XTread_socket): Call handle_one_xevent.
20150         * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
20152         * xmenu.c (Fx_popup_menu): If popping up at mouse position,
20153         call XQueryPointer to get coordinates.
20154         (popup_get_selection): Do not set popup_activated_flag to zero,
20155         let popup_deactivate_callback do that.  Needed for Motif.
20156         Call x_dispatch_event instead of XtDispatchEvent.
20157         (xmenu_show): Calculate root coordinate from frame top/left position.
20159 2003-01-08  Kim F. Storm  <storm@cua.dk>
20161         * process.c (server_accept_connection): Fix recording of new
20162         connection's local address in :local property of contact info.
20163         (Fmake_network_process): Record local network address for new
20164         client processes in :local property of contact info.
20165         (format-network-address): Add arg OMIT-PORT.  Change callers.
20167 2003-01-07  Dave Love  <fx@gnu.org>
20169         * Makefile.in (fns.o): Depend on coding.h.
20171 2003-01-06  Dave Love  <fx@gnu.org>
20173         * fns.c: Include coding.h.  Use POINTER_TYPE*, not void*.
20174         (Vlocale_coding_system): Declare.
20175         (Qcodeset, Qdays, Qmonths, Qpaper): New.
20176         (Flanginfo): New.
20177         (syms_of_fns): Initialize new stuff.
20179 2003-01-07  Markus Rost  <rost@math.ohio-state.edu>
20181         * minibuf.c (Fread_variable): Doc fix.
20183         * eval.c (Fuser_variable_p): Doc change.  For custom variables,
20184         use the same test as for custom-variable-p.
20186 2003-01-05  Richard M. Stallman  <rms@gnu.org>
20188         * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
20189         Count LAST_LINE_MISFIT in scroll margin for end of window.
20190         Move label too_near_end before setting SCROLL_MARGIN_POS.
20191         Set LAST_LINE_MISFIT before jumping there.
20193         * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
20194         scroll_conservatively case.  If scrolling that much doesn't change
20195         STARTP, move it down one line.
20197         * xdisp.c (redisplay_window): Pass last_line_misfit arg to
20198         try_scrolling.  Make it 1 after make_cursor_line_fully_visible fails.
20200         * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
20201         selected frame.
20203         * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
20204         (syms_of_keymap): Staticpro them.
20205         (Fapropos_internal): Initialize them and clear them out.
20206         Don't GCPRO them.
20208         * buffer.c (syms_of_buffer) <scroll-up|down-aggressively>: Doc fixes.
20210         * lisp.h: New misc type Lisp_Save_Value.
20211         (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
20212         (XSAVE_VALUE): New macro.
20213         (struct Lisp_Save_Value): New data type.
20214         (union Lisp_Misc): Add u_save_value alternative.
20215         (make_save_value): Declare.
20217         * alloc.c (make_save_value): New function.
20219         * xterm.c (x_catch_errors): Save dpy using make_save_value.
20220         (x_catch_errors_unwind): Call XSync.
20222 2003-01-01  Richard M. Stallman  <rms@gnu.org>
20224         * window.c (window_scroll_pixel_based): Partially undo last change.
20226         * keyboard.c (command_loop_1): Call adjust_point_for_property
20227         in direct action cases for Qforward_char and Qbackward_char.
20228         Set already_adjusted so it won't be done twice.
20230 2002-12-30  Richard Dawe  <rich@phekda.freeserve.co.uk>
20232         * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
20233         type definition of size_t.
20235 2003-01-02  Steven Tamm  <steventamm@mac.com>
20237         * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
20238         distinguish Carbon GUI builds from X11 builds on darwin.
20240 2002-12-30  Steven Tamm  <steventamm@mac.com>
20242         * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
20243         to default to t.
20245 2002-12-29  Francesco Potort\e,Al\e(B  <pot@gnu.org>
20247         * data.c (Fstring_to_number, Fminus): Better English in doc strings.
20249 2002-12-28  Steven Tamm  <steventamm@mac.com>
20251         * Makefile.in (macosx-bundle): Fix Mac OS X/Carbon port to
20252         allow building in a different directory than source.  Uses some
20253         GNU Make extensions, but there is no other make on Mac OS X.
20255 2002-12-26  Francesco Potort\e,Al\e(B  <pot@gnu.org>
20257         * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
20258         (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
20259         (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
20260         (Fstring_to_number): Mention the returned value in the doc strings.
20262 2002-12-23  Richard M. Stallman  <rms@gnu.org>
20264         * buffer.c (syms_of_buffer) <scroll-up-aggressively>
20265         <scroll-down-aggressively>: Doc fix.
20267         * xmenu.c (parse_single_submenu): Use individual keymap's prompt
20268         string as pane name, if there is one.
20269         (set_frame_menubar): Save menu_items_n_panes from each call to
20270         parse_single_submenu and use it when calling digest_single_submenu.
20272         * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
20273         Don't try to make last line fully visible if it is past end of window.
20275 2002-12-22  Steven Tamm  <steventamm@mac.com>
20277         * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
20278         (mac_menu_show): Add support for hierarchical popup menus.
20279         (add_menu_item): Remove indentation support.
20280         (fill_submenu, fill_menu): Create hierarchical menus
20281         instead of using indentation.
20283 2002-12-22  Richard M. Stallman  <rms@gnu.org>
20285         * xdisp.c (try_cursor_movement): Don't call try_window here.
20286         (redisplay_window): Never redisplay minibuffer when inactive.
20288         * window.c (select_window_1): Undo 9/21 change.
20290 2002-12-22  Steven Tamm  <steventamm@mac.com>
20292         * macterm.c (XTread_socket): Call KeyTranslate for control and
20293         meta to deal correctly shifted non-alpha characters, like C-S-5
20294         being treated like C-%.  Do not look for shift key to deal
20295         with masking off control-key with mac-reverse-ctrl-meta.
20297 2002-12-21  Richard M. Stallman  <rms@gnu.org>
20299         * xmenu.c (popup_get_selection): Now static.  New arg DO_TIMERS.
20300         If it is non-nil, run timers.  Use an unwind-protect to requeue
20301         the events that were read ahead.
20302         (popup_get_selection_unwind): New subroutine.
20303         (popup_get_selection_queue): File-scope variable now holds that queue.
20304         (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
20305         (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
20306         Use an unwind-protect to pop down the dialog box.
20307         (xdialog_show_unwind): New subroutine implements that.
20309         * xdisp.c (row_containing_pos): Change exit test using last_y.
20310         (try_window_id): Abort if row_containing_pos returns null.
20312         * lread.c (load_error_handler): New function.
20313         (Fload): Handle errors in Fsubstitute_in_file_name.
20314         Don't expect Fsignal to return.
20316         * eval.c: Errors and throws work right with interrupt blocking.
20317         (struct catchtag): New elt interrupt_input_blocked.
20318         (unwind_to_catch): Restore interrupt_input_blocked from saved value.
20319         (internal_catch, Fcondition_case, internal_condition_case)
20320         (internal_condition_case_1, internal_condition_case_2): Save it.
20321         (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
20323         * editfns.c (Fformat): Add parens.
20325         * dired.c (file_name_completion): Fix that change.
20326         Delete special quit-handling code; just use QUIT.
20328 2002-12-21  Tak Ota  <Takaaki.Ota@am.sony.com>
20330         * dired.c (file_name_completion): Close directory on error
20331         just as in directory_files_internal.
20333 2002-12-19  David Kastrup  <David.Kastrup@t-online.de>
20335         * window.c (Fset_window_configuration): Set old_point to correct
20336         value when new_current_buffer == current_buffer.
20338 2002-12-17  Ben Key  <bkey1@tampabay.rr.com>
20340         Revisited my earlier fix for the following entry in etc/PROBLEMS:
20341         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
20342         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
20344         These changes were in part based upon suggestions made by Peter
20345         'Luna' Runestig [peter@runestig.com].
20347         * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token)
20348         (g_b_init_get_token_information, g_b_init_lookup_account_sid)
20349         (g_b_init_get_sid_identifier_authority ): Add several static
20350         global variables.
20352         * w32.c (globals_of_w32): New function.  Used to initialize those
20353         global variables that must always be initialized on startup even
20354         when the global variable initialized is non zero.  Its primary
20355         purpose at this time is to set the global variables
20356         g_b_init_is_windows_9x, g_b_init_open_process_token,
20357         g_b_init_get_token_information, g_b_init_lookup_account_sid, and
20358         g_b_init_get_sid_identifier_authority to 0 on startup.
20359         Called from main.
20361         * w32.c (is_windows_9x): Perform initialization only if
20362         g_b_init_is_windows_9x is equal to 0.  On initialization set
20363         g_b_init_is_windows_9x equal to 1.
20365         * w32.c (open_process_token): Perform initialization only if
20366         g_b_init_open_process_token is equal to 0.  On initialization set
20367         g_b_init_open_process_token equal to 1.
20369         * w32.c (get_token_information): Perform initialization only if
20370         g_b_init_get_token_information is equal to 0.  On initialization
20371         set g_b_init_get_token_information equal to 1.
20373         * w32.c (lookup_account_sid): Perform initialization only if
20374         g_b_init_lookup_account_sid is equal to 0.  On initialization
20375         set g_b_init_lookup_account_sid equal to 1.
20377         * w32.c (get_sid_identifier_authority): Perform initialization
20378         only if g_b_init_get_sid_identifier_authority is equal to 0.
20379         On initialization set g_b_init_get_sid_identifier_authority equal to 1.
20381         * w32fns.c (globals_of_w32fns): New function.  Used to initialize
20382         those global variables that must always be initialized on startup
20383         even when the global variable initialized is non zero.
20384         Its primary purpose at this time is to initialize the global variable
20385         track_mouse_event_fn.
20387         * w32fns.c (w32_wnd_proc): Remove initialization of
20388         track_mouse_event_fn from the handler for the WM_SETFOCUS message.
20390         * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
20392         * w32menu.c (globals_of_w32menu): New function.  Used to
20393         initialize those global variables that must always be initialized
20394         on startup even when the global variable initialized is non zero.
20395         Its primary purpose at this time is to initialize the global
20396         variables get_menu_item_info and set_menu_item_info.
20398         * w32menu.c (initialize_frame_menubar): Remove initialization of
20399         get_menu_item_info and set_menu_item_info.
20401         * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
20403         * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
20404         Declare them.
20406         * emacs.c (main): Call globals_of_w32 prior to calling
20407         init_environment if WINDOWSNT is defined.  Call globals_of_w32fns
20408         and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
20409         is defined.
20411         * w32term.c (x_update_window_begin): Fix Windows API error
20412         detected by BoundsChecker.  Test to determine if
20413         w32_system_caret_hwnd is NULL prior to attempting to use
20414         SendMessage to send the WM_EMACS_HIDE_CARET message to it.
20416         * w32term.c (x_update_window_end): Fix Windows API error
20417         detected by BoundsChecker.  Test to determine if
20418         w32_system_caret_hwnd is NULL prior to attempting to use
20419         SendMessage to send the WM_EMACS_SHOW_CARET message to it.
20421 2002-12-17  Kenichi Handa  <handa@m17n.org>
20423         * coding.c (coding_system_require_warning): New variable.
20424         (syms_of_coding): DEFVAR it.
20426         * coding.h (coding_system_require_warning): Extern it.
20428         * fileio.c (choose_write_coding_system): Even if
20429         Vcoding_system_for_write is non-nil, if
20430         coding_system_require_warning is nonzero, call
20431         Vselect_safe_coding_system_function.
20433 2002-12-17  Markus Rost  <rost@math.ohio-state.edu>
20435         * Makefile.in (lisp, shortlisp): Add cus-face and timer.
20436         (lisp): Add font-core.
20438 2002-12-13  Stefan Monnier  <monnier@cs.yale.edu>
20440         * textprop.c (text_read_only): New arg `propval'.
20441         (get_char_property_and_overlay): Remove unused var `next_overlay'.
20442         (verify_interval_modification): Use text_read_only's new arg.
20444 2002-12-13  Kenichi Handa  <handa@m17n.org>
20446         * coding.c (Funencodable_char_position): Set pend correctly.
20448 2002-12-12  Jason Rumney  <jasonr@gnu.org>
20450         * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
20451         (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
20452         Be more careful about when help_events are generated.
20454 2002-12-12  Steven Tamm  <steventamm@mac.com>
20456         * macterm.c (mac_check_for_quit_char): Correctly set the
20457         modifiers of the event to 0.
20458         * mac.c (sys_select): Duplicate rfds before calling select to
20459         ensure that rfds survive the while loop.
20461 2002-12-11  Kim F. Storm  <storm@cua.dk>
20463         * xdisp.c (try_window_id): Don't call set_cursor_from_row if
20464         row_containing_pos returned NULL.
20466 2002-12-10  Steven Tamm  <steventamm@mac.com>
20468         * mac.c (sys_read): Fix sys_read to not call select if IO is
20469         non-blocking.
20470         (sys_select): Fix sys_select to not use a timeout larger than
20471         the one given.
20473 2002-12-10  Juanma Barranquero  <lektu@terra.es>
20475         * editfns.c (Fformat): Use alloca, not _alloca.
20477 2002-12-09  Richard M. Stallman  <rms@gnu.org>
20479         * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
20480         as the last thing.
20482 2002-12-09  Dave Love  <fx@gnu.org>
20484         * s/sol2-8.h: Removed.  (Not necessary.)
20486 2002-12-09  Matthew Swift  <swift@alum.mit.edu>
20488         * editfns.c (Fformat): Handle precision in string conversion
20489         specifiers like libc functions do (ie, print at most that many
20490         characters).
20492 2002-12-08  Richard M. Stallman  <rms@gnu.org>
20494         * xdisp.c (row_containing_pos): Check more carefully
20495         whether charpos is really in the row before returning it.
20497 2002-12-07  Steven Tamm  <steventamm@mac.com>
20499         * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
20501         * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
20502         each stack frame.  This may change as it could be time consuming.
20504         * macterm.c (mac_check_for_quit_char, quit_char_comp)
20505         (init_quit_char_handler, mac_determine_quit_char_modifiers)
20506         (mac_initialize): Add code to check for pressing of quit_char
20507         in the OS event queue.
20509         * mac.c (sys_select): Call mac_check_for_quit_char every second
20510         while blocking on select.
20512         * mac.c (sys_read): Use sys_select to test for input first
20513         before calling read, to allow C-g to break.
20515 2002-12-07  Richard M. Stallman  <rms@gnu.org>
20517         * minibuf.c (Fcompleting_read): Doc fix.
20519         * lread.c (syms_of_lread) <load-history>: Doc fix.
20521         * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
20523         * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
20524         autoload.
20526         * data.c (Fdefalias): Record in load-history redefining an autoload.
20528         * alloca.c: Undo ifdef change accidentally made on 12-04.
20530 2002-12-06  Francesco Potort\e,Al\e(B  <pot@gnu.org>
20532         * xfns.c (png_load): Avoid double gamma correction for PNG images.
20534 2002-12-04  Richard M. Stallman  <rms@gnu.org>
20536         * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
20538         * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
20540         * alloca.c: Don't use #error.
20542 2002-12-03  Dave Love  <fx@gnu.org>
20544         * buffer.c (Qucs_set_table_for_input): New.
20545         (Fget_buffer_create): Use it.
20546         (Qset_buffer_major_mode_hook): Deleted.
20547         (Fset_buffer_major_mode): Revert previous change.
20548         (init_buffer_once): Intern ucs-set-table-for-input.
20549         (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
20550         Add &Qucs_set_table_for_input.
20552 2002-12-03  Andreas Schwab  <schwab@suse.de>
20554         * callint.c (Fcall_interactively): Use next_event only if less
20555         than key_count.
20557 2002-12-02  Andrew Choi  <akochoi@shaw.ca>
20559         * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
20560         names to 255 characters.
20562         * macterm.c (XTread_socket): If all frames have been collapsed,
20563         expand the first one before handling drag-and-drop events.
20565         * s/darwin.h (GETPGRP_NO_ARG): Delete.  Replaced by GETPGRP_VOID,
20566         which is detected by autoconf.
20568 2002-12-01  Steven Tamm  <steventamm@mac.com>
20570         * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
20571         offset in two hints table to allow prebinding to be redone and
20572         allow the executable to be stripped.
20574 2002-11-29  Dave Love  <fx@gnu.org>
20576         * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
20577         already provided.
20579 2002-11-29  Richard M. Stallman  <rms@gnu.org>
20581         * xdisp.c (start_display): Check more intelligently for
20582         whether the line is continued.
20583         (move_it_vertically_backward): Clear it->continuation_lines_width.
20585 2002-11-28  Dave Love  <fx@gnu.org>
20587         * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
20588         * s/alliant.h, s/altos.h: Deleted.  (Unused/empty.)
20590 2002-11-27  Steven Tamm  <steventamm@mac.com>
20592         * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
20593         more descriptive error output from lread.c:Fload upon most require
20594         cycles during boostrapping.
20596 2002-11-27  Jason Rumney  <jasonr@gnu.org>
20598         * fileio.c (Finsert_file_contents): Give a more appropriate error
20599         for files bigger than 2Gb when off_t is 32 bit.
20601         * dired.c (Ffile_attributes): Don't return negative file sizes for
20602         files bigger than 2Gb when off_t is 32 bit.
20604 2002-11-27  Dave Love  <fx@gnu.org>
20606         * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20608         * systty.h: Don't conditionally define GETPGRP_NO_ARG.
20609         Test GETPGRP_VOID instead.
20610         [BSD_TERMIOS]: Remove definitions (never used).
20612         * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
20613         Don't define.
20614         (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
20616         * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
20618 2002-11-25  Jason Rumney  <jasonr@gnu.org>
20620         * w32.c (sys_write): Avoid non-blocking mode, which is not fully
20621         supported.
20623 2002-11-25  Dave Love  <fx@gnu.org>
20625         * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
20627         * Makefile.in (TEMACS_LDFLAGS): Update last change.
20629 2002-11-25  Andreas Schwab  <schwab@suse.de>
20631         * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
20633 2002-11-24  Steven Tamm  <steventamm@mac.com>
20635         * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
20636         determine the size of pointers alloced in unexed space instead
20637         of using possibly invalid emacs_zone pointers.  This fixes the
20638         binary incompatibility problems caused by updates to libSystem.B.
20640 2002-11-24  Richard M. Stallman  <rms@gnu.org>
20642         * search.c (Fstring_match): Doc fix.
20644         * callint.c (Fcall_interactively): If a command fails because
20645         `*' detects a read-only buffer, but RECORD_FLAG is set,
20646         record it anyway if the args don't actually do tty input.
20648 2002-11-22  Dave Love  <fx@gnu.org>
20650         * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
20652         * keyboard.c (interrupt_signal): Provide forward declaration.
20653         (kbd_buffer_store_event): Don't declare interrupt_signal.
20655         * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
20657 2002-11-21  Richard M. Stallman  <rms@gnu.org>
20659         * eval.c (interactive_p): Skip any number of bytecode
20660         and special form frames, in any order.
20662 2002-11-20  Jason Rumney  <jasonr@gnu.org>
20664         * w32fns.c (convert_mono_to_color_image): New function.
20665         (xbm_load, xbm_load_image): Use it when foreground or background
20666         is explicitly set.
20668 2002-11-19  Dave Love  <fx@gnu.org>
20670         * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
20672 2002-11-18  Jason Rumney  <jasonr@gnu.org>
20674         * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
20675         (XPutPixel): Swap blue and red.
20676         (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
20677         (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
20678         (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
20679         (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
20681 2002-11-18  Dave Love  <fx@gnu.org>
20683         * m/orion105.h (HAVE_ALLOCA): Don't define.
20685         * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
20687         * m/intel386.h: Don't include alloca.h or define alloca.
20689         * m/ia64.h: Don't include alloca.h, stdlib.h.  Don't declare
20690         malloc, realloc, calloc.
20692         * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
20693         (bcmp): Don't define.
20695         * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
20697         * m/amdahl.h: Don't define LIB_STANDARD.
20699         * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
20701         * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
20703         * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
20704         Don't include alloca.h.
20706         * s/aix3-2.h (HAVE_FSYNC): Don't define.
20708         * regex.c (_GNU_SOURCE): Don't define.
20710         * process.c (_GNU_SOURCE): Don't define.
20712         * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
20714 2002-11-18  Markus Rost  <rost@math.ohio-state.edu>
20716         * s/sol2-8.h: Include sol2-6.h.
20718 2002-11-18  Miles Bader  <miles@gnu.org>
20720         * dispextern.h (struct face): Add `overstrike' field.
20721         * xterm.c (x_draw_glyph_string_foreground)
20722         (x_draw_composite_glyph_string_foreground): Implement overstriking.
20723         * xfaces.c (load_face_font): Set `face->overstrike' based on
20724         result from choose_face_font.
20725         (best_matching_font, choose_face_font): Add `needs_overstrike'
20726         argument, and use it to return whether overstriking is desirable
20727         for this face/font combo.
20728         (set_font_frame_param: Pass new argument to choose_face_font.
20730 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
20732         This change is my fix for the following entry in etc/PROBLEMS:
20733         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
20734         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
20736         * w32.c: Added wrapper functions around the win32 API functions
20737         OpenProcessToken, GetTokenInformation, LookupAccountSid, and
20738         GetSidIdentifierAuthority.  These wrapper functions serve two
20739         purposes:
20740         1.  They ensure that the wrapped function can never be called
20741         when Emacs is running on an operating system on which they are
20742         not supported (Microsoft Windows 95 / 98 / ME).
20743         2.  They call the wrapped functions via function pointers rather
20744         than calling them directly.  This avoids taking advantage of the
20745         undocumented fact that although these functions are not supported
20746         in the 9x branch of Microsoft Windows, the functions do exist in
20747         the version of advapi32.dll that is found in the 9x branch of
20748         Microsoft Windows.
20750         * w32.c (init_user_info): Replace the calls to the win32 API
20751         functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
20752         and GetSidIdentifierAuthority with calls to the newly added
20753         wrapper functions.
20755         * w32.h: Added extern declarations for the following functions:
20756         syms_of_w32term, syms_of_w32fns, syms_of_w32select,
20757         syms_of_w32menu, and void syms_of_fontset.
20759         * w32fns.c (w32_wnd_proc): Add code to reinitialize the
20760         function pointer track_mouse_event_fn in the handler for the
20761         WM_SETFOCUS message.
20763         * w32menu.c (initialize_frame_menubar): Add code to
20764         reinitialize the function pointers set_menu_item_info and
20765         get_menu_item_info.
20767 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
20769         * sound.c: Added a partial implementation of play-sound-internal
20770         for Microsoft Windows.  Added various #ifdef / #else / #endif
20771         code blocks to separate the code that will compile under
20772         Microsoft Windows from the code that is specific to GNU/Linux.
20773         Moved several blocks of code around to make this separation of code
20774         into Windows compatible and GNU/Linux compatible code blocks easier.
20776         * makefile.w32-in: Include sound.c and link with WinMM.lib.
20778         * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
20779         added support for play-sound-internal under Windows would be
20780         included in the build of Emacs.
20782 2002-11-16  Jason Rumney  <jasonr@gnu.org>
20784         * w32fns.c (w32_load_system_font): Don't disable Cleartype.
20786         * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
20788 2002-11-15  Stefan Monnier  <monnier@cs.yale.edu>
20790         * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
20791         (adjust_point_for_property): Move out of display and invisible even if
20792         we were already inside before (in case a property was added while
20793         we weren't looking).  Be more careful when handling invisible props.
20794         Skip invisible text as if it really wasn't there at all.
20796 2002-11-15  Jason Rumney  <jasonr@gnu.org>
20798         * w32term.c (x_draw_image_foreground)
20799         (w32_draw_image_foreground_1): Use standard copy and invert
20800         operations to draw images.
20802         * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
20803         depth of 1.
20804         (xbm_read_bitmap_data): Invert bits as xbm is read in.
20805         (XPutPixel): Don't invert bits here.
20807 2002-11-15  Jason Rumney  <jasonr@gnu.org>
20809         * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
20810         (w32_draw_image_foreground_1): Handle image masks.
20811         (x_draw_image_glyph_string): Don't BitBlt transparently.
20813         * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
20814         (x_from_xcolors): Adjust RGB values for W32.
20815         (image_background, image_background_transparent)
20816         (postprocess_image, x_to_xcolors, x_disable_image)
20817         (x_build_heuristic_mask): Adapt for W32 and enable.
20818         (x_create_x_image_and_pixmap): Mark images with palettes as such.
20819         (xbm_load): Remove unused variable.
20821 2002-11-14  Richard M. Stallman  <rms@gnu.org>
20823         * buffer.c (syms_of_buffer): Doc fix.
20825 2002-11-14  Dave Love  <fx@gnu.org>
20827         * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
20829         * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
20830         * xmenu.c (unuse_menu_items, digest_single_submenu):
20831         * xfns.c (x_put_x_image):
20832         * xdisp.c (message2_nolog, set_message):
20833         * undo.c (record_point):
20834         * terminfo.c (tparam):
20835         * syntax.c (scan_sexps_forward):
20836         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
20837         * composite.c (update_compositions):
20838         * cm.c (calccost, cmgoto):
20839         * charset.c (c_string_width): Declare all args (per C99).
20841         * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
20843         * lisp.h (get_specified_cursor_type, get_window_cursor_type):
20844         Don't declare.
20846         * emacs.c (main) [!VMS]: Avoid third arg.
20848         * fns.c (Fcopy_sequence): Doc fix.
20849         (Fmap_char_table): Cast `call2'.
20851 2002-11-14  Francesco Potort\e,Al\e(B  <pot@gnu.org>
20853         * s/sol2-8.h: New file.
20855 2002-11-14  Kim F. Storm  <storm@cua.dk>
20857         * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
20858         dependency on `risky-local-variable' and the :propertize form.
20860 2002-11-12  Stefan Monnier  <monnier@cs.yale.edu>
20862         * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
20864         * syntax.c (scan_sexps_forward): Undo last patch.
20865         Use a more obvious fix: check eob before updating the syntax table.
20867 2002-11-09  Stefan Monnier  <monnier@cs.yale.edu>
20869         * syntax.c (scan_sexps_forward): Update syntax table before reading
20870         a char rather than after so we don't update the table past eob.
20872 2002-11-09  Dave Love  <fx@gnu.org>
20874         * buffer.c (Fset_buffer_major_mode): Fix last change.
20876         * regex.c (regexec): Fix pmatch declaration.
20878         * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
20880         * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
20881         to self-inserting characters.
20882         (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
20884         * coding.c (Vtranslation_table_for_input): New.
20885         (syms_of_coding): DEFVAR it.
20887 2002-11-08  Juanma Barranquero  <lektu@terra.es>
20889         * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
20890         window.
20892 2002-11-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
20894         * process.c (Fformat_network_address): Remove unused locals p,
20895         cp, and i.
20897 2002-11-06  Dave Love  <fx@gnu.org>
20899         * buffer.c (Qset_buffer_major_mode_hook): New.
20900         (Fset_buffer_major_mode): Use it.
20902 2002-11-06  Richard M. Stallman  <rms@gnu.org>
20904         * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
20905         and stop_polling.
20907         * process.c (wait_reading_process_input):
20908         Test POLLING_PROBLEM_IN_SELECT, not hpux.
20909         Avoid initialization for auto Lisp_Object var.
20911         * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
20913         * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
20915 2002-11-05  Richard M. Stallman  <rms@gnu.org>
20917         * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
20919         * callint.c (Fcall_interactively): New local filter_specs.
20920         (Fcall_interactively): Check for progn as well as let.
20921         Add a gcpro.
20922         (Qprogn): New variable.
20923         (syms_of_callint): Staticpro and init Qprogn.
20925 2002-11-04  John Paul Wallington  <jpw@shootybangbang.com>
20927         * lread.c (Feval_buffer): Doc fix.
20929 2002-11-04  Dave Love  <fx@gnu.org>
20931         * keyboard.c (read_char): Always translate iff
20932         Vkeyboard_translate_table is a char table and c is valid.
20934         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
20935         and fix C types.
20937 2002-11-03  Stefan Monnier  <monnier@cs.yale.edu>
20939         * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
20941         * editfns.c (get_pos_property): Don't hardcode Qfield.
20943         * keyboard.c (adjust_point_for_property): Handle `display' prop on
20944         overlays.  Also handle `invisible' prop.
20946 2002-11-02  Stefan Monnier  <monnier@cs.yale.edu>
20948         * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
20949         (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
20951 2002-11-01  Andreas Schwab  <schwab@suse.de>
20953         * editfns.c (Fmessage): Revert last change to properly handle %%.
20955 2002-11-01  Stefan Monnier  <monnier@cs.yale.edu>
20957         * xmenu.c (unuse_menu_items): New fun.
20958         (menu_items_inuse): New var.
20959         (syms_of_xmenu): Initialize it.
20960         (init_menu_items): Use it to detect re-entrance.
20961         (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
20962         (Fx_popup_menu): Remove spurious XSETFRAME.
20964         * editfns.c (find_field): Make an exception for nil fields.
20966 2002-11-01  Dave Love  <fx@gnu.org>
20968         * m/gec63.h: Deleted.
20970 2002-10-31  Dave Love  <fx@gnu.org>
20972         * xterm.c (XTread_socket): Fix last change.
20973         (xaw_scroll_callback): Cast call_data to long to avoid warning.
20975 2002-10-31  Stefan Monnier  <monnier@cs.yale.edu>
20977         * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
20979 2002-10-30  Stefan Monnier  <monnier@cs.yale.edu>
20981         * editfns.c (overlays_around, get_pos_property): New funs.
20982         (find_field): Use them.
20983         Also be careful not to modify POS before its last use.
20984         (Fmessage): Don't Fformat if there's nothing to format.
20986 2002-10-30  Dave Love  <fx@gnu.org>
20988         * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
20989         [HAVE_PTY_H]; Include pty.h.
20991         * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
20993         * xterm.c (Qeql): Declare.
20994         (Vx_keysym_table): New.
20995         (syms_of_xterm): Initialize it.
20996         (XTread_socket): Use it.  Deal with ASCII keysyms.
20997         (XSetIMValues) [HAVE_X11R6]: Prototype.
20999         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
21000         (lispy_kana_keys): Comment out.
21001         (make_lispy_event) [XK_kana_A]: Comment out.
21002         (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
21003         Fix sprintf call.
21005         * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
21006         regexp.h change).
21007         (TERMINFO, LIBS_TERMCAP): Define.
21009         * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
21010         (bcmp): Define conditional on HAVE_BCMP.
21011         (NO_SIOCTL_H): Don't define.
21012         (TIOCSIGSEND): Don't make conditional on IRIX6.
21014         * s/sol2-5.h: Don't include strings.h.
21015         (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
21017         * s/irix6-0.h (IRIX6): Don't define.
21018         (bcopy, bcmp, bzero): Don't undef.
21020         * s/irix6-5.h: Don't include strings.h.
21021         (IRIX6): Don't define.
21022         (bcopy, bcmp, bzero): Don't undef.
21024         * syntax.c (Fforward_comment): Doc fix.
21026 2002-10-29  Kim F. Storm  <storm@cua.dk>
21028         * process.c (Fsignal_process): Allow PROCESS to be specified by
21029         name in addition to pid (as integer or string).
21031 2002-10-28  Harald Maier  <Harald.Maier.BW@t-online.de>  (tiny change)
21033         * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
21034         environments.
21036 2002-10-27  Kim F. Storm  <storm@cua.dk>
21038         * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21040         * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
21042         * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
21044         * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
21046 2002-10-26  Richard M. Stallman  <rms@gnu.org>
21048         * editfns.c (Fformat): Detect invalid format letters for floats.
21050 2002-10-25  Kenichi Handa  <handa@m17n.org>
21052         * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
21053         (x_set_title): Likewise.
21055 2002-10-25  Juanma Barranquero  <lektu@terra.es>
21057         * macgui.h:
21058         * w32gui.h: Remove definition of XColor.
21060         * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
21062 2002-10-24  Kim F. Storm  <storm@cua.dk>
21064         * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
21065         Callers changed (supply dummy arg).
21067         * lisp.h (get_window_cursor_type): Update prototype.
21069         * w32term.c (x_display_and_set_cursor): Get active_cursor from
21070         get_window_cursor_type to track system caret.
21072 2002-10-24  Kim F. Storm  <storm@cua.dk>
21074         * process.c (Fformat_network_address): New function.
21075         (syms_of_process): Defsubr it.
21076         (list_processes_1): Use it to format :local/:remote address if
21077         service/host is not set; before Emacs would crash in that case.
21078         (Fmake_network_process): Don't use Ffind_operation_coding_system
21079         to setup coding system if host or service is not set.
21081 2002-10-23  Juanma Barranquero  <lektu@terra.es>
21083         Patch suggested by Jay Finger <jay_finger@hotmail.com>.
21085         * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
21086         COLORREF.
21088         * macgui.h:
21089         * w32gui.h: Add definition of XColor.
21091         * macfns.c:
21092         * w32fns.c:
21093         * xfaces.c: Remove definition of XColor.
21095 2002-10-22  Stefan Monnier  <monnier@cs.yale.edu>
21097         * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
21099         * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
21100         Only ignore truly dedicated windows.  For UNSHOW_BUFFER, delete the
21101         window if it is dedicated.
21102         (Fshrink_window): Add preserve_before as was done for enlarge_window.
21103         (Vspecial_display_function): Update docstring.
21105         * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
21106         (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
21107         (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
21109 2002-10-21  Stefan Monnier  <monnier@cs.yale.edu>
21111         * casefiddle.c (casify_region): Don't treat a prefix char as part
21112         of a word when at the beginning.
21114 2002-10-17  Juanma Barranquero  <lektu@terra.es>
21116         * lread.c (syms_of_lread): Fix typos.
21118 2002-10-17  Dave Love  <fx@gnu.org>
21120         * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
21122 2002-10-16  Richard M. Stallman  <rms@gnu.org>
21124         * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
21126 2002-10-14  Juanma Barranquero  <lektu@terra.es>
21128         * w16select.c (syms_of_win16select): Fix docstring for
21129         `selection-coding-system'.
21131         * w32select.c (syms_of_w32select): Likewise.
21133 2002-10-14  Stefan Monnier  <monnier@cs.yale.edu>
21135         * syntax.c (scan_lists): Don't get fooled by a symbol ending with
21136         a backslash-quoted char.
21137         (scan_lists, scan_sexps_forward): Pacify the compiler.
21139 2002-10-13  Richard M. Stallman  <rms@gnu.org>
21141         * window.c (window_scroll): Set immediate_quit.
21143         * print.c (print): When backquote form is the car of a list,
21144         output in old style.  Use old_backquote_output to output all
21145         comma forms inside it in old style too.
21147         * buffer.h (struct buffer): Move `undo_list' down below `name'.
21149 2002-10-11  Markus Rost  <rost@math.ohio-state.edu>
21151         * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
21152         batch mode).
21154         * lread.c (Fload): Doc fix (load-suffixes).
21156 2002-10-10  Steven Tamm  <steventamm@mac.com>
21158         * macterm.c (syms_of_macterm, mac_get_mouse_btn):
21159         Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
21160         Also switch the default to Qnil from Qt.
21162 2002-10-08  Kenichi Handa  <handa@m17n.org>
21164         * coding.c (code_convert_region): When we need more GAP for
21165         conversion, pay attention to the case that coding->produced is not
21166         greater than coding->consumed.
21168 2002-10-07  Richard M. Stallman  <rms@gnu.org>
21170         * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
21172 2002-10-06  Andrew Choi  <akochoi@shaw.ca>
21174         * macmenu.c (mac_menu_show): Add j to count menu items; match
21175         menu_item_selection to it to find selected item.
21177 2002-10-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21179         * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
21180         cases.  The correct fix is to pass ReparentNotify to Xt.
21181         The shell widget interprets ConfigureNotify differently depending
21182         on if it has been reparented or not.
21184 2002-10-05  Markus Rost  <rost@math.ohio-state.edu>
21186         * editfns.c (Fformat_time_string): Doc fix.
21188 2002-10-05  John Paul Wallington  <jpw@shootybangbang.com>
21190         * fns.c (Flength): Doc fix.
21192 2002-10-04  Stefan Monnier  <monnier@cs.yale.edu>
21194         * keyboard.c (keyremap): New struct.
21195         (read_key_sequence): Use it: globally replace keytran_foo with
21196         keytran.foo and fkey_foo with fkey.foo.  Rename temp vars
21197         keytran_next and fkey_next to just `next'.
21199 2002-10-04  Steven Tamm  <steventamm@mac.com>
21201         * macterm.c (keycode_to_xkeysym_table): Change return to be
21202         treated like an X keysym.
21204 2002-10-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
21206         * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
21207         and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
21208         This is to also handle x/y changes that occur because of a resize.
21210 2002-10-02  John Paul Wallington  <jpw@shootybangbang.com>
21212         * frame.c (Vdelete_frame_functions): New variable.
21213         (syms_of_frame): Initialize and defvar it.
21214         (Fdelete_frame): Use it instead of delete-frame-hook.  Don't run
21215         it when frame's `tooltip' parameter is non-nil.
21217         * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
21219         * w32fns.c (x_create_tip_frame): Likewise.
21221         * macfns.c (x_create_tip_frame): Likewise.
21223 2002-09-30  Kenichi Handa  <handa@m17n.org>
21225         * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
21226         -1 before calling ccl_driver.
21228         * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
21229         Only when it is non-nil, handle composition sequence.
21230         (setup_coding_system) <0>: Don't force composition handling.
21232         * Makefile.in (lisp, shortlisp): Add utf-16.elc.
21234 2002-09-29  Richard M. Stallman  <rms@gnu.org>
21236         * search.c (Freplace_match): Adjust match data for the substitution
21237         just made in the buffer.
21239         * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
21240         (redisplay_internal): Use them.  Do RESUME_POLLING at end of function.
21242 2002-09-27  Richard M. Stallman  <rms@gnu.org>
21244         * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
21245         (read_char): Use them.  Do all exits thru the end of the function.
21247 2002-09-27  Kenichi Handa  <handa@etl.go.jp>
21249         * xfaces.c (try_font_list): Pay attention to the case that FAMILY
21250         is nil.
21252 2002-09-26  Richard M. Stallman  <rms@gnu.org>
21254         * regex.h (__restrict_arr): Don't define if already defined.
21256         * coding.c (run_pre_post_conversion_on_str):
21257         Save and restore Vdeactivate_mark.
21259 2002-09-26  John Paul Wallington  <jpw@shootybangbang.com>
21261         * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
21263 2002-09-26  Kenichi Handa  <handa@etl.go.jp>
21265         * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY.  If it is
21266         nonzero, try face's family at first.  Otherwise try FAMILY at first.
21267         (choose_face_font): If C is a single byte char or latin-1, call
21268         try_font_list with PREFER_FACE_FAMILY 1.
21270 2002-09-21  Richard M. Stallman  <rms@gnu.org>
21272         * window.c (select_window_1): Don't select frame.
21273         Set frame's selected window only when frame itself is selected.
21274         (Fselect_window): Doc fix.
21276 2002-09-18  Kim F. Storm  <storm@cua.dk>
21278         * process.c (make-network-process): Doc fix (there is no
21279         network-server-log-function hook).
21281 2002-09-18  Richard M. Stallman  <rms@gnu.org>
21283         * print.c (print): Clear out the unused parts of Vprint_number_table.
21284         (syms_of_print): Doc fix for `print-number-table'.
21286         * unexelf.c (unexec): Undo previous change.
21288 2002-09-17  Andreas Schwab  <schwab@suse.de>
21290         * m/alpha.h [LINUX]: Don't define DATA_START.
21292 2002-09-16  Dave Love  <fx@gnu.org>
21294         * unexelf.c (unexec): Deal with .got, reinstating change from
21295         25-08-1999.
21297 2002-09-13  Richard M. Stallman  <rms@gnu.org>
21299         * s/sol2-6.h (UNEXEC): Comment out definition.
21301         * unexsol.c (unexec): Don't downcase first letter of error msg.
21303         * xfaces.c (Fcolor_supported_p): Just one arg is required.
21305 2002-09-12  Markus Rost  <rost@math.ohio-state.edu>
21307         * unexsol.c: Include buffer.h, charset.h, coding.h.
21309 2002-09-11  Richard M. Stallman  <rms@gnu.org>
21311         * unexsol.c: Don't use report_file_error; do it by hand
21312         using dlerror.
21314         * process.c (wait_reading_process_input, both versions):
21315         Before calling turn_on_atimers, call stop_polling.
21317         * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
21319         * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
21320         we go to too_near_end, call clear_glyph_matrix.
21321         (redisplay_window): After make_cursor_line_fully_visible,
21322         call clear_glyph_matrix and bypass `goto done'.
21324         * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
21325         and we have non-toolkit scroll bars, return nil for scroll-bar-width.
21327 2002-09-10  Richard M. Stallman  <rms@gnu.org>
21329         * fileio.c (Fdo_auto_save): Catch error making directory.
21330         Only call push_message if we need to.
21331         At the same time, make an unwind-protect to pop it.
21332         Rename local message_p to old_message_p.
21333         (do_auto_save_make_dir, do_auto_save_eh): New functions.
21334         (do_auto_save_unwind): Don't call pop_message.
21336         * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
21338         * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
21340         * alloc.c (Fgarbage_collect): Use pop_message_unwind.
21342         * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
21344 2002-09-10  Stefan Monnier  <monnier@cs.yale.edu>
21346         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
21347         (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
21348         (re_match_2_internal): Be more careful with infinite loops.
21350 2002-09-10  Kim F. Storm  <storm@cua.dk>
21352         * macros.c (end_kbd_macro): New function.
21353         (Fend_kbd_macro): Use it.
21355         * macros.h (end_kbd_macro): Declare extern.
21357         * keyboard.c (Fdiscard_input): If defining keyboard macro,
21358         end and save it instead of discarding it.
21360 2002-09-09  Markus Rost  <rost@math.ohio-state.edu>
21362         * s/sol2-6.h: Fix typo.  Add comment.
21364 2002-09-09  Richard M. Stallman  <rms@gnu.org>
21366         * regex.c (regnum_t): Use signed int, not unsigned int.
21368         * s/sol2-6.h: New file.
21370         * s/sol2-5.h (UNEXEC): Definition deleted.
21372 2002-09-08  Kim F. Storm  <storm@cua.dk>
21374         * macros.c (executing_macro_index): Change type to EMACS_INT.
21375         (syms_of_macros): DEFVAR_INT it (needed by kmacro).
21377         * macros.h (executing_macro_index): Change type to EMACS_INT.
21379 2002-09-06  Richard M. Stallman  <rms@gnu.org>
21381         * casetab.c (set_case_table): Make canon table point to eqv table.
21383 2002-09-06  Juanma Barranquero  <lektu@terra.es>
21385         * coding.c (syms_of_coding): Fix spacing.
21387         * composite.c (Fcompose_region_internal)
21388         (Fcompose_string_internal): Likewise.
21390         * data.c (Flsh): Likewise.
21392         * fontset.c (Fset_fontset_font): Likewise.
21394         * macfns.c (Fx_server_max_request_size): Likewise.
21396         * w16select.c (syms_of_win16select): Likewise.
21398         * w32select.c (syms_of_w32select): Likewise.
21400         * xselect.c (syms_of_xselect): Likewise.
21402 2002-09-05  Richard M. Stallman  <rms@gnu.org>
21404         * regex.c (set_image_of_range_1): In no-TRANSLATE case,
21405         call EXTEND_RANGE_TABLE and return a proper value.
21406         (set_image_of_range): Don't call set_image_of_range_1
21407         if no TRANSLATE or if range includes all of Latin-1.
21408         Only call it for the Latin-1 part of the range.
21409         For other cases, make two separate ranges,
21410         one for the original specified characters and one for
21411         their case-conversions.
21413 2002-09-04  Richard M. Stallman  <rms@gnu.org>
21415         * s/sol2-5.h (UNEXEC): Use unexsol.o.
21417         * window.c (displayed_window_lines): Correct for one-off bug
21418         in HEIGHT on non-window displays.
21420         * regex.c (set_image_of_range_1): New function.
21421         (set_image_of_range): Use set_image_of_range_1 for Latin-1.
21422         Return a value to indicate running out of memory.
21423         (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
21424         (extend_range_table_work_area): New subroutine.
21425         (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
21426         Different calling conventions, and used from set_image_of_range{,_1}.
21427         (IMMEDIATE_QUIT_CHECK): Definitions moved.
21429 2002-09-04  Juanma Barranquero  <lektu@terra.es>
21431         * makefile.w32-in: All dependencies updated.
21433 2002-09-01  Richard M. Stallman  <rms@gnu.org>
21435         * unexsol.c: New file.
21437         * xfns.c (Qbox): Declare external, don't define.
21439         * xdisp.c (redisplay_window) <force-start case>:
21440         If point is on semi-visible last line, reposition
21441         it at previous line.
21443         * alloc.c (display_malloc_warning): Use display-warning.
21444         (malloc_warning_1): Function deleted.
21446         * alloc.c [ALLOC_DEBUG]: #undef INLINE.
21448         * lread.c (read1): Handle #! by skipping the line.
21450 2002-08-31  Richard M. Stallman  <rms@gnu.org>
21452         * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
21453         Don't include LDFLAGS.
21454         (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
21456 2002-08-31  Eli Zaretskii  <eliz@is.elta.co.il>
21458         * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
21459         member of x_display_info unless we compile for some window system.
21461 2002-08-31  Kim F. Storm  <storm@cua.dk>
21463         * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
21464         (get_window_cursor_type): Don't use them.
21465         (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
21467 2002-08-30  Kenichi Handa  <handa@etl.go.jp>
21469         * xdisp.c (get_next_display_element): Fix previous change.
21471 2002-08-30  Andrew Choi  <akochoi@shaw.ca>
21473         * macterm.c (expose_overlaps): New function (merge code from xterm.c).
21474         (expose_window): Use it to fix the display of overlapping
21475         rows (merge code from xterm.c).
21477         * macfns.c (Qbox): Add extern declaration.
21479 2002-08-30  Juanma Barranquero  <lektu@terra.es>
21481         * w32fns.c (Qbox): Make extern.
21482         (syms_of_w32fns): Remove initialization of Qbox.
21484 2002-08-30  Rune Kleveland  <runekl@viewpoint.no>  (tiny change)
21486         * xfns.c (Fx_open_connection): Fix error message.
21488 2002-08-30  Kim F. Storm  <storm@cua.dk>
21490         The following changes consolidates the handling of the cursor
21491         type in xdisp.c, moving duplicate code and functionality from
21492         xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
21494         * frame.h (enum text_cursor_kinds): Consolidated here.
21495         Added DEFAULT_CURSOR value.
21496         (struct frame) <desired_cursor, cursor_width>
21497         <blink_off_cursor, blink_off_cursor_width>: New fields.
21498         Consolidated from output_x, output_w32 and output_mac structs.
21499         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21500         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
21502         * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
21503         Variables consolidated here.
21504         (Valternate_cursor_type, Qalternate_cursor_type): New variables.
21505         (Vcursor_in_non_selected_windows): Renamed from
21506         cursor_in_non_selected_windows and changed to Lisp_Object.
21507         (syms_of_xdisp): Define and staticpro new and moved variables.
21508         (get_specified_cursor_type): Renamed from x_specified_cursor_type;
21509         consolidated here.  Recognize Qhollow setting.
21510         (set_frame_cursor_types): New function to set frame cursor types
21511         based on the frame parameters.
21512         (get_window_cursor_type): New function to calculate new cursor
21513         type and width for the specified window.  Based on duplicated
21514         code consolidated here.
21515         Enhancements: cursor-in-non-selected-windows may be a cursor type,
21516         check buffer-local alternate-cursor-type and blink-cursor-alist
21517         before using built-in blink off methods.
21519         * dispextern.h (cursor_in_non_selected_windows): Extern removed.
21521         * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
21522         (get_specified_cursor_type, get_window_cursor_type)
21523         (set_frame_cursor_types): Added prototypes.
21525         * macfns.c (x_specified_cursor_type): Removed.
21526         (x_set_cursor_type): Use set_frame_cursor_types.
21527         (Qbar, Qbox): Removed.
21528         (syms_of_macfns): Don't intern or staticpro them.
21530         * macterm.c (x_specified_cursor_type): Remove prototype.
21531         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21532         (x_display_and_set_cursor): Use get_window_cursor_type.
21533         Remove unused local variables cursor_non_selected, active_cursor.
21534         Redraw cursor if hbar cursor width changes.
21535         (make_mac_frame): Set FRAME_DESIRED_CURSOR.
21537         * macterm.h (enum text_cursor_kinds): Removed.
21538         (struct output_mac) <current_cursor, desired_cursor, cursor_width>
21539         <blink_off_cursor, blink_off_cursor_width>: Members removed.
21540         (FRAME_DESIRED_CURSOR): Macro removed.
21542         * w32fns.c (Vblink_cursor_alist): Removed.
21543         (Qbar, Qhbar, Qbox, Qhollow): Removed.
21544         (syms_of_w32fns): Don't intern, staticpro, or define them.
21545         (x_specified_cursor_type): Removed.
21546         (x_set_cursor_type): Use set_frame_cursor_types.
21548         * w32term.c (x_specified_cursor_type): Remove prototype.
21549         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21550         (x_display_and_set_cursor): Use get_window_cursor_type.
21551         Remove unused local variables cursor_off_state.
21552         Redraw cursor if hbar cursor width changes.
21553         Changed all occurrences of w32_highlight_frame to x_highlight_frame.
21555         * w32term.h (enum text_cursor_kinds): Removed.
21556         (struct output_w32) <current_cursor, desired_cursor, cursor_width>
21557         <blink_off_cursor, blink_off_cursor_width>: Members removed.
21558         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21559         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
21560         (struct w32_display_info) <x_highlight_frame>: Renamed member from
21561         w32_highlight_frame.
21563         * xfns.c (Vblink_cursor_alist): Removed.
21564         (Qbar, Qhbar, Qbox, Qhollow): Removed.
21565         (syms_of_xfns): Don't intern, staticpro, or define them.
21566         (x_specified_cursor_type): Removed.
21567         (x_set_cursor_type): Use set_frame_cursor_types.
21569         * xterm.c (x_specified_cursor_type): Remove prototype.
21570         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
21571         (x_display_and_set_cursor): Use get_window_cursor_type.
21572         Remove unused local variables cursor_off_state.
21573         Redraw cursor if hbar cursor width changes.
21575         * xterm.h (enum text_cursor_kinds): Removed.
21576         (struct output_x) <current_cursor, desired_cursor, cursor_width>
21577         <blink_off_cursor, blink_off_cursor_width>: Members removed.
21578         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
21579         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
21580         (x_specified_cursor_type): Remove prototype.
21582 2002-08-28  Richard M. Stallman  <rms@gnu.org>
21584         * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
21585         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
21586         (Vblink_cursor_alist): New variable.
21587         (syms_of_w32fns): Initialize and defvar it.
21588         (x_specified_cursor_type): Recognize Qbox for filled box.
21589         Exceptions are hollow boxes.
21590         (Qbox, Qhollow): New variables.
21591         (syms_of_w32fns): Initialize and staticpro them.
21593         * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
21594         New macros.
21595         (struct w32_output): New fields blink_off_cursor,
21596         blink_off_cursor_width.
21597         (FRAME_CURSOR_WIDTH): New macro.
21599         * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
21600         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
21602         * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
21603         for bar cursor.
21605         * w32term.c (expose_overlaps): New function.
21606         (expose_window): Use it to fix the display of overlapping rows.
21608 2002-08-28  Simon Josefsson  <jas@extundo.com>
21610         * xfns.c (Fx_open_connection): Improve help when X connection
21611         fails, xhost is insecure and xauth is better.
21613 2002-08-28  Juanma Barranquero  <lektu@terra.es>
21615         * makefile.w32-in: Add missing dependencies on w32term.h and
21616         composite.h.
21618         * emacs.c (USAGE1): Add missing newline.
21620 2002-08-27  Andrew Choi  <akochoi@shaw.ca>
21622         * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
21624 2002-08-27  Richard M. Stallman  <rms@gnu.org>
21626         * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
21627         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
21628         (Vblink_cursor_alist): New variable.
21629         (syms_of_xfns): Initialize and defvar it.
21630         (x_specified_cursor_type): Recognize Qbox for filled box.
21631         Exceptions are hollow boxes.
21632         (Qbox, Qhollow): New variables.
21633         (syms_of_xfns): Initialize and staticpro them.
21635         * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
21636         New macros.
21637         (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
21639         * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
21640         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
21642         * emacs.c (main): Handle --script.
21643         (USAGE1): Mention --script.
21644         (standard_args): Define sort order for --script.
21646 2002-08-27  Gerd Moellmann  <gerd.moellmann@t-online.de>
21648         * xdisp.c (redisplay_updating_p): Variable removed.
21649         (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
21650         New variables.
21651         (init_iterator): Don't free realized faces if
21652         inhibit_free_realized_faces is set.
21653         (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
21654         (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
21655         initialize Qinhibit_free_realized_faces.
21657         * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
21658         when iterator is adding glyphs to a glyph matrix.
21660 2002-08-27  Kenichi Handa  <handa@etl.go.jp>
21662         * xdisp.c (get_next_display_element): In unibyte case, don't use
21663         octal form for such eight-bit characters that can be converted to
21664         multibyte char.
21666 2002-08-26  Kim F. Storm  <storm@cua.dk>
21668         * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
21669         foreground and background colors.  From Joe Buehler.
21671 2002-08-26  Miles Bader  <miles@gnu.org>
21673         * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
21675 2002-08-25  Andrew Choi  <akochoi@shaw.ca>
21677         * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
21678         defined instead of MAC_OSX.
21680         * s/darwin.h (select): Define select to sys_select only if
21681         HAVE_CARBON is defined.
21682         (HAVE_WORKING_VFORK): #undef it.  Define vfork to fork.
21683         (DONT_REOPEN_PTY): #def it.
21685         * macterm.c (XTread_socket): Remove code to call
21686         SendEventToEventTarget for keys with command modifiers when
21687         mac_command_key_is_meta is nil.
21689 2002-08-24  Andreas Schwab  <schwab@suse.de>
21691         * eval.c (Fdefvar): Fix last change.
21693 2002-08-23  Richard M. Stallman  <rms@gnu.org>
21695         * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
21696         Record variables in load history as (defvar . VAR).
21697         (Fdefvar): Don't record in load history if no initial value.
21698         (Qdefvar): New variable.
21699         (syms_of_eval): Init and staticpro it.
21701         * lread.c (syms_of_lread): Doc fix.
21702         (build_load_history): Use Fmember to see if a definition
21703         is already in the Vload_history element.
21705         * process.c (Fstart_process): Remove /: from program name.
21707         * emacs.c (decode_env_path): Don't add /: if file name handler
21708         has a `safe-magic' property.
21710         * callproc.c (Fcall_process): Remove /: from program name.
21712 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
21714         * regex.c (PATFETCH): Remove the translating fetch.
21715         (PATFETCH_RAW): Rename to PATFETCH.
21716         (set_image_of_range): New fun.
21717         (SET_RANGE_TABLE_WORK_AREA): Use it.
21718         (regex_compile): Don't translate the pattern chars so eagerly.
21719         Only do it when inserting an `exactn' bytecode or when handling
21720         a char-range.
21721         (mutually_exclusive_p): Avoid empty statement.
21723 2002-08-22  Kim F. Storm  <storm@cua.dk>
21725         * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
21726         end up on a partially visible line; this reverts a specific part
21727         of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
21728         display error which has been reported several times now.
21729         However it introduces the problem that changes was supposed to fix.
21730         See my comments in the source if you want to debug this further.
21732 2002-08-20  Kenichi Handa  <handa@etl.go.jp>
21734         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
21736 2002-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
21738         * msdos.c (croak): Add `void' to definition.
21740         * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
21741         Don't define them, they are defined in msdos.c.
21743         * mem-limits.h [MSDOS]: Declare etext.
21745         * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
21746         `const' since CORRECT_DIR_SEPS modifies its target.
21748 2002-08-19  Kim F. Storm  <storm@cua.dk>
21750         * keyboard.c (Fclear_this_command_keys): Add optional arg
21751         KEEP-RECORD to avoid clearing lossage when we just want to clear
21752         the current key sequence (kmacro needs this).
21754 2002-08-19  Kenichi Handa  <handa@localhost>
21756         * composite.c (run_composition_function): Call FUNC if it is fboundp.
21758         * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
21759         cons, return Qnil.
21761 2002-08-17  Richard M. Stallman  <rms@gnu.org>
21763         * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
21765         * sysdep.c [!VMS]: Include sys/files.h.
21767         * editfns.c (save_restriction_restore): Defend from unchained marker.
21769         * buffer.c (overlays_at): Handle extending vec uniformly.
21770         (overlays_in): Handle extending vec from length 0 as in overlays_at.
21772 2002-08-15  Andrew Choi  <akochoi@shaw.ca>
21774         * mac.c (init_mac_osx_environment): New function.
21776         * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
21778 2002-08-14  Kim F. Storm  <storm@cua.dk>
21780         * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
21781         executing macro before appending to it (when used from Lisp).
21782         (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
21783         which is called prior to each iteration of macro (for kmacro.el).
21784         (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
21786         * lisp.h (Fexecute_kbd_macro): Update prototype.
21788         * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
21790 2002-08-14  Kenichi Handa  <handa@etl.go.jp>
21792         * xselect.c (QUTF8_STRING): New variable.
21793         (symbol_to_x_atom): Pay attention to QUTF8_STRING.
21794         (x_atom_to_symbol): Likewise.
21795         (x_get_local_selection): New argument local_request.  If it is
21796         nonzero, call handler_fn with the second arg nil.
21797         (x_handle_selection_request): Call x_get_local_selection with
21798         local_request 0.
21799         (lisp_data_to_selection_data): Don't encode the string here.
21800         (Fx_get_selection_internal): Call x_get_local_selection with
21801         local_request 1.
21802         (syms_of_xselect): Intern and staticpro QUTF8_STRING.
21804         * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
21806         * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
21808 2002-08-13  Richard M. Stallman  <rms@gnu.org>
21810         * minibuf.c (Fminibufferp): New function.
21811         (syms_of_minibuf): Defsubr it.
21812         (Fminibuffer_prompt_end): Handle non-minibuffers specially.
21814 2002-08-13  Gerd Moellmann  <gerd.moellmann@t-online.de>
21816         * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
21818 2002-08-12  Richard M. Stallman  <rms@gnu.org>
21820         * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
21821         [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
21822         (WSTOPSIG, WTERMSIG): Define each one independently if not defined
21823         already.
21825         * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
21827 2002-08-11  Andrew Choi  <akochoi@shaw.ca>
21829         * macterm.c (XTmouse_position): Check wp with is_emacs_window.
21830         (Vmac_pass_command_to_system): New variable.
21831         (Vmac_pass_control_to_system): New variable.
21832         (do_mouse_moved): Check wp with is_emacs_window.
21833         (XTread_socket): Check window_ptr with is_emacs_window.
21834         Call FrontNonFloatingWindow instead of FrontWindow.  Send keydown
21835         events back to Mac Toolbox for processing, depending on values of
21836         Vmac_pass_command_to_system and Vmac_pass_control_to_system.
21837         (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
21838         Vmac_pass_control_to_system.
21840 2002-08-10  Kenichi Handa  <handa@etl.go.jp>
21842         * coding.c (unencodable_char_position): New function.
21843         (Funencodable_char_position): New function.
21844         (syms_of_coding): Defsubr Funencodable_char_position.
21846 2002-08-10  Andrew Choi  <akochoi@shaw.ca>
21848         * mac.c (sys_select) [MAC_OSX]: New function.
21850         * macterm.c (MakeMeTheFrontProcess): New function.
21851         (mac_initialize): Call MakeMeTheFrontProcess.
21853         * s/darwin.h: Define select to sys_select.
21855 2002-08-09  Richard M. Stallman  <rms@gnu.org>
21857         * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
21859 2002-08-09  Gerd Moellmann  <gerd.moellmann@t-online.de>
21861         * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
21862         end of the buffer.
21864 2002-08-08  Ken Raeburn  <raeburn@gnu.org>
21866         * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
21868         * puresize.h (BASE_PURESIZE): Increase to 910000.
21870 2002-08-08  Kenichi Handa  <handa@etl.go.jp>
21872         * coding.c (Ffind_operation_coding_system): For write-region, if
21873         VISIT is a filename, make it the target.
21875 2002-08-07  Richard M. Stallman  <rms@gnu.org>
21877         * alloc.c (mark_object): Detect long lists for debugging.
21878         (mark_object_loop_halt): New variable.
21880         * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
21882         * data.c (Fmake_variable_frame_local): Doc fix.
21884 2002-08-01  David Ponce  <david@dponce.com>
21886         * w32menu.c (local_heap, local_alloc, local_free): New macros.
21887         (malloc_widget_value, free_widget_value)
21888         (w32_free_submenu_strings): Use them.
21890         (push_submenu_start, push_submenu_end, push_left_right_boundary)
21891         (push_menu_pane, push_menu_item, single_keymap_panes)
21892         (single_menu_item, Fx_popup_menu, menubar_selection_callback)
21893         (single_submenu, set_frame_menubar)
21894         (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
21896         (Fx_popup_menu): Don't show pop up menu until preceding one is
21897         actually cleaned up.  Moved UNGCPRO outside #ifdef HAVE_MENUS block.
21899         * w32menu.c: Changes adapted from xmenu.c
21900         (set_frame_menubar): First parse all submenus,
21901         then make widget_value trees from them.
21902         Don't allocate any widget_value objects
21903         until we are done with the parsing.
21904         (parse_single_submenu): New function.
21905         (digest_single_submenu): New function.
21906         (single_submenu): Function deleted, replaced by those two.
21908 2002-08-04  Andrew Choi  <akochoi@shaw.ca>
21910         * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
21911         returns a valid window pointer before proceeding for keyDown and
21912         autoKey events.
21914 2002-08-03  Andrew Choi  <akochoi@shaw.ca>
21916         * macterm.c (USE_CARBON_EVENTS): New macro.
21917         (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
21918         (x_iconify_frame): Call CollapseWindow.
21919         (Vmac_reverse_ctrl_meta): New variable.
21920         (Vmac_wheel_button_is_mouse_2): New variable.
21921         (init_mac_drag_n_drop): New function.
21922         (mac_do_receive_drag): New function.
21923         (mac_handle_service_event): New function.
21924         (init_service_handler): New function.
21925         (mac_to_emacs_modifiers): New function.
21926         (mac_event_to_emacs_modifiers): New function.
21927         (mac_get_mouse_btn): New function.
21928         (mac_convert_event_ref): New function.
21929         (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
21930         SendEventToEventTarget, mac_event_to_emacs_modifiers, and
21931         mac_get_mouse_btn.
21932         (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
21934         * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
21935         lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
21936         (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
21937         TOOL_BAR_EVENT for MAC_OS as well.
21938         (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
21939         as for WINDOWS_NT.
21940         (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
21942         * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
21944 2002-08-03  Gerd Moellmann  <gerd.moellmann@t-online.de>
21946         * xdisp.c (forward_to_next_line_start): Fix a condition that
21947         lead to a newline being skipped.
21949 2002-08-02  Andrew Choi  <akochoi@shaw.ca>
21951         * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
21953 2002-08-01  Richard M. Stallman  <rms@gnu.org>
21955         * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
21957 2002-07-31  Andrew Choi  <akochoi@shaw.ca>
21959         * macfns.c: #undef init_process before #define-ing it.
21961         * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
21962         HAVE_CARBON is defined.
21964 2002-07-31  Richard M. Stallman  <rms@gnu.org>
21966         * xmenu.c (set_frame_menubar): First parse all submenus,
21967         then make widget_value trees from them.
21968         Don't allocate any widget_value objects
21969         until we are done with the parsing.
21970         (parse_single_submenu): New function.
21971         (digest_single_submenu): New function.
21972         (single_submenu): Function deleted, replaced by those two.
21974 2002-07-30  Juanma Barranquero  <lektu@terra.es>
21976         * w32proc.c (syms_of_ntproc): Fix docstring of
21977         `w32-get-true-file-attributes'.
21979 2002-07-28  Richard M. Stallman  <rms@gnu.org>
21981         * s/hpux8.h (HPUX8): Define this before including hpux.h.
21982         (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
21984         * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
21986         * keyboard.c (make_lispy_event):
21987         Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
21988         Explicitly clear up_modifier in event->modifiers.
21990 2002-07-27  Richard M. Stallman  <rms@gnu.org>
21992         * xterm.h (FRAME_CURSOR_WIDTH): New macro.
21994         * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
21995         for bar cursor.
21997 2002-07-26  Kenichi Handa  <handa@etl.go.jp>
21999         * coding.c (detect_coding_iso2022): While checking a byte sequence
22000         for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
22001         it in the normal loop.
22003 2002-07-24  Gerd Moellmann  <gerd.moellmann@t-online.de>
22005         * xterm.c (expose_overlaps): New function.
22006         (expose_window): Use it to fix the display of overlapping rows.
22008         * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
22010 2002-07-23  Ken Raeburn  <raeburn@gnu.org>
22012         * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
22013         since it only depends on XUINT.
22015         * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
22016         EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
22017         PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
22018         Macros deleted.
22020         * mem-limits.h (start_of_data): If DATA_START is defined, prefer
22021         its value over other approaches.
22022         * sysdep.c (start_of_data): Don't define the function if a macro
22023         form has been defined.
22025 2002-07-23  Gerd Moellmann  <gerd.moellmann@t-online.de>
22027         * xdisp.c (redisplay_updating_p): New variable.
22028         (init_iterator): Don't free realized faces when
22029         redisplay_updating_p is set.
22030         (redisplay_internal): Set redisplay_updating_p while updating
22031         the display.
22033 2002-07-23  Richard M. Stallman  <rms@gnu.org>
22035         * editfns.c (Fmessage): Treat "" like nil.
22037 2002-07-23  Kenichi Handa  <handa@etl.go.jp>
22039         * xdisp.c (face_before_or_after_it_pos):
22040         Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22042 2002-07-22  Juanma Barranquero  <lektu@terra.es>
22044         * callproc.c (init_callproc) [DOS_NT]:
22045         Initialize Vshared_game_score_directory to nil.
22046         (syms_of_callproc) [DOS_NT]: Likewise.
22048 2002-07-22  Gerd Moellmann  <gerd.moellmann@t-online.de>
22050         * xdisp.c (display_line): Replace an abort with xassert.
22052 2002-07-21  Richard M. Stallman  <rms@gnu.org>
22054         * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
22055         and END_UNCHANGED when setting buffer_unchanged_p.
22056         Use current_matrix_up_to_date_p to decide whether to use
22057         try_cursor_movement.
22059         * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
22061         * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
22063         * callproc.c (init_callproc): Set up Vshared_game_score_directory.
22064         Set to nil if dir does not exist.
22065         (syms_of_callproc): Init unconditionally and simply.
22067         * buffer.c (Fbuffer_list): Doc fix.
22069 2002-07-21  Ken Raeburn  <raeburn@gnu.org>
22071         * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
22073         * buffer.c (mmap_realloc): When shrinking, make sure number of
22074         pages to unmap is rounded towards zero.
22076         * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
22077         (XSETINT): Deleted.
22079         * m/att3b.h (XINT): Don't define.
22080         (VALBITS, VALMASK, XTYPE): Deleted.
22081         (DATA_SEG_BITS): Define.
22082         * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
22083         ARRAY_MARK_FLAG): Deleted.
22084         (DATA_SEG_BITS): Define.
22085         * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
22086         (DATA_SEG_BITS): Define.
22088 2002-07-20  Richard M. Stallman  <rms@gnu.org>
22090         * print.c (print_error_message): New args CONTEXT and CALLER.
22091         Calls changed.
22093         * lisp.h (print_error_message): Declare new args.
22095         * keyboard.c (cmd_error_internal): Pass Vsignaling_function
22096         and CONTEXT to print_error_message, don't print them here.
22097         For a Quit, don't use Vsignaling_function.
22098         Call message_log_maybe_newline.
22100         * Makefile.in (xsmfns.o): Don't depend on lisp.h.
22102 2002-07-20  Kim F. Storm  <storm@cua.dk>
22104         * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
22106 2002-07-19  Ken Raeburn  <raeburn@gnu.org>
22108         * bytecode.c (struct byte_stack): Pointers into byte string now
22109         point to const.
22110         * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
22111         const.
22112         * charset.h (BCOPY_SHORT): Source pointer now points to const.
22113         * coding.c (encode_eol, detect_coding, detect_eol):
22114         (decode_coding, encode_coding, detect_coding_system):
22115         Source strings now treated as const.
22116         (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
22117         modify Lisp string contents.
22118         * coding.h (decode_coding, encode_coding, detect_coding,
22119         detect_eol): Declarations updated.
22120         * composite.c (compose_chars_in_text): Treat Lisp string contents
22121         as const.
22122         * dispnew.c (safe_bcopy): Source pointer now points to const.
22123         * lisp.h (STRING_COPYIN): New macro.
22124         (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
22125         (internal_with_output_to_temp_buffer): Declarations updated.
22126         * print.c (temp_output_buffer_setup):
22127         (internal_with_output_to_temp_buffer): Buffer name argument is now
22128         pointer to const.
22129         * sound.c (struct sound_device): Function pointer field "write"
22130         buffer argument now points to const.
22131         (vox_write): Buffer argument points to const.
22132         * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
22133         contents as const.
22134         * sysdep.c (emacs_write): Buffer pointer now const.
22135         * term.c (encode_terminal_code): Buffer pointer now const.
22136         * xfaces.c (may_use_scalable_font_p): Argument now points to const.
22137         (x_face_list_fonts, x_update_menu_appearance):
22138         (hash_string_case_insensitive): Treat Lisp string contents as const.
22140 2002-07-19  Juanma Barranquero  <lektu@terra.es>
22142         * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
22144         * fileio.c (syms_of_fileio): Likewise.
22145         (Ffile_name_as_directory): Fix argument name in docstring.
22146         (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
22148 2002-07-18  Richard M. Stallman  <rms@gnu.org>
22150         * data.c (Fdefalias): Doc fix.
22152 2002-07-17  Dave Love  <fx@gnu.org>
22154         * intervals.h (text_property_stickiness): Use P_.
22156         * ccl.c: Remove `emacs' conditionals.
22157         (ccl_backtrace_table): Fix size spec.
22158         (ccl_driver): Fix type errors.
22160 2002-07-16  Ken Raeburn  <raeburn@gnu.org>
22162         * alloc.c (xstrdup, make_string, make_unibyte_string)
22163         (make_multibyte_string, build_string): String pointer args now
22164         point to const.
22165         * charset.c (find_charset_in_text, c_string_width):
22166         (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
22167         * fileio.c (report_file_error):
22168         * insdel.c (copy_text, count_size_as_multibyte, insert_1):
22169         (count_combining_before, count_combining_after, insert_1_both):
22170         (insert, insert_and_inherit, insert_string):
22171         (insert_before_markers, insert_before_markers_and_inherit):
22172         * lread.c (intern, oblookup, hash_string):
22173         * minibuf.c (temp_echo_area_glyphs):
22174         * search.c (fast_c_string_match_ignore_case):
22175         * sysdep.c (emacs_open, set_file_times):
22176         * xfaces.c (xstricmp):
22177         * xdisp.c (store_frame_title, string_char_and_length):
22178         (message_dolog, message2, message2_nolog, set_message): Likewise.
22179         (set_message_1): Cast message string argument to const pointer.
22180         * editfns.c (general_insert_function): Insertion function now
22181         takes pointer to const for input data.
22182         * charset.h (find_charset_in_text, c_string_width):
22183         (parse_str_as_multibyte): Declarations updated.
22184         * dispextern.h (xstricmp): Declaration updated.
22185         * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
22186         (count_size_as_multibyte, count_combining_before):
22187         (count_combining_after, insert_1, insert_1_both, message_dolog):
22188         (insert, insert_and_inherit, insert_before_markers)
22189         (insert_before_markers_and_inherit, set_message, message2):
22190         (message2_dolog, build_string, make_string, make_unibyte_string):
22191         (make_multibyte_string, intern, oblookup, report_file_error):
22192         (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
22193         (emacs_open, xstrdup): Declarations updated.
22194         * systime.h (set_file_times): Declaration updated.
22196         * charset.c (find_charset_in_text, lisp_string_width): Use const
22197         for pointer to lisp string data.
22198         * charset.h (FETCH_STRING_CHAR_ADVANCE):
22199         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
22200         * coding.c (Ffind_coding_systems_region_interval):
22201         * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
22202         (Fmake_directory_internal, Fdelete_directory):
22203         (Ffile_name_absolute_p, Fwrite_region, double_dollars):
22204         * fontset.c (font_family_registry, fs_query_fontset):
22205         (list_fontsets):
22206         * frame.c (Fframe_parameter):
22207         * keyboard.c (cmd_error_internal):
22208         * keymap.c (Fdescribe_buffer_bindings):
22209         * lread.c (complete_filename_p, openp):
22210         * minibuf.c (Fminibuffer_complete_word):
22211         * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
22212         (face_before_or_after_it_pos, next_element_from_string):
22213         (get_overlay_arrow_glyph_row, display_mode_element):
22214         (decode_mode_spec_coding):
22215         * xterm.c (same_x_server): Likewise.
22217         * buffer.c (reset_buffer_local_variables): Delete "#if 0"
22218         settings of non-existent fields.
22220         * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
22221         copy a lisp value.
22223         * lread.c (Fintern_soft): Use string macros instead of
22224         Lisp_String fields.
22225         * keyboard.c (echo_char, parse_modifiers_uncached):
22226         (parse_solitary_modifier, Fexecute_extended_command): Likewise.
22227         * textprop.c (validate_interval_range, interval_of): Likewise.
22229         * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
22231         * charset.h (FETCH_STRING_CHAR_ADVANCE)
22232         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
22233         XSTRING()->size_byte.
22235         * lisp.h (SDATA, SREF): Produce rvalue.
22236         (SSET): New macro.
22237         * alloc.c (make_event_array): Use SSET for storing into a string.
22238         * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
22239         a string.
22240         * casefiddle.c (casify_object): Use SSET.
22241         * charset.h (FETCH_STRING_CHAR_ADVANCE)
22242         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
22243         address of string contents.
22244         * data.c (Faref): Use SDATA.
22245         (Faset): Use SDATA, SSET.
22246         * dired.c (directory_files_internal): Use SSET.
22247         * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
22248         (Fread_file_name): Use SREF, SSET.
22249         * fns.c (concat): Use SSET.
22250         (concat, Fdelete): Use SDATA.
22251         * insdel.c (insert_from_string_1): Use SDATA.
22252         * keyboard.c (Fevent_convert_list): Use SREF.
22253         * lread.c (Fload): Use SDATA, SSET.
22254         * macfns.c (validate_x_resource_name): Use SSET.
22255         * process.c (status_message): Use SSET.
22256         * search.c (wordify): Use SDATA.
22257         (Freplace_match): Use SREF.
22258         * w32fns.c (validate_x_resource_name): Use SSET.
22259         * xfns.c (validate_x_resource_name): Use SSET.
22260         * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
22262 2002-07-16  Richard M. Stallman  <rms@gnu.org>
22264         * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
22266         * xdisp.c (reconsider_clip_changes):
22267         Don't test prevent_redisplay_optimizations_p.
22268         (redisplay_internal): Test prevent_redisplay_optimizations_p
22269         along with clip_changed in some cases.
22270         (try_window_id): Likewise.
22271         (redisplay_window): New local var buffer_unchanged_p.
22273         * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
22275         * process.c (create_process): Test USG_SUBTTY_WORKS.
22276         (process_send_signal): Clean up handling of GID.
22277         Detect errors in ioctls meant to set GID.
22279         * window.c (temp_output_buffer_show):
22280         Don't set prevent_redisplay_optimizations_p.
22282 2002-07-15  Juanma Barranquero  <lektu@terra.es>
22284         * eval.c (Fdefvaralias): Add docstring argument.
22286 2002-07-15  Ken Raeburn  <raeburn@gnu.org>
22288         * lisp.h (STRING_INTERVALS): Produce rvalue.
22289         (STRING_SET_INTERVALS): New macro.
22290         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
22291         * fns.c (Fstring_as_multibyte): Likewise.
22292         * intervals.c (balance_possible_root_interval, delete_interval)
22293         (create_root_interval, copy_intervals_to_string): Likewise.
22294         * textprop.c (set_text_properties): Likewise.  Use NULL_INTERVAL
22295         instead of 0.
22297 2002-07-14  Ken Raeburn  <raeburn@gnu.org>
22299         * lisp.h (STRING_SET_CHARS): New macro.
22300         (SCHARS, SBYTES): Produce rvalues.
22301         * dired.c (directory_files_internal): Use STRING_SET_CHARS.
22302         * fns.c (concat): Likewise.
22303         * lread.c (read_vector): Likewise.
22305         * lisp.h (SMBP): Delete.  All uses changed to STRING_MULTIBYTE.
22306         (STRING_SET_UNIBYTE): New macro.
22307         (SET_STRING_BYTES): Delete.  Callers (all of which supplied a
22308         length of -1) changed to use STRING_SET_UNIBYTE.
22309         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
22310         casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
22311         composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
22312         dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
22313         fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
22314         keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
22315         minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
22316         sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
22317         w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
22318         w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
22319         xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
22320         STRING_BYTES or indirection changed to SCHARS, SBYTES,
22321         STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
22322         unchanged for now.
22324 2002-07-13  Kim F. Storm  <storm@cua.dk>
22326         * keyboard.c (command_loop_1): Invert check on Vmemory_full.
22328 2002-07-12  Richard M. Stallman  <rms@gnu.org>
22330         * fileio.c (Fwrite_region): Doc fix.
22332         * print.c (print_error_message): Don't handle Vsignaling_function here.
22334         * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
22335         (command_loop_1): Avoid certain actions after memory-full error.
22337         * eval.c (Fsignal): Don't call cancel_hourglass.
22338         For a memory-full error, don't call Vsignal_hook_function
22339         and don't set Vsignaling_function.
22341         * process.c (process_send_signal): Add abort call.
22343 2002-07-11  Markus Rost  <rost@math.ohio-state.edu>
22345         * keymap.c (Fkey_binding): Fix typo.
22347 2002-07-11  Richard M. Stallman  <rms@gnu.org>
22349         * alloc.c (Vmemory_full): New variable.
22350         (Vmemory_signal_data): Rename from memory_signal_data.
22351         Uses changed.
22352         (syms_of_alloc): Defvar them.
22353         (memory_full, buffer_memory_full): Set Vmemory_full.
22355         * lisp.h (Vmemory_full): Add declaration.
22356         (current_column, indented_beyond_p): Change declaration.
22358         * indent.c (last_known_column): Declare as double, not float.
22359         (current_column, current_column_1, string_display_width)
22360         (position_indentation): Return `double'.
22361         (indented_beyond_p): Arg `column' is `double'.  Callers changed.
22363         * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
22364         (back_to_previous_visible_line_start)
22365         (reseat_at_next_visible_line_start, next_element_from_buffer):
22366         Use `double', not `float', when calling indented_beyond_p.
22368         * s/hpux11.h (BROKEN_SA_RESTART): Define.
22370         * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
22372 2002-07-11  Juanma Barranquero  <lektu@terra.es>
22374         * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
22375         * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
22376         * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
22377         * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
22378         * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
22379         * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
22381 2002-07-10  Juanma Barranquero  <lektu@terra.es>
22383         * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
22384         All callers changed.
22386 2002-07-09  Stefan Monnier  <monnier@cs.yale.edu>
22388         * data.c (Fdefalias): Add an optional `docstring' argument.
22389         (set_internal, Fsetq_default): Use XCAR/XCDR.
22391         * composite.c (HASH_VALUE, HASH_KEY):
22392         * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
22394 2002-07-09  Kenichi Handa  <handa@etl.go.jp>
22396         * callproc.c (Fcall_process): Fix previous change.
22398 2002-07-07  Stefan Monnier  <monnier@cs.yale.edu>
22400         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
22401         Add support for hash-tables.
22402         (Ftry_completion): Return t even if the string appears multiple times.
22404         * fns.c (Fnconc): Use XCDR.
22405         (Fprovide): Use CONSP and XCDR.
22406         (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
22407         (HASH_TABLE_SIZE): Delete: moved to lisp.h.
22408         (Fmake_hash_table): Accept `:size nil'.
22409         (Fmakehash): Delete: moved to subr.el.
22410         (syms_of_fns): Don't defsubr makehash.
22412         * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
22413         (HASH_TABLE_SIZE): Move from fns.c.
22415 2002-07-07  Richard M. Stallman  <rms@gnu.org>
22417         * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
22418         Instead just return 0 when there is something to be done.
22419         (try_scrolling): If make_cursor_line_fully_visible returns 0,
22420         retry scrolling as if cursor were off the bottom.
22421         (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
22422         return CURSOR_MOVEMENT_MUST_SCROLL.
22423         (redisplay_window): If make_cursor_line_fully_visible returns 0,
22424         go to try_to_scroll.
22426         * buffer.c (Fbuffer_local_value): Store current value into its binding
22427         so we get the up-to-date value for the binding that is loaded.
22429         * eval.c (Fdefmacro): Doc fix.
22431 2002-07-05  Dave Love  <fx@gnu.org>
22433         * keyboard.c (read_key_sequence): Set initial_idleness_start_time
22434         correctly.
22436         * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
22437         (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
22438         (ccl_driver): Add cases for CCL_LookupIntConstTbl,
22439         CCL_LookupCharConstTbl.
22440         (syms_of_ccl): Defvar translation-hash-table-vector.
22442 2002-07-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
22444         * xdisp.c: Remove unused variable `face'.
22446 2002-07-04  Juanma Barranquero  <lektu@terra.es>
22448         * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
22449         obsolescence information.
22451 2002-07-03  Andrew Choi  <akochoi@shaw.ca>
22453         * macterm.c (x_list_fonts): Fix comment.  Cache fonts matching
22454         pattern.  Search cache first.
22455         (init_font_name_table): Also add entry for jisx0201.1976-0 coding
22456         for Japanese font.
22457         (XLoadQueryFont): Use it.
22459 2002-07-02  Richard M. Stallman  <rms@gnu.org>
22461         * keymap.c (Fdefine_key): Doc fix.
22463         * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
22465 2002-07-02  Juanma Barranquero  <lektu@terra.es>
22467         * keymap.c (syms_of_keymap): Fix typo.
22469 2002-07-01  Andrew Choi  <akochoi@shaw.ca>
22471         * s/darwin.h: Define POSIX_SIGNALS.
22473         * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
22474         and FSRefMakePath to convert FSSpec returned with Apple Event to
22475         Posix pathname.
22476         (mac_initialize) [TARGET_API_MAC_CARBON]:
22477         Call init_required_apple_events and disable the `Quit' menu item
22478         provided automatically by the Carbon Toolbox.
22480 2002-07-01  Dave Love  <fx@gnu.org>
22482         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22483         for K&R.
22485         * xterm.c: Fix prototype for K&R.
22487         * term.c (costs_set): Declare static, non-initialized for pcc.
22489 2002-07-01  Richard M. Stallman  <rms@gnu.org>
22491         * keyboard.c (timer_last_idleness_start_time): New variable.
22492         (timer_start_idle): Set that.
22493         (read_key_sequence): Use that to reset timer_idleness_start_time
22494         to previous value.
22496         * window.c (Frecenter): With arg, set optional_new_start.
22498         * xdisp.c (redisplay_internal): Make optional_new_start really work.
22500         * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
22501         buffer for completion.
22503 2002-06-29  Ken Raeburn  <raeburn@gnu.org>
22505         * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
22507 2002-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
22509         * keyboard.c (readable_filtered_events): New function that filters
22510         FOCUS_IN_EVENT depending on parameter.
22511         (readable_events): Calls readable_filtered_events, not filtering
22512         FOCUS_IN_EVENT.
22513         (get_filtered_input_pending): New function, filtering parameter passed
22514         to readable_filtered_events.
22515         (get_input_pending): Calls get_filtered_input_pending, not filtering
22516         FOCUS_IN_EVENT.
22517         (Finput_pending_p): Calls get_filtered_input_pending, DO filter
22518         FOCUS_IN_EVENT.
22520         * xterm.h (struct x_output): Add focus_state.
22522         * xterm.c (x_focus_changed): New function.
22523         (x_detect_focus_change): New function.
22524         (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
22525         EnterNotify and LeaveNotify to track X focus changes.
22527 2002-06-28  Andreas Schwab  <schwab@suse.de>
22529         * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
22531 2002-06-27  Kim F. Storm  <storm@cua.dk>
22533         * xdisp.c (mode_line_string_list, mode_line_string_face)
22534         (mode_line_string_face_prop): New variables.
22535         (store_mode_line_string): New function.
22536         (display_mode_element): Use store_mode_line_string to
22537         add mode-line string elements to mode_line_string_list
22538         when mode_line_string_list is non-nil.
22539         (Fformat_mode_line): Now returns propertized string by
22540         default.  New arg NO-PROPS to ignore properties.
22541         (decode_mode_spec): Only add two dashes for %- in propertized
22542         mode-line string.
22543         (syms_of_xdisp): Init and staticpro mode_line_string_list.
22545 2002-06-27  Stefan Monnier  <monnier@cs.yale.edu>
22547         * minibuf.c (minibuffer_completion_contents): Add return type.
22549 2002-06-27  Juanma Barranquero  <lektu@terra.es>
22551         * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
22553 2002-06-26  Juanma Barranquero  <lektu@terra.es>
22555         * fileio.c (read_file_name_cleanup): Add missing return.
22557 2002-06-26  Richard M. Stallman  <rms@gnu.org>
22559         * window.c (Frecenter): Don't set force_start flag.
22561         * minibuf.c (do_completion, Fminibuffer_complete_word)
22562         (Fminibuffer_completion_help): Complete just the text before point.
22563         (minibuffer_completion_contents): New function.
22565         * buffer.c (Fbury_buffer): Use frames_discard_buffer.
22567         * frame.c (frames_bury_buffer): Function deleted.
22569 2002-06-25  Miles Bader  <miles@gnu.org>
22571         * callint.c (Fcall_interactively): When checking to see if doprnt hit
22572         the end of callint_message, allow for a terminating '\0'.
22574 2002-06-24  Juanma Barranquero  <lektu@terra.es>
22576         * w32select.c: Include composite.h.
22578         * w16select.c: Likewise.
22580 2002-06-24  Kenichi Handa  <handa@etl.go.jp>
22582         * callproc.c (Fcall_process): If code detection is necessary,
22583         call detect_coding directly here.
22585         * coding.c (detect_eol): Preserve coding->cmp_data.
22587         * w16select.c (Fw16_get_clipboard_data):
22588         * w32fns.c (w32_to_x_font):
22589         * w32select.c (Fw32_get_clipboard_data):
22590         * xselect.c (selection_data_to_lisp_data):
22591         * xterm.c (XTread_socket): Disable composition handling.
22593 2002-06-24  Stefan Monnier  <monnier@cs.yale.edu>
22595         * print.c (temp_output_buffer_setup): Kill all local variables.
22597 2002-06-22  Stefan Monnier  <monnier@cs.yale.edu>
22599         * lread.c (Fread): Remove redundant and imprecise declaration.
22601         * xfns.c (check_x_display_info): Use check_x_frame.
22603         * .gdbinit (xprintsym): Use the new `xname' field.
22604         (xsymbol): Use it.
22606 2002-06-22  Jason Rumney  <jasonr@gnu.org>
22608         * w32fns.c (file_dialog_callback): New function.
22609         (Fx_file_dialog): Allow selecting directories as well as files.
22611 2002-06-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
22613         * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
22614         OpenBSD.  Add support for mipseb-*-netbsd* machines.
22616 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
22618         * macterm.c (mac_scroll_area): Set foreground and backcolor to
22619         black and white before scrolling.  Restore frame background and
22620         foreground color after scrolling.
22621         (do_window_update): Call XClearWindow before calling expose_frame.
22622         (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
22623         FRAME_FOREGROUND_PIXEL of frame.
22625         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
22626         test Mac command key as <ALT> key.
22628 2002-06-17  Stefan Monnier  <monnier@cs.yale.edu>
22630         * window.c (Fset_window_configuration): Lisp_Object/int mixup.
22632         * keyboard.c (read_key_sequence): Be more careful with first_unbound.
22633         Lookup keys in function-key-map immediately so that key-translation-map
22634         can be applied earlier.
22635         Remove function_key_possible and key_translation_possible, replaced
22636         by checking `keytran_start < t'.
22638         * .gdbinit (xsymbol): Use the new `xname' field.
22640 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
22642         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
22643         test Mac command key as <ALT> key.
22645         * mac.c (do_applescript): Call initialize_applescript if necessary
22646         when first called.  Dispose of result_desc only when there is no error.
22647         (Fdo_applescript): Use %d format specifier instead of %ld.
22649 2002-06-16  Andrew Choi  <akochoi@shaw.ca>
22651         * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
22652         of FrontWindow for cases keyDown and autoKey.
22654         * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
22655         Vdefault_fontset to Monaco with mac-roman coding.
22657         * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
22658         init_process before and after inclusion of Carbon/Carbon.h, resp.
22660         * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
22661         cursor_gc.
22662         (add_font_name_table_entry): New function.
22663         (init_font_name_table): Use add_font_name_table_entry; add italic,
22664         bold, and bold-italic entries for truetype fonts.
22666         * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
22667         for Mac too.
22668         (try_font_list) [MAC_OS]: If no font matches given registry, try
22669         fonts with any registry matching face_family.
22670         (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
22672         * s/darwin.h: If autoconf detects the Ncurses library, define
22673         LIBS_TERMCAP to -lncurses to use it.
22675 2002-06-16  Eli Zaretskii  <eliz@is.elta.co.il>
22677         * strftime.c [__hpux]: Include sys/_mbstate_t.h.
22679 2002-06-15  Richard M. Stallman  <rms@gnu.org>
22681         * window.c (Fset_window_configuration): Explicitly preserve
22682         the point value that new_current_buffer had at the start.
22684 2002-06-14  Juanma Barranquero  <lektu@terra.es>
22686         * composite.c (Fcompose_region_internal, Fcompose_string_internal):
22687         Fix typos.
22689 2002-06-14  Kim F. Storm  <storm@cua.dk>
22691         * insdel.c (insert_1_both, insert_from_string_1)
22692         (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
22693         insert happened in the end_unchanged region.  Otherwise, the
22694         redisplay may be confused and duplicate the last line in the
22695         buffer [seen after save-buffer when require-final-newline==t].
22697 2002-06-13  Jason Rumney  <jasonr@gnu.org>
22699         * w32.c (init_environment): Remove EMACSLOCKDIR.
22700         (stat): Swap _S_IFDIR and _S_IFREG.
22702 2002-06-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
22704         * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
22705         * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
22706         * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
22707         ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
22708         to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
22709         NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
22710         to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
22711         language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
22712         to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
22713         W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
22714         SELECTION_REQUEST_EVENT, selection_clear_event to
22715         SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
22716         delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
22717         ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
22718         menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
22719         DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
22720         no_event to NO_EVENT.
22722 2002-06-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
22724         * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
22726 2002-06-12  Stefan Monnier  <monnier@cs.yale.edu>
22728         * intervals.c (textget): Don't forget to `return'.
22729         (lookup_char_property): Use XCAR/XCDR.
22731 2002-06-12  Juanma Barranquero  <lektu@terra.es>
22733         * xdisp.c (Fformat_mode_line): Fix typo.
22735 2002-06-12  Kim F. Storm  <storm@cua.dk>
22737         * xdisp.c (Fformat_mode_line): New function.
22738         (frame_title_buf, frame_title_buf_end, frame_title_ptr)
22739         (store_frame_title_char, store_frame_title): Use unconditionally.
22740         (init_xdisp): Defsubr Fformat_mode_line.
22741         Initialize frame_title_buf etc. unconditionally.
22743 2002-06-11  Stefan Monnier  <monnier@cs.yale.edu>
22745         * keyboard.c (read_key_sequence):
22746         Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
22747         things through those maps after downcasing events.
22748         Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
22749         applies after function-key-map.
22750         Make sure that keytran can be done in the middle in the sequence.
22751         Be careful not to throw away events past the one we downcase.
22753         * lread.c (read_integer): Remove unused var `tem'.
22754         (read1): Fix int/Lisp_Object mixup.
22756         * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
22758 2002-06-11  Richard M. Stallman  <rms@gnu.org>
22760         * keyboard.c (readable_events): Ignore any number of
22761         FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
22763 2002-06-09  Miles Bader  <miles@gnu.org>
22765         * xfaces.c (Ftty_supports_face_attributes_p): New function.
22766         (parse_rgb_list, tty_lookup_color): New functions.
22767         (tty_defined_color): Use `tty_lookup_color' to do all the work.
22768         (color_distance, Fcolor_distance): New functions.
22769         (TTY_SAME_COLOR_THRESHOLD): New macro.
22770         (Qtty_color_standard_values): New variable.
22771         (syms_of_xfaces): Initialize new vars & functions.
22773 2002-06-08  Colin Walters  <walters@verbum.org>
22775         * textprop.c (Vchar_property_alias_alist): New variable.
22776         (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
22778         * intervals.c (lookup_char_property): New function for looking up
22779         overlay and text properties, created from textget.
22780         (textget): Use it.
22782         * intervals.h (lookup_char_property): Declare.
22783         (Vchar_property_alias_alist): Declare.
22785         * buffer.c (Foverlay_get): Use lookup_char_property.
22787 2002-06-07  Sam Steingold  <sds@gnu.org>
22789         * xselect.c (lisp_data_to_selection_data): Fix last change:
22790         *data_ret is not a Lisp string, while unibyte_string is.
22792 2002-06-07  Eli Zaretskii  <eliz@is.elta.co.il>
22794         * xselect.c (lisp_data_to_selection_data): Fix last change:
22795         set size_ret.
22797 2002-06-07  Andreas Schwab  <schwab@suse.de>
22799         * m/amdx86-64.h: New file.
22801 2002-06-05  Eli Zaretskii  <eliz@is.elta.co.il>
22803         * fns.c (Fstring_make_unibyte): Doc fix.
22805         * xselect.c (lisp_data_to_selection_data): If the requested type
22806          is STRING, call string_make_unibyte to encode the selected text
22807          as a string.
22809         * window.c (Fset_window_hscroll): Doc fix.
22811 2002-06-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
22813         * fileio.c (choose_write_coding_system):
22814         Call select-safe-coding-system properly.
22816 2002-06-03  Richard M. Stallman  <rms@gnu.org>
22818         * xdisp.c (message_with_string): Error if STRING is not a string.
22820         * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
22822         * fileio.c (choose_write_coding_system): Pass FILE arg to
22823         Vselect_safe_coding_system_function.
22825 2002-06-03  Ken Raeburn  <raeburn@gnu.org>
22827         * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
22829 2002-06-02  Thien-Thi Nguyen  <ttn@gnu.org>
22831         * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
22832         * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
22833         * keymap.c (describe_command): Likewise.
22834         * minibuf.c (read_minibuf): Likewise.
22836         * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
22837         Cast `current_column' return value to int.
22838         (back_to_previous_visible_line_start)
22839         (reseat_at_next_visible_line_start, next_element_from_buffer):
22840         Cast `indented_beyond_p' 3rd arg to float.
22842         * indent.c (last_known_column): Now a float.
22843         (current_column_1, position_indentation, current_column)
22844         (string_display_width): Return float.
22845         (Fcurrent_column): Cast `current_column' return value to int.
22846         (Fcurrent_indentation): Cast `position_indentation' retval to int.
22847         (indented_beyond_p): Third arg now a float.
22848         (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
22850         * lisp.h (current_column): Now returns float.
22851         (indented_beyond_p): 3rd arg now a float.
22853 2002-05-31  Eli Zaretskii  <eliz@is.elta.co.il>
22855         * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
22856         is Qcompound_text_with_extensions.
22858         * xselect.c (lisp_data_to_selection_data): Always set selection
22859         type as string if x_encode_text returns streingp non-NULL.
22861         * s/netbsd.h: Include /usr/pkg in the run time shared library path.
22863 2002-05-30  Richard M. Stallman  <rms@gnu.org>
22865         * window.c (Fset_window_configuration): Correct the handling
22866         of point in current buffer, to work with multiple windows.
22868 2002-05-29  Colin Walters  <walters@verbum.org>
22870         * lread.c (Fread_from_string): Don't depend on order of evaluation
22871         for C function parameters.
22873 2002-05-28  Richard M. Stallman  <rms@gnu.org>
22875         * xterm.c (x_display_and_set_cursor): Change the cursor in the same
22876         way for blinked-off state and for a nonselected window.
22878         * window.c (window_scroll_pixel_based): Don't call Fbolp;
22879         instead, see if the new start pos is at beginning of line.
22881         * fileio.c (Fwrite_region): If START is a string, don't
22882         make any annotations.
22884         * eval.c (syms_of_eval): Doc fix.
22886 2002-05-28  Colin Walters  <walters@debian.org>
22888         * emacs.c (USAGE1): Add --no-splash.
22889         (standard_args): Ditto.
22891 2002-05-28  Colin Walters  <walters@gnu.org>
22893         * lread.c (readchar_count): New variable.
22894         (readchar): Increment it.
22895         (unreadchar): Decrement it.
22896         (read_multibyte): Decrement it.
22897         (Vread_with_symbol_positions): New variable.
22898         (Vread_symbol_positions_list): New variable.
22899         (read_internal_start): New function, created from Fread and
22900         Fread_from_string.  Handle Vread_symbol_positions_list and
22901         Vread_with_symbol_positions.
22902         (readevalloop, Fread, Fread_from_string): Use it.
22903         (read1): Use readchar_count to add symbol positions to
22904         Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
22905         (syms_of_lread): DEFVAR_LISP and initialize them.
22907         * lread.c (read0, read1, read_list, read_vector, read_multibyte)
22908         (substitute_object_recurse, substitute_object_in_subtree)
22909         (substitute_in_interval): Prototype.
22910         (read_multibyte): Return c if it's less than zero.
22912 2002-05-28  Kim F. Storm  <storm@cua.dk>
22914         * fileio.c (Fread_file_name_internal): Added brute-force
22915         speed up for using predicate file-directory-p.
22917 2002-05-28  Kim F. Storm  <storm@cua.dk>
22919         * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
22920         New variables.
22921         (syms_of_fileio): DEFVAR_LISP them.
22922         (read_file_name_cleanup): New unwind function.
22923         (Fread_file_name_internal): Only return completions satifying
22924         Vread_file_name_predicate.  Temporarily unwind protect and rebind
22925         default-directory while checking completions against the predicate.
22926         (Fread_file_name): Added PREDICATE argument.  Specbind it to
22927         Vread_file_name_predicate during completion.
22928         Call Vread_file_name_function to read the file name if non-nil.
22930         * lisp.h (Fread_file_name): Now has 6 args.
22932         * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
22933         predicate for Fread_file_name when reading directory name.
22934         Supply Qnil for predicate in other calls to Fread_file_name.
22936 2002-05-26  Miles Bader  <miles@gnu.org>
22938         * term.c (tty_capable_p): New function.
22939         * dispextern.h (tty_capable_p): New function declaration.
22940         (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
22941         (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
22943 2002-05-23  Stefan Monnier  <monnier@cs.yale.edu>
22945         * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
22946         (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
22947         (Vwrite_region_annotate_functions): Docstring fix.
22949 2002-05-23  Kim F. Storm  <storm@cua.dk>
22951         * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
22952         phys_cursor's hpos is overwritten.  This is still not completely
22953         correct, as it doesn't really make sense to use hpos at all to
22954         get the cursor glyph (as that is relative to the width of the
22955         characters on the line, which may have changed during the update).
22957 2002-05-22  Jason Rumney  <jasonr@gnu.org>
22959         * w32fns.c (enumfont_t): Remove tail, make pattern a normal
22960         Lisp_Object.
22961         (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
22962         Use modified enumfont_t struct.
22964         * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
22966         * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
22967         Handle the `hbar' cursor type.
22968         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
22970         * w32fns.c (Qhbar): New variable.
22971         (x_specified_cursor_type): Use it.
22973 2002-05-21  Ken Raeburn  <raeburn@gnu.org>
22975         * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
22976         now, when the address is needed.
22978 2002-05-21  Colin Walters  <walters@gnu.org>
22980         * Makefile.in (shortlisp): Add font-core.el.
22982 2002-05-20  Richard M. Stallman  <rms@gnu.org>
22984         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
22986         * keyboard.c (read_char_minibuf_menu_prompt): Don't list
22987         equivalent key bindings here.
22989 2002-05-20  Ken Raeburn  <raeburn@gnu.org>
22991         Change symbol structure to contain a lisp object for the symbol
22992         name:
22993         * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
22994         object field named "xname".
22995         (SYMBOL_NAME): New macro.
22996         * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
22997         name field.
22998         * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
22999         (mark_object, gc_sweep): Use symbol xname field and XSTRING
23000         instead of name field.
23001         * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
23002         SYMBOL_NAME instead of XSYMBOL and name field.
23003         * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
23004         instead of XSYMBOL and name field.
23005         * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
23006         and SYMBOL_NAME instead of XSYMBOL and name field.
23007         * coding.c (Fread_coding_system, code_convert_region1)
23008         (code_convert_string1, code_convert_string_norecord)
23009         (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
23010         XSYMBOL and name field.
23011         * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
23012         (Fmake_variable_buffer_local, Fmake_local_variable)
23013         (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
23014         of XSYMBOL and name field.
23015         * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
23016         XSYMBOL and name field.
23017         * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
23018         instead of XSYMBOL and name field.
23019         * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
23020         XSYMBOL and name field.
23021         * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
23022         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23023         * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
23024         instead of XSYMBOL and name field.
23025         * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
23026         (parse_modifiers, apply_modifiers, Fevent_convert_list)
23027         (parse_solitary_modifier, Fexecute_extended_command):
23028         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23029         * keymap.c (silly_event_symbol_error, Fsingle_key_description)
23030         (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
23031         of XSYMBOL and name field.
23032         (describe_command, describe_translation): Use SYMBOL_NAME and
23033         assignment instead of XSYMBOL and name field and XSETSTRING.
23034         * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
23035         instead of XSYMBOL and name field.
23036         (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
23037         name field and XSETSTRING.
23038         * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23039         of XSYMBOL and name field.
23040         * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
23041         assignment instead of XSYMBOL and name field and XSETSTRING.
23042         * print.c (print_error_message, print_object): Use SYMBOL_NAME and
23043         XSTRING instead of XSYMBOL and name field.
23044         * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
23045         and XSTRING instead of XSYMBOL and name field.
23046         * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
23047         and XSTRING instead of XSYMBOL and name field.
23048         * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
23049         XSTRING instead of XSYMBOL and name field.
23050         * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
23051         of XSYMBOL and name field.
23052         * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
23053         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
23055 2002-05-19  Ken Raeburn  <raeburn@gnu.org>
23057         * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
23058         and XCDR real rvalues in most configurations.
23060         * buffer.c (fix_overlays_in_range, fix_overlays_before):
23061         Don't take the address of the cdr part of a cons cell; instead, track
23062         the parent cell and call XSETCDR, or set the variable for the head
23063         of the list if we haven't started down the list yet.
23065 2002-05-19  Richard M. Stallman  <rms@gnu.org>
23067         * doc.c (reread_doc_file): Don't ask for confirmation.
23069 2002-05-18  Jason Rumney  <jasonr@gnu.org>
23071         * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
23072         (xbm_load_image): Use it.
23073         (xbm_load): Ditto.
23074         (xbm_read_bitmap_data): Reverted to xfns.c version.
23075         From David Ponce <david@dponce.com>.
23077 2002-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
23079         * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
23080         2.02 and later.
23082 2002-05-16  Juanma Barranquero  <lektu@terra.es>
23084         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
23086 2002-05-15  Stefan Monnier  <monnier@cs.yale.edu>
23088         * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
23089         meaningful test.
23090         (read_char_minibuf_menu_prompt): Fix typo.
23092 2002-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
23094         * eval.c (Fcommandp): Doc fix.
23096 2002-05-13  Stefan Monnier  <monnier@cs.yale.edu>
23098         * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
23099         (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
23100         (Fset_keymap_parent): Gcpro a bit more.
23101         (access_keymap): Gcpro around meta_map call and around the main loop.
23102         (get_keyelt): Gcpro when following indirect references.
23103         (copy_keymap_item): New fun, extracted from Fcopy_keymap.
23104         (copy_keymap_1, Fcopy_keymap): Use it.  Don't copy the parent map.
23105         (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
23106         Remove useless ad-hoc remap code.
23108 2002-05-13  Richard M. Stallman  <rms@gnu.org>
23110         * search.c (search_buffer): Give up boyer moore search if inverse
23111         translation change charset_base.
23113 2002-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
23115         * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
23116         characters is carried over from the previous block of text, adjust
23117         coding->produced to account for the extra character.
23119 2002-05-11  Andreas Schwab  <schwab@suse.de>
23121         * coding.c (intersection): Keep the elements of the returned list
23122         in the same order as in the first list.
23124 2002-05-11  Kim F. Storm  <storm@cua.dk>
23126         * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
23127         only update cmm_size if realloc actually succeeds.
23128         Testing with initial size of 2 elements revealed that using
23129         realloc on GNU/Linux would cause a random trap in xmalloc
23130         later on, so I rewrote the code to use malloc/bcopy/free instead
23131         of realloc.
23133 2002-05-10  Jason Rumney  <jasonr@gnu.org>
23135         * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
23137 2002-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
23139         * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
23140         parens, to ensure correct evaluation order.
23142 2002-05-10  Kim F. Storm  <storm@cua.dk>
23144         * keymap.c (Vemulation_mode_map_alists): New variable.
23145         (syms_of_keymap): DEFVAR_LISP it.
23146         (current_minor_maps): Process keymap alists in that list before
23147         minor-mode-overriding-map-alist and minor-mode-map-alist.
23149 2002-05-09  Richard M. Stallman  <rms@gnu.org>
23151         * search.c (Freplace_match): Doc fix.
23153 2002-05-09  Kim F. Storm  <storm@cua.dk>
23155         * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23156         Enlarge cursor rectangle drawn around image with non-zero relief.
23158         * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
23159         Enlarge cursor rectangle drawn around image with non-zero relief.
23161         * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
23162         Enlarge cursor rectangle drawn around image with non-zero relief.
23164 2002-05-07  Eli Zaretskii  <eliz@is.elta.co.il>
23166         * xselect.c (lisp_data_to_selection_data): Don't set selection
23167         type if comes from the Lisp object's car.  If the selection
23168         contains a pure ASCII text, always return QSTRING as its type.
23170 2002-05-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23172         * mac.c (mac-cut-function): Doc fix.
23174 2002-05-05  Richard M. Stallman  <rms@gnu.org>
23176         * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
23178 2002-05-04  Jason Rumney  <jasonr@gnu.org>
23180         * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
23181         for event-click-count.
23183         * process.c (init_process): Only add server subfeature if we can
23184         use non-blocking I/O.
23186 2002-05-04  Andrew Choi  <akochoi@shaw.ca>
23188         * macterm.c (XTread_socket): Call WaitNextEvent once instead of
23189         repeatedly.
23191 2002-05-03  Jason Rumney  <jasonr@gnu.org>
23193         * process.c (Fmake_network_process): Only support server sockets
23194         when we can make them non-blocking.
23196         * s/ms-w32.h (HAVE_SELECT): Define.
23198         * w32.h (FILE_NDELAY): New flag.
23200         * w32.c (sys_getpeername, fcntl): New functions.
23201         (_sys_read_ahead): Temporarily block on non-blocking sockets.
23203         * w32proc.c: Include sys/file.h.
23205 2002-05-03  Colin Walters  <walters@verbum.org>
23207         * callproc.c (Vgame_score_directory): Renamed to
23208         Vshared_game_score_directory.
23210 2002-04-30  Richard M. Stallman  <rms@gnu.org>
23212         * s/gnu.h [emacs]: Include stdio.h.
23213         (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
23215         * eval.c (do_autoload): Error if called while preparing to dump.
23217         * fns.c (Frequire): Error if need to load while preparing to dump.
23219 2002-04-28  Colin Walters  <walters@verbum.org>
23221         * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
23222         Default to "~/.emacs.d/games".
23224 2002-04-29  Stefan Monnier  <monnier@cs.yale.edu>
23226         * lread.c (openp): Change arg exec_only to predicate.
23227         (build_load_history): Use XCAR/XCDR.
23228         (Flocate_file_internal): New fun.
23229         (syms_of_lread): Defsubr it.
23230         (Fload): Update call to openp.
23232         * lisp.h (openp): Update prototype.
23234         * xfns.c (x_create_bitmap_from_file, x_find_image_file):
23235         * w32proc.c (sys_spawnve):
23236         * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
23237         * w32.c (check_windows_init_file):
23238         * sound.c (Fplay_sound_internal):
23239         * process.c (Fstart_process):
23240         * macfns.c (x_create_bitmap_from_file, x_find_image_file):
23241         * mac.c (run_mac_command):
23242         * emacs.c (init_cmdargs):
23243         * callproc.c (Fcall_process): Update call to openp.
23245         * textprop.c (remove_properties): Don't use XCAR without CONSP.
23247         * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
23249 2002-04-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23251         * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
23252         (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
23254 2002-04-28  Richard M. Stallman  <rms@gnu.org>
23256         * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
23258         * eval.c (Fcommandp): New arg for_call_interactively.
23259         * lisp.h (Fcommandp): Declare new arg.
23261 2002-04-28  Jason Rumney  <jasonr@gnu.org>
23263         * w32proc.c (syms_of_w32proc): Get true file attributes by default.
23265         * w32.c (stat, fstat): Use file index information to generate
23266         inodes for directories where available.
23268 2002-04-26  Andrew Choi  <akochoi@shaw.ca>
23270         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
23271         [HAVE_CARBON]: Include Mac object files.
23273         * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
23274         fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
23275         termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
23276         MAC_OSX, and MAC_OS instead of macintosh.
23278         * editfns.c [MAC_OS8]: Include stdio.h.
23280         * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
23282         * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
23283         Apple Monaco.
23285         * process.c (QCfamily, QCfilte): Declare extern.
23286         (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
23287         calling select.
23289         * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
23291         * tparam.c [MAC_OSX]: Don't define BC and UP.
23293         * config.in [HAVE_CARBON]: Add.
23295         * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
23296         Move here from mac/src and mac/inc.
23298         * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
23300 2002-04-26  Gerd Moellmann  <gerd@gnu.org>
23302         * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
23303         Compute phys_cursor_width from the x position returned
23304         by x_draw_glyhs, which is cheaper.
23305         (x_display_and_set_cursor): Compute the buffer-local value
23306         of `cursor-in-non-selected-windows' only when needed.
23308 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
23310         * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
23311         cursor on a stretch glyph has a width that depends on
23312         x_stretch_cursor_p.
23314 2002-04-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23316         * abbrev.c (abbrev-start-location): Doc fix.
23318         * indent.c (Fvertical_motion): Fix last change.
23320 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
23322         * indent.c (Fvertical_motion): Move to the start of the line
23323         containing PT before moving up or down.
23325 2002-04-24  Gerd Moellmann  <gerd@gnu.org>
23327         * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
23328         case of writing a whole row, more or less analogous to the case of
23329         writing only parts of a row.
23331         * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
23332         0 for NO_CURSOR.
23334         * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
23336 2002-04-23  Colin Walters  <walters@verbum.org>
23338         * buffer.c (syms_of_buffer): Doc fix.
23340 2002-04-23  Gerd Moellmann  <gerd@gnu.org>
23342         * xterm.c (notice_overwritten_cursor): Handle the special case
23343         of the cursor being in the first blank non-text line at the
23344         end of a window.
23346         * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
23347         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
23348         (x_display_and_set_cursor): Don't set phys_cursor_width here, for
23349         bar cursors only, to make phys_cursor_width contain what its name
23350         suggests.
23351         (notice_overwritten_cursor): Consider the cursor image erased if
23352         the output area intersects the cursor image in y-direction.
23354 2002-04-23  Simon Marshall  <simon@gnu.org>
23356         * xfns.c (x_set_mouse_color): Change default for cross_cursor
23357         to XC_hand2.
23359 2002-04-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23361         * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
23363 2002-04-22  Kim F. Storm  <storm@cua.dk>
23365         * textprop.c (remove_properties): Fixed trap for malformed plist.
23367 2002-04-22  Richard M. Stallman  <rms@gnu.org>
23369         * cmds.c (Fend_of_line): Handle intangible text in mid line.
23371         * window.c (make_window): Initialize height_fixed_p,
23372         last_cursor_off_p, and p->cursor_off_p slots.
23374 2002-04-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23376         * fns.c (use-dialog-box): Doc fix.
23378 2002-04-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23380         * xterm.c (note_mode_line_or_margin_highlight): Remove unused
23381         variables `row', `i' and `area'.
23382         (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
23383         toolkit library.
23385 2002-04-19  Stefan Monnier  <monnier@cs.yale.edu>
23387         * xfaces.c (clear_font_table): Don't free the default font of
23388         a frame even if it's on another display.
23389         (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
23390         that could be Qt.
23392 2002-04-19  Juanma Barranquero  <lektu@terra.es>
23394         * indent.c (Fmove_to_column): Remove unused local variable
23395         `next_boundary_byte'.
23396         (current_column_1): Likewise.
23398 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
23400         * msdos.c (Qhbar): New variable.
23401         (syms_of_msdos): Intern and staticpro it.
23402         (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
23403         cursor type.
23405 2002-04-19  Dave Lambert  <dlambert@acm.org>
23407         Theses change implement an underscore-like (`hbar') cursor.
23409         * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
23411         * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
23412         Handle the `hbar' cursor type.
23413         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
23415         * xfns.c (Qhbar): New variable.
23416         (syms_of_xfns): Intern and staticpro it.
23417         (x_specified_cursor_type): Handle `hbar' cursor.
23419         * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
23420         not defined.
23422 2002-04-18  Richard M. Stallman  <rms@gnu.org>
23424         * textprop.c (remove_properties): New arg LIST allows scanning
23425         either a list or a plist.
23426         (interval_has_some_properties_list): New function, like
23427         interval_has_some_properties using list instead of plist.
23428         All callers changed.
23429         (Fremove_list_of_text_properties): New function.
23430         (syms_of_textprop): Defsubr it.
23432 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
23434         * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
23436 2002-04-17  Juanma Barranquero  <lektu@terra.es>
23438         * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
23440 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
23442         * window.c (coordinates_in_window): Don't report on margin area
23443         if its width is zero.
23445 2002-04-16  Jason Rumney  <jasonr@gnu.org>
23447         * w32fns.c (Fx_file_dialog): Decode file name before using.
23449         * w32term.c (construct_drag_n_drop): Likewise.
23451 2002-04-16  Eli Zaretskii  <eliz@is.elta.co.il>
23453         * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
23454         store load-history in pure space.
23456         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
23458 2002-04-16  Stefan Monnier  <monnier@cs.yale.edu>
23460         * xterm.c (Qlatin_1, Qutf_8): New vars.
23461         (syms_of_xterm): Initialize them.
23462         (XTread_socket): Eliminate incorrect optimization that tried to avoid
23463         decoding the output of X*LookupString.
23464         Always use latin-1 to decode the output of XLookupString.
23465         Try Xutf8LookupString if XmbLookupString failed.
23467         * region-cache.c (new_region_cache): Use BEG.
23469 2002-04-16  Gerd Moellmann  <gerd@gnu.org>
23471         * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
23472         configuration files.
23473         (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
23474         returns 0.
23476 2002-04-15  Andreas Schwab  <schwab@suse.de>
23478         * config.in: Regenerated using autoheader.
23480         * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
23481         m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
23482         m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
23483         m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
23484         m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
23485         m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
23486         m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
23487         m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
23488         m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
23489         m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
23490         m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
23491         m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
23492         m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
23493         m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
23494         m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
23495         s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
23496         STACK_DIRECTION, now set by autoconf.
23498 2002-04-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23500         * dispnew.c (marginal_area_string): Sort arguments.
23502         * dispextern.h (marginal_area_string): Add prototype.
23504 2002-04-13  Richard M. Stallman  <rms@gnu.org>
23506         * fileio.c (Finsert_file_contents):
23507         Don't call temp_output_buffer_setup--do just part, by hand.
23509         * coding.c (run_pre_post_conversion_on_str):
23510         Don't call temp_output_buffer_setup--do just part, by hand.
23512         * keyboard.c (command_loop_1): Don't call start_hourglass
23513         or cancel_hourglass when executing a macro.
23515         * marker.c (count_markers): New function.
23517         * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
23518         grow without limit.  Move recently used elements to the front.
23520 2002-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
23522         * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
23524 2002-04-12  Gerd Moellmann  <gerd@gnu.org>
23526         * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
23527         rows marginal areas.
23528         (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
23529         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
23531         * dispnew.c (marginal_area_string): Check that glyph row is enabled.
23533 2002-04-12  Dave Love  <fx@gnu.org>
23535         * dispnew.c (marginal_area_string): New.
23537         * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
23538         (Qleft_margin, Qright_margin): Declare.
23539         (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
23541         * xterm.c (note_mode_line_or_margin_highlight): Renamed from
23542         note_mode_line_highlight and extended.
23544         * keyboard.c (Qleft_margin, Qright_margin): Declare.
23545         (make_lispy_event): Deal with mouse events in margins.
23547 2002-04-12  Stefan Monnier  <monnier@cs.yale.edu>
23549         * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
23551         * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
23552         than deactivating the mark if tmm is set to `lambda'.
23553         (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
23554         Use a single event for HELP_EVENT.
23555         (Fexecute_extended_command): Save last_point_position.
23557 2002-04-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23559         * lisp.h (Fpropertize): Add prototype.
23561         * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
23563 2002-04-10  Colin Walters  <walters@verbum.org>
23565         * config.in: Add HAVE_SHARED_GAME_DIR.
23567         * callproc.c (Vgame_score_directory): New variable.
23568         (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
23570 2002-04-10  Richard M. Stallman  <rms@gnu.org>
23572         * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
23574 2002-04-09  Stefan Monnier  <monnier@cs.yale.edu>
23576         * minibuf.c (read_minibuf): Use empty_string.
23577         (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
23578         Short-circuit the search as soon as it "failed".
23579         (Fall_completions): Allow lambda forms and lists of strings for alist.
23580         (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
23581         when require_match is nil.
23582         (Ftest_completion): Rename from `test_completion' and export to elisp.
23583         Call the predicate also when alist is a list.
23584         Obey Vcompletion_regexp_list.
23585         (do_completion, Fminibuffer_complete_and_exit): Use it.
23586         (Fassoc_string): Rename from `assoc_for_completion'.
23587         Allow list of strings as well and export to elisp.
23589 2002-04-08  Stefan Monnier  <monnier@cs.yale.edu>
23591         * puresize.h (BASE_PURESIZE): Increase to 900KB.
23593 2002-04-08  Juanma Barranquero  <lektu@terra.es>
23595         * w32.c (sys_accept): Don't hide variable `s'.
23597 2002-04-05  Gerd Moellmann  <gerd@gnu.org>
23599         * callint.c (Fcall_interactively): Use INTEGERP instead of
23600         NUMBERP for checking Vhistory_length.
23602 2002-04-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23604         * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
23605         Doc fix to reflect it.
23607 2002-04-04  Richard M. Stallman  <rms@gnu.org>
23609         * xdisp.c (display_mode_element): New arg RISKY.
23610         Disregard text props found or specified within a variable
23611         that isn't marked risky-local-variable.
23612         (Qrisky_local_variable): New variable.
23613         (syms_of_xdisp): Init and staticpro it.
23615 2002-04-04  Stefan Monnier  <monnier@cs.yale.edu>
23617         * undo.c (record_point): New fun.
23618         (record_delete, record_insert): Use it.
23620 2002-04-03  Juanma Barranquero  <lektu@terra.es>
23622         * doc.c (Fdocumentation): Add missing parentheses.
23623         (Fdocumentation_property): Likewise.
23625 2002-04-03  Stefan Monnier  <monnier@cs.yale.edu>
23627         * doc.c (Fdocumentation, Fdocumentation_property): When the doc
23628         data is 0, just return nil.
23630 2002-04-03  Eli Zaretskii  <eliz@is.elta.co.il>
23632         * msdos.c (syms_of_msdos): Fix last change with
23633         mouse_autoselect_window.
23635 2002-04-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23637         * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
23638         mouse_autoselect_window.
23640 2002-04-02  Stefan Monnier  <monnier@cs.yale.edu>
23642         * keyboard.c (make_lispy_event): Handle unknown keysyms together
23643         with system-specific keysyms.  Use it also for unknown function keys.
23645         * doc.c (reread_doc_file): Return whether reload was attempted.
23646         (Fdocumentation, Fdocumentation_property): Don't try to reload
23647         if the doc is 0 and only ask once.
23649         * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
23651 2002-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
23653         * keyboard.c (read_char): If the event was Qselect_window,
23654         restore timer_idleness_start_time to its previous value.
23656         * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
23658 2002-04-01  Stefan Monnier  <monnier@cs.yale.edu>
23660         * region-cache.c (new_region_cache): Use BEG.
23662         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
23663         Use BEG and BEG_BYTE.
23665         * doc.c (get_doc_string): Return nil if the location is wrong.
23666         (reread_doc_file): New fun.
23667         (Fdocumentation, Fdocumentation_property):
23668         Call it if get_doc_string fails.
23669         (Fsnarf_documentation): Make it work for a dumped Emacs.
23671         * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
23672         Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
23674         * charset.c (Fstring): Allow 0 arguments.
23676         * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
23678         * process.c (DATAGRAM_CONN_P, list_processes_1)
23679         (Fprocess_datagram_address, Fset_process_datagram_address)
23680         (Fset_network_process_options, server_accept_connection):
23681         Fix some int/Lisp_Object confusions (thank you union types).
23683 2002-04-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23685         * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
23687         * w32term.c: Likewise.
23688         (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
23690         * keyboard.c (Qselect_window): New symbol.
23691         (head_table): Use it.
23692         (keys_of_keyboard): Bound select-window event to handle-select-window.
23693         (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
23695         * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
23696         (last_window): New variable.
23697         (XTread_socket): Generate SELECT_WINDOW_EVENTs.
23698         (note_mouse_movement): Remove reimplemented code in #if 0.
23699         (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
23700         Emacs windows.
23702         * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
23704 2002-03-31  Gerd Moellmann  <gerd@gnu.org>
23706         * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
23707         Callers changed.
23709 2002-03-30  Richard M. Stallman  <rms@gnu.org>
23711         * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
23712         loop whenever it stops making progress.
23714         * widget.c (set_frame_size): Don't call change_frame_size.
23716 2002-03-30  Gerd Moellmann  <gerd@gnu.org>
23718         * dispnew.c (direct_output_for_insert):
23719         Call mark_window_display_accurate.
23721 2002-03-29  Jason Rumney  <jasonr@gnu.org>
23723         * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
23725 2002-03-29  Eli Zaretskii  <eliz@is.elta.co.il>
23727         * Makefile.in (lread.o): Depend on coding.h.
23729         * lread.c (openp, Fload): Encode the file name before passing it
23730         to `stat', `access', and `emacs_open'.
23731         (openp): GCPRO the encoded file name.  Don't recompute Lisp
23732         strings unnecessarily.
23734 2002-03-29  Kim F. Storm  <storm@cua.dk>
23736         * fns.c (Flax_plist_put): Doc fix.
23738 2002-03-28  Miles Bader  <miles@gnu.org>
23740         * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
23742 2002-03-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23744         * process.c (set-network-process-options): Add usage.
23745         (make-network-process): Doc fix.
23747 2002-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
23749         * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
23751 2002-03-26  Richard M. Stallman  <rms@gnu.org>
23753         * fns.c (Fsubstring_no_properties): New function.
23754         (Flax_plist_get, Flax_plist_put): New functions.
23755         (syms_of_fns): defsubr them.
23757         * xdisp.c (update_menu_bar): Test only update_mode_lines;
23758         don't test or alter w->update_mode_line.
23760         * window.c (Fdisplay_buffer): Doc fix.
23762 2002-03-24  Richard M. Stallman  <rms@gnu.org>
23764         * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
23766 2002-03-24  Gerd Moellmann  <gerd@gnu.org>
23768         * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
23769         (Fdefmacro): Handle `(declare ...)'.
23770         (syms_of_eval) <Qdeclare>: Initialize and staticpro.
23771         (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
23773 2002-03-24  Jason Rumney  <jasonr@gnu.org>
23775         * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
23776         (xbm_file_p): Add prototypes.
23777         (xbm_format, xbm_image_p): Sync with xfns.c.
23778         (reflect_byte): New function.
23779         (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
23780         (xbm_load_image): Create bitmaps with a depth of 1.
23781         (init_xfns): Enable XBM images.
23783 2002-03-23  Jason Rumney  <jasonr@gnu.org>
23785         * w32term.c (w32_handle_tool_bar_click): Detect up and down events
23786         correctly.  Do not pass up_modifier to keyboard buffer.
23788         * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
23790 2002-03-22  Stefan Monnier  <monnier@cs.yale.edu>
23792         * Makefile.in (bootstrapclean): New target.
23793         (bootstrap-temacs, bootstrap-doc): Remove.
23794         (bootstrap-emacs): Use a bog-standard `temacs'.
23795         Don't bother to build a DOC file.
23797         * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
23799         * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
23800         in temacs even if !CANNOT_DUMP.
23801         (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
23803         * alloc.c (check_pure_size): Only output a warning.
23805 2002-03-22  Jason Rumney  <jasonr@gnu.org>
23807         * w32fns.c (Fx_create_frame): Enable tool-bar when images are
23808         supported.
23810         * w32term.c (zv_bits): Declare as short, for word alignment.
23811         (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
23812         (syms_of_w32term): Define x-use-underline-position-properties.
23814         * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
23815         (clear_image_cache): Block input, fix logic, clear matrices in
23816         all frames that share this cache.
23818 2002-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
23820         * emacs.c (main): Update the Copyright year in the blurb printed
23821         by "emacs --version".
23823         * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
23825         * xterm.c (XTread_socket): If XK_ISO_Lock and
23826         XK_ISO_Last_Group_Lock are defined, handle keysyms between
23827         XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
23829 2002-03-21  Kim F. Storm  <storm@cua.dk>
23831         * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
23832         menu-bar bindings in keymap and local-map properties _are_ used.
23833         But try keymap property first in accordance with 2002-01-03 patch.
23834         Added comment describing why this is not always reliable.
23835         (tool_bar_items): Ditto for tool-bar.
23837 2002-03-21  Jason Rumney  <jasonr@gnu.org>
23839         * w32fns.c (x_clear_image_1): Disable color table code.
23841 2002-03-21  Kim F. Storm  <storm@cua.dk>
23843         * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
23844         removed the wrong version of the DEFUN macro; fixed it.
23846         * fns.c (Ffeaturep): Allow subfeature to be a list (test using
23847         Fmember rather than Fmemq).
23848         (Fprovide): Check that subfeatures is a list.
23850         * process.c (QCfeature, QCdatagram): Removed variables.
23851         (QCtype, Qdatagram): New variables.
23852         (network_process_featurep): Removed function.
23853         (Fmake_network_process): Removed :feature check.
23854         Use :type 'datagram instead of :datagram t to create a datagram
23855         socket.  This allows us to add other connection types (e.g. raw
23856         sockets) later in a consistent manner.
23857         (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
23858         supported subfeatures for feature make-network-process.
23859         (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
23860         Intern and staticpro QCtype and Qdatagram.
23861         (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
23863         * xfns.c (QCtype): Remove duplicate declaration and
23864         initialization (is now declared in process.c).
23866         * w32fns.c (QCtype): Remove duplicate declaration and
23867         initialization (is now declared in process.c).
23869 2002-03-21  Richard M. Stallman  <rms@gnu.org>
23871         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
23872         (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
23873         when jumping to `fail' to avoid undoing reg changes in the
23874         last iteration of the loop.
23875         (GET_UNSIGNED_NUMBER): Skip spaces around the number.
23877         * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
23878         Depend on process.h.
23880 2002-03-20  Jason Rumney  <jasonr@gnu.org>
23882         Most of the following changes are still conditional on HAVE_IMAGES
23883         which is not set by default on Windows.
23885         * emacs.c (main) [WINDOWSNT]: Call init_xfns.
23887         * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
23888         (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
23889         (four_corners_best, x_clear_image_1, x_clear_image)
23890         (x_alloc_image_color, postprocess_image)
23891         (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
23892         (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
23893         (init_xfns, syms_of_w32fns): Initialize image functions and constants.
23895         * w32gui.h (struct XImage): Define.
23897         * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
23898         extract mouse co-ordinates.
23900 2002-03-20  Jason Rumney  <jasonr@gnu.org>
23902         * w32.c (init_winsock): Dynamically load new server and UDP
23903         socket functions.
23904         (socket_to_fd): New function.
23905         (sys_socket): Use it.
23906         (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
23907         (sys_recvfrom, sys_sendto): New wrapper functions.
23909         * process.c (QCfamily, QCfilter): Remove duplicate declaration
23910         and initialization.
23912         * makefile.w32-in (LIBS): Remove $(WSOCK32).
23914 2002-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
23916         * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
23917         Don't use "sun" as a variable, it's a predefined constant on Sun
23918         machines.
23920 2002-03-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23922         * bytecode.c (Fbyte_code): Revert last change.
23924 2002-03-19  Kim F. Storm  <storm@cua.dk>
23926         * makefile.w32-in (LIBS): Add $(WSOCK32).
23927         From David Ponce <dponce@voila.fr>.
23929 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23931         * process.c (wait_reading_process_input): Move variables `pname'
23932         and `pnamelen' down where they are used.
23934         * bytecode.c (Fbyte_code): Discard unused computed value to
23935         prevent gcc warning.
23937         * lisp.h (Fplist_member): Add prototype.
23939 2002-03-18  Kim F. Storm  <storm@cua.dk>
23941         * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
23942         HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
23944         * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
23945         Remove explicit GNU_LINUX settings for datagram support.
23947 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
23949         * process.c (Fmake_network_process): Remove unused variable `sa'.
23950         Doc fix.  Add usage:.
23951         (set_socket_options): Remove unused variables `optnum' and `opttype'.
23953 2002-03-17  Richard M. Stallman  <rms@gnu.org>
23955         * xdisp.c (cursor_type_changed): New variable.
23956         (redisplay_internal): Redisplay all windows if cursor_type_changed.
23957         Clear it when clearing windows_or_buffers_changed.
23958         (try_cursor_movement, redisplay_window, try_window_id)
23959         (try_window_reusing_current_matrix): Test cursor_type_changed
23960         along with windows_or_buffers_changed.
23962         * window.h (cursor_type_changed): New variable.
23964         * xfns.c (x_set_cursor_type): Set cursor_type_changed,
23965         not update_mode_lines, and always set it to 1.
23967         * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
23968         if no frames needed redrawing.
23970 2002-03-17  Kim F. Storm  <storm@cua.dk>
23972         The following changes add support for network server processes,
23973         datagram connections, and local (unix) sockets.
23975         * process.h (struct Lisp_Process): New member log.
23976         Doc fix: Member command used to indicate stopped network process.
23977         Doc fix: Member childp contains plist for network process.
23978         Doc fix: Member kill_without_query is inverse of query-on-exit flag.
23980         * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
23981         (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery, QCstop)
23982         (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature): New
23983         variables.
23984         (NETCONN1_P): New macro.
23985         (DATAGRAM_SOCKETS): New conditional symbol.
23986         (datagram_address): New array.
23987         (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
23988         (status_message): Use concat3.
23989         (Fprocess_status): Add `listen' status to doc string.  Return
23990         `stop' for a stopped network process.
23991         (Fset_process_buffer): Update contact plist for network process.
23992         (Fset_process_filter): Ditto.  Don't enable input for stopped
23993         network processes.  Server must listen, even if filter is t.
23994         (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
23995         New functions.
23996         (Fprocess_kill_without_query): Removed.  Now defined in simple.el.
23997         (Fprocess_contact): Added KEY argument.  Handle datagrams.
23998         (list_processes_1): Optionally show only processes with the query
23999         on exit flag set.  Dynamically adjust column widths.  Omit tty
24000         column if not needed.  Report stopped network processes.  Identify
24001         server and datagram network processes.
24002         (Flist_processes): New optional arg `query-only'.
24003         (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
24004         (conv_lisp_to_sockaddr, set_socket_options)
24005         (network_process_featurep, unwind_request_sigio): New helper
24006         functions.
24007         (Fprocess_datagram_address, Fset_process_datagram_address):
24008         (Fset_network_process_options): New lisp functions.
24009         (Fopen_network_stream): Removed.  Now defined in simple.el.
24010         (Fmake_network_process): New lisp function.  Code is based on
24011         previous Fopen_network_stream, but heavily reworked with new
24012         property list based argument list, support for datagrams, server
24013         processes, and local sockets in addition to old client-only
24014         functionality.
24015         (server_accept_connection): New function.
24016         (wait_reading_process_input): Use it to handle incoming connects.
24017         Do not enable input on a new connection if process is stopped.
24018         (read_process_output): Handle datagram sockets.  Use 2k buffer for
24019         them.
24020         (send_process): Handle datagram sockets.
24021         (Fstop_process, Fcontinue_process): Apply to network processes.  A
24022         stopped network process is indicated by setting command field to t.
24023         (Fprocess_send_eof): No-op if datagram connection.
24024         (Fstatus_notify): Don't read input for a stream server socket or a
24025         stopped network process.
24026         (init_process): Initialize datagram_address array.
24027         (syms_of_process): Intern and staticpro new variables, defsubr new
24028         functions.
24030 2002-03-16  Jason Rumney  <jasonr@gnu.org>
24032         * w32fns.c (w32_to_all_x_charsets): Return correct type in
24033         startup case.
24035 2002-03-16  Richard M. Stallman  <rms@gnu.org>
24037         * xdisp.c (redisplay_internal, redisplay_windows):
24038         Use list_of_error to call internal_condition_case_1.
24039         (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
24040         so as to catch all errors with no possibility of debugger redisplay.
24041         (list_of_error): New variable.
24042         (syms_of_xdisp): Init and staticpro it.
24044         * print.c (print_object): Delete `\ ' from printed rep of frame.
24046 2002-03-15  Eli Zaretskii  <eliz@is.elta.co.il>
24048         * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
24049         until its implementation is fixed.
24051 2002-03-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24053         * xfns.c (png_load): Remove unused variable `gamma_str'.
24055 2002-03-14  Richard M. Stallman  <rms@gnu.org>
24057         * xfns.c (x_real_positions): Handle failure in XQueryTree.
24059 2002-03-14  Miles Bader  <miles@gnu.org>
24061         * intervals.c (adjust_for_invis_intang): New function.
24062         (set_point_both): Use `adjust_for_invis_intang' to do most of the
24063         work for dealing with invisible+intangible regions.  Do so before
24064         and after both forward and backward movements, to handle both
24065         front-sticky and rear-sticky cases.
24066         * textprop.c (text_property_stickiness): Function moved here from
24067         `editfns.c'.
24068         * intervals.h (text_property_stickiness): New declaration.
24069         * editfns.c (char_property_eq): Function removed.
24070         (text_property_stickiness): Function moved to `textprop.c'.
24072 2002-03-13  Jason Rumney  <jasonr@gnu.org>
24074         * config.in: Add STRFTIME_NO_POSIX2.
24076         * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
24077         and %OX when underlying strftime does not.
24079 2002-03-13  Stefan Monnier  <monnier@cs.yale.edu>
24081         * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
24082         Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
24083         line) to avoid annoying flicker.
24084         (xm_scroll_callback): Get rid of the now unnecessary kludge.
24085         (XTread_socket): Mark it static.
24087         * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
24089 2002-03-13  Kim F. Storm  <storm@cua.dk>
24091         * puresize.h (BASE_PURESIZE): Increase to 775000.
24093 2002-03-12  Juanma Barranquero  <lektu@terra.es>
24095         * editfns.c (syms_of_editfns): Fix typo.
24097 2002-03-12  Gerd Moellmann  <gerd@gnu.org>
24099         * xsmfns.c: Include stdio.h because termhooks.h needs it.
24100         Include termopt.h for interrupt_input.
24102 2002-03-11  Andreas Schwab  <schwab@suse.de>
24104         * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
24106 2002-03-11  Gerd Moellmann  <gerd@gnu.org>
24108         * xterm.c (note_mouse_movement): Put code for
24109         x_autoselect_window_p in #if 0.
24111         * lread.c (Fload): Don't assume that message_with_string uses the
24112         string it is given like a C string.
24114 2002-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
24116         * xterm.h (x_session_check_input, x_session_initialize): Declare.
24118         * xterm.c (XTread_socket): Add call to x_session_check_input and
24119         x_session_have_connection.
24120         (x_initialize): Add call to x_session_initialize.
24122         * termhooks.h (enum event_kind): Add save_session_event.
24124         * keyboard.c: Add Emacs event save_session_event.
24126         * emacs.c (main): Add call to syms_of_xsmfns.
24128         * lisp.h (syms_of_xsmfns): Declare extern.
24130         * config.in: Add HAVE_X_SM.
24132         * Makefile.in (LIBXT): Add -lSM -lICE
24133         if HAVE_X_SM and not USE_X_TOOLKIT.
24134         (XOBJ): New file xsmfns.c added.
24136         * xsmfns.c: New file for X session management.
24138 2002-03-09  Jason Rumney  <jasonr@gnu.org>
24140         * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
24141         read-only when setting modified time.
24143 2002-03-08  Gerd Moellmann  <gerd@gnu.org>
24145         * xdisp.c (move_it_vertically_backward): At the end of the function,
24146         when moving forward by lines, treat terminal frames specially.
24148         * keyboard.c (echo_char): Make sure to add a separator between
24149         keys even if echo_dash hasn't been called.
24151         * xdisp.c: Use new string macros.
24152         (update_echo_area): Pass number of bytes to message3 instead of
24153         number of chars.
24154         (set_message_1): Don't access a string's size_byte directly.
24155         (decode_mode_spec_coding): Use number of bytes of eoltype string
24156         instead number of chars.
24158         * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
24160 2002-03-08  Juanma Barranquero  <lektu@terra.es>
24162         * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
24163         24-bit.
24165 2002-03-06  Jason Rumney  <jasonr@gnu.org>
24167         * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
24169 2002-03-06  Gerd Moellmann  <gerd@gnu.org>
24171         * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
24172         (cancel_echoing, echo_length, echo_truncate): Changed to
24173         work with new kboard definition.
24174         (echo_now): Use message3_nolog instead of message2_nolog.
24176         * alloc.c (mark_kboards): Mark echo_string.
24178         * keyboard.h (ECHOBUFSIZE): Removed.
24179         (struct kboard): Member echoptr removed, member echobuf renamed
24180         to echo_string.
24182         * xdisp.c (message_with_string): Use Fformat instead of doprnt and
24183         message3 instead of message2 to display the message using STRING's
24184         text properties.
24186 2002-03-05  Andreas Schwab  <schwab@suse.de>
24188         * xdisp.c (hscroll_margin): Change to EMACS_INT.
24190 2002-03-05  Per Abrahamsen  <abraham@dina.kvl.dk>
24192         * frame.c (default-frame-alist): Explain that setting it doesn't
24193         affect existing frames.
24195 2002-03-05  Stefan Monnier  <monnier@cs.yale.edu>
24197         * indent.c (skip_invisible): Fix my brain fart.
24199         * dispnew.c (sit_for): Don't wait if executing a kbd macro.
24201 2002-03-04  Stefan Monnier  <monnier@cs.yale.edu>
24203         * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
24204         * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
24205         * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
24206         * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
24207         and variables to use EMACS_INT instead of just int.
24209         * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
24211 2002-03-04  Eli Zaretskii  <eliz@is.elta.co.il>
24213         * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
24214         environment, pass it down with corrected value.
24216 2002-03-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24218         * lread.c (read_filtered_event): Do not call start_hourglass
24219         before returning.
24221 2002-03-04  Juanma Barranquero  <lektu@terra.es>
24223         * w32term.c (x_display_and_set_cursor): Fix typo.
24225 2002-03-03  Richard M. Stallman  <rms@gnu.org>
24227         * fileio.c (Fmake_temp_name): Doc fix.
24229 2002-03-03  Gary Wong  <gtw@gnu.org>
24231         * termcap.c [!emacs]: Replace ospeed for building standalone
24232         libtermcap, for binary compatibility.
24234         * tparam.c [!emacs]: Move #define of bcopy to after string.h.
24236 2002-03-03  Richard M. Stallman  <rms@gnu.org>
24238         * xrdb.c (file_p): Rename arg `path' to `filename'.
24240         * abbrev.c (Fexpand_abbrev): Increment plist as use count
24241         only if it is an integer.
24243         * xfns.c (png_load): Set screen_gamma based on f->gamma.
24244         If png_get_sRGB gives an answer, call png_set_gamma
24245         using the default image gamma value.
24247         * lread.c (read1): When reading from a file, default string to
24248         multibyte only if it has some multibyte characters.
24250         * print.c (print_object): Output multibyte chars 128...255
24251         using \x even if ! print_escape_multibyte.
24253         * xdisp.c (display_mode_element): Move the places where
24254         bytepos, charpos, this, and lisp_string are set.
24255         Use lisp_string to set bytepos.
24257         * xdisp.c (redisplay_internal):
24258         Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
24260         * xdisp.c (display_mode_element): Merge properties specified with
24261         :propertize onto those that come with the string.
24263 2002-03-03  Eli Zaretskii  <eliz@is.elta.co.il>
24265         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
24266         automatic-hscrolling.  Users changed.
24267         <hscroll-margin>: Renamed from automatic-hscroll-margin.
24268         Users changed.
24269         <hscroll-step>: Renamed from automatic-hscroll-step.  Users changed.
24271 2002-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
24273         * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
24275 2002-03-02  Kim F. Storm  <storm@cua.dk>
24277         * window.c (Fminibuffer_selected_window): New function.
24278         (syms_of_window): Defsubr it.
24280 2002-03-01  Kim F. Storm  <storm@cua.dk>
24282         * window.h (struct window): New member phys_cursor_width.
24284         * window.c (make_window, replace_window): Init phys_cursor_width.
24286         * xterm.c (x_display_and_set_cursor): Blink box cursor using
24287         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
24289         * w32term.c (x_display_and_set_cursor): Blink box cursor using
24290         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
24292         * lisp.h (GCPRO6): New macro.
24294         * process.c (Fopen_network_stream): Use GCPRO6.
24296 2002-03-01  Kim F. Storm  <storm@cua.dk>
24298         * process.c (Qconnect, Qfailed): New variables.
24299         (syms_of_process): Intern and staticpro them.
24300         (Fprocess_status): Document connect and failed return values.
24301         [NON_BLOCKING_CONNECT]: New conditional.
24302         (connect_wait_mask, num_pending_connects): New variables.
24303         (status_message): Convert Qfailed status.
24304         (Fopen_network_stream): Added support for non-blocking connect.
24305         New optional args: filter, sentinel, non_blocking.  Doc updated.
24306         [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
24307         (deactivate_process): Handle pending non-blocking connect.
24308         (wait_reading_process_input): Poll for status of non-blocking
24309         connects.  Exec sentinel directly when connect succeeds.
24310         (status_notify): Don't read process output if not yet connected.
24312 2002-02-28  Kim F. Storm  <storm@cua.dk>
24314         * window.c (minibuf_selected_window): Renamed from
24315         Vminibuf_selected_window.  Users changed.
24316         (syms_of_window): Staticpro it.
24318 2002-02-26  Kim F. Storm  <storm@cua.dk>
24320         The following changes add a new Vminibuf_selected_window variable
24321         which is similar to Vminibuf_scroll_window, but which is only set
24322         on entry to the minibuffer (from a non-minibuffer window):
24324         * window.c (Vminibuf_selected_window): New variable.
24325         (struct save_window_data): New member minibuf_selected_window.
24326         (Fset_window_configuration): Restore Vminibuf_selected_window.
24327         (Fcurrent_window_configuration): Save Vminibuf_selected_window.
24328         Set minibuf_scroll_window member to nil if minibuf_level is 0.
24329         (compare_window_configurations): Compare minibuf_selected_window.
24331         * window.h (Vminibuf_selected_window): Declare extern.
24333         * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
24334         entry to minibuffer or on entry from a non-minibuffer window.
24336         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
24337         Vminibuf_selected_window instead of Vminibuf_scroll_window.
24339         * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
24340         instead of Vminibuf_scroll_window when deciding in which window
24341         the region should be highlighted.  Consequently, the region remains
24342         highlighteded even when a completion buffer is also displayed.
24344 2002-02-26  Eli Zaretskii  <eliz@is.elta.co.il>
24346         * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
24348         * xselect.c (Qcompound_text_with_extensions): Renamed from
24349         Qcompound_text_no_extensions.
24350         (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
24352 2002-02-26  Juanma Barranquero  <lektu@terra.es>
24354         * w32proc.c (syms_of_ntproc): Doc fix.
24356 2002-02-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24358         * intervals.h: Include "dispextern.h" unconditionally.
24360 2002-02-24  Jason Rumney  <jasonr@gnu.org>
24362         * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
24363         and disp-table.elc.
24364         (lisp): Add emacs-lisp/backquote.elc.
24366 2002-02-24  Kim F. Storm  <storm@cua.dk>
24368         * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
24369         The validation of the event type was too strict as it didn't
24370         allow string events; buffer names are used in bindings for
24371         menu-bar-select-buffer (see `menu-bar-update-buffers').
24373 2002-02-23  Kim F. Storm  <storm@cua.dk>
24375         The following changes rework my patch of 2002-02-06 which
24376         added command remapping by entering the commands directly into
24377         the keymaps.  Now, command remapping uses an explicit `remap'
24378         prefix in the keymaps, i.e. [remap COMMAND].
24380         * keymap.c (Qremap, remap_command_vector): New variables.
24381         (is_command_symbol): Remove function.
24382         (Fdefine_key): No longer accept a symbol for KEY.
24383         Added validation of [remap COMMAND] argument for KEY.
24384         The DEF is no longer required to be a symbol when remapping a command.
24385         (Fremap_command): New function to remap command through keymaps.
24386         (Flookup_key): Perform command remapping initiated by
24387         Fremap_command directly for speed.
24388         (Fkey_binding): Use Fremap_command for command remapping.
24389         (where_is_internal): Handle new command remapping representation.
24390         (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
24391         staticpro them.  Defsubr Fremap_command.
24393         * keymap.h (Fremap_command): Declare extern.
24394         (is_command_symbol): Remove extern.
24396         * keyboard.c (command_loop_1): Use Fremap_command for command
24397         remapping; now try command remapping for all symbols.
24399 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
24401         * coding.h (run_pre_post_conversion_on_str): Add prototype.
24403 2002-02-23  Jason Rumney  <jasonr@gnu.org>
24405         * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
24406         on the string before encoding it.
24407         (Fw32_get_clipboard_data): Run post-read-conversion on the string
24408         after decoding it.
24410         * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
24412 2002-02-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24414         * w32term.c (enter_timestamp): Remove unused static variable to
24415         prevent warning.
24417         * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
24419 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
24421         * w16select.c (Fw16_get_clipboard_data): Fix last change.
24423         * xselect.c (selection_data_to_lisp_data): Fix last change.
24425 2002-02-22  Jason Rumney  <jasonr@gnu.org>
24427         * w32term.h (struct w32_output): New member menu_command_in_progress.
24429         * w32menu.c (menubar_selection_callback): Free the menu and
24430         clear the menu_command_in_progress flag.
24432         * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
24433         (menu_free_timer): New variable.
24434         (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
24435         (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
24436         <WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
24437         menu command is in progress.
24438         <WM_COMMAND>: Set the menu_command_in_progress flag.
24439         Kill any menu_free_timer that is running.
24441         * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
24442         Call ExtTextOutA rather than ExtTextOut.
24444 2002-02-22  Eli Zaretskii  <eliz@gnu.org>
24446         * puresize.h (BASE_PURESIZE): Increase to 755000.
24448 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
24450         * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
24451         on the string before encoding it.
24452         (Fw16_get_clipboard_data): Run post-read-conversion on the string
24453         after decoding it.
24455 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
24457         Support for ICCCM Extended Segments in X selections:
24459         * xselect.c <Qcompound_text_no_extensions>: New variable.
24460         (syms_of_xselect): Intern and staticpro it.
24461         (selection_data_to_lisp_data): Run post-read-conversion on decoded
24462         selection text.
24463         (lisp_data_to_selection_data): If next-selection-coding-system is
24464         compound-text-no-extensions, set the type of selection to be
24465         compound-text.
24467         * xterm.h (x_encode_text): Update prototype.
24469         * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
24470         callers changed.  If SELECTIONP is non-zero, run the
24471         pre-write-conversion function before encoding the selection text.
24473 2002-02-21  Kim F. Storm  <storm@cua.dk>
24475         * frame.c (syms_of_frame): Change mouse-highlight default to t.
24477         * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
24478         Correct composing of language-change event.
24480 2002-02-20  Kim F. Storm  <storm@cua.dk>
24482         * keyboard.c (menu_bar_items): Don't include keymap or local-map
24483         bindings at PT when building menu (the menu is not updated often
24484         enough for this to work reliable).
24485         (tool_bar_items): Likewise.
24486         (current_active_maps): Removed unused (and buggy) function.
24488 2002-02-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24490         * xfns.c (gif_load): Use correct width and height for GIF images.
24492 2002-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
24494         * floatfns.c (Fatan): Accept an optional second arg and call
24495         atan2 if passed 2 args.
24497 2002-02-18  Jason Rumney  <jasonr@gnu.org>
24499         * w32term.c (glyph_rect): Determine the row and glyph more precisely.
24501 2002-02-17  Jason Rumney  <jasonr@gnu.org>
24503         * w32term.c (x_autoselect_window_p): New variable.
24504         (syms_of_w32term): DEFVAR_BOOL and initialize it.
24505         (note_mouse_movement): Use it.
24507         * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
24509         * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
24511         * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
24512         New variables.
24513         (syms_of_w32fns): Intern and staticpro them.
24514         (x_frame_parms) <"fullscreen">: New parameter.
24515         (x_fullscreen_move, x_set_fullscreen): New functions.
24516         (x_set_frame_parameters): Support Qfullscreen.
24517         (x_real_positions): Save x/y_pixels_diff frame params.
24518         (x_figure_window_size): Support full-screen frames.
24519         (Fx_create_frame): Default the fullscreen parameter.
24521         * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
24522         (x_fullscreen_adjust): New functions.
24523         (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't  resize to
24524         fullscreen.  Call x_check_fullscreen_move, and set the
24525         want_fullscreen member of output_data.w32
24526         <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
24528         * w32term.h: New enum for FULLSCREEN_* constants.
24529         (struct w32_output): New members want_fullscreen, x_pixels_diff,
24530         y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
24531         (x-fullscreen-adjust): New prototype.
24533 2002-02-17  Kim F. Storm  <storm@cua.dk>
24535         * frame.c (Vmouse_highlight): New variable.
24536         (syms_of_frame): DEFVAR_LISP it.
24538         * frame.h (Vmouse_highlight): Declare extern.
24540         * xterm.h (struct x_display_info): Add mouse_face_hidden.
24542         * xterm.c (disable_mouse_highlight): Removed variable.
24543         (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
24544         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
24545         (XTread_socket): Turn mouse_face_hidden off after mouse movement,
24546         and on after keyboard input.
24547         (x_term_init): Initialize mouse_face_hidden.
24549         * msdos.h (struct display_info): Add mouse_face_hidden.
24551         * msdos.c (disable_mouse_highlight): Removed variable.
24552         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
24553         (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
24554         (internal_terminal_init): Initialize mouse_face_hidden.
24555         (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
24556         and on after keyboard input.
24558         * w32term.h (struct w32_display_info): Add mouse_face_hidden.
24560         * w32term.c (disable_mouse_highlight): Removed variable.
24561         (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
24562         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
24563         (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
24564         and on after keyboard input.
24565         (w32_initialize_display_info): Initialize mouse_face_hidden.
24567 2002-02-16  Eli Zaretskii  <eliz@is.elta.co.il>
24569         * msdos.c (last_mouse_window): New variable.
24570         (dos_rawgetc): Fix last change--if the mouse is in the same window
24571         as recorded in last_mouse_window, don't select this window.
24573         * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
24575         * msdos.c (x_autoselect_window_p): New variable.
24576         (syms_of_msdos): Defvar it.
24577         (dos_rawgetc): If x_autoselect_window_p is set, select the window in
24578         which the last mouse movement occured, unless it is already selected.
24580         * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
24581         New variables.
24582         (syms_of_xdisp): DEVFAR them.
24583         (hscroll_window_tree): Use automatic_hscroll_margin and
24584         Vautomatic_hscroll_step to compute the amount of window scrolling.
24586 2002-02-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24588         * xterm.c (x-autoselect-window): New variable.
24589         (note_mouse_movement): Use it.
24591         * keyboard.c: Do not include "systime.h" twice.
24593 2002-02-15  Andreas Schwab  <schwab@suse.de>
24595         * puresize.h (PURESIZE_RATIO): Increase to 9/5.
24597         * alloc.c (NSTATICS): Increase to 1280.
24599 2002-02-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
24601         * alloc.c (NSTATICS): Bump to 1026.
24603         * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
24604         (Vx_super_keysym): New variables.
24605         (syms_of_xterm): DEFVAR_LISP them.
24606         (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
24607         variables to determine which keys to use for the various modifiers.
24609 2002-02-13  Kim F. Storm  <storm@cua.dk>
24611         * window.c (Vmode_line_in_non_selected_windows): Removed.
24612         (mode_line_in_non_selected_windows): New variable.
24613         (syms_of_window): DEFVAR_BOOL it.
24615         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
24616         Use mode_line_in_non_selected_windows.
24617         (mode_line_in_non_selected_windows): Declare extern.
24618         (Vmode_line_in_non_selected_windows): Removed extern.
24620 2002-02-13  Richard M. Stallman  <rms@gnu.org>
24622         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
24623         (Fthis_single_command_keys, Fthis_single_command_raw_keys)
24624         (Fclear_this_command_keys): Doc fixes.
24626         * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
24627         (update_face_from_frame_parameter): Increment face_change_count
24628         and windows_or_buffers_changed to force redisplay using changed faces.
24630         * xdisp.c (QCpropertize): New variable.
24631         (mode_line_proptrans_alist): New variable.
24632         (display_mode_element): New arg PROPS; all calls changed.
24633         Implement this, for strings.
24634         Handle literal output of strings by sharing the
24635         main-line code for strings, using local var `literal'.
24636         Handle :propertize feature.
24637         (syms_of_xdisp): Initialze and staticpro QCpropertize and
24638         mode_line_proptrans_alist.
24640 2002-02-11  Kim F. Storm  <storm@cua.dk>
24642         * window.c (Vmode_line_in_non_selected_windows): New variable.
24643         (syms_of_window): DEFVAR_LISP it.
24645         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
24646         (CURRENT_MODE_LINE_FACE_ID): Use it.
24647         (Vmode_line_in_non_selected_windows): Declare extern.
24649         * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
24650         to get mode line face.
24652 2002-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
24654         * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
24655         variables; cus-start.el doesn't need them anymore.
24657 2002-02-09  Kim F. Storm  <storm@cua.dk>
24659         * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
24660         reduction.  This fixes a display problem where stray newlines were
24661         inserted in the window (corrected by C-l).  Clarified code (IMHO).
24663 2002-02-09  Eli Zaretskii  <eliz@is.elta.co.il>
24665         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
24667         * xdisp.c (display_mode_lines): Fix last change.
24669 2002-02-09  Jason Rumney  <jasonr@gnu.org>
24671         * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
24672         match each other.
24673         (w32_load_system_font): Prevent Cleartype fonts from loading.
24674         (Fx_show_tip): Ensure tip frames are above other topmost windows.
24676 2002-02-09  Kim F. Storm  <storm@cua.dk>
24678         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
24679         (CURRENT_MODE_LINE_HEIGHT): Use it.
24680         (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
24682         * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
24683         (pos_visible_p, handle_face_prop): Likewise.
24684         (display_mode_lines): Likewise, but for the real selected window.
24685         (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
24687         * xfaces.c (Qmode_line_inactive): New face variable for mode-line
24688         in non-selected windows.
24689         (realize_basic_faces): Realize it.
24690         (syms_of_term): Intern and staticpro it.
24692 2002-02-08  Kim F. Storm  <storm@cua.dk>
24694         * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
24695         Changed mail addresses to emacs-devel@gnu.org.
24697 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
24699         * fileio.c (Fsubstitute_in_file_name): If the file name includes
24700         ~user, and there's no such user, don't discard everything before ~user.
24702         * floatfns.c (Fround): Doc fix.
24704 2002-02-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24706         * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
24708 2002-02-07  Stefan Monnier  <monnier@cs.yale.edu>
24710         * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
24712 2002-02-07  Kim F. Storm  <storm@cua.dk>
24714         * keymap.c (where_is_internal): Only check whether definition is
24715         remapped if it fulfills is_command_symbol.
24717 2002-02-07  Andreas Schwab  <schwab@suse.de>
24719         * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
24721         * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
24723 2002-02-06  Kim F. Storm  <storm@cua.dk>
24725         * keymap.c (Fdefine_key): Allow symbol as KEY argument for
24726         defining command remapping.  Doc updated.
24727         (Flookup_key): Remap command through keymap if KEY is a symbol.
24728         (is_command_symbol): New function.
24729         (Fkey_binding): Use it.  New optional argument NO-REMAP.
24730         Doc updated.  Callers changed.  Perform command remapping via
24731         recursive call unless that arg is non-nil.
24732         (where_is_internal): New argument no_remap.  Callers changed.
24733         Call recursively to find original key bindings for a remapped
24734         comand unless that arg is non-nil.
24735         (Fwhere_is_internal): New optional argument NO-REMAP.
24736         Doc updated.  Callers changed.  Pass arg to where_is_internal.
24738         * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
24739         (is_command_symbol): Add prototype.
24741         * keyboard.c (Vthis_original_command): New variable.
24742         (syms_of_keyboard): DEFVAR_LISP it.
24743         (command_loop_1): Set it, and perform command remapping.
24745 2002-02-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24747         * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
24749 2002-02-06  Jason Rumney  <jasonr@gnu.org>
24751         * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
24753 2002-02-06  Eli Zaretskii  <eliz@is.elta.co.il>
24755         * charset.c (get_charset_id): Use if-else instead of ?:.
24757 2002-02-06  Richard M. Stallman  <rms@gnu.org>
24759         * filelock.c (S_ISLNK): Define if not defined.
24761 2002-02-03  Richard M. Stallman  <rms@gnu.org>
24763         * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
24765         * lread.c (read1): Redesign strategy for force_multibyte and
24766         force_singlebyte.  Now is_multibyte records whether read_buffer
24767         is multibyte.  Encountering any multibyte character makes it so.
24769 2002-02-02  Stefan Monnier  <monnier@cs.yale.edu>
24771         * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
24772         with the same sequence, map that sequence to f10 rather than f0.
24774 2002-02-03  Andreas Schwab  <schwab@suse.de>
24776         * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
24777         latter never being defined on GNU/Linux.
24779 2002-02-02  Eli Zaretskii  <eliz@is.elta.co.il>
24781         * xfaces.c (realize_default_face): Don't set the weight and slant of
24782         the default face to Qnormal, unless these attributes are unspecified.
24784 2002-02-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24786         * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
24787         Call cancel_hourglass unconditionally.
24789         * eval.c (Fsignal): Remove duplicated declaration of
24790         the variable `display_hourglass_p'.
24792 2002-01-31  Richard M. Stallman  <rms@gnu.org>
24794         * editfns.c (region_limit): Nicer error message.
24796         * coding.c (decode_composition_emacs_mule):
24797         Give up if NCOMPONENT gets too large to index `component'.
24799         * callint.c (check_mark): New arg to specify clearer error message.
24800         Callers changed.
24802 2002-01-27  Richard M. Stallman  <rms@gnu.org>
24804         * minibuf.c (Fcompleting_read): Doc fix.
24806 2002-01-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24808         * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
24809         (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
24810         Fix doc-strings.
24812 2002-01-26  Richard M. Stallman  <rms@gnu.org>
24814         * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
24816         * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
24817         and scroll_up_aggressively.
24819 2002-01-26  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24821         * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
24823 2002-01-25  Stefan Monnier  <monnier@cs.yale.edu>
24825         * textprop.c (Fnext_property_change, Fnext_single_property_change)
24826         (Fprevious_property_change, Fprevious_single_property_change):
24827         Stay within the narrowed-buffer boundaries.
24829 2002-01-25  Eli Zaretskii  <eliz@is.elta.co.il>
24831         * term.c (Ftty_display_color_cells): New function.
24832         (syms_of_term): Defsubr it.
24833         (Ftty_display_color_cells, Ftty_display_color_p): Change the
24834         argument name to DISPLAY.  Doc fix.
24836         * dispextern.h: Add prototype for set_tty_color_mode and
24837         tty_setup_colors.
24839 2002-01-24  Jason Rumney  <jasonr@gnu.org>
24841         * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
24842         If region left to draw is not what was expected, mark the frame as
24843         garbaged.
24845         * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
24846         Combine the regions returned by BeginPaint and GetUpdateRect.
24848 2002-01-23  Jason Rumney  <jasonr@gnu.org>
24850         * w32term.c (x_update_window_begin): Only hide caret if
24851         w32_use_visible_system_caret is set.
24852         (x_update_window_end): Only show caret if
24853         w32_use_visible_system_caret is set.
24854         (syms_of_w32term): Handle SystemParametersInfo call failing.
24856         * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
24858 2002-01-22  Richard M. Stallman  <rms@gnu.org>
24860         * unexelf.c (unexec): Define n so as to cause compilation error
24861         for the code where people have often written n instead of nn.
24863         * .gdbinit (hookpost-run): Defined.
24865 2002-01-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
24867         * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
24869 2002-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
24871         * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
24872         if fullscreen is being set.
24874 2002-01-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24876         * minibuf.c (Fminibuffer_contents)
24877         (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
24878         (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
24880 2002-01-21  Richard M. Stallman  <rms@gnu.org>
24882         * window.c (check_frame_size): Fix minimum height calculation.
24884 2002-01-20  Ken Raeburn  <raeburn@gnu.org>
24886         * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
24887         height before comparison.
24888         (WINDOW_WANTS_HEADER_LINE_P): Likewise.
24890 2002-01-20  Jason Rumney  <jasonr@gnu.org>
24892         * w32term.c (w32_system_caret_width): Remove.
24893         (w32_use_visible_system_caret): New user flag.
24894         (syms_of_w32term): DEFVAR_BOOL it.  Initialize based on whether
24895         Windows reports a screen reader running.
24896         (x_update_window_begin): Hide the system caret.
24897         (x_update_window_end): Show the system caret.
24898         (x_display_and_set_cursor): Don't draw a cursor when
24899         w32_use_visible_system_caret is set.  Do not adjust width.
24901         * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
24902         (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
24903         <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
24904         the user requests it.  Use system default width when creating.
24905         <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
24907         * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
24908         New window messages.
24910 2002-01-20  Richard M. Stallman  <rms@gnu.org>
24912         * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
24914 2002-01-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24916         * doprnt.c (doprnt1): Fix typos in error call.
24918 2002-01-20  Eli Zaretskii  <eliz@is.elta.co.il>
24920         * unexelf.c (unexec) [__sgi]: Support the .got sections.
24922 2002-01-20  Jason Rumney  <jasonr@gnu.org>
24924         * w32term.c (w32_native_per_char_metric): Don't trust the metrics
24925         that Windows returns.  If a double check fails, try to guess how
24926         ExtTextOut is going to act.
24928         * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
24929         in place of stricmp.
24930         (w32_list_synthesized_fonts): Removed.
24931         (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
24932         (struct enumfont_t): New element; list.
24933         (enum_font_cb2): List all style and charset variations of a font.
24934         (Fw32_select_font): New optional argument; include_proportional.
24935         Exclude vertical fonts.  Exclude proportional fonts unless
24936         include_proportional is non-nil.
24937         (w32_enable_synthesized_fonts): Change to a boolean.
24938         (Fw32_send_sys_command): Doc fix.
24940 2002-01-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24942         * dispnew.c (update_frame): Move the variable `tem' to the block
24943         where it is used.
24945 2002-01-19  Jason Rumney  <jasonr@gnu.org>
24947         * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
24948         call to face-set-after-frame-default.
24950 2002-01-18  Richard M. Stallman  <rms@gnu.org>
24952         * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
24953         (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
24955 2002-01-17  Richard M. Stallman  <rms@gnu.org>
24957         * window.c (enlarge_window): When exceeding size of parent,
24958         directly delete all the siblings instead of trying to resize it.
24960 2002-01-17  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24962         * term.c (set_tty_color_mode): Remove unused variable `tem'.
24964 2002-01-16  Henrik Enberg  <henrik@enberg.org>
24966         * lread.c (init_lread): Move the installed-lisp dirs later in the path.
24968 2002-01-16  Kim F. Storm  <storm@cua.dk>
24970         * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
24971         is invisible.  This can happen if cursor is on top line of a
24972         window, and we switch to a buffer with a header line.
24974         * w32term.c (x_erase_phys_cursor): Ditto.
24976 2002-01-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24978         * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
24979         `dont_resize' only when used.
24981         * xdisp.c: Remove forgotten extern declaration of `Qimage'.
24983 2002-01-15  Eli Zaretskii  <eliz@is.elta.co.il>
24985         * xdisp.c (display_mode_element): When computing charpos, depend
24986         on multibyteness of elt, not the text in field.
24988 2002-01-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24990         * buffer.c (Fkill_all_local_variables):
24991         Increment `update_mode_lines' only once.
24993 2002-01-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
24995         * lisp.h (adjust_after_replace_noundo)
24996         (Fupdate_coding_systems_internal): Add prototypes.
24998         * sound.c (Fplay_sound): Initialize header_size also for :data case.
25000 2002-01-14  Eli Zaretskii  <eliz@is.elta.co.il>
25002         Support for the --color command-line argument and tty-color-mode
25003         frame parameter:
25005         * term.c (tty_default_color_capabilities, tty_setup_colors)
25006         (set_tty_color_mode): New functions.
25007         (term_init): Call tty_default_color_capabilities.
25008         (Qtty_color_mode_alist): New variable.
25009         (syms_of_term): Intern and staticpro it.
25011         * frame.c (store_frame_param): Call set_tty_color_mode for termcap
25012         frames.
25013         (do_switch_frame): For termcap frames, switch the tty
25014         color mode as specified by the frame's parameters.
25015         (Qtty_color_mode): New variable.
25016         (syms_of_frame): Intern and staticpro it.
25018         * emacs.c (USAGE2): Add the --color option.
25019         (standard_args): Ditto.
25021 2002-01-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
25023         * xterm.h (struct x_output): New members want_fullscreen,
25024         x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
25025         y_pixels_outer_diff.
25026         New enum for FULLSCREEN_* constants.
25027         (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
25028         is NULL.
25029         (x_fullscreen_adjust): Add prototype.
25031         * emacs.c (USAGE2): Add the new full-screen arguments.
25032         (standard_args): Ditto.
25034         * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
25035         New variables.
25036         (syms_of_xfns): Intern and staticpro them.
25037         (x_frame_parms) <"fullscreen">: New parameter.
25038         (x_fullscreen_move, x_set_fullscreen): New functions.
25039         (x_set_frame_parameters): Support for Qfullscreen.
25040         (x_real_positions): More accurate computation of the frame position.
25041         (x_figure_window_size): Support full-screen frames.
25042         (Fx_create_frame): Default the fullscreen parameter.
25044         * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
25045         (XTread_socket) <Expose>: Call x_check_fullscreen.
25046         <ConfigureNotify>: Don't resize to fullscreen.
25047         Call x_check_fullscreen_move, and set the want_fullscreen member of
25048         output_data.x.
25050 2002-01-13  Jason Rumney  <jasonr@gnu.org>
25052         * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
25053         for mice with more than 3 buttons.
25055         * w32term.c (parse_button): New parameter xbutton.  Callers changed.
25056         (w32_read_socket): Handle new "XBUTTON" messages.
25058         * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
25059         (syms_of_w32fns): DEFVAR_BOOL it.
25060         (w32_wnd_proc): Handle new "XBUTTON" messages.
25062 2002-01-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25064         * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
25066 2002-01-13  Andreas Schwab  <schwab@suse.de>
25068         * xterm.c (x_load_font): Never set fonts_changed_p to zero.
25070 2002-01-12  Andreas Schwab  <schwab@suse.de>
25072         * .gdbinit (xbuffer): Remove address operator since data is now a
25073         pointer.
25075 2002-01-11  Richard M. Stallman  <rms@gnu.org>
25077         * insdel.c (adjust_after_replace_noundo): New function.
25079         * coding.c (code_convert_region): Don't copy old text if undo disabled.
25081 2002-01-09  Jason Rumney  <jasonr@gnu.org>
25083         * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
25084         when checking for multiple frames.
25086 2002-01-08  Richard M. Stallman  <rms@gnu.org>
25088         * window.c (delete_window): Rewrite the code for changing the
25089         selected window to handle the case where WINDOW is not a leaf.
25091 2002-01-07  Eli Zaretskii  <eliz@is.elta.co.il>
25093         * process.c (send_process): Set src_multibyte to 1 after the call
25094         top setup_coding_system, not before the call.
25096 2002-01-07  Jason Rumney  <jasonr@gnu.org>
25098         * xmenu.c (set_frame_menubar, xmenu_show):
25099         (xdialog_show): Initialize wv->help to Qnil.
25101         * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
25102         (w32_dialog_show): Initialize wv->help to Qnil.
25104 2002-01-06  Jason Rumney  <jasonr@gnu.org>
25106         * xmenu.c (single_submenu): Initialize wv->help to Qnil.
25108         * w32menu.c (w32_menu_display_help): Revert last change.
25110         * xmenu.c (menu_highlight_callback): Revert last change.
25112 2002-01-06  Andreas Schwab  <schwab@suse.de>
25114         * insdel.c (make_gap_larger): Make sure buffer size does not
25115         overflow range of int.
25117 2002-01-05  Jason Rumney  <jasonr@gnu.org>
25119         * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
25120         OVERLAPS_P.
25122         * w32menu.c (w32_menu_display_help): Hide any tooltip window.
25124         * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
25125         to the left or to the right of the pointer, put it against
25126         the left screen edge.
25127         (x_frame_parms): Add missing braces around initializer.
25129         * w32term.c (x_setup_relief_colors): Don't compute an image's
25130         background color if it doesn't have a Pixmap.
25131         (notice_overwritten_cursor): Don't depend on
25132         output_cursor and updated_area.  Compare pixel coordinates with
25133         window's cursor pixel coordinates.
25134         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25135         Call notice_overwritten_cursor with new arg list.
25136         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25137         unconditionally.
25138         (x_draw_image_relief): Use predefined macro instead of
25139         constant when the value of `tool_bar_button_relief' is negative.
25141         * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
25143 2002-01-04  Richard M. Stallman  <rms@gnu.org>
25145         * xmenu.c (menu_highlight_callback): Hide any tooltip window.
25147 2002-01-03  Richard M. Stallman  <rms@gnu.org>
25149         * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
25150         (Fkey_binding): Try the `keymap' property map first.
25151         (Fdescribe_buffer_bindings): Show `keymap' property bindings before
25152         minor mode bindings.
25154 2002-01-03  Kim F. Storm  <storm@cua.dk>
25156         * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
25158 2002-01-02  Richard M. Stallman  <rms@gnu.org>
25160         * keyboard.c (read_key_sequence): Handle the keymap property
25161         before minor mode maps.
25163         * editfns.c (Fformat): Update thissize from field_width
25164         based on the actual width, in the string case.
25166 2002-01-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25168         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
25169         when used as truth value to prevent gcc warnings.
25171         * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
25172         * w32proc.c: Include <config.h>.
25174 2002-01-01  Andreas Schwab  <schwab@suse.de>
25176         * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
25177         not EMACS_INT, to make them compatible with DEFVAR_INT.
25178         * lisp.h (max_specpdl_size): Adjust declaration.
25180 2002-01-01  Richard M. Stallman  <rms@gnu.org>
25182         * print.c (print_object): Test print_escape_nonascii only for
25183         unibyte strings.
25184         (PRINTPREPARE): Once again bind Qprint_escape_nonascii
25185         when outputting to a multibyte buffer.
25187 2001-12-29  Richard M. Stallman  <rms@gnu.org>
25189         * print.c (print_object): In multibyte string, use hex escapes.
25190         Use octal only for unibyte strings.
25191         (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
25193         * lread.c (read_escape): New arg BYTEREP for reporting whether
25194         escape forces unibyte or multibyte.
25195         (read1): When reading a string, take note of that info.
25197 2001-12-29  Ken Raeburn  <raeburn@gnu.org>
25199         * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
25200         comparison to test lisp value returned by Fget.
25202 2001-12-29  Richard M. Stallman  <rms@gnu.org>
25204         * lisp.h (max_specpdl_size): Add declaration.
25206         * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
25208         * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
25209         Handle modifier bits.  Correct typo in error message.
25211 2001-12-28  Richard M. Stallman  <rms@gnu.org>
25213         * abbrev.c: Use the plist of an abbrev for multiple params if nec.
25214         (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
25215         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
25216         Update calls to Fdefine_abbrev.
25217         (write_abbrev): Update for changed data format.
25218         Don't list "system" abbrevs.
25219         (Fexpand_abbrev): Update use count with new data format.
25220         (describe_abbrev): Update for changed data format.
25221         (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
25223         * config.in (HAVE_MBSINIT): Add #undef.
25225         * strftime.c (mbsinit): Define as no-op if not available.
25227         * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
25228         (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
25230         * keymap.c (Flookup_key): Error message if key has wrong data type.
25231         (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
25232         (exclude_key): New variable.
25234 2001-12-28  Gerd Moellmann  <gerd@gnu.org>
25236         * xterm.c (x_setup_relief_colors): Don't compute an image's
25237         background color if it doesn't have a Pixmap.
25239         * xterm.c (notice_overwritten_cursor): Don't depend on
25240         output_cursor and updated_area.  Compare pixel coordinates with
25241         window's cursor pixel coordinates.
25242         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
25243         Call notice_overwritten_cursor with new arg list.
25244         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
25245         unconditionally.
25247         * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
25248         height of the cursor line to the amount to scroll.
25250 2001-12-27  Richard M. Stallman  <rms@gnu.org>
25252         * intervals.c (set_point_both): The position after an invisible,
25253         intangible character is not an acceptable stopping point.
25255 2001-12-27  Ken Raeburn  <raeburn@gnu.org>
25257         * window.c (enlarge_window): In new preserve_before code, convert
25258         CURBEG from lisp object to integer before doing arithmetic.
25260 2001-12-27  Richard M. Stallman  <rms@gnu.org>
25262         * bytecode.c (Fbyte_code): Undo previous change.
25264 2001-12-26  Kim F. Storm  <storm@cua.dk>
25266         * keyboard.c (record_char): Ignore duplicate help-echo events only
25267         separated by mouse-movement.  When tracking mouse, only record
25268         first and last mouse-movement event in same window.
25269         Don't record mouse-movement events in keyboard macros.
25271 2001-12-25  Richard M. Stallman  <rms@gnu.org>
25273         * window.c (enlarge_window): New arg PRESERVE_BEFORE.  Callers changed.
25274         (Fenlarge_window): New arg PRESERVE_BEFORE.
25276         * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
25277         instead of Fstring_as_unibyte.
25279 2001-12-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25281         The following changes remove mocklisp support:
25283         * mocklisp.h, mocklisp.c: Files removed.
25285         * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
25286         `Qmocklisp' and `Qmocklisp_arguments'.
25287         Remove prototype of syms_of_mocklisp.
25289         * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
25291         * callint.c: Do not include mocklisp.h.
25292         (Fcall_interactively): Do not test for mocklisp case.
25294         * eval.c: Remove variables `Qmocklisp_arguments',
25295         `Vmocklisp_arguments' and `Qmocklisp'.  Remove prototype of ml_apply.
25296         (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
25297         Do not test for mocklisp case.
25298         (Fwhile): Remove unused variable `tem'.
25299         (syms_of_eval): Remove variable `moclisp-arguments'.
25301         * data.c (wrong_type_argument): Remove mocklisp case.
25303         * doc.c (Fdocumentation): Remove mocklisp case.
25305         * emacs.c (main): Do not call syms_of_mocklisp.
25307 2001-12-21  Richard M. Stallman  <rms@gnu.org>
25309         * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
25310         to the left or to the right of the pointer, put it against
25311         the left screen edge.
25313 2001-12-21  Eli Zaretskii  <eliz@is.elta.co.il>
25315         * Makefile.in (distclean): Remove .gdbinit if we are building
25316         outside the source tree.
25318 2001-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
25320         * w32.c (emacs_root_dir): New function.
25322         * msdos.c (emacs_root_dir): New function.
25324         * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
25325         of the current drive as the fallback for default_directory.
25327         * dired.c (file_name_completion): Run the elements of
25328         completion-ignored-extensions through ENCODE_FILE.
25330         * lisp.h (scmp): Remove prototype, since it's now a static
25331         function private to dired.c.
25333 2001-12-18  Richard M. Stallman  <rms@gnu.org>
25335         * dired.c (scmp): Function moved from minibuf.c.
25336         Delete multibyte handling--used only on encoded strings.
25338         * minibuf.c (scmp): Function moved to dired.c.
25340         * fns.c (merge): Add QUIT call.
25342 2001-12-18  Dave Love  <fx@gnu.org>
25344         * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
25345         language/georgian.el.
25347 2001-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
25349         * Makefile.in (lisp, shortlisp): Synchronize with changes to
25350         lisp/Makefile.in:DONTCOMPILE.
25352 2001-12-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25354         * xdisp.c (window_box_height): Do not return negative values.
25355         From Gerd Moellmann <gerd@gnu.org>.
25357         * keyboard.c (head_table): Add missing braces around initializer.
25359         * term.c (keys): Likewise.
25361         * xfns.c (x_frame_parms, visual_classes): Likewise.
25363 2001-12-17  Sam Steingold  <sds@gnu.org>
25365         * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
25366         patch (COMPOSING_P, not COMPOSING).
25368 2001-12-17  Richard M. Stallman  <rms@gnu.org>
25370         * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
25372         * coding.c (code_convert_region): Update coding->cmp_data->char_offset
25373         before calling decode_coding.
25375         * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
25377         * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
25378         instead of only for COMPOSITION_DISABLED.
25380 2001-12-16  Richard M. Stallman  <rms@gnu.org>
25382         * alloc.c (pure_alloc): After overflow, allocate just a small block.
25384         * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
25386         * buffer.h (struct buffer): New field `display_error_modiff'.
25387         * buffer.c (reset_buffer): Initialize `display_error_modiff'.
25389         * window.c (Frecenter): Clear display_error_modiff field.
25391         * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
25392         Call redisplay_window, but not if display_error_modiff field says no.
25393         (redisplay_window_error): New function.
25394         (displayed_buffer): New variable.
25395         (redisplay_internal, redisplay_windows): Call the new functions
25396         instead of redisplay_window directly.
25398 2001-12-15  Richard M. Stallman  <rms@gnu.org>
25400         * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
25402 2001-12-14  Andrew Innes  <andrewi@gnu.org>
25404         * makefile.w32-in (EMACSLOADPATH): Define.
25405         ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
25406         (bootstrap-temacs): Remove dependency on bootstrap-clean.
25408 2001-12-13  Eli Zaretskii  <eliz@is.elta.co.il>
25410         * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
25411         parameter have a numeric value all the time.
25413         * w32fns.c (x_report_frame_params): Likewise.
25415 2001-12-12  Richard M. Stallman  <rms@gnu.org>
25417         * fileio.c (Fwrite_region): Doc fix.
25419         * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
25420         (redisplay_internal): Call clear_image_cache only for window terminals.
25422 2001-12-12  Gerd Moellmann  <gerd@gnu.org>
25424         * xdisp.c (move_it_vertically_backward): Change heuristic
25425         for the case that we didn't move far enough initially.
25427         * window.c (Frecenter): Simplify computation in the case of window
25428         system frames and ARG < 0; use window_box_height.
25430 2001-12-11  Richard M. Stallman  <rms@gnu.org>
25432         * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
25433         * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
25435 2001-12-11  Andrew Innes  <andrewi@gnu.org>
25437         * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
25438         arg is negative.
25440 2001-12-11  Richard M. Stallman  <rms@gnu.org>
25442         * m/hp800.h: Split the __hpux conditional into the parts
25443         that are right for GNU/Linux too and the parts that are not.
25444         Use the former if GNU_LINUX.
25445         (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
25447         * s/gnu-linux.h (GNU_LINUX): Defined.
25449 2001-12-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25451         * macros.c, msdos.c, w16select.c: Change doc-string comments to
25452         `new style' [w/`doc:' keyword].
25454 2001-12-10  Jason Rumney  <jasonr@gnu.org>
25456         * w32menu.c (w32_free_submenu_strings): Clear menu item struct
25457         before using.
25459 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25461         * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
25462         keyword].
25464 2001-12-09  Eli Zaretskii  <eliz@is.elta.co.il>
25466         * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
25468         * s/hpux10.h (srand48): Don't undefine.
25470 2001-12-09  Jason Rumney  <jasonr@gnu.org>
25472         * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
25473         Add comment to explain where the struct came from.
25474         (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
25475         (add_menu_item): Process pop-up menus first to avoid memory leak.
25476         (add_menu_item, w32_menu_display_help): Use `help' field as
25477         Lisp_Object.
25478         (w32_free_submenu_strings): Only free owner-drawn strings.
25480 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25482         * COPYING: Moved back.
25484         * charset.c (char_to_string_1, translate_char, Fdefine_charset):
25485         Add parentheses around && within ||.
25487         * indent.c (compute_motion): Likewise.
25489         * intervals.c (merge_properties_sticky): Likewise.
25491         * coding.c (setup_coding_system, shrink_encoding_region)
25492         (Fdecode_sjis_char): Likewise.
25494 2001-12-07  Andreas Schwab  <schwab@suse.de>
25496         * xdisp.c (display_mode_element): Don't read past end of string if
25497         it ends with '%'.
25499         * alloc.c (inhibit_garbage_collection): Don't exceed value an int
25500         can hold.
25502         * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
25503         Rename from most_positive_fixnum and most_negative_fixnum, resp., and
25504         type changed to Lisp_Object.
25505         (syms_of_data): DEFVAR_LISP them.
25507 2001-12-07  Richard M. Stallman  <rms@gnu.org>
25509         * callproc.c (init_callproc): Set Vdata_directory based on the source
25510         location whenever Emacs was run uninstalled.
25512 2001-12-06  Paul Eggert  <eggert@twinsun.com>
25514         * config.in (HAVE_WORKING_VFORK): New #undefs.
25515         * process.c (create_process):
25516         Use HAVE_WORKING_VFORK, not HAVE_VFORK.
25517         * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
25518         * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
25519         * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
25520         * m/intel386.h (HAVE_VFORK): Likewise.
25521         * m/mips-siemens.h (HAVE_VFORK): Likewise.
25522         * m/mips.h (HAVE_VFORK): Likewise.
25523         * s/freebsd.h (vfork): Remove #define.
25524         * s/lynxos.h (HAVE_VFORK): Remove #undef.
25525         * s/usg5-4-2.h: Fix comment about vfork.
25527 2001-12-06  Richard M. Stallman  <rms@gnu.org>
25529         * s/hpux10.h (random): Add undef.
25530         (HAVE_RANDOM): Define it just once.
25532 2001-12-06  Stefan Monnier  <monnier@cs.yale.edu>
25534         * eval.c: Undo last change: the standard syntax is not wanted.
25536 2001-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
25538         * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
25539         scroll bars of the frame before deleting the frame itself.  If the
25540         frame has a widget, delete the frame with XtDestroyWidget, and do
25541         not call XDestroyWindow before that.
25543 2001-12-06  Kim F. Storm  <storm@cua.dk>
25545         * xfns.c (x_report_frame_params): Return actual fringe widths.
25547         * w32fns.c (x_report_frame_params): Return actual fringe widths.
25549 2001-12-05  Andrew Innes  <andrewi@gnu.org>
25551         * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
25552         excessively large.
25554         * insdel.c (make_gap_larger): New function.
25555         (make_gap_smaller): New function.
25556         (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
25557         Call make_gap_smaller if arg is negative.
25559 2001-12-04  Stefan Monnier  <monnier@cs.yale.edu>
25561         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
25562         Pass a dummy argument when calling interrupt_signal.
25563         (parse_menu_item): Mark disabled items before checking for empty def.
25564         (read_char_minibuf_menu_prompt): Make safety more visible.
25565         (read_key_sequence): Add a `first_unbound' variable.
25566         Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
25567         unbound prefix as soon as we can detect it.
25569         * doc.c (Fsnarf_documentation): Add prototype.
25570         (get_doc_string): Handle negative arguments.
25571         (Fdocumentation): Use AREF and ASIZE.
25572         Move the calls to get_doc_string to a single place.
25573         Don't confuse an interactive-spec for a docstring reference.
25574         (Fdocumentation_property): Take advantage of the fact that
25575         get_doc_string now ignores the sign of the docstring position.
25577         * eval.c: Use standard syntax for usage in docstrings.
25579 2001-12-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25581         * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
25583 2001-12-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25585         * xterm.c (x_draw_image_relief): Use predefined macro instead of
25586         constant when the value of `tool_bar_button_relief' is negative.
25588 2001-12-02  Richard M. Stallman  <rms@gnu.org>
25590         * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
25591         (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
25593         * fileio.c (read_non_regular): Delete Fsignal call.
25595 2001-12-01  Stefan Monnier  <monnier@cs.yale.edu>
25597         * lisp.h (run_hook_list_with_args): Undo last change.
25599 2001-12-01  Gerd Moellmann  <gerd@gnu.org>
25601         * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
25603 2001-12-01  Jason Rumney  <jasonr@gnu.org>
25605         * window.c (Qleft_fringe, Qright_fringe): Remove.  Now in frame.c.
25607         * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
25608         [!WM_MOUSELEAVE]: Define.
25610         * w32menu.c (current_popup_menu, get_menu_item_info):
25611         (set_menu_item_info): New vars.
25612         (set_frame_menubar): Doc fix clarifying GC interaction with menus.
25613         (w32_menu_show): Set current_popup_menu.
25614         (add_menu_item): Allocate new strings for owner-drawn menu items
25615         and help strings.
25616         Use owner-draw for disabled menu items again.
25617         (w32_menu_display_help): Ignore owner-drawn items and popup menus.
25618         (w32_free_submenu_strings, w32_free_menu_strings): New functions.
25620         * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
25621         (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
25622         <WM_EXITMENULOOP>: Free menu strings.
25623         <WM_MOUSELEAVE>: Stop tracking mouse.
25624         (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
25626         * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
25627         and mouse face.
25629 2001-12-01  Kim F. Storm  <storm@cua.dk>
25631         The following changes add left-fringe and right-fringe
25632         frame parameters to adjust fringe widths, or remove one or
25633         both fringes.
25635         * frame.h (struct frame): Remove trunc_area_pixel_width and
25636         trunc_area_cols fields.
25637         (Qleft_fringe, Qright_fringe): Declare.
25638         (FRAME_RIGHT_FRINGE_WIDTH): New macro.
25640         * frame.c (Qleft_fringe, Qright_fringe): New vars.
25641         (syms_of_frame): Initialize them.
25643         * window.c (coordinates_in_window): Handle separate left and right
25644         fringe widths.
25646         * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
25647         and fringe_cols fields.
25648         (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
25649         (FRAME_X_FRINGE_COLS): Use fringe_cols field.
25650         (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
25651         (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
25652         (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
25653         (x_compute_fringe_widths): Add prototype.
25655         * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
25656         fill fringe evenly with small dashes.
25657         (x_draw_fringe_bitmap): Clear background if necessary.  Align and
25658         clip the new ZV bitmap to avoid jitter between rows.
25659         (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
25660         background.  Don't draw fringe bitmaps if fringe width is zero.
25661         (x_compute_fringe_widths): New function.
25662         (x_new_font, x_set_window_size_1): Use it.
25664         * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
25665         (x_set_frame_parameters): Process `font' parameter before other
25666         parameters as fringe widths depend on it.
25667         (x_set_fringe_width): New function.
25668         (x_figure_window_size): Use x_compute_fringe_widths.
25669         (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
25670         parameters.
25672         * widget.c (set_frame_size): Use x_compute_fringe_widths.
25673         (EmacsFrameSetCharSize): Ditto.
25675         * w32term.h: Merged changes from xterm.h.
25676         * w32term.c: Merged changes from xterm.c.
25677         * w32fns.c: Merged changes from xfns.c.
25679 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25681         * COPYING: Removed.
25683 2001-11-29  Dave Love  <fx@gnu.org>
25685         * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
25686         extra extra slot.
25687         (detect_coding_mask): Fix call of detect_coding_iso2022.
25689 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25691         * fileio.c (file-name-coding-system)
25692         (default-file-name-coding-system): Doc fix (links to referenced
25693         variables added).
25695 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
25697         * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
25698         Add dummy uses of gcproN variables.
25700         * category.c (describe_category, describe_category_1)
25701         (Fdescribe_categories): Remove.  (Moved to lisp/help-fns.el.)
25702         (syms_of_category): Don't defsubr Sdescribe_categories.
25704 2001-11-28  Richard M. Stallman  <rms@gnu.org>
25706         * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
25708         * Makefile.in (lispdir): New variable, referring to build dir.
25709         (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
25711 2001-11-28  Andrew Innes  <andrewi@gnu.org>
25713         * w32menu.c (w32_menu_display_help): Actually add the new argument
25714         OWNER.
25716 2001-11-28  Jason Rumney  <jasonr@gnu.org>
25718         * w32menu.c (add_menu_item): Do not use owner-draw for disabled
25719         menu items.  From David Ponce <dponce@wanadoo.fr>.
25720         (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
25721         conditionally.
25722         (w32_menu_display_help): New argument OWNER.  Rewritten to store a
25723         help event in the owner frame's keyboard buffer.
25725         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
25726         (Fx_show_tip): Don't subtract last width from row width.
25728         * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
25729         (w32_read_socket): Use EQ to compare frames.
25731 2001-11-28  Gerd Moellmann  <gerd@gnu.org>
25733         * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
25734         OVERLAPS_P.
25736 2001-11-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25738         * xdisp.c (message_dolog): Remove unused variables `gcpro2',
25739         `gcpro3' and `gcpro4'.
25741         * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
25743 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
25745         * ccl.c: Use AREF and ASIZE.
25747 2001-11-27  Stefan Monnier  <monnier@cs.yale.edu>
25749         * lisp.h (run_hook_list_with_args): Remove.
25750         (LIST_END_P): Fix call to wrong_type_argument.
25751         (make_fixnum_or_float): Use EMACS_INT rather than int.
25753 2001-11-26  Stefan Monnier  <monnier@cs.yale.edu>
25755         * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
25756         (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
25758         * eval.c: Use AREF and ASIZE.
25759         (Ffetch_bytecode): Add the file name to the error message.
25761         * fileio.c (Ffind_file_name_handler): Give precedence to handlers
25762         which match the end of the file-name.
25763         (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
25764         is not a valid env var, but leave it as is instead.
25766         * keymap.c (access_keymap): Handle t bindings like nil bindings.
25767         Make nil bindings in char-tables transparent.
25768         (store_in_keymap): Turn a nil binding into a t binding for char-tables.
25770 2001-11-26  Richard M. Stallman  <rms@gnu.org>
25772         * textprop.c (set_text_properties_1): Allow START, END in either order.
25773         Do nothing if range is empty.
25775         * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
25777         * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
25778         (clean): Not here.
25780 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
25782         * textprop.c (set_text_properties_1): Clearly mark that the
25783         interval should not be empty.
25785         * intervals.c (graft_intervals_into_buffer):
25786         Don't call set_text_properties_1 on an empty interval.
25788 2001-11-25  Richard M. Stallman  <rms@gnu.org>
25790         * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
25792         * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
25793         don't lose the data in it.
25795 2001-11-25  Juanma Barranquero  <lektu@terra.es>
25797         * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
25799         * buffer.c (Fkill_buffer): Likewise.
25801         * print.c (temp_output_buffer_setup): Likewise.
25803 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
25805         * xfaces.c (merge_face_heights): Coerce back to int explicitly.
25807 2001-11-25  Eli Zaretskii  <eliz@is.elta.co.il>
25809         * window.c (Fset_window_vscroll): Doc fix.  From Kalle Olavi
25810         Niemitalo <kon@iki.fi>.
25812 2001-11-25  Jason Rumney  <jasonr@gnu.org>
25814         * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
25816         * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
25817         (Fx_show_tip): Block input during frame creation.
25818         (Fx_show_tip, Fx_hide_tip): Enable.
25820 2001-11-24  Richard M. Stallman  <rms@gnu.org>
25822         * lread.c (Fload): Detect recursive load error for more than 3
25823         nestings of the same file.
25824         (Vrecursive_load_depth_limit): Variable deleted.
25825         (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
25827 2001-11-24  Jason Rumney  <jasonr@gnu.org>
25829         * xfns.c (compute_tip_xy): Initialize root_x and root_y from
25830         mouse position if either left or top is not specified.
25832         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
25833         <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
25834         (my_create_tip_window, Fx_show_tip): Adjust size for external border.
25835         (my_create_tip_window): Assign tip_window.
25836         (x_create_tip_frame): Use same defaults as X.
25837         (compute_tip_xy): Remove unused variable.  Use full screen width.
25838         (Fx_show_tip): Do not double height.  Call ShowWindow directly.
25840         * w32term.c (x_after_update_window_line): Doc fix.
25841         (w32_read_socket): Doc fix.  Avoid SET_FRAME_GARBAGED for tip
25842         frames.
25843         <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
25845         * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
25846         for all Windowed systems.
25848 2001-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
25850         * msdos.c (IT_clear_screen): If the frame's faces are not yet
25851         realized, use the initial screen colors to clear the screen.
25853 2001-11-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25855         * textprop.c (Fset_text_properties): Remove unused variables
25856         `unchanged', `prev_changed', `s' and `len'.
25858         * search.c (Freplace_match): Remove unused variable `inslen'.
25860         * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
25862 2001-11-22  Jason Rumney  <jasonr@gnu.org>
25864         * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
25865         (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
25866         (my_create_tip_window): New function.
25867         (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
25868         (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
25870 2001-11-20  Jason Rumney  <jasonr@gnu.org>
25872         * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
25873         (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
25875         * w32fns.c (Vw32_system_coding_system): Remove.
25876         (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
25878 2001-11-19  Stefan Monnier  <monnier@cs.yale.edu>
25880         * fileio.c (Fwrite_region): Move choose_write_coding_system to
25881         after build_annotations.
25883         * syntax.c (describe_syntax): Add dummy arg.
25884         (describe_syntax_1): Update call to describe_vector.
25886         * category.c (describe_category): Add dummy arg.
25887         (describe_category_1): Update call to describe_vector.
25889         * keymap.c (Fdescribe_vector): Add `describer' parameter.
25890         (describe_command, describe_translation): Add dummy second param.
25891         (describe_map): Call elt_describer with two arguments.
25892         (describe_vector_princ): Add `fun' parameter.
25893         Call it instead of the hardcoded `princ'.
25894         (describe_vector): Add arg `args'.
25895         Pass it as a new second argument to elt_describer.
25897         * keymap.h (describe_vector): Update prototype.
25899         * frame.c: Don't include keymap.h any more.
25900         (keys_of_frame): Remove.
25902         * lisp.h (keys_of_frame): Remove declaration.
25904         * emacs.c (main): Don't call `keys_of_frame' any more.
25906 2001-11-14  Andreas Schwab  <schwab@suse.de>
25908         * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
25909         if defined, 0 otherwise.
25910         (MAP_FAILED): Define if not defined and use it to test mmap failure.
25911         (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
25913 2001-11-19  Richard M. Stallman  <rms@gnu.org>
25915         * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
25917 2001-11-18  Jason Rumney  <jasonr@gnu.org>
25919         * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
25920         (x_draw_bar_cursor): If the background color of the glyph under
25921         the cursor equals the frame's cursor color, use the glyph's
25922         foreground color for drawing the bar cursor.
25923         (x_after_update_window_line): Clear internal border in different
25924         circumstances.
25925         (w32_set_vertical_scroll_bar): Check for width and height > 0.
25926         (w32_draw_relief_rect): Correct relief by 1 pixel.
25927         (x_set_glyph_string_background_width):
25928         Set extends_to_end_of_line_p if the row's fill_line_p is set and
25929         drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
25930         (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
25931         if cursor_in_non_selected_windows is false.
25932         (show_mouse_face): Clean up.  Recognize overwritten cursor differently.
25933         (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
25934         Notice if cursor gets overwritten.
25935         (notice_overwritten_cursor): Renamed from
25936         note_overwritten_text_cursor.  Rewritten to take glyph widths
25937         into account, and to take X positions as parameters.
25938         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
25939         around call to x_draw_glyphs.
25940         (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
25941         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
25942         color to use for image glyph reliefs.
25943         (x_draw_image_relief): Accept zero tool_bar_button_relief.
25944         (glyph_rect): Remove unused variable `area'.
25946         * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
25947         some items.
25948         (x_set_internal_border_width): Set frame garbaged when window
25949         doesn't exist yet.
25950         (Fx_create_frame): Accept zero tool_bar_button_relief.
25951         (x_clear_image_1, four_corners_best, image_background)
25952         (image_background_transparent): New functions.
25953         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
25954         (gs_format): Add `:background' entry.
25955         (lookup_image): Set IMG's background color if specified.
25956         (pbm_load, xbm_load_image, png_load): Set IMG's background field
25957         when appropriate.
25958         (x_clear_image_1): Reset `background_valid' and
25959         `background_transparent_valid' fields.
25960         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
25961         calculating it here.  Set IMG's background_transparent field.
25962         (enum xpm_keyword_index): Add XPM_BACKGROUND.
25963         (enum png_keyword_index): Add PNG_BACKGROUND.
25964         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
25965         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
25966         (enum gif_keyword_index): Add GIF_BACKGROUND.
25967         (enum gs_keyword_index): Add GS_BACKGROUND.
25968         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
25969         Pre-calculate image background color where necessary.
25970         (x_create_x_image_and_pixmap, xbm_load, gs_load):
25971         Use display info's n_cbits entry for screen depth.
25972         (Fx_show_tip): Remove unused variables `buffer', `top',
25973         `left', `max_width' and `max_height'.
25975         * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
25977 2001-11-18  Gerd Moellmann  <gerd@gnu.org>
25979         * puresize.h (BASE_PURESIZE): Increase to 750000.
25981 2001-11-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
25983         * frame.c (Fframe_live_p): Doc fix.
25985 2001-11-18  Richard M. Stallman  <rms@gnu.org>
25987         * xdisp.c (message_dolog_marker1, message_dolog_marker2)
25988         (message_dolog_marker3): New static variables hold three markers.
25989         (syms_of_xdisp): Initialize and staticpro them.
25990         (message_dolog): Use message_dolog_marker1..3 instead of
25991         allocating markers each time.  Unchain them when done.
25993 2001-11-17  Richard M. Stallman  <rms@gnu.org>
25995         * doc.c (Fsnarf_documentation): Doc fix.
25997 2001-11-17  Andreas Schwab  <schwab@suse.de>
25999         * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
26001 2001-11-17  Richard M. Stallman  <rms@gnu.org>
26003         * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
26005 2001-11-17  Jason Rumney  <jasonr@gnu.org>
26007         * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
26009 2001-11-17  Gerd Moellmann  <gerd@gnu.org>
26011         * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
26012         with invalid position.
26014 2001-11-16  Richard M. Stallman  <rms@gnu.org>
26016         * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
26018         * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
26019         * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
26020         * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
26022         * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
26024 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
26026         * fileio.c (build_annotations): Split off the tail.
26027         (build_annotations_2): New fun.  Extracted from build_annotations.
26028         (Fwrite_region): Split the call to build_annotations into two
26029         calls to build_annotations and build_annotations_2.
26031 2001-11-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26033         * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
26034         clear_waiting_for_input with argument.
26036         * xterm.h (x_update_cursor): Remove duplicated prototype.
26038         * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
26040         * xterm.c (waiting_for_input): Remove unnecessary declaration.
26042         * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
26044 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
26046         * fileio.c (choose_write_coding_system): New fun, extracted
26047         from Fwrite_region.
26048         (Fwrite_region): Use it.
26050         * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
26051         (funcall_lambda, run_hook_with_args): Make static and add prototype.
26052         (ml_apply, find_handler_clause): Add prototype.
26054 2001-11-16  Eli Zaretskii  <eliz@gnu.org>
26056         * config.in: Add #undef HAVE_COFF_H.
26058         * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
26059         Required for ISC 4.1.
26061 2001-11-16  Eli Zaretskii  <eliz@is.elta.co.il>
26063         * syswait.h (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
26064         Andrew Wiseman <a.wiseman@btclick.com>.
26066 2001-11-16  Kim F. Storm  <storm@cua.dk>
26068         The following changes are made to clean up the various internal
26069         references to the fringes to actually use the term `fringe' for
26070         them.  Previously, they were called `flags areas', `bitmap areas',
26071         `left/right side of windows', or implicitly as `flags' or
26072         `bitmaps':
26074         * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
26075         Comments fixed.  Use renamed symbols.
26077         * dispnew.c: Comment fix.  Use renamed symbols.
26079         * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
26080         (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
26081         (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
26083         * msdos.c: Comment fix.
26085         * w32fns.c: Use renamed symbols.
26087         * w32term.c: Comment fixes.  Use renamed symbols.
26088         (fringe_bitmap_type): Renamed from bitmap_type.
26089         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26090         (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
26091         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
26093         * w32term.h: Comment fixes.  Use renamed symbols.
26094         (fringes_extra): Renamed from flags_areas_extra.
26095         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26096         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26097         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26098         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26099         (FRAME_X_LEFT_FRINGE_WIDTH):
26100         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26101         (FRAME_X_RIGHT_FRINGE_WIDTH):
26102         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
26104         * widget.c: Use renamed symbols.
26106         * window.c: Comment fixes.  Use renamed symbols.
26107         (coordinates-in-window-p): Doc fix.
26109         * xdisp.c: Comment fixes.  Use renamed symbols.
26111         * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
26113         * xfns.c: Use renamed symbols.
26115         * xterm.c: Comment fixes.  Use renamed symbols.
26116         (fringe_bitmap_type): Renamed from bitmap_type.
26117         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
26118         (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
26119         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
26121         * xterm.h: Comment fixes.  Use renamed symbols.
26122         (fringes_extra): Renamed from flags_areas_extra.
26123         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
26124         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
26125         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
26126         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
26127         (FRAME_X_LEFT_FRINGE_WIDTH):
26128         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
26129         (FRAME_X_RIGHT_FRINGE_WIDTH):
26130         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
26132 2001-11-15  Jason Rumney  <jasonr@gnu.org>
26134         * w32menu.c (add-menu-item): Make help_echo and radio buttons
26135         work for most menu items.  From David Ponce
26136         <david.ponce@wanadoo.fr>.
26138 2001-11-15  Gerd Moellmann  <gerd@gnu.org>
26140         * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
26141         Some x_set_* function expect to be called even if old and new
26142         value are equal.
26144         * xdisp.c (build_desired_tool_bar_string): Accept zero
26145         tool_bar_button_relief.
26147         * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
26149         * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
26151         * xterm.c (x_draw_bar_cursor): If the background color of the
26152         glyph under the cursor equals the frame's cursor color, use
26153         the glyph's foreground color for drawing the bar cursor.
26155         * dispnew.c (direct_output_forward_char): Fix character/byte
26156         position comparison.
26158 2001-11-15  Miles Bader  <miles@gnu.org>
26160         * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
26161         (Fdelete_field, Ffield_string, Ffield_string_no_properties):
26162         Update arguments to find_field.
26163         (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
26164         (Fconstrain_to_field): Use LIMIT arg to shorten search time.
26165         * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
26166         * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
26168 2001-11-14  Richard M. Stallman  <rms@gnu.org>
26170         * editfns.c (Fpropertize): Allow call with 1 arg.
26172         * dispextern.h (image_background, image_background_transparent):
26173         Conditionalize on HAVE_X_WINDOWS.
26175 2001-11-13  Richard M. Stallman  <rms@gnu.org>
26177         * print.c (Fprin1_to_string): Doc fix.
26179         * sunfns.c (Fsun_change_cursor_icon): Doc fix.
26181         * floatfns.c (Fceiling, Ffloor): Doc fixes.
26183         * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
26185         * fileio.c (Ffile_accessible_directory_p): Doc fix.
26187         * eval.c (syms_of_eval): Doc fix.
26189         * coding.c (syms_of_coding): Doc fix.
26191         * doc.c (Fsnarf_documentation): Doc fix.
26193         * dispnew.c (syms_of_display): Doc fix.
26195         * category.c (Fget_unused_category): Doc fix.
26197         * buffer.c (syms_of_buffer): Doc fixes.
26199 2001-11-14  Eli Zaretskii  <eliz@is.elta.co.il>
26201         * print.c (prin1, print): Doc fix.
26203 2001-11-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26205         * fontset.h: Remove declarations of variables
26206         `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
26208         * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
26209         `Vclip_large_size_font'.
26211 2001-11-13  Jason Rumney  <jasonr@gnu.org>
26213         * w32fns.c: Doc fix.
26215 2001-11-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26217         * xfaces.c (Fface_attributes_as_vector): Doc fix.
26219         * fns.c: Doc fix.
26221         * emacs.c: Doc fix.
26223         * coding.c: Doc fix.
26225         * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
26226         * fontset.c, insdel.c, keymap.c: Change doc-string comments to
26227         `new style' [w/`doc:' keyword].
26229 2001-11-12  Richard M. Stallman  <rms@gnu.org>
26231         * xterm.c (XTread_socket): Don't update focus for EnterNotify or
26232         LeaveNotify events.  Only FocusIn and FocusOut do that now.
26233         (x_display_and_set_cursor): Do display hollow cursors in active
26234         minibuffer windows when they are not selected.
26236 2001-11-12  Jason Rumney  <jasonr@gnu.org>
26238         * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
26239         * w32term.c: Change doc-string comments to `new style'
26240         [w/`doc:' keyword].  Doc fixes.
26242         * w32fns.c: Don't define max.
26243         (Fx_open_connection): Only execute once.
26245 2001-11-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26247         * ccl.c: Change macros to use do-while block instead of if-else.
26248         Use braces to follow GNU Coding Standards.
26250 2001-11-11  Richard M. Stallman  <rms@gnu.org>
26252         * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
26254         * lread.c (read_escape): Use end_of_file_error for reporting eof.
26256         * insdel.c (replace_range): Use adjust_markers_for_replace
26257         instead of adjust_markers_for_delete and adjust_markers_for_insert.
26259         * intervals.h (set_text_properties, set_text_properties_1): Declare.
26261         * textprop.c (set_text_properties_1): New subroutine
26262         broken out of set_text_properties.
26263         (set_text_properties): Use set_text_properties_1.
26265         * intervals.c (graft_intervals_into_buffer):
26266         Use set_text_properties_1 to clear out properties.
26268         * search.c (Freplace_match): Use replace_range to insert
26269         and delete.  Don't request property inheritance from
26270         surrounding text.
26272 2001-11-10  Jason Rumney  <jasonr@gnu.org>
26274         * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
26275         vertical fonts.  Allow them if face name is explicitly specified.
26276         Do not give up if we find a font that cannot be converted to an xlfd.
26278 2001-11-10  Gerd Moellmann  <gerd@gnu.org>
26280         * unexelf.c (unexec): Use mmap/munmap to allocate buffers
26281         instead of malloc/free.
26283 2001-11-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26285         * xfaces.c (merge_face_vectors): Use braces to follow GNU
26286         Coding Standards.
26287         (Finternal_set_lisp_face_attribute): Likewise.
26289         * buffer.c (Fbury_buffer): Likewise.
26291         * indent.c (current_column_1): Remove unused variable `prev_col'.
26293         * coding.c (encode_coding): Use precomputed value of `src'.
26294         (encode_coding): Remove unused variable `src_end'.
26295         (code_convert_region): Remove unused variables `count'.
26297 2001-11-07  Jason Rumney  <jasonr@gnu.org>
26299         * w32term.c (x_display_and_set_cursor): Do not move system caret
26300         if cursor_glyph is NULL.
26302 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26304         * keymap.c (access_keymap): Fix compilation error.
26306 2001-11-07  Miles Bader  <miles@gnu.org>
26308         * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
26310 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26312         * intervals.c (graft_intervals_into_buffer):
26313         Remove #ifdef'd-out code.
26314         (graft_intervals_into_buffer): Remove unused variable `middle'.
26316         * lread.c (Feval_region): Remove obsolete #ifdef'd-out
26317         code (eval-current-buffer).
26318         Change doc-string comments to `new style' [w/`doc:' keyword].
26320 2001-11-06  Richard M. Stallman  <rms@gnu.org>
26322         * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
26324 2001-11-06  Stefan Monnier  <monnier@cs.yale.edu>
26326         * lread.c (read1): Fix behavior with nested backquoting.
26328         * keyboard.c (make_lispy_event): Check integerness and fix
26329         Lisp_Object/int mixup.
26331 2001-11-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26333         * fns.c (copy_hash_table): Remove unused variable `v'.
26335         * fontset.c (fontset_font_pattern): Remove unused variable
26336         `family_registry'.
26338         * indent.c (current_column_1): Remove unused variable `prev_col'.
26340 2001-11-05  Richard M. Stallman  <rms@gnu.org>
26342         * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
26344         * buffer.c (Fkill_buffer): Don't delete auto save file
26345         if buffer is modified.
26347 2001-11-05  Andrew Innes  <andrewi@gnu.org>
26349         * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
26350         CHECK_NUMBER_CDR.
26352 2001-11-05  Richard M. Stallman  <rms@gnu.org>
26354         * unexelf.c (unexec): Minor changes; clean up comments.
26356 2001-11-05  Sam Steingold  <sds@gnu.org>
26358         * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
26360 2001-11-05  Andreas Schwab  <schwab@suse.de>
26362         * sound.c (sound_perror): Save errno from being clobbered.
26364 2001-11-05  Dale Hagglund  <rdh@yottayotta.com>
26366         * unexelf.c (unexec): Don't use `mmap'.  Instead, read and write
26367         the program image directly.
26369 2001-11-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26371         * buffer.h (Fbuffer_local_value): Add prototype.
26373 2001-11-04  Richard M. Stallman  <rms@gnu.org>
26375         * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
26376         and CHECK_BUFFER.
26378         * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
26379         (record_char): Likewise.
26381         * keyboard.c (make_lispy_event): Don't insist a drag event must
26382         move to a different buffer position.  Instead, check for moving at
26383         least double_click_fuzz.
26385         * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
26387         * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
26389         * indent.c (current_column_1, Fmove_to_column): Separate the code
26390         for display-table glyphs from the code for buffer text, to fix
26391         bugs in the former.
26393 2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>
26395         * buffer.c (Fbuffer_local_value): New function.
26396         (syms_of_buffer): Defsubr it.
26398         * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
26399         value of `cursor-in-non-selected-windows'.
26401         * lisp.h (Qcursor_in_non_selected_windows): New declaration.
26402         * xdisp.c (Qcursor_in_non_selected_windows): New variable.
26403         (syms_of_xdisp): Initialize it.
26405 2001-11-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26407         * xfns.c (Fx_create_frame): Doc fix.
26409         * coding.c: Change doc-string comments to `new style' [w/`doc:'
26410         keyword].
26412         * eval.c (top_level_value, top_level_set): Remove commented and
26413         #ifdef'd-out code.
26414         (Fdefvar): Fix usage in doc-string.
26416 2001-11-03  Richard M. Stallman  <rms@gnu.org>
26418         * xfns.c: Include unistd.h, if it exists.
26420         * editfns.c: Move the include of ctype.h after unistd.h.
26422         * gmalloc.c: Test BROKEN_PROTOTYPES.
26424 2001-11-03  Ken Raeburn  <raeburn@gnu.org>
26426         * lisp.h (CHECK_STRING_CAR): New macro.
26427         * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
26428         treating XCAR and XCDR as lvalues.
26429         (openp): Use CHECK_STRING_CAR.
26430         (read_list): Use XSETCDR instead of treating XCDR as lvalue.
26432 2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>
26434         * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
26435         (SIGMASKTYPE): Define.
26437         * syssignal.h (sigunblock): Don't define if already defined.
26439 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26441         * eval.c (debugger_may_continue, Vdebug_ignored_errors)
26442         (call_debugger, Fcondition_case, skip_debugger, unbind_to):
26443         Fix typos in comments.
26445         * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
26446         and #ifdef'd-out code.
26447         Fix and reindent comments.
26449         * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
26451         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
26452         argument `i' in macros.
26454         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
26455         `i' in macros.
26457         * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
26458         (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
26459         (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
26460         (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
26461         (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
26462         (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
26463         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
26464         (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
26465         in macros.
26467         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
26468         * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
26469         * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
26470         * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
26471         * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
26472         * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
26473         * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
26474         * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
26475         * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
26476         (remove unused second argument).
26478 2001-11-02  Stefan Monnier  <monnier@cs.yale.edu>
26480         * syntax.c (describe_syntax): New wrapper.
26481         (Finternal_describe_syntax_value): Rename from describe_syntax.
26482         Don't insert space at front and \n at the end.
26483         (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
26485         * regex.c (re_wctype): Try to fix some warnings.
26486         (regcomp, regexec): Don't forget the __restrict.
26488 2001-11-02  Richard M. Stallman  <rms@gnu.org>
26490         * textprop.c (Fget_char_property): Doc fix.
26492 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26494         * process.c (Fstart_process): Add usage to doc-string.
26496         * data.c (Fsetq_default): Ditto.
26498         * callint.c (Finteractive): Ditto.
26500 2001-11-01  Stefan Monnier  <monnier@cs.yale.edu>
26502         * macros.c: Don't include keymap.h any more.
26504 2001-11-01  Richard M. Stallman  <rms@gnu.org>
26506         * data.c (Fmake_local_variable): Doc fix.
26508         * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
26509         (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
26511         * keymap.c (Fdescribe_buffer_bindings): Print character property
26512         bindings along with or instead of the buffer local map.
26513         Make the overriding maps override what they should.
26515 2001-11-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26517         * window.c (grow_mini_window): Fix typo in comment.
26519 2001-11-01  Gerd Moellmann  <gerd@gnu.org>
26521         * xterm.c (x_scroll_bar_create): Check for width and height > 0.
26522         (XTset_vertical_scroll_bar): Likewise.
26524         * xfns.c (x_build_heuristic_mask): Use four_corners_best
26525         instead of IMAGE_BACKGROUND.
26527         * xfns.c (four_corners_best): Reindent.
26529         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
26530         Handle :box so that it is possible to specify sexprs.
26532 2001-10-31  Eli Zaretskii  <eliz@is.elta.co.il>
26534         * s/hpux11.h: New file.
26536 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26538         * emacs.c (USAGE1): Show command line option --no-window-system
26539         instead of --no-windows in usage.
26540         (standard_args): Rename --no-windows to --no-window-system.
26541         (bug_reporting_address): Follow Emacs coding conventions.
26543         * eval.c (Fcommandp): Doc fix.
26544         Change doc-string comments to `new style' [w/`doc:' keyword].
26546         * frame.c (Fframe_live_p): Doc fix.
26548         * buffer.c (selective-display-ellipses): Doc fix.
26550 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
26552         * lread.c (to_multibyte): Fix computation of new read_buffer_size.
26554         * xfaces.c (realize_x_face): If C is not a single-byte character,
26555         set the face's colors_copied_bitwise_p instead of the defaulted_p
26556         members which have a different meaning.
26557         (free_face_colors): Do nothing for a face whose colors have been
26558         copied bitwise.
26560         * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
26562 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26564         * marker.c, mocklisp.c: Change doc-string comments to `new style'
26565         [w/`doc:' keyword].
26567 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
26569         * fns.c (require_unwind): Return Lisp_Object.
26571 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26573         * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
26574         (last-input-char): Revert doc-string to be the same as the
26575         doc-string of `last-input-event'.
26577         * xdisp.c: Fix typos in comments.
26579 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
26581         * window.c (grow_mini_window): Handle case that the root
26582         window is already smaller than the nominal mininum height.
26584 2001-10-30  Stefan Monnier  <monnier@cs.yale.edu>
26586         * emacs.c (main): Don't call keys_of_macros any more.
26588         * lisp.h (keys_of_macros): Remove.
26590         * macros.c (keys_of_macros): Remove.
26592         * xfaces.c (Fface_attribute_relative_p): Declare args.
26594 2001-10-30  Jason Rumney  <jasonr@gnu.org>
26596         * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
26597         (enum_font_cb2): Ignore fonts with vertical orientation.
26599 2001-10-30  Richard M. Stallman  <rms@gnu.org>
26601         * keyboard.c (Finput_pending_p): Doc fix.
26603 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
26605         * xterm.c (x_after_update_window_line): Don't run the code
26606         clearing in borders for rows whose visible height is 0.
26608         * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
26609         resized_p flag is set.  If not set, use the much less flickering
26610         method previously used.
26612         * dispnew.c (change_frame_size_1): Set frame's resized_p.
26614         * frame.h (struct frame) <resized_p>: New member.
26616         * lread.c (to_multibyte): Ensure read_buffer is at least twice
26617         as large as the number of bytes to convert.
26619         * lread.c (to_multibyte): New function.
26620         (read1): Use it.
26622 2001-10-30  Eli Zaretskii  <eliz@is.elta.co.il>
26624         * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
26626 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
26628         * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
26629         (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
26630         if the row's fill_line_p is set and drawing the last glyph with
26631         DRAW_IMAGE_{RAISED,SUNKEN}.
26633         * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
26635 2001-10-29  Stefan Monnier  <monnier@cs.yale.edu>
26637         * xmenu.c: Include coding.h and charset.h.
26638         (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
26639         (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
26640         (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
26641         Explicitly set wv->help.  Use `TRUE' rather than `True'.
26642         (menu_help_callback): Use empty_string.
26644         * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
26645         (Fx_popup_dialog): Explicitly init f.
26646         (w32_menu_display_help): Use empty_string.
26648 2001-10-29  Richard M. Stallman  <rms@gnu.org>
26650         * fns.c (Frequire): Detect recursive try to require the same
26651         feature 3 or more levels deep, and get error.
26652         (require_unwind): New subroutine.
26653         (require_nesting_list): New variable.
26654         (syms_of_fns): Init and staticpro it.
26656         * print.c (print_object): Clarify indication of insertion type.
26658 2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>
26660         * coding.c (syms_of_coding): Document that locale-coding-system is
26661         used for decoding input on X.
26663         * window.c (Fscroll_left, Fscroll_right): Doc fix.
26665 2001-10-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26667         * keyboard.c (Finput_pending_p): Fix typo in doc-string.
26668         (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
26670 2001-10-29  Gerd Moellmann  <gerd@gnu.org>
26672         * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
26673         use NO_CURSOR if cursor_in_non_selected_windows is false.
26675         * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
26676         the slant attribute if FRAME is t.
26678         * xfns.c (x_set_internal_border_width): Set frame garbaged
26679         when X window doesn't exist yet.
26681         * xterm.c (x_after_update_window_line): Clear internal border
26682         in different circumstances.
26684         * xterm.c (XTread_socket) <KeyPress>: Don't use
26685         STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
26686         <handa@etl.go.jp>.
26688 2001-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
26690         * m/ibms390.h: New file.  From Adam Thornton
26691         <athornton@sinenomine.net>.
26693 2001-10-28  Gerd Moellmann  <gerd@gnu.org>
26695         * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
26697         * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
26698         a loop counter.
26700 2001-10-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26702         * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
26704         * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
26705         keyword].
26706         Fix typos in comments.
26708         * emacs.c (bug_reporting_address): New function.
26709         Use it when displaying usage message.
26711         * minibuf.c (read_minibuf): Remove unused external declaration of
26712         variable `Qread_only'.
26714         * keymap.c (access_keymap): Remove unused variable `charset'.
26716 2001-10-28  Miles Bader  <miles@gnu.org>
26718         * xfaces.c (merge_face_heights): Handle TO being relative as well.
26719         Remove #ifdef'd-out code.
26720         (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
26721         (syms_of_xfaces): Initialize them.
26723 2001-10-27  Jason Rumney  <jasonr@gnu.org>
26725         * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
26726         <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
26727         position using the system caret.
26729         * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
26730         (w32_system_caret_height, w32_system_caret_x)
26731         (w32_system_caret_y): New variables for tracking system caret.
26732         (w32_initialize): Initialize them.
26733         (x_display_and_set_cursor): Make system caret follow the active cursor.
26735         * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
26736         New messages types.
26738         * w32term.c (note_mouse_highlight): Clear old help_echo.
26740 2001-10-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26742         * xterm.c: Fix typo in a comment.
26744         * emacs.c: Fix typos in comments.
26745         Remove unnecessary spaces.
26746         Change doc-string comments to `new style' [w/`doc:' keyword].
26747         (USAGE2): Fix typos in usage string.
26749         * xterm.c: Fix typo in a comment.
26751         * lisp.h (gdb_lisp_params): Remove code in #if 0 which is now in
26752         emacs.c.
26754 2001-10-27  Gerd Moellmann  <gerd@gnu.org>
26756         * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
26757         instead of 1/2 line_height in the heuristic for skipping
26758         farther backward when target_y was not reached.
26760         * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
26761         Display errno only if non-zero.
26762         (sound_warning): New function.
26763         (vox_configure): Don't treat failing to set sample rate as error.
26764         (various places): Improve error messages.
26766 2001-10-26  Eli Zaretskii  <eliz@is.elta.co.il>
26768         * fileio.c (Faccess_file): Run the argument filename through
26769         Fexpand_file_name, before using it.
26771         * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
26772         ring-bell-function.  Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
26774 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
26776         * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
26778         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
26779         Fix clearing in the case of scroll bars on the right.
26781 2001-10-26  Juanma Barranquero  <lektu@terra.es>
26783         * w32gui.h (XImage): Add a dummy typedef.
26785 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
26787         * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
26789 2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>
26791         * frame.c (Fframe_parameter): Fix last change.
26793         * fileio.c: Revert last change (which removed old commented-out
26794         version of expand-file-name).  Add a comment that explains why
26795         this old version should not be removed.
26797 2001-10-25  Gerd Moellmann  <gerd@gnu.org>
26799         * frame.c (Fframe_parameter): Fix a bug whereby some
26800         ``artificial'' frame parameters, like `minibuffer' were not
26801         obtained by calling Fframe_parameters.
26803         * xterm.c (show_mouse_face): Clean up.  Recognize overwritten
26804         cursor differently.
26806         * xdisp.c (move_it_vertically_backward): Compute line height
26807         differently.  Add heuristic to try to be more compatible to 20.x.
26809 2001-10-25  Stefan Monnier  <monnier@cs.yale.edu>
26811         * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
26813         * editfns.c (text_property_stickiness): Fix Lisp_Object used as
26814         boolean.
26816 2001-10-25  Miles Bader  <miles@gnu.org>
26818         * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
26819         BG is a pointer to a structure, not a structure.
26820         (gif_format, png_format): Add missing commas.
26822 2001-10-24  Richard M. Stallman  <rms@gnu.org>
26824         * xfaces.c (Fface_attributes_as_vector): New function.
26825         (syms_of_xfaces): Defsubr it.
26827 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26829         * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
26830         variable `area'.
26832 2001-10-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26834         * search.c (scan_newline): Remove unused variable `selective_display'.
26836 2001-10-25  Miles Bader  <miles@gnu.org>
26838         * dispextern.h (struct image): Add `background',
26839         `background_valid', and `background_transparent' fields.
26840         (image_background, image_background_transparent): New declarations.
26841         (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
26842         * xfns.c (image_background, image_background_transparent)
26843         (four_corners_best): New functions.
26844         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
26845         (gs_format): Add `:background' entry.
26846         (lookup_image): Set IMG's background color if specified.
26847         (pbm_load, xbm_load_image, png_load): Set IMG's background field
26848         when appropriate.
26849         (x_clear_image_1): Reset `background_valid' and
26850         `background_transparent_valid' fields.
26851         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
26852         calculating it here.  Set IMG's background_transparent field.
26853         (enum xpm_keyword_index): Add XPM_BACKGROUND.
26854         (enum png_keyword_index): Add PNG_BACKGROUND.
26855         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
26856         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
26857         (enum gif_keyword_index): Add GIF_BACKGROUND.
26858         (enum gs_keyword_index): Add GS_BACKGROUND.
26859         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
26860         Pre-calculate image background color where necessary.
26861         * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
26862         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
26863         color to use for image glyph reliefs.
26865 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
26867         * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
26868         in full-width rows.
26870         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
26871         Fix clearing of area not covered by scroll bar.
26873 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26875         * xterm.c (x_insert_glyphs): Remove unused variables `real_end'
26876         and `real_start'.
26877         (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
26878         (glyph_rect): Remove unused variable `area'.
26880 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
26882         * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
26884         * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
26885         (row_containing_pos): Take additional argument DY.
26886         Treat rows ending in middle of char differently.
26887         (display_line): Handle tabs on window systems differently.
26889         * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
26890         with additional argument.
26892         * dispextern.h (row_containing_pos): Adjust prototype.
26894         * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
26895         (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
26896         (try_window_id, try_window_reusing_current_matrix)
26897         (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
26898         (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
26900 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26902         * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
26903         gnuemacs).
26904         (HAVE_BOXES): Fix typo in comment.
26905         (push_menu_pane): Fix typo in comment.
26907         * xdisp.c (display_prop_string_p): Remove unused local declaration
26908         of `Qwhen'.
26909         (single_display_prop_string_p): Remove unused local declarations
26910         of `Qwhen' and `Qmargin'.
26911         (string_buffer_position): Remove unused variable `around'.
26912         (store_frame_title): Remove unused variable `width'.
26914         * window.c: Don't define max.
26915         (coordinates_in_window): Remove unused variable `uy'.
26917         * widget.c: Don't define max.
26919         * process.c: Don't define max.
26920         (create_process): Remove unused variable `buffer'.
26922 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
26924         * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
26926 2001-10-23  Eli Zaretskii  <eliz@is.elta.co.il>
26928         * xfaces.c (Finternal_set_lisp_face_attribute)
26929         [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
26930         frame is on a windowed display.
26932 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
26934         * dispnew.c (sync_window_with_frame_matrix_rows):
26935         Fix handling of windows which aren't full-width, fix handling
26936         of marginal areas.
26938         * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
26940 2001-10-23  Andreas Schwab  <schwab@suse.de>
26942         * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
26943         LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
26945 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
26947         * xterm.c (x_draw_glyphs): Remove parameters READ_START and
26948         REAL_END.  Notice if cursor gets overwritten.
26949         (notice_overwritten_cursor): Take X positions as parameters.
26950         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
26951         around call to x_draw_glyphs.
26953 2001-10-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26955         * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
26956         instead of C) and usage.
26958         * editfns.c (char-to-string): Fix argument names (use CHAR instead
26959         of C) and usage.
26961         * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
26962         `left', `max_width' and `max_height'.
26964 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
26966         * xdisp.c (display_line): For a tab continued to the next line,
26967         set row's ends_in_middle_of_char_p.
26969 2001-10-22  Gerd Moellmann  <gerd@gnu.org>
26971         * xdisp.c (display_line): Fix computation of continuation lines
26972         width for TABs.
26974 2001-10-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
26976         * xdisp.c (build_desired_tool_bar_string): Remove unused variable
26977         `Qlaplace'.
26979         * fileio.c: Remove unused code.
26981 2001-10-22  Miles Bader  <miles@gnu.org>
26983         * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
26984         (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
26985         Remove `DOC_STRINGS_IN_COMMENTS' cases.
26987 2001-10-21  Jason Rumney  <jasonr@gnu.org>
26989         * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
26991 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
26993         * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
26994         (Finsert_string): Avoid the multi-line string literals warning.
26996 2001-10-22  Miles Bader  <miles@gnu.org>
26998         * doc.c (Vhelp_manyarg_func_alist): Variable removed.
26999         (Fdocumentation): Don't use it.
27000         (syms_of_doc): Don't initialize it.
27002         * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
27003         * print.c (Fwith_output_to_temp_buffer): Likewise.
27004         * window.c (Fsave_window_excursion): Likewise.
27005         * editfns.c (Fsave_excursion, Fsave_current_buffer)
27006         (Fsave_restriction): Likewise.
27007         * eval.c (Frun_hooks, Frun_hook_with_args)
27008         (Frun_hook_with_args_until_failure)
27009         (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
27010         (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
27011         (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
27012         (Funwind_protect, Fcondition_case): Likewise.
27013         * coding.c (Ffind_operation_coding_system): Likewise.
27014         * keyboard.c (Ftrack_mouse): Likewise.
27016 2001-10-21  Miles Bader  <miles@gnu.org>
27018         * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
27019         (Fmake_hash_table): Add usage: string to doc string.
27020         * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
27021         (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
27022         (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
27023         * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
27024         (Fml_prefix_argument_loop): Likewise.
27026 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27028         * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
27030         * sysdep.c (init_sys_modes): Change doc-string comments to `new
27031         style' [w/`doc:' keyword].
27033         * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
27034         * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
27035         comments to `new style' [w/`doc:' keyword].
27037 2001-10-21  Jason Rumney  <jasonr@gnu.org>
27039         * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
27041         * w32term.c (remember_mouse_glyph): New function.
27042         (w32_mouse_position): Use it.
27043         (note_mouse_movement): If the mouse moved off the glyph, remember
27044         its new position.
27046         * w32term.h (struct w32_output): Correct spelling of x_compatible.
27047         (w32_display_info): Add mouse_face_overlay.
27049         * w32term.c (notice_overwritten_cursor): Renamed from
27050         note_overwritten_text_cursor.  Rewritten to take glyph widths into
27051         account.
27052         (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
27053         (fast_find_string_pos): New function.
27054         (fast_find_position): Return the correct vpos.  Add parameter
27055         STOP.  In the final row, stop before glyphs having STOP as object.
27056         Don't consider glyphs that are not from a buffer.
27057         (fast_find_position) [0]: Add a presumably more correct version
27058         for after 21.1.
27059         (expose_window_tree, expose_frame): Don't compute intersections here.
27060         (expose_window): Do it here instead.
27061         (expose_window_tree, expose_window, expose_line): Return 1 when
27062         overwriting mouse-face.
27063         (expose_window): If W is the window currently being updated, mark
27064         the frame garbaged.
27065         (expose_frame): If mouse-face was overwritten, redo it.
27066         (x_use_underline_position_properties): New variable.
27067         (syms_of_xterm): DEFVAR_BOOL it.
27068         (x_draw_glyph_string): Add comment to use it in future.
27069         (x_draw_glyph_string): Restore clipping after drawing box.
27070         Fix a computation of the underline position.
27071         (w32_get_glyph_string_clip_rect): Minor cleanup.
27072         (x_fill_stretch_glyph_string): Remove an assertion.
27073         (x_produce_glyphs): Don't convert multibyte characters
27074         to unibyte characters in unibyte buffers.
27075         (cursor_in_mouse_face_p): New function.
27076         (x_draw_stretch_glyph_string): Use it to choose a different GC
27077         when drawing a cursor within highlighted text.  Don't draw
27078         background again if it has already been drawn.
27079         (x_draw_glyph_string_box): Don't draw a full-width
27080         box just because the glyph row's full_width_p flag is set.
27081         (x_draw_glyphs): Fix computation of rightmost x for
27082         full-width rows.
27083         (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
27084         (w32_draw_relief_rect): Extend left shadow to the bottom and left;
27085         change bottom shadow accordingly.  Some cleanup.
27086         (x_update_window_end): Handle overwritten mouse face
27087         also for tool bar windows.
27088         (show_mouse_face): Set the glyph row's mouse_face_p flag also when
27089         DRAW is DRAW_IMAGE_RAISED.
27090         (clear_mouse_face): Return 1 if text with mouse face was
27091         actually redrawn.  Make the function static.
27092         Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
27093         optimize away highlighting if we pass over that same overlay again.
27094         (note_mouse_highlight): Call mouse_face_overlay_overlaps
27095         to detect a case where we have to highlight a different region
27096         despite not having left the currently highlighted region.
27097         Set mouse_face_overlay in the x_display_info.  Avoid changing the
27098         mouse pointer shape when show_mouse_face has already done it, or
27099         there is no need.  Handle mouse-face and help-echo in strings.
27100         (glyph_rect): New function.
27101         (w32_mouse_position): Use it to raise the threshold for mouse
27102         movement event generation.
27103         (w32_initialize_display_info): Initialize the x_display_info's
27104         mouse_face_overlay.
27105         (w32_set_vertical_scroll_bar): Don't clear a zero height
27106         or width area.
27107         (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
27108         a widget to zero height.
27110         * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
27111         Protect unibyte strings created by replacing their multibyte
27112         equivalents in menu_items.
27113         (w32_menu_show): Don't overwrite an item's name with its key
27114         description in case the description is a multibyte string.
27115         (single_submenu): Some cleanup.
27117         * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
27118         (postprocess_image): New function.
27119         (lookup_image): Call it for all image types except PostScript.
27120         (x_kill_gs_process): Call postprocess_image.
27121         (tiff_error_handler, tiff_warning_handler): New functions.
27122         (tiff_load): Install them as handlers.
27123         (x_kill_gs_process): Recognize if someone has cleared the image
27124         cache under us.
27125         (valid_image_p): Protect better against invalid image
27126         specifications.  Previous code could signal an error.
27127         (Fx_hide_tip, Fshow_tip): Doc fix.
27128         (Fv_max_tooltip_size): New variable.
27129         (syns_of_xfns): DEFVAR_LISP it.
27130         (Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
27131         window buffer to *tip* right after creating the frame.  Set frame's
27132         window_width.  Use a maximum tooltip size specified by
27133         Vx_max_tooltip_size, if that has valid contents.
27134         (compute_tip_xy): Add parameters WIDTH and HEIGHT.
27135         Make sure the tooltip is completely visible.
27136         (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
27137         (Fx_create_frame): Adjust the frame's height for presence
27138         of the tool bar before calling x_figure_window_size.
27139         (x_set_tool_bar_lines): Clear the tool bar window's current matrix
27140         when the window gets smaller.
27141         (x_set_foreground_color): Set frame's cursor_pixel.
27142         (x_set_foreground_color, x_set_background_color): Cleaned up.
27143         (x_set_font): Handle case of x_new_fontset returning the same name
27144         as before, although there was a change in fontsets.
27146 2001-10-21  Miles Bader  <miles@gnu.org>
27148         * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
27149         (Flogxor): Add usage: string to doc string.
27150         * charset.c (Fstring): Likewise.
27151         * callproc.c (Fcall_process_region, Fcall_process): Likewise.
27152         * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
27154 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
27156         * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
27158         * alloc.c: Reindent DEFUNs with doc: keywords.
27160         * abbrev.c (Finsert_abbrev_table_description): Reindent.
27162         * frame.c: Change doc-string comments to `new style' [w/`doc:'
27163         keyword].
27165 See ChangeLog.9 for earlier changes.
27167 ;; Local Variables:
27168 ;; coding: iso-2022-7bit
27169 ;; add-log-time-zone-rule: t
27170 ;; End:
27172     Copyright (C) 2001, 2002, 2003, 2004, 2005,
27173         2006 Free Software Foundation, Inc.
27174   Copying and distribution of this file, with or without modification,
27175   are permitted provided the copyright notice and this notice are preserved.
27177 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4