*** empty log message ***
[emacs.git] / src / ChangeLog
blob4c0b59bf28b39c640a30877ce958b330e1ab24d6
1 2002-05-08  Kenichi Handa  <handa@etl.go.jp>
3         * coding.c (decode_coding_charset, encode_coding_charset): Handle
4         multiple charsets correctly.
6 2002-05-07  Kenichi Handa  <handa@etl.go.jp>
8         * search.c (boyer_moore): Fix handling of mulitbyte character
9         translation.
11         * xdisp.c (display_mode_element): When the variable `elt' is
12         changed, update `this' and `lisp_string'.
14 2002-05-07  Kenichi Handa  <handa@etl.go.jp>
16         * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18         * callproc.c (Fcall_process): Be sure to give the current buffer
19         to decode_coding_c_string.  Update PT and PT_BYTE after the
20         insertion.
22         * charset.c (struct charset_map_entries): New struct.
23         (load_charset_map): Renamed from parse_charset_map.  New args
24         entries and n_entries.  Caller changed.
25         (load_charset_map_from_file): Renamed from load_charset_map.
26         Caller changed.  New arg control_flag.  Call load_charset_map at
27         the tail.
28         (load_charset_map_from_vector): New function.
29         (Fdefine_charset_internal): Setup charset.compact_codes_p.
30         (encode_char): If the charset is compact, change a character index
31         to a code point.
33         * coding.c (coding_alloc_by_making_gap): Check the case that the
34         source and destination are the same correctly.
35         (decode_coding_raw_text): Set coding->consumed_char and
36         coding->consumed to 0.
37         (produce_chars): If coding->chars_at_source is nonzero, update
38         coding->consumed_char and coding->consumed before calling
39         alloc_destination.
40         (Fdefine_coding_system_alias): Register ALIAS in
41         Vcoding_system_alist.
42         (syms_of_coding): Define `no-convesion' coding system at the tail.
44         * fileio.c (Finsert_file_contents): Set coding_system instead of
45         val.  If the current buffer is multibyte, always call
46         decode_coding_gap.
48         * xfaces.c (try_font_list): Give higher priority to fontset's
49         family than face's family.
51 2002-04-18  Kenichi Handa  <handa@etl.go.jp>
53         * callproc.c (Fcall_process): Be sure to give the current buffer
54         to decode_coding_c_string.
56         * xfaces.c (try_font_list): Give a family specified in a fontset
57         higher priority than a family specified in a face.
59 2002-04-09  Kenichi Handa  <handa@etl.go.jp>
61         * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
62         Fix arguments to insert_from_buffer.
64         * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
66 2002-03-11  Kenichi Handa  <handa@etl.go.jp>
68         * coding.c (produce_chars): Set the variable `multibytep' correctly.
69         (decode_coding_gap): Set coding->dst_multibyte correctly.
71 >>>>>>> 1.2479.2.9
72 2002-03-07  Kenichi Handa  <handa@etl.go.jp>
74         * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
75         (decode_coding_utf_16): Fix converting high and low bytes to
76         code-point.
77         (encode_coding_utf_16): Substitute coding->default_char for
78         non-Unicode characters.
79         (decode_coding): Don't call record_insert here.
80         (setup_coding_system): Initialize `surrogate' of
81         coding->spec.utf_16 to 0.
82         (EMIT_ONE_BYTE): Fix for multibyte case.
84         * insdel.c (insert_from_gap): Call record_insert.
86 2002-03-04  Kenichi Handa  <handa@etl.go.jp>
88         * casefiddle.c (casify_region): Fix multibyte case.
90         * character.c (c_string_width): Add return type `int'.
91         (char_string_with_unification): Arg ADVANCED deleted.
93         * character.h (CHAR_VALID_P): Don't call CHARACTERP.
94         (CHAR_STRING): Adjusted for the change of
95         char_string_with_unification.
96         (CHAR_STRING_ADVANCE): Make it do-while statement.
98         * chartab.c (sub_char_table_set_range): Optimized for the case
99         DEPTH == 3.  Add workaround code for a GCC optimization bug.
101         * charset.c (parse_charset_map): Remove an unused variable.
103         * coding.c: Delete unused variables.
105         * fileio.c (Finsert_file_contents): Set coding_system to Qnil
106         earlier.  If inserted is zero and the coding system doesn't
107         require flushing, don't call decode_coding_gap.
109         * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
111 2002-03-01  Kenichi Handa  <handa@etl.go.jp>
113         The following changes are for using Unicode as an internal
114         character model, and use UTF-8 format for buffer/string
115         representation.
117         * .gdbinit (xchartable): Adjusted for the change of char table
118         structure.
119         (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
120         
121         * Makefile.in (obj): Add character.o and chartab.o.
122         (lisp, shortlisp): Remove utf-8.elc:
123         (*.o): For many files, change dependency on charset.h to
124         character.h, and add dependency on character.h.
125         (character.o, chartab.o): New targets.
126         
127         * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c,
128         doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c,
129         w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
130         of "charset.h".
131         
132         * dired.c, filelock.c: Include "character.h".
134         * alloc.c: Include "character.h" instead of "charset.h".
135         (Fmake_char_table): Moved to chartab.c.
136         (make_sub_char_table): Likewise.
137         (syms_of_alloc): Remove defsubr for Smake_char_table.
139         * buffer.c: Include "character.h" instead of "charset.h", don't
140         include "coding.h".
141         (Fset_buffer_multibyte): Adjuted for UTF-8.
143         * buffer.h: EXFUN Fbuffer_live_p.
145         * callproc.c: Include "character.h" instead of "charset.h".
146         (Fcall_process): Big change for the new code-conversion APIs.
148         * casetab.c: Include "character.h" instead of "charset.h".
149         (set_canon, set_identity, shuffle): Adjusted for the new
150         map_char_table spec.
151         (init_casetab_once): Call CHAR_TABLE_SET instead of directly
152         accessing the char table structure.
154         * chartab.c: New file that implements char table.
156         * category.c: Include "character.h".
157         (copy_category_entry): New function.
158         (copy_category_table): Call map_char_table and copy_category_entry.
159         (Fmake_category_table): Initialize all top-vel slots.
160         (char_category_set): New function.
161         (modify_lower_category_set): Deleted.
162         (Fmodify_category_entry): Call char_table_ref_and_range.
164         * category.h (CATEGORY_SET): Just call char_category_set.
166         * ccl.c: Include "character.h".
167         (Qccl, Qcclp): New variables.
168         (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
169         it's less than 256.
170         (CCL_WRITE_MULTIBYTE_CHAR): Deleted.
171         (CCL_WRITE_STRING, CCL_READ_CHAR): Adjusted for the change of SRC
172         and DST type.
173         (ccl_driver): Types of arguments changed.  Code adjusted for that.
174         (Fccl_execute, Fccl_execute_on_string): Adjusted for the change of
175         ccl_driver.
176         (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
178         * ccl.h (struct ccl_program): Members eol_type and multibyte
179         deleted.  New members src_multibyte, dst_multibyte, consumed, and
180         produced.
181         (struct ccl_spec): Members decoder and encoder deleted.  New
182         memeber ccl.
183         (CODING_SPEC_CCL_PROGRAM): New macro.
184         (ccl_driver): Prototype updated.
185         (Qccl, Qcclp, Fccl_program_p): Extern them.
186         (CHECK_CCL_PROGRAM): New macro.
188         * character.c, character.h, chartab.c: New files. 
190         * charset.c: Mostly re-written.  Character and multibyte sequence
191         handling codes are moved to character.c.
193         * charset.h: Mostly re-written.  Character and multibyte sequence
194         handling codes are moved to character.h.
196         * coding.c, coding.h: Mostly re-written.
198         * composite.c: Include "character.h" instead of "charset.h".
199         (CHAR_WIDTH): Moved to character.h.
200         (HASH_KEY, HASH_VALUE): Deleted.
202         * composite.h (enum composition_method): Order of enumeration
203         symbols changed.
205         * data.c: Include "character.h" instead of "charset.h".
206         (Faref): Call CHAR_TABLE_REF for a char table.
207         (Faset): Call CHAR_TABLE_SET for a char table.
209         * dispextern.h (free_realized_face, check_face_attribytes,
210         generate_ascii_font): Extern them.
211         (free_realized_multibyte_face): Extern deleted.
213         * disptab.h (DISP_CHAR_VECTOR): Adjusted for the change of char
214         table structure.
215         
216         * editfns.c: Include "character.h" instead of "charset.h".
217         (Fchar_to_string): Always call CHAR_STRING.
219         * emacs.c (main): Call init_charset_once, init_charset,
220         syms_of_chartab, and syms_of_character.
222         * fileio.c: Include "character.h" instead of "charset.h".
223         (Finsert_file_contents): Big change for the new code-conversion
224         API.
225         (choose_write_coding_system): Likewise.
226         (Fwrite_region): Likewise.
227         (build_annotations_2): Deleted.
228         (e_write): Big change for the new code-conversion API.
230         * fns.c: Include "character.h" instead of "charset.h".
231         (copy_sub_char_table): Moved to chartab.c.
232         (Fcopy_sequence): Call copy_char_table for a char table.
233         (concat): Delete codes calling count_multibyte.
234         (string_char_to_byte): Adjusted for the new multibyte form.
235         (string_byte_to_char): Likewise.
236         (internal_equal): Adjusted for the change of char table structure.
237         (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent,
238         Fchar_table_extra_slot, Fset_char_table_extra_slot,
239         Fchar_table_range, Fset_char_table_range, Fset_char_table_default,
240         char_table_translate, optimize_sub_char_table,
241         Foptimize_char_table, map_char_table, Fmap_char_table): Moved to
242         chartab.c.
243         (char_table_ref_and_index): Deleted.
244         (HASH_KEY, HASH_VALUE): Moved to lisp.h.
245         (Fmd5): Call preferred_coding_system instead of accessing
246         Vcoding_category_list.  Adjusted for the new code-conversion API.
247         (syms_of_fns): Defsubr for char table related functions moved to
248         chartab.c.
250         * fontset.c: Mostly re-written.
252         * fontset.h (struct font_info): Type of the member encoding_type
253         changed.
254         (enum FONT_SPEC_INDEX): New enum.
255         (fontset_font_pattern, fs_load_font): Prototype updated.
256         (FS_LOAD_FONT): Adjusted for the change of fs_load_font.
258         * indent.c: Include "character.h" instead of "charset.h".
259         (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of
260         WIDTH_BY_CHAR_HEAD.
262         * insdel.c: Include "character.h" instead of "charset.h".
263         (copy_text): Don't refer to Vnonascii_translation_table.
264         (insert_from_gap): New function.
266         * keyboard.c: Include "character.h" instead of "charset.h".
267         (command_loop_1): Never call direct_output_forward_char before
268         a non-ASCII character.
269         (read_char): If Vkeyboard_translate_table is a char table, always
270         translated a character.
272         * keymap.c: Include "character.h".
273         (store_in_keymap): Handle the case that IDX is a cons.
274         (Fdefine_key): Handle the case that KEY is a cons and the car part
275         is also a cons (range).
276         (push_key_description): Adjusted for the new character code.
277         (describe_vector): Call describe_char_table for a char table.
278         (describe_char_table): New function.
280         * keymap.h (describe_char_table): Extern it.
282         * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
283         (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
284         (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS,
285         SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
286         Deleted.
287         (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjusted for the new char table
288         structure.
289         (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
290         (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2,
291         CHARTAB_SIZE_BITS_3): New macros.
292         (chartab_size): Extern it.
293         (struct Lisp_Char_Table): Re-designed.
294         (struct Lisp_Sub_Char_Table): New structure.
295         (HASH_KEY, HASH_VALUE): Moved from fns.c.
296         (CHARACTERBITS): Defined as 22.
297         (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the above change.
298         (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
299         (GC_SUB_CHAR_TABLE_P): New macro.
300         (Fencode_coding_string, Fdecode_coding_string): EXFUN Updated.
301         (code_convert_string_norecord): Extern deleted.
302         (init_character_once, syms_of_character, init_charset,
303         syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
305         * lread.c: Include "character.h".
306         (read_multibyte): New arg NBYTES.
307         (read_escape): The meaning of returned *BYTEREP changed.
308         (to_multibyte): Deleted.
309         (read1): Adjuted the handling of char table and string.
311         * print.c: Include "character.h" instead of "charset.h".
312         (print_string): Convert 8-bit raw bytes to octal form by
313         string_escape_byte8.
314         (print_object): Adjusted for the new multibyte form.  Print 8-bit
315         raw bytes always in octal form.  Handle sub char table correctly.
317         * process.c: Include "character.h" instead of "charset.h".
318         (read_process_output): Adjusted for the new code-conversion API.
319         (send_process): Likewise.
321         * puresize.h (BASE_PURESIZE): Increased.
323         * regex.c: Include "character.h" instead of "charset.h".
324         (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
325         (regex_compile): Accept a range whose starting and ending
326         character have different leading bytes.
327         (analyse_first): Adjusted for the above change.
329         * search.c: Include "character.h" instead of "charset.h".
330         (search_buffer, boyer_moore): Adjusted for the new multibyte form.
331         (Freplace_match): Adjusted for the change of
332         multibyte_char_to_unibyte.
334         * syntax.c: Include "character.h" instead of "charset.h".
335         (syntax_parent_lookup): Deleted.
336         (Fmodify_syntax_entry): Accept a cons as CHAR.
337         (skip_chars): Adjusted for the new multibyte form.
338         (init_syntax_once): Call char_table_set_range instead of directly
339         accessing the structure of a char table.
341         * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
342         (SYNTAX_ENTRY_FOLLOW_PARENT): Macro deleted.
343         (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
344         (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
346         * term.c: Include "buffer.h" and "character.h".
347         (encode_terminal_code): Adjusted for the new code-conversion API.
348         (write_glyphs): Likewise.
349         (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
351         * w32term.c (x_new_font): Adjusted for the change of FS_LOAD_FONT.
353         * xdisp.c: Include "character.h".
354         (get_next_display_element): Adjusted for the new multibyte form.
355         (disp_char_vector): Adjusted for the new char table structure.
356         (decode_mode_spec_coding): Adjusted for the new structure of
357         coding system.
358         (decode_mode_spec): Adjusted for the new code-conversion API.
360         * xfaces.c: Include "character.h" instead of "charset.h".
361         (load_face_font): Adjusted for the change of choose_face_font and
362         FS_LOAD_FONT.
363         (generate_ascii_font): New function.
364         (set_lface_from_font_name): Adjusted for the change of
365         FS_LOAD_FONT.
366         (set_font_frame_param): Adjusted for the change of
367         choose_face_font.
368         (free_realized_face): Make it public.
369         (free_realized_faces_for_fontset): Renamed from
370         free_realized_multibyte_face.  Free also faces realized for ASCII.
371         (choose_face_font): Argments changed.  Adjusted for the change of
372         fontset_font_pattern and FS_LOAD_FONT.
374         * xfns.c: Include "character.h".
375         (x_encode_text): Adjusted for the new code-conversion API.
377         * xselect.c: Don't include "charset.h".
378         (selection_data_to_lisp_data): Adjusted for the new code
379         covnersion API.
381         * xterm.c: Include "character.h".
382         (x_encode_char): New argument CHARSET.  Caller changed.
383         (x_get_char_face_and_encoding): Call ENCODE_CHAR instead of
384         SPLIT_CHAR.
385         (x_get_glyph_face_and_encoding): Likewise.
386         (x_produce_glyphs): Don't check Vnonascii_translation_table Call
387         CHAR_WIDTH instead of CHARSET_WIDTH.
388         (XTread_socket): Adjusted for the new code-conversion API.
389         (x_new_font): Adjusted for the change of FS_LOAD_FONT.
390         (x_load_font): Adjusted for the change of struct font.
392 2002-02-26  Kim F. Storm  <storm@cua.dk>
394         The following changes add a new Vminibuf_selected_window variable
395         which is similar to Vminibuf_scroll_window, but which is only set
396         on entry to the minibuffer (from a non-minibuffer window):
397         
398         * window.c: (Vminibuf_selected_window): New variable.
399         (struct save_window_data): New member minibuf_selected_window.
400         (Fset_window_configuration): Restore Vminibuf_selected_window.
401         (Fcurrent_window_configuration): Save Vminibuf_selected_window.
402         Set minibuf_scroll_window member to nil if minibuf_level is 0.
403         (compare_window_configurations): Compare minibuf_selected_window.
405         * window.h: (Vminibuf_selected_window): Declare extern.
407         * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
408         entry to minibuffer or on entry from a non-minibuffer window.
410         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
411         Vminibuf_selected_window instead of Vminibuf_scroll_window.
413         * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
414         instead of Vminibuf_scroll_window when deciding in which window
415         the region should be highlighted.  Consequently, the region remains
416         highlighteded even when a completion buffer is also displayed.
418 2002-02-26  Eli Zaretskii  <eliz@is.elta.co.il>
420         * fileio.c (Fsubstitute_in_file_name): Fix the change from
421         2002-02-08.
423         * xselect.c (Qcompound_text_with_extensions): Renamed from
424         Qcompound_text_no_extensions.
425         (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
427 2002-02-26  Juanma Barranquero  <lektu@terra.es>
429         * w32proc.c (syms_of_ntproc): Doc fix.
431 2002-02-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
433         * intervals.h: Include "dispextern.h" unconditionally.
435 2002-02-24  Jason Rumney  <jasonr@gnu.org>
437         * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
438         and disp-table.elc.
439         (lisp): Add emacs-lisp/backquote.elc.
441 2002-02-24  Kim F. Storm  <storm@cua.dk>
443         * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
444         The validation of the event type was too strict as it didn't
445         allow string events; buffer names are used in bindings for
446         menu-bar-select-buffer (see `menu-bar-update-buffers').
448 2002-02-23  Kim F. Storm  <storm@cua.dk>
450         The following changes rework my patch of 2002-02-06 which 
451         added command remapping by entering the commands directly into
452         the keymaps.  Now, command remapping uses an explicit `remap'
453         prefix in the keymaps, i.e. [remap COMMAND].
454         
455         * keymap.c (Qremap, remap_command_vector): New variables.
456         (is_command_symbol): Removed function.
457         (Fdefine_key): No longer accept a symbol for KEY.  Added
458         validation of [remap COMMAND] argument for KEY.  The DEF is no
459         longer required to be a symbol when remapping a command.
460         (Fremap_command): New function to remap command through keymaps.
461         (Flookup_key): Perform command remapping initiated by
462         Fremap_command directly for speed.
463         (Fkey_binding): Use Fremap_command for command remapping.
464         (where_is_internal): Handle new command remapping representation.
465         (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
466         staticpro them.  Defsubr Fremap_command.
468         * keymap.h (Fremap_command): Declare extern.
469         (is_command_symbol): Remove extern.
470         
471         * keyboard.c (command_loop_1): Use Fremap_command for command
472         remapping; now try command remapping for all symbols.
474 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
476         * coding.h (run_pre_post_conversion_on_str): Add prototype.
478 2002-02-23  Jason Rumney  <jasonr@gnu.org>
480         * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
481         on the string before encoding it.
482         (Fw32_get_clipboard_data): Run post-read-conversion on the string
483         after decoding it.
485         * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
487 2002-02-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
489         * w32term.c (enter_timestamp): Remove unused static variable to
490         prevent warning.
492         * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
494 2002-02-23  Eli Zaretskii  <eliz@is.elta.co.il>
496         * w16select.c (Fw16_get_clipboard_data): Fix last change.
498         * xselect.c (selection_data_to_lisp_data): Fix last change.
500 2002-02-22  Jason Rumney  <jasonr@gnu.org>
502         * w32term.h (struct w32_output): New member menu_command_in_progress.
504         * w32menu.c (menubar_selection_callback): Free the menu and
505         clear the menu_command_in_progress flag.
507         * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
508         (menu_free_timer): New variable.
509         (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
510         (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
511         <WM_EXITMENULOOP>: Delay before freeing menu.  Do nothing if a
512         menu command is in progress.
513         <WM_COMMAND>: Set the menu_command_in_progress flag.  Kill
514         any menu_free_timer that is running.
516         * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
517         Call ExtTextOutA rather than ExtTextOut.
519 2002-02-22  Eli Zaretskii  <eliz@gnu.org>
521         * puresize.h (BASE_PURESIZE): Increase to 755000.
523 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
525         * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
526         on the string before encoding it.
527         (Fw16_get_clipboard_data): Run post-read-conversion on the string
528         after decoding it.
530 2002-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
532         Support for ICCCM  Extended Segments in X selections:
534         * xselect.c <Qcompound_text_no_extensions>: New variable.
535         (syms_of_xselect): Intern and staticpro it.
536         (selection_data_to_lisp_data): Run post-read-conversion on decoded
537         selection text.
538         (lisp_data_to_selection_data): If next-selection-coding-system is
539         compound-text-no-extensions, set the type of selection to be
540         compound-text.
542         * xterm.h (x_encode_text): Update prototype.
544         * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
545         callers changed.  If SELECTIONP is non-zero, run the
546         pre-write-conversion function before encoding the selection text.
548 2002-02-21  Kim F. Storm  <storm@cua.dk>
550         * frame.c (syms_of_frame): Change mouse-highlight default to t.
552         * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]: Corrected
553         composing of language-change event.
555 2002-02-20  Kim F. Storm  <storm@cua.dk>
557         * keyboard.c (menu_bar_items): Don't include keymap or local-map
558         bindings at PT when building menu (the menu is not updated often
559         enough for this to work reliable).
560         (tool_bar_items): Likewise.
561         (current_active_maps): Removed unused (and buggy) function.
563 2002-02-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
565         * xfns.c (gif_load): Use correct width and height for GIF images.
567 2002-02-19  Eli Zaretskii  <eliz@is.elta.co.il>
569         * floatfns.c (Fatan): Accept an optional second arg and call
570         atan2 if passed 2 args.
572 2002-02-18  Jason Rumney  <jasonr@gnu.org>
574         * w32term.c (glyph_rect): Determine the row and glyph more precisely.
576 2002-02-17  Jason Rumney  <jasonr@gnu.org>
578         * w32term.c (x_autoselect_window_p): New variable.
579         (syms_of_w32term): DEFVAR_BOOL and initialize it.
580         (note_mouse_movement): Use it.
582         * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
584         * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
586         * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
587         New variables.
588         (syms_of_w32fns): Intern and staticpro them.
589         (x_frame_parms) <"fullscreen">: New parameter.
590         (x_fullscreen_move, x_set_fullscreen): New functions.
591         (x_set_frame_parameters): Support Qfullscreen.
592         (x_real_positions): Save x/y_pixels_diff frame params. 
593         (x_figure_window_size): Support full-screen frames.
594         (Fx_create_frame): Default the fullscreen parameter.
596         * w32term.c (x_check_fullscreen, x_check_fullscreen_move) 
597         (x_fullscreen_adjust): New functions.
598         (w32_read_socket) <WM_WINDOWPOSCHANGED>:  Don't resize to
599         fullscreen.  Call x_check_fullscreen_move, and set the
600         want_fullscreen member of output_data.w32
601         <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
603         * w32term.h: New enum for FULLSCREEN_* constants.
604         (struct w32_output): New members want_fullscreen, x_pixels_diff,
605         y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
606         (x-fullscreen-adjust): New prototype.
608 2002-02-17  Kim F. Storm  <storm@cua.dk>
610         * frame.c: (Vmouse_highlight): New variable.
611         (syms_of_frame): DEFVAR_LISP it.
613         * frame.h: (Vmouse_highlight): Declare extern.
615         * xterm.h (struct x_display_info): Add mouse_face_hidden.
617         * xterm.c (disable_mouse_highlight): Removed variable.
618         (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
619         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
620         (XTread_socket): Turn mouse_face_hidden off after mouse movement,
621         and on after keyboard input.
622         (x_term_init): Initialize mouse_face_hidden.
624         * msdos.h (struct display_info): Add mouse_face_hidden.
626         * msdos.c (disable_mouse_highlight): Removed variable.
627         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
628         (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
629         (internal_terminal_init): Initialize mouse_face_hidden.
630         (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
631         and on after keyboard input.
633         * w32term.h (struct w32_display_info): Add mouse_face_hidden.
635         * w32term.c (disable_mouse_highlight): Removed variable.
636         (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
637         (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
638         (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
639         and on after keyboard input.
640         (w32_initialize_display_info): Initialize mouse_face_hidden.
642 2002-02-16  Eli Zaretskii  <eliz@is.elta.co.il>
644         * msdos.c (last_mouse_window): New variable.
645         (dos_rawgetc): Fix last change--if the mouse is in the same window
646         as recorded in last_mouse_window, don't select this window.
648         * Makefile.in (lisp, shortlisp): Use cus-start.elc, not
649         cus-start.el.
651         * msdos.c (x_autoselect_window_p): New variable.
652         (syms_of_msdos): Defvar it.
653         (dos_rawgetc): If x_autoselect_window_p is set, select the window
654         in which the last mouse movement occured, unless it is already
655         selected.
657         * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step): New
658         variables.
659         (syms_of_xdisp): DEVFAR them.
660         (hscroll_window_tree): Use automatic_hscroll_margin and
661         Vautomatic_hscroll_step to compute the amount of window scrolling.
663 2002-02-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
665         * xterm.c (x-autoselect-window): New variable.
666         (note_mouse_movement): Use it.
668         * keyboard.c: Do not include "systime.h" twice.
670 2002-02-15  Andreas Schwab  <schwab@suse.de>
672         * puresize.h (BASE_PURESIZE): Increase to 9/5.
674         * alloc.c (NSTATICS): Increase to 1280.
676 2002-02-15  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
678         * alloc.c (NSTATICS): Bump to 1026.
680         * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
681         (Vx_super_keysym): New variables.
682         (syms_of_xterm): DEFVAR_LISP them.
683         (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
684         variables to determine which keys to use for the various
685         modifiers.
687 2002-02-13  Kim F. Storm  <storm@cua.dk>
689         * window.c: (Vmode_line_in_non_selected_windows): Removed.
690         (mode_line_in_non_selected_windows): New variable.
691         (syms_of_window): DEFVAR_BOOL it.
693         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Use
694         mode_line_in_non_selected_windows.
695         (mode_line_in_non_selected_windows): Declare extern.
696         (Vmode_line_in_non_selected_windows): Removed extern.
698 2002-02-13  Richard M. Stallman  <rms@gnu.org>
700         * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector) 
701         (Fthis_single_command_keys, Fthis_single_command_raw_keys) 
702         (Fclear_this_command_keys): Doc fixes.
704         * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face) 
705         (update_face_from_frame_parameter): Increment face_change_count
706         and windows_or_buffers_changed to force redisplay using changed faces.
708         * xdisp.c (QCpropertize): New variable.
709         (mode_line_proptrans_alist): New variable.
710         (display_mode_element): New arg PROPS; all calls changed.
711         Implement this, for strings.
712         Handle literal output of strings by sharing the
713         main-line code for strings, using local var `literal'.
714         Handle :propertize feature.
715         (syms_of_xdisp): Initialze and staticpro QCpropertize and 
716         mode_line_proptrans_alist.
717         
718 2002-02-11  Kim F. Storm  <storm@cua.dk>
720         * window.c: (Vmode_line_in_non_selected_windows): New variable.
721         (syms_of_window): DEFVAR_LISP it.
723         * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
724         (CURRENT_MODE_LINE_FACE_ID): Use it.
725         (Vmode_line_in_non_selected_windows): Declare extern.
727         * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
728         to get mode line face.
730 2002-02-11  Eli Zaretskii  <eliz@is.elta.co.il>
732         * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
733         variables; cus-start.el doesn't need them anymore.
735 2002-02-09  Kim F. Storm  <storm@cua.dk>
737         * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
738         reduction.  This fixes a display problem where stray newlines were
739         inserted in the window (corrected by C-l).  Clarified code (IMHO).
741 2002-02-09  Eli Zaretskii  <eliz@is.elta.co.il>
743         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
745         * xdisp.c (display_mode_lines): Fix last change.
747 2002-02-09  Jason Rumney  <jasonr@gnu.org>
749         * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
750         match each other.
751         (w32_load_system_font): Prevent Cleartype fonts from loading.
752         (Fx_show_tip): Ensure tip frames are above other topmost windows.
754 2002-02-09  Kim F. Storm  <storm@cua.dk>
756         * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
757         (CURRENT_MODE_LINE_HEIGHT): Use it.
758         (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
760         * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
761         (pos_visible_p, handle_face_prop): Likewise.
762         (display_mode_lines): Likewise, but for the real selected window.
763         (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
765         * xfaces.c (Qmode_line_inactive): New face variable for mode-line
766         in non-selected windows.
767         (realize_basic_faces): Realize it.
768         (syms_of_term): Intern and staticpro it.
770 2002-02-08  Kim F. Storm  <storm@cua.dk>
772         * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): 
773         Changed mail addresses to emacs-devel@gnu.org.
775 2002-02-08  Eli Zaretskii  <eliz@is.elta.co.il>
777         * fileio.c (Fsubstitute_in_file_name): If the file name includes
778         ~user, and there's no such user, don't discard everything before
779         ~user.
781         * floatfns.c (Fround): Doc fix.
783 2002-02-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
785         * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
787 2002-02-07  Stefan Monnier  <monnier@cs.yale.edu>
789         * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
791 2002-02-07  Kim F. Storm  <storm@cua.dk>
793         * keymap.c (where_is_internal): Only check whether definition is
794         remapped if it fulfills is_command_symbol.
796 2002-02-07  Andreas Schwab  <schwab@suse.de>
798         * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
800         * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
802 2002-02-06  Kim F. Storm  <storm@cua.dk>
804         * keymap.c (Fdefine_key): Allow symbol as KEY argument for
805         defining command remapping.  Doc updated.
806         (Flookup_key): Remap command through keymap if KEY is a symbol.
807         (is_command_symbol): New function.
808         (Fkey_binding): Use it.  New optional argument NO-REMAP.
809         Doc updated.  Callers changed.  Perform command remapping via
810         recursive call unless that arg is non-nil.
811         (where_is_internal): New argument no_remap.  Callers changed.
812         Call recursively to find original key bindings for a remapped
813         comand unless that arg is non-nil.
814         (Fwhere_is_internal): New optional argument NO-REMAP.
815         Doc updated.  Callers changed.  Pass arg to where_is_internal.
817         * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
818         (is_command_symbol): Added prototype.
820         * keyboard.c (Vthis_original_command): New variable.
821         (syms_of_keyboard): DEFVAR_LISP it.
822         (command_loop_1): Set it, and perform command remapping.
824 2002-02-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
826         * keyboard.c (recursive_edit_1): Call cancel_hourglass
827         unconditionally.
829 2002-02-06  Jason Rumney  <jasonr@gnu.org>
831         * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
833 2002-02-06  Eli Zaretskii  <eliz@is.elta.co.il>
835         * charset.c (get_charset_id): Use if-else instead of ?:.
837 2002-02-06  Richard M. Stallman  <rms@gnu.org>
839         * filelock.c (S_ISLNK): Define if not defined.
841 2002-02-03  Richard M. Stallman  <rms@gnu.org>
843         * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
845         * lread.c (read1): Redesign strategy for force_multibyte and
846         force_singlebyte.  Now is_multibyte records whether read_buffer
847         is multibyte.  Encountering any multibyte character makes it so.
849 2002-02-02  Stefan Monnier  <monnier@cs.yale.edu>
851         * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
852         with the same sequence, map that sequence to f10 rather than f0.
854 2002-02-03  Andreas Schwab  <schwab@suse.de>
856         * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
857         latter never being defined on GNU/Linux.
859 2002-02-02  Eli Zaretskii  <eliz@is.elta.co.il>
861         * xfaces.c (realize_default_face): Don't set the weight and slant
862         of the default face to Qnormal, unless these attributes are
863         unspecified.
865 2002-02-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
867         * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
868         Call cancel_hourglass unconditionally.
870         * eval.c (Fsignal): Remove duplicated declaration of
871         the variable `display_hourglass_p'.
873 2002-01-31  Richard M. Stallman  <rms@gnu.org>
875         * editfns.c (region_limit): Nicer error message.
877         * coding.c (decode_composition_emacs_mule):
878         Give up if NCOMPONENT gets too large to index `component'.
880         * callint.c (check_mark): New arg to specify clearer error message.
881         Callers changed.
883 2002-01-27  Richard M. Stallman  <rms@gnu.org>
885         * minibuf.c (Fcompleting_read): Doc fix.
887 2002-01-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
889         * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
890         (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
891         Fix doc-strings.
893 2002-01-26  Richard M. Stallman  <rms@gnu.org>
895         * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
897         * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
898         and scroll_up_aggressively.
900 2002-01-26  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
902         * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
904 2002-01-25  Stefan Monnier  <monnier@cs.yale.edu>
906         * textprop.c (Fnext_property_change, Fnext_single_property_change)
907         (Fprevious_property_change, Fprevious_single_property_change):
908         Stay within the narrowed-buffer boundaries.
910 2002-01-25  Eli Zaretskii  <eliz@is.elta.co.il>
912         * term.c (Ftty_display_color_cells): New function.
913         (syms_of_term): Defsubr it.
914         (Ftty_display_color_cells, Ftty_display_color_p): Change the
915         argument name to DISPLAY.  Doc fix.
917         * dispextern.h: Add prototype for set_tty_color_mode and
918         tty_setup_colors.
920 2002-01-24  Jason Rumney  <jasonr@gnu.org>
922         * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
923         If region left to draw is not what was expected, mark the frame as
924         garbaged.
926         * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
927         Combine the regions returned by BeginPaint and GetUpdateRect.
929 2002-01-23  Jason Rumney  <jasonr@gnu.org>
931         * w32term.c (x_update_window_begin): Only hide caret if
932         w32_use_visible_system_caret is set.
933         (x_update_window_end): Only show caret if
934         w32_use_visible_system_caret is set.
935         (syms_of_w32term): Handle SystemParametersInfo call failing.
937         * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
939 2002-01-22  Richard M. Stallman  <rms@gnu.org>
941         * unexelf.c (unexec): Define n so as to cause compilation error
942         for the code where people have often written n instead of nn.
944         * .gdbinit (hookpost-run): Defined.
946 2002-01-22  Jan D.  <Jan.Djarv@mbox200.swipnet.se>
948         * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
950 2002-01-21  Jan D.  <Jan.Djarv@mbox200.swipnet.se>
952         * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
953         if fullscreen is being set.
955 2002-01-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
957         * minibuf.c (Fminibuffer_contents)
958         (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
959         (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
961 2002-01-21  Richard M. Stallman  <rms@gnu.org>
963         * window.c (check_frame_size): Fix minimum height calculation.
965 2002-01-20  Ken Raeburn  <raeburn@gnu.org>
967         * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
968         height before comparison.
969         (WINDOW_WANTS_HEADER_LINE_P): Likewise.
971 2002-01-20  Jason Rumney  <jasonr@gnu.org>
973         * w32term.c (w32_system_caret_width): Remove.
974         (w32_use_visible_system_caret): New user flag.
975         (syms_of_w32term): DEFVAR_BOOL it.  Initialize based on whether
976         Windows reports a screen reader running.
977         (x_update_window_begin): Hide the system caret.
978         (x_update_window_end): Show the system caret.
979         (x_display_and_set_cursor): Don't draw a cursor when
980         w32_use_visible_system_caret is set.  Do not adjust width.
982         * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
983         (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
984         <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
985         the user requests it.  Use system default width when creating.
986         <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
988         * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
989         New window messages.
991 2002-01-20  Richard M. Stallman  <rms@gnu.org>
993         * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
995 2002-01-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
997         * doprnt.c (doprnt1): Fix typos in error call.
999 2002-01-20  Eli Zaretskii  <eliz@is.elta.co.il>
1001         * unexelf.c (unexec) [__sgi]: Support the .got sections.
1003 2002-01-20  Jason Rumney  <jasonr@gnu.org>
1005         * w32term.c (w32_native_per_char_metric): Don't trust the metrics
1006         that Windows returns.  If a double check fails, try to guess how
1007         ExtTextOut is going to act.
1009         * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
1010         in place of stricmp.
1011         (w32_list_synthesized_fonts): Removed.
1012         (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
1013         (struct enumfont_t): New element; list.
1014         (enum_font_cb2): List all style and charset variations of a font.
1015         (Fw32_select_font): New optional argument; include_proportional.
1016         Exclude vertical fonts.  Exclude proportional fonts unless
1017         include_proportional is non-nil.
1018         (w32_enable_synthesized_fonts): Change to a boolean.
1019         (Fw32_send_sys_command): Doc fix.
1021 2002-01-19  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1023         * dispnew.c (update_frame): Move the variable `tem' to the block
1024         where it is used.
1026 2002-01-19  Jason Rumney  <jasonr@gnu.org>
1028         * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
1029         call to face-set-after-frame-default.
1031 2002-01-18  Richard M. Stallman  <rms@gnu.org>
1033         * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
1034         (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
1036 2002-01-17  Richard M. Stallman  <rms@gnu.org>
1038         * window.c (enlarge_window): When exceeding size of parent,
1039         directly delete all the siblings instead of trying to resize it.
1041 2002-01-17  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1043         * term.c (set_tty_color_mode): Remove unused variable `tem'.
1045 2002-01-16  Henrik Enberg  <henrik@enberg.org>
1047         * lread.c (init_lread): Move the installed-lisp dirs later in the path.
1049 2002-01-16  Kim F. Storm  <storm@cua.dk>
1051         * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
1052         is invisible.  This can happen if cursor is on top line of a
1053         window, and we switch to a buffer with a header line.
1055         * w32term.c (x_erase_phys_cursor): Ditto.
1057 2002-01-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1059         * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
1060         `dont_resize' only when used.
1062         * xdisp.c: Remove forgotten extern declaration of `Qimage'.
1064 2002-01-15  Eli Zaretskii  <eliz@is.elta.co.il>
1066         * xdisp.c (display_mode_element): When computing charpos, depend
1067         on multibyteness of elt, not the text in field.
1069 2002-01-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1071         * buffer.c (Fkill_all_local_variables): Increment
1072         `update_mode_lines' only once.
1074 2002-01-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1076         * lisp.h (adjust_after_replace_noundo)
1077         (Fupdate_coding_systems_internal): Add prototypes.
1079         * sound.c (Fplay_sound): Initialize header_size also for :data case.
1081 2002-01-14  Eli Zaretskii  <eliz@is.elta.co.il>
1083         Support for the --color command-line argument and tty-color-mode
1084         frame parameter:
1086         * term.c (tty_default_color_capabilities, tty_setup_colors)
1087         (set_tty_color_mode): New functions.
1088         (term_init): Call tty_default_color_capabilities.
1089         (Qtty_color_mode_alist): New variable.
1090         (syms_of_term): Intern and staticpro it.
1092         * frame.c (store_frame_param): Call set_tty_color_mode for termcap
1093         frames.
1094         (do_switch_frame): For termcap frames, switch the tty
1095         color mode as specified by the frame's parameters.
1096         (Qtty_color_mode): New variable.
1097         (syms_of_frame): Intern and staticpro it.
1099         * emacs.c (USAGE2): Add the --color option.
1100         (standard_args): Ditto.
1102 2002-01-13  Jan Djarv  <Jan.Djarv@mbox200.swipnet.se>
1104         * xterm.h (struct x_output): New members want_fullscreen,
1105         x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
1106         y_pixels_outer_diff.
1107         New enum for FULLSCREEN_* constants.
1108         (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
1109         is NULL.
1110         (x_fullscreen_adjust): Add prototype.
1112         * emacs.c (USAGE2): Add the new full-screen arguments.
1113         (standard_args): Ditto.
1115         * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
1116         New variables.
1117         (syms_of_xfns): Intern and staticpro them.
1118         (x_frame_parms) <"fullscreen">: New parameter.
1119         (x_fullscreen_move, x_set_fullscreen): New functions.
1120         (x_set_frame_parameters): Support for Qfullscreen.
1121         (x_real_positions): More accurate computation of the frame position.
1122         (x_figure_window_size): Support full-screen frames.
1123         (Fx_create_frame): Default the fullscreen parameter.
1125         * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
1126         (XTread_socket) <Expose>: Call x_check_fullscreen.
1127         <ConfigureNotify>: Don't resize to fullscreen.
1128         Call x_check_fullscreen_move, and set the want_fullscreen member of
1129         output_data.x.
1131 2002-01-13  Jason Rumney  <jasonr@gnu.org>
1133         * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
1134         for mice with more than 3 buttons.
1136         * w32term.c (parse_button): New parameter xbutton.  Callers changed.
1137         (w32_read_socket): Handle new "XBUTTON" messages.
1139         * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
1140         (syms_of_w32fns): DEFVAR_BOOL it.
1141         (w32_wnd_proc): Handle new "XBUTTON" messages.
1143 2002-01-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1145         * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
1147 2002-01-13  Andreas Schwab  <schwab@suse.de>
1149         * xterm.c (x_load_font): Never set fonts_changed_p to zero.
1151 2002-01-12  Andreas Schwab  <schwab@suse.de>
1153         * .gdbinit (xbuffer): Remove address operator since data is now a
1154         pointer.
1156 2002-01-11  Richard M. Stallman  <rms@gnu.org>
1158         * insdel.c (adjust_after_replace_noundo): New function.
1160         * coding.c (code_convert_region): Don't copy old text if undo disabled.
1162 2002-01-09  Jason Rumney  <jasonr@gnu.org>
1164         * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
1165         when checking for multiple frames.
1167 2002-01-08  Richard M. Stallman  <rms@gnu.org>
1169         * window.c (delete_window): Rewrite the code for changing the
1170         selected window to handle the case where WINDOW is not a leaf.
1172 2002-01-07  Eli Zaretskii  <eliz@is.elta.co.il>
1174         * process.c (send_process): Set src_multibyte to 1 after the call
1175         top setup_coding_system, not before the call.
1177 2002-01-07  Jason Rumney  <jasonr@gnu.org>
1179         * xmenu.c (set_frame_menubar, xmenu_show):
1180         (xdialog_show): Initialize wv->help to Qnil.
1182         * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
1183         (w32_dialog_show): Initialize wv->help to Qnil.
1185 2002-01-06  Jason Rumney  <jasonr@gnu.org>
1187         * xmenu.c (single_submenu): Initialize wv->help to Qnil.
1189         * w32menu.c (w32_menu_display_help): Revert last change.
1191         * xmenu.c (menu_highlight_callback): Revert last change.
1193 2002-01-06  Andreas Schwab  <schwab@suse.de>
1195         * insdel.c (make_gap_larger): Make sure buffer size does not
1196         overflow range of int.
1198 2002-01-05  Jason Rumney  <jasonr@gnu.org>
1200         * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1201         OVERLAPS_P.
1203         * w32menu.c (w32_menu_display_help): Hide any tooltip window.
1205         * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
1206         to the left or to the right of the pointer, put it against
1207         the left screen edge.
1208         (x_frame_parms): Add missing braces around initializer.
1210         * w32term.c (x_setup_relief_colors): Don't compute an image's
1211         background color if it doesn't have a Pixmap.
1212         (notice_overwritten_cursor): Don't depend on
1213         output_cursor and updated_area.  Compare pixel coordinates with
1214         window's cursor pixel coordinates.
1215         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1216         Call notice_overwritten_cursor with new arg list.
1217         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1218         unconditionally.
1219         (x_draw_image_relief): Use predefined macro instead of
1220         constant when the value of `tool_bar_button_relief' is negative.
1222         * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
1224 2002-01-04  Richard M. Stallman  <rms@gnu.org>
1226         * xmenu.c (menu_highlight_callback): Hide any tooltip window.
1228 2002-01-03  Richard M. Stallman  <rms@gnu.org>
1230         * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
1231         (Fkey_binding): Try the `keymap' property map first.
1232         (Fdescribe_buffer_bindings): Show `keymap' property bindings before
1233         minor mode bindings.
1235 2002-01-03  Kim F. Storm  <storm@cua.dk>
1237         * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
1239 2002-01-02  Richard M. Stallman  <rms@gnu.org>
1241         * keyboard.c (read_key_sequence): Handle the keymap property
1242         before minor mode maps.
1244         * editfns.c (Fformat): Update thissize from field_width
1245         based on the actual width, in the string case.
1247 2002-01-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1249         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
1250         when used as truth value to prevent gcc warnings.
1252         * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
1253         * w32proc.c: Include <config.h>.
1255 2002-01-01  Andreas Schwab  <schwab@suse.de>
1257         * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
1258         not EMACS_INT, to make them compatible with DEFVAR_INT.
1259         * lisp.h (max_specpdl_size): Adjust declaration.
1261 2002-01-01  Richard M. Stallman  <rms@gnu.org>
1263         * print.c (print_object): Test print_escape_nonascii only for
1264         unibyte strings.
1265         (PRINTPREPARE): Once again bind Qprint_escape_nonascii
1266         when outputting to a multibyte buffer.
1268 2001-12-29  Richard M. Stallman  <rms@gnu.org>
1270         * print.c (print_object): In multibyte string, use hex escapes.
1271         Use octal only for unibyte strings.
1272         (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
1274         * lread.c (read_escape): New arg BYTEREP for reporting whether
1275         escape forces unibyte or multibyte.
1276         (read1): When reading a string, take note of that info.
1278 2001-12-29  Ken Raeburn  <raeburn@gnu.org>
1280         * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
1281         comparison to test lisp value returned by Fget.
1283 2001-12-29  Richard M. Stallman  <rms@gnu.org>
1285         * lisp.h (max_specpdl_size): Add declaration.
1287         * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
1289         * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
1290         Handle modifier bits.  Correct typo in error message.
1292 2001-12-28  Richard M. Stallman  <rms@gnu.org>
1294         * abbrev.c: Use the plist of an abbrev for multiple params if nec.
1295         (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
1296         (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1297         Update calls to Fdefine_abbrev.
1298         (write_abbrev): Update for changed data format.
1299         Don't list "system" abbrevs.
1300         (Fexpand_abbrev): Update use count with new data format.
1301         (describe_abbrev): Update for changed data format.
1302         (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
1304         * config.in (HAVE_MBSINIT): Add #undef.
1306         * strftime.c (mbsinit): Define as no-op if not available.
1308         * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
1309         (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
1311         * keymap.c (Flookup_key): Error message if key has wrong data type.
1312         (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
1313         (exclude_key): New variable.
1315 2001-12-28  Gerd Moellmann  <gerd@gnu.org>
1317         * xterm.c (x_setup_relief_colors): Don't compute an image's
1318         background color if it doesn't have a Pixmap.
1320         * xterm.c (notice_overwritten_cursor): Don't depend on
1321         output_cursor and updated_area.  Compare pixel coordinates with
1322         window's cursor pixel coordinates.
1323         (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1324         Call notice_overwritten_cursor with new arg list.
1325         (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1326         unconditionally.
1328         * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
1329         height of the cursor line to the amount to scroll.
1331 2001-12-27  Richard M. Stallman  <rms@gnu.org>
1333         * intervals.c (set_point_both): The position after an invisible,
1334         intangible character is not an acceptable stopping point.
1336 2001-12-27  Ken Raeburn  <raeburn@gnu.org>
1338         * window.c (enlarge_window): In new preserve_before code, convert
1339         CURBEG from lisp object to integer before doing arithmetic.
1341 2001-12-27  Richard M. Stallman  <rms@gnu.org>
1343         * bytecode.c (Fbyte_code): Undo previous change.
1345 2001-12-26  Kim F. Storm  <storm@cua.dk>
1347         * keyboard.c (record_char): Ignore duplicate help-echo events only
1348         separated by mouse-movement.  When tracking mouse, only record
1349         first and last mouse-movement event in same window.
1350         Don't record mouse-movement events in keyboard macros.
1352 2001-12-25  Richard M. Stallman  <rms@gnu.org>
1354         * window.c (enlarge_window): New arg PRESERVE_BEFORE.  Callers changed.
1355         (Fenlarge_window): New arg PRESERVE_BEFORE.
1357         * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
1358         instead of Fstring_as_unibyte.
1360 2001-12-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1362         The following changes remove mocklisp support:
1364         * mocklisp.h, mocklisp.c: Files removed.
1366         * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
1367         `Qmocklisp' and `Qmocklisp_arguments'.
1368         Remove prototype of syms_of_mocklisp.
1370         * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
1372         * callint.c: Do not include mocklisp.h.
1373         (Fcall_interactively): Do not test for mocklisp case.
1375         * eval.c: Remove variables `Qmocklisp_arguments',
1376         `Vmocklisp_arguments' and `Qmocklisp'.  Remove prototype of ml_apply.
1377         (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
1378         Do not test for mocklisp case.
1379         (Fwhile): Remove unused variable `tem'.
1380         (syms_of_eval): Remove variable `moclisp-arguments'.
1382         * data.c (wrong_type_argument): Remove mocklisp case.
1384         * doc.c (Fdocumentation): Remove mocklisp case.
1386         * emacs.c (main): Do not call syms_of_mocklisp.
1388 2001-12-21  Richard M. Stallman  <rms@gnu.org>
1390         * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
1391         to the left or to the right of the pointer, put it against
1392         the left screen edge.
1394 2001-12-21  Eli Zaretskii  <eliz@is.elta.co.il>
1396         * Makefile.in (distclean): Remove .gdbinit if we are building
1397         outside the source tree.
1399 2001-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
1401         * w32.c (emacs_root_dir): New function.
1403         * msdos.c (emacs_root_dir): New function.
1405         * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
1406         of the current drive as the fallback for default_directory.
1408         * dired.c (file_name_completion): Run the elements of
1409         completion-ignored-extensions through ENCODE_FILE.
1411         * lisp.h (scmp): Remove prototype, since it's now a static
1412         function private to dired.c.
1414 2001-12-18  Richard M. Stallman  <rms@gnu.org>
1416         * dired.c (scmp): Function moved from minibuf.c.
1417         Delete multibyte handling--used only on encoded strings.
1419         * minibuf.c (scmp): Function moved to dired.c.
1421         * fns.c (merge): Add QUIT call.
1423 2001-12-18  Dave Love  <fx@gnu.org>
1425         * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
1426         language/georgian.el.
1428 2001-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
1430         * Makefile.in (lisp, shortlisp): Synchronize with changes to
1431         lisp/Makefile.in:DONTCOMPILE.
1433 2001-12-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1435         * xdisp.c (window_box_height): Do not return negative values.
1436         From Gerd Moellmann <gerd@gnu.org>.
1438         * keyboard.c (head_table): Add missing braces around initializer.
1440         * term.c (keys): Likewise.
1442         * xfns.c (x_frame_parms, visual_classes): Likewise.
1444 2001-12-17  Sam Steingold  <sds@gnu.org>
1446         * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
1447         patch (COMPOSING_P, not COMPOSING).
1449 2001-12-17  Richard M. Stallman  <rms@gnu.org>
1451         * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
1453         * coding.c (code_convert_region): Update coding->cmp_data->char_offset
1454         before calling decode_coding.
1456         * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
1458         * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
1459         instead of only for COMPOSITION_DISABLED.
1461 2001-12-16  Richard M. Stallman  <rms@gnu.org>
1463         * alloc.c (pure_alloc): After overflow, allocate just a small block.
1465         * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
1467         * buffer.h (struct buffer): New field `display_error_modiff'.
1468         * buffer.c (reset_buffer): Initialize `display_error_modiff'.
1470         * window.c (Frecenter): Clear display_error_modiff field.
1472         * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
1473         Call redisplay_window, but not if display_error_modiff field says no.
1474         (redisplay_window_error): New function.
1475         (displayed_buffer): New variable.
1476         (redisplay_internal, redisplay_windows): Call the new functions
1477         instead of redisplay_window directly.
1479 2001-12-15  Richard M. Stallman  <rms@gnu.org>
1481         * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1483 2001-12-14  Andrew Innes  <andrewi@gnu.org>
1485         * makefile.w32-in (EMACSLOADPATH): Define.
1486         ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
1487         (bootstrap-temacs): Remove dependency on bootstrap-clean.
1489 2001-12-13  Eli Zaretskii  <eliz@is.elta.co.il>
1491         * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
1492         parameter have a numeric value all the time.
1494         * w32fns.c (x_report_frame_params): Likewise.
1496 2001-12-12  Richard M. Stallman  <rms@gnu.org>
1498         * fileio.c (Fwrite_region): Doc fix.
1500         * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
1501         (redisplay_internal): Call clear_image_cache only for window terminals.
1503 2001-12-12  Gerd Moellmann  <gerd@gnu.org>
1505         * xdisp.c (move_it_vertically_backward): Change heuristic
1506         for the case that we didn't move far enough initially.
1508         * window.c (Frecenter): Simplify computation in the case of window
1509         system frames and ARG < 0; use window_box_height.
1511 2001-12-11  Richard M. Stallman  <rms@gnu.org>
1513         * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
1514         * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
1516 2001-12-11  Andrew Innes  <andrewi@gnu.org>
1518         * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
1519         arg is negative.
1521 2001-12-11  Richard M. Stallman  <rms@gnu.org>
1523         * m/hp800.h: Split the __hpux conditional into the parts
1524         that are right for GNU/Linux too and the parts that are not.
1525         Use the former if GNU_LINUX.
1526         (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
1528         * s/gnu-linux.h (GNU_LINUX): Defined.
1530 2001-12-11  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1532         * macros.c, msdos.c, w16select.c: Change doc-string comments to
1533         `new style' [w/`doc:' keyword].
1535 2001-12-10  Jason Rumney  <jasonr@gnu.org>
1537         * w32menu.c (w32_free_submenu_strings): Clear menu item struct
1538         before using.
1540 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1542         * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
1543         keyword].
1545 2001-12-09  Eli Zaretskii  <eliz@is.elta.co.il>
1547         * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
1549         * s/hpux10.h (srand48): Don't undefine.
1551 2001-12-09  Jason Rumney  <jasonr@gnu.org>
1553         * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
1554         Add     comment to explain where the struct came from.
1555         (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
1556         (add_menu_item): Process pop-up menus first to avoid memory leak.
1557         (add_menu_item, w32_menu_display_help): Use `help' field as
1558         Lisp_Object.
1559         (w32_free_submenu_strings): Only free owner-drawn strings.
1561 2001-12-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1563         * COPYING: Moved back.
1565         * charset.c (char_to_string_1, translate_char, Fdefine_charset):
1566         Add parentheses around && within ||.
1568         * indent.c (compute_motion): Likewise.
1570         * intervals.c (merge_properties_sticky): Likewise.
1572         * coding.c (setup_coding_system, shrink_encoding_region)
1573         (Fdecode_sjis_char): Likewise.
1575 2001-12-07  Andreas Schwab  <schwab@suse.de>
1577         * xdisp.c (display_mode_element): Don't read past end of string if
1578         it ends with '%'.
1580         * alloc.c (inhibit_garbage_collection): Don't exceed value an int
1581         can hold.
1583         * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
1584         from most_positive_fixnum and most_negative_fixnum, resp., and
1585         type changed to Lisp_Object.
1586         (syms_of_data): DEFVAR_LISP them.
1588 2001-12-07  Richard M. Stallman  <rms@gnu.org>
1590         * callproc.c (init_callproc): Set Vdata_directory based on the source
1591         location whenever Emacs was run uninstalled.
1593 2001-12-06  Paul Eggert  <eggert@twinsun.com>
1595         * config.in (HAVE_WORKING_VFORK): New #undefs.
1596         * process.c (create_process):
1597         Use HAVE_WORKING_VFORK, not HAVE_VFORK.
1598         * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
1599         * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
1600         * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
1601         * m/intel386.h (HAVE_VFORK): Likewise.
1602         * m/mips-siemens.h (HAVE_VFORK): Likewise.
1603         * m/mips.h (HAVE_VFORK): Likewise.
1604         * s/freebsd.h (vfork): Remove #define.
1605         * s/lynxos.h (HAVE_VFORK): Remove #undef.
1606         * s/usg5-4-2.h: Fix comment about vfork.
1608 2001-12-06  Richard M. Stallman  <rms@gnu.org>
1610         * s/hpux10.h (random): Add undef.
1611         (HAVE_RANDOM): Define it just once.
1613 2001-12-06  Stefan Monnier  <monnier@cs.yale.edu>
1615         * eval.c: Undo last change: the standard syntax is not wanted.
1617 2001-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
1619         * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
1620         scroll bars of the frame before deleting the frame itself.  If the
1621         frame has a widget, delete the frame with XtDestroyWidget, and do
1622         not call XDestroyWindow before that.
1624 2001-12-06  Kim F. Storm  <storm@cua.dk>
1626         * xfns.c (x_report_frame_params): Return actual fringe widths.
1628         * w32fns.c (x_report_frame_params): Return actual fringe widths.
1630 2001-12-05  Andrew Innes  <andrewi@gnu.org>
1632         * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
1633         excessively large.
1635         * insdel.c (make_gap_larger): New function.
1636         (make_gap_smaller): New function.
1637         (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
1638         make_gap_smaller if arg is negative.
1640 2001-12-04  Stefan Monnier  <monnier@cs.yale.edu>
1642         * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
1643         Pass a dummy argument when calling interrupt_signal.
1644         (parse_menu_item): Mark disabled items before checking for empty def.
1645         (read_char_minibuf_menu_prompt): Make safety more visible.
1646         (read_key_sequence): Add a `first_unbound' variable.
1647         Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
1648         unbound prefix as soon as we can detect it.
1650         * doc.c (Fsnarf_documentation): Add prototype.
1651         (get_doc_string): Handle negative arguments.
1652         (Fdocumentation): Use AREF and ASIZE.
1653         Move the calls to get_doc_string to a single place.
1654         Don't confuse an interactive-spec for a docstring reference.
1655         (Fdocumentation_property): Take advantage of the fact that
1656         get_doc_string now ignores the sign of the docstring position.
1658         * eval.c: Use standard syntax for usage in docstrings.
1660 2001-12-03  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1662         * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
1664 2001-12-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1666         * xterm.c (x_draw_image_relief): Use predefined macro instead of
1667         constant when the value of `tool_bar_button_relief' is negative.
1669 2001-12-02  Richard M. Stallman  <rms@gnu.org>
1671         * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
1672         (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
1674         * fileio.c (read_non_regular): Delete Fsignal call.
1676 2001-12-01  Stefan Monnier  <monnier@cs.yale.edu>
1678         * lisp.h (run_hook_list_with_args): Undo last change.
1680 2001-12-01  Gerd Moellmann  <gerd@gnu.org>
1682         * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
1684 2001-12-01  Jason Rumney  <jasonr@gnu.org>
1686         * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
1688         * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
1689         [!WM_MOUSELEAVE]: Define.
1691         * w32menu.c (current_popup_menu, get_menu_item_info):
1692         (set_menu_item_info): New vars.
1693         (set_frame_menubar): Doc fix clarifying GC interaction with menus.
1694         (w32_menu_show): Set current_popup_menu.
1695         (add_menu_item): Allocate new strings for owner-drawn menu items
1696         and help strings.
1697         Use owner-draw for disabled menu items again.
1698         (w32_menu_display_help): Ignore owner-drawn items and popup menus.
1699         (w32_free_submenu_strings, w32_free_menu_strings): New functions.
1701         * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
1702         (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
1703         <WM_EXITMENULOOP>: Free menu strings.
1704         <WM_MOUSELEAVE>: Stop tracking mouse.
1705         (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
1707         * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
1708         and mouse face.
1710 2001-12-01  Kim F. Storm  <storm@cua.dk>
1712         The following changes add left-fringe and right-fringe
1713         frame parameters to adjust fringe widths, or remove one or
1714         both fringes.
1716         * frame.h (struct frame): Remove trunc_area_pixel_width and
1717         trunc_area_cols fields.
1718         (Qleft_fringe, Qright_fringe): Declare.
1719         (FRAME_RIGHT_FRINGE_WIDTH): New macro.
1721         * frame.c (Qleft_fringe, Qright_fringe): New vars.
1722         (syms_of_frame): Initialize them.
1724         * window.c (coordinates_in_window): Handle separate left and right
1725         fringe widths.
1727         * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
1728         and fringe_cols fields.
1729         (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
1730         (FRAME_X_FRINGE_COLS): Use fringe_cols field.
1731         (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
1732         (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
1733         (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1734         (x_compute_fringe_widths): Add prototype.
1736         * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1737         fill fringe evenly with small dashes.
1738         (x_draw_fringe_bitmap): Clear background if necessary. Align and
1739         clip the new ZV bitmap to avoid jitter between rows.
1740         (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1741         background.  Don't draw fringe bitmaps if fringe width is zero.
1742         (x_compute_fringe_widths): New function.
1743         (x_new_font, x_set_window_size_1): Use it.
1745         * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
1746         (x_set_frame_parameters): Process `font' parameter before other
1747         parameters as fringe widths depend on it.
1748         (x_set_fringe_width): New function.
1749         (x_figure_window_size): Use x_compute_fringe_widths.
1750         (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1751         parameters.
1753         * widget.c (set_frame_size): Use x_compute_fringe_widths.
1754         (EmacsFrameSetCharSize): Ditto.
1756         * w32term.h: Merged changes from xterm.h.
1757         * w32term.c: Merged changes from xterm.c.
1758         * w32fns.c: Merged changes from xfns.c.
1760 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1762         * COPYING: Removed.
1764 2001-11-29  Dave Love  <fx@gnu.org>
1766         * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
1767         extra extra slot.
1768         (detect_coding_mask): Fix call of detect_coding_iso2022.
1770 2001-11-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1772         * fileio.c (file-name-coding-system)
1773         (default-file-name-coding-system): Doc fix (links to referenced
1774         variables added).
1776 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
1778         * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1779         Add dummy uses of gcproN variables.
1781         * category.c (describe_category, describe_category_1)
1782         (Fdescribe_categories): Remove.  (Moved to lisp/help-fns.el.)
1783         (syms_of_category): Don't defsubr Sdescribe_categories.
1785 2001-11-28  Richard M. Stallman  <rms@gnu.org>
1787         * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1789         * Makefile.in (lispdir): New variable, referring to build dir.
1790         (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1792 2001-11-28  Andrew Innes  <andrewi@gnu.org>
1794         * w32menu.c (w32_menu_display_help): Actually add the new argument
1795         OWNER.
1797 2001-11-28  Jason Rumney  <jasonr@gnu.org>
1799         * w32menu.c (add_menu_item): Do not use owner-draw for disabled
1800         menu items.  From David Ponce <dponce@wanadoo.fr>.
1801         (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
1802         conditionally.
1803         (w32_menu_display_help): New argument OWNER. Rewritten to store a
1804         help event in the owner frame's keyboard buffer.
1806         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
1807         (Fx_show_tip): Don't subtract last width from row width.
1809         * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
1810         (w32_read_socket): Use EQ to compare frames.
1812 2001-11-28  Gerd Moellmann  <gerd@gnu.org>
1814         * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1815         OVERLAPS_P.
1817 2001-11-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1819         * xdisp.c (message_dolog): Remove unused variables `gcpro2',
1820         `gcpro3' and `gcpro4'.
1822         * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
1824 2001-11-28  Stefan Monnier  <monnier@cs.yale.edu>
1826         * ccl.c: Use AREF and ASIZE.
1828 2001-11-27  Stefan Monnier  <monnier@cs.yale.edu>
1830         * lisp.h (run_hook_list_with_args): Remove.
1831         (LIST_END_P): Fix call to wrong_type_argument.
1832         (make_fixnum_or_float): Use EMACS_INT rather than int.
1834 2001-11-26  Stefan Monnier  <monnier@cs.yale.edu>
1836         * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
1837         (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
1839         * eval.c: Use AREF and ASIZE.
1840         (Ffetch_bytecode): Add the file name to the error message.
1842         * fileio.c (Ffind_file_name_handler): Give precedence to handlers
1843         which match the end of the file-name.
1844         (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
1845         is not a valid env var, but leave it as is instead.
1847         * keymap.c (access_keymap): Handle t bindings like nil bindings.
1848         Make nil bindings in char-tables transparent.
1849         (store_in_keymap): Turn a nil binding into a t binding for char-tables.
1851 2001-11-26  Richard M. Stallman  <rms@gnu.org>
1853         * textprop.c (set_text_properties_1): Allow START, END in either order.
1854         Do nothing if range is empty.
1856         * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
1858         * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
1859         (clean): Not here.
1861 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
1863         * textprop.c (set_text_properties_1): Clearly mark that the
1864         interval should not be empty.
1866         * intervals.c (graft_intervals_into_buffer):
1867         Don't call set_text_properties_1 on an empty interval.
1869 2001-11-25  Richard M. Stallman  <rms@gnu.org>
1871         * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
1873         * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
1874         don't lose the data in it.
1876 2001-11-25  Juanma Barranquero  <lektu@terra.es>
1878         * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
1880         * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
1882         * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
1884 2001-11-25  Stefan Monnier  <monnier@cs.yale.edu>
1886         * xfaces.c (merge_face_heights): Coerce back to int explicitly.
1888 2001-11-25  Eli Zaretskii  <eliz@is.elta.co.il>
1890         * window.c (Fset_window_vscroll): Doc fix.  From Kalle Olavi
1891         Niemitalo <kon@iki.fi>.
1893 2001-11-25  Jason Rumney  <jasonr@gnu.org>
1895         * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
1897         * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
1898         (Fx_show_tip): Block input during frame creation.
1899         (Fx_show_tip, Fx_hide_tip): Enable.
1901 2001-11-24  Richard M. Stallman  <rms@gnu.org>
1903         * lread.c (Fload): Detect recursive load error for more than 3
1904         nestings of the same file.
1905         (Vrecursive_load_depth_limit): Variable deleted.
1906         (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
1908 2001-11-24  Jason Rumney  <jasonr@gnu.org>
1910         * xfns.c (compute_tip_xy): Initialize root_x and root_y from
1911         mouse position if either left or top is not specified.
1913         * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
1914         <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
1915         (my_create_tip_window, Fx_show_tip): Adjust size for external border.
1916         (my_create_tip_window): Assign tip_window.
1917         (x_create_tip_frame): Use same defaults as X.
1918         (compute_tip_xy): Remove unused variable.  Use full screen width.
1919         (Fx_show_tip): Do not double height. Call ShowWindow directly.
1921         * w32term.c (x_after_update_window_line): Doc fix.
1922         (w32_read_socket): Doc fix.  Avoid SET_FRAME_GARBAGED for tip
1923         frames.
1924         <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
1926         * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
1927         for all Windowed systems.
1929 2001-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
1931         * msdos.c (IT_clear_screen): If the frame's faces are not yet
1932         realized, use the initial screen colors to clear the screen.
1934 2001-11-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
1936         * textprop.c (Fset_text_properties): Remove unused variables
1937         `unchanged', `prev_changed', `s' and `len'.
1939         * search.c (Freplace_match): Remove unused variable `inslen'.
1941         * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
1943 2001-11-22  Jason Rumney  <jasonr@gnu.org>
1945         * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
1946         (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
1947         (my_create_tip_window): New function.
1948         (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
1949         (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
1951 2001-11-20  Jason Rumney  <jasonr@gnu.org>
1953         * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
1954         (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
1956         * w32fns.c (Vw32_system_coding_system): Remove.
1957         (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
1959 2001-11-19  Stefan Monnier  <monnier@cs.yale.edu>
1961         * fileio.c (Fwrite_region): Move choose_write_coding_system to
1962         after build_annotations.
1964         * syntax.c (describe_syntax): Add dummy arg.
1965         (describe_syntax_1): Update call to describe_vector.
1967         * category.c (describe_category): Add dummy arg.
1968         (describe_category_1): Update call to describe_vector.
1970         * keymap.c (Fdescribe_vector): Add `describer' parameter.
1971         (describe_command, describe_translation): Add dummy second param.
1972         (describe_map): Call elt_describer with two arguments.
1973         (describe_vector_princ): Add `fun' parameter.
1974         Call it instead of the hardcoded `princ'.
1975         (describe_vector): Add arg `args'.
1976         Pass it as a new second argument to elt_describer.
1978         * keymap.h (describe_vector): Update prototype.
1980         * frame.c: Don't include keymap.h any more.
1981         (keys_of_frame): Remove.
1983         * lisp.h (keys_of_frame): Remove declaration.
1985         * emacs.c (main): Don't call `keys_of_frame' any more.
1987 2001-11-14  Andreas Schwab  <schwab@suse.de>
1989         * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
1990         if defined, 0 otherwise.
1991         (MAP_FAILED): Define if not defined and use it to test mmap failure.
1992         (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
1994 2001-11-19  Richard M. Stallman  <rms@gnu.org>
1996         * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
1998 2001-11-18  Jason Rumney  <jasonr@gnu.org>
2000         * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
2001         (x_draw_bar_cursor): If the background color of the glyph under
2002         the cursor equals the frame's cursor color, use the glyph's
2003         foreground color for drawing the bar cursor.
2004         (x_after_update_window_line): Clear internal border in different
2005         circumstances.
2006         (w32_set_vertical_scroll_bar): Check for width and height > 0.
2007         (w32_draw_relief_rect): Correct relief by 1 pixel.
2008         (x_set_glyph_string_background_width):
2009         Set extends_to_end_of_line_p if the row's fill_line_p is set and
2010         drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
2011         (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
2012         if cursor_in_non_selected_windows is false.
2013         (show_mouse_face): Clean up.  Recognize overwritten cursor differently.
2014         (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
2015         Notice if cursor gets overwritten.
2016         (notice_overwritten_cursor): Renamed from
2017         note_overwritten_text_cursor.  Rewritten to take glyph widths
2018         into account, and to take X positions as parameters.
2019         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2020         around call to x_draw_glyphs.
2021         (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2022         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2023         color to use for image glyph reliefs.
2024         (x_draw_image_relief): Accept zero tool_bar_button_relief.
2025         (glyph_rect): Remove unused variable `area'.
2027         * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
2028         some items.
2029         (x_set_internal_border_width): Set frame garbaged when window
2030         doesn't exist yet.
2031         (Fx_create_frame): Accept zero tool_bar_button_relief.
2032         (x_clear_image_1, four_corners_best, image_background)
2033         (image_background_transparent): New functions.
2034         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2035         (gs_format): Add `:background' entry.
2036         (lookup_image): Set IMG's background color if specified.
2037         (pbm_load, xbm_load_image, png_load): Set IMG's background field
2038         when appropriate.
2039         (x_clear_image_1): Reset `background_valid' and
2040         `background_transparent_valid' fields.
2041         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2042         calculating it here.  Set IMG's background_transparent field.
2043         (enum xpm_keyword_index): Add XPM_BACKGROUND.
2044         (enum png_keyword_index): Add PNG_BACKGROUND.
2045         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2046         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2047         (enum gif_keyword_index): Add GIF_BACKGROUND.
2048         (enum gs_keyword_index): Add GS_BACKGROUND.
2049         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2050         Pre-calculate image background color where necessary.
2051         (x_create_x_image_and_pixmap, xbm_load, gs_load):
2052         Use display info's n_cbits entry for screen depth.
2053         (Fx_show_tip): Remove unused variables `buffer', `top',
2054         `left', `max_width' and `max_height'.
2056         * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
2058 2001-11-18  Gerd Moellmann  <gerd@gnu.org>
2060         * puresize.h (BASE_PURESIZE): Increase to 750000.
2062 2001-11-18  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2064         * frame.c (Fframe_live_p): Doc fix.
2066 2001-11-18  Richard M. Stallman  <rms@gnu.org>
2068         * xdisp.c (message_dolog_marker1, message_dolog_marker2)
2069         (message_dolog_marker3): New static variables hold three markers.
2070         (syms_of_xdisp): Initialize and staticpro them.
2071         (message_dolog): Use message_dolog_marker1..3 instead of
2072         allocating markers each time.  Unchain them when done.
2074 2001-11-17  Richard M. Stallman  <rms@gnu.org>
2076         * doc.c (Fsnarf_documentation): Doc fix.
2078 2001-11-17  Andreas Schwab  <schwab@suse.de>
2080         * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
2082 2001-11-17  Richard M. Stallman  <rms@gnu.org>
2084         * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
2086 2001-11-17  Jason Rumney  <jasonr@gnu.org>
2088         * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
2090 2001-11-17  Gerd Moellmann  <gerd@gnu.org>
2092         * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
2093         with invalid position.
2095 2001-11-16  Richard M. Stallman  <rms@gnu.org>
2097         * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
2099         * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
2100         * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
2101         * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
2103         * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
2105 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
2107         * fileio.c (build_annotations): Split off the tail.
2108         (build_annotations_2): New fun.  Extracted from build_annotations.
2109         (Fwrite_region): Split the call to build_annotations into two
2110         calls to build_annotations and build_annotations_2.
2112 2001-11-16  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2114         * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
2115         clear_waiting_for_input with argument.
2117         * xterm.h (x_update_cursor): Remove duplicated prototype.
2119         * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
2121         * xterm.c (waiting_for_input): Remove unnecessary declaration.
2123         * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
2125 2001-11-16  Stefan Monnier  <monnier@cs.yale.edu>
2127         * fileio.c (choose_write_coding_system): New fun, extracted
2128         from Fwrite_region.
2129         (Fwrite_region): Use it.
2131         * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
2132         (funcall_lambda, run_hook_with_args): Make static and add prototype.
2133         (ml_apply, find_handler_clause): Add prototype.
2135 2001-11-16  Eli Zaretskii  <eliz@gnu.org>
2137         * config.in: Add #undef HAVE_COFF_H.
2139         * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
2140         Required for ISC 4.1.
2142 2001-11-16  Eli Zaretskii  <eliz@is.elta.co.il>
2144         * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1.  Reported by
2145         Andrew Wiseman <a.wiseman@btclick.com>.
2147 2001-11-16  Kim F. Storm  <storm@cua.dk>
2149         The following changes are made to clean up the various internal
2150         references to the fringes to actually use the term `fringe' for
2151         them.  Previously, they were called `flags areas', `bitmap areas',
2152         `left/right side of windows', or implicitly as `flags' or
2153         `bitmaps':
2155         * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
2156         Comments fixed. Use renamed symbols.
2158         * dispnew.c: Comment fix. Use renamed symbols.
2160         * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
2161         (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
2162         (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
2164         * msdos.c: Comment fix.
2166         * w32fns.c: Use renamed symbols.
2168         * w32term.c: Comment fixes. Use renamed symbols.
2169         (fringe_bitmap_type): Renamed from bitmap_type.
2170         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2171         (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
2172         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2174         * w32term.h: Comment fixes. Use renamed symbols.
2175         (fringes_extra): Renamed from flags_areas_extra.
2176         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2177         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2178         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2179         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
2180         (FRAME_X_LEFT_FRINGE_WIDTH):
2181         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2182         (FRAME_X_RIGHT_FRINGE_WIDTH):
2183         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
2185         * widget.c: Use renamed symbols.
2187         * window.c: Comment fixes. Use renamed symbols.
2188         (coordinates-in-window-p): Doc fix.
2190         * xdisp.c: Comment fixes. Use renamed symbols.
2192         * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
2194         * xfns.c: Use renamed symbols.
2196         * xterm.c: Comment fixes. Use renamed symbols.
2197         (fringe_bitmap_type): Renamed from bitmap_type.
2198         (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2199         (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
2200         (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2202         * xterm.h: Comment fixes. Use renamed symbols.
2203         (fringes_extra): Renamed from flags_areas_extra.
2204         (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2205         (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2206         (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2207         (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
2208         (FRAME_X_LEFT_FRINGE_WIDTH):
2209         Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2210         (FRAME_X_RIGHT_FRINGE_WIDTH):
2211         Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
2213 2001-11-15  Jason Rumney  <jasonr@gnu.org>
2215         * w32menu.c (add-menu-item): Make help_echo and radio buttons
2216         work for most menu items.  From David Ponce
2217         <david.ponce@wanadoo.fr>.
2219 2001-11-15  Gerd Moellmann  <gerd@gnu.org>
2221         * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
2222         Some x_set_* function expect to be called even if old and new
2223         value are equal.
2225         * xdisp.c (build_desired_tool_bar_string): Accept zero
2226         tool_bar_button_relief.
2228         * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
2230         * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
2232         * xterm.c (x_draw_bar_cursor): If the background color of the
2233         glyph under the cursor equals the frame's cursor color, use
2234         the glyph's foreground color for drawing the bar cursor.
2236         * dispnew.c (direct_output_forward_char): Fix character/byte
2237         position comparison.
2239 2001-11-15  Miles Bader  <miles@gnu.org>
2241         * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
2242         (Fdelete_field, Ffield_string, Ffield_string_no_properties):
2243         Update arguments to find_field.
2244         (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
2245         (Fconstrain_to_field): Use LIMIT arg to shorten search time.
2246         * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
2247         * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
2249 2001-11-14  Richard M. Stallman  <rms@gnu.org>
2251         * editfns.c (Fpropertize): Allow call with 1 arg.
2253         * dispextern.h (image_background, image_background_transparent):
2254         Conditionalize on HAVE_X_WINDOWS.
2256 2001-11-13  Richard M. Stallman  <rms@gnu.org>
2258         * print.c (Fprin1_to_string): Doc fix.
2260         * sunfns.c (Fsun_change_cursor_icon): Doc fix.
2262         * floatfns.c (Fceiling, Ffloor): Doc fixes.
2264         * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
2266         * fileio.c (Ffile_accessible_directory_p): Doc fix.
2268         * eval.c (syms_of_eval): Doc fix.
2270         * coding.c (syms_of_coding): Doc fix.
2272         * doc.c (Fsnarf_documentation): Doc fix.
2274         * dispnew.c (syms_of_display): Doc fix.
2276         * category.c (Fget_unused_category): Doc fix.
2278         * buffer.c (syms_of_buffer): Doc fixes.
2280 2001-11-14  Eli Zaretskii  <eliz@is.elta.co.il>
2282         * print.c (prin1, print): Doc fix.
2284 2001-11-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2286         * fontset.h: Remove declarations of variables
2287         `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
2289         * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
2290         `Vclip_large_size_font'.
2292 2001-11-13  Jason Rumney  <jasonr@gnu.org>
2294         * w32fns.c: Doc fix.
2296 2001-11-13  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2298         * xfaces.c (Fface_attributes_as_vector): Doc fix.
2300         * w32fns.c (Fx_synchronize): Reindent.
2302         * fns.c: Doc fix.
2304         * emacs.c: Doc fix.
2306         * coding.c: Doc fix.
2308         * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
2309         * fontset.c, insdel.c, keymap.c: Change doc-string comments to
2310         `new style' [w/`doc:' keyword].
2312         * xmenu.c (x-popup-menu): Reindent.
2313         (x-popup-dialog): Likewise.
2315         * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
2317         * xdisp.c (Fdump_tool_bar_row): Reindent.
2319         * minibuf.c (Fminibuffer_complete_word): Reindent.
2320         (Fminibuffer_complete_and_exit): Likewise.
2321         (Fminibuffer_completion_help): Likewise.
2322         (Fminibuffer_message): Likewise.
2324         * fns.c (Freverse): Reindent.
2326         * eval.c (Fif): Reindent.
2327         (Fand): Likewise.
2329         * editfns.c (Fuser_real_login_name): Reindent.
2330         (Finsert_buffer_substring): Likewise.
2331         (Fcompare_buffer_substrings): Likewise.
2332         (Fsubst_char_in_region): Likewise.
2334         * dispnew.c (Fsit_for): Reindent.
2335         (Fframe_or_buffer_changed_p): Likewise.
2336         (Finternal_show_cursor_p): Likewise.
2337         (syms_of_display): Likewise.
2339         * alloc.c (Flist): Reindent.
2340         (Fvector): Likewise.
2342 2001-11-12  Richard M. Stallman  <rms@gnu.org>
2344         * xterm.c (XTread_socket): Don't update focus for EnterNotify or
2345         LeaveNotify events.  Only FocusIn and FocusOut do that now.
2346         (x_display_and_set_cursor): Do display hollow cursors in active
2347         minibuffer windows when they are not selected.
2349 2001-11-12  Jason Rumney  <jasonr@gnu.org>
2351         * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
2352         * w32term.c: Change doc-string comments to `new style'.
2353         [w/`doc:' keyword]. Doc fixes.
2355         * w32fns.c: Don't define max.
2356         (Fx_open_connection): Only execute once.
2358 2001-11-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2360         * ccl.c: Change macros to use do-while block instead of if-else.
2361         Use braces to follow GNU Coding Standards.
2363 2001-11-11  Richard M. Stallman  <rms@gnu.org>
2365         * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
2367         * lread.c (read_escape): Use end_of_file_error for reporting eof.
2369         * insdel.c (replace_range): Use adjust_markers_for_replace
2370         instead of adjust_markers_for_delete and adjust_markers_for_insert.
2372         * intervals.h: Declare set_text_properties and set_text_properties_1.
2374         * textprop.c (set_text_properties_1): New subroutine
2375         broken out of set_text_properties.
2376         (set_text_properties): Use set_text_properties_1.
2378         * intervals.c (graft_intervals_into_buffer):
2379         Use set_text_properties_1 to clear out properties.
2381         * search.c (Freplace_match): Use replace_range to insert
2382         and delete.  Don't request property inheritance from
2383         surrounding text.
2385 2001-11-10  Jason Rumney  <jasonr@gnu.org>
2387         * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
2388         vertical fonts. Allow them if face name is explicitly specified.
2389         Do not give up if we find a font that cannot be converted to an xlfd.
2391 2001-11-10  Gerd Moellmann  <gerd@gnu.org>
2393         * unexelf.c (unexec): Use mmap/munmap to allocate buffers
2394         instead of malloc/free.
2396 2001-11-09  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2398         * xfaces.c (merge_face_vectors): Use braces to follow GNU
2399         Coding Standards.
2400         (Finternal_set_lisp_face_attribute): Likewise.
2402         * buffer.c (Fbury_buffer): Likewise.
2404         * indent.c (current_column_1): Remove unused variable `prev_col'.
2406         * coding.c (encode_coding): Use precomputed value of `src'.
2407         (encode_coding): Remove unused variable `src_end'.
2408         (code_convert_region): Remove unused variables `count'.
2410 2001-11-07  Jason Rumney  <jasonr@gnu.org>
2412         * w32term.c (x_display_and_set_cursor): Do not move system caret
2413         if cursor_glyph is NULL.
2415 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2417         * keymap.c (access_keymap): Fix compilation error.
2419 2001-11-07  Miles Bader  <miles@gnu.org>
2421         * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
2423 2001-11-07  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2425         * intervals.c (graft_intervals_into_buffer):
2426         Remove #ifdef'd-out code.
2427         (graft_intervals_into_buffer): Remove unused variable `middle'.
2429         * lread.c (Feval_region): Remove obsolete #ifdef'd-out
2430         code (eval-current-buffer).
2431         Change doc-string comments to `new style' [w/`doc:' keyword].
2433 2001-11-06  Richard M. Stallman  <rms@gnu.org>
2435         * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
2437 2001-11-06  Stefan Monnier  <monnier@cs.yale.edu>
2439         * lread.c (read1): Fix behavior with nested backquoting.
2441         * keyboard.c (make_lispy_event): Check integerness and fix
2442         Lisp_Object/int mixup.
2444 2001-11-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2446         * fns.c (copy_hash_table): Remove unused variable `v'.
2448         * fontset.c (fontset_font_pattern): Remove unused variable
2449         `family_registry'.
2451         * indent.c (current_column_1): Remove unused variable `prev_col'.
2453 2001-11-05  Richard M. Stallman  <rms@gnu.org>
2455         * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
2457         * buffer.c (Fkill_buffer): Don't delete auto save file
2458         if buffer is modified.
2460 2001-11-05  Andrew Innes  <andrewi@gnu.org>
2462         * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
2463         CHECK_NUMBER_CDR.
2465 2001-11-05  Richard M. Stallman  <rms@gnu.org>
2467         * unexelf.c (unexec): Minor changes; clean up comments.
2469 2001-11-05  Sam Steingold  <sds@gnu.org>
2471         * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
2473 2001-11-05  Andreas Schwab  <schwab@suse.de>
2475         * sound.c (sound_perror): Save errno from being clobbered.
2477 2001-11-05  Dale Hagglund  <rdh@yottayotta.com>
2479         * unexelf.c (unexec): Don't use `mmap'.  Instead, read and write
2480         the program image directly.
2482 2001-11-05  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2484         * buffer.h (Fbuffer_local_value): Add prototype.
2486 2001-11-04  Richard M. Stallman  <rms@gnu.org>
2488         * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
2489         and CHECK_BUFFER.
2491         * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
2492         (record_char): Likewise.
2494         * keyboard.c (make_lispy_event): Don't insist a drag event must
2495         move to a different buffer position.  Instead, check for moving at
2496         least double_click_fuzz.
2498         * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
2500         * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
2502         * indent.c (current_column_1, Fmove_to_column): Separate the code
2503         for display-table glyphs from the code buffer text, to fix
2504         bugs in the former.
2506 2001-11-04  Michael Welsh Duggan  <md5i@cs.cmu.edu>
2508         * buffer.c (Fbuffer_local_value): New function.
2509         (syms_of_buffer): Defsubr it.
2511         * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
2512         value of `cursor-in-non-selected-windows'.
2514         * lisp.h (Qcursor_in_non_selected_windows): New declaration.
2515         * xdisp.c (Qcursor_in_non_selected_windows): New variable.
2516         (syms_of_xdisp): Initialize it.
2518 2001-11-04  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2520         * xfns.c (Fx_create_frame): Doc fix.
2522         * coding.c: Change doc-string comments to `new style' [w/`doc:'
2523         keyword].
2525         * eval.c (top_level_value, top_level_set): Remove commented and
2526         #ifdef'd-out code.
2527         (Fdefvar): Fix usage in doc-string.
2529 2001-11-03  Richard M. Stallman  <rms@gnu.org>
2531         * xfns.c: Include unistd.h, if it exists.
2533         * editfns.c: Move the include of ctype.h after unistd.h.
2535         * gmalloc.c: Test BROKEN_PROTOTYPES.
2537 2001-11-03  Ken Raeburn  <raeburn@gnu.org>
2539         * lisp.h (CHECK_STRING_CAR): New macro.
2540         * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
2541         treating XCAR and XCDR as lvalues.
2542         (openp): Use CHECK_STRING_CAR.
2543         (read_list): Use XSETCDR instead of treating XCDR as lvalue.
2545 2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>
2547         * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
2548         (SIGMASKTYPE): Define.
2550         * syssignal.h (sigunblock): Don't define if already defined.
2552 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2554         * eval.c (debugger_may_continue, Vdebug_ignored_errors)
2555         (call_debugger, Fcondition_case, skip_debugger, unbind_to):
2556         Fix typos in comments.
2558         * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
2559         and #ifdef'd-out code.
2560         Fix and reindent comments.
2562         * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
2564         * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
2565         argument `i' in macros.
2567         * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
2568         `i' in macros.
2570         * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2571         (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
2572         (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
2573         (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
2574         (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
2575         (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2576         (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
2577         (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
2578         in macros.
2580         * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
2581         * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
2582         * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
2583         * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
2584         * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
2585         * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
2586         * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
2587         * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
2588         * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
2589         (remove unused second argument).
2591 2001-11-02  Stefan Monnier  <monnier@cs.yale.edu>
2593         * syntax.c (describe_syntax): New wrapper.
2594         (Finternal_describe_syntax_value): Rename from describe_syntax.
2595         Don't insert space at front and \n at the end.
2596         (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
2598         * regex.c (re_wctype): Try to fix some warnings.
2599         (regcomp, regexec): Don't forget the __restrict.
2601 2001-11-02  Richard M. Stallman  <rms@gnu.org>
2603         * textprop.c (Fget_char_property): Doc fix.
2605 2001-11-02  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2607         * process.c (Fstart_process): Add usage to doc-string.
2609         * data.c (Fsetq_default): Ditto.
2611         * callint.c (Finteractive): Ditto.
2613 2001-11-01  Stefan Monnier  <monnier@cs.yale.edu>
2615         * macros.c: Don't include keymap.h any more.
2617 2001-11-01  Richard M. Stallman  <rms@gnu.org>
2619         * data.c (Fmake_local_variable): Doc fix.
2621         * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
2622         (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
2624         * keymap.c (Fdescribe_buffer_bindings): Print character property
2625         bindings along with or instead of the buffer local map.
2626         Make the overriding maps override what they should.
2628 2001-11-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2630         * window.c (grow_mini_window): Fix typo in comment.
2632 2001-11-01  Gerd Moellmann  <gerd@gnu.org>
2634         * xterm.c (x_scroll_bar_create): Check for width and height > 0.
2635         (XTset_vertical_scroll_bar): Likewise.
2637         * xfns.c (x_build_heuristic_mask): Use four_corners_best
2638         instead of IMAGE_BACKGROUND.
2640         * xfns.c (four_corners_best): Reindent.
2642         * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2643         Handle :box so that it is possible to specify sexprs.
2645 2001-11-01  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2647         * xfaces.c (Finternal_merge_in_global_face): Reindent.
2648         (Fface_font): Ditto.
2649         (Finternal_set_alternative_font_registry_alist): Ditto.
2650         (Ftty_suppress_bold_inverse_default_colors): Ditto.
2652         * xfns.c (x-get-resource): Reindent.
2654 2001-10-31  Eli Zaretskii  <eliz@is.elta.co.il>
2656         * s/hpux11.h: New file.
2658 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2660         * emacs.c (USAGE1): Show command line option --no-window-system
2661         instead of --no-windows in usage.
2662         (standard_args): Rename --no-windows to --no-window-system.
2663         (bug_reporting_address): Follow Emacs coding conventions.
2665         * eval.c (Fcommandp): Doc fix.
2666         Change doc-string comments to `new style' [w/`doc:' keyword].
2668         * frame.c (Fframe_live_p): Doc fix.
2670         * buffer.c (selective-display-ellipses): Doc fix.
2672 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
2674         * lread.c (to_multibyte): Fix computation of new read_buffer_size.
2676         * xfaces.c (realize_x_face): If C is not a single-byte character,
2677         set the face's colors_copied_bitwise_p instead of the defaulted_p
2678         members which have a different meaning.
2679         (free_face_colors): Do nothing for a face whose colors have been
2680         copied bitwise.
2682         * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
2684 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2686         * marker.c, mocklisp.c: Change doc-string comments to `new style'
2687         [w/`doc:' keyword].
2689 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
2691         * fns.c (require_unwind): Return Lisp_Object.
2693 2001-10-31  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2695         * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
2696         (last-input-char): Revert doc-string to be the same as the
2697         doc-string of `last-input-event'.
2699         * xdisp.c:  Fix typos in comments.
2701 2001-10-31  Gerd Moellmann  <gerd@gnu.org>
2703         * window.c (grow_mini_window): Handle case that the root
2704         window is already smaller than the nominal mininum height.
2706 2001-10-30  Stefan Monnier  <monnier@cs.yale.edu>
2708         * emacs.c (main): Don't call keys_of_macros any more.
2710         * lisp.h (keys_of_macros): Remove.
2712         * macros.c (keys_of_macros): Remove.
2714         * xfaces.c (Fface_attribute_relative_p): Declare args.
2716 2001-10-30  Jason Rumney  <jasonr@gnu.org>
2718         * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
2719         (enum_font_cb2): Ignore fonts with vertical orientation.
2721 2001-10-30  Richard M. Stallman  <rms@gnu.org>
2723         * keyboard.c (Finput_pending_p): Doc fix.
2725 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
2727         * xterm.c (x_after_update_window_line): Don't run the code
2728         clearing in borders for rows whose visible height is 0.
2730         * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
2731         resized_p flag is set.  If not set, use the much less flickering
2732         method previously used.
2734         * dispnew.c (change_frame_size_1): Set frame's resized_p.
2736         * frame.h (struct frame) <resized_p>: New member.
2738         * lread.c (to_multibyte): Ensure read_buffer is at least twice
2739         as large as the number of bytes to convert.
2741         * lread.c (to_multibyte): New function.
2742         (read1): Use it.
2744 2001-10-30  Eli Zaretskii  <eliz@is.elta.co.il>
2746         * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2748 2001-10-30  Gerd Moellmann  <gerd@gnu.org>
2750         * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
2751         (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2752         if the row's fill_line_p is set and drawing the last glyph with
2753         DRAW_IMAGE_{RAISED,SUNKEN}.
2755         * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2757 2001-10-29  Stefan Monnier  <monnier@cs.yale.edu>
2759         * xmenu.c: Include coding.h and charset.h.
2760         (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2761         (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2762         (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
2763         Explicitly set wv->help.  Use `TRUE' rather than `True'.
2764         (menu_help_callback): Use empty_string.
2766         * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
2767         (Fx_popup_dialog): Explicitly init f.
2768         (w32_menu_display_help): Use empty_string.
2770 2001-10-29  Richard M. Stallman  <rms@gnu.org>
2772         * fns.c (Frequire): Detect recursive try to require the same
2773         feature 3 or more levels deep, and get error.
2774         (require_unwind): New subroutine.
2775         (require_nesting_list): New variable.
2776         (syms_of_fns): Init and staticpro it.
2778         * print.c (print_object): Clarify indication of insertion type.
2780 2001-10-29  Eli Zaretskii  <eliz@is.elta.co.il>
2782         * coding.c (syms_of_coding): Document that locale-coding-system is
2783         used for decoding input on X.
2785         * window.c (Fscroll_left, Fscroll_right): Doc fix.
2787 2001-10-29  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2789         * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2790         (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2792 2001-10-29  Gerd Moellmann  <gerd@gnu.org>
2794         * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
2795         use NO_CURSOR if cursor_in_non_selected_windows is false.
2797         * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
2798         the slant attribute if FRAME is t.
2800         * xfns.c (x_set_internal_border_width): Set frame garbaged
2801         when X window doesn't exist yet.
2803         * xterm.c (x_after_update_window_line): Clear internal border
2804         in different circumstances.
2806         * xterm.c (XTread_socket) <KeyPress>: Don't use
2807         STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
2808         <handa@etl.go.jp>.
2810 2001-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
2812         * m/ibms390.h: New file.  From Adam Thornton
2813         <athornton@sinenomine.net>.
2815 2001-10-28  Gerd Moellmann  <gerd@gnu.org>
2817         * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
2819         * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
2820         a loop counter.
2822 2001-10-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2824         * emacs.c: Use argv[0] instead of emacs when -t was specified.
2826         * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
2827         keyword].
2828         Fix typos in comments.
2830         * emacs.c (bug_reporting_address): New function.
2831         Use it when displaying usage message.
2833         * minibuf.c (read_minibuf): Remove unused external declaration of
2834         variable `Qread_only'.
2836         * keymap.c (access_keymap): Remove unused variable `charset'.
2838 2001-10-28  Miles Bader  <miles@gnu.org>
2840         * xfaces.c (merge_face_heights): Handle TO being relative as well.
2841         Remove #ifdef'd-out code.
2842         (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
2843         (syms_of_xfaces): Initialize them.
2845 2001-10-27  Jason Rumney  <jasonr@gnu.org>
2847         * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
2848         <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
2849         position using the system caret.
2851         * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
2852         (w32_system_caret_height, w32_system_caret_x)
2853         (w32_system_caret_y): New variables for tracking system caret.
2854         (w32_initialize): Initialize them.
2855         (x_display_and_set_cursor): Make system caret follow the active cursor.
2857         * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
2858         New messages types.
2860         * w32term.c (note_mouse_highlight): Clear old help_echo.
2862 2001-10-27  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2864         * xterm.c: Fix typo in a comment.
2866         * emacs.c: Fix typos in comments.
2867         Remove unnecessary spaces.
2868         Change doc-string comments to `new style' [w/`doc:' keyword].
2869         (USAGE2): Fix typos in usage string.
2871         * xterm.c: Fix typo in a comment.
2873         * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
2874         emacs.c.
2876 2001-10-27  Gerd Moellmann  <gerd@gnu.org>
2878         * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
2879         instead of 1/2 line_height in the heuristic for skipping
2880         farther backward when target_y was not reached.
2882         * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
2883         Display errno only if non-zero.
2884         (sound_warning): New function.
2885         (vox_configure): Don't treat failing to set sample rate as error.
2886         (various places): Improve error messages.
2888 2001-10-26  Eli Zaretskii  <eliz@is.elta.co.il>
2890         * fileio.c (Faccess_file): Run the argument filename through
2891         Fexpand_file_name, before using it.
2893         * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
2894         ring-bell-function.  Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
2896 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
2898         * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
2900         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2901         Fix clearing in the case of scroll bars on the right.
2903 2001-10-26  Juanma Barranquero <lektu@terra.es>
2905         * w32gui.h (XImage): Add a dummy typedef.
2907 2001-10-26  Gerd Moellmann  <gerd@gnu.org>
2909         * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
2911 2001-10-25  Eli Zaretskii  <eliz@is.elta.co.il>
2913         * frame.c (Fframe_parameter): Fix last change.
2915         * fileio.c: Revert last change (which removed old commented-out
2916         version of expand-file-name).  Add a comment that explains why
2917         this old version should not be removed.
2919 2001-10-25  Gerd Moellmann  <gerd@gnu.org>
2921         * frame.c (Fframe_parameter): Fix a bug whereby some
2922         ``artificial'' frame parameters, like `minibuffer' were not
2923         obtained by calling Fframe_parameters.
2925         * xterm.c (show_mouse_face): Clean up.  Recognize overwritten
2926         cursor differently.
2928         * xdisp.c (move_it_vertically_backward): Compute line height
2929         differently.  Add heuristic to try to be more compatible to 20.x.
2931 2001-10-25  Stefan Monnier  <monnier@cs.yale.edu>
2933         * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
2935         * editfns.c (text_property_stickiness): Fix Lisp_Object used as
2936         boolean.
2938 2001-10-25  Miles Bader  <miles@gnu.org>
2940         * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
2941         BG is a pointer to a structure, not a structure.
2942         (gif_format, png_format): Add missing commas.
2944 2001-10-24  Richard M. Stallman  <rms@gnu.org>
2946         * xfaces.c (Fface_attributes_as_vector): New function.
2947         (syms_of_xfaces): Defsubr it.
2949 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2951         * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
2952         variable `area'.
2954 2001-10-25  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2956         * search.c (scan_newline): Remove unused variable `selective_display'.
2958 2001-10-25  Miles Bader  <miles@gnu.org>
2960         * dispextern.h (struct image): Add `background',
2961         `background_valid', and `background_transparent' fields.
2962         (image_background, image_background_transparent): New declarations.
2963         (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
2964         * xfns.c (image_background, image_background_transparent)
2965         (four_corners_best): New functions.
2966         (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2967         (gs_format): Add `:background' entry.
2968         (lookup_image): Set IMG's background color if specified.
2969         (pbm_load, xbm_load_image, png_load): Set IMG's background field
2970         when appropriate.
2971         (x_clear_image_1): Reset `background_valid' and
2972         `background_transparent_valid' fields.
2973         (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2974         calculating it here.  Set IMG's background_transparent field.
2975         (enum xpm_keyword_index): Add XPM_BACKGROUND.
2976         (enum png_keyword_index): Add PNG_BACKGROUND.
2977         (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2978         (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2979         (enum gif_keyword_index): Add GIF_BACKGROUND.
2980         (enum gs_keyword_index): Add GS_BACKGROUND.
2981         (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2982         Pre-calculate image background color where necessary.
2983         * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2984         `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2985         color to use for image glyph reliefs.
2987 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
2989         * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
2990         in full-width rows.
2992         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2993         Fix clearing of area not covered by scroll bar.
2995 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
2997         * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
2998         and `real_start'.
2999         (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
3000         (glyph_rect): Remove unused variable `area'.
3002 2001-10-24  Gerd Moellmann  <gerd@gnu.org>
3004         * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
3006         * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
3007         (row_containing_pos): Take additional argument DY.
3008         Treat rows ending in middle of char differently.
3009         (display_line): Handle tabs on window systems differently.
3011         * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
3012         with additional argument.
3014         * dispextern.h (row_containing_pos): Adjust prototype.
3016         * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
3017         (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
3018         (try_window_id, try_window_reusing_current_matrix)
3019         (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
3020         (syms_of_xdisp) [GLYPH_DEBUG]:  DEFVAR_BOOL the variables.
3022 2001-10-24  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3024         * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
3025         gnuemacs).
3026         (HAVE_BOXES): Fix typo in comment.
3027         (push_menu_pane): Fix typo in comment.
3029         * xdisp.c: (display_prop_string_p): Remove unused local declaration
3030         of `Qwhen'.
3031         (single_display_prop_string_p): Remove unused local declarations
3032         of `Qwhen' and `Qmargin'.
3033         (string_buffer_position): Remove unused variable `around'.
3034         (store_frame_title): Remove unused variable `width'.
3036         * window.c: Don't define max.
3037         (coordinates_in_window): Remove unused variable `uy'.
3039         * widget.c: Don't define max.
3041         * process.c: Don't define max.
3042         (create_process): Remove unused variable `buffer'.
3044 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
3046         * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
3048 2001-10-23  Eli Zaretskii  <eliz@is.elta.co.il>
3050         * xfaces.c (Finternal_set_lisp_face_attribute)
3051         [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
3052         frame is on a windowed display.
3054 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
3056         * dispnew.c (sync_window_with_frame_matrix_rows):
3057         Fix handling of windows which aren't full-width, fix handling
3058         of marginal areas.
3060         * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
3062 2001-10-23  Andreas Schwab  <schwab@suse.de>
3064         * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
3065         LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
3067 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
3069         * xterm.c (x_draw_glyphs): Remove parameters READ_START and
3070         REAL_END.  Notice if cursor gets overwritten.
3071         (notice_overwritten_cursor): Take X positions as parameters.
3072         (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3073         around call to x_draw_glyphs.
3075 2001-10-23  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3077         * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
3078         instead of C) and usage.
3080         * editfns.c (char-to-string): Fix argument names (use CHAR instead
3081         of C) and usage.
3083         * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
3084         `left', `max_width' and `max_height'.
3086 2001-10-23  Gerd Moellmann  <gerd@gnu.org>
3088         * xdisp.c (display_line): For a tab continued to the next line,
3089         set row's ends_in_middle_of_char_p.
3091 2001-10-22  Gerd Moellmann  <gerd@gnu.org>
3093         * xdisp.c (display_line): Fix computation of continuation lines
3094         width for TABs.
3096 2001-10-22  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3098         * xdisp.c (build_desired_tool_bar_string): Remove unused variable
3099         `Qlaplace'.
3101         * fileio.c: Remove unused code.
3103 2001-10-22  Miles Bader  <miles@gnu.org>
3105         * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3106         (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
3107         Remove `DOC_STRINGS_IN_COMMENTS' cases.
3109 2001-10-21  Jason Rumney  <jasonr@gnu.org>
3111         * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
3113 2001-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
3115         * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
3116         (Finsert_string): Avoid the multi-line string literals warning.
3118 2001-10-22  Miles Bader  <miles@gnu.org>
3120         * doc.c (Vhelp_manyarg_func_alist): Variable removed.
3121         (Fdocumentation): Don't use it.
3122         (syms_of_doc): Don't initialize it.
3124         * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
3125         * print.c (Fwith_output_to_temp_buffer): Likewise.
3126         * window.c (Fsave_window_excursion): Likewise.
3127         * editfns.c (Fsave_excursion, Fsave_current_buffer)
3128         (Fsave_restriction): Likewise.
3129         * eval.c (Frun_hooks, Frun_hook_with_args)
3130         (Frun_hook_with_args_until_failure)
3131         (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
3132         (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
3133         (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
3134         (Funwind_protect, Fcondition_case): Likewise.
3135         * coding.c (Ffind_operation_coding_system): Likewise.
3136         * keyboard.c (Ftrack_mouse): Likewise.
3138 2001-10-21  Miles Bader  <miles@gnu.org>
3140         * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
3141         (Fmake_hash_table): Add usage: string to doc string.
3142         * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
3143         (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
3144         (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
3145         * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
3146         (Fml_prefix_argument_loop): Likewise.
3148 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3150         * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
3152         * sysdep.c (init_sys_modes): Change doc-string comments to `new
3153         style' [w/`doc:' keyword].
3155         * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
3156         * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
3157         comments to `new style' [w/`doc:' keyword].
3159 2001-10-21  Jason Rumney  <jasonr@gnu.org>
3161         * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
3163         * w32term.c (remember_mouse_glyph): New function.
3164         (w32_mouse_position): Use it.
3165         (note_mouse_movement): If the mouse moved off the glyph, remember
3166         its new position.
3168         * w32term.h (struct w32_output): Correct spelling of x_compatible.
3169         (w32_display_info): Add mouse_face_overlay.
3171         * w32term.c (notice_overwritten_cursor): Renamed from
3172         note_overwritten_text_cursor.  Rewritten to take glyph widths into
3173         account.
3174         (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3175         (fast_find_string_pos): New function.
3176         (fast_find_position): Return the correct vpos.  Add parameter
3177         STOP.  In the final row, stop before glyphs having STOP as object.
3178         Don't consider glyphs that are not from a buffer.
3179         (fast_find_position) [0]: Add a presumably more correct version
3180         for after 21.1.
3181         (expose_window_tree, expose_frame): Don't compute intersections here.
3182         (expose_window): Do it here instead.
3183         (expose_window_tree, expose_window, expose_line): Return 1 when
3184         overwriting mouse-face.
3185         (expose_window): If W is the window currently being updated, mark
3186         the frame garbaged.
3187         (expose_frame): If mouse-face was overwritten, redo it.
3188         (x_use_underline_position_properties): New variable.
3189         (syms_of_xterm): DEFVAR_BOOL it.
3190         (x_draw_glyph_string): Add comment to use it in future.
3191         (x_draw_glyph_string): Restore clipping after drawing box.
3192         Fix a computation of the underline position.
3193         (w32_get_glyph_string_clip_rect): Minor cleanup.
3194         (x_fill_stretch_glyph_string): Remove an assertion.
3195         (x_produce_glyphs): Don't convert multibyte characters
3196         to unibyte characters in unibyte buffers.
3197         (cursor_in_mouse_face_p): New function.
3198         (x_draw_stretch_glyph_string): Use it to choose a different GC
3199         when drawing a cursor within highlighted text.  Don't draw
3200         background again if it has already been drawn.
3201         (x_draw_glyph_string_box): Don't draw a full-width
3202         box just because the glyph row's full_width_p flag is set.
3203         (x_draw_glyphs): Fix computation of rightmost x for
3204         full-width rows.
3205         (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3206         (w32_draw_relief_rect): Extend left shadow to the bottom and left;
3207         change bottom shadow accordingly. Some cleanup.
3208         (x_update_window_end): Handle overwritten mouse face
3209         also for tool bar windows.
3210         (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3211         DRAW is DRAW_IMAGE_RAISED.
3212         (clear_mouse_face): Return 1 if text with mouse face was
3213         actually redrawn.  Make the function static.  Reset
3214         dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
3215         optimize away highlighting if we pass over that same overlay again.
3216         (note_mouse_highlight): Call mouse_face_overlay_overlaps
3217         to detect a case where we have to highlight a different region
3218         despite not having left the currently highlighted region.
3219         Set mouse_face_overlay in the x_display_info.  Avoid changing the
3220         mouse pointer shape when show_mouse_face has already done it, or
3221         there is no need.  Handle mouse-face and help-echo in strings.
3222         (glyph_rect): New function.
3223         (w32_mouse_position): Use it to raise the threshold for mouse
3224         movement event generation.
3225         (w32_initialize_display_info): Initialize the x_display_info's
3226         mouse_face_overlay.
3227         (w32_set_vertical_scroll_bar): Don't clear a zero height
3228         or width area.
3229         (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3230         a widget to zero height.
3232         * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
3233         Protect unibyte strings created by replacing their multibyte
3234         equivalents in menu_items.
3235         (w32_menu_show): Don't overwrite an item's name with its key
3236         description in case the description is a multibyte string.
3237         (single_submenu): Some cleanup.
3239         * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
3240         (postprocess_image): New function.
3241         (lookup_image): Call it for all image types except PostScript.
3242         (x_kill_gs_process): Call postprocess_image.
3243         (tiff_error_handler, tiff_warning_handler): New functions.
3244         (tiff_load): Install them as handlers.
3245         (x_kill_gs_process): Recognize if someone has cleared the image
3246         cache under us.
3247         (valid_image_p): Protect better against invalid image
3248         specifications.  Previous code could signal an error.
3249         (Fx_hide_tip, Fshow_tip): Doc fix.
3250         (Fv_max_tooltip_size): New variable.
3251         (syns_of_xfns): DEFVAR_LISP it.
3252         (Fx_show_tip): Add parameter TEXT.  Set the tip frame's root
3253         window buffer to *tip* right after creating the frame. Set frame's
3254         window_width.  Use a maximum tooltip size specified by
3255         Vx_max_tooltip_size, if that has valid contents.
3256         (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3257         Make sure the tooltip is completely visible.
3258         (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3259         (Fx_create_frame): Adjust the frame's height for presence
3260         of the tool bar before calling x_figure_window_size.
3261         (x_set_tool_bar_lines): Clear the tool bar window's current matrix
3262         when the window gets smaller.
3263         (x_set_foreground_color): Set frame's cursor_pixel.
3264         (x_set_foreground_color, x_set_background_color): Cleaned up.
3265         (x_set_font): Handle case of x_new_fontset returning the same name
3266         as before, although there was a change in fontsets.
3268 2001-10-21  Miles Bader  <miles@gnu.org>
3270         * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
3271         (Flogxor): Add usage: string to doc string.
3272         * charset.c (Fstring): Likewise.
3273         * callproc.c (Fcall_process_region, Fcall_process): Likewise.
3274         * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
3276 2001-10-21  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3278         * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
3280         * alloc.c: Reindent DEFUNs with doc: keywords.
3282         * abbrev.c (Finsert_abbrev_table_description): Reindent.
3284         * frame.c: Change doc-string comments to `new style' [w/`doc:'
3285         keyword].
3287 2001-10-20  Gerd Moellmann  <gerd@gnu.org>
3289         * (Version 21.1 released.)
3291 2001-10-20  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3293         * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
3295         * xdisp.c (invisible_text_between_p): Put prototype inside #if
3296         0 because unused.
3298         * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
3299         * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
3300         Change doc-string comments to `new style' [w/`doc:' keyword].
3302 2001-10-20  Miles Bader  <miles@gnu.org>
3304         The following changes remove the glyph_row `inverse_p' field,
3305         which is never set anymore, due to other changes:
3307         * dispextern.h (struct glyph_row): Remove `inverse_p' field.
3308         (reassert_line_highlight, change_line_highlight): Declarations removed.
3309         * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
3310         (line_hash_code, row_equal_p, fake_current_matrices)
3311         (build_frame_matrix_from_leaf_window, update_frame_line)
3312         (update_frame_line, update_frame_line, update_frame_line):
3313         Don't use `inverse_p' field.
3314         * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
3315         change_line_highlight_hook.
3316         (XTreassert_line_highlight, x_change_line_highlight):
3317         Functions removed.
3318         (x_fix_overlapping_area, x_write_glyphs, expose_area)
3319         (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
3320         * xdisp.c (dump_glyph_row, display_mode_line): Don't use
3321         `inverse_p' field.
3322         * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
3323         (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
3324         (w32_reassert_line_highlight, x_change_line_highlight):
3325         Functions removed.
3326         * w32console.c (reassert_line_highlight, change_line_highlight):
3327         Functions removed.
3328         (initialize_w32_display): Don't set reassert_line_highlight_hook
3329         or change_line_highlight_hook.
3330         (hl_mode): Function removed.
3331         (reset_terminal_modes, set_terminal_modes, update_begin)
3332         (update_end, w32_face_attributes, initialize_w32_display):
3333         (clear_frame, ins_del_lines): Don't call it.
3334         * termhooks.h (reassert_line_highlight_hook)
3335         (change_line_highlight_hook): Declarations removed.
3336         * term.c (reassert_line_highlight_hook)
3337         (change_line_highlight_hook): Variables removed.
3338         (reassert_line_highlight, change_line_highlight): Functions removed.
3339         * msdos.c (IT_reassert_line_highlight)
3340         (IT_change_line_highlight): Functions removed.
3341         (internal_terminal_init): Don't set reassert_line_highlight_hook
3342         or change_line_highlight_hook.
3343         (highlight): Variable removed.
3344         (IT_set_face, IT_update_begin, IT_update_end)
3345         (IT_set_terminal_modes): Don't set or use it.
3347         The following changes remove inverse-video support for terminals
3348         that use a `magic cookie' standout mode.  Due to changes in the
3349         way mode-lines are displayed, such support no longer works
3350         anyway, and it's probable that almost no one uses such terminals
3351         anymore:
3353         * term.c (standout_requested): Variable removed.
3354         (update_end, highlight_if_desired): Don't use it.
3355         (chars_wasted, copybuf): Variables removed.
3356         (write_standout_marker): Function removed.
3357         (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
3358         (clear_end_of_line_raw, write_glyphs, ins_del_lines):
3359         Don't use `chars_wasted' or `copybuf'.
3360         (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
3361         Set `costs_set' to true.
3362         (cursor_to, clear_end_of_line): Test `costs_set' instead of
3363         `chars_wasted'.
3364         (clear_end_of_line): Function removed.
3365         (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
3366         (clear_to_end): Call `clear_end_of_line' instead of
3367         `clear_end_of_line_raw'.
3368         (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
3369         (term_init): Don't set them.
3370         Turn off any standout/underline modes that require magic cookies.
3371         (ins_del_lines, highlight_if_desired, background_highlight)
3372         (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
3373         Remove special processing for magic-cookie standout modes.
3374         (turn_off_face, turn_on_face): Remove special processing for
3375         underline magic-cookie glitch.
3377 2001-10-19  Richard M. Stallman  <rms@gnu.org>
3379         * eval.c (syms_of_eval): Doc fixes.
3381 2001-10-19  Gerd Moellmann  <gerd@gnu.org>
3383         * xdisp.c (redisplay_internal): Don't clear echo area if the
3384         mini-window is selected.
3386 2001-10-19  Miles Bader  <miles@gnu.org>
3388         * editfns.c (text_property_stickiness): Non-rear-non-stickiness
3389         doesn't take precedence if the affected property's value is nil.
3391         * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
3393         * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
3394         with fields and suggest using `forward-line' to avoid them.
3395         * editfns.c (Fline_beginning_position, Fline_end_position):
3396         Clarify documentation.
3398 2001-10-18  Stefan Monnier  <monnier@cs.yale.edu>
3400         * keymap.c (current_minor_maps): `override' only shadows its
3401         correspondent in minor-mode-map-alist, not the whole tail.
3403 2001-10-18  Andrew Innes  <andrewi@gnu.org>
3405         * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
3406         optimization.  The fontp->encoding array was not being initialized
3407         correctly when compiled with optimizations by MSVC.
3409 2001-10-18  Gerd Moellmann  <gerd@gnu.org>
3411         * xdisp.c (display_line): Indicate empty lines in active mini-window.
3413 2001-10-17  Andrew Innes  <andrewi@gnu.org>
3415         * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
3417         * w32fns.c (w32_load_system_font): Cache codepage for font, in
3418         font_info.charset field.
3420         * w32term.c (w32_encode_char): Get cached codepage from font_info,
3421         rather than working it out by calling w32_codepage_for_font for
3422         every glyph.
3424 2001-10-17  Andrew Innes  <andrewi@gnu.org>
3426         * w32term.c (w32_read_socket): Determine clipping rectangle for
3427         the entire frame, including areas covered by scrollbars and the
3428         menubar.  This avoids internal arguments about whether a frame is
3429         fully obscured or not.
3431 2001-10-17  Gerd Moellmann  <gerd@gnu.org>
3433         * xdisp.c (try_window_id): Undo last change.  Give up if
3434         window ends in strings.
3436         * xdisp.c (try_window_id): Don't display lines after the window
3437         end if the rest of the window after the window end was already blank.
3439         * xdisp.c (try_window_id): Remove code that was only there
3440         for the release of 21.1.
3442         * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
3444 2001-10-17  Miles Bader  <miles@gnu.org>
3446         * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
3447         * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
3448         * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
3449         Change doc-string comments to `new style' [w/`doc:' keyword].
3450         (DOC_STRINGS_IN_COMMENTS): Macro removed.
3451         * minibuf.c: Remove old commented-out-DEFUN that was used to fake
3452         out make-docfile.
3454 2001-10-16  Miles Bader  <miles@gnu.org>
3456         * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
3458 2001-10-16  Gerd Moellmann  <gerd@gnu.org>
3460         * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
3461         *scratch*.
3463 2001-10-16  Ken Raeburn  <raeburn@gnu.org>
3465         Avoid the assumption that car and cdr slots of cons cells are
3466         addressable lvalues; this allows for easier experimentation with
3467         other lisp implementations that may not permit such accesses for
3468         various reasons.  Not quite complete -- buffer.c still needs some
3469         work, and w32/mac files need rechecking -- so compile-time
3470         enforcement is left disabled for now.
3472         * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
3473         gcc with a union-based Lisp object rep.  Redefine as no-op for now.
3474         (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
3475         (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
3476         (XSETCAR, XSETCDR): New macros.
3477         (XSETCARFASTINT, XSETCDRFASTINT): New macros.
3478         (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
3479         * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
3480         * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
3481         XSETCDR.
3482         (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
3483         * buffer.c (record_buffer, Fbury_buffer)
3484         (swap_out_buffer_local_variables, recenter_overlay_lists)
3485         (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
3486         fields of a cons cell respectively.
3487         * callint.c (quotify_args, Fcall_interactively): Likewise.
3488         * ccl.c (Fregister_code_conversion_map): Likewise.
3489         * coding.c (detect_coding_system): Likewise.
3490         * composite.c (get_composition_id, make_composition_value_copy):
3491         Likewise.
3492         * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
3493         (swap_in_symval_forwarding, set_internal, Fset_default)
3494         (Fmake_variable_buffer_local, Fmake_local_variable)
3495         (Fmake_variable_frame_local): Likewise.
3496         * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
3497         * keymap.c (Fset_keymap_parent, store_in_keymap)
3498         (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
3499         * minibuf.c (get_minibuffer): Likewise.
3500         * search.c (Fmatch_data): Likewise.
3501         * textprop.c (extend_property_ranges): Likewise.
3502         * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
3503         * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
3504         Likewise.
3505         * w32term.c (x_delete_display): Likewise.
3506         * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
3507         Likewise.
3508         * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
3509         * doc.c (store_function_docstring): Use XSETCARFASTINT.
3510         * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
3511         (Fread_file_name): Use XSETCAR.
3512         * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
3513         CHECK_NUMBER_CDR.
3514         (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
3515         * frame.c (Fmake_terminal_frame): Use XSETCDR.
3516         * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
3517         CHECK_NUMBER_CDR.
3518         * keyboard.c (read_char): Alter list traversal to avoid taking the
3519         address of cons cell slots.  Use POSN_BUFFER_SET_POSN.
3520         (parse_menu_item): Use XSETCAR and XSETCDR.
3521         (reach_char_x_menu_prompt): Use XSETCAR.
3522         (read_key_sequence): Use POSN_BUFFER_SET_POSN.
3523         (Fcommand_execute): Use XSETCDR.
3524         * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
3525         (openp): Change list traversal to avoid using XCAR as lvalue.
3526         (read_list): Use XSETCDR.
3527         * process.c (wait_reading_process_input): Change wait_for_cell
3528         handling to avoid taking addresses of cons cell slots.
3529         * xselect.c (x_own_selection, x_handle_selection_clear)
3530         (x_clear_frame_selections): Use XSETCDR.
3531         (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
3532         (x_handle_property_notify, x_get_foreign_selection)
3533         (x_handle_selection_notify): Use XSETCAR.
3535 2001-10-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3537         * buffer.c: Put doc strings in comments.
3539         * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
3541 2001-10-15  Sam Steingold  <sds@gnu.org>
3543         * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
3545 2001-10-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3547         * process.c (process-inherit-coding-system-flag)
3548         (get-buffer-process): Do not confuse make-docfile with doc strings
3549         in comment.
3551         * editfns.c (Fchar_to_string): Make doc string consistent with
3552         arguments.  Put doc strings in comments.
3554         * abbrev.c, minibuf.c: Put doc strings in comments.
3556 2001-10-15  Gerd Moellmann  <gerd@gnu.org>
3558         * window.c (window_loop): Don't check for Fother_buffer returning nil.
3560         * window.c (select_window_1): Unfreeze window start.  Remove a
3561         doubled test for WINDOW being live.
3563 2001-10-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3565         * fns.c (Fmapconcat): Fix typo in a doc string.
3567         * dispnew.c (Fsleep_for): Fix typo in a doc string.
3569 2001-10-15  Gerd Moellmann  <gerd@gnu.org>
3571         * xterm.c (x_draw_glyph_string): Restore clipping after
3572         drawing box.
3574 2001-10-15  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3576         * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
3578 2001-10-14  Stefan Monnier  <monnier@cs.yale.edu>
3580         * indent.c (skip_invisible): Use new retval of
3581         TEXT_PROP_MEANS_INVISIBLE.
3583         * keymap.c (access_keymap): Unify handling of `t' and generic-char.
3584         If a parent is reached and noinherit is set, exit immediately.
3585         Use AREF and ASIZE macros.  Call get_keyelt before checking KEYMAPP.
3587         * s/ms-w32.h (EXEC_SUFFIXES):
3588         * s/msdos.h (EXEC_SUFFIXES):
3589         * process.h (EXEC_SUFFIXES): Remove.
3591         * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
3592         (decode_suffixes): Remove.
3594         * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
3595         (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
3596         (invisible_ellipsis_p): Remove.
3598         * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
3599         (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
3600         (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
3601         (in_ellipses_for_invisible_text_p, handle_invisible_prop):
3602         Use new retval of TEXT_PROP_MEANS_INVISIBLE.
3604 2001-10-14  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3606         * lisp.h (Ftop_level): Add prototype.
3608         * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
3609         (XTread_socket): Improve style of comments to follow other
3610         comments.
3612         * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
3613         is already prototyped in included lisp.h).
3615         * frame.c (Fset_mouse_position): Improve style of comment to
3616         follow other comments.
3617         (Fset_mouse_pixel_position): Improve style of comment to follow
3618         other comments.
3619         (Fmake_frame_visible): Doc fix and typo in comment.
3620         (Fmake_frame_invisible): Doc fix and typo in comment.
3621         (Ficonify_frame): Fix typo in comment.
3623 2001-10-14  Gerd Moellmann  <gerd@gnu.org>
3625         * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
3626         * term.c, alloc.c: Put doc strings in comments.
3628 2001-10-13  Gerd Moellmann  <gerd@gnu.org>
3630         * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
3631         Provide definitions for doc strings in comments.
3633         * fns.c: Put doc strings in comments.
3635 2001-10-13  Eli Zaretskii  <eliz@is.elta.co.il>
3637         * dired.c (file_name_completion): Ignore a candidate directory if
3638         it matches an element in completion-ignored-extensions that ends
3639         in a slash.
3640         (syms_of_dired) <completion-ignored-extensions>: Mention the above
3641         feature in the doc string.
3642         (Ffile_name_completion): Ditto.
3644 2001-10-12  Stefan Monnier  <monnier@cs.yale.edu>
3646         * indent.c (skip_invisible): Don't skip "ellipsisized" text.
3648         * xfns.c (syms_of_xfns): Update calls to Fprovide.
3650         * lisp.h (Fprovide): Update prototype.
3651         (Ffeaturep, invisible_p): Remove.
3653         * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
3654         (DOLIST, LOOP_PROPVAL): New macros.
3655         (invisible_p, invisible_ellipsis_p): Use them.
3656         (invisible_noellipsis_p): New function.
3657         (syms_of_xdisp): Use empty_string.
3659         * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
3661         * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
3662         (syms_of_lread) <Vafter_load_alist>: Update docstring.
3664         * print.c (Fwith_output_to_temp_buffer): Align with
3665         internal_with_output_to_temp_buffer.
3666         (print_preprocess): Use traverse_intervals_noorder.
3667         (print_object): Update call to traverse_intervals.
3669         * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
3670         (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
3672         * intervals.c (traverse_intervals_noorder): New function.
3673         (search_for_interval, count_intervals): Use it.
3674         (traverse_intervals): Use less stack space and drop `depth' arg.
3676         * fns.c (Ffeaturep): Add new `subfeature' arg.
3677         (Fprovide): Add new `subfeatures' arg.  Use `after-load-alist'.
3678         (Qsubfeatures): New var.
3679         (syms_of_fns): Initialize it.
3681         * keymap.c (Fkey_description): Use empty_string.
3682         (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
3683         (syms_of_keymap): Setup inheritance between maps.
3684         Don't export Sdescribe_bindings_internal any more.
3686         * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
3688 2001-10-12  Gerd Moellmann  <gerd@gnu.org>
3690         * xterm.c (notice_overwritten_cursor): Renamed from
3691         note_overwritten_text_cursor.  Rewritten to take glyph widths into
3692         account.
3694 2001-10-12  Eli Zaretskii  <eliz@is.elta.co.il>
3696         * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
3697         multi-line strings without a trailing "\n\".
3699 2001-10-12  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3701         * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
3702         defined.
3704 2001-10-11  Stefan Monnier  <monnier@cs.yale.edu>
3706         * callint.c (Fcall_interactively): Remove unused code.  Use XCAR.
3708         * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3709         * w32proc.c (sys_spawnve):
3710         * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3711         * w32.c (check_windows_init_file):
3712         * sound.c (Fplay_sound):
3713         * emacs.c (init_cmdargs):
3714         * process.c (Fstart_process): Update calls to openp.
3716         * callproc.c (Vexec_suffixes): New var.
3717         (Fcall_process): Update call to openp.
3718         (decode_suffixes): New function.
3719         (syms_of_callproc): Init exec-suffixes.
3721         * lread.c (Vload_suffixes, default_suffixes): New vars.
3722         (openp): Take a lisp list of suffixes.
3723         Check for file-name-handlers even if the file was absolute already.
3724         (syms_of_lread): Declare load-suffixes.
3725         (Fload): Fix up call to openp.
3726         Don't bother checking for file-name-handler at the very beginning.
3728         * keymap.h (Fcopy_keymap): Don't export.
3730         * lisp.h (empty_string): Declare.
3731         (Vload_suffixes, Vexec_suffixes): Declare.
3732         (openp): Update prototype.
3734         * emacs.c (empty_string): New var.
3735         (syms_of_emacs): Initialize it.
3737         * search.c (wordify): Use it.
3739         * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
3740         selected window if it's not displayed there.  Handle the case
3741         when the window is dedicated.
3742         (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
3744         * undo.c (Fprimitive_undo): Use XCAR/XCDR.
3746         * syntax.h (struct gl_state_s): Change the meaning of b_property.
3747         Remove left_ok and right_ok.
3748         (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
3749         (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
3750         new meaning of b_property.
3752         * syntax.c (update_syntax_table): Simplify.
3753         (Fforward_comment): Don't skip quoted chars when going backward.
3755 2001-10-11  Gerd Moellmann  <gerd@gnu.org>
3757         * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
3758         in case I is of some unsigned type, in which case
3759         MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
3760         comparison becomes bogus.
3762         * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
3763         (Fuser_full_name): Fix bug treating a float as a fixnum.
3765         * data.c (Fstring_to_number): Use make_fixnum_or_float.
3767         * lisp.h (make_fixnum_or_float): New macro.
3769         * lisp.h (circular_list_error): Add prototype.
3771         * data.c (Qcircular_list): New variable.
3772         (circular_list_error): New function.
3773         (syms_of_data): Initialize it Qcircular_list.
3775 2001-10-10  Stefan Monnier  <monnier@cs.yale.edu>
3777         * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
3778         * casefiddle.c, buffer.c: Include keymap.h.
3780 2001-10-10  Gerd Moellmann  <gerd@gnu.org>
3782         * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
3783         options.  From Dave Love <d.love@dl.ac.uk>.
3785 2001-10-09  Gerd Moellmann  <gerd@gnu.org>
3787         * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
3788         From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3790         * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
3791         unsigned char.
3792         From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3794 2001-10-08  Andrew Innes  <andrewi@gnu.org>
3796         * lisp.h [max]: Undef min and max before redefining them.
3798         * w32gui.h: Do not undef min and max.
3800         * w32heap.h: Do not undef min and max.
3802         * s/ms-w32.h: Do not undef min and max.
3804 2001-10-08  Stefan Monnier  <monnier@cs.yale.edu>
3806         * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
3808 2001-10-08  Sam Steingold  <sds@gnu.org>
3810         * keymap.c (current-active-maps): Quote newlines (compilation error).
3812 2001-10-08  Eli Zaretskii  <eliz@is.elta.co.il>
3814         * Makefile.in (lisp, shortlisp): Replace bindings.el with
3815         bindings.elc, since otherwise doc strings in bindings.el get wrong
3816         offsets in etc/DOC.
3818 2001-10-08  Stefan Monnier  <monnier@cs.yale.edu>
3820         * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
3822         * keyboard.h (map_prompt): Remove.
3824         * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
3825         * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
3827         * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3829         * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3831         * keyboard.c (map_prompt): Remove.
3832         (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
3833         Use Fkeymap_prompt.
3835         * keymap.h: New file.  Extracted from lisp.h.
3837         * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
3838         (accessible_keymaps_1): New function.
3839         (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
3840         (Fwhere_is_internal): Use Fcurrent_active_maps.
3841         (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
3842         Insert in current buffer rather than standard-output.
3843         Don't call `help-mode'.  Export to elisp.
3844         (describe_buffer_bindings): New wrapper.
3845         (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
3846         and Sdescribe_buffer_bindings.
3848 2001-10-08  Gerd Moellmann  <gerd@gnu.org>
3850         * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3851         Remove code setting signal handler.
3853         * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
3854         Clear ICRNL and INLCR.  From Daiki Ueno <ueno@unixuser.org>.
3856 2001-10-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3858         * keyboard.c: Don't define min/max.
3860 2001-10-08  Gerd Moellmann  <gerd@gnu.org>
3862         * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
3863         * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
3864         * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
3865         * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
3866         * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
3867         Don't define min/max.
3869         * lisp.h (min, max): New macros.
3871         * puresize.h (BASE_PURESIZE): Increase to 725000.
3873 2001-10-08  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
3875         * xfaces.c (free_frame_menubar): Add prototype.
3877         * lisp.h (init_window): Add prototype.
3879         * editfns.c: Include ctype.h.
3881         * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
3882         (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
3883         (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
3884         variable `sb'.
3886         * xfns.c (Fx_hide_tip): Fix typo in a doc string.
3887         (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
3888         `popup_activated_flag' and `title'.
3890         * doc.c (Fdocumentation_property): Fix typo in a doc string.
3892         * emacs.c (main): Remove extra `;'.
3894         * atimer.h (struct atimer): Fix typos in a comment.
3896         * atimer.c: Fix typo.
3898         * Makefile.in: Fix typo.
3900         * README: Remove obsolete part mentioning removed VMS file.
3902 2001-10-07  Miles Bader  <miles@gnu.org>
3904         * Makefile.in (lisp, shortlisp): Add `button.elc'.
3906 2001-10-07  Ken Raeburn  <raeburn@gnu.org>
3908         * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
3909         Lisp_Object.
3911         * lisp.h (Ffield_end): Declare.
3913 2001-10-07  Gerd Moellmann  <gerd@gnu.org>
3915         * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
3917         * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
3919         * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
3921         * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
3923         * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
3924         (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
3926         * alloc.c (inhibit_garbage_collection): Simplify.
3927         (Fmemory_use_counts): Ditto.
3929         * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
3930         (syms_of_data): DEFVAR_INT most-positive-fixnum and
3931         most-negative-fixnum.
3933         * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
3934         (FIXNUM_OVERFLOW_P): New macros.
3936 2001-10-06  Miles Bader  <miles@gnu.org>
3938         * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
3939         scroll_bar_bottom_shadow_pixel fields.
3940         * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
3941         for the shadows, and tell the toolkit about them if we succeed.
3942         (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
3943         Free scroll-bar shadow colors.
3944         * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
3945         Free scroll-bar shadow colors when the background color changes.
3946         (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
3947         Initialize scroll-bar shadow-color fields.
3949 2001-10-05  Gerd Moellmann  <gerd@gnu.org>
3951         * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
3953 2001-10-05  Miles Bader  <miles@gnu.org>
3955         * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
3956         (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
3957         New functions (were in simple.el).
3958         (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3959         (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
3960         (syms_of_minibuf): Initialize them.
3962 2001-10-05  Gerd Moellmann  <gerd@gnu.org>
3964         * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
3965         (tiff_load): Install them as error and warning handler.
3967 2001-10-04  Andrew Innes  <andrewi@gnu.org>
3969         * w32fns.c (x_to_w32_color): Fix argument to alloca.
3970         (w32_load_system_font): Don't believe what GetLanguageFontInfo
3971         says; query codepage info directly to determine if font is double byte.
3972         (x_to_w32_charset): Handle private format for unknown charsets.
3973         Handle wildcards in charset spec, by ignoring them.
3974         (w32_codepage_for_font): Fix argument to alloca.  Don't remove
3975         "*-" prefix from charset.
3976         (x_to_w32_font): Enlarge remainder array for safety.  Specifically
3977         handle the truncated font spec form constructed by font_list_1, so
3978         that we correctly identify the charset fields.  Don't remove "*-"
3979         prefix from charset.
3980         (w32_list_synthesized_fonts): Fix argument to alloca.
3982 2001-10-04  Stefan Monnier  <monnier@cs.yale.edu>
3984         * window.h (MINI_WINDOW_P): Use NILP.
3986         * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
3988         * termhooks.h (struct input_event): Use proper type for `kind'.
3990 2001-10-04  Gerd Moellmann  <gerd@gnu.org>
3992         This handles unknown keysyms better than before.  For example,
3993         after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
3994         Emacs formerly completely ignored F5.  With the change, it derives
3995         a key symbol from the name of the X keysym, `ccaron' in this case.
3996         Reported by Martin Buchholz.
3998         * xterm.c (XTread_socket): Return a non_ascii_keystroke for
3999         unknown keysyms.
4001         * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
4002         that EVENT->code isn't a function key, use the keysym's name.
4004 2001-10-04  Gerd Moellmann  <gerd@gnu.org>
4006         FOREACH is a macro that should make it easier to loop over Lisp
4007         lists with checks for cycles and proper lists.
4009         * lisp.h (LIST_END_P, FOREACH): New macros.
4011 2001-10-04  Gerd Moellmann  <gerd@gnu.org>
4013         On some systems, XtCloseDisplay seems to cause a SIGSEGV when
4014         called for a lost connection.  Prevent dumping core in this case.
4015         Instead print the X error, and exit.  On user request.
4017         * xterm.c (error_msg): New variable.
4018         (x_fatal_error_signal): New function.
4019         (x_connection_closed): Set error_msg.  Install x_fatal_error_signal
4020         as fatal_error_signal_hook around the call to XtCloseDisplay.
4022         * emacs.c (fatal_error_signal_hook): New variable.
4023         (fatal_error_signal): Call that function.
4025 2001-10-04  Gerd Moellmann  <gerd@gnu.org>
4027         With this, Emacs prints how much pure storage it will
4028         approximately need in case pure storage overflows while dumping.
4030         * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
4031         New variables.
4032         (init_alloc_once): Initialize new variables.
4033         (PURE_POINTER_P): Use new variables.
4034         (pure_alloc): If pure storage overflows, allocate from the heap.
4035         (check_pure_size): New function.
4036         (Fgarbage_collect): Don't GC if pure storage has overflowed.
4038         * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
4039         (check_pure_size): Add prototype.
4041         * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
4043 2001-10-04  Gerd Moellmann  <gerd@gnu.org>
4045         This adds a post-gc-hook that's run with GC inhibited.
4046         Requested by Francois Pinard.  XEmacs has it.  Added to NEWS.
4048         * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
4049         (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
4050         (Fgarbage_collect): Run post-gc-hook.
4052 2001-10-04  Gerd Moellmann  <gerd@gnu.org>
4054         This adds `defvaralias' and `indirect-variable'.  Changes not
4055         directly related to this feature are there to gain the same
4056         performance again as before variable aliases.
4058         You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
4059         code to get and set symbol values, to take defvaralias into account.
4061         (Note: the new `constant' bit-flag in symbols would make it
4062         possible to define arbitrary read-only variables, e.g. with
4063         `defconst'.)
4065         Documentation is in lispref/variables.texi.  Added to NEWS.
4067         * lisp.h (enum symbol_interned): New enumeration.
4068         (struct Lisp_Symbol): Remove member `obarray', add
4069         `indirect_variable', `constant', and `interned'.
4070         (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
4071         (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
4072         (indirect_variable): Add prototype.
4074         * print.c (print_preprocess, print_object): Test internedness of
4075         symbols differently.
4077         * lread.c (Fintern, Funintern): Set symbol's interned and constant
4078         bit-fields.
4079         (init_obarray): Likewise for t and nil.
4081         * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
4082         (Fdefvaralias): New function.
4083         (specbind): Simplify the test if symbol is a constant.
4084         (syms_of_eval): Defsubr Fdefvaralias.
4086         * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
4087         (Qcyclic_variable_indirection): New variable.
4088         (Fkeywordp): Check for internedness differently.
4089         (Fmakunbound): Simplify the test if symbol is a constant.
4090         (indirect_variable, Findirect_variable): New functions.
4091         (swap_in_symval_forwarding): If SYMBOL is an alias, use the
4092         aliased symbol.
4093         (let_shadows_buffer_binding_p): Check for variable aliases.
4094         (set_internal): Simplify the test if SYMBOL is a constant.
4095         If SYMBOL has a buffer-local value and is an alias, use the aliased
4096         symbol instead.
4097         (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
4098         Sindirect_variable.
4100         * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
4101         (Fbyte_code) <varset>: Simplify the test if symbol's value can be
4102         set directly.
4104         * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
4106         * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
4107         * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
4108         SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
4110 2001-10-04  Gerd Moellmann  <gerd@gnu.org>
4112         * Branch for 21.1.
4114 2001-10-03  Miles Bader  <miles@gnu.org>
4116         * callproc.c (syms_of_callproc): Explicitly state in the
4117         documentation for `process-environment' that earlier entries take
4118         precedence over later ones.
4120 2001-10-02  Miles Bader  <miles@gnu.org>
4122         * textprop.c (Fnext_char_property_change)
4123         (Fprevious_char_property_change): Remove reference to non-existant
4124         argument OBJECT from doc-string.
4126 2001-10-01  Gerd Moellmann  <gerd@gnu.org>
4128         * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
4129         (try_window_id): Skip back over lines ending in a newline from a
4130         string.
4132         * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
4133         New bit flag
4135 2001-10-01  Richard M. Stallman  <rms@gnu.org>
4137         * search.c (Freplace_match): Doc fix.
4139 2001-09-28  Andrew Innes  <andrewi@gnu.org>
4141         * w32menu.c (set_frame_menubar): Take into account that
4142         f->menu_bar_vector can be nil, and not a vector.  From Ken Raeburn
4143         <raeburn@gnu.org>.
4145 2001-09-30  Eli Zaretskii  <eliz@is.elta.co.il>
4147         * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
4149 2001-09-28  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4151         * s/gnu-linux.h: Fix a typo in comment.
4153 2001-09-28  Andreas Schwab  <schwab@suse.de>
4155         * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
4156         nocombreloc, in case -z combreloc is the default.
4158 2001-09-28  Gerd Moellmann  <gerd@gnu.org>
4160         * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
4161         really going on here.
4163 2001-09-27  Stefan Monnier  <monnier@cs.yale.edu>
4165         * search.c (trivial_regexp_p): Catch \{N,M\} as well.
4167 2001-09-27  Eli Zaretskii  <eliz@is.elta.co.il>
4169         * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
4170         utf-8, menu-bar, and latin-N.
4171         (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
4172         unconditionally now.
4173         (lisp): Add latin-N, since they are preloaded.
4175 2001-09-27  Gerd Moellmann  <gerd@gnu.org>
4177         * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
4178         to the left.  Some cleanup.
4180         * xdisp.c (display_mode_element): One more case where a string's
4181         multibyteness should be used for display.
4183 2001-09-26  Gerd Moellmann  <gerd@gnu.org>
4185         * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
4186         reading at EOF.
4188         * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
4189         of the only temporarily set echoing flag for deciding when
4190         the cancel echoing.
4192         * keyboard.c (echo_kboard): Make externally visible.
4194         * lisp.h (echo_kboard): Declare extern.
4196         * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
4197         fonts_changed_p if we need larger matrices due to vscrolling.
4198         (try_scrolling, try_cursor_movement, redisplay_window): Give up on
4199         this round of redisplay if make_cursor_line_fully_visible fails.
4200         (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
4201         (try_cursor_movement, try_scrolling): Use them instead of integers.
4203         * dispextern.h (required_matrix_width, required_matrix_height):
4204         Add prototypes.
4206         * dispnew.c (required_matrix_width, required_matrix_height):
4207         New functions.
4208         (allocate_matrices_for_window_redisplay)
4209         (allocate_matrices_for_frame_redisplay: Use them.
4210         Remove parameters CH_DIM.
4212         * xdisp.c (display_mode_lines): Temporarily set selected_frame
4213         and selected_window to the frame of the window whose mode-lines
4214         are displayed, and to the window itself.
4215         (redisplay_window, redisplay_mode_lines): Don't set selected_frame
4216         here.
4218 2001-09-25  Gerd Moellmann  <gerd@gnu.org>
4220         * xfns.c (x_kill_gs_process): Recognize if someone has cleared
4221         the image cache under us.
4223         * xdisp.c (display_mode_element): If the mode element is a symbol
4224         with a string value, use that string's multibyteness for displaying.
4226         * keyboard.c (read_char): Don't clear a message for a switch-frame
4227         event.   From Stefan Monnier  <monnier@cs.yale.edu>.
4229         * xterm.c (fast_find_position) [0]: Add a presumably more correct
4230         version for after 21.1.
4232         * xdisp.c (row_containing_pos): Make externally visible.
4234         * dispextern.h (row_containing_pos): Add prototype.
4236         * process.c (send_process): Disable composition if from_byte < 0.
4237         From Kenichi Handa <handa@etl.go.jp>.
4239 2001-09-24  Gerd Moellmann  <gerd@gnu.org>
4241         * xterm.c (refreshicon): Function removed.
4243         * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
4245         * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
4247         * xterm.c (toplevel): Remove includes in #if 0.
4249         * process.c (sigchld_handler) [LINUX]: Don't return from
4250         the signal handler at the end of the loop.
4252 2001-09-21  Gerd Moellmann  <gerd@gnu.org>
4254         * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
4255         Terminate only if kill returns -1, and errno is ESRCH.
4257 2001-09-21  Markus Rost  <rost@math.ohio-state.edu>
4259         * Makefile.in (shortlisp): Add ../lisp/env.elc.
4261 2001-09-20  Gerd Moellmann  <gerd@gnu.org>
4263         * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
4264         since this function can be called during GC.
4266         * callproc.c (Fcall_process): Handle errors from pipe(2).
4267         (child_setup): Delete code in #ifdef vipc.
4269 2001-09-19  Gerd Moellmann  <gerd@gnu.org>
4271         * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
4272         (display_mode_element): Display the string from decode_mode_spec
4273         depending on its multibyteness.
4275         * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
4277         * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
4279 2001-09-18  Gerd Moellmann  <gerd@gnu.org>
4281         * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
4282         recursive_edit_unwind.
4283         (recursive_edit_unwind): Set kboard state according to
4284         SINGLE-KBOARD.
4286         * buffer.c (modify_overlay): Don't do nothing if START == END;
4287         This can still be a modification, for example when an overlay has
4288         a before-string or after-string.
4289         (Fdelete_overlay): Prevent redisplay optimizations when deleting
4290         an overlay with before-string or after-string.
4292         * s/netbsd.h (C_SWITCH_SYSTEM): Add.
4293         (LD_SWITCH_SYSTEM): Include /usr/local/lib.
4295         * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
4296         first_unchanged_at_end_row is in front of
4297         last_unchanged_at_beg_row.  This code should be removed after the
4298         release of 21.1.
4300 2001-09-17  Gerd Moellmann  <gerd@gnu.org>
4302         * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
4303         BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
4305         * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
4306         versions >= 2.95.
4308 2001-09-14  Eli Zaretskii  <eliz@is.elta.co.il>
4310         * dired.c (Ffile_attributes): Doc fix.
4312 2001-09-14  Gerd Moellmann  <gerd@gnu.org>
4314         * fileio.c (Ffile_symlink_p): Fix last change.
4316         * filelock.c (current_lock_owner): Fix last change.
4318 2001-09-13  Gerd Moellmann  <gerd@gnu.org>
4320         * filelock.c (current_lock_owner): If readlink returns ERANGE,
4321         take that to mean that the buffer is too small.
4323         * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
4324         that to mean that the buffer is too small.
4326         * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
4327         current buffer's multibyteness when discarding the iterator's
4328         stack.
4330         * xfns.c (Fx_window_property): Handle case that property gets
4331         deleted between the two calls to XGetWindowProperty.
4333 2001-09-11  Gerd Moellmann  <gerd@gnu.org>
4335         * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
4337         * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
4338         in addition to read-only.
4340         * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
4341         to t in addition to read-only.
4343         * lisp.h (Qinhibit_modification_hooks): Declare.
4345         * insdel.c (Qinhibit_modification_hooks): New variable.
4346         (syms_of_insdel): Initialize and staticpro it.
4348         * textprop.c (verify_interval_modification): Don't run
4349         modification-hooks if inhibit_modification_hooks.
4351         * dispnew.c (set_window_cursor_after_update): Fix code
4352         finding glyph row containing cursor when cursor_in_echo_area
4353         is >= 0.
4355         * xdisp.c (init_from_display_pos): Put some code in #if 0.
4356         (add_to_log): Use bcopy instead of strcpy.
4357         (init_from_display_pos): Use an explicit loop over bytes in
4358         overlay strings instead of calling index.
4360 2001-09-10  Gerd Moellmann  <gerd@gnu.org>
4362         * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
4364         * dispnew.c (direct_output_for_insert): Don't change IT's
4365         stop_charpos to something in front of its current position.
4367         * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
4368         `format'.
4370 2001-09-10  Richard M. Stallman  <rms@gnu.org>
4372         * frame.c (Fmouse_position): Doc fix.
4374 2001-09-07  Gerd Moellmann  <gerd@gnu.org>
4376         * xdisp.c (init_from_display_pos): Don't compare the result
4377         of calling index with NULL.
4379 2001-09-06  Gerd Moellmann  <gerd@gnu.org>
4381         * xfns.c (x_set_background_color): Don't change the colors
4382         of the X window of scroll bar widgets.
4384 2001-09-05  Andrew Innes  <andrewi@gnu.org>
4386         * w32fns.c (w32_createwindow): Undo last change.
4388 2001-09-05  Gerd Moellmann  <gerd@gnu.org>
4390         * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
4392         * xdisp.c (string_buffer_position): Use *single_char_property*
4393         functions instead of the *single_property* functions.
4395 2001-09-04  Andrew Innes  <andrewi@gnu.org>
4397         * w32term.c (w32_read_socket): Add more information to debugging
4398         output.
4400         * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
4401         from Emacs frames, so that calls to GetClipBox in w32term.c
4402         correctly report when part of a frame is visible (including
4403         scrollbars, etc).  This prevents repeated redrawing of frames when
4404         only a scrollbar is visible.
4405         (w32_wnd_proc): Add more frame information to debugging output.
4407 2001-09-03  Stefan Monnier  <monnier@cs.yale.edu>
4409         * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
4411 2001-09-03  Gerd Moellmann  <gerd@gnu.org>
4413         * xterm.c (note_mouse_highlight) <help-echo>: When looking for
4414         help-echo for a string which doesn't have help-echo itself, use
4415         get-char-property to obtain the help-echo from the string's buffer
4416         (note_mouse_highlight) <mouse-face>: When on a string that doesn't
4417         have mouse-face, look ``under'' the string for mouse-face from an
4418         overlay.
4419         (fast_find_position): Add parameter STOP.  In the final row, stop
4420         before glyphs having STOP as object.  Don't consider glyphs that
4421         are not from a buffer.
4423         * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
4425 2001-09-01  Eli Zaretskii  <eliz@is.elta.co.il>
4427         * fns.c (Fmd5): Doc fix.
4429 2001-08-31  Gerd Moellmann  <gerd@gnu.org>
4431         * composite.c (update_compositions): Do nothing if
4432         inhibit-modification-hooks is set.
4434 2001-08-30  Gerd Moellmann  <gerd@gnu.org>
4436         * emacs.c (shut_down_emacs): Don't call check_glyph_memory
4437         and check_message_stack if terminating abnormally.  We want
4438         glyph matrices etc. in a core dump.
4440         * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
4441         (syms_of_xdisp): Initialize them.
4442         (handle_single_display_prop): Don't change point, bind `object',
4443         `position', and `buffer-position' instead to the object having the
4444         `display' property, position in the object and position in the buffer.
4446         * fileio.c (Finsert_file_contents): Don't change the multibyteness
4447         of the buffer if REPLACE is non-nil.
4449 2001-08-29  Gerd Moellmann  <gerd@gnu.org>
4451         * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
4453 2001-08-28  Eli Zaretskii  <eliz@is.elta.co.il>
4455         * w32term.c (x_set_glyph_string_background_width)
4456         (show_mouse_face): Track the last changes in xterm.c.
4458 2001-08-28  Gerd Moellmann  <gerd@gnu.org>
4460         * xterm.c (x_set_glyph_string_background_width): Set the glyph
4461         string's background width so that multi-line mouse-face is drawn
4462         to the right edge of the window.
4463         (show_mouse_face): Set the row's mouse_face_p flag after drawing
4464         glyphs.
4466         * dispnew.c (direct_output_for_insert): Set updated_area
4467         before inserting/writing glyphs.
4469         * xdisp.c (display_mode_element): Use string_byte_to_char to
4470         determine character positions in strings, use chars_in_text
4471         instead of strwidth.
4472         (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
4473         a matrix as parameter; this is easier to use from GDB.
4475 2001-08-28  Miles Bader  <miles@gnu.org>
4477         * textprop.c (Fprevious_single_char_property_change)
4478         (Fnext_single_char_property_change): Doc fixes.
4480 2001-08-27  Gerd Moellmann  <gerd@gnu.org>
4482         * fileio.c (Finsert_file_contents): Allocate, restore, and
4483         free composition data in the case of REPLACE not being nil.
4485         * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
4486         there exist overlay strings with newlines at POS.
4487         (text_outside_line_unchanged_p): Return 0 if changes start at
4488         START and overlays exist at START.  Likewise for END.
4489         (try_window_id): Give up if init_to_row_end returns 0.
4491         * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
4492         unconditionally.
4494 2001-08-24  Gerd Moellmann  <gerd@gnu.org>
4496         * keymap.c (access_keymap): Return the cdr of the binding of
4497         a generic character instead of its definition (KEY . BINDING).
4499         * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
4500         to 0 also in the REPLACE case.
4502 2001-08-24  Andrew Choi  <akochoi@cse.cuhk.edu.hk>
4504         * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
4505         open to determine whether file is readable (as for DOS_NT).
4507 2001-08-23  Gerd Moellmann  <gerd@gnu.org>
4509         * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
4510         coding.type is coding_type_no_conversion or coding_type_raw_text,
4511         use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
4512         non-nil instead of just setting enable_multibyte_characters in the
4513         buffer to nil.
4515 2001-08-22  Gerd Moellmann  <gerd@gnu.org>
4517         * dispextern.h (struct face_cache): Add member
4518         menu_face_changed_p.
4520         * xfaces.c (menu_face_changed_default): New variable.
4521         (menu_face_changed_count): Variable removed.
4522         (Finternal_set_lisp_face_attribute): Doc fix.  If FRAME is t, set
4523         the menu_face_changed_default flag, otherwise set the FRAME's
4524         menu_face_changed_p flag if the `menu' face has been changed.
4525         Prevent calling set_font_frame_param if FRAME is t.
4526         (make_face_cache): Initialize cache's menu_face_changed_p
4527         from menu_face_changed_default.
4528         (realize_basic_faces): Look into the frame's face cache to
4529         determine if the menu appearance needs updating.
4531         * keymap.c (access_keymap): Fix last change to not consider
4532         IDX when it has modifiers.
4534 2001-08-21  Gerd Moellmann  <gerd@gnu.org>
4536         * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
4537         . BINDING) exists, where GENERIC-CHAR is the generic character of
4538         the charset of IDX, return BINDING unless there exists a binding
4539         for IDX itself.
4541 2001-08-16  Gerd Moellmann  <gerd@gnu.org>
4543         * xrdb.c (SYSV): Don't define on Solaris 2.
4544         From Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>.
4546         * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
4547         of the screen line, not text line, containing IT's current position.
4549 2001-08-15  Gerd Moellmann  <gerd@gnu.org>
4551         * window.c (window_scroll_pixel_based): Don't recenter if
4552         PT is partially visible in the window.
4554         * xterm.c (expose_window_tree, expose_window, expose_line):
4555         Return 1 when overwriting mouse-face.
4556         (expose_frame): If mouse-face was overwritten, redo it.
4558         * xfaces.c (x_update_menu_appearance): Don't call
4559         set_frame_menubar, let the next redisplay do it.
4561 2001-08-14  Andrew Innes  <andrewi@gnu.org>
4563         * w32term.c (x_draw_glyph_string): Draw relief (if any) before
4564         drawing glyph string.
4566 2001-08-14  Eli Zaretskii  <eliz@is.elta.co.il>
4568         * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
4569         running HI-UX/MPP.
4571 2001-08-14  Gerd Moellmann  <gerd@gnu.org>
4573         * xfaces.c (x_update_menu_appearance): Save and restore value of
4574         interrupt_input_blocked.
4576 2001-08-13  Gerd Moellmann  <gerd@gnu.org>
4578         * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
4579         a line start, move back to the line start.
4581         * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
4582         exactly when a mini-buffer is active.
4584         * keyboard.c (make_lispy_event): Interpret double_click_fuzz
4585         in units of 1/8 character on non window-system frames.
4586         (syms_of_keyboard) <double-click-fuzz>: Doc fix.
4588 2001-08-10  Eli Zaretskii  <eliz@is.elta.co.il>
4590         * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
4591         a doc string.
4593 2001-08-09  Gerd Moellmann  <gerd@gnu.org>
4595         * keyboard.c (Vpre_help_message): New variable.
4596         (syms_of_keyboard): Initialize and staticpro it.
4597         (show_help_echo): Record current message before displaying a
4598         help-echo, and restore that message when clearing the help.
4600         * xfns.c (x_create_im): Remove prototype.
4602         * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
4604         * dispnew.c (adjust_glyph_matrix): Undo last change.
4606 2001-08-08  Gerd Moellmann  <gerd@gnu.org>
4608         * dispnew.c (adjust_glyph_matrix): In the optimization for
4609         windows whose height has changed, disable partially visible lines.
4611 2001-08-07  Gerd Moellmann  <gerd@gnu.org>
4613         * window.c (Frecenter): If ARG < 0, and on a window system
4614         frame, count in some empty lines when we can't move -ARG lines down.
4616         * xdisp.c (start_display): Don't try to determine the continuation
4617         lines width if lines are truncated.  It's superfluous and leads to
4618         incorrect results if POS is not visible in the window after
4619         reseating the iterator at the previous line start.
4621 2001-08-06  Gerd Moellmann  <gerd@gnu.org>
4623         * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4625 2001-08-06  Pavel Jan\e,Am\e(Bk  <Pavel@Janik.cz>
4627         * alloc.c (init_stack): Remove declaration.
4629 2001-08-03  Gerd Moellmann  <gerd@gnu.org>
4631         * keyboard.c (read_key_sequence): Check that key is an integer
4632         before comparing it with quit_char.
4633         (add_command_key): Use larger_vector.
4634         (read_char_x_menu_prompt): Instead of converting symbol and
4635         integer events into conses (EVENT . nil), use (EVENT . disabled)
4636         which cannot be confused with valid events.
4637         (read_char): When reading from Vunread_command_events, check for
4638         events of the form (EVENT . disabled) instead of
4639         (EVENT . nil).
4641         * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
4642         a float, determine the max height from the frame's height.
4644 2001-08-02  Gerd Moellmann  <gerd@gnu.org>
4646         * xdisp.c (redisplay_internal): Take message_cleared_p into
4647         account only if minibuf_level == 0.
4649 2001-08-01  Gerd Moellmann  <gerd@gnu.org>
4651         * xdisp.c (redisplay_internal): Add a check for the last
4652         displayed message.
4654         * xdisp.c (message_cleared_p): New variable.
4655         (clear_message): Set message_cleared_p when clearing the current
4656         message.
4657         (redisplay_internal): Look at message_cleared_p to capture
4658         the case that the echo area should be cleared.
4660         * keyboard.c (command_loop_1): Fix spelling of
4661         resize_echo_area_exactly.
4663         * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
4665         * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
4667         * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
4668         current matrix when the window gets smaller.
4670 2001-08-01  Eli Zaretskii  <eliz@is.elta.co.il>
4672         * print.c (strout): Cast the character passed to insert_char to
4673         unsigned char, to avoid sign extension when it is promoted to int.
4675 2001-07-31  Gerd Moellmann  <gerd@gnu.org>
4677         * fileio.c (Finsert_file_contents): Don't treat a return value
4678         of 0 from emacs_read as an IO error.
4680 2001-07-30  Gerd Moellmann  <gerd@gnu.org>
4682         * keyboard.c (abs): New macro.
4683         (double_click_fuzz): New variable.
4684         (make_lispy_event): Use it to determine what makes a double-click.
4685         (syms_of_keyboard): DEFVAR_INT it.
4687         * xmenu.c (set_frame_menubar): Take into account that
4688         f->menu_bar_vector can be nil, and not a vector.  From Ken Raeburn
4689         <raeburn@gnu.org>.
4691 2001-07-27  Gerd Moellmann  <gerd@gnu.org>
4693         * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
4695         * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
4696         of row's visible height.
4698         * xdisp.c (init_from_display_pos): If POS is in an overlay string,
4699         deal with the first overlay string having an image `display' property.
4700         (try_window_reusing_current_matrix, compute_line_metrics):
4701         Fix computation of row's visible height for the case that part of the
4702         row is invisible above and part of the row is at the same time
4703         invisible below the window.
4705 2001-07-26  Gerd Moellmann  <gerd@gnu.org>
4707         * xfns.c (x-show-tip): Doc fix.
4709         * xfns.c (Vx_max_tooltip_size): New variable.
4710         (syms_of_xfns): DEFVAR_LISP it.
4711         (Fx_show_tip): Set frame's window_width to the width of the
4712         window.  Use a maximum tooltip size specified by
4713         Vx_max_tooltip_size, if that has valid contents.
4714         (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
4716 2001-07-26  Andrew Innes  <andrewi@gnu.org>
4718         * w32term.c (x_display_list): New variable.
4719         (w32_term_init): Set it.
4721         * w32term.h (x_display_list): New extern.
4723 2001-07-26  Gerd Moellmann  <gerd@gnu.org>
4725         * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
4726         is non-nil, instead of when redisplaying_p is non-zero.
4727         See comment there.
4728         (mark_window_display_accurate_1): Add an assertion.
4730 2001-07-25  Gerd Moellmann  <gerd@gnu.org>
4732         * dispextern.h (struct it): Increase size of ctl_chars to 16.
4734         * xfns.c (Fx_file_dialog): Block/unblock input while processing
4735         events so that we get a chance of processing expose events.
4737         * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4739 2001-07-24  Gerd Moellmann  <gerd@gnu.org>
4741         * xfns.c (valid_image_p): Protect better against invalid image
4742         specifications.  Previous code could signal an error.
4744 2001-07-23  Gerd Moellmann  <gerd@gnu.org>
4746         * indent.c (current_column): Fix column computation in the
4747         presence of display table entries.
4748         (current_column_1, Fmove_to_column, compute_motion): Likewise.
4750         * dispnew.c (adjust_glyph_matrix): In the optimization for
4751         windows whose height has changed, use the new window height
4752         to compute which rows to invalidate.
4754         * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4755         (MAX_10_EXP): New macro.
4756         (Fformat): Use it.
4758         * coding.c (code_convert_region): Handle the multibyte case if
4759         decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
4761 2001-07-20  Gerd Moellmann  <gerd@gnu.org>
4763         * dispextern.h (struct face): Change type of `stipple' to
4764         int; it's an ID.
4766         * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
4768 2001-07-19  Gerd Moellmann  <gerd@gnu.org>
4770         * dispnew.c (update_window): Don't set the cursor at the end
4771         of the update if display update has been paused.
4773         * composite.h (syms_of_composite): Renamed from syms_of_composition.
4775 2001-07-18  Ken Raeburn  <raeburn@gnu.org>
4777         * fns.c (Fset_char_table_default): Check that a charset is defined
4778         before checking its dimension.
4780 2001-07-17  Ken Raeburn  <raeburn@gnu.org>
4782         * coding.c (setup_coding_system): Don't do any designation based
4783         on reg_bits if charset is not yet defined.
4785         * lisp.h (XVECTOR): Verify correct object type before returning a
4786         pointer, using eassert.
4788 2001-07-17  Gerd Moellmann  <gerd@gnu.org>
4790         * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
4791         Increase to 4096 because of paste problems reported on GNU/Linux.
4793 2001-07-17  Jan Nieuwenhuizen  <janneke@gnu.org>
4795         * emacs.c (USAGE1): Add +LINE:COLUMN option help.
4797 2001-07-16  Gerd Moellmann  <gerd@gnu.org>
4799         * fileio.c (unwind_read): Function removed.
4800         (read_non_regular, read_non_regular_quit): New functions.
4801         (Finsert_file_contents): When reading from non-regular files,
4802         arrange to catch a `quit' and terminate the loop.  Rearrange
4803         code so that a `quit' when reading from a regular file doesn't
4804         insert text in the buffer.
4806         * xfaces.c (clear_face_cache): Clear fonts on a display basis.
4807         Clear faces afterwards.
4808         (clear_font_table): Take a x_display_info parameter.  Don't free
4809         fonts being the default font of any frame on the given display.
4811 2001-07-13  Gerd Moellmann  <gerd@gnu.org>
4813         * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
4814         instead of CHAR_STRING which can signal an error.
4816         * charset.c (char_to_string_1): Extracted from char_to_string.
4817         Return -1 instead of signaling an error.
4818         (char_to_string): Use it.
4820         * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
4822 2001-07-12  Stefan Monnier  <monnier@cs.yale.edu>
4824         * coding.c (Ffind_coding_systems_region_internal): If safe_codings
4825         is t, don't try to append anything to it.
4827 2001-07-12  Eli Zaretskii  <eliz@is.elta.co.il>
4829         * dired.c (file_name_completion): Pass dp->d_name to
4830         Fstring_match, not elt, which is always nil here.
4832 2001-07-12  Gerd Moellmann  <gerd@gnu.org>
4834         * xselect.c (x_decline_selection_request): Handle errors
4835         caused by receivers that have vanished.
4837         * xterm.c (XTread_socket) <PropertyNotify>: Put the code
4838         ignoring events on foreign windows in #if 0.  Always dispatch
4839         the event after checking it with x_handle_property_notify.
4841         * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
4842         depending on TRACE_SELECTION.  Replace fprintfs in #if 0 with
4843         TRACE macros to facilitate debugging.  Add additional trace statements.
4844         (toplevel): Add prototypes for file-local functions.
4845         (x_atom_to_symbol): Remove DPYINFO parameter.
4847 2001-07-11  Stefan Monnier  <monnier@cs.yale.edu>
4849         * w32menu.c (menubar_selection_callback, w32_menu_show):
4850         Initialize `entry' to nil.
4851         (w32_dialog_show): Remove unused `save_wv' variable.
4852         (name_is_separator): Recognize "--:foo" and "--foo-bar".
4854 2001-07-11  Gerd Moellmann  <gerd@gnu.org>
4856         * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
4858         * fileio.c (unwind_read): Print a message when discarding inserted
4859         text or switching the buffer to unibyte.  Change parameter.
4860         (Finsert_file_contents): Don't pass VISIT to unwind_read.
4862         * fileio.c (unwind_read): New function.
4863         (Finsert_file_contents): Record it as unwind-function for
4864         the case that reading is interrupted by C-g.
4866 2001-07-10  Gerd Moellmann  <gerd@gnu.org>
4868         * dispnew.c (update_window): Don't skip the header-line
4869         update when scrolling_window returns 0.
4871         * xfaces.c (unload_color): Do nothing if PIXEL is -1.
4873         * xfns.c (Fx_create_frame): Initialize frame colors to -1,
4874         for the case that x_decode_color signals an error.
4876         * xdisp.c (add_to_log): Do nothing if called asynchronously.
4878 2001-07-09  Gerd Moellmann  <gerd@gnu.org>
4880         * sound.c (toplevel): Include <signal.h> and "syssignal.h".
4881         (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
4882         around ioctls.
4884 2001-07-06  Eli Zaretskii  <eliz@is.elta.co.il>
4886         * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
4887         doc string line for dos-timezone-offset.
4889         * msdos.c (do_visible_bell): Add \n\ at the end of each line of
4890         inline assembly, to avoid compiler warnings.
4891         (syms_of_msdos): Add \n\ at the end of a line in the doc string
4892         line for dos-unsupported-char-glyph.
4894         * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
4896 2001-07-05  Gerd Moellmann  <gerd@gnu.org>
4898         * sound.c: Include Emacs' header files with #include "...".
4900         * eval.c (specbind): Additionally record the buffer that was
4901         current when a buffer-local or frame-local variable was bound.
4903 2001-07-04  Gerd Moellmann  <gerd@gnu.org>
4905         * xterm.c (x_produce_glyphs): Don't convert multibyte characters
4906         to unibyte characters in unibyte buffers.
4908 2001-07-03  Gerd Moellmann  <gerd@gnu.org>
4910         * eval.c (specbind): If SYMBOL has a frame-local binding, record
4911         the frame on the binding stack.  Change format of entries for
4912         local bindings on the binding stack to '(SYMBOL . WHERE)'.
4913         (unbind_to): Handle unbinding a frame-local variable.
4915         * xdisp.c (compute_line_metrics): On ttys, subtract continuation
4916         glyphs and truncation glyphs at the end of a row from its pixel width.
4917         (dump_glyph_row): Print row's continuation_lines_width.
4918         (try_window_id): Take the shortcut if ZV is visible in the
4919         window, but there are actually no changes at ZV.
4921 2001-07-02  Gerd Moellmann  <gerd@gnu.org>
4923         * xterm.h (x_free_dpy_colors): Add prototype.
4925         * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
4926         right number of arguments.
4928         * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
4929         ($(lwlibdir)TAGS): New target.
4930         (TAGS): Fix dependency list.
4932         * xterm.c (x_list_fonts): Make sure XFreeFont is called
4933         with input blocked.
4935 2001-06-30  Gerd Moellmann  <gerd@gnu.org>
4937         * emacs.c (main): Remove extern declaration for sys_nerr, which
4938         isn't used and causes a compilation error with GCC 3.0 on
4939         FreeBSD 4.3.
4941 2001-06-27  Gerd Moellmann  <gerd@gnu.org>
4943         * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
4944         SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
4945         (toplevel): Include <signal.h> and syssignal.h.
4947         * sound.c (vox_configure, vox_close): Turn off atimers
4948         around ioctls.
4950 2001-06-26  Gerd Moellmann  <gerd@gnu.org>
4952         * keyboard.c (read_char) <non_reread>: Record the previous idle
4953         start time before calling timer_stop_idle.
4954         (read_char) <reread_first>: After processing a help-echo event,
4955         restore the previous idle start time.
4957         * xdisp.c (handle_invisible_prop): Deal with overlay strings at
4958         the start of invisible text.
4959         (setup_for_ellipsis): New function.
4960         (next_overlay_string): After all overlay strings have been
4961         processed, display an ellipsis if necessary.
4962         (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
4963         (push_it): Initialize display_ellipsis_p on the iterator's stack.
4965         * dispextern.h (struct iterator_stack_entry): Add member
4966         display_ellipsis_p.
4968 2001-06-25  Gerd Moellmann  <gerd@gnu.org>
4970         * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
4971         on the value of the wait-for-wm frame parameter.
4973         * xterm.h (struct x_output): Add member wait_for_wm.
4975         * xfns.c (Qwait_for_wm): New variable.
4976         (x_frame_parms): Add entry for `wait-for-wm".
4977         (x_set_wait_for_wm): New function.
4978         (Fx_create_frame): Call x_default_parameter for wait-for-wm.
4979         (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
4981         * xdisp.c (try_window_id) <all changes below window end>: Don't
4982         take this shortcut if ZV is visible in the window.
4983         (try_window_id): When checking for window start being in changed
4984         text, don't check that the buffer's size has changed.
4986 2001-06-23  Richard M. Stallman  <rms@gnu.org>
4988         * minibuf.c (Fcompleting_read): Doc fix.
4990 2001-06-19  Gerd Moellmann  <gerd@gnu.org>
4992         * composite.c (Ffind_composition_internal): Accept ZV
4993         and a string's end position as POS.
4995 2001-06-18  Gerd Moellmann  <gerd@gnu.org>
4997         * composite.c (Ffind_composition_internal): Check POS
4998         for validity.
5000 2001-06-15  Eli Zaretskii  <eliz@is.elta.co.il>
5002         * editfns.c (Fmessage_box): If the frame is not under a window
5003         system, output the message in the echo area.
5005 2001-06-14  Richard M. Stallman  <rms@gnu.org>
5007         * xdisp.c (try_window_id): When EOB is visible, don't treat
5008         insertion at EOB as if it were "off the bottom of the screen."
5010 2001-06-11  Andrew Innes  <andrewi@gnu.org>
5012         * w32proc.c (create_child): Add new parameter is_gui_app.
5013         (w32_executable_type): Add new parameter is_gui_app.
5014         (sys_spawnve): Use it.
5015         (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
5016         SIGQUIT.  This matches better how the signals are interpreted by
5017         MSVC compiled programs.
5018         (syms_of_ntproc): Update docstring.
5020 2001-06-02  Stefan Monnier  <monnier@cs.yale.edu>
5022         * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
5023         well otherwise note_mouse_highlight might optimize away highlighting
5024         if we pass over that same overlay again.
5026 2001-06-02  Eli Zaretskii  <eliz@is.elta.co.il>
5028         * lread.c (Fload): Document that the argument is run via
5029         substitute-in-file-name.
5031 2001-05-31  Gerd Moellmann  <gerd@gnu.org>
5033         * Makefile.in (bootstrap-doc): New target.
5034         (bootstrap-emacs): Depend on it.
5036         * fileio.c (Fdo_auto_save): Don't try to create the directory of
5037         auto-save-list-file-name when shutting down Emacs, because
5038         creating the directory might signal an error, and leaves
5039         Emacs in a strange state.
5041         * term.c: (tty_cursor_hidden): New variable.
5042         (update_begin): Don't call tty_hide_cursor.  Clean up.
5043         (update_end, set_terminal_window, set_scroll_region): Clean up.
5044         (ring_bell, reset_terminal_modes): Clean up.
5045         (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
5046         on tty_cursor_hidden.
5047         (write_glyphs): Call tty_hide_cursor.
5049 2001-05-30  Stefan Monnier  <monnier@cs.yale.edu>
5051         * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
5053 2001-05-30  Gerd Moellmann  <gerd@gnu.org>
5055         * xfns.c (enum image_value_type): New enumerator
5056         IMAGE_STRING_OR_NIL_VALUE.
5057         (parse_image_spec): Handle it.
5058         (xbm_format, pbm_format): Use it for :foreground and :background.
5059         (xbm_load, pbm_load): Check for nil color names.
5061         * xterm.c (note_mouse_highlight): If an overlapping overlay
5062         exists, but we find that we highlight the same overlay as before,
5063         don't do the highlighting again.
5065 2001-05-29  Gerd Moellmann  <gerd@gnu.org>
5067         * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
5068         Protect unibyte strings created by replacing their multibyte
5069         equivalents in menu_items.
5071         * keymap.c (Fsingle_key_description): NUL-terminate the string
5072         buffer before calling build_string.
5074         * callproc.c (Fcall_process): Deal with decode_coding returning
5075         CODING_FINISH_INCONSISTENT_EOL.
5077 2001-05-28  Gerd Moellmann  <gerd@gnu.org>
5079         * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
5080         an item's name with its key description in case the description
5081         is a multibyte string.
5083         * keymap.c (Fsingle_key_description): Create a multibyte string
5084         only if necessary.
5086         * macros.c (Fstart_kbd_macro): Doc fix.
5088         * xterm.c (cursor_in_mouse_face_p): New function.
5089         (x_draw_stretch_glyph_string): Use it to choose a different GC
5090         when drawing a cursor within highlighted text.
5092         * editfns.c (char_property_eq): Put in #if 0.
5094         * indent.c (string_display_width): Put in #if 0.
5096         * lread.c (Fload): Remove unused label.
5098         * termcap.c (speeds): Put in #if 0.
5100 2001-05-18  Gerd Moellmann  <gerd@gnu.org>
5102         * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
5104         * xfaces.c (xlfd_point_size): Don't divide pixel size from
5105         transformation matrix by 10.
5107 2001-05-16  Gerd Moellmann  <gerd@gnu.org>
5109         * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
5110         only if it's equal to the former foreground pixel color.
5111         (x_set_foreground_color, x_set_background_color)
5112         (x_set_mouse_color, x_set_cursor_color): Cleaned up.
5114 2001-05-16  Dave Love  <fx@gnu.org>
5116         * insdel.c (signal_before_change, signal_after_change): Consider a
5117         local change hook which changes the buffer.
5119         * process.c (read_process_output): Don't call signal_after_change
5120         and update_compositions after insert_from_string_before_markers.
5122 2001-05-16  Gerd Moellmann  <gerd@gnu.org>
5124         * xfaces.c (split_font_name): Use the right field when
5125         checking for `[...]' syntax.
5127         * buffer.c (copy_overlays): New function.
5128         (clone_per_buffer_values): Use it.
5130         * buffer.h (OVERLAY_PLIST): New macro.
5132         * keymap.c (Fsingle_key_description): Replace a build_string with
5133         a make_multibyte_string.  From Kenichi Handa <handa@etl.go.jp>.
5135         * fontset.c (Ffontset_info): Check that face is non-null
5136         before accessing its fields.
5138 2001-05-15  Gerd Moellmann  <gerd@gnu.org>
5140         * keyboard.c (read_key_sequence): Prevent generating a fake
5141         prefix key twice.
5143         * xfaces.c (split_font_name): Handle `[...]' for the right
5144         font name fields.
5146         * ccl.c (ccl_driver): Don't copy remaining bytes in case
5147         of CCL_STAT_INVALID_CMD.
5149 2001-05-14  Stefan Monnier  <monnier@cs.yale.edu>
5151         * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
5152         in <var> has no default value yet.
5154         * xfaces.c (try_alternative_families): First try the FAMILY.
5155         And if nothing is found in the end, try again with scalable fonts.
5156         (try_font_list): Let try_alternative_families do a bit more of
5157         the work.  Only use FAMILY if it is not nil.
5158         (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
5160 2001-05-14  Gerd Moellmann  <gerd@gnu.org>
5162         * xterm.c (note_mouse_highlight): Avoid changing the mouse
5163         pointer shape when show_mouse_face has already done it.
5165         * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
5166         full-width rows.
5168         * xfaces.c (split_font_name): Make sure to leave the loop
5169         with the right value of `i'.
5171         * xfaces.c (split_font_name): Handle matrix transformations
5172         in the pixel and point size fields of XLFD font names.
5173         (xlfd_point_size): Likewise.
5175 2001-05-12  Eli Zaretskii  <eliz@is.elta.co.il>
5177         * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
5178         (x_to_w32_font): Add prototype.
5180         * regex.c (malloc, realloc, free) [emacs]: Undefine before
5181         redefining, to avoid compiler warnings.
5183         * w32proc.c: Include syssignal.h, to avoid compiler warnings.
5185         * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
5186         (w32_get_bdf_glyph): Cast between unsigned char and char when
5187         passing arguments to subroutines, to shut up compiler warnings.
5188         (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
5189         GET_HEX_VAL.
5191         * xfaces.c: Include keyboard.h before frame.h, not after it.
5193         * widget.c: Include keyboard.h before frame.h.
5195         * w32term.h (struct image, struct face): Forward declaration, to
5196         avoid compiler warnings.
5198 2001-05-11  Gerd Moellmann  <gerd@gnu.org>
5200         * keyboard.c (read_key_sequence): Don't modify events when
5201         generating fake prefix keys (mode-line, scroll-bar, ...) since
5202         this prevents proper processing of such events when pushed back
5203         into unread-command-events.
5205         * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
5206         actually redrawn.  Make the function static.
5207         (note_mouse_highlight): Fix a case where the mouse cursor
5208         was changed back to the text cursor.
5210         * xterm.h (clear_mouse_face): Remove prototype.
5212         * xdisp.c (try_window_id): Fix the fix and set the right
5213         window_end_vpos.
5215         * xdisp.c (try_window_id): Fix computation of window end in the
5216         case that lines were deleted at the end of the window.  Add some
5217         more debug_method_adds.
5219         * xfaces.c (try_alternative_families): New function.
5220         (try_font_list): Use it.  If ATTRS specifies a family, check
5221         fonts from that family first.
5222         (choose_face_font): Remove code setting the family part of
5223         the pattern to nil.
5225 2001-05-10  Gerd Moellmann  <gerd@gnu.org>
5227         * xdisp.c (try_window_id): Fix case of all changes before
5228         the window start.
5230         * xdisp.c (try_window_id): Add some xasserts.
5232 2001-05-09  Gerd Moellmann  <gerd@gnu.org>
5234         * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
5236 2001-05-09  Dave Love  <fx@gnu.org>
5238         * xdisp.c (GIVE_UP): Fix for K&R C.
5240 2001-05-09  Gerd Moellmann  <gerd@gnu.org>
5242         * print.c (syms_of_print) <print-length, print-level>: Doc fix.
5244         * xterm.c (note_mouse_highlight): Don't change the mouse cursor
5245         back to the text cursor shape without need.
5247 2001-05-07  Gerd Moellmann  <gerd@gnu.org>
5249         * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
5251         * dispextern.h (inverse_video): Declare extern.
5253         * keyboard.c (delete_kboard): Handle the case that selected_frame
5254         has been deleted in the course of x_connection_closed.
5256 2001-05-03  Eli Zaretskii  <eliz@is.elta.co.il>
5258         * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
5259         Fix the change from 2001-04-30.
5261 2001-05-03  Gerd Moellmann  <gerd@gnu.org>
5263         * xfns.c (file_dialog_unmap_cb): New function.
5264         (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
5265         where a dialog is closed via the window manager.
5267         * xdisp.c (try_window_id): Cases of changes all in front of
5268         the window start or all below the window end mostly rewritten.
5269         (redisplay_window): Move the tests if try_window_id is
5270         applicable to try_window_id.
5271         (GIVE_UP): New macro.
5273 2001-05-02  Gerd Moellmann  <gerd@gnu.org>
5275         * xterm.c (expose_window): Return int.  If W is the window
5276         currently being updated, mark the frame garbaged.
5277         Fix computation of rows intersecting the exposed rectangle.
5278         (expose_window_tree): Stop when expose_window returns 0.
5280         * xterm.c (x_draw_stretch_glyph_string): Don't draw background
5281         again if it has already been drawn.
5283 2001-05-01  Stefan Monnier  <monnier@cs.yale.edu>
5285         * syntax.c (update_syntax_table): Check that oldi has the same
5286         properties as old_prop before deciding not to invalidate.
5288 2001-04-30  Gerd Moellmann  <gerd@gnu.org>
5290         * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
5291         read-only text that is so because of text properties.
5293         * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
5294         (XTread_socket) <Expose> [USE_LUCID]: Handle events for
5295         windows that are components of a Lucid menu bar.
5297 2001-04-27  Gerd Moellmann  <gerd@gnu.org>
5299         * term.c (turn_on_face): Fix reverse video handling on terminals
5300         that don't support colors.
5302 2001-04-26  Gerd Moellmann  <gerd@gnu.org>
5304         * editfns.c (save_excursion_restore): Don't use XBUFFER on
5305         a non-buffer.
5307 2001-04-25  Gerd Moellmann  <gerd@gnu.org>
5309         * term.c (toggle_highlight): New function.
5310         (turn_on_face): Change handling of reverse video.
5312         * process.c (wait_reading_process_input):
5313         Call record_asynch_buffer_change only if a timer really changed buffers.
5315         * buffer.c (mouse_face_overlay_overlaps): Fix the computation
5316         of the number of overlays to check.
5318         * keyboard.c (command_loop_1): Redo change of 2001-03-12.
5320         * xdisp.c (try_window_id): Fix a case where window_end_pos
5321         and window_end_bytepos were not adjusted.
5323 2001-04-23  Gerd Moellmann  <gerd@gnu.org>
5325         * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
5326         zero instead of -1.
5328 2001-04-21  Eli Zaretskii  <eliz@is.elta.co.il>
5330         * process.c (wait_reading_process_input) [!subprocesses]:
5331         Don't reference waiting_for_user_input_p, it's not defined in the
5332         branch without async subprocesses support.
5334 2001-04-19  Gerd Moellmann  <gerd@gnu.org>
5336         * keyboard.c (delete_kboard): Prevent a dangling reference
5337         from current_kboard to KB, which is freed.
5339         * process.c (wait_reading_process_input):
5340         Call record_asynch_buffer_change after running timers, to make
5341         read_key_sequence aware of buffer changes from under it.
5343 2001-04-18  Gerd Moellmann  <gerd@gnu.org>
5345         * xfaces.c (Qscalable_fonts_allowed): New variable.
5346         (realizing_basic_faces_p): Removed.
5347         (x_face_list_fonts): Special handling for realizing_basic_faces_p
5348         removed.
5349         (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
5350         (syms_of_xfaces): Initialize Qscalable_fonts_allowed.  Change default
5351         for scalable-fonts-allowed to t.
5353         * fileio.c (Finsert_file_contents): If the file size returned from
5354         stat is zero, set END to READ_BUF_SIZE.  This makes sure we can
5355         read from files on a procfs whose contents are generated dynamically.
5357 2001-04-18  Eli Zaretskii  <eliz@is.elta.co.il>
5359         * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
5360         defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
5361         (__memalign_hook): Make the two prototypes consistent.
5363 2001-04-17  Gerd Moellmann  <gerd@gnu.org>
5365         * xdisp.c (redisplay_window): Make sure to clear the desired glyph
5366         matrix of mini-windows.
5368 2001-04-12  Stefan Monnier  <monnier@cs.yale.edu>
5370         * intervals.c (find_interval): Don't rebalance during signal handling.
5372 2001-04-11  Gerd Moellmann  <gerd@gnu.org>
5374         * fns.c: Include blockinput.h.
5376         * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
5378 2001-04-10  Gerd Moellmann  <gerd@gnu.org>
5380         * fns.c (Fcompare_strings): Fix return values.
5382         * window.c (window_scroll): Change the meaning of N to mean
5383         N screen-fulls or N lines.
5384         (window_scroll_pixel_based, window_scroll_line_based)
5385         (scroll_command, Fscroll_other_window): Change accordingly.
5387         * window.c (window_scroll_pixel_based, Frecenter):
5388         Call window_box_height instead of using it.last_visible_y for the
5389         height of the window.
5391         * xdisp.c (redisplay_window) <recenter>: Call window_box_height
5392         instead of using it.last_visible_y for the height of the window.
5394         * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
5395         From Dan Holmsand <dan@eyebee.com>.
5397         * w32.c (sys_open): Try to open file without _O_CREAT first, to be
5398         able to write to hidden and system files.  From Dan Holmsand
5399         <dan@eyebee.com>.
5401         * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile.  From Dan
5402         Holmsand <dan@eyebee.com>.
5404 2001-04-09  Gerd Moellmann  <gerd@gnu.org>
5406         * fns.c (Fplist_get, Fplist_put): Add QUITs.
5408         * window.c (window_internal_height): Return 1 less if the
5409         window has a header line.
5411         * xdisp.c (try_window_id): When scrolling on a terminal, take
5412         the change of window_internal_height into account.
5414 2001-04-09  Eli Zaretskii  <eliz@is.elta.co.il>
5416         * gmalloc.c (align): If the argument SIZE would overflow
5417         __malloc_ptrdiff_t, fail right away.
5419 2001-04-06  Gerd Moellmann  <gerd@gnu.org>
5421         * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
5422         Make sure the tooltip is completely visible.
5423         (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
5425         * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
5427         * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
5429 2001-04-06  Dave Love  <fx@gnu.org>
5431         * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
5432         Fix test of `from'.
5434 2001-04-06  Gerd Moellmann  <gerd@gnu.org>
5436         * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
5438         * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
5440 2001-04-05  Gerd Moellmann  <gerd@gnu.org>
5442         * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
5444         * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
5446         * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
5447         (syms_of_xfns): DEFVAR_LISP it.  Initialize from XmVERSION_STRING.
5449         * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
5450         shell widget's position only if it is non-null.
5452         * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
5453         Set f->output_data.x->widget to null after destroying it.
5455         * fns.c (Frequire): Doc fix.  Rename parameter FILE_NAME to
5456         FILENAME to bring it in synch with the documentation.
5458         * xfaces.c (realizing_basic_faces_p): Renamed from
5459         realize_default_face_p.
5460         (realize_basic_faces): Set/clear realizing_basic_faces_p.
5461         (realize_default_face): Don't set the flag.
5463 2001-04-04  Gerd Moellmann  <gerd@gnu.org>
5465         * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
5467         * keyboard.c (echoing, echo_message_buffer): Make externally visible.
5469         * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
5470         the buffer that was used for echoing.
5472         * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
5473         (first_font_matching): Removed unused function.
5474         (x_face_list_fonts): Remove unused parameter SCALABLE_P.
5475         (may_use_scalable_font_p): Remove parameter FONT; rename
5476         parameter NAME to FONT.
5477         (x_face_list_fonts): Fix missing bounds check.
5478         (realizing_default_face_p): New variable.
5479         (realize_default_face): Set and clear that flag.
5480         (x_face_list_fonts): When called during the realization of the
5481         default face, and no matching fonts are found when ignoring
5482         scalable fonts and fonts matching a regexp from
5483         face-ignored-fonts, try without ignoring fonts.
5485 2001-04-03  Gerd Moellmann  <gerd@gnu.org>
5487         * xfns.c (postprocess_image): New function.
5488         (lookup_image): Call it for all image types except PostScript.
5489         (x_kill_gs_process): Call postprocess_image.
5491         * xterm.c (x_use_underline_position_properties): New variable.
5492         (x_draw_glyph_string): Use it.
5493         (syms_of_xterm): DEFVAR_BOOL it.
5495 2001-04-02  Gerd Moellmann  <gerd@gnu.org>
5497         * xterm.c (x_alloc_nearest_color_1): New function.
5498         (x_alloc_nearest_color): Use it.
5499         (x_color_cells): Take a Display as argument, instead of a frame.
5500         (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
5501         (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
5502         (x_initialize): Register cvt_string_to_pixel as resource converter
5503         string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
5505 2001-03-30  Gerd Moellmann  <gerd@gnu.org>
5507         * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
5508         (set_iterator_to_next): If a string from a display property ends,
5509         consider the case that this might also be the end of an
5510         overlay string having the display property.
5512         * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
5514         * xdisp.c (reseat_to_string): Undo last change.
5516         * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
5517         matrix of a window when the header line changes, when
5518         new rows are allocated, or when the width changes.
5520 2001-03-30  Eli Zaretskii  <eliz@is.elta.co.il>
5522         * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
5524 2001-03-29  Eli Zaretskii  <eliz@is.elta.co.il>
5526         * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
5527         deprecated.
5529 2001-03-29  Gerd Moellmann  <gerd@gnu.org>
5531         * data.c (Fsubr_interactive_form): New function.
5532         (syms_of_data): Defsubr it.
5534         * alloc.c (live_string_p, live_cons_p, live_symbol_p)
5535         (live_float_p, live_misc_p): Return 1 only if the offset of the
5536         pointer in its block is >= 0.
5538 2001-03-28  Paul Eggert <eggert@twinsun.com>
5540         * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
5541         microseconds calcuation.  Avoid double-rounding problem.
5542         In doc string, warn that the result is approximate.
5544 2001-03-28  Gerd Moellmann  <gerd@gnu.org>
5546         * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
5547         bind `inhibit-eval-during-redisplay' to t.
5549         * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
5551         * xdisp.c (inhibit_eval_during_redisplay)
5552         (Qinhibit_eval_during_redisplay): New variables.
5553         (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
5554         don't eval, return nil instead.
5555         (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
5556         Initialize Qinhibit_eval_during_redisplay.
5558         * xdisp.c (reseat_to_string): If STRING is multibyte, set
5559         the iterator's multibyte_p flag.
5561         * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
5562         instead of setting it to zero; it's incremented for each frame
5563         where the menu face is changed.
5565         * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
5566         change bottom shadow accordingly.
5568         * xterm.c (expose_window_tree, expose_frame): Don't compute
5569         intersections here.
5570         (expose_window): Do it here instead.
5571         (x_draw_glyph_string): Fix a computation of the underline position.
5573         * bytecode.c (BYTE_CODE_QUIT): New macro.
5574         (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
5576 2001-03-27  Gerd Moellmann  <gerd@gnu.org>
5578         * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
5579         Give up if matrix starts in an ellipsis.
5580         (init_from_display_pos): Do nothing if POS doesn't specify
5581         a dpvec_index but the iterator has such a position.
5583         * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
5585         * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
5586         x/y position is (0, 0) after destroying the menu bar, restore
5587         its original position.
5589         * xdisp.c (in_ellipses_for_invisible_text_p): New function.
5590         (init_from_display_pos): Use it.
5591         (try_window_reusing_current_matrix): Don't use cursor_row_p.
5593 2001-03-26  Gerd Moellmann  <gerd@gnu.org>
5595         * xdisp.c (try_window_id): Undo last change.
5597 2001-03-26  Eli Zaretskii  <eliz@is.elta.co.il>
5599         * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
5601         * buffer.c (syms_of_buffer): Doc fix.
5603 2001-03-26  Gerd Moellmann  <gerd@gnu.org>
5605         * xfaces.c (x_update_menu_appearance): Use local variable
5606         popup_path for setting font resources.
5608 2001-03-25  Eli Zaretskii  <eliz@is.elta.co.il>
5610         * frame.c (Fframe_list): Don't reference tip_frame if
5611         HAVE_WINDOW_SYSTEM is not defined.
5613         * emacs.c (main): Update the copyright year.  From Werner LEMBERG
5614         <wl@gnu.org>.
5616 2001-03-25  Gerd Moellmann  <gerd@gnu.org>
5618         * xdisp.c (init_from_display_pos): Test invisible property
5619         with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
5621         * xdisp.c (redisplay_internal) <update one window>: Make sure
5622         last_arrow_position and last_arrow_string are set.
5624         * frame.c (Fframe_list): Don't return a tooltip frame.
5626 2001-03-23  Gerd Moellmann  <gerd@gnu.org>
5628         * xdisp.c (mark_window_display_accurate_1): New function,
5629         extracted from mark_window_display_accurate.
5630         Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
5631         BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
5632         (mark_window_display_accurate): Use it.
5633         (redisplay_internal): Use it for the selected window.
5634         (redisplay_internal): Avoid duplicate mark_window_display_accurate
5635         for the selected frame.
5637         * xdisp.c  Use make_number, for readability.
5638         (try_window_id): Disable rows below the window end.
5639         (try_window_reusing_current_matrix): Use cursor_row_p.
5640         (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
5641         of rows.
5642         (init_from_display_pos): If POS specifies a position in a display
5643         vector, maybe get the iterator set up for that ellipsis.
5645         * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
5647 2001-03-23  Eli Zaretskii  <eliz@is.elta.co.il>
5649         * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
5651 2001-03-23  Gerd Moellmann  <gerd@gnu.org>
5653         * xfaces.c (x_update_menu_appearance): Use a different path
5654         for Lucid popup menus.
5656 2001-03-22  Stefan Monnier  <monnier@cs.yale.edu>
5658         * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
5660         * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
5661         (string_buffer_position): Use `make_number'.
5663 2001-03-22  Gerd Moellmann  <gerd@gnu.org>
5665         * xfaces.c (x_update_menu_appearance): Renamed from
5666         x_set_menu_face_resources.  Use different resources for popups.
5668         * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
5669         (GC_CHECK_STRING_BYTES): Don't define.
5671         * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
5672         Removed, together with subroutines.
5673         (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
5674         (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
5676         * dispextern.h (x_set_menu_resources_from_menu_face):
5677         Remove prototype.
5679         * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
5680         Remove calls to x_set_menu_resources_from_menu_face.
5682         * xfaces.c (xm_set_menu_resources_from_menu_face):
5683         Remove #ifndef LESSTIF_VERSION.
5685         * xmenu.c: Include widget.h.
5686         (single_submenu): Return int.  Some cleanup.
5687         (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
5689 2001-03-21  Gerd Moellmann  <gerd@gnu.org>
5691         * xterm.c (x_update_window_end): Handle overwritten mouse face
5692         also for tool bar windows.
5693         (show_mouse_face): Set the glyph row's mouse_face_p flag also when
5694         DRAW is DRAW_IMAGE_RAISED.
5696 2001-03-20  Gerd Moellmann  <gerd@gnu.org>
5698         * print.c (syms_of_print): Doc fixes.
5700         * fns.c (Fmd5): Doc fix.
5702 2001-03-19  Gerd Moellmann  <gerd@gnu.org>
5704         * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5705         Clear area of the frame not occupied by the scroll bar.
5707         * xfns.c (x_create_tip_frame): Add parameter TEXT.  Set the
5708         tip frame's root window buffer to *tip* right after creating
5709         the frame.
5711         * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
5712         is an integer don't have to be for space characters.
5714 2001-03-16  Gerd Moellmann  <gerd@gnu.org>
5716         * indent.c (current_column, current_column_1, Fmove_to_column)
5717         (compute_motion): Handle characters from display vectors differently.
5719 2001-03-15  Kenichi Handa  <handa@etl.go.jp>
5721         * xterm.c (x_draw_glyph_string): Draw relief (if any) before
5722         drawing glyph string.
5724 2001-03-15  Gerd Moellmann  <gerd@gnu.org>
5726         * keyboard.c (timer_check): Preserve the value of deactivate-mark.
5727         (command_loop_1): Undo last change.
5729         * xterm.c (fast_find_position): Return the correct vpos.
5731         * data.c (store_symval_forwarding): Add parameter BUF.  If BUF is
5732         non-null, set a per-buffer value in BUF instead of the current buffer.
5733         (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
5734         Call store_symval_forwarding with BUF null.
5735         (set_internal): Call store_symval_forwarding with the BUF
5736         parameter passed to set_internal.  Formerly, the value was always
5737         set in the current buffer; the buffer recorded in specbind for
5738         this case wasn't used.
5739         (arith_driver): Reindent.
5741         * buffer.c (swap_out_buffer_local_variables):
5742         Call store_symval_forwarding with BUF null.
5744         * lisp.h (store_symval_forwarding): Change prototype.
5746         * eval.c (specbind): Call store_symval_forwarding with BUF null.
5748 2001-03-14  Gerd Moellmann  <gerd@gnu.org>
5750         * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
5751         FOR_DELETION.  Avoid resizing the mini-window of the selected
5752         frame if FOR_DELETION is set.
5753         (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
5754         (Fmake_frame_invisible): Change calls to do_switch_frame for new
5755         signature.
5757         * window.c (Fset_window_configuration): Change call to
5758         do_switch_frame to new format.
5760         * keyboard.c (quit_throw_to_read_char): Change call to
5761         do_switch_frame to new format.
5763         * lisp.h (do_switch_frame): Change prototype.
5765         * frame.c (Fframe_parameters): In the `buffer-list' frame
5766         parameter, store the buffer list of FRAME, not the list of the
5767         selected frame.
5769         * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
5770         box just because the glyph row's full_width_p flag is set.
5772 2001-03-14  Eli Zaretskii  <eliz@is.elta.co.il>
5774         * xdisp.c (highlight_trailing_whitespace): On character terminals,
5775         skip the padding blanks inserted in extend_face_to_end_of_line,
5776         before checking for trailing whitespace.
5778 2001-03-13  Gerd Moellmann  <gerd@gnu.org>
5780         * xmenu.c (popup_activate_callback, popup_deactivate_callback):
5781         Remove special handling for LessTif/Motif.
5782         (toplevel): Don't include Xm/Xm.h.
5784         * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
5785         Remove workaround code for LessTif; it doesn't work anymore.
5787         * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
5788         Xm/ScrollBarP.h.
5790         * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
5791         Don't access private scroll bar data; it's no longer necessary with
5792         contemporary LessTif.
5794         * xfaces.c (xm_set_menu_resources_from_menu_face):
5795         Change #if 0 to #ifndef LESSTIF_VERSION.
5797         * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
5798         removing button grabs.
5800 2001-03-13  Kenichi Handa  <handa@etl.go.jp>
5802         * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
5803         and clip-large-size-font as obsolete.
5805         * lread.c (read_multibyte): Check the validity of multibyte
5806         sequence.  If invalid, return the first byte.
5808 2001-03-12  Gerd Moellmann  <gerd@gnu.org>
5810         * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
5811         before running the command; timer functions or process
5812         filters may have set it.
5814 2001-03-12  Eli Zaretskii  <eliz@is.elta.co.il>
5816         * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5817         Doc fix.
5819 2001-03-12  Gerd Moellmann  <gerd@gnu.org>
5821         * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
5822         to sprintf.
5824 2001-03-09  Gerd Moellmann  <gerd@gnu.org>
5826         * dispextern.h (string_buffer_position): Add prototype.
5828         * xdisp.c (string_buffer_position, display_prop_string_p)
5829         (single_display_prop_string_p): New functions.
5831         * xterm.c (note_mouse_highlight): If there's no help-echo on
5832         a string, look at the buffer text ``under'' it.
5834         * keyboard.c (make_lispy_event): Add string info to the event,
5835         analogous to what's done on mode lines.
5836         (read_key_sequence): For a click on a string, consider `local-map'
5837         and `keymap' of that string.
5839         * keyboard.c (make_lispy_event, make_lispy_movement):
5840         Adjust calls to buffer_posn_from_coords to new format.
5842         * dispextern.h (buffer_posn_from_coords): Adjust prototype.
5844         * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
5845         POS; return void.
5847         * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
5848         flags argument to emacs_open; it seems to conflict with O_EXCL.
5850 2001-03-09  Kenichi Handa  <handa@etl.go.jp>
5852         * composite.h (struct composition): Change types of members;
5853         glyph_len to unsigned, width to unsigned short.
5855 2001-03-08  Andrew Innes  <andrewi@gnu.org>
5857         * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
5858         menu titles.
5860 2001-03-08  Gerd Moellmann  <gerd@gnu.org>
5862         * xdisp.c (handle_display_prop): Use it->w->buffer as object,
5863         instead of nil.
5865         * xterm.c (note_mouse_highlight): Handle mouse-face and
5866         help-echo in strings.
5867         (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5868         (fast_find_string_pos): New function.
5870         * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
5871         (display_string): Call face_at_string_position with new parameter.
5873         * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
5874         Handle `mouse-face'.
5876         * dispextern.h (face_at_string_position): Change prototype.
5878         * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
5880         * keyboard.c (make_lispy_event): Avoid generating drag events
5881         if the mouse hasn't actually moved to another buffer position.
5883 2001-03-08  Dave Love  <fx@gnu.org>
5885         * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
5887 2001-03-08  Gerd Moellmann  <gerd@gnu.org>
5889         * process.c (Fset_process_window_size): Fix a typo.
5891 2001-03-08  Kenichi Handa  <handa@etl.go.jp>
5893         * coding.c (detect_coding_sjis): Do more rigid check.
5894         (detect_coding_big5): Likewise.
5895         (decode_coding_sjis_big5): Likewise.
5896         (Fdetect_coding_region): Call detect_coding_system with tailing
5897         anchor byte `\0' for more rigid detection.
5898         (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
5899         (Fdetect_coding_string): Likewise.
5901 2001-03-07  Stefan Monnier  <monnier@cs.yale.edu>
5903         * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
5904         a string before extracting its data.
5906 2001-03-07  Gerd Moellmann  <gerd@gnu.org>
5908         * window.c (Frecenter): Rewrite code handling negative values
5909         of ARG on graphical frames.
5911 2001-03-07  Eli Zaretskii  <a34785@is.elta.co.il>
5913         * window.c (displayed_window_lines): If W->start is outside the
5914         accessible portion of the buffer, call start_display with BEGV or
5915         ZV instead of W->start.
5917 2001-03-07  Gerd Moellmann  <gerd@gnu.org>
5919         * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
5921         * process.c (Fset_process_filter): Don't crash if the input
5922         file descriptor of PROCESS is closed.
5923         (Fset_process_window_size): Likewise.
5925 2001-03-06  Kenichi Handa  <handa@etl.go.jp>
5927         * xterm.c (XTflash): Make the timeout of select shorter, and call
5928         select repeatedly until the desired time expires.
5930 2001-03-06  Gerd Moellmann  <gerd@gnu.org>
5932         * w32fns.c (Fx_create_frame): Clear Vwindow_list.
5934         * xfns.c (Fx_create_frame): Clear Vwindow_list.
5936         * lisp.h (Vwindow_list): Declare extern.
5938 2001-03-06  Eli Zaretskii  <eliz@is.elta.co.il>
5940         * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
5942 2001-03-06  Gerd Moellmann  <gerd@gnu.org>
5944         * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
5945         to detect a case where we have to highlight a different region
5946         despite not having left the currently highlighted region.
5947         Set mouse_face_overlay in the x_display_info.
5948         (x_term_init): Initialize the x_display_info's mouse_face_overlay.
5950         * xterm.h (struct x_display_info): Add mouse_face_overlay.
5952         * buffer.c (mouse_face_overlay_overlaps): New function.
5954         * lisp.h (mouse_face_overlay_overlaps): Add prototype.
5955         (Qmouse_face): Declare extern.
5957         * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
5958         if face_change_count is non-zero.
5960 2001-03-06  Kenichi Handa  <handa@etl.go.jp>
5962         * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
5963         that the source is unibyte.
5965 2001-03-05  Dave Love  <fx@gnu.org>
5967         * xterm.c (XTmouse_position): Fix typo.
5969 2001-03-05  Gerd Moellmann  <gerd@gnu.org>
5971         * minibuf.c (read_minibuf): Clean up the binding stack if
5972         called noninteractively.
5974 2001-03-05  Kenichi Handa  <handa@etl.go.jp>
5976         * coding.c (syms_of_coding): Docstring modified.
5978 2001-03-05  Kenichi Handa  <handa@etl.go.jp>
5980         * charset.c (char_to_string): If a single byte char has modifier
5981         bits that can't be reflected to the character code, ignore them
5982         instead of signaling an error.
5984 2001-03-04  Eli Zaretskii  <eliz@is.elta.co.il>
5986         * s/msdos.h: Update copyright notice.
5988         * dosfns.h: Update copyright notice.
5990         * dosfns.c: Update copyright notice.
5992         * msdos.c: Update copyright notice.
5994 2001-03-02  Gerd Moellmann  <gerd@gnu.org>
5996         * xterm.c (glyph_rect): New function.
5997         (XTmouse_position): Use it to raise the threshold for mouse
5998         movement event generation.
6000 2001-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
6002         * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
6003         specifies (reverse . t), reverse the initial screen colors.
6004         (IT_set_frame_parameters): If the property is foreground-color,
6005         but we are reversing the colors, set bg_set, not fg_set.
6006         Likewise for setting background-color and reversing: set fg_set.
6007         Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
6008         in effect.
6010         * xfaces.c (Finternal_set_lisp_face_attribute)
6011         [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
6012         parameters alist.
6014 2001-03-02  Gerd Moellmann  <gerd@gnu.org>
6016         * fileio.c (Fexpand_file_name): Collapse sequences of slashes
6017         to a single slash in the middle of file names.
6019         * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
6020         Accept only alphanumeric time zone names.
6022         * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
6023         or width area.
6024         (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
6025         a widget to zero height.
6027 2001-03-01  Gerd Moellmann  <gerd@gnu.org>
6029         * window.c (Fwindow_end): Call move_it_past_eol only if
6030         ending up on a partially visible line.
6032 2001-03-01  Dave Love  <fx@gnu.org>
6034         * ccl.c (Fccl_execute): Doc fix.
6036 2001-03-01  Gerd Moellmann  <gerd@gnu.org>
6038         * xfns.c (Fx_create_frame): Adjust the frame's height for presence
6039         of the tool bar before calling x_figure_window_size.
6041         * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
6042         NULL after destroying it, otherwise XTread_socket can access a
6043         destroyed widget when input is unblocked.
6045         * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
6047         * xfns.c (x_set_font): Handle case of x_new_fontset returning the
6048         same name as before, although there was a change in fontsets.
6050 2001-02-28  Ken Raeburn  <raeburn@gnu.org>
6052         * lisp.h (Fframe_parameter): Declare.
6054         * window.c (set_window_buffer): Field vscroll is an int, not a
6055         Lisp_Object.
6057 2001-02-28  Gerd Moellmann  <gerd@gnu.org>
6059         * xterm.c (x_set_window_size): Don't use `None' with widgets; use
6060         NULL instead.
6062         * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
6063         NULL instead.
6065         * alloc.c (toplevel): Include process.h.
6066         (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
6067         MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
6068         (allocate_vectorlike): Make it a static function.  Add parameter TYPE.
6069         (allocate_vector, allocate_hash_table, allocate_window)
6070         (allocate_frame, allocate_process, allocate_other_vector):
6071         New functions.
6072         (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
6073         (mark_maybe_pointer): New function.
6074         (mark_memory): Also mark Lisp data to which only pointers
6075         remain and not Lisp_Objects.
6076         (min_heap_address, max_heap_address): New variables.
6077         (mem_find): Return MEM_NIL if START is below min_heap_address or
6078         above max_heap_address.
6079         (mem_insert): Compute min_heap_address and max_heap_address.
6081         * process.c (make_process): Use allocate_process.
6083         * frame.c (make_frame): Use allocate_frame.
6085         * window.c (make_window, make_dummy_parent): Use allocate_window.
6086         (Fcurrent_window_configuration): Use allocate_other_vector.
6088         * lisp.h (allocate_vectorlike): Remove prototype.
6089         (allocate_vector, allocate_other_vector, allocate_frame)
6090         (allocate_window, allocate_process, allocate_hash_table):
6091         Add prototypes.
6093         * fns.c (Fdelete, larger_vector): Use allocate_vector.
6094         (make_hash_table, copy_hash_table): Use allocate_hash_table.
6096 2001-02-27  Kenichi Handa  <handa@etl.go.jp>
6098         * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
6099         treat the produced bytes as a valid multibyte sequence.
6101         * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
6102         (ccl_driver) <CCL_WriteMultibyteChar2>:
6103         Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
6104         <ccl_finish>: Set ccl->eight_bit_control properly.
6106         * ccl.h (struct ccl_program): New member eight_bit_control.
6108 2001-02-26  Stefan Monnier  <monnier@cs.yale.edu>
6110         * keymap.c (Faccessible_keymaps): Pass `is_metized' to
6111         accessible_keymaps_char_table.
6112         (accessible_keymaps_char_table): Obey `is_metized'.
6113         (where_is_internal, Fwhere_is_internal): Don't confuse int and
6114         Lisp_Object.
6116 2001-02-26  Gerd Moellmann  <gerd@gnu.org>
6118         * dispnew.c: Check HAVE_TERM_H before including term.h.
6120 2001-02-24  Andrew Innes  <andrewi@gnu.org>
6122         * makefile.w32-in: Update copyright notice.
6124 2001-02-24  Stefan Monnier  <monnier@cs.yale.edu>
6126         * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
6128 2001-02-24  Kenichi Handa  <handa@etl.go.jp>
6130         * Makefile.in (lisp): Add international/utf-8.elc.
6132         * fontset.c (Fnew_fontset): Fix handling of the case that an
6133         element of FONTLIST is a cons of family and registry.
6135 2001-02-23  Jason Rumney  <jasonr@gnu.org>
6137         * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
6138         to height unconditionally.
6140         * w32term.c (x_set_glyph_string_background_width): Extend the
6141         background face to the end of the drawing area in the text area, only.
6142         (x_insert_glyphs): Call window_box_left to obtain the left
6143         x-coordinate of the area to shift.
6145         * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
6146         safe_run_hooks.
6148 2001-02-22  Andrew Innes  <andrewi@gnu.org>
6150         * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
6151         ($(BLD)\dispnew.obj):
6152         ($(BLD)\editfns.obj):
6153         ($(BLD)\fileio.obj):
6154         ($(BLD)\filelock.obj):
6155         ($(BLD)\keyboard.obj):
6156         ($(BLD)\w32proc.obj):
6157         ($(BLD)\process.obj):
6158         ($(BLD)\sysdep.obj): Ditto.
6160         * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
6161         header files.
6162         ($(BLD)/dispnew.$(O)):
6163         ($(BLD)/editfns.$(O)):
6164         ($(BLD)/fileio.$(O)):
6165         ($(BLD)/filelock.$(O)):
6166         ($(BLD)/keyboard.$(O)):
6167         ($(BLD)/w32proc.$(O)):
6168         ($(BLD)/process.$(O)):
6169         ($(BLD)/sysdep.$(O)): Ditto.
6171 2001-02-22  Gerd Moellmann  <gerd@gnu.org>
6173         * xdisp.c (forward_to_next_line_start): When taking the shortcut
6174         at the start of the function, check that the \n in it->c is
6175         from the iterator's current position.
6177         * xdisp.c (handle_single_display_prop): Add parameter
6178         DISPLAY_REPLACED_BEFORE_P.  If it is non-zero ignore display
6179         properties which replace the display of text with something else.
6180         (handle_display_prop): Call handle_single_display_prop with
6181         additional argument saying if we already replaced text display
6182         with something else.  Use AREF.
6183         (with_echo_area_buffer_unwind_data, display_menu_bar)
6184         (decode_mode_spec_coding): Use AREF and ASIZE.
6186         * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
6187         * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
6188         * vmstime.h: Files removed.
6190         * unexencap.c, unexfx2800.c: Files removed.
6192         * dispnew.c (direct_output_for_insert): Give up if we are showing
6193         a message or just cleared the message because we might need to
6194         resize the echo area window or display an empty echo area.
6196 2001-02-21  Gerd Moellmann  <gerd@gnu.org>
6198         * xdisp.c (redisplay_internal): Do the
6199         mark_window_display_accurate after all windows have been
6200         redisplayed because this call resets flags in buffers which are
6201         needed for proper redisplay.
6203         * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
6204         Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
6205         the old names.
6207         * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
6208         busy_window to hourglass_window, busy_p to hourglass_p.
6210         * msdos.h (struct x_output): Rename busy_window to
6211         hourglass_window, busy_p to hourglass_p.
6213         * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
6214         busy_window to hourglass_window, busy_p to hourglass_p.
6216         * xfns.c: Rename everything containing *busy_cursor* and similar
6217         to *hourglass*.
6218         (syms_of_w32fns): Rename x-busy-pointer-shape to
6219         x-hourglass-pointer-shape, display-busy-cursor to
6220         display-hourglass, busy-cursor-delay to hourglass-delay.
6222         * w32fns.c: Rename everything containing *busy_cursor* and similar
6223         to *hourglass*.
6224         (syms_of_w32fns): Rename x-busy-pointer-shape to
6225         x-hourglass-pointer-shape, display-busy-cursor to
6226         display-hourglass, busy-cursor-delay to hourglass-delay.
6228         * xterm.c (XTread_socket): Test x_output's hourglass_p instead
6229         of its busy_p flag.
6231         * dispextern.h (start_hourglass, cancel_hourglass)
6232         (display_hourglass_p): Renamed from *busy_cursor*.
6234 2001-02-20  Gerd Moellmann  <gerd@gnu.org>
6236         * keyboard.c (read_char): When an event from unread-command-events
6237         is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
6239         * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
6240         equal to the current buffer.
6242         * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
6243         nil, otherwise we're left with truncate_lines t when a message
6244         is printed with message-truncate-lines bound to t.
6246 2001-02-19  Gerd Moellmann  <gerd@gnu.org>
6248         * window.c (Fmove_to_window_line): Undo last change.
6249         (displayed_window_lines): Call line_bottom_y to determine
6250         the line's bottom position.
6252         * dispextern.h (line_bottom_y): Add prototype.
6254         * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
6255         (pos_visible_p): Use it.
6257         * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
6258         set redisplaying_p to 0 here instead of in Frecursive_edit.
6259         (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
6260         set redisplaying_p.
6262         * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
6263         New variables.
6264         (syms_of_xdisp): Initialize new variables.
6265         (update_menu_bar): Do nothing if inhibit_menubar_update is set.
6266         Specbind `inhibit-menubar-update' when updating the menu bar.
6268         * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
6269         safe_run_hooks.
6271         * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
6272         safe_run_hooks.
6274         * emacs.c (malloc_initialize_hook): Handle case thet `environ'
6275         is null.
6277         * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
6278         to the start of the file.
6280 2001-02-16  Gerd Moellmann  <gerd@gnu.org>
6282         * window.c (set_window_buffer): Fix last change.
6284         * window.c (set_window_buffer): Set window's vscroll to 0.
6286         * window.c (coordinates_in_window): Increase width of area
6287         where the vertical line can be dragged.
6289         * xterm.c (x_set_glyph_string_background_width): Extend the
6290         background face to the end of the drawing area in the text
6291         area, only.
6293         * xdisp.c (handle_single_display_prop): Set iterator's position
6294         to where the `display' property starts, like for images.
6295         (dump_glyph): New function.
6296         (dump_glyph_row): Use it.  Dump info about marginal areas.
6298         * dispnew.c (direct_output_for_insert): Recognize more cases where
6299         glyphs can be written instead of being inserted.
6301         * xterm.c (x_insert_glyphs): Call window_box_left to obtain
6302         the left x-coordinate of the area to shift.
6304         * dired.c (directory_files_internal): Set result list to nil
6305         before retrying.
6307 2001-02-15  Kenichi Handa  <handa@etl.go.jp>
6309         * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
6310         invalid multibyte sequence, treat *SRC as a character of
6311         eight-bit-graphic.
6313 2001-02-15  Eli Zaretskii  <eliz@is.elta.co.il>
6315         * textprop.c (Fset_text_properties): Doc fix.
6317 2001-02-15  Gerd Moellmann  <gerd@gnu.org>
6319         * dispnew.c (update_text_area): Undo change of 2001-01-12.
6321 2001-02-14  Dave Love  <fx@gnu.org>
6323         * coding.c: Doc and message fixes.
6325 2001-02-14  Andrew Innes  <andrewi@gnu.org>
6327         * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
6328         Emacs frame above the screen size.
6330 2001-02-14  Gerd Moellmann  <gerd@gnu.org>
6332         * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
6334 2001-02-13  Gerd Moellmann  <gerd@gnu.org>
6336         * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
6337         case that TO ends up beyond ZV after running before-change-functions.
6339         * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
6340         the selected window if it is showing the buffer in question.
6342         * dired.c (directory_files_internal): Initialize errno.
6343         (toplevel): Include errno.h.
6345 2001-02-13  Kenichi Handa  <handa@etl.go.jp>
6347         * xfaces.c (best_matching_font): New parameter width_ratio.
6348         Multiply avgwidth by width_ratio.
6349         (choose_face_font): Call best_matching_font with width_ratio
6350         calculated from the column width of C.
6352 2001-02-12  Andrew Innes  <andrewi@gnu.org>
6354         The following changes are to draw box lines inside characters area
6355         if line-width is negative.
6357         * w32term.c (x_produce_image_glyph): Pay attention to the case that
6358         face->box_line_width is negative.
6359         (x_produce_stretch_glyph): Likewise.
6360         (x_produce_glyphs): Likewise.
6361         (x_estimate_mode_line_height): Likewise.
6362         (x_draw_glyph_string_background): Likewise.
6363         (x_draw_glyph_string_foreground): Likewise.
6364         (x_draw_composite_glyph_string_foreground): Likewise.
6365         (x_draw_glyph_string_box): Likewise.
6366         (x_draw_image_foreground): Likewise.
6367         (x_draw_image_relief): Likewise.
6368         (x_draw_image_foreground_1): Likewise.
6369         (x_draw_image_glyph_string): Likewise.
6371 2001-02-09  Kenichi Handa  <handa@etl.go.jp>
6373         The following changes are to draw box lines inside characters area
6374         if line-width is negative.
6376         * xterm.c (x_produce_image_glyph): Pay attention to the case that
6377         face->box_line_width is negative.
6378         (x_produce_stretch_glyph): Likewise.
6379         (x_produce_glyphs): Likewise.
6380         (x_estimate_mode_line_height): Likewise.
6381         (x_draw_glyph_string_background): Likewise.
6382         (x_draw_glyph_string_foreground): Likewise.
6383         (x_draw_composite_glyph_string_foreground): Likewise.
6384         (x_draw_glyph_string_box): Likewise.
6385         (x_draw_image_foreground): Likewise.
6386         (x_draw_image_relief): Likewise.
6387         (x_draw_image_foreground_1): Likewise.
6388         (x_draw_image_glyph_string): Likewise.
6390         * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
6391         and :line-width can be negative.
6392         (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
6394 2001-02-09  Jason Rumney  <jasonr@gnu.org>
6396         * w32term.c (w32_encode_char): Treat eight bit graphic and control
6397         characters the same as ASCII and latin-1.
6398         (x_display_and_set_cursor): Check for the focus frame's selected
6399         window instead of selected_window.
6400         (x_after_update_window_line): Don't clear if frame's internal
6401         border width is zero.
6402         (x_new_font): Don't change a tooltip's size.
6403         (w32_initialize): Set char_ins_del_ok to 1.
6405         * w32fns.c (Fx_show_tip): Fix calls to make_number.
6406         (x_set_font): If font hasn't changed, avoid recomputing
6407         faces and other things.
6408         (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
6409         (Fx_create_frame): Add the tool bar height to the frame height.
6410         (x_create_tip_frame): Prevent changing the tooltip's
6411         background color by specifying a color for the default font
6412         in .Xdefaults.
6413         (Qcancel_timer): New variable.
6414         (syms_of_w32fns): Initialize and staticpro it.
6415         (Fx_hide_tip, Fx_show_tip): Use it.
6416         (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6417         the timer.
6418         (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
6420         * w32.c (init_environment): Duplicate local string before putenv.
6422 2001-02-09  ShengHuo ZHU  <zsh@cs.rochester.edu>
6424         * charset.c (Fstring): A typo.
6426 2001-02-09  Kenichi Handa  <handa@etl.go.jp>
6428         * charset.c (Fstring): If all arguments are less than 256, return
6429         a unibyte string.
6431         * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
6432         return a unibyte string.
6434         * coding.c (code_convert_region): After detecting a coding, if
6435         nothing found, set coding->composing to COMPOSITION_NO.
6436         (decode_coding_string): Likewise.
6438 2001-02-08  Stefan Monnier  <monnier@cs.yale.edu>
6440         * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
6441         to avoid overflow.
6443 2001-02-07  Kenichi Handa  <handa@etl.go.jp>
6445         * charset.c (parse_str_to_multibyte): New function.
6447         * charset.h (parse_str_to_multibyte): Extern it.
6449         * print.c (print_string): If we are going to print a unibyte
6450         string into a multibyte buffer, convert the string to multibyte by
6451         str_to_multibyte.
6453 2001-02-06  Andrew Innes  <andrewi@gnu.org>
6455         * w32xfns.c (select_palette): Do nothing if palette hasn't yet
6456         been created.  It seems we can get sent window messages such as
6457         WM_ERASEBKGND before we properly update a frame.
6459 2001-02-06  Gerd Moellmann  <gerd@gnu.org>
6461         * dispnew.c (update_frame_line): Rename parameter FRAME to F.
6462         Avoid some unnecessary cursor positioning.
6464 2001-02-05  Gerd Moellmann  <gerd@gnu.org>
6466         * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
6467         (LFACE_AVGWIDTH): New macro.
6468         (LFACEP): Use AREF.
6469         (check_lface_attrs): Check LFACE_AVGWIDTH.
6470         (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
6471         (set_lface_from_font_name): Set LFACE_AVGWIDTH.
6472         (merge_face_vectors): Check LFACE_AVGWIDTH.
6473         (Finternal_make_lisp_face): Use AREF.
6474         (xm_set_menu_resources_from_menu_face)
6475         (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
6476         (Finternal_lisp_face_empty_p): Use AREF.
6477         (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
6478         (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
6479         Compare average widths..
6480         (best_matching_font): Arrange for comparing average widths.
6482         * dispextern.h (enum lface_attribute_index):
6483         Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
6485 2001-02-05  Dave Love  <fx@gnu.org>
6487         * puresize.h: Revert last change following loadup.el change.
6489 2001-02-05  Andrew Innes  <andrewi@gnu.org>
6491         * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
6492         invocation of temacs, to work with Windows 2000.
6493         (bootstrap-emacs): Ditto.
6495 2001-02-05  Gerd Moellmann  <gerd@gnu.org>
6497         * xterm.c (x_display_and_set_cursor): Check for the focus
6498         frame's selected window instead of selected_window.
6500         * xdisp.c (try_scrolling): If point is in the line below the
6501         window, make sure to move the iterator at least a canonical
6502         char height down.
6504         * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
6506 2001-02-05  Kenichi Handa  <handa@etl.go.jp>
6508         * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
6509         If invalid, execute CCL_INVALID_CMD.
6510         (ccl_driver): If the CCL program is terminated because of
6511         CCL_STAT_INVALID_CMD, copy the remaining source data to the
6512         destination instead of throwing them away.
6514 2001-02-02  Gerd Moellmann  <gerd@gnu.org>
6516         * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
6517         faces and other things.
6519         * xdisp.c (get_next_display_element): Fix case of empty
6520         display table entry.
6522 2001-02-02  Eli Zaretskii  <eliz@is.elta.co.il>
6524         * editfns.c (Fconstrain_to_field): Doc fix.
6526         * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
6527         into `thoroughly', to make it consistent with the doc string.
6529         * window.c (Fenlarge_window, Fshrink_window): Doc fix.
6531 2001-02-01  Gerd Moellmann  <gerd@gnu.org>
6533         * search.c (search_buffer): Call set_search_regs with a byte
6534         position, not a character position.
6536         * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
6537         minibuffer-only,
6539 2001-02-01  Eli Zaretskii  <eliz@is.elta.co.il>
6541         * frame.c (Fmodify_frame_parameters): Doc fix.
6543 2001-01-31  Gerd Moellmann  <gerd@gnu.org>
6545         * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
6546         identifier which is not reserved by Standard C.
6548         * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
6550         * window.c (enum window_part): New enumeration.
6551         (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
6552         Qright_bitmap_area.
6553         (coordinates_in_window): Return an enumerator from enum
6554         window_part.  Fix handling of right scroll bar.
6555         (Fcoordinates_in_window_p): Doc fix.  Return `left-fringe' and
6556         `right-fringe' instead of `left-bitmap-area' and
6557         `right-bitmap-area'.  Use enumerators from enum window_part
6558         instead of hard-coded integers.
6559         (check_window_containing, window_from_coordinates):
6560         Use enumerators from enum window_part instead of hard-coded integers.
6561         (syms_of_window): Replace Qleft_bitmap_area and
6562         Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
6564 2001-01-31  Eli Zaretskii  <eliz@is.elta.co.il>
6566         * editfns.c (Fformat_time_string): Doc fix.
6568 2001-01-31  Stefan Monnier  <monnier@cs.yale.edu>
6570         * keymap.c (Fwhere_is_internal): Use the first valid binding
6571         if no ascii binding is found (when firstonly is t).
6573 2001-01-31  Gerd Moellmann  <gerd@gnu.org>
6575         * window.c (Fscroll_right, Fscroll_left): Use interactive_p
6576         instead of Finteractive_p.
6578         * lisp.h (interactive_p): Add prototype.
6580         * eval.c (interactive_p): New function.
6581         (Finteractive_p): Use it.
6583         * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
6585 2001-01-31  Dave Love  <fx@gnu.org>
6587         * .gdbinit (hook-run): Define to run xreload.
6589         * textprop.c (Fset_text_properties): Fix newline in doc string.
6591 2001-01-30  Gerd Moellmann  <gerd@gnu.org>
6593         * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
6594         Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
6596         * dispextern.h (Vtool_bar_button_margin:): Declare extern.
6597         (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
6598         (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
6600         * xfns.c (Fx_create_frame): Add the tool bar height to the frame
6601         height.
6603 2001-01-30  Dave Love  <fx@gnu.org>
6605         * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
6606         AFTER_POTENTIAL_GC.
6608 2001-01-29  Gerd Moellmann  <gerd@gnu.org>
6610         * bytecode.c (Fbyte_code) <Bcurrent_column>:
6611         Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
6613 2001-01-29  Eli Zaretskii  <eliz@is.elta.co.il>
6615         * textprop.c (Fset_text_properties): Doc fix.
6617 2001-01-29  Gerd Moellmann  <gerd@gnu.org>
6619         * xdisp.c (forward_to_next_line_start): Remove xassert.
6621 2001-01-29  Jason Rumney  <jasonr@gnu.org>
6623         * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
6624         returning without releasing it.
6626 2001-01-29  Kenichi Handa  <handa@etl.go.jp>
6628         * w32fns.c (w32_font_match): Allocate three more bytes to regex
6629         for '^', '$', and '\0'.
6631 2001-01-28  Andrew Choi  <akochoi@i-cable.com>
6633         * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
6634         regex for '^', '$', and '\0'.
6636         * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
6637         only if current_sblock has been initialized.
6639         * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
6640         terminal frame even if it is the only visible frame.
6642 2001-01-28  Kenichi Handa  <handa@etl.go.jp>
6644         * fontset.c (font_family_registry): Even if FONTNAME conform to
6645         XLFD, if it specifies other fields than family and registry,
6646         return FONTANME.  New argument FORCE if nonzero cancel that feature.
6647         (fontset_font_pattern): Call font_family_registry with FORCE 1 for
6648         a signle byte character.  Don't set FAMILY part to nil here.
6649         It is handled by the caller choose_face_font.
6650         (Fnew_fontset): Call font_family_registry with FORCE 0.
6651         (Fset_fontset_font): Likewise.
6653 2001-01-27  Gerd Moellmann  <gerd@gnu.org>
6655         * xdisp.c (display_line): Don't treat a newline as fitting
6656         on the line.
6658 2001-01-26  Gerd Moellmann  <gerd@gnu.org>
6660         * window.c (size_window): Set the window's orig_top to nil when
6661         changing heights, so that a future shrink_mini_window won't
6662         restore a bogus height.
6664         * frame.c (do_switch_frame): If selected frame has a mini-window,
6665         resize that to exact size.
6667         * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
6669         * xdisp.c (display_line): Simplify check for glyphs fitting
6670         entirely in the line.
6672         * xfns.c (xic_style): New variable.
6673         (create_frame_xic): Move static variable to global scope for
6674         the case that `static' gets defined away.
6676 2001-01-26  Kenichi Handa  <handa@etl.go.jp>
6678         * coding.c (decode_coding): Set a flag for inhibiting
6679         inconsistent eol.
6680         (code_convert_region): Always set saved_coding_symbol.
6681         (decode_coding_string): Likewise.  Update coding->symbol when we
6682         encounter a inconsistent eol by the same way as code_convert_region.
6684 2001-01-25  Gerd Moellmann  <gerd@gnu.org>
6686         * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
6687         XClearArea.
6689         * xterm.c (x_after_update_window_line): Don't clear if frame's
6690         internal border width is zero.
6691         (x_clear_area): New function.
6692         (x_after_update_window_line, x_clear_end_of_line)
6693         (x_scroll_bar_create, x_scroll_bar_set_handle)
6694         (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
6695         instead of XClearArea.
6697         * xterm.h (x_clear_area): Add prototype.
6699         * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
6700         which doesn't seem necessary anymore with Lesstif 0.92.
6702 2001-01-25  Dave Love  <fx@gnu.org>
6704         * puresize.h (BASE_PURESIZE): Up to 720000.
6706         * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
6708 2001-01-25  Gerd Moellmann  <gerd@gnu.org>
6710         * xdisp.c (echo_area_display): Don't call redisplay_internal
6711         when Emacs is shutting down.  We can't run hooks etc. that
6712         would be necessary to do a redisplay.
6714         * lread.c (read_integer): Use type EMACS_INT instead of int.
6716 2001-01-25  Eli Zaretskii  <eliz@is.elta.co.il>
6718         * ccl.c (ccl_driver): Fix last change.
6720 2001-01-25  Kenichi Handa  <handa@etl.go.jp>
6722         * ccl.h (sturct ccl_program): New member suppress_error.
6724         * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
6725         insert error message to the output.
6726         (setup_ccl_program): Initialize ccl->suppress_error to 0.
6728         * coding.h (struct coding_system): New member suppress_error.
6730         * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
6731         (Fset_terminal_coding_system_internal): Set the member
6732         suppress_error to 1.
6733         (Fset_safe_terminal_coding_system_internal): Likewise.
6735 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
6737         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
6738         as if it was a `charset'.
6740 2001-01-24  Gerd Moellmann  <gerd@gnu.org>
6742         * keymap.c (Fwhere_is_internal): Don't nreverse the cached
6743         value in where_is_cache; the next lookup in the cache returns
6744         something bogus if we do.
6746 2001-01-24  Eli Zaretskii  <eliz@is.elta.co.il>
6748         * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
6749         if HAVE_WINDOW_SYSTEM isn't defined.
6751 2001-01-24  Gerd Moellmann  <gerd@gnu.org>
6753         * fns.c (sweep_weak_table): Fix code taking items out of
6754         the hash collision chain.  Some cleanup.
6756         * xterm.c (x_new_font): Don't change a tooltip's size.
6758         * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
6759         background color by specifying a color for the default font
6760         in .Xdefaults.
6762 2001-01-24  Kenichi Handa  <handa@etl.go.jp>
6764         * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
6765         a workaround for SunOS 4's cc.
6766         (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
6767         (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
6768         (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
6769         statement.
6771 2001-01-23  Gerd Moellmann  <gerd@gnu.org>
6773         * xterm.c (x_set_window_size_1): New function extracted from
6774         x_set_window_size.
6775         (x_set_window_size): Use it.
6776         (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
6777         doesn't have a widget, like tooltips.
6779 2001-01-23  Eli Zaretskii  <eliz@is.elta.co.il>
6781         * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6783 2001-01-23  Kenichi Handa  <handa@etl.go.jp>
6785         * fns.c (Fset_char_table_default): Fix to make sub char-table
6786         correctly.
6788 2001-01-22  Gerd Moellmann  <gerd@gnu.org>
6790         * xdisp.c (build_desired_tool_bar_string): Make sure we have
6791         a desired tool bar string, even if there are no tool bar items.
6793         * xdisp.c (Ftool_bar_lines_needed): New function.
6794         (syms_of_xdisp): Defsubr it.
6796         * editfns.c (Fformat): Don't extend text properties from arguments
6797         to padding chars in the result.
6799 2001-01-20  Eli Zaretskii  <eliz@is.elta.co.il>
6801         * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
6803 2001-01-20  Andrew Innes  <andrewi@gnu.org>
6805         * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
6806         (w32_initialize): Don't set term hooks that aren't actually needed
6807         in windowed mode.
6809         * xfaces.c (realize_default_face):
6810         (realize_face):
6811         (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
6813         * xdisp.c (handle_single_display_prop): Remove references to
6814         FRAME_W32_CONSOLE_P.
6816         * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
6818         * frame.h (output_method): Remove output_w32_console method.
6819         (FRAME_W32_CONSOLE_P): Remove macro.
6821         * frame.c (Qw32_console): Remove variable.
6822         (Fframep): Remove references to it.
6823         (syms_of_frame): Ditto.
6824         (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
6826         * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
6827         redefinition.
6829 2001-01-20  Kenichi Handa  <handa@etl.go.jp>
6831         * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
6833 2001-01-19  Andrew Innes  <andrewi@gnu.org>
6835         * w32.c (init_environment): Add a version-independent site-lisp
6836         directory to EMACSLOADPATH, after the version dependent one.
6838 2001-01-19  Gerd Moellmann  <gerd@gnu.org>
6840         * editfns.c (Fbuffer_substring): Doc fix.
6842         * xdisp.c (message_dolog, message2, message2_nolog):
6843         Rename parameter LEN to NBYTES.
6845 2001-01-19  Kenichi Handa  <handa@etl.go.jp>
6847         * charset.c (strwidth): Use c_string_width.
6848         (c_string_width): New function.
6849         (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
6850         Caller changed.
6852         * charset.h (c_string_width, lisp_string_width): Extern them.
6854         * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
6856         * indent.c (check_composition): Check validity of composition.
6858         * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
6859         characters by calling c_string_width.
6860         (x_consider_frame_title): Get byte length of frame tile string
6861         correctly.
6862         (display_mode_element): Pay attention to width of non-ASCII
6863         characters by calling strwidth.
6865 2001-01-18  Gerd Moellmann  <gerd@gnu.org>
6867         * xfns.c (Qcancel_timer): New variable.
6868         (syms_of_xfns): Initialize and staticpro it.
6869         (Fx_hide_tip, Fx_show_tip): Use it.
6870         (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6871         the timer.
6872         (toplevel): Lisp code for generating parts of syms_of_xfns removed.
6874         * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
6876         * window.h (WINDOW_LIVE_P): New macro.
6878         * window.c (window_size_fixed): New variable.
6879         (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
6880         the doc string.
6882         * eval.c (specbind): If binding a per-buffer variable which
6883         doesn't have a buffer-local value in the current buffer, change
6884         the global value by changing the value of the symbol bound in all
6885         buffers not having their own value, to make it consistent with
6886         what happens with other buffer-local variables.
6888         * xterm.c (x_initialize): Set char_ins_del_ok to 1.
6890         * xdisp.c (forward_to_next_line_start): Stop at end of buffer
6891         when searching for a newline.
6893 2001-01-18  Kenichi Handa  <handa@etl.go.jp>
6895         * xdisp.c (display_string): Fix previous change.
6897 2001-01-18  Jason Rumney  <jasonr@gnu.org>
6899         * w32term.c (x_produce_stretch_glyph): Only use Qspace when
6900         GLYPH_DEBUG is defined.
6901         (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
6902         true for images with `:ascent 100'.
6903         (x_set_mouse_face_gc): If the last used mouse face has gone in the
6904         meantime, use face MOUSE_FACE_ID.
6905         If first glyph isn't a character glyph, use the ASCII NUL
6906         character to determine the face.
6907         (expose_area): Do not treat left margin specially.
6908         (note_mode_line_highlight): If no local_map, check global keymap.
6909         (note_mouse_highlight): Initialize overlay.
6910         (clear_mouse_face): Don't return if tip_frame is non-nil.
6911         (show_scroll_bars): Remove unused function.
6912         (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
6913         (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
6914         Clip to row.
6915         (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
6916         (x_free_frame_resources): Unload relief colors.
6918 2001-01-17  Gerd Moellmann  <gerd@gnu.org>
6920         * xdisp.c (forward_to_next_line_start): Avoid calling
6921         get_next_display_element when the newline is already found.
6922         This may change the iterator's position, when its current position is
6923         equal to the iterator's stop_charpos.
6925         * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
6926         zero, use this method only at the end of a line.
6928         * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
6929         call to x_list_fonts.  Call x_list_fonts with SIZE -1 only
6930         if SCALABLE_FONTS_P is set.
6932         * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
6933         so that scalable fonts are included.
6935         * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
6936         In the cache, use a key containing the information if scalable
6937         fonts are included.
6938         (x_load_font): Adapt to change of keys in the font cache.
6940 2001-01-17  Kim F. Storm  <storm@filanet.dk>
6942         * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
6943         XListFonts to take advantage of font caching.
6945         * xterm.c (x_list_fonts): Ensure caching font information when
6946         called for a null frame, which is the case frequently when Emacs
6947         starts.
6949 2001-01-17  Gerd Moellmann  <gerd@gnu.org>
6951         * xfns.c (QCconversion): Replaces QCalgorithm.
6953         * w32fns.c (QCconversion): Replaces QCalgorithm.  Update copyright.
6955         * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
6956         of :algorithm.
6958         * xdisp.c (redisplay_tool_bar): Change tool bar's height when
6959         not everything could be displayed.
6961         * line.h, x-list-font.c: Files removed because unused.
6963 2001-01-17  Andrew Innes  <andrewi@gnu.org>
6965         * dired.c (directory_files_internal): Convert result from readdir
6966         to a unibyte string initially, to avoid possible misinterpretation
6967         of some bytes as the internal form of Emacs characters.
6969 2001-01-17  Kenichi Handa  <handa@etl.go.jp>
6971         * fns.c (concat): Be sure to avoid putting the same `composition'
6972         property on the adjacent regions.
6974 2001-01-16  Gerd Moellmann  <gerd@gnu.org>
6976         * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
6977         (Fscroll_right, Fscroll_left): Set it here instead, if called
6978         interactively.
6980         * buffer.c (Fset_buffer_modified_p): Set buffer's
6981         prevent_redisplay_optimizations_p flag.
6983         * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
6984         * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
6985         with additional arg.
6987         * dispextern.h, lisp.h (redisplay_preserve_echo_area):
6988         Change prototype.
6990         * xdisp.c (redisplay_preserve_echo_area): Add parameter
6991         FROM_WHERE, for debugging.
6993 2001-01-16  Kenichi Handa  <handa@etl.go.jp>
6995         * ccl.c (Fregister_ccl_program): Handle the return value of
6996         resolve_symbol_ccl_program correctly.
6997         (CCL_Extension): Fix typo (originally CCL_Extention).  Caller changed.
6999 2001-01-15  Gerd Moellmann  <gerd@gnu.org>
7001         * xterm.c (x_set_mouse_face_gc): If the last used mouse face
7002         has gone in the meantime, use face MOUSE_FACE_ID.
7004         * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
7005         If x_display_info_for_display returns null, don't try to close
7006         the display; we didn't open it.
7008         * dispnew.c (save_or_restore_current_matrices): Function removed.
7009         (save_current_matrix, restore_current_matrix): New functions.
7010         (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
7011         restore the frame's current matrix.  Due to the glyph pointer
7012         setup done in adjust_glyph_matrix, there is no easy way to make
7013         saving the current matrix in the desired matrix generally correct,
7014         so don't try it.
7016 2001-01-15  Kenichi Handa  <handa@etl.go.jp>
7018         * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
7019         truncation glyphs.
7020         (display_line): Optimize for wide characters.
7021         (display_string): Don't try to display a multi-column character
7022         partially.  On ttys, produce more than one truncation glyph for
7023         multi-column characters that don't fit on the line.
7025 2001-01-13  Kenichi Handa  <handa@etl.go.jp>
7027         * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
7028         Define it instead of WORDS_BIGENDIAN.  Caller changed.
7030 2001-01-13  Jason Rumney  <jasonr@gnu.org>
7032         * w32fns.c (Fimage_size, image_ascent, lookup_image)
7033         (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
7034         (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7035         (tiff_format, gif_format, gs_format): Adapt to change of image margins.
7037         * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
7038         (x_draw_image_relief, x_draw_image_foreground_1)
7039         (x_draw_image_glyph_string): Adapt to change of image margins.
7041         * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
7042         variables.
7044         * w32bdf.c (search_file_line, get_cached_font_char)
7045         (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
7047         * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
7049         * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
7050         (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
7051         (Fw32_send_sys_command): Remove unused variables.
7052         (w32_msg_pump): Add parentheses.
7054         * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
7055         (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
7056         Add parentheses.
7058 2001-01-12  Gerd Moellmann  <gerd@gnu.org>
7060         * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
7061         (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
7062         being a pair of margins.
7063         (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
7064         to DEFVAR_LISP.  Extend doc.
7066         * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
7067         margins.
7068         (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
7069         pair of integers `(X . Y)', use X for the horizontal and Y for the
7070         vertical margin.
7071         (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
7072         (parse_image_spec): Check it.
7073         (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7074         (tiff_format, gif_format, gs_format):
7075         Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
7077         * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
7078         (x_draw_image_relief, x_draw_image_foreground_1)
7079         (x_draw_image_glyph_string): Adapt to the change of image margins.
7081         * dispextern.h (struct image): Replace member `margin' with
7082         `hmargin' and `vmargin'.
7084         * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
7085         and GLYPHS.
7087         * dispnew.c (update_text_area): Put code which decrements the
7088         stop position when the row's face extends to the end of the
7089         line in #if 0.
7091         * xfns.c (x_set_mouse_color): Fix color allocation.
7093         * keyboard.c: Call get_local_map with new argument list.
7095         * intervals.c (get_local_map): Change TYPE to Lisp_Object.
7097         * intervals.h (enum map_property): Removed.
7098         (get_local_map): Change prototype.
7100         * keymap.c: Call get_local_map with new argument list.
7101         (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
7103 2001-01-11  Gerd Moellmann  <gerd@gnu.org>
7105         * xdisp.c (build_desired_tool_bar_string): Correct the computation
7106         of the size needed for the tool bar string.  For the last image,
7107         use a `display' property that reaches to the end of the string.
7109         * xselect.c (selection_request_dpyinfo): New variable.
7110         (x_handle_selection_request): Set it.
7111         (x_selection_request_lisp_error): Don't call
7112         x_decline_selection_request if selection request's display has
7113         been closed.
7115         * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
7116         Do the unregister_colors before calling XFreeColors.
7118 2001-01-10  Dave Love  <fx@gnu.org>
7120         * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
7121         ${SOME_MACHINE_LISP}, not ${lisp}.
7123 2001-01-10  Gerd Moellmann  <gerd@gnu.org>
7125         * xdisp.c (display_line): On ttys, produce more than one truncation
7126         glyph for multi-column characters that don't fit on the line.
7128         * xselect.c (x_reply_selection_request): Add a comment.
7130         * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
7131         XkbGetNames instead of XkbGetKeyboard.
7133 2001-01-10  Dave Love  <fx@gnu.org>
7135         * sysdep.c (random): Revert the declaration.
7137 2001-01-09  Gerd Moellmann  <gerd@gnu.org>
7139         * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
7140         Call function string_bytes.
7141         (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
7143         * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
7144         (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
7145         (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
7146         (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
7147         the current sblock.
7148         (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
7149         (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
7150         after sweeping strings, and at the end.
7151         (GC_CHECK_STRING_BYTES): Moved to lisp.h.
7153         * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
7154         ensure that pop_message is called.
7156         * keyboard.c (Fexecute_extended_command): Use a
7157         record_unwind_protect to ensure that pop_message is called.
7159         * lisp.h (push_message_unwind): Add prototype.
7161         * xdisp.c (push_message_unwind): New function.
7163         * fileio.c (do_auto_save_unwind): Do the pop_message here
7164         instead of in Fdo_auto_save.
7165         (Fdo_auto_save): Don't call pop_message.
7167 2001-01-08  Ken Raeburn  <raeburn@gnu.org>
7169         * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
7170         in inner block.
7172 2001-01-08  Gerd Moellmann  <gerd@gnu.org>
7174         * window.c (window_scroll_pixel_based): Adjust glyph matrices
7175         when increasing window's vscroll.
7177         * macros.c (Qkbd_macro_termination_hook): New variable.
7178         (syms_of_macros): Initialize and staticpro it.
7179         (pop_kbd_macro): Run kbd-macro-termination-hook.
7181         * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
7183 2001-01-07  Dave Love  <fx@gnu.org>
7185         * keyboard.c (Fread_key_sequence_vector):  Avoid newline in
7186         arglist, for documentation's sake.
7188 2001-01-06  Andrew Innes  <andrewi@gnu.org>
7190         * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
7191         of *.pdb.
7193 2001-01-05  Andrew Innes  <andrewi@gnu.org>
7195         * term.c (update_end): Don't check updating_frame; for some reason
7196         this can be 0 sometimes, such as after dismissing a popup menu,
7197         and isn't necessary given the explicit frame argument.
7199 2001-01-05  Gerd Moellmann  <gerd@gnu.org>
7201         * sysdep.c: Don't prototype srandom; it takes an unsigned argument
7202          on some systems, and an unsigned long on others, like FreeBSD 4.1.
7204 2001-01-04  Gerd Moellmann  <gerd@gnu.org>
7206         * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
7208         * xfns.c (x_create_tip_frame): Preserve the value of
7209         face_change_count around the creation of the tip frame.
7211         * xfns.c (last_show_tip_args): New variable.
7212         (compute_tip_xy): New function.
7213         (Fx_show_tip): Reuse an existing tip frame, if possible.
7214         (syms_of_xfns): Initialize and staticpro last_show_tip_args.
7216 2001-01-04  Dave Love  <fx@gnu.org>
7218         * editfns.c (Fformat): Doc fix.
7220         * systime.h (set_file_times): Prototype.
7222         * widget.h (EmacsFrameSetCharSize_): Prototype.
7224         * sysdep.c (random, srandom): Declare explicitly.
7226         * dispextern.h (move_it_vertically_backward): Declare.
7228 2001-01-04  Gerd Moellmann  <gerd@gnu.org>
7230         * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
7231         like in Fx_create_frame.
7233         * xfaces.c (set_font_frame_param): Don't do anything for
7234         non-graphical frames.
7236         * window.c (Fdelete_other_windows): Set window's window_end_valid
7237         to nil when changing the window's start.  Don't change the
7238         window's start when its top position hasn't changed.  If we do,
7239         this will set the window's optional_new_start, which act's like a
7240         force_start during redisplay with C-x 1 M-> under particular
7241         circumstances (see report from Per Starback to emacs-pretest-bug
7242         from 2000-12-13.).
7244 2001-01-03  Gerd Moellmann  <gerd@gnu.org>
7246         * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
7247         short cut at the start of the function.  Add an assertion.
7248         (reseat_at_next_visible_line_start): Add an assertion.
7250         * window.c (Frecenter): When changing the window start, set the
7251         window's window_end_valid to nil.
7252         (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
7254         * dispextern.h (move_it_past_eol): Add prototype.
7256         * xdisp.c (move_it_past_eol): New function.
7258         * window.c (Fwindow_end): Doc fix.
7260 2001-01-03  Dave Love  <fx@gnu.org>
7262         * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
7264 2001-01-03  Gerd Moellmann  <gerd@gnu.org>
7266         * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
7267         the enabled_p flag of the glyph row at window_end_vpos to 0.
7268         (handle_single_display_prop): Fix last change.
7270 2001-01-02  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
7272         * window.c (Frecenter): Doc fix.
7274 2001-01-02  Andrew Innes  <andrewi@gnu.org>
7276         * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
7278         * frame.h (output_method): Add output_w32_console method.
7279         (FRAME_W32_CONSOLE_P): New macro.
7281         * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
7282         use output_w32_console method.
7283         (Qw32_console): New Lisp_Object.
7284         (Fframep): Return it.
7285         (syms_of_frame): Init it.
7286         (Fframe_parameters): Report w32console as font for w32_console frames.
7288         * xfaces.c (realize_default_face): Set face foreground and
7289         background to unspecified for w32_console frames.
7290         (realize_face): Realize face cache for w32_console frames.
7291         (realize_tty_face): Accept w32_console frames.
7293         * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
7294         (init_iterator) [WINDOWSNT]: Initialize frame face cache if
7295         necessary, even if running interactively.
7297         * dispnew.c (Fredraw_frame): Call set_terminal_modes for
7298         w32_console frames.
7300         * w32term.c (x_update_begin):
7301         (x_update_end):
7302         (x_clear_frame):
7303         (x_ins_del_lines):
7304         (x_change_line_highlight):
7305         (x_delete_glyphs):
7306         (w32_ring_bell):
7307         (x_update_begin):
7308         (x_update_end):
7309         (w32_reassert_line_highlight):
7310         (w32_frame_rehighlight):
7311         (w32_frame_raise_lower): Do nothing if not w32 frame.
7313         * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
7315         * w32fns.c (Fx_display_color_cells): Determine correct value, when
7316         system doesn't tell us directly.
7317         (Fx_display_visual_class): Implement properly.
7319 2001-01-02  Gerd Moellmann  <gerd@gnu.org>
7321         * window.c (Frecenter): Handle centering in graphical frames
7322         specially.  Centering on the basis of line counts doesn't work
7323         reliably with variable-height lines.
7325 2001-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
7327         * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
7328         and al[].
7330         * composite.c (run_composition_function): Remove unused var `val'.
7331         (update_compositions): Remove unused variable `hook'.
7333         * intervals.c (get_local_map): Remove unused variable `tem'.
7335         * doprnt.c (doprnt1): Remove unused variable `size'.
7337         * fns.c (Flength): Remove unused variable `tail'.
7338         (Fdelete): Remove unused variable `size'.
7340         * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
7341         and `gcpro2'.
7343         * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
7345         * data.c (find_symbol_value): Remove extra 3rd argument in the
7346         call to swap_in_symval_forwarding.
7348         * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
7350         * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
7351         (trivial_regexp_p): Remove unused variable `c'.
7352         (boyer_moore): Remove unused variable `k'.
7354         * indent.c (current_column): Remove unused variable `stopchar'.
7355         (Fcompute_motion): Remove unused variable `contin'.
7357         * casefiddle.c (casify_object): Remove unused variable `tolen'.
7359         * dired.c (directory_files_internal): Fix a typo in a comment.
7360         Remove an unused variable `handler'.
7361         (file_name_completion): Remove unused function-scope variable `dp'.
7362         (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
7363         on BSD4_2.
7365         * fileio.c (e_write): Remove unused variable `require_encoding_p'.
7367         * marker.c (Fmarker_position): Remove unused variables `pos', `i',
7368         and `buf'.
7369         (Fmarker_insertion_type): Remove unused variable `buf'.
7371         * insdel.c (make_gap): Remove unused variable `result'.
7373         * keyboard.c (record_char): Remove unused function-scope var `help'.
7374         (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
7375         (menu_bar_items): Remove unused function-scope variable `tem'.
7377         * fontset.c (fontset_ref): Remove unused variable `i'.
7378         (fontset_set): Remove unused variables `j' and `tmp'.
7379         (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
7380         (make_fontset_for_ascii_face): Remove unused variable `name'.
7381         (fs_load_font): Remove unused variable `font_idx'.
7382         (fs_query_fontset): Remove unused function-local variable `fontset'.
7383         (list_fontsets): Remove unused variable `tail'.
7384         (Fnew_fontset): Remove unused variables `family' and `registry'.
7385         (accumulate_font_info): Remove unused variable `tmp'.
7386         (Ffontset_font): Remove unused variable `id'.
7387         (syms_of_fontset): Remove unused variable `i'.
7389         * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
7390         to x_term_init.
7391         (lookup_image): Remove unused variable `file'.
7392         (xbm_load): Remove unused variables `bitmap_data', `height', and
7393         `width'.  Remove function-local variable `i', leave the
7394         block-local one.
7395         (gif_load): Remove unused variable `inc'.
7397         * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
7398         (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
7399         leave only the one in the inner block.
7401         * xfaces.c (face_fontset, realize_default_face): Remove unused
7402         variable `fontset'.
7403         (face_at_buffer_position): Remove unused variable `multibyte_p'.
7405         * term.c (encode_terminal_code): Remove unused variable `c'.
7407         * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
7408         char *' instead of `char *'.
7410         * category.c (Fcategory_docstring): Remove unused variable `doc'.
7411         (Fget_unused_category): Remove unused variable `docstring_vector'.
7412         (Fchar_category_set): Remove unused variables `val', `charset',
7413         `c1' and `c2'.
7415         * coding.c (detect_coding_iso2022, setup_coding_system):
7416         Remove unused variable `i'.
7417         (detect_coding_mask): Remove unused variable `idx'.
7418         (detect_coding): Remove unused variable `i'.
7419         (ccl_coding_driver): Remove unused variable `result'.
7420         (run_pre_post_conversion_on_str): Remove unused variable `prev'.
7421         (decode_coding_string): Remove unused variables `to' and `gcpro1'.
7422         (encode_coding_string): Remove unused variables `gcpro1' and
7423         `saved_coding_symbol'.
7424         (Ffind_coding_systems_region_internal): Remove function-local
7425         variable args[], leave only the block-local one.
7426         (code_convert_region1): Remove unused variable `len'.
7428         * charset.c (char_printable_p): Remove unused variable `chars'.
7429         (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
7430         (str_to_multibyte): Remove unused variable `c'.
7432         * window.c (size_window): Remove block-local variable `min_size'.
7434         * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
7435         `header_line_height'.
7436         (append_space, extend_face_to_end_of_line): Declare `saved_what'
7437         enum display_element_type.
7439 2001-01-02  Gerd Moellmann  <gerd@gnu.org>
7441         * xterm.c (x_connection_closed): Catch X errors around all
7442         statements that call X.  Save away the error message in a local copy.
7444         * xterm.c (x_connection_closed): Set handling_signal to 0 at
7445         the start.
7447         * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
7448         in or at the start of invisible text.
7450         * dispnew.c (update_window): Don't check_current_matrix_flags.
7452 2001-01-01  Jason Rumney  <jasonr@gnu.org>
7454         * w32fns.c (x_figure_window_size): Do not allow new_height and
7455         new_width of frame to override specified values.
7457 2000-12-30  Kenichi Handa  <handa@etl.go.jp>
7459         * composite.c (find_composition): Fix a code for searching backward.
7461 2000-12-29  Gerd Moellmann  <gerd@gnu.org>
7463         * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
7464         (update_window) [GLYPH_DEBUG]: Call it.
7465         (scrolling_window): Prevent including current rows which are below
7466         what's displayed in the window.
7468         * xdisp.c (try_window_reusing_current_matrix)
7469         <new start <= old start>:  Disable rows in the current matrix
7470         which are below the window after scrolling.
7472         * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
7473         is zero.  It's not worth the complexity.
7474         (invisible_text_between_p): Put in #if 0 because unused.
7476 2000-12-28  Gerd Moellmann  <gerd@gnu.org>
7478         * xfns.c (Fx_backspace_delete_keys_p): Check library and server
7479         XKB versions.  Call XkbFreeKeyboard with 2nd arg 0.
7481         * keyboard.c (echo_char): If C is an integer, always call
7482         push_key_description.  Former code could signal an invalid
7483         character error.
7485         * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
7486         If set, print multibyte text.
7487         (Fsingle_key_description): Call push_key_description with
7488         FORCE_MULTIBYTE set.
7489         (describe_buffer_bindings): Likewise.
7491         * lisp.h (push_key_description): Add prototype.
7493         * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
7494         around the call to redisplay_internal.
7496         * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
7498         * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
7500 2000-12-28  Kenichi Handa  <handa@etl.go.jp>
7502         * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
7503         (ccl_driver): New local variable `extra_bytes'.
7505         * ccl.h (struct ccl_spec): New member eight_bit_carryover.
7507         * coding.c (setup_coding_system):
7508         Initialize coding->spec.ccl.eight_bit_carryover.
7509         (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
7511 2000-12-28  Kenichi Handa  <handa@etl.go.jp>
7513         * coding.c (SAFE_ONE_MORE_BYTE): New macro.
7514         (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
7515         (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
7516         (decode_composition_emacs_mule): New function.
7517         (decode_coding_emacs_mule): Decode composition sequence by calling
7518         decode_composition_emacs_mule.
7519         (ENCODE_COMPOSITION_EMACS_MULE): New macro.
7520         (encode_coding_emacs_mule): Changed from macro to function.
7521         If a text contains compositions, encode them correctly.
7522         (setup_coding_system): Set coding->commong_flags for emacs-mule so
7523         that decoding and encoding are required.
7525 2000-12-27  Gerd Moellmann  <gerd@gnu.org>
7527         * xfaces.c (PT_PER_INCH): New macro.
7528         (xlfd_point_size): Compute real point size from font's pixel size.
7529         (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
7530         instead of 72.
7532         * .gdbinit: Comment out the line pointing to the Lesstif source
7533         directory.
7535         * window.c (Frecenter): Use displayed_window_lines instead
7536         of window_internal_height.
7538         * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7539         instead of x-toolkit-scroll-bars-p.
7540         (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
7542         * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7543         instead of x-toolkit-scroll-bars-p.
7544         (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
7546         * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
7547         (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
7548         (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
7549         New variables.
7550         (add_window_display_history, add_frame_display_history)
7551         (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
7552         (build_frame_matrix_from_leaf_window): Remove unused code.
7553         (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
7554         redisplay history.
7555         (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
7556         (update_window) [GLYPH_DEBUG]: Likewise.
7557         (syms_of_display): Defsubr dump-redisplay-history.
7559 2000-12-23  Gerd Moellmann  <gerd@gnu.org>
7561         * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
7562         the end of the prompt.  Set echo_after_prompt to the offset
7563         of echoptr in echobuf.
7565         * xdisp.c (init_from_display_pos): Pop until the iterator's
7566         stack is empty; there may be frames for stretch or images
7567         on the stack.
7569         * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
7570         (save_or_restore_current_matrix): New function for the same
7571         purpose, but more efficient.
7572         (adjust_frame_glyphs_for_frame_redisplay): Use it.
7574 2000-12-23  Eli Zaretskii  <eliz@is.elta.co.il>
7576         * xdisp.c (syms_of_xdisp): Fix last change.
7578 2000-12-23  Gerd Moellmann  <gerd@gnu.org>
7580         * xdisp.c (syms_of_xdisp): Doc fix.
7582         * xdisp.c (redisplay_window): Remove label restore_buffers;
7583         use finish_scroll_bars instead to make sure that scroll bars
7584         are redeemed.  If we don't do this, flickering can result from
7585         scroll bars being destroyed and recreated.
7587 2000-12-22  Jason Rumney  <jasonr@gnu.org>
7589         * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
7590         in the wrong colors when the foreground is not black.
7591         (expose_window): Don't redraw the window that's currently being
7592         updated.
7594 2000-12-22  Gerd Moellmann  <gerd@gnu.org>
7596         * window.c (size_window): When setting the window's too_small_ok
7597         flag, compare old size with minimum size depending on WIDTH_P,
7598         don't compare with window_min_width.
7600         * window.c (delete_window): Simplify somewhat.
7601         (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
7602         freeing window matrices.  The flag windows_or_buffers_changed is
7603         set, so the next redisplay will consider all windows; this should
7604         suffice.
7606 2000-12-22  Kenichi Handa  <handa@etl.go.jp>
7608         * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
7610         * ccl.h (struct ccl_program): New member cr_consumed.
7612         * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
7613         (CCL_READ_CHAR): Handle EOL conversion here.
7614         (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
7616 2000-12-21  Gerd Moellmann  <gerd@gnu.org>
7618         * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
7620         * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
7621         otherwise tabs of different size compare equal.
7623         * callint.c (Fcall_interactively): Prevent a compiler warning.
7625         * print.c (print_unwind): Return nil.
7626         (PRINTDECLARE): Initialize all local variables.
7627         (print_preprocess): Add a default case.
7629         * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
7631         * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
7633         * window.c (delete_window, Fsplit_window)
7634         (Fset_window_configuration): Calls to ensure_frame_matrix removed.
7636         * dispextern.h (ensure_frame_matrix): Function declaration removed.
7638         * dispnew.c (ensure_frame_matrix): Removed.
7639         (save_frame_matrix, restore_frame_matrix): New functions.
7640         (adjust_frame_glyphs_for_frame_redisplay): Use them.
7642         * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
7643         [GLYPH_DEBUG]: Extended to dump glyphs in short form.
7645 2000-12-21  Andrew Innes  <andrewi@gnu.org>
7647         * w32term.c (x_update_begin): Regenerate the palette here, rather
7648         than for each window.
7650         * w32xfns.c (select_palette): Avoid calling SelectPalette if
7651         palette is NULL, since this corrupts memory!  Also get
7652         display_info reference from frame.
7654 2000-12-21  Jason Rumney  <jasonr@gnu.org>
7656         * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
7658         * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
7659         to avoid returning without releasing it.
7661 2000-12-21  Kenichi Handa  <handa@etl.go.jp>
7663         * keymap.c (push_key_description): Don't convert eight-bit-control
7664         and eight-bit-graphic to multibyte character.
7666         * charset.c (Fmake_char_internal): If CHARSET doesn't have a
7667         generic character and CODE1 is nil, return the smallest character
7668         in CHARSET.
7670 2000-12-20  Dave Love  <fx@gnu.org>
7672         * s/osf5-0.h (NSIG): Don't redefine.
7674 2000-12-20  Stefan Monnier  <monnier@cs.yale.edu>
7676         * keymap.c (where_is_internal): Check ascii_sequence_p rather than
7677         excluding menu-bar and tool-bar.
7678         (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
7679         (menu_item_p): Remove.
7680         (where_is_internal_1): Don't ignore menu-items.
7682 2000-12-20  Gerd Moellmann  <gerd@gnu.org>
7684         * xdisp.c (hscroll_window_tree): Take window's min_hscroll
7685         into account.
7687         * window.c (make_window): Initialize window's min_hscroll.
7688         (Fset_window_hscroll): Set window's hscroll and min_hscroll.
7689         (set_window_buffer, temp_output_buffer_show): Set min_hscroll
7690         to zero.
7691         (struct saved_window): New member min_hscroll.
7692         (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
7693         (Fset_window_configuration): Set window's min_hscroll.
7694         (save_window_save): Save window's min_hscroll.
7695         (compare_window_configurations): Compare min_hscroll values.
7697         * window.h (struct window): New member min_hscroll.
7699         * keyboard.c (echo_prompt): Prevent a compiler warning.
7701         * xdisp.c (try_cursor_movement): Fix last change.  The real
7702         condition is that PT is at the end of the row, and should
7703         be displayed at the start of the next row.
7705         * xdisp.c (try_cursor_movement): If we end on a partially
7706         visible line, end we already decided to scroll, return -1.
7708         * dispextern.h (ensure_frame_matrix): Add prototype.
7710         * window.c (delete_window, Fsplit_window)
7711         (Fset_window_configuration): Call ensure_frame_matrix.
7713         * dispnew.c (fake_current_matrices, ensure_frame_matrix):
7714         New functions.
7715         (adjust_frame_glyphs_for_frame_redisplay): If display has been
7716         completed, call fake_current_matrices instead of marking frame
7717         garbaged.
7719 2000-12-20  Jason Rumney  <jasonr@gnu.org>
7721         * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
7723 2000-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
7725         * fns.c (Frequire): Doc fix.
7727 2000-12-19  Gerd Moellmann  <gerd@gnu.org>
7729         * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
7731         * dispnew.c (direct_output_for_insert): Fix check for mini-window
7732         currently displaying a message.
7734         * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
7735         xterm.h.
7736         (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
7738 2000-12-18  Andrew Innes  <andrewi@gnu.org>
7740         * w32.c (w32_strerror): New function.
7742         * w32.h (w32_strerror): New extern.
7744         * w32fns.c (Fw32_shell_execute): Use it.
7746 2000-12-18  Gerd Moellmann  <gerd@gnu.org>
7748         * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
7750 2000-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
7752         * msdos.c (IT_set_face): Obey inverse_video.
7754 2000-12-18  Kenichi Handa  <handa@etl.go.jp>
7756         * dired.c (directory_files_internal): Always return decoded filenames.
7758 2000-12-18  Gerd Moellmann  <gerd@gnu.org>
7760         * xterm.c (x_connection_closed): Prevent being called recursively
7761         because of an error condition in XtCloseDisplay.
7763         * xdisp.c (init_iterator): If noninteractive, and the frame's
7764         face cache is null, make one.
7766         * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
7768         * process.c (wait_reading_process_input): Check for pending
7769         input when running timers.
7771 2000-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
7773         * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
7775 2000-12-18  Kenichi Handa  <handa@etl.go.jp>
7777         * process.c (read_process_output): Don't run a filter if the code
7778         decoder produces nothing but carryover.
7780 2000-12-17  Andrew Innes  <andrewi@gnu.org>
7782         * w32.c (sys_rename): Only check errno against EEXIST, and not
7783         EACCES, when determining whether rename failed because the target
7784         exists.  This was resulting in indefinite looping on Windows 9x if
7785         the source file was locked by another process.
7787         * w32fns.c (Ffile_system_info): New function.
7788         (syms_of_w32fns): Defsubr it.
7790 2000-12-17  Gerd Moellmann  <gerd@gnu.org>
7792         * window.c (coordinates_in_window): Fix computation for
7793         position on vertical line between mode lines.
7795         * xfns.c (unwind_create_frame): Return t if frame was deleted.
7796         Don't alter tip_frame or tip_window.
7797         (unwind_create_tip_frame): Set tip_frame to nil only if frame
7798         was deleted.
7800         * w32fns.c (unwind_create_frame): Return t if frame was deleted.
7801         Don't alter tip_frame or tip_window.
7802         (unwind_create_tip_frame): Set tip_frame to nil only if frame
7803         was deleted.
7805 2000-12-16  Eli Zaretskii  <eliz@is.elta.co.il>
7807         * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
7808         be consistent with the doc string.  Reported by NAKAJIMA Mikio
7809         <minakaji@osaka.email.ne.jp>.
7811 2000-12-16  Kenichi Handa  <handa@etl.go.jp>
7813         * xfaces.c (Vface_ignored_fonts): New variable.
7814         (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
7815         (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
7817 2000-12-15  Gerd Moellmann  <gerd@gnu.org>
7819         * dispnew.c (update_window): Detect pending input every nth line
7820         updated, i.e. do it depending on real work done, and not on the
7821         vpos of the line.
7823         * xterm.c (expose_window): Don't redraw the window that's
7824         currently being updated.
7826         * window.c (Fset_window_point): Remove test for
7827         cursor_in_non_selected_windows.
7829         * lread.c (read1): Recognize end of file after `\\'.
7831         * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
7832         not unwind_create_frame.
7834 2000-12-15  Dave Love  <fx@gnu.org>
7836         * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
7837         bcopy & al.
7839         * s/irix6-5.h: #undef bcopy & al here.  Include strings.h.
7841 2000-12-15  Kenichi Handa  <handa@etl.go.jp>
7843         * coding.c (setup_coding_system): Clear all members of the struct
7844         coding_system at first.
7845         (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
7846         argument.
7847         (code_convert_region): Don't override coding->src_multibyte and
7848         coding->dst_multibyte.
7850         * fns.c (Fmd5): Docstring improved.
7852 2000-12-15  Miles Bader  <miles@gnu.org>
7854         * xdisp.c (window_box_height): Only use mode-line glyph-rows that
7855         are actually marked as mode-lines; otherwise use
7856         estimate_mode_line_height.
7858 2000-12-14  Gerd Moellmann  <gerd@gnu.org>
7860         * editfns.c (Fformat): Prevent a buffer overrun when the format
7861         specifies a precision.
7863 2000-12-14  Eli Zaretskii  <eliz@is.elta.co.il>
7865         * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
7866         argument is outside the range [2..3].
7868 2000-12-14  Andrew Innes  <andrewi@gnu.org>
7870         * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
7871         nothing to do.  Bind inhibit-quit.
7872         (tip_frame): Make it a Lisp_Object.
7873         (x_create_tip_frame): Set tip_frame after it has been added to
7874         Vframe_list.
7875         (Fx_show_tip): Don't set tip_frame here.
7876         (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
7877         (unwind_create_frame, unwind_create_tip_frame): New functions.
7878         (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7879         while a frame is only partially constructed.
7881         * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7882         (x_free_frame_resources): New function.
7883         (x_destroy_window): Use it.
7885 2000-12-14  Gerd Moellmann  <gerd@gnu.org>
7887         * xfns.c (Fx_backspace_delete_keys_p): New function.
7888         (syms_of_xfns): Defsubr it.
7890         * config.in (HAVE_XKBGETKEYBOARD): Add.
7892 2000-12-14  Kenichi Handa  <handa@etl.go.jp>
7894         * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
7895         Always store string in multibyte representation in echobuf.
7896         (echo_char): Always store string in multibyte representation in
7897         echobuf.
7898         (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
7899         (read_key_sequence): Adjusted for the change of echo_prompt.
7901         * fns.c (Fmd5): Docstring improved.
7903         * lisp.h (detect_coding_system): Prototype adjusted.
7905         * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
7906         (detect_coding_emacs_mule, detect_coding_iso2022,)
7907         (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
7908         (detect_coding_utf_16, detect_coding_ccl): Make them static.
7909         New argument MULTIBYTEP.  Callers changed.
7910         (detect_coding_mask, detect_coding_system): New argument
7911         MULTIBYTEP.  Callers changed.
7912         (decode_coding_string): Set coding->src_multibyte and
7913         coding->dst_multibyte before calling detect_coding and detect_eol.
7914         Update them after some coding system is detected.
7916 2000-12-13  Stefan Monnier  <monnier@cs.yale.edu>
7918         * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
7920         * keyboard.c (menu_bar_items, tool_bar_items):
7921         Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
7923 2000-12-13  Gerd Moellmann  <gerd@gnu.org>
7925         * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7926         New variables.
7927         (unwind_create_frame, unwind_create_tip_frame): New functions.
7928         (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7929         while a frame is only partially constructed.
7931         * xterm.h (x_free_frame_resources): Declare.
7933         * xterm.c (x_free_frame_resources): New function.
7934         (x_destroy_window): Use it.
7936         * dispnew.c (update_window): If do_mouse_tracking is non-nil,
7937         don't interrupt the update for pending input initially, i.e.
7938         update at least some lines.
7940         * keyboard.c (do_mouse_tracking): Make externally visible.
7942         * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
7944         * xfns.c (gray_bitmap_bits): Declare `char *'.
7946 2000-12-12  Gerd Moellmann  <gerd@gnu.org>
7948         * xdisp.c (display_tool_bar_line): Make sure that tool bar
7949         lines start with a relief line.
7951 2000-12-12  Dave Love  <fx@gnu.org>
7953         * window.c (Fdisplay_buffer): Doc fix.
7954         (Fwindow_list): Remove unused var.
7956         * buffer.h (mmap_set_vars): Declare.
7958         * window.h (Fset_window_point): Declare.
7960 2000-12-12  Eli Zaretskii  <eliz@is.elta.co.il>
7962         * msdos.c (fast_find_position): Don't overstep the last window row.
7963         (IT_note_mouse_highlight): Initialize portion to -1.  Remove unused
7964         variable `area'.  When looking for a row under (X,Y), give up if some
7965         of the previous rows is not enabled.
7967 2000-12-12  Gerd Moellmann  <gerd@gnu.org>
7969         * window.c (Fset_window_point): If displaying cursors in windows
7970         other than the selected window, make sure redisplay updates
7971         other windows to show the new value of point in the window.
7973         * dispextern.h (cursor_in_non_selected_windows): Declare extern.
7975         * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
7976         the buffer is the sole visible buffer when in the mini-buffer.
7978         * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
7979         Bind `inhibit-read-only' to t.
7980         (unwind_with_echo_area_buffer): Use AREF.
7982         * xfns.c (Fx_hide_tip): Simplified.
7984         * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
7985         instead of `1'.
7987         * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
7989 2000-12-11  Gerd Moellmann  <gerd@gnu.org>
7991         * xfns.c (Fx_hide_tip): Fix last change.
7993         * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
7994         nothing to do.  Bind inhibit-quit.
7995         (tip_frame): Make it a Lisp_Object.
7996         (x_create_tip_frame): Set tip_frame after it has been added to
7997         Vframe_list.
7998         (Fx_show_tip): Don't set tip_frame here.
8000         * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
8002         * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
8003         Lisp_Object.
8005         * dispextern.h: Change external declaration of tip_frame.
8007         * keymap.c (Fkey_description): If KEYS is an empty key sequence,
8008         return an empty string.
8010         * xdisp.c (try_cursor_movement): Check update_mode_lines instead
8011         of the window's update_mode_line flag, since the former is set by
8012         force-mode-line-update, not the latter.  This makes
8013         column-number-mode slightly faster.
8015         * xdisp.c (try_window_id) <all changes above window start>:
8016         Set the cursor.
8018 2000-12-11  Paul Eggert  <eggert@twinsun.com>
8020         * config.in (HAVE_FTELLO): Remove.
8021         (HAVE_FSEEKO): Add.
8022         (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
8023         * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
8024         HAVE_FTELLO.
8025         * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
8026         * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
8028 2000-12-11  Miles Bader  <miles@gnu.org>
8030         * window.c (displayed_window_lines): Don't round up when
8031         converting empty space at bottom to lines.
8032         Handle non-newline-terminated final lines properly.
8033         (Fwindow_text_height): New function (used to be in lisp).
8034         (syms_of_window): Initialize it.
8036 2000-12-09  Stefan Monnier  <monnier@cs.yale.edu>
8038         * syntax.c (scan_lists): Check that the right quote char has the
8039         right Sstring syntax when jumping over strings.
8040         (init_syntax_once): Use Smax rather than 13.
8042 2000-12-09  Miles Bader  <miles@gnu.org>
8044         * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
8045         with PARTIALLY, inverting the sense.
8046         (window_scroll_pixel_based): Scroll partially visible lines into
8047         place if we hit the beginning or end of the buffer.
8048         (displayed_window_lines): Don't include partially visible lines.
8049         (Fmove_to_window_line): Skip past any partially visible first line.
8051 2000-12-08  Gerd Moellmann  <gerd@gnu.org>
8053         * keymap.c (current_minor_maps): Use malloc.  Prevent a leak.
8055         * tparam.c (tparam1): Change the way buffers are reallocated to be
8056         portable and less obfuscated.
8058         * termcap.c (tgetent): Change the way buffers are reallocated to
8059         be portable and less obfuscated.
8061         * macros.c (store_kbd_macro_char): Change the way buffers are
8062         reallocated to be portable and less obfuscated.
8064         * lread.c (read1): Change the way buffers are reallocated to be
8065         portable and less obfuscated.
8067         * doc.c (Fsubstitute_command_keys): Change the way buffers
8068         are reallocated so that it is portable.
8070 2000-12-07  Eli Zaretskii  <eliz@is.elta.co.il>
8072         * dosfns.c (Ffile_system_info): New function.
8073         (syms_of_dosfns): Defsubr it.
8075 2000-12-07  Stefan Monnier  <monnier@cs.yale.edu>
8077         * alloc.c (gc_sweep): Add comment.
8079 2000-12-07  Gerd Moellmann  <gerd@gnu.org>
8081         * sound.c (vox_configure): Change order of ioctls.
8082         Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
8083         Ignore errors when changing volume.
8084         (vox_close): Don't reset the device.
8086         * process.c (read_process_output): Make sure the process marker's
8087         position is valid when the process buffer is changed in
8088         after-change functions.  W3 does that.
8090         * xfns.c (x_free_gcs): New function.
8092         * xterm.h (x_free_gcs): Add prototype.
8094         * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
8095         freeing GCs here.
8097         * xterm.c (x_destroy_window): Call x_free_gcs so that
8098         resources of non-toolkit X windows will be freed.
8100 2000-12-07  Andrew Innes  <andrewi@gnu.org>
8102         * w32fns.c (xlfd_charset_of_font): Fix last change.
8104 2000-12-06  Dave Love  <fx@gnu.org>
8106         * md5.h (__P): Don't define -- it comes from config.h.
8108         * strftime.c: Change some #if foo to #ifdef foo.
8110 2000-12-06  Andrew Innes  <andrewi@gnu.org>
8112         * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
8114         * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
8115         (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
8116         (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
8118 2000-12-06  Gerd Moellmann  <gerd@gnu.org>
8120         * alloc.c (gc_sweep): Prevent symbols read during loadup
8121         from being freed.
8123         * xdisp.c (underlying_face_id): New function.
8124         (handle_face_prop, face_before_or_after_it_pos): Use it
8125         to determine the face ``under'' a string.  Let strings inherit
8126         the face of the buffer under them.
8128         * xfaces.c (face_at_string_position): Update function comment.
8130         * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
8131         matrix if the window's left position has changed; we need to
8132         redraw it in this case.
8134         * dispextern.h (struct glyph_matrix): Add member window_left_x.
8136         * window.c (coordinates_in_window): Check mouse on mode-line or
8137         header-line first.
8139         * alloc.c (Fgarbage_collect): Dox fix.  Return a list as
8140         advertized by the function documentation.
8142         * window.c (syms_of_window): Doc fix.
8144         * sound.c (vox_configure): Set volume for left and right channel.
8145         (sound_cleanup): Return nil.
8147         * xdisp.c (move_it_by_lines): Fix paren typo.
8149         * xterm.c (x_load_font): Don't use the font's max_bounds for
8150         computing the height of the font.  If max_bounds' ascent or
8151         descent are greater than the font's ascent or descent, this means
8152         glyphs overlap, which should be handled now by redisplay.
8154         * window.c (Veven_window_heights): New variable.
8155         (syms_of_window): DEFVAR_LISP it.
8156         (Fdisplay_buffer): Check Veven_window_heights before evening the
8157         window heights.
8159 2000-12-06  Miles Bader  <miles@gnu.org>
8161         * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
8162         update `default-frame-alist' instead of setting no frame parameters.
8164 2000-12-06  Kenichi Handa  <handa@etl.go.jp>
8166         * composite.c (update_compositions): Fix typo (use the correct
8167         variable).
8169 2000-12-05  Jason Rumney  <jasonr@gnu.org>
8171         * md5.h: Remove underscores from function declarations.
8172         (__attribute__, __alignof__) [!__GNUC__]: Define.
8174         * md5.c: Delay include of md5.h until after namespace cleaning.
8176         * makefile.w32-in (fns.o): Depend on md5.h
8177         (md5.o): New target.
8178         (sunfns.o): Remove.
8180         * makefile.nt: Likewise.
8182 2000-12-05  Jason Rumney  <jasonr@altavista.net>
8184         * w32term.c (expose_area): Complete last change.
8186 2000-12-05  Ken Raeburn  <raeburn@gnu.org>
8188         * minibuf.c: Include intervals.h.
8190 2000-12-05  Jason Rumney  <jasonr@gnu.org>
8192         * w32term.c (x_produce_glyphs): If a font for a component of
8193         a composition is not found, use 1 pixel dot ascent and 0 dot
8194         descent value to avoid displaying terribly tall empty boxes.
8195         (expose_area): Pass x-coordinate relative to the exposed
8196         area to x_draw_glyphs instead of a window-relative coordinate.
8198 2000-12-05  Gerd Moellmann  <gerd@gnu.org>
8200         * xdisp.c (next_element_from_ellipsis): Save face before selective
8201         display in saved_face_id, and set face_before_selective_p.
8202         (reseat_1): Reset face_before_selective_p.
8203         (append_space, extend_face_to_end_of_line): If iterator's
8204         face_before_selective_p is set, use the face from saved_face_id.
8205         (extend_face_to_end_of_line): For tty frames, make sure to
8206         use the right face id when producing spaces at the end of
8207         the line.
8209         * dispextern.h (struct it): Add face_before_selective_p.
8211         * keyboard.c (record_char): Don't record identical help-echo
8212         events in recent_keys.
8214         * xterm.c [USE_X_TOOLKIT]: Close the display.
8215         (xim_close_dpy): Handle case that the display has been closed.
8217         * xterm.c (x_destroy_window): Reset the frame's X window after
8218         destroying it.
8220         * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
8221         variable window_width.
8222         (line_draw_cost): Fix code skipping over spaces at the end of the
8223         line when must_write_spaces is not set.
8224         (scrolling_window): Fix code inserting runs in list of all runs.
8226 2000-12-05  Kenichi Handa  <handa@etl.go.jp>
8228         * coding.c (setup_coding_system): Be sure to initialize
8229         coding->category_idx.
8231 2000-12-04  Gerd Moellmann  <gerd@gnu.org>
8233         * xterm.c (PER_CHAR_METRIC): Removed because not used.
8235         * xterm.c (expose_area): Pass x-coordinate relative to the exposed
8236         area to x_draw_glyphs instead of a window-relative coordinate.
8238         * fileio.c (auto_save_error): Add parameter ERROR.  Show the
8239         error in the message.
8241         * keyboard.c (Fread_key_sequence): Don't start the busy cursor
8242         timer after having read a key.  It's not good for code reading
8243         several keys in a loop, like an input method.
8245         * fileio.c (Finsert_file_contents): When VISIT is t, don't
8246         record undo information for format-decode.
8248         * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
8249         current buffer is read-only, not if it isn't.
8251         * keyboard.c (record_char): Record `help-echo' input events
8252         in recent_keys only if they display some help.  Don't record
8253         `help-echo' events as macro char.
8255 2000-12-04  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
8257         * editfns.c (save_excursion_restore): Don't move point
8258         in another window if it is showing the wrong buffer.
8259         Avoid the call to Fwindow_live_p, for speed.
8261 2000-12-04  Kenichi Handa  <handa@etl.go.jp>
8263         * xfaces.c (struct font_name): New member registry_priority.
8264         (split_font_name): Initialize the above member to zero.
8265         (concat_font_list): New function.
8266         (font_list): Include fonts of all alternative registries.
8267         (FONT_POINT_SIZE_QUANTUM): New macro.
8268         (better_font_p): Ignore point size difference less than
8269         FONT_POINT_SIZE_QUANTUM.  Use registry_prioprity as a last resort.
8271         * xterm.c (x_produce_glyphs): If a font for a component of
8272         a composition is not found, use 1 pixel dot ascent and 0 dot
8273         descent value to avoid displaying terribly tall empty boxes.
8275         * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
8277 2000-12-03  Ken Raeburn  <raeburn@gnu.org>
8279         * coding.h (code_convert_string1): Declare.
8281         * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
8283         * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
8285 2000-12-02  Jason Rumney  <jasonr@gnu.org>
8287         * w32term.c (w32_bdf_per_char_metric): Dereference pointer
8288         correctly for single byte character case.
8289         (w32_per_char_metric): Do not try to make any assumptions about
8290         the metrics of BDF fonts.
8291         (x_estimate_mode_line_height): If `mode-line' face
8292         hasn't a font, use that of the frame, as drawing glyphs does.
8293         (note_mouse_highlight): Change the cursor shape on the vertical
8294         border between windows [not enabled].
8296         * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
8298         * w32fns.c (Fx_create_frame): Reintroduce the call to
8299         face-set-after-frame-defaults.
8300         (Vx_window_horizontal_drag_shape): New variable.
8301         (syms_of_xfns): DEFVAR_LISP it.
8302         (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
8303         enabled].
8305 2000-12-02  Simon Josefsson  <simon@josefsson.org>
8307         * fns.c (Fmd5): Use a different logic to decide the coding system
8308         to use.
8310         * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
8312 2000-12-02  Eli Zaretskii  <eliz@is.elta.co.il>
8314         * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
8316 2000-12-01  Gerd Moellmann  <gerd@gnu.org>
8318         * xterm.c (x_calc_absolute_position): Don't subtract menubar's
8319         height for YNegative.
8320         (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
8321         height; also see comment there.
8323         * window.c (coordinates_in_window): Handle computations for
8324         positions on the vertical bar and fringes differently for
8325         window-system frames.  Consider some pixels near the vertical bar
8326         as on the bar if the frame doesn't have vertical scroll bars.
8327         Associate positions between mode or header lines with the
8328         right window, the left one.
8330 2000-12-01  Jason Rumney  <jasonr@gnu.org>
8332         * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
8334         * w32xfns.c (get_frame_dc): Avoid changing the palette on an
8335         invalid frame.
8337 2000-12-01  Gerd Moellmann  <gerd@gnu.org>
8339         * window.c (struct saved_window): Add members orig_top and orig_height.
8340         (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
8341         (save_window_save, Fset_window_configuration): Save/restore
8342         window's orig_top and orig_height.
8344 2000-12-01  Jason Rumney  <jasonr@gnu.org>
8346         * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
8348         * w32fns.c (x_set_cursor_color): Fix last change.
8350 2000-11-30  Gerd Moellmann  <gerd@gnu.org>
8352         * xdisp.c (echo_area_display): If cursor is in the echo area, make
8353         sure that the next redisplay displays the minibuffer, so that
8354         the cursor will be replaced with what the minibuffer wants.
8356         * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
8357         #ifndef instead of using #if.
8358         (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
8359         USE_TOOLKIT_SCROLL_BARS is defined.
8361 2000-11-30  Jason Rumney  <jasonr@gnu.org>
8363         * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
8364         x_display_cursor.
8366 2000-11-30  Gerd Moellmann  <gerd@gnu.org>
8368         * fns.c (Fmd5): Doc fix.
8370 2000-11-30  Simon Josefsson  <simon@josefsson.org>
8372         * fns.c (Fmd5): New function.
8373         (syms_of_fns): Defsubr md5.
8375         * Makefile.in (obj): Add md5.o
8377 2000-11-30  Gerd Moellmann  <gerd@gnu.org>
8379         * md5.h, md5.c: New files, taken from glibc.
8381         * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
8383         * xterm.c (x_estimate_mode_line_height): If `mode-line' face
8384         hasn't a font, use that of the frame, as drawing glyphs does.
8386 2000-11-29  Stefan Monnier  <monnier@cs.yale.edu>
8388         * eval.c (Frun_hooks): Allow 0 arguments.
8390 2000-11-29  Gerd Moellmann  <gerd@gnu.org>
8392         * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
8393         is over the menu bar widget, say it's not on the frame.
8395         * xfns.c (Fx_create_frame): Reintroduce the call to
8396         face-set-after-frame-defaults.
8398         * eval.c (Fsignal): Reset handling_signal.
8400 2000-11-28  Jason Rumney  <jasonr@gnu.org>
8402         * w32menu.c (add_menu_item): Reset menu item text when changing
8403         type to radio button.
8405 2000-11-28  Gerd Moellmann  <gerd@gnu.org>
8407         * xselect.c: Update copyright.
8409         * window.c (coordinates_in_window): If on a mode or header line,
8410         but sufficiently close to its start, return ``on vertical
8411         border''.  This gives us a way to drag windows horizontally when
8412         using toolkit scroll bars.
8414         * xterm.c (note_mouse_highlight): Change the cursor shape
8415         on the vertical border between windows.
8417         * xterm.h (struct x_output): Add member horizontal_drag_cursor.
8419         * xfns.c (Vx_window_horizontal_drag_shape): New variable.
8420         (syms_of_xfns): DEFVAR_LISP it.
8421         (x_set_mouse_color): Create frame's horizontal_drag_cursor.
8423         * textprop.c (text_read_only): New function.
8424         (verify_interval_modification): Use it instead of signaling
8425         `text-read-only'.  This makes it easier to catch this error
8426         with a breakpoint.:
8428         * xdisp.c (forward_to_next_line_start): Check for newlines,
8429         not end of line, which includes CR.
8431 2000-11-28  Kenichi Handa  <handa@etl.go.jp>
8433         * coding.c (Ffind_coding_systems_region_internal): Be sure to
8434         include no-conversion.
8436 2000-11-27  Jason Rumney  <jasonr@gnu.org>
8438         * w32fns.c (w32_load_system_font): Always mark font as double byte
8439         if codepage is unicode.
8441 2000-11-27  Gerd Moellmann  <gerd@gnu.org>
8443         * xdisp.c (forward_to_next_line_start): If already on a newline,
8444         just consume it to avoid unintended skipping over invisible text below.
8446         * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
8447         `vertical-line', `mode-line' and `header-line' events.
8449         * xdisp.c (try_window_id): Avoid starting to display in the middle
8450          of a character, a TAB for instance.  This is easier than to set
8451          up the iterator exactly, and it's not a frequent case, so the
8452          additional effort wouldn't really pay off.
8454 2000-11-26  Andrew Choi  <akochoi@i-cable.com>
8456         * emacs.c (main) [macintosh]: Call syms_of_frame before calling
8457         init_window_once.
8459 2000-11-25  Jason Rumney  <jasonr@gnu.org>
8461         * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
8462         Args to window_from_coordinates should be pixel coordinates.
8464         * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
8465         redisplay handles them properly.
8467 2000-11-25  Miles Bader  <miles@gnu.org>
8469         * indent.c (compute_motion): Keep pos_byte in sync with pos.
8471 2000-11-24  Jason Rumney  <jasonr@gnu.org>
8473         * w32.c (init_environment): Set LANG environment variable based on
8474         locale settings, if not set.
8476         * w32fns.c (x_set_tool_bar_lines): Clear internal border when
8477         making tool bar smaller. When clearing the frame, also
8478         clear current matrices. Clear frame when tool bar disappears.
8479         Don't use more lines for the tool-bar than is available.
8480         (x_change_window_heights): New function.
8482 2000-11-24  Gerd Moellmann  <gerd@gnu.org>
8484         * xdisp.c (init_from_display_pos): If POS says we're already after
8485          an overlay string ending at POS, make sure to pop the iterator
8486          because it will be in front of that overlay string.  When POS is
8487          ZV, we've thereby also ``processed'' overlay strings at ZV.
8489         * xfaces.c (lface_from_face_name): Function comment fix.
8491 2000-11-24  Miles Bader  <miles@gnu.org>
8493         * xdisp.c (display_menu_bar, display_mode_line): Change the way we
8494         apply `mode-line-inverse-video' -- zero means force display using
8495         the default face, non-zero means display using the specialized face.
8496         (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
8498 2000-11-23  Kenichi Handa  <handa@etl.go.jp>
8500         * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
8501         hard coded `4'.
8503 2000-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
8505         * coding.c (decode_coding_emacs_mule): Fix the case of
8506         CODING_EOL_LF, which used uninitialized value of c.
8508 2000-11-23  Stefan Monnier  <monnier@cs.yale.edu>
8510         * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
8512 2000-11-22  Gerd Moellmann  <gerd@gnu.org>
8514         * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
8515         buffer object.
8517         * frame.h (struct frame): Replace desired_tool_bar_items,
8518         current_tool_bar_items, n_desired_tool_bar_items,
8519         n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
8521         * frame.c (make_frame): Change initialization of tool bar
8522         items accordingly.
8524         * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
8525         Change references to members deleted from struct frame to use the
8526         new ones.
8528         * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
8529         references to members deleted from struct frame to use the new ones.
8531         * dispnew.c (update_frame): Do nothing with frame's tool bar items.
8533         * alloc.c (mark_object) <frame>: Mark tool bar items differently.
8535         * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
8536         (note_tool_bar_highlight): Change references to members deleted
8537         from struct frame to use the new ones.
8539 2000-11-23  Miles Bader  <miles@gnu.org>
8541         * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
8542         the face's inverse-video attribute, rather than overriding it.
8544 2000-11-22  Gerd Moellmann  <gerd@gnu.org>
8546         * xfns.c (x_set_tool_bar_lines): Clear internal border when
8547         making tool bar smaller.
8549 2000-11-22  Dave Love  <fx@gnu.org>
8551         * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
8553 2000-11-22  Miles Bader  <miles@gnu.org>
8555         * keyboard.c (Vminibuffer_message_timeout): New variable.
8556         (command_loop_1): Use it to determine message timeout.
8557         (syms_of_keyboard): Initialize it.
8559         * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
8561 2000-11-22  Kenichi Handa  <handa@etl.go.jp>
8563         * sysdep.c: Move the code for declaring h_errno after #include
8564         <netdb.h>.
8566 2000-11-21  Gerd Moellmann  <gerd@gnu.org>
8568         * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
8569         the menu bar when the tooltip is unmapped.
8571         * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
8572         sole visible buffer when we're currently in the mini-buffer, and
8573         give up if so.
8575 2000-11-21  Jason Rumney  <jasonr@gnu.org>
8577         * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
8578         put on the clipboard.
8579         (Fw32_get_clipboard_data): Compare data on clipboard with saved
8580         copy of what Emacs last put there. If they are the same, do not
8581         use the clipboard copy to avoid losing data due to coding conversions.
8583 2000-11-22  Miles Bader  <miles@gnu.org>
8585         * minibuf.c (Vminibuffer_prompt_properties): New variable.
8586         (syms_of_minibuf): Initialize it.
8587         (read_minibuf): Add properties from Vminibuffer_prompt_properties
8588         to prompt, don't make read-only.
8590 2000-11-21  Gerd Moellmann  <gerd@gnu.org>
8592         * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
8593         Add BEFORE/AFTER_POTENTIAL_GC.
8595         * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
8597         * buffer.c (mmap_free_1): Avoid a compiler warning.
8599         * term.c, cm.c: Don't try to include termcap.h; see comment there.
8601 2000-11-21  Kenichi Handa  <handa@etl.go.jp>
8603         * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
8604         ... #endif scope.
8606 2000-11-20  Gerd Moellmann  <gerd@gnu.org>
8608         * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
8609         screen supports it.
8611         * s/gnu-linux.h: Don't use `#cpu'.
8613         * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
8614         not defined in mman.h.
8616         * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
8617         (x_send_scroll_bar_event): Store the window in scroll_bar_windows
8618         and store an index in the XClientMessageEvent.  Storing a
8619         Lisp_Object or pointer can fail on a 64 bit system, since X only
8620         transfers 32 bits.
8621         (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
8623 2000-11-20  Dave Love  <fx@gnu.org>
8625         * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
8627 2000-11-20  Gerd Moellmann  <gerd@gnu.org>
8629         * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
8631 2000-11-20  Kenichi Handa  <handa@etl.go.jp>
8633         * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
8634         by WIDTH.
8636         * alloc.c (make_string): Fix previous change.  Be sure to make
8637         unibyte string correctly.
8639 2000-11-19  Gerd Moellmann  <gerd@gnu.org>
8641         * window.c (Fwindow_list): Change parameter list to be XEmacs
8642         compatible.
8643         (window_list_1): New function.
8644         (window_loop): Use it instead of Fwindow_list.
8646         * sysdep.c (emacs_ospeed): New variable.
8647         (toplevel): Don't declare ospeed extern.
8648         (init_baud_rate): Use emacs_ospeed instead of ospeed.
8650         * termcap.c (ospeed): Remove.
8651         (tputs) [!emacs]: Remove unused code.
8652         (tgetent): Avoid a compiler warning.
8654         * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
8655         (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
8656         SCROLL_BAR_X_WIDGET with additional argument DPY.
8658         * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
8659         removed.
8660         (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
8661         Take the X display as additional argument.
8662         (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
8663         `Widget' is a pointer type that's not easily stored in Lisp_Object
8664         form in a portable way.
8666         * dispnew.c (update_text_area): Fix last change.
8668 2000-11-18  Gerd Moellmann  <gerd@gnu.org>
8670         * xdisp.c: Use BINDING_STACK_SIZE throughout.
8672         * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
8673         clear current matrices.
8675         * buffer.c (mmap_enlarge): Don't print a message on stderr
8676         if mapping new memory at the end of the existing region fails.
8678         * dispnew.c (update_text_area): Don't skip over equal glyphs
8679         when the last current glyph overlaps the glyph to its right.
8681 2000-11-18  Miles Bader  <miles@gnu.org>
8683         * xdisp.c (message_log_check_duplicate): Let "..."-detection match
8684         lines that *end* with "..." too (that's the most common case!).
8686 2000-11-18  Gerd Moellmann  <gerd@gnu.org>
8688         * xdisp.c (resize_mini_window): Temporarily change to the
8689         mini-window's buffer if necessary.
8691         * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
8692         the tooltip obscures less text under it.
8694 2000-11-17  Gerd Moellmann  <gerd@gnu.org>
8696         * puresize.h (BASE_PURESIZE): Increase to 700000.
8698 2000-11-18  Jason Rumney  <jasonr@gnu.org>
8700         * w32term.c (w32_draw_bitmap): Use face to set colors.
8702 2000-11-17  Dave Love  <fx@gnu.org>
8704         * lread.c (Fload): Fix #ifdef for pcc.
8706 2000-11-17  Gerd Moellmann  <gerd@gnu.org>
8708         * xdisp.c (pos_visible_p): Compute the default character height
8709         differently.
8711 2000-11-16  Gerd Moellmann  <gerd@gnu.org>
8713         * xdisp.c (pos_visible_p): Handle case that we reach ZV without
8714         knowing the line's height; use the default font's height in that case.
8716         * xfaces.c (weight_table): Add `demi' with the same meaning as
8717         `demibold'.
8719 2000-11-16  Kenichi Handa  <handa@etl.go.jp>
8721         * dispnew.c (null_row): New global static variable.
8722         (clear_glyph_row): Delete local static variable null_row.
8724 2000-11-15  Jason Rumney  <jasonr@gnu.org>
8726         * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
8727         (w32_alloc_lighter_color): Use new brightness calculations from
8728         xterm.c. Scale delta to be in the range expected by W32.
8729         (w32_draw_relief_rect): Use frame relief colors.
8731 2000-11-15  Gerd Moellmann  <gerd@gnu.org>
8733         * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
8734         (Qinhibit_default_face_x_resources): New variable.
8735         (syms_of_frame): Initialize it.
8736         (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
8738         * xdisp.c (pos_visible_p): Improve function comment.
8740         * lisp.h (BINDING_STACK_SIZE): New macro.
8742         * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
8743         reading the directory if readdir returns null and errno is EAGAIN
8744         or EINTR.
8746 2000-11-14  Stefan Monnier  <monnier@cs.yale.edu>
8748         * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
8749         so setting scroll-step to 1 doesn't defeat scroll-conservatively.
8750         Set amount_to_scroll to max of dx and scroll_step so that
8751         scroll-conservatively doesn't defeat scroll-step>1.
8752         (syms_of_xdisp): Add a hint in scroll-step's docstring to use
8753         scroll-conservatively for line-at-a-time scrolling.
8755 2000-11-14  Gerd Moellmann  <gerd@gnu.org>
8757         * window.c (Fpos_visible_in_window_p): Call pos_visible with
8758         extra argument.
8760         * xdisp.c (current_mode_line_height, current_header_line_height):
8761         New variables.
8762         (init_xdisp): Initialize them.
8763         (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P.  Compute
8764         and use exact mode line heights if it is set.
8766         * lisp.h (pos_visible_p): Change prototype.
8768         * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
8769         (CURRENT_HEADER_LINE_HEIGHT):  Look at current_mode_line_height
8770         and current_header_line_height first.
8771         (current_mode_line_height, current_header_line_height):
8772         Declare extern.
8774 2000-11-14  Miles Bader  <miles@lsi.nec.co.jp>
8776         * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
8777         Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
8778         (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
8780 2000-11-14  Miles Bader  <miles@gnu.org>
8782         * xterm.c (x_alloc_lighter_color): Include an additive component
8783         too for dark colors, because FACTOR isn't enough.
8784         (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
8785         New macros.
8787 2000-11-13  Gerd Moellmann  <gerd@gnu.org>
8789         * keyboard.c (show_help_echo): Call message3_nolog with number of
8790         bytes in the help string as 2nd parameter, instead of the number
8791         of characters.
8793 2000-11-13  Miles Bader  <miles@gnu.org>
8795         * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
8796         (Fload): Use new openp return protocol.
8797         Don't try to use Vload_source_file_function to load .elc files.
8798         * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
8799         openp return protocol.
8800         * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
8802 2000-11-11  Kenichi Handa  <handa@etl.go.jp>
8804         * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
8806         * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
8807         Defined these macros.
8808         (NLIST_STRUCT): Avoid re-defining it.
8810         * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
8811         -I/usr/contrib/X11R6/include.
8812         (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
8814 2000-11-10  Jason Rumney  <jasonr@gnu.org>
8816         * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
8818         * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
8819         (w32_use_unicode_for_codepage): Use new pseudo-codepages.
8821         * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
8822         (Qw32_charset_vietnamese): New symbol.
8823         (xlfd_charset_of_font): New function.
8824         (w32_load_system_font): Use it.
8825         (x_to_w32_charset): Use Fassoc to find charset info. Special case
8826         when Vw32_charset_info_alist is nil to ensure default face always
8827         has font. Use Fcar and Fcdr for safety.
8828         (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
8829         (w32_codepage_for_font): Use xlfd_charset_of_font.  Use new
8830         pseudo-codepages for special cases.
8831         (w32_to_x_font): New parameter to allow charset portion to be
8832         specified where there is many to one mapping.  Callers changed.
8833         (w32_list_fonts): Avoid listing fonts that won't display.
8835 2000-11-10  Gerd Moellmann  <gerd@gnu.org>
8837         * xfaces.c (Vface_alternative_font_registry_alist): New variable.
8838         (font_list_1): Renamed from font_list.
8839         (font_list): New function, trying alternative registries from
8840         Vface_alternative_font_registry_alist.
8841         (Finternal_set_alternative_font_registry_alist): New function.
8842         (syms_of_xfaces): Initialize and Staticpro
8843         Vface_alternative_font_registry_alist.
8844         Defsubr Finternal_set_alternative_font_registry_alist.
8846 2000-11-09  Ken Raeburn  <raeburn@gnu.org>
8848         * lisp.h (Flooking_at): Declare.
8850 2000-11-09  Gerd Moellmann  <gerd@gnu.org>
8852         * dired.c (directory_files_internal): Fix a braino.
8854         * dired.c (directory_files_internal): Add missing GCPRO's.
8855         Some cleanup.
8857 2000-11-08  Gerd Moellmann  <gerd@gnu.org>
8859         * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
8860         (resize_mini_window): Return quickly if Vresize_mini_window is
8861         nil.  Don't return if Vmax_mini_window_height is nil.
8863         * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
8864         (syms_of_xdisp): Initialize them.
8865         (resize_mini_window): Act according to the setting of
8866         Vresize_mini_window.
8867         (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
8869         * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
8870         scroll bar widget after configuring it, so that it will appear at
8871         the right position from the start.
8872         (XTredeem_scroll_bar): Cleaned up.
8874 2000-11-08  Kenichi Handa  <handa@etl.go.jp>
8876         * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change.  If the
8877         font is taller than the frame line, we don't have to bias the
8878         division by two.
8880         * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
8882 2000-11-07  Dave Love  <fx@gnu.org>
8884         * config.in (HAVE_MKSTEMP): Add.
8886         * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
8888 2000-11-07  Gerd Moellmann  <gerd@gnu.org>
8890         * window.c (Fset_window_configuration): Don't try to preserve
8891         point in the current buffer, if that buffer is displayed in more
8892         than one window.
8894         * xfaces.c (lookup_named_face): If default face isn't realized,
8895         try to realize it.  Return -1 if not successful.
8896         (Fx_list_fonts): Handle case that face cannot be determined.
8897         (Fface_font): Likewise.
8899 2000-11-06  Gerd Moellmann  <gerd@gnu.org>
8901         * window.c (displayed_window_lines): Detect partially
8902         visible lines at the bottom correctly.
8904 2000-11-06  Stefan Monnier  <monnier@cs.yale.edu>
8906         * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
8907         when ensuring we don't do visit in indirect buffer.
8909 2000-11-06  Kenichi Handa  <handa@etl.go.jp>
8911         * composite.h (compose_chars_in_text): Add prototype.
8913         * composite.c (Vcomposition_function_table): New variable.
8914         (Qcomposition_function_table): New variable.
8915         (run_composition_function): Call
8916         Vcompose_chars_after_function with three arguments.
8917         (compose_chars_in_text): New function.
8918         (syms_of_composite): Modified the doc-string of
8919         Vcompose_chars_after_function.  Declare composition-function-table
8920         as a lisp variable, and initialize it.
8922         * xfns.c (x_encode_text): Suppress producing escape sequences for
8923         composition.
8925         * xselect.c: Include composite.h.
8926         (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
8928 2000-11-05  Andrew Innes  <andrewi@gnu.org>
8930         * w32term.c (x_produce_glyphs): Fix typo in enum name.
8932         * sysdep.c (read_input_waiting): Remove extraneous argument to
8933         read_socket_hook.
8935         * w32fns.c (Fx_server_version): Include w32_build_number in the
8936         return list.
8938         * w32heap.c (w32_build_number): New variable.
8939         (cache_system_info): Set it.
8941         * w32heap.h (w32_build_number): Add extern.
8943         * emacs.c (syms_of_emacs): Update docstring for
8944         system-configuration, to reflect the actual usage on MS-Windows.
8946 2000-10-31  Gerd Moellmann  <gerd@gnu.org>
8948         * keyboard.c (read_char) <wrong_kboard>: Make sure that we
8949         process idle timers while waiting for another event.
8951         * dispnew.c (update_frame_line): Handle case where spaces in
8952         the default face are colored.
8954         * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
8955         window height hasn't changed.
8957 2000-10-31  Jason Rumney  <jasonr@gnu.org>
8959         * w32term.c (x_produce_glyphs): Handle composite characters.
8960         (x_draw_glyph_string_foreground)
8961         (x_draw_composite_glyph_string_foreground): Restore old font.
8963 2000-10-31  Miles Bader  <miles@lsi.nec.co.jp>
8965         * minibuf.c (read_minibuf): Reset the undo history just before
8966         starting the recursive-edit.
8968 2000-10-30  Gerd Moellmann  <gerd@gnu.org>
8970         * xfaces.c (menu_face_change_count): New variable.
8971         (Finternal_set_lisp_face_attribute): Increment it for changes
8972         of the `menu' face.
8973         (realize_basic_faces): Reflect changes in the `menu' faces
8974         in menu bars.
8976         * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
8977         dy obtained from the iterator's y-position after moving from
8978         scroll_margin_pos to PT; see comment there.
8980         * xdisp.c (safe_eval_handler): Call add_to_log.
8982         * xfaces.c (resolve_face_name): Handle case that FACE_NAME
8983         is not a symbol or string.
8985         * xdisp.c (echo_area_display): Don't perform a display update from
8986         inside redisplay.  The update will happen anyway at the end of
8987         redisplay, and it can confuse redisplay (GC messages while
8988         redisplaying, for instance.)
8990 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
8992         * xrdb.c (x_load_resources): Use the class name in the defaults.
8994         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
8995         (regex_compile): Catch bogus \(\1\).
8997 2000-10-30  Gerd Moellmann  <gerd@gnu.org>
8999         * xterm.c (x_alloc_nearest_color): Fix last change to compare
9000         RGB values.
9002         * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
9003         we have a color cache, check that the cached color equals the
9004         allocated color.  If not, clear the color cache.
9006         * window.c (displayed_window_lines): Change buffers if necessary.
9007         Fix computation of displayed lines.
9009         * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
9010         update_menu_bindings to DEFVAR_BOOL.
9012 2000-10-30  Kenichi Handa  <handa@etl.go.jp>
9014         * search.c (Fset_match_data): Be sure to make search_regs always sane.
9016         * puresize.h (BASE_PURESIZE): Increase to 680000.
9018         * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
9020 2000-10-29  Jason Rumney  <jasonr@gnu.org>
9022         * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
9024         * w32term.c (w32_bdf_per_char_metric): Negate descent.
9025         (w32_cache_char_metrics): Handle possibility that 'x' does not
9026         exist in a BDF font.
9027         (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
9029         * w32bdf.h (bdffont): Add nchars.
9031         * w32bdf.c (set_bdf_font_info): Set it.
9032         (w32_BDF_TextOut): Swap byte order of double byte characters.
9033         (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
9035 2000-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
9037         * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
9038         don't override the colors in frame's param_alist, unless they are
9039         unspecified.
9041         * term.c (reassert_line_highlight): If inverse_video is non-zero,
9042         reverse the effect of the highlight flag.
9044 2000-10-27  Ken Raeburn  <raeburn@gnu.org>
9046         * window.h (Fwindow_live_p): Declare.
9048         * undo.c (record_delete): Check that last_undo_buffer is really a
9049         buffer before applying XBUFFER to it.
9051         * keymap.c (where_is_internal): Pass lisp object, not integer, to
9052         Faref.
9054 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
9056         * lisp.h (KEYMAPP): New macro.
9057         (get_keymap): Remove.
9058         (get_keymap_1): Rename get_keymap.
9060         * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
9062         * xterm.c (note_mode_line_highlight): Use KEYMAPP.
9064         * xmenu.c (single_submenu): Use KEYMAPP.
9065         (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
9066         Use KEYMAPP rather than Fkeymapp.
9068         * w32term.c (note_mode_line_highlight): Use KEYMAPP.
9070         * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
9071         (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
9072         Use KEYMAPP rather than Fkeymapp.
9073         (single_submenu): Use KEYMAPP.
9074         (w32_menu_show, w32_dialog_show): Use TRUE.
9076         * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
9078         * keymap.c (KEYMAPP): Remove (moved to lisp.h).
9079         (Fkeymapp): Use KEYMAPP.
9080         (get_keymap): Rename from get_keymap_1.  Remove old def.
9081         Return t when autoload=0 and error=0 and the keymap needs autoloading.
9082         (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
9083         (Fminor_mode_key_binding): Don't raise an error if the binding
9084         is not a keymap.
9085         (Fuse_global_map, Fuse_local_map): Allow autoloading.
9086         (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
9088         * keyboard.c (read_char): get_keymap_1 -> get_keymap.
9089         Allow Vspecial_event_map to be autoloaded.
9090         (menu_bar_items): Fetch the keymap rather than using keymapp.
9091         (menu_bar_one_keymap): No need to follow func-indirect any more.
9092         (parse_menu_item): get_keymap_1 -> get_keymap.
9093         (tool_bar_items): Fetch the keymap rather than using keymapp.
9094         (read_key_sequence): Use KEYMAPP.
9096         * intervals.c (get_local_map): Use get_keymap rather than following
9097         function-indirections explicitly.
9099         * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
9101 2000-10-27  Jason Rumney  <jasonr@gnu.org>
9103         * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
9104         point, as Windows has oversized fonts.
9106         * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
9108 2000-10-27  Gerd Moellmann  <gerd@gnu.org>
9110         * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
9111         (freehook, reallochook): Handle null pointer arguments.
9112         (__malloc_initialize) [GC_MCHECK]: Call mcheck.
9114 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
9116         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
9117         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
9118         Giving in to popular pressure to shut up the compiler with casts.
9120 2000-10-27  Gerd Moellmann  <gerd@gnu.org>
9122         * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
9123         signed value, and use a default value computed from the font's
9124         maximum descent.
9126 2000-10-27  Miles Bader  <miles@lsi.nec.co.jp>
9128         * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
9129         that specify a negative underline position can still use underlines.
9131         * window.c (Fpos_visible_in_window_p): Make POS default to
9132         WINDOW's point, not the current buffer's point.
9134 2000-10-26  Dave Love  <fx@gnu.org>
9136         * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
9137         when it's necessary.
9139 2000-10-26  Gerd Moellmann  <gerd@gnu.org>
9141         * window.c (size_window): Compute size difference from sum of old
9142         child window sizes instead of from parent's size.
9144         * xdisp.c (pos_visible_p): Change current buffer if necessary.
9145         Handle obscured lines at the top of the window.
9147         * frame.c (Fdelete_frame): Doc fix.  Move running the hook
9148         down after the last error condition check.
9150         * frame.c (Fdelete_frame): Run delete-frame-hook.
9152 2000-10-26  Kenichi Handa  <handa@etl.go.jp>
9154         * coding.c (decode_coding): Fix previous change (check also
9155         CODING_MODE_LAST_BLOCK).
9157 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
9159         * regex.c: More `unsigned char' -> `re_char' changes.
9160         Also change several `int' into `re_wchar_t'.
9161         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
9162         (PUSH_FAILURE_POINTER): Don't cast any more.
9163         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
9164         We want GCC to complain, since this piece of code makes
9165         re_match non-reentrant, which *should* be fixed.
9166         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
9167         (EXTEND_BUFFER): Use RETALLOC.
9168         (SET_LIST_BIT): Don't cast.
9169         (re_wchar_t): New type.
9170         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
9171         that those two functions will always properly return.
9172         (IMMEDIATE_QUIT_CHECK): Cast to void.
9173         (analyse_first): Use recursion rather than an explicit stack.
9174         (re_compile_fastmap): Can't fail anymore.
9175         (re_search_2): Don't check re_compile_fastmap for failure.
9176         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
9177         Now also sets the new value (passed in a new argument).
9178         (re_match_2_internal): Use it.
9179         Also, use a new var `reg' of type size_t when looping through regs
9180         rather than reuse the inappropriate `mcnt'.
9182         * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
9183         (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
9184         (where_is_internal): Renamed from Fwhere_is_internal.
9185         Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
9186         (Fwhere_is_internal): New function wrapping where_is_internal.
9187         (where_is_internal_1): Handle the case where we're filling the cache.
9188         (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
9190 2000-10-25  Miles Bader  <miles@gnu.org>
9192         * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
9194 2000-10-25  Gerd Moellmann  <gerd@gnu.org>
9196         * window.c (pos_fully_visible_p): Removed.
9197         (Fpos_visible_in_window_p): Use pos_visible_p to determine
9198         if position is visible and/or fully visible.
9200         * lisp.h (pos_visible_p): Add prototype.
9202         * xdisp.c (pos_visible_p): New function.
9204 2000-10-25  Kenichi Handa  <handa@etl.go.jp>
9206         * process.c (send_process): If OBJECT is t, it means that the data
9207         is from C string, but we should encode it.  Before calling
9208         setup_raw_text_coding_system, be sure to flush out data by the
9209         previous coding system.
9211 2000-10-25  Miles Bader  <miles@lsi.nec.co.jp>
9213         * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
9214         assignment of startpos to prev when startpos == pos.
9216         * editfns.c (find_field): Set the field stickiness correctly from
9217         overlay fields.  Use renamed `text_property_stickiness'.
9218         (text_property_stickiness): Renamed from `char_property_stickiness'.
9219         Only check text properties, not overlays.
9220         * textprop.c (get_char_property_and_overlay): New function.
9221         (Fget_char_property): Use it.
9222         * intervals.h (get_char_property_and_overlay): Add declaration.
9224 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
9226         * keymap.c: Use AREF, ASET and ASIZE macros.
9227         (Fmake_sparse_keymap): Docstring fix.
9228         (synkey): Remove.
9229         (shadow_lookup): Move up.
9230         Handle the case where lookup-key returns an integer.
9231         (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
9232         (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
9233         (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
9234         Simplify/rewrite the keymap-finding code.
9235         Add check for command shadowing, using shadow_lookup.
9237 2000-10-24  Stefan Monnier  <monnier@cs.yale.edu>
9239         * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
9240         rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
9241         a symbol.
9243 2000-10-24  Andrew Innes  <andrewi@gnu.org>
9245         * dired.c (directory_files_internal_unwind): New function.
9246         (directory_files_internal): Use it to ensure closedir is called
9247         even if expand-file-name or file-attributes throw, eg. because of
9248         a user interrupt.  Also enable immediate_quit while calling
9249         re_search, so that matching can be interrupted as well.
9251 2000-10-24  Andrew Innes  <andrewi@gnu.org>
9253         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
9254         NT-Emacs only.
9255         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
9256         so that re_search functions only quit when callers expect them to.
9258 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
9260         * regex.c (regex_compile): Change the way of handling a range from
9261         a char less than 256 to a char not less than 256.
9263 2000-10-24  Gerd Moellmann  <gerd@gnu.org>
9265         * window.c (size_window): Prevent setting window's width or
9266         height to a negative value (esp. with XSETFASTINT).
9268         * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
9269         [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
9270         (protect_malloc_state) [GC_MALLOC_CHECK &&
9271         GC_PROTECT_MALLOC_STATE]: New function.
9272         (PROTECT_MALLOC_STATE): New macro.
9273         (__malloc_initialize, morecore, _malloc_internal)
9274         (_free_internal) _realloc_internal): Use it to make _heapinfo
9275         read-only outside of gmalloc.
9277         * keymap.c: Update copyright.
9279         * .gdbinit (xbacktrace): Handle case that $bt->function isn't
9280         a symbol.
9282 2000-10-24  Colin Walters  <walters@cis.ohio-state.edu>
9284         * filelock.c (unlock_all_files): Use unlock_file to expand each
9285         buffer's file_truename before trying remove its lock file.
9287 2000-10-24  Eli Zaretskii  <eliz@is.elta.co.il>
9289         * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
9290         or CRLF, decode EOLs.
9292 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
9294         * window.c (Fdisplay_buffer): Fix doc.
9296 2000-10-23  Jason Rumney  <jasonr@gnu.org>
9298         * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
9299         ASCII font of default fontset on Windows.
9301         * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
9302         xterm.c comment below).
9304         * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
9306 2000-10-23  Gerd Moellmann  <gerd@gnu.org>
9308         * xterm.c (x_connection_closed): Reset handling_signal.
9310         * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
9312 2000-10-23  Miles Bader  <miles@gnu.org>
9314         * window.c (window_scroll_pixel_based, window_scroll_line_based):
9315         Pass nil for FULLY argument to Fpos_visible_in_window_p to
9316         maintain old behavior.
9317         * minibuf.c (Fminibuffer_complete): Likewise.
9319 2000-10-23  Miles Bader  <miles@lsi.nec.co.jp>
9321         * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
9322         that when a font can't be exactly centered, it errs up rather than
9323         down.
9325 2000-10-23  ShengHuo ZHU  <zsh@cs.rochester.edu>
9327         * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
9329 2000-10-23  Andrew Choi  <akochoi@i-cable.com>
9331         * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
9333         * dispnew.c [macintosh]: Include macterm.h.
9334         (init_display) [macintosh]: Initialization for window system.
9336         * emacs.c (main) [macintosh]: Call syms_of_textprop,
9337         syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
9338         syms_of_search, x_term_init, and init_keyboard before calling
9339         init_window_once.  Also, call syms_of_xmenu.
9341         * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
9342         default fontset to Monaco.
9344         * frame.c [macintosh]: Include macterm.h.  Remove declarations of
9345         NewMacWindow and DisposeMacWindow.
9346         (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
9347         instead of calling NewMacWindow and setting fields of
9348         f->output_data.mac directly.  Call init_frame_faces.
9349         (Fdelete_frame) [macintosh]: Remove unused code.
9350         (Fmodify_frame_parameters) [macintosh]: Call
9351         x_set_frame_parameters instead of mac_set_frame_parameters.
9353         * frame.h [macintosh]: Define menu_bar_lines field in struct
9354         frame.  Define FRAME_EXTERNAL_MENU_BAR macro.
9356         * keyboard.c [macintosh]: Include macterm.h.
9357         (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
9358         and menu_bar_activate_event type events as for X and NT.
9359         (make_lispy_event) [macintosh]: Construct lisp events of type
9360         MENU_BAR_EVENT as for X and NT.
9362         * sysdep.c [macintosh]: Remove declaration for sys_signal.
9363         Include stdlib.h.  Remove definition of Vx_bitmap_file_path.
9364         (sys_subshell) [macintosh]: Remove definition entirely.
9365         (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
9366         Vwindow_system_version here.  Remove initialization of
9367         Vx_bitmap_file_path.
9368         (read_input_waiting): Correct the number of parameters passed to
9369         read_socket_hook.
9370         Move all Macintosh functions to mac/mac.c.
9372         * term.c [macintosh]: Include macterm.h.
9374         * window.c [macintosh]: Include macterm.h.
9376         * xdisp.c [macintosh]: Include macterm.h.  Declare
9377         set_frame_menubar and pending_menu_activation.
9378         (echo_area_display) [macintosh]: Do not return if terminal frame
9379         is the selected frame.
9380         (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
9381         Allow only the selected frame to set menu bar.
9382         (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
9383         calling FRAME_EXTERNAL_MENU_BAR (f).
9384         (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
9386         * xfaces.c [macintosh]: Include macterm.h.  Define x_display_info
9387         and check_x.  Declare XCreateGC.  Define x_create_gc and
9388         x_free_gc.  Initialize font_sort_order.
9389         (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
9390         but call x_list_fonts instead of w32_list_fonts.
9391         (Finternal_face_x_get_resource) [macintosh]: Do not call
9392         display_x_get_resource.
9393         (prepare_face_for_display) [macintosh]: Set xgcv.font.
9394         (realize_x_face) [macintosh]: Load the font if it is specified in
9395         ATTRS.
9396         (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
9398 2000-10-22  Stefan Monnier  <monnier@cs.yale.edu>
9400         * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
9401         is nil: since we go to the end of submap anyway, we'd end up
9402         setting nil to nil.
9403         (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
9404         doesn't obey autoload.
9406 2000-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
9408         * msdos.c (dos_set_window_size): Update screen dimension variables.
9410 2000-10-21  Jason Rumney  <jasonr@gnu.org>
9412         * w32term.c (w32_cache_char_metrics): Double check that font is
9413         really fixed pitch before trusting tmPitchAndFamily.
9415 2000-10-21  Andrew Innes  <andrewi@gnu.org>
9417         * w32gui.h (w32_char_font_type): Move enum from w32term.c
9419         * w32term.h: Extern decl for w32_cache_char_metrics.
9421         * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
9423         * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
9424         (w32_unload_font): Free per_char array if present.
9426         * w32term.c (w32_per_char_metric): Remove HDC argument.  Use
9427         cached information in emulated XFontStruct to handle common cases
9428         quickly.  Do not allocate XCharStruct for return.
9429         (w32_native_per_char_metric): New function.
9430         (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
9431         allocating one.
9432         (x_produce_glyphs): Don't get an HDC.  Change calls to
9433         w32_per_char_metric to match arg change above.  Remove calls to
9434         free results.
9435         (w32_get_glyph_overhangs): Ditto.
9436         (w32_cache_char_metrics): New function.
9438         * makefile.w32-in: Change .obj to .$(O) in all dependencies.
9439         ($(BLD)/casefiddle.$(O)): Remove compile command.
9440         ($(BLD)/gmalloc.$(O)): Remove compile command.
9441         ($(BLD)/dispnew.obj):
9442         ($(BLD)/keyboard.obj):
9443         ($(BLD)/w32inevt.obj):
9444         ($(BLD)/w32bdf.obj):
9445         ($(BLD)/alloc.obj):
9446         ($(BLD)/buffer.obj):
9447         ($(BLD)/editfns.obj):
9448         ($(BLD)/emacs.obj):
9449         ($(BLD)/fileio.obj):
9450         ($(BLD)/fns.obj):
9451         ($(BLD)/indent.obj):
9452         ($(BLD)/insdel.obj):
9453         ($(BLD)/intervals.obj):
9454         ($(BLD)/minibuf.obj):
9455         ($(BLD)/print.obj):
9456         ($(BLD)/scroll.obj):
9457         ($(BLD)/sysdep.obj):
9458         ($(BLD)/textprop.obj):
9459         ($(BLD)/widget.obj):
9460         ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
9461         ($(BLD)/term.obj): Add dependency on dispextern.h.
9463         * makefile.nt ($(BLD)\dispnew.obj):
9464         ($(BLD)\keyboard.obj):
9465         ($(BLD)\w32inevt.obj):
9466         ($(BLD)\w32bdf.obj):
9467         ($(BLD)\alloc.obj):
9468         ($(BLD)\buffer.obj):
9469         ($(BLD)\editfns.obj):
9470         ($(BLD)\emacs.obj):
9471         ($(BLD)\fileio.obj):
9472         ($(BLD)\fns.obj):
9473         ($(BLD)\indent.obj):
9474         ($(BLD)\insdel.obj):
9475         ($(BLD)\intervals.obj):
9476         ($(BLD)\minibuf.obj):
9477         ($(BLD)\print.obj):
9478         ($(BLD)\scroll.obj):
9479         ($(BLD)\sysdep.obj):
9480         ($(BLD)\textprop.obj):
9481         ($(BLD)\widget.obj):
9482         ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
9483         ($(BLD)\term.obj): Add dependency on dispextern.h
9485 2000-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
9487         * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
9488         with an additional argument of Qt.
9490 2000-10-21  Miles Bader  <miles@gnu.org>
9492         * window.c (pos_fully_visible_in_window_p): New function.
9493         (Fpos_visible_in_window_p): Add FULLY argument.
9494         Use pos_fully_visible_in_window_p.
9495         (window_scroll_pixel_based, window_scroll_line_based): Update
9496         calls to Fpos_visible_in_window_p.
9497         * lisp.h (Fpos_visible_in_window_p): Update prototype
9499 2000-10-20  Gerd Moellmann  <gerd@gnu.org>
9501         * alloc.c (toplevel): Conditionalize compilation of mem_*
9502         functions differently.
9504 2000-10-20  Jason Rumney  <jasonr@gnu.org>
9506         * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
9507         mem_init where it used to be. mem_z etc not defined otherwise.
9509 2000-10-20  Gerd Moellmann  <gerd@gnu.org>
9511         * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
9512         GC_MALLOC_CHECK.
9513         (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
9514         structure definition and related variabled to the top of the file.
9515         Include this code when GC_MALLOC_CHECK is defined.
9516         (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
9517         register/unregister allocated region.
9518         (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
9519         which isn't allocated.
9520         (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
9521         something which is already in use.
9522         (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
9523         (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
9524         (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
9525         (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
9527         * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
9528         _malloc_internal instead of malloc.
9529         (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
9530         of free.
9532 2000-10-20  Andrew Innes  <andrewi@gnu.org>
9534         * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
9535         Windows.
9536         (my_strftime) <macro>: Don't use macro arg list when redefining as
9537         _strftime_copytm.
9538         (my_strftime) <function>: Supply 0 as ut argument.
9540 2000-10-19  Jason Rumney  <jasonr@altavista.net>
9542         * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
9543         including dispextern.h, as it stops faces from working.
9545         * w32fns.c (Fx_create_frame): Don't bother calling
9546         face-set-after-frame-default since the caller does it for us
9547         anyway. Clean up calls to x_get_arg to be consistent with X.
9549         * w32term.c (x_produce_glyphs): Handle
9550         unibyte_display_via_language_environment correctly.
9551         (w32_draw_box_rect): Fix the calculation of width and height.
9553         * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
9554         as it has stopped working.
9555         (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
9556         menu-bar.
9558 2000-10-19  Gerd Moellmann  <gerd@gnu.org>
9560         * eval.c (skip_debugger): Prevent a compiler warning.
9561         (Fcondition_case): Likewise.
9562         (Fbacktrace_frame): Use a null interactive spec.
9564 2000-10-19  Kenichi Handa  <handa@etl.go.jp>
9566         * xterm.c (x_find_ccl_program): Check also fontp->full_name.
9568 2000-10-18  Gerd Moellmann  <gerd@gnu.org>
9570         * strftime.c: Sync with glibc, file version 1.78.
9571         (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
9572         should no longer be used according to ISO 8601.
9574         * keymap.c (access_keymap): If IDX has a meta prefix, and there's
9575         no map for meta_prefix_char, don't try to use it as a keymap.
9576         Instead, if T_OK is non-zero, look up a default binding, if any,
9577         otherwise, if T_OK is zero, return nil.
9579         * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
9580         (x_to_xcolors, png_load): Use x_query_color.
9582         * xterm.c (x_color_cells, x_query_colors, x_query_color):
9583         New functions.
9584         (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
9585         which can be slow.
9586         (x_copy_color, x_alloc_lighter_color): Likewise.
9588         * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
9589         (x_query_color, x_query_colors): Add prototype.
9591         * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
9592         check_string_bytes only if not noninteractive, increase count to 50.
9594 2000-10-18  Miles Bader  <miles@lsi.nec.co.jp>
9596         * insdel.c (adjust_markers_for_delete): Handle before-insertion
9597         markers correctly.
9599 2000-10-17  Gerd Moellmann  <gerd@gnu.org>
9601         * alloc.c (pure_bytes_used): Renamed from pureptr.
9602         (ALIGN): New macro.
9603         (pure_alloc): New function.
9604         (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
9605         Use it.
9606         (Fpurecopy): Use PURE_POINTER_P.
9608         * xdisp.c (try_cursor_movement): Use cursor_row_p also when
9609         PT has moved backward.
9611         * xdisp.c (cursor_row_p): Take continued lines into account.
9613         * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
9614         string's size_byte.
9615         (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
9616         (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
9617         (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
9618         string allocated.
9620         * xdisp.c (forward_to_next_line_start): Switch iterator's handling
9621         of selective display off while searching for the next line start.
9623 2000-10-17  Kenichi Handa  <handa@etl.go.jp>
9625         * Makefile.in (term.o): Depend on dispextern.h.
9627 2000-10-16  Stefan Monnier  <monnier@cs.yale.edu>
9629         * keymap.c (keymap_memberp): Ensure that nil is not a member.
9631 2000-10-16  Gerd Moellmann  <gerd@gnu.org>
9633         * xdisp.c (set_iterator_to_next): Reset box start and end flags of
9634         the iterator at the beginning, so that they can be set later on,
9635         for instance in reseat_at_next_visible_line_start, without being
9636         overwritten.
9638         * xfns.c (pbm_format): Add :foreground and :background keywords.
9639         (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
9640         (xbm_load): Recognize foreground and background color specifications.
9642 2000-10-16  Eli Zaretskii  <eliz@is.elta.co.il>
9644         * dispextern.h (unspecified_fg, unspecified_bg): Declare.
9646         * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
9648         * msdos.c (IT_set_face): Compare highlighted face with the default
9649         face, and invert colors if these faces' colors are identical.
9650         (Fmsdos_remember_default_colors): Don't swap foreground and
9651         background colors in initial_colors[].
9652         (IT_set_frame_parameters): Don't swap frame's foreground and
9653         background pixels.  If ALIST includes "(reverse . t)", swap
9654         foreground-color and background-color properties in frame's
9655         param_alist.  If the original frame's param_alist doesn't specify
9656         the colors, store unspecified-fg and unspecified-bg, reversed if
9657         required.
9659         * frame.c (Fframe_parameters): If a tty's frame's param_alist says
9660         the colors are unspecified and reversed, reverse fore- and back-
9661         ground in the returned value.
9662         (Fframe_parameter): Ditto.
9664 2000-10-16  Gerd Moellmann  <gerd@gnu.org>
9666         * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
9667         get_last_unchanged_at_beg_row.
9668         (find_first_unchanged_at_end_row): Renamed from
9669         get_first_unchanged_at_end_row.
9670         (find_first_unchanged_at_end_row): Convert assertions to
9671         unconditional tests which abort.  When looking for a row in
9672         unchanged text, don't go further back than first_text_row.
9674         * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
9675         Don't add in the last line's height when deciding if the new
9676         position is below the scroll margin.
9678 2000-10-16  Miles Bader  <miles@gnu.org>
9680         * editfns.c (Fconstrain_to_field): Check carefully for field
9681         boundaries if either OLD_POS or NEW_POS has a non-nil field
9682         property, even if they're the same.
9684 2000-10-16  Kenichi Handa  <handa@etl.go.jp>
9686         * xterm.c (x_draw_box_rect): Fix the calculation of width and
9687         height for XFillRectangle.
9689 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
9691         * syntax.c (Fstring_to_syntax): New function extracted from
9692         Fmodify_syntax_entry.
9693         (Fmodify_syntax_entry): Use it and document the ! and | fences.
9694         (skip_chars, Fforward_comment): Remove unused variables.
9695         (syms_of_syntax): Add defsubr for string-to-syntax.
9696         (describe_syntax): Add code for comment and string fences.
9698 2000-10-14  Stefan Monnier  <monnier@cs.yale.edu>
9700         * keymap.c (access_keymap): Add AUTOLOAD parameter.
9701         Do the meta->esc mapping.  Call get_keyelt before returning.
9702         Start scanning from the second element (the first is always `keymap')
9703         to make it easier to detect when we reach a parent map.
9704         Handle the case of inheriting from a symbol whose function is a map.
9705         (Fkeymap_parent): Also handle the `inherit from symbol' case.
9706         (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
9707         (get_keyelt, Flookup_key): Update call to access_keymap.
9708         Remove the meta->esc mappings.
9709         (define_as_prefix): Delete old disabled code.
9710         (menu_item_p): New function.
9711         (where_is_internal_1): Skip over the few remaining menu items.
9712         * lisp.h (access_keymap): Update prototype.
9713         * keyboard.c (read_char, menu_bar_items, tool_bar_items):
9714         Update call to access_keymap.
9715         (follow_key, read_key_sequence): Update calls to access_keymap.
9716         Remove the meta->esc mappings.
9718 2000-10-13  Gerd Moellmann  <gerd@gnu.org>
9720         * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
9721         with additional argument.
9723         * xdisp.c (cursor_row_p): New function.
9724         (try_cursor_movement, display_line): Use it.
9726         * xdisp.c (append_space): Also save/restore iterator's current
9727         character and its length.
9729         * xdisp.c (init_from_display_pos): Add an assertion.
9730         (handle_stop): Don't set iterator's add_overlay_start.
9731         (handle_invisible_prop): Likewise.
9732         (load_overlay_strings): If text under an overlay is invisible,
9733         take both before- and after-strings into account when the iterator
9734         is positioned either at the start or at the end of the overlay.
9735         (forward_to_next_line_start): Rewritten.
9736         (reseat_at_next_visible_line_start): Rewritten.
9737         (set_iterator_to_next): Add parameter RESEAT_P.
9739         * dispextern.h (struct it): Remove member add_overlay_start.
9740         (set_iterator_to_next): Change prototype.
9742 2000-10-13  Kenichi Handa  <handa@etl.go.jp>
9744         * coding.c (code_convert_region): Be sure to initialize
9745         coding->category_idx.
9746         (decode_coding_string): Set coding->src_multibyte and
9747         coding->dst_multibyte before using CODING_REQUIRE_DECODING.
9748         (encode_coding_string): Set coding->src_multibyte and
9749         coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
9751 2000-10-12  Stefan Monnier  <monnier@cs.yale.edu>
9753         * xfns.c (Fx_create_frame): Don't bother calling
9754         face-set-after-frame-default since the caller does it for us anyway.
9756 2000-10-12  Eli Zaretskii  <eliz@is.elta.co.il>
9758         * window.c (coordinates_in_window): Fix detection of vertical line
9759         on character terminals.
9761 2000-10-12  Gerd Moellmann  <gerd@gnu.org>
9763         * editfns.c (save_excursion_save): Additionally record the
9764         selected window.
9765         (save_excursion_restore): If buffer was visible in a window, and a
9766         different window was selected, and the old selected window is
9767         still live, restore point in that window.
9769 2000-10-12  Kenichi Handa  <handa@etl.go.jp>
9771         * xterm.c (x_produce_glyphs): Handle
9772         unibyte_display_via_language_environment correctly.
9774         * regex.c (regex_compile): Change the way of handling a range from
9775         unibyte char to multibyte char.
9777         * syntax.c (skip_chars): Change the way of handling a range from
9778         unibyte char to multibyte char.
9780         * process.c (read_process_output): Cancel previous change.
9782 2000-10-11  Eli Zaretskii  <eliz@is.elta.co.il>
9784         * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
9786         * charset.c (Ffind_charset_string): Doc fix.
9787         (Ffind_charset_region): Doc fix.
9789 2000-10-11  Kenichi Handa  <handa@mule.m17n.org>
9791         * process.c (read_process_output): Fix previous change.  Adjust
9792         multibyteness of text to insert in a buffer by
9793         string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
9795 2000-10-10  Andreas Schwab  <schwab@suse.de>
9797         * alloc.c (mark_object): Remove all workarounds installed on
9798         1993-08-08.
9800 2000-10-10  Kenichi Handa  <handa@etl.go.jp>
9802         * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
9803         (base64_encode_1): Make it work for a text of multibyte form.
9804         (Fbase64_decode_region): Allocate sufficient memory for multibyte
9805         case.  Don't call str_to_multibyte because base64_decode_1
9806         produces correct multibyte form for eight-bit codes.
9807         (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
9808         (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN.  If
9809         MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
9810         codes.
9812         * charset.h (CHAR_STRING): Optimized for single byte characters.
9814 2000-10-09  Andreas Schwab  <schwab@suse.de>
9816         * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
9817         -1 after socket is closed, to fall through to error processing.
9819 2000-10-09  Eli Zaretskii  <eliz@is.elta.co.il>
9821         * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
9822         variables.  If ALIST includes foreground-color or
9823         background-color, change also the colors of the default face for
9824         this frame.
9826 2000-10-08  Eli Zaretskii  <eliz@is.elta.co.il>
9828         * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
9829         them extern (they are defined on xfaces.c).
9830         (syms_of_msdos): Don't intern and don't staticpro
9831         Qbackground_color and Qforeground_color.
9833 2000-10-07  Eli Zaretskii  <eliz@is.elta.co.il>
9835         * frame.c (Fframe_parameter): For non-windowed frames, if
9836         f->param_alist says foreground or background color is unspecified,
9837         call tty_color_name to return the color name computed from the
9838         frame's current colors.
9840 2000-10-06  Dave Love  <fx@gnu.org>
9842         * terminfo.c (ospeed): Don't declare.
9844         * sysdep.c: Don't include string.h.
9845         (h_errno): Declare conditional also on TRY_AGAIN.
9847         * charset.c (Ffind_charset_string): Doc fix.
9849         * fns.c (Fbase64_encode_region, Fbase64_encode_string)
9850         (Fbase64_decode_region, Fbase64_decode_string): More explicit
9851         error messages.
9853 2000-10-05  Dave Love  <fx@gnu.org>
9855         * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
9856         position like menu-bar.
9858 2000-10-05  Gerd Moellmann  <gerd@gnu.org>
9860         * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
9862         * xdisp.c (handle_single_display_prop): Use safe_call1.
9863         (safe_call): Renamed from call_function.
9864         (safe_call1): New function.
9865         (handle_fontified_prop): Use safe_call1 instead of call1.
9866         (safe_eval): Renamed from eval_form.
9867         (safe_eval_handler): Renamed from eval_handler.
9868         (handle_single_display_prop, display_mode_element): Use safe_eval
9869         instead of eval_form.
9871         * xfaces.c (merge_face_heights): Use safe_call instead of
9872         call_function.
9874         * keyboard.c (show_help_echo): Use safe_call instead of
9875         call_function; use safe_eval instead of eval_form.
9877         * lisp.h (safe_call): Renamed from call_function.
9878         (safe_eval): Renamed from eval_form.
9879         (safe_call1): Add prototype.
9881 2000-10-05  Miles Bader  <miles@lsi.nec.co.jp>
9883         * xfns.c (image_ascent): Rearrange ascent calculation for the
9884         has-a-font case.
9886 2000-10-04  Stefan Monnier  <monnier@cs.yale.edu>
9888         * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
9889         (where_is_internal_1): Don't bother ignoring menu-items any more.
9891 2000-10-04  Gerd Moellmann  <gerd@gnu.org>
9893         * keyboard.c (update_menu_bindings): New variable.
9894         (parse_menu_item): Use AREF.  If update_menu_bindings
9895         is 0, don't update menu bindings.
9896         (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
9898 2000-10-03  Eli Zaretskii  <eliz@is.elta.co.il>
9900         * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
9901         to `mark_object'.
9903 2000-10-02  Stefan Monnier  <monnier@cs.yale.edu>
9905         * syntax.c (forw_comment): Match nestedness of ender/starter.
9906         (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
9907         (prev_char_comstart_first): Remove.
9908         (back_comment): Check two-char comment markers more carefully
9909         to better handle overlapping cases like *//* or /* */* */ ...
9910         Match nestedness of ender/starter.
9912 2000-10-02  Dave Love  <fx@gnu.org>
9914         * config.in (HAVE_GAI_STRERROR): Add undef.
9916         * process.c (Fopen_network_stream): Use it.
9918         * m/alpha.h (NO_REMAP): Don't define.
9920 2000-10-02  Gerd Moellmann  <gerd@gnu.org>
9922         * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
9923         return with a string converted to an integer or vice versa when
9924         Vmocklisp_arguments is t.
9925         (Fsignal): Likewise.  The function can return for `quit'.
9926         (struct gcpro): Declare member `var' to point to a volatile
9927         Lisp_Object.
9929         * eval.c (error): Prevent compiler warning.
9931 2000-09-30  Stefan Monnier  <monnier@cs.yale.edu>
9933         * keymap.c (keymap_memberp): New function.
9934         (Fset_keymap_parent): Use it.
9935         (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
9936         Use keymap_memberp to avoid creating cycles.
9937         (access_keymap): Use KEYMAPP.
9939 2000-09-30  Gerd Moellmann  <gerd@gnu.org>
9941         * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
9942         gai_strerror.  Make sure xerrno is set if connect fails.  Improve
9943         error recovery.
9945 2000-09-29  Jason Rumney <jasonr@gnu.org>
9947         * w32term.c (w32_char_font_type, w32_encode_char)
9948         (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
9949         (w32_bdf_per_char_metric): New function.
9950         (w32_per_char_metric): Use it.
9951         (x_draw_glyph_string_background): Always draw background for BDF
9952         glyphs.
9954         * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
9955         GDI object which is a scarce resource.
9957         * w32bdf.c (search_file_line): Fix skipping of whitespace.
9958         (get_quoted_string): Fix limit on memchr search.
9959         (set_bdf_font_info): Use unsigned chars. Negate yoffset.
9960         (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
9961         (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
9962         (get_cached_font_char, cache_char_offset): Use macro
9963         BDF_CODEPOINT_RANGE_COVER_P.
9964         (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
9965         (clear_cached_bitmap_slots): New function.
9966         (GET_HEX_VALUE): G-Z, g-z are not hex.
9967         (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
9968         (get_bitmap_with_cache): Use new cache implementation.
9969         (create_offscreen_bitmap): New function.
9970         (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
9972         * w32term.c (x_produce_glyphs):  If the distance from the current
9973         position to the next tab stop is less than a canonical character
9974         width, use the tab stop after that.
9975         (x_draw_glyphs): Handle case START and END are out of bounds more
9976         carefully.
9977         (x_clear_mouse_face): Block/unblock input.
9978         (x_display_and_set_cursor): Don't show a hollow box cursor for
9979         buffers whose cursor_type is nil.
9981 2000-09-29  Gerd Moellmann  <gerd@gnu.org>
9983         * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
9985         * dispextern.h (updating_frame): Declare extern.
9987 2000-09-29  Andreas Schwab  <schwab@suse.de>
9989         * m/ia64.h: Remove hack of not prototyping bcopy, etc.
9991 2000-09-29  Gerd Moellmann  <gerd@gnu.org>
9993         * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
9994         use its function definition.
9995         (tool_bar_items): Likewise.
9997         * lisp.h (fatal): Declare NO_RETURN.
9999 2000-09-29  Kenichi Handa  <handa@etl.go.jp>
10001         * keymap.c: Remove the line "#undef NULL".
10003 2000-09-28  Gerd Moellmann  <gerd@gnu.org>
10005         * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
10007 2000-09-28  Dave Love  <fx@gnu.org>
10009         * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
10011         * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
10013         * .gdbinit (xreload): Note its need on GNU/Linux.
10015         * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
10016         r_alloc, r_alloc_free.
10018 2000-09-28  Kenichi Handa  <handa@etl.go.jp>
10020         * syntax.c (skip_chars): Handle negation correctly.
10022 2000-09-27  Gerd Moellmann  <gerd@gnu.org>
10024         * xfaces.c (realize_default_face): Call set_lface_from_font_name
10025         with non-zero FORCE_P argument.
10027         * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
10028         Add assertions.
10030         * xdisp.c (window_box_height): Add an assertion.
10032         * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
10033         tool-bar than is available.
10034         (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
10036 2000-09-27  Dave Love  <fx@gnu.org>
10038         * s/irix6-5.h: Now works 64-bit.  Tidied.
10040 2000-09-26  Gerd Moellmann  <gerd@gnu.org>
10042         * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
10043         instead of BITS_PER_INT.
10044         (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
10045         EMACS_UINT, respectively.
10046         (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
10048         * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
10050         * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
10052         * window.c (freeze_window_starts): Construct last argument for
10053         foreach_window differently.
10055         * xfns.c (x_decode_color): Don't return a Lisp_Object.
10057         * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
10058         EMACS_UINT instead of `int' and `unsigned int'.
10059         (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
10061         * frame.h (struct frame): Make the `nothing' member of union
10062         output_data an EMACS_INT.
10064         * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
10065         (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
10066         size in the sdata structure.
10067         (SDATA_NBYTES, SDATA_DATA): New macros.
10068         (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
10069         differently for the different layout of the sdata structure.
10070         (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
10071         in sdata.
10072         (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
10073         Check that size recorded in the string size and size recorded in
10074         the sdata structure agree.
10076 2000-09-25  Dave Love  <fx@gnu.org>
10078         * buffer.c: Include stdio.h.
10080         Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
10082         * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
10084         * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
10085         (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
10086         (__malloc_extra_blocks): Declare as __malloc_size_t.
10088 2000-09-25  Gerd Moellmann  <gerd@gnu.org>
10090         * alloc.c (mark_image): Use GC_NILP instead of NILP.
10092         * keyboard.c (show_help_echo): Set help_echo_showing_p.
10093         (read_char): If help-echo is showing, preserve the echo area
10094         when redisplaying.
10096         * xdisp.c (help_echo_showing_p): New variable.
10097         (set_message): Reset it to 0.
10098         (init_xdisp): Initialize help_echo_showing_p.
10100         * dispextern.h (help_echo_showing_p): Declare extern.
10102         * config.in: Fix typo in __GNUC_MINOR__.
10104         * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
10106         * s/freebsd.h (POSIX_SIGNALS): Define.
10108         * xterm.c (x_clear_mouse_face): Block/unblock input.
10110 2000-09-24  Dave Love  <fx@gnu.org>
10112         * fns.c (base64_encode_1): Fix last change.
10114 2000-09-22  Gerd Moellmann  <gerd@gnu.org>
10116         * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
10118         * xdisp.c (try_window_reusing_current_matrix): More fixes
10119         for the case window has a header-line.
10121 2000-09-22  Dave Love  <fx@gnu.org>
10123         * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
10124         a doc string.
10126         * xterm.c [SOLARIS2]: Remove redundant include of string.h.
10128         * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
10130 2000-09-21  Gerd Moellmann  <gerd@gnu.org>
10132         * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
10133         for GCC >= 2.5.
10135         * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
10136         Declare NO_RETURN.
10138         * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
10139         * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
10140         * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
10141         warnings.
10143         * marker.c (byte_char_debug_check): Return void.
10145         * xfns.c (Fx_create_frame): Set default frame parameter value
10146         for tool-bar-lines to 1.
10148         * dispnew.c (scrolling_window): Compare y-positions of rows
10149         equal at the start.  Some simplification.
10151         * xdisp.c (try_window_reusing_current_matrix): Fix computation of
10152         reused rows' y-position in the case window has a header-line, and
10153         new window start is greater than old window start.
10155         * process.c (process_sent_to): New variable.
10156         (send_process): Workaround for a crash on sparc-sun-solaris-2.6
10157         with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
10158         Declare more parameters volatile.
10160         * lread.c (Vrecursive_load_depth_limit): New variable.
10161         (Fload): Check recursive loads whose recursion depth exceeds
10162         Vrecursive_load_depth_limit.
10163         (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
10165 2000-09-20  Gerd Moellmann  <gerd@gnu.org>
10167         * fileio.c (Fread_file_name): Doc fix.
10169         * editfns.c (Fmessage_or_box): Doc fix.
10171         * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
10173         * xfns.c (xbm_scan): Allow C-style comments.
10175         * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
10176         symbols are specified, add color translations to the cache.
10177         (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
10178         (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
10179         xpm_cache_color.
10180         (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
10181         structures to xpm_init_color_cache.
10183 2000-09-19  Gerd Moellmann  <gerd@gnu.org>
10185         * dispnew.c (update_window_line): Make sure to always draw mode-lines.
10187 2000-09-19  Andrew Innes  <andrewi@gnu.org>
10189         * makefile.nt (bootstrap-emacs): Don't change directory.
10191 2000-09-19  Kenichi Handa  <handa@etl.go.jp>
10193         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
10195         * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
10196         If output buffer is too small, signal an appropriated error.
10198 2000-09-18  Dave Love  <fx@gnu.org>
10200         * keyboard.c (menu_bar_items, tool_bar_items)
10201         (current_active_maps): Remove redundant get_local_map call.
10203 2000-09-18  Gerd Moellmann  <gerd@gnu.org>
10205         * xterm.c (x_display_and_set_cursor): Don't show a hollow box
10206         cursor for buffers whose cursor_type is nil.
10208         * xterm.c (x_draw_image_glyph_string): Remove a comment describing
10209         a feature to implement that is already implemented.
10210         (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
10211         warnings.
10213         * xfns.c (x_clear_image_1): New function.
10214         (x_clear_image): Use it.
10215         (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
10217         * dispnew.c (update_window): Move test for invisible lines
10218         at the top to update_window_line.
10219         (update_window_line): Handle invisible lines here.
10221         * xfns.c (clear_image_cache): Clear current matrices of all
10222         frames sharing an image cache.  Block input while freeing
10223         images.  Fix timestamp comparison.
10224         (x_clear_image): Also free the mask.
10226         * xfns.c (lookup_image): Block input while loading the image so
10227         that we won't get interrupted in a state where the image isn't yet
10228         set up completely.
10229         (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
10230         (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
10231         (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
10232         (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
10234 2000-09-16  Gerd Moellmann  <gerd@gnu.org>
10236         * dispnew.c (update_window): Make sure to make desired rows
10237         current even if they are completely invisible at the top
10238         of a window.
10240 2000-09-15  Gerd Moellmann  <gerd@gnu.org>
10242         * xfns.c (lookup_image): Build mask before applying an algorithm.
10243         Recognize algorithm `disabled'.
10244         (cross_disabled_images): New variable.
10245         (COLOR_INTENSITY): New macro.
10246         (x_detect_edges): Use COLOR_INTENSITY.
10247         (x_disable_image): New function.
10248         (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
10250         * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
10251         disabled state, don't apply an image transformation algorithm if
10252         the user specified an image for the disabled state.  Use
10253         `:algorithm disabled' for creating a disabled item's image if the
10254         user hasn't specified an image.
10256         * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
10257         allocation functions with the XPM lib.
10258         (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
10259         (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
10260         (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
10261         (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
10262         (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
10263         (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
10264         functions, if possible, because these handle color allocation
10265         failure more gracefully.
10266         (Fimage_mask_p): New function.
10268         * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
10269         (Qedge_detection, Qheuristic): New symbols.
10270         (syms_of_xfns): Initialize new symbols.
10271         (lookup_image): Handle `:mask X', `:algorithm emboss', and
10272         `algorithm (edge-detection ...)'.
10273         (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
10274         (tiff_format, gif_format, gs_format): Add `:mask'.
10275         (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
10276         (GIF_MASK, GS_MASK): New enumerators.
10277         (x_laplace_read_row, x_laplace_write_row): Functions removed.
10278         (emboss_matrix, laplace_matrix): New variables.
10279         (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
10280         (x_edge_detection): New functions.
10281         (x_laplace): Rewritten in terms of x_detect_edges.
10282         (x_build_heuristic_mask): If image has a mask, free it.
10284 2000-09-14  Andrew Innes  <andrewi@gnu.org>
10286         * makefile.w32-in: Revert to Unix line endings.
10288 2000-09-14  Andrew Innes  <andrewi@gnu.org>
10290         * makefile.w32-in: Standardize indentation somewhat.
10291         (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
10292         cater for differences between shells.
10294         * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
10296 2000-09-14  Gerd Moellmann  <gerd@gnu.org>
10298         * xterm.c (x_produce_glyphs): If the distance from the current
10299         position to the next tab stop is less than a canonical character
10300         width, use the tab stop after that.
10302 2000-09-14  Dave Love  <fx@gnu.org>
10304         * buffer.c (alloc_buffer_text): Fix xmalloc call.
10306 2000-09-14  Gerd Moellmann  <gerd@gnu.org>
10308         * xdisp.c (handle_fontified_prop): While running fontification
10309         functions, bind `fontification-functions' and
10310         `after-change-functions' to nil.
10312         * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
10313         (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
10315         * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
10317         * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
10318         USE_MMAP_FOR_BUFFERS.
10320         * insdel.c (make_gap): Use enlarge_buffer_text.
10322         * buffer.c: Move allocation with mmap here, from ralloc.c.  Change
10323         conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
10324         (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
10325         from former r_alloc_* functions in ralloc.c.
10326         (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
10327         (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
10328         (mmap_init) [REL_ALLOC_MMAP]: New function.
10329         (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
10330         functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
10331         BUFFER_FREE.
10333         * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
10334         (enlarge_buffer_text): Add prototype.
10336         * ralloc.c: Remove everything having to do with the use of mmap.
10338 2000-09-13  Gerd Moellmann  <gerd@gnu.org>
10340         * sound.c (Fplay_sound): Doc fix.
10342         * keyboard.c: Avoid some more compiler warnings.
10343         (parse_tool_bar_item): Ignore cached key bindings.
10345         * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
10346         and allocation of Lisp data.
10348 2000-09-12  Gerd Moellmann  <gerd@gnu.org>
10350         * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
10351         (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
10352         defaults first.
10354         * lread.c (Fload): Put code checking for recursive loads in #if 0.
10356 2000-09-12  Miyashita Hisashi  <himi@meadowy.org>
10358         * ccl.c: Comment fixed.
10359         (MAX_MAP_SET_LEVEL): Increased to 30.
10360         (PUSH_MAPPING_STACK): Enclose with do-while block.
10361         (POP_MAPPING_STACK): Likewise.
10362         (stack_idx_of_map_multiple): New variable.
10363         (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
10364         (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
10365         call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
10366         (ccl_driver) <CCL_MapSingle>: Likewise.
10367         (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
10368         with the case where looking up process reaches to the end of
10369         map-set, and call CCL programs as the above change.
10371 2000-09-11  Gerd Moellmann  <gerd@gnu.org>
10373         * xfns.c (png_load, jpeg_load): Declare some variables volatile
10374         that might be clobbered by longjmp.
10375         (check_x_display_info, x_decode_color, create_frame_xic)
10376         (Fx_display_backing_store, Fx_display_visual_class)
10377         (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
10379         * lread.c (init_lread): Set Vloads_in_progress to nil.
10380         (Fload): Show list of recursively loaded files, when signaling an
10381         error.
10383         * lread.c (Vloads_in_progress): New variable.
10384         (record_load_unwind): New function.
10385         (Fload): Check for recursive loads.
10386         (syms_of_lread): Initialize Vloads_in_progress.
10387         (read_integer, read1): Avoid some compiler warnings.
10389         * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
10390         compiler warnings.
10392 2000-09-11  Miles Bader  <miles@gnu.org>
10394         * editfns.c (Fbuffer_string): Doc fix.
10396 2000-09-10  Gerd Moellmann  <gerd@gnu.org>
10398         * ralloc.c (mmap_enlarge): Don't return 0 if successful.
10400 2000-09-09  Ken Raeburn  <raeburn@gnu.org>
10402         * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
10403         whether to include other header files.
10405 2000-09-09  Gerd Moellmann  <gerd@gnu.org>
10407         * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
10408         by Fmemq as a boolean.
10410 2000-09-08  Stefan Monnier  <monnier@cs.yale.edu>
10412         * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
10414 2000-09-08  Gerd Moellmann  <gerd@gnu.org>
10416         * ralloc.c (mmap_fd): Remove initializer which can make it
10417         read-only in a dumped Emacs.
10418         (mmap_fd_1): New variable.
10419         (mmap_set_vars): Remove local `fd'.  Save mmap_fd in mmap_fd_1,
10420         restore it from there.
10421         (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
10422         unconditionally so that mmap_fd can be initialized there.
10423         (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
10424         (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
10425         (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
10427         * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
10429         * xdisp.c (dump_glyph_row): Fix printf format string.
10430         (display_line, move_it_in_display_line_to): Avoid compiler warnings.
10432         * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
10434         * keymap.c (Fset_keymap_parent): Check for cycles in keymap
10435         inheritance.
10437         * xdisp.c (try_window_id): When trying to locate cursor in
10438         unchanged rows at the top, handle the case that we can't find it.
10440         * xterm.c (x_draw_glyphs): Handle case START and END are out
10441         of bounds more carefully.
10443 2000-09-08  Dave Love  <fx@gnu.org>
10445         * s/sol2.h (REL_ALLOC_MMAP): Define.
10446         * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
10448         * ralloc.c: Don't include string.h (redundant).
10449         (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
10450         [!MAP_ANON]: Include fcntl.h.
10451         (mmap_fd) [REL_ALLOC_MMAP]: New variable.
10452         (r_alloc, r_re_alloc, r_alloc_free)
10453         (mmap_enlarge, mmap_set_vars): Use it.
10454         (r_alloc_init_fd): New function.
10455         (__morecore) [SYSTEM_MALLOC]: Don't declare.
10456         (r_alloc_init): Call r_alloc_init_fd.  Conditionalize stuff on
10457         malloc type.
10459         * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
10460         Remove vm-limit.o.
10462         * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
10463         change to __NetBSD__.
10465 2000-09-08  Kenichi Handa  <handa@etl.go.jp>
10467         * search.c (compile_pattern): Check the multibyteness of cached
10468         string and PATTERN.
10470 2000-09-08  Miles Bader  <miles@gnu.org>
10472         * xfaces.c (default_face_vector): Function removed.
10473         (Finternal_merge_in_global_face): Restore old global/local
10474         attribute override order.  Use inline loop instead of calling
10475         default_face_vector.
10477 2000-09-07  Gerd Moellmann  <gerd@gnu.org>
10479         * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
10480         (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
10481         (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
10482         where necessary, in case POINTER_TYPE is `void'.
10484 2000-09-07  Eli Zaretskii  <eliz@is.elta.co.il>
10486         * frame.c (make_terminal_frame): Initialize frame foreground and
10487         background colors to unspecified, for the initial instance of an
10488         MSDOS frame.
10490 2000-09-07  Gerd Moellmann  <gerd@gnu.org>
10492         * ralloc.c (mmap_find): Fix overlap computation.
10493         (mmap_enlarge): Compute nbytes before trying to find an
10494         overlapping region.
10496         * xfaces.c (smaller_face): Compare font heights with `<' and `>'
10497         instead of `!='.
10499         * lread.c (syms_of_lread): Change value of regexp
10500         Vbytecomp_version_regexp to not match some XEmacs-compiled files.
10502         * xmenu.c (xdialog_show): When looking up the selection in
10503         menu_items, take `quote' boundaries into account; this corresponds
10504         to a nil ITEM in x-popup-dialog.
10506 2000-09-07  Kenichi Handa  <handa@etl.go.jp>
10508         * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
10509         not 0x81.
10510         (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
10512         * coding.c (encode_coding_sjis_big5): Use translation table for
10513         encoding, not decoding.  Fix the handling of latin-jisx0201.
10514         Check for the charset katakana-jisx0201 too.
10515         (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
10516         (detect_coding_sjis): Check the byte sequence more rigidly.
10518 2000-09-07  Gerd Moellmann  <gerd@gnu.org>
10520         * xfaces.c (Vparam_value_alist): New variable.
10521         (syms_of_xfaces): Initialize it.
10522         (Finternal_set_lisp_face_attribute): Avoid more consing.
10524         * frame.c (Fframe_parameter): Handle `name' and `background-mode'
10525         specially.
10526         (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
10527         (Qbackground_mode): New variable.
10528         (syms_of_frame_1): Initialize Qbackground_mode.
10530         * lisp.h (Qdisplay): Declare extern.
10532         * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
10533         change face on all frames, and change the default for new frames.
10535 2000-09-07  Dave Love  <fx@gnu.org>
10537         * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
10539 2000-09-07  Kenichi Handa  <handa@etl.go.jp>
10541         * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
10543         * charset.c: Include composite.h
10544         (lisp_string_width): New function.
10545         (Fstring_width): Call lisp_string_width instead of strwidth.
10547         * Makefile.in (charset.o): Depends on composite.h.
10549         * process.c (read_process_output): Before inserting the decoded
10550         text in the buffer, adjust the multibyteness.
10552 2000-09-06  Gerd Moellmann  <gerd@gnu.org>
10554         * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
10555         buffer's text buffer is null, map new memory.
10557         * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
10558         POINTER_TYPE and size_t.
10559         (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
10560         (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
10561         (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
10562         [REL_ALLOC_MMAP]: New macros.
10563         (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
10564         (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
10565         [REL_ALLOC_MMAP]: New functions.
10567         * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
10568         before and after unexec.
10570         * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
10571         text buffers if necessary.
10573         * buffer.h (R_ALLOC_DECLARE): Removed because unused.
10574         (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
10575         in prototypes.
10577         * config.in (HAVE_MMAP): Add #undef.
10579 2000-09-05  Gerd Moellmann  <gerd@gnu.org>
10581         * frame.c (Qdisplay_type): New variable.
10582         (syms_of_frame_1): Initialize it.
10583         (Fframe_parameter): New function that avoids consing.
10584         (syms_of_frame): Defsubr it.
10586         * buffer.c (Fother_buffer): Consider buffers as invisible when
10587         they are displayed in a window on an invisible frame.
10589         * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
10590         get-largest-window always return nil.
10592 2000-09-04  Gerd Moellmann  <gerd@gnu.org>
10594         * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
10595         variable; recognize Emacs 19 elc files.
10597 2000-09-04  Miles Bader  <miles@gnu.org>
10599         * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
10600         before initially popping up the menu, so the menu doesn't flash
10601         when the face settings are significantly different from the defaults.
10603 2000-09-04  Stefan Monnier  <monnier@cs.yale.edu>
10605         * regex.c (WIDE_CHAR_SUPPORT): New macro.
10606         (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
10607         (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
10608         (BIT_UNIBYTE): Remove.
10609         (re_match_2_internal): Delete corresponding code and streamline the
10610         BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
10611         (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
10612         (re_wctype_t): New type.
10613         (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
10614         (regex_compile): Use them and fix handling of overly long char classes.
10616 2000-09-03  Andrew Innes  <andrewi@gnu.org>
10618         * makefile.w32-in: Change to DOS line endings.
10620         * s/ms-w32.h (ORDINARY_LINK): New define.
10622         * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
10623         (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
10625         * makefile.w32-in (clean): Don't delete config.h and epaths.h.
10626         (distclean): Delete them here instead.
10628         * w32proc.c (compare_env): Convert to uppercase for comparison,
10629         not lowercase, to match how the native Windows shell works.
10631 2000-09-03  Jason Rumney  <jasonr@gnu.org>
10633         * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
10634         CVS changes the line-ends when checking in/out on DOS/Windows.
10636         * makefile.nt (emacs): Do not change directory to run temacs, as
10637         the load-path is set relative to current directory.
10639 2000-09-03  Miles Bader  <miles@gnu.org>
10641         * xterm.c (x_alloc_lighter_color_for_widget): New function.
10643 2000-09-02  Gerd Moellmann  <gerd@gnu.org>
10645         * xdisp.c (redisplay_mode_lines): New function.
10646         (display_mode_lines): Return number of mode lines displayed.
10647         (echo_area_display): Use redisplay_mode_lines to draw garbaged
10648         mode lines.  Don't temporarily bind redisplay-dont-pause to t.
10650         * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
10651         string.h and strings.h.
10652         (index) [HAVE_INDEX]: Add prototype.
10654         * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
10655         (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
10657         * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
10658         (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10660 2000-09-01  Gerd Moellmann  <gerd@gnu.org>
10662         * lread.c (read1): Accept `?' as symbol constituent, for
10663         compatiblity with XEmacs.
10665 2000-08-31  Stefan Monnier  <monnier@cs.yale.edu>
10667         * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
10668         (struct re_pattern_buffer): Remove newline_anchor.
10669         * regex.c: Keep namespace clean for GNU libc by renaming <fun>
10670         to __<fun> and using `weak_alias (__<fun>, <fun>)'.
10671         (re_max_failures, fail_stack): Use size_t rather than unsigned.
10672         (regex_compile): For ^ and $, choose between buffer and line (beg|end)
10673         depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
10674         (print_compiled_pattern, re_search_2, mutually_exclusive_p)
10675         (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
10676         Get rid of references to newline_anchor.
10677         (regcomp): Allocate and precompute a fastmap.
10679 2000-08-31  Gerd Moellmann  <gerd@gnu.org>
10681         * lread.c (openp): GCPRO local variable `filename'.
10683 2000-08-30  Stefan Monnier  <monnier@cs.yale.edu>
10685         * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
10687         * regex.c: Merge some changes from GNU libc.  Add prototypes.
10688         (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
10689         Use memcmp and memcpy instead of bcopy and bcmp.
10690         (init_syntax_once): Use ISALNUM.
10691         (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
10692         (REG_UNSET_VALUE): Remove.  Use NULL instead.
10693         (REG_UNSET, re_match_2_internal): Use NULL.
10694         (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
10695         New macros.
10696         (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
10697         (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
10698         (regex_compile): In handle_interval, return an error rather than try to
10699         unfetch the interval if we can't find the closing brace.
10700         Obey the RE_NO_GNU_OPS syntax bit.
10701         (TOLOWER): New macro.
10702         (regcomp): Use it.
10703         (regexec): Allocate regs.start and regs.end as one block.
10705 2000-08-30  Gerd Moellmann  <gerd@gnu.org>
10707         * xdisp.c (echo_area_display): Check display_completed instead
10708         of calling detect_input_pending.
10710         * dispnew.c (update_frame): Only set display_completed here; move
10711         the update_begin and update_end calls here from update_frame_1.
10712         (update_frame_1): Don't set display_completed here, don't call
10713         update_begin/update_end.
10715         * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
10716         instead of store_frame_param.
10718 2000-08-29  Gerd Moellmann  <gerd@gnu.org>
10720         * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
10721         desired window matrix hasn't been displayed, use the current row
10722         instead.  Make sure that only those frame rows are updated for
10723         which there exists a corresponding enabled desired row.
10725 2000-08-29  Miles Bader  <miles@gnu.org>
10727         * xfaces.c (default_face_vector): New function.
10728         (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
10730 2000-08-29  Gerd Moellmann  <gerd@gnu.org>
10732         * lread.c (openp): Prevent temporary string passed to
10733         Ffile_readable_p from being garbage collected.
10735 2000-08-28  Dave Love  <fx@gnu.org>
10737         * keymap.c (store_in_keymap): Add `static' to declaration.
10739 2000-08-28  Gerd Moellmann  <gerd@gnu.org>
10741         * emacs.c, callint.c, doc.c, editfns.c
10742         (toplevel) [HAVE_STRING_H]: Include string.h.
10743         (toplevel) [HAVE_STRINGS_H]: Include strings.h.
10744         (index): Remove prototypes which might conflict with non-standard
10745         definitions of index/strchr.
10747         * s/usg5-3.h (index): Define only if not HAVE_INDEX.
10748         (rindex): Define only if !HAVE_RINDEX.
10750         * s/sco5.h (bcopy, bzero, bcmp): Don't define.
10752         * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
10754 2000-08-28  Miles Bader  <miles@gnu.org>
10756         * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
10757         made inconsistent by a font-related attribute in FROM.
10758         (merge_face_inheritance): Add function comment.
10760 2000-08-28  Kenichi Handa  <handa@etl.go.jp>
10762         * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
10763         the 4th arg (PREV_EVENT) Qt to suppress input method.
10765 2000-08-27  Stefan Monnier  <monnier@cs.yale.edu>
10767         * regex.c: Indent cpp directives and remove parens after `defined'.
10768         (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
10769         (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
10770         (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
10771         (re_compile_pattern): Use size_t for length.
10772         (init_syntax_once): Move to a better place.
10773         * regex.h: Merge changes from GNU libc.  Indent cpp directives.
10774         (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
10776         * syntax.c (back_comment): Detect cases where a comment-starter is
10777         actually inside another comment as in:   /* a // b */ c // d \n.
10778         Make it clear that `comstart_pos' is unused for nested comments.
10780         * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
10781         (KEYMAPP): New macro.
10782         (Fkeymap_parent, Fset_keymap_parent): Use it.
10783         (fix_submap_inheritance): Mark it static.
10784         (define_as_prefix, describe_buffer_bindings, describe_command)
10785         (describe_translation, describe_map): Complete prototypes.
10787         * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
10789         * keyboard.c (menu_bar_item): Detect duplicate entries for all items
10790         to better match the key-lookup behavior.
10792 2000-08-27  Gerd Moellmann  <gerd@gnu.org>
10794         * xfaces.c (lface_fully_specified_p): Handle :inherit.
10795         (Finternal_set_lisp_face_attribute): Fix typo in error message.
10797 2000-08-27  Eli Zaretskii  <eliz@is.elta.co.il>
10799         * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
10800         (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
10801         (xterm.o): Depend on coding.h
10803 2000-08-26  Kenichi Handa  <handa@etl.go.jp>
10805         * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
10806         the corresponding '#endif'.
10808 2000-08-26  Miles Bader  <miles@gnu.org>
10810         * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
10811         * xfaces.c (QCinherit): New variable.
10812         (syms_of_xfaces): Initialize it.
10813         (LFACE_INHERIT): New macro.
10814         (Finternal_get_lisp_face_attribute)
10815         (merge_face_vector_with_property)
10816         (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
10817         (check_lface_attrs): Allow new types of face height.  Check
10818         inherit attribute.
10819         (CYCLE_CHECK): New macro.
10820         (merge_face_inheritance): New function.
10821         (merge_face_vectors): Merge inherited faces too.  Add F and
10822         CYCLE_CHECK arguments.
10823         (merge_face_vector_with_property, Finternal_merge_in_global_face)
10824         (lookup_named_face, lookup_derived_face, realize_named_face)
10825         (face_at_string_position, face_at_buffer_position):  Supply
10826         new F and CYCLE_CHECK arguments to merge_face_vectors.
10827         (merge_face_heights): New function.
10828         (merge_face_vectors, merge_face_vector_with_property)
10829         (Finternal_set_lisp_face_attribute): Call merge_face_heights to
10830         handle relative face heights.
10831         (lface_same_font_attributes_p): Compare heights using EQ.
10833 2000-08-26  Kenichi Handa  <handa@etl.go.jp>
10835         * charset.c (char_to_string): Check the character validity.
10836         (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
10838 2000-08-25  Stefan Monnier  <monnier@cs.yale.edu>
10840         * regex.c (PUSH_FAILURE_COUNT): New macro.
10841         (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
10842         Handle popping of a register's or a counter's data.
10843         (POP_FAILURE_POINT): Use the new name.
10844         (re_match_2_internal): Push counter data on the stack for succeed_n,
10845         jump_n and set_number_at and remove misleading dead code in succeed_n.
10847 2000-08-25  Gerd Moellmann  <gerd@gnu.org>
10849         * xdisp.c (redisplay_internal): If considering all windows on all
10850         frames, update the display for each frame as soon as possible,
10851         instead of first building all desired matrices for all frames, and
10852         then updating them all.
10853         (try_cursor_movement): Handle case that last_cursor.vpos is -1.
10855 2000-08-24  Gerd Moellmann  <gerd@gnu.org>
10857         * bytecode.c (mark_byte_stack): Add a comment.
10859         * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
10860         (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
10861         a graphical frame.
10863 2000-08-24  Kenichi Handa  <handa@etl.go.jp>
10865         * minibuf.c (do_completion): Always use compare-string, not
10866         string-equal because the latter doesn't pay attention to
10867         multibyteness of strings.
10869         * process.c (create_process): Don't setup raw-text coding here.
10870         (Fopen_network_stream): Don't set coding->src_multibyte and
10871         coding->dst_multibyte here.
10872         (read_process_output): For process filter, return unibyte string
10873         if default-enable-multibyte-characters is nil.
10874         (send_process): If OBJECT is multibyte text, be sure to encoded it
10875         by the specified coding system for the process.  Otherwise, setup
10876         raw-text coding.
10877         (init_process): Don't initialize default-process-coding-system here.
10879 2000-08-23  Eli Zaretskii  <eliz@is.elta.co.il>
10881         * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
10882         <scroll-down-aggressively>: Likewise.
10884 2000-08-23  Kenichi Handa  <handa@etl.go.jp>
10886         * coding.c (encode_eol): Fix bug for the case of dst_bytes being
10887         zero.  Set coding->produced_char correctly.
10889 2000-08-22  Andrew Innes  <andrewi@gnu.org>
10891         * makefile.w32-in: New file.
10893         * unexw32.c (unexec): Ignore old_name, and use the actual location
10894         of the current executable instead.  Base new_name on this.
10896         * w32proc.c (create_child): Remove reference to security
10897         descriptor, which isn't needed and doesn't compile with mingw32.
10899         * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10900         up dllimport attributes.
10901         (x_update_window_end): Update prototype.
10903         * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
10904         extern, which screws up dllimport attributes.
10906         * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10907         up dllimport attributes.
10909         * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
10910         screws up dllimport attributes.
10912         * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10913         up dllimport attributes.
10914         (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
10915         screws up dllimport attributes.
10917         * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10918         up dllimport attributes.
10920         * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
10921         screws up dllimport attributes.
10923         * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
10924         screws up dllimport attributes.
10926         * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10927         up dllimport attributes.
10929         * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
10930         unnecessary extern, which screws up dllimport attributes.
10931         (main): Ditto.
10933         * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10934         up dllimport attributes.
10936         * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
10937         unnecessary extern, which screws up dllimport attributes.
10939         * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
10940         screws up dllimport attributes.
10942         * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10943         up dllimport attributes.
10945         * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
10947         * w32bdf.c (search_file_line):
10948         (set_bdf_font_info):
10949         (seek_char):
10950         (w32_get_bdf_glyph):
10951         (w32_BDF_to_x_font): Fix compile warnings.
10953         * w32menu.c: Include keyboard.h before frame.h.  Fix compile warnings.
10955         * w32select.c: Include keyboard.h before frame.h.
10957         * w32fns.c (max): Define macro.
10958         (JOHAB_CHARSET): Define if not known.
10959         (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
10960         (Fx_show_tip): Synch with X version.
10962         * w32xfns.c: Include keyboard.h before frame.h.
10964         * w32fns.c: Include keyboard.h before frame.h.
10966         * w32term.c: Include keyboard.h before frame.h.
10968         * fontset.c: Include keyboard.h before frame.h.
10970         * w32inevt.c: Include keyboard.h before frame.h.
10971         (MOUSE_MOVED): Define if not known.
10973         * minibuf.c: Include keyboard.h before frame.h.
10975         * keyboard.c: Include keyboard.h before frame.h.
10977         * indent.c: Include keyboard.h before frame.h.
10979         * dispnew.c: Include keyboard.h before frame.h.
10981         * buffer.c: Include keyboard.h before frame.h.
10983         * alloc.c: Include keyboard.h before frame.h.
10985         * print.c: Include keyboard.h before frame.h.
10987         * process.c: Include keyboard.h before frame.h.
10989         * scroll.c: Include keyboard.h before frame.h.
10991         * sysdep.c: Include keyboard.h before frame.h.
10993         * term.c: Include keyboard.h before frame.h.
10995         * window.c: Include keyboard.h before frame.h.
10997         * xdisp.c: Include keyboard.h before frame.h.
10998         Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
11000         * frame.c: Include keyboard.h before frame.h.
11002         * w32heap.h: Undefine min, max.
11004         * w32gui.h: Undefine min, max.
11006         * unexw32.c: Change PUCHAR to PCHAR.
11007         (PTR_TO_OFFSET): Cast ptr to unsigned char *.
11008         (relocate_offset):
11009         (get_section_info):
11010         (copy_executable_and_dump_data): Remove unnecessary static defs.
11011         (copy_executable_and_dump_data): Fix compile warnings.
11013         * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
11015         * w32console.c (min): Define macro.
11016         (clear_frame, write_glyphs): Fix compile warning.
11018         * w32proc.c (compare_env):
11019         (find_child_console): Fix compile warning.
11021         * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr.  Use
11022         sys_errlist instead of _sys_errlist.
11023         (get_emacs_configuration_options): New function.
11025         * s/ms-w32.h (sys_nerr): Provide default definition.
11026         (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
11027         name with _ prepended.
11028         (NSIG): Define if not known.
11029         (get_emacs_configuration): Provide extern declaration.
11030         (get_emacs_configuration_options): Provide extern declaration.
11031         (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
11033         * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
11034         (map_w32_filename):
11035         (read_unc_volume): Fix compile warning.
11037         * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
11038         definitions from being used.
11040         * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
11042         * w32.c (unc_volume_file_attributes):
11043         (open_unc_volume): Make arg const.
11045         * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
11046         (read_input_waiting): Remove excess parameter.
11048         * w32.c (init_environment): Call _access.
11049         (check_windows_init_file): Call _close.
11050         (init_user_info): Call _putenv.
11051         (init_environment): Call _putenv and _strdup.
11052         (init_ntproc): Reset volume info cache on startup.
11054         * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
11055         USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
11056         cannot override the CRT malloc.
11058         * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
11059         (LINK_FLAGS): Append to original value of LINK_FLAGS.
11061         * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
11062         unless we are linking with a static CRT.
11063         (RVA_TO_PTR): Cast result to unsigned char*.
11065         * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
11066         (add_volume_info): Use xstrdup.
11068 2000-08-22  Stefan Monnier  <monnier@cs.yale.edu>
11070         * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
11071         (do_completion, Fminibuffer_complete_word): Use it.
11072         (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
11073         var so it can take non-boolean values.
11075 2000-08-21  Gerd Moellmann  <gerd@gnu.org>
11077         * editfns.c (find_field): Formatting changes.
11078         (toplevel): Some old-style function forward declarations
11079         changed to prototypes, some new protypes added, some functions
11080         made static.
11082         * lisp.h (set_time_zone_rule): Add prototype.
11083         (use_dialog_box): External declaration.
11085         * keyboard.c (gen_help_event): Add parameter SIZE.
11086         (kbd_buffer_events_waiting): Slightly rewritten.
11087         (clear_event): New function.
11088         (kbd_buffer_get_event): Use it, and clear the input_events of
11089         HELP_EVENTs.
11090         (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
11091         don't fill the newly created array with nils.
11092         (toplevel): Convert some old-style function forward declarations
11093         to prototypes.
11095         * keyboard.h (gen_help_event): Change prototype.
11097         * xterm.c (XTread_socket): Change calls to gen_help_event.
11099         * w32term.c (w32_read_socket): Change calls to gen_help_event.
11101         * eval.c (Fmacroexpand): Doc fix.
11103 2000-08-20  Jason Rumney  <jasonr@gnu.org>
11105         * w32term.h (x_display_info_for_display): Remove as this function
11106         does not exist on W32.
11108         * w32term.c (help_echo_window): New variable.
11109         (syms_of_w32term): staticpro it.
11110         (note_mode_line_highlight): Set it.
11111         (XTextExtents16): Removed as there is no equivalent on W32.
11112         (x_compute_glyph_string_overhangs): Incomplete body removed, as
11113         the X way of doing this will not work for W32.
11114         (w32_intersect_rectangles): Removed. Use IntersectRect API call.
11115         (x_draw_image_foreground):  Avoid drawing outside of the clip area
11116         when image doesn't have a mask.
11117         (note_mouse_highlight): Process overlays in the right order of
11118         priority. Set help_echo_window.
11119         (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
11120         because that's more visible for large images.
11122         * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
11123         name to single_keymap_panes.
11124         (w32_menu_show): Set wv->title when dealing with titles.
11125         (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
11127 2000-08-21  Miles Bader  <miles@gnu.org>
11129         * minibuf.c (do_completion): Try again if we rewrite the input
11130         string, but no completion was done, so that any completion message
11131         will be correct.
11133 2000-08-20  Gerd Moellmann  <gerd@gnu.org>
11135         * xfaces.c (lface_equal_p): Compare strings differently.
11136         (Qtty_color_alist, Vtty_defined_color_alist): New variables.
11137         (realize_tty_face): Use them.
11138         (syms_of_xfaces): Initialize new variables.
11139         (map_tty_color): New function, extracted from realize_tty_face.
11140         (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
11141         foreground or background color, store the new color name in the
11142         realized face; previous code trying to do this had no effect.
11143         (realize_tty_face): Use map_tty_color.
11144         (Fclear_face_cache): Set face_change_count and ensure thorough
11145         redisplay.
11147 2000-08-19  Gerd Moellmann  <gerd@gnu.org>
11149         * undo.c (record_first_change, record_marker_adjustment): Don't
11150         use XBUFFER on last_undo_buffer which might not be a buffer.
11152 2000-08-18  Kenichi Handa  <handa@etl.go.jp>
11154         * coding.c (decode_coding_string): Set members consumed,
11155         consumed_char, produced, produced_char of *coding correctly.  If
11156         decode_coding doesn't consume any byte, don't try anymore.
11157         (encode_coding_string): Likewise.
11159 2000-08-18  Gerd Moellmann  <gerd@gnu.org>
11161         * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
11162         conditional have void type, for Standard C compilers.
11164         * xdisp.c (redisplay_internal): Compare windows for equality with
11165         EQ, instead of applying XWINDOW to something that might not
11166         be a window.
11168 2000-08-18  Kenichi Handa  <handa@etl.go.jp>
11170         * fontset.c (Finternal_char_font): Search only the selected frame
11171         for a window of the current buffer.
11173 2000-08-18  Gerd Moellmann  <gerd@gnu.org>
11175         * minibuf.c (do_completion): Use EQ instead of `!=' to compare
11176         Lisp_Objects.
11178         * keyboard.c (kbd_buffer_get_event): Handle the case that the
11179         second half of a HELP_EVENT is found at the start of kbd_buffer.
11181 2000-08-18  Miles Bader  <miles@gnu.org>
11183         * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
11185         * editfns.c (save_restriction_save): Rewrite to use markers.
11186         (save_restriction_restore): Rewrite to understand new form of data
11187         saved by save_restriction_save.
11188         (Fsave_restriction): Remove cautionary note in doc-string.
11190 2000-08-17  Gerd Moellmann  <gerd@gnu.org>
11192         * fileio.c (build_annotations): Add a comment explaining the
11193         return value of format-annotate-function.  Replace a spurious call
11194         to Flength with a CONSP test.  Call format-annotate-function with
11195         a fifth arg specifying how many times the function is been called
11196         in a row, to let it choose temporary buffers appropriately.
11198 2000-08-17  Dave Love  <fx@gnu.org>
11200         * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL.  Don't
11201         declare make_temp_name twice.
11203         * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
11204         (unreadpure): Give it an arg.
11206         * unexalpha.c: Prototype fatal_unexec, mark_x,
11207         update_dynamic_symbols.  Declare unexec as void.
11209         * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
11210         [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
11212         * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
11213         [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
11215         * alloca.c: Use #error.
11216         [POINTER_TYPE]: Use it.
11218         * eval.c (Fdefvar): Doc fix.
11220         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
11221         INITIALIZE_INTERVAL.
11223         * buffer.h: Avoid DECLARE_INTERVALS.
11225         * config.in: Add size_t.
11227 2000-08-17  Eli Zaretskii  <eliz@is.elta.co.il>
11229         * w16select.c (set_clipboard_data): If there's not enough memory
11230         to put text into clipboard, return 1, as Fw16_set_clipboard_data
11231         expects.  In case of other failures, return 3.
11232         (system_error_msg): New error message.
11233         (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
11234         system_error_msg.
11236 2000-08-16  Gerd Moellmann  <gerd@gnu.org>
11238         * term.c (write_glyphs): Also turn off inverse video after turning
11239         off other appearances in case TS_exit_attribute_mode is not equal
11240         to TS_end_standout_mode.
11241         (insert_glyphs): Turn inverse video on/off for each run of glyphs
11242         with the same face.
11243         (turn_off_face): Reset standout_mode only if
11244         TS_exit_attribute_mode has been output and TS_exit_attribute_mode
11245         is equal to TS_end_standout_mode.
11247 2000-08-16  Kenichi Handa  <handa@etl.go.jp>
11249         * coding.c (encode_coding): Fix the bug of not flushing ISO escape
11250         sequence at the end of the source block.
11252         * ccl.c (Fccl_program_p): Docstring modified.
11253         (Fccl_execute): Likewise.
11254         (Fccl_execute_on_string): Likewise.
11256 2000-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
11258         * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
11260 2000-08-16  Kenichi Handa  <handa@etl.go.jp>
11262         The following changes are mainly to fix bugs of
11263         encode/decode-coding-string failing if encoding/decoding return
11264         CODING_FINISH_INSUFFICIENT_DST.  In addition, delete the global
11265         variable conversion_buffer.
11267         * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
11268         decrement dst_end to avoid buffer overflow in the later call of
11269         string_as_multibyte
11271         * coding.h (conversion_buffer_size, conversion_buffer)
11272         (get_conversion_buffer): Extern deleted.
11274         * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
11275         (conversion_buffer, conversion_buffer_size): Variables deleted.
11276         (get_conversion_buffer): Function deleted.
11277         (struct conversion_buffer): New structure.
11278         (MAX_ALLOCA): New macro.
11279         (allocate_conversion_buffer): New macro.
11280         (extend_conversion_buffer, free_conversion_buffer): New functions.
11281         (ccl_coding_driver): Set coding->result.
11282         (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
11283         this is the last block of source.
11284         (encode_coding): Likewise.  Handle the source block as the last
11285         one only when the whole source text is consumed.
11286         (decode_coding_string): Handle the case that the output buffer is
11287         too small to decode the whole source text.  Use
11288         allocate_conversion_buffer, extend_conversion_buffer and
11289         free_conversion_buffer, not get_conversion_buffer.
11290         (encode_coding_string): Likewise.
11291         (init_coding): Function deleted.
11292         (init_coding_once): Delete code to initialize conversion_buffer_size.
11294         * emacs.c (main): Don't call init_coding.
11296         * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
11298         * term.c (write_glyphs): Use a locally declared conversion_buffer.
11299         (insert_glyphs): Likewise.
11301         * w32console.c (write_glyphs): Use a locally declared
11302         conversion_buffer.
11304 2000-08-15  Eli Zaretskii  <eliz@is.elta.co.il>
11306         * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
11307         member of display_info is NULL.
11309 2000-08-15  Gerd Moellmann  <gerd@gnu.org>
11311         * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
11313         * term.c (turn_off_face): Reset standout_mode when resetting
11314         appearances with capability `me'.
11315         (write_glyphs): Switch on inverse video before each face change.
11317 2000-08-14  Dave Love  <fx@gnu.org>
11319         * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
11320         [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
11321         (lisp_free): Declare and make static.
11323         * window.c: Fix embedded comment.
11324         (syms_of_window): Fix doc string.
11326 2000-08-14  Gerd Moellmann  <gerd@gnu.org>
11328         * keymap.c (push_key_description): If C without modifiers is < 32,
11329         make sure to print `C-' before `M-', like in the manual.
11331 2000-08-11  Gerd Moellmann  <gerd@gnu.org>
11333         * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
11334         since they aren't relocated anymore.
11335         (sxhash_string): Make sure returned hash code fits in a Lisp integer.
11337         * xdisp.c (try_cursor_movement): Fix handling of cursor in
11338         partially visible line which is smaller than the window's height.
11340 2000-08-11  Kenichi Handa  <handa@etl.go.jp>
11342         * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
11343         the multibyte form of eight-bit-control characters.
11344         (Fccl_execute_on_string): Initialize ccl->multibyte.
11346         * ccl.h (struct ccl_program): New member multibyte.
11348         * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
11350 2000-08-11  Kenichi Handa  <handa@etl.go.jp>
11352         * regex.c (regex_compile) <normal_char>: Pay attention to
11353         multibyteness.
11354         (analyse_first) <exactn>: Setup fastmap correctly for
11355         eight-bit-control characters.
11357 2000-08-11  Kenichi Handa  <handa@etl.go.jp>
11359         * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
11361         * keyboard.c (make_lispy_event): Handle the new event type
11362         multibyte_char_keystroke.
11364         * xterm.c: Include coding.h.
11365         (XTread_socket): Work around a bug of XmbLookupString.  If the
11366         input is from XIM, decode it according to the current locale.  In
11367         that case, generate multibyte_char_keystroke events.
11369 2000-08-11  Kenichi Handa  <handa@etl.go.jp>
11371         * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
11372         (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
11374 2000-08-10  Gerd Moellmann  <gerd@gnu.org>
11376         * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
11377         (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
11378         (move_it_in_display_line_to): Record iterator's ascent and descent
11379         before producing glyphs, and restore them when we know the glyph
11380         doesn't fit on the line.
11381         (move_it_to): Restructured so that it's easier to debug.  If
11382         moving to a vpos, and not moving to an x or character position,
11383         stop as soon as the specified vpos is reached; don't move further
11384         into that line because that might change the computed line height.
11385         (try_cursor_movement): New function, extracted from the cursor
11386         movement branch of redisplay_window.  If ending on a partially
11387         visible line, don't try to scroll if the cursor line is taller
11388         than the window.
11389         (redisplay_window): Use try_cursor_movement.
11391         * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
11392         because that function doesn't cope with variable-height lines.
11394         * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
11395         box cursor because that's better visible for large images.
11397 2000-08-10  Miles Bader  <miles@gnu.org>
11399         * w32term.c (note_mouse_highlight): Update calls to overlays_at.
11401 2000-08-10  Gerd Moellmann  <gerd@gnu.org>
11403         * xdisp.c (Vmessages_buffer_name): New variable.
11404         (message_dolog): Use it.
11405         (syms_of_xdisp): Initialize it.
11407 2000-08-10  Eli Zaretskii  <eliz@is.elta.co.il>
11409         * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
11410         (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
11411         redundant now that keyboard.h is included.
11413 2000-08-09  Eli Zaretskii  <eliz@is.elta.co.il>
11415         * keyboard.c (kbd_buffer_events_waiting): New function.
11417         * keyboard.h (kbd_buffer_events_waiting): Add prototype.
11419         * msdos.c: Include keyboard.h.
11420         (XMenuActivate): Empty no_event events from the event buffer.  If
11421         no events are left after that, call clear_input_pending.
11422         (mouse_clear_clicks): New function, code moved from mouse_init.
11423         (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
11424         mouse driver to ``forget'' any past clicks.
11426         * Makefile.in (msdos.o): Depend on keyboard.h.
11428 2000-08-09  Gerd Moellmann  <gerd@gnu.org>
11430         * lisp.h (input_pending): External declaration.
11432         * dispextern.h (Qredisplay_dont_pause): Declare extern.
11434         * xdisp.c (echo_area_display): Display thoroughly if input is
11435         pending.  Bind redisplay-dont-pause to t during the redisplay.
11436         in case input is pending.
11438         * dispnew.c (Qredisplay_dont_pause): New variable.
11439         (syms_of_display): Initialize and staticpro it.
11440         (update_frame_1): Don't interrupt the display for pending input if
11441         redisplay_dont_pause is set.
11443         * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
11445         * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11447 2000-08-09  Miles Bader  <miles@lsi.nec.co.jp>
11449         * callproc.c (Fcall_process): Terminate the unwind-protect around
11450         the post-read-conversion of coding system.
11452         * buffer.c (overlays_at): Add CHANGE_REQ parameter.
11453         (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
11454         * buffer.h (overlays_at): Update prototype.
11455         * xdisp.c (next_overlay_change): Update call to overlays_at.
11456         * xfaces.c (face_at_buffer_position): Likewise.
11457         * textprop.c (Fget_char_property): Likewise.
11458         * xterm.c (note_mouse_highlight): Likewise.
11460         * minibuf.c (do_completion): Don't consider a simple change of
11461         case as `completion'.
11463 2000-08-08  Ken Raeburn  <raeburn@gnu.org>
11465         * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
11466         * undo.c (record_delete): Make sure last_point_position_buffer is
11467         a buffer before comparing pointers.
11469         * coding.h (decode_coding_string): Declare.
11471         * intervals.h (Fprevious_single_char_property_change): Declare.
11473         * textprop.c (Fprevious_single_char_property_change): Don't do
11474         arithmetic directly on lisp objects.
11476         * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
11478         * keyboard.h (menu_item_eval_property): Declare.
11480         * xdisp.c (message_dolog): Save and protect string "*Messages*" to
11481         reuse as buffer name, instead of recreating (and discarding) every
11482         time a message is logged.
11483         (with_echo_area_buffer): Make callback arg A2 a lisp object.
11484         (current_message_1, truncate_message_1, set_message_1)
11485         (display_echo_area_1, resize_mini_window_1): Signatures changed.
11486         (current_message, truncate_echo_area, display_echo_area)
11487         (resize_echo_area_axactly): Changed calls.
11489         * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
11490         Lisp object.
11491         (Ffind_coding_systems_region_internal): First argument to Fappend
11492         must be an integer, not a Lisp object.
11494 2000-08-08  Kenichi Handa  <handa@etl.go.jp>
11496         * charset.c (Fchar_width): Doc fix.
11498 2000-08-08  Gerd Moellmann  <gerd@gnu.org>
11500         * charset.c (Fstring_width): Doc fix.
11502 2000-08-07  Gerd Moellmann  <gerd@gnu.org>
11504         * xdisp.c (start_display): When starting display on a continuation
11505         line, clear ascent and descent members of the iterator structure;
11506         the height of the continued line does not affect the height of the
11507         continuation line.
11508         (make_cursor_line_fully_visible): Do nothing if cursor is on a
11509         line taller than the window.
11510         (redisplay_window) <forced window start>: Handle case that the
11511         middle of the window is not found in any row.
11512         (dump_glyph_row): Show more information.
11513         (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
11514         first text line in a glyph matrix.
11516         * xterm.c (x_draw_image_foreground): Avoid drawing outside
11517         of the clip area when image doesn't have a mask.
11519         * fns.c (sweep_weak_table): Fix survival conditions for
11520         key-or-value and key-and-value weakness.
11522         * .gdbinit (xhashtable): New command.
11524         * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
11525         tables out of the list of all weak hash tables.
11527         * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
11528         a new buffer is created, make sure echo_area_buffer[] references
11529         the new buffer.
11531 2000-08-07  Eli Zaretskii  <eliz@is.elta.co.il>
11533         * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
11534         the doc string.
11536 2000-08-07  Kenichi Handa  <handa@etl.go.jp>
11538         * syntax.c (skip_chars): Fix previous change.  Make the handling
11539         of unibyte string consistent with that of regex search.
11541 2000-08-05  Gerd Moellmann  <gerd@gnu.org>
11543         * xmenu.c (popup_get_selection): Use xfree instead of free.
11545         * fileio.c (Finsert_file_contents): Use xfree instead of free.
11547         * editfns.c (Ftranspose_regions): Use xfree instead of free.
11549         * callproc.c (child_setup): Use xfree instead of free.
11551         * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
11552         instead of malloc.
11553         (run_mac_command, closedir): Use `xfree' instead of `free'.
11555         * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
11557         * eval.c (error): Use xfree instead of free.
11559         * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
11561         * fns.c: Replace `illegal' with `invalid'.
11562         (Fmake_hash_table, make_hash_table): Allow table size of 0.
11564 2000-08-05  Kenichi Handa  <handa@etl.go.jp>
11566         * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
11567         conversion.
11569 2000-08-04  Noah Friedman  <friedman@splode.com>
11571         * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
11572         docstring.
11574 2000-08-04  Gerd Moellmann  <gerd@gnu.org>
11576         * syntax.c (skip_chars): Fix typo in error message.
11578 2000-08-04  Andreas Schwab  <schwab@suse.de>
11580         * m/ia64.h: Moved from s/ia64.h.
11582 2000-08-04  Kenichi Handa  <handa@etl.go.jp>
11584         * process.c (read_process_output): Big simplification.  Handle
11585         composition and post-read-conversion of coding system correctly.
11586         (send_process): Handle composition correctly.
11588         * callproc.c (Fcall_process): Handle post-read-conversion of
11589         coding system if any.
11591         * coding.c (decode_coding_iso2022): More strict check for handling
11592         single shifting.
11593         (coding_restore_composition): Pay attention to the case that
11594         cmp_data is not set properly (because of invalid code in the
11595         source text).
11596         (run_pre_post_conversion_on_str): Include text properties in the
11597         resulting string.
11598         (decode_coding_string): Set members of coding correctly.
11600 2000-08-03  Gerd Moellmann  <gerd@gnu.org>
11602         * s/ia64.h: New file.
11604         * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
11605         Use NULL instead of 0 at the end of variable argument list of
11606         XtVaGetValues and XtVaSetValues, because 0 fails on systems where
11607         sizeof (int) < sizeof (void *).
11609         * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
11610         of variable argument lists of XtVaGetValues and XtVaSetValues.
11612         * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
11613         variable argument lists of XtVaGetValues and XtVaSetValues.
11615 2000-08-02  Gerd Moellmann  <gerd@gnu.org>
11617         * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
11618         (xrealloc, xmalloc): Use size_t.  Some callers adjusted.
11620         * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
11621         prototype.
11623         * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
11624         in call to Fsingle_key_description.
11626         * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
11627         Callers changed.
11629 2000-08-02  Colin Walters <walters@cis.ohio-state.edu>
11631         * window.c (display_buffer_reuse_frames): New variable.
11632         (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
11633         frames displaying BUFFER.
11634         (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
11636 2000-08-01  Miles Bader  <miles@gnu.org>
11638         * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
11639         when to constrain NEW_POS (they were pretty screwed up before).
11641 2000-07-31  Eli Zaretskii  <eliz@is.elta.co.il>
11643         * msdos.c (run_msdos_command): Save and restore the master
11644         environment, for the case that child_setup signals an error.
11645         When mirroring slashes in DOS shell commands, don't fail when
11646         argv[2] has embedded blanks.
11647         (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
11648         (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
11649         (dos_ttraw): Call mouse_setup_buttons.
11651         * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
11652         using alloca; free it after run_msdos_command returns.
11654 2000-07-27  Dave Love  <fx@gnu.org>
11656         * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
11657         [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
11659         * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
11661 2000-07-27  Eli Zaretskii  <eliz@is.elta.co.il>
11663         * editfns.c (lisp_time_argument): Fix last change.
11665 2000-07-27  Gerd Moellmann  <gerd@gnu.org>
11667         * fns.c (Fdelete): Make it work on vectors and strings in addition
11668         to lists.
11670         * fns.c (Qkey_or_value, Qkey_and_value): New variables.
11671         (syms_of_fns): Initialize new variables.
11672         (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
11673         (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
11674         weakness, with t meaning the same as `key-and-value'.
11676 2000-07-27  Kenichi Handa  <handa@etl.go.jp>
11678         * coding.h (struct coding_system): Member safe_charset deleted.
11680         * coding.c (Qsafe_charsets): This variable deleted.
11681         (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
11682         New variables.
11683         (coding_safe_chars): New function.
11684         (CODING_SAFE_CHAR_P): New macro.
11685         (CHARSET_OK): New arg C.  Call CODING_SAFE_CHAR_P instead of
11686         checking safe_charsets member of the coding system.  Caller changed.
11687         (detect_coding_iso2022): New local variable safe_chars.
11688         (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
11689         safe_charsets member of the coding system.
11690         (decode_coding_iso2022): New local variable safe_chars.
11691         (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
11692         (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
11693         (ENCODE_ISO_CHARACTER): Arguments changed.  Caller changed.
11694         (ENCODE_UNSAFE_CHARACTER): New macro.
11695         (encode_coding_iso2022): New local variable safe_chars.  Check
11696         unsafe chars.
11697         (setup_coding_system): Delete the code to initialize
11698         coding->safe_charses
11699         (intersection, find_safe_codings): New functions.
11700         (Ffind_coding_systems_region_internal): New function.
11701         (syms_of_coding): Defsubr it.  Initialize Qsafe_chars,
11702         Qsafe_cding_system.  Make Vchar_coding_system_table a Lisp
11703         variable and initialize it.
11705         * fns.c (char_table_ref_and_index): New function.
11707         * lisp.h (char_table_ref_and_index): Add prototype.
11709 2000-07-26  Sam Steingold  <sds@gnu.org>
11711         * editfns.c (lisp_time_argument): Added third argument `usec'.
11712         (Ffloat_time): New built-in Lisp function.
11714 2000-07-26  Gerd Moellmann  <gerd@gnu.org>
11716         * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
11717         for the character code.
11719         * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
11720         GNU/Linux.
11722         * xmenu.c (menu_highlight_callback): Call show_help_echo directly
11723         if called for a popup menu.
11724         (xmenu_show): Store help string in widget values.
11726 2000-07-26  Dave Love  <fx@gnu.org>
11728         * syswait.h: Move some definitions.
11729         (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
11730         [!HAVE_SYS_WAIT_H]: Define things unconditionally.   More
11731         perspicuous definitions.
11732         (WTERMSIG): Fix bit pattern used.
11734 2000-07-26  Kenichi Handa  <handa@etl.go.jp>
11736         * print.c (print_object): If vector printing is truncated, print
11737         "..." to indicate it as well as the case of list printing.
11739 2000-07-25  Gerd Moellmann  <gerd@gnu.org>
11741         * xdisp.c (next_element_from_display_vector): Improve comments.
11743         * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11744         for the character code, and the rest for the face id as in 20.x.
11745         (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
11747         * window.c (window_display_table): Cleaned up.
11749         * syntax.c (Fforward_word): Add last arg nil in call of
11750         Fconstrain_to_field.
11752 2000-07-25  Eli Zaretskii  <eliz@is.elta.co.il>
11754         * fileio.c (Frename_file) [DOS_NT]: If the file names are
11755         identical but for the letter-case, don't call
11756         barf_or_query_if_file_exists.
11758 2000-07-25  Miles Bader  <miles@gnu.org>
11760         * editfns.c (find_field): Honor special `boundary' fields.
11761         (Qboundary): New variables.
11762         (syms_of_editfns): Initialize Qboundary.
11763         (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
11764         Use scan_buffer instead of find_before_next_newline, because it
11765         allows us to detect the boundary case where there's a newline at
11766         the search limit.
11767         * lisp.h (Fconstrain_to_field): Update external declaration.
11769 2000-07-24  Gerd Moellmann  <gerd@gnu.org>
11771         * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
11772         if that is nil.
11774 2000-07-24  Dave Love  <fx@gnu.org>
11776         * s/sunos4-0.h, s/sol2.h:
11777         (LIBS_TERMCAP): Move from m/sparc.h.
11779         * m/sparc.h (TERMINFO): Moved to system files (probably only
11780         relevant for sunos4 judging by its vintage).
11781         (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
11782         __arch64__.
11784 2000-07-24  Eli Zaretskii  <eliz@is.elta.co.il>
11786         * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
11787         name to single_keymap_panes.
11789 2000-07-24  Andreas Schwab  <schwab@suse.de>
11791         * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
11793 2000-07-24  Gerd Moellmann  <gerd@gnu.org>
11795         * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
11796         parameters instead of using int parameters.  Expect FN to accept
11797         EMACS_INT parameters.
11798         (display_echo_area, resize_echo_area_axactly, current_message)
11799         (truncate_echo_area, set_message_1): Call with_echo_area_buffer
11800         with new argument list.
11801         (resize_mini_window_1): New callback function.
11802         (current_message_1, truncate_message_1, set_message_1): Change
11803         parameter lists to the new format expected by with_echo_area_buffer.
11805 2000-07-24  Kenichi Handa  <handa@etl.go.jp>
11807         * fontset.c (fontset_ref): Remove INLINE declaration.
11808         (fontset_ref_via_base): Likewise.
11809         (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
11810         to downcase.
11812 2000-07-23  Eli Zaretskii  <eliz@is.elta.co.il>
11814         * msdos.c (IT_note_mouse_highlight): Process overlays in the
11815         correct order of priority.  If help echo was found in an overlay,
11816         use that overlay as the object in which the help echo was found.
11818 2000-07-22  Miles Bader  <miles@gnu.org>
11820         * textprop.c (Fprevious_single_char_property_change): The initial
11821         property value should be from the position preceding POSITION, not
11822         following it.
11824 2000-07-22  Eli Zaretskii  <eliz@is.elta.co.il>
11826         * coding.c (syms_of_coding): Doc fix for
11827         inhibit-iso-escape-detection.
11829 2000-07-21  Gerd Moellmann  <gerd@gnu.org>
11831         * xterm.c (note_mouse_highlight): Process overlays in the right
11832         order of priority.
11834         * keyboard.c (show_help_echo, gen_help_event): Extend comments.
11836         * xterm.c (note_mouse_highlight): If help-echo was found in an
11837         overlay, use that overlay as the object in which the help was found.
11839         * window.c (foreach_window_1): Fix typo reversing an if-condition.
11841         * window.c (foreach_window): Instead of a fake variable argument
11842         list, take one USER_DATA argument.
11843         (foreach_window_1): Likewise, and call callback functions with two
11844         args, the window and USER_DATA.
11845         (struct check_window_data): New struct.
11846         (check_window_containing): Use it.
11847         (window_from_coordinates): Set up a struct check_window_data for
11848         foreach_window.
11849         (add_window_to_list, freeze_window_start): Change parameters
11850         according to new calling convention.
11852         * window.h (foreach_window): Change prototype.
11854         * buffer.c (Fprevious_overlay_change): Avoid memory leak.
11856 2000-07-21  Eli Zaretskii  <eliz@is.elta.co.il>
11858         * xmenu.c (menu_help_callback): Call show_help_echo with
11859         additional arguments OBJECT and POS.
11861 2000-07-21  Kenichi Handa  <handa@etl.go.jp>
11863         * data.c (Faset): Allow storing any multibyte character in a
11864         string.  Convert unibyte string to multibyte if necessary.
11866         * xfns.c (x_encode_text): New function.
11867         (x_set_name): Use x_encode_text.
11868         (x_set_title): Likewise.
11870         * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
11872         * xterm.h (x_encode_text): Add prototype.
11874 2000-07-20  Dave Love  <fx@gnu.org>
11876         * ccl.c (Fccl_execute_on_string): Don't check xmalloc return.  Use
11877         xfree, not free.
11879 2000-07-20  Eli Zaretskii  <eliz@is.elta.co.il>
11881         * msdos.c (help_echo_window): New variable.
11882         (syms_of_msdos): Initialize and staticpro it.
11883         (IT_note_mode_line_highlight): Set help_echo_window.
11884         (IT_note_mouse_highlight): Ditto.
11885         (dos_rawgetc): Store help_echo_window in the second event produced
11886         for HELP_EVENTs.
11888         * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
11889         Record the object that generated the help echo and the position of
11890         that object in help_echo_object and help_echo_pos.  Record that
11891         some glyphs in a row are displayed in mouse-face.
11892         (IT_update_begin): Don't clear mouse highlight unless one of the
11893         enabled glyph rows is marked as being displayed in mouse-face.
11894         (dos_rawgetc): Generate 2 events for HELP_EVENT.  Pass the object
11895         and position recorded in help_echo_object and help_echo_pos to the
11896         event queue.
11897         (IT_menu_display): Accept a new argument PN: the pane number of
11898         the current menu pane.  Record the pane number and the item
11899         number of the item which has associated help string.
11900         (XMenuActivate): Update the prototype for help_callback in
11901         function declaration.  Call IT_menu_display with the current menu
11902         pane number as an additional argument.  Call help_callback with
11903         two additional arguments: the pane number and the item number of
11904         the menu item associated with the help text.
11905         (help_echo_object, help_echo_pos): New variables.
11906         (syms_of_msdos): Initialize them and staticpro help_echo_object.
11908         * msdos.h (XMenuActivate): Update prototype.
11910 2000-07-19  Gerd Moellmann  <gerd@gnu.org>
11912         * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
11913         Add some more prototypes.
11915         * xterm.c, xterm.h: Add some more prototypes.
11917         * lisp.h (Fnext_single_char_property_change): Add prototype.
11919         * dispnew.c (direct_output_for_insert): Remove confusing
11920         outer local variable mouse_face_overwritten_p.
11921         (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
11923         * alloc.c (allocate_string_data): Don't copy old string contents.
11925 2000-07-19  Kenichi Handa  <handa@etl.go.jp>
11927         * coding.c (code_convert_region): Delete text properties before
11928         shrinking the conversion region.
11930 2000-07-18  Gerd Moellmann  <gerd@gnu.org>
11932         * dispnew.c (update_text_area): Write the whole row if it
11933         has mouse-face in it.
11935         * xfaces.c (face-alternative-font-family-alist): Remove
11936         DEFVAR_LISP; staticpro instead.
11938         * xmenu.c (menu_help_callback): Call show_help_echo with
11939         new arguments.
11941         * keyboard.c (show_help_echo): Add parameter WINDOW.
11942         (read_char): Call show_help_echo with window extracted from Lisp
11943         help event.
11944         (gen_help_event): Add parameter WINDOW.
11946         * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
11948         * xterm.c (help_echo_window): New variable.
11949         (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
11950         (XTread_socket): Pass help_echo_window to gen_help_event.
11951         (syms_of_xterm): Initialize and staticpro help_echo_window.
11953 2000-07-18  Dave Love  <fx@gnu.org>
11955         * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
11957 2000-07-18  Gerd Moellmann  <gerd@gnu.org>
11959         * alloc.c (allocate_string_data): If string had already data
11960         assigned, copy old contents to new string data.
11962         * coding.c (syms_of_coding): Fix typo in spelling of variable
11963         `inhibit-iso-escape-detection'.
11965         * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
11967         * Makefile.in: Add dependencies on dispextern.h.
11968         (alloca.o): Don't define malloc and define EMACS_FREE instead of
11969         `free'; both can conflict with system header files.
11971 2000-07-18  Kenichi Handa  <handa@etl.go.jp>
11973         * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
11974         undefined.
11976 2000-07-18  Dave Love  <fx@gnu.org>
11978         * window.c (Fwindow_list): Declare arg `window'.
11980 2000-07-18  Kenichi Handa  <handa@etl.go.jp>
11982         * coding.c (setup_coding_system): Don't override the explicitly
11983         specified designations.
11985 2000-07-15  Miles Bader  <miles@gnu.org>
11987         * editfns.c (char_property_eq, char_property_stickiness): Renamed
11988         from `text_property_eq' and `text_property_stickiness', respectively.
11989         (find_field, Fconstrain_to_field, char_property_eq)
11990         (char_property_stickiness): Changed to call char-property functions
11991         instead of text-property-only ones.
11993         * textprop.c (Fnext_single_char_property_change): Made a subr (was
11994         `next_single_char_property_change').  Do more error checking, and
11995         cleanup limit behavior.
11996         (Fprevious_single_char_property_change): New function.
11997         (syms_of_textprop): Initialize new subrs.
11999         * xdisp.c (display_prop_end, invisible_text_between_p):
12000         Call Fnext_single_char_property_change instead of
12001         next_single_char_property_change.
12003 2000-07-15  Jason Rumney  <jasonr@gnu.org>
12005         * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
12006         after menu is finished with.
12007         (add_menu_item): Only consider wv->title as a menu title.
12008         (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
12010         * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
12011         null title.
12012         (FONT_REGEXP): Remove unused macro, and its sub-components.
12013         (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
12015         * w32term.c (help_echo_object, help_echo_pos): New variables.
12016         (note_mode_line_highlight): Store additional information about the
12017         help-echo in help_echo_object and help_echo_pos.  Check both
12018         `local-map' and `keymap' properties for changing the cursor
12019         (note_mouse_highlight): Store additional information about the
12020         help-echo in help_echo_object and help_echo_pos.
12021         (note_tool_bar_highlight): Set help_echo_object to nil and
12022         help_echo_pos to -1.
12023         (w32_read_socket): Use gen_help_event instead of filling
12024         input_events manually.
12025         (syms_of_w32term): Staticpro help_echo_object.
12026         (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
12027         set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
12028         (x_clear_mouse_face): New function.
12029         (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
12030         (x_update_window_begin): No need to turn off the mouse
12031         highlight here.
12032         (show_mouse_face): Set the mouse_face_p flag of glyph rows
12033         depending on whether they contain glyphs highlighted in mouse-face.
12034         (x_fill_stretch_glyph_string): Consume runs of stretch
12035         glyphs instead of a single one.
12036         (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
12037         with new argument list.
12038         (x_set_glyph_string_gc): Make sure the face's GC is valid.
12039         (x_append_glyph, x_append_composite_glyph)
12040         (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
12041         changes in struct glyph starting 1999-12-27. See comments for
12042         xterm.c on 2000-07-05.
12044 2000-07-14  Sam Steingold  <sds@gnu.org>
12046         * xfaces.c (realize_x_face): Fix the last patch:
12047         check `default_face' before dereferencing.
12049 2000-07-14  Dave Love  <fx@gnu.org>
12051         * syntax.c (back_comment): Add null default in switch (for pcc).
12053 2000-07-14  Kenichi Handa  <handa@etl.go.jp>
12055         * xfaces.c (realize_x_face): Make fontset using the base of the
12056         default_face's fontset, not using the default fontset.
12058         * coding.c (inhibit_iso_escape_detection): New variable.
12059         (syms_of_coding): Make it a Lisp variable.
12060         (detect_coding_iso2022): If inhibit_iso_escape_detection is
12061         nonzero, ignore ISO2022's escape sequence.
12063 2000-07-14  Gerd Moellmann  <gerd@gnu.org>
12065         * alloca.c (malloc) [emacs]: Define as xmalloc.
12067         * xfns.c (Fx_show_tip): If frame parameters contain a position,
12068         use that instead of the mouse position.  Add parameters DX and DY.
12070         * dispextern.h (Fx_show_tip): Adjust number of parameters
12071         in prototype.
12073         * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
12074         if HELP is a function, call it with OBJECT and POS as parameters
12075         to get the help to display.
12076         (gen_help_event, kbd_buffer_store_help_event): New functions.
12077         (kbd_buffer_get_event): Construct the Lisp help-event differently.
12078         (read_char): Call show_help_echo with new parameters.
12080         * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
12081         Add prototypes.
12083         * xterm.c (help_echo_object, help_echo_pos): New variables.
12084         (note_mode_line_highlight): Store additional information about the
12085         help-echo in help_echo_object and help_echo_pos.  Check both
12086         `local-map' and `keymap' properties for changing the cursor
12087         (note_mouse_highlight): Store additional information about the
12088         help-echo in help_echo_object and help_echo_pos.
12089         (note_tool_bar_highlight): Set help_echo_object to nil and
12090         help_echo_pos to -1.
12091         (XTread_socket): Use gen_help_event instead of filling
12092         input_events manually.
12093         (syms_of_xterm): Staticpro help_echo_object.
12095         * xmenu.c (menu_highlight_callback): Use
12096         kbd_buffer_store_help_event instead of setting up and input_event
12097         structure manually.
12099         * xdisp.c (eval_form): GCPRO argument sexpr.
12100         (call_function): New function.
12101         (handle_single_display_prop): Use call_function and FUNCTIONP
12102         instead of checking whether if font_height is a symbol and
12103         using eval_form.
12105         * eval.c (internal_condition_case_2): New function.
12107         * lisp.h (FUNCTIONP): New macro.
12108         (internal_condition_case_2, call_function): Add prototypes.
12110         * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
12111         (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
12112         Always set `arg' member of input_events.
12113         (construct_menu_click): Unused function removed.
12115         * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
12117         * w32term.c (construct_mouse_click, construct_mouse_wheel)
12118         (construct_drag_n_drop, x_scroll_bar_handle_click)
12119         (w32_read_socket): Always set `arg' member of input_events.
12121         * keyboard.c (show_help_echo): Use eval_form.  Add comment.
12123         * lisp.h (eval_form): Add prototype.
12125         * xdisp.c (eval_form): Make it externally visible.
12127 2000-07-13  Gerd Moellmann  <gerd@gnu.org>
12129         * xterm.c (x_handle_tool_bar_click): Store the frame in the
12130         frame_or_window slot of TOOL_BAR_EVENT input events instead of
12131         consing.  For prefix events, store the frame in the `arg' slot of
12132         the event, otherwise store the key there.
12133         (XTread_socket): Instead of consing, use the frame_or_window slot
12134         of HELP_EVENTs for the frame, and the `arg' slot for the help string.
12136         * xmenu.c (menu_highlight_callback): Store help string in the
12137         `arg' member of the input event; don't cons.
12138         (menubar_selection_callback): Use the `arg' slot of input events
12139         to queue additional information, instead of consing.
12141         * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
12143         * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
12144         TOOL_BAR_EVENTs.
12145         (w32_read_socket): Adapt to changes in HELP_EVENTs.
12147         * w32menu.c (menubar_selection_callback): Use the `arg' slot of
12148         input events to queue additional information, instead of consing.
12150         * keyboard.c (kbd_buffer_gcpro): Renamed from
12151         kbd_buffer_frame_or_window.  Now used for all Lisp objects
12152         referenced from the input queue.
12153         (kbd_buffer_store_event): Always use structure assignment for
12154         copying input events.  Record all Lisp objects referenced from
12155         events in kbd_buffer_gcpro.
12156         (kbd_buffer_get_event): Construct Lisp `help-echo' events
12157         differently from input events.  Test for prefix menu_bar_events
12158         and TOOL_BAR_EVENTs differently.  Reset all slots used by an input
12159         event in kbd_buffer_gcpro to nil.
12160         (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
12161         frame_or_window is equal to its arg member as prefix events.
12162         (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
12163         used by an input event to nil.
12164         (init_keyboard): Use two times the size of the input queue
12165         for kbd_buffer_gcpro.
12166         (syms_of_keyboard): Likewise.
12168         * emacs.c (handle_USR2_signal, handle_USR1_signal):
12169         Use USER_SIGNAL_EVENT.
12171         * termhooks.h (struct input_event): Add member `arg'.
12172         (MENU_BAR_EVENT): Renamed from menu_bar_event.
12173         (USER_SIGNAL_EVENT): Renamed from user_signal.
12175         * xfaces.c (ASET): Remove definition.
12177         * lisp.h (AREF, ASET, ASIZE): New macros.
12179         * fontset.c (AREF, ASIZE): Remove definitions.
12181         * fns.c (AREF): Remove definition.
12183         * composite.c (AREF): Remove definition.
12185 2000-07-12  Gerd Moellmann  <gerd@gnu.org>
12187         * dispnew.c (redraw_overlapped_rows): Add missing local.
12188         (scrolling_window): Remove debug code.
12190         * xdisp.c (try_window_reusing_current_matrix, try_window_id):
12191         Before scrolling, turn off a mouse-highlight in the window
12192         being scrolled.
12194         * xterm.c (x_update_window_end): Add parameter
12195         MOUSE_FACE_OVERWRITTEN_P.  If set, arrange for a mouse-highlight
12196         redisplay in XTframe_up_to_date.
12197         (x_clear_mouse_face): New function.
12198         (x_redisplay_interface): Add pointer to x_clear_mouse_face.
12200         * dispnew.c (make_current): Preserve the mouse_face_p flag of the
12201         current glyph row.
12202         (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P.  Set
12203         it when any row is written to that contains glyphs highlighted in
12204         mouse-face.
12205         (update_window): Call the window update end hook with new
12206         parameter MOUSE_FACE_OVERWRITTEN_P.
12207         (direct_output_for_insert): Give up if row contains mouse-face.
12209         * dispextern.h (struct redisplay_interface): Add parameter
12210         MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
12211         (clear_mouse_face): New function pointer member.
12213 2000-07-11  Stefan Monnier  <monnier@cs.yale.edu>
12215         * syntax.c (back_comment): Use one switch rather than a few `if's.
12216         Obey open_paren_in_column_0_is_defun_start.
12217         When reverting to the `slow' method, try to nicely handle the case
12218         of nested comments by checking that the comment-starter we found
12219         does indeed match the comment-ender.
12220         (scan_sexps_forward, scan_sexps_forward):
12221         Ignore excessive opening parenthesis rather than throwing an error.
12223 2000-07-11  Gerd Moellmann  <gerd@gnu.org>
12225         * doc.c (Fsubstitute_command_keys): Handle case that a GC
12226         in Fwhere_is_internal or get_keymap_1 relocates string contents.
12228         * dispnew.c (direct_output_forward_char): Give up if currently
12229         displaying a message instead of the minibuffer contents.
12231         * xterm.c (x_update_window_begin): No need to turn off the mouse
12232         highlight here.
12233         (show_mouse_face): Set the mouse_face_p flag of glyph rows
12234         depending on whether they contain glyphs highlighted in mouse-face.
12236         * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P.  If set,
12237         compare the mouse_face_p flags of both rows.
12239         * dispextern.h (struct glyph_row): Add flag mouse_face_p.
12241 2000-07-11  Eli Zaretskii  <eliz@is.elta.co.il>
12243         * keyboard.c (show_help_echo): Accept additional parameter
12244         ok_to_overwrite_keystroke_echo.
12245         (read_char): Call show_help_echo with a zero
12246         ok_to_overwrite_keystroke_echo argument.
12247         * keyboard.h (show_help_echo): Update prototype of show_help_echo.
12248         * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
12249         ok_to_overwrite_keystroke_echo argument.
12250         * w32menu.c (w32_menu_display_help): Call show_help_echo with
12251         non-zero ok_to_overwrite_keystroke_echo argument.
12253 2000-07-10  Gerd Moellmann  <gerd@gnu.org>
12255         * xdisp.c (try_window_id): If changes are all below what is
12256         displayed in the window, and point is in the window, we still
12257         might have to find point on the display.
12259         * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
12260         glyphs instead of a single one.
12261         (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
12262         with new argument list.
12263         (x_set_glyph_string_gc): Make sure the face's GC is valid.
12265         * keymap.c (get_keymap_1): Add comment that this function can GC.
12266         (where_is_internal_2, where_is_internal_1): Add GCPROs, add
12267         comment that functions can GC.
12268         (Fset_keymap_parent): GCPRO arg KEYMAP.
12270 2000-07-10  Eli Zaretskii  <eliz@is.elta.co.il>
12272         * msdos.c (XMenuActivate): After exiting the menu, restore the
12273         echo area message and erase it.
12275 2000-07-10  Kenichi Handa  <handa@etl.go.jp>
12277         * fontset.c (Ffontset_info): Make the return value more compatible
12278         with that of Emacs 20.
12280 2000-07-07  Gerd Moellmann  <gerd@gnu.org>
12282         * eval.c (Fsignal): Handle case that backtrace_list is null.
12284 2000-07-07  Kenichi Handa  <handa@etl.go.jp>
12286         * ccl.c (Fccl_execute): Typo fixed.
12288 2000-07-06  Gerd Moellmann  <gerd@gnu.org>
12290         * window.c (window_loop): Add missing gcpro1 local variable.
12292         * window.c (Fwindow_list): Reverse list at the end.
12293         (candidate_window_p): Add parameter OWINDOW.  ALL_FRAMES nil
12294         means allow windows on OWINDOW's frame, only.
12295         (window_loop): Simplified; use Fwindow_list.
12297         * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
12299 2000-07-05  Gerd Moellmann  <gerd@gnu.org>
12301         * xterm.c (XTread_socket): Increment handling_signal at the start,
12302         decrement it at the end.
12304         * eval.c (handling_signal): New variable.
12305         (Fsignal): Abort if handling_signal is non-zero.
12307         * lisp.h (handling_signal): External declaration.
12309         * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
12311 2000-07-05  Ken Raeburn  <raeburn@gnu.org>
12313         Sound support for NetBSD through "Linux emulation" support:
12314         * config.in (HAVE_SOUNDCARD_H): Undef.
12315         (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
12316         * Makefile.in (LIBSOUND): New variable.
12317         (LIBES): Include it.
12318         * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
12319         (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
12320         (vox_open): Use DEFAULT_SOUND_DEVICE.
12321         * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
12323 2000-07-05  Gerd Moellmann  <gerd@gnu.org>
12325         * print.c (print_error_message): If Vsignaling_function is set,
12326         show it in *Messages*.
12328         * lisp.h (Vsignaling_function): External declaration.
12330         * eval.c (Vsignaling_function): New variable.
12331         (Fsignal): Compute it.
12332         (syms_of_eval): Staticpro it.
12334 2000-07-05  Dave Love  <fx@gnu.org>
12336         * syswait.h: Use the autoconf recommended approach.  Old code
12337         #if'd out in case we need to revert.
12339         * config.in (HAVE_SYS_WAIT_H): Added.
12341 2000-07-05  Andrew Innes  <andrewi@gnu.org>
12343         * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
12344         when non-NULL instead of __morecore, to take account of buffer
12345         memory.  This also solves a problem with spurious memory warnings
12346         on Windows.
12348         * ralloc.c: Make real_morecore non-static.
12350         * eval.c (internal_condition_case): Comment out abort if
12351         interrupt_input_blocked is not zero.
12353         * makefile.nt: Add support for `bootstrap' and related targets.
12354         Include minimal debug info in emacs.exe in release build.
12355         Remove all dependencies on lisp.h, and fixup some others.
12357         * w32.c (init_environment): Install code from 20.7 for providing
12358         default values for environment variables, based on the
12359         executable's own location.
12360         (map_w32_filename): Handle filenames that are longer than MAX_PATH.
12361         (sys_socket): Install socket inheritance bug fix from 20.7.
12363         * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
12364         here via blockinput.h).
12366 2000-07-05  Stefan Monnier  <monnier@cs.yale.edu>
12368         * w32menu.c (w32_menu_display_help):
12369         * xmenu.c (menu_help_callback): Use show_help_echo.
12371         * keyboard.h (show_help_echo): Declare.
12373         * keyboard.c (show_help_echo): New function, extracted from read_char.
12374         Feval its `msg' argument if it's a cons cell.
12375         (read_char): Use it.
12376         (follow_key): Pass `autoload' to get_keyelt.
12378         * xterm.c (note_mode_line_highlight, note_mouse_highlight)
12379         (note_tool_bar_highlight, XTread_socket):
12380         * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
12381         (dos_rawgetc):
12382         * w32term.c (note_mode_line_highlight, note_mouse_highlight)
12383         (note_tool_bar_highlight, w32_read_socket):
12384         Do not gratuitously ignore non-string `help-echo' properties.
12386 2000-07-05  Gerd Moellmann  <gerd@gnu.org>
12388         * eval.c (Feval): Put check for interrupt_input_block in #if 0.
12390         * window.c (delete_all_subwindows): Reset Vwindow_list.
12392         * xterm.c (x_append_glyph, x_append_composite_glyph)
12393         (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
12394         changes in struct glyph starting 1999-12-27.  Some bit-fields of
12395         struct glyph were not set, which made glyphs unequal when compared
12396         with GLYPH_EQUAL_P.  Redisplay outputs such glyphs, and flickering
12397         effects were the result.  This also depended on the contents of
12398         memory returned by xmalloc.  If flickering happens again, activate
12399         the code in clear_glyph_row that's in #if 0.  If the flickering is
12400         gone with that, chances are that it is caused by something similar.
12402         * dispnew.c (clear_glyph_row): Add debug code in #if 0.
12404         * dispextern.h: Add some comments.
12406         * window.c (add_window_to_list): Add parameter LIST.
12407         (window_list): Order list so that, for each frame, windows are
12408         in canonical order, and so that frames appear in the list in
12409         the order given by Vframe_list.
12410         (next_window): Reverse the handling of NEXT_P.
12412 2000-07-04  Gerd Moellmann  <gerd@gnu.org>
12414         * window.c (Vwindow_list): New variable.
12415         (make_window, delete_window): Set Vwindow_list to nil.
12416         (check_window_containing): New function.
12417         (window_from_coordinates): Rewritten.
12418         (add_window_to_list, window_list, candidate_window_p)
12419         (decode_next_window_args, next_window): New functions.
12420         (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
12421         (Fwindow_list): New function.
12422         (Fother_window): Cleaned up.
12423         (foreach_window): Add a longer "variable argument list".  Let
12424         callback function return 0 to indicate that cycling over windows
12425         should stop.
12426         (foreach_window_1): Likewise.
12427         (freeze_window_start): Return int.
12428         (init_window): New function.
12429         (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
12431         * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
12432         input_event with bzero.
12433         (main): Call init_window.
12435         * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
12436         a menu filter.
12438 2000-07-04  Kenichi Handa  <handa@etl.go.jp>
12440         * composite.h (make_composition_value_copy): Extern it.
12442         * composite.c (make_composition_value_copy): New function.
12444         * editfns.c (Fformat): While copying text properties, make each
12445         composition property value a copy.
12447         * fns.c (concat): While copying text properties, make each
12448         composition property value a copy.
12450 2000-07-03  Gerd Moellmann  <gerd@gnu.org>
12452         * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
12454         * fns.c (sweep_weak_table): Mark only objects that are not
12455         marked already.
12457         * frame.c (next_frame, prev_frame): If MINIBUF is a window,
12458         include those frames as candidates which have their focus
12459         redirected to the minibuffer frame.
12461 2000-07-03  Stefan Monnier  <monnier@cs.yale.edu>
12463         * fns.c (Fputhash): Return `value' rather than nil.
12465 2000-06-30  Gerd Moellmann  <gerd@gnu.org>
12467         * frame.c (next_frame): Don't check focus redirection in case
12468         MINIBUF is a window.  Doing so excludes frames using MINIBUF
12469         unless their focus is redirected, which contradicts the
12470         specification of next-frame, and leads to infinite loops in
12471         certain situations when cycling through windows with next-window.
12473 2000-06-30  Kenichi Handa  <handa@etl.go.jp>
12475         * coding.c (code_convert_region): Even if the length of text is
12476         zero, try to convert it if coding->type is coding_type_ccl.
12477         (decode_coding_string, encode_coding_string): Likewise.
12479 2000-06-28  Gerd Moellmann  <gerd@gnu.org>
12481         * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
12482         the display if windows_or_buffers_changed.
12484         * dispnew.c (struct row_entry): New structure.
12485         (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
12486         (row_table_size, old_lines, new_lines, old_lines_size)
12487         (new_lines_size, run_pool, runs_size, runs): New variables.
12488         (add_row_entry): New function.
12489         (scrolling_window): Use data structures allocated with xmalloc and
12490         held in global variables, instead of allocating them with alloca and
12491         holding them in local variables.  Use a larger hash table whose
12492         size depends on glyph matrix sizes.  Don't use bzero to clear the
12493         hash table; instead, clear used slots only.
12495         * fns.c (next_almost_prime): Make it externally visible.
12497         * lisp.h (next_almost_prime): Add prototype.
12499         * s/isc4-0.h (sigunblock): Define.
12501         * s/sco5.h (sigunblock): Define.
12503 2000-06-27  Dave Love  <fx@gnu.org>
12505         * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
12506         (moved to osf5-0.h).
12507         [!NOT_C_CODE]: Protect string.h stuff.
12509         * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
12510         (sys_siglist, NSIG): Definitions moved here from osf1.h.
12512 2000-06-27  Gerd Moellmann  <gerd@gnu.org>
12514         * xdisp.c (resize_mini_window): Subtract the extra line spacing
12515         below the last line from the needed window height.
12517 2000-06-26  Stefan Monnier  <monnier@cs.yale.edu>
12519         * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
12520         (Fwidget_get): Use it.
12521         (syms_of_fns): Defsubr it.
12523 2000-06-26  Gerd Moellmann  <gerd@gnu.org>
12525         * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
12526         display info for XIM.
12527         (xim_open_dpy): Likewise.
12528         (xim_close_dpy): Don't free the display info's XIM.
12530         * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
12532         * config.in (USE_XIM): New define.
12534         * keymap.c (get_keyelt): For menu-items containing a `:filter
12535         FILTER', apply FILTER to the menu-item's definition to get the
12536         real definition to use.
12538         * lisp.h (QCfilter): External declaration.
12540         * xfns.c (Fimage_size): New function.
12541         (syms_of_xfns): Defsubr it.
12543 2000-06-26  Andreas Schwab  <schwab@suse.de>
12545         * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
12546         Fstring_as_unibyte.
12548 2000-06-25  Dave Love  <fx@gnu.org>
12550         * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
12552         * Makefile.in (blockinput.h): Depend on atimer.h.
12553         (atimer.h): Depend on systime.h.
12555         * blockinput.h: Protect against multiple inclusion.  Include atimer.h.
12557         * atimer.h: Protect against multiple inclusion.  Include systime.h.
12559         * lisp.h (swap_in_global_binding): Declare.
12561 2000-06-24  Ken Raeburn  <raeburn@gnu.org>
12563         * process.c (Fopen_network_stream): Turn off atimers for duration
12564         of call to connect.  (Patch from Gerd.)
12566 2000-06-23  Dave Love  <fx@gnu.org>
12568         * ralloc.c: Maybe include unistd.h
12570         * emacs.c (setgrp): Undefine before defining.
12571         (malloc_warning, set_time_zone_rule, index): Prototype.
12573         * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
12574         HAVE_STRUCT_TIMEZONE.
12576         * s/osf1.h: Move string.h hack here from alpha.h and make it
12577         conditional.
12578         (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
12579         _XOPEN_SOURCE.
12580         (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
12581         (SOCKLEN_TYPE): Don't define.
12583         * m/alpha.h: Remove string.h hack.
12585         * s/osf5-0.h: New file.
12587         * filelock.c: Use feature tests for fcntl.h, string.h.  Don't
12588         include time.h, done by systime.h.
12589         [__FreeBSD__]: Remove redundant includes.
12591         * callproc.c (setpgrp): Undefine before defining.
12592         (delete_temp_file): Return Qnil to avoid warning.
12594         * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
12596         * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
12597         HAVE_X_WINDOWS.
12599         * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
12601         * composite.h (compose_text): Declare.
12603         * xterm.c: Don't include sys/types.h unconditionally.  Don't
12604         protect its inclusion with !USG (following xmenu.c).
12606 2000-06-23  Gerd Moellmann  <gerd@gnu.org>
12608         * xfns.c (x_create_tip_frame): Initialize frame's colors like
12609         in x_create_frame.
12611 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
12613         * coding.c (decode_eol_post_ccl): Special handling for undecided
12614         and inconsistent EOL types.
12616 2000-06-22  Gerd Moellmann  <gerd@gnu.org>
12618         * xrdb.c (x_load_resources): Add default resource for scroll bar's
12619         trough color and main window's background color.
12621         * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
12623         * xterm.h (Xt_app_con): External declaration.
12625         * widget.c (EmacsFrameRealize): Fix typo.
12627         * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
12629         * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
12630         (handle_invisible_prop): Record the start of invisible text in
12631         it->add_overlay_start.
12632         (struct overlay_entry): Add member `overlay'.
12633         (handle_overlay_change): Simplify.
12634         (next_overlay_string): After having processed overlay strings at the
12635         end of the buffer, record that fact in
12636         it->overlay_strings_at_end_processed_p.
12637         (compare_overlay_entries): If before- and after-strings come
12638         from the same overlay, let before-strings come first.
12639         (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
12640         (load_overlay_strings): Take it->add_overlay_start into account
12641         when adding overlay strings.
12643         * dispextern.h (struct it): Add member add_overlay_start.
12645 2000-06-22  Dave Love  <fx@gnu.org>
12647         * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
12649         * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
12651 2000-06-22  Kenichi Handa  <handa@etl.go.jp>
12653         * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
12654         is greater than 0.
12656 2000-06-21  Dave Love  <fx@gnu.org>
12658         * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
12660 2000-06-21  Stefan Monnier  <monnier@cs.yale.edu>
12662         * syntax.c (back_comment): Simplify string-parity counting (with
12663         the added benefit of handling multiple string-styles as long as
12664         they are not intertwined).
12665         Jump to the slow code as soon as a comment starter is found in
12666         a "string_lossage" position.  Fixes the case:  " /* " /* " */.
12668 2000-06-21  Dave Love  <fx@gnu.org>
12670         * Makefile.in: Use GETLOADAVG_LIBS.
12672         * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
12673         _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
12675 2000-06-20  Stefan Monnier  <monnier@cs.yale.edu>
12677         * syntax.c (describe_syntax): Recognize the `n'estable bit.
12678         (Fforward_comment, scan_lists):
12679         Check the comstyle of single-char comment-starters.
12680         (scan_sexps_forward): Don't try to recognize `half comment-enders' if
12681         we're just at the beginning of the comment (f.ex with (*) ... (*)).
12682         Check the comstyle of single-char comment-starters.
12683         Clarify control-flow around the Scomment case.
12685 2000-06-20  Dave Love  <fx@gnu.org>
12687         * fns.c (make_hash_table, maybe_resize_hash_table):
12688         Cast arg of next_almost_prime.
12690         * tparam.c [emacs]: Include lisp.h.
12692         * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5.  Include lisp.h
12693         and unistd.h.
12695 2000-06-20  Gerd Moellmann  <gerd@gnu.org>
12697         * keyboard.c (adjust_point_for_property): Check if display
12698         property should be treated as intangible by looking at its value.
12700         * xdisp.c (single_display_prop_intangible_p)
12701         (display_prop_intangible_p): New functions.
12703         * dispextern.h (display_prop_intangible_p): Add prototype.
12705         * xdisp.c (dump_glyph_row): Show type of glyph->object.
12707         * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
12708         argument to sigprocmask.
12710         * s/sco5.h (sigblock): Redefined to pass a pointer as second
12711         argument to sigprocmask.
12713         * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
12714         sigprocmask_set, and pass a pointer to it to sigprocmask.
12716         * sysdep.c (sigprocmask_set): New variable.
12718         * fileio.c (make_temp_name): Don't use `%s' in string passed to
12719         report_file_error.
12721 2000-06-20  Sam Steingold  <sds@gnu.org>
12723         * xrdb.c: Don't declare xmalloc, xrealloc.
12725 2000-06-20  Stefan Monnier  <monnier@cs.yale.edu>
12727         * regex.c (re_match, re_match_2): Protect calls to alloca (0).
12728         (re_comp): Cast gettext return value to avoid complaints when
12729         !HAVE_LIBINTL.
12731 2000-06-20  Dave Love  <fx@gnu.org>
12733         * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
12735         * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
12737         * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
12739         * m/alpha.h: Don't declare xmalloc, xrealloc.
12741         * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
12743         * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
12745         * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
12747         * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
12748         HAVE_GETWD.
12750         * keyboard.h (poll_for_input_1): Declare.
12752         * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
12754         * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
12756         * doprnt.c: Don't declare xmalloc, xrealloc.
12758         * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
12759         (getenv, ctime, getwd): Removed.
12760         (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
12762         * xterm.h: Remove duplicate prototypes.  Declare free_frame_xic,
12763         x_set_tool_bar_lines.
12765         * config.in: Add HAVE_GETWD.  Move some definitions above
12766         machine/system includes.
12768 2000-06-20  Kenichi Handa  <handa@etl.go.jp>
12770         * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
12772         * xfaces.c (font_list): Handle the case that REGISTRY doesn't
12773         contain information about ENCODING.
12775         * fontset.c (FONTSET_ASCII): Use the first element of char table
12776         for an ASCII font, not defalt slot.
12777         (fontset_ref_via_base): If FONTSET doesn't contain information for
12778         C, try the default fontset.
12779         (make_fontset): Don't copy the default fontset.
12780         (fontset_font_pattern): Likewise.
12781         (accumulate_font_info): If ELT is nil, use the corresponding
12782         element in the default fontset.
12784 2000-06-19  Dave Love  <fx@gnu.org>
12786         * syntax.c (Fparse_partial_sexp): Doc fix.
12788         * regex.h: Test PROTOTYPES as well as __STDC__.
12790         * unexalpha.c: Include errno.h, string.h, unistd.h.  Don't declare
12791         errno, strerror.  Put text after #endif in comment.
12793         * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
12795         * xterm.c (x_frame_of_widget): Likewise.
12797 2000-06-19  Gerd Moellmann  <gerd@gnu.org>
12799         * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
12800         to Vfundamental_mode_abbrev_table.
12802         * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
12803         bogus objects are marked.  This slows down GC by ~80 percent, but
12804         it might be worth trying when debugging GC-related problems.
12805         This feature requires conservative stack marking to be enabled.
12807         * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
12808         returns XLookupChars, reset `modifiers' to zero.
12810 2000-06-19  Dave Love  <fx@gnu.org>
12812         * mktime.c: Unprotoized.
12814 2000-06-19  Richard Stallman  <rms@gnu.org>
12816         * data.c (set_internal): If variable is frame-local,
12817         store the new value immediately into the frame parameter alist.
12819 2000-06-19  Ken Raeburn  <raeburn@gnu.org>
12821         * xfns.c (jpeg_load): Fetch error-handling data first, then fill
12822         in the custom handler pointer.
12824         * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
12825         value, or checks for CHAR_META can fail when Lisp_Object is a
12826         union type.
12827         * keymap.c (get_keyelt): Likewise.
12829 2000-06-19  Kenichi Handa  <handa@etl.go.jp>
12831         * ccl.h (struct ccl_program): New member eol_type.
12832         (struct ccl_spec): New member cr_carryover.
12834         * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
12835         (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
12837         * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
12838         (ccl_coding_driver): On encoding, initialize ccl->eol_type.
12839         (decode_eol_post_ccl): New function.
12840         (decode_coding): Don't detect EOL format here for CCL based coding
12841         systems.
12842         (decode_coding) <coding_type_ccl>: Handle carryovered CR.  Call
12843         decode_eol_post_ccl after running the CCL program.
12844         (code_convert_region): Don't detect EOL format here for CCL based
12845         coding systems.
12846         (decode_coding_string): Likewise.
12848 2000-06-18  Ken Raeburn  <raeburn@gnu.org>
12850         * charset.c (update_charset_table): Use XINT on "iso_final_char"
12851         when treating it as an integer.
12853         * coding.h (encode_coding_string): Declare.
12855         * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
12856         it as an integer.
12858         * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
12859         "xkeymap" to avoid shadowing the "enum map_type" value that needs
12860         to be passed to get_local_map.
12862         * sound.c (Fplay_sound): Don't call make_number on
12863         Frun_hook_with_args count argument.
12865         * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
12866         for lisp objects in X event structure data field, when lisp
12867         objects are represented with unions.
12868         (x_scroll_bar_to_input_event): Ditto.
12870 2000-06-16  Ken Raeburn  <raeburn@gnu.org>
12872         * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
12873         termination of string.  Fix sense of test whether
12874         Vline_number_display_limit is an integer.
12876 2000-06-16  Gerd Moellmann  <gerd@gnu.org>
12878         * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
12879         only if HAVE_X_WINDOWS.
12881         * keymap.c (describe_buffer_bindings): Add `\f\n' in front
12882         of titles.
12884         * dispnew.c (update_frame_1): Handle case that cursor vpos is
12885         out of bounds.
12887 2000-06-15  Eli Zaretskii  <eliz@is.elta.co.il>
12889         * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
12890         of its headers.
12892 2000-06-15  Kenichi Handa  <handa@etl.go.jp>
12894         * coding.c (decode_coding_emacs_mule): Always set src_base at the
12895         start of the while loop.
12897 2000-06-15  Gerd Moellmann  <gerd@gnu.org>
12899         * atimer.c (alarm_signal_handler): Add forward declaration.
12901         * data.c (set_internal): Remove debug code.
12903 2000-06-14  Gerd Moellmann  <gerd@gnu.org>
12905         * Makefile.in (bootstrap-temacs): Add `-I../src'.
12907         * unexec.c (toplevel) [COFF]: Include coff.h.
12909         * s/lynxos.h: New file.
12911         * keymap.c (Fsingle_key_description): Enclose function key and
12912         event symbol names in angle brackets.
12914         * xdisp.c (setup_echo_area_for_printing): Call
12915         message_log_maybe_newline if message_buf_print is not set.
12917         * print.c (printchar, strout): Don't check message_buf_print
12918         before calling setup_echo_area_for_printing because that
12919         function does something useful even when message_buf_print is
12920         already set.
12922         * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
12923         New variables.
12924         (ensure_echo_area_buffers): Initialize echo buffer's
12925         truncate lines setting to nil.
12926         (with_echo_area_buffer): Don't set the echo buffer's truncate
12927         lines setting here.
12928         (set_message_1): Set it here instead, based on the value
12929         of message_truncate_lines.
12930         (resize_mini_window): Handle case that lines are truncated.
12931         (syms_of_xdisp): Initialize Qmessage_truncate_lines.
12932         DEFVAR_BOOL message-truncate-lines.
12934         * keyboard.c (read_char): Bind message-truncate-lines to t
12935         while displaying a help-echo.
12937         * lisp.h (Qmessage_truncate_lines): External declaration.
12939 2000-06-13  Gerd Moellmann  <gerd@gnu.org>
12941         * xdisp.c (Vline_number_display_limit): Renamed from
12942         line_number_display_limit.
12943         (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
12944         Extend documentation string.  Initialize
12945         Vline_number_display_limit to nil meaning no limit.
12946         (decode_mode_spec): Use Vline_number_display_limit with its new
12947         meaning.
12949         * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
12951 2000-06-13  Richard Stallman  <rms@gnu.org>
12953         * frame.c (Fmodify_frame_parameters): Doc fix.
12955         * xfns.c (x_set_frame_parameters): Comment fix.
12957         * frame.c (store_frame_param): Call swap_in_global_binding if the
12958         variable's current binding was chosen based on this frame.
12960         * data.c (swap_in_global_binding): New function.
12962 2000-06-13  Eli Zaretskii  <eliz@is.elta.co.il>
12964         * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
12965         macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
12967 2000-06-13  Eli Zaretskii  <eliz@is.elta.co.il>
12969         * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
12971 2000-06-12  Jason Rumney  <jasonr@gnu.org>
12973         * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
12975         * w32.h (EMACS_W32_H): Renamed from _NT_H_
12977         * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
12979         * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
12981 2000-06-12  Gerd Moellmann  <gerd@gnu.org>
12983         * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
12984         (syms_of_xfaces): Defsubr Sdump_colors.
12985         (x_free_colors): Don't treat b&w specially on default visual.
12986         (x_free_dpy_colors): New function.
12987         (free_face_colors): Don't check visual class; it's done
12988         in x_free_colors.
12990         * xterm.c (x_frame_of_widget): New function.
12991         (x_alloc_nearest_color_for_widget): Use it.
12992         (x_copy_dpy_color): New function.
12993         (x_destroy_window): Free various colors.
12995 2000-06-12  Kenichi Handa  <handa@etl.go.jp>
12997         * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
12999         * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
13001         * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
13003         * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
13005         * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
13007 2000-06-11  Dave Love  <fx@gnu.org>
13009         * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
13011 2000-06-11  Eli Zaretskii  <eliz@is.elta.co.il>
13013         * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
13015 2000-06-11  Gerd Moellmann  <gerd@gnu.org>
13017         * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
13018         to `XEvent *'.
13020 2000-06-10  Kenichi Handa  <handa@etl.go.jp>
13022         * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
13023         (regex_compile): Fix the code for handling the case of single byte
13024         char and multibyte char being mixed in a range within [...].
13026         * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
13027         and dst_multibyte members of coding.
13029         * charset.c (update_charset_table): Update the table
13030         bytes_by_char_head.
13031         (init_charset_once): Initialize elements of bytes_by_char_head to
13032         1 except for leading codes for private charases.
13034         * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
13035         (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
13037 2000-06-09  Ken Raeburn  <raeburn@gnu.org>
13039         * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
13040         access the data it doesn't point to.
13042 2000-06-08  Gerd Moellmann  <gerd@gnu.org>
13044         * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
13045         will be translated to a switch-frame event when reading the
13046         event queue.  This is necessary because Emacs otherwise won't
13047         perform a switch-frame to a new frame until some other event, for
13048         example a keystroke event, forces it to do so.  This has various
13049         effects, one visible being that the cursor of a frame created with
13050         C-x 5 2 or switched to with a window manager key binding like
13051         A-TAB stays hollow because selected_window isn't on the newly
13052         focused frame until the switch-frame is performed.
13054         * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
13055         generating a switch-frame event if necessary.
13057         * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
13059         * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
13060         it's an integer.
13062 2000-06-08  Kenichi Handa  <handa@etl.go.jp>
13064         * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
13066 2000-06-07  Gerd Moellmann  <gerd@gnu.org>
13068         * window.c (displayed_window_lines): Take empty lines at
13069         the bottom of a window into account.
13071         * window.c (displayed_window_lines): New function.
13072         (Fmove_to_window_line): Use displayed_window_lines to determine
13073         the number of lines to move, instead of using the window's height.
13075         * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
13076         to stop reading, even if the form read sets point to a different
13077         value when evaluated.
13079         * xdisp.c (display_line): Fix code deciding in which line to
13080         put the cursor.
13082 2000-06-07  Kenichi Handa  <handa@etl.go.jp>
13084         * fileio.c (e_write): Free composition data if stored in
13085         coding->cmp_data.
13087 2000-06-06  Gerd Moellmann  <gerd@gnu.org>
13089         * xdisp.c (display_line): Set row's and iterator's
13090         starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
13091         Set cursor even if row ends in the middle of a character.
13092         (dump_glyph_row): Print values of new flags.
13093         (redisplay_window) <cursor movement in unchanged window>: When
13094         point has been moved forward, and PT is at the end of the cursor
13095         row, don't place the cursor in the next row if the cursor row ends
13096         in the middle of a character or at ZV.
13098         * dispextern.h (struct it): Add starts_in_middle_of_char_p.
13099         (struct glyph_row): Add starts_in_middle_of_char_p and
13100         ends_in_middle_of_char_p.
13101         (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
13102         ends_in_middle_of_char_p flag.
13103         (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
13105         * term.c (append_glyph): Revert change of 2000-06-06.
13107         * xdisp.c (display_line): Revert change of 2000-06-06.  Treat
13108         padding glyph not fitting on line as whole character not
13109         fitting on line.
13111         * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
13112         this isn't true for images with `:ascent 100'.
13114 2000-06-06  Kenichi Handa  <handa@etl.go.jp>
13116         * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
13117         as modified if it is originally unmodified.
13119         * term.c (encode_terminal_code): Change the way to check if
13120         terminal coding does any conversion.
13121         (append_glyph): Set glyph->pixel_width correctly.
13123         * xdisp.c (display_line): While checking line continuation, pay
13124         attention to a padding glyph.
13126 2000-06-05  Gerd Moellmann  <gerd@gnu.org>
13128         * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
13130 2000-06-05  Dave Love  <fx@gnu.org>
13132         * xdisp.c: Include fontset.h.
13134         * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
13136         * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
13138         * dispnew.c: Conditionally include term.h.
13140         * coding.h: Declare code_convert_string_norecord.
13142         * frame.h (struct frame): Use volatile unconditionally.
13144         * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
13146         * xmenu.c (menu_item_selection): Declare volatile unconditionally.
13148         * systime.h: Protect against multiple inclusion.
13149         (timezone) [USG5_4]: Define as time_t.
13151         * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
13152         (Foptimize_char_table, make_temp_name): Declare.
13154         * Makefile.in (xdisp.o): Depend on fontset.h.
13156         * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
13158         * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
13159         (Foptimize_char_table, make_temp_name): Declare.
13161         * s/irix4-0.h:
13162         * s/irix5-0.h:
13163         * s/netbsd.h: Don't define autoconfiscated MATHERR.
13165 2000-06-02  Dave Love  <fx@gnu.org>
13167         * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
13169 2000-06-02  Gerd Moellmann  <gerd@gnu.org>
13171         * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
13172         result face, set flags in that face indicating that colors may not
13173         be freed.
13175         * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
13176         glyph, use the ASCII NUL character to determine the face.
13178 2000-06-02  Dave Love  <fx@gnu.org>
13180         * sysdep.c: Conditionally include stdlib.h, unistd.h.
13181         (VFORK_RETURN_TYPE): Remove.
13183         * config.in: Add NO_MATHERR.
13185 2000-06-01  Dave Love  <fx@gnu.org>
13187         * cmds.c (internal_self_insert): Don't check
13188         Vbefore_change_function, Vafter_change_function.
13190         * insdel.c (signal_before_change, signal_after_change): Likewise.
13192         * buffer.c (Vbefore_change_function, Vafter_change_function):
13193         Variables and their initializations deleted.
13195         * callint.c (Fcall_interactively): Doc fix.
13197         * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
13199 2000-05-31  Dave Love  <fx@gnu.org>
13201         * textprop.c: Revert last change -- duplicated.
13203 2000-05-31  Gerd Moellmann  <gerd@gnu.org>
13205         * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
13206         in #if 0.
13208         * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
13210 2000-05-31  Jason Rumney  <jasonr@gnu.org>
13212         * search.c (Fre_search_forward, Fre_search_backward)
13213         (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
13215         * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
13217 2000-05-30  Jason Rumney  <jasonr@gnu.org>
13219         * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
13220         [WINDOWSNT]: Add extern for Vw32_system_coding_system.
13222         * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
13224         * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
13225         (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
13226         expand a nil default_filename.
13228         * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
13229         pointer to glyph_to_pixel_coords, not a frame.
13231         * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
13232         coding.h to dependencies.
13234         * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
13236         * w32console.c (glyph_to_pixel_coords): Change first parameter to
13237         window pointer to be consistent with w32term.c and xterm.c.
13239         * w32fns.c: Format and doc changes to bring closer to xfns.c.
13240         (VIETNAMESE_CHARSET): Define if not defined in system headers.
13241         (Qline_spacing, Qcenter): New variables.
13242         (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
13243         (x_set_line_spacing): New function.
13244         (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
13245         (x_specified_cursor_type): New function.
13246         (x_set_cursor_type): Use it.
13247         (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
13248         and icon strings.
13249         (validate_x_resource_name, x_get_resource_string): Measure lengths
13250         of external strings in bytes.
13251         (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
13252         GetTextExtentPoint32 with NULL title.
13253         (Fx_create_frame): Initialize Qline_spacing.
13254         (w32_load_system_font): Initialize font->double_byte_p.
13255         (x_to_w32_charset): Use Vw32_charset_info_alist.
13256         (Image, busy cursor, tooltip functions): Merged changes from
13257         xfns.c. Not yet functional on Windows.
13259         * w32gui.h (W32FontStruct): Add double_byte_p member.
13261         * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
13262         (emacs_button_translation): Use it.
13263         (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
13264         in `mask' to be set.
13266         * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
13267         menu strings.
13269         * w32term.c: Format and doc changes to bring closer to xterm.c.
13270         (w32_char_font_type): New enum.
13271         (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
13272         (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
13273         (w32_encode_char): New function.
13274         (x_encode_char): Removed.
13275         (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
13276         x_encode_char and w32_font_is_double_byte.
13277         (x_produce_image_glyph): Use image_ascent.
13278         (x_produce_glyphs): Use new version of w32_per_char_metric and
13279         handle NULL return value. Allow extra line spacing.
13280         (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
13281         (w32_get_glyph_overhangs): Remove unicode_p param. Use
13282         w32_font_type member of glyph instead.
13283         (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
13284         (fast_find_position): Make sure not to consider rows not visible
13285         in the window.
13286         (w32_read_socket) [WM_MENUSELECT]: Cannot call
13287         w32_menu_display_help with input blocked, as it can abort.
13288         (x_display_and_set_cursor): Choose cursor depending
13289         on buffer-local value of cursor_type.
13290         (x_draw_bar_cursor): Add parameter WIDTH.
13292         * w32term.h (CP_DEFAULT): Define.
13293         (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
13295 2000-05-30  Gerd Moellmann  <gerd@gnu.org>
13297         * search.c (Fre_search_forward, Fre_search_backward)
13298         (Fposix_search_backward, Fposix_search_forward): Doc fix.
13300 2000-05-30  Kenichi Handa  <handa@etl.go.jp>
13302         * coding.c (detect_coding_iso2022): Fix code for checking
13303         CODING_CATEGORY_MASK_ISO_8_2.
13305 2000-05-29  Stefan Monnier  <monnier@cs.yale.edu>
13307         * regex.c (PREFETCH_NOLIMIT): New function.
13308         (re_match_2_internal): Use it and adjust the end_match_2 logic.
13310 2000-05-29  Gerd Moellmann  <gerd@gnu.org>
13312         * syntax.c (find_defun_start): Move test for
13313         open_paren_in_column_0_is_defun_start outside of the loop.
13315         * xdisp.c (redisplay_window): Really switch buffers when
13316         displaying mode lines, and temporarily set selected_frame to the
13317         frame of the window that's redisplayed.
13319         * xfaces.c (free_realized_faces): Block/unblock input.
13320         (free_realized_multibyte_face): Ditto.
13322 2000-05-29  Dave Love  <fx@gnu.org>
13324         * textprop.c (Qkeymap): New variable.
13325         (syms_of_textprop): Intern it.
13327         * keymap.c: Include intervals.h.
13328         (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
13330         * Makefile.in (keymap.o): Depend on intervals.h.
13332         * keyboard.c (menu_bar_items, tool_bar_items)
13333         (Fexecute_extended_command): Deal with `keymap' property.
13334         (read_key_sequence): Track map from `keymap' property as well as
13335         `local_map'.
13337         * intervals.c (get_local_map): Extra arg to allow looking for
13338         `keymap' too.
13340         * intervals.h (map_property): New enum.
13341         (get_local_map): Extra arg using it.
13342         (Qkeymap): Declare.
13344         * lisp.h (get_local_map): Don't declare here.
13346 2000-05-29  Kenichi Handa  <handa@etl.go.jp>
13348         * Makefile.in (callproc.o): Depend on composite.h.
13350         * callproc.c: Include composite.h.
13351         (Fcall_process): Handle composition correctly.
13353         * coding.h (coding_allocate_composition_data): Extern it.
13354         (coding_restore_composition): Likewise.
13356         * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
13357         yet allocated, finish decoding with result
13358         CODING_FINISH_INSUFFICIENT_CMP.
13359         (coding_allocate_composition_data): Make it non-static.
13360         (coding_restore_composition): Likewise.
13362 2000-05-29  Eli Zaretskii  <eliz@is.elta.co.il>
13364         * charset.c (syms_of_charset): Revert last change.
13366 2000-05-28  Eli Zaretskii  <eliz@is.elta.co.il>
13368         * term.c (produce_glyphs): Treat characters from the eight-bit-*
13369         charsets as unibyte, with 1-column screen width.  Sent by Kenichi
13370         Handa.
13372 2000-05-28  Eli Zaretskii  <eliz@is.elta.co.il>
13374         * charset.c (syms_of_charset): Set width of character sets
13375         eight-bit-control and eight-bit-graphic to 1 column.
13377 2000-05-26  Gerd Moellmann  <gerd@gnu.org>
13379         * config.in (HAVE_SPEED_T): New define.
13381         * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
13382         `extern speed_t'.
13384 2000-05-26  Dave Love  <fx@gnu.org>
13386         * coding.c (shrink_decoding_region): Initialize eol_conversion.
13388         * data.c (Qsubrp, Qmany, Qunevalled): New variables.
13389         (Fsubr_arity): New function.
13390         (syms_of_data): Install them.
13392 2000-05-26  Kenichi Handa  <handa@etl.go.jp>
13394         * charset.c (init_charset_once): Set the table bytes_by_char_head
13395         correctly.
13397         * fontset.c (syms_of_fontset): Adjust the font name for ascii of
13398         the default fontset to what Emacs uses by default.
13399         (check_registry_encoding): This function deleted.
13400         (Fset_fontset_font): Remove the adhoc condition for the default
13401         fontset.  Allow cons in FONTNAME.
13403         * fns.c (map_char_table): Ignore char-table entries for
13404         charsets eight-bit-control and eight-bit-graphic.
13406 2000-05-25  Ken Raeburn  <raeburn@gnu.org>
13408         * emacs.c (main): Initialize keyboard syms before initializing
13409         window code, so face names are available.
13411 2000-05-25  Stefan Monnier  <monnier@cs.yale.edu>
13413         * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
13414         of an anchor at the beginning of a shy-group.
13416 2000-05-25  Gerd Moellmann  <gerd@gnu.org>
13418         * xdisp.c (handle_invisible_prop): Don't try to skip over
13419         invisible text if end of text is already reached.
13421 2000-05-25  Dave Love  <fx@gnu.org>
13423         * xdisp.c (Fdump_glyph_matrix): Declare the arg.
13425         * coding.c (encode_eol): Add null statement after label.
13427 2000-05-25  Eli Zaretskii  <eliz@is.elta.co.il>
13429         * w16select.c (Fw16_set_clipboard_data): Fix the change from
13430         2000-05-20.
13432 2000-05-25  Kenichi Handa  <handa@etl.go.jp>
13434         * ccl.c (ccl_driver): Fix previous change.
13436 2000-05-25  Kenichi Handa  <handa@etl.go.jp>
13438         * coding.c (run_pre_post_conversion_on_str): Set point to the
13439         beginning of buffer before calling coding->post_read_conversion.
13440         (decode_coding_string): Give correct args to
13441         run_pre_post_conversion_on_str.
13442         (encode_coding_string): Likewise.
13444         * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
13445         <CCL_WriteMultibyteChar2>:  Handle charsets eight-bit-control and
13446         eight-bit-graphic correctly.
13448 2000-05-24  Kenichi HANDA  <handa@etl.go.jp>
13450         * fileio.c (Finsert_file_contents): Even if a file is not found,
13451         execute codes for setting up coding system.  Call
13452         after-insert-file-functions unconditionally.
13454 2000-05-24  Gerd Moellmann  <gerd@gnu.org>
13456         * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
13457         BSD_PGRPS are not defined.
13459 2000-05-24  Kenichi Handa  <handa@etl.go.jp>
13461         * charset.c (update_charset_table): Accept nil in LONG_NAME and
13462         DESCRIPTION.
13463         (syms_of_charset): Avoid building same strings.
13465 2000-05-23  Gerd Moellmann  <gerd@gnu.org>
13467         * lread.c (Fload): Add a comment about the meaning of
13468         Vuser_init_file being t.
13470         * puresize.h (BASE_PURESIZE): Increase to 675000.
13472         * s/gnu-linux.h (setpgrp): Don't define it here because this
13473         prevents compilation on GNU/Linux systems with glib 2.2.
13475         * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
13476         as setpgid.
13478 2000-05-23  Eli Zaretskii  <eliz@is.elta.co.il>
13480         * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
13481         dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
13482         version.
13483         (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
13485 2000-05-23  Kenichi Handa  <handa@etl.go.jp>
13487         * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13489         * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
13491         * term.c (encode_terminal_code): Set coding->src_multibyte properly.
13493         * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
13495 2000-05-22  Kenichi Handa  <handa@etl.go.jp>
13497         * keyboard.c (read_char): Allow character codes 128..255 to be
13498         handled by input-method-function.
13500         * insdel.c (adjust_markers_for_replace): Fix previous change.
13501         (adjust_after_replace): If PREV_TEXT is nil, call
13502         adjust_markers_for_insert, not adjust_markers_for_replace.
13504 2000-05-20  NIIBE Yutaka  <gniibe@mri.co.jp>
13506         * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
13507         (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
13508         [HAVE_GRANDPT]: Define.
13509         (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
13511         * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
13512         like SYSV_PTYS.
13514         * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
13516         * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
13518 2000-05-20  Kenichi Handa  <handa@etl.go.jp>
13520         The following changes are to handle 8-bit characters in a
13521         multibyte buffer/string without facing with byte combining
13522         problem.  Two new charsets eight-bit-control (for 0x80..0x9F) and
13523         eight-bit-graphic (for 0xA0..0xFF) are introduced.
13525         * Makefile.in (fns.o): Depend on charset.h.
13527         * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
13528         convert it to unibyte.
13529         (make_string): Use parse_str_as_multibyte, not chars_in_text.
13531         * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
13532         apparent char boundary.
13533         (Fset_buffer_multibyte): Convert 8-bit characters in the range
13534         0x80..0x9F to/from multibyte form.
13536         * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
13537         to unibyte.
13539         * callproc.c (Fcall_process): Always encode an argument string if
13540         it is multibyte.  Setup src_multibyte and dst_multibyte members of
13541         process_coding properly.
13543         * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
13544         SPLIT_NON_ASCII_CHAR.
13546         * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
13547         as is.
13548         (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
13550         * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
13551         (SPLIT_CHARACTER_SEQ): This macro deleted.
13552         (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
13553         (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
13554         and eight-bit-graphic.
13555         (char_to_string): Likewise.  Signal an error for too large
13556         character code.
13557         (char_printable_p): Return 0 for 8-bit characters.
13558         (update_charset_table): Update iso_charset_table only when a final
13559         character is non-negative.
13560         (find_charset_in_text): Renamed from find_charset_in_str.
13561         Arguments and return value changed.  Callers changed.
13562         (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
13563         be -1 if CHARSET is used only internally.
13564         (Fmake_char_internal): Handle new charsets; eight-bit-control and
13565         eight-bit-graphic.
13566         (Fcharset_after): Simplified.
13567         (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
13568         (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
13569         (multibyte_chars_in_text): Simplified by assuming there's no
13570         invalid multibyte sequence.
13571         (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13572         (str_as_unibyte): New functions.
13573         (Fstring): Simpified by assuming that byte combining never happens.
13574         (init_charset_once): Initialization for
13575         LEADING_CODE_8_BIT_CONTROL.
13576         (syms_of_charset): Intern and staticpro Qeight_bit_control and
13577         Qeight_bit_graphic.  Include them in Vcharset_list.  Make charsets
13578         eight-bit-control and eight-bit-graphic.
13580         * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
13581         (CHARSET_8_BIT_GRAPHIC): New macros.
13582         (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
13583         (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
13584         (CHARSET_REVERSE_CHARSET): Likewise.
13585         (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
13586         eight-bit-graphic.
13587         (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
13588         (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
13589         (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
13590         encounter an invalid multibyte sequence.
13591         (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
13592         sequence is always valid.
13593         (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
13594         (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
13595         (CHAR_STRING): For 8-bit characters, call char_to_string.
13596         (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version.  Assume
13597         multibyte sequence is always valid.
13598         (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
13599         (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13600         (str_as_unibyte): Extern them.
13601         (BCOPY_SHORT): Fix a bug.
13602         (CHAR_LEN): This macro deleted.  Callers changed to use CHAR_BYTES.
13603         (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
13604         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
13605         (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
13607         * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
13608         CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
13609         (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
13610         (EMIT_BYTES): New macros.
13611         (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
13612         (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
13613         macros deleted.
13614         (CHECK_CODE_RANGE_A0_FF): This macro deleted.
13615         (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
13616         check the validity of multibyte sequence.
13617         (decode_coding_emacs_mule): New function.
13618         (encode_coding_emacs_mule): New macro.
13619         (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
13620         the source.
13621         (DECODE_ISO_CHARACTER): Just return a character code.
13622         (DECODE_COMPOSITION_START): Set coding->result instead of result.
13623         (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
13624         EMIT_CHAR to produced decoded characters.  Exit the loop only by
13625         macros ONE_MORE_BYTE or EMIT_CHAR.  Don't handle the case of last
13626         block here.
13627         (ENCODE_ISO_CHARACTER): Don't translate character here.  Produce
13628         only position codes for an invalid character.
13629         (encode_designation_at_bol): Return new destination pointer.  5th
13630         arg DSTP is changed to DST.
13631         (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
13632         from the source by ONE_MORE_CHAR.  Don't handle the case of last
13633         block here.
13634         (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
13635         macros deleted.
13636         (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
13637         (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
13638         TWO_MORE_BYTES to fetch a byte from the source.
13639         (encode_eol): Pay attention to coding->src_multibyte.
13640         (detect_coding, detect_eol): Preserve members src_multibyte and
13641         dst_multibyte.
13642         (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
13643         (encoding_buffer_size): Set magnification to 3 for all coding
13644         systems that require encoding.
13645         (ccl_coding_driver): For decoding, be sure that the result is
13646         valid multibyte sequence.
13647         (decode_coding): Initialize coding->errors and coding->result.
13648         For emacs-mule, call decode_coding_emacs_mule.  For no-conversion
13649         and raw-text, always call decode_eol.  Handle the case of last
13650         block here.  If not coding->dst_multibyte, convert the resulting
13651         sequence to unibyte.
13652         (encode_coding): Initialize coding->errors and coding->result.
13653         For emacs-mule, call encode_coding_emacs_mule.  For no-conversion
13654         and raw-text, always call encode_eol.  Handle the case of last
13655         block here.
13656         (shrink_decoding_region, shrink_encoding_region): Detect cases
13657         that we can't skip data more rigidly.
13658         (code_convert_region): Setup src_multibyte and dst_multibyte
13659         members of coding.  For decoding, if the buffer is multibyte,
13660         convert the source sequence to unibyte in advance.  For encoding,
13661         if the buffer is multibyte, convert the resulting sequence to
13662         multibyte afterward.
13663         (run_pre_post_conversion_on_str): New function.
13664         (code_convert_string): Deleted and divided into the following two.
13665         (decode_coding_string, encode_coding_string): New functions.
13666         (code_convert_string1, code_convert_string_norecord): Call one of
13667         above.
13668         (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
13669         MAKE_NON_ASCII_CHAR.
13670         (Fset_terminal_coding_system_internal)
13671         (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
13672         and dst_multibyte members.
13673         (init_coding_once): Initialize iso_code_class with new enum
13674         ISO_control_0 and ISO_control_1.
13676         * coding.h (enum iso_code_class_type): Member ISO_control_code is
13677         devided into ISO_control_0 and ISO_control_1.
13678         (struct coding_system): New members src_multibyte, dst_multibyte,
13679         errors, and result.  Delete member fake_multibyte.
13680         (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
13681         nonzero.
13682         (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
13683         nonzero.
13685         * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13686         (Faset): Likewise.
13688         * editfns.c (Fformat): Be sure to convert 8-bit characters to
13689         multibyte form.
13690         (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
13691         combining occurs.
13692         (Ftranspose_region): Delete codes for handling byte combining.
13694         * fileio.c (Finsert_file_contents): Setup src_multibyte and
13695         dst_multibyte members of coding.  On handling REPLACE on unibyte
13696         buffer, convert the result of decode_coding to unibyte.  On
13697         inserting into a mutibyte buffer, always call code_convert_region.
13698         (e_write): Setup coding->src_multibyte according to the
13699         multibyteness of the source (buffer or string).
13701         * fns.c (concat): Handle 8-bit characters correctly.
13702         (Fstring_as_unibyte): Be sure to make all 8-bit characters in
13703         unibyte in the result.
13704         (Fstring_as_multibyte): Be sure to make all 8-bit characters in
13705         valid multibyte form in the result.
13706         (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13707         (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
13708         return -1, signal an error.
13709         (base64_encode_1): New arg MULTIBYTE.  Get each character by
13710         CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero.  If a multibyte
13711         character is found, return -1.
13712         (Fbase64_decode_region): Delete codes for handling byte-combining.
13713         Treat each decoded byte as a unibyte character.
13714         (Fbase64_decode_string): Return unibyte string.
13715         (Fcompare_strings, concat, string_byte_to_char): Use
13716         FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
13717         FETCH_STRING_CHAR_ADVANCE.
13718         (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13719         (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
13721         * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
13722         SPLIT_NON_ASCII_CHAR.
13723         (fontset_ref_via_base, fontset_set): Likewise
13725         * insdel.c (adjust_markers_for_record_delete): Deleted.
13726         (adjust_markers_for_insert): Argument changed.  Caller changed.
13727         (adjust_markers_for_replace): Likewise.
13728         (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
13729         (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
13730         (copy_text): Delete unused local varialbe c_save.  For converting
13731         to multibyte, be sure to make all 8-bit characters in valid
13732         multibyte form.
13733         (count_size_as_multibyte): Handle 8-bit characters correctly.
13734         (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13735         (adjust_after_replace, replace_range, del_range_2)
13736         [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
13737         (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13738         (adjust_after_replace, replace_range, del_range_2) Delete codes for
13739         handling byte combining.
13740         (adjust_before_replace): Deleted.
13742         * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
13743         SPLIT_NON_ASCII_CHAR.
13744         (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13745         (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13746         (Fkey_description): Likewise.
13748         * lread.c (read1): On reading multibyte string, be sure to make
13749         all 8-bit chararacters in valid multibyte form.
13750         (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13752         * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
13753         unconditionally.
13755         * process.c (Fstart_process): GCPRO current_dir before calling
13756         Ffind_operation_coding_system.  Encode arguments here.
13757         (create_process): Don't encode arguments here.  Setup
13758         src_multibyte and dst_multibyte members of struct coding.
13759         (read_process_output): Setup src_multibyte and dst_multibyte
13760         members of struct coding.  If the output is to multibyte buffer,
13761         always decode the output of the process.  Adjust the
13762         representation of 8-bit characters to the multibyteness of the output.
13763         (send_process): Setup coding->src_multibyte according to the
13764         multibyteness of the source.
13766         * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13767         (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
13768         FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
13770         * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
13772         * w16select.c (Fw16_set_clipboard_data): Setup members
13773         src_multibyte and dst_multibyte of coding.  Adjusted for the
13774         change for find_charset_in_str.
13775         (Fw16_get_clipboard_data): Likewise.
13777         * w32fns.c (w32_to_x_font): Setup members src_multibyte and
13778         dst_multibyte of coding.
13779         (x_to_w32_font): Likewise.
13781         * w32select.c (Fw32_set_clipboard_data): Setup members
13782         src_multibyte and dst_multibyte of coding.  Adjusted for the
13783         change for find_charset_in_str.
13784         (Fw32_get_clipboard_data): Likewise.
13786         * xdisp.c (get_next_display_element): Handle 8-bit characters
13787         correctly.
13788         (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
13789         (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13791         * xselect.c (selection_data_to_lisp_data): Setup members
13792         src_multibyte and dst_multibyte of coding.  Adjusted for the
13793         change for find_charset_in_str.
13794         (lisp_data_to_selection_data): Likewise.
13796 2000-05-19  Gerd Moellmann  <gerd@gnu.org>
13798         * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
13800         * dispextern.h (Vimage_types): Add extern declaration.
13802         * xdisp.c (Vimage_types): Moved here from xfns.c.
13803         (syms_of_xdisp): Move `image-types' variable here from xfns.c.
13805         * xfns.c (Vimages_types): Moved to xdisp.c.
13806         (syms_of_xfns): Move `image-types' to xdisp.c.
13808         * w32fns.c (Vimage_types): Removed.
13809         (syms_of_w32fns): Remove `image-types'.
13811 2000-05-18  Kenichi Handa  <handa@etl.go.jp>
13813         * fns.c (map_char_table): Pay attention to character number of
13814         charset.  Check the validity of charset at the first level.   For
13815         leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
13816         the default value.
13818         * fontset.c: Include "buffer.h".
13819         (fs_load_font): If the face has fontset, record the face ID in
13820         that fontset.
13821         (Finternal_char_font): New function.
13822         (accumulate_font_info): New function.
13823         (Ffontset_info): Rewritten for the new fontset implementation.
13824         (syms_of_fontset): Register Vdefault_fontset in the first element
13825         of Vfontset_table.  Include Vdefault_fontset in
13826         Vfontset_alias_alist.  Declare `internal-char-font' as a Lisp
13827         function.
13829 2000-05-16  Dave Love  <fx@gnu.org>
13831         * m/iris5d.h: Deleted -- unused.
13833 2000-05-16  Gerd Moellmann  <gerd@gnu.org>
13835         * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
13836         `invalid' instead of `illegal'.
13838         * indent.c (Fmove_to_column): When ending within a tab, insert
13839         spaces first so that markers at the end of the tab get adjusted.
13841         * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
13842         buffer list that wasn't selected in that frame.
13844         * filelock.c (get_boot_time): To obtain an 8 char file name, which
13845         is needed on mescaline, use a 2 char prefix, and call
13846         make_temp_name with second arg non-zero.
13848         * fileio.c (make_temp_name): New function, extracted from
13849         Fmake_temp_name.
13850         (Fmake_temp_name): Use it.
13852 2000-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
13854         * window.c (coordinates_in_window): Subtract 1 when computing right_x.
13856 2000-05-15  Gerd Moellmann  <gerd@gnu.org>
13858         * Makefile.in (lisp): Add env.elc.
13860         * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
13862 2000-05-12  Gerd Moellmann  <gerd@gnu.org>
13864         * search.c (Freplace_match): Handle case of `\N' in the
13865         replacement when there's no group N.
13867 2000-05-11  Gerd Moellmann  <gerd@gnu.org>
13869         * xdisp.c (add_to_log): Don't pass the terminating NUL byte
13870         of the message to message_dolog.
13872         * keyboard.c (read_char): Don't clear current message for help
13873         events; let the code handling help events handle this.  Change
13874         code detecting help events that should be ignored.
13876         * xdisp.c (handle_single_display_prop): Don't try to set PT if
13877         we're interating over a string.
13879 2000-05-09  Dave Love  <fx@gnu.org>
13881         * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
13882         that offset before writing.  Move gcpro region past call of
13883         Ffile_regular_p.
13885 2000-05-04  Dave Love  <fx@gnu.org>
13887         * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
13889 2000-05-04  Gerd Moellmann  <gerd@gnu.org>
13891         * insdel.c (insert_from_buffer_1): Adjust FROM position by number
13892         of inserted characters when BUF equals the current buffer, and PT
13893         is in front of or equal to FROM.
13895 2000-05-03  Gerd Moellmann  <gerd@gnu.org>
13897         * xdisp.c (handle_single_display_prop): If display property value
13898         is invalid, or something not supported on the frame, restore
13899         iterator's position to what it was initially.  Make sure to return
13900         0 for invalid and unsupported property values.
13902         * xterm.c (x_produce_glyphs) <composite chars>: Handle case
13903         that x_per_char_metric returns null.
13905 2000-05-02  Gerd Moellmann  <gerd@gnu.org>
13907         * xterm.h (struct face): Add forward declaration.
13908         (struct image): Ditto.
13909         (image_ascent): Add prototype.
13911         * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
13912         (x_draw_image_relief, x_draw_image_foreground_1): Call function
13913         image_ascent instead of using IMAGE_ASCENT.
13915         * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
13916         (IMAGE_ASCENT): Removed.
13918         * xfns.c (Qcenter): New variable.
13919         (enum image_value_type): Add IMAGE_ASCENT_VALUE.
13920         (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
13921         (image_ascent): New function.
13922         (lookup_image): Recognize `:ascent center'.
13923         (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
13924         (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13925         (xbm_load): Don't set image's ascent here.
13926         (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
13927         (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
13928         check ascent values here.
13929         (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
13930         (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
13931         (syms_of_xfns): Initialize Qcenter.
13933         * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
13934         to the limits, increase the limits.
13936 2000-05-01  Kenichi Handa  <handa@etl.go.jp>
13938         * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
13939         Check Vfont_encoding_alist against the full name of the opened font.
13941 2000-04-28  Gerd Moellmann  <gerd@gnu.org>
13943         * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
13944         taller than the window.
13946 2000-04-28  Kenichi Handa  <handa@etl.go.jp>
13948         * xfaces.c (realize_x_face): Fix the argument of the second
13949         xassert.  BASE_FACE may not be a face for ASCII.
13951 2000-04-27  Gerd Moellmann  <gerd@gnu.org>
13953         * print.c (print_object): Treat print-length < 0 as nil.
13955         * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
13957         * s/freebsd.h (TERMCAP_OBJ): Removed.
13958         (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
13960         * lread.c (read1): Don't treat period followed by certain
13961         characters as symbol start.
13963         * xfns.c (slurp_file): New function.
13964         (xbm_image_p): Handle case of in-memory XBM files.
13965         (xbm_scan): Rewritten to work on memory buffers instead of files.
13966         (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
13967         Work on memory buffers instead of files.  If DATA is null test
13968         if buffer looks like an in-memory XBM file.
13969         (xbm_load_image): Renamed from xbm_load_image_file.  Work on
13970         memory buffers instead of files.
13971         (xbm_file_p): New function.
13972         (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
13974         * lread.c (end_of_file_error): New function.
13975         (read1): Call it instead of signaling `end-of-file' directly.
13977         * print.c (print_error_message): Print data of `end-of-file'
13978         with Fprinc instead of Fprin1.
13980 2000-04-26  Ken Raeburn  <raeburn@gnu.org>
13982         * window.c (freeze_window_start): Check that minibuffer scroll
13983         window isn't nil before extracting the window structure pointer
13984         from it.
13986         * undo.c (record_delete): If we hit the end of the undo list, stop
13987         picking elements apart.
13989 2000-04-26  Gerd Moellmann  <gerd@gnu.org>
13991         * xdisp.c (display_line): If lines are continued, restore
13992         iterator's ascent/descent information to the values before the
13993         first glyph not fitting on the line.
13995 2000-04-25  Gerd Moellmann  <gerd@gnu.org>
13997         * xdisp.c (try_window_id) <all changes above window start>: Adjust
13998         positions in glyph matrix.  Don't compute new window end positions.
14000         * dispnew.c (increment_matrix_positions): Renamed from
14001         increment_glyph_matrix_buffer_positions.
14002         (increment_row_positions): Renamed from
14003         increment_glyph_row_buffer_positions.
14005         * dispextern.h: Change names of renamed functions from dispnew.c
14006         in prototypes.
14008 2000-04-24  Gerd Moellmann  <gerd@gnu.org>
14010         * fileio.c (Fdo_auto_save): Create directories for auto-save
14011         list file if necessary.
14013         * xdisp.c (init_iterator): Set iterator's extra_line_spacing
14014         from buffer or frame.
14015         (automatic_hscrolling_p): New variable.
14016         (hscroll_windows): Scroll windows horizontally only if automatic
14017         hscrolling is allowed.
14018         (syms_of_xdisp): New variable `automatic-hscrolling'.
14020         * frame.h (struct frame): Add member extra_line_spacing.
14022         * xfns.c (x_set_line_spacing): New function.
14023         (Fx_create_frame): Set line spacing from resources.
14024         (Qline_spacing): New variable.
14025         (syms_of_xfns): Initialize Qline_spacing.
14027         * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
14029         * buffer.c (init_buffer_once): Handle extra_line_spacing.
14030         (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
14031         (reset_buffer): Don't initialize extra2 and extra3.  Initialize
14032         extra_line_spacing from default value.
14033         (init_buffer_once): Initialize default value of extra_line_spacing.
14035         * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
14036         and extra3.
14038         * xterm.c (x_produce_glyphs): Remove reference to struct it's
14039         prompt_width.  Add extra line spacing.
14041         * term.c (produce_glyphs): Remove reference to struct it's
14042         prompt_width.
14044         * dispextern.h (struct it): Remove member prompt_width, add
14045         extra_line_spacing.
14047 2000-04-22  Gerd Moellmann  <gerd@gnu.org>
14049         * dispnew.c (update_frame_line): When writing a whole line, make
14050         sure cursor is in the right row afterwards, otherwise a use of
14051         capability `ch' in cmgoto might leave the cursor in the row below.
14053 2000-04-21  Gerd Moellmann  <gerd@gnu.org>
14055         * lisp.h (struct Lisp_Buffer_Cons): Remove.
14057         * keyboard.c (timer_check): Fix typo in comment.
14059 2000-04-21  Kenichi Handa  <handa@etl.go.jp>
14061         * fontset.c (Fset_fontset_font): Fix docstring.  Local variable
14062         name change: ch -> character.
14064 2000-04-20  Gerd Moellmann  <gerd@gnu.org>
14066         * keyboard.c (echo_message_buffer): New variable.
14067         (echo_now): Set echo_message_buffer to the echo area buffer used
14068         to display the echo.
14069         (cancel_echoing): Reset echo_message_buffer to nil.
14070         (read_char): Code rewritten that handles canceling an echo or
14071         echoing a dash, respectively.
14073         * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
14074         directory doesn't exist.
14076 2000-04-19  Dave Love  <fx@gnu.org>
14078         * fns.c (syms_of_fns): Defsubr mapc.
14079         (concat): Don't allow numeric args.
14080         (Fconcat): Doc change.
14082 2000-04-19  Stefan Monnier  <monnier@cs.yale.edu>
14084         * regex.c (re_match_2_internal): Don't shorten the strings anymore,
14085         instead define end_match(1|2) more carefully.
14086         Use GET_CHAR_BEFORE_2 for `begline'.
14088 2000-04-19  Gerd Moellmann  <gerd@gnu.org>
14090         * frame.h (SELECTED_FRAME): Change definition to compile cleanly
14091         on 64-bit systems where NULL is defined as `0'.
14093         * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
14094         the `variable argument list' to make it work on Alpha.
14096         * m/alpha.h (_LP64) [!_LP64]: Define.
14097         (ORDINARY_LINK): Define for NetBSD.
14099         * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
14101 2000-04-19  Dave Love  <fx@gnu.org>
14103         * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
14104         change.
14106         * Makefile.in (LIBS): Don't use.
14107         (GETLOADAVG_OBJ): Define again.
14108         (otherobj): Add GETLOADAVG_OBJ.
14110         * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
14112 2000-04-18  Gerd Moellmann  <gerd@gnu.org>
14114         * lread.c (read_filtered_event): Cancel and start busy cursor.
14116         * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
14117         that the per-character metrics may be null.
14119 2000-04-17  Gerd Moellmann  <gerd@gnu.org>
14121         * buffer.c (clone_per_buffer_values): New function.
14122         (Fmake_indirect_buffer): Add optional argument CLONE.  Call
14123         clone_per_buffer_values if CLONE is not nil.
14125         * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
14127 2000-04-16  Dave Love  <fx@gnu.org>
14129         * Makefile.in: Remove obsolete localcpp stuff.
14130         (GETLOADAVG_OBJ): Don't define.
14131         (obj): Move LIBOBJS...
14132         (otherobj): ... to here.
14133         (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
14134         whitespace-only lines after the continuation (Irix).
14136 2000-04-14  Gerd Moellmann  <gerd@gnu.org>
14138         * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
14140         * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
14142 2000-04-14  Dave Love  <fx@gnu.org>
14144         * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
14145         * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
14146         * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
14147         * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
14148         NLIST_STRUCT.
14150         * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
14151         autoconfiscated HAVE_GETLOADAVG.
14153         * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
14154         BROKEN_MKTIME.
14156 2000-04-14  Gerd Moellmann  <gerd@gnu.org>
14158         * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
14159         (fill_in_lock_file_name): Avoid existing files that aren't links.
14161 2000-04-14  Dave Love  <fx@gnu.org>
14163         * Makefile.in (LIBS, LIBOBJS): New variable.
14164         (INTERVAL_SRC): Convert to make variable.
14165         (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
14166         (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
14167         (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
14168         add LIBOBJS.
14169         (SOME_MACHINE_OBJECTS): Remove interval stuff.
14170         (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
14171         (shortlisp): Add facemenu, float-sup, frame.
14172         (SOME_MACHINE_LISP): Remove them from here.
14173         (LIBES): Change unused LDLIBS to autoconf LIBS.
14175         * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
14177 2000-04-14  Kenichi Handa  <handa@etl.go.jp>
14179         * composite.c (update_compositions): If FROM and TO are not in a
14180         valid range, do nothing.
14182 2000-04-13  Gerd Moellmann  <gerd@gnu.org>
14184         * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
14186         * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
14188         * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
14189         as TERMCAP_OBJ.
14191 2000-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
14193         * fileio.c (a_write): Remove redundant semi-colons.
14194         (e_write): Return -1 if failed to write all the data.
14195         This fixes the changes made at 1999-12-15.
14197 2000-04-12  Dave Love  <fx@gnu.org>
14199         * fns.c (mapcar1): Test for null vals to support mapc.
14200         (Fmapc): New function.
14202 2000-04-12  Eli Zaretskii  <eliz@is.elta.co.il>
14204         * msdos.c (NUM_MOUSE_BUTTONS): Define.
14205         (IT_frame_up_to_date): Support the buffer local value of
14206         cursor-type, if defined.
14208 2000-04-10  Dave Love  <fx@gnu.org>
14210         * editfns.c (preceding-char, following-char): Doc fix.
14212 2000-04-10  Ken Raeburn  <raeburn@gnu.org>
14214         * Makefile.in (temacs): Revert 2000-03-12 change.
14216 2000-04-10  Jason Rumney  <jasonr@gnu.org>
14218         * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
14220 2000-04-10  Gerd Moellmann  <gerd@gnu.org>
14222         * xdisp.c (setup_echo_area_for_printing): Choose an echo
14223         area buffer, if it's not set up yet.
14225         * indent.c (compute_motion): Set immediate_quit.
14227 2000-04-09  Gerd Moellmann  <gerd@gnu.org>
14229         * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
14230         (realize_tty_face): Suppress boldness if colors are the inverse of
14231         the default colors, and tty_suppress_bold_inverse_default_colors_p
14232         is set.
14233         (Ftty_suppress_bold_inverse_default_colors): New function.
14234         (syms_of_xfaces): Defsubr it.
14236         * buffer.c (Frestore_buffer_modified_p): New function.
14237         (syms_of_buffer): Defsubr it.
14239 2000-04-08  Ken Raeburn  <raeburn@gnu.org>
14241         * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
14242         charset id (int) argument, not a charset (Lisp_Object).
14244         * coding.h (code_convert_string): Declare.
14245         * coding.c (code_convert_string_norecord): Pass an int, not a lisp
14246         object, as the fourth argument to code_convert_string.
14248         * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
14249         (Fset_fontset_font): Use EQ to compare lisp objects.
14251 2000-04-05  Ken Raeburn  <raeburn@gnu.org>
14253         * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
14254         a pointer that looks like a lisp object.
14255         (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
14256         zero, instead see whether it's an integer object, since they can't
14257         have intervals.
14258         (GET_INTERVAL_OBJECT): Simply assign to the destination.
14260         * dispnew.c (allocate_matrices_for_frame_redisplay)
14261         (direct_output_forward_char): Use X(U)INT and make_number as needed
14262         to convert between (unsigned) int values and lisp integers.
14263         * keyboard.c (read_key_sequence): Likewise.
14264         * lread.c (substitute_object_recurse): Likewise.
14265         * fns.c (concat, hash_lookup, hash_remove): Likewise.
14266         * minibuf.c (do_completion, Fminibuffer_complete_word)
14267         (Fminibuffer_completion_help): Likewise.
14268         * term.c (produce_special_glyphs): Likewise.
14270         * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
14271         * print.c (print_preprocess, print_object): Likewise.
14273         * search.c (compile_pattern): Use NILP when checking for nil.
14275         * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
14276         __OPTIMIZE__]: Provide a GNU C macro version that handles
14277         lisp-object unions.
14278         (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
14279         field, to better cope with ENABLE_CHECKING and calls that modify a
14280         Lisp_Object using its old value.
14282 2000-04-04  Gerd Moellmann  <gerd@gnu.org>
14284         * window.c (compare_window_configurations): Signal an error
14285         if parameters C1 or C2 aren't window configurations.
14287         * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
14288         AFTER_POTENTIAL_GC calls around calls to functions that can
14289         signal an error and thus invoke the debugger.
14291 2000-04-03  Gerd Moellmann  <gerd@gnu.org>
14293         * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
14294         an error if decoding fails.
14296         * keyboard.c (lispy_mouse_names): Variable removed.
14297         (Vlispy_mouse_stem): New variable.
14298         (syms_of_keyboard): Initialize Vlispy_mouse_stem.
14299         (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
14300         for any mouse button number.  Increase size of mouse_syms and
14301         button_down_location as needed.  Call modify_event_symbol with
14302         different arguments.
14303         (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
14304         Call modify_event_symbol with different arguments.
14305         (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
14306         for any button number.  Call modify_event_symbol with different
14307         arguments.
14308         (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
14309         Accept a string for NAME_ALIST_OR_STEM.
14311         * lisp.h (larger_vector): Add prototype.
14313         * fns.c (larger_vector): Make externally visible.
14315         * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
14317 2000-04-02  Stefan Monnier  <monnier@cs.yale.edu>
14319         * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
14320         (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
14321         (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
14322         we are between str1 and str2.
14323         (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
14324         (PATFETCH): Use `TRANSLATE'.
14325         (PATFETCH_RAW): Fetch multibyte char if applicable.
14326         (PATUNFETCH): Remove.
14327         (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
14328         When writing a char, write it directly into the pattern buffer rather
14329         than going needlessly through a temp char-array.
14330         (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
14331         multibyte magic and remove the useless `#ifdef emacs'.
14332         (bcmp_translate): Don't compare as multibyte chars when in a unibyte
14333         buffer.
14335         * regex.h (struct re_pattern_buffer): Make field `multibyte'
14336         conditional on `emacs'.
14338         * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
14340 2000-04-01  Ken Raeburn  <raeburn@gnu.org>
14342         * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
14343         non-union-type versions of XMARK and friends here, because XMARK
14344         and friends won't work on an integer field if NO_UNION_TYPE is not
14345         defined.
14346         (make_number): Define as a function if it's not defined as a macro.
14348         * composite.c (run_composite_function): Use NILP when checking for nil.
14349         (syms_of_composite): Delete local var NARGS, pass an int as first
14350         argument to Fmake_hash_table.
14352         * editfns.c (text_property_stickiness): Use NILP to test
14353         Lisp_Object boolean value.
14354         (Fmessage_or_box): Don't use NILP to test int variable.
14355         (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
14356         problems reading from and changing the same lisp value in an
14357         XSETSTRING call.
14359 2000-04-01  Gerd Moellmann  <gerd@gnu.org>
14361         * term.c (TN_no_color_video): New variable.
14362         (term_init): Intitialize TN_no_color_video.
14363         (enum no_color_bit): New enumeration.
14364         (MAY_USE_WITH_COLORS_P): New macro.
14365         (turn_on_face): Use it to determine if attributes may be used
14366         combined with colors.
14368 2000-04-01  Ken Raeburn  <raeburn@gnu.org>
14370         * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
14371         with int lvalues via casts; instead, just yield lisp object lvalues.
14372         (enlarge_window): Variable sizep now points to Lisp_Object.  Use
14373         proper accessor macros.
14374         (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
14375         (grow_mini_window): Fix typo getting int value of root->height.
14377         * xdisp.c (compute_string_pos): Fix order of arguments to
14378         string_pos_nchars_ahead.
14379         (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
14380         count arg to variable-arg routines like Frun_hook_with_args and
14381         Fformat.
14382         (back_to_previous_visible_line_start)
14383         (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
14384         fixed-arg routines like Fget_char_property and Fmake_string.
14385         (reconsider_clip_changes): Use XINT when comparing integer lisp
14386         objects, or passing them as int arguments.
14387         (mark_window_display_accurate, insert_left_trunc_glyphs)
14388         (append_space, extend_face_to_end_of_line): Use make_number when
14389         storing or passing integer values as lisp objects.
14390         (set_cursor_from_row, highlight_trailing_whitespace): Use
14391         INTEGERP, not implicit test against zero, for glyph object.
14392         (try_window_id): Don't use make_number when we want an int value.
14394         * xfaces.c (xlfd_symbolic_value): Make last argument a
14395         Lisp_Object, to be consistent with callers.
14396         (Fbitmap_spec_p): Use XINT to get numeric value of height.
14397         (lface_hash): Apply XFASTINT to lisp values before folding in.
14399         * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
14400         fill in window width and height.  Pass an int, not a lisp object,
14401         as first arg to Finsert.
14403 2000-04-01  Gerd Moellmann  <gerd@gnu.org>
14405         * xfaces.c (realize_basic_faces): Block input while realizing
14406         the faces.
14408         * keyboard.c (lispy_mouse_names): Add additional mouse names.
14410         * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
14412 2000-03-31  Gerd Moellmann  <gerd@gnu.org>
14414         * xterm.c (x_produce_glyphs): When displaying unibyte text
14415         or ASCII, handle case that per-char metric is null.
14417 2000-03-30  Ken Raeburn  <raeburn@gnu.org>
14419         * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
14421         * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
14422         (XSUBR, XBUFFER): Verify correct object type before returning
14423         pointer, using eassert.
14424         * frame.h (XFRAME): Likewise.
14426         * buffer.c (Frename_buffer, Fset_buffer_multibyte)
14427         (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
14428         XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
14429         * data.c (set_internal): Likewise.
14430         * dispextern.h (WINDOW_WANTS_MODELINE_P)
14431         (WINDOW_WANTS_HEADER_LINE_P): Likewise.
14432         * fileio.c (auto_save_1): Likewise.
14433         * insdel.c (check_markers): Likewise.
14434         * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
14435         * undo.c (record_insert): Likewise.
14436         * vmsproc.c (child_sig): Likewise.
14437         * window.c (unshow_buffer, window_loop): Likewise.
14438         * xterm.c (x_erase_phys_cursor): Likewise.
14440 2000-03-30  Gerd Moellmann  <gerd@gnu.org>
14442         * xfns.c (free_image_cache): Free the cache structure itself
14443         last, after all its members have been freed.
14445         * lisp.h (xstrdup): Add prototype.
14447         * alloc.c (xstrdup): Moved here from xfaces.c.
14448         (allocating_for_lisp): Variable removed.
14449         (lisp_malloc): Block input around the calls to malloc and mem_insert.
14451         * xfaces.c (realize_tty_face): Use find_symbol_value instead
14452         of Fsymbol_value.
14453         (xstrdup): Moved to alloc.c.
14455 2000-03-29  Ken Raeburn  <raeburn@gnu.org>
14457         * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
14459         * emacs.c (main): Fix sense of no-loadup test.
14461         * config.in (ENABLE_CHECKING): Undef.
14463         * lisp.h (struct interval): Replace "parent" field with a union of
14464         interval pointer and Lisp_Object; add new bitfield to use as
14465         discriminant.  Change other flag fields to bitfields.
14466         (CHECK): New macro for consistency checking.  If ENABLE_CHECKING
14467         is defined and the supplied test fails, print a message and abort.
14468         (eassert): New macro.  Use CHECK to provide an assert-like facility.
14470         * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
14471         pointers; abort if the value looks like a lisp object.
14472         (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
14473         (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
14474         Modify for new interval parent definition.
14476         * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
14477         (UNMARK_BALANCE_INTERVALS): Update references that need an
14478         addressable lisp object in the interval structure.
14479         (die): New function.
14480         (suppress_checking): New variable.
14482         * intervals.c (interval_start_pos): Just return 0 if there's no
14483         parent object.
14485 2000-03-29  Gerd Moellmann  <gerd@gnu.org>
14487         * lread.c (read1): Accept `.' (period) as symbol start like in CL
14488         and earlier Emacs versions.
14490         * keyboard.c (Ftop_level): Cancel busy-cursor.
14492         * eval.c (call_debugger): Cancel busy-cursor.
14494 2000-03-29  Kenichi Handa  <handa@etl.go.jp>
14496         * search.c (Freplace_match): Adjust multibyteness of the current
14497         buffer and NEWTEXT.  Free allocated memory before signaling an error.
14499 2000-03-28  Stefan Monnier  <monnier@cs.yale.edu>
14501         * regex.c (analyse_first): New function obtained by ripping out most
14502         of re_compile_fastmap and generalizing it a little bit so that it
14503         can also just return whether a given (sub)pattern can match the empty
14504         string or not.
14505         (regex_compile): Use `analyse_first' to decide whether the loop-check
14506         needs to be done or not for *, +, *? and +? (the loop check is costly
14507         for non-greedy repetition).
14508         (re_compile_fastmap): Delegate the actual work to `analyse_first'.
14510 2000-03-28  Dave Love  <fx@gnu.org>
14512         * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
14514         * alloc.c: Include stdio.h.  Test STDC_HEADERS, not __STDC__.
14516 2000-03-27  Stefan Monnier  <monnier@cs.yale.edu>
14518         * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
14519         an expression.
14520         (enum re_opcode_t): Update description of succeed_n.
14521         (PATFETCH): Always define.
14522         (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
14523         operators, char classes, shy-groups and intervals).
14524         Optimize special cases of intervals so as to only use succeed_n and
14525         jump_n when really needed.
14526         (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
14527         that we don't have to handle the special cases any more.
14528         Simplify on_failure_jump handling as well.
14530 2000-03-28  Jason Rumney  <jasonr@gnu.org>
14532         * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
14534 2000-03-27  Gerd Moellmann  <gerd@gnu.org>
14536         * s/freebsd.h (GC_SETJMP_WORKS): Define.
14538         * s/msdos.h (GC_SETJMP_WORKS): Define.
14540         * alloc.c (mark_maybe_object): New function.
14541         (mark_memory): Use it.
14542         (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
14543         (setjmp_tested_p, longjmp_done): New variables.
14544         (test_setjmp): New function.
14545         (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
14546         (init_alloc): Initialize setjmp_tested_p and longjmp_done.
14548         * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
14549         to DEC_TEXT_POS and INC_TEXT_POS.
14551         * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
14552         with parameter MULTIBYTE_P.
14554         * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
14556         * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
14557         buffers because it looks for multibyte character byte sequences
14558         which don't exist in unibyte text.
14560         * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
14562         * xfaces.c (register_color, unregister_color, unregister_colors)
14563         [DEBUG_X_COLORS]: New functions.
14564         (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
14566         * xfns.c (x_set_cursor_color): Get color reference counts right.
14568         * xterm.c (x_copy_color): New function.
14569         (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
14571         * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
14572         (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
14573         (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
14574         (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
14575         (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
14576         (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
14577         (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
14578         (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
14579         (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
14580         (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
14582         * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
14583         names for handling per-buffer variables.
14585         * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
14586         instead of MAX_BUFFER_LOCAL_VARS.
14587         (last_per_buffer_idx): Renamed from max_buffer_local_idx.
14589         * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
14591         * xfns.c (x_specified_cursor_type): New function.
14592         (x_set_cursor_type): Use it.
14594         * buffer.h (struct buffer): Add cursor_type.
14596 2000-03-26  Stefan Monnier  <monnier@cs.yale.edu>
14598         * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
14599         (print_partial_compiled_pattern, re_compile_fastmap):
14600         Handle new opcode.
14601         (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
14602         (re_match_2_internal): Add code for on_failure_jump_nastyloop when
14603         executing it as well as when popping it off the stack to find infinite
14604         loops in non-greedy repetition operators.
14606 2000-03-26  Gerd Moellmann  <gerd@gnu.org>
14608         * doc.c (Qfunction_documentation): New variable.
14609         (syms_of_doc): Initialize Qfunction_documentation.
14610         (Fdocumentation): If FUNCTION is a symbol with non-nil
14611         `function-documentation' property, return a documentation derived
14612         from that.
14614         * buffer.c (syms_of_buffer): Add default-cursor-type.
14615         (init_buffer_once): Don't let cursor_type have a local value
14616         in every buffer.
14618         * xterm.c (x_display_and_set_cursor): Choose cursor depending
14619         on buffer-local value of cursor_type.
14620         (x_draw_bar_cursor): Add parameter WIDTH.
14622         * buffer.c (reset_buffer): Initialize buffer's cursor_type.
14623         (init_buffer_once): Set default cursor_type value to t.
14624         Mark cursor_type as local everywhere.
14625         (syms_of_buffer): New per-buffer variable cursor-type.
14627         * buffer.h (struct buffer): Remove member local_var_flags,
14628         add local_flags.
14629         (MAX_BUFFER_LOCAL_VARS): New macro.
14630         (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
14631         (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
14632         (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
14633         (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
14635         * print.c (print_object): Use new macros for per-buffer variables.
14637         * category.c (Fset_category_table): Use new macros for per-buffer
14638         variables.
14640         * buffer.c (buffer_permanent_local_flags): Make a char array.
14641         (max_buffer_local_idx): New variable.
14642         (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
14643         for new handling of per-buffer variables.
14644         (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
14645         (init_buffer_once): Initialize per-buffer vars differently.
14646         Set max_buffer_local_idx.
14648         * syntax.c (Fset_syntax_table): Use new macros for per-buffer
14649         variables.
14651         * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
14653         * data.c (do_symval_forwarding, store_symval_forwarding)
14654         (find_symbol_value, set_internal, default_value, Fset_default)
14655         (Fkill_local_variable, Flocal_variable_p): Use new macros for
14656         per-buffer variables.
14658         * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
14660 2000-03-24  Gerd Moellmann  <gerd@gnu.org>
14662         * xterm.c (x_term_init): Unblock input around call1 of
14663         Qvendor_specific_keysyms.
14665         * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
14666         (find_defun_start): Consider an open parenthesis in column 0
14667         a defun start only if open_paren_in_column_0_is_defun_start is set.
14668         (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
14670 2000-03-24  Stefan Monnier  <monnier@cs.yale.edu>
14672         * eval.c (Fautoload): Add entry in load-history (if after dump).
14673         * lread.c (load-history): Update docstring.
14675 2000-03-24  Gerd Moellmann  <gerd@gnu.org>
14677         * indent.c (Fvertical_motion): Always use the current buffer.
14678         Temporarily change the window's buffer, if necessary.
14680 2000-03-23  Gerd Moellmann  <gerd@gnu.org>
14682         * xterm.c (fast_find_position): Make sure not to consider rows
14683         not visible in the window.
14685 2000-03-22  Stefan Monnier  <monnier@cs.yale.edu>
14687         * regex.c (enum syntaxcode): Provide default for non-Emacs.
14688         (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
14690 2000-03-22  Jason Rumney  <jasonr@gnu.org>
14692         * w32menu.c (single_submenu): Set help string to NULL if none.
14693         (w32_menu_show): Set help string correctly.
14694         (add-menu-item): Set help string in MIIM_DATA for menu item.
14695         Load SetMenuItemInfoA explicitly.
14696         (w32_menu_display_help): New function.
14698         * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
14699         (QCdata): Moved to xdisp.c.
14701         * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
14702         (Vw32_charset_to_codepage_alist): Removed.
14703         (Vw32_charset_info_alist): New variable.
14704         (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
14705         (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
14706         (greek, hebrew, thai, johab, mac, unicode]): New symbols.
14707         (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
14708         with TODO comment.
14709         (w32_codepage_for_font): Use Vw32_charset_info_alist.
14710         (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
14711         Define Vw32_charset_info_alist and w32_charset symbols.
14713 2000-03-22  Jason Rumney  <jasonr@gnu.org>
14715         * makefile.nt (w32bdf.obj): Update dependencies.
14717         * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
14719         * w32fns.c: Include fontset.h after dispextern.h.
14720         (Fx_create_frame): Do not create fontset.
14721         (w32_load_system_font): Doc fix.
14722         (Fx_close_connection): Free full_name if it is not shared.
14724         * w32term.c: Include fontset.h after dispextern.h.
14725         (x_get_glyph_face_and_encoding): New parameter two_byte_p.
14726         Callers updated.
14727         (w32_per_char_metric): If PCM is invalid, delete and return NULL.
14728         (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
14729         (w32_font_is_double_byte): New function, needs body.
14730         (x_append_glyph): Set glyph->glyph_not_available_p.
14731         (x_produce_glyphs): Set it->glyph_not_available_p.  Don't set
14732         it->charset.  If it->multibyte_p is zero and it->c is a multibyte
14733         character, convert it to a unibyte character.
14734         (struct glyph_string): Delete member `charset'.
14735         (W32_TEXTOUT): Temporarily remove charset_dim until another way of
14736         calculating it is found.
14737         (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id.  Handle
14738         the case that per char metric is not available correctly.
14739         (x_fill_glyph_string): Handle the case that the specific glyph is
14740         not available correctly.
14741         (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14742         (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14743         (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14744         (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14745         fontset.  Don't call FS_LOAD_FONT.
14747 2000-03-22  Ken Raeburn  <raeburn@gnu.org>
14749         * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
14750         (INT_LISPLIKE): New macro.
14751         (NULL_INTERVAL_P): Use it.
14752         (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
14753         (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
14754         (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
14756         * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
14757         explicit references to "parent" field of struct interval and
14758         associated unclean type conversions.
14759         * intervals.c (create_root_interval, root_interval, rotate_right)
14760         (rotate_left, balance_possible_root_interval, split_interval_right)
14761         (split_interval_left, interval_start_pos, find_interval)
14762         (next_interval, previous_interval, update_interval)
14763         (adjust_intervals_for_insertion, delete_node, delete_interval)
14764         (adjust_intervals_for_deletion, merge_interval_right)
14765         (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
14766         (copy_intervals_to_string): Likewise.
14767         * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
14768         Likewise.
14769         * syntax.c (update_syntax_table): Likewise.
14771         * intervals.c (reproduce_tree_obj): New function, like
14772         reproduce_tree but takes a Lisp_Object for the parent.  Declare
14773         with prototype.
14774         (graft_intervals_into_buffer): Use it when appropriate.
14775         (reproduce_tree): Declare with prototype.
14776         (balance_possible_root_interval): Check that the parent is a lisp
14777         object before trying to examine its type.
14779 2000-03-22  Gerd Moellmann  <gerd@gnu.org>
14781         * xfaces.c (lface_same_font_attributes_p): Compare font attributes
14782         as strings only if both are known to be strings.
14784         * s/openbsd.h (LIBS_TERMCAP): Undef.
14786 2000-03-21  Stefan Monnier  <monnier@cs.yale.edu>
14788         * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
14789         definitions for non-Emacs compilation.
14790         (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
14791         outside of `#ifdef emacs'.
14792         (print_partial_compiled_pattern): Update.
14793         (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
14794         (re_compile_fastmap): Merge handling of charset and charset_not (for
14795         emacs and non-emacs compilation as well).
14796         Similarly for (not)categoryspec and (not)syntaxspec.
14797         Don't use the fastmap when reaching `anychar' since the added
14798         complexity is not justified.
14799         (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
14800         and (not)syntaxspec.  Merge (not)categoryspec.
14802 2000-03-22  Kenichi Handa  <handa@etl.go.jp>
14804         * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
14805         (FACE_FOR_CHAR): Define them differently for the configuration of
14806         --without-x.
14808 2000-03-21  Dave Love  <fx@gnu.org>
14810         * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
14811         doc string.
14813 2000-03-21  Gerd Moellmann  <gerd@gnu.org>
14815         * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
14816         (lface_fully_specified_p): Don't check contents of
14817         LFACE_FONT_INDEX because that attribute is optional.
14818         (realize_x_face): Remove now unwarranted xassert.
14820 2000-03-21  Kenichi HANDA  <handa@etl.go.jp>
14822         The following changes are to make font selection based on
14823         characters, not charset.  In addition, they recover fontset
14824         facilities while utilizing the new font selection mechanism.
14826         * Makefile.in (fontset.o): Depend on dispextern.h.
14828         * alloc.c (mark_face_cache): Don't mark face->registry.
14830         * dispextern.h (struct glyph): New member glyph_not_available_p.
14831         Use 22 bits for face_id.
14832         (enum lface_attribute_index): Add LFACE_FONT_INDEX.
14833         (struct face): Delete member registry, new member ascii_face.
14834         (FACE_SUITABLE_FOR_CHAR_P): Renamed from
14835         FACE_SUITABLE_FOR_CHARSET_P.  Caller changed.
14836         (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET.  Caller changed.
14837         (struct it): Delete member charset, new member glyph_not_available_p.
14839         * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
14840         (struct fontset_info, struct fontset_data): Structs removed.
14841         (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
14842         (Vglobale_fontset_alist, font_idx_temp): Externs removed.
14843         (fs_load_font, fs_query_fontset): Adjusted for new argument.
14844         (fs_free_face_fontset, fontset_font_pattern)
14845         (face_suitable_for_char_p, face_for_char)
14846         (make_fontset_for_ascii_face): Extern them.
14847         (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
14848         (FS_LOAD_FACE_FONT): New macro.
14850         * fontset.c: All codes rewritten or adjusted for the change of
14851         fontset implementation.  Now fontset is represented by char table.
14852         (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
14853         Variables removed.
14854         (my_strcasecmp): Function removed.
14855         (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
14856         (AREF, ASIZE): New macros.
14857         (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
14858         (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
14859         (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
14860         (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
14861         (fontset_id_valid_p, font_family_registry, fontset_name)
14862         (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
14863         (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
14864         New functions.
14865         (fs_load_font): New arg FACE.  Caller changed.
14866         (fs_query_fontset): Argument changed.  Caller changed.
14867         (Fquery_fontset): call fs_query_fontset.
14868         (fs_register_fontset, alloc_fontset_data, free_fontset_data):
14869         Functions removed.
14870         (clear_fontset_elements, check_registry_encoding)
14871         (check_fontset_name): New functions.
14872         (syms_of_fontset): Set char-table-extra-slots property of fontset
14873         to 3.  Staticpro and initialize Vfontset_table and
14874         Vdefault_fontset.  Defsubr fontset_font and fontset_list.
14876         * frame.h (struct frame): Member `fontset_data' removed.
14877         (FRAME_FONTSET_DATA): Macro removed.
14879         * frame.c (make_frame): Don't allocate f->fontset_data.
14880         (Fdelete_frame): Don't free f->fontset_data.
14882         * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
14884         * xdisp.c (charset_at_position): Function removed.
14885         (init_iterator): Don't set member charset of struct `it'.
14886         (handle_face_prop, reseat_to_string, set_iterator_to_next)
14887         (next_element_from_display_vector, insert_left_trunc_glyphs):
14888         Likewise.
14889         (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
14890         FACE_FOR_CHARSET.
14891         (get_next_display_element, append_space)
14892         (extend_face_to_end_of_line): Likewise.
14894         * xfaces.c (Qx_charset_registry, Vface_default_registry):
14895         Variables removed.
14896         (clear_font_table, frame_update_line_height, load_face_font):
14897         Adjusted for the change of fontset implementation.
14898         (load_face_fontset_font): Function removed.
14899         (pixel_point_size): New function.
14900         (font_list): Argument type changed.  Caller changed.
14901         (LFACE_FONT): New macro.
14902         (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
14903         (set_lface_from_font_name): Type of arg FONTNAME is changed to
14904         Lisp_Object.  Determine the font name by actually loading a font
14905         by the specified pattern.  Set LFACE_FONT (lface) to the specified
14906         pattern.  Even if a font is not found, don't try alternatives.
14907         (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
14908         (set_font_frame_param): If `font' is specified in lface, use it.
14909         (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
14910         (lface_same_font_attributes_p): Likewise.
14911         (make_realized_face): Arguent changed.  Caller changed.  Set
14912         face->ascii_face to face itself.
14913         (free_realized_face): Free face->fontset if face is for ASCII.
14914         (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
14915         (deduce_unibyte_registry, x_charset_registry): Functions removed.
14916         (free_realized_multibyte_face): New function.
14917         (lookup_face, lookup_named_face, lookup_derived_face): Argument
14918         changed.  Caller changed.
14919         (try_font_list): Argument type changed.
14920         (face_fontset): Check `font' slot of ATTRS, not `family' slot.
14921         (choose_face_font): Argument changed.  Handle fontset properly.
14922         (choose_face_fontset_font): Function removed.
14923         (realize_default_face, realize_named_face): Don't remove the
14924         former face here.
14925         (realize_face): Argument changed.  Caller changed.  Remove face
14926         with the arg former_face_id in advance.  Load font for the new face.
14927         (realize_x_face): Argument changed.  Caller changed.  For a
14928         multibyte character, share fontset with base_face.  For a single
14929         byte character, make a new realized fontset.  Don't load a font here.
14930         (realize_tty_face): Argument changed.  Caller changed.
14931         (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
14932         (face_at_buffer_position): Don't check multibyte_p for returning
14933         DEFAULT_FACE_ID.
14934         (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
14935         FACE_SUITABLE_FOR_CHARSET_P.
14936         (syms_of_xfaces): Remove code for Qx_charset_registry and
14937         Vface_default_registry.
14939         * xterm.c: Include fontset.h after dispextern.h.  Undo the changes
14940         related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
14941         (x_per_char_metric): Don't try FONT->default_char.  Even if
14942         pcm->width is zero, glyph bits may exist.
14943         (x_encode_char): Always initialize char2b->byte1.
14944         (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
14945         (x_get_glyph_face_and_encoding): New arg two_byte_p.  Caller changed.
14946         (x_append_glyph): Set glyph->glyph_not_available_p.
14947         (x_produce_glyphs): Set it->glyph_not_available_p.  Don't set
14948         it->charset.  Handle the case that per char metric is not
14949         available.  If it->multibyte_p is zero and it->c is a multibyte
14950         character, convert it to a unibyte character.
14951         (struct glyph_string): Delete member `charset'.
14952         (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id.  Handle
14953         the case that per char metric is not available correctly.
14954         (x_fill_glyph_string): Handle the case that the specific glyph is
14955         not available correctly.
14956         (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14957         (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14958         (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14959         (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14960         fontset.  Don't call FS_LOAD_FONT.
14962         * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
14963         (x_create_tip_frame): Likewise.
14964         (Fx_close_connection): Free full_name of font_info.
14966         * fns.c (optimize_sub_char_table): New function.
14967         (Foptimize_char_table): New function.
14968         (syms_of_fns): Defsubr Soptimize_char_table.
14970 2000-03-20  Gerd Moellmann  <gerd@gnu.org>
14972         * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
14973         only if buffer is displayed in some window.
14975         * xdisp.c (handle_single_display_prop): Initialize local `value'.
14976         (try_window_reusing_current_matrix): Don't call scroll run
14977         function if run's current and desired position are the same;
14978         this prevents cursor flickering.
14980 2000-03-19  Stefan Monnier  <monnier@cs.yale.edu>
14982         * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
14984         * regex.c (RE_STRING_CHAR): New macro.
14985         (GET_CHAR_AFER_2): Remove.
14986         (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
14987         (enum re_opcode_t): Remove on_failure_jump_exclusive.
14988         (print_partial_compiled_pattern, re_compile_fastmap)
14989         (re_match_2_internal): Remove on_failure_jump_exclusive.
14990         (regex_compile): Turn optimizable P+ loops into PP*, so that the
14991         optimization only need to work for * (ie. can use of_keep_string_jump).
14992         Remove the special case for .*\n since it is now covered by the general
14993         optimization.
14994         (re_search_2): Don't bother with `room'.
14995         (skip_one_char): New function.
14996         (skip_noops): Simplify since `memory' is not needed any more.
14997         (mutually_exclusive_p): Restructure slightly to use `switch' and
14998         add handling for "all" remaining cases.
14999         (re_match_2_internal): Change on_failure_jump_smart to use
15000         on_failure_keep_string_jump (and redirect the end-of-loop jump)
15001         rather than on_failure_jump_exclusive.
15003 2000-03-19  Gerd Moellmann  <gerd@gnu.org>
15005         * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
15006         number of bits per RGB because it's everywhere used as the depth
15007         of the visual.
15009         * term.c (calculate_costs): Remove code dealing with X frames.
15011 2000-03-19  Richard M. Stallman  <rms@gnu.org>
15013         * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
15015 2000-03-18  Gerd Moellmann  <gerd@gnu.org>
15017         * lread.c (read_integer): Unread the last char not consumed.
15019 2000-03-17  Gerd Moellmann  <gerd@gnu.org>
15021         * xterm.c (x_update_window_cursor): Don't update in frames
15022         which are in the process of being deleted.
15024 2000-03-16  Gerd Moellmann  <gerd@gnu.org>
15026         * Makefile.in (mostlyclean): Add `*.core'.
15027         (clean): Add `bootstrap-emacs'.
15029         * lread.c (read_integer): New function.
15030         (read1): Support read syntax #o, #x, #b, #r.
15032 2000-03-15  Stefan Monnier  <monnier@cs.yale.edu>
15034         * regex.c (re_match_2): Fix string shortening (to fit `stop') to
15035         make sure POINTER_TO_OFFSET gives the same value before and after
15036         PREFETCH.  Use `dfail' to guarantee "atomic" matching.
15037         (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
15038         (debug): Now only active if > 0 rather than if != 0.
15039         (DEBUG_*): Update for the new meaning of `debug'.
15040         (print_partial_compiled_pattern): Add missing `succeed' case.  Use
15041         CHARSET_* macros in the charset(_not) branch.  Fix off-by-two bugs
15042         in `succeed_n', `jump_n' and `set_number_at'.
15043         (store_op1, store_op2, insert_op1, insert_op2)
15044         (at_begline_loc_p, at_endline_loc_p): Add prototype.
15045         (group_in_compile_stack): Move to after its arg's types are
15046         declared and add a prototype.
15047         (PATFETCH): Define in terms of PATFETCH_RAW.
15048         (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
15049         (QUIT): Redefine as a nop except for NTemacs.
15050         (regex_compile): Handle intervals {,M} as if it was {0,M}.  Fix
15051         indentation of the greedy-op and shy-group code.
15052         (at_(beg|end)line_loc_p): Fix argument's types.
15053         (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
15054         (re_search_2): Use POS_AS_IN_BUFFER.  Simplify `room' computation.
15055         (MATCHING_IN_FIRST_STRING): Remove.
15056         (re_match_2): Use POS_AS_IN_BUFFER.  Ifdef out failure_stack_ptr
15057         to shut up gcc.  Use FIRST_STRING_P and POINTER_TO_OFFSET.  Use
15058         QUIT unconditionally.
15060 2000-03-15  Gerd Moellmann  <gerd@gnu.org>
15062         * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
15063         a sole completion.
15065         * process.c (send_process): Add a hint that the function
15066         can call Lisp code to its comment.
15068         * lread.c (load_dangerous_libraries): New variable.
15069         (Vbytecomp_version_regexp): New variable.
15070         (safe_to_load_p): New function.
15071         (Fload): Handle files not compiled with Emacs specially.
15072         (syms_of_lread): New Lisp variable load-dangerous-libraries.
15074 2000-03-14  Gerd Moellmann  <gerd@gnu.org>
15076         * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
15078         * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
15079         support functions only if HAVE_X11R6_XIM is defined.
15080         (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
15082         * s/sol2.h (INHIBIT_X11R6_XIM): Define.
15084         * xfns.c (X_I18N_INHIBITED): Don't define.
15085         (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
15086         (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
15088         * config.in (HAVE_X_I18N): Moved here from xterm.h.
15089         (HAVE_X11R6_XIM): Define.
15091         * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
15093         * xterm.c (x_term_init): Add support for X resource `synchronous'.
15094         If set, call XSynchronize.
15096 2000-03-13  Stefan Monnier  <monnier@cs.yale.edu>
15098         * regex.c: Declare a new type `re_char' used throughout the code
15099         for the string char type.  It's `const unsigned char' to match the
15100         rest of Emacs.  Consistently make sure all pointers to strings use
15101         it and make sure all pointers into the pattern use `unsigned char'.
15102         (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
15103         GET_CHAR_AFTER_2.  Also merge wordbound and notwordbound to reduce
15104         code duplication.
15106         * charset.h (GET_CHAR_AFTER_2): Remove.
15107         (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
15109 2000-03-12  Ken Raeburn  <raeburn@gnu.org>
15111         * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
15112         variable before the invocation of YMF_PASS_LDFLAGS, in case both
15113         of them try to use backquotes.
15115 2000-03-12  Dave Love  <fx@gnu.org>
15117         * unexelf.c: Restore changes of 1999-10-19.
15118         (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
15119         fix its type and alignment; copy it from current process.
15121 2000-03-12  Gerd Moellmann  <gerd@gnu.org>
15123         * atimer.c (cancel_atimer): Break out of the loop as soon as timer
15124         has been found.  Fix bug not computing timer's predecessor.
15126         * fileio.c (Fread_file_name): Handle case that DIR contains a
15127         file name.
15129         * window.c (Fsave_window_excursion): Doc fix.
15131         * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
15133 2000-03-12  Eli Zaretskii  <eliz@is.elta.co.il>
15135         * msdos.c (vga_installed): New function, code moved from
15136         dos_set_window_size.
15137         (Qbar, Qcursor_type, outside_cursor): New variables.
15138         (syms_of_msdos): Intern and staticpro them.
15139         (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
15140         shape used outside Emacs when called for the first time.
15141         (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
15142         cursor shape used outside Emacs.
15143         (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
15144         (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
15145         type has changed.
15146         (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
15147         parameters specify the cursor.  Make qreverse a global
15148         variable (renamed to Qreverse).
15150 2000-03-09  Gerd Moellmann  <gerd@gnu.org>
15152         * fns.c (Fy_or_n_p): Cancel busy-cursor.
15154 2000-03-08  Stefan Monnier  <monnier@cs.yale.edu>
15156         This is a big redesign of failure-stack and register handling, prompted
15157         by bugs revealed when trying to add shy-groups.  Overall, what happened
15158         is that loops are now structured a little differently, groups can be
15159         shy and the code is a little simpler.
15161         * regex.h: Update the copyright.
15162         (RE_SHY_GROUPS): New value.
15163         (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
15164         (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
15166         * regex.c (enum re_opcode_t): Remove jump_past_alt,
15167         maybe_pop_jump, push_dummy_failure and dumy_failure_jump.  Add
15168         on_failure_jump_(exclusive, loop and smart).  Also fix the comment
15169         for (start|stop)_memory since they now only take one argument (the
15170         second has becomes unnecessary).
15171         (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
15172         (print_compiled_pattern): Use %ld to printf long ints and flush to
15173         make debugging a little easier.
15174         (union fail_stack_elt): Make the integer unsigned.
15175         (struct fail_stack_type): Add a `frame' element.
15176         (INIT_FAIL_STACK): Init `frame' as well.
15177         (POP_PATTERN_OP): New macro for re_compile_fastmap.
15178         (DEBUG_PUSH, DEBUG_POP): Remove.
15179         (NUM_REG_ITEMS): Remove.
15180         (NUM_NONREG_ITEMS): Adjust.
15181         (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
15182         (TOP_FAILURE_HANDLE): New macros for the cycle detection.
15183         (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
15184         (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
15185         New macros.
15186         (PUSH_FAILURE_POINT): Don't push registers any more.  The pattern
15187         address pushed is not the destination of the jump but the source
15188         of it instead.
15189         (NUM_FAILURE_ITEMS): Remove.
15190         (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
15191         registers before the actual failure point).  Don't hardcode any
15192         meaning for str==NULL anymore.
15193         (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
15194         (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
15195         Remove.
15196         (REG_UNSET_VALUE): Use NULL (why not?).
15197         (compile_range): Remove declaration since it doesn't exist.
15198         (struct compile_stack_elt_t): Remove inner_group_offset.
15199         (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
15200         (regex_grow_registers): Remove dead code.
15201         (FIXUP_ALT_JUMP): New macro.
15202         (regex_compile): Add shy-groups Change loops to use
15203         on_failure_jump_smart&jump instead of
15204         on_failure_jump&maybe_pop_jump.  Change + loops to eliminate the
15205         initial (dummy_failure_)jump.  Remove c1_base (looks like unused
15206         variable to me).  Use `jump' instead of `jump_past_alt' and don't
15207         bother with push_dummy_failure in alternatives since it is now
15208         unnecessary.  Use FIXUP_ALT_JUMP.  Eliminate a useless `#ifdef
15209         emacs' for (re)allocating the stack.
15210         (re_compile_fastmap): Remove dead variables i and num_regs.  Exit
15211         from loop when bufp->can_be_null rather than jumping to `done'.
15212         Avoid jumping backwards so as to ensure termination.  Use
15213         PATTERN_STACK_EMPTY and POP_PATTERN_OP.  Improved handling of
15214         backreferences.  Remove dead code in handling of `anychar'.
15215         (skip_noops, mutually_exclusive_p): New functions taken from the
15216         handling of `maybe_pop_jump' in re_match_2_internal.  Slightly
15217         improve mutually_exclusive_p to handle ".+\n".
15218         (lowest_active_reg, highest_active_reg)
15219         (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
15220         (re_match_2_internal): Use %p instead of 0x%x when printf'ing
15221         ptrs.  Don't SET_REGS_MATCHED anymore.  Remove many dead
15222         variables.  Push register (in `start_memory') on the stack rather
15223         than storing it in old_reg(start|end).  Remove the cycle detection
15224         from `stop_memory', replaced by the use of on_failure_jump_loop
15225         for greedy loops.  Add code for the new on_failure_jump_<foo>.
15226         Remove ad-hoc code in `on_failure_jump' to push more registers in
15227         the case of a loop.  Take out code from `maybe_pop_jump' into
15228         separate functions and adapt it to the semantics of
15229         `on_failure_jump_smart'.  Remove jump_past_alt, dummy_failure_jump
15230         and push_dummy_failure.  Remove dummy_failure handling and
15231         handling of `failures to jump to on_failure_jump' (this last one
15232         was already dead code, it seems).
15233         (group_match_null_string_p, alt_match_null_string_p)
15234         (common_op_match_null_string_p): Remove.
15236 2000-03-08  Dave Love  <fx@gnu.org>
15238         * config.in: Don't depend on __STDC__ for volatile.
15239         Add POINTER_TYPE, PTR, PROTOTYPES.
15241         * hftctl.c, strftime.c: Use PROTOTYPES.
15242         * eval.c (find_handler_clause): Likewise.
15244         * mem-limits.h: Use POINTER_TYPE.
15246         * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
15247         (memory_warnings): Declare using POINTER_TYPE.
15249 2000-03-08  Gerd Moellmann  <gerd@gnu.org>
15251         * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
15253         * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
15255         * xfns.c: Remove obsolete code in #if 0.
15256         (Fx_focus_frame): New function.
15258 2000-03-07  Miyashita Hisashi  <himi@bird.scphys.kyoto-u.ac.jp>
15260         * coding.c (coding_category_name): Add coding-category-utf-8,
15261         coding-category-utf-16-be, coding-category-utf-16-le.
15262         (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
15263         UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
15264         UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
15265         (detect_coding_utf_8): New function.
15266         (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
15267         UTF_16_LOW_SURROGATE_P): New macros.
15268         (detect_coding_utf_16): New function
15269         (detect_coding_mask): When priorities are specified, skip any
15270         categories that have `nil' coding-system.  Fix bug of returning
15271         wrong mask when PRIORITIES is specified and detect_coding_XXX()
15272         returns a mask not set in PRIORITIES.
15273         (detect_eol_type_in_2_octet_form): New function.
15274         (detect_eol): selects detect_eol_type_XXX to call according to
15275         cooding->category_idx.
15276         (detect_coding_system): Remove `nil' coding-system in the result.
15277         (Fupdate_coding_systems_internal): Update all coding-categories.
15279         * coding.h (CODING_CATEGORY_IDX_UTF_8)
15280         (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
15281         New macros.
15282         (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
15283         (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
15284         (CODING_CATEGORY_IDX_UTF_16_LE)
15285         (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
15286         (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
15287         (CODING_CATEGORY_MASK_ANY): Include the above macros.
15288         (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
15290 2000-03-07  Gerd Moellmann  <gerd@gnu.org>
15292         * doc.c (Fdocumentation_property): If value is not a string,
15293         and doesn't refer to etc/DOC, evaluate it to obtain a string.
15295         * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
15296         close the display with XtCloseDisplay.  This caused a bus error
15297         on OpenWindows.
15299         * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
15300         complete but not unique.
15302 2000-03-06  Gerd Moellmann  <gerd@gnu.org>
15304         * process.c (send_process): Remove local variable `procname' that
15305         might become invalid when a GC happens.  Instead, access the
15306         process name slot directly.
15308         * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
15309         orig_height if set.
15311         * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
15312         orig_height if set.
15314 2000-03-06  Eli Zaretskii  <eliz@is.elta.co.il>
15316         * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
15317         glyph matrices have been freed.
15319 2000-03-05  Gerd Moellmann  <gerd@gnu.org>
15321         * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
15322         (bootstrap-temacs): Set LC_ALL to C like for temacs.
15324         * xfns.c (QCdata): Moved to xdisp.c.
15326         * xdisp.c (QCdata): Moved here from xfns.c.
15327         (syms_of_xdisp): Initialize QCdata.
15329         * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
15331         * window.c (coordinates_in_window): Use
15332         FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
15333         FRAME_INTERNAL_BORDER_WIDTH.
15335         * xdisp.c (try_window_id): Recompute unchanged information if
15336         it is obviously invalid.
15338         * xterm.c (x_term_init): Create a colormap if not using the
15339         default visual.
15341         * xterm.h (select_visual): Change prototype.
15343         * xfns.c (select_visual): Rewritten.  Recognize user-specified
15344         visual classes.
15345         (visual_classes): New variable.
15347 2000-03-04  Gerd Moellmann  <gerd@gnu.org>
15349         * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
15350         (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
15351         (png_load): Access colormap of frame using FRAME_X_COLORMAP.
15352         (x_decode_color): Don't handle allocation of white and black specially.
15353         (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
15354         XtNcolormap resources.
15355         (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
15356         (Fx_create_frame): Initialize color members of x_output structure.
15357         (xpm_load): Pass colormap to XPM lib.
15359         * xfaces.c (x_free_colors): Access colormap of frame using
15360         FRAME_X_COLORMAP.  Be paranoid about freeing black and white
15361         when default colormap is used.
15363         * xterm.c (x_term_init): Set Colormap member of x_display_info
15364         structure.  Copy colormap if resource `privateColormap' is
15365         specified (PseudoColor only).
15366         (x_setup_relief_color): Access colormap of frame using
15367         FRAME_X_COLORMAP.
15369         * xterm.h (struct x_display_info): Add Colormap member `cmap'.
15370         (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
15372 2000-03-04  Jason Rumney  <jasonr@gnu.org>
15374         * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
15375         other non-platform-specific equivalents.
15376         [WINDOWSNT]: Include w32term.h, fontset.h and define X
15377         specific functions and macros as their w32 equivalents where
15378         non-platform-specifics are not available.
15379         [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
15380         (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
15381         (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
15382         (frame_update_line_height): Use macros to access f->output_data.
15383         (defined_color): Remove FIXME comments; fixed.
15384         (x_face_list_fonts, prepare_face_for_display): Put X specifics
15385         into #ifdef blocks. Add WINDOWSNT blocks.
15386         (Fx_list_fonts): Use macros for accessing font data.
15387         (set_lface_from_font_name): Different default fonts for X and
15388         WINDOWSNT.
15389         (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
15390         scalable for backward compatibility.
15391         (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
15392         (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
15394         * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
15395         syms_of_w32faces.
15397         * makefile.nt (w32faces.obj): Remove.
15398         (xfaces.obj): Add.
15400 2000-03-03  Jason Rumney  <jasonr@gnu.org>
15402         * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
15403         correct parameters.
15405 2000-03-03  Ken Raeburn  <raeburn@gnu.org>
15407         * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
15408         standard ELF definitions here if the system header does not.
15410 2000-03-03  Gerd Moellmann  <gerd@gnu.org>
15412         * xterm.c (PER_CHAR_METRIC): Removed.
15413         (x_per_char_metric_1, x_default_char): New functions.
15414         (x_per_char_metric): If font's default char is invalid, return
15415         metrics of a suitably chosen usable default char.
15416         (x_draw_glyph_string_foreground): If font has an invalid default
15417         char, replace occurrences of unprintable chars with a suitably
15418         chosen usable default char.
15420 2000-03-02  Gerd Moellmann  <gerd@gnu.org>
15422         * xterm.c (note_mouse_highlight): Return quickly if frame's
15423         glyph matrices have been freed.
15425         * dispnew.c (free_glyphs): Block input while freeing matrices.
15427         * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
15429         * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
15430         Use x_free_colors.
15432         * dispextern.h (x_free_colors): Add prototype.
15434         * xfaces.c (x_free_colors): New function.
15435         (unload_color, free_face_colors): Use it.
15437 2000-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
15439         * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
15441         * window.c [MSDOS]: Include msdos.h.
15443 2000-03-02  Dave Love  <fx@gnu.org>
15445         * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
15447         * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
15448         set C_OPTIMIZE_SWITCH for gcc.
15450 2000-03-02  Kenichi Handa  <handa@etl.go.jp>
15452         * coding.c (coding_save_composition): Be sure to allocate
15453         composition data area in coding even if there's no composition in
15454         the current run.
15456 2000-03-01  Jason Rumney  <jasonr@gnu.org>
15458         * w32term.c: Equivalent changes to those made to xterm.c on
15459         2000-02-25 and 2000-02-24.
15461         * w32fns.c: Equivalent changes to those made to xfns.c on
15462         2000-02-25 and 2000-02-21.
15464         * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
15465         correct line-end convention is followed.
15467         * w32menu.c [HAVE_BOXES]: Remove #undef.
15468         (single_keymap_panes): Remove code for simulating checkmarks.
15469         (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
15470         Remove code for drawing simulated checkmarks.
15471         (w32_menu_show): make unibyte help string correctly.
15472         (add_menu_item): draw standard Windows checkmarks. Draw radio
15473         buttons as radio buttons if possible.
15475 2000-03-01  Gerd Moellmann  <gerd@gnu.org>
15477         * sysdep.c (start_of_text): Don't define this function for NetBSD
15478         with ELF.
15480         * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
15481         Don't define.
15482         (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
15483         (LINKER): Don't undef if __NetBSD__ is defined.
15485         * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
15487         * fileio.c [__NetBSD__]: Define `unix'.
15489         * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
15491 2000-02-29  Gerd Moellmann  <gerd@gnu.org>
15493         * atimer.c (start_atimer): Don't abort when timers are stopped.
15494         (append_atimer_lists): New function.
15495         (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
15496         arbitrary lists of stopped and running atimers.
15498         * atimer.c (cancel_atimer): Handle canceling an atimer when
15499         some timers are stopped.
15501         * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
15502         after canceling it.
15504         * fns.c (maybe_resize_hash_table): Handle case of new size
15505         coming out as being the same as old size.
15507 2000-02-27  Jason Rumney  <jasonr@gnu.org>
15509         * makefile.nt: Add atimer.h to dependencies.
15510         * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
15511         * w32console.c: Only disable window system features for dispextern.h
15512         (initialize_w32_display): Build a display info for the console.
15513         * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
15514         * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
15515         WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
15516         as 2 button mice.
15517         * w32gui.h (struct W32FontStruct): Revert last change after change
15518         to xdisp.c.
15519         * w32menu.c (single_submenu): Set up help string.
15520         [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
15521         (w32_dialog_show): Set up help string.
15522         * w32term.c (w32_display_info_for_display): Remove unused function.
15523         (w32_draw_bitmap): Use pre-built bitmaps.
15524         (w32_initialize_display_info): New function to initialize parts of
15525         display info that are common to both GUI and console frames.
15526         (w32_term_init): Use w32_initialize_display_info. Do not set
15527         Vw32_num_mouse_buttons here, as it is not called for console
15528         frames.  Build bitmaps for indicating truncated lines etc.
15529         (x_delete_display): Destroy pre-built bitmaps.
15530         * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
15531         (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
15533 2000-02-27  Dave Love  <fx@gnu.org>
15535         * lisp.h: Add a bunch of prototypes.
15537 2000-02-26  Kenichi Handa  <handa@etl.go.jp>
15539         * keyboard.c (read_char): Set `usec' correctly.
15541 2000-02-25  Miyashita Hisashi  <himi@bird.scphys.kyoto-u.ac.jp>
15543         * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
15544         `lambda', set reg[RRR] to the map index.
15545         (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
15546         reg[RRR] to 0.  Otherwise, set it to -1.
15548 2000-02-25  Gerd Moellmann  <gerd@gnu.org>
15550         * emacs.c (main): Remove code snippet commented out with `//'.
15552 2000-02-25  Richard M. Stallman  <rms@gnu.org>
15554         * fileio.c (Ffile_symlink_p): If result starts with a `/'
15555         and contains a `:', prepend `/:'.
15557         * window.c (select_window_1): If selected_window is nil,
15558         don't "swap out" the buffer's point.
15559         (Fset_window_configuration): Set selected_window to nil
15560         before calling Fselect_window.
15561         (unshow_buffer): Don't set point in buffer from window's point
15562         if another more recently selected window also shows the buffer.
15564 2000-02-25  Gerd Moellmann  <gerd@gnu.org>
15566         * keyboard.c (recursive_edit_1): Cancel busy-cursor.
15568         * xfns.c (inhibit_busy_cursor, busy_count): Removed.
15569         (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
15570         (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
15571         New variables.
15572         (DEFAULT_BUSY_CURSOR_DELAY): New define.
15573         (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
15574         (hide_busy_cursor): New functions.
15575         (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
15577         * minibuf.c (read_minibuf): Cancel busy-cursor.
15579         * keyboard.c (command_loop_1): Call start_busy_cursor before
15580         Fcommand_execute and cancel_busy_cursor after it.
15581         (timer_check): Remove busy-cursor code.
15582         (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
15583         cursor timer.
15585         * process.c (wait_reading_process_input): Remove busy-cursor code.
15587         * eval.c (Fsignal): Call cancel_busy_cursor instead of
15588         Fx_hide_busy_cursor.
15590         * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
15591         Remove prototyoes.
15592         (start_busy_cursor, cancel_busy_cursor): Add prototypes.
15594         * lisp.h (Fx_hide_busy_cursor): Remove prototype.
15596         * xterm.c (XTread_socket): Remove busy-cursor code.
15598         * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
15599         (build_frame_matrix_from_leaf_window): Put code handling
15600         glyph row's not being a slice of a frame row in #if 0.
15601         (sync_window_with_frame_matrix_rows): New function.
15602         (frame_row_to_window): New function.
15603         (mirror_line_dance): Handle copies between windows.
15605         * lread.c (Fload): Use `xfree' instead of `free'.
15606         (init_obarray): Use `xmalloc' instead of `malloc'.
15608         * window.c (Fset_window_buffer): Set WINDOW to the window
15609         after decoding.
15610         (coordinates_in_window): Take frame's internal border width
15611         into account.
15613 2000-02-24  Gerd Moellmann  <gerd@gnu.org>
15615         * xterm.c (x_display_and_set_cursor): Display cursor of
15616         non-selected windows depending on the setting of
15617         cursor_in_non_selected_windows.
15619         * xdisp.c (cursor_in_non_selected_windows): New variable.
15620         (syms_of_xdisp): DEFVAR_BOOL it.
15622 2000-02-23  Gerd Moellmann  <gerd@gnu.org>
15624         * data.c (Fstring_to_number): If number is greater than what
15625         fits into an integer, return a float.
15627         * eval.c (specbind): Remove references to
15628         keyword_symbols_constant_flag.
15630         * data.c (keyword_symbols_constant_flag): Removed.
15631         (Fmakunbound, set_internal, syms_of_data): Remove references to
15632         keyword_symbols_constant_flag.
15634         * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
15636 2000-02-23  Kenichi Handa  <handa@etl.go.jp>
15638         * syntax.c (multibyte_syntax_as_symbol): New variable.
15639         (syms_of_syntax): Declare it as a Lisp variable.
15640         (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
15641         (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
15642         nonzero, treat all multibyte characters as symbol.
15643         (init_syntax_once): Give syntax `word' to all multibyte characters.
15645 2000-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
15647         * frame.c (Fdelete_frame): Don't let echo_area_window remain on
15648         a deleted frame.
15650 2000-02-21  Gerd Moellmann  <gerd@gnu.org>
15652         * frame.c (Fmouse_position): GCPRO retval instead of x and y.
15654         * xfns.c (x_window_to_frame, x_any_window_to_frame)
15655         (x_non_menubar_window_to_frame): Check the busy-cursor window.
15657 2000-02-21  Dave Love  <fx@gnu.org>
15659         * frame.c (Vmouse_position_function): New variable.
15660         (Fmouse_position): Use it.
15661         (syms_of_frame): Install it.
15663         * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
15665 2000-02-20  Gerd Moellmann  <gerd@gnu.org>
15667         * fileio.c (Finsert_file_contents): Unbind the binding of
15668         standard-output done by temp_output_buffer_setup.
15670         * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
15671         Vmocklisp_arguments is nil.  Inline Fcar and Fcdr.
15672         (specbind, unbind_to): Handle most common case of non-constant
15673         symbol with trivial value specially.
15675         * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
15677 2000-02-20  Richard M. Stallman  <rms@gnu.org>
15679         * data.c (Fmake_variable_buffer_local): Doc fix.
15680         Init found_for_buffer to 0.
15681         (Fmake_variable_frame_local): If the variable has already
15682         been buffer-local, set the check_frame field.
15684 2000-02-20  Eli Zaretskii  <eliz@is.elta.co.il>
15686         * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
15687         produced for CODING_MODE_LAST_BLOCK requires.
15689 2000-02-18  Dave Love  <fx@gnu.org>
15691         * keyboard.c (echo_keystrokes): Remove declaration.
15692         (Vecho_keystrokes) New variable.
15693         (read_char, record_menu_key, read_key_sequence): Use it to allow
15694         use of float value.
15695         (syms_of_keyboard): Change Vecho_keystrokes declaration.
15697         * lread.c: Undef feature selection macros before defining.
15699 2000-02-18  Gerd Moellmann  <gerd@gnu.org>
15701         * data.c (let_shadows_buffer_binding_p): Ignore specbindings
15702         for symbols other than the symbol in question.
15704 2000-02-17  Dave Love  <fx@gnu.org>
15706         * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
15708 2000-02-17  Gerd Moellmann  <gerd@gnu.org>
15710         * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
15712         * alloc.c (enum mem_type): Compile unconditionally.
15714 2000-02-17  Eli Zaretskii  <eliz@is.elta.co.il>
15716         * xfaces.c (tty_defined_color): Don't return faulire indication
15717         for unspecified-fg and unspecified-bg pseudo-colors.
15719 2000-02-17  Gerd Moellmann  <gerd@gnu.org>
15721         * alloc.c (mark_object): Don't mark symbol names in pure space.
15722         (gc_sweep): Don't unmark symbol names in pure space.
15724         * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
15725         (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
15726         [GC_MARK_STACK]: New defines.
15727         (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
15728         [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
15730         * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
15732         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
15733         allocate_buffer instead of xmalloc.
15735         * alloc.c (toplevel): Include setjmp.h.
15736         (PURE_POINTER_P): New define.
15737         (enum mem_type) [GC_MARK_STACK]: New enumeration.
15738         (Vdead) [GC_MARK_STACK]: New variable.
15739         (lisp_malloc): Add parameter TYPE, call mem_insert if
15740         GC_MARK_STACK is defined.
15741         (allocate_buffer): New function.
15742         (lisp_free) [GC_MARK_STACK]: Call mem_delete.
15743         (free_float) [GC_MARK_STACK]: Set type to Vdead.
15744         (free_cons) [GC_MARK_STACK]: Set car to Vdead.
15745         (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
15746         (MEM_NIL) [GC_MARK_STACK]: New define.
15747         (struct mem_node) [GC_MARK_STACK]: New structure.
15748         (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
15749         (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
15750         (live_string_p, live_cons_p, live_symbol_p, live_float_p)
15751         (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
15752         (mark_stack) [GC_MARK_STACK]: New functions.
15753         (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
15754         (clear_marks): Removed.
15755         (gc_sweep): Set free conses' car, free floats' type, free
15756         symbols' function to Vdead.  Use lisp_free to free buffers.
15757         (init_alloc_once): Initialize Vdead.
15758         (survives_gc_p): Return non-zero for pure objects.
15760         * alloc.c: Add comments throughout the file.
15762         * atimer.c (stop_other_atimers): Don't call cancel_atimer because
15763         that unblocks alarms.
15765         * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
15766         emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
15767         Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
15769         * frame.c (make_frame): Set frame initiallly to `garbaged'.
15771 2000-02-17  Kenichi Handa  <handa@etl.go.jp>
15773         * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
15774         avoid infinite error signaling.  Allocate sufficient memory for
15775         eol_str in the case that eoltype is Lisp_Int.
15777 2000-02-17  Stefan Monnier  <monnier@cs.yale.edu>
15779         * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
15780         depends on the previous behavior.
15782 2000-02-16  Gerd Moellmann  <gerd@gnu.org>
15784         * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
15786 2000-02-15  Gerd Moellmann  <gerd@gnu.org>
15788         * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
15790         * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
15791         Workaround for FreeBSD bug.  Clear output queue after EAGAIN in
15792         write(2).
15794 2000-02-15  Richard M. Stallman  <rms@gnu.org>
15796         * data.c (set_internal): Don't make variable buffer-local
15797         if within a let-binding for the same buffer.
15798         (let_shadows_buffer_binding_p): New function.
15800         * eval.c (specbind): For buffer-local value,
15801         record the current buffer also.
15802         (unbind_to): Cope with that change.
15804 2000-02-15  Gerd Moellmann  <gerd@gnu.org>
15806         * window.c (Fsave_window_excursion): Doc fix.
15808 2000-02-15  Stefan Monnier  <monnier@cs.yale.edu>
15810         * syntax.c (back_comment): Make sure we only consider comment-starters
15811         of the relevant style and return -1 in case of a failure to find the
15812         beginning of the comment.
15813         (Fforward_comment): If back_comment fails, go back to the position just
15814         after the comment-end.
15815         (scan_lists): Add comment describing a very minor bug.
15817 2000-02-14  Stefan Monnier  <monnier@cs.yale.edu>
15819         * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
15820         `completion-regexp-list' in the docstring.
15822 2000-02-14  Dave Love  <fx@gnu.org>
15824         * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
15826 2000-02-14  Stefan Monnier  <monnier@cs.yale.edu>
15828         * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
15829         to Emacs' syntax.  Also fix the comment about set/not-set meanings
15830         since Emacs syntax is not the value 0 any more.
15831         * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
15832         since it's now part of RE_SYNTAX_EMACS.
15834 2000-02-12  Dave Love  <fx@gnu.org>
15836         * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
15838 2000-02-12  Gerd Moellmann  <gerd@gnu.org>
15840         * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
15842 2000-02-12  Dave Love  <fx@gnu.org>
15844         * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
15846         * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
15847         * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
15848         * s/hpux.h: Don't define HAVE_VFORK.
15850         * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
15852         * s/nextstep.h: Don't define HAVE_ALLOCA.
15854         * config.in: Add vfork bits.
15856 2000-02-12  Gerd Moellmann  <gerd@gnu.org>
15858         * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
15859         unwind function to undo the effect of stopping atimers.
15861         * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
15863         * atimer.c (stopped_atimers): New variable.
15864         (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
15865         New functions.
15867         * atimer.h (stop_other_atimers, run_all_atimers)
15868         (unwind_stop_other_atimers): Add function prototypes.
15870         * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
15872 2000-02-11  Ken Raeburn  <raeburn@gnu.org>
15874         * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
15875         library may depend on jpeg.
15876         (atimer.o): Depends on atimer.c.
15878 2000-02-11  Kenichi Handa  <handa@etl.go.jp>
15880         * insdel.c (del_range_1): Call update_compositions.
15881         (del_range_both): Call update_compositions just once..
15883 2000-02-10  Dave Love  <fx@gnu.org>
15885         * xfns.c (create_frame_xic): Fix initialization of automatic
15886         aggregates for pcc.
15888 2000-02-09  Kenichi Handa  <handa@etl.go.jp>
15890         * ccl.c (CCL_MAKE_CHAR): New macro.
15891         (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
15892         registers by CCL_MAKE_CHAR before calling translate_char.
15893         <CCL_TranslateCharacterConstTbl> Likewise.
15895 2000-02-08  Dave Love  <fx@gnu.org>
15897         * lread.c (__EXTENSIONS__): Define.
15899 2000-02-08  Gerd Moellmann  <gerd@gnu.org>
15901         * puresize.h (BASE_PURESIZE): Increase to 650000.
15903 2000-02-07  Eli Zaretskii  <eliz@is.elta.co.il>
15905         * msdos.c (XMenuActivate): Turn off the cursor after displaying
15906         the help message.
15908 2000-02-07  Eli Zaretskii <eliz@is.elta.co.il>
15910         * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
15911         md, mh, mb, mr, and me to the fake termcap entry.
15913 2000-02-06  Ken Raeburn  <raeburn@gnu.org>
15915         * sound.c (sound_cleanup): Don't call device close routine if the
15916         function pointer is null.
15918 2000-02-06  Andrew Innes  <andrewi@gnu.org>
15920         * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
15921         around image definitions and prototypes.
15922         (gamma_correct) [WINDOWSNT]: New prototype.
15924         * w32term.c (x_make_frame_visible): Replace call to
15925         input_poll_signal with poll_for_input.
15927         * window.c [WINDOWSNT]: Include w32term.h.
15929         * xdisp.c [WINDOWSNT]: Include w32term.h.
15931         * makefile.nt: Add dependencies on w32gui.h.
15932         (OBJ1): Include atimer.obj.
15933         ($(BLD)\atimer.obj): New dependency rule.
15935         * w32.c (sigmask): New function (does nothing).
15936         (sigunblock): Ditto.
15938         * frame.c [WINDOWSNT]: Include w32term.h.
15940         * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
15942         * lread.c (syms_of_lread): Fix literal newlines.
15944         * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
15945         the string constant limit (2048 bytes) in MSVC.
15946         (main): Ditto.
15948 2000-02-05  INOUE Seiichiro <inoue@ainet.or.jp>
15950         * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
15951         (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
15952         (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
15953         dispatch the event.
15955 2000-02-04  Dave Love  <fx@gnu.org>
15957         * fileio.c: Remove some unused vars.
15958         (_GNU_SOURCE): Define (for euidaccess).
15960         * lread.c (_XOPEN_SOURCE): Declare (for ftello).
15962         * minibuf.c (read_minibuf_noninteractive): Remove undeclared
15963         gcpro1, gcpro2.
15964         (read_minibuf): Deal with allow_props correctly.
15966 2000-02-03  Eli Zaretskii  <eliz@is.elta.co.il>
15968         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
15970 2000-02-03  Ken Raeburn  <raeburn@gnu.org>
15972         * search.c (compile_pattern): If a cache entry has a nil regexp,
15973         fill in that entry instead of clobbering a previously cached
15974         string regexp.
15976 2000-02-02  Ken Raeburn  <raeburn@gnu.org>
15978         * puresize.h (BASE_PURESIZE): Increase to 610000.
15980 2000-02-02  Gerd Moellmann  <gerd@gnu.org>
15982         * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
15983         can GC.
15985 2000-02-02  Kenichi Handa  <handa@etl.go.jp>
15987         * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
15988         instead of incrementing ic directly.
15989         <CCL_WriteExprConst> Likewise.
15990         <ccl_set_expr>: Set ic to jump_address.
15992         * fileio.c (e_write): Fix the handling of
15993         CODING_FINISH_INSUFFICIENT_SRC.
15995 2000-02-01  Dave Love  <fx@gnu.org>
15997         * editfns.c (Fpropertize): Doc fix.
15999         * process.c (Fstart_process): Doc fix.
16001         * eval.c: Fix various doc strings not to duplicate information
16002         from help-manyarg-func-alist.
16004         * window.c (Fset_window_margins): Don't make interactive.  Doc fix.
16006         * doc.c (Vhelp_manyarg_func_alist): New variable.
16007         (Fdocumentation): Use it.
16008         (syms_of_doc): Define it.
16010 2000-01-31  Gerd Moellmann  <gerd@gnu.org>
16012         * xterm.c (xim_open_dpy): Remove unused local variable.
16014         * emacs.c (USAGE): Use term `display options' instead of `X options'.
16016         * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
16017         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
16019         * fns.c (sweep_weak_table): New function.
16020         (sweep_weak_hash_tables): Use it.  Keep on marking until there
16021         is no more change.
16023 2000-01-30  Gerd Moellmann  <gerd@gnu.org>
16025         * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
16026         that XTread_socket does not crash by trying to call XNoOp on a
16027         closed display.
16029 2000-01-30  Jason Rumney  <jasonr@gnu.org>
16031         * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
16032         Change selected_frame to SELECTED_FRAME ().
16033         (w32_console_mouse_position): Remove #ifndef MULE from around
16034         `insist' parameter.
16036         * makefile.nt: Remove dosfns.obj.
16038         * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
16040         * w32fns.c (w32_defined_color): Check for valid frame before
16041         applying gamma correction. Eliminate dependency on frame elsewhere.
16042         (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
16043         (w32_to_x_font): Use resx and resy not height_in and width_in.
16044         (x_to_w32_font): Doc fix.
16045         (xlfd_strip_height): New function to strip and return font height.
16046         (w32_font_match): Compare height separately from rest of xlfd
16047         spec, using xlfd_strip_height.
16049         * w32term.c (w32_term_init): Swap resx and height_in, resy and
16050         width_in. Use w32_defined_color in place of defined_color.
16052         * w32faces.c: Merge more of DOS and X specifics in preparation for
16053         merge with xfaces.c.
16054         (defined_color): Remove FIXME comment.
16055         (tty_color_name): Provide w32-specific function.
16056         (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
16058         * w32console.c (turn_on_face, turn_off_face): Removed.
16059         (w32_face_attributes): New function.
16060         (Global_variables): Reduce scope where possible.
16061         (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
16062         fill attribute.
16063         (hl_mode): Don't modify text attributes.
16064         (write_glyphs): Don't do anything if len <= 0. Use
16065         w32_face_attributes to get attributes for drawing. Write
16066         terminating codes using char_attr_normal.
16067         (reset_terminal_modes, set_terminal_modes): Turn off highlight.
16068         (update_begin, update_end): Likewise.
16069         (vga_stdcolor_name): New function.
16070         (initialize_w32_display): Remove char_attr_reverse and char_attr.
16071         (Fset_screen_color): Remove char_attr_reverse.
16073 2000-01-29  Gerd Moellmann  <gerd@gnu.org>
16075         * xfns.c (xic_set_preeditarea): Take window parameter and
16076         window-relative pixel-positions.
16078         * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
16079         is its frame's selected window.
16080         (xim_instantiate_callback): Likewise.
16082         * xfns.c (x_create_im): Removed.
16083         (DEFAULT_STYLE, DEFAULT_FONT): Removed.
16084         (supported_xim_styles): Renamed from supported_styles.
16085         (best_xim_style): Renamed from best_style.
16086         (create_frame_xic): Renamed from xic_create_frame.
16087         (free_frame_xic): Renamed from xic_destroy_frame.
16089 2000-01-29  INOUE Seiichiro <inoue@ainet.or.jp>
16091         * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
16092         our frames, call XFilterEvent with 2nd parameter `None'.
16093         (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
16094         returning XBufferOverflow.
16095         (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
16096         (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
16097         (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
16098         (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
16099         (xim_initialize, xim_close)
16100         [HAVE_X_I18N && HAVE_X11R6]: New functions.
16101         (x_destroy_window) [HAVE_X_I18N]:  Call xic_destroy_frame.
16102         (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
16103         (x_delete_display) [HAVE_X_I18N]: Call xim_close.
16105         * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
16106         and `xim_styles'.
16107         (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
16108         `xic_style' and `xic_xfs'.
16109         (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
16110         (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
16111         (FRAME_XIM): Removed.
16113         * xfns.c (supported_styles): New variable.
16114         (DEFAULT_STYLE, DEFAULT_FONT): New macros
16115         (xic_create_xfontset, best_style, xic_create_frame)
16116         (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
16117         (xic_set_xfontset): New functions.
16119 2000-01-28  Dave Love  <fx@gnu.org>
16121         * s/irix6-5.h: Revert last change after change to irix5-0.h.
16123         * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
16125 2000-01-28  Gerd Moellmann  <gerd@gnu.org>
16127         * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
16128         for *scratch* if it already existed.
16130         * emacs.c (USAGE): New macro.
16131         (main): Use it to display usage information.
16133 2000-01-27  Eli Zaretskii  <eliz@is.elta.co.il>
16135         Support for the menu-help feature:
16137         * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
16139         * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
16140         part of the line to the termscript file.
16141         (IT_clear_to_end): Clear the entire line, not just its beginning.
16142         (menu_help_message, prev_menu_help_message): New variables.
16143         (IT_menu_make_room): Make room for the help_text member.
16144         (IT_menu_display): New argument disp_help; all callers changed.
16145         If disp_help is non-zero, store the help text of the active menu
16146         item in menu_help_message.
16147         (XMenuAddPane): Initialize the help_text member to NULL.
16148         (XMenuAddSelection): New argument help_text.  Store it in the
16149         XMenu structure.
16150         (XMenuActivate): New argument help_callback.  If the value of
16151         menu_help_message has changed since the last time, display the
16152         menu help message text while waiting for the mouse to move.  Clear
16153         the echo area before exiting.
16154         (XMenuDestroy): Free the help_text member.
16156 2000-01-27  Gerd Moellmann  <gerd@gnu.org>
16158         * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
16159         XMenuAddSelection.  Pass help callback to XMenuActivate.
16160         (menu_help_callback) [!USE_X_TOOLKIT]: New function.
16162 2000-01-27  Eli Zaretskii  <eliz@is.elta.co.il>
16164         * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
16165         and EMACS_SET_USECS.
16167 2000-01-26  Dave Love  <fx@gnu.org>
16169         * editfns.c (Fchar_after, Fchar_before): Doc fix.
16171         * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
16172         an error may be signalled.
16174 2000-01-26  Gerd Moellmann  <gerd@gnu.org>
16176         * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
16177         LD_SWITCH_SYSTEM inherited from irix5-0.h.
16179         * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
16181 2000-01-25  Gerd Moellmann  <gerd@gnu.org>
16183         * charset.c (Fstring): If there is a multibyte char among
16184         the args, always return a multibyte string.
16186 2000-01-25  Gerd Moellmann  <gerd@gnu.org>
16188         * sysdep.c (sys_select): Turn atimers off and on instead of
16189         recording and restoring old alarm handler
16191         * process.c (toplevel): Include atimer.h.
16192         (create_process_1): Rewritten.
16193         (create_process): Use atimers instead of alarm.
16194         (wait_reading_process_input) [hpux]: Turn atimers off instead
16195         of turning off SIGALRM.
16196         (wait_reading_process_input): Turn off atimers instead off
16197         calling stop_polling.
16199         * emacs.c (main): Call init_atimer.
16201         * keyboard.c (toplevel): Include systime.h and atimer.h.
16202         (polling_for_input): Removed because unused.
16203         (input_poll_signal) [POLL_FOR_INPUT]: Removed.
16204         (poll_timer): New variable.
16205         (poll_for_input, poll_for_input_1): New functions.
16206         (start_polling, stop_polling): Rewritten.
16208         * keyboard.h (polling_for_input): Removed.
16210         * atimer.h, atimer.c: New files.
16212         * Makefile.in (obj): Add atimer.o.
16213         (atimer.o): New target.
16215         * blockinput.h (pending_atimers): Add extern declaration.
16216         (UNBLOCK_INPUT): Rewritten.  Handle pending atimers.
16218         * lisp.h (popup_activated_flag): Add extern declaration.
16220         * xmenu.c (popup_activated_flag): Make externally visible.
16221         (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
16222         (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
16224         * xterm.c (toplevel): Include atimer.h.
16225         (toolkit_scroll_bar_interaction): New variable.
16226         (Fxt_process_timeouts): Removed.
16227         (x_process_timeouts): New function.
16228         (xt_action_hook): Clear toolkit_scroll_bar_interaction.
16229         (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
16230         (x_make_frame_visible): Call poll_for_input_1 instead of
16231         input_poll_signal.  Don't call alarm.
16232         (x_initialize): Install timer calling x_process_timeouts.
16234 2000-01-24  Dave Love  <fx@gnu.org>
16236         * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
16237         Don't use -cckr -- apparently not now necessary.
16239 2000-01-24  Eli Zaretskii  <eliz@is.elta.co.il>
16241         * msdos.c (IT_menu_display): Truncate long menu lines at the right
16242         screen boundary.
16244 2000-01-23  Jason Rumney  <jasonr@gnu.org>
16246         * w32fns.c (w32_defined_color): Apply gamma correction before
16247         trying to map to the palette.
16248         (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
16249         to w32_clear_rect.
16251         * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
16252         here. Callers changed to always pass real device context.
16253         (w32_draw_bitmap): Likewise.
16254         (w32_get_glyph_overhangs): Likewise.
16255         (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
16256         (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
16257         pfnSetScrollInfo and SetScrollRange.
16258         (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
16259         back into MULE characters after decoding them.
16260         (x_get_glyph_face_and_encoding): Likewise.
16261         (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
16262         GetCharABCWidthsW fails, since this is defined on Windows 9x.
16263         (x_produce_glyphs): Calculate per char metrics for a character
16264         that we know exists in default font when font_not_found_p is true.
16266 2000-01-22  Jason Rumney <jasonr@gnu.org>
16268         * makefile.nt (intervals.obj, composite.obj): New modules.
16269         (composite.h): Added as dependency where appropriate.
16271         * w32gui.h (XGCValue): New struct for emulating X GCs.
16273         * w32term.h (XCharStruct): New struct for emulating X.
16275         * w32console.c (turn_on_face, turn_off_face): New functions.
16276         (change_line_highlight): New prototype for new redisplay.
16277         (write_glyphs): Support multibyte text. Support faces.
16279         * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
16281         * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
16282         throughout. struct frame * in place of FRAME_PTR.
16283         Skeleton support for images, toolbars, tooltips from xfns.c.
16284         (Fx_create_frame): Use system default for default scroll bar width.
16285         (w32_get_arg): Renamed from x_get_arg.
16286         (Fx_file_dialog): New function.
16287         (w32_list_fonts): Check cache before asking system.
16288         (Vw32_enable_synthesized_fonts): New variable.
16289         (Vw32_enable_italics): Obsolete, removed.
16291         * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
16292         Use SELECTED_FRAME macro.
16294         * w32menu.c: Add skeleton support for help strings on menus.
16295         (add_menu_item): Native checkbox and radio support added, but not
16296         yet enabled due to bugs.
16297         (push_menu_item): Add parameters type, selection and help.
16298         Callers updated.
16299         Formatting changes to reduce unnecessary diffs with xmenu.c.
16301         * w32select.c (Fw32_set_clipboard_data): Update call to
16302         find_charset_in_str.
16304         * w32term.c: Complete rewrite for new redisplay based on new
16305         xterm.c with necessary sections merged back in from old w32term.c.
16307 2000-01-21  Richard M. Stallman  <rms@gnu.org>
16309         * data.c (set_internal): Further fix in same criterion.
16311 2000-01-20  Richard M. Stallman  <rms@gnu.org>
16313         * data.c (set_internal): Fix the criteria for whether
16314         to swap out the old cached binding.
16316 2000-01-19  Dave Love  <fx@gnu.org>
16318         * lread.c: (syms_of_lread) [user-init-file]: Doc change.
16320 2000-01-18  Kenichi Handa  <handa@etl.go.jp>
16322         * regex.c (re_compile_fastmap): While checking a range table for
16323         `charset', skip flag bits for a character class correctly.
16325 2000-01-17  Gerd Moellmann  <gerd@gnu.org>
16327         * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
16329         * xfns.c (x_window): Call lw_create_widget with new parameter list.
16331         * widget.c (EmacsFrameSetCharSize): Change size of children first
16332         because of problems with main window geometry management under Lesstif.
16334         * xmenu.c (enum menu_item_idx): New enumeration replacing defines
16335         MENU_ITEMS_ITEM_.*.
16336         (MENU_ITEMS_ITEM_HELP): New enumerator.
16337         (push_menu_item): Add parameter HELP.  Record help in menu_items.
16338         (single_menu_item, single_submenu, list_of_items): Call
16339         push_menu_item with new parameter.
16340         (single_submenu): Set help string in widget value.
16341         (menu_highlight_callback): New function.
16342         (set_frame_menubar): Call lw_create_widget with new
16343         parameter list.
16344         (xmenu_show, xdialog_show): Ditto.
16346 2000-01-13  Gerd Moellmann  <gerd@gnu.org>
16348         * sound.c (Fplay_sound): Improve doc string.
16350 2000-01-11  Richard M. Stallman  <rms@gnu.org>
16352         * lisp.h (set_internal): Enter the new arg.
16354         * eval.c (specbind): Record buffer-local variables specially,
16355         indicating which buffer's binding was saved.
16356         (unbind_to): Restore buffer-local variables specially
16357         in the proper buffer.
16359         * data.c (set_internal): New arg BUF.
16361         * eval.c (specbind, unbind_to): Pass new arg to set_internal.
16362         * data.c (Fset): Pass new arg to set_internal.
16363         * bytecode.c (Fbyte_code): Pass new arg to set_internal.
16365 2000-01-11  Gerd Moellmann  <gerd@gnu.org>
16367         * .gdbinit: Adapt to new strings.  Add xbacktrace, xreload, xprintsym.
16369 2000-01-11  Richard M. Stallman  <rms@gnu.org>
16371         * minibuf.c (Ftry_completion): Doc fix.
16373 2000-01-11  Gerd Moellmann  <gerd@gnu.org>
16375         * keyboard.c (Fclear_this_command_keys): Clear recent_keys
16376         vector, too.
16378 2000-01-11  Andreas Schwab  <schwab@suse.de>
16380         * coding.c (code_convert_region): Initialize total_skip.
16382 2000-01-08  Dave Love  <fx@gnu.org>
16384         * eval.c (Fuser_variable_p): Check customizability too.
16386 2000-01-07  Gerd Moellmann  <gerd@gnu.org>
16388         * minibuf.c (Fcompleting_read): Doc fix.
16390 2000-01-05  Gerd Moellmann  <gerd@gnu.org>
16392         * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
16393         -L /usr/local/lib.
16395         * xfns.c (x_create_im): New function to set IM and IC of a frame.
16396         Check that input style is supported before trying to create an
16397         IC for it.
16398         (x_window): Call x_create_im.
16400 2000-01-04  Gerd Moellmann  <gerd@gnu.org>
16402         * xfns.c (current_gif_memory_src): New variable.
16403         (gif_load): Record the address of the current memory source
16404         in current_gif_memory_src.
16405         (gif_read_from_memory): Use current_gif_memory_src.
16407         * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
16408         macros statement form.
16410         * sound.c (struct sound): Renamed from struct sound_file.
16411         (struct sound): Add members `data' and `header_size'.
16412         (enum sound_attr): Add SOUND_DATA.
16413         (current_sound, current_sound_device): Variables renamed from
16414         sound_file and sound_device.
16415         (parse_sound): Parse :data.
16416         (parse_sound): Handle sound data in strings.
16417         (find_sound_type): Function renamed from find_sound_file_type.
16418         (wav_init, au_init): Fail if sound's header_size is smaller than
16419         needed header size.
16420         (wav_play, au_play): Play sounds from string data.
16422         * puresize.h (BASE_PURE_SIZE): Increase to 600000.
16424         * lisp.h: Add prototype for allocate_string_data.
16426         * alloc.c (Fgarbage_collect): Return number of live and free strings.
16428         * alloc.c (mark_buffer): Remove code in #if 0.
16429         (gc_sweep): Ditto.
16430         (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
16431         (strings_consed): New variable.
16432         (allocate_string): Set it.
16433         (syms_of_alloc): Add DEFVAR_INT for strings_consed.
16434         (Fmemory_use_counts): Return strings_consed.  Use Flist.
16436         * alloc.c: General cleanup in comments etc.  Remove conditional
16437         compilation for `standalone'.
16439         * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
16441         * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
16442         (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
16443         (DONT_COPY_FLAG): Removed.
16444         (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
16445         (struct sdata, struct sblock): New
16446         (struct string_block): Rewritten.
16447         (STRINGS_IN_STRING_BLOCK): New macro.
16448         (oldest_sblock, current_sblock, total_strings, total_free_strings)
16449         (large_sblocks, string_blocks, string_free_list): New variables.
16450         (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
16451         (init_strings): Rewritten.
16452         (allocate_string, allocate_string_data, compact_small_strings)
16453         (free_large_strings, sweep_strings): New functions.
16454         (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
16455         (struct string_block_head, current_string_block)
16456         (first_string_block, large_string_blocks, STRING_FULLSIZE)
16457         (STRING_PAD): Removed.
16458         (make_uninit_multibyte_string, make_pure_string): Rewritten.
16459         (Fgarbage_collect): Don't set mark bit in large strings.
16460         (mark_object): Mark strings differently.  Mark symbol names
16461         differently.
16462         (survives_gc_p): Test marked strings differently.
16463         (gc_sweep): Sweep strings differently, unmark strings in
16464         symbol names.
16465         (compact_strings): Removed.
16467 2000-01-04  Eli Zaretskii  <eliz@is.elta.co.il>
16469         * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
16470         Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
16472 2000-01-04  Kenichi Handa  <handa@etl.go.jp>
16474         * fileio.c (Finsert_file_contents): Signal error if visiting file
16475         in a non-empty buffer.
16477         * term.c (encode_terminal_code): Fix the previous change.
16479 2000-01-03  Gerd Moellmann  <gerd@gnu.org>
16481         * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
16482         Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
16484         * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
16486 2000-01-03  Eli Zaretskii  <eliz@is.elta.co.il>
16488         * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
16489         need to test for MSDOS frames.
16491 2000-01-03  Eli Zaretskii  <eliz@is.elta.co.il>
16493         * dosfns.c (unspecified_colors): Remove.
16494         (msdos_stdcolor_idx): Use global variables unspecified_fg and
16495         unspecified_bg.
16496         (msdos_stdcolor_name): Return strings for unspecified fore- and
16497         back-ground colors.
16499         * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
16500         (syms_of_xfaces): Remove their staticpro's.
16501         (tty_color_name): Return Lisp strings for unspecified fore- and
16502         back-ground colors.
16503         (Finternal_set_lisp_face_attribute): Remove the special treatment
16504         for Qunspecified_{f,b}g.
16505         (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
16507 2000-01-03  Gerd Moellmann  <gerd@gnu.org>
16509         * xdisp.c (reseat_at_next_visible_line_start): Position before
16510         newline only if ending up on a newline.
16511         (next_element_from_ellipsis): Return success.  Handle case of
16512         displaying no ellipsis.  Fix case of ellipsis defined in display table.
16513         (next_element_from_buffer): Return 0 if next_element_from_ellipsis
16514         returns 0.
16516 2000-01-03  Eli Zaretskii  <eliz@is.elta.co.il>
16518         * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
16519         (Fcolor_supported_p): Renamed from face-color-supported-p.
16521 2000-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
16523         * xfaces.c (tty_defined_color): Pass frame to tty-color-desc.  The
16524         list of colors renamed to tty-defined-color-alist.
16525         (tty_color_name): Pass the frame to tty-color-by-index.
16526         (realize_tty_face): tty-color-alist is now a function which
16527         accepts the frame as argument.
16529         * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
16531 2000-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
16533         * term.c (insert_glyphs): Pass glyph, not &glyph, to
16534         encode_terminal_code.
16536 2000-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
16538         * dispnew.c (mode_line_string): Support termcap frames as well.
16540 2000-01-01  Gerd Moellmann  <gerd@gnu.org>
16542         * syntax.c (Fforward_word): Undo previous change.
16544         * editfns.c (Fconstrain_to_field): Don't constrain if
16545         inhibit-field-text-motion is non-nil.
16546         (Fline_beginning_position): Undo previous change.
16547         (Fline_end_position): Ditto.
16549         * syntax.c (Fforward_word): Notice field boundaries only if
16550         inhibit-field-text-motion is nil.
16552         * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
16554         * editfns.c (Vinhibit_field_text_motion): New variable.
16555         (inhibit-field-text-motion): New DEFVAR_LISP.
16556         (Fline_beginning_position, Fline_end_position): Notice field
16557         boundaries only if inhibit-field-text-motion is nil.
16559         * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
16560         All calls adjusted.
16561         (x_build_heuristic_mask): Likewise.
16562         (xbm_load_image_from_file): Change error output.
16563         (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
16564         (gif_load, gs_load, x_kill_gs_process): Ditto.
16566         * xfns.c (gif_load): Avoid sign extension and thus out of bounds
16567         color indices when accessing raster pixels.
16568         (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
16569         one of :file or :data.
16570         (enum pbm_keyword_index): Add PBM_DATA.
16571         (pbm_format): Add :data.
16572         (pbm_image_p): Allow either :file or :data.
16573         (pbm_read_file): New function.
16574         (pbm_scan_number): Rewritten to read from string.
16575         (pbm_load): Support :data.
16577 See ChangeLog.8 for earlier changes.
16579 ;; Local Variables:
16580 ;; coding: iso-2022-7bit
16581 ;; End:
16583     Copyright (C) 2001 Free Software Foundation, Inc.
16584   Copying and distribution of this file, with or without modification,
16585   are permitted provided the copyright notice and this notice are preserved.