(textget): Don't forget to `return'.
[emacs.git] / src / ChangeLog
blob82499da0a55fd153a76e8c42aa6abef7bd1c3c3a
1 2002-06-12  Stefan Monnier  <monnier@cs.yale.edu>
3         * intervals.c (textget): Don't forget to `return'.
4         (lookup_char_property): Use XCAR/XCDR.
6 2002-06-12  Juanma Barranquero  <lektu@terra.es>
8         * xdisp.c (Fformat_mode_line): Fix typo.
10 2002-06-12  Kim F. Storm  <storm@cua.dk>
12         * xdisp.c (Fformat_mode_line): New function.
13         (frame_title_buf, frame_title_buf_end, frame_title_ptr)
14         (store_frame_title_char, store_frame_title): Use unconditionally.
15         (init_xdisp): Defsubr Fformat_mode_line.
16         Initialize frame_title_buf etc. unconditionally.
18 2002-06-11  Stefan Monnier  <monnier@cs.yale.edu>
20         * keyboard.c (read_key_sequence):
21         Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
22         things through those maps after downcasing events.
23         Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
24         applies after function-key-map.
25         Make sure that keytran can be done in the middle in the sequence.
26         Be careful not to throw away events past the one we downcase.
28         * lread.c (read_integer): Remove unused var `tem'.
29         (read1): Fix int/Lisp_Object mixup.
31         * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
33 2002-06-11  Richard M. Stallman  <rms@gnu.org>
35         * keyboard.c (readable_events): Ignore any number of
36         FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
38 2002-06-09  Miles Bader  <miles@gnu.org>
40         * xfaces.c (Ftty_supports_face_attributes_p): New function.
41         (parse_rgb_list, tty_lookup_color): New functions.
42         (tty_defined_color): Use `tty_lookup_color' to do all the work.
43         (color_distance, Fcolor_distance): New functions.
44         (TTY_SAME_COLOR_THRESHOLD): New macro.
45         (Qtty_color_standard_values): New variable.
46         (syms_of_xfaces): Initialize new vars & functions.
48 2002-06-08  Colin Walters  <walters@verbum.org>
50         * textprop.c (Vchar_property_alias_alist): New variable.
51         (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
53         * intervals.c (lookup_char_property): New function for looking up
54         overlay and text properties, created from textget.
55         (textget): Use it.
57         * intervals.h (lookup_char_property): Declare.
58         (Vchar_property_alias_alist): Declare.
60         * buffer.c (Foverlay_get): Use lookup_char_property.
62 2002-06-07  Sam Steingold  <sds@gnu.org>
64         * xselect.c (lisp_data_to_selection_data): Fix last change:
65         *data_ret is not a Lisp string, while unibyte_string is.
67 2002-06-07  Eli Zaretskii  <eliz@is.elta.co.il>
69         * xselect.c (lisp_data_to_selection_data): Fix last change:
70         set size_ret.
72 2002-06-07  Andreas Schwab  <schwab@suse.de>
74         * m/amdx86-64.h: New file.
76 2002-06-05  Eli Zaretskii  <eliz@is.elta.co.il>
78         * fns.c (Fstring_make_unibyte): Doc fix.
80         * xselect.c (lisp_data_to_selection_data): If the requested type
81          is STRING, call string_make_unibyte to encode the selected text
82          as a string.
84         * window.c (Fset_window_hscroll): Doc fix.
86 2002-06-05  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
88         * fileio.c (choose_write_coding_system):
89         Call select-safe-coding-system properly.
91 2002-06-03  Richard M. Stallman  <rms@gnu.org>
93         * xdisp.c (message_with_string): Error if STRING is not a string.
95         * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
97         * fileio.c (choose_write_coding_system): Pass FILE arg to
98         Vselect_safe_coding_system_function.
100 2002-06-03  Ken Raeburn  <raeburn@gnu.org>
102         * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
104 2002-06-02  Thien-Thi Nguyen  <ttn@gnu.org>
106         * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
107         * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
108         * keymap.c (describe_command): Likewise.
109         * minibuf.c (read_minibuf): Likewise.
111         * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
112         Cast `current_column' return value to int.
113         (back_to_previous_visible_line_start)
114         (reseat_at_next_visible_line_start, next_element_from_buffer):
115         Cast `indented_beyond_p' 3rd arg to float.
117         * indent.c (last_known_column): Now a float.
118         (current_column_1, position_indentation, current_column)
119         (string_display_width): Return float.
120         (Fcurrent_column): Cast `current_column' return value to int.
121         (Fcurrent_indentation): Cast `position_indentation' retval to int.
122         (indented_beyond_p): Third arg now a float.
123         (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
125         * lisp.h (current_column): Now returns float.
126         (indented_beyond_p): 3rd arg now a float.
128 2002-05-31  Eli Zaretskii  <eliz@is.elta.co.il>
130         * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
131         is Qcompound_text_with_extensions.
133         * xselect.c (lisp_data_to_selection_data): Always set selection
134         type as string if x_encode_text returns streingp non-NULL.
136         * s/netbsd.h: Include /usr/pkg in the run time shared library path.
138 2002-05-30  Richard M. Stallman  <rms@gnu.org>
140         * window.c (Fset_window_configuration): Correct the handling
141         of point in current buffer, to work with multiple windows.
143 2002-05-29  Colin Walters  <walters@verbum.org>
145         * lread.c (Fread_from_string): Don't depend on order of evaluation
146         for C function parameters.
148 2002-05-28  Richard M. Stallman  <rms@gnu.org>
150         * xterm.c (x_display_and_set_cursor): Change the cursor in the same
151         way for blinked-off state and for a nonselected window.
153         * window.c (window_scroll_pixel_based): Don't call Fbolp;
154         instead, see if the new start pos is at beginning of line.
156         * fileio.c (Fwrite_region): If START is a string, don't
157         make any annotations.
159         * eval.c (syms_of_eval): Doc fix.
161 2002-05-28  Colin Walters  <walters@debian.org>
163         * emacs.c (USAGE1): Add --no-splash.
164         (standard_args): Ditto.
166 2002-05-28  Colin Walters  <walters@gnu.org>
168         * lread.c (readchar_count): New variable.
169         (readchar): Increment it.
170         (unreadchar): Decrement it.
171         (read_multibyte): Decrement it.
172         (Vread_with_symbol_positions): New variable.
173         (Vread_symbol_positions_list): New variable.
174         (read_internal_start): New function, created from Fread and
175         Fread_from_string.  Handle Vread_symbol_positions_list and
176         Vread_with_symbol_positions.
177         (readevalloop, Fread, Fread_from_string): Use it.
178         (read1): Use readchar_count to add symbol positions to
179         Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
180         (syms_of_lread): DEFVAR_LISP and initialize them.
182         * lread.c (read0, read1, read_list, read_vector, read_multibyte)
183         (substitute_object_recurse, substitute_object_in_subtree)
184         (substitute_in_interval): Prototype.
185         (read_multibyte): Return c if it's less than zero.
187 2002-05-28  Kim F. Storm  <storm@cua.dk>
189         * fileio.c (Fread_file_name_internal): Added brute-force
190         speed up for using predicate file-directory-p.
192 2002-05-28  Kim F. Storm  <storm@cua.dk>
194         * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
195         New variables.
196         (syms_of_fileio): DEFVAR_LISP them.
197         (read_file_name_cleanup): New unwind function.
198         (Fread_file_name_internal): Only return completions satifying
199         Vread_file_name_predicate.  Temporarily unwind protect and rebind
200         default-directory while checking completions against the predicate.
201         (Fread_file_name): Added PREDICATE argument.  Specbind it to
202         Vread_file_name_predicate during completion.
203         Call Vread_file_name_function to read the file name if non-nil.
205         * lisp.h (Fread_file_name): Now has 6 args.
207         * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
208         predicate for Fread_file_name when reading directory name.
209         Supply Qnil for predicate in other calls to Fread_file_name.
211 2002-05-26  Miles Bader  <miles@gnu.org>
213         * term.c (tty_capable_p): New function.
214         * dispextern.h (tty_capable_p): New function declaration.
215         (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
216         (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
218 2002-05-23  Stefan Monnier  <monnier@cs.yale.edu>
220         * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
221         (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
222         (Vwrite_region_annotate_functions): Docstring fix.
224 2002-05-23  Kim F. Storm  <storm@cua.dk>
226         * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
227         phys_cursor's hpos is overwritten.  This is still not completely
228         correct, as it doesn't really make sense to use hpos at all to
229         get the cursor glyph (as that is relative to the width of the
230         characters on the line, which may have changed during the update).
232 2002-05-22  Jason Rumney  <jasonr@gnu.org>
234         * w32fns.c (enumfont_t): Remove tail, make pattern a normal
235         Lisp_Object.
236         (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
237         Use modified enumfont_t struct.
239         * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
241         * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
242         Handle the `hbar' cursor type.
243         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
245         * w32fns.c (Qhbar): New variable.
246         (x_specified_cursor_type): Use it.
248 2002-05-21  Ken Raeburn  <raeburn@gnu.org>
250         * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
251         now, when the address is needed.
253 2002-05-21  Colin Walters  <walters@gnu.org>
255         * Makefile.in (shortlisp): Add font-core.el.
257 2002-05-20  Richard M. Stallman  <rms@gnu.org>
259         * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
261         * keyboard.c (read_char_minibuf_menu_prompt): Don't list
262         equivalent key bindings here.
264 2002-05-20  Ken Raeburn  <raeburn@gnu.org>
266         Change symbol structure to contain a lisp object for the symbol
267         name:
268         * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
269         object field named "xname".
270         (SYMBOL_NAME): New macro.
271         * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
272         name field.
273         * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
274         (mark_object, gc_sweep): Use symbol xname field and XSTRING
275         instead of name field.
276         * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
277         SYMBOL_NAME instead of XSYMBOL and name field.
278         * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
279         instead of XSYMBOL and name field.
280         * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
281         and SYMBOL_NAME instead of XSYMBOL and name field.
282         * coding.c (Fread_coding_system, code_convert_region1)
283         (code_convert_string1, code_convert_string_norecord)
284         (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
285         XSYMBOL and name field.
286         * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
287         (Fmake_variable_buffer_local, Fmake_local_variable)
288         (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
289         of XSYMBOL and name field.
290         * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
291         XSYMBOL and name field.
292         * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
293         instead of XSYMBOL and name field.
294         * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
295         XSYMBOL and name field.
296         * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
297         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
298         * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
299         instead of XSYMBOL and name field.
300         * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
301         (parse_modifiers, apply_modifiers, Fevent_convert_list)
302         (parse_solitary_modifier, Fexecute_extended_command):
303         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
304         * keymap.c (silly_event_symbol_error, Fsingle_key_description)
305         (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
306         of XSYMBOL and name field.
307         (describe_command, describe_translation): Use SYMBOL_NAME and
308         assignment instead of XSYMBOL and name field and XSETSTRING.
309         * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
310         instead of XSYMBOL and name field.
311         (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
312         name field and XSETSTRING.
313         * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
314         of XSYMBOL and name field.
315         * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
316         assignment instead of XSYMBOL and name field and XSETSTRING.
317         * print.c (print_error_message, print_object): Use SYMBOL_NAME and
318         XSTRING instead of XSYMBOL and name field.
319         * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
320         and XSTRING instead of XSYMBOL and name field.
321         * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
322         and XSTRING instead of XSYMBOL and name field.
323         * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
324         XSTRING instead of XSYMBOL and name field.
325         * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
326         of XSYMBOL and name field.
327         * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
328         Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
330 2002-05-19  Ken Raeburn  <raeburn@gnu.org>
332         * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
333         and XCDR real rvalues in most configurations.
335         * buffer.c (fix_overlays_in_range, fix_overlays_before):
336         Don't take the address of the cdr part of a cons cell; instead, track
337         the parent cell and call XSETCDR, or set the variable for the head
338         of the list if we haven't started down the list yet.
340 2002-05-19  Richard M. Stallman  <rms@gnu.org>
342         * doc.c (reread_doc_file): Don't ask for confirmation.
344 2002-05-18  Jason Rumney  <jasonr@gnu.org>
346         * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
347         (xbm_load_image): Use it.
348         (xbm_load): Ditto.
349         (xbm_read_bitmap_data): Reverted to xfns.c version.
350         From David Ponce <david@dponce.com>.
352 2002-05-17  Eli Zaretskii  <eliz@is.elta.co.il>
354         * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
355         2.02 and later.
357 2002-05-16  Juanma Barranquero  <lektu@terra.es>
359         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
361 2002-05-15  Stefan Monnier  <monnier@cs.yale.edu>
363         * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
364         meaningful test.
365         (read_char_minibuf_menu_prompt): Fix typo.
367 2002-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
369         * eval.c (Fcommandp): Doc fix.
371 2002-05-13  Stefan Monnier  <monnier@cs.yale.edu>
373         * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
374         (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
375         (Fset_keymap_parent): Gcpro a bit more.
376         (access_keymap): Gcpro around meta_map call and around the main loop.
377         (get_keyelt): Gcpro when following indirect references.
378         (copy_keymap_item): New fun, extracted from Fcopy_keymap.
379         (copy_keymap_1, Fcopy_keymap): Use it.  Don't copy the parent map.
380         (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
381         Remove useless ad-hoc remap code.
383 2002-05-13  Richard M. Stallman  <rms@gnu.org>
385         * search.c (search_buffer): Give up boyer moore search if inverse
386         translation change charset_base.
388 2002-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
390         * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
391         characters is carried over from the previous block of text, adjust
392         coding->produced to account for the extra character.
394 2002-05-11  Andreas Schwab  <schwab@suse.de>
396         * coding.c (intersection): Keep the elements of the returned list
397         in the same order as in the first list.
399 2002-05-11  Kim F. Storm  <storm@cua.dk>
401         * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
402         only update cmm_size if realloc actually succeeds.
403         Testing with initial size of 2 elements revealed that using
404         realloc on GNU/Linux would cause a random trap in xmalloc
405         later on, so I rewrote the code to use malloc/bcopy/free instead
406         of realloc.
408 2002-05-10  Jason Rumney  <jasonr@gnu.org>
410         * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
412 2002-05-10  Eli Zaretskii  <eliz@is.elta.co.il>
414         * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
415         parens, to ensure correct evaluation order.
417 2002-05-10  Kim F. Storm  <storm@cua.dk>
419         * keymap.c (Vemulation_mode_map_alists): New variable.
420         (syms_of_keymap): DEFVAR_LISP it.
421         (current_minor_maps): Process keymap alists in that list before
422         minor-mode-overriding-map-alist and minor-mode-map-alist.
424 2002-05-09  Richard M. Stallman  <rms@gnu.org>
426         * search.c (Freplace_match): Doc fix.
428 2002-05-09  Kim F. Storm  <storm@cua.dk>
430         * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
431         Enlarge cursor rectangle drawn around image with non-zero relief.
433         * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
434         Enlarge cursor rectangle drawn around image with non-zero relief.
436         * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
437         Enlarge cursor rectangle drawn around image with non-zero relief.
439 2002-05-07  Eli Zaretskii  <eliz@is.elta.co.il>
441         * xselect.c (lisp_data_to_selection_data): Don't set selection
442         type if comes from the Lisp object's car.  If the selection
443         contains a pure ASCII text, always return QSTRING as its type.
445 2002-05-06  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
447         * mac.c (mac-cut-function): Doc fix.
449 2002-05-05  Richard M. Stallman  <rms@gnu.org>
451         * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
453 2002-05-04  Jason Rumney  <jasonr@gnu.org>
455         * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
456         for event-click-count.
458         * process.c (init_process): Only add server subfeature if we can
459         use non-blocking I/O.
461 2002-05-04  Andrew Choi  <akochoi@shaw.ca>
463         * macterm.c (XTread_socket): Call WaitNextEvent once instead of
464         repeatedly.
466 2002-05-03  Jason Rumney  <jasonr@gnu.org>
468         * process.c (Fmake_network_process): Only support server sockets
469         when we can make them non-blocking.
471         * s/ms-w32.h (HAVE_SELECT): Define.
473         * w32.h (FILE_NDELAY): New flag.
475         * w32.c (sys_getpeername, fcntl): New functions.
476         (_sys_read_ahead): Temporarily block on non-blocking sockets.
478         * w32proc.c: include sys/file.h.
480 2002-05-03  Colin Walters  <walters@verbum.org>
482         * callproc.c (Vgame_score_directory): Renamed to
483         Vshared_game_score_directory.
485 2002-04-30  Richard M. Stallman  <rms@gnu.org>
487         * s/gnu.h [emacs]: Include stdio.h.
488         (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
490         * eval.c (do_autoload): Error if called while preparing to dump.
492         * fns.c (Frequire): Error if need to load while preparing to dump.
494 2002-04-28  Colin Walters  <walters@verbum.org>
496         * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
497         Default to "~/.emacs.d/games".
499 2002-04-29  Stefan Monnier  <monnier@cs.yale.edu>
501         * lread.c (openp): Change arg exec_only to predicate.
502         (build_load_history): Use XCAR/XCDR.
503         (Flocate_file_internal): New fun.
504         (syms_of_lread): Defsubr it.
505         (Fload): Update call to openp.
507         * lisp.h (openp): Update prototype.
509         * xfns.c (x_create_bitmap_from_file, x_find_image_file):
510         * w32proc.c (sys_spawnve):
511         * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
512         * w32.c (check_windows_init_file):
513         * sound.c (Fplay_sound_internal):
514         * process.c (Fstart_process):
515         * macfns.c (x_create_bitmap_from_file, x_find_image_file):
516         * mac.c (run_mac_command):
517         * emacs.c (init_cmdargs):
518         * callproc.c (Fcall_process): Update call to openp.
520         * textprop.c (remove_properties): Don't use XCAR without CONSP.
522         * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
524 2002-04-29  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
526         * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
527         (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
529 2002-04-28  Richard M. Stallman  <rms@gnu.org>
531         * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
533         * eval.c (Fcommandp): New arg for_call_interactively.
534         * lisp.h (Fcommandp): Declare new arg.
536 2002-04-28  Jason Rumney  <jasonr@gnu.org>
538         * w32proc.c (syms_of_w32proc): Get true file attributes by default.
540         * w32.c (stat, fstat): Use file index information to generate
541         inodes for directories where available.
543 2002-04-26  Andrew Choi  <akochoi@shaw.ca>
545         * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
546         [HAVE_CARBON]: Include Mac object files.
548         * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
549         fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
550         termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
551         MAC_OSX, and MAC_OS instead of macintosh.
553         * editfns.c [MAC_OS8]: Include stdio.h.
555         * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
557         * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
558         Apple Monaco.
560         * process.c: Declare QCfamily and QCfilter as extern.
561         (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
562         calling select.
564         * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
566         * tparam.c [MAC_OSX]: Don't define BC and UP.
568         * config.in [HAVE_CARBON]: Add.
570         * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
571         Move here from mac/src and mac/inc.
573         * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
575 2002-04-26  Gerd Moellmann  <gerd@gnu.org>
577         * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
578         Compute phys_cursor_width from the x position returned
579         by x_draw_glyhs, which is cheaper.
580         (x_display_and_set_cursor): Compute the buffer-local value
581         of `cursor-in-non-selected-windows' only when needed.
583 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
585         * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
586         cursor on a stretch glyph has a width that depends on
587         x_stretch_cursor_p.
589 2002-04-25  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
591         * abbrev.c (abbrev-start-location): Doc fix.
593         * indent.c (Fvertical_motion): Fix last change.
595 2002-04-25  Gerd Moellmann  <gerd@gnu.org>
597         * indent.c (Fvertical_motion): Move to the start of the line
598         containing PT before moving up or down.
600 2002-04-24  Gerd Moellmann  <gerd@gnu.org>
602         * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
603         case of writing a whole row, more or less analogous to the case of
604         writing only parts of a row.
606         * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
607         0 for NO_CURSOR.
609         * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
611 2002-04-23  Colin Walters  <walters@verbum.org>
613         * buffer.c (syms_of_buffer): Doc fix.
615 2002-04-23  Gerd Moellmann  <gerd@gnu.org>
617         * xterm.c (notice_overwritten_cursor): Handle the special case
618         of the cursor being in the first blank non-text line at the
619         end of a window.
621         * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
622         (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
623         (x_display_and_set_cursor): Don't set phys_cursor_width here, for
624         bar cursors only, to make phys_cursor_width contain what its name
625         suggests.
626         (notice_overwritten_cursor): Consider the cursor image erased if
627         the output area intersects the cursor image in y-direction.
629 2002-04-23  Simon Marshall  <simon@gnu.org>
631         * xfns.c (x_set_mouse_color): Change default for cross_cursor
632         to XC_hand2.
634 2002-04-23  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
636         * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
638 2002-04-22  Kim F. Storm  <storm@cua.dk>
640         * textprop.c (remove_properties): Fixed trap for malformed plist.
642 2002-04-22  Richard M. Stallman  <rms@gnu.org>
644         * cmds.c (Fend_of_line): Handle intangible text in mid line.
646         * window.c (make_window): Initialize height_fixed_p,
647         last_cursor_off_p, and p->cursor_off_p slots.
649 2002-04-20  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
651         * fns.c (use-dialog-box): Doc fix.
653 2002-04-19  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
655         * xterm.c (note_mode_line_or_margin_highlight): Remove unused
656         variables `row', `i' and `area'.
657         (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
658         toolkit library.
660 2002-04-19  Stefan Monnier  <monnier@cs.yale.edu>
662         * xfaces.c (clear_font_table): Don't free the default font of
663         a frame even if it's on another display.
664         (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
665         that could be Qt.
667 2002-04-19  Juanma Barranquero  <lektu@terra.es>
669         * indent.c (Fmove_to_column): Remove unused local variable
670         `next_boundary_byte'.
671         (current_column_1): Likewise.
673 2002-04-19  Eli Zaretskii  <eliz@is.elta.co.il>
675         * msdos.c (Qhbar): New variable.
676         (syms_of_msdos): Intern and staticpro it.
677         (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
678         cursor type.
680 2002-04-19  Dave Lambert <dlambert@acm.org>
682         Theses change implement an underscore-like (`hbar') cursor.
684         * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
686         * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
687         Handle the `hbar' cursor type.
688         (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
690         * xfns.c (Qhbar): New variable.
691         (syms_of_xfns): Intern and staticpro it.
692         (x_specified_cursor_type): Handle `hbar' cursor.
694         * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
695         not defined.
697 2002-04-18  Richard M. Stallman  <rms@gnu.org>
699         * textprop.c (remove_properties): New arg LIST allows scanning
700         either a list or a plist.
701         (interval_has_some_properties_list): New function, like
702         interval_has_some_properties using list instead of plist.
703         All callers changed.
704         (Fremove_list_of_text_properties): New function.
705         (syms_of_textprop): Defsubr it.
707 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
709         * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
711 2002-04-17  Juanma Barranquero  <lektu@terra.es>
713         * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
715 2002-04-17  Eli Zaretskii  <eliz@is.elta.co.il>
717         * window.c (coordinates_in_window): Don't report on margin area
718         if its width is zero.
720 2002-04-16  Jason Rumney  <jasonr@gnu.org>
722         * w32fns.c (Fx_file_dialog): Decode file name before using.
724         * w32term.c (construct_drag_n_drop): Likewise.
726 2002-04-16  Eli Zaretskii  <eliz@is.elta.co.il>
728         * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
729         store load-history in pure space.
731         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
733 2002-04-16  Stefan Monnier  <monnier@cs.yale.edu>
735         * xterm.c (Qlatin_1, Qutf_8): New vars.
736         (syms_of_xterm): Initialize them.
737         (XTread_socket): Eliminate incorrect optimization that tried to avoid
738         decoding the output of X*LookupString.
739         Always use latin-1 to decode the output of XLookupString.
740         Try Xutf8LookupString if XmbLookupString failed.
742         * region-cache.c (new_region_cache): Use BEG.
744 2002-04-16  Gerd Moellmann  <gerd@gnu.org>
746         * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
747         configuration files.
748         (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
749         returns 0.
751 2002-04-15  Andreas Schwab  <schwab@suse.de>
753         * config.in: Regenerated using autoheader.
755         * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
756         m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
757         m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
758         m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
759         m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
760         m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
761         m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
762         m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
763         m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
764         m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
765         m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
766         m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
767         m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
768         m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
769         m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
770         s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
771         STACK_DIRECTION, now set by autoconf.
773 2002-04-14  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
775         * dispnew.c (marginal_area_string): Sort arguments.
777         * dispextern.h (marginal_area_string): Add prototype.
779 2002-04-13  Richard M. Stallman  <rms@gnu.org>
781         * fileio.c (Finsert_file_contents):
782         Don't call temp_output_buffer_setup--do just part, by hand.
784         * coding.c (run_pre_post_conversion_on_str):
785         Don't call temp_output_buffer_setup--do just part, by hand.
787         * keyboard.c (command_loop_1): Don't call start_hourglass
788         or cancel_hourglass when executing a macro.
790         * marker.c (count_markers): New function.
792         * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
793         grow without limit.  Move recently used elements to the front.
795 2002-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
797         * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
799 2002-04-12  Gerd Moellmann  <gerd@gnu.org>
801         * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
802         rows marginal areas.
803         (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
804         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
806         * dispnew.c (marginal_area_string): Check that glyph row is enabled.
808 2002-04-12  Dave Love  <fx@gnu.org>
810         * dispnew.c (marginal_area_string): New.
812         * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
813         (Qleft_margin, Qright_margin): Declare.
814         (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
816         * xterm.c (note_mode_line_or_margin_highlight): Renamed from
817         note_mode_line_highlight and extended.
819         * keyboard.c (Qleft_margin, Qright_margin): Declare.
820         (make_lispy_event): Deal with mouse events in margins.
822 2002-04-12  Stefan Monnier  <monnier@cs.yale.edu>
824         * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
826         * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
827         than deactivating the mark if tmm is set to `lambda'.
828         (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
829         Use a single event for HELP_EVENT.
830         (Fexecute_extended_command): Save last_point_position.
832 2002-04-12  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
834         * lisp.h (Fpropertize): Add prototype.
836         * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
838 2002-04-10  Colin Walters  <walters@verbum.org>
840         * config.in: Add HAVE_SHARED_GAME_DIR.
842         * callproc.c: (Vgame_score_directory): New variable.
843         (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
845 2002-04-10  Richard M. Stallman  <rms@gnu.org>
847         * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
849 2002-04-09  Stefan Monnier  <monnier@cs.yale.edu>
851         * minibuf.c (read_minibuf): Use empty_string.
852         (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
853         Short-circuit the search as soon as it "failed".
854         (Fall_completions): Allow lambda forms and lists of strings for alist.
855         (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
856         when require_match is nil.
857         (Ftest_completion): Rename from `test_completion' and export to elisp.
858         Call the predicate also when alist is a list.
859         Obey Vcompletion_regexp_list.
860         (do_completion, Fminibuffer_complete_and_exit): Use it.
861         (Fassoc_string): Rename from `assoc_for_completion'.
862         Allow list of strings as well and export to elisp.
864 2002-04-08  Stefan Monnier  <monnier@cs.yale.edu>
866         * puresize.h (BASE_PURESIZE): Increase to 900KB.
868 2002-04-08  Juanma Barranquero  <lektu@terra.es>
870         * w32.c (sys_accept): Don't hide variable `s'.
872 2002-04-05  Gerd Moellmann  <gerd@gnu.org>
874         * callint.c (Fcall_interactively): Use INTEGERP instead of
875         NUMBERP for checking Vhistory_length.
877 2002-04-05  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
879         * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
880         Doc fix to reflect it.
882 2002-04-04  Richard M. Stallman  <rms@gnu.org>
884         * xdisp.c (display_mode_element): New arg RISKY.
885         Disregard text props found or specified within a variable
886         that isn't marked risky-local-variable.
887         (Qrisky_local_variable): New variable.
888         (syms_of_xdisp): Init and staticpro it.
890 2002-04-04  Stefan Monnier  <monnier@cs.yale.edu>
892         * undo.c (record_point): New fun.
893         (record_delete, record_insert): Use it.
895 2002-04-03  Juanma Barranquero  <lektu@terra.es>
897         * doc.c (Fdocumentation): Add missing parentheses.
898         (Fdocumentation_property): Likewise.
900 2002-04-03  Stefan Monnier  <monnier@cs.yale.edu>
902         * doc.c (Fdocumentation, Fdocumentation_property): When the doc
903         data is 0, just return nil.
905 2002-04-03  Eli Zaretskii  <eliz@is.elta.co.il>
907         * msdos.c (syms_of_msdos): Fix last change with
908         mouse_autoselect_window.
910 2002-04-03  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
912         * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
913         mouse_autoselect_window.
915 2002-04-02  Stefan Monnier  <monnier@cs.yale.edu>
917         * keyboard.c (make_lispy_event): Handle unknown keysyms together
918         with system-specific keysyms.  Use it also for unknown function keys.
920         * doc.c (reread_doc_file): Return whether reload was attempted.
921         (Fdocumentation, Fdocumentation_property): Don't try to reload
922         if the doc is 0 and only ask once.
924         * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
926 2002-04-02  Eli Zaretskii  <eliz@is.elta.co.il>
928         * keyboard.c (read_char): If the event was Qselect_window,
929         restore timer_idleness_start_time to its previous value.
931         * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
933 2002-04-01  Stefan Monnier  <monnier@cs.yale.edu>
935         * region-cache.c (new_region_cache): Use BEG.
937         * marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos):
938         Use BEG and BEG_BYTE.
940         * doc.c (get_doc_string): Return nil if the location is wrong.
941         (reread_doc_file): New fun.
942         (Fdocumentation, Fdocumentation_property):
943         Call it if get_doc_string fails.
944         (Fsnarf_documentation): Make it work for a dumped Emacs.
946         * charset.h (DEC_POS, BUF_DEC_POS): Use BEG_BYTE.
947         Bound the search with MAX_MULTIBYTE_LENGTH to avoid pathological case.
949         * charset.c (Fstring): Allow 0 arguments.
951         * xterm.c (XTread_socket): Fix int/Lisp_Object confusion.
953         * process.c (DATAGRAM_CONN_P, list_processes_1)
954         (Fprocess_datagram_address, Fset_process_datagram_address)
955         (Fset_network_process_options, server_accept_connection):
956         Fix some int/Lisp_Object confusions (thank you union types).
958 2002-04-01  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
960         * msdos.c: Rename x_autoselect_window_p to autoselect_window_p.
962         * w32term.c: Likewise.
963         (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
965         * keyboard.c (Qselect_window): New symbol.
966         (head_table): Use it.
967         (keys_of_keyboard): Bound select-window event to handle-select-window.
968         (kbd_buffer_get_event): Make a Lisp event from SELECT_WINDOW_EVENT.
970         * xterm.c: Rename x_autoselect_window_p to autoselect_window_p.
971         (last_window): New variable.
972         (XTread_socket): Generate SELECT_WINDOW_EVENTs.
973         (note_mouse_movement): Remove reimplemented code in #if 0.
974         (XTread_socket): Generate SELECT_WINDOW_EVENTs only for
975         Emacs windows.
977         * termhooks.h (enum event_kind): New event type `SELECT_WINDOW_EVENT'.
979 2002-03-31  Gerd Moellmann  <gerd@gnu.org>
981         * xterm.c (x_get_char_face_and_encoding): Add parameter DISPLAY_P.
982         Callers changed.
984 2002-03-30  Richard M. Stallman  <rms@gnu.org>
986         * window.c (window_scroll_pixel_based): Exit the move_it_by_lines
987         loop whenever it stops making progress.
989         * widget.c (set_frame_size): Don't call change_frame_size.
991 2002-03-30  Gerd Moellmann  <gerd@gnu.org>
993         * dispnew.c (direct_output_for_insert):
994         Call mark_window_display_accurate.
996 2002-03-29  Jason Rumney  <jasonr@gnu.org>
998         * w32term.c (w32_draw_relief_rect): Fix calculations of line lengths.
1000 2002-03-29  Eli Zaretskii  <eliz@is.elta.co.il>
1002         * Makefile.in (lread.o): Depend on coding.h.
1004         * lread.c (openp, Fload): Encode the file name before passing it
1005         to `stat', `access', and `emacs_open'.
1006         (openp): GCPRO the encoded file name.  Don't recompute Lisp
1007         strings unnecessarily.
1009 2002-03-29  Kim F. Storm  <storm@cua.dk>
1011         * fns.c (Flax_plist_put): Doc fix.
1013 2002-03-28  Miles Bader  <miles@gnu.org>
1015         * process.c (DATAGRAM_CONN_P): Make sure PROC is really a process.
1017 2002-03-27  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1019         * process.c (set-network-process-options): Add usage.
1020         (make-network-process): Doc fix.
1022 2002-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
1024         * emacs.c (Fdump_emacs): Fix a typo in "command-line-processed".
1026 2002-03-26  Richard M. Stallman  <rms@gnu.org>
1028         * fns.c (Fsubstring_no_properties): New function.
1029         (Flax_plist_get, Flax_plist_put): New functions.
1030         (syms_of_fns): defsubr them.
1032         * xdisp.c (update_menu_bar): Test only update_mode_lines;
1033         don't test or alter w->update_mode_line.
1035         * window.c (Fdisplay_buffer): Doc fix.
1037 2002-03-24  Richard M. Stallman  <rms@gnu.org>
1039         * regex.c (GET_UNSIGNED_NUMBER): Give proper error for spaces.
1041 2002-03-24  Gerd Moellmann  <gerd@gnu.org>
1043         * eval.c (Qdeclare, Vmacro_declaration_function): New variables.
1044         (Fdefmacro): Handle `(declare ...)'.
1045         (syms_of_eval) <Qdeclare>: Initialize and staticpro.
1046         (syms_of_eval) <Vmacro_declaration_function>: DEFVAR_LISP.
1048 2002-03-24  Jason Rumney  <jasonr@gnu.org>
1050         * w32fns.c (xbm_scan, xbm_load_image, xbm_read_bitmap_data)
1051         (xbm_file_p): Add prototypes.
1052         (xbm_format, xbm_image_p): Sync with xfns.c.
1053         (reflect_byte): New function.
1054         (xbm_read_bitmap_data): Sync with xfns.c, adapt for Windows.
1055         (xbm_load_image): Create bitmaps with a depth of 1.
1056         (init_xfns): Enable XBM images.
1058 2002-03-23  Jason Rumney  <jasonr@gnu.org>
1060         * w32term.c (w32_handle_tool_bar_click): Detect up and down events
1061         correctly.  Do not pass up_modifier to keyboard buffer.
1063         * w32fns.c [HAVE_IMAGES, HAVE_PBM]: Remove conditionals.
1065 2002-03-22  Stefan Monnier  <monnier@cs.yale.edu>
1067         * Makefile.in (bootstrapclean): New target.
1068         (bootstrap-temacs, bootstrap-doc): Remove.
1069         (bootstrap-emacs): Use a bog-standard `temacs'.
1070         Don't bother to build a DOC file.
1072         * sysdep.c (wait_for_termination): Use sigsuspend rather than sigpause.
1074         * emacs.c (main): Handle --unibyte, --multibyte, and --no-loadup
1075         in temacs even if !CANNOT_DUMP.
1076         (standard_args): Keep --no-loadup even if !CANNOT_DUMP.
1078         * alloc.c (check_pure_size): Only output a warning.
1080 2002-03-22  Jason Rumney  <jasonr@gnu.org>
1082         * w32fns.c (Fx_create_frame): Enable tool-bar when images are
1083         supported.
1085         * w32term.c (zv_bits): Declare as short, for word alignment.
1086         (w32_read_socket) <WM_XBUTTONUP>: Fix last change.
1087         (syms_of_w32term): Define x-use-underline-position-properties.
1089         * w32fns.c (x_set_cursor_color): Set cursor_gc as well.
1090         (clear_image_cache): Block input, fix logic, clear matrices in
1091         all frames that share this cache.
1093 2002-03-22  Eli Zaretskii  <eliz@is.elta.co.il>
1095         * emacs.c (main): Update the Copyright year in the blurb printed
1096         by "emacs --version".
1098         * xdisp.c (message_with_string): Fix syntax of a call to GCPRO2.
1100         * xterm.c (XTread_socket): If XK_ISO_Lock and
1101         XK_ISO_Last_Group_Lock are defined, handle keysyms between
1102         XK_ISO_Lock and XK_ISO_Last_Group_Lock similarly to Mode_switch.
1104 2002-03-21  Kim F. Storm  <storm@cua.dk>
1106         * keyboard.c (menu_bar_items): Mostly undo 2002-02-20 patch, so
1107         menu-bar bindings in keymap and local-map properties _are_ used.
1108         But try keymap property first in accordance with 2002-01-03 patch.
1109         Added comment describing why this is not always reliable.
1110         (tool_bar_items): Ditto for tool-bar.
1112 2002-03-21  Jason Rumney  <jasonr@gnu.org>
1114         * w32fns.c (x_clear_image_1): Disable color table code.
1116 2002-03-21  Kim F. Storm  <storm@cua.dk>
1118         * lisp.h (DEFUN) [USE_NONANSI_DEFUN]: The 2001-10-17 patch
1119         removed the wrong version of the DEFUN macro; fixed it.
1121         * fns.c (Ffeaturep): Allow subfeature to be a list (test using
1122         Fmember rather than Fmemq).
1123         (Fprovide): Check that subfeatures is a list.
1125         * process.c (QCfeature, QCdatagram): Removed variables.
1126         (QCtype, Qdatagram): New variables.
1127         (network_process_featurep): Removed function.
1128         (Fmake_network_process): Removed :feature check.
1129         Use :type 'datagram instead of :datagram t to create a datagram
1130         socket.  This allows us to add other connection types (e.g. raw
1131         sockets) later in a consistent manner.
1132         (init_process) [subprocess, HAVE_SOCKETS]: Provide list of
1133         supported subfeatures for feature make-network-process.
1134         (syms_of_process) [subprocess]: Remove QCfeature and QCdatagram.
1135         Intern and staticpro QCtype and Qdatagram.
1136         (syms_of_process) [!subprocess]: Intern and staticpro QCtype.
1138         * xfns.c: (QCtype): Remove duplicate declaration and
1139         initialization (is now declared in process.c).
1141         * w32fns.c: (QCtype): Remove duplicate declaration and
1142         initialization (is now declared in process.c).
1144 2002-03-21  Richard M. Stallman  <rms@gnu.org>
1146         * regex.c (DISCARD_FAILURE_REG_OR_COUNT): New macro.
1147         (CHECK_INFINITE_LOOP): Use DISCARD_FAILURE_REG_OR_COUNT
1148         when jumping to `fail' to avoid undoing reg changes in the
1149         last iteration of the loop.
1150         (GET_UNSIGNED_NUMBER): Skip spaces around the number.
1152         * Makefile.in (dispnew.o, sysdep.o, xdisp.o, xselect.o, alloc.o):
1153         Depend on process.h.
1155 2002-03-20  Jason Rumney  <jasonr@gnu.org>
1157         Most of the following changes are still conditional on HAVE_IMAGES
1158         which is not set by default on Windows.
1160         * emacs.c (main) [WINDOWSNT]: Call init_xfns.
1162         * w32fns.c (x_set_cursor_color): Set foreground of cursor, not frame.
1163         (Fimage_size, Fimage_mask_p, XPutPixel): New functions.
1164         (four_corners_best, x_clear_image_1, x_clear_image)
1165         (x_alloc_image_color, postprocess_image)
1166         (x_create_x_image_and_pixmap, x_destroy_x_image, xbm_load_image)
1167         (x_from_x_colors, x_disable_image, pbm_load): Adapt for Windows.
1168         (init_xfns, syms_of_w32fns): Initialize image functions and constants.
1170         * w32gui.h (struct XImage): Define.
1172         * w32term.c (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to
1173         extract mouse co-ordinates.
1175 2002-03-20  Jason Rumney  <jasonr@gnu.org>
1177         * w32.c (init_winsock): Dynamically load new server and UDP
1178         socket functions.
1179         (socket_to_fd): New function.
1180         (sys_socket): Use it.
1181         (sys_setsockopt, sys_listen, sys_getsockname, sys_accept)
1182         (sys_recvfrom, sys_sendto): New wrapper functions.
1184         * process.c (QCfamily, QCfilter): Remove duplicate declaration
1185         and initialization.
1187         * makefile.w32-in (LIBS): Remove $(WSOCK32).
1189 2002-03-20  Eli Zaretskii  <eliz@is.elta.co.il>
1191         * process.c (conv_sockaddr_to_lisp, conv_lisp_to_sockaddr): Don't
1192         use "sun" as a variable, it's a predefined constant on Sun
1193         machines.
1195 2002-03-20  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1197         * bytecode.c (Fbyte_code): Revert last change.
1199 2002-03-19  Kim F. Storm  <storm@cua.dk>
1201         * makefile.w32-in (LIBS): Add $(WSOCK32).
1202         From David Ponce <dponce@voila.fr>.
1204 2002-03-18  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1206         * process.c (wait_reading_process_input): Move variables `pname'
1207         and `pnamelen' down where they are used.
1209         * bytecode.c (Fbyte_code): Discard unused computed value to
1210         prevent gcc warning.
1212         * lisp.h (Fplist_member): Add prototype.
1214 2002-03-18  Kim F. Storm  <storm@cua.dk>
1216         * config.in: Add HAVE_SENDTO, HAVE_RECVFROM, HAVE_SETSOCKOPT,
1217         HAVE_GETSOCKOPT, HAVE_GETPEERNAME, HAVE_GETSOCKNAME, and
1218         HAVE_SYS_UN_H.
1220         * process.c: Define HAVE_LOCAL_SOCKETS based on HAVE_SYS_UN_H.
1221         Remove explicit GNU_LINUX settings for datagram support.
1223 2002-03-18  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1225         * process.c (Fmake_network_process): Remove unused variable `sa'.
1226         Doc fix.  Add usage:.
1227         (set_socket_options): Remove unused variables `optnum' and
1228         `opttype'.
1230 2002-03-17  Richard M. Stallman  <rms@gnu.org>
1232         * xdisp.c (cursor_type_changed): New variable.
1233         (redisplay_internal): Redisplay all windows if cursor_type_changed.
1234         Clear it when clearing windows_or_buffers_changed.
1235         (try_cursor_movement, redisplay_window, try_window_id)
1236         (try_window_reusing_current_matrix): Test cursor_type_changed
1237         along with windows_or_buffers_changed.
1239         * window.h (cursor_type_changed): New variable.
1241         * xfns.c (x_set_cursor_type): Set cursor_type_changed,
1242         not update_mode_lines, and always set it to 1.
1244         * xdisp.c (clear_garbaged_frames): Don't set windows_or_buffers_changed
1245         if no frames needed redrawing.
1247 2002-03-17  Kim F. Storm  <storm@cua.dk>
1249         The following changes add support for network server processes,
1250         datagram connections, and local (unix) sockets.
1252         * process.h (struct Lisp_Process): New member log.
1253         Doc fix: Member command used to indicate stopped network process.
1254         Doc fix: Member childp contains plist for network process.
1255         Doc fix: Member kill_without_query is inverse of query-on-exit flag.
1257         * process.c (Qlocal, QCname, QCbuffer, QChost, QCservice, QCfamily)
1258         (QClocal, QCremote, QCserver, QCdatagram, QCnowait, QCnoquery,QCstop)
1259         (QCcoding, QCoptions, QCfilter, QCsentinel, QClog, QCfeature):
1260         New variables.
1261         (NETCONN1_P): New macro.
1262         (DATAGRAM_SOCKETS): New conditional symbol.
1263         (datagram_address): New array.
1264         (DATAGRAM_CONN_P, DATAGRAM_CHAN_P): New macros.
1265         (status_message): Use concat3.
1266         (Fprocess_status): Add `listen' status to doc string.  Return `stop'
1267         for a stopped network process.
1268         (Fset_process_buffer): Update contact plist for network process.
1269         (Fset_process_filter): Ditto.  Don't enable input for stopped
1270         network processes.  Server must listen, even if filter is t.
1271         (Fset_process_query_on_exit_flag, Fprocess_query_on_exit_flag):
1272         New functions.
1273         (Fprocess_kill_without_query): Removed.  Now defined in simple.el.
1274         (Fprocess_contact): Added KEY argument.  Handle datagrams.
1275         (list_processes_1): Optionally show only processes with the query
1276         on exit flag set.  Dynamically adjust column widths.  Omit tty
1277         column if not needed.  Report stopped network processes.
1278         Identify server and datagram network processes.
1279         (Flist_processes): New optional arg `query-only'.
1280         (conv_sockaddr_to_lisp, get_lisp_to_sockaddr_size)
1281         (conv_lisp_to_sockaddr, set_socket_options)
1282         (network_process_featurep, unwind_request_sigio): New helper functions.
1283         (Fprocess_datagram_address, Fset_process_datagram_address):
1284         (Fset_network_process_options): New lisp functions.
1285         (Fopen_network_stream): Removed.  Now defined in simple.el.
1286         (Fmake_network_process): New lisp function.  Code is based on previous
1287         Fopen_network_stream, but heavily reworked with new property list based
1288         argument list, support for datagrams, server processes, and local
1289         sockets in addition to old client-only functionality.
1290         (server_accept_connection): New function.
1291         (wait_reading_process_input): Use it to handle incoming connects.
1292         Do not enable input on a new connection if process is stopped.
1293         (read_process_output): Handle datagram sockets. Use 2k buffer for them.
1294         (send_process): Handle datagram sockets.
1295         (Fstop_process, Fcontinue_process): Apply to network processes.  A stopped
1296         network process is indicated by setting command field to t .
1297         (Fprocess_send_eof): No-op if datagram connection.
1298         (Fstatus_notify): Don't read input for a stream server socket or a
1299         stopped network process.
1300         (init_process): Initialize datagram_address array.
1301         (syms_of_process): Intern and staticpro new variables, defsubr new
1302         functions.
1304 2002-03-16  Jason Rumney  <jasonr@gnu.org>
1306         * w32fns.c (w32_to_all_x_charsets): Return correct type in
1307         startup case.
1309 2002-03-16  Richard M. Stallman  <rms@gnu.org>
1311         * xdisp.c (redisplay_internal, redisplay_windows):
1312         Use list_of_error to call internal_condition_case_1.
1313         (safe_eval, safe_call): Pass Qt to internal_condition_case_{1,2}
1314         so as to catch all errors with no possibility of debugger redisplay.
1315         (list_of_error): New variable.
1316         (syms_of_xdisp): Init and staticpro it.
1318         * print.c (print_object): Delete `\ ' from printed rep of frame.
1320 2002-03-15  Eli Zaretskii  <eliz@is.elta.co.il>
1322         * msdos.c (dos_rawgetc): Disable the x-autoselect-window feature,
1323         until its implementation is fixed.
1325 2002-03-14  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1327         * xfns.c (png_load): Remove unused variable `gamma_str'.
1329 2002-03-14  Richard M. Stallman  <rms@gnu.org>
1331         * xfns.c (x_real_positions): Handle failure in XQueryTree.
1333 2002-03-14  Miles Bader  <miles@gnu.org>
1335         * intervals.c (adjust_for_invis_intang): New function.
1336         (set_point_both): Use `adjust_for_invis_intang' to do most of the
1337         work for dealing with invisible+intangible regions.  Do so before
1338         and after both forward and backward movements, to handle both
1339         front-sticky and rear-sticky cases.
1340         * textprop.c (text_property_stickiness): Function moved here from
1341         `editfns.c'.
1342         * intervals.h (text_property_stickiness): New declaration.
1343         * editfns.c (char_property_eq): Function removed.
1344         (text_property_stickiness): Function moved to `textprop.c'.
1346 2002-03-13  Jason Rumney  <jasonr@gnu.org>
1348         * config.in: Add STRFTIME_NO_POSIX2.
1350         * strftime.c (my_strftime) [STRFTIME_NO_POSIX2]: Handle %h, %EX
1351         and %OX when underlying strftime does not.
1353 2002-03-13  Stefan Monnier  <monnier@cs.yale.edu>
1355         * xterm.c (x_set_toolkit_scroll_bar_thumb) <USE_MOTIF>:
1356         Use a fixed-size thumb (based on an ad-hoc estimate of 30 chars per
1357         line) to avoid annoying flicker.
1358         (xm_scroll_callback): Get rid of the now unnecessary kludge.
1359         (XTread_socket): Mark it static.
1361         * xdisp.c (display_mode_element): Fix int/Lisp_Object mixup.
1363 2002-03-13  Kim F. Storm  <storm@cua.dk>
1365         * puresize.h (BASE_PURESIZE): Increase to 775000.
1367 2002-03-12  Juanma Barranquero  <lektu@terra.es>
1369         * editfns.c (syms_of_editfns): Fix typo.
1371 2002-03-12  Gerd Moellmann  <gerd@gnu.org>
1373         * xsmfns.c: Include stdio.h because termhooks.h needs it.
1374         Include termopt.h for interrupt_input.
1376 2002-03-11  Andreas Schwab  <schwab@suse.de>
1378         * coding.c (syms_of_coding) <file-coding-system-alist>: Doc fix.
1380 2002-03-11  Gerd Moellmann  <gerd@gnu.org>
1382         * xterm.c (note_mouse_movement): Put code for
1383         x_autoselect_window_p in #if 0.
1385         * lread.c (Fload): Don't assume that message_with_string uses the
1386         string it is given like a C string.
1388 2002-03-10  Jan D.  <Jan.Djarv@mbox200.swipnet.se>
1390         * xterm.h (x_session_check_input, x_session_initialize): Declared.
1392         * xterm.c: (XTread_socket): Add call to x_session_check_input and
1393         x_session_have_connection.
1394         (x_initialize): Add call to x_session_initialize.
1396         * termhooks.h (enum event_kind): Add save_session_event.
1398         * keyboard.c: Add Emacs event save_session_event.
1400         * emacs.c (main): Add call to syms_of_xsmfns.
1402         * lisp.h: Declare syms_of_xsmfns as extern.
1404         * config.in: Add HAVE_X_SM.
1406         * Makefile.in (LIBXT): Add -lSM -lICE
1407         if HAVE_X_SM and not USE_X_TOOLKIT.
1408         (XOBJ): New file xsmfns.c added.
1410         * xsmfns.c: New file for X session management.
1412 2002-03-09  Jason Rumney  <jasonr@gnu.org>
1414         * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
1415         read-only when setting modified time.
1417 2002-03-08  Gerd Moellmann  <gerd@gnu.org>
1419         * xdisp.c (move_it_vertically_backward): At the end of the
1420         function, when moving forward by lines, treat terminal frames
1421         specially.
1423         * keyboard.c (echo_char): Make sure to add a separator between
1424         keys even if echo_dash hasn't been called.
1426         * xdisp.c: Use new string macros.
1427         (update_echo_area): Pass number of bytes to message3 instead of
1428         number of chars.
1429         (set_message_1): Don't access a string's size_byte directly.
1430         (decode_mode_spec_coding): Use number of bytes of eoltype string
1431         instead number of chars.
1433         * lisp.h (SREF, SDATA, SCHARS, SBYTES, SMBP): New macros.
1435 2002-03-08  Juanma Barranquero  <lektu@terra.es>
1437         * w32fns.c (Fx_display_color_cells): Force 24+ bit color depths to
1438         24-bit.
1440 2002-03-06  Jason Rumney  <jasonr@gnu.org>
1442         * w32term.c (x_draw_hollow_cursor): Draw same size as block cursor.
1444 2002-03-06  Gerd Moellmann  <gerd@gnu.org>
1446         * keyboard.c (echo_prompt, echo_char, echo_dash, echo_now)
1447         (cancel_echoing, echo_length, echo_truncate): Changed to
1448         work with new kboard definition.
1449         (echo_now): Use message3_nolog instead of message2_nolog.
1451         * alloc.c (mark_kboards): Mark echo_string.
1453         * keyboard.h (ECHOBUFSIZE): Removed.
1454         (struct kboard): Member echoptr removed, member echobuf renamed
1455         to echo_string.
1457         * xdisp.c (message_with_string): Use Fformat instead of doprnt and
1458         message3 instead of message2 to display the message using STRING's
1459         text properties.
1461 2002-03-05  Andreas Schwab  <schwab@suse.de>
1463         * xdisp.c (hscroll_margin): Change to EMACS_INT.
1465 2002-03-05  Per Abrahamsen  <abraham@dina.kvl.dk>
1467         * frame.c (default-frame-alist): Explain that setting it doesn't
1468         affect existing frames.
1470 2002-03-05  Stefan Monnier  <monnier@cs.yale.edu>
1472         * indent.c (skip_invisible): Fix my brain fart.
1474         * dispnew.c (sit_for): Don't wait if executing a kbd macro.
1476 2002-03-04  Stefan Monnier  <monnier@cs.yale.edu>
1478         * dosfns.c, dosfns.h, dispnew.c, dispextern.h, commands.h, charset.c,
1479         * alloc.c, abbrev.c, emacs.c, eval.c, keyboard.c, keyboard.h,
1480         * lisp.h, lread.c, sysdep.c, termcap.c, termchar.h, w32term.c,
1481         * window.c, xdisp.c, xselect.c, xterm.c: Change defvar_int definition
1482         and variables to use EMACS_INT instead of just int.
1484         * buffer.c (syms_of_buffer): Allow non-string `mode-name'.
1486 2002-03-04  Eli Zaretskii  <eliz@is.elta.co.il>
1488         * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
1489         environment, pass it down with corrected value.
1491 2002-03-04  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1493         * lread.c (read_filtered_event): Do not call start_hourglass
1494         before returning.
1496 2002-03-04  Juanma Barranquero  <lektu@terra.es>
1498         * w32term.c (x_display_and_set_cursor): Fix typo.
1500 2002-03-03  Richard M. Stallman  <rms@gnu.org>
1502         * fileio.c (Fmake_temp_name): Doc fix.
1504 2002-03-03  Gary Wong  <gtw@gnu.org>
1506         * termcap.c [!emacs]: Replace ospeed for building standalone
1507         libtermcap, for binary compatibility.
1509         * tparam.c [!emacs]: Move #define of bcopy to after string.h.
1511 2002-03-03  Richard M. Stallman  <rms@gnu.org>
1513         * xrdb.c (file_p): Rename arg `path' to `filename'.
1515         * abbrev.c (Fexpand_abbrev): Increment plist as use count
1516         only if it is an integer.
1518         * xfns.c (png_load): Set screen_gamma based on f->gamma.
1519         If png_get_sRGB gives an answer, call png_set_gamma
1520         using the default image gamma value.
1522         * lread.c (read1): When reading from a file, default string to
1523         multibyte only if it has some multibyte characters.
1525         * print.c (print_object): Output multibyte chars 128...255
1526         using \x even if ! print_escape_multibyte.
1528         * xdisp.c (display_mode_element): Move the places where
1529         bytepos, charpos, this, and lisp_string are set.
1530         Use lisp_string to set bytepos.
1532         * xdisp.c (redisplay_internal):
1533         Call clear_image_cache only if HAVE_WINDOW_SYSTEM.
1535         * xdisp.c (display_mode_element): Merge properties specified with
1536         :propertize onto those that come with the string.
1538 2002-03-03  Eli Zaretskii  <eliz@is.elta.co.il>
1540         * xdisp.c (syms_of_xdisp) <auto-hscroll-mode>: Renamed from
1541         automatic-hscrolling.  Users changed.
1542         <hscroll-margin>: Renamed from automatic-hscroll-margin.
1543         Users changed.
1544         <hscroll-step>: Renamed from automatic-hscroll-step.  Users changed.
1546 2002-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
1548         * buffer.c (syms_of_buffer) <buffer-file-coding-system>: Doc fix.
1550 2002-03-02  Kim F. Storm  <storm@cua.dk>
1552         * window.c (Fminibuffer_selected_window): New function.
1553         (syms_of_window): Defsubr it.
1555 2002-03-01  Kim F. Storm  <storm@cua.dk>
1557         * window.h (struct window): New member phys_cursor_width.
1559         * window.c (make_window, replace_window): Init phys_cursor_width.
1561         * xterm.c (x_display_and_set_cursor): Blink box cursor using
1562         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
1564         * w32term.c (x_display_and_set_cursor): Blink box cursor using
1565         hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
1567         * lisp.h (GCPRO6): New macro.
1569         * process.c (Fopen_network_stream): Use GCPRO6.
1571 2002-03-01  Kim F. Storm  <storm@cua.dk>
1573         * process.c (Qconnect, Qfailed): New variables.
1574         (syms_of_process): Intern and staticpro them.
1575         (Fprocess_status): Document connect and failed return values.
1576         [NON_BLOCKING_CONNECT]: New conditional.
1577         (connect_wait_mask, num_pending_connects): New variables.
1578         (status_message): Convert Qfailed status.
1579         (Fopen_network_stream): Added support for non-blocking connect.
1580         New optional args: filter, sentinel, non_blocking.  Doc updated.
1581         [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]:  Merged common code.
1582         (deactivate_process): Handle pending non-blocking connect.
1583         (wait_reading_process_input): Poll for status of non-blocking
1584         connects.  Exec sentinel directly when connect succeeds.
1585         (status_notify): Don't read process output if not yet connected.
1587 2002-02-28  Kim F. Storm  <storm@cua.dk>
1589         * window.c: (minibuf_selected_window): Renamed from
1590         Vminibuf_selected_window.  Users changed.
1591         (syms_of_window): Staticpro it.
1593 2002-02-26  Kim F. Storm  <storm@cua.dk>
1595         The following changes add a new Vminibuf_selected_window variable
1596         which is similar to Vminibuf_scroll_window, but which is only set
1597         on entry to the minibuffer (from a non-minibuffer window):
1599         * window.c: (Vminibuf_selected_window): New variable.
1600         (struct save_window_data): New member minibuf_selected_window.
1601         (Fset_window_configuration): Restore Vminibuf_selected_window.
1602         (Fcurrent_window_configuration): Save Vminibuf_selected_window.
1603         Set minibuf_scroll_window member to nil if minibuf_level is 0.
1604         (compare_window_configurations): Compare minibuf_selected_window.
1606         * window.h: (Vminibuf_selected_window): Declare extern.
1608         * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
1609         entry to minibuffer or on entry from a non-minibuffer window.
1611         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
1612         Vminibuf_selected_window instead of Vminibuf_scroll_window.
1614         * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
1615         instead of Vminibuf_scroll_window when deciding in which window
1616         the region should be highlighted.  Consequently, the region remains
1617         highlighteded even when a completion buffer is also displayed.
1619 2002-02-26  Eli Zaretskii  <eliz@is.elta.co.il>
1621         * fileio.c (Fsubstitute_in_file_name): Fix the change from
1622         2002-02-08.
1624         * xselect.c (Qcompound_text_with_extensions): Renamed from
1625         Qcompound_text_no_extensions.
1626         (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
1628 2002-02-26  Juanma Barranquero  <lektu@terra.es>
1630         * w32proc.c (syms_of_ntproc): Doc fix.
1632 2002-02-24  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1634         * intervals.h: Include "dispextern.h" unconditionally.
1636 2002-02-24  Jason Rumney  <jasonr@gnu.org>
1638         * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
1639         and disp-table.elc.
1640         (lisp): Add emacs-lisp/backquote.elc.
1642 2002-02-24  Kim F. Storm  <storm@cua.dk>
1644         * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
1645         The validation of the event type was too strict as it didn't
1646         allow string events; buffer names are used in bindings for
1647         menu-bar-select-buffer (see `menu-bar-update-buffers').
1649 2002-02-23  Kim F. Storm  <storm@cua.dk>
1651         The following changes rework my patch of 2002-02-06 which
1652         added command remapping by entering the commands directly into
1653         the keymaps.  Now, command remapping uses an explicit `remap'
1654         prefix in the keymaps, i.e. [remap COMMAND].
1656         * keymap.c (Qremap, remap_command_vector): New variables.
1657         (is_command_symbol): Removed function.
1658         (Fdefine_key): No longer accept a symbol for KEY.
1659         Added validation of [remap COMMAND] argument for KEY.
1660         The DEF is no longer required to be a symbol when remapping a command.
1661         (Fremap_command): New function to remap command through keymaps.
1662         (Flookup_key): Perform command remapping initiated by
1663         Fremap_command directly for speed.
1664         (Fkey_binding): Use Fremap_command for command remapping.
1665         (where_is_internal): Handle new command remapping representation.
1666         (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
1667         staticpro them.  Defsubr Fremap_command.
1669         * keymap.h (Fremap_command): Declare extern.
1670         (is_command_symbol): Remove extern.
1672         * keyboard.c (command_loop_1): Use Fremap_command for command
1673         remapping; now try command remapping for all symbols.
1675 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
1677         * coding.h (run_pre_post_conversion_on_str): Add prototype.
1679 2002-02-23  Jason Rumney  <jasonr@gnu.org>
1681         * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
1682         on the string before encoding it.
1683         (Fw32_get_clipboard_data): Run post-read-conversion on the string
1684         after decoding it.
1686         * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
1688 2002-02-23  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1690         * w32term.c (enter_timestamp): Remove unused static variable to
1691         prevent warning.
1693         * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
1695 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
1697         * w16select.c (Fw16_get_clipboard_data): Fix last change.
1699         * xselect.c (selection_data_to_lisp_data): Fix last change.
1701 2002-02-22  Jason Rumney  <jasonr@gnu.org>
1703         * w32term.h (struct w32_output): New member menu_command_in_progress.
1705         * w32menu.c (menubar_selection_callback): Free the menu and
1706         clear the menu_command_in_progress flag.
1708         * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
1709         (menu_free_timer): New variable.
1710         (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
1711         (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
1712         <WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
1713         menu command is in progress.
1714         <WM_COMMAND>: Set the menu_command_in_progress flag.
1715         Kill any menu_free_timer that is running.
1717         * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
1718         Call ExtTextOutA rather than ExtTextOut.
1720 2002-02-22  Eli Zaretskii  <eliz@gnu.org>
1722         * puresize.h (BASE_PURESIZE): Increase to 755000.
1724 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
1726         * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
1727         on the string before encoding it.
1728         (Fw16_get_clipboard_data): Run post-read-conversion on the string
1729         after decoding it.
1731 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
1733         Support for ICCCM  Extended Segments in X selections:
1735         * xselect.c <Qcompound_text_no_extensions>: New variable.
1736         (syms_of_xselect): Intern and staticpro it.
1737         (selection_data_to_lisp_data): Run post-read-conversion on decoded
1738         selection text.
1739         (lisp_data_to_selection_data): If next-selection-coding-system is
1740         compound-text-no-extensions, set the type of selection to be
1741         compound-text.
1743         * xterm.h (x_encode_text): Update prototype.
1745         * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
1746         callers changed.  If SELECTIONP is non-zero, run the
1747         pre-write-conversion function before encoding the selection text.
1749 2002-02-21  Kim F. Storm  <storm@cua.dk>
1751         * frame.c (syms_of_frame): Change mouse-highlight default to t.
1753         * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]:
1754         Correct composing of language-change event.
1756 2002-02-20  Kim F. Storm  <storm@cua.dk>
1758         * keyboard.c (menu_bar_items): Don't include keymap or local-map
1759         bindings at PT when building menu (the menu is not updated often
1760         enough for this to work reliable).
1761         (tool_bar_items): Likewise.
1762         (current_active_maps): Removed unused (and buggy) function.
1764 2002-02-20  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1766         * xfns.c (gif_load): Use correct width and height for GIF images.
1768 2002-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
1770         * floatfns.c (Fatan): Accept an optional second arg and call
1771         atan2 if passed 2 args.
1773 2002-02-18  Jason Rumney  <jasonr@gnu.org>
1775         * w32term.c (glyph_rect): Determine the row and glyph more precisely.
1777 2002-02-17  Jason Rumney  <jasonr@gnu.org>
1779         * w32term.c (x_autoselect_window_p): New variable.
1780         (syms_of_w32term): DEFVAR_BOOL and initialize it.
1781         (note_mouse_movement): Use it.
1783         * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
1785         * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
1787         * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
1788         New variables.
1789         (syms_of_w32fns): Intern and staticpro them.
1790         (x_frame_parms) <"fullscreen">: New parameter.
1791         (x_fullscreen_move, x_set_fullscreen): New functions.
1792         (x_set_frame_parameters): Support Qfullscreen.
1793         (x_real_positions): Save x/y_pixels_diff frame params.
1794         (x_figure_window_size): Support full-screen frames.
1795         (Fx_create_frame): Default the fullscreen parameter.
1797         * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
1798         (x_fullscreen_adjust): New functions.
1799         (w32_read_socket) <WM_WINDOWPOSCHANGED>:  Don't resize to
1800         fullscreen.  Call x_check_fullscreen_move, and set the
1801         want_fullscreen member of output_data.w32
1802         <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
1804         * w32term.h: New enum for FULLSCREEN_* constants.
1805         (struct w32_output): New members want_fullscreen, x_pixels_diff,
1806         y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
1807         (x-fullscreen-adjust): New prototype.
1809 2002-02-17  Kim F. Storm  <storm@cua.dk>
1811         * frame.c: (Vmouse_highlight): New variable.
1812         (syms_of_frame): DEFVAR_LISP it.
1814         * frame.h: (Vmouse_highlight): Declare extern.
1816         * xterm.h (struct x_display_info): Add mouse_face_hidden.
1818         * xterm.c (disable_mouse_highlight): Removed variable.
1819         (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
1820         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
1821         (XTread_socket): Turn mouse_face_hidden off after mouse movement,
1822         and on after keyboard input.
1823         (x_term_init): Initialize mouse_face_hidden.
1825         * msdos.h (struct display_info): Add mouse_face_hidden.
1827         * msdos.c (disable_mouse_highlight): Removed variable.
1828         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
1829         (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
1830         (internal_terminal_init): Initialize mouse_face_hidden.
1831         (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
1832         and on after keyboard input.
1834         * w32term.h (struct w32_display_info): Add mouse_face_hidden.
1836         * w32term.c (disable_mouse_highlight): Removed variable.
1837         (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
1838         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
1839         (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
1840         and on after keyboard input.
1841         (w32_initialize_display_info): Initialize mouse_face_hidden.
1843 2002-02-16  Eli Zaretskii  <eliz@is.elta.co.il>
1845         * msdos.c (last_mouse_window): New variable.
1846         (dos_rawgetc): Fix last change--if the mouse is in the same window
1847         as recorded in last_mouse_window, don't select this window.
1849         * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
1851         * msdos.c (x_autoselect_window_p): New variable.
1852         (syms_of_msdos): Defvar it.
1853         (dos_rawgetc): If x_autoselect_window_p is set, select the window
1854         in which the last mouse movement occured, unless it is already
1855         selected.
1857         * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
1858         New variables.
1859         (syms_of_xdisp): DEVFAR them.
1860         (hscroll_window_tree): Use automatic_hscroll_margin and
1861         Vautomatic_hscroll_step to compute the amount of window scrolling.
1863 2002-02-16  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1865         * xterm.c (x-autoselect-window): New variable.
1866         (note_mouse_movement): Use it.
1868         * keyboard.c: Do not include "systime.h" twice.
1870 2002-02-15  Andreas Schwab  <schwab@suse.de>
1872         * puresize.h (BASE_PURESIZE): Increase to 9/5.
1874         * alloc.c (NSTATICS): Increase to 1280.
1876 2002-02-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
1878         * alloc.c (NSTATICS): Bump to 1026.
1880         * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
1881         (Vx_super_keysym): New variables.
1882         (syms_of_xterm): DEFVAR_LISP them.
1883         (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
1884         variables to determine which keys to use for the various modifiers.
1886 2002-02-13  Kim F. Storm  <storm@cua.dk>
1888         * window.c: (Vmode_line_in_non_selected_windows): Removed.
1889         (mode_line_in_non_selected_windows): New variable.
1890         (syms_of_window): DEFVAR_BOOL it.
1892         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3):
1893         Use mode_line_in_non_selected_windows.
1894         (mode_line_in_non_selected_windows): Declare extern.
1895         (Vmode_line_in_non_selected_windows): Removed extern.
1897 2002-02-13  Richard M. Stallman  <rms@gnu.org>
1899         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
1900         (Fthis_single_command_keys, Fthis_single_command_raw_keys)
1901         (Fclear_this_command_keys): Doc fixes.
1903         * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
1904         (update_face_from_frame_parameter): Increment face_change_count
1905         and windows_or_buffers_changed to force redisplay using changed faces.
1907         * xdisp.c (QCpropertize): New variable.
1908         (mode_line_proptrans_alist): New variable.
1909         (display_mode_element): New arg PROPS; all calls changed.
1910         Implement this, for strings.
1911         Handle literal output of strings by sharing the
1912         main-line code for strings, using local var `literal'.
1913         Handle :propertize feature.
1914         (syms_of_xdisp): Initialze and staticpro QCpropertize and
1915         mode_line_proptrans_alist.
1917 2002-02-11  Kim F. Storm  <storm@cua.dk>
1919         * window.c: (Vmode_line_in_non_selected_windows): New variable.
1920         (syms_of_window): DEFVAR_LISP it.
1922         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
1923         (CURRENT_MODE_LINE_FACE_ID): Use it.
1924         (Vmode_line_in_non_selected_windows): Declare extern.
1926         * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
1927         to get mode line face.
1929 2002-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
1931         * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
1932         variables; cus-start.el doesn't need them anymore.
1934 2002-02-09  Kim F. Storm  <storm@cua.dk>
1936         * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
1937         reduction.  This fixes a display problem where stray newlines were
1938         inserted in the window (corrected by C-l).  Clarified code (IMHO).
1940 2002-02-09  Eli Zaretskii  <eliz@is.elta.co.il>
1942         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
1944         * xdisp.c (display_mode_lines): Fix last change.
1946 2002-02-09  Jason Rumney  <jasonr@gnu.org>
1948         * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
1949         match each other.
1950         (w32_load_system_font): Prevent Cleartype fonts from loading.
1951         (Fx_show_tip): Ensure tip frames are above other topmost windows.
1953 2002-02-09  Kim F. Storm  <storm@cua.dk>
1955         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
1956         (CURRENT_MODE_LINE_HEIGHT): Use it.
1957         (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
1959         * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
1960         (pos_visible_p, handle_face_prop): Likewise.
1961         (display_mode_lines): Likewise, but for the real selected window.
1962         (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
1964         * xfaces.c (Qmode_line_inactive): New face variable for mode-line
1965         in non-selected windows.
1966         (realize_basic_faces): Realize it.
1967         (syms_of_term): Intern and staticpro it.
1969 2002-02-08  Kim F. Storm  <storm@cua.dk>
1971         * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
1972         Changed mail addresses to emacs-devel@gnu.org.
1974 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
1976         * fileio.c (Fsubstitute_in_file_name): If the file name includes
1977         ~user, and there's no such user, don't discard everything before ~user.
1979         * floatfns.c (Fround): Doc fix.
1981 2002-02-08  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
1983         * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
1985 2002-02-07  Stefan Monnier  <monnier@cs.yale.edu>
1987         * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1989 2002-02-07  Kim F. Storm  <storm@cua.dk>
1991         * keymap.c (where_is_internal): Only check whether definition is
1992         remapped if it fulfills is_command_symbol.
1994 2002-02-07  Andreas Schwab  <schwab@suse.de>
1996         * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
1998         * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
2000 2002-02-06  Kim F. Storm  <storm@cua.dk>
2002         * keymap.c (Fdefine_key): Allow symbol as KEY argument for
2003         defining command remapping.  Doc updated.
2004         (Flookup_key): Remap command through keymap if KEY is a symbol.
2005         (is_command_symbol): New function.
2006         (Fkey_binding): Use it.  New optional argument NO-REMAP.
2007         Doc updated.  Callers changed.  Perform command remapping via
2008         recursive call unless that arg is non-nil.
2009         (where_is_internal): New argument no_remap.  Callers changed.
2010         Call recursively to find original key bindings for a remapped
2011         comand unless that arg is non-nil.
2012         (Fwhere_is_internal): New optional argument NO-REMAP.
2013         Doc updated.  Callers changed.  Pass arg to where_is_internal.
2015         * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
2016         (is_command_symbol): Added prototype.
2018         * keyboard.c (Vthis_original_command): New variable.
2019         (syms_of_keyboard): DEFVAR_LISP it.
2020         (command_loop_1): Set it, and perform command remapping.
2022 2002-02-06  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2024         * keyboard.c (recursive_edit_1): Call cancel_hourglass unconditionally.
2026 2002-02-06  Jason Rumney  <jasonr@gnu.org>
2028         * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
2030 2002-02-06  Eli Zaretskii  <eliz@is.elta.co.il>
2032         * charset.c (get_charset_id): Use if-else instead of ?:.
2034 2002-02-06  Richard M. Stallman  <rms@gnu.org>
2036         * filelock.c (S_ISLNK): Define if not defined.
2038 2002-02-03  Richard M. Stallman  <rms@gnu.org>
2040         * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
2042         * lread.c (read1): Redesign strategy for force_multibyte and
2043         force_singlebyte.  Now is_multibyte records whether read_buffer
2044         is multibyte.  Encountering any multibyte character makes it so.
2046 2002-02-02  Stefan Monnier  <monnier@cs.yale.edu>
2048         * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
2049         with the same sequence, map that sequence to f10 rather than f0.
2051 2002-02-03  Andreas Schwab  <schwab@suse.de>
2053         * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
2054         latter never being defined on GNU/Linux.
2056 2002-02-02  Eli Zaretskii  <eliz@is.elta.co.il>
2058         * xfaces.c (realize_default_face): Don't set the weight and slant
2059         of the default face to Qnormal, unless these attributes are
2060         unspecified.
2062 2002-02-02  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2064         * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
2065         Call cancel_hourglass unconditionally.
2067         * eval.c (Fsignal): Remove duplicated declaration of
2068         the variable `display_hourglass_p'.
2070 2002-01-31  Richard M. Stallman  <rms@gnu.org>
2072         * editfns.c (region_limit): Nicer error message.
2074         * coding.c (decode_composition_emacs_mule):
2075         Give up if NCOMPONENT gets too large to index `component'.
2077         * callint.c (check_mark): New arg to specify clearer error message.
2078         Callers changed.
2080 2002-01-27  Richard M. Stallman  <rms@gnu.org>
2082         * minibuf.c (Fcompleting_read): Doc fix.
2084 2002-01-27  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2086         * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
2087         (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
2088         Fix doc-strings.
2090 2002-01-26  Richard M. Stallman  <rms@gnu.org>
2092         * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
2094         * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
2095         and scroll_up_aggressively.
2097 2002-01-26  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2099         * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
2101 2002-01-25  Stefan Monnier  <monnier@cs.yale.edu>
2103         * textprop.c (Fnext_property_change, Fnext_single_property_change)
2104         (Fprevious_property_change, Fprevious_single_property_change):
2105         Stay within the narrowed-buffer boundaries.
2107 2002-01-25  Eli Zaretskii  <eliz@is.elta.co.il>
2109         * term.c (Ftty_display_color_cells): New function.
2110         (syms_of_term): Defsubr it.
2111         (Ftty_display_color_cells, Ftty_display_color_p): Change the
2112         argument name to DISPLAY.  Doc fix.
2114         * dispextern.h: Add prototype for set_tty_color_mode and
2115         tty_setup_colors.
2117 2002-01-24  Jason Rumney  <jasonr@gnu.org>
2119         * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
2120         If region left to draw is not what was expected, mark the frame as
2121         garbaged.
2123         * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
2124         Combine the regions returned by BeginPaint and GetUpdateRect.
2126 2002-01-23  Jason Rumney  <jasonr@gnu.org>
2128         * w32term.c (x_update_window_begin): Only hide caret if
2129         w32_use_visible_system_caret is set.
2130         (x_update_window_end): Only show caret if
2131         w32_use_visible_system_caret is set.
2132         (syms_of_w32term): Handle SystemParametersInfo call failing.
2134         * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
2136 2002-01-22  Richard M. Stallman  <rms@gnu.org>
2138         * unexelf.c (unexec): Define n so as to cause compilation error
2139         for the code where people have often written n instead of nn.
2141         * .gdbinit (hookpost-run): Defined.
2143 2002-01-22  Jan D.  <Jan.Djarv@mbox200.swipnet.se>
2145         * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
2147 2002-01-21  Jan D.  <Jan.Djarv@mbox200.swipnet.se>
2149         * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
2150         if fullscreen is being set.
2152 2002-01-21  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2154         * minibuf.c (Fminibuffer_contents)
2155         (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
2156         (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
2158 2002-01-21  Richard M. Stallman  <rms@gnu.org>
2160         * window.c (check_frame_size): Fix minimum height calculation.
2162 2002-01-20  Ken Raeburn  <raeburn@gnu.org>
2164         * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
2165         height before comparison.
2166         (WINDOW_WANTS_HEADER_LINE_P): Likewise.
2168 2002-01-20  Jason Rumney  <jasonr@gnu.org>
2170         * w32term.c (w32_system_caret_width): Remove.
2171         (w32_use_visible_system_caret): New user flag.
2172         (syms_of_w32term): DEFVAR_BOOL it.  Initialize based on whether
2173         Windows reports a screen reader running.
2174         (x_update_window_begin): Hide the system caret.
2175         (x_update_window_end): Show the system caret.
2176         (x_display_and_set_cursor): Don't draw a cursor when
2177         w32_use_visible_system_caret is set.  Do not adjust width.
2179         * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
2180         (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
2181         <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
2182         the user requests it.  Use system default width when creating.
2183         <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
2185         * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
2186         New window messages.
2188 2002-01-20  Richard M. Stallman  <rms@gnu.org>
2190         * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
2192 2002-01-20  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2194         * doprnt.c (doprnt1): Fix typos in error call.
2196 2002-01-20  Eli Zaretskii  <eliz@is.elta.co.il>
2198         * unexelf.c (unexec) [__sgi]: Support the .got sections.
2200 2002-01-20  Jason Rumney  <jasonr@gnu.org>
2202         * w32term.c (w32_native_per_char_metric): Don't trust the metrics
2203         that Windows returns.  If a double check fails, try to guess how
2204         ExtTextOut is going to act.
2206         * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
2207         in place of stricmp.
2208         (w32_list_synthesized_fonts): Removed.
2209         (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
2210         (struct enumfont_t): New element; list.
2211         (enum_font_cb2): List all style and charset variations of a font.
2212         (Fw32_select_font): New optional argument; include_proportional.
2213         Exclude vertical fonts.  Exclude proportional fonts unless
2214         include_proportional is non-nil.
2215         (w32_enable_synthesized_fonts): Change to a boolean.
2216         (Fw32_send_sys_command): Doc fix.
2218 2002-01-19  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2220         * dispnew.c (update_frame): Move the variable `tem' to the block
2221         where it is used.
2223 2002-01-19  Jason Rumney  <jasonr@gnu.org>
2225         * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
2226         call to face-set-after-frame-default.
2228 2002-01-18  Richard M. Stallman  <rms@gnu.org>
2230         * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
2231         (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
2233 2002-01-17  Richard M. Stallman  <rms@gnu.org>
2235         * window.c (enlarge_window): When exceeding size of parent,
2236         directly delete all the siblings instead of trying to resize it.
2238 2002-01-17  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2240         * term.c (set_tty_color_mode): Remove unused variable `tem'.
2242 2002-01-16  Henrik Enberg  <henrik@enberg.org>
2244         * lread.c (init_lread): Move the installed-lisp dirs later in the path.
2246 2002-01-16  Kim F. Storm  <storm@cua.dk>
2248         * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
2249         is invisible.  This can happen if cursor is on top line of a
2250         window, and we switch to a buffer with a header line.
2252         * w32term.c (x_erase_phys_cursor): Ditto.
2254 2002-01-16  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2256         * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
2257         `dont_resize' only when used.
2259         * xdisp.c: Remove forgotten extern declaration of `Qimage'.
2261 2002-01-15  Eli Zaretskii  <eliz@is.elta.co.il>
2263         * xdisp.c (display_mode_element): When computing charpos, depend
2264         on multibyteness of elt, not the text in field.
2266 2002-01-15  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2268         * buffer.c (Fkill_all_local_variables):
2269         Increment `update_mode_lines' only once.
2271 2002-01-14  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2273         * lisp.h (adjust_after_replace_noundo)
2274         (Fupdate_coding_systems_internal): Add prototypes.
2276         * sound.c (Fplay_sound): Initialize header_size also for :data case.
2278 2002-01-14  Eli Zaretskii  <eliz@is.elta.co.il>
2280         Support for the --color command-line argument and tty-color-mode
2281         frame parameter:
2283         * term.c (tty_default_color_capabilities, tty_setup_colors)
2284         (set_tty_color_mode): New functions.
2285         (term_init): Call tty_default_color_capabilities.
2286         (Qtty_color_mode_alist): New variable.
2287         (syms_of_term): Intern and staticpro it.
2289         * frame.c (store_frame_param): Call set_tty_color_mode for termcap
2290         frames.
2291         (do_switch_frame): For termcap frames, switch the tty
2292         color mode as specified by the frame's parameters.
2293         (Qtty_color_mode): New variable.
2294         (syms_of_frame): Intern and staticpro it.
2296         * emacs.c (USAGE2): Add the --color option.
2297         (standard_args): Ditto.
2299 2002-01-13  Jan Djarv  <Jan.Djarv@mbox200.swipnet.se>
2301         * xterm.h (struct x_output): New members want_fullscreen,
2302         x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
2303         y_pixels_outer_diff.
2304         New enum for FULLSCREEN_* constants.
2305         (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
2306         is NULL.
2307         (x_fullscreen_adjust): Add prototype.
2309         * emacs.c (USAGE2): Add the new full-screen arguments.
2310         (standard_args): Ditto.
2312         * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
2313         New variables.
2314         (syms_of_xfns): Intern and staticpro them.
2315         (x_frame_parms) <"fullscreen">: New parameter.
2316         (x_fullscreen_move, x_set_fullscreen): New functions.
2317         (x_set_frame_parameters): Support for Qfullscreen.
2318         (x_real_positions): More accurate computation of the frame position.
2319         (x_figure_window_size): Support full-screen frames.
2320         (Fx_create_frame): Default the fullscreen parameter.
2322         * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
2323         (XTread_socket) <Expose>: Call x_check_fullscreen.
2324         <ConfigureNotify>: Don't resize to fullscreen.
2325         Call x_check_fullscreen_move, and set the want_fullscreen member of
2326         output_data.x.
2328 2002-01-13  Jason Rumney  <jasonr@gnu.org>
2330         * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
2331         for mice with more than 3 buttons.
2333         * w32term.c (parse_button): New parameter xbutton.  Callers changed.
2334         (w32_read_socket): Handle new "XBUTTON" messages.
2336         * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
2337         (syms_of_w32fns): DEFVAR_BOOL it.
2338         (w32_wnd_proc): Handle new "XBUTTON" messages.
2340 2002-01-13  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2342         * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
2344 2002-01-13  Andreas Schwab  <schwab@suse.de>
2346         * xterm.c (x_load_font): Never set fonts_changed_p to zero.
2348 2002-01-12  Andreas Schwab  <schwab@suse.de>
2350         * .gdbinit (xbuffer): Remove address operator since data is now a
2351         pointer.
2353 2002-01-11  Richard M. Stallman  <rms@gnu.org>
2355         * insdel.c (adjust_after_replace_noundo): New function.
2357         * coding.c (code_convert_region): Don't copy old text if undo disabled.
2359 2002-01-09  Jason Rumney  <jasonr@gnu.org>
2361         * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
2362         when checking for multiple frames.
2364 2002-01-08  Richard M. Stallman  <rms@gnu.org>
2366         * window.c (delete_window): Rewrite the code for changing the
2367         selected window to handle the case where WINDOW is not a leaf.
2369 2002-01-07  Eli Zaretskii  <eliz@is.elta.co.il>
2371         * process.c (send_process): Set src_multibyte to 1 after the call
2372         top setup_coding_system, not before the call.
2374 2002-01-07  Jason Rumney  <jasonr@gnu.org>
2376         * xmenu.c (set_frame_menubar, xmenu_show):
2377         (xdialog_show): Initialize wv->help to Qnil.
2379         * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
2380         (w32_dialog_show): Initialize wv->help to Qnil.
2382 2002-01-06  Jason Rumney  <jasonr@gnu.org>
2384         * xmenu.c (single_submenu): Initialize wv->help to Qnil.
2386         * w32menu.c (w32_menu_display_help): Revert last change.
2388         * xmenu.c (menu_highlight_callback): Revert last change.
2390 2002-01-06  Andreas Schwab  <schwab@suse.de>
2392         * insdel.c (make_gap_larger): Make sure buffer size does not
2393         overflow range of int.
2395 2002-01-05  Jason Rumney  <jasonr@gnu.org>
2397         * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
2398         OVERLAPS_P.
2400         * w32menu.c (w32_menu_display_help): Hide any tooltip window.
2402         * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
2403         to the left or to the right of the pointer, put it against
2404         the left screen edge.
2405         (x_frame_parms): Add missing braces around initializer.
2407         * w32term.c (x_setup_relief_colors): Don't compute an image's
2408         background color if it doesn't have a Pixmap.
2409         (notice_overwritten_cursor): Don't depend on
2410         output_cursor and updated_area.  Compare pixel coordinates with
2411         window's cursor pixel coordinates.
2412         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
2413         Call notice_overwritten_cursor with new arg list.
2414         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
2415         unconditionally.
2416         (x_draw_image_relief): Use predefined macro instead of
2417         constant when the value of `tool_bar_button_relief' is negative.
2419         * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
2421 2002-01-04  Richard M. Stallman  <rms@gnu.org>
2423         * xmenu.c (menu_highlight_callback): Hide any tooltip window.
2425 2002-01-03  Richard M. Stallman  <rms@gnu.org>
2427         * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
2428         (Fkey_binding): Try the `keymap' property map first.
2429         (Fdescribe_buffer_bindings): Show `keymap' property bindings before
2430         minor mode bindings.
2432 2002-01-03  Kim F. Storm  <storm@cua.dk>
2434         * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
2436 2002-01-02  Richard M. Stallman  <rms@gnu.org>
2438         * keyboard.c (read_key_sequence): Handle the keymap property
2439         before minor mode maps.
2441         * editfns.c (Fformat): Update thissize from field_width
2442         based on the actual width, in the string case.
2444 2002-01-01  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2446         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
2447         when used as truth value to prevent gcc warnings.
2449         * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
2450         * w32proc.c: Include <config.h>.
2452 2002-01-01  Andreas Schwab  <schwab@suse.de>
2454         * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
2455         not EMACS_INT, to make them compatible with DEFVAR_INT.
2456         * lisp.h (max_specpdl_size): Adjust declaration.
2458 2002-01-01  Richard M. Stallman  <rms@gnu.org>
2460         * print.c (print_object): Test print_escape_nonascii only for
2461         unibyte strings.
2462         (PRINTPREPARE): Once again bind Qprint_escape_nonascii
2463         when outputting to a multibyte buffer.
2465 2001-12-29  Richard M. Stallman  <rms@gnu.org>
2467         * print.c (print_object): In multibyte string, use hex escapes.
2468         Use octal only for unibyte strings.
2469         (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
2471         * lread.c (read_escape): New arg BYTEREP for reporting whether
2472         escape forces unibyte or multibyte.
2473         (read1): When reading a string, take note of that info.
2475 2001-12-29  Ken Raeburn  <raeburn@gnu.org>
2477         * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
2478         comparison to test lisp value returned by Fget.
2480 2001-12-29  Richard M. Stallman  <rms@gnu.org>
2482         * lisp.h (max_specpdl_size): Add declaration.
2484         * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
2486         * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
2487         Handle modifier bits.  Correct typo in error message.
2489 2001-12-28  Richard M. Stallman  <rms@gnu.org>
2491         * abbrev.c: Use the plist of an abbrev for multiple params if nec.
2492         (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
2493         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
2494         Update calls to Fdefine_abbrev.
2495         (write_abbrev): Update for changed data format.
2496         Don't list "system" abbrevs.
2497         (Fexpand_abbrev): Update use count with new data format.
2498         (describe_abbrev): Update for changed data format.
2499         (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
2501         * config.in (HAVE_MBSINIT): Add #undef.
2503         * strftime.c (mbsinit): Define as no-op if not available.
2505         * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
2506         (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
2508         * keymap.c (Flookup_key): Error message if key has wrong data type.
2509         (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
2510         (exclude_key): New variable.
2512 2001-12-28  Gerd Moellmann  <gerd@gnu.org>
2514         * xterm.c (x_setup_relief_colors): Don't compute an image's
2515         background color if it doesn't have a Pixmap.
2517         * xterm.c (notice_overwritten_cursor): Don't depend on
2518         output_cursor and updated_area.  Compare pixel coordinates with
2519         window's cursor pixel coordinates.
2520         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
2521         Call notice_overwritten_cursor with new arg list.
2522         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
2523         unconditionally.
2525         * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
2526         height of the cursor line to the amount to scroll.
2528 2001-12-27  Richard M. Stallman  <rms@gnu.org>
2530         * intervals.c (set_point_both): The position after an invisible,
2531         intangible character is not an acceptable stopping point.
2533 2001-12-27  Ken Raeburn  <raeburn@gnu.org>
2535         * window.c (enlarge_window): In new preserve_before code, convert
2536         CURBEG from lisp object to integer before doing arithmetic.
2538 2001-12-27  Richard M. Stallman  <rms@gnu.org>
2540         * bytecode.c (Fbyte_code): Undo previous change.
2542 2001-12-26  Kim F. Storm  <storm@cua.dk>
2544         * keyboard.c (record_char): Ignore duplicate help-echo events only
2545         separated by mouse-movement.  When tracking mouse, only record
2546         first and last mouse-movement event in same window.
2547         Don't record mouse-movement events in keyboard macros.
2549 2001-12-25  Richard M. Stallman  <rms@gnu.org>
2551         * window.c (enlarge_window): New arg PRESERVE_BEFORE.  Callers changed.
2552         (Fenlarge_window): New arg PRESERVE_BEFORE.
2554         * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
2555         instead of Fstring_as_unibyte.
2557 2001-12-22  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2559         The following changes remove mocklisp support:
2561         * mocklisp.h, mocklisp.c: Files removed.
2563         * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
2564         `Qmocklisp' and `Qmocklisp_arguments'.
2565         Remove prototype of syms_of_mocklisp.
2567         * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
2569         * callint.c: Do not include mocklisp.h.
2570         (Fcall_interactively): Do not test for mocklisp case.
2572         * eval.c: Remove variables `Qmocklisp_arguments',
2573         `Vmocklisp_arguments' and `Qmocklisp'.  Remove prototype of ml_apply.
2574         (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
2575         Do not test for mocklisp case.
2576         (Fwhile): Remove unused variable `tem'.
2577         (syms_of_eval): Remove variable `moclisp-arguments'.
2579         * data.c (wrong_type_argument): Remove mocklisp case.
2581         * doc.c (Fdocumentation): Remove mocklisp case.
2583         * emacs.c (main): Do not call syms_of_mocklisp.
2585 2001-12-21  Richard M. Stallman  <rms@gnu.org>
2587         * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
2588         to the left or to the right of the pointer, put it against
2589         the left screen edge.
2591 2001-12-21  Eli Zaretskii  <eliz@is.elta.co.il>
2593         * Makefile.in (distclean): Remove .gdbinit if we are building
2594         outside the source tree.
2596 2001-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
2598         * w32.c (emacs_root_dir): New function.
2600         * msdos.c (emacs_root_dir): New function.
2602         * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
2603         of the current drive as the fallback for default_directory.
2605         * dired.c (file_name_completion): Run the elements of
2606         completion-ignored-extensions through ENCODE_FILE.
2608         * lisp.h (scmp): Remove prototype, since it's now a static
2609         function private to dired.c.
2611 2001-12-18  Richard M. Stallman  <rms@gnu.org>
2613         * dired.c (scmp): Function moved from minibuf.c.
2614         Delete multibyte handling--used only on encoded strings.
2616         * minibuf.c (scmp): Function moved to dired.c.
2618         * fns.c (merge): Add QUIT call.
2620 2001-12-18  Dave Love  <fx@gnu.org>
2622         * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
2623         language/georgian.el.
2625 2001-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
2627         * Makefile.in (lisp, shortlisp): Synchronize with changes to
2628         lisp/Makefile.in:DONTCOMPILE.
2630 2001-12-18  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2632         * xdisp.c (window_box_height): Do not return negative values.
2633         From Gerd Moellmann <gerd@gnu.org>.
2635         * keyboard.c (head_table): Add missing braces around initializer.
2637         * term.c (keys): Likewise.
2639         * xfns.c (x_frame_parms, visual_classes): Likewise.
2641 2001-12-17  Sam Steingold  <sds@gnu.org>
2643         * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
2644         patch (COMPOSING_P, not COMPOSING).
2646 2001-12-17  Richard M. Stallman  <rms@gnu.org>
2648         * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
2650         * coding.c (code_convert_region): Update coding->cmp_data->char_offset
2651         before calling decode_coding.
2653         * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
2655         * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
2656         instead of only for COMPOSITION_DISABLED.
2658 2001-12-16  Richard M. Stallman  <rms@gnu.org>
2660         * alloc.c (pure_alloc): After overflow, allocate just a small block.
2662         * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
2664         * buffer.h (struct buffer): New field `display_error_modiff'.
2665         * buffer.c (reset_buffer): Initialize `display_error_modiff'.
2667         * window.c (Frecenter): Clear display_error_modiff field.
2669         * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
2670         Call redisplay_window, but not if display_error_modiff field says no.
2671         (redisplay_window_error): New function.
2672         (displayed_buffer): New variable.
2673         (redisplay_internal, redisplay_windows): Call the new functions
2674         instead of redisplay_window directly.
2676 2001-12-15  Richard M. Stallman  <rms@gnu.org>
2678         * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
2680 2001-12-14  Andrew Innes  <andrewi@gnu.org>
2682         * makefile.w32-in (EMACSLOADPATH): Define.
2683         ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
2684         (bootstrap-temacs): Remove dependency on bootstrap-clean.
2686 2001-12-13  Eli Zaretskii  <eliz@is.elta.co.il>
2688         * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
2689         parameter have a numeric value all the time.
2691         * w32fns.c (x_report_frame_params): Likewise.
2693 2001-12-12  Richard M. Stallman  <rms@gnu.org>
2695         * fileio.c (Fwrite_region): Doc fix.
2697         * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
2698         (redisplay_internal): Call clear_image_cache only for window terminals.
2700 2001-12-12  Gerd Moellmann  <gerd@gnu.org>
2702         * xdisp.c (move_it_vertically_backward): Change heuristic
2703         for the case that we didn't move far enough initially.
2705         * window.c (Frecenter): Simplify computation in the case of window
2706         system frames and ARG < 0; use window_box_height.
2708 2001-12-11  Richard M. Stallman  <rms@gnu.org>
2710         * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
2711         * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
2713 2001-12-11  Andrew Innes  <andrewi@gnu.org>
2715         * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
2716         arg is negative.
2718 2001-12-11  Richard M. Stallman  <rms@gnu.org>
2720         * m/hp800.h: Split the __hpux conditional into the parts
2721         that are right for GNU/Linux too and the parts that are not.
2722         Use the former if GNU_LINUX.
2723         (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
2725         * s/gnu-linux.h (GNU_LINUX): Defined.
2727 2001-12-11  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2729         * macros.c, msdos.c, w16select.c: Change doc-string comments to
2730         `new style' [w/`doc:' keyword].
2732 2001-12-10  Jason Rumney  <jasonr@gnu.org>
2734         * w32menu.c (w32_free_submenu_strings): Clear menu item struct
2735         before using.
2737 2001-12-09  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2739         * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
2740         keyword].
2742 2001-12-09  Eli Zaretskii  <eliz@is.elta.co.il>
2744         * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
2746         * s/hpux10.h (srand48): Don't undefine.
2748 2001-12-09  Jason Rumney  <jasonr@gnu.org>
2750         * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
2751         Add     comment to explain where the struct came from.
2752         (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
2753         (add_menu_item): Process pop-up menus first to avoid memory leak.
2754         (add_menu_item, w32_menu_display_help): Use `help' field as
2755         Lisp_Object.
2756         (w32_free_submenu_strings): Only free owner-drawn strings.
2758 2001-12-09  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2760         * COPYING: Moved back.
2762         * charset.c (char_to_string_1, translate_char, Fdefine_charset):
2763         Add parentheses around && within ||.
2765         * indent.c (compute_motion): Likewise.
2767         * intervals.c (merge_properties_sticky): Likewise.
2769         * coding.c (setup_coding_system, shrink_encoding_region)
2770         (Fdecode_sjis_char): Likewise.
2772 2001-12-07  Andreas Schwab  <schwab@suse.de>
2774         * xdisp.c (display_mode_element): Don't read past end of string if
2775         it ends with '%'.
2777         * alloc.c (inhibit_garbage_collection): Don't exceed value an int
2778         can hold.
2780         * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
2781         from most_positive_fixnum and most_negative_fixnum, resp., and
2782         type changed to Lisp_Object.
2783         (syms_of_data): DEFVAR_LISP them.
2785 2001-12-07  Richard M. Stallman  <rms@gnu.org>
2787         * callproc.c (init_callproc): Set Vdata_directory based on the source
2788         location whenever Emacs was run uninstalled.
2790 2001-12-06  Paul Eggert  <eggert@twinsun.com>
2792         * config.in (HAVE_WORKING_VFORK): New #undefs.
2793         * process.c (create_process):
2794         Use HAVE_WORKING_VFORK, not HAVE_VFORK.
2795         * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
2796         * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
2797         * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
2798         * m/intel386.h (HAVE_VFORK): Likewise.
2799         * m/mips-siemens.h (HAVE_VFORK): Likewise.
2800         * m/mips.h (HAVE_VFORK): Likewise.
2801         * s/freebsd.h (vfork): Remove #define.
2802         * s/lynxos.h (HAVE_VFORK): Remove #undef.
2803         * s/usg5-4-2.h: Fix comment about vfork.
2805 2001-12-06  Richard M. Stallman  <rms@gnu.org>
2807         * s/hpux10.h (random): Add undef.
2808         (HAVE_RANDOM): Define it just once.
2810 2001-12-06  Stefan Monnier  <monnier@cs.yale.edu>
2812         * eval.c: Undo last change: the standard syntax is not wanted.
2814 2001-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
2816         * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
2817         scroll bars of the frame before deleting the frame itself.  If the
2818         frame has a widget, delete the frame with XtDestroyWidget, and do
2819         not call XDestroyWindow before that.
2821 2001-12-06  Kim F. Storm  <storm@cua.dk>
2823         * xfns.c (x_report_frame_params): Return actual fringe widths.
2825         * w32fns.c (x_report_frame_params): Return actual fringe widths.
2827 2001-12-05  Andrew Innes  <andrewi@gnu.org>
2829         * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
2830         excessively large.
2832         * insdel.c (make_gap_larger): New function.
2833         (make_gap_smaller): New function.
2834         (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
2835         make_gap_smaller if arg is negative.
2837 2001-12-04  Stefan Monnier  <monnier@cs.yale.edu>
2839         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
2840         Pass a dummy argument when calling interrupt_signal.
2841         (parse_menu_item): Mark disabled items before checking for empty def.
2842         (read_char_minibuf_menu_prompt): Make safety more visible.
2843         (read_key_sequence): Add a `first_unbound' variable.
2844         Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
2845         unbound prefix as soon as we can detect it.
2847         * doc.c (Fsnarf_documentation): Add prototype.
2848         (get_doc_string): Handle negative arguments.
2849         (Fdocumentation): Use AREF and ASIZE.
2850         Move the calls to get_doc_string to a single place.
2851         Don't confuse an interactive-spec for a docstring reference.
2852         (Fdocumentation_property): Take advantage of the fact that
2853         get_doc_string now ignores the sign of the docstring position.
2855         * eval.c: Use standard syntax for usage in docstrings.
2857 2001-12-03  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2859         * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
2861 2001-12-02  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2863         * xterm.c (x_draw_image_relief): Use predefined macro instead of
2864         constant when the value of `tool_bar_button_relief' is negative.
2866 2001-12-02  Richard M. Stallman  <rms@gnu.org>
2868         * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
2869         (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
2871         * fileio.c (read_non_regular): Delete Fsignal call.
2873 2001-12-01  Stefan Monnier  <monnier@cs.yale.edu>
2875         * lisp.h (run_hook_list_with_args): Undo last change.
2877 2001-12-01  Gerd Moellmann  <gerd@gnu.org>
2879         * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
2881 2001-12-01  Jason Rumney  <jasonr@gnu.org>
2883         * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
2885         * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
2886         [!WM_MOUSELEAVE]: Define.
2888         * w32menu.c (current_popup_menu, get_menu_item_info):
2889         (set_menu_item_info): New vars.
2890         (set_frame_menubar): Doc fix clarifying GC interaction with menus.
2891         (w32_menu_show): Set current_popup_menu.
2892         (add_menu_item): Allocate new strings for owner-drawn menu items
2893         and help strings.
2894         Use owner-draw for disabled menu items again.
2895         (w32_menu_display_help): Ignore owner-drawn items and popup menus.
2896         (w32_free_submenu_strings, w32_free_menu_strings): New functions.
2898         * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
2899         (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
2900         <WM_EXITMENULOOP>: Free menu strings.
2901         <WM_MOUSELEAVE>: Stop tracking mouse.
2902         (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
2904         * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
2905         and mouse face.
2907 2001-12-01  Kim F. Storm  <storm@cua.dk>
2909         The following changes add left-fringe and right-fringe
2910         frame parameters to adjust fringe widths, or remove one or
2911         both fringes.
2913         * frame.h (struct frame): Remove trunc_area_pixel_width and
2914         trunc_area_cols fields.
2915         (Qleft_fringe, Qright_fringe): Declare.
2916         (FRAME_RIGHT_FRINGE_WIDTH): New macro.
2918         * frame.c (Qleft_fringe, Qright_fringe): New vars.
2919         (syms_of_frame): Initialize them.
2921         * window.c (coordinates_in_window): Handle separate left and right
2922         fringe widths.
2924         * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
2925         and fringe_cols fields.
2926         (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
2927         (FRAME_X_FRINGE_COLS): Use fringe_cols field.
2928         (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
2929         (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
2930         (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
2931         (x_compute_fringe_widths): Add prototype.
2933         * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
2934         fill fringe evenly with small dashes.
2935         (x_draw_fringe_bitmap): Clear background if necessary. Align and
2936         clip the new ZV bitmap to avoid jitter between rows.
2937         (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
2938         background.  Don't draw fringe bitmaps if fringe width is zero.
2939         (x_compute_fringe_widths): New function.
2940         (x_new_font, x_set_window_size_1): Use it.
2942         * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
2943         (x_set_frame_parameters): Process `font' parameter before other
2944         parameters as fringe widths depend on it.
2945         (x_set_fringe_width): New function.
2946         (x_figure_window_size): Use x_compute_fringe_widths.
2947         (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
2948         parameters.
2950         * widget.c (set_frame_size): Use x_compute_fringe_widths.
2951         (EmacsFrameSetCharSize): Ditto.
2953         * w32term.h: Merged changes from xterm.h.
2954         * w32term.c: Merged changes from xterm.c.
2955         * w32fns.c: Merged changes from xfns.c.
2957 2001-11-29  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2959         * COPYING: Removed.
2961 2001-11-29  Dave Love  <fx@gnu.org>
2963         * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
2964         extra extra slot.
2965         (detect_coding_mask): Fix call of detect_coding_iso2022.
2967 2001-11-29  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
2969         * fileio.c (file-name-coding-system)
2970         (default-file-name-coding-system): Doc fix (links to referenced
2971         variables added).
2973 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
2975         * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
2976         Add dummy uses of gcproN variables.
2978         * category.c (describe_category, describe_category_1)
2979         (Fdescribe_categories): Remove.  (Moved to lisp/help-fns.el.)
2980         (syms_of_category): Don't defsubr Sdescribe_categories.
2982 2001-11-28  Richard M. Stallman  <rms@gnu.org>
2984         * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
2986         * Makefile.in (lispdir): New variable, referring to build dir.
2987         (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
2989 2001-11-28  Andrew Innes  <andrewi@gnu.org>
2991         * w32menu.c (w32_menu_display_help): Actually add the new argument
2992         OWNER.
2994 2001-11-28  Jason Rumney  <jasonr@gnu.org>
2996         * w32menu.c (add_menu_item): Do not use owner-draw for disabled
2997         menu items.  From David Ponce <dponce@wanadoo.fr>.
2998         (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
2999         conditionally.
3000         (w32_menu_display_help): New argument OWNER. Rewritten to store a
3001         help event in the owner frame's keyboard buffer.
3003         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
3004         (Fx_show_tip): Don't subtract last width from row width.
3006         * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
3007         (w32_read_socket): Use EQ to compare frames.
3009 2001-11-28  Gerd Moellmann  <gerd@gnu.org>
3011         * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
3012         OVERLAPS_P.
3014 2001-11-28  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3016         * xdisp.c (message_dolog): Remove unused variables `gcpro2',
3017         `gcpro3' and `gcpro4'.
3019         * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
3021 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
3023         * ccl.c: Use AREF and ASIZE.
3025 2001-11-27  Stefan Monnier  <monnier@cs.yale.edu>
3027         * lisp.h (run_hook_list_with_args): Remove.
3028         (LIST_END_P): Fix call to wrong_type_argument.
3029         (make_fixnum_or_float): Use EMACS_INT rather than int.
3031 2001-11-26  Stefan Monnier  <monnier@cs.yale.edu>
3033         * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
3034         (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
3036         * eval.c: Use AREF and ASIZE.
3037         (Ffetch_bytecode): Add the file name to the error message.
3039         * fileio.c (Ffind_file_name_handler): Give precedence to handlers
3040         which match the end of the file-name.
3041         (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
3042         is not a valid env var, but leave it as is instead.
3044         * keymap.c (access_keymap): Handle t bindings like nil bindings.
3045         Make nil bindings in char-tables transparent.
3046         (store_in_keymap): Turn a nil binding into a t binding for char-tables.
3048 2001-11-26  Richard M. Stallman  <rms@gnu.org>
3050         * textprop.c (set_text_properties_1): Allow START, END in either order.
3051         Do nothing if range is empty.
3053         * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
3055         * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
3056         (clean): Not here.
3058 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
3060         * textprop.c (set_text_properties_1): Clearly mark that the
3061         interval should not be empty.
3063         * intervals.c (graft_intervals_into_buffer):
3064         Don't call set_text_properties_1 on an empty interval.
3066 2001-11-25  Richard M. Stallman  <rms@gnu.org>
3068         * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
3070         * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
3071         don't lose the data in it.
3073 2001-11-25  Juanma Barranquero  <lektu@terra.es>
3075         * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
3077         * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
3079         * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
3081 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
3083         * xfaces.c (merge_face_heights): Coerce back to int explicitly.
3085 2001-11-25  Eli Zaretskii  <eliz@is.elta.co.il>
3087         * window.c (Fset_window_vscroll): Doc fix.  From Kalle Olavi
3088         Niemitalo <kon@iki.fi>.
3090 2001-11-25  Jason Rumney  <jasonr@gnu.org>
3092         * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
3094         * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
3095         (Fx_show_tip): Block input during frame creation.
3096         (Fx_show_tip, Fx_hide_tip): Enable.
3098 2001-11-24  Richard M. Stallman  <rms@gnu.org>
3100         * lread.c (Fload): Detect recursive load error for more than 3
3101         nestings of the same file.
3102         (Vrecursive_load_depth_limit): Variable deleted.
3103         (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
3105 2001-11-24  Jason Rumney  <jasonr@gnu.org>
3107         * xfns.c (compute_tip_xy): Initialize root_x and root_y from
3108         mouse position if either left or top is not specified.
3110         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
3111         <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
3112         (my_create_tip_window, Fx_show_tip): Adjust size for external border.
3113         (my_create_tip_window): Assign tip_window.
3114         (x_create_tip_frame): Use same defaults as X.
3115         (compute_tip_xy): Remove unused variable.  Use full screen width.
3116         (Fx_show_tip): Do not double height. Call ShowWindow directly.
3118         * w32term.c (x_after_update_window_line): Doc fix.
3119         (w32_read_socket): Doc fix.  Avoid SET_FRAME_GARBAGED for tip
3120         frames.
3121         <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
3123         * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
3124         for all Windowed systems.
3126 2001-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
3128         * msdos.c (IT_clear_screen): If the frame's faces are not yet
3129         realized, use the initial screen colors to clear the screen.
3131 2001-11-23  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3133         * textprop.c (Fset_text_properties): Remove unused variables
3134         `unchanged', `prev_changed', `s' and `len'.
3136         * search.c (Freplace_match): Remove unused variable `inslen'.
3138         * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
3140 2001-11-22  Jason Rumney  <jasonr@gnu.org>
3142         * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
3143         (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
3144         (my_create_tip_window): New function.
3145         (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
3146         (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
3148 2001-11-20  Jason Rumney  <jasonr@gnu.org>
3150         * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
3151         (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
3153         * w32fns.c (Vw32_system_coding_system): Remove.
3154         (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
3156 2001-11-19  Stefan Monnier  <monnier@cs.yale.edu>
3158         * fileio.c (Fwrite_region): Move choose_write_coding_system to
3159         after build_annotations.
3161         * syntax.c (describe_syntax): Add dummy arg.
3162         (describe_syntax_1): Update call to describe_vector.
3164         * category.c (describe_category): Add dummy arg.
3165         (describe_category_1): Update call to describe_vector.
3167         * keymap.c (Fdescribe_vector): Add `describer' parameter.
3168         (describe_command, describe_translation): Add dummy second param.
3169         (describe_map): Call elt_describer with two arguments.
3170         (describe_vector_princ): Add `fun' parameter.
3171         Call it instead of the hardcoded `princ'.
3172         (describe_vector): Add arg `args'.
3173         Pass it as a new second argument to elt_describer.
3175         * keymap.h (describe_vector): Update prototype.
3177         * frame.c: Don't include keymap.h any more.
3178         (keys_of_frame): Remove.
3180         * lisp.h (keys_of_frame): Remove declaration.
3182         * emacs.c (main): Don't call `keys_of_frame' any more.
3184 2001-11-14  Andreas Schwab  <schwab@suse.de>
3186         * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
3187         if defined, 0 otherwise.
3188         (MAP_FAILED): Define if not defined and use it to test mmap failure.
3189         (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
3191 2001-11-19  Richard M. Stallman  <rms@gnu.org>
3193         * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
3195 2001-11-18  Jason Rumney  <jasonr@gnu.org>
3197         * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
3198         (x_draw_bar_cursor): If the background color of the glyph under
3199         the cursor equals the frame's cursor color, use the glyph's
3200         foreground color for drawing the bar cursor.
3201         (x_after_update_window_line): Clear internal border in different
3202         circumstances.
3203         (w32_set_vertical_scroll_bar): Check for width and height > 0.
3204         (w32_draw_relief_rect): Correct relief by 1 pixel.
3205         (x_set_glyph_string_background_width):
3206         Set extends_to_end_of_line_p if the row's fill_line_p is set and
3207         drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
3208         (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
3209         if cursor_in_non_selected_windows is false.
3210         (show_mouse_face): Clean up.  Recognize overwritten cursor differently.
3211         (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
3212         Notice if cursor gets overwritten.
3213         (notice_overwritten_cursor): Renamed from
3214         note_overwritten_text_cursor.  Rewritten to take glyph widths
3215         into account, and to take X positions as parameters.
3216         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3217         around call to x_draw_glyphs.
3218         (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
3219         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
3220         color to use for image glyph reliefs.
3221         (x_draw_image_relief): Accept zero tool_bar_button_relief.
3222         (glyph_rect): Remove unused variable `area'.
3224         * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
3225         some items.
3226         (x_set_internal_border_width): Set frame garbaged when window
3227         doesn't exist yet.
3228         (Fx_create_frame): Accept zero tool_bar_button_relief.
3229         (x_clear_image_1, four_corners_best, image_background)
3230         (image_background_transparent): New functions.
3231         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
3232         (gs_format): Add `:background' entry.
3233         (lookup_image): Set IMG's background color if specified.
3234         (pbm_load, xbm_load_image, png_load): Set IMG's background field
3235         when appropriate.
3236         (x_clear_image_1): Reset `background_valid' and
3237         `background_transparent_valid' fields.
3238         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
3239         calculating it here.  Set IMG's background_transparent field.
3240         (enum xpm_keyword_index): Add XPM_BACKGROUND.
3241         (enum png_keyword_index): Add PNG_BACKGROUND.
3242         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
3243         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
3244         (enum gif_keyword_index): Add GIF_BACKGROUND.
3245         (enum gs_keyword_index): Add GS_BACKGROUND.
3246         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
3247         Pre-calculate image background color where necessary.
3248         (x_create_x_image_and_pixmap, xbm_load, gs_load):
3249         Use display info's n_cbits entry for screen depth.
3250         (Fx_show_tip): Remove unused variables `buffer', `top',
3251         `left', `max_width' and `max_height'.
3253         * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
3255 2001-11-18  Gerd Moellmann  <gerd@gnu.org>
3257         * puresize.h (BASE_PURESIZE): Increase to 750000.
3259 2001-11-18  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3261         * frame.c (Fframe_live_p): Doc fix.
3263 2001-11-18  Richard M. Stallman  <rms@gnu.org>
3265         * xdisp.c (message_dolog_marker1, message_dolog_marker2)
3266         (message_dolog_marker3): New static variables hold three markers.
3267         (syms_of_xdisp): Initialize and staticpro them.
3268         (message_dolog): Use message_dolog_marker1..3 instead of
3269         allocating markers each time.  Unchain them when done.
3271 2001-11-17  Richard M. Stallman  <rms@gnu.org>
3273         * doc.c (Fsnarf_documentation): Doc fix.
3275 2001-11-17  Andreas Schwab  <schwab@suse.de>
3277         * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
3279 2001-11-17  Richard M. Stallman  <rms@gnu.org>
3281         * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
3283 2001-11-17  Jason Rumney  <jasonr@gnu.org>
3285         * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
3287 2001-11-17  Gerd Moellmann  <gerd@gnu.org>
3289         * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
3290         with invalid position.
3292 2001-11-16  Richard M. Stallman  <rms@gnu.org>
3294         * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
3296         * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
3297         * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
3298         * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
3300         * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
3302 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
3304         * fileio.c (build_annotations): Split off the tail.
3305         (build_annotations_2): New fun.  Extracted from build_annotations.
3306         (Fwrite_region): Split the call to build_annotations into two
3307         calls to build_annotations and build_annotations_2.
3309 2001-11-16  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3311         * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
3312         clear_waiting_for_input with argument.
3314         * xterm.h (x_update_cursor): Remove duplicated prototype.
3316         * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
3318         * xterm.c (waiting_for_input): Remove unnecessary declaration.
3320         * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
3322 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
3324         * fileio.c (choose_write_coding_system): New fun, extracted
3325         from Fwrite_region.
3326         (Fwrite_region): Use it.
3328         * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
3329         (funcall_lambda, run_hook_with_args): Make static and add prototype.
3330         (ml_apply, find_handler_clause): Add prototype.
3332 2001-11-16  Eli Zaretskii  <eliz@gnu.org>
3334         * config.in: Add #undef HAVE_COFF_H.
3336         * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
3337         Required for ISC 4.1.
3339 2001-11-16  Eli Zaretskii  <eliz@is.elta.co.il>
3341         * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
3342         Andrew Wiseman <a.wiseman@btclick.com>.
3344 2001-11-16  Kim F. Storm  <storm@cua.dk>
3346         The following changes are made to clean up the various internal
3347         references to the fringes to actually use the term `fringe' for
3348         them.  Previously, they were called `flags areas', `bitmap areas',
3349         `left/right side of windows', or implicitly as `flags' or
3350         `bitmaps':
3352         * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
3353         Comments fixed. Use renamed symbols.
3355         * dispnew.c: Comment fix. Use renamed symbols.
3357         * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
3358         (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
3359         (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
3361         * msdos.c: Comment fix.
3363         * w32fns.c: Use renamed symbols.
3365         * w32term.c: Comment fixes. Use renamed symbols.
3366         (fringe_bitmap_type): Renamed from bitmap_type.
3367         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
3368         (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
3369         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
3371         * w32term.h: Comment fixes. Use renamed symbols.
3372         (fringes_extra): Renamed from flags_areas_extra.
3373         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
3374         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
3375         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
3376         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
3377         (FRAME_X_LEFT_FRINGE_WIDTH):
3378         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
3379         (FRAME_X_RIGHT_FRINGE_WIDTH):
3380         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
3382         * widget.c: Use renamed symbols.
3384         * window.c: Comment fixes. Use renamed symbols.
3385         (coordinates-in-window-p): Doc fix.
3387         * xdisp.c: Comment fixes. Use renamed symbols.
3389         * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
3391         * xfns.c: Use renamed symbols.
3393         * xterm.c: Comment fixes. Use renamed symbols.
3394         (fringe_bitmap_type): Renamed from bitmap_type.
3395         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
3396         (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
3397         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
3399         * xterm.h: Comment fixes. Use renamed symbols.
3400         (fringes_extra): Renamed from flags_areas_extra.
3401         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
3402         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
3403         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
3404         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
3405         (FRAME_X_LEFT_FRINGE_WIDTH):
3406         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
3407         (FRAME_X_RIGHT_FRINGE_WIDTH):
3408         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
3410 2001-11-15  Jason Rumney  <jasonr@gnu.org>
3412         * w32menu.c (add-menu-item): Make help_echo and radio buttons
3413         work for most menu items.  From David Ponce
3414         <david.ponce@wanadoo.fr>.
3416 2001-11-15  Gerd Moellmann  <gerd@gnu.org>
3418         * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
3419         Some x_set_* function expect to be called even if old and new
3420         value are equal.
3422         * xdisp.c (build_desired_tool_bar_string): Accept zero
3423         tool_bar_button_relief.
3425         * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
3427         * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
3429         * xterm.c (x_draw_bar_cursor): If the background color of the
3430         glyph under the cursor equals the frame's cursor color, use
3431         the glyph's foreground color for drawing the bar cursor.
3433         * dispnew.c (direct_output_forward_char): Fix character/byte
3434         position comparison.
3436 2001-11-15  Miles Bader  <miles@gnu.org>
3438         * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
3439         (Fdelete_field, Ffield_string, Ffield_string_no_properties):
3440         Update arguments to find_field.
3441         (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
3442         (Fconstrain_to_field): Use LIMIT arg to shorten search time.
3443         * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
3444         * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
3446 2001-11-14  Richard M. Stallman  <rms@gnu.org>
3448         * editfns.c (Fpropertize): Allow call with 1 arg.
3450         * dispextern.h (image_background, image_background_transparent):
3451         Conditionalize on HAVE_X_WINDOWS.
3453 2001-11-13  Richard M. Stallman  <rms@gnu.org>
3455         * print.c (Fprin1_to_string): Doc fix.
3457         * sunfns.c (Fsun_change_cursor_icon): Doc fix.
3459         * floatfns.c (Fceiling, Ffloor): Doc fixes.
3461         * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
3463         * fileio.c (Ffile_accessible_directory_p): Doc fix.
3465         * eval.c (syms_of_eval): Doc fix.
3467         * coding.c (syms_of_coding): Doc fix.
3469         * doc.c (Fsnarf_documentation): Doc fix.
3471         * dispnew.c (syms_of_display): Doc fix.
3473         * category.c (Fget_unused_category): Doc fix.
3475         * buffer.c (syms_of_buffer): Doc fixes.
3477 2001-11-14  Eli Zaretskii  <eliz@is.elta.co.il>
3479         * print.c (prin1, print): Doc fix.
3481 2001-11-14  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3483         * fontset.h: Remove declarations of variables
3484         `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
3486         * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
3487         `Vclip_large_size_font'.
3489 2001-11-13  Jason Rumney  <jasonr@gnu.org>
3491         * w32fns.c: Doc fix.
3493 2001-11-13  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3495         * xfaces.c (Fface_attributes_as_vector): Doc fix.
3497         * fns.c: Doc fix.
3499         * emacs.c: Doc fix.
3501         * coding.c: Doc fix.
3503         * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
3504         * fontset.c, insdel.c, keymap.c: Change doc-string comments to
3505         `new style' [w/`doc:' keyword].
3507 2001-11-12  Richard M. Stallman  <rms@gnu.org>
3509         * xterm.c (XTread_socket): Don't update focus for EnterNotify or
3510         LeaveNotify events.  Only FocusIn and FocusOut do that now.
3511         (x_display_and_set_cursor): Do display hollow cursors in active
3512         minibuffer windows when they are not selected.
3514 2001-11-12  Jason Rumney  <jasonr@gnu.org>
3516         * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
3517         * w32term.c: Change doc-string comments to `new style'.
3518         [w/`doc:' keyword]. Doc fixes.
3520         * w32fns.c: Don't define max.
3521         (Fx_open_connection): Only execute once.
3523 2001-11-12  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3525         * ccl.c: Change macros to use do-while block instead of if-else.
3526         Use braces to follow GNU Coding Standards.
3528 2001-11-11  Richard M. Stallman  <rms@gnu.org>
3530         * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
3532         * lread.c (read_escape): Use end_of_file_error for reporting eof.
3534         * insdel.c (replace_range): Use adjust_markers_for_replace
3535         instead of adjust_markers_for_delete and adjust_markers_for_insert.
3537         * intervals.h: Declare set_text_properties and set_text_properties_1.
3539         * textprop.c (set_text_properties_1): New subroutine
3540         broken out of set_text_properties.
3541         (set_text_properties): Use set_text_properties_1.
3543         * intervals.c (graft_intervals_into_buffer):
3544         Use set_text_properties_1 to clear out properties.
3546         * search.c (Freplace_match): Use replace_range to insert
3547         and delete.  Don't request property inheritance from
3548         surrounding text.
3550 2001-11-10  Jason Rumney  <jasonr@gnu.org>
3552         * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
3553         vertical fonts. Allow them if face name is explicitly specified.
3554         Do not give up if we find a font that cannot be converted to an xlfd.
3556 2001-11-10  Gerd Moellmann  <gerd@gnu.org>
3558         * unexelf.c (unexec): Use mmap/munmap to allocate buffers
3559         instead of malloc/free.
3561 2001-11-09  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3563         * xfaces.c (merge_face_vectors): Use braces to follow GNU
3564         Coding Standards.
3565         (Finternal_set_lisp_face_attribute): Likewise.
3567         * buffer.c (Fbury_buffer): Likewise.
3569         * indent.c (current_column_1): Remove unused variable `prev_col'.
3571         * coding.c (encode_coding): Use precomputed value of `src'.
3572         (encode_coding): Remove unused variable `src_end'.
3573         (code_convert_region): Remove unused variables `count'.
3575 2001-11-07  Jason Rumney  <jasonr@gnu.org>
3577         * w32term.c (x_display_and_set_cursor): Do not move system caret
3578         if cursor_glyph is NULL.
3580 2001-11-07  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3582         * keymap.c (access_keymap): Fix compilation error.
3584 2001-11-07  Miles Bader  <miles@gnu.org>
3586         * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
3588 2001-11-07  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3590         * intervals.c (graft_intervals_into_buffer):
3591         Remove #ifdef'd-out code.
3592         (graft_intervals_into_buffer): Remove unused variable `middle'.
3594         * lread.c (Feval_region): Remove obsolete #ifdef'd-out
3595         code (eval-current-buffer).
3596         Change doc-string comments to `new style' [w/`doc:' keyword].
3598 2001-11-06  Richard M. Stallman  <rms@gnu.org>
3600         * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
3602 2001-11-06  Stefan Monnier  <monnier@cs.yale.edu>
3604         * lread.c (read1): Fix behavior with nested backquoting.
3606         * keyboard.c (make_lispy_event): Check integerness and fix
3607         Lisp_Object/int mixup.
3609 2001-11-06  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3611         * fns.c (copy_hash_table): Remove unused variable `v'.
3613         * fontset.c (fontset_font_pattern): Remove unused variable
3614         `family_registry'.
3616         * indent.c (current_column_1): Remove unused variable `prev_col'.
3618 2001-11-05  Richard M. Stallman  <rms@gnu.org>
3620         * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
3622         * buffer.c (Fkill_buffer): Don't delete auto save file
3623         if buffer is modified.
3625 2001-11-05  Andrew Innes  <andrewi@gnu.org>
3627         * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
3628         CHECK_NUMBER_CDR.
3630 2001-11-05  Richard M. Stallman  <rms@gnu.org>
3632         * unexelf.c (unexec): Minor changes; clean up comments.
3634 2001-11-05  Sam Steingold  <sds@gnu.org>
3636         * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
3638 2001-11-05  Andreas Schwab  <schwab@suse.de>
3640         * sound.c (sound_perror): Save errno from being clobbered.
3642 2001-11-05  Dale Hagglund  <rdh@yottayotta.com>
3644         * unexelf.c (unexec): Don't use `mmap'.  Instead, read and write
3645         the program image directly.
3647 2001-11-05  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3649         * buffer.h (Fbuffer_local_value): Add prototype.
3651 2001-11-04  Richard M. Stallman  <rms@gnu.org>
3653         * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
3654         and CHECK_BUFFER.
3656         * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
3657         (record_char): Likewise.
3659         * keyboard.c (make_lispy_event): Don't insist a drag event must
3660         move to a different buffer position.  Instead, check for moving at
3661         least double_click_fuzz.
3663         * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
3665         * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
3667         * indent.c (current_column_1, Fmove_to_column): Separate the code
3668         for display-table glyphs from the code buffer text, to fix
3669         bugs in the former.
3671 2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>
3673         * buffer.c (Fbuffer_local_value): New function.
3674         (syms_of_buffer): Defsubr it.
3676         * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
3677         value of `cursor-in-non-selected-windows'.
3679         * lisp.h (Qcursor_in_non_selected_windows): New declaration.
3680         * xdisp.c (Qcursor_in_non_selected_windows): New variable.
3681         (syms_of_xdisp): Initialize it.
3683 2001-11-04  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3685         * xfns.c (Fx_create_frame): Doc fix.
3687         * coding.c: Change doc-string comments to `new style' [w/`doc:'
3688         keyword].
3690         * eval.c (top_level_value, top_level_set): Remove commented and
3691         #ifdef'd-out code.
3692         (Fdefvar): Fix usage in doc-string.
3694 2001-11-03  Richard M. Stallman  <rms@gnu.org>
3696         * xfns.c: Include unistd.h, if it exists.
3698         * editfns.c: Move the include of ctype.h after unistd.h.
3700         * gmalloc.c: Test BROKEN_PROTOTYPES.
3702 2001-11-03  Ken Raeburn  <raeburn@gnu.org>
3704         * lisp.h (CHECK_STRING_CAR): New macro.
3705         * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
3706         treating XCAR and XCDR as lvalues.
3707         (openp): Use CHECK_STRING_CAR.
3708         (read_list): Use XSETCDR instead of treating XCDR as lvalue.
3710 2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>
3712         * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
3713         (SIGMASKTYPE): Define.
3715         * syssignal.h (sigunblock): Don't define if already defined.
3717 2001-11-02  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3719         * eval.c (debugger_may_continue, Vdebug_ignored_errors)
3720         (call_debugger, Fcondition_case, skip_debugger, unbind_to):
3721         Fix typos in comments.
3723         * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
3724         and #ifdef'd-out code.
3725         Fix and reindent comments.
3727         * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
3729         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
3730         argument `i' in macros.
3732         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
3733         `i' in macros.
3735         * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
3736         (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
3737         (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
3738         (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
3739         (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
3740         (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
3741         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
3742         (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
3743         in macros.
3745         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
3746         * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
3747         * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
3748         * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
3749         * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
3750         * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
3751         * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
3752         * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
3753         * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
3754         (remove unused second argument).
3756 2001-11-02  Stefan Monnier  <monnier@cs.yale.edu>
3758         * syntax.c (describe_syntax): New wrapper.
3759         (Finternal_describe_syntax_value): Rename from describe_syntax.
3760         Don't insert space at front and \n at the end.
3761         (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
3763         * regex.c (re_wctype): Try to fix some warnings.
3764         (regcomp, regexec): Don't forget the __restrict.
3766 2001-11-02  Richard M. Stallman  <rms@gnu.org>
3768         * textprop.c (Fget_char_property): Doc fix.
3770 2001-11-02  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3772         * process.c (Fstart_process): Add usage to doc-string.
3774         * data.c (Fsetq_default): Ditto.
3776         * callint.c (Finteractive): Ditto.
3778 2001-11-01  Stefan Monnier  <monnier@cs.yale.edu>
3780         * macros.c: Don't include keymap.h any more.
3782 2001-11-01  Richard M. Stallman  <rms@gnu.org>
3784         * data.c (Fmake_local_variable): Doc fix.
3786         * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
3787         (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
3789         * keymap.c (Fdescribe_buffer_bindings): Print character property
3790         bindings along with or instead of the buffer local map.
3791         Make the overriding maps override what they should.
3793 2001-11-01  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3795         * window.c (grow_mini_window): Fix typo in comment.
3797 2001-11-01  Gerd Moellmann  <gerd@gnu.org>
3799         * xterm.c (x_scroll_bar_create): Check for width and height > 0.
3800         (XTset_vertical_scroll_bar): Likewise.
3802         * xfns.c (x_build_heuristic_mask): Use four_corners_best
3803         instead of IMAGE_BACKGROUND.
3805         * xfns.c (four_corners_best): Reindent.
3807         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
3808         Handle :box so that it is possible to specify sexprs.
3810 2001-10-31  Eli Zaretskii  <eliz@is.elta.co.il>
3812         * s/hpux11.h: New file.
3814 2001-10-31  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3816         * emacs.c (USAGE1): Show command line option --no-window-system
3817         instead of --no-windows in usage.
3818         (standard_args): Rename --no-windows to --no-window-system.
3819         (bug_reporting_address): Follow Emacs coding conventions.
3821         * eval.c (Fcommandp): Doc fix.
3822         Change doc-string comments to `new style' [w/`doc:' keyword].
3824         * frame.c (Fframe_live_p): Doc fix.
3826         * buffer.c (selective-display-ellipses): Doc fix.
3828 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
3830         * lread.c (to_multibyte): Fix computation of new read_buffer_size.
3832         * xfaces.c (realize_x_face): If C is not a single-byte character,
3833         set the face's colors_copied_bitwise_p instead of the defaulted_p
3834         members which have a different meaning.
3835         (free_face_colors): Do nothing for a face whose colors have been
3836         copied bitwise.
3838         * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
3840 2001-10-31  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3842         * marker.c, mocklisp.c: Change doc-string comments to `new style'
3843         [w/`doc:' keyword].
3845 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
3847         * fns.c (require_unwind): Return Lisp_Object.
3849 2001-10-31  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3851         * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
3852         (last-input-char): Revert doc-string to be the same as the
3853         doc-string of `last-input-event'.
3855         * xdisp.c:  Fix typos in comments.
3857 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
3859         * window.c (grow_mini_window): Handle case that the root
3860         window is already smaller than the nominal mininum height.
3862 2001-10-30  Stefan Monnier  <monnier@cs.yale.edu>
3864         * emacs.c (main): Don't call keys_of_macros any more.
3866         * lisp.h (keys_of_macros): Remove.
3868         * macros.c (keys_of_macros): Remove.
3870         * xfaces.c (Fface_attribute_relative_p): Declare args.
3872 2001-10-30  Jason Rumney  <jasonr@gnu.org>
3874         * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
3875         (enum_font_cb2): Ignore fonts with vertical orientation.
3877 2001-10-30  Richard M. Stallman  <rms@gnu.org>
3879         * keyboard.c (Finput_pending_p): Doc fix.
3881 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
3883         * xterm.c (x_after_update_window_line): Don't run the code
3884         clearing in borders for rows whose visible height is 0.
3886         * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
3887         resized_p flag is set.  If not set, use the much less flickering
3888         method previously used.
3890         * dispnew.c (change_frame_size_1): Set frame's resized_p.
3892         * frame.h (struct frame) <resized_p>: New member.
3894         * lread.c (to_multibyte): Ensure read_buffer is at least twice
3895         as large as the number of bytes to convert.
3897         * lread.c (to_multibyte): New function.
3898         (read1): Use it.
3900 2001-10-30  Eli Zaretskii  <eliz@is.elta.co.il>
3902         * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
3904 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
3906         * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
3907         (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
3908         if the row's fill_line_p is set and drawing the last glyph with
3909         DRAW_IMAGE_{RAISED,SUNKEN}.
3911         * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
3913 2001-10-29  Stefan Monnier  <monnier@cs.yale.edu>
3915         * xmenu.c: Include coding.h and charset.h.
3916         (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
3917         (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
3918         (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
3919         Explicitly set wv->help.  Use `TRUE' rather than `True'.
3920         (menu_help_callback): Use empty_string.
3922         * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
3923         (Fx_popup_dialog): Explicitly init f.
3924         (w32_menu_display_help): Use empty_string.
3926 2001-10-29  Richard M. Stallman  <rms@gnu.org>
3928         * fns.c (Frequire): Detect recursive try to require the same
3929         feature 3 or more levels deep, and get error.
3930         (require_unwind): New subroutine.
3931         (require_nesting_list): New variable.
3932         (syms_of_fns): Init and staticpro it.
3934         * print.c (print_object): Clarify indication of insertion type.
3936 2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>
3938         * coding.c (syms_of_coding): Document that locale-coding-system is
3939         used for decoding input on X.
3941         * window.c (Fscroll_left, Fscroll_right): Doc fix.
3943 2001-10-29  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3945         * keyboard.c (Finput_pending_p): Fix typo in doc-string.
3946         (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
3948 2001-10-29  Gerd Moellmann  <gerd@gnu.org>
3950         * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
3951         use NO_CURSOR if cursor_in_non_selected_windows is false.
3953         * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
3954         the slant attribute if FRAME is t.
3956         * xfns.c (x_set_internal_border_width): Set frame garbaged
3957         when X window doesn't exist yet.
3959         * xterm.c (x_after_update_window_line): Clear internal border
3960         in different circumstances.
3962         * xterm.c (XTread_socket) <KeyPress>: Don't use
3963         STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
3964         <handa@etl.go.jp>.
3966 2001-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
3968         * m/ibms390.h: New file.  From Adam Thornton
3969         <athornton@sinenomine.net>.
3971 2001-10-28  Gerd Moellmann  <gerd@gnu.org>
3973         * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
3975         * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
3976         a loop counter.
3978 2001-10-28  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
3980         * emacs.c: Use argv[0] instead of emacs when -t was specified.
3982         * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
3983         keyword].
3984         Fix typos in comments.
3986         * emacs.c (bug_reporting_address): New function.
3987         Use it when displaying usage message.
3989         * minibuf.c (read_minibuf): Remove unused external declaration of
3990         variable `Qread_only'.
3992         * keymap.c (access_keymap): Remove unused variable `charset'.
3994 2001-10-28  Miles Bader  <miles@gnu.org>
3996         * xfaces.c (merge_face_heights): Handle TO being relative as well.
3997         Remove #ifdef'd-out code.
3998         (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
3999         (syms_of_xfaces): Initialize them.
4001 2001-10-27  Jason Rumney  <jasonr@gnu.org>
4003         * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
4004         <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
4005         position using the system caret.
4007         * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
4008         (w32_system_caret_height, w32_system_caret_x)
4009         (w32_system_caret_y): New variables for tracking system caret.
4010         (w32_initialize): Initialize them.
4011         (x_display_and_set_cursor): Make system caret follow the active cursor.
4013         * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
4014         New messages types.
4016         * w32term.c (note_mouse_highlight): Clear old help_echo.
4018 2001-10-27  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
4020         * xterm.c: Fix typo in a comment.
4022         * emacs.c: Fix typos in comments.
4023         Remove unnecessary spaces.
4024         Change doc-string comments to `new style' [w/`doc:' keyword].
4025         (USAGE2): Fix typos in usage string.
4027         * xterm.c: Fix typo in a comment.
4029         * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
4030         emacs.c.
4032 2001-10-27  Gerd Moellmann  <gerd@gnu.org>
4034         * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
4035         instead of 1/2 line_height in the heuristic for skipping
4036         farther backward when target_y was not reached.
4038         * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
4039         Display errno only if non-zero.
4040         (sound_warning): New function.
4041         (vox_configure): Don't treat failing to set sample rate as error.
4042         (various places): Improve error messages.
4044 2001-10-26  Eli Zaretskii  <eliz@is.elta.co.il>
4046         * fileio.c (Faccess_file): Run the argument filename through
4047         Fexpand_file_name, before using it.
4049         * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
4050         ring-bell-function.  Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
4052 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
4054         * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
4056         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4057         Fix clearing in the case of scroll bars on the right.
4059 2001-10-26  Juanma Barranquero <lektu@terra.es>
4061         * w32gui.h (XImage): Add a dummy typedef.
4063 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
4065         * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
4067 2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>
4069         * frame.c (Fframe_parameter): Fix last change.
4071         * fileio.c: Revert last change (which removed old commented-out
4072         version of expand-file-name).  Add a comment that explains why
4073         this old version should not be removed.
4075 2001-10-25  Gerd Moellmann  <gerd@gnu.org>
4077         * frame.c (Fframe_parameter): Fix a bug whereby some
4078         ``artificial'' frame parameters, like `minibuffer' were not
4079         obtained by calling Fframe_parameters.
4081         * xterm.c (show_mouse_face): Clean up.  Recognize overwritten
4082         cursor differently.
4084         * xdisp.c (move_it_vertically_backward): Compute line height
4085         differently.  Add heuristic to try to be more compatible to 20.x.
4087 2001-10-25  Stefan Monnier  <monnier@cs.yale.edu>
4089         * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
4091         * editfns.c (text_property_stickiness): Fix Lisp_Object used as
4092         boolean.
4094 2001-10-25  Miles Bader  <miles@gnu.org>
4096         * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
4097         BG is a pointer to a structure, not a structure.
4098         (gif_format, png_format): Add missing commas.
4100 2001-10-24  Richard M. Stallman  <rms@gnu.org>
4102         * xfaces.c (Fface_attributes_as_vector): New function.
4103         (syms_of_xfaces): Defsubr it.
4105 2001-10-24  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
4107         * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
4108         variable `area'.
4110 2001-10-25  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
4112         * search.c (scan_newline): Remove unused variable `selective_display'.
4114 2001-10-25  Miles Bader  <miles@gnu.org>
4116         * dispextern.h (struct image): Add `background',
4117         `background_valid', and `background_transparent' fields.
4118         (image_background, image_background_transparent): New declarations.
4119         (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
4120         * xfns.c (image_background, image_background_transparent)
4121         (four_corners_best): New functions.
4122         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
4123         (gs_format): Add `:background' entry.
4124         (lookup_image): Set IMG's background color if specified.
4125         (pbm_load, xbm_load_image, png_load): Set IMG's background field
4126         when appropriate.
4127         (x_clear_image_1): Reset `background_valid' and
4128         `background_transparent_valid' fields.
4129         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
4130         calculating it here.  Set IMG's background_transparent field.
4131         (enum xpm_keyword_index): Add XPM_BACKGROUND.
4132         (enum png_keyword_index): Add PNG_BACKGROUND.
4133         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
4134         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
4135         (enum gif_keyword_index): Add GIF_BACKGROUND.
4136         (enum gs_keyword_index): Add GS_BACKGROUND.
4137         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
4138         Pre-calculate image background color where necessary.
4139         * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
4140         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
4141         color to use for image glyph reliefs.
4143 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
4145         * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
4146         in full-width rows.
4148         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4149         Fix clearing of area not covered by scroll bar.
4151 2001-10-24  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
4153         * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
4154         and `real_start'.
4155         (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
4156         (glyph_rect): Remove unused variable `area'.
4158 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
4160         * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
4162         * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
4163         (row_containing_pos): Take additional argument DY.
4164         Treat rows ending in middle of char differently.
4165         (display_line): Handle tabs on window systems differently.
4167         * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
4168         with additional argument.
4170         * dispextern.h (row_containing_pos): Adjust prototype.
4172         * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
4173         (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
4174         (try_window_id, try_window_reusing_current_matrix)
4175         (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
4176         (syms_of_xdisp) [GLYPH_DEBUG]:  DEFVAR_BOOL the variables.
4178 2001-10-24  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
4180         * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
4181         gnuemacs).
4182         (HAVE_BOXES): Fix typo in comment.
4183         (push_menu_pane): Fix typo in comment.
4185         * xdisp.c: (display_prop_string_p): Remove unused local declaration
4186         of `Qwhen'.
4187         (single_display_prop_string_p): Remove unused local declarations
4188         of `Qwhen' and `Qmargin'.
4189         (string_buffer_position): Remove unused variable `around'.
4190         (store_frame_title): Remove unused variable `width'.
4192         * window.c: Don't define max.
4193         (coordinates_in_window): Remove unused variable `uy'.
4195         * widget.c: Don't define max.
4197         * process.c: Don't define max.
4198         (create_process): Remove unused variable `buffer'.
4200 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
4202         * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
4204 2001-10-23  Eli Zaretskii  <eliz@is.elta.co.il>
4206         * xfaces.c (Finternal_set_lisp_face_attribute)
4207         [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
4208         frame is on a windowed display.
4210 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
4212         * dispnew.c (sync_window_with_frame_matrix_rows):
4213         Fix handling of windows which aren't full-width, fix handling
4214         of marginal areas.
4216         * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
4218 2001-10-23  Andreas Schwab  <schwab@suse.de>
4220         * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
4221         LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
4223 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
4225         * xterm.c (x_draw_glyphs): Remove parameters READ_START and
4226         REAL_END.  Notice if cursor gets overwritten.
4227         (notice_overwritten_cursor): Take X positions as parameters.
4228         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
4229         around call to x_draw_glyphs.
4231 2001-10-23  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
4233         * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
4234         instead of C) and usage.
4236         * editfns.c (char-to-string): Fix argument names (use CHAR instead
4237         of C) and usage.
4239         * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
4240         `left', `max_width' and `max_height'.
4242 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
4244         * xdisp.c (display_line): For a tab continued to the next line,
4245         set row's ends_in_middle_of_char_p.
4247 2001-10-22  Gerd Moellmann  <gerd@gnu.org>
4249         * xdisp.c (display_line): Fix computation of continuation lines
4250         width for TABs.
4252 2001-10-22  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
4254         * xdisp.c (build_desired_tool_bar_string): Remove unused variable
4255         `Qlaplace'.
4257         * fileio.c: Remove unused code.
4259 2001-10-22  Miles Bader  <miles@gnu.org>
4261         * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
4262         (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
4263         Remove `DOC_STRINGS_IN_COMMENTS' cases.
4265 2001-10-21  Jason Rumney  <jasonr@gnu.org>
4267         * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
4269 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
4271         * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
4272         (Finsert_string): Avoid the multi-line string literals warning.
4274 2001-10-22  Miles Bader  <miles@gnu.org>
4276         * doc.c (Vhelp_manyarg_func_alist): Variable removed.
4277         (Fdocumentation): Don't use it.
4278         (syms_of_doc): Don't initialize it.
4280         * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
4281         * print.c (Fwith_output_to_temp_buffer): Likewise.
4282         * window.c (Fsave_window_excursion): Likewise.
4283         * editfns.c (Fsave_excursion, Fsave_current_buffer)
4284         (Fsave_restriction): Likewise.
4285         * eval.c (Frun_hooks, Frun_hook_with_args)
4286         (Frun_hook_with_args_until_failure)
4287         (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
4288         (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
4289         (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
4290         (Funwind_protect, Fcondition_case): Likewise.
4291         * coding.c (Ffind_operation_coding_system): Likewise.
4292         * keyboard.c (Ftrack_mouse): Likewise.
4294 2001-10-21  Miles Bader  <miles@gnu.org>
4296         * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
4297         (Fmake_hash_table): Add usage: string to doc string.
4298         * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
4299         (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
4300         (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
4301         * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
4302         (Fml_prefix_argument_loop): Likewise.
4304 2001-10-21  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
4306         * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
4308         * sysdep.c (init_sys_modes): Change doc-string comments to `new
4309         style' [w/`doc:' keyword].
4311         * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
4312         * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
4313         comments to `new style' [w/`doc:' keyword].
4315 2001-10-21  Jason Rumney  <jasonr@gnu.org>
4317         * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
4319         * w32term.c (remember_mouse_glyph): New function.
4320         (w32_mouse_position): Use it.
4321         (note_mouse_movement): If the mouse moved off the glyph, remember
4322         its new position.
4324         * w32term.h (struct w32_output): Correct spelling of x_compatible.
4325         (w32_display_info): Add mouse_face_overlay.
4327         * w32term.c (notice_overwritten_cursor): Renamed from
4328         note_overwritten_text_cursor.  Rewritten to take glyph widths into
4329         account.
4330         (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4331         (fast_find_string_pos): New function.
4332         (fast_find_position): Return the correct vpos.  Add parameter
4333         STOP.  In the final row, stop before glyphs having STOP as object.
4334         Don't consider glyphs that are not from a buffer.
4335         (fast_find_position) [0]: Add a presumably more correct version
4336         for after 21.1.
4337         (expose_window_tree, expose_frame): Don't compute intersections here.
4338         (expose_window): Do it here instead.
4339         (expose_window_tree, expose_window, expose_line): Return 1 when
4340         overwriting mouse-face.
4341         (expose_window): If W is the window currently being updated, mark
4342         the frame garbaged.
4343         (expose_frame): If mouse-face was overwritten, redo it.
4344         (x_use_underline_position_properties): New variable.
4345         (syms_of_xterm): DEFVAR_BOOL it.
4346         (x_draw_glyph_string): Add comment to use it in future.
4347         (x_draw_glyph_string): Restore clipping after drawing box.
4348         Fix a computation of the underline position.
4349         (w32_get_glyph_string_clip_rect): Minor cleanup.
4350         (x_fill_stretch_glyph_string): Remove an assertion.
4351         (x_produce_glyphs): Don't convert multibyte characters
4352         to unibyte characters in unibyte buffers.
4353         (cursor_in_mouse_face_p): New function.
4354         (x_draw_stretch_glyph_string): Use it to choose a different GC
4355         when drawing a cursor within highlighted text.  Don't draw
4356         background again if it has already been drawn.
4357         (x_draw_glyph_string_box): Don't draw a full-width
4358         box just because the glyph row's full_width_p flag is set.
4359         (x_draw_glyphs): Fix computation of rightmost x for
4360         full-width rows.
4361         (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4362         (w32_draw_relief_rect): Extend left shadow to the bottom and left;
4363         change bottom shadow accordingly. Some cleanup.
4364         (x_update_window_end): Handle overwritten mouse face
4365         also for tool bar windows.
4366         (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4367         DRAW is DRAW_IMAGE_RAISED.
4368         (clear_mouse_face): Return 1 if text with mouse face was
4369         actually redrawn.  Make the function static.  Reset
4370         dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
4371         optimize away highlighting if we pass over that same overlay again.
4372         (note_mouse_highlight): Call mouse_face_overlay_overlaps
4373         to detect a case where we have to highlight a different region
4374         despite not having left the currently highlighted region.
4375         Set mouse_face_overlay in the x_display_info.  Avoid changing the
4376         mouse pointer shape when show_mouse_face has already done it, or
4377         there is no need.  Handle mouse-face and help-echo in strings.
4378         (glyph_rect): New function.
4379         (w32_mouse_position): Use it to raise the threshold for mouse
4380         movement event generation.
4381         (w32_initialize_display_info): Initialize the x_display_info's
4382         mouse_face_overlay.
4383         (w32_set_vertical_scroll_bar): Don't clear a zero height
4384         or width area.
4385         (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4386         a widget to zero height.
4388         * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4389         Protect unibyte strings created by replacing their multibyte
4390         equivalents in menu_items.
4391         (w32_menu_show): Don't overwrite an item's name with its key
4392         description in case the description is a multibyte string.
4393         (single_submenu): Some cleanup.
4395         * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
4396         (postprocess_image): New function.
4397         (lookup_image): Call it for all image types except PostScript.
4398         (x_kill_gs_process): Call postprocess_image.
4399         (tiff_error_handler, tiff_warning_handler): New functions.
4400         (tiff_load): Install them as handlers.
4401         (x_kill_gs_process): Recognize if someone has cleared the image
4402         cache under us.
4403         (valid_image_p): Protect better against invalid image
4404         specifications.  Previous code could signal an error.
4405         (Fx_hide_tip, Fshow_tip): Doc fix.
4406         (Fv_max_tooltip_size): New variable.
4407         (syns_of_xfns): DEFVAR_LISP it.
4408         (Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
4409         window buffer to *tip* right after creating the frame. Set frame's
4410         window_width.  Use a maximum tooltip size specified by
4411         Vx_max_tooltip_size, if that has valid contents.
4412         (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4413         Make sure the tooltip is completely visible.
4414         (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
4415         (Fx_create_frame): Adjust the frame's height for presence
4416         of the tool bar before calling x_figure_window_size.
4417         (x_set_tool_bar_lines): Clear the tool bar window's current matrix
4418         when the window gets smaller.
4419         (x_set_foreground_color): Set frame's cursor_pixel.
4420         (x_set_foreground_color, x_set_background_color): Cleaned up.
4421         (x_set_font): Handle case of x_new_fontset returning the same name
4422         as before, although there was a change in fontsets.
4424 2001-10-21  Miles Bader  <miles@gnu.org>
4426         * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
4427         (Flogxor): Add usage: string to doc string.
4428         * charset.c (Fstring): Likewise.
4429         * callproc.c (Fcall_process_region, Fcall_process): Likewise.
4430         * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
4432 2001-10-21  Pavel Jan\e,Bm\e(Bk  <Pavel@Janik.cz>
4434         * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
4436         * alloc.c: Reindent DEFUNs with doc: keywords.
4438         * abbrev.c (Finsert_abbrev_table_description): Reindent.
4440         * frame.c: Change doc-string comments to `new style' [w/`doc:'
4441         keyword].
4443 See ChangeLog.9 for earlier changes.
4445 ;; Local Variables:
4446 ;; coding: iso-2022-7bit
4447 ;; End:
4449     Copyright (C) 2001, 2002 Free Software Foundation, Inc.
4450   Copying and distribution of this file, with or without modification,
4451   are permitted provided the copyright notice and this notice are preserved.