Revert changes of 2003-03-03 and 2003-05-28.
[emacs.git] / src / ChangeLog
blob7ecdb754e1d23b68d15030c38f8a20ec85390d30
1 2003-06-02  Dave Love  <fx@gnu.org>
3         * callproc.c: Use HAVE_FCNTL_H, not USG5.
4         (syms_of_callproc) <process-environment>: Doc fix.
6         * doc.c: Use HAVE_FCNTL_H, not USG5.
8         * xfaces.c (font_rescale_ratio): Fix for K&R.
10         * termcap.c: Use HAVE_FCNTL_H, not _POSIX_VERSION.
12         * mem-limits.h: Use HAVE_SYS_RESOURCE_H, HAVE_SYS_VLIMIT_H.
14         * lread.c [HAVE_FCNTL_H]: Include fcntl.h.
16         * gtkutil.c: Include keyboard.h, charset.h, coding.h.
17         (xg_create_frame_widgets): Use ENCODE_UTF_8.
19         * xterm.c (Qutf_8): Moved to coding.c
21         * xmenu.c (ENCODE_MENU_STRING): New.
22         (list_of_panes, list_of_items, digest_single_submenu, xmenu_show):
23         Use it.
25         * coding.h (ENCODE_UTF_8): New.
26         (Qutf_8): Declare.
28         * coding.c (Qutf_8): New.
29         (syms_of_coding): Intern it.
31         * fns.c: Doc fixes.
33 2003-06-02  Kenichi Handa  <handa@m17n.org>
35         * buffer.c (Fset_buffer_multibyte): Fix previous change.
37 2003-05-31  John Paul Wallington  <jpw@gnu.org>
39         * Makefile.in (lisp, shortlisp): byte-run, float-sup, map-ynp, and
40         timer are in lisp/emacs-lisp.
42 2003-05-31  Kenichi Handa  <handa@m17n.org>
44         * buffer.c (Fset_buffer_multibyte): Correctly recover a narrowed
45         region when a buffer is changed to unibyte.
47         * charset.h (VALID_LEADING_CODE_P): New macro.
48         (UNIBYTE_STR_AS_MULTIBYTE_P): Check more rigidly.
50         * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): If coding->flags
51         is nonzero, accept multibyte form of eight-bit-control chars.
52         (decode_composition_emacs_mule): Likewise.
53         (decode_coding_emacs_mule): Likewise.
54         (encode_coding_emacs_mule): If coding->flags is nonzero, produce
55         multibyte form of eight-bit-control chars.
57         * fileio.c (Qauto_save_coding, auto_save_coding): New variables.
58         (Finsert_file_contents): If coding-system-for-read is bound to
59         Qauto_save_coding, use the coding system emacs-mule with special
60         setting for recovering a file.
61         (choose_write_coding_system): On auto saving, use the coding
62         system emacs-mule with special setting for auto saving.
63         (syms_of_fileio) <Qauto_save_coding>: Intern and staticpro it.
65 2003-05-30  Kenichi Handa  <handa@m17n.org>
67         * coding.c (ccl_coding_driver): Set ccl->eight_bit_control
68         properly before calling ccl_driver.
70         * ccl.h (struct ccl_program) <eight_bit_control>: Comment fixed.
72         * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when it is
73         nonzero.
74         (ccl_driver): Initialize extra_bytes to ccl->eight_bit_control.
75         (setup_ccl_program): Initialize ccl->eight_bit_control to zero.
77 2003-05-29  Kenichi Handa  <handa@m17n.org>
79         * coding.c (decode_coding_iso2022): Pay attention to the byte
80         sequence of CTEXT extended segment, and retain those bytes as is.
82 2003-05-28  Kenichi Handa  <handa@m17n.org>
84         * coding.c (ENCODE_UNSAFE_CHARACTER): Adjusted for the name change
85         of CODING_REPLACEMENT_CHARACTER.
86         (decode_coding_iso2022): If CODING_FLAG_ISO_SAFE, set
87         CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in coding->mode, and
88         check this flag on encoding.
89         (encode_coding_sjis_big5): Check
90         CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag of coding->mode.
91         (Fset_terminal_coding_system_internal): Set
92         CODING_MODE_INHIBIT_UNENCODABLE_CHAR flag in terminal_coding.mode
93         instead of setting CODING_FLAG_ISO_SAFE flag in
94         terminal_coding.flags.
96         * coding.h (CODING_REPLACEMENT_CHARACTER): Renamed from
97         CODING_INHIBIT_CHARACTER_SUBSTITUTION.
98         (CODING_MODE_INHIBIT_UNENCODABLE_CHAR): New macro.
100 2003-05-28  Richard M. Stallman  <rms@gnu.org>
102         * print.c (syms_of_print) <print-escape-nonascii>: Doc fix.
104         * eval.c (unbind_to): Move init of this_binding to separate statement.
106 2003-05-28  Kim F. Storm  <storm@cua.dk>
108         * xdisp.c (expose_window): Fix error in calculation of
109         window relative coordinates of area to redisplay.
111 2003-05-27  Jason Rumney  <jasonr@gnu.org>
113         * w32term.c (GET_WHEEL_DELTA_WPARAM): New macro.
115 2003-05-27  David Ponce  <david@dponce.com>
117         Handle W32 mouse wheel events as mouse click events, like in X.
119         * keyboard.c (make_lispy_event) [WINDOWSNT]: Don't handle
120         MOUSE_WHEEL_EVENT anymore.
122         * w32term.c (construct_mouse_wheel): Result is a MOUSE_CLICK_EVENT.
123         Scrolling down/up the mouse wheel is respectively mapped to mouse
124         button 4 and 5.
125         (w32_read_socket): Map w32 WM_MOUSEWHEEL events to Emacs
126         MOUSE_CLICK_EVENT events.  Forward w32 MSH_MOUSEWHEEL events as
127         WM_MOUSEWHEEL events.
129 2003-05-27  Andreas Schwab  <schwab@suse.de>
131         * buffer.c (syms_of_buffer) <default-direction-reversed>: Doc fix.
133         * xdisp.c (try_window_id): Avoid aborting if PT is inside a
134         partially visible line.
136         * alloc.c (Fgarbage_collect): Fix last change.
138 2003-05-26  John Paul Wallington  <jpw@gnu.org>
140         * xfns.c (Fx_create_frame): Don't call Qface_set_after_frame_default.
142 2003-05-25  Stefan Monnier  <monnier@cs.yale.edu>
144         * window.c (Fset_window_buffer): Add type of `keep_margins'.
145         (Fset_window_fringes, Fset_window_scroll_bars): Declare before use.
147         * window.h (window_box_text_cols): Declare.
149         * xdisp.c (window_text_bottom_y, draw_row_fringe_bitmaps)
150         (x_draw_vertical_border): Remove unused var `f'.
152         * xfaces.c (build_scalable_font_name): Remove `unused var
153         pixel_size' warning.
155         * xfns.c (png_load): Remove `unused vars intent, image_gamma' warning.
157         * unexelf.c (unexec): Remove `unused var n' warning.
159         * strftime.c (my_strftime_localtime_r): Remove `defined but
160         unused' warning.
162         * process.c (allocate_pty): Remove `unused var stb' and
163         `cp might be used uninitialized' warnings.
165         * dispnew.c (mode_line_string): Remove unused var `f'.
167         * coding.c (find_safe_codings): Remove unused var `i'.
169         * bytecode.c (Fbyte_code): Remove `unused val' warning.
171         * buffer.c (Fkill_buffer): Remove unused var `list'.
173         * alloc.c (Fgarbage_collect): Remove `unused var tail' warning.
175 2003-05-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
177         * frame.c (make_frame): Condition want_fullscreen with
178         HAVE_WINDOW_SYSTEM.
180 2003-05-25  Juanma Barranquero  <lektu@terra.es>
182         * window.c (Fset_window_scroll_bars): Fix typo in argument name.
183         (Fwindow_scroll_bars): Fix typo in docstring.
185 2003-05-24  Kim F. Storm  <storm@cua.dk>
187         The following changes serve several purposes:
189         1) Swap the position of fringes and display margins in windows, i.e.
190         the fringes are now displayed between the margins and the text area
191         (by default).
193         2) Allow fringe and scroll bar parameters to be set per-buffer and
194         per-window (like display margins).  Such settings are now stored
195         in window configurations, preserved when frames are resized, and
196         copied when windows are split vertically or horizontally.
197         Several bugs related to display margins have been fixed.
199         3) Consistently use FRAME_FONT and FRAME_FONTSET macros.
201         4) Use FRAME_COLUMN_WIDTH (f) consistently throughout the code
202         rather than FRAME_WIDTH (FRAME_FONT (f)).
204         5) Introduce a consistent naming of variables, members and macros
205         depending on whether their value is measured in pixels or in
206         canonical columns/lines.  Pixel dimensions are named *_width and
207         *_height, while canonical columns/lines are named *_cols and
208         *_lines.  Pixel positions are named *_x and *_y, while column/line
209         positions are named *_col and *_line.
211         6) Consolidate more of the X, W32, and MAC gui code by moving
212         common data into struct frame, and generalize it for the non-gui
213         case by using suitable defaults.
215         7) Cleanup and consolidate the macros controlling frame and window
216         layout into frame.h and window.h, and generalize the use of the
217         various window_box_* functions (enhanced to handle the new fringe
218         position and the per-window fringe and scroll bar settings).
220         * frame.h (struct frame): Rename members height to text_lines,
221         width to text_cols, window_height to total_lines, window_width to
222         total_cols, new_height to new_text_lines, new_width to
223         new_text_cols.  All uses changed.
224         (struct frame): New members which consolidate common members of
225         x_output, w32_output, and mac_output structures: left_pos,
226         top_pos, pixel_height, pixel_width, x_pixels_diff, y_pixels_diff,
227         win_gravity, size_hint_flags, border_width, internal_border_width,
228         line_height, fringe_cols, left_fringe_width, right_fringe_width,
229         want_fullscreen.  All uses changed.
230         (struct frame): New member column_width contaning the canonical
231         column width, analogue to line_height.  All uses changed.
232         (struct frame): Rename members scroll_bar_pixel_width to
233         config_scroll_bar_width, and scroll_bar_cols to
234         config_scroll_bar_cols.  All uses changed.
235         (struct frame): New member scroll_bar_actual_width which
236         consolidates and renames the vertical_scroll_bar_extra member of
237         x_output, w32_output, and mac_output structures.  All uses changed.
238         (FRAME_PIXEL_HEIGHT): Renamed from PIXEL_HEIGHT and moved
239         from x/w32/macterm.h files.  All uses changed.  Also change code
240         which referred to f->output_data...->pixel_height.
241         (FRAME_PIXEL_WIDTH): Renamed from PIXEL_WIDTH and moved
242         from x/w32/macterm.h files.  All uses changed.  Also change code
243         which referred to f->output_data...->pixel_width.
244         (FRAME_LINES): Renamed from FRAME_HEIGHT.  All uses changed.
245         Also change code which referred to f->height.
246         (FRAME_COLS): Renamed from FRAME_WIDTH.  All uses changed.
247         Also change code which referred to f->width.
248         (FRAME_NEW_HEIGHT, FRAME_NEW_WIDTH): Remove macros; change uses
249         to update new_text_lines and new_text_cols members directly.
250         (FRAME_CONFIG_SCROLL_BAR_WIDTH): Renamed from
251         FRAME_SCROLL_BAR_PIXEL_WIDTH.  All uses changed.
252         (FRAME_CONFIG_SCROLL_BAR_COLS): Renamed from
253         FRAME_SCROLL_BAR_COLS.  All uses changed.
254         (FRAME_LEFT_SCROLL_BAR_COLS, FRAME_RIGHT_SCROLL_BAR_COLS):
255         Renamed from FRAME_LEFT_SCROLL_BAR_WIDTH and
256         FRAME_RIGHT_SCROLL_BAR_WIDTH, resp.  All uses changed.
257         (FRAME_SCROLL_BAR_AREA_WIDTH, FRAME_LEFT_SCROLL_BAR_AREA_WIDTH)
258         (FRAME_RIGHT_SCROLL_BAR_AREA_WIDTH): New macros.
259         (FRAME_TOTAL_COLS): Renamed from FRAME_WINDOW_WIDTH.
260         (SET_FRAME_COLS): Renamed from SET_FRAME_WIDTH.
261         (FRAME_TOTAL_COLS_ARG): Renamed from FRAME_WINDOW_WIDTH_ARG.
262         (WINDOW_VERTICAL_SCROLL_BAR_COLUMN): Remove unused macro.
263         (WINDOW_VERTICAL_SCROLL_BAR_HEIGHT): Remove unused macro.
264         (FRAME_LINE_HEIGHT): Renamed from CANON_Y_UNIT.  Unconditionally
265         return line_height member (it now has proper value also for
266         non-window frames).
267         (FRAME_COLUMN_WIDTH): Renamed from CANON_X_UNIT.  Unconditionally
268         return new column_width member (rather than the default font width).
269         (FRAME_FRINGE_COLS, FRAME_LEFT_FRINGE_WIDTH)
270         (FRAME_RIGHT_FRINGE_WIDTH): Renamed from FRAME_X_... and moved
271         from x/w32/macterm.h files.  Unconditionally return corresponding
272         member of frame structure (they now have proper values also for
273         non-window frames).
274         (FRAME_TOTAL_FRINGE_WIDTH): Renamed from FRAME_FRINGE_WIDTH.
275         Calculate return value from left and right widths.
276         (FRAME_INTERNAL_BORDER_WIDTH): Unconditionally return
277         internal_border_width member (has proper value for non-window frame).
278         (FRAME_PIXEL_X_FROM_CANON_X): Renamed from PIXEL_X_FROM_CANON_X.
279         (FRAME_PIXEL_Y_FROM_CANON_Y): Renamed from PIXEL_Y_FROM_CANON_Y.
280         (FRAME_CANON_X_FROM_PIXEL_X): Renamed from CANON_X_FROM_PIXEL_X.
281         (FRAME_CANON_Y_FROM_PIXEL_Y): Renamed from CANON_Y_FROM_PIXEL_Y.
282         (FRAME_LINE_TO_PIXEL_Y): Renamed from CHAR_TO_PIXEL_ROW,
283         consolidated from xterm.h, macterm.h, and w32term.h.
284         (FRAME_COL_TO_PIXEL_X): Renamed from CHAR_TO_PIXEL_COL,
285         consolidated from xterm.h, macterm.h, and w32term.h.
286         (FRAME_TEXT_COLS_TO_PIXEL_WIDTH): Renamed from
287         CHAR_TO_PIXEL_WIDTH consolidated from x/mac/w32term.h.
288         (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Renamed from
289         CHAR_TO_PIXEL_HEIGHT consolidated from x/mac/w32term.h.
290         (FRAME_PIXEL_Y_TO_LINE): Renamed from PIXEL_TO_CHAR_ROW
291         consolidated from x/mac/w32term.h.
292         (FRAME_PIXEL_X_TO_COL): Renamed from PIXEL_TO_CHAR_COL
293         consolidated from x/mac/w32term.h.
294         (FRAME_PIXEL_WIDTH_TO_TEXT_COLS): Renamed from
295         PIXEL_TO_CHAR_WIDTH consolidated from x/mac/w32term.h.
296         (FRAME_PIXEL_HEIGHT_TO_TEXT_LINES): Renamed from
297         PIXEL_TO_CHAR_HEIGHT consolidated from x/mac/w32term.h.
299         * window.h (struct window): Rename members left to left_col,
300         top to top_line, height to total_lines, width to total_cols,
301         left_margin_width to left_margin_cols, right_margin_width to
302         right_margin_cols, orig_height to orig_total_lines, orig_top to
303         orig_top_line.  All uses changed.
304         (struct window): New members left_fringe_width, right_fringe_width,
305         fringes_outside_margins, scroll_bar_width, vertical_scroll_bar_type.
306         (WINDOW_XFRAME, WINDOW_FRAME_COLUMN_WIDTH, WINDOW_FRAME_LINE_HEIGHT):
307         New macros primarily used to simplify other macros.
308         (WINDOW_TOTAL_COLS): New macro.  Change relevant code that
309         referred to XINT (w->width).
310         (WINDOW_TOTAL_LINES): New macro.  Change relevant code that
311         referred to XINT (w->height).
312         (WINDOW_TOTAL_WIDTH): New macro.  Change relevant code that
313         referred to XINT (w->width) * canon_x_unit.
314         (WINDOW_TOTAL_HEIGHT): New macro.  Change relevant code that
315         referred to XINT (w->height) * canon_y_unit.
316         (WINDOW_LEFT_EDGE_COL): New macro.  Change relevant code that
317         referred to XINT (w->left).
318         (WINDOW_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_EDGE.  Change
319         all uses and code that referred to XINT (w->left) + XINT (w->width).
320         (WINDOW_TOP_EDGE_LINE): New macro.  Change relevant code that
321         referred to XINT (w->top).
322         (WINDOW_BOTTOM_EDGE_LINE): New macro.  Change relevant code that
323         referred to XINT (w->top) + XINT (w->height).
324         (WINDOW_LEFT_EDGE_X): New macro.  Change relevant code that
325         referred to XINT (w->left) * canon_x_unit.
326         (WINDOW_RIGHT_EDGE_X): New macro.  Change relevant code that
327         referred to (XINT (w->left) + XINT (w->width)) * canon_x_unit.
328         (WINDOW_TOP_EDGE_Y): New macro.  Change relevant code that
329         referred to XINT (w->top) * canon_y_unit.
330         (WINDOW_BOTTOM_EDGE_Y): New macro.  Change relevant code that
331         referred to (XINT (w->top) + XINT (w->height)) * canon_y_unit.
332         (WINDOW_LEFTMOST_P): New macro.
333         (WINDOW_BOX_LEFT_EDGE_COL): Renamed from WINDOW_LEFT_MARGIN.
334         All uses changed.
335         (WINDOW_BOX_RIGHT_EDGE_COL): Renamed from WINDOW_RIGHT_MARGIN.
336         All uses changed.
337         (WINDOW_BOX_LEFT_EDGE_X): Renamed from
338         WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, moved from dispextern.h.
339         Do not exclude left fringe width.
340         (WINDOW_BOX_RIGHT_EDGE_X): Renamed from
341         WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X, moved from dispextern.h.
342         Do not exclude fringe widths.
343         (WINDOW_LEFT_FRINGE_WIDTH, WINDOW_RIGHT_FRINGE_WIDTH)
344         (WINDOW_FRINGE_COLS, WINDOW_TOTAL_FRINGE_WIDTH): New macros.
345         Change relevant code that referred to FRAME_LEFT_FRINGE_WIDTH,
346         FRAME_RIGHT_FRINGE_WIDTH, FRAME_FRINGE_COLS, and
347         FRAME_TOTAL_FRINGE_WIDTH to allow per-window fringe settings.
348         (WINDOW_HAS_FRINGES_OUTSIDE_MARGINS): New macro.
349         (WINDOW_VERTICAL_SCROLL_BAR_TYPE, WINDOW_HAS_VERTICAL_SCROLL_BAR)
350         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_LEFT)
351         (WINDOW_HAS_VERTICAL_SCROLL_BAR_ON_RIGHT)
352         (WINDOW_CONFIG_SCROLL_BAR_WIDTH, WINDOW_CONFIG_SCROLL_BAR_COLS):
353         New macros.  Change code which referenced corresponding
354         FRAME_VERTICAL_SCROLL_BAR_TYPE, FRAME_HAS_VERTICAL_SCROLL_BARS,
355         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_LEFT,
356         FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT,
357         FRAME_SCROLL_BAR_PIXEL_WIDTH, and FRAME_SCROLL_BAR_COLS macros to
358         allow per-window scroll-bar settings.
359         (WINDOW_LEFT_SCROLL_BAR_COLS, WINDOW_RIGHT_SCROLL_BAR_COLS): New macros.
360         (WINDOW_LEFT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code that
361         referred to FRAME_LEFT_SCROLL_BAR_WIDTH.
362         (WINDOW_RIGHT_SCROLL_BAR_AREA_WIDTH): New macro.  Change code
363         that referred to FRAME_HAS_VERTICAL_SCROLL_BARS_ON_RIGHT and
364         FRAME_SCROLL_BAR_WIDTH.
365         (WINDOW_SCROLL_BAR_COLS, WINDOW_SCROLL_BAR_AREA_WIDTH)
366         (WINDOW_SCROLL_BAR_AREA_X): New macros.
367         (WINDOW_HEADER_LINE_HEIGHT): Renamed from
368         WINDOW_DISPLAY_HEADER_LINE_HEIGHT, moved from dispextern.h.
369         (WINDOW_BOX_HEIGHT_NO_MODE_LINE): Renamed from
370         WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, moved from dispextern.h.
371         (WINDOW_BOX_TEXT_HEIGHT): Renamed from
372         WINDOW_DISPLAY_PIXEL_WIDTH, moved from dispextern.h.
373         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
374         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
375         (WINDOW_TEXT_TO_FRAME_PIXEL_X): Moved here from dispextern.h.
376         (WINDOW_LEFT_MARGIN_WIDTH): Renamed from
377         WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH, moved from dispextern.h.
378         (WINDOW_RIGHT_MARGIN_WIDTH): Renamed from
379         WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, moved from dispextern.h.
380         (window_from_coordinates): Update prototype.
381         (Fset_window_buffer): Update EXFUN.
382         (set_window_buffer): Update prototype.
384         * dispextern.h (struct glyph_matrix): Rename members window_left_x
385         to window_left_col, window_top_y to window_top_line.  All uses
386         changed.
387         (FRAME_INTERNAL_BORDER_WIDTH_SAFE): Remove macro; can now safely
388         use FRAME_INTERNAL_BORDER_WIDTH macro instead as
389         internal_border_width is now set to 0 for non-window frames.
390         (WINDOW_DISPLAY_PIXEL_WIDTH, WINDOW_DISPLAY_PIXEL_HEIGHT)
391         (WINDOW_DISPLAY_MODE_LINE_HEIGHT, WINDOW_DISPLAY_HEADER_LINE_HEIGHT)
392         (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE, WINDOW_DISPLAY_TEXT_HEIGHT)
393         (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X, WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X)
394         (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y, WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y)
395         (WINDOW_TO_FRAME_PIXEL_X, WINDOW_TO_FRAME_PIXEL_Y)
396         (FRAME_TO_WINDOW_PIXEL_X, FRAME_TO_WINDOW_PIXEL_Y)
397         (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH)
398         (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH, WINDOW_WANTS_MODELINE_P):
399         Move to window.h and renamed [see window.h changes].
400         (WINDOW_AREA_TO_FRAME_PIXEL_X, WINDOW_AREA_PIXEL_WIDTH)
401         (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Remove macros.
402         (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P):
403         Use WINDOW_TOTAL_LINES.
404         (frame_update_line_height): Remove prototype.
406         * buffer.h (struct buffer): Rename members measured in columns:
407         left_margin_width to left_margin_cols, right_margin_width to
408         right_margin_cols.  All uses changed.
409         New members left_fringe_width, right_fringe_width,
410         fringes_outside_margins for per-buffer fringe settings.
411         New members scroll_bar_width and vertical_scroll_bar_type for
412         per-buffer scroll bar settings.
414         * buffer.c (init_buffer_once): Set buffer_defaults and
415         buffer_local_flags for new buffer-local variables
416         left_fringe_width, right_fringe_width, fringes_outside_margins,
417         scroll_bar_width, and vertical_scroll_bar_type.
418         (syms_of_buffer): Defvar_per_buffer them, and defvar_lisp_nopro
419         default-* variables for them.
421         * dispnew.c: Make (many) trivial substitutions for renamed and
422         new macros in dispextern.h, frame.h and window.h.
423         (mode_line_string): No need to adjust width for mode lines, as it
424         is already adjusted by the caller.
425         (marginal_area_string): Handle fringes inside/outside margins.
427         * frame.c: Make (many) trivial substitutions for renamed and
428         new macros in dispextern.h, frame.h and window.h.
429         (make_frame): Initialize left_fringe_width, right_fringe_width,
430         fringe_cols, scroll_bar_actual_width, border_width,
431         internal_border_width, column_width, line_height, x_pixels_diff,
432         y_pixels_diff, want_fullscreen, size_hint_flags, and win_gravity
433         members with values suitable for a non-window frames.
435         * gtkutil.c: Make (many) trivial substitutions for renamed and
436         new macros in dispextern.h, frame.h and window.h.
438         * indent.c: Make (few) trivial substitutions for renamed and
439         new macros in dispextern.h, frame.h and window.h.
441         * keyboard.c: Make (many) trivial substitutions for renamed and
442         new macros in dispextern.h, frame.h and window.h.
443         (make_lispy_event): Use window positions returned from
444         window_from_coordinates when constructing the lisp event for
445         MOUSE_CLICK_EVENT and DRAG_N_DROP_EVENT, rather than calculating
446         (incorrect) values locally.
447         (make_lispy_movement): Use window positions returned from
448         window_from_coordinates when constructing the lisp event, rather
449         than calculating (incorrect) values locally.
451         * scroll.c: Make (some) trivial substitutions for renamed and
452         new macros in dispextern.h, frame.h and window.h.
454         * sunfns.c (Fsun_menu_internal): Adapt to per-window fringes and
455         scroll-bars.
457         * sysdep.c: Make (few) trivial substitutions for renamed and
458         new macros in dispextern.h, frame.h and window.h.
460         * term.c: Make (some) trivial substitutions for renamed and
461         new macros in dispextern.h, frame.h and window.h.
463         * widget.c: Make (few) trivial substitutions for renamed and
464         new macros in dispextern.h, frame.h and window.h.
466         * window.c: Make (many) trivial substitutions for renamed and
467         new macros in dispextern.h, frame.h and window.h.
468         (make_window): Initialize new members
469         left_margin_cols, right_margin_cols, left_fringe_width,
470         right_fringe_width, fringes_outside_margins, scroll_bar_width,
471         and vertical_scroll_bar_type.
472         (coordinates_in_window): Adapted to new fringe/margin positions
473         and per-window fringes and scroll-bars.
474         Fix bug related to incorrectly adjusting coordinates by
475         frame's internal_border_width (the effect normally negible since
476         the internal_border_width is typically 0 or 1 pixel, but very
477         noticeable for an internal_border_width of e.g. 25 pixels).
478         Upon successful return (other than ON_NOTHING), the coordinates
479         are now always properly converted to window relative for the
480         given display element.
481         (window_from_coordinates): Add new parameters wx and wy to
482         return the window relative x and y position in the returned
483         window and part.  A null arg means, don't return the position.
484         All callers changed.
485         (adjust_window_margins): New function which may reduce the width
486         of the display margins if a window's text area is too small after
487         resizing or splitting windows.
488         (size_window): Fix bug that did not account for display margin
489         widths when checking the minimum width of a window; use
490         adjust_window_margins.
491         (set_window_buffer): Call Fset_window_fringes and
492         Fset_window_scroll_bars to setup per-window elements.
493         Add new arg KEEP_MARGINS_P.  Non-nil means to keep window's
494         existing display margin, fringe widths, and scroll bar settings
495         (e.g. after splitting a window or resizing the frame).
496         All callers changed.
497         (Fset_window_buffer): New arg KEEP_MARGINS.  All callers changed.
498         (Fsplit_window): Duplicate original window's display margin,
499         fringe, and scroll-bar settings; then call Fset_window_buffer with
500         KEEP_MARGINS non-nil.  This fixes a bug which caused a split
501         window to only preserve the display margins in one of the windows.
502         When splitting horizontally, call adjust_window_margins on both
503         windows to ensure that the text area of the new windows is non too
504         narrow.  This fixes a bug which could cause emacs to trap if the
505         width of the split window was less than the width of the display
506         margins.
507         (window_box_text_cols): Renamed from window_internal_width.
508         All uses changed.  Adapt to per-window fringes and scroll bars.
509         Fix bug that caused vertical separator to be subtracted also on
510         window frames.  Fix another bug that did not reduce the returned
511         value by the columns used for display margins.
512         (window_scroll_line_based): Fix bug related to scrolling too much
513         when display margins are present (implicitly fixed by the fix to
514         window_box_text_cols).
515         (scroll_left, scroll_right): Fix bug related to scrolling too far
516         by default when display margins are present (implicitly fixed by
517         the fix to window_box_text_cols).
518         (struct saved_window): Rename members left to left_col, top to
519         top_line, width to total_cols, height to total_lines, orig_top to
520         orig_top_line, orig_height to orig_total_lines.  All uses changed.
521         New members left_margin_cols, right_margin_cols,
522         left_fringe_width, right_fringe_width, fringes_outside_margins,
523         scroll_bar_width, and vertical_scroll_bar_type for saving
524         per-window display elements.
525         (Fset_window_configuration): Restore display margins, fringes,
526         and scroll bar settings.  This fixes a bug which caused display
527         margins to be discarded when saving and restoring a window
528         configuration.
529         (save_window_save): Save display margins, fringes, and scroll bar
530         settings.  This fixes a bug which caused display margins to be
531         discarded when saving and restoring a window configuration.
532         (Fset_window_margins): Do nothing if display margins are not
533         really changed.  Otherwise, call adjust_window_margins to ensure
534         the text area doesn't get too narrow.  This fixes a bug which
535         could cause emacs to trap if setting display margins wider than
536         the width of the window.
537         (Fset_window_fringes): New defun to allow user to specifically set
538         this window's fringe widths and position vs. display margins.
539         (Fwindow_fringes): New defun to return window's actual fringe
540         settings.
541         (Fset_window_scroll_bars): New defun to allow user to specifically
542         set this window's scroll bar width and position.
543         (Fwindow_scroll_bars): New defun to return window's actual scroll
544         bar settings.
545         (compare_window_configurations): Also compare display margins,
546         fringes, and scroll bar settings.
547         (syms_of_window): Defsubr new defuns for fringe and scroll bars.
549         * xdisp.c: Make (many) trivial substitutions for renamed and
550         new macros in dispextern.h, frame.h and window.h.
551         (window_box_width): Adapt to per-window fringes and scroll bars,
552         and new fringe vs. display margin position. Note that returned
553         value is no longer guaranteed to be a whole multiple of the frame
554         column width, since per-window fringes may now be any width.
555         (window_box_left_offset): New function like window_box_left, but
556         value is relative to left border of window (rather than frame).
557         (window_box_right_offset): New function like window_box_right,
558         but value is relative to left border of window.
559         (window_box_left): Adapt to per-window fringes and scroll bars,
560         and new fringe vs. display margin position.  Simplify by using
561         WINDOW_LEFT_EDGE_X and window_box_left_offset.
562         (window_box): Allow null args for unnecessary return values;
563         change/simplify relevant callers.
564         (x_y_to_hpos_vpos): Adapt to per-window fringes and scroll bars,
565         and new fringe vs. display margin position.
566         Use window_box_left_offset and window_box_right_offset
567         (get_glyph_string_clip_rect): Adapt to per-window fringes and
568         scroll bars, and new fringe vs. display margin position.
569         Use WINDOW_LEFT_EDGE_X and WINDOW_TOTAL_WIDTH.
570         (draw_fringe_bitmap): Rework to handle per-window fringes and new
571         fringe vs. display margin position.
572         (hscroll_window_tree): Use window_box_width instead of window_box.
573         (redisplay_window):  Adapt to per-window scroll bars.
574         (draw_glyphs):  Rework to handle per-window fringes and scroll
575         bars, and new fringe vs. display margin position.
576         Use WINDOW_LEFT_EDGE_X, WINDOW_TOTAL_WIDTH, and window_box_left.
577         (x_clear_end_of_line):  Adapt to per-window fringes and scroll
578         bars, and new fringe vs. display margin position.  Fix bug which
579         increased total width of full_width rows by width of scroll bars
580         although window's total width already includes that.
581         (x_fix_overlapping_area): Simplify using window_box_left_offset.
582         (expose_area): Simplify using window_box_left_offset.
583         (x_draw_vertical_border): Handle per-window scroll bar settings,
584         mixing windows with left, right and no scroll bars.
586         * xfaces.c [WINDOWSNT]: Move redefinition of FONT_WIDTH macro to
587         where it's used in x_list_fonts (for clarity).
588         (frame_update_line_height): Remove unused function; functionality
589         is now done directly when setting the default font in x_set_font.
591         * xfns.c: Make (many) trivial substitutions for renamed and
592         new macros in dispextern.h, frame.h and window.h.
594         * xmenu.c: Make (some) trivial substitutions for renamed and
595         new macros in dispextern.h, frame.h and window.h.
597         * xterm.h (struct x_output): Move members left_pos, top_pos,
598         border_width, pixel_height, pixel_width, line_height,
599         internal_border_width, vertical_scroll_bar_extra,
600         left_fringe_width, right_fringe_width, fringe_cols,
601         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
602         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
603         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
604         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
605         (PIXEL_WIDTH, PIXEL_HEIGHT)
606         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
607         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
608         frame.h and renamed [see frame.h changes].
609         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
610         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
611         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
612         and renamed [see frame.h changes].
614         * xterm.c: Make (several) trivial substitutions for renamed and
615         new macros in dispextern.h, frame.h and window.h.
616         (x_draw_glyph_string_box): Adapt to per-window fringes and
617         scroll-bars.
618         (scroll_run): Adapt to new fringe position.
619         (glyph_rect): Use window coordinates returned from
620         window_from_coordinates rather than frame_to_window_pixel_xy.
621         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
622         scroll-bars.
623         (handle_one_xevent): Simplify a USE_GTK conditional.
624         (x_clip_to_row): Remove superfluous whole_line_p arg and code
625         (fringes are now inside margins, i.e. always in the clipping area).
626         All callers changed.
627         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
628         directly, then call compute_fringe_widths.  Don't call
629         frame_update_line_height.
631         * w32term.h (struct w32_output): Move members left_pos, top_pos,
632         border_width, pixel_height, pixel_width, line_height,
633         internal_border_width, vertical_scroll_bar_extra,
634         left_fringe_width, right_fringe_width, fringe_cols,
635         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
636         x_pixels_diff, and y_pixels_diff to struct frame (frame.h).
637         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
638         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
639         (PIXEL_WIDTH, PIXEL_HEIGHT)
640         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
641         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
642         frame.h and renamed [see frame.h changes].
643         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
644         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
645         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
646         and renamed [see frame.h changes].
648         * w32term.c: Make (several) trivial substitutions for renamed and
649         new macros in dispextern.h, frame.h and window.h.
650         (x_draw_glyph_string_box): Adapt to per-window fringes and
651         scroll-bars.
652         (glyph_rect): Use window coordinates returned from
653         window_from_coordinates rather than frame_to_window_pixel_xy.
654         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
655         scroll-bars.
656         (w32_clip_to_row): Remove superfluous whole_line_p arg and code
657         (fringes are now inside margins, i.e. always in the clipping area).
658         All callers changed.
659         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
660         directly, then call compute_fringe_widths.  Don't call
661         frame_update_line_height.
663         * w32console.c: Make (few) trivial substitutions for renamed and
664         new macros in dispextern.h, frame.h and window.h.
666         * w32fns.c: Make (many) trivial substitutions for renamed and
667         new macros in dispextern.h, frame.h and window.h.
669         * w32menu.c: Make (few) trivial substitutions for renamed and
670         new macros in dispextern.h, frame.h and window.h.
672         * macterm.h (struct mac_output): Move members left_pos, top_pos,
673         border_width, pixel_height, pixel_width, line_height,
674         internal_border_width, vertical_scroll_bar_extra,
675         left_fringe_width, right_fringe_width, fringe_cols,
676         fringes_extra, win_gravity, size_hint_flags, want_fullscreen,
677         x_pixels_diff, y_pixels_diff to struct frame (frame.h).
678         (FRAME_INTERNAL_BORDER_WIDTH, FRAME_LINE_HEIGHT): Move to frame.h.
679         (FRAME_DEFAULT_FONT_WIDTH): Remove macro.
680         (PIXEL_WIDTH, PIXEL_HEIGHT)
681         (FRAME_X_FRINGE_COLS, FRAME_X_FRINGE_WIDTH)
682         (FRAME_X_LEFT_FRINGE_WIDTH, FRAME_X_RIGHT_FRINGE_WIDTH): Moved to
683         frame.h and renamed [see frame.h changes].
684         (CHAR_TO_PIXEL_ROW, CHAR_TO_PIXEL_COL, CHAR_TO_PIXEL_WIDTH)
685         (CHAR_TO_PIXEL_HEIGHT, PIXEL_TO_CHAR_ROW, PIXEL_TO_CHAR_COL)
686         (PIXEL_TO_CHAR_WIDTH, PIXEL_TO_CHAR_HEIGHT): Moved to frame.h
687         and renamed [see frame.h changes].
689         * macterm.c: Make (several) trivial substitutions for renamed and
690         new macros in dispextern.h, frame.h and window.h.
691         (x_draw_glyph_string_box): Adapt to per-window fringes and
692         scroll-bars.
693         (glyph_rect): Use window coordinates returned from
694         window_from_coordinates rather than frame_to_window_pixel_xy.
695         (XTset_vertical_scroll_bar): Adapt to per-window fringes and
696         scroll-bars.
697         (x_clip_to_row): Remove superfluous whole_line_p arg and code
698         (fringes are now inside margins, i.e. always in the clipping area).
699         All callers changed.
700         (x_new_font): Set FRAME_COLUMN_WIDTH and FRAME_LINE_HEIGHT
701         directly, then call compute_fringe_widths.  Don't call
702         frame_update_line_height.
704         * macfns.c: Make (several) trivial substitutions for renamed and
705         new macros in dispextern.h, frame.h and window.h.
706         (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
708         * macmenu.c: Make (few) trivial substitutions for renamed and
709         new macros in dispextern.h, frame.h and window.h.
711         * msdos.h (struct x_output): Remove members left_pos, top_pos,
712         and line_height, and use corresponding new members in struct
713         frame.  All uses changed.
714         (FRAME_LINE_HEIGHT, FRAME_INTERNAL_BORDER_WIDTH): Remove macros;
715         superseeded by corresponding macros in frame.h.
717         * msdos.c: Make (several) trivial substitutions for renamed and
718         new macros in dispextern.h, frame.h and window.h.
719         (IT_note_mouse_highlight): Use updated window coordinates returned
720         by window_from_coordinates, rather than adjusting them locally.
721         (internal_terminal_init): No need to initialize line_height here;
722         it now defaults to 1.
724 2003-05-24  Stefan Monnier  <monnier@cs.yale.edu>
726         * keyboard.c (read_key_sequence): Adjust fkey and keytran when
727         dropping `down' events.
729 2003-05-24  Andreas Schwab  <schwab@suse.de>
731         * coding.c (find_safe_codings): Fix last change.
733 2003-05-24  Istvan Marko  <mi@imarko.dhs.org>  (tiny change)
735         * xfns.c (x_window): Fix typo from 2003-05-21 change.
737 2003-05-23  Stefan Monnier  <monnier@cs.yale.edu>
739         * xdisp.c (display_mode_element): Increase max depth.
740         Simplify the error handling code.  Use a different error string
741         for the case where we hit the depth limit.
743         * lisp.h (Vfundamental_mode_abbrev_table): Don't declare.
745         * buffer.c (reset_buffer_local_variables): Remove redundant setting.
747 2003-05-21  Stefan Monnier  <monnier@cs.yale.edu>
749         * intervals.c (get_local_map): Don't get char-property of previous
750         point any more: get_pos_property already does it and better.
752 2003-05-21  Dave Love  <fx@gnu.org>
754         [Merged from unicode branch.]
756         * xfns.c (x_window, x_window): Use use_xim.
758         * xterm.c (use_xim): Initialize.
759         (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
760         (x_term_init): Maybe set use_xim.
762         * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
764 2003-05-21  Jason Rumney  <jasonr@gnu.org>
766         * unexw32.c (_start): Remove _fmode initialization.
768         * emacs.c (main) [WINDOWSNT]: Move it here.
770 2003-05-20  Dave Love  <fx@gnu.org>
772         * s/gnu-linux.h (MAIL_USE_FLOCK): Make it conditional.
774 2003-05-19  Richard M. Stallman  <rms@gnu.org>
776         * xfaces.c (Finternal_set_lisp_face_attribute): Handle Qunspecified
777         as value for QCfont attribute.
778         (realize_default_face): lface should already exist; crash if not.
779         Specify 0 for FORCE_P when calling set_lface_from_font_name.
781         * frame.c (Fignore_event): Doc fix.
783 2003-05-19  Kenichi Handa  <handa@m17n.org>
785         * coding.c (decode_coding_string): Handle post-read-conversion
786         even if the coding doesn't require decoding.
788 2003-05-18  Richard M. Stallman  <rms@gnu.org>
790         * callproc.c (Fcall_process_region): Doc fix.
792 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
794         * lread.c (Fload): Print a message if package is obsolete.
796         * window.c (Fselect_window): Add optional `norecord' arg.
797         (select_window_1): Fold into Fselect_window.
798         (select_window_norecord): New function.
799         (temp_output_buffer_show): Use it.  Preserve current buffer.
801         * window.h (Fselect_window): Update declaration.
803         * window.c (delete_window, Fother_window, Fset_window_configuration):
804         * minibuf.c (read_minibuf):
805         * macterm.c (x_new_focus_frame):
806         * frame.c (do_switch_frame, Fset_frame_selected_window, Fdelete_frame):
807         * callint.c (Fcall_interactively):
808         * xterm.c (x_new_focus_frame): Pass nil as new arg to Fselect_window.
810         * buffer.c (Fpop_to_buffer): Pass norecord to Fselect_window.
812 2003-05-17  David Kastrup  <dak@gnu.org>
814         * process.c (read_process_output): Back out change from 2003-03-09.
816 2003-05-17  Stefan Monnier  <monnier@cs.yale.edu>
818         * editfns.c (get_pos_property): Don't assume that `object' = nil.
820         * textprop.c (text_property_stickiness): New arg `buffer'.
822         * intervals.h (text_property_stickiness): New arg `buffer'.
823         (get_pos_property): Declare.
825         * intervals.c (get_local_map): Use get_pos_property, to obey
826         stickiness and empty overlays.
827         (create_root_interval, graft_intervals_into_buffer): Use BEG.
828         (merge_properties, intervals_equal, merge_properties_sticky):
829         Use XCAR, XCDR.
830         (adjust_for_invis_intang): Pass new arg to text_property_stickiness.
832 2003-05-17  Richard M. Stallman  <rms@gnu.org>
834         * minibuf.c (read_minibuf): If buffer is empty, record the default
835         in the history.
836         (Fminibuffer_complete_word): When deleting the overlap, take account
837         of its real position.
839         * fns.c (map_char_table): Fix previous change.
841         * syntax.c (find_defun_start):
842         When open_paren_in_column_0_is_defun_start,
843         return beginning of buffer.
845         * lisp.h (map_char_table): Declare added arg.
847         * fns.c (map_char_table): New arg TABLE gets the master table.
848         All calls changed.
849         Process default and inheritance, resorting to Faref if necessary.
851         * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
852         (Faccessible_keymaps): Pass new arg to map_char_table.
854         * fontset.c (Ffontset_info): Pass new arg to map_char_table.
856         * casetab.c (set_case_table): Pass new arg to map_char_table.
858         * data.c (let_shadows_buffer_binding_p): Make target of p volatile.
860         * lisp.h (specbinding_func): New typedef.
861         (struct specbinding): Use specbinding_func, to put the `volatile'
862         in the right place.
864         * alloc.c (Fgarbage_collect): Cast pointers into specpdl
865         to avoid GCC warning.
867 2003-05-16  Ralph Schleicher  <rs@nunatak.allgaeu.org>  (tiny change)
869         * fileio.c (Fdelete_file): Handle symlinks pointing to directories.
871 2003-05-15  Stefan Monnier  <monnier@cs.yale.edu>
873         * keyboard.c (apply_modifiers): Don't fill the other cache.
875 2003-05-14  Stefan Monnier  <monnier@cs.yale.edu>
877         * .gdbinit-union: New file, for USE_LISP_UNION_TYPE users.
879         * window.h (Qwindowp, Qwindow_live_p, Vwindow_list)
880         (Fwindow_end, Fselected_window, Fdelete_window, Fwindow_buffer)
881         (Fget_buffer_window, Fsave_window_excursion, Fsplit_window)
882         (Fset_window_configuration, Fcurrent_window_configuration)
883         (compare_window_configurations, Fcoordinates_in_window_p, Fwindow_at)
884         (Fpos_visible_in_window_p, mark_window_cursors_off)
885         (window_internal_height, window_internal_width, Frecenter)
886         (Fscroll_other_window, Fset_window_start, temp_output_buffer_show)
887         (replace_buffer_in_all_windows, init_window_once, init_window)
888         (syms_of_window, keys_of_window): Move from lisp.h.
889         * lisp.h: Move window.c declarations to window.h.
891         * bytecode.c: Include window.h.
892         * emacs.c: Include window.h.
894         * keyboard.c (make_lispy_event): Apply modifiers to multibyte-char key.
895         (keyremap): Add `parent' field.
896         (keyremap_step): Use it.  Remove `parent' argument.
897         (read_key_sequence): Setup and use the new `parent' field.
899 2003-05-11  Stefan Monnier  <monnier@cs.yale.edu>
901         * keyboard.c (adjust_point_for_property): Ensure termination.
903 2003-05-10  Stefan Monnier  <monnier@cs.yale.edu>
905         * keyboard.c (follow_key): Remove dead variable `did_meta'.
906         (access_keymap_keyremap, keyremap_step): New funs, extracted from the
907         duplicated handling of function-key-map and key-translation-map
908         in read_key_sequence.
909         (read_key_sequence): Use them.
911         * keyboard.c (adjust_point_for_property): Try harder to move point
912         to the non-sticky end of an invisible property.
914         * xdisp.c (single_display_prop_intangible_p): Make `space' display
915         property intangible as well.
917 2003-05-10  Andreas Schwab  <schwab@suse.de>
919         * xmenu.c (single_menu_item): Change last parameter to void* to
920         avoid warning.
922 2003-05-09  Richard M. Stallman  <rms@gnu.org>
924         * print.c (Fprin1_to_string): Instead of gcpro, set abort_on_gc.
925         Bind Qinhibit_modification_hooks to t so there will be no GC.
926         Rename local `tem' to `save_deactivate_mark'.
928         * eval.c (specpdl_ptr): Declare volatile.
929         (unbind_to): Copy the whole binding and decrement specpdl_ptr
930         before doing the work of unbinding it.
932         * lisp.h (struct specbinding): Declare elements volatile.
933         (specpdl_ptr): Declare volatile.
935         * Makefile.in (alloca.o): Specify -DDO_BLOCK_INPUT in compiling.
937         * alloca.c: Test DO_BLOCK_INPUT rather than `emacs'
938         for use of BLOCK_INPUT and inclusion of lisp.h and blockinput.h.
940 2003-05-08  Dave Love  <fx@gnu.org>
942         * coding.c (Vlast_coding_system_used): Doc fix.
944 2003-05-07  Jason Rumney  <jasonr@gnu.org>
946         * fileio.c (Ffile_symlink_p): Let handlers handle symlinks even
947         when system does not support them.
949 2003-05-05  Stefan Monnier  <monnier@cs.yale.edu>
951         * fileio.c (Qwrite_region_annotate_functions): New var.
952         (build_annotations): Use it to process the global part of the hook.
953         (syms_of_fileio): Init and staticpro it.
955         * keyboard.c (safe_run_hooks_error): Display a message instead of
956         silently ignoring the error.
958 2003-05-03  Stefan Monnier  <monnier@cs.yale.edu>
960         * keyboard.c (input_available_signal): Mark static.
961         (menu_bar_items): Use map_keymap.
962         (menu_bar_one_keymap): Remove.
963         (menu_bar_item): Adjust arglist (for use in map_keymap).
964         Properly hide a second binding when not both are keymaps.
966         * xmenu.c (struct skp): New struct, to pass args through map_keymap.
967         (single_keymap_panes): Use it and map_keymap.
968         (single_menu_item): Use skp as well.
970         * keymap.h (map_keymap_function_t): New type.
971         (map_keymap): Declare.
973         * keymap.c (map_keymap_item, map_keymap_char_table_item, map_keymap)
974         (map_keymap_call, Fmap_keymap): New functions.
975         (syms_of_keymap): Defsubr map-keymap.
977 2003-05-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
979         * gtkutil.c (create_dialog, make_widget_for_menu_item)
980         (make_menu_item, create_menus, xg_update_menu_item): Don't call
981         ..._with_mnemonic functions for menu items.
983 2003-05-01  Kenichi Handa  <handa@m17n.org>
985         * coding.c (coding_system_accept_latin_extra_p): Delete this
986         function.
987         (find_safe_codings): Pay attention to
988         the property tranlsation-table-for-encode of each codings.
989         (syms_of_coding): Give Qtranslation_table the extra slot number 2.
991 2003-05-01  Stefan Monnier  <monnier@cs.yale.edu>
993         * eval.c (Funwind_protect): Use func=Fprogn rather than symbol=Qnil.
995 2003-04-30  Stefan Monnier  <monnier@cs.yale.edu>
997         * eval.c (unbind_to): Don't handle symbol = Qnil any more.
999         * lisp.h (CHECK): Wrap args in parenthesis.
1000         (specbind): Fix doc: symbol = Qnil is not supported any more.
1002         * bytecode.c (Fbyte_code) <unwind-protect>:
1003         Use Fprogn rather than 0 and Qnil.
1005         * keyboard.c (parse_modifiers_uncached): Parse `down', `drag',
1006         `double', and `triple' modifiers as well.
1008 2003-04-30  Richard M. Stallman  <rms@gnu.org>
1010         * keyboard.c (echo_char): Don't clear out a dash that follows a space.
1012         * alloc.c (abort_on_gc): New variable.
1013         (Fgarbage_collect): Abort if abort_on_gc is set.
1015         * lisp.h (abort_on_gc): Add decl.
1017         * eval.c (Fsignal): Clear abort_on_gc.
1019         * editfns.c (Fformat): Set abort_on_gc during first scan of format.
1020         Reinit FORMAT_START and END before second scan.
1022         * xdisp.c (move_it_vertically_backward): Do the final big else
1023         even if nlines is 0.
1025         * xdisp.c (redisplay_internal): Finish the per-frame loop
1026         even if redisplay is suspended by input.
1028 2003-04-24  Andrew Choi  <akochoi@shaw.ca>
1030         * macterm.c (x_list_fonts): Return all fonts that match if
1031         maxnames = -1.
1033 2003-04-25  Kenichi Handa  <handa@m17n.org>
1035         * syntax.c (skip_chars): Fix previous change.
1037 2003-04-24  Kenichi Handa  <handa@m17n.org>
1039         * syntax.c (skip_chars): Make the code faster by using the common
1040         technique of *p, *stop, and *endp.
1042 2003-04-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1044         * xdisp.c (update_tool_bar): BLOCK_INPUT before calling
1045         tool_bar_items so GTK tool bar expose callback does not access items
1046         being updated.
1048 2003-04-19  Stefan Monnier  <monnier@cs.yale.edu>
1050         * eval.c (Fapply): Undo last change and add a comment about why.
1052 2003-04-18  Miles Bader  <miles@gnu.org>
1054         * data.c (Faset): Calculate nbytes earlier, to satisfy the now
1055         pickier PARSE_MULTIBYTE_SEQ.
1057 2003-04-17  Stefan Monnier  <monnier@cs.yale.edu>
1059         * eval.c (For, Fand, Fprogn, un_autoload, do_autoload):
1060         Use XCDR, XCAR, CONSP.
1061         (Fdefmacro): Fix docstring.  Use XCAR, XCDR.
1062         (Fapply): Remove unnecessary GCPRO.
1064         * doc.c (Fsubstitute_command_keys): Remove spurious casts.
1066         * charset.h (PARSE_MULTIBYTE_SEQ): Pretend `length' is used.
1068         * buffer.h: Don't hardcode BEG==1.
1070         * abbrev.c (Fdefine_abbrev_table): Use XCAR, XCDR.
1072 2003-04-16  Richard M. Stallman  <rms@gnu.org>
1074         * xdisp.c (try_window, try_window_reusing_current_matrix):
1075         When at end of window, set window_end_pos to Z-ZV.
1077         * buffer.c (Foverlay_recenter): Doc fix.
1079 2003-04-14  Stefan Monnier  <monnier@cs.yale.edu>
1081         * dispnew.c (Fsit_For): Support XEmacs-style arg list.
1083 2003-04-14  Andrew Choi  <akochoi@shaw.ca>
1085         * macterm.c (mac_check_for_quit_char): Don't check more often than
1086         once a second.
1088 2003-04-11  Stefan Monnier  <monnier@cs.yale.edu>
1090         * keyboard.c (kbd_buffer_get_event): Don't handle SELECT_WINDOW_EVENT
1091         specially, so that they can't hide an implicit switch-frame event.
1092         (make_lispy_event): Handle SELECT_WINDOW_EVENT.
1093         (head_table): Use switch-frame as event_kind for select-window.
1094         (keys_of_keyboard): Don't bind [select-window] in special-event-map.
1096         * editfns.c (Fformat): Lisp_Object/int mixup.
1097         (format2): Remove unused var numargs.
1099 2003-04-11  Kenichi Handa  <handa@m17n.org>
1101         * fileio.c (Vafter_insert_file_adjust_coding_function): Delete.
1102         (Qafter_insert_file_set_coding): New variable.
1103         (syms_of_fileio): Initialize and staticpro it.  Delete declaration
1104         for after-insert-file-adjust-coding-function.
1105         (Finsert_file_contents): Call Qafter_insert_file_set_coding
1106         instead of Vafter_insert_file_adjust_coding_function.
1108 2003-04-11  Kenichi Handa  <handa@m17n.org>
1110         * lisp.h (temp_echo_area_glyphs): Adjust prototype.
1112         * minibuf.c (temp_echo_area_glyphs): Change the arg to Lisp
1113         string.  Callers changed.
1115 2003-04-10  Kenichi Handa  <handa@m17n.org>
1117         * fileio.c (Vafter_insert_file_adjust_coding_function): New variable.
1118         (syms_of_fileio): Declare it as a lisp variable.
1119         (Finsert_file_contents):
1120         Call Vafter_insert_file_adjust_coding_function before calling
1121         decode-format.
1123 2003-04-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1125         * xterm.c (xg_scroll_callback): Call gtk_range_get_adjustment to
1126         get GtkAdjustment as widget now is a GtkRange.
1128         * gtkutil.c (xg_create_scroll_bar): Connect to value-changed on
1129         GtkRange to avoid memory leak.
1131 2003-04-09  Kenichi Handa  <handa@m17n.org>
1133         * xfaces.c (Vface_font_rescale_alist): New variable.
1134         (struct font_name): New member rescale_ratio.
1135         (font_rescale_ratio): New function.
1136         (split_font_name): If NUMERIC_P is nonzero, set font->rescale_ratio.
1137         (better_font_p): On comparing point sized, pay attention to
1138         recale_ratio member of fonts.
1139         (build_scalable_font_name): Reflect font->rescale_ratio in the
1140         font name.
1141         (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
1143         * lread.c (read1): Before calling index, check if the 2nd
1144         arguemnt is in ASCII range.
1146 2003-04-08  Richard M. Stallman  <rms@gnu.org>
1148         * fileio.c (Ffile_symlink_p): Doc fix.
1150         * editfns.c (Fformat): Translate positions of text properties
1151         in the format string to apply them to the result.
1153         * fileio.c (Finsert_file_contents): Doc fix.
1154         (syms_of_fileio) <after-insert-file-functions>: Doc fix.
1156 2003-04-08  Ivan Zakharyaschev  <imz@altlinux.org>  (tiny change)
1158         * lread.c (openp): Get the Qfile_exists_p handler for STRING, not FN.
1160 2003-04-08  Steven Tamm  <steventamm@mac.com>
1162         * mac.c (init_mac_osx_environment): Switch libexec and bin so
1163         that self-contained application finds libexec files.
1165 2003-04-08  Kenichi Handa  <handa@m17n.org>
1167         * coding.c (code_convert_region_unwind):
1168         Set Vlast_coding_system_used to the argument.
1169         (code_convert_region): If post-read-conversion function changed
1170         the value of last-coding-sytem, keep the new value in
1171         coding->symbol so that it won't be overridden.
1172         (run_pre_post_conversion_on_str): Likewise.
1173         (coding_system_accept_latin_extra_p): New function.
1174         (find_safe_codings): Pay attention to characters registered in
1175         latin-extra-code-table.
1177 2003-04-07  Thien-Thi Nguyen  <ttn@gnu.org>
1179         * Makefile.in (md5.o): Add missing dependency info.
1181 2003-04-06  Richard M. Stallman  <rms@gnu.org>
1183         * xselect.c (x_handle_selection_request): Move UNGCPRO to very end.
1185         * marker.c (verify_bytepos): New function.
1187         * intervals.c (set_intervals_multibyte_1): When becoming
1188         multibyte, adjust right and left child sizes to a whole set of
1189         characters.  If an interval gets zero total-length, delete it.
1190         If an interval consists of just its children, delete one of them.
1192         * intervals.h (CHECK_TOTAL_LENGTH): New macro.
1193         * intervals.c: Add many calls to CHECK_TOTAL_LENGTH.
1195         * alloc.c: (VALIDATE_LISP_STORAGE): Macro deleted.
1196         All calls deleted.
1197         (lisp_malloc): Do the work here directly.
1199 2003-04-06  Gareth Jones  <emacs@referential.org.uk>  (tiny change)
1201         * fns.c (Flength): Return SUB_CHAR_TABLE_ORDINARY_SLOTS for sub
1202         char tables.
1204 2003-04-04  Kenichi Handa  <handa@m17n.org>
1206         * editfns.c (Fformat): Use a copy of FORMAT string so that we can
1207         destructively change "%S" to "%s".
1209 2003-04-03  Miles Bader  <miles@gnu.org>
1211         * xfaces.c (choose_face_font): Make sure *NEEDS_OVERSTRIKE is
1212         always set.
1214 2003-04-01  Dave Love  <fx@gnu.org>
1216         * xfns.c (xpm_lookup_color): Grok "opaque".
1218 2003-03-31  Andrew Choi  <akochoi@shaw.ca>
1220         * frame.c (x_report_frame_params) [HAVE_CARBON]: Do not report
1221         parent window ID.
1223         * macfns.c (syms_of_macfns): Remove call to init_x_parm_symbols.
1225         * macterm.h (struct mac_output): Define x_pixels_diff and
1226         y_pixels_diff.
1228 2003-03-31  Juanma Barranquero  <lektu@terra.es>
1230         * makefile.w32-in ($(BLD)/frame.$(O)): Add dependency on
1231         blockinput.h and files included from it.
1233 2003-03-31  Kim F. Storm  <storm@cua.dk>
1235         The following changes consolidates the common code related to
1236         frame-parameter handling from the xfns.c, w32fns.c, and macfns.c
1237         files into frame.c.
1239         * frame.c: Include blockinput.h.
1240         (Vx_resource_name, Vx_resource_class, Qx_frame_parameter)
1241         (Qx_resource_name, Qface_set_after_frame_default): Define vars here.
1242         (Qauto_raise, Qauto_lower, ...): Define all frame parameter
1243         related vars here.
1244         (struct frame_parm_table, frame_parms): New table for describing
1245         frame parameters and their associated Q-variable.
1246         The order of the parameters corresponds to the sequence of the
1247         frame_parm_handlers table in redisplay_interface.
1248         (x_fullscreen_move, x_set_frame_parameters)
1249         (x_report_frame_params, x_set_fullscreen, x_set_line_spacing)
1250         (x_set_screen_gamma, x_set_font, x_set_fringe_width)
1251         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
1252         (x_set_autoraise, x_set_autolower, x_set_unsplittable)
1253         (x_set_vertical_scroll_bars, x_set_scroll_bar_width, x_icon_type):
1254         Generic functions for processing of frame parameters.
1255         (validate_x_resource_name, xrdb_get_resource, Fx_get_resource)
1256         (display_x_get_resource, x_get_resource_string): Functions for
1257         generic access to X resources.
1258         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1259         (x_default_parameter, Fx_parse_geometry): Functions for generic
1260         access to frame parameters.
1261         (x_figure_window_size): Generic calculation of frame size.
1262         Fixed to add space needed for tool bar.  Also setup size_hint_flags.
1263         (syms_of_frame): Intern and staticpro frame parameter variables.
1264         Defvar_lisp Vx_resource_class and Vx_resource_name here.
1265         Defsubr Sx_get_resource and Sx_parse_geometry.
1267         * frame.h (Qauto_raise, Qauto_lower, ...): Declare extern all frame
1268         parameter related vars defined in frame.c.
1269         (EMACS_CLASS): Define here.
1270         (enum FULLSCREEN_*): Define here.
1271         (x_set_scroll_bar_default_width, x_wm_set_icon_position)
1272         (x_set_offset, x_new_font, x_new_fontset): Add prototypes.
1273         (x_fullscreen_adjust, x_set_frame_parameters, x_report_frame_params)
1274         (x_set_fullscreen, x_set_line_spacing, x_set_screen_gamma, x_set_font)
1275         (x_set_fringe_width, x_set_border_width, x_set_internal_border_width)
1276         (x_set_visibility, x_set_autoraise, x_set_autolower)
1277         (x_set_unsplittable, x_set_vertical_scroll_bars)
1278         (x_set_scroll_bar_width, x_icon_type, validate_x_resource_name)
1279         (x_figure_window_size): Add prototypes.
1281         * dispextern.h (frame_parm_handler): New typedef.
1282         (struct redisplay_interface): New member frame_parm_handlers.
1283         (enum resource_types): Move declaration here.
1284         (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1285         (x_default_parameter): Add prototypes.
1287         * window.c: Remove extern decl for frame parameter vars.
1288         (change_window_heights): New generic function;
1289         replaces x_change_window_heights.  All users changed.
1291         * window.h (change_window_heights): Add prototype.
1293         * xfaces.c: Remove extern decl for frame parameter vars.
1295         * xterm.h (EMACS_CLASS): Remove.  Use generic define.
1296         (struct w32_display_info): Fix type of xrdb member.
1297         (enum FULLSCREEN_*): Remove.
1298         Remove prototypes for generic functions (in frame.h).
1300         * xfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
1301         parameters now defined in frame.h and frame.c.
1302         (Vx_resource_name): Remove. Use generic var.
1303         (enum x_frame_parms): Remove (bogus, unused enum).
1304         (check_x_display_info): Make non-static (for frame.c).
1305         (struct x_frame_parm_table, x_frame_parms): Remove.
1306         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
1307         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
1308         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
1309         (x_change_window_heights, x_set_autoraise, x_set_autolower)
1310         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
1311         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
1312         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
1313         Remove.  Use generic functions instead.
1314         (enum resource_types): Remove.
1315         (x_set_scroll_bar_default_width): New global function (for frame.c).
1316         (Fx_create_frame): Depend on x_figure_window_size to add space for
1317         toolbar and setup size_hint_flags.
1318         (x_frame_parm_handlers): New table for redisplay_interface.
1319         (syms_of_xfns): Don't intern/staticpro removed vars.
1321         * xterm.c: Remove unnecessary extern declarations.
1322         (x_fullscreen_adjust): Remove. Use generic instead.
1323         (x_redisplay_interface): Add x_frame_parm_handlers member.
1325         * w32gui.h (XrmDatabase): New (dummy) typedef.
1327         * w32term.h (EMACS_CLASS): Remove.  Use generic define.
1328         (struct w32_display_info): Fix type of xrdb member.
1329         (enum FULLSCREEN_*): Remove.
1330         (x_fullscreen_adjust): Remove prototype.
1332         * w32fns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
1333         parameters now defined in frame.h and frame.c.
1334         (Vx_resource_name): Remove. Use generic var.
1335         (enum x_frame_parms): Remove (bogus, unused enum).
1336         (check_x_display_info): Make non-static (for frame.c).
1337         (struct x_frame_parm_table, x_frame_parms): Remove.
1338         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
1339         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
1340         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
1341         (x_change_window_heights, x_set_autoraise, x_set_autolower)
1342         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
1343         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
1344         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
1345         Remove.  Use generic functions instead.
1346         (enum resource_types): Remove.
1347         (x_set_scroll_bar_default_width): New global function (for frame.c).
1348         (Fx_create_frame): Depend on x_figure_window_size to add space for
1349         toolbar and setup size_hint_flags.
1350         (w32_frame_parm_handlers): New table for redisplay_interface.
1351         (syms_of_w32fns): Don't intern/staticpro removed vars.
1353         * w32term.c: Remove unnecessary extern declarations.
1354         (x_fullscreen_adjust): Remove. Use generic instead.
1355         (x_redisplay_interface): Add w32_frame_parm_handlers member.
1357         * w32reg.c (x_get_string_resource): Use XrmDatabase.
1359         * macgui.h (XrmDatabase): New (dummy) typedef.
1361         * macterm.h (EMACS_CLASS): Remove.
1362         (struct mac_display_info): Add xrdb member.
1363         (struct mac_output): Add want_fullscreen member.
1365         * macfns.c (Qauto_raise, Qauto_lower, ...): Remove vars for frame
1366         parameters now defined in frame.h and frame.c.
1367         (Vx_resource_name): Remove. Use generic var.
1368         (check_x_display_info): Make non-static (for frame.c).
1369         (struct x_frame_parm_table, x_frame_parms): Remove.
1370         (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params)
1371         (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font)
1372         (x_set_border_width, x_set_internal_border_width, x_set_visibility)
1373         (x_change_window_heights, x_set_autoraise, x_set_autolower)
1374         (x_set_vertical_scroll_bars, x_set_scroll_bar_width)
1375         (validate_x_resource_name, Fx_get_resource, x_get_resource_string)
1376         (x_default_parameter, Fx_parse_geometry, x_figure_window_size):
1377         Remove.  Use generic functions instead.
1378         (enum resource_types): Remove.
1379         (x_set_scroll_bar_default_width): New global function (for frame.c).
1380         (mac_frame_parm_handlers): New table for redisplay_interface.
1381         (syms_of_macfns): Don't intern/staticpro removed vars.
1383         * macterm.c: Remove unnecessary extern declarations.
1384         (x_redisplay_interface): Add mac_frame_parm_handlers member.
1386         * Makefile.in (frame.o): Add dependency on blockinput.h and files
1387         included from it (atimer.h and systime.h).
1389 2003-03-30  Andreas Schwab  <schwab@suse.de>
1391         * xdisp.c (x_insert_glyphs): Fix swapped width and height
1392         parameters for shift_glyphs_for_insert.
1394         * macterm.c (x_redisplay_interface): Add missing entry for
1395         draw_vertical_window_border.
1397 2003-03-29  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@gmx.net>
1399         * fileio.c (Fexpand_file_name): In the no-handler case, after
1400         expanding, look again for a handler and invoke it.  This is needed
1401         for filenames like "/foo/../user@host:/bar/../baz" -- the first
1402         expansion produces "/user@host:/bar/../baz" which needs to be
1403         expanded again for the finame result "/user@host:/baz".
1405 2003-03-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1407         * gtkutil.c (xg_tool_bar_item_expose_callback): Reduce size
1408         of area to be redrawn for better performance.
1410 2003-03-28  Stefan Monnier  <monnier@cs.yale.edu>
1412         * xterm.c (take_vertical_position_into_account): Remove.
1413         (xt_action_hook): Call set_vertical_scroll_bar if needed.
1414         (XM_SB_MIN, XM_SB_RANGE): Remove (min is now set to 0).
1415         (xm_scroll_callback, x_create_toolkit_scroll_bar)
1416         (x_set_toolkit_scroll_bar_thumb): Simplify.
1417         (x_scroll_bar_expose): Only compile if !USE_TOOLKIT_SCROLL_BARS.
1418         (XTread_socket): Remove unused var.
1419         (x_make_frame_invisible): Replace goto with else.
1421         * xdisp.c (set_vertical_scroll_bar): New fun.
1422         (redisplay_window): Use it.
1424 2003-03-26  Richard M. Stallman  <rms@gnu.org>
1426         * xdisp.c (update_tool_bar): Recompute tool bar if
1427         update_mode_lines is set.  Set w->update_mode_line
1428         only if the tool bar contents actually change.
1429         (update_menu_bar): Undo previous change.
1431 2003-03-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1433         * gtkutil.c (xg_resize_widgets): Don't call xg_frame_cleared.
1434         (xg_frame_set_char_size): Calculate scroll bar width before frame
1435         width.  Call SET_FRAME_GARBAGED and cancel_mouse_face.
1436         (xg_separator_p): Check for all documented separator types.
1437         (xg_update_scrollbar_pos): Variable gheight not needed, use height.
1438         (update_frame_tool_bar): Don't call gdk_window_process_all_updates.
1440         * xdisp.c (update_menu_bar): Set w->update_mode_line to Qt
1441         so tool bar gets updated.
1443 2003-03-26  Stefan Monnier  <monnier@cs.yale.edu>
1445         * data.c (store_symval_forwarding): Re-instate part of the code
1446         that was deleted with too much enthusiasm.
1448 2003-03-25  Stefan Monnier  <monnier@cs.yale.edu>
1450         * data.c (store_symval_forwarding): Delete special read-only
1451         hack for type == -1, since we now use ->constant instead.
1452         (Fkill_local_variable): Don't use XBUFFER if it can be nil.
1454         * buffer.c (overlays_in): Declare static.
1455         (syms_of_buffer) <enable-multibyte-characters>: Use the symbol's
1456         `constant' field rather than the variable's `type' field.
1458 2003-03-24  Andrew Choi  <akochoi@shaw.ca>
1460         * config.in [MAC_OSX]: Do not redefine bcopy, bzero, and bcmp.
1462         * dispextern.h [HAVE_CARBON]: Include Carbon.h.
1464         * fns.c [MAC_OSX]: Do not redefine vector.
1466         * keyboard.c [MAC_OSX]: Handle SIGINT with interrupt_signal.
1468         * macgui.h: Remove definition of No_Cursor.
1470         * macterm.h: Include Carbon.h.  Replace (struct Cursor *) by Cursor.
1472         * xdisp.c: Define No_Cursor.
1473         (x_write_glyphs, notice_overwritten_cursor)
1474         (draw_phys_cursor_glyph, note_mode_line_or_margin_highlight)
1475         (note_mouse_highlight): Remove Mac-specific code.
1476         (note_mouse_highlight): Use bcmp instead of == to compare Cursors.
1478 2003-03-24  John Paul Wallington  <jpw@gnu.org>
1480         * xdisp.c (redisplay_window): If mini window's buffer is not
1481         empty, then redisplay it like other windows.
1483 2003-03-23  Kim F. Storm  <storm@cua.dk>
1485         * w32term.c (w32_draw_window_cursor): Fix last change.
1487 2003-03-23  Kenichi Handa  <handa@m17n.org>
1489         * alloc.c (make_string_from_bytes, make_specified_string):
1490         Add `const' for the arg CONTENTS.
1492         * lisp.h (make_string_from_bytes, make_specified_string):
1493         Prototypes adjusted.
1495 2003-03-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1497         * xdisp.c (get_glyph_string_clip_rect): Remove ; at end of #endif
1499         * gtkutil.h: Take two more arguments to xg_update_scrollbar_pos.
1500         (XG_SB_RANGE): New define.
1502         * gtkutil.c (xg_fixed_handle_expose): New function.
1503         (xg_create_frame_widgets): Call xg_fixed_handle_expose for
1504         expose events.
1505         (xg_update_scrollbar_pos): Take two more arguments, left and width
1506         of scroll bar including borders.
1507         Clear left and right part outside scroll bar separately as some
1508         themes have bars that are not an even number of pixels.
1509         Don't set reallocate_redraws, don't call
1510         gdk_window_process_all_updates.
1511         (xg_set_toolkit_scroll_bar_thumb): Upper value is fixed,
1512         so no need to change it.  Calculate size and value with XG_SB_RANGE.
1514         * xterm.c (x_scroll_bar_create, XTset_vertical_scroll_bar):
1515         Pass left and width of scroll bar including borders to
1516         xg_update_scrollbar_pos.
1518 2003-03-22  Thien-Thi Nguyen  <ttn@gnu.org>
1520         * Makefile.in: Make sure space precedes end-of-line backslashes.
1522 2003-03-22  Kim F. Storm  <storm@cua.dk>
1524         * xdisp.c (pixel_to_glyph_coords, glyph_to_pixel_coords):
1525         Add generic versions here.  Remove system specific versions
1526         defined elsewhere.
1528         * dispextern.h (pixel_to_glyph_coords, glyph_to_pixel_coords):
1529         Add prototypes.
1531         * xterm.h (STORE_NATIVE_RECT): New macro.
1533 2003-03-21  Kim F. Storm  <storm@cua.dk>
1535         * xdisp.c (get_glyph_string_clip_rect):
1536         Use FRAME_INTERNAL_BORDER_WIDTH.
1538         * dispextern.h (struct redisplay_interface): Add active_p
1539         argument to draw_window_cursor member.  All uses changed.
1541 2003-03-21  Kim F. Storm  <storm@cua.dk>
1543         The following changes consolidate code related to writing and
1544         inserting glyphs, exposing frame, the tool bar, the mouse face,
1545         the output cursor, and help echo from xterm.c, w32term.c and
1546         macterm.c into xdisp.c.  It also generalizes the use of the
1547         window_part enum instead of using numeric values throughout.
1549         * xdisp.c: Consolidate gui-independent code here.
1550         Include keymap.h.
1551         (Qhelp_echo): Import.
1552         (mouse_autoselect_window, x_stretch_cursor_p): Declare here.
1553         (help_echo_string, help_echo_window, help_echo_object)
1554         (previous_help_echo_string, help_echo_pos): Declare here.
1555         (output_cursor, last_mouse_frame, last_tool_bar_item): Declare here.
1556         (estimate_mode_line_height): Define here.  Handle windowing
1557         systems directly (without using estimate_mode_line_height_hook).
1558         (x_y_to_hpos_vpos, get_tool_bar_item, note_tool_bar_highlight):
1559         (update_window_cursor, update_cursor_in_window_tree)
1560         (fast_find_position, fast_find_string_pos)
1561         (note_mode_line_highlight, note_mode_line_or_margin_highlight)
1562         (expose_area, expose_line, expose_overlaps, expose_window)
1563         (expose_window_tree, phys_cursor_in_rect_p): New generic versions;
1564         declared static as they are only used locally in xdisp.c.
1565         (draw_glyphs): Rename from x_draw_glyphs and make static.
1566         (tool_bar_item_info, notice_overwritten_cursor): Make static.
1567         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
1568         (set_output_cursor, x_cursor_to, handle_tool_bar_click)
1569         (x_write_glyphs, x_insert_glyphs, x_clear_end_of_line):
1570         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
1571         (display_and_set_cursor, x_update_cursor, x_clear_cursor)
1572         (show_mouse_face, clear_mouse_face, cursor_in_mouse_face_p)
1573         (note_mouse_highlight, x_clear_window_mouse_face)
1574         (cancel_mouse_face, x_draw_vertical_border, expose_frame)
1575         (x_intersect_rectangles): New generic functions for use by xdisp.c
1576         and GUI front-ends.
1577         (syms_of_xdisp): Initialize and staticpro help_echo* variables.
1578         Defvar_bool "x-streach-cursor" and "mouse-autoselect-window" here.
1580         * dispextern.h (Display_Info): Generic typedef for *_display_info.
1581         (NativeRectangle): Generic typedef for rectangle type.
1582         (enum window_part): Move here from window.c.
1583         (struct redisplay_interface): New members flush_display_optional,
1584         define_frame_cursor, clear_frame_area, draw_window_cursor,
1585         draw_vertical_window_border, shift_glyphs_for_insert.
1586         Rename member clear_mouse_face to clear_window_mouse_face.
1587         (estimate_mode_line_height_hook): Remove hook.
1588         (auto_raise_tool_bar_buttons_p): Don't declare extern.
1589         (tool_bar_item_info): Remove prototype.
1590         (help_echo_string, help_echo_window, help_echo_object)
1591         (previous_help_echo_string, help_echo_pos)
1592         (last_mouse_frame, last_tool_bar_item, mouse_autoselect_window):
1593         (x_stretch_cursor_p, output_cursor): Declare extern.
1594         (x_draw_glyphs, notice_overwritten_cursor): Remove prototypes.
1595         (x_write_glyphs), x_insert_glyphs, x_clear_end_of_line)
1596         (x_fix_overlapping_area, draw_phys_cursor_glyph, erase_phys_cursor)
1597         (display_and_set_cursor, set_output_cursor, x_cursor_to)
1598         (x_update_cursor, x_clear_cursor, x_draw_vertical_border)
1599         (frame_to_window_pixel_xy, get_glyph_string_clip_rect)
1600         (note_mouse_highlight, x_clear_window_mouse_face, cancel_mouse_face)
1601         (handle_tool_bar_click, clear_mouse_face, show_mouse_face)
1602         (cursor_in_mouse_face_p, expose_frame, x_intersect_rectangles):
1603         Add prototypes.
1604         (mode_line_string, marginal_area_string): Fix prototypes.
1606         * window.c (enum window_part): Move to dispextern.h.
1607         (coordinates_in_window): Use enum window_part member names
1608         instead of numbers to describe return value.
1609         (struct check_window_data): Change part member to window_part.
1610         (check_window_containing): Return window_part unaltered.
1611         (window_from_coordinates): Change part arg from int to enum
1612         window_part.  Allow part arg to be null.  All users changed.
1614         * window.h (window_from_coordinates): Fix prototype.
1616         * term.c (estimate_mode_line_height): Move to xdisp.c.
1618         * keyboard.c (make_lispy_event): Use enum window_part.
1620         * dispnew.c (mode_line_string, marginal_area_string): Use enum
1621         window_part instead of int in arg list.  Users changed.
1623         * xterm.h (No_Cursor): Declare as None for X.
1624         (struct mac_output): Replace member cross_cursor by hand_cursor.
1626         * xterm.c: Remove consolidated defines and code.
1627         (BETWEEN): Remove unused macro.
1628         (x_draw_vertical_window_border, x_shift_glyphs_for_insert)
1629         (x_define_frame_cursor, x_clear_frame_area)
1630         (x_draw_window_cursor): New X-specific functions for RIF.
1631         (x_redisplay_interface): Add new members.
1633         * xfns.c: Setup and use hand_cursor instead of cross_cursor.
1635         * w32term.h (struct w32_output): Remove cross_cursor member.
1637         * w32term.c: Remove consolidated defines and code.
1638         (BETWEEN): Remove unused macro.
1639         (w32_draw_vertical_window_border, w32_shift_glyphs_for_insert)
1640         (w32_define_frame_cursor, w32_clear_frame_area)
1641         (w32_draw_window_cursor): New W32-specific functions for RIF.
1642         (w32_redisplay_interface): Add new members.
1644         * w32gui.h (No_Cursor):  Define as 0 for W32.
1645         (XRectangle): Add X compatible rectangle type.
1646         (NativeRectangle): Declare as RECT for W32.
1647         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
1649         * w32fns.c: Remove setup of cross_cursor (already has hand_cursor).
1651         * w32console.c: Remove consolidated defines and code.
1653         * msdos.h (Display_Info): Add generic typedef.
1655         * msdos.c: Remove consolidated defines and code.
1656         (IT_note_mouse_highlight, dos_rawgetc): Use enum window_part.
1658         * macterm.h (struct mac_output): Replace member cross_cursor by
1659         hand_cursor.
1660         (activate_scroll_bars, deactivate_scroll_bars): Add prototypes.
1662         * macterm.c: Remove consolidated defines and code.
1663         (BETWEEN): Remove unused macro.
1664         (mac_draw_vertical_window_border, mac_shift_glyphs_for_insert)
1665         (mac_define_frame_cursor, mac_clear_frame_area)
1666         (mac_draw_window_cursor): New Mac-specific functions for RIF.
1667         (x_redisplay_interface): Add new members.
1669         * macgui.h (No_Cursor): Define as 0 for Mac.
1670         (XRectangle): Add X compatible rectangle type.
1671         (NativeRectangle): Declare as Rect for Mac.
1672         (CONVERT_TO_XRECT, CONVERT_FROM_XRECT, STORE_NATIVE_RECT): New macros.
1674         * macfns.c (x_set_mouse_color): Setup hand_cursor.
1675         (x_set_cursor_color): Use x_display_and_set_cursor.
1677         * Makefile.in (xdisp.o): Add dependency on blockinput.h and files
1678         included from it.  Add dependency on keymap.h.
1680         * makefile.w32-in (xdisp.o): Add dependency on keymap.h.
1682 2003-03-21  Kenichi Handa  <handa@m17n.org>
1684         * fileio.c (Fexpand_file_name): Fix previous change.
1686 2003-03-19  Kenichi Handa  <handa@m17n.org>
1688         * fileio.c (Ffile_name_directory): Reconstruct file name by
1689         make_specified_string.
1690         (Ffile_name_nondirectory, Ffile_name_as_directory)
1691         (Fdirectory_file_name, Fexpand_file_name)
1692         (Fsubstitute_in_file_name): Likewise.
1693         (Fread_file_name): Compare decoded homedir with DIR and
1694         DEFAULT_FILENAME.
1696         * alloc.c (make_specified_string): If NCHARS is negative, count
1697         the number of characters.
1699 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1701         * gtkutil.c (xg_frame_cleared): Call gtk_widget_queue_draw for
1702         all widgets.
1704         * gtkutil.h: Removed xg_ignore_next_thumb.
1706 2003-03-18  Kenichi Handa  <handa@m17n.org>
1708         * coding.c (Vchar_coding_system_table): Remove this variable.
1709         (Vcoding_system_safe_chars): New variable.
1710         (intersection): Remove this function.
1711         (find_safe_codings): Don't use Vchar_coding_system_table, but try
1712         all codings in SAFE_CODINGS.
1713         (Ffind_coding_systems_region_internal): Adjust for the change of
1714         find_safe_codings.  Get generic coding systems from
1715         Vcoding_system_safe_chars.
1716         (Fdefine_coding_system_internal): New function.
1717         (syms_of_coding): Defsubr Sdefine_coding_system_internal.
1718         Initialize and staticpro Vcoding_system_safe_chars.
1720 2003-03-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1722         * gtkutil.c (xg_set_toolkit_scroll_bar_thumb): Check if new values
1723         equal old values before updating.
1725         * xterm.c (xg_scroll_callback): Remove xg_ignore_next_thumb.
1727         * gtkutil.c (xg_initialize): Remove xg_ignore_next_thumb.
1729 2003-03-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1731         * gtkutil.c: Removed handle_fixed_child, struct xg_last_sb_pos.
1732         (xg_resize_widgets): Don't call foreach(handle_fixed_child).
1733         (xg_gtk_scroll_destroy): Remove free of struct xg_last_sb_pos.
1734         (scroll_bar_button_cb): Set bar->dragging to NIL on button release.
1735         (xg_create_scroll_bar): Pass bar to button event callback.
1736         (xg_find_top_left_in_fixed): New function.
1737         (xg_update_scrollbar_pos): Don't call gdk_window_clear on
1738         whole scroll bar area.  Get old position with
1739         xg_find_top_left_in_fixed, calculate and only clear needed areas.
1740         (xg_set_toolkit_scroll_bar_thumb): Do not adjust scroll bar if
1741         dragging is in progress.  Calculate whole as for Motif.
1742         Remove code that saved last values.  Call gtk_range functions to
1743         set scroll bar sizes.
1745         * gtkutil.h: Removed xg_ignore_next_thumb.
1747 2003-03-17  Juanma Barranquero  <lektu@terra.es>
1749         * makefile.w32-in ($(BLD)/xdisp.$(O)): Add dependency on blockinput.h
1750         and files included from it.
1752 2003-03-18  Stefan Monnier  <monnier@cs.yale.edu>
1754         * keymap.c (accessible_keymaps_1): Break cycles but without preventing
1755         multiple occurrences of the same keymap under different prefixes.
1756         (Faccessible_keymaps): Remove code redundant since 1994-08-03T07:39:00Z!rms@gnu.org.
1758 2003-03-16  Jason Rumney  <jasonr@gnu.org>
1760         * w32gui.h: Use HDC for Display.
1762         * w32term.c (w32_encode_char): Prevent double-byte chars from
1763         crashing Emacs.
1765         * w32fns.c (jpeg_load, png_load, slurp_file): Read image files
1766         as binary.
1768 2003-03-16  Juanma Barranquero  <lektu@terra.es>
1770         * xdisp.c (x_produce_glyphs): Use FRAME_BASELINE_OFFSET.
1772 2003-03-16  Kim F. Storm  <storm@cua.dk>
1774         The following changes consolidate some of the gui-independent
1775         parts of the processing and drawing of "glyph strings" from
1776         xterm.c, w32term.c, and macterm.c into xdisp.c.
1778         * dispextern.h (struct glyph): Reduce face_id member from 22 to
1779         21 bits (this reduces number of faces from 4M to 2M).
1780         Replace W32 specific w32_font_type member (2 bits) by generic
1781         font_type member (3 bits) for portability.
1782         (FONT_TYPE_UNKNOWN): New define, default for font_type member.
1783         (enum draw_glyphs_face): Define here.
1784         (struct glyph_string): Define here.  Merge W32 and X versions.
1785         (struct redisplay_interface): New members per_char_metric,
1786         encode_char, compute_glyph_string_overhangs, draw_glyph_string.
1787         (VCENTER_BASELINE_OFFSET): Define here.
1788         (dump_glyph_string, x_get_glyph_overhangs, x_produce_glyphs)
1789         (x_draw_glyphs, notice_overwritten_cursor): Declare prototypes here.
1791         * xdisp.c: Consolidate gui-independent "glyph string" code here.
1792         (dump_glyph_string): Moved here.
1793         (init_glyph_string, append_glyph_string_lists, append_glyph_string)
1794         (prepend_glyph_string_lists, get_glyph_face_and_encoding)
1795         (fill_composite_glyph_string, fill_glyph_string)
1796         (fill_image_glyph_string, fill_stretch_glyph_string)
1797         (left_overwritten, left_overwriting, right_overwritten)
1798         (right_overwriting, get_char_face_and_encoding)
1799         (set_glyph_string_background_width, compute_overhangs_and_x)
1800         (append_glyph, append_composite_glyph, produce_image_glyph)
1801         (take_vertical_position_into_account, append_stretch_glyph)
1802         (produce_stretch_glyph): New generic functions (based on X version).
1803         Call platform specific functions through rif.
1804         (INIT_GLYPH_STRING): New macro, hides W32 details.
1805         (BUILD_STRETCH_GLYPH_STRING, BUILD_IMAGE_GLYPH_STRING)
1806         (BUILD_CHAR_GLYPH_STRINGS, BUILD_COMPOSITE_GLYPH_STRING)
1807         (BUILD_GLYPH_STRINGS): Generic macros (based on X version).
1808         (x_draw_glyphs, x_get_glyph_overhangs, x_produce_glyphs)
1809         (notice_overwritten_cursor):
1810         Generic functions exported to platform modules.  Users changed.
1812         * xterm.h (FONT_DESCENT, FRAME_X_OUTPUT, FRAME_BASELINE_OFFSET)
1813         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE)
1814         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
1815         New macros for consolidated code.
1817         * xterm.c: Remove consolidated defines and code.
1818         (x_per_char_metric, x_encode_char)
1819         (x_compute_glyph_string_overhangs): Adapt to RIF requirements.
1820         (x_redisplay_interface): Add new members.
1822         * w32gui.h (Display): Add dummy typedef for consolidation.
1823         (XChar2b): Define alias for wchar_t for consolidation.
1824         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
1826         * w32term.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY)
1827         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE):
1828         New macros for consolidation.
1830         * w32term.c: Remove consolidated defines and code.
1831         (BUILD_WCHAR_T, BYTE1, BYTE2): Macros removed; callers changed
1832         to use STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2 instead.
1833         (w32_per_char_metric): Change font_type arg to int for RIF.
1834         (w32_encode_char): Return int according to RIF requirements.
1835         (w32_compute_glyph_string_overhangs): Adapt to RIF.
1836         (w32_get_glyph_overhangs): New function for RIF.  Uses generic
1837         x_get_glyph_overhangs.
1838         (w32_redisplay_interface): Add new members.
1840         * macgui.h (XChar2b): Move typedef here for consolidation.
1841         (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2): New macros.
1843         * macterm.h (FRAME_X_OUTPUT, FRAME_X_WINDOW, FRAME_X_DISPLAY):
1844         (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): New macros for
1845         consolidation.
1847         * macterm.c: Remove consolidated defines and code.
1848         (mac_per_char_metric): New function for RIF.
1849         (mac_encode_char): Adapt to new RIF requirements.
1850         (mac_compute_glyph_string_overhangs): Adapt for RIF.
1851         (x_redisplay_interface): Add new members.
1853 2003-03-15  Stefan Monnier  <monnier@cs.yale.edu>
1855         * keymap.c (Vmenu_events): New var.
1856         (syms_of_keymap): Initialize it.
1857         (where_is_internal): Check more carefully what is a menu event.
1859 2003-03-14  Richard M. Stallman  <rms@gnu.org>
1861         * lread.c (read1): After #!, exit loop on eof.
1863 2003-03-14  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1865         * gtkutil.h: Add declaration for xg_frame_cleared.
1867         * xterm.c (x_clear_frame): Call xg_frame_cleared for GTK.
1869         * gtkutil.c (struct xg_last_sb_pos): New structure.
1870         (handle_fixed_child): New function.
1871         (xg_resize_widgets): Call handle_fixed_child on all scroll bar widgets
1872         and force a redraw on them.
1873         (xg_gtk_scroll_destroy): Free struct xg_last_sb_pos also.
1874         (xg_create_scroll_bar): Add struct xg_last_sb_pos to scroll bar
1875         so we can avoid unneeded redraws.
1876         (xg_update_scrollbar_pos): Invalidate data in xg_last_sb_pos
1877         and force a redraw on the scroll bar.
1878         (xg_set_toolkit_scroll_bar_thumb): Do not change/redraw scroll bar
1879         if xg_last_sb_pos shows the positions are up to date.
1880         (xg_frame_cleared): New function.
1882 2003-03-13  Kenichi Handa  <handa@m17n.org>
1884         * coding.c (Fdetect_coding_region): Fix docstring.
1885         (Fdetect_coding_string): Fix docstring.
1887 2003-03-13  Andreas Schwab  <schwab@suse.de>
1889         * gtkutil.c: Add prototype for create_menus.
1891         * data.c (long_to_cons): Fix type of top.
1893         * xselect.c (selection_data_to_lisp_data): Use int instead of
1894         long for an integer of size 4.
1896         * gtkutil.c (xg_update_frame_menubar): Add missing return value.
1897         (xg_tool_bar_help_callback): Likewise.
1899 2003-03-12  Andreas Schwab  <schwab@suse.de>
1901         * xterm.c (x_term_init) [USE_GTK]: Fix typo.
1903 2003-03-12  Kim F. Storm  <storm@cua.dk>
1905         The following changes consolidate the fringe handling from
1906         xterm.c, w32term.c, and macterm.c into xdisp.c.
1908         * xdisp.c: Consolidate fringe handling code here.
1909         (left_bits, right_bits, continued_bits, continuation_bits)
1910         (ov_bits, zv_bits): Define fringe bitmaps.
1911         (fringe_bitmaps): New array holding fringe bitmaps.
1912         (draw_fringe_bitmap): Draw a specific bitmap; call display
1913         specific drawing routine via rif->draw_fringe_bitmap.
1914         (draw_row_fringe_bitmaps): Generic replacement for
1915         x_draw_row_fringe_bitmaps; all callers changed.
1916         (compute_fringe_widths): Generic replacement for
1917         x_compute_fringe_widths; all callers changed.
1919         * dispextern.h (enum fringe_bitmap_type): Define here.
1920         (struct fringe_bitmap, struct draw_fringe_bitmap_params): New.
1921         (fringe_bitmaps): Declare extern.
1922         (struct redisplay_interface): New member draw_fringe_bitmap.
1923         (draw_row_fringe_bitmaps, compute_fringe_widths): Declare extern.
1925         * xterm.c: Remove generic fringe code.
1926         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
1927         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
1929         * w32term.c: Remove generic fringe code.
1930         (w32_draw_fringe_bitmap): Only perform actual fringe drawing.
1931         (w32_redisplay_interface): Add w32_draw_fringe_bitmap member.
1933         * macterm.c: Remove generic fringe code.
1934         (x_draw_fringe_bitmap): Only perform actual fringe drawing.
1935         (x_redisplay_interface): Add x_draw_fringe_bitmap member.
1937 2003-03-11  Stefan Monnier  <monnier@cs.yale.edu>
1939         * print.c (Fprin1_to_string): Return unibyte string if possible.
1941 2003-03-09  David Kastrup  <dak@gnu.org>
1943         * process.c (read_process_output): We have allocated enough space
1944         for readmax and carryover, so actually use the alloted space.
1946 2003-03-09  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1948         * keyboard.c (make_lispy_event): Extend mouse_syms if needed for
1949         toolkit scrollbar click.
1951         * xterm.c (x_window_to_scroll_bar): Call xg_get_scroll_id_for_window
1952         for USE_GTK.
1953         (x_scroll_bar_handle_click): Use this function for toolkit scrollbars
1954         also.
1955         (handle_one_xevent): ButtonPress/Release:  If event is for a toolkit
1956         scrollbar and control is pressed, call x_scroll_bar_handle_click.
1958         * gtkutil.h: Declare xg_get_scroll_id_for_window.
1960         * gtkutil.c (xg_get_scroll_id_for_window): New function.
1961         (xg_tool_bar_item_expose_callback): New function.
1962         (xg_tool_bar_expose_callback): Call update_frame_tool_bar.
1963         (xg_create_tool_bar): Connect xg_tool_bar_expose_callback to expose
1964         on the tool bar widget.
1965         (update_frame_tool_bar): Connect xg_tool_bar_item_expose_callback
1966         to expose on the tool bar item widgets.
1968 2003-03-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
1970         * gtkutil.c (update_frame_tool_bar): Compare pixmap ID instead of
1971         struct image* when deciding to update (struct image* may have been
1972         deleted from the image cache).
1974         * xterm.c (handle_one_xevent): Pass ReparentNotify to Xt even if
1975         the event isn't for a frame (i.e. for dialogs).
1977 2003-03-07  Kenichi Handa  <handa@m17n.org>
1979         * coding.c (CODING_ADD_COMPOSITION_COMPONENT): If the number of
1980         composition components reaches the limit, terminate composing.
1981         (COMPOSITION_OK): New macro.
1982         (detect_coding_iso2022): Use it if an escape sequence for
1983         composition is found.
1984         (coding_restore_composition): Adjust the number of composition
1985         components if it is not sane.
1987 2003-03-06  Juanma Barranquero  <lektu@terra.es>
1989         * w32term.h (struct w32_display_info): Add xrdb member to support
1990         passing resources via -xrm on Windows.
1992         * w32term.c (w32_make_rdb): New function.
1993         (w32_term_init): Use it to initialize xrdb member of w32_display_info
1994         struct.  Delete leftover code.
1996         * w32fns.c (Fx_get_resource, x_get_resource_string): Pass xrdb to check
1997         for resources passed on the command line.
1999         * w32reg.c (w32_get_rdb_resource): New function.
2000         (x_get_string_resource): Use it, so resources passed with -xrm
2001         supercede the ones in the registry.
2003 2003-03-04  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2005         * xterm.c (x_detect_focus_change): Call x_any_window_to_frame
2006         instead of x_top_window_to_frame.
2008 2003-03-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2010         * xsmfns.c (smc_save_yourself_CB): Add --no-splash to options
2011         when restarting Emacs.
2013 2003-03-03  Richard M. Stallman  <rms@gnu.org>
2015         * buffer.c (Fkill_buffer): Use Frun_hook_with_args_until_failure
2016         to run kill-buffer-query-functions.
2017         (Qkill_buffer_query_functions): New var.
2018         (syms_of_buffer): Init and staticpro it.
2020 2003-03-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2022         * xterm.h (XSync): Define as gdk_window_process_all_updates for GTK.
2024 2003-02-25  Kim F. Storm  <storm@cua.dk>
2026         * xdisp.c (redisplay_window): Fix infinite loop in redisplay.
2027         If centering point failed to make whole line visible and vscroll
2028         is non-zero, disable vscroll and try centering point again.
2030         * lread.c (read1): Accept `single space' syntax like (? x).
2032 2003-02-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2034         * keyboard.c (cancel_hourglass_unwind): Surround with
2035         #ifdef HAVE_X_WINDOWS
2037 2003-02-25  Kenichi Handa  <handa@m17n.org>
2039         * buffer.c (Fset_buffer_multibyte): Pay attention to the buffer
2040         process only when "subprocesses" is defined.
2042 2003-02-24  Stefan Monnier  <monnier@cs.yale.edu>
2044         * syntax.c (back_comment): Only check nestedness of 2nd char if needed.
2046 2003-02-24  Juanma Barranquero  <lektu@terra.es>
2048         * callint.c (fix_command): Declare as static void and move before
2049         Fcall_interactively.
2051         * xdisp.c (Qwhen): Declare external; it's now defined in callint.c.
2052         (syms_of_xdisp): Don't initialize Qwhen.
2054 2003-02-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2056         * keyboard.c (cancel_hourglass_unwind): New function.
2057         (command_loop_1): Cancel hourglass with unwind-protect.
2059 2003-02-23  Richard M. Stallman  <rms@gnu.org>
2061         * callint.c (fix_command): New subroutine, from Fcall_interactively.
2062         Detect (when ... (region-beginning)) etc.
2063         (Fcall_interactively): Call fix_command.
2064         (Qif, Qwhen): New variables.
2065         (syms_of_callint): Init and staticpro them.
2067         * regex.c (print_partial_compiled_pattern): Output to stderr.
2069 2003-02-23  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
2071         * dired.c (directory_files_internal): Don't expand directory.
2072         (Fdirectory_files, Fdirectory_files_and_attributes): Do it here
2073         instead.  From Lars Hansen <larsh@math.ku.dk>.
2075 2003-02-22  Stefan Monnier  <monnier@cs.yale.edu>
2077         * fns.c (string_to_multibyte): Remove unused var i.
2078         (Flanginfo): Fix int/Lisp_Object mixup.
2079         (void_call2): New fun.
2080         (Fmap_char_table): Use it in place of call2.
2082         * xfaces.c (x_face_list_fonts): Fix int/Lisp_Object mixup.
2084         * macros.c (Fstart_kbd_macro): Remove redundant assignment.
2086         * keymap.c (copy_keymap_1): Make it static.
2088         * alloc.c (Fgarbage_collect): Don't use XSETFLOAT.
2090 2003-02-22  David Ponce  <david@dponce.com>
2092         * lread.c (Fload): Don't check STRING_MULTIBYTE.
2094 2003-02-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2096         * process.h: Removed subtty field from struct Lisp_Process.
2098         * process.c (create_process): Remove setting of subtty.
2099         (emacs_get_tty_pgrp): New function.
2100         (Fprocess_running_child_p, process_send_signal):
2101         Call emacs_get_tty_pgrp instead of ioctl.
2102         (process_send_signal): Call EMACS_KILLPG if ioctl TIOCSIGSEND fails.
2104 2003-02-21  Kai Gro\e,A_\e(Bjohann  <kai.grossjohann@uni-duisburg.de>
2106         * keymap.c (Fdefine_key): Doc fix.
2108 2003-02-21  Juanma Barranquero  <lektu@terra.es>
2110         Port of patch for RC by Klaus Zeitler <kzeitler@lucent.com>.
2112         * s/hpux10.h: Define POLL_INTERRUPTED_SYS_CALL, not
2113         POLLING_PROBLEM_IN_SELECT.
2115         * s/hpux11.h: Include hpux10-20.h instead of hpux10.h.
2116         Delete #undef of POLLING_PROBLEM_IN_SELECT.
2118         * s/hpux10-20.h: New file.
2120         * process.c (wait_reading_process_input):
2121         Use POLL_INTERRUPTED_SYS_CALL, not POLLING_PROBLEM_IN_SELECT.
2123 2003-02-20  Kenichi Handa  <handa@m17n.org>
2125         * fontset.c (check_fontset_name): If NAME is nil, return the
2126         default fontset.
2127         (override_font_info): New function.
2128         (Fset_fontset_font): Document that NAME nil means the default fontset.
2129         (Ffontset_info): If FONTSET is not the default fontset, merge
2130         FONTSET onto the copy of the default fontset, and work on that
2131         copy.  Document that NAME nil means the default fontset.
2132         (Ffontset_font): Document that NAME nil means the default fontset.
2134         * process.c (setup_process_coding_systems): If the process's
2135         in/out descriptor is -1, do nothing.
2137 2003-02-19  Andreas Schwab  <schwab@suse.de>
2139         * lisp.h (Fcancel_kbd_macro_events, Fstring_to_multibyte):
2140         Add prototypes.
2142 2003-02-19  Kenichi Handa  <handa@m17n.org>
2144         * xfaces.c (try_alternative_families): Try all scalable fonts if
2145         Vscalable_fonts_allowed is not Qt.
2147 2003-02-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2149         * xfaces.c (x_face_list_fonts): Set *pfonts to 0 if no fonts found.
2151 2003-02-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2153         * xterm.c (x_list_fonts): If maxnames is less than 0, get all font
2154         names.
2156         * xfaces.c (x_face_list_fonts): Allocate struct font_name here.
2157         (sorted_font_list): Move allocation of struct font_name to
2158         x_face_list_fonts.
2159         (Fx_font_family_list): Set font-list-limit to -1 to get all font names.
2160         (Fx_list_fonts): Set maxnames to -1 to get all font names.
2162 2003-02-18  Kim F. Storm  <storm@cua.dk>
2164         * lread.c (read1): Fix last change.
2165         "`" is not always special.  Allow "?" after a character constant.
2167 2003-02-18  Andrew Choi  <akochoi@shaw.ca>
2169         * unexmacosx.c (copy_data_segment): Also copy __cfstring section.
2171 2003-02-18  Andreas Schwab  <schwab@suse.de>
2173         * window.c (window_scroll_pixel_based): Move outside a
2174         multi-glyph character before setting new window start.
2176         * xdisp.c (in_display_vector_p): New function.
2177         * dispextern.h (in_display_vector_p): Declare.
2179 2003-02-18  Kim F. Storm  <storm@cua.dk>
2181         * lread.c (read1): Fix and relax read syntax.
2182         Recognize "[", ";", "#", and "?" after a dotted-pair dot.
2183         Only recognize "," after dotted-pair dot if inside backquote.
2184         Never include "`" or "," (inside backquote) in a symbol.
2185         Allow dotted-pair dot after a character constant.
2186         Allow "`" and "," (inside backquote) after a character constant.
2188 2003-02-17  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2190         * gtkutil.c (xg_tool_bar_expose_callback): New function.
2191         (xg_create_tool_bar): Force style of tool bar to be horizontal with
2192         icons.  Set name of tool bar to emacs-toolbar.
2193         (update_frame_tool_bar): Connect expose event to
2194         xg_tool_bar_expose_callback.
2196 2003-02-17  Richard M. Stallman  <rms@gnu.org>
2198         * keyboard.c (this_command_key_count_reset): New variable.
2199         Initiatize to 0 where this_command_key_count is set.
2200         (read_char): Save and restore this_command_key_count_reset
2201         around input method code.
2202         (read_char): If this_command_key_count_reset, echo reread commands.
2203         (Freset_this_command_lengths): Set this_command_key_count_reset to 1.
2205 2003-02-17  Kenichi Handa  <handa@m17n.org>
2207         * fns.c (string_to_multibyte): Always return a multibyte string.
2209 2003-02-16  Jason Rumney  <jasonr@gnu.org>
2211         * w32fns.c (w32_list_bdf_fonts, w32_list_fonts):
2212         Negative max_fonts parameter means list all.
2214 2003-02-14  Dave Love  <fx@gnu.org>
2216         * fns.c (Flanginfo): Doc fix.
2218 2003-02-13  Kim F. Storm  <storm@cua.dk>
2220         * lread.c (read_escape): Interpret \s as a SPACE character, except
2221         for \s-X in a character constant which still is the super modifier.
2222         (read1): Signal an `invalid read syntax' error if a character
2223         constant is immediately followed by a digit or symbol character.
2225         * search.c (Fmatch_data): Doc fix.  Explicitly state that
2226         match-data is undefined if last search failed.
2228         * keymap.c (Fcommand_remapping): Renamed from Fremap_command.
2229         All uses changed.
2231 2003-02-12  Juanma Barranquero  <lektu@terra.es>
2233         * eval.c (Fdefmacro): Fix typo.
2235 2003-02-12  Kim F. Storm  <storm@cua.dk>
2237         * macros.c (Fstart_kbd_macro): If appending, and last keyboard
2238         macro is a string, convert meta modifiers in string when copying
2239         the string into a vector.
2241 2003-02-11  Kim F. Storm  <storm@cua.dk>
2243         * keymap.c (Fremap_command): Return nil if arg is not a symbol.
2245 2003-02-11  Kenichi Handa  <handa@m17n.org>
2247         * Makefile.in (lisp, shortlisp): Add malayalam.el and tamil.el.
2249 2003-02-10  Kim F. Storm  <storm@cua.dk>
2251         * process.c: Doc fixes.
2252         (syms_of_process): Add `:' prefix to QCfilter_multibyte.
2254 2003-02-10  Kenichi Handa  <handa@m17n.org>
2256         * fns.c (Fstring_to_multibyte): Fix typo in the docstring.
2258         * process.c (QCfilter_multibyte): New variable.
2259         (setup_process_coding_systems): New function.
2260         (Fset_process_buffer, Fset_process_filter):
2261         Call setup_process_coding_systems.
2262         (Fstart_process): Initialize the member `filter_multibyte' of
2263         struct Lisp_Process.
2264         (create_process): Call setup_process_coding_systems.
2265         (Fmake_network_process): New keyward `:filter-multibyte'.
2266         Initialize the member `filter_multibyte' of struct Lisp_Process.
2267         Call setup_process_coding_systems.
2268         (server_accept_connection): Call setup_process_coding_systems.
2269         (read_process_output): If the process has a filter, decide the
2270         multibyteness of a string to given to the filter by
2271         `filter_multibyte' member of the process.  If the process doesn't
2272         have a filter and the result of conversion is unibyte, use
2273         Fstring_to_multibyte (not Fstring_make_multibyte) to get the
2274         multibyte form.
2275         (Fset_process_coding_system): Call setup_process_coding_systems.
2276         (Fset_process_filter_multibyte): New function.
2277         (Fprocess_filter_multibyte_p): New function.
2278         (syms_of_process): Intern and staticpro QCfilter_multibyte.
2279         Defsubr Sset_process_filter_multibyte and
2280         Sprocess_filter_multibyte_p.
2282         * process.h (struct Lisp_Process): New member filter_multibyte.
2284         * lisp.h (setup_process_coding_systems): Add prototype.
2286         * buffer.c (Fset_buffer_multibyte): If the current buffer has a
2287         process, update coding systems for the process.
2289 2003-02-09  Kenichi Handa  <handa@m17n.org>
2291         * fns.c (string_to_multibyte): New function.
2292         (Fstring_to_multibyte): New function.
2293         (syms_of_fns): Defsubr it.
2295 2003-02-08  Andreas Schwab  <schwab@suse.de>
2297         * Makefile.in (EXEEXT): Define to @EXEEXT@ and use this variable
2298         instead of the substitution.
2300 2003-02-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2302         * xterm.c (x_make_frame_visible): Call gtk_window_deiconify.
2304         * xmenu.c (menu_position_func): Adjust menu popup position so that
2305         the menu is fully visible.
2307 2003-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2309         * xterm.c (x_text_icon, x_raise_frame, x_lower_frame)
2310         (x_make_frame_invisible, x_wm_set_icon_position):
2311         Use FRAME_OUTER_WINDOW instead of ifdef X_TOOLKIT/else/endif.
2313         * xfns.c (x_set_name, x_set_title): Ditto.
2315 2003-02-04  Richard M. Stallman  <rms@gnu.org>
2317         * keyboard.c (echo_now): Update before_command_echo_length.
2318         (Freset_this_command_lengths): Reset this_command_key_count etc.
2319         immediately rather than arranging to do it later.
2320         (before_command_key_count_1, before_command_echo_length_1)
2321         (before_command_restore_flag): Vars deleted.
2322         (add_command_key): Don't handle before_command_restore_flag.
2323         (read_char, record_menu_key): Don't update before_command_key_count or
2324         before_command_echo_length.
2325         (read_char): Don't handle before_command_restore_flag.
2327         * keyboard.c (command_loop_1): Don't call adjust_point_for_property
2328         in direct-output clauses if it wouldn't be called in the ordinary case.
2330 2003-02-04  Kim F. Storm  <storm@cua.dk>
2332         * keyboard.c (syms_of_keyboard) <this-original-command>: Doc fix.
2334 2003-02-02  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2336         * gtkutil.c (remove_from_container): Copying list is not needed.
2337         (xg_update_menubar, xg_update_menu_item, xg_update_submenu)
2338         (xg_modify_menubar_widgets, update_frame_tool_bar): Call g_list_free
2339         on list returned from gtk_container_get_children to avoid memory leak.
2341 2003-02-01  Jason Rumney  <jasonr@gnu.org>
2343         * w32fns.c (w32_create_pixmap_from_bitmap_data): Use alloca for
2344         local malloc.
2345         [HAVE_XPM]: Avoid clashes with XColor, XImage and Pixel
2346         definitions in xpm.h.
2347         (init_xpm_functions): New function.
2348         (xpm_load): Sync with xfns.c. Adapt for Windows version of libXpm.
2349         (init_external_image_libraries): Try to load libXpm.dll.
2351         * fileio.c (Fcopy_file) [WINDOWSNT]: Reverse logic for setting
2352         timestamp.
2354 2003-01-31  Dave Love  <fx@gnu.org>
2356         * syntax.c (Fskip_chars_forward)
2357         (open-paren-in-column-0-is-defun-start): Doc fix.
2359 2003-01-31  Joe Buehler  <jhpb@draco.hekimian.com>
2361         * fileio.c: Support // at start of name for Cygwin (just added proper
2362         preprocessor tests).
2364         * keyboard.c: Port to Cygwin (just added proper preprocessor tests).
2366         * Makefile.in: Use @EXEEXT@ for Cygwin.
2368         * mem-limits.h: Added ifdef to define BSD4_2 for Cygwin.
2370         * s/cygwin.h: Added for Cygwin port.
2372 2003-01-31  Juanma Barranquero  <lektu@terra.es>
2374         * w32fns.c (DrawText): Kludge to avoid a redefinition on Windows
2375         when including gif_lib.h.
2376         (init_gif_functions, init_tiff_functions): New functions.
2377         (gif_load, tiff_load): Sync with xfns.c version. Adjust colors for
2378         Windows. Disable color table lookups. Call library functions
2379         through pointers determined at runtime.
2380         (init_external_image_libraries): Try to load libungif.dll and
2381         libtiff.dll.
2383 2003-01-31  Kenichi Handa  <handa@m17n.org>
2385         * xdisp.c (SKIP_GLYPHS): New macro.
2386         (set_cursor_from_row): Skip all glyphs that comes from overlay string.
2388 2003-01-30  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2390         * gtkutil.c (free_frame_tool_bar): Remove debug printf.
2392 2003-01-30  Dave Love  <fx@gnu.org>
2394         * alloc.c (Vgc_elapsed, gcs_done): New variables.
2395         (Fgarbage_collect): Use them.
2396         (init_alloc, syms_of_alloc): Set them up.
2398 2003-01-30  Juanma Barranquero  <lektu@terra.es>
2400         * w32fns.c (init_external_image_libraries): Add missing operator.
2402 2003-01-29  Jason Rumney  <jasonr@gnu.org>
2404         * w32fns.c (init_external_image_libraries): Allow jpeg-62.dll as
2405         an alternative name for jpeg.dll.
2407 2003-01-29  Kenichi Handa  <handa@m17n.org>
2409         * xdisp.c (set_cursor_from_row): Pay attention to string display
2410         properties.
2412 2003-01-28  Benjamin Riefenstahl  <Benjamin.Riefenstahl@epost.de>
2414         * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>,
2415         <escape>.
2416         (keycode_to_xkeysym_table): Reformat and add more comments.
2417         (XTread_socket): Drop special case for backspace.
2419 2003-01-28  Andrew Choi  <akochoi@shaw.ca>
2421         * macfns.c (x_to_mac_color): Correct the order for parsing the RGB
2422         values in old-style RGB specs.
2424 2003-01-27  Juanma Barranquero  <lektu@terra.es>
2426         * w32fns.c (init_external_image_libraries): Try alternate names for the
2427         jpeg dll.
2429 2003-01-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2431         * gtkutil.c (create_dialog, xg_separator_p)
2432         (xg_item_label_same_p, xg_update_menu_item): Check for NULL string
2433         before calling strcmp or strlen.
2435 2003-01-26  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2437         * gtkutil.c (update_frame_tool_bar): Call prepare_image_for_display
2438         and handle image load failure.
2440 2003-01-26  Jason Rumney  <jasonr@gnu.org>
2442         * w32fns.c (init_jpeg_functions, jpeg_resync_to_restart_wrapper):
2443         New functions.
2444         (jpeg_load): Sync with xfns.c version. Adjust colors for Windows.
2445         Disable color table lookups. Call jpeg library functions
2446         through pointers determined at runtime.
2447         (init_external_image_libraries): Try to load jpeg.dll.
2449 2003-01-25  Richard M. Stallman  <rms@gnu.org>
2451         * lisp.h: Declare format2 instead of format1.
2453         * fileio.c (barf_or_query_if_file_exists):
2454         Call format2 instead of format1.
2456         * editfns.c (format2): New function, replaces format1
2457         but takes exactly two Lisp Objects as format args.
2459         * buffer.c (Fkill_buffer): Call format2 instead of format1.
2461 2003-01-25  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2463         * xterm.h: Change to return value of x_dispatch_event to int.
2465         * xterm.c (x_filter_event): New function.
2466         (event_handler_gdk, XTread_socket): Call x_filter_event.
2467         (x_dispatch_event): Change to return value of finish.
2468         (event_handler_gdk): Use return value from x_dispatch_event.
2470         * xfns.c (x_window): Call create_frame_xic for GTK version to
2471         initialize input methods.
2473         * gtkutil.h: Add (void) prototypes.
2475         * gtkutil.c (create_menus): Remove code that puts the help menu to
2476         the right.
2478 2003-01-25  Jason Rumney  <jasonr@gnu.org>
2480         * w32fns.c (XPutPixel): Handle monochrome images; used for masks.
2481         [HAVE_PNG]: Sync with xfns.c version.
2482         (png_load): Adjust colors for Windows. Use Windows
2483         bitmaps. Disable color table lookups.
2484         (DEF_IMGLIB_FN, LOAD_IMGLIB_FN): New macros.
2485         (init_png_functions): New function.
2486         (png_read_from_memory, png_load): Call png library functions
2487         through pointers determined at runtime.
2488         (QCloader, QCbounding_box, QCpt_width, QCpt_height): Declare.
2489         (init_external_image_libraries): New function.
2490         (init_xfns): Call it.
2492 2003-01-24  Andreas Schwab  <schwab@suse.de>
2494         * minibuf.c (Fminibuffer_message): Verify type of parameter.
2496 2003-01-24  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2498         * gtkutil.c (xg_initialize): Initialize id_to_widget here instead
2499         of static initializer.
2501 2003-01-24  Dave Love  <fx@gnu.org>
2503         * s/gnu-linux.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define for more
2504         architectures.
2506         * alloc.c (mark_stack) [!GC_LISP_OBJECT_ALIGNMENT && __GNUC__]:
2507         Use __alignof__.
2509 2003-01-24  Kenichi Handa  <handa@m17n.org>
2511         * keyboard.c (adjust_point_for_property): New second arg MODIFIED.
2512         It it is nonzero, don't pretend that an invisible area doesn't exist.
2513         (command_loop_1): Call adjust_point_for_property with proper
2514         second arg.
2516 2003-01-22  Jason Rumney  <jasonr@gnu.org>
2518         Sync changes with xterm.c and xfns.c.
2520         * w32term.c (x_draw_glyph_string_foreground)
2521         (x_draw_composite_glyph_string_foreground): Implement overstriking.
2523         * w32term.c (x_write_glyphs): Clear phys_cursor_on_p if current
2524         phys_cursor's hpos is overwritten.  This is still not completely
2525         correct, as it doesn't really make sense to use hpos at all to
2526         get the cursor glyph (as that is relative to the width of the
2527         characters on the line, which may have changed during the update).
2529         * w32term.c (notice_overwritten_cursor): Handle the special case
2530         of the cursor being in the first blank non-text line at the
2531         end of a window.
2533         * w32term.c (x_draw_hollow_cursor, x_draw_bar_cursor)
2534         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
2535         Compute from the x position returned by x_draw_glyphs.
2537         (x_display_and_set_cursor): Don't set phys_cursor_width here,
2538         except for NO_CURSOR and system caret, to make phys_cursor_width
2539         contain what its name suggests.
2540         (notice_overwritten_cursor): Consider the cursor image erased if
2541         the output area intersects the cursor image in y-direction.
2543         * w32term.c (note_mode_line_or_margin_highlight): Rename from
2544         note_mode_line_highlight and extend.
2546         * w32term.c (last_window): New variable.
2547         (w32_read_socket) <WM_MOUSEMOVE>: Generate SELECT_WINDOW_EVENTs.
2548         (note_mouse_movement): Remove reimplemented code in #if 0.
2550         * w32fns.c (x_set_cursor_type): Set cursor_type_changed,
2551         not update_mode_lines, and always set it to 1.
2553 2003-01-21  Jason Rumney  <jasonr@gnu.org>
2555         * w32fns.c (IDC_HAND): Define it if system headers don't.
2557 2003-01-21  KOBAYASHI Yasuhiro  <kobayays@otsukakj.co.jp>
2559         * w32term.h (struct w32_output): New member hand_cursor.
2560         (WM_EMACS_SETCURSOR): New message definition.
2562         * w32term.c (note_mode_line_highlight): Delete #if 0 to enable
2563         function w32_define_cursor.
2564         (note_mouse_highlight): Initialize, setup cursor accoding to mouse
2565         position, change member name output_data.x to output_data.w32 and
2566         add function w32_define_cursor.
2567         (show_mouse_face): Delete #if 0 to enable function w32_define_cursor
2568         and change member name output_data.x to output_data.w32.
2569         (w32_initialize_display_info):
2570         Setup dpyinfo->vertical_scroll_bar_cursor.
2572         * w32fns.c (Vx_hand_shape): New variable.
2573         (w32_wnd_proc): Add message entries for WM_SETCURSOR and
2574         WM_EMACS_SETCURSOR.
2575         (x-create-frame): Setup Cursor types.
2577 2003-01-21  David Ponce  <david@dponce.com>
2579         * w32term.c (w32_encode_char): For DIM=1 charset, set
2580         ccl->reg[2] to -1 before calling ccl_driver. (Sync. with xterm.c
2581         x_encode_char change by Kenichi Handa <handa@m17n.org> on
2582         2002-09-30.)
2583         (w32_draw_relief_rect): Declare all args.
2584         (w32_define_cursor): New.
2586         * w32fns.c (w32_load_cursor): New function.
2587         (w32_init_class): Use it.
2588         (x_put_x_image): Declare all args.
2590 2003-01-21  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
2592         * Makefile.in (ALL_CFLAGS): Include MYCPPFLAGS, not MYCPPFLAG.
2594 2003-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2596         * gtkutil.c: Must include stdio.h before termhooks.h
2598 2003-01-21  Dave Love  <fx@gnu.org>
2600         * alloc.c (Fgc_status): Print zombie list.
2601         (mark_maybe_object) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
2602         Fix assignment of zombies.
2603         (Fgarbage_collect) [GC_MARK_STACK==GC_USE_GCPROS_CHECK_ZOMBIES]:
2604         Don't take car of non-cons.
2606         * s/sol2-5.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
2608         * s/sunos4-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
2610 2003-01-20  David Ponce  <david@dponce.com>
2612         * w32menu.c (digest_single_submenu): Declare all args.
2614         Sync with 2002-12-23  Richard M. Stallman  <rms@gnu.org>
2615         changes in xmenu.c:
2617         (parse_single_submenu): Use individual keymap's prompt
2618         string as pane name, if there is one.
2619         (set_frame_menubar): Save menu_items_n_panes from each call to
2620         parse_single_submenu and use it when calling digest_single_submenu.
2622 2003-01-20  Steven Tamm  <steventamm@mac.com>
2624         * macterm.c (XTread_socket): Checks for valid, visible window
2625         before sending a scroll-wheel event.
2627 2003-01-20  Richard M. Stallman  <rms@gnu.org>
2629         * xdisp.c (redisplay_window): If mini window's buffer is not
2630         a minibuffer, then redisplay it like other windows.
2632 2003-01-20  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2634         * gtkutil.c (xg_create_frame_widgets): Check if there is an
2635         external tool bar before setting tool bar height.
2637 2003-01-19  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2639         * xterm.c (handle_one_xevent): Surround popup_activated
2640         with #ifdef:s for non-toolkit version.
2642         * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
2643         (gtkutil.o): New file.
2644         (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
2645         (LIBW): Set to @GTK_LIBS@ if USE_GTK.
2647         * gtkutil.c: New file for GTK version.
2649         * gtkutil.h: New file for GTK version.
2651         * xterm.h: Add xt_or_gtk_widget.
2652         Include gtk files for USE_GTK.
2653         (struct x_output): Add toolbar_height.
2654         (struct x_output): Add GTK widgets and Gdk size_hints.
2655         (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
2656         (FRAME_OUTER_WINDOW): New macros for USE_GTK.
2657         (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
2659         * xterm.c: Include gtkutil.h for USE_GTK.
2660         Declare extern void free_frame_menubar for USE_GTK.
2661         (note_mouse_highlight): Check popup_activated for USE_GTK.
2662         (xt_action_hook): Don't compile if USE_GTK.
2663         (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
2664         (xg_scroll_callback): New function.
2665         (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
2666         (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
2667         for USE_GTK.
2668         (x_scroll_bar_create): Call xg_update_scrollbar_pos and
2669         xg_show_scroll_bar for USE_GTK.
2670         (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
2671         (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
2672         (event_handler_gdk): New function for USE_GTK.
2673         (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
2674         (handle_one_xevent): Make sure widget is mapped before
2675         calling x_real_positions for USE_GTK.
2676         (XTread_socket): Add GTK event loop for USE_GTK.
2677         (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
2678         (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
2679         (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
2680         (x_iconify_frame): Add code for USE_GTK.
2681         (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
2682         (x_wm_set_size_hint): Only compile if not USE_GTK.  GTK version
2683         is in gtkutil.c.
2684         (x_term_init): Add initialization for GTK.
2685         (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
2687         * xmenu.c: Include gtkutil.h for USE_GTK.
2688         (Fx_popup_menu): Use current position if x and y is NIL.
2689         (single_menu_item, single_menu_item, Fx_popup_dialog):
2690         Check for USE_GTK.
2691         (popup_widget_loop): New function for USE_GTK.
2692         (x_activate_menubar): Add code for USE_GTK.
2693         (popup_activate_callback, popup_deactivate_callback)
2694         (menu_highlight_callback, menubar_selection_callback):
2695         Add USE_GTK versions.
2696         (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
2697         (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
2698         (free_frame_menubar): Only compile if not USE_GTK.  GTK version
2699         is in gtkutil.c.
2700         (popup_selection_callback): New version for USE_GTK.
2701         (create_and_show_popup_menu): New fuction, one USE_GTK version and
2702         one USE_X_TOOLKIT version.
2703         (xmenu_show): Call create_and_show_popup_menu.
2704         (dialog_selection_callback): New version for USE_GTK.
2705         (create_and_show_dialog): New fuction, one USE_GTK version and
2706         one USE_X_TOOLKIT version.
2707         (xdialog_show): Call create_and_show_dialog.
2709         * xfns.c: Include gtkutil for USE_GTK.
2710         (x_window_to_frame, x_any_window_to_frame)
2711         (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
2712         (x_top_window_to_frame): Add code for USE_GTK.
2713         (x_set_background_color): Call xg_set_background_color for GTK.
2714         (x_set_menu_bar_lines): Check for USE_GTK.
2715         (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
2716         (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
2717         (x_window): Call xg_create_frame_widgets for USE_GTK.
2718         (Fx_create_frame): Check for USE_GTK
2719         (Fx_file_dialog): New implementation for USE_GTK.
2721         * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
2722         (update_menu_bar): Add check for USE_GTK.
2723         (update_tool_bar): Add check for USE_GTK and external tool bar.
2724         (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
2725         (redisplay_internal): Add check for USE_GTK and popup_activated.
2726         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
2727         (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
2728         (display_menu_bar): Add check for USE_GTK
2730         * lisp.h: Declare Vx_resource_name extern.
2732         * keyboard.c (kbd_buffer_get_event):  Check MENU_BAR_ACTIVATE_EVENT
2733         for USE_GTK.
2734         (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
2736         * frame.h (struct frame): Add external_tool_bar.  Check for USE_GTK.
2737         (FRAME_EXTERNAL_TOOL_BAR): New macro.
2738         (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
2740         * fileio.c (Fread_file_name): Add check for USE_GTK.
2742         * dispnew.c (adjust_frame_glyphs_for_window_redisplay):
2743         Add check for USE_GTK.
2745         * config.in: Added HAVE_GTK
2747         * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
2749 2003-01-18  Stefan Monnier  <monnier@cs.yale.edu>
2751         * charset.h (Funibyte_char_to_multibyte): Export.
2753 2003-01-18  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2755         * xmenu.c (mouse_position_for_popup): New function.
2756         (Fx_popup_menu): Call mouse_position_for_popup for X and
2757         mouse_position_hook for others.
2759 2003-01-17  Kim F. Storm  <storm@cua.dk>
2761         * editfns.c (Finsert): Mention `string-make-multibyte' and
2762         `string-as-multibyte' in doc string.
2764 2003-01-17  Kenichi Handa  <handa@m17n.org>
2766         * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
2768         * editfns.c (Fformat): Convert an unibyte char argument that is
2769         formatted by "%c" to multibyte if the total result must be a
2770         multibyte string.
2772 2003-01-16  Kim F. Storm  <storm@cua.dk>
2774         * process.c (set-process-filter): Document unibyte/multibyte-ness
2775         of string argument.
2777 2003-01-16  Kenichi Handa  <handa@m17n.org>
2779         * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
2781         * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
2782         (re_search_2): Likewise.
2784 2003-01-15  Kenichi Handa  <handa@m17n.org>
2786         * xdisp.c (message_dolog): Fix bug of the case that *Message*
2787         buffer is unibyte.
2789 2003-01-15  Francesco Potort\e,Al\e(B  <pot@gnu.org>
2791         * fns.c (Fsubstring): Clarify doc string.
2793         * textprop.c (Ftext_properties_at, Fnext_char_property_change)
2794         (Fprevious_char_property_change)
2795         (Fnext_single_char_property_change)
2796         (Fprevious_single_char_property_change, Fnext_property_change)
2797         (Fnext_single_property_change, Fprevious_property_change)
2798         (Fprevious_single_property_change, Fadd_text_properties)
2799         (Fput_text_property, Fset_text_properties)
2800         (Fremove_text_properties, Fremove_list_of_text_properties)
2801         (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
2803 2003-01-14  Kim F. Storm  <storm@cua.dk>
2805         * process.h (struct Lisp_Process): New member plist replaces old
2806         member private_vars.  All uses changed.
2808         * process.c: Reworked 2003-01-12 change -- call a plist a plist!
2809         (QCplist): Rename from QCvars.  Change all uses.
2810         (Fprocess_plist): Replaces Fprocess_variable.  Simplified.
2811         (Fset_process_plist): Replaces Fset_process_variable.  Simplify.
2812         (syms_of_process): Intern, staticpro, defsubr these.
2813         (Fmake_network_process): Describe :plist arg.  Remove :vars arg.
2815 2003-01-14  Francesco Potort\e,Al\e(B  <pot@gnu.org>
2817         * m/delta.h: Remove (obsolete).
2819 2003-01-13  Francesco Potort\e,Al\e(B  <pot@gnu.org>
2821         * fileio.c (Fdelete_directory, Fdelete_file): Document the
2822         behaviour in front of symlinks.
2823         (Fdelete_file): Raise an error on directories.
2825 2003-01-13  Dave Love  <fx@gnu.org>
2827         * fns.c (Freverse): Use QUIT.
2829 2003-01-13  Richard M. Stallman  <rms@gnu.org>
2831         * minibuf.c (minibuffer_completion_contents):
2832         Error if point is inside prompt.
2834         * keyboard.c (command_loop_1): Don't redisplay directly
2835         if there's a post-command-hook.
2837         * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
2838         (Fdo_auto_save): Add gcpros around Ffile_name_directory.
2840 2003-01-12  Kim F. Storm  <storm@cua.dk>
2842         * process.h (struct Lisp_Process): New member private_vars.
2844         * process.c (QCvars): New variable.
2845         (syms_of_process): Intern and staticpro it.
2846         (Fset_process_contact): Removed function.
2847         (Fprocess_variable, Fset_process_variable): New functions.
2848         (syms_of_process): Defsubr them.
2849         (Fstart_process): Initialize private_vars plist to nil.
2850         (Fmake_network_process): New arg :vars to setup the private
2851         variables for new network process.
2852         (server_accept_connection): Copy server's private variables to
2853         client process.
2855         * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
2856         crashes).  Code rewritten and simplified.  Now directly aligns the
2857         pointer and recalculates pure_bytes_used, rather than aligning the
2858         size and adjusting the pointer.
2860 2003-01-11  Kim F. Storm  <storm@cua.dk>
2862         * process.c (Fset_process_contact): New function.
2863         (syms_of_process): defsubr it.
2864         (make-network-process): Update doc.
2866 2003-01-10  Andreas Schwab  <schwab@suse.de>
2868         * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
2869         Reported by Berthold Gunreben <b.gunreben@web.de>.
2871 2003-01-10  Dave Love  <fx@gnu.org>
2873         * composite.c (syms_of_composite): Make composition_hash_table weak.
2875 2003-01-09  Kim F. Storm  <storm@cua.dk>
2877         * process.c (Fmake_network_process): Convert new port number
2878         to host byte order for `:service t' case.  From Mario Lang.
2880 2003-01-08  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
2882         * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
2883         instead of XtAppProcessEvent.
2885         * xterm.c (handle_one_xevent): New function.
2886         (x_dispatch_event): New function.
2887         (XTread_socket): Call handle_one_xevent.
2889         * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
2891         * xmenu.c (Fx_popup_menu): If popping up at mouse position,
2892         call XQueryPointer to get coordinates.
2893         (popup_get_selection): Do not set popup_activated_flag to zero,
2894         let popup_deactivate_callback do that.  Needed for Motif.
2895         Call x_dispatch_event instead of XtDispatchEvent.
2896         (xmenu_show): Calculate root coordinate from frame top/left position.
2898 2003-01-08  Kim F. Storm  <storm@cua.dk>
2900         * process.c (server_accept_connection): Fix recording of new
2901         connection's local address in :local property of contact info.
2902         (Fmake_network_process): Record local network address for new
2903         client processes in :local property of contact info.
2904         (format-network-address): Add arg OMIT-PORT.  Change callers.
2906 2003-01-07  Dave Love  <fx@gnu.org>
2908         * Makefile.in (fns.o): Depend on coding.h.
2910 2003-01-07  Markus Rost  <rost@math.ohio-state.edu>
2912         * minibuf.c (Fread_variable): Doc fix.
2914         * eval.c (Fuser_variable_p): Doc change.  For custom variables,
2915         use the same test as for custom-variable-p.
2917 2003-01-05  Richard M. Stallman  <rms@gnu.org>
2919         * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
2920         Count LAST_LINE_MISFIT in scroll margin for end of window.
2921         Move label too_near_end before setting SCROLL_MARGIN_POS.
2922         Set LAST_LINE_MISFIT before jumping there.
2924         * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
2925         scroll_conservatively case.  If scrolling that much doesn't change
2926         STARTP, move it down one line.
2928         * xdisp.c (redisplay_window): Pass last_line_misfit arg to
2929         try_scrolling.  Make it 1 after make_cursor_line_fully_visible fails.
2931         * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
2932         selected frame.
2934         * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
2935         (syms_of_keymap): staticpro them.
2936         (Fapropos_internal): Initialize them and clear them out.
2937         Don't GCPRO them.
2939         * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
2940         Doc fixes.
2942         * lisp.h: New misc type Lisp_Save_Value.
2943         (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
2944         (XSAVE_VALUE): New macro.
2945         (struct Lisp_Save_Value): New data type.
2946         (union Lisp_Misc): Add u_save_value alternative.
2947         (make_save_value): Declared.
2949         * alloc.c (make_save_value): New function.
2951         * xterm.c (x_catch_errors): Save dpy using make_save_value.
2952         (x_catch_errors_unwind): Call XSync.
2954 2003-01-01  Richard M. Stallman  <rms@gnu.org>
2956         * window.c (window_scroll_pixel_based): Partially undo last change.
2958         * keyboard.c (command_loop_1): Call adjust_point_for_property
2959         in direct action cases for Qforward_char and Qbackward_char.
2960         Set already_adjusted so it won't be done twice.
2962 2002-12-30  Richard Dawe  <rich@phekda.freeserve.co.uk>  (tiny change)
2964         * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
2965         type definition of size_t.
2967 2003-01-02  Steven Tamm  <steventamm@mac.com>
2969         * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
2970         distinguish Carbon GUI builds from X11 builds on darwin.
2972 2002-12-30  Steven Tamm  <steventamm@mac.com>
2974         * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
2975         to default to t.
2977 2002-12-29  Francesco Potort\e,Al\e(B  <pot@gnu.org>
2979         * data.c (Fstring_to_number, Fminus): Better English in doc strings.
2981 2002-12-28  Steven Tamm  <steventamm@mac.com>
2983         * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
2984         allow building in a different directory than source.  Uses some
2985         GNU Make extensions, but there is no other make on Mac OS X.
2987 2002-12-26  Francesco Potort\e,Al\e(B  <pot@gnu.org>
2989         * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
2990         (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
2991         (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
2992         (Fstring_to_number): Mention the returned value in the doc strings.
2994 2002-12-23  Richard M. Stallman  <rms@gnu.org>
2996         * buffer.c (syms_of_buffer) <scroll-up-aggressively>
2997         <scroll-down-aggressively>: Doc fix.
2999         * xmenu.c (parse_single_submenu): Use individual keymap's prompt
3000         string as pane name, if there is one.
3001         (set_frame_menubar): Save menu_items_n_panes from each call to
3002         parse_single_submenu and use it when calling digest_single_submenu.
3004         * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
3005         Don't try to make last line fully visible if it is past end of window.
3007 2002-12-22  Steven Tamm  <steventamm@mac.com>
3009         * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
3010         (mac_menu_show): Add support for hierarchical popup menus.
3011         (add_menu_item): Remove indentation support.
3012         (fill_submenu, fill_menu): Create hierarchical menus
3013         instead of using indentation.
3015 2002-12-22  Richard M. Stallman  <rms@gnu.org>
3017         * xdisp.c (try_cursor_movement): Don't call try_window here.
3018         (redisplay_window): Never redisplay minibuffer when inactive.
3020         * window.c (select_window_1): Undo 9/21 change.
3022 2002-12-22  Steven Tamm  <steventamm@mac.com>
3024         * macterm.c (XTread_socket): Call KeyTranslate for control and
3025         meta to deal correctly shifted non-alpha characters, like C-S-5
3026         being treated like C-%.  Does not look for shift key to deal
3027         with masking off control-key with mac-reverse-ctrl-meta.
3029 2002-12-21  Richard M. Stallman  <rms@gnu.org>
3031         * xmenu.c (popup_get_selection): Now static.  New arg DO_TIMERS.
3032         If it is non-nil, run timers.  Use an unwind-protect to requeue
3033         the events that were read ahead.
3034         (popup_get_selection_unwind): New subroutine.
3035         (popup_get_selection_queue): File-scope variable now holds that queue.
3036         (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
3037         (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
3038         Use an unwind-protect to pop down the dialog box.
3039         (xdialog_show_unwind): New subroutine implements that.
3041         * xdisp.c (row_containing_pos): Change exit test using last_y.
3042         (try_window_id): Abort if row_containing_pos returns null.
3044         * lread.c (load_error_handler): New function.
3045         (Fload): Handle errors in Fsubstitute_in_file_name.
3046         Don't expect Fsignal to return.
3048         * eval.c: Errors and throws work right with interrupt blocking.
3049         (struct catchtag): New elt interrupt_input_blocked.
3050         (unwind_to_catch): Restore interrupt_input_blocked from saved value.
3051         (internal_catch, Fcondition_case, internal_condition_case)
3052         (internal_condition_case_1, internal_condition_case_2): Save it.
3053         (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
3055         * editfns.c (Fformat): Add parens.
3057         * dired.c (file_name_completion): Fix that change.
3058         Delete special quit-handling code; just use QUIT.
3060 2002-12-21  Tak Ota  <Takaaki.Ota@am.sony.com>  (tiny change)
3062         * dired.c (file_name_completion): Close directory on error
3063         just as in directory_files_internal.
3065 2002-12-19  David Kastrup  <David.Kastrup@t-online.de>
3067         * window.c (Fset_window_configuration): Set old_point to correct
3068         value when new_current_buffer == current_buffer.
3070 2002-12-17  Ben Key  <bkey1@tampabay.rr.com>
3072         Revisited my earlier fix for the following entry in etc/PROBLEMS:
3073         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
3074         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
3076         These changes were in part based upon suggestions made by Peter
3077         'Luna' Runestig [peter@runestig.com].
3079         * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
3080         g_b_init_get_token_information, g_b_init_lookup_account_sid,
3081         g_b_init_get_sid_identifier_authority ): Add several static
3082         global variables.
3084         * w32.c (globals_of_w32): New function.  Used to initialize those
3085         global variables that must always be initialized on startup even
3086         when the global variable initialized is non zero.  Its primary
3087         purpose at this time is to set the global variables
3088         g_b_init_is_windows_9x, g_b_init_open_process_token,
3089         g_b_init_get_token_information, g_b_init_lookup_account_sid, and
3090         g_b_init_get_sid_identifier_authority to 0 on startup.
3091         Called from main.
3093         * w32.c (is_windows_9x): Perform initialization only if
3094         g_b_init_is_windows_9x is equal to 0.  On initialization set
3095         g_b_init_is_windows_9x equal to 1.
3097         * w32.c (open_process_token): Perform initialization only if
3098         g_b_init_open_process_token is equal to 0.  On initialization set
3099         g_b_init_open_process_token equal to 1.
3101         * w32.c (get_token_information): Perform initialization only if
3102         g_b_init_get_token_information is equal to 0.  On initialization
3103         set g_b_init_get_token_information equal to 1.
3105         * w32.c (lookup_account_sid): Perform initialization only if
3106         g_b_init_lookup_account_sid is equal to 0.  On initialization
3107         set g_b_init_lookup_account_sid equal to 1.
3109         * w32.c (get_sid_identifier_authority): Perform initialization
3110         only if g_b_init_get_sid_identifier_authority is equal to 0.
3111         On initialization set g_b_init_get_sid_identifier_authority equal to 1.
3113         * w32fns.c (globals_of_w32fns): New function. Used to initialize
3114         those global variables that must always be initialized on startup
3115         even when the global variable initialized is non zero.
3116         Its primary purpose at this time is to initialize the global variable
3117         track_mouse_event_fn.
3119         * w32fns.c (w32_wnd_proc):  Remove initialization of
3120         track_mouse_event_fn from the handler for the WM_SETFOCUS message.
3122         * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
3124         * w32menu.c (globals_of_w32menu):  New function. Used to
3125         initialize those global variables that must always be initialized
3126         on startup even when the global variable initialized is non zero.
3127         Its primary purpose at this time is to initialize the global
3128         variables get_menu_item_info and set_menu_item_info.
3130         * w32menu.c (initialize_frame_menubar): Remove initialization of
3131         get_menu_item_info and set_menu_item_info.
3133         * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
3135         * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
3136         Declare them.
3138         * emacs.c (main): Call globals_of_w32 prior to calling
3139         init_environment if WINDOWSNT is defined.  Call globals_of_w32fns
3140         and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
3141         is defined.
3143         * w32term.c (x_update_window_begin): Fix Windows API error
3144         detected by BoundsChecker.  Test to determine if
3145         w32_system_caret_hwnd is NULL prior to attempting to use
3146         SendMessage to send the WM_EMACS_HIDE_CARET message to it.
3148         * w32term.c (x_update_window_end): Fix Windows API error
3149         detected by BoundsChecker.  Test to determine if
3150         w32_system_caret_hwnd is NULL prior to attempting to use
3151         SendMessage to send the WM_EMACS_SHOW_CARET message to it.
3153 2002-12-17  Kenichi Handa  <handa@m17n.org>
3155         * coding.c (coding_system_require_warning): New variable.
3156         (syms_of_coding): DEFVAR it.
3158         * coding.h (coding_system_require_warning): Extern it.
3160         * fileio.c (choose_write_coding_system): Even if
3161         Vcoding_system_for_write is non-nil, if
3162         coding_system_require_warning is nonzero, call
3163         Vselect_safe_coding_system_function.
3165 2002-12-17  Markus Rost  <rost@math.ohio-state.edu>
3167         * Makefile.in (lisp, shortlisp): Add cus-face and timer.
3168         (lisp): Add font-core.
3170 2002-12-13  Stefan Monnier  <monnier@cs.yale.edu>
3172         * textprop.c (text_read_only): New arg `propval'.
3173         (get_char_property_and_overlay): Remove unused var `next_overlay'.
3174         (verify_interval_modification): Use text_read_only's new arg.
3176 2002-12-13  Kenichi Handa  <handa@m17n.org>
3178         * coding.c (Funencodable_char_position): Set pend correctly.
3180 2002-12-12  Jason Rumney  <jasonr@gnu.org>
3182         * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
3183         (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
3184         Be more careful about when help_events are generated.
3186 2002-12-12  Steven Tamm  <steventamm@mac.com>
3188         * macterm.c (mac_check_for_quit_char): Correctly set the
3189         modifiers of the event to 0.
3190         * mac.c (sys_select): Duplicate rfds before calling select to
3191         ensure that rfds survive the while loop.
3193 2002-12-11  Kim F. Storm  <storm@cua.dk>
3195         * xdisp.c (try_window_id): Don't call set_cursor_from_row if
3196         row_containing_pos returned NULL.
3198 2002-12-10  Steven Tamm  <steventamm@mac.com>
3200         * mac.c (sys_read): Fix sys_read to not call select if IO is
3201         non-blocking.
3202         (sys_select): Fix sys_select to not use a timeout larger than
3203         the one given.
3205 2002-12-10  Juanma Barranquero  <lektu@terra.es>
3207         * editfns.c (Fformat): Use alloca, not _alloca.
3209 2002-12-09  Richard M. Stallman  <rms@gnu.org>
3211         * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
3212         as the last thing.
3214 2002-12-09  Dave Love  <fx@gnu.org>
3216         * s/sol2-8.h: Removed.  (Not necessary.)
3218 2002-12-09  Matthew Swift  <swift@alum.mit.edu>
3220         * editfns.c (Fformat): Handle precision in string conversion
3221         specifiers like libc functions do (ie, print at most that many
3222         characters).
3224 2002-12-08  Richard M. Stallman  <rms@gnu.org>
3226         * xdisp.c (row_containing_pos): Check more carefully
3227         whether charpos is really in the row before returning it.
3229 2002-12-07  Steven Tamm  <steventamm@mac.com>
3231         * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
3233         * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
3234         each stack frame.  This may change as it could be time consuming.
3236         * macterm.c (mac_check_for_quit_char, quit_char_comp)
3237         (init_quit_char_handler, mac_determine_quit_char_modifiers)
3238         (mac_initialize): Add code to check for pressing of quit_char
3239         in the OS event queue.
3241         * mac.c (sys_select): Call mac_check_for_quit_char every second
3242         while blocking on select.
3244         * mac.c (sys_read): Use sys_select to test for input first
3245         before calling read, to allow C-g to break.
3247 2002-12-07  Richard M. Stallman  <rms@gnu.org>
3249         * minibuf.c (Fcompleting_read): Doc fix.
3251         * lread.c (syms_of_lread) <load-history>: Doc fix.
3253         * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
3255         * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
3256         autoload.
3258         * data.c (Fdefalias): Record in load-history redefining an autoload.
3260         * alloca.c: Undo ifdef change accidentally made on 12-04.
3262 2002-12-06  Francesco Potorti`  <pot@gnu.org>
3264         * xfns.c (png_load): Avoid double gamma correction for PNG images.
3266 2002-12-04  Richard M. Stallman  <rms@gnu.org>
3268         * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
3270         * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
3272         * alloca.c: Don't use #error.
3274 2002-12-03  Dave Love  <fx@gnu.org>
3276         * buffer.c (Qucs_set_table_for_input): New.
3277         (Fget_buffer_create): Use it.
3278         (Qset_buffer_major_mode_hook): Deleted.
3279         (Fset_buffer_major_mode): Revert previous change.
3280         (init_buffer_once): Intern ucs-set-table-for-input.
3281         (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
3282         Add &Qucs_set_table_for_input.
3284 2002-12-03  Andreas Schwab  <schwab@suse.de>
3286         * callint.c (Fcall_interactively): Use next_event only if less
3287         than key_count.
3289 2002-12-02  Andrew Choi  <akochoi@shaw.ca>
3291         * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
3292         names to 255 characters.
3294         * macterm.c (XTread_socket): If all frames have been collapsed,
3295         expand the first one before handling drag-and-drop events.
3297         * s/darwin.h (GETPGRP_NO_ARG): Delete.  Replaced by GETPGRP_VOID,
3298         which is detected by autoconf.
3300 2002-12-01  Steven Tamm  <steventamm@mac.com>
3302         * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
3303         offset in two hints table to allow prebinding to be redone and
3304         allow the executable to be stripped.
3306 2002-11-29  Dave Love  <fx@gnu.org>
3308         * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
3309         already provided.
3311 2002-11-29  Richard M. Stallman  <rms@gnu.org>
3313         * xdisp.c (start_display): Check more intelligently for
3314         whether the line is continued.
3315         (move_it_vertically_backward): Clear it->continuation_lines_width.
3317 2002-11-28  Dave Love  <fx@gnu.org>
3319         * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
3320         * s/alliant.h, s/altos.h: Deleted.  (Unused/empty.)
3322 2002-11-27  Steven Tamm  <steventamm@mac.com>
3324         * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
3325         more descriptive error output from lread.c:Fload upon most require
3326         cycles during boostrapping.
3328 2002-11-27  Jason Rumney  <jasonr@gnu.org>
3330         * fileio.c (Finsert_file_contents): Give a more appropriate error
3331         for files bigger than 2Gb when off_t is 32 bit.
3333         * dired.c (Ffile_attributes): Don't return negative file sizes for
3334         files bigger than 2Gb when off_t is 32 bit.
3336 2002-11-27  Dave Love  <fx@gnu.org>
3338         * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
3340         * systty.h: Don't conditionally define GETPGRP_NO_ARG.
3341         Test GETPGRP_VOID instead.
3342         [BSD_TERMIOS]: Remove definitions (never used).
3344         * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
3345         Don't define.
3346         (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
3348         * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
3350 2002-11-25  Jason Rumney  <jasonr@gnu.org>
3352         * w32.c (sys_write): Avoid non-blocking mode, which is not fully
3353         supported.
3355 2002-11-25  Dave Love  <fx@gnu.org>
3357         * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
3359         * Makefile.in (TEMACS_LDFLAGS): Update last change.
3361 2002-11-25  Andreas Schwab  <schwab@suse.de>
3363         * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
3365 2002-11-24  Steven Tamm  <steventamm@mac.com>
3367         * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
3368         determine the size of pointers alloced in unexed space instead
3369         of using possibly invalid emacs_zone pointers.  This fixes the
3370         binary incompatibility problems caused by updates to libSystem.B.
3372 2002-11-24  Richard M. Stallman  <rms@gnu.org>
3374         * search.c (Fstring_match): Doc fix.
3376         * callint.c (Fcall_interactively): If a command fails because
3377         `*' detects a read-only buffer, but RECORD_FLAG is set,
3378         record it anyway if the args don't actually do tty input.
3380 2002-11-22  Dave Love  <fx@gnu.org>
3382         * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
3384         * keyboard.c (interrupt_signal): Provide forward declaration.
3385         (kbd_buffer_store_event): Don't declare interrupt_signal.
3387         * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
3389 2002-11-21  Richard M. Stallman  <rms@gnu.org>
3391         * eval.c (interactive_p): Skip any number of bytecode
3392         and special form frames, in any order.
3394 2002-11-20  Jason Rumney  <jasonr@gnu.org>
3396         * w32fns.c (convert_mono_to_color_image): New function.
3397         (xbm_load, xbm_load_image): Use it when foreground or background
3398         is explicitly set.
3400 2002-11-19  Dave Love  <fx@gnu.org>
3402         * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
3404 2002-11-18  Jason Rumney  <jasonr@gnu.org>
3406         * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
3407         (XPutPixel): Swap blue and red.
3408         (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
3409         (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
3410         (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
3411         (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
3413 2002-11-18  Dave Love  <fx@gnu.org>
3415         * m/orion105.h (HAVE_ALLOCA): Don't define.
3417         * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
3419         * m/intel386.h: Don't include alloca.h or define alloca.
3421         * m/ia64.h: Don't include alloca.h, stdlib.h.  Don't declare
3422         malloc, realloc, calloc.
3424         * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
3425         (bcmp): Don't define.
3427         * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
3429         * m/amdahl.h: Don't define LIB_STANDARD.
3431         * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
3433         * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
3435         * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
3436         Don't include alloca.h.
3438         * s/aix3-2.h (HAVE_FSYNC): Don't define.
3440         * regex.c (_GNU_SOURCE): Don't define.
3442         * process.c (_GNU_SOURCE): Don't define.
3444         * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
3446 2002-11-18  Markus Rost  <rost@math.ohio-state.edu>
3448         * s/sol2-8.h: Include sol2-6.h.
3450 2002-11-18  Miles Bader  <miles@gnu.org>
3452         * dispextern.h (struct face): Add `overstrike' field.
3453         * xterm.c (x_draw_glyph_string_foreground)
3454         (x_draw_composite_glyph_string_foreground): Implement overstriking.
3455         * xfaces.c (load_face_font): Set `face->overstrike' based on
3456         result from choose_face_font.
3457         (best_matching_font, choose_face_font): Add `needs_overstrike'
3458         argument, and use it to return whether overstriking is desirable
3459         for this face/font combo.
3460         (set_font_frame_param: Pass new argument to choose_face_font.
3462 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
3464         This change is my fix for the following entry in etc/PROBLEMS:
3465         "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
3466         or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
3468         * w32.c: Added wrapper functions around the win32 API functions
3469         OpenProcessToken, GetTokenInformation, LookupAccountSid, and
3470         GetSidIdentifierAuthority.  These wrapper functions serve two
3471         purposes:
3472         1.  They ensure that the wrapped function can never be called
3473         when Emacs is running on an operating system on which they are
3474         not supported (Microsoft Windows 95 / 98 / ME).
3475         2.  They call the wrapped functions via function pointers rather
3476         than calling them directly.  This avoids taking advantage of the
3477         undocumented fact that although these functions are not supported
3478         in the 9x branch of Microsoft Windows, the functions do exist in
3479         the version of advapi32.dll that is found in the 9x branch of
3480         Microsoft Windows.
3482         * w32.c (init_user_info): Replace the calls to the win32 API
3483         functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
3484         and GetSidIdentifierAuthority with calls to the newly added
3485         wrapper functions.
3487         * w32.h: Added extern declarations for the following functions:
3488         syms_of_w32term, syms_of_w32fns, syms_of_w32select,
3489         syms_of_w32menu, and void syms_of_fontset.
3491         * w32fns.c (w32_wnd_proc): Add code to reinitialize the
3492         function pointer track_mouse_event_fn in the handler for the
3493         WM_SETFOCUS message.
3495         * w32menu.c (initialize_frame_menubar): Add code to
3496         reinitialize the function pointers set_menu_item_info and
3497         get_menu_item_info.
3499 2002-11-17  Ben Key  <BKey1@tampabay.rr.com>
3501         * sound.c: Added a partial implementation of play-sound-internal
3502         for Microsoft Windows.  Added various #ifdef / #else / #endif
3503         code blocks to separate the code that will compile under
3504         Microsoft Windows from the code that is specific to Gnu/Linux.
3505         Moved several blocks of code around to make this separation of code
3506         into Windows compatible and Gnu/Linux compatible code blocks easier.
3508         * makefile.w32-in: Include sound.c and link with WinMM.lib.
3510         * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
3511         added support for play-sound-internal under Windows would be
3512         included in the build of Emacs.
3514 2002-11-16  Jason Rumney  <jasonr@gnu.org>
3516         * w32fns.c (w32_load_system_font): Don't disable Cleartype.
3518         * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
3520 2002-11-15  Stefan Monnier  <monnier@cs.yale.edu>
3522         * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
3523         (adjust_point_for_property): Move out of display and invisible even if
3524         we were already inside before (in case a property was added while
3525         we weren't looking).  Be more careful when handling invisible props.
3526         Skip invisible text as if it really wasn't there at all.
3528 2002-11-15  Jason Rumney  <jasonr@gnu.org>
3530         * w32term.c (x_draw_image_foreground)
3531         (w32_draw_image_foreground_1): Use standard copy and invert
3532         operations to draw images.
3534         * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
3535         depth of 1.
3536         (xbm_read_bitmap_data): Invert bits as xbm is read in.
3537         (XPutPixel): Don't invert bits here.
3539 2002-11-15  Jason Rumney  <jasonr@gnu.org>
3541         * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
3542         (w32_draw_image_foreground_1): Handle image masks.
3543         (x_draw_image_glyph_string): Don't BitBlt transparently.
3545         * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
3546         (x_from_xcolors): Adjust RGB values for W32.
3547         (image_background, image_background_transparent)
3548         (postprocess_image, x_to_xcolors, x_disable_image)
3549         (x_build_heuristic_mask): Adapt for W32 and enable.
3550         (x_create_x_image_and_pixmap): Mark images with palettes as such.
3551         (xbm_load): Remove unused variable.
3553 2002-11-14  Richard M. Stallman  <rms@gnu.org>
3555         * buffer.c (syms_of_buffer): Doc fix.
3557 2002-11-14  Dave Love  <fx@gnu.org>
3559         * alloc.c (SETJMP_WILL_NOT_WORK): Add note.
3561         * xterm.c (x_draw_relief_rect, x_draw_box_rect, x_update_cursor):
3562         * xmenu.c (unuse_menu_items, digest_single_submenu):
3563         * xfns.c (x_put_x_image):
3564         * xdisp.c (message2_nolog, set_message):
3565         * undo.c (record_point):
3566         * terminfo.c (tparam):
3567         * syntax.c (scan_sexps_forward):
3568         * scroll.c (calculate_scrolling, calculate_direct_scrolling):
3569         * composite.c (update_compositions):
3570         * cm.c (calccost, cmgoto):
3571         * charset.c (c_string_width): Declare all args (per C99).
3573         * frame.h (get_specified_cursor_type, get_window_cursor_type): Declare.
3575         * lisp.h (get_specified_cursor_type, get_window_cursor_type):
3576         Don't declare.
3578         * emacs.c (main) [!VMS]: Avoid third arg.
3580         * fns.c (Fcopy_sequence): Doc fix.
3581         (Fmap_char_table): Cast `call2'.
3583 2002-11-14  Francesco Potorti`  <pot@gnu.org>
3585         * s/sol2-8.h: New file.
3587 2002-11-14  Kim F. Storm  <storm@cua.dk>
3589         * buffer.c (syms_of_buffer) <mode-line-format>: Document symbol
3590         dependency on `risky-local-variable' and the :propertize form.
3592 2002-11-12  Stefan Monnier  <monnier@cs.yale.edu>
3594         * fns.c (Fmap_char_table): Don't use map_char_table's function arg.
3596         * syntax.c (scan_sexps_forward): Undo last patch.
3597         Use a more obvious fix: check eob before updating the syntax table.
3599 2002-11-09  Stefan Monnier  <monnier@cs.yale.edu>
3601         * syntax.c (scan_sexps_forward): Update syntax table before reading
3602         a char rather than after so we don't update the table past eob.
3604 2002-11-09  Dave Love  <fx@gnu.org>
3606         * buffer.c (Fset_buffer_major_mode): Fix last change.
3608         * regex.c (regexec): Fix pmatch declaration.
3610         * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
3612         * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
3613         to self-inserting characters.
3614         (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
3616         * coding.c (Vtranslation_table_for_input): New.
3617         (syms_of_coding): DEFVAR it.
3619 2002-11-08  Juanma Barranquero  <lektu@terra.es>
3621         * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
3622         window.
3624 2002-11-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3626         * process.c (Fformat_network_address): Remove unused locals p,
3627         cp, and i.
3629 2002-11-06  Dave Love  <fx@gnu.org>
3631         * buffer.c (Qset_buffer_major_mode_hook): New.
3632         (Fset_buffer_major_mode): Use it.
3634 2002-11-06  Richard M. Stallman  <rms@gnu.org>
3636         * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
3637         and stop_polling.
3639         * process.c (wait_reading_process_input):
3640         Test POLLING_PROBLEM_IN_SELECT, not hpux.
3641         Avoid initialization for auto Lisp_Object var.
3643         * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
3645         * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
3647 2002-11-05  Richard M. Stallman  <rms@gnu.org>
3649         * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
3651         * callint.c (Fcall_interactively): New local filter_specs.
3652         (Fcall_interactively): Check for progn as well as let.
3653         Add a gcpro.
3654         (Qprogn): New variable.
3655         (syms_of_callint): Staticpro and init Qprogn.
3657 2002-11-04  John Paul Wallington  <jpw@shootybangbang.com>
3659         * lread.c (Feval_buffer): Doc fix.
3661 2002-11-04  Dave Love  <fx@gnu.org>
3663         * keyboard.c (read_char): Always translate iff
3664         Vkeyboard_translate_table is a char table and c is valid.
3666         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
3667         and fix C types.
3669 2002-11-03  Stefan Monnier  <monnier@cs.yale.edu>
3671         * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
3673         * editfns.c (get_pos_property): Don't hardcode Qfield.
3675         * keyboard.c (adjust_point_for_property): Handle `display' prop on
3676         overlays.  Also handle `invisible' prop.
3678 2002-11-02  Stefan Monnier  <monnier@cs.yale.edu>
3680         * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
3681         (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
3683 2002-11-01  Andreas Schwab  <schwab@suse.de>
3685         * editfns.c (Fmessage): Revert last change to properly handle %%.
3687 2002-11-01  Stefan Monnier  <monnier@cs.yale.edu>
3689         * xmenu.c (unuse_menu_items): New fun.
3690         (menu_items_inuse): New var.
3691         (syms_of_xmenu): Initialize it.
3692         (init_menu_items): Use it to detect re-entrance.
3693         (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
3694         (Fx_popup_menu): Remove spurious XSETFRAME.
3696         * editfns.c (find_field): Make an exception for nil fields.
3698 2002-11-01  Dave Love  <fx@gnu.org>
3700         * m/gec63.h: Deleted.
3702 2002-10-31  Dave Love  <fx@gnu.org>
3704         * xterm.c (XTread_socket): Fix last change.
3705         (xaw_scroll_callback): Cast call_data to long to avoid warning.
3707 2002-10-31  Stefan Monnier  <monnier@cs.yale.edu>
3709         * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
3711 2002-10-30  Stefan Monnier  <monnier@cs.yale.edu>
3713         * editfns.c (overlays_around, get_pos_property): New funs.
3714         (find_field): Use them.
3715         Also be careful not to modify POS before its last use.
3716         (Fmessage): Don't Fformat if there's nothing to format.
3718 2002-10-30  Dave Love  <fx@gnu.org>
3720         * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
3721         [HAVE_PTY_H]; Include pty.h.
3723         * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
3725         * xterm.c (Qeql): Declare.
3726         (Vx_keysym_table): New.
3727         (syms_of_xterm): Initialize it.
3728         (XTread_socket): Use it.  Deal with ASCII keysyms.
3729         (XSetIMValues) [HAVE_X11R6]: Prototype.
3731         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
3732         (lispy_kana_keys): Comment out.
3733         (make_lispy_event) [XK_kana_A]: Comment out.
3734         (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
3735         Fix sprintf call.
3737         * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
3738         regexp.h change).
3739         (TERMINFO, LIBS_TERMCAP): Define.
3741         * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
3742         (bcmp): Define conditional on HAVE_BCMP.
3743         (NO_SIOCTL_H): Don't define.
3744         (TIOCSIGSEND): Don't make conditional on IRIX6.
3746         * s/sol2-5.h: Don't include strings.h.
3747         (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
3749         * s/irix6-0.h (IRIX6): Don't define.
3750         (bcopy, bcmp, bzero): Don't undef.
3752         * s/irix6-5.h: Don't include strings.h.
3753         (IRIX6): Don't define.
3754         (bcopy, bcmp, bzero): Don't undef.
3756         * syntax.c (Fforward_comment): Doc fix.
3758 2002-10-29  Kim F. Storm  <storm@cua.dk>
3760         * process.c (Fsignal_process): Allow PROCESS to be specified by
3761         name in addition to pid (as integer or string).
3763 2002-10-28  Harald Maier  <Harald.Maier.BW@t-online.de>  (tiny change)
3765         * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
3766         environments.
3768 2002-10-27  Kim F. Storm  <storm@cua.dk>
3770         * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
3772         * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
3774         * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
3776         * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
3778 2002-10-26  Richard M. Stallman  <rms@gnu.org>
3780         * editfns.c (Fformat): Detect invalid format letters for floats.
3782 2002-10-25  Kenichi Handa  <handa@m17n.org>
3784         * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
3785         (x_set_title): Likewise.
3787 2002-10-25  Juanma Barranquero  <lektu@terra.es>
3789         * macgui.h:
3790         * w32gui.h: Remove definition of XColor.
3792         * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
3794 2002-10-24  Kim F. Storm  <storm@cua.dk>
3796         * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
3797         Callers changed (supply dummy arg).
3799         * lisp.h (get_window_cursor_type): Update prototype.
3801         * w32term.c (x_display_and_set_cursor): Get active_cursor from
3802         get_window_cursor_type to track system caret.
3804 2002-10-24  Kim F. Storm  <storm@cua.dk>
3806         * process.c (Fformat_network_address): New function.
3807         (syms_of_process): Defsubr it.
3808         (list_processes_1): Use it to format :local/:remote address if
3809         service/host is not set; before emacs would crash in that case.
3810         (Fmake_network_process): Don't use Ffind_operation_coding_system
3811         to setup coding system if host or service is not set.
3813 2002-10-23  Juanma Barranquero  <lektu@terra.es>
3815         Patch suggested by Jay Finger <jay_finger@hotmail.com>.
3817         * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
3818         COLORREF.
3820         * macgui.h:
3821         * w32gui.h: Add definition of XColor.
3823         * macfns.c:
3824         * w32fns.c:
3825         * xfaces.c: Remove definition of XColor.
3827 2002-10-22  Stefan Monnier  <monnier@cs.yale.edu>
3829         * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
3831         * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
3832         Only ignore truly dedicated windows.  For UNSHOW_BUFFER, delete the
3833         window if it is dedicated.
3834         (Fshrink_window): Add preserve_before as was done for enlarge_window.
3835         (Vspecial_display_function): Update docstring.
3837         * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
3838         (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
3839         (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
3841 2002-10-21  Stefan Monnier  <monnier@cs.yale.edu>
3843         * casefiddle.c (casify_region): Don't treat a prefix char as part
3844         of a word when at the beginning.
3846 2002-10-17  Juanma Barranquero  <lektu@terra.es>
3848         * lread.c (syms_of_lread): Fix typos.
3850 2002-10-17  Dave Love  <fx@gnu.org>
3852         * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
3854 2002-10-16  Richard M. Stallman  <rms@gnu.org>
3856         * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
3858 2002-10-14  Juanma Barranquero  <lektu@terra.es>
3860         * w16select.c (syms_of_win16select): Fix docstring for
3861         `selection-coding-system'.
3863         * w32select.c (syms_of_w32select): Likewise.
3865 2002-10-14  Stefan Monnier  <monnier@cs.yale.edu>
3867         * syntax.c (scan_lists): Don't get fooled by a symbol ending with
3868         a backslash-quoted char.
3869         (scan_lists, scan_sexps_forward): Pacify the compiler.
3871 2002-10-13  Richard M. Stallman  <rms@gnu.org>
3873         * window.c (window_scroll): Set immediate_quit.
3875         * print.c (print): When backquote form is the car of a list,
3876         output in old style.  Use old_backquote_output to output all
3877         comma forms inside it in old style too.
3879         * buffer.h (struct buffer): Move `undo_list' down below `name'.
3881 2002-10-11  Markus Rost  <rost@math.ohio-state.edu>
3883         * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
3884         batch mode).
3886         * lread.c (Fload): Doc fix (load-suffixes).
3888 2002-10-10  Steven Tamm  <steventamm@mac.com>
3890         * macterm.c (syms_of_macterm, mac_get_mouse_btn):
3891         Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
3892         Also switch the default to Qnil from Qt.
3894 2002-10-08  Kenichi Handa  <handa@m17n.org>
3896         * coding.c (code_convert_region): When we need more GAP for
3897         conversion, pay attention to the case that coding->produced is not
3898         greater than coding->consumed.
3900 2002-10-07  Richard M. Stallman  <rms@gnu.org>
3902         * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
3904 2002-10-06  Andrew Choi  <akochoi@shaw.ca>
3906         * macmenu.c (mac_menu_show): Add j to count menu items; match
3907         menu_item_selection to it to find selected item.
3909 2002-10-06  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3911         * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
3912         cases.  The correct fix is to pass ReparentNotify to Xt.
3913         The shell widget interprets ConfigureNotify differently depending
3914         on if it has been reparented or not.
3916 2002-10-05  Markus Rost  <rost@math.ohio-state.edu>
3918         * editfns.c (Fformat_time_string): Doc fix.
3920 2002-10-05  John Paul Wallington  <jpw@shootybangbang.com>
3922         * fns.c (Flength): Doc fix.
3924 2002-10-04  Stefan Monnier  <monnier@cs.yale.edu>
3926         * keyboard.c (keyremap): New struct.
3927         (read_key_sequence): Use it: globally replace keytran_foo with
3928         keytran.foo and fkey_foo with fkey.foo.  Rename temp vars
3929         keytran_next and fkey_next to just `next'.
3931 2002-10-04  Steven Tamm  <steventamm@mac.com>
3933         * macterm.c (keycode_to_xkeysym_table): Change return to be
3934         treated like an X keysym.
3936 2002-10-03  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
3938         * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
3939         and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
3940         This is to also handle x/y changes that occur because of a resize.
3942 2002-10-02  John Paul Wallington  <jpw@shootybangbang.com>
3944         * frame.c (Vdelete_frame_functions): New variable.
3945         (syms_of_frame): Initialize and defvar it.
3946         (Fdelete_frame): Use it instead of delete-frame-hook.  Don't run
3947         it when frame's `tooltip' parameter is non-nil.
3949         * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
3951         * w32fns.c (x_create_tip_frame): Likewise.
3953         * macfns.c (x_create_tip_frame): Likewise.
3955 2002-09-30  Kenichi Handa  <handa@m17n.org>
3957         * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
3958         -1 before calling ccl_driver.
3960         * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
3961         Only when it is non-nil, handle composition sequence.
3962         (setup_coding_system) <0>: Don't force composition handling.
3964         * Makefile.in (lisp, shortlisp): Add utf-16.elc
3966 2002-09-29  Richard M. Stallman  <rms@gnu.org>
3968         * search.c (Freplace_match): Adjust match data for the substitution
3969         just made in the buffer.
3971         * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
3972         (redisplay_internal): Use them.  Do RESUME_POLLING at end of function.
3974 2002-09-27  Richard M. Stallman  <rms@gnu.org>
3976         * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
3977         (read_char): Use them.  Do all exits thru the end of the function.
3979 2002-09-27  Kenichi Handa  <handa@etl.go.jp>
3981         * xfaces.c (try_font_list): Pay attention to the case that FAMILY
3982         is nil.
3984 2002-09-26  Richard M. Stallman  <rms@gnu.org>
3986         * regex.h (__restrict_arr): Don't define if already defined.
3988         * coding.c (run_pre_post_conversion_on_str):
3989         Save and restore Vdeactivate_mark.
3991 2002-09-26  John Paul Wallington  <jpw@shootybangbang.com>
3993         * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
3995 2002-09-26  Kenichi Handa  <handa@etl.go.jp>
3997         * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY.  If it is
3998         nonzero, try face's family at first.  Otherwise try FAMILY at first.
3999         (choose_face_font): If C is a single byte char or latin-1, call
4000         try_font_list with PREFER_FACE_FAMILY 1.
4002 2002-09-21  Richard M. Stallman  <rms@gnu.org>
4004         * window.c (select_window_1): Don't select frame.
4005         Set frame's selected window only when frame itself is selected.
4006         (Fselect_window): Doc fix.
4008 2002-09-18  Kim F. Storm  <storm@cua.dk>
4010         * process.c (make-network-process): Doc fix (there is no
4011         network-server-log-function hook).
4013 2002-09-18  Richard M. Stallman  <rms@gnu.org>
4015         * print.c (print): Clear out the unused parts of Vprint_number_table.
4016         (syms_of_print): Doc fix for `print-number-table'.
4018         * unexelf.c (unexec): Undo previous change.
4020 2002-09-17  Andreas Schwab  <schwab@suse.de>
4022         * m/alpha.h [LINUX]: Don't define DATA_START.
4024 2002-09-16  Dave Love  <fx@gnu.org>
4026         * unexelf.c (unexec): Deal with .got, reinstating change from
4027         25-08-1999.
4029 2002-09-13  Richard M. Stallman  <rms@gnu.org>
4031         * s/sol2-6.h (UNEXEC): Comment out definition.
4033         * unexsol.c (unexec): Don't downcase first letter of error msg.
4035         * xfaces.c (Fcolor_supported_p): Just one arg is required.
4037 2002-09-12  Markus Rost  <rost@math.ohio-state.edu>
4039         * unexsol.c: Include buffer.h, charset.h, coding.h.
4041 2002-09-11  Richard M. Stallman  <rms@gnu.org>
4043         * unexsol.c: Don't use report_file_error; do it by hand
4044         using dlerror.
4046         * process.c (wait_reading_process_input, both versions):
4047         Before calling turn_on_atimers, call stop_polling.
4049         * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
4051         * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
4052         we go to too_near_end, call clear_glyph_matrix.
4053         (redisplay_window): After make_cursor_line_fully_visible,
4054         call clear_glyph_matrix and bypass `goto done'.
4056         * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
4057         and we have non-toolkit scroll bars, return nil for scroll-bar-width.
4059 2002-09-10  Richard M. Stallman  <rms@gnu.org>
4061         * fileio.c (Fdo_auto_save): Catch error making directory.
4062         Only call push_message if we need to.
4063         At the same time, make an unwind-protect to pop it.
4064         Rename local message_p to old_message_p.
4065         (do_auto_save_make_dir, do_auto_save_eh): New functions.
4066         (do_auto_save_unwind): Don't call pop_message.
4068         * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
4070         * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
4072         * alloc.c (Fgarbage_collect): Use pop_message_unwind.
4074         * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
4076 2002-09-10  Stefan Monnier  <monnier@cs.yale.edu>
4078         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
4079         (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
4080         (re_match_2_internal): Be more careful with infinite loops.
4082 2002-09-10  Kim F. Storm  <storm@cua.dk>
4084         * macros.c (end_kbd_macro): New function.
4085         (Fend_kbd_macro): Use it.
4087         * macros.h (end_kbd_macro): Declare extern.
4089         * keyboard.c (Fdiscard_input): If defining keyboard macro,
4090         end and save it instead of discarding it.
4092 2002-09-09  Markus Rost  <rost@math.ohio-state.edu>
4094         * s/sol2-6.h: Fix typo.  Add comment.
4096 2002-09-09  Richard M. Stallman  <rms@gnu.org>
4098         * regex.c (regnum_t): Use signed int, not unsigned int.
4100         * s/sol2-6.h: New file.
4102         * s/sol2-5.h (UNEXEC): Definition deleted.
4104 2002-09-08  Kim F. Storm  <storm@cua.dk>
4106         * macros.c (executing_macro_index): Change type to EMACS_INT.
4107         (syms_of_macros): DEFVAR_INT it  (needed by kmacro).
4109         * macros.h (executing_macro_index): Change type to EMACS_INT.
4111 2002-09-06  Richard M. Stallman  <rms@gnu.org>
4113         * casetab.c (set_case_table): Make canon table point to eqv table.
4115 2002-09-06  Juanma Barranquero  <lektu@terra.es>
4117         * coding.c (syms_of_coding): Fix spacing.
4119         * composite.c (Fcompose_region_internal)
4120         (Fcompose_string_internal): Likewise.
4122         * data.c (Flsh): Likewise.
4124         * fontset.c (Fset_fontset_font): Likewise.
4126         * macfns.c (Fx_server_max_request_size): Likewise.
4128         * w16select.c (syms_of_win16select): Likewise.
4130         * w32select.c (syms_of_w32select): Likewise.
4132         * xselect.c (syms_of_xselect): Likewise.
4134 2002-09-05  Richard M. Stallman  <rms@gnu.org>
4136         * regex.c (set_image_of_range_1): In no-TRANSLATE case,
4137         call EXTEND_RANGE_TABLE and return a proper value.
4138         (set_image_of_range): Don't call set_image_of_range_1
4139         if no TRANSLATE or if range includes all of Latin-1.
4140         Only call it for the Latin-1 part of the range.
4141         For other cases, make two separate ranges,
4142         one for the original specified characters and one for
4143         their case-conversions.
4145 2002-09-04  Richard M. Stallman  <rms@gnu.org>
4147         * s/sol2-5.h (UNEXEC): Use unexsol.o.
4149         * window.c (displayed_window_lines): Correct for one-off bug
4150         in HEIGHT on non-window displays.
4152         * regex.c (set_image_of_range_1): New function.
4153         (set_image_of_range): Use set_image_of_range_1 for Latin-1.
4154         Return a value to indicate running out of memory.
4155         (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
4156         (extend_range_table_work_area): New subroutine.
4157         (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
4158         Different calling conventions, and used from set_image_of_range{,_1}.
4159         (IMMEDIATE_QUIT_CHECK): Definitions moved.
4161 2002-09-04  Juanma Barranquero  <lektu@terra.es>
4163         * makefile.w32-in: All dependencies updated.
4165 2002-09-01  Richard M. Stallman  <rms@gnu.org>
4167         * unexsol.c: New file.
4169         * xfns.c (Qbox): Declare external, don't define.
4171         * xdisp.c (redisplay_window) <force-start case>:
4172         If point is on semi-visible last line, reposition
4173         it at previous line.
4175         * alloc.c (display_malloc_warning): Use display-warning.
4176         (malloc_warning_1): Function deleted.
4178         * alloc.c [ALLOC_DEBUG]: #undef INLINE.
4180         * lread.c (read1): Handle #! by skipping the line.
4182 2002-08-31  Richard M. Stallman  <rms@gnu.org>
4184         * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
4185         Don't include LDFLAGS.
4186         (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
4188 2002-08-31  Eli Zaretskii  <eliz@is.elta.co.il>
4190         * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
4191         member of x_display_info unless we compile for some window system.
4193 2002-08-31  Kim F. Storm  <storm@cua.dk>
4195         * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
4196         (get_window_cursor_type): Don't use them.
4197         (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
4199 2002-08-30  Kenichi Handa  <handa@etl.go.jp>
4201         * xdisp.c (get_next_display_element): Fix previous change.
4203 2002-08-30  Andrew Choi  <akochoi@shaw.ca>
4205         * macterm.c (expose_overlaps): New function (merge code from xterm.c).
4206         (expose_window): Use it to fix the display of overlapping
4207         rows (merge code from xterm.c).
4209         * macfns.c (Qbox): Add extern declaration.
4211 2002-08-30  Juanma Barranquero  <lektu@terra.es>
4213         * w32fns.c (Qbox): Make extern.
4214         (syms_of_w32fns): Remove initialization of Qbox.
4216 2002-08-30  Rune Kleveland  <runekl@viewpoint.no>  (tiny change)
4218         * xfns.c (Fx_open_connection): Fix error message.
4220 2002-08-30  Kim F. Storm  <storm@cua.dk>
4222         The following changes consolidates the handling of the cursor
4223         type in xdisp.c, moving duplicate code and functionality from
4224         xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
4226         * frame.h (enum text_cursor_kinds): Consolidated here.
4227         Added DEFAULT_CURSOR value.
4228         (struct frame) <desired_cursor, cursor_width>
4229         <blink_off_cursor, blink_off_cursor_width>: New fields.
4230         Consolidated from output_x, output_w32 and output_mac structs.
4231         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
4232         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
4234         * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
4235         Variables consolidated here.
4236         (Valternate_cursor_type, Qalternate_cursor_type): New variables.
4237         (Vcursor_in_non_selected_windows): Renamed from
4238         cursor_in_non_selected_windows and changed to Lisp_Object.
4239         (syms_of_xdisp): Define and staticpro new and moved variables.
4240         (get_specified_cursor_type): Renamed from x_specified_cursor_type;
4241         consolidated here.  Recognize Qhollow setting.
4242         (set_frame_cursor_types): New function to set frame cursor types
4243         based on the frame parameters.
4244         (get_window_cursor_type): New function to calculate new cursor
4245         type and width for the specified window.  Based on duplicated
4246         code consolidated here.
4247         Enhancements: cursor-in-non-selected-windows may be a cursor type,
4248         check buffer-local alternate-cursor-type and blink-cursor-alist
4249         before using built-in blink off methods.
4251         * dispextern.h (cursor_in_non_selected_windows): Extern removed.
4253         * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
4254         (get_specified_cursor_type, get_window_cursor_type)
4255         (set_frame_cursor_types): Added prototypes.
4257         * macfns.c (x_specified_cursor_type): Removed.
4258         (x_set_cursor_type): Use set_frame_cursor_types.
4259         (Qbar, Qbox): Removed.
4260         (syms_of_macfns): Don't intern or staticpro them.
4262         * macterm.c (x_specified_cursor_type): Remove prototype.
4263         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
4264         (x_display_and_set_cursor): Use get_window_cursor_type.
4265         Remove unused local variables cursor_non_selected, active_cursor.
4266         Redraw cursor if hbar cursor width changes.
4267         (make_mac_frame): Set FRAME_DESIRED_CURSOR.
4269         * macterm.h (enum text_cursor_kinds): Removed.
4270         (struct output_mac) <current_cursor, desired_cursor, cursor_width>
4271         <blink_off_cursor, blink_off_cursor_width>: Members removed.
4272         (FRAME_DESIRED_CURSOR): Macro removed.
4274         * w32fns.c (Vblink_cursor_alist): Removed.
4275         (Qbar, Qhbar, Qbox, Qhollow): Removed.
4276         (syms_of_w32fns): Don't intern, staticpro, or define them.
4277         (x_specified_cursor_type): Removed.
4278         (x_set_cursor_type): Use set_frame_cursor_types.
4280         * w32term.c (x_specified_cursor_type): Remove prototype.
4281         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
4282         (x_display_and_set_cursor): Use get_window_cursor_type.
4283         Remove unused local variables cursor_off_state.
4284         Redraw cursor if hbar cursor width changes.
4285         Changed all occurrences of w32_highlight_frame to x_highlight_frame.
4287         * w32term.h (enum text_cursor_kinds): Removed.
4288         (struct output_w32) <current_cursor, desired_cursor, cursor_width>
4289         <blink_off_cursor, blink_off_cursor_width>: Members removed.
4290         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
4291         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
4292         (struct w32_display_info) <x_highlight_frame>: Renamed member from
4293         w32_highlight_frame.
4295         * xfns.c (Vblink_cursor_alist): Removed.
4296         (Qbar, Qhbar, Qbox, Qhollow): Removed.
4297         (syms_of_xfns): Don't intern, staticpro, or define them.
4298         (x_specified_cursor_type): Removed.
4299         (x_set_cursor_type): Use set_frame_cursor_types.
4301         * xterm.c (x_specified_cursor_type): Remove prototype.
4302         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
4303         (x_display_and_set_cursor): Use get_window_cursor_type.
4304         Remove unused local variables cursor_off_state.
4305         Redraw cursor if hbar cursor width changes.
4307         * xterm.h (enum text_cursor_kinds): Removed.
4308         (struct output_x) <current_cursor, desired_cursor, cursor_width>
4309         <blink_off_cursor, blink_off_cursor_width>: Members removed.
4310         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
4311         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
4312         (x_specified_cursor_type): Remove prototype.
4314 2002-08-28  Richard M. Stallman  <rms@gnu.org>
4316         * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
4317         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
4318         (Vblink_cursor_alist): New variable.
4319         (syms_of_w32fns): Initialize and defvar it.
4320         (x_specified_cursor_type): Recognize Qbox for filled box.
4321         Exceptions are hollow boxes.
4322         (Qbox, Qhollow): New variables.
4323         (syms_of_w32fns): Initialize and staticpro them.
4325         * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
4326         New macros.
4327         (struct w32_output): New fields blink_off_cursor,
4328         blink_off_cursor_width.
4329         (FRAME_CURSOR_WIDTH): New macro.
4331         * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
4332         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
4334         * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
4335         for bar cursor.
4337         * w32term.c (expose_overlaps): New function.
4338         (expose_window): Use it to fix the display of overlapping rows.
4340 2002-08-28  Simon Josefsson  <jas@extundo.com>
4342         * xfns.c (Fx_open_connection): Improve help when X connection
4343         fails, xhost is insecure and xauth is better.
4345 2002-08-28  Juanma Barranquero  <lektu@terra.es>
4347         * makefile.w32-in: Add missing dependencies on w32term.h and
4348         composite.h.
4350         * emacs.c (USAGE1): Add missing newline.
4352 2002-08-27  Andrew Choi  <akochoi@shaw.ca>
4354         * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
4356 2002-08-27  Richard M. Stallman  <rms@gnu.org>
4358         * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
4359         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
4360         (Vblink_cursor_alist): New variable.
4361         (syms_of_xfns): Initialize and defvar it.
4362         (x_specified_cursor_type): Recognize Qbox for filled box.
4363         Exceptions are hollow boxes.
4364         (Qbox, Qhollow): New variables.
4365         (syms_of_xfns): Initialize and staticpro them.
4367         * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
4368         New macros.
4369         (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
4371         * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
4372         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
4374         * emacs.c (main): Handle --script.
4375         (USAGE1): Mention --script.
4376         (standard_args): Define sort order for --script.
4378 2002-08-27  Gerd Moellmann  <gerd.moellmann@t-online.de>
4380         * xdisp.c (redisplay_updating_p): Variable removed.
4381         (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
4382         New variables.
4383         (init_iterator): Don't free realized faces if
4384         inhibit_free_realized_faces is set.
4385         (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
4386         (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
4387         initialize Qinhibit_free_realized_faces.
4389         * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
4390         when iterator is adding glyphs to a glyph matrix.
4392 2002-08-27  Kenichi Handa  <handa@etl.go.jp>
4394         * xdisp.c (get_next_display_element): In unibyte case, don't use
4395         octal form for such eight-bit characters that can be converted to
4396         multibyte char.
4398 2002-08-26  Kim F. Storm  <storm@cua.dk>
4400         * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
4401         and background colors.  From Joe Buehler (tiny change).
4403 2002-08-26  Miles Bader  <miles@gnu.org>
4405         * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
4407 2002-08-25  Andrew Choi  <akochoi@shaw.ca>
4409         * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
4410         defined instead of MAC_OSX.
4412         * s/darwin.h (select): Define select to sys_select only if
4413         HAVE_CARBON is defined.
4414         (HAVE_WORKING_VFORK): #undef it.  Define vfork to fork.
4415         (DONT_REOPEN_PTY): #def it.
4417         * macterm.c (XTread_socket): Remove code to call
4418         SendEventToEventTarget for keys with command modifiers when
4419         mac_command_key_is_meta is nil.
4421 2002-08-24  Andreas Schwab  <schwab@suse.de>
4423         * eval.c (Fdefvar): Fix last change.
4425 2002-08-23  Richard M. Stallman  <rms@gnu.org>
4427         * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
4428         Record variables in load history as (defvar . VAR).
4429         (Fdefvar): Don't record in load history if no initial value.
4430         (Qdefvar): New variable.
4431         (syms_of_eval): Init and staticpro it.
4433         * lread.c (syms_of_lread): Doc fix.
4434         (build_load_history): Use Fmember to see if a definition
4435         is already in the Vload_history element.
4437         * process.c (Fstart_process): Remove /: from program name.
4439         * emacs.c (decode_env_path): Don't add /: if file name handler
4440         has a `safe-magic' property.
4442         * callproc.c (Fcall_process): Remove /: from program name.
4444 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
4446         * regex.c (PATFETCH): Remove the translating fetch.
4447         (PATFETCH_RAW): Rename to PATFETCH.
4448         (set_image_of_range): New fun.
4449         (SET_RANGE_TABLE_WORK_AREA): Use it.
4450         (regex_compile): Don't translate the pattern chars so eagerly.
4451         Only do it when inserting an `exactn' bytecode or when handling
4452         a char-range.
4453         (mutually_exclusive_p): Avoid empty statement.
4455 2002-08-22  Kim F. Storm  <storm@cua.dk>
4457         * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
4458         end up on a partially visible line; this reverts a specific part
4459         of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
4460         display error which has been reported several times now.
4461         However it introduces the problem that changes was supposed to fix.
4462         See my comments in the source if you want to debug this further.
4464 2002-08-20  Kenichi Handa  <handa@etl.go.jp>
4466         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
4468 2002-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
4470         * msdos.c (croak): Add `void' to definition.
4472         * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
4473         Don't define them, they are defined in msdos.c.
4475         * mem-limits.h [MSDOS]: Declare etext.
4477         * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
4478         `const' since CORRECT_DIR_SEPS modifies its target.
4480 2002-08-19  Kim F. Storm  <storm@cua.dk>
4482         * keyboard.c (Fclear_this_command_keys): Added optional arg
4483         KEEP-RECORD to avoid clearing lossage when we just want to clear
4484         the current key sequence (kmacro needs this).
4486 2002-08-19  Kenichi Handa  <handa@localhost>
4488         * composite.c (run_composition_function): Call FUNC if it is fboundp.
4490         * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
4491         cons, return Qnil.
4493 2002-08-17  Richard M. Stallman  <rms@gnu.org>
4495         * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
4497         * sysdep.c [!VMS]: Include sys/files.h.
4499         * editfns.c (save_restriction_restore): Defend from unchained marker.
4501         * buffer.c (overlays_at): Handle extending vec uniformly.
4502         (overlays_in): Handle extending vec from length 0 as in overlays_at.
4504 2002-08-15  Andrew Choi  <akochoi@shaw.ca>
4506         * mac.c (init_mac_osx_environment): New function.
4508         * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
4510 2002-08-14  Kim F. Storm  <storm@cua.dk>
4512         * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
4513         executing macro before appending to it (when used from Lisp).
4514         (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
4515         which is called prior to each iteration of macro (for kmacro.el).
4516         (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
4518         * lisp.h (Fexecute_kbd_macro): Update prototype.
4520         * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
4522 2002-08-14  Kenichi Handa  <handa@etl.go.jp>
4524         * xselect.c (QUTF8_STRING): New variable.
4525         (symbol_to_x_atom): Pay attention to QUTF8_STRING.
4526         (x_atom_to_symbol): Likewise.
4527         (x_get_local_selection): New argument local_request.  If it is
4528         nonzero, call handler_fn with the second arg nil.
4529         (x_handle_selection_request): Call x_get_local_selection with
4530         local_request 0.
4531         (lisp_data_to_selection_data): Don't encode the string here.
4532         (Fx_get_selection_internal): Call x_get_local_selection with
4533         local_request 1.
4534         (syms_of_xselect): Intern and staticpro QUTF8_STRING.
4536         * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
4538         * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
4540 2002-08-13  Richard M. Stallman  <rms@gnu.org>
4542         * minibuf.c (Fminibufferp): New function.
4543         (syms_of_minibuf): Defsubr it.
4544         (Fminibuffer_prompt_end): Handle non-minibuffers specially.
4546 2002-08-13  Gerd Moellmann  <gerd.moellmann@t-online.de>
4548         * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
4550 2002-08-12  Richard M. Stallman  <rms@gnu.org>
4552         * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
4553         [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
4554         (WSTOPSIG, WTERMSIG): Define each one independently if not defined
4555         already.
4557         * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
4559 2002-08-11  Andrew Choi  <akochoi@shaw.ca>
4561         * macterm.c (XTmouse_position): Check wp with is_emacs_window.
4562         (Vmac_pass_command_to_system): New variable.
4563         (Vmac_pass_control_to_system): New variable.
4564         (do_mouse_moved): Check wp with is_emacs_window.
4565         (XTread_socket): Check window_ptr with is_emacs_window.
4566         Call FrontNonFloatingWindow instead of FrontWindow.  Send keydown
4567         events back to Mac Toolbox for processing, depending on values of
4568         Vmac_pass_command_to_system and Vmac_pass_control_to_system.
4569         (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
4570         Vmac_pass_control_to_system.
4572 2002-08-10  Kenichi Handa  <handa@etl.go.jp>
4574         * coding.c (unencodable_char_position): New function.
4575         (Funencodable_char_position): New function.
4576         (syms_of_coding): Defsubr Funencodable_char_position.
4578 2002-08-10  Andrew Choi  <akochoi@shaw.ca>
4580         * mac.c (sys_select) [MAC_OSX]: New function.
4582         * macterm.c (MakeMeTheFrontProcess): New function.
4583         (mac_initialize): Call MakeMeTheFrontProcess.
4585         * s/darwin.h: Define select to sys_select.
4587 2002-08-09  Richard M. Stallman  <rms@gnu.org>
4589         * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
4591 2002-08-09  Gerd Moellmann  <gerd.moellmann@t-online.de>
4593         * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
4594         end of the buffer.
4596 2002-08-08  Ken Raeburn  <raeburn@mit.edu>
4598         * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int mixup.
4600         * puresize.h (BASE_PURESIZE): Increase to 910000.
4602 2002-08-08  Kenichi Handa  <handa@etl.go.jp>
4604         * coding.c (Ffind_operation_coding_system): For write-region, if
4605         VISIT is a filename, make it the target.
4607 2002-08-07  Richard M. Stallman  <rms@gnu.org>
4609         * alloc.c (mark_object): Detect long lists for debugging.
4610         (mark_object_loop_halt): New variable.
4612         * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
4614         * data.c (Fmake_variable_frame_local): Doc fix.
4616 2002-08-01  David Ponce  <david@dponce.com>
4618         * w32menu.c (local_heap, local_alloc, local_free): New macros.
4619         (malloc_widget_value, free_widget_value)
4620         (w32_free_submenu_strings): Use them.
4622         (push_submenu_start, push_submenu_end, push_left_right_boundary)
4623         (push_menu_pane, push_menu_item, single_keymap_panes)
4624         (single_menu_item, Fx_popup_menu, menubar_selection_callback)
4625         (single_submenu, set_frame_menubar)
4626         (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
4628         (Fx_popup_menu): Don't show pop up menu until preceding one is
4629         actually cleaned up.  Moved UNGCPRO outside #ifdef HAVE_MENUS block.
4631         * w32menu.c: Changes adapted from xmenu.c
4632         (set_frame_menubar): First parse all submenus,
4633         then make widget_value trees from them.
4634         Don't allocate any widget_value objects
4635         until we are done with the parsing.
4636         (parse_single_submenu): New function.
4637         (digest_single_submenu): New function.
4638         (single_submenu): Function deleted, replaced by those two.
4640 2002-08-04  Andrew Choi  <akochoi@shaw.ca>
4642         * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
4643         returns a valid window pointer before proceeding for keyDown and
4644         autoKey events.
4646 2002-08-03  Andrew Choi  <akochoi@shaw.ca>
4648         * macterm.c (USE_CARBON_EVENTS): New macro.
4649         (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
4650         (x_iconify_frame): Call CollapseWindow.
4651         (Vmac_reverse_ctrl_meta): New variable.
4652         (Vmac_wheel_button_is_mouse_2): New variable.
4653         (init_mac_drag_n_drop): New function.
4654         (mac_do_receive_drag): New function.
4655         (mac_handle_service_event): New function.
4656         (init_service_handler): New function.
4657         (mac_to_emacs_modifiers): New function.
4658         (mac_event_to_emacs_modifiers): New function.
4659         (mac_get_mouse_btn): New function.
4660         (mac_convert_event_ref): New function.
4661         (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
4662         SendEventToEventTarget, mac_event_to_emacs_modifiers, and
4663         mac_get_mouse_btn.
4664         (mac_initialize): Call init_mac_drag_n_drop and init_service_handler.
4666         * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
4667         lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
4668         (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
4669         TOOL_BAR_EVENT for MAC_OS as well.
4670         (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
4671         as for WINDOWS_NT.
4672         (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
4674         * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX.
4676 2002-08-03  Gerd Moellmann  <gerd.moellmann@t-online.de>
4678         * xdisp.c (forward_to_next_line_start): Fix a condition that
4679         lead to a newline being skipped.
4681 2002-08-02  Andrew Choi  <akochoi@shaw.ca>
4683         * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
4685 2002-08-01  Richard M. Stallman  <rms@gnu.org>
4687         * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
4689 2002-07-31  Andrew Choi  <akochoi@shaw.ca>
4691         * macfns.c: #undef init_process before #define-ing it.
4693         * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
4694         HAVE_CARBON is defined.
4696 2002-07-31  Richard M. Stallman  <rms@gnu.org>
4698         * xmenu.c (set_frame_menubar): First parse all submenus,
4699         then make widget_value trees from them.
4700         Don't allocate any widget_value objects
4701         until we are done with the parsing.
4702         (parse_single_submenu): New function.
4703         (digest_single_submenu): New function.
4704         (single_submenu): Function deleted, replaced by those two.
4706 2002-07-30  Juanma Barranquero  <lektu@terra.es>
4708         * w32proc.c (syms_of_ntproc): Fix docstring of
4709         `w32-get-true-file-attributes'.
4711 2002-07-28  Richard M. Stallman  <rms@gnu.org>
4713         * s/hpux8.h (HPUX8): Define this before including hpux.h.
4714         (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
4716         * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
4718         * keyboard.c (make_lispy_event):
4719         Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
4720         Explicitly clear up_modifier in event->modifiers.
4722 2002-07-27  Richard M. Stallman  <rms@gnu.org>
4724         * xterm.h (FRAME_CURSOR_WIDTH): New macro.
4726         * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
4727         for bar cursor.
4729 2002-07-26  Kenichi Handa  <handa@etl.go.jp>
4731         * coding.c (detect_coding_iso2022): While checking a byte sequence
4732         for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
4733         it in the normal loop.
4735 2002-07-24  Gerd Moellmann  <gerd.moellmann@t-online.de>
4737         * xterm.c (expose_overlaps): New function.
4738         (expose_window): Use it to fix the display of overlapping rows.
4740         * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
4742 2002-07-23  Ken Raeburn  <raeburn@gnu.org>
4744         * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
4745         since it only depends on XUINT.
4747         * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
4748         EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
4749         PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
4750         Macros deleted.
4752         * mem-limits.h (start_of_data): If DATA_START is defined, prefer
4753         its value over other approaches.
4754         * sysdep.c (start_of_data): Don't define the function if a macro
4755         form has been defined.
4757 2002-07-23  Gerd Moellmann  <gerd.moellmann@t-online.de>
4759         * xdisp.c (redisplay_updating_p): New variable.
4760         (init_iterator): Don't free realized faces when
4761         redisplay_updating_p is set.
4762         (redisplay_internal): Set redisplay_updating_p while updating
4763         the display.
4765 2002-07-23  Richard M. Stallman  <rms@gnu.org>
4767         * editfns.c (Fmessage): Treat "" like nil.
4769 2002-07-23  Kenichi Handa  <handa@etl.go.jp>
4771         * xdisp.c (face_before_or_after_it_pos):
4772         Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
4774 2002-07-22  Juanma Barranquero  <lektu@terra.es>
4776         * callproc.c (init_callproc) [DOS_NT]:
4777         Initialize Vshared_game_score_directory to nil.
4778         (syms_of_callproc) [DOS_NT]: Likewise.
4780 2002-07-22  Gerd Moellmann  <gerd.moellmann@t-online.de>
4782         * xdisp.c (display_line): Replace an abort with xassert.
4784 2002-07-21  Richard M. Stallman  <rms@gnu.org>
4786         * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
4787         and END_UNCHANGED when setting buffer_unchanged_p.
4788         Use current_matrix_up_to_date_p to decide whether to use
4789         try_cursor_movement.
4791         * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
4793         * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
4795         * callproc.c (init_callproc): Set up Vshared_game_score_directory.
4796         Set to nil if dir does not exist.
4797         (syms_of_callproc): Init unconditionally and simply.
4799         * buffer.c (Fbuffer_list): Doc fix.
4801 2002-07-21  Ken Raeburn  <raeburn@gnu.org>
4803         * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
4805         * buffer.c (mmap_realloc): When shrinking, make sure number of
4806         pages to unmap is rounded towards zero.
4808         * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
4809         (XSETINT): Deleted.
4811         * m/att3b.h (XINT): Don't define.
4812         (VALBITS, VALMASK, XTYPE): Deleted.
4813         (DATA_SEG_BITS): Define.
4814         * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
4815         ARRAY_MARK_FLAG): Deleted.
4816         (DATA_SEG_BITS): Define.
4817         * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
4818         (DATA_SEG_BITS): Define.
4820 2002-07-20  Richard M. Stallman  <rms@gnu.org>
4822         * print.c (print_error_message): New args CONTEXT and CALLER.
4823         Calls changed.
4825         * lisp.h (print_error_message): Declare new args.
4827         * keyboard.c (cmd_error_internal): Pass Vsignaling_function
4828         and CONTEXT to print_error_message, don't print them here.
4829         For a Quit, don't use Vsignaling_function.
4830         Call message_log_maybe_newline.
4832         * Makefile.in (xsmfns.o): Don't depend on lisp.h.
4834 2002-07-20  Kim F. Storm  <storm@cua.dk>
4836         * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
4838 2002-07-19  Ken Raeburn  <raeburn@gnu.org>
4840         * bytecode.c (struct byte_stack): Pointers into byte string now
4841         point to const.
4842         * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
4843         const.
4844         * charset.h (BCOPY_SHORT): Source pointer now points to const.
4845         * coding.c (encode_eol, detect_coding, detect_eol):
4846         (decode_coding, encode_coding, detect_coding_system):
4847         Source strings now treated as const.
4848         (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
4849         modify Lisp string contents.
4850         * coding.h (decode_coding, encode_coding, detect_coding,
4851         detect_eol): Declarations updated.
4852         * composite.c (compose_chars_in_text): Treat Lisp string contents
4853         as const.
4854         * dispnew.c (safe_bcopy): Source pointer now points to const.
4855         * lisp.h (STRING_COPYIN): New macro.
4856         (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
4857         (internal_with_output_to_temp_buffer): Declarations updated.
4858         * print.c (temp_output_buffer_setup):
4859         (internal_with_output_to_temp_buffer): Buffer name argument is now
4860         pointer to const.
4861         * sound.c (struct sound_device): Function pointer field "write"
4862         buffer argument now points to const.
4863         (vox_write): Buffer argument points to const.
4864         * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
4865         contents as const.
4866         * sysdep.c (emacs_write): Buffer pointer now const.
4867         * term.c (encode_terminal_code): Buffer pointer now const.
4868         * xfaces.c (may_use_scalable_font_p): Argument now points to const.
4869         (x_face_list_fonts, x_update_menu_appearance):
4870         (hash_string_case_insensitive): Treat Lisp string contents as const.
4872 2002-07-19  Juanma Barranquero  <lektu@terra.es>
4874         * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
4875         (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
4877         * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
4879         * fileio.c (syms_of_fileio): Likewise.
4881 2002-07-18  Richard M. Stallman  <rms@gnu.org>
4883         * data.c (Fdefalias): Doc fix.
4885 2002-07-17  Dave Love  <fx@gnu.org>
4887         * intervals.h (text_property_stickiness): Use P_.
4889         * ccl.c: Remove `emacs' conditionals.
4890         (ccl_backtrace_table): Fix size spec.
4891         (ccl_driver): Fix type errors.
4893 2002-07-16  Ken Raeburn  <raeburn@gnu.org>
4895         * alloc.c (xstrdup, make_string, make_unibyte_string)
4896         (make_multibyte_string, build_string): String pointer args now
4897         point to const.
4898         * charset.c (find_charset_in_text, c_string_width):
4899         (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
4900         * fileio.c (report_file_error):
4901         * insdel.c (copy_text, count_size_as_multibyte, insert_1):
4902         (count_combining_before, count_combining_after, insert_1_both):
4903         (insert, insert_and_inherit, insert_string):
4904         (insert_before_markers, insert_before_markers_and_inherit):
4905         * lread.c (intern, oblookup, hash_string):
4906         * minibuf.c (temp_echo_area_glyphs):
4907         * search.c (fast_c_string_match_ignore_case):
4908         * sysdep.c (emacs_open, set_file_times):
4909         * xfaces.c (xstricmp):
4910         * xdisp.c (store_frame_title, string_char_and_length):
4911         (message_dolog, message2, message2_nolog, set_message): Likewise.
4912         (set_message_1): Cast message string argument to const pointer.
4913         * editfns.c (general_insert_function): Insertion function now
4914         takes pointer to const for input data.
4915         * charset.h (find_charset_in_text, c_string_width):
4916         (parse_str_as_multibyte): Declarations updated.
4917         * dispextern.h (xstricmp): Declaration updated.
4918         * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
4919         (count_size_as_multibyte, count_combining_before):
4920         (count_combining_after, insert_1, insert_1_both, message_dolog):
4921         (insert, insert_and_inherit, insert_before_markers)
4922         (insert_before_markers_and_inherit, set_message, message2):
4923         (message2_dolog, build_string, make_string, make_unibyte_string):
4924         (make_multibyte_string, intern, oblookup, report_file_error):
4925         (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
4926         (emacs_open, xstrdup): Declarations updated.
4927         * systime.h (set_file_times): Declaration updated.
4929         * charset.c (find_charset_in_text, lisp_string_width): Use const
4930         for pointer to lisp string data.
4931         * charset.h (FETCH_STRING_CHAR_ADVANCE):
4932         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
4933         * coding.c (Ffind_coding_systems_region_interval):
4934         * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
4935         (Fmake_directory_internal, Fdelete_directory):
4936         (Ffile_name_absolute_p, Fwrite_region, double_dollars):
4937         * fontset.c (font_family_registry, fs_query_fontset):
4938         (list_fontsets):
4939         * frame.c (Fframe_parameter):
4940         * keyboard.c (cmd_error_internal):
4941         * keymap.c (Fdescribe_buffer_bindings):
4942         * lread.c (complete_filename_p, openp):
4943         * minibuf.c (Fminibuffer_complete_word):
4944         * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
4945         (face_before_or_after_it_pos, next_element_from_string):
4946         (get_overlay_arrow_glyph_row, display_mode_element):
4947         (decode_mode_spec_coding):
4948         * xterm.c (same_x_server): Likewise.
4950         * buffer.c (reset_buffer_local_variables): Delete "#if 0"
4951         settings of non-existent fields.
4953         * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
4954         copy a lisp value.
4956         * lread.c (Fintern_soft): Use string macros instead of
4957         Lisp_String fields.
4958         * keyboard.c (echo_char, parse_modifiers_uncached):
4959         (parse_solitary_modifier, Fexecute_extended_command): Likewise.
4960         * textprop.c (validate_interval_range, interval_of): Likewise.
4962         * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
4964         * charset.h (FETCH_STRING_CHAR_ADVANCE)
4965         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
4966         XSTRING()->size_byte.
4968         * lisp.h (SDATA, SREF): Produce rvalue.
4969         (SSET): New macro.
4970         * alloc.c (make_event_array): Use SSET for storing into a string.
4971         * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
4972         a string.
4973         * casefiddle.c (casify_object): Use SSET.
4974         * charset.h (FETCH_STRING_CHAR_ADVANCE)
4975         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
4976         address of string contents.
4977         * data.c (Faref): Use SDATA.
4978         (Faset): Use SDATA, SSET.
4979         * dired.c (directory_files_internal): Use SSET.
4980         * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
4981         (Fread_file_name): Use SREF, SSET.
4982         * fns.c (concat): Use SSET.
4983         (concat, Fdelete): Use SDATA.
4984         * insdel.c (insert_from_string_1): Use SDATA.
4985         * keyboard.c (Fevent_convert_list): Use SREF.
4986         * lread.c (Fload): Use SDATA, SSET.
4987         * macfns.c (validate_x_resource_name): Use SSET.
4988         * process.c (status_message): Use SSET.
4989         * search.c (wordify): Use SDATA.
4990         (Freplace_match): Use SREF.
4991         * w32fns.c (validate_x_resource_name): Use SSET.
4992         * xfns.c (validate_x_resource_name): Use SSET.
4993         * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
4995 2002-07-16  Richard M. Stallman  <rms@gnu.org>
4997         * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
4999         * xdisp.c (reconsider_clip_changes):
5000         Don't test prevent_redisplay_optimizations_p.
5001         (redisplay_internal): Test prevent_redisplay_optimizations_p
5002         along with clip_changed in some cases.
5003         (try_window_id): Likewise.
5004         (redisplay_window): New local var buffer_unchanged_p.
5006         * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
5008         * process.c (create_process): Test USG_SUBTTY_WORKS.
5009         (process_send_signal): Clean up handling of GID.
5010         Detect errors in ioctls meant to set GID.
5012         * window.c (temp_output_buffer_show):
5013         Don't set prevent_redisplay_optimizations_p.
5015 2002-07-15  Juanma Barranquero  <lektu@terra.es>
5017         * eval.c (Fdefvaralias): Add docstring argument.
5019 2002-07-15  Ken Raeburn  <raeburn@gnu.org>
5021         * lisp.h (STRING_INTERVALS): Produce rvalue.
5022         (STRING_SET_INTERVALS): New macro.
5023         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
5024         * fns.c (Fstring_as_multibyte): Likewise.
5025         * intervals.c (balance_possible_root_interval, delete_interval)
5026         (create_root_interval, copy_intervals_to_string): Likewise.
5027         * textprop.c (set_text_properties): Likewise.  Use NULL_INTERVAL
5028         instead of 0.
5030 2002-07-14  Ken Raeburn  <raeburn@gnu.org>
5032         * lisp.h (STRING_SET_CHARS): New macro.
5033         (SCHARS, SBYTES): Produce rvalues.
5034         * dired.c (directory_files_internal): Use STRING_SET_CHARS.
5035         * fns.c (concat): Likewise.
5036         * lread.c (read_vector): Likewise.
5038         * lisp.h (SMBP): Deleted.  All uses changed to STRING_MULTIBYTE.
5039         (STRING_SET_UNIBYTE): New macro.
5040         (SET_STRING_BYTES): Deleted.  Callers (all of which supplied a
5041         length of -1) changed to use STRING_SET_UNIBYTE.
5042         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
5043         casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
5044         composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
5045         dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
5046         fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
5047         keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
5048         minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
5049         sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
5050         w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
5051         w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
5052         xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
5053         STRING_BYTES or indirection changed to SCHARS, SBYTES,
5054         STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
5055         unchanged for now.
5057 2002-07-13  Kim F. Storm  <storm@cua.dk>
5059         * keyboard.c (command_loop_1): Invert check on Vmemory_full.
5061 2002-07-12  Richard M. Stallman  <rms@gnu.org>
5063         * fileio.c (Fwrite_region): Doc fix.
5065         * print.c (print_error_message): Don't handle Vsignaling_function here.
5067         * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
5068         (command_loop_1): Avoid certain actions after memory-full error.
5070         * eval.c (Fsignal): Don't call cancel_hourglass.
5071         For a memory-full error, don't call Vsignal_hook_function
5072         and don't set Vsignaling_function.
5074         * process.c (process_send_signal): Add abort call.
5076 2002-07-11  Markus Rost  <rost@math.ohio-state.edu>
5078         * keymap.c (Fkey_binding): Fix typo.
5080 2002-07-11  Richard M. Stallman  <rms@gnu.org>
5082         * alloc.c (Vmemory_full): New variable.
5083         (Vmemory_signal_data): Renamed from memory_signal_data.
5084         Uses changed.
5085         (syms_of_alloc): Defvar them.
5086         (memory_full, buffer_memory_full): Set Vmemory_full.
5088         * lisp.h (Vmemory_full): Add declaration.
5089         (current_column, indented_beyond_p): Change declaration.
5091         * indent.c (last_known_column): Declare as double, not float.
5092         (current_column, current_column_1, string_display_width)
5093         (position_indentation): Return `double'.
5094         (indented_beyond_p): Arg `column' is `double'.  Callers changed.
5096         * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
5097         (back_to_previous_visible_line_start)
5098         (reseat_at_next_visible_line_start, next_element_from_buffer):
5099         Use `double', not `float', when calling indented_beyond_p.
5101         * s/hpux11.h (BROKEN_SA_RESTART): Defined.
5103         * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
5105 2002-07-11  Juanma Barranquero  <lektu@terra.es>
5107         * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
5108         * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
5109         * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
5110         * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
5111         * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
5112         * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
5114 2002-07-10  Juanma Barranquero  <lektu@terra.es>
5116         * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
5117         changed.
5119 2002-07-09  Stefan Monnier  <monnier@cs.yale.edu>
5121         * data.c (Fdefalias): Add an optional `docstring' argument.
5122         (set_internal, Fsetq_default): Use XCAR/XCDR.
5124         * composite.c (HASH_VALUE, HASH_KEY):
5125         * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
5127 2002-07-09  Kenichi Handa  <handa@etl.go.jp>
5129         * callproc.c (Fcall_process): Fix previous change.
5131 2002-07-07  Stefan Monnier  <monnier@cs.yale.edu>
5133         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
5134         Add support for hash-tables.
5135         (Ftry_completion): Return t even if the string appears multiple times.
5137         * fns.c (Fnconc): Use XCDR.
5138         (Fprovide): Use CONSP and XCDR.
5139         (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
5140         (HASH_TABLE_SIZE): Delete: moved to lisp.h.
5141         (Fmake_hash_table): Accept `:size nil'.
5142         (Fmakehash): Delete: moved to subr.el.
5143         (syms_of_fns): Don't defsubr makehash.
5145         * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
5146         (HASH_TABLE_SIZE): Move from fns.c.
5148 2002-07-07  Richard M. Stallman  <rms@gnu.org>
5150         * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
5151         Instead just return 0 when there is something to be done.
5152         (try_scrolling): If make_cursor_line_fully_visible returns 0,
5153         retry scrolling as if cursor were off the bottom.
5154         (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
5155         return CURSOR_MOVEMENT_MUST_SCROLL.
5156         (redisplay_window): If make_cursor_line_fully_visible returns 0,
5157         go to try_to_scroll.
5159         * buffer.c (Fbuffer_local_value): Store current value into its binding
5160         so we get the up-to-date value for the binding that is loaded.
5162         * eval.c (Fdefmacro): Doc fix.
5164 2002-07-05  Dave Love  <fx@gnu.org>
5166         * keyboard.c (read_key_sequence): Set initial_idleness_start_time
5167         correctly.
5169         * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
5170         (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
5171         (ccl_driver): Add cases for CCL_LookupIntConstTbl,
5172         CCL_LookupCharConstTbl.
5173         (syms_of_ccl): Defvar translation-hash-table-vector.
5175 2002-07-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5177         * xdisp.c: Remove unused variable `face'.
5179 2002-07-04  Juanma Barranquero  <lektu@terra.es>
5181         * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
5182         obsolescence information.
5184 2002-07-03  Andrew Choi  <akochoi@shaw.ca>
5186         * macterm.c (x_list_fonts): Fix comment.  Cache fonts matching
5187         pattern.  Search cache first.
5188         (init_font_name_table): Also add entry for jisx0201.1976-0 coding
5189         for Japanese font.
5190         (XLoadQueryFont): Use it.
5192 2002-07-02  Richard M. Stallman  <rms@gnu.org>
5194         * keymap.c (Fdefine_key): Doc fix.
5196         * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
5198 2002-07-02  Juanma Barranquero  <lektu@terra.es>
5200         * keymap.c (syms_of_keymap): Fix typo.
5202 2002-07-01  Andrew Choi  <akochoi@shaw.ca>
5204         * s/darwin.h: Define POSIX_SIGNALS.
5206         * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
5207         and FSRefMakePath to convert FSSpec returned with Apple Event to
5208         Posix pathname.
5209         (mac_initialize) [TARGET_API_MAC_CARBON]:
5210         Call init_required_apple_events and disable the `Quit' menu item
5211         provided automatically by the Carbon Toolbox.
5213 2002-07-01  Dave Love  <fx@gnu.org>
5215         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
5216         for K&R.
5218         * xterm.c: Fix prototype for K&R.
5220         * term.c (costs_set): Declare static, non-initialized for pcc.
5222 2002-07-01  Richard M. Stallman  <rms@gnu.org>
5224         * keyboard.c (timer_last_idleness_start_time): New variable.
5225         (timer_start_idle): Set that.
5226         (read_key_sequence): Use that to reset timer_idleness_start_time
5227         to previous value.
5229         * window.c (Frecenter): With arg, set optional_new_start.
5231         * xdisp.c (redisplay_internal): Make optional_new_start really work.
5233         * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
5234         buffer for completion.
5236 2002-06-29  Ken Raeburn  <raeburn@gnu.org>
5238         * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
5240 2002-06-28  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
5242         * keyboard.c (readable_filtered_events): New function that filters
5243         FOCUS_IN_EVENT depending on parameter.
5244         (readable_events): Calls readable_filtered_events, not filtering
5245         FOCUS_IN_EVENT.
5246         (get_filtered_input_pending): New function, filtering parameter passed
5247         to readable_filtered_events.
5248         (get_input_pending): Calls get_filtered_input_pending, not filtering
5249         FOCUS_IN_EVENT.
5250         (Finput_pending_p): Calls get_filtered_input_pending, DO filter
5251         FOCUS_IN_EVENT.
5253         * xterm.h (struct x_output): Add focus_state.
5255         * xterm.c (x_focus_changed): New function.
5256         (x_detect_focus_change): New function.
5257         (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
5258         EnterNotify and LeaveNotify to track X focus changes.
5260 2002-06-28  Andreas Schwab  <schwab@suse.de>
5262         * lisp.h: Remove duplicate declaration of code_convert_string_norecord.
5264 2002-06-27  Kim F. Storm  <storm@cua.dk>
5266         * xdisp.c: (mode_line_string_list, mode_line_string_face)
5267         (mode_line_string_face_prop): New variables.
5268         (store_mode_line_string): New function.
5269         (display_mode_element): Use store_mode_line_string to
5270         add mode-line string elements to mode_line_string_list
5271         when mode_line_string_list is non-nil.
5272         (Fformat_mode_line): Now returns propertized string by
5273         default.  New arg NO-PROPS to ignore properties.
5274         (decode_mode_spec): Only add two dashes for %- in propertized
5275         mode-line string.
5276         (syms_of_xdisp): Init and staticpro mode_line_string_list.
5278 2002-06-27  Stefan Monnier  <monnier@cs.yale.edu>
5280         * minibuf.c (minibuffer_completion_contents): Add return type.
5282 2002-06-27  Juanma Barranquero  <lektu@terra.es>
5284         * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
5286 2002-06-26  Juanma Barranquero  <lektu@terra.es>
5288         * fileio.c (read_file_name_cleanup): Add missing return.
5290 2002-06-26  Richard M. Stallman  <rms@gnu.org>
5292         * window.c (Frecenter): Don't set force_start flag.
5294         * minibuf.c (do_completion, Fminibuffer_complete_word)
5295         (Fminibuffer_completion_help): Complete just the text before point.
5296         (minibuffer_completion_contents): New function.
5298         * buffer.c (Fbury_buffer): Use frames_discard_buffer.
5300         * frame.c (frames_bury_buffer): Function deleted.
5302 2002-06-25  Miles Bader  <miles@gnu.org>
5304         * callint.c (Fcall_interactively): When checking to see if doprnt hit
5305         the end of callint_message, allow for a terminating '\0'.
5307 2002-06-24  Juanma Barranquero  <lektu@terra.es>
5309         * w32select.c: Include composite.h
5311         * w16select.c: Likewise.
5313 2002-06-24  Kenichi Handa  <handa@etl.go.jp>
5315         * callproc.c (Fcall_process): If code detection is necessary,
5316         call detect_coding directly here.
5318         * coding.c (detect_eol): Preserve coding->cmp_data.
5320         * w16select.c (Fw16_get_clipboard_data):
5321         * w32fns.c (w32_to_x_font):
5322         * w32select.c (Fw32_get_clipboard_data):
5323         * xselect.c (selection_data_to_lisp_data):
5324         * xterm.c (XTread_socket): Disable composition handling.
5326 2002-06-24  Stefan Monnier  <monnier@cs.yale.edu>
5328         * print.c (temp_output_buffer_setup): Kill all local variables.
5330 2002-06-22  Stefan Monnier  <monnier@cs.yale.edu>
5332         * lread.c (Fread): Remove redundant and imprecise declaration.
5334         * xfns.c (check_x_display_info): Use check_x_frame.
5336         * .gdbinit (xprintsym): Use the new `xname' field.
5337         (xsymbol): Use it.
5339 2002-06-22  Jason Rumney  <jasonr@gnu.org>
5341         * w32fns.c (file_dialog_callback): New function.
5342         (Fx_file_dialog): Allow selecting directories as well as files.
5344 2002-06-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5346         * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
5347         OpenBSD. Add support for mipseb-*-netbsd* machines.
5349 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
5351         * macterm.c (mac_scroll_area): Set foreground and backcolor to
5352         black and white before scrolling.  Restore frame background and
5353         foreground color after scrolling.
5354         (do_window_update): Call XClearWindow before calling expose_frame.
5355         (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
5356         FRAME_FOREGROUND_PIXEL of frame.
5358         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
5359         test Mac command key as <ALT> key.
5361 2002-06-17  Stefan Monnier  <monnier@cs.yale.edu>
5363         * window.c (Fset_window_configuration): Lisp_Object/int mixup.
5365         * keyboard.c (read_key_sequence): Be more careful with first_unbound.
5366         Lookup keys in function-key-map immediately so that key-translation-map
5367         can be applied earlier.
5368         Remove function_key_possible and key_translation_possible, replaced
5369         by checking `keytran_start < t'.
5371         * .gdbinit (xsymbol): Use the new `xname' field.
5373 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
5375         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
5376         test Mac command key as <ALT> key.
5378         * mac.c (do_applescript): Call initialize_applescript if necessary
5379         when first called.  Dispose of result_desc only when there is no error.
5380         (Fdo_applescript): Use %d format specifier instead of %ld.
5382 2002-06-16  Andrew Choi  <akochoi@shaw.ca>
5384         * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
5385         of FrontWindow for cases keyDown and autoKey.
5387         * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
5388         Vdefault_fontset to Monaco with mac-roman coding.
5390         * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
5391         init_process before and after inclusion of Carbon/Carbon.h, resp.
5393         * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
5394         cursor_gc.
5395         (add_font_name_table_entry): New function.
5396         (init_font_name_table): Use add_font_name_table_entry; add italic,
5397         bold, and bold-italic entries for truetype fonts.
5399         * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
5400         for Mac too.
5401         (try_font_list) [MAC_OS]: If no font matches given registry, try
5402         fonts with any registry matching face_family.
5403         (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
5405         * s/darwin.h: If autoconf detects the Ncurses library, define
5406         LIBS_TERMCAP to -lncurses to use it.
5408 2002-06-16  Eli Zaretskii  <eliz@is.elta.co.il>
5410         * strftime.c [__hpux]: Include sys/_mbstate_t.h.
5412 2002-06-15  Richard M. Stallman  <rms@gnu.org>
5414         * window.c (Fset_window_configuration): Explicitly preserve
5415         the point value that new_current_buffer had at the start.
5417 2002-06-14  Juanma Barranquero  <lektu@terra.es>
5419         * composite.c (Fcompose_region_internal, Fcompose_string_internal):
5420         Fix typos.
5422 2002-06-14  Kim F. Storm  <storm@cua.dk>
5424         * insdel.c (insert_1_both, insert_from_string_1)
5425         (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
5426         insert happened in the end_unchanged region.  Otherwise, the
5427         redisplay may be confused and duplicate the last line in the
5428         buffer [seen after save-buffer when require-final-newline==t].
5430 2002-06-13  Jason Rumney  <jasonr@gnu.org>
5432         * w32.c (init_environment): Remove EMACSLOCKDIR.
5433         (stat): Swap _S_IFDIR and _S_IFREG.
5435 2002-06-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5437         * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
5438         * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
5439         * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
5440         ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
5441         to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
5442         NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
5443         to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
5444         language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
5445         to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
5446         W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
5447         SELECTION_REQUEST_EVENT, selection_clear_event to
5448         SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
5449         delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
5450         ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
5451         menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
5452         DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
5453         no_event to NO_EVENT.
5455 2002-06-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5457         * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
5459 2002-06-12  Stefan Monnier  <monnier@cs.yale.edu>
5461         * intervals.c (textget): Don't forget to `return'.
5462         (lookup_char_property): Use XCAR/XCDR.
5464 2002-06-12  Juanma Barranquero  <lektu@terra.es>
5466         * xdisp.c (Fformat_mode_line): Fix typo.
5468 2002-06-12  Kim F. Storm  <storm@cua.dk>
5470         * xdisp.c (Fformat_mode_line): New function.
5471         (frame_title_buf, frame_title_buf_end, frame_title_ptr)
5472         (store_frame_title_char, store_frame_title): Use unconditionally.
5473         (init_xdisp): Defsubr Fformat_mode_line.
5474         Initialize frame_title_buf etc. unconditionally.
5476 2002-06-11  Stefan Monnier  <monnier@cs.yale.edu>
5478         * keyboard.c (read_key_sequence):
5479         Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
5480         things through those maps after downcasing events.
5481         Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
5482         applies after function-key-map.
5483         Make sure that keytran can be done in the middle in the sequence.
5484         Be careful not to throw away events past the one we downcase.
5486         * lread.c (read_integer): Remove unused var `tem'.
5487         (read1): Fix int/Lisp_Object mixup.
5489         * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
5491 2002-06-11  Richard M. Stallman  <rms@gnu.org>
5493         * keyboard.c (readable_events): Ignore any number of
5494         FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
5496 2002-06-09  Miles Bader  <miles@gnu.org>
5498         * xfaces.c (Ftty_supports_face_attributes_p): New function.
5499         (parse_rgb_list, tty_lookup_color): New functions.
5500         (tty_defined_color): Use `tty_lookup_color' to do all the work.
5501         (color_distance, Fcolor_distance): New functions.
5502         (TTY_SAME_COLOR_THRESHOLD): New macro.
5503         (Qtty_color_standard_values): New variable.
5504         (syms_of_xfaces): Initialize new vars & functions.
5506 2002-06-08  Colin Walters  <walters@verbum.org>
5508         * textprop.c (Vchar_property_alias_alist): New variable.
5509         (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
5511         * intervals.c (lookup_char_property): New function for looking up
5512         overlay and text properties, created from textget.
5513         (textget): Use it.
5515         * intervals.h (lookup_char_property): Declare.
5516         (Vchar_property_alias_alist): Declare.
5518         * buffer.c (Foverlay_get): Use lookup_char_property.
5520 2002-06-07  Sam Steingold  <sds@gnu.org>
5522         * xselect.c (lisp_data_to_selection_data): Fix last change:
5523         *data_ret is not a Lisp string, while unibyte_string is.
5525 2002-06-07  Eli Zaretskii  <eliz@is.elta.co.il>
5527         * xselect.c (lisp_data_to_selection_data): Fix last change:
5528         set size_ret.
5530 2002-06-07  Andreas Schwab  <schwab@suse.de>
5532         * m/amdx86-64.h: New file.
5534 2002-06-05  Eli Zaretskii  <eliz@is.elta.co.il>
5536         * fns.c (Fstring_make_unibyte): Doc fix.
5538         * xselect.c (lisp_data_to_selection_data): If the requested type
5539          is STRING, call string_make_unibyte to encode the selected text
5540          as a string.
5542         * window.c (Fset_window_hscroll): Doc fix.
5544 2002-06-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5546         * fileio.c (choose_write_coding_system):
5547         Call select-safe-coding-system properly.
5549 2002-06-03  Richard M. Stallman  <rms@gnu.org>
5551         * xdisp.c (message_with_string): Error if STRING is not a string.
5553         * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
5555         * fileio.c (choose_write_coding_system): Pass FILE arg to
5556         Vselect_safe_coding_system_function.
5558 2002-06-03  Ken Raeburn  <raeburn@gnu.org>
5560         * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
5562 2002-06-02  Thien-Thi Nguyen  <ttn@gnu.org>
5564         * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
5565         * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
5566         * keymap.c (describe_command): Likewise.
5567         * minibuf.c (read_minibuf): Likewise.
5569         * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
5570         Cast `current_column' return value to int.
5571         (back_to_previous_visible_line_start)
5572         (reseat_at_next_visible_line_start, next_element_from_buffer):
5573         Cast `indented_beyond_p' 3rd arg to float.
5575         * indent.c (last_known_column): Now a float.
5576         (current_column_1, position_indentation, current_column)
5577         (string_display_width): Return float.
5578         (Fcurrent_column): Cast `current_column' return value to int.
5579         (Fcurrent_indentation): Cast `position_indentation' retval to int.
5580         (indented_beyond_p): Third arg now a float.
5581         (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
5583         * lisp.h (current_column): Now returns float.
5584         (indented_beyond_p): 3rd arg now a float.
5586 2002-05-31  Eli Zaretskii  <eliz@is.elta.co.il>
5588         * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
5589         is Qcompound_text_with_extensions.
5591         * xselect.c (lisp_data_to_selection_data): Always set selection
5592         type as string if x_encode_text returns streingp non-NULL.
5594         * s/netbsd.h: Include /usr/pkg in the run time shared library path.
5596 2002-05-30  Richard M. Stallman  <rms@gnu.org>
5598         * window.c (Fset_window_configuration): Correct the handling
5599         of point in current buffer, to work with multiple windows.
5601 2002-05-29  Colin Walters  <walters@verbum.org>
5603         * lread.c (Fread_from_string): Don't depend on order of evaluation
5604         for C function parameters.
5606 2002-05-28  Richard M. Stallman  <rms@gnu.org>
5608         * xterm.c (x_display_and_set_cursor): Change the cursor in the same
5609         way for blinked-off state and for a nonselected window.
5611         * window.c (window_scroll_pixel_based): Don't call Fbolp;
5612         instead, see if the new start pos is at beginning of line.
5614         * fileio.c (Fwrite_region): If START is a string, don't
5615         make any annotations.
5617         * eval.c (syms_of_eval): Doc fix.
5619 2002-05-28  Colin Walters  <walters@debian.org>
5621         * emacs.c (USAGE1): Add --no-splash.
5622         (standard_args): Ditto.
5624 2002-05-28  Colin Walters  <walters@gnu.org>
5626         * lread.c (readchar_count): New variable.
5627         (readchar): Increment it.
5628         (unreadchar): Decrement it.
5629         (read_multibyte): Decrement it.
5630         (Vread_with_symbol_positions): New variable.
5631         (Vread_symbol_positions_list): New variable.
5632         (read_internal_start): New function, created from Fread and
5633         Fread_from_string.  Handle Vread_symbol_positions_list and
5634         Vread_with_symbol_positions.
5635         (readevalloop, Fread, Fread_from_string): Use it.
5636         (read1): Use readchar_count to add symbol positions to
5637         Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
5638         (syms_of_lread): DEFVAR_LISP and initialize them.
5640         * lread.c (read0, read1, read_list, read_vector, read_multibyte)
5641         (substitute_object_recurse, substitute_object_in_subtree)
5642         (substitute_in_interval): Prototype.
5643         (read_multibyte): Return c if it's less than zero.
5645 2002-05-28  Kim F. Storm  <storm@cua.dk>
5647         * fileio.c (Fread_file_name_internal): Added brute-force
5648         speed up for using predicate file-directory-p.
5650 2002-05-28  Kim F. Storm  <storm@cua.dk>
5652         * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
5653         New variables.
5654         (syms_of_fileio): DEFVAR_LISP them.
5655         (read_file_name_cleanup): New unwind function.
5656         (Fread_file_name_internal): Only return completions satifying
5657         Vread_file_name_predicate.  Temporarily unwind protect and rebind
5658         default-directory while checking completions against the predicate.
5659         (Fread_file_name): Added PREDICATE argument.  Specbind it to
5660         Vread_file_name_predicate during completion.
5661         Call Vread_file_name_function to read the file name if non-nil.
5663         * lisp.h (Fread_file_name): Now has 6 args.
5665         * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
5666         predicate for Fread_file_name when reading directory name.
5667         Supply Qnil for predicate in other calls to Fread_file_name.
5669 2002-05-26  Miles Bader  <miles@gnu.org>
5671         * term.c (tty_capable_p): New function.
5672         * dispextern.h (tty_capable_p): New function declaration.
5673         (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
5674         (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
5676 2002-05-23  Stefan Monnier  <monnier@cs.yale.edu>
5678         * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
5679         (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
5680         (Vwrite_region_annotate_functions): Docstring fix.
5682 2002-05-23  Kim F. Storm  <storm@cua.dk>
5684         * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
5685         phys_cursor's hpos is overwritten.  This is still not completely
5686         correct, as it doesn't really make sense to use hpos at all to
5687         get the cursor glyph (as that is relative to the width of the
5688         characters on the line, which may have changed during the update).
5690 2002-05-22  Jason Rumney  <jasonr@gnu.org>
5692         * w32fns.c (enumfont_t): Remove tail, make pattern a normal
5693         Lisp_Object.
5694         (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
5695         Use modified enumfont_t struct.
5697         * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
5699         * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
5700         Handle the `hbar' cursor type.
5701         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
5703         * w32fns.c (Qhbar): New variable.
5704         (x_specified_cursor_type): Use it.
5706 2002-05-21  Ken Raeburn  <raeburn@gnu.org>
5708         * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
5709         now, when the address is needed.
5711 2002-05-21  Colin Walters  <walters@gnu.org>
5713         * Makefile.in (shortlisp): Add font-core.el.
5715 2002-05-20  Richard M. Stallman  <rms@gnu.org>
5717         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
5719         * keyboard.c (read_char_minibuf_menu_prompt): Don't list
5720         equivalent key bindings here.
5722 2002-05-20  Ken Raeburn  <raeburn@gnu.org>
5724         Change symbol structure to contain a lisp object for the symbol
5725         name:
5726         * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
5727         object field named "xname".
5728         (SYMBOL_NAME): New macro.
5729         * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
5730         name field.
5731         * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
5732         (mark_object, gc_sweep): Use symbol xname field and XSTRING
5733         instead of name field.
5734         * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
5735         SYMBOL_NAME instead of XSYMBOL and name field.
5736         * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
5737         instead of XSYMBOL and name field.
5738         * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
5739         and SYMBOL_NAME instead of XSYMBOL and name field.
5740         * coding.c (Fread_coding_system, code_convert_region1)
5741         (code_convert_string1, code_convert_string_norecord)
5742         (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
5743         XSYMBOL and name field.
5744         * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
5745         (Fmake_variable_buffer_local, Fmake_local_variable)
5746         (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
5747         of XSYMBOL and name field.
5748         * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
5749         XSYMBOL and name field.
5750         * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
5751         instead of XSYMBOL and name field.
5752         * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
5753         XSYMBOL and name field.
5754         * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
5755         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
5756         * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
5757         instead of XSYMBOL and name field.
5758         * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
5759         (parse_modifiers, apply_modifiers, Fevent_convert_list)
5760         (parse_solitary_modifier, Fexecute_extended_command):
5761         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
5762         * keymap.c (silly_event_symbol_error, Fsingle_key_description)
5763         (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
5764         of XSYMBOL and name field.
5765         (describe_command, describe_translation): Use SYMBOL_NAME and
5766         assignment instead of XSYMBOL and name field and XSETSTRING.
5767         * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
5768         instead of XSYMBOL and name field.
5769         (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
5770         name field and XSETSTRING.
5771         * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
5772         of XSYMBOL and name field.
5773         * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
5774         assignment instead of XSYMBOL and name field and XSETSTRING.
5775         * print.c (print_error_message, print_object): Use SYMBOL_NAME and
5776         XSTRING instead of XSYMBOL and name field.
5777         * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
5778         and XSTRING instead of XSYMBOL and name field.
5779         * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
5780         and XSTRING instead of XSYMBOL and name field.
5781         * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
5782         XSTRING instead of XSYMBOL and name field.
5783         * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
5784         of XSYMBOL and name field.
5785         * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
5786         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
5788 2002-05-19  Ken Raeburn  <raeburn@gnu.org>
5790         * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
5791         and XCDR real rvalues in most configurations.
5793         * buffer.c (fix_overlays_in_range, fix_overlays_before):
5794         Don't take the address of the cdr part of a cons cell; instead, track
5795         the parent cell and call XSETCDR, or set the variable for the head
5796         of the list if we haven't started down the list yet.
5798 2002-05-19  Richard M. Stallman  <rms@gnu.org>
5800         * doc.c (reread_doc_file): Don't ask for confirmation.
5802 2002-05-18  Jason Rumney  <jasonr@gnu.org>
5804         * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
5805         (xbm_load_image): Use it.
5806         (xbm_load): Ditto.
5807         (xbm_read_bitmap_data): Reverted to xfns.c version.
5808         From David Ponce <david@dponce.com>.
5810 2002-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
5812         * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
5813         2.02 and later.
5815 2002-05-16  Juanma Barranquero  <lektu@terra.es>
5817         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
5819 2002-05-15  Stefan Monnier  <monnier@cs.yale.edu>
5821         * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
5822         meaningful test.
5823         (read_char_minibuf_menu_prompt): Fix typo.
5825 2002-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
5827         * eval.c (Fcommandp): Doc fix.
5829 2002-05-13  Stefan Monnier  <monnier@cs.yale.edu>
5831         * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
5832         (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
5833         (Fset_keymap_parent): Gcpro a bit more.
5834         (access_keymap): Gcpro around meta_map call and around the main loop.
5835         (get_keyelt): Gcpro when following indirect references.
5836         (copy_keymap_item): New fun, extracted from Fcopy_keymap.
5837         (copy_keymap_1, Fcopy_keymap): Use it.  Don't copy the parent map.
5838         (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
5839         Remove useless ad-hoc remap code.
5841 2002-05-13  Richard M. Stallman  <rms@gnu.org>
5843         * search.c (search_buffer): Give up boyer moore search if inverse
5844         translation change charset_base.
5846 2002-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
5848         * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
5849         characters is carried over from the previous block of text, adjust
5850         coding->produced to account for the extra character.
5852 2002-05-11  Andreas Schwab  <schwab@suse.de>
5854         * coding.c (intersection): Keep the elements of the returned list
5855         in the same order as in the first list.
5857 2002-05-11  Kim F. Storm  <storm@cua.dk>
5859         * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
5860         only update cmm_size if realloc actually succeeds.
5861         Testing with initial size of 2 elements revealed that using
5862         realloc on GNU/Linux would cause a random trap in xmalloc
5863         later on, so I rewrote the code to use malloc/bcopy/free instead
5864         of realloc.
5866 2002-05-10  Jason Rumney  <jasonr@gnu.org>
5868         * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
5870 2002-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
5872         * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
5873         parens, to ensure correct evaluation order.
5875 2002-05-10  Kim F. Storm  <storm@cua.dk>
5877         * keymap.c (Vemulation_mode_map_alists): New variable.
5878         (syms_of_keymap): DEFVAR_LISP it.
5879         (current_minor_maps): Process keymap alists in that list before
5880         minor-mode-overriding-map-alist and minor-mode-map-alist.
5882 2002-05-09  Richard M. Stallman  <rms@gnu.org>
5884         * search.c (Freplace_match): Doc fix.
5886 2002-05-09  Kim F. Storm  <storm@cua.dk>
5888         * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
5889         Enlarge cursor rectangle drawn around image with non-zero relief.
5891         * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
5892         Enlarge cursor rectangle drawn around image with non-zero relief.
5894         * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
5895         Enlarge cursor rectangle drawn around image with non-zero relief.
5897 2002-05-07  Eli Zaretskii  <eliz@is.elta.co.il>
5899         * xselect.c (lisp_data_to_selection_data): Don't set selection
5900         type if comes from the Lisp object's car.  If the selection
5901         contains a pure ASCII text, always return QSTRING as its type.
5903 2002-05-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5905         * mac.c (mac-cut-function): Doc fix.
5907 2002-05-05  Richard M. Stallman  <rms@gnu.org>
5909         * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
5911 2002-05-04  Jason Rumney  <jasonr@gnu.org>
5913         * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
5914         for event-click-count.
5916         * process.c (init_process): Only add server subfeature if we can
5917         use non-blocking I/O.
5919 2002-05-04  Andrew Choi  <akochoi@shaw.ca>
5921         * macterm.c (XTread_socket): Call WaitNextEvent once instead of
5922         repeatedly.
5924 2002-05-03  Jason Rumney  <jasonr@gnu.org>
5926         * process.c (Fmake_network_process): Only support server sockets
5927         when we can make them non-blocking.
5929         * s/ms-w32.h (HAVE_SELECT): Define.
5931         * w32.h (FILE_NDELAY): New flag.
5933         * w32.c (sys_getpeername, fcntl): New functions.
5934         (_sys_read_ahead): Temporarily block on non-blocking sockets.
5936         * w32proc.c: include sys/file.h.
5938 2002-05-03  Colin Walters  <walters@verbum.org>
5940         * callproc.c (Vgame_score_directory): Renamed to
5941         Vshared_game_score_directory.
5943 2002-04-30  Richard M. Stallman  <rms@gnu.org>
5945         * s/gnu.h [emacs]: Include stdio.h.
5946         (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
5948         * eval.c (do_autoload): Error if called while preparing to dump.
5950         * fns.c (Frequire): Error if need to load while preparing to dump.
5952 2002-04-28  Colin Walters  <walters@verbum.org>
5954         * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
5955         Default to "~/.emacs.d/games".
5957 2002-04-29  Stefan Monnier  <monnier@cs.yale.edu>
5959         * lread.c (openp): Change arg exec_only to predicate.
5960         (build_load_history): Use XCAR/XCDR.
5961         (Flocate_file_internal): New fun.
5962         (syms_of_lread): Defsubr it.
5963         (Fload): Update call to openp.
5965         * lisp.h (openp): Update prototype.
5967         * xfns.c (x_create_bitmap_from_file, x_find_image_file):
5968         * w32proc.c (sys_spawnve):
5969         * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
5970         * w32.c (check_windows_init_file):
5971         * sound.c (Fplay_sound_internal):
5972         * process.c (Fstart_process):
5973         * macfns.c (x_create_bitmap_from_file, x_find_image_file):
5974         * mac.c (run_mac_command):
5975         * emacs.c (init_cmdargs):
5976         * callproc.c (Fcall_process): Update call to openp.
5978         * textprop.c (remove_properties): Don't use XCAR without CONSP.
5980         * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
5982 2002-04-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5984         * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
5985         (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
5987 2002-04-28  Richard M. Stallman  <rms@gnu.org>
5989         * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
5991         * eval.c (Fcommandp): New arg for_call_interactively.
5992         * lisp.h (Fcommandp): Declare new arg.
5994 2002-04-28  Jason Rumney  <jasonr@gnu.org>
5996         * w32proc.c (syms_of_w32proc): Get true file attributes by default.
5998         * w32.c (stat, fstat): Use file index information to generate
5999         inodes for directories where available.
6001 2002-04-26  Andrew Choi  <akochoi@shaw.ca>
6003         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
6004         [HAVE_CARBON]: Include Mac object files.
6006         * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
6007         fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
6008         termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
6009         MAC_OSX, and MAC_OS instead of macintosh.
6011         * editfns.c [MAC_OS8]: Include stdio.h.
6013         * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
6015         * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
6016         Apple Monaco.
6018         * process.c: Declare QCfamily and QCfilter as extern.
6019         (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
6020         calling select.
6022         * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
6024         * tparam.c [MAC_OSX]: Don't define BC and UP.
6026         * config.in [HAVE_CARBON]: Add.
6028         * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
6029         Move here from mac/src and mac/inc.
6031         * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
6033 2002-04-26  Gerd Moellmann  <gerd@gnu.org>
6035         * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
6036         Compute phys_cursor_width from the x position returned
6037         by x_draw_glyhs, which is cheaper.
6038         (x_display_and_set_cursor): Compute the buffer-local value
6039         of `cursor-in-non-selected-windows' only when needed.
6041 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
6043         * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
6044         cursor on a stretch glyph has a width that depends on
6045         x_stretch_cursor_p.
6047 2002-04-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6049         * abbrev.c (abbrev-start-location): Doc fix.
6051         * indent.c (Fvertical_motion): Fix last change.
6053 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
6055         * indent.c (Fvertical_motion): Move to the start of the line
6056         containing PT before moving up or down.
6058 2002-04-24  Gerd Moellmann  <gerd@gnu.org>
6060         * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
6061         case of writing a whole row, more or less analogous to the case of
6062         writing only parts of a row.
6064         * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
6065         0 for NO_CURSOR.
6067         * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
6069 2002-04-23  Colin Walters  <walters@verbum.org>
6071         * buffer.c (syms_of_buffer): Doc fix.
6073 2002-04-23  Gerd Moellmann  <gerd@gnu.org>
6075         * xterm.c (notice_overwritten_cursor): Handle the special case
6076         of the cursor being in the first blank non-text line at the
6077         end of a window.
6079         * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
6080         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
6081         (x_display_and_set_cursor): Don't set phys_cursor_width here, for
6082         bar cursors only, to make phys_cursor_width contain what its name
6083         suggests.
6084         (notice_overwritten_cursor): Consider the cursor image erased if
6085         the output area intersects the cursor image in y-direction.
6087 2002-04-23  Simon Marshall  <simon@gnu.org>
6089         * xfns.c (x_set_mouse_color): Change default for cross_cursor
6090         to XC_hand2.
6092 2002-04-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6094         * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
6096 2002-04-22  Kim F. Storm  <storm@cua.dk>
6098         * textprop.c (remove_properties): Fixed trap for malformed plist.
6100 2002-04-22  Richard M. Stallman  <rms@gnu.org>
6102         * cmds.c (Fend_of_line): Handle intangible text in mid line.
6104         * window.c (make_window): Initialize height_fixed_p,
6105         last_cursor_off_p, and p->cursor_off_p slots.
6107 2002-04-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6109         * fns.c (use-dialog-box): Doc fix.
6111 2002-04-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6113         * xterm.c (note_mode_line_or_margin_highlight): Remove unused
6114         variables `row', `i' and `area'.
6115         (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
6116         toolkit library.
6118 2002-04-19  Stefan Monnier  <monnier@cs.yale.edu>
6120         * xfaces.c (clear_font_table): Don't free the default font of
6121         a frame even if it's on another display.
6122         (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
6123         that could be Qt.
6125 2002-04-19  Juanma Barranquero  <lektu@terra.es>
6127         * indent.c (Fmove_to_column): Remove unused local variable
6128         `next_boundary_byte'.
6129         (current_column_1): Likewise.
6131 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
6133         * msdos.c (Qhbar): New variable.
6134         (syms_of_msdos): Intern and staticpro it.
6135         (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
6136         cursor type.
6138 2002-04-19  Dave Lambert  <dlambert@acm.org>
6140         Theses change implement an underscore-like (`hbar') cursor.
6142         * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
6144         * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
6145         Handle the `hbar' cursor type.
6146         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
6148         * xfns.c (Qhbar): New variable.
6149         (syms_of_xfns): Intern and staticpro it.
6150         (x_specified_cursor_type): Handle `hbar' cursor.
6152         * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
6153         not defined.
6155 2002-04-18  Richard M. Stallman  <rms@gnu.org>
6157         * textprop.c (remove_properties): New arg LIST allows scanning
6158         either a list or a plist.
6159         (interval_has_some_properties_list): New function, like
6160         interval_has_some_properties using list instead of plist.
6161         All callers changed.
6162         (Fremove_list_of_text_properties): New function.
6163         (syms_of_textprop): Defsubr it.
6165 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
6167         * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
6169 2002-04-17  Juanma Barranquero  <lektu@terra.es>
6171         * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
6173 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
6175         * window.c (coordinates_in_window): Don't report on margin area
6176         if its width is zero.
6178 2002-04-16  Jason Rumney  <jasonr@gnu.org>
6180         * w32fns.c (Fx_file_dialog): Decode file name before using.
6182         * w32term.c (construct_drag_n_drop): Likewise.
6184 2002-04-16  Eli Zaretskii  <eliz@is.elta.co.il>
6186         * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
6187         store load-history in pure space.
6189         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
6191 2002-04-16  Stefan Monnier  <monnier@cs.yale.edu>
6193         * xterm.c (Qlatin_1, Qutf_8): New vars.
6194         (syms_of_xterm): Initialize them.
6195         (XTread_socket): Eliminate incorrect optimization that tried to avoid
6196         decoding the output of X*LookupString.
6197         Always use latin-1 to decode the output of XLookupString.
6198         Try Xutf8LookupString if XmbLookupString failed.
6200         * region-cache.c (new_region_cache): Use BEG.
6202 2002-04-16  Gerd Moellmann  <gerd@gnu.org>
6204         * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
6205         configuration files.
6206         (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
6207         returns 0.
6209 2002-04-15  Andreas Schwab  <schwab@suse.de>
6211         * config.in: Regenerated using autoheader.
6213         * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
6214         m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
6215         m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
6216         m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
6217         m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
6218         m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
6219         m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
6220         m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
6221         m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
6222         m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
6223         m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
6224         m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
6225         m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
6226         m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
6227         m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
6228         s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
6229         STACK_DIRECTION, now set by autoconf.
6231 2002-04-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6233         * dispnew.c (marginal_area_string): Sort arguments.
6235         * dispextern.h (marginal_area_string): Add prototype.
6237 2002-04-13  Richard M. Stallman  <rms@gnu.org>
6239         * fileio.c (Finsert_file_contents):
6240         Don't call temp_output_buffer_setup--do just part, by hand.
6242         * coding.c (run_pre_post_conversion_on_str):
6243         Don't call temp_output_buffer_setup--do just part, by hand.
6245         * keyboard.c (command_loop_1): Don't call start_hourglass
6246         or cancel_hourglass when executing a macro.
6248         * marker.c (count_markers): New function.
6250         * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
6251         grow without limit.  Move recently used elements to the front.
6253 2002-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
6255         * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
6257 2002-04-12  Gerd Moellmann  <gerd@gnu.org>
6259         * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
6260         rows marginal areas.
6261         (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
6262         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
6264         * dispnew.c (marginal_area_string): Check that glyph row is enabled.
6266 2002-04-12  Dave Love  <fx@gnu.org>
6268         * dispnew.c (marginal_area_string): New.
6270         * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
6271         (Qleft_margin, Qright_margin): Declare.
6272         (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
6274         * xterm.c (note_mode_line_or_margin_highlight): Renamed from
6275         note_mode_line_highlight and extended.
6277         * keyboard.c (Qleft_margin, Qright_margin): Declare.
6278         (make_lispy_event): Deal with mouse events in margins.
6280 2002-04-12  Stefan Monnier  <monnier@cs.yale.edu>
6282         * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
6284         * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
6285         than deactivating the mark if tmm is set to `lambda'.
6286         (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
6287         Use a single event for HELP_EVENT.
6288         (Fexecute_extended_command): Save last_point_position.
6290 2002-04-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6292         * lisp.h (Fpropertize): Add prototype.
6294         * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
6296 2002-04-10  Colin Walters  <walters@verbum.org>
6298         * config.in: Add HAVE_SHARED_GAME_DIR.
6300         * callproc.c: (Vgame_score_directory): New variable.
6301         (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
6303 2002-04-10  Richard M. Stallman  <rms@gnu.org>
6305         * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
6307 2002-04-09  Stefan Monnier  <monnier@cs.yale.edu>
6309         * minibuf.c (read_minibuf): Use empty_string.
6310         (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
6311         Short-circuit the search as soon as it "failed".
6312         (Fall_completions): Allow lambda forms and lists of strings for alist.
6313         (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
6314         when require_match is nil.
6315         (Ftest_completion): Rename from `test_completion' and export to elisp.
6316         Call the predicate also when alist is a list.
6317         Obey Vcompletion_regexp_list.
6318         (do_completion, Fminibuffer_complete_and_exit): Use it.
6319         (Fassoc_string): Rename from `assoc_for_completion'.
6320         Allow list of strings as well and export to elisp.
6322 2002-04-08  Stefan Monnier  <monnier@cs.yale.edu>
6324         * puresize.h (BASE_PURESIZE): Increase to 900KB.
6326 2002-04-08  Juanma Barranquero  <lektu@terra.es>
6328         * w32.c (sys_accept): Don't hide variable `s'.
6330 2002-04-05  Gerd Moellmann  <gerd@gnu.org>
6332         * callint.c (Fcall_interactively): Use INTEGERP instead of
6333         NUMBERP for checking Vhistory_length.
6335 2002-04-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6337         * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
6338         Doc fix to reflect it.
6340 2002-04-04  Richard M. Stallman  <rms@gnu.org>
6342         * xdisp.c (display_mode_element): New arg RISKY.
6343         Disregard text props found or specified within a variable
6344         that isn't marked risky-local-variable.
6345         (Qrisky_local_variable): New variable.
6346         (syms_of_xdisp): Init and staticpro it.
6348 2002-04-04  Stefan Monnier  <monnier@cs.yale.edu>
6350         * undo.c (record_point): New fun.
6351         (record_delete, record_insert): Use it.
6353 2002-04-03  Juanma Barranquero  <lektu@terra.es>
6355         * doc.c (Fdocumentation): Add missing parentheses.
6356         (Fdocumentation_property): Likewise.
6358 2002-04-03  Stefan Monnier  <monnier@cs.yale.edu>
6360         * doc.c (Fdocumentation, Fdocumentation_property): When the doc
6361         data is 0, just return nil.
6363 2002-04-03  Eli Zaretskii  <eliz@is.elta.co.il>
6365         * msdos.c (syms_of_msdos): Fix last change with
6366         mouse_autoselect_window.
6368 2002-04-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6370         * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
6371         mouse_autoselect_window.
6373 2002-04-02  Stefan Monnier  <monnier@cs.yale.edu>
6375         * keyboard.c (make_lispy_event): Handle unknown keysyms together
6376         with system-specific keysyms.  Use it also for unknown function keys.
6378         * doc.c (reread_doc_file): Return whether reload was attempted.
6379         (Fdocumentation, Fdocumentation_property): Don't try to reload
6380         if the doc is 0 and only ask once.
6382         * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
6384 2002-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
6386         * keyboard.c (read_char): If the event was Qselect_window,
6387         restore timer_idleness_start_time to its previous value.
6389         * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
6391 2002-04-01  Stefan Monnier  <monnier@cs.yale.edu>
6393         * region-cache.c (new_region_cache): Use BEG.
6395         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
6396         Use BEG and BEG_BYTE.
6398         * doc.c (get_doc_string): Return nil if the location is wrong.
6399         (reread_doc_file): New fun.
6400         (Fdocumentation, Fdocumentation_property):
6401         Call it if get_doc_string fails.
6402         (Fsnarf_documentation): Make it work for a dumped Emacs.
6404         * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
6405         Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
6407         * charset.c (Fstring): Allow 0 arguments.
6409         * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
6411         * process.c (DATAGRAM_CONN_P, list_processes_1)
6412         (Fprocess_datagram_address, Fset_process_datagram_address)
6413         (Fset_network_process_options, server_accept_connection):
6414         Fix some int/Lisp_Object confusions (thank you union types).
6416 2002-04-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6418         * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
6420         * w32term.c: Likewise.
6421         (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
6423         * keyboard.c (Qselect_window): New symbol.
6424         (head_table): Use it.
6425         (keys_of_keyboard): Bound select-window event to handle-select-window.
6426         (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
6428         * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
6429         (last_window): New variable.
6430         (XTread_socket): Generate SELECT_WINDOW_EVENTs.
6431         (note_mouse_movement): Remove reimplemented code in #if 0.
6432         (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
6433         Emacs windows.
6435         * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
6437 2002-03-31  Gerd Moellmann  <gerd@gnu.org>
6439         * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
6440         Callers changed.
6442 2002-03-30  Richard M. Stallman  <rms@gnu.org>
6444         * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
6445         loop whenever it stops making progress.
6447         * widget.c (set_frame_size): Don't call change_frame_size.
6449 2002-03-30  Gerd Moellmann  <gerd@gnu.org>
6451         * dispnew.c (direct_output_for_insert):
6452         Call mark_window_display_accurate.
6454 2002-03-29  Jason Rumney  <jasonr@gnu.org>
6456         * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
6458 2002-03-29  Eli Zaretskii  <eliz@is.elta.co.il>
6460         * Makefile.in (lread.o): Depend on coding.h.
6462         * lread.c (openp, Fload): Encode the file name before passing it
6463         to `stat', `access', and `emacs_open'.
6464         (openp): GCPRO the encoded file name.  Don't recompute Lisp
6465         strings unnecessarily.
6467 2002-03-29  Kim F. Storm  <storm@cua.dk>
6469         * fns.c (Flax_plist_put): Doc fix.
6471 2002-03-28  Miles Bader  <miles@gnu.org>
6473         * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
6475 2002-03-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6477         * process.c (set-network-process-options): Add usage.
6478         (make-network-process): Doc fix.
6480 2002-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
6482         * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
6484 2002-03-26  Richard M. Stallman  <rms@gnu.org>
6486         * fns.c (Fsubstring_no_properties): New function.
6487         (Flax_plist_get, Flax_plist_put): New functions.
6488         (syms_of_fns): defsubr them.
6490         * xdisp.c (update_menu_bar): Test only update_mode_lines;
6491         don't test or alter w->update_mode_line.
6493         * window.c (Fdisplay_buffer): Doc fix.
6495 2002-03-24  Richard M. Stallman  <rms@gnu.org>
6497         * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
6499 2002-03-24  Gerd Moellmann  <gerd@gnu.org>
6501         * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
6502         (Fdefmacro): Handle `(declare ...)'.
6503         (syms_of_eval) <Qdeclare>: Initialize and staticpro.
6504         (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
6506 2002-03-24  Jason Rumney  <jasonr@gnu.org>
6508         * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
6509         (xbm_file_p): Add prototypes.
6510         (xbm_format, xbm_image_p): Sync with xfns.c.
6511         (reflect_byte): New function.
6512         (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
6513         (xbm_load_image): Create bitmaps with a depth of 1.
6514         (init_xfns): Enable XBM images.
6516 2002-03-23  Jason Rumney  <jasonr@gnu.org>
6518         * w32term.c (w32_handle_tool_bar_click): Detect up and down events
6519         correctly.  Do not pass up_modifier to keyboard buffer.
6521         * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
6523 2002-03-22  Stefan Monnier  <monnier@cs.yale.edu>
6525         * Makefile.in (bootstrapclean): New target.
6526         (bootstrap-temacs, bootstrap-doc): Remove.
6527         (bootstrap-emacs): Use a bog-standard `temacs'.
6528         Don't bother to build a DOC file.
6530         * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
6532         * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
6533         in temacs even if !CANNOT_DUMP.
6534         (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
6536         * alloc.c (check_pure_size): Only output a warning.
6538 2002-03-22  Jason Rumney  <jasonr@gnu.org>
6540         * w32fns.c (Fx_create_frame): Enable tool-bar when images are
6541         supported.
6543         * w32term.c (zv_bits): Declare as short, for word alignment.
6544         (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
6545         (syms_of_w32term): Define x-use-underline-position-properties.
6547         * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
6548         (clear_image_cache): Block input, fix logic, clear matrices in
6549         all frames that share this cache.
6551 2002-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
6553         * emacs.c (main): Update the Copyright year in the blurb printed
6554         by "emacs --version".
6556         * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
6558         * xterm.c (XTread_socket): If XK_ISO_Lock and
6559         XK_ISO_Last_Group_Lock are defined, handle keysyms between
6560         XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
6562 2002-03-21  Kim F. Storm  <storm@cua.dk>
6564         * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
6565         menu-bar bindings in keymap and local-map properties _are_ used.
6566         But try keymap property first in accordance with 2002-01-03 patch.
6567         Added comment describing why this is not always reliable.
6568         (tool_bar_items): Ditto for tool-bar.
6570 2002-03-21  Jason Rumney  <jasonr@gnu.org>
6572         * w32fns.c (x_clear_image_1): Disable color table code.
6574 2002-03-21  Kim F. Storm  <storm@cua.dk>
6576         * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
6577         removed the wrong version of the DEFUN macro; fixed it.
6579         * fns.c (Ffeaturep): Allow subfeature to be a list (test using
6580         Fmember rather than Fmemq).
6581         (Fprovide): Check that subfeatures is a list.
6583         * process.c (QCfeature, QCdatagram): Removed variables.
6584         (QCtype, Qdatagram): New variables.
6585         (network_process_featurep): Removed function.
6586         (Fmake_network_process): Removed :feature check.
6587         Use :type 'datagram instead of :datagram t to create a datagram
6588         socket.  This allows us to add other connection types (e.g. raw
6589         sockets) later in a consistent manner.
6590         (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
6591         supported subfeatures for feature make-network-process.
6592         (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
6593         Intern and staticpro QCtype and Qdatagram.
6594         (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
6596         * xfns.c: (QCtype): Remove duplicate declaration and
6597         initialization (is now declared in process.c).
6599         * w32fns.c: (QCtype): Remove duplicate declaration and
6600         initialization (is now declared in process.c).
6602 2002-03-21  Richard M. Stallman  <rms@gnu.org>
6604         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
6605         (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
6606         when jumping to `fail' to avoid undoing reg changes in the
6607         last iteration of the loop.
6608         (GET_UNSIGNED_NUMBER): Skip spaces around the number.
6610         * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
6611         Depend on process.h.
6613 2002-03-20  Jason Rumney  <jasonr@gnu.org>
6615         Most of the following changes are still conditional on HAVE_IMAGES
6616         which is not set by default on Windows.
6618         * emacs.c (main) [WINDOWSNT]: Call init_xfns.
6620         * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
6621         (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
6622         (four_corners_best, x_clear_image_1, x_clear_image)
6623         (x_alloc_image_color, postprocess_image)
6624         (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
6625         (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
6626         (init_xfns, syms_of_w32fns): Initialize image functions and constants.
6628         * w32gui.h (struct XImage): Define.
6630         * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
6631         extract mouse co-ordinates.
6633 2002-03-20  Jason Rumney  <jasonr@gnu.org>
6635         * w32.c (init_winsock): Dynamically load new server and UDP
6636         socket functions.
6637         (socket_to_fd): New function.
6638         (sys_socket): Use it.
6639         (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
6640         (sys_recvfrom, sys_sendto): New wrapper functions.
6642         * process.c (QCfamily, QCfilter): Remove duplicate declaration
6643         and initialization.
6645         * makefile.w32-in (LIBS): Remove $(WSOCK32).
6647 2002-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
6649         * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr):
6650         Don't use "sun" as a variable, it's a predefined constant on Sun
6651         machines.
6653 2002-03-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6655         * bytecode.c (Fbyte_code): Revert last change.
6657 2002-03-19  Kim F. Storm  <storm@cua.dk>
6659         * makefile.w32-in (LIBS): Add $(WSOCK32).
6660         From David Ponce <dponce@voila.fr>.
6662 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6664         * process.c (wait_reading_process_input): Move variables `pname'
6665         and `pnamelen' down where they are used.
6667         * bytecode.c (Fbyte_code): Discard unused computed value to
6668         prevent gcc warning.
6670         * lisp.h (Fplist_member): Add prototype.
6672 2002-03-18  Kim F. Storm  <storm@cua.dk>
6674         * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
6675         HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and HAVE_SYS_UN_H.
6677         * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
6678         Remove explicit GNU_LINUX settings for datagram support.
6680 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6682         * process.c (Fmake_network_process): Remove unused variable `sa'.
6683         Doc fix.  Add usage:.
6684         (set_socket_options): Remove unused variables `optnum' and `opttype'.
6686 2002-03-17  Richard M. Stallman  <rms@gnu.org>
6688         * xdisp.c (cursor_type_changed): New variable.
6689         (redisplay_internal): Redisplay all windows if cursor_type_changed.
6690         Clear it when clearing windows_or_buffers_changed.
6691         (try_cursor_movement, redisplay_window, try_window_id)
6692         (try_window_reusing_current_matrix): Test cursor_type_changed
6693         along with windows_or_buffers_changed.
6695         * window.h (cursor_type_changed): New variable.
6697         * xfns.c (x_set_cursor_type): Set cursor_type_changed,
6698         not update_mode_lines, and always set it to 1.
6700         * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
6701         if no frames needed redrawing.
6703 2002-03-17  Kim F. Storm  <storm@cua.dk>
6705         The following changes add support for network server processes,
6706         datagram connections, and local (unix) sockets.
6708         * process.h (struct Lisp_Process): New member log.
6709         Doc fix: Member command used to indicate stopped network process.
6710         Doc fix: Member childp contains plist for network process.
6711         Doc fix: Member kill_without_query is inverse of query-on-exit flag.
6713         * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
6714         (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
6715         (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
6716         New variables.
6717         (NETCONN1_P): New macro.
6718         (DATAGRAM_SOCKETS): New conditional symbol.
6719         (datagram_address): New array.
6720         (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
6721         (status_message): Use concat3.
6722         (Fprocess_status): Add `listen' status to doc string.  Return `stop'
6723         for a stopped network process.
6724         (Fset_process_buffer): Update contact plist for network process.
6725         (Fset_process_filter): Ditto.  Don't enable input for stopped
6726         network processes.  Server must listen, even if filter is t.
6727         (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
6728         New functions.
6729         (Fprocess_kill_without_query): Removed.  Now defined in simple.el.
6730         (Fprocess_contact): Added KEY argument.  Handle datagrams.
6731         (list_processes_1): Optionally show only processes with the query
6732         on exit flag set.  Dynamically adjust column widths.  Omit tty
6733         column if not needed.  Report stopped network processes.
6734         Identify server and datagram network processes.
6735         (Flist_processes): New optional arg `query-only'.
6736         (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
6737         (conv_lisp_to_sockaddr, set_socket_options)
6738         (network_process_featurep, unwind_request_sigio): New helper functions.
6739         (Fprocess_datagram_address, Fset_process_datagram_address):
6740         (Fset_network_process_options): New lisp functions.
6741         (Fopen_network_stream): Removed.  Now defined in simple.el.
6742         (Fmake_network_process): New lisp function.  Code is based on previous
6743         Fopen_network_stream, but heavily reworked with new property list based
6744         argument list, support for datagrams, server processes, and local
6745         sockets in addition to old client-only functionality.
6746         (server_accept_connection): New function.
6747         (wait_reading_process_input): Use it to handle incoming connects.
6748         Do not enable input on a new connection if process is stopped.
6749         (read_process_output): Handle datagram sockets. Use 2k buffer for them.
6750         (send_process): Handle datagram sockets.
6751         (Fstop_process, Fcontinue_process): Apply to network processes.  A stopped
6752         network process is indicated by setting command field to t .
6753         (Fprocess_send_eof): No-op if datagram connection.
6754         (Fstatus_notify): Don't read input for a stream server socket or a
6755         stopped network process.
6756         (init_process): Initialize datagram_address array.
6757         (syms_of_process): Intern and staticpro new variables, defsubr new
6758         functions.
6760 2002-03-16  Jason Rumney  <jasonr@gnu.org>
6762         * w32fns.c (w32_to_all_x_charsets): Return correct type in
6763         startup case.
6765 2002-03-16  Richard M. Stallman  <rms@gnu.org>
6767         * xdisp.c (redisplay_internal, redisplay_windows):
6768         Use list_of_error to call internal_condition_case_1.
6769         (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
6770         so as to catch all errors with no possibility of debugger redisplay.
6771         (list_of_error): New variable.
6772         (syms_of_xdisp): Init and staticpro it.
6774         * print.c (print_object): Delete `\ ' from printed rep of frame.
6776 2002-03-15  Eli Zaretskii  <eliz@is.elta.co.il>
6778         * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
6779         until its implementation is fixed.
6781 2002-03-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6783         * xfns.c (png_load): Remove unused variable `gamma_str'.
6785 2002-03-14  Richard M. Stallman  <rms@gnu.org>
6787         * xfns.c (x_real_positions): Handle failure in XQueryTree.
6789 2002-03-14  Miles Bader  <miles@gnu.org>
6791         * intervals.c (adjust_for_invis_intang): New function.
6792         (set_point_both): Use `adjust_for_invis_intang' to do most of the
6793         work for dealing with invisible+intangible regions.  Do so before
6794         and after both forward and backward movements, to handle both
6795         front-sticky and rear-sticky cases.
6796         * textprop.c (text_property_stickiness): Function moved here from
6797         `editfns.c'.
6798         * intervals.h (text_property_stickiness): New declaration.
6799         * editfns.c (char_property_eq): Function removed.
6800         (text_property_stickiness): Function moved to `textprop.c'.
6802 2002-03-13  Jason Rumney  <jasonr@gnu.org>
6804         * config.in: Add STRFTIME_NO_POSIX2.
6806         * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
6807         and %OX when underlying strftime does not.
6809 2002-03-13  Stefan Monnier  <monnier@cs.yale.edu>
6811         * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
6812         Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
6813         line) to avoid annoying flicker.
6814         (xm_scroll_callback): Get rid of the now unnecessary kludge.
6815         (XTread_socket): Mark it static.
6817         * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
6819 2002-03-13  Kim F. Storm  <storm@cua.dk>
6821         * puresize.h (BASE_PURESIZE): Increase to 775000.
6823 2002-03-12  Juanma Barranquero  <lektu@terra.es>
6825         * editfns.c (syms_of_editfns): Fix typo.
6827 2002-03-12  Gerd Moellmann  <gerd@gnu.org>
6829         * xsmfns.c: Include stdio.h because termhooks.h needs it.
6830         Include termopt.h for interrupt_input.
6832 2002-03-11  Andreas Schwab  <schwab@suse.de>
6834         * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
6836 2002-03-11  Gerd Moellmann  <gerd@gnu.org>
6838         * xterm.c (note_mouse_movement): Put code for
6839         x_autoselect_window_p in #if 0.
6841         * lread.c (Fload): Don't assume that message_with_string uses the
6842         string it is given like a C string.
6844 2002-03-10  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
6846         * xterm.h (x_session_check_input, x_session_initialize): Declared.
6848         * xterm.c: (XTread_socket): Add call to x_session_check_input and
6849         x_session_have_connection.
6850         (x_initialize): Add call to x_session_initialize.
6852         * termhooks.h (enum event_kind): Add save_session_event.
6854         * keyboard.c: Add Emacs event save_session_event.
6856         * emacs.c (main): Add call to syms_of_xsmfns.
6858         * lisp.h: Declare syms_of_xsmfns as extern.
6860         * config.in: Add HAVE_X_SM.
6862         * Makefile.in (LIBXT): Add -lSM -lICE
6863         if HAVE_X_SM and not USE_X_TOOLKIT.
6864         (XOBJ): New file xsmfns.c added.
6866         * xsmfns.c: New file for X session management.
6868 2002-03-09  Jason Rumney  <jasonr@gnu.org>
6870         * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
6871         read-only when setting modified time.
6873 2002-03-08  Gerd Moellmann  <gerd@gnu.org>
6875         * xdisp.c (move_it_vertically_backward): At the end of the function,
6876         when moving forward by lines, treat terminal frames specially.
6878         * keyboard.c (echo_char): Make sure to add a separator between
6879         keys even if echo_dash hasn't been called.
6881         * xdisp.c: Use new string macros.
6882         (update_echo_area): Pass number of bytes to message3 instead of
6883         number of chars.
6884         (set_message_1): Don't access a string's size_byte directly.
6885         (decode_mode_spec_coding): Use number of bytes of eoltype string
6886         instead number of chars.
6888         * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
6890 2002-03-08  Juanma Barranquero  <lektu@terra.es>
6892         * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
6893         24-bit.
6895 2002-03-06  Jason Rumney  <jasonr@gnu.org>
6897         * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
6899 2002-03-06  Gerd Moellmann  <gerd@gnu.org>
6901         * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
6902         (cancel_echoing, echo_length, echo_truncate): Changed to
6903         work with new kboard definition.
6904         (echo_now): Use message3_nolog instead of message2_nolog.
6906         * alloc.c (mark_kboards): Mark echo_string.
6908         * keyboard.h (ECHOBUFSIZE): Removed.
6909         (struct kboard): Member echoptr removed, member echobuf renamed
6910         to echo_string.
6912         * xdisp.c (message_with_string): Use Fformat instead of doprnt and
6913         message3 instead of message2 to display the message using STRING's
6914         text properties.
6916 2002-03-05  Andreas Schwab  <schwab@suse.de>
6918         * xdisp.c (hscroll_margin): Change to EMACS_INT.
6920 2002-03-05  Per Abrahamsen  <abraham@dina.kvl.dk>
6922         * frame.c (default-frame-alist): Explain that setting it doesn't
6923         affect existing frames.
6925 2002-03-05  Stefan Monnier  <monnier@cs.yale.edu>
6927         * indent.c (skip_invisible): Fix my brain fart.
6929         * dispnew.c (sit_for): Don't wait if executing a kbd macro.
6931 2002-03-04  Stefan Monnier  <monnier@cs.yale.edu>
6933         * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
6934         * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
6935         * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
6936         * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
6937         and variables to use EMACS_INT instead of just int.
6939         * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
6941 2002-03-04  Eli Zaretskii  <eliz@is.elta.co.il>
6943         * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
6944         environment, pass it down with corrected value.
6946 2002-03-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6948         * lread.c (read_filtered_event): Do not call start_hourglass
6949         before returning.
6951 2002-03-04  Juanma Barranquero  <lektu@terra.es>
6953         * w32term.c (x_display_and_set_cursor): Fix typo.
6955 2002-03-03  Richard M. Stallman  <rms@gnu.org>
6957         * fileio.c (Fmake_temp_name): Doc fix.
6959 2002-03-03  Gary Wong  <gtw@gnu.org>
6961         * termcap.c [!emacs]: Replace ospeed for building standalone
6962         libtermcap, for binary compatibility.
6964         * tparam.c [!emacs]: Move #define of bcopy to after string.h.
6966 2002-03-03  Richard M. Stallman  <rms@gnu.org>
6968         * xrdb.c (file_p): Rename arg `path' to `filename'.
6970         * abbrev.c (Fexpand_abbrev): Increment plist as use count
6971         only if it is an integer.
6973         * xfns.c (png_load): Set screen_gamma based on f->gamma.
6974         If png_get_sRGB gives an answer, call png_set_gamma
6975         using the default image gamma value.
6977         * lread.c (read1): When reading from a file, default string to
6978         multibyte only if it has some multibyte characters.
6980         * print.c (print_object): Output multibyte chars 128...255
6981         using \x even if ! print_escape_multibyte.
6983         * xdisp.c (display_mode_element): Move the places where
6984         bytepos, charpos, this, and lisp_string are set.
6985         Use lisp_string to set bytepos.
6987         * xdisp.c (redisplay_internal):
6988         Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
6990         * xdisp.c (display_mode_element): Merge properties specified with
6991         :propertize onto those that come with the string.
6993 2002-03-03  Eli Zaretskii  <eliz@is.elta.co.il>
6995         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
6996         automatic-hscrolling.  Users changed.
6997         <hscroll-margin>: Renamed from automatic-hscroll-margin.
6998         Users changed.
6999         <hscroll-step>: Renamed from automatic-hscroll-step.  Users changed.
7001 2002-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
7003         * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
7005 2002-03-02  Kim F. Storm  <storm@cua.dk>
7007         * window.c (Fminibuffer_selected_window): New function.
7008         (syms_of_window): Defsubr it.
7010 2002-03-01  Kim F. Storm  <storm@cua.dk>
7012         * window.h (struct window): New member phys_cursor_width.
7014         * window.c (make_window, replace_window): Init phys_cursor_width.
7016         * xterm.c (x_display_and_set_cursor): Blink box cursor using
7017         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
7019         * w32term.c (x_display_and_set_cursor): Blink box cursor using
7020         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
7022         * lisp.h (GCPRO6): New macro.
7024         * process.c (Fopen_network_stream): Use GCPRO6.
7026 2002-03-01  Kim F. Storm  <storm@cua.dk>
7028         * process.c (Qconnect, Qfailed): New variables.
7029         (syms_of_process): Intern and staticpro them.
7030         (Fprocess_status): Document connect and failed return values.
7031         [NON_BLOCKING_CONNECT]: New conditional.
7032         (connect_wait_mask, num_pending_connects): New variables.
7033         (status_message): Convert Qfailed status.
7034         (Fopen_network_stream): Added support for non-blocking connect.
7035         New optional args: filter, sentinel, non_blocking.  Doc updated.
7036         [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
7037         (deactivate_process): Handle pending non-blocking connect.
7038         (wait_reading_process_input): Poll for status of non-blocking
7039         connects.  Exec sentinel directly when connect succeeds.
7040         (status_notify): Don't read process output if not yet connected.
7042 2002-02-28  Kim F. Storm  <storm@cua.dk>
7044         * window.c: (minibuf_selected_window): Renamed from
7045         Vminibuf_selected_window.  Users changed.
7046         (syms_of_window): Staticpro it.
7048 2002-02-26  Kim F. Storm  <storm@cua.dk>
7050         The following changes add a new Vminibuf_selected_window variable
7051         which is similar to Vminibuf_scroll_window, but which is only set
7052         on entry to the minibuffer (from a non-minibuffer window):
7054         * window.c: (Vminibuf_selected_window): New variable.
7055         (struct save_window_data): New member minibuf_selected_window.
7056         (Fset_window_configuration): Restore Vminibuf_selected_window.
7057         (Fcurrent_window_configuration): Save Vminibuf_selected_window.
7058         Set minibuf_scroll_window member to nil if minibuf_level is 0.
7059         (compare_window_configurations): Compare minibuf_selected_window.
7061         * window.h: (Vminibuf_selected_window): Declare extern.
7063         * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
7064         entry to minibuffer or on entry from a non-minibuffer window.
7066         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
7067         Vminibuf_selected_window instead of Vminibuf_scroll_window.
7069         * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
7070         instead of Vminibuf_scroll_window when deciding in which window
7071         the region should be highlighted.  Consequently, the region remains
7072         highlighteded even when a completion buffer is also displayed.
7074 2002-02-26  Eli Zaretskii  <eliz@is.elta.co.il>
7076         * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
7078         * xselect.c (Qcompound_text_with_extensions): Renamed from
7079         Qcompound_text_no_extensions.
7080         (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
7082 2002-02-26  Juanma Barranquero  <lektu@terra.es>
7084         * w32proc.c (syms_of_ntproc): Doc fix.
7086 2002-02-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7088         * intervals.h: Include "dispextern.h" unconditionally.
7090 2002-02-24  Jason Rumney  <jasonr@gnu.org>
7092         * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
7093         and disp-table.elc.
7094         (lisp): Add emacs-lisp/backquote.elc.
7096 2002-02-24  Kim F. Storm  <storm@cua.dk>
7098         * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
7099         The validation of the event type was too strict as it didn't
7100         allow string events; buffer names are used in bindings for
7101         menu-bar-select-buffer (see `menu-bar-update-buffers').
7103 2002-02-23  Kim F. Storm  <storm@cua.dk>
7105         The following changes rework my patch of 2002-02-06 which
7106         added command remapping by entering the commands directly into
7107         the keymaps.  Now, command remapping uses an explicit `remap'
7108         prefix in the keymaps, i.e. [remap COMMAND].
7110         * keymap.c (Qremap, remap_command_vector): New variables.
7111         (is_command_symbol): Removed function.
7112         (Fdefine_key): No longer accept a symbol for KEY.
7113         Added validation of [remap COMMAND] argument for KEY.
7114         The DEF is no longer required to be a symbol when remapping a command.
7115         (Fremap_command): New function to remap command through keymaps.
7116         (Flookup_key): Perform command remapping initiated by
7117         Fremap_command directly for speed.
7118         (Fkey_binding): Use Fremap_command for command remapping.
7119         (where_is_internal): Handle new command remapping representation.
7120         (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
7121         staticpro them.  Defsubr Fremap_command.
7123         * keymap.h (Fremap_command): Declare extern.
7124         (is_command_symbol): Remove extern.
7126         * keyboard.c (command_loop_1): Use Fremap_command for command
7127         remapping; now try command remapping for all symbols.
7129 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
7131         * coding.h (run_pre_post_conversion_on_str): Add prototype.
7133 2002-02-23  Jason Rumney  <jasonr@gnu.org>
7135         * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
7136         on the string before encoding it.
7137         (Fw32_get_clipboard_data): Run post-read-conversion on the string
7138         after decoding it.
7140         * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
7142 2002-02-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7144         * w32term.c (enter_timestamp): Remove unused static variable to
7145         prevent warning.
7147         * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
7149 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
7151         * w16select.c (Fw16_get_clipboard_data): Fix last change.
7153         * xselect.c (selection_data_to_lisp_data): Fix last change.
7155 2002-02-22  Jason Rumney  <jasonr@gnu.org>
7157         * w32term.h (struct w32_output): New member menu_command_in_progress.
7159         * w32menu.c (menubar_selection_callback): Free the menu and
7160         clear the menu_command_in_progress flag.
7162         * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
7163         (menu_free_timer): New variable.
7164         (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
7165         (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
7166         <WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
7167         menu command is in progress.
7168         <WM_COMMAND>: Set the menu_command_in_progress flag.
7169         Kill any menu_free_timer that is running.
7171         * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
7172         Call ExtTextOutA rather than ExtTextOut.
7174 2002-02-22  Eli Zaretskii  <eliz@gnu.org>
7176         * puresize.h (BASE_PURESIZE): Increase to 755000.
7178 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
7180         * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
7181         on the string before encoding it.
7182         (Fw16_get_clipboard_data): Run post-read-conversion on the string
7183         after decoding it.
7185 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
7187         Support for ICCCM  Extended Segments in X selections:
7189         * xselect.c <Qcompound_text_no_extensions>: New variable.
7190         (syms_of_xselect): Intern and staticpro it.
7191         (selection_data_to_lisp_data): Run post-read-conversion on decoded
7192         selection text.
7193         (lisp_data_to_selection_data): If next-selection-coding-system is
7194         compound-text-no-extensions, set the type of selection to be
7195         compound-text.
7197         * xterm.h (x_encode_text): Update prototype.
7199         * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
7200         callers changed.  If SELECTIONP is non-zero, run the
7201         pre-write-conversion function before encoding the selection text.
7203 2002-02-21  Kim F. Storm  <storm@cua.dk>
7205         * frame.c (syms_of_frame): Change mouse-highlight default to t.
7207         * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
7208         Correct composing of language-change event.
7210 2002-02-20  Kim F. Storm  <storm@cua.dk>
7212         * keyboard.c (menu_bar_items): Don't include keymap or local-map
7213         bindings at PT when building menu (the menu is not updated often
7214         enough for this to work reliable).
7215         (tool_bar_items): Likewise.
7216         (current_active_maps): Removed unused (and buggy) function.
7218 2002-02-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7220         * xfns.c (gif_load): Use correct width and height for GIF images.
7222 2002-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
7224         * floatfns.c (Fatan): Accept an optional second arg and call
7225         atan2 if passed 2 args.
7227 2002-02-18  Jason Rumney  <jasonr@gnu.org>
7229         * w32term.c (glyph_rect): Determine the row and glyph more precisely.
7231 2002-02-17  Jason Rumney  <jasonr@gnu.org>
7233         * w32term.c (x_autoselect_window_p): New variable.
7234         (syms_of_w32term): DEFVAR_BOOL and initialize it.
7235         (note_mouse_movement): Use it.
7237         * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
7239         * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
7241         * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
7242         New variables.
7243         (syms_of_w32fns): Intern and staticpro them.
7244         (x_frame_parms) <"fullscreen">: New parameter.
7245         (x_fullscreen_move, x_set_fullscreen): New functions.
7246         (x_set_frame_parameters): Support Qfullscreen.
7247         (x_real_positions): Save x/y_pixels_diff frame params.
7248         (x_figure_window_size): Support full-screen frames.
7249         (Fx_create_frame): Default the fullscreen parameter.
7251         * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
7252         (x_fullscreen_adjust): New functions.
7253         (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't  resize to
7254         fullscreen.  Call x_check_fullscreen_move, and set the
7255         want_fullscreen member of output_data.w32
7256         <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
7258         * w32term.h: New enum for FULLSCREEN_* constants.
7259         (struct w32_output): New members want_fullscreen, x_pixels_diff,
7260         y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
7261         (x-fullscreen-adjust): New prototype.
7263 2002-02-17  Kim F. Storm  <storm@cua.dk>
7265         * frame.c: (Vmouse_highlight): New variable.
7266         (syms_of_frame): DEFVAR_LISP it.
7268         * frame.h: (Vmouse_highlight): Declare extern.
7270         * xterm.h (struct x_display_info): Add mouse_face_hidden.
7272         * xterm.c (disable_mouse_highlight): Removed variable.
7273         (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
7274         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
7275         (XTread_socket): Turn mouse_face_hidden off after mouse movement,
7276         and on after keyboard input.
7277         (x_term_init): Initialize mouse_face_hidden.
7279         * msdos.h (struct display_info): Add mouse_face_hidden.
7281         * msdos.c (disable_mouse_highlight): Removed variable.
7282         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
7283         (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
7284         (internal_terminal_init): Initialize mouse_face_hidden.
7285         (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
7286         and on after keyboard input.
7288         * w32term.h (struct w32_display_info): Add mouse_face_hidden.
7290         * w32term.c (disable_mouse_highlight): Removed variable.
7291         (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
7292         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
7293         (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
7294         and on after keyboard input.
7295         (w32_initialize_display_info): Initialize mouse_face_hidden.
7297 2002-02-16  Eli Zaretskii  <eliz@is.elta.co.il>
7299         * msdos.c (last_mouse_window): New variable.
7300         (dos_rawgetc): Fix last change--if the mouse is in the same window
7301         as recorded in last_mouse_window, don't select this window.
7303         * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
7305         * msdos.c (x_autoselect_window_p): New variable.
7306         (syms_of_msdos): Defvar it.
7307         (dos_rawgetc): If x_autoselect_window_p is set, select the window in
7308         which the last mouse movement occured, unless it is already selected.
7310         * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
7311         New variables.
7312         (syms_of_xdisp): DEVFAR them.
7313         (hscroll_window_tree): Use automatic_hscroll_margin and
7314         Vautomatic_hscroll_step to compute the amount of window scrolling.
7316 2002-02-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7318         * xterm.c (x-autoselect-window): New variable.
7319         (note_mouse_movement): Use it.
7321         * keyboard.c: Do not include "systime.h" twice.
7323 2002-02-15  Andreas Schwab  <schwab@suse.de>
7325         * puresize.h (BASE_PURESIZE): Increase to 9/5.
7327         * alloc.c (NSTATICS): Increase to 1280.
7329 2002-02-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
7331         * alloc.c (NSTATICS): Bump to 1026.
7333         * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
7334         (Vx_super_keysym): New variables.
7335         (syms_of_xterm): DEFVAR_LISP them.
7336         (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
7337         variables to determine which keys to use for the various modifiers.
7339 2002-02-13  Kim F. Storm  <storm@cua.dk>
7341         * window.c: (Vmode_line_in_non_selected_windows): Removed.
7342         (mode_line_in_non_selected_windows): New variable.
7343         (syms_of_window): DEFVAR_BOOL it.
7345         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
7346         Use mode_line_in_non_selected_windows.
7347         (mode_line_in_non_selected_windows): Declare extern.
7348         (Vmode_line_in_non_selected_windows): Removed extern.
7350 2002-02-13  Richard M. Stallman  <rms@gnu.org>
7352         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
7353         (Fthis_single_command_keys, Fthis_single_command_raw_keys)
7354         (Fclear_this_command_keys): Doc fixes.
7356         * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
7357         (update_face_from_frame_parameter): Increment face_change_count
7358         and windows_or_buffers_changed to force redisplay using changed faces.
7360         * xdisp.c (QCpropertize): New variable.
7361         (mode_line_proptrans_alist): New variable.
7362         (display_mode_element): New arg PROPS; all calls changed.
7363         Implement this, for strings.
7364         Handle literal output of strings by sharing the
7365         main-line code for strings, using local var `literal'.
7366         Handle :propertize feature.
7367         (syms_of_xdisp): Initialze and staticpro QCpropertize and
7368         mode_line_proptrans_alist.
7370 2002-02-11  Kim F. Storm  <storm@cua.dk>
7372         * window.c: (Vmode_line_in_non_selected_windows): New variable.
7373         (syms_of_window): DEFVAR_LISP it.
7375         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
7376         (CURRENT_MODE_LINE_FACE_ID): Use it.
7377         (Vmode_line_in_non_selected_windows): Declare extern.
7379         * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
7380         to get mode line face.
7382 2002-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
7384         * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
7385         variables; cus-start.el doesn't need them anymore.
7387 2002-02-09  Kim F. Storm  <storm@cua.dk>
7389         * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
7390         reduction.  This fixes a display problem where stray newlines were
7391         inserted in the window (corrected by C-l).  Clarified code (IMHO).
7393 2002-02-09  Eli Zaretskii  <eliz@is.elta.co.il>
7395         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
7397         * xdisp.c (display_mode_lines): Fix last change.
7399 2002-02-09  Jason Rumney  <jasonr@gnu.org>
7401         * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
7402         match each other.
7403         (w32_load_system_font): Prevent Cleartype fonts from loading.
7404         (Fx_show_tip): Ensure tip frames are above other topmost windows.
7406 2002-02-09  Kim F. Storm  <storm@cua.dk>
7408         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
7409         (CURRENT_MODE_LINE_HEIGHT): Use it.
7410         (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
7412         * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
7413         (pos_visible_p, handle_face_prop): Likewise.
7414         (display_mode_lines): Likewise, but for the real selected window.
7415         (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
7417         * xfaces.c (Qmode_line_inactive): New face variable for mode-line
7418         in non-selected windows.
7419         (realize_basic_faces): Realize it.
7420         (syms_of_term): Intern and staticpro it.
7422 2002-02-08  Kim F. Storm  <storm@cua.dk>
7424         * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
7425         Changed mail addresses to emacs-devel@gnu.org.
7427 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
7429         * fileio.c (Fsubstitute_in_file_name): If the file name includes
7430         ~user, and there's no such user, don't discard everything before ~user.
7432         * floatfns.c (Fround): Doc fix.
7434 2002-02-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7436         * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
7438 2002-02-07  Stefan Monnier  <monnier@cs.yale.edu>
7440         * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
7442 2002-02-07  Kim F. Storm  <storm@cua.dk>
7444         * keymap.c (where_is_internal): Only check whether definition is
7445         remapped if it fulfills is_command_symbol.
7447 2002-02-07  Andreas Schwab  <schwab@suse.de>
7449         * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
7451         * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
7453 2002-02-06  Kim F. Storm  <storm@cua.dk>
7455         * keymap.c (Fdefine_key): Allow symbol as KEY argument for
7456         defining command remapping.  Doc updated.
7457         (Flookup_key): Remap command through keymap if KEY is a symbol.
7458         (is_command_symbol): New function.
7459         (Fkey_binding): Use it.  New optional argument NO-REMAP.
7460         Doc updated.  Callers changed.  Perform command remapping via
7461         recursive call unless that arg is non-nil.
7462         (where_is_internal): New argument no_remap.  Callers changed.
7463         Call recursively to find original key bindings for a remapped
7464         comand unless that arg is non-nil.
7465         (Fwhere_is_internal): New optional argument NO-REMAP.
7466         Doc updated.  Callers changed.  Pass arg to where_is_internal.
7468         * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
7469         (is_command_symbol): Added prototype.
7471         * keyboard.c (Vthis_original_command): New variable.
7472         (syms_of_keyboard): DEFVAR_LISP it.
7473         (command_loop_1): Set it, and perform command remapping.
7475 2002-02-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7477         * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
7479 2002-02-06  Jason Rumney  <jasonr@gnu.org>
7481         * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
7483 2002-02-06  Eli Zaretskii  <eliz@is.elta.co.il>
7485         * charset.c (get_charset_id): Use if-else instead of ?:.
7487 2002-02-06  Richard M. Stallman  <rms@gnu.org>
7489         * filelock.c (S_ISLNK): Define if not defined.
7491 2002-02-03  Richard M. Stallman  <rms@gnu.org>
7493         * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
7495         * lread.c (read1): Redesign strategy for force_multibyte and
7496         force_singlebyte.  Now is_multibyte records whether read_buffer
7497         is multibyte.  Encountering any multibyte character makes it so.
7499 2002-02-02  Stefan Monnier  <monnier@cs.yale.edu>
7501         * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
7502         with the same sequence, map that sequence to f10 rather than f0.
7504 2002-02-03  Andreas Schwab  <schwab@suse.de>
7506         * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
7507         latter never being defined on GNU/Linux.
7509 2002-02-02  Eli Zaretskii  <eliz@is.elta.co.il>
7511         * xfaces.c (realize_default_face): Don't set the weight and slant of
7512         the default face to Qnormal, unless these attributes are unspecified.
7514 2002-02-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7516         * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
7517         Call cancel_hourglass unconditionally.
7519         * eval.c (Fsignal): Remove duplicated declaration of
7520         the variable `display_hourglass_p'.
7522 2002-01-31  Richard M. Stallman  <rms@gnu.org>
7524         * editfns.c (region_limit): Nicer error message.
7526         * coding.c (decode_composition_emacs_mule):
7527         Give up if NCOMPONENT gets too large to index `component'.
7529         * callint.c (check_mark): New arg to specify clearer error message.
7530         Callers changed.
7532 2002-01-27  Richard M. Stallman  <rms@gnu.org>
7534         * minibuf.c (Fcompleting_read): Doc fix.
7536 2002-01-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7538         * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
7539         (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
7540         Fix doc-strings.
7542 2002-01-26  Richard M. Stallman  <rms@gnu.org>
7544         * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
7546         * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
7547         and scroll_up_aggressively.
7549 2002-01-26  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7551         * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
7553 2002-01-25  Stefan Monnier  <monnier@cs.yale.edu>
7555         * textprop.c (Fnext_property_change, Fnext_single_property_change)
7556         (Fprevious_property_change, Fprevious_single_property_change):
7557         Stay within the narrowed-buffer boundaries.
7559 2002-01-25  Eli Zaretskii  <eliz@is.elta.co.il>
7561         * term.c (Ftty_display_color_cells): New function.
7562         (syms_of_term): Defsubr it.
7563         (Ftty_display_color_cells, Ftty_display_color_p): Change the
7564         argument name to DISPLAY.  Doc fix.
7566         * dispextern.h: Add prototype for set_tty_color_mode and
7567         tty_setup_colors.
7569 2002-01-24  Jason Rumney  <jasonr@gnu.org>
7571         * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
7572         If region left to draw is not what was expected, mark the frame as
7573         garbaged.
7575         * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
7576         Combine the regions returned by BeginPaint and GetUpdateRect.
7578 2002-01-23  Jason Rumney  <jasonr@gnu.org>
7580         * w32term.c (x_update_window_begin): Only hide caret if
7581         w32_use_visible_system_caret is set.
7582         (x_update_window_end): Only show caret if
7583         w32_use_visible_system_caret is set.
7584         (syms_of_w32term): Handle SystemParametersInfo call failing.
7586         * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
7588 2002-01-22  Richard M. Stallman  <rms@gnu.org>
7590         * unexelf.c (unexec): Define n so as to cause compilation error
7591         for the code where people have often written n instead of nn.
7593         * .gdbinit (hookpost-run): Defined.
7595 2002-01-22  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7597         * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
7599 2002-01-21  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7601         * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
7602         if fullscreen is being set.
7604 2002-01-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7606         * minibuf.c (Fminibuffer_contents)
7607         (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
7608         (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
7610 2002-01-21  Richard M. Stallman  <rms@gnu.org>
7612         * window.c (check_frame_size): Fix minimum height calculation.
7614 2002-01-20  Ken Raeburn  <raeburn@gnu.org>
7616         * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
7617         height before comparison.
7618         (WINDOW_WANTS_HEADER_LINE_P): Likewise.
7620 2002-01-20  Jason Rumney  <jasonr@gnu.org>
7622         * w32term.c (w32_system_caret_width): Remove.
7623         (w32_use_visible_system_caret): New user flag.
7624         (syms_of_w32term): DEFVAR_BOOL it.  Initialize based on whether
7625         Windows reports a screen reader running.
7626         (x_update_window_begin): Hide the system caret.
7627         (x_update_window_end): Show the system caret.
7628         (x_display_and_set_cursor): Don't draw a cursor when
7629         w32_use_visible_system_caret is set.  Do not adjust width.
7631         * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
7632         (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
7633         <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
7634         the user requests it.  Use system default width when creating.
7635         <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
7637         * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
7638         New window messages.
7640 2002-01-20  Richard M. Stallman  <rms@gnu.org>
7642         * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
7644 2002-01-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7646         * doprnt.c (doprnt1): Fix typos in error call.
7648 2002-01-20  Eli Zaretskii  <eliz@is.elta.co.il>
7650         * unexelf.c (unexec) [__sgi]: Support the .got sections.
7652 2002-01-20  Jason Rumney  <jasonr@gnu.org>
7654         * w32term.c (w32_native_per_char_metric): Don't trust the metrics
7655         that Windows returns.  If a double check fails, try to guess how
7656         ExtTextOut is going to act.
7658         * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
7659         in place of stricmp.
7660         (w32_list_synthesized_fonts): Removed.
7661         (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
7662         (struct enumfont_t): New element; list.
7663         (enum_font_cb2): List all style and charset variations of a font.
7664         (Fw32_select_font): New optional argument; include_proportional.
7665         Exclude vertical fonts.  Exclude proportional fonts unless
7666         include_proportional is non-nil.
7667         (w32_enable_synthesized_fonts): Change to a boolean.
7668         (Fw32_send_sys_command): Doc fix.
7670 2002-01-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7672         * dispnew.c (update_frame): Move the variable `tem' to the block
7673         where it is used.
7675 2002-01-19  Jason Rumney  <jasonr@gnu.org>
7677         * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
7678         call to face-set-after-frame-default.
7680 2002-01-18  Richard M. Stallman  <rms@gnu.org>
7682         * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
7683         (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
7685 2002-01-17  Richard M. Stallman  <rms@gnu.org>
7687         * window.c (enlarge_window): When exceeding size of parent,
7688         directly delete all the siblings instead of trying to resize it.
7690 2002-01-17  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7692         * term.c (set_tty_color_mode): Remove unused variable `tem'.
7694 2002-01-16  Henrik Enberg  <henrik@enberg.org>
7696         * lread.c (init_lread): Move the installed-lisp dirs later in the path.
7698 2002-01-16  Kim F. Storm  <storm@cua.dk>
7700         * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
7701         is invisible.  This can happen if cursor is on top line of a
7702         window, and we switch to a buffer with a header line.
7704         * w32term.c (x_erase_phys_cursor): Ditto.
7706 2002-01-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7708         * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
7709         `dont_resize' only when used.
7711         * xdisp.c: Remove forgotten extern declaration of `Qimage'.
7713 2002-01-15  Eli Zaretskii  <eliz@is.elta.co.il>
7715         * xdisp.c (display_mode_element): When computing charpos, depend
7716         on multibyteness of elt, not the text in field.
7718 2002-01-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7720         * buffer.c (Fkill_all_local_variables):
7721         Increment `update_mode_lines' only once.
7723 2002-01-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7725         * lisp.h (adjust_after_replace_noundo)
7726         (Fupdate_coding_systems_internal): Add prototypes.
7728         * sound.c (Fplay_sound): Initialize header_size also for :data case.
7730 2002-01-14  Eli Zaretskii  <eliz@is.elta.co.il>
7732         Support for the --color command-line argument and tty-color-mode
7733         frame parameter:
7735         * term.c (tty_default_color_capabilities, tty_setup_colors)
7736         (set_tty_color_mode): New functions.
7737         (term_init): Call tty_default_color_capabilities.
7738         (Qtty_color_mode_alist): New variable.
7739         (syms_of_term): Intern and staticpro it.
7741         * frame.c (store_frame_param): Call set_tty_color_mode for termcap
7742         frames.
7743         (do_switch_frame): For termcap frames, switch the tty
7744         color mode as specified by the frame's parameters.
7745         (Qtty_color_mode): New variable.
7746         (syms_of_frame): Intern and staticpro it.
7748         * emacs.c (USAGE2): Add the --color option.
7749         (standard_args): Ditto.
7751 2002-01-13  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
7753         * xterm.h (struct x_output): New members want_fullscreen,
7754         x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
7755         y_pixels_outer_diff.
7756         New enum for FULLSCREEN_* constants.
7757         (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
7758         is NULL.
7759         (x_fullscreen_adjust): Add prototype.
7761         * emacs.c (USAGE2): Add the new full-screen arguments.
7762         (standard_args): Ditto.
7764         * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
7765         New variables.
7766         (syms_of_xfns): Intern and staticpro them.
7767         (x_frame_parms) <"fullscreen">: New parameter.
7768         (x_fullscreen_move, x_set_fullscreen): New functions.
7769         (x_set_frame_parameters): Support for Qfullscreen.
7770         (x_real_positions): More accurate computation of the frame position.
7771         (x_figure_window_size): Support full-screen frames.
7772         (Fx_create_frame): Default the fullscreen parameter.
7774         * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
7775         (XTread_socket) <Expose>: Call x_check_fullscreen.
7776         <ConfigureNotify>: Don't resize to fullscreen.
7777         Call x_check_fullscreen_move, and set the want_fullscreen member of
7778         output_data.x.
7780 2002-01-13  Jason Rumney  <jasonr@gnu.org>
7782         * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
7783         for mice with more than 3 buttons.
7785         * w32term.c (parse_button): New parameter xbutton.  Callers changed.
7786         (w32_read_socket): Handle new "XBUTTON" messages.
7788         * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
7789         (syms_of_w32fns): DEFVAR_BOOL it.
7790         (w32_wnd_proc): Handle new "XBUTTON" messages.
7792 2002-01-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7794         * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
7796 2002-01-13  Andreas Schwab  <schwab@suse.de>
7798         * xterm.c (x_load_font): Never set fonts_changed_p to zero.
7800 2002-01-12  Andreas Schwab  <schwab@suse.de>
7802         * .gdbinit (xbuffer): Remove address operator since data is now a
7803         pointer.
7805 2002-01-11  Richard M. Stallman  <rms@gnu.org>
7807         * insdel.c (adjust_after_replace_noundo): New function.
7809         * coding.c (code_convert_region): Don't copy old text if undo disabled.
7811 2002-01-09  Jason Rumney  <jasonr@gnu.org>
7813         * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
7814         when checking for multiple frames.
7816 2002-01-08  Richard M. Stallman  <rms@gnu.org>
7818         * window.c (delete_window): Rewrite the code for changing the
7819         selected window to handle the case where WINDOW is not a leaf.
7821 2002-01-07  Eli Zaretskii  <eliz@is.elta.co.il>
7823         * process.c (send_process): Set src_multibyte to 1 after the call
7824         top setup_coding_system, not before the call.
7826 2002-01-07  Jason Rumney  <jasonr@gnu.org>
7828         * xmenu.c (set_frame_menubar, xmenu_show):
7829         (xdialog_show): Initialize wv->help to Qnil.
7831         * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
7832         (w32_dialog_show): Initialize wv->help to Qnil.
7834 2002-01-06  Jason Rumney  <jasonr@gnu.org>
7836         * xmenu.c (single_submenu): Initialize wv->help to Qnil.
7838         * w32menu.c (w32_menu_display_help): Revert last change.
7840         * xmenu.c (menu_highlight_callback): Revert last change.
7842 2002-01-06  Andreas Schwab  <schwab@suse.de>
7844         * insdel.c (make_gap_larger): Make sure buffer size does not
7845         overflow range of int.
7847 2002-01-05  Jason Rumney  <jasonr@gnu.org>
7849         * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
7850         OVERLAPS_P.
7852         * w32menu.c (w32_menu_display_help): Hide any tooltip window.
7854         * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
7855         to the left or to the right of the pointer, put it against
7856         the left screen edge.
7857         (x_frame_parms): Add missing braces around initializer.
7859         * w32term.c (x_setup_relief_colors): Don't compute an image's
7860         background color if it doesn't have a Pixmap.
7861         (notice_overwritten_cursor): Don't depend on
7862         output_cursor and updated_area.  Compare pixel coordinates with
7863         window's cursor pixel coordinates.
7864         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
7865         Call notice_overwritten_cursor with new arg list.
7866         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
7867         unconditionally.
7868         (x_draw_image_relief): Use predefined macro instead of
7869         constant when the value of `tool_bar_button_relief' is negative.
7871         * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
7873 2002-01-04  Richard M. Stallman  <rms@gnu.org>
7875         * xmenu.c (menu_highlight_callback): Hide any tooltip window.
7877 2002-01-03  Richard M. Stallman  <rms@gnu.org>
7879         * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
7880         (Fkey_binding): Try the `keymap' property map first.
7881         (Fdescribe_buffer_bindings): Show `keymap' property bindings before
7882         minor mode bindings.
7884 2002-01-03  Kim F. Storm  <storm@cua.dk>
7886         * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
7888 2002-01-02  Richard M. Stallman  <rms@gnu.org>
7890         * keyboard.c (read_key_sequence): Handle the keymap property
7891         before minor mode maps.
7893         * editfns.c (Fformat): Update thissize from field_width
7894         based on the actual width, in the string case.
7896 2002-01-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
7898         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
7899         when used as truth value to prevent gcc warnings.
7901         * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
7902         * w32proc.c: Include <config.h>.
7904 2002-01-01  Andreas Schwab  <schwab@suse.de>
7906         * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
7907         not EMACS_INT, to make them compatible with DEFVAR_INT.
7908         * lisp.h (max_specpdl_size): Adjust declaration.
7910 2002-01-01  Richard M. Stallman  <rms@gnu.org>
7912         * print.c (print_object): Test print_escape_nonascii only for
7913         unibyte strings.
7914         (PRINTPREPARE): Once again bind Qprint_escape_nonascii
7915         when outputting to a multibyte buffer.
7917 2001-12-29  Richard M. Stallman  <rms@gnu.org>
7919         * print.c (print_object): In multibyte string, use hex escapes.
7920         Use octal only for unibyte strings.
7921         (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
7923         * lread.c (read_escape): New arg BYTEREP for reporting whether
7924         escape forces unibyte or multibyte.
7925         (read1): When reading a string, take note of that info.
7927 2001-12-29  Ken Raeburn  <raeburn@gnu.org>
7929         * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
7930         comparison to test lisp value returned by Fget.
7932 2001-12-29  Richard M. Stallman  <rms@gnu.org>
7934         * lisp.h (max_specpdl_size): Add declaration.
7936         * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
7938         * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
7939         Handle modifier bits.  Correct typo in error message.
7941 2001-12-28  Richard M. Stallman  <rms@gnu.org>
7943         * abbrev.c: Use the plist of an abbrev for multiple params if nec.
7944         (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
7945         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
7946         Update calls to Fdefine_abbrev.
7947         (write_abbrev): Update for changed data format.
7948         Don't list "system" abbrevs.
7949         (Fexpand_abbrev): Update use count with new data format.
7950         (describe_abbrev): Update for changed data format.
7951         (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
7953         * config.in (HAVE_MBSINIT): Add #undef.
7955         * strftime.c (mbsinit): Define as no-op if not available.
7957         * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
7958         (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
7960         * keymap.c (Flookup_key): Error message if key has wrong data type.
7961         (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
7962         (exclude_key): New variable.
7964 2001-12-28  Gerd Moellmann  <gerd@gnu.org>
7966         * xterm.c (x_setup_relief_colors): Don't compute an image's
7967         background color if it doesn't have a Pixmap.
7969         * xterm.c (notice_overwritten_cursor): Don't depend on
7970         output_cursor and updated_area.  Compare pixel coordinates with
7971         window's cursor pixel coordinates.
7972         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
7973         Call notice_overwritten_cursor with new arg list.
7974         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
7975         unconditionally.
7977         * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
7978         height of the cursor line to the amount to scroll.
7980 2001-12-27  Richard M. Stallman  <rms@gnu.org>
7982         * intervals.c (set_point_both): The position after an invisible,
7983         intangible character is not an acceptable stopping point.
7985 2001-12-27  Ken Raeburn  <raeburn@gnu.org>
7987         * window.c (enlarge_window): In new preserve_before code, convert
7988         CURBEG from lisp object to integer before doing arithmetic.
7990 2001-12-27  Richard M. Stallman  <rms@gnu.org>
7992         * bytecode.c (Fbyte_code): Undo previous change.
7994 2001-12-26  Kim F. Storm  <storm@cua.dk>
7996         * keyboard.c (record_char): Ignore duplicate help-echo events only
7997         separated by mouse-movement.  When tracking mouse, only record
7998         first and last mouse-movement event in same window.
7999         Don't record mouse-movement events in keyboard macros.
8001 2001-12-25  Richard M. Stallman  <rms@gnu.org>
8003         * window.c (enlarge_window): New arg PRESERVE_BEFORE.  Callers changed.
8004         (Fenlarge_window): New arg PRESERVE_BEFORE.
8006         * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
8007         instead of Fstring_as_unibyte.
8009 2001-12-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8011         The following changes remove mocklisp support:
8013         * mocklisp.h, mocklisp.c: Files removed.
8015         * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
8016         `Qmocklisp' and `Qmocklisp_arguments'.
8017         Remove prototype of syms_of_mocklisp.
8019         * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
8021         * callint.c: Do not include mocklisp.h.
8022         (Fcall_interactively): Do not test for mocklisp case.
8024         * eval.c: Remove variables `Qmocklisp_arguments',
8025         `Vmocklisp_arguments' and `Qmocklisp'.  Remove prototype of ml_apply.
8026         (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
8027         Do not test for mocklisp case.
8028         (Fwhile): Remove unused variable `tem'.
8029         (syms_of_eval): Remove variable `moclisp-arguments'.
8031         * data.c (wrong_type_argument): Remove mocklisp case.
8033         * doc.c (Fdocumentation): Remove mocklisp case.
8035         * emacs.c (main): Do not call syms_of_mocklisp.
8037 2001-12-21  Richard M. Stallman  <rms@gnu.org>
8039         * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
8040         to the left or to the right of the pointer, put it against
8041         the left screen edge.
8043 2001-12-21  Eli Zaretskii  <eliz@is.elta.co.il>
8045         * Makefile.in (distclean): Remove .gdbinit if we are building
8046         outside the source tree.
8048 2001-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
8050         * w32.c (emacs_root_dir): New function.
8052         * msdos.c (emacs_root_dir): New function.
8054         * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
8055         of the current drive as the fallback for default_directory.
8057         * dired.c (file_name_completion): Run the elements of
8058         completion-ignored-extensions through ENCODE_FILE.
8060         * lisp.h (scmp): Remove prototype, since it's now a static
8061         function private to dired.c.
8063 2001-12-18  Richard M. Stallman  <rms@gnu.org>
8065         * dired.c (scmp): Function moved from minibuf.c.
8066         Delete multibyte handling--used only on encoded strings.
8068         * minibuf.c (scmp): Function moved to dired.c.
8070         * fns.c (merge): Add QUIT call.
8072 2001-12-18  Dave Love  <fx@gnu.org>
8074         * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
8075         language/georgian.el.
8077 2001-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
8079         * Makefile.in (lisp, shortlisp): Synchronize with changes to
8080         lisp/Makefile.in:DONTCOMPILE.
8082 2001-12-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8084         * xdisp.c (window_box_height): Do not return negative values.
8085         From Gerd Moellmann <gerd@gnu.org>.
8087         * keyboard.c (head_table): Add missing braces around initializer.
8089         * term.c (keys): Likewise.
8091         * xfns.c (x_frame_parms, visual_classes): Likewise.
8093 2001-12-17  Sam Steingold  <sds@gnu.org>
8095         * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
8096         patch (COMPOSING_P, not COMPOSING).
8098 2001-12-17  Richard M. Stallman  <rms@gnu.org>
8100         * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
8102         * coding.c (code_convert_region): Update coding->cmp_data->char_offset
8103         before calling decode_coding.
8105         * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
8107         * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
8108         instead of only for COMPOSITION_DISABLED.
8110 2001-12-16  Richard M. Stallman  <rms@gnu.org>
8112         * alloc.c (pure_alloc): After overflow, allocate just a small block.
8114         * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
8116         * buffer.h (struct buffer): New field `display_error_modiff'.
8117         * buffer.c (reset_buffer): Initialize `display_error_modiff'.
8119         * window.c (Frecenter): Clear display_error_modiff field.
8121         * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
8122         Call redisplay_window, but not if display_error_modiff field says no.
8123         (redisplay_window_error): New function.
8124         (displayed_buffer): New variable.
8125         (redisplay_internal, redisplay_windows): Call the new functions
8126         instead of redisplay_window directly.
8128 2001-12-15  Richard M. Stallman  <rms@gnu.org>
8130         * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
8132 2001-12-14  Andrew Innes  <andrewi@gnu.org>
8134         * makefile.w32-in (EMACSLOADPATH): Define.
8135         ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
8136         (bootstrap-temacs): Remove dependency on bootstrap-clean.
8138 2001-12-13  Eli Zaretskii  <eliz@is.elta.co.il>
8140         * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
8141         parameter have a numeric value all the time.
8143         * w32fns.c (x_report_frame_params): Likewise.
8145 2001-12-12  Richard M. Stallman  <rms@gnu.org>
8147         * fileio.c (Fwrite_region): Doc fix.
8149         * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
8150         (redisplay_internal): Call clear_image_cache only for window terminals.
8152 2001-12-12  Gerd Moellmann  <gerd@gnu.org>
8154         * xdisp.c (move_it_vertically_backward): Change heuristic
8155         for the case that we didn't move far enough initially.
8157         * window.c (Frecenter): Simplify computation in the case of window
8158         system frames and ARG < 0; use window_box_height.
8160 2001-12-11  Richard M. Stallman  <rms@gnu.org>
8162         * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
8163         * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
8165 2001-12-11  Andrew Innes  <andrewi@gnu.org>
8167         * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
8168         arg is negative.
8170 2001-12-11  Richard M. Stallman  <rms@gnu.org>
8172         * m/hp800.h: Split the __hpux conditional into the parts
8173         that are right for GNU/Linux too and the parts that are not.
8174         Use the former if GNU_LINUX.
8175         (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
8177         * s/gnu-linux.h (GNU_LINUX): Defined.
8179 2001-12-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8181         * macros.c, msdos.c, w16select.c: Change doc-string comments to
8182         `new style' [w/`doc:' keyword].
8184 2001-12-10  Jason Rumney  <jasonr@gnu.org>
8186         * w32menu.c (w32_free_submenu_strings): Clear menu item struct
8187         before using.
8189 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8191         * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
8192         keyword].
8194 2001-12-09  Eli Zaretskii  <eliz@is.elta.co.il>
8196         * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
8198         * s/hpux10.h (srand48): Don't undefine.
8200 2001-12-09  Jason Rumney  <jasonr@gnu.org>
8202         * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
8203         Add     comment to explain where the struct came from.
8204         (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
8205         (add_menu_item): Process pop-up menus first to avoid memory leak.
8206         (add_menu_item, w32_menu_display_help): Use `help' field as
8207         Lisp_Object.
8208         (w32_free_submenu_strings): Only free owner-drawn strings.
8210 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8212         * COPYING: Moved back.
8214         * charset.c (char_to_string_1, translate_char, Fdefine_charset):
8215         Add parentheses around && within ||.
8217         * indent.c (compute_motion): Likewise.
8219         * intervals.c (merge_properties_sticky): Likewise.
8221         * coding.c (setup_coding_system, shrink_encoding_region)
8222         (Fdecode_sjis_char): Likewise.
8224 2001-12-07  Andreas Schwab  <schwab@suse.de>
8226         * xdisp.c (display_mode_element): Don't read past end of string if
8227         it ends with '%'.
8229         * alloc.c (inhibit_garbage_collection): Don't exceed value an int
8230         can hold.
8232         * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
8233         Rename from most_positive_fixnum and most_negative_fixnum, resp., and
8234         type changed to Lisp_Object.
8235         (syms_of_data): DEFVAR_LISP them.
8237 2001-12-07  Richard M. Stallman  <rms@gnu.org>
8239         * callproc.c (init_callproc): Set Vdata_directory based on the source
8240         location whenever Emacs was run uninstalled.
8242 2001-12-06  Paul Eggert  <eggert@twinsun.com>
8244         * config.in (HAVE_WORKING_VFORK): New #undefs.
8245         * process.c (create_process):
8246         Use HAVE_WORKING_VFORK, not HAVE_VFORK.
8247         * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
8248         * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
8249         * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
8250         * m/intel386.h (HAVE_VFORK): Likewise.
8251         * m/mips-siemens.h (HAVE_VFORK): Likewise.
8252         * m/mips.h (HAVE_VFORK): Likewise.
8253         * s/freebsd.h (vfork): Remove #define.
8254         * s/lynxos.h (HAVE_VFORK): Remove #undef.
8255         * s/usg5-4-2.h: Fix comment about vfork.
8257 2001-12-06  Richard M. Stallman  <rms@gnu.org>
8259         * s/hpux10.h (random): Add undef.
8260         (HAVE_RANDOM): Define it just once.
8262 2001-12-06  Stefan Monnier  <monnier@cs.yale.edu>
8264         * eval.c: Undo last change: the standard syntax is not wanted.
8266 2001-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
8268         * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
8269         scroll bars of the frame before deleting the frame itself.  If the
8270         frame has a widget, delete the frame with XtDestroyWidget, and do
8271         not call XDestroyWindow before that.
8273 2001-12-06  Kim F. Storm  <storm@cua.dk>
8275         * xfns.c (x_report_frame_params): Return actual fringe widths.
8277         * w32fns.c (x_report_frame_params): Return actual fringe widths.
8279 2001-12-05  Andrew Innes  <andrewi@gnu.org>
8281         * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
8282         excessively large.
8284         * insdel.c (make_gap_larger): New function.
8285         (make_gap_smaller): New function.
8286         (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
8287         Call make_gap_smaller if arg is negative.
8289 2001-12-04  Stefan Monnier  <monnier@cs.yale.edu>
8291         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
8292         Pass a dummy argument when calling interrupt_signal.
8293         (parse_menu_item): Mark disabled items before checking for empty def.
8294         (read_char_minibuf_menu_prompt): Make safety more visible.
8295         (read_key_sequence): Add a `first_unbound' variable.
8296         Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
8297         unbound prefix as soon as we can detect it.
8299         * doc.c (Fsnarf_documentation): Add prototype.
8300         (get_doc_string): Handle negative arguments.
8301         (Fdocumentation): Use AREF and ASIZE.
8302         Move the calls to get_doc_string to a single place.
8303         Don't confuse an interactive-spec for a docstring reference.
8304         (Fdocumentation_property): Take advantage of the fact that
8305         get_doc_string now ignores the sign of the docstring position.
8307         * eval.c: Use standard syntax for usage in docstrings.
8309 2001-12-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8311         * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
8313 2001-12-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8315         * xterm.c (x_draw_image_relief): Use predefined macro instead of
8316         constant when the value of `tool_bar_button_relief' is negative.
8318 2001-12-02  Richard M. Stallman  <rms@gnu.org>
8320         * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
8321         (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
8323         * fileio.c (read_non_regular): Delete Fsignal call.
8325 2001-12-01  Stefan Monnier  <monnier@cs.yale.edu>
8327         * lisp.h (run_hook_list_with_args): Undo last change.
8329 2001-12-01  Gerd Moellmann  <gerd@gnu.org>
8331         * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
8333 2001-12-01  Jason Rumney  <jasonr@gnu.org>
8335         * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
8337         * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
8338         [!WM_MOUSELEAVE]: Define.
8340         * w32menu.c (current_popup_menu, get_menu_item_info):
8341         (set_menu_item_info): New vars.
8342         (set_frame_menubar): Doc fix clarifying GC interaction with menus.
8343         (w32_menu_show): Set current_popup_menu.
8344         (add_menu_item): Allocate new strings for owner-drawn menu items
8345         and help strings.
8346         Use owner-draw for disabled menu items again.
8347         (w32_menu_display_help): Ignore owner-drawn items and popup menus.
8348         (w32_free_submenu_strings, w32_free_menu_strings): New functions.
8350         * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
8351         (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
8352         <WM_EXITMENULOOP>: Free menu strings.
8353         <WM_MOUSELEAVE>: Stop tracking mouse.
8354         (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
8356         * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
8357         and mouse face.
8359 2001-12-01  Kim F. Storm  <storm@cua.dk>
8361         The following changes add left-fringe and right-fringe
8362         frame parameters to adjust fringe widths, or remove one or
8363         both fringes.
8365         * frame.h (struct frame): Remove trunc_area_pixel_width and
8366         trunc_area_cols fields.
8367         (Qleft_fringe, Qright_fringe): Declare.
8368         (FRAME_RIGHT_FRINGE_WIDTH): New macro.
8370         * frame.c (Qleft_fringe, Qright_fringe): New vars.
8371         (syms_of_frame): Initialize them.
8373         * window.c (coordinates_in_window): Handle separate left and right
8374         fringe widths.
8376         * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
8377         and fringe_cols fields.
8378         (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
8379         (FRAME_X_FRINGE_COLS): Use fringe_cols field.
8380         (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
8381         (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
8382         (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
8383         (x_compute_fringe_widths): Add prototype.
8385         * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
8386         fill fringe evenly with small dashes.
8387         (x_draw_fringe_bitmap): Clear background if necessary. Align and
8388         clip the new ZV bitmap to avoid jitter between rows.
8389         (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
8390         background.  Don't draw fringe bitmaps if fringe width is zero.
8391         (x_compute_fringe_widths): New function.
8392         (x_new_font, x_set_window_size_1): Use it.
8394         * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
8395         (x_set_frame_parameters): Process `font' parameter before other
8396         parameters as fringe widths depend on it.
8397         (x_set_fringe_width): New function.
8398         (x_figure_window_size): Use x_compute_fringe_widths.
8399         (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
8400         parameters.
8402         * widget.c (set_frame_size): Use x_compute_fringe_widths.
8403         (EmacsFrameSetCharSize): Ditto.
8405         * w32term.h: Merged changes from xterm.h.
8406         * w32term.c: Merged changes from xterm.c.
8407         * w32fns.c: Merged changes from xfns.c.
8409 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8411         * COPYING: Removed.
8413 2001-11-29  Dave Love  <fx@gnu.org>
8415         * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
8416         extra extra slot.
8417         (detect_coding_mask): Fix call of detect_coding_iso2022.
8419 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8421         * fileio.c (file-name-coding-system)
8422         (default-file-name-coding-system): Doc fix (links to referenced
8423         variables added).
8425 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
8427         * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
8428         Add dummy uses of gcproN variables.
8430         * category.c (describe_category, describe_category_1)
8431         (Fdescribe_categories): Remove.  (Moved to lisp/help-fns.el.)
8432         (syms_of_category): Don't defsubr Sdescribe_categories.
8434 2001-11-28  Richard M. Stallman  <rms@gnu.org>
8436         * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
8438         * Makefile.in (lispdir): New variable, referring to build dir.
8439         (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
8441 2001-11-28  Andrew Innes  <andrewi@gnu.org>
8443         * w32menu.c (w32_menu_display_help): Actually add the new argument
8444         OWNER.
8446 2001-11-28  Jason Rumney  <jasonr@gnu.org>
8448         * w32menu.c (add_menu_item): Do not use owner-draw for disabled
8449         menu items.  From David Ponce <dponce@wanadoo.fr>.
8450         (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
8451         conditionally.
8452         (w32_menu_display_help): New argument OWNER. Rewritten to store a
8453         help event in the owner frame's keyboard buffer.
8455         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
8456         (Fx_show_tip): Don't subtract last width from row width.
8458         * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
8459         (w32_read_socket): Use EQ to compare frames.
8461 2001-11-28  Gerd Moellmann  <gerd@gnu.org>
8463         * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
8464         OVERLAPS_P.
8466 2001-11-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8468         * xdisp.c (message_dolog): Remove unused variables `gcpro2',
8469         `gcpro3' and `gcpro4'.
8471         * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
8473 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
8475         * ccl.c: Use AREF and ASIZE.
8477 2001-11-27  Stefan Monnier  <monnier@cs.yale.edu>
8479         * lisp.h (run_hook_list_with_args): Remove.
8480         (LIST_END_P): Fix call to wrong_type_argument.
8481         (make_fixnum_or_float): Use EMACS_INT rather than int.
8483 2001-11-26  Stefan Monnier  <monnier@cs.yale.edu>
8485         * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
8486         (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
8488         * eval.c: Use AREF and ASIZE.
8489         (Ffetch_bytecode): Add the file name to the error message.
8491         * fileio.c (Ffind_file_name_handler): Give precedence to handlers
8492         which match the end of the file-name.
8493         (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
8494         is not a valid env var, but leave it as is instead.
8496         * keymap.c (access_keymap): Handle t bindings like nil bindings.
8497         Make nil bindings in char-tables transparent.
8498         (store_in_keymap): Turn a nil binding into a t binding for char-tables.
8500 2001-11-26  Richard M. Stallman  <rms@gnu.org>
8502         * textprop.c (set_text_properties_1): Allow START, END in either order.
8503         Do nothing if range is empty.
8505         * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
8507         * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
8508         (clean): Not here.
8510 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
8512         * textprop.c (set_text_properties_1): Clearly mark that the
8513         interval should not be empty.
8515         * intervals.c (graft_intervals_into_buffer):
8516         Don't call set_text_properties_1 on an empty interval.
8518 2001-11-25  Richard M. Stallman  <rms@gnu.org>
8520         * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
8522         * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
8523         don't lose the data in it.
8525 2001-11-25  Juanma Barranquero  <lektu@terra.es>
8527         * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
8529         * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
8531         * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
8533 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
8535         * xfaces.c (merge_face_heights): Coerce back to int explicitly.
8537 2001-11-25  Eli Zaretskii  <eliz@is.elta.co.il>
8539         * window.c (Fset_window_vscroll): Doc fix.  From Kalle Olavi
8540         Niemitalo <kon@iki.fi>.
8542 2001-11-25  Jason Rumney  <jasonr@gnu.org>
8544         * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
8546         * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
8547         (Fx_show_tip): Block input during frame creation.
8548         (Fx_show_tip, Fx_hide_tip): Enable.
8550 2001-11-24  Richard M. Stallman  <rms@gnu.org>
8552         * lread.c (Fload): Detect recursive load error for more than 3
8553         nestings of the same file.
8554         (Vrecursive_load_depth_limit): Variable deleted.
8555         (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
8557 2001-11-24  Jason Rumney  <jasonr@gnu.org>
8559         * xfns.c (compute_tip_xy): Initialize root_x and root_y from
8560         mouse position if either left or top is not specified.
8562         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
8563         <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
8564         (my_create_tip_window, Fx_show_tip): Adjust size for external border.
8565         (my_create_tip_window): Assign tip_window.
8566         (x_create_tip_frame): Use same defaults as X.
8567         (compute_tip_xy): Remove unused variable.  Use full screen width.
8568         (Fx_show_tip): Do not double height. Call ShowWindow directly.
8570         * w32term.c (x_after_update_window_line): Doc fix.
8571         (w32_read_socket): Doc fix.  Avoid SET_FRAME_GARBAGED for tip
8572         frames.
8573         <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
8575         * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
8576         for all Windowed systems.
8578 2001-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
8580         * msdos.c (IT_clear_screen): If the frame's faces are not yet
8581         realized, use the initial screen colors to clear the screen.
8583 2001-11-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8585         * textprop.c (Fset_text_properties): Remove unused variables
8586         `unchanged', `prev_changed', `s' and `len'.
8588         * search.c (Freplace_match): Remove unused variable `inslen'.
8590         * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
8592 2001-11-22  Jason Rumney  <jasonr@gnu.org>
8594         * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
8595         (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
8596         (my_create_tip_window): New function.
8597         (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
8598         (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
8600 2001-11-20  Jason Rumney  <jasonr@gnu.org>
8602         * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
8603         (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
8605         * w32fns.c (Vw32_system_coding_system): Remove.
8606         (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
8608 2001-11-19  Stefan Monnier  <monnier@cs.yale.edu>
8610         * fileio.c (Fwrite_region): Move choose_write_coding_system to
8611         after build_annotations.
8613         * syntax.c (describe_syntax): Add dummy arg.
8614         (describe_syntax_1): Update call to describe_vector.
8616         * category.c (describe_category): Add dummy arg.
8617         (describe_category_1): Update call to describe_vector.
8619         * keymap.c (Fdescribe_vector): Add `describer' parameter.
8620         (describe_command, describe_translation): Add dummy second param.
8621         (describe_map): Call elt_describer with two arguments.
8622         (describe_vector_princ): Add `fun' parameter.
8623         Call it instead of the hardcoded `princ'.
8624         (describe_vector): Add arg `args'.
8625         Pass it as a new second argument to elt_describer.
8627         * keymap.h (describe_vector): Update prototype.
8629         * frame.c: Don't include keymap.h any more.
8630         (keys_of_frame): Remove.
8632         * lisp.h (keys_of_frame): Remove declaration.
8634         * emacs.c (main): Don't call `keys_of_frame' any more.
8636 2001-11-14  Andreas Schwab  <schwab@suse.de>
8638         * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
8639         if defined, 0 otherwise.
8640         (MAP_FAILED): Define if not defined and use it to test mmap failure.
8641         (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
8643 2001-11-19  Richard M. Stallman  <rms@gnu.org>
8645         * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
8647 2001-11-18  Jason Rumney  <jasonr@gnu.org>
8649         * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
8650         (x_draw_bar_cursor): If the background color of the glyph under
8651         the cursor equals the frame's cursor color, use the glyph's
8652         foreground color for drawing the bar cursor.
8653         (x_after_update_window_line): Clear internal border in different
8654         circumstances.
8655         (w32_set_vertical_scroll_bar): Check for width and height > 0.
8656         (w32_draw_relief_rect): Correct relief by 1 pixel.
8657         (x_set_glyph_string_background_width):
8658         Set extends_to_end_of_line_p if the row's fill_line_p is set and
8659         drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
8660         (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
8661         if cursor_in_non_selected_windows is false.
8662         (show_mouse_face): Clean up.  Recognize overwritten cursor differently.
8663         (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
8664         Notice if cursor gets overwritten.
8665         (notice_overwritten_cursor): Renamed from
8666         note_overwritten_text_cursor.  Rewritten to take glyph widths
8667         into account, and to take X positions as parameters.
8668         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
8669         around call to x_draw_glyphs.
8670         (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
8671         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
8672         color to use for image glyph reliefs.
8673         (x_draw_image_relief): Accept zero tool_bar_button_relief.
8674         (glyph_rect): Remove unused variable `area'.
8676         * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
8677         some items.
8678         (x_set_internal_border_width): Set frame garbaged when window
8679         doesn't exist yet.
8680         (Fx_create_frame): Accept zero tool_bar_button_relief.
8681         (x_clear_image_1, four_corners_best, image_background)
8682         (image_background_transparent): New functions.
8683         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
8684         (gs_format): Add `:background' entry.
8685         (lookup_image): Set IMG's background color if specified.
8686         (pbm_load, xbm_load_image, png_load): Set IMG's background field
8687         when appropriate.
8688         (x_clear_image_1): Reset `background_valid' and
8689         `background_transparent_valid' fields.
8690         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
8691         calculating it here.  Set IMG's background_transparent field.
8692         (enum xpm_keyword_index): Add XPM_BACKGROUND.
8693         (enum png_keyword_index): Add PNG_BACKGROUND.
8694         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
8695         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
8696         (enum gif_keyword_index): Add GIF_BACKGROUND.
8697         (enum gs_keyword_index): Add GS_BACKGROUND.
8698         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
8699         Pre-calculate image background color where necessary.
8700         (x_create_x_image_and_pixmap, xbm_load, gs_load):
8701         Use display info's n_cbits entry for screen depth.
8702         (Fx_show_tip): Remove unused variables `buffer', `top',
8703         `left', `max_width' and `max_height'.
8705         * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
8707 2001-11-18  Gerd Moellmann  <gerd@gnu.org>
8709         * puresize.h (BASE_PURESIZE): Increase to 750000.
8711 2001-11-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8713         * frame.c (Fframe_live_p): Doc fix.
8715 2001-11-18  Richard M. Stallman  <rms@gnu.org>
8717         * xdisp.c (message_dolog_marker1, message_dolog_marker2)
8718         (message_dolog_marker3): New static variables hold three markers.
8719         (syms_of_xdisp): Initialize and staticpro them.
8720         (message_dolog): Use message_dolog_marker1..3 instead of
8721         allocating markers each time.  Unchain them when done.
8723 2001-11-17  Richard M. Stallman  <rms@gnu.org>
8725         * doc.c (Fsnarf_documentation): Doc fix.
8727 2001-11-17  Andreas Schwab  <schwab@suse.de>
8729         * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
8731 2001-11-17  Richard M. Stallman  <rms@gnu.org>
8733         * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
8735 2001-11-17  Jason Rumney  <jasonr@gnu.org>
8737         * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
8739 2001-11-17  Gerd Moellmann  <gerd@gnu.org>
8741         * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
8742         with invalid position.
8744 2001-11-16  Richard M. Stallman  <rms@gnu.org>
8746         * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
8748         * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
8749         * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
8750         * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
8752         * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
8754 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
8756         * fileio.c (build_annotations): Split off the tail.
8757         (build_annotations_2): New fun.  Extracted from build_annotations.
8758         (Fwrite_region): Split the call to build_annotations into two
8759         calls to build_annotations and build_annotations_2.
8761 2001-11-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8763         * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
8764         clear_waiting_for_input with argument.
8766         * xterm.h (x_update_cursor): Remove duplicated prototype.
8768         * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
8770         * xterm.c (waiting_for_input): Remove unnecessary declaration.
8772         * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
8774 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
8776         * fileio.c (choose_write_coding_system): New fun, extracted
8777         from Fwrite_region.
8778         (Fwrite_region): Use it.
8780         * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
8781         (funcall_lambda, run_hook_with_args): Make static and add prototype.
8782         (ml_apply, find_handler_clause): Add prototype.
8784 2001-11-16  Eli Zaretskii  <eliz@gnu.org>
8786         * config.in: Add #undef HAVE_COFF_H.
8788         * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
8789         Required for ISC 4.1.
8791 2001-11-16  Eli Zaretskii  <eliz@is.elta.co.il>
8793         * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
8794         Andrew Wiseman <a.wiseman@btclick.com>.
8796 2001-11-16  Kim F. Storm  <storm@cua.dk>
8798         The following changes are made to clean up the various internal
8799         references to the fringes to actually use the term `fringe' for
8800         them.  Previously, they were called `flags areas', `bitmap areas',
8801         `left/right side of windows', or implicitly as `flags' or
8802         `bitmaps':
8804         * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
8805         Comments fixed. Use renamed symbols.
8807         * dispnew.c: Comment fix. Use renamed symbols.
8809         * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
8810         (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
8811         (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
8813         * msdos.c: Comment fix.
8815         * w32fns.c: Use renamed symbols.
8817         * w32term.c: Comment fixes. Use renamed symbols.
8818         (fringe_bitmap_type): Renamed from bitmap_type.
8819         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
8820         (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
8821         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
8823         * w32term.h: Comment fixes. Use renamed symbols.
8824         (fringes_extra): Renamed from flags_areas_extra.
8825         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
8826         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
8827         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
8828         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
8829         (FRAME_X_LEFT_FRINGE_WIDTH):
8830         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
8831         (FRAME_X_RIGHT_FRINGE_WIDTH):
8832         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
8834         * widget.c: Use renamed symbols.
8836         * window.c: Comment fixes. Use renamed symbols.
8837         (coordinates-in-window-p): Doc fix.
8839         * xdisp.c: Comment fixes. Use renamed symbols.
8841         * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
8843         * xfns.c: Use renamed symbols.
8845         * xterm.c: Comment fixes. Use renamed symbols.
8846         (fringe_bitmap_type): Renamed from bitmap_type.
8847         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
8848         (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
8849         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
8851         * xterm.h: Comment fixes. Use renamed symbols.
8852         (fringes_extra): Renamed from flags_areas_extra.
8853         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
8854         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
8855         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
8856         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
8857         (FRAME_X_LEFT_FRINGE_WIDTH):
8858         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
8859         (FRAME_X_RIGHT_FRINGE_WIDTH):
8860         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
8862 2001-11-15  Jason Rumney  <jasonr@gnu.org>
8864         * w32menu.c (add-menu-item): Make help_echo and radio buttons
8865         work for most menu items.  From David Ponce
8866         <david.ponce@wanadoo.fr>.
8868 2001-11-15  Gerd Moellmann  <gerd@gnu.org>
8870         * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
8871         Some x_set_* function expect to be called even if old and new
8872         value are equal.
8874         * xdisp.c (build_desired_tool_bar_string): Accept zero
8875         tool_bar_button_relief.
8877         * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
8879         * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
8881         * xterm.c (x_draw_bar_cursor): If the background color of the
8882         glyph under the cursor equals the frame's cursor color, use
8883         the glyph's foreground color for drawing the bar cursor.
8885         * dispnew.c (direct_output_forward_char): Fix character/byte
8886         position comparison.
8888 2001-11-15  Miles Bader  <miles@gnu.org>
8890         * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
8891         (Fdelete_field, Ffield_string, Ffield_string_no_properties):
8892         Update arguments to find_field.
8893         (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
8894         (Fconstrain_to_field): Use LIMIT arg to shorten search time.
8895         * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
8896         * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
8898 2001-11-14  Richard M. Stallman  <rms@gnu.org>
8900         * editfns.c (Fpropertize): Allow call with 1 arg.
8902         * dispextern.h (image_background, image_background_transparent):
8903         Conditionalize on HAVE_X_WINDOWS.
8905 2001-11-13  Richard M. Stallman  <rms@gnu.org>
8907         * print.c (Fprin1_to_string): Doc fix.
8909         * sunfns.c (Fsun_change_cursor_icon): Doc fix.
8911         * floatfns.c (Fceiling, Ffloor): Doc fixes.
8913         * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
8915         * fileio.c (Ffile_accessible_directory_p): Doc fix.
8917         * eval.c (syms_of_eval): Doc fix.
8919         * coding.c (syms_of_coding): Doc fix.
8921         * doc.c (Fsnarf_documentation): Doc fix.
8923         * dispnew.c (syms_of_display): Doc fix.
8925         * category.c (Fget_unused_category): Doc fix.
8927         * buffer.c (syms_of_buffer): Doc fixes.
8929 2001-11-14  Eli Zaretskii  <eliz@is.elta.co.il>
8931         * print.c (prin1, print): Doc fix.
8933 2001-11-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8935         * fontset.h: Remove declarations of variables
8936         `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
8938         * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
8939         `Vclip_large_size_font'.
8941 2001-11-13  Jason Rumney  <jasonr@gnu.org>
8943         * w32fns.c: Doc fix.
8945 2001-11-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8947         * xfaces.c (Fface_attributes_as_vector): Doc fix.
8949         * fns.c: Doc fix.
8951         * emacs.c: Doc fix.
8953         * coding.c: Doc fix.
8955         * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
8956         * fontset.c, insdel.c, keymap.c: Change doc-string comments to
8957         `new style' [w/`doc:' keyword].
8959 2001-11-12  Richard M. Stallman  <rms@gnu.org>
8961         * xterm.c (XTread_socket): Don't update focus for EnterNotify or
8962         LeaveNotify events.  Only FocusIn and FocusOut do that now.
8963         (x_display_and_set_cursor): Do display hollow cursors in active
8964         minibuffer windows when they are not selected.
8966 2001-11-12  Jason Rumney  <jasonr@gnu.org>
8968         * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
8969         * w32term.c: Change doc-string comments to `new style'.
8970         [w/`doc:' keyword]. Doc fixes.
8972         * w32fns.c: Don't define max.
8973         (Fx_open_connection): Only execute once.
8975 2001-11-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
8977         * ccl.c: Change macros to use do-while block instead of if-else.
8978         Use braces to follow GNU Coding Standards.
8980 2001-11-11  Richard M. Stallman  <rms@gnu.org>
8982         * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
8984         * lread.c (read_escape): Use end_of_file_error for reporting eof.
8986         * insdel.c (replace_range): Use adjust_markers_for_replace
8987         instead of adjust_markers_for_delete and adjust_markers_for_insert.
8989         * intervals.h: Declare set_text_properties and set_text_properties_1.
8991         * textprop.c (set_text_properties_1): New subroutine
8992         broken out of set_text_properties.
8993         (set_text_properties): Use set_text_properties_1.
8995         * intervals.c (graft_intervals_into_buffer):
8996         Use set_text_properties_1 to clear out properties.
8998         * search.c (Freplace_match): Use replace_range to insert
8999         and delete.  Don't request property inheritance from
9000         surrounding text.
9002 2001-11-10  Jason Rumney  <jasonr@gnu.org>
9004         * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
9005         vertical fonts. Allow them if face name is explicitly specified.
9006         Do not give up if we find a font that cannot be converted to an xlfd.
9008 2001-11-10  Gerd Moellmann  <gerd@gnu.org>
9010         * unexelf.c (unexec): Use mmap/munmap to allocate buffers
9011         instead of malloc/free.
9013 2001-11-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9015         * xfaces.c (merge_face_vectors): Use braces to follow GNU
9016         Coding Standards.
9017         (Finternal_set_lisp_face_attribute): Likewise.
9019         * buffer.c (Fbury_buffer): Likewise.
9021         * indent.c (current_column_1): Remove unused variable `prev_col'.
9023         * coding.c (encode_coding): Use precomputed value of `src'.
9024         (encode_coding): Remove unused variable `src_end'.
9025         (code_convert_region): Remove unused variables `count'.
9027 2001-11-07  Jason Rumney  <jasonr@gnu.org>
9029         * w32term.c (x_display_and_set_cursor): Do not move system caret
9030         if cursor_glyph is NULL.
9032 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9034         * keymap.c (access_keymap): Fix compilation error.
9036 2001-11-07  Miles Bader  <miles@gnu.org>
9038         * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
9040 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9042         * intervals.c (graft_intervals_into_buffer):
9043         Remove #ifdef'd-out code.
9044         (graft_intervals_into_buffer): Remove unused variable `middle'.
9046         * lread.c (Feval_region): Remove obsolete #ifdef'd-out
9047         code (eval-current-buffer).
9048         Change doc-string comments to `new style' [w/`doc:' keyword].
9050 2001-11-06  Richard M. Stallman  <rms@gnu.org>
9052         * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
9054 2001-11-06  Stefan Monnier  <monnier@cs.yale.edu>
9056         * lread.c (read1): Fix behavior with nested backquoting.
9058         * keyboard.c (make_lispy_event): Check integerness and fix
9059         Lisp_Object/int mixup.
9061 2001-11-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9063         * fns.c (copy_hash_table): Remove unused variable `v'.
9065         * fontset.c (fontset_font_pattern): Remove unused variable
9066         `family_registry'.
9068         * indent.c (current_column_1): Remove unused variable `prev_col'.
9070 2001-11-05  Richard M. Stallman  <rms@gnu.org>
9072         * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
9074         * buffer.c (Fkill_buffer): Don't delete auto save file
9075         if buffer is modified.
9077 2001-11-05  Andrew Innes  <andrewi@gnu.org>
9079         * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
9080         CHECK_NUMBER_CDR.
9082 2001-11-05  Richard M. Stallman  <rms@gnu.org>
9084         * unexelf.c (unexec): Minor changes; clean up comments.
9086 2001-11-05  Sam Steingold  <sds@gnu.org>
9088         * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
9090 2001-11-05  Andreas Schwab  <schwab@suse.de>
9092         * sound.c (sound_perror): Save errno from being clobbered.
9094 2001-11-05  Dale Hagglund  <rdh@yottayotta.com>
9096         * unexelf.c (unexec): Don't use `mmap'.  Instead, read and write
9097         the program image directly.
9099 2001-11-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9101         * buffer.h (Fbuffer_local_value): Add prototype.
9103 2001-11-04  Richard M. Stallman  <rms@gnu.org>
9105         * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
9106         and CHECK_BUFFER.
9108         * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
9109         (record_char): Likewise.
9111         * keyboard.c (make_lispy_event): Don't insist a drag event must
9112         move to a different buffer position.  Instead, check for moving at
9113         least double_click_fuzz.
9115         * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
9117         * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
9119         * indent.c (current_column_1, Fmove_to_column): Separate the code
9120         for display-table glyphs from the code for buffer text, to fix
9121         bugs in the former.
9123 2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>
9125         * buffer.c (Fbuffer_local_value): New function.
9126         (syms_of_buffer): Defsubr it.
9128         * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
9129         value of `cursor-in-non-selected-windows'.
9131         * lisp.h (Qcursor_in_non_selected_windows): New declaration.
9132         * xdisp.c (Qcursor_in_non_selected_windows): New variable.
9133         (syms_of_xdisp): Initialize it.
9135 2001-11-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9137         * xfns.c (Fx_create_frame): Doc fix.
9139         * coding.c: Change doc-string comments to `new style' [w/`doc:'
9140         keyword].
9142         * eval.c (top_level_value, top_level_set): Remove commented and
9143         #ifdef'd-out code.
9144         (Fdefvar): Fix usage in doc-string.
9146 2001-11-03  Richard M. Stallman  <rms@gnu.org>
9148         * xfns.c: Include unistd.h, if it exists.
9150         * editfns.c: Move the include of ctype.h after unistd.h.
9152         * gmalloc.c: Test BROKEN_PROTOTYPES.
9154 2001-11-03  Ken Raeburn  <raeburn@gnu.org>
9156         * lisp.h (CHECK_STRING_CAR): New macro.
9157         * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
9158         treating XCAR and XCDR as lvalues.
9159         (openp): Use CHECK_STRING_CAR.
9160         (read_list): Use XSETCDR instead of treating XCDR as lvalue.
9162 2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>
9164         * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
9165         (SIGMASKTYPE): Define.
9167         * syssignal.h (sigunblock): Don't define if already defined.
9169 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9171         * eval.c (debugger_may_continue, Vdebug_ignored_errors)
9172         (call_debugger, Fcondition_case, skip_debugger, unbind_to):
9173         Fix typos in comments.
9175         * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
9176         and #ifdef'd-out code.
9177         Fix and reindent comments.
9179         * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
9181         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
9182         argument `i' in macros.
9184         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
9185         `i' in macros.
9187         * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
9188         (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
9189         (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
9190         (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
9191         (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
9192         (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
9193         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
9194         (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
9195         in macros.
9197         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
9198         * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
9199         * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
9200         * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
9201         * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
9202         * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
9203         * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
9204         * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
9205         * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
9206         (remove unused second argument).
9208 2001-11-02  Stefan Monnier  <monnier@cs.yale.edu>
9210         * syntax.c (describe_syntax): New wrapper.
9211         (Finternal_describe_syntax_value): Rename from describe_syntax.
9212         Don't insert space at front and \n at the end.
9213         (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
9215         * regex.c (re_wctype): Try to fix some warnings.
9216         (regcomp, regexec): Don't forget the __restrict.
9218 2001-11-02  Richard M. Stallman  <rms@gnu.org>
9220         * textprop.c (Fget_char_property): Doc fix.
9222 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9224         * process.c (Fstart_process): Add usage to doc-string.
9226         * data.c (Fsetq_default): Ditto.
9228         * callint.c (Finteractive): Ditto.
9230 2001-11-01  Stefan Monnier  <monnier@cs.yale.edu>
9232         * macros.c: Don't include keymap.h any more.
9234 2001-11-01  Richard M. Stallman  <rms@gnu.org>
9236         * data.c (Fmake_local_variable): Doc fix.
9238         * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
9239         (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
9241         * keymap.c (Fdescribe_buffer_bindings): Print character property
9242         bindings along with or instead of the buffer local map.
9243         Make the overriding maps override what they should.
9245 2001-11-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9247         * window.c (grow_mini_window): Fix typo in comment.
9249 2001-11-01  Gerd Moellmann  <gerd@gnu.org>
9251         * xterm.c (x_scroll_bar_create): Check for width and height > 0.
9252         (XTset_vertical_scroll_bar): Likewise.
9254         * xfns.c (x_build_heuristic_mask): Use four_corners_best
9255         instead of IMAGE_BACKGROUND.
9257         * xfns.c (four_corners_best): Reindent.
9259         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
9260         Handle :box so that it is possible to specify sexprs.
9262 2001-10-31  Eli Zaretskii  <eliz@is.elta.co.il>
9264         * s/hpux11.h: New file.
9266 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9268         * emacs.c (USAGE1): Show command line option --no-window-system
9269         instead of --no-windows in usage.
9270         (standard_args): Rename --no-windows to --no-window-system.
9271         (bug_reporting_address): Follow Emacs coding conventions.
9273         * eval.c (Fcommandp): Doc fix.
9274         Change doc-string comments to `new style' [w/`doc:' keyword].
9276         * frame.c (Fframe_live_p): Doc fix.
9278         * buffer.c (selective-display-ellipses): Doc fix.
9280 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
9282         * lread.c (to_multibyte): Fix computation of new read_buffer_size.
9284         * xfaces.c (realize_x_face): If C is not a single-byte character,
9285         set the face's colors_copied_bitwise_p instead of the defaulted_p
9286         members which have a different meaning.
9287         (free_face_colors): Do nothing for a face whose colors have been
9288         copied bitwise.
9290         * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
9292 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9294         * marker.c, mocklisp.c: Change doc-string comments to `new style'
9295         [w/`doc:' keyword].
9297 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
9299         * fns.c (require_unwind): Return Lisp_Object.
9301 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9303         * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
9304         (last-input-char): Revert doc-string to be the same as the
9305         doc-string of `last-input-event'.
9307         * xdisp.c: Fix typos in comments.
9309 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
9311         * window.c (grow_mini_window): Handle case that the root
9312         window is already smaller than the nominal mininum height.
9314 2001-10-30  Stefan Monnier  <monnier@cs.yale.edu>
9316         * emacs.c (main): Don't call keys_of_macros any more.
9318         * lisp.h (keys_of_macros): Remove.
9320         * macros.c (keys_of_macros): Remove.
9322         * xfaces.c (Fface_attribute_relative_p): Declare args.
9324 2001-10-30  Jason Rumney  <jasonr@gnu.org>
9326         * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
9327         (enum_font_cb2): Ignore fonts with vertical orientation.
9329 2001-10-30  Richard M. Stallman  <rms@gnu.org>
9331         * keyboard.c (Finput_pending_p): Doc fix.
9333 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
9335         * xterm.c (x_after_update_window_line): Don't run the code
9336         clearing in borders for rows whose visible height is 0.
9338         * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
9339         resized_p flag is set.  If not set, use the much less flickering
9340         method previously used.
9342         * dispnew.c (change_frame_size_1): Set frame's resized_p.
9344         * frame.h (struct frame) <resized_p>: New member.
9346         * lread.c (to_multibyte): Ensure read_buffer is at least twice
9347         as large as the number of bytes to convert.
9349         * lread.c (to_multibyte): New function.
9350         (read1): Use it.
9352 2001-10-30  Eli Zaretskii  <eliz@is.elta.co.il>
9354         * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
9356 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
9358         * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
9359         (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
9360         if the row's fill_line_p is set and drawing the last glyph with
9361         DRAW_IMAGE_{RAISED,SUNKEN}.
9363         * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
9365 2001-10-29  Stefan Monnier  <monnier@cs.yale.edu>
9367         * xmenu.c: Include coding.h and charset.h.
9368         (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
9369         (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
9370         (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
9371         Explicitly set wv->help.  Use `TRUE' rather than `True'.
9372         (menu_help_callback): Use empty_string.
9374         * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
9375         (Fx_popup_dialog): Explicitly init f.
9376         (w32_menu_display_help): Use empty_string.
9378 2001-10-29  Richard M. Stallman  <rms@gnu.org>
9380         * fns.c (Frequire): Detect recursive try to require the same
9381         feature 3 or more levels deep, and get error.
9382         (require_unwind): New subroutine.
9383         (require_nesting_list): New variable.
9384         (syms_of_fns): Init and staticpro it.
9386         * print.c (print_object): Clarify indication of insertion type.
9388 2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>
9390         * coding.c (syms_of_coding): Document that locale-coding-system is
9391         used for decoding input on X.
9393         * window.c (Fscroll_left, Fscroll_right): Doc fix.
9395 2001-10-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9397         * keyboard.c (Finput_pending_p): Fix typo in doc-string.
9398         (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
9400 2001-10-29  Gerd Moellmann  <gerd@gnu.org>
9402         * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
9403         use NO_CURSOR if cursor_in_non_selected_windows is false.
9405         * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
9406         the slant attribute if FRAME is t.
9408         * xfns.c (x_set_internal_border_width): Set frame garbaged
9409         when X window doesn't exist yet.
9411         * xterm.c (x_after_update_window_line): Clear internal border
9412         in different circumstances.
9414         * xterm.c (XTread_socket) <KeyPress>: Don't use
9415         STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
9416         <handa@etl.go.jp>.
9418 2001-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
9420         * m/ibms390.h: New file.  From Adam Thornton
9421         <athornton@sinenomine.net>.
9423 2001-10-28  Gerd Moellmann  <gerd@gnu.org>
9425         * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
9427         * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
9428         a loop counter.
9430 2001-10-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9432         * emacs.c: Use argv[0] instead of emacs when -t was specified.
9434         * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
9435         keyword].
9436         Fix typos in comments.
9438         * emacs.c (bug_reporting_address): New function.
9439         Use it when displaying usage message.
9441         * minibuf.c (read_minibuf): Remove unused external declaration of
9442         variable `Qread_only'.
9444         * keymap.c (access_keymap): Remove unused variable `charset'.
9446 2001-10-28  Miles Bader  <miles@gnu.org>
9448         * xfaces.c (merge_face_heights): Handle TO being relative as well.
9449         Remove #ifdef'd-out code.
9450         (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
9451         (syms_of_xfaces): Initialize them.
9453 2001-10-27  Jason Rumney  <jasonr@gnu.org>
9455         * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
9456         <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
9457         position using the system caret.
9459         * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
9460         (w32_system_caret_height, w32_system_caret_x)
9461         (w32_system_caret_y): New variables for tracking system caret.
9462         (w32_initialize): Initialize them.
9463         (x_display_and_set_cursor): Make system caret follow the active cursor.
9465         * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
9466         New messages types.
9468         * w32term.c (note_mouse_highlight): Clear old help_echo.
9470 2001-10-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9472         * xterm.c: Fix typo in a comment.
9474         * emacs.c: Fix typos in comments.
9475         Remove unnecessary spaces.
9476         Change doc-string comments to `new style' [w/`doc:' keyword].
9477         (USAGE2): Fix typos in usage string.
9479         * xterm.c: Fix typo in a comment.
9481         * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
9482         emacs.c.
9484 2001-10-27  Gerd Moellmann  <gerd@gnu.org>
9486         * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
9487         instead of 1/2 line_height in the heuristic for skipping
9488         farther backward when target_y was not reached.
9490         * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
9491         Display errno only if non-zero.
9492         (sound_warning): New function.
9493         (vox_configure): Don't treat failing to set sample rate as error.
9494         (various places): Improve error messages.
9496 2001-10-26  Eli Zaretskii  <eliz@is.elta.co.il>
9498         * fileio.c (Faccess_file): Run the argument filename through
9499         Fexpand_file_name, before using it.
9501         * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
9502         ring-bell-function.  Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
9504 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
9506         * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
9508         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
9509         Fix clearing in the case of scroll bars on the right.
9511 2001-10-26  Juanma Barranquero  <lektu@terra.es>
9513         * w32gui.h (XImage): Add a dummy typedef.
9515 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
9517         * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
9519 2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>
9521         * frame.c (Fframe_parameter): Fix last change.
9523         * fileio.c: Revert last change (which removed old commented-out
9524         version of expand-file-name).  Add a comment that explains why
9525         this old version should not be removed.
9527 2001-10-25  Gerd Moellmann  <gerd@gnu.org>
9529         * frame.c (Fframe_parameter): Fix a bug whereby some
9530         ``artificial'' frame parameters, like `minibuffer' were not
9531         obtained by calling Fframe_parameters.
9533         * xterm.c (show_mouse_face): Clean up.  Recognize overwritten
9534         cursor differently.
9536         * xdisp.c (move_it_vertically_backward): Compute line height
9537         differently.  Add heuristic to try to be more compatible to 20.x.
9539 2001-10-25  Stefan Monnier  <monnier@cs.yale.edu>
9541         * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
9543         * editfns.c (text_property_stickiness): Fix Lisp_Object used as
9544         boolean.
9546 2001-10-25  Miles Bader  <miles@gnu.org>
9548         * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
9549         BG is a pointer to a structure, not a structure.
9550         (gif_format, png_format): Add missing commas.
9552 2001-10-24  Richard M. Stallman  <rms@gnu.org>
9554         * xfaces.c (Fface_attributes_as_vector): New function.
9555         (syms_of_xfaces): Defsubr it.
9557 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9559         * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
9560         variable `area'.
9562 2001-10-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9564         * search.c (scan_newline): Remove unused variable `selective_display'.
9566 2001-10-25  Miles Bader  <miles@gnu.org>
9568         * dispextern.h (struct image): Add `background',
9569         `background_valid', and `background_transparent' fields.
9570         (image_background, image_background_transparent): New declarations.
9571         (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
9572         * xfns.c (image_background, image_background_transparent)
9573         (four_corners_best): New functions.
9574         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
9575         (gs_format): Add `:background' entry.
9576         (lookup_image): Set IMG's background color if specified.
9577         (pbm_load, xbm_load_image, png_load): Set IMG's background field
9578         when appropriate.
9579         (x_clear_image_1): Reset `background_valid' and
9580         `background_transparent_valid' fields.
9581         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
9582         calculating it here.  Set IMG's background_transparent field.
9583         (enum xpm_keyword_index): Add XPM_BACKGROUND.
9584         (enum png_keyword_index): Add PNG_BACKGROUND.
9585         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
9586         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
9587         (enum gif_keyword_index): Add GIF_BACKGROUND.
9588         (enum gs_keyword_index): Add GS_BACKGROUND.
9589         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
9590         Pre-calculate image background color where necessary.
9591         * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
9592         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
9593         color to use for image glyph reliefs.
9595 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
9597         * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
9598         in full-width rows.
9600         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
9601         Fix clearing of area not covered by scroll bar.
9603 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9605         * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
9606         and `real_start'.
9607         (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
9608         (glyph_rect): Remove unused variable `area'.
9610 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
9612         * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
9614         * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
9615         (row_containing_pos): Take additional argument DY.
9616         Treat rows ending in middle of char differently.
9617         (display_line): Handle tabs on window systems differently.
9619         * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
9620         with additional argument.
9622         * dispextern.h (row_containing_pos): Adjust prototype.
9624         * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
9625         (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
9626         (try_window_id, try_window_reusing_current_matrix)
9627         (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
9628         (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
9630 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9632         * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
9633         gnuemacs).
9634         (HAVE_BOXES): Fix typo in comment.
9635         (push_menu_pane): Fix typo in comment.
9637         * xdisp.c: (display_prop_string_p): Remove unused local declaration
9638         of `Qwhen'.
9639         (single_display_prop_string_p): Remove unused local declarations
9640         of `Qwhen' and `Qmargin'.
9641         (string_buffer_position): Remove unused variable `around'.
9642         (store_frame_title): Remove unused variable `width'.
9644         * window.c: Don't define max.
9645         (coordinates_in_window): Remove unused variable `uy'.
9647         * widget.c: Don't define max.
9649         * process.c: Don't define max.
9650         (create_process): Remove unused variable `buffer'.
9652 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
9654         * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
9656 2001-10-23  Eli Zaretskii  <eliz@is.elta.co.il>
9658         * xfaces.c (Finternal_set_lisp_face_attribute)
9659         [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
9660         frame is on a windowed display.
9662 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
9664         * dispnew.c (sync_window_with_frame_matrix_rows):
9665         Fix handling of windows which aren't full-width, fix handling
9666         of marginal areas.
9668         * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
9670 2001-10-23  Andreas Schwab  <schwab@suse.de>
9672         * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
9673         LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
9675 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
9677         * xterm.c (x_draw_glyphs): Remove parameters READ_START and
9678         REAL_END.  Notice if cursor gets overwritten.
9679         (notice_overwritten_cursor): Take X positions as parameters.
9680         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
9681         around call to x_draw_glyphs.
9683 2001-10-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9685         * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
9686         instead of C) and usage.
9688         * editfns.c (char-to-string): Fix argument names (use CHAR instead
9689         of C) and usage.
9691         * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
9692         `left', `max_width' and `max_height'.
9694 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
9696         * xdisp.c (display_line): For a tab continued to the next line,
9697         set row's ends_in_middle_of_char_p.
9699 2001-10-22  Gerd Moellmann  <gerd@gnu.org>
9701         * xdisp.c (display_line): Fix computation of continuation lines
9702         width for TABs.
9704 2001-10-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9706         * xdisp.c (build_desired_tool_bar_string): Remove unused variable
9707         `Qlaplace'.
9709         * fileio.c: Remove unused code.
9711 2001-10-22  Miles Bader  <miles@gnu.org>
9713         * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
9714         (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
9715         Remove `DOC_STRINGS_IN_COMMENTS' cases.
9717 2001-10-21  Jason Rumney  <jasonr@gnu.org>
9719         * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
9721 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
9723         * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
9724         (Finsert_string): Avoid the multi-line string literals warning.
9726 2001-10-22  Miles Bader  <miles@gnu.org>
9728         * doc.c (Vhelp_manyarg_func_alist): Variable removed.
9729         (Fdocumentation): Don't use it.
9730         (syms_of_doc): Don't initialize it.
9732         * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
9733         * print.c (Fwith_output_to_temp_buffer): Likewise.
9734         * window.c (Fsave_window_excursion): Likewise.
9735         * editfns.c (Fsave_excursion, Fsave_current_buffer)
9736         (Fsave_restriction): Likewise.
9737         * eval.c (Frun_hooks, Frun_hook_with_args)
9738         (Frun_hook_with_args_until_failure)
9739         (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
9740         (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
9741         (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
9742         (Funwind_protect, Fcondition_case): Likewise.
9743         * coding.c (Ffind_operation_coding_system): Likewise.
9744         * keyboard.c (Ftrack_mouse): Likewise.
9746 2001-10-21  Miles Bader  <miles@gnu.org>
9748         * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
9749         (Fmake_hash_table): Add usage: string to doc string.
9750         * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
9751         (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
9752         (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
9753         * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
9754         (Fml_prefix_argument_loop): Likewise.
9756 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9758         * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
9760         * sysdep.c (init_sys_modes): Change doc-string comments to `new
9761         style' [w/`doc:' keyword].
9763         * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
9764         * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
9765         comments to `new style' [w/`doc:' keyword].
9767 2001-10-21  Jason Rumney  <jasonr@gnu.org>
9769         * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
9771         * w32term.c (remember_mouse_glyph): New function.
9772         (w32_mouse_position): Use it.
9773         (note_mouse_movement): If the mouse moved off the glyph, remember
9774         its new position.
9776         * w32term.h (struct w32_output): Correct spelling of x_compatible.
9777         (w32_display_info): Add mouse_face_overlay.
9779         * w32term.c (notice_overwritten_cursor): Renamed from
9780         note_overwritten_text_cursor.  Rewritten to take glyph widths into
9781         account.
9782         (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
9783         (fast_find_string_pos): New function.
9784         (fast_find_position): Return the correct vpos.  Add parameter
9785         STOP.  In the final row, stop before glyphs having STOP as object.
9786         Don't consider glyphs that are not from a buffer.
9787         (fast_find_position) [0]: Add a presumably more correct version
9788         for after 21.1.
9789         (expose_window_tree, expose_frame): Don't compute intersections here.
9790         (expose_window): Do it here instead.
9791         (expose_window_tree, expose_window, expose_line): Return 1 when
9792         overwriting mouse-face.
9793         (expose_window): If W is the window currently being updated, mark
9794         the frame garbaged.
9795         (expose_frame): If mouse-face was overwritten, redo it.
9796         (x_use_underline_position_properties): New variable.
9797         (syms_of_xterm): DEFVAR_BOOL it.
9798         (x_draw_glyph_string): Add comment to use it in future.
9799         (x_draw_glyph_string): Restore clipping after drawing box.
9800         Fix a computation of the underline position.
9801         (w32_get_glyph_string_clip_rect): Minor cleanup.
9802         (x_fill_stretch_glyph_string): Remove an assertion.
9803         (x_produce_glyphs): Don't convert multibyte characters
9804         to unibyte characters in unibyte buffers.
9805         (cursor_in_mouse_face_p): New function.
9806         (x_draw_stretch_glyph_string): Use it to choose a different GC
9807         when drawing a cursor within highlighted text.  Don't draw
9808         background again if it has already been drawn.
9809         (x_draw_glyph_string_box): Don't draw a full-width
9810         box just because the glyph row's full_width_p flag is set.
9811         (x_draw_glyphs): Fix computation of rightmost x for
9812         full-width rows.
9813         (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
9814         (w32_draw_relief_rect): Extend left shadow to the bottom and left;
9815         change bottom shadow accordingly. Some cleanup.
9816         (x_update_window_end): Handle overwritten mouse face
9817         also for tool bar windows.
9818         (show_mouse_face): Set the glyph row's mouse_face_p flag also when
9819         DRAW is DRAW_IMAGE_RAISED.
9820         (clear_mouse_face): Return 1 if text with mouse face was
9821         actually redrawn.  Make the function static.
9822         Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
9823         optimize away highlighting if we pass over that same overlay again.
9824         (note_mouse_highlight): Call mouse_face_overlay_overlaps
9825         to detect a case where we have to highlight a different region
9826         despite not having left the currently highlighted region.
9827         Set mouse_face_overlay in the x_display_info.  Avoid changing the
9828         mouse pointer shape when show_mouse_face has already done it, or
9829         there is no need.  Handle mouse-face and help-echo in strings.
9830         (glyph_rect): New function.
9831         (w32_mouse_position): Use it to raise the threshold for mouse
9832         movement event generation.
9833         (w32_initialize_display_info): Initialize the x_display_info's
9834         mouse_face_overlay.
9835         (w32_set_vertical_scroll_bar): Don't clear a zero height
9836         or width area.
9837         (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
9838         a widget to zero height.
9840         * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
9841         Protect unibyte strings created by replacing their multibyte
9842         equivalents in menu_items.
9843         (w32_menu_show): Don't overwrite an item's name with its key
9844         description in case the description is a multibyte string.
9845         (single_submenu): Some cleanup.
9847         * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
9848         (postprocess_image): New function.
9849         (lookup_image): Call it for all image types except PostScript.
9850         (x_kill_gs_process): Call postprocess_image.
9851         (tiff_error_handler, tiff_warning_handler): New functions.
9852         (tiff_load): Install them as handlers.
9853         (x_kill_gs_process): Recognize if someone has cleared the image
9854         cache under us.
9855         (valid_image_p): Protect better against invalid image
9856         specifications.  Previous code could signal an error.
9857         (Fx_hide_tip, Fshow_tip): Doc fix.
9858         (Fv_max_tooltip_size): New variable.
9859         (syns_of_xfns): DEFVAR_LISP it.
9860         (Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
9861         window buffer to *tip* right after creating the frame. Set frame's
9862         window_width.  Use a maximum tooltip size specified by
9863         Vx_max_tooltip_size, if that has valid contents.
9864         (compute_tip_xy): Add parameters WIDTH and HEIGHT.
9865         Make sure the tooltip is completely visible.
9866         (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
9867         (Fx_create_frame): Adjust the frame's height for presence
9868         of the tool bar before calling x_figure_window_size.
9869         (x_set_tool_bar_lines): Clear the tool bar window's current matrix
9870         when the window gets smaller.
9871         (x_set_foreground_color): Set frame's cursor_pixel.
9872         (x_set_foreground_color, x_set_background_color): Cleaned up.
9873         (x_set_font): Handle case of x_new_fontset returning the same name
9874         as before, although there was a change in fontsets.
9876 2001-10-21  Miles Bader  <miles@gnu.org>
9878         * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
9879         (Flogxor): Add usage: string to doc string.
9880         * charset.c (Fstring): Likewise.
9881         * callproc.c (Fcall_process_region, Fcall_process): Likewise.
9882         * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
9884 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
9886         * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
9888         * alloc.c: Reindent DEFUNs with doc: keywords.
9890         * abbrev.c (Finsert_abbrev_table_description): Reindent.
9892         * frame.c: Change doc-string comments to `new style' [w/`doc:'
9893         keyword].
9895 See ChangeLog.9 for earlier changes.
9897 ;; Local Variables:
9898 ;; coding: iso-2022-7bit
9899 ;; End:
9901     Copyright (C) 2001, 2002 Free Software Foundation, Inc.
9902   Copying and distribution of this file, with or without modification,
9903   are permitted provided the copyright notice and this notice are preserved.