Simplify Emacs 19 compatibility.
[emacs.git] / src / ChangeLog
blobefe2355cfa5342b90ea287ac4474b43b899a0908
1 2002-11-09  Stefan Monnier  <monnier@cs.yale.edu>
3         * syntax.c (scan_sexps_forward): Update syntax table before reading
4         a char rather than after so we don't update the table past eob.
6 2002-11-09  Dave Love  <fx@gnu.org>
8         * buffer.c (Fset_buffer_major_mode): Fix last change.
10         * regex.c (regexec): Fix pmatch declaration.
12         * cmds.c (Fself_insert_command): Apply Vtranslation_table_for_input.
14         * keyboard.c (command_loop_1): Apply Vtranslation_table_for_input
15         to self-inserting characters.
16         (syms_of_keyboard) <keyboard-translate-table>: Doc fix.
18         * coding.c (Vtranslation_table_for_input): New.
19         (syms_of_coding): DEFVAR it.
21 2002-11-08  Juanma Barranquero  <lektu@terra.es>
23         * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
24         window.
26 2002-11-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
28         * process.c (Fformat_network_address): Removed unused locals p,
29         cp, and i.
31 2002-11-06  Dave Love  <fx@gnu.org>
33         * buffer.c (Qset_buffer_major_mode_hook): New.
34         (Fset_buffer_major_mode): Use it.
36 2002-11-06  Richard M. Stallman  <rms@gnu.org>
38         * xterm.c (x_term_init): Use turn_on_atimers, not start_polling
39         and stop_polling.
41         * process.c (wait_reading_process_input):
42         Test POLLING_PROBLEM_IN_SELECT, not hpux.
43         Avoid initialization for auto Lisp_Object var.
45         * s/hpux11.h (POLLING_PROBLEM_IN_SELECT): Add #undef.
47         * s/hpux10.h (POLLING_PROBLEM_IN_SELECT): Defined.
49 2002-11-05  Richard M. Stallman  <rms@gnu.org>
51         * s/sol2-5.h (BROKEN_SIGIO): Turn off the #undef.
53         * callint.c (Fcall_interactively): New local filter_specs.
54         (Fcall_interactively): Check for progn as well as let.
55         Add a gcpro.
56         (Qprogn): New variable.
57         (syms_of_callint): Staticpro and init Qprogn.
59 2002-11-04  John Paul Wallington  <jpw@shootybangbang.com>
61         * lread.c (Feval_buffer): Doc fix.
63 2002-11-04  Dave Love  <fx@gnu.org>
65         * keyboard.c (read_char): Always translate iff
66         Vkeyboard_translate_table is a char table and c is valid.
68         * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
69         and fix C types.
71 2002-11-03  Stefan Monnier  <monnier@cs.yale.edu>
73         * xdisp.c (single_display_prop_intangible_p): Strings are intangible.
75         * editfns.c (get_pos_property): Don't hardcode Qfield.
77         * keyboard.c (adjust_point_for_property): Handle `display' prop on
78         overlays.  Also handle `invisible' prop.
80 2002-11-02  Stefan Monnier  <monnier@cs.yale.edu>
82         * coding.c (decode_coding_emacs_mule, decode_coding_iso2022)
83         (decode_coding_sjis_big5, decode_eol): Allow lone \r in DOS EOL.
85 2002-11-01  Andreas Schwab  <schwab@suse.de>
87         * editfns.c (Fmessage): Revert last change to properly handle %%
88         format.
90 2002-11-01  Stefan Monnier  <monnier@cs.yale.edu>
92         * xmenu.c (unuse_menu_items): New fun.
93         (menu_items_inuse): New var.
94         (syms_of_xmenu): Initialize it.
95         (init_menu_items): Use it to detect re-entrance.
96         (Fx_popup_menu, Fx_popup_dialog, set_frame_menubar): Reset when done.
97         (Fx_popup_menu): Remove spurious XSETFRAME.
99         * editfns.c (find_field): Make an exception for nil fields.
101 2002-11-01  Dave Love  <fx@gnu.org>
103         * m/gec63.h: Deleted.
105 2002-10-31  Dave Love  <fx@gnu.org>
107         * xterm.c (XTread_socket): Fix last change.
108         (xaw_scroll_callback): Cast call_data to long to avoid warning.
110 2002-10-31  Stefan Monnier  <monnier@cs.yale.edu>
112         * process.c (Fformat_network_address): Fix int/Lisp_Object mixup.
114 2002-10-30  Stefan Monnier  <monnier@cs.yale.edu>
116         * editfns.c (overlays_around, get_pos_property): New funs.
117         (find_field): Use them.
118         Also be careful not to modify POS before its last use.
119         (Fmessage): Don't Fformat if there's nothing to format.
121 2002-10-30  Dave Love  <fx@gnu.org>
123         * process.c [HAVE_SYS_WAIT]: Include sys/wait.h.
124         [HAVE_PTY_H]; Include pty.h.
126         * lread.c (Fload) <!load_dangerous_libraries>: Close fd.
128         * xterm.c (Qeql): Declare.
129         (Vx_keysym_table): New.
130         (syms_of_xterm): Initialize it.
131         (XTread_socket): Use it.  Deal with ASCII keysyms.
132         (XSetIMValues) [HAVE_X11R6]: Prototype.
134         * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extended.
135         (lispy_kana_keys): Comment out.
136         (make_lispy_event) [XK_kana_A]: Comment out.
137         (modify_event_symbol) <sizeof (long) == sizeof (EMACS_INT)>:
138         Fix sprintf call.
140         * s/osf5-0.h (C_SWITCH_SYSTEM): Revert last change (fixed by
141         regexp.h change).
142         (TERMINFO, LIBS_TERMCAP): Define.
144         * s/usg5-4.h (bcopy, bzero): Define conditional on HAVE_BCOPY.
145         (bcmp): Define conditional on HAVE_BCMP.
146         (NO_SIOCTL_H): Don't define.
147         (TIOCSIGSEND): Don't make conditional on IRIX6.
149         * s/sol2-5.h: Don't include strings.h.
150         (bcopy, bzero, bcmp) [HAVE_BCOPY]: Don't undef.
152         * s/irix6-0.h (IRIX6): Don't define.
153         (bcopy, bcmp, bzero): Don't undef.
155         * s/irix6-5.h: Don't include strings.h.
156         (IRIX6): Don't define.
157         (bcopy, bcmp, bzero): Don't undef.
159         * syntax.c (Fforward_comment): Doc fix.
161 2002-10-29  Kim F. Storm  <storm@cua.dk>
163         * process.c (Fsignal_process): Allow PROCESS to be specified by
164         name in addition to pid (as integer or string).
166 2002-10-28  Harald Maier  <Harald.Maier.BW@t-online.de>  (tiny change)
168         * w32heap.c: Don't redefine _heap_init and _heap_term on MSVC 7 build
169         environments.
171 2002-10-27  Kim F. Storm  <storm@cua.dk>
173         * xterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
175         * w32term.c (note_mouse_highlight): Don't use mouse-face if hidden.
177         * msdos.c (IT_note_mouse_highlight): Don't use mouse-face if hidden.
179         * macterm.c (note_mouse_highlight): Don't use mouse-face if hidden.
181 2002-10-26  Richard M. Stallman  <rms@gnu.org>
183         * editfns.c (Fformat): Detect invalid format letters for floats.
185 2002-10-25  Kenichi Handa  <handa@m17n.org>
187         * xfns.c (x_set_name): Encode by Qcompound_text unconditionally.
188         (x_set_title): Likewise.
190 2002-10-25  Juanma Barranquero  <lektu@terra.es>
192         * macgui.h:
193         * w32gui.h: Remove definition of XColor.
195         * dispextern.h [!HAVE_X_WINDOWS]: Define XColor.
197 2002-10-24  Kim F. Storm  <storm@cua.dk>
199         * xdisp.c (get_window_cursor_type): New arg ACTIVE_CURSOR.
200         Callers changed (supply dummy arg).
202         * lisp.h (get_window_cursor_type): Update prototype.
204         * w32term.c (x_display_and_set_cursor): Get active_cursor from
205         get_window_cursor_type to track system caret.
207 2002-10-24  Kim F. Storm  <storm@cua.dk>
209         * process.c (Fformat_network_address): New function.
210         (syms_of_process): Defsubr it.
211         (list_processes_1): Use it to format :local/:remote address if
212         service/host is not set; before emacs would crash in that case.
213         (Fmake_network_process): Don't use Ffind_operation_coding_system
214         to setup coding system if host or service is not set.
216 2002-10-23  Juanma Barranquero  <lektu@terra.es>
218         Patch suggested by Jay Finger <jay_finger@hotmail.com>.
220         * w32term.c (w32_term_init): Pass XColor to w32_define_color, not
221         COLORREF.
223         * macgui.h:
224         * w32gui.h: Add definition of XColor.
226         * macfns.c:
227         * w32fns.c:
228         * xfaces.c: Remove definition of XColor.
230 2002-10-22  Stefan Monnier  <monnier@cs.yale.edu>
232         * xfns.c (x_set_name, x_set_title): `icon.value' has unsigned char.
234         * window.c (window_loop): For GET_LRU_WINDOW and GET_LARGEST_WINDOW>,
235         Only ignore truly dedicated windows.  For UNSHOW_BUFFER, delete the
236         window if it is dedicated.
237         (Fshrink_window): Add preserve_before as was done for enlarge_window.
238         (Vspecial_display_function): Update docstring.
240         * buffer.c (assoc_ignore_text_properties, Fother_buffer, Fkill_buffer)
241         (call_overlay_mod_hooks): Use CONSP and XCAR/XCDR.
242         (Fget_buffer_create, advance_to_char_boundary): Use BEG and BEG_BYTE;
244 2002-10-21  Stefan Monnier  <monnier@cs.yale.edu>
246         * casefiddle.c (casify_region): Don't treat a prefix char as part
247         of a word when at the beginning.
249 2002-10-17  Juanma Barranquero  <lektu@terra.es>
251         * lread.c (syms_of_lread): Fix typos.
253 2002-10-17  Dave Love  <fx@gnu.org>
255         * Makefile.in (TEMACS_LDFLAGS): Add trailing comment.
257 2002-10-16  Richard M. Stallman  <rms@gnu.org>
259         * fileio.c (Fcopy_file): Fix backward test of KEEP_TIME.
261 2002-10-14  Juanma Barranquero  <lektu@terra.es>
263         * w16select.c (syms_of_win16select): Fix docstring for
264         `selection-coding-system'.
266         * w32select.c (syms_of_w32select): Likewise.
268 2002-10-14  Stefan Monnier  <monnier@cs.yale.edu>
270         * syntax.c (scan_lists): Don't get fooled by a symbol ending with
271         a backslash-quoted char.
272         (scan_lists, scan_sexps_forward): Pacify the compiler.
274 2002-10-13  Richard M. Stallman  <rms@gnu.org>
276         * window.c (window_scroll): Set immediate_quit.
278         * print.c (print): When backquote form is the car of a list,
279         output in old style.  Use old_backquote_output to output all
280         comma forms inside it in old style too.
282         * buffer.h (struct buffer): Move `undo_list' down below `name'.
284 2002-10-11  Markus Rost  <rost@math.ohio-state.edu>
286         * emacs.c (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in
287         batch mode).
289         * lread.c (Fload): Doc fix (load-suffixes).
291 2002-10-10  Steven Tamm  <steventamm@mac.com>
293         * macterm.c (syms_of_macterm, mac_get_mouse_btn):
294         Reverse functionality of mac-wheel-button-is-mouse-2 to be correct.
295         Also switch the default to Qnil from Qt.
297 2002-10-08  Kenichi Handa  <handa@m17n.org>
299         * coding.c (code_convert_region): When we need more GAP for
300         conversion, pay attention to the case that coding->produced is not
301         greater than coding->consumed.
303 2002-10-07  Richard M. Stallman  <rms@gnu.org>
305         * unexelf.c (unexec): Redo 9/16 change, but only if IRIX6_5.
307 2002-10-06  Andrew Choi  <akochoi@shaw.ca>
309         * macmenu.c (mac_menu_show): Add j to count menu items; match
310         menu_item_selection to it to find selected item.
312 2002-10-06  Jan D.  <jan.h.d@swipnet.se>
314         * xterm.c (XTread_socket): Fix from 2002-10-03 didn't cover all
315         cases.  The correct fix is to pass ReparentNotify to Xt.
316         The shell widget interprets ConfigureNotify differently depending
317         on if it has been reparented or not.
319 2002-10-05  Markus Rost  <rost@math.ohio-state.edu>
321         * editfns.c (Fformat_time_string): Doc fix.
323 2002-10-05  John Paul Wallington  <jpw@shootybangbang.com>
325         * fns.c (Flength): Doc fix.
327 2002-10-04  Stefan Monnier  <monnier@cs.yale.edu>
329         * keyboard.c (keyremap): New struct.
330         (read_key_sequence): Use it: globally replace keytran_foo with
331         keytran.foo and fkey_foo with fkey.foo.  Rename temp vars
332         keytran_next and fkey_next to just `next'.
334 2002-10-04  Steven Tamm  <steventamm@mac.com>
336         * macterm.c (keycode_to_xkeysym_table): Change return to be
337         treated like an X keysym.
339 2002-10-03  Jan D.  <jan.h.d@swipnet.se>
341         * xterm.c (XTread_socket): For ConfigureNotify, with x and y == 0,
342         and USE_MOTIF, call XTranslateCoordinates to get the real x and y.
343         This is to also handle x/y changes that occur because of a resize.
345 2002-10-02  John Paul Wallington  <jpw@shootybangbang.com>
347         * frame.c (Vdelete_frame_functions): New variable.
348         (syms_of_frame): Initialize and defvar it.
349         (Fdelete_frame): Use it instead of delete-frame-hook.  Don't run
350         it when frame's `tooltip' parameter is non-nil.
352         * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t.
354         * w32fns.c (x_create_tip_frame): Likewise.
356         * macfns.c (x_create_tip_frame): Likewise.
358 2002-09-30  Kenichi Handa  <handa@m17n.org>
360         * xterm.c (x_encode_char): For DIM=1 charset, set ccl->reg[2] to
361         -1 before calling ccl_driver.
363         * coding.c (decode_coding_emacs_mule): Check coding->cmp_data.
364         Only when it is non-nil, handle composition sequence.
365         (setup_coding_system) <0>: Don't force composition handling.
367         * Makefile.in (lisp, shortlisp): Add utf-16.elc
369 2002-09-29  Richard M. Stallman  <rms@gnu.org>
371         * search.c (Freplace_match): Adjust match data for the substitution
372         just made in the buffer.
374         * xdisp.c (STOP_POLLING, RESUME_POLLING): New macros.
375         (redisplay_internal): Use them.  Do RESUME_POLLING at end of function.
377 2002-09-27  Richard M. Stallman  <rms@gnu.org>
379         * keyboard.c (STOP_POLLING, RESUME_POLLING): New macros.
380         (read_char): Use them.  Do all exits thru the end of the function.
382 2002-09-27  Kenichi Handa  <handa@etl.go.jp>
384         * xfaces.c (try_font_list): Pay attention to the case that FAMILY
385         is nil.
387 2002-09-26  Richard M. Stallman  <rms@gnu.org>
389         * regex.h (__restrict_arr): Don't define if already defined.
391         * coding.c (run_pre_post_conversion_on_str):
392         Save and restore Vdeactivate_mark.
394 2002-09-26  John Paul Wallington  <jpw@shootybangbang.com>
396         * minibuf.c (Fminibufferp): Add an optional `buffer' argument.
398 2002-09-26  Kenichi Handa  <handa@etl.go.jp>
400         * xfaces.c (try_font_list): New arg PREFER_FACE_FAMILY.  If it is
401         nonzero, try face's family at first.  Otherwise try FAMILY at first.
402         (choose_face_font): If C is a single byte char or latin-1, call
403         try_font_list with PREFER_FACE_FAMILY 1.
405 2002-09-21  Richard M. Stallman  <rms@gnu.org>
407         * window.c (select_window_1): Don't select frame.
408         Set frame's selected window only when frame itself is selected.
409         (Fselect_window): Doc fix.
411 2002-09-18  Kim F. Storm  <storm@cua.dk>
413         * process.c (make-network-process): Doc fix (there is no
414         network-server-log-function hook).
416 2002-09-18  Richard M. Stallman  <rms@gnu.org>
418         * print.c (print): Clear out the unused parts of Vprint_number_table.
419         (syms_of_print): Doc fix for `print-number-table'.
421         * unexelf.c (unexec): Undo previous change.
423 2002-09-17  Andreas Schwab  <schwab@suse.de>
425         * m/alpha.h [LINUX]: Don't define DATA_START.
427 2002-09-16  Dave Love  <fx@gnu.org>
429         * unexelf.c (unexec): Deal with .got, reinstating change from
430         25-08-1999.
432 2002-09-13  Richard M. Stallman  <rms@gnu.org>
434         * s/sol2-6.h (UNEXEC): Comment out definition.
436         * unexsol.c (unexec): Don't downcase first letter of error msg.
438         * xfaces.c (Fcolor_supported_p): Just one arg is required.
440 2002-09-12  Markus Rost  <rost@math.ohio-state.edu>
442         * unexsol.c: Include buffer.h, charset.h, coding.h.
444 2002-09-11  Richard M. Stallman  <rms@gnu.org>
446         * unexsol.c: Don't use report_file_error; do it by hand
447         using dlerror.
449         * process.c (wait_reading_process_input, both versions):
450         Before calling turn_on_atimers, call stop_polling.
452         * emacs.c (syms_of_emacs) <command-line-args>: Doc fix.
454         * xdisp.c (try_scrolling): If after make_cursor_line_fully_visible
455         we go to too_near_end, call clear_glyph_matrix.
456         (redisplay_window): After make_cursor_line_fully_visible,
457         call clear_glyph_matrix and bypass `goto done'.
459         * xfns.c (x_report_frame_params): If FRAME_SCROLL_BAR_PIXEL_WIDTH is 0
460         and we have non-toolkit scroll bars, return nil for scroll-bar-width.
462 2002-09-10  Richard M. Stallman  <rms@gnu.org>
464         * fileio.c (Fdo_auto_save): Catch error making directory.
465         Only call push_message if we need to.
466         At the same time, make an unwind-protect to pop it.
467         Rename local message_p to old_message_p.
468         (do_auto_save_make_dir, do_auto_save_eh): New functions.
469         (do_auto_save_unwind): Don't call pop_message.
471         * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
473         * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
475         * alloc.c (Fgarbage_collect): Use pop_message_unwind.
477         * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
479 2002-09-10  Stefan Monnier  <monnier@cs.yale.edu>
481         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
482         (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
483         (re_match_2_internal): Be more careful with infinite loops.
485 2002-09-10  Kim F. Storm  <storm@cua.dk>
487         * macros.c (end_kbd_macro): New function.
488         (Fend_kbd_macro): Use it.
490         * macros.h (end_kbd_macro): Declare extern.
492         * keyboard.c (Fdiscard_input): If defining keyboard macro,
493         end and save it instead of discarding it.
495 2002-09-09  Markus Rost  <rost@math.ohio-state.edu>
497         * s/sol2-6.h: Fix typo.  Add comment.
499 2002-09-09  Richard M. Stallman  <rms@gnu.org>
501         * regex.c (regnum_t): Use signed int, not unsigned int.
503         * s/sol2-6.h: New file.
505         * s/sol2-5.h (UNEXEC): Definition deleted.
507 2002-09-08  Kim F. Storm  <storm@cua.dk>
509         * macros.c (executing_macro_index): Change type to EMACS_INT.
510         (syms_of_macros): DEFVAR_INT it  (needed by kmacro).
512         * macros.h (executing_macro_index): Change type to EMACS_INT.
514 2002-09-06  Richard M. Stallman  <rms@gnu.org>
516         * casetab.c (set_case_table): Make canon table point to eqv table.
518 2002-09-06  Juanma Barranquero  <lektu@terra.es>
520         * coding.c (syms_of_coding): Fix spacing.
522         * composite.c (Fcompose_region_internal)
523         (Fcompose_string_internal): Likewise.
525         * data.c (Flsh): Likewise.
527         * fontset.c (Fset_fontset_font): Likewise.
529         * macfns.c (Fx_server_max_request_size): Likewise.
531         * w16select.c (syms_of_win16select): Likewise.
533         * w32select.c (syms_of_w32select): Likewise.
535         * xselect.c (syms_of_xselect): Likewise.
537 2002-09-05  Richard M. Stallman  <rms@gnu.org>
539         * regex.c (set_image_of_range_1): In no-TRANSLATE case,
540         call EXTEND_RANGE_TABLE and return a proper value.
541         (set_image_of_range): Don't call set_image_of_range_1
542         if no TRANSLATE or if range includes all of Latin-1.
543         Only call it for the Latin-1 part of the range.
544         For other cases, make two separate ranges,
545         one for the original specified characters and one for
546         their case-conversions.
548 2002-09-04  Richard M. Stallman  <rms@gnu.org>
550         * s/sol2-5.h (UNEXEC): Use unexsol.o.
552         * window.c (displayed_window_lines): Correct for one-off bug
553         in HEIGHT on non-window displays.
555         * regex.c (set_image_of_range_1): New function.
556         (set_image_of_range): Use set_image_of_range_1 for Latin-1.
557         Return a value to indicate running out of memory.
558         (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
559         (extend_range_table_work_area): New subroutine.
560         (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
561         Different calling conventions, and used from set_image_of_range{,_1}.
562         (IMMEDIATE_QUIT_CHECK): Definitions moved.
564 2002-09-04  Juanma Barranquero  <lektu@terra.es>
566         * makefile.w32-in: All dependencies updated.
568 2002-09-01  Richard M. Stallman  <rms@gnu.org>
570         * unexsol.c: New file.
572         * xfns.c (Qbox): Declare external, don't define.
574         * xdisp.c (redisplay_window) <force-start case>:
575         If point is on semi-visible last line, reposition
576         it at previous line.
578         * alloc.c (display_malloc_warning): Use display-warning.
579         (malloc_warning_1): Function deleted.
581         * alloc.c [ALLOC_DEBUG]: #undef INLINE.
583         * lread.c (read1): Handle #! by skipping the line.
585 2002-08-31  Richard M. Stallman  <rms@gnu.org>
587         * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
588         Don't include LDFLAGS.
589         (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
591 2002-08-31  Eli Zaretskii  <eliz@is.elta.co.il>
593         * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
594         member of x_display_info unless we compile for some window system.
596 2002-08-31  Kim F. Storm  <storm@cua.dk>
598         * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
599         (get_window_cursor_type): Don't use them.
600         (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
602 2002-08-30  Kenichi Handa  <handa@etl.go.jp>
604         * xdisp.c (get_next_display_element): Fix previous change.
606 2002-08-30  Andrew Choi  <akochoi@shaw.ca>
608         * macterm.c (expose_overlaps): New function (merge code from
609         xterm.c).
610         (expose_window): Use it to fix the display of overlapping
611         rows (merge code from xterm.c).
613         * macfns.c (Qbox): Add extern declaration.
615 2002-08-30  Juanma Barranquero  <lektu@terra.es>
617         * w32fns.c (Qbox): Make extern.
618         (syms_of_w32fns): Remove initialization of Qbox.
620 2002-08-30  Rune Kleveland  <runekl@viewpoint.no>  (tiny change)
622         * xfns.c (Fx_open_connection): Fix error message.
624 2002-08-30  Kim F. Storm  <storm@cua.dk>
626         The following changes consolidates the handling of the cursor
627         type in xdisp.c, moving duplicate code and functionality from
628         xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
630         * frame.h (enum text_cursor_kinds): Consolidated here.
631         Added DEFAULT_CURSOR value.
632         (struct frame) <desired_cursor, cursor_width>
633         <blink_off_cursor, blink_off_cursor_width>: New fields.
634         Consolidated from output_x, output_w32 and output_mac structs.
635         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
636         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
638         * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
639         Variables consolidated here.
640         (Valternate_cursor_type, Qalternate_cursor_type): New variables.
641         (Vcursor_in_non_selected_windows): Renamed from
642         cursor_in_non_selected_windows and changed to Lisp_Object.
643         (syms_of_xdisp): Define and staticpro new and moved variables.
644         (get_specified_cursor_type): Renamed from x_specified_cursor_type;
645         consolidated here.  Recognize Qhollow setting.
646         (set_frame_cursor_types): New function to set frame cursor types
647         based on the frame parameters.
648         (get_window_cursor_type): New function to calculate new cursor
649         type and width for the specified window.  Based on duplicated
650         code consolidated here.
651         Enhancements: cursor-in-non-selected-windows may be a cursor type,
652         check buffer-local alternate-cursor-type and blink-cursor-alist
653         before using built-in blink off methods.
655         * dispextern.h (cursor_in_non_selected_windows): Extern removed.
657         * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
658         (get_specified_cursor_type, get_window_cursor_type)
659         (set_frame_cursor_types): Added prototypes.
661         * macfns.c (x_specified_cursor_type): Removed.
662         (x_set_cursor_type): Use set_frame_cursor_types.
663         (Qbar, Qbox): Removed.
664         (syms_of_macfns): Don't intern or staticpro them.
666         * macterm.c (x_specified_cursor_type): Remove prototype.
667         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
668         (x_display_and_set_cursor): Use get_window_cursor_type.
669         Remove unused local variables cursor_non_selected, active_cursor.
670         Redraw cursor if hbar cursor width changes.
671         (make_mac_frame): Set FRAME_DESIRED_CURSOR.
673         * macterm.h (enum text_cursor_kinds): Removed.
674         (struct output_mac) <current_cursor, desired_cursor, cursor_width>
675         <blink_off_cursor, blink_off_cursor_width>: Members removed.
676         (FRAME_DESIRED_CURSOR): Macro removed.
678         * w32fns.c (Vblink_cursor_alist): Removed.
679         (Qbar, Qhbar, Qbox, Qhollow): Removed.
680         (syms_of_w32fns): Don't intern, staticpro, or define them.
681         (x_specified_cursor_type): Removed.
682         (x_set_cursor_type): Use set_frame_cursor_types.
684         * w32term.c (x_specified_cursor_type): Remove prototype.
685         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
686         (x_display_and_set_cursor): Use get_window_cursor_type.
687         Remove unused local variables cursor_off_state.
688         Redraw cursor if hbar cursor width changes.
689         Changed all occurrences of w32_highlight_frame to x_highlight_frame.
691         * w32term.h (enum text_cursor_kinds): Removed.
692         (struct output_w32) <current_cursor, desired_cursor, cursor_width>
693         <blink_off_cursor, blink_off_cursor_width>: Members removed.
694         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
695         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
696         (struct w32_display_info) <x_highlight_frame>: Renamed member from
697         w32_highlight_frame.
699         * xfns.c (Vblink_cursor_alist): Removed.
700         (Qbar, Qhbar, Qbox, Qhollow): Removed.
701         (syms_of_xfns): Don't intern, staticpro, or define them.
702         (x_specified_cursor_type): Removed.
703         (x_set_cursor_type): Use set_frame_cursor_types.
705         * xterm.c (x_specified_cursor_type): Remove prototype.
706         (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
707         (x_display_and_set_cursor): Use get_window_cursor_type.
708         Remove unused local variables cursor_off_state.
709         Redraw cursor if hbar cursor width changes.
711         * xterm.h (enum text_cursor_kinds): Removed.
712         (struct output_x) <current_cursor, desired_cursor, cursor_width>
713         <blink_off_cursor, blink_off_cursor_width>: Members removed.
714         (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
715         (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
716         (x_specified_cursor_type): Remove prototype.
718 2002-08-28  Richard M. Stallman  <rms@gnu.org>
720         * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
721         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
722         (Vblink_cursor_alist): New variable.
723         (syms_of_w32fns): Initialize and defvar it.
724         (x_specified_cursor_type): Recognize Qbox for filled box.
725         Exceptions are hollow boxes.
726         (Qbox, Qhollow): New variables.
727         (syms_of_w32fns): Initialize and staticpro them.
729         * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
730         New macros.
731         (struct w32_output): New fields blink_off_cursor, blink_off_cursor_width.
732         (FRAME_CURSOR_WIDTH): New macro.
734         * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
735         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
737         * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
738         for bar cursor.
740         * w32term.c (expose_overlaps): New function.
741         (expose_window): Use it to fix the display of overlapping rows.
743 2002-08-28  Simon Josefsson  <jas@extundo.com>
745         * xfns.c (Fx_open_connection): Improve help when X connection
746         fails, xhost is insecure and xauth is better.
748 2002-08-28  Juanma Barranquero  <lektu@terra.es>
750         * makefile.w32-in: Add missing dependencies on w32term.h and
751         composite.h.
753         * emacs.c (USAGE1): Add missing newline.
755 2002-08-27  Andrew Choi  <akochoi@shaw.ca>
757         * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
759 2002-08-27  Richard M. Stallman  <rms@gnu.org>
761         * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
762         FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
763         (Vblink_cursor_alist): New variable.
764         (syms_of_xfns): Initialize and defvar it.
765         (x_specified_cursor_type): Recognize Qbox for filled box.
766         Exceptions are hollow boxes.
767         (Qbox, Qhollow): New variables.
768         (syms_of_xfns): Initialize and staticpro them.
770         * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
771         New macros.
772         (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
774         * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
775         and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
777         * emacs.c (main): Handle --script.
778         (USAGE1): Mention --script.
779         (standard_args): Define sort order for --script.
781 2002-08-27  Gerd Moellmann  <gerd.moellmann@t-online.de>
783         * xdisp.c (redisplay_updating_p): Variable removed.
784         (inhibit_free_realized_faces, Qinhibit_free_realized_faces): New
785         variables.
786         (init_iterator): Don't free realized faces if
787         inhibit_free_realized_faces is set.
788         (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
789         (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
790         initialize Qinhibit_free_realized_faces.
792         * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
793         when iterator is adding glyphs to a glyph matrix.
795 2002-08-27  Kenichi Handa  <handa@etl.go.jp>
797         * xdisp.c (get_next_display_element): In unibyte case, don't use
798         octal form for such eight-bit characters that can be converted to
799         multibyte char.
801 2002-08-26  Kim F. Storm  <storm@cua.dk>
803         * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize
804         foreground and background colors. From Joe Buehler (tiny change).
806 2002-08-26  Miles Bader  <miles@gnu.org>
808         * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
810 2002-08-25  Andrew Choi  <akochoi@shaw.ca>
812         * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
813         defined instead of MAC_OSX.
815         * s/darwin.h (select): Define select to sys_select only if
816         HAVE_CARBON is defined.
817         (HAVE_WORKING_VFORK): #undef it.  Define vfork to fork.
818         (DONT_REOPEN_PTY): #def it.
820         * macterm.c (XTread_socket): Remove code to call
821         SendEventToEventTarget for keys with command modifiers when
822         mac_command_key_is_meta is nil.
824 2002-08-24  Andreas Schwab  <schwab@suse.de>
826         * eval.c (Fdefvar): Fix last change.
828 2002-08-23  Richard M. Stallman  <rms@gnu.org>
830         * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
831         Record variables in load history as (defvar . VAR).
832         (Fdefvar): Don't record in load history if no initial value.
833         (Qdefvar): New variable.
834         (syms_of_eval): Init and staticpro it.
836         * lread.c (syms_of_lread): Doc fix.
837         (build_load_history): Use Fmember to see if a definition
838         is already in the Vload_history element.
840         * process.c (Fstart_process): Remove /: from program name.
842         * emacs.c (decode_env_path): Don't add /: if file name handler
843         has a `safe-magic' property.
845         * callproc.c (Fcall_process): Remove /: from program name.
847 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
849         * regex.c (PATFETCH): Remove the translating fetch.
850         (PATFETCH_RAW): Rename to PATFETCH.
851         (set_image_of_range): New fun.
852         (SET_RANGE_TABLE_WORK_AREA): Use it.
853         (regex_compile): Don't translate the pattern chars so eagerly.
854         Only do it when inserting an `exactn' bytecode or when handling
855         a char-range.
856         (mutually_exclusive_p): Avoid empty statement.
858 2002-08-22  Kim F. Storm  <storm@cua.dk>
860         * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
861         end up on a partially visible line; this reverts a specific part
862         of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
863         display error which has been reported several times now.
864         However it introduces the problem that changes was supposed to fix.
865         See my comments in the source if you want to debug this further.
867 2002-08-20  Kenichi Handa  <handa@etl.go.jp>
869         * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
871 2002-08-19  Eli Zaretskii  <eliz@is.elta.co.il>
873         * msdos.c (croak): Add `void' to definition.
875         * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
876         Don't define them, they are defined in msdos.c.
878         * mem-limits.h [MSDOS]: Declare etext.
880         * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
881         `const' since CORRECT_DIR_SEPS modifies its target.
883 2002-08-19  Kim F. Storm  <storm@cua.dk>
885         * keyboard.c (Fclear_this_command_keys): Added optional arg
886         KEEP-RECORD to avoid clearing lossage when we just want to clear
887         the current key sequence (kmacro needs this).
889 2002-08-19  Kenichi Handa  <handa@localhost>
891         * composite.c (run_composition_function): Call FUNC if it is
892         fboundp.
894         * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
895         cons, return Qnil.
897 2002-08-17  Richard M. Stallman  <rms@gnu.org>
899         * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
901         * sysdep.c [!VMS]: Include sys/files.h.
903         * editfns.c (save_restriction_restore): Defend from unchained marker.
905         * buffer.c (overlays_at): Handle extending vec uniformly.
906         (overlays_in): Handle extending vec from length 0 as in overlays_at.
908 2002-08-15  Andrew Choi  <akochoi@shaw.ca>
910         * mac.c (init_mac_osx_environment): New function.
912         * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
914 2002-08-14  Kim F. Storm  <storm@cua.dk>
916         * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
917         executing macro before appending to it (when used from Lisp).
918         (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
919         which is called prior to each iteration of macro (for kmacro.el).
920         (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
922         * lisp.h (Fexecute_kbd_macro): Update prototype.
924         * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
926 2002-08-14  Kenichi Handa  <handa@etl.go.jp>
928         * xselect.c (QUTF8_STRING): New variable.
929         (symbol_to_x_atom): Pay attention to QUTF8_STRING.
930         (x_atom_to_symbol): Likewise.
931         (x_get_local_selection): New argument local_request.  If it is
932         nonzero, call handler_fn with the second arg nil.
933         (x_handle_selection_request): Call x_get_local_selection with
934         local_request 0.
935         (lisp_data_to_selection_data): Don't encode the string here.
936         (Fx_get_selection_internal): Call x_get_local_selection with
937         local_request 1.
938         (syms_of_xselect): Intern and staticpro QUTF8_STRING.
940         * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
942         * xterm.h (struct x_display_info): New member Xatom_UTF8_STRING.
944 2002-08-13  Richard M. Stallman  <rms@gnu.org>
946         * minibuf.c (Fminibufferp): New function.
947         (syms_of_minibuf): Defsubr it.
948         (Fminibuffer_prompt_end): Handle non-minibuffers specially.
950 2002-08-13  Gerd Moellmann  <gerd.moellmann@t-online.de>
952         * coding.c (Funencodable_char_position): Lisp_Object/int mixup.
954 2002-08-12  Richard M. Stallman  <rms@gnu.org>
956         * syswait.h: Only the include of sys/wait.h tests HAVE_SYS_WAIT_H.
957         [!VMS] (WCOREDUMP, WEXITSTATUS, WIFEXITED, WIFSTOPPED, WIFSIGNALED)
958         (WSTOPSIG, WTERMSIG): Define each one independently if not defined
959         already.
961         * buffer.c (syms_of_buffer) <fill-column>: Doc fix.
963 2002-08-11  Andrew Choi  <akochoi@shaw.ca>
965         * macterm.c (XTmouse_position): Check wp with is_emacs_window.
966         (Vmac_pass_command_to_system): New variable.
967         (Vmac_pass_control_to_system): New variable.
968         (do_mouse_moved): Check wp with is_emacs_window.
969         (XTread_socket): Check window_ptr with is_emacs_window.  Call
970         FrontNonFloatingWindow instead of FrontWindow.  Send keydown
971         events back to Mac Toolbox for processing, depending on values of
972         Vmac_pass_command_to_system and Vmac_pass_control_to_system.
973         (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and
974         Vmac_pass_control_to_system.
976 2002-08-10  Kenichi Handa  <handa@etl.go.jp>
978         * coding.c (unencodable_char_position): New function.
979         (Funencodable_char_position): New function.
980         (syms_of_coding): Defsubr Funencodable_char_position.
982 2002-08-10  Andrew Choi  <akochoi@shaw.ca>
984         * mac.c (sys_select) [MAC_OSX]: New function.
986         * macterm.c (MakeMeTheFrontProcess): New function.
987         (mac_initialize): Call MakeMeTheFrontProcess.
989         * s/darwin.h: Define select to sys_select.
991 2002-08-09  Richard M. Stallman  <rms@gnu.org>
993         * keyboard.c (make_lispy_event): Test WINDOWSNT, not WINDOWS_NT.
995 2002-08-09  Gerd Moellmann  <gerd.moellmann@t-online.de>
997         * xdisp.c (forward_to_next_line_start): Return 0 when reaching the
998         end of the buffer.
1000 2002-08-08  Ken Raeburn  <raeburn@mit.edu>
1002         * coding.c (Ffind_operation_coding_system): Fix Lisp_Object/int
1003         mixup.
1005         * puresize.h (BASE_PURESIZE): Increase to 910000.
1007 2002-08-08  Kenichi Handa  <handa@etl.go.jp>
1009         * coding.c (Ffind_operation_coding_system): For write-region, if
1010         VISIT is a filename, make it the target.
1012 2002-08-07  Richard M. Stallman  <rms@gnu.org>
1014         * alloc.c (mark_object): Detect long lists for debugging.
1015         (mark_object_loop_halt): New variable.
1017         * s/hpux10.h (C_SWITCH_SYSTEM): #undef it.
1019         * data.c (Fmake_variable_frame_local): Doc fix.
1021 2002-08-01  David Ponce  <david@dponce.com>
1023         * w32menu.c (local_heap, local_alloc, local_free): New macros.
1024         (malloc_widget_value, free_widget_value)
1025         (w32_free_submenu_strings): Use them.
1027         (push_submenu_start, push_submenu_end, push_left_right_boundary)
1028         (push_menu_pane, push_menu_item, single_keymap_panes)
1029         (single_menu_item, Fx_popup_menu, menubar_selection_callback)
1030         (single_submenu, set_frame_menubar)
1031         (w32_menu_show, w32_dialog_show): Use AREF, ASET, ASIZE.
1033         (Fx_popup_menu):  Don't show pop up menu until preceding one is
1034         actually cleaned up.  Moved UNGCPRO outside #ifdef HAVE_MENUS block.
1036         * w32menu.c: Changes adapted from xmenu.c
1037         (set_frame_menubar): First parse all submenus,
1038         then make widget_value trees from them.
1039         Don't allocate any widget_value objects
1040         until we are done with the parsing.
1041         (parse_single_submenu): New function.
1042         (digest_single_submenu): New function.
1043         (single_submenu): Function deleted, replaced by those two.
1045 2002-08-04  Andrew Choi  <akochoi@shaw.ca>
1047         * macterm.c (XTread_socket): Check that FrontNonFloatingWindow
1048         returns a valid window pointer before proceeding for keyDown and
1049         autoKey events.
1051 2002-08-03  Andrew Choi  <akochoi@shaw.ca>
1053         * macterm.c (USE_CARBON_EVENTS): New macro.
1054         (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros.
1055         (x_iconify_frame): Call CollapseWindow.
1056         (Vmac_reverse_ctrl_meta): New variable.
1057         (Vmac_wheel_button_is_mouse_2): New variable.
1058         (init_mac_drag_n_drop): New function.
1059         (mac_do_receive_drag): New function.
1060         (mac_handle_service_event): New function.
1061         (init_service_handler): New function.
1062         (mac_to_emacs_modifiers): New function.
1063         (mac_event_to_emacs_modifiers): New function.
1064         (mac_get_mouse_btn): New function.
1065         (mac_convert_event_ref): New function.
1066         (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent,
1067         SendEventToEventTarget, mac_event_to_emacs_modifiers, and
1068         mac_get_mouse_btn.
1069         (mac_initialize): Call init_mac_drag_n_drop and
1070         init_service_handler.
1072         * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and
1073         lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT.
1074         (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and
1075         TOOL_BAR_EVENT for MAC_OS as well.
1076         (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well
1077         as for WINDOWS_NT.
1078         (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX.
1080         * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for
1081         MAC_OSX.
1083 2002-08-03  Gerd Moellmann  <gerd.moellmann@t-online.de>
1085         * xdisp.c (forward_to_next_line_start): Fix a condition that
1086         lead to a newline being skipped.
1088 2002-08-02  Andrew Choi  <akochoi@shaw.ca>
1090         * mac.c (syms_of_mac): Defsubr Sx_selection_exists_p.
1092 2002-08-01  Richard M. Stallman  <rms@gnu.org>
1094         * Makefile.in (SOME_MACHINE_OBJECTS): Add fontset.o.
1096 2002-07-31  Andrew Choi  <akochoi@shaw.ca>
1098         * macfns.c: #undef init_process before #define-ing it.
1100         * s/darwin.h: Define MAC_OS, SYMS_SYSTEM, and OTHER_FILES only if
1101         HAVE_CARBON is defined.
1103 2002-07-31  Richard M. Stallman  <rms@gnu.org>
1105         * xmenu.c (set_frame_menubar): First parse all submenus,
1106         then make widget_value trees from them.
1107         Don't allocate any widget_value objects
1108         until we are done with the parsing.
1109         (parse_single_submenu): New function.
1110         (digest_single_submenu): New function.
1111         (single_submenu): Function deleted, replaced by those two.
1113 2002-07-30  Juanma Barranquero  <lektu@terra.es>
1115         * w32proc.c (syms_of_ntproc): Fix docstring of
1116         `w32-get-true-file-attributes'.
1118 2002-07-28  Richard M. Stallman  <rms@gnu.org>
1120         * s/hpux8.h (HPUX8): Define this before including hpux.h.
1121         (HAVE_SYS_WAIT_H): #define deleted; we let Autoconf decide.
1123         * s/hpux.h (HAVE_SYS_WAIT_H): The #undef is conditional on HPUX8.
1125         * keyboard.c (make_lispy_event):
1126         Use #ifdef to test USE_TOOLKIT_SCROLL_BARS.
1127         Explicitly clear up_modifier in event->modifiers.
1129 2002-07-27  Richard M. Stallman  <rms@gnu.org>
1131         * xterm.h (FRAME_CURSOR_WIDTH): New macro.
1133         * xterm.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
1134         for bar cursor.
1136 2002-07-26  Kenichi Handa  <handa@etl.go.jp>
1138         * coding.c (detect_coding_iso2022): While checking a byte sequence
1139         for CODING_CATEGORY_MASK_ISO_8_2, if we read one extra byte, check
1140         it in the normal loop.
1142 2002-07-24  Gerd Moellmann  <gerd.moellmann@t-online.de>
1144         * xterm.c (expose_overlaps): New function.
1145         (expose_window): Use it to fix the display of overlapping rows.
1147         * xdisp.c (unwind_redisplay): Clear redisplay_updating_p.
1149 2002-07-23  Ken Raeburn  <raeburn@gnu.org>
1151         * lisp.h (XPNTR): Use NO_UNION_TYPE version for union as well,
1152         since it only depends on XUINT.
1154         * m/alpha.h (BITS_PER_LONG, BITS_PER_EMACS_INT, EMACS_INT,
1155         EMACS_UINT, SPECIAL_EMACS_INT, DATA_SEG_BITS,
1156         PNTR_COMPARISON_TYPE, VALBITS, MARKBIT, XINT, XUINT, XPNTR):
1157         Macros deleted.
1159         * mem-limits.h (start_of_data): If DATA_START is defined, prefer
1160         its value over other approaches.
1161         * sysdep.c (start_of_data): Don't define the function if a macro
1162         form has been defined.
1164 2002-07-23  Gerd Moellmann  <gerd.moellmann@t-online.de>
1166         * xdisp.c (redisplay_updating_p): New variable.
1167         (init_iterator): Don't free realized faces when
1168         redisplay_updating_p is set.
1169         (redisplay_internal): Set redisplay_updating_p while updating
1170         the display.
1172 2002-07-23  Richard M. Stallman  <rms@gnu.org>
1174         * editfns.c (Fmessage): Treat "" like nil.
1176 2002-07-23  Kenichi Handa  <handa@etl.go.jp>
1178         * xdisp.c (face_before_or_after_it_pos): Call
1179         FETCH_MULTIBYTE_CHAR with byte postion, not char position.
1181 2002-07-22  Juanma Barranquero  <lektu@terra.es>
1183         * callproc.c (init_callproc) [DOS_NT]: Initialize
1184         Vshared_game_score_directory to nil.
1185         (syms_of_callproc) [DOS_NT]: Likewise.
1187 2002-07-22  Gerd Moellmann  <gerd.moellmann@t-online.de>
1189         * xdisp.c (display_line): Replace an abort with xassert.
1191 2002-07-21  Richard M. Stallman  <rms@gnu.org>
1193         * xdisp.c (redisplay_window): Don't test BEG_UNCHANGED
1194         and END_UNCHANGED when setting buffer_unchanged_p.
1195         Use current_matrix_up_to_date_p to decide whether to use
1196         try_cursor_movement.
1198         * config.in (HAVE_SHARED_GAME_DIR): Undef deleted.
1200         * epaths.in (PATH_GAME): New macro, edited by ../Makefile.in.
1202         * callproc.c (init_callproc): Set up Vshared_game_score_directory.
1203         Set to nil if dir does not exist.
1204         (syms_of_callproc): Init unconditionally and simply.
1206         * buffer.c (Fbuffer_list): Doc fix.
1208 2002-07-21  Ken Raeburn  <raeburn@gnu.org>
1210         * sysdep.c (end_of_text, end_of_data): Unused functions deleted.
1212         * buffer.c (mmap_realloc): When shrinking, make sure number of
1213         pages to unmap is rounded towards zero.
1215         * m/mips-siemens.h (XSETUINT, XSETPNTR): Unused macros deleted.
1216         (XSETINT): Deleted.
1218         * m/att3b.h (XINT): Don't define.
1219         (VALBITS, VALMASK, XTYPE): Deleted.
1220         (DATA_SEG_BITS): Define.
1221         * m/gec63.h (VALBITS, VALAMASK, XTYPE, XSETTYPE, XPNTR, XSET,
1222         ARRAY_MARK_FLAG): Deleted.
1223         (DATA_SEG_BITS): Define.
1224         * m/pfa50.h (VALBITS, VALMASK, XTYPE): Deleted.
1225         (DATA_SEG_BITS): Define.
1227 2002-07-20  Richard M. Stallman  <rms@gnu.org>
1229         * print.c (print_error_message): New args CONTEXT and CALLER.
1230         Calls changed.
1232         * lisp.h (print_error_message): Declare new args.
1234         * keyboard.c (cmd_error_internal): Pass Vsignaling_function
1235         and CONTEXT to print_error_message, don't print them here.
1236         For a Quit, don't use Vsignaling_function.
1237         Call message_log_maybe_newline.
1239         * Makefile.in (xsmfns.o): Don't depend on lisp.h.
1241 2002-07-20  Kim F. Storm  <storm@cua.dk>
1243         * xdisp.c (redisplay_window): Test MODIFF to set buffer_unchanged_p.
1245 2002-07-19  Ken Raeburn  <raeburn@gnu.org>
1247         * bytecode.c (struct byte_stack): Pointers into byte string now
1248         point to const.
1249         * callproc.c (Fcall_process): Make NEW_ARGV array hold pointer to
1250         const.
1251         * charset.h (BCOPY_SHORT): Source pointer now points to const.
1252         * coding.c (encode_eol, detect_coding, detect_eol):
1253         (decode_coding, encode_coding, detect_coding_system): Source
1254         strings now treated as const.
1255         (decode_coding_string, encode_coding_string): Use STRING_COPYIN to
1256         modify Lisp string contents.
1257         * coding.h (decode_coding, encode_coding, detect_coding,
1258         detect_eol): Declarations updated.
1259         * composite.c (compose_chars_in_text): Treat Lisp string contents
1260         as const.
1261         * dispnew.c (safe_bcopy): Source pointer now points to const.
1262         * lisp.h (STRING_COPYIN): New macro.
1263         (detect_coding_system, safe_bcopy, temp_output_buffer_setup):
1264         (internal_with_output_to_temp_buffer): Declarations updated.
1265         * print.c (temp_output_buffer_setup):
1266         (internal_with_output_to_temp_buffer): Buffer name argument is now
1267         pointer to const.
1268         * sound.c (struct sound_device): Function pointer field "write"
1269         buffer argument now points to const.
1270         (vox_write): Buffer argument points to const.
1271         * syntax.c (Fstring_to_syntax, skip_chars): Treat Lisp string
1272         contents as const.
1273         * sysdep.c (emacs_write): Buffer pointer now const.
1274         * term.c (encode_terminal_code): Buffer pointer now const.
1275         * xfaces.c (may_use_scalable_font_p): Argument now points to
1276         const.
1277         (x_face_list_fonts, x_update_menu_appearance):
1278         (hash_string_case_insensitive): Treat Lisp string contents as
1279         const.
1281 2002-07-19  Juanma Barranquero  <lektu@terra.es>
1283         * fileio.c (Ffile_name_as_directory): Fix argument name in docstring.
1284         (file_name_as_directory): Use literal '/' instead of DIRECTORY_SEP.
1286         * xdisp.c (syms_of_xdisp): Remove redundant deprecation info.
1288         * fileio.c (syms_of_fileio): Likewise.
1290 2002-07-18  Richard M. Stallman  <rms@gnu.org>
1292         * data.c (Fdefalias): Doc fix.
1294 2002-07-17  Dave Love  <fx@gnu.org>
1296         * intervals.h (text_property_stickiness): Use P_.
1298         * ccl.c: Remove `emacs' conditionals.
1299         (ccl_backtrace_table): Fix size spec.
1300         (ccl_driver): Fix type errors.
1302 2002-07-16  Ken Raeburn  <raeburn@gnu.org>
1304         * alloc.c (xstrdup, make_string, make_unibyte_string)
1305         (make_multibyte_string, build_string): String pointer args now
1306         point to const.
1307         * charset.c (find_charset_in_text, c_string_width):
1308         (chars_in_text, multibyte_chars_in_text, parse_str_as_multibyte):
1309         * fileio.c (report_file_error):
1310         * insdel.c (copy_text, count_size_as_multibyte, insert_1):
1311         (count_combining_before, count_combining_after, insert_1_both):
1312         (insert, insert_and_inherit, insert_string):
1313         (insert_before_markers, insert_before_markers_and_inherit):
1314         * lread.c (intern, oblookup, hash_string):
1315         * minibuf.c (temp_echo_area_glyphs):
1316         * search.c (fast_c_string_match_ignore_case):
1317         * sysdep.c (emacs_open, set_file_times):
1318         * xfaces.c (xstricmp):
1319         * xdisp.c (store_frame_title, string_char_and_length):
1320         (message_dolog, message2, message2_nolog, set_message): Likewise.
1321         (set_message_1): Cast message string argument to const pointer.
1322         * editfns.c (general_insert_function): Insertion function now
1323         takes pointer to const for input data.
1324         * charset.h (find_charset_in_text, c_string_width):
1325         (parse_str_as_multibyte): Declarations updated.
1326         * dispextern.h (xstricmp): Declaration updated.
1327         * lisp.h (chars_in_text, multibyte_chars_in_text, copy_text):
1328         (count_size_as_multibyte, count_combining_before):
1329         (count_combining_after, insert_1, insert_1_both, message_dolog):
1330         (insert, insert_and_inherit, insert_before_markers)
1331         (insert_before_markers_and_inherit, set_message, message2):
1332         (message2_dolog, build_string, make_string, make_unibyte_string):
1333         (make_multibyte_string, intern, oblookup, report_file_error):
1334         (fast_c_string_match_ignore_case, temp_echo_area_glyphs):
1335         (emacs_open, xstrdup): Declarations updated.
1336         * systime.h (set_file_times): Declaration updated.
1338         * charset.c (find_charset_in_text, lisp_string_width): Use const
1339         for pointer to lisp string data.
1340         * charset.h (FETCH_STRING_CHAR_ADVANCE):
1341         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK):
1342         * coding.c (Ffind_coding_systems_region_interval):
1343         * fileio.c (Ffile_name_directory, Ffile_name_nondirectory):
1344         (Fmake_directory_internal, Fdelete_directory):
1345         (Ffile_name_absolute_p, Fwrite_region, double_dollars):
1346         * fontset.c (font_family_registry, fs_query_fontset):
1347         (list_fontsets):
1348         * frame.c (Fframe_parameter):
1349         * keyboard.c (cmd_error_internal):
1350         * keymap.c (Fdescribe_buffer_bindings):
1351         * lread.c (complete_filename_p, openp):
1352         * minibuf.c (Fminibuffer_complete_word):
1353         * xdisp.c (string_pos_nchars_ahead, init_from_display_pos):
1354         (face_before_or_after_it_pos, next_element_from_string):
1355         (get_overlay_arrow_glyph_row, display_mode_element):
1356         (decode_mode_spec_coding):
1357         * xterm.c (same_x_server): Likewise.
1359         * buffer.c (reset_buffer_local_variables): Delete "#if 0"
1360         settings of non-existent fields.
1362         * editfns.c (Fstring_to_char): Don't use XSTRING/XSETSTRING to
1363         copy a lisp value.
1365         * lread.c (Fintern_soft): Use string macros instead of
1366         Lisp_String fields.
1367         * keyboard.c (echo_char, parse_modifiers_uncached):
1368         (parse_solitary_modifier, Fexecute_extended_command): Likewise.
1369         * textprop.c (validate_interval_range, interval_of): Likewise.
1371         * fontset.c (Fset_fontset_font): Use SDATA instead of XSTRING()->data.
1373         * charset.h (FETCH_STRING_CHAR_ADVANCE)
1374         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SBYTES instead of
1375         XSTRING()->size_byte.
1377         * lisp.h (SDATA, SREF): Produce rvalue.
1378         (SSET): New macro.
1379         * alloc.c (make_event_array): Use SSET for storing into a string.
1380         * buffer.c (Fother_buffer): Use SREF when retrieving a byte from
1381         a string.
1382         * casefiddle.c (casify_object): Use SSET.
1383         * charset.h (FETCH_STRING_CHAR_ADVANCE)
1384         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA when getting
1385         address of string contents.
1386         * data.c (Faref): Use SDATA.
1387         (Faset): Use SDATA, SSET.
1388         * dired.c (directory_files_internal): Use SSET.
1389         * fileio.c (Fmake_symbolic_link, Fexpand_file_name): Use SSET.
1390         (Fread_file_name): Use SREF, SSET.
1391         * fns.c (concat): Use SSET.
1392         (concat, Fdelete): Use SDATA.
1393         * insdel.c (insert_from_string_1): Use SDATA.
1394         * keyboard.c (Fevent_convert_list): Use SREF.
1395         * lread.c (Fload): Use SDATA, SSET.
1396         * macfns.c (validate_x_resource_name): Use SSET.
1397         * process.c (status_message): Use SSET.
1398         * search.c (wordify): Use SDATA.
1399         (Freplace_match): Use SREF.
1400         * w32fns.c (validate_x_resource_name): Use SSET.
1401         * xfns.c (validate_x_resource_name): Use SSET.
1402         * xterm.c (x_catch_errors, x_clear_errors): Use SSET.
1404 2002-07-16  Richard M. Stallman  <rms@gnu.org>
1406         * s/hpux11.h (USG_SUBTTY_WORKS): Defined.
1408         * xdisp.c (reconsider_clip_changes):
1409         Don't test prevent_redisplay_optimizations_p.
1410         (redisplay_internal): Test prevent_redisplay_optimizations_p
1411         along with clip_changed in some cases.
1412         (try_window_id): Likewise.
1413         (redisplay_window): New local var buffer_unchanged_p.
1415         * keyboard.c (cmd_error) [HAVE_X_WINDOWS]: Maybe call cancel_houglass.
1417         * process.c (create_process): Test USG_SUBTTY_WORKS.
1418         (process_send_signal): Clean up handling of GID.
1419         Detect errors in ioctls meant to set GID.
1421         * window.c (temp_output_buffer_show):
1422         Don't set prevent_redisplay_optimizations_p.
1424 2002-07-15  Juanma Barranquero  <lektu@terra.es>
1426         * eval.c (Fdefvaralias): Add docstring argument.
1428 2002-07-15  Ken Raeburn  <raeburn@gnu.org>
1430         * lisp.h (STRING_INTERVALS): Produce rvalue.
1431         (STRING_SET_INTERVALS): New macro.
1432         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use it.
1433         * fns.c (Fstring_as_multibyte): Likewise.
1434         * intervals.c (balance_possible_root_interval, delete_interval)
1435         (create_root_interval, copy_intervals_to_string): Likewise.
1436         * textprop.c (set_text_properties): Likewise.  Use NULL_INTERVAL
1437         instead of 0.
1439 2002-07-14  Ken Raeburn  <raeburn@gnu.org>
1441         * lisp.h (STRING_SET_CHARS): New macro.
1442         (SCHARS, SBYTES): Produce rvalues.
1443         * dired.c (directory_files_internal): Use STRING_SET_CHARS.
1444         * fns.c (concat): Likewise.
1445         * lread.c (read_vector): Likewise.
1447         * lisp.h (SMBP): Deleted.  All uses changed to STRING_MULTIBYTE.
1448         (STRING_SET_UNIBYTE): New macro.
1449         (SET_STRING_BYTES): Deleted.  Callers (all of which supplied a
1450         length of -1) changed to use STRING_SET_UNIBYTE.
1451         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
1452         casefiddle.c, category.c, ccl.c, charset.c, charset.h, coding.c,
1453         composite.c, data.c, dired.c, dispnew.c, disptab.h, doc.c,
1454         dosfns.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, fn.c,
1455         fontset.c, frame.c, indent.c, insdel.c, intervals.c, keyboard.c,
1456         keymap.c, lread.c, mac.c, macfns.c, macmenu.c, macterm.c,
1457         minibuf.c, msdos.c, print.c, process.c, search.c, sound.c,
1458         sunfns.c, syntax.c, syntax.h, sysdep.c, textprop.c, undo.c,
1459         w16select.c, w32.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1460         w32term.c, window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c,
1461         xselect.c, xsmfns.c, xterm.c: Most uses of XSTRING combined with
1462         STRING_BYTES or indirection changed to SCHARS, SBYTES,
1463         STRING_INTERVALS, SREF, SDATA; explicit size_byte references left
1464         unchanged for now.
1466 2002-07-13  Kim F. Storm  <storm@cua.dk>
1468         * keyboard.c (command_loop_1): Invert check on Vmemory_full.
1470 2002-07-12  Richard M. Stallman  <rms@gnu.org>
1472         * fileio.c (Fwrite_region): Doc fix.
1474         * print.c (print_error_message): Don't handle Vsignaling_function here.
1476         * keyboard.c (cmd_error_internal): Handle Vsignaling_function here.
1477         (command_loop_1): Avoid certain actions after memory-full error.
1479         * eval.c (Fsignal): Don't call cancel_hourglass.
1480         For a memory-full error, don't call Vsignal_hook_function
1481         and don't set Vsignaling_function.
1483         * process.c (process_send_signal): Add abort call.
1485 2002-07-11  Markus Rost  <rost@math.ohio-state.edu>
1487         * keymap.c (Fkey_binding): Fix typo.
1489 2002-07-11  Richard M. Stallman  <rms@gnu.org>
1491         * alloc.c (Vmemory_full): New variable.
1492         (Vmemory_signal_data): Renamed from memory_signal_data.
1493         Uses changed.
1494         (syms_of_alloc): Defvar them.
1495         (memory_full, buffer_memory_full): Set Vmemory_full.
1497         * lisp.h (Vmemory_full): Add declaration.
1498         (current_column, indented_beyond_p): Change declaration.
1500         * indent.c (last_known_column): Declare as double, not float.
1501         (current_column, current_column_1, string_display_width)
1502         (position_indentation): Return `double'.
1503         (indented_beyond_p): Arg `column' is `double'.  Callers changed.
1505         * xdisp.c (message_dolog): Do nothing if Vmemory_full is non-nil.
1506         (back_to_previous_visible_line_start)
1507         (reseat_at_next_visible_line_start, next_element_from_buffer):
1508         Use `double', not `float', when calling indented_beyond_p.
1510         * s/hpux11.h (BROKEN_SA_RESTART): Defined.
1512         * sysdep.c (sys_signal): Test BROKEN_SA_RESTART.
1514 2002-07-11  Juanma Barranquero  <lektu@terra.es>
1516         * alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, coding.c,
1517         * composite.c, dired.c, dispnew.c, editfns.c, emacs.c, eval.c,
1518         * fileio.c, fns.c, insdel.c, keyboard.c, keymap.c, lread.c, macfns.c,
1519         * macmenu.c, macros.c, minibuf.c, print.c, process.c, sound.c,
1520         * textprop.c, w32fns.c, w32menu.c, window.c, xfaces.c, xfns.c,
1521         * xmenu.c, xselect.c, xterm.c: Use SPECPDL_INDEX wherever makes sense.
1523 2002-07-10  Juanma Barranquero  <lektu@terra.es>
1525         * lisp.h (SPECPDL_INDEX): Rename from BINDING_STACK_SIZE. All callers
1526         changed.
1528 2002-07-09  Stefan Monnier  <monnier@cs.yale.edu>
1530         * data.c (Fdefalias): Add an optional `docstring' argument.
1531         (set_internal, Fsetq_default): Use XCAR/XCDR.
1533         * composite.c (HASH_VALUE, HASH_KEY):
1534         * ccl.c (HASH_VALUE): Remove (it's in lisp.h now).
1536 2002-07-09  Kenichi Handa  <handa@etl.go.jp>
1538         * callproc.c (Fcall_process): Fix previous change.
1540 2002-07-07  Stefan Monnier  <monnier@cs.yale.edu>
1542         * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion):
1543         Add support for hash-tables.
1544         (Ftry_completion): Return t even if the string appears multiple times.
1546         * fns.c (Fnconc): Use XCDR.
1547         (Fprovide): Use CONSP and XCDR.
1548         (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
1549         (HASH_TABLE_SIZE): Delete: moved to lisp.h.
1550         (Fmake_hash_table): Accept `:size nil'.
1551         (Fmakehash): Delete: moved to subr.el.
1552         (syms_of_fns): Don't defsubr makehash.
1554         * lisp.h (HASH_KEY, HASH_VALUE, HASH_NEXT, HASH_HASH, HASH_INDEX)
1555         (HASH_TABLE_SIZE): Move from fns.c.
1557 2002-07-07  Richard M. Stallman  <rms@gnu.org>
1559         * xdisp.c (make_cursor_line_fully_visible): Don't try short scrolls.
1560         Instead just return 0 when there is something to be done.
1561         (try_scrolling): If make_cursor_line_fully_visible returns 0,
1562         retry scrolling as if cursor were off the bottom.
1563         (try_cursor_movement): If make_cursor_line_fully_visible returns 0,
1564         return CURSOR_MOVEMENT_MUST_SCROLL.
1565         (redisplay_window): If make_cursor_line_fully_visible returns 0,
1566         go to try_to_scroll.
1568         * buffer.c (Fbuffer_local_value): Store current value into its binding
1569         so we get the up-to-date value for the binding that is loaded.
1571         * eval.c (Fdefmacro): Doc fix.
1573 2002-07-05  Dave Love  <fx@gnu.org>
1575         * keyboard.c (read_key_sequence): Set initial_idleness_start_time
1576         correctly.
1578         * ccl.c (Vtranslation_hash_table_vector, GET_HASH_TABLE)
1579         (HASH_VALUE, CCL_LookupIntConstTbl, CCL_LookupCharConstTbl): New.
1580         (ccl_driver): Add cases for CCL_LookupIntConstTbl,
1581         CCL_LookupCharConstTbl.
1582         (syms_of_ccl): Defvar translation-hash-table-vector.
1584 2002-07-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1586         * xdisp.c: Remove unused variable `face'.
1588 2002-07-04  Juanma Barranquero  <lektu@terra.es>
1590         * keyboard.c (post_command_idle_hook): Remove redundant (and inexact)
1591         obsolescence information.
1593 2002-07-03  Andrew Choi  <akochoi@shaw.ca>
1595         * macterm.c (x_list_fonts): Fix comment.  Cache fonts matching
1596         pattern.  Search cache first.
1597         (init_font_name_table): Also add entry for jisx0201.1976-0 coding
1598         for Japanese font.
1599         (XLoadQueryFont): Use it.
1601 2002-07-02  Richard M. Stallman  <rms@gnu.org>
1603         * keymap.c (Fdefine_key): Doc fix.
1605         * xterm.c (x_term_init): Turn off polling around XtOpenDisplay.
1607 2002-07-02  Juanma Barranquero  <lektu@terra.es>
1609         * keymap.c (syms_of_keymap): Fix typo.
1611 2002-07-01  Andrew Choi  <akochoi@shaw.ca>
1613         * s/darwin.h: Define POSIX_SIGNALS.
1615         * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef
1616         and FSRefMakePath to convert FSSpec returned with Apple Event to
1617         Posix pathname.
1618         (mac_initialize) [TARGET_API_MAC_CARBON]:
1619         Call init_required_apple_events and disable the `Quit' menu item
1620         provided automatically by the Carbon Toolbox.
1622 2002-07-01  Dave Love  <fx@gnu.org>
1624         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
1625         for K&R.
1627         * xterm.c: Fix prototype for K&R.
1629         * term.c (costs_set): Declare static, non-initialized for pcc.
1631 2002-07-01  Richard M. Stallman  <rms@gnu.org>
1633         * keyboard.c (timer_last_idleness_start_time): New variable.
1634         (timer_start_idle): Set that.
1635         (read_key_sequence): Use that to reset timer_idleness_start_time
1636         to previous value.
1638         * window.c (Frecenter): With arg, set optional_new_start.
1640         * xdisp.c (redisplay_internal): Make optional_new_start really work.
1642         * minibuf.c (Fminibuffer_complete_and_exit): Move to end of
1643         buffer for completion.
1645 2002-06-29  Ken Raeburn  <raeburn@gnu.org>
1647         * xdisp.c (store_mode_line_string): Lisp_Object/int mixup.
1649 2002-06-28  Jan D.  <jan.h.d@swipnet.se>
1651         * keyboard.c (readable_filtered_events): New function that filters
1652         FOCUS_IN_EVENT depending on parameter.
1653         (readable_events): Calls readable_filtered_events, not filtering
1654         FOCUS_IN_EVENT.
1655         (get_filtered_input_pending): New function, filtering parameter passed
1656         to readable_filtered_events.
1657         (get_input_pending): Calls get_filtered_input_pending, not filtering
1658         FOCUS_IN_EVENT.
1659         (Finput_pending_p): Calls get_filtered_input_pending, DO filter
1660         FOCUS_IN_EVENT.
1662         * xterm.h (struct x_output): Add focus_state.
1664         * xterm.c (x_focus_changed): New function.
1665         (x_detect_focus_change): New function.
1666         (XTread_socket): Call x_detect_focus_change for FocusIn/FocusOut
1667         EnterNotify and LeaveNotify to track X focus changes.
1669 2002-06-28  Andreas Schwab  <schwab@suse.de>
1671         * lisp.h: Remove duplicate declaration of
1672         code_convert_string_norecord.
1674 2002-06-27  Kim F. Storm  <storm@cua.dk>
1676         * xdisp.c: (mode_line_string_list, mode_line_string_face)
1677         (mode_line_string_face_prop): New variables.
1678         (store_mode_line_string): New function.
1679         (display_mode_element): Use store_mode_line_string to
1680         add mode-line string elements to mode_line_string_list
1681         when mode_line_string_list is non-nil.
1682         (Fformat_mode_line): Now returns propertized string by
1683         default.  New arg NO-PROPS to ignore properties.
1684         (decode_mode_spec): Only add two dashes for %- in propertized
1685         mode-line string.
1686         (syms_of_xdisp): Init and staticpro mode_line_string_list.
1688 2002-06-27  Stefan Monnier  <monnier@cs.yale.edu>
1690         * minibuf.c (minibuffer_completion_contents): Add return type.
1692 2002-06-27  Juanma Barranquero  <lektu@terra.es>
1694         * charset.c (Fchar_bytes): Remove obsolescence info from docstring.
1696 2002-06-26  Juanma Barranquero  <lektu@terra.es>
1698         * fileio.c (read_file_name_cleanup): Add missing return.
1700 2002-06-26  Richard M. Stallman  <rms@gnu.org>
1702         * window.c (Frecenter): Don't set force_start flag.
1704         * minibuf.c (do_completion, Fminibuffer_complete_word)
1705         (Fminibuffer_completion_help): Complete just the text before point.
1706         (minibuffer_completion_contents): New function.
1708         * buffer.c (Fbury_buffer): Use frames_discard_buffer.
1710         * frame.c (frames_bury_buffer): Function deleted.
1712 2002-06-25  Miles Bader  <miles@gnu.org>
1714         * callint.c (Fcall_interactively): When checking to see if doprnt hit
1715         the end of callint_message, allow for a terminating '\0'.
1717 2002-06-24  Juanma Barranquero  <lektu@terra.es>
1719         * w32select.c: Include composite.h
1721         * w16select.c: Likewise.
1723 2002-06-24  Kenichi Handa  <handa@etl.go.jp>
1725         * callproc.c (Fcall_process): If code detection is necessary,
1726         call detect_coding directly here.
1728         * coding.c (detect_eol): Preserve coding->cmp_data.
1730         * w16select.c (Fw16_get_clipboard_data): Disable composition handling.
1732         * w32fns.c (w32_to_x_font): Disable composition handling.
1734         * w32select.c (Fw32_get_clipboard_data): Disable composition handling.
1736         * xselect.c (selection_data_to_lisp_data): Disable composition
1737         handling.
1739         * xterm.c (XTread_socket): Disable composition handling.
1741 2002-06-24  Stefan Monnier  <monnier@cs.yale.edu>
1743         * print.c (temp_output_buffer_setup): Kill all local variables.
1745 2002-06-22  Stefan Monnier  <monnier@cs.yale.edu>
1747         * lread.c (Fread): Remove redundant and imprecise declaration.
1749         * xfns.c (check_x_display_info): Use check_x_frame.
1751         * .gdbinit (xprintsym): Use the new `xname' field.
1752         (xsymbol): Use it.
1754 2002-06-22  Jason Rumney  <jasonr@gnu.org>
1756         * w32fns.c (file_dialog_callback): New function.
1757         (Fx_file_dialog): Allow selecting directories as well as files.
1759 2002-06-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1761         * m/pmax.h (START_FILES): Define START_FILES for NetBSD and
1762         OpenBSD. Add support for mipseb-*-netbsd* machines.
1764 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
1766         * macterm.c (mac_scroll_area): Set foreground and backcolor to
1767         black and white before scrolling.  Restore frame background and
1768         foreground color after scrolling.
1769         (do_window_update): Call XClearWindow before calling expose_frame.
1770         (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and
1771         FRAME_FOREGROUND_PIXEL of frame.
1773         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
1774         test Mac command key as <ALT> key.
1776 2002-06-17  Stefan Monnier  <monnier@cs.yale.edu>
1778         * window.c (Fset_window_configuration): Lisp_Object/int mixup.
1780         * keyboard.c (read_key_sequence): Be more careful with first_unbound.
1781         Lookup keys in function-key-map immediately so that key-translation-map
1782         can be applied earlier.
1783         Remove function_key_possible and key_translation_possible, replaced
1784         by checking `keytran_start < t'.
1786         * .gdbinit (xsymbol): Use the new `xname' field.
1788 2002-06-17  Andrew Choi  <akochoi@shaw.ca>
1790         * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil,
1791         test Mac command key as <ALT> key.
1793         * mac.c (do_applescript): Call initialize_applescript if necessary
1794         when first called.  Dispose of result_desc only when there is no error.
1795         (Fdo_applescript): Use %d format specifier instead of %ld.
1797 2002-06-16  Andrew Choi  <akochoi@shaw.ca>
1799         * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead
1800         of FrontWindow for cases keyDown and autoKey.
1802         * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of
1803         Vdefault_fontset to Monaco with mac-roman coding.
1805         * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine
1806         init_process before and after inclusion of Carbon/Carbon.h, resp.
1808         * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and
1809         cursor_gc.
1810         (add_font_name_table_entry): New function.
1811         (init_font_name_table): Use add_font_name_table_entry; add italic,
1812         bold, and bold-italic entries for truetype fonts.
1814         * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces
1815         for Mac too.
1816         (try_font_list) [MAC_OS]: If no font matches given registry, try
1817         fonts with any registry matching face_family.
1818         (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here.
1820         * s/darwin.h: If autoconf detects the Ncurses library, define
1821         LIBS_TERMCAP to -lncurses to use it.
1823 2002-06-16  Eli Zaretskii  <eliz@is.elta.co.il>
1825         * strftime.c [__hpux]: Include sys/_mbstate_t.h.
1827 2002-06-15  Richard M. Stallman  <rms@gnu.org>
1829         * window.c (Fset_window_configuration): Explicitly preserve
1830         the point value that new_current_buffer had at the start.
1832 2002-06-14  Juanma Barranquero  <lektu@terra.es>
1834         * composite.c (Fcompose_region_internal, Fcompose_string_internal):
1835         Fix typos.
1837 2002-06-14  Kim F. Storm  <storm@cua.dk>
1839         * insdel.c (insert_1_both, insert_from_string_1)
1840         (insert_from_buffer_1): Recalculate END_UNCHANGED in case the
1841         insert happened in the end_unchanged region.  Otherwise, the
1842         redisplay may be confused and duplicate the last line in the
1843         buffer [seen after save-buffer when require-final-newline==t].
1845 2002-06-13  Jason Rumney  <jasonr@gnu.org>
1847         * w32.c (init_environment): Remove EMACSLOCKDIR.
1848         (stat): Swap _S_IFDIR and _S_IFREG.
1850 2002-06-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1852         * keyboard.c, macterm.c, macmenu.c, msdos.c, sysdep.c
1853         * termhooks.h, xmenu.c, xsmfns.c, xterm.h, xterm.c, w32term.c,
1854         * w32menu.c, w32inevt.c: Rename enum event_kind as follows:
1855         ascii_keystroke to ASCII_KEYSTROKE_EVENT, multibyte_char_keystroke
1856         to MULTIBYTE_CHAR_KEYSTROKE_EVENT, non_ascii_keystroke to
1857         NON_ASCII_KEYSTROKE_EVENT, timer_event to TIMER_EVENT, mouse_click
1858         to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
1859         language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
1860         to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
1861         W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
1862         SELECTION_REQUEST_EVENT, selection_clear_event to
1863         SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
1864         delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
1865         ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
1866         menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
1867         DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
1868         no_event to NO_EVENT.
1870 2002-06-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1872         * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
1874 2002-06-12  Stefan Monnier  <monnier@cs.yale.edu>
1876         * intervals.c (textget): Don't forget to `return'.
1877         (lookup_char_property): Use XCAR/XCDR.
1879 2002-06-12  Juanma Barranquero  <lektu@terra.es>
1881         * xdisp.c (Fformat_mode_line): Fix typo.
1883 2002-06-12  Kim F. Storm  <storm@cua.dk>
1885         * xdisp.c (Fformat_mode_line): New function.
1886         (frame_title_buf, frame_title_buf_end, frame_title_ptr)
1887         (store_frame_title_char, store_frame_title): Use unconditionally.
1888         (init_xdisp): Defsubr Fformat_mode_line.
1889         Initialize frame_title_buf etc. unconditionally.
1891 2002-06-11  Stefan Monnier  <monnier@cs.yale.edu>
1893         * keyboard.c (read_key_sequence):
1894         Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
1895         things through those maps after downcasing events.
1896         Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
1897         applies after function-key-map.
1898         Make sure that keytran can be done in the middle in the sequence.
1899         Be careful not to throw away events past the one we downcase.
1901         * lread.c (read_integer): Remove unused var `tem'.
1902         (read1): Fix int/Lisp_Object mixup.
1904         * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
1906 2002-06-11  Richard M. Stallman  <rms@gnu.org>
1908         * keyboard.c (readable_events): Ignore any number of
1909         FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
1911 2002-06-09  Miles Bader  <miles@gnu.org>
1913         * xfaces.c (Ftty_supports_face_attributes_p): New function.
1914         (parse_rgb_list, tty_lookup_color): New functions.
1915         (tty_defined_color): Use `tty_lookup_color' to do all the work.
1916         (color_distance, Fcolor_distance): New functions.
1917         (TTY_SAME_COLOR_THRESHOLD): New macro.
1918         (Qtty_color_standard_values): New variable.
1919         (syms_of_xfaces): Initialize new vars & functions.
1921 2002-06-08  Colin Walters  <walters@verbum.org>
1923         * textprop.c (Vchar_property_alias_alist): New variable.
1924         (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
1926         * intervals.c (lookup_char_property): New function for looking up
1927         overlay and text properties, created from textget.
1928         (textget): Use it.
1930         * intervals.h (lookup_char_property): Declare.
1931         (Vchar_property_alias_alist): Declare.
1933         * buffer.c (Foverlay_get): Use lookup_char_property.
1935 2002-06-07  Sam Steingold  <sds@gnu.org>
1937         * xselect.c (lisp_data_to_selection_data): Fix last change:
1938         *data_ret is not a Lisp string, while unibyte_string is.
1940 2002-06-07  Eli Zaretskii  <eliz@is.elta.co.il>
1942         * xselect.c (lisp_data_to_selection_data): Fix last change:
1943         set size_ret.
1945 2002-06-07  Andreas Schwab  <schwab@suse.de>
1947         * m/amdx86-64.h: New file.
1949 2002-06-05  Eli Zaretskii  <eliz@is.elta.co.il>
1951         * fns.c (Fstring_make_unibyte): Doc fix.
1953         * xselect.c (lisp_data_to_selection_data): If the requested type
1954          is STRING, call string_make_unibyte to encode the selected text
1955          as a string.
1957         * window.c (Fset_window_hscroll): Doc fix.
1959 2002-06-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1961         * fileio.c (choose_write_coding_system):
1962         Call select-safe-coding-system properly.
1964 2002-06-03  Richard M. Stallman  <rms@gnu.org>
1966         * xdisp.c (message_with_string): Error if STRING is not a string.
1968         * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
1970         * fileio.c (choose_write_coding_system): Pass FILE arg to
1971         Vselect_safe_coding_system_function.
1973 2002-06-03  Ken Raeburn  <raeburn@gnu.org>
1975         * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
1977 2002-06-02  Thien-Thi Nguyen  <ttn@gnu.org>
1979         * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
1980         * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
1981         * keymap.c (describe_command): Likewise.
1982         * minibuf.c (read_minibuf): Likewise.
1984         * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1985         Cast `current_column' return value to int.
1986         (back_to_previous_visible_line_start)
1987         (reseat_at_next_visible_line_start, next_element_from_buffer):
1988         Cast `indented_beyond_p' 3rd arg to float.
1990         * indent.c (last_known_column): Now a float.
1991         (current_column_1, position_indentation, current_column)
1992         (string_display_width): Return float.
1993         (Fcurrent_column): Cast `current_column' return value to int.
1994         (Fcurrent_indentation): Cast `position_indentation' retval to int.
1995         (indented_beyond_p): Third arg now a float.
1996         (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
1998         * lisp.h (current_column): Now returns float.
1999         (indented_beyond_p): 3rd arg now a float.
2001 2002-05-31  Eli Zaretskii  <eliz@is.elta.co.il>
2003         * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
2004         is Qcompound_text_with_extensions.
2006         * xselect.c (lisp_data_to_selection_data): Always set selection
2007         type as string if x_encode_text returns streingp non-NULL.
2009         * s/netbsd.h: Include /usr/pkg in the run time shared library path.
2011 2002-05-30  Richard M. Stallman  <rms@gnu.org>
2013         * window.c (Fset_window_configuration): Correct the handling
2014         of point in current buffer, to work with multiple windows.
2016 2002-05-29  Colin Walters  <walters@verbum.org>
2018         * lread.c (Fread_from_string): Don't depend on order of evaluation
2019         for C function parameters.
2021 2002-05-28  Richard M. Stallman  <rms@gnu.org>
2023         * xterm.c (x_display_and_set_cursor): Change the cursor in the same
2024         way for blinked-off state and for a nonselected window.
2026         * window.c (window_scroll_pixel_based): Don't call Fbolp;
2027         instead, see if the new start pos is at beginning of line.
2029         * fileio.c (Fwrite_region): If START is a string, don't
2030         make any annotations.
2032         * eval.c (syms_of_eval): Doc fix.
2034 2002-05-28  Colin Walters  <walters@debian.org>
2036         * emacs.c (USAGE1): Add --no-splash.
2037         (standard_args): Ditto.
2039 2002-05-28  Colin Walters  <walters@gnu.org>
2041         * lread.c (readchar_count): New variable.
2042         (readchar): Increment it.
2043         (unreadchar): Decrement it.
2044         (read_multibyte): Decrement it.
2045         (Vread_with_symbol_positions): New variable.
2046         (Vread_symbol_positions_list): New variable.
2047         (read_internal_start): New function, created from Fread and
2048         Fread_from_string.  Handle Vread_symbol_positions_list and
2049         Vread_with_symbol_positions.
2050         (readevalloop, Fread, Fread_from_string): Use it.
2051         (read1): Use readchar_count to add symbol positions to
2052         Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
2053         (syms_of_lread): DEFVAR_LISP and initialize them.
2055         * lread.c (read0, read1, read_list, read_vector, read_multibyte)
2056         (substitute_object_recurse, substitute_object_in_subtree)
2057         (substitute_in_interval): Prototype.
2058         (read_multibyte): Return c if it's less than zero.
2060 2002-05-28  Kim F. Storm  <storm@cua.dk>
2062         * fileio.c (Fread_file_name_internal): Added brute-force
2063         speed up for using predicate file-directory-p.
2065 2002-05-28  Kim F. Storm  <storm@cua.dk>
2067         * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
2068         New variables.
2069         (syms_of_fileio): DEFVAR_LISP them.
2070         (read_file_name_cleanup): New unwind function.
2071         (Fread_file_name_internal): Only return completions satifying
2072         Vread_file_name_predicate.  Temporarily unwind protect and rebind
2073         default-directory while checking completions against the predicate.
2074         (Fread_file_name): Added PREDICATE argument.  Specbind it to
2075         Vread_file_name_predicate during completion.
2076         Call Vread_file_name_function to read the file name if non-nil.
2078         * lisp.h (Fread_file_name): Now has 6 args.
2080         * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
2081         predicate for Fread_file_name when reading directory name.
2082         Supply Qnil for predicate in other calls to Fread_file_name.
2084 2002-05-26  Miles Bader  <miles@gnu.org>
2086         * term.c (tty_capable_p): New function.
2087         * dispextern.h (tty_capable_p): New function declaration.
2088         (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
2089         (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
2091 2002-05-23  Stefan Monnier  <monnier@cs.yale.edu>
2093         * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
2094         (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
2095         (Vwrite_region_annotate_functions): Docstring fix.
2097 2002-05-23  Kim F. Storm  <storm@cua.dk>
2099         * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
2100         phys_cursor's hpos is overwritten.  This is still not completely
2101         correct, as it doesn't really make sense to use hpos at all to
2102         get the cursor glyph (as that is relative to the width of the
2103         characters on the line, which may have changed during the update).
2105 2002-05-22  Jason Rumney  <jasonr@gnu.org>
2107         * w32fns.c (enumfont_t): Remove tail, make pattern a normal
2108         Lisp_Object.
2109         (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
2110         Use modified enumfont_t struct.
2112         * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
2114         * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
2115         Handle the `hbar' cursor type.
2116         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
2118         * w32fns.c (Qhbar): New variable.
2119         (x_specified_cursor_type): Use it.
2121 2002-05-21  Ken Raeburn  <raeburn@gnu.org>
2123         * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
2124         now, when the address is needed.
2126 2002-05-21  Colin Walters  <walters@gnu.org>
2128         * Makefile.in (shortlisp): Add font-core.el.
2130 2002-05-20  Richard M. Stallman  <rms@gnu.org>
2132         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
2134         * keyboard.c (read_char_minibuf_menu_prompt): Don't list
2135         equivalent key bindings here.
2137 2002-05-20  Ken Raeburn  <raeburn@gnu.org>
2139         Change symbol structure to contain a lisp object for the symbol
2140         name:
2141         * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
2142         object field named "xname".
2143         (SYMBOL_NAME): New macro.
2144         * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
2145         name field.
2146         * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
2147         (mark_object, gc_sweep): Use symbol xname field and XSTRING
2148         instead of name field.
2149         * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
2150         SYMBOL_NAME instead of XSYMBOL and name field.
2151         * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
2152         instead of XSYMBOL and name field.
2153         * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
2154         and SYMBOL_NAME instead of XSYMBOL and name field.
2155         * coding.c (Fread_coding_system, code_convert_region1)
2156         (code_convert_string1, code_convert_string_norecord)
2157         (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
2158         XSYMBOL and name field.
2159         * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
2160         (Fmake_variable_buffer_local, Fmake_local_variable)
2161         (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
2162         of XSYMBOL and name field.
2163         * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
2164         XSYMBOL and name field.
2165         * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
2166         instead of XSYMBOL and name field.
2167         * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
2168         XSYMBOL and name field.
2169         * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
2170         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
2171         * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
2172         instead of XSYMBOL and name field.
2173         * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
2174         (parse_modifiers, apply_modifiers, Fevent_convert_list)
2175         (parse_solitary_modifier, Fexecute_extended_command):
2176         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
2177         * keymap.c (silly_event_symbol_error, Fsingle_key_description)
2178         (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
2179         of XSYMBOL and name field.
2180         (describe_command, describe_translation): Use SYMBOL_NAME and
2181         assignment instead of XSYMBOL and name field and XSETSTRING.
2182         * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
2183         instead of XSYMBOL and name field.
2184         (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
2185         name field and XSETSTRING.
2186         * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
2187         of XSYMBOL and name field.
2188         * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
2189         assignment instead of XSYMBOL and name field and XSETSTRING.
2190         * print.c (print_error_message, print_object): Use SYMBOL_NAME and
2191         XSTRING instead of XSYMBOL and name field.
2192         * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
2193         and XSTRING instead of XSYMBOL and name field.
2194         * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
2195         and XSTRING instead of XSYMBOL and name field.
2196         * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
2197         XSTRING instead of XSYMBOL and name field.
2198         * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
2199         of XSYMBOL and name field.
2200         * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
2201         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
2203 2002-05-19  Ken Raeburn  <raeburn@gnu.org>
2205         * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
2206         and XCDR real rvalues in most configurations.
2208         * buffer.c (fix_overlays_in_range, fix_overlays_before):
2209         Don't take the address of the cdr part of a cons cell; instead, track
2210         the parent cell and call XSETCDR, or set the variable for the head
2211         of the list if we haven't started down the list yet.
2213 2002-05-19  Richard M. Stallman  <rms@gnu.org>
2215         * doc.c (reread_doc_file): Don't ask for confirmation.
2217 2002-05-18  Jason Rumney  <jasonr@gnu.org>
2219         * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
2220         (xbm_load_image): Use it.
2221         (xbm_load): Ditto.
2222         (xbm_read_bitmap_data): Reverted to xfns.c version.
2223         From David Ponce <david@dponce.com>.
2225 2002-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
2227         * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
2228         2.02 and later.
2230 2002-05-16  Juanma Barranquero  <lektu@terra.es>
2232         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
2234 2002-05-15  Stefan Monnier  <monnier@cs.yale.edu>
2236         * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
2237         meaningful test.
2238         (read_char_minibuf_menu_prompt): Fix typo.
2240 2002-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
2242         * eval.c (Fcommandp): Doc fix.
2244 2002-05-13  Stefan Monnier  <monnier@cs.yale.edu>
2246         * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
2247         (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
2248         (Fset_keymap_parent): Gcpro a bit more.
2249         (access_keymap): Gcpro around meta_map call and around the main loop.
2250         (get_keyelt): Gcpro when following indirect references.
2251         (copy_keymap_item): New fun, extracted from Fcopy_keymap.
2252         (copy_keymap_1, Fcopy_keymap): Use it.  Don't copy the parent map.
2253         (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
2254         Remove useless ad-hoc remap code.
2256 2002-05-13  Richard M. Stallman  <rms@gnu.org>
2258         * search.c (search_buffer): Give up boyer moore search if inverse
2259         translation change charset_base.
2261 2002-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
2263         * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
2264         characters is carried over from the previous block of text, adjust
2265         coding->produced to account for the extra character.
2267 2002-05-11  Andreas Schwab  <schwab@suse.de>
2269         * coding.c (intersection): Keep the elements of the returned list
2270         in the same order as in the first list.
2272 2002-05-11  Kim F. Storm  <storm@cua.dk>
2274         * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
2275         only update cmm_size if realloc actually succeeds.
2276         Testing with initial size of 2 elements revealed that using
2277         realloc on GNU/Linux would cause a random trap in xmalloc
2278         later on, so I rewrote the code to use malloc/bcopy/free instead
2279         of realloc.
2281 2002-05-10  Jason Rumney  <jasonr@gnu.org>
2283         * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
2285 2002-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
2287         * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
2288         parens, to ensure correct evaluation order.
2290 2002-05-10  Kim F. Storm  <storm@cua.dk>
2292         * keymap.c (Vemulation_mode_map_alists): New variable.
2293         (syms_of_keymap): DEFVAR_LISP it.
2294         (current_minor_maps): Process keymap alists in that list before
2295         minor-mode-overriding-map-alist and minor-mode-map-alist.
2297 2002-05-09  Richard M. Stallman  <rms@gnu.org>
2299         * search.c (Freplace_match): Doc fix.
2301 2002-05-09  Kim F. Storm  <storm@cua.dk>
2303         * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
2304         Enlarge cursor rectangle drawn around image with non-zero relief.
2306         * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
2307         Enlarge cursor rectangle drawn around image with non-zero relief.
2309         * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
2310         Enlarge cursor rectangle drawn around image with non-zero relief.
2312 2002-05-07  Eli Zaretskii  <eliz@is.elta.co.il>
2314         * xselect.c (lisp_data_to_selection_data): Don't set selection
2315         type if comes from the Lisp object's car.  If the selection
2316         contains a pure ASCII text, always return QSTRING as its type.
2318 2002-05-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2320         * mac.c (mac-cut-function): Doc fix.
2322 2002-05-05  Richard M. Stallman  <rms@gnu.org>
2324         * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
2326 2002-05-04  Jason Rumney  <jasonr@gnu.org>
2328         * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
2329         for event-click-count.
2331         * process.c (init_process): Only add server subfeature if we can
2332         use non-blocking I/O.
2334 2002-05-04  Andrew Choi  <akochoi@shaw.ca>
2336         * macterm.c (XTread_socket): Call WaitNextEvent once instead of
2337         repeatedly.
2339 2002-05-03  Jason Rumney  <jasonr@gnu.org>
2341         * process.c (Fmake_network_process): Only support server sockets
2342         when we can make them non-blocking.
2344         * s/ms-w32.h (HAVE_SELECT): Define.
2346         * w32.h (FILE_NDELAY): New flag.
2348         * w32.c (sys_getpeername, fcntl): New functions.
2349         (_sys_read_ahead): Temporarily block on non-blocking sockets.
2351         * w32proc.c: include sys/file.h.
2353 2002-05-03  Colin Walters  <walters@verbum.org>
2355         * callproc.c (Vgame_score_directory): Renamed to
2356         Vshared_game_score_directory.
2358 2002-04-30  Richard M. Stallman  <rms@gnu.org>
2360         * s/gnu.h [emacs]: Include stdio.h.
2361         (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
2363         * eval.c (do_autoload): Error if called while preparing to dump.
2365         * fns.c (Frequire): Error if need to load while preparing to dump.
2367 2002-04-28  Colin Walters  <walters@verbum.org>
2369         * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
2370         Default to "~/.emacs.d/games".
2372 2002-04-29  Stefan Monnier  <monnier@cs.yale.edu>
2374         * lread.c (openp): Change arg exec_only to predicate.
2375         (build_load_history): Use XCAR/XCDR.
2376         (Flocate_file_internal): New fun.
2377         (syms_of_lread): Defsubr it.
2378         (Fload): Update call to openp.
2380         * lisp.h (openp): Update prototype.
2382         * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2383         * w32proc.c (sys_spawnve):
2384         * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2385         * w32.c (check_windows_init_file):
2386         * sound.c (Fplay_sound_internal):
2387         * process.c (Fstart_process):
2388         * macfns.c (x_create_bitmap_from_file, x_find_image_file):
2389         * mac.c (run_mac_command):
2390         * emacs.c (init_cmdargs):
2391         * callproc.c (Fcall_process): Update call to openp.
2393         * textprop.c (remove_properties): Don't use XCAR without CONSP.
2395         * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
2397 2002-04-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2399         * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
2400         (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
2402 2002-04-28  Richard M. Stallman  <rms@gnu.org>
2404         * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
2406         * eval.c (Fcommandp): New arg for_call_interactively.
2407         * lisp.h (Fcommandp): Declare new arg.
2409 2002-04-28  Jason Rumney  <jasonr@gnu.org>
2411         * w32proc.c (syms_of_w32proc): Get true file attributes by default.
2413         * w32.c (stat, fstat): Use file index information to generate
2414         inodes for directories where available.
2416 2002-04-26  Andrew Choi  <akochoi@shaw.ca>
2418         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
2419         [HAVE_CARBON]: Include Mac object files.
2421         * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
2422         fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
2423         termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
2424         MAC_OSX, and MAC_OS instead of macintosh.
2426         * editfns.c [MAC_OS8]: Include stdio.h.
2428         * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
2430         * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
2431         Apple Monaco.
2433         * process.c: Declare QCfamily and QCfilter as extern.
2434         (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
2435         calling select.
2437         * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
2439         * tparam.c [MAC_OSX]: Don't define BC and UP.
2441         * config.in [HAVE_CARBON]: Add.
2443         * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
2444         Move here from mac/src and mac/inc.
2446         * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
2448 2002-04-26  Gerd Moellmann  <gerd@gnu.org>
2450         * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
2451         Compute phys_cursor_width from the x position returned
2452         by x_draw_glyhs, which is cheaper.
2453         (x_display_and_set_cursor): Compute the buffer-local value
2454         of `cursor-in-non-selected-windows' only when needed.
2456 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
2458         * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
2459         cursor on a stretch glyph has a width that depends on
2460         x_stretch_cursor_p.
2462 2002-04-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2464         * abbrev.c (abbrev-start-location): Doc fix.
2466         * indent.c (Fvertical_motion): Fix last change.
2468 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
2470         * indent.c (Fvertical_motion): Move to the start of the line
2471         containing PT before moving up or down.
2473 2002-04-24  Gerd Moellmann  <gerd@gnu.org>
2475         * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
2476         case of writing a whole row, more or less analogous to the case of
2477         writing only parts of a row.
2479         * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
2480         0 for NO_CURSOR.
2482         * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
2484 2002-04-23  Colin Walters  <walters@verbum.org>
2486         * buffer.c (syms_of_buffer): Doc fix.
2488 2002-04-23  Gerd Moellmann  <gerd@gnu.org>
2490         * xterm.c (notice_overwritten_cursor): Handle the special case
2491         of the cursor being in the first blank non-text line at the
2492         end of a window.
2494         * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
2495         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
2496         (x_display_and_set_cursor): Don't set phys_cursor_width here, for
2497         bar cursors only, to make phys_cursor_width contain what its name
2498         suggests.
2499         (notice_overwritten_cursor): Consider the cursor image erased if
2500         the output area intersects the cursor image in y-direction.
2502 2002-04-23  Simon Marshall  <simon@gnu.org>
2504         * xfns.c (x_set_mouse_color): Change default for cross_cursor
2505         to XC_hand2.
2507 2002-04-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2509         * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
2511 2002-04-22  Kim F. Storm  <storm@cua.dk>
2513         * textprop.c (remove_properties): Fixed trap for malformed plist.
2515 2002-04-22  Richard M. Stallman  <rms@gnu.org>
2517         * cmds.c (Fend_of_line): Handle intangible text in mid line.
2519         * window.c (make_window): Initialize height_fixed_p,
2520         last_cursor_off_p, and p->cursor_off_p slots.
2522 2002-04-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2524         * fns.c (use-dialog-box): Doc fix.
2526 2002-04-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2528         * xterm.c (note_mode_line_or_margin_highlight): Remove unused
2529         variables `row', `i' and `area'.
2530         (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
2531         toolkit library.
2533 2002-04-19  Stefan Monnier  <monnier@cs.yale.edu>
2535         * xfaces.c (clear_font_table): Don't free the default font of
2536         a frame even if it's on another display.
2537         (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
2538         that could be Qt.
2540 2002-04-19  Juanma Barranquero  <lektu@terra.es>
2542         * indent.c (Fmove_to_column): Remove unused local variable
2543         `next_boundary_byte'.
2544         (current_column_1): Likewise.
2546 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
2548         * msdos.c (Qhbar): New variable.
2549         (syms_of_msdos): Intern and staticpro it.
2550         (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
2551         cursor type.
2553 2002-04-19  Dave Lambert  <dlambert@acm.org>
2555         Theses change implement an underscore-like (`hbar') cursor.
2557         * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
2559         * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
2560         Handle the `hbar' cursor type.
2561         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
2563         * xfns.c (Qhbar): New variable.
2564         (syms_of_xfns): Intern and staticpro it.
2565         (x_specified_cursor_type): Handle `hbar' cursor.
2567         * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
2568         not defined.
2570 2002-04-18  Richard M. Stallman  <rms@gnu.org>
2572         * textprop.c (remove_properties): New arg LIST allows scanning
2573         either a list or a plist.
2574         (interval_has_some_properties_list): New function, like
2575         interval_has_some_properties using list instead of plist.
2576         All callers changed.
2577         (Fremove_list_of_text_properties): New function.
2578         (syms_of_textprop): Defsubr it.
2580 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
2582         * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
2584 2002-04-17  Juanma Barranquero  <lektu@terra.es>
2586         * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
2588 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
2590         * window.c (coordinates_in_window): Don't report on margin area
2591         if its width is zero.
2593 2002-04-16  Jason Rumney  <jasonr@gnu.org>
2595         * w32fns.c (Fx_file_dialog): Decode file name before using.
2597         * w32term.c (construct_drag_n_drop): Likewise.
2599 2002-04-16  Eli Zaretskii  <eliz@is.elta.co.il>
2601         * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
2602         store load-history in pure space.
2604         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
2606 2002-04-16  Stefan Monnier  <monnier@cs.yale.edu>
2608         * xterm.c (Qlatin_1, Qutf_8): New vars.
2609         (syms_of_xterm): Initialize them.
2610         (XTread_socket): Eliminate incorrect optimization that tried to avoid
2611         decoding the output of X*LookupString.
2612         Always use latin-1 to decode the output of XLookupString.
2613         Try Xutf8LookupString if XmbLookupString failed.
2615         * region-cache.c (new_region_cache): Use BEG.
2617 2002-04-16  Gerd Moellmann  <gerd@gnu.org>
2619         * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
2620         configuration files.
2621         (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
2622         returns 0.
2624 2002-04-15  Andreas Schwab  <schwab@suse.de>
2626         * config.in: Regenerated using autoheader.
2628         * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
2629         m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
2630         m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
2631         m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
2632         m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
2633         m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
2634         m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
2635         m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
2636         m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
2637         m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
2638         m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
2639         m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
2640         m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
2641         m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
2642         m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
2643         s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
2644         STACK_DIRECTION, now set by autoconf.
2646 2002-04-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2648         * dispnew.c (marginal_area_string): Sort arguments.
2650         * dispextern.h (marginal_area_string): Add prototype.
2652 2002-04-13  Richard M. Stallman  <rms@gnu.org>
2654         * fileio.c (Finsert_file_contents):
2655         Don't call temp_output_buffer_setup--do just part, by hand.
2657         * coding.c (run_pre_post_conversion_on_str):
2658         Don't call temp_output_buffer_setup--do just part, by hand.
2660         * keyboard.c (command_loop_1): Don't call start_hourglass
2661         or cancel_hourglass when executing a macro.
2663         * marker.c (count_markers): New function.
2665         * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
2666         grow without limit.  Move recently used elements to the front.
2668 2002-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
2670         * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
2672 2002-04-12  Gerd Moellmann  <gerd@gnu.org>
2674         * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
2675         rows marginal areas.
2676         (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
2677         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
2679         * dispnew.c (marginal_area_string): Check that glyph row is enabled.
2681 2002-04-12  Dave Love  <fx@gnu.org>
2683         * dispnew.c (marginal_area_string): New.
2685         * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
2686         (Qleft_margin, Qright_margin): Declare.
2687         (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
2689         * xterm.c (note_mode_line_or_margin_highlight): Renamed from
2690         note_mode_line_highlight and extended.
2692         * keyboard.c (Qleft_margin, Qright_margin): Declare.
2693         (make_lispy_event): Deal with mouse events in margins.
2695 2002-04-12  Stefan Monnier  <monnier@cs.yale.edu>
2697         * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
2699         * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
2700         than deactivating the mark if tmm is set to `lambda'.
2701         (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
2702         Use a single event for HELP_EVENT.
2703         (Fexecute_extended_command): Save last_point_position.
2705 2002-04-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2707         * lisp.h (Fpropertize): Add prototype.
2709         * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
2711 2002-04-10  Colin Walters  <walters@verbum.org>
2713         * config.in: Add HAVE_SHARED_GAME_DIR.
2715         * callproc.c: (Vgame_score_directory): New variable.
2716         (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
2718 2002-04-10  Richard M. Stallman  <rms@gnu.org>
2720         * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
2722 2002-04-09  Stefan Monnier  <monnier@cs.yale.edu>
2724         * minibuf.c (read_minibuf): Use empty_string.
2725         (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
2726         Short-circuit the search as soon as it "failed".
2727         (Fall_completions): Allow lambda forms and lists of strings for alist.
2728         (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
2729         when require_match is nil.
2730         (Ftest_completion): Rename from `test_completion' and export to elisp.
2731         Call the predicate also when alist is a list.
2732         Obey Vcompletion_regexp_list.
2733         (do_completion, Fminibuffer_complete_and_exit): Use it.
2734         (Fassoc_string): Rename from `assoc_for_completion'.
2735         Allow list of strings as well and export to elisp.
2737 2002-04-08  Stefan Monnier  <monnier@cs.yale.edu>
2739         * puresize.h (BASE_PURESIZE): Increase to 900KB.
2741 2002-04-08  Juanma Barranquero  <lektu@terra.es>
2743         * w32.c (sys_accept): Don't hide variable `s'.
2745 2002-04-05  Gerd Moellmann  <gerd@gnu.org>
2747         * callint.c (Fcall_interactively): Use INTEGERP instead of
2748         NUMBERP for checking Vhistory_length.
2750 2002-04-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2752         * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
2753         Doc fix to reflect it.
2755 2002-04-04  Richard M. Stallman  <rms@gnu.org>
2757         * xdisp.c (display_mode_element): New arg RISKY.
2758         Disregard text props found or specified within a variable
2759         that isn't marked risky-local-variable.
2760         (Qrisky_local_variable): New variable.
2761         (syms_of_xdisp): Init and staticpro it.
2763 2002-04-04  Stefan Monnier  <monnier@cs.yale.edu>
2765         * undo.c (record_point): New fun.
2766         (record_delete, record_insert): Use it.
2768 2002-04-03  Juanma Barranquero  <lektu@terra.es>
2770         * doc.c (Fdocumentation): Add missing parentheses.
2771         (Fdocumentation_property): Likewise.
2773 2002-04-03  Stefan Monnier  <monnier@cs.yale.edu>
2775         * doc.c (Fdocumentation, Fdocumentation_property): When the doc
2776         data is 0, just return nil.
2778 2002-04-03  Eli Zaretskii  <eliz@is.elta.co.il>
2780         * msdos.c (syms_of_msdos): Fix last change with
2781         mouse_autoselect_window.
2783 2002-04-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2785         * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
2786         mouse_autoselect_window.
2788 2002-04-02  Stefan Monnier  <monnier@cs.yale.edu>
2790         * keyboard.c (make_lispy_event): Handle unknown keysyms together
2791         with system-specific keysyms.  Use it also for unknown function keys.
2793         * doc.c (reread_doc_file): Return whether reload was attempted.
2794         (Fdocumentation, Fdocumentation_property): Don't try to reload
2795         if the doc is 0 and only ask once.
2797         * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
2799 2002-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
2801         * keyboard.c (read_char): If the event was Qselect_window,
2802         restore timer_idleness_start_time to its previous value.
2804         * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
2806 2002-04-01  Stefan Monnier  <monnier@cs.yale.edu>
2808         * region-cache.c (new_region_cache): Use BEG.
2810         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
2811         Use BEG and BEG_BYTE.
2813         * doc.c (get_doc_string): Return nil if the location is wrong.
2814         (reread_doc_file): New fun.
2815         (Fdocumentation, Fdocumentation_property):
2816         Call it if get_doc_string fails.
2817         (Fsnarf_documentation): Make it work for a dumped Emacs.
2819         * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
2820         Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
2822         * charset.c (Fstring): Allow 0 arguments.
2824         * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
2826         * process.c (DATAGRAM_CONN_P, list_processes_1)
2827         (Fprocess_datagram_address, Fset_process_datagram_address)
2828         (Fset_network_process_options, server_accept_connection):
2829         Fix some int/Lisp_Object confusions (thank you union types).
2831 2002-04-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2833         * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
2835         * w32term.c: Likewise.
2836         (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
2838         * keyboard.c (Qselect_window): New symbol.
2839         (head_table): Use it.
2840         (keys_of_keyboard): Bound select-window event to handle-select-window.
2841         (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
2843         * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
2844         (last_window): New variable.
2845         (XTread_socket): Generate SELECT_WINDOW_EVENTs.
2846         (note_mouse_movement): Remove reimplemented code in #if 0.
2847         (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
2848         Emacs windows.
2850         * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
2852 2002-03-31  Gerd Moellmann  <gerd@gnu.org>
2854         * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
2855         Callers changed.
2857 2002-03-30  Richard M. Stallman  <rms@gnu.org>
2859         * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
2860         loop whenever it stops making progress.
2862         * widget.c (set_frame_size): Don't call change_frame_size.
2864 2002-03-30  Gerd Moellmann  <gerd@gnu.org>
2866         * dispnew.c (direct_output_for_insert):
2867         Call mark_window_display_accurate.
2869 2002-03-29  Jason Rumney  <jasonr@gnu.org>
2871         * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
2873 2002-03-29  Eli Zaretskii  <eliz@is.elta.co.il>
2875         * Makefile.in (lread.o): Depend on coding.h.
2877         * lread.c (openp, Fload): Encode the file name before passing it
2878         to `stat', `access', and `emacs_open'.
2879         (openp): GCPRO the encoded file name.  Don't recompute Lisp
2880         strings unnecessarily.
2882 2002-03-29  Kim F. Storm  <storm@cua.dk>
2884         * fns.c (Flax_plist_put): Doc fix.
2886 2002-03-28  Miles Bader  <miles@gnu.org>
2888         * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
2890 2002-03-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2892         * process.c (set-network-process-options): Add usage.
2893         (make-network-process): Doc fix.
2895 2002-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
2897         * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
2899 2002-03-26  Richard M. Stallman  <rms@gnu.org>
2901         * fns.c (Fsubstring_no_properties): New function.
2902         (Flax_plist_get, Flax_plist_put): New functions.
2903         (syms_of_fns): defsubr them.
2905         * xdisp.c (update_menu_bar): Test only update_mode_lines;
2906         don't test or alter w->update_mode_line.
2908         * window.c (Fdisplay_buffer): Doc fix.
2910 2002-03-24  Richard M. Stallman  <rms@gnu.org>
2912         * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
2914 2002-03-24  Gerd Moellmann  <gerd@gnu.org>
2916         * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
2917         (Fdefmacro): Handle `(declare ...)'.
2918         (syms_of_eval) <Qdeclare>: Initialize and staticpro.
2919         (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
2921 2002-03-24  Jason Rumney  <jasonr@gnu.org>
2923         * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
2924         (xbm_file_p): Add prototypes.
2925         (xbm_format, xbm_image_p): Sync with xfns.c.
2926         (reflect_byte): New function.
2927         (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
2928         (xbm_load_image): Create bitmaps with a depth of 1.
2929         (init_xfns): Enable XBM images.
2931 2002-03-23  Jason Rumney  <jasonr@gnu.org>
2933         * w32term.c (w32_handle_tool_bar_click): Detect up and down events
2934         correctly.  Do not pass up_modifier to keyboard buffer.
2936         * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
2938 2002-03-22  Stefan Monnier  <monnier@cs.yale.edu>
2940         * Makefile.in (bootstrapclean): New target.
2941         (bootstrap-temacs, bootstrap-doc): Remove.
2942         (bootstrap-emacs): Use a bog-standard `temacs'.
2943         Don't bother to build a DOC file.
2945         * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
2947         * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
2948         in temacs even if !CANNOT_DUMP.
2949         (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
2951         * alloc.c (check_pure_size): Only output a warning.
2953 2002-03-22  Jason Rumney  <jasonr@gnu.org>
2955         * w32fns.c (Fx_create_frame): Enable tool-bar when images are
2956         supported.
2958         * w32term.c (zv_bits): Declare as short, for word alignment.
2959         (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
2960         (syms_of_w32term): Define x-use-underline-position-properties.
2962         * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
2963         (clear_image_cache): Block input, fix logic, clear matrices in
2964         all frames that share this cache.
2966 2002-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
2968         * emacs.c (main): Update the Copyright year in the blurb printed
2969         by "emacs --version".
2971         * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
2973         * xterm.c (XTread_socket): If XK_ISO_Lock and
2974         XK_ISO_Last_Group_Lock are defined, handle keysyms between
2975         XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
2977 2002-03-21  Kim F. Storm  <storm@cua.dk>
2979         * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
2980         menu-bar bindings in keymap and local-map properties _are_ used.
2981         But try keymap property first in accordance with 2002-01-03 patch.
2982         Added comment describing why this is not always reliable.
2983         (tool_bar_items): Ditto for tool-bar.
2985 2002-03-21  Jason Rumney  <jasonr@gnu.org>
2987         * w32fns.c (x_clear_image_1): Disable color table code.
2989 2002-03-21  Kim F. Storm  <storm@cua.dk>
2991         * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
2992         removed the wrong version of the DEFUN macro; fixed it.
2994         * fns.c (Ffeaturep): Allow subfeature to be a list (test using
2995         Fmember rather than Fmemq).
2996         (Fprovide): Check that subfeatures is a list.
2998         * process.c (QCfeature, QCdatagram): Removed variables.
2999         (QCtype, Qdatagram): New variables.
3000         (network_process_featurep): Removed function.
3001         (Fmake_network_process): Removed :feature check.
3002         Use :type 'datagram instead of :datagram t to create a datagram
3003         socket.  This allows us to add other connection types (e.g. raw
3004         sockets) later in a consistent manner.
3005         (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
3006         supported subfeatures for feature make-network-process.
3007         (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
3008         Intern and staticpro QCtype and Qdatagram.
3009         (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
3011         * xfns.c: (QCtype): Remove duplicate declaration and
3012         initialization (is now declared in process.c).
3014         * w32fns.c: (QCtype): Remove duplicate declaration and
3015         initialization (is now declared in process.c).
3017 2002-03-21  Richard M. Stallman  <rms@gnu.org>
3019         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
3020         (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
3021         when jumping to `fail' to avoid undoing reg changes in the
3022         last iteration of the loop.
3023         (GET_UNSIGNED_NUMBER): Skip spaces around the number.
3025         * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
3026         Depend on process.h.
3028 2002-03-20  Jason Rumney  <jasonr@gnu.org>
3030         Most of the following changes are still conditional on HAVE_IMAGES
3031         which is not set by default on Windows.
3033         * emacs.c (main) [WINDOWSNT]: Call init_xfns.
3035         * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
3036         (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
3037         (four_corners_best, x_clear_image_1, x_clear_image)
3038         (x_alloc_image_color, postprocess_image)
3039         (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
3040         (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
3041         (init_xfns, syms_of_w32fns): Initialize image functions and constants.
3043         * w32gui.h (struct XImage): Define.
3045         * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
3046         extract mouse co-ordinates.
3048 2002-03-20  Jason Rumney  <jasonr@gnu.org>
3050         * w32.c (init_winsock): Dynamically load new server and UDP
3051         socket functions.
3052         (socket_to_fd): New function.
3053         (sys_socket): Use it.
3054         (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
3055         (sys_recvfrom, sys_sendto): New wrapper functions.
3057         * process.c (QCfamily, QCfilter): Remove duplicate declaration
3058         and initialization.
3060         * makefile.w32-in (LIBS): Remove $(WSOCK32).
3062 2002-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
3064         * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
3065         use "sun" as a variable, it's a predefined constant on Sun
3066         machines.
3068 2002-03-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3070         * bytecode.c (Fbyte_code): Revert last change.
3072 2002-03-19  Kim F. Storm  <storm@cua.dk>
3074         * makefile.w32-in (LIBS): Add $(WSOCK32).
3075         From David Ponce <dponce@voila.fr>.
3077 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3079         * process.c (wait_reading_process_input): Move variables `pname'
3080         and `pnamelen' down where they are used.
3082         * bytecode.c (Fbyte_code): Discard unused computed value to
3083         prevent gcc warning.
3085         * lisp.h (Fplist_member): Add prototype.
3087 2002-03-18  Kim F. Storm  <storm@cua.dk>
3089         * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
3090         HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and
3091         HAVE_SYS_UN_H.
3093         * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
3094         Remove explicit GNU_LINUX settings for datagram support.
3096 2002-03-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3098         * process.c (Fmake_network_process): Remove unused variable `sa'.
3099         Doc fix.  Add usage:.
3100         (set_socket_options): Remove unused variables `optnum' and
3101         `opttype'.
3103 2002-03-17  Richard M. Stallman  <rms@gnu.org>
3105         * xdisp.c (cursor_type_changed): New variable.
3106         (redisplay_internal): Redisplay all windows if cursor_type_changed.
3107         Clear it when clearing windows_or_buffers_changed.
3108         (try_cursor_movement, redisplay_window, try_window_id)
3109         (try_window_reusing_current_matrix): Test cursor_type_changed
3110         along with windows_or_buffers_changed.
3112         * window.h (cursor_type_changed): New variable.
3114         * xfns.c (x_set_cursor_type): Set cursor_type_changed,
3115         not update_mode_lines, and always set it to 1.
3117         * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
3118         if no frames needed redrawing.
3120 2002-03-17  Kim F. Storm  <storm@cua.dk>
3122         The following changes add support for network server processes,
3123         datagram connections, and local (unix) sockets.
3125         * process.h (struct Lisp_Process): New member log.
3126         Doc fix: Member command used to indicate stopped network process.
3127         Doc fix: Member childp contains plist for network process.
3128         Doc fix: Member kill_without_query is inverse of query-on-exit flag.
3130         * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
3131         (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
3132         (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
3133         New variables.
3134         (NETCONN1_P): New macro.
3135         (DATAGRAM_SOCKETS): New conditional symbol.
3136         (datagram_address): New array.
3137         (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
3138         (status_message): Use concat3.
3139         (Fprocess_status): Add `listen' status to doc string.  Return `stop'
3140         for a stopped network process.
3141         (Fset_process_buffer): Update contact plist for network process.
3142         (Fset_process_filter): Ditto.  Don't enable input for stopped
3143         network processes.  Server must listen, even if filter is t.
3144         (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
3145         New functions.
3146         (Fprocess_kill_without_query): Removed.  Now defined in simple.el.
3147         (Fprocess_contact): Added KEY argument.  Handle datagrams.
3148         (list_processes_1): Optionally show only processes with the query
3149         on exit flag set.  Dynamically adjust column widths.  Omit tty
3150         column if not needed.  Report stopped network processes.
3151         Identify server and datagram network processes.
3152         (Flist_processes): New optional arg `query-only'.
3153         (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
3154         (conv_lisp_to_sockaddr, set_socket_options)
3155         (network_process_featurep, unwind_request_sigio): New helper functions.
3156         (Fprocess_datagram_address, Fset_process_datagram_address):
3157         (Fset_network_process_options): New lisp functions.
3158         (Fopen_network_stream): Removed.  Now defined in simple.el.
3159         (Fmake_network_process): New lisp function.  Code is based on previous
3160         Fopen_network_stream, but heavily reworked with new property list based
3161         argument list, support for datagrams, server processes, and local
3162         sockets in addition to old client-only functionality.
3163         (server_accept_connection): New function.
3164         (wait_reading_process_input): Use it to handle incoming connects.
3165         Do not enable input on a new connection if process is stopped.
3166         (read_process_output): Handle datagram sockets. Use 2k buffer for them.
3167         (send_process): Handle datagram sockets.
3168         (Fstop_process, Fcontinue_process): Apply to network processes.  A stopped
3169         network process is indicated by setting command field to t .
3170         (Fprocess_send_eof): No-op if datagram connection.
3171         (Fstatus_notify): Don't read input for a stream server socket or a
3172         stopped network process.
3173         (init_process): Initialize datagram_address array.
3174         (syms_of_process): Intern and staticpro new variables, defsubr new
3175         functions.
3177 2002-03-16  Jason Rumney  <jasonr@gnu.org>
3179         * w32fns.c (w32_to_all_x_charsets): Return correct type in
3180         startup case.
3182 2002-03-16  Richard M. Stallman  <rms@gnu.org>
3184         * xdisp.c (redisplay_internal, redisplay_windows):
3185         Use list_of_error to call internal_condition_case_1.
3186         (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
3187         so as to catch all errors with no possibility of debugger redisplay.
3188         (list_of_error): New variable.
3189         (syms_of_xdisp): Init and staticpro it.
3191         * print.c (print_object): Delete `\ ' from printed rep of frame.
3193 2002-03-15  Eli Zaretskii  <eliz@is.elta.co.il>
3195         * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
3196         until its implementation is fixed.
3198 2002-03-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3200         * xfns.c (png_load): Remove unused variable `gamma_str'.
3202 2002-03-14  Richard M. Stallman  <rms@gnu.org>
3204         * xfns.c (x_real_positions): Handle failure in XQueryTree.
3206 2002-03-14  Miles Bader  <miles@gnu.org>
3208         * intervals.c (adjust_for_invis_intang): New function.
3209         (set_point_both): Use `adjust_for_invis_intang' to do most of the
3210         work for dealing with invisible+intangible regions.  Do so before
3211         and after both forward and backward movements, to handle both
3212         front-sticky and rear-sticky cases.
3213         * textprop.c (text_property_stickiness): Function moved here from
3214         `editfns.c'.
3215         * intervals.h (text_property_stickiness): New declaration.
3216         * editfns.c (char_property_eq): Function removed.
3217         (text_property_stickiness): Function moved to `textprop.c'.
3219 2002-03-13  Jason Rumney  <jasonr@gnu.org>
3221         * config.in: Add STRFTIME_NO_POSIX2.
3223         * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
3224         and %OX when underlying strftime does not.
3226 2002-03-13  Stefan Monnier  <monnier@cs.yale.edu>
3228         * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
3229         Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
3230         line) to avoid annoying flicker.
3231         (xm_scroll_callback): Get rid of the now unnecessary kludge.
3232         (XTread_socket): Mark it static.
3234         * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
3236 2002-03-13  Kim F. Storm  <storm@cua.dk>
3238         * puresize.h (BASE_PURESIZE): Increase to 775000.
3240 2002-03-12  Juanma Barranquero  <lektu@terra.es>
3242         * editfns.c (syms_of_editfns): Fix typo.
3244 2002-03-12  Gerd Moellmann  <gerd@gnu.org>
3246         * xsmfns.c: Include stdio.h because termhooks.h needs it.
3247         Include termopt.h for interrupt_input.
3249 2002-03-11  Andreas Schwab  <schwab@suse.de>
3251         * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
3253 2002-03-11  Gerd Moellmann  <gerd@gnu.org>
3255         * xterm.c (note_mouse_movement): Put code for
3256         x_autoselect_window_p in #if 0.
3258         * lread.c (Fload): Don't assume that message_with_string uses the
3259         string it is given like a C string.
3261 2002-03-10  Jan D.  <Jan.Djarv@mbox200.swipnet.se>
3263         * xterm.h (x_session_check_input, x_session_initialize): Declared.
3265         * xterm.c: (XTread_socket): Add call to x_session_check_input and
3266         x_session_have_connection.
3267         (x_initialize): Add call to x_session_initialize.
3269         * termhooks.h (enum event_kind): Add save_session_event.
3271         * keyboard.c: Add Emacs event save_session_event.
3273         * emacs.c (main): Add call to syms_of_xsmfns.
3275         * lisp.h: Declare syms_of_xsmfns as extern.
3277         * config.in: Add HAVE_X_SM.
3279         * Makefile.in (LIBXT): Add -lSM -lICE
3280         if HAVE_X_SM and not USE_X_TOOLKIT.
3281         (XOBJ): New file xsmfns.c added.
3283         * xsmfns.c: New file for X session management.
3285 2002-03-09  Jason Rumney  <jasonr@gnu.org>
3287         * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
3288         read-only when setting modified time.
3290 2002-03-08  Gerd Moellmann  <gerd@gnu.org>
3292         * xdisp.c (move_it_vertically_backward): At the end of the
3293         function, when moving forward by lines, treat terminal frames
3294         specially.
3296         * keyboard.c (echo_char): Make sure to add a separator between
3297         keys even if echo_dash hasn't been called.
3299         * xdisp.c: Use new string macros.
3300         (update_echo_area): Pass number of bytes to message3 instead of
3301         number of chars.
3302         (set_message_1): Don't access a string's size_byte directly.
3303         (decode_mode_spec_coding): Use number of bytes of eoltype string
3304         instead number of chars.
3306         * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
3308 2002-03-08  Juanma Barranquero  <lektu@terra.es>
3310         * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
3311         24-bit.
3313 2002-03-06  Jason Rumney  <jasonr@gnu.org>
3315         * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
3317 2002-03-06  Gerd Moellmann  <gerd@gnu.org>
3319         * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
3320         (cancel_echoing, echo_length, echo_truncate): Changed to
3321         work with new kboard definition.
3322         (echo_now): Use message3_nolog instead of message2_nolog.
3324         * alloc.c (mark_kboards): Mark echo_string.
3326         * keyboard.h (ECHOBUFSIZE): Removed.
3327         (struct kboard): Member echoptr removed, member echobuf renamed
3328         to echo_string.
3330         * xdisp.c (message_with_string): Use Fformat instead of doprnt and
3331         message3 instead of message2 to display the message using STRING's
3332         text properties.
3334 2002-03-05  Andreas Schwab  <schwab@suse.de>
3336         * xdisp.c (hscroll_margin): Change to EMACS_INT.
3338 2002-03-05  Per Abrahamsen  <abraham@dina.kvl.dk>
3340         * frame.c (default-frame-alist): Explain that setting it doesn't
3341         affect existing frames.
3343 2002-03-05  Stefan Monnier  <monnier@cs.yale.edu>
3345         * indent.c (skip_invisible): Fix my brain fart.
3347         * dispnew.c (sit_for): Don't wait if executing a kbd macro.
3349 2002-03-04  Stefan Monnier  <monnier@cs.yale.edu>
3351         * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
3352         * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
3353         * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
3354         * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
3355         and variables to use EMACS_INT instead of just int.
3357         * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
3359 2002-03-04  Eli Zaretskii  <eliz@is.elta.co.il>
3361         * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
3362         environment, pass it down with corrected value.
3364 2002-03-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3366         * lread.c (read_filtered_event): Do not call start_hourglass
3367         before returning.
3369 2002-03-04  Juanma Barranquero  <lektu@terra.es>
3371         * w32term.c (x_display_and_set_cursor): Fix typo.
3373 2002-03-03  Richard M. Stallman  <rms@gnu.org>
3375         * fileio.c (Fmake_temp_name): Doc fix.
3377 2002-03-03  Gary Wong  <gtw@gnu.org>
3379         * termcap.c [!emacs]: Replace ospeed for building standalone
3380         libtermcap, for binary compatibility.
3382         * tparam.c [!emacs]: Move #define of bcopy to after string.h.
3384 2002-03-03  Richard M. Stallman  <rms@gnu.org>
3386         * xrdb.c (file_p): Rename arg `path' to `filename'.
3388         * abbrev.c (Fexpand_abbrev): Increment plist as use count
3389         only if it is an integer.
3391         * xfns.c (png_load): Set screen_gamma based on f->gamma.
3392         If png_get_sRGB gives an answer, call png_set_gamma
3393         using the default image gamma value.
3395         * lread.c (read1): When reading from a file, default string to
3396         multibyte only if it has some multibyte characters.
3398         * print.c (print_object): Output multibyte chars 128...255
3399         using \x even if ! print_escape_multibyte.
3401         * xdisp.c (display_mode_element): Move the places where
3402         bytepos, charpos, this, and lisp_string are set.
3403         Use lisp_string to set bytepos.
3405         * xdisp.c (redisplay_internal):
3406         Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
3408         * xdisp.c (display_mode_element): Merge properties specified with
3409         :propertize onto those that come with the string.
3411 2002-03-03  Eli Zaretskii  <eliz@is.elta.co.il>
3413         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
3414         automatic-hscrolling.  Users changed.
3415         <hscroll-margin>: Renamed from automatic-hscroll-margin.
3416         Users changed.
3417         <hscroll-step>: Renamed from automatic-hscroll-step.  Users changed.
3419 2002-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
3421         * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
3423 2002-03-02  Kim F. Storm  <storm@cua.dk>
3425         * window.c (Fminibuffer_selected_window): New function.
3426         (syms_of_window): Defsubr it.
3428 2002-03-01  Kim F. Storm  <storm@cua.dk>
3430         * window.h (struct window): New member phys_cursor_width.
3432         * window.c (make_window, replace_window): Init phys_cursor_width.
3434         * xterm.c (x_display_and_set_cursor): Blink box cursor using
3435         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
3437         * w32term.c (x_display_and_set_cursor): Blink box cursor using
3438         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
3440         * lisp.h (GCPRO6): New macro.
3442         * process.c (Fopen_network_stream): Use GCPRO6.
3444 2002-03-01  Kim F. Storm  <storm@cua.dk>
3446         * process.c (Qconnect, Qfailed): New variables.
3447         (syms_of_process): Intern and staticpro them.
3448         (Fprocess_status): Document connect and failed return values.
3449         [NON_BLOCKING_CONNECT]: New conditional.
3450         (connect_wait_mask, num_pending_connects): New variables.
3451         (status_message): Convert Qfailed status.
3452         (Fopen_network_stream): Added support for non-blocking connect.
3453         New optional args: filter, sentinel, non_blocking.  Doc updated.
3454         [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]:  Merged common code.
3455         (deactivate_process): Handle pending non-blocking connect.
3456         (wait_reading_process_input): Poll for status of non-blocking
3457         connects.  Exec sentinel directly when connect succeeds.
3458         (status_notify): Don't read process output if not yet connected.
3460 2002-02-28  Kim F. Storm  <storm@cua.dk>
3462         * window.c: (minibuf_selected_window): Renamed from
3463         Vminibuf_selected_window.  Users changed.
3464         (syms_of_window): Staticpro it.
3466 2002-02-26  Kim F. Storm  <storm@cua.dk>
3468         The following changes add a new Vminibuf_selected_window variable
3469         which is similar to Vminibuf_scroll_window, but which is only set
3470         on entry to the minibuffer (from a non-minibuffer window):
3472         * window.c: (Vminibuf_selected_window): New variable.
3473         (struct save_window_data): New member minibuf_selected_window.
3474         (Fset_window_configuration): Restore Vminibuf_selected_window.
3475         (Fcurrent_window_configuration): Save Vminibuf_selected_window.
3476         Set minibuf_scroll_window member to nil if minibuf_level is 0.
3477         (compare_window_configurations): Compare minibuf_selected_window.
3479         * window.h: (Vminibuf_selected_window): Declare extern.
3481         * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
3482         entry to minibuffer or on entry from a non-minibuffer window.
3484         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
3485         Vminibuf_selected_window instead of Vminibuf_scroll_window.
3487         * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
3488         instead of Vminibuf_scroll_window when deciding in which window
3489         the region should be highlighted.  Consequently, the region remains
3490         highlighteded even when a completion buffer is also displayed.
3492 2002-02-26  Eli Zaretskii  <eliz@is.elta.co.il>
3494         * fileio.c (Fsubstitute_in_file_name): Fix the change from
3495         2002-02-08.
3497         * xselect.c (Qcompound_text_with_extensions): Renamed from
3498         Qcompound_text_no_extensions.
3499         (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
3501 2002-02-26  Juanma Barranquero  <lektu@terra.es>
3503         * w32proc.c (syms_of_ntproc): Doc fix.
3505 2002-02-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3507         * intervals.h: Include "dispextern.h" unconditionally.
3509 2002-02-24  Jason Rumney  <jasonr@gnu.org>
3511         * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
3512         and disp-table.elc.
3513         (lisp): Add emacs-lisp/backquote.elc.
3515 2002-02-24  Kim F. Storm  <storm@cua.dk>
3517         * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
3518         The validation of the event type was too strict as it didn't
3519         allow string events; buffer names are used in bindings for
3520         menu-bar-select-buffer (see `menu-bar-update-buffers').
3522 2002-02-23  Kim F. Storm  <storm@cua.dk>
3524         The following changes rework my patch of 2002-02-06 which
3525         added command remapping by entering the commands directly into
3526         the keymaps.  Now, command remapping uses an explicit `remap'
3527         prefix in the keymaps, i.e. [remap COMMAND].
3529         * keymap.c (Qremap, remap_command_vector): New variables.
3530         (is_command_symbol): Removed function.
3531         (Fdefine_key): No longer accept a symbol for KEY.
3532         Added validation of [remap COMMAND] argument for KEY.
3533         The DEF is no longer required to be a symbol when remapping a command.
3534         (Fremap_command): New function to remap command through keymaps.
3535         (Flookup_key): Perform command remapping initiated by
3536         Fremap_command directly for speed.
3537         (Fkey_binding): Use Fremap_command for command remapping.
3538         (where_is_internal): Handle new command remapping representation.
3539         (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
3540         staticpro them.  Defsubr Fremap_command.
3542         * keymap.h (Fremap_command): Declare extern.
3543         (is_command_symbol): Remove extern.
3545         * keyboard.c (command_loop_1): Use Fremap_command for command
3546         remapping; now try command remapping for all symbols.
3548 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
3550         * coding.h (run_pre_post_conversion_on_str): Add prototype.
3552 2002-02-23  Jason Rumney  <jasonr@gnu.org>
3554         * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
3555         on the string before encoding it.
3556         (Fw32_get_clipboard_data): Run post-read-conversion on the string
3557         after decoding it.
3559         * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
3561 2002-02-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3563         * w32term.c (enter_timestamp): Remove unused static variable to
3564         prevent warning.
3566         * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
3568 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
3570         * w16select.c (Fw16_get_clipboard_data): Fix last change.
3572         * xselect.c (selection_data_to_lisp_data): Fix last change.
3574 2002-02-22  Jason Rumney  <jasonr@gnu.org>
3576         * w32term.h (struct w32_output): New member menu_command_in_progress.
3578         * w32menu.c (menubar_selection_callback): Free the menu and
3579         clear the menu_command_in_progress flag.
3581         * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
3582         (menu_free_timer): New variable.
3583         (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
3584         (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
3585         <WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
3586         menu command is in progress.
3587         <WM_COMMAND>: Set the menu_command_in_progress flag.
3588         Kill any menu_free_timer that is running.
3590         * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
3591         Call ExtTextOutA rather than ExtTextOut.
3593 2002-02-22  Eli Zaretskii  <eliz@gnu.org>
3595         * puresize.h (BASE_PURESIZE): Increase to 755000.
3597 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
3599         * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
3600         on the string before encoding it.
3601         (Fw16_get_clipboard_data): Run post-read-conversion on the string
3602         after decoding it.
3604 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
3606         Support for ICCCM  Extended Segments in X selections:
3608         * xselect.c <Qcompound_text_no_extensions>: New variable.
3609         (syms_of_xselect): Intern and staticpro it.
3610         (selection_data_to_lisp_data): Run post-read-conversion on decoded
3611         selection text.
3612         (lisp_data_to_selection_data): If next-selection-coding-system is
3613         compound-text-no-extensions, set the type of selection to be
3614         compound-text.
3616         * xterm.h (x_encode_text): Update prototype.
3618         * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
3619         callers changed.  If SELECTIONP is non-zero, run the
3620         pre-write-conversion function before encoding the selection text.
3622 2002-02-21  Kim F. Storm  <storm@cua.dk>
3624         * frame.c (syms_of_frame): Change mouse-highlight default to t.
3626         * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
3627         Correct composing of language-change event.
3629 2002-02-20  Kim F. Storm  <storm@cua.dk>
3631         * keyboard.c (menu_bar_items): Don't include keymap or local-map
3632         bindings at PT when building menu (the menu is not updated often
3633         enough for this to work reliable).
3634         (tool_bar_items): Likewise.
3635         (current_active_maps): Removed unused (and buggy) function.
3637 2002-02-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3639         * xfns.c (gif_load): Use correct width and height for GIF images.
3641 2002-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
3643         * floatfns.c (Fatan): Accept an optional second arg and call
3644         atan2 if passed 2 args.
3646 2002-02-18  Jason Rumney  <jasonr@gnu.org>
3648         * w32term.c (glyph_rect): Determine the row and glyph more precisely.
3650 2002-02-17  Jason Rumney  <jasonr@gnu.org>
3652         * w32term.c (x_autoselect_window_p): New variable.
3653         (syms_of_w32term): DEFVAR_BOOL and initialize it.
3654         (note_mouse_movement): Use it.
3656         * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
3658         * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
3660         * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
3661         New variables.
3662         (syms_of_w32fns): Intern and staticpro them.
3663         (x_frame_parms) <"fullscreen">: New parameter.
3664         (x_fullscreen_move, x_set_fullscreen): New functions.
3665         (x_set_frame_parameters): Support Qfullscreen.
3666         (x_real_positions): Save x/y_pixels_diff frame params.
3667         (x_figure_window_size): Support full-screen frames.
3668         (Fx_create_frame): Default the fullscreen parameter.
3670         * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
3671         (x_fullscreen_adjust): New functions.
3672         (w32_read_socket) <WM_WINDOWPOSCHANGED>:  Don't resize to
3673         fullscreen.  Call x_check_fullscreen_move, and set the
3674         want_fullscreen member of output_data.w32
3675         <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
3677         * w32term.h: New enum for FULLSCREEN_* constants.
3678         (struct w32_output): New members want_fullscreen, x_pixels_diff,
3679         y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
3680         (x-fullscreen-adjust): New prototype.
3682 2002-02-17  Kim F. Storm  <storm@cua.dk>
3684         * frame.c: (Vmouse_highlight): New variable.
3685         (syms_of_frame): DEFVAR_LISP it.
3687         * frame.h: (Vmouse_highlight): Declare extern.
3689         * xterm.h (struct x_display_info): Add mouse_face_hidden.
3691         * xterm.c (disable_mouse_highlight): Removed variable.
3692         (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
3693         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
3694         (XTread_socket): Turn mouse_face_hidden off after mouse movement,
3695         and on after keyboard input.
3696         (x_term_init): Initialize mouse_face_hidden.
3698         * msdos.h (struct display_info): Add mouse_face_hidden.
3700         * msdos.c (disable_mouse_highlight): Removed variable.
3701         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
3702         (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
3703         (internal_terminal_init): Initialize mouse_face_hidden.
3704         (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
3705         and on after keyboard input.
3707         * w32term.h (struct w32_display_info): Add mouse_face_hidden.
3709         * w32term.c (disable_mouse_highlight): Removed variable.
3710         (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
3711         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
3712         (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
3713         and on after keyboard input.
3714         (w32_initialize_display_info): Initialize mouse_face_hidden.
3716 2002-02-16  Eli Zaretskii  <eliz@is.elta.co.il>
3718         * msdos.c (last_mouse_window): New variable.
3719         (dos_rawgetc): Fix last change--if the mouse is in the same window
3720         as recorded in last_mouse_window, don't select this window.
3722         * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
3724         * msdos.c (x_autoselect_window_p): New variable.
3725         (syms_of_msdos): Defvar it.
3726         (dos_rawgetc): If x_autoselect_window_p is set, select the window
3727         in which the last mouse movement occured, unless it is already
3728         selected.
3730         * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
3731         New variables.
3732         (syms_of_xdisp): DEVFAR them.
3733         (hscroll_window_tree): Use automatic_hscroll_margin and
3734         Vautomatic_hscroll_step to compute the amount of window scrolling.
3736 2002-02-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3738         * xterm.c (x-autoselect-window): New variable.
3739         (note_mouse_movement): Use it.
3741         * keyboard.c: Do not include "systime.h" twice.
3743 2002-02-15  Andreas Schwab  <schwab@suse.de>
3745         * puresize.h (BASE_PURESIZE): Increase to 9/5.
3747         * alloc.c (NSTATICS): Increase to 1280.
3749 2002-02-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
3751         * alloc.c (NSTATICS): Bump to 1026.
3753         * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
3754         (Vx_super_keysym): New variables.
3755         (syms_of_xterm): DEFVAR_LISP them.
3756         (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
3757         variables to determine which keys to use for the various modifiers.
3759 2002-02-13  Kim F. Storm  <storm@cua.dk>
3761         * window.c: (Vmode_line_in_non_selected_windows): Removed.
3762         (mode_line_in_non_selected_windows): New variable.
3763         (syms_of_window): DEFVAR_BOOL it.
3765         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
3766         Use mode_line_in_non_selected_windows.
3767         (mode_line_in_non_selected_windows): Declare extern.
3768         (Vmode_line_in_non_selected_windows): Removed extern.
3770 2002-02-13  Richard M. Stallman  <rms@gnu.org>
3772         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
3773         (Fthis_single_command_keys, Fthis_single_command_raw_keys)
3774         (Fclear_this_command_keys): Doc fixes.
3776         * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
3777         (update_face_from_frame_parameter): Increment face_change_count
3778         and windows_or_buffers_changed to force redisplay using changed faces.
3780         * xdisp.c (QCpropertize): New variable.
3781         (mode_line_proptrans_alist): New variable.
3782         (display_mode_element): New arg PROPS; all calls changed.
3783         Implement this, for strings.
3784         Handle literal output of strings by sharing the
3785         main-line code for strings, using local var `literal'.
3786         Handle :propertize feature.
3787         (syms_of_xdisp): Initialze and staticpro QCpropertize and
3788         mode_line_proptrans_alist.
3790 2002-02-11  Kim F. Storm  <storm@cua.dk>
3792         * window.c: (Vmode_line_in_non_selected_windows): New variable.
3793         (syms_of_window): DEFVAR_LISP it.
3795         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
3796         (CURRENT_MODE_LINE_FACE_ID): Use it.
3797         (Vmode_line_in_non_selected_windows): Declare extern.
3799         * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
3800         to get mode line face.
3802 2002-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
3804         * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
3805         variables; cus-start.el doesn't need them anymore.
3807 2002-02-09  Kim F. Storm  <storm@cua.dk>
3809         * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
3810         reduction.  This fixes a display problem where stray newlines were
3811         inserted in the window (corrected by C-l).  Clarified code (IMHO).
3813 2002-02-09  Eli Zaretskii  <eliz@is.elta.co.il>
3815         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
3817         * xdisp.c (display_mode_lines): Fix last change.
3819 2002-02-09  Jason Rumney  <jasonr@gnu.org>
3821         * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
3822         match each other.
3823         (w32_load_system_font): Prevent Cleartype fonts from loading.
3824         (Fx_show_tip): Ensure tip frames are above other topmost windows.
3826 2002-02-09  Kim F. Storm  <storm@cua.dk>
3828         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
3829         (CURRENT_MODE_LINE_HEIGHT): Use it.
3830         (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
3832         * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
3833         (pos_visible_p, handle_face_prop): Likewise.
3834         (display_mode_lines): Likewise, but for the real selected window.
3835         (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
3837         * xfaces.c (Qmode_line_inactive): New face variable for mode-line
3838         in non-selected windows.
3839         (realize_basic_faces): Realize it.
3840         (syms_of_term): Intern and staticpro it.
3842 2002-02-08  Kim F. Storm  <storm@cua.dk>
3844         * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
3845         Changed mail addresses to emacs-devel@gnu.org.
3847 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
3849         * fileio.c (Fsubstitute_in_file_name): If the file name includes
3850         ~user, and there's no such user, don't discard everything before ~user.
3852         * floatfns.c (Fround): Doc fix.
3854 2002-02-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3856         * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
3858 2002-02-07  Stefan Monnier  <monnier@cs.yale.edu>
3860         * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
3862 2002-02-07  Kim F. Storm  <storm@cua.dk>
3864         * keymap.c (where_is_internal): Only check whether definition is
3865         remapped if it fulfills is_command_symbol.
3867 2002-02-07  Andreas Schwab  <schwab@suse.de>
3869         * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
3871         * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
3873 2002-02-06  Kim F. Storm  <storm@cua.dk>
3875         * keymap.c (Fdefine_key): Allow symbol as KEY argument for
3876         defining command remapping.  Doc updated.
3877         (Flookup_key): Remap command through keymap if KEY is a symbol.
3878         (is_command_symbol): New function.
3879         (Fkey_binding): Use it.  New optional argument NO-REMAP.
3880         Doc updated.  Callers changed.  Perform command remapping via
3881         recursive call unless that arg is non-nil.
3882         (where_is_internal): New argument no_remap.  Callers changed.
3883         Call recursively to find original key bindings for a remapped
3884         comand unless that arg is non-nil.
3885         (Fwhere_is_internal): New optional argument NO-REMAP.
3886         Doc updated.  Callers changed.  Pass arg to where_is_internal.
3888         * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
3889         (is_command_symbol): Added prototype.
3891         * keyboard.c (Vthis_original_command): New variable.
3892         (syms_of_keyboard): DEFVAR_LISP it.
3893         (command_loop_1): Set it, and perform command remapping.
3895 2002-02-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3897         * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
3899 2002-02-06  Jason Rumney  <jasonr@gnu.org>
3901         * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
3903 2002-02-06  Eli Zaretskii  <eliz@is.elta.co.il>
3905         * charset.c (get_charset_id): Use if-else instead of ?:.
3907 2002-02-06  Richard M. Stallman  <rms@gnu.org>
3909         * filelock.c (S_ISLNK): Define if not defined.
3911 2002-02-03  Richard M. Stallman  <rms@gnu.org>
3913         * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
3915         * lread.c (read1): Redesign strategy for force_multibyte and
3916         force_singlebyte.  Now is_multibyte records whether read_buffer
3917         is multibyte.  Encountering any multibyte character makes it so.
3919 2002-02-02  Stefan Monnier  <monnier@cs.yale.edu>
3921         * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
3922         with the same sequence, map that sequence to f10 rather than f0.
3924 2002-02-03  Andreas Schwab  <schwab@suse.de>
3926         * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
3927         latter never being defined on GNU/Linux.
3929 2002-02-02  Eli Zaretskii  <eliz@is.elta.co.il>
3931         * xfaces.c (realize_default_face): Don't set the weight and slant
3932         of the default face to Qnormal, unless these attributes are
3933         unspecified.
3935 2002-02-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3937         * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
3938         Call cancel_hourglass unconditionally.
3940         * eval.c (Fsignal): Remove duplicated declaration of
3941         the variable `display_hourglass_p'.
3943 2002-01-31  Richard M. Stallman  <rms@gnu.org>
3945         * editfns.c (region_limit): Nicer error message.
3947         * coding.c (decode_composition_emacs_mule):
3948         Give up if NCOMPONENT gets too large to index `component'.
3950         * callint.c (check_mark): New arg to specify clearer error message.
3951         Callers changed.
3953 2002-01-27  Richard M. Stallman  <rms@gnu.org>
3955         * minibuf.c (Fcompleting_read): Doc fix.
3957 2002-01-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3959         * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
3960         (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
3961         Fix doc-strings.
3963 2002-01-26  Richard M. Stallman  <rms@gnu.org>
3965         * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
3967         * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
3968         and scroll_up_aggressively.
3970 2002-01-26  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3972         * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
3974 2002-01-25  Stefan Monnier  <monnier@cs.yale.edu>
3976         * textprop.c (Fnext_property_change, Fnext_single_property_change)
3977         (Fprevious_property_change, Fprevious_single_property_change):
3978         Stay within the narrowed-buffer boundaries.
3980 2002-01-25  Eli Zaretskii  <eliz@is.elta.co.il>
3982         * term.c (Ftty_display_color_cells): New function.
3983         (syms_of_term): Defsubr it.
3984         (Ftty_display_color_cells, Ftty_display_color_p): Change the
3985         argument name to DISPLAY.  Doc fix.
3987         * dispextern.h: Add prototype for set_tty_color_mode and
3988         tty_setup_colors.
3990 2002-01-24  Jason Rumney  <jasonr@gnu.org>
3992         * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
3993         If region left to draw is not what was expected, mark the frame as
3994         garbaged.
3996         * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
3997         Combine the regions returned by BeginPaint and GetUpdateRect.
3999 2002-01-23  Jason Rumney  <jasonr@gnu.org>
4001         * w32term.c (x_update_window_begin): Only hide caret if
4002         w32_use_visible_system_caret is set.
4003         (x_update_window_end): Only show caret if
4004         w32_use_visible_system_caret is set.
4005         (syms_of_w32term): Handle SystemParametersInfo call failing.
4007         * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
4009 2002-01-22  Richard M. Stallman  <rms@gnu.org>
4011         * unexelf.c (unexec): Define n so as to cause compilation error
4012         for the code where people have often written n instead of nn.
4014         * .gdbinit (hookpost-run): Defined.
4016 2002-01-22  Jan D.  <Jan.Djarv@mbox200.swipnet.se>
4018         * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
4020 2002-01-21  Jan D.  <Jan.Djarv@mbox200.swipnet.se>
4022         * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
4023         if fullscreen is being set.
4025 2002-01-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4027         * minibuf.c (Fminibuffer_contents)
4028         (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
4029         (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
4031 2002-01-21  Richard M. Stallman  <rms@gnu.org>
4033         * window.c (check_frame_size): Fix minimum height calculation.
4035 2002-01-20  Ken Raeburn  <raeburn@gnu.org>
4037         * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
4038         height before comparison.
4039         (WINDOW_WANTS_HEADER_LINE_P): Likewise.
4041 2002-01-20  Jason Rumney  <jasonr@gnu.org>
4043         * w32term.c (w32_system_caret_width): Remove.
4044         (w32_use_visible_system_caret): New user flag.
4045         (syms_of_w32term): DEFVAR_BOOL it.  Initialize based on whether
4046         Windows reports a screen reader running.
4047         (x_update_window_begin): Hide the system caret.
4048         (x_update_window_end): Show the system caret.
4049         (x_display_and_set_cursor): Don't draw a cursor when
4050         w32_use_visible_system_caret is set.  Do not adjust width.
4052         * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
4053         (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
4054         <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
4055         the user requests it.  Use system default width when creating.
4056         <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
4058         * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
4059         New window messages.
4061 2002-01-20  Richard M. Stallman  <rms@gnu.org>
4063         * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
4065 2002-01-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4067         * doprnt.c (doprnt1): Fix typos in error call.
4069 2002-01-20  Eli Zaretskii  <eliz@is.elta.co.il>
4071         * unexelf.c (unexec) [__sgi]: Support the .got sections.
4073 2002-01-20  Jason Rumney  <jasonr@gnu.org>
4075         * w32term.c (w32_native_per_char_metric): Don't trust the metrics
4076         that Windows returns.  If a double check fails, try to guess how
4077         ExtTextOut is going to act.
4079         * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
4080         in place of stricmp.
4081         (w32_list_synthesized_fonts): Removed.
4082         (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
4083         (struct enumfont_t): New element; list.
4084         (enum_font_cb2): List all style and charset variations of a font.
4085         (Fw32_select_font): New optional argument; include_proportional.
4086         Exclude vertical fonts.  Exclude proportional fonts unless
4087         include_proportional is non-nil.
4088         (w32_enable_synthesized_fonts): Change to a boolean.
4089         (Fw32_send_sys_command): Doc fix.
4091 2002-01-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4093         * dispnew.c (update_frame): Move the variable `tem' to the block
4094         where it is used.
4096 2002-01-19  Jason Rumney  <jasonr@gnu.org>
4098         * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
4099         call to face-set-after-frame-default.
4101 2002-01-18  Richard M. Stallman  <rms@gnu.org>
4103         * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
4104         (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
4106 2002-01-17  Richard M. Stallman  <rms@gnu.org>
4108         * window.c (enlarge_window): When exceeding size of parent,
4109         directly delete all the siblings instead of trying to resize it.
4111 2002-01-17  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4113         * term.c (set_tty_color_mode): Remove unused variable `tem'.
4115 2002-01-16  Henrik Enberg  <henrik@enberg.org>
4117         * lread.c (init_lread): Move the installed-lisp dirs later in the path.
4119 2002-01-16  Kim F. Storm  <storm@cua.dk>
4121         * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
4122         is invisible.  This can happen if cursor is on top line of a
4123         window, and we switch to a buffer with a header line.
4125         * w32term.c (x_erase_phys_cursor): Ditto.
4127 2002-01-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4129         * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
4130         `dont_resize' only when used.
4132         * xdisp.c: Remove forgotten extern declaration of `Qimage'.
4134 2002-01-15  Eli Zaretskii  <eliz@is.elta.co.il>
4136         * xdisp.c (display_mode_element): When computing charpos, depend
4137         on multibyteness of elt, not the text in field.
4139 2002-01-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4141         * buffer.c (Fkill_all_local_variables):
4142         Increment `update_mode_lines' only once.
4144 2002-01-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4146         * lisp.h (adjust_after_replace_noundo)
4147         (Fupdate_coding_systems_internal): Add prototypes.
4149         * sound.c (Fplay_sound): Initialize header_size also for :data case.
4151 2002-01-14  Eli Zaretskii  <eliz@is.elta.co.il>
4153         Support for the --color command-line argument and tty-color-mode
4154         frame parameter:
4156         * term.c (tty_default_color_capabilities, tty_setup_colors)
4157         (set_tty_color_mode): New functions.
4158         (term_init): Call tty_default_color_capabilities.
4159         (Qtty_color_mode_alist): New variable.
4160         (syms_of_term): Intern and staticpro it.
4162         * frame.c (store_frame_param): Call set_tty_color_mode for termcap
4163         frames.
4164         (do_switch_frame): For termcap frames, switch the tty
4165         color mode as specified by the frame's parameters.
4166         (Qtty_color_mode): New variable.
4167         (syms_of_frame): Intern and staticpro it.
4169         * emacs.c (USAGE2): Add the --color option.
4170         (standard_args): Ditto.
4172 2002-01-13  Jan Djarv  <Jan.Djarv@mbox200.swipnet.se>
4174         * xterm.h (struct x_output): New members want_fullscreen,
4175         x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
4176         y_pixels_outer_diff.
4177         New enum for FULLSCREEN_* constants.
4178         (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
4179         is NULL.
4180         (x_fullscreen_adjust): Add prototype.
4182         * emacs.c (USAGE2): Add the new full-screen arguments.
4183         (standard_args): Ditto.
4185         * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
4186         New variables.
4187         (syms_of_xfns): Intern and staticpro them.
4188         (x_frame_parms) <"fullscreen">: New parameter.
4189         (x_fullscreen_move, x_set_fullscreen): New functions.
4190         (x_set_frame_parameters): Support for Qfullscreen.
4191         (x_real_positions): More accurate computation of the frame position.
4192         (x_figure_window_size): Support full-screen frames.
4193         (Fx_create_frame): Default the fullscreen parameter.
4195         * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
4196         (XTread_socket) <Expose>: Call x_check_fullscreen.
4197         <ConfigureNotify>: Don't resize to fullscreen.
4198         Call x_check_fullscreen_move, and set the want_fullscreen member of
4199         output_data.x.
4201 2002-01-13  Jason Rumney  <jasonr@gnu.org>
4203         * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
4204         for mice with more than 3 buttons.
4206         * w32term.c (parse_button): New parameter xbutton.  Callers changed.
4207         (w32_read_socket): Handle new "XBUTTON" messages.
4209         * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
4210         (syms_of_w32fns): DEFVAR_BOOL it.
4211         (w32_wnd_proc): Handle new "XBUTTON" messages.
4213 2002-01-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4215         * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
4217 2002-01-13  Andreas Schwab  <schwab@suse.de>
4219         * xterm.c (x_load_font): Never set fonts_changed_p to zero.
4221 2002-01-12  Andreas Schwab  <schwab@suse.de>
4223         * .gdbinit (xbuffer): Remove address operator since data is now a
4224         pointer.
4226 2002-01-11  Richard M. Stallman  <rms@gnu.org>
4228         * insdel.c (adjust_after_replace_noundo): New function.
4230         * coding.c (code_convert_region): Don't copy old text if undo disabled.
4232 2002-01-09  Jason Rumney  <jasonr@gnu.org>
4234         * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
4235         when checking for multiple frames.
4237 2002-01-08  Richard M. Stallman  <rms@gnu.org>
4239         * window.c (delete_window): Rewrite the code for changing the
4240         selected window to handle the case where WINDOW is not a leaf.
4242 2002-01-07  Eli Zaretskii  <eliz@is.elta.co.il>
4244         * process.c (send_process): Set src_multibyte to 1 after the call
4245         top setup_coding_system, not before the call.
4247 2002-01-07  Jason Rumney  <jasonr@gnu.org>
4249         * xmenu.c (set_frame_menubar, xmenu_show):
4250         (xdialog_show): Initialize wv->help to Qnil.
4252         * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
4253         (w32_dialog_show): Initialize wv->help to Qnil.
4255 2002-01-06  Jason Rumney  <jasonr@gnu.org>
4257         * xmenu.c (single_submenu): Initialize wv->help to Qnil.
4259         * w32menu.c (w32_menu_display_help): Revert last change.
4261         * xmenu.c (menu_highlight_callback): Revert last change.
4263 2002-01-06  Andreas Schwab  <schwab@suse.de>
4265         * insdel.c (make_gap_larger): Make sure buffer size does not
4266         overflow range of int.
4268 2002-01-05  Jason Rumney  <jasonr@gnu.org>
4270         * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
4271         OVERLAPS_P.
4273         * w32menu.c (w32_menu_display_help): Hide any tooltip window.
4275         * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
4276         to the left or to the right of the pointer, put it against
4277         the left screen edge.
4278         (x_frame_parms): Add missing braces around initializer.
4280         * w32term.c (x_setup_relief_colors): Don't compute an image's
4281         background color if it doesn't have a Pixmap.
4282         (notice_overwritten_cursor): Don't depend on
4283         output_cursor and updated_area.  Compare pixel coordinates with
4284         window's cursor pixel coordinates.
4285         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
4286         Call notice_overwritten_cursor with new arg list.
4287         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
4288         unconditionally.
4289         (x_draw_image_relief): Use predefined macro instead of
4290         constant when the value of `tool_bar_button_relief' is negative.
4292         * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
4294 2002-01-04  Richard M. Stallman  <rms@gnu.org>
4296         * xmenu.c (menu_highlight_callback): Hide any tooltip window.
4298 2002-01-03  Richard M. Stallman  <rms@gnu.org>
4300         * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
4301         (Fkey_binding): Try the `keymap' property map first.
4302         (Fdescribe_buffer_bindings): Show `keymap' property bindings before
4303         minor mode bindings.
4305 2002-01-03  Kim F. Storm  <storm@cua.dk>
4307         * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
4309 2002-01-02  Richard M. Stallman  <rms@gnu.org>
4311         * keyboard.c (read_key_sequence): Handle the keymap property
4312         before minor mode maps.
4314         * editfns.c (Fformat): Update thissize from field_width
4315         based on the actual width, in the string case.
4317 2002-01-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4319         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
4320         when used as truth value to prevent gcc warnings.
4322         * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
4323         * w32proc.c: Include <config.h>.
4325 2002-01-01  Andreas Schwab  <schwab@suse.de>
4327         * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
4328         not EMACS_INT, to make them compatible with DEFVAR_INT.
4329         * lisp.h (max_specpdl_size): Adjust declaration.
4331 2002-01-01  Richard M. Stallman  <rms@gnu.org>
4333         * print.c (print_object): Test print_escape_nonascii only for
4334         unibyte strings.
4335         (PRINTPREPARE): Once again bind Qprint_escape_nonascii
4336         when outputting to a multibyte buffer.
4338 2001-12-29  Richard M. Stallman  <rms@gnu.org>
4340         * print.c (print_object): In multibyte string, use hex escapes.
4341         Use octal only for unibyte strings.
4342         (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
4344         * lread.c (read_escape): New arg BYTEREP for reporting whether
4345         escape forces unibyte or multibyte.
4346         (read1): When reading a string, take note of that info.
4348 2001-12-29  Ken Raeburn  <raeburn@gnu.org>
4350         * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
4351         comparison to test lisp value returned by Fget.
4353 2001-12-29  Richard M. Stallman  <rms@gnu.org>
4355         * lisp.h (max_specpdl_size): Add declaration.
4357         * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
4359         * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
4360         Handle modifier bits.  Correct typo in error message.
4362 2001-12-28  Richard M. Stallman  <rms@gnu.org>
4364         * abbrev.c: Use the plist of an abbrev for multiple params if nec.
4365         (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
4366         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
4367         Update calls to Fdefine_abbrev.
4368         (write_abbrev): Update for changed data format.
4369         Don't list "system" abbrevs.
4370         (Fexpand_abbrev): Update use count with new data format.
4371         (describe_abbrev): Update for changed data format.
4372         (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
4374         * config.in (HAVE_MBSINIT): Add #undef.
4376         * strftime.c (mbsinit): Define as no-op if not available.
4378         * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
4379         (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
4381         * keymap.c (Flookup_key): Error message if key has wrong data type.
4382         (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
4383         (exclude_key): New variable.
4385 2001-12-28  Gerd Moellmann  <gerd@gnu.org>
4387         * xterm.c (x_setup_relief_colors): Don't compute an image's
4388         background color if it doesn't have a Pixmap.
4390         * xterm.c (notice_overwritten_cursor): Don't depend on
4391         output_cursor and updated_area.  Compare pixel coordinates with
4392         window's cursor pixel coordinates.
4393         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
4394         Call notice_overwritten_cursor with new arg list.
4395         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
4396         unconditionally.
4398         * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
4399         height of the cursor line to the amount to scroll.
4401 2001-12-27  Richard M. Stallman  <rms@gnu.org>
4403         * intervals.c (set_point_both): The position after an invisible,
4404         intangible character is not an acceptable stopping point.
4406 2001-12-27  Ken Raeburn  <raeburn@gnu.org>
4408         * window.c (enlarge_window): In new preserve_before code, convert
4409         CURBEG from lisp object to integer before doing arithmetic.
4411 2001-12-27  Richard M. Stallman  <rms@gnu.org>
4413         * bytecode.c (Fbyte_code): Undo previous change.
4415 2001-12-26  Kim F. Storm  <storm@cua.dk>
4417         * keyboard.c (record_char): Ignore duplicate help-echo events only
4418         separated by mouse-movement.  When tracking mouse, only record
4419         first and last mouse-movement event in same window.
4420         Don't record mouse-movement events in keyboard macros.
4422 2001-12-25  Richard M. Stallman  <rms@gnu.org>
4424         * window.c (enlarge_window): New arg PRESERVE_BEFORE.  Callers changed.
4425         (Fenlarge_window): New arg PRESERVE_BEFORE.
4427         * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
4428         instead of Fstring_as_unibyte.
4430 2001-12-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4432         The following changes remove mocklisp support:
4434         * mocklisp.h, mocklisp.c: Files removed.
4436         * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
4437         `Qmocklisp' and `Qmocklisp_arguments'.
4438         Remove prototype of syms_of_mocklisp.
4440         * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
4442         * callint.c: Do not include mocklisp.h.
4443         (Fcall_interactively): Do not test for mocklisp case.
4445         * eval.c: Remove variables `Qmocklisp_arguments',
4446         `Vmocklisp_arguments' and `Qmocklisp'.  Remove prototype of ml_apply.
4447         (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
4448         Do not test for mocklisp case.
4449         (Fwhile): Remove unused variable `tem'.
4450         (syms_of_eval): Remove variable `moclisp-arguments'.
4452         * data.c (wrong_type_argument): Remove mocklisp case.
4454         * doc.c (Fdocumentation): Remove mocklisp case.
4456         * emacs.c (main): Do not call syms_of_mocklisp.
4458 2001-12-21  Richard M. Stallman  <rms@gnu.org>
4460         * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
4461         to the left or to the right of the pointer, put it against
4462         the left screen edge.
4464 2001-12-21  Eli Zaretskii  <eliz@is.elta.co.il>
4466         * Makefile.in (distclean): Remove .gdbinit if we are building
4467         outside the source tree.
4469 2001-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
4471         * w32.c (emacs_root_dir): New function.
4473         * msdos.c (emacs_root_dir): New function.
4475         * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
4476         of the current drive as the fallback for default_directory.
4478         * dired.c (file_name_completion): Run the elements of
4479         completion-ignored-extensions through ENCODE_FILE.
4481         * lisp.h (scmp): Remove prototype, since it's now a static
4482         function private to dired.c.
4484 2001-12-18  Richard M. Stallman  <rms@gnu.org>
4486         * dired.c (scmp): Function moved from minibuf.c.
4487         Delete multibyte handling--used only on encoded strings.
4489         * minibuf.c (scmp): Function moved to dired.c.
4491         * fns.c (merge): Add QUIT call.
4493 2001-12-18  Dave Love  <fx@gnu.org>
4495         * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
4496         language/georgian.el.
4498 2001-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
4500         * Makefile.in (lisp, shortlisp): Synchronize with changes to
4501         lisp/Makefile.in:DONTCOMPILE.
4503 2001-12-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4505         * xdisp.c (window_box_height): Do not return negative values.
4506         From Gerd Moellmann <gerd@gnu.org>.
4508         * keyboard.c (head_table): Add missing braces around initializer.
4510         * term.c (keys): Likewise.
4512         * xfns.c (x_frame_parms, visual_classes): Likewise.
4514 2001-12-17  Sam Steingold  <sds@gnu.org>
4516         * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
4517         patch (COMPOSING_P, not COMPOSING).
4519 2001-12-17  Richard M. Stallman  <rms@gnu.org>
4521         * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
4523         * coding.c (code_convert_region): Update coding->cmp_data->char_offset
4524         before calling decode_coding.
4526         * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
4528         * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
4529         instead of only for COMPOSITION_DISABLED.
4531 2001-12-16  Richard M. Stallman  <rms@gnu.org>
4533         * alloc.c (pure_alloc): After overflow, allocate just a small block.
4535         * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
4537         * buffer.h (struct buffer): New field `display_error_modiff'.
4538         * buffer.c (reset_buffer): Initialize `display_error_modiff'.
4540         * window.c (Frecenter): Clear display_error_modiff field.
4542         * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
4543         Call redisplay_window, but not if display_error_modiff field says no.
4544         (redisplay_window_error): New function.
4545         (displayed_buffer): New variable.
4546         (redisplay_internal, redisplay_windows): Call the new functions
4547         instead of redisplay_window directly.
4549 2001-12-15  Richard M. Stallman  <rms@gnu.org>
4551         * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
4553 2001-12-14  Andrew Innes  <andrewi@gnu.org>
4555         * makefile.w32-in (EMACSLOADPATH): Define.
4556         ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
4557         (bootstrap-temacs): Remove dependency on bootstrap-clean.
4559 2001-12-13  Eli Zaretskii  <eliz@is.elta.co.il>
4561         * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4562         parameter have a numeric value all the time.
4564         * w32fns.c (x_report_frame_params): Likewise.
4566 2001-12-12  Richard M. Stallman  <rms@gnu.org>
4568         * fileio.c (Fwrite_region): Doc fix.
4570         * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
4571         (redisplay_internal): Call clear_image_cache only for window terminals.
4573 2001-12-12  Gerd Moellmann  <gerd@gnu.org>
4575         * xdisp.c (move_it_vertically_backward): Change heuristic
4576         for the case that we didn't move far enough initially.
4578         * window.c (Frecenter): Simplify computation in the case of window
4579         system frames and ARG < 0; use window_box_height.
4581 2001-12-11  Richard M. Stallman  <rms@gnu.org>
4583         * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
4584         * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
4586 2001-12-11  Andrew Innes  <andrewi@gnu.org>
4588         * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
4589         arg is negative.
4591 2001-12-11  Richard M. Stallman  <rms@gnu.org>
4593         * m/hp800.h: Split the __hpux conditional into the parts
4594         that are right for GNU/Linux too and the parts that are not.
4595         Use the former if GNU_LINUX.
4596         (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
4598         * s/gnu-linux.h (GNU_LINUX): Defined.
4600 2001-12-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4602         * macros.c, msdos.c, w16select.c: Change doc-string comments to
4603         `new style' [w/`doc:' keyword].
4605 2001-12-10  Jason Rumney  <jasonr@gnu.org>
4607         * w32menu.c (w32_free_submenu_strings): Clear menu item struct
4608         before using.
4610 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4612         * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
4613         keyword].
4615 2001-12-09  Eli Zaretskii  <eliz@is.elta.co.il>
4617         * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
4619         * s/hpux10.h (srand48): Don't undefine.
4621 2001-12-09  Jason Rumney  <jasonr@gnu.org>
4623         * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
4624         Add     comment to explain where the struct came from.
4625         (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
4626         (add_menu_item): Process pop-up menus first to avoid memory leak.
4627         (add_menu_item, w32_menu_display_help): Use `help' field as
4628         Lisp_Object.
4629         (w32_free_submenu_strings): Only free owner-drawn strings.
4631 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4633         * COPYING: Moved back.
4635         * charset.c (char_to_string_1, translate_char, Fdefine_charset):
4636         Add parentheses around && within ||.
4638         * indent.c (compute_motion): Likewise.
4640         * intervals.c (merge_properties_sticky): Likewise.
4642         * coding.c (setup_coding_system, shrink_encoding_region)
4643         (Fdecode_sjis_char): Likewise.
4645 2001-12-07  Andreas Schwab  <schwab@suse.de>
4647         * xdisp.c (display_mode_element): Don't read past end of string if
4648         it ends with '%'.
4650         * alloc.c (inhibit_garbage_collection): Don't exceed value an int
4651         can hold.
4653         * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
4654         from most_positive_fixnum and most_negative_fixnum, resp., and
4655         type changed to Lisp_Object.
4656         (syms_of_data): DEFVAR_LISP them.
4658 2001-12-07  Richard M. Stallman  <rms@gnu.org>
4660         * callproc.c (init_callproc): Set Vdata_directory based on the source
4661         location whenever Emacs was run uninstalled.
4663 2001-12-06  Paul Eggert  <eggert@twinsun.com>
4665         * config.in (HAVE_WORKING_VFORK): New #undefs.
4666         * process.c (create_process):
4667         Use HAVE_WORKING_VFORK, not HAVE_VFORK.
4668         * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
4669         * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
4670         * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
4671         * m/intel386.h (HAVE_VFORK): Likewise.
4672         * m/mips-siemens.h (HAVE_VFORK): Likewise.
4673         * m/mips.h (HAVE_VFORK): Likewise.
4674         * s/freebsd.h (vfork): Remove #define.
4675         * s/lynxos.h (HAVE_VFORK): Remove #undef.
4676         * s/usg5-4-2.h: Fix comment about vfork.
4678 2001-12-06  Richard M. Stallman  <rms@gnu.org>
4680         * s/hpux10.h (random): Add undef.
4681         (HAVE_RANDOM): Define it just once.
4683 2001-12-06  Stefan Monnier  <monnier@cs.yale.edu>
4685         * eval.c: Undo last change: the standard syntax is not wanted.
4687 2001-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
4689         * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
4690         scroll bars of the frame before deleting the frame itself.  If the
4691         frame has a widget, delete the frame with XtDestroyWidget, and do
4692         not call XDestroyWindow before that.
4694 2001-12-06  Kim F. Storm  <storm@cua.dk>
4696         * xfns.c (x_report_frame_params): Return actual fringe widths.
4698         * w32fns.c (x_report_frame_params): Return actual fringe widths.
4700 2001-12-05  Andrew Innes  <andrewi@gnu.org>
4702         * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
4703         excessively large.
4705         * insdel.c (make_gap_larger): New function.
4706         (make_gap_smaller): New function.
4707         (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
4708         make_gap_smaller if arg is negative.
4710 2001-12-04  Stefan Monnier  <monnier@cs.yale.edu>
4712         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
4713         Pass a dummy argument when calling interrupt_signal.
4714         (parse_menu_item): Mark disabled items before checking for empty def.
4715         (read_char_minibuf_menu_prompt): Make safety more visible.
4716         (read_key_sequence): Add a `first_unbound' variable.
4717         Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
4718         unbound prefix as soon as we can detect it.
4720         * doc.c (Fsnarf_documentation): Add prototype.
4721         (get_doc_string): Handle negative arguments.
4722         (Fdocumentation): Use AREF and ASIZE.
4723         Move the calls to get_doc_string to a single place.
4724         Don't confuse an interactive-spec for a docstring reference.
4725         (Fdocumentation_property): Take advantage of the fact that
4726         get_doc_string now ignores the sign of the docstring position.
4728         * eval.c: Use standard syntax for usage in docstrings.
4730 2001-12-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4732         * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
4734 2001-12-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4736         * xterm.c (x_draw_image_relief): Use predefined macro instead of
4737         constant when the value of `tool_bar_button_relief' is negative.
4739 2001-12-02  Richard M. Stallman  <rms@gnu.org>
4741         * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
4742         (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
4744         * fileio.c (read_non_regular): Delete Fsignal call.
4746 2001-12-01  Stefan Monnier  <monnier@cs.yale.edu>
4748         * lisp.h (run_hook_list_with_args): Undo last change.
4750 2001-12-01  Gerd Moellmann  <gerd@gnu.org>
4752         * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
4754 2001-12-01  Jason Rumney  <jasonr@gnu.org>
4756         * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
4758         * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
4759         [!WM_MOUSELEAVE]: Define.
4761         * w32menu.c (current_popup_menu, get_menu_item_info):
4762         (set_menu_item_info): New vars.
4763         (set_frame_menubar): Doc fix clarifying GC interaction with menus.
4764         (w32_menu_show): Set current_popup_menu.
4765         (add_menu_item): Allocate new strings for owner-drawn menu items
4766         and help strings.
4767         Use owner-draw for disabled menu items again.
4768         (w32_menu_display_help): Ignore owner-drawn items and popup menus.
4769         (w32_free_submenu_strings, w32_free_menu_strings): New functions.
4771         * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
4772         (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
4773         <WM_EXITMENULOOP>: Free menu strings.
4774         <WM_MOUSELEAVE>: Stop tracking mouse.
4775         (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
4777         * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
4778         and mouse face.
4780 2001-12-01  Kim F. Storm  <storm@cua.dk>
4782         The following changes add left-fringe and right-fringe
4783         frame parameters to adjust fringe widths, or remove one or
4784         both fringes.
4786         * frame.h (struct frame): Remove trunc_area_pixel_width and
4787         trunc_area_cols fields.
4788         (Qleft_fringe, Qright_fringe): Declare.
4789         (FRAME_RIGHT_FRINGE_WIDTH): New macro.
4791         * frame.c (Qleft_fringe, Qright_fringe): New vars.
4792         (syms_of_frame): Initialize them.
4794         * window.c (coordinates_in_window): Handle separate left and right
4795         fringe widths.
4797         * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
4798         and fringe_cols fields.
4799         (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
4800         (FRAME_X_FRINGE_COLS): Use fringe_cols field.
4801         (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
4802         (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
4803         (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
4804         (x_compute_fringe_widths): Add prototype.
4806         * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
4807         fill fringe evenly with small dashes.
4808         (x_draw_fringe_bitmap): Clear background if necessary. Align and
4809         clip the new ZV bitmap to avoid jitter between rows.
4810         (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
4811         background.  Don't draw fringe bitmaps if fringe width is zero.
4812         (x_compute_fringe_widths): New function.
4813         (x_new_font, x_set_window_size_1): Use it.
4815         * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
4816         (x_set_frame_parameters): Process `font' parameter before other
4817         parameters as fringe widths depend on it.
4818         (x_set_fringe_width): New function.
4819         (x_figure_window_size): Use x_compute_fringe_widths.
4820         (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
4821         parameters.
4823         * widget.c (set_frame_size): Use x_compute_fringe_widths.
4824         (EmacsFrameSetCharSize): Ditto.
4826         * w32term.h: Merged changes from xterm.h.
4827         * w32term.c: Merged changes from xterm.c.
4828         * w32fns.c: Merged changes from xfns.c.
4830 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4832         * COPYING: Removed.
4834 2001-11-29  Dave Love  <fx@gnu.org>
4836         * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
4837         extra extra slot.
4838         (detect_coding_mask): Fix call of detect_coding_iso2022.
4840 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4842         * fileio.c (file-name-coding-system)
4843         (default-file-name-coding-system): Doc fix (links to referenced
4844         variables added).
4846 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
4848         * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
4849         Add dummy uses of gcproN variables.
4851         * category.c (describe_category, describe_category_1)
4852         (Fdescribe_categories): Remove.  (Moved to lisp/help-fns.el.)
4853         (syms_of_category): Don't defsubr Sdescribe_categories.
4855 2001-11-28  Richard M. Stallman  <rms@gnu.org>
4857         * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
4859         * Makefile.in (lispdir): New variable, referring to build dir.
4860         (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
4862 2001-11-28  Andrew Innes  <andrewi@gnu.org>
4864         * w32menu.c (w32_menu_display_help): Actually add the new argument
4865         OWNER.
4867 2001-11-28  Jason Rumney  <jasonr@gnu.org>
4869         * w32menu.c (add_menu_item): Do not use owner-draw for disabled
4870         menu items.  From David Ponce <dponce@wanadoo.fr>.
4871         (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
4872         conditionally.
4873         (w32_menu_display_help): New argument OWNER. Rewritten to store a
4874         help event in the owner frame's keyboard buffer.
4876         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
4877         (Fx_show_tip): Don't subtract last width from row width.
4879         * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
4880         (w32_read_socket): Use EQ to compare frames.
4882 2001-11-28  Gerd Moellmann  <gerd@gnu.org>
4884         * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
4885         OVERLAPS_P.
4887 2001-11-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4889         * xdisp.c (message_dolog): Remove unused variables `gcpro2',
4890         `gcpro3' and `gcpro4'.
4892         * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
4894 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
4896         * ccl.c: Use AREF and ASIZE.
4898 2001-11-27  Stefan Monnier  <monnier@cs.yale.edu>
4900         * lisp.h (run_hook_list_with_args): Remove.
4901         (LIST_END_P): Fix call to wrong_type_argument.
4902         (make_fixnum_or_float): Use EMACS_INT rather than int.
4904 2001-11-26  Stefan Monnier  <monnier@cs.yale.edu>
4906         * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
4907         (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
4909         * eval.c: Use AREF and ASIZE.
4910         (Ffetch_bytecode): Add the file name to the error message.
4912         * fileio.c (Ffind_file_name_handler): Give precedence to handlers
4913         which match the end of the file-name.
4914         (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
4915         is not a valid env var, but leave it as is instead.
4917         * keymap.c (access_keymap): Handle t bindings like nil bindings.
4918         Make nil bindings in char-tables transparent.
4919         (store_in_keymap): Turn a nil binding into a t binding for char-tables.
4921 2001-11-26  Richard M. Stallman  <rms@gnu.org>
4923         * textprop.c (set_text_properties_1): Allow START, END in either order.
4924         Do nothing if range is empty.
4926         * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
4928         * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
4929         (clean): Not here.
4931 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
4933         * textprop.c (set_text_properties_1): Clearly mark that the
4934         interval should not be empty.
4936         * intervals.c (graft_intervals_into_buffer):
4937         Don't call set_text_properties_1 on an empty interval.
4939 2001-11-25  Richard M. Stallman  <rms@gnu.org>
4941         * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
4943         * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
4944         don't lose the data in it.
4946 2001-11-25  Juanma Barranquero  <lektu@terra.es>
4948         * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
4950         * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
4952         * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
4954 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
4956         * xfaces.c (merge_face_heights): Coerce back to int explicitly.
4958 2001-11-25  Eli Zaretskii  <eliz@is.elta.co.il>
4960         * window.c (Fset_window_vscroll): Doc fix.  From Kalle Olavi
4961         Niemitalo <kon@iki.fi>.
4963 2001-11-25  Jason Rumney  <jasonr@gnu.org>
4965         * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
4967         * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
4968         (Fx_show_tip): Block input during frame creation.
4969         (Fx_show_tip, Fx_hide_tip): Enable.
4971 2001-11-24  Richard M. Stallman  <rms@gnu.org>
4973         * lread.c (Fload): Detect recursive load error for more than 3
4974         nestings of the same file.
4975         (Vrecursive_load_depth_limit): Variable deleted.
4976         (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
4978 2001-11-24  Jason Rumney  <jasonr@gnu.org>
4980         * xfns.c (compute_tip_xy): Initialize root_x and root_y from
4981         mouse position if either left or top is not specified.
4983         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
4984         <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
4985         (my_create_tip_window, Fx_show_tip): Adjust size for external border.
4986         (my_create_tip_window): Assign tip_window.
4987         (x_create_tip_frame): Use same defaults as X.
4988         (compute_tip_xy): Remove unused variable.  Use full screen width.
4989         (Fx_show_tip): Do not double height. Call ShowWindow directly.
4991         * w32term.c (x_after_update_window_line): Doc fix.
4992         (w32_read_socket): Doc fix.  Avoid SET_FRAME_GARBAGED for tip
4993         frames.
4994         <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
4996         * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
4997         for all Windowed systems.
4999 2001-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
5001         * msdos.c (IT_clear_screen): If the frame's faces are not yet
5002         realized, use the initial screen colors to clear the screen.
5004 2001-11-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5006         * textprop.c (Fset_text_properties): Remove unused variables
5007         `unchanged', `prev_changed', `s' and `len'.
5009         * search.c (Freplace_match): Remove unused variable `inslen'.
5011         * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
5013 2001-11-22  Jason Rumney  <jasonr@gnu.org>
5015         * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
5016         (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
5017         (my_create_tip_window): New function.
5018         (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
5019         (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
5021 2001-11-20  Jason Rumney  <jasonr@gnu.org>
5023         * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
5024         (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
5026         * w32fns.c (Vw32_system_coding_system): Remove.
5027         (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
5029 2001-11-19  Stefan Monnier  <monnier@cs.yale.edu>
5031         * fileio.c (Fwrite_region): Move choose_write_coding_system to
5032         after build_annotations.
5034         * syntax.c (describe_syntax): Add dummy arg.
5035         (describe_syntax_1): Update call to describe_vector.
5037         * category.c (describe_category): Add dummy arg.
5038         (describe_category_1): Update call to describe_vector.
5040         * keymap.c (Fdescribe_vector): Add `describer' parameter.
5041         (describe_command, describe_translation): Add dummy second param.
5042         (describe_map): Call elt_describer with two arguments.
5043         (describe_vector_princ): Add `fun' parameter.
5044         Call it instead of the hardcoded `princ'.
5045         (describe_vector): Add arg `args'.
5046         Pass it as a new second argument to elt_describer.
5048         * keymap.h (describe_vector): Update prototype.
5050         * frame.c: Don't include keymap.h any more.
5051         (keys_of_frame): Remove.
5053         * lisp.h (keys_of_frame): Remove declaration.
5055         * emacs.c (main): Don't call `keys_of_frame' any more.
5057 2001-11-14  Andreas Schwab  <schwab@suse.de>
5059         * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
5060         if defined, 0 otherwise.
5061         (MAP_FAILED): Define if not defined and use it to test mmap failure.
5062         (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
5064 2001-11-19  Richard M. Stallman  <rms@gnu.org>
5066         * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
5068 2001-11-18  Jason Rumney  <jasonr@gnu.org>
5070         * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
5071         (x_draw_bar_cursor): If the background color of the glyph under
5072         the cursor equals the frame's cursor color, use the glyph's
5073         foreground color for drawing the bar cursor.
5074         (x_after_update_window_line): Clear internal border in different
5075         circumstances.
5076         (w32_set_vertical_scroll_bar): Check for width and height > 0.
5077         (w32_draw_relief_rect): Correct relief by 1 pixel.
5078         (x_set_glyph_string_background_width):
5079         Set extends_to_end_of_line_p if the row's fill_line_p is set and
5080         drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
5081         (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
5082         if cursor_in_non_selected_windows is false.
5083         (show_mouse_face): Clean up.  Recognize overwritten cursor differently.
5084         (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
5085         Notice if cursor gets overwritten.
5086         (notice_overwritten_cursor): Renamed from
5087         note_overwritten_text_cursor.  Rewritten to take glyph widths
5088         into account, and to take X positions as parameters.
5089         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
5090         around call to x_draw_glyphs.
5091         (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
5092         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
5093         color to use for image glyph reliefs.
5094         (x_draw_image_relief): Accept zero tool_bar_button_relief.
5095         (glyph_rect): Remove unused variable `area'.
5097         * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
5098         some items.
5099         (x_set_internal_border_width): Set frame garbaged when window
5100         doesn't exist yet.
5101         (Fx_create_frame): Accept zero tool_bar_button_relief.
5102         (x_clear_image_1, four_corners_best, image_background)
5103         (image_background_transparent): New functions.
5104         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
5105         (gs_format): Add `:background' entry.
5106         (lookup_image): Set IMG's background color if specified.
5107         (pbm_load, xbm_load_image, png_load): Set IMG's background field
5108         when appropriate.
5109         (x_clear_image_1): Reset `background_valid' and
5110         `background_transparent_valid' fields.
5111         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
5112         calculating it here.  Set IMG's background_transparent field.
5113         (enum xpm_keyword_index): Add XPM_BACKGROUND.
5114         (enum png_keyword_index): Add PNG_BACKGROUND.
5115         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
5116         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
5117         (enum gif_keyword_index): Add GIF_BACKGROUND.
5118         (enum gs_keyword_index): Add GS_BACKGROUND.
5119         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
5120         Pre-calculate image background color where necessary.
5121         (x_create_x_image_and_pixmap, xbm_load, gs_load):
5122         Use display info's n_cbits entry for screen depth.
5123         (Fx_show_tip): Remove unused variables `buffer', `top',
5124         `left', `max_width' and `max_height'.
5126         * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
5128 2001-11-18  Gerd Moellmann  <gerd@gnu.org>
5130         * puresize.h (BASE_PURESIZE): Increase to 750000.
5132 2001-11-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5134         * frame.c (Fframe_live_p): Doc fix.
5136 2001-11-18  Richard M. Stallman  <rms@gnu.org>
5138         * xdisp.c (message_dolog_marker1, message_dolog_marker2)
5139         (message_dolog_marker3): New static variables hold three markers.
5140         (syms_of_xdisp): Initialize and staticpro them.
5141         (message_dolog): Use message_dolog_marker1..3 instead of
5142         allocating markers each time.  Unchain them when done.
5144 2001-11-17  Richard M. Stallman  <rms@gnu.org>
5146         * doc.c (Fsnarf_documentation): Doc fix.
5148 2001-11-17  Andreas Schwab  <schwab@suse.de>
5150         * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
5152 2001-11-17  Richard M. Stallman  <rms@gnu.org>
5154         * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
5156 2001-11-17  Jason Rumney  <jasonr@gnu.org>
5158         * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
5160 2001-11-17  Gerd Moellmann  <gerd@gnu.org>
5162         * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
5163         with invalid position.
5165 2001-11-16  Richard M. Stallman  <rms@gnu.org>
5167         * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
5169         * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
5170         * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
5171         * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
5173         * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
5175 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
5177         * fileio.c (build_annotations): Split off the tail.
5178         (build_annotations_2): New fun.  Extracted from build_annotations.
5179         (Fwrite_region): Split the call to build_annotations into two
5180         calls to build_annotations and build_annotations_2.
5182 2001-11-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5184         * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
5185         clear_waiting_for_input with argument.
5187         * xterm.h (x_update_cursor): Remove duplicated prototype.
5189         * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
5191         * xterm.c (waiting_for_input): Remove unnecessary declaration.
5193         * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
5195 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
5197         * fileio.c (choose_write_coding_system): New fun, extracted
5198         from Fwrite_region.
5199         (Fwrite_region): Use it.
5201         * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
5202         (funcall_lambda, run_hook_with_args): Make static and add prototype.
5203         (ml_apply, find_handler_clause): Add prototype.
5205 2001-11-16  Eli Zaretskii  <eliz@gnu.org>
5207         * config.in: Add #undef HAVE_COFF_H.
5209         * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
5210         Required for ISC 4.1.
5212 2001-11-16  Eli Zaretskii  <eliz@is.elta.co.il>
5214         * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
5215         Andrew Wiseman <a.wiseman@btclick.com>.
5217 2001-11-16  Kim F. Storm  <storm@cua.dk>
5219         The following changes are made to clean up the various internal
5220         references to the fringes to actually use the term `fringe' for
5221         them.  Previously, they were called `flags areas', `bitmap areas',
5222         `left/right side of windows', or implicitly as `flags' or
5223         `bitmaps':
5225         * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
5226         Comments fixed. Use renamed symbols.
5228         * dispnew.c: Comment fix. Use renamed symbols.
5230         * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
5231         (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
5232         (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
5234         * msdos.c: Comment fix.
5236         * w32fns.c: Use renamed symbols.
5238         * w32term.c: Comment fixes. Use renamed symbols.
5239         (fringe_bitmap_type): Renamed from bitmap_type.
5240         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
5241         (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
5242         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
5244         * w32term.h: Comment fixes. Use renamed symbols.
5245         (fringes_extra): Renamed from flags_areas_extra.
5246         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
5247         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
5248         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
5249         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
5250         (FRAME_X_LEFT_FRINGE_WIDTH):
5251         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
5252         (FRAME_X_RIGHT_FRINGE_WIDTH):
5253         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
5255         * widget.c: Use renamed symbols.
5257         * window.c: Comment fixes. Use renamed symbols.
5258         (coordinates-in-window-p): Doc fix.
5260         * xdisp.c: Comment fixes. Use renamed symbols.
5262         * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
5264         * xfns.c: Use renamed symbols.
5266         * xterm.c: Comment fixes. Use renamed symbols.
5267         (fringe_bitmap_type): Renamed from bitmap_type.
5268         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
5269         (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
5270         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
5272         * xterm.h: Comment fixes. Use renamed symbols.
5273         (fringes_extra): Renamed from flags_areas_extra.
5274         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
5275         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
5276         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
5277         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
5278         (FRAME_X_LEFT_FRINGE_WIDTH):
5279         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
5280         (FRAME_X_RIGHT_FRINGE_WIDTH):
5281         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
5283 2001-11-15  Jason Rumney  <jasonr@gnu.org>
5285         * w32menu.c (add-menu-item): Make help_echo and radio buttons
5286         work for most menu items.  From David Ponce
5287         <david.ponce@wanadoo.fr>.
5289 2001-11-15  Gerd Moellmann  <gerd@gnu.org>
5291         * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
5292         Some x_set_* function expect to be called even if old and new
5293         value are equal.
5295         * xdisp.c (build_desired_tool_bar_string): Accept zero
5296         tool_bar_button_relief.
5298         * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
5300         * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
5302         * xterm.c (x_draw_bar_cursor): If the background color of the
5303         glyph under the cursor equals the frame's cursor color, use
5304         the glyph's foreground color for drawing the bar cursor.
5306         * dispnew.c (direct_output_forward_char): Fix character/byte
5307         position comparison.
5309 2001-11-15  Miles Bader  <miles@gnu.org>
5311         * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
5312         (Fdelete_field, Ffield_string, Ffield_string_no_properties):
5313         Update arguments to find_field.
5314         (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
5315         (Fconstrain_to_field): Use LIMIT arg to shorten search time.
5316         * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
5317         * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
5319 2001-11-14  Richard M. Stallman  <rms@gnu.org>
5321         * editfns.c (Fpropertize): Allow call with 1 arg.
5323         * dispextern.h (image_background, image_background_transparent):
5324         Conditionalize on HAVE_X_WINDOWS.
5326 2001-11-13  Richard M. Stallman  <rms@gnu.org>
5328         * print.c (Fprin1_to_string): Doc fix.
5330         * sunfns.c (Fsun_change_cursor_icon): Doc fix.
5332         * floatfns.c (Fceiling, Ffloor): Doc fixes.
5334         * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
5336         * fileio.c (Ffile_accessible_directory_p): Doc fix.
5338         * eval.c (syms_of_eval): Doc fix.
5340         * coding.c (syms_of_coding): Doc fix.
5342         * doc.c (Fsnarf_documentation): Doc fix.
5344         * dispnew.c (syms_of_display): Doc fix.
5346         * category.c (Fget_unused_category): Doc fix.
5348         * buffer.c (syms_of_buffer): Doc fixes.
5350 2001-11-14  Eli Zaretskii  <eliz@is.elta.co.il>
5352         * print.c (prin1, print): Doc fix.
5354 2001-11-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5356         * fontset.h: Remove declarations of variables
5357         `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
5359         * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
5360         `Vclip_large_size_font'.
5362 2001-11-13  Jason Rumney  <jasonr@gnu.org>
5364         * w32fns.c: Doc fix.
5366 2001-11-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5368         * xfaces.c (Fface_attributes_as_vector): Doc fix.
5370         * fns.c: Doc fix.
5372         * emacs.c: Doc fix.
5374         * coding.c: Doc fix.
5376         * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
5377         * fontset.c, insdel.c, keymap.c: Change doc-string comments to
5378         `new style' [w/`doc:' keyword].
5380 2001-11-12  Richard M. Stallman  <rms@gnu.org>
5382         * xterm.c (XTread_socket): Don't update focus for EnterNotify or
5383         LeaveNotify events.  Only FocusIn and FocusOut do that now.
5384         (x_display_and_set_cursor): Do display hollow cursors in active
5385         minibuffer windows when they are not selected.
5387 2001-11-12  Jason Rumney  <jasonr@gnu.org>
5389         * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
5390         * w32term.c: Change doc-string comments to `new style'.
5391         [w/`doc:' keyword]. Doc fixes.
5393         * w32fns.c: Don't define max.
5394         (Fx_open_connection): Only execute once.
5396 2001-11-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5398         * ccl.c: Change macros to use do-while block instead of if-else.
5399         Use braces to follow GNU Coding Standards.
5401 2001-11-11  Richard M. Stallman  <rms@gnu.org>
5403         * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
5405         * lread.c (read_escape): Use end_of_file_error for reporting eof.
5407         * insdel.c (replace_range): Use adjust_markers_for_replace
5408         instead of adjust_markers_for_delete and adjust_markers_for_insert.
5410         * intervals.h: Declare set_text_properties and set_text_properties_1.
5412         * textprop.c (set_text_properties_1): New subroutine
5413         broken out of set_text_properties.
5414         (set_text_properties): Use set_text_properties_1.
5416         * intervals.c (graft_intervals_into_buffer):
5417         Use set_text_properties_1 to clear out properties.
5419         * search.c (Freplace_match): Use replace_range to insert
5420         and delete.  Don't request property inheritance from
5421         surrounding text.
5423 2001-11-10  Jason Rumney  <jasonr@gnu.org>
5425         * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
5426         vertical fonts. Allow them if face name is explicitly specified.
5427         Do not give up if we find a font that cannot be converted to an xlfd.
5429 2001-11-10  Gerd Moellmann  <gerd@gnu.org>
5431         * unexelf.c (unexec): Use mmap/munmap to allocate buffers
5432         instead of malloc/free.
5434 2001-11-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5436         * xfaces.c (merge_face_vectors): Use braces to follow GNU
5437         Coding Standards.
5438         (Finternal_set_lisp_face_attribute): Likewise.
5440         * buffer.c (Fbury_buffer): Likewise.
5442         * indent.c (current_column_1): Remove unused variable `prev_col'.
5444         * coding.c (encode_coding): Use precomputed value of `src'.
5445         (encode_coding): Remove unused variable `src_end'.
5446         (code_convert_region): Remove unused variables `count'.
5448 2001-11-07  Jason Rumney  <jasonr@gnu.org>
5450         * w32term.c (x_display_and_set_cursor): Do not move system caret
5451         if cursor_glyph is NULL.
5453 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5455         * keymap.c (access_keymap): Fix compilation error.
5457 2001-11-07  Miles Bader  <miles@gnu.org>
5459         * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
5461 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5463         * intervals.c (graft_intervals_into_buffer):
5464         Remove #ifdef'd-out code.
5465         (graft_intervals_into_buffer): Remove unused variable `middle'.
5467         * lread.c (Feval_region): Remove obsolete #ifdef'd-out
5468         code (eval-current-buffer).
5469         Change doc-string comments to `new style' [w/`doc:' keyword].
5471 2001-11-06  Richard M. Stallman  <rms@gnu.org>
5473         * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
5475 2001-11-06  Stefan Monnier  <monnier@cs.yale.edu>
5477         * lread.c (read1): Fix behavior with nested backquoting.
5479         * keyboard.c (make_lispy_event): Check integerness and fix
5480         Lisp_Object/int mixup.
5482 2001-11-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5484         * fns.c (copy_hash_table): Remove unused variable `v'.
5486         * fontset.c (fontset_font_pattern): Remove unused variable
5487         `family_registry'.
5489         * indent.c (current_column_1): Remove unused variable `prev_col'.
5491 2001-11-05  Richard M. Stallman  <rms@gnu.org>
5493         * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
5495         * buffer.c (Fkill_buffer): Don't delete auto save file
5496         if buffer is modified.
5498 2001-11-05  Andrew Innes  <andrewi@gnu.org>
5500         * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
5501         CHECK_NUMBER_CDR.
5503 2001-11-05  Richard M. Stallman  <rms@gnu.org>
5505         * unexelf.c (unexec): Minor changes; clean up comments.
5507 2001-11-05  Sam Steingold  <sds@gnu.org>
5509         * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
5511 2001-11-05  Andreas Schwab  <schwab@suse.de>
5513         * sound.c (sound_perror): Save errno from being clobbered.
5515 2001-11-05  Dale Hagglund  <rdh@yottayotta.com>
5517         * unexelf.c (unexec): Don't use `mmap'.  Instead, read and write
5518         the program image directly.
5520 2001-11-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5522         * buffer.h (Fbuffer_local_value): Add prototype.
5524 2001-11-04  Richard M. Stallman  <rms@gnu.org>
5526         * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
5527         and CHECK_BUFFER.
5529         * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
5530         (record_char): Likewise.
5532         * keyboard.c (make_lispy_event): Don't insist a drag event must
5533         move to a different buffer position.  Instead, check for moving at
5534         least double_click_fuzz.
5536         * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
5538         * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
5540         * indent.c (current_column_1, Fmove_to_column): Separate the code
5541         for display-table glyphs from the code for buffer text, to fix
5542         bugs in the former.
5544 2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>
5546         * buffer.c (Fbuffer_local_value): New function.
5547         (syms_of_buffer): Defsubr it.
5549         * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
5550         value of `cursor-in-non-selected-windows'.
5552         * lisp.h (Qcursor_in_non_selected_windows): New declaration.
5553         * xdisp.c (Qcursor_in_non_selected_windows): New variable.
5554         (syms_of_xdisp): Initialize it.
5556 2001-11-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5558         * xfns.c (Fx_create_frame): Doc fix.
5560         * coding.c: Change doc-string comments to `new style' [w/`doc:'
5561         keyword].
5563         * eval.c (top_level_value, top_level_set): Remove commented and
5564         #ifdef'd-out code.
5565         (Fdefvar): Fix usage in doc-string.
5567 2001-11-03  Richard M. Stallman  <rms@gnu.org>
5569         * xfns.c: Include unistd.h, if it exists.
5571         * editfns.c: Move the include of ctype.h after unistd.h.
5573         * gmalloc.c: Test BROKEN_PROTOTYPES.
5575 2001-11-03  Ken Raeburn  <raeburn@gnu.org>
5577         * lisp.h (CHECK_STRING_CAR): New macro.
5578         * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
5579         treating XCAR and XCDR as lvalues.
5580         (openp): Use CHECK_STRING_CAR.
5581         (read_list): Use XSETCDR instead of treating XCDR as lvalue.
5583 2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>
5585         * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
5586         (SIGMASKTYPE): Define.
5588         * syssignal.h (sigunblock): Don't define if already defined.
5590 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5592         * eval.c (debugger_may_continue, Vdebug_ignored_errors)
5593         (call_debugger, Fcondition_case, skip_debugger, unbind_to):
5594         Fix typos in comments.
5596         * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
5597         and #ifdef'd-out code.
5598         Fix and reindent comments.
5600         * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
5602         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
5603         argument `i' in macros.
5605         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
5606         `i' in macros.
5608         * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
5609         (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
5610         (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
5611         (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
5612         (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
5613         (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
5614         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
5615         (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
5616         in macros.
5618         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
5619         * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
5620         * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
5621         * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
5622         * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
5623         * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
5624         * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
5625         * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
5626         * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
5627         (remove unused second argument).
5629 2001-11-02  Stefan Monnier  <monnier@cs.yale.edu>
5631         * syntax.c (describe_syntax): New wrapper.
5632         (Finternal_describe_syntax_value): Rename from describe_syntax.
5633         Don't insert space at front and \n at the end.
5634         (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
5636         * regex.c (re_wctype): Try to fix some warnings.
5637         (regcomp, regexec): Don't forget the __restrict.
5639 2001-11-02  Richard M. Stallman  <rms@gnu.org>
5641         * textprop.c (Fget_char_property): Doc fix.
5643 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5645         * process.c (Fstart_process): Add usage to doc-string.
5647         * data.c (Fsetq_default): Ditto.
5649         * callint.c (Finteractive): Ditto.
5651 2001-11-01  Stefan Monnier  <monnier@cs.yale.edu>
5653         * macros.c: Don't include keymap.h any more.
5655 2001-11-01  Richard M. Stallman  <rms@gnu.org>
5657         * data.c (Fmake_local_variable): Doc fix.
5659         * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
5660         (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
5662         * keymap.c (Fdescribe_buffer_bindings): Print character property
5663         bindings along with or instead of the buffer local map.
5664         Make the overriding maps override what they should.
5666 2001-11-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5668         * window.c (grow_mini_window): Fix typo in comment.
5670 2001-11-01  Gerd Moellmann  <gerd@gnu.org>
5672         * xterm.c (x_scroll_bar_create): Check for width and height > 0.
5673         (XTset_vertical_scroll_bar): Likewise.
5675         * xfns.c (x_build_heuristic_mask): Use four_corners_best
5676         instead of IMAGE_BACKGROUND.
5678         * xfns.c (four_corners_best): Reindent.
5680         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
5681         Handle :box so that it is possible to specify sexprs.
5683 2001-10-31  Eli Zaretskii  <eliz@is.elta.co.il>
5685         * s/hpux11.h: New file.
5687 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5689         * emacs.c (USAGE1): Show command line option --no-window-system
5690         instead of --no-windows in usage.
5691         (standard_args): Rename --no-windows to --no-window-system.
5692         (bug_reporting_address): Follow Emacs coding conventions.
5694         * eval.c (Fcommandp): Doc fix.
5695         Change doc-string comments to `new style' [w/`doc:' keyword].
5697         * frame.c (Fframe_live_p): Doc fix.
5699         * buffer.c (selective-display-ellipses): Doc fix.
5701 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
5703         * lread.c (to_multibyte): Fix computation of new read_buffer_size.
5705         * xfaces.c (realize_x_face): If C is not a single-byte character,
5706         set the face's colors_copied_bitwise_p instead of the defaulted_p
5707         members which have a different meaning.
5708         (free_face_colors): Do nothing for a face whose colors have been
5709         copied bitwise.
5711         * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
5713 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5715         * marker.c, mocklisp.c: Change doc-string comments to `new style'
5716         [w/`doc:' keyword].
5718 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
5720         * fns.c (require_unwind): Return Lisp_Object.
5722 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5724         * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
5725         (last-input-char): Revert doc-string to be the same as the
5726         doc-string of `last-input-event'.
5728         * xdisp.c:  Fix typos in comments.
5730 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
5732         * window.c (grow_mini_window): Handle case that the root
5733         window is already smaller than the nominal mininum height.
5735 2001-10-30  Stefan Monnier  <monnier@cs.yale.edu>
5737         * emacs.c (main): Don't call keys_of_macros any more.
5739         * lisp.h (keys_of_macros): Remove.
5741         * macros.c (keys_of_macros): Remove.
5743         * xfaces.c (Fface_attribute_relative_p): Declare args.
5745 2001-10-30  Jason Rumney  <jasonr@gnu.org>
5747         * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
5748         (enum_font_cb2): Ignore fonts with vertical orientation.
5750 2001-10-30  Richard M. Stallman  <rms@gnu.org>
5752         * keyboard.c (Finput_pending_p): Doc fix.
5754 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
5756         * xterm.c (x_after_update_window_line): Don't run the code
5757         clearing in borders for rows whose visible height is 0.
5759         * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
5760         resized_p flag is set.  If not set, use the much less flickering
5761         method previously used.
5763         * dispnew.c (change_frame_size_1): Set frame's resized_p.
5765         * frame.h (struct frame) <resized_p>: New member.
5767         * lread.c (to_multibyte): Ensure read_buffer is at least twice
5768         as large as the number of bytes to convert.
5770         * lread.c (to_multibyte): New function.
5771         (read1): Use it.
5773 2001-10-30  Eli Zaretskii  <eliz@is.elta.co.il>
5775         * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
5777 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
5779         * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
5780         (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
5781         if the row's fill_line_p is set and drawing the last glyph with
5782         DRAW_IMAGE_{RAISED,SUNKEN}.
5784         * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
5786 2001-10-29  Stefan Monnier  <monnier@cs.yale.edu>
5788         * xmenu.c: Include coding.h and charset.h.
5789         (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
5790         (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
5791         (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
5792         Explicitly set wv->help.  Use `TRUE' rather than `True'.
5793         (menu_help_callback): Use empty_string.
5795         * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
5796         (Fx_popup_dialog): Explicitly init f.
5797         (w32_menu_display_help): Use empty_string.
5799 2001-10-29  Richard M. Stallman  <rms@gnu.org>
5801         * fns.c (Frequire): Detect recursive try to require the same
5802         feature 3 or more levels deep, and get error.
5803         (require_unwind): New subroutine.
5804         (require_nesting_list): New variable.
5805         (syms_of_fns): Init and staticpro it.
5807         * print.c (print_object): Clarify indication of insertion type.
5809 2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>
5811         * coding.c (syms_of_coding): Document that locale-coding-system is
5812         used for decoding input on X.
5814         * window.c (Fscroll_left, Fscroll_right): Doc fix.
5816 2001-10-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5818         * keyboard.c (Finput_pending_p): Fix typo in doc-string.
5819         (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
5821 2001-10-29  Gerd Moellmann  <gerd@gnu.org>
5823         * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
5824         use NO_CURSOR if cursor_in_non_selected_windows is false.
5826         * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
5827         the slant attribute if FRAME is t.
5829         * xfns.c (x_set_internal_border_width): Set frame garbaged
5830         when X window doesn't exist yet.
5832         * xterm.c (x_after_update_window_line): Clear internal border
5833         in different circumstances.
5835         * xterm.c (XTread_socket) <KeyPress>: Don't use
5836         STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
5837         <handa@etl.go.jp>.
5839 2001-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
5841         * m/ibms390.h: New file.  From Adam Thornton
5842         <athornton@sinenomine.net>.
5844 2001-10-28  Gerd Moellmann  <gerd@gnu.org>
5846         * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
5848         * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
5849         a loop counter.
5851 2001-10-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5853         * emacs.c: Use argv[0] instead of emacs when -t was specified.
5855         * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
5856         keyword].
5857         Fix typos in comments.
5859         * emacs.c (bug_reporting_address): New function.
5860         Use it when displaying usage message.
5862         * minibuf.c (read_minibuf): Remove unused external declaration of
5863         variable `Qread_only'.
5865         * keymap.c (access_keymap): Remove unused variable `charset'.
5867 2001-10-28  Miles Bader  <miles@gnu.org>
5869         * xfaces.c (merge_face_heights): Handle TO being relative as well.
5870         Remove #ifdef'd-out code.
5871         (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
5872         (syms_of_xfaces): Initialize them.
5874 2001-10-27  Jason Rumney  <jasonr@gnu.org>
5876         * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
5877         <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
5878         position using the system caret.
5880         * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
5881         (w32_system_caret_height, w32_system_caret_x)
5882         (w32_system_caret_y): New variables for tracking system caret.
5883         (w32_initialize): Initialize them.
5884         (x_display_and_set_cursor): Make system caret follow the active cursor.
5886         * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
5887         New messages types.
5889         * w32term.c (note_mouse_highlight): Clear old help_echo.
5891 2001-10-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5893         * xterm.c: Fix typo in a comment.
5895         * emacs.c: Fix typos in comments.
5896         Remove unnecessary spaces.
5897         Change doc-string comments to `new style' [w/`doc:' keyword].
5898         (USAGE2): Fix typos in usage string.
5900         * xterm.c: Fix typo in a comment.
5902         * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
5903         emacs.c.
5905 2001-10-27  Gerd Moellmann  <gerd@gnu.org>
5907         * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
5908         instead of 1/2 line_height in the heuristic for skipping
5909         farther backward when target_y was not reached.
5911         * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
5912         Display errno only if non-zero.
5913         (sound_warning): New function.
5914         (vox_configure): Don't treat failing to set sample rate as error.
5915         (various places): Improve error messages.
5917 2001-10-26  Eli Zaretskii  <eliz@is.elta.co.il>
5919         * fileio.c (Faccess_file): Run the argument filename through
5920         Fexpand_file_name, before using it.
5922         * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
5923         ring-bell-function.  Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
5925 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
5927         * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
5929         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5930         Fix clearing in the case of scroll bars on the right.
5932 2001-10-26  Juanma Barranquero  <lektu@terra.es>
5934         * w32gui.h (XImage): Add a dummy typedef.
5936 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
5938         * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
5940 2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>
5942         * frame.c (Fframe_parameter): Fix last change.
5944         * fileio.c: Revert last change (which removed old commented-out
5945         version of expand-file-name).  Add a comment that explains why
5946         this old version should not be removed.
5948 2001-10-25  Gerd Moellmann  <gerd@gnu.org>
5950         * frame.c (Fframe_parameter): Fix a bug whereby some
5951         ``artificial'' frame parameters, like `minibuffer' were not
5952         obtained by calling Fframe_parameters.
5954         * xterm.c (show_mouse_face): Clean up.  Recognize overwritten
5955         cursor differently.
5957         * xdisp.c (move_it_vertically_backward): Compute line height
5958         differently.  Add heuristic to try to be more compatible to 20.x.
5960 2001-10-25  Stefan Monnier  <monnier@cs.yale.edu>
5962         * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
5964         * editfns.c (text_property_stickiness): Fix Lisp_Object used as
5965         boolean.
5967 2001-10-25  Miles Bader  <miles@gnu.org>
5969         * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
5970         BG is a pointer to a structure, not a structure.
5971         (gif_format, png_format): Add missing commas.
5973 2001-10-24  Richard M. Stallman  <rms@gnu.org>
5975         * xfaces.c (Fface_attributes_as_vector): New function.
5976         (syms_of_xfaces): Defsubr it.
5978 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5980         * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
5981         variable `area'.
5983 2001-10-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
5985         * search.c (scan_newline): Remove unused variable `selective_display'.
5987 2001-10-25  Miles Bader  <miles@gnu.org>
5989         * dispextern.h (struct image): Add `background',
5990         `background_valid', and `background_transparent' fields.
5991         (image_background, image_background_transparent): New declarations.
5992         (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
5993         * xfns.c (image_background, image_background_transparent)
5994         (four_corners_best): New functions.
5995         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
5996         (gs_format): Add `:background' entry.
5997         (lookup_image): Set IMG's background color if specified.
5998         (pbm_load, xbm_load_image, png_load): Set IMG's background field
5999         when appropriate.
6000         (x_clear_image_1): Reset `background_valid' and
6001         `background_transparent_valid' fields.
6002         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
6003         calculating it here.  Set IMG's background_transparent field.
6004         (enum xpm_keyword_index): Add XPM_BACKGROUND.
6005         (enum png_keyword_index): Add PNG_BACKGROUND.
6006         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
6007         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
6008         (enum gif_keyword_index): Add GIF_BACKGROUND.
6009         (enum gs_keyword_index): Add GS_BACKGROUND.
6010         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
6011         Pre-calculate image background color where necessary.
6012         * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
6013         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
6014         color to use for image glyph reliefs.
6016 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
6018         * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
6019         in full-width rows.
6021         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
6022         Fix clearing of area not covered by scroll bar.
6024 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6026         * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
6027         and `real_start'.
6028         (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
6029         (glyph_rect): Remove unused variable `area'.
6031 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
6033         * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
6035         * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
6036         (row_containing_pos): Take additional argument DY.
6037         Treat rows ending in middle of char differently.
6038         (display_line): Handle tabs on window systems differently.
6040         * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
6041         with additional argument.
6043         * dispextern.h (row_containing_pos): Adjust prototype.
6045         * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
6046         (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
6047         (try_window_id, try_window_reusing_current_matrix)
6048         (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
6049         (syms_of_xdisp) [GLYPH_DEBUG]:  DEFVAR_BOOL the variables.
6051 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6053         * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
6054         gnuemacs).
6055         (HAVE_BOXES): Fix typo in comment.
6056         (push_menu_pane): Fix typo in comment.
6058         * xdisp.c: (display_prop_string_p): Remove unused local declaration
6059         of `Qwhen'.
6060         (single_display_prop_string_p): Remove unused local declarations
6061         of `Qwhen' and `Qmargin'.
6062         (string_buffer_position): Remove unused variable `around'.
6063         (store_frame_title): Remove unused variable `width'.
6065         * window.c: Don't define max.
6066         (coordinates_in_window): Remove unused variable `uy'.
6068         * widget.c: Don't define max.
6070         * process.c: Don't define max.
6071         (create_process): Remove unused variable `buffer'.
6073 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
6075         * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
6077 2001-10-23  Eli Zaretskii  <eliz@is.elta.co.il>
6079         * xfaces.c (Finternal_set_lisp_face_attribute)
6080         [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
6081         frame is on a windowed display.
6083 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
6085         * dispnew.c (sync_window_with_frame_matrix_rows):
6086         Fix handling of windows which aren't full-width, fix handling
6087         of marginal areas.
6089         * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
6091 2001-10-23  Andreas Schwab  <schwab@suse.de>
6093         * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
6094         LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
6096 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
6098         * xterm.c (x_draw_glyphs): Remove parameters READ_START and
6099         REAL_END.  Notice if cursor gets overwritten.
6100         (notice_overwritten_cursor): Take X positions as parameters.
6101         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
6102         around call to x_draw_glyphs.
6104 2001-10-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6106         * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
6107         instead of C) and usage.
6109         * editfns.c (char-to-string): Fix argument names (use CHAR instead
6110         of C) and usage.
6112         * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
6113         `left', `max_width' and `max_height'.
6115 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
6117         * xdisp.c (display_line): For a tab continued to the next line,
6118         set row's ends_in_middle_of_char_p.
6120 2001-10-22  Gerd Moellmann  <gerd@gnu.org>
6122         * xdisp.c (display_line): Fix computation of continuation lines
6123         width for TABs.
6125 2001-10-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6127         * xdisp.c (build_desired_tool_bar_string): Remove unused variable
6128         `Qlaplace'.
6130         * fileio.c: Remove unused code.
6132 2001-10-22  Miles Bader  <miles@gnu.org>
6134         * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
6135         (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
6136         Remove `DOC_STRINGS_IN_COMMENTS' cases.
6138 2001-10-21  Jason Rumney  <jasonr@gnu.org>
6140         * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
6142 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
6144         * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
6145         (Finsert_string): Avoid the multi-line string literals warning.
6147 2001-10-22  Miles Bader  <miles@gnu.org>
6149         * doc.c (Vhelp_manyarg_func_alist): Variable removed.
6150         (Fdocumentation): Don't use it.
6151         (syms_of_doc): Don't initialize it.
6153         * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
6154         * print.c (Fwith_output_to_temp_buffer): Likewise.
6155         * window.c (Fsave_window_excursion): Likewise.
6156         * editfns.c (Fsave_excursion, Fsave_current_buffer)
6157         (Fsave_restriction): Likewise.
6158         * eval.c (Frun_hooks, Frun_hook_with_args)
6159         (Frun_hook_with_args_until_failure)
6160         (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
6161         (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
6162         (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
6163         (Funwind_protect, Fcondition_case): Likewise.
6164         * coding.c (Ffind_operation_coding_system): Likewise.
6165         * keyboard.c (Ftrack_mouse): Likewise.
6167 2001-10-21  Miles Bader  <miles@gnu.org>
6169         * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
6170         (Fmake_hash_table): Add usage: string to doc string.
6171         * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
6172         (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
6173         (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
6174         * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
6175         (Fml_prefix_argument_loop): Likewise.
6177 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6179         * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
6181         * sysdep.c (init_sys_modes): Change doc-string comments to `new
6182         style' [w/`doc:' keyword].
6184         * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
6185         * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
6186         comments to `new style' [w/`doc:' keyword].
6188 2001-10-21  Jason Rumney  <jasonr@gnu.org>
6190         * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
6192         * w32term.c (remember_mouse_glyph): New function.
6193         (w32_mouse_position): Use it.
6194         (note_mouse_movement): If the mouse moved off the glyph, remember
6195         its new position.
6197         * w32term.h (struct w32_output): Correct spelling of x_compatible.
6198         (w32_display_info): Add mouse_face_overlay.
6200         * w32term.c (notice_overwritten_cursor): Renamed from
6201         note_overwritten_text_cursor.  Rewritten to take glyph widths into
6202         account.
6203         (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
6204         (fast_find_string_pos): New function.
6205         (fast_find_position): Return the correct vpos.  Add parameter
6206         STOP.  In the final row, stop before glyphs having STOP as object.
6207         Don't consider glyphs that are not from a buffer.
6208         (fast_find_position) [0]: Add a presumably more correct version
6209         for after 21.1.
6210         (expose_window_tree, expose_frame): Don't compute intersections here.
6211         (expose_window): Do it here instead.
6212         (expose_window_tree, expose_window, expose_line): Return 1 when
6213         overwriting mouse-face.
6214         (expose_window): If W is the window currently being updated, mark
6215         the frame garbaged.
6216         (expose_frame): If mouse-face was overwritten, redo it.
6217         (x_use_underline_position_properties): New variable.
6218         (syms_of_xterm): DEFVAR_BOOL it.
6219         (x_draw_glyph_string): Add comment to use it in future.
6220         (x_draw_glyph_string): Restore clipping after drawing box.
6221         Fix a computation of the underline position.
6222         (w32_get_glyph_string_clip_rect): Minor cleanup.
6223         (x_fill_stretch_glyph_string): Remove an assertion.
6224         (x_produce_glyphs): Don't convert multibyte characters
6225         to unibyte characters in unibyte buffers.
6226         (cursor_in_mouse_face_p): New function.
6227         (x_draw_stretch_glyph_string): Use it to choose a different GC
6228         when drawing a cursor within highlighted text.  Don't draw
6229         background again if it has already been drawn.
6230         (x_draw_glyph_string_box): Don't draw a full-width
6231         box just because the glyph row's full_width_p flag is set.
6232         (x_draw_glyphs): Fix computation of rightmost x for
6233         full-width rows.
6234         (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
6235         (w32_draw_relief_rect): Extend left shadow to the bottom and left;
6236         change bottom shadow accordingly. Some cleanup.
6237         (x_update_window_end): Handle overwritten mouse face
6238         also for tool bar windows.
6239         (show_mouse_face): Set the glyph row's mouse_face_p flag also when
6240         DRAW is DRAW_IMAGE_RAISED.
6241         (clear_mouse_face): Return 1 if text with mouse face was
6242         actually redrawn.  Make the function static.  Reset
6243         dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
6244         optimize away highlighting if we pass over that same overlay again.
6245         (note_mouse_highlight): Call mouse_face_overlay_overlaps
6246         to detect a case where we have to highlight a different region
6247         despite not having left the currently highlighted region.
6248         Set mouse_face_overlay in the x_display_info.  Avoid changing the
6249         mouse pointer shape when show_mouse_face has already done it, or
6250         there is no need.  Handle mouse-face and help-echo in strings.
6251         (glyph_rect): New function.
6252         (w32_mouse_position): Use it to raise the threshold for mouse
6253         movement event generation.
6254         (w32_initialize_display_info): Initialize the x_display_info's
6255         mouse_face_overlay.
6256         (w32_set_vertical_scroll_bar): Don't clear a zero height
6257         or width area.
6258         (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
6259         a widget to zero height.
6261         * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
6262         Protect unibyte strings created by replacing their multibyte
6263         equivalents in menu_items.
6264         (w32_menu_show): Don't overwrite an item's name with its key
6265         description in case the description is a multibyte string.
6266         (single_submenu): Some cleanup.
6268         * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
6269         (postprocess_image): New function.
6270         (lookup_image): Call it for all image types except PostScript.
6271         (x_kill_gs_process): Call postprocess_image.
6272         (tiff_error_handler, tiff_warning_handler): New functions.
6273         (tiff_load): Install them as handlers.
6274         (x_kill_gs_process): Recognize if someone has cleared the image
6275         cache under us.
6276         (valid_image_p): Protect better against invalid image
6277         specifications.  Previous code could signal an error.
6278         (Fx_hide_tip, Fshow_tip): Doc fix.
6279         (Fv_max_tooltip_size): New variable.
6280         (syns_of_xfns): DEFVAR_LISP it.
6281         (Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
6282         window buffer to *tip* right after creating the frame. Set frame's
6283         window_width.  Use a maximum tooltip size specified by
6284         Vx_max_tooltip_size, if that has valid contents.
6285         (compute_tip_xy): Add parameters WIDTH and HEIGHT.
6286         Make sure the tooltip is completely visible.
6287         (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
6288         (Fx_create_frame): Adjust the frame's height for presence
6289         of the tool bar before calling x_figure_window_size.
6290         (x_set_tool_bar_lines): Clear the tool bar window's current matrix
6291         when the window gets smaller.
6292         (x_set_foreground_color): Set frame's cursor_pixel.
6293         (x_set_foreground_color, x_set_background_color): Cleaned up.
6294         (x_set_font): Handle case of x_new_fontset returning the same name
6295         as before, although there was a change in fontsets.
6297 2001-10-21  Miles Bader  <miles@gnu.org>
6299         * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
6300         (Flogxor): Add usage: string to doc string.
6301         * charset.c (Fstring): Likewise.
6302         * callproc.c (Fcall_process_region, Fcall_process): Likewise.
6303         * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
6305 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
6307         * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
6309         * alloc.c: Reindent DEFUNs with doc: keywords.
6311         * abbrev.c (Finsert_abbrev_table_description): Reindent.
6313         * frame.c: Change doc-string comments to `new style' [w/`doc:'
6314         keyword].
6316 See ChangeLog.9 for earlier changes.
6318 ;; Local Variables:
6319 ;; coding: iso-2022-7bit
6320 ;; End:
6322     Copyright (C) 2001, 2002 Free Software Foundation, Inc.
6323   Copying and distribution of this file, with or without modification,
6324   are permitted provided the copyright notice and this notice are preserved.