(query-replace-read-from): Fix 2005-02-19 change.
[emacs.git] / src / ChangeLog
blob23074668343c9cb7f1c62f8ca9b50a769635aafa
1 2005-02-23  Lute Kamstra  <lute@gnu.org>
3         * buffer.c (Foverlay_buffer): Doc fix.
5 2005-02-22  Kim F. Storm  <storm@cua.dk>
7         * minibuf.c (Ftry_completion, Fall_completions): Allow both string
8         and symbol keys in alists and hash tables.
10         * xdisp.c (fast_find_position): Fix search for start of overlay.
12 2005-02-21  Kim F. Storm  <storm@cua.dk>
14         * window.c (window_scroll_pixel_based): When scrolling backwards,
15         handle partial visible line at end of window even when we hit PT.
17 2005-02-21  Stefan  <monnier@iro.umontreal.ca>
19         * keymap.h: Declare Fcurrent_active_maps, used in doc.c.
21 2005-02-21  Kim F. Storm  <storm@cua.dk>
23         * xdisp.c (move_it_vertically_backward): Eliminate two xasserts.
24         I think those asserts are bogus if buffer contains invisible text
25         or images.
27 2005-02-21  David Kastrup <dak@gnu.org>
29         * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error.
31 2005-02-20  Kim F. Storm  <storm@cua.dk>
33         * xdisp.c (pos_visible_p): Be sure to move to the specified
34         position.  Always get the full ascent / descent of the
35         corresponding row, to return reliable rtop and rbot values.
36         (back_to_previous_visible_line_start): Fix 2005-01-18 change.
37         Must look one character back, as back_to_previous_line_start
38         returns position after the newline.
39         (move_it_vertically_backward): Fix heuristic for when to move further
40         back in case line_height * 2/3 is larger than window height.
41         (cursor_row_fully_visible_p): Rename make_cursor_line_fully_visible_p
42         as it does not do anything anymore.  Add arg current_matrix_p to
43         use current matrix rather than desired matrix when set.
44         (try_cursor_movement): Don't scroll to make cursor row fully
45         visible if cursor didn't move.  This avoids unexpected recentering
46         in case of blinking cursor or accepting process output.
47         Use current matrix to check cursor row visibility.
48         (redisplay_window): Fix whether to recenter or move to top in case
49         cursor line is taller than window height.
50         (find_first_unchanged_at_end_row): Stop search if we reach a row
51         which not enabled (instead of abort).
53 2005-02-18  Kim F. Storm  <storm@cua.dk>
55         * xfaces.c (Finternal_set_lisp_face_attribute): Allow :color property
56         to be nil in a :box attribute value list; customize prints that
57         as lisp value when no box color is specified.
59         * .gdbinit (pitx, pit): Pretty print display iterator.
60         (prowx, prow): Pretty print glyph row.
61         (pcursorx, pcursor): Pretty print a window cursor.
62         (pwinx, pwin): Pretty print struct window.
64 2005-02-18  Stefan Monnier  <monnier@iro.umontreal.ca>
66         * alloc.c (BLOCK_BYTES): Harmless typo.
68 2005-02-17  Andreas Schwab  <schwab@suse.de>
70         * xfns.c (hack_wm_protocols): Use correct type for last parameter
71         of XGetWindowProperty to avoid aliasing issues.
72         (Fx_window_property): Likewise.
74         * xselect.c (Fx_disown_selection_internal): Use union of struct
75         input_event and struct selection_input_event to avoid aliasing
76         issues.
78         * xterm.c (handle_one_xevent): Use union of struct input_event and
79         struct selection_input_event to avoid aliasing issues.
80         (SET_SAVED_MENU_EVENT): Adapt reference to inev.
82 2005-02-17  Kim F. Storm  <storm@cua.dk>
84         * dispextern.h (enum it_method): New enum.
85         (GET_FROM_*): Its members.
86         (struct it): Change member method from function pointer to enum.
88         * xdisp.c (check_it, init_from_display_pos, handle_stop)
89         (setup_for_ellipsis, handle_single_display_spec)
90         (handle_composition_prop, next_overlay_string)
91         (get_overlay_strings, reseat_1, reseat_to_string)
92         (next_element_from_ellipsis, BUFFER_POS_REACHED_P)
93         (in_display_vector_p, display_line, get_next_display_element):
94         Change it->method from function pointer to enum.
95         (get_next_element): New array to map it->method to function.
96         (get_next_display_element): Use it.
97         (set_iterator_to_next): Use switch instead of if/else chain.
99 2005-02-15  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
101         * w32select.c: Summary: Thorough rework to implement Unicode
102         clipboard operations and delayed rendering.
104         Drop last_clipboard_text and related code, keep track of
105         ownership via clipboard_owner instead.  Drop old #if0
106         sections.
108         (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP)
109         (clipboard_owner, modifying_clipboard, cfg_coding_system)
110         (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text)
111         (current_coding_system, current_requires_encoding)
112         (current_num_nls, current_clipboard_type, current_lcid): New
113         static variables.
115         (convert_to_handle_as_ascii, convert_to_handle_as_coded)
116         (render, render_all, run_protected, lisp_error_handler)
117         (owner_callback, create_owner, setup_config)
118         (enum_locale_callback, cp_from_locale, coding_from_cp): New
119         local functions.
121         (term_w32select, globals_of_w32select): New global functions.
123         (Fw32_set_clipboard_data): Ignore parameter FRAME, use
124         clipboard_owner instead.  Use delayed rendering and provide
125         all text formats.  Provide CF_LOCALE if necessary.
127         (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and
128         CF_LOCALE.  Fall back to CF_TEXT, if CF_UNICODETEXT is not
129         available.  Force DOS line-ends for decoding.
131         (Fx_selection_exists_p): Handle CF_UNICODETEXT.
133         (syms_of_w32select): Init and register new variables.
135         * w32.h: Add prototypes for globals_of_w32select and
136         term_w32select.  Make the neighboring K&R declarations into
137         prototypes, too.
139         * emacs.c: Include w32.h to get function prototypes.
140         (main): Call globals_of_w32select.
142         * w32.c (term_ntproc): Call term_w32select.
144         * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
146 2005-02-16  Kim F. Storm  <storm@cua.dk>
148         * xdisp.c (BUFFER_POS_REACHED_P): Return true if pos reached and
149         at end of display vector.
151 2005-02-15  Richard M. Stallman  <rms@gnu.org>
153         * xdisp.c (get_next_display_element): Fix escape-glyph criterion
154         for mode and header lines.
156         * lread.c (syms_of_lread) <user-init-file>: Doc fix.
158         * keymap.h (describe_map_tree): Change decl.
160         * keyboard.c (command_loop_1): Always use safe_run_hooks
161         to run Qdeferred_action_function.
163         * keymap.c (describe_map_tree): New arg MENTION_SHADOW.  Calls changed.
164         (describe_map, describe_vector): Likewise.  When it's 1,
165         don't omit shadowed bindings, instead mark them as shadowed.
167         * doc.c (Fsubstitute_command_keys): Compute list of shadowing maps
168         for describe_map_tree.  Pass 1 for MENTION_SHADOW.
170         * data.c (Fsetq_default): Allow no arg case.
172 2005-02-14  Kenichi Handa  <handa@m17n.org>
174         * coding.c (encode_coding_string): Always return a unibyte string.
175         If NOCOPY is nonzero and there's no need of encoding, make STR
176         unibyte directly.
178         * xselect.c (lisp_data_to_selection_data): If OBJ is a non-ASCII
179         multibyte string, signal an error instead of aborting.
181 2005-02-12  Dan Nicolaescu  <dann@ics.uci.edu>
183         * keyboard.c: If HAVE_FCNTL_H include fcntl.h.
185 2005-02-12  Kim F. Storm  <storm@cua.dk>
187         * xdisp.c (expose_window): Don't fix overlaps for mode lines.
189 2005-02-10  Kim F. Storm  <storm@cua.dk>
191         * xdisp.c (try_window_id): Set first_unchanged_at_end_row to NULL
192         if it moves outside window or it doesn't display text.
194 2005-02-09  Kim F. Storm  <storm@cua.dk>
196         * undo.c (Fprimitive_undo): Check that undo function does not
197         switch buffer.
199 2005-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
201         * xselect.c (selection_data_to_lisp_data): For the special case
202         type == XA_ATOM, data contains array of int, not array of Atom.
203         (x_property_data_to_lisp, selection_data_to_lisp_data): Comment
204         update: data must be array of int for format == 32.
206 2005-02-08  Stefan Monnier  <monnier@iro.umontreal.ca>
208         * undo.c (Fprimitive_undo): Check veracity of delta,start,end.
210 2005-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
212         * xfns.c (Fx_change_window_property): Use long array when format is 32.
213         (Fx_window_property): If format is 32 and long is bigger than 32 bits,
214         convert long array returned from XGetWindowProperty to an int array.
215         (x_set_tool_bar_lines): Check that width and height is greater than
216         zero before clearing area.
218         * xselect.c (x_reply_selection_request): Pass long array to
219         XChangeProperty so that 64 bit longs are handeled correctly.
220         (x_get_window_property): If format is 32 and long is bigger than 32
221         bits convert data from XGetWindowProperty from long array to int array.
222         (lisp_data_to_selection_data): When the input is a vector and the
223         format is 32, allocate a long array even if long is bigger than 32 bits.
224         (x_fill_property_data): Use char, short and long as the man page
225         for XChangeProperty specifies.  This way the data returned is OK for
226         both 32 and 64 bit machines.
227         (x_handle_dnd_message): Calculate size correctly even for 64 bit
228         machines.
229         (Fx_send_client_event): Undo change from 2005-02-05,
230         x_fill_property_data now handles that case.
232         * xfns.c (Fx_backspace_delete_keys_p): Add comment about the
233         reason for the approach in the code.
235 2005-02-07  Kim F. Storm  <storm@cua.dk>
237         * undo.c (Fprimitive_undo): Record max one dummmy apply element.
239 2005-02-06  Richard M. Stallman  <rms@gnu.org>
241         * eval.c (Frun_hook_with_args)
242         (Frun_hook_with_args_until_success)
243         (Frun_hook_with_args_until_failure): Doc fixes.
245 2005-02-05  Andreas Schwab  <schwab@suse.de>
247         * sysdep.c (sys_subshell): Properly terminate execlp argument list.
249 2005-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
251         * xselect.c (Fx_send_client_event, x_handle_dnd_message): Handle
252         the longs in a XClientMessageEvent correctly when long is 64 bits.
254 2005-02-05  Eli Zaretskii  <eliz@gnu.org>
256         * xfaces.c (face_color_supported_p): Use HAVE_WINDOW_SYSTEM
257         instead of HAVE_X_WINDOWS, for non-X windowed sessions.
259 2005-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
261         * xmenu.c (menubar_selection_callback): Force out GTK buffered
262         events so the menu event comes after them.  This is to prevent sit-for
263         from exiting on buffered events directly after a menu selection,
264         lisp code for Help => About Emacs uses sit-for.
266         * gtkutil.c (create_menus): Connect selection-done event instead of
267         the deactivate event to deactivate_cb.  This will make the last
268         leave event come before the call to deactivate_cb, so the leave
269         event does not make sit-for exit after a menu selection.
271 2005-02-03  Kim F. Storm  <storm@cua.dk>
273         * dispnew.c (build_frame_matrix_from_leaf_window)
274          [!GLYPH_DEBUG]: Fix xassert.
276         * xfaces.c (x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
278         * xfns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
280 2005-02-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
282         * mac.c: Use MAC_OS_X_VERSION_MAX_ALLOWED to conditionalize by
283         the compiling OS version.
285         * macfns.c (x_create_tip_frame): Likewise.
287         * macterm.c (mac_draw_string_common, x_make_frame_visible): Likewise.
289 2005-02-03  Richard M. Stallman  <rms@gnu.org>
291         * xterm.c (x_error_quitter): On GCC 3 and up, specify noinline.
293         * xdisp.c (echo_area_display): Clear echo_message_buffer.
295         * buffer.c (Fbury_buffer): Doc fix.
297 2005-02-02  Steven Tamm  <steventamm@mac.com>
299         * macfns.c (unwind_create_frame): Fixing compile error due to
300         xassert being uncondition, but predicate is.
301         * dispnew.c (update_window): Fixing compile error due to
302         xassert being uncondition, but predicate is.
304 2005-02-02  Miles Bader  <miles@gnu.org>
306         * dispextern.h (xassert): Enable unconditionally.
308 2005-02-02  Kim F. Storm  <storm@cua.dk>
310         * undo.c (Fprimitive_undo): Fix dummy apply undo entry.
312 2005-02-02  Kenichi Handa  <handa@m17n.org>
314         * casefiddle.c (casify_object): Enable changing characters of
315         different byte length.
316         (casify_region): Fix loop condition, args to replace_range_2, and
317         update opoint_byte.
319         * insdel.c (replace_range_2): Fix bugs in adjusting markers and
320         point.
322 2005-02-01  Kim F. Storm  <storm@cua.dk>
324         * xdisp.c (back_to_previous_visible_line_start): Reset iterator
325         stack before calling handle_display_prop.
327 2005-01-31  Kim F. Storm  <storm@cua.dk>
329         * undo.c (Qapply): New lisp var.
330         (syms_of_undo): Intern and staticpro it.
331         (Fprimitive_undo): Support formats (apply FUNNAME . ARGS) and
332         (apply DELTA BEG END FUNNAME . ARGS) instead of (FUNNAME . ARGS).
334         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
336 2005-01-30  Jesper Harder  <harder@phys.au.dk>
338         * macterm.c (syms_of_macterm) <mac-reverse-ctrl-meta>
339         <mac-emulate-three-button-mouse>: Fix docstring indentation.
341 2005-01-29  Luc Teirlinck  <teirllm@auburn.edu>
343         * undo.c (syms_of_undo) <undo-outer-limit>: Doc update.
344         Increase value to 3 Meg.
346 2005-01-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
348         * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,
349         button events are not received otherwise.
351 2005-01-29  Richard M. Stallman  <rms@gnu.org>
353         * buffer.c (syms_of_buffer) <buffer-undo-list>: Doc fix.
355         * undo.c (Fprimitive_undo): Handle (FUNNAME . ARGS) by calling FUNNAME.
357 2005-01-28  Stefan Monnier  <monnier@iro.umontreal.ca>
359         * keymap.c (access_keymap): YAILOM.
361 2005-01-27  Kim F. Storm  <storm@cua.dk>
363         * xdisp.c (get_phys_cursor_geometry): New function to calculate
364         phys cursor position and size for hollow cursor.  Position is
365         aligned with get_glyph_string_clip_rect and ensures that a hollow
366         cursor is shown, even when the actual glyph is not visible.
368         * dispextern.h (get_phys_cursor_geometry): Add prototype.
370         * xterm.c (x_clip_to_row): Ensure y >= 0.
371         (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
373         * w32term.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
375         * macterm.c (x_draw_hollow_cursor): Use get_phys_cursor_geometry.
377 2005-01-27  Stefan Monnier  <monnier@iro.umontreal.ca>
379         * xterm.c (x_error_quitter): Add a prototype.  Make it static again.
381 2005-01-27  Kim F. Storm  <storm@cua.dk>
383         * xdisp.c (get_glyph_string_clip_rect): Always show a cursor
384         glyph, even when row is only partially visible and actual cursor
385         position is not visible.
387 2005-01-24  Richard M. Stallman  <rms@gnu.org>
389         * xterm.c (x_error_quitter): No longer static, and moved after
390         x_error_handler.
392 2005-01-24  Kim F. Storm  <storm@cua.dk>
394         * xdisp.c (move_it_by_lines): If we move forward after going too
395         far back, cancel move if end position is same as start position.
397 2005-01-24  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
399         * dispextern.h (struct glyph_string): New members clip_head and
400         clip_tail.
402         * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip
403         region to the area between clip_head and clip_tail.
404         (draw_glyphs): Record the area that need to be actually redrawn to
405         the new variables clip_head and clip_tail when there are
406         overhangs.  Set values of these variables to the corresponding
407         members in struct glyph_string.  Refine x coordinates for
408         notice_overwritten_cursor using clip_head and clip_tail.
410         * macgui.h (STORE_XCHARSETSTRUCT): New macro.
412         * macterm.c (mac_compute_glyph_string_overhangs): Implement with
413         QDTextBounds.
414         (x_draw_glyph_string): Don't fill the background of the successor
415         of a glyph with a right overhang if the successor will draw a cursor.
416         (XLoadQueryFont): Obtain font metrics using QDTextBounds.
417         (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
419 2005-01-24  Kim F. Storm  <storm@cua.dk>
421         * window.c (window_scroll_pixel_based): Fix scrolling in the wrong
422         direction if window height was smaller than next-screen-context-lines.
423         Now always scroll at least one line in the requested direction.
424         Ensure that we actually do scroll backwards when requested to do so.
426         * xdisp.c (redisplay_window): Only try to make cursor line fully
427         visible once (to avoid redisplay loop).
429 2005-01-23  Kim F. Storm  <storm@cua.dk>
431         * window.c (Fpos_visible_in_window_p): Simplify return value for
432         partially visible rows.
433         (window_scroll_pixel_based): Adapt to that change.
435         * window.c (window_scroll_pixel_based): Force moving to next line
436         if scrolling doesn't move start point, e.g. if looking at tall image.
438         * xdisp.c (pos_visible_p): Return 0 if non-interactive.
439         Clear last_height before calling line_bottom_y to get real height.
440         Fix calculation of y.
442 2005-01-22  Steven Tamm  <steventamm@mac.com>
444         * s/darwin.h: Removed PTY_ITERATION from here.
445         (DARWIN): Define.
446         * process.c (init_process): Default process-connection-type to
447         nil on darwin 6 or less, t if it is 7 or higher.  This way the
448         broken pty behavior is still allowed on darwin 6 for interactive
449         processes for people that know what they are doing.
451 2005-01-22  Kim F. Storm  <storm@cua.dk>
453         * window.c (auto_window_vscroll_p): New boolean.
454         (syms_of_window): DEFVAR_BOOL it.
455         (Fpos_visible_in_window_p): Extend return value to include RTOP
456         and RBOT values if FULLY is nil.
457         (window_scroll_pixel_based): Adjust vscroll for partially visible
458         rows if auto_window_vscroll_p is set.
459         (Fset_window_vscroll): Do nothing if vscroll is not modified.
461         * xdisp.c (pos_visible_p): Replace FULLY arg by RTOP and RBOT args
462         to return number of partially invisible pixels at top and bottom
463         of the dislay row at POS.
465         * lisp.h (pos_visible_p): Fix prototype.
467 2005-01-21  Richard M. Stallman  <rms@gnu.org>
469         * fileio.c (Fcopy_file): Doc fix.
471 2005-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
473         * gtkutil.c (xg_tool_bar_detach_callback): Remove unused variable bw.
474         (xg_get_file_name): Move declaration ofx_use_old_gtk_file_dialog to
475         start of function for older compilers.
477 2005-01-20  Richard M. Stallman  <rms@gnu.org>
479         * editfns.c (Fmessage): If arg is "", return "" (as before).
481         * keymap.c (access_keymap): Protect from bad value of meta_prefix_char.
483         * .gdbinit (xgetptr, xgetint, xgettype): Copy $arg0 into a temp
484         variable.
486 2005-01-20  Steven Tamm  <steventamm@mac.com>
488         * editfns.c (Voperating_system_release): Add.
489         (init_editfns): Assign new variable operating-system-release
490         based on call to uname if available.
491         (get_operating_system_release): Add function to
492         allow c-level access to operating system release.
494         * config.h: Regenerated.
496         * s/darwin.h (PTY_ITERATION): Don't allow PTYs on darwin 6 or less.
497         (MIN_PTY_KERNEL_VERSION): Define minimum kernel version for
498         using ptys as '7'.
500 2005-01-20  Kim F. Storm  <storm@cua.dk>
502         * alloc.c (STRING_MARKED_P, VECTOR_MARKED_P): Return boolean.
504         * xterm.c (x_draw_glyph_string_box): Fix last_x for full width rows.
505         Thanks to Chong Yidong <cyd@stupidchicken.com> for debugging this.
507         * macterm.c (x_draw_glyph_string_box): Likewise.
509         * w32term.c (x_draw_glyph_string_box): Likewise.
511         * indent.c (Fvertical_motion): Temporarily disable selective display.
513 2005-01-19  Kim F. Storm  <storm@cua.dk>
515         * xdisp.c (note_mode_line_or_margin_highlight): Fix :pointer
516         image property.
518         * fns.c (sweep_weak_table): Advance prev pointer when we keep a pair.
520 2005-01-18  Kim F. Storm  <storm@cua.dk>
522         * xdisp.c (fast_find_position): Backtrack to find first row if
523         charpos is inside a display overlay that spans multiple lines.
525 2005-01-18  Kenichi Handa  <handa@m17n.org>
527         * coding.c (decode_coding_iso2022): Translate invalid codes if
528         translation-table is specified.
530 2005-01-18  Kim F. Storm  <storm@cua.dk>
532         * xdisp.c (back_to_previous_visible_line_start): Undo 2004-12-28
533         change.  If handle_display_prop indicates newline is replaced by
534         image or text, move back to start of relevant overlay or interval
535         and continue scan from there.  Simplify.
537 2005-01-17  Kim F. Storm  <storm@cua.dk>
539         * dispnew.c (mode_line_string, marginal_area_string):
540         Fix off-by-one error in search for glyph.
542 2005-01-16  Kim F. Storm  <storm@cua.dk>
544         * macterm.c (syms_of_macterm) <mac-allow-anti-aliasing>: Doc fix.
546 2005-01-16  Steven Tamm  <steventamm@mac.com>
548         * macterm.c (mac_to_x_fontname): Remove spurious argument.
550 2005-01-16  Andreas Schwab  <schwab@suse.de>
552         * macterm.c (mac_draw_string_common): Fix compilation on OSX 10.1.
554 2005-01-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
556         * fringe.c (Fdefine_fringe_bitmap, init_fringe): When assigning
557         fringe_faces, cast result from xmalloc/xrealloc to Lisp_Object *.
559 2005-01-16  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
561         * keyboard.c (READABLE_EVENTS_DO_TIMERS_NOW)
562         (READABLE_EVENTS_FILTER_EVENTS, READABLE_EVENTS_IGNORE_SQUEEZABLES):
563         New flags for readable_events.
564         (get_filtered_input_pending, readable_filtered_events): Remove.
565         (tracking_off): Call readable_events and get_input_pending with
566         flag READABLE_EVENTS_DO_TIMERS_NOW.
567         (readable_events): Move code from old readable_filtered_events here,
568         but check new READABLE_EVENTS_* in argument flags instead of previous
569         two boolean arguments do_timers_now and filter_events.
570         If we are doing mouse tracking and the mouse moved, return only if
571         READABLE_EVENTS_IGNORE_SQUEEZABLES is not set in flags.
572         (swallow_events): Call get_input_pending with flag
573         READABLE_EVENTS_DO_TIMERS_NOW.
574         (get_input_pending): Move code from old get_filtered_input_pending
575         here.  Replace boolean arguments do_timers_now, filter_events with
576         flags, and pass flags to readable_events.  Document new
577         READABLE_EVENTS_* flags.
578         (detect_input_pending_ignore_squeezables): New function.
579         (detect_input_pending_run_timers): Call get_input_pending with flag
580         READABLE_EVENTS_DO_TIMERS_NOW.
581         (Finput_pending_p): Call get_input_pending with flags
582         READABLE_EVENTS_DO_TIMERS_NOW and READABLE_EVENTS_FILTER_EVENTS.
584         * dispnew.c (update_window, update_frame_1): Replace calls to
585         detect_input_pending with detect_input_pending_ignore_squeezables
586         so that redisplay is not paused if the event queue contains only
587         mouse movements.
589         * lisp.h: Declare detect_input_pending_ignore_squeezables.
591 2005-01-15  Steven Tamm  <steventamm@mac.com>
593         * macterm.c (Vmac_use_core_graphics): Declare variable for
594         mac-allow-anti-aliasing.
595         (syms_of_macterm): DEFVAR_LISP and initialize it.
596         (mac_draw_string_common): Use core graphics text rendering if
597         mac-allow-anti-aliasing is enabled.
599         * macfns.c (Fx_file_dialog): Save As dialog includes only the
600         file name in the text box.
602 2005-01-15  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
604         * macfns.c (x_set_foreground_color, x_set_background_color):
605         Sync with xfns.c.
606         (mac_window, x_create_tip_frame): Use XSetWindowBackground.
607         * macterm.c (XSetBackground, XSetWindowBackground): New functions.
608         * macterm.h (XSetBackground, XSetWindowBackground): Add externs.
610 2005-01-14  Kim F. Storm  <storm@cua.dk>
612         * keyboard.c (Fposn_at_x_y): Add optional arg WHOLE.
614 2005-01-13  Richard M. Stallman  <rms@gnu.org>
616         * keymap.c (Fcurrent_active_maps): Ignore Voverriding_local_map
617         if Voverriding_terminal_local_map is non-nil.
619         * keyboard.c (syms_of_keyboard): Doc fix.
621 2005-01-13  Kim F. Storm  <storm@cua.dk>
623         * xdisp.c (Fformat_mode_line): Fix last change.  Remove NO_PROPS arg
624         (specify 0 for FACE instead). Reorder arg list.  Doc fix.
626 2005-01-12  Richard M. Stallman  <rms@gnu.org>
628         * xdisp.c (Fformat_mode_line): New arg FACE specifies a default
629         face property for characters that don't specify one.
631         * fns.c (Frequire): Record in load-history unconditionally.
633 2005-01-10  Kim F. Storm  <storm@cua.dk>
635         * dispextern.h (merge_faces): Rename from merge_into_realized_face.
637         * xfaces.c (merge_faces): Rename from merge_into_realized_face.
638         Callers changed.
639         Add support to merge with lisp face id too (if face_name is t).
641         * xdisp.c (get_next_display_element, next_element_from_display_vector):
642         Don't lookup lface_id from display table glyphs here; instead use
643         merge_faces to merge the lisp face id into current face.
645 2005-01-09  Kim F. Storm  <storm@cua.dk>
647         * dispextern.h (struct it): New member dpvec_face_id.
648         (merge_into_realized_face): Add prototype.
650         * xfaces.c (merge_into_realized_face): New function.  Used to
651         merge escape-glyph face or face from display table into current face.
653         * xdisp.c (Vshow_nonbreak_escape): New lisp var.
654         (syms_of_xdisp): DEFVAR_LISP it.
655         (escape_glyph_face): Remove var.
656         (redisplay_window): Don't initialize it.
657         (setup_for_ellipsis, get_next_display_element):
658         Set it->dpvec_face_id to -1.
659         (get_next_display_element): Test Vshow_nonbreak_escape.
660         Do not setup escape_glyph_face.
661         Properly merge escape-glyph face or face from display table with
662         current face for escape and control characters.
663         Set it->dpvec_face_id to relevant face id instead of adding it to each
664         element of display vector.
665         (next_element_from_display_vector): If it->dpvec_face_id is set,
666         use that instead of lface_id from glyph itself.
668 2005-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
670         * xterm.h (struct x_output): New member, toolbar_detached.
672         * gtkutil.c (xg_create_frame_widgets): Set initial tool bar height to
673         38.
674         (xg_tool_bar_detach_callback): Set toolbar_detached to 1.
675         (xg_tool_bar_attach_callback): Set toolbar_detached to 0.
676         (xg_create_tool_bar): Initialize toolbar_detached.
677         (update_frame_tool_bar): Only set FRAME_TOOLBAR_HEIGHT (f) if
678         toolbar_detached is zero.
680 2005-01-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
682         * xmenu.c (create_and_show_popup_menu): Pass zero as button to
683         gtk_menu_popup if not for_click, so callbacks for the menu are called.
685         * gtkutil.c (xg_gtk_scroll_destroy, xg_create_scroll_bar)
686         (xg_tool_bar_callback, xg_tool_bar_help_callback)
687         (update_frame_tool_bar): Cast to EMACS_INT to avoid compiler warning.
689         * xselect.c (x_get_foreign_selection, x_fill_property_data)
690         (Fx_get_atom_name, Fx_send_client_event): Replace XFLOAT with
691         XFLOAT_DATA to get extract number from Lisp object.
693 2005-01-07  Kim F. Storm  <storm@cua.dk>
695         * xdisp.c (set_iterator_to_next): Fix 2004-12-13 change.
696         Set stop_charpos to current charpos instead of 0.
698 2005-01-06  Nick Roberts  <nickrob@snap.net.nz>
700         * xdisp.c (Fformat_mode_line): First arg now required.
702 2005-01-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
704         * macterm.c (XLoadQueryFont): Correctly handle 0 size
705         font widths that are returned from some Japanese fonts.
707 2005-01-06  Kim F. Storm  <storm@cua.dk>
709         * fringe.c (fringe_faces): Change to Lisp_Object pointer.
710         (draw_fringe_bitmap_1): Lookup user defined fringe faces here.
711         (destroy_fringe_bitmap): Set fringe_faces element to nil.
712         (Fdefine_fringe_bitmap, init_fringe): Change allocation of
713         fringe_faces array and init elements to nil.
714         (Fset_fringe_bitmap_face): Set fringe_faces to face name instead of
715         non-persistent face id.
716         (mark_fringe_data): New function for GC.
718         * alloc.c (mark_fringe_data): Declare extern.
719         (Fgarbage_collect): Call mark_fringe_data.
721         * alloc.c (overrun_check_free): Invalidate freed memory if
722         XMALLOC_CLEAR_FREE_MEMORY is defined.
724 2005-01-05  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
726         * macfns.c: Include sys/param.h.
727         [TARGET_API_MAC_CARBON] (mac_nav_event_callback): New declaration
728         and function.
729         [TARGET_API_MAC_CARBON] (Fx_file_dialog): Use MAXPATHLEN for size
730         of filename string.  Set event callback function when creating
731         dialog boxes.  Add code conversions for filenames.  Don't dispose
732         apple event descriptor record if failed to create it.
734         * macterm.c: Include sys/param.h.
735         [USE_CARBON_EVENTS] (mac_handle_window_event): Add handler for
736         kEventWindowUpdate.
737         (install_window_handler) [USE_CARBON_EVENTS]: Register it.
738         (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Get FSRef instead
739         of FSSpec from apple event descriptor record.
740         (do_ae_open_documents) [TARGET_API_MAC_CARBON]: Use MAXPATHLEN for
741         size of filename string.
742         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Likewise.
743         [TARGET_API_MAC_CARBON] (mac_do_receive_drag): Return error when a
744         file dialog is in action.
745         [TARGET_API_MAC_CARBON] (mac_do_track_drag): Likewise.
746         Reject only when there are no filename items.  Set background color
747         before (un)highlighting the window below the dragged items.
748         (XTread_socket) [!USE_CARBON_EVENTS]: Don't call do_window_update.
750 2005-01-05  Romain Francoise  <romain@orebokech.com>
752         * term.c (encode_terminal_code): Fix buffer size computation.
754 2005-01-04  Richard M. Stallman  <rms@gnu.org>
756         * xdisp.c (Fformat_mode_line): Doc fix.
758 2005-01-04  Stefan Monnier  <monnier@iro.umontreal.ca>
760         * alloc.c (refill_memory_reserve): Move.
761         (emacs_blocked_free, emacs_blocked_malloc, emacs_blocked_realloc)
762         (reset_malloc_hooks, uninterrupt_malloc) [SYNC_INPUT]: Don't define.
764 2005-01-03  Richard M. Stallman  <rms@gnu.org>
766         * window.c (window_scroll_pixel_based): Don't correct preserve_y
767         for CURRENT_HEADER_LINE_HEIGHT when moving backwards.
769 2005-01-03  Jason Rumney  <jasonr@gnu.org>
771         * w32bdf.c (w32_load_bdf_font): Set fontp->average_width and
772         fontp->space_width to FONT_WIDTH so they are valid.
774         * w32fns.c (w32_load_system_font): Set FONT_WIDTH to maximum, not
775         average width. Set fontp->average_width and fontp->space_width to
776         their appropriate values.
778         * w32term.c (x_new_font): Set FRAME_COLUMN_WIDTH to
779         fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
780         fontp->space_width.
782 2005-01-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
784         * macterm.c (x_new_font): Set FRAME_SPACE_WIDTH.
785         (x_font_min_bounds, XLoadQueryFont): Use the correct font width
786         metrics for max and min bounds.
787         (x_load_font): Correctly calculate average font width metrics.
789 2005-01-02  Richard M. Stallman  <rms@gnu.org>
791         * alloc.c (Fgarbage_collect): Don't truncate_undo_list on dead buffers.
793 2004-12-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
795         * xterm.c (handle_one_xevent): Clear area in expose event for GTK.
797 2004-12-31  Richard M. Stallman  <rms@gnu.org>
799         * xdisp.c (setup_for_ellipsis, get_next_display_element):
800         Set it->ellipsis_p to 1 or 0.
801         (display_line): Record whether row ends in mid-ellipsis.
802         (set_cursor_from_row): If ends in ellipsis. find start of it.
803         (cursor_row_p): If PT's at the end of the ellipsis the row
804         ends within, don't display cursor on this row.
806         * dispextern.h (struct it): New element ellipsis_p.
807         (struct glyph_row): New element ends_in_ellipsis_p.
809         * xdisp.c (BUFFER_POS_REACHED_P): We haven't reached the specified
810         position if we're reading from something other than the buffer.
812         * window.c (window_scroll_pixel_based): Only look at
813         Vscroll_preserve_screen_position if the old PT can't be kept.
814         (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
816 2004-12-30  Kim F. Storm  <storm@cua.dk>
818         * xdisp.c (get_line_height_property): New function extracted from
819         original calc_line_height_property.
820         (calc_line_height_property): Rework.  Handle t and (nil . ratio).
821         (x_produce_glyphs): Use them to handle line-height and
822         line-spacing according to new height spec.
823         (Qtotal): Remove.
824         (syms_of_xdisp): Remove intern and staticpro for Qtotal.
826 2004-12-30  Kenichi Handa  <handa@m17n.org>
828         * fileio.c (Finsert_file_contents): Don't use
829         current_buffer->buffer_file_coding_system even if REPLACE is
830         non-nil.  Call Qafter_insert_file_set_coding with the second arg VISIT.
832         * fontset.h (struct font_info): New members space_width and
833         average_width.
835         * frame.h (struct frame): New member space_width.
836         (FRAME_SPACE_WIDTH): New macro.
838         * xterm.h (struct x_display_info): New member Xatom_AVERAGE_WIDTH.
840         * xterm.c (x_new_font): Set FRAME_COLUMN_WIDTH to
841         fontp->average_width, not FONT_WIDTH.  Set FRAME_SPACE_WIDTH to
842         fontp->space_width.
843         (x_load_font): Calculate fontp->space_width and fontp->average_width.
844         (x_term_init): Initialize dpyinfo->Xatom_AVERAGE_WIDTH.
846         * xdisp.c (x_produce_glyphs): Calculate tab width by
847         FRAME_SPACE_WIDTH, not FRAME_COLUMN_WIDTH.
849 2004-12-29  Sanghyuk Suh  <han9kin@mac.com>
851         * macterm.c (SelectionRange): Add Xcode position apple event struct.
852         (do_ae_open_documents): Handle Xcode-style file position open events.
854 2004-12-29  Luc Teirlinck  <teirllm@auburn.edu>
856         * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Correct typo.
858 2004-12-29  Richard M. Stallman  <rms@gnu.org>
860         * buffer.c (syms_of_buffer) <vertical-scroll-bar>: Doc fix.
862 2004-12-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
864         * macfns.c (install_window_handler): Modify extern to return OSErr
865         value.
866         (mac_window): Handle return value of install_window_handler.
868         * macterm.c (reflect_byte): Remove function.
869         (mac_create_bitmap_from_bitmap_data): Don't call reflect_byte.
870         Lookup table instead.
871         (mac_do_font_lists): Simplify calculation of the longest
872         nonspecial string.
873         (init_mac_drag_n_drop): Remove function and declaration.
874         (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
875         init_mac_drag_n_drop.
876         (mac_do_track_drag): New function and declaration.
877         (install_window_handler): Return OSErr value.
878         (install_window_handler) [TARGET_API_MAC_CARBON]:
879         Register handlers for tracking/receiving drag-and-drop items.
880         (do_ae_open_documents): Generate unibyte strings for filenames.
881         (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise.
882         Reject only non-filename items.  Set event modifiers, and return value.
884 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
886         * coding.c (decode_coding): Fix previous change.
888 2004-12-28  Richard M. Stallman  <rms@gnu.org>
890         * xdisp.c (back_to_previous_visible_line_start):
891         Don't call handle_display_prop.
893 2004-12-28  Dan Nicolaescu  <dann@ics.uci.edu>
895         * coding.c (decode_coding_XXX, decode_composition_emacs_mule)
896         (decode_coding_emacs_mule, encode_coding_emacs_mule)
897         (decode_coding_iso2022, encode_designation_at_bol)
898         (encode_coding_iso2022, decode_coding_sjis_big5, decode_eol)
899         (decode_coding): Constify arguments and local vars.
901 2004-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
903         * xmenu.c (popup_get_selection): Only pop down dialogs
904         on C-g and Escape.
905         (popup_get_selection): Remove parameter down_on_keypress.
906         (create_and_show_popup_menu, create_and_show_dialog):
907         Remove parameter down_on_keypress to popup_get_selection.
909 2004-12-27  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
911         * dispextern.h: Change HAVE_CARBON to MAC_OS.
912         (struct glyph_string): Likewise.
914         * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of
915         mac_initialize.
917         * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name):
918         Change TARGET_API_MAC_CARBON to HAVE_CARBON.
920         * fns.c (vector): Change MAC_OSX to MAC_OS.
922         * frame.c (x_set_frame_parameters, x_report_frame_params)
923         (x_set_fullscreen): Remove #ifndef HAVE_CARBON.
924         (x_set_border_width, Vdefault_frame_scroll_bars):
925         Change HAVE_CARBON to MAC_OS.
927         * image.c [MAC_OS]: Include sys/stat.h.
928         [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and
929         QuickTimeComponents.h.
931         * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern.
932         [!MAC_OSX] (select): Use mac_wait_next_event.
933         [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes.
934         [!MAC_OSX] (select, run_mac_command): Change `#ifdef
935         TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
936         (mac_clear_font_name_table): Add extern.
937         (Fmac_clear_font_name_table): New defun.
938         (syms_of_mac): Defsubr it.
939         [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define.
940         [MAC_OSX] (select_and_poll_event): New function.
941         [MAC_OSX] (sys_select): Use it.
942         [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function.
943         [MAC_OSX && SELECT_USE_CFSOCKET]
944         (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines.
945         [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and
946         RunLoop for simultaneously monitoring two kinds of inputs, window
947         events and process outputs, without periodically polling.
949         * macfns.c (mac_initialized): Remove extern.
950         (stricmp): Put in #if 0.  All callers changed to use xstricmp in
951         xfaces.c.
952         (strnicmp): Decrement `n' at the end of each loop, not the beginning.
953         (check_mac): Use the term "Mac native windows" instead of "Mac OS".
954         (check_x_display_info, x_display_info_for_name): Sync with xfns.c.
955         (mac_get_rdb_resource): New function (from w32reg.c).
956         (x_get_string_resource): Use it.
957         (install_window_handler): Add extern.
958         (mac_window): New function.
959         (Fx_create_frame): Use it instead of make_mac_frame.
960         Set parameter for Qfullscreen.  Call x_wm_set_size_hint.
961         (Fx_open_connection, Fx_close_connection): New defuns.
962         (syms_of_macfns): Defsubr them.
963         (x_create_tip_frame) [TARGET_API_MAC_CARBON]:
964         Add kWindowNoUpdatesAttribute to the window attribute.
965         (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow.
966         (x_create_tip_frame): Don't call ShowWindow.
967         (Fx_show_tip): Call ShowWindow.
968         (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if
969         TARGET_API_MAC_CARBON'.
970         (mac_frame_parm_handlers): Set handlers for Qfullscreen.
971         (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0.
973         * macgui.h [!MAC_OSX]: Don't include Controls.h.  Include Windows.h.
974         (Window): Typedef to WindowPtr and move outside `#if
975         TARGET_API_MAC_CARBON'.
976         (XSizeHints): New struct.
978         * macterm.c (x_update_begin, x_update_end)
979         [TARGET_API_MAC_CARBON]: Disable screen updates during update of a
980         frame.
981         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
982         [MAC_OS8]: Use XDrawImageString/XDrawImageString16.
983         (construct_mouse_click): Put in #if 0.
984         (x_check_fullscreen, x_check_fullscreen_move): Remove decls.
985         (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef
986         TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'.
987         (activate_scroll_bars, deactivate_scroll_bars)
988         [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl.
989         (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window
990         if the position is neither user-specified nor program-specified.
991         (x_free_frame_resources): Free size_hints.
992         (x_wm_set_size_hint): Allocate size_hints if needed.  Set size_hints.
993         (mac_clear_font_name_table): New function.
994         (mac_do_list_fonts): Initialize font_name_table if needed.
995         (x_list_fonts): Don't initialize font_name_table.  Add BLOCK_INPUT
996         around mac_do_list_fonts.
997         (mac_unload_font): New function.
998         (x_load_font): Add BLOCK_INPUT around XLoadQueryFont.
999         (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations
1000         and definitions with #if TARGET_API_MAC_CARBON.
1001         [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl.
1002         (install_window_handler): Add decl.
1003         (do_window_update): Add BeginUpdate/EndUpdate for the tooltip
1004         window.  Use UpdateControls.  Get the rectangle that should be
1005         updated and restrict the target of expose_frame to it.
1006         (do_grow_window): Set minimum height/width according to size_hints.
1007         (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow.
1008         (do_zoom_window): Don't use x_set_window_size.
1009         [USE_CARBON_EVENTS] (mac_handle_window_event): New function.
1010         (install_window_handler): New function.
1011         [!USE_CARBON_EVENTS] (mouse_region): New variable.
1012         [!USE_CARBON_EVENTS] (mac_wait_next_event): New function.
1013         (XTread_socket) [USE_CARBON_EVENTS]: Move call to
1014         GetEventDispatcherTarget inside BLOCK_INPUT.
1015         (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event.
1016         Update mouse_region when mouse is moved.
1017         (make_mac_frame): Remove.
1018         (make_mac_terminal_frame): Put in #ifdef MAC_OS8.
1019         Initialize mouse pointer shapes.  Change values of f->left_pos and
1020         f->top_pos.  Don't use make_mac_frame.  Use NewCWindow.
1021         Don't call ShowWindow.
1022         (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from
1023         Vinvocation_name and Vsystem_name.
1024         (mac_make_rdb): New function (from w32term.c).
1025         (mac_term_init): Use it.  Add BLOCK_INPUT.  Error if display has
1026         already been opened.  Don't pass argument to
1027         mac_initialize_display_info.  Don't set dpyinfo->height/width.
1028         Add entries to x_display_list and x_display_name_list.
1029         (x_delete_display): New function.
1030         (mac_initialize): Don't call mac_initialize_display_info.
1031         (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide.
1033         * macterm.h (check_mac): Add extern.
1034         (struct mac_output): New member size_hints.
1035         (FRAME_SIZE_HINTS): New macro.
1036         (mac_unload_font): Add extern.
1038         * xdisp.c (expose_window, expose_frame): Remove kludges for Mac.
1040         * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
1042 2004-12-27  Richard M. Stallman  <rms@gnu.org>
1044         * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el).
1045         (syms_of_buffer): Don't defsubr it.
1047         * process.c (list_processes_1): Set undo_list instead
1048         of calling Fbuffer_disable_undo.
1050         * xdisp.c (single_display_spec_string_p): Rename from
1051         single_display_prop_string_p.
1052         (single_display_spec_intangible_p): Rename from
1053         single_display_prop_intangible_p.
1054         (handle_single_display_spec): Rename from handle_single_display_prop.
1055         Rewritten to be easier to understand.
1057         Change in load-history format.  Functions now get (defun . NAME),
1058         and variables get just NAME.
1060         * data.c (Fdefalias): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1062         * eval.c (Fdefun, Fdefmacro): Use (defun . FN_NAME) in LOADHIST_ATTACH.
1063         (Fdefvaralias, Fdefvar, Fdefconst): Use just SYM in LOADHIST_ATTACH.
1064         (Qdefvar): Var deleted.
1065         (syms_of_eval): Don't initialze it.
1067         * lread.c (syms_of_lread) <load-history>: Doc fix.
1069 2004-12-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1071         * xmenu.c (popup_get_selection): Pop down on C-g.
1072         (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that
1073         pops down menu on C-g.
1074         (xdialog_show): If dialog popped down and no button in the dialog was
1075         pushed, call Fsignal to quit.
1076         (xmenu_show): In no toolkit version, if menu returns NO_SELECT call
1077         Fsignal to quit.
1079         * xfns.c (Fx_file_dialog): Motif/Lesstif version:  Pop down on C-g.
1081         * gtkutil.c (xg_initialize): Install bindings for C-g so that
1082         dialogs and menus pop down.
1084 2004-12-27  Kenichi Handa  <handa@m17n.org>
1086         * coding.c (code_convert_region): Fix calculation of `ratio'.
1088 2004-12-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1090         * gtkutil.c (update_frame_tool_bar): Make the value of
1091         tool-bar-button-margin control margins of images in tool bar.
1093         * alloc.c (check_depth): New variable.
1094         (overrun_check_malloc, overrun_check_realloc): Only add
1095         overhead and write check pattern if check_depth is 1 (to handle
1096         recursive calls).  Increase/decrease check_depth in entry/exit.
1097         (overrun_check_free): Only check for overhead if check_depth is 1.
1098         Increase/decrease check_depth in entry/exit.
1100 2004-12-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1102         * keyboard.c (input_available_signal): Call SIGNAL_THREAD_CHECK
1103         before touching input_available_clear_time, to avoid accessing it
1104         from multiple threads.
1106 2004-12-23  Jason Rumney  <jasonr@gnu.org>
1108         * image.c (__WIN32__) [HAVE_NTGUI]: Define for correct behaviour
1109         of JPEG library.
1111 2004-12-22  Richard M. Stallman  <rms@gnu.org>
1113         * emacs.c (main): If batch mode, set Vundo_outer_limit to nil.
1115         * lisp.h (Vundo_outer_limit): Fix decl.
1117         * undo.c (Vundo_outer_limit): Replaces undo_outer_limit.
1118         Uses changed.
1119         (syms_of_undo): Initialize appropriately.
1120         (truncate_undo_list): If it's nil, there's no limit.
1122 2004-12-22  Kenichi Handa  <handa@m17n.org>
1124         * xselect.c (Fx_get_cut_buffer_internal): Return a unibyte string.
1126 2004-12-21  Richard M. Stallman  <rms@gnu.org>
1128         * eval.c (unwind_to_catch): Clear immediate_quit.
1130         * xdisp.c (get_next_display_element): Display codes 8a0 and 8ad
1131         specially as `\ ' and `\-'.
1133         * keyboard.c (kbd_buffer_store_event_hold):
1134         In the code for while-no-input, handle immediate_quit.
1136         * alloc.c (Fgarbage_collect): Update call to truncate_undo_list.
1137         Call that at the very start.
1138         (undo_limit, undo_strong_limit, undo_outer_limit): Move to undo.c.
1139         (syms_of_alloc): Don't define undo-limit,
1140         undo-strong-limit and undo-outer-limit here.
1142         * undo.c (truncate_undo_list): Return void.
1143         Take just one argument, the buffer.
1144         Make it current, and inhibit recursive GC.
1145         Access and update the undo list directly; return void.
1146         Refer to the undo...limit variables directly.
1147         Test undo_outer_limit only after counting the whole current command.
1148         When it's exceeded, call the function in undo-outer-limit-function.
1149         (undo_limit, undo_strong_limit, undo_outer_limit): From alloc.c.
1150         (Vundo_outer_limit_function): New variable.
1151         (syms_of_undo): Define undo-limit, undo-strong-limit
1152         and undo-outer-limit here, and undo-outer-limit-function.
1153         Doc fixes.
1155         * lisp.h (truncate_undo_list): Update decl.
1157 2004-12-21  Piet van Oostrum  <piet@cs.uu.nl>
1159         * fileio.c (Fread_file_name): Delete duplicates in
1160         file-name-history when history_delete_duplicates is true.
1162 2004-12-20  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1164         * macterm.c (mac_do_list_fonts): Fix memory leak
1166 2004-12-20  Richard M. Stallman  <rms@gnu.org>
1168         * regex.c (re_match_2_internal) <symend, wordend>:
1169         Fix calls to UPDATE_SYNTAX_TABLE_FORWARD.
1171 2004-12-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1173         * macterm.c (endif, x_font_name_to_mac_font_name):
1174         Use maccentraleurroman instead of maccentraleuropean
1175         (mac_c_string_match, mac_do_list_fonts): Speed up font search by
1176         quickly finding a specific font without needing regexps.
1178 2004-12-15  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1180         * syssignal.h: Declare main_thread.
1181         (SIGNAL_THREAD_CHECK): New macro.
1183         * keyboard.c (input_available_signal): Move thread checking code
1184         to macro SIGNAL_THREAD_CHECK and call that macro.
1185         (interrupt_signal): Call SIGNAL_THREAD_CHECK.
1187         * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c.
1189         * emacs.c: Define main_thread.
1190         (main): Initialize main_thread.
1191         (handle_USR1_signal, handle_USR2_signal, fatal_error_signal)
1192         (memory_warning_signal): Call SIGNAL_THREAD_CHECK.
1194         * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK.
1196         * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK.
1198         * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK.
1200         * process.c (send_process_trap, sigchld_handler):
1201         Call SIGNAL_THREAD_CHECK.
1203         * data.c (arith_error): Call SIGNAL_THREAD_CHECK.
1205         * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
1207         * xterm.c (xg_scroll_callback): Update XG_LAST_SB_DATA before
1208         returning when xg_ignore_gtk_scrollbar is true.
1210 2004-12-14  Kim F. Storm  <storm@cua.dk>
1212         * keyboard.c (read_char): Save and restore echo_string when
1213         handling input method.
1215 2004-12-13  Richard M. Stallman  <rms@gnu.org>
1217         * eval.c (syms_of_eval) <quit-flag>: Doc fix.
1219         * keyboard.c (Vthrow_on_input): New variable.
1220         (syms_of_keyboard): Defvar and initialize it.
1221         (kbd_buffer_store_event_hold): Handle Vthrow_on_input.
1223         * lisp.h (QUIT): Check for Vthrow_on_input.
1224         (Vthrow_on_input): Declare it.
1226 2004-12-13  Kim F. Storm  <storm@cua.dk>
1228         * xdisp.c (set_iterator_to_next): Reset stop_charpos after display
1229         vector.
1231 2004-12-12  Richard M. Stallman  <rms@gnu.org>
1233         * indent.c (Fvertical_motion): Call move_it_by_lines even if LINES = 0.
1235         * minibuf.c (Fall_completions): Add var `zero' and use it in loop.
1236         (Ftry_completion): Really use outer `zero'; eliminate inner one.
1238 2004-12-12  Kenichi Handa  <handa@m17n.org>
1240         * term.c (encode_terminal_code): Fix previous change.
1242 2004-12-11  Stefan Monnier  <monnier@iro.umontreal.ca>
1244         * keyboard.c (handle_async_input): Remove pthread mutex handling.
1245         (input_available_signal): Move pthread thingy to !SYNC_INPUT branch.
1247         * syntax.c (Fforward_word): Avoid non-idempotent side-effects
1248         in macro arguments.
1250         * minibuf.c (Ftry_completion, Fall_completions): Don't use
1251         XFASTINT blindly.
1253         * emacs.c (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.
1255 2004-12-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1257         * w32term.c (x_calc_absolute_position): Remove calculation of
1258         difference between inner and outer window.  Don't subtract difference
1259         for left and top calculations.
1261         * xterm.c (x_calc_absolute_position): Don't subtract outer_pixel_diff
1262         for left and top calculations.  Remove call to x_real_positions.
1263         [Bug report by Drew Adams in November]
1264         (x_check_expected_move): Do not set change_gravity to 1 when calling
1265         x_set_offset.
1267 2004-12-08  Richard M. Stallman  <rms@gnu.org>
1269         * xdisp.c (get_next_display_element): Use `escape-glyph' for
1270         control chars and escaped octal codes.
1271         (Qescape_glyph): New variable.
1272         (syms_of_xdisp): Initialize it.
1273         (escape_glyph_face): New variable.
1274         (redisplay_window): Initialize it.
1276 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
1278         * image.c (our_fill_input_buffer, jpeg_load, CHECK_LIB_AVAILABLE)
1279         (init_image): Use 1 rather than TRUE.  TRUE's not always defined.
1281 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1283         * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) around
1284         reset_malloc_hooks.
1286         * keyboard.c (handle_async_input, input_available_signal):
1287         Add ! defined (SYSTEM_MALLOC) around thread code.
1289         * alloc.c: Add comment about the reason for (UN)BLOCK_INPUT_ALLOC.
1291 2004-12-07  Stefan Monnier  <monnier@iro.umontreal.ca>
1293         * eval.c (init_eval_once): Increase max_specpdl_size to 1000.
1295         * config.in: Regenerate.
1297 2004-12-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1299         * xmenu.c (Fx_popup_menu): Correct documentation about position.
1300         (xmenu_show): Do not call XTranslateCoordinates.  Adjust position
1301         if not given by a mouse click to correspond with x-popup-menu
1302         documentation.
1304         * config.in: Regenerate.
1306         * gtkutil.c: Include signal.h and syssignal.h.
1307         (xg_get_file_name): Block and unblock __SIGRTMIN if defined.
1309         * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h,
1310         new variables main_thread and alloc_mutex,
1311         define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect
1312         emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread.
1313         If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as
1314         (UN)BLOCK_INPUT.
1315         (emacs_blocked_free, emacs_blocked_malloc)
1316         (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC.
1317         (uninterrupt_malloc): Initialize main_thread and alloc_mutex.
1318         (reset_malloc_hooks): New function.
1320         * lisp.h: Declare reset_malloc_hooks.
1322         * emacs.c (Fdump_emacs): Call reset_malloc_hooks.
1324         * keyboard.c: Conditionally include pthread.h
1325         (handle_async_input, input_available_signalt): If not in the main
1326         thread, block signal, send signal to main thread and return.
1328         * gtkutil.c (xg_get_file_with_chooser): Handle local files only.
1329         Set current folder in file chooser if default_filename is a directory.
1331 2004-12-05  Stefan Monnier  <monnier@iro.umontreal.ca>
1333         * regex.c (GET_UNSIGNED_NUMBER): Signal an error when reaching the end.
1334         Remove redundant correctness checks.
1335         (regex_compile): Fix up error codes for \{..\} expressions.
1337 2004-12-05  Richard M. Stallman  <rms@gnu.org>
1339         * regex.c (regex_compile): Fix end-of-pattern case for space.
1341 2004-12-03  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1343         * macterm.h (cfstring_create_with_utf8_cstring): Add prototype.
1344         * mac.c (cfstring_create_with_utf8_cstring): Add to prevent
1345         crashes with invalid characters.
1346         * macmenu.c (add_menu_item): Use it.
1347         * image.c (image_load_quartz2d): Likewise.
1348         * macfns.c (x_set_name, x_set_title): Likewise.
1349         (Fx_file_dialog): Likewise.  Use constant CFRefs instead of
1350         creating them each time for labels.
1352 2004-12-02  Richard M. Stallman  <rms@gnu.org>
1354         * config.in (RE_TRANSLATE_P): If make_number is not a macro,
1355         don't use it here.
1357         * eval.c (Fcalled_interactively_p): Don't check INTERACTIVE.
1358         (interactive_p): Skip Scalled_interactively_p frames
1359         like Sinteractive_p frames.
1360         (unwind_to_catch): Clear handling_signal.
1362         * data.c (Fmake_variable_buffer_local): Doc fix.
1363         (Fmake_local_variable): Doc fix.
1365         * insdel.c (insert_from_string_before_markers)
1366         (insert_from_string): Don't modify buffer on empty insertion.
1368         * window.c (Fget_lru_window, Fget_largest_window): Doc fixes.
1370 2004-12-01  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1372         * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
1373         menu text as UTF8 fails.
1375 2004-12-01  Kim F. Storm  <storm@cua.dk>
1377         * alloc.c: Add commentary for last change.
1378         (XMALLOC_PUT_SIZE, XMALLOC_GET_SIZE): New macros to handle
1379         sizeof(size_t) != 4.
1380         (overrun_check_malloc, overrun_check_realloc, overrun_check_free):
1381         Use them.  Also clear header and trailer of freed memory.
1382         (GC_STRING_OVERRUN_COOKIE_SIZE): Rename from GC_STRING_EXTRA.
1383         (string_overrun_cookie): Rename from string_overrun_pattern.
1384         (GC_STRING_EXTRA): Define from GC_STRING_OVERRUN_COOKIE_SIZE.
1386 2004-12-01  Andreas Schwab  <schwab@suse.de>
1388         * lisp.h: Declare string_to_multibyte.
1390 2004-12-01  Kenichi Handa  <handa@m17n.org>
1392         * w32console.c (w32con_write_glyphs): Decide coding here.
1393         Adjusted for the change of encode_terminal_code.
1395         * term.c (encode_terminal_code): Don't make it "static".
1397 2004-11-30  Kenichi Handa  <handa@m17n.org>
1399         * term.c (encode_terminal_buf, encode_terminal_bufsize): New variables.
1400         (encode_terminal_code): Argument changed.  Encode all
1401         characters at once, and return a pointer to the result of encoding.
1402         (write_glyphs): Decide coding here.  Adjusted for the above change.
1403         (insert_glyphs): Likewise.
1404         (term_init): Initialize encode_terminal_bufsize to 0.
1406         * coding.c (Vcode_conversion_workbuf_name): New variable.
1407         (syms_of_coding): Initialize and staticpro it.
1408         (set_conversion_work_buffer): New function.
1409         (run_pre_post_conversion_on_str): Use it.
1410         (run_pre_write_conversin_on_c_str): New function.
1412         * coding.h (run_pre_write_conversin_on_c_str): Extern it.
1414 2004-11-30  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
1416         * keyboard.c: Don't undef SIGIO
1417         * s/darwin.h (NO_SOCK_SIGIO): Define NO_SOCK_SIGIO on carbon
1418         * Makefile.in (mac.o): Depend on blockinput.h and atimer.h.
1419         (macfns.o): Don't depend on ccl.h.
1420         * macfns.c (mac_frame_parm_handlers): Set handlers for
1421         Qleft_fringe and Qright_fringe.
1422         * macterm.c (mac_fill_rectangle_to_pixmap)
1423         (mac_draw_rectangle_to_pixmap, mac_copy_area_to_pixmap)
1424         (mac_copy_area_with_mask_to_pixmap, x_draw_image_foreground_1):
1425         Put in #if 0.
1426         (mac_scroll_area) [TARGET_API_MAC_CARBON]: Use ScrollWindowRect.
1427         (x_flush) [TARGET_API_MAC_CARBON]: Don't traverse frames.
1428         (XFlush) [TARGET_API_MAC_CARBON]: Define to an empty replacement.
1429         (x_draw_glyph_string_background, x_draw_glyph_string_foreground)
1430         [!MAC_OS8]: Added ifdef'd out code for os8.  Don't use
1431         XDrawImageString.  Always draw background and foreground separately.
1432         (x_draw_image_foreground): Use clipping instead of computing the
1433         intersection rectangle.
1434         (x_draw_image_glyph_string): Don't draw an image with mask to a
1435         pixmap.
1436         (x_redisplay_interface): Set flush_display_optional member to 0.
1437         (XTread_socket): Correctly reset the TEConverter
1438         object.
1440 2004-11-30  Kim F. Storm  <storm@cua.dk>
1442         * lisp.h: New defines to enable buffer overrun checking.
1443         (GC_CHECK_STRING_OVERRUN, GC_CHECK_STRING_FREE_LIST)
1444         (XMALLOC_OVERRUN_CHECK, GC_CHECK_CONS_LIST): Add.
1446         * alloc.c: Add more checks for buffer overruns.
1447         (XMALLOC_OVERRUN_CHECK_SIZE, xmalloc_overrun_check_header)
1448         xmalloc_overrun_check_trailer, overrun_check_malloc)
1449         overrun_check_realloc, overrun_check_free): Add.
1450         (GC_STRING_EXTRA, string_overrun_pattern): Add.
1451         (check_sblock, allocate_string_data, compact_small_strings):
1452         Set and check string_overrun_pattern if GC_CHECK_STRING_OVERRUN.
1453         (check_cons_list): Condition on GC_CHECK_CONS_LIST.
1454         (check_string_free_list): Add.
1455         (allocate_string, sweep_strings): Call check_string_free_list.
1457         * emacs.c (malloc_initialize_hook): Don't free malloc_state_ptr if
1458         XMALLOC_OVERRUN_CHECK to avoid crash during load.
1460 2004-11-29  Kim F. Storm  <storm@cua.dk>
1462         * fns.c (concat): Use SAFE_ALLOCA.
1464 2004-11-29  Stefan Monnier  <monnier@iro.umontreal.ca>
1466         * sysdep.c (emacs_write): Don't use QUIT.
1468 2004-11-29  Kenichi Handa  <handa@m17n.org>
1470         * buffer.c (init_buffer): Set current_buffer->directory to a
1471         multibyte string made by string_to_multibyte.
1473         * emacs.c (init_cmdargs): Set unibyte strings in Vcommand_line_args.
1475 2004-11-27  Andreas Schwab  <schwab@suse.de>
1477         * alloc.c (mark_stack): Call GC_MARK_SECONDARY_STACK if defined.
1479         * s/gnu-linux.h: Enable no-op gcpros on ia64.
1480         (GC_MARK_SECONDARY_STACK) [__ia64__]: Define.
1482         * filelock.c (lock_file_1): Call get_boot_time early.
1483         Increase buffer size.
1485 2004-11-27  Eli Zaretskii  <eliz@gnu.org>
1487         * lisp.h (DECL_ALIGN): Define non-trivially only if NO_DECL_ALIGN
1488         is not defined.
1490 2004-11-27  Kim F. Storm  <storm@cua.dk>
1492         * search.c (syms_of_search) <search-spaces-regexp>: Move 'doc:'
1493         marker out of doc string.
1495 2004-11-26  Stefan Monnier  <monnier@iro.umontreal.ca>
1497         * s/darwin.h (POSIX_SIGNALS): Undo the removal of 2002-08-25,
1498         which was not mentioned in the log.
1500 2004-11-26  Kim F. Storm  <storm@cua.dk>
1502         * fringe.c (update_window_fringes): Prefer truncation bitmaps over
1503         angle bitmaps at top/bottom line.
1505         * xdisp.c: Undo recent changes for restoring saved_face_id. Instead,
1506         set it when it->method is set to next_element_from_display_vector.
1507         (setup_for_ellipsis): Add LEN argument.  Callers changed.
1508         Set it->saved_face_id.
1509         (get_next_display_element): Use loop instead of recursion.
1510         Set it->saved_face_id.  Combine duplicate code for ctr chars.
1511         (next_element_from_display_vector): Do not set it->saved_face_id.
1512         (next_element_from_ellipsis): Use setup_for_ellipsis.
1514 2004-11-26  Eli Zaretskii  <eliz@gnu.org>
1516         * eval.c (Fdefvar): Declare pdl from last change as `volatile' to
1517         prevent compiler warnings.
1519 2004-11-25  Stefan Monnier  <monnier@iro.umontreal.ca>
1521         * keyboard.c (command_loop_1): Print a message describing the key
1522         the user just pressed when this key has no binding.
1524         * sysdep.c (sys_signal): Don't use SA_RESTART if SYNC_INPUT is set.
1525         (emacs_open, emacs_read, emacs_write): Check QUIT when interrupted.
1527         * lread.c (readchar): Check QUIT when `getc' is interrupted.
1529 2004-11-24  Richard M. Stallman  <rms@gnu.org>
1531         * coding.c (run_pre_post_conversion_on_str): Bind Qinhibit_read_only.
1533         * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>: Doc fix.
1535 2004-11-24  Kim F. Storm  <storm@cua.dk>
1537         * xdisp.c (move_it_in_display_line_to, display_line):
1538         Restore saved_face_id also when truncate-lines or hscrolled.
1540 2004-11-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1542         * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog to
1543         x-use-old-gtk-file-dialog.
1545         * xfns.c: Define x_use_old_gtk_file_dialog.
1546         (syms_of_xfns): Rename use-old-gtk-file-dialog to x-...  Move it
1547         outside ifdef USE_GTK.
1549 2004-11-23  Stefan Monnier  <monnier@iro.umontreal.ca>
1551         * coding.h (ENCODE_FILE, DECODE_FILE, ENCODE_SYSTEM, DECODE_SYSTEM):
1552         Don't use XFASTINT blindly.
1554         * config.in (RE_TRANSLATE_P): Don't use XFASTINT blindly.
1556         * indent.c (skip_invisible): Avoid non-idempotent side-effects
1557         in macro arguments.
1559         * keymap.c (Flookup_key): Check INTEGERP before XINT.
1561         * lread.c (oblookup): Don't use XFASTINT blindly.
1563         * window.c (Fset_window_scroll_bars): Don't use XINT if it isn't int.
1564         (decode_next_window_args, window_loop): Don't use XFASTINT blindly.
1566 2004-11-23  Kim F. Storm  <storm@cua.dk>
1568         * dispextern.h (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P)
1569         (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Not if dpvec_index is zero.
1571         * xfaces.c (lookup_named_face): Add signal_p arg.  Return -1 if
1572         signal_p is zero and face name is unknown.
1573         (Fx_list_fonts): Don't signal error in lookup_named_face.
1574         (Fface_font): Signal error in lookup_named_face.
1575         (ascii_face_of_lisp_face): Likewise.
1577         * dispextern.h (lookup_named_face): Fix prototype.
1579         * xdisp.c (handle_single_display_prop): Don't signal error in
1580         lookup_named_face for unknown fringe face name.
1581         (highlight_trailing_whitespace): Don't signal error in
1582         lookup_named_face if trailing-whitespace face unknown.
1583         (calc_line_height_property): Don't signal error in
1584         lookup_named_face if specified face name is unknown.
1586         * fringe.c (update_window_fringes): Show top row indicator if
1587         window has header-line.  Don't show arrow at bob and eob
1588         if the boundary indicators are not used.
1589         (Fset_fringe_bitmap_face): Signal error in lookup_named_face.
1591         * window.c (set_window_buffer): Clear display_error_modiff.
1593 2004-11-22  Kim F. Storm  <storm@cua.dk>
1595         * fringe.c (update_window_fringes): Provide sensible fall-back
1596         value for non-nil indicate-buffer-boundaries setting.
1598 2004-11-22  Markus Rost  <rost@ias.edu>
1600         * minibuf.c (Fminibuffer_complete_and_exit): Fix previous change.
1602 2004-11-22  Stefan Monnier  <monnier@iro.umontreal.ca>
1604         * eval.c (Fdefvar): Warn when var is let-bound but globally void.
1606 2004-11-21  Kim F. Storm  <storm@cua.dk>
1608         * xdisp.c (erase_phys_cursor): Clear hollow cursor inside TEXT_AREA.
1610         * xterm.c (x_clip_to_row): Add area arg.  Callers changed.
1611         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1613         * w32term.c (w32_clip_to_row): Add area arg.  Callers changed.
1614         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1616         * macterm.c (x_clip_to_row): Add area arg.  Callers changed.
1617         (x_draw_hollow_cursor, x_draw_bar_cursor): Clip to TEXT_AREA.
1619         * xdisp.c (move_it_in_display_line_to, display_line):
1620         Restore saved_face_id if overflow-newline-into-fringe is enabled and
1621         line is continued before or in middle of element from display vector.
1623         * indent.c (Fvertical_motion): Fix last change.  Use another
1624         method to detect if iterator moved too far ahead after reseat.
1626         * xdisp.c (IT_EXPAND_MATRIX_WIDTH): New macro.  Do not
1627         expand matrix width for overflow in zero-width area.
1628         (append_glyph, append_composite_glyph, produce_image_glyph)
1629         (append_stretch_glyph): Use it to avoid loop in redisplay.
1630         (note_mode_line_or_margin_highlight): Don't let help-echo from
1631         string override help-echo from image map.
1633 2004-11-20  Luc Teirlinck  <teirllm@auburn.edu>
1635         * fns.c (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument.
1636         * callint.c (Fcall_interactively): Ditto.
1638 2004-11-20  Stefan Monnier  <monnier@iro.umontreal.ca>
1640         * minibuf.c (Fminibuffer_complete_and_exit):
1641         Fixup the case of the completed value, for case-indep completion.
1643 2004-11-20  Richard M. Stallman  <rms@gnu.org>
1645         * lisp.h (Fread_from_minibuffer): Add arg in decl.
1647         * minibuf.c (read_minibuf): New arg KEEP_ALL.  Callers changed.
1648         (Fread_from_minibuffer): New arg KEEP_ALL.  Callers changed.
1650         * search.c (Vsearch_spaces_regexp):
1651         Rename from Vsearch_whitespace_regexp.  All uses changed.
1653 2004-11-20  Thien-Thi Nguyen  <ttn@gnu.org>
1655         * eval.c (init_eval_once): Increase `max_specpdl_size' to 650.
1657 2004-11-19  Richard M. Stallman  <rms@gnu.org>
1659         * search.c (Vsearch_whitespace_regexp): New variable.
1660         (syms_of_search): Defvar it.
1661         (compile_pattern_1): Call re_set_whitespace_regexp with it.
1662         (search_buffer): No regexp is trivial if Vsearch_whitespace_regexp
1663         is non-nil.
1664         (struct regexp_cache): New element whitespace_regexp.
1665         (syms_of_search): Initialize whitespace_regexp elements.
1666         (compile_pattern): Compare whitespace_regexp elements.
1667         (compile_pattern_1): Set whitespace_regexp elements.
1669         * regex.c (regex_compile): Substitute whitespace_regexp
1670         for spaces, if it is nonzero.
1671         (whitespace_regexp): New variable.
1672         (re_set_whitespace_regexp): New function.
1674 2004-11-19  Kim F. Storm  <storm@cua.dk>
1676         * indent.c (Fvertical_motion): Fix last change.
1678 2004-11-18  Kim F. Storm  <storm@cua.dk>
1680         * indent.c (Fvertical_motion): Undo 2004-11-16 change.
1681         Instead, move back again if reseating moves too far ahead.
1683 2004-11-17  Luc Teirlinck  <teirllm@auburn.edu>
1685         * xdisp.c (message3): Call clear_message.
1687 2004-11-17  Kim F. Storm  <storm@cua.dk>
1689         * xdisp.c (erase_phys_cursor): Adjust cursor row visible height.
1691 2004-11-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1693         * gtkutil.c (xg_get_file_name): Typo in HAVE_GTK_FILE_SELECTION_NEW.
1695         * xmenu.c (x_menu_in_use): Remove.
1696         (x_menu_set_in_use): Also set popup_activated_flag.
1698         * xfns.c (Fx_file_dialog): Call popup_activated instead of
1699         x_menu_in_use.  Call x_menu_set_in_use in Motif version also.
1701         * xterm.h: (x_menu_in_use): Remove.
1703 2004-11-16  Richard M. Stallman  <rms@gnu.org>
1705         * keymap.c (Fmap_keymap): New arg SORT-FIRST.
1706         Use map-keymap-internal to implement that.
1708         * indent.c (Fvertical_motion): In batch mode, use vmotion directly.
1710 2004-11-16  Stefan Monnier  <monnier@iro.umontreal.ca>
1712         * xdisp.c (get_glyph_string_clip_rect, init_glyph_string): Check it's
1713         a window before using XWINDOW.
1715         * window.c (make_window, Fselect_window, make_dummy_parent)
1716         (save_window_save):
1717         * frame.c (make_frame):
1718         * fns.c (concat): Avoid side-effects inside XSETFASTINT's arguments.
1720         * lisp.h (NILP): Use EQ rather than XFASTINT.
1722 2004-11-16  Kim F. Storm  <storm@cua.dk>
1724         * fringe.c (Fdefine_fringe_bitmap): Always set 'h'.  Simplify.
1726         * indent.c (Fvertical_motion): Fix last change.  Only reseat when
1727         moving backwards.
1729 2004-11-16  Luc Teirlinck  <teirllm@auburn.edu>
1731         * dispextern.h: Extern reseat_at_previous_visible_line_start.
1733 2004-11-16  Kenichi Handa  <handa@m17n.org>
1735         * xdisp.c (display_mode_element): Fix previous change (calculate
1736         end position of substring to display correctly).
1738 2004-11-16  Kim F. Storm  <storm@cua.dk>
1740         * keyboard.c (Fposn_at_point): Remove extra */ after doc string.
1741         Reported by Andrew M. Scott.
1743 2004-11-15  Kim F. Storm  <storm@cua.dk>
1745         * fns.c (Fsafe_plist_get): New defun.
1746         (syms_of_fns): Defsubr it.
1748         * lisp.h (Fsafe_plist_get): Add EXFUN.
1750         * xdisp.c (store_mode_line_string, produce_stretch_glyph):
1751         Use Fsafe_plist_get.
1752         (note_mode_line_or_margin_highlight, note_mouse_highlight):
1753         Fix image map element parsing.  Use Fsafe_plist_get.
1755 2004-11-15  Richard M. Stallman  <rms@gnu.org>
1757         * xdisp.c (get_next_display_element): Fix previous change.
1759 2004-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1761         * window.c (shrink_windows): Handle special case of one window left
1762         when trying to shrink the final reminder.  Grow windows if
1763         total_removed is less than total_shrink.
1765         * xmenu.c (pop_down_menu): Remove global variable current_menu,
1766         extract pointer from arg with XSAVE_VALUE.
1767         (create_and_show_popup_menu, create_and_show_dialog, xmenu_show):
1768         Construct arg to record_unwind_protect with make_save_value.
1770 2004-11-13  Richard M. Stallman  <rms@gnu.org>
1772         * xdisp.c (reseat_at_previous_visible_line_start): No longer static.
1773         (get_next_display_element): Fix previous change to apply only to \n.
1775         * indent.c (Fvertical_motion): Scan to PT from start of line to
1776         make iterator consistent.
1778         * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
1780 2004-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1782         * gtkutil.c (pop_down_file_dialog): Add BLOCK_INPUT.
1784         * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
1785         Record unwind with clean_up_file_dialog.
1787         * xterm.h (x_menu_in_use, x_menu_set_in_use, x_menu_wait_for_event):
1788         Declare.
1790         * xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
1792 2004-11-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1794         * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
1795         (xg_file_sel_destroy): Remove.
1796         (xg_file_response_cb, pop_down_file_dialog)
1797         (xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
1798         New functions.
1799         (xg_get_file_with_chooser, xg_get_file_with_selection):
1800         Take new arg func, set it to xg_get_file_name_from_chooser/selector.
1801         Move common code to xg_get_file_name.  Return widget created.
1802         (xg_get_file_name): Set name, transient for, modal and destroy
1803         with parent here.  Connect response signal to xg_file_response_cb,
1804         connect delete-event to gtk_true.  Record pop_down_file_dialog
1805         for unwind.  Do event loop and call x_menu_wait_for_event in loop.
1806         (xg_create_widget): Make dialogs modal.
1808         * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
1809         Lisp_Object.
1810         (popup_get_selection): Move unwind protect ...
1811         (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1812         Move destroy of widget to pop_down_menu.
1813         (popup_widget_loop): Move unwind protect ...
1814         (create_and_show_popup_menu, create_and_show_dialog): ... to here.
1815         Move destroy of widget to pop_down_menu.
1816         (pop_down_menu): BLOCK_INPUT and destroy widget/window.
1817         (xmenu_show): Record unwind pop_down_menu.  Move XMenuDestroy,
1818         x_mouse_leave and grabbed = 0 to pop_down_menu.
1820 2004-11-13  Kim F. Storm  <storm@cua.dk>
1822         * xdisp.c (make_cursor_line_fully_visible_p): New variable.
1823         (syms_of_xdisp): DEFVAR_BOOL it.
1824         (make_cursor_line_fully_visible, try_cursor_movement)
1825         (try_window_id): Use it.
1827 2004-11-12  Kim F. Storm  <storm@cua.dk>
1829         * dispextern.h (struct glyph_row): New member extra_line_spacing.
1830         (struct it): New member max_extra_line_spacing.
1831         (MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
1832         (MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
1833         (MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
1834         part of last line is only extra line spacing (so the text on the
1835         line is fully visible). Use helper macros.
1836         Add W arg (to use them).  All callers changed.
1837         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
1838         (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
1840         * window.c (window_scroll_pixel_based, Frecenter):
1841         Use move_it_vertically_backward directly.
1842         (Frecenter): Fix calculation of new start pos for negative arg.
1843         Before, the new start pos was sometimes chosen too far back, so
1844         the last line became only partially visible, and thus would be
1845         either only semi-visible or automatically scrolled to the middle
1846         of the window by redisplay.
1848         * xdisp.c (init_iterator): Clear it.max_extra_line_spacing.
1849         (move_it_vertically_backward): Don't recure to move further back.
1850         (move_it_vertically): Remove superfluous condition.
1851         (move_it_by_lines): Clear last_height when moved 0 lines.
1852         (resize_mini_window): Use it.max_extra_line_spacing.
1853         (display_tool_bar_line): Clear row->extra_line_spacing.
1854         (try_scrolling): Use move_it_vertically_backward directly.
1855         (redisplay_window): Likewise.
1856         (compute_line_metrics): Set row->extra_line_spacing.
1857         (display_line, display_string): Likewise.
1858         (x_produce_glyphs): Update it->max_extra_line_spacing.
1860         * xmenu.c (pop_down_menu): Return nil.
1862 2004-11-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1864         * xmenu.c (x_menu_wait_for_event): New function.
1865         (popup_get_selection, popup_widget_loop):  Call x_menu_wait_for_event
1866         to handle timers.
1867         (popup_widget_loop): Add argument do_timers.
1868         (create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
1869         do_timers to popup_widget_loop.
1870         (xmenu_show): Call XMenuActivateSetWaitFunction so that
1871         x_menu_wait_for_event is called by XMenuActivate.
1872         (create_and_show_popup_menu): Pass 1 for do_timers to
1873         popup_get_selection.
1874         (pop_down_menu): New function.
1875         (popup_get_selection, popup_widget_loop): Unwind protect to
1876         pop_down_menu.
1877         (popup_widget_loop): Add argument widget.
1878         (create_and_show_popup_menu, create_and_show_dialog): Pass new
1879         argument widget to popup_widget_loop.
1881 2004-11-10  Stefan Monnier  <monnier@iro.umontreal.ca>
1883         * keymap.c (Fkeymap_prompt): Accept symbol keymaps.
1885 2004-11-09  Kim F. Storm  <storm@cua.dk>
1887         * xselect.c: Include <sys/types.h> and <unistd.h> (for getpid).
1888         Fix various comments referring to XEvents instead of input events.
1889         (x_queue_event): Fix format strings.
1890         (x_stop_queuing_selection_requests): Likewise.
1892         * xdisp.c (produce_image_glyph): Remove unused variable 'face_ascent'.
1893         (pint2hrstr): Add extra braces to silence compiler.
1895         * print.c (print_object): Fix format string.
1897         * lread.c (read1): Fix next_char matching.
1899         * lisp.h (Fdelete): Add EXFUN.
1900         (replace_range_2): Add prototype.
1902         * keyboard.c (read_avail_input): Remove unused variable 'discard'.
1904         * intervals.h (NULL_INTERVAL_P): Add separate version when
1905         ENABLE_CHECKING is not defined to silence compiler.
1906         (compare_string_intervals): Add prototype.
1908         * fringe.c (destroy_fringe_bitmap): Fix return type.
1909         (Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
1911         * emacs.c (Fdump_emacs): Fix format string.
1913         * doc.c: Include <ctype.h>.
1914         (Fsubstitute_command_keys): Remove unused variable 'firstkey'.
1916         * data.c (store_symval_forwarding): Remove unused variables.
1918         * callint.c (Fcall_interactively): Remove unused variable 'funcar'.
1920 2004-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1922         * Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
1923         to ${OLDXMENU}.
1925 2004-11-09  Kim F. Storm  <storm@cua.dk>
1927         * process.c (Fmake_network_process): Remove kludge for interrupted
1928         connects on BSD.  If connect is interrupted, just close socket and
1929         start over rather than sleeping and retry with same socket.
1931 2004-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1933         * .cvsignore: Add buildobj.lst.
1935         * doc.c: New variable Vbuild_files.
1936         (Fsnarf_documentation): If Vbuild_files is nil, populate it with
1937         file names from buildobh.lst.  Only attach docstrings from files
1938         that are in Vbuild_files.
1939         (syms_of_doc): Defvar Vbuild_files.
1941         * Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
1942         and w32*.o.
1943         (temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
1944         (mostlyclean): Rm buildobj.lst
1946         * makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
1947         is linked.
1949 2004-11-09  Kim F. Storm  <storm@cua.dk>
1951         * fringe.c (update_window_fringes): Update fringe bitmaps if
1952         cur and row ends_at_zv_p differs.  If bitmaps of a row is updated,
1953         also update previous row to get rid of misc. artifacts.
1955 2004-11-08  Kim F. Storm  <storm@cua.dk>
1957         * xdisp.c (fast_find_position): Fix start pos if header line present.
1958         (note_mouse_highlight): Clear mouse face if we move out of text area.
1960 2004-11-08  Eli Zaretskii  <eliz@gnu.org>
1962         * editfns.c: Move #include "systime.h" before <sys/resource.h>.
1963         Don't include <sys/time.h> explicitly.
1964         Include <stdio.h> unconditionally, not just on MacOS.
1966 2004-11-08  Kenichi Handa  <handa@m17n.org>
1968         * fontset.c (fontset_pattern_regexp): Cancel my previous change;
1969         don't pay attention to '\' before '*'.
1970         (fontset_pattern_regexp): Change the meaning of the second arg.
1971         (Fnew_fontset): Call fs_query_fontset, not Fquery_fontset.
1972         (check_fontset_name): Try NAME as literal at first, and if it
1973         failes, try NAME as pattern.
1975 2004-11-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1977         * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.
1979 2004-11-07  Andreas Schwab  <schwab@suse.de>
1981         * lisp.h (Fmsdos_downcase_filename): Declare.
1982         * dired.c (Fmsdos_downcase_filename): Don't declare here.
1983         * fileio.c: Likewise.
1985 2004-11-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1987         * dosfns.c (Fdos_memget, Fdos_memput): Use integer variable offs in
1988         comparisons with integers instead of Lisp_Object address.
1989         (Fmsdos_set_keyboard): Declare argument allkeys.
1991         * msdos.c (IT_set_frame_parameters): Use EQ, not ==, for Lisp_Object:s.
1993         * dired.c (Fmsdos_downcase_filename): Declare extern on MSDOS to avoid
1994         int/Lisp_Object mixup.
1996         * fileio.c: Ditto.
1998 2004-11-06  Steven Tamm  <steventamm@mac.com>
2000         * editfns.c: Need to include sys/time.h before resource.h on darwin.
2002 2004-11-06  Richard M. Stallman  <rms@gnu.org>
2004         * callint.c (Fcall_interactively): Avoid reusing EVENT for other data.
2006         * xfaces.c (merge_named_face): GCPRO the face_name in the
2007         named_merge_point struct that we make.
2008         (merge_face_heights): Eliminate GCPRO arg.  All callers changed.
2010         * keyboard.c (command_loop_1): Change Vtransient_mark_mode
2011         before deciding whether to inactivate mark.
2013 2004-11-06  Lars Brinkhoff  <lars@nocrew.org>
2015         * config.in: Regenerate (add HAVE_GETRUSAGE).
2016         * editfns.c (Fget_internal_run_time): New function.
2017         (syms_of_data): Defsubr it.
2018         * fns.c (sxhash): As far as possible, merge calculation of
2019         hash code for symbols and strings.
2021 2004-11-06  Eli Zaretskii  <eliz@gnu.org>
2023         * frame.c (syms_of_frame): Fix the example in the doc string.
2025 2004-11-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2027         * eval.c (Feval): Remove check for INPUT_BLOCKED_P.
2029         * xmenu.c (popup_get_selection, create_and_show_popup_menu)
2030         (create_and_show_dialog): Revert change from 2004-10-31.
2032 2004-11-05  Luc Teirlinck  <teirllm@auburn.edu>
2034         * macros.c (syms_of_macros) <defining-kbd-macro>: Doc fix.
2036 2004-11-05  Kim F. Storm  <storm@cua.dk>
2038         * print.c (print_object): Print Lisp_Misc_Save_Value objects.
2040         * fileio.c (Ffile_modes): Doc fix.
2041         (auto_save_1): Check for Ffile_modes nil value.
2043 2004-11-05  Kim F. Storm  <storm@cua.dk>
2045         * xselect.c (struct selection_event_queue, selection_queue)
2046         (x_queue_selection_requests, x_queue_event)
2047         (x_start_queuing_selection_requests)
2048         (x_stop_queuing_selection_requests): Add new queue for selection
2049         input events to replace previous XEvent queue in xterm.c.
2050         (queue_selection_requests_unwind): Adapt to new queue.
2051         (x_reply_selection_request): Adapt to new queue.
2052         Unexpect wait_object in case of x errors (memory leak).
2053         (x_handle_selection_request, x_handle_selection_clear): Make static.
2054         (x_handle_selection_event): New function.  May queue selection events.
2055         (wait_for_property_change_unwind): Use save_value instead of cons.
2056         Clear property_change_reply_object.
2057         (wait_for_property_change): Abort if already waiting.
2058         Use save_value instead of cons for unwind data.
2059         (x_handle_property_notify): Skip events already arrived, but don't
2060         free them, as "arrived" field is checked by wait_for_property_change,
2061         and it will be freed by unwind or explicit unexpect_property_change.
2062         (x_get_foreign_selection): Add to new queue.
2063         (receive_incremental_selection): Don't unexpect wait_object when done
2064         as it has already been freed by previous wait_for_property_change.
2066         * xterm.h (x_start_queuing_selection_requests)
2067         (x_stop_queuing_selection_requests, x_handle_selection_request)
2068         (x_handle_selection_clear): Remove prototypes.
2069         (x_handle_selection_event): Add prototype.
2071         * xterm.c (handle_one_xevent): Don't queue X selection events
2072         here, it may be too late if we start queuing after we have already
2073         stored some selection events into the kbd buffer.
2074         (struct selection_event_queue, queue, x_queue_selection_requests)
2075         (x_queue_event, x_unqueue_events, x_start_queuing_selection_requests)
2076         (x_stop_queuing_selection_requests): Remove/move to xselect.c.
2077         (x_catch_errors_unwind): Block input around final XSync.
2079         * keyboard.h (kbd_buffer_unget_event): Add prototype.
2081         * keyboard.c (kbd_buffer_store_event_hold): Remove obsolete code.
2082         (kbd_buffer_unget_event): New function.
2083         (kbd_buffer_get_event, swallow_events): Combine SELECTION events
2084         and use x_handle_selection_event.
2085         (mark_kboards): Don't mark x and y of SELECTION_CLEAR_EVENT.
2087 2004-11-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2089         * xselect.c (TRACE3): New debug macro.
2090         (x_reply_selection_request): Use it.
2091         (receive_incremental_selection): In call to TRACE0, the name of
2092         a symbol is in xname.
2094 2004-11-05  Kim F. Storm  <storm@cua.dk>
2096         * fontset.c (fontset_pattern_regexp): Use unsigned char.
2098 2004-11-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2100         * fileio.c (Fnext_read_file_uses_dialog_p): New function.
2102         * gtkutil.h (use_old_gtk_file_dialog): Declare.
2104         * gtkutil.c: Make use_old_gtk_file_dialog non-static.
2105         (xg_initialize): Move DEFVAR_BOOL for use_old_gtk_file_dialog ...
2106         * xfns.c (syms_of_xfns): ... to here.
2108         * gtkutil.c (xg_get_file_with_chooser): Expand DEFAULT_FILENAME if
2109         it doesn't start with /.
2111 2004-11-04  Kenichi Handa  <handa@m17n.org>
2113         * fontset.c (fontset_pattern_regexp): If '*' is preceded by '\',
2114         treat it as a literal character.
2116 2004-11-03  Kim F. Storm  <storm@cua.dk>
2118         * .gdbinit (ppt): New function.
2120 2004-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2122         * xterm.c (x_window_to_scroll_bar): Only call
2123         xg_get_scroll_id_for_window if toolkit scroll bars are used.
2125         * gtkutil.c (xg_get_file_with_chooser): Use GTK_STOCK_OK instead
2126         of save.
2128 2004-11-02  Andreas Schwab  <schwab@suse.de>
2130         * window.c (Fscroll_right): Fix last change.
2132 2004-11-02  Kim F. Storm  <storm@cua.dk>
2134         * Makefile.in (callproc.o): Depend on blockinput.h atimer.h systime.h.
2136 2004-11-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2138         * callproc.c (Fcall_process): Block input around vfork.
2140 2004-11-02  Kim F. Storm  <storm@cua.dk>
2142         * eval.c (Fcalled_interactively_p): Rename from Fcall_interactive_p.
2143         (syms_of_eval): Defsubr it.
2145 2004-11-02  Richard M. Stallman  <rms@gnu.org>
2147         * insdel.c (replace_range_2): New function.
2149         * casefiddle.c (casify_region): Handle changes in byte-length
2150         using replace_range_2.
2152         * emacs.c (USAGE3): Delete --horizontal-scroll-bars, -hb.
2154         * xdisp.c (back_to_previous_visible_line_start):
2155         Subtract 1 from pos when checking previous newline for invisibility.
2157         * window.c (window_scroll_pixel_based): Update preserve_y
2158         for header line if any.
2159         (Fscroll_left, Fscroll_right): Don't call interactive_p;
2160         use a new second argument instead.
2162         * eval.c (Fcall_interactive_p): New function.
2163         (interactive_p): Don't test INTERACTIVE here.
2164         (Finteractive_p): Doc fix.
2166         * eval.c (Feval): Abort if INPUT_BLOCKED_P.
2168 2004-11-02  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
2170         * w32fns.c (w32_font_match): Use fast_string_match_ignore_case for
2171         comparing font names.
2173 2004-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2175         * fileio.c (Fread_file_name): Pass Qt as fifth parameter to
2176         Fx_file_dialog if only directories should be read.
2178         * lisp.h: Fx_file_dialog takes 5 parameters.
2180         * xfns.c (Fx_file_dialog): Both Motif and GTK version:
2181         Add parameter only_dir_p.
2182         In Motif version, don't put DEFAULT_FILENAME in filter part of the
2183         dialog, just text field part.  Do not add DEFAULT_FILENAME
2184         to list of files if it isn't there.
2185         In GTK version, pass only_dir_p parameter to xg_get_file_name.
2187         * macfns.c (Fx_file_dialog): Add parameter only_dir_p.
2188         Check only_dir_p instead of comparing prompt to "Dired".  When using
2189         a save dialog, add option kNavDontConfirmReplacement, change title
2190         to "Enter name", change text for save button to "Ok".
2192         * w32fns.c (Fx_file_dialog): Add parameter only_dir_p.
2193         Check only_dir_p instead of comparing prompt to "Dired".
2195         * gtkutil.c (xg_get_file_with_chooser)
2196         (xg_get_file_with_selection): New functions, only defined ifdef
2197         HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW
2198         respectively.
2199         (xg_get_file_name): Add parameter only_dir_p.
2200         Call xg_get_file_with_chooser or xg_get_file_with_selection
2201         depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog.
2202         (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog.
2204         * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
2206         * config.in: Rebuild (added HAVE_GTK_FILE_*).
2208 2004-11-01  Kim F. Storm  <storm@cua.dk>
2210         * process.c (connect_wait_mask, num_pending_connects):
2211         Only declare and use them if NON_BLOCKING_CONNECT is defined.
2212         (init_process): Initialize them if NON_BLOCKING_CONNECT defined.
2213         (IF_NON_BLOCKING_CONNECT): New helper macro.
2214         (wait_reading_process_output): Only declare and use local vars
2215         Connecting and check_connect when NON_BLOCKING_CONNECT is defined.
2217 2004-11-01  Andy Petrusenco  <Igrek@star-sw.com>  (tiny change)
2219         * w32term.c (x_scroll_run): Delete region objects after use.
2221 2004-10-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2223         * xmenu.c: Add prototypes for forward function declarations.
2224         (popup_get_selection): Remove parameter do_timers, remove call to
2225         timer_check.
2226         (create_and_show_popup_menu, create_and_show_dialog):
2227         Remove parameter do_timers from call to popup_get_selection.
2229         * xdisp.c (update_tool_bar): Pass a copy of f->tool_bar_items to
2230         tool_bar_items and assign the result to f->tool_bar_items if
2231         not equal.  Move BLOCK/UNBLOCK_INPUT from around call to
2232         tool_bar_items to assignment of result.
2234         * atimer.c (alarm_signal_handler): Do not call set_alarm if
2235         pending_atmers is non-zero.
2237 2004-10-31  Kim F. Storm  <storm@cua.dk>
2239         * dispnew.c (margin_glyphs_to_reserve): Don't use ncols_scale_factor.
2241 2004-10-28  Will  <will@glozer.net>
2243         * macterm.c: allow user to assign key modifiers to the Mac Option
2244         key via a 'mac-option-modifier' variable.
2246 2004-10-28  Stefan Monnier  <monnier@iro.umontreal.ca>
2248         * xselect.c (Vx_lost_selection_functions, Vx_sent_selection_functions):
2249         Rename from Vx_lost_selection_hooks and Vx_sent_selection_hooks.
2250         (x_handle_selection_request, x_handle_selection_clear)
2251         (x_clear_frame_selections, syms_of_xselect): Adjust accordingly.
2253 2004-10-28  Richard M. Stallman  <rms@gnu.org>
2255         * w32fns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2257         * xfns.c (Fx_server_vendor, Fx_server_version): Doc fixes.
2259 2004-10-27  Stefan Monnier  <monnier@iro.umontreal.ca>
2261         * syntax.c (scan_sexps_forward): Give precedence to a 2-char
2262         comment-starter over a 1-char one.
2264 2004-10-27  Richard M. Stallman  <rms@gnu.org>
2266         * xdisp.c (get_next_display_element): In mode lines,
2267         treat newline and tab like other control characters.
2269         * editfns.c (Fmessage): Doc fix.
2271         * indent.c (vmotion): When moving up, check the newline before.
2272         Make prevline an int, not a Lisp_Object.
2274 2004-10-27  Kim F. Storm  <storm@cua.dk>
2276         * editfns.c (Fformat): Allocate discarded table with SAFE_ALLOCA.
2277         Only allocate info and discarded tables once.
2279         * lisp.h (USE_SAFE_ALLOCA): Add and init sa_must_free integer.
2280         (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
2281         (SAFE_FREE): Test it to determine if we need to unwind to free.
2282         Remove size arg.  All users changed.
2283         (SAFE_FREE_LISP) Remove.  All users changed to use SAFE_FREE.
2285 2004-10-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2287         * gtkutil.c: Put empty line between comment and function body.
2288         (xg_destroy_widgets): Rename from remove_from_container.
2289         Just destroy all widgets in list.  Argument wcont removed.
2290         (xg_update_menubar, xg_update_submenu): Call xg_destroy_widgets
2291         instead of remove_from_container.
2292         (xg_display_close, xg_create_tool_bar, update_frame_tool_bar)
2293         (free_frame_tool_bar): Add comment.
2295         * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAME
2296         is not NULL before strcmp.
2298 2004-10-26  Kim F. Storm  <storm@cua.dk>
2300         * callint.c (Fcall_interactively): Add 'U' code to get the
2301         up-event discarded by a previous 'k' or 'K' argument.
2303 2004-10-26  David Kastrup  <dak@gnu.org>
2305         * buffer.c (syms_of_buffer): Fix a few typos.
2307 2004-10-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2309         * xsmfns.c: Put empty line between comment and function body.
2310         Use two spaces before comment end.
2312 2004-10-25  Kenichi Handa  <handa@m17n.org>
2314         * fontset.c (fontset_pattern_regexp): Optimize for the case that
2315         PATTERN is full XLFD.
2317 2004-10-24  Kenichi Handa  <handa@m17n.org>
2319         * regex.h (enum reg_errcode_t): New value REG_ERANGEX.
2321         * regex.c (re_error_msgid): Add an entry for REG_ERANGEX.
2322         (regex_compile): Return REG_ERANGEX if appropriate.
2324 2004-10-22  Kenichi Handa  <handa@m17n.org>
2326         * editfns.c (Ftranslate_region_internal): New function.
2327         (syms_of_editfns): Defsubr it.
2329 2004-10-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2331         * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.
2333 2004-10-21  K\e,Aa\e(Broly L\e$,1 q\e(Brentey  <lorentey@elte.hu>
2335         * xterm.h (x_output): New member `xic_base_fontname'.
2336         (FRAME_XIC_BASE_FONTNAME): New macro.
2337         (xic_free_xfontset): Declare.
2339         * xfns.c (xic_create_xfontset): Share fontsets between frames
2340         based on base_fontname.
2341         (xic_free_xfontset): New function.
2342         (free_frame_xic): Use it.
2343         (xic_set_xfontset): Ditto.
2345         * xterm.c (xim_destroy_callback): Ditto.
2348 2004-10-20  B. Anyos  <banyos@freemail.hu>  (tiny change)
2350         * w32term.c (x_draw_glyph_string): Use overline_color for overlines.
2352 2004-10-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2354         * xterm.h (XSync): If USE_GTK, define XSync as process_all and then
2355         XSync.
2357         * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):
2358         New variables and constant.
2359         (main): Calculate heap_bss_diff.  If we are dumping and the
2360         heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32
2361         and exec ourself again.
2362         (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF
2363         print a warning.
2365         * lastfile.c: Make my_endbss and my_endbss_static available on all
2366         platforms.
2368         * Makefile.in (RUN_TEMACS): Remove @SETARCH@.
2369         * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
2371 2004-10-19  Luc Teirlinck  <teirllm@auburn.edu>
2373         * data.c (Flocal_variable_if_set_p): Doc fix.
2375 2004-10-19  Jason Rumney  <jasonr@gnu.org>
2377         * w32.c (init_environment): Set emacs_dir correctly when running
2378         emacs from the build directory.
2380 2004-10-19  Richard M. Stallman  <rms@gnu.org>
2382         * editfns.c (Fdelete_and_extract_region):
2383         If region is empty, return null string.
2385 2004-10-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2387         * gtkutil.h (xg_update_scrollbar_pos): Remove arguments real_left
2388         and canon_width.
2389         (xg_frame_cleared): Remove.
2391         * gtkutil.c (xg_frame_cleared, xg_fixed_handle_expose)
2392         (xg_find_top_left_in_fixed): Remove.
2393         (xg_create_scroll_bar): Put an event box widget between
2394         the scroll bar widget and the edit widget.
2395         (xg_show_scroll_bar): Show the parent widget (the event box).
2396         (xg_remove_scroll_bar): Destroy parent (the event box) also.
2397         (xg_update_scrollbar_pos): Remove arguments real_left and canon_width.
2398         Move the parent (the event box) widget inside the fixed widget.
2399         Move window clear to xterm.c.
2401         * gtkutil.h (xg_frame_cleared): Remove.
2403         * xterm.c (x_clear_frame): Remove call to xg_frame_cleared
2404         (x_scroll_bar_create, XTset_vertical_scroll_bar):
2405         Remove arguments left and width to xg_update_scrollbar_pos.
2406         (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
2408 2004-10-19  Kenichi Handa  <handa@m17n.org>
2410         * xdisp.c (display_mode_element): Fix display of wide chars.
2412 2004-10-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2414         * gtkutil.c (xg_update_scrollbar_pos): Change XClearWindow to
2415         gdk_window_clear and move gdk_window_process_all_updates after
2416         clear so events are sent to the X server in correct order.
2418 2004-10-18  Kenichi Handa  <handa@m17n.org>
2420         * fontset.c (fs_load_font): Use fast_string_match_ignore_case for
2421         comparing font names.
2422         (fs_query_fontset): Use fast_string_match for comparing fontset names.
2423         (list_fontsets): Likewise.
2425         * search.c (fast_string_match_ignore_case): New function.
2427         * lisp.h (fast_string_match_ignore_case): Extern it.
2429 2004-10-17  Kim F. Storm  <storm@cua.dk>
2431         * xdisp.c (overlay_arrow_at_row): Return overlay string rather
2432         than bitmap if there is not left fringe.
2433         (get_overlay_arrow_glyph_row): Also used on windows system.
2434         (display_line): Display overlay string if no left fringe.
2436 2004-10-16  Jason Rumney  <jasonr@gnu.org>
2438         * w32fns.c (w32_font_match): Encode font name being matched.
2440 2004-10-16  Richard M. Stallman  <rms@gnu.org>
2442         * window.c (Fspecial_display_p): Doc fix.
2444 2004-10-15  Stefan Monnier  <monnier@iro.umontreal.ca>
2446         * doc.c (Fsubstitute_command_keys): Fix remap-handling.
2447         Don't ignore menus, because where-is-internal already does it for us.
2449 2004-10-15  Kim F. Storm  <storm@cua.dk>
2451         * xdisp.c (redisplay_window): Only update fringes and vertical
2452         border on window frames.
2454 2004-10-14  Andreas Schwab  <schwab@suse.de>
2456         * m/ia64.h (DATA_SEG_BITS): Don't define.
2458 2004-10-14  Kim F. Storm  <storm@cua.dk>
2460         * xterm.h: Include Xutil.h after keysym.h to work around bug
2461         in some X versions.
2463 2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2465         * fns.c (map_char_table): Add missing gcpros.
2467 2004-10-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2469         * keymap.c (get_keymap): An autoload form is not a keymap.
2471         * textprop.c (syms_of_textprop): Make `syntax-table' nonsticky.
2473 2004-10-13  Kim F. Storm  <storm@cua.dk>
2475         * callproc.c (Fcall_process): Simplify handling of display arg.
2476         Resume `display_on_the_fly' once a coding system is determined.
2478         * xdisp.c (redisplay_preserve_echo_area): Fix last change.
2480 2004-10-12  Kim F. Storm  <storm@cua.dk>
2482         * xdisp.c (redisplay_preserve_echo_area): Flush display in case
2483         caller, such as call-process, is not going to poll for input.
2484         (calc_line_height_property): Handle case where it->object is nil.
2486         * xterm.c (x_redisplay_interface): Fix flush_display_optional.
2488 2004-10-12  Kenichi Handa  <handa@m17n.org>
2490         * xdisp.c (get_next_display_element):
2491         If unibyte_display_via_language_environment is zero, display 8-bit
2492         chars in octal in unibyte buffer.
2494 2004-10-12  Kim F. Storm  <storm@cua.dk>
2496         * doc.c (Fsubstitute_command_keys): Ignore remappings unless there
2497         are no ordinary bindings.
2499 2004-10-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2501         * xfns.c (syms_of_xfns): Defsubr x-file-dialog for GTK also.
2503 2004-10-10  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2505         * macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindow.
2506         (x_lower_frame): Add BLOCK_INPUT around SendBehind.
2507         (make_mac_frame): Add BLOCK_INPUT around the making of a
2508         terminal frame.
2509         (mac_initialize): Add BLOCK_INPUT around carbon initialization.
2510         * macgui.h (mktime): Use emacs_mktime.
2511         * macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code.
2512         Make a cancel file-open dialog be like C-g.
2513         * mac.c (mktime): Use emacs_mktime.
2514         (Fdo_applescript): Add BLOCK_INPUT around do_applescript.
2515         (Fmac_paste_function): Add better error handling for carbon cut/paste.
2517 2004-10-10  Kim F. Storm  <storm@cua.dk>
2519         * keyboard.c (timer_resume_idle): New function to resume idle
2520         timer without resetting timers on the idle list.
2521         (read_char): Use timer_resume_idle. Remove local var last_idle_start.
2522         (timer_start_idle, timer_stop_idle): Declare static.
2523         (read_key_sequence): Use timer_resume_idle instead of timer_start_idle.
2525         * keyboard.h (timer_start_idle, timer_stop_idle): Remove prototypes.
2527 2004-10-08  Steven Tamm  <steventamm@mac.com>
2529         * config.in (HAVE_MALLOC_MALLOC_H): Regenerate.
2530         * macterm.c (mac_check_for_quit_char): Remove warning for using
2531         NULL where 0 should be used.
2532         * unexmacosx.c: Use malloc/malloc.h on Tiger instead of
2533         objc/malloc.h
2534         * mac.c: Include time.h for Tiger compatibility.
2536 2004-10-07  Kim F. Storm  <storm@cua.dk>
2538         * xdisp.c (redisplay_window): Fix flicker on vertical line between
2539         windows.  Update vertical line after drawing window fringes, but
2540         only if actually drawing any bitmaps--or there is no fringe.
2542         * xterm.c (x_update_window_end): Likewise.
2543         * macterm.c (x_update_window_end): Likewise.
2544         * w32term.c (x_update_window_end): Likewise.
2546         * fringe.c (draw_window_fringes): Return value now indicates if
2547         any fringe bitmaps were redrawn (or there are no fringes).
2549         * dispextern.h (draw_window_fringes): Update prototype.
2551 2004-10-06  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2553         * macfns.c (mac_get_window_bounds): Add extern.
2554         (x_real_positions): Use mac_get_window_bounds.
2556         * macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
2557         xmenu.c (YAILOM).
2559         * macterm.c [!MAC_OSX]: Include Windows.h.
2560         (front_emacs_window): Rename from mac_front_window.  All uses
2561         changed.  Return the frontmost non-tooltip emacs window.
2562         (mac_get_window_bounds): New function.
2563         (x_calc_absolute_position): Use the difference of width and height
2564         between the inner and outer window.
2565         (x_set_offset): Specify window position by the coordinae of the
2566         outer window.  Adjust the position if the title bar is completely
2567         outside the screen.
2568         (app_is_suspended, app_sleep_time): Remove unused variables.
2569         (do_app_resume, do_app_suspend): Remove their contents because
2570         window-activate/deactivate events will do the job.
2571         (do_zoom_window): Remove unused variables.  Make compliant to the
2572         standard way of zooming.  Set f->left_pos and f->top_pos.
2573         (XTread_socket): Don't use argument `expected'.  Don't use
2574         FrontWindow to determine the clicked window.  Exclude unprocessed
2575         mouseUp cases in the early stage.  Add parentheses to fix operator
2576         precedence.
2577         (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
2579 2004-10-05  Jan Dj\e,Ad\e(Brv.  <jan.h.d@swipnet.se>
2581         * config.in: Regenerate.
2583         * Makefile.in (RUN_TEMACS): Check HAVE_RANDOM_HEAPSTART instead of
2584         HAVE_EXECSHIELD.
2586 2004-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2588         * xterm.c (x_find_modifier_meanings): Ignore any Super or Hyper for
2589         a row if Alt or Meta has been found for that row.  Also stop scanning
2590         for Keysyms for that row.
2592 2004-10-04  Kim F. Storm  <storm@cua.dk>
2594         * fringe.c (Ffringe_bitmaps_at_pos): Change return value from cons
2595         to list.  Include overlay arrow bitmap in return value.
2597         * xterm.c (XTset_vertical_scroll_bar): Improve handling of scroll
2598         bars with fractional column width.  If scroll bar separates two
2599         windows, move it towards the window it belongs to.  Only update
2600         the padding area below the scroll bar widget when necessary,
2601         i.e. when scroll bar widget is created, moved, or resized.
2603         * xdisp.c (define_frame_cursor1): Do not change frame cursor
2604         while tracking/dragging mouse.
2605         (x_draw_vertical_border): Do not draw line if frame has scroll bars.
2607         * window.c (coordinates_in_window): Relax check for cursor
2608         on vertial border between mode lines.
2609         (Fset_window_fringes): Do not allow negative widths.
2610         (Fset_window_scroll_bars): Likewise.
2612         * .gdbinit (pp): Shorthand for p ARG + pr.
2613         (ff): New command: flush frame updates (X only).
2615 2004-10-03  Michael Albinus  <michael.albinus@gmx.de>
2617         * fileio.c (auto_save_1) Call Ffile_modes for remote files.
2619 2004-09-30  Kenichi Handa  <handa@m17n.org>
2621         * process.c (send_process): Free composition data.
2623         * fileio.c (Finsert_file_contents): Free composition data.
2625         * coding.c (code_convert_region): Don't skip ASCIIs if there are
2626         compositions to encode.
2627         (encode_coding_string): Likewise.  Free composition data.
2629 2004-09-30  Florian Weimer <fw@deneb.enyo.de>
2631         * coding.c (code_convert_region): Free composition data.
2633 2004-09-29  Kim F. Storm  <storm@cua.dk>
2635         * fringe.c: Remove limit on number of bitmaps.
2636         (fringe_bitmaps, fringe_faces): Change to pointers.
2637         (max_fringe_bitmaps): New var.
2638         (Fdefine_fringe_bitmap): Expand fringe_bitmaps and fringe_faces.
2639         (init_fringe): Allocate fringe_bitmaps and fringe_faces.
2641         * dispextern.h (FRINGE_ID_BITS): Increase to 16 bits (64K bitmaps).
2642         (struct glyph_row): Reorder fringe_bitmap related fields.
2643         (struct it): Likewise.
2645         * w32term.c (fringe_bmp): Change to pointer.
2646         (max_fringe_bmp): New var.
2647         (w32_define_fringe_bitmap): Expand fringe_bmp.
2648         (w32_draw_fringe_bitmap): Check max_fringe_bmp.
2649         (w32_destroy_fringe_bitmap): Likewise.
2651 2004-09-29  Kim F. Storm  <storm@cua.dk>
2653         * fringe.c: Simplify last change.
2654         (lookup_fringe_bitmap): New function.
2655         (valid_fringe_bitmap_p, resolve_fringe_bitmap): Remove.
2656         (Fdestroy_fringe_bitmap): Use lookup_fringe_bitmap.
2657         Keep standard bitmaps in Vfringe_bitmaps.
2658         (Fdefine_fringe_bitmap): Use lookup_fringe_bitmap.
2659         (Fset_fringe_bitmap_face): Likewise.
2661         * dispextern.h (lookup_fringe_bitmap): Add prototype.
2662         (valid_fringe_bitmap_p): Remove prototype.
2664         * xdisp.c (handle_single_display_prop): Use lookup_fringe_bitmap.
2666 2004-09-29  Kim F. Storm  <storm@cua.dk>
2668         * fringe.c (destroy_fringe_bitmap, init_fringe_bitmap)
2669         (w32_init_fringe, w32_reset_fringes): Fix bootstrap (NULL rif).
2671         * dispextern.h (valid_fringe_bitmap_p): Fix prototype.
2673         * fringe.c (Vfringe_bitmaps): New variable.
2674         (syms_of_fringe): DEFVAR_LISP it.
2675         (valid_fringe_bitmap_p): Rename from valid_fringe_bitmap_id_p.
2676         Change arg to Lisp_Object and fail if not an integer.
2677         (get_fringe_bitmap_name, resolve_fringe_bitmap)
2678         (destroy_fringe_bitmap): New functions.
2679         (Fdestroy_fringe_bitmap): Change arg to bitmap symbol.
2680         Use destroy_fringe_bitmap.  Remove symbol from Vfringe_bitmaps and
2681         clear its fringe property.
2682         (init_fringe_bitmap): Use destroy_fringe_bitmap instead of
2683         Fdestroy_fringe_bitmap.
2684         (Fdefine_fringe_bitmap): Add BITMAP arg specifying new or existing
2685         bitmap symbol; remove WHICH arg.  Add symbol to Vfringe_bitmaps
2686         and set fringe property.  Signal error if no free slots.
2687         (Fset_fringe_bitmap_face): Change arg to bitmap symbol.
2688         (Ffringe_bitmaps_at_pos): Return bitmap symbols instead of numbers.
2690         * xdisp.c (handle_single_display_prop): Fringe bitmaps are now
2691         symbols with a fringe property.
2693 2004-09-27  Kim F. Storm  <storm@cua.dk>
2695         * buffer.c (syms_of_buffer) <indicate-buffer-boundaries>:
2696         Doc fix.  Format may now be a symbol or alist, not a cons.
2698         * fringe.c (update_window_fringes): Handle new formats of
2699         indicate-buffer-boundaries (symbol or alist).  No longer
2700         allow a simple cons.
2701         (Ffringe_bitmaps_at_pos): Use nil value for no bitmap.
2703 2004-09-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2705         * config.in: Rebuild.
2707 2004-09-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2709         * config.in: Rebuild.
2711         * Makefile.in: Run setarch i386 ./temacs if exec-shield  is present.
2713 2004-09-18  Stefan Monnier  <monnier@iro.umontreal.ca>
2715         * xterm.c (x_term_init): Work around a bug in some X servers.
2717 2004-09-18  Richard M. Stallman  <rms@gnu.org>
2719         * buffer.c (syms_of_buffer) <default-major-mode>: Doc fix.
2721         * xdisp.c (try_window_reusing_current_matrix):
2722         Handle the case where we reach the old displayed text,
2723         out of sync with the old line boundary.
2725 2004-09-14  Stefan Monnier  <monnier@iro.umontreal.ca>
2727         * fileio.c (Finsert_file_contents): Fix case of replacement in a
2728         narrowed buffer.
2730 2004-09-14  Kim F. Storm  <storm@cua.dk>
2732         * puresize.h (PURESIZE_RATIO): Define based on BITS_PER_EMACS_INT.
2734         * xfaces.c (Qface_no_inherit): New var.
2735         (syms_of_xfaces): Intern and staticpro it.
2736         (Finternal_make_lisp_face, Finternal_set_lisp_face_attribute)
2737         (Finternal_copy_lisp_face, update_face_from_frame_parameter):
2738         Don't increment face_change_count when face has non-nil
2739         face-no-inherit property.
2741 2004-09-13  Stefan Monnier  <monnier@iro.umontreal.ca>
2743         * bytecode.c (BYTE_CODE_QUIT): Add missing AFTER_POTENTIAL_GC.
2744         (Fbyte_code): Remove dead code after `wrong_type_argument'.
2746         * alloc.c (Fgarbage_collect): Mark keyboards, gtk data, and specpdl
2747         before doing the mark_stack_check_gcpros since they're not on the stack.
2749 2004-09-12  Kim F. Storm  <storm@cua.dk>
2751         * editfns.c (Fformat): Handle format strings with multiple text
2752         properties.  Reverse text property list from the format string,
2753         so the positions are in increasing order.
2755 2004-09-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2757         * xselect.c (x_reply_selection_request): XSync and UNBLOCK before
2758         x_uncatch_errors so that possible protocol errors are delivered.
2760 2004-09-10  Eli Zaretskii  <eliz@gnu.org>
2762         * Makefile.in (msdos.o): Depend on buffer.h, commands.h, and
2763         blockinput.h.
2764         (dosfns.o): Depend on blockinput.h, window.h, dispextern.h,
2765         charset.h, and coding.h
2766         (w16select.o): Depend on buffer.h, charset.h, coding.h, and composite.h.
2767         (term.o): Depend on window.h and keymap.h.
2768         (abbrev.o): Depend on syntax.h.
2769         (callint.o): Depend on keymap.h.
2770         (casefiddle.o): Depend on charset.h and keymap.h.
2771         (category.o): Depend on keymap.h.
2772         (coding.o): Depend on dispextern.h.
2773         (cmds.o): Depend on keyboard.h and keymap.h.
2774         (dispnew.o): Depend on indent.h and intervals.h.
2775         (doc.o): Depend on keymap.h.
2776         (editfns.o): Depend on frame.h.
2777         (emacs.o): Depend on dispextern.h.
2778         (fileio.o): Don't depend on ccl.h.
2779         (filelock.o): Depend on charset.h and coding.h.
2780         (frame.o): Depend on w32term.h and macterm.h.
2781         (insdel.o): Depend on region-cache.h.
2782         (keyboard.o): Depend on keymap.h, w32term.h, and macterm.h.
2783         (minibuf.o): Depend on $(INTERVALS_SRC) and keymap.h.
2784         (search.o): Depend on $(INTERVALS_SRC).
2785         (syntax.o): Depend on keymap.h, regex.h, and $(INTERVALS_SRC).
2786         (window.o): Depend on keymap.h, blockinput.h, $(INTERVALS_SRC),
2787         xterm.h, w32term.h, and macterm.h.
2788         (xdisp.o): Depend on keyboard.h, $(INTERVALS_SRC), xterm.h,
2789         w32term.h, and macterm.h.
2790         (xfaces.o): Depend on keyboard.h, $(INTERVALS_SRC),
2791         region-cache.h, xterm.h, w32term.h, and macterm.h.
2792         (bytecode.o): Depend on dispextern.h, frame.h, and xterm.h.
2793         (data.o): Depend on frame.h.
2794         (fns.o): Depend on keymap.h, xterm.h, and blockinput.h.
2795         (print.o): Depend on termchar.h and $(INTERVALS_SRC).
2796         (lread.o): Depend on $(INTERVALS_SRC), termhooks.h, and coding.h.
2797         (intervals.o): Depend on keymap.h.
2799         * msdos.c (msdos_set_cursor_shape, IT_display_cursor):
2800         Add debugging print-out to termscript.
2802 2004-09-09  Richard M. Stallman  <rms@gnu.org>
2804         * xdisp.c (decode_mode_spec): Use current buffer for most purposes.
2806 2004-09-08  Richard M. Stallman  <rms@gnu.org>
2808         * window.c (Fset_window_buffer): Doc fix.
2810         * xdisp.c (Fformat_mode_line): New arg BUFFER says which buffer to use.
2812 2004-09-08  Dan Nicolaescu  <dann@ics.uci.edu>
2814         * minibuf.c (history_delete_duplicates): New variable.
2815         (read_minibuf): Use it.
2816         (syms_of_minibuf): Create the corresponding lisp variable.
2818 2004-09-08  Kim F. Storm  <storm@cua.dk>
2820         * xdisp.c (set_cursor_from_row): Also look at 'cursor' property in
2821         overlay just before point.
2823 2004-09-07  Luc Teirlinck  <teirllm@auburn.edu>
2825         * buffer.h (struct buffer): Add auto_save_file_format field.
2826         * buffer.c (reset_buffer, init_buffer_once):
2827         Handle auto_save_file_format field.
2828         (syms_of_buffer): Add DEFVAR_PER_BUFFER for
2829         `buffer-auto-save-file-format'.
2830         * fileio.c: Delete declaration for removed Vauto_save_file_format.
2831         (build_annotations): Adapt to replacement of
2832         `auto-save-file-format' with the new buffer-local variable
2833         `buffer-auto-save-file-format'.
2834         (syms_of_fileio): Delete DEFVAR_LISP for auto-save-file-format.
2836 2004-09-07  Jason Rumney  <jasonr@gnu.org>
2838         * w32term.h (AppendMenuW_Proc): Move declaration from w32menu.c.
2840         * w32fns.c (w32_wnd_proc) [WM_MEASUREITEM, WM_DRAWITEM]:
2841         Handle Unicode menu titles.
2843 2004-09-07  Kim F. Storm  <storm@cua.dk>
2845         * xdisp.c (set_cursor_from_row): Fix last change.  Only use 'cursor'
2846         property from text property or overlay strings at point.
2848 2004-09-07  Stefan Monnier  <monnier@iro.umontreal.ca>
2850         * xmenu.c (update_submenu_strings): YAILOM.
2851         (set_frame_menubar): Make sure last_i is initialized.
2853 2004-09-03  Jason Rumney  <jasonr@gnu.org>
2855         * w32menu.c (_widget_value): Add lname and lkey.
2856         (digest_single_submenu): Set lname and lkey in widget_value
2857         instead of name and key.
2858         (update_submenu_strings): New function.
2859         (set_frame_menubar): Remove call to inhibit_garbage_collection,
2860         call update_submenu_strings.
2862         * w32menu.c (globals_of_w32menu): Check for Unicode API.
2863         (digest_single_submenu, w32_menu_show): Encode menu strings as
2864         UTF-8 if Unicode API is available.
2865         (utf8to16): New function.
2866         (add_menu_item): Use it when calling Unicode API.
2868 2004-09-03  Kim F. Storm  <storm@cua.dk>
2870         * xdisp.c (set_cursor_from_row): Look for non-nil `cursor' property
2871         in overlay or text-property strings; set cursor on corresponding
2872         glyph rather than at end of the string.
2874 2004-09-02  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2876         * macfns.c (x_real_positions): Save the current window port and
2877         set a new one before obtaining the global coordinate.
2878         Use FRAME_MAC_WINDOW.
2879         (x_set_name, x_set_title): Encode title to UTF8.
2880         Use SetWindowTitleWithCFString.
2881         (Fx_server_version): Get correct OS version.
2883         * macmenu.c (add_menu_item): Remove unused variable `i'.
2884         Don't let separator items destroy refence constants of other menu items.
2886         * macterm.c (x_update_end): Move SetPortWindowPort to inside
2887         BLOCK_INPUT.
2888         (x_set_offset): Use FRAME_MAC_WINDOW.
2890         * xdisp.c (note_mouse_highlight): Set the mouse pointer shape to
2891         nontext_cursor if it is on a scroll bar.
2893         * s/darwin.h (LIBS_CARBON): New define to specify libraries for
2894         Carbon support.
2895         (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++.
2896         Use LIBS_CARBON.
2898 2004-09-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2900         * xfns.c (x_set_name_internal): New function.  Check if we shall call
2901         xfree before ENCODE_UTF_8.
2902         (x_set_name, x_set_title): Call x_set_name_internal.
2904 2004-08-31  NAKAMURA Toshikazu  <nr-tkz@nifty.com>  (tiny change)
2906         * w32fns.c (w32_load_font): If a BDF font is already loaded, do not
2907         reload it.
2909 2004-08-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2911         * macmenu.c (_widget_value): Add lname and lkey.
2912         (single_submenu): Set lname and lkey in widget_value
2913         instead of name and key.
2914         (update_submenu_strings): New function.
2915         (set_frame_menubar): Remove call to inhibit_garbage_collection,
2916         call update_submenu_strings.
2918         * xmenu.c (digest_single_submenu): Set lname and lkey in widget_value
2919         instead of name and key.
2920         (update_submenu_strings): New function.
2921         (set_frame_menubar): Remove call to inhibit_garbage_collection,
2922         call update_submenu_strings.
2924         * gtkutil.h (_widget_value): Added lname and lkey.
2926 2004-08-30  Steven Tamm  <steventamm@mac.com>
2928         * macmenu.c (mac_menu_show): Remove shadowing of menu variable
2929         by using different names for inner loop variables.
2931 2004-08-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2933         * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
2934         from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
2936         * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
2937         tool bar items is 0.
2939 2004-08-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
2941         * macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
2942         strings in menu items.
2943         (single_submenu): Use ENCODE_MENU_STRING
2944         (mac_menu_show): Use ENCODE_MENU_STRING.  Reset grabbed because
2945         button release isn't passed to event loop
2946         (add_menu_item): Use SetMenuItemWithCFString
2948 2004-08-26  Steven Tamm  <steventamm@mac.com>
2950         * fileio.c (Fread_file_name): Call x_file_dialog on carbon on
2951         tool-bar/menu click
2952         * macfns.c (Fx_file_dialog): Implemented using NavServices
2954 2004-08-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2956         * xterm.c (x_catch_errors_unwind): Do not XSync if display has closed.
2958         * xfns.c (x_window_to_frame, x_any_window_to_frame)
2959         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2960         (x_top_window_to_frame): Return 0 if wdesc is None.
2962 2004-08-22  Richard M. Stallman  <rms@gnu.org>
2964         * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS,
2965         HAVE_TERMIOS]: If there's no char for this signal, drop through
2966         and use system calls.
2968         * bytecode.c (Fbyte_code) <unwind-protect>: Cannot GC.
2970 2004-08-20  Kim F. Storm  <storm@cua.dk>
2972         * process.c (wait_reading_process_output): Rename from
2973         wait_reading_process_input.  All uses changed.
2974         (wait_reading_process_output_1): Rename from
2975         wait_reading_process_input_1.  All uses changed.
2977         * dispnew.c (Fsleep_for): Remove obsolete code.
2979 2004-08-20  Kenichi Handa  <handa@m17n.org>
2981         * syntax.c (skip_chars): Fix for unibyte case.
2983 2004-08-19  Stefan Monnier  <monnier@iro.umontreal.ca>
2985         * syntax.c (char_quoted): Mixup byte/char pos.
2986         (back_comment): Fixup globals in all cases.
2988 2004-08-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2990         * xfns.c (x_set_name, x_set_title): Encode title to UTF8 before
2991         passing it to gtk_window_set_title.
2993 2004-08-19  Kim F. Storm  <storm@cua.dk>
2995         * process.c (wait_reading_process_input): Clean up.
2996         Add wait_for_cell, wait_proc, and just_wait_proc args
2997         to avoid overloading `read_kbd' and `do_display' args.
2998         Change read_kbd arg to int.  All callers changed.
3000         * process.c (process_send_signal): Use CDISABLE.
3002         * sysdep.c (child_setup_tty, init_sys_modes): Use CDISABLE.
3004 2004-08-18  Kim F. Storm  <storm@cua.dk>
3006         * process.c (Faccept_process_output): Add arg JUST-THIS-ONE;
3007         forward to wait_reading_process_input via DO_DISPLAY arg.
3008         (wait_reading_process_input): If DO_DISPLAY < 0 for a process
3009         object, only process output from that process; also inhibit
3010         running timers if DO_DISPLAY==-2.
3012 2004-08-17  Kim F. Storm  <storm@cua.dk>
3014         * process.c (process_send_signal): Fix last change--use
3015         _POSIX_VDISABLE instead of CVDISABLE when available.
3017 2004-08-16  Richard M. Stallman  <rms@gnu.org>
3019         * sysdep.c (child_setup_tty) [SIGNALS_VIA_CHARACTERS]:
3020         Set VQUIT and VINTR chars to the standard ones if they are unset.
3021         [AIX]: Don't do that here.  And don't force VINTR to standard
3022         when SIGNALS_VIA_CHARACTERS.
3024         * process.c (process_send_signal)
3025         [SIGNALS_VIA_CHARACTERS, HAVE_TERMIOS]: Clean up.
3026         Do nothing if the character is CVDISABLE.
3028         * xfaces.c (merge_face_ref): Specifying `unspecified' is a no-op.
3030         * intervals.c (move_if_not_intangible):
3031         Force POSITION to be between BEGV and ZV.
3033 2004-08-14  John Paul Wallington  <jpw@gnu.org>
3035         * buffer.c (Frestore_buffer_modified_p): Doc fix.
3037         * fileio.c (Fread_file_name): Doc fix.
3039         * minibuf.c (syms_of_minibuf) <completion-ignore-case>: Doc fix.
3041 2004-08-09  Luc Teirlinck  <teirllm@auburn.edu>
3043         * keymap.c (Fmake_keymap, Fmap_keymap, Fwhere_is_internal): Doc fixes.
3045 2004-08-08  Luc Teirlinck  <teirllm@auburn.edu>
3047         * keyboard.c: Declare Qdisabled_command_function instead of
3048         Qdisabled_command_hook.
3049         (Fcommand_execute): Use Qdisabled_command_function instead of
3050         Qdisabled_command_hook.
3051         (syms_of_keyboard): Ditto.
3053 2004-08-07  Luc Teirlinck  <teirllm@auburn.edu>
3055         * keymap.c (Flocal_key_binding, Fglobal_key_binding)
3056         (syms_of_keymap) <key-translation-map>: Doc fixes.
3058 2004-08-07  Stefan Monnier  <monnier@iro.umontreal.ca>
3060         * window.c (window_list_1): YAILOM.
3062         * fileio.c (make_temp_name): Handle multibyte prefixes.
3064 2004-08-06  Luc Teirlinck  <teirllm@auburn.edu>
3066         * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
3067         Doc fix.
3069 2004-08-03  Kenichi Handa  <handa@m17n.org>
3071         * coding.c (decode_coding_string): Adjust coding->consumed, and
3072         etc. with shrinked_bytes.
3074 2004-08-03  Kim F. Storm  <storm@cua.dk>
3076         * indent.c (compute_motion): Fix check for full width window
3077         in non-window case.  Do not count left truncation glyph on
3078         window systems.
3080 2004-08-02  Luc Teirlinck  <teirllm@auburn.edu>
3082         * data.c (Finteractive_form): Doc fix.
3084 2004-08-02  Kim F. Storm  <storm@cua.dk>
3086         * indent.c (compute_motion): Use actual window width if WIDTH is -1,
3087         properly accounting for continuation glyph on non-window systems.
3088         (Fcompute_motion): Use actual window width if WIDTH is nil, and
3089         actual window width/height if TOPOS is nil, properly accounting for
3090         continuation glyphs on non-window systems, and optional header lines.
3091         (vmotion): Let compute_motion calculate actual window width.
3093         * window.c (window_scroll_line_based): Let compute_motion
3094         calculate actual window width.
3096 2004-08-02  Kim F. Storm  <storm@cua.dk>
3098         * process.c (read_process_output): Use whole read buffer.
3099         Don't trigger adaptive read buffering on errors.
3101 2004-07-31  Luc Teirlinck  <teirllm@auburn.edu>
3103         * keymap.c (Fset_keymap_parent, Fdefine_prefix_command): Doc fixes.
3105         * keyboard.c (syms_of_keyboard) <disable-point-adjustment>:  Doc fix.
3107         * callint.c (Fcall_interactively): Doc fix.
3109 2004-07-30  Richard M. Stallman  <rms@gnu.org>
3111         * abbrev.c (Fexpand_abbrev): Undo previous change.
3113 2004-07-30  Kim F. Storm  <storm@cua.dk>
3115         * editfns.c (Fformat): Allocate extra (dummy) element in info.
3117 2004-07-28  Luc Teirlinck  <teirllm@auburn.edu>
3119         * eval.c (Fdefvar, Fdefconst): Doc fixes.
3121 2004-07-27  Kim F. Storm  <storm@cua.dk>
3123         * xdisp.c (move_it_in_display_line_to): Check BUFFER_POS_REACHED_P after
3124         we have ensured that the glyph fits on the current line (or returned
3125         MOVE_LINE_CONTINUED otherwise).
3127 2004-07-26  Kim F. Storm  <storm@cua.dk>
3129         * xdisp.c (move_it_in_display_line_to): If overflow-newline-into-fringe
3130         is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV
3131         if target position is at end of display line but char is not a newline.
3133 2004-07-25  Richard M. Stallman  <rms@gnu.org>
3135         * window.c (coordinates_in_window): Return ON_SCROLL_BAR
3136         instead of ON_VERTICAL_BORDER, when on scroll bar.
3137         (Fcoordinates_in_window_p): Handle ON_SCROLL_BAR--return nil.
3139         * dispextern.h (enum window_part): Add ON_SCROLL_BAR.
3141         * window.c (Fcoordinates_in_window_p):
3142         Take account of FRAME_INTERNAL_BORDER_WIDTH.
3144         * alloc.c (check_cons_list): New function (contents commented out).
3146 2004-07-24  Luc Teirlinck  <teirllm@auburn.edu>
3148         * xfaces.c (Fcolor_supported_p): Doc fix.
3150         * frame.c (Fselect_frame, Fset_frame_selected_window)
3151         (Fframe_visible_p, Fraise_frame): Doc fixes.
3153 2004-07-24  Richard M. Stallman  <rms@gnu.org>
3155         * keyboard.h (not_single_kboard_state): Declare.
3157         * fileio.c (Fwrite_region): Doc fix.
3159         * window.c (Fwindow_at): Take account of FRAME_INTERNAL_BORDER_WIDTH.
3161         * abbrev.c (Fexpand_abbrev): Run Qpre_abbrev_expand_hook
3162         only when a real abbrev is present.
3164         * xfns.c (x_icon_verify): New function.
3165         (Fx_create_frame): Use it.
3167 2004-07-22  Barry Fishman <barry_fishman@att.net>  (tiny change)
3169         * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
3171 2004-07-21  Kim F. Storm  <storm@cua.dk>
3173         * window.h (struct glyph_matrix): New members nrows_scale_factor
3174         and ncols_scale_factor.
3176         * window.c (make_window): Initialize nrows_scale_factor and
3177         ncols_scale_factor members.
3179         * dispnew.c (margin_glyphs_to_reserve): Apply ncols_scale_factor.
3180         (allocate_matrices_for_frame_redisplay): Fix left/right margin mix-up.
3181         (required_matrix_height): Apply nrows_scale_factor.
3182         (required_matrix_width): Apply ncols_scale_factor.
3184         * xdisp.c (display_line): Increment nrows_scale_factor and set
3185         fonts_changed_p if past last allocated row.
3186         (append_glyph, append_composite_glyph, produce_image_glyph)
3187         (append_stretch_glyph): Increment ncols_scale_factor and set
3188         fonts_changed_p if current area is full.
3190 2004-07-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3192         * widget.c (EmacsFrameDestroy): Don't abort if normal_gc is 0.
3194 2004-07-19  Luc Teirlinck  <teirllm@auburn.edu>
3196         * window.c (Fpos_visible_in_window_p, Fset_window_hscroll)
3197         (Fwindow_inside_pixel_edges, Fwindow_end, Fset_window_point)
3198         (Fset_window_start, Fscroll_up, Fscroll_down)
3199         (Fother_window_for_scrolling, Fscroll_other_window)
3200         (Fsave_window_excursion, Fset_window_vscroll)
3201         (syms_of_window) <window-size-fixed>: Doc fixes.
3203 2004-07-19  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
3205         * w32fns.c (Fx_file_dialog): Use ENCODE_FILE instead of
3206         ENCODE_SYSTEM for filenames.
3208 2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3210         * mac.c (sys_select): Block input around call to
3211         ReceiveNextEvent to prevent breakage.  Correctly handle
3212         blocking on event queue only by calling ReceiveNextEvent
3213         instead of select (since GUI events aren't on an fd).
3214         (sys_read): Remove function
3215         * sysdep.c: Remove redefine of read to sys_read if HAVE_CARBON
3217 2004-07-18  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3219         * mac.c (sys_select): Redo sys_select to use alarm-based
3220         polling instead of 1 sec timeouts (like solaris).
3222         * macterm.c (x_make_frame_visible): Comment in polling on
3223         frame creation.
3225         * keyboard.c: Undef SIGIO on Carbon
3227         * atimer.c (alarm_signal_handler): Call alarm handlers after
3228         scheduling.
3230         * eval.c (Feval): Remove quit_char test
3232         * process.c (wait_reading_process_input): Remove clearing
3233         stdin for select call on process input.
3235 2004-07-18  Luc Teirlinck  <teirllm@auburn.edu>
3237         * xdisp.c (syms_of_xdisp) <window-scroll-functions>: Correct
3238         capitalization error in docstring.
3240 2004-07-17  Juanma Barranquero  <lektu@terra.es>
3242         * keyboard.c (not_single_kboard_state): Do nothing unless
3243         MULTI_KBOARD is defined.
3245 2004-07-17  Richard M. Stallman  <rms@gnu.org>
3247         * window.c (coordinates_in_window): Inside the window but outside
3248         its box to the L or R, return ON_VERTICAL_BORDER.
3249         (window_list_1): Rotate the list to start with WINDOW.
3251         * print.c (print_preprocess): Test for print_depth at limit
3252         before entering in being_printed.
3254         * keyboard.c (not_single_kboard_state): New function.
3255         (stuff_buffered_input): Now no-op only if no SIGTSTP.
3257         * frame.c (Fdelete_frame): If we're in single_bboard_state on
3258         this kboard, and we delete its last frame, go to any_kboard_state.
3260         * buffer.c (syms_of_buffer) <transient-mark-mode>: Doc fix.
3262 2004-07-15  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
3264         * w32fns.c (Fx_file_dialog): Encode strings in system coding
3265         system before passing them to OS functions for display.
3267 2004-07-15  David Kastrup  <dak@gnu.org>
3269         * search.c (syms_of_search): Staticpro `saved_last_thing_searched'.
3270         Apparently fixes an abort condition.
3272 2004-07-14  Luc Teirlinck  <teirllm@auburn.edu>
3274         * fileio.c (Fvisited_file_modtime): Return a list of two integers,
3275         instead of a cons.
3277 2004-07-14  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
3279         * keyboard.c (echo_dash): Do nothing if there already is a dash
3280         at the end of the echo string.
3282 2004-07-12  Kim F. Storm  <storm@cua.dk>
3284         * alloc.c (mark_object): Only look at Lisp_Misc_Save_Value
3285         if GC_MARK_STACK.
3287 2004-07-10  Luc Teirlinck  <teirllm@auburn.edu>
3289         * buffer.c (Fswitch_to_buffer, Fpop_to_buffer): Doc fixes.
3291         * window.c (Fwindow_buffer, Fother_window,  Fget_lru_window)
3292         (Fget_largest_window, Fget_buffer_window, Fdelete_windows_on)
3293         (Freplace_buffer_in_windows, Fset_window_buffer)
3294         (Fselect-window, Fdisplay-buffer, Fsplit_window): Doc fixes.
3295         (syms_of_window): Expand docstring of `display-buffer-function'.
3297 2004-07-09  Luc Teirlinck  <teirllm@auburn.edu>
3299         * editfns.c (Ffloat_time, Fformat_time_string, Fdecode_time)
3300         (Fcurrent_time_string, Fcurrent_time_zone): Mention in docstrings
3301         that time values of the type (HIGH . LOW) are considered obsolete.
3303 2004-07-06  Luc Teirlinck  <teirllm@auburn.edu>
3305         * keyboard.c (syms_of_keyboard): Fix `keyboard-translate-table'
3306         docstring.
3308         * fns.c (Fclear_string): Declare `len' before call to CHECK_STRING.
3310 2004-07-06  John Paul Wallington  <jpw@gnu.org>
3312         * eval.c (Fdefmacro): Signal an error if NAME is not a symbol.
3314         * fns.c (Fclear_string): Signal an error if STRING is not a string.
3316 2004-07-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3318         * macterm.c (mac_initialize_display_info): Use CGGetActiveDisplayList
3319         instead of CGMainDisplayID (only in OSX 10.2 and later).
3321 2004-07-04  John Paul Wallington  <jpw@gnu.org>
3323         * fileio.c (read_file_name_completion_ignore_case): New variable.
3324         (syms_of_fileio): Declare and initialise it.
3325         (Fread_file_name): Bind `completion-ignore-case' to respect it.
3327 2004-07-03  Eli Zaretskii  <eliz@gnu.org>
3329         * msdos.c (dos_rawgetc): Use make_number to produce Lisp objects
3330         for event.x and event.y.
3332 2004-07-01  Kenichi Handa  <handa@m17n.org>
3334         * w32select.c (Fw32_set_clipboard_data): Update `nbytes' correctly
3335         after getting a new string by pre-write-conversion.
3337 2004-06-30  Stefan Monnier  <monnier@iro.umontreal.ca>
3339         * xterm.c (x_detect_focus_change): Remove unused var `nr_events'.
3340         (x_calc_absolute_position): Remove unused var `child'.
3342         * xfaces.c (x_supports_face_attributes_p)
3343         (Fdisplay_supports_face_attributes_p): YAILOM.
3344         (tty_supports_face_attributes_p): Remove unused var `i'.
3346         * syntax.c (skip_chars): Remove unused labels fwd_unibyte_ok and
3347         back_unibyte_ok.
3349         * search.c (match_limit, Fmatch_data, Fset_match_data): YAILOM.
3351         * fontset.c (Fset_fontset_font): Remove unused vars `family' and `registry'.
3353         * Makefile.in (${etc}DOC): Fix file name of make-docfile.
3355 2004-06-30  Andreas Schwab  <schwab@suse.de>
3357         * image.c (CHECK_LIB_AVAILABLE): Add third parameter LIBRARIES.
3358         (Finit_image_library): Pass LIBRARIES through to
3359         CHECK_LIB_AVAILABLE.  Declare parameters.  Doc fix.
3360         (lookup_image_type): Pass Qnil as second argument to
3361         Finit_image_library.
3363         * lisp.h (Finit_image_library): Declare.
3365 2004-06-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3367         * macterm.c (do_window_activate, do_window_deactivate): Remove.
3368         (XTread_socket): Send mouse button events to the toolbox
3369         dispatcher even when the mouse is grabbed.  Don't process window
3370         activate events for non-Emacs windows.  Replace function calls to
3371         do_window_activate and do_window_deactivate with their contents.
3372         Reset mouse grabbing status when a window is deactivated.
3374 2004-06-29  Steven Tamm  <steventamm@mac.com>
3376         * macterm.c (mac_get_emulated_btn)
3377         (mac_event_to_emacs_modifiers): Fix emulated mouse button
3378         support to correctly mask out modifiers.
3380 2004-06-29  David Kastrup  <dak@gnu.org>
3382         * search.c (Fset_match_data): Allow buffer before end of list
3383         which can happen if set-match-data is using a pre-consed list.
3385 2004-06-28  Steven Tamm  <steventamm@mac.com>
3387         * macterm.c (XTread_socket): Correctly set the frame position
3388         after the window is moved.
3390 2004-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3392         * gtkutil.c (xg_get_image_for_pixmap): Call g_object_unref on
3393         gpix and gmask just before return to avoid memory leak.
3394         (xg_get_image_for_pixmap): Add workaround for monochrome displays
3395         so insensitive and activated icons look ok.
3397 2004-06-27  Jason Rumney  <jasonr@gnu.org>
3399         * w32fns.c (file_dialog_callback): Disable edit control if set
3400         to directories only on CDN_INITDONE message.
3401         (Fx_file_dialog): Default to directories only when prompt starts
3402         with "Dired".
3404 2004-06-25  Kim F. Storm  <storm@cua.dk>
3406         * alloc.c (allocate_misc): Update total_free_markers.
3407         (free_misc): New function.
3408         (safe_alloca_unwind, free_marker): Use it.
3410         * lisp.h (free_misc): Add prototype.
3412         * fns.c (Fmapconcat, Fmapcar): Remove superfluous GCPROs.
3414 2004-06-24  Richard M. Stallman  <rms@gnu.org>
3416         * emacs.c (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.
3417         (syms_of_emacs): Lisp variables deleted.
3419 2004-06-23  David Kastrup  <dak@gnu.org>
3421         * search.c (Freplace_match): Adjust the match-data more thoroughly
3422         when replacing strings in the buffer.
3423         (Fmatch_data): When INTEGERS is non-nil and the last match was in
3424         a buffer, add the buffer as last element to the match data.
3425         (Fset_match_data): If an additional element of the match-data is a
3426         buffer, restore it to last_thing_searched.
3427         (save_search_regs): Save last_thing_searched as part of the match data.
3428         (restore_match_data): Restore it again.
3430 2004-06-23  Luc Teirlinck  <teirllm@auburn.edu>
3432         * keymap.c (Ftext_char_description): Doc fix.
3433         * doc.c (Fsnarf_documentation): Doc fix.
3435 2004-06-22  Kim F. Storm  <storm@cua.dk>
3437         * fns.c (Fmapcar, Fmapconcat): GCPRO the args array.
3439         * lisp.h (struct Lisp_Save_Value): New member dogc.
3440         (SAFE_ALLOCA_LISP): Change second arg to number of elements.
3441         Set dogc member in Lisp_Save_Value object so it will be GC'ed.
3442         (SAFE_FREE_LISP): New macro.
3444         * alloc.c (safe_alloca_unwind): Clear dogc and pointer members.
3445         (make_save_value): Init new dogc member.
3446         (mark_object): Mark Lisp_Save_Value pointer array if dogc is set.
3448         * fns.c (Fmapconcat, Fmapcar): Use new SAFE_ALLOCA_LISP and
3449         SAFE_FREE_LISP macros.
3451 2004-06-22  Kim F. Storm  <storm@cua.dk>
3453         * lisp.h (SAFE_ALLOCA_LISP): New macro to allocate Lisp_Objects.
3454         Temporarily inhibits GC if memory is xmalloc'ed, as the Lisp_Objects
3455         in that memory area are unknown to GC.  Add comments.
3457         * fns.c (Fmapconcat, Fmapcar): Use SAFE_ALLOCA_LISP.
3459 2004-06-21  Kim F. Storm  <storm@cua.dk>
3461         * lisp.h (MAX_ALLOCA): Define here.
3462         (safe_alloca_unwind): Add prototype.
3463         (USE_SAFE_ALLOCA, SAFE_ALLOCA, SAFE_FREE): New macros.
3465         * alloc.c (safe_alloca_unwind): New function.
3467         * casefiddle.c (casify_object): Use SAFE_ALLOCA.
3469         * charset.c (Fstring): Use SAFE_ALLOCA.
3471         * coding.c (MAX_ALLOCA): Remove define.
3473         * data.c (MAX_ALLOCA): Remove define.
3474         (Faset): Use SAFE_ALLOCA.
3476         * editfns.c (Fformat, Ftranspose_regions): Use SAFE_ALLOCA.
3478         * fns.c (string_make_multibyte, string_to_multibyte)
3479         (string_make_unibyte, Fmapconcat, Fmapcar): Use SAFE_ALLOCA.
3480         (MAX_ALLOCA): Remove define.
3481         (Fbase64_encode_region, Fbase64_encode_string)
3482         (Fbase64_decode_region, Fbase64_decode_string): Use SAFE_ALLOCA.
3483         (Fbase64_encode_region, Fbase64_encode_string): Fix potential
3484         memory leak if encoding fails.
3486         * xdisp.c (add_to_log): Use SAFE_ALLOCA.
3488 2004-06-21  Eli Zaretskii  <eliz@gnu.org>
3490         * print.c (Fwith_output_to_temp_buffer): Doc fix.
3492 2004-06-20  Richard M. Stallman  <rms@gnu.org>
3494         * xfaces.c (Finternal_copy_lisp_face): Small cleanup; doc fix.
3496         * search.c (match_limit): Cleaner err msg when no match data available.
3498         * window.c (syms_of_window): Doc fix.
3500         * keyboard.c (command_loop_1): Handle values `only' and `identity'
3501         for Vtransient_mark_mode.
3503         * buffer.c (syms_of_buffer): Doc fix.
3505 2004-06-21  David Kastrup  <dak@gnu.org>
3507         * minibuf.c (Ftry_completion, Fall_completions): Do lazy binding
3508         and unbinding of `case-fold-search' according to
3509         `completion-ignore-case' around calls of string-match and
3510         predicates, respectively.  Should give satisfactory performance
3511         in all relevant cases.
3513 2004-06-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3515         * xterm.c (x_draw_image_foreground_1): Subtract slice.x/y from
3516         clip_x/y_origin.
3518         * fns.c (string_to_multibyte): Use xmalloc/xfree instead of alloca.
3520         * macfns.c (Fx_display_color_cells): Do not limit return value to 256.
3522         * macterm.c (mac_initialize_display_info): Initialize n_planes correctly
3523         on Mac OSX.
3525 2004-06-16  Luc Teirlinck  <teirllm@auburn.edu>
3527         * buffer.c (syms_of_buffer): Clarify `fill-column' docstring.
3529 2004-06-16  Kim F. Storm  <storm@cua.dk>
3531         * dispextern.h (Vimage_types): Remove extern.
3533 2004-06-16  Miles Bader  <miles@gnu.org>
3535         * image.c (lookup_image_type): Initialize image type if necessary.
3537 2004-06-15  Kim F. Storm  <storm@cua.dk>
3539         * xdisp.c (try_cursor_movement): Exclude header line from scroll
3540         margin at top of window.
3541         (try_window_reusing_current_matrix): Calculate proper cursor position
3542         after scrolling up with non-zero scroll margin, as the old cursor
3543         position corresponds to value of PT before executing this command.
3544         (try_window_id): Consider scroll margin at bottom of window too;
3545         otherwise we fail to scroll when hl-line-mode is enabled.
3547         * syntax.c (skip_chars): Only recognize [:class:] when it has the
3548         proper format and class is a lower-case word.
3550 2004-06-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3552         * gtkutil.c (xg_get_image_for_pixmap): New function.
3553         (xg_get_gdk_pixmap_and_mask): Remove.
3554         (update_frame_tool_bar): Call xg_get_image_for_pixmap instead of
3555         xg_get_gdk_pixmap_and_mask.
3557         * xterm.h (struct x_display_info): Typo in comment fixed.
3559 2004-06-14  Juanma Barranquero  <lektu@terra.es>
3561         * dispextern.h (Vimage_types): Make it conditional on
3562         HAVE_WINDOW_SYSTEM.
3564         * image.c (Vimage_types): Move from xdisp.c.
3565         (Vimage_type_cache): New variable.
3566         (define_image_type): New argument indicating whether an image
3567         library was loaded; cache loaded status and return t on success,
3568         nil otherwise.
3569         (CACHE_IMAGE_TYPE, ADD_IMAGE_TYPE): New macros.
3570         (w32_delayed_load): New function to load an image library from a
3571         list of possible filenames.
3572         (init_xpm_functions, init_png_functions, init_jpeg_functions)
3573         (init_tiff_functions, init_gif_functions): Use `w32_delayed_load'.
3574         (CHECK_LIB_AVAILABLE): Call `define_image_library' with new argument.
3575         (Finit_image_library): New function, extracted from `init_image'.
3576         Try to initialize an image library on demand and cache whether we
3577         were successful or not.
3578         (syms_of_image): Initialize `Vimage_types' and
3579         `Vimage_type_cache'.  Add recognized image types to Vimage_types.
3580         Export `init-image-library'.
3581         (init_image): Remove initialization of all image types, except xbm
3582         and pbm.
3584         * xdisp.c (Vimage_types): Delete (moved to image.c).
3586 2004-06-14  Andreas Schwab  <schwab@suse.de>
3588         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
3589         Avoid calling specbind when completion-regexp-list is empty.
3591 2004-06-13  Richard M. Stallman  <rms@gnu.org>
3593         * regex.h (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3594         (re_wctype, re_iswctype, re_wctype_to_bit):
3595         Non-function definitions moved here from regex.c.
3597         * regex.c (re_wctype, re_iswctype): Function defs longer static.
3598         (CHAR_CLASS_MAX_LENGTH, re_wctype_t, re_wchar_t)
3599         (re_wctype, re_iswctype, re_wctype_to_bit):
3600         Non-function definitions moved to regex.h.
3602         * window.c (Fselect_window): Doc fix.
3604         * syntax.c: Include regex.h.
3605         (skip_chars): New arg HANDLE_ISO_CLASSES.  Callers changed.
3606         If requested, make a list of classes, then check the scanned
3607         chars for membership in them.
3608         (in_classes): New function.
3609         Doc fix.
3611         * keyboard.c (cmd_error): Don't call any_kboard_state
3612         if inside a recursive edit level.
3614 2004-06-13  Lorentey K\e,Aa\e(Broly  <lorentey@elte.hu>
3616         * keyboard.c (command_loop): Call any_kboard_state before
3617         command_loop_2 when at top level.
3619 2004-06-13  Andreas Schwab  <schwab@suse.de>
3621         * print.c (print_object): Always use %ld for printing EMACS_INT.
3623         * keyboard.c (cancel_hourglass_unwind): Return a value.
3624         (modify_event_symbol): Always use %ld for printing EMACS_INT.
3625         (Fexecute_extended_command): Likewise.
3627         * syntax.h (SYNTAX_ENTRY_FOLLOW_PARENT): Rename local variable to
3628         avoid clashes.
3629         (SYNTAX): Likewise.
3630         (SYNTAX_WITH_FLAGS): Likewise.
3631         (SYNTAX_MATCH): Likewise.
3633         * syntax.c (char_quoted): Avoid warning about undefined operation.
3634         (find_defun_start): Likewise.
3635         (scan_lists): Likewise.
3636         (INC_FROM): Likewise.
3637         (scan_sexps_forward): Likewise.
3639         * image.c: Include <ctype.h>.
3641         * xfaces.c (face_attr_equal_p): Declare parameters.
3643 2004-06-13  Kenichi Handa  <handa@m17n.org>
3645         * ccl.c (CCL_READ_CHAR): If hit EOF, set REG to -1.
3647 2004-06-12  Matthew Mundell  <matt@mundell.ukfsn.org>
3649         * eval.c (Fdefun): Signal an error if NAME is not a symbol.
3651 2004-06-12  Kenichi Handa  <handa@m17n.org>
3653         * ccl.c (CCL_CALL_FOR_MAP_INSTRUCTION): Save eof_ic in
3654         ccl_prog_stack_struct and update it.
3655         (CCL_INVALID_CMD): If CCL_DEBUG is defined, call ccl_debug_hook.
3656         (CCL_READ_CHAR): Get instruction counter from eof_ic, not from
3657         ccl->eof_ic on EOF.
3658         (ccl_debug_hook): New function.
3659         (struct ccl_prog_stack): New member eof_ic.
3660         (ccl_driver): Handle EOF in subrountine call correctly.
3662 2004-06-11  Kenichi Handa  <handa@m17n.org>
3664         * coding.c (decode_coding_string): Check CODING_FINISH_INTERRUPT.
3666 2004-06-11  Kim F. Storm  <storm@cua.dk>
3668         * emacs.c (shut_down_emacs): Inhibit redisplay during shutdown.
3670 2004-06-11  Juanma Barranquero  <lektu@terra.es>
3672         * keyboard.c (Fposn_at_point): Doc fix.
3674 2004-06-11  David Kastrup  <dak@gnu.org>
3676         * search.c (match_limit): Don't flag an error if match-data
3677         exceeding the allocated search_regs.num_regs gets requested, just
3678         return Qnil.
3680 2004-06-08  Miles Bader  <miles@gnu.org>
3682         * xfaces.c (push_named_merge_point): Return 0 when a cycle is detected.
3684 2004-06-07  Juanma Barranquero  <lektu@terra.es>
3686         * editfns.c (Fuser_login_name, Ffloat_time, Fencode_time)
3687         (Fcurrent_time_string, Fcurrent_time_zone)
3688         (Finsert_buffer_substring, Ftranspose_regions): Doc fixes.
3690 2004-06-07  Miles Bader  <miles@gnu.org>
3692         * xfaces.c (struct named_merge_point): New type.
3693         (push_named_merge_point): New function.
3694         (merge_named_face): New function.
3695         (merge_face_ref, face_at_buffer_position, face_at_string_position):
3696         Use `merge_named_face'.
3697         (merge_face_inheritance): Function removed.
3698         (merge_face_ref): Rename from `merge_face_vector_with_property'.
3699         Add new `err_msgs' and `named_merge_points' args.  Return error
3700         status.  Only print error messages if ERR_MSGS is true.  Don't try to
3701         do :inherit attribute validation.
3702         (merge_face_heights): Handle `unspecified' in both directions.
3703         (merge_face_vectors): Rename `cycle_check' arg to `named_merge_points'.
3704         Call `merge_face_ref' instead of `merge_face_inheritance'.
3705         (Fdisplay_supports_face_attributes_p, Fface_attributes_as_vector)
3706         (compute_char_face, face_at_buffer_position)
3707         (face_at_string_position): Call `merge_face_ref' instead of
3708         `merge_face_vector_with_property'.
3710 2004-06-07  Kenichi Handa  <handa@m17n.org>
3712         * coding.c (find_safe_codings): Check NILP (safe_codings) only at
3713         the necessary places.
3715 2004-06-07  Kim F. Storm  <storm@cua.dk>
3717         * process.c (Fdelete_process): Undo 2004-05-28 change.
3718         Instead, call status_notify also for network process.
3719         (status_message): Use process instead of status as arg.
3720         Give messages "deleted" or "connection broken by remote peer" for
3721         an exited network process.
3722         (status_notify): Change call to status_message.
3723         (read_process_output): Increase readmax to 4096.  Do not increase
3724         buffer size for datagram channels (default is now large enough).
3726 2004-06-06  Steven Tamm  <tamm@Steven-Tamms-Computer.local>
3728         * macfns.c (x_create_tip_frame): Fix Mac OS X 10.1 compilation
3729         problem due to newly defined variable.
3731 2004-06-06  Miles Bader  <miles@gnu.org>
3733         * xfaces.c (Fdisplay_supports_face_attributes_p): Give up
3734         immediately if non-interactive or not initialized.
3736 2004-06-05  Richard M. Stallman  <rms@gnu.org>
3738         * minibuf.c (Fcompleting_read): Doc fix.
3740 2004-06-05  Andreas Schwab  <schwab@suse.de>
3742         * macfns.c (x_create_tip_frame): Fix declaration after statement.
3744 2004-06-05  Juanma Barranquero  <lektu@terra.es>
3746         * keymap.c (Fdescribe_vector): Fix docstring.
3747         (Fkey_description, Fglobal_key_binding): Fix typo in docstring.
3749 2004-06-05  Miles Bader  <miles@gnu.org>
3751         * xfaces.c (tty_supports_face_attributes_p): Make sure the specified
3752         attributes have different values than the default face.
3754 2004-06-04  Eli Zaretskii  <eliz@gnu.org>
3756         * xfaces.c (x_supports_face_attributes_p): Make this function
3757         conditional on HAVE_WINDOW_SYSTEM.
3758         (Fdisplay_supports_face_attributes_p) [HAVE_WINDOW_SYSTEM]:
3759         Don't call x_supports_face_attributes_p if it was not compiled in.
3761 2004-06-04  Miles Bader  <miles@gnu.org>
3763         * xfaces.c (tty_supports_face_attributes_p): New function, mostly
3764         from Ftty_supports_face_attributes_p.
3765         (x_supports_face_attributes_p): New function.
3766         (Ftty_supports_face_attributes_p): Function deleted.
3767         (Fdisplay_supports_face_attributes_p): New function.
3768         (syms_of_xfaces): Initialize Sdisplay_supports_face_attributes_p.
3769         (face_attr_equal_p): New function.
3770         (lface_equal_p): Use it.
3772 2004-06-03  Juanma Barranquero  <lektu@terra.es>
3774         * w32fns.c (Fx_display_grayscale_p, Fw32_send_sys_command)
3775         (Vw32_color_map): Fix typo in docstring.
3776         (Fx_create_frame, Fw32_find_bdf_fonts, Fx_show_tip)
3777         (Fw32_unregister_hot_key, Fw32_reconstruct_hot_key):
3778         Make argument names match their use in docstring.
3780 2004-06-02  Juanma Barranquero  <lektu@terra.es>
3782         Work around bugs/problems with MinGW builds of graphics libraries
3783         called from MSVC builds of Emacs.
3785         * image.c (lookup_image): Make pointer to img static.
3786         (png_read_from_memory): Disable "global" optimization.
3788 2004-06-01  Stefan Monnier  <monnier@iro.umontreal.ca>
3790         * eval.c (Fcondition_case): Fix usage.  Simplify.
3792         * mem-limits.h (EXCEEDS_LISP_PTR) [USE_LSB_TAG]: Never true.
3794 2004-05-29  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
3796         * macfns.c: Don't include ccl.h.
3797         [MAC_OSX]: Don't include QuickTime/QuickTime.h.
3798         [!MAC_OSX]: Don't include alloca.h, Windows.h, Gestalt.h, or
3799         TextUtils.h.
3800         (Fx_create_frame): Sync with xfns.c.  Initialize cursor descriptors.
3801         (Fx_display_mm_height, Fx_display_mm_width): Calculate length from
3802         display height/width.
3803         (compute_tip_xy, Vx_max_tooltip_size): Declare.
3804         (unwind_create_tip_frame, compute_tip_xy): New functions.
3805         (x_create_tip_frame, Fx_show_tip, Fx_hide_tip): Sync with xfns.c.
3806         (syms_of_macfns): Initialize Qcancel_timer, Vx_max_tooltip_size,
3807         and last_show_tip_args.
3809         * macgui.h [!MAC_OSX]: Include Gestalt.h.
3810         (Cursor, No_Cursor): New defines.
3811         [!TARGET_API_MAC_CARBON] (SetPortWindowPort): New compatibility macro.
3812         [!TARGET_API_MAC_CARBON] (arrow_cursor): Declare.
3814         * macmenu.c (mac_menu_show, mac_dialog): Use SetPortWindowPort.
3816         * macterm.c: Don't include Gestalt.h.
3817         (enum mouse_tracking_type, mouse_tracking_in_progress): Remove.
3818         (XDrawLine, XClearArea, XClearWindow, mac_draw_bitmap)
3819         (mac_set_clip_rectangle, mac_reset_clipping, XCreatePixmap)
3820         (XFillRectangle, mac_draw_rectangle, mac_draw_string_common)
3821         (mac_copy_area, mac_copy_area_with_mask, x_update_end)
3822         (construct_mouse_click, XTmouse_position)
3823         (x_scroll_bar_report_motion, x_calc_absolute_position)
3824         (do_mouse_moved, do_zoom_window, mac_do_receive_drag)
3825         (XTread_socket, make_mac_frame): Use SetPortWindowPort.
3826         (note_mouse_movement): Clear the mouse face and reset the pointer
3827         shape when the pointer goes outside the frame without grabbing.
3828         (mac_front_window): New function.
3829         (mac_window_to_frame): New macro.
3830         (XTmouse_position, x_scroll_bar_report_motion, do_window_update)
3831         (do_window_activate, do_window_deactivate, do_app_resume)
3832         (do_app_suspend, do_mouse_moved, do_menu_choice, do_grow_window)
3833         (do_zoom_window, mac_do_receive_drag, XTread_socket)
3834         (mac_check_for_quit_char): Use mac_front_window and/or
3835         mac_window_to_frame.
3836         (x_scroll_bar_handle_click): Set `(PORTION . WHOLE)' part in a
3837         scroll-bar click event.
3838         (mac_define_frame_cursor): Change the pointer shape.
3839         (x_free_frame_resources): Reset tip_window to NULL when it is disposed.
3840         [!TARGET_API_MAC_CARBON] (arrow_cursor): New variable.
3841         [!TARGET_API_MAC_CARBON] (do_init_managers): Initialize arrow_cursor.
3842         (do_window_update): Don't do anything if the updated window is the
3843         tooltip window.
3844         (do_mouse_moved): Handle mouse movement events here (previously in
3845         XTread_socket).  Clear the mouse face if
3846         dpyinfo->mouse_face_hidden is set.
3847         (do_os_event, do_events): Remove (now in XTread_socket).
3848         (XTread_socket): Immediately return if interrupt_input_blocked.
3849         Loop until all the events in the queue are processed.
3850         Rearrange codes for mouse grabbing.  Add tooltip support.  Include the
3851         contents of do_os_event and do_events.  Remove mouse movement
3852         handling (now in do_mouse_moved).  Add the case where
3853         Vmouse_highlight has an integer value.
3854         (NewMacWindow): Remove.
3855         (make_mac_frame): Do what NewMacWindow previously did.  Don't do
3856         excess initializations.
3857         (make_mac_terminal_frame): Previous initializations in
3858         make_mac_frame are moved here.
3859         (mac_initialize_display_info):
3860         Initialize dpyinfo->mouse_face_overlay and dpyinfo->mouse_face_hidden.
3862         * xdisp.c [MAC_OS] (No_Cursor): Remove variable.
3863         (define_frame_cursor1): Don't treat HAVE_CARBON as a special case.
3865 2004-05-29  Richard M. Stallman  <rms@gnu.org>
3867         * lisp.h (truncate_undo_list): Update decl.
3869         * alloc.c (undo_outer_limit): New variable.
3870         (syms_of_alloc): Defvar it.
3871         (Fgarbage_collect): Pass undo_outer_limit to truncate_undo_list.
3873         * undo.c (truncate_undo_list): New arg LIMITSIZE.
3875         * alloc.c (lisp_align_malloc): Check for base == 0
3876         regardless of HAVE_POSIX_MEMALIGN.
3877         Clean up HAVE_POSIX_MEMALIGN handling of `err'.
3879 2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
3881         * alloc.c: Undo Kim's recent changes and fix the same bug differently.
3882         (marker_blocks_pending_free): Remove.
3883         (Fgarbage_collect): Sweep after cleaning up undo-lists.
3884         Mark the undo lists after claning them up.
3885         Don't free block in marker_blocks_pending_free.
3886         (mark_buffer): Don't mark undo_list.
3887         (gc_sweep): Sweep hash-tables and strings first.
3888         Do free marker blocks that are empty.
3890 2004-05-28  Jim Blandy  <jimb@redhat.com>
3892         * regex.c (print_partial_compiled_pattern): Add missing 'break'
3893         after 'case wordend'.  For symbeg and symend, print to stderr,
3894         like the other cases.
3896 2004-05-28  Noah Friedman  <friedman@splode.com>
3898         * process.c (Fdelete_process): Do not call remove_process.
3900 2004-05-28  Stefan Monnier  <monnier@iro.umontreal.ca>
3902         * alloc.c (struct backtrace): Remove.
3903         (Fgarbage_collect): Use the new mark_backtrace.
3905         * eval.c (mark_backtrace): New function.
3907         * minibuf.c (run_exit_minibuf_hook): New function.
3908         (read_minibuf_unwind): Don't run exit-minibuffer-hook any more.
3909         (read_minibuf): Use separate unwind handler to run exit-minibuf-hook.
3911 2004-05-27  Kim F. Storm  <storm@cua.dk>
3913         * xdisp.c (back_to_previous_visible_line_start): Skip backwards
3914         over display properties, e.g. images, that replace buffer text.
3916 2004-05-25  Kim F. Storm  <storm@cua.dk>
3918         * alloc.c (marker_blocks_pending_free): New var.
3919         (gc_sweep): Store free marker blocks on that list.
3920         (Fgarbage_collect): Free them after undo-list cleanup.
3922         * process.c (wait_reading_process_input): Check connect_wait_mask
3923         before actually accepting connection in case it has already been
3924         accepted due to recursion.
3926 2004-05-23  K\e,Ba\e(Broly L\e,Bu\e(Brentey  <lorentey@elte.hu>
3928         * coding.c (Fset_safe_terminal_coding_system_internal):
3929         Set suppress_error in safe_terminal_coding, not terminal_coding.
3931 2004-05-22  Richard M. Stallman  <rms@gnu.org>
3933         * alloc.c (Fmake_string): Doc fix.
3935         * buffer.c (clone_per_buffer_values): Copy the alist of local vars,
3936         and the alist pairs too.
3938         * casefiddle.c (casify_object): Return OBJ unchanged if not real char.
3940         * emacs.c (main): Update copyright year.
3942         * fileio.c (Fread_file_name): Expand DIR if not absolute.
3944         * insdel.c (del_range_2, replace_range): Don't write an anchor
3945         if the gap is empty.
3947         * xdisp.c (try_scrolling): If scroll-up-aggressively or
3948         scroll-down-aggressively is small but positive, put point
3949         near the screen edge.
3951 2004-05-22  Juanma Barranquero  <lektu@terra.es>
3953         * keymap.c (Fdefine_key): Doc fix.
3955 2004-05-22  Kim F. Storm  <storm@cua.dk>
3957         * alloc.c (struct backtrace): Add debug_on_exit member.
3958         (Fgarbage_collect): Clear out buffer undo_list markers after gc_sweep.
3959         Identify those markers as Lisp_Misc_Free objects.  Clear car and cdr of
3960         the removed cons cells.
3961         (mark_object): Undo previous change - disallow Lisp_Misc_Free objects.
3962         (gc_sweep): Clear cons_blocks before sweeping strings, so we don't have
3963         any cons cells pointing to unallocated stings.
3964         Do not lisp_free any marker blocks, as there may still be pointers
3965         to them from buffer undo lists at this stage of GC.
3967         * keyboard.c (struct backtrace): Add debug_on_exit member.
3968         (Fcommand_execute): Clear it.
3970 2004-05-20  Luc Teirlinck  <teirllm@auburn.edu>
3972         * intervals.c (lookup_char_property): Do not prematurely return nil.
3974 2004-05-19  Jim Blandy  <jimb@redhat.com>
3976         Add support for new '\_<' and '\_>' regexp operators, matching the
3977         beginning and end of symbols.
3979         * regex.c (enum syntaxcode): Add Ssymbol.
3980         (init_syntax_once): Set the syntax for '_' to Ssymbol, not Sword.
3981         (re_opcode_t): New opcodes `symbeg' and `symend'.
3982         (print_partial_compiled_pattern): Print the new opcodes properly.
3983         (regex_compile): Parse the new operators.
3984         (analyse_first): Skip sym(beg|end) (they match only the empty string).
3985         (mutually_exclusive_p): `symend' is mutually exclusive with \s_ and
3986         \sw; `symbeg' is mutually exclusive with \S_ and \Sw.
3987         (re_match_2_internal): Match symbeg and symend.
3989         * search.c (trivial_regexp_p): \_ is no longer a trivial regexp.
3991 2004-05-19  Kim F. Storm  <storm@cua.dk>
3993         * .gdbinit (xsymbol): Fix last change.
3995 2004-05-18  Stefan Monnier  <monnier@iro.umontreal.ca>
3997         * .gdbinit (xprintstr): New fun.
3998         (xstring, xprintsym): Use it.
4000         * w32proc.c (create_child): Use INTMASK.
4002         * alloc.c (Fgarbage_collect): Do all the marking before flushing
4003         unmarked elements of the undo list.
4005 2004-05-18  David Ponce  <david@dponce.com>
4007         * print.c (print): Reset print_depth before to call print_object.
4009 2004-05-18  Jason Rumney  <jasonr@gnu.org>
4011         * w32console.c: Prefix RIF functions with w32con_ to avoid
4012         namespace clash with functions in term.c and w32term.c.
4014         * w32menu.c (add_menu_item, w32_menu_display_help)
4015         [USE_LISP_UNION_TYPE]: Cast from Lisp_Object using i member.
4017         * w32term.h (display_x_get_resource, vga_stdcolor_name): Add prototype.
4019 2004-05-18  Eli Zaretskii  <eliz@gnu.org>
4021         * lisp.h (DECL_ALIGN): Remove restriction on MS-DOS systems.
4023         * msdos.c (syms_of_msdos): Initialize dos-unsupported-char-glyph
4024         with make_number.
4025         (IT_write_glyphs): Extract glyph from dos-unsupported-char-glyph
4026         with XINT.
4028 2004-05-18  Kim F. Storm  <storm@cua.dk>
4030         * blockinput.h (INPUT_BLOCKED_P): New macros.
4032         * keyboard.c (Frecursive_edit): Return immediately if input blocked.
4033         (Ftop_level): Unblock input if blocked.
4035         * buffer.h (GET_OVERLAYS_AT): New macro.
4036         * msdos.c (IT_note_mouse_highlight): Use it.
4037         * textprop.c (get_char_property_and_overlay): Use it.
4038         * xdisp.c (next_overlay_change, note_mouse_highlight): Use it.
4039         * xfaces.c (face_at_buffer_position): Use it.
4041         * print.c (print_object): Increase buf size.
4043 2004-05-17  Jason Rumney  <jasonr@gnu.org>
4045         * w32fns.c (Fw32_register_hot_key, Fw32_unregister_hot_key)
4046         (Fw32_toggle_lock_key) [USE_LISP_UNION_TYPE]: Cast from
4047         Lisp_Object using i member.
4048         (w32_quit_key): Rename from Vw32_quit_key, and make an int.
4049         (syms_of_w32fns, globals_of_w32fns): Use Lisp_Object and int
4050         consistently.
4052         * w32proc.c (create_child): Use make_number instead of masking pid.
4054         * w32fns.c (w32_color_map_lookup): Return a Lisp_Object.
4055         (x_to_w32_charset, w32_to_x_charset, w32_to_all_x_charsets):
4056         Use EQ to compare Lisp_Objects.
4057         (w32_parse_hot_key): Use int for lisp_modifiers consistently.
4059         * w32term.c (w32_num_mouse_buttons): Rename from
4060         Vw32_num_mouse_buttons and make it an int.
4062         * w32.c (init_environment): Use it.
4064         * w32fns.c (w32_wnd_proc): Likewise.
4066         * w32proc.c (w32_pipe_read_delay): Rename from
4067         Vw32_pipe_read_delay and make it an int.
4069         * w32.c (_sys_read_ahead): Use it.
4071         * lisp.h (egetenv) [USE_CRT_DLL]: Remove condition.
4073         * w32proc.c (create_child) [USE_LSB_TAG]: Don't try to mask pid.
4075         * w32inevt.c (w32_console_mouse_position, do_mouse_event)
4076         (key_event): Don't mix Lisp_Object and int.
4078         * w32heap.c (init_heap) [USE_LSB_TAG]: Don't check heap location.
4080         * keyboard.c (kbd_buffer_get_event): Don't use event->code and
4081         modifiers in language change event.
4083 2004-05-17  Kim F. Storm  <storm@cua.dk>
4085         * alloc.c (mark_object): Ignore Lisp_Misc_Free objects.
4086         Such objects may be freed markers which still exist on an undo list.
4088 2004-05-16  Juanma Barranquero  <lektu@terra.es>
4090         * data.c (Fset_default): Make argument names match their use in
4091         docstring.
4093 2004-05-15  Andreas Schwab  <schwab@suse.de>
4095         * emacs.c (gdb_array_mark_flag): Define.
4096         * .gdbinit: Mask off gdb_array_mark_flag from vector sizes.
4098 2004-05-15  Eli Zaretskii  <eliz@gnu.org>
4100         * lisp.h (DECL_ALIGN) [MSDOS]: Don't define DECL_ALIGN to use
4101         __attribute__((__aligned__)), so that USE_LSB_TAG would not become
4102         defined for the MS-DOS build.
4104 2004-05-14  Stefan Monnier  <monnier@iro.umontreal.ca>
4106         * w32fns.c (Fw32_define_rgb_color): Avoid XSET.
4108 2004-05-14  Kenichi Handa  <handa@m17n.org>
4110         * ccl.c (Fccl_execute_on_string): Fix setting elements of STATUS.
4112 2004-05-14  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4114         * lisp.h (Vx_resource_name, Vx_resource_class): Move from xfns.c
4115         section to frame.c section.
4116         (Fxw_display_color_p, Fx_file_dialog): Declare if
4117         HAVE_WINDOW_SYSTEM defined.
4119         * macfns.c (Fx_create_frame): Fix int/Lisp_Object mixup.
4121         * macmenu.c (set_frame_menubar): Use NILP to test a lisp value.
4123         * macterm.c (mac_get_emulated_btn, mac_event_to_emacs_modifiers)
4124         (mac_get_mouse_btn): Use NILP and EQ to test/compare lisp values.
4125         (XTread_socket): Fix int/Lisp_Object mixup.
4126         (mac_check_for_quit_char): Fix pointer/Lisp_Object mixup.
4128         * macterm.h (struct frame, struct face, struct image)
4129         (display_x_get_resource, Fx_display_color_p)
4130         (Fx_display_grayscale_p, Fx_display_planes, x_free_gcs):
4131         Add prototypes.
4133 2004-05-14  Kim F. Storm  <storm@cua.dk>
4135         * process.c (wait_reading_process_input): Make reentrant.
4136         Make Available and Connecting non-static.  Save and restore value
4137         of waiting_for_user_input_p.
4139 2004-05-13  Kim F. Storm  <storm@cua.dk>
4141         * keyboard.c (mark_kboards): Don't mark x and y members
4142         that are overloaded in selection request events.
4144 2004-05-13  Stefan Monnier  <monnier@iro.umontreal.ca>
4146         * lisp.h (USE_LSB_TAG): Make it the default when it is known to work.
4148 2004-05-13  Glenn Morris  <gmorris@ast.cam.ac.uk>
4150         * window.c (Fdisplay_buffer, Fsplit_window)
4151         (split-height-threshold): Doc fix.
4153 2004-05-13  Juanma Barranquero  <lektu@terra.es>
4155         * xfaces.c (Ftty_supports_face_attributes_p)
4156         (Finternal_copy_lisp_face): Fix typo in docstring.
4157         (Finternal_get_lisp_face_attribute): Fix docstring.
4159 2004-05-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4161         * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.
4163 2004-05-11  Steven Tamm  <steventamm@mac.com>
4165         * macfns.c (Fx_create_frame): Default to using tool-bar by
4166         setting tool-bar-lines to 1 in default-frame-alist.
4168 2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4170         * image.c (xpm_scan, xpm_make_color_table_v, xpm_put_color_table_v)
4171         (xpm_get_color_table_v, xpm_make_color_table_h)
4172         (xpm_put_color_table_h, xpm_get_color_table_h)
4173         (xpm_str_to_color_key, xpm_load_image, xpm_load)
4174         (syms_of_image): Support XPM on Carbon Emacs.  Does not
4175         depend on libXpm, but only supports XPM version 3 without extensions.
4177 2004-05-11  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4179         * macterm.c (x_flush, XTframe_up_to_date): Use FRAME_MAC_P
4180         instead of FRAME_X_P
4182 2004-05-11  Kim F. Storm  <storm@cua.dk>
4184         * process.c (read_process_output): Grow decoding_buf when needed;
4185         this could cause a crash in allocate_string and compact_small_strings.
4187 2004-04-29  Jim Blandy  <jimb@redhat.com>
4189         * regex.c (mutually_exclusive_p): In 'case wordbeg', compare op2
4190         against proper opcode.
4192 2004-05-10  Juanma Barranquero  <lektu@terra.es>
4194         * process.c (Fstart_process): Fix docstring.
4196         * charset.c (Fget_unused_iso_final_char): Fix typos in docstring.
4197         (Fchar_bytes, Fchar_width, Fstring_width, Fchar_direction)
4198         (Fsplit_char, Fchar_charset): Make argument names match their use
4199         in docstring.
4201 2004-05-10  Richard M. Stallman  <rms@gnu.org>
4203         * print.c (print_preprocess): Use being_printed, loop_count and
4204         halftail to detect overdeep nesting and cyclic cdr chains.
4206 2004-05-10  Andreas Schwab  <schwab@suse.de>
4208         * lisp.h (Fmake_symbolic_link): Declare.
4210         * fileio.c (Frename_file): Remove extra argument in call to
4211         Fmake_symbolic_link.
4213 2004-05-10  Kim F. Storm  <storm@cua.dk>
4215         * xdisp.c (calc_line_height_property): Use string position when
4216         object is a string.
4218 2004-05-10  Kenichi Handa  <handa@m17n.org>
4220         * print.c (temp_output_buffer_setup): Bind inhibit-read-only and
4221         inhibit-modification-hooks to t temporarily before calling
4222         Ferase_buffer.
4224         * xfns.c (x_create_tip_frame): Bind inhibit-read-only and
4225         inhibit-modification-hooks to t temporarily before calling
4226         Ferase_buffer.
4228         * w32fns.c (x_create_tip_frame): Bind inhibit-read-only and
4229         inhibit-modification-hooks to t temporarily before calling
4230         Ferase_buffer.
4232         * fns.c (count_combining): Delete it.
4233         (concat): Don't check combining bytes.
4235 2004-05-09  Jason Rumney  <jasonr@gnu.org>
4237         * w32fns.c (Vw32_ansi_code_page): New Lisp variable.
4238         (globals_of_w32fns): Set it.
4240 2004-05-09  Piet van Oostrum  <piet@cs.uu.nl>
4242         * data.c (Fquo): Simplify.
4244 2004-05-08  Peter Whaite  <emacs@whaite.ca>  (tiny change)
4246         * data.c (Fquo): If any argument is float, do the computation in
4247         floating point.
4249 2004-05-08  Juanma Barranquero  <lektu@terra.es>
4251         * process.c (Fwaiting_for_user_input_p, Fmake_network_process)
4252         (Fset_process_query_on_exit_flag, Vprocess_adaptive_read_buffering):
4253         Fix spelling of Emacs on docstring.
4254         (Fset_process_coding_system, Fprocess_coding_system)
4255         (Fset_process_filter_multibyte, Fprocess_filter_multibyte_p):
4256         Make argument names match their use in docstring.
4257         (Fprocess_id, Fprocess_query_on_exit_flag, Finterrupt_process):
4258         Fix docstring.
4260         * editfns.c (Finsert_buffer_substring): Make argument names match their
4261         use in docstring.
4263         * syntax.c (Fmodify_syntax_entry): Fix docstring.
4265 2004-05-07  Steven Tamm  <steventamm@mac.com>
4267         * macterm.c (mac_check_for_quit_char): Adding BLOCK_INPUT
4268         around call to ReceiveEvent to avoid certain crashes.
4270 2004-05-07  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4272         * macterm.c (mac_draw_line_to_pixmap, XCreatePixmapFromBitmapData)
4273         (mac_fill_rectangle_to_pixmap, mac_draw_rectangle_to_pixmap)
4274         (mac_copy_area_to_pixmap, mac_copy_area_with_mask_to_pixmap):
4275         Save/restore the current graphics port and device handle when
4276         drawing into an offscreen graphics world.
4278         * image.c [MAC_OS] (XPutPixel, XGetPixel, image_load_qt_1)
4279         (gif_load): Likewise.
4281 2004-05-07  Juanma Barranquero  <lektu@terra.es>
4283         * window.c (Fset_window_buffer): Fix docstring.
4285 2004-05-06  Thien-Thi Nguyen  <ttn@gnu.org>
4287         * emacs.c (main) [VMS]: Fix var ref.
4289 2004-05-06  Romain Francoise  <romain@orebokech.com>
4291         * data.c (Fsetq_default): Fix docstring.
4293 2004-05-06  Jason Rumney  <jasonr@gnu.org>
4295         * image.c (Display) [HAVE_NTGUI]: Redefine while loading xpm.h
4296         to avoid name clash.
4298 2004-05-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4300         * fileio.c (barf_or_query_if_file_exists): Use lstat.
4301         (Frename_file): Handle renaming of symlinks across file systems.
4302         (Frename_file): Put symlink handling inside #ifdef S_IFLNK.
4304 2004-05-04  Kim F. Storm  <storm@cua.dk>
4306         * xdisp.c (Qtotal): New var.
4307         (syms_of_xdisp): Intern and staticpro it.
4308         (calc_line_height_property): New arg total.  Set it if
4309         line-spacing property has format (total . VALUE).
4310         (x_produce_glyphs): Ignore line-spacing if line-height is 0.
4311         Handle total line-spacing property.
4313 2004-05-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4315         * gtkutil.c (xg_update_scrollbar_pos): Call XClearWindow to clear
4316         "under" scroll bar when size/position changes.
4318 2004-05-03  Jason Rumney  <jasonr@gnu.org>
4320         * makefile.nt: Remove.
4322 2004-05-02  Eli Zaretskii  <eliz@gnu.org>
4324         * syntax.h (SET_RAW_SYNTAX_ENTRY, SYNTAX_ENTRY_INT):
4325         Avoid compiler warnings.
4327         * Makefile.in (region-cache.o): Depend on config.h.
4329 2004-05-02  Romain Francoise  <romain@orebokech.com>
4331         * indent.c (compute_motion): Save vpos in prev_vpos when dealing
4332         with continuation lines, too.
4334 2004-05-02  Thien-Thi Nguyen  <ttn@gnu.org>
4336         * syssignal.h (init_signals): Move decl outside `#ifdef POSIX_SIGNALS'.
4338 2004-05-01  Stefan Monnier  <monnier@iro.umontreal.ca>
4340         * xdisp.c (calc_line_height_property): YAILOM (yet another
4341         int/Lisp_Object mixup).
4343 2004-05-01  Eli Zaretskii  <eliz@gnu.org>
4345         * msdos.c (top-level): Add "#pragma pack(0)" after <dir.h>, to
4346         undo bad effect of pack(4) in some versions of system headers.
4348 2004-05-01  Jason Rumney  <jasonr@gnu.org>
4350         * w32term.c (x_draw_hollow_cursor): Sync with xterm.c
4352 2004-04-30  Kim F. Storm  <storm@cua.dk>
4354         * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
4355         (syms_of_buffer) <cursor-type>: Doc fix.
4357         * dispextern.h (struct it): Remove member use_default_face.
4358         Add members override_ascent, override_descent, override_boff.
4360         * xdisp.c (init_iterator): Handle line-spacing float value.
4361         Initialize override_ascent member.
4362         (append_space_for_newline): Reset override_ascent.
4363         Remove use_default_face.
4364         (calc_line_height_property): New function to calculate value of
4365         line-height and line-spacing properties.  Look at overlays, too.
4366         Set override_ascent, override_descent, override_boff members when
4367         using another face than the current face.  Float values are now
4368         relative to the frame default font, by default; accept a cons
4369         of ratio and face name to specify value relative to a specific face.
4370         (x_produce_glyphs): Use calc_line_height_property.
4371         Use override_ascent etc. when set to handle different face heights.
4372         A negative line-spacing property value is interpreted as a total
4373         line height, rather than inter-line spacing.
4374         (note_mouse_highlight): Allocate room for 40 overlays initially.
4376 2004-04-29  Stefan Monnier  <monnier@iro.umontreal.ca>
4378         * data.c (Fsubr_name): New fun.
4379         (syms_of_data): Defsubr it.
4381 2004-04-29  Kim F. Storm  <storm@cua.dk>
4383         * xdisp.c (null_glyph_slice): New var.
4384         (append_glyph, append_composite_glyph, append_stretch_glyph):
4385         Use it to initialize glyph slice.
4387 2004-04-27  Stefan Monnier  <monnier@iro.umontreal.ca>
4389         * xdisp.c (x_produce_glyphs): Fix the proverbial int/Lisp_Object mixup.
4390         (on_hot_spot_p): Make sure we always return a value.
4391         (Flookup_image_map): Remove unused var ix and iy.
4392         (note_mode_line_or_margin_highlight): Remove unused var `image'.
4394 2004-04-27  Eli Zaretskii  <eliz@gnu.org>
4396         * msdos.c (init_environment): If one of the TMP... environment
4397         variables is set to a drive letter without a trailing slash,
4398         append a slash.
4400 2004-04-27  Matthew Mundell  <matt@mundell.ukfsn.org>
4402         * editfns.c (lisp_time_argument): Provide externally.
4404         * fileio.c (Fset_file_times): New function.
4405         (syms_of_fileio): Intern and staticpro it.
4407 2004-04-27  Kim F. Storm  <storm@cua.dk>
4409         * xdisp.c (x_produce_glyphs): Fix last change; handle newline in
4410         header line strings.
4412         * dispextern.h (struct it): New member use_default_face.
4414         * xdisp.c (Qline_height): New variable.
4415         (syms_of_xdisp): Intern and staticpro it.
4416         (append_space_for_newline): Partially undo 2004-04-25 change;
4417         add default_face_p arg, and restore callers.
4418         Clear it->use_default_face after use.
4419         (x_produce_glyphs): Set default font for ascii char if
4420         it->use_default_font is set.  Change line-spacing property to set
4421         just extra line spacing.  Handle new line-height property.
4423 2004-04-26  Andreas Schwab  <schwab@suse.de>
4425         * print.c (print_object): Print non-ascii characters in bool
4426         vector representation as octal escapes.
4428         * lisp.h (BOOL_VECTOR_BITS_PER_CHAR): Define.
4429         * print.c (print_object): Use it instead of BITS_PER_CHAR for
4430         bool vectors.
4431         * lread.c (read1): Likewise.
4432         * alloc.c (Fmake_bool_vector): Likewise.
4433         * data.c (Faref, Faset): Likewise.
4434         * fns.c (Fcopy_sequence, concat, internal_equal, Ffillarray)
4435         (mapcar1): Likewise.
4437 2004-04-26  Steven Tamm  <tamm@Steven-Tamms-Computer.local>
4439         * lread.c (init_lread): Fixing typo HAVE_CARBON test logic
4441 2004-04-26  Miles Bader  <miles@gnu.org>
4443         * lisp.h (CYCLE_CHECK): Macro moved from xfaces.c.
4445 2004-04-26  Juanma Barranquero  <lektu@terra.es>
4447         * buffer.c (Fpop_to_buffer): Fix docstring.
4449 2004-04-26  Steven Tamm  <steventamm@mac.com>
4451         * lread.c (init_lread): Don't display missing lisp directory
4452         warnings with Carbon Emacs because self-contained bundled Emacs
4453         may be built without correct installation path.
4455 2004-04-25  Kim F. Storm  <storm@cua.dk>
4457         * macterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4459         * xterm.c (x_draw_hollow_cursor): Fix height of box for narrow lines.
4461         * xdisp.c (append_space_for_newline): Rename from append_space.
4462         Remove DEFAULT_FACE_P arg; always use current face.  Callers changed.
4463         (x_produce_glyphs): Handle line-spacing property on newline char.
4464         If value is t, adjust ascent and descent to fit current row height.
4465         If value is an integer or float, set extra_line_spacing to integer
4466         value, or to float value x current line height.
4468 2004-04-23  Kenichi Handa  <handa@m17n.org>
4470         * fontset.c (Finternal_char_font): If POSITION is nil, return
4471         font for displaying CH with the default face.
4473 2004-04-23  Juanma Barranquero  <lektu@terra.es>
4475         * makefile.w32-in: Add "-*- makefile -*-" mode tag.
4477 2004-04-21  Stefan Monnier  <monnier@iro.umontreal.ca>
4479         * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND && !NO_UNION_TYPE]:
4480         Don't make assumptions about the relative place of i and val.
4481         (EQ) [!NO_UNION_TYPE]: Don't forget to check the type match as well.
4483 2004-04-21  Kim F. Storm  <storm@cua.dk>
4485         * dispextern.h (struct glyph_slice): New struct.
4486         (struct glyph): New member slice.
4487         (GLYPH_SLICE_EQUAL_P): New macro.
4488         (GLYPH_EQUAL_P): Use it.
4489         (struct glyph_string): New member slice.
4490         (struct it_slice): New struct.
4491         (struct it): New member slice, add member to stack too.
4492         New member constrain_row_ascent_descent_p.
4493         (image_ascent): Add prototype.
4495         * dispnew.c (buffer_posn_from_coords): Return full image width
4496         and height even for image slices (posn is relative to full image).
4497         (marginal_area_string): Adjust x0,y0 for image slice.
4499         * image.c (image_ascent): Add slice arg; calculate ascent for
4500         image slice (or full image).
4502         * keyboard.c (Fposn_at_x_y, Fposn_at_point): New defuns.
4503         (syms_of_keyboard): Defsubr them.
4505         * lisp.h (pos_visible_p): Fix prototype.
4507         * macterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4508         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4509         (x_draw_image_foreground, x_draw_image_relief)
4510         (x_draw_image_foreground_1, x_draw_image_glyph_string):
4511         Draw sliced images.
4513         * w32term.c (w32_draw_relief_rect): Add top_p and bot_p args.
4514         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4515         (x_draw_image_foreground, x_draw_image_relief)
4516         (w32_draw_image_foreground_1, x_draw_image_glyph_string):
4517         Draw sliced images.
4519         * w32term.h (image_ascent): Remove prototype.
4521         * window.c (Fpos_visible_in_window_p): Return pixel position if
4522         PARTIALLY arg is non-nil.  Simplify.  Doc fix.
4523         (Fwindow_vscroll, Fset_window_vscroll): Add optional PIXEL_P arg
4524         to return/set vscroll in pixels.
4526         * window.h (Fwindow_vscroll, Fset_window_vscroll): Fix EXFUN.
4528         * xdisp.c (Qslice): New variable.
4529         (syms_of_xdisp): Intern and staticpro it.
4530         (pos_visible_p): Return pixel position in new x and y args.
4531         (init_iterator): Reset it->slice info.
4532         (handle_display_prop): Parse (slice ...) property.
4533         (push_it, pop_it): Save/restore slice info.
4534         (make_cursor_line_fully_visible): Fix 2004-04-14 change.  Do not
4535         force repositioning of tall row if window is vscrolled, as that
4536         would reset vscroll.
4537         (append_space): Set it->constrain_row_ascent_descent_p to avoid
4538         increasing row height if row is non-empty.
4539         (fill_image_glyph_string): Copy slice info.
4540         (take_vertical_position_into_account): Simplify.
4541         (produce_image_glyph): Handle iterator slice info, setup glyph
4542         slice info.  Do not force minimum line height.
4543         (x_produce_glyphs): If it->constrain_row_ascent_descent_p is set,
4544         do not increase height (ascent/descent) of non-empty row when
4545         adding normal character glyph; instead reduce glyph ascent/descent
4546         appropriately; if row is higher than current glyph, adjust glyph
4547         descent/ascent to reposition glyph within the existing row.
4548         Likewise, when char is newline, only set ascent/descent if row is
4549         currently empty.
4550         (note_mouse_highlight): Handle hotspots with sliced image.
4552         * xterm.c (x_draw_relief_rect): Add top_p and bot_p args.
4553         (x_draw_glyph_string_box): Fix call to x_draw_relief_rect.
4554         (x_draw_image_foreground, x_draw_image_relief)
4555         (x_draw_image_foreground_1, x_draw_image_glyph_string):
4556         Draw sliced images.
4558         * xterm.h (image_ascent): Remove prototype.
4560 2004-04-20  Stefan Monnier  <monnier@iro.umontreal.ca>
4562         * keymap.c (Fkey_description): Fix the usual int/Lisp_Object mixup.
4564 2004-04-20  John Paul Wallington  <jpw@gnu.org>
4566         * fns.c (Fassoc, Feql): Fix indentation.
4568         * fontset.c (regularize_fontname): Rename from regulalize_fontname.
4570 2004-04-19  John Paul Wallington  <jpw@gnu.org>
4572         * fns.c (Feql): New function.
4573         (syms_of_fns): Defsubr it.
4575 2004-04-18  Jason Rumney  <jasonr@gnu.org>
4577         * w32select.c (Fw32_set_clipboard_data): Get sequence number
4578         after closing the clipboard.
4580 2004-04-16  Luc Teirlinck  <teirllm@auburn.edu>
4582         * buffer.c (Fbuffer_base_buffer): Doc fix.
4584 2004-04-17  Kim F. Storm  <storm@cua.dk>
4586         * keymap.c (Fkey_description): Add optional PREFIX arg.
4587         Combine prefix with KEYS to make up the full key sequence to describe.
4588         Correlate meta_prefix_char and following (simple) key to describe
4589         as meta modifier.  All callers changed.
4590         (describe_map): Rename arg `keys' to `prefix'.  Remove local
4591         `elt_prefix' var.  Use Fkey_description with prefix instead of
4592         elt_prefix combined with Fsingle_key_description.
4593         (describe_vector): Declare static.  Replace arg `elt_prefix' with
4594         `prefix'.  Add KEYMAP_P arg.  Add local var `elt_prefix'; use it
4595         if !KEYMAP_P. Use Fkey_description with prefix instead of
4596         Fsingle_key_description.
4598         * keymap.h (Fkey_description): Fix prototype.
4599         (describe_vector): Remove prototype.
4601         * xdisp.c (update_overlay_arrows): Fix handling of up_to_date < 0.
4603         * image.c (PNG_BG_COLOR_SHIFT): Remove.
4604         (png_load): Fix calculation of transparent background color on X
4605         and W32 platforms.
4607 2004-04-16  Juanma Barranquero  <lektu@terra.es>
4609         * xdisp.c (try_scrolling): Make sure `scroll-conservatively' is
4610         not too large before computing how much to scroll.
4612 2004-04-15  Stefan Monnier  <monnier@iro.umontreal.ca>
4614         * dired.c (Ffile_attributes): Don't pass extra nil arg to file-handler.
4616 2004-04-14  Luc Teirlinck  <teirllm@auburn.edu>
4618         * fileio.c (Fverify_visited_file_modtime, Fvisited_file_modtime):
4619         Add hyperlink to Elisp manual to the docstring.
4621 2004-04-14  Stefan Monnier  <monnier@iro.umontreal.ca>
4623         * callint.c (fix_command): Use XDCR.
4625 2004-04-14  Nick Roberts  <nick@nick.uklinux.net>
4627         * window.c (Fget_lru_window): Doc fix.
4629 2004-04-14  Kim F. Storm  <storm@cua.dk>
4631         * editfns.c (Fformat): Fix allocation size of precision array.
4633         * dispnew.c (update_window): Only set changed_p if
4634         scrolling_window actually did scroll.
4635         (scrolling_window): Only return 1 if we actually did scroll.
4637         * xdisp.c (get_glyph_string_clip_rect): Fix reduction of cursor
4638         height to glyph height when cursor row is not fully visible.
4639         (make_cursor_line_fully_visible): Add FORCE_P arg to return
4640         failure in case row is higher than window.  Callers changed.
4641         (try_scrolling): Fix loop in scrolling if last_line_misfit (from Gerd).
4642         Try to scroll partially visible, higher-than-window cursor row.
4643         (redisplay_window): Always try to scroll partially visible,
4644         higher-than-window cursor row - both initially and again with
4645         centering_position = 0.
4646         Clear desired matrix before retrying with centering_position = 0.
4648 2004-04-13  Stefan Monnier  <monnier@iro.umontreal.ca>
4650         * syntax.c (scan_lists): Simplify backward string scan.
4651         Fix off-by-one boundary check for string and comment fences.
4653 2004-04-13  Joe Buehler  <jbuehler@hekimian.com>
4655         * sheap.c, unexcw.c: New files.
4657 2004-04-12  Luc Teirlinck  <teirllm@auburn.edu>
4659         * buffer.c (Fmake_indirect_buffer): Throw an error if the intended
4660         base buffer has been killed.  Correct the error message if the
4661         base buffer does not exist.
4663 2004-04-12  Joe Buehler  <jbuehler@hekimian.com>
4665         * s/cygwin.h: Changes for Cygwin unexec() support, changes in
4666         Cygwin itself.  Add support for Xaw3d scrollbars.
4668         * puresize.h: Set up PURE_P() for Cygwin unexec() support.
4670         * lastfile.c: Define my_endbss[] for Cygwin unexec() support.
4672         * gmalloc.c (__default_morecore): Use bss_sbrk(), not __sbrk(),
4673         before Cygwin unexec.
4675         * Makefile.in: Link changes for Cygwin unexec() support.
4677 2004-04-12  Andreas Schwab  <schwab@suse.de>
4679         * buffer.c (Fmake_indirect_buffer): Check that NAME is a string.
4681 2004-04-11  Luc Teirlinck  <teirllm@auburn.edu>
4683         * buffer.c (Fgenerate_new_buffer_name): Return NAME argument if
4684         IGNORE argument equals NAME.  Doc fix.
4686 2004-04-11  Masatake YAMATO  <jet@gyve.org>
4688         * buffer.c (fix_start_end_in_overlays): Make overlays
4689         empty if they are backwards.
4691 2004-04-09  Stefan Monnier  <monnier@iro.umontreal.ca>
4693         * xfaces.c (face_color_supported_p): Fix compilation without X11.
4695 2004-04-07  Stefan Monnier  <monnier@iro.umontreal.ca>
4697         * doc.c (Fsnarf_documentation): Ignore new file name entries.
4699 2004-04-06  Kim F. Storm  <storm@cua.dk>
4701         * msdos.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4702         (dos_rawgetc): Set mouse_face_hidden after clearing highlight.
4704         * w32term.c (w32_read_socket): Set mouse_face_hidden after
4705         clearing highlight.
4707         * xdisp.c (clear_mouse_face): Only clear mouse highlight if not hidden.
4709         * xterm.c (handle_one_xevent): Set mouse_face_hidden after
4710         clearing highlight.
4712         * indent.c (vmotion): Do not reserve one column for continuation
4713         marks on window frames.
4715 2004-04-04  Eli Zaretskii  <eliz@gnu.org>
4717         * charset.h (SINGLE_BYTE_CHAR_P): Fix macro to avoid warnings
4718         from GCC.
4720 2004-04-03  Stefan Monnier  <monnier@iro.umontreal.ca>
4722         * .gdbinit-union: Remove.
4724         * .gdbinit: Make it work for USE_LSB_TAG and !NO_LISP_UNION.
4725         (xgetptr, xgetint, xgettype): New funs.  Use them everywhere.
4726         ($nonvalbits): Remove.
4727         ($valmask): Set it by calling xreload to avoid redundancy.
4729         * emacs.c (gdb_use_union, gdb_use_lsb): New vars.
4730         (gdb_emacs_intbits): Remove.
4732 2004-03-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4734         * data.c (Fbyteorder): Make test work even if unsigned is not 4 bytes.
4736 2004-03-30  Kenichi Handa  <handa@m17n.org>
4738         * editfns.c (Fformat): Fix initialization of the array info.
4740 2004-03-30  Kim F. Storm  <storm@cua.dk>
4742         * xterm.c (x_mouse_click_focus_ignore_position): New var.
4743         (syms_of_xterm): DEFVAR_BOOL it.
4744         (ignore_next_mouse_click_timeout): New var.
4745         (handle_one_xevent): Clear it on KeyPress, set it on EnterNotify.
4746         Use it to filter mouse clicks following focus event.
4748 2004-03-29  David Ponce  <david@dponce.com>
4750         * callint.c (Fcall_interactively): Fix last change.
4752 2004-03-28  Stefan Monnier  <monnier@iro.umontreal.ca>
4754         * eval.c (Fcommandp): Simplify.
4756         * data.c (Finteractive_form): Rename from Fsubr_interactive_form.
4757         Extend to handle all kinds of functions.
4759         * lisp.h (Finteractive_form): Declare.
4761         * callint.c (Fcall_interactively): Use it.
4763 2004-03-26  Kim F. Storm  <storm@cua.dk>
4765         * xdisp.c (syms_of_xdisp): Include `void-variable' in list_of_error
4766         to catch errors in calc_pixel_width_or_height during redisplay.
4768 2004-03-26  Masatake YAMATO  <jet@gyve.org>
4770         * buffer.c (fix_start_end_in_overlays): Rename fix_overlays_in_range.
4772         * lisp.h (fix_start_end_in_overlays): Likewise.
4774         * insdel.c (adjust_markers_for_insert): Call fix_start_end_in_overlays.
4776         * editfns.c (Ftranspose_regions): Likewise.
4778 2004-03-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4780         * xterm.c (handle_one_xevent): Do not pass key press events to GTK.
4782 2004-03-19  Richard M. Stallman  <rms@gnu.org>
4784         * s/sol2-6.h: Delete previous change.
4786 2004-03-19  Kim F. Storm  <storm@cua.dk>
4788         * xdisp.c (move_it_in_display_line_to): Fix MOVE_TO_POS case when
4789         to_charpos corresponds to newline in right fringe.  Use local
4790         BUFFER_POS_REACHED_P macro.
4792 2004-03-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
4794         * xdisp.c (calc_pixel_width_or_height): Add ifdef HAVE_WINDOW_SYSTEM
4795         to compile on non-window system.
4797 2004-03-19  Kim F. Storm  <storm@cua.dk>
4799         * dispextern.h (calc_pixel_width_or_height): Add prototype.
4801         * image.c (Qcenter): Move to xdisp.c.
4803         * xdisp.c (Qcenter): Declare here.
4804         (syms_of_xdisp): Intern and staticpro it.
4805         (handle_single_display_prop): Allow space display property on all
4806         platforms.
4807         (display_mode_line): Set mode_line_p before displaying line.
4808         (calc_pixel_width_or_height): Declare extern.  Add separate :align-to
4809         handling.  Remove complex cases for fringes and scroll-bars.
4810         Add left, right, and center alignment positions. Add text (area)
4811         width/height.  Return width or height for image specs.
4812         (produce_stretch_glyph): Improve handling of :align-to.  Is now
4813         relative to left of text area by default, but other base offsets
4814         can be specified -- also for text lines.
4816         * term.c (produce_glyphs): Handle IT_STRETCH.
4817         (produce_stretch_glyph): New function to handle space width and
4818         align-to display properties on non-window systems.
4820 2004-03-17  Stefan Monnier  <monnier@iro.umontreal.ca>
4822         * fileio.c (Fread_file_name): Set completion-ignore-case for
4823         case-insensitive systems.
4825 2004-03-14  Masatake YAMATO  <jet@gyve.org>
4827         * xdisp.c (note_mode_line_or_margin_highlight): Accept HEADER_LINE
4828         when keymap and cursor are setup.
4830 2004-03-14  Steven Tamm <steventamm@mac.com>
4832         * Makefile.in (XMENU_OBJ) [HAVE_CARBON]: Do not include xmenu.o.
4834 2004-03-14  Kim F. Storm  <storm@cua.dk>
4836         * dispextern.h (x_find_image_file): Add prototype.
4838         * image.c (x_find_image_file): Make extern.
4840         * xfns.c (x_find_image_file): Remove prototype.
4842 2004-03-13  Eli Zaretskii  <eliz@gnu.org>
4844         * Makefile.in (XMENU_OBJ): Include xmenu.o if HAVE_MENUS is defined.
4846         * emacs.c (main): Call syms_of_xmenu only if HAVE_MENUS is defined.
4848 2004-03-12  Richard M. Stallman  <rms@gnu.org>
4850         * fns.c (internal_equal): New arg PROPS controls comparing
4851         text properties.  All callers changed.
4852         (Fequal_including_properties): New function.
4853         (syms_of_fns): defsubr it.
4855 2004-03-12  Kim F. Storm  <storm@cua.dk>
4857         Fix image support on MAC.  From YAMAMOTO Mitsuharu.
4859         * dispextern.h (XImagePtr, XImagePtr_or_DC): Add typedefs.
4860         (image_background, image_background_transparent): Fix prototypes.
4862         * image.c (XImagePtr, XImagePtr_or_DC): Move typedefs to dispextern.h.
4864         * macfns.c (x_list_fonts, x_get_font_info, x_load_font)
4865         (x_query_font, x_find_ccl_program, x_set_window_size)
4866         (x_make_frame_visible, mac_initialize, XCreatePixmap)
4867         (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4868         (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
4870         * macterm.h (x_list_fonts, x_get_font_info, x_load_font)
4871         (x_query_font, x_find_ccl_program, x_set_window_size)
4872         (x_make_frame_visible, mac_initialize, XCreatePixmap)
4873         (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground)
4874         (mac_draw_line_to_pixmap): Add prototypes.
4876 2004-03-12  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
4878         * macterm.c (XTread_socket): Fix mouse click on tool bar.
4880 2004-03-11  Kim F. Storm  <storm@cua.dk>
4882         * dispextern.h: Move image related prototypes from xfns.c section
4883         to image.c.  Condition them by HAVE_WINDOW_SYSTEM rather than
4884         HAVE_X_WINDOWS.
4886         * Makefile.in (XOBJ): Consolidate into one list.  Add image.o.
4887         Move gtkutil.o to new GTK_OBJ list.
4888         (XMENU_OBJ) [HAVE_MENUS]: Move declaration to proper place.
4889         (GTK_OBJ) [USE_GTK]: New declaration.
4890         (obj): Add $(GTK_OBJ) to list.
4892 2004-03-11  Steven Tamm <steventamm@mac.com>
4894         * image.c [MAC_OSX]: Include sys/stat.h
4896         * macfns.c (syms_of_macfns): Remove definitions of things now
4897         defined in image.c
4899 2004-03-11  Kim F. Storm  <storm@cua.dk>
4901         The following changes consolidates the identical/similar image
4902         support code previously found in xfns.c, w32fns.c, and macfns.c
4903         into a new file image.c.
4905         * makefile.w32-in (OBJ1): Add image.o.
4906         ($(BLD)/image.$(O)): Add dependencies.
4908         * Makefile.in (XOBJ, MAC_OBJ): Add image.o.
4909         (image.o): Add dependencies.
4911         * image.c: New file with consolidated image support code.
4912         (COLOR_TABLE_SUPPORT): New define to control whether
4913         color table support is available (X only).
4914         (Bitmap_Record): Common name for x_bitmap_record,
4915         w32_bitmap_record, and mac_bitmap_record.
4916         (XImagePtr): Common name for pointer to XImage or equivalent.
4917         (XImagePtr_or_DC): New type to simplify code sharing; equivalent
4918         to XImagePtr on X+MAC, and to HDC on W32.
4919         (GET_PIXEL): Wrapper for XGetPixel or equivalent.
4920         (NO_PIXMAP): Common name for "None" or equivalent.
4921         (PNG_BG_COLOR_SHIFT): Bits to shift PNG background colors.
4922         (RGB_PIXEL_COLOR): Common type for an integer "pixel color" value.
4923         (PIX_MASK_RETAIN, PIX_MASK_DRAW): Portability macros (from macfns.c).
4924         (FRAME_X_VISUAL, x_defined_color, DefaultDepthOfScreen):
4925         Define with suitable equivalents on W32 and MAC for code sharing.
4926         (XDrawLine): Define on MAC for code sharing.
4927         (Destroy_Image, Free_Pixmap): Wrappers for code sharing.
4928         (IF_LIB_AVAILABLE): Macro to simplify code sharing.
4929         (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4930         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4931         (x_reference_bitmap, x_create_bitmap_from_data)
4932         (x_create_bitmap_from_file, x_destroy_bitmap)
4933         (x_destroy_all_bitmaps, x_create_bitmap_mask)
4934         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4935         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4936         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4937         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4938         (define_image_type, lookup_image_type, valid_image_p)
4939         (image_error, enum image_value_type, struct image_keyword)
4940         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4941         (make_image, free_image, prepare_image_for_display, image_ascent)
4942         (four_corners_best, image_background, image_background_transparent)
4943         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
4944         (make_image_cache, free_image_cache, clear_image_cache)
4945         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4946         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4947         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4948         (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4949         (init_image_func_pointer, image_load_quartz2d)
4950         (struct ct_color, init_color_table, free_color_table)
4951         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4952         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4953         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4954         (x_disable_image, x_build_heuristic_mask)
4955         (XBM support, XPM support, PBM support, PNG support, JPEG support)
4956         (TIFF support, GIF support, Ghostscript support): Consolidate image
4957         code from xfns.c, w32fns.c, and macfns.c.
4958         (syms_of_image): Consolidate image related symbol setup here.
4959         (init_image): Consolidate image related initializations here.
4961         * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image
4962         and init_image.  Remove call to init_xfns.
4964         * macterm.h (struct mac_bitmap_record): Add file member.
4965         Not currently used, but simplifies code sharing.
4967         * macfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
4968         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
4969         (x_reference_bitmap, x_create_bitmap_from_data)
4970         (x_create_bitmap_from_file, x_destroy_bitmap)
4971         (x_destroy_all_bitmaps, x_create_bitmap_mask)
4972         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
4973         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
4974         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
4975         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
4976         (define_image_type, lookup_image_type, valid_image_p)
4977         (image_error, enum image_value_type, struct image_keyword)
4978         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
4979         (make_image, free_image, prepare_image_for_display, image_ascent)
4980         (four_corners_best, image_background, image_background_transparent)
4981         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
4982         (make_image_cache, free_image_cache, clear_image_cache)
4983         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
4984         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
4985         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
4986         (find_image_fsspec, image_load_qt_1, image_load_quicktime)
4987         (init_image_func_pointer, image_load_quartz2d)
4988         (struct ct_color, init_color_table, free_color_table)
4989         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
4990         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
4991         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
4992         (x_disable_image, x_build_heuristic_mask)
4993         (XBM support, XPM support, PBM support, PNG support, JPEG support)
4994         (TIFF support, GIF support, Ghostscript support): Merge with image
4995         code from xfns.c and macfns.c into image.c.
4996         (syms_of_xfns): Move image related symbols to image.c.
4997         (init_external_image_libraries, init_xfns): Remove; initialization
4998         moved to init_image in image.c.
5000         * w32fns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5001         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5002         (x_reference_bitmap, x_create_bitmap_from_data)
5003         (x_create_bitmap_from_file, x_destroy_bitmap)
5004         (x_destroy_all_bitmaps, x_create_bitmap_mask)
5005         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5006         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5007         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5008         (define_image_type, lookup_image_type, valid_image_p)
5009         (image_error, enum image_value_type, struct image_keyword)
5010         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5011         (make_image, free_image, prepare_image_for_display, image_ascent)
5012         (four_corners_best, image_background, image_background_transparent)
5013         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
5014         (make_image_cache, free_image_cache, clear_image_cache)
5015         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5016         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5017         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5018         (struct ct_color, init_color_table, free_color_table)
5019         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5020         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5021         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5022         (x_disable_image, x_build_heuristic_mask)
5023         (XBM support, XPM support, PBM support, PNG support, JPEG support)
5024         (TIFF support, GIF support, Ghostscript support): Merge with image
5025         code from xfns.c and macfns.c into image.c.
5026         (syms_of_xfns): Move image related symbols to image.c.
5027         (init_external_image_libraries, init_xfns): Remove; initialization
5028         moved to init_image in image.c.
5030         * xfns.c (Vx_bitmap_file_path, Vimage_cache_eviction_delay)
5031         (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5032         (x_reference_bitmap, x_create_bitmap_from_data)
5033         (x_create_bitmap_from_file, x_destroy_bitmap)
5034         (x_destroy_all_bitmaps, x_create_bitmap_mask)
5035         (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols)
5036         (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask)
5037         (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter)
5038         (define_image_type, lookup_image_type, valid_image_p)
5039         (image_error, enum image_value_type, struct image_keyword)
5040         (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p)
5041         (make_image, free_image, prepare_image_for_display, image_ascent)
5042         (four_corners_best, image_background, image_background_transparent)
5043         (x_clear_image_1,  x_clear_image, x_alloc_image_color)
5044         (make_image_cache, free_image_cache, clear_image_cache)
5045         (Fclear_image_cache, postprocess_image, lookup_image, cache_image)
5046         (forall_images_in_image_cache, x_create_x_image_and_pixmap)
5047         (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file)
5048         (struct ct_color, init_color_table, free_color_table)
5049         (lookup_rgb_color, lookup_pixel_color, colors_in_color_table)
5050         (cross_disabled_images, x_to_xcolors, x_from_xcolors)
5051         (x_detect_edges, x_emboss, x_laplace, x_edge_detection)
5052         (x_disable_image, x_build_heuristic_mask)
5053         (XBM support, XPM support, PBM support, PNG support, JPEG support)
5054         (TIFF support, GIF support, Ghostscript support): Merge with
5055         w32fns.c and macfns.c image code into image.c.
5056         (syms_of_xfns): Move image related symbols to image.c.
5057         (init_xfns): Remove; initialization moved to init_image in image.c.
5059         * lisp.h (syms_of_image, init_image): Add protoypes.
5060         (init_xfns): Remove prototype.
5062         * dispextern.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5063         (x_reference_bitmap, x_create_bitmap_from_data)
5064         (x_create_bitmap_from_file, x_destroy_bitmap)
5065         (x_create_bitmap_mask): Move prototypes from dispextern.h.
5066         (gamma_correct) [MAC_OS]: Add prototype.
5068         * xterm.h (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
5069         (x_reference_bitmap, x_create_bitmap_from_data)
5070         (x_create_bitmap_from_file, x_destroy_bitmap)
5071         (x_create_bitmap_mask): Move prototypes to dispextern.h.
5073 2004-03-09  Kenichi Handa  <handa@etlken2>
5075         * coding.c (decode_coding_emacs_mule): Handle insufficent source
5076         correctly.
5078 2004-03-04  Richard M. Stallman  <rms@gnu.org>
5080         * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS): New definition.
5082         * window.c (Fdisplay_buffer): Doc fix.
5084         * buffer.c (Fpop_to_buffer): Doc fix.
5086 2004-03-03  Kim F. Storm  <storm@cua.dk>
5088         * xdisp.c (display_line): Fix call to get_overlay_arrow_glyph_row.
5090 2004-03-02  Stefan Monnier  <monnier@iro.umontreal.ca>
5092         * editfns.c (Ftranslate_region): Lisp_Object/int mixup.
5094 2004-03-02  Richard M. Stallman  <rms@gnu.org>
5096         * indent.c (compute_motion): Save vpos in prev_vpos, like hpos etc.
5098 2004-03-02  Kenichi Handa  <handa@m17n.org>
5100         * doc.c (Fsubstitute_command_keys): Fix counding bytes.
5102 2004-03-02  Kim F. Storm  <storm@cua.dk>
5104         * window.h (struct window): New member overlay_arrow_bitmap.
5106         * window.c (make_window): Initialize overlay_arrow_bitmap.
5108         * xdisp.c (Voverlay_arrow_variable_list): New variable to properly
5109         implement and integrate multiple overlay arrows with redisplay.
5110         (syms_of_xdisp): DEFVAR_LISP and initialize it.
5111         (last_arrow_position, last_arrow_string): Replace by properties.
5112         (Qlast_arrow_position, Qlast_arrow_string)
5113         (Qoverlay_arrow_string, Qoverlay_arrow_bitmap): New variables.
5114         (syms_of_xdisp): Intern and staticpro them.
5115         (overlay_arrow_string_or_property, update_overlay_arrows)
5116         (overlay_arrow_in_current_buffer_p, overlay_arrows_changed_p)
5117         (overlay_arrow_at_row): New functions for multiple overlay arrows.
5118         (redisplay_internal): Use them instead of directly accessing
5119         Voverlay_arrow_position etc. for multiple overlay arrows.
5120         (mark_window_display_accurate): Use update_overlay_arrows.
5121         (try_cursor_movement): Use overlay_arrow_in_current_buffer_p.
5122         (try_window_id): Use overlay_arrows_changed_p.
5123         (get_overlay_arrow_glyph_row): Add overlay_arrow_string arg.
5124         (display_line): Use overlay_arrow_at_row to check multiple
5125         overlay arrows, and get relevant overlay-arrow-string and
5126         overlay-arrow-bitmap.  Set w->overlay_arrow_bitmap accordingly.
5127         (produce_image_glyph): Set pixel_width = 0 for fringe bitmap.
5128         (syms_of_xdisp): Remove last_arrow_position and last_arrow_string.
5130         * fringe.c (draw_fringe_bitmap): Use w->overlay_arrow_bitmap if set.
5131         (update_window_fringes): Remove unused code.
5133 2004-03-01  Jason Rumney  <jasonr@gnu.org>
5135         * w32term.c (w32_read_socket): Fix last change to ButtonPress handling.
5137 2004-03-01  Juanma Barranquero  <lektu@terra.es>
5139         * fringe.c (Fdefine_fringe_bitmap): Fix typo in docstring.
5141         * makefile.w32-in ($(BLD)/fringe.$(O)): Add dependencies.
5143 2004-03-01  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5145         * xfns.c (Fx_display_color_cells): Use number of planes to calculate
5146         how many colors can be displayed.
5148 2004-03-01  Kenichi Handa  <handa@m17n.org>
5150         * editfns.c (Ftranslate_region): Handle multibyte chars in TABLE
5151         correctly.
5153 2004-02-28  Kim F. Storm  <storm@cua.dk>
5155         * dispnew.c (update_window): Update header line also if there are
5156         no other changes in window (move code after set_cursor label).
5158         * lisp.h (mark_window_display_accurate): Remove prototype.
5160         * window.c (window_loop, Fforce_window_update): Force mode line
5161         updates by setting prevent_redisplay_optimizations_p and
5162         update_mode_lines.
5164 2004-02-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5166         * xfns.c (x_window): Fix indentation.
5168         * xterm.c (x_calc_absolute_position): Call x_real_positions
5169         to get WM window sizes and use those to calculate position.
5170         (x_set_offset): Remove code commented out.
5172 2004-02-28  Miles Bader  <miles@gnu.org>
5174         * keyboard.c (adjust_point_for_property): #ifdef-out dodgy xassert.
5176 2004-02-28  Kim F. Storm  <storm@cua.dk>
5178         * keyboard.c (kbd_buffer_store_event_hold): New function to store
5179         an event into kbd fifo, but with special handling of quit event;
5180         a quit event is saved for later, and further events are discarded
5181         until the saved quit event has been processed.
5182         (kbd_buffer_store_event): Use kbd_buffer_store_event_hold.
5183         (gen_help_event): Store help event in kbd fifo.
5184         (NREAD_INPUT_EVENTS): Remove.
5185         (read_avail_input): Adapt to new read_socket_hook interface.
5186         Remove allocation and initialization of local input_event buffer,
5187         as read_socket_hook stores events directly in fifo.  Allocate and
5188         initialize local hold_quit event to handle postponed quit event
5189         (and store it if set by kbd_buffer_store_event_hold).
5191         * keyboard.h (kbd_buffer_store_event_hold): Add prototype.
5192         (gen_help_event): Fix prototype.
5194         * macterm.c (XTread_socket): Remove bufp_r and
5195         numcharsp args.  Add hold_quit arg.
5196         Rework to use just one, local, inev input_event.  Store inev
5197         directly in fifo using kbd_buffer_store_event_hold.
5199         * sysdep.c (BUFFER_SIZE_FACTOR): Remove.
5200         (read_input_waiting): Adapt to new read_socket_hook interface.
5201         Remove allocation and initialization of local input_event buffer,
5202         as read_socket_hook stores events directly in fifo.  Allocate and
5203         initialize local hold_quit event to handle postponed quit event
5204         (and store it if set by kbd_buffer_store_event_hold).
5206         * term.c (read_socket_hook): Fix arg list.
5208         * termhooks.h (read_socket_hook): Fix prototype.
5210         * w32inevt.c (w32_console_read_socket): Remove bufp_r and
5211         numcharsp args.  Add hold_quit arg.
5212         Rework to use just one, local, inev input_event.  Store inev
5213         directly in fifo using kbd_buffer_store_event_hold.
5215         * w32inevt.h (w32_console_mouse_position): Fix prototype.
5217         * w32term.c (w32_read_socket): Remove bufp_r and numcharsp args.
5218         Add hold_quit arg.  Rework to use just one, local, inev
5219         input_event.  Store inev directly in fifo using
5220         kbd_buffer_store_event_hold.  Update count in one place.
5221         Postpone call to gen_help_event until inev is stored; use new
5222         local do_help for this.
5223         Remove local emacs_event in handing of ButtonPress event; just use
5224         inev instead (so no reason to copy it later).
5226         * xsmfns.c (x_session_check_input): Remove numchars arg.
5228         * xterm.c (x_focus_changed, x_detect_focus_change):
5229         Remove numchars arg.  Always store event into bufp arg.
5230         Return nothing.  Callers changed accordingly.
5231         (glyph_rect): Simplify.
5232         (STORE_KEYSYM_FOR_DEBUG): New macro.
5233         (SET_SAVED_MENU_EVENT): Use inev instead of bufp, etc.
5234         (current_bufp, current_numcharsp) [USE_GTK]: Remove.
5235         (current_hold_quit) [USE_GTK]: Add.
5236         (event_handler_gdk): Adapt to new handle_one_xevent.
5237         (handle_one_xevent): Remove bufp_r and numcharsp args.
5238         Add hold_quit arg.  Rework to use just one, local, inev
5239         input_event.  Store inev directly in fifo using
5240         kbd_buffer_store_event_hold.  Update count in one place.
5241         Postpone call to gen_help_event until inev is stored; use new
5242         local do_help for this.
5243         Simplify handling of keysyms (consolidate common code).  Fix bug
5244         where count was updated with nchars instead of nbytes.
5245         Remove local emacs_event in handing of ButtonPress event; just use
5246         inev instead (so no reason to copy it later).
5247         Remove `out' label.  Rename label `ret' to `done'; add various
5248         `goto done' to clarify code flow in deeply nested blocks.
5249         (x_dispatch_event): Simplify as handle_one_xevent now calls
5250         kbd_buffer_store_event itself.
5251         (XTread_socket): Remove bufp_r and numcharsp args.  Add hold_quit
5252         arg.  Call handle_one_xevent with new arglist.  Store event from
5253         x_session_check_input in fifo.
5254         [USE_GTK]: Setup current_hold_quit.
5255         Decrement handling_signal before unblocking input.
5256         (x_initialize) [USE_GTK]: Initialize current_count.
5258         * xterm.h (x_session_check_input): Fix prototype.
5260 2004-02-26  YAMAMOTO Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
5262         * s/darwin.h (LD_SWITCH_SYSTEM_TEMACS): Add `-framework QuickTime'.
5264         * dispextern.h [MAC_OSX]: Do not include Carbon/Carbon.h (now in
5265         macgui.h).
5267         * emacs.c (main) [HAVE_CARBON]: Call init_xfns.
5269         * macgui.h [MAC_OSX]: Include Carbon/Carbon.h.
5270         (mktime, DEBUG, Z, free, malloc, realloc, max, min)
5271         (init_process) [MAC_OSX] : Avoid conflicts with Carbon/Carbon.h.
5272         [!MAC_OSX]: Include QDOffscreen.h and Controls.h.
5273         (INFINITY) [MAC_OSX]: Avoid conflict with definition in math.h.
5274         (Bitmap): Remove typedef.
5275         (Pixmap): Change int to GWorldPtr.
5277         * macmenu.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5279         * macterm.h [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5280         (RED16_FROM_ULONG, GREEN16_FROM_ULONG, BLUE16_FROM_ULONG):
5281         New #define to extract 16-bit depth color components from unsigned
5282         long representation.
5283         (PIX_MASK_DRAW, PIX_MASK_RETAIN): New #define to represent pixel
5284         colors used for masks.
5285         (struct mac_display_info): Add color_p.  Remove n_cbits.
5287         * macfns.c: Include sys/types.h and sys/stat.h.
5288         [MAC_OSX]: Do not include Carbon/Carbon.h (now in macgui.h).
5289         Include QuickTime/QuickTime.h.
5290         (XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
5291         (XSetForeground, mac_draw_line_to_pixmap): Add externs for
5292         functions defined in macterm.c.
5293         (XImagePtr): New typedef.  Corresponds to XImage * in xfns.c.
5294         (ZPixmap): New #define for compatibility with xfns.c.
5295         (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
5296         (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
5297         (find_image_fsspec, image_load_qt_1, image_load_quicktime):
5298         New functions.
5299         (four_corners_best, x_create_x_image_and_pixmap)
5300         (x_destroy_x_image, unwind_create_frame, x_disable_image)
5301         (x_edge_detection, init_color_table, colors_in_color_table)
5302         (lookup_rgb_color, lookup_pixel_color, postprocess_image)
5303         (x_put_x_image, slurp_file, xbm_scan, xbm_load, xbm_load_image)
5304         (xbm_image_p, xbm_read_bitmap_data, xbm_file_p, x_to_xcolors)
5305         (x_from_xcolors, x_detect_edges): New declarations (from xfns.c).
5306         (mac_color_map_lookup, x_to_mac_color): Fix Lisp_Object/unsigned
5307         long mixup.
5308         (mac_defined_color, x_to_x_colors): Use RED16_FROM_ULONG etc.
5309         (x_decode_color): Don't use n_cbits (in struct mac_display_info).
5310         (x_set_foreground_color, x_set_cursor_color): Sync with w32fns.c.
5311         (x_set_cursor_type, Fxw_color_values, valid_image_p)
5312         (image_value_type, parse_image_spec, image_ascent, x_clear_image)
5313         (x_alloc_image_color, clear_image_cache, lookup_image)
5314         (x_find_image_file, xbm_read_bitmap_file_data)
5315         (enum xbm_keyword_index, xbm_format, xbm_image_p, xbm_scan)
5316         (xbm_read_bitmap_data, xbm_load, pbm_image_p, pbm_scan_number)
5317         (enum pbm_keyword_index, pbm_format, enum png_keyword_index)
5318         (png_format, png_image_p, enum jpeg_keyword_index, jpeg_format)
5319         (jpeg_image_p, enum tiff_keyword_index, tiff_format, tiff_image_p)
5320         (enum gif_keyword_index, gif_format, gif_image_p): Sync with xfns.c.
5321         (x_make_gc): Sync with xfns.c.  Enclose unused `border_tile' with
5322         #if 0.
5323         (x_free_gcs): Sync with xfns.c.  Enclose unused `border_tile' with
5324         #if 0.  Free white_relief.gc and black_relief.gc.
5325         (unwind_create_frame, x_emboss, x_laplace, x_edge_detection):
5326         New functions (from xfns.c).
5327         (Fx_create_frame): Record unwind_create_frame.
5328         (Fxw_display_color_p): Use dpyinfo->color_p.
5329         (Fx_display_grayscale_p, Fx_display_planes): Don't use
5330         dpyinfo->n_cbits.
5331         (Fx_display_color_cells): Use dpyinfo->n_planes;
5332         (QCmatrix, QCcolor_adjustment, QCmask, Qemboss, Qedge_detection)
5333         (Qheuristic, cross_disabled_images, emboss_matrix)
5334         (laplace_matrix): New variables (from xfns.c).
5335         (Fimage_size, Fimage_mask_p, four_corners_best, image_background)
5336         (x_clear_image_1, postprocess_image, slurp_file, xbm_load_image)
5337         (xbm_file_p, x_to_xcolors, x_from_xcolors, x_detect_edges)
5338         (image_background_transparent): New function (from xfns.c).
5339         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5340         (image_load_quicktime): Add declaration.
5341         [MAC_OSX] (image_load_quartz2d): Likewise.
5342         [MAC_OSX] (CGImageCreateWithPNGDataProviderProcType): New typedef.
5343         [MAC_OSX] (MyCGImageCreateWithPNGDataProvider): New variable.
5344         [MAC_OSX] (init_image_func_pointer, image_load_quartz2d): New funs.
5345         (xbm_load_image_from_file, x_laplace_read_row)
5346         (x_laplace_write_row, pbm_read_file): Remove functions.
5347         [HAVE_XPM] (enum xpm_keyword_index, xpm_format, xpm_image_p)
5348         (xpm_load): Sync with xfns.c (although XPM is not supported yet).
5349         (colors_in_color_table): Sync with xfns.c (although not used).
5350         (lookup_rgb_color): Don't lookup color table.  Just do gamma
5351         correction.
5352         (COLOR_INTENSITY): New #define (from xfns.c).
5353         (x_disable_image): New function (from xfns.c).
5354         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5355         (x_build_heuristic_mask): Sync with xfns.c.
5356         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5357         (HAVE_PBM): Remove #ifdef.
5358         (pbm_load): Sync with xfns.c.  Set img->width and img->height
5359         before IMAGE_BACKGROUND.
5360         (png_image_p, png_load): Don't enclose declarations with #if HAVE_PNG.
5361         (Qpng, enum png_keyword_index, png_format, png_type, png_image_p):
5362         Don't enclose with #if HAVE_PNG.
5363         [!HAVE_PNG] (png_load) [MAC_OSX]: Use image_load_quartz2d if a
5364         symbol _CGImageCreateWithPNGDataProvider is defined.
5365         Otherwise use image_load_quicktime.
5366         [!HAVE_PNG] (png_load) [!MAC_OSX]: Use image_load_quicktime.
5367         [HAVE_PNG] (png_load): Sync with xfns.c.
5368         Use PIX_MASK_DRAW/PIX_MASK_RETAIN.
5369         (jpeg_image_p, jpeg_load): Don't enclose declarations with #if
5370         HAVE_JPEG.
5371         (Qjpeg, enum jpeg_keyword_index, jpeg_format, jpeg_type)
5372         (jpeg_image_p): Don't enclose with #if HAVE_JPEG.
5373         [!HAVE_JPEG] (jpeg_load) [MAC_OSX]: Use image_load_quartz2d.
5374         [!HAVE_JPEG] (jpeg_load) [!MAC_OSX]: Use image_load_quicktime.
5375         [HAVE_JPEG] (jpeg_load): Sync with xfns.c.
5376         (tiff_image_p, tiff_load): Don't enclose declarations with #if
5377         HAVE_TIFF.
5378         (Qtiff, enum tiff_keyword_index, tiff_format, tiff_type)
5379         (tiff_image_p): Don't enclose with #if HAVE_TIFF.
5380         [!HAVE_TIFF] (tiff_load): Use image_load_quicktime.
5381         [HAVE_TIFF] (tiff_error_handler, tiff_warning_handler):
5382         New functions (from xfns.c).
5383         [HAVE_TIFF] (tiff_load): Sync with xfns.c.
5384         (gif_image_p, gif_load): Don't enclose declarations with #if HAVE_GIF.
5385         (Qgif, enum gif_keyword_index, gif_format, gif_type, gif_image_p):
5386         Don't enclose with #if HAVE_GIF.
5387         [!HAVE_GIF] (gif_load): Use Quicktime Movie Toolbox if it is
5388         animated gif.  Otherwise use image_load_quicktime.
5389         [HAVE_GIF] (gif_lib.h): Temporarily define DrawText as
5390         gif_DrawText to avoid conflict with QuickdrawText.h.
5391         [HAVE_GIF] (gif_load): Sync with xfns.c.
5392         (enum gs_keyword_index, gs_format, gs_image_p, gs_load)
5393         [HAVE_GHOSTSCRIPT] (x_kill_gs_process): Sync with xfns.c (although
5394         Ghostscript is not supported yet).
5395         (syms_of_macfns): Initialize Qemboss, Qedge_detection, Qheuristic,
5396         QCmatrix, QCcolor_adjustment, and QCmask.  Add DEFVAR_BOOL
5397         cross_disabled_images (from xfns.c).  Remove #if 0 for supported
5398         image types.  Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5399         HAVE_PNG.  Add defsubr for Simage_size and Simage_mask_p.
5400         (init_xfns): Remove #if HAVE_JPEG, HAVE_TIFF, HAVE_GIF, and
5401         HAVE_PNG.  Call EnterMovies to support animated gifs.
5402         Call init_image_func_pointer to bind a symbol
5403         _CGImageCreateWithPNGDataProvider if it is defined.
5405         * macterm.c [MAC_OSX]: Don't include Carbon/Carbon.h (now in macgui.h).
5406         (x_draw_bar_cursor): Sync declaration with xterm.c.
5407         (XFreePixmap, mac_draw_rectangle_to_pixmap, mac_copy_area)
5408         (mac_copy_area_to_pixmap): Implementation with GWorld (offscreen
5409         graphics).
5410         (mac_set_forecolor, mac_set_backcolor): Use RED16_FROM_ULONG etc.
5411         (mac_draw_line_to_pixmap, XCreatePixmap)
5412         (XCreatePixmapFromBitmapData, mac_fill_rectangle_to_pixmap)
5413         (mac_copy_area_with_mask, mac_copy_area_with_mask_to_pixmap):
5414         New functions.
5415         (mac_draw_bitmap) [TARGET_API_MAC_CARBON]:
5416         Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5417         Cast bits to char *.
5418         (reflect_byte): New function (from w32fns.c).
5419         (mac_create_bitmap_from_bitmap_data): Use it and don't stuff bits
5420         due to byte alignment.
5421         (mac_scroll_area) [TARGET_API_MAC_CARBON]:
5422         Use GetPortBitMapForCopyBits instead of the cast to Bitmap *.
5423         (XSetForeground): Remove static (now used in macfns.c).
5424         (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New #define (from w32term.c).
5425         (mac_alloc_lighter_color, x_destroy_window): Sync with w32term.c.
5426         (x_setup_relief_color, x_setup_relief_colors, x_draw_box_rect)
5427         (x_draw_glyph_string_box, x_draw_image_foreground)
5428         (x_draw_image_foreground_1, x_draw_image_glyph_string)
5429         (x_draw_stretch_glyph_string, x_draw_glyph_string)
5430         (x_draw_hollow_cursor, x_draw_bar_cursor, mac_draw_window_cursor):
5431         Sync with xterm.c.
5432         (x_draw_relief_rect): Sync with xterm.c.  Make 1 pixel shorter
5433         than the xterm.c version when a strictly horizontal or vertical
5434         line is drawn.
5435         (XTset_terminal_window): Add static.
5436         (x_make_frame_visible): Add UNBLOCK_INPUT.
5437         (x_free_frame_resources): New funcion (from xterm.c).
5438         (XTread_socket): Call handle_tool_bar_click if mouse up/down event
5439         occurs in tool bar area.
5440         (mac_initialize_display_info): Remove dpyinfo->n_cbits.
5441         Set dpyinfo->color_p.  Determine dpyinfo->n_planes using HasDepth.
5442         Initialize image cache.
5443         (stricmp, wildstrieq, mac_font_pattern_match, mac_font_match):
5444         Enclose unused functions with #if 0.
5445         (Qbig5, Qcn_gb, Qsjis, Qeuc_kr): New variables.
5446         (decode_mac_font_name): New function to apply code conversions
5447         from a mac font name to an XLFD font name according to its script code.
5448         (x_font_name_to_mac_font_name): Apply code conversion from an XLFD
5449         font name to a mac font name according to REGISTRY and ENCODING fields.
5450         (init_font_name_table) [TARGET_API_MAC_CARBON]: Don't use a font
5451         whose name starts with `.'.
5452         (init_font_name_table): Use decode_mac_font_name.  Add both
5453         jisx0208.1983-sjis and jisx0201.1976-0 entries if the script code
5454         of a font is smJapanese.
5455         (mac_do_list_fonts): New function to list fonts that match a given
5456         pattern.
5457         (x_list_fonts, XLoadQueryFont): Use it.
5458         (XLoadQueryFont): Set rbearing field for each variable width
5459         character to avoid needless redraw.
5460         (syms_of_macterm): Initialize Qbig5, Qcn_gb, Qsjis, and Qeuc_kr.
5462 2004-02-26  Kim F. Storm  <storm@cua.dk>
5464         * keyboard.c (NREAD_INPUT_EVENTS): Temporarily increase to 512
5465         as read_socket_hook handler on X aborts if buffer is too small
5466         and W32 handler doesn't always check buffer limit.
5468         * xdisp.c (handle_single_display_prop): Handle left-fringe and
5469         right-fringe similar to a display margin image.  Specifically,
5470         the characters having the fringe prop are no longer shown, and
5471         we use IT_IMAGE/next_element_from_image with image_id = -1 to
5472         do this.  Set fringe bitmap face_id in it->face_id.
5473         (produce_image_glyph): Handle image_id < 0 as "no image" case, but
5474         still realize it->face (i.e. the fringe bitmap face).
5476 2004-02-25  Miles Bader  <miles@gnu.org>
5478         * xdisp.c (check_it): Check string/string_pos consistency.
5479         (init_iterator): Initialize string-related fields properly.
5481 2004-02-11  Miles Bader  <miles@gnu.org>
5483         * xdisp.c (produce_image_glyph): Force negative descents to zero.
5485 2004-02-10  Miles Bader  <miles@gnu.org>
5487         * xfns.c (lookup_image): Remove xassert(!interrupt_input_blocked);
5488         BLOCK_INPUT can be nested, so it doesn't make much sense.
5490 2004-02-24  Michael Mauger  <mmaug@yahoo.com>
5492         * w32fns.c (slurp_file, xbm_scan, xbm_load_image)
5493         (xbm_read_bitmap_data): Use unsigned char for image data.
5495 2004-02-23  Luc Teirlinck  <teirllm@auburn.edu>
5497         * abbrev.c (Finsert_abbrev_table_description): Doc fix.
5499 2004-02-22  Jason Rumney  <jasonr@gnu.org>
5501         * w32term.c (w32_draw_fringe_bitmap): Draw overlaid bitmaps
5502         correctly over other bitmaps.
5504 2004-02-21  Eli Zaretskii  <eliz@gnu.org>
5506         * emacs.c (USAGE1): Split into two halves.
5507         (USAGE2): Second half of the old USAGE1.
5508         (USAGE3): Rename from USAGE2.
5509         (USAGE4): Rename from USAGE3.
5511 2004-02-21  Juri Linkov  <juri@jurta.org>
5513         * emacs.c (USAGE1): Add --no-desktop.  Move --display from USAGE2.
5514         Fix --multibyte.  Move --help, --version to USAGE2.  Add alias
5515         --file.  Fix -f, -l.  Sort options.  Untabify.
5516         (USAGE2): Add -hb.  Fix --name, --title.  Sort options.  Untabify.
5518 2004-02-19  Luc Teirlinck  <teirllm@auburn.edu>
5520         * category.c (Fdefine_category, Fcategory_docstring)
5521         (Fget_unused_category, Fset_category_table)
5522         (Fcategory_set_mnemonics): Doc fixes.
5524 2004-02-20  Kim F. Storm  <storm@cua.dk>
5526         * keyboard.c: Undo 2004-02-16 and 2004-02-17 changes.
5527         The following changes are relative to the 2004-01-21 revision.
5528         (NREAD_INPUT_EVENTS): Define as max number of input events to read
5529         in one call to read_socket_hook.  Value is 8.
5530         (read_avail_input): Separate and rework handling of read_socket_hook
5531         and non-read_socket_hook cases.  Use smaller input_event buffer
5532         in read_socket_hook case, and repeat if full buffer is read.
5533         Use new local variable 'discard' to skip input after C-g.
5534         In non-read_socket_hook case, just use a single input_event, and
5535         call kbd_buffer_store_event on the fly for each character.
5537 2004-02-19  Stefan Monnier  <monnier@iro.umontreal.ca>
5539         * lisp.h (union Lisp_Object): Give a more precise type for `type'.
5540         Remove unused `gu' alternative.
5542 2004-02-19  Andreas Schwab  <schwab@suse.de>
5544         * fringe.c (Fdefine_fringe_bitmap): Use && instead of & to avoid
5545         warning.
5547 2004-02-18  Kim F. Storm  <storm@cua.dk>
5549         * xdisp.c (get_window_cursor_type, display_and_set_cursor):
5550         Fix last change.
5552 2004-02-17  Kim F. Storm  <storm@cua.dk>
5554         * xdisp.c (fast_find_position): Fix return value of new version;
5555         it was inverted compared to the 21.1 version.
5556         (get_window_cursor_type): Don't look at glyph if NULL.
5557         (display_and_set_cursor): Set glyph to NULL if cursor in fringe.
5559         * keyboard.c: Rework previous change; it didn't consider that the
5560         buf array was allocated on the stack.
5561         (prev_read): Remove variable.
5562         (read_avail_input_buf): New static event buffer array.
5563         (in_read_avail_input): New static variable to handle re-entrancy.
5564         (read_avail_input): Change buf to pinter to read_avail_input_buf.
5565         Use in_read_avail_input to handle re-entrance; when re-entered,
5566         fully initialize and use tmp_buf array instead of read_avail_input_buf.
5567         Do not initialize read_avail_input_buf in full here; instead assume it
5568         is always cleared on entry.  To ensure that, we clear (just) the
5569         entries that were used before we return.
5570         (init_keyboard): Initialize read_avail_input_buf here.
5572 2004-02-16  Jesper Harder  <harder@ifa.au.dk>
5574         * cmds.c (Fend_of_line): Doc fix.
5576 2004-02-16  Dmitry Antipov  <dmitry.antipov@mail.ru>  (tiny change)
5578         * keyboard.c (prev_read): New static variable.
5579         (read_avail_input): Use it to zero out only those slots in buf[]
5580         that were used last time we were called.
5582 2004-02-16  Eli Zaretskii  <eliz@gnu.org>
5584         * Makefile.in (obj): Move fringe.o from here...
5585         (XOBJ, MAC_OBJ): ...to here.
5587 2004-02-16  Stephen Eglen  <stephen@gnu.org>
5589         * fringe.c (init_fringe_bitmap): Define j in MAC_OS code.
5591 2004-02-15  Stefan Monnier  <monnier@iro.umontreal.ca>
5593         * data.c (Fbyteorder):
5594         * fringe.c (Fdefine_fringe_bitmap):
5595         * xdisp.c (handle_single_display_prop):
5596         * xselect.c (x_handle_dnd_message): Lisp_Object/int mixup.
5598 2004-02-16  Jason Rumney  <jasonr@gnu.org>
5600         * w32term.c (w32_draw_fringe_bitmap): Handle overlay fringe bitmaps.
5602 2004-02-15  Steven Tamm  <steventamm@mac.com>
5604         * macterm.c (Vmac_emulate_three_button_mouse): New variable for
5605         controlling emulation of a three button mouse with option and
5606         command keys.
5607         (Qreverse, mac_get_enumlated_btn): Handle the emulation
5608         (mac_event_to_emacs_modifiers, XTread_socket): Ditto.
5610 2004-02-15  Kim F. Storm  <storm@cua.dk>
5612         * buffer.c (syms_of_buffer): Doc fix for indicate-buffer-boundaries.
5614         * fringe.c (init_fringe_bitmap) [MAC_OS, WORDS_BIG_ENDIAN]:
5615         Perform byte-swapping.
5617 2004-02-14  Kim F. Storm  <storm@cua.dk>
5619         * dispextern.h (struct draw_fringe_bitmap_params): Change member
5620         bits from char to short to facilitate wider bitmaps.
5621         (struct redisplay_interface): Fix prototype of define_fringe_bitmap
5622         member.
5624         * fringe.c (struct fringe_bitmap): Change member bits from char to
5625         short to facilitate 16 bits wide bitmaps.  Modify all standard
5626         bitmaps accordingly.
5627         (BYTES_PER_BITMAP_ROW, STANDARD_BITMAP_HEIGHT): New macros.
5628         (FRBITS): Use STANDARD_BITMAP_HEIGHT instead of just sizeof.
5629         (draw_fringe_bitmap): Ditto.
5630         (init_fringe_bitmap) [MAC_OS]: Don't bitswap.
5631         (init_fringe_bitmap) [HAVE_X_WINDOWS]: Enhance bitswapping to
5632         handle up to 16 bits wide bitmaps.
5633         (Fdefine_fringe_bitmap): Doc fix.  Handle wider bitmaps.
5634         (Ffringe_bitmaps_at_pos): Add missing arg declarations.
5636         * macterm.c (mac_draw_bitmap): Handle 16 bits wide bitmaps directly.
5637         (x_draw_fringe_bitmap): Use enhanced mac_draw_bitmap, so we no longer
5638         need to call mac_create_bitmap_from_bitmap_data and mac_free_bitmap.
5640         * w32term.c (w32_define_fringe_bitmap): Bitmaps are now 16 bits wide,
5641         so it is no longer necessary to expand them here.
5643         * xterm.c (x_draw_fringe_bitmap): Handle wider bitmaps (max 16 bits).
5645 2004-02-12  Kim F. Storm  <storm@cua.dk>
5647         * window.c (Fwindow_fringes): Doc fix.
5649 2004-02-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5651         * xselect.c (x_get_foreign_selection): Add new optional parameter
5652         time_stamp.
5653         (Fx_get_selection_internal): Ditto, pass time_stamp to
5654         x_get_foreign_selection.
5656         * data.c (Fbyteorder): New function.
5658 2004-02-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5660         * atimer.c: Move include stdio.h to same place as in other files.
5662         * region-cache.c: Ditto.
5664         * sysdep.c: Ditto.
5666         * xfaces.c: Ditto.
5668 2004-02-09  Sam Steingold  <sds@gnu.org>
5670         * w32term.c (w32_draw_fringe_bitmap): Fix a typo in the last patch.
5672 2004-02-09  Kim F. Storm  <storm@cua.dk>
5674         * fringe.c: New file.  Move original fringe related declarations
5675         and code from dispextern.h and xdisp.c here.
5676         Rework code to support user defined fringe bitmaps, redefining
5677         standard bitmaps, ability to overlay user defined bitmap with
5678         overlay arrow bitmap, and add faces to bitmaps.
5679         (Voverflow_newline_into_fringe): Declare here.
5680         (enum fringe_bitmap_align): New enum.
5681         (..._bits): All bitmaps are now defined without bitswapping; that
5682         is now done in init_fringe_once (if necessary).
5683         (standard_bitmaps): New array with specifications for the
5684         standard fringe bitmaps.
5685         (fringe_faces): New array.
5686         (valid_fringe_bitmap_id_p): New function.
5687         (draw_fringe_bitmap_1): Rename from draw_fringe_bitmap.
5688         (draw_fringe_bitmap): New function which draws fringe bitmap,
5689         possibly overlaying bitmap with cursor in right fringe or the
5690         overlay arrow in the left fringe.
5691         (update_window_fringes): Do not handle overlay arrow here.
5692         Compare and copy fringe bitmap faces.
5693         (init_fringe_bitmap): New function.
5694         (Fdefine_fringe_bitmap, Fdestroy_fringe_bitmap): New DEFUNs to
5695         define and destroy user defined fringe bitmaps.
5696         (Fset_fringe_bitmap_face): New DEFUN to set face for a fringe bitmap.
5697         (Ffringe_bitmaps_at_pos): New DEFUN to read current fringe bitmaps.
5698         (syms_of_fringe): New function.  Defsubr new DEFUNs.
5699         DEFVAR_LISP Voverflow_newline_into_fringe.
5700         (init_fringe_once, init_fringe): New functions.
5701         (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: New functions.
5703         * Makefile.in (obj): Add fringe.o.
5704         (fringe.o): New dependencies.
5706         * dispextern.h (FRINGE_ID_BITS): New definition for number of
5707         bits allocated to hold a fringe number.  Increase number of bits
5708         from 4 to 8 to allow user defined fringe bitmaps.
5709         (struct glyph_row, struct it): New members left_user_fringe_bitmap,
5710         left_user_fringe_face_id, right_user_fringe_bitmap,
5711         right_user_fringe_face_id.
5712         (enum fringe_bitmap_type, struct fringe_bitmap, fringe_bitmaps):
5713         Move to new file fringe.c.
5714         (MAX_FRINGE_BITMAPS): Define here.
5715         (struct draw_fringe_bitmap_params): New members bits, cursor_p,
5716         and overlay_p.  Change member which to int.
5717         (struct redisplay_interface): New members define_fringe_bitmap
5718         and destroy_fringe_bitmap.
5719         (valid_fringe_bitmap_id_p): Add prototype.
5720         (w32_init_fringe, w32_reset_fringes) [WINDOWS_NT]: Add prototypes.
5722         * dispnew.c (row_equal_p): Compare fringe bitmap faces and overlay
5723         arrows.
5724         (update_frame): Do flush_display if force_flush_display_p to
5725         ensure display (specifically fringes) are updated in a timely
5726         manner when resizing the frame by dragging the mouse.
5727         (update_window_line): Update row if overlay arrow changed.
5728         (scrolling_window): Redraw fringe bitmaps if fringe bitmap faces
5729         or overlay arrow changed.
5731         * emacs.c (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,
5732         syms_of_fringe, and init_fringe.
5734         * frame.h (struct frame): New member force_flush_display_p.
5736         * lisp.h (syms_of_fringe, init_fringe, init_fringe_once):
5737         Add prototypes.
5739         * macterm.c (mac_draw_bitmap): Add overlay_p arg.
5740         (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps;
5741         thanks to YAMAMOTO Mitsuharu for advice on how to do this.
5742         Use cursor color for displaying cursor in fringe.
5743         (x_redisplay_interface): Add null handlers for
5744         define_fringe_bitmap and destroy_fringe_bitmap functions.
5746         * w32term.c (w32_draw_fringe_bitmap): Copy unadapted code from
5747         xterm.c to handle overlayed fringe bitmaps and to use cursor color
5748         for displaying cursor in fringe.
5749         (w32_define_fringe_bitmap, w32_destroy_fringe_bitmap): New W32
5750         specific functions to define and destroy fringe bitmaps in fringe_bmp.
5751         (w32_redisplay_interface): Add them to redisplay_interface.
5752         (w32_term_init): Call w32_init_fringe instead of explicitly
5753         defining fringe bitmaps in fringe_bmp array.
5754         (x_delete_display): Call w32_reset_fringes instead of explicitly
5755         destroying fringe bitmaps in fringe_bmp array.
5757         * xdisp.c (Voverflow_newline_into_fringe, syms_of_xdisp)
5758         (left_bits, right_bits, up_arrow_bits, down_arrow_bits)
5759         (continued_bits, continuation_bits, ov_bits, first_line_bits)
5760         (last_line_bits, filled_box_cursor_bits, hollow_box_cursor_bits)
5761         (bar_cursor_bits, hbar_cursor_bits, zv_bits, hollow_square_bits)
5762         (fringe_bitmaps, draw_fringe_bitmap, draw_row_fringe_bitmaps)
5763         (draw_window_fringes, compute_fringe_widths, update_window_fringes):
5764         Move fringe handling vars and code to new file fringe.c.
5765         (handle_display_prop): Handle left-fringe and right-fringe
5766         display properties; store user fringe bitmaps in iterator.
5767         (move_it_in_display_line_to): Handle cursor in fringe at eob.
5768         (clear_garbaged_frames): Set force_flush_display_p if resized.
5769         (redisplay_window): Redraw fringe bitmaps if not just_this_one_p.
5770         (display_line): Handle cursor in fringe at eob.
5771         (display_line): Set row user fringe bitmaps from iterator.
5773         * xterm.c (x_draw_fringe_bitmap): Handle overlayed fringe bitmaps.
5774         Use cursor color for displaying cursor in fringe.
5775         (x_redisplay_interface): Add null handlers for
5776         define_fringe_bitmap and destroy_fringe_bitmap functions.
5778 2004-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5780         * macfns.c (Fx_change_window_property): Make doc string and
5781         parameters same as for X version.
5783         * w32fns.c (Fx_change_window_property): Ditto.
5785 2004-02-07  Kim F. Storm  <storm@cua.dk>
5787         * xdisp.c (hscroll_window_tree): Position cursor near to right
5788         margin in hscrolled window when jumping to end of line (rather
5789         than centering cursor).
5791         * process.c (wait_reading_process_input): Don't do adaptive read
5792         buffering if waiting for a specific process.
5794 2004-02-05  Luc Teirlinck  <teirllm@auburn.edu>
5796         * minibuf.c (Fminibufferp, Fread_from_minibuffer)
5797         (Fread_minibuffer, Feval_minibuffer)
5798         (Fread_string, Fread_no_blanks_input)
5799         (Fcompleting_read): Doc fixes.
5800         (syms_of_minibuf): Doc fixes for minibuffer-completion-table and
5801         completion-regexp-list.  Define Qcase_fold_search and staticpro it.
5802         (read_minibuf): Fix initial comment.
5803         (Ftry_completion, Fall_completions, Ftest_completion): Bind
5804         case-fold-search to the value of completion-ignore-case when
5805         checking completion-regexp-list.
5806         (Fdisplay_completion_list): Make it handle arguments that are
5807         symbols.  Doc fix.
5809 2004-02-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5811         * xterm.h: Add declaration of free_frame_menubar.
5813         * xfns.c (x_create_bitmap_mask): Removed unused variable depth.
5814         (x_set_menu_bar_lines): Added ! defined USE_GTK for olines.
5815         (Fx_change_window_property): Add declaration of parameters type and
5816         format.  Remove unused variable cons.
5818         * xselect.c: Include stdio,h.
5820 2004-02-05  Kenichi Handa  <handa@m17n.org>
5822         * fns.c (Fset_char_table_range): Fix previous change.
5824         * buffer.c (Fset_buffer_multibyte): Fix docstring.
5826 2004-02-04  Luc Teirlinck  <teirllm@auburn.edu>
5828         * editfns.c (Fchar_after, Fchar_before): Doc fixes.
5830 2004-02-04  Stefan Monnier  <monnier@iro.umontreal.ca>
5832         * keymap.c (Vmouse_events): Rename from Vmenu_events.
5833         (syms_of_keymap): Add mouse-[45], header-line, and mode-line to it.
5835 2004-02-04  Kenichi Handa  <handa@m17n.org>
5837         * fns.c (Fset_char_table_range): Handle charsets ascii,
5838         eight-bit-control, and eight-bit-graphic correctly.
5840 2004-02-03  Jason Rumney  <jasonr@gnu.org>
5842         * w32select.c (Fw32_set_clipboard_data): Make coding iso2022 safe.
5844         * w32fns.c (x_to_w32_font): Likewise.
5846 2004-02-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5848         * xterm.h: Add x_handle_dnd_message, x_check_property_data,
5849         x_fill_property_data, x_property_data_to_lisp and check_x_display_info.
5851         * xterm.c (handle_one_xevent): Call x_handle_dnd_message for
5852         ClientMessages.
5854         * xselect.c: Include termhooks.h and X11/Xproto.h
5855         (x_check_property_data, x_fill_property_data)
5856         (x_property_data_to_lisp, mouse_position_for_drop)
5857         (Fx_get_atom_name, x_handle_dnd_message): New functions for DND support.
5858         (Fx_send_client_event): Move here from xfns.c.
5859         (syms_of_xselect): Add Sx_get_atom_name and Sx_send_client_message.
5861         * xfns.c (x-send-client-message): Move to xselect.c
5862         (Fx_change_window_property): Add optional arguments TYPE, FORMAT and
5863         OUTER_P.
5864         (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P,
5865         VECTOR_RET_P.  Handle AnyPropertyType.  Call x_property_data_to_lisp
5866         if vector_ret_p is true.
5867         (syms_of_xfns): Sx_send_client_message moved to xselect.c.
5869 2004-02-02  Eli Zaretskii  <eliz@gnu.org>
5871         * fileio.c (Fcopy_file): If NEWNAME is a directory, expand the
5872         basename of FILE relative to it, not FILE itself.
5874 2004-02-02  Kenichi Handa  <handa@m17n.org>
5876         * coding.c (coding_restore_composition): Check invalid
5877         composition data more rigidly.
5879 2004-01-30  Luc Teirlinck  <teirllm@auburn.edu>
5881         * fileio.c (Fread_file_name_internal): Correctly handle the case
5882         where insert-default-directory is nil.
5883         (Fread_file_name): Always return an empty string if the user exits
5884         with an empty minibuffer.  Adapt the docstring accordingly.
5885         (syms_of_fileio): Adapt the docstring of insert-default-directory
5886         to the change in Fread_file_name.
5888 2004-01-29  Eli Zaretskii  <eliz@gnu.org>
5890         * alloca.c [!alloca]: Fix the prototype for xfree.
5892 2004-01-29  Kenichi Handa  <handa@m17n.org>
5894         * fns.c (string_char_to_byte): Optimize for ASCII only string.
5895         (string_byte_to_char): Likewise.
5897 2004-01-28  Peter Runestig  <peter@runestig.com>
5899         * makefile.w32-in, w32fns.c: Add `default-printer-name' function.
5901 2004-01-27  Steven Tamm  <steventamm@mac.com>
5903         * unexmacosx.c (unexec_copy): Do not copy more than was
5904         requested to prevent overwriting during unexec.
5906 2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5908         * process.c (sigchld_handler): Add comment about not calling malloc.
5910         * process.h: Add extern to synch_process_termsig.
5912 2004-01-27  Steven Tamm  <steventamm@mac.com>
5914         * macterm.c (make_mac_frame, make_mac_terminal_frame):
5915         Move setting of scroll bars from make_mac_frame to
5916         make_mac_terminal_frame to prevent clobbering of scroll-bar-mode.
5918 2004-01-26  Richard M. Stallman  <rms@gnu.org>
5920         * search.c (Freplace_match): Handle nonexistent
5921         back-references properly.
5923 2004-01-03  Richard M. Stallman  <rms@gnu.org>
5925         * window.c (decode_any_window): New function.
5926         (Fwindow_height, Fwindow_width, Fwindow_edges)
5927         (Fwindow_pixel_edges, Fwindow_inside_edges)
5928         (Fwindow_inside_pixel_edges): Use decode_any_window.
5930 2004-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5932         * process.h: synch_process_termsig new variable.
5934         * callproc.c: Define synch_process_termsig.
5935         (Fcall_process): Initiate synch_process_termsig to zero and
5936         check if non-zero and get signal name after subprocess has ended.
5938         * process.c (sigchld_handler): Set synch_process_termsig
5939         if terminated by a signal.  synch_process_death setting removed.
5941         * sysdep.c (mkdir, rmdir): Also check synch_process_termsig.
5943 2004-01-26  Andreas Schwab  <schwab@suse.de>
5945         * print.c (print_preprocess): Declare size as EMACS_INT to not
5946         lose bits.
5947         (print_object): Likewise.
5948         * alloc.c (Fpurecopy): Likewise.
5950 2004-01-25  Luc Teirlinck  <teirllm@auburn.edu>
5952         * window.c (Fwindow_minibuffer_p): Doc fix.
5954 2004-01-24  Jonathan Yavner  <jyavner@member.fsf.org>
5956         * editfns.c (Fformat): Make both passes accept the same set of flags.
5958 2004-01-23  Kenichi Handa  <handa@m17n.org>
5960         * fns.c (Fmd5): If OBJECT is a buffer different from the current
5961         one, set buffer to OBJECT temporarily.
5963 2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
5965         * keyboard.c (kbd_buffer_gcpro): Remove.
5966         (kbd_buffer_store_event, clear_event, Fdiscard_input)
5967         (stuff_buffered_input, init_keyboard, syms_of_keyboard):
5968         Don't initialize and/or maintain the variable any more.  It was made
5969         redundant by my commit of 2003-06-15.
5971         * lisp.h [USE_LSB_TAG && !DECL_ALIGN]: Signal an error.
5973 2004-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5975         * lisp.h: Add undef DECL_ALIGN.
5977 2004-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
5979         * process.c (wait_reading_process_input) [SYNC_INPUT]:
5980         Check interrupt_input_pending explicitly.
5982         * lisp.h (QUIT) [SYNC_INPUT]: Check interrupt_input_pending as well.
5984         * keyboard.c (handle_async_input): New fun,
5985         extracted from input_available_signal.
5986         (input_available_signal, reinvoke_input_signal): Use it.
5988 2004-01-20  Stefan Monnier  <monnier@iro.umontreal.ca>
5990         * buffer.c (buffer_defaults, buffer_local_symbols): Use DECL_ALIGN.
5992         * lisp.h [USE_LSB_TAG]: Add definitions for Lisp_Object value
5993         manipulation macros for when tags are in the lower bits.
5994         (struct Lisp_Free) [USE_LSB_TAG]: Add padding.
5995         (DECL_ALIGN): New macro.
5996         (DEFUN): Use it.
5998         * lisp.h [ENABLE_CHECKING]: Don't force union type.
6000         * s/darwin.h (__attribute__): Remove outdated workaround.
6002         * macterm.c (main) [USE_LSB_TAG]: Don't range check the ram.
6004         * alloc.c (lisp_malloc, lisp_align_malloc) [USE_LSB_TAG]:
6005         Don't check range of malloc address.
6006         (pure_alloc) [USE_LSB_TAG]: Enforce alignment.
6008         * process.c (wait_reading_process_input): Lisp_Object/int mixup.
6010         * dired.c (Ffile_attributes): Lisp_Object/int mixup.
6012 2004-01-19  Kenichi Handa  <handa@m17n.org>
6014         * fontset.c (fontset_font_pattern): Fix previous change.
6016 2004-01-16  Miles Bader  <miles@gnu.ai.mit.edu>
6018         * xdisp.c (Voverflow_newline_into_fringe)
6019         (move_it_in_display_line_to, redisplay_internal)
6020         (update_window_fringes, redisplay_window, display_line, window):
6021         Add `#ifdef HAVE_WINDOW_SYSTEM' around fringe-drawing stuff, so
6022         that it compiles without a window-system.
6023         * dispnew.c (direct_output_for_insert, update_window): Likewise.
6025 2004-01-16  Kim F. Storm  <storm@cua.dk>
6027         * buffer.h (struct buffer): New member indicate_buffer_boundaries.
6029         * buffer.c (init_buffer_once): Set buffer_defaults and
6030         buffer_local_flags for indicate_buffer_boundaries.
6031         (syms_of_buffer): Defvar_per_buffer it, and defvar_lisp_nopro
6032         default- variable for it.
6034         * dispextern.h (struct glyph_row): New members left_fringe_bitmap,
6035         right_fringe_bitmap, redraw_fringe_bitmaps_p for new fringe handling.
6036         New members exact_window_width_line_p and cursor_in_fringe_p for
6037         overflowing newlines into right fringe.
6038         New members indicate_bob_p, indicate_top_line_p, indicate_eob_p,
6039         and indicate_bottom_line_p for buffer boundaries and scrolling.
6040         (enum fringe_bitmap_type): Add UP_ARROW_BITMAP, DOWN_ARROW_BITMAP,
6041         FIRST_LINE_BITMAP, LAST_LINE_BITMAP, FILLED_BOX_CURSOR_BITMAP,
6042         HOLLOW_BOX_CURSOR_BITMAP, BAR_CURSOR_BITMAP, HBAR_CURSOR_BITMAP,
6043         and HOLLOW_SQUARE_BITMAP.
6044         (draw_fringe_bitmap, draw_window_fringes, update_window_fringes):
6045         Add prototypes.
6047         * dispnew.c (row_equal_p, update_window_line): Compare fringe bitmaps
6048         instead of related indicator fields.
6049         Compare exact_window_width_line_p and cursor_in_mouse_face_p indicators.
6050         (direct_output_for_insert): Handle exact width lines like
6051         contined lines.  Call update_window_fringes.
6052         (update_window): Call update_window_fringes.
6053         (scrolling_window): Don't skip desired rows with changed bitmaps.
6054         Check if fringe bitmaps changes when assigning scrolled rows.
6056         * xdisp.c (Voverflow_newline_into_fringe): New variable.
6057         (IT_OVERFLOW_NEWLINE_INTO_FRINGE): New macro.
6058         (move_it_in_display_line_to): Overflow newline into fringe for
6059         rows that are exactly as wide as the window.
6060         (up_arrow_bits, down_arrow_bits, first_line_bits, last_line_bits)
6061         (filled_box_cursor_bits, hollow_box_cursor_bits, bar_cursor_bits)
6062         (hbar_cursor_bits, hollow_square_bits): New fringe bitmaps.
6063         (fringe_bitmaps): Add new bitmaps.
6064         (draw_fringe_bitmap): Make extern.  Remove WHICH arg.
6065         Select proper bitmap for cursor in fringe when appropriate.
6066         Handle alignment of bitmap to top or bottom of row.
6067         (draw_row_fringe_bitmaps): Don't select bitmaps here; that is now
6068         done by update_window_fringes.
6069         (update_window_fringes, draw_window_fringes): New functions.
6070         (redisplay_internal): Call update_window_fringes in case only
6071         cursor row is updated.
6072         (redisplay_window): Call update_window_fringes.
6073         Explicitly call draw_window_fringes if redisplay was done using
6074         the current matrix or the overlay arrow is in the window.
6075         (try_window_reusing_current_matrix): Mark scrolled rows for
6076         fringe update (to update buffer-boundaries / scrolling icons).
6077         (find_last_unchanged_at_beg_row): Handle exact width lines line
6078         continued lines.
6079         (display_line): Overflow newline into fringe for rows that are
6080         exactly as wide as the window.  Don't append space for newline
6081         in this case.
6082         (notice_overwritten_cursor): Explicitly clear cursor bitmap
6083         in fringe as if it had been overwritten.
6084         (erase_phys_cursor): Erase cursor bitmap in fringe.
6085         (syms_of_xdisp): Mark show-trailing-whitespace and
6086         void-text-area-pointer as user options.
6087         DEFVAR_LISP Voverflow_newline_into_fringe.  Enable by default.
6089         * xterm.c (x_update_window_end): Call draw_window_fringes.
6090         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6091         in row instead of actually drawing fringe bitmaps.
6092         (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6093         (x_draw_window_cursor): Draw cursor in fringe.
6095         * w32term.c (x_update_window_end): Call draw_window_fringes.
6096         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6097         in row instead of actually drawing fringe bitmaps.
6098         (w32_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6099         (w32_draw_window_cursor): Draw cursor in fringe.
6101         * macterm.c (x_update_window_end): Call draw_window_fringes.
6102         (x_after_update_window_line): Just set redraw_fringe_bitmaps_p
6103         in row instead of actually drawing fringe bitmaps.
6104         (x_draw_fringe_bitmap): Handle bottom aligned bitmaps.
6105         (mac_draw_window_cursor): Draw cursor in fringe.
6107 2004-01-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6109         * xterm.c (handle_one_xevent): Don't handle characters that are part
6110         of an old style (XLookupString) compose sequence.
6112 2004-01-15  Kenichi Handa  <handa@m17n.org>
6114         * search.c (Freplace_match): Use make_multibyte_string or
6115         make_unibyte_string according to the buffer multibyteness.
6117 2004-01-14  Stefan Monnier  <monnier@iro.umontreal.ca>
6119         * alloc.c (struct interval_block, struct string_block)
6120         (struct symbol_block, struct marker_block, live_string_p)
6121         (live_cons_p, live_symbol_p, live_float_p, live_misc_p):
6122         Better preserve alignment for objects in blocks.
6123         (FLOAT_BLOCK_SIZE): Adjust for possible alignment padding.
6125         * lread.c (defvar_per_buffer): Remove dead declaration.
6127         * macterm.c (do_check_ram_size): Don't hardcode the lisp address
6128         space size.
6130 2004-01-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6132         * xmenu.c (popup_get_selection): Check new parameter down_on_keypress
6133         if a key press should pop down.  Only pop down if a key is pressed
6134         outside the menu/dialog.
6135         (create_and_show_popup_menu): Pass 0 for down_on_keypress to
6136         popup_get_selection.
6137         (create_and_show_dialog): Pass 1 for down_on_keypress to
6138         popup_get_selection.
6140 2004-01-11  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6142         * alloc.c (allocate_vectorlike): Surround calls to mallopt with
6143         BLOCK/UNBLOCK_INPUT.
6145 2004-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6147         * xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
6148         specified.
6150 2004-01-08  Kenichi Handa  <handa@m17n.org>
6152         * editfns.c (Fformat): Fix '&' to '&&'.
6154 2004-01-08  Andreas Schwab  <schwab@suse.de>
6156         * print.c (print_preprocess) <case Lisp_Vectorlike>: Only mask
6157         size if PSEUDOVECTOR_FLAG is set.
6159 2004-01-07  Kenichi Handa  <handa@m17n.org>
6161         * charset.c (Fdeclare_equiv_charset): Fix docstring.
6163         * fontset.c (fontset_ref_via_base): Fix previous change.
6165 2004-01-07  Kim F. Storm  <storm@cua.dk>
6167         * process.c (read_process_output): Only activate adaptive
6168         buffering if we read less than 256 bytes at a time.
6170 2004-01-06  Kim F. Storm  <storm@cua.dk>
6172         * dispnew.c (buffer_posn_from_coords): Return both buffer/string
6173         object and image object.  Return glyph width and height.
6174         (mode_line_string, marginal_area_string): Ditto.
6176         * dispextern.h (buffer_posn_from_coords, mode_line_string)
6177         (marginal_area_string): Fix prototypes.
6179         * keyboard.h (POSN_POSN, POSN_SET_POSN): Rename macros from
6180         POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN.  All uses changed.
6181         (POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.
6183         * keyboard.c (make_lispy_position): Use modified mode_line_string,
6184         buffer_posn_from_coords, and marginal_area_string functions to
6185         include both string object and image object in the lispy position.
6186         Also add actual glyph width and height to position.
6187         (read_key_sequence): Use real buffer position from mouse
6188         event to find keymap property even when click is in marginal area.
6190         * xdisp.c (note_mode_line_or_margin_highlight): Use modified
6191         mode_line_string and marginal_area_string functions to handle
6192         both string object and image object properties.
6194 2004-01-06  Andreas Schwab  <schwab@suse.de>
6196         * syntax.c (skip_chars): Treat '-' at end of string as ordinary
6197         character.
6199 2004-01-02  Andreas Schwab  <schwab@suse.de>
6201         * macterm.c (emacs_options, x_initialized, same_x_server):
6202         Remove unused (and duplicated) definitions.
6204 2004-01-02  Kim F. Storm  <storm@cua.dk>
6206         * process.h (struct Lisp_Process): New members for adaptive read
6207         buffering: adaptive_read_buffering, read_output_delay, and
6208         read_output_skip.
6210         * process.c (ADAPTIVE_READ_BUFFERING): New conditional.
6211         (READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
6212         (READ_OUTPUT_DELAY_MAX_MAX): New constants.
6213         (process_output_delay_count, process_output_skip): New vars.
6214         (Vprocess_adaptive_read_buffering): New variable.
6215         (make_process): Initialize adaptive read buffering members.
6216         (Fstart_process): Set adaptive_read_buffering member.
6217         (deactivate_process): Cleanup adaptive read buffering.
6218         (wait_reading_process_input): Temporarily omit delayed
6219         subprocesses from the set of file descriptors to read from;
6220         adjust the select timeout if we skipped any subprocesses.
6221         (read_process_output): Increase adaptive read buffering delay if
6222         we read less than a full buffer; reduce delay when we read a
6223         full buffer.
6224         (send_process): Simplify using local Lisp_Process var.
6225         Reset adaptive read buffering delay after write.
6226         (init_process): Initialize process_output_delay_count and
6227         process_output_skip.
6228         (syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.
6230 2004-01-01  Jason Rumney  <jasonr@gnu.org>
6232         * w32term.c (w32_text_out): Use s->font, for consistency with callers.
6234 2003-12-30  Luc Teirlinck  <teirllm@auburn.edu>
6236         * print.c (Ferror_message_string): Add hyperlink in the docstring
6237         to the definition of `signal' in the Elisp manual.
6238         * eval.c (Fsignal): Ditto.
6240 2003-12-29  James Clark  <jjc@jclark.com>
6242         * fns.c (internal_equal): Return t for two NaN arguments.
6244 2003-12-29  Richard M. Stallman  <rms@gnu.org>
6246         * data.c (store_symval_forwarding): Handle setting
6247         default-fill-column, etc., by changing the value in
6248         buffers that use the default.
6250         * minibuf.c (Fset_minibuffer_window): Doc fix.
6252         * fileio.c (choose_write_coding_system): Ignore auto_saving
6253         if using the visited file for auto saves.
6254         (Fwrite_region): Don't update SAVE_MODIFF
6255         if auto-saving in visited file.
6257 2003-12-29  Kenichi Handa  <handa@m17n.org>
6259         * dispextern.h (face_font_available_p): Extern it.
6261         * fontset.c (Voverriding_fontspec_alist): New variable.
6262         (lookup_overriding_fontspec): New function.
6263         (fontset_ref_via_base): Call lookup_overriding_fontspec if necessary.
6264         (fontset_font_pattern): Likewise.
6265         (regulalize_fontname): New function.
6266         (Fset_fontset_font): Call regulalize_fontname.
6267         (Fset_overriding_fontspec_internal): New function.
6268         (syms_of_fontset): Initialize and staticpro Voverriding_fontspec_alist.
6269         Defsubr Sset_overriding_fontspec_internal.
6271         * xfaces.c (face_font_available_p): New function.
6273 2003-12-28  Richard M. Stallman  <rms@gnu.org>
6275         * buffer.c (Fother_buffer): Don't crash if BUF is nil
6276         or if its name is nil.
6278         * buffer.c (Fkill_buffer): Don't delete auto-save file
6279         if it's the same as the visited file.
6281 2003-12-28  Luc Teirlinck  <teirllm@auburn.edu>
6283         * coding.c (Fcheck_coding_system): Doc fix.
6285 2003-12-28  Kim F. Storm  <storm@cua.dk>
6287         * Makefile.in (eval.o): Depend on dispextern.h.
6289         * dispnew.c (buffer_posn_from_coords): Fix calculation of dy for
6290         image glyph using image's ascent.
6291         (mode_line_string): Return image glyph as object clicked on.
6292         Adjust y0 for image glyph using image's ascent.
6294         * dispextern.h (FACE_ID_BITS, MAX_FACE_ID): New defines.
6295         (struct glyph): New members, ascent and descent.  Used to save
6296         this glyph's ascent and descent, instead of having.
6297         (struct glyph): Declare member face_id using FACE_ID_BITS.
6298         (find_hot_spot): Add prototype.
6300         * keyboard.c (Qimage): Remove extern (now in lisp.h).
6301         (QCmap): Declare extern.
6302         (make_lispy_position): When position is inside image hot-spot,
6303         use hot-spot element's id as posn element.
6305         * lisp.h (IMAGEP): New macro to test for image object type.
6306         (Qimage): Declare extern.
6308         * macfns.c (Qimage): Remove extern (now in lisp.h).
6309         (valid_image_p, parse_image_spec): Use IMAGEP macro.
6311         * macterm.c (Qface, Qmouse_face): Remove unused externs.
6313         * w32fns.c (Qimage): Remove extern (now in lisp.h).
6314         (valid_image_p, parse_image_spec): Use IMAGEP macro.
6316         * w32menu.c (Qmouse_click, Qevent_kind): Remove unused externs.
6318         * w32term.c (Qface, Qmouse_face): Remove unused externs.
6320         * xdisp.c (Qarrow, Qhand, Qtext, Qpointer): New variables for
6321         pointer types.
6322         (Qrelative_width, Qalign_to): Remove unused variables.
6323         (Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
6324         (QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
6325         image maps.
6326         (x_y_to_hpos_vpos): Return glyph relative coordinates through
6327         new dx and dy args.
6328         Remove buffer_only_p arg (always 0).  Simplify code accordingly.
6329         (get_glyph_string_clip_rect): Draw cursor using glyph's rather
6330         than row's ascent and height, to get sensible height on tall rows.
6331         (build_desired_tool_bar_string): Remove Qimage extern.
6332         (get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
6333         (produce_image_glyph): Adjust it.ascent to minimum row ascent if
6334         image glyph is alone on the last line.
6335         (append_glyph, append_composite_glyph, produce_image_glyph)
6336         (append_stretch_glyph): Set glyph's ascent and descent.
6337         (on_hot_spot_p): New function to check if position is inside an
6338         rectangular, circular, or polygon-shaped image hot-spot,
6339         (find_hot_spot): New function to search for image hot-spot.
6340         (Flookup_image_map): New defun to search for image hot-spot.
6341         (define_frame_cursor1): New aux function to determine frame pointer.
6342         (note_mode_line_or_margin_highlight, note_mouse_highlight):
6343         Handle `pointer' text property and :pointer image property to
6344         control frame pointer shape.  Detect image hot-spots for pointer
6345         and help_echo properties.  Use define_frame_cursor1.
6346         (note_mouse_highlight): Use Vvoid_text_area_pointer.
6347         (syms_of_xdisp): Defsubr new defun.  Intern and staticpro new variables.
6348         DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.
6350         * xfaces.c (cache_face): Abort if c->size exceeds MAX_FACE_ID.
6352         * xfns.c (x_set_mouse_color): Remove bogus x_check_errors call.
6353         (Qimage): Remove extern (now in lisp.h).
6354         (valid_image_p, parse_image_spec): Use IMAGEP macro.
6356         * xmenu.c (show_help_event): Remove unused code.
6358         * xterm.c (Qface, Qmouse_face): Remove unused externs.
6359         (x_draw_hollow_cursor): Draw cursor using glyph's rather than
6360         row's ascent and descent, to get a sensible height on tall rows.
6362 2003-12-25  Luc Teirlinck  <teirllm@auburn.edu>
6364         * minibuf.c (Fcompleting_read): Undo previous change.
6366 2003-12-25  Lars Hansen  <larsh@math.ku.dk>
6368         * dired.c (Fdirectory_files, Fdirectory_files_and_attributes):
6369         Arguments GCPRO'ed in call to file name handler.
6371 2003-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
6373         * termcap.c (tgetst1): Scan for "%pN"; if all
6374         N are continuous in [1,9], remove all "%pN".
6376 2003-12-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6378         * gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
6380         * xfaces.c (lface_fully_specified_p): Take into account that
6381         MAC OS always have unspecified stipple.
6383 2003-12-24  Thien-Thi Nguyen  <ttn@gnu.org>
6385         * tparam.c (tparam1): Add handling for `%pN', which
6386         means use param N for the next substitution.
6388 2003-12-24  Thien-Thi Nguyen  <ttn@gnu.org>
6390         * xfaces.c (Fcolor_gray_p): Fix omission bug:
6391         In case `frame' is nil, consult the selected frame.
6392         (Fcolor_supported_p): Likewise.
6394 2003-12-23  Luc Teirlinck  <teirllm@auburn.edu>
6396         * fns.c (Frandom, Fstring_make_multibyte, Fset_char_table_range):
6397         Doc fixes.
6399         * minibuf.c (read_minibuf): Allow INITIAL to be a cons of a string
6400         and an integer.  Adapt the introductory comment accordingly.
6401         (Fread_from_minibuffer): Delete code moved into read_minibuf.
6402         Doc fix.
6403         (Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
6404         read_minibuf.
6405         (Fcompleting_read): Delete code moved into read_minibuf.
6406         (Ftest_completion): Make it handle obarrays and hash tables correctly.
6408 2003-12-03  Kenichi Handa  <handa@m17n.org>
6410         * coding.c (decode_coding_iso2022): Fix for preserving UTF-8
6411         encoding sequence.
6413 2003-12-01  Kenichi Handa  <handa@m17n.org>
6415         * composite.c (syms_of_composite): Don't make the compostion hash
6416         table week.
6418 2003-11-30  Luc Teirlinck  <teirllm@auburn.edu>
6420         * intervals.h: Add EXFUN for Fget_char_property_and_overlay.
6421         * textprop.c (Fget_char_property_and_overlay): New function.
6422         (syms_of_textprop): Defsubr it.
6424 2003-11-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6426         * dispnew.c (buffer_posn_from_coords): Add ifdef HAVE_WINDOW_SYSTEM
6427         to compile on terminal configuration.
6429         * fileio.c (Fread_file_name): Check use_file_dialog also before
6430         calling Fx_file_dialog.
6432         * fns.c: use_file_dialog: New variable.
6433         (syms_of_fns): DEFVAR_BOOL use-file-dialog.
6435 2003-11-29  Kim F. Storm  <storm@cua.dk>
6437         * msdos.c (Qcursor_type, Qbar, Qhbar): Declare extern.
6438         (syms_of_msdos): Don't intern and staticpro them.
6440 2003-11-27  Kim F. Storm  <storm@cua.dk>
6442         * dispnew.c (buffer_posn_from_coords): Calculate and return pixel
6443         coordinates relative to glyph at posn.  If glyph is an image,
6444         return that as object at posn.  Callers changed.
6445         (mode_line_string, marginal_area_string): Calculate and return
6446         pixel coordinates relative to glyph.  Callers changed.
6448         * dispextern.h (buffer_posn_from_coords, mode_line_string)
6449         (marginal_area_string): Fix prototypes.
6450         (window_box_left_offset, window_box_right_offset): Add prototypes.
6452         * frame.h (get_specified_cursor_type, get_window_cursor_type):
6453         Remove prototypes.
6455         * keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines.
6457         * keyboard.c (make_lispy_position): Add x and y coordinates
6458         relative to the current glyph as 7th element of position.
6459         If glyph is an image, return it in the object element.
6460         (read_key_sequence): Skip checks for keymap property in cases
6461         where POSN_STRING is not a string (e.g. an image).
6463         * xdisp.c (Vdisplay_pixels_per_inch): New variable.
6464         (Vshow_text_cursor_in_void): New variable.
6465         (glyph_to_pixel_coords): Don't use negative hpos.
6466         (x_y_to_hpos_vpos): Fix for partially visible first glyph.
6467         (append_stretch_glyph): Change ascent arg to be actual value
6468         in pixels rather than ratio to height.  Callers changed.
6469         (calc_pixel_width_or_height): New aux function, implementing
6470         pixel based artihmetic for glyph widths and heights.
6471         (produce_stretch_glyph): Use calc_pixel_width_or_height for
6472         :width, :height, :align-to, and :ascent, thus allowing these to
6473         be specified in pixels as well as multiples of characters.
6474         Don't produce stretch glyphs with zero width or height.
6475         (get_specified_cursor_type): Declare static.
6476         (get_window_cursor_type): Declare static.  Add glyph arg to be
6477         able to know when cursor is on an image; always substitute
6478         hollow-box cursor for filled-box cursor on images, to avoid
6479         negative images and flicker when blinking the cursor.
6480         (display_and_set_cursor): Pass glyph to get_window_cursor_type.
6481         (note_mode_line_or_margin_highlight): Use non-text cursor rather
6482         than vertical scroll-bar cursor in display margins.
6483         (note_mouse_highlight): Use non-text cursor rather than text
6484         cursor in fringes and over images in the text area.
6485         Use non-text cursor when mouse pointer is outside editable text,
6486         i.e. in the void after end-of-line or end-of-buffer; this was
6487         already done for W32, but is now standard for all systems --
6488         user can toggle show-text-cursor-in-void to get old behaviour.
6489         (syms_of_xdisp): DEFVAR_LISP Vshow_text_cursor_in_void and
6490         Vdisplay_pixels_per_inch.
6492 2003-11-25  Andreas Schwab  <schwab@suse.de>
6494         * fns.c (internal_equal) <case Lisp_Vectorlike>: Declare size as
6495         EMACS_INT to not lose bits.
6496         (Ffillarray): Don't set bits beyond the size of a bool vector.
6498 2003-11-25  Kim F. Storm  <storm@cua.dk>
6500         * print.c (Fredirect_debugging_output) [!GNU_LINUX]: Do not
6501         define this defun on systems that cannot use stderr as lvalue.
6503 2003-11-24  Gerd Moellmann  <gerd@gnu.org>
6505         * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS)
6506         [__FreeBSD_version >= 500042]: Define as -znocombreloc because
6507         ld's default is incompatible with unexec.
6509 2003-11-23  Kim F. Storm  <storm@cua.dk>
6511         * window.c (enum window_loop): Add REDISPLAY_BUFFER_WINDOWS.
6512         (window_loop): Handle REDISPLAY_BUFFER_WINDOWS.
6513         (Fforce_window_update): New defun.
6514         (syms_of_window): Defsubr it.
6515         (Fset_window_margins, Fset_window_fringes): Doc fix.
6517         * print.c (Fredirect_debugging_output): New defun.
6518         (syms_of_print): Defsubr it.
6520 2003-11-22  Luc Teirlinck  <teirllm@auburn.edu>
6522         * fns.c (Fset_char_table_parent): Doc fix.
6524 2003-11-22  Kim F. Storm  <storm@cua.dk>
6526         * dispnew.c (buffer_posn_from_coords): Return actual row/column
6527         for glyph clicked on, rather than (unused) pixel positions.
6528         (mode_line_string, marginal_area_string): Change X and Y args to
6529         pointers for returning actual row/column for glyph clicked on.
6530         Simplify and optimize loops.
6532         * dispextern.h (mode_line_string, marginal_area_string):
6533         Update prototypes.
6535         * keyboard.c (make_lispy_position): New function for generating
6536         mouse click positions from frame and pixel coordinates.
6537         Enhanced to return buffer position and actual row/column for
6538         events outside the text area using updated mode_line_string and
6539         marginal_area_string functions.
6540         Return left-fringe and right-fringe clicks as such, rather than
6541         clicks in text area.
6542         (make_lispy_event) [USE_X_TOOLKIT, USE_GTK]: Don't call
6543         pixel_to_glyph_coords, as we never use the results.
6544         (make_lispy_event): Use make_lispy_position for MOUSE_CLICK_EVENT,
6545         WHEEL_EVENT, and DRAG_N_DROP_EVENT to replace redundant code.
6546         Eliminate unused code in WHEEL_EVENT handling.
6547         (make_lispy_movement): Use make_lispy_position.
6549         * window.c (coordinates_in_window): Remove redundant tests.
6550         Fix returned X pixel value for left-margin.
6552         * xdisp.c (note_mode_line_or_margin_highlight): Adapt to new
6553         mode_line_string and marginal_area_string parameters.
6555 2003-11-22  Lars Hansen  <larsh@math.ku.dk>
6557         * w32.c (struct the_group, getgrgid): Add.
6558         * mac.c (struct my_group, getgrgid): Add.
6560 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
6562         * fns.c (Fassq, Fassoc, Frassq, Frassoc): Doc fixes.
6564 2003-11-21  Lars Hansen  <larsh@math.ku.dk>
6566         * dired.c (Ffile_attributes): Add parameter ID-FORMAT and
6567         include in call to file name handler.  Optionally translate numeric
6568         UID and GID to strings.  Update docstring.
6569         (directory_files_internal): Add parameter ID-FORMAT.
6570         (Fdirectory_files_and_attributes): Add parameter ID-FORMAT and
6571         include in call to file name handler and call to
6572         directory_files_internal.  Update Docstring.
6573         (Fdirectory_files): Add dummy parameter in call to
6574         directory_files_internal.
6575         * lisp.h (Qinteger): Add.
6576         (Qinteger_or_floatp, Qinteger_or_float_or_marker_p): Remove.
6577         (Ffile_attributes): Add parameter.
6578         * data.c (Qinteger): Export.
6580 2003-11-21  Luc Teirlinck  <teirllm@auburn.edu>
6582         * fns.c (Freverse, Fnreverse): Doc fixes.
6584 2003-11-19  Kim F. Storm  <storm@cua.dk>
6586         * xdisp.c (init_iterator): Initialize it->start to position
6587         before reseating (in case start position is invisible).
6588         (init_to_row_start): Set it->start to row-start.
6589         (redisplay_window): Accept optional_new_start if start position
6590         is invisible (in which case IT_CHARPOS overshoots PT).
6591         (display_line): Setup row->start from it->start (rather than
6592         it->current which is wrong if first char on line is invisible).
6593         When done, reseat it->start to it->current (= start of next row).
6594         (expose_area): Fix exposure of text area when first char (e.g. TAB)
6595         is only partially visible.
6597         * dispextern.h (struct it): New member start.
6599 2003-11-17  Stefan Monnier  <monnier@iro.umontreal.ca>
6601         * alloc.c (make_float, Fcons): Clear the markbit at init time.
6602         (make_float, Fcons, Fmake_symbol, allocate_misc): Move the increment
6603         of block_index outside of the macro call.
6604         (Fgarbage_collect): Remove null code.
6606         * m/amdx86-64.h: Don't redefine XPNTR.
6608         * keyboard.c (parse_modifiers, apply_modifiers): Use INTMASK instead
6609         of VALMASK.
6611         * fns.c (hashfn_eq, hashfn_eql, hashfn_equal, hash_put)
6612         (sxhash_string, sxhash): Use INTMASK instead of VALMASK.
6613         (maybe_resize_hash_table): Use MOST_POSITIVE_FIXNUM.
6615         * lisp.h (VALMASK): Only define for non-union type.
6616         (MARKBIT): Remove.
6617         (ARRAY_MARK_FLAG): Use previous value of MARKBIT.
6618         (XTYPE): Define unconditionally.
6619         (XSETTYPE): Remove one more remnant.
6620         (EQ): Define differently for the union and non-union cases.
6621         (INTMASK): New bit mask.
6622         (struct Lisp_Marker): Move down to prepare for upcoming patch.
6623         (GC_EQ): Delegate to EQ.
6625         * coding.c (coding_restore_composition): Lisp_Object/int mixup.
6627 2003-11-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6629         * xterm.c (x_window_to_scroll_bar): Move check of display to
6630         where window_id is compared.
6632 2003-11-17  Kim F. Storm  <storm@cua.dk>
6634         * dispextern.h (struct it): New member first_vpos.
6636         * xdisp.c (start_display): Set it->first_vpos.
6637         (try_window_id): Use first_vpos to start display in first _text_
6638         line if no reusable lines at start of window with header line.
6640 2003-11-16  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6642         * w32fns.c (XPutPixel):
6643         * w32bdf.c (w32_init_bdf_font):
6644         * sunfns.c (sel_read):
6645         * process.c (Fmake_network_process):
6646         * frame.c (store_frame_param):
6647         * fontset.c (Fset_fontset_font):
6648         * emacs.c (shut_down_emacs):
6649         * ccl.c (ccl_driver): Remove period at end of error message.
6651         * config.in: Regenerate.
6653         * xfns.c (x_window_to_frame, x_any_window_to_frame)
6654         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
6655         (x_top_window_to_frame): Add Display* argument to xg_win_to_widget.
6656         (x_create_bitmap_mask, xg_set_icon, create_frame_xic)
6657         (xic_set_statusarea, x_window, gif_load): Formatting adjustments.
6659         * xterm.h (struct x_display_info): New field xg_cursor for GTK.
6661         * xterm.c: Add Display * to x_window_to_scroll_bar declaration.
6662         (XTmouse_position, handle_one_xevent): Pass Display* to
6663         x_window_to_scroll_bar.
6664         (x_window_to_scroll_bar): Take a Display* argument.
6665         Check that display for frame is equal to Display* argument.
6666         (event_handler_gdk): Remove current_dpyinfo.  Get dpyinfo from
6667         x_display_info_for_display instead.  Use Display in xev instead
6668         of GDK_DISPLAY.
6669         (x_dispatch_event): Call x_display_info_for_display.
6670         (XTread_socket): Move GTK part out of loop.  current_dpyinfo removed.
6671         (x_connection_closed): Call xg_display_close for GTK.
6672         (x_term_init): Call xg_display_open for additional displays.
6673         Initiate dpyinfo->xg_cursor with call to xg_create_default_cursor
6674         for GTK.
6676         * xmenu.c (single_menu_item, mouse_position_for_popup)
6677         (x_activate_menubar): Formatting adjustments.
6679         * xdisp.c (update_tool_bar, redisplay_tool_bar): Formatting
6680         adjustments.
6682         * gtkutil.c (xg_get_gdk_display, xg_set_screen, xg_display_open)
6683         (xg_display_close, xg_create_default_cursor)
6684         (xg_get_gdk_pixmap_and_mask): New functions for multiple display
6685         handling.
6686         (xg_left_ptr_cursor): Remove.
6687         (xg_set_cursor): Change cursor to GdkCursor*.  Do not create
6688         cursor here.
6689         (xg_win_to_widget): Take Display* argument, call
6690         gdk_xid_table_lookup_for_display.
6691         (xg_create_frame_widgets, xg_get_file_name, create_menus)
6692         (xg_create_widget, xg_modify_menubar_widgets): Call xg_set_screen.
6693         (xg_create_widget, xg_create_scroll_bar): Use xg_cursor
6694         in FRAME_X_DISPLAY_INFO.
6695         (xg_get_scroll_id_for_window): Take Display* argument.
6696         (update_frame_tool_bar): Call xg_get_gdk_pixmap_and_mask.
6697         (xg_initialize): Remove xg_left_ptr_cursor.
6699         * gtkutil.h (xg_get_scroll_id_for_window, xg_win_to_widget): Add
6700         Display* argument.
6701         (xg_display_open, xg_display_close, xg_create_default_cursor): Declare.
6703 2003-11-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6705         * xterm.c (x_detect_focus_change): Do not change focus frame for
6706         Enter/LeaveNotify if the current focus frame has explicit focus.
6708 2003-11-14  Kim F. Storm  <storm@cua.dk>
6710         * dispnew.c (update_text_area): Fix redisplay error when hscroll
6711         is active and first glyph is only partially visible.
6713 2003-11-13  Kenichi Handa  <handa@m17n.org>
6715         * xdisp.c (select_frame_for_redisplay): New function.
6716         (redisplay_internal): Record also selected_frame for
6717         unwind_redisplay.  Call select_frame_for_redisplay before
6718         redrawing each frame.
6719         (unwind_redisplay): Argument changed to a cons.
6721 2003-11-12  Luc Teirlinck  <teirllm@auburn.edu>
6723         * fns.c (Fstring_to_multibyte): Doc fix.
6725 2003-11-11  Kenichi Handa  <handa@m17n.org>
6727         * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
6729 2003-11-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6731         * xfns.c (x_window): Set XtNx and XtNy in shell widget for
6732         program specified positions.
6734 2003-11-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6736         * xterm.c (XAW_ARROW_SCROLLBARS): Define it for Xaw 1.5E.
6738 2003-11-08  Kenichi Handa  <handa@m17n.org>
6740         * Makefile.in (lisp): Add kannada.el.
6741         (shortlisp): Likewise.
6743 2003-11-07  Kenichi Handa  <handa@m17n.org>
6745         * coding.c (coding_allocate_composition_data):
6746         Reset coding->composing to COMPOSITION_NO.
6747         (coding_restore_composition): Detect invalid composition data.
6748         Give Fstring and Fvector a Lispy integer, not C int.
6750 2003-11-05  Stefan Monnier  <monnier@iro.umontreal.ca>
6752         * floatfns.c (Flogb): Don't use VALMASK.
6754         * m/amdx86-64.h (VALBITS, XINT, XUINT): Remove.
6755         * m/ia64.h (VALBITS, XINT, XUINT): Remove.
6757         * lisp.h (XINT): Move the cast to clarify what is going on.
6758         (GCTYPEMASK, XSETTYPE): Remove.
6759         (XGCTYPE): Make it an alias of XTYPE.
6761 2003-11-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6763         * xterm.c (x_term_init): Fix formatting.
6765 2003-11-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6767         * gtkutil.h (xg_have_tear_offs): Declare.
6768         (xg_keep_popup, xg_did_tearoff): Remove.
6770         * gtkutil.c: Remove variable xg_did_tearoff.
6771         (xg_have_tear_offs): New function.
6772         (tearoff_remove): Just decrease xg_detached_menus.
6773         (tearoff_activate): Increase xg_detached_menus and call
6774         tearoff_remove when tearoff is removed.
6775         (xg_keep_popup): Remove function.
6776         (create_menus): Give add_tearoff_p as argument to recursive
6777         call to create_menus.
6778         (xg_create_widget): Use variables instead of multiple
6779         strcmp.  Tell create_menus to create tear off only for
6780         menu bar menus.
6781         (xg_update_menubar): Change title for a detached menu also.
6782         (xg_modify_menubar_widgets): Always call xg_update_menubar, regardless
6783         of deep_p.
6784         (xg_initialize): Initialize xg_detached_menus, remove
6785         initialization of xg_did_tearoff.
6787         * xmenu.c (set_frame_menubar): For GTK, set deep_p if
6788         xg_have_tear_offs returns non-zero.
6789         (create_and_show_popup_menu): Remove setting of xg_did_tearoff and
6790         call to xg_keep_popup.
6792 2003-11-01  Andrew Choi  <akochoi@shaw.ca>
6794         * macterm.c (XTread_socket): Handle menubar selection and grow
6795         window only for mouseDown events.
6797 2003-10-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6799         * xterm.c (x_term_init): For GTK part, increase x_initialized
6800         to check for more than one display.  Use error instead of return 0.
6802 2003-10-31  Andrew Choi  <akochoi@shaw.ca>
6804         * unexmacosx.c (unrelocate): New function (contributed by Nozomu Ando).
6805         (copy_dysymtab): Call it.
6807 2003-10-31  Luc Teirlinck  <teirllm@auburn.edu>
6809         * eval.c (Fdefvaralias): Doc fix.
6811 2003-10-26  Luc Teirlinck  <teirllm@auburn.edu>
6813         * data.c (Fsetplist): Doc fix.
6815 2003-10-14  Lute Kamstra  <lute@gnu.org>
6817         * window.c (Fset_window_fringes): Clarify docstring.
6819 2003-10-14  Kim F. Storm  <storm@cua.dk>
6821         * window.c (Fset_window_margins): Simplify arg checking.
6823 2003-10-13  Richard M. Stallman  <rms@gnu.org>
6825         * regex.c (MAX_BUF_SIZE): Reduce to 2**15.
6826         (print_partial_compiled_pattern): Replace assert with a printout.
6827         (skip_noops, mutually_exclusive_p): Change args, values to re_char *.
6829         * alloc.c (lisp_align_malloc): If BASE is 0, call memory_full.
6831         * window.c (Fset_window_margins): Allow only integers as args.
6832         (syms_of_window) <special-display-buffer-names, special-display-regexps>:
6833         Doc fixes.
6835 2003-10-13  Lute Kamstra  <lute@gnu.org>
6837         * window.c (Fset_window_fringes): Elaborate docstring.
6839 2003-10-12  Andrew Choi  <akochoi@shaw.ca>
6841         * macterm.c (XTread_socket): Call DragWindow only for mouseDown events.
6843         * s/darwin.h (GC_MARK_STACK): Define.
6845 2003-10-12  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6847         * window.c (shrink_windows): New function.
6848         (size_window): Call shrink_windows to calculate window sizes when
6849         shrinking frame with more than one window.
6851 2003-10-12  Kim F. Storm  <storm@cua.dk>
6853         * xdisp.c (compute_fringe_widths): Doc fix.
6855 2003-10-08  Kenichi Handa  <handa@m17n.org>
6857         * coding.c (Fcoding_system_p): Return t for auto-loading coding system.
6859 2003-10-07  Kenichi Handa  <handa@m17n.org>
6861         * coding.c (Qcoding_system_define_form): New variable.
6862         (syms_of_coding): Intern and staticpro it.
6863         (Fcheck_coding_system): Try to autoload the definition of
6864         CODING-SYSTEM.
6866 2003-10-05  Luc Teirlinck  <teirllm@auburn.edu>
6868         * fns.c (Frequire): Doc fix.
6870 2003-10-05  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6872         * xfns.c (Fx_send_client_event): New function as a base for
6873         manipulating extended window manager hints.
6874         (Fx_send_client_event): Remove unused variable s.
6876         * w32term.c (w32_read_socket): Remove call to x_check_fullscreen_move,
6877         that function is removed.
6879         * xterm.c (x_set_offset): Use move_offset_left/top instead of
6880         x/y_pixels_outer_diff.
6881         (x_check_expected_move): Calculate move_offset_left/top.
6883         * xterm.h (struct x_output): New members: move_offset_top/left.
6885         * frame.c (x_set_frame_parameters): Remove x_fullscreen_move,
6886         call x_set_offset directly.
6888         * frame.h (enum): FULLSCREEN_MOVE_WAIT removed.
6890         * frame.c (Fdelete_frame): Free decode_mode_spec_buffer.
6892         * xterm.c (x_delete_display): Free font names and font_encoder
6893         in dpyinfo->font_table.
6895         * xfns.c (Fx_close_connection): Only call XFreeFont here.
6896         Move xfree of font names to x_delete_display.
6898         * xterm.h (struct x_display_info): New member, wm_type.
6899         (struct x_output): New members, expected_top/left and
6900         check_expected_move.
6902         * xterm.c (handle_one_xevent): Reset wm_type when ReparentNotify
6903         is received.
6904         (handle_one_xevent): Rename x_check_expected_move from
6905         x_check_fullscreen_move.
6906         (x_set_offset): Only add WM decoration sizes to modified_top/left
6907         for X_WMTYPE_A.  Set check_expected_move when WM type is unknown.
6908         (x_check_expected_move): Rename from x_check_fullscreen_move.
6909         Removed fullscreen specific code.  Use check_expected_move,
6910         expected_left/top instead.  Also, set wm_type.
6911         (x_term_init): Initialize wm_type to unknown.
6913         * frame.c (x_fullscreen_move): Remove addition of WM decoration
6914         sizes to move_x/y.
6916 2003-10-03  Kenichi Handa  <handa@m17n.org>
6918         * macterm.c (x_load_font): Clear all members of FONTP before start
6919         filling them.
6921 2003-10-02  Kenichi Handa  <handa@m17n.org>
6923         * fontset.c (fs_load_font): Don't set fontp->font_encoder to NULL
6924         before calling find_ccl_program_func.  Call find_ccl_program_func
6925         only when fontp->font_encoder is not NULL.
6927         * xterm.c (x_load_font): Clear all members of FONTP before start
6928         filling them.
6930 2003-10-03  John Paul Wallington  <jpw@gnu.org>
6932         * keymap.c (map_keymap): Don't abort when binding is a vector.
6934 2003-10-02  Jason Rumney  <jasonr@gnu.org>
6936         * makefile.w32-in (emacs.o, coding.o, bytecode.o):
6937         Sync dependencies with Makefile.in.
6938         (alloca.o): Remove.
6940         * w32fns.c (w32_load_system_font): Clear all members of FONTP before
6941         filling them.
6943         * w32bdf.c (w32_load_bdf_font): Likewise.
6945 2003-09-30  Richard M. Stallman  <rms@gnu.org>
6947         * term.c (set_tty_color_mode): Calculate current_mode_spec
6948         regardless of value of VAL.
6950         * intervals.c (graft_intervals_into_buffer):
6951         Set BUF_INTERVALS (buffer)->up_obj when appropriate.
6952         Handle over_used when splitting UNDER.
6954 2003-09-30  YAMAMOTO  Mitsuharu  <mituharu@math.s.chiba-u.ac.jp>
6956         * regex.c (regex_compile): Free the stack when returning from function.
6958 2003-09-28  Kenichi Handa  <handa@m17n.org>
6960         * fontset.c (Finternal_char_font): Change return value to
6961         cons (FONT-NAME . GLYPH-CODE).
6963 2003-09-28  Eli Zaretskii  <eliz@gnu.org>
6965         * term.c (tty_setup_colors): Treat any negative argument as -1.
6967 2003-09-27  Gaute B Strokkenes  <biggaute@uwc.net>  (tiny change)
6969         * process.c (send_process): Delete unused temp_buf.
6971 2003-09-26  Dave Love  <fx@gnu.org>
6973         * xterm.c (x_bitmap_mask): Declare.
6975 2003-09-25  Dave Love  <fx@gnu.org>
6977         * Makefile.in (fns.o): Depend on md5.h.
6979 2003-09-25  Kim F. Storm  <storm@cua.dk>
6981         * window.c (set_window_buffer): Fix redisplay problems when
6982         switching between buffers with different display margin widths.
6984 2003-09-23  Kim F. Storm  <storm@cua.dk>
6986         * process.c (set_socket_option): Fix :bindtodevice option.
6987         (Fset_network_process_option): Update process contact list when
6988         setting option succeeds.
6989         (Fmake_network_process): Doc fix.
6991 2003-09-23  Dave Love  <fx@gnu.org>
6993         * process.c (Fnetwork_interface_info): Use HAVE_STRUCT_IFREQ... macros.
6995 2003-09-22  Eli Zaretskii  <eliz@gnu.org>
6997         * term.c (set_tty_color_mode): Use INTEGERP to test whether a
6998         color mode is an integer number (it could be -1).
7000 2003-09-22  Richard M. Stallman  <rms@gnu.org>
7002         * intervals.c (graft_intervals_into_buffer): Correct the main loop
7003         in the case where OVER is longer than UNDER.
7005 2003-09-22  Masatake YAMATO  <jet@gyve.org>
7007         * window.c (Fset_window_scroll_bars): Validate the value of
7008         `vertical_type'.
7010 2003-09-21  Kim F. Storm  <storm@cua.dk>
7012         * frame.c (Vdefault_frame_scroll_bars): New variable.
7013         (x_set_vertical_scroll_bars): Use it instead of hardcoded values.
7014         (syms_of_frame): DEFVAR_LISP it, and initialize according to
7015         window-system default scroll bar position.
7017         * window.c (Fwindow_scroll_bars): Doc fix.
7019 2003-09-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7021         * xterm.c (x_set_offset): Take window manager decorations into account.
7023 2003-09-19  Richard M. Stallman  <rms@gnu.org>
7025         * atimer.h: Don't include lisp.h.
7026         (P_): Define it here (as well as elsewhere).
7028         * print.c (Fprin1_to_string): Move the PRINTPREPARE
7029         later, so that PRINTFINISH won't unbind Qinhibit_modification_hooks.
7031         * data.c (Fvariable_binding_locus): New function.
7032         (syms_of_data): defsubr it.
7033         (Flocal_variable_p): Delete duplicate call to indirect_variable.
7035 2003-09-18  Dave Love  <fx@gnu.org>
7037         * alloc.c (GC_MALLOC_CHECK): Move conditional undef after lisp.h.
7039         * process.c (Fnetwork_interface_info): Fix type error.
7040         (Fnetwork_interface_list): Doc fix.
7041         (read_process_output, read_process_output): Delete unused var.
7043 2003-09-17  Kim F. Storm  <storm@cua.dk>
7045         * process.c (Fnetwork_interface_list, Fnetwork_interface_info):
7046         Require HAVE_NET_IF_H and HAVE_SYS_IOCTL_H to include these fns.
7047         (Fnetwork_interface_info): Check that ifreq struct has required
7048         fields before accessing them; this requires that those fields are
7049         defined as macros, which may be too restrictive on some platforms,
7050         but it is better than failing on other platforms.
7051         (syms_of_process): Only defsubr above fns when included.
7053 2003-09-17  Dave Love  <fx@gnu.org>
7055         * unexalpha.c: Don't include varargs.h.
7057 2003-09-17  Kim F. Storm  <storm@cua.dk>
7059         * process.c (Fset_process_sentinel): Add sentinel to childp plist
7060         for network process.
7061         (socket_options): Add `:' prefix to option names.  Add optbit field.
7062         (set_socket_option): Remove no_error arg and special handling of s < 0.
7063         Return 1<<optbit for known option, 0 for unknown.
7064         Do not interpret 0 as false for boolean option (only nil).
7065         Pass failed option and value to report_file_error.
7066         (Fset_network_process_options): Replace by Fset_network_process_option.
7067         (Fset_network_process_option): New function to set just one option.
7068         (Fmake_network_process): Allow :coding arg to be a cons.
7069         Allow :server arg to be an integer specifying backlog size.
7070         Remove :options arg, and allow options to be specified directly
7071         as :KEY, VALUE pairs.  Parse these options before binding socket.
7072         As before, :reuseaddr t is default for a server process, but this
7073         can now be disabled by specifying :reuseaddr nil.
7074         (Fnetwork_interface_info): Rename from Fget_network_interface_info.
7075         (init_process): Availability of network options is now checked with
7076         simpler syntax (featurep 'make-network-process :OPTION); use loop to
7077         setup features.
7078         (syms_of_process): Fix defsubr's for the replaced functions.
7080 2003-09-16  Dave Love  <fx@gnu.org>
7082         * Makefile.in: Depend on coding.h.
7084 2003-09-14  Kim F. Storm  <storm@cua.dk>
7086         * process.c [HAVE_SOCKETS]: Include sys/ioctl.h and net/if.h.
7087         (Fnetwork_interface_list, Fget_network_interface_info): New defuns.
7088         (syms_of_process): Defsubr them.
7090         * config.in: Regenerate.
7092 2003-09-12  Stefan Monnier  <monnier@iro.umontreal.ca>
7094         * m/sr2k.h (XMARKBIT, XUNMARK): Remove.
7095         * m/news-r6.h (XUNMARK): Remove.
7096         * m/mips.h (XUNMARK): Remove.
7097         * m/mips-siemens.h (XUNMARK): Remove.
7098         * m/iris4d.h (XUNMARK): Remove.
7099         * m/hp800.h (XMARKBIT, XUNMARK): Remove.
7101 2003-09-11  Stefan Monnier  <monnier@iro.umontreal.ca>
7103         * lisp.h (VALBITS): Don't remove 1 for the markbit.
7104         (union Lisp_Object): Use unsigned int for types.  Remove markbit.
7105         (MARKBIT): Remove 1 from VALBITS so we still use same old val.
7106         (XTYPE): Use unsigned right-shift.
7107         (XMARKBIT, XMARK, XUNMARK): Remove.
7109         * alloc.c (init_intervals, init_symbol, init_marker):
7110         Don't preallocate anything.
7111         (Fgarbage_collect, mark_object): Ignore the markbit.
7113         * bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit.
7115 2003-09-08  Lute Kamstra  <lute@gnu.org>
7117         * xdisp.c (pint2hrstr): New function.
7118         (decode_mode_spec): Add `%i' and `%I' specs.
7119         * buffer.c (syms_of_buffer): Document `%i' and `%I' constructs
7120         for `mode-line-format'.
7122 2003-09-07  Andreas Schwab  <schwab@suse.de>
7124         * alloc.c: Use long instead of int when casting ABLOCKS_BUSY to
7125         avoid warning.
7127 2003-09-07  Eli Zaretskii  <eliz@gnu.org>
7129         * editfns.c (region_limit): Support any non-zero value of BEGINNINGP.
7131 2003-09-03  Kim F. Storm  <storm@cua.dk>
7133         * xdisp.c (get_window_cursor_type): Partially undo 2002-03-01
7134         change (superseded by 2002-08-30 change); the default blink-off
7135         cursor is now again "no cursor".
7137 2003-09-01  Jason Rumney  <jasonr@gnu.org>
7139         * makefile.w32-in (alloca.o): Remove.
7140         (coding.o): Depend on intervals.h
7141         (emacs.o, bytecode.o): Depend on window.h
7143 2003-09-01  Dave Love  <fx@gnu.org>
7145         * Makefile.in (alloca.o): Remove commands.
7146         (coding.o): Depend on intervals.h composite.h window.h.
7147         (emacs.o): Depend on window.h keyboard.h keymap.h.
7148         (gtkutil.o): Depend on keyboard.h charset.h coding.h.
7149         (bytecode.o): Depend on window.h.
7151 2003-08-31  Jason Rumney  <jasonr@gnu.org>
7153         * w32term.c (w32_per_char_metric): Allow cached metrics to be
7154         returned even when font_type is unknown.
7156         * xdisp.c (init_iterator): Remove old WINDOWSNT conditional.
7158 2003-08-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7160         * xterm.c (x_term_init): Initialize new fields in x_display_info.
7162         * xterm.h (struct x_display_info): Add red/green/blue_bits and
7163         *_offset.
7165         * xfns.c (lookup_rgb_color): Use new fields in x_display_info to
7166         calculate pixel value.
7168 2003-08-29  Gerd Moellmann  <gerd.moellmann@t-online.de>
7170         * xdisp.c (redisplay_internal): Fix change of 2003-04-30.
7171         Don't tell redisplay display is accurate when it's actually been
7172         paused for pending input.
7174 2003-08-29  Richard M. Stallman  <rms@gnu.org>
7176         * dispnew.c (adjust_glyph_matrix): Call window_box
7177         whenever W is nonzero.
7179         * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
7180         (Fkill_local_variable, Fmake_variable_frame_local)
7181         (Flocal_variable_p, Flocal_variable_if_set_p):
7182         Use indirect_variable to trace thru variable aliases.
7184         * config.in: Updated.
7186         * callint.c (Fcall_interactively): Save and restore
7187         Vthis_command, Vthis_original_command, real_this_command,
7188         and current_kboard->Vlast_command.
7190         * abbrev.c (Fexpand_abbrev): Insert before deleting.
7192 2003-08-29  Gerd Moellmann  <gerd@gnu.org>
7194         * xfns.c (lookup_rgb_color): Handle TrueColor visuals specially.
7196 2003-08-28  David Abrahams  <dave@boost-consulting.com>  (tiny change)
7198         * coding.c (decode_coding_iso2022): Initialize local variable c2.
7199         (decode_coding_sjis_big5): Likewise.
7201 2003-08-27  Jason Rumney  <jasonr@gnu.org>
7203         * w32.c (sys_pipe): Protect against file descriptor overflow.
7205         * w32fns.c (syms_of_w32fns): Remove non-existent functions.
7207         * w32term.c (w32_read_socket): Fix WM_MOUSEWHEEL assignment.
7209 2003-08-26  Terje Rosten  <terjeros@phys.ntnu.no>
7211         * xfns.c (Vgtk_version_string): New variable.
7212         (syms_of_xfns): DEFVAR_LISP it.  Provide gtk.
7214 2003-08-24  Eli Zaretskii  <eliz@gnu.org>
7216         * term.c (term_init): Remove `const' from buffer_size's declaration.
7218         * Makefile.in (msdos.o): Depend on intervals.h.
7220         * msdos.c: Include intervals.h, since STRING_INTERVALS requires that.
7222 2003-08-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7224         * xterm.h (struct x_display_info): New fields: client_leader_window
7225         and Xatom_wm_client_leader.
7227         * xterm.c (x_initialize): Move call to x_session_initialize to ...
7228         (x_term_init): ... here.  Initialize client_leader fields in dpyinfo.
7230         * xsmfns.c (create_client_leader_window): New function.
7231         (x_session_initialize): Call create_client_leader_window, take
7232         dpyinfo as argument.
7234         * xfns.c (Fx_create_frame): Set property WM_CLIENT_LEADER.
7236         * Makefile.in (xsmfns.o): Add more depenedencies.
7238 2003-08-21  Dave Love  <fx@gnu.org>
7240         * m/iris4d.h: Use _MIPS_SZLONG, not _LP64.
7242 2003-08-21  Kenichi Handa  <handa@m17n.org>
7244         * term.c (term_init): Fix previous change; don't rely on the
7245         length of `buffer' if TERMINFO is defined.
7247 2003-08-20  Dave Love  <fx@gnu.org>
7249         * atimer.h: Include lisp.h.
7251         * lisp.h (EMACS_LISP_H): New.
7252         (popup_activated_flag): Don't declare.
7254         * alloca.c: Some merging with gnulib.  Change logic and doc
7255         concerning (x)malloc/(x)free -- no longer Emacs-specific.
7256         [DO_BLOCK_INPUT]: Don't include lisp.h.
7257         (xmalloc, xfree): Declare.
7258         (malloc): Don't declare.
7260         * Makefile.in (LWLIB_OPTIONS): Remove (unused).
7261         (alloca.o): Remove obsolete stuff concerning alloca.s.  Depend on
7262         atimer.h, blockinput.h.
7264         * alloc.c (lisp_align_malloc): Change type of `aligned'.
7266         * alloca.s: Remove.
7268 2003-08-19  Gerd Moellmann  <gerd@gnu.org>
7270         * s/freebsd.h [__FreeBSD_version >= 400000]: Define TERMINFO,
7271         use -lncurses.
7273         * term.c (term_init): Use a buffer of size 4096 for tgetent since
7274         FreeBSD returns something longer than 2044.  Abort if the end of
7275         the buffer is overwritten.
7277 2003-08-19  Miles Bader  <miles@gnu.org>
7279         * xterm.c (x_term_init): Correctly use result of Ffile_readable_p.
7281 2003-08-19  Gerd Moellmann  <gerd@gnu.org>
7283         * alloc.c (lisp_align_malloc): Check for memory full when
7284         allocating ablocks, which also avoids freeing a pointer into an
7285         ablocks structure.
7287         * puresize.h (BASE_PURESIZE): Increase to 1100000.
7289         * buffer.c (Fmove_overlay): Set overlay's next pointer unconditionally.
7291 2003-08-16  Richard M. Stallman  <rms@gnu.org>
7293         * editfns.c (Fencode_time): Doc fix.
7295 2003-08-16  David Ponce  <david@dponce.com>
7297         * fileio.c (Fwrite_region): Fix conditional expression to issue
7298         the right message.
7300 2003-08-16  Juri Linkov  <juri@jurta.org>
7302         * syntax.c (Fforward_word): Argument changed to optional.
7303         Set default value to 1.
7305 2003-08-15  Kenichi Handa  <handa@m17n.org>
7307         * xfaces.c (better_font_p): Prefer a real scalable font; i.e. not
7308         what autoscaled.
7309         (best_matching_font): Once we find a better scalable font, set
7310         non_scalable_has_exact_height_p to 1.
7311         (try_font_list): Call try_alternative_families to try any family
7312         with the given registry.
7314 2003-08-09  Andreas Schwab  <schwab@suse.de>
7316         * alloc.c (mark_object): Handle Lisp_Misc_Save_Value.
7318         * print.c (print_string): Fix printing of multibyte string with
7319         nontrivial printcharfun.
7321 2003-07-31  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7323         * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.
7325         * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.
7327 2003-07-31  Kenichi Handa  <handa@m17n.org>
7329         * process.c (read_process_output): Return the actually read bytes
7330         instead of the result of decoding.
7332 2003-07-31  Kenichi Handa  <handa@m17n.org>
7334         * xterm.h (struct x_bitmap_record): New member have_mask.
7336         * xfns.c (x_create_bitmap_from_data): Initialize have_mask member
7337         to 0.
7338         (x_create_bitmap_from_file): Likewise.
7339         (x_destroy_bitmap): Check have_mask member before freeing a mask.
7340         (x_destroy_all_bitmaps): Likewise.
7341         (x_create_bitmap_mask): Set have_mask member to 1.
7343 2003-07-30  Richard M. Stallman  <rms@gnu.org>
7345         * Makefile.in (CFLAGS) [!OPTIMIZE]: Undo previous change.
7347 2003-07-29  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7349         * gtkutil.c (xg_mark_data): Update calls to mark_object.
7351 2003-07-29  Richard M. Stallman  <rms@gnu.org>
7353         * xterm.c (xim_open_dpy, xim_initialize, xim_close_dpy):
7354         Conditionalize XIM code on HAVE_XIM.
7356         * fns.c (Fclear_string): New function.
7357         (syms_of_fns): defsubr it.
7359 2003-07-28  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
7361         * xfns.c (xic_set_preeditarea): Add the left fringe width to spot.x.
7363 2003-07-22  Stefan Monnier  <monnier@cs.yale.edu>
7365         * xfns.c: Don't check HAVE_PNG_H: autoconf doesn't seem to find it.
7367         * buffer.c (delete_all_overlays): New function.
7368         * buffer.h (delete_all_overlays): Declare.
7369         * coding.c (run_pre_post_conversion_on_str):
7370         * print.c (temp_output_buffer_setup):
7371         * fileio.c (Finsert_file_contents):
7372         * minibuf.c (get_minibuffer): Use it.
7374 2003-07-22  Andrew Choi  <akochoi@shaw.ca>
7376         * unexmacosx.c (unexec_regions_sort_compare):
7377         (unexec_regions_merge): New functions.  Sort and merge unexec
7378         regions before dumping them.
7380 2003-07-22  Dave Love  <fx@gnu.org>
7382         * xfns.c [HAVE_PNG]: Consider both png.h and libpng/png.h.
7384 2003-07-21  Stefan Monnier  <monnier@cs.yale.edu>
7386         * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P)
7387         (GC_STRING_CHARS, string_bytes): Use ARRAY_MARK_FLAG rather than
7388         MARKBIT as the gcmarkbit for strings.
7390 2003-07-21  Richard M. Stallman  <rms@gnu.org>
7392         * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Add undef.
7394         * fns.c (Flocale_info): Rename from Flanginfo.  Doc fixes.
7395         (syms_of_fns): Corresponding change.
7397         * alloc.c (syms_of_alloc): Doc fixes.
7399 2003-07-20  Han Boetes  <han@mijncomputer.nl>  (tiny change)
7401         * s/netbsd.h: Use -Wl syntax.
7403 2003-07-17  Richard M. Stallman  <rms@gnu.org>
7405         * xterm.c (xim_initialize): Redo 6/24 change.
7407 2003-07-15  Stefan Monnier  <monnier@cs.yale.edu>
7409         * buffer.c (copy_overlays): Use EMACS_INT for positions.
7410         (Fswitch_to_buffer): Don't signal an error when switching to the same
7411         buffer in a dedicated window.
7413         * alloc.c: Use bitmaps for cons, as was done for floats.
7414         (init_float, init_cons): Let the normal code allocate the first block.
7415         (CONS_BLOCK_SIZE): Redefine based on BLOCK_BYTES and bitmap size.
7416         (CONS_BLOCK, CONS_INDEX, CONS_MARKED_P, CONS_MARK, CONS_UNMARK):
7417         New macros.
7418         (struct cons_block): Move conses to the beginning.  Add gcmarkbits.
7419         (Fcons): Use lisp_align_malloc and CONS_UNMARK.
7420         (live_cons_p): Check the pointer is not past the `conses' array.
7421         (mark_maybe_object, mark_maybe_pointer): Use CONS_MARKED_P.
7422         (mark_object, mark_buffer): Use CONS_MARKED_P and CONS_MARK.
7423         (survives_gc_p): Use CONS_MARKED_P and simplify.
7424         (gc_sweep): Use CONS_MARKED_P, CONS_UNMARK, and lisp_align_free.
7426 2003-07-13  Paul Eggert  <eggert@twinsun.com>
7428         GCC 3.3 (sparc) no longer puts "int foo = 0;" into data; it
7429         puts it into BSS instead, at least on Solaris 8 and 9.
7430         This is a valid optimization, and it may occur on other platforms,
7431         so Emacs should not assume that initializing a static variable to
7432         zero puts it into data.
7433         * alloc.c (pure, staticvec):
7434         Initialize these arrays to nonzero, so that they're not
7435         put into BSS by that optimization.
7437 2003-07-13  Stefan Monnier  <monnier@cs.yale.edu>
7439         * alloc.c (BLOCK_PADDING): Rename from ABLOCKS_PADDING.  Update users.
7440         (lisp_align_malloc): Use posix_memalign is available.
7441         (ABLOCKS_BASE): Use HAVE_POSIX_MEMALIGN as an optimization.
7442         (STRING_BLOCK_SIZE): Rename from STRINGS_IN_STRING_BLOCK
7443         for consistency.  Update users.
7445 2003-07-13  Richard M. Stallman  <rms@gnu.org>
7447         * s/netbsd.h (START_FILES_1, END_FILES_1): Always define them.
7449 2003-07-13  Terje Rosten  <terjeros@phys.ntnu.no>
7451         * xterm.c (x_bitmap_icon,x_wm_set_icon_pixmap): Modify to add mask,
7452         and use the Gtk+ function gtk_window_icon_from_file if available.
7454         * xfns.c (x_bitmap_mask, x_create_bitmap_mask): New functions to
7455         handle mask of bitmaps.
7456         (x_allocate_bitmap_record, x_destroy_bitmap): Modify to handle the
7457         mask property.
7458         (xg_set_icon): New function, wrapper for gtk_window_icon_from_file.
7460         * xterm.h (xg_set_icon): New function.
7462 2003-07-12  Paul Eggert  <eggert@twinsun.com>
7464         * unexelf.c (unexec): Consider a section to precede the .bss
7465         section if its addresses overlap that of .bss.
7467 2003-07-12  Richard M. Stallman  <rms@gnu.org>
7469         * Makefile.in (CFLAGS) [!OPTIMIZE]: Set CFLAGS to -g.
7471         * config.in (HAVE_CRTIN): Add #undef.
7472         (INLINE): Really inline only if OPTIMIZE is defined.
7474         * s/netbsd.h (START_FILES, LIB_STANDARD): Use START_FILES_1,
7475         END_FILES_1.
7476         (START_FILES_1, END_FILES_1): New macros (conditional).
7477         (LD_SWITCH_SYSTEM_TEMACS): Define.
7479         * s/openbsd.h: Don't include bsd4-3.h.
7480         (TERMINFO): Define.
7481         (LIBS_TERMCAP): Define.
7482         (LD_SWITCH_SYSTEM): Define (two definitions).
7484         * xfns.c: Include libpng/png.h instead of png.h.
7486 2003-07-11  Andreas Schwab  <schwab@suse.de>
7488         * buffer.c (modify_overlay): Update prototype.
7489         * lisp.h (adjust_overlays_for_insert, adjust_overlays_for_delete):
7490         Likewise.
7492 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
7494         * lisp.h (VALBITS): Define in terms of GCTYPEBITS.
7495         (struct interval): Move to intervals.h.
7496         (struct Lisp_Marker): Use EMACS_INT for position info.
7497         (forward_point): Remove prototype of defunct function.
7498         (Qmodification_hooks, Qrear_nonsticky, Fnext_property_change)
7499         (Fget_text_property, Fset_text_properties, Ftext_propertes_not_all)
7500         (syms_of_textprop, set_text_properties): Remove prototypes that are
7501         already in intervals.h.
7503         * intervals.h (struct interval): Move from lisp.h.
7504         Use EMACS_INT for position and size info.
7506         * coding.c: Include intervals.h for Fset_text_properties.
7508         * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7509         position and length information.
7511 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
7513         * buffer.h (struct buffer_text, struct buffer): Use EMACS_INT for
7514         position and length information.
7516 2003-07-09  Stefan Monnier  <monnier@cs.yale.edu>
7518         Change overlays_after and overlays_before so the overlays themselves
7519         are linked into lists, rather than using cons cells.  After all each
7520         Lisp_Misc already occupies 5 words, so we can add a `next' field to
7521         Lisp_Overlay for free and save up one cons cell per overlay (not
7522         to mention one indirection when traversing the list of overlay).
7524         * lisp.h (struct Lisp_Overlay): New field `next'.
7526         * buffer.h (struct buffer): Change overlays_before and overlays_after
7527         from Lisp lists of overlays to pointers to overlays.
7529         * buffer.c (overlay_strings, recenter_overlay_lists):
7530         Fix typo in eassert in last commit.
7531         (unchain_overlay): New function.
7532         (add_overlay_mod_hooklist): Use AREF.
7533         (copy_overlays, reset_buffer, overlays_at, overlays_in)
7534         (overlay_touches_p, overlay_strings, recenter_overlay_lists)
7535         (fix_overlays_in_range, fix_overlays_before, Fmake_overlay)
7536         (Fmove_overlay, Fdelete_overlay, Foverlay_lists)
7537         (report_overlay_modification, evaporate_overlays, init_buffer_once):
7538         Adjust to new type of overlays_(before|after).
7540         * alloc.c (mark_object): Mark the new `next' field of overlays.
7541         (mark_buffer): Manually mark the overlays_(after|before) fields.
7543         * coding.c (run_pre_post_conversion_on_str):
7544         * editfns.c (overlays_around):
7545         * xdisp.c (load_overlay_strings):
7546         * fileio.c (Finsert_file_contents):
7547         * indent.c (current_column):
7548         * insdel.c (signal_before_change, signal_after_change):
7549         * intervals.c (set_point_both):
7550         * print.c (temp_output_buffer_setup): Use new type for
7551         overlays_(before|after).
7553 2003-07-08  Stefan Monnier  <monnier@cs.yale.edu>
7555         * buffer.c (report_overlay_modification): Don't run hooks while
7556         traversing the list of overlays.
7558         * buffer.h (struct buffer): Use an int for overlay_center.
7559         (overlays_at, evaporate_overlays, recenter_overlay_lists)
7560         (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7562         * buffer.c (reset_buffer, recenter_overlay_lists)
7563         (adjust_overlays_for_insert, adjust_overlays_for_delete)
7564         (fix_overlays_in_range, Fmake_overlay, Fmove_overlay)
7565         (evaporate_overlays, init_buffer_once): Update use of overlay_center.
7566         (overlays_at, evaporate_overlays, recenter_overlay_lists)
7567         (overlay_strings, fix_overlays_before): Use EMACS_INT for positions.
7569         * xdisp.c (fast_find_position): Remove unused var.
7571         * cmds.c (Qexpand_abbrev): New sym.
7572         (syms_of_cmds): Initialize it.
7573         (internal_self_insert): Use it to call expand-abbrev.
7575 2003-07-09  Kim F. Storm  <storm@cua.dk>
7577         * xterm.c (use_xim) [!USE_XIM]: Default to disable XIM if Emacs
7578         was configured with --without-xim.
7579         (x_term_init) [!USE_XIM]: Use `useXIM' resource to turn on XIM.
7581 2003-07-07  Richard M. Stallman  <rms@gnu.org>
7583         * xdisp.c (reseat_1): Set it->area to TEXT_AREA.
7585         * alloc.c (Fgarbage_collect): Doc fix.
7587 2003-07-07  Nozomu Ando  <nand@mac.com>
7589         * buffer.c (Fkill_buffer): Clear charpos cache if necessary.
7591 2003-07-06  Stefan Monnier  <monnier@cs.yale.edu>
7593         * minibuf.c (read_minibuf): UNGCPRO before returning.
7594         (Ftry_completion, Fall_completions): Doc fix.
7596         * alloc.c (live_float_p): Check that p is not past the `floats' array,
7597         now that `floats' is not the last element of the struct any more.
7599 2003-07-06  Jason Rumney  <jasonr@gnu.org>
7601         * w32term.h (ClipboardSequence_Proc): New type.
7603         * w32fns.c (clipboard_sequence_fn): New variable.
7604         (globals_of_w32fns): Initialize it.
7606         * w32select.c (last_clipboard_sequence_number): New variable.
7607         (Fw32_set_clipboard_data, Fw32_get_clipboard_data): Use sequence
7608         number if possible.
7610 2003-07-06  Stefan Monnier  <monnier@cs.yale.edu>
7612         * m/amdx86-64.h (MARKBIT):
7613         * m/ia64.h (MARKBIT): Remove definition since lisp.h does not compare
7614         MARKBIT and ARRAY_MARK_FLAG any more.
7616         * m/hp800.h (XSETMARKBIT):
7617         * m/sr2k.h (XSETMARKBIT):
7618         * lisp.h (XSETMARKBIT): Remove unused macro.
7620         * lisp.h (mark_object): Change prototype.
7622         * alloc.c (mark_object): Change arg *Lisp_Object -> Lisp_Object.
7623         (last_marked): Change accordingly.
7624         (mark_interval, mark_maybe_object, mark_maybe_pointer)
7625         (Fgarbage_collect, mark_glyph_matrix, mark_face_cache, mark_image)
7626         (mark_buffer): Update calls to mark_object.
7628         * bytecode.c (mark_byte_stack):
7629         * fns.c (sweep_weak_table):
7630         * keyboard.c (mark_kboards): Update calls to mark_object.
7632 2003-07-06  Jason Rumney  <jasonr@gnu.org>
7634         * alloc.c (struct ablock): Only include padding when there is some.
7636 2003-07-04  Stefan Monnier  <monnier@cs.yale.edu>
7638         * alloc.c (ALIGN): Add casts to simplify usage.
7639         (BLOCK_ALIGN, BLOCK_BYTES, ABLOCKS_PADDING, ABLOCKS_SIZE)
7640         (ABLOCKS_BYTES, ABLOCK_ABASE, ABLOCKS_BUSY, ABLOCKS_BASE): New macros.
7641         (struct ablock, struct ablocks): New types.
7642         (free_ablock): New global var.
7643         (lisp_align_malloc, lisp_align_free): New functions.
7644         (FLOAT_BLOCK_SIZE): Redefine in terms of BLOCK_BYTES.
7645         (struct float_block): Reorder and add gcmarkbits.
7646         (GETMARKBIT, SETMARKBIT, UNSETMARKBIT, FLOAT_BLOCK, FLOAT_INDEX)
7647         (FLOAT_MARKED_P, FLOAT_MARK, FLOAT_UNMARK): New macros.
7648         (init_float, make_float): Use lisp_align_malloc.
7649         (free_float, live_float_p): Don't use `type' any more.
7650         (make_float): Use FLOAT_UNMARK to access to mark bit.
7651         (mark_maybe_object, mark_maybe_pointer, survives_gc_p):
7652         Use FLOAT_MARKED_P to access the mark bit.
7653         (pure_alloc): Simplify use of ALIGN.
7654         (mark_object): Use FLOAT_MARK to access the mark bit.
7655         (gc_sweep): Use new macros to access the float's mark bit.
7656         (init_alloc_once): Init free_ablock.
7658         * lisp.h (struct Lisp_Float): Remove unused field `type'.
7660 2003-06-27  Stefan Monnier  <monnier@cs.yale.edu>
7662         * alloc.c (VECTOR_MARK, VECTOR_UNMARK, VECTOR_MARKED_P): New macros.
7663         (GC_STRING_BYTES): Don't mask markbit (it's only used on `size').
7664         (allocate_buffer): Move.
7665         (string_bytes): Don't mask markbit of `size_byte'.
7666         (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7667         (mark_object, mark_buffer, survives_gc_p, gc_sweep):
7668         Use the `size' field of buffers (rather than the `name' field) for
7669         the mark bit, as is done for all other vectorlike objects.
7670         Use the new macros to access the mark bit of vectorlike objects.
7672 2003-06-26  Richard M. Stallman  <rms@gnu.org>
7674         * puresize.h (BASE_PURESIZE): Increment base size.
7676         * xdisp.c (fast_find_position): Enable Gerd's new definition.
7678         * xterm.c (xim_initialize): Undo previous change.
7680 2003-06-26  Stefan Monnier  <monnier@cs.yale.edu>
7682         * alloc.c (survives_gc_p): Simplify.
7684         * buffer.c (set_buffer_internal_1): Test CONSP for lists.
7686         * window.c (Fset_window_dedicated_p): Simplify.
7687         (display_buffer_1): Don't raise the win from which minibuf was entered.
7688         (temp_output_buffer_show): Don't assume BEG == 1.  Simplify.
7689         (Fminibuffer_selected_window): Simplify.
7691         * buffer.h (struct buffer_text): Lisp_Object `markers' => Lisp_Marker.
7693         * lisp.h (unchain_marker): Lisp_Object arg => Lisp_Marker.
7694         (struct Lisp_Marker): Lisp_Object `chain' => Lisp_Marker `next'.
7696         * insdel.c (check_markers, adjust_markers_for_delete)
7697         (adjust_markers_for_insert, adjust_markers_for_replace)
7698         (prepare_to_modify_buffer, RESTORE_VALUE):
7699         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos)
7700         (Fset_marker, set_marker_restricted, set_marker_both, unchain_marker)
7701         (set_marker_restricted_both, Fbuffer_has_markers_at, count_markers):
7702         * alloc.c (Fmake_marker, free_marker, gc_sweep):
7703         * buffer.c (Fget_buffer_create, Fkill_buffer, Fset_buffer_multibyte):
7704         * editfns.c (save_excursion_restore, transpose_markers):
7705         * window.c (delete_window):
7706         * xdisp.c (message_dolog): Update for new types.
7708 2003-06-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7710         * xfaces.c (set_font_frame_param): Set default_face_done_p to zero.
7711         (realize_default_face): Use default_face_done_p for the force_p
7712         argument to set_lface_from_font_name.  Set default_face_done_p to one.
7714         * frame.c (make_frame): Initialize default_face_done_p.
7716         * frame.h (struct frame): Add default_face_done_p.
7718         * config.in: Add XRegisterIMInstantiateCallback_arg6 so it
7719         will be defined.
7721 2003-06-25  Stefan Monnier  <monnier@cs.yale.edu>
7723         * alloc.c (make_interval, Fmake_symbol, allocate_misc):
7724         Initialize the new field `gcmarkbit'.
7725         (mark_interval, MARK_INTERVAL_TREE): Use the new `gcmarkbit' field.
7726         (mark_interval_tree): Don't mark the tree separately from the nodes.
7727         (UNMARK_BALANCE_INTERVALS): Don't unmark the tree.
7728         (mark_maybe_object, mark_maybe_pointer, Fgarbage_collect)
7729         (mark_object, survives_gc_p, gc_sweep): Use new `gcmarkbit' fields.
7731         * lisp.h (struct interval, struct Lisp_Symbol, struct Lisp_Free)
7732         (struct Lisp_Marker, struct Lisp_Intfwd, struct Lisp_Boolfwd)
7733         (struct Lisp_Kboard_Objfwd, struct Lisp_Save_Value)
7734         (struct Lisp_Buffer_Local_Value, struct Lisp_Overlay)
7735         (struct Lisp_Objfwd, struct Lisp_Buffer_Objfwd): Add `gcmarkbit' field.
7737 2003-06-24  Dave Love  <fx@gnu.org>
7739         * xterm.c (xim_initialize): Use XRegisterIMInstantiateCallback_arg6.
7741         * strftime.c: Test HAVE_SYS__MBSTATE_H, not __hpux.  Merge changes
7742         from gnulib.
7744 2003-06-21  Richard M. Stallman  <rms@gnu.org>
7746         * fileio.c (Fwrite_region): Alternate messages
7747         for append and partial write.
7749         * keyboard.c (read_key_sequence): When converting upcase fn key to
7750         downcase, update fkey and keytran so `backspace' gets translated.
7752         * keyboard.c (read_avail_input): Don't signal SIGHUP in batch mode.
7754         * process.c (wait_reading_process_input): Don't signal SIGIO
7755         in batch mode.
7757 2003-06-17  Kenichi Handa  <handa@m17n.org>
7759         * Makefile.in (xselect.o): Don't depend on charset.h, coding.h,
7760         composite.h.
7762         * xselect.c: Don't include charset.h, coding.h, composite.h.
7763         (Qforeign_selection): New variable.
7764         (syms_of_xselect): Intern and static it.
7765         (selection_data_to_lisp_data): Return a unibyte string made from
7766         data with `foreign-selection' text property.
7768 2003-06-15  Stefan Monnier  <monnier@cs.yale.edu>
7770         * termhooks.h (EVENT_INIT): New macro.
7772         * keyboard.c (mark_kboards): Move from alloc.c.  Mark kbd_buffer.
7774         * alloc.c (mark_kboards): Move to keyboard.c.
7776         * keyboard.c (record_asynch_buffer_change, read_avail_input):
7777         * xterm.c (x_dispatch_event):
7778         * xmenu.c (find_and_call_menu_selection):
7779         * xdisp.c (handle_tool_bar_click):
7780         * w32menu.c (menubar_selection_callback):
7781         * sysdep.c (kbd_input_ast, read_input_waiting):
7782         * msdos.c (dos_rawgetc):
7783         * macterm.c (mac_check_for_quit_char):
7784         * macmenu.c (menubar_selection_callback):
7785         * gtkutil.c (xg_tool_bar_callback): Don't pass uninitialized
7786         data to kbd_buffer_store_event.
7788 2003-06-15  Kim F. Storm  <storm@cua.dk>
7790         * xdisp.c (x_fix_overlapping_area): Always use area relative X
7791         to fix redisplay problem with tall characters (such as \e,AC\e(B).
7793 2003-06-13  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
7795         * fileio.c (Fcopy_file): Doc fix: copies file modes, too.
7797 2003-06-12  Kenichi Handa  <handa@m17n.org>
7799         * fileio.c (Fwrite_region): Save and restore restriction.
7801 2003-06-12  Dave Love  <fx@gnu.org>
7803         * alloca.c (alloca): Declare arg as size_t.
7805         * sysdep.c: Remove redundant include of unistd.h, stdlib.h.
7806         Use HAVE_DECL_SYS_SIGLIST, not SYS_SIGLIST_DECLARED.
7808 2003-06-11  Dave Love  <fx@gnu.org>
7810         * search.c (shrink_regexp_cache): Use xrealloc.
7811         (syms_of_search): Use xmalloc.
7813 2003-06-10  Kim F. Storm  <storm@cua.dk>
7815         * xdisp.c (phys_cursor_in_rect_p): Fix 2003-05-24 change.
7816         Adjust phys_cursor.x to be relative to window box, rather than
7817         text area before checking -- to ensure cursor is redrawn when
7818         exposing window.
7819         Note: This also fixes a similar (older) bug if display margins
7820         are present.
7822 2003-06-06  Kenichi Handa  <handa@m17n.org>
7824         * coding.c (encoding_buffer_size): If coding->type is
7825         coding_type_ccl, double magnification on CRLF encoding.
7827 2003-06-06  Jason Rumney  <jasonr@gnu.org>
7829         * w32reg.c (SYSTEM_DEFAULT_RESOURCES): New constant.
7830         (w32_get_string_resource): Try SYSTEM_DEFAULT_RESOURCES last.
7832         * xfaces.c (Finternal_face_x_get_resource): Do it on Windows and
7833         Mac too.
7835 2003-06-05  Dave Love  <fx@gnu.org>
7837         * strftime.c: Merge changes from gnulib.
7839         * mktime.c (__mktime_internal): Merge changes from gnulib
7840         involving year 69 and dst2.
7842         Changes to merge with gnulib version and be consistent with the
7843         autoconf test:
7845         * getloadavg.c: Set NLIST_STRUCT from HAVE_NLIST_H.
7846         Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not NLIST_NAME_UNION.
7847         [HAVE_LOCALE_H]: Include locale.h.
7848         (getloadavg) [HAVE_SETLOCALE]: Run sscanf in C locale.
7850 2003-06-05  Kim F. Storm  <storm@cua.dk>
7852         * window.c (coordinates_in_window): Convert X and Y to window
7853         relative coordinates inside mode-line and header-line parts.
7854         Convert X and Y to margin area relative coordinates inside left
7855         and right display margin parts.
7857 2003-06-05  Jason Rumney  <jasonr@gnu.org>
7859         * w32fns.c (add_system_logical_colors_to_map): New function.
7860         (Fx_open_connection): Use it.
7862 2003-06-04  Stefan Monnier  <monnier@cs.yale.edu>
7864         * process.c (allocate_pty): Revert part of the previous patch.
7865         (Faccept_process_output): Simplify.
7867 2003-06-04  Jason Rumney  <jasonr@gnu.org>
7869         * termhooks.h (enum event_kind): Remove MOUSE_WHEEL_EVENT.
7871         * keyboard.c (Qmouse_wheel, mouse_wheel_syms)
7872         (lispy_mouse_wheel_names): Remove.
7873         (syms_of_keyboard): Remove Qmouse_wheel and mouse_wheel_syms.
7874         Always define drag_and_drop_syms.
7876         * macterm.c (XTread_socket): Map mouse wheel events to Emacs
7877         WHEEL_EVENT events.
7879 2003-06-03  Stefan Monnier  <monnier@cs.yale.edu>
7881         * xdisp.c (update_tool_bar): Add missing UNGCPRO.
7883         * buffer.c (init_buffer_once): Make kill-buffer-hook permanent-local.
7885 2003-06-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7887         * gtkutil.c (make_menu_item): Make sure we don't crash on a NULL
7888         menu item label.
7890 2003-06-03  Richard M. Stallman  <rms@gnu.org>
7892         * window.c (Fwindow_edges): Doc fix.
7893         (Fwindow_pixel_edges, Fwindow_inside_edges)
7894         (Fwindow_inside_pixel_edges): New functions.
7895         (syms_of_window): defsubr them.
7897         * window.h (WINDOW_LEFT_FRINGE_COLS, WINDOW_RIGHT_FRINGE_COLS)
7898         (WINDOW_MODE_LINE_LINES, WINDOW_HEADER_LINE_LINES): New macros.
7900 2003-06-02  Stefan Monnier  <monnier@cs.yale.edu>
7902         * dispnew.c (Fsit_for): Don't lie about the number of args.
7904 2003-06-02  Dave Love  <fx@gnu.org>
7906         * callproc.c: Use HAVE_FCNTL_H, not USG5.
7907         (syms_of_callproc) <process-environment>: Doc fix.
7909         * doc.c: Use HAVE_FCNTL_H, not USG5.
7911         * xfaces.c (font_rescale_ratio): Fix for K&R.
7913         * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
7915         * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
7917         * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
7919         * gtkutil.c: Include keyboard.h, charset.h, coding.h.
7920         (xg_create_frame_widgets): Use ENCODE_UTF_8.
7922         * xterm.c (Qutf_8): Move to coding.c
7924         * xmenu.c (ENCODE_MENU_STRING): New.
7925         (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
7926         Use it.
7928         * coding.h (ENCODE_UTF_8): New.
7929         (Qutf_8): Declare.
7931         * coding.c (Qutf_8): New.
7932         (syms_of_coding): Intern it.
7934         * fns.c: Doc fixes.
7936 2003-06-02  Kenichi Handa  <handa@m17n.org>
7938         * buffer.c (Fset_buffer_multibyte): Fix previous change.
7940 2003-06-01  Stefan Monnier  <monnier@cs.yale.edu>
7942         * lread.c (openp): Make sure STR is a string.
7944 2003-06-01  David Ponce  <david@dponce.com>
7946         * termhooks.h (enum event_kind): Add new WHEEL_EVENT event.
7947         Declare MOUSE_WHEEL_EVENT only if MAC_OSX defined.
7949         * keyboard.c (Qmouse_wheel): Declare only if MAC_OSX defined.
7950         (mouse_wheel_syms, lispy_mouse_wheel_names): Likewise.
7951         (discard_mouse_events): Discard WHEEL_EVENT events too.
7952         (lispy_wheel_names, wheel_syms): New.
7953         (syms_of_keyboard): Init and staticpro `wheel_syms'.  Init and
7954         staticpro `Qmouse_wheel' and `mouse_wheel_syms' only if MAC_OSX defined.
7955         (make_lispy_event): Add WHEEL_EVENT handler.
7957         * w32term.c (construct_mouse_wheel): Construct WHEEL_EVENT.
7958         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
7959         WHEEL_EVENT events.
7961 2003-05-31  John Paul Wallington  <jpw@gnu.org>
7963         * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
7964         timer are in lisp/emacs-lisp.
7966 2003-05-31  Kenichi Handa  <handa@m17n.org>
7968         * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
7969         region when a buffer is changed to unibyte.
7971         * charset.h (VALID_LEADING_CODE_P): New macro.
7972         (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
7974         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
7975         is nonzero, accept multibyte form of eight-bit-control chars.
7976         (decode_composition_emacs_mule): Likewise.
7977         (decode_coding_emacs_mule): Likewise.
7978         (encode_coding_emacs_mule): If coding->flags is nonzero, produce
7979         multibyte form of eight-bit-control chars.
7981         * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
7982         (Finsert_file_contents): If coding-system-for-read is bound to
7983         Qauto_save_coding, use the coding system emacs-mule with special
7984         setting for recovering a file.
7985         (choose_write_coding_system): On auto saving, use the coding
7986         system emacs-mule with special setting for auto saving.
7987         (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
7989 2003-05-30  Kenichi Handa  <handa@m17n.org>
7991         * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
7992         properly before calling ccl_driver.
7994         * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
7996         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is nonzero.
7997         (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
7998         (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
8000 2003-05-29  Glenn Morris  <gmorris@ast.cam.ac.uk>
8002         * xfaces.c (realize_default_face): Do not abort if lface is
8003         non-existent - reverts change from 2003-05-19.
8005 2003-05-29  Kenichi Handa  <handa@m17n.org>
8007         * coding.c (decode_coding_iso2022): Pay attention to the byte
8008         sequence of CTEXT extended segment, and retain those bytes as is.
8010 2003-05-28  Kenichi Handa  <handa@m17n.org>
8012         * coding.c (ENCODE_UNSAFE_CHARACTER): Adjust for the name change
8013         of CODING_REPLACEMENT_CHARACTER.
8014         (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
8015         CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
8016         check this flag on encoding.
8017         (encode_coding_sjis_big5):
8018         Check CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
8019         (Fset_terminal_coding_system_internal):
8020         Set CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
8021         instead of setting CODING_FLAG_ISO_SAFE flag in terminal_coding.flags.
8023         * coding.h (CODING_REPLACEMENT_CHARACTER): Rename from
8024         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
8025         (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
8027 2003-05-28  Richard M. Stallman  <rms@gnu.org>
8029         * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
8031         * eval.c (unbind_to): Move init of this_binding to separate statement.
8033 2003-05-28  Kim F. Storm  <storm@cua.dk>
8035         * xdisp.c (expose_window): Fix error in calculation of
8036         window relative coordinates of area to redisplay.
8038 2003-05-27  Jason Rumney  <jasonr@gnu.org>
8040         * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
8042 2003-05-27  David Ponce  <david@dponce.com>
8044         Handle W32 mouse wheel events as mouse click events, like in X.
8046         * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
8047         MOUSE_WHEEL_EVENT anymore.
8049         * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
8050         Scrolling down/up the mouse wheel is respectively mapped to mouse
8051         button 4 and 5.
8052         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
8053         MOUSE_CLICK_EVENT events.  Forward w32 MSH_MOUSEWHEEL events as
8054         WM_MOUSEWHEEL events.
8056 2003-05-27  Andreas Schwab  <schwab@suse.de>
8058         * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
8060         * xdisp.c (try_window_id): Avoid aborting if PT is inside a
8061         partially visible line.
8063         * alloc.c (Fgarbage_collect): Fix last change.
8065 2003-05-26  John Paul Wallington  <jpw@gnu.org>
8067         * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
8069 2003-05-25  Stefan Monnier  <monnier@cs.yale.edu>
8071         * window.c (Fset_window_buffer): Add type of `keep_margins'.
8072         (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
8074         * window.h (window_box_text_cols): Declare.
8076         * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
8077         (x_draw_vertical_border): Remove unused var `f'.
8079         * xfaces.c (build_scalable_font_name): Remove `unused var
8080         pixel_size' warning.
8082         * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
8084         * unexelf.c (unexec): Remove `unused var n' warning.
8086         * strftime.c (my_strftime_localtime_r): Remove `defined but
8087         unused' warning.
8089         * process.c (allocate_pty): Remove `unused var stb' and
8090         `cp might be used uninitialized' warnings.
8092         * dispnew.c (mode_line_string): Remove unused var `f'.
8094         * coding.c (find_safe_codings): Remove unused var `i'.
8096         * bytecode.c (Fbyte_code): Remove `unused val' warning.
8098         * buffer.c (Fkill_buffer): Remove unused var `list'.
8100         * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
8102 2003-05-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8104         * frame.c (make_frame): Condition want_fullscreen with
8105         HAVE_WINDOW_SYSTEM.
8107 2003-05-25  Juanma Barranquero  <lektu@terra.es>
8109         * window.c (Fset_window_scroll_bars): Fix typo in argument name.
8110         (Fwindow_scroll_bars): Fix typo in docstring.
8112 2003-05-24  Kim F. Storm  <storm@cua.dk>
8114         The following changes serve several purposes:
8116         1) Swap the position of fringes and display margins in windows, i.e.
8117         the fringes are now displayed between the margins and the text area
8118         (by default).
8120         2) Allow fringe and scroll bar parameters to be set per-buffer and
8121         per-window (like display margins).  Such settings are now stored
8122         in window configurations, preserved when frames are resized, and
8123         copied when windows are split vertically or horizontally.
8124         Several bugs related to display margins have been fixed.
8126         3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
8128         4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
8129         rather than FRAME_WIDTH (FRAME_FONT (f)).
8131         5) Introduce a consistent naming of variables, members and macros
8132         depending on whether their value is measured in pixels or in
8133         canonical columns/lines.  Pixel dimensions are named *_width and
8134         *_height, while canonical columns/lines are named *_cols and
8135         *_lines.  Pixel positions are named *_x and *_y, while column/line
8136         positions are named *_col and *_line.
8138         6) Consolidate more of the X, W32, and MAC gui code by moving
8139         common data into struct frame, and generalize it for the non-gui
8140         case by using suitable defaults.
8142         7) Cleanup and consolidate the macros controlling frame and window
8143         layout into frame.h and window.h, and generalize the use of the
8144         various window_box_* functions (enhanced to handle the new fringe
8145         position and the per-window fringe and scroll bar settings).
8147         * frame.h (struct frame): Rename members height to text_lines,
8148         width to text_cols, window_height to total_lines, window_width to
8149         total_cols, new_height to new_text_lines, new_width to
8150         new_text_cols.  All uses changed.
8151         (struct frame): New members which consolidate common members of
8152         x_output, w32_output, and mac_output structures: left_pos,
8153         top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
8154         win_gravity, size_hint_flags, border_width, internal_border_width,
8155         line_height, fringe_cols, left_fringe_width, right_fringe_width,
8156         want_fullscreen.  All uses changed.
8157         (struct frame): New member column_width contaning the canonical
8158         column width, analogue to line_height.  All uses changed.
8159         (struct frame): Rename members scroll_bar_pixel_width to
8160         config_scroll_bar_width, and scroll_bar_cols to
8161         config_scroll_bar_cols.  All uses changed.
8162         (struct frame): New member scroll_bar_actual_width which
8163         consolidates and renames the vertical_scroll_bar_extra member of
8164         x_output, w32_output, and mac_output structures.  All uses changed.
8165         (FRAME_PIXEL_HEIGHT): Rename from PIXEL_HEIGHT and moved
8166         from x/w32/macterm.h files.  All uses changed.  Also change code
8167         which referred to f->output_data...->pixel_height.
8168         (FRAME_PIXEL_WIDTH): Rename from PIXEL_WIDTH and moved
8169         from x/w32/macterm.h files.  All uses changed.  Also change code
8170         which referred to f->output_data...->pixel_width.
8171         (FRAME_LINES): Rename from FRAME_HEIGHT.  All uses changed.
8172         Also change code which referred to f->height.
8173         (FRAME_COLS): Rename from FRAME_WIDTH.  All uses changed.
8174         Also change code which referred to f->width.
8175         (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
8176         to update new_text_lines and new_text_cols members directly.
8177         (FRAME_CONFIG_SCROLL_BAR_WIDTH): Rename from
8178         FRAME_SCROLL_BAR_PIXEL_WIDTH.  All uses changed.
8179         (FRAME_CONFIG_SCROLL_BAR_COLS): Rename from
8180         FRAME_SCROLL_BAR_COLS.  All uses changed.
8181         (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
8182         Rename from FRAME_LEFT_SCROLL_BAR_WIDTH and
8183         FRAME_RIGHT_SCROLL_BAR_WIDTH, resp.  All uses changed.
8184         (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
8185         (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
8186         (FRAME_TOTAL_COLS): Rename from FRAME_WINDOW_WIDTH.
8187         (SET_FRAME_COLS): Rename from SET_FRAME_WIDTH.
8188         (FRAME_TOTAL_COLS_ARG): Rename from FRAME_WINDOW_WIDTH_ARG.
8189         (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
8190         (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
8191         (FRAME_LINE_HEIGHT): Rename from CANON_Y_UNIT.
8192         Unconditionally return line_height member (it now has proper value
8193         also for non-window frames).
8194         (FRAME_COLUMN_WIDTH): Rename from CANON_X_UNIT.  Unconditionally
8195         return new column_width member (rather than the default font width).
8196         (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
8197         (FRAME_RIGHT_FRINGE_WIDTH): Rename from FRAME_X_... and moved
8198         from x/w32/macterm.h files.  Unconditionally return corresponding
8199         member of frame structure (they now have proper values also for
8200         non-window frames).
8201         (FRAME_TOTAL_FRINGE_WIDTH): Rename from FRAME_FRINGE_WIDTH.
8202         Calculate return value from left and right widths.
8203         (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
8204         internal_border_width member (has proper value for non-window frame).
8205         (FRAME_PIXEL_X_FROM_CANON_X): Rename from PIXEL_X_FROM_CANON_X.
8206         (FRAME_PIXEL_Y_FROM_CANON_Y): Rename from PIXEL_Y_FROM_CANON_Y.
8207         (FRAME_CANON_X_FROM_PIXEL_X): Rename from CANON_X_FROM_PIXEL_X.
8208         (FRAME_CANON_Y_FROM_PIXEL_Y): Rename from CANON_Y_FROM_PIXEL_Y.
8209         (FRAME_LINE_TO_PIXEL_Y): Rename from CHAR_TO_PIXEL_ROW,
8210         consolidated from xterm.h, macterm.h, and w32term.h.
8211         (FRAME_COL_TO_PIXEL_X): Rename from CHAR_TO_PIXEL_COL,
8212         consolidated from xterm.h, macterm.h, and w32term.h.
8213         (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Rename from
8214         CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
8215         (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Rename from
8216         CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
8217         (FRAME_PIXEL_Y_TO_LINE): Rename from PIXEL_TO_CHAR_ROW
8218         consolidated from x/mac/w32term.h.
8219         (FRAME_PIXEL_X_TO_COL): Rename from PIXEL_TO_CHAR_COL
8220         consolidated from x/mac/w32term.h.
8221         (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Rename from
8222         PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
8223         (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Rename from
8224         PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
8226         * window.h (struct window): Rename members left to left_col,
8227         top to top_line, height to total_lines, width to total_cols,
8228         left_margin_width to left_margin_cols, right_margin_width to
8229         right_margin_cols, orig_height to orig_total_lines, orig_top to
8230         orig_top_line.  All uses changed.
8231         (struct window): New members left_fringe_width, right_fringe_width,
8232         fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
8233         (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
8234         New macros primarily used to simplify other macros.
8235         (WINDOW_TOTAL_COLS): New macro.  Change relevant code that
8236         referred to XINT (w->width).
8237         (WINDOW_TOTAL_LINES): New macro.  Change relevant code that
8238         referred to XINT (w->height).
8239         (WINDOW_TOTAL_WIDTH): New macro.  Change relevant code that
8240         referred to XINT (w->width) * canon_x_unit.
8241         (WINDOW_TOTAL_HEIGHT): New macro.  Change relevant code that
8242         referred to XINT (w->height) * canon_y_unit.
8243         (WINDOW_LEFT_EDGE_COL): New macro.  Change relevant code that
8244         referred to XINT (w->left).
8245         (WINDOW_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_EDGE.  Change
8246         all uses and code that referred to XINT (w->left) + XINT (w->width).
8247         (WINDOW_TOP_EDGE_LINE): New macro.  Change relevant code that
8248         referred to XINT (w->top).
8249         (WINDOW_BOTTOM_EDGE_LINE): New macro.  Change relevant code that
8250         referred to XINT (w->top) + XINT (w->height).
8251         (WINDOW_LEFT_EDGE_X): New macro.  Change relevant code that
8252         referred to XINT (w->left) * canon_x_unit.
8253         (WINDOW_RIGHT_EDGE_X): New macro.  Change relevant code that
8254         referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
8255         (WINDOW_TOP_EDGE_Y): New macro.  Change relevant code that
8256         referred to XINT (w->top) * canon_y_unit.
8257         (WINDOW_BOTTOM_EDGE_Y): New macro.  Change relevant code that
8258         referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
8259         (WINDOW_LEFTMOST_P): New macro.
8260         (WINDOW_BOX_LEFT_EDGE_COL): Rename from WINDOW_LEFT_MARGIN.
8261         All uses changed.
8262         (WINDOW_BOX_RIGHT_EDGE_COL): Rename from WINDOW_RIGHT_MARGIN.
8263         All uses changed.
8264         (WINDOW_BOX_LEFT_EDGE_X): Rename from
8265         WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
8266         Do not exclude left fringe width.
8267         (WINDOW_BOX_RIGHT_EDGE_X): Rename from
8268         WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
8269         Do not exclude fringe widths.
8270         (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
8271         (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
8272         Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
8273         FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
8274         FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
8275         (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
8276         (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
8277         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
8278         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
8279         (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
8280         New macros.  Change code which referenced corresponding
8281         FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
8282         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
8283         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
8284         FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
8285         allow per-window scroll-bar settings.
8286         (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
8287         (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code that
8288         referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
8289         (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code
8290         that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
8291         FRAME_SCROLL_BAR_WIDTH.
8292         (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
8293         (WINDOW_SCROLL_BAR_AREA_X): New macros.
8294         (WINDOW_HEADER_LINE_HEIGHT): Rename from
8295         WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
8296         (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Rename from
8297         WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
8298         (WINDOW_BOX_TEXT_HEIGHT): Rename from
8299         WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
8300         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8301         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8302         (WINDOW_TEXT_TO_FRAME_PIXEL_X): Move here from dispextern.h.
8303         (WINDOW_LEFT_MARGIN_WIDTH): Rename from
8304         WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8305         (WINDOW_RIGHT_MARGIN_WIDTH): Rename from
8306         WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
8307         (window_from_coordinates): Update prototype.
8308         (Fset_window_buffer): Update EXFUN.
8309         (set_window_buffer): Update prototype.
8311         * dispextern.h (struct glyph_matrix): Rename members window_left_x
8312         to window_left_col, window_top_y to window_top_line.  All uses
8313         changed.
8314         (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
8315         use FRAME_INTERNAL_BORDER_WIDTH macro instead as
8316         internal_border_width is now set to 0 for non-window frames.
8317         (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
8318         (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
8319         (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
8320         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
8321         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
8322         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
8323         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
8324         (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
8325         (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
8326         Move to window.h and renamed [see window.h changes].
8327         (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
8328         (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
8329         (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
8330         Use WINDOW_TOTAL_LINES.
8331         (frame_update_line_height): Remove prototype.
8333         * buffer.h (struct buffer): Rename members measured in columns:
8334         left_margin_width to left_margin_cols, right_margin_width to
8335         right_margin_cols.  All uses changed.
8336         New members left_fringe_width, right_fringe_width,
8337         fringes_outside_margins for per-buffer fringe settings.
8338         New members scroll_bar_width and vertical_scroll_bar_type for
8339         per-buffer scroll bar settings.
8341         * buffer.c (init_buffer_once): Set buffer_defaults and
8342         buffer_local_flags for new buffer-local variables
8343         left_fringe_width, right_fringe_width, fringes_outside_margins,
8344         scroll_bar_width, and vertical_scroll_bar_type.
8345         (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
8346         default-* variables for them.
8348         * dispnew.c: Make (many) trivial substitutions for renamed and
8349         new macros in dispextern.h, frame.h and window.h.
8350         (mode_line_string): No need to adjust width for mode lines, as it
8351         is already adjusted by the caller.
8352         (marginal_area_string): Handle fringes inside/outside margins.
8354         * frame.c: Make (many) trivial substitutions for renamed and
8355         new macros in dispextern.h, frame.h and window.h.
8356         (make_frame): Initialize left_fringe_width, right_fringe_width,
8357         fringe_cols, scroll_bar_actual_width, border_width,
8358         internal_border_width, column_width, line_height, x_pixels_diff,
8359         y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
8360         members with values suitable for a non-window frames.
8362         * gtkutil.c: Make (many) trivial substitutions for renamed and
8363         new macros in dispextern.h, frame.h and window.h.
8365         * indent.c: Make (few) trivial substitutions for renamed and
8366         new macros in dispextern.h, frame.h and window.h.
8368         * keyboard.c: Make (many) trivial substitutions for renamed and
8369         new macros in dispextern.h, frame.h and window.h.
8370         (make_lispy_event): Use window positions returned from
8371         window_from_coordinates when constructing the lisp event for
8372         MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
8373         (incorrect) values locally.
8374         (make_lispy_movement): Use window positions returned from
8375         window_from_coordinates when constructing the lisp event, rather
8376         than calculating (incorrect) values locally.
8378         * scroll.c: Make (some) trivial substitutions for renamed and
8379         new macros in dispextern.h, frame.h and window.h.
8381         * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
8382         scroll-bars.
8384         * sysdep.c: Make (few) trivial substitutions for renamed and
8385         new macros in dispextern.h, frame.h and window.h.
8387         * term.c: Make (some) trivial substitutions for renamed and
8388         new macros in dispextern.h, frame.h and window.h.
8390         * widget.c: Make (few) trivial substitutions for renamed and
8391         new macros in dispextern.h, frame.h and window.h.
8393         * window.c: Make (many) trivial substitutions for renamed and
8394         new macros in dispextern.h, frame.h and window.h.
8395         (make_window): Initialize new members
8396         left_margin_cols, right_margin_cols, left_fringe_width,
8397         right_fringe_width, fringes_outside_margins, scroll_bar_width,
8398         and vertical_scroll_bar_type.
8399         (coordinates_in_window): Adapt to new fringe/margin positions
8400         and per-window fringes and scroll-bars.
8401         Fix bug related to incorrectly adjusting coordinates by
8402         frame's internal_border_width (the effect normally negible since
8403         the internal_border_width is typically 0 or 1 pixel, but very
8404         noticeable for an internal_border_width of e.g. 25 pixels).
8405         Upon successful return (other than ON_NOTHING), the coordinates
8406         are now always properly converted to window relative for the
8407         given display element.
8408         (window_from_coordinates): Add new parameters wx and wy to
8409         return the window relative x and y position in the returned
8410         window and part.  A null arg means, don't return the position.
8411         All callers changed.
8412         (adjust_window_margins): New function which may reduce the width
8413         of the display margins if a window's text area is too small after
8414         resizing or splitting windows.
8415         (size_window): Fix bug that did not account for display margin
8416         widths when checking the minimum width of a window; use
8417         adjust_window_margins.
8418         (set_window_buffer): Call Fset_window_fringes and
8419         Fset_window_scroll_bars to setup per-window elements.
8420         Add new arg KEEP_MARGINS_P.  Non-nil means to keep window's
8421         existing display margin, fringe widths, and scroll bar settings
8422         (e.g. after splitting a window or resizing the frame).
8423         All callers changed.
8424         (Fset_window_buffer): New arg KEEP_MARGINS.  All callers changed.
8425         (Fsplit_window): Duplicate original window's display margin,
8426         fringe, and scroll-bar settings; then call Fset_window_buffer with
8427         KEEP_MARGINS non-nil.  This fixes a bug which caused a split
8428         window to only preserve the display margins in one of the windows.
8429         When splitting horizontally, call adjust_window_margins on both
8430         windows to ensure that the text area of the new windows is non too
8431         narrow.  This fixes a bug which could cause Emacs to trap if the
8432         width of the split window was less than the width of the display
8433         margins.
8434         (window_box_text_cols): Rename from window_internal_width.
8435         All uses changed.  Adapt to per-window fringes and scroll bars.
8436         Fix bug that caused vertical separator to be subtracted also on
8437         window frames.  Fix another bug that did not reduce the returned
8438         value by the columns used for display margins.
8439         (window_scroll_line_based): Fix bug related to scrolling too much
8440         when display margins are present (implicitly fixed by the fix to
8441         window_box_text_cols).
8442         (scroll_left, scroll_right): Fix bug related to scrolling too far
8443         by default when display margins are present (implicitly fixed by
8444         the fix to window_box_text_cols).
8445         (struct saved_window): Rename members left to left_col, top to
8446         top_line, width to total_cols, height to total_lines, orig_top to
8447         orig_top_line, orig_height to orig_total_lines.  All uses changed.
8448         New members left_margin_cols, right_margin_cols,
8449         left_fringe_width, right_fringe_width, fringes_outside_margins,
8450         scroll_bar_width, and vertical_scroll_bar_type for saving
8451         per-window display elements.
8452         (Fset_window_configuration): Restore display margins, fringes,
8453         and scroll bar settings.  This fixes a bug which caused display
8454         margins to be discarded when saving and restoring a window
8455         configuration.
8456         (save_window_save): Save display margins, fringes, and scroll bar
8457         settings.  This fixes a bug which caused display margins to be
8458         discarded when saving and restoring a window configuration.
8459         (Fset_window_margins): Do nothing if display margins are not
8460         really changed.  Otherwise, call adjust_window_margins to ensure
8461         the text area doesn't get too narrow.  This fixes a bug which
8462         could cause Emacs to trap if setting display margins wider than
8463         the width of the window.
8464         (Fset_window_fringes): New defun to allow user to specifically set
8465         this window's fringe widths and position vs. display margins.
8466         (Fwindow_fringes): New defun to return window's actual fringe settings.
8467         (Fset_window_scroll_bars): New defun to allow user to specifically
8468         set this window's scroll bar width and position.
8469         (Fwindow_scroll_bars): New defun to return window's actual scroll
8470         bar settings.
8471         (compare_window_configurations): Also compare display margins,
8472         fringes, and scroll bar settings.
8473         (syms_of_window): Defsubr new defuns for fringe and scroll bars.
8475         * xdisp.c: Make (many) trivial substitutions for renamed and
8476         new macros in dispextern.h, frame.h and window.h.
8477         (window_box_width): Adapt to per-window fringes and scroll bars,
8478         and new fringe vs. display margin position.  Note that returned
8479         value is no longer guaranteed to be a whole multiple of the frame
8480         column width, since per-window fringes may now be any width.
8481         (window_box_left_offset): New function like window_box_left, but
8482         value is relative to left border of window (rather than frame).
8483         (window_box_right_offset): New function like window_box_right,
8484         but value is relative to left border of window.
8485         (window_box_left): Adapt to per-window fringes and scroll bars,
8486         and new fringe vs. display margin position.  Simplify by using
8487         WINDOW_LEFT_EDGE_X and window_box_left_offset.
8488         (window_box): Allow null args for unnecessary return values;
8489         change/simplify relevant callers.
8490         (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
8491         and new fringe vs. display margin position.
8492         Use window_box_left_offset and window_box_right_offset
8493         (get_glyph_string_clip_rect): Adapt to per-window fringes and
8494         scroll bars, and new fringe vs. display margin position.
8495         Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
8496         (draw_fringe_bitmap): Rework to handle per-window fringes and new
8497         fringe vs. display margin position.
8498         (hscroll_window_tree): Use window_box_width instead of window_box.
8499         (redisplay_window): Adapt to per-window scroll bars.
8500         (draw_glyphs): Rework to handle per-window fringes and scroll
8501         bars, and new fringe vs. display margin position.
8502         Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
8503         (x_clear_end_of_line): Adapt to per-window fringes and scroll
8504         bars, and new fringe vs. display margin position.  Fix bug which
8505         increased total width of full_width rows by width of scroll bars
8506         although window's total width already includes that.
8507         (x_fix_overlapping_area): Simplify using window_box_left_offset.
8508         (expose_area): Simplify using window_box_left_offset.
8509         (x_draw_vertical_border): Handle per-window scroll bar settings,
8510         mixing windows with left, right and no scroll bars.
8512         * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
8513         where it's used in x_list_fonts (for clarity).
8514         (frame_update_line_height): Remove unused function; functionality
8515         is now done directly when setting the default font in x_set_font.
8517         * xfns.c: Make (many) trivial substitutions for renamed and
8518         new macros in dispextern.h, frame.h and window.h.
8520         * xmenu.c: Make (some) trivial substitutions for renamed and
8521         new macros in dispextern.h, frame.h and window.h.
8523         * xterm.h (struct x_output): Move members left_pos, top_pos,
8524         border_width, pixel_height, pixel_width, line_height,
8525         internal_border_width, vertical_scroll_bar_extra,
8526         left_fringe_width, right_fringe_width, fringe_cols,
8527         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8528         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8529         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8530         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8531         (PIXEL_WIDTH, PIXEL_HEIGHT)
8532         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8533         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8534         frame.h and renamed [see frame.h changes].
8535         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8536         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8537         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8538         and renamed [see frame.h changes].
8540         * xterm.c: Make (several) trivial substitutions for renamed and
8541         new macros in dispextern.h, frame.h and window.h.
8542         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8543         (scroll_run): Adapt to new fringe position.
8544         (glyph_rect): Use window coordinates returned from
8545         window_from_coordinates rather than frame_to_window_pixel_xy.
8546         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8547         scroll-bars.
8548         (handle_one_xevent): Simplify a USE_GTK conditional.
8549         (x_clip_to_row): Remove superfluous whole_line_p arg and code
8550         (fringes are now inside margins, i.e. always in the clipping area).
8551         All callers changed.
8552         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8553         directly, then call compute_fringe_widths.  Don't call
8554         frame_update_line_height.
8556         * w32term.h (struct w32_output): Move members left_pos, top_pos,
8557         border_width, pixel_height, pixel_width, line_height,
8558         internal_border_width, vertical_scroll_bar_extra,
8559         left_fringe_width, right_fringe_width, fringe_cols,
8560         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8561         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
8562         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8563         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8564         (PIXEL_WIDTH, PIXEL_HEIGHT)
8565         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8566         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8567         frame.h and renamed [see frame.h changes].
8568         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8569         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8570         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8571         and renamed [see frame.h changes].
8573         * w32term.c: Make (several) trivial substitutions for renamed and
8574         new macros in dispextern.h, frame.h and window.h.
8575         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8576         (glyph_rect): Use window coordinates returned from
8577         window_from_coordinates rather than frame_to_window_pixel_xy.
8578         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8579         scroll-bars.
8580         (w32_clip_to_row): Remove superfluous whole_line_p arg and code
8581         (fringes are now inside margins, i.e. always in the clipping area).
8582         All callers changed.
8583         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8584         directly, then call compute_fringe_widths.  Don't call
8585         frame_update_line_height.
8587         * w32console.c: Make (few) trivial substitutions for renamed and
8588         new macros in dispextern.h, frame.h and window.h.
8590         * w32fns.c: Make (many) trivial substitutions for renamed and
8591         new macros in dispextern.h, frame.h and window.h.
8593         * w32menu.c: Make (few) trivial substitutions for renamed and
8594         new macros in dispextern.h, frame.h and window.h.
8596         * macterm.h (struct mac_output): Move members left_pos, top_pos,
8597         border_width, pixel_height, pixel_width, line_height,
8598         internal_border_width, vertical_scroll_bar_extra,
8599         left_fringe_width, right_fringe_width, fringe_cols,
8600         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
8601         x_pixels_diff, y_pixels_diff to struct frame (frame.h).
8602         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
8603         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
8604         (PIXEL_WIDTH, PIXEL_HEIGHT)
8605         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
8606         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Move to
8607         frame.h and renamed [see frame.h changes].
8608         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
8609         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
8610         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Move to frame.h
8611         and renamed [see frame.h changes].
8613         * macterm.c: Make (several) trivial substitutions for renamed and
8614         new macros in dispextern.h, frame.h and window.h.
8615         (x_draw_glyph_string_box): Adapt to per-window fringes and scroll-bars.
8616         (glyph_rect): Use window coordinates returned from
8617         window_from_coordinates rather than frame_to_window_pixel_xy.
8618         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
8619         scroll-bars.
8620         (x_clip_to_row): Remove superfluous whole_line_p arg and code
8621         (fringes are now inside margins, i.e. always in the clipping area).
8622         All callers changed.
8623         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
8624         directly, then call compute_fringe_widths.  Don't call
8625         frame_update_line_height.
8627         * macfns.c: Make (several) trivial substitutions for renamed and
8628         new macros in dispextern.h, frame.h and window.h.
8629         (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
8631         * macmenu.c: Make (few) trivial substitutions for renamed and
8632         new macros in dispextern.h, frame.h and window.h.
8634         * msdos.h (struct x_output): Remove members left_pos, top_pos,
8635         and line_height, and use corresponding new members in struct
8636         frame.  All uses changed.
8637         (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
8638         superseeded by corresponding macros in frame.h.
8640         * msdos.c: Make (several) trivial substitutions for renamed and
8641         new macros in dispextern.h, frame.h and window.h.
8642         (IT_note_mouse_highlight): Use updated window coordinates returned
8643         by window_from_coordinates, rather than adjusting them locally.
8644         (internal_terminal_init): No need to initialize line_height here;
8645         it now defaults to 1.
8647 2003-05-24  Stefan Monnier  <monnier@cs.yale.edu>
8649         * keyboard.c (read_key_sequence): Adjust fkey and keytran when
8650         dropping `down' events.
8652 2003-05-24  Andreas Schwab  <schwab@suse.de>
8654         * coding.c (find_safe_codings): Fix last change.
8656 2003-05-24  Istvan Marko  <mi@imarko.dhs.org>  (tiny change)
8658         * xfns.c (x_window): Fix typo from 2003-05-21 change.
8660 2003-05-23  Stefan Monnier  <monnier@cs.yale.edu>
8662         * xdisp.c (display_mode_element): Increase max depth.
8663         Simplify the error handling code.  Use a different error string
8664         for the case where we hit the depth limit.
8666         * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
8668         * buffer.c (reset_buffer_local_variables): Remove redundant setting.
8670 2003-05-21  Stefan Monnier  <monnier@cs.yale.edu>
8672         * intervals.c (get_local_map): Don't get char-property of previous
8673         point any more: get_pos_property already does it and better.
8675 2003-05-21  Dave Love  <fx@gnu.org>
8677         [Merged from unicode branch.]
8679         * xfns.c (x_window, x_window): Use use_xim.
8681         * xterm.c (use_xim): Initialize.
8682         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
8683         (x_term_init): Maybe set use_xim.
8685         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
8687 2003-05-21  Jason Rumney  <jasonr@gnu.org>
8689         * unexw32.c (_start): Remove _fmode initialization.
8691         * emacs.c (main) [WINDOWSNT]: Move it here.
8693 2003-05-20  Dave Love  <fx@gnu.org>
8695         * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
8697 2003-05-19  Richard M. Stallman  <rms@gnu.org>
8699         * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
8700         as value for QCfont attribute.
8701         (realize_default_face): lface should already exist; crash if not.
8702         Specify 0 for FORCE_P when calling set_lface_from_font_name.
8704         * frame.c (Fignore_event): Doc fix.
8706 2003-05-19  Kenichi Handa  <handa@m17n.org>
8708         * coding.c (decode_coding_string): Handle post-read-conversion
8709         even if the coding doesn't require decoding.
8711 2003-05-18  Richard M. Stallman  <rms@gnu.org>
8713         * callproc.c (Fcall_process_region): Doc fix.
8715 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
8717         * lread.c (Fload): Print a message if package is obsolete.
8719         * window.c (Fselect_window): Add optional `norecord' arg.
8720         (select_window_1): Fold into Fselect_window.
8721         (select_window_norecord): New function.
8722         (temp_output_buffer_show): Use it.  Preserve current buffer.
8724         * window.h (Fselect_window): Update declaration.
8726         * window.c (delete_window, Fother_window, Fset_window_configuration):
8727         * minibuf.c (read_minibuf):
8728         * macterm.c (x_new_focus_frame):
8729         * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
8730         * callint.c (Fcall_interactively):
8731         * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
8733         * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
8735 2003-05-17  David Kastrup  <dak@gnu.org>
8737         * process.c (read_process_output): Back out change from 2003-03-09.
8739 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
8741         * editfns.c (get_pos_property): Don't assume that `object' = nil.
8743         * textprop.c (text_property_stickiness): New arg `buffer'.
8745         * intervals.h (text_property_stickiness): New arg `buffer'.
8746         (get_pos_property): Declare.
8748         * intervals.c (get_local_map): Use get_pos_property, to obey
8749         stickiness and empty overlays.
8750         (create_root_interval, graft_intervals_into_buffer): Use BEG.
8751         (merge_properties, intervals_equal, merge_properties_sticky):
8752         Use XCAR, XCDR.
8753         (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
8755 2003-05-17  Richard M. Stallman  <rms@gnu.org>
8757         * minibuf.c (read_minibuf): If buffer is empty, record the default
8758         in the history.
8759         (Fminibuffer_complete_word): When deleting the overlap, take account
8760         of its real position.
8762         * fns.c (map_char_table): Fix previous change.
8764         * syntax.c (find_defun_start):
8765         When open_paren_in_column_0_is_defun_start,
8766         return beginning of buffer.
8768         * lisp.h (map_char_table): Declare added arg.
8770         * fns.c (map_char_table): New arg TABLE gets the master table.
8771         All calls changed.
8772         Process default and inheritance, resorting to Faref if necessary.
8774         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
8775         (Faccessible_keymaps): Pass new arg to map_char_table.
8777         * fontset.c (Ffontset_info): Pass new arg to map_char_table.
8779         * casetab.c (set_case_table): Pass new arg to map_char_table.
8781         * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
8783         * lisp.h (specbinding_func): New typedef.
8784         (struct specbinding): Use specbinding_func, to put the `volatile'
8785         in the right place.
8787         * alloc.c (Fgarbage_collect): Cast pointers into specpdl
8788         to avoid GCC warning.
8790 2003-05-16  Ralph Schleicher  <rs@nunatak.allgaeu.org>
8792         * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
8794 2003-05-15  Stefan Monnier  <monnier@cs.yale.edu>
8796         * keyboard.c (apply_modifiers): Don't fill the other cache.
8798 2003-05-14  Stefan Monnier  <monnier@cs.yale.edu>
8800         * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
8802         * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
8803         (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
8804         (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
8805         (Fset_window_configuration, Fcurrent_window_configuration)
8806         (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
8807         (Fpos_visible_in_window_p, mark_window_cursors_off)
8808         (window_internal_height, window_internal_width, Frecenter)
8809         (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
8810         (replace_buffer_in_all_windows, init_window_once, init_window)
8811         (syms_of_window, keys_of_window): Move from lisp.h.
8812         * lisp.h: Move window.c declarations to window.h.
8814         * bytecode.c: Include window.h.
8815         * emacs.c: Include window.h.
8817         * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
8818         (keyremap): Add `parent' field.
8819         (keyremap_step): Use it.  Remove `parent' argument.
8820         (read_key_sequence): Setup and use the new `parent' field.
8822 2003-05-11  Stefan Monnier  <monnier@cs.yale.edu>
8824         * keyboard.c (adjust_point_for_property): Ensure termination.
8826 2003-05-10  Stefan Monnier  <monnier@cs.yale.edu>
8828         * keyboard.c (follow_key): Remove dead variable `did_meta'.
8829         (access_keymap_keyremap, keyremap_step): New funs, extracted from the
8830         duplicated handling of function-key-map and key-translation-map
8831         in read_key_sequence.
8832         (read_key_sequence): Use them.
8834         * keyboard.c (adjust_point_for_property): Try harder to move point
8835         to the non-sticky end of an invisible property.
8837         * xdisp.c (single_display_prop_intangible_p): Make `space' display
8838         property intangible as well.
8840 2003-05-10  Andreas Schwab  <schwab@suse.de>
8842         * xmenu.c (single_menu_item): Change last parameter to void* to
8843         avoid warning.
8845 2003-05-09  Richard M. Stallman  <rms@gnu.org>
8847         * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
8848         Bind Qinhibit_modification_hooks to t so there will be no GC.
8849         Rename local `tem' to `save_deactivate_mark'.
8851         * eval.c (specpdl_ptr): Declare volatile.
8852         (unbind_to): Copy the whole binding and decrement specpdl_ptr
8853         before doing the work of unbinding it.
8855         * lisp.h (struct specbinding): Declare elements volatile.
8856         (specpdl_ptr): Declare volatile.
8858         * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
8860         * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
8861         for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
8863 2003-05-08  Dave Love  <fx@gnu.org>
8865         * coding.c (Vlast_coding_system_used): Doc fix.
8867 2003-05-07  Jason Rumney  <jasonr@gnu.org>
8869         * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
8870         when system does not support them.
8872 2003-05-05  Stefan Monnier  <monnier@cs.yale.edu>
8874         * fileio.c (Qwrite_region_annotate_functions): New var.
8875         (build_annotations): Use it to process the global part of the hook.
8876         (syms_of_fileio): Init and staticpro it.
8878         * keyboard.c (safe_run_hooks_error): Display a message instead of
8879         silently ignoring the error.
8881 2003-05-03  Stefan Monnier  <monnier@cs.yale.edu>
8883         * keyboard.c (input_available_signal): Mark static.
8884         (menu_bar_items): Use map_keymap.
8885         (menu_bar_one_keymap): Remove.
8886         (menu_bar_item): Adjust arglist (for use in map_keymap).
8887         Properly hide a second binding when not both are keymaps.
8889         * xmenu.c (struct skp): New struct, to pass args through map_keymap.
8890         (single_keymap_panes): Use it and map_keymap.
8891         (single_menu_item): Use skp as well.
8893         * keymap.h (map_keymap_function_t): New type.
8894         (map_keymap): Declare.
8896         * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
8897         (map_keymap_call, Fmap_keymap): New functions.
8898         (syms_of_keymap): Defsubr map-keymap.
8900 2003-05-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8902         * gtkutil.c (create_dialog, make_widget_for_menu_item)
8903         (make_menu_item, create_menus, xg_update_menu_item): Don't call
8904         ..._with_mnemonic functions for menu items.
8906 2003-05-01  Kenichi Handa  <handa@m17n.org>
8908         * coding.c (coding_system_accept_latin_extra_p): Delete this
8909         function.
8910         (find_safe_codings): Pay attention to
8911         the property tranlsation-table-for-encode of each codings.
8912         (syms_of_coding): Give Qtranslation_table the extra slot number 2.
8914 2003-05-01  Stefan Monnier  <monnier@cs.yale.edu>
8916         * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
8918 2003-04-30  Stefan Monnier  <monnier@cs.yale.edu>
8920         * eval.c (unbind_to): Don't handle symbol = Qnil any more.
8922         * lisp.h (CHECK): Wrap args in parenthesis.
8923         (specbind): Fix doc: symbol = Qnil is not supported any more.
8925         * bytecode.c (Fbyte_code) <unwind-protect>:
8926         Use Fprogn rather than 0 and Qnil.
8928         * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
8929         `double', and `triple' modifiers as well.
8931 2003-04-30  Richard M. Stallman  <rms@gnu.org>
8933         * keyboard.c (echo_char): Don't clear out a dash that follows a space.
8935         * alloc.c (abort_on_gc): New variable.
8936         (Fgarbage_collect): Abort if abort_on_gc is set.
8938         * lisp.h (abort_on_gc): Add decl.
8940         * eval.c (Fsignal): Clear abort_on_gc.
8942         * editfns.c (Fformat): Set abort_on_gc during first scan of format.
8943         Reinit FORMAT_START and END before second scan.
8945         * xdisp.c (move_it_vertically_backward): Do the final big else
8946         even if nlines is 0.
8948         * xdisp.c (redisplay_internal): Finish the per-frame loop
8949         even if redisplay is suspended by input.
8951 2003-04-24  Andrew Choi  <akochoi@shaw.ca>
8953         * macterm.c (x_list_fonts): Return all fonts that match if
8954         maxnames = -1.
8956 2003-04-25  Kenichi Handa  <handa@m17n.org>
8958         * syntax.c (skip_chars): Fix previous change.
8960 2003-04-24  Kenichi Handa  <handa@m17n.org>
8962         * syntax.c (skip_chars): Make the code faster by using the common
8963         technique of *p, *stop, and *endp.
8965 2003-04-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
8967         * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
8968         tool_bar_items so GTK tool bar expose callback does not access items
8969         being updated.
8971 2003-04-19  Stefan Monnier  <monnier@cs.yale.edu>
8973         * eval.c (Fapply): Undo last change and add a comment about why.
8975 2003-04-18  Miles Bader  <miles@gnu.org>
8977         * data.c (Faset): Calculate nbytes earlier, to satisfy the now
8978         pickier PARSE_MULTIBYTE_SEQ.
8980 2003-04-17  Stefan Monnier  <monnier@cs.yale.edu>
8982         * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
8983         Use XCDR, XCAR, CONSP.
8984         (Fdefmacro): Fix docstring.  Use XCAR, XCDR.
8985         (Fapply): Remove unnecessary GCPRO.
8987         * doc.c (Fsubstitute_command_keys): Remove spurious casts.
8989         * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
8991         * buffer.h: Don't hardcode BEG==1.
8993         * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
8995 2003-04-16  Richard M. Stallman  <rms@gnu.org>
8997         * xdisp.c (try_window, try_window_reusing_current_matrix):
8998         When at end of window, set window_end_pos to Z-ZV.
9000         * buffer.c (Foverlay_recenter): Doc fix.
9002 2003-04-14  Stefan Monnier  <monnier@cs.yale.edu>
9004         * dispnew.c (Fsit_For): Support XEmacs-style arg list.
9006 2003-04-14  Andrew Choi  <akochoi@shaw.ca>
9008         * macterm.c (mac_check_for_quit_char): Don't check more often than
9009         once a second.
9011 2003-04-11  Stefan Monnier  <monnier@cs.yale.edu>
9013         * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
9014         specially, so that they can't hide an implicit switch-frame event.
9015         (make_lispy_event): Handle SELECT_WINDOW_EVENT.
9016         (head_table): Use switch-frame as event_kind for select-window.
9017         (keys_of_keyboard): Don't bind [select-window] in special-event-map.
9019         * editfns.c (Fformat): Lisp_Object/int mixup.
9020         (format2): Remove unused var numargs.
9022 2003-04-11  Kenichi Handa  <handa@m17n.org>
9024         * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
9025         (Qafter_insert_file_set_coding): New variable.
9026         (syms_of_fileio): Initialize and staticpro it.  Delete declaration
9027         for after-insert-file-adjust-coding-function.
9028         (Finsert_file_contents): Call Qafter_insert_file_set_coding
9029         instead of Vafter_insert_file_adjust_coding_function.
9031 2003-04-11  Kenichi Handa  <handa@m17n.org>
9033         * lisp.h (temp_echo_area_glyphs): Adjust prototype.
9035         * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
9036         string.  Callers changed.
9038 2003-04-10  Kenichi Handa  <handa@m17n.org>
9040         * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
9041         (syms_of_fileio): Declare it as a lisp variable.
9042         (Finsert_file_contents):
9043         Call Vafter_insert_file_adjust_coding_function before calling
9044         decode-format.
9046 2003-04-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9048         * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
9049         get GtkAdjustment as widget now is a GtkRange.
9051         * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
9052         GtkRange to avoid memory leak.
9054 2003-04-09  Kenichi Handa  <handa@m17n.org>
9056         * xfaces.c (Vface_font_rescale_alist): New variable.
9057         (struct font_name): New member rescale_ratio.
9058         (font_rescale_ratio): New function.
9059         (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
9060         (better_font_p): On comparing point sized, pay attention to
9061         recale_ratio member of fonts.
9062         (build_scalable_font_name): Reflect font->rescale_ratio in the
9063         font name.
9064         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
9066         * lread.c (read1): Before calling index, check if the 2nd
9067         arguemnt is in ASCII range.
9069 2003-04-08  Richard M. Stallman  <rms@gnu.org>
9071         * fileio.c (Ffile_symlink_p): Doc fix.
9073         * editfns.c (Fformat): Translate positions of text properties
9074         in the format string to apply them to the result.
9076         * fileio.c (Finsert_file_contents): Doc fix.
9077         (syms_of_fileio) <after-insert-file-functions>: Doc fix.
9079 2003-04-08  Ivan Zakharyaschev  <imz@altlinux.org>  (tiny change)
9081         * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
9083 2003-04-08  Steven Tamm  <steventamm@mac.com>
9085         * mac.c (init_mac_osx_environment): Switch libexec and bin so
9086         that self-contained application finds libexec files.
9088 2003-04-08  Kenichi Handa  <handa@m17n.org>
9090         * coding.c (code_convert_region_unwind):
9091         Set Vlast_coding_system_used to the argument.
9092         (code_convert_region): If post-read-conversion function changed
9093         the value of last-coding-sytem, keep the new value in
9094         coding->symbol so that it won't be overridden.
9095         (run_pre_post_conversion_on_str): Likewise.
9096         (coding_system_accept_latin_extra_p): New function.
9097         (find_safe_codings): Pay attention to characters registered in
9098         latin-extra-code-table.
9100 2003-04-07  Thien-Thi Nguyen  <ttn@gnu.org>
9102         * Makefile.in (md5.o): Add missing dependency info.
9104 2003-04-06  Richard M. Stallman  <rms@gnu.org>
9106         * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
9108         * marker.c (verify_bytepos): New function.
9110         * intervals.c (set_intervals_multibyte_1): When becoming
9111         multibyte, adjust right and left child sizes to a whole set of
9112         characters.  If an interval gets zero total-length, delete it.
9113         If an interval consists of just its children, delete one of them.
9115         * intervals.h (CHECK_TOTAL_LENGTH): New macro.
9116         * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
9118         * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
9119         All calls deleted.
9120         (lisp_malloc): Do the work here directly.
9122 2003-04-06  Gareth Jones  <emacs@referential.org.uk>  (tiny change)
9124         * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
9125         char tables.
9127 2003-04-04  Kenichi Handa  <handa@m17n.org>
9129         * editfns.c (Fformat): Use a copy of FORMAT string so that we can
9130         destructively change "%S" to "%s".
9132 2003-04-03  Miles Bader  <miles@gnu.org>
9134         * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
9135         always set.
9137 2003-04-01  Dave Love  <fx@gnu.org>
9139         * xfns.c (xpm_lookup_color): Grok "opaque".
9141 2003-03-31  Andrew Choi  <akochoi@shaw.ca>
9143         * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
9144         parent window ID.
9146         * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
9148         * macterm.h (struct mac_output): Define x_pixels_diff and
9149         y_pixels_diff.
9151 2003-03-31  Juanma Barranquero  <lektu@terra.es>
9153         * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
9154         blockinput.h and files included from it.
9156 2003-03-31  Kim F. Storm  <storm@cua.dk>
9158         The following changes consolidates the common code related to
9159         frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
9160         files into frame.c.
9162         * frame.c: Include blockinput.h.
9163         (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
9164         (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
9165         (Qauto_raise, Qauto_lower, ...): Define all frame parameter
9166         related vars here.
9167         (struct frame_parm_table, frame_parms): New table for describing
9168         frame parameters and their associated Q-variable.
9169         The order of the parameters corresponds to the sequence of the
9170         frame_parm_handlers table in redisplay_interface.
9171         (x_fullscreen_move, x_set_frame_parameters)
9172         (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
9173         (x_set_screen_gamma, x_set_font, x_set_fringe_width)
9174         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9175         (x_set_autoraise, x_set_autolower, x_set_unsplittable)
9176         (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
9177         Generic functions for processing of frame parameters.
9178         (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
9179         (display_x_get_resource, x_get_resource_string): Functions for
9180         generic access to X resources.
9181         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9182         (x_default_parameter, Fx_parse_geometry): Functions for generic
9183         access to frame parameters.
9184         (x_figure_window_size): Generic calculation of frame size.
9185         Fixed to add space needed for tool bar.  Also setup size_hint_flags.
9186         (syms_of_frame): Intern and staticpro frame parameter variables.
9187         Defvar_lisp Vx_resource_class and Vx_resource_name here.
9188         Defsubr Sx_get_resource and Sx_parse_geometry.
9190         * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
9191         parameter related vars defined in frame.c.
9192         (EMACS_CLASS): Define here.
9193         (enum FULLSCREEN_*): Define here.
9194         (x_set_scroll_bar_default_width, x_wm_set_icon_position)
9195         (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
9196         (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
9197         (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
9198         (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
9199         (x_set_visibility, x_set_autoraise, x_set_autolower)
9200         (x_set_unsplittable, x_set_vertical_scroll_bars)
9201         (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
9202         (x_figure_window_size): Add prototypes.
9204         * dispextern.h (frame_parm_handler): New typedef.
9205         (struct redisplay_interface): New member frame_parm_handlers.
9206         (enum resource_types): Move declaration here.
9207         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
9208         (x_default_parameter): Add prototypes.
9210         * window.c: Remove extern decl for frame parameter vars.
9211         (change_window_heights): New generic function;
9212         replaces x_change_window_heights.  All users changed.
9214         * window.h (change_window_heights): Add prototype.
9216         * xfaces.c: Remove extern decl for frame parameter vars.
9218         * xterm.h (EMACS_CLASS): Remove.  Use generic define.
9219         (struct w32_display_info): Fix type of xrdb member.
9220         (enum FULLSCREEN_*): Remove.
9221         Remove prototypes for generic functions (in frame.h).
9223         * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9224         parameters now defined in frame.h and frame.c.
9225         (Vx_resource_name): Remove.  Use generic var.
9226         (enum x_frame_parms): Remove (bogus, unused enum).
9227         (check_x_display_info): Make non-static (for frame.c).
9228         (struct x_frame_parm_table, x_frame_parms): Remove.
9229         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9230         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9231         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9232         (x_change_window_heights, x_set_autoraise, x_set_autolower)
9233         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9234         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9235         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9236         Remove.  Use generic functions instead.
9237         (enum resource_types): Remove.
9238         (x_set_scroll_bar_default_width): New global function (for frame.c).
9239         (Fx_create_frame): Depend on x_figure_window_size to add space for
9240         toolbar and setup size_hint_flags.
9241         (x_frame_parm_handlers): New table for redisplay_interface.
9242         (syms_of_xfns): Don't intern/staticpro removed vars.
9244         * xterm.c: Remove unnecessary extern declarations.
9245         (x_fullscreen_adjust): Remove.  Use generic instead.
9246         (x_redisplay_interface): Add x_frame_parm_handlers member.
9248         * w32gui.h (XrmDatabase): New (dummy) typedef.
9250         * w32term.h (EMACS_CLASS): Remove.  Use generic define.
9251         (struct w32_display_info): Fix type of xrdb member.
9252         (enum FULLSCREEN_*): Remove.
9253         (x_fullscreen_adjust): Remove prototype.
9255         * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9256         parameters now defined in frame.h and frame.c.
9257         (Vx_resource_name): Remove.  Use generic var.
9258         (enum x_frame_parms): Remove (bogus, unused enum).
9259         (check_x_display_info): Make non-static (for frame.c).
9260         (struct x_frame_parm_table, x_frame_parms): Remove.
9261         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9262         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9263         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9264         (x_change_window_heights, x_set_autoraise, x_set_autolower)
9265         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9266         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9267         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9268         Remove.  Use generic functions instead.
9269         (enum resource_types): Remove.
9270         (x_set_scroll_bar_default_width): New global function (for frame.c).
9271         (Fx_create_frame): Depend on x_figure_window_size to add space for
9272         toolbar and setup size_hint_flags.
9273         (w32_frame_parm_handlers): New table for redisplay_interface.
9274         (syms_of_w32fns): Don't intern/staticpro removed vars.
9276         * w32term.c: Remove unnecessary extern declarations.
9277         (x_fullscreen_adjust): Remove. Use generic instead.
9278         (x_redisplay_interface): Add w32_frame_parm_handlers member.
9280         * w32reg.c (x_get_string_resource): Use XrmDatabase.
9282         * macgui.h (XrmDatabase): New (dummy) typedef.
9284         * macterm.h (EMACS_CLASS): Remove.
9285         (struct mac_display_info): Add xrdb member.
9286         (struct mac_output): Add want_fullscreen member.
9288         * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
9289         parameters now defined in frame.h and frame.c.
9290         (Vx_resource_name): Remove.  Use generic var.
9291         (check_x_display_info): Make non-static (for frame.c).
9292         (struct x_frame_parm_table, x_frame_parms): Remove.
9293         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
9294         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
9295         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
9296         (x_change_window_heights, x_set_autoraise, x_set_autolower)
9297         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
9298         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
9299         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
9300         Remove.  Use generic functions instead.
9301         (enum resource_types): Remove.
9302         (x_set_scroll_bar_default_width): New global function (for frame.c).
9303         (mac_frame_parm_handlers): New table for redisplay_interface.
9304         (syms_of_macfns): Don't intern/staticpro removed vars.
9306         * macterm.c: Remove unnecessary extern declarations.
9307         (x_redisplay_interface): Add mac_frame_parm_handlers member.
9309         * Makefile.in (frame.o): Add dependency on blockinput.h and files
9310         included from it (atimer.h and systime.h).
9312 2003-03-30  Andreas Schwab  <schwab@suse.de>
9314         * xdisp.c (x_insert_glyphs): Fix swapped width and height
9315         parameters for shift_glyphs_for_insert.
9317         * macterm.c (x_redisplay_interface): Add missing entry for
9318         draw_vertical_window_border.
9320 2003-03-29  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
9322         * fileio.c (Fexpand_file_name): In the no-handler case, after
9323         expanding, look again for a handler and invoke it.  This is needed
9324         for filenames like "/foo/../user@host:/bar/../baz" -- the first
9325         expansion produces "/user@host:/bar/../baz" which needs to be
9326         expanded again for the finame result "/user@host:/baz".
9328 2003-03-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9330         * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
9331         of area to be redrawn for better performance.
9333 2003-03-28  Stefan Monnier  <monnier@cs.yale.edu>
9335         * xterm.c (take_vertical_position_into_account): Remove.
9336         (xt_action_hook): Call set_vertical_scroll_bar if needed.
9337         (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
9338         (xm_scroll_callback, x_create_toolkit_scroll_bar)
9339         (x_set_toolkit_scroll_bar_thumb): Simplify.
9340         (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
9341         (XTread_socket): Remove unused var.
9342         (x_make_frame_invisible): Replace goto with else.
9344         * xdisp.c (set_vertical_scroll_bar): New fun.
9345         (redisplay_window): Use it.
9347 2003-03-26  Richard M. Stallman  <rms@gnu.org>
9349         * xdisp.c (update_tool_bar): Recompute tool bar if
9350         update_mode_lines is set.  Set w->update_mode_line
9351         only if the tool bar contents actually change.
9352         (update_menu_bar): Undo previous change.
9354 2003-03-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9356         * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
9357         (xg_frame_set_char_size): Calculate scroll bar width before frame
9358         width.  Call SET_FRAME_GARBAGED and cancel_mouse_face.
9359         (xg_separator_p): Check for all documented separator types.
9360         (xg_update_scrollbar_pos): Variable gheight not needed, use height.
9361         (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
9363         * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
9364         so tool bar gets updated.
9366 2003-03-26  Stefan Monnier  <monnier@cs.yale.edu>
9368         * data.c (store_symval_forwarding): Re-instate part of the code
9369         that was deleted with too much enthusiasm.
9371 2003-03-25  Stefan Monnier  <monnier@cs.yale.edu>
9373         * data.c (store_symval_forwarding): Delete special read-only
9374         hack for type == -1, since we now use ->constant instead.
9375         (Fkill_local_variable): Don't use XBUFFER if it can be nil.
9377         * buffer.c (overlays_in): Declare static.
9378         (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
9379         `constant' field rather than the variable's `type' field.
9381 2003-03-24  Andrew Choi  <akochoi@shaw.ca>
9383         * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
9385         * dispextern.h [HAVE_CARBON]: Include Carbon.h.
9387         * fns.c [MAC_OSX]: Do not redefine vector.
9389         * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
9391         * macgui.h: Remove definition of No_Cursor.
9393         * macterm.h: Include Carbon.h.  Replace (struct Cursor *) by Cursor.
9395         * xdisp.c: Define No_Cursor.
9396         (x_write_glyphs, notice_overwritten_cursor)
9397         (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
9398         (note_mouse_highlight): Remove Mac-specific code.
9399         (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
9401 2003-03-24  John Paul Wallington  <jpw@gnu.org>
9403         * xdisp.c (redisplay_window): If mini window's buffer is not
9404         empty, then redisplay it like other windows.
9406 2003-03-23  Kim F. Storm  <storm@cua.dk>
9408         * w32term.c (w32_draw_window_cursor): Fix last change.
9410 2003-03-23  Kenichi Handa  <handa@m17n.org>
9412         * alloc.c (make_string_from_bytes, make_specified_string):
9413         Add `const' for the arg CONTENTS.
9415         * lisp.h (make_string_from_bytes, make_specified_string):
9416         Prototypes adjusted.
9418 2003-03-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9420         * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
9422         * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
9423         (XG_SB_RANGE): New define.
9425         * gtkutil.c (xg_fixed_handle_expose): New function.
9426         (xg_create_frame_widgets): Call xg_fixed_handle_expose for
9427         expose events.
9428         (xg_update_scrollbar_pos): Take two more arguments, left and width
9429         of scroll bar including borders.
9430         Clear left and right part outside scroll bar separately as some
9431         themes have bars that are not an even number of pixels.
9432         Don't set reallocate_redraws, don't call
9433         gdk_window_process_all_updates.
9434         (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
9435         so no need to change it.  Calculate size and value with XG_SB_RANGE.
9437         * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
9438         Pass left and width of scroll bar including borders to
9439         xg_update_scrollbar_pos.
9441 2003-03-22  Thien-Thi Nguyen  <ttn@gnu.org>
9443         * Makefile.in: Make sure space precedes end-of-line backslashes.
9445 2003-03-22  Kim F. Storm  <storm@cua.dk>
9447         * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
9448         Add generic versions here.  Remove system specific versions
9449         defined elsewhere.
9451         * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
9452         Add prototypes.
9454         * xterm.h (STORE_NATIVE_RECT): New macro.
9456 2003-03-21  Kim F. Storm  <storm@cua.dk>
9458         * xdisp.c (get_glyph_string_clip_rect):
9459         Use FRAME_INTERNAL_BORDER_WIDTH.
9461         * dispextern.h (struct redisplay_interface): Add active_p
9462         argument to draw_window_cursor member.  All uses changed.
9464 2003-03-21  Kim F. Storm  <storm@cua.dk>
9466         The following changes consolidate code related to writing and
9467         inserting glyphs, exposing frame, the tool bar, the mouse face,
9468         the output cursor, and help echo from xterm.c, w32term.c and
9469         macterm.c into xdisp.c.  It also generalizes the use of the
9470         window_part enum instead of using numeric values throughout.
9472         * xdisp.c: Consolidate gui-independent code here.
9473         Include keymap.h.
9474         (Qhelp_echo): Import.
9475         (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
9476         (help_echo_string, help_echo_window, help_echo_object)
9477         (previous_help_echo_string, help_echo_pos): Declare here.
9478         (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
9479         (estimate_mode_line_height): Define here.  Handle windowing
9480         systems directly (without using estimate_mode_line_height_hook).
9481         (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
9482         (update_window_cursor, update_cursor_in_window_tree)
9483         (fast_find_position, fast_find_string_pos)
9484         (note_mode_line_highlight, note_mode_line_or_margin_highlight)
9485         (expose_area, expose_line, expose_overlaps, expose_window)
9486         (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
9487         declared static as they are only used locally in xdisp.c.
9488         (draw_glyphs): Rename from x_draw_glyphs and make static.
9489         (tool_bar_item_info, notice_overwritten_cursor): Make static.
9490         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9491         (set_output_cursor, x_cursor_to, handle_tool_bar_click)
9492         (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
9493         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9494         (display_and_set_cursor, x_update_cursor, x_clear_cursor)
9495         (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
9496         (note_mouse_highlight, x_clear_window_mouse_face)
9497         (cancel_mouse_face, x_draw_vertical_border, expose_frame)
9498         (x_intersect_rectangles): New generic functions for use by xdisp.c
9499         and GUI front-ends.
9500         (syms_of_xdisp): Initialize and staticpro help_echo* variables.
9501         Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
9503         * dispextern.h (Display_Info): Generic typedef for *_display_info.
9504         (NativeRectangle): Generic typedef for rectangle type.
9505         (enum window_part): Move here from window.c.
9506         (struct redisplay_interface): New members flush_display_optional,
9507         define_frame_cursor, clear_frame_area, draw_window_cursor,
9508         draw_vertical_window_border, shift_glyphs_for_insert.
9509         Rename member clear_mouse_face to clear_window_mouse_face.
9510         (estimate_mode_line_height_hook): Remove hook.
9511         (auto_raise_tool_bar_buttons_p): Don't declare extern.
9512         (tool_bar_item_info): Remove prototype.
9513         (help_echo_string, help_echo_window, help_echo_object)
9514         (previous_help_echo_string, help_echo_pos)
9515         (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
9516         (x_stretch_cursor_p, output_cursor): Declare extern.
9517         (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
9518         (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
9519         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
9520         (display_and_set_cursor, set_output_cursor, x_cursor_to)
9521         (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
9522         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
9523         (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
9524         (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
9525         (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
9526         Add prototypes.
9527         (mode_line_string, marginal_area_string): Fix prototypes.
9529         * window.c (enum window_part): Move to dispextern.h.
9530         (coordinates_in_window): Use enum window_part member names
9531         instead of numbers to describe return value.
9532         (struct check_window_data): Change part member to window_part.
9533         (check_window_containing): Return window_part unaltered.
9534         (window_from_coordinates): Change part arg from int to enum
9535         window_part.  Allow part arg to be null.  All users changed.
9537         * window.h (window_from_coordinates): Fix prototype.
9539         * term.c (estimate_mode_line_height): Move to xdisp.c.
9541         * keyboard.c (make_lispy_event): Use enum window_part.
9543         * dispnew.c (mode_line_string, marginal_area_string): Use enum
9544         window_part instead of int in arg list.  Users changed.
9546         * xterm.h (No_Cursor): Declare as None for X.
9547         (struct mac_output): Replace member cross_cursor by hand_cursor.
9549         * xterm.c: Remove consolidated defines and code.
9550         (BETWEEN): Remove unused macro.
9551         (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
9552         (x_define_frame_cursor, x_clear_frame_area)
9553         (x_draw_window_cursor): New X-specific functions for RIF.
9554         (x_redisplay_interface): Add new members.
9556         * xfns.c: Setup and use hand_cursor instead of cross_cursor.
9558         * w32term.h (struct w32_output): Remove cross_cursor member.
9560         * w32term.c: Remove consolidated defines and code.
9561         (BETWEEN): Remove unused macro.
9562         (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
9563         (w32_define_frame_cursor, w32_clear_frame_area)
9564         (w32_draw_window_cursor): New W32-specific functions for RIF.
9565         (w32_redisplay_interface): Add new members.
9567         * w32gui.h (No_Cursor): Define as 0 for W32.
9568         (XRectangle): Add X compatible rectangle type.
9569         (NativeRectangle): Declare as RECT for W32.
9570         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9572         * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
9574         * w32console.c: Remove consolidated defines and code.
9576         * msdos.h (Display_Info): Add generic typedef.
9578         * msdos.c: Remove consolidated defines and code.
9579         (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
9581         * macterm.h (struct mac_output): Replace member cross_cursor by
9582         hand_cursor.
9583         (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
9585         * macterm.c: Remove consolidated defines and code.
9586         (BETWEEN): Remove unused macro.
9587         (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
9588         (mac_define_frame_cursor, mac_clear_frame_area)
9589         (mac_draw_window_cursor): New Mac-specific functions for RIF.
9590         (x_redisplay_interface): Add new members.
9592         * macgui.h (No_Cursor): Define as 0 for Mac.
9593         (XRectangle): Add X compatible rectangle type.
9594         (NativeRectangle): Declare as Rect for Mac.
9595         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
9597         * macfns.c (x_set_mouse_color): Setup hand_cursor.
9598         (x_set_cursor_color): Use x_display_and_set_cursor.
9600         * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
9601         included from it.  Add dependency on keymap.h.
9603         * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
9605 2003-03-21  Kenichi Handa  <handa@m17n.org>
9607         * fileio.c (Fexpand_file_name): Fix previous change.
9609 2003-03-19  Kenichi Handa  <handa@m17n.org>
9611         * fileio.c (Ffile_name_directory): Reconstruct file name by
9612         make_specified_string.
9613         (Ffile_name_nondirectory, Ffile_name_as_directory)
9614         (Fdirectory_file_name, Fexpand_file_name)
9615         (Fsubstitute_in_file_name): Likewise.
9616         (Fread_file_name): Compare decoded homedir with DIR and
9617         DEFAULT_FILENAME.
9619         * alloc.c (make_specified_string): If NCHARS is negative, count
9620         the number of characters.
9622 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9624         * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
9625         all widgets.
9627         * gtkutil.h: Removed xg_ignore_next_thumb.
9629 2003-03-18  Kenichi Handa  <handa@m17n.org>
9631         * coding.c (Vchar_coding_system_table): Remove this variable.
9632         (Vcoding_system_safe_chars): New variable.
9633         (intersection): Remove this function.
9634         (find_safe_codings): Don't use Vchar_coding_system_table, but try
9635         all codings in SAFE_CODINGS.
9636         (Ffind_coding_systems_region_internal): Adjust for the change of
9637         find_safe_codings.  Get generic coding systems from
9638         Vcoding_system_safe_chars.
9639         (Fdefine_coding_system_internal): New function.
9640         (syms_of_coding): Defsubr Sdefine_coding_system_internal.
9641         Initialize and staticpro Vcoding_system_safe_chars.
9643 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9645         * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
9646         equal old values before updating.
9648         * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
9650         * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
9652 2003-03-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9654         * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
9655         (xg_resize_widgets): Don't call foreach(handle_fixed_child).
9656         (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
9657         (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
9658         (xg_create_scroll_bar): Pass bar to button event callback.
9659         (xg_find_top_left_in_fixed): New function.
9660         (xg_update_scrollbar_pos): Don't call gdk_window_clear on
9661         whole scroll bar area.  Get old position with
9662         xg_find_top_left_in_fixed, calculate and only clear needed areas.
9663         (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
9664         dragging is in progress.  Calculate whole as for Motif.
9665         Remove code that saved last values.  Call gtk_range functions to
9666         set scroll bar sizes.
9668         * gtkutil.h: Removed xg_ignore_next_thumb.
9670 2003-03-17  Juanma Barranquero  <lektu@terra.es>
9672         * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
9673         and files included from it.
9675 2003-03-18  Stefan Monnier  <monnier@cs.yale.edu>
9677         * keymap.c (accessible_keymaps_1): Break cycles but without preventing
9678         multiple occurrences of the same keymap under different prefixes.
9679         (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
9681 2003-03-16  Jason Rumney  <jasonr@gnu.org>
9683         * w32gui.h: Use HDC for Display.
9685         * w32term.c (w32_encode_char): Prevent double-byte chars from
9686         crashing Emacs.
9688         * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
9689         as binary.
9691 2003-03-16  Juanma Barranquero  <lektu@terra.es>
9693         * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
9695 2003-03-16  Kim F. Storm  <storm@cua.dk>
9697         The following changes consolidate some of the gui-independent
9698         parts of the processing and drawing of "glyph strings" from
9699         xterm.c, w32term.c, and macterm.c into xdisp.c.
9701         * dispextern.h (struct glyph): Reduce face_id member from 22 to
9702         21 bits (this reduces number of faces from 4M to 2M).
9703         Replace W32 specific w32_font_type member (2 bits) by generic
9704         font_type member (3 bits) for portability.
9705         (FONT_TYPE_UNKNOWN): New define, default for font_type member.
9706         (enum draw_glyphs_face): Define here.
9707         (struct glyph_string): Define here.  Merge W32 and X versions.
9708         (struct redisplay_interface): New members per_char_metric,
9709         encode_char, compute_glyph_string_overhangs, draw_glyph_string.
9710         (VCENTER_BASELINE_OFFSET): Define here.
9711         (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
9712         (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
9714         * xdisp.c: Consolidate gui-independent "glyph string" code here.
9715         (dump_glyph_string): Moved here.
9716         (init_glyph_string, append_glyph_string_lists, append_glyph_string)
9717         (prepend_glyph_string_lists, get_glyph_face_and_encoding)
9718         (fill_composite_glyph_string, fill_glyph_string)
9719         (fill_image_glyph_string, fill_stretch_glyph_string)
9720         (left_overwritten, left_overwriting, right_overwritten)
9721         (right_overwriting, get_char_face_and_encoding)
9722         (set_glyph_string_background_width, compute_overhangs_and_x)
9723         (append_glyph, append_composite_glyph, produce_image_glyph)
9724         (take_vertical_position_into_account, append_stretch_glyph)
9725         (produce_stretch_glyph): New generic functions (based on X version).
9726         Call platform specific functions through rif.
9727         (INIT_GLYPH_STRING): New macro, hides W32 details.
9728         (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
9729         (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
9730         (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
9731         (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
9732         (notice_overwritten_cursor):
9733         Generic functions exported to platform modules.  Users changed.
9735         * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
9736         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
9737         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
9738         New macros for consolidated code.
9740         * xterm.c: Remove consolidated defines and code.
9741         (x_per_char_metric, x_encode_char)
9742         (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
9743         (x_redisplay_interface): Add new members.
9745         * w32gui.h (Display): Add dummy typedef for consolidation.
9746         (XChar2b): Define alias for wchar_t for consolidation.
9747         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9749         * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
9750         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
9751         New macros for consolidation.
9753         * w32term.c: Remove consolidated defines and code.
9754         (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
9755         to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
9756         (w32_per_char_metric): Change font_type arg to int for RIF.
9757         (w32_encode_char): Return int according to RIF requirements.
9758         (w32_compute_glyph_string_overhangs): Adapt to RIF.
9759         (w32_get_glyph_overhangs): New function for RIF.  Uses generic
9760         x_get_glyph_overhangs.
9761         (w32_redisplay_interface): Add new members.
9763         * macgui.h (XChar2b): Move typedef here for consolidation.
9764         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
9766         * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
9767         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
9768         consolidation.
9770         * macterm.c: Remove consolidated defines and code.
9771         (mac_per_char_metric): New function for RIF.
9772         (mac_encode_char): Adapt to new RIF requirements.
9773         (mac_compute_glyph_string_overhangs): Adapt for RIF.
9774         (x_redisplay_interface): Add new members.
9776 2003-03-15  Stefan Monnier  <monnier@cs.yale.edu>
9778         * keymap.c (Vmenu_events): New var.
9779         (syms_of_keymap): Initialize it.
9780         (where_is_internal): Check more carefully what is a menu event.
9782 2003-03-14  Richard M. Stallman  <rms@gnu.org>
9784         * lread.c (read1): After #!, exit loop on eof.
9786 2003-03-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9788         * gtkutil.h: Add declaration for xg_frame_cleared.
9790         * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
9792         * gtkutil.c (struct xg_last_sb_pos): New structure.
9793         (handle_fixed_child): New function.
9794         (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
9795         and force a redraw on them.
9796         (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
9797         (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
9798         so we can avoid unneeded redraws.
9799         (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
9800         and force a redraw on the scroll bar.
9801         (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
9802         if xg_last_sb_pos shows the positions are up to date.
9803         (xg_frame_cleared): New function.
9805 2003-03-13  Kenichi Handa  <handa@m17n.org>
9807         * coding.c (Fdetect_coding_region): Fix docstring.
9808         (Fdetect_coding_string): Fix docstring.
9810 2003-03-13  Andreas Schwab  <schwab@suse.de>
9812         * gtkutil.c: Add prototype for create_menus.
9814         * data.c (long_to_cons): Fix type of top.
9816         * xselect.c (selection_data_to_lisp_data): Use int instead of
9817         long for an integer of size 4.
9819         * gtkutil.c (xg_update_frame_menubar): Add missing return value.
9820         (xg_tool_bar_help_callback): Likewise.
9822 2003-03-12  Andreas Schwab  <schwab@suse.de>
9824         * xterm.c (x_term_init) [USE_GTK]: Fix typo.
9826 2003-03-12  Kim F. Storm  <storm@cua.dk>
9828         The following changes consolidate the fringe handling from
9829         xterm.c, w32term.c, and macterm.c into xdisp.c.
9831         * xdisp.c: Consolidate fringe handling code here.
9832         (left_bits, right_bits, continued_bits, continuation_bits)
9833         (ov_bits, zv_bits): Define fringe bitmaps.
9834         (fringe_bitmaps): New array holding fringe bitmaps.
9835         (draw_fringe_bitmap): Draw a specific bitmap; call display
9836         specific drawing routine via rif->draw_fringe_bitmap.
9837         (draw_row_fringe_bitmaps): Generic replacement for
9838         x_draw_row_fringe_bitmaps; all callers changed.
9839         (compute_fringe_widths): Generic replacement for
9840         x_compute_fringe_widths; all callers changed.
9842         * dispextern.h (enum fringe_bitmap_type): Define here.
9843         (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
9844         (fringe_bitmaps): Declare extern.
9845         (struct redisplay_interface): New member draw_fringe_bitmap.
9846         (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
9848         * xterm.c: Remove generic fringe code.
9849         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9850         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9852         * w32term.c: Remove generic fringe code.
9853         (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
9854         (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
9856         * macterm.c: Remove generic fringe code.
9857         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
9858         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
9860 2003-03-11  Stefan Monnier  <monnier@cs.yale.edu>
9862         * print.c (Fprin1_to_string): Return unibyte string if possible.
9864 2003-03-09  David Kastrup  <dak@gnu.org>
9866         * process.c (read_process_output): We have allocated enough space
9867         for readmax and carryover, so actually use the alloted space.
9869 2003-03-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9871         * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
9872         toolkit scrollbar click.
9874         * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
9875         for USE_GTK.
9876         (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
9877         also.
9878         (handle_one_xevent): ButtonPress/Release:  If event is for a toolkit
9879         scrollbar and control is pressed, call x_scroll_bar_handle_click.
9881         * gtkutil.h (xg_get_scroll_id_for_window): Declare.
9883         * gtkutil.c (xg_get_scroll_id_for_window): New function.
9884         (xg_tool_bar_item_expose_callback): New function.
9885         (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
9886         (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
9887         on the tool bar widget.
9888         (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
9889         to expose on the tool bar item widgets.
9891 2003-03-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9893         * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
9894         struct image* when deciding to update (struct image* may have been
9895         deleted from the image cache).
9897         * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
9898         the event isn't for a frame (i.e. for dialogs).
9900 2003-03-07  Kenichi Handa  <handa@m17n.org>
9902         * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
9903         composition components reaches the limit, terminate composing.
9904         (COMPOSITION_OK): New macro.
9905         (detect_coding_iso2022): Use it if an escape sequence for
9906         composition is found.
9907         (coding_restore_composition): Adjust the number of composition
9908         components if it is not sane.
9910 2003-03-06  Juanma Barranquero  <lektu@terra.es>
9912         * w32term.h (struct w32_display_info): Add xrdb member to support
9913         passing resources via -xrm on Windows.
9915         * w32term.c (w32_make_rdb): New function.
9916         (w32_term_init): Use it to initialize xrdb member of w32_display_info
9917         struct.  Delete leftover code.
9919         * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
9920         for resources passed on the command line.
9922         * w32reg.c (w32_get_rdb_resource): New function.
9923         (x_get_string_resource): Use it, so resources passed with -xrm
9924         supercede the ones in the registry.
9926 2003-03-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9928         * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
9929         instead of x_top_window_to_frame.
9931 2003-03-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9933         * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
9934         when restarting Emacs.
9936 2003-03-03  Richard M. Stallman  <rms@gnu.org>
9938         * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
9939         to run kill-buffer-query-functions.
9940         (Qkill_buffer_query_functions): New var.
9941         (syms_of_buffer): Init and staticpro it.
9943 2003-03-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9945         * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
9947 2003-02-25  Kim F. Storm  <storm@cua.dk>
9949         * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
9950         If centering point failed to make whole line visible and vscroll
9951         is non-zero, disable vscroll and try centering point again.
9953         * lread.c (read1): Accept `single space' syntax like (? x).
9955 2003-02-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9957         * keyboard.c (cancel_hourglass_unwind): Surround with
9958         #ifdef HAVE_X_WINDOWS
9960 2003-02-25  Kenichi Handa  <handa@m17n.org>
9962         * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
9963         process only when "subprocesses" is defined.
9965 2003-02-24  Stefan Monnier  <monnier@cs.yale.edu>
9967         * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
9969 2003-02-24  Juanma Barranquero  <lektu@terra.es>
9971         * callint.c (fix_command): Declare as static void and move before
9972         Fcall_interactively.
9974         * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
9975         (syms_of_xdisp): Don't initialize Qwhen.
9977 2003-02-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
9979         * keyboard.c (cancel_hourglass_unwind): New function.
9980         (command_loop_1): Cancel hourglass with unwind-protect.
9982 2003-02-23  Richard M. Stallman  <rms@gnu.org>
9984         * callint.c (fix_command): New subroutine, from Fcall_interactively.
9985         Detect (when ... (region-beginning)) etc.
9986         (Fcall_interactively): Call fix_command.
9987         (Qif, Qwhen): New variables.
9988         (syms_of_callint): Init and staticpro them.
9990         * regex.c (print_partial_compiled_pattern): Output to stderr.
9992 2003-02-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
9994         * dired.c (directory_files_internal): Don't expand directory.
9995         (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
9996         instead.  From Lars Hansen <larsh@math.ku.dk>.
9998 2003-02-22  Stefan Monnier  <monnier@cs.yale.edu>
10000         * fns.c (string_to_multibyte): Remove unused var i.
10001         (Flanginfo): Fix int/Lisp_Object mixup.
10002         (void_call2): New fun.
10003         (Fmap_char_table): Use it in place of call2.
10005         * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
10007         * macros.c (Fstart_kbd_macro): Remove redundant assignment.
10009         * keymap.c (copy_keymap_1): Make it static.
10011         * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
10013 2003-02-22  David Ponce  <david@dponce.com>
10015         * lread.c (Fload): Don't check STRING_MULTIBYTE.
10017 2003-02-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10019         * process.h: Removed subtty field from struct Lisp_Process.
10021         * process.c (create_process): Remove setting of subtty.
10022         (emacs_get_tty_pgrp): New function.
10023         (Fprocess_running_child_p, process_send_signal):
10024         Call emacs_get_tty_pgrp instead of ioctl.
10025         (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
10027 2003-02-21  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
10029         * keymap.c (Fdefine_key): Doc fix.
10031 2003-02-21  Juanma Barranquero  <lektu@terra.es>
10033         Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
10035         * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
10036         POLLING_PROBLEM_IN_SELECT.
10038         * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
10039         Delete #undef of POLLING_PROBLEM_IN_SELECT.
10041         * s/hpux10-20.h: New file.
10043         * process.c (wait_reading_process_input):
10044         Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
10046 2003-02-20  Kenichi Handa  <handa@m17n.org>
10048         * fontset.c (check_fontset_name): If NAME is nil, return the
10049         default fontset.
10050         (override_font_info): New function.
10051         (Fset_fontset_font): Document that NAME nil means the default fontset.
10052         (Ffontset_info): If FONTSET is not the default fontset, merge
10053         FONTSET onto the copy of the default fontset, and work on that
10054         copy.  Document that NAME nil means the default fontset.
10055         (Ffontset_font): Document that NAME nil means the default fontset.
10057         * process.c (setup_process_coding_systems): If the process's
10058         in/out descriptor is -1, do nothing.
10060 2003-02-19  Andreas Schwab  <schwab@suse.de>
10062         * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
10063         Add prototypes.
10065 2003-02-19  Kenichi Handa  <handa@m17n.org>
10067         * xfaces.c (try_alternative_families): Try all scalable fonts if
10068         Vscalable_fonts_allowed is not Qt.
10070 2003-02-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10072         * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
10074 2003-02-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10076         * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
10077         names.
10079         * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
10080         (sorted_font_list): Move allocation of struct font_name to
10081         x_face_list_fonts.
10082         (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
10083         (Fx_list_fonts): Set maxnames to -1 to get all font names.
10085 2003-02-18  Kim F. Storm  <storm@cua.dk>
10087         * lread.c (read1): Fix last change.
10088         "`" is not always special.  Allow "?" after a character constant.
10090 2003-02-18  Andrew Choi  <akochoi@shaw.ca>
10092         * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
10094 2003-02-18  Andreas Schwab  <schwab@suse.de>
10096         * window.c (window_scroll_pixel_based): Move outside a
10097         multi-glyph character before setting new window start.
10099         * xdisp.c (in_display_vector_p): New function.
10100         * dispextern.h (in_display_vector_p): Declare.
10102 2003-02-18  Kim F. Storm  <storm@cua.dk>
10104         * lread.c (read1): Fix and relax read syntax.
10105         Recognize "[", ";", "#", and "?" after a dotted-pair dot.
10106         Only recognize "," after dotted-pair dot if inside backquote.
10107         Never include "`" or "," (inside backquote) in a symbol.
10108         Allow dotted-pair dot after a character constant.
10109         Allow "`" and "," (inside backquote) after a character constant.
10111 2003-02-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10113         * gtkutil.c (xg_tool_bar_expose_callback): New function.
10114         (xg_create_tool_bar): Force style of tool bar to be horizontal with
10115         icons.  Set name of tool bar to emacs-toolbar.
10116         (update_frame_tool_bar): Connect expose event to
10117         xg_tool_bar_expose_callback.
10119 2003-02-17  Richard M. Stallman  <rms@gnu.org>
10121         * keyboard.c (this_command_key_count_reset): New variable.
10122         Initiatize to 0 where this_command_key_count is set.
10123         (read_char): Save and restore this_command_key_count_reset
10124         around input method code.
10125         (read_char): If this_command_key_count_reset, echo reread commands.
10126         (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
10128 2003-02-17  Kenichi Handa  <handa@m17n.org>
10130         * fns.c (string_to_multibyte): Always return a multibyte string.
10132 2003-02-16  Jason Rumney  <jasonr@gnu.org>
10134         * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
10135         Negative max_fonts parameter means list all.
10137 2003-02-14  Dave Love  <fx@gnu.org>
10139         * fns.c (Flanginfo): Doc fix.
10141 2003-02-13  Kim F. Storm  <storm@cua.dk>
10143         * lread.c (read_escape): Interpret \s as a SPACE character, except
10144         for \s-X in a character constant which still is the super modifier.
10145         (read1): Signal an `invalid read syntax' error if a character
10146         constant is immediately followed by a digit or symbol character.
10148         * search.c (Fmatch_data): Doc fix.  Explicitly state that
10149         match-data is undefined if last search failed.
10151         * keymap.c (Fcommand_remapping): Rename from Fremap_command.
10152         All uses changed.
10154 2003-02-12  Juanma Barranquero  <lektu@terra.es>
10156         * eval.c (Fdefmacro): Fix typo.
10158 2003-02-12  Kim F. Storm  <storm@cua.dk>
10160         * macros.c (Fstart_kbd_macro): If appending, and last keyboard
10161         macro is a string, convert meta modifiers in string when copying
10162         the string into a vector.
10164 2003-02-11  Kim F. Storm  <storm@cua.dk>
10166         * keymap.c (Fremap_command): Return nil if arg is not a symbol.
10168 2003-02-11  Kenichi Handa  <handa@m17n.org>
10170         * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
10172 2003-02-10  Kim F. Storm  <storm@cua.dk>
10174         * process.c: Doc fixes.
10175         (syms_of_process): Add `:' prefix to QCfilter_multibyte.
10177 2003-02-10  Kenichi Handa  <handa@m17n.org>
10179         * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
10181         * process.c (QCfilter_multibyte): New variable.
10182         (setup_process_coding_systems): New function.
10183         (Fset_process_buffer, Fset_process_filter):
10184         Call setup_process_coding_systems.
10185         (Fstart_process): Initialize the member `filter_multibyte' of
10186         struct Lisp_Process.
10187         (create_process): Call setup_process_coding_systems.
10188         (Fmake_network_process): New keyward `:filter-multibyte'.
10189         Initialize the member `filter_multibyte' of struct Lisp_Process.
10190         Call setup_process_coding_systems.
10191         (server_accept_connection): Call setup_process_coding_systems.
10192         (read_process_output): If the process has a filter, decide the
10193         multibyteness of a string to given to the filter by
10194         `filter_multibyte' member of the process.  If the process doesn't
10195         have a filter and the result of conversion is unibyte, use
10196         Fstring_to_multibyte (not Fstring_make_multibyte) to get the
10197         multibyte form.
10198         (Fset_process_coding_system): Call setup_process_coding_systems.
10199         (Fset_process_filter_multibyte): New function.
10200         (Fprocess_filter_multibyte_p): New function.
10201         (syms_of_process): Intern and staticpro QCfilter_multibyte.
10202         Defsubr Sset_process_filter_multibyte and
10203         Sprocess_filter_multibyte_p.
10205         * process.h (struct Lisp_Process): New member filter_multibyte.
10207         * lisp.h (setup_process_coding_systems): Add prototype.
10209         * buffer.c (Fset_buffer_multibyte): If the current buffer has a
10210         process, update coding systems for the process.
10212 2003-02-09  Kenichi Handa  <handa@m17n.org>
10214         * fns.c (string_to_multibyte): New function.
10215         (Fstring_to_multibyte): New function.
10216         (syms_of_fns): Defsubr it.
10218 2003-02-08  Andreas Schwab  <schwab@suse.de>
10220         * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
10221         instead of the substitution.
10223 2003-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10225         * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
10227         * xmenu.c (menu_position_func): Adjust menu popup position so that
10228         the menu is fully visible.
10230 2003-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10232         * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
10233         (x_make_frame_invisible, x_wm_set_icon_position):
10234         Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
10236         * xfns.c (x_set_name, x_set_title): Ditto.
10238 2003-02-04  Richard M. Stallman  <rms@gnu.org>
10240         * keyboard.c (echo_now): Update before_command_echo_length.
10241         (Freset_this_command_lengths): Reset this_command_key_count etc.
10242         immediately rather than arranging to do it later.
10243         (before_command_key_count_1, before_command_echo_length_1)
10244         (before_command_restore_flag): Vars deleted.
10245         (add_command_key): Don't handle before_command_restore_flag.
10246         (read_char, record_menu_key): Don't update before_command_key_count or
10247         before_command_echo_length.
10248         (read_char): Don't handle before_command_restore_flag.
10250         * keyboard.c (command_loop_1): Don't call adjust_point_for_property
10251         in direct-output clauses if it wouldn't be called in the ordinary case.
10253 2003-02-04  Kim F. Storm  <storm@cua.dk>
10255         * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
10257 2003-02-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10259         * gtkutil.c (remove_from_container): Copying list is not needed.
10260         (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
10261         (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
10262         on list returned from gtk_container_get_children to avoid memory leak.
10264 2003-02-01  Jason Rumney  <jasonr@gnu.org>
10266         * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
10267         local malloc.
10268         [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
10269         definitions in xpm.h.
10270         (init_xpm_functions): New function.
10271         (xpm_load): Sync with xfns.c.  Adapt for Windows version of libXpm.
10272         (init_external_image_libraries): Try to load libXpm.dll.
10274         * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
10275         timestamp.
10277 2003-01-31  Dave Love  <fx@gnu.org>
10279         * syntax.c (Fskip_chars_forward)
10280         (open-paren-in-column-0-is-defun-start): Doc fix.
10282 2003-01-31  Joe Buehler  <jhpb@draco.hekimian.com>
10284         * fileio.c: Support // at start of name for Cygwin (just added proper
10285         preprocessor tests).
10287         * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
10289         * Makefile.in: Use @EXEEXT@ for Cygwin.
10291         * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
10293         * s/cygwin.h: Added for Cygwin port.
10295 2003-01-31  Juanma Barranquero  <lektu@terra.es>
10297         * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
10298         when including gif_lib.h.
10299         (init_gif_functions, init_tiff_functions): New functions.
10300         (gif_load, tiff_load): Sync with xfns.c version.  Adjust colors for
10301         Windows.  Disable color table lookups.  Call library functions
10302         through pointers determined at runtime.
10303         (init_external_image_libraries): Try to load libungif.dll and
10304         libtiff.dll.
10306 2003-01-31  Kenichi Handa  <handa@m17n.org>
10308         * xdisp.c (SKIP_GLYPHS): New macro.
10309         (set_cursor_from_row): Skip all glyphs that comes from overlay string.
10311 2003-01-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10313         * gtkutil.c (free_frame_tool_bar): Remove debug printf.
10315 2003-01-30  Dave Love  <fx@gnu.org>
10317         * alloc.c (Vgc_elapsed, gcs_done): New variables.
10318         (Fgarbage_collect): Use them.
10319         (init_alloc, syms_of_alloc): Set them up.
10321 2003-01-30  Juanma Barranquero  <lektu@terra.es>
10323         * w32fns.c (init_external_image_libraries): Add missing operator.
10325 2003-01-29  Jason Rumney  <jasonr@gnu.org>
10327         * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
10328         an alternative name for jpeg.dll.
10330 2003-01-29  Kenichi Handa  <handa@m17n.org>
10332         * xdisp.c (set_cursor_from_row): Pay attention to string display
10333         properties.
10335 2003-01-28  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
10337         * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
10338         <escape>.
10339         (keycode_to_xkeysym_table): Reformat and add more comments.
10340         (XTread_socket): Drop special case for backspace.
10342 2003-01-28  Andrew Choi  <akochoi@shaw.ca>
10344         * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
10345         values in old-style RGB specs.
10347 2003-01-27  Juanma Barranquero  <lektu@terra.es>
10349         * w32fns.c (init_external_image_libraries): Try alternate names for the
10350         jpeg dll.
10352 2003-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10354         * gtkutil.c (create_dialog, xg_separator_p)
10355         (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
10356         before calling strcmp or strlen.
10358 2003-01-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10360         * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
10361         and handle image load failure.
10363 2003-01-26  Jason Rumney  <jasonr@gnu.org>
10365         * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
10366         New functions.
10367         (jpeg_load): Sync with xfns.c version.  Adjust colors for Windows.
10368         Disable color table lookups.  Call jpeg library functions
10369         through pointers determined at runtime.
10370         (init_external_image_libraries): Try to load jpeg.dll.
10372 2003-01-25  Richard M. Stallman  <rms@gnu.org>
10374         * lisp.h: Declare format2 instead of format1.
10376         * fileio.c (barf_or_query_if_file_exists):
10377         Call format2 instead of format1.
10379         * editfns.c (format2): New function, replaces format1
10380         but takes exactly two Lisp Objects as format args.
10382         * buffer.c (Fkill_buffer): Call format2 instead of format1.
10384 2003-01-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10386         * xterm.h: Change to return value of x_dispatch_event to int.
10388         * xterm.c (x_filter_event): New function.
10389         (event_handler_gdk, XTread_socket): Call x_filter_event.
10390         (x_dispatch_event): Change to return value of finish.
10391         (event_handler_gdk): Use return value from x_dispatch_event.
10393         * xfns.c (x_window): Call create_frame_xic for GTK version to
10394         initialize input methods.
10396         * gtkutil.h: Add (void) prototypes.
10398         * gtkutil.c (create_menus): Remove code that puts the help menu to
10399         the right.
10401 2003-01-25  Jason Rumney  <jasonr@gnu.org>
10403         * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
10404         [HAVE_PNG]: Sync with xfns.c version.
10405         (png_load): Adjust colors for Windows.  Use Windows
10406         bitmaps.  Disable color table lookups.
10407         (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
10408         (init_png_functions): New function.
10409         (png_read_from_memory, png_load): Call png library functions
10410         through pointers determined at runtime.
10411         (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
10412         (init_external_image_libraries): New function.
10413         (init_xfns): Call it.
10415 2003-01-24  Andreas Schwab  <schwab@suse.de>
10417         * minibuf.c (Fminibuffer_message): Verify type of parameter.
10419 2003-01-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10421         * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
10422         of static initializer.
10424 2003-01-24  Dave Love  <fx@gnu.org>
10426         * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
10427         architectures.
10429         * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
10430         Use __alignof__.
10432 2003-01-24  Kenichi Handa  <handa@m17n.org>
10434         * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
10435         It it is nonzero, don't pretend that an invisible area doesn't exist.
10436         (command_loop_1): Call adjust_point_for_property with proper
10437         second arg.
10439 2003-01-22  Jason Rumney  <jasonr@gnu.org>
10441         Sync changes with xterm.c and xfns.c.
10443         * w32term.c (x_draw_glyph_string_foreground)
10444         (x_draw_composite_glyph_string_foreground): Implement overstriking.
10446         * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
10447         phys_cursor's hpos is overwritten.  This is still not completely
10448         correct, as it doesn't really make sense to use hpos at all to
10449         get the cursor glyph (as that is relative to the width of the
10450         characters on the line, which may have changed during the update).
10452         * w32term.c (notice_overwritten_cursor): Handle the special case
10453         of the cursor being in the first blank non-text line at the
10454         end of a window.
10456         * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
10457         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
10458         Compute from the x position returned by x_draw_glyphs.
10460         (x_display_and_set_cursor): Don't set phys_cursor_width here,
10461         except for NO_CURSOR and system caret, to make phys_cursor_width
10462         contain what its name suggests.
10463         (notice_overwritten_cursor): Consider the cursor image erased if
10464         the output area intersects the cursor image in y-direction.
10466         * w32term.c (note_mode_line_or_margin_highlight): Rename from
10467         note_mode_line_highlight and extend.
10469         * w32term.c (last_window): New variable.
10470         (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
10471         (note_mouse_movement): Remove reimplemented code in #if 0.
10473         * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
10474         not update_mode_lines, and always set it to 1.
10476 2003-01-21  Jason Rumney  <jasonr@gnu.org>
10478         * w32fns.c (IDC_HAND): Define it if system headers don't.
10480 2003-01-21  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
10482         * w32term.h (struct w32_output): New member hand_cursor.
10483         (WM_EMACS_SETCURSOR): New message definition.
10485         * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
10486         function w32_define_cursor.
10487         (note_mouse_highlight): Initialize, setup cursor accoding to mouse
10488         position, change member name output_data.x to output_data.w32 and
10489         add function w32_define_cursor.
10490         (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
10491         and change member name output_data.x to output_data.w32.
10492         (w32_initialize_display_info):
10493         Setup dpyinfo->vertical_scroll_bar_cursor.
10495         * w32fns.c (Vx_hand_shape): New variable.
10496         (w32_wnd_proc): Add message entries for WM_SETCURSOR and
10497         WM_EMACS_SETCURSOR.
10498         (x-create-frame): Setup Cursor types.
10500 2003-01-21  David Ponce  <david@dponce.com>
10502         * w32term.c (w32_encode_char): For DIM=1 charset, set
10503         ccl->reg[2] to -1 before calling ccl_driver.  (Sync. with xterm.c
10504         x_encode_char change by Kenichi Handa <handa@m17n.org> on
10505         2002-09-30.)
10506         (w32_draw_relief_rect): Declare all args.
10507         (w32_define_cursor): New.
10509         * w32fns.c (w32_load_cursor): New function.
10510         (w32_init_class): Use it.
10511         (x_put_x_image): Declare all args.
10513 2003-01-21  Richard Dawe  <rich@phekda.freeserve.co.uk>
10515         * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
10517 2003-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10519         * gtkutil.c: Must include stdio.h before termhooks.h
10521 2003-01-21  Dave Love  <fx@gnu.org>
10523         * alloc.c (Fgc_status): Print zombie list.
10524         (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10525         Fix assignment of zombies.
10526         (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
10527         Don't take car of non-cons.
10529         * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10531         * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10533 2003-01-20  David Ponce  <david@dponce.com>
10535         * w32menu.c (digest_single_submenu): Declare all args.
10537         Sync with 2002-12-23  Richard M. Stallman  <rms@gnu.org>
10538         changes in xmenu.c:
10540         (parse_single_submenu): Use individual keymap's prompt
10541         string as pane name, if there is one.
10542         (set_frame_menubar): Save menu_items_n_panes from each call to
10543         parse_single_submenu and use it when calling digest_single_submenu.
10545 2003-01-20  Steven Tamm  <steventamm@mac.com>
10547         * macterm.c (XTread_socket): Checks for valid, visible window
10548         before sending a scroll-wheel event.
10550 2003-01-20  Richard M. Stallman  <rms@gnu.org>
10552         * xdisp.c (redisplay_window): If mini window's buffer is not
10553         a minibuffer, then redisplay it like other windows.
10555 2003-01-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10557         * gtkutil.c (xg_create_frame_widgets): Check if there is an
10558         external tool bar before setting tool bar height.
10560 2003-01-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10562         * xterm.c (handle_one_xevent): Surround popup_activated
10563         with #ifdef:s for non-toolkit version.
10565         * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
10566         (gtkutil.o): New file.
10567         (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
10568         (LIBW): Set to @GTK_LIBS@ if USE_GTK.
10570         * gtkutil.c: New file for GTK version.
10572         * gtkutil.h: New file for GTK version.
10574         * xterm.h: Add xt_or_gtk_widget.
10575         Include gtk files for USE_GTK.
10576         (struct x_output): Add toolbar_height.
10577         (struct x_output): Add GTK widgets and Gdk size_hints.
10578         (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
10579         (FRAME_OUTER_WINDOW): New macros for USE_GTK.
10580         (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
10582         * xterm.c: Include gtkutil.h for USE_GTK.
10583         (free_frame_menubar): Declare extern void for USE_GTK.
10584         (note_mouse_highlight): Check popup_activated for USE_GTK.
10585         (xt_action_hook): Don't compile if USE_GTK.
10586         (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
10587         (xg_scroll_callback): New function.
10588         (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
10589         (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
10590         for USE_GTK.
10591         (x_scroll_bar_create): Call xg_update_scrollbar_pos and
10592         xg_show_scroll_bar for USE_GTK.
10593         (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
10594         (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
10595         (event_handler_gdk): New function for USE_GTK.
10596         (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
10597         (handle_one_xevent): Make sure widget is mapped before
10598         calling x_real_positions for USE_GTK.
10599         (XTread_socket): Add GTK event loop for USE_GTK.
10600         (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
10601         (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
10602         (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
10603         (x_iconify_frame): Add code for USE_GTK.
10604         (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
10605         (x_wm_set_size_hint): Only compile if not USE_GTK.  GTK version
10606         is in gtkutil.c.
10607         (x_term_init): Add initialization for GTK.
10608         (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
10610         * xmenu.c: Include gtkutil.h for USE_GTK.
10611         (Fx_popup_menu): Use current position if x and y is NIL.
10612         (single_menu_item, single_menu_item, Fx_popup_dialog):
10613         Check for USE_GTK.
10614         (popup_widget_loop): New function for USE_GTK.
10615         (x_activate_menubar): Add code for USE_GTK.
10616         (popup_activate_callback, popup_deactivate_callback)
10617         (menu_highlight_callback, menubar_selection_callback):
10618         Add USE_GTK versions.
10619         (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
10620         (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
10621         (free_frame_menubar): Only compile if not USE_GTK.  GTK version
10622         is in gtkutil.c.
10623         (popup_selection_callback): New version for USE_GTK.
10624         (create_and_show_popup_menu): New fuction, one USE_GTK version and
10625         one USE_X_TOOLKIT version.
10626         (xmenu_show): Call create_and_show_popup_menu.
10627         (dialog_selection_callback): New version for USE_GTK.
10628         (create_and_show_dialog): New fuction, one USE_GTK version and
10629         one USE_X_TOOLKIT version.
10630         (xdialog_show): Call create_and_show_dialog.
10632         * xfns.c: Include gtkutil for USE_GTK.
10633         (x_window_to_frame, x_any_window_to_frame)
10634         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
10635         (x_top_window_to_frame): Add code for USE_GTK.
10636         (x_set_background_color): Call xg_set_background_color for GTK.
10637         (x_set_menu_bar_lines): Check for USE_GTK.
10638         (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
10639         (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
10640         (x_window): Call xg_create_frame_widgets for USE_GTK.
10641         (Fx_create_frame): Check for USE_GTK
10642         (Fx_file_dialog): New implementation for USE_GTK.
10644         * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
10645         (update_menu_bar): Add check for USE_GTK.
10646         (update_tool_bar): Add check for USE_GTK and external tool bar.
10647         (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
10648         (redisplay_internal): Add check for USE_GTK and popup_activated.
10649         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
10650         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
10651         (display_menu_bar): Add check for USE_GTK
10653         * lisp.h (Vx_resource_name): Declare extern.
10655         * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
10656         for USE_GTK.
10657         (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
10659         * frame.h (struct frame): Add external_tool_bar.  Check for USE_GTK.
10660         (FRAME_EXTERNAL_TOOL_BAR): New macro.
10661         (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
10663         * fileio.c (Fread_file_name): Add check for USE_GTK.
10665         * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
10666         Add check for USE_GTK.
10668         * config.in: Added HAVE_GTK
10670         * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
10672 2003-01-18  Stefan Monnier  <monnier@cs.yale.edu>
10674         * charset.h (Funibyte_char_to_multibyte): Export.
10676 2003-01-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10678         * xmenu.c (mouse_position_for_popup): New function.
10679         (Fx_popup_menu): Call mouse_position_for_popup for X and
10680         mouse_position_hook for others.
10682 2003-01-17  Kim F. Storm  <storm@cua.dk>
10684         * editfns.c (Finsert): Mention `string-make-multibyte' and
10685         `string-as-multibyte' in doc string.
10687 2003-01-17  Kenichi Handa  <handa@m17n.org>
10689         * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
10691         * editfns.c (Fformat): Convert an unibyte char argument that is
10692         formatted by "%c" to multibyte if the total result must be a
10693         multibyte string.
10695 2003-01-16  Kim F. Storm  <storm@cua.dk>
10697         * process.c (set-process-filter): Document unibyte/multibyte-ness
10698         of string argument.
10700 2003-01-16  Kenichi Handa  <handa@m17n.org>
10702         * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
10704         * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
10705         (re_search_2): Likewise.
10707 2003-01-15  Kenichi Handa  <handa@m17n.org>
10709         * xdisp.c (message_dolog): Fix bug of the case that *Message*
10710         buffer is unibyte.
10712 2003-01-15  Francesco Potort\e,Al\e(B  <pot@gnu.org>
10714         * fns.c (Fsubstring): Clarify doc string.
10716         * textprop.c (Ftext_properties_at, Fnext_char_property_change)
10717         (Fprevious_char_property_change)
10718         (Fnext_single_char_property_change)
10719         (Fprevious_single_char_property_change, Fnext_property_change)
10720         (Fnext_single_property_change, Fprevious_property_change)
10721         (Fprevious_single_property_change, Fadd_text_properties)
10722         (Fput_text_property, Fset_text_properties)
10723         (Fremove_text_properties, Fremove_list_of_text_properties)
10724         (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
10726 2003-01-14  Kim F. Storm  <storm@cua.dk>
10728         * process.h (struct Lisp_Process): New member plist replaces old
10729         member private_vars.  All uses changed.
10731         * process.c: Reworked 2003-01-12 change -- call a plist a plist!
10732         (QCplist): Rename from QCvars.  Change all uses.
10733         (Fprocess_plist): Replaces Fprocess_variable.  Simplified.
10734         (Fset_process_plist): Replaces Fset_process_variable.  Simplify.
10735         (syms_of_process): Intern, staticpro, defsubr these.
10736         (Fmake_network_process): Describe :plist arg.  Remove :vars arg.
10738 2003-01-14  Francesco Potort\e,Al\e(B  <pot@gnu.org>
10740         * m/delta.h: Remove (obsolete).
10742 2003-01-13  Francesco Potort\e,Al\e(B  <pot@gnu.org>
10744         * fileio.c (Fdelete_directory, Fdelete_file): Document the
10745         behaviour in front of symlinks.
10746         (Fdelete_file): Raise an error on directories.
10748 2003-01-13  Dave Love  <fx@gnu.org>
10750         * fns.c (Freverse): Use QUIT.
10752 2003-01-13  Richard M. Stallman  <rms@gnu.org>
10754         * minibuf.c (minibuffer_completion_contents):
10755         Error if point is inside prompt.
10757         * keyboard.c (command_loop_1): Don't redisplay directly
10758         if there's a post-command-hook.
10760         * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
10761         (Fdo_auto_save): Add gcpros around Ffile_name_directory.
10763 2003-01-12  Kim F. Storm  <storm@cua.dk>
10765         * process.h (struct Lisp_Process): New member private_vars.
10767         * process.c (QCvars): New variable.
10768         (syms_of_process): Intern and staticpro it.
10769         (Fset_process_contact): Removed function.
10770         (Fprocess_variable, Fset_process_variable): New functions.
10771         (syms_of_process): Defsubr them.
10772         (Fstart_process): Initialize private_vars plist to nil.
10773         (Fmake_network_process): New arg :vars to setup the private
10774         variables for new network process.
10775         (server_accept_connection): Copy server's private variables to
10776         client process.
10778         * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
10779         crashes).  Code rewritten and simplified.  Now directly aligns the
10780         pointer and recalculates pure_bytes_used, rather than aligning the
10781         size and adjusting the pointer.
10783 2003-01-11  Kim F. Storm  <storm@cua.dk>
10785         * process.c (Fset_process_contact): New function.
10786         (syms_of_process): defsubr it.
10787         (make-network-process): Update doc.
10789 2003-01-10  Andreas Schwab  <schwab@suse.de>
10791         * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
10792         Reported by Berthold Gunreben <b.gunreben@web.de>.
10794 2003-01-10  Dave Love  <fx@gnu.org>
10796         * composite.c (syms_of_composite): Make composition_hash_table weak.
10798 2003-01-09  Kim F. Storm  <storm@cua.dk>
10800         * process.c (Fmake_network_process): Convert new port number
10801         to host byte order for `:service t' case.  From Mario Lang.
10803 2003-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
10805         * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
10806         instead of XtAppProcessEvent.
10808         * xterm.c (handle_one_xevent): New function.
10809         (x_dispatch_event): New function.
10810         (XTread_socket): Call handle_one_xevent.
10812         * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
10814         * xmenu.c (Fx_popup_menu): If popping up at mouse position,
10815         call XQueryPointer to get coordinates.
10816         (popup_get_selection): Do not set popup_activated_flag to zero,
10817         let popup_deactivate_callback do that.  Needed for Motif.
10818         Call x_dispatch_event instead of XtDispatchEvent.
10819         (xmenu_show): Calculate root coordinate from frame top/left position.
10821 2003-01-08  Kim F. Storm  <storm@cua.dk>
10823         * process.c (server_accept_connection): Fix recording of new
10824         connection's local address in :local property of contact info.
10825         (Fmake_network_process): Record local network address for new
10826         client processes in :local property of contact info.
10827         (format-network-address): Add arg OMIT-PORT.  Change callers.
10829 2003-01-07  Dave Love  <fx@gnu.org>
10831         * Makefile.in (fns.o): Depend on coding.h.
10833 2003-01-07  Markus Rost  <rost@math.ohio-state.edu>
10835         * minibuf.c (Fread_variable): Doc fix.
10837         * eval.c (Fuser_variable_p): Doc change.  For custom variables,
10838         use the same test as for custom-variable-p.
10840 2003-01-05  Richard M. Stallman  <rms@gnu.org>
10842         * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
10843         Count LAST_LINE_MISFIT in scroll margin for end of window.
10844         Move label too_near_end before setting SCROLL_MARGIN_POS.
10845         Set LAST_LINE_MISFIT before jumping there.
10847         * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
10848         scroll_conservatively case.  If scrolling that much doesn't change
10849         STARTP, move it down one line.
10851         * xdisp.c (redisplay_window): Pass last_line_misfit arg to
10852         try_scrolling.  Make it 1 after make_cursor_line_fully_visible fails.
10854         * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
10855         selected frame.
10857         * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
10858         (syms_of_keymap): Staticpro them.
10859         (Fapropos_internal): Initialize them and clear them out.
10860         Don't GCPRO them.
10862         * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
10863         Doc fixes.
10865         * lisp.h: New misc type Lisp_Save_Value.
10866         (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
10867         (XSAVE_VALUE): New macro.
10868         (struct Lisp_Save_Value): New data type.
10869         (union Lisp_Misc): Add u_save_value alternative.
10870         (make_save_value): Declare.
10872         * alloc.c (make_save_value): New function.
10874         * xterm.c (x_catch_errors): Save dpy using make_save_value.
10875         (x_catch_errors_unwind): Call XSync.
10877 2003-01-01  Richard M. Stallman  <rms@gnu.org>
10879         * window.c (window_scroll_pixel_based): Partially undo last change.
10881         * keyboard.c (command_loop_1): Call adjust_point_for_property
10882         in direct action cases for Qforward_char and Qbackward_char.
10883         Set already_adjusted so it won't be done twice.
10885 2002-12-30  Richard Dawe  <rich@phekda.freeserve.co.uk>
10887         * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
10888         type definition of size_t.
10890 2003-01-02  Steven Tamm  <steventamm@mac.com>
10892         * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
10893         distinguish Carbon GUI builds from X11 builds on darwin.
10895 2002-12-30  Steven Tamm  <steventamm@mac.com>
10897         * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
10898         to default to t.
10900 2002-12-29  Francesco Potort\e,Al\e(B  <pot@gnu.org>
10902         * data.c (Fstring_to_number, Fminus): Better English in doc strings.
10904 2002-12-28  Steven Tamm  <steventamm@mac.com>
10906         * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
10907         allow building in a different directory than source.  Uses some
10908         GNU Make extensions, but there is no other make on Mac OS X.
10910 2002-12-26  Francesco Potort\e,Al\e(B  <pot@gnu.org>
10912         * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
10913         (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
10914         (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
10915         (Fstring_to_number): Mention the returned value in the doc strings.
10917 2002-12-23  Richard M. Stallman  <rms@gnu.org>
10919         * buffer.c (syms_of_buffer) <scroll-up-aggressively>
10920         <scroll-down-aggressively>: Doc fix.
10922         * xmenu.c (parse_single_submenu): Use individual keymap's prompt
10923         string as pane name, if there is one.
10924         (set_frame_menubar): Save menu_items_n_panes from each call to
10925         parse_single_submenu and use it when calling digest_single_submenu.
10927         * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
10928         Don't try to make last line fully visible if it is past end of window.
10930 2002-12-22  Steven Tamm  <steventamm@mac.com>
10932         * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
10933         (mac_menu_show): Add support for hierarchical popup menus.
10934         (add_menu_item): Remove indentation support.
10935         (fill_submenu, fill_menu): Create hierarchical menus
10936         instead of using indentation.
10938 2002-12-22  Richard M. Stallman  <rms@gnu.org>
10940         * xdisp.c (try_cursor_movement): Don't call try_window here.
10941         (redisplay_window): Never redisplay minibuffer when inactive.
10943         * window.c (select_window_1): Undo 9/21 change.
10945 2002-12-22  Steven Tamm  <steventamm@mac.com>
10947         * macterm.c (XTread_socket): Call KeyTranslate for control and
10948         meta to deal correctly shifted non-alpha characters, like C-S-5
10949         being treated like C-%.  Does not look for shift key to deal
10950         with masking off control-key with mac-reverse-ctrl-meta.
10952 2002-12-21  Richard M. Stallman  <rms@gnu.org>
10954         * xmenu.c (popup_get_selection): Now static.  New arg DO_TIMERS.
10955         If it is non-nil, run timers.  Use an unwind-protect to requeue
10956         the events that were read ahead.
10957         (popup_get_selection_unwind): New subroutine.
10958         (popup_get_selection_queue): File-scope variable now holds that queue.
10959         (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
10960         (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
10961         Use an unwind-protect to pop down the dialog box.
10962         (xdialog_show_unwind): New subroutine implements that.
10964         * xdisp.c (row_containing_pos): Change exit test using last_y.
10965         (try_window_id): Abort if row_containing_pos returns null.
10967         * lread.c (load_error_handler): New function.
10968         (Fload): Handle errors in Fsubstitute_in_file_name.
10969         Don't expect Fsignal to return.
10971         * eval.c: Errors and throws work right with interrupt blocking.
10972         (struct catchtag): New elt interrupt_input_blocked.
10973         (unwind_to_catch): Restore interrupt_input_blocked from saved value.
10974         (internal_catch, Fcondition_case, internal_condition_case)
10975         (internal_condition_case_1, internal_condition_case_2): Save it.
10976         (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
10978         * editfns.c (Fformat): Add parens.
10980         * dired.c (file_name_completion): Fix that change.
10981         Delete special quit-handling code; just use QUIT.
10983 2002-12-21  Tak Ota  <Takaaki.Ota@am.sony.com>
10985         * dired.c (file_name_completion): Close directory on error
10986         just as in directory_files_internal.
10988 2002-12-19  David Kastrup  <David.Kastrup@t-online.de>
10990         * window.c (Fset_window_configuration): Set old_point to correct
10991         value when new_current_buffer == current_buffer.
10993 2002-12-17  Ben Key  <bkey1@tampabay.rr.com>
10995         Revisited my earlier fix for the following entry in etc/PROBLEMS:
10996         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
10997         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
10999         These changes were in part based upon suggestions made by Peter
11000         'Luna' Runestig [peter@runestig.com].
11002         * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
11003         g_b_init_get_token_information, g_b_init_lookup_account_sid,
11004         g_b_init_get_sid_identifier_authority ): Add several static
11005         global variables.
11007         * w32.c (globals_of_w32): New function.  Used to initialize those
11008         global variables that must always be initialized on startup even
11009         when the global variable initialized is non zero.  Its primary
11010         purpose at this time is to set the global variables
11011         g_b_init_is_windows_9x, g_b_init_open_process_token,
11012         g_b_init_get_token_information, g_b_init_lookup_account_sid, and
11013         g_b_init_get_sid_identifier_authority to 0 on startup.
11014         Called from main.
11016         * w32.c (is_windows_9x): Perform initialization only if
11017         g_b_init_is_windows_9x is equal to 0.  On initialization set
11018         g_b_init_is_windows_9x equal to 1.
11020         * w32.c (open_process_token): Perform initialization only if
11021         g_b_init_open_process_token is equal to 0.  On initialization set
11022         g_b_init_open_process_token equal to 1.
11024         * w32.c (get_token_information): Perform initialization only if
11025         g_b_init_get_token_information is equal to 0.  On initialization
11026         set g_b_init_get_token_information equal to 1.
11028         * w32.c (lookup_account_sid): Perform initialization only if
11029         g_b_init_lookup_account_sid is equal to 0.  On initialization
11030         set g_b_init_lookup_account_sid equal to 1.
11032         * w32.c (get_sid_identifier_authority): Perform initialization
11033         only if g_b_init_get_sid_identifier_authority is equal to 0.
11034         On initialization set g_b_init_get_sid_identifier_authority equal to 1.
11036         * w32fns.c (globals_of_w32fns): New function.  Used to initialize
11037         those global variables that must always be initialized on startup
11038         even when the global variable initialized is non zero.
11039         Its primary purpose at this time is to initialize the global variable
11040         track_mouse_event_fn.
11042         * w32fns.c (w32_wnd_proc): Remove initialization of
11043         track_mouse_event_fn from the handler for the WM_SETFOCUS message.
11045         * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
11047         * w32menu.c (globals_of_w32menu): New function.  Used to
11048         initialize those global variables that must always be initialized
11049         on startup even when the global variable initialized is non zero.
11050         Its primary purpose at this time is to initialize the global
11051         variables get_menu_item_info and set_menu_item_info.
11053         * w32menu.c (initialize_frame_menubar): Remove initialization of
11054         get_menu_item_info and set_menu_item_info.
11056         * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
11058         * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
11059         Declare them.
11061         * emacs.c (main): Call globals_of_w32 prior to calling
11062         init_environment if WINDOWSNT is defined.  Call globals_of_w32fns
11063         and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
11064         is defined.
11066         * w32term.c (x_update_window_begin): Fix Windows API error
11067         detected by BoundsChecker.  Test to determine if
11068         w32_system_caret_hwnd is NULL prior to attempting to use
11069         SendMessage to send the WM_EMACS_HIDE_CARET message to it.
11071         * w32term.c (x_update_window_end): Fix Windows API error
11072         detected by BoundsChecker.  Test to determine if
11073         w32_system_caret_hwnd is NULL prior to attempting to use
11074         SendMessage to send the WM_EMACS_SHOW_CARET message to it.
11076 2002-12-17  Kenichi Handa  <handa@m17n.org>
11078         * coding.c (coding_system_require_warning): New variable.
11079         (syms_of_coding): DEFVAR it.
11081         * coding.h (coding_system_require_warning): Extern it.
11083         * fileio.c (choose_write_coding_system): Even if
11084         Vcoding_system_for_write is non-nil, if
11085         coding_system_require_warning is nonzero, call
11086         Vselect_safe_coding_system_function.
11088 2002-12-17  Markus Rost  <rost@math.ohio-state.edu>
11090         * Makefile.in (lisp, shortlisp): Add cus-face and timer.
11091         (lisp): Add font-core.
11093 2002-12-13  Stefan Monnier  <monnier@cs.yale.edu>
11095         * textprop.c (text_read_only): New arg `propval'.
11096         (get_char_property_and_overlay): Remove unused var `next_overlay'.
11097         (verify_interval_modification): Use text_read_only's new arg.
11099 2002-12-13  Kenichi Handa  <handa@m17n.org>
11101         * coding.c (Funencodable_char_position): Set pend correctly.
11103 2002-12-12  Jason Rumney  <jasonr@gnu.org>
11105         * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
11106         (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
11107         Be more careful about when help_events are generated.
11109 2002-12-12  Steven Tamm  <steventamm@mac.com>
11111         * macterm.c (mac_check_for_quit_char): Correctly set the
11112         modifiers of the event to 0.
11113         * mac.c (sys_select): Duplicate rfds before calling select to
11114         ensure that rfds survive the while loop.
11116 2002-12-11  Kim F. Storm  <storm@cua.dk>
11118         * xdisp.c (try_window_id): Don't call set_cursor_from_row if
11119         row_containing_pos returned NULL.
11121 2002-12-10  Steven Tamm  <steventamm@mac.com>
11123         * mac.c (sys_read): Fix sys_read to not call select if IO is
11124         non-blocking.
11125         (sys_select): Fix sys_select to not use a timeout larger than
11126         the one given.
11128 2002-12-10  Juanma Barranquero  <lektu@terra.es>
11130         * editfns.c (Fformat): Use alloca, not _alloca.
11132 2002-12-09  Richard M. Stallman  <rms@gnu.org>
11134         * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
11135         as the last thing.
11137 2002-12-09  Dave Love  <fx@gnu.org>
11139         * s/sol2-8.h: Removed.  (Not necessary.)
11141 2002-12-09  Matthew Swift  <swift@alum.mit.edu>
11143         * editfns.c (Fformat): Handle precision in string conversion
11144         specifiers like libc functions do (ie, print at most that many
11145         characters).
11147 2002-12-08  Richard M. Stallman  <rms@gnu.org>
11149         * xdisp.c (row_containing_pos): Check more carefully
11150         whether charpos is really in the row before returning it.
11152 2002-12-07  Steven Tamm  <steventamm@mac.com>
11154         * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
11156         * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
11157         each stack frame.  This may change as it could be time consuming.
11159         * macterm.c (mac_check_for_quit_char, quit_char_comp)
11160         (init_quit_char_handler, mac_determine_quit_char_modifiers)
11161         (mac_initialize): Add code to check for pressing of quit_char
11162         in the OS event queue.
11164         * mac.c (sys_select): Call mac_check_for_quit_char every second
11165         while blocking on select.
11167         * mac.c (sys_read): Use sys_select to test for input first
11168         before calling read, to allow C-g to break.
11170 2002-12-07  Richard M. Stallman  <rms@gnu.org>
11172         * minibuf.c (Fcompleting_read): Doc fix.
11174         * lread.c (syms_of_lread) <load-history>: Doc fix.
11176         * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
11178         * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
11179         autoload.
11181         * data.c (Fdefalias): Record in load-history redefining an autoload.
11183         * alloca.c: Undo ifdef change accidentally made on 12-04.
11185 2002-12-06  Francesco Potorti`  <pot@gnu.org>
11187         * xfns.c (png_load): Avoid double gamma correction for PNG images.
11189 2002-12-04  Richard M. Stallman  <rms@gnu.org>
11191         * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
11193         * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
11195         * alloca.c: Don't use #error.
11197 2002-12-03  Dave Love  <fx@gnu.org>
11199         * buffer.c (Qucs_set_table_for_input): New.
11200         (Fget_buffer_create): Use it.
11201         (Qset_buffer_major_mode_hook): Deleted.
11202         (Fset_buffer_major_mode): Revert previous change.
11203         (init_buffer_once): Intern ucs-set-table-for-input.
11204         (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
11205         Add &Qucs_set_table_for_input.
11207 2002-12-03  Andreas Schwab  <schwab@suse.de>
11209         * callint.c (Fcall_interactively): Use next_event only if less
11210         than key_count.
11212 2002-12-02  Andrew Choi  <akochoi@shaw.ca>
11214         * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
11215         names to 255 characters.
11217         * macterm.c (XTread_socket): If all frames have been collapsed,
11218         expand the first one before handling drag-and-drop events.
11220         * s/darwin.h (GETPGRP_NO_ARG): Delete.  Replaced by GETPGRP_VOID,
11221         which is detected by autoconf.
11223 2002-12-01  Steven Tamm  <steventamm@mac.com>
11225         * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
11226         offset in two hints table to allow prebinding to be redone and
11227         allow the executable to be stripped.
11229 2002-11-29  Dave Love  <fx@gnu.org>
11231         * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
11232         already provided.
11234 2002-11-29  Richard M. Stallman  <rms@gnu.org>
11236         * xdisp.c (start_display): Check more intelligently for
11237         whether the line is continued.
11238         (move_it_vertically_backward): Clear it->continuation_lines_width.
11240 2002-11-28  Dave Love  <fx@gnu.org>
11242         * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
11243         * s/alliant.h, s/altos.h: Deleted.  (Unused/empty.)
11245 2002-11-27  Steven Tamm  <steventamm@mac.com>
11247         * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
11248         more descriptive error output from lread.c:Fload upon most require
11249         cycles during boostrapping.
11251 2002-11-27  Jason Rumney  <jasonr@gnu.org>
11253         * fileio.c (Finsert_file_contents): Give a more appropriate error
11254         for files bigger than 2Gb when off_t is 32 bit.
11256         * dired.c (Ffile_attributes): Don't return negative file sizes for
11257         files bigger than 2Gb when off_t is 32 bit.
11259 2002-11-27  Dave Love  <fx@gnu.org>
11261         * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11263         * systty.h: Don't conditionally define GETPGRP_NO_ARG.
11264         Test GETPGRP_VOID instead.
11265         [BSD_TERMIOS]: Remove definitions (never used).
11267         * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
11268         Don't define.
11269         (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
11271         * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
11273 2002-11-25  Jason Rumney  <jasonr@gnu.org>
11275         * w32.c (sys_write): Avoid non-blocking mode, which is not fully
11276         supported.
11278 2002-11-25  Dave Love  <fx@gnu.org>
11280         * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
11282         * Makefile.in (TEMACS_LDFLAGS): Update last change.
11284 2002-11-25  Andreas Schwab  <schwab@suse.de>
11286         * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
11288 2002-11-24  Steven Tamm  <steventamm@mac.com>
11290         * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
11291         determine the size of pointers alloced in unexed space instead
11292         of using possibly invalid emacs_zone pointers.  This fixes the
11293         binary incompatibility problems caused by updates to libSystem.B.
11295 2002-11-24  Richard M. Stallman  <rms@gnu.org>
11297         * search.c (Fstring_match): Doc fix.
11299         * callint.c (Fcall_interactively): If a command fails because
11300         `*' detects a read-only buffer, but RECORD_FLAG is set,
11301         record it anyway if the args don't actually do tty input.
11303 2002-11-22  Dave Love  <fx@gnu.org>
11305         * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
11307         * keyboard.c (interrupt_signal): Provide forward declaration.
11308         (kbd_buffer_store_event): Don't declare interrupt_signal.
11310         * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
11312 2002-11-21  Richard M. Stallman  <rms@gnu.org>
11314         * eval.c (interactive_p): Skip any number of bytecode
11315         and special form frames, in any order.
11317 2002-11-20  Jason Rumney  <jasonr@gnu.org>
11319         * w32fns.c (convert_mono_to_color_image): New function.
11320         (xbm_load, xbm_load_image): Use it when foreground or background
11321         is explicitly set.
11323 2002-11-19  Dave Love  <fx@gnu.org>
11325         * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
11327 2002-11-18  Jason Rumney  <jasonr@gnu.org>
11329         * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
11330         (XPutPixel): Swap blue and red.
11331         (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
11332         (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
11333         (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
11334         (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
11336 2002-11-18  Dave Love  <fx@gnu.org>
11338         * m/orion105.h (HAVE_ALLOCA): Don't define.
11340         * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
11342         * m/intel386.h: Don't include alloca.h or define alloca.
11344         * m/ia64.h: Don't include alloca.h, stdlib.h.  Don't declare
11345         malloc, realloc, calloc.
11347         * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
11348         (bcmp): Don't define.
11350         * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
11352         * m/amdahl.h: Don't define LIB_STANDARD.
11354         * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
11356         * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
11358         * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
11359         Don't include alloca.h.
11361         * s/aix3-2.h (HAVE_FSYNC): Don't define.
11363         * regex.c (_GNU_SOURCE): Don't define.
11365         * process.c (_GNU_SOURCE): Don't define.
11367         * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
11369 2002-11-18  Markus Rost  <rost@math.ohio-state.edu>
11371         * s/sol2-8.h: Include sol2-6.h.
11373 2002-11-18  Miles Bader  <miles@gnu.org>
11375         * dispextern.h (struct face): Add `overstrike' field.
11376         * xterm.c (x_draw_glyph_string_foreground)
11377         (x_draw_composite_glyph_string_foreground): Implement overstriking.
11378         * xfaces.c (load_face_font): Set `face->overstrike' based on
11379         result from choose_face_font.
11380         (best_matching_font, choose_face_font): Add `needs_overstrike'
11381         argument, and use it to return whether overstriking is desirable
11382         for this face/font combo.
11383         (set_font_frame_param: Pass new argument to choose_face_font.
11385 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
11387         This change is my fix for the following entry in etc/PROBLEMS:
11388         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
11389         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
11391         * w32.c: Added wrapper functions around the win32 API functions
11392         OpenProcessToken, GetTokenInformation, LookupAccountSid, and
11393         GetSidIdentifierAuthority.  These wrapper functions serve two
11394         purposes:
11395         1.  They ensure that the wrapped function can never be called
11396         when Emacs is running on an operating system on which they are
11397         not supported (Microsoft Windows 95 / 98 / ME).
11398         2.  They call the wrapped functions via function pointers rather
11399         than calling them directly.  This avoids taking advantage of the
11400         undocumented fact that although these functions are not supported
11401         in the 9x branch of Microsoft Windows, the functions do exist in
11402         the version of advapi32.dll that is found in the 9x branch of
11403         Microsoft Windows.
11405         * w32.c (init_user_info): Replace the calls to the win32 API
11406         functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
11407         and GetSidIdentifierAuthority with calls to the newly added
11408         wrapper functions.
11410         * w32.h: Added extern declarations for the following functions:
11411         syms_of_w32term, syms_of_w32fns, syms_of_w32select,
11412         syms_of_w32menu, and void syms_of_fontset.
11414         * w32fns.c (w32_wnd_proc): Add code to reinitialize the
11415         function pointer track_mouse_event_fn in the handler for the
11416         WM_SETFOCUS message.
11418         * w32menu.c (initialize_frame_menubar): Add code to
11419         reinitialize the function pointers set_menu_item_info and
11420         get_menu_item_info.
11422 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
11424         * sound.c: Added a partial implementation of play-sound-internal
11425         for Microsoft Windows.  Added various #ifdef / #else / #endif
11426         code blocks to separate the code that will compile under
11427         Microsoft Windows from the code that is specific to Gnu/Linux.
11428         Moved several blocks of code around to make this separation of code
11429         into Windows compatible and Gnu/Linux compatible code blocks easier.
11431         * makefile.w32-in: Include sound.c and link with WinMM.lib.
11433         * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
11434         added support for play-sound-internal under Windows would be
11435         included in the build of Emacs.
11437 2002-11-16  Jason Rumney  <jasonr@gnu.org>
11439         * w32fns.c (w32_load_system_font): Don't disable Cleartype.
11441         * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
11443 2002-11-15  Stefan Monnier  <monnier@cs.yale.edu>
11445         * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
11446         (adjust_point_for_property): Move out of display and invisible even if
11447         we were already inside before (in case a property was added while
11448         we weren't looking).  Be more careful when handling invisible props.
11449         Skip invisible text as if it really wasn't there at all.
11451 2002-11-15  Jason Rumney  <jasonr@gnu.org>
11453         * w32term.c (x_draw_image_foreground)
11454         (w32_draw_image_foreground_1): Use standard copy and invert
11455         operations to draw images.
11457         * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
11458         depth of 1.
11459         (xbm_read_bitmap_data): Invert bits as xbm is read in.
11460         (XPutPixel): Don't invert bits here.
11462 2002-11-15  Jason Rumney  <jasonr@gnu.org>
11464         * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
11465         (w32_draw_image_foreground_1): Handle image masks.
11466         (x_draw_image_glyph_string): Don't BitBlt transparently.
11468         * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
11469         (x_from_xcolors): Adjust RGB values for W32.
11470         (image_background, image_background_transparent)
11471         (postprocess_image, x_to_xcolors, x_disable_image)
11472         (x_build_heuristic_mask): Adapt for W32 and enable.
11473         (x_create_x_image_and_pixmap): Mark images with palettes as such.
11474         (xbm_load): Remove unused variable.
11476 2002-11-14  Richard M. Stallman  <rms@gnu.org>
11478         * buffer.c (syms_of_buffer): Doc fix.
11480 2002-11-14  Dave Love  <fx@gnu.org>
11482         * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
11484         * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
11485         * xmenu.c (unuse_menu_items, digest_single_submenu):
11486         * xfns.c (x_put_x_image):
11487         * xdisp.c (message2_nolog, set_message):
11488         * undo.c (record_point):
11489         * terminfo.c (tparam):
11490         * syntax.c (scan_sexps_forward):
11491         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
11492         * composite.c (update_compositions):
11493         * cm.c (calccost, cmgoto):
11494         * charset.c (c_string_width): Declare all args (per C99).
11496         * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
11498         * lisp.h (get_specified_cursor_type, get_window_cursor_type):
11499         Don't declare.
11501         * emacs.c (main) [!VMS]: Avoid third arg.
11503         * fns.c (Fcopy_sequence): Doc fix.
11504         (Fmap_char_table): Cast `call2'.
11506 2002-11-14  Francesco Potorti`  <pot@gnu.org>
11508         * s/sol2-8.h: New file.
11510 2002-11-14  Kim F. Storm  <storm@cua.dk>
11512         * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
11513         dependency on `risky-local-variable' and the :propertize form.
11515 2002-11-12  Stefan Monnier  <monnier@cs.yale.edu>
11517         * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
11519         * syntax.c (scan_sexps_forward): Undo last patch.
11520         Use a more obvious fix: check eob before updating the syntax table.
11522 2002-11-09  Stefan Monnier  <monnier@cs.yale.edu>
11524         * syntax.c (scan_sexps_forward): Update syntax table before reading
11525         a char rather than after so we don't update the table past eob.
11527 2002-11-09  Dave Love  <fx@gnu.org>
11529         * buffer.c (Fset_buffer_major_mode): Fix last change.
11531         * regex.c (regexec): Fix pmatch declaration.
11533         * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
11535         * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
11536         to self-inserting characters.
11537         (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
11539         * coding.c (Vtranslation_table_for_input): New.
11540         (syms_of_coding): DEFVAR it.
11542 2002-11-08  Juanma Barranquero  <lektu@terra.es>
11544         * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
11545         window.
11547 2002-11-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
11549         * process.c (Fformat_network_address): Remove unused locals p,
11550         cp, and i.
11552 2002-11-06  Dave Love  <fx@gnu.org>
11554         * buffer.c (Qset_buffer_major_mode_hook): New.
11555         (Fset_buffer_major_mode): Use it.
11557 2002-11-06  Richard M. Stallman  <rms@gnu.org>
11559         * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
11560         and stop_polling.
11562         * process.c (wait_reading_process_input):
11563         Test POLLING_PROBLEM_IN_SELECT, not hpux.
11564         Avoid initialization for auto Lisp_Object var.
11566         * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
11568         * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
11570 2002-11-05  Richard M. Stallman  <rms@gnu.org>
11572         * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
11574         * callint.c (Fcall_interactively): New local filter_specs.
11575         (Fcall_interactively): Check for progn as well as let.
11576         Add a gcpro.
11577         (Qprogn): New variable.
11578         (syms_of_callint): Staticpro and init Qprogn.
11580 2002-11-04  John Paul Wallington  <jpw@shootybangbang.com>
11582         * lread.c (Feval_buffer): Doc fix.
11584 2002-11-04  Dave Love  <fx@gnu.org>
11586         * keyboard.c (read_char): Always translate iff
11587         Vkeyboard_translate_table is a char table and c is valid.
11589         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
11590         and fix C types.
11592 2002-11-03  Stefan Monnier  <monnier@cs.yale.edu>
11594         * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
11596         * editfns.c (get_pos_property): Don't hardcode Qfield.
11598         * keyboard.c (adjust_point_for_property): Handle `display' prop on
11599         overlays.  Also handle `invisible' prop.
11601 2002-11-02  Stefan Monnier  <monnier@cs.yale.edu>
11603         * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
11604         (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
11606 2002-11-01  Andreas Schwab  <schwab@suse.de>
11608         * editfns.c (Fmessage): Revert last change to properly handle %%.
11610 2002-11-01  Stefan Monnier  <monnier@cs.yale.edu>
11612         * xmenu.c (unuse_menu_items): New fun.
11613         (menu_items_inuse): New var.
11614         (syms_of_xmenu): Initialize it.
11615         (init_menu_items): Use it to detect re-entrance.
11616         (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
11617         (Fx_popup_menu): Remove spurious XSETFRAME.
11619         * editfns.c (find_field): Make an exception for nil fields.
11621 2002-11-01  Dave Love  <fx@gnu.org>
11623         * m/gec63.h: Deleted.
11625 2002-10-31  Dave Love  <fx@gnu.org>
11627         * xterm.c (XTread_socket): Fix last change.
11628         (xaw_scroll_callback): Cast call_data to long to avoid warning.
11630 2002-10-31  Stefan Monnier  <monnier@cs.yale.edu>
11632         * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
11634 2002-10-30  Stefan Monnier  <monnier@cs.yale.edu>
11636         * editfns.c (overlays_around, get_pos_property): New funs.
11637         (find_field): Use them.
11638         Also be careful not to modify POS before its last use.
11639         (Fmessage): Don't Fformat if there's nothing to format.
11641 2002-10-30  Dave Love  <fx@gnu.org>
11643         * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
11644         [HAVE_PTY_H]; Include pty.h.
11646         * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
11648         * xterm.c (Qeql): Declare.
11649         (Vx_keysym_table): New.
11650         (syms_of_xterm): Initialize it.
11651         (XTread_socket): Use it.  Deal with ASCII keysyms.
11652         (XSetIMValues) [HAVE_X11R6]: Prototype.
11654         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
11655         (lispy_kana_keys): Comment out.
11656         (make_lispy_event) [XK_kana_A]: Comment out.
11657         (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
11658         Fix sprintf call.
11660         * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
11661         regexp.h change).
11662         (TERMINFO, LIBS_TERMCAP): Define.
11664         * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
11665         (bcmp): Define conditional on HAVE_BCMP.
11666         (NO_SIOCTL_H): Don't define.
11667         (TIOCSIGSEND): Don't make conditional on IRIX6.
11669         * s/sol2-5.h: Don't include strings.h.
11670         (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
11672         * s/irix6-0.h (IRIX6): Don't define.
11673         (bcopy, bcmp, bzero): Don't undef.
11675         * s/irix6-5.h: Don't include strings.h.
11676         (IRIX6): Don't define.
11677         (bcopy, bcmp, bzero): Don't undef.
11679         * syntax.c (Fforward_comment): Doc fix.
11681 2002-10-29  Kim F. Storm  <storm@cua.dk>
11683         * process.c (Fsignal_process): Allow PROCESS to be specified by
11684         name in addition to pid (as integer or string).
11686 2002-10-28  Harald Maier  <Harald.Maier.BW@t-online.de>  (tiny change)
11688         * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
11689         environments.
11691 2002-10-27  Kim F. Storm  <storm@cua.dk>
11693         * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11695         * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
11697         * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
11699         * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
11701 2002-10-26  Richard M. Stallman  <rms@gnu.org>
11703         * editfns.c (Fformat): Detect invalid format letters for floats.
11705 2002-10-25  Kenichi Handa  <handa@m17n.org>
11707         * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
11708         (x_set_title): Likewise.
11710 2002-10-25  Juanma Barranquero  <lektu@terra.es>
11712         * macgui.h:
11713         * w32gui.h: Remove definition of XColor.
11715         * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
11717 2002-10-24  Kim F. Storm  <storm@cua.dk>
11719         * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
11720         Callers changed (supply dummy arg).
11722         * lisp.h (get_window_cursor_type): Update prototype.
11724         * w32term.c (x_display_and_set_cursor): Get active_cursor from
11725         get_window_cursor_type to track system caret.
11727 2002-10-24  Kim F. Storm  <storm@cua.dk>
11729         * process.c (Fformat_network_address): New function.
11730         (syms_of_process): Defsubr it.
11731         (list_processes_1): Use it to format :local/:remote address if
11732         service/host is not set; before Emacs would crash in that case.
11733         (Fmake_network_process): Don't use Ffind_operation_coding_system
11734         to setup coding system if host or service is not set.
11736 2002-10-23  Juanma Barranquero  <lektu@terra.es>
11738         Patch suggested by Jay Finger <jay_finger@hotmail.com>.
11740         * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
11741         COLORREF.
11743         * macgui.h:
11744         * w32gui.h: Add definition of XColor.
11746         * macfns.c:
11747         * w32fns.c:
11748         * xfaces.c: Remove definition of XColor.
11750 2002-10-22  Stefan Monnier  <monnier@cs.yale.edu>
11752         * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
11754         * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
11755         Only ignore truly dedicated windows.  For UNSHOW_BUFFER, delete the
11756         window if it is dedicated.
11757         (Fshrink_window): Add preserve_before as was done for enlarge_window.
11758         (Vspecial_display_function): Update docstring.
11760         * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
11761         (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
11762         (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
11764 2002-10-21  Stefan Monnier  <monnier@cs.yale.edu>
11766         * casefiddle.c (casify_region): Don't treat a prefix char as part
11767         of a word when at the beginning.
11769 2002-10-17  Juanma Barranquero  <lektu@terra.es>
11771         * lread.c (syms_of_lread): Fix typos.
11773 2002-10-17  Dave Love  <fx@gnu.org>
11775         * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
11777 2002-10-16  Richard M. Stallman  <rms@gnu.org>
11779         * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
11781 2002-10-14  Juanma Barranquero  <lektu@terra.es>
11783         * w16select.c (syms_of_win16select): Fix docstring for
11784         `selection-coding-system'.
11786         * w32select.c (syms_of_w32select): Likewise.
11788 2002-10-14  Stefan Monnier  <monnier@cs.yale.edu>
11790         * syntax.c (scan_lists): Don't get fooled by a symbol ending with
11791         a backslash-quoted char.
11792         (scan_lists, scan_sexps_forward): Pacify the compiler.
11794 2002-10-13  Richard M. Stallman  <rms@gnu.org>
11796         * window.c (window_scroll): Set immediate_quit.
11798         * print.c (print): When backquote form is the car of a list,
11799         output in old style.  Use old_backquote_output to output all
11800         comma forms inside it in old style too.
11802         * buffer.h (struct buffer): Move `undo_list' down below `name'.
11804 2002-10-11  Markus Rost  <rost@math.ohio-state.edu>
11806         * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
11807         batch mode).
11809         * lread.c (Fload): Doc fix (load-suffixes).
11811 2002-10-10  Steven Tamm  <steventamm@mac.com>
11813         * macterm.c (syms_of_macterm, mac_get_mouse_btn):
11814         Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
11815         Also switch the default to Qnil from Qt.
11817 2002-10-08  Kenichi Handa  <handa@m17n.org>
11819         * coding.c (code_convert_region): When we need more GAP for
11820         conversion, pay attention to the case that coding->produced is not
11821         greater than coding->consumed.
11823 2002-10-07  Richard M. Stallman  <rms@gnu.org>
11825         * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
11827 2002-10-06  Andrew Choi  <akochoi@shaw.ca>
11829         * macmenu.c (mac_menu_show): Add j to count menu items; match
11830         menu_item_selection to it to find selected item.
11832 2002-10-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11834         * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
11835         cases.  The correct fix is to pass ReparentNotify to Xt.
11836         The shell widget interprets ConfigureNotify differently depending
11837         on if it has been reparented or not.
11839 2002-10-05  Markus Rost  <rost@math.ohio-state.edu>
11841         * editfns.c (Fformat_time_string): Doc fix.
11843 2002-10-05  John Paul Wallington  <jpw@shootybangbang.com>
11845         * fns.c (Flength): Doc fix.
11847 2002-10-04  Stefan Monnier  <monnier@cs.yale.edu>
11849         * keyboard.c (keyremap): New struct.
11850         (read_key_sequence): Use it: globally replace keytran_foo with
11851         keytran.foo and fkey_foo with fkey.foo.  Rename temp vars
11852         keytran_next and fkey_next to just `next'.
11854 2002-10-04  Steven Tamm  <steventamm@mac.com>
11856         * macterm.c (keycode_to_xkeysym_table): Change return to be
11857         treated like an X keysym.
11859 2002-10-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
11861         * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
11862         and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
11863         This is to also handle x/y changes that occur because of a resize.
11865 2002-10-02  John Paul Wallington  <jpw@shootybangbang.com>
11867         * frame.c (Vdelete_frame_functions): New variable.
11868         (syms_of_frame): Initialize and defvar it.
11869         (Fdelete_frame): Use it instead of delete-frame-hook.  Don't run
11870         it when frame's `tooltip' parameter is non-nil.
11872         * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
11874         * w32fns.c (x_create_tip_frame): Likewise.
11876         * macfns.c (x_create_tip_frame): Likewise.
11878 2002-09-30  Kenichi Handa  <handa@m17n.org>
11880         * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
11881         -1 before calling ccl_driver.
11883         * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
11884         Only when it is non-nil, handle composition sequence.
11885         (setup_coding_system) <0>: Don't force composition handling.
11887         * Makefile.in (lisp, shortlisp): Add utf-16.elc
11889 2002-09-29  Richard M. Stallman  <rms@gnu.org>
11891         * search.c (Freplace_match): Adjust match data for the substitution
11892         just made in the buffer.
11894         * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
11895         (redisplay_internal): Use them.  Do RESUME_POLLING at end of function.
11897 2002-09-27  Richard M. Stallman  <rms@gnu.org>
11899         * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
11900         (read_char): Use them.  Do all exits thru the end of the function.
11902 2002-09-27  Kenichi Handa  <handa@etl.go.jp>
11904         * xfaces.c (try_font_list): Pay attention to the case that FAMILY
11905         is nil.
11907 2002-09-26  Richard M. Stallman  <rms@gnu.org>
11909         * regex.h (__restrict_arr): Don't define if already defined.
11911         * coding.c (run_pre_post_conversion_on_str):
11912         Save and restore Vdeactivate_mark.
11914 2002-09-26  John Paul Wallington  <jpw@shootybangbang.com>
11916         * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
11918 2002-09-26  Kenichi Handa  <handa@etl.go.jp>
11920         * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY.  If it is
11921         nonzero, try face's family at first.  Otherwise try FAMILY at first.
11922         (choose_face_font): If C is a single byte char or latin-1, call
11923         try_font_list with PREFER_FACE_FAMILY 1.
11925 2002-09-21  Richard M. Stallman  <rms@gnu.org>
11927         * window.c (select_window_1): Don't select frame.
11928         Set frame's selected window only when frame itself is selected.
11929         (Fselect_window): Doc fix.
11931 2002-09-18  Kim F. Storm  <storm@cua.dk>
11933         * process.c (make-network-process): Doc fix (there is no
11934         network-server-log-function hook).
11936 2002-09-18  Richard M. Stallman  <rms@gnu.org>
11938         * print.c (print): Clear out the unused parts of Vprint_number_table.
11939         (syms_of_print): Doc fix for `print-number-table'.
11941         * unexelf.c (unexec): Undo previous change.
11943 2002-09-17  Andreas Schwab  <schwab@suse.de>
11945         * m/alpha.h [LINUX]: Don't define DATA_START.
11947 2002-09-16  Dave Love  <fx@gnu.org>
11949         * unexelf.c (unexec): Deal with .got, reinstating change from
11950         25-08-1999.
11952 2002-09-13  Richard M. Stallman  <rms@gnu.org>
11954         * s/sol2-6.h (UNEXEC): Comment out definition.
11956         * unexsol.c (unexec): Don't downcase first letter of error msg.
11958         * xfaces.c (Fcolor_supported_p): Just one arg is required.
11960 2002-09-12  Markus Rost  <rost@math.ohio-state.edu>
11962         * unexsol.c: Include buffer.h, charset.h, coding.h.
11964 2002-09-11  Richard M. Stallman  <rms@gnu.org>
11966         * unexsol.c: Don't use report_file_error; do it by hand
11967         using dlerror.
11969         * process.c (wait_reading_process_input, both versions):
11970         Before calling turn_on_atimers, call stop_polling.
11972         * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
11974         * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
11975         we go to too_near_end, call clear_glyph_matrix.
11976         (redisplay_window): After make_cursor_line_fully_visible,
11977         call clear_glyph_matrix and bypass `goto done'.
11979         * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
11980         and we have non-toolkit scroll bars, return nil for scroll-bar-width.
11982 2002-09-10  Richard M. Stallman  <rms@gnu.org>
11984         * fileio.c (Fdo_auto_save): Catch error making directory.
11985         Only call push_message if we need to.
11986         At the same time, make an unwind-protect to pop it.
11987         Rename local message_p to old_message_p.
11988         (do_auto_save_make_dir, do_auto_save_eh): New functions.
11989         (do_auto_save_unwind): Don't call pop_message.
11991         * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
11993         * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
11995         * alloc.c (Fgarbage_collect): Use pop_message_unwind.
11997         * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
11999 2002-09-10  Stefan Monnier  <monnier@cs.yale.edu>
12001         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
12002         (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
12003         (re_match_2_internal): Be more careful with infinite loops.
12005 2002-09-10  Kim F. Storm  <storm@cua.dk>
12007         * macros.c (end_kbd_macro): New function.
12008         (Fend_kbd_macro): Use it.
12010         * macros.h (end_kbd_macro): Declare extern.
12012         * keyboard.c (Fdiscard_input): If defining keyboard macro,
12013         end and save it instead of discarding it.
12015 2002-09-09  Markus Rost  <rost@math.ohio-state.edu>
12017         * s/sol2-6.h: Fix typo.  Add comment.
12019 2002-09-09  Richard M. Stallman  <rms@gnu.org>
12021         * regex.c (regnum_t): Use signed int, not unsigned int.
12023         * s/sol2-6.h: New file.
12025         * s/sol2-5.h (UNEXEC): Definition deleted.
12027 2002-09-08  Kim F. Storm  <storm@cua.dk>
12029         * macros.c (executing_macro_index): Change type to EMACS_INT.
12030         (syms_of_macros): DEFVAR_INT it  (needed by kmacro).
12032         * macros.h (executing_macro_index): Change type to EMACS_INT.
12034 2002-09-06  Richard M. Stallman  <rms@gnu.org>
12036         * casetab.c (set_case_table): Make canon table point to eqv table.
12038 2002-09-06  Juanma Barranquero  <lektu@terra.es>
12040         * coding.c (syms_of_coding): Fix spacing.
12042         * composite.c (Fcompose_region_internal)
12043         (Fcompose_string_internal): Likewise.
12045         * data.c (Flsh): Likewise.
12047         * fontset.c (Fset_fontset_font): Likewise.
12049         * macfns.c (Fx_server_max_request_size): Likewise.
12051         * w16select.c (syms_of_win16select): Likewise.
12053         * w32select.c (syms_of_w32select): Likewise.
12055         * xselect.c (syms_of_xselect): Likewise.
12057 2002-09-05  Richard M. Stallman  <rms@gnu.org>
12059         * regex.c (set_image_of_range_1): In no-TRANSLATE case,
12060         call EXTEND_RANGE_TABLE and return a proper value.
12061         (set_image_of_range): Don't call set_image_of_range_1
12062         if no TRANSLATE or if range includes all of Latin-1.
12063         Only call it for the Latin-1 part of the range.
12064         For other cases, make two separate ranges,
12065         one for the original specified characters and one for
12066         their case-conversions.
12068 2002-09-04  Richard M. Stallman  <rms@gnu.org>
12070         * s/sol2-5.h (UNEXEC): Use unexsol.o.
12072         * window.c (displayed_window_lines): Correct for one-off bug
12073         in HEIGHT on non-window displays.
12075         * regex.c (set_image_of_range_1): New function.
12076         (set_image_of_range): Use set_image_of_range_1 for Latin-1.
12077         Return a value to indicate running out of memory.
12078         (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
12079         (extend_range_table_work_area): New subroutine.
12080         (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
12081         Different calling conventions, and used from set_image_of_range{,_1}.
12082         (IMMEDIATE_QUIT_CHECK): Definitions moved.
12084 2002-09-04  Juanma Barranquero  <lektu@terra.es>
12086         * makefile.w32-in: All dependencies updated.
12088 2002-09-01  Richard M. Stallman  <rms@gnu.org>
12090         * unexsol.c: New file.
12092         * xfns.c (Qbox): Declare external, don't define.
12094         * xdisp.c (redisplay_window) <force-start case>:
12095         If point is on semi-visible last line, reposition
12096         it at previous line.
12098         * alloc.c (display_malloc_warning): Use display-warning.
12099         (malloc_warning_1): Function deleted.
12101         * alloc.c [ALLOC_DEBUG]: #undef INLINE.
12103         * lread.c (read1): Handle #! by skipping the line.
12105 2002-08-31  Richard M. Stallman  <rms@gnu.org>
12107         * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
12108         Don't include LDFLAGS.
12109         (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
12111 2002-08-31  Eli Zaretskii  <eliz@is.elta.co.il>
12113         * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
12114         member of x_display_info unless we compile for some window system.
12116 2002-08-31  Kim F. Storm  <storm@cua.dk>
12118         * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
12119         (get_window_cursor_type): Don't use them.
12120         (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
12122 2002-08-30  Kenichi Handa  <handa@etl.go.jp>
12124         * xdisp.c (get_next_display_element): Fix previous change.
12126 2002-08-30  Andrew Choi  <akochoi@shaw.ca>
12128         * macterm.c (expose_overlaps): New function (merge code from xterm.c).
12129         (expose_window): Use it to fix the display of overlapping
12130         rows (merge code from xterm.c).
12132         * macfns.c (Qbox): Add extern declaration.
12134 2002-08-30  Juanma Barranquero  <lektu@terra.es>
12136         * w32fns.c (Qbox): Make extern.
12137         (syms_of_w32fns): Remove initialization of Qbox.
12139 2002-08-30  Rune Kleveland  <runekl@viewpoint.no>  (tiny change)
12141         * xfns.c (Fx_open_connection): Fix error message.
12143 2002-08-30  Kim F. Storm  <storm@cua.dk>
12145         The following changes consolidates the handling of the cursor
12146         type in xdisp.c, moving duplicate code and functionality from
12147         xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
12149         * frame.h (enum text_cursor_kinds): Consolidated here.
12150         Added DEFAULT_CURSOR value.
12151         (struct frame) <desired_cursor, cursor_width>
12152         <blink_off_cursor, blink_off_cursor_width>: New fields.
12153         Consolidated from output_x, output_w32 and output_mac structs.
12154         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12155         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
12157         * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
12158         Variables consolidated here.
12159         (Valternate_cursor_type, Qalternate_cursor_type): New variables.
12160         (Vcursor_in_non_selected_windows): Renamed from
12161         cursor_in_non_selected_windows and changed to Lisp_Object.
12162         (syms_of_xdisp): Define and staticpro new and moved variables.
12163         (get_specified_cursor_type): Renamed from x_specified_cursor_type;
12164         consolidated here.  Recognize Qhollow setting.
12165         (set_frame_cursor_types): New function to set frame cursor types
12166         based on the frame parameters.
12167         (get_window_cursor_type): New function to calculate new cursor
12168         type and width for the specified window.  Based on duplicated
12169         code consolidated here.
12170         Enhancements: cursor-in-non-selected-windows may be a cursor type,
12171         check buffer-local alternate-cursor-type and blink-cursor-alist
12172         before using built-in blink off methods.
12174         * dispextern.h (cursor_in_non_selected_windows): Extern removed.
12176         * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
12177         (get_specified_cursor_type, get_window_cursor_type)
12178         (set_frame_cursor_types): Added prototypes.
12180         * macfns.c (x_specified_cursor_type): Removed.
12181         (x_set_cursor_type): Use set_frame_cursor_types.
12182         (Qbar, Qbox): Removed.
12183         (syms_of_macfns): Don't intern or staticpro them.
12185         * macterm.c (x_specified_cursor_type): Remove prototype.
12186         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12187         (x_display_and_set_cursor): Use get_window_cursor_type.
12188         Remove unused local variables cursor_non_selected, active_cursor.
12189         Redraw cursor if hbar cursor width changes.
12190         (make_mac_frame): Set FRAME_DESIRED_CURSOR.
12192         * macterm.h (enum text_cursor_kinds): Removed.
12193         (struct output_mac) <current_cursor, desired_cursor, cursor_width>
12194         <blink_off_cursor, blink_off_cursor_width>: Members removed.
12195         (FRAME_DESIRED_CURSOR): Macro removed.
12197         * w32fns.c (Vblink_cursor_alist): Removed.
12198         (Qbar, Qhbar, Qbox, Qhollow): Removed.
12199         (syms_of_w32fns): Don't intern, staticpro, or define them.
12200         (x_specified_cursor_type): Removed.
12201         (x_set_cursor_type): Use set_frame_cursor_types.
12203         * w32term.c (x_specified_cursor_type): Remove prototype.
12204         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12205         (x_display_and_set_cursor): Use get_window_cursor_type.
12206         Remove unused local variables cursor_off_state.
12207         Redraw cursor if hbar cursor width changes.
12208         Changed all occurrences of w32_highlight_frame to x_highlight_frame.
12210         * w32term.h (enum text_cursor_kinds): Removed.
12211         (struct output_w32) <current_cursor, desired_cursor, cursor_width>
12212         <blink_off_cursor, blink_off_cursor_width>: Members removed.
12213         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12214         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12215         (struct w32_display_info) <x_highlight_frame>: Renamed member from
12216         w32_highlight_frame.
12218         * xfns.c (Vblink_cursor_alist): Removed.
12219         (Qbar, Qhbar, Qbox, Qhollow): Removed.
12220         (syms_of_xfns): Don't intern, staticpro, or define them.
12221         (x_specified_cursor_type): Removed.
12222         (x_set_cursor_type): Use set_frame_cursor_types.
12224         * xterm.c (x_specified_cursor_type): Remove prototype.
12225         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
12226         (x_display_and_set_cursor): Use get_window_cursor_type.
12227         Remove unused local variables cursor_off_state.
12228         Redraw cursor if hbar cursor width changes.
12230         * xterm.h (enum text_cursor_kinds): Removed.
12231         (struct output_x) <current_cursor, desired_cursor, cursor_width>
12232         <blink_off_cursor, blink_off_cursor_width>: Members removed.
12233         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
12234         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
12235         (x_specified_cursor_type): Remove prototype.
12237 2002-08-28  Richard M. Stallman  <rms@gnu.org>
12239         * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12240         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12241         (Vblink_cursor_alist): New variable.
12242         (syms_of_w32fns): Initialize and defvar it.
12243         (x_specified_cursor_type): Recognize Qbox for filled box.
12244         Exceptions are hollow boxes.
12245         (Qbox, Qhollow): New variables.
12246         (syms_of_w32fns): Initialize and staticpro them.
12248         * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12249         New macros.
12250         (struct w32_output): New fields blink_off_cursor,
12251         blink_off_cursor_width.
12252         (FRAME_CURSOR_WIDTH): New macro.
12254         * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12255         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12257         * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12258         for bar cursor.
12260         * w32term.c (expose_overlaps): New function.
12261         (expose_window): Use it to fix the display of overlapping rows.
12263 2002-08-28  Simon Josefsson  <jas@extundo.com>
12265         * xfns.c (Fx_open_connection): Improve help when X connection
12266         fails, xhost is insecure and xauth is better.
12268 2002-08-28  Juanma Barranquero  <lektu@terra.es>
12270         * makefile.w32-in: Add missing dependencies on w32term.h and
12271         composite.h.
12273         * emacs.c (USAGE1): Add missing newline.
12275 2002-08-27  Andrew Choi  <akochoi@shaw.ca>
12277         * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
12279 2002-08-27  Richard M. Stallman  <rms@gnu.org>
12281         * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
12282         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
12283         (Vblink_cursor_alist): New variable.
12284         (syms_of_xfns): Initialize and defvar it.
12285         (x_specified_cursor_type): Recognize Qbox for filled box.
12286         Exceptions are hollow boxes.
12287         (Qbox, Qhollow): New variables.
12288         (syms_of_xfns): Initialize and staticpro them.
12290         * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
12291         New macros.
12292         (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
12294         * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
12295         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
12297         * emacs.c (main): Handle --script.
12298         (USAGE1): Mention --script.
12299         (standard_args): Define sort order for --script.
12301 2002-08-27  Gerd Moellmann  <gerd.moellmann@t-online.de>
12303         * xdisp.c (redisplay_updating_p): Variable removed.
12304         (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
12305         New variables.
12306         (init_iterator): Don't free realized faces if
12307         inhibit_free_realized_faces is set.
12308         (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
12309         (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
12310         initialize Qinhibit_free_realized_faces.
12312         * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
12313         when iterator is adding glyphs to a glyph matrix.
12315 2002-08-27  Kenichi Handa  <handa@etl.go.jp>
12317         * xdisp.c (get_next_display_element): In unibyte case, don't use
12318         octal form for such eight-bit characters that can be converted to
12319         multibyte char.
12321 2002-08-26  Kim F. Storm  <storm@cua.dk>
12323         * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
12324         foreground and background colors.  From Joe Buehler.
12326 2002-08-26  Miles Bader  <miles@gnu.org>
12328         * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
12330 2002-08-25  Andrew Choi  <akochoi@shaw.ca>
12332         * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
12333         defined instead of MAC_OSX.
12335         * s/darwin.h (select): Define select to sys_select only if
12336         HAVE_CARBON is defined.
12337         (HAVE_WORKING_VFORK): #undef it.  Define vfork to fork.
12338         (DONT_REOPEN_PTY): #def it.
12340         * macterm.c (XTread_socket): Remove code to call
12341         SendEventToEventTarget for keys with command modifiers when
12342         mac_command_key_is_meta is nil.
12344 2002-08-24  Andreas Schwab  <schwab@suse.de>
12346         * eval.c (Fdefvar): Fix last change.
12348 2002-08-23  Richard M. Stallman  <rms@gnu.org>
12350         * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
12351         Record variables in load history as (defvar . VAR).
12352         (Fdefvar): Don't record in load history if no initial value.
12353         (Qdefvar): New variable.
12354         (syms_of_eval): Init and staticpro it.
12356         * lread.c (syms_of_lread): Doc fix.
12357         (build_load_history): Use Fmember to see if a definition
12358         is already in the Vload_history element.
12360         * process.c (Fstart_process): Remove /: from program name.
12362         * emacs.c (decode_env_path): Don't add /: if file name handler
12363         has a `safe-magic' property.
12365         * callproc.c (Fcall_process): Remove /: from program name.
12367 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
12369         * regex.c (PATFETCH): Remove the translating fetch.
12370         (PATFETCH_RAW): Rename to PATFETCH.
12371         (set_image_of_range): New fun.
12372         (SET_RANGE_TABLE_WORK_AREA): Use it.
12373         (regex_compile): Don't translate the pattern chars so eagerly.
12374         Only do it when inserting an `exactn' bytecode or when handling
12375         a char-range.
12376         (mutually_exclusive_p): Avoid empty statement.
12378 2002-08-22  Kim F. Storm  <storm@cua.dk>
12380         * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
12381         end up on a partially visible line; this reverts a specific part
12382         of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
12383         display error which has been reported several times now.
12384         However it introduces the problem that changes was supposed to fix.
12385         See my comments in the source if you want to debug this further.
12387 2002-08-20  Kenichi Handa  <handa@etl.go.jp>
12389         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
12391 2002-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
12393         * msdos.c (croak): Add `void' to definition.
12395         * sysdep.c (request_sigio, unrequest_sigio) [MSDOS]:
12396         Don't define them, they are defined in msdos.c.
12398         * mem-limits.h [MSDOS]: Declare etext.
12400         * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
12401         `const' since CORRECT_DIR_SEPS modifies its target.
12403 2002-08-19  Kim F. Storm  <storm@cua.dk>
12405         * keyboard.c (Fclear_this_command_keys): Add optional arg
12406         KEEP-RECORD to avoid clearing lossage when we just want to clear
12407         the current key sequence (kmacro needs this).
12409 2002-08-19  Kenichi Handa  <handa@localhost>
12411         * composite.c (run_composition_function): Call FUNC if it is fboundp.
12413         * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
12414         cons, return Qnil.
12416 2002-08-17  Richard M. Stallman  <rms@gnu.org>
12418         * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
12420         * sysdep.c [!VMS]: Include sys/files.h.
12422         * editfns.c (save_restriction_restore): Defend from unchained marker.
12424         * buffer.c (overlays_at): Handle extending vec uniformly.
12425         (overlays_in): Handle extending vec from length 0 as in overlays_at.
12427 2002-08-15  Andrew Choi  <akochoi@shaw.ca>
12429         * mac.c (init_mac_osx_environment): New function.
12431         * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
12433 2002-08-14  Kim F. Storm  <storm@cua.dk>
12435         * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
12436         executing macro before appending to it (when used from Lisp).
12437         (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
12438         which is called prior to each iteration of macro (for kmacro.el).
12439         (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
12441         * lisp.h (Fexecute_kbd_macro): Update prototype.
12443         * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
12445 2002-08-14  Kenichi Handa  <handa@etl.go.jp>
12447         * xselect.c (QUTF8_STRING): New variable.
12448         (symbol_to_x_atom): Pay attention to QUTF8_STRING.
12449         (x_atom_to_symbol): Likewise.
12450         (x_get_local_selection): New argument local_request.  If it is
12451         nonzero, call handler_fn with the second arg nil.
12452         (x_handle_selection_request): Call x_get_local_selection with
12453         local_request 0.
12454         (lisp_data_to_selection_data): Don't encode the string here.
12455         (Fx_get_selection_internal): Call x_get_local_selection with
12456         local_request 1.
12457         (syms_of_xselect): Intern and staticpro QUTF8_STRING.
12459         * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
12461         * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
12463 2002-08-13  Richard M. Stallman  <rms@gnu.org>
12465         * minibuf.c (Fminibufferp): New function.
12466         (syms_of_minibuf): Defsubr it.
12467         (Fminibuffer_prompt_end): Handle non-minibuffers specially.
12469 2002-08-13  Gerd Moellmann  <gerd.moellmann@t-online.de>
12471         * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
12473 2002-08-12  Richard M. Stallman  <rms@gnu.org>
12475         * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
12476         [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
12477         (WSTOPSIG, WTERMSIG): Define each one independently if not defined
12478         already.
12480         * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
12482 2002-08-11  Andrew Choi  <akochoi@shaw.ca>
12484         * macterm.c (XTmouse_position): Check wp with is_emacs_window.
12485         (Vmac_pass_command_to_system): New variable.
12486         (Vmac_pass_control_to_system): New variable.
12487         (do_mouse_moved): Check wp with is_emacs_window.
12488         (XTread_socket): Check window_ptr with is_emacs_window.
12489         Call FrontNonFloatingWindow instead of FrontWindow.  Send keydown
12490         events back to Mac Toolbox for processing, depending on values of
12491         Vmac_pass_command_to_system and Vmac_pass_control_to_system.
12492         (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
12493         Vmac_pass_control_to_system.
12495 2002-08-10  Kenichi Handa  <handa@etl.go.jp>
12497         * coding.c (unencodable_char_position): New function.
12498         (Funencodable_char_position): New function.
12499         (syms_of_coding): Defsubr Funencodable_char_position.
12501 2002-08-10  Andrew Choi  <akochoi@shaw.ca>
12503         * mac.c (sys_select) [MAC_OSX]: New function.
12505         * macterm.c (MakeMeTheFrontProcess): New function.
12506         (mac_initialize): Call MakeMeTheFrontProcess.
12508         * s/darwin.h: Define select to sys_select.
12510 2002-08-09  Richard M. Stallman  <rms@gnu.org>
12512         * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
12514 2002-08-09  Gerd Moellmann  <gerd.moellmann@t-online.de>
12516         * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
12517         end of the buffer.
12519 2002-08-08  Ken Raeburn  <raeburn@mit.edu>
12521         * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
12523         * puresize.h (BASE_PURESIZE): Increase to 910000.
12525 2002-08-08  Kenichi Handa  <handa@etl.go.jp>
12527         * coding.c (Ffind_operation_coding_system): For write-region, if
12528         VISIT is a filename, make it the target.
12530 2002-08-07  Richard M. Stallman  <rms@gnu.org>
12532         * alloc.c (mark_object): Detect long lists for debugging.
12533         (mark_object_loop_halt): New variable.
12535         * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
12537         * data.c (Fmake_variable_frame_local): Doc fix.
12539 2002-08-01  David Ponce  <david@dponce.com>
12541         * w32menu.c (local_heap, local_alloc, local_free): New macros.
12542         (malloc_widget_value, free_widget_value)
12543         (w32_free_submenu_strings): Use them.
12545         (push_submenu_start, push_submenu_end, push_left_right_boundary)
12546         (push_menu_pane, push_menu_item, single_keymap_panes)
12547         (single_menu_item, Fx_popup_menu, menubar_selection_callback)
12548         (single_submenu, set_frame_menubar)
12549         (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
12551         (Fx_popup_menu): Don't show pop up menu until preceding one is
12552         actually cleaned up.  Moved UNGCPRO outside #ifdef HAVE_MENUS block.
12554         * w32menu.c: Changes adapted from xmenu.c
12555         (set_frame_menubar): First parse all submenus,
12556         then make widget_value trees from them.
12557         Don't allocate any widget_value objects
12558         until we are done with the parsing.
12559         (parse_single_submenu): New function.
12560         (digest_single_submenu): New function.
12561         (single_submenu): Function deleted, replaced by those two.
12563 2002-08-04  Andrew Choi  <akochoi@shaw.ca>
12565         * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
12566         returns a valid window pointer before proceeding for keyDown and
12567         autoKey events.
12569 2002-08-03  Andrew Choi  <akochoi@shaw.ca>
12571         * macterm.c (USE_CARBON_EVENTS): New macro.
12572         (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
12573         (x_iconify_frame): Call CollapseWindow.
12574         (Vmac_reverse_ctrl_meta): New variable.
12575         (Vmac_wheel_button_is_mouse_2): New variable.
12576         (init_mac_drag_n_drop): New function.
12577         (mac_do_receive_drag): New function.
12578         (mac_handle_service_event): New function.
12579         (init_service_handler): New function.
12580         (mac_to_emacs_modifiers): New function.
12581         (mac_event_to_emacs_modifiers): New function.
12582         (mac_get_mouse_btn): New function.
12583         (mac_convert_event_ref): New function.
12584         (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
12585         SendEventToEventTarget, mac_event_to_emacs_modifiers, and
12586         mac_get_mouse_btn.
12587         (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
12589         * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
12590         lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
12591         (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
12592         TOOL_BAR_EVENT for MAC_OS as well.
12593         (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
12594         as for WINDOWS_NT.
12595         (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
12597         * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
12599 2002-08-03  Gerd Moellmann  <gerd.moellmann@t-online.de>
12601         * xdisp.c (forward_to_next_line_start): Fix a condition that
12602         lead to a newline being skipped.
12604 2002-08-02  Andrew Choi  <akochoi@shaw.ca>
12606         * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
12608 2002-08-01  Richard M. Stallman  <rms@gnu.org>
12610         * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
12612 2002-07-31  Andrew Choi  <akochoi@shaw.ca>
12614         * macfns.c: #undef init_process before #define-ing it.
12616         * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
12617         HAVE_CARBON is defined.
12619 2002-07-31  Richard M. Stallman  <rms@gnu.org>
12621         * xmenu.c (set_frame_menubar): First parse all submenus,
12622         then make widget_value trees from them.
12623         Don't allocate any widget_value objects
12624         until we are done with the parsing.
12625         (parse_single_submenu): New function.
12626         (digest_single_submenu): New function.
12627         (single_submenu): Function deleted, replaced by those two.
12629 2002-07-30  Juanma Barranquero  <lektu@terra.es>
12631         * w32proc.c (syms_of_ntproc): Fix docstring of
12632         `w32-get-true-file-attributes'.
12634 2002-07-28  Richard M. Stallman  <rms@gnu.org>
12636         * s/hpux8.h (HPUX8): Define this before including hpux.h.
12637         (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
12639         * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
12641         * keyboard.c (make_lispy_event):
12642         Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
12643         Explicitly clear up_modifier in event->modifiers.
12645 2002-07-27  Richard M. Stallman  <rms@gnu.org>
12647         * xterm.h (FRAME_CURSOR_WIDTH): New macro.
12649         * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
12650         for bar cursor.
12652 2002-07-26  Kenichi Handa  <handa@etl.go.jp>
12654         * coding.c (detect_coding_iso2022): While checking a byte sequence
12655         for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
12656         it in the normal loop.
12658 2002-07-24  Gerd Moellmann  <gerd.moellmann@t-online.de>
12660         * xterm.c (expose_overlaps): New function.
12661         (expose_window): Use it to fix the display of overlapping rows.
12663         * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
12665 2002-07-23  Ken Raeburn  <raeburn@gnu.org>
12667         * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
12668         since it only depends on XUINT.
12670         * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
12671         EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
12672         PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
12673         Macros deleted.
12675         * mem-limits.h (start_of_data): If DATA_START is defined, prefer
12676         its value over other approaches.
12677         * sysdep.c (start_of_data): Don't define the function if a macro
12678         form has been defined.
12680 2002-07-23  Gerd Moellmann  <gerd.moellmann@t-online.de>
12682         * xdisp.c (redisplay_updating_p): New variable.
12683         (init_iterator): Don't free realized faces when
12684         redisplay_updating_p is set.
12685         (redisplay_internal): Set redisplay_updating_p while updating
12686         the display.
12688 2002-07-23  Richard M. Stallman  <rms@gnu.org>
12690         * editfns.c (Fmessage): Treat "" like nil.
12692 2002-07-23  Kenichi Handa  <handa@etl.go.jp>
12694         * xdisp.c (face_before_or_after_it_pos):
12695         Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
12697 2002-07-22  Juanma Barranquero  <lektu@terra.es>
12699         * callproc.c (init_callproc) [DOS_NT]:
12700         Initialize Vshared_game_score_directory to nil.
12701         (syms_of_callproc) [DOS_NT]: Likewise.
12703 2002-07-22  Gerd Moellmann  <gerd.moellmann@t-online.de>
12705         * xdisp.c (display_line): Replace an abort with xassert.
12707 2002-07-21  Richard M. Stallman  <rms@gnu.org>
12709         * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
12710         and END_UNCHANGED when setting buffer_unchanged_p.
12711         Use current_matrix_up_to_date_p to decide whether to use
12712         try_cursor_movement.
12714         * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
12716         * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
12718         * callproc.c (init_callproc): Set up Vshared_game_score_directory.
12719         Set to nil if dir does not exist.
12720         (syms_of_callproc): Init unconditionally and simply.
12722         * buffer.c (Fbuffer_list): Doc fix.
12724 2002-07-21  Ken Raeburn  <raeburn@gnu.org>
12726         * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
12728         * buffer.c (mmap_realloc): When shrinking, make sure number of
12729         pages to unmap is rounded towards zero.
12731         * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
12732         (XSETINT): Deleted.
12734         * m/att3b.h (XINT): Don't define.
12735         (VALBITS, VALMASK, XTYPE): Deleted.
12736         (DATA_SEG_BITS): Define.
12737         * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
12738         ARRAY_MARK_FLAG): Deleted.
12739         (DATA_SEG_BITS): Define.
12740         * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
12741         (DATA_SEG_BITS): Define.
12743 2002-07-20  Richard M. Stallman  <rms@gnu.org>
12745         * print.c (print_error_message): New args CONTEXT and CALLER.
12746         Calls changed.
12748         * lisp.h (print_error_message): Declare new args.
12750         * keyboard.c (cmd_error_internal): Pass Vsignaling_function
12751         and CONTEXT to print_error_message, don't print them here.
12752         For a Quit, don't use Vsignaling_function.
12753         Call message_log_maybe_newline.
12755         * Makefile.in (xsmfns.o): Don't depend on lisp.h.
12757 2002-07-20  Kim F. Storm  <storm@cua.dk>
12759         * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
12761 2002-07-19  Ken Raeburn  <raeburn@gnu.org>
12763         * bytecode.c (struct byte_stack): Pointers into byte string now
12764         point to const.
12765         * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
12766         const.
12767         * charset.h (BCOPY_SHORT): Source pointer now points to const.
12768         * coding.c (encode_eol, detect_coding, detect_eol):
12769         (decode_coding, encode_coding, detect_coding_system):
12770         Source strings now treated as const.
12771         (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
12772         modify Lisp string contents.
12773         * coding.h (decode_coding, encode_coding, detect_coding,
12774         detect_eol): Declarations updated.
12775         * composite.c (compose_chars_in_text): Treat Lisp string contents
12776         as const.
12777         * dispnew.c (safe_bcopy): Source pointer now points to const.
12778         * lisp.h (STRING_COPYIN): New macro.
12779         (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
12780         (internal_with_output_to_temp_buffer): Declarations updated.
12781         * print.c (temp_output_buffer_setup):
12782         (internal_with_output_to_temp_buffer): Buffer name argument is now
12783         pointer to const.
12784         * sound.c (struct sound_device): Function pointer field "write"
12785         buffer argument now points to const.
12786         (vox_write): Buffer argument points to const.
12787         * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
12788         contents as const.
12789         * sysdep.c (emacs_write): Buffer pointer now const.
12790         * term.c (encode_terminal_code): Buffer pointer now const.
12791         * xfaces.c (may_use_scalable_font_p): Argument now points to const.
12792         (x_face_list_fonts, x_update_menu_appearance):
12793         (hash_string_case_insensitive): Treat Lisp string contents as const.
12795 2002-07-19  Juanma Barranquero  <lektu@terra.es>
12797         * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
12799         * fileio.c (syms_of_fileio): Likewise.
12800         (Ffile_name_as_directory): Fix argument name in docstring.
12801         (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
12803 2002-07-18  Richard M. Stallman  <rms@gnu.org>
12805         * data.c (Fdefalias): Doc fix.
12807 2002-07-17  Dave Love  <fx@gnu.org>
12809         * intervals.h (text_property_stickiness): Use P_.
12811         * ccl.c: Remove `emacs' conditionals.
12812         (ccl_backtrace_table): Fix size spec.
12813         (ccl_driver): Fix type errors.
12815 2002-07-16  Ken Raeburn  <raeburn@gnu.org>
12817         * alloc.c (xstrdup, make_string, make_unibyte_string)
12818         (make_multibyte_string, build_string): String pointer args now
12819         point to const.
12820         * charset.c (find_charset_in_text, c_string_width):
12821         (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
12822         * fileio.c (report_file_error):
12823         * insdel.c (copy_text, count_size_as_multibyte, insert_1):
12824         (count_combining_before, count_combining_after, insert_1_both):
12825         (insert, insert_and_inherit, insert_string):
12826         (insert_before_markers, insert_before_markers_and_inherit):
12827         * lread.c (intern, oblookup, hash_string):
12828         * minibuf.c (temp_echo_area_glyphs):
12829         * search.c (fast_c_string_match_ignore_case):
12830         * sysdep.c (emacs_open, set_file_times):
12831         * xfaces.c (xstricmp):
12832         * xdisp.c (store_frame_title, string_char_and_length):
12833         (message_dolog, message2, message2_nolog, set_message): Likewise.
12834         (set_message_1): Cast message string argument to const pointer.
12835         * editfns.c (general_insert_function): Insertion function now
12836         takes pointer to const for input data.
12837         * charset.h (find_charset_in_text, c_string_width):
12838         (parse_str_as_multibyte): Declarations updated.
12839         * dispextern.h (xstricmp): Declaration updated.
12840         * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
12841         (count_size_as_multibyte, count_combining_before):
12842         (count_combining_after, insert_1, insert_1_both, message_dolog):
12843         (insert, insert_and_inherit, insert_before_markers)
12844         (insert_before_markers_and_inherit, set_message, message2):
12845         (message2_dolog, build_string, make_string, make_unibyte_string):
12846         (make_multibyte_string, intern, oblookup, report_file_error):
12847         (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
12848         (emacs_open, xstrdup): Declarations updated.
12849         * systime.h (set_file_times): Declaration updated.
12851         * charset.c (find_charset_in_text, lisp_string_width): Use const
12852         for pointer to lisp string data.
12853         * charset.h (FETCH_STRING_CHAR_ADVANCE):
12854         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
12855         * coding.c (Ffind_coding_systems_region_interval):
12856         * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
12857         (Fmake_directory_internal, Fdelete_directory):
12858         (Ffile_name_absolute_p, Fwrite_region, double_dollars):
12859         * fontset.c (font_family_registry, fs_query_fontset):
12860         (list_fontsets):
12861         * frame.c (Fframe_parameter):
12862         * keyboard.c (cmd_error_internal):
12863         * keymap.c (Fdescribe_buffer_bindings):
12864         * lread.c (complete_filename_p, openp):
12865         * minibuf.c (Fminibuffer_complete_word):
12866         * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
12867         (face_before_or_after_it_pos, next_element_from_string):
12868         (get_overlay_arrow_glyph_row, display_mode_element):
12869         (decode_mode_spec_coding):
12870         * xterm.c (same_x_server): Likewise.
12872         * buffer.c (reset_buffer_local_variables): Delete "#if 0"
12873         settings of non-existent fields.
12875         * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
12876         copy a lisp value.
12878         * lread.c (Fintern_soft): Use string macros instead of
12879         Lisp_String fields.
12880         * keyboard.c (echo_char, parse_modifiers_uncached):
12881         (parse_solitary_modifier, Fexecute_extended_command): Likewise.
12882         * textprop.c (validate_interval_range, interval_of): Likewise.
12884         * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
12886         * charset.h (FETCH_STRING_CHAR_ADVANCE)
12887         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
12888         XSTRING()->size_byte.
12890         * lisp.h (SDATA, SREF): Produce rvalue.
12891         (SSET): New macro.
12892         * alloc.c (make_event_array): Use SSET for storing into a string.
12893         * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
12894         a string.
12895         * casefiddle.c (casify_object): Use SSET.
12896         * charset.h (FETCH_STRING_CHAR_ADVANCE)
12897         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
12898         address of string contents.
12899         * data.c (Faref): Use SDATA.
12900         (Faset): Use SDATA, SSET.
12901         * dired.c (directory_files_internal): Use SSET.
12902         * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
12903         (Fread_file_name): Use SREF, SSET.
12904         * fns.c (concat): Use SSET.
12905         (concat, Fdelete): Use SDATA.
12906         * insdel.c (insert_from_string_1): Use SDATA.
12907         * keyboard.c (Fevent_convert_list): Use SREF.
12908         * lread.c (Fload): Use SDATA, SSET.
12909         * macfns.c (validate_x_resource_name): Use SSET.
12910         * process.c (status_message): Use SSET.
12911         * search.c (wordify): Use SDATA.
12912         (Freplace_match): Use SREF.
12913         * w32fns.c (validate_x_resource_name): Use SSET.
12914         * xfns.c (validate_x_resource_name): Use SSET.
12915         * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
12917 2002-07-16  Richard M. Stallman  <rms@gnu.org>
12919         * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
12921         * xdisp.c (reconsider_clip_changes):
12922         Don't test prevent_redisplay_optimizations_p.
12923         (redisplay_internal): Test prevent_redisplay_optimizations_p
12924         along with clip_changed in some cases.
12925         (try_window_id): Likewise.
12926         (redisplay_window): New local var buffer_unchanged_p.
12928         * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
12930         * process.c (create_process): Test USG_SUBTTY_WORKS.
12931         (process_send_signal): Clean up handling of GID.
12932         Detect errors in ioctls meant to set GID.
12934         * window.c (temp_output_buffer_show):
12935         Don't set prevent_redisplay_optimizations_p.
12937 2002-07-15  Juanma Barranquero  <lektu@terra.es>
12939         * eval.c (Fdefvaralias): Add docstring argument.
12941 2002-07-15  Ken Raeburn  <raeburn@gnu.org>
12943         * lisp.h (STRING_INTERVALS): Produce rvalue.
12944         (STRING_SET_INTERVALS): New macro.
12945         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
12946         * fns.c (Fstring_as_multibyte): Likewise.
12947         * intervals.c (balance_possible_root_interval, delete_interval)
12948         (create_root_interval, copy_intervals_to_string): Likewise.
12949         * textprop.c (set_text_properties): Likewise.  Use NULL_INTERVAL
12950         instead of 0.
12952 2002-07-14  Ken Raeburn  <raeburn@gnu.org>
12954         * lisp.h (STRING_SET_CHARS): New macro.
12955         (SCHARS, SBYTES): Produce rvalues.
12956         * dired.c (directory_files_internal): Use STRING_SET_CHARS.
12957         * fns.c (concat): Likewise.
12958         * lread.c (read_vector): Likewise.
12960         * lisp.h (SMBP): Delete.  All uses changed to STRING_MULTIBYTE.
12961         (STRING_SET_UNIBYTE): New macro.
12962         (SET_STRING_BYTES): Delete.  Callers (all of which supplied a
12963         length of -1) changed to use STRING_SET_UNIBYTE.
12964         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
12965         casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
12966         composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
12967         dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
12968         fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
12969         keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
12970         minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
12971         sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
12972         w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
12973         w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
12974         xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
12975         STRING_BYTES or indirection changed to SCHARS, SBYTES,
12976         STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
12977         unchanged for now.
12979 2002-07-13  Kim F. Storm  <storm@cua.dk>
12981         * keyboard.c (command_loop_1): Invert check on Vmemory_full.
12983 2002-07-12  Richard M. Stallman  <rms@gnu.org>
12985         * fileio.c (Fwrite_region): Doc fix.
12987         * print.c (print_error_message): Don't handle Vsignaling_function here.
12989         * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
12990         (command_loop_1): Avoid certain actions after memory-full error.
12992         * eval.c (Fsignal): Don't call cancel_hourglass.
12993         For a memory-full error, don't call Vsignal_hook_function
12994         and don't set Vsignaling_function.
12996         * process.c (process_send_signal): Add abort call.
12998 2002-07-11  Markus Rost  <rost@math.ohio-state.edu>
13000         * keymap.c (Fkey_binding): Fix typo.
13002 2002-07-11  Richard M. Stallman  <rms@gnu.org>
13004         * alloc.c (Vmemory_full): New variable.
13005         (Vmemory_signal_data): Rename from memory_signal_data.
13006         Uses changed.
13007         (syms_of_alloc): Defvar them.
13008         (memory_full, buffer_memory_full): Set Vmemory_full.
13010         * lisp.h (Vmemory_full): Add declaration.
13011         (current_column, indented_beyond_p): Change declaration.
13013         * indent.c (last_known_column): Declare as double, not float.
13014         (current_column, current_column_1, string_display_width)
13015         (position_indentation): Return `double'.
13016         (indented_beyond_p): Arg `column' is `double'.  Callers changed.
13018         * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
13019         (back_to_previous_visible_line_start)
13020         (reseat_at_next_visible_line_start, next_element_from_buffer):
13021         Use `double', not `float', when calling indented_beyond_p.
13023         * s/hpux11.h (BROKEN_SA_RESTART): Define.
13025         * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
13027 2002-07-11  Juanma Barranquero  <lektu@terra.es>
13029         * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
13030         * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
13031         * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
13032         * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
13033         * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
13034         * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
13036 2002-07-10  Juanma Barranquero  <lektu@terra.es>
13038         * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE.
13039         All callers changed.
13041 2002-07-09  Stefan Monnier  <monnier@cs.yale.edu>
13043         * data.c (Fdefalias): Add an optional `docstring' argument.
13044         (set_internal, Fsetq_default): Use XCAR/XCDR.
13046         * composite.c (HASH_VALUE, HASH_KEY):
13047         * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
13049 2002-07-09  Kenichi Handa  <handa@etl.go.jp>
13051         * callproc.c (Fcall_process): Fix previous change.
13053 2002-07-07  Stefan Monnier  <monnier@cs.yale.edu>
13055         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
13056         Add support for hash-tables.
13057         (Ftry_completion): Return t even if the string appears multiple times.
13059         * fns.c (Fnconc): Use XCDR.
13060         (Fprovide): Use CONSP and XCDR.
13061         (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13062         (HASH_TABLE_SIZE): Delete: moved to lisp.h.
13063         (Fmake_hash_table): Accept `:size nil'.
13064         (Fmakehash): Delete: moved to subr.el.
13065         (syms_of_fns): Don't defsubr makehash.
13067         * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
13068         (HASH_TABLE_SIZE): Move from fns.c.
13070 2002-07-07  Richard M. Stallman  <rms@gnu.org>
13072         * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
13073         Instead just return 0 when there is something to be done.
13074         (try_scrolling): If make_cursor_line_fully_visible returns 0,
13075         retry scrolling as if cursor were off the bottom.
13076         (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
13077         return CURSOR_MOVEMENT_MUST_SCROLL.
13078         (redisplay_window): If make_cursor_line_fully_visible returns 0,
13079         go to try_to_scroll.
13081         * buffer.c (Fbuffer_local_value): Store current value into its binding
13082         so we get the up-to-date value for the binding that is loaded.
13084         * eval.c (Fdefmacro): Doc fix.
13086 2002-07-05  Dave Love  <fx@gnu.org>
13088         * keyboard.c (read_key_sequence): Set initial_idleness_start_time
13089         correctly.
13091         * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
13092         (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
13093         (ccl_driver): Add cases for CCL_LookupIntConstTbl,
13094         CCL_LookupCharConstTbl.
13095         (syms_of_ccl): Defvar translation-hash-table-vector.
13097 2002-07-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
13099         * xdisp.c: Remove unused variable `face'.
13101 2002-07-04  Juanma Barranquero  <lektu@terra.es>
13103         * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
13104         obsolescence information.
13106 2002-07-03  Andrew Choi  <akochoi@shaw.ca>
13108         * macterm.c (x_list_fonts): Fix comment.  Cache fonts matching
13109         pattern.  Search cache first.
13110         (init_font_name_table): Also add entry for jisx0201.1976-0 coding
13111         for Japanese font.
13112         (XLoadQueryFont): Use it.
13114 2002-07-02  Richard M. Stallman  <rms@gnu.org>
13116         * keymap.c (Fdefine_key): Doc fix.
13118         * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
13120 2002-07-02  Juanma Barranquero  <lektu@terra.es>
13122         * keymap.c (syms_of_keymap): Fix typo.
13124 2002-07-01  Andrew Choi  <akochoi@shaw.ca>
13126         * s/darwin.h: Define POSIX_SIGNALS.
13128         * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
13129         and FSRefMakePath to convert FSSpec returned with Apple Event to
13130         Posix pathname.
13131         (mac_initialize) [TARGET_API_MAC_CARBON]:
13132         Call init_required_apple_events and disable the `Quit' menu item
13133         provided automatically by the Carbon Toolbox.
13135 2002-07-01  Dave Love  <fx@gnu.org>
13137         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
13138         for K&R.
13140         * xterm.c: Fix prototype for K&R.
13142         * term.c (costs_set): Declare static, non-initialized for pcc.
13144 2002-07-01  Richard M. Stallman  <rms@gnu.org>
13146         * keyboard.c (timer_last_idleness_start_time): New variable.
13147         (timer_start_idle): Set that.
13148         (read_key_sequence): Use that to reset timer_idleness_start_time
13149         to previous value.
13151         * window.c (Frecenter): With arg, set optional_new_start.
13153         * xdisp.c (redisplay_internal): Make optional_new_start really work.
13155         * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
13156         buffer for completion.
13158 2002-06-29  Ken Raeburn  <raeburn@gnu.org>
13160         * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
13162 2002-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
13164         * keyboard.c (readable_filtered_events): New function that filters
13165         FOCUS_IN_EVENT depending on parameter.
13166         (readable_events): Calls readable_filtered_events, not filtering
13167         FOCUS_IN_EVENT.
13168         (get_filtered_input_pending): New function, filtering parameter passed
13169         to readable_filtered_events.
13170         (get_input_pending): Calls get_filtered_input_pending, not filtering
13171         FOCUS_IN_EVENT.
13172         (Finput_pending_p): Calls get_filtered_input_pending, DO filter
13173         FOCUS_IN_EVENT.
13175         * xterm.h (struct x_output): Add focus_state.
13177         * xterm.c (x_focus_changed): New function.
13178         (x_detect_focus_change): New function.
13179         (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
13180         EnterNotify and LeaveNotify to track X focus changes.
13182 2002-06-28  Andreas Schwab  <schwab@suse.de>
13184         * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
13186 2002-06-27  Kim F. Storm  <storm@cua.dk>
13188         * xdisp.c: (mode_line_string_list, mode_line_string_face)
13189         (mode_line_string_face_prop): New variables.
13190         (store_mode_line_string): New function.
13191         (display_mode_element): Use store_mode_line_string to
13192         add mode-line string elements to mode_line_string_list
13193         when mode_line_string_list is non-nil.
13194         (Fformat_mode_line): Now returns propertized string by
13195         default.  New arg NO-PROPS to ignore properties.
13196         (decode_mode_spec): Only add two dashes for %- in propertized
13197         mode-line string.
13198         (syms_of_xdisp): Init and staticpro mode_line_string_list.
13200 2002-06-27  Stefan Monnier  <monnier@cs.yale.edu>
13202         * minibuf.c (minibuffer_completion_contents): Add return type.
13204 2002-06-27  Juanma Barranquero  <lektu@terra.es>
13206         * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
13208 2002-06-26  Juanma Barranquero  <lektu@terra.es>
13210         * fileio.c (read_file_name_cleanup): Add missing return.
13212 2002-06-26  Richard M. Stallman  <rms@gnu.org>
13214         * window.c (Frecenter): Don't set force_start flag.
13216         * minibuf.c (do_completion, Fminibuffer_complete_word)
13217         (Fminibuffer_completion_help): Complete just the text before point.
13218         (minibuffer_completion_contents): New function.
13220         * buffer.c (Fbury_buffer): Use frames_discard_buffer.
13222         * frame.c (frames_bury_buffer): Function deleted.
13224 2002-06-25  Miles Bader  <miles@gnu.org>
13226         * callint.c (Fcall_interactively): When checking to see if doprnt hit
13227         the end of callint_message, allow for a terminating '\0'.
13229 2002-06-24  Juanma Barranquero  <lektu@terra.es>
13231         * w32select.c: Include composite.h
13233         * w16select.c: Likewise.
13235 2002-06-24  Kenichi Handa  <handa@etl.go.jp>
13237         * callproc.c (Fcall_process): If code detection is necessary,
13238         call detect_coding directly here.
13240         * coding.c (detect_eol): Preserve coding->cmp_data.
13242         * w16select.c (Fw16_get_clipboard_data):
13243         * w32fns.c (w32_to_x_font):
13244         * w32select.c (Fw32_get_clipboard_data):
13245         * xselect.c (selection_data_to_lisp_data):
13246         * xterm.c (XTread_socket): Disable composition handling.
13248 2002-06-24  Stefan Monnier  <monnier@cs.yale.edu>
13250         * print.c (temp_output_buffer_setup): Kill all local variables.
13252 2002-06-22  Stefan Monnier  <monnier@cs.yale.edu>
13254         * lread.c (Fread): Remove redundant and imprecise declaration.
13256         * xfns.c (check_x_display_info): Use check_x_frame.
13258         * .gdbinit (xprintsym): Use the new `xname' field.
13259         (xsymbol): Use it.
13261 2002-06-22  Jason Rumney  <jasonr@gnu.org>
13263         * w32fns.c (file_dialog_callback): New function.
13264         (Fx_file_dialog): Allow selecting directories as well as files.
13266 2002-06-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
13268         * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
13269         OpenBSD.  Add support for mipseb-*-netbsd* machines.
13271 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
13273         * macterm.c (mac_scroll_area): Set foreground and backcolor to
13274         black and white before scrolling.  Restore frame background and
13275         foreground color after scrolling.
13276         (do_window_update): Call XClearWindow before calling expose_frame.
13277         (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
13278         FRAME_FOREGROUND_PIXEL of frame.
13280         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13281         test Mac command key as <ALT> key.
13283 2002-06-17  Stefan Monnier  <monnier@cs.yale.edu>
13285         * window.c (Fset_window_configuration): Lisp_Object/int mixup.
13287         * keyboard.c (read_key_sequence): Be more careful with first_unbound.
13288         Lookup keys in function-key-map immediately so that key-translation-map
13289         can be applied earlier.
13290         Remove function_key_possible and key_translation_possible, replaced
13291         by checking `keytran_start < t'.
13293         * .gdbinit (xsymbol): Use the new `xname' field.
13295 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
13297         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
13298         test Mac command key as <ALT> key.
13300         * mac.c (do_applescript): Call initialize_applescript if necessary
13301         when first called.  Dispose of result_desc only when there is no error.
13302         (Fdo_applescript): Use %d format specifier instead of %ld.
13304 2002-06-16  Andrew Choi  <akochoi@shaw.ca>
13306         * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
13307         of FrontWindow for cases keyDown and autoKey.
13309         * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
13310         Vdefault_fontset to Monaco with mac-roman coding.
13312         * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
13313         init_process before and after inclusion of Carbon/Carbon.h, resp.
13315         * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
13316         cursor_gc.
13317         (add_font_name_table_entry): New function.
13318         (init_font_name_table): Use add_font_name_table_entry; add italic,
13319         bold, and bold-italic entries for truetype fonts.
13321         * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
13322         for Mac too.
13323         (try_font_list) [MAC_OS]: If no font matches given registry, try
13324         fonts with any registry matching face_family.
13325         (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
13327         * s/darwin.h: If autoconf detects the Ncurses library, define
13328         LIBS_TERMCAP to -lncurses to use it.
13330 2002-06-16  Eli Zaretskii  <eliz@is.elta.co.il>
13332         * strftime.c [__hpux]: Include sys/_mbstate_t.h.
13334 2002-06-15  Richard M. Stallman  <rms@gnu.org>
13336         * window.c (Fset_window_configuration): Explicitly preserve
13337         the point value that new_current_buffer had at the start.
13339 2002-06-14  Juanma Barranquero  <lektu@terra.es>
13341         * composite.c (Fcompose_region_internal, Fcompose_string_internal):
13342         Fix typos.
13344 2002-06-14  Kim F. Storm  <storm@cua.dk>
13346         * insdel.c (insert_1_both, insert_from_string_1)
13347         (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
13348         insert happened in the end_unchanged region.  Otherwise, the
13349         redisplay may be confused and duplicate the last line in the
13350         buffer [seen after save-buffer when require-final-newline==t].
13352 2002-06-13  Jason Rumney  <jasonr@gnu.org>
13354         * w32.c (init_environment): Remove EMACSLOCKDIR.
13355         (stat): Swap _S_IFDIR and _S_IFREG.
13357 2002-06-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
13359         * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
13360         * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
13361         * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
13362         ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
13363         to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
13364         NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
13365         to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
13366         language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
13367         to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
13368         W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
13369         SELECTION_REQUEST_EVENT, selection_clear_event to
13370         SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
13371         delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
13372         ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
13373         menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
13374         DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
13375         no_event to NO_EVENT.
13377 2002-06-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
13379         * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
13381 2002-06-12  Stefan Monnier  <monnier@cs.yale.edu>
13383         * intervals.c (textget): Don't forget to `return'.
13384         (lookup_char_property): Use XCAR/XCDR.
13386 2002-06-12  Juanma Barranquero  <lektu@terra.es>
13388         * xdisp.c (Fformat_mode_line): Fix typo.
13390 2002-06-12  Kim F. Storm  <storm@cua.dk>
13392         * xdisp.c (Fformat_mode_line): New function.
13393         (frame_title_buf, frame_title_buf_end, frame_title_ptr)
13394         (store_frame_title_char, store_frame_title): Use unconditionally.
13395         (init_xdisp): Defsubr Fformat_mode_line.
13396         Initialize frame_title_buf etc. unconditionally.
13398 2002-06-11  Stefan Monnier  <monnier@cs.yale.edu>
13400         * keyboard.c (read_key_sequence):
13401         Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
13402         things through those maps after downcasing events.
13403         Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
13404         applies after function-key-map.
13405         Make sure that keytran can be done in the middle in the sequence.
13406         Be careful not to throw away events past the one we downcase.
13408         * lread.c (read_integer): Remove unused var `tem'.
13409         (read1): Fix int/Lisp_Object mixup.
13411         * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
13413 2002-06-11  Richard M. Stallman  <rms@gnu.org>
13415         * keyboard.c (readable_events): Ignore any number of
13416         FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
13418 2002-06-09  Miles Bader  <miles@gnu.org>
13420         * xfaces.c (Ftty_supports_face_attributes_p): New function.
13421         (parse_rgb_list, tty_lookup_color): New functions.
13422         (tty_defined_color): Use `tty_lookup_color' to do all the work.
13423         (color_distance, Fcolor_distance): New functions.
13424         (TTY_SAME_COLOR_THRESHOLD): New macro.
13425         (Qtty_color_standard_values): New variable.
13426         (syms_of_xfaces): Initialize new vars & functions.
13428 2002-06-08  Colin Walters  <walters@verbum.org>
13430         * textprop.c (Vchar_property_alias_alist): New variable.
13431         (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
13433         * intervals.c (lookup_char_property): New function for looking up
13434         overlay and text properties, created from textget.
13435         (textget): Use it.
13437         * intervals.h (lookup_char_property): Declare.
13438         (Vchar_property_alias_alist): Declare.
13440         * buffer.c (Foverlay_get): Use lookup_char_property.
13442 2002-06-07  Sam Steingold  <sds@gnu.org>
13444         * xselect.c (lisp_data_to_selection_data): Fix last change:
13445         *data_ret is not a Lisp string, while unibyte_string is.
13447 2002-06-07  Eli Zaretskii  <eliz@is.elta.co.il>
13449         * xselect.c (lisp_data_to_selection_data): Fix last change:
13450         set size_ret.
13452 2002-06-07  Andreas Schwab  <schwab@suse.de>
13454         * m/amdx86-64.h: New file.
13456 2002-06-05  Eli Zaretskii  <eliz@is.elta.co.il>
13458         * fns.c (Fstring_make_unibyte): Doc fix.
13460         * xselect.c (lisp_data_to_selection_data): If the requested type
13461          is STRING, call string_make_unibyte to encode the selected text
13462          as a string.
13464         * window.c (Fset_window_hscroll): Doc fix.
13466 2002-06-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
13468         * fileio.c (choose_write_coding_system):
13469         Call select-safe-coding-system properly.
13471 2002-06-03  Richard M. Stallman  <rms@gnu.org>
13473         * xdisp.c (message_with_string): Error if STRING is not a string.
13475         * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
13477         * fileio.c (choose_write_coding_system): Pass FILE arg to
13478         Vselect_safe_coding_system_function.
13480 2002-06-03  Ken Raeburn  <raeburn@gnu.org>
13482         * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
13484 2002-06-02  Thien-Thi Nguyen  <ttn@gnu.org>
13486         * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
13487         * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
13488         * keymap.c (describe_command): Likewise.
13489         * minibuf.c (read_minibuf): Likewise.
13491         * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
13492         Cast `current_column' return value to int.
13493         (back_to_previous_visible_line_start)
13494         (reseat_at_next_visible_line_start, next_element_from_buffer):
13495         Cast `indented_beyond_p' 3rd arg to float.
13497         * indent.c (last_known_column): Now a float.
13498         (current_column_1, position_indentation, current_column)
13499         (string_display_width): Return float.
13500         (Fcurrent_column): Cast `current_column' return value to int.
13501         (Fcurrent_indentation): Cast `position_indentation' retval to int.
13502         (indented_beyond_p): Third arg now a float.
13503         (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
13505         * lisp.h (current_column): Now returns float.
13506         (indented_beyond_p): 3rd arg now a float.
13508 2002-05-31  Eli Zaretskii  <eliz@is.elta.co.il>
13510         * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
13511         is Qcompound_text_with_extensions.
13513         * xselect.c (lisp_data_to_selection_data): Always set selection
13514         type as string if x_encode_text returns streingp non-NULL.
13516         * s/netbsd.h: Include /usr/pkg in the run time shared library path.
13518 2002-05-30  Richard M. Stallman  <rms@gnu.org>
13520         * window.c (Fset_window_configuration): Correct the handling
13521         of point in current buffer, to work with multiple windows.
13523 2002-05-29  Colin Walters  <walters@verbum.org>
13525         * lread.c (Fread_from_string): Don't depend on order of evaluation
13526         for C function parameters.
13528 2002-05-28  Richard M. Stallman  <rms@gnu.org>
13530         * xterm.c (x_display_and_set_cursor): Change the cursor in the same
13531         way for blinked-off state and for a nonselected window.
13533         * window.c (window_scroll_pixel_based): Don't call Fbolp;
13534         instead, see if the new start pos is at beginning of line.
13536         * fileio.c (Fwrite_region): If START is a string, don't
13537         make any annotations.
13539         * eval.c (syms_of_eval): Doc fix.
13541 2002-05-28  Colin Walters  <walters@debian.org>
13543         * emacs.c (USAGE1): Add --no-splash.
13544         (standard_args): Ditto.
13546 2002-05-28  Colin Walters  <walters@gnu.org>
13548         * lread.c (readchar_count): New variable.
13549         (readchar): Increment it.
13550         (unreadchar): Decrement it.
13551         (read_multibyte): Decrement it.
13552         (Vread_with_symbol_positions): New variable.
13553         (Vread_symbol_positions_list): New variable.
13554         (read_internal_start): New function, created from Fread and
13555         Fread_from_string.  Handle Vread_symbol_positions_list and
13556         Vread_with_symbol_positions.
13557         (readevalloop, Fread, Fread_from_string): Use it.
13558         (read1): Use readchar_count to add symbol positions to
13559         Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
13560         (syms_of_lread): DEFVAR_LISP and initialize them.
13562         * lread.c (read0, read1, read_list, read_vector, read_multibyte)
13563         (substitute_object_recurse, substitute_object_in_subtree)
13564         (substitute_in_interval): Prototype.
13565         (read_multibyte): Return c if it's less than zero.
13567 2002-05-28  Kim F. Storm  <storm@cua.dk>
13569         * fileio.c (Fread_file_name_internal): Added brute-force
13570         speed up for using predicate file-directory-p.
13572 2002-05-28  Kim F. Storm  <storm@cua.dk>
13574         * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
13575         New variables.
13576         (syms_of_fileio): DEFVAR_LISP them.
13577         (read_file_name_cleanup): New unwind function.
13578         (Fread_file_name_internal): Only return completions satifying
13579         Vread_file_name_predicate.  Temporarily unwind protect and rebind
13580         default-directory while checking completions against the predicate.
13581         (Fread_file_name): Added PREDICATE argument.  Specbind it to
13582         Vread_file_name_predicate during completion.
13583         Call Vread_file_name_function to read the file name if non-nil.
13585         * lisp.h (Fread_file_name): Now has 6 args.
13587         * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
13588         predicate for Fread_file_name when reading directory name.
13589         Supply Qnil for predicate in other calls to Fread_file_name.
13591 2002-05-26  Miles Bader  <miles@gnu.org>
13593         * term.c (tty_capable_p): New function.
13594         * dispextern.h (tty_capable_p): New function declaration.
13595         (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
13596         (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
13598 2002-05-23  Stefan Monnier  <monnier@cs.yale.edu>
13600         * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
13601         (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
13602         (Vwrite_region_annotate_functions): Docstring fix.
13604 2002-05-23  Kim F. Storm  <storm@cua.dk>
13606         * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
13607         phys_cursor's hpos is overwritten.  This is still not completely
13608         correct, as it doesn't really make sense to use hpos at all to
13609         get the cursor glyph (as that is relative to the width of the
13610         characters on the line, which may have changed during the update).
13612 2002-05-22  Jason Rumney  <jasonr@gnu.org>
13614         * w32fns.c (enumfont_t): Remove tail, make pattern a normal
13615         Lisp_Object.
13616         (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
13617         Use modified enumfont_t struct.
13619         * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
13621         * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
13622         Handle the `hbar' cursor type.
13623         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
13625         * w32fns.c (Qhbar): New variable.
13626         (x_specified_cursor_type): Use it.
13628 2002-05-21  Ken Raeburn  <raeburn@gnu.org>
13630         * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
13631         now, when the address is needed.
13633 2002-05-21  Colin Walters  <walters@gnu.org>
13635         * Makefile.in (shortlisp): Add font-core.el.
13637 2002-05-20  Richard M. Stallman  <rms@gnu.org>
13639         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
13641         * keyboard.c (read_char_minibuf_menu_prompt): Don't list
13642         equivalent key bindings here.
13644 2002-05-20  Ken Raeburn  <raeburn@gnu.org>
13646         Change symbol structure to contain a lisp object for the symbol
13647         name:
13648         * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
13649         object field named "xname".
13650         (SYMBOL_NAME): New macro.
13651         * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
13652         name field.
13653         * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
13654         (mark_object, gc_sweep): Use symbol xname field and XSTRING
13655         instead of name field.
13656         * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
13657         SYMBOL_NAME instead of XSYMBOL and name field.
13658         * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
13659         instead of XSYMBOL and name field.
13660         * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
13661         and SYMBOL_NAME instead of XSYMBOL and name field.
13662         * coding.c (Fread_coding_system, code_convert_region1)
13663         (code_convert_string1, code_convert_string_norecord)
13664         (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
13665         XSYMBOL and name field.
13666         * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
13667         (Fmake_variable_buffer_local, Fmake_local_variable)
13668         (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
13669         of XSYMBOL and name field.
13670         * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
13671         XSYMBOL and name field.
13672         * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
13673         instead of XSYMBOL and name field.
13674         * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
13675         XSYMBOL and name field.
13676         * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
13677         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13678         * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
13679         instead of XSYMBOL and name field.
13680         * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
13681         (parse_modifiers, apply_modifiers, Fevent_convert_list)
13682         (parse_solitary_modifier, Fexecute_extended_command):
13683         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13684         * keymap.c (silly_event_symbol_error, Fsingle_key_description)
13685         (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
13686         of XSYMBOL and name field.
13687         (describe_command, describe_translation): Use SYMBOL_NAME and
13688         assignment instead of XSYMBOL and name field and XSETSTRING.
13689         * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
13690         instead of XSYMBOL and name field.
13691         (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
13692         name field and XSETSTRING.
13693         * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13694         of XSYMBOL and name field.
13695         * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
13696         assignment instead of XSYMBOL and name field and XSETSTRING.
13697         * print.c (print_error_message, print_object): Use SYMBOL_NAME and
13698         XSTRING instead of XSYMBOL and name field.
13699         * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
13700         and XSTRING instead of XSYMBOL and name field.
13701         * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
13702         and XSTRING instead of XSYMBOL and name field.
13703         * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
13704         XSTRING instead of XSYMBOL and name field.
13705         * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
13706         of XSYMBOL and name field.
13707         * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
13708         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
13710 2002-05-19  Ken Raeburn  <raeburn@gnu.org>
13712         * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
13713         and XCDR real rvalues in most configurations.
13715         * buffer.c (fix_overlays_in_range, fix_overlays_before):
13716         Don't take the address of the cdr part of a cons cell; instead, track
13717         the parent cell and call XSETCDR, or set the variable for the head
13718         of the list if we haven't started down the list yet.
13720 2002-05-19  Richard M. Stallman  <rms@gnu.org>
13722         * doc.c (reread_doc_file): Don't ask for confirmation.
13724 2002-05-18  Jason Rumney  <jasonr@gnu.org>
13726         * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
13727         (xbm_load_image): Use it.
13728         (xbm_load): Ditto.
13729         (xbm_read_bitmap_data): Reverted to xfns.c version.
13730         From David Ponce <david@dponce.com>.
13732 2002-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
13734         * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
13735         2.02 and later.
13737 2002-05-16  Juanma Barranquero  <lektu@terra.es>
13739         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
13741 2002-05-15  Stefan Monnier  <monnier@cs.yale.edu>
13743         * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
13744         meaningful test.
13745         (read_char_minibuf_menu_prompt): Fix typo.
13747 2002-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
13749         * eval.c (Fcommandp): Doc fix.
13751 2002-05-13  Stefan Monnier  <monnier@cs.yale.edu>
13753         * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
13754         (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
13755         (Fset_keymap_parent): Gcpro a bit more.
13756         (access_keymap): Gcpro around meta_map call and around the main loop.
13757         (get_keyelt): Gcpro when following indirect references.
13758         (copy_keymap_item): New fun, extracted from Fcopy_keymap.
13759         (copy_keymap_1, Fcopy_keymap): Use it.  Don't copy the parent map.
13760         (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
13761         Remove useless ad-hoc remap code.
13763 2002-05-13  Richard M. Stallman  <rms@gnu.org>
13765         * search.c (search_buffer): Give up boyer moore search if inverse
13766         translation change charset_base.
13768 2002-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
13770         * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
13771         characters is carried over from the previous block of text, adjust
13772         coding->produced to account for the extra character.
13774 2002-05-11  Andreas Schwab  <schwab@suse.de>
13776         * coding.c (intersection): Keep the elements of the returned list
13777         in the same order as in the first list.
13779 2002-05-11  Kim F. Storm  <storm@cua.dk>
13781         * keymap.c (current_minor_maps): Fix resizing of cmm_maps;
13782         only update cmm_size if realloc actually succeeds.
13783         Testing with initial size of 2 elements revealed that using
13784         realloc on GNU/Linux would cause a random trap in xmalloc
13785         later on, so I rewrote the code to use malloc/bcopy/free instead
13786         of realloc.
13788 2002-05-10  Jason Rumney  <jasonr@gnu.org>
13790         * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
13792 2002-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
13794         * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
13795         parens, to ensure correct evaluation order.
13797 2002-05-10  Kim F. Storm  <storm@cua.dk>
13799         * keymap.c (Vemulation_mode_map_alists): New variable.
13800         (syms_of_keymap): DEFVAR_LISP it.
13801         (current_minor_maps): Process keymap alists in that list before
13802         minor-mode-overriding-map-alist and minor-mode-map-alist.
13804 2002-05-09  Richard M. Stallman  <rms@gnu.org>
13806         * search.c (Freplace_match): Doc fix.
13808 2002-05-09  Kim F. Storm  <storm@cua.dk>
13810         * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13811         Enlarge cursor rectangle drawn around image with non-zero relief.
13813         * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
13814         Enlarge cursor rectangle drawn around image with non-zero relief.
13816         * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
13817         Enlarge cursor rectangle drawn around image with non-zero relief.
13819 2002-05-07  Eli Zaretskii  <eliz@is.elta.co.il>
13821         * xselect.c (lisp_data_to_selection_data): Don't set selection
13822         type if comes from the Lisp object's car.  If the selection
13823         contains a pure ASCII text, always return QSTRING as its type.
13825 2002-05-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
13827         * mac.c (mac-cut-function): Doc fix.
13829 2002-05-05  Richard M. Stallman  <rms@gnu.org>
13831         * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
13833 2002-05-04  Jason Rumney  <jasonr@gnu.org>
13835         * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
13836         for event-click-count.
13838         * process.c (init_process): Only add server subfeature if we can
13839         use non-blocking I/O.
13841 2002-05-04  Andrew Choi  <akochoi@shaw.ca>
13843         * macterm.c (XTread_socket): Call WaitNextEvent once instead of
13844         repeatedly.
13846 2002-05-03  Jason Rumney  <jasonr@gnu.org>
13848         * process.c (Fmake_network_process): Only support server sockets
13849         when we can make them non-blocking.
13851         * s/ms-w32.h (HAVE_SELECT): Define.
13853         * w32.h (FILE_NDELAY): New flag.
13855         * w32.c (sys_getpeername, fcntl): New functions.
13856         (_sys_read_ahead): Temporarily block on non-blocking sockets.
13858         * w32proc.c: include sys/file.h.
13860 2002-05-03  Colin Walters  <walters@verbum.org>
13862         * callproc.c (Vgame_score_directory): Renamed to
13863         Vshared_game_score_directory.
13865 2002-04-30  Richard M. Stallman  <rms@gnu.org>
13867         * s/gnu.h [emacs]: Include stdio.h.
13868         (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
13870         * eval.c (do_autoload): Error if called while preparing to dump.
13872         * fns.c (Frequire): Error if need to load while preparing to dump.
13874 2002-04-28  Colin Walters  <walters@verbum.org>
13876         * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
13877         Default to "~/.emacs.d/games".
13879 2002-04-29  Stefan Monnier  <monnier@cs.yale.edu>
13881         * lread.c (openp): Change arg exec_only to predicate.
13882         (build_load_history): Use XCAR/XCDR.
13883         (Flocate_file_internal): New fun.
13884         (syms_of_lread): Defsubr it.
13885         (Fload): Update call to openp.
13887         * lisp.h (openp): Update prototype.
13889         * xfns.c (x_create_bitmap_from_file, x_find_image_file):
13890         * w32proc.c (sys_spawnve):
13891         * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
13892         * w32.c (check_windows_init_file):
13893         * sound.c (Fplay_sound_internal):
13894         * process.c (Fstart_process):
13895         * macfns.c (x_create_bitmap_from_file, x_find_image_file):
13896         * mac.c (run_mac_command):
13897         * emacs.c (init_cmdargs):
13898         * callproc.c (Fcall_process): Update call to openp.
13900         * textprop.c (remove_properties): Don't use XCAR without CONSP.
13902         * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
13904 2002-04-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
13906         * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
13907         (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
13909 2002-04-28  Richard M. Stallman  <rms@gnu.org>
13911         * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
13913         * eval.c (Fcommandp): New arg for_call_interactively.
13914         * lisp.h (Fcommandp): Declare new arg.
13916 2002-04-28  Jason Rumney  <jasonr@gnu.org>
13918         * w32proc.c (syms_of_w32proc): Get true file attributes by default.
13920         * w32.c (stat, fstat): Use file index information to generate
13921         inodes for directories where available.
13923 2002-04-26  Andrew Choi  <akochoi@shaw.ca>
13925         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
13926         [HAVE_CARBON]: Include Mac object files.
13928         * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
13929         fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
13930         termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
13931         MAC_OSX, and MAC_OS instead of macintosh.
13933         * editfns.c [MAC_OS8]: Include stdio.h.
13935         * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
13937         * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
13938         Apple Monaco.
13940         * process.c (QCfamily, QCfilte): Declare extern.
13941         (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
13942         calling select.
13944         * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
13946         * tparam.c [MAC_OSX]: Don't define BC and UP.
13948         * config.in [HAVE_CARBON]: Add.
13950         * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
13951         Move here from mac/src and mac/inc.
13953         * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
13955 2002-04-26  Gerd Moellmann  <gerd@gnu.org>
13957         * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
13958         Compute phys_cursor_width from the x position returned
13959         by x_draw_glyhs, which is cheaper.
13960         (x_display_and_set_cursor): Compute the buffer-local value
13961         of `cursor-in-non-selected-windows' only when needed.
13963 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
13965         * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
13966         cursor on a stretch glyph has a width that depends on
13967         x_stretch_cursor_p.
13969 2002-04-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
13971         * abbrev.c (abbrev-start-location): Doc fix.
13973         * indent.c (Fvertical_motion): Fix last change.
13975 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
13977         * indent.c (Fvertical_motion): Move to the start of the line
13978         containing PT before moving up or down.
13980 2002-04-24  Gerd Moellmann  <gerd@gnu.org>
13982         * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
13983         case of writing a whole row, more or less analogous to the case of
13984         writing only parts of a row.
13986         * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
13987         0 for NO_CURSOR.
13989         * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
13991 2002-04-23  Colin Walters  <walters@verbum.org>
13993         * buffer.c (syms_of_buffer): Doc fix.
13995 2002-04-23  Gerd Moellmann  <gerd@gnu.org>
13997         * xterm.c (notice_overwritten_cursor): Handle the special case
13998         of the cursor being in the first blank non-text line at the
13999         end of a window.
14001         * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
14002         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
14003         (x_display_and_set_cursor): Don't set phys_cursor_width here, for
14004         bar cursors only, to make phys_cursor_width contain what its name
14005         suggests.
14006         (notice_overwritten_cursor): Consider the cursor image erased if
14007         the output area intersects the cursor image in y-direction.
14009 2002-04-23  Simon Marshall  <simon@gnu.org>
14011         * xfns.c (x_set_mouse_color): Change default for cross_cursor
14012         to XC_hand2.
14014 2002-04-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14016         * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
14018 2002-04-22  Kim F. Storm  <storm@cua.dk>
14020         * textprop.c (remove_properties): Fixed trap for malformed plist.
14022 2002-04-22  Richard M. Stallman  <rms@gnu.org>
14024         * cmds.c (Fend_of_line): Handle intangible text in mid line.
14026         * window.c (make_window): Initialize height_fixed_p,
14027         last_cursor_off_p, and p->cursor_off_p slots.
14029 2002-04-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14031         * fns.c (use-dialog-box): Doc fix.
14033 2002-04-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14035         * xterm.c (note_mode_line_or_margin_highlight): Remove unused
14036         variables `row', `i' and `area'.
14037         (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
14038         toolkit library.
14040 2002-04-19  Stefan Monnier  <monnier@cs.yale.edu>
14042         * xfaces.c (clear_font_table): Don't free the default font of
14043         a frame even if it's on another display.
14044         (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
14045         that could be Qt.
14047 2002-04-19  Juanma Barranquero  <lektu@terra.es>
14049         * indent.c (Fmove_to_column): Remove unused local variable
14050         `next_boundary_byte'.
14051         (current_column_1): Likewise.
14053 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
14055         * msdos.c (Qhbar): New variable.
14056         (syms_of_msdos): Intern and staticpro it.
14057         (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
14058         cursor type.
14060 2002-04-19  Dave Lambert  <dlambert@acm.org>
14062         Theses change implement an underscore-like (`hbar') cursor.
14064         * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
14066         * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
14067         Handle the `hbar' cursor type.
14068         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
14070         * xfns.c (Qhbar): New variable.
14071         (syms_of_xfns): Intern and staticpro it.
14072         (x_specified_cursor_type): Handle `hbar' cursor.
14074         * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
14075         not defined.
14077 2002-04-18  Richard M. Stallman  <rms@gnu.org>
14079         * textprop.c (remove_properties): New arg LIST allows scanning
14080         either a list or a plist.
14081         (interval_has_some_properties_list): New function, like
14082         interval_has_some_properties using list instead of plist.
14083         All callers changed.
14084         (Fremove_list_of_text_properties): New function.
14085         (syms_of_textprop): Defsubr it.
14087 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
14089         * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
14091 2002-04-17  Juanma Barranquero  <lektu@terra.es>
14093         * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
14095 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
14097         * window.c (coordinates_in_window): Don't report on margin area
14098         if its width is zero.
14100 2002-04-16  Jason Rumney  <jasonr@gnu.org>
14102         * w32fns.c (Fx_file_dialog): Decode file name before using.
14104         * w32term.c (construct_drag_n_drop): Likewise.
14106 2002-04-16  Eli Zaretskii  <eliz@is.elta.co.il>
14108         * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
14109         store load-history in pure space.
14111         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
14113 2002-04-16  Stefan Monnier  <monnier@cs.yale.edu>
14115         * xterm.c (Qlatin_1, Qutf_8): New vars.
14116         (syms_of_xterm): Initialize them.
14117         (XTread_socket): Eliminate incorrect optimization that tried to avoid
14118         decoding the output of X*LookupString.
14119         Always use latin-1 to decode the output of XLookupString.
14120         Try Xutf8LookupString if XmbLookupString failed.
14122         * region-cache.c (new_region_cache): Use BEG.
14124 2002-04-16  Gerd Moellmann  <gerd@gnu.org>
14126         * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
14127         configuration files.
14128         (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
14129         returns 0.
14131 2002-04-15  Andreas Schwab  <schwab@suse.de>
14133         * config.in: Regenerated using autoheader.
14135         * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
14136         m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
14137         m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
14138         m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
14139         m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
14140         m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
14141         m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
14142         m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
14143         m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
14144         m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
14145         m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
14146         m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
14147         m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
14148         m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
14149         m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
14150         s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
14151         STACK_DIRECTION, now set by autoconf.
14153 2002-04-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14155         * dispnew.c (marginal_area_string): Sort arguments.
14157         * dispextern.h (marginal_area_string): Add prototype.
14159 2002-04-13  Richard M. Stallman  <rms@gnu.org>
14161         * fileio.c (Finsert_file_contents):
14162         Don't call temp_output_buffer_setup--do just part, by hand.
14164         * coding.c (run_pre_post_conversion_on_str):
14165         Don't call temp_output_buffer_setup--do just part, by hand.
14167         * keyboard.c (command_loop_1): Don't call start_hourglass
14168         or cancel_hourglass when executing a macro.
14170         * marker.c (count_markers): New function.
14172         * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
14173         grow without limit.  Move recently used elements to the front.
14175 2002-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
14177         * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
14179 2002-04-12  Gerd Moellmann  <gerd@gnu.org>
14181         * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
14182         rows marginal areas.
14183         (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
14184         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14186         * dispnew.c (marginal_area_string): Check that glyph row is enabled.
14188 2002-04-12  Dave Love  <fx@gnu.org>
14190         * dispnew.c (marginal_area_string): New.
14192         * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
14193         (Qleft_margin, Qright_margin): Declare.
14194         (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
14196         * xterm.c (note_mode_line_or_margin_highlight): Renamed from
14197         note_mode_line_highlight and extended.
14199         * keyboard.c (Qleft_margin, Qright_margin): Declare.
14200         (make_lispy_event): Deal with mouse events in margins.
14202 2002-04-12  Stefan Monnier  <monnier@cs.yale.edu>
14204         * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
14206         * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
14207         than deactivating the mark if tmm is set to `lambda'.
14208         (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
14209         Use a single event for HELP_EVENT.
14210         (Fexecute_extended_command): Save last_point_position.
14212 2002-04-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14214         * lisp.h (Fpropertize): Add prototype.
14216         * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
14218 2002-04-10  Colin Walters  <walters@verbum.org>
14220         * config.in: Add HAVE_SHARED_GAME_DIR.
14222         * callproc.c: (Vgame_score_directory): New variable.
14223         (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
14225 2002-04-10  Richard M. Stallman  <rms@gnu.org>
14227         * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
14229 2002-04-09  Stefan Monnier  <monnier@cs.yale.edu>
14231         * minibuf.c (read_minibuf): Use empty_string.
14232         (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
14233         Short-circuit the search as soon as it "failed".
14234         (Fall_completions): Allow lambda forms and lists of strings for alist.
14235         (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
14236         when require_match is nil.
14237         (Ftest_completion): Rename from `test_completion' and export to elisp.
14238         Call the predicate also when alist is a list.
14239         Obey Vcompletion_regexp_list.
14240         (do_completion, Fminibuffer_complete_and_exit): Use it.
14241         (Fassoc_string): Rename from `assoc_for_completion'.
14242         Allow list of strings as well and export to elisp.
14244 2002-04-08  Stefan Monnier  <monnier@cs.yale.edu>
14246         * puresize.h (BASE_PURESIZE): Increase to 900KB.
14248 2002-04-08  Juanma Barranquero  <lektu@terra.es>
14250         * w32.c (sys_accept): Don't hide variable `s'.
14252 2002-04-05  Gerd Moellmann  <gerd@gnu.org>
14254         * callint.c (Fcall_interactively): Use INTEGERP instead of
14255         NUMBERP for checking Vhistory_length.
14257 2002-04-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14259         * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
14260         Doc fix to reflect it.
14262 2002-04-04  Richard M. Stallman  <rms@gnu.org>
14264         * xdisp.c (display_mode_element): New arg RISKY.
14265         Disregard text props found or specified within a variable
14266         that isn't marked risky-local-variable.
14267         (Qrisky_local_variable): New variable.
14268         (syms_of_xdisp): Init and staticpro it.
14270 2002-04-04  Stefan Monnier  <monnier@cs.yale.edu>
14272         * undo.c (record_point): New fun.
14273         (record_delete, record_insert): Use it.
14275 2002-04-03  Juanma Barranquero  <lektu@terra.es>
14277         * doc.c (Fdocumentation): Add missing parentheses.
14278         (Fdocumentation_property): Likewise.
14280 2002-04-03  Stefan Monnier  <monnier@cs.yale.edu>
14282         * doc.c (Fdocumentation, Fdocumentation_property): When the doc
14283         data is 0, just return nil.
14285 2002-04-03  Eli Zaretskii  <eliz@is.elta.co.il>
14287         * msdos.c (syms_of_msdos): Fix last change with
14288         mouse_autoselect_window.
14290 2002-04-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14292         * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
14293         mouse_autoselect_window.
14295 2002-04-02  Stefan Monnier  <monnier@cs.yale.edu>
14297         * keyboard.c (make_lispy_event): Handle unknown keysyms together
14298         with system-specific keysyms.  Use it also for unknown function keys.
14300         * doc.c (reread_doc_file): Return whether reload was attempted.
14301         (Fdocumentation, Fdocumentation_property): Don't try to reload
14302         if the doc is 0 and only ask once.
14304         * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
14306 2002-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
14308         * keyboard.c (read_char): If the event was Qselect_window,
14309         restore timer_idleness_start_time to its previous value.
14311         * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
14313 2002-04-01  Stefan Monnier  <monnier@cs.yale.edu>
14315         * region-cache.c (new_region_cache): Use BEG.
14317         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
14318         Use BEG and BEG_BYTE.
14320         * doc.c (get_doc_string): Return nil if the location is wrong.
14321         (reread_doc_file): New fun.
14322         (Fdocumentation, Fdocumentation_property):
14323         Call it if get_doc_string fails.
14324         (Fsnarf_documentation): Make it work for a dumped Emacs.
14326         * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
14327         Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
14329         * charset.c (Fstring): Allow 0 arguments.
14331         * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
14333         * process.c (DATAGRAM_CONN_P, list_processes_1)
14334         (Fprocess_datagram_address, Fset_process_datagram_address)
14335         (Fset_network_process_options, server_accept_connection):
14336         Fix some int/Lisp_Object confusions (thank you union types).
14338 2002-04-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14340         * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
14342         * w32term.c: Likewise.
14343         (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
14345         * keyboard.c (Qselect_window): New symbol.
14346         (head_table): Use it.
14347         (keys_of_keyboard): Bound select-window event to handle-select-window.
14348         (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
14350         * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
14351         (last_window): New variable.
14352         (XTread_socket): Generate SELECT_WINDOW_EVENTs.
14353         (note_mouse_movement): Remove reimplemented code in #if 0.
14354         (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
14355         Emacs windows.
14357         * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
14359 2002-03-31  Gerd Moellmann  <gerd@gnu.org>
14361         * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
14362         Callers changed.
14364 2002-03-30  Richard M. Stallman  <rms@gnu.org>
14366         * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
14367         loop whenever it stops making progress.
14369         * widget.c (set_frame_size): Don't call change_frame_size.
14371 2002-03-30  Gerd Moellmann  <gerd@gnu.org>
14373         * dispnew.c (direct_output_for_insert):
14374         Call mark_window_display_accurate.
14376 2002-03-29  Jason Rumney  <jasonr@gnu.org>
14378         * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
14380 2002-03-29  Eli Zaretskii  <eliz@is.elta.co.il>
14382         * Makefile.in (lread.o): Depend on coding.h.
14384         * lread.c (openp, Fload): Encode the file name before passing it
14385         to `stat', `access', and `emacs_open'.
14386         (openp): GCPRO the encoded file name.  Don't recompute Lisp
14387         strings unnecessarily.
14389 2002-03-29  Kim F. Storm  <storm@cua.dk>
14391         * fns.c (Flax_plist_put): Doc fix.
14393 2002-03-28  Miles Bader  <miles@gnu.org>
14395         * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
14397 2002-03-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14399         * process.c (set-network-process-options): Add usage.
14400         (make-network-process): Doc fix.
14402 2002-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
14404         * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
14406 2002-03-26  Richard M. Stallman  <rms@gnu.org>
14408         * fns.c (Fsubstring_no_properties): New function.
14409         (Flax_plist_get, Flax_plist_put): New functions.
14410         (syms_of_fns): defsubr them.
14412         * xdisp.c (update_menu_bar): Test only update_mode_lines;
14413         don't test or alter w->update_mode_line.
14415         * window.c (Fdisplay_buffer): Doc fix.
14417 2002-03-24  Richard M. Stallman  <rms@gnu.org>
14419         * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
14421 2002-03-24  Gerd Moellmann  <gerd@gnu.org>
14423         * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
14424         (Fdefmacro): Handle `(declare ...)'.
14425         (syms_of_eval) <Qdeclare>: Initialize and staticpro.
14426         (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
14428 2002-03-24  Jason Rumney  <jasonr@gnu.org>
14430         * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
14431         (xbm_file_p): Add prototypes.
14432         (xbm_format, xbm_image_p): Sync with xfns.c.
14433         (reflect_byte): New function.
14434         (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
14435         (xbm_load_image): Create bitmaps with a depth of 1.
14436         (init_xfns): Enable XBM images.
14438 2002-03-23  Jason Rumney  <jasonr@gnu.org>
14440         * w32term.c (w32_handle_tool_bar_click): Detect up and down events
14441         correctly.  Do not pass up_modifier to keyboard buffer.
14443         * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
14445 2002-03-22  Stefan Monnier  <monnier@cs.yale.edu>
14447         * Makefile.in (bootstrapclean): New target.
14448         (bootstrap-temacs, bootstrap-doc): Remove.
14449         (bootstrap-emacs): Use a bog-standard `temacs'.
14450         Don't bother to build a DOC file.
14452         * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
14454         * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
14455         in temacs even if !CANNOT_DUMP.
14456         (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
14458         * alloc.c (check_pure_size): Only output a warning.
14460 2002-03-22  Jason Rumney  <jasonr@gnu.org>
14462         * w32fns.c (Fx_create_frame): Enable tool-bar when images are
14463         supported.
14465         * w32term.c (zv_bits): Declare as short, for word alignment.
14466         (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
14467         (syms_of_w32term): Define x-use-underline-position-properties.
14469         * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
14470         (clear_image_cache): Block input, fix logic, clear matrices in
14471         all frames that share this cache.
14473 2002-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
14475         * emacs.c (main): Update the Copyright year in the blurb printed
14476         by "emacs --version".
14478         * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
14480         * xterm.c (XTread_socket): If XK_ISO_Lock and
14481         XK_ISO_Last_Group_Lock are defined, handle keysyms between
14482         XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
14484 2002-03-21  Kim F. Storm  <storm@cua.dk>
14486         * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
14487         menu-bar bindings in keymap and local-map properties _are_ used.
14488         But try keymap property first in accordance with 2002-01-03 patch.
14489         Added comment describing why this is not always reliable.
14490         (tool_bar_items): Ditto for tool-bar.
14492 2002-03-21  Jason Rumney  <jasonr@gnu.org>
14494         * w32fns.c (x_clear_image_1): Disable color table code.
14496 2002-03-21  Kim F. Storm  <storm@cua.dk>
14498         * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
14499         removed the wrong version of the DEFUN macro; fixed it.
14501         * fns.c (Ffeaturep): Allow subfeature to be a list (test using
14502         Fmember rather than Fmemq).
14503         (Fprovide): Check that subfeatures is a list.
14505         * process.c (QCfeature, QCdatagram): Removed variables.
14506         (QCtype, Qdatagram): New variables.
14507         (network_process_featurep): Removed function.
14508         (Fmake_network_process): Removed :feature check.
14509         Use :type 'datagram instead of :datagram t to create a datagram
14510         socket.  This allows us to add other connection types (e.g. raw
14511         sockets) later in a consistent manner.
14512         (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
14513         supported subfeatures for feature make-network-process.
14514         (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
14515         Intern and staticpro QCtype and Qdatagram.
14516         (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
14518         * xfns.c: (QCtype): Remove duplicate declaration and
14519         initialization (is now declared in process.c).
14521         * w32fns.c: (QCtype): Remove duplicate declaration and
14522         initialization (is now declared in process.c).
14524 2002-03-21  Richard M. Stallman  <rms@gnu.org>
14526         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
14527         (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
14528         when jumping to `fail' to avoid undoing reg changes in the
14529         last iteration of the loop.
14530         (GET_UNSIGNED_NUMBER): Skip spaces around the number.
14532         * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
14533         Depend on process.h.
14535 2002-03-20  Jason Rumney  <jasonr@gnu.org>
14537         Most of the following changes are still conditional on HAVE_IMAGES
14538         which is not set by default on Windows.
14540         * emacs.c (main) [WINDOWSNT]: Call init_xfns.
14542         * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
14543         (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
14544         (four_corners_best, x_clear_image_1, x_clear_image)
14545         (x_alloc_image_color, postprocess_image)
14546         (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
14547         (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
14548         (init_xfns, syms_of_w32fns): Initialize image functions and constants.
14550         * w32gui.h (struct XImage): Define.
14552         * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
14553         extract mouse co-ordinates.
14555 2002-03-20  Jason Rumney  <jasonr@gnu.org>
14557         * w32.c (init_winsock): Dynamically load new server and UDP
14558         socket functions.
14559         (socket_to_fd): New function.
14560         (sys_socket): Use it.
14561         (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
14562         (sys_recvfrom, sys_sendto): New wrapper functions.
14564         * process.c (QCfamily, QCfilter): Remove duplicate declaration
14565         and initialization.
14567         * makefile.w32-in (LIBS): Remove $(WSOCK32).
14569 2002-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
14571         * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
14572         Don't use "sun" as a variable, it's a predefined constant on Sun
14573         machines.
14575 2002-03-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14577         * bytecode.c (Fbyte_code): Revert last change.
14579 2002-03-19  Kim F. Storm  <storm@cua.dk>
14581         * makefile.w32-in (LIBS): Add $(WSOCK32).
14582         From David Ponce <dponce@voila.fr>.
14584 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14586         * process.c (wait_reading_process_input): Move variables `pname'
14587         and `pnamelen' down where they are used.
14589         * bytecode.c (Fbyte_code): Discard unused computed value to
14590         prevent gcc warning.
14592         * lisp.h (Fplist_member): Add prototype.
14594 2002-03-18  Kim F. Storm  <storm@cua.dk>
14596         * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
14597         HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
14599         * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
14600         Remove explicit GNU_LINUX settings for datagram support.
14602 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14604         * process.c (Fmake_network_process): Remove unused variable `sa'.
14605         Doc fix.  Add usage:.
14606         (set_socket_options): Remove unused variables `optnum' and `opttype'.
14608 2002-03-17  Richard M. Stallman  <rms@gnu.org>
14610         * xdisp.c (cursor_type_changed): New variable.
14611         (redisplay_internal): Redisplay all windows if cursor_type_changed.
14612         Clear it when clearing windows_or_buffers_changed.
14613         (try_cursor_movement, redisplay_window, try_window_id)
14614         (try_window_reusing_current_matrix): Test cursor_type_changed
14615         along with windows_or_buffers_changed.
14617         * window.h (cursor_type_changed): New variable.
14619         * xfns.c (x_set_cursor_type): Set cursor_type_changed,
14620         not update_mode_lines, and always set it to 1.
14622         * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
14623         if no frames needed redrawing.
14625 2002-03-17  Kim F. Storm  <storm@cua.dk>
14627         The following changes add support for network server processes,
14628         datagram connections, and local (unix) sockets.
14630         * process.h (struct Lisp_Process): New member log.
14631         Doc fix: Member command used to indicate stopped network process.
14632         Doc fix: Member childp contains plist for network process.
14633         Doc fix: Member kill_without_query is inverse of query-on-exit flag.
14635         * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
14636         (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
14637         (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
14638         New variables.
14639         (NETCONN1_P): New macro.
14640         (DATAGRAM_SOCKETS): New conditional symbol.
14641         (datagram_address): New array.
14642         (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
14643         (status_message): Use concat3.
14644         (Fprocess_status): Add `listen' status to doc string.  Return `stop'
14645         for a stopped network process.
14646         (Fset_process_buffer): Update contact plist for network process.
14647         (Fset_process_filter): Ditto.  Don't enable input for stopped
14648         network processes.  Server must listen, even if filter is t.
14649         (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
14650         New functions.
14651         (Fprocess_kill_without_query): Removed.  Now defined in simple.el.
14652         (Fprocess_contact): Added KEY argument.  Handle datagrams.
14653         (list_processes_1): Optionally show only processes with the query
14654         on exit flag set.  Dynamically adjust column widths.  Omit tty
14655         column if not needed.  Report stopped network processes.
14656         Identify server and datagram network processes.
14657         (Flist_processes): New optional arg `query-only'.
14658         (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
14659         (conv_lisp_to_sockaddr, set_socket_options)
14660         (network_process_featurep, unwind_request_sigio): New helper functions.
14661         (Fprocess_datagram_address, Fset_process_datagram_address):
14662         (Fset_network_process_options): New lisp functions.
14663         (Fopen_network_stream): Removed.  Now defined in simple.el.
14664         (Fmake_network_process): New lisp function.  Code is based on previous
14665         Fopen_network_stream, but heavily reworked with new property list based
14666         argument list, support for datagrams, server processes, and local
14667         sockets in addition to old client-only functionality.
14668         (server_accept_connection): New function.
14669         (wait_reading_process_input): Use it to handle incoming connects.
14670         Do not enable input on a new connection if process is stopped.
14671         (read_process_output): Handle datagram sockets.  Use 2k buffer for them.
14672         (send_process): Handle datagram sockets.
14673         (Fstop_process, Fcontinue_process): Apply to network processes.  A stopped
14674         network process is indicated by setting command field to t .
14675         (Fprocess_send_eof): No-op if datagram connection.
14676         (Fstatus_notify): Don't read input for a stream server socket or a
14677         stopped network process.
14678         (init_process): Initialize datagram_address array.
14679         (syms_of_process): Intern and staticpro new variables, defsubr new
14680         functions.
14682 2002-03-16  Jason Rumney  <jasonr@gnu.org>
14684         * w32fns.c (w32_to_all_x_charsets): Return correct type in
14685         startup case.
14687 2002-03-16  Richard M. Stallman  <rms@gnu.org>
14689         * xdisp.c (redisplay_internal, redisplay_windows):
14690         Use list_of_error to call internal_condition_case_1.
14691         (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
14692         so as to catch all errors with no possibility of debugger redisplay.
14693         (list_of_error): New variable.
14694         (syms_of_xdisp): Init and staticpro it.
14696         * print.c (print_object): Delete `\ ' from printed rep of frame.
14698 2002-03-15  Eli Zaretskii  <eliz@is.elta.co.il>
14700         * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
14701         until its implementation is fixed.
14703 2002-03-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14705         * xfns.c (png_load): Remove unused variable `gamma_str'.
14707 2002-03-14  Richard M. Stallman  <rms@gnu.org>
14709         * xfns.c (x_real_positions): Handle failure in XQueryTree.
14711 2002-03-14  Miles Bader  <miles@gnu.org>
14713         * intervals.c (adjust_for_invis_intang): New function.
14714         (set_point_both): Use `adjust_for_invis_intang' to do most of the
14715         work for dealing with invisible+intangible regions.  Do so before
14716         and after both forward and backward movements, to handle both
14717         front-sticky and rear-sticky cases.
14718         * textprop.c (text_property_stickiness): Function moved here from
14719         `editfns.c'.
14720         * intervals.h (text_property_stickiness): New declaration.
14721         * editfns.c (char_property_eq): Function removed.
14722         (text_property_stickiness): Function moved to `textprop.c'.
14724 2002-03-13  Jason Rumney  <jasonr@gnu.org>
14726         * config.in: Add STRFTIME_NO_POSIX2.
14728         * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
14729         and %OX when underlying strftime does not.
14731 2002-03-13  Stefan Monnier  <monnier@cs.yale.edu>
14733         * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
14734         Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
14735         line) to avoid annoying flicker.
14736         (xm_scroll_callback): Get rid of the now unnecessary kludge.
14737         (XTread_socket): Mark it static.
14739         * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
14741 2002-03-13  Kim F. Storm  <storm@cua.dk>
14743         * puresize.h (BASE_PURESIZE): Increase to 775000.
14745 2002-03-12  Juanma Barranquero  <lektu@terra.es>
14747         * editfns.c (syms_of_editfns): Fix typo.
14749 2002-03-12  Gerd Moellmann  <gerd@gnu.org>
14751         * xsmfns.c: Include stdio.h because termhooks.h needs it.
14752         Include termopt.h for interrupt_input.
14754 2002-03-11  Andreas Schwab  <schwab@suse.de>
14756         * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
14758 2002-03-11  Gerd Moellmann  <gerd@gnu.org>
14760         * xterm.c (note_mouse_movement): Put code for
14761         x_autoselect_window_p in #if 0.
14763         * lread.c (Fload): Don't assume that message_with_string uses the
14764         string it is given like a C string.
14766 2002-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
14768         * xterm.h (x_session_check_input, x_session_initialize): Declare.
14770         * xterm.c: (XTread_socket): Add call to x_session_check_input and
14771         x_session_have_connection.
14772         (x_initialize): Add call to x_session_initialize.
14774         * termhooks.h (enum event_kind): Add save_session_event.
14776         * keyboard.c: Add Emacs event save_session_event.
14778         * emacs.c (main): Add call to syms_of_xsmfns.
14780         * lisp.h (syms_of_xsmfns): Declare extern.
14782         * config.in: Add HAVE_X_SM.
14784         * Makefile.in (LIBXT): Add -lSM -lICE
14785         if HAVE_X_SM and not USE_X_TOOLKIT.
14786         (XOBJ): New file xsmfns.c added.
14788         * xsmfns.c: New file for X session management.
14790 2002-03-09  Jason Rumney  <jasonr@gnu.org>
14792         * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
14793         read-only when setting modified time.
14795 2002-03-08  Gerd Moellmann  <gerd@gnu.org>
14797         * xdisp.c (move_it_vertically_backward): At the end of the function,
14798         when moving forward by lines, treat terminal frames specially.
14800         * keyboard.c (echo_char): Make sure to add a separator between
14801         keys even if echo_dash hasn't been called.
14803         * xdisp.c: Use new string macros.
14804         (update_echo_area): Pass number of bytes to message3 instead of
14805         number of chars.
14806         (set_message_1): Don't access a string's size_byte directly.
14807         (decode_mode_spec_coding): Use number of bytes of eoltype string
14808         instead number of chars.
14810         * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
14812 2002-03-08  Juanma Barranquero  <lektu@terra.es>
14814         * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
14815         24-bit.
14817 2002-03-06  Jason Rumney  <jasonr@gnu.org>
14819         * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
14821 2002-03-06  Gerd Moellmann  <gerd@gnu.org>
14823         * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
14824         (cancel_echoing, echo_length, echo_truncate): Changed to
14825         work with new kboard definition.
14826         (echo_now): Use message3_nolog instead of message2_nolog.
14828         * alloc.c (mark_kboards): Mark echo_string.
14830         * keyboard.h (ECHOBUFSIZE): Removed.
14831         (struct kboard): Member echoptr removed, member echobuf renamed
14832         to echo_string.
14834         * xdisp.c (message_with_string): Use Fformat instead of doprnt and
14835         message3 instead of message2 to display the message using STRING's
14836         text properties.
14838 2002-03-05  Andreas Schwab  <schwab@suse.de>
14840         * xdisp.c (hscroll_margin): Change to EMACS_INT.
14842 2002-03-05  Per Abrahamsen  <abraham@dina.kvl.dk>
14844         * frame.c (default-frame-alist): Explain that setting it doesn't
14845         affect existing frames.
14847 2002-03-05  Stefan Monnier  <monnier@cs.yale.edu>
14849         * indent.c (skip_invisible): Fix my brain fart.
14851         * dispnew.c (sit_for): Don't wait if executing a kbd macro.
14853 2002-03-04  Stefan Monnier  <monnier@cs.yale.edu>
14855         * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
14856         * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
14857         * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
14858         * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
14859         and variables to use EMACS_INT instead of just int.
14861         * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
14863 2002-03-04  Eli Zaretskii  <eliz@is.elta.co.il>
14865         * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
14866         environment, pass it down with corrected value.
14868 2002-03-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
14870         * lread.c (read_filtered_event): Do not call start_hourglass
14871         before returning.
14873 2002-03-04  Juanma Barranquero  <lektu@terra.es>
14875         * w32term.c (x_display_and_set_cursor): Fix typo.
14877 2002-03-03  Richard M. Stallman  <rms@gnu.org>
14879         * fileio.c (Fmake_temp_name): Doc fix.
14881 2002-03-03  Gary Wong  <gtw@gnu.org>
14883         * termcap.c [!emacs]: Replace ospeed for building standalone
14884         libtermcap, for binary compatibility.
14886         * tparam.c [!emacs]: Move #define of bcopy to after string.h.
14888 2002-03-03  Richard M. Stallman  <rms@gnu.org>
14890         * xrdb.c (file_p): Rename arg `path' to `filename'.
14892         * abbrev.c (Fexpand_abbrev): Increment plist as use count
14893         only if it is an integer.
14895         * xfns.c (png_load): Set screen_gamma based on f->gamma.
14896         If png_get_sRGB gives an answer, call png_set_gamma
14897         using the default image gamma value.
14899         * lread.c (read1): When reading from a file, default string to
14900         multibyte only if it has some multibyte characters.
14902         * print.c (print_object): Output multibyte chars 128...255
14903         using \x even if ! print_escape_multibyte.
14905         * xdisp.c (display_mode_element): Move the places where
14906         bytepos, charpos, this, and lisp_string are set.
14907         Use lisp_string to set bytepos.
14909         * xdisp.c (redisplay_internal):
14910         Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
14912         * xdisp.c (display_mode_element): Merge properties specified with
14913         :propertize onto those that come with the string.
14915 2002-03-03  Eli Zaretskii  <eliz@is.elta.co.il>
14917         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
14918         automatic-hscrolling.  Users changed.
14919         <hscroll-margin>: Renamed from automatic-hscroll-margin.
14920         Users changed.
14921         <hscroll-step>: Renamed from automatic-hscroll-step.  Users changed.
14923 2002-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
14925         * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
14927 2002-03-02  Kim F. Storm  <storm@cua.dk>
14929         * window.c (Fminibuffer_selected_window): New function.
14930         (syms_of_window): Defsubr it.
14932 2002-03-01  Kim F. Storm  <storm@cua.dk>
14934         * window.h (struct window): New member phys_cursor_width.
14936         * window.c (make_window, replace_window): Init phys_cursor_width.
14938         * xterm.c (x_display_and_set_cursor): Blink box cursor using
14939         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
14941         * w32term.c (x_display_and_set_cursor): Blink box cursor using
14942         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
14944         * lisp.h (GCPRO6): New macro.
14946         * process.c (Fopen_network_stream): Use GCPRO6.
14948 2002-03-01  Kim F. Storm  <storm@cua.dk>
14950         * process.c (Qconnect, Qfailed): New variables.
14951         (syms_of_process): Intern and staticpro them.
14952         (Fprocess_status): Document connect and failed return values.
14953         [NON_BLOCKING_CONNECT]: New conditional.
14954         (connect_wait_mask, num_pending_connects): New variables.
14955         (status_message): Convert Qfailed status.
14956         (Fopen_network_stream): Added support for non-blocking connect.
14957         New optional args: filter, sentinel, non_blocking.  Doc updated.
14958         [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
14959         (deactivate_process): Handle pending non-blocking connect.
14960         (wait_reading_process_input): Poll for status of non-blocking
14961         connects.  Exec sentinel directly when connect succeeds.
14962         (status_notify): Don't read process output if not yet connected.
14964 2002-02-28  Kim F. Storm  <storm@cua.dk>
14966         * window.c: (minibuf_selected_window): Renamed from
14967         Vminibuf_selected_window.  Users changed.
14968         (syms_of_window): Staticpro it.
14970 2002-02-26  Kim F. Storm  <storm@cua.dk>
14972         The following changes add a new Vminibuf_selected_window variable
14973         which is similar to Vminibuf_scroll_window, but which is only set
14974         on entry to the minibuffer (from a non-minibuffer window):
14976         * window.c: (Vminibuf_selected_window): New variable.
14977         (struct save_window_data): New member minibuf_selected_window.
14978         (Fset_window_configuration): Restore Vminibuf_selected_window.
14979         (Fcurrent_window_configuration): Save Vminibuf_selected_window.
14980         Set minibuf_scroll_window member to nil if minibuf_level is 0.
14981         (compare_window_configurations): Compare minibuf_selected_window.
14983         * window.h: (Vminibuf_selected_window): Declare extern.
14985         * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
14986         entry to minibuffer or on entry from a non-minibuffer window.
14988         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
14989         Vminibuf_selected_window instead of Vminibuf_scroll_window.
14991         * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
14992         instead of Vminibuf_scroll_window when deciding in which window
14993         the region should be highlighted.  Consequently, the region remains
14994         highlighteded even when a completion buffer is also displayed.
14996 2002-02-26  Eli Zaretskii  <eliz@is.elta.co.il>
14998         * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
15000         * xselect.c (Qcompound_text_with_extensions): Renamed from
15001         Qcompound_text_no_extensions.
15002         (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
15004 2002-02-26  Juanma Barranquero  <lektu@terra.es>
15006         * w32proc.c (syms_of_ntproc): Doc fix.
15008 2002-02-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15010         * intervals.h: Include "dispextern.h" unconditionally.
15012 2002-02-24  Jason Rumney  <jasonr@gnu.org>
15014         * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
15015         and disp-table.elc.
15016         (lisp): Add emacs-lisp/backquote.elc.
15018 2002-02-24  Kim F. Storm  <storm@cua.dk>
15020         * keymap.c (Flookup_key): Fix problem in 2001-12-28 patch:
15021         The validation of the event type was too strict as it didn't
15022         allow string events; buffer names are used in bindings for
15023         menu-bar-select-buffer (see `menu-bar-update-buffers').
15025 2002-02-23  Kim F. Storm  <storm@cua.dk>
15027         The following changes rework my patch of 2002-02-06 which
15028         added command remapping by entering the commands directly into
15029         the keymaps.  Now, command remapping uses an explicit `remap'
15030         prefix in the keymaps, i.e. [remap COMMAND].
15032         * keymap.c (Qremap, remap_command_vector): New variables.
15033         (is_command_symbol): Remove function.
15034         (Fdefine_key): No longer accept a symbol for KEY.
15035         Added validation of [remap COMMAND] argument for KEY.
15036         The DEF is no longer required to be a symbol when remapping a command.
15037         (Fremap_command): New function to remap command through keymaps.
15038         (Flookup_key): Perform command remapping initiated by
15039         Fremap_command directly for speed.
15040         (Fkey_binding): Use Fremap_command for command remapping.
15041         (where_is_internal): Handle new command remapping representation.
15042         (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
15043         staticpro them.  Defsubr Fremap_command.
15045         * keymap.h (Fremap_command): Declare extern.
15046         (is_command_symbol): Remove extern.
15048         * keyboard.c (command_loop_1): Use Fremap_command for command
15049         remapping; now try command remapping for all symbols.
15051 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
15053         * coding.h (run_pre_post_conversion_on_str): Add prototype.
15055 2002-02-23  Jason Rumney  <jasonr@gnu.org>
15057         * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
15058         on the string before encoding it.
15059         (Fw32_get_clipboard_data): Run post-read-conversion on the string
15060         after decoding it.
15062         * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
15064 2002-02-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15066         * w32term.c (enter_timestamp): Remove unused static variable to
15067         prevent warning.
15069         * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
15071 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
15073         * w16select.c (Fw16_get_clipboard_data): Fix last change.
15075         * xselect.c (selection_data_to_lisp_data): Fix last change.
15077 2002-02-22  Jason Rumney  <jasonr@gnu.org>
15079         * w32term.h (struct w32_output): New member menu_command_in_progress.
15081         * w32menu.c (menubar_selection_callback): Free the menu and
15082         clear the menu_command_in_progress flag.
15084         * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
15085         (menu_free_timer): New variable.
15086         (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
15087         (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
15088         <WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
15089         menu command is in progress.
15090         <WM_COMMAND>: Set the menu_command_in_progress flag.
15091         Kill any menu_free_timer that is running.
15093         * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
15094         Call ExtTextOutA rather than ExtTextOut.
15096 2002-02-22  Eli Zaretskii  <eliz@gnu.org>
15098         * puresize.h (BASE_PURESIZE): Increase to 755000.
15100 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
15102         * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
15103         on the string before encoding it.
15104         (Fw16_get_clipboard_data): Run post-read-conversion on the string
15105         after decoding it.
15107 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
15109         Support for ICCCM  Extended Segments in X selections:
15111         * xselect.c <Qcompound_text_no_extensions>: New variable.
15112         (syms_of_xselect): Intern and staticpro it.
15113         (selection_data_to_lisp_data): Run post-read-conversion on decoded
15114         selection text.
15115         (lisp_data_to_selection_data): If next-selection-coding-system is
15116         compound-text-no-extensions, set the type of selection to be
15117         compound-text.
15119         * xterm.h (x_encode_text): Update prototype.
15121         * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
15122         callers changed.  If SELECTIONP is non-zero, run the
15123         pre-write-conversion function before encoding the selection text.
15125 2002-02-21  Kim F. Storm  <storm@cua.dk>
15127         * frame.c (syms_of_frame): Change mouse-highlight default to t.
15129         * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
15130         Correct composing of language-change event.
15132 2002-02-20  Kim F. Storm  <storm@cua.dk>
15134         * keyboard.c (menu_bar_items): Don't include keymap or local-map
15135         bindings at PT when building menu (the menu is not updated often
15136         enough for this to work reliable).
15137         (tool_bar_items): Likewise.
15138         (current_active_maps): Removed unused (and buggy) function.
15140 2002-02-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15142         * xfns.c (gif_load): Use correct width and height for GIF images.
15144 2002-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
15146         * floatfns.c (Fatan): Accept an optional second arg and call
15147         atan2 if passed 2 args.
15149 2002-02-18  Jason Rumney  <jasonr@gnu.org>
15151         * w32term.c (glyph_rect): Determine the row and glyph more precisely.
15153 2002-02-17  Jason Rumney  <jasonr@gnu.org>
15155         * w32term.c (x_autoselect_window_p): New variable.
15156         (syms_of_w32term): DEFVAR_BOOL and initialize it.
15157         (note_mouse_movement): Use it.
15159         * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
15161         * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
15163         * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15164         New variables.
15165         (syms_of_w32fns): Intern and staticpro them.
15166         (x_frame_parms) <"fullscreen">: New parameter.
15167         (x_fullscreen_move, x_set_fullscreen): New functions.
15168         (x_set_frame_parameters): Support Qfullscreen.
15169         (x_real_positions): Save x/y_pixels_diff frame params.
15170         (x_figure_window_size): Support full-screen frames.
15171         (Fx_create_frame): Default the fullscreen parameter.
15173         * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
15174         (x_fullscreen_adjust): New functions.
15175         (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't  resize to
15176         fullscreen.  Call x_check_fullscreen_move, and set the
15177         want_fullscreen member of output_data.w32
15178         <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
15180         * w32term.h: New enum for FULLSCREEN_* constants.
15181         (struct w32_output): New members want_fullscreen, x_pixels_diff,
15182         y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
15183         (x-fullscreen-adjust): New prototype.
15185 2002-02-17  Kim F. Storm  <storm@cua.dk>
15187         * frame.c: (Vmouse_highlight): New variable.
15188         (syms_of_frame): DEFVAR_LISP it.
15190         * frame.h: (Vmouse_highlight): Declare extern.
15192         * xterm.h (struct x_display_info): Add mouse_face_hidden.
15194         * xterm.c (disable_mouse_highlight): Removed variable.
15195         (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15196         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15197         (XTread_socket): Turn mouse_face_hidden off after mouse movement,
15198         and on after keyboard input.
15199         (x_term_init): Initialize mouse_face_hidden.
15201         * msdos.h (struct display_info): Add mouse_face_hidden.
15203         * msdos.c (disable_mouse_highlight): Removed variable.
15204         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15205         (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
15206         (internal_terminal_init): Initialize mouse_face_hidden.
15207         (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
15208         and on after keyboard input.
15210         * w32term.h (struct w32_display_info): Add mouse_face_hidden.
15212         * w32term.c (disable_mouse_highlight): Removed variable.
15213         (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
15214         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
15215         (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
15216         and on after keyboard input.
15217         (w32_initialize_display_info): Initialize mouse_face_hidden.
15219 2002-02-16  Eli Zaretskii  <eliz@is.elta.co.il>
15221         * msdos.c (last_mouse_window): New variable.
15222         (dos_rawgetc): Fix last change--if the mouse is in the same window
15223         as recorded in last_mouse_window, don't select this window.
15225         * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
15227         * msdos.c (x_autoselect_window_p): New variable.
15228         (syms_of_msdos): Defvar it.
15229         (dos_rawgetc): If x_autoselect_window_p is set, select the window in
15230         which the last mouse movement occured, unless it is already selected.
15232         * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
15233         New variables.
15234         (syms_of_xdisp): DEVFAR them.
15235         (hscroll_window_tree): Use automatic_hscroll_margin and
15236         Vautomatic_hscroll_step to compute the amount of window scrolling.
15238 2002-02-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15240         * xterm.c (x-autoselect-window): New variable.
15241         (note_mouse_movement): Use it.
15243         * keyboard.c: Do not include "systime.h" twice.
15245 2002-02-15  Andreas Schwab  <schwab@suse.de>
15247         * puresize.h (PURESIZE_RATIO): Increase to 9/5.
15249         * alloc.c (NSTATICS): Increase to 1280.
15251 2002-02-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
15253         * alloc.c (NSTATICS): Bump to 1026.
15255         * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
15256         (Vx_super_keysym): New variables.
15257         (syms_of_xterm): DEFVAR_LISP them.
15258         (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
15259         variables to determine which keys to use for the various modifiers.
15261 2002-02-13  Kim F. Storm  <storm@cua.dk>
15263         * window.c: (Vmode_line_in_non_selected_windows): Removed.
15264         (mode_line_in_non_selected_windows): New variable.
15265         (syms_of_window): DEFVAR_BOOL it.
15267         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
15268         Use mode_line_in_non_selected_windows.
15269         (mode_line_in_non_selected_windows): Declare extern.
15270         (Vmode_line_in_non_selected_windows): Removed extern.
15272 2002-02-13  Richard M. Stallman  <rms@gnu.org>
15274         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
15275         (Fthis_single_command_keys, Fthis_single_command_raw_keys)
15276         (Fclear_this_command_keys): Doc fixes.
15278         * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
15279         (update_face_from_frame_parameter): Increment face_change_count
15280         and windows_or_buffers_changed to force redisplay using changed faces.
15282         * xdisp.c (QCpropertize): New variable.
15283         (mode_line_proptrans_alist): New variable.
15284         (display_mode_element): New arg PROPS; all calls changed.
15285         Implement this, for strings.
15286         Handle literal output of strings by sharing the
15287         main-line code for strings, using local var `literal'.
15288         Handle :propertize feature.
15289         (syms_of_xdisp): Initialze and staticpro QCpropertize and
15290         mode_line_proptrans_alist.
15292 2002-02-11  Kim F. Storm  <storm@cua.dk>
15294         * window.c: (Vmode_line_in_non_selected_windows): New variable.
15295         (syms_of_window): DEFVAR_LISP it.
15297         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
15298         (CURRENT_MODE_LINE_FACE_ID): Use it.
15299         (Vmode_line_in_non_selected_windows): Declare extern.
15301         * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
15302         to get mode line face.
15304 2002-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
15306         * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
15307         variables; cus-start.el doesn't need them anymore.
15309 2002-02-09  Kim F. Storm  <storm@cua.dk>
15311         * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
15312         reduction.  This fixes a display problem where stray newlines were
15313         inserted in the window (corrected by C-l).  Clarified code (IMHO).
15315 2002-02-09  Eli Zaretskii  <eliz@is.elta.co.il>
15317         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
15319         * xdisp.c (display_mode_lines): Fix last change.
15321 2002-02-09  Jason Rumney  <jasonr@gnu.org>
15323         * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
15324         match each other.
15325         (w32_load_system_font): Prevent Cleartype fonts from loading.
15326         (Fx_show_tip): Ensure tip frames are above other topmost windows.
15328 2002-02-09  Kim F. Storm  <storm@cua.dk>
15330         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
15331         (CURRENT_MODE_LINE_HEIGHT): Use it.
15332         (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
15334         * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
15335         (pos_visible_p, handle_face_prop): Likewise.
15336         (display_mode_lines): Likewise, but for the real selected window.
15337         (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
15339         * xfaces.c (Qmode_line_inactive): New face variable for mode-line
15340         in non-selected windows.
15341         (realize_basic_faces): Realize it.
15342         (syms_of_term): Intern and staticpro it.
15344 2002-02-08  Kim F. Storm  <storm@cua.dk>
15346         * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
15347         Changed mail addresses to emacs-devel@gnu.org.
15349 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
15351         * fileio.c (Fsubstitute_in_file_name): If the file name includes
15352         ~user, and there's no such user, don't discard everything before ~user.
15354         * floatfns.c (Fround): Doc fix.
15356 2002-02-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15358         * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
15360 2002-02-07  Stefan Monnier  <monnier@cs.yale.edu>
15362         * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
15364 2002-02-07  Kim F. Storm  <storm@cua.dk>
15366         * keymap.c (where_is_internal): Only check whether definition is
15367         remapped if it fulfills is_command_symbol.
15369 2002-02-07  Andreas Schwab  <schwab@suse.de>
15371         * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
15373         * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
15375 2002-02-06  Kim F. Storm  <storm@cua.dk>
15377         * keymap.c (Fdefine_key): Allow symbol as KEY argument for
15378         defining command remapping.  Doc updated.
15379         (Flookup_key): Remap command through keymap if KEY is a symbol.
15380         (is_command_symbol): New function.
15381         (Fkey_binding): Use it.  New optional argument NO-REMAP.
15382         Doc updated.  Callers changed.  Perform command remapping via
15383         recursive call unless that arg is non-nil.
15384         (where_is_internal): New argument no_remap.  Callers changed.
15385         Call recursively to find original key bindings for a remapped
15386         comand unless that arg is non-nil.
15387         (Fwhere_is_internal): New optional argument NO-REMAP.
15388         Doc updated.  Callers changed.  Pass arg to where_is_internal.
15390         * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
15391         (is_command_symbol): Add prototype.
15393         * keyboard.c (Vthis_original_command): New variable.
15394         (syms_of_keyboard): DEFVAR_LISP it.
15395         (command_loop_1): Set it, and perform command remapping.
15397 2002-02-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15399         * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
15401 2002-02-06  Jason Rumney  <jasonr@gnu.org>
15403         * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
15405 2002-02-06  Eli Zaretskii  <eliz@is.elta.co.il>
15407         * charset.c (get_charset_id): Use if-else instead of ?:.
15409 2002-02-06  Richard M. Stallman  <rms@gnu.org>
15411         * filelock.c (S_ISLNK): Define if not defined.
15413 2002-02-03  Richard M. Stallman  <rms@gnu.org>
15415         * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
15417         * lread.c (read1): Redesign strategy for force_multibyte and
15418         force_singlebyte.  Now is_multibyte records whether read_buffer
15419         is multibyte.  Encountering any multibyte character makes it so.
15421 2002-02-02  Stefan Monnier  <monnier@cs.yale.edu>
15423         * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
15424         with the same sequence, map that sequence to f10 rather than f0.
15426 2002-02-03  Andreas Schwab  <schwab@suse.de>
15428         * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
15429         latter never being defined on GNU/Linux.
15431 2002-02-02  Eli Zaretskii  <eliz@is.elta.co.il>
15433         * xfaces.c (realize_default_face): Don't set the weight and slant of
15434         the default face to Qnormal, unless these attributes are unspecified.
15436 2002-02-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15438         * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
15439         Call cancel_hourglass unconditionally.
15441         * eval.c (Fsignal): Remove duplicated declaration of
15442         the variable `display_hourglass_p'.
15444 2002-01-31  Richard M. Stallman  <rms@gnu.org>
15446         * editfns.c (region_limit): Nicer error message.
15448         * coding.c (decode_composition_emacs_mule):
15449         Give up if NCOMPONENT gets too large to index `component'.
15451         * callint.c (check_mark): New arg to specify clearer error message.
15452         Callers changed.
15454 2002-01-27  Richard M. Stallman  <rms@gnu.org>
15456         * minibuf.c (Fcompleting_read): Doc fix.
15458 2002-01-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15460         * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
15461         (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
15462         Fix doc-strings.
15464 2002-01-26  Richard M. Stallman  <rms@gnu.org>
15466         * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
15468         * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
15469         and scroll_up_aggressively.
15471 2002-01-26  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15473         * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
15475 2002-01-25  Stefan Monnier  <monnier@cs.yale.edu>
15477         * textprop.c (Fnext_property_change, Fnext_single_property_change)
15478         (Fprevious_property_change, Fprevious_single_property_change):
15479         Stay within the narrowed-buffer boundaries.
15481 2002-01-25  Eli Zaretskii  <eliz@is.elta.co.il>
15483         * term.c (Ftty_display_color_cells): New function.
15484         (syms_of_term): Defsubr it.
15485         (Ftty_display_color_cells, Ftty_display_color_p): Change the
15486         argument name to DISPLAY.  Doc fix.
15488         * dispextern.h: Add prototype for set_tty_color_mode and
15489         tty_setup_colors.
15491 2002-01-24  Jason Rumney  <jasonr@gnu.org>
15493         * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
15494         If region left to draw is not what was expected, mark the frame as
15495         garbaged.
15497         * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
15498         Combine the regions returned by BeginPaint and GetUpdateRect.
15500 2002-01-23  Jason Rumney  <jasonr@gnu.org>
15502         * w32term.c (x_update_window_begin): Only hide caret if
15503         w32_use_visible_system_caret is set.
15504         (x_update_window_end): Only show caret if
15505         w32_use_visible_system_caret is set.
15506         (syms_of_w32term): Handle SystemParametersInfo call failing.
15508         * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
15510 2002-01-22  Richard M. Stallman  <rms@gnu.org>
15512         * unexelf.c (unexec): Define n so as to cause compilation error
15513         for the code where people have often written n instead of nn.
15515         * .gdbinit (hookpost-run): Defined.
15517 2002-01-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15519         * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
15521 2002-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15523         * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
15524         if fullscreen is being set.
15526 2002-01-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15528         * minibuf.c (Fminibuffer_contents)
15529         (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
15530         (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
15532 2002-01-21  Richard M. Stallman  <rms@gnu.org>
15534         * window.c (check_frame_size): Fix minimum height calculation.
15536 2002-01-20  Ken Raeburn  <raeburn@gnu.org>
15538         * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
15539         height before comparison.
15540         (WINDOW_WANTS_HEADER_LINE_P): Likewise.
15542 2002-01-20  Jason Rumney  <jasonr@gnu.org>
15544         * w32term.c (w32_system_caret_width): Remove.
15545         (w32_use_visible_system_caret): New user flag.
15546         (syms_of_w32term): DEFVAR_BOOL it.  Initialize based on whether
15547         Windows reports a screen reader running.
15548         (x_update_window_begin): Hide the system caret.
15549         (x_update_window_end): Show the system caret.
15550         (x_display_and_set_cursor): Don't draw a cursor when
15551         w32_use_visible_system_caret is set.  Do not adjust width.
15553         * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
15554         (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
15555         <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
15556         the user requests it.  Use system default width when creating.
15557         <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
15559         * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
15560         New window messages.
15562 2002-01-20  Richard M. Stallman  <rms@gnu.org>
15564         * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
15566 2002-01-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15568         * doprnt.c (doprnt1): Fix typos in error call.
15570 2002-01-20  Eli Zaretskii  <eliz@is.elta.co.il>
15572         * unexelf.c (unexec) [__sgi]: Support the .got sections.
15574 2002-01-20  Jason Rumney  <jasonr@gnu.org>
15576         * w32term.c (w32_native_per_char_metric): Don't trust the metrics
15577         that Windows returns.  If a double check fails, try to guess how
15578         ExtTextOut is going to act.
15580         * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
15581         in place of stricmp.
15582         (w32_list_synthesized_fonts): Removed.
15583         (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
15584         (struct enumfont_t): New element; list.
15585         (enum_font_cb2): List all style and charset variations of a font.
15586         (Fw32_select_font): New optional argument; include_proportional.
15587         Exclude vertical fonts.  Exclude proportional fonts unless
15588         include_proportional is non-nil.
15589         (w32_enable_synthesized_fonts): Change to a boolean.
15590         (Fw32_send_sys_command): Doc fix.
15592 2002-01-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15594         * dispnew.c (update_frame): Move the variable `tem' to the block
15595         where it is used.
15597 2002-01-19  Jason Rumney  <jasonr@gnu.org>
15599         * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
15600         call to face-set-after-frame-default.
15602 2002-01-18  Richard M. Stallman  <rms@gnu.org>
15604         * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
15605         (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
15607 2002-01-17  Richard M. Stallman  <rms@gnu.org>
15609         * window.c (enlarge_window): When exceeding size of parent,
15610         directly delete all the siblings instead of trying to resize it.
15612 2002-01-17  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15614         * term.c (set_tty_color_mode): Remove unused variable `tem'.
15616 2002-01-16  Henrik Enberg  <henrik@enberg.org>
15618         * lread.c (init_lread): Move the installed-lisp dirs later in the path.
15620 2002-01-16  Kim F. Storm  <storm@cua.dk>
15622         * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
15623         is invisible.  This can happen if cursor is on top line of a
15624         window, and we switch to a buffer with a header line.
15626         * w32term.c (x_erase_phys_cursor): Ditto.
15628 2002-01-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15630         * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
15631         `dont_resize' only when used.
15633         * xdisp.c: Remove forgotten extern declaration of `Qimage'.
15635 2002-01-15  Eli Zaretskii  <eliz@is.elta.co.il>
15637         * xdisp.c (display_mode_element): When computing charpos, depend
15638         on multibyteness of elt, not the text in field.
15640 2002-01-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15642         * buffer.c (Fkill_all_local_variables):
15643         Increment `update_mode_lines' only once.
15645 2002-01-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15647         * lisp.h (adjust_after_replace_noundo)
15648         (Fupdate_coding_systems_internal): Add prototypes.
15650         * sound.c (Fplay_sound): Initialize header_size also for :data case.
15652 2002-01-14  Eli Zaretskii  <eliz@is.elta.co.il>
15654         Support for the --color command-line argument and tty-color-mode
15655         frame parameter:
15657         * term.c (tty_default_color_capabilities, tty_setup_colors)
15658         (set_tty_color_mode): New functions.
15659         (term_init): Call tty_default_color_capabilities.
15660         (Qtty_color_mode_alist): New variable.
15661         (syms_of_term): Intern and staticpro it.
15663         * frame.c (store_frame_param): Call set_tty_color_mode for termcap
15664         frames.
15665         (do_switch_frame): For termcap frames, switch the tty
15666         color mode as specified by the frame's parameters.
15667         (Qtty_color_mode): New variable.
15668         (syms_of_frame): Intern and staticpro it.
15670         * emacs.c (USAGE2): Add the --color option.
15671         (standard_args): Ditto.
15673 2002-01-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
15675         * xterm.h (struct x_output): New members want_fullscreen,
15676         x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
15677         y_pixels_outer_diff.
15678         New enum for FULLSCREEN_* constants.
15679         (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
15680         is NULL.
15681         (x_fullscreen_adjust): Add prototype.
15683         * emacs.c (USAGE2): Add the new full-screen arguments.
15684         (standard_args): Ditto.
15686         * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
15687         New variables.
15688         (syms_of_xfns): Intern and staticpro them.
15689         (x_frame_parms) <"fullscreen">: New parameter.
15690         (x_fullscreen_move, x_set_fullscreen): New functions.
15691         (x_set_frame_parameters): Support for Qfullscreen.
15692         (x_real_positions): More accurate computation of the frame position.
15693         (x_figure_window_size): Support full-screen frames.
15694         (Fx_create_frame): Default the fullscreen parameter.
15696         * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
15697         (XTread_socket) <Expose>: Call x_check_fullscreen.
15698         <ConfigureNotify>: Don't resize to fullscreen.
15699         Call x_check_fullscreen_move, and set the want_fullscreen member of
15700         output_data.x.
15702 2002-01-13  Jason Rumney  <jasonr@gnu.org>
15704         * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
15705         for mice with more than 3 buttons.
15707         * w32term.c (parse_button): New parameter xbutton.  Callers changed.
15708         (w32_read_socket): Handle new "XBUTTON" messages.
15710         * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
15711         (syms_of_w32fns): DEFVAR_BOOL it.
15712         (w32_wnd_proc): Handle new "XBUTTON" messages.
15714 2002-01-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15716         * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
15718 2002-01-13  Andreas Schwab  <schwab@suse.de>
15720         * xterm.c (x_load_font): Never set fonts_changed_p to zero.
15722 2002-01-12  Andreas Schwab  <schwab@suse.de>
15724         * .gdbinit (xbuffer): Remove address operator since data is now a
15725         pointer.
15727 2002-01-11  Richard M. Stallman  <rms@gnu.org>
15729         * insdel.c (adjust_after_replace_noundo): New function.
15731         * coding.c (code_convert_region): Don't copy old text if undo disabled.
15733 2002-01-09  Jason Rumney  <jasonr@gnu.org>
15735         * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
15736         when checking for multiple frames.
15738 2002-01-08  Richard M. Stallman  <rms@gnu.org>
15740         * window.c (delete_window): Rewrite the code for changing the
15741         selected window to handle the case where WINDOW is not a leaf.
15743 2002-01-07  Eli Zaretskii  <eliz@is.elta.co.il>
15745         * process.c (send_process): Set src_multibyte to 1 after the call
15746         top setup_coding_system, not before the call.
15748 2002-01-07  Jason Rumney  <jasonr@gnu.org>
15750         * xmenu.c (set_frame_menubar, xmenu_show):
15751         (xdialog_show): Initialize wv->help to Qnil.
15753         * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
15754         (w32_dialog_show): Initialize wv->help to Qnil.
15756 2002-01-06  Jason Rumney  <jasonr@gnu.org>
15758         * xmenu.c (single_submenu): Initialize wv->help to Qnil.
15760         * w32menu.c (w32_menu_display_help): Revert last change.
15762         * xmenu.c (menu_highlight_callback): Revert last change.
15764 2002-01-06  Andreas Schwab  <schwab@suse.de>
15766         * insdel.c (make_gap_larger): Make sure buffer size does not
15767         overflow range of int.
15769 2002-01-05  Jason Rumney  <jasonr@gnu.org>
15771         * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
15772         OVERLAPS_P.
15774         * w32menu.c (w32_menu_display_help): Hide any tooltip window.
15776         * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
15777         to the left or to the right of the pointer, put it against
15778         the left screen edge.
15779         (x_frame_parms): Add missing braces around initializer.
15781         * w32term.c (x_setup_relief_colors): Don't compute an image's
15782         background color if it doesn't have a Pixmap.
15783         (notice_overwritten_cursor): Don't depend on
15784         output_cursor and updated_area.  Compare pixel coordinates with
15785         window's cursor pixel coordinates.
15786         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15787         Call notice_overwritten_cursor with new arg list.
15788         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15789         unconditionally.
15790         (x_draw_image_relief): Use predefined macro instead of
15791         constant when the value of `tool_bar_button_relief' is negative.
15793         * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
15795 2002-01-04  Richard M. Stallman  <rms@gnu.org>
15797         * xmenu.c (menu_highlight_callback): Hide any tooltip window.
15799 2002-01-03  Richard M. Stallman  <rms@gnu.org>
15801         * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
15802         (Fkey_binding): Try the `keymap' property map first.
15803         (Fdescribe_buffer_bindings): Show `keymap' property bindings before
15804         minor mode bindings.
15806 2002-01-03  Kim F. Storm  <storm@cua.dk>
15808         * keyboard.c (read_key_sequence): Fix cast of submaps arg to bcopy.
15810 2002-01-02  Richard M. Stallman  <rms@gnu.org>
15812         * keyboard.c (read_key_sequence): Handle the keymap property
15813         before minor mode maps.
15815         * editfns.c (Fformat): Update thissize from field_width
15816         based on the actual width, in the string case.
15818 2002-01-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15820         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
15821         when used as truth value to prevent gcc warnings.
15823         * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
15824         * w32proc.c: Include <config.h>.
15826 2002-01-01  Andreas Schwab  <schwab@suse.de>
15828         * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
15829         not EMACS_INT, to make them compatible with DEFVAR_INT.
15830         * lisp.h (max_specpdl_size): Adjust declaration.
15832 2002-01-01  Richard M. Stallman  <rms@gnu.org>
15834         * print.c (print_object): Test print_escape_nonascii only for
15835         unibyte strings.
15836         (PRINTPREPARE): Once again bind Qprint_escape_nonascii
15837         when outputting to a multibyte buffer.
15839 2001-12-29  Richard M. Stallman  <rms@gnu.org>
15841         * print.c (print_object): In multibyte string, use hex escapes.
15842         Use octal only for unibyte strings.
15843         (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
15845         * lread.c (read_escape): New arg BYTEREP for reporting whether
15846         escape forces unibyte or multibyte.
15847         (read1): When reading a string, take note of that info.
15849 2001-12-29  Ken Raeburn  <raeburn@gnu.org>
15851         * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
15852         comparison to test lisp value returned by Fget.
15854 2001-12-29  Richard M. Stallman  <rms@gnu.org>
15856         * lisp.h (max_specpdl_size): Add declaration.
15858         * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
15860         * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
15861         Handle modifier bits.  Correct typo in error message.
15863 2001-12-28  Richard M. Stallman  <rms@gnu.org>
15865         * abbrev.c: Use the plist of an abbrev for multiple params if nec.
15866         (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
15867         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
15868         Update calls to Fdefine_abbrev.
15869         (write_abbrev): Update for changed data format.
15870         Don't list "system" abbrevs.
15871         (Fexpand_abbrev): Update use count with new data format.
15872         (describe_abbrev): Update for changed data format.
15873         (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
15875         * config.in (HAVE_MBSINIT): Add #undef.
15877         * strftime.c (mbsinit): Define as no-op if not available.
15879         * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
15880         (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
15882         * keymap.c (Flookup_key): Error message if key has wrong data type.
15883         (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
15884         (exclude_key): New variable.
15886 2001-12-28  Gerd Moellmann  <gerd@gnu.org>
15888         * xterm.c (x_setup_relief_colors): Don't compute an image's
15889         background color if it doesn't have a Pixmap.
15891         * xterm.c (notice_overwritten_cursor): Don't depend on
15892         output_cursor and updated_area.  Compare pixel coordinates with
15893         window's cursor pixel coordinates.
15894         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
15895         Call notice_overwritten_cursor with new arg list.
15896         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
15897         unconditionally.
15899         * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
15900         height of the cursor line to the amount to scroll.
15902 2001-12-27  Richard M. Stallman  <rms@gnu.org>
15904         * intervals.c (set_point_both): The position after an invisible,
15905         intangible character is not an acceptable stopping point.
15907 2001-12-27  Ken Raeburn  <raeburn@gnu.org>
15909         * window.c (enlarge_window): In new preserve_before code, convert
15910         CURBEG from lisp object to integer before doing arithmetic.
15912 2001-12-27  Richard M. Stallman  <rms@gnu.org>
15914         * bytecode.c (Fbyte_code): Undo previous change.
15916 2001-12-26  Kim F. Storm  <storm@cua.dk>
15918         * keyboard.c (record_char): Ignore duplicate help-echo events only
15919         separated by mouse-movement.  When tracking mouse, only record
15920         first and last mouse-movement event in same window.
15921         Don't record mouse-movement events in keyboard macros.
15923 2001-12-25  Richard M. Stallman  <rms@gnu.org>
15925         * window.c (enlarge_window): New arg PRESERVE_BEFORE.  Callers changed.
15926         (Fenlarge_window): New arg PRESERVE_BEFORE.
15928         * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
15929         instead of Fstring_as_unibyte.
15931 2001-12-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
15933         The following changes remove mocklisp support:
15935         * mocklisp.h, mocklisp.c: Files removed.
15937         * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
15938         `Qmocklisp' and `Qmocklisp_arguments'.
15939         Remove prototype of syms_of_mocklisp.
15941         * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
15943         * callint.c: Do not include mocklisp.h.
15944         (Fcall_interactively): Do not test for mocklisp case.
15946         * eval.c: Remove variables `Qmocklisp_arguments',
15947         `Vmocklisp_arguments' and `Qmocklisp'.  Remove prototype of ml_apply.
15948         (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
15949         Do not test for mocklisp case.
15950         (Fwhile): Remove unused variable `tem'.
15951         (syms_of_eval): Remove variable `moclisp-arguments'.
15953         * data.c (wrong_type_argument): Remove mocklisp case.
15955         * doc.c (Fdocumentation): Remove mocklisp case.
15957         * emacs.c (main): Do not call syms_of_mocklisp.
15959 2001-12-21  Richard M. Stallman  <rms@gnu.org>
15961         * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
15962         to the left or to the right of the pointer, put it against
15963         the left screen edge.
15965 2001-12-21  Eli Zaretskii  <eliz@is.elta.co.il>
15967         * Makefile.in (distclean): Remove .gdbinit if we are building
15968         outside the source tree.
15970 2001-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
15972         * w32.c (emacs_root_dir): New function.
15974         * msdos.c (emacs_root_dir): New function.
15976         * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
15977         of the current drive as the fallback for default_directory.
15979         * dired.c (file_name_completion): Run the elements of
15980         completion-ignored-extensions through ENCODE_FILE.
15982         * lisp.h (scmp): Remove prototype, since it's now a static
15983         function private to dired.c.
15985 2001-12-18  Richard M. Stallman  <rms@gnu.org>
15987         * dired.c (scmp): Function moved from minibuf.c.
15988         Delete multibyte handling--used only on encoded strings.
15990         * minibuf.c (scmp): Function moved to dired.c.
15992         * fns.c (merge): Add QUIT call.
15994 2001-12-18  Dave Love  <fx@gnu.org>
15996         * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
15997         language/georgian.el.
15999 2001-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
16001         * Makefile.in (lisp, shortlisp): Synchronize with changes to
16002         lisp/Makefile.in:DONTCOMPILE.
16004 2001-12-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16006         * xdisp.c (window_box_height): Do not return negative values.
16007         From Gerd Moellmann <gerd@gnu.org>.
16009         * keyboard.c (head_table): Add missing braces around initializer.
16011         * term.c (keys): Likewise.
16013         * xfns.c (x_frame_parms, visual_classes): Likewise.
16015 2001-12-17  Sam Steingold  <sds@gnu.org>
16017         * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
16018         patch (COMPOSING_P, not COMPOSING).
16020 2001-12-17  Richard M. Stallman  <rms@gnu.org>
16022         * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
16024         * coding.c (code_convert_region): Update coding->cmp_data->char_offset
16025         before calling decode_coding.
16027         * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
16029         * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
16030         instead of only for COMPOSITION_DISABLED.
16032 2001-12-16  Richard M. Stallman  <rms@gnu.org>
16034         * alloc.c (pure_alloc): After overflow, allocate just a small block.
16036         * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
16038         * buffer.h (struct buffer): New field `display_error_modiff'.
16039         * buffer.c (reset_buffer): Initialize `display_error_modiff'.
16041         * window.c (Frecenter): Clear display_error_modiff field.
16043         * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
16044         Call redisplay_window, but not if display_error_modiff field says no.
16045         (redisplay_window_error): New function.
16046         (displayed_buffer): New variable.
16047         (redisplay_internal, redisplay_windows): Call the new functions
16048         instead of redisplay_window directly.
16050 2001-12-15  Richard M. Stallman  <rms@gnu.org>
16052         * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
16054 2001-12-14  Andrew Innes  <andrewi@gnu.org>
16056         * makefile.w32-in (EMACSLOADPATH): Define.
16057         ($(EMACS)): Run `list-load-path-shadows' after dumping Emacs.
16058         (bootstrap-temacs): Remove dependency on bootstrap-clean.
16060 2001-12-13  Eli Zaretskii  <eliz@is.elta.co.il>
16062         * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
16063         parameter have a numeric value all the time.
16065         * w32fns.c (x_report_frame_params): Likewise.
16067 2001-12-12  Richard M. Stallman  <rms@gnu.org>
16069         * fileio.c (Fwrite_region): Doc fix.
16071         * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
16072         (redisplay_internal): Call clear_image_cache only for window terminals.
16074 2001-12-12  Gerd Moellmann  <gerd@gnu.org>
16076         * xdisp.c (move_it_vertically_backward): Change heuristic
16077         for the case that we didn't move far enough initially.
16079         * window.c (Frecenter): Simplify computation in the case of window
16080         system frames and ARG < 0; use window_box_height.
16082 2001-12-11  Richard M. Stallman  <rms@gnu.org>
16084         * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
16085         * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
16087 2001-12-11  Andrew Innes  <andrewi@gnu.org>
16089         * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
16090         arg is negative.
16092 2001-12-11  Richard M. Stallman  <rms@gnu.org>
16094         * m/hp800.h: Split the __hpux conditional into the parts
16095         that are right for GNU/Linux too and the parts that are not.
16096         Use the former if GNU_LINUX.
16097         (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
16099         * s/gnu-linux.h (GNU_LINUX): Defined.
16101 2001-12-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16103         * macros.c, msdos.c, w16select.c: Change doc-string comments to
16104         `new style' [w/`doc:' keyword].
16106 2001-12-10  Jason Rumney  <jasonr@gnu.org>
16108         * w32menu.c (w32_free_submenu_strings): Clear menu item struct
16109         before using.
16111 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16113         * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
16114         keyword].
16116 2001-12-09  Eli Zaretskii  <eliz@is.elta.co.il>
16118         * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
16120         * s/hpux10.h (srand48): Don't undefine.
16122 2001-12-09  Jason Rumney  <jasonr@gnu.org>
16124         * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
16125         Add comment to explain where the struct came from.
16126         (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
16127         (add_menu_item): Process pop-up menus first to avoid memory leak.
16128         (add_menu_item, w32_menu_display_help): Use `help' field as
16129         Lisp_Object.
16130         (w32_free_submenu_strings): Only free owner-drawn strings.
16132 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16134         * COPYING: Moved back.
16136         * charset.c (char_to_string_1, translate_char, Fdefine_charset):
16137         Add parentheses around && within ||.
16139         * indent.c (compute_motion): Likewise.
16141         * intervals.c (merge_properties_sticky): Likewise.
16143         * coding.c (setup_coding_system, shrink_encoding_region)
16144         (Fdecode_sjis_char): Likewise.
16146 2001-12-07  Andreas Schwab  <schwab@suse.de>
16148         * xdisp.c (display_mode_element): Don't read past end of string if
16149         it ends with '%'.
16151         * alloc.c (inhibit_garbage_collection): Don't exceed value an int
16152         can hold.
16154         * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
16155         Rename from most_positive_fixnum and most_negative_fixnum, resp., and
16156         type changed to Lisp_Object.
16157         (syms_of_data): DEFVAR_LISP them.
16159 2001-12-07  Richard M. Stallman  <rms@gnu.org>
16161         * callproc.c (init_callproc): Set Vdata_directory based on the source
16162         location whenever Emacs was run uninstalled.
16164 2001-12-06  Paul Eggert  <eggert@twinsun.com>
16166         * config.in (HAVE_WORKING_VFORK): New #undefs.
16167         * process.c (create_process):
16168         Use HAVE_WORKING_VFORK, not HAVE_VFORK.
16169         * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
16170         * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
16171         * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
16172         * m/intel386.h (HAVE_VFORK): Likewise.
16173         * m/mips-siemens.h (HAVE_VFORK): Likewise.
16174         * m/mips.h (HAVE_VFORK): Likewise.
16175         * s/freebsd.h (vfork): Remove #define.
16176         * s/lynxos.h (HAVE_VFORK): Remove #undef.
16177         * s/usg5-4-2.h: Fix comment about vfork.
16179 2001-12-06  Richard M. Stallman  <rms@gnu.org>
16181         * s/hpux10.h (random): Add undef.
16182         (HAVE_RANDOM): Define it just once.
16184 2001-12-06  Stefan Monnier  <monnier@cs.yale.edu>
16186         * eval.c: Undo last change: the standard syntax is not wanted.
16188 2001-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
16190         * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
16191         scroll bars of the frame before deleting the frame itself.  If the
16192         frame has a widget, delete the frame with XtDestroyWidget, and do
16193         not call XDestroyWindow before that.
16195 2001-12-06  Kim F. Storm  <storm@cua.dk>
16197         * xfns.c (x_report_frame_params): Return actual fringe widths.
16199         * w32fns.c (x_report_frame_params): Return actual fringe widths.
16201 2001-12-05  Andrew Innes  <andrewi@gnu.org>
16203         * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
16204         excessively large.
16206         * insdel.c (make_gap_larger): New function.
16207         (make_gap_smaller): New function.
16208         (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
16209         Call make_gap_smaller if arg is negative.
16211 2001-12-04  Stefan Monnier  <monnier@cs.yale.edu>
16213         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
16214         Pass a dummy argument when calling interrupt_signal.
16215         (parse_menu_item): Mark disabled items before checking for empty def.
16216         (read_char_minibuf_menu_prompt): Make safety more visible.
16217         (read_key_sequence): Add a `first_unbound' variable.
16218         Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
16219         unbound prefix as soon as we can detect it.
16221         * doc.c (Fsnarf_documentation): Add prototype.
16222         (get_doc_string): Handle negative arguments.
16223         (Fdocumentation): Use AREF and ASIZE.
16224         Move the calls to get_doc_string to a single place.
16225         Don't confuse an interactive-spec for a docstring reference.
16226         (Fdocumentation_property): Take advantage of the fact that
16227         get_doc_string now ignores the sign of the docstring position.
16229         * eval.c: Use standard syntax for usage in docstrings.
16231 2001-12-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16233         * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief' an option.
16235 2001-12-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16237         * xterm.c (x_draw_image_relief): Use predefined macro instead of
16238         constant when the value of `tool_bar_button_relief' is negative.
16240 2001-12-02  Richard M. Stallman  <rms@gnu.org>
16242         * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
16243         (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
16245         * fileio.c (read_non_regular): Delete Fsignal call.
16247 2001-12-01  Stefan Monnier  <monnier@cs.yale.edu>
16249         * lisp.h (run_hook_list_with_args): Undo last change.
16251 2001-12-01  Gerd Moellmann  <gerd@gnu.org>
16253         * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
16255 2001-12-01  Jason Rumney  <jasonr@gnu.org>
16257         * window.c (Qleft_fringe, Qright_fringe): Remove.  Now in frame.c.
16259         * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
16260         [!WM_MOUSELEAVE]: Define.
16262         * w32menu.c (current_popup_menu, get_menu_item_info):
16263         (set_menu_item_info): New vars.
16264         (set_frame_menubar): Doc fix clarifying GC interaction with menus.
16265         (w32_menu_show): Set current_popup_menu.
16266         (add_menu_item): Allocate new strings for owner-drawn menu items
16267         and help strings.
16268         Use owner-draw for disabled menu items again.
16269         (w32_menu_display_help): Ignore owner-drawn items and popup menus.
16270         (w32_free_submenu_strings, w32_free_menu_strings): New functions.
16272         * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
16273         (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
16274         <WM_EXITMENULOOP>: Free menu strings.
16275         <WM_MOUSELEAVE>: Stop tracking mouse.
16276         (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
16278         * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
16279         and mouse face.
16281 2001-12-01  Kim F. Storm  <storm@cua.dk>
16283         The following changes add left-fringe and right-fringe
16284         frame parameters to adjust fringe widths, or remove one or
16285         both fringes.
16287         * frame.h (struct frame): Remove trunc_area_pixel_width and
16288         trunc_area_cols fields.
16289         (Qleft_fringe, Qright_fringe): Declare.
16290         (FRAME_RIGHT_FRINGE_WIDTH): New macro.
16292         * frame.c (Qleft_fringe, Qright_fringe): New vars.
16293         (syms_of_frame): Initialize them.
16295         * window.c (coordinates_in_window): Handle separate left and right
16296         fringe widths.
16298         * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
16299         and fringe_cols fields.
16300         (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
16301         (FRAME_X_FRINGE_COLS): Use fringe_cols field.
16302         (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
16303         (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
16304         (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
16305         (x_compute_fringe_widths): Add prototype.
16307         * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
16308         fill fringe evenly with small dashes.
16309         (x_draw_fringe_bitmap): Clear background if necessary.  Align and
16310         clip the new ZV bitmap to avoid jitter between rows.
16311         (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
16312         background.  Don't draw fringe bitmaps if fringe width is zero.
16313         (x_compute_fringe_widths): New function.
16314         (x_new_font, x_set_window_size_1): Use it.
16316         * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
16317         (x_set_frame_parameters): Process `font' parameter before other
16318         parameters as fringe widths depend on it.
16319         (x_set_fringe_width): New function.
16320         (x_figure_window_size): Use x_compute_fringe_widths.
16321         (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
16322         parameters.
16324         * widget.c (set_frame_size): Use x_compute_fringe_widths.
16325         (EmacsFrameSetCharSize): Ditto.
16327         * w32term.h: Merged changes from xterm.h.
16328         * w32term.c: Merged changes from xterm.c.
16329         * w32fns.c: Merged changes from xfns.c.
16331 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16333         * COPYING: Removed.
16335 2001-11-29  Dave Love  <fx@gnu.org>
16337         * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
16338         extra extra slot.
16339         (detect_coding_mask): Fix call of detect_coding_iso2022.
16341 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16343         * fileio.c (file-name-coding-system)
16344         (default-file-name-coding-system): Doc fix (links to referenced
16345         variables added).
16347 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
16349         * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
16350         Add dummy uses of gcproN variables.
16352         * category.c (describe_category, describe_category_1)
16353         (Fdescribe_categories): Remove.  (Moved to lisp/help-fns.el.)
16354         (syms_of_category): Don't defsubr Sdescribe_categories.
16356 2001-11-28  Richard M. Stallman  <rms@gnu.org>
16358         * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
16360         * Makefile.in (lispdir): New variable, referring to build dir.
16361         (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
16363 2001-11-28  Andrew Innes  <andrewi@gnu.org>
16365         * w32menu.c (w32_menu_display_help): Actually add the new argument
16366         OWNER.
16368 2001-11-28  Jason Rumney  <jasonr@gnu.org>
16370         * w32menu.c (add_menu_item): Do not use owner-draw for disabled
16371         menu items.  From David Ponce <dponce@wanadoo.fr>.
16372         (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
16373         conditionally.
16374         (w32_menu_display_help): New argument OWNER.  Rewritten to store a
16375         help event in the owner frame's keyboard buffer.
16377         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
16378         (Fx_show_tip): Don't subtract last width from row width.
16380         * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
16381         (w32_read_socket): Use EQ to compare frames.
16383 2001-11-28  Gerd Moellmann  <gerd@gnu.org>
16385         * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
16386         OVERLAPS_P.
16388 2001-11-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16390         * xdisp.c (message_dolog): Remove unused variables `gcpro2',
16391         `gcpro3' and `gcpro4'.
16393         * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
16395 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
16397         * ccl.c: Use AREF and ASIZE.
16399 2001-11-27  Stefan Monnier  <monnier@cs.yale.edu>
16401         * lisp.h (run_hook_list_with_args): Remove.
16402         (LIST_END_P): Fix call to wrong_type_argument.
16403         (make_fixnum_or_float): Use EMACS_INT rather than int.
16405 2001-11-26  Stefan Monnier  <monnier@cs.yale.edu>
16407         * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
16408         (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
16410         * eval.c: Use AREF and ASIZE.
16411         (Ffetch_bytecode): Add the file name to the error message.
16413         * fileio.c (Ffind_file_name_handler): Give precedence to handlers
16414         which match the end of the file-name.
16415         (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
16416         is not a valid env var, but leave it as is instead.
16418         * keymap.c (access_keymap): Handle t bindings like nil bindings.
16419         Make nil bindings in char-tables transparent.
16420         (store_in_keymap): Turn a nil binding into a t binding for char-tables.
16422 2001-11-26  Richard M. Stallman  <rms@gnu.org>
16424         * textprop.c (set_text_properties_1): Allow START, END in either order.
16425         Do nothing if range is empty.
16427         * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
16429         * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
16430         (clean): Not here.
16432 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
16434         * textprop.c (set_text_properties_1): Clearly mark that the
16435         interval should not be empty.
16437         * intervals.c (graft_intervals_into_buffer):
16438         Don't call set_text_properties_1 on an empty interval.
16440 2001-11-25  Richard M. Stallman  <rms@gnu.org>
16442         * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
16444         * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
16445         don't lose the data in it.
16447 2001-11-25  Juanma Barranquero  <lektu@terra.es>
16449         * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
16451         * buffer.c (Fkill_buffer): Likewise.
16453         * print.c (temp_output_buffer_setup): Likewise.
16455 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
16457         * xfaces.c (merge_face_heights): Coerce back to int explicitly.
16459 2001-11-25  Eli Zaretskii  <eliz@is.elta.co.il>
16461         * window.c (Fset_window_vscroll): Doc fix.  From Kalle Olavi
16462         Niemitalo <kon@iki.fi>.
16464 2001-11-25  Jason Rumney  <jasonr@gnu.org>
16466         * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
16468         * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
16469         (Fx_show_tip): Block input during frame creation.
16470         (Fx_show_tip, Fx_hide_tip): Enable.
16472 2001-11-24  Richard M. Stallman  <rms@gnu.org>
16474         * lread.c (Fload): Detect recursive load error for more than 3
16475         nestings of the same file.
16476         (Vrecursive_load_depth_limit): Variable deleted.
16477         (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
16479 2001-11-24  Jason Rumney  <jasonr@gnu.org>
16481         * xfns.c (compute_tip_xy): Initialize root_x and root_y from
16482         mouse position if either left or top is not specified.
16484         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
16485         <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
16486         (my_create_tip_window, Fx_show_tip): Adjust size for external border.
16487         (my_create_tip_window): Assign tip_window.
16488         (x_create_tip_frame): Use same defaults as X.
16489         (compute_tip_xy): Remove unused variable.  Use full screen width.
16490         (Fx_show_tip): Do not double height.  Call ShowWindow directly.
16492         * w32term.c (x_after_update_window_line): Doc fix.
16493         (w32_read_socket): Doc fix.  Avoid SET_FRAME_GARBAGED for tip
16494         frames.
16495         <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
16497         * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
16498         for all Windowed systems.
16500 2001-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
16502         * msdos.c (IT_clear_screen): If the frame's faces are not yet
16503         realized, use the initial screen colors to clear the screen.
16505 2001-11-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16507         * textprop.c (Fset_text_properties): Remove unused variables
16508         `unchanged', `prev_changed', `s' and `len'.
16510         * search.c (Freplace_match): Remove unused variable `inslen'.
16512         * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
16514 2001-11-22  Jason Rumney  <jasonr@gnu.org>
16516         * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
16517         (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
16518         (my_create_tip_window): New function.
16519         (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
16520         (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
16522 2001-11-20  Jason Rumney  <jasonr@gnu.org>
16524         * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
16525         (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
16527         * w32fns.c (Vw32_system_coding_system): Remove.
16528         (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
16530 2001-11-19  Stefan Monnier  <monnier@cs.yale.edu>
16532         * fileio.c (Fwrite_region): Move choose_write_coding_system to
16533         after build_annotations.
16535         * syntax.c (describe_syntax): Add dummy arg.
16536         (describe_syntax_1): Update call to describe_vector.
16538         * category.c (describe_category): Add dummy arg.
16539         (describe_category_1): Update call to describe_vector.
16541         * keymap.c (Fdescribe_vector): Add `describer' parameter.
16542         (describe_command, describe_translation): Add dummy second param.
16543         (describe_map): Call elt_describer with two arguments.
16544         (describe_vector_princ): Add `fun' parameter.
16545         Call it instead of the hardcoded `princ'.
16546         (describe_vector): Add arg `args'.
16547         Pass it as a new second argument to elt_describer.
16549         * keymap.h (describe_vector): Update prototype.
16551         * frame.c: Don't include keymap.h any more.
16552         (keys_of_frame): Remove.
16554         * lisp.h (keys_of_frame): Remove declaration.
16556         * emacs.c (main): Don't call `keys_of_frame' any more.
16558 2001-11-14  Andreas Schwab  <schwab@suse.de>
16560         * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
16561         if defined, 0 otherwise.
16562         (MAP_FAILED): Define if not defined and use it to test mmap failure.
16563         (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
16565 2001-11-19  Richard M. Stallman  <rms@gnu.org>
16567         * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
16569 2001-11-18  Jason Rumney  <jasonr@gnu.org>
16571         * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
16572         (x_draw_bar_cursor): If the background color of the glyph under
16573         the cursor equals the frame's cursor color, use the glyph's
16574         foreground color for drawing the bar cursor.
16575         (x_after_update_window_line): Clear internal border in different
16576         circumstances.
16577         (w32_set_vertical_scroll_bar): Check for width and height > 0.
16578         (w32_draw_relief_rect): Correct relief by 1 pixel.
16579         (x_set_glyph_string_background_width):
16580         Set extends_to_end_of_line_p if the row's fill_line_p is set and
16581         drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
16582         (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
16583         if cursor_in_non_selected_windows is false.
16584         (show_mouse_face): Clean up.  Recognize overwritten cursor differently.
16585         (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
16586         Notice if cursor gets overwritten.
16587         (notice_overwritten_cursor): Renamed from
16588         note_overwritten_text_cursor.  Rewritten to take glyph widths
16589         into account, and to take X positions as parameters.
16590         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
16591         around call to x_draw_glyphs.
16592         (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
16593         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
16594         color to use for image glyph reliefs.
16595         (x_draw_image_relief): Accept zero tool_bar_button_relief.
16596         (glyph_rect): Remove unused variable `area'.
16598         * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
16599         some items.
16600         (x_set_internal_border_width): Set frame garbaged when window
16601         doesn't exist yet.
16602         (Fx_create_frame): Accept zero tool_bar_button_relief.
16603         (x_clear_image_1, four_corners_best, image_background)
16604         (image_background_transparent): New functions.
16605         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
16606         (gs_format): Add `:background' entry.
16607         (lookup_image): Set IMG's background color if specified.
16608         (pbm_load, xbm_load_image, png_load): Set IMG's background field
16609         when appropriate.
16610         (x_clear_image_1): Reset `background_valid' and
16611         `background_transparent_valid' fields.
16612         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
16613         calculating it here.  Set IMG's background_transparent field.
16614         (enum xpm_keyword_index): Add XPM_BACKGROUND.
16615         (enum png_keyword_index): Add PNG_BACKGROUND.
16616         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
16617         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
16618         (enum gif_keyword_index): Add GIF_BACKGROUND.
16619         (enum gs_keyword_index): Add GS_BACKGROUND.
16620         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
16621         Pre-calculate image background color where necessary.
16622         (x_create_x_image_and_pixmap, xbm_load, gs_load):
16623         Use display info's n_cbits entry for screen depth.
16624         (Fx_show_tip): Remove unused variables `buffer', `top',
16625         `left', `max_width' and `max_height'.
16627         * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
16629 2001-11-18  Gerd Moellmann  <gerd@gnu.org>
16631         * puresize.h (BASE_PURESIZE): Increase to 750000.
16633 2001-11-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16635         * frame.c (Fframe_live_p): Doc fix.
16637 2001-11-18  Richard M. Stallman  <rms@gnu.org>
16639         * xdisp.c (message_dolog_marker1, message_dolog_marker2)
16640         (message_dolog_marker3): New static variables hold three markers.
16641         (syms_of_xdisp): Initialize and staticpro them.
16642         (message_dolog): Use message_dolog_marker1..3 instead of
16643         allocating markers each time.  Unchain them when done.
16645 2001-11-17  Richard M. Stallman  <rms@gnu.org>
16647         * doc.c (Fsnarf_documentation): Doc fix.
16649 2001-11-17  Andreas Schwab  <schwab@suse.de>
16651         * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
16653 2001-11-17  Richard M. Stallman  <rms@gnu.org>
16655         * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
16657 2001-11-17  Jason Rumney  <jasonr@gnu.org>
16659         * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
16661 2001-11-17  Gerd Moellmann  <gerd@gnu.org>
16663         * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
16664         with invalid position.
16666 2001-11-16  Richard M. Stallman  <rms@gnu.org>
16668         * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
16670         * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
16671         * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
16672         * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
16674         * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
16676 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
16678         * fileio.c (build_annotations): Split off the tail.
16679         (build_annotations_2): New fun.  Extracted from build_annotations.
16680         (Fwrite_region): Split the call to build_annotations into two
16681         calls to build_annotations and build_annotations_2.
16683 2001-11-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16685         * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
16686         clear_waiting_for_input with argument.
16688         * xterm.h (x_update_cursor): Remove duplicated prototype.
16690         * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
16692         * xterm.c (waiting_for_input): Remove unnecessary declaration.
16694         * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
16696 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
16698         * fileio.c (choose_write_coding_system): New fun, extracted
16699         from Fwrite_region.
16700         (Fwrite_region): Use it.
16702         * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
16703         (funcall_lambda, run_hook_with_args): Make static and add prototype.
16704         (ml_apply, find_handler_clause): Add prototype.
16706 2001-11-16  Eli Zaretskii  <eliz@gnu.org>
16708         * config.in: Add #undef HAVE_COFF_H.
16710         * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
16711         Required for ISC 4.1.
16713 2001-11-16  Eli Zaretskii  <eliz@is.elta.co.il>
16715         * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
16716         Andrew Wiseman <a.wiseman@btclick.com>.
16718 2001-11-16  Kim F. Storm  <storm@cua.dk>
16720         The following changes are made to clean up the various internal
16721         references to the fringes to actually use the term `fringe' for
16722         them.  Previously, they were called `flags areas', `bitmap areas',
16723         `left/right side of windows', or implicitly as `flags' or
16724         `bitmaps':
16726         * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
16727         Comments fixed.  Use renamed symbols.
16729         * dispnew.c: Comment fix.  Use renamed symbols.
16731         * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
16732         (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
16733         (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
16735         * msdos.c: Comment fix.
16737         * w32fns.c: Use renamed symbols.
16739         * w32term.c: Comment fixes.  Use renamed symbols.
16740         (fringe_bitmap_type): Renamed from bitmap_type.
16741         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16742         (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
16743         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
16745         * w32term.h: Comment fixes.  Use renamed symbols.
16746         (fringes_extra): Renamed from flags_areas_extra.
16747         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16748         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16749         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16750         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16751         (FRAME_X_LEFT_FRINGE_WIDTH):
16752         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16753         (FRAME_X_RIGHT_FRINGE_WIDTH):
16754         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16756         * widget.c: Use renamed symbols.
16758         * window.c: Comment fixes.  Use renamed symbols.
16759         (coordinates-in-window-p): Doc fix.
16761         * xdisp.c: Comment fixes.  Use renamed symbols.
16763         * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
16765         * xfns.c: Use renamed symbols.
16767         * xterm.c: Comment fixes.  Use renamed symbols.
16768         (fringe_bitmap_type): Renamed from bitmap_type.
16769         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
16770         (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
16771         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
16773         * xterm.h: Comment fixes.  Use renamed symbols.
16774         (fringes_extra): Renamed from flags_areas_extra.
16775         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
16776         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
16777         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
16778         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
16779         (FRAME_X_LEFT_FRINGE_WIDTH):
16780         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
16781         (FRAME_X_RIGHT_FRINGE_WIDTH):
16782         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
16784 2001-11-15  Jason Rumney  <jasonr@gnu.org>
16786         * w32menu.c (add-menu-item): Make help_echo and radio buttons
16787         work for most menu items.  From David Ponce
16788         <david.ponce@wanadoo.fr>.
16790 2001-11-15  Gerd Moellmann  <gerd@gnu.org>
16792         * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
16793         Some x_set_* function expect to be called even if old and new
16794         value are equal.
16796         * xdisp.c (build_desired_tool_bar_string): Accept zero
16797         tool_bar_button_relief.
16799         * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
16801         * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
16803         * xterm.c (x_draw_bar_cursor): If the background color of the
16804         glyph under the cursor equals the frame's cursor color, use
16805         the glyph's foreground color for drawing the bar cursor.
16807         * dispnew.c (direct_output_forward_char): Fix character/byte
16808         position comparison.
16810 2001-11-15  Miles Bader  <miles@gnu.org>
16812         * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
16813         (Fdelete_field, Ffield_string, Ffield_string_no_properties):
16814         Update arguments to find_field.
16815         (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
16816         (Fconstrain_to_field): Use LIMIT arg to shorten search time.
16817         * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
16818         * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
16820 2001-11-14  Richard M. Stallman  <rms@gnu.org>
16822         * editfns.c (Fpropertize): Allow call with 1 arg.
16824         * dispextern.h (image_background, image_background_transparent):
16825         Conditionalize on HAVE_X_WINDOWS.
16827 2001-11-13  Richard M. Stallman  <rms@gnu.org>
16829         * print.c (Fprin1_to_string): Doc fix.
16831         * sunfns.c (Fsun_change_cursor_icon): Doc fix.
16833         * floatfns.c (Fceiling, Ffloor): Doc fixes.
16835         * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
16837         * fileio.c (Ffile_accessible_directory_p): Doc fix.
16839         * eval.c (syms_of_eval): Doc fix.
16841         * coding.c (syms_of_coding): Doc fix.
16843         * doc.c (Fsnarf_documentation): Doc fix.
16845         * dispnew.c (syms_of_display): Doc fix.
16847         * category.c (Fget_unused_category): Doc fix.
16849         * buffer.c (syms_of_buffer): Doc fixes.
16851 2001-11-14  Eli Zaretskii  <eliz@is.elta.co.il>
16853         * print.c (prin1, print): Doc fix.
16855 2001-11-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16857         * fontset.h: Remove declarations of variables
16858         `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
16860         * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
16861         `Vclip_large_size_font'.
16863 2001-11-13  Jason Rumney  <jasonr@gnu.org>
16865         * w32fns.c: Doc fix.
16867 2001-11-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16869         * xfaces.c (Fface_attributes_as_vector): Doc fix.
16871         * fns.c: Doc fix.
16873         * emacs.c: Doc fix.
16875         * coding.c: Doc fix.
16877         * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
16878         * fontset.c, insdel.c, keymap.c: Change doc-string comments to
16879         `new style' [w/`doc:' keyword].
16881 2001-11-12  Richard M. Stallman  <rms@gnu.org>
16883         * xterm.c (XTread_socket): Don't update focus for EnterNotify or
16884         LeaveNotify events.  Only FocusIn and FocusOut do that now.
16885         (x_display_and_set_cursor): Do display hollow cursors in active
16886         minibuffer windows when they are not selected.
16888 2001-11-12  Jason Rumney  <jasonr@gnu.org>
16890         * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
16891         * w32term.c: Change doc-string comments to `new style'
16892         [w/`doc:' keyword].  Doc fixes.
16894         * w32fns.c: Don't define max.
16895         (Fx_open_connection): Only execute once.
16897 2001-11-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16899         * ccl.c: Change macros to use do-while block instead of if-else.
16900         Use braces to follow GNU Coding Standards.
16902 2001-11-11  Richard M. Stallman  <rms@gnu.org>
16904         * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
16906         * lread.c (read_escape): Use end_of_file_error for reporting eof.
16908         * insdel.c (replace_range): Use adjust_markers_for_replace
16909         instead of adjust_markers_for_delete and adjust_markers_for_insert.
16911         * intervals.h (set_text_properties, set_text_properties_1): Declare.
16913         * textprop.c (set_text_properties_1): New subroutine
16914         broken out of set_text_properties.
16915         (set_text_properties): Use set_text_properties_1.
16917         * intervals.c (graft_intervals_into_buffer):
16918         Use set_text_properties_1 to clear out properties.
16920         * search.c (Freplace_match): Use replace_range to insert
16921         and delete.  Don't request property inheritance from
16922         surrounding text.
16924 2001-11-10  Jason Rumney  <jasonr@gnu.org>
16926         * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
16927         vertical fonts.  Allow them if face name is explicitly specified.
16928         Do not give up if we find a font that cannot be converted to an xlfd.
16930 2001-11-10  Gerd Moellmann  <gerd@gnu.org>
16932         * unexelf.c (unexec): Use mmap/munmap to allocate buffers
16933         instead of malloc/free.
16935 2001-11-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16937         * xfaces.c (merge_face_vectors): Use braces to follow GNU
16938         Coding Standards.
16939         (Finternal_set_lisp_face_attribute): Likewise.
16941         * buffer.c (Fbury_buffer): Likewise.
16943         * indent.c (current_column_1): Remove unused variable `prev_col'.
16945         * coding.c (encode_coding): Use precomputed value of `src'.
16946         (encode_coding): Remove unused variable `src_end'.
16947         (code_convert_region): Remove unused variables `count'.
16949 2001-11-07  Jason Rumney  <jasonr@gnu.org>
16951         * w32term.c (x_display_and_set_cursor): Do not move system caret
16952         if cursor_glyph is NULL.
16954 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16956         * keymap.c (access_keymap): Fix compilation error.
16958 2001-11-07  Miles Bader  <miles@gnu.org>
16960         * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
16962 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16964         * intervals.c (graft_intervals_into_buffer):
16965         Remove #ifdef'd-out code.
16966         (graft_intervals_into_buffer): Remove unused variable `middle'.
16968         * lread.c (Feval_region): Remove obsolete #ifdef'd-out
16969         code (eval-current-buffer).
16970         Change doc-string comments to `new style' [w/`doc:' keyword].
16972 2001-11-06  Richard M. Stallman  <rms@gnu.org>
16974         * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
16976 2001-11-06  Stefan Monnier  <monnier@cs.yale.edu>
16978         * lread.c (read1): Fix behavior with nested backquoting.
16980         * keyboard.c (make_lispy_event): Check integerness and fix
16981         Lisp_Object/int mixup.
16983 2001-11-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
16985         * fns.c (copy_hash_table): Remove unused variable `v'.
16987         * fontset.c (fontset_font_pattern): Remove unused variable
16988         `family_registry'.
16990         * indent.c (current_column_1): Remove unused variable `prev_col'.
16992 2001-11-05  Richard M. Stallman  <rms@gnu.org>
16994         * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
16996         * buffer.c (Fkill_buffer): Don't delete auto save file
16997         if buffer is modified.
16999 2001-11-05  Andrew Innes  <andrewi@gnu.org>
17001         * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
17002         CHECK_NUMBER_CDR.
17004 2001-11-05  Richard M. Stallman  <rms@gnu.org>
17006         * unexelf.c (unexec): Minor changes; clean up comments.
17008 2001-11-05  Sam Steingold  <sds@gnu.org>
17010         * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
17012 2001-11-05  Andreas Schwab  <schwab@suse.de>
17014         * sound.c (sound_perror): Save errno from being clobbered.
17016 2001-11-05  Dale Hagglund  <rdh@yottayotta.com>
17018         * unexelf.c (unexec): Don't use `mmap'.  Instead, read and write
17019         the program image directly.
17021 2001-11-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17023         * buffer.h (Fbuffer_local_value): Add prototype.
17025 2001-11-04  Richard M. Stallman  <rms@gnu.org>
17027         * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
17028         and CHECK_BUFFER.
17030         * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
17031         (record_char): Likewise.
17033         * keyboard.c (make_lispy_event): Don't insist a drag event must
17034         move to a different buffer position.  Instead, check for moving at
17035         least double_click_fuzz.
17037         * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
17039         * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
17041         * indent.c (current_column_1, Fmove_to_column): Separate the code
17042         for display-table glyphs from the code for buffer text, to fix
17043         bugs in the former.
17045 2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>
17047         * buffer.c (Fbuffer_local_value): New function.
17048         (syms_of_buffer): Defsubr it.
17050         * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
17051         value of `cursor-in-non-selected-windows'.
17053         * lisp.h (Qcursor_in_non_selected_windows): New declaration.
17054         * xdisp.c (Qcursor_in_non_selected_windows): New variable.
17055         (syms_of_xdisp): Initialize it.
17057 2001-11-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17059         * xfns.c (Fx_create_frame): Doc fix.
17061         * coding.c: Change doc-string comments to `new style' [w/`doc:'
17062         keyword].
17064         * eval.c (top_level_value, top_level_set): Remove commented and
17065         #ifdef'd-out code.
17066         (Fdefvar): Fix usage in doc-string.
17068 2001-11-03  Richard M. Stallman  <rms@gnu.org>
17070         * xfns.c: Include unistd.h, if it exists.
17072         * editfns.c: Move the include of ctype.h after unistd.h.
17074         * gmalloc.c: Test BROKEN_PROTOTYPES.
17076 2001-11-03  Ken Raeburn  <raeburn@gnu.org>
17078         * lisp.h (CHECK_STRING_CAR): New macro.
17079         * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
17080         treating XCAR and XCDR as lvalues.
17081         (openp): Use CHECK_STRING_CAR.
17082         (read_list): Use XSETCDR instead of treating XCDR as lvalue.
17084 2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>
17086         * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
17087         (SIGMASKTYPE): Define.
17089         * syssignal.h (sigunblock): Don't define if already defined.
17091 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17093         * eval.c (debugger_may_continue, Vdebug_ignored_errors)
17094         (call_debugger, Fcondition_case, skip_debugger, unbind_to):
17095         Fix typos in comments.
17097         * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
17098         and #ifdef'd-out code.
17099         Fix and reindent comments.
17101         * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
17103         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
17104         argument `i' in macros.
17106         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
17107         `i' in macros.
17109         * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
17110         (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
17111         (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
17112         (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
17113         (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
17114         (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
17115         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
17116         (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
17117         in macros.
17119         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
17120         * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
17121         * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
17122         * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
17123         * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
17124         * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
17125         * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
17126         * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
17127         * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
17128         (remove unused second argument).
17130 2001-11-02  Stefan Monnier  <monnier@cs.yale.edu>
17132         * syntax.c (describe_syntax): New wrapper.
17133         (Finternal_describe_syntax_value): Rename from describe_syntax.
17134         Don't insert space at front and \n at the end.
17135         (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
17137         * regex.c (re_wctype): Try to fix some warnings.
17138         (regcomp, regexec): Don't forget the __restrict.
17140 2001-11-02  Richard M. Stallman  <rms@gnu.org>
17142         * textprop.c (Fget_char_property): Doc fix.
17144 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17146         * process.c (Fstart_process): Add usage to doc-string.
17148         * data.c (Fsetq_default): Ditto.
17150         * callint.c (Finteractive): Ditto.
17152 2001-11-01  Stefan Monnier  <monnier@cs.yale.edu>
17154         * macros.c: Don't include keymap.h any more.
17156 2001-11-01  Richard M. Stallman  <rms@gnu.org>
17158         * data.c (Fmake_local_variable): Doc fix.
17160         * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
17161         (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
17163         * keymap.c (Fdescribe_buffer_bindings): Print character property
17164         bindings along with or instead of the buffer local map.
17165         Make the overriding maps override what they should.
17167 2001-11-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17169         * window.c (grow_mini_window): Fix typo in comment.
17171 2001-11-01  Gerd Moellmann  <gerd@gnu.org>
17173         * xterm.c (x_scroll_bar_create): Check for width and height > 0.
17174         (XTset_vertical_scroll_bar): Likewise.
17176         * xfns.c (x_build_heuristic_mask): Use four_corners_best
17177         instead of IMAGE_BACKGROUND.
17179         * xfns.c (four_corners_best): Reindent.
17181         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
17182         Handle :box so that it is possible to specify sexprs.
17184 2001-10-31  Eli Zaretskii  <eliz@is.elta.co.il>
17186         * s/hpux11.h: New file.
17188 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17190         * emacs.c (USAGE1): Show command line option --no-window-system
17191         instead of --no-windows in usage.
17192         (standard_args): Rename --no-windows to --no-window-system.
17193         (bug_reporting_address): Follow Emacs coding conventions.
17195         * eval.c (Fcommandp): Doc fix.
17196         Change doc-string comments to `new style' [w/`doc:' keyword].
17198         * frame.c (Fframe_live_p): Doc fix.
17200         * buffer.c (selective-display-ellipses): Doc fix.
17202 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
17204         * lread.c (to_multibyte): Fix computation of new read_buffer_size.
17206         * xfaces.c (realize_x_face): If C is not a single-byte character,
17207         set the face's colors_copied_bitwise_p instead of the defaulted_p
17208         members which have a different meaning.
17209         (free_face_colors): Do nothing for a face whose colors have been
17210         copied bitwise.
17212         * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
17214 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17216         * marker.c, mocklisp.c: Change doc-string comments to `new style'
17217         [w/`doc:' keyword].
17219 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
17221         * fns.c (require_unwind): Return Lisp_Object.
17223 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17225         * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
17226         (last-input-char): Revert doc-string to be the same as the
17227         doc-string of `last-input-event'.
17229         * xdisp.c: Fix typos in comments.
17231 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
17233         * window.c (grow_mini_window): Handle case that the root
17234         window is already smaller than the nominal mininum height.
17236 2001-10-30  Stefan Monnier  <monnier@cs.yale.edu>
17238         * emacs.c (main): Don't call keys_of_macros any more.
17240         * lisp.h (keys_of_macros): Remove.
17242         * macros.c (keys_of_macros): Remove.
17244         * xfaces.c (Fface_attribute_relative_p): Declare args.
17246 2001-10-30  Jason Rumney  <jasonr@gnu.org>
17248         * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
17249         (enum_font_cb2): Ignore fonts with vertical orientation.
17251 2001-10-30  Richard M. Stallman  <rms@gnu.org>
17253         * keyboard.c (Finput_pending_p): Doc fix.
17255 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
17257         * xterm.c (x_after_update_window_line): Don't run the code
17258         clearing in borders for rows whose visible height is 0.
17260         * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
17261         resized_p flag is set.  If not set, use the much less flickering
17262         method previously used.
17264         * dispnew.c (change_frame_size_1): Set frame's resized_p.
17266         * frame.h (struct frame) <resized_p>: New member.
17268         * lread.c (to_multibyte): Ensure read_buffer is at least twice
17269         as large as the number of bytes to convert.
17271         * lread.c (to_multibyte): New function.
17272         (read1): Use it.
17274 2001-10-30  Eli Zaretskii  <eliz@is.elta.co.il>
17276         * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
17278 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
17280         * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
17281         (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
17282         if the row's fill_line_p is set and drawing the last glyph with
17283         DRAW_IMAGE_{RAISED,SUNKEN}.
17285         * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
17287 2001-10-29  Stefan Monnier  <monnier@cs.yale.edu>
17289         * xmenu.c: Include coding.h and charset.h.
17290         (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
17291         (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
17292         (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
17293         Explicitly set wv->help.  Use `TRUE' rather than `True'.
17294         (menu_help_callback): Use empty_string.
17296         * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
17297         (Fx_popup_dialog): Explicitly init f.
17298         (w32_menu_display_help): Use empty_string.
17300 2001-10-29  Richard M. Stallman  <rms@gnu.org>
17302         * fns.c (Frequire): Detect recursive try to require the same
17303         feature 3 or more levels deep, and get error.
17304         (require_unwind): New subroutine.
17305         (require_nesting_list): New variable.
17306         (syms_of_fns): Init and staticpro it.
17308         * print.c (print_object): Clarify indication of insertion type.
17310 2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>
17312         * coding.c (syms_of_coding): Document that locale-coding-system is
17313         used for decoding input on X.
17315         * window.c (Fscroll_left, Fscroll_right): Doc fix.
17317 2001-10-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17319         * keyboard.c (Finput_pending_p): Fix typo in doc-string.
17320         (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
17322 2001-10-29  Gerd Moellmann  <gerd@gnu.org>
17324         * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
17325         use NO_CURSOR if cursor_in_non_selected_windows is false.
17327         * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
17328         the slant attribute if FRAME is t.
17330         * xfns.c (x_set_internal_border_width): Set frame garbaged
17331         when X window doesn't exist yet.
17333         * xterm.c (x_after_update_window_line): Clear internal border
17334         in different circumstances.
17336         * xterm.c (XTread_socket) <KeyPress>: Don't use
17337         STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
17338         <handa@etl.go.jp>.
17340 2001-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
17342         * m/ibms390.h: New file.  From Adam Thornton
17343         <athornton@sinenomine.net>.
17345 2001-10-28  Gerd Moellmann  <gerd@gnu.org>
17347         * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
17349         * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
17350         a loop counter.
17352 2001-10-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17354         * emacs.c: Use argv[0] instead of "emacs" when -t was specified.
17356         * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
17357         keyword].
17358         Fix typos in comments.
17360         * emacs.c (bug_reporting_address): New function.
17361         Use it when displaying usage message.
17363         * minibuf.c (read_minibuf): Remove unused external declaration of
17364         variable `Qread_only'.
17366         * keymap.c (access_keymap): Remove unused variable `charset'.
17368 2001-10-28  Miles Bader  <miles@gnu.org>
17370         * xfaces.c (merge_face_heights): Handle TO being relative as well.
17371         Remove #ifdef'd-out code.
17372         (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
17373         (syms_of_xfaces): Initialize them.
17375 2001-10-27  Jason Rumney  <jasonr@gnu.org>
17377         * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
17378         <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
17379         position using the system caret.
17381         * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
17382         (w32_system_caret_height, w32_system_caret_x)
17383         (w32_system_caret_y): New variables for tracking system caret.
17384         (w32_initialize): Initialize them.
17385         (x_display_and_set_cursor): Make system caret follow the active cursor.
17387         * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
17388         New messages types.
17390         * w32term.c (note_mouse_highlight): Clear old help_echo.
17392 2001-10-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17394         * xterm.c: Fix typo in a comment.
17396         * emacs.c: Fix typos in comments.
17397         Remove unnecessary spaces.
17398         Change doc-string comments to `new style' [w/`doc:' keyword].
17399         (USAGE2): Fix typos in usage string.
17401         * xterm.c: Fix typo in a comment.
17403         * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
17404         emacs.c.
17406 2001-10-27  Gerd Moellmann  <gerd@gnu.org>
17408         * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
17409         instead of 1/2 line_height in the heuristic for skipping
17410         farther backward when target_y was not reached.
17412         * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
17413         Display errno only if non-zero.
17414         (sound_warning): New function.
17415         (vox_configure): Don't treat failing to set sample rate as error.
17416         (various places): Improve error messages.
17418 2001-10-26  Eli Zaretskii  <eliz@is.elta.co.il>
17420         * fileio.c (Faccess_file): Run the argument filename through
17421         Fexpand_file_name, before using it.
17423         * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
17424         ring-bell-function.  Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
17426 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
17428         * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
17430         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17431         Fix clearing in the case of scroll bars on the right.
17433 2001-10-26  Juanma Barranquero  <lektu@terra.es>
17435         * w32gui.h (XImage): Add a dummy typedef.
17437 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
17439         * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
17441 2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>
17443         * frame.c (Fframe_parameter): Fix last change.
17445         * fileio.c: Revert last change (which removed old commented-out
17446         version of expand-file-name).  Add a comment that explains why
17447         this old version should not be removed.
17449 2001-10-25  Gerd Moellmann  <gerd@gnu.org>
17451         * frame.c (Fframe_parameter): Fix a bug whereby some
17452         ``artificial'' frame parameters, like `minibuffer' were not
17453         obtained by calling Fframe_parameters.
17455         * xterm.c (show_mouse_face): Clean up.  Recognize overwritten
17456         cursor differently.
17458         * xdisp.c (move_it_vertically_backward): Compute line height
17459         differently.  Add heuristic to try to be more compatible to 20.x.
17461 2001-10-25  Stefan Monnier  <monnier@cs.yale.edu>
17463         * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
17465         * editfns.c (text_property_stickiness): Fix Lisp_Object used as
17466         boolean.
17468 2001-10-25  Miles Bader  <miles@gnu.org>
17470         * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
17471         BG is a pointer to a structure, not a structure.
17472         (gif_format, png_format): Add missing commas.
17474 2001-10-24  Richard M. Stallman  <rms@gnu.org>
17476         * xfaces.c (Fface_attributes_as_vector): New function.
17477         (syms_of_xfaces): Defsubr it.
17479 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17481         * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
17482         variable `area'.
17484 2001-10-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17486         * search.c (scan_newline): Remove unused variable `selective_display'.
17488 2001-10-25  Miles Bader  <miles@gnu.org>
17490         * dispextern.h (struct image): Add `background',
17491         `background_valid', and `background_transparent' fields.
17492         (image_background, image_background_transparent): New declarations.
17493         (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
17494         * xfns.c (image_background, image_background_transparent)
17495         (four_corners_best): New functions.
17496         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
17497         (gs_format): Add `:background' entry.
17498         (lookup_image): Set IMG's background color if specified.
17499         (pbm_load, xbm_load_image, png_load): Set IMG's background field
17500         when appropriate.
17501         (x_clear_image_1): Reset `background_valid' and
17502         `background_transparent_valid' fields.
17503         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
17504         calculating it here.  Set IMG's background_transparent field.
17505         (enum xpm_keyword_index): Add XPM_BACKGROUND.
17506         (enum png_keyword_index): Add PNG_BACKGROUND.
17507         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
17508         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
17509         (enum gif_keyword_index): Add GIF_BACKGROUND.
17510         (enum gs_keyword_index): Add GS_BACKGROUND.
17511         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
17512         Pre-calculate image background color where necessary.
17513         * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
17514         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
17515         color to use for image glyph reliefs.
17517 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
17519         * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
17520         in full-width rows.
17522         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
17523         Fix clearing of area not covered by scroll bar.
17525 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17527         * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
17528         and `real_start'.
17529         (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
17530         (glyph_rect): Remove unused variable `area'.
17532 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
17534         * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
17536         * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
17537         (row_containing_pos): Take additional argument DY.
17538         Treat rows ending in middle of char differently.
17539         (display_line): Handle tabs on window systems differently.
17541         * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
17542         with additional argument.
17544         * dispextern.h (row_containing_pos): Adjust prototype.
17546         * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
17547         (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
17548         (try_window_id, try_window_reusing_current_matrix)
17549         (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
17550         (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
17552 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17554         * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
17555         gnuemacs).
17556         (HAVE_BOXES): Fix typo in comment.
17557         (push_menu_pane): Fix typo in comment.
17559         * xdisp.c: (display_prop_string_p): Remove unused local declaration
17560         of `Qwhen'.
17561         (single_display_prop_string_p): Remove unused local declarations
17562         of `Qwhen' and `Qmargin'.
17563         (string_buffer_position): Remove unused variable `around'.
17564         (store_frame_title): Remove unused variable `width'.
17566         * window.c: Don't define max.
17567         (coordinates_in_window): Remove unused variable `uy'.
17569         * widget.c: Don't define max.
17571         * process.c: Don't define max.
17572         (create_process): Remove unused variable `buffer'.
17574 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
17576         * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
17578 2001-10-23  Eli Zaretskii  <eliz@is.elta.co.il>
17580         * xfaces.c (Finternal_set_lisp_face_attribute)
17581         [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
17582         frame is on a windowed display.
17584 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
17586         * dispnew.c (sync_window_with_frame_matrix_rows):
17587         Fix handling of windows which aren't full-width, fix handling
17588         of marginal areas.
17590         * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
17592 2001-10-23  Andreas Schwab  <schwab@suse.de>
17594         * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
17595         LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
17597 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
17599         * xterm.c (x_draw_glyphs): Remove parameters READ_START and
17600         REAL_END.  Notice if cursor gets overwritten.
17601         (notice_overwritten_cursor): Take X positions as parameters.
17602         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
17603         around call to x_draw_glyphs.
17605 2001-10-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17607         * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
17608         instead of C) and usage.
17610         * editfns.c (char-to-string): Fix argument names (use CHAR instead
17611         of C) and usage.
17613         * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
17614         `left', `max_width' and `max_height'.
17616 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
17618         * xdisp.c (display_line): For a tab continued to the next line,
17619         set row's ends_in_middle_of_char_p.
17621 2001-10-22  Gerd Moellmann  <gerd@gnu.org>
17623         * xdisp.c (display_line): Fix computation of continuation lines
17624         width for TABs.
17626 2001-10-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17628         * xdisp.c (build_desired_tool_bar_string): Remove unused variable
17629         `Qlaplace'.
17631         * fileio.c: Remove unused code.
17633 2001-10-22  Miles Bader  <miles@gnu.org>
17635         * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
17636         (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
17637         Remove `DOC_STRINGS_IN_COMMENTS' cases.
17639 2001-10-21  Jason Rumney  <jasonr@gnu.org>
17641         * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
17643 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
17645         * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
17646         (Finsert_string): Avoid the multi-line string literals warning.
17648 2001-10-22  Miles Bader  <miles@gnu.org>
17650         * doc.c (Vhelp_manyarg_func_alist): Variable removed.
17651         (Fdocumentation): Don't use it.
17652         (syms_of_doc): Don't initialize it.
17654         * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
17655         * print.c (Fwith_output_to_temp_buffer): Likewise.
17656         * window.c (Fsave_window_excursion): Likewise.
17657         * editfns.c (Fsave_excursion, Fsave_current_buffer)
17658         (Fsave_restriction): Likewise.
17659         * eval.c (Frun_hooks, Frun_hook_with_args)
17660         (Frun_hook_with_args_until_failure)
17661         (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
17662         (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
17663         (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
17664         (Funwind_protect, Fcondition_case): Likewise.
17665         * coding.c (Ffind_operation_coding_system): Likewise.
17666         * keyboard.c (Ftrack_mouse): Likewise.
17668 2001-10-21  Miles Bader  <miles@gnu.org>
17670         * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
17671         (Fmake_hash_table): Add usage: string to doc string.
17672         * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
17673         (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
17674         (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
17675         * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
17676         (Fml_prefix_argument_loop): Likewise.
17678 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17680         * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
17682         * sysdep.c (init_sys_modes): Change doc-string comments to `new
17683         style' [w/`doc:' keyword].
17685         * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
17686         * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
17687         comments to `new style' [w/`doc:' keyword].
17689 2001-10-21  Jason Rumney  <jasonr@gnu.org>
17691         * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
17693         * w32term.c (remember_mouse_glyph): New function.
17694         (w32_mouse_position): Use it.
17695         (note_mouse_movement): If the mouse moved off the glyph, remember
17696         its new position.
17698         * w32term.h (struct w32_output): Correct spelling of x_compatible.
17699         (w32_display_info): Add mouse_face_overlay.
17701         * w32term.c (notice_overwritten_cursor): Renamed from
17702         note_overwritten_text_cursor.  Rewritten to take glyph widths into
17703         account.
17704         (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
17705         (fast_find_string_pos): New function.
17706         (fast_find_position): Return the correct vpos.  Add parameter
17707         STOP.  In the final row, stop before glyphs having STOP as object.
17708         Don't consider glyphs that are not from a buffer.
17709         (fast_find_position) [0]: Add a presumably more correct version
17710         for after 21.1.
17711         (expose_window_tree, expose_frame): Don't compute intersections here.
17712         (expose_window): Do it here instead.
17713         (expose_window_tree, expose_window, expose_line): Return 1 when
17714         overwriting mouse-face.
17715         (expose_window): If W is the window currently being updated, mark
17716         the frame garbaged.
17717         (expose_frame): If mouse-face was overwritten, redo it.
17718         (x_use_underline_position_properties): New variable.
17719         (syms_of_xterm): DEFVAR_BOOL it.
17720         (x_draw_glyph_string): Add comment to use it in future.
17721         (x_draw_glyph_string): Restore clipping after drawing box.
17722         Fix a computation of the underline position.
17723         (w32_get_glyph_string_clip_rect): Minor cleanup.
17724         (x_fill_stretch_glyph_string): Remove an assertion.
17725         (x_produce_glyphs): Don't convert multibyte characters
17726         to unibyte characters in unibyte buffers.
17727         (cursor_in_mouse_face_p): New function.
17728         (x_draw_stretch_glyph_string): Use it to choose a different GC
17729         when drawing a cursor within highlighted text.  Don't draw
17730         background again if it has already been drawn.
17731         (x_draw_glyph_string_box): Don't draw a full-width
17732         box just because the glyph row's full_width_p flag is set.
17733         (x_draw_glyphs): Fix computation of rightmost x for
17734         full-width rows.
17735         (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
17736         (w32_draw_relief_rect): Extend left shadow to the bottom and left;
17737         change bottom shadow accordingly.  Some cleanup.
17738         (x_update_window_end): Handle overwritten mouse face
17739         also for tool bar windows.
17740         (show_mouse_face): Set the glyph row's mouse_face_p flag also when
17741         DRAW is DRAW_IMAGE_RAISED.
17742         (clear_mouse_face): Return 1 if text with mouse face was
17743         actually redrawn.  Make the function static.
17744         Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
17745         optimize away highlighting if we pass over that same overlay again.
17746         (note_mouse_highlight): Call mouse_face_overlay_overlaps
17747         to detect a case where we have to highlight a different region
17748         despite not having left the currently highlighted region.
17749         Set mouse_face_overlay in the x_display_info.  Avoid changing the
17750         mouse pointer shape when show_mouse_face has already done it, or
17751         there is no need.  Handle mouse-face and help-echo in strings.
17752         (glyph_rect): New function.
17753         (w32_mouse_position): Use it to raise the threshold for mouse
17754         movement event generation.
17755         (w32_initialize_display_info): Initialize the x_display_info's
17756         mouse_face_overlay.
17757         (w32_set_vertical_scroll_bar): Don't clear a zero height
17758         or width area.
17759         (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
17760         a widget to zero height.
17762         * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
17763         Protect unibyte strings created by replacing their multibyte
17764         equivalents in menu_items.
17765         (w32_menu_show): Don't overwrite an item's name with its key
17766         description in case the description is a multibyte string.
17767         (single_submenu): Some cleanup.
17769         * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
17770         (postprocess_image): New function.
17771         (lookup_image): Call it for all image types except PostScript.
17772         (x_kill_gs_process): Call postprocess_image.
17773         (tiff_error_handler, tiff_warning_handler): New functions.
17774         (tiff_load): Install them as handlers.
17775         (x_kill_gs_process): Recognize if someone has cleared the image
17776         cache under us.
17777         (valid_image_p): Protect better against invalid image
17778         specifications.  Previous code could signal an error.
17779         (Fx_hide_tip, Fshow_tip): Doc fix.
17780         (Fv_max_tooltip_size): New variable.
17781         (syns_of_xfns): DEFVAR_LISP it.
17782         (Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
17783         window buffer to *tip* right after creating the frame.  Set frame's
17784         window_width.  Use a maximum tooltip size specified by
17785         Vx_max_tooltip_size, if that has valid contents.
17786         (compute_tip_xy): Add parameters WIDTH and HEIGHT.
17787         Make sure the tooltip is completely visible.
17788         (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
17789         (Fx_create_frame): Adjust the frame's height for presence
17790         of the tool bar before calling x_figure_window_size.
17791         (x_set_tool_bar_lines): Clear the tool bar window's current matrix
17792         when the window gets smaller.
17793         (x_set_foreground_color): Set frame's cursor_pixel.
17794         (x_set_foreground_color, x_set_background_color): Cleaned up.
17795         (x_set_font): Handle case of x_new_fontset returning the same name
17796         as before, although there was a change in fontsets.
17798 2001-10-21  Miles Bader  <miles@gnu.org>
17800         * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
17801         (Flogxor): Add usage: string to doc string.
17802         * charset.c (Fstring): Likewise.
17803         * callproc.c (Fcall_process_region, Fcall_process): Likewise.
17804         * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
17806 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
17808         * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
17810         * alloc.c: Reindent DEFUNs with doc: keywords.
17812         * abbrev.c (Finsert_abbrev_table_description): Reindent.
17814         * frame.c: Change doc-string comments to `new style' [w/`doc:'
17815         keyword].
17817 See ChangeLog.9 for earlier changes.
17819 ;; Local Variables:
17820 ;; coding: iso-2022-7bit
17821 ;; End:
17823     Copyright (C) 2001, 2002 Free Software Foundation, Inc.
17824   Copying and distribution of this file, with or without modification,
17825   are permitted provided the copyright notice and this notice are preserved.
17827 ;;; arch-tag: 5dcc435f-4038-4141-b3bf-5be51cd76bd4