(coding_inherit_eol_type)
[bpt/emacs.git] / src / ChangeLog
CommitLineData
b74e4686
DL
12002-05-09 Dave Love <fx@gnu.org>
2
3 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
4
5 * dispextern.h (generate_ascii_font): Fix return type.
6
7 * xfaces.c (generate_ascii_font): Fix arg declaration.
8
9 * coding.c (coding_inherit_eol_type)
10 (Fset_terminal_coding_system_internal)
11 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
12
8efbba21
KH
132002-05-08 Kenichi Handa <handa@etl.go.jp>
14
15 * coding.c (decode_coding_charset, encode_coding_charset): Handle
16 multiple charsets correctly.
17
1a0c5ca9
KH
182002-05-07 Kenichi Handa <handa@etl.go.jp>
19
e4ac8240
KH
20 * search.c (boyer_moore): Fix handling of mulitbyte character
21 translation.
22
1a0c5ca9
KH
23 * xdisp.c (display_mode_element): When the variable `elt' is
24 changed, update `this' and `lisp_string'.
25
3d79abfb
KH
262002-05-07 Kenichi Handa <handa@etl.go.jp>
27
28 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
29
30 * callproc.c (Fcall_process): Be sure to give the current buffer
31 to decode_coding_c_string. Update PT and PT_BYTE after the
32 insertion.
33
34 * charset.c (struct charset_map_entries): New struct.
35 (load_charset_map): Renamed from parse_charset_map. New args
36 entries and n_entries. Caller changed.
37 (load_charset_map_from_file): Renamed from load_charset_map.
38 Caller changed. New arg control_flag. Call load_charset_map at
39 the tail.
40 (load_charset_map_from_vector): New function.
41 (Fdefine_charset_internal): Setup charset.compact_codes_p.
42 (encode_char): If the charset is compact, change a character index
43 to a code point.
44
45 * coding.c (coding_alloc_by_making_gap): Check the case that the
46 source and destination are the same correctly.
47 (decode_coding_raw_text): Set coding->consumed_char and
48 coding->consumed to 0.
49 (produce_chars): If coding->chars_at_source is nonzero, update
50 coding->consumed_char and coding->consumed before calling
51 alloc_destination.
52 (Fdefine_coding_system_alias): Register ALIAS in
53 Vcoding_system_alist.
54 (syms_of_coding): Define `no-convesion' coding system at the tail.
55
56 * fileio.c (Finsert_file_contents): Set coding_system instead of
57 val. If the current buffer is multibyte, always call
58 decode_coding_gap.
59
60 * xfaces.c (try_font_list): Give higher priority to fontset's
61 family than face's family.
62
632002-04-18 Kenichi Handa <handa@etl.go.jp>
64
65 * callproc.c (Fcall_process): Be sure to give the current buffer
66 to decode_coding_c_string.
67
68 * xfaces.c (try_font_list): Give a family specified in a fontset
69 higher priority than a family specified in a face.
70
6a709baf
KH
712002-04-09 Kenichi Handa <handa@etl.go.jp>
72
73 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
74 Fix arguments to insert_from_buffer.
75
76 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
77
85779cf5
KH
782002-03-11 Kenichi Handa <handa@etl.go.jp>
79
80 * coding.c (produce_chars): Set the variable `multibytep' correctly.
81 (decode_coding_gap): Set coding->dst_multibyte correctly.
82
ed9d8bda
KH
832002-03-07 Kenichi Handa <handa@etl.go.jp>
84
ed9d8bda
KH
85 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
86 (decode_coding_utf_16): Fix converting high and low bytes to
87 code-point.
88 (encode_coding_utf_16): Substitute coding->default_char for
89 non-Unicode characters.
90 (decode_coding): Don't call record_insert here.
91 (setup_coding_system): Initialize `surrogate' of
92 coding->spec.utf_16 to 0.
93 (EMIT_ONE_BYTE): Fix for multibyte case.
94
dd6d5c01
KH
95 * insdel.c (insert_from_gap): Call record_insert.
96
3e4abc9e
KH
972002-03-04 Kenichi Handa <handa@etl.go.jp>
98
99 * casefiddle.c (casify_region): Fix multibyte case.
100
101 * character.c (c_string_width): Add return type `int'.
102 (char_string_with_unification): Arg ADVANCED deleted.
103
104 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
105 (CHAR_STRING): Adjusted for the change of
106 char_string_with_unification.
107 (CHAR_STRING_ADVANCE): Make it do-while statement.
108
109 * chartab.c (sub_char_table_set_range): Optimized for the case
110 DEPTH == 3. Add workaround code for a GCC optimization bug.
111
85779cf5
KH
112 * charset.c (parse_charset_map): Remove an unused variable.
113
3e4abc9e
KH
114 * coding.c: Delete unused variables.
115
116 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
117 earlier. If inserted is zero and the coding system doesn't
118 require flushing, don't call decode_coding_gap.
119
120 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
121
222b0630
KH
1222002-03-01 Kenichi Handa <handa@etl.go.jp>
123
124 The following changes are for using Unicode as an internal
125 character model, and use UTF-8 format for buffer/string
126 representation.
127
128 * .gdbinit (xchartable): Adjusted for the change of char table
129 structure.
130 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
131
132 * Makefile.in (obj): Add character.o and chartab.o.
133 (lisp, shortlisp): Remove utf-8.elc:
134 (*.o): For many files, change dependency on charset.h to
135 character.h, and add dependency on character.h.
136 (character.o, chartab.o): New targets.
137
138 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c,
139 doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c,
140 w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
141 of "charset.h".
142
143 * dired.c, filelock.c: Include "character.h".
144
145 * alloc.c: Include "character.h" instead of "charset.h".
146 (Fmake_char_table): Moved to chartab.c.
147 (make_sub_char_table): Likewise.
148 (syms_of_alloc): Remove defsubr for Smake_char_table.
149
150 * buffer.c: Include "character.h" instead of "charset.h", don't
151 include "coding.h".
152 (Fset_buffer_multibyte): Adjuted for UTF-8.
153
154 * buffer.h: EXFUN Fbuffer_live_p.
155
156 * callproc.c: Include "character.h" instead of "charset.h".
157 (Fcall_process): Big change for the new code-conversion APIs.
158
159 * casetab.c: Include "character.h" instead of "charset.h".
160 (set_canon, set_identity, shuffle): Adjusted for the new
161 map_char_table spec.
162 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
163 accessing the char table structure.
164
165 * chartab.c: New file that implements char table.
166
167 * category.c: Include "character.h".
168 (copy_category_entry): New function.
169 (copy_category_table): Call map_char_table and copy_category_entry.
170 (Fmake_category_table): Initialize all top-vel slots.
171 (char_category_set): New function.
172 (modify_lower_category_set): Deleted.
173 (Fmodify_category_entry): Call char_table_ref_and_range.
174
175 * category.h (CATEGORY_SET): Just call char_category_set.
176
177 * ccl.c: Include "character.h".
178 (Qccl, Qcclp): New variables.
179 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
180 it's less than 256.
181 (CCL_WRITE_MULTIBYTE_CHAR): Deleted.
182 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjusted for the change of SRC
183 and DST type.
184 (ccl_driver): Types of arguments changed. Code adjusted for that.
185 (Fccl_execute, Fccl_execute_on_string): Adjusted for the change of
186 ccl_driver.
187 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
188
189 * ccl.h (struct ccl_program): Members eol_type and multibyte
190 deleted. New members src_multibyte, dst_multibyte, consumed, and
191 produced.
192 (struct ccl_spec): Members decoder and encoder deleted. New
193 memeber ccl.
194 (CODING_SPEC_CCL_PROGRAM): New macro.
195 (ccl_driver): Prototype updated.
196 (Qccl, Qcclp, Fccl_program_p): Extern them.
197 (CHECK_CCL_PROGRAM): New macro.
198
199 * character.c, character.h, chartab.c: New files.
200
201 * charset.c: Mostly re-written. Character and multibyte sequence
202 handling codes are moved to character.c.
203
204 * charset.h: Mostly re-written. Character and multibyte sequence
205 handling codes are moved to character.h.
206
207 * coding.c, coding.h: Mostly re-written.
208
209 * composite.c: Include "character.h" instead of "charset.h".
210 (CHAR_WIDTH): Moved to character.h.
211 (HASH_KEY, HASH_VALUE): Deleted.
212
213 * composite.h (enum composition_method): Order of enumeration
214 symbols changed.
215
216 * data.c: Include "character.h" instead of "charset.h".
217 (Faref): Call CHAR_TABLE_REF for a char table.
218 (Faset): Call CHAR_TABLE_SET for a char table.
219
220 * dispextern.h (free_realized_face, check_face_attribytes,
221 generate_ascii_font): Extern them.
222 (free_realized_multibyte_face): Extern deleted.
223
224 * disptab.h (DISP_CHAR_VECTOR): Adjusted for the change of char
225 table structure.
226
227 * editfns.c: Include "character.h" instead of "charset.h".
228 (Fchar_to_string): Always call CHAR_STRING.
229
230 * emacs.c (main): Call init_charset_once, init_charset,
231 syms_of_chartab, and syms_of_character.
232
233 * fileio.c: Include "character.h" instead of "charset.h".
234 (Finsert_file_contents): Big change for the new code-conversion
235 API.
236 (choose_write_coding_system): Likewise.
237 (Fwrite_region): Likewise.
238 (build_annotations_2): Deleted.
239 (e_write): Big change for the new code-conversion API.
240
241 * fns.c: Include "character.h" instead of "charset.h".
242 (copy_sub_char_table): Moved to chartab.c.
243 (Fcopy_sequence): Call copy_char_table for a char table.
244 (concat): Delete codes calling count_multibyte.
245 (string_char_to_byte): Adjusted for the new multibyte form.
246 (string_byte_to_char): Likewise.
247 (internal_equal): Adjusted for the change of char table structure.
248 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent,
249 Fchar_table_extra_slot, Fset_char_table_extra_slot,
250 Fchar_table_range, Fset_char_table_range, Fset_char_table_default,
251 char_table_translate, optimize_sub_char_table,
252 Foptimize_char_table, map_char_table, Fmap_char_table): Moved to
253 chartab.c.
254 (char_table_ref_and_index): Deleted.
255 (HASH_KEY, HASH_VALUE): Moved to lisp.h.
256 (Fmd5): Call preferred_coding_system instead of accessing
257 Vcoding_category_list. Adjusted for the new code-conversion API.
258 (syms_of_fns): Defsubr for char table related functions moved to
259 chartab.c.
260
261 * fontset.c: Mostly re-written.
262
263 * fontset.h (struct font_info): Type of the member encoding_type
264 changed.
265 (enum FONT_SPEC_INDEX): New enum.
266 (fontset_font_pattern, fs_load_font): Prototype updated.
267 (FS_LOAD_FONT): Adjusted for the change of fs_load_font.
268
269 * indent.c: Include "character.h" instead of "charset.h".
270 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of
271 WIDTH_BY_CHAR_HEAD.
272
273 * insdel.c: Include "character.h" instead of "charset.h".
274 (copy_text): Don't refer to Vnonascii_translation_table.
275 (insert_from_gap): New function.
276
277 * keyboard.c: Include "character.h" instead of "charset.h".
278 (command_loop_1): Never call direct_output_forward_char before
279 a non-ASCII character.
280 (read_char): If Vkeyboard_translate_table is a char table, always
281 translated a character.
282
283 * keymap.c: Include "character.h".
284 (store_in_keymap): Handle the case that IDX is a cons.
285 (Fdefine_key): Handle the case that KEY is a cons and the car part
286 is also a cons (range).
287 (push_key_description): Adjusted for the new character code.
288 (describe_vector): Call describe_char_table for a char table.
289 (describe_char_table): New function.
290
291 * keymap.h (describe_char_table): Extern it.
292
293 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
294 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
295 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS,
296 SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
297 Deleted.
298 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjusted for the new char table
299 structure.
300 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
301 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2,
302 CHARTAB_SIZE_BITS_3): New macros.
303 (chartab_size): Extern it.
304 (struct Lisp_Char_Table): Re-designed.
305 (struct Lisp_Sub_Char_Table): New structure.
306 (HASH_KEY, HASH_VALUE): Moved from fns.c.
307 (CHARACTERBITS): Defined as 22.
308 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the above change.
309 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
310 (GC_SUB_CHAR_TABLE_P): New macro.
311 (Fencode_coding_string, Fdecode_coding_string): EXFUN Updated.
312 (code_convert_string_norecord): Extern deleted.
313 (init_character_once, syms_of_character, init_charset,
314 syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
315
316 * lread.c: Include "character.h".
317 (read_multibyte): New arg NBYTES.
318 (read_escape): The meaning of returned *BYTEREP changed.
319 (to_multibyte): Deleted.
320 (read1): Adjuted the handling of char table and string.
321
322 * print.c: Include "character.h" instead of "charset.h".
323 (print_string): Convert 8-bit raw bytes to octal form by
324 string_escape_byte8.
325 (print_object): Adjusted for the new multibyte form. Print 8-bit
326 raw bytes always in octal form. Handle sub char table correctly.
327
328 * process.c: Include "character.h" instead of "charset.h".
329 (read_process_output): Adjusted for the new code-conversion API.
330 (send_process): Likewise.
331
332 * puresize.h (BASE_PURESIZE): Increased.
333
334 * regex.c: Include "character.h" instead of "charset.h".
335 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
336 (regex_compile): Accept a range whose starting and ending
337 character have different leading bytes.
338 (analyse_first): Adjusted for the above change.
339
340 * search.c: Include "character.h" instead of "charset.h".
341 (search_buffer, boyer_moore): Adjusted for the new multibyte form.
342 (Freplace_match): Adjusted for the change of
343 multibyte_char_to_unibyte.
344
345 * syntax.c: Include "character.h" instead of "charset.h".
346 (syntax_parent_lookup): Deleted.
347 (Fmodify_syntax_entry): Accept a cons as CHAR.
348 (skip_chars): Adjusted for the new multibyte form.
349 (init_syntax_once): Call char_table_set_range instead of directly
350 accessing the structure of a char table.
351
352 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
353 (SYNTAX_ENTRY_FOLLOW_PARENT): Macro deleted.
354 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
355 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
356
357 * term.c: Include "buffer.h" and "character.h".
358 (encode_terminal_code): Adjusted for the new code-conversion API.
359 (write_glyphs): Likewise.
360 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
361
362 * w32term.c (x_new_font): Adjusted for the change of FS_LOAD_FONT.
363
364 * xdisp.c: Include "character.h".
365 (get_next_display_element): Adjusted for the new multibyte form.
366 (disp_char_vector): Adjusted for the new char table structure.
367 (decode_mode_spec_coding): Adjusted for the new structure of
368 coding system.
369 (decode_mode_spec): Adjusted for the new code-conversion API.
370
371 * xfaces.c: Include "character.h" instead of "charset.h".
372 (load_face_font): Adjusted for the change of choose_face_font and
373 FS_LOAD_FONT.
374 (generate_ascii_font): New function.
375 (set_lface_from_font_name): Adjusted for the change of
376 FS_LOAD_FONT.
377 (set_font_frame_param): Adjusted for the change of
378 choose_face_font.
379 (free_realized_face): Make it public.
380 (free_realized_faces_for_fontset): Renamed from
381 free_realized_multibyte_face. Free also faces realized for ASCII.
382 (choose_face_font): Argments changed. Adjusted for the change of
383 fontset_font_pattern and FS_LOAD_FONT.
384
385 * xfns.c: Include "character.h".
386 (x_encode_text): Adjusted for the new code-conversion API.
387
6f337974
KH
388 * xselect.c: Don't include "charset.h".
389 (selection_data_to_lisp_data): Adjusted for the new code
390 covnersion API.
391
8a78c965
KH
392 * xterm.c: Include "character.h".
393 (x_encode_char): New argument CHARSET. Caller changed.
394 (x_get_char_face_and_encoding): Call ENCODE_CHAR instead of
395 SPLIT_CHAR.
396 (x_get_glyph_face_and_encoding): Likewise.
397 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
398 CHAR_WIDTH instead of CHARSET_WIDTH.
399 (XTread_socket): Adjusted for the new code-conversion API.
400 (x_new_font): Adjusted for the change of FS_LOAD_FONT.
401 (x_load_font): Adjusted for the change of struct font.
402
beb0acdf
KS
4032002-02-26 Kim F. Storm <storm@cua.dk>
404
405 The following changes add a new Vminibuf_selected_window variable
406 which is similar to Vminibuf_scroll_window, but which is only set
407 on entry to the minibuffer (from a non-minibuffer window):
408
409 * window.c: (Vminibuf_selected_window): New variable.
410 (struct save_window_data): New member minibuf_selected_window.
411 (Fset_window_configuration): Restore Vminibuf_selected_window.
412 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
413 Set minibuf_scroll_window member to nil if minibuf_level is 0.
414 (compare_window_configurations): Compare minibuf_selected_window.
415
416 * window.h: (Vminibuf_selected_window): Declare extern.
417
418 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
419 entry to minibuffer or on entry from a non-minibuffer window.
420
421 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
422 Vminibuf_selected_window instead of Vminibuf_scroll_window.
423
424 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
425 instead of Vminibuf_scroll_window when deciding in which window
426 the region should be highlighted. Consequently, the region remains
427 highlighteded even when a completion buffer is also displayed.
428
3dfdc066
EZ
4292002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
430
b135bd4c
EZ
431 * fileio.c (Fsubstitute_in_file_name): Fix the change from
432 2002-02-08.
433
3dfdc066
EZ
434 * xselect.c (Qcompound_text_with_extensions): Renamed from
435 Qcompound_text_no_extensions.
436 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
437
804d894a
JB
4382002-02-26 Juanma Barranquero <lektu@terra.es>
439
440 * w32proc.c (syms_of_ntproc): Doc fix.
441
e4ac8240 4422002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0277b535
PJ
443
444 * intervals.h: Include "dispextern.h" unconditionally.
445
1f1bce0e
JR
4462002-02-24 Jason Rumney <jasonr@gnu.org>
447
448 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
449 and disp-table.elc.
82a399d2 450 (lisp): Add emacs-lisp/backquote.elc.
1f1bce0e 451
5f245371
KS
4522002-02-24 Kim F. Storm <storm@cua.dk>
453
454 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
455 The validation of the event type was too strict as it didn't
456 allow string events; buffer names are used in bindings for
457 menu-bar-select-buffer (see `menu-bar-update-buffers').
458
b66bc4a4 4592002-02-23 Kim F. Storm <storm@cua.dk>
a34cb674
KS
460
461 The following changes rework my patch of 2002-02-06 which
462 added command remapping by entering the commands directly into
463 the keymaps. Now, command remapping uses an explicit `remap'
464 prefix in the keymaps, i.e. [remap COMMAND].
465
466 * keymap.c (Qremap, remap_command_vector): New variables.
467 (is_command_symbol): Removed function.
468 (Fdefine_key): No longer accept a symbol for KEY. Added
469 validation of [remap COMMAND] argument for KEY. The DEF is no
470 longer required to be a symbol when remapping a command.
471 (Fremap_command): New function to remap command through keymaps.
472 (Flookup_key): Perform command remapping initiated by
473 Fremap_command directly for speed.
474 (Fkey_binding): Use Fremap_command for command remapping.
475 (where_is_internal): Handle new command remapping representation.
476 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
477 staticpro them. Defsubr Fremap_command.
478
479 * keymap.h (Fremap_command): Declare extern.
480 (is_command_symbol): Remove extern.
481
482 * keyboard.c (command_loop_1): Use Fremap_command for command
483 remapping; now try command remapping for all symbols.
484
f227fded
EZ
4852002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
486
487 * coding.h (run_pre_post_conversion_on_str): Add prototype.
488
54a0c8a6
JR
4892002-02-23 Jason Rumney <jasonr@gnu.org>
490
491 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
492 on the string before encoding it.
493 (Fw32_get_clipboard_data): Run post-read-conversion on the string
494 after decoding it.
495
496 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
497
e4ac8240 4982002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
042c33d3
PJ
499
500 * w32term.c (enter_timestamp): Remove unused static variable to
501 prevent warning.
502
503 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
504
b72d9870
EZ
5052002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
506
507 * w16select.c (Fw16_get_clipboard_data): Fix last change.
508
509 * xselect.c (selection_data_to_lisp_data): Fix last change.
510
48094ace
JR
5112002-02-22 Jason Rumney <jasonr@gnu.org>
512
513 * w32term.h (struct w32_output): New member menu_command_in_progress.
514
515 * w32menu.c (menubar_selection_callback): Free the menu and
516 clear the menu_command_in_progress flag.
517
518 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
519 (menu_free_timer): New variable.
520 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
521 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
522 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
523 menu command is in progress.
524 <WM_COMMAND>: Set the menu_command_in_progress flag. Kill
525 any menu_free_timer that is running.
526
527 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
528 Call ExtTextOutA rather than ExtTextOut.
529
9feba281
EZ
5302002-02-22 Eli Zaretskii <eliz@gnu.org>
531
532 * puresize.h (BASE_PURESIZE): Increase to 755000.
533
3276b4fe
EZ
5342002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
535
536 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
537 on the string before encoding it.
538 (Fw16_get_clipboard_data): Run post-read-conversion on the string
539 after decoding it.
540
fbbe0ace
EZ
5412002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
542
543 Support for ICCCM Extended Segments in X selections:
544
23e16093 545 * xselect.c <Qcompound_text_no_extensions>: New variable.
fbbe0ace
EZ
546 (syms_of_xselect): Intern and staticpro it.
547 (selection_data_to_lisp_data): Run post-read-conversion on decoded
548 selection text.
549 (lisp_data_to_selection_data): If next-selection-coding-system is
23e16093 550 compound-text-no-extensions, set the type of selection to be
fbbe0ace
EZ
551 compound-text.
552
553 * xterm.h (x_encode_text): Update prototype.
554
555 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
556 callers changed. If SELECTIONP is non-zero, run the
557 pre-write-conversion function before encoding the selection text.
558
2a28d471
KS
5592002-02-21 Kim F. Storm <storm@cua.dk>
560
561 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15fdc2e3
KS
562
563 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]: Corrected
564 composing of language-change event.
565
9de46181
KS
5662002-02-20 Kim F. Storm <storm@cua.dk>
567
568 * keyboard.c (menu_bar_items): Don't include keymap or local-map
569 bindings at PT when building menu (the menu is not updated often
570 enough for this to work reliable).
571 (tool_bar_items): Likewise.
572 (current_active_maps): Removed unused (and buggy) function.
573
e4ac8240 5742002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c7f07c4c
PJ
575
576 * xfns.c (gif_load): Use correct width and height for GIF images.
577
f8565280
EZ
5782002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
579
580 * floatfns.c (Fatan): Accept an optional second arg and call
581 atan2 if passed 2 args.
582
5be86f54
JR
5832002-02-18 Jason Rumney <jasonr@gnu.org>
584
585 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
586
f7b9d4d1
JR
5872002-02-17 Jason Rumney <jasonr@gnu.org>
588
589 * w32term.c (x_autoselect_window_p): New variable.
590 (syms_of_w32term): DEFVAR_BOOL and initialize it.
591 (note_mouse_movement): Use it.
592
593 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
594
595 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
596
597 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
598 New variables.
599 (syms_of_w32fns): Intern and staticpro them.
600 (x_frame_parms) <"fullscreen">: New parameter.
601 (x_fullscreen_move, x_set_fullscreen): New functions.
602 (x_set_frame_parameters): Support Qfullscreen.
603 (x_real_positions): Save x/y_pixels_diff frame params.
604 (x_figure_window_size): Support full-screen frames.
605 (Fx_create_frame): Default the fullscreen parameter.
606
607 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
608 (x_fullscreen_adjust): New functions.
609 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
610 fullscreen. Call x_check_fullscreen_move, and set the
611 want_fullscreen member of output_data.w32
612 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
613
614 * w32term.h: New enum for FULLSCREEN_* constants.
615 (struct w32_output): New members want_fullscreen, x_pixels_diff,
616 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
617 (x-fullscreen-adjust): New prototype.
618
ce16e8d9
KS
6192002-02-17 Kim F. Storm <storm@cua.dk>
620
621 * frame.c: (Vmouse_highlight): New variable.
622 (syms_of_frame): DEFVAR_LISP it.
623
624 * frame.h: (Vmouse_highlight): Declare extern.
625
626 * xterm.h (struct x_display_info): Add mouse_face_hidden.
627
628 * xterm.c (disable_mouse_highlight): Removed variable.
629 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
630 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
631 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
632 and on after keyboard input.
633 (x_term_init): Initialize mouse_face_hidden.
634
635 * msdos.h (struct display_info): Add mouse_face_hidden.
636
637 * msdos.c (disable_mouse_highlight): Removed variable.
638 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
639 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
640 (internal_terminal_init): Initialize mouse_face_hidden.
641 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
642 and on after keyboard input.
643
644 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
645
646 * w32term.c (disable_mouse_highlight): Removed variable.
647 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
648 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
649 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
650 and on after keyboard input.
651 (w32_initialize_display_info): Initialize mouse_face_hidden.
652
386c4076
EZ
6532002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
654
9005a471
EZ
655 * msdos.c (last_mouse_window): New variable.
656 (dos_rawgetc): Fix last change--if the mouse is in the same window
657 as recorded in last_mouse_window, don't select this window.
658
760627fa
EZ
659 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not
660 cus-start.el.
661
4a137db1
EZ
662 * msdos.c (x_autoselect_window_p): New variable.
663 (syms_of_msdos): Defvar it.
664 (dos_rawgetc): If x_autoselect_window_p is set, select the window
665 in which the last mouse movement occured, unless it is already
666 selected.
667
386c4076
EZ
668 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step): New
669 variables.
670 (syms_of_xdisp): DEVFAR them.
671 (hscroll_window_tree): Use automatic_hscroll_margin and
672 Vautomatic_hscroll_step to compute the amount of window scrolling.
673
e4ac8240 6742002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5d2200aa 675
3996d07a
PJ
676 * xterm.c (x-autoselect-window): New variable.
677 (note_mouse_movement): Use it.
678
5d2200aa
PJ
679 * keyboard.c: Do not include "systime.h" twice.
680
bdf67c59
AS
6812002-02-15 Andreas Schwab <schwab@suse.de>
682
5407e8a7
AS
683 * puresize.h (BASE_PURESIZE): Increase to 9/5.
684
bdf67c59
AS
685 * alloc.c (NSTATICS): Increase to 1280.
686
98659da6
KG
6872002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
688
f9904178
KG
689 * alloc.c (NSTATICS): Bump to 1026.
690
98659da6
KG
691 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
692 (Vx_super_keysym): New variables.
693 (syms_of_xterm): DEFVAR_LISP them.
694 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
695 variables to determine which keys to use for the various
696 modifiers.
697
a48b709b 6982002-02-13 Kim F. Storm <storm@cua.dk>
1c9f5f23
KS
699
700 * window.c: (Vmode_line_in_non_selected_windows): Removed.
701 (mode_line_in_non_selected_windows): New variable.
702 (syms_of_window): DEFVAR_BOOL it.
703
704 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Use
705 mode_line_in_non_selected_windows.
706 (mode_line_in_non_selected_windows): Declare extern.
707 (Vmode_line_in_non_selected_windows): Removed extern.
708
db54c53a
RS
7092002-02-13 Richard M. Stallman <rms@gnu.org>
710
711 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
712 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
713 (Fclear_this_command_keys): Doc fixes.
714
715 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
716 (update_face_from_frame_parameter): Increment face_change_count
717 and windows_or_buffers_changed to force redisplay using changed faces.
718
719 * xdisp.c (QCpropertize): New variable.
720 (mode_line_proptrans_alist): New variable.
721 (display_mode_element): New arg PROPS; all calls changed.
722 Implement this, for strings.
723 Handle literal output of strings by sharing the
724 main-line code for strings, using local var `literal'.
725 Handle :propertize feature.
726 (syms_of_xdisp): Initialze and staticpro QCpropertize and
727 mode_line_proptrans_alist.
728
a48b709b 7292002-02-11 Kim F. Storm <storm@cua.dk>
3c9bdb7e
KS
730
731 * window.c: (Vmode_line_in_non_selected_windows): New variable.
732 (syms_of_window): DEFVAR_LISP it.
733
734 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
735 (CURRENT_MODE_LINE_FACE_ID): Use it.
736 (Vmode_line_in_non_selected_windows): Declare extern.
737
738 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
739 to get mode line face.
740
573a237a
EZ
7412002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
742
743 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
744 variables; cus-start.el doesn't need them anymore.
745
73df3b72
KS
7462002-02-09 Kim F. Storm <storm@cua.dk>
747
748 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
749 reduction. This fixes a display problem where stray newlines were
750 inserted in the window (corrected by C-l). Clarified code (IMHO).
751
18b0be7c
EZ
7522002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
753
754 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
755
756 * xdisp.c (display_mode_lines): Fix last change.
757
442ca9ba
JR
7582002-02-09 Jason Rumney <jasonr@gnu.org>
759
760 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
761 match each other.
3acfb461
JR
762 (w32_load_system_font): Prevent Cleartype fonts from loading.
763 (Fx_show_tip): Ensure tip frames are above other topmost windows.
442ca9ba 764
cdefda26
KS
7652002-02-09 Kim F. Storm <storm@cua.dk>
766
767 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
768 (CURRENT_MODE_LINE_HEIGHT): Use it.
769 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
770
771 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
772 (pos_visible_p, handle_face_prop): Likewise.
773 (display_mode_lines): Likewise, but for the real selected window.
774 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
775
776 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
777 in non-selected windows.
778 (realize_basic_faces): Realize it.
779 (syms_of_term): Intern and staticpro it.
780
9f69e812
KS
7812002-02-08 Kim F. Storm <storm@cua.dk>
782
783 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
784 Changed mail addresses to emacs-devel@gnu.org.
785
6ded2c89
EZ
7862002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
787
b5d40ceb
EZ
788 * fileio.c (Fsubstitute_in_file_name): If the file name includes
789 ~user, and there's no such user, don't discard everything before
790 ~user.
791
6ded2c89
EZ
792 * floatfns.c (Fround): Doc fix.
793
e4ac8240 7942002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7c15926f
PJ
795
796 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
797
6a229a63
SM
7982002-02-07 Stefan Monnier <monnier@cs.yale.edu>
799
db54c53a 800 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
6a229a63 801
33b93ee5
KS
8022002-02-07 Kim F. Storm <storm@cua.dk>
803
804 * keymap.c (where_is_internal): Only check whether definition is
805 remapped if it fulfills is_command_symbol.
806
72bba9f2
AS
8072002-02-07 Andreas Schwab <schwab@suse.de>
808
809 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
810
811 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
812
93607efd
KS
8132002-02-06 Kim F. Storm <storm@cua.dk>
814
815 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
816 defining command remapping. Doc updated.
817 (Flookup_key): Remap command through keymap if KEY is a symbol.
818 (is_command_symbol): New function.
6a229a63
SM
819 (Fkey_binding): Use it. New optional argument NO-REMAP.
820 Doc updated. Callers changed. Perform command remapping via
93607efd
KS
821 recursive call unless that arg is non-nil.
822 (where_is_internal): New argument no_remap. Callers changed.
823 Call recursively to find original key bindings for a remapped
824 comand unless that arg is non-nil.
6a229a63
SM
825 (Fwhere_is_internal): New optional argument NO-REMAP.
826 Doc updated. Callers changed. Pass arg to where_is_internal.
93607efd
KS
827
828 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
829 (is_command_symbol): Added prototype.
830
831 * keyboard.c (Vthis_original_command): New variable.
832 (syms_of_keyboard): DEFVAR_LISP it.
833 (command_loop_1): Set it, and perform command remapping.
834
e4ac8240 8352002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2642a29e
PJ
836
837 * keyboard.c (recursive_edit_1): Call cancel_hourglass
838 unconditionally.
839
f4ed304f
JR
8402002-02-06 Jason Rumney <jasonr@gnu.org>
841
842 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
843
b5309828
EZ
8442002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
845
846 * charset.c (get_charset_id): Use if-else instead of ?:.
847
108eaabb
RS
8482002-02-06 Richard M. Stallman <rms@gnu.org>
849
850 * filelock.c (S_ISLNK): Define if not defined.
851
bd3567fa
RS
8522002-02-03 Richard M. Stallman <rms@gnu.org>
853
854 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
855
856 * lread.c (read1): Redesign strategy for force_multibyte and
857 force_singlebyte. Now is_multibyte records whether read_buffer
858 is multibyte. Encountering any multibyte character makes it so.
6a229a63 859
95c11956
SM
8602002-02-02 Stefan Monnier <monnier@cs.yale.edu>
861
862 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
863 with the same sequence, map that sequence to f10 rather than f0.
864
ee466d0b
AS
8652002-02-03 Andreas Schwab <schwab@suse.de>
866
867 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
868 latter never being defined on GNU/Linux.
869
f77157da
EZ
8702002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
871
872 * xfaces.c (realize_default_face): Don't set the weight and slant
873 of the default face to Qnormal, unless these attributes are
874 unspecified.
875
e4ac8240 8762002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fbcc9b1 877
95c11956
SM
878 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
879 Call cancel_hourglass unconditionally.
4fbcc9b1
PJ
880
881 * eval.c (Fsignal): Remove duplicated declaration of
882 the variable `display_hourglass_p'.
883
5e101746
RS
8842002-01-31 Richard M. Stallman <rms@gnu.org>
885
886 * editfns.c (region_limit): Nicer error message.
887
888 * coding.c (decode_composition_emacs_mule):
889 Give up if NCOMPONENT gets too large to index `component'.
890
891 * callint.c (check_mark): New arg to specify clearer error message.
892 Callers changed.
893
8942002-01-27 Richard M. Stallman <rms@gnu.org>
895
896 * minibuf.c (Fcompleting_read): Doc fix.
897
e4ac8240 8982002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4b11ca
PJ
899
900 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
95c11956
SM
901 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
902 Fix doc-strings.
7a4b11ca 903
f5798fbd
RS
9042002-01-26 Richard M. Stallman <rms@gnu.org>
905
906 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
907
908 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
909 and scroll_up_aggressively.
910
e4ac8240 9112002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8fc77801
PJ
912
913 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
914
3a232704
SM
9152002-01-25 Stefan Monnier <monnier@cs.yale.edu>
916
917 * textprop.c (Fnext_property_change, Fnext_single_property_change)
918 (Fprevious_property_change, Fprevious_single_property_change):
919 Stay within the narrowed-buffer boundaries.
920
dd939ea1
EZ
9212002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
922
923 * term.c (Ftty_display_color_cells): New function.
924 (syms_of_term): Defsubr it.
0011f346
EZ
925 (Ftty_display_color_cells, Ftty_display_color_p): Change the
926 argument name to DISPLAY. Doc fix.
dd939ea1
EZ
927
928 * dispextern.h: Add prototype for set_tty_color_mode and
929 tty_setup_colors.
930
aa35b6ad
JR
9312002-01-24 Jason Rumney <jasonr@gnu.org>
932
933 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
934 If region left to draw is not what was expected, mark the frame as
935 garbaged.
936
937 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
938 Combine the regions returned by BeginPaint and GetUpdateRect.
939
ab76d376
JR
9402002-01-23 Jason Rumney <jasonr@gnu.org>
941
942 * w32term.c (x_update_window_begin): Only hide caret if
943 w32_use_visible_system_caret is set.
944 (x_update_window_end): Only show caret if
945 w32_use_visible_system_caret is set.
946 (syms_of_w32term): Handle SystemParametersInfo call failing.
947
948 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
949
d89b617d
RS
9502002-01-22 Richard M. Stallman <rms@gnu.org>
951
952 * unexelf.c (unexec): Define n so as to cause compilation error
953 for the code where people have often written n instead of nn.
954
955 * .gdbinit (hookpost-run): Defined.
956
f0b9a067
JD
9572002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
958
959 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
960
5f9338d5
JD
9612002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
962
963 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
964 if fullscreen is being set.
965
e4ac8240 9662002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
029a305c
PJ
967
968 * minibuf.c (Fminibuffer_contents)
969 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
970 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
971
8cc0e0cf
RS
9722002-01-21 Richard M. Stallman <rms@gnu.org>
973
974 * window.c (check_frame_size): Fix minimum height calculation.
975
d7b8ee68
KR
9762002-01-20 Ken Raeburn <raeburn@gnu.org>
977
978 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
979 height before comparison.
980 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
981
c3c14723
JR
9822002-01-20 Jason Rumney <jasonr@gnu.org>
983
984 * w32term.c (w32_system_caret_width): Remove.
985 (w32_use_visible_system_caret): New user flag.
986 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
987 Windows reports a screen reader running.
988 (x_update_window_begin): Hide the system caret.
989 (x_update_window_end): Show the system caret.
990 (x_display_and_set_cursor): Don't draw a cursor when
991 w32_use_visible_system_caret is set. Do not adjust width.
992
993 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
994 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
995 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
996 the user requests it. Use system default width when creating.
997 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
998
95c11956
SM
999 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
1000 New window messages.
c3c14723 1001
75e20bec
RS
10022002-01-20 Richard M. Stallman <rms@gnu.org>
1003
1004 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
1005
e4ac8240 10062002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c17e062
PJ
1007
1008 * doprnt.c (doprnt1): Fix typos in error call.
1009
3b927d14
EZ
10102002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1011
1012 * unexelf.c (unexec) [__sgi]: Support the .got sections.
1013
aa06cb9c
JR
10142002-01-20 Jason Rumney <jasonr@gnu.org>
1015
1016 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
1017 that Windows returns. If a double check fails, try to guess how
1018 ExtTextOut is going to act.
1019
1020 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
1021 in place of stricmp.
1022 (w32_list_synthesized_fonts): Removed.
1023 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
1024 (struct enumfont_t): New element; list.
1025 (enum_font_cb2): List all style and charset variations of a font.
1026 (Fw32_select_font): New optional argument; include_proportional.
1027 Exclude vertical fonts. Exclude proportional fonts unless
1028 include_proportional is non-nil.
1029 (w32_enable_synthesized_fonts): Change to a boolean.
1030 (Fw32_send_sys_command): Doc fix.
1031
e4ac8240 10322002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
37082f8d
PJ
1033
1034 * dispnew.c (update_frame): Move the variable `tem' to the block
1035 where it is used.
1036
815d969e
JR
10372002-01-19 Jason Rumney <jasonr@gnu.org>
1038
1039 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
1040 call to face-set-after-frame-default.
1041
a1e3dda0
RS
10422002-01-18 Richard M. Stallman <rms@gnu.org>
1043
95c11956 1044 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
a1e3dda0
RS
1045 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
1046
daf516d3
RS
10472002-01-17 Richard M. Stallman <rms@gnu.org>
1048
1049 * window.c (enlarge_window): When exceeding size of parent,
1050 directly delete all the siblings instead of trying to resize it.
1051
e4ac8240 10522002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dfc7a077
PJ
1053
1054 * term.c (set_tty_color_mode): Remove unused variable `tem'.
1055
3ddff138
RS
10562002-01-16 Henrik Enberg <henrik@enberg.org>
1057
7adfc0d7 1058 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
3ddff138 1059
465c9390
KS
10602002-01-16 Kim F. Storm <storm@cua.dk>
1061
1062 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
1063 is invisible. This can happen if cursor is on top line of a
1064 window, and we switch to a buffer with a header line.
1065
95c11956 1066 * w32term.c (x_erase_phys_cursor): Ditto.
a2c6de8e 1067
e4ac8240 10682002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4bce14
PJ
1069
1070 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
1071 `dont_resize' only when used.
1072
1073 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
1074
26f622b3
EZ
10752002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
1076
1077 * xdisp.c (display_mode_element): When computing charpos, depend
f165c448 1078 on multibyteness of elt, not the text in field.
26f622b3 1079
e4ac8240 10802002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1a6db83a
PJ
1081
1082 * buffer.c (Fkill_all_local_variables): Increment
1083 `update_mode_lines' only once.
1084
e4ac8240 10852002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a4ff5d67 1086
aa1977d7
PJ
1087 * lisp.h (adjust_after_replace_noundo)
1088 (Fupdate_coding_systems_internal): Add prototypes.
1089
95c11956 1090 * sound.c (Fplay_sound): Initialize header_size also for :data case.
a4ff5d67 1091
3947677c
EZ
10922002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
1093
1094 Support for the --color command-line argument and tty-color-mode
1095 frame parameter:
1096
1097 * term.c (tty_default_color_capabilities, tty_setup_colors)
1098 (set_tty_color_mode): New functions.
1099 (term_init): Call tty_default_color_capabilities.
1100 (Qtty_color_mode_alist): New variable.
1101 (syms_of_term): Intern and staticpro it.
1102
1103 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
1104 frames.
1105 (do_switch_frame): For termcap frames, switch the tty
1106 color mode as specified by the frame's parameters.
1107 (Qtty_color_mode): New variable.
1108 (syms_of_frame): Intern and staticpro it.
1109
1110 * emacs.c (USAGE2): Add the --color option.
1111 (standard_args): Ditto.
1112
8a8e19a3
EZ
11132002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
1114
1115 * xterm.h (struct x_output): New members want_fullscreen,
1116 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
1117 y_pixels_outer_diff.
1118 New enum for FULLSCREEN_* constants.
1119 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
1120 is NULL.
1121 (x_fullscreen_adjust): Add prototype.
1122
1123 * emacs.c (USAGE2): Add the new full-screen arguments.
1124 (standard_args): Ditto.
1125
95c11956
SM
1126 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
1127 New variables.
8a8e19a3
EZ
1128 (syms_of_xfns): Intern and staticpro them.
1129 (x_frame_parms) <"fullscreen">: New parameter.
1130 (x_fullscreen_move, x_set_fullscreen): New functions.
1131 (x_set_frame_parameters): Support for Qfullscreen.
1132 (x_real_positions): More accurate computation of the frame position.
1133 (x_figure_window_size): Support full-screen frames.
1134 (Fx_create_frame): Default the fullscreen parameter.
1135
1136 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
1137 (XTread_socket) <Expose>: Call x_check_fullscreen.
95c11956
SM
1138 <ConfigureNotify>: Don't resize to fullscreen.
1139 Call x_check_fullscreen_move, and set the want_fullscreen member of
8a8e19a3
EZ
1140 output_data.x.
1141
4f1b1854
JR
11422002-01-13 Jason Rumney <jasonr@gnu.org>
1143
1144 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
1145 for mice with more than 3 buttons.
1146
1147 * w32term.c (parse_button): New parameter xbutton. Callers changed.
1148 (w32_read_socket): Handle new "XBUTTON" messages.
1149
1150 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
1151 (syms_of_w32fns): DEFVAR_BOOL it.
1152 (w32_wnd_proc): Handle new "XBUTTON" messages.
1153
e4ac8240 11542002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5cb6905d 1155
95c11956 1156 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
5cb6905d 1157
437dfb9f
AS
11582002-01-13 Andreas Schwab <schwab@suse.de>
1159
1160 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
1161
9f696a00
AS
11622002-01-12 Andreas Schwab <schwab@suse.de>
1163
1164 * .gdbinit (xbuffer): Remove address operator since data is now a
1165 pointer.
1166
d57966d7
RS
11672002-01-11 Richard M. Stallman <rms@gnu.org>
1168
1169 * insdel.c (adjust_after_replace_noundo): New function.
1170
1171 * coding.c (code_convert_region): Don't copy old text if undo disabled.
1172
74779f52
JR
11732002-01-09 Jason Rumney <jasonr@gnu.org>
1174
1175 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
1176 when checking for multiple frames.
1177
a474d59c
RS
11782002-01-08 Richard M. Stallman <rms@gnu.org>
1179
1180 * window.c (delete_window): Rewrite the code for changing the
1181 selected window to handle the case where WINDOW is not a leaf.
1182
fbb70ad9
EZ
11832002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
1184
1185 * process.c (send_process): Set src_multibyte to 1 after the call
1186 top setup_coding_system, not before the call.
1187
2d10309f
JR
11882002-01-07 Jason Rumney <jasonr@gnu.org>
1189
1190 * xmenu.c (set_frame_menubar, xmenu_show):
3a232704 1191 (xdialog_show): Initialize wv->help to Qnil.
2d10309f
JR
1192
1193 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
1194 (w32_dialog_show): Initialize wv->help to Qnil.
1195
7f2cddf3
JR
11962002-01-06 Jason Rumney <jasonr@gnu.org>
1197
0b1e6b54
JR
1198 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
1199
7f2cddf3
JR
1200 * w32menu.c (w32_menu_display_help): Revert last change.
1201
1202 * xmenu.c (menu_highlight_callback): Revert last change.
1203
e17144de
AS
12042002-01-06 Andreas Schwab <schwab@suse.de>
1205
1206 * insdel.c (make_gap_larger): Make sure buffer size does not
1207 overflow range of int.
1208
6637c996
JR
12092002-01-05 Jason Rumney <jasonr@gnu.org>
1210
44368f8f
JR
1211 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1212 OVERLAPS_P.
1213
f884b6f4
JR
1214 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
1215
6637c996
JR
1216 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
1217 to the left or to the right of the pointer, put it against
1218 the left screen edge.
1219 (x_frame_parms): Add missing braces around initializer.
1220
1221 * w32term.c (x_setup_relief_colors): Don't compute an image's
1222 background color if it doesn't have a Pixmap.
1223 (notice_overwritten_cursor): Don't depend on
1224 output_cursor and updated_area. Compare pixel coordinates with
1225 window's cursor pixel coordinates.
3a232704
SM
1226 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1227 Call notice_overwritten_cursor with new arg list.
6637c996
JR
1228 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1229 unconditionally.
1230 (x_draw_image_relief): Use predefined macro instead of
1231 constant when the value of `tool_bar_button_relief' is negative.
1232
1233 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
1234
453c5510
RS
12352002-01-04 Richard M. Stallman <rms@gnu.org>
1236
1237 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
1238
d1d070e3
RS
12392002-01-03 Richard M. Stallman <rms@gnu.org>
1240
1241 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
1242 (Fkey_binding): Try the `keymap' property map first.
1243 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
1244 minor mode bindings.
1245
9ec1bdb6
KS
12462002-01-03 Kim F. Storm <storm@cua.dk>
1247
1248 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
1249
308dd672
RS
12502002-01-02 Richard M. Stallman <rms@gnu.org>
1251
edde72f6
RS
1252 * keyboard.c (read_key_sequence): Handle the keymap property
1253 before minor mode maps.
1254
308dd672
RS
1255 * editfns.c (Fformat): Update thissize from field_width
1256 based on the actual width, in the string case.
1257
e4ac8240 12582002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c1e6b46 1259
03950b5b
PJ
1260 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
1261 when used as truth value to prevent gcc warnings.
1262
3c1e6b46
PJ
1263 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
1264 * w32proc.c: Include <config.h>.
1265
c1e11810
AS
12662002-01-01 Andreas Schwab <schwab@suse.de>
1267
1268 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
1269 not EMACS_INT, to make them compatible with DEFVAR_INT.
1270 * lisp.h (max_specpdl_size): Adjust declaration.
1271
1996baee
RS
12722002-01-01 Richard M. Stallman <rms@gnu.org>
1273
1274 * print.c (print_object): Test print_escape_nonascii only for
1275 unibyte strings.
1276 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
1277 when outputting to a multibyte buffer.
1278
0065bb74
RS
12792001-12-29 Richard M. Stallman <rms@gnu.org>
1280
1281 * print.c (print_object): In multibyte string, use hex escapes.
1282 Use octal only for unibyte strings.
1283 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
1284
1285 * lread.c (read_escape): New arg BYTEREP for reporting whether
1286 escape forces unibyte or multibyte.
1287 (read1): When reading a string, take note of that info.
1288
b5cb6072
KR
12892001-12-29 Ken Raeburn <raeburn@gnu.org>
1290
1291 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
1292 comparison to test lisp value returned by Fget.
1293
15fff01d
RS
12942001-12-29 Richard M. Stallman <rms@gnu.org>
1295
0065bb74
RS
1296 * lisp.h (max_specpdl_size): Add declaration.
1297
0d8466cc
RS
1298 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
1299
15fff01d
RS
1300 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
1301 Handle modifier bits. Correct typo in error message.
1302
2fae9111
RS
13032001-12-28 Richard M. Stallman <rms@gnu.org>
1304
2d6c1fc0
RS
1305 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
1306 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
1307 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1308 Update calls to Fdefine_abbrev.
1309 (write_abbrev): Update for changed data format.
1310 Don't list "system" abbrevs.
1311 (Fexpand_abbrev): Update use count with new data format.
1312 (describe_abbrev): Update for changed data format.
1313 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
1314
07025a55
RS
1315 * config.in (HAVE_MBSINIT): Add #undef.
1316
1317 * strftime.c (mbsinit): Define as no-op if not available.
1318
1319 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
1320 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
1321
ce6eef6e
RS
1322 * keymap.c (Flookup_key): Error message if key has wrong data type.
1323 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
ade19cac 1324 (exclude_key): New variable.
3a232704 1325
539e92ad
GM
13262001-12-28 Gerd Moellmann <gerd@gnu.org>
1327
0cb8bb48
GM
1328 * xterm.c (x_setup_relief_colors): Don't compute an image's
1329 background color if it doesn't have a Pixmap.
3a232704 1330
60626bab
GM
1331 * xterm.c (notice_overwritten_cursor): Don't depend on
1332 output_cursor and updated_area. Compare pixel coordinates with
1333 window's cursor pixel coordinates.
3a232704
SM
1334 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1335 Call notice_overwritten_cursor with new arg list.
60626bab
GM
1336 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1337 unconditionally.
0cb8bb48 1338
539e92ad
GM
1339 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
1340 height of the cursor line to the amount to scroll.
1341
4e02881b
RS
13422001-12-27 Richard M. Stallman <rms@gnu.org>
1343
1344 * intervals.c (set_point_both): The position after an invisible,
1345 intangible character is not an acceptable stopping point.
1346
1ab964d7
KR
13472001-12-27 Ken Raeburn <raeburn@gnu.org>
1348
1349 * window.c (enlarge_window): In new preserve_before code, convert
1350 CURBEG from lisp object to integer before doing arithmetic.
1351
749f499f
RS
13522001-12-27 Richard M. Stallman <rms@gnu.org>
1353
1354 * bytecode.c (Fbyte_code): Undo previous change.
1355
b5d9aaba
KS
13562001-12-26 Kim F. Storm <storm@cua.dk>
1357
1358 * keyboard.c (record_char): Ignore duplicate help-echo events only
1359 separated by mouse-movement. When tracking mouse, only record
1360 first and last mouse-movement event in same window.
1361 Don't record mouse-movement events in keyboard macros.
3a232704 1362
d0fd26dd
RS
13632001-12-25 Richard M. Stallman <rms@gnu.org>
1364
b4c45162
RS
1365 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
1366 (Fenlarge_window): New arg PRESERVE_BEFORE.
1367
d0fd26dd
RS
1368 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
1369 instead of Fstring_as_unibyte.
1370
e4ac8240 13712001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 1372
3a232704 1373 The following changes remove mocklisp support:
c95eaa61
PJ
1374
1375 * mocklisp.h, mocklisp.c: Files removed.
1376
1377 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
1378 `Qmocklisp' and `Qmocklisp_arguments'.
1379 Remove prototype of syms_of_mocklisp.
1380
3a232704 1381 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
c95eaa61
PJ
1382
1383 * callint.c: Do not include mocklisp.h.
1384 (Fcall_interactively): Do not test for mocklisp case.
1385
1386 * eval.c: Remove variables `Qmocklisp_arguments',
3a232704
SM
1387 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
1388 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
1389 Do not test for mocklisp case.
c95eaa61
PJ
1390 (Fwhile): Remove unused variable `tem'.
1391 (syms_of_eval): Remove variable `moclisp-arguments'.
1392
1393 * data.c (wrong_type_argument): Remove mocklisp case.
1394
1395 * doc.c (Fdocumentation): Remove mocklisp case.
1396
1397 * emacs.c (main): Do not call syms_of_mocklisp.
1398
31877e0a
RS
13992001-12-21 Richard M. Stallman <rms@gnu.org>
1400
1401 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
1402 to the left or to the right of the pointer, put it against
1403 the left screen edge.
1404
e2c3786a
EZ
14052001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
1406
1407 * Makefile.in (distclean): Remove .gdbinit if we are building
1408 outside the source tree.
1409
c513fc03
EZ
14102001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
1411
bf794306
EZ
1412 * w32.c (emacs_root_dir): New function.
1413
1414 * msdos.c (emacs_root_dir): New function.
1415
1416 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
1417 of the current drive as the fallback for default_directory.
1418
62582985
EZ
1419 * dired.c (file_name_completion): Run the elements of
1420 completion-ignored-extensions through ENCODE_FILE.
1421
c513fc03
EZ
1422 * lisp.h (scmp): Remove prototype, since it's now a static
1423 function private to dired.c.
1424
3509a04c
RS
14252001-12-18 Richard M. Stallman <rms@gnu.org>
1426
1427 * dired.c (scmp): Function moved from minibuf.c.
1428 Delete multibyte handling--used only on encoded strings.
1429
1430 * minibuf.c (scmp): Function moved to dired.c.
1431
1432 * fns.c (merge): Add QUIT call.
1433
1e9a6186
DL
14342001-12-18 Dave Love <fx@gnu.org>
1435
1436 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
1437 language/georgian.el.
1438
e4e34e31
EZ
14392001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
1440
1441 * Makefile.in (lisp, shortlisp): Synchronize with changes to
1442 lisp/Makefile.in:DONTCOMPILE.
1443
e4ac8240 14442001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 1445
7c75be36
PJ
1446 * xdisp.c (window_box_height): Do not return negative values.
1447 From Gerd Moellmann <gerd@gnu.org>.
1448
4521d1fc
PJ
1449 * keyboard.c (head_table): Add missing braces around initializer.
1450
1451 * term.c (keys): Likewise.
1452
1453 * xfns.c (x_frame_parms, visual_classes): Likewise.
1454
93dec019
SS
14552001-12-17 Sam Steingold <sds@gnu.org>
1456
1457 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
1458 patch (COMPOSING_P, not COMPOSING).
1459
905cc05a
RS
14602001-12-17 Richard M. Stallman <rms@gnu.org>
1461
2ed06289
RS
1462 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
1463
0e79d667
RS
1464 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
1465 before calling decode_coding.
1466
1467 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
1468
1469 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
905cc05a
RS
1470 instead of only for COMPOSITION_DISABLED.
1471
82a7ab23
RS
14722001-12-16 Richard M. Stallman <rms@gnu.org>
1473
d75bec6a
RS
1474 * alloc.c (pure_alloc): After overflow, allocate just a small block.
1475
52dcb476
RS
1476 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
1477
82a7ab23
RS
1478 * buffer.h (struct buffer): New field `display_error_modiff'.
1479 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
1480
1481 * window.c (Frecenter): Clear display_error_modiff field.
1482
1483 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
1484 Call redisplay_window, but not if display_error_modiff field says no.
1485 (redisplay_window_error): New function.
1486 (displayed_buffer): New variable.
1487 (redisplay_internal, redisplay_windows): Call the new functions
1488 instead of redisplay_window directly.
1489
4d0fa4f3
RS
14902001-12-15 Richard M. Stallman <rms@gnu.org>
1491
1492 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1493
493faf20
AI
14942001-12-14 Andrew Innes <andrewi@gnu.org>
1495
325111e9
AI
1496 * makefile.w32-in (EMACSLOADPATH): Define.
1497 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
1498 (bootstrap-temacs): Remove dependency on bootstrap-clean.
493faf20 1499
4971e491
EZ
15002001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
1501
397b3b50 1502 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4971e491
EZ
1503 parameter have a numeric value all the time.
1504
1505 * w32fns.c (x_report_frame_params): Likewise.
1506
d911a0fa
RS
15072001-12-12 Richard M. Stallman <rms@gnu.org>
1508
1509 * fileio.c (Fwrite_region): Doc fix.
1510
1511 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
1512 (redisplay_internal): Call clear_image_cache only for window terminals.
1513
201c831a
GM
15142001-12-12 Gerd Moellmann <gerd@gnu.org>
1515
1516 * xdisp.c (move_it_vertically_backward): Change heuristic
1517 for the case that we didn't move far enough initially.
1518
1519 * window.c (Frecenter): Simplify computation in the case of window
1520 system frames and ARG < 0; use window_box_height.
1521
34e39c95
RS
15222001-12-11 Richard M. Stallman <rms@gnu.org>
1523
1524 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
1525 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
1526
d77fbc16
AI
15272001-12-11 Andrew Innes <andrewi@gnu.org>
1528
1529 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
1530 arg is negative.
1531
61e3b944
RS
15322001-12-11 Richard M. Stallman <rms@gnu.org>
1533
1534 * m/hp800.h: Split the __hpux conditional into the parts
1535 that are right for GNU/Linux too and the parts that are not.
1536 Use the former if GNU_LINUX.
1537 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
1538
1539 * s/gnu-linux.h (GNU_LINUX): Defined.
1540
e4ac8240 15412001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70da46c3
PJ
1542
1543 * macros.c, msdos.c, w16select.c: Change doc-string comments to
1544 `new style' [w/`doc:' keyword].
1545
8af01033
JR
15462001-12-10 Jason Rumney <jasonr@gnu.org>
1547
1548 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
1549 before using.
1550
e4ac8240 15512001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a
PJ
1552
1553 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
1554 keyword].
1555
d9e6c4b1
EZ
15562001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
1557
d20fc48a
EZ
1558 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
1559
d9e6c4b1
EZ
1560 * s/hpux10.h (srand48): Don't undefine.
1561
f1a85b89
JR
15622001-12-09 Jason Rumney <jasonr@gnu.org>
1563
3a232704
SM
1564 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
1565 Add comment to explain where the struct came from.
f1a85b89
JR
1566 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
1567 (add_menu_item): Process pop-up menus first to avoid memory leak.
1568 (add_menu_item, w32_menu_display_help): Use `help' field as
1569 Lisp_Object.
1570 (w32_free_submenu_strings): Only free owner-drawn strings.
1571
e4ac8240 15722001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a62677f 1573
72244db2
PJ
1574 * COPYING: Moved back.
1575
3a62677f
PJ
1576 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
1577 Add parentheses around && within ||.
1578
1579 * indent.c (compute_motion): Likewise.
1580
1581 * intervals.c (merge_properties_sticky): Likewise.
1582
1583 * coding.c (setup_coding_system, shrink_encoding_region)
1584 (Fdecode_sjis_char): Likewise.
1585
9d113d9d
AS
15862001-12-07 Andreas Schwab <schwab@suse.de>
1587
b8523839
AS
1588 * xdisp.c (display_mode_element): Don't read past end of string if
1589 it ends with '%'.
1590
9464dea4
AS
1591 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
1592 can hold.
1593
3a232704 1594 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
9d113d9d
AS
1595 from most_positive_fixnum and most_negative_fixnum, resp., and
1596 type changed to Lisp_Object.
1597 (syms_of_data): DEFVAR_LISP them.
1598
70ec1377
RS
15992001-12-07 Richard M. Stallman <rms@gnu.org>
1600
1601 * callproc.c (init_callproc): Set Vdata_directory based on the source
1602 location whenever Emacs was run uninstalled.
1603
92f7dd37
PE
16042001-12-06 Paul Eggert <eggert@twinsun.com>
1605
1606 * config.in (HAVE_WORKING_VFORK): New #undefs.
1607 * process.c (create_process):
1608 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
1609 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
1610 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
1611 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
1612 * m/intel386.h (HAVE_VFORK): Likewise.
1613 * m/mips-siemens.h (HAVE_VFORK): Likewise.
1614 * m/mips.h (HAVE_VFORK): Likewise.
1615 * s/freebsd.h (vfork): Remove #define.
1616 * s/lynxos.h (HAVE_VFORK): Remove #undef.
1617 * s/usg5-4-2.h: Fix comment about vfork.
1618
c93674bb
RS
16192001-12-06 Richard M. Stallman <rms@gnu.org>
1620
1621 * s/hpux10.h (random): Add undef.
1622 (HAVE_RANDOM): Define it just once.
1623
59b59892
SM
16242001-12-06 Stefan Monnier <monnier@cs.yale.edu>
1625
1626 * eval.c: Undo last change: the standard syntax is not wanted.
1627
c6ea2775
EZ
16282001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
1629
1630 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
1631 scroll bars of the frame before deleting the frame itself. If the
1632 frame has a widget, delete the frame with XtDestroyWidget, and do
1633 not call XDestroyWindow before that.
1634
91175673
KS
16352001-12-06 Kim F. Storm <storm@cua.dk>
1636
1637 * xfns.c (x_report_frame_params): Return actual fringe widths.
1638
1639 * w32fns.c (x_report_frame_params): Return actual fringe widths.
1640
e0fead5d
AI
16412001-12-05 Andrew Innes <andrewi@gnu.org>
1642
1643 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
1644 excessively large.
1645
1646 * insdel.c (make_gap_larger): New function.
1647 (make_gap_smaller): New function.
1648 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
1649 make_gap_smaller if arg is negative.
1650
c186cdb3
SM
16512001-12-04 Stefan Monnier <monnier@cs.yale.edu>
1652
1653 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
1654 Pass a dummy argument when calling interrupt_signal.
1655 (parse_menu_item): Mark disabled items before checking for empty def.
1656 (read_char_minibuf_menu_prompt): Make safety more visible.
1657 (read_key_sequence): Add a `first_unbound' variable.
1658 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
1659 unbound prefix as soon as we can detect it.
1660
1661 * doc.c (Fsnarf_documentation): Add prototype.
1662 (get_doc_string): Handle negative arguments.
1663 (Fdocumentation): Use AREF and ASIZE.
1664 Move the calls to get_doc_string to a single place.
1665 Don't confuse an interactive-spec for a docstring reference.
1666 (Fdocumentation_property): Take advantage of the fact that
1667 get_doc_string now ignores the sign of the docstring position.
1668
1669 * eval.c: Use standard syntax for usage in docstrings.
1670
e4ac8240 16712001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
58cfce98 1672
c186cdb3 1673 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
58cfce98 1674
e4ac8240 16752001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
62854fe2
PJ
1676
1677 * xterm.c (x_draw_image_relief): Use predefined macro instead of
1678 constant when the value of `tool_bar_button_relief' is negative.
1679
656f46bb
RS
16802001-12-02 Richard M. Stallman <rms@gnu.org>
1681
1682 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
1683 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
1684
1685 * fileio.c (read_non_regular): Delete Fsignal call.
1686
036e218d
SM
16872001-12-01 Stefan Monnier <monnier@cs.yale.edu>
1688
1689 * lisp.h (run_hook_list_with_args): Undo last change.
1690
7ddb2c16
GM
16912001-12-01 Gerd Moellmann <gerd@gnu.org>
1692
1693 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
1694
ace9b298
JR
16952001-12-01 Jason Rumney <jasonr@gnu.org>
1696
90647b07
JR
1697 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
1698
1699 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
1700 [!WM_MOUSELEAVE]: Define.
1701
ace9b298
JR
1702 * w32menu.c (current_popup_menu, get_menu_item_info):
1703 (set_menu_item_info): New vars.
1704 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
1705 (w32_menu_show): Set current_popup_menu.
1706 (add_menu_item): Allocate new strings for owner-drawn menu items
1707 and help strings.
1708 Use owner-draw for disabled menu items again.
1709 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
1710 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
1711
1712 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
1713 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
1714 <WM_EXITMENULOOP>: Free menu strings.
1715 <WM_MOUSELEAVE>: Stop tracking mouse.
1716 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
1717
1718 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
1719 and mouse face.
1720
a9549909 17212001-12-01 Kim F. Storm <storm@cua.dk>
9fbc32aa
KS
1722
1723 The following changes add left-fringe and right-fringe
1724 frame parameters to adjust fringe widths, or remove one or
1725 both fringes.
036e218d 1726
9fbc32aa
KS
1727 * frame.h (struct frame): Remove trunc_area_pixel_width and
1728 trunc_area_cols fields.
1729 (Qleft_fringe, Qright_fringe): Declare.
1730 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
1731
1732 * frame.c (Qleft_fringe, Qright_fringe): New vars.
1733 (syms_of_frame): Initialize them.
1734
1735 * window.c (coordinates_in_window): Handle separate left and right
1736 fringe widths.
1737
1738 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
1739 and fringe_cols fields.
1740 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
1741 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
1742 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
1743 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
1744 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1745 (x_compute_fringe_widths): Add prototype.
1746
1747 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1748 fill fringe evenly with small dashes.
1749 (x_draw_fringe_bitmap): Clear background if necessary. Align and
1750 clip the new ZV bitmap to avoid jitter between rows.
1751 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1752 background. Don't draw fringe bitmaps if fringe width is zero.
1753 (x_compute_fringe_widths): New function.
1754 (x_new_font, x_set_window_size_1): Use it.
1755
1756 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
0c5ee687 1757 (x_set_frame_parameters): Process `font' parameter before other
9fbc32aa
KS
1758 parameters as fringe widths depend on it.
1759 (x_set_fringe_width): New function.
1760 (x_figure_window_size): Use x_compute_fringe_widths.
1761 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1762 parameters.
1763
1764 * widget.c (set_frame_size): Use x_compute_fringe_widths.
1765 (EmacsFrameSetCharSize): Ditto.
1766
1767 * w32term.h: Merged changes from xterm.h.
1768 * w32term.c: Merged changes from xterm.c.
1769 * w32fns.c: Merged changes from xfns.c.
1770
e4ac8240 17712001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0142178a
PJ
1772
1773 * COPYING: Removed.
1774
d4824a5d
DL
17752001-11-29 Dave Love <fx@gnu.org>
1776
1777 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
1778 extra extra slot.
1779 (detect_coding_mask): Fix call of detect_coding_iso2022.
1780
e4ac8240 17812001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b1356234
PJ
1782
1783 * fileio.c (file-name-coding-system)
1784 (default-file-name-coding-system): Doc fix (links to referenced
1785 variables added).
1786
3ce081f5
SM
17872001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1788
99e380ee
SM
1789 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1790 Add dummy uses of gcproN variables.
1791
3ce081f5 1792 * category.c (describe_category, describe_category_1)
2ad56c09 1793 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3ce081f5
SM
1794 (syms_of_category): Don't defsubr Sdescribe_categories.
1795
66458f32
RS
17962001-11-28 Richard M. Stallman <rms@gnu.org>
1797
1798 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1799
1800 * Makefile.in (lispdir): New variable, referring to build dir.
1801 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1802
59a86c99
AI
18032001-11-28 Andrew Innes <andrewi@gnu.org>
1804
1805 * w32menu.c (w32_menu_display_help): Actually add the new argument
1806 OWNER.
1807
eb77a5f4
JR
18082001-11-28 Jason Rumney <jasonr@gnu.org>
1809
1810 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
1811 menu items. From David Ponce <dponce@wanadoo.fr>.
1812 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
1813 conditionally.
1814 (w32_menu_display_help): New argument OWNER. Rewritten to store a
1815 help event in the owner frame's keyboard buffer.
1816
1817 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
1818 (Fx_show_tip): Don't subtract last width from row width.
1819
1820 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
1821 (w32_read_socket): Use EQ to compare frames.
1822
bb313871
GM
18232001-11-28 Gerd Moellmann <gerd@gnu.org>
1824
1825 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1826 OVERLAPS_P.
1827
e4ac8240 18282001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55b43a63 1829
6052529b
PJ
1830 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
1831 `gcpro3' and `gcpro4'.
1832
3ce081f5
SM
1833 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
1834
18352001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1836
1837 * ccl.c: Use AREF and ASIZE.
1838
18392001-11-27 Stefan Monnier <monnier@cs.yale.edu>
1840
1841 * lisp.h (run_hook_list_with_args): Remove.
1842 (LIST_END_P): Fix call to wrong_type_argument.
1843 (make_fixnum_or_float): Use EMACS_INT rather than int.
55b43a63 1844
111ed14e
SM
18452001-11-26 Stefan Monnier <monnier@cs.yale.edu>
1846
9fabb2f5
SM
1847 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
1848 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
1849
1850 * eval.c: Use AREF and ASIZE.
1851 (Ffetch_bytecode): Add the file name to the error message.
1852
1853 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
1854 which match the end of the file-name.
1855 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
1856 is not a valid env var, but leave it as is instead.
1857
111ed14e
SM
1858 * keymap.c (access_keymap): Handle t bindings like nil bindings.
1859 Make nil bindings in char-tables transparent.
1860 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
1861
2fa0eedf
RS
18622001-11-26 Richard M. Stallman <rms@gnu.org>
1863
d1420435
RS
1864 * textprop.c (set_text_properties_1): Allow START, END in either order.
1865 Do nothing if range is empty.
1866
2fa0eedf
RS
1867 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
1868
ebcbef4e
RS
1869 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
1870 (clean): Not here.
1871
5c131048
SM
18722001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1873
1874 * textprop.c (set_text_properties_1): Clearly mark that the
1875 interval should not be empty.
1876
1877 * intervals.c (graft_intervals_into_buffer):
1878 Don't call set_text_properties_1 on an empty interval.
1879
96d276c3
RS
18802001-11-25 Richard M. Stallman <rms@gnu.org>
1881
6108b49c
RS
1882 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
1883
96d276c3
RS
1884 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
1885 don't lose the data in it.
1886
5eea19a4
RS
18872001-11-25 Juanma Barranquero <lektu@terra.es>
1888
1889 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
1890
1891 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
1892
1893 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
1894
438e57dd
SM
18952001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1896
1897 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
1898
c88e5347
EZ
18992001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1900
1901 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
1902 Niemitalo <kon@iki.fi>.
1903
59ce1461
JR
19042001-11-25 Jason Rumney <jasonr@gnu.org>
1905
1906 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
1907
1908 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
1909 (Fx_show_tip): Block input during frame creation.
1910 (Fx_show_tip, Fx_hide_tip): Enable.
1911
8727d588
RS
19122001-11-24 Richard M. Stallman <rms@gnu.org>
1913
1914 * lread.c (Fload): Detect recursive load error for more than 3
1915 nestings of the same file.
1916 (Vrecursive_load_depth_limit): Variable deleted.
1917 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
1918
cc63037e
JR
19192001-11-24 Jason Rumney <jasonr@gnu.org>
1920
1921 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
1922 mouse position if either left or top is not specified.
1923
1924 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
1925 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
1926 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
1927 (my_create_tip_window): Assign tip_window.
1928 (x_create_tip_frame): Use same defaults as X.
1929 (compute_tip_xy): Remove unused variable. Use full screen width.
1930 (Fx_show_tip): Do not double height. Call ShowWindow directly.
1931
1932 * w32term.c (x_after_update_window_line): Doc fix.
1933 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
1934 frames.
1935 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
1936
1937 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
1938 for all Windowed systems.
1939
deece6f5
EZ
19402001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1941
1942 * msdos.c (IT_clear_screen): If the frame's faces are not yet
1943 realized, use the initial screen colors to clear the screen.
1944
e4ac8240 19452001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1b944d9c 1946
28ff4293
PJ
1947 * textprop.c (Fset_text_properties): Remove unused variables
1948 `unchanged', `prev_changed', `s' and `len'.
1949
56167cc5
PJ
1950 * search.c (Freplace_match): Remove unused variable `inslen'.
1951
1b944d9c
PJ
1952 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
1953
ca56d953
JR
19542001-11-22 Jason Rumney <jasonr@gnu.org>
1955
1956 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
1957 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
1958 (my_create_tip_window): New function.
1959 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
93dec019 1960 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
ca56d953 1961
33399dce
JR
19622001-11-20 Jason Rumney <jasonr@gnu.org>
1963
1964 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
1965 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
1966
1967 * w32fns.c (Vw32_system_coding_system): Remove.
1968 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
1969
9b46de40
SM
19702001-11-19 Stefan Monnier <monnier@cs.yale.edu>
1971
6710ea06
SM
1972 * fileio.c (Fwrite_region): Move choose_write_coding_system to
1973 after build_annotations.
1974
a395ef6a
SM
1975 * syntax.c (describe_syntax): Add dummy arg.
1976 (describe_syntax_1): Update call to describe_vector.
1977
1978 * category.c (describe_category): Add dummy arg.
1979 (describe_category_1): Update call to describe_vector.
1980
1981 * keymap.c (Fdescribe_vector): Add `describer' parameter.
1982 (describe_command, describe_translation): Add dummy second param.
1983 (describe_map): Call elt_describer with two arguments.
1984 (describe_vector_princ): Add `fun' parameter.
1985 Call it instead of the hardcoded `princ'.
1986 (describe_vector): Add arg `args'.
1987 Pass it as a new second argument to elt_describer.
1988
1989 * keymap.h (describe_vector): Update prototype.
1990
9b46de40
SM
1991 * frame.c: Don't include keymap.h any more.
1992 (keys_of_frame): Remove.
1993
1994 * lisp.h (keys_of_frame): Remove declaration.
1995
1996 * emacs.c (main): Don't call `keys_of_frame' any more.
1997
aff37336
SS
19982001-11-14 Andreas Schwab <schwab@suse.de>
1999
2000 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
2001 if defined, 0 otherwise.
9b46de40 2002 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
2003 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
2004
b9937f07
RS
20052001-11-19 Richard M. Stallman <rms@gnu.org>
2006
2007 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
2008
2cd23960
JR
20092001-11-18 Jason Rumney <jasonr@gnu.org>
2010
2011 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
2012 (x_draw_bar_cursor): If the background color of the glyph under
2013 the cursor equals the frame's cursor color, use the glyph's
2014 foreground color for drawing the bar cursor.
2015 (x_after_update_window_line): Clear internal border in different
2016 circumstances.
2017 (w32_set_vertical_scroll_bar): Check for width and height > 0.
2018 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
2019 (x_set_glyph_string_background_width):
2020 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
2021 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
2022 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
2023 if cursor_in_non_selected_windows is false.
9b46de40 2024 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
2025 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
2026 Notice if cursor gets overwritten.
2027 (notice_overwritten_cursor): Renamed from
2028 note_overwritten_text_cursor. Rewritten to take glyph widths
2029 into account, and to take X positions as parameters.
2030 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2031 around call to x_draw_glyphs.
2032 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2033 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2034 color to use for image glyph reliefs.
2035 (x_draw_image_relief): Accept zero tool_bar_button_relief.
2036 (glyph_rect): Remove unused variable `area'.
2037
2038 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
2039 some items.
2040 (x_set_internal_border_width): Set frame garbaged when window
2041 doesn't exist yet.
2042 (Fx_create_frame): Accept zero tool_bar_button_relief.
2043 (x_clear_image_1, four_corners_best, image_background)
2044 (image_background_transparent): New functions.
2045 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2046 (gs_format): Add `:background' entry.
2047 (lookup_image): Set IMG's background color if specified.
2048 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2049 when appropriate.
2050 (x_clear_image_1): Reset `background_valid' and
2051 `background_transparent_valid' fields.
2052 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2053 calculating it here. Set IMG's background_transparent field.
2054 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2055 (enum png_keyword_index): Add PNG_BACKGROUND.
2056 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2057 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2058 (enum gif_keyword_index): Add GIF_BACKGROUND.
2059 (enum gs_keyword_index): Add GS_BACKGROUND.
2060 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2061 Pre-calculate image background color where necessary.
9b46de40
SM
2062 (x_create_x_image_and_pixmap, xbm_load, gs_load):
2063 Use display info's n_cbits entry for screen depth.
2cd23960
JR
2064 (Fx_show_tip): Remove unused variables `buffer', `top',
2065 `left', `max_width' and `max_height'.
2066
2067 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
2068
a4184c1c
GM
20692001-11-18 Gerd Moellmann <gerd@gnu.org>
2070
2071 * puresize.h (BASE_PURESIZE): Increase to 750000.
2072
e4ac8240 20732001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f6fa0866
PJ
2074
2075 * frame.c (Fframe_live_p): Doc fix.
2076
f4ca4b00
RS
20772001-11-18 Richard M. Stallman <rms@gnu.org>
2078
2079 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
2080 (message_dolog_marker3): New static variables hold three markers.
2081 (syms_of_xdisp): Initialize and staticpro them.
2082 (message_dolog): Use message_dolog_marker1..3 instead of
2083 allocating markers each time. Unchain them when done.
2084
f4e25f94
RS
20852001-11-17 Richard M. Stallman <rms@gnu.org>
2086
2087 * doc.c (Fsnarf_documentation): Doc fix.
2088
91c153e2
AS
20892001-11-17 Andreas Schwab <schwab@suse.de>
2090
2091 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
2092
65b7d3e7
RS
20932001-11-17 Richard M. Stallman <rms@gnu.org>
2094
2095 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
2096
6b5f6311
JR
20972001-11-17 Jason Rumney <jasonr@gnu.org>
2098
2099 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
2100
be676094
GM
21012001-11-17 Gerd Moellmann <gerd@gnu.org>
2102
2103 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
2104 with invalid position.
2105
032a857d
RS
21062001-11-16 Richard M. Stallman <rms@gnu.org>
2107
2108 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
2109
2110 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
2111 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
2112 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
2113
2114 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
2115
b6270150
SM
21162001-11-16 Stefan Monnier <monnier@cs.yale.edu>
2117
2118 * fileio.c (build_annotations): Split off the tail.
2119 (build_annotations_2): New fun. Extracted from build_annotations.
2120 (Fwrite_region): Split the call to build_annotations into two
2121 calls to build_annotations and build_annotations_2.
2122
e4ac8240 21232001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 2124
98cbb9fa
PJ
2125 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
2126 clear_waiting_for_input with argument.
2127
2128 * xterm.h (x_update_cursor): Remove duplicated prototype.
2129
b6270150 2130 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 2131
ea904403 2132 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 2133
ea904403 2134 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 2135
fa336b91
SM
21362001-11-16 Stefan Monnier <monnier@cs.yale.edu>
2137
2138 * fileio.c (choose_write_coding_system): New fun, extracted
2139 from Fwrite_region.
2140 (Fwrite_region): Use it.
2141
2142 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
2143 (funcall_lambda, run_hook_with_args): Make static and add prototype.
2144 (ml_apply, find_handler_clause): Add prototype.
2145
077907d4
EZ
21462001-11-16 Eli Zaretskii <eliz@gnu.org>
2147
aa2af83a
EZ
2148 * config.in: Add #undef HAVE_COFF_H.
2149
077907d4
EZ
2150 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
2151 Required for ISC 4.1.
2152
1756e2fb
EZ
21532001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
2154
2155 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
2156 Andrew Wiseman <a.wiseman@btclick.com>.
2157
06e8f738
KS
21582001-11-16 Kim F. Storm <storm@cua.dk>
2159
2160 The following changes are made to clean up the various internal
2161 references to the fringes to actually use the term `fringe' for
2162 them. Previously, they were called `flags areas', `bitmap areas',
2163 `left/right side of windows', or implicitly as `flags' or
2164 `bitmaps':
2165
2166 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
2167 Comments fixed. Use renamed symbols.
fa336b91 2168
06e8f738 2169 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 2170
06e8f738
KS
2171 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
2172 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
2173 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 2174
06e8f738 2175 * msdos.c: Comment fix.
fa336b91 2176
06e8f738 2177 * w32fns.c: Use renamed symbols.
fa336b91 2178
06e8f738
KS
2179 * w32term.c: Comment fixes. Use renamed symbols.
2180 (fringe_bitmap_type): Renamed from bitmap_type.
2181 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2182 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
2183 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 2184
06e8f738
KS
2185 * w32term.h: Comment fixes. Use renamed symbols.
2186 (fringes_extra): Renamed from flags_areas_extra.
2187 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2188 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2189 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2190 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
2191 (FRAME_X_LEFT_FRINGE_WIDTH):
2192 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2193 (FRAME_X_RIGHT_FRINGE_WIDTH):
2194 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
2195
06e8f738 2196 * widget.c: Use renamed symbols.
fa336b91 2197
06e8f738
KS
2198 * window.c: Comment fixes. Use renamed symbols.
2199 (coordinates-in-window-p): Doc fix.
fa336b91 2200
06e8f738 2201 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 2202
06e8f738 2203 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 2204
06e8f738 2205 * xfns.c: Use renamed symbols.
fa336b91 2206
06e8f738
KS
2207 * xterm.c: Comment fixes. Use renamed symbols.
2208 (fringe_bitmap_type): Renamed from bitmap_type.
2209 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2210 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
2211 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2212
2213 * xterm.h: Comment fixes. Use renamed symbols.
2214 (fringes_extra): Renamed from flags_areas_extra.
2215 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2216 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2217 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2218 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
2219 (FRAME_X_LEFT_FRINGE_WIDTH):
2220 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2221 (FRAME_X_RIGHT_FRINGE_WIDTH):
2222 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 2223
9ce647f4
JR
22242001-11-15 Jason Rumney <jasonr@gnu.org>
2225
2226 * w32menu.c (add-menu-item): Make help_echo and radio buttons
2227 work for most menu items. From David Ponce
2228 <david.ponce@wanadoo.fr>.
2229
9b784ab8
GM
22302001-11-15 Gerd Moellmann <gerd@gnu.org>
2231
9f7e52b4
GM
2232 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
2233 Some x_set_* function expect to be called even if old and new
2234 value are equal.
2235
2236 * xdisp.c (build_desired_tool_bar_string): Accept zero
2237 tool_bar_button_relief.
2238
2239 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
2240
2241 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 2242
34e5d0af
GM
2243 * xterm.c (x_draw_bar_cursor): If the background color of the
2244 glyph under the cursor equals the frame's cursor color, use
2245 the glyph's foreground color for drawing the bar cursor.
2246
9b784ab8
GM
2247 * dispnew.c (direct_output_forward_char): Fix character/byte
2248 position comparison.
2249
89512fcd
MB
22502001-11-15 Miles Bader <miles@gnu.org>
2251
2252 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
2253 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
2254 Update arguments to find_field.
2255 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
2256 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
2257 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
2258 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
2259
7d18891d
RS
22602001-11-14 Richard M. Stallman <rms@gnu.org>
2261
d2936d21
RS
2262 * editfns.c (Fpropertize): Allow call with 1 arg.
2263
7d18891d
RS
2264 * dispextern.h (image_background, image_background_transparent):
2265 Conditionalize on HAVE_X_WINDOWS.
2266
22672001-11-13 Richard M. Stallman <rms@gnu.org>
2268
2269 * print.c (Fprin1_to_string): Doc fix.
2270
2271 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
2272
2273 * floatfns.c (Fceiling, Ffloor): Doc fixes.
2274
2275 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
2276
2277 * fileio.c (Ffile_accessible_directory_p): Doc fix.
2278
2279 * eval.c (syms_of_eval): Doc fix.
2280
2281 * coding.c (syms_of_coding): Doc fix.
2282
2283 * doc.c (Fsnarf_documentation): Doc fix.
2284
2285 * dispnew.c (syms_of_display): Doc fix.
2286
2287 * category.c (Fget_unused_category): Doc fix.
2288
2289 * buffer.c (syms_of_buffer): Doc fixes.
2290
9474c847
EZ
22912001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
2292
2293 * print.c (prin1, print): Doc fix.
2294
e4ac8240 22952001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e3059a5d 2296
2b6f3c2b 2297 * fontset.h: Remove declarations of variables
e3059a5d
PJ
2298 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
2299
2300 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
2301 `Vclip_large_size_font'.
2302
b3700ae7
JR
23032001-11-13 Jason Rumney <jasonr@gnu.org>
2304
2305 * w32fns.c: Doc fix.
2306
e4ac8240 23072001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eae936e2 2308
4bb962be
PJ
2309 * xfaces.c (Fface_attributes_as_vector): Doc fix.
2310
0a332240
PJ
2311 * w32fns.c (Fx_synchronize): Reindent.
2312
ddb67bdc
PJ
2313 * fns.c: Doc fix.
2314
3467c402
PJ
2315 * emacs.c: Doc fix.
2316
2317 * coding.c: Doc fix.
2318
6e1b91d7
PJ
2319 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
2320 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
2321 `new style' [w/`doc:' keyword].
2322
f6e34773
PJ
2323 * xmenu.c (x-popup-menu): Reindent.
2324 (x-popup-dialog): Likewise.
2325
fa336b91 2326 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
c71f3632 2327
c2552f79
PJ
2328 * xdisp.c (Fdump_tool_bar_row): Reindent.
2329
94c7167b
PJ
2330 * minibuf.c (Fminibuffer_complete_word): Reindent.
2331 (Fminibuffer_complete_and_exit): Likewise.
fa336b91 2332 (Fminibuffer_completion_help): Likewise.
94c7167b
PJ
2333 (Fminibuffer_message): Likewise.
2334
462a5e3a
PJ
2335 * fns.c (Freverse): Reindent.
2336
b8de5714
PJ
2337 * eval.c (Fif): Reindent.
2338 (Fand): Likewise.
2339
deb8e082
PJ
2340 * editfns.c (Fuser_real_login_name): Reindent.
2341 (Finsert_buffer_substring): Likewise.
2342 (Fcompare_buffer_substrings): Likewise.
2343 (Fsubst_char_in_region): Likewise.
2344
bacf09b4
PJ
2345 * dispnew.c (Fsit_for): Reindent.
2346 (Fframe_or_buffer_changed_p): Likewise.
2347 (Finternal_show_cursor_p): Likewise.
2348 (syms_of_display): Likewise.
2349
eae936e2
PJ
2350 * alloc.c (Flist): Reindent.
2351 (Fvector): Likewise.
2352
1c1d3d69
RS
23532001-11-12 Richard M. Stallman <rms@gnu.org>
2354
2355 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
2356 LeaveNotify events. Only FocusIn and FocusOut do that now.
2357 (x_display_and_set_cursor): Do display hollow cursors in active
2358 minibuffer windows when they are not selected.
2359
b6f4c7ba
JR
23602001-11-12 Jason Rumney <jasonr@gnu.org>
2361
2362 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
2363 * w32term.c: Change doc-string comments to `new style'.
2364 [w/`doc:' keyword]. Doc fixes.
2365
2366 * w32fns.c: Don't define max.
2367 (Fx_open_connection): Only execute once.
2368
e4ac8240 23692001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a89f435d
PJ
2370
2371 * ccl.c: Change macros to use do-while block instead of if-else.
2372 Use braces to follow GNU Coding Standards.
2373
a4cd0cd7
RS
23742001-11-11 Richard M. Stallman <rms@gnu.org>
2375
eafb659a
RS
2376 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
2377
2378 * lread.c (read_escape): Use end_of_file_error for reporting eof.
2379
a4cd0cd7
RS
2380 * insdel.c (replace_range): Use adjust_markers_for_replace
2381 instead of adjust_markers_for_delete and adjust_markers_for_insert.
2382
2383 * intervals.h: Declare set_text_properties and set_text_properties_1.
2384
2385 * textprop.c (set_text_properties_1): New subroutine
2386 broken out of set_text_properties.
2387 (set_text_properties): Use set_text_properties_1.
2388
2389 * intervals.c (graft_intervals_into_buffer):
2390 Use set_text_properties_1 to clear out properties.
2391
2392 * search.c (Freplace_match): Use replace_range to insert
2393 and delete. Don't request property inheritance from
2394 surrounding text.
2395
91823618
JR
23962001-11-10 Jason Rumney <jasonr@gnu.org>
2397
2398 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
2399 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 2400 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 2401
86928dfb
GM
24022001-11-10 Gerd Moellmann <gerd@gnu.org>
2403
fa336b91 2404 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
2405 instead of malloc/free.
2406
e4ac8240 24072001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 2408
ab8469eb
PJ
2409 * xfaces.c (merge_face_vectors): Use braces to follow GNU
2410 Coding Standards.
2411 (Finternal_set_lisp_face_attribute): Likewise.
2412
a78e0303
PJ
2413 * buffer.c (Fbury_buffer): Likewise.
2414
40ef1eda
PJ
2415 * indent.c (current_column_1): Remove unused variable `prev_col'.
2416
fabf4a91
PJ
2417 * coding.c (encode_coding): Use precomputed value of `src'.
2418 (encode_coding): Remove unused variable `src_end'.
2419 (code_convert_region): Remove unused variables `count'.
2420
0c99b139
JR
24212001-11-07 Jason Rumney <jasonr@gnu.org>
2422
2423 * w32term.c (x_display_and_set_cursor): Do not move system caret
2424 if cursor_glyph is NULL.
2425
e4ac8240 24262001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
830ddd77
PJ
2427
2428 * keymap.c (access_keymap): Fix compilation error.
2429
55c6d645
MB
24302001-11-07 Miles Bader <miles@gnu.org>
2431
2432 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
2433
e4ac8240 24342001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5de38842 2435
7a4564a4
PJ
2436 * intervals.c (graft_intervals_into_buffer):
2437 Remove #ifdef'd-out code.
2438 (graft_intervals_into_buffer): Remove unused variable `middle'.
2439
5de38842
PJ
2440 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
2441 code (eval-current-buffer).
2442 Change doc-string comments to `new style' [w/`doc:' keyword].
2443
4fa23df5
RS
24442001-11-06 Richard M. Stallman <rms@gnu.org>
2445
2446 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
2447
7a6a97d7
SM
24482001-11-06 Stefan Monnier <monnier@cs.yale.edu>
2449
c191d13c
SM
2450 * lread.c (read1): Fix behavior with nested backquoting.
2451
7a6a97d7
SM
2452 * keyboard.c (make_lispy_event): Check integerness and fix
2453 Lisp_Object/int mixup.
2454
e4ac8240 24552001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
44dc78e0
PJ
2456
2457 * fns.c (copy_hash_table): Remove unused variable `v'.
2458
17893c65
PJ
2459 * fontset.c (fontset_font_pattern): Remove unused variable
2460 `family_registry'.
2461
4d994a79
PJ
2462 * indent.c (current_column_1): Remove unused variable `prev_col'.
2463
d5360cc7
RS
24642001-11-05 Richard M. Stallman <rms@gnu.org>
2465
2466 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
2467
2468 * buffer.c (Fkill_buffer): Don't delete auto save file
2469 if buffer is modified.
2470
96238a5a
AI
24712001-11-05 Andrew Innes <andrewi@gnu.org>
2472
2473 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
2474 CHECK_NUMBER_CDR.
2475
d9d54213
RS
24762001-11-05 Richard M. Stallman <rms@gnu.org>
2477
2478 * unexelf.c (unexec): Minor changes; clean up comments.
2479
b116830b
SS
24802001-11-05 Sam Steingold <sds@gnu.org>
2481
2482 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
2483
3297e2a1
AS
24842001-11-05 Andreas Schwab <schwab@suse.de>
2485
2486 * sound.c (sound_perror): Save errno from being clobbered.
2487
9212319f 24882001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
2489
2490 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
2491 the program image directly.
2492
e4ac8240 24932001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7dd73b78
PJ
2494
2495 * buffer.h (Fbuffer_local_value): Add prototype.
2496
982f6c7e
RS
24972001-11-04 Richard M. Stallman <rms@gnu.org>
2498
d31053f9
RS
2499 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
2500 and CHECK_BUFFER.
2501
2502 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
2503 (record_char): Likewise.
2504
2505 * keyboard.c (make_lispy_event): Don't insist a drag event must
2506 move to a different buffer position. Instead, check for moving at
2507 least double_click_fuzz.
2508
2509 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
2510
2511 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
2512
982f6c7e
RS
2513 * indent.c (current_column_1, Fmove_to_column): Separate the code
2514 for display-table glyphs from the code buffer text, to fix
2515 bugs in the former.
2516
830047fd
RS
25172001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
2518
2519 * buffer.c (Fbuffer_local_value): New function.
c191d13c 2520 (syms_of_buffer): Defsubr it.
b116830b 2521
830047fd
RS
2522 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
2523 value of `cursor-in-non-selected-windows'.
2524
2525 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
2526 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
2527 (syms_of_xdisp): Initialize it.
b116830b 2528
e4ac8240 25292001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 2530
4e397688
PJ
2531 * xfns.c (Fx_create_frame): Doc fix.
2532
48b0f3ae
PJ
2533 * coding.c: Change doc-string comments to `new style' [w/`doc:'
2534 keyword].
2535
2df5238c
PJ
2536 * eval.c (top_level_value, top_level_set): Remove commented and
2537 #ifdef'd-out code.
2538 (Fdefvar): Fix usage in doc-string.
2539
3ecaf7e5
RS
25402001-11-03 Richard M. Stallman <rms@gnu.org>
2541
2542 * xfns.c: Include unistd.h, if it exists.
2543
2544 * editfns.c: Move the include of ctype.h after unistd.h.
2545
2546 * gmalloc.c: Test BROKEN_PROTOTYPES.
2547
8db2e33b
KR
25482001-11-03 Ken Raeburn <raeburn@gnu.org>
2549
2550 * lisp.h (CHECK_STRING_CAR): New macro.
2551 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
2552 treating XCAR and XCDR as lvalues.
2553 (openp): Use CHECK_STRING_CAR.
2554 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
2555
aed29b97
EZ
25562001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
2557
2558 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 2559 (SIGMASKTYPE): Define.
aed29b97
EZ
2560
2561 * syssignal.h (sigunblock): Don't define if already defined.
2562
e4ac8240 25632001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6cb16f95 2564
16b45be4
EZ
2565 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
2566 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
2567 Fix typos in comments.
2568
020f9b38
PJ
2569 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
2570 and #ifdef'd-out code.
2571 Fix and reindent comments.
2572
c191d13c 2573 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 2574
6cb16f95
PJ
2575 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
2576 argument `i' in macros.
2577
2578 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
2579 `i' in macros.
2580
16b45be4
EZ
2581 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2582 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
2583 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
2584 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
2585 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
2586 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2587 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
2588 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
2589 in macros.
2590
2591 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
153c2160
PJ
2592 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
2593 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
2594 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
2595 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
2596 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
2597 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
2598 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
2599 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6cb16f95
PJ
2600 (remove unused second argument).
2601
7e9d3c2f
SM
26022001-11-02 Stefan Monnier <monnier@cs.yale.edu>
2603
2604 * syntax.c (describe_syntax): New wrapper.
2605 (Finternal_describe_syntax_value): Rename from describe_syntax.
2606 Don't insert space at front and \n at the end.
2607 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
2608
2609 * regex.c (re_wctype): Try to fix some warnings.
2610 (regcomp, regexec): Don't forget the __restrict.
2611
e6bff182
RS
26122001-11-02 Richard M. Stallman <rms@gnu.org>
2613
2614 * textprop.c (Fget_char_property): Doc fix.
2615
e4ac8240 26162001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103
PJ
2617
2618 * process.c (Fstart_process): Add usage to doc-string.
2619
2620 * data.c (Fsetq_default): Ditto.
2621
2622 * callint.c (Finteractive): Ditto.
2623
c22e59e1
SM
26242001-11-01 Stefan Monnier <monnier@cs.yale.edu>
2625
2626 * macros.c: Don't include keymap.h any more.
2627
9271ed2c
RS
26282001-11-01 Richard M. Stallman <rms@gnu.org>
2629
e6bff182
RS
2630 * data.c (Fmake_local_variable): Doc fix.
2631
2632 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
2633 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
2634
9271ed2c
RS
2635 * keymap.c (Fdescribe_buffer_bindings): Print character property
2636 bindings along with or instead of the buffer local map.
2637 Make the overriding maps override what they should.
2638
e4ac8240 26392001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
2640
2641 * window.c (grow_mini_window): Fix typo in comment.
2642
27188d11
GM
26432001-11-01 Gerd Moellmann <gerd@gnu.org>
2644
7b49b9d2
GM
2645 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
2646 (XTset_vertical_scroll_bar): Likewise.
2647
43f7c3ea
GM
2648 * xfns.c (x_build_heuristic_mask): Use four_corners_best
2649 instead of IMAGE_BACKGROUND.
c22e59e1 2650
b350c2e5
GM
2651 * xfns.c (four_corners_best): Reindent.
2652
c22e59e1 2653 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
2654 Handle :box so that it is possible to specify sexprs.
2655
e4ac8240 26562001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d576358b
PJ
2657
2658 * xfaces.c (Finternal_merge_in_global_face): Reindent.
2659 (Fface_font): Ditto.
2660 (Finternal_set_alternative_font_registry_alist): Ditto.
2661 (Ftty_suppress_bold_inverse_default_colors): Ditto.
2662
2663 * xfns.c (x-get-resource): Reindent.
2664
bf00d461
EZ
26652001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
2666
2667 * s/hpux11.h: New file.
2668
e4ac8240 26692001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 2670
2b209b97
PJ
2671 * emacs.c (USAGE1): Show command line option --no-window-system
2672 instead of --no-windows in usage.
2673 (standard_args): Rename --no-windows to --no-window-system.
2674 (bug_reporting_address): Follow Emacs coding conventions.
2675
9dbc9081
PJ
2676 * eval.c (Fcommandp): Doc fix.
2677 Change doc-string comments to `new style' [w/`doc:' keyword].
2678
4e10df59
PJ
2679 * frame.c (Fframe_live_p): Doc fix.
2680
2681 * buffer.c (selective-display-ellipses): Doc fix.
2682
dd387b25
GM
26832001-10-31 Gerd Moellmann <gerd@gnu.org>
2684
fe957e65
GM
2685 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
2686
dd387b25
GM
2687 * xfaces.c (realize_x_face): If C is not a single-byte character,
2688 set the face's colors_copied_bitwise_p instead of the defaulted_p
2689 members which have a different meaning.
2690 (free_face_colors): Do nothing for a face whose colors have been
2691 copied bitwise.
2692
c22e59e1 2693 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 2694
e4ac8240 26952001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 2696
687784e8
PJ
2697 * marker.c, mocklisp.c: Change doc-string comments to `new style'
2698 [w/`doc:' keyword].
2e1280f8 2699
b9d9a9b9
GM
27002001-10-31 Gerd Moellmann <gerd@gnu.org>
2701
2702 * fns.c (require_unwind): Return Lisp_Object.
2703
e4ac8240 27042001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 2705
fa1361cb
PJ
2706 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
2707 (last-input-char): Revert doc-string to be the same as the
2708 doc-string of `last-input-event'.
2709
48400103
PJ
2710 * xdisp.c: Fix typos in comments.
2711
eafa3196
GM
27122001-10-31 Gerd Moellmann <gerd@gnu.org>
2713
2714 * window.c (grow_mini_window): Handle case that the root
2715 window is already smaller than the nominal mininum height.
2716
747d3f2a
SM
27172001-10-30 Stefan Monnier <monnier@cs.yale.edu>
2718
bf9bb76f
SM
2719 * emacs.c (main): Don't call keys_of_macros any more.
2720
2721 * lisp.h (keys_of_macros): Remove.
2722
2723 * macros.c (keys_of_macros): Remove.
2724
747d3f2a
SM
2725 * xfaces.c (Fface_attribute_relative_p): Declare args.
2726
5e905a57
JR
27272001-10-30 Jason Rumney <jasonr@gnu.org>
2728
2729 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
2730 (enum_font_cb2): Ignore fonts with vertical orientation.
2731
3a426197
RS
27322001-10-30 Richard M. Stallman <rms@gnu.org>
2733
2734 * keyboard.c (Finput_pending_p): Doc fix.
2735
a742d646
GM
27362001-10-30 Gerd Moellmann <gerd@gnu.org>
2737
259cf6bc
GM
2738 * xterm.c (x_after_update_window_line): Don't run the code
2739 clearing in borders for rows whose visible height is 0.
2740
3f99f948
GM
2741 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
2742 resized_p flag is set. If not set, use the much less flickering
2743 method previously used.
2744
2745 * dispnew.c (change_frame_size_1): Set frame's resized_p.
2746
2747 * frame.h (struct frame) <resized_p>: New member.
2748
b4a3be43
GM
2749 * lread.c (to_multibyte): Ensure read_buffer is at least twice
2750 as large as the number of bytes to convert.
747d3f2a 2751
a742d646
GM
2752 * lread.c (to_multibyte): New function.
2753 (read1): Use it.
2754
cacbb9e9
EZ
27552001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
2756
2757 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2758
99cb6b2f
GM
27592001-10-30 Gerd Moellmann <gerd@gnu.org>
2760
327f42ee 2761 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
2762 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2763 if the row's fill_line_p is set and drawing the last glyph with
2764 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 2765
99cb6b2f
GM
2766 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2767
8e8223e2
SM
27682001-10-29 Stefan Monnier <monnier@cs.yale.edu>
2769
2770 * xmenu.c: Include coding.h and charset.h.
2771 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2772 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2773 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
2774 Explicitly set wv->help. Use `TRUE' rather than `True'.
2775 (menu_help_callback): Use empty_string.
2776
2777 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
2778 (Fx_popup_dialog): Explicitly init f.
2779 (w32_menu_display_help): Use empty_string.
2780
4d083a8f
RS
27812001-10-29 Richard M. Stallman <rms@gnu.org>
2782
b2304472
RS
2783 * fns.c (Frequire): Detect recursive try to require the same
2784 feature 3 or more levels deep, and get error.
2785 (require_unwind): New subroutine.
2786 (require_nesting_list): New variable.
2787 (syms_of_fns): Init and staticpro it.
2788
4d083a8f
RS
2789 * print.c (print_object): Clarify indication of insertion type.
2790
2fe41216
EZ
27912001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2792
90480000
EZ
2793 * coding.c (syms_of_coding): Document that locale-coding-system is
2794 used for decoding input on X.
2795
2fe41216
EZ
2796 * window.c (Fscroll_left, Fscroll_right): Doc fix.
2797
e4ac8240 27982001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
2799
2800 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2801 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2802
60ebcfe8
GM
28032001-10-29 Gerd Moellmann <gerd@gnu.org>
2804
9a7bdceb
GM
2805 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
2806 use NO_CURSOR if cursor_in_non_selected_windows is false.
2807
3f08fcd2
GM
2808 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
2809 the slant attribute if FRAME is t.
2810
0ccfdad2
GM
2811 * xfns.c (x_set_internal_border_width): Set frame garbaged
2812 when X window doesn't exist yet.
2813
ef253080
GM
2814 * xterm.c (x_after_update_window_line): Clear internal border
2815 in different circumstances.
b116830b 2816
60ebcfe8
GM
2817 * xterm.c (XTread_socket) <KeyPress>: Don't use
2818 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
2819 <handa@etl.go.jp>.
2820
73d25f9c
EZ
28212001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
2822
2823 * m/ibms390.h: New file. From Adam Thornton
2824 <athornton@sinenomine.net>.
2825
cac1daf0
GM
28262001-10-28 Gerd Moellmann <gerd@gnu.org>
2827
053b3256 2828 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 2829
cac1daf0
GM
2830 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
2831 a loop counter.
2832
e4ac8240 28332001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 2834
186486eb
PJ
2835 * emacs.c: Use argv[0] instead of emacs when -t was specified.
2836
4707d2d0
PJ
2837 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
2838 keyword].
2839 Fix typos in comments.
b116830b 2840
d883731c
PJ
2841 * emacs.c (bug_reporting_address): New function.
2842 Use it when displaying usage message.
2843
04012254
PJ
2844 * minibuf.c (read_minibuf): Remove unused external declaration of
2845 variable `Qread_only'.
2846
13b1a09c
PJ
2847 * keymap.c (access_keymap): Remove unused variable `charset'.
2848
5bbf4378
MB
28492001-10-28 Miles Bader <miles@gnu.org>
2850
2851 * xfaces.c (merge_face_heights): Handle TO being relative as well.
2852 Remove #ifdef'd-out code.
2853 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
2854 (syms_of_xfaces): Initialize them.
2855
1ce1e4ee
JR
28562001-10-27 Jason Rumney <jasonr@gnu.org>
2857
2858 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
2859 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
2860 position using the system caret.
2861
2862 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
2863 (w32_system_caret_height, w32_system_caret_x)
2864 (w32_system_caret_y): New variables for tracking system caret.
2865 (w32_initialize): Initialize them.
c2d53558 2866 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 2867
c2d53558
SM
2868 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
2869 New messages types.
1ce1e4ee
JR
2870
2871 * w32term.c (note_mouse_highlight): Clear old help_echo.
2872
e4ac8240 28732001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 2874
bb4600a4
PJ
2875 * xterm.c: Fix typo in a comment.
2876
7db35a48
PJ
2877 * emacs.c: Fix typos in comments.
2878 Remove unnecessary spaces.
2879 Change doc-string comments to `new style' [w/`doc:' keyword].
2880 (USAGE2): Fix typos in usage string.
2881
a7248e4f
PJ
2882 * xterm.c: Fix typo in a comment.
2883
4e30ce42
PJ
2884 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
2885 emacs.c.
2886
62725a92
GM
28872001-10-27 Gerd Moellmann <gerd@gnu.org>
2888
798dbe1f 2889 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 2890 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
2891 farther backward when target_y was not reached.
2892
62725a92
GM
2893 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
2894 Display errno only if non-zero.
2895 (sound_warning): New function.
2896 (vox_configure): Don't treat failing to set sample rate as error.
2897 (various places): Improve error messages.
2898
d4e34d24
EZ
28992001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
2900
944e6f60
EZ
2901 * fileio.c (Faccess_file): Run the argument filename through
2902 Fexpand_file_name, before using it.
2903
d4e34d24
EZ
2904 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
2905 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
2906
38d2af0c
GM
29072001-10-26 Gerd Moellmann <gerd@gnu.org>
2908
da80a8d5
GM
2909 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
2910
38d2af0c
GM
2911 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2912 Fix clearing in the case of scroll bars on the right.
c2d53558 2913
56f508dd
EZ
29142001-10-26 Juanma Barranquero <lektu@terra.es>
2915
2916 * w32gui.h (XImage): Add a dummy typedef.
2917
fbd5ceb2
GM
29182001-10-26 Gerd Moellmann <gerd@gnu.org>
2919
c2d53558 2920 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 2921
b23236fb
EZ
29222001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
2923
2924 * frame.c (Fframe_parameter): Fix last change.
2925
5d991fc4
EZ
2926 * fileio.c: Revert last change (which removed old commented-out
2927 version of expand-file-name). Add a comment that explains why
2928 this old version should not be removed.
2929
879eadc3
GM
29302001-10-25 Gerd Moellmann <gerd@gnu.org>
2931
75700ff2
GM
2932 * frame.c (Fframe_parameter): Fix a bug whereby some
2933 ``artificial'' frame parameters, like `minibuffer' were not
2934 obtained by calling Fframe_parameters.
2935
dfe92a6a
GM
2936 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
2937 cursor differently.
2938
879eadc3
GM
2939 * xdisp.c (move_it_vertically_backward): Compute line height
2940 differently. Add heuristic to try to be more compatible to 20.x.
2941
e1010ebe
SM
29422001-10-25 Stefan Monnier <monnier@cs.yale.edu>
2943
d73a471b
SM
2944 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
2945
d6da5a06
GM
2946 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
2947 boolean.
e1010ebe 2948
f66bd220
MB
29492001-10-25 Miles Bader <miles@gnu.org>
2950
2951 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
2952 BG is a pointer to a structure, not a structure.
2953 (gif_format, png_format): Add missing commas.
2954
d436d538
RS
29552001-10-24 Richard M. Stallman <rms@gnu.org>
2956
2957 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 2958 (syms_of_xfaces): Defsubr it.
d436d538 2959
e4ac8240 29602001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
2961
2962 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
2963 variable `area'.
2964
e4ac8240 29652001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 2966
c2d53558 2967 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 2968
e2a57b34
MB
29692001-10-25 Miles Bader <miles@gnu.org>
2970
2971 * dispextern.h (struct image): Add `background',
2972 `background_valid', and `background_transparent' fields.
2973 (image_background, image_background_transparent): New declarations.
2974 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
2975 * xfns.c (image_background, image_background_transparent)
2976 (four_corners_best): New functions.
c2d53558 2977 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
2978 (gs_format): Add `:background' entry.
2979 (lookup_image): Set IMG's background color if specified.
2980 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2981 when appropriate.
2982 (x_clear_image_1): Reset `background_valid' and
2983 `background_transparent_valid' fields.
2984 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2985 calculating it here. Set IMG's background_transparent field.
2986 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2987 (enum png_keyword_index): Add PNG_BACKGROUND.
2988 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2989 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2990 (enum gif_keyword_index): Add GIF_BACKGROUND.
2991 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 2992 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
2993 Pre-calculate image background color where necessary.
2994 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2995 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2996 color to use for image glyph reliefs.
2997
b547b6e8
GM
29982001-10-24 Gerd Moellmann <gerd@gnu.org>
2999
d9e3b8c6
GM
3000 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
3001 in full-width rows.
c2d53558 3002
b547b6e8
GM
3003 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3004 Fix clearing of area not covered by scroll bar.
3005
e4ac8240 30062001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
3007
3008 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
3009 and `real_start'.
c2d53558 3010 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
3011 (glyph_rect): Remove unused variable `area'.
3012
76cb5e06
GM
30132001-10-24 Gerd Moellmann <gerd@gnu.org>
3014
bdbdebff 3015 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
3016
3017 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
3018 (row_containing_pos): Take additional argument DY.
3019 Treat rows ending in middle of char differently.
62e33982
GM
3020 (display_line): Handle tabs on window systems differently.
3021
3022 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
3023 with additional argument.
3024
3025 * dispextern.h (row_containing_pos): Adjust prototype.
3026
76cb5e06
GM
3027 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
3028 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
3029 (try_window_id, try_window_reusing_current_matrix)
3030 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
3031 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
3032
e4ac8240 30332001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 3034
c9e60620
PJ
3035 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
3036 gnuemacs).
3037 (HAVE_BOXES): Fix typo in comment.
3038 (push_menu_pane): Fix typo in comment.
3039
3b552d56
PJ
3040 * xdisp.c: (display_prop_string_p): Remove unused local declaration
3041 of `Qwhen'.
3042 (single_display_prop_string_p): Remove unused local declarations
3043 of `Qwhen' and `Qmargin'.
3044 (string_buffer_position): Remove unused variable `around'.
3045 (store_frame_title): Remove unused variable `width'.
3046
15c565ac
PJ
3047 * window.c: Don't define max.
3048 (coordinates_in_window): Remove unused variable `uy'.
3049
a8818eb9
PJ
3050 * widget.c: Don't define max.
3051
996fee11
PJ
3052 * process.c: Don't define max.
3053 (create_process): Remove unused variable `buffer'.
3054
496e1a5b
GM
30552001-10-23 Gerd Moellmann <gerd@gnu.org>
3056
c2d53558 3057 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 3058
5905ae8b
EZ
30592001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
3060
3061 * xfaces.c (Finternal_set_lisp_face_attribute)
3062 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
3063 frame is on a windowed display.
3064
24db49fb
GM
30652001-10-23 Gerd Moellmann <gerd@gnu.org>
3066
c2d53558
SM
3067 * dispnew.c (sync_window_with_frame_matrix_rows):
3068 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
3069 of marginal areas.
3070
c2d53558 3071 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 3072
f0487f05
EZ
30732001-10-23 Andreas Schwab <schwab@suse.de>
3074
3075 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
3076 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
3077
f0a48a01
GM
30782001-10-23 Gerd Moellmann <gerd@gnu.org>
3079
c2d53558 3080 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
3081 REAL_END. Notice if cursor gets overwritten.
3082 (notice_overwritten_cursor): Take X positions as parameters.
3083 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3084 around call to x_draw_glyphs.
3085
e4ac8240 30862001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 3087
fc11dff0
PJ
3088 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
3089 instead of C) and usage.
a50a10a0 3090
fc11dff0
PJ
3091 * editfns.c (char-to-string): Fix argument names (use CHAR instead
3092 of C) and usage.
a50a10a0
PJ
3093
3094 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
3095 `left', `max_width' and `max_height'.
3096
8738febd
GM
30972001-10-23 Gerd Moellmann <gerd@gnu.org>
3098
3099 * xdisp.c (display_line): For a tab continued to the next line,
3100 set row's ends_in_middle_of_char_p.
3101
653c329b
GM
31022001-10-22 Gerd Moellmann <gerd@gnu.org>
3103
3104 * xdisp.c (display_line): Fix computation of continuation lines
3105 width for TABs.
3106
e4ac8240 31072001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 3108
7ba51063
PJ
3109 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
3110 `Qlaplace'.
3111
f958c5ac
PJ
3112 * fileio.c: Remove unused code.
3113
eb360291
MB
31142001-10-22 Miles Bader <miles@gnu.org>
3115
3116 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3117 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
3118 Remove `DOC_STRINGS_IN_COMMENTS' cases.
3119
98515cf0
JR
31202001-10-21 Jason Rumney <jasonr@gnu.org>
3121
3122 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
3123
93026d88
EZ
31242001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3125
3126 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
3127 (Finsert_string): Avoid the multi-line string literals warning.
3128
c9a95b79
MB
31292001-10-22 Miles Bader <miles@gnu.org>
3130
3131 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
3132 (Fdocumentation): Don't use it.
3133 (syms_of_doc): Don't initialize it.
3134
3135 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
3136 * print.c (Fwith_output_to_temp_buffer): Likewise.
3137 * window.c (Fsave_window_excursion): Likewise.
c2d53558 3138 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 3139 (Fsave_restriction): Likewise.
c2d53558
SM
3140 * eval.c (Frun_hooks, Frun_hook_with_args)
3141 (Frun_hook_with_args_until_failure)
3142 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
3143 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
3144 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
3145 (Funwind_protect, Fcondition_case): Likewise.
3146 * coding.c (Ffind_operation_coding_system): Likewise.
3147 * keyboard.c (Ftrack_mouse): Likewise.
3148
a3b10252
MB
31492001-10-21 Miles Bader <miles@gnu.org>
3150
c2d53558 3151 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
3152 (Fmake_hash_table): Add usage: string to doc string.
3153 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 3154 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
3155 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
3156 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
3157 (Fml_prefix_argument_loop): Likewise.
3158
e4ac8240 31592001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 3160
c2d53558 3161 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 3162
c6f73eec
PJ
3163 * sysdep.c (init_sys_modes): Change doc-string comments to `new
3164 style' [w/`doc:' keyword].
3165
3166 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
3167 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
3168 comments to `new style' [w/`doc:' keyword].
3169
3cf3436e
JR
31702001-10-21 Jason Rumney <jasonr@gnu.org>
3171
3172 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
3173
c169b8f1
JR
3174 * w32term.c (remember_mouse_glyph): New function.
3175 (w32_mouse_position): Use it.
3176 (note_mouse_movement): If the mouse moved off the glyph, remember
3177 its new position.
c2d53558 3178
4fdd691b
JR
3179 * w32term.h (struct w32_output): Correct spelling of x_compatible.
3180 (w32_display_info): Add mouse_face_overlay.
3181
c169b8f1
JR
3182 * w32term.c (notice_overwritten_cursor): Renamed from
3183 note_overwritten_text_cursor. Rewritten to take glyph widths into
3184 account.
3185 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3186 (fast_find_string_pos): New function.
3187 (fast_find_position): Return the correct vpos. Add parameter
3188 STOP. In the final row, stop before glyphs having STOP as object.
3189 Don't consider glyphs that are not from a buffer.
3190 (fast_find_position) [0]: Add a presumably more correct version
3191 for after 21.1.
3192 (expose_window_tree, expose_frame): Don't compute intersections here.
3193 (expose_window): Do it here instead.
3194 (expose_window_tree, expose_window, expose_line): Return 1 when
3195 overwriting mouse-face.
3196 (expose_window): If W is the window currently being updated, mark
3197 the frame garbaged.
3198 (expose_frame): If mouse-face was overwritten, redo it.
3199 (x_use_underline_position_properties): New variable.
3200 (syms_of_xterm): DEFVAR_BOOL it.
3201 (x_draw_glyph_string): Add comment to use it in future.
3202 (x_draw_glyph_string): Restore clipping after drawing box.
3203 Fix a computation of the underline position.
3204 (w32_get_glyph_string_clip_rect): Minor cleanup.
3205 (x_fill_stretch_glyph_string): Remove an assertion.
3206 (x_produce_glyphs): Don't convert multibyte characters
3207 to unibyte characters in unibyte buffers.
3208 (cursor_in_mouse_face_p): New function.
3209 (x_draw_stretch_glyph_string): Use it to choose a different GC
3210 when drawing a cursor within highlighted text. Don't draw
3211 background again if it has already been drawn.
3212 (x_draw_glyph_string_box): Don't draw a full-width
3213 box just because the glyph row's full_width_p flag is set.
3214 (x_draw_glyphs): Fix computation of rightmost x for
3215 full-width rows.
3216 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3217 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
3218 change bottom shadow accordingly. Some cleanup.
3219 (x_update_window_end): Handle overwritten mouse face
3220 also for tool bar windows.
3221 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3222 DRAW is DRAW_IMAGE_RAISED.
3223 (clear_mouse_face): Return 1 if text with mouse face was
3224 actually redrawn. Make the function static. Reset
3225 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
3226 optimize away highlighting if we pass over that same overlay again.
3227 (note_mouse_highlight): Call mouse_face_overlay_overlaps
3228 to detect a case where we have to highlight a different region
3229 despite not having left the currently highlighted region.
3230 Set mouse_face_overlay in the x_display_info. Avoid changing the
3231 mouse pointer shape when show_mouse_face has already done it, or
3232 there is no need. Handle mouse-face and help-echo in strings.
3233 (glyph_rect): New function.
3234 (w32_mouse_position): Use it to raise the threshold for mouse
3235 movement event generation.
3236 (w32_initialize_display_info): Initialize the x_display_info's
3237 mouse_face_overlay.
3238 (w32_set_vertical_scroll_bar): Don't clear a zero height
3239 or width area.
3240 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3241 a widget to zero height.
3242
3cf3436e 3243 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 3244 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
3245 equivalents in menu_items.
3246 (w32_menu_show): Don't overwrite an item's name with its key
3247 description in case the description is a multibyte string.
3248 (single_submenu): Some cleanup.
3249
3250 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
3251 (postprocess_image): New function.
3252 (lookup_image): Call it for all image types except PostScript.
3253 (x_kill_gs_process): Call postprocess_image.
3254 (tiff_error_handler, tiff_warning_handler): New functions.
3255 (tiff_load): Install them as handlers.
3256 (x_kill_gs_process): Recognize if someone has cleared the image
3257 cache under us.
3258 (valid_image_p): Protect better against invalid image
3259 specifications. Previous code could signal an error.
3260 (Fx_hide_tip, Fshow_tip): Doc fix.
3261 (Fv_max_tooltip_size): New variable.
3262 (syns_of_xfns): DEFVAR_LISP it.
3263 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
3264 window buffer to *tip* right after creating the frame. Set frame's
3265 window_width. Use a maximum tooltip size specified by
3266 Vx_max_tooltip_size, if that has valid contents.
3267 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3268 Make sure the tooltip is completely visible.
3269 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3270 (Fx_create_frame): Adjust the frame's height for presence
3271 of the tool bar before calling x_figure_window_size.
3272 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
3273 when the window gets smaller.
3274 (x_set_foreground_color): Set frame's cursor_pixel.
3275 (x_set_foreground_color, x_set_background_color): Cleaned up.
3276 (x_set_font): Handle case of x_new_fontset returning the same name
3277 as before, although there was a change in fontsets.
3278
386ca361
MB
32792001-10-21 Miles Bader <miles@gnu.org>
3280
c2d53558 3281 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
3282 (Flogxor): Add usage: string to doc string.
3283 * charset.c (Fstring): Likewise.
3284 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
3285 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
3286
e4ac8240 32872001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 3288
03be2694
PJ
3289 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
3290
3291 * alloc.c: Reindent DEFUNs with doc: keywords.
3292
3293 * abbrev.c (Finsert_abbrev_table_description): Reindent.
3294
14ff1ee0
PJ
3295 * frame.c: Change doc-string comments to `new style' [w/`doc:'
3296 keyword].
3297
71431a0e
GM
32982001-10-20 Gerd Moellmann <gerd@gnu.org>
3299
6aa97356 3300 * (Version 21.1 released.)
71431a0e 3301
e4ac8240 33022001-10-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
39f624fa 3303
c2d53558 3304 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
c0a53abb
PJ
3305
3306 * xdisp.c (invisible_text_between_p): Put prototype inside #if
3307 0 because unused.
3308
3309 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
c2d53558
SM
3310 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
3311 Change doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 3312
abcce93a
MB
33132001-10-20 Miles Bader <miles@gnu.org>
3314
3315 The following changes remove the glyph_row `inverse_p' field,
3316 which is never set anymore, due to other changes:
3317
3318 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
3319 (reassert_line_highlight, change_line_highlight): Declarations removed.
3320 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
c2d53558
SM
3321 (line_hash_code, row_equal_p, fake_current_matrices)
3322 (build_frame_matrix_from_leaf_window, update_frame_line)
abcce93a
MB
3323 (update_frame_line, update_frame_line, update_frame_line):
3324 Don't use `inverse_p' field.
3325 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
3326 change_line_highlight_hook.
3327 (XTreassert_line_highlight, x_change_line_highlight):
3328 Functions removed.
c2d53558 3329 (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
3330 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
3331 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
3332 `inverse_p' field.
c2d53558 3333 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
3334 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
3335 (w32_reassert_line_highlight, x_change_line_highlight):
3336 Functions removed.
3337 * w32console.c (reassert_line_highlight, change_line_highlight):
3338 Functions removed.
3339 (initialize_w32_display): Don't set reassert_line_highlight_hook
3340 or change_line_highlight_hook.
3341 (hl_mode): Function removed.
c2d53558
SM
3342 (reset_terminal_modes, set_terminal_modes, update_begin)
3343 (update_end, w32_face_attributes, initialize_w32_display):
abcce93a
MB
3344 (clear_frame, ins_del_lines): Don't call it.
3345 * termhooks.h (reassert_line_highlight_hook)
3346 (change_line_highlight_hook): Declarations removed.
3347 * term.c (reassert_line_highlight_hook)
3348 (change_line_highlight_hook): Variables removed.
3349 (reassert_line_highlight, change_line_highlight): Functions removed.
3350 * msdos.c (IT_reassert_line_highlight)
3351 (IT_change_line_highlight): Functions removed.
3352 (internal_terminal_init): Don't set reassert_line_highlight_hook
3353 or change_line_highlight_hook.
3354 (highlight): Variable removed.
c2d53558 3355 (IT_set_face, IT_update_begin, IT_update_end)
abcce93a
MB
3356 (IT_set_terminal_modes): Don't set or use it.
3357
3358 The following changes remove inverse-video support for terminals
3359 that use a `magic cookie' standout mode. Due to changes in the
3360 way mode-lines are displayed, such support no longer works
3361 anyway, and it's probable that almost no one uses such terminals
3362 anymore:
3363
3364 * term.c (standout_requested): Variable removed.
3365 (update_end, highlight_if_desired): Don't use it.
3366 (chars_wasted, copybuf): Variables removed.
3367 (write_standout_marker): Function removed.
c2d53558 3368 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
abcce93a
MB
3369 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
3370 Don't use `chars_wasted' or `copybuf'.
3371 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
3372 Set `costs_set' to true.
3373 (cursor_to, clear_end_of_line): Test `costs_set' instead of
3374 `chars_wasted'.
3375 (clear_end_of_line): Function removed.
3376 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
3377 (clear_to_end): Call `clear_end_of_line' instead of
3378 `clear_end_of_line_raw'.
54800acb
MB
3379 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
3380 (term_init): Don't set them.
3381 Turn off any standout/underline modes that require magic cookies.
c2d53558 3382 (ins_del_lines, highlight_if_desired, background_highlight)
54800acb
MB
3383 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
3384 Remove special processing for magic-cookie standout modes.
3385 (turn_off_face, turn_on_face): Remove special processing for
3386 underline magic-cookie glitch.
abcce93a 3387
0b5f679f
RS
33882001-10-19 Richard M. Stallman <rms@gnu.org>
3389
3390 * eval.c (syms_of_eval): Doc fixes.
3391
5a4a5bd4
GM
33922001-10-19 Gerd Moellmann <gerd@gnu.org>
3393
3394 * xdisp.c (redisplay_internal): Don't clear echo area if the
3395 mini-window is selected.
3396
79f1f96c
MB
33972001-10-19 Miles Bader <miles@gnu.org>
3398
b57c2708
MB
3399 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
3400 doesn't take precedence if the affected property's value is nil.
3401
3402 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
3403
79f1f96c
MB
3404 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
3405 with fields and suggest using `forward-line' to avoid them.
3406 * editfns.c (Fline_beginning_position, Fline_end_position):
3407 Clarify documentation.
3408
ef879104
SM
34092001-10-18 Stefan Monnier <monnier@cs.yale.edu>
3410
3411 * keymap.c (current_minor_maps): `override' only shadows its
3412 correspondent in minor-mode-map-alist, not the whole tail.
3413
97f4db8c
AI
34142001-10-18 Andrew Innes <andrewi@gnu.org>
3415
3416 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
3417 optimization. The fontp->encoding array was not being initialized
3418 correctly when compiled with optimizations by MSVC.
3419
e6b70fd8
GM
34202001-10-18 Gerd Moellmann <gerd@gnu.org>
3421
30903479 3422 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 3423
0e804d38
AI
34242001-10-17 Andrew Innes <andrewi@gnu.org>
3425
3426 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
3427
3428 * w32fns.c (w32_load_system_font): Cache codepage for font, in
3429 font_info.charset field.
3430
3431 * w32term.c (w32_encode_char): Get cached codepage from font_info,
3432 rather than working it out by calling w32_codepage_for_font for
3433 every glyph.
3434
66e5868a
AI
34352001-10-17 Andrew Innes <andrewi@gnu.org>
3436
3437 * w32term.c (w32_read_socket): Determine clipping rectangle for
3438 the entire frame, including areas covered by scrollbars and the
3439 menubar. This avoids internal arguments about whether a frame is
3440 fully obscured or not.
3441
15b00083
GM
34422001-10-17 Gerd Moellmann <gerd@gnu.org>
3443
23e8bd86
GM
3444 * xdisp.c (try_window_id): Undo last change. Give up if
3445 window ends in strings.
30903479 3446
9c6ba6d1 3447 * xdisp.c (try_window_id): Don't display lines after the window
30903479 3448 end if the rest of the window after the window end was already blank.
23e8bd86 3449
30903479 3450 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
3451 for the release of 21.1.
3452
30903479 3453 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 3454
945220bd
MB
34552001-10-17 Miles Bader <miles@gnu.org>
3456
3457 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
3458 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
3459 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
3460 Change doc-string comments to `new style' [w/`doc:' keyword].
3461 (DOC_STRINGS_IN_COMMENTS): Macro removed.
3462 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
3463 out make-docfile.
3464
14242528
MB
34652001-10-16 Miles Bader <miles@gnu.org>
3466
3467 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
3468
3ddf952f
GM
34692001-10-16 Gerd Moellmann <gerd@gnu.org>
3470
3471 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
3472 *scratch*.
3473
f3fbd155
KR
34742001-10-16 Ken Raeburn <raeburn@gnu.org>
3475
3476 Avoid the assumption that car and cdr slots of cons cells are
3477 addressable lvalues; this allows for easier experimentation with
3478 other lisp implementations that may not permit such accesses for
3479 various reasons. Not quite complete -- buffer.c still needs some
3480 work, and w32/mac files need rechecking -- so compile-time
3481 enforcement is left disabled for now.
3482
3483 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 3484 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
3485 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
3486 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
3487 (XSETCAR, XSETCDR): New macros.
3488 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
3489 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
3490 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
3491 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
3492 XSETCDR.
3493 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
3494 * buffer.c (record_buffer, Fbury_buffer)
3495 (swap_out_buffer_local_variables, recenter_overlay_lists)
3496 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
3497 fields of a cons cell respectively.
3498 * callint.c (quotify_args, Fcall_interactively): Likewise.
3499 * ccl.c (Fregister_code_conversion_map): Likewise.
3500 * coding.c (detect_coding_system): Likewise.
3501 * composite.c (get_composition_id, make_composition_value_copy):
3502 Likewise.
30903479
SM
3503 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
3504 (swap_in_symval_forwarding, set_internal, Fset_default)
3505 (Fmake_variable_buffer_local, Fmake_local_variable)
3506 (Fmake_variable_frame_local): Likewise.
f3fbd155 3507 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479 3508 * keymap.c (Fset_keymap_parent, store_in_keymap)
c2d53558 3509 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
f3fbd155
KR
3510 * minibuf.c (get_minibuffer): Likewise.
3511 * search.c (Fmatch_data): Likewise.
3512 * textprop.c (extend_property_ranges): Likewise.
c2d53558 3513 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
f3fbd155
KR
3514 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
3515 Likewise.
3516 * w32term.c (x_delete_display): Likewise.
3517 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
3518 Likewise.
c2d53558 3519 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
f3fbd155 3520 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 3521 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
3522 (Fread_file_name): Use XSETCAR.
3523 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
3524 CHECK_NUMBER_CDR.
3525 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
3526 * frame.c (Fmake_terminal_frame): Use XSETCDR.
3527 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
3528 CHECK_NUMBER_CDR.
3529 * keyboard.c (read_char): Alter list traversal to avoid taking the
3530 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
3531 (parse_menu_item): Use XSETCAR and XSETCDR.
3532 (reach_char_x_menu_prompt): Use XSETCAR.
3533 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
3534 (Fcommand_execute): Use XSETCDR.
3535 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
3536 (openp): Change list traversal to avoid using XCAR as lvalue.
3537 (read_list): Use XSETCDR.
3538 * process.c (wait_reading_process_input): Change wait_for_cell
3539 handling to avoid taking addresses of cons cell slots.
30903479
SM
3540 * xselect.c (x_own_selection, x_handle_selection_clear)
3541 (x_clear_frame_selections): Use XSETCDR.
3542 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
3543 (x_handle_property_notify, x_get_foreign_selection)
3544 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 3545
e4ac8240 35462001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
502150e5 3547
018ba359
PJ
3548 * buffer.c: Put doc strings in comments.
3549
30903479 3550 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 3551
b56ba8de
SS
35522001-10-15 Sam Steingold <sds@gnu.org>
3553
3554 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
3555
e4ac8240 35562001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6a0b793a 3557
30903479
SM
3558 * process.c (process-inherit-coding-system-flag)
3559 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
3560 in comment.
3561
a1f17501 3562 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 3563 arguments. Put doc strings in comments.
a65da641
PJ
3564
3565 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 3566
aa601ad0
GM
35672001-10-15 Gerd Moellmann <gerd@gnu.org>
3568
30903479 3569 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 3570
aa601ad0
GM
3571 * window.c (select_window_1): Unfreeze window start. Remove a
3572 doubled test for WINDOW being live.
3573
e4ac8240 35742001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
288148a1 3575
dd8d1e71
PJ
3576 * fns.c (Fmapconcat): Fix typo in a doc string.
3577
288148a1
PJ
3578 * dispnew.c (Fsleep_for): Fix typo in a doc string.
3579
9f5eb4a3
GM
35802001-10-15 Gerd Moellmann <gerd@gnu.org>
3581
3582 * xterm.c (x_draw_glyph_string): Restore clipping after
3583 drawing box.
3584
e4ac8240 35852001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dbae44c8 3586
30903479 3587 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 3588
0c88c937
SM
35892001-10-14 Stefan Monnier <monnier@cs.yale.edu>
3590
56378db4
GM
3591 * indent.c (skip_invisible): Use new retval of
3592 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 3593
845e4cf4
SM
3594 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
3595 If a parent is reached and noinherit is set, exit immediately.
3596 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
3597
0c88c937
SM
3598 * s/ms-w32.h (EXEC_SUFFIXES):
3599 * s/msdos.h (EXEC_SUFFIXES):
3600 * process.h (EXEC_SUFFIXES): Remove.
3601
3602 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
3603 (decode_suffixes): Remove.
3604
3605 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
3606 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
3607 (invisible_ellipsis_p): Remove.
0c88c937
SM
3608
3609 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
3610 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
3611 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
3612 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
3613 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 3614
e4ac8240 36152001-10-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d19be8a9 3616
04d7d066
PJ
3617 * lisp.h (Ftop_level): Add prototype.
3618
d624284c
PJ
3619 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
3620 (XTread_socket): Improve style of comments to follow other
3621 comments.
3622
a87414f9
PJ
3623 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
3624 is already prototyped in included lisp.h).
3625
d19be8a9
PJ
3626 * frame.c (Fset_mouse_position): Improve style of comment to
3627 follow other comments.
3628 (Fset_mouse_pixel_position): Improve style of comment to follow
3629 other comments.
3630 (Fmake_frame_visible): Doc fix and typo in comment.
3631 (Fmake_frame_invisible): Doc fix and typo in comment.
3632 (Ficonify_frame): Fix typo in comment.
3633
c061c855
GM
36342001-10-14 Gerd Moellmann <gerd@gnu.org>
3635
37f6b5b6 3636 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 3637 * term.c, alloc.c: Put doc strings in comments.
c061c855 3638
e641b454
GM
36392001-10-13 Gerd Moellmann <gerd@gnu.org>
3640
3641 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
3642 Provide definitions for doc strings in comments.
3643
3644 * fns.c: Put doc strings in comments.
3645
51724e26
EZ
36462001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
3647
3648 * dired.c (file_name_completion): Ignore a candidate directory if
3649 it matches an element in completion-ignored-extensions that ends
3650 in a slash.
3651 (syms_of_dired) <completion-ignored-extensions>: Mention the above
3652 feature in the doc string.
3653 (Ffile_name_completion): Ditto.
3654
be5fc59b
SM
36552001-10-12 Stefan Monnier <monnier@cs.yale.edu>
3656
5a1373f3
SM
3657 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
3658
3659 * xfns.c (syms_of_xfns): Update calls to Fprovide.
3660
3661 * lisp.h (Fprovide): Update prototype.
3662 (Ffeaturep, invisible_p): Remove.
3663
bbc4a3d3 3664 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
3665 (DOLIST, LOOP_PROPVAL): New macros.
3666 (invisible_p, invisible_ellipsis_p): Use them.
3667 (invisible_noellipsis_p): New function.
3668 (syms_of_xdisp): Use empty_string.
3669
3670 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
3671
3672 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
3673 (syms_of_lread) <Vafter_load_alist>: Update docstring.
3674
3675 * print.c (Fwith_output_to_temp_buffer): Align with
3676 internal_with_output_to_temp_buffer.
3677 (print_preprocess): Use traverse_intervals_noorder.
3678 (print_object): Update call to traverse_intervals.
3679
3680 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
3681 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
3682
3683 * intervals.c (traverse_intervals_noorder): New function.
3684 (search_for_interval, count_intervals): Use it.
3685 (traverse_intervals): Use less stack space and drop `depth' arg.
3686
3687 * fns.c (Ffeaturep): Add new `subfeature' arg.
3688 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
3689 (Qsubfeatures): New var.
3690 (syms_of_fns): Initialize it.
3691
026f408d
SM
3692 * keymap.c (Fkey_description): Use empty_string.
3693 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
3694 (syms_of_keymap): Setup inheritance between maps.
3695 Don't export Sdescribe_bindings_internal any more.
3696
be5fc59b
SM
3697 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
3698
3365175e
GM
36992001-10-12 Gerd Moellmann <gerd@gnu.org>
3700
3701 * xterm.c (notice_overwritten_cursor): Renamed from
3702 note_overwritten_text_cursor. Rewritten to take glyph widths into
3703 account.
3704
2ab7765c
EZ
37052001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
3706
3707 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
3708 multi-line strings without a trailing "\n\".
3709
e4ac8240 37102001-10-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
311346bb
PJ
3711
3712 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
3713 defined.
3714
2168e04d
SM
37152001-10-11 Stefan Monnier <monnier@cs.yale.edu>
3716
026f408d
SM
3717 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
3718
c0ec53ad
SM
3719 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3720 * w32proc.c (sys_spawnve):
3721 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3722 * w32.c (check_windows_init_file):
3723 * sound.c (Fplay_sound):
026f408d 3724 * emacs.c (init_cmdargs):
c0ec53ad
SM
3725 * process.c (Fstart_process): Update calls to openp.
3726
3727 * callproc.c (Vexec_suffixes): New var.
3728 (Fcall_process): Update call to openp.
3729 (decode_suffixes): New function.
3730 (syms_of_callproc): Init exec-suffixes.
3731
3732 * lread.c (Vload_suffixes, default_suffixes): New vars.
3733 (openp): Take a lisp list of suffixes.
3734 Check for file-name-handlers even if the file was absolute already.
3735 (syms_of_lread): Declare load-suffixes.
3736 (Fload): Fix up call to openp.
3737 Don't bother checking for file-name-handler at the very beginning.
3738
f6333468
SM
3739 * keymap.h (Fcopy_keymap): Don't export.
3740
3741 * lisp.h (empty_string): Declare.
c0ec53ad
SM
3742 (Vload_suffixes, Vexec_suffixes): Declare.
3743 (openp): Update prototype.
f6333468
SM
3744
3745 * emacs.c (empty_string): New var.
3746 (syms_of_emacs): Initialize it.
3747
3748 * search.c (wordify): Use it.
3749
3750 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
3751 selected window if it's not displayed there. Handle the case
3752 when the window is dedicated.
3753 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
3754
3755 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
3756
2168e04d
SM
3757 * syntax.h (struct gl_state_s): Change the meaning of b_property.
3758 Remove left_ok and right_ok.
3759 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
3760 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
3761 new meaning of b_property.
3762
3763 * syntax.c (update_syntax_table): Simplify.
3764 (Fforward_comment): Don't skip quoted chars when going backward.
3765
13d95cc0
GM
37662001-10-11 Gerd Moellmann <gerd@gnu.org>
3767
beb0990f
GM
3768 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
3769 in case I is of some unsigned type, in which case
3770 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
3771 comparison becomes bogus.
3772
cb938d46
GM
3773 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
3774 (Fuser_full_name): Fix bug treating a float as a fixnum.
3775
3776 * data.c (Fstring_to_number): Use make_fixnum_or_float.
3777
3778 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 3779
13d95cc0
GM
3780 * lisp.h (circular_list_error): Add prototype.
3781
3782 * data.c (Qcircular_list): New variable.
3783 (circular_list_error): New function.
3784 (syms_of_data): Initialize it Qcircular_list.
3785
e35f6ff7
SM
37862001-10-10 Stefan Monnier <monnier@cs.yale.edu>
3787
7dee7ff7
PJ
3788 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
3789 * casefiddle.c, buffer.c: Include keymap.h.
e35f6ff7 3790
619632ac
GM
37912001-10-10 Gerd Moellmann <gerd@gnu.org>
3792
3793 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
3794 options. From Dave Love <d.love@dl.ac.uk>.
3795
5e5388f6
GM
37962001-10-09 Gerd Moellmann <gerd@gnu.org>
3797
3798 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
3799 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3800
14a3dff7
GM
3801 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
3802 unsigned char.
3803 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 3804
76ba8daf
AI
38052001-10-08 Andrew Innes <andrewi@gnu.org>
3806
3807 * lisp.h [max]: Undef min and max before redefining them.
3808
3809 * w32gui.h: Do not undef min and max.
3810
3811 * w32heap.h: Do not undef min and max.
3812
3813 * s/ms-w32.h: Do not undef min and max.
3814
166253cb
SM
38152001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3816
3817 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
3818
0c4d9527
SS
38192001-10-08 Sam Steingold <sds@gnu.org>
3820
3821 * keymap.c (current-active-maps): Quote newlines (compilation error).
3822
14bfa771
EZ
38232001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
3824
3825 * Makefile.in (lisp, shortlisp): Replace bindings.el with
3826 bindings.elc, since otherwise doc strings in bindings.el get wrong
3827 offsets in etc/DOC.
3828
bdb7aa47
SM
38292001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3830
9985827f
SM
3831 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
3832
3833 * keyboard.h (map_prompt): Remove.
3834
3835 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 3836 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 3837
bdb7aa47
SM
3838 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3839
3840 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3841
3842 * keyboard.c (map_prompt): Remove.
3843 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
3844 Use Fkeymap_prompt.
3845
3846 * keymap.h: New file. Extracted from lisp.h.
3847
9985827f
SM
3848 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
3849 (accessible_keymaps_1): New function.
3850 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
3851 (Fwhere_is_internal): Use Fcurrent_active_maps.
3852 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
3853 Insert in current buffer rather than standard-output.
3854 Don't call `help-mode'. Export to elisp.
3855 (describe_buffer_bindings): New wrapper.
3856 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
3857 and Sdescribe_buffer_bindings.
3858
402c9a51
GM
38592001-10-08 Gerd Moellmann <gerd@gnu.org>
3860
9985827f 3861 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
3862 Remove code setting signal handler.
3863
9985827f 3864 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
3865 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
3866
e4ac8240 38672001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3fe81fdf
PJ
3868
3869 * keyboard.c: Don't define min/max.
3870
55fa7820
GM
38712001-10-08 Gerd Moellmann <gerd@gnu.org>
3872
9985827f 3873 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 3874 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 3875 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 3876 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 3877 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
3878 Don't define min/max.
3879
3880 * lisp.h (min, max): New macros.
3881
55fa7820
GM
3882 * puresize.h (BASE_PURESIZE): Increase to 725000.
3883
e4ac8240 38842001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1aad31e4 3885
9180dc8c
PJ
3886 * xfaces.c (free_frame_menubar): Add prototype.
3887
01f67d2c
PJ
3888 * lisp.h (init_window): Add prototype.
3889
3890 * editfns.c: Include ctype.h.
3891
3892 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 3893 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
3894 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
3895 variable `sb'.
3896
5f351ff1
PJ
3897 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
3898 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
3899 `popup_activated_flag' and `title'.
3900
479dfe87
PJ
3901 * doc.c (Fdocumentation_property): Fix typo in a doc string.
3902
dff49fc8
PJ
3903 * emacs.c (main): Remove extra `;'.
3904
248ac615
PJ
3905 * atimer.h (struct atimer): Fix typos in a comment.
3906
3907 * atimer.c: Fix typo.
3908
af232c7d
PJ
3909 * Makefile.in: Fix typo.
3910
3911 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 3912
d876f455
MB
39132001-10-07 Miles Bader <miles@gnu.org>
3914
3915 * Makefile.in (lisp, shortlisp): Add `button.elc'.
3916
0037e2f2
KR
39172001-10-07 Ken Raeburn <raeburn@gnu.org>
3918
b056f36d
KR
3919 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
3920 Lisp_Object.
3921
0037e2f2
KR
3922 * lisp.h (Ffield_end): Declare.
3923
1a4372ef
GM
39242001-10-07 Gerd Moellmann <gerd@gnu.org>
3925
a4a74e8c
GM
3926 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
3927
3928 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
3929
3930 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
3931
3932 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
3933
1a4372ef
GM
3934 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
3935 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
3936
3937 * alloc.c (inhibit_garbage_collection): Simplify.
3938 (Fmemory_use_counts): Ditto.
3939
9985827f 3940 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
3941 (syms_of_data): DEFVAR_INT most-positive-fixnum and
3942 most-negative-fixnum.
3943
9985827f 3944 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
3945 (FIXNUM_OVERFLOW_P): New macros.
3946
4650e362
MB
39472001-10-06 Miles Bader <miles@gnu.org>
3948
3949 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
3950 scroll_bar_bottom_shadow_pixel fields.
3951 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
3952 for the shadows, and tell the toolkit about them if we succeed.
3953 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
3954 Free scroll-bar shadow colors.
3955 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
3956 Free scroll-bar shadow colors when the background color changes.
3957 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
3958 Initialize scroll-bar shadow-color fields.
3959
ace64e0a
GM
39602001-10-05 Gerd Moellmann <gerd@gnu.org>
3961
3962 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
3963
ec66bdc7
MB
39642001-10-05 Miles Bader <miles@gnu.org>
3965
9985827f
SM
3966 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
3967 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 3968 New functions (were in simple.el).
9985827f 3969 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
3970 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
3971 (syms_of_minibuf): Initialize them.
3972
a0fb4492
GM
39732001-10-05 Gerd Moellmann <gerd@gnu.org>
3974
3975 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
3976 (tiff_load): Install them as error and warning handler.
3977
0bcf87c1
AI
39782001-10-04 Andrew Innes <andrewi@gnu.org>
3979
3980 * w32fns.c (x_to_w32_color): Fix argument to alloca.
3981 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 3982 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
3983 (x_to_w32_charset): Handle private format for unknown charsets.
3984 Handle wildcards in charset spec, by ignoring them.
3985 (w32_codepage_for_font): Fix argument to alloca. Don't remove
3986 "*-" prefix from charset.
3987 (x_to_w32_font): Enlarge remainder array for safety. Specifically
3988 handle the truncated font spec form constructed by font_list_1, so
3989 that we correctly identify the charset fields. Don't remove "*-"
3990 prefix from charset.
3991 (w32_list_synthesized_fonts): Fix argument to alloca.
3992
c89e4bc5
GM
39932001-10-04 Stefan Monnier <monnier@cs.yale.edu>
3994
3995 * window.h (MINI_WINDOW_P): Use NILP.
3996
3997 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
3998
3999 * termhooks.h (struct input_event): Use proper type for `kind'.
4000
40012001-10-04 Gerd Moellmann <gerd@gnu.org>
4002
4003 This handles unknown keysyms better than before. For example,
4004 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
4005 Emacs formerly completely ignored F5. With the change, it derives
4006 a key symbol from the name of the X keysym, `ccaron' in this case.
4007 Reported by Martin Buchholz.
4008
4009 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
4010 unknown keysyms.
4011
4012 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
4013 that EVENT->code isn't a function key, use the keysym's name.
4014
40152001-10-04 Gerd Moellmann <gerd@gnu.org>
4016
4017 FOREACH is a macro that should make it easier to loop over Lisp
4018 lists with checks for cycles and proper lists.
4019
4020 * lisp.h (LIST_END_P, FOREACH): New macros.
4021
40222001-10-04 Gerd Moellmann <gerd@gnu.org>
4023
4024 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
4025 called for a lost connection. Prevent dumping core in this case.
4026 Instead print the X error, and exit. On user request.
4027
4028 * xterm.c (error_msg): New variable.
4029 (x_fatal_error_signal): New function.
4030 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
4031 as fatal_error_signal_hook around the call to XtCloseDisplay.
4032
4033 * emacs.c (fatal_error_signal_hook): New variable.
4034 (fatal_error_signal): Call that function.
4035
40362001-10-04 Gerd Moellmann <gerd@gnu.org>
4037
4038 With this, Emacs prints how much pure storage it will
4039 approximately need in case pure storage overflows while dumping.
4040
4041 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
4042 New variables.
4043 (init_alloc_once): Initialize new variables.
4044 (PURE_POINTER_P): Use new variables.
4045 (pure_alloc): If pure storage overflows, allocate from the heap.
4046 (check_pure_size): New function.
4047 (Fgarbage_collect): Don't GC if pure storage has overflowed.
4048
4049 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
4050 (check_pure_size): Add prototype.
4051
4052 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
4053
40542001-10-04 Gerd Moellmann <gerd@gnu.org>
4055
4056 This adds a post-gc-hook that's run with GC inhibited.
4057 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
4058
4059 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
4060 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
4061 (Fgarbage_collect): Run post-gc-hook.
4062
40632001-10-04 Gerd Moellmann <gerd@gnu.org>
4064
4065 This adds `defvaralias' and `indirect-variable'. Changes not
4066 directly related to this feature are there to gain the same
4067 performance again as before variable aliases.
4068
4069 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
4070 code to get and set symbol values, to take defvaralias into account.
4071
4072 (Note: the new `constant' bit-flag in symbols would make it
4073 possible to define arbitrary read-only variables, e.g. with
4074 `defconst'.)
4075
4076 Documentation is in lispref/variables.texi. Added to NEWS.
4077
4078 * lisp.h (enum symbol_interned): New enumeration.
4079 (struct Lisp_Symbol): Remove member `obarray', add
4080 `indirect_variable', `constant', and `interned'.
4081 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
4082 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
4083 (indirect_variable): Add prototype.
4084
4085 * print.c (print_preprocess, print_object): Test internedness of
4086 symbols differently.
4087
4088 * lread.c (Fintern, Funintern): Set symbol's interned and constant
4089 bit-fields.
4090 (init_obarray): Likewise for t and nil.
4091
4092 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
4093 (Fdefvaralias): New function.
4094 (specbind): Simplify the test if symbol is a constant.
4095 (syms_of_eval): Defsubr Fdefvaralias.
4096
4097 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
4098 (Qcyclic_variable_indirection): New variable.
4099 (Fkeywordp): Check for internedness differently.
4100 (Fmakunbound): Simplify the test if symbol is a constant.
4101 (indirect_variable, Findirect_variable): New functions.
4102 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
4103 aliased symbol.
4104 (let_shadows_buffer_binding_p): Check for variable aliases.
4105 (set_internal): Simplify the test if SYMBOL is a constant.
4106 If SYMBOL has a buffer-local value and is an alias, use the aliased
4107 symbol instead.
4108 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
4109 Sindirect_variable.
4110
4111 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
4112 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
4113 set directly.
4114
4115 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
4116
4117 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
4118 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
4119 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
4120
ab952a4f
GM
41212001-10-04 Gerd Moellmann <gerd@gnu.org>
4122
4123 * Branch for 21.1.
b56ba8de 4124
ba88ff28
MB
41252001-10-03 Miles Bader <miles@gnu.org>
4126
4127 * callproc.c (syms_of_callproc): Explicitly state in the
4128 documentation for `process-environment' that earlier entries take
4129 precedence over later ones.
4130
ae1a9581
MB
41312001-10-02 Miles Bader <miles@gnu.org>
4132
4133 * textprop.c (Fnext_char_property_change)
4134 (Fprevious_char_property_change): Remove reference to non-existant
4135 argument OBJECT from doc-string.
4136
257e3f57
GM
41372001-10-01 Gerd Moellmann <gerd@gnu.org>
4138
4139 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
4140 (try_window_id): Skip back over lines ending in a newline from a
4141 string.
4142
4143 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
4144 New bit flag
4145
c1f29759
RS
41462001-10-01 Richard M. Stallman <rms@gnu.org>
4147
4148 * search.c (Freplace_match): Doc fix.
4149
c30dce3d
AI
41502001-09-28 Andrew Innes <andrewi@gnu.org>
4151
4152 * w32menu.c (set_frame_menubar): Take into account that
4153 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
4154 <raeburn@gnu.org>.
4155
03be5931
EZ
41562001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
4157
4158 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
4159
e4ac8240 41602001-09-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
75bec752
PJ
4161
4162 * s/gnu-linux.h: Fix a typo in comment.
4163
83100e0a
AS
41642001-09-28 Andreas Schwab <schwab@suse.de>
4165
4166 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
4167 nocombreloc, in case -z combreloc is the default.
4168
a74b48cf
GM
41692001-09-28 Gerd Moellmann <gerd@gnu.org>
4170
4171 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
4172 really going on here.
4173
09c4719e
SM
41742001-09-27 Stefan Monnier <monnier@cs.yale.edu>
4175
4176 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
4177
f7d5d963
EZ
41782001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
4179
4180 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
4181 utf-8, menu-bar, and latin-N.
4182 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
4183 unconditionally now.
4184 (lisp): Add latin-N, since they are preloaded.
4185
9240e746
GM
41862001-09-27 Gerd Moellmann <gerd@gnu.org>
4187
14531065
GM
4188 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
4189 to the left. Some cleanup.
4190
9240e746
GM
4191 * xdisp.c (display_mode_element): One more case where a string's
4192 multibyteness should be used for display.
4193
edd1e654
GM
41942001-09-26 Gerd Moellmann <gerd@gnu.org>
4195
b02439c8
GM
4196 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
4197 reading at EOF.
4198
032906b1 4199 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 4200 of the only temporarily set echoing flag for deciding when
032906b1
GM
4201 the cancel echoing.
4202
4203 * keyboard.c (echo_kboard): Make externally visible.
4204
4205 * lisp.h (echo_kboard): Declare extern.
4206
cb617e7c 4207 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 4208 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
4209 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
4210 this round of redisplay if make_cursor_line_fully_visible fails.
4211 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 4212 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
4213
4214 * dispextern.h (required_matrix_width, required_matrix_height):
4215 Add prototypes.
4216
09c4719e
SM
4217 * dispnew.c (required_matrix_width, required_matrix_height):
4218 New functions.
cb617e7c 4219 (allocate_matrices_for_window_redisplay)
09c4719e
SM
4220 (allocate_matrices_for_frame_redisplay: Use them.
4221 Remove parameters CH_DIM.
cb617e7c 4222
edd1e654
GM
4223 * xdisp.c (display_mode_lines): Temporarily set selected_frame
4224 and selected_window to the frame of the window whose mode-lines
4225 are displayed, and to the window itself.
4226 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 4227 here.
edd1e654 4228
924b604c
GM
42292001-09-25 Gerd Moellmann <gerd@gnu.org>
4230
daba7643
GM
4231 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
4232 the image cache under us.
4233
b7a22712 4234 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 4235 with a string value, use that string's multibyteness for displaying.
b7a22712 4236
ad648212
GM
4237 * keyboard.c (read_char): Don't clear a message for a switch-frame
4238 event. From Stefan Monnier <monnier@cs.yale.edu>.
4239
9f8531e5
GM
4240 * xterm.c (fast_find_position) [0]: Add a presumably more correct
4241 version for after 21.1.
4242
4243 * xdisp.c (row_containing_pos): Make externally visible.
4244
4245 * dispextern.h (row_containing_pos): Add prototype.
4246
924b604c
GM
4247 * process.c (send_process): Disable composition if from_byte < 0.
4248 From Kenichi Handa <handa@etl.go.jp>.
4249
6f3f0db4
GM
42502001-09-24 Gerd Moellmann <gerd@gnu.org>
4251
c69c0ebc
GM
4252 * xterm.c (refreshicon): Function removed.
4253
d1182bc4
GM
4254 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
4255
4256 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
4257
4258 * xterm.c (toplevel): Remove includes in #if 0.
4259
6f3f0db4
GM
4260 * process.c (sigchld_handler) [LINUX]: Don't return from
4261 the signal handler at the end of the loop.
4262
59957f85
GM
42632001-09-21 Gerd Moellmann <gerd@gnu.org>
4264
09c4719e
SM
4265 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
4266 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 4267
a0528984
EZ
42682001-09-21 Markus Rost <rost@math.ohio-state.edu>
4269
4270 * Makefile.in (shortlisp): Add ../lisp/env.elc.
4271
db92b288
GM
42722001-09-20 Gerd Moellmann <gerd@gnu.org>
4273
3fed8ad5
GM
4274 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
4275 since this function can be called during GC.
4276
db92b288
GM
4277 * callproc.c (Fcall_process): Handle errors from pipe(2).
4278 (child_setup): Delete code in #ifdef vipc.
4279
7121b85a
GM
42802001-09-19 Gerd Moellmann <gerd@gnu.org>
4281
72f62cb5
GM
4282 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
4283 (display_mode_element): Display the string from decode_mode_spec
4284 depending on its multibyteness.
4285
a2697022
GM
4286 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
4287
7121b85a
GM
4288 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
4289
bfc97351
GM
42902001-09-18 Gerd Moellmann <gerd@gnu.org>
4291
c9063433
GM
4292 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
4293 recursive_edit_unwind.
4294 (recursive_edit_unwind): Set kboard state according to
4295 SINGLE-KBOARD.
4296
3fbdba3e
GM
4297 * buffer.c (modify_overlay): Don't do nothing if START == END;
4298 This can still be a modification, for example when an overlay has
4299 a before-string or after-string.
4300 (Fdelete_overlay): Prevent redisplay optimizations when deleting
4301 an overlay with before-string or after-string.
4302
1270031d
GM
4303 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
4304 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
4305
bfc97351
GM
4306 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
4307 first_unchanged_at_end_row is in front of
4308 last_unchanged_at_beg_row. This code should be removed after the
4309 release of 21.1.
4310
d8a973aa
GM
43112001-09-17 Gerd Moellmann <gerd@gnu.org>
4312
e18c8b8d
GM
4313 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
4314 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
4315
d8a973aa
GM
4316 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
4317 versions >= 2.95.
4318
ed7d6ba4
EZ
43192001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
4320
4321 * dired.c (Ffile_attributes): Doc fix.
4322
551629f9
GM
43232001-09-14 Gerd Moellmann <gerd@gnu.org>
4324
4325 * fileio.c (Ffile_symlink_p): Fix last change.
4326
4327 * filelock.c (current_lock_owner): Fix last change.
4328
4c8c7926
GM
43292001-09-13 Gerd Moellmann <gerd@gnu.org>
4330
620c4704
GM
4331 * filelock.c (current_lock_owner): If readlink returns ERANGE,
4332 take that to mean that the buffer is too small.
4333
81c3310d
GM
4334 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
4335 that to mean that the buffer is too small.
4336
06fd3792
GM
4337 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
4338 current buffer's multibyteness when discarding the iterator's
4339 stack.
4340
4c8c7926
GM
4341 * xfns.c (Fx_window_property): Handle case that property gets
4342 deleted between the two calls to XGetWindowProperty.
4343
9a72e4c1
GM
43442001-09-11 Gerd Moellmann <gerd@gnu.org>
4345
bd819d14 4346 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 4347
a41edd99
GM
4348 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
4349 in addition to read-only.
4350
4351 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
4352 to t in addition to read-only.
4353
4354 * lisp.h (Qinhibit_modification_hooks): Declare.
4355
4356 * insdel.c (Qinhibit_modification_hooks): New variable.
4357 (syms_of_insdel): Initialize and staticpro it.
4358
d4881c6a
GM
4359 * textprop.c (verify_interval_modification): Don't run
4360 modification-hooks if inhibit_modification_hooks.
4361
4362 * dispnew.c (set_window_cursor_after_update): Fix code
4363 finding glyph row containing cursor when cursor_in_echo_area
4364 is >= 0.
4365
9a72e4c1
GM
4366 * xdisp.c (init_from_display_pos): Put some code in #if 0.
4367 (add_to_log): Use bcopy instead of strcpy.
4368 (init_from_display_pos): Use an explicit loop over bytes in
4369 overlay strings instead of calling index.
4370
f4a374a1
GM
43712001-09-10 Gerd Moellmann <gerd@gnu.org>
4372
300e57bd
GM
4373 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
4374
4375 * dispnew.c (direct_output_for_insert): Don't change IT's
4376 stop_charpos to something in front of its current position.
4377
f4a374a1
GM
4378 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
4379 `format'.
4380
7e4cbc91
RS
43812001-09-10 Richard M. Stallman <rms@gnu.org>
4382
4383 * frame.c (Fmouse_position): Doc fix.
4384
6afad91e
GM
43852001-09-07 Gerd Moellmann <gerd@gnu.org>
4386
4387 * xdisp.c (init_from_display_pos): Don't compare the result
4388 of calling index with NULL.
4389
f76e0368
GM
43902001-09-06 Gerd Moellmann <gerd@gnu.org>
4391
4392 * xfns.c (x_set_background_color): Don't change the colors
4393 of the X window of scroll bar widgets.
4394
9ead1b60
AI
43952001-09-05 Andrew Innes <andrewi@gnu.org>
4396
4397 * w32fns.c (w32_createwindow): Undo last change.
4398
c3b497b3
GM
43992001-09-05 Gerd Moellmann <gerd@gnu.org>
4400
08e1d6df
GM
4401 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
4402
c3b497b3
GM
4403 * xdisp.c (string_buffer_position): Use *single_char_property*
4404 functions instead of the *single_property* functions.
b56ba8de 4405
8f860180
AI
44062001-09-04 Andrew Innes <andrewi@gnu.org>
4407
9a72e4c1
GM
4408 * w32term.c (w32_read_socket): Add more information to debugging
4409 output.
8f860180
AI
4410
4411 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
4412 from Emacs frames, so that calls to GetClipBox in w32term.c
4413 correctly report when part of a frame is visible (including
4414 scrollbars, etc). This prevents repeated redrawing of frames when
4415 only a scrollbar is visible.
4416 (w32_wnd_proc): Add more frame information to debugging output.
4417
2ee1aa00
SM
44182001-09-03 Stefan Monnier <monnier@cs.yale.edu>
4419
4420 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
4421
e3b22517
GM
44222001-09-03 Gerd Moellmann <gerd@gnu.org>
4423
7e376260
GM
4424 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
4425 help-echo for a string which doesn't have help-echo itself, use
4426 get-char-property to obtain the help-echo from the string's buffer
4427 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
4428 have mouse-face, look ``under'' the string for mouse-face from an
4429 overlay.
4430 (fast_find_position): Add parameter STOP. In the final row, stop
4431 before glyphs having STOP as object. Don't consider glyphs that
4432 are not from a buffer.
4433
e3b22517
GM
4434 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
4435
9a249bba
EZ
44362001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
4437
4438 * fns.c (Fmd5): Doc fix.
4439
c9979669
GM
44402001-08-31 Gerd Moellmann <gerd@gnu.org>
4441
4442 * composite.c (update_compositions): Do nothing if
4443 inhibit-modification-hooks is set.
4444
9584e63a
GM
44452001-08-30 Gerd Moellmann <gerd@gnu.org>
4446
986ec8f2 4447 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 4448 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
4449 glyph matrices etc. in a core dump.
4450
92a25631
GM
4451 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
4452 (syms_of_xdisp): Initialize them.
4453 (handle_single_display_prop): Don't change point, bind `object',
4454 `position', and `buffer-position' instead to the object having the
2ee1aa00 4455 `display' property, position in the object and position in the buffer.
92a25631 4456
9584e63a
GM
4457 * fileio.c (Finsert_file_contents): Don't change the multibyteness
4458 of the buffer if REPLACE is non-nil.
4459
d38633a3
GM
44602001-08-29 Gerd Moellmann <gerd@gnu.org>
4461
4462 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
4463
f4fccc1e
EZ
44642001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
4465
4466 * w32term.c (x_set_glyph_string_background_width)
4467 (show_mouse_face): Track the last changes in xterm.c.
4468
eaaa65b0
GM
44692001-08-28 Gerd Moellmann <gerd@gnu.org>
4470
7b0870b2
GM
4471 * xterm.c (x_set_glyph_string_background_width): Set the glyph
4472 string's background width so that multi-line mouse-face is drawn
4473 to the right edge of the window.
4474 (show_mouse_face): Set the row's mouse_face_p flag after drawing
4475 glyphs.
4476
6b6e2422 4477 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 4478 before inserting/writing glyphs.
6b6e2422 4479
eaaa65b0
GM
4480 * xdisp.c (display_mode_element): Use string_byte_to_char to
4481 determine character positions in strings, use chars_in_text
4482 instead of strwidth.
4483 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
4484 a matrix as parameter; this is easier to use from GDB.
4485
9ad62cf8
MB
44862001-08-28 Miles Bader <miles@gnu.org>
4487
2ee1aa00
SM
4488 * textprop.c (Fprevious_single_char_property_change)
4489 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 4490
32171635
GM
44912001-08-27 Gerd Moellmann <gerd@gnu.org>
4492
47d57b22
GM
4493 * fileio.c (Finsert_file_contents): Allocate, restore, and
4494 free composition data in the case of REPLACE not being nil.
4495
4496 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
4497 there exist overlay strings with newlines at POS.
4498 (text_outside_line_unchanged_p): Return 0 if changes start at
4499 START and overlays exist at START. Likewise for END.
4500 (try_window_id): Give up if init_to_row_end returns 0.
4501
32171635
GM
4502 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
4503 unconditionally.
4504
e1249666
GM
45052001-08-24 Gerd Moellmann <gerd@gnu.org>
4506
33954c45
GM
4507 * keymap.c (access_keymap): Return the cdr of the binding of
4508 a generic character instead of its definition (KEY . BINDING).
4509
e1249666
GM
4510 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
4511 to 0 also in the REPLACE case.
4512
fb4c6c96
AC
45132001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
4514
4515 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
4516 open to determine whether file is readable (as for DOS_NT).
4517
59ecf80b
GM
45182001-08-23 Gerd Moellmann <gerd@gnu.org>
4519
4520 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
4521 coding.type is coding_type_no_conversion or coding_type_raw_text,
4522 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
4523 non-nil instead of just setting enable_multibyte_characters in the
4524 buffer to nil.
4525
40e33037
GM
45262001-08-22 Gerd Moellmann <gerd@gnu.org>
4527
374388c3
GM
4528 * dispextern.h (struct face_cache): Add member
4529 menu_face_changed_p.
4530
4531 * xfaces.c (menu_face_changed_default): New variable.
4532 (menu_face_changed_count): Variable removed.
4533 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
4534 the menu_face_changed_default flag, otherwise set the FRAME's
4535 menu_face_changed_p flag if the `menu' face has been changed.
4536 Prevent calling set_font_frame_param if FRAME is t.
4537 (make_face_cache): Initialize cache's menu_face_changed_p
4538 from menu_face_changed_default.
4539 (realize_basic_faces): Look into the frame's face cache to
4540 determine if the menu appearance needs updating.
4541
40e33037
GM
4542 * keymap.c (access_keymap): Fix last change to not consider
4543 IDX when it has modifiers.
4544
859ea4b8
GM
45452001-08-21 Gerd Moellmann <gerd@gnu.org>
4546
4547 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
4548 . BINDING) exists, where GENERIC-CHAR is the generic character of
4549 the charset of IDX, return BINDING unless there exists a binding
4550 for IDX itself.
4551
e8660d73
GM
45522001-08-16 Gerd Moellmann <gerd@gnu.org>
4553
cca1b1d7
GM
4554 * xrdb.c (SYSV): Don't define on Solaris 2.
4555 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
4556
e8660d73 4557 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 4558 of the screen line, not text line, containing IT's current position.
e8660d73 4559
93aba6fc
GM
45602001-08-15 Gerd Moellmann <gerd@gnu.org>
4561
288d4e06
GM
4562 * window.c (window_scroll_pixel_based): Don't recenter if
4563 PT is partially visible in the window.
4564
3452efc2
SM
4565 * xterm.c (expose_window_tree, expose_window, expose_line):
4566 Return 1 when overwriting mouse-face.
82f053ab
GM
4567 (expose_frame): If mouse-face was overwritten, redo it.
4568
93aba6fc
GM
4569 * xfaces.c (x_update_menu_appearance): Don't call
4570 set_frame_menubar, let the next redisplay do it.
4571
858a55c1
AI
45722001-08-14 Andrew Innes <andrewi@gnu.org>
4573
4574 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
4575 drawing glyph string.
4576
3a990b67
EZ
45772001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
4578
4579 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
4580 running HI-UX/MPP.
4581
04386463
GM
45822001-08-14 Gerd Moellmann <gerd@gnu.org>
4583
4584 * xfaces.c (x_update_menu_appearance): Save and restore value of
4585 interrupt_input_blocked.
4586
3e6385a4
GM
45872001-08-13 Gerd Moellmann <gerd@gnu.org>
4588
b0e619b4
GM
4589 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
4590 a line start, move back to the line start.
3452efc2 4591
0de73d5a
GM
4592 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
4593 exactly when a mini-buffer is active.
4594
3e6385a4
GM
4595 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
4596 in units of 1/8 character on non window-system frames.
4597 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
4598
d1b5f629
EZ
45992001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
4600
4601 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
4602 a doc string.
4603
eaa2319f
GM
46042001-08-09 Gerd Moellmann <gerd@gnu.org>
4605
8e3189f0
GM
4606 * keyboard.c (Vpre_help_message): New variable.
4607 (syms_of_keyboard): Initialize and staticpro it.
4608 (show_help_echo): Record current message before displaying a
4609 help-echo, and restore that message when clearing the help.
4610
eaa2319f
GM
4611 * xfns.c (x_create_im): Remove prototype.
4612
4613 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
4614
4615 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 4616
eaa2319f
GM
46172001-08-08 Gerd Moellmann <gerd@gnu.org>
4618
4619 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 4620 windows whose height has changed, disable partially visible lines.
eaa2319f 4621
17fdcfc8
GM
46222001-08-07 Gerd Moellmann <gerd@gnu.org>
4623
22d01aed 4624 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 4625 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 4626
17fdcfc8
GM
4627 * xdisp.c (start_display): Don't try to determine the continuation
4628 lines width if lines are truncated. It's superfluous and leads to
4629 incorrect results if POS is not visible in the window after
4630 reseating the iterator at the previous line start.
4631
8e3fe78e
GM
46322001-08-06 Gerd Moellmann <gerd@gnu.org>
4633
4634 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4635
e4ac8240 46362001-08-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
98a8938c
GM
4637
4638 * alloc.c (init_stack): Remove declaration.
4639
18f9986a
GM
46402001-08-03 Gerd Moellmann <gerd@gnu.org>
4641
5e1f85e0
GM
4642 * keyboard.c (read_key_sequence): Check that key is an integer
4643 before comparing it with quit_char.
4644 (add_command_key): Use larger_vector.
4645 (read_char_x_menu_prompt): Instead of converting symbol and
4646 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 4647 which cannot be confused with valid events.
5e1f85e0
GM
4648 (read_char): When reading from Vunread_command_events, check for
4649 events of the form (EVENT . disabled) instead of
4650 (EVENT . nil).
4651
18f9986a
GM
4652 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
4653 a float, determine the max height from the frame's height.
4654
fbc7f2a6
GM
46552001-08-02 Gerd Moellmann <gerd@gnu.org>
4656
4657 * xdisp.c (redisplay_internal): Take message_cleared_p into
4658 account only if minibuf_level == 0.
4659
81b1a79d
GM
46602001-08-01 Gerd Moellmann <gerd@gnu.org>
4661
e5c60873
GM
4662 * xdisp.c (redisplay_internal): Add a check for the last
4663 displayed message.
3452efc2 4664
6e019995
GM
4665 * xdisp.c (message_cleared_p): New variable.
4666 (clear_message): Set message_cleared_p when clearing the current
4667 message.
4668 (redisplay_internal): Look at message_cleared_p to capture
4669 the case that the echo area should be cleared.
4670
308a74d8
GM
4671 * keyboard.c (command_loop_1): Fix spelling of
4672 resize_echo_area_exactly.
4673
3452efc2 4674 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
4675
4676 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
4677
81b1a79d
GM
4678 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
4679 current matrix when the window gets smaller.
4680
ada329e6
EZ
46812001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
4682
4683 * print.c (strout): Cast the character passed to insert_char to
4684 unsigned char, to avoid sign extension when it is promoted to int.
4685
ed86208c
GM
46862001-07-31 Gerd Moellmann <gerd@gnu.org>
4687
4688 * fileio.c (Finsert_file_contents): Don't treat a return value
4689 of 0 from emacs_read as an IO error.
4690
6594ac22
GM
46912001-07-30 Gerd Moellmann <gerd@gnu.org>
4692
cef68af5
GM
4693 * keyboard.c (abs): New macro.
4694 (double_click_fuzz): New variable.
4695 (make_lispy_event): Use it to determine what makes a double-click.
4696 (syms_of_keyboard): DEFVAR_INT it.
4697
6594ac22
GM
4698 * xmenu.c (set_frame_menubar): Take into account that
4699 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
4700 <raeburn@gnu.org>.
4701
75c5350a
GM
47022001-07-27 Gerd Moellmann <gerd@gnu.org>
4703
4704 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
4705
4706 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
4707 of row's visible height.
4708
4709 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
4710 deal with the first overlay string having an image `display' property.
4711 (try_window_reusing_current_matrix, compute_line_metrics):
4712 Fix computation of row's visible height for the case that part of the
75c5350a
GM
4713 row is invisible above and part of the row is at the same time
4714 invisible below the window.
4715
ac49effe
GM
47162001-07-26 Gerd Moellmann <gerd@gnu.org>
4717
4718 * xfns.c (x-show-tip): Doc fix.
3452efc2 4719
ac49effe
GM
4720 * xfns.c (Vx_max_tooltip_size): New variable.
4721 (syms_of_xfns): DEFVAR_LISP it.
4722 (Fx_show_tip): Set frame's window_width to the width of the
4723 window. Use a maximum tooltip size specified by
4724 Vx_max_tooltip_size, if that has valid contents.
4725 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 4726
8c3b00cb
AI
47272001-07-26 Andrew Innes <andrewi@gnu.org>
4728
4729 * w32term.c (x_display_list): New variable.
4730 (w32_term_init): Set it.
4731
4732 * w32term.h (x_display_list): New extern.
4733
16098288
GM
47342001-07-26 Gerd Moellmann <gerd@gnu.org>
4735
4736 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
4737 is non-nil, instead of when redisplaying_p is non-zero.
4738 See comment there.
16098288
GM
4739 (mark_window_display_accurate_1): Add an assertion.
4740
64c5be50
GM
47412001-07-25 Gerd Moellmann <gerd@gnu.org>
4742
e743f599
GM
4743 * dispextern.h (struct it): Increase size of ctl_chars to 16.
4744
563b384d
GM
4745 * xfns.c (Fx_file_dialog): Block/unblock input while processing
4746 events so that we get a chance of processing expose events.
4747
64c5be50
GM
4748 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4749
296808a5
GM
47502001-07-24 Gerd Moellmann <gerd@gnu.org>
4751
4752 * xfns.c (valid_image_p): Protect better against invalid image
4753 specifications. Previous code could signal an error.
4754
5247262a
GM
47552001-07-23 Gerd Moellmann <gerd@gnu.org>
4756
3452efc2 4757 * indent.c (current_column): Fix column computation in the
f1004faf
GM
4758 presence of display table entries.
4759 (current_column_1, Fmove_to_column, compute_motion): Likewise.
4760
dd42b31a
GM
4761 * dispnew.c (adjust_glyph_matrix): In the optimization for
4762 windows whose height has changed, use the new window height
4763 to compute which rows to invalidate.
4764
9e5a7f2a
GM
4765 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4766 (MAX_10_EXP): New macro.
4767 (Fformat): Use it.
4768
5247262a
GM
4769 * coding.c (code_convert_region): Handle the multibyte case if
4770 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
4771
177ab8ce
GM
47722001-07-20 Gerd Moellmann <gerd@gnu.org>
4773
6e07c0a5
GM
4774 * dispextern.h (struct face): Change type of `stipple' to
4775 int; it's an ID.
4776
177ab8ce
GM
4777 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
4778
b5b80599
GM
47792001-07-19 Gerd Moellmann <gerd@gnu.org>
4780
4e2a256b
GM
4781 * dispnew.c (update_window): Don't set the cursor at the end
4782 of the update if display update has been paused.
4783
3452efc2 4784 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 4785
c1fd9232
KR
47862001-07-18 Ken Raeburn <raeburn@gnu.org>
4787
4788 * fns.c (Fset_char_table_default): Check that a charset is defined
4789 before checking its dimension.
4790
928a85c1
KR
47912001-07-17 Ken Raeburn <raeburn@gnu.org>
4792
4793 * coding.c (setup_coding_system): Don't do any designation based
4794 on reg_bits if charset is not yet defined.
4795
fb4c6c96 4796 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
4797 pointer, using eassert.
4798
de11c1ea
GM
47992001-07-17 Gerd Moellmann <gerd@gnu.org>
4800
3452efc2
SM
4801 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
4802 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 4803
467f1209
GM
48042001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
4805
4806 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
4807
c3d6be34
GM
48082001-07-16 Gerd Moellmann <gerd@gnu.org>
4809
c1d61a7d
GM
4810 * fileio.c (unwind_read): Function removed.
4811 (read_non_regular, read_non_regular_quit): New functions.
4812 (Finsert_file_contents): When reading from non-regular files,
4813 arrange to catch a `quit' and terminate the loop. Rearrange
4814 code so that a `quit' when reading from a regular file doesn't
4815 insert text in the buffer.
4816
c3d6be34
GM
4817 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
4818 Clear faces afterwards.
4819 (clear_font_table): Take a x_display_info parameter. Don't free
4820 fonts being the default font of any frame on the given display.
4821
e06aa1f9
GM
48222001-07-13 Gerd Moellmann <gerd@gnu.org>
4823
4824 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
4825 instead of CHAR_STRING which can signal an error.
4826
4827 * charset.c (char_to_string_1): Extracted from char_to_string.
4828 Return -1 instead of signaling an error.
4829 (char_to_string): Use it.
4830
4831 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
4832
176c92e6
SM
48332001-07-12 Stefan Monnier <monnier@cs.yale.edu>
4834
4835 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
4836 is t, don't try to append anything to it.
4837
1c56232f
EZ
48382001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
4839
4840 * dired.c (file_name_completion): Pass dp->d_name to
4841 Fstring_match, not elt, which is always nil here.
4842
1d2b2268
GM
48432001-07-12 Gerd Moellmann <gerd@gnu.org>
4844
4845 * xselect.c (x_decline_selection_request): Handle errors
4846 caused by receivers that have vanished.
4847
4848 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
4849 ignoring events on foreign windows in #if 0. Always dispatch
4850 the event after checking it with x_handle_property_notify.
4851
4852 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
4853 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
4854 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
4855 (toplevel): Add prototypes for file-local functions.
4856 (x_atom_to_symbol): Remove DPYINFO parameter.
4857
fe5a0162
SM
48582001-07-11 Stefan Monnier <monnier@cs.yale.edu>
4859
4860 * w32menu.c (menubar_selection_callback, w32_menu_show):
4861 Initialize `entry' to nil.
4862 (w32_dialog_show): Remove unused `save_wv' variable.
4863 (name_is_separator): Recognize "--:foo" and "--foo-bar".
4864
a777242c
GM
48652001-07-11 Gerd Moellmann <gerd@gnu.org>
4866
8ee5b6a3
GM
4867 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
4868
d0e2444e
GM
4869 * fileio.c (unwind_read): Print a message when discarding inserted
4870 text or switching the buffer to unibyte. Change parameter.
4871 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 4872
a777242c
GM
4873 * fileio.c (unwind_read): New function.
4874 (Finsert_file_contents): Record it as unwind-function for
4875 the case that reading is interrupted by C-g.
4876
ae794295
GM
48772001-07-10 Gerd Moellmann <gerd@gnu.org>
4878
fe5a0162 4879 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
4880 update when scrolling_window returns 0.
4881
6b05fae3
GM
4882 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
4883
4884 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 4885 for the case that x_decode_color signals an error.
6b05fae3 4886
ae794295
GM
4887 * xdisp.c (add_to_log): Do nothing if called asynchronously.
4888
bb6e8cee
GM
48892001-07-09 Gerd Moellmann <gerd@gnu.org>
4890
4891 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
4892 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
4893 around ioctls.
4894
36b40a8a
EZ
48952001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
4896
24b97d4b
EZ
4897 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
4898 doc string line for dos-timezone-offset.
4899
36b40a8a
EZ
4900 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
4901 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
4902 (syms_of_msdos): Add \n\ at the end of a line in the doc string
4903 line for dos-unsupported-char-glyph.
36b40a8a
EZ
4904
4905 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
4906
0967b4b0
GM
49072001-07-05 Gerd Moellmann <gerd@gnu.org>
4908
f25cfe53
GM
4909 * sound.c: Include Emacs' header files with #include "...".
4910
0967b4b0
GM
4911 * eval.c (specbind): Additionally record the buffer that was
4912 current when a buffer-local or frame-local variable was bound.
4913
c347a1c3
GM
49142001-07-04 Gerd Moellmann <gerd@gnu.org>
4915
4916 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
4917 to unibyte characters in unibyte buffers.
4918
6332ca8a
GM
49192001-07-03 Gerd Moellmann <gerd@gnu.org>
4920
38472d44
GM
4921 * eval.c (specbind): If SYMBOL has a frame-local binding, record
4922 the frame on the binding stack. Change format of entries for
4923 local bindings on the binding stack to '(SYMBOL . WHERE)'.
4924 (unbind_to): Handle unbinding a frame-local variable.
4925
6332ca8a 4926 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 4927 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
4928 (dump_glyph_row): Print row's continuation_lines_width.
4929 (try_window_id): Take the shortcut if ZV is visible in the
4930 window, but there are actually no changes at ZV.
4931
63d1b174
GM
49322001-07-02 Gerd Moellmann <gerd@gnu.org>
4933
4c175203
GM
4934 * xterm.h (x_free_dpy_colors): Add prototype.
4935
4936 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
4937 right number of arguments.
4938
0b54ce28
GM
4939 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
4940 ($(lwlibdir)TAGS): New target.
4c175203 4941 (TAGS): Fix dependency list.
0b54ce28 4942
63d1b174
GM
4943 * xterm.c (x_list_fonts): Make sure XFreeFont is called
4944 with input blocked.
4945
d827466c
GM
49462001-06-30 Gerd Moellmann <gerd@gnu.org>
4947
4948 * emacs.c (main): Remove extern declaration for sys_nerr, which
4949 isn't used and causes a compilation error with GCC 3.0 on
4950 FreeBSD 4.3.
4951
b5cb1ada
GM
49522001-06-27 Gerd Moellmann <gerd@gnu.org>
4953
a5d3ec3f 4954 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 4955 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
4956 (toplevel): Include <signal.h> and syssignal.h.
4957
b5cb1ada
GM
4958 * sound.c (vox_configure, vox_close): Turn off atimers
4959 around ioctls.
4960
d9bad487
GM
49612001-06-26 Gerd Moellmann <gerd@gnu.org>
4962
fdbb67fe
GM
4963 * keyboard.c (read_char) <non_reread>: Record the previous idle
4964 start time before calling timer_stop_idle.
4965 (read_char) <reread_first>: After processing a help-echo event,
4966 restore the previous idle start time.
4967
d9bad487
GM
4968 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
4969 the start of invisible text.
4970 (setup_for_ellipsis): New function.
4971 (next_overlay_string): After all overlay strings have been
4972 processed, display an ellipsis if necessary.
4973 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
4974 (push_it): Initialize display_ellipsis_p on the iterator's stack.
4975
4976 * dispextern.h (struct iterator_stack_entry): Add member
4977 display_ellipsis_p.
4978
2b9c25e0
GM
49792001-06-25 Gerd Moellmann <gerd@gnu.org>
4980
80de57df
GM
4981 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
4982 on the value of the wait-for-wm frame parameter.
4983
4984 * xterm.h (struct x_output): Add member wait_for_wm.
4985
4986 * xfns.c (Qwait_for_wm): New variable.
4987 (x_frame_parms): Add entry for `wait-for-wm".
4988 (x_set_wait_for_wm): New function.
4989 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
4990 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
4991
2b9c25e0
GM
4992 * xdisp.c (try_window_id) <all changes below window end>: Don't
4993 take this shortcut if ZV is visible in the window.
4994 (try_window_id): When checking for window start being in changed
4995 text, don't check that the buffer's size has changed.
4996
f772775c
RS
49972001-06-23 Richard M. Stallman <rms@gnu.org>
4998
4999 * minibuf.c (Fcompleting_read): Doc fix.
5000
fa9090b8
GM
50012001-06-19 Gerd Moellmann <gerd@gnu.org>
5002
5003 * composite.c (Ffind_composition_internal): Accept ZV
5004 and a string's end position as POS.
5005
f6f1beba
GM
50062001-06-18 Gerd Moellmann <gerd@gnu.org>
5007
5008 * composite.c (Ffind_composition_internal): Check POS
5009 for validity.
5010
0ae83348
EZ
50112001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
5012
5013 * editfns.c (Fmessage_box): If the frame is not under a window
5014 system, output the message in the echo area.
5015
e4cdc335
RS
50162001-06-14 Richard M. Stallman <rms@gnu.org>
5017
5018 * xdisp.c (try_window_id): When EOB is visible, don't treat
5019 insertion at EOB as if it were "off the bottom of the screen."
5020
a55a5f3c
AI
50212001-06-11 Andrew Innes <andrewi@gnu.org>
5022
5023 * w32proc.c (create_child): Add new parameter is_gui_app.
5024 (w32_executable_type): Add new parameter is_gui_app.
5025 (sys_spawnve): Use it.
5026 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
5027 SIGQUIT. This matches better how the signals are interpreted by
5028 MSVC compiled programs.
5029 (syms_of_ntproc): Update docstring.
5030
1b85dc1c
SM
50312001-06-02 Stefan Monnier <monnier@cs.yale.edu>
5032
5033 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
5034 well otherwise note_mouse_highlight might optimize away highlighting
5035 if we pass over that same overlay again.
5036
b75f8eab
EZ
50372001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
5038
5039 * lread.c (Fload): Document that the argument is run via
5040 substitute-in-file-name.
5041
94843cc1
GM
50422001-05-31 Gerd Moellmann <gerd@gnu.org>
5043
b14659e6
GM
5044 * Makefile.in (bootstrap-doc): New target.
5045 (bootstrap-emacs): Depend on it.
5046
0894672f
GM
5047 * fileio.c (Fdo_auto_save): Don't try to create the directory of
5048 auto-save-list-file-name when shutting down Emacs, because
5049 creating the directory might signal an error, and leaves
5050 Emacs in a strange state.
5051
94843cc1
GM
5052 * term.c: (tty_cursor_hidden): New variable.
5053 (update_begin): Don't call tty_hide_cursor. Clean up.
5054 (update_end, set_terminal_window, set_scroll_region): Clean up.
5055 (ring_bell, reset_terminal_modes): Clean up.
5056 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
5057 on tty_cursor_hidden.
5058 (write_glyphs): Call tty_hide_cursor.
5059
db3a49a6
SM
50602001-05-30 Stefan Monnier <monnier@cs.yale.edu>
5061
5062 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
5063
8bd189fb
GM
50642001-05-30 Gerd Moellmann <gerd@gnu.org>
5065
6f1be3b9
GM
5066 * xfns.c (enum image_value_type): New enumerator
5067 IMAGE_STRING_OR_NIL_VALUE.
5068 (parse_image_spec): Handle it.
5069 (xbm_format, pbm_format): Use it for :foreground and :background.
5070 (xbm_load, pbm_load): Check for nil color names.
5071
8bd189fb
GM
5072 * xterm.c (note_mouse_highlight): If an overlapping overlay
5073 exists, but we find that we highlight the same overlay as before,
5074 don't do the highlighting again.
5075
7bdba03c
GM
50762001-05-29 Gerd Moellmann <gerd@gnu.org>
5077
4c329aa8
GM
5078 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
5079 Protect unibyte strings created by replacing their multibyte
5080 equivalents in menu_items.
5081
e15e2828
GM
5082 * keymap.c (Fsingle_key_description): NUL-terminate the string
5083 buffer before calling build_string.
5084
7bdba03c
GM
5085 * callproc.c (Fcall_process): Deal with decode_coding returning
5086 CODING_FINISH_INCONSISTENT_EOL.
5087
89c8dc6c
GM
50882001-05-28 Gerd Moellmann <gerd@gnu.org>
5089
db3a49a6 5090 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
5091 an item's name with its key description in case the description
5092 is a multibyte string.
5093
5094 * keymap.c (Fsingle_key_description): Create a multibyte string
5095 only if necessary.
5096
eb04d6cd
GM
5097 * macros.c (Fstart_kbd_macro): Doc fix.
5098
8bd6307f
GM
5099 * xterm.c (cursor_in_mouse_face_p): New function.
5100 (x_draw_stretch_glyph_string): Use it to choose a different GC
5101 when drawing a cursor within highlighted text.
5102
e26c4089
GM
5103 * editfns.c (char_property_eq): Put in #if 0.
5104
5105 * indent.c (string_display_width): Put in #if 0.
5106
5107 * lread.c (Fload): Remove unused label.
5108
89c8dc6c
GM
5109 * termcap.c (speeds): Put in #if 0.
5110
9a1211f2
GM
51112001-05-18 Gerd Moellmann <gerd@gnu.org>
5112
29148a3f
GM
5113 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
5114
9a1211f2
GM
5115 * xfaces.c (xlfd_point_size): Don't divide pixel size from
5116 transformation matrix by 10.
5117
09393d07
GM
51182001-05-16 Gerd Moellmann <gerd@gnu.org>
5119
5120 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
5121 only if it's equal to the former foreground pixel color.
db3a49a6 5122 (x_set_foreground_color, x_set_background_color)
09393d07
GM
5123 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
5124
460e6bae
GM
51252001-05-16 Dave Love <fx@gnu.org>
5126
5127 * insdel.c (signal_before_change, signal_after_change): Consider a
5128 local change hook which changes the buffer.
99c78ce8
GM
5129
5130 * process.c (read_process_output): Don't call signal_after_change
5131 and update_compositions after insert_from_string_before_markers.
5132
dbcf3c03
GM
51332001-05-16 Gerd Moellmann <gerd@gnu.org>
5134
a90b3d3c
GM
5135 * xfaces.c (split_font_name): Use the right field when
5136 checking for `[...]' syntax.
5137
1b7818b4
GM
5138 * buffer.c (copy_overlays): New function.
5139 (clone_per_buffer_values): Use it.
5140
5141 * buffer.h (OVERLAY_PLIST): New macro.
5142
9bae8781
GM
5143 * keymap.c (Fsingle_key_description): Replace a build_string with
5144 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
5145
dbcf3c03
GM
5146 * fontset.c (Ffontset_info): Check that face is non-null
5147 before accessing its fields.
5148
8a1ae4dd
GM
51492001-05-15 Gerd Moellmann <gerd@gnu.org>
5150
18a0a39e
GM
5151 * keyboard.c (read_key_sequence): Prevent generating a fake
5152 prefix key twice.
5153
e335b66a
GM
5154 * xfaces.c (split_font_name): Handle `[...]' for the right
5155 font name fields.
5156
8a1ae4dd
GM
5157 * ccl.c (ccl_driver): Don't copy remaining bytes in case
5158 of CCL_STAT_INVALID_CMD.
5159
3cf80731
SM
51602001-05-14 Stefan Monnier <monnier@cs.yale.edu>
5161
33568849
SM
5162 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
5163 in <var> has no default value yet.
5164
3cf80731
SM
5165 * xfaces.c (try_alternative_families): First try the FAMILY.
5166 And if nothing is found in the end, try again with scalable fonts.
5167 (try_font_list): Let try_alternative_families do a bit more of
5168 the work. Only use FAMILY if it is not nil.
5169 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
5170
933b0249
GM
51712001-05-14 Gerd Moellmann <gerd@gnu.org>
5172
58e5af83
GM
5173 * xterm.c (note_mouse_highlight): Avoid changing the mouse
5174 pointer shape when show_mouse_face has already done it.
33568849 5175
58e5af83 5176 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
5177 full-width rows.
5178
7b16a6bf
GM
5179 * xfaces.c (split_font_name): Make sure to leave the loop
5180 with the right value of `i'.
3cf80731 5181
933b0249
GM
5182 * xfaces.c (split_font_name): Handle matrix transformations
5183 in the pixel and point size fields of XLFD font names.
5184 (xlfd_point_size): Likewise.
5185
dddcbf00
EZ
51862001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
5187
3cf80731 5188 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
5189 (x_to_w32_font): Add prototype.
5190
7689ef0b
EZ
5191 * regex.c (malloc, realloc, free) [emacs]: Undefine before
5192 redefining, to avoid compiler warnings.
5193
e7c15bba
EZ
5194 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
5195
dddcbf00
EZ
5196 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
5197 (w32_get_bdf_glyph): Cast between unsigned char and char when
5198 passing arguments to subroutines, to shut up compiler warnings.
5199 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
5200 GET_HEX_VAL.
5201
5202 * xfaces.c: Include keyboard.h before frame.h, not after it.
5203
5204 * widget.c: Include keyboard.h before frame.h.
5205
5206 * w32term.h (struct image, struct face): Forward declaration, to
5207 avoid compiler warnings.
5208
7bd2d083
GM
52092001-05-11 Gerd Moellmann <gerd@gnu.org>
5210
47e72862
GM
5211 * keyboard.c (read_key_sequence): Don't modify events when
5212 generating fake prefix keys (mode-line, scroll-bar, ...) since
5213 this prevents proper processing of such events when pushed back
5214 into unread-command-events.
5215
dd5f324b
GM
5216 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
5217 actually redrawn. Make the function static.
5218 (note_mouse_highlight): Fix a case where the mouse cursor
5219 was changed back to the text cursor.
5220
5221 * xterm.h (clear_mouse_face): Remove prototype.
5222
d88a79d4
GM
5223 * xdisp.c (try_window_id): Fix the fix and set the right
5224 window_end_vpos.
5225
5226 * xdisp.c (try_window_id): Fix computation of window end in the
5227 case that lines were deleted at the end of the window. Add some
5228 more debug_method_adds.
0416532f 5229
7bd2d083
GM
5230 * xfaces.c (try_alternative_families): New function.
5231 (try_font_list): Use it. If ATTRS specifies a family, check
5232 fonts from that family first.
5233 (choose_face_font): Remove code setting the family part of
5234 the pattern to nil.
5235
23fca891
GM
52362001-05-10 Gerd Moellmann <gerd@gnu.org>
5237
ff9aa2ca
GM
5238 * xdisp.c (try_window_id): Fix case of all changes before
5239 the window start.
7b2654b5 5240
23fca891
GM
5241 * xdisp.c (try_window_id): Add some xasserts.
5242
e9726794
GM
52432001-05-09 Gerd Moellmann <gerd@gnu.org>
5244
5245 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
5246
9e53a675
GM
52472001-05-09 Dave Love <fx@gnu.org>
5248
5249 * xdisp.c (GIVE_UP): Fix for K&R C.
5250
0d487c52
GM
52512001-05-09 Gerd Moellmann <gerd@gnu.org>
5252
fe88d421
GM
5253 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
5254
0d487c52
GM
5255 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
5256 back to the text cursor shape without need.
5257
1e9fc92e
GM
52582001-05-07 Gerd Moellmann <gerd@gnu.org>
5259
a2a6232e
GM
5260 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
5261
5262 * dispextern.h (inverse_video): Declare extern.
5263
1e9fc92e
GM
5264 * keyboard.c (delete_kboard): Handle the case that selected_frame
5265 has been deleted in the course of x_connection_closed.
5266
12949a7f
EZ
52672001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
5268
7b2654b5
SM
5269 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
5270 Fix the change from 2001-04-30.
12949a7f 5271
2fa2f461
GM
52722001-05-03 Gerd Moellmann <gerd@gnu.org>
5273
a779d213
GM
5274 * xfns.c (file_dialog_unmap_cb): New function.
5275 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
5276 where a dialog is closed via the window manager.
5277
7b2654b5 5278 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
5279 the window start or all below the window end mostly rewritten.
5280 (redisplay_window): Move the tests if try_window_id is
5281 applicable to try_window_id.
5282 (GIVE_UP): New macro.
5283
3356df63
GM
52842001-05-02 Gerd Moellmann <gerd@gnu.org>
5285
a39202f6 5286 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
5287 currently being updated, mark the frame garbaged.
5288 Fix computation of rows intersecting the exposed rectangle.
a39202f6 5289 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 5290
3356df63
GM
5291 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
5292 again if it has already been drawn.
5293
a9d2fd1d
SM
52942001-05-01 Stefan Monnier <monnier@cs.yale.edu>
5295
5296 * syntax.c (update_syntax_table): Check that oldi has the same
5297 properties as old_prop before deciding not to invalidate.
5298
c95fc5f1
GM
52992001-04-30 Gerd Moellmann <gerd@gnu.org>
5300
a9793e45
GM
5301 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
5302 read-only text that is so because of text properties.
5303
c95fc5f1 5304 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 5305 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
5306 windows that are components of a Lucid menu bar.
5307
5a5d9185
GM
53082001-04-27 Gerd Moellmann <gerd@gnu.org>
5309
5310 * term.c (turn_on_face): Fix reverse video handling on terminals
5311 that don't support colors.
5312
ba973f7a
GM
53132001-04-26 Gerd Moellmann <gerd@gnu.org>
5314
5315 * editfns.c (save_excursion_restore): Don't use XBUFFER on
5316 a non-buffer.
5317
8c56a983
GM
53182001-04-25 Gerd Moellmann <gerd@gnu.org>
5319
a728644c
GM
5320 * term.c (toggle_highlight): New function.
5321 (turn_on_face): Change handling of reverse video.
5322
7b2654b5
SM
5323 * process.c (wait_reading_process_input):
5324 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 5325
bfd8410f
GM
5326 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
5327 of the number of overlays to check.
5328
be2488ca
GM
5329 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
5330
8c56a983
GM
5331 * xdisp.c (try_window_id): Fix a case where window_end_pos
5332 and window_end_bytepos were not adjusted.
5333
522d42f7
GM
53342001-04-23 Gerd Moellmann <gerd@gnu.org>
5335
5336 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
5337 zero instead of -1.
5338
78c1afb6
EZ
53392001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
5340
a9d2fd1d
SM
5341 * process.c (wait_reading_process_input) [!subprocesses]:
5342 Don't reference waiting_for_user_input_p, it's not defined in the
5343 branch without async subprocesses support.
78c1afb6 5344
a2fab450
GM
53452001-04-19 Gerd Moellmann <gerd@gnu.org>
5346
a122a38e
GM
5347 * keyboard.c (delete_kboard): Prevent a dangling reference
5348 from current_kboard to KB, which is freed.
5349
a9d2fd1d
SM
5350 * process.c (wait_reading_process_input):
5351 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
5352 read_key_sequence aware of buffer changes from under it.
5353
0f8d6dc7
GM
53542001-04-18 Gerd Moellmann <gerd@gnu.org>
5355
eeffb293
GM
5356 * xfaces.c (Qscalable_fonts_allowed): New variable.
5357 (realizing_basic_faces_p): Removed.
2fa2f461
GM
5358 (x_face_list_fonts): Special handling for realizing_basic_faces_p
5359 removed.
eeffb293 5360 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
5361 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
5362 for scalable-fonts-allowed to t.
eeffb293 5363
0f8d6dc7
GM
5364 * fileio.c (Finsert_file_contents): If the file size returned from
5365 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 5366 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 5367
eec2d1de
EZ
53682001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
5369
5370 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
5371 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
5372 (__memalign_hook): Make the two prototypes consistent.
5373
f4f480bd
GM
53742001-04-17 Gerd Moellmann <gerd@gnu.org>
5375
5376 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
5377 matrix of mini-windows.
5378
52283633
SM
53792001-04-12 Stefan Monnier <monnier@cs.yale.edu>
5380
5381 * intervals.c (find_interval): Don't rebalance during signal handling.
5382
ec2423c9
GM
53832001-04-11 Gerd Moellmann <gerd@gnu.org>
5384
30cb0001 5385 * fns.c: Include blockinput.h.
52283633 5386
ec2423c9
GM
5387 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
5388
719d83ad
GM
53892001-04-10 Gerd Moellmann <gerd@gnu.org>
5390
60f8d735
GM
5391 * fns.c (Fcompare_strings): Fix return values.
5392
afffeb57
GM
5393 * window.c (window_scroll): Change the meaning of N to mean
5394 N screen-fulls or N lines.
5395 (window_scroll_pixel_based, window_scroll_line_based)
5396 (scroll_command, Fscroll_other_window): Change accordingly.
5397
52283633
SM
5398 * window.c (window_scroll_pixel_based, Frecenter):
5399 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
5400 height of the window.
5401
5402 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
5403 instead of using it.last_visible_y for the height of the window.
52283633 5404
719d83ad 5405 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 5406 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
5407
5408 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
5409 able to write to hidden and system files. From Dan Holmsand
5410 <dan@eyebee.com>.
719d83ad 5411
8ddf3ee1
GM
5412 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
5413 Holmsand <dan@eyebee.com>.
719d83ad 5414
522ed7fb
GM
54152001-04-09 Gerd Moellmann <gerd@gnu.org>
5416
9170e5d4
GM
5417 * fns.c (Fplist_get, Fplist_put): Add QUITs.
5418
522ed7fb
GM
5419 * window.c (window_internal_height): Return 1 less if the
5420 window has a header line.
5421
5422 * xdisp.c (try_window_id): When scrolling on a terminal, take
5423 the change of window_internal_height into account.
5424
ceeb3d7d
EZ
54252001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
5426
5427 * gmalloc.c (align): If the argument SIZE would overflow
5428 __malloc_ptrdiff_t, fail right away.
5429
63685b9d
GM
54302001-04-06 Gerd Moellmann <gerd@gnu.org>
5431
5432 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
5433 Make sure the tooltip is completely visible.
5434 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
5435
5436 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
5437
5438 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
5439
3ffb33bb
DL
54402001-04-06 Dave Love <fx@gnu.org>
5441
52283633
SM
5442 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
5443 Fix test of `from'.
3ffb33bb 5444
869fb12c
GM
54452001-04-06 Gerd Moellmann <gerd@gnu.org>
5446
52283633 5447 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 5448
869fb12c
GM
5449 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
5450
441bf856
GM
54512001-04-05 Gerd Moellmann <gerd@gnu.org>
5452
4d664b04
GM
5453 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
5454
52283633 5455 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 5456
30ca89f5
GM
5457 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
5458 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
5459
5460 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
5461 shell widget's position only if it is non-null.
5462
52283633
SM
5463 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
5464 Set f->output_data.x->widget to null after destroying it.
30ca89f5 5465
81a81c0f
GM
5466 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
5467 FILENAME to bring it in synch with the documentation.
5468
441bf856
GM
5469 * xfaces.c (realizing_basic_faces_p): Renamed from
5470 realize_default_face_p.
5471 (realize_basic_faces): Set/clear realizing_basic_faces_p.
5472 (realize_default_face): Don't set the flag.
5473
702a1e8e
GM
54742001-04-04 Gerd Moellmann <gerd@gnu.org>
5475
1013f4e3
GM
5476 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
5477
52283633
SM
5478 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
5479
1013f4e3
GM
5480 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
5481 the buffer that was used for echoing.
5482
702a1e8e
GM
5483 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
5484 (first_font_matching): Removed unused function.
5485 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
5486 (may_use_scalable_font_p): Remove parameter FONT; rename
5487 parameter NAME to FONT.
5488 (x_face_list_fonts): Fix missing bounds check.
5489 (realizing_default_face_p): New variable.
5490 (realize_default_face): Set and clear that flag.
5491 (x_face_list_fonts): When called during the realization of the
5492 default face, and no matching fonts are found when ignoring
5493 scalable fonts and fonts matching a regexp from
5494 face-ignored-fonts, try without ignoring fonts.
5495
f9dbcda4
GM
54962001-04-03 Gerd Moellmann <gerd@gnu.org>
5497
ad18ffb1
GM
5498 * xfns.c (postprocess_image): New function.
5499 (lookup_image): Call it for all image types except PostScript.
5500 (x_kill_gs_process): Call postprocess_image.
5501
f9dbcda4
GM
5502 * xterm.c (x_use_underline_position_properties): New variable.
5503 (x_draw_glyph_string): Use it.
5504 (syms_of_xterm): DEFVAR_BOOL it.
5505
651f03b6
GM
55062001-04-02 Gerd Moellmann <gerd@gnu.org>
5507
5508 * xterm.c (x_alloc_nearest_color_1): New function.
5509 (x_alloc_nearest_color): Use it.
5510 (x_color_cells): Take a Display as argument, instead of a frame.
5511 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
5512 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
5513 (x_initialize): Register cvt_string_to_pixel as resource converter
5514 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
5515
73d75a62
GM
55162001-03-30 Gerd Moellmann <gerd@gnu.org>
5517
b2046df8
GM
5518 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
5519 (set_iterator_to_next): If a string from a display property ends,
5520 consider the case that this might also be the end of an
5521 overlay string having the display property.
5522
52283633 5523 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 5524
87d8eba4
GM
5525 * xdisp.c (reseat_to_string): Undo last change.
5526
73d75a62
GM
5527 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
5528 matrix of a window when the header line changes, when
5529 new rows are allocated, or when the width changes.
5530
911a2406
EZ
55312001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
5532
52283633 5533 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 5534
aea51abe
EZ
55352001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
5536
5537 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
5538 deprecated.
5539
176bc847
GM
55402001-03-29 Gerd Moellmann <gerd@gnu.org>
5541
ed31fabf
GM
5542 * data.c (Fsubr_interactive_form): New function.
5543 (syms_of_data): Defsubr it.
5544
176bc847
GM
5545 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
5546 (live_float_p, live_misc_p): Return 1 only if the offset of the
5547 pointer in its block is >= 0.
5548
e59d0e9d
GM
55492001-03-28 Paul Eggert <eggert@twinsun.com>
5550
5551 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
5552 microseconds calcuation. Avoid double-rounding problem.
5553 In doc string, warn that the result is approximate.
5554
f827b862
GM
55552001-03-28 Gerd Moellmann <gerd@gnu.org>
5556
30a3f61c
GM
5557 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
5558 bind `inhibit-eval-during-redisplay' to t.
5559
5560 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
5561
5562 * xdisp.c (inhibit_eval_during_redisplay)
5563 (Qinhibit_eval_during_redisplay): New variables.
5564 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
5565 don't eval, return nil instead.
5566 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
5567 Initialize Qinhibit_eval_during_redisplay.
5568
e719f5ae
GM
5569 * xdisp.c (reseat_to_string): If STRING is multibyte, set
5570 the iterator's multibyte_p flag.
5571
deb2613a
GM
5572 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
5573 instead of setting it to zero; it's incremented for each frame
5574 where the menu face is changed.
5575
52283633
SM
5576 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
5577 change bottom shadow accordingly.
5578
5579 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
5580 intersections here.
5581 (expose_window): Do it here instead.
52283633 5582 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 5583
f827b862
GM
5584 * bytecode.c (BYTE_CODE_QUIT): New macro.
5585 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
5586
4bde0ebb
GM
55872001-03-27 Gerd Moellmann <gerd@gnu.org>
5588
607ec83c
GM
5589 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
5590 Give up if matrix starts in an ellipsis.
5591 (init_from_display_pos): Do nothing if POS doesn't specify
5592 a dpvec_index but the iterator has such a position.
5593
0245398f
GM
5594 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
5595
aba25348
GM
5596 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
5597 x/y position is (0, 0) after destroying the menu bar, restore
5598 its original position.
5599
4bde0ebb
GM
5600 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
5601 (init_from_display_pos): Use it.
5602 (try_window_reusing_current_matrix): Don't use cursor_row_p.
5603
8cdb267e
GM
56042001-03-26 Gerd Moellmann <gerd@gnu.org>
5605
5606 * xdisp.c (try_window_id): Undo last change.
5607
9948db79
EZ
56082001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
5609
5610 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
5611
5612 * buffer.c (syms_of_buffer): Doc fix.
5613
2eddf899
GM
56142001-03-26 Gerd Moellmann <gerd@gnu.org>
5615
5616 * xfaces.c (x_update_menu_appearance): Use local variable
5617 popup_path for setting font resources.
5618
6c145d35
EZ
56192001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
5620
6a65b1b5
EZ
5621 * frame.c (Fframe_list): Don't reference tip_frame if
5622 HAVE_WINDOW_SYSTEM is not defined.
5623
6c145d35
EZ
5624 * emacs.c (main): Update the copyright year. From Werner LEMBERG
5625 <wl@gnu.org>.
5626
d74c1900
GM
56272001-03-25 Gerd Moellmann <gerd@gnu.org>
5628
20fbd925
GM
5629 * xdisp.c (init_from_display_pos): Test invisible property
5630 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 5631
927c5b3b
GM
5632 * xdisp.c (redisplay_internal) <update one window>: Make sure
5633 last_arrow_position and last_arrow_string are set.
5634
d74c1900
GM
5635 * frame.c (Fframe_list): Don't return a tooltip frame.
5636
091f8878
GM
56372001-03-23 Gerd Moellmann <gerd@gnu.org>
5638
52283633
SM
5639 * xdisp.c (mark_window_display_accurate_1): New function,
5640 extracted from mark_window_display_accurate.
5641 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
5642 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
5643 (mark_window_display_accurate): Use it.
5644 (redisplay_internal): Use it for the selected window.
5645 (redisplay_internal): Avoid duplicate mark_window_display_accurate
5646 for the selected frame.
5647
ac90c44f
GM
5648 * xdisp.c Use make_number, for readability.
5649 (try_window_id): Disable rows below the window end.
5650 (try_window_reusing_current_matrix): Use cursor_row_p.
5651 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
5652 of rows.
5653 (init_from_display_pos): If POS specifies a position in a display
5654 vector, maybe get the iterator set up for that ellipsis.
43c09969 5655
091f8878
GM
5656 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
5657
991786dd
EZ
56582001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
5659
5660 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
5661
6c29b43c
GM
56622001-03-23 Gerd Moellmann <gerd@gnu.org>
5663
5664 * xfaces.c (x_update_menu_appearance): Use a different path
5665 for Lucid popup menus.
5666
d8731202
SM
56672001-03-22 Stefan Monnier <monnier@cs.yale.edu>
5668
5669 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
5670
5671 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
5672 (string_buffer_position): Use `make_number'.
5673
f61a541b
GM
56742001-03-22 Gerd Moellmann <gerd@gnu.org>
5675
3c9e997b
GM
5676 * xfaces.c (x_update_menu_appearance): Renamed from
5677 x_set_menu_face_resources. Use different resources for popups.
5678
5679 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
5680 (GC_CHECK_STRING_BYTES): Don't define.
5681
364cd450
GM
5682 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
5683 Removed, together with subroutines.
5684 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 5685 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 5686
d8731202
SM
5687 * dispextern.h (x_set_menu_resources_from_menu_face):
5688 Remove prototype.
364cd450 5689
d8731202 5690 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
5691 Remove calls to x_set_menu_resources_from_menu_face.
5692
d8731202
SM
5693 * xfaces.c (xm_set_menu_resources_from_menu_face):
5694 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
5695
5696 * xmenu.c: Include widget.h.
5697 (single_submenu): Return int. Some cleanup.
5698 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
5699
140330de
GM
57002001-03-21 Gerd Moellmann <gerd@gnu.org>
5701
5702 * xterm.c (x_update_window_end): Handle overwritten mouse face
5703 also for tool bar windows.
5704 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
5705 DRAW is DRAW_IMAGE_RAISED.
5706
1741905c
GM
57072001-03-20 Gerd Moellmann <gerd@gnu.org>
5708
fa88947e
GM
5709 * print.c (syms_of_print): Doc fixes.
5710
1741905c
GM
5711 * fns.c (Fmd5): Doc fix.
5712
ade0bee1
GM
57132001-03-19 Gerd Moellmann <gerd@gnu.org>
5714
357e7376
GM
5715 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5716 Clear area of the frame not occupied by the scroll bar.
5717
c2c097cc
GM
5718 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
5719 tip frame's root window buffer to *tip* right after creating
5720 the frame.
5721
ade0bee1
GM
5722 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
5723 is an integer don't have to be for space characters.
5724
88c6e37e
GM
57252001-03-16 Gerd Moellmann <gerd@gnu.org>
5726
52283633
SM
5727 * indent.c (current_column, current_column_1, Fmove_to_column)
5728 (compute_motion): Handle characters from display vectors differently.
88c6e37e 5729
c62eed76
KH
57302001-03-15 Kenichi Handa <handa@etl.go.jp>
5731
5732 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
5733 drawing glyph string.
5734
c899e7e6
GM
57352001-03-15 Gerd Moellmann <gerd@gnu.org>
5736
d0bbfc99
GM
5737 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
5738 (command_loop_1): Undo last change.
5739
03d1a189
GM
5740 * xterm.c (fast_find_position): Return the correct vpos.
5741
c899e7e6 5742 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 5743 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
5744 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
5745 Call store_symval_forwarding with BUF null.
5746 (set_internal): Call store_symval_forwarding with the BUF
5747 parameter passed to set_internal. Formerly, the value was always
5748 set in the current buffer; the buffer recorded in specbind for
5749 this case wasn't used.
5750 (arith_driver): Reindent.
5751
52283633
SM
5752 * buffer.c (swap_out_buffer_local_variables):
5753 Call store_symval_forwarding with BUF null.
c899e7e6
GM
5754
5755 * lisp.h (store_symval_forwarding): Change prototype.
5756
5757 * eval.c (specbind): Call store_symval_forwarding with BUF null.
5758
57ac7c81
GM
57592001-03-14 Gerd Moellmann <gerd@gnu.org>
5760
697617d9
GM
5761 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
5762 FOR_DELETION. Avoid resizing the mini-window of the selected
5763 frame if FOR_DELETION is set.
5764 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
5765 (Fmake_frame_invisible): Change calls to do_switch_frame for new
5766 signature.
5767
5768 * window.c (Fset_window_configuration): Change call to
5769 do_switch_frame to new format.
5770
5771 * keyboard.c (quit_throw_to_read_char): Change call to
5772 do_switch_frame to new format.
5773
5774 * lisp.h (do_switch_frame): Change prototype.
5775
819dce0f
GM
5776 * frame.c (Fframe_parameters): In the `buffer-list' frame
5777 parameter, store the buffer list of FRAME, not the list of the
5778 selected frame.
5779
57ac7c81
GM
5780 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
5781 box just because the glyph row's full_width_p flag is set.
5782
65008712
GM
57832001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
5784
5785 * xdisp.c (highlight_trailing_whitespace): On character terminals,
5786 skip the padding blanks inserted in extend_face_to_end_of_line,
5787 before checking for trailing whitespace.
5788
159cf431
GM
57892001-03-13 Gerd Moellmann <gerd@gnu.org>
5790
52283633 5791 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
5792 Remove special handling for LessTif/Motif.
5793 (toplevel): Don't include Xm/Xm.h.
5794
52283633
SM
5795 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
5796 Remove workaround code for LessTif; it doesn't work anymore.
5797
2564ea1b 5798 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 5799 Xm/ScrollBarP.h.
afcdc0a1 5800
52283633
SM
5801 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
5802 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
5803 contemporary LessTif.
5804
52283633
SM
5805 * xfaces.c (xm_set_menu_resources_from_menu_face):
5806 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 5807
159cf431
GM
5808 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
5809 removing button grabs.
5810
c6f7429a
KH
58112001-03-13 Kenichi Handa <handa@etl.go.jp>
5812
cb82d767
KH
5813 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
5814 and clip-large-size-font as obsolete.
5815
c6f7429a
KH
5816 * lread.c (read_multibyte): Check the validity of multibyte
5817 sequence. If invalid, return the first byte.
5818
760cefb5
GM
58192001-03-12 Gerd Moellmann <gerd@gnu.org>
5820
5821 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
5822 before running the command; timer functions or process
5823 filters may have set it.
5824
5141f9d0
EZ
58252001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5826
5827 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5828 Doc fix.
5829
b6a15240
GM
58302001-03-12 Gerd Moellmann <gerd@gnu.org>
5831
5832 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
5833 to sprintf.
5834
95522746
GM
58352001-03-09 Gerd Moellmann <gerd@gnu.org>
5836
db14cfc5
GM
5837 * dispextern.h (string_buffer_position): Add prototype.
5838
52283633 5839 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
5840 (single_display_prop_string_p): New functions.
5841
5842 * xterm.c (note_mouse_highlight): If there's no help-echo on
5843 a string, look at the buffer text ``under'' it.
5844
5845 * keyboard.c (make_lispy_event): Add string info to the event,
5846 analogous to what's done on mode lines.
5847 (read_key_sequence): For a click on a string, consider `local-map'
5848 and `keymap' of that string.
5849
52283633
SM
5850 * keyboard.c (make_lispy_event, make_lispy_movement):
5851 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
5852
5853 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
5854
5855 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
5856 POS; return void.
5857
95522746
GM
5858 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
5859 flags argument to emacs_open; it seems to conflict with O_EXCL.
5860
898a399d
KH
58612001-03-09 Kenichi Handa <handa@etl.go.jp>
5862
28cd4910
KH
5863 * composite.h (struct composition): Change types of members;
5864 glyph_len to unsigned, width to unsigned short.
898a399d 5865
4cdf6a6c
AI
58662001-03-08 Andrew Innes <andrewi@gnu.org>
5867
5868 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
5869 menu titles.
5870
129004d3
GM
58712001-03-08 Gerd Moellmann <gerd@gnu.org>
5872
221dd3e7
GM
5873 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
5874 instead of nil.
5875
52283633 5876 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
5877 help-echo in strings.
5878 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5879 (fast_find_string_pos): New function.
5880
52283633
SM
5881 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
5882 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
5883
5884 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
5885 Handle `mouse-face'.
5886
5887 * dispextern.h (face_at_string_position): Change prototype.
5888
52283633 5889 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 5890
129004d3
GM
5891 * keyboard.c (make_lispy_event): Avoid generating drag events
5892 if the mouse hasn't actually moved to another buffer position.
52283633 5893
80c8ab8c
DL
58942001-03-08 Dave Love <fx@gnu.org>
5895
129004d3 5896 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 5897
989521fd
GM
58982001-03-08 Gerd Moellmann <gerd@gnu.org>
5899
5900 * process.c (Fset_process_window_size): Fix a typo.
5901
bb5c338d
KH
59022001-03-08 Kenichi Handa <handa@etl.go.jp>
5903
5904 * coding.c (detect_coding_sjis): Do more rigid check.
5905 (detect_coding_big5): Likewise.
5906 (decode_coding_sjis_big5): Likewise.
5907 (Fdetect_coding_region): Call detect_coding_system with tailing
5908 anchor byte `\0' for more rigid detection.
52283633 5909 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
5910 (Fdetect_coding_string): Likewise.
5911
8b8f9197
SM
59122001-03-07 Stefan Monnier <monnier@cs.yale.edu>
5913
5914 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
5915 a string before extracting its data.
5916
3bdf2660
GM
59172001-03-07 Gerd Moellmann <gerd@gnu.org>
5918
5919 * window.c (Frecenter): Rewrite code handling negative values
5920 of ARG on graphical frames.
5921
59222001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
5923
5924 * window.c (displayed_window_lines): If W->start is outside the
5925 accessible portion of the buffer, call start_display with BEGV or
5926 ZV instead of W->start.
5927
471f86b9
GM
59282001-03-07 Gerd Moellmann <gerd@gnu.org>
5929
2ab62c6c
GM
5930 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
5931
471f86b9
GM
5932 * process.c (Fset_process_filter): Don't crash if the input
5933 file descriptor of PROCESS is closed.
5934 (Fset_process_window_size): Likewise.
5935
101922c3
GM
59362001-03-06 Kenichi Handa <handa@etl.go.jp>
5937
5938 * xterm.c (XTflash): Make the timeout of select shorter, and call
5939 select repeatedly until the desired time expires.
5940
45d051a7
GM
59412001-03-06 Gerd Moellmann <gerd@gnu.org>
5942
5943 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
5944
5945 * xfns.c (Fx_create_frame): Clear Vwindow_list.
5946
5947 * lisp.h (Vwindow_list): Declare extern.
5948
8f372c46
EZ
59492001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5950
5951 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
5952
f16a7aa5
GM
59532001-03-06 Gerd Moellmann <gerd@gnu.org>
5954
157ae273
GM
5955 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
5956 to detect a case where we have to highlight a different region
5957 despite not having left the currently highlighted region.
5958 Set mouse_face_overlay in the x_display_info.
45d051a7 5959 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
5960
5961 * xterm.h (struct x_display_info): Add mouse_face_overlay.
5962
5963 * buffer.c (mouse_face_overlay_overlaps): New function.
5964
5965 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
5966 (Qmouse_face): Declare extern.
5967
f16a7aa5
GM
5968 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
5969 if face_change_count is non-zero.
5970
827afcac
KH
59712001-03-06 Kenichi Handa <handa@etl.go.jp>
5972
5973 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
5974 that the source is unibyte.
5975
14c7242e
DL
59762001-03-05 Dave Love <fx@gnu.org>
5977
827afcac 5978 * xterm.c (XTmouse_position): Fix typo.
14c7242e 5979
c28b847b
GM
59802001-03-05 Gerd Moellmann <gerd@gnu.org>
5981
5982 * minibuf.c (read_minibuf): Clean up the binding stack if
5983 called noninteractively.
5984
b86644f2
KH
59852001-03-05 Kenichi Handa <handa@etl.go.jp>
5986
5987 * coding.c (syms_of_coding): Docstring modified.
5988
203682cc 59892001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
5990
5991 * charset.c (char_to_string): If a single byte char has modifier
5992 bits that can't be reflected to the character code, ignore them
45d051a7 5993 instead of signaling an error.
b86644f2 5994
e30bd7b7
EZ
59952001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5996
5997 * s/msdos.h: Update copyright notice.
5998
5999 * dosfns.h: Update copyright notice.
6000
6001 * dosfns.c: Update copyright notice.
6002
6003 * msdos.c: Update copyright notice.
6004
b52b65bd
GM
60052001-03-02 Gerd Moellmann <gerd@gnu.org>
6006
6007 * xterm.c (glyph_rect): New function.
6008 (XTmouse_position): Use it to raise the threshold for mouse
6009 movement event generation.
6010
53c4b1e6
EZ
60112001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
6012
6013 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
6014 specifies (reverse . t), reverse the initial screen colors.
6015 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
6016 but we are reversing the colors, set bg_set, not fg_set.
6017 Likewise for setting background-color and reversing: set fg_set.
6018 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
6019 in effect.
6020
6021 * xfaces.c (Finternal_set_lisp_face_attribute)
6022 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
6023 parameters alist.
6024
f964b4d7
GM
60252001-03-02 Gerd Moellmann <gerd@gnu.org>
6026
ef53d75e
GM
6027 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
6028 to a single slash in the middle of file names.
6029
52283633 6030 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
6031 Accept only alphanumeric time zone names.
6032
f964b4d7
GM
6033 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
6034 or width area.
6035 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
6036 a widget to zero height.
52283633 6037
c3c45f65
GM
60382001-03-01 Gerd Moellmann <gerd@gnu.org>
6039
6040 * window.c (Fwindow_end): Call move_it_past_eol only if
6041 ending up on a partially visible line.
6042
028d739a
DL
60432001-03-01 Dave Love <fx@gnu.org>
6044
6045 * ccl.c (Fccl_execute): Doc fix.
6046
57c5889c
GM
60472001-03-01 Gerd Moellmann <gerd@gnu.org>
6048
35f59f6b
GM
6049 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
6050 of the tool bar before calling x_figure_window_size.
6051
f84ff02c
GM
6052 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
6053 NULL after destroying it, otherwise XTread_socket can access a
6054 destroyed widget when input is unblocked.
6055
8b8f9197 6056 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 6057
57c5889c
GM
6058 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
6059 same name as before, although there was a change in fontsets.
6060
224227d1
KR
60612001-02-28 Ken Raeburn <raeburn@gnu.org>
6062
4560730a
KR
6063 * lisp.h (Fframe_parameter): Declare.
6064
224227d1 6065 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 6066 Lisp_Object.
224227d1 6067
ece93c02
GM
60682001-02-28 Gerd Moellmann <gerd@gnu.org>
6069
11ef99b9
GM
6070 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
6071 NULL instead.
6072
6073 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
6074 NULL instead.
6075
ece93c02
GM
6076 * alloc.c (toplevel): Include process.h.
6077 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
6078 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
6079 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
6080 (allocate_vector, allocate_hash_table, allocate_window)
6081 (allocate_frame, allocate_process, allocate_other_vector):
6082 New functions.
ece93c02
GM
6083 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
6084 (mark_maybe_pointer): New function.
52283633 6085 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
6086 remain and not Lisp_Objects.
6087 (min_heap_address, max_heap_address): New variables.
6088 (mem_find): Return MEM_NIL if START is below min_heap_address or
6089 above max_heap_address.
6090 (mem_insert): Compute min_heap_address and max_heap_address.
6091
6092 * process.c (make_process): Use allocate_process.
6093
6094 * frame.c (make_frame): Use allocate_frame.
6095
6096 * window.c (make_window, make_dummy_parent): Use allocate_window.
6097 (Fcurrent_window_configuration): Use allocate_other_vector.
6098
6099 * lisp.h (allocate_vectorlike): Remove prototype.
6100 (allocate_vector, allocate_other_vector, allocate_frame)
6101 (allocate_window, allocate_process, allocate_hash_table):
6102 Add prototypes.
6103
6104 * fns.c (Fdelete, larger_vector): Use allocate_vector.
6105 (make_hash_table, copy_hash_table): Use allocate_hash_table.
6106
063af457
KH
61072001-02-27 Kenichi Handa <handa@etl.go.jp>
6108
6109 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
6110 treat the produced bytes as a valid multibyte sequence.
6111
6112 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
6113 (ccl_driver) <CCL_WriteMultibyteChar2>:
6114 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
6115 <ccl_finish>: Set ccl->eight_bit_control properly.
6116
6117 * ccl.h (struct ccl_program): New member eight_bit_control.
6118
f58c6494
SM
61192001-02-26 Stefan Monnier <monnier@cs.yale.edu>
6120
6121 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
6122 accessible_keymaps_char_table.
6123 (accessible_keymaps_char_table): Obey `is_metized'.
6124 (where_is_internal, Fwhere_is_internal): Don't confuse int and
6125 Lisp_Object.
6126
c596c392
GM
61272001-02-26 Gerd Moellmann <gerd@gnu.org>
6128
6129 * dispnew.c: Check HAVE_TERM_H before including term.h.
6130
425de386
AI
61312001-02-24 Andrew Innes <andrewi@gnu.org>
6132
6133 * makefile.w32-in: Update copyright notice.
6134
2ba11bbd
SM
61352001-02-24 Stefan Monnier <monnier@cs.yale.edu>
6136
6137 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
6138
66c56ed1
KH
61392001-02-24 Kenichi Handa <handa@etl.go.jp>
6140
4c1593ce
KH
6141 * Makefile.in (lisp): Add international/utf-8.elc.
6142
66c56ed1
KH
6143 * fontset.c (Fnew_fontset): Fix handling of the case that an
6144 element of FONTLIST is a cons of family and registry.
6145
796ead7e
JR
61462001-02-23 Jason Rumney <jasonr@gnu.org>
6147
6148 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
6149 to height unconditionally.
6150
6151 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 6152 background face to the end of the drawing area in the text area, only.
796ead7e
JR
6153 (x_insert_glyphs): Call window_box_left to obtain the left
6154 x-coordinate of the area to shift.
6155
6156 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
6157 safe_run_hooks.
6158
f6839838
AI
61592001-02-22 Andrew Innes <andrewi@gnu.org>
6160
52283633 6161 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
6162 ($(BLD)\dispnew.obj):
6163 ($(BLD)\editfns.obj):
6164 ($(BLD)\fileio.obj):
6165 ($(BLD)\filelock.obj):
6166 ($(BLD)\keyboard.obj):
6167 ($(BLD)\w32proc.obj):
6168 ($(BLD)\process.obj):
6169 ($(BLD)\sysdep.obj): Ditto.
6170
6171 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
6172 header files.
52283633
SM
6173 ($(BLD)/dispnew.$(O)):
6174 ($(BLD)/editfns.$(O)):
6175 ($(BLD)/fileio.$(O)):
6176 ($(BLD)/filelock.$(O)):
6177 ($(BLD)/keyboard.$(O)):
6178 ($(BLD)/w32proc.$(O)):
6179 ($(BLD)/process.$(O)):
f6839838
AI
6180 ($(BLD)/sysdep.$(O)): Ditto.
6181
c224f70b
GM
61822001-02-22 Gerd Moellmann <gerd@gnu.org>
6183
51695746
GM
6184 * xdisp.c (forward_to_next_line_start): When taking the shortcut
6185 at the start of the function, check that the \n in it->c is
6186 from the iterator's current position.
52283633 6187
a61b7058
GM
6188 * xdisp.c (handle_single_display_prop): Add parameter
6189 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
6190 properties which replace the display of text with something else.
6191 (handle_display_prop): Call handle_single_display_prop with
6192 additional argument saying if we already replaced text display
6193 with something else. Use AREF.
52283633 6194 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
6195 (decode_mode_spec_coding): Use AREF and ASIZE.
6196
3473f362
GM
6197 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
6198 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
6199 * vmstime.h: Files removed.
52283633 6200
2bb58df3
GM
6201 * unexencap.c, unexfx2800.c: Files removed.
6202
c224f70b
GM
6203 * dispnew.c (direct_output_for_insert): Give up if we are showing
6204 a message or just cleared the message because we might need to
6205 resize the echo area window or display an empty echo area.
6206
ffc9ff0c
GM
62072001-02-21 Gerd Moellmann <gerd@gnu.org>
6208
0528abe1
GM
6209 * xdisp.c (redisplay_internal): Do the
6210 mark_window_display_accurate after all windows have been
6211 redisplayed because this call resets flags in buffers which are
6212 needed for proper redisplay.
6213
52283633
SM
6214 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
6215 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
6216 the old names.
6217
52283633
SM
6218 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
6219 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
6220
6221 * msdos.h (struct x_output): Rename busy_window to
6222 hourglass_window, busy_p to hourglass_p.
6223
52283633
SM
6224 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
6225 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
6226
6227 * xfns.c: Rename everything containing *busy_cursor* and similar
6228 to *hourglass*.
6229 (syms_of_w32fns): Rename x-busy-pointer-shape to
6230 x-hourglass-pointer-shape, display-busy-cursor to
6231 display-hourglass, busy-cursor-delay to hourglass-delay.
6232
6233 * w32fns.c: Rename everything containing *busy_cursor* and similar
6234 to *hourglass*.
6235 (syms_of_w32fns): Rename x-busy-pointer-shape to
6236 x-hourglass-pointer-shape, display-busy-cursor to
6237 display-hourglass, busy-cursor-delay to hourglass-delay.
6238
6239 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
6240 of its busy_p flag.
6241
6242 * dispextern.h (start_hourglass, cancel_hourglass)
6243 (display_hourglass_p): Renamed from *busy_cursor*.
6244
ab2c5f0a
GM
62452001-02-20 Gerd Moellmann <gerd@gnu.org>
6246
d17e49a8
GM
6247 * keyboard.c (read_char): When an event from unread-command-events
6248 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
6249
fa97adf6
GM
6250 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
6251 equal to the current buffer.
6252
ab2c5f0a
GM
6253 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
6254 nil, otherwise we're left with truncate_lines t when a message
6255 is printed with message-truncate-lines bound to t.
6256
aeac019e
GM
62572001-02-19 Gerd Moellmann <gerd@gnu.org>
6258
c8bc6f65
GM
6259 * window.c (Fmove_to_window_line): Undo last change.
6260 (displayed_window_lines): Call line_bottom_y to determine
6261 the line's bottom position.
6262
6263 * dispextern.h (line_bottom_y): Add prototype.
6264
52283633 6265 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
6266 (pos_visible_p): Use it.
6267
980a2d69
GM
6268 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
6269 set redisplaying_p to 0 here instead of in Frecursive_edit.
6270 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
6271 set redisplaying_p.
6272
52283633 6273 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
6274 New variables.
6275 (syms_of_xdisp): Initialize new variables.
6276 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
6277 Specbind `inhibit-menubar-update' when updating the menu bar.
6278
65048e97
GM
6279 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
6280 safe_run_hooks.
6281
6282 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
6283 safe_run_hooks.
6284
a57c4026
GM
6285 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
6286 is null.
6287
aeac019e
GM
6288 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
6289 to the start of the file.
6290
76846b31
GM
62912001-02-16 Gerd Moellmann <gerd@gnu.org>
6292
f3f053f3 6293 * window.c (set_window_buffer): Fix last change.
52283633 6294
f3f053f3
GM
6295 * window.c (set_window_buffer): Set window's vscroll to 0.
6296
dad75588
GM
6297 * window.c (coordinates_in_window): Increase width of area
6298 where the vertical line can be dragged.
6299
c220b753
GM
6300 * xterm.c (x_set_glyph_string_background_width): Extend the
6301 background face to the end of the drawing area in the text
6302 area, only.
6303
c56b1c1b
GM
6304 * xdisp.c (handle_single_display_prop): Set iterator's position
6305 to where the `display' property starts, like for images.
6306 (dump_glyph): New function.
6307 (dump_glyph_row): Use it. Dump info about marginal areas.
6308
6309 * dispnew.c (direct_output_for_insert): Recognize more cases where
6310 glyphs can be written instead of being inserted.
6311
6312 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
6313 the left x-coordinate of the area to shift.
6314
76846b31
GM
6315 * dired.c (directory_files_internal): Set result list to nil
6316 before retrying.
6317
0fc71a77
KH
63182001-02-15 Kenichi Handa <handa@etl.go.jp>
6319
6320 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
6321 invalid multibyte sequence, treat *SRC as a character of
6322 eight-bit-graphic.
6323
25078b54
EZ
63242001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
6325
6326 * textprop.c (Fset_text_properties): Doc fix.
6327
8399f8a0
GM
63282001-02-15 Gerd Moellmann <gerd@gnu.org>
6329
6330 * dispnew.c (update_text_area): Undo change of 2001-01-12.
6331
9a2a6f73
DL
63322001-02-14 Dave Love <fx@gnu.org>
6333
6334 * coding.c: Doc and message fixes.
6335
bf853fee
AI
63362001-02-14 Andrew Innes <andrewi@gnu.org>
6337
6338 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
6339 Emacs frame above the screen size.
6340
78c663d8
GM
63412001-02-14 Gerd Moellmann <gerd@gnu.org>
6342
6343 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
6344
7cc9f69f
GM
63452001-02-13 Gerd Moellmann <gerd@gnu.org>
6346
0a411995
GM
6347 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
6348 case that TO ends up beyond ZV after running before-change-functions.
6349
5ddc1b75
GM
6350 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
6351 the selected window if it is showing the buffer in question.
6352
7cc9f69f
GM
6353 * dired.c (directory_files_internal): Initialize errno.
6354 (toplevel): Include errno.h.
6355
2e6621ca
GM
63562001-02-13 Kenichi Handa <handa@etl.go.jp>
6357
6358 * xfaces.c (best_matching_font): New parameter width_ratio.
6359 Multiply avgwidth by width_ratio.
6360 (choose_face_font): Call best_matching_font with width_ratio
6361 calculated from the column width of C.
6362
60222d69
AI
63632001-02-12 Andrew Innes <andrewi@gnu.org>
6364
6365 The following changes are to draw box lines inside characters area
6366 if line-width is negative.
52283633 6367
60222d69
AI
6368 * w32term.c (x_produce_image_glyph): Pay attention to the case that
6369 face->box_line_width is negative.
6370 (x_produce_stretch_glyph): Likewise.
6371 (x_produce_glyphs): Likewise.
6372 (x_estimate_mode_line_height): Likewise.
6373 (x_draw_glyph_string_background): Likewise.
6374 (x_draw_glyph_string_foreground): Likewise.
6375 (x_draw_composite_glyph_string_foreground): Likewise.
6376 (x_draw_glyph_string_box): Likewise.
6377 (x_draw_image_foreground): Likewise.
6378 (x_draw_image_relief): Likewise.
6379 (x_draw_image_foreground_1): Likewise.
6380 (x_draw_image_glyph_string): Likewise.
6381
9804b846
KH
63822001-02-09 Kenichi Handa <handa@etl.go.jp>
6383
6384 The following changes are to draw box lines inside characters area
6385 if line-width is negative.
52283633 6386
9804b846
KH
6387 * xterm.c (x_produce_image_glyph): Pay attention to the case that
6388 face->box_line_width is negative.
6389 (x_produce_stretch_glyph): Likewise.
6390 (x_produce_glyphs): Likewise.
6391 (x_estimate_mode_line_height): Likewise.
6392 (x_draw_glyph_string_background): Likewise.
6393 (x_draw_glyph_string_foreground): Likewise.
6394 (x_draw_composite_glyph_string_foreground): Likewise.
6395 (x_draw_glyph_string_box): Likewise.
6396 (x_draw_image_foreground): Likewise.
6397 (x_draw_image_relief): Likewise.
6398 (x_draw_image_foreground_1): Likewise.
6399 (x_draw_image_glyph_string): Likewise.
6400
6401 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
6402 and :line-width can be negative.
52283633 6403 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 6404
49be9f70
JR
64052001-02-09 Jason Rumney <jasonr@gnu.org>
6406
6407 * w32term.c (w32_encode_char): Treat eight bit graphic and control
6408 characters the same as ASCII and latin-1.
6409 (x_display_and_set_cursor): Check for the focus frame's selected
6410 window instead of selected_window.
6411 (x_after_update_window_line): Don't clear if frame's internal
6412 border width is zero.
6413 (x_new_font): Don't change a tooltip's size.
6414 (w32_initialize): Set char_ins_del_ok to 1.
6415
6416 * w32fns.c (Fx_show_tip): Fix calls to make_number.
6417 (x_set_font): If font hasn't changed, avoid recomputing
6418 faces and other things.
52283633
SM
6419 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
6420 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
6421 (x_create_tip_frame): Prevent changing the tooltip's
6422 background color by specifying a color for the default font
6423 in .Xdefaults.
6424 (Qcancel_timer): New variable.
6425 (syms_of_w32fns): Initialize and staticpro it.
6426 (Fx_hide_tip, Fx_show_tip): Use it.
6427 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6428 the timer.
6429 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
6430
6431 * w32.c (init_environment): Duplicate local string before putenv.
6432
555e35d2
SZ
64332001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
6434
6435 * charset.c (Fstring): A typo.
6436
19c92c94
KH
64372001-02-09 Kenichi Handa <handa@etl.go.jp>
6438
e47a1c33
KH
6439 * charset.c (Fstring): If all arguments are less than 256, return
6440 a unibyte string.
6441
6442 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
6443 return a unibyte string.
6444
19c92c94
KH
6445 * coding.c (code_convert_region): After detecting a coding, if
6446 nothing found, set coding->composing to COMPOSITION_NO.
6447 (decode_coding_string): Likewise.
6448
d8e675f5
SM
64492001-02-08 Stefan Monnier <monnier@cs.yale.edu>
6450
6451 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
6452 to avoid overflow.
6453
bd503487
KH
64542001-02-07 Kenichi Handa <handa@etl.go.jp>
6455
6456 * charset.c (parse_str_to_multibyte): New function.
6457
6458 * charset.h (parse_str_to_multibyte): Extern it.
6459
6460 * print.c (print_string): If we are going to print a unibyte
6461 string into a multibyte buffer, convert the string to multibyte by
6462 str_to_multibyte.
6463
a8370d72
AI
64642001-02-06 Andrew Innes <andrewi@gnu.org>
6465
6466 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
6467 been created. It seems we can get sent window messages such as
6468 WM_ERASEBKGND before we properly update a frame.
6469
c363a1d6
GM
64702001-02-06 Gerd Moellmann <gerd@gnu.org>
6471
6472 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
6473 Avoid some unnecessary cursor positioning.
6474
a08332c0
GM
64752001-02-05 Gerd Moellmann <gerd@gnu.org>
6476
52283633 6477 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
6478 (LFACE_AVGWIDTH): New macro.
6479 (LFACEP): Use AREF.
6480 (check_lface_attrs): Check LFACE_AVGWIDTH.
6481 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
6482 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
6483 (merge_face_vectors): Check LFACE_AVGWIDTH.
6484 (Finternal_make_lisp_face): Use AREF.
6485 (xm_set_menu_resources_from_menu_face)
6486 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
6487 (Finternal_lisp_face_empty_p): Use AREF.
6488 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
6489 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
6490 Compare average widths..
6491 (best_matching_font): Arrange for comparing average widths.
6492
52283633
SM
6493 * dispextern.h (enum lface_attribute_index):
6494 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
6495
5cb3c8d4
DL
64962001-02-05 Dave Love <fx@gnu.org>
6497
6498 * puresize.h: Revert last change following loadup.el change.
6499
193fba87
AI
65002001-02-05 Andrew Innes <andrewi@gnu.org>
6501
6502 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
6503 invocation of temacs, to work with Windows 2000.
6504 (bootstrap-emacs): Ditto.
6505
e16f52ce
GM
65062001-02-05 Gerd Moellmann <gerd@gnu.org>
6507
7a58ab59
GM
6508 * xterm.c (x_display_and_set_cursor): Check for the focus
6509 frame's selected window instead of selected_window.
6510
e89aaabd
GM
6511 * xdisp.c (try_scrolling): If point is in the line below the
6512 window, make sure to move the iterator at least a canonical
6513 char height down.
6514
52283633 6515 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 6516
789ce875
KH
65172001-02-05 Kenichi Handa <handa@etl.go.jp>
6518
52283633
SM
6519 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
6520 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
6521 (ccl_driver): If the CCL program is terminated because of
6522 CCL_STAT_INVALID_CMD, copy the remaining source data to the
6523 destination instead of throwing them away.
6524
20b28f82
GM
65252001-02-02 Gerd Moellmann <gerd@gnu.org>
6526
79fb38c0
GM
6527 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
6528 faces and other things.
6529
20b28f82
GM
6530 * xdisp.c (get_next_display_element): Fix case of empty
6531 display table entry.
6532
5a72551e
EZ
65332001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
6534
eb24d0bf
EZ
6535 * editfns.c (Fconstrain_to_field): Doc fix.
6536
6a3f48c7
EZ
6537 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
6538 into `thoroughly', to make it consistent with the doc string.
6539
5a72551e
EZ
6540 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
6541
01acdb05
GM
65422001-02-01 Gerd Moellmann <gerd@gnu.org>
6543
0353b28f
GM
6544 * search.c (search_buffer): Call set_search_regs with a byte
6545 position, not a character position.
6546
01acdb05
GM
6547 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
6548 minibuffer-only,
6549
e86b5133
EZ
65502001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
6551
6552 * frame.c (Fmodify_frame_parameters): Doc fix.
6553
7442878f
GM
65542001-01-31 Gerd Moellmann <gerd@gnu.org>
6555
01acdb05
GM
6556 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
6557 identifier which is not reserved by Standard C.
52283633 6558
7442878f
GM
6559 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
6560
6561 * window.c (enum window_part): New enumeration.
6562 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
6563 Qright_bitmap_area.
6564 (coordinates_in_window): Return an enumerator from enum
6565 window_part. Fix handling of right scroll bar.
6566 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
6567 `right-fringe' instead of `left-bitmap-area' and
6568 `right-bitmap-area'. Use enumerators from enum window_part
6569 instead of hard-coded integers.
52283633
SM
6570 (check_window_containing, window_from_coordinates):
6571 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
6572 (syms_of_window): Replace Qleft_bitmap_area and
6573 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
6574
7c132cba
EZ
65752001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
6576
6577 * editfns.c (Fformat_time_string): Doc fix.
6578
c359dd9e
SM
65792001-01-31 Stefan Monnier <monnier@cs.yale.edu>
6580
6581 * keymap.c (Fwhere_is_internal): Use the first valid binding
6582 if no ascii binding is found (when firstonly is t).
6583
ce070307
GM
65842001-01-31 Gerd Moellmann <gerd@gnu.org>
6585
b4f30ec5
GM
6586 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
6587 instead of Finteractive_p.
6588
6589 * lisp.h (interactive_p): Add prototype.
6590
6591 * eval.c (interactive_p): New function.
6592 (Finteractive_p): Use it.
6593
ce070307
GM
6594 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
6595
f57b6e64
DL
65962001-01-31 Dave Love <fx@gnu.org>
6597
d61c7afe
DL
6598 * .gdbinit (hook-run): Define to run xreload.
6599
f57b6e64
DL
6600 * textprop.c (Fset_text_properties): Fix newline in doc string.
6601
eef93f99
GM
66022001-01-30 Gerd Moellmann <gerd@gnu.org>
6603
52283633
SM
6604 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
6605 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
6606
6607 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 6608 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
6609 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
6610
6611 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
6612 height.
6613
d9c1f6f9
DL
66142001-01-30 Dave Love <fx@gnu.org>
6615
6616 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
6617 AFTER_POTENTIAL_GC.
6618
e8f044a0
GM
66192001-01-29 Gerd Moellmann <gerd@gnu.org>
6620
52283633
SM
6621 * bytecode.c (Fbyte_code) <Bcurrent_column>:
6622 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 6623
8e1db7b3
EZ
66242001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
6625
6626 * textprop.c (Fset_text_properties): Doc fix.
6627
4eefd9d2
GM
66282001-01-29 Gerd Moellmann <gerd@gnu.org>
6629
6630 * xdisp.c (forward_to_next_line_start): Remove xassert.
6631
fccb8288
EZ
66322001-01-29 Jason Rumney <jasonr@gnu.org>
6633
4eefd9d2 6634 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
6635 returning without releasing it.
6636
76581eab
KH
66372001-01-29 Kenichi Handa <handa@etl.go.jp>
6638
6639 * w32fns.c (w32_font_match): Allocate three more bytes to regex
6640 for '^', '$', and '\0'.
6641
83a96b4d
AC
66422001-01-28 Andrew Choi <akochoi@i-cable.com>
6643
5604ec34
AC
6644 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
6645 regex for '^', '$', and '\0'.
6646
83a96b4d
AC
6647 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
6648 only if current_sblock has been initialized.
6649
6650 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
6651 terminal frame even if it is the only visible frame.
6652
c09a6440
KH
66532001-01-28 Kenichi Handa <handa@etl.go.jp>
6654
6655 * fontset.c (font_family_registry): Even if FONTNAME conform to
6656 XLFD, if it specifies other fields than family and registry,
52283633 6657 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 6658 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
6659 a signle byte character. Don't set FAMILY part to nil here.
6660 It is handled by the caller choose_face_font.
c09a6440
KH
6661 (Fnew_fontset): Call font_family_registry with FORCE 0.
6662 (Fset_fontset_font): Likewise.
6663
4dcd74e6
GM
66642001-01-27 Gerd Moellmann <gerd@gnu.org>
6665
6666 * xdisp.c (display_line): Don't treat a newline as fitting
6667 on the line.
6668
d2906bf8
GM
66692001-01-26 Gerd Moellmann <gerd@gnu.org>
6670
0130fe1a
GM
6671 * window.c (size_window): Set the window's orig_top to nil when
6672 changing heights, so that a future shrink_mini_window won't
6673 restore a bogus height.
6674
550f0e6a
GM
6675 * frame.c (do_switch_frame): If selected frame has a mini-window,
6676 resize that to exact size.
6677
b7b20fbd
GM
6678 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
6679
a47b7816
GM
6680 * xdisp.c (display_line): Simplify check for glyphs fitting
6681 entirely in the line.
6682
d2906bf8
GM
6683 * xfns.c (xic_style): New variable.
6684 (create_frame_xic): Move static variable to global scope for
550f0e6a 6685 the case that `static' gets defined away.
d2906bf8 6686
73df2b1e
KH
66872001-01-26 Kenichi Handa <handa@etl.go.jp>
6688
6689 * coding.c (decode_coding): Set a flag for inhibiting
6690 inconsistent eol.
6691 (code_convert_region): Always set saved_coding_symbol.
6692 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 6693 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 6694
6613cfc4
GM
66952001-01-25 Gerd Moellmann <gerd@gnu.org>
6696
c5e6e06b
GM
6697 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
6698 XClearArea.
6699
6700 * xterm.c (x_after_update_window_line): Don't clear if frame's
6701 internal border width is zero.
6702 (x_clear_area): New function.
6703 (x_after_update_window_line, x_clear_end_of_line)
6704 (x_scroll_bar_create, x_scroll_bar_set_handle)
6705 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
6706 instead of XClearArea.
6707
6708 * xterm.h (x_clear_area): Add prototype.
6709
6613cfc4
GM
6710 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
6711 which doesn't seem necessary anymore with Lesstif 0.92.
6712
650cc6cc
DL
67132001-01-25 Dave Love <fx@gnu.org>
6714
34ac3367
DL
6715 * puresize.h (BASE_PURESIZE): Up to 720000.
6716
650cc6cc
DL
6717 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
6718
5e37dc22
GM
67192001-01-25 Gerd Moellmann <gerd@gnu.org>
6720
e1e441f9
GM
6721 * xdisp.c (echo_area_display): Don't call redisplay_internal
6722 when Emacs is shutting down. We can't run hooks etc. that
6723 would be necessary to do a redisplay.
6724
5e37dc22
GM
6725 * lread.c (read_integer): Use type EMACS_INT instead of int.
6726
0fb94c7f
EZ
67272001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
6728
6729 * ccl.c (ccl_driver): Fix last change.
6730
e3778624
KH
67312001-01-25 Kenichi Handa <handa@etl.go.jp>
6732
6733 * ccl.h (sturct ccl_program): New member suppress_error.
6734
bb264518 6735 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
6736 insert error message to the output.
6737 (setup_ccl_program): Initialize ccl->suppress_error to 0.
6738
6739 * coding.h (struct coding_system): New member suppress_error.
6740
6741 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
6742 (Fset_terminal_coding_system_internal): Set the member
6743 suppress_error to 1.
6744 (Fset_safe_terminal_coding_system_internal): Likewise.
6745
245ed2b1
SM
67462001-01-24 Stefan Monnier <monnier@cs.yale.edu>
6747
6748 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
6749 as if it was a `charset'.
6750
f9aaedb6
GM
67512001-01-24 Gerd Moellmann <gerd@gnu.org>
6752
6753 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
6754 value in where_is_cache; the next lookup in the cache returns
6755 something bogus if we do.
6756
c3902c3e
EZ
67572001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6758
6759 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
6760 if HAVE_WINDOW_SYSTEM isn't defined.
6761
3497f73e
GM
67622001-01-24 Gerd Moellmann <gerd@gnu.org>
6763
e7e41584
GM
6764 * fns.c (sweep_weak_table): Fix code taking items out of
6765 the hash collision chain. Some cleanup.
6766
3497f73e
GM
6767 * xterm.c (x_new_font): Don't change a tooltip's size.
6768
6769 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
6770 background color by specifying a color for the default font
6771 in .Xdefaults.
6772
3d48e687
KH
67732001-01-24 Kenichi Handa <handa@etl.go.jp>
6774
96531b20
KH
6775 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
6776 a workaround for SunOS 4's cc.
6777 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
6778 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
6779 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
6780 statement.
3d48e687 6781
a30629d2
GM
67822001-01-23 Gerd Moellmann <gerd@gnu.org>
6783
6784 * xterm.c (x_set_window_size_1): New function extracted from
6785 x_set_window_size.
6786 (x_set_window_size): Use it.
6787 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
6788 doesn't have a widget, like tooltips.
6789
5a43decf
EZ
67902001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
6791
52283633 6792 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 6793
b0e98867
KH
67942001-01-23 Kenichi Handa <handa@etl.go.jp>
6795
6796 * fns.c (Fset_char_table_default): Fix to make sub char-table
6797 correctly.
6798
50606b4c
GM
67992001-01-22 Gerd Moellmann <gerd@gnu.org>
6800
cb2ddc53 6801 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
6802 a desired tool bar string, even if there are no tool bar items.
6803
57c28064
GM
6804 * xdisp.c (Ftool_bar_lines_needed): New function.
6805 (syms_of_xdisp): Defsubr it.
6806
50606b4c
GM
6807 * editfns.c (Fformat): Don't extend text properties from arguments
6808 to padding chars in the result.
6809
2f169c38
EZ
68102001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
6811
6812 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
6813
0f32f023
AI
68142001-01-20 Andrew Innes <andrewi@gnu.org>
6815
52283633 6816 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
6817 (w32_initialize): Don't set term hooks that aren't actually needed
6818 in windowed mode.
6819
6820 * xfaces.c (realize_default_face):
6821 (realize_face):
6822 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
6823
6824 * xdisp.c (handle_single_display_prop): Remove references to
6825 FRAME_W32_CONSOLE_P.
6826
52283633 6827 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
6828
6829 * frame.h (output_method): Remove output_w32_console method.
6830 (FRAME_W32_CONSOLE_P): Remove macro.
6831
6832 * frame.c (Qw32_console): Remove variable.
6833 (Fframep): Remove references to it.
6834 (syms_of_frame): Ditto.
6835 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
6836
6837 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
6838 redefinition.
6839
7173eada
KH
68402001-01-20 Kenichi Handa <handa@etl.go.jp>
6841
6842 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
6843
755b45ce
AI
68442001-01-19 Andrew Innes <andrewi@gnu.org>
6845
6846 * w32.c (init_environment): Add a version-independent site-lisp
6847 directory to EMACSLOADPATH, after the version dependent one.
6848
0a949811
GM
68492001-01-19 Gerd Moellmann <gerd@gnu.org>
6850
8501998a
GM
6851 * editfns.c (Fbuffer_substring): Doc fix.
6852
52283633
SM
6853 * xdisp.c (message_dolog, message2, message2_nolog):
6854 Rename parameter LEN to NBYTES.
0a949811 6855
e6ebcbbe
KH
68562001-01-19 Kenichi Handa <handa@etl.go.jp>
6857
200ecca2
KH
6858 * charset.c (strwidth): Use c_string_width.
6859 (c_string_width): New function.
6860 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
6861 Caller changed.
6862
6863 * charset.h (c_string_width, lisp_string_width): Extern them.
6864
52283633 6865 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 6866
e6ebcbbe
KH
6867 * indent.c (check_composition): Check validity of composition.
6868
200ecca2
KH
6869 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
6870 characters by calling c_string_width.
6871 (x_consider_frame_title): Get byte length of frame tile string
6872 correctly.
6873 (display_mode_element): Pay attention to width of non-ASCII
6874 characters by calling strwidth.
6875
8692ca92
GM
68762001-01-18 Gerd Moellmann <gerd@gnu.org>
6877
8962e303
GM
6878 * xfns.c (Qcancel_timer): New variable.
6879 (syms_of_xfns): Initialize and staticpro it.
6880 (Fx_hide_tip, Fx_show_tip): Use it.
6881 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6882 the timer.
6883 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
6884
91523be9
GM
6885 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
6886
6887 * window.h (WINDOW_LIVE_P): New macro.
6888
b0b7ed0e
GM
6889 * window.c (window_size_fixed): New variable.
6890 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
6891 the doc string.
6892
06bccf8e
GM
6893 * eval.c (specbind): If binding a per-buffer variable which
6894 doesn't have a buffer-local value in the current buffer, change
6895 the global value by changing the value of the symbol bound in all
6896 buffers not having their own value, to make it consistent with
6897 what happens with other buffer-local variables.
6898
8692ca92
GM
6899 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
6900
6901 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
6902 when searching for a newline.
6903
bb3a3b50
KH
69042001-01-18 Kenichi Handa <handa@etl.go.jp>
6905
6906 * xdisp.c (display_string): Fix previous change.
6907
c2cc16fa
JR
69082001-01-18 Jason Rumney <jasonr@gnu.org>
6909
6910 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
6911 GLYPH_DEBUG is defined.
6912 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
6913 true for images with `:ascent 100'.
6914 (x_set_mouse_face_gc): If the last used mouse face has gone in the
6915 meantime, use face MOUSE_FACE_ID.
6916 If first glyph isn't a character glyph, use the ASCII NUL
6917 character to determine the face.
6918 (expose_area): Do not treat left margin specially.
6919 (note_mode_line_highlight): If no local_map, check global keymap.
6920 (note_mouse_highlight): Initialize overlay.
52283633 6921 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
6922 (show_scroll_bars): Remove unused function.
6923 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
6924 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
6925 Clip to row.
52283633 6926 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
6927 (x_free_frame_resources): Unload relief colors.
6928
9c11f79e
GM
69292001-01-17 Gerd Moellmann <gerd@gnu.org>
6930
3aec8722 6931 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
6932 get_next_display_element when the newline is already found.
6933 This may change the iterator's position, when its current position is
3aec8722
GM
6934 equal to the iterator's stop_charpos.
6935
f3ffc2c3
GM
6936 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
6937 zero, use this method only at the end of a line.
6938
52283633 6939 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
6940 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
6941 if SCALABLE_FONTS_P is set.
52283633 6942
d26d6fd9
GM
6943 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
6944 so that scalable fonts are included.
6945
9c11f79e
GM
6946 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
6947 In the cache, use a key containing the information if scalable
6948 fonts are included.
6949 (x_load_font): Adapt to change of keys in the font cache.
6950
69512001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 6952
d26d6fd9
GM
6953 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
6954 XListFonts to take advantage of font caching.
6955
9c11f79e
GM
6956 * xterm.c (x_list_fonts): Ensure caching font information when
6957 called for a null frame, which is the case frequently when Emacs
6958 starts.
6959
51446987
GM
69602001-01-17 Gerd Moellmann <gerd@gnu.org>
6961
f864120f
GM
6962 * xfns.c (QCconversion): Replaces QCalgorithm.
6963
6964 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
6965
6966 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
6967 of :algorithm.
52283633 6968
e37d1417
GM
6969 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
6970 not everything could be displayed.
6971
51446987
GM
6972 * line.h, x-list-font.c: Files removed because unused.
6973
9ad4f3e5
AI
69742001-01-17 Andrew Innes <andrewi@gnu.org>
6975
6976 * dired.c (directory_files_internal): Convert result from readdir
6977 to a unibyte string initially, to avoid possible misinterpretation
6978 of some bytes as the internal form of Emacs characters.
6979
2eda09b5
KH
69802001-01-17 Kenichi Handa <handa@etl.go.jp>
6981
6982 * fns.c (concat): Be sure to avoid putting the same `composition'
6983 property on the adjacent regions.
6984
826f3788
GM
69852001-01-16 Gerd Moellmann <gerd@gnu.org>
6986
52283633 6987 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
6988 (Fscroll_right, Fscroll_left): Set it here instead, if called
6989 interactively.
6990
d57b83b3
GM
6991 * buffer.c (Fset_buffer_modified_p): Set buffer's
6992 prevent_redisplay_optimizations_p flag.
6993
826f3788 6994 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
6995 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
6996 with additional arg.
6997
6998 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
6999 Change prototype.
826f3788 7000
826f3788
GM
7001 * xdisp.c (redisplay_preserve_echo_area): Add parameter
7002 FROM_WHERE, for debugging.
7003
261d788b
KH
70042001-01-16 Kenichi Handa <handa@etl.go.jp>
7005
7006 * ccl.c (Fregister_ccl_program): Handle the return value of
7007 resolve_symbol_ccl_program correctly.
52283633 7008 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 7009
bccee4f2
GM
70102001-01-15 Gerd Moellmann <gerd@gnu.org>
7011
e4ded23c
GM
7012 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
7013 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
7014
7015 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
7016 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
7017 the display; we didn't open it.
7018
bccee4f2
GM
7019 * dispnew.c (save_or_restore_current_matrices): Function removed.
7020 (save_current_matrix, restore_current_matrix): New functions.
7021 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
7022 restore the frame's current matrix. Due to the glyph pointer
7023 setup done in adjust_glyph_matrix, there is no easy way to make
7024 saving the current matrix in the desired matrix generally correct,
7025 so don't try it.
7026
ebeccffa
KH
70272001-01-15 Kenichi Handa <handa@etl.go.jp>
7028
7029 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
7030 truncation glyphs.
7031 (display_line): Optimize for wide characters.
e4ded23c 7032 (display_string): Don't try to display a multi-column character
ebeccffa
KH
7033 partially. On ttys, produce more than one truncation glyph for
7034 multi-column characters that don't fit on the line.
7035
64388126
KH
70362001-01-13 Kenichi Handa <handa@etl.go.jp>
7037
52283633
SM
7038 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
7039 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 7040
8edb0a6f
JR
70412001-01-13 Jason Rumney <jasonr@gnu.org>
7042
7043 * w32fns.c (Fimage_size, image_ascent, lookup_image)
7044 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
7045 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7046 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 7047
52283633
SM
7048 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
7049 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
7050 (x_draw_image_glyph_string): Adapt to change of image margins.
7051
7052 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
7053 variables.
7054
7055 * w32bdf.c (search_file_line, get_cached_font_char)
7056 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
7057
7058 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
7059
7060 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
7061 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
7062 (Fw32_send_sys_command): Remove unused variables.
7063 (w32_msg_pump): Add parentheses.
7064
7065 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
7066 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
7067 Add parentheses.
7068
4956d1ef
GM
70692001-01-12 Gerd Moellmann <gerd@gnu.org>
7070
b30623be
GM
7071 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
7072 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
7073 being a pair of margins.
7074 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
7075 to DEFVAR_LISP. Extend doc.
7076
7077 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
7078 margins.
7079 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
7080 pair of integers `(X . Y)', use X for the horizontal and Y for the
7081 vertical margin.
7082 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
7083 (parse_image_spec): Check it.
52283633
SM
7084 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7085 (tiff_format, gif_format, gs_format):
7086 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 7087
52283633
SM
7088 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
7089 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
7090 (x_draw_image_glyph_string): Adapt to the change of image margins.
7091
7092 * dispextern.h (struct image): Replace member `margin' with
7093 `hmargin' and `vmargin'.
7094
4554cc79
GM
7095 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
7096 and GLYPHS.
7097
7098 * dispnew.c (update_text_area): Put code which decrements the
7099 stop position when the row's face extends to the end of the
3bffc665 7100 line in #if 0.
4554cc79 7101
3cccce8d
GM
7102 * xfns.c (x_set_mouse_color): Fix color allocation.
7103
4956d1ef
GM
7104 * keyboard.c: Call get_local_map with new argument list.
7105
7106 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
7107
7108 * intervals.h (enum map_property): Removed.
7109 (get_local_map): Change prototype.
7110
7111 * keymap.c: Call get_local_map with new argument list.
7112 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
7113
2c2ff7f2
GM
71142001-01-11 Gerd Moellmann <gerd@gnu.org>
7115
a23887b9
GM
7116 * xdisp.c (build_desired_tool_bar_string): Correct the computation
7117 of the size needed for the tool bar string. For the last image,
7118 use a `display' property that reaches to the end of the string.
7119
a7ee2d2e
GM
7120 * xselect.c (selection_request_dpyinfo): New variable.
7121 (x_handle_selection_request): Set it.
7122 (x_selection_request_lisp_error): Don't call
7123 x_decline_selection_request if selection request's display has
7124 been closed.
7125
52283633
SM
7126 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
7127 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 7128
457b792c
GM
71292001-01-10 Dave Love <fx@gnu.org>
7130
7131 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
7132 ${SOME_MACHINE_LISP}, not ${lisp}.
7133
c1efd260
GM
71342001-01-10 Gerd Moellmann <gerd@gnu.org>
7135
52283633
SM
7136 * xdisp.c (display_line): On ttys, produce more than one truncation
7137 glyph for multi-column characters that don't fit on the line.
a98b5ed9 7138
ac95a621
GM
7139 * xselect.c (x_reply_selection_request): Add a comment.
7140
c1efd260
GM
7141 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
7142 XkbGetNames instead of XkbGetKeyboard.
7143
1bfb1345
DL
71442001-01-10 Dave Love <fx@gnu.org>
7145
7146 * sysdep.c (random): Revert the declaration.
7147
38119822
GM
71482001-01-09 Gerd Moellmann <gerd@gnu.org>
7149
52283633
SM
7150 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
7151 Call function string_bytes.
35f464a7
GM
7152 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
7153
7154 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
7155 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
7156 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
7157 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
7158 the current sblock.
7159 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
7160 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
7161 after sweeping strings, and at the end.
7162 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
7163
38119822
GM
7164 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
7165 ensure that pop_message is called.
7166
7167 * keyboard.c (Fexecute_extended_command): Use a
7168 record_unwind_protect to ensure that pop_message is called.
7169
7170 * lisp.h (push_message_unwind): Add prototype.
7171
7172 * xdisp.c (push_message_unwind): New function.
7173
7174 * fileio.c (do_auto_save_unwind): Do the pop_message here
7175 instead of in Fdo_auto_save.
7176 (Fdo_auto_save): Don't call pop_message.
7177
f47a9ec4
KR
71782001-01-08 Ken Raeburn <raeburn@gnu.org>
7179
7180 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
7181 in inner block.
7182
a758f97d
GM
71832001-01-08 Gerd Moellmann <gerd@gnu.org>
7184
6d0afc03
GM
7185 * window.c (window_scroll_pixel_based): Adjust glyph matrices
7186 when increasing window's vscroll.
7187
a758f97d
GM
7188 * macros.c (Qkbd_macro_termination_hook): New variable.
7189 (syms_of_macros): Initialize and staticpro it.
7190 (pop_kbd_macro): Run kbd-macro-termination-hook.
7191
7192 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
7193
1bfb1345 71942001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
7195
7196 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
7197 arglist, for documentation's sake.
7198
0dac6924
AI
71992001-01-06 Andrew Innes <andrewi@gnu.org>
7200
7201 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
7202 of *.pdb.
7203
8182406a
AI
72042001-01-05 Andrew Innes <andrewi@gnu.org>
7205
7206 * term.c (update_end): Don't check updating_frame; for some reason
7207 this can be 0 sometimes, such as after dismissing a popup menu,
7208 and isn't necessary given the explicit frame argument.
7209
3828218c
GM
72102001-01-05 Gerd Moellmann <gerd@gnu.org>
7211
7212 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
7213 on some systems, and an unsigned long on others, like FreeBSD 4.1.
7214
2f5ded21
GM
72152001-01-04 Gerd Moellmann <gerd@gnu.org>
7216
52283633 7217 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
7218
7219 * xfns.c (x_create_tip_frame): Preserve the value of
7220 face_change_count around the creation of the tip frame.
52283633 7221
2f5ded21
GM
7222 * xfns.c (last_show_tip_args): New variable.
7223 (compute_tip_xy): New function.
7224 (Fx_show_tip): Reuse an existing tip frame, if possible.
7225 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
7226
dfad65fa
DL
72272001-01-04 Dave Love <fx@gnu.org>
7228
64d4ec0f
DL
7229 * editfns.c (Fformat): Doc fix.
7230
dfad65fa
DL
7231 * systime.h (set_file_times): Prototype.
7232
7233 * widget.h (EmacsFrameSetCharSize_): Prototype.
7234
7235 * sysdep.c (random, srandom): Declare explicitly.
7236
7237 * dispextern.h (move_it_vertically_backward): Declare.
7238
85fe3b5e
GM
72392001-01-04 Gerd Moellmann <gerd@gnu.org>
7240
0f2ac578
GM
7241 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
7242 like in Fx_create_frame.
7243
482cca61
GM
7244 * xfaces.c (set_font_frame_param): Don't do anything for
7245 non-graphical frames.
7246
85fe3b5e
GM
7247 * window.c (Fdelete_other_windows): Set window's window_end_valid
7248 to nil when changing the window's start. Don't change the
7249 window's start when its top position hasn't changed. If we do,
7250 this will set the window's optional_new_start, which act's like a
7251 force_start during redisplay with C-x 1 M-> under particular
7252 circumstances (see report from Per Starback to emacs-pretest-bug
7253 from 2000-12-13.).
7254
3e99d3b4
GM
72552001-01-03 Gerd Moellmann <gerd@gnu.org>
7256
a77dc1ec
GM
7257 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
7258 short cut at the start of the function. Add an assertion.
7259 (reseat_at_next_visible_line_start): Add an assertion.
7260
2f3cad6c
GM
7261 * window.c (Frecenter): When changing the window start, set the
7262 window's window_end_valid to nil.
7263 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
7264
7265 * dispextern.h (move_it_past_eol): Add prototype.
7266
7267 * xdisp.c (move_it_past_eol): New function.
7268
3e99d3b4
GM
7269 * window.c (Fwindow_end): Doc fix.
7270
72712001-01-03 Dave Love <fx@gnu.org>
7272
52283633 7273 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 7274
bafb434c
GM
72752001-01-03 Gerd Moellmann <gerd@gnu.org>
7276
7277 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
7278 the enabled_p flag of the glyph row at window_end_vpos to 0.
7279 (handle_single_display_prop): Fix last change.
7280
5297fb00
RS
72812001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7282
7283 * window.c (Frecenter): Doc fix.
7284
13d6a61c
AI
72852001-01-02 Andrew Innes <andrewi@gnu.org>
7286
7287 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
7288
7289 * frame.h (output_method): Add output_w32_console method.
7290 (FRAME_W32_CONSOLE_P): New macro.
7291
7292 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
7293 use output_w32_console method.
7294 (Qw32_console): New Lisp_Object.
7295 (Fframep): Return it.
7296 (syms_of_frame): Init it.
52283633 7297 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
7298
7299 * xfaces.c (realize_default_face): Set face foreground and
7300 background to unspecified for w32_console frames.
7301 (realize_face): Realize face cache for w32_console frames.
7302 (realize_tty_face): Accept w32_console frames.
7303
52283633 7304 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
7305 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
7306 necessary, even if running interactively.
7307
7308 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
7309 w32_console frames.
7310
52283633
SM
7311 * w32term.c (x_update_begin):
7312 (x_update_end):
7313 (x_clear_frame):
7314 (x_ins_del_lines):
7315 (x_change_line_highlight):
7316 (x_delete_glyphs):
7317 (w32_ring_bell):
7318 (x_update_begin):
7319 (x_update_end):
7320 (w32_reassert_line_highlight):
7321 (w32_frame_rehighlight):
13d6a61c
AI
7322 (w32_frame_raise_lower): Do nothing if not w32 frame.
7323
7324 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
7325
7326 * w32fns.c (Fx_display_color_cells): Determine correct value, when
7327 system doesn't tell us directly.
7328 (Fx_display_visual_class): Implement properly.
7329
d6bb0c0d
GM
73302001-01-02 Gerd Moellmann <gerd@gnu.org>
7331
7332 * window.c (Frecenter): Handle centering in graphical frames
7333 specially. Centering on the basis of line counts doesn't work
7334 reliably with variable-height lines.
52283633 7335
315f5865
EZ
73362001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
7337
7338 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
7339 and al[].
7340
52283633 7341 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
7342 (update_compositions): Remove unused variable `hook'.
7343
7344 * intervals.c (get_local_map): Remove unused variable `tem'.
7345
7346 * doprnt.c (doprnt1): Remove unused variable `size'.
7347
7348 * fns.c (Flength): Remove unused variable `tail'.
7349 (Fdelete): Remove unused variable `size'.
7350
7351 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
7352 and `gcpro2'.
7353
52283633 7354 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
7355
7356 * data.c (find_symbol_value): Remove extra 3rd argument in the
7357 call to swap_in_symval_forwarding.
7358
52283633 7359 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
7360
7361 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
7362 (trivial_regexp_p): Remove unused variable `c'.
7363 (boyer_moore): Remove unused variable `k'.
7364
7365 * indent.c (current_column): Remove unused variable `stopchar'.
7366 (Fcompute_motion): Remove unused variable `contin'.
7367
7368 * casefiddle.c (casify_object): Remove unused variable `tolen'.
7369
7370 * dired.c (directory_files_internal): Fix a typo in a comment.
7371 Remove an unused variable `handler'.
52283633 7372 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
7373 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
7374 on BSD4_2.
7375
52283633 7376 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
7377
7378 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
7379 and `buf'.
7380 (Fmarker_insertion_type): Remove unused variable `buf'.
7381
7382 * insdel.c (make_gap): Remove unused variable `result'.
7383
52283633 7384 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
7385 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
7386 (menu_bar_items): Remove unused function-scope variable `tem'.
7387
7388 * fontset.c (fontset_ref): Remove unused variable `i'.
7389 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 7390 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
7391 (make_fontset_for_ascii_face): Remove unused variable `name'.
7392 (fs_load_font): Remove unused variable `font_idx'.
52283633 7393 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
7394 (list_fontsets): Remove unused variable `tail'.
7395 (Fnew_fontset): Remove unused variables `family' and `registry'.
7396 (accumulate_font_info): Remove unused variable `tmp'.
7397 (Ffontset_font): Remove unused variable `id'.
7398 (syms_of_fontset): Remove unused variable `i'.
7399
7400 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
7401 to x_term_init.
7402 (lookup_image): Remove unused variable `file'.
7403 (xbm_load): Remove unused variables `bitmap_data', `height', and
7404 `width'. Remove function-local variable `i', leave the
7405 block-local one.
7406 (gif_load): Remove unused variable `inc'.
7407
52283633 7408 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
7409 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
7410 leave only the one in the inner block.
7411
7412 * xfaces.c (face_fontset, realize_default_face): Remove unused
7413 variable `fontset'.
7414 (face_at_buffer_position): Remove unused variable `multibyte_p'.
7415
7416 * term.c (encode_terminal_code): Remove unused variable `c'.
7417
7418 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
7419 char *' instead of `char *'.
7420
7421 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 7422 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
7423 (Fchar_category_set): Remove unused variables `val', `charset',
7424 `c1' and `c2'.
7425
52283633
SM
7426 * coding.c (detect_coding_iso2022, setup_coding_system):
7427 Remove unused variable `i'.
315f5865
EZ
7428 (detect_coding_mask): Remove unused variable `idx'.
7429 (detect_coding): Remove unused variable `i'.
7430 (ccl_coding_driver): Remove unused variable `result'.
7431 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 7432 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
7433 (encode_coding_string): Remove unused variables `gcpro1' and
7434 `saved_coding_symbol'.
7435 (Ffind_coding_systems_region_internal): Remove function-local
7436 variable args[], leave only the block-local one.
7437 (code_convert_region1): Remove unused variable `len'.
7438
7439 * charset.c (char_printable_p): Remove unused variable `chars'.
7440 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
7441 (str_to_multibyte): Remove unused variable `c'.
7442
7443 * window.c (size_window): Remove block-local variable `min_size'.
7444
7445 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
7446 `header_line_height'.
7447 (append_space, extend_face_to_end_of_line): Declare `saved_what'
7448 enum display_element_type.
7449
1a8a9daf
GM
74502001-01-02 Gerd Moellmann <gerd@gnu.org>
7451
6dde6abc 7452 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
7453 statements that call X. Save away the error message in a local copy.
7454
1883b2c6
GM
7455 * xterm.c (x_connection_closed): Set handling_signal to 0 at
7456 the start.
7457
a13be207
GM
7458 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
7459 in or at the start of invisible text.
7460
1a8a9daf
GM
7461 * dispnew.c (update_window): Don't check_current_matrix_flags.
7462
3608c0f9
JR
74632001-01-01 Jason Rumney <jasonr@gnu.org>
7464
7465 * w32fns.c (x_figure_window_size): Do not allow new_height and
7466 new_width of frame to override specified values.
7467
abb1acc4
KH
74682000-12-30 Kenichi Handa <handa@etl.go.jp>
7469
52283633 7470 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 7471
762a68ec
GM
74722000-12-29 Gerd Moellmann <gerd@gnu.org>
7473
52283633 7474 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
7475 (update_window) [GLYPH_DEBUG]: Call it.
7476 (scrolling_window): Prevent including current rows which are below
7477 what's displayed in the window.
7478
7479 * xdisp.c (try_window_reusing_current_matrix)
7480 <new start <= old start>: Disable rows in the current matrix
7481 which are below the window after scrolling.
52283633 7482
762a68ec
GM
7483 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
7484 is zero. It's not worth the complexity.
7485 (invisible_text_between_p): Put in #if 0 because unused.
7486
2d5912c1
GM
74872000-12-28 Gerd Moellmann <gerd@gnu.org>
7488
46f6a258
GM
7489 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
7490 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
7491
89f93679
GM
7492 * keyboard.c (echo_char): If C is an integer, always call
7493 push_key_description. Former code could signal an invalid
7494 character error.
7495
7496 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
7497 If set, print multibyte text.
7498 (Fsingle_key_description): Call push_key_description with
7499 FORCE_MULTIBYTE set.
7500 (describe_buffer_bindings): Likewise.
7501
7502 * lisp.h (push_key_description): Add prototype.
7503
c06017fb
GM
7504 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
7505 around the call to redisplay_internal.
7506
f1d2ce7f
GM
7507 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
7508
2d5912c1
GM
7509 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
7510
9371f831
KH
75112000-12-28 Kenichi Handa <handa@etl.go.jp>
7512
7513 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
7514 (ccl_driver): New local variable `extra_bytes'.
7515
7516 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
7517
52283633
SM
7518 * coding.c (setup_coding_system):
7519 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
7520 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
7521
0c80628a
KH
75222000-12-28 Kenichi Handa <handa@etl.go.jp>
7523
7524 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
7525 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
7526 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
7527 (decode_composition_emacs_mule): New function.
7528 (decode_coding_emacs_mule): Decode composition sequence by calling
7529 decode_composition_emacs_mule.
7530 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
7531 (encode_coding_emacs_mule): Changed from macro to function.
7532 If a text contains compositions, encode them correctly.
0c80628a
KH
7533 (setup_coding_system): Set coding->commong_flags for emacs-mule so
7534 that decoding and encoding are required.
7535
3e32cc27
GM
75362000-12-27 Gerd Moellmann <gerd@gnu.org>
7537
5e25feee
GM
7538 * xfaces.c (PT_PER_INCH): New macro.
7539 (xlfd_point_size): Compute real point size from font's pixel size.
7540 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
7541 instead of 72.
7542
892d8fcd
GM
7543 * .gdbinit: Comment out the line pointing to the Lesstif source
7544 directory.
7545
12c8b416
GM
7546 * window.c (Frecenter): Use displayed_window_lines instead
7547 of window_internal_height.
7548
6061fbf0
GM
7549 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7550 instead of x-toolkit-scroll-bars-p.
7551 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
7552
7553 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7554 instead of x-toolkit-scroll-bars-p.
7555 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 7556
3e32cc27
GM
7557 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
7558 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
7559 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
7560 New variables.
7561 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
7562 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
7563 (build_frame_matrix_from_leaf_window): Remove unused code.
7564 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
7565 redisplay history.
7566 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
7567 (update_window) [GLYPH_DEBUG]: Likewise.
7568 (syms_of_display): Defsubr dump-redisplay-history.
7569
31798cfe
GM
75702000-12-23 Gerd Moellmann <gerd@gnu.org>
7571
f717c2ba
GM
7572 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
7573 the end of the prompt. Set echo_after_prompt to the offset
7574 of echoptr in echobuf.
7575
aeb2b8fc
GM
7576 * xdisp.c (init_from_display_pos): Pop until the iterator's
7577 stack is empty; there may be frames for stretch or images
7578 on the stack.
7579
31798cfe
GM
7580 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
7581 (save_or_restore_current_matrix): New function for the same
7582 purpose, but more efficient.
7583 (adjust_frame_glyphs_for_frame_redisplay): Use it.
7584
f8156156
EZ
75852000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
7586
7587 * xdisp.c (syms_of_xdisp): Fix last change.
7588
bdd6d4e8
GM
75892000-12-23 Gerd Moellmann <gerd@gnu.org>
7590
7591 * xdisp.c (syms_of_xdisp): Doc fix.
7592
7593 * xdisp.c (redisplay_window): Remove label restore_buffers;
7594 use finish_scroll_bars instead to make sure that scroll bars
7595 are redeemed. If we don't do this, flickering can result from
7596 scroll bars being destroyed and recreated.
7597
9436cdf9
JR
75982000-12-22 Jason Rumney <jasonr@gnu.org>
7599
7600 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
7601 in the wrong colors when the foreground is not black.
7602 (expose_window): Don't redraw the window that's currently being
7603 updated.
7604
951f9df5
GM
76052000-12-22 Gerd Moellmann <gerd@gnu.org>
7606
856ff7a7
GM
7607 * window.c (size_window): When setting the window's too_small_ok
7608 flag, compare old size with minimum size depending on WIDTH_P,
7609 don't compare with window_min_width.
52283633 7610
951f9df5
GM
7611 * window.c (delete_window): Simplify somewhat.
7612 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
7613 freeing window matrices. The flag windows_or_buffers_changed is
7614 set, so the next redisplay will consider all windows; this should
7615 suffice.
7616
886bc933
KH
76172000-12-22 Kenichi Handa <handa@etl.go.jp>
7618
7619 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
7620
7621 * ccl.h (struct ccl_program): New member cr_consumed.
7622
7623 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
7624 (CCL_READ_CHAR): Handle EOL conversion here.
7625 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
7626
177f4e88
GM
76272000-12-21 Gerd Moellmann <gerd@gnu.org>
7628
52283633 7629 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
7630
7631 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
7632 otherwise tabs of different size compare equal.
7633
7634 * callint.c (Fcall_interactively): Prevent a compiler warning.
7635
7636 * print.c (print_unwind): Return nil.
7637 (PRINTDECLARE): Initialize all local variables.
7638 (print_preprocess): Add a default case.
7639
8e15274f
GM
7640 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
7641
7642 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
7643
52283633 7644 * window.c (delete_window, Fsplit_window)
177f4e88
GM
7645 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
7646
7647 * dispextern.h (ensure_frame_matrix): Function declaration removed.
7648
7649 * dispnew.c (ensure_frame_matrix): Removed.
7650 (save_frame_matrix, restore_frame_matrix): New functions.
7651 (adjust_frame_glyphs_for_frame_redisplay): Use them.
7652
7653 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
7654 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
7655
99012074
AI
76562000-12-21 Andrew Innes <andrewi@gnu.org>
7657
7658 * w32term.c (x_update_begin): Regenerate the palette here, rather
7659 than for each window.
7660
7661 * w32xfns.c (select_palette): Avoid calling SelectPalette if
7662 palette is NULL, since this corrupts memory! Also get
7663 display_info reference from frame.
7664
29ef7d2d
JR
76652000-12-21 Jason Rumney <jasonr@gnu.org>
7666
7667 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
7668
7669 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
7670 to avoid returning without releasing it.
3e27fa1f 7671
3f9d67a6
KH
76722000-12-21 Kenichi Handa <handa@etl.go.jp>
7673
587fc3f9
KH
7674 * keymap.c (push_key_description): Don't convert eight-bit-control
7675 and eight-bit-graphic to multibyte character.
7676
3f9d67a6
KH
7677 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
7678 generic character and CODE1 is nil, return the smallest character
7679 in CHARSET.
7680
774ba8c9
DL
76812000-12-20 Dave Love <fx@gnu.org>
7682
7683 * s/osf5-0.h (NSIG): Don't redefine.
7684
88416888
SM
76852000-12-20 Stefan Monnier <monnier@cs.yale.edu>
7686
7687 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
7688 excluding menu-bar and tool-bar.
7689 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
7690 (menu_item_p): Remove.
7691 (where_is_internal_1): Don't ignore menu-items.
7692
a6426c6f
GM
76932000-12-20 Gerd Moellmann <gerd@gnu.org>
7694
03ff8aab
GM
7695 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
7696 into account.
7697
7698 * window.c (make_window): Initialize window's min_hscroll.
7699 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
7700 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
7701 to zero.
7702 (struct saved_window): New member min_hscroll.
7703 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
7704 (Fset_window_configuration): Set window's min_hscroll.
7705 (save_window_save): Save window's min_hscroll.
7706 (compare_window_configurations): Compare min_hscroll values.
7707
7708 * window.h (struct window): New member min_hscroll.
7709
7710 * keyboard.c (echo_prompt): Prevent a compiler warning.
7711
8de4aaf8
GM
7712 * xdisp.c (try_cursor_movement): Fix last change. The real
7713 condition is that PT is at the end of the row, and should
7714 be displayed at the start of the next row.
52283633 7715
3f7e3031
GM
7716 * xdisp.c (try_cursor_movement): If we end on a partially
7717 visible line, end we already decided to scroll, return -1.
7718
a6426c6f
GM
7719 * dispextern.h (ensure_frame_matrix): Add prototype.
7720
7721 * window.c (delete_window, Fsplit_window)
7722 (Fset_window_configuration): Call ensure_frame_matrix.
7723
52283633
SM
7724 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
7725 New functions.
a6426c6f
GM
7726 (adjust_frame_glyphs_for_frame_redisplay): If display has been
7727 completed, call fake_current_matrices instead of marking frame
7728 garbaged.
7729
57fa2774
JR
77302000-12-20 Jason Rumney <jasonr@gnu.org>
7731
7732 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
7733
d925df90
EZ
77342000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
7735
7736 * fns.c (Frequire): Doc fix.
7737
7b93a85b
GM
77382000-12-19 Gerd Moellmann <gerd@gnu.org>
7739
52283633 7740 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 7741
c74e645b
GM
7742 * dispnew.c (direct_output_for_insert): Fix check for mini-window
7743 currently displaying a message.
7744
7b93a85b
GM
7745 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
7746 xterm.h.
7747 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
7748
90d97e64
AI
77492000-12-18 Andrew Innes <andrewi@gnu.org>
7750
7751 * w32.c (w32_strerror): New function.
7752
7753 * w32.h (w32_strerror): New extern.
7754
7755 * w32fns.c (Fw32_shell_execute): Use it.
7756
91c9e6ce
GM
77572000-12-18 Gerd Moellmann <gerd@gnu.org>
7758
7759 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
7760
6f4745e2
EZ
77612000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7762
7763 * msdos.c (IT_set_face): Obey inverse_video.
7764
c9e088ce
KH
77652000-12-18 Kenichi Handa <handa@etl.go.jp>
7766
7767 * dired.c (directory_files_internal): Always return decoded filenames.
7768
c3695f5f
GM
77692000-12-18 Gerd Moellmann <gerd@gnu.org>
7770
52d8e4ff
GM
7771 * xterm.c (x_connection_closed): Prevent being called recursively
7772 because of an error condition in XtCloseDisplay.
52283633 7773
62be9979
GM
7774 * xdisp.c (init_iterator): If noninteractive, and the frame's
7775 face cache is null, make one.
7776
52283633 7777 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 7778
c3695f5f
GM
7779 * process.c (wait_reading_process_input): Check for pending
7780 input when running timers.
7781
78555fbe
EZ
77822000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7783
52283633 7784 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 7785
b2b36264
KH
77862000-12-18 Kenichi Handa <handa@etl.go.jp>
7787
7788 * process.c (read_process_output): Don't run a filter if the code
7789 decoder produces nothing but carryover.
7790
9c543fbf
AI
77912000-12-17 Andrew Innes <andrewi@gnu.org>
7792
7793 * w32.c (sys_rename): Only check errno against EEXIST, and not
7794 EACCES, when determining whether rename failed because the target
7795 exists. This was resulting in indefinite looping on Windows 9x if
7796 the source file was locked by another process.
7797
7798 * w32fns.c (Ffile_system_info): New function.
7799 (syms_of_w32fns): Defsubr it.
7800
10c2b5a8
GM
78012000-12-17 Gerd Moellmann <gerd@gnu.org>
7802
b0228ace
GM
7803 * window.c (coordinates_in_window): Fix computation for
7804 position on vertical line between mode lines.
7805
10c2b5a8
GM
7806 * xfns.c (unwind_create_frame): Return t if frame was deleted.
7807 Don't alter tip_frame or tip_window.
7808 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7809 was deleted.
7810
c844a81a
GM
7811 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
7812 Don't alter tip_frame or tip_window.
7813 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7814 was deleted.
7815
6c825f8e
EZ
78162000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
7817
7818 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
7819 be consistent with the doc string. Reported by NAKAJIMA Mikio
7820 <minakaji@osaka.email.ne.jp>.
7821
af4bb4c8
KH
78222000-12-16 Kenichi Handa <handa@etl.go.jp>
7823
7824 * xfaces.c (Vface_ignored_fonts): New variable.
7825 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
7826 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
7827
8062e53a
GM
78282000-12-15 Gerd Moellmann <gerd@gnu.org>
7829
e87b8809
GM
7830 * dispnew.c (update_window): Detect pending input every nth line
7831 updated, i.e. do it depending on real work done, and not on the
7832 vpos of the line.
7833
7834 * xterm.c (expose_window): Don't redraw the window that's
7835 currently being updated.
7836
a6768cc5
GM
7837 * window.c (Fset_window_point): Remove test for
7838 cursor_in_non_selected_windows.
7839
4ea7fdca
GM
7840 * lread.c (read1): Recognize end of file after `\\'.
7841
8062e53a
GM
7842 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
7843 not unwind_create_frame.
7844
bb7959c1
GM
78452000-12-15 Dave Love <fx@gnu.org>
7846
7847 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
7848 bcopy & al.
7849
7850 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
7851
ced04c42
KH
78522000-12-15 Kenichi Handa <handa@etl.go.jp>
7853
c5443913
KH
7854 * coding.c (setup_coding_system): Clear all members of the struct
7855 coding_system at first.
bc137305
KH
7856 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
7857 argument.
7858 (code_convert_region): Don't override coding->src_multibyte and
7859 coding->dst_multibyte.
c5443913 7860
ced04c42
KH
7861 * fns.c (Fmd5): Docstring improved.
7862
c2d7f289
MB
78632000-12-15 Miles Bader <miles@gnu.org>
7864
7865 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
7866 are actually marked as mode-lines; otherwise use
7867 estimate_mode_line_height.
7868
9d7d9263
GM
78692000-12-14 Gerd Moellmann <gerd@gnu.org>
7870
7871 * editfns.c (Fformat): Prevent a buffer overrun when the format
7872 specifies a precision.
7873
7cf0153a
EZ
78742000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
7875
7876 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
7877 argument is outside the range [2..3].
7878
1de0f662
AI
78792000-12-14 Andrew Innes <andrewi@gnu.org>
7880
7881 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
7882 nothing to do. Bind inhibit-quit.
7883 (tip_frame): Make it a Lisp_Object.
7884 (x_create_tip_frame): Set tip_frame after it has been added to
7885 Vframe_list.
7886 (Fx_show_tip): Don't set tip_frame here.
52283633 7887 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
7888 (unwind_create_frame, unwind_create_tip_frame): New functions.
7889 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7890 while a frame is only partially constructed.
7891
7892 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7893 (x_free_frame_resources): New function.
7894 (x_destroy_window): Use it.
7895
02387dcc
GM
78962000-12-14 Gerd Moellmann <gerd@gnu.org>
7897
7898 * xfns.c (Fx_backspace_delete_keys_p): New function.
7899 (syms_of_xfns): Defsubr it.
7900
7901 * config.in (HAVE_XKBGETKEYBOARD): Add.
7902
0544ef49
KH
79032000-12-14 Kenichi Handa <handa@etl.go.jp>
7904
98d62747
KH
7905 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
7906 Always store string in multibyte representation in echobuf.
7907 (echo_char): Always store string in multibyte representation in
7908 echobuf.
7909 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
7910 (read_key_sequence): Adjusted for the change of echo_prompt.
7911
a20193cd
KH
7912 * fns.c (Fmd5): Docstring improved.
7913
191b83b6
KH
7914 * lisp.h (detect_coding_system): Prototype adjusted.
7915
0544ef49
KH
7916 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
7917 (detect_coding_emacs_mule, detect_coding_iso2022,)
7918 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
7919 (detect_coding_utf_16, detect_coding_ccl): Make them static.
7920 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
7921 (detect_coding_mask, detect_coding_system): New argument
7922 MULTIBYTEP. Callers changed.
1da1bb05
KH
7923 (decode_coding_string): Set coding->src_multibyte and
7924 coding->dst_multibyte before calling detect_coding and detect_eol.
7925 Update them after some coding system is detected.
52283633 7926
d5b3eb1b
SM
79272000-12-13 Stefan Monnier <monnier@cs.yale.edu>
7928
7929 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
7930
7931 * keyboard.c (menu_bar_items, tool_bar_items):
7932 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
7933
f7f8bb69
GM
79342000-12-13 Gerd Moellmann <gerd@gnu.org>
7935
52283633 7936 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
7937 New variables.
7938 (unwind_create_frame, unwind_create_tip_frame): New functions.
7939 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7940 while a frame is only partially constructed.
7941
7942 * xterm.h (x_free_frame_resources): Declare.
7943
7944 * xterm.c (x_free_frame_resources): New function.
7945 (x_destroy_window): Use it.
7946
e10da507
GM
7947 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
7948 don't interrupt the update for pending input initially, i.e.
7949 update at least some lines.
7950
7951 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 7952
d5b3eb1b 7953 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
7954
7955 * xfns.c (gray_bitmap_bits): Declare `char *'.
7956
90aa2856
GM
79572000-12-12 Gerd Moellmann <gerd@gnu.org>
7958
7959 * xdisp.c (display_tool_bar_line): Make sure that tool bar
7960 lines start with a relief line.
7961
a308c9cd
DL
79622000-12-12 Dave Love <fx@gnu.org>
7963
7964 * window.c (Fdisplay_buffer): Doc fix.
7965 (Fwindow_list): Remove unused var.
7966
7967 * buffer.h (mmap_set_vars): Declare.
7968
7969 * window.h (Fset_window_point): Declare.
7970
d575011f
EZ
79712000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
7972
bf6282d2 7973 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
7974 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
7975 variable `area'. When looking for a row under (X,Y), give up if some
7976 of the previous rows is not enabled.
d575011f 7977
ecf4d726
GM
79782000-12-12 Gerd Moellmann <gerd@gnu.org>
7979
2ebf6139
GM
7980 * window.c (Fset_window_point): If displaying cursors in windows
7981 other than the selected window, make sure redisplay updates
7982 other windows to show the new value of point in the window.
7983
7984 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
7985
bfdb75ee
GM
7986 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
7987 the buffer is the sole visible buffer when in the mini-buffer.
7988
52283633 7989 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
7990 Bind `inhibit-read-only' to t.
7991 (unwind_with_echo_area_buffer): Use AREF.
7992
c0006262
GM
7993 * xfns.c (Fx_hide_tip): Simplified.
7994
52283633
SM
7995 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
7996 instead of `1'.
e9a59cad 7997
ecf4d726
GM
7998 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
7999
e5959a9a
GM
80002000-12-11 Gerd Moellmann <gerd@gnu.org>
8001
a3642e49 8002 * xfns.c (Fx_hide_tip): Fix last change.
52283633 8003
44b5a125
GM
8004 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
8005 nothing to do. Bind inhibit-quit.
8006 (tip_frame): Make it a Lisp_Object.
8007 (x_create_tip_frame): Set tip_frame after it has been added to
8008 Vframe_list.
8009 (Fx_show_tip): Don't set tip_frame here.
8010
8011 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
8012
8013 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
8014 Lisp_Object.
8015
8016 * dispextern.h: Change external declaration of tip_frame.
8017
d990421f
GM
8018 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
8019 return an empty string.
8020
4db87380
GM
8021 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
8022 of the window's update_mode_line flag, since the former is set by
8023 force-mode-line-update, not the latter. This makes
8024 column-number-mode slightly faster.
52283633 8025
e5959a9a
GM
8026 * xdisp.c (try_window_id) <all changes above window start>:
8027 Set the cursor.
8028
169fe44e
GM
80292000-12-11 Paul Eggert <eggert@twinsun.com>
8030
8031 * config.in (HAVE_FTELLO): Remove.
8032 (HAVE_FSEEKO): Add.
8033 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
8034 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
8035 HAVE_FTELLO.
8036 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
8037 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 8038
59ec59ae
MB
80392000-12-11 Miles Bader <miles@gnu.org>
8040
8041 * window.c (displayed_window_lines): Don't round up when
8042 converting empty space at bottom to lines.
ff904dd6
MB
8043 Handle non-newline-terminated final lines properly.
8044 (Fwindow_text_height): New function (used to be in lisp).
8045 (syms_of_window): Initialize it.
59ec59ae 8046
42ebfa31
SM
80472000-12-09 Stefan Monnier <monnier@cs.yale.edu>
8048
8049 * syntax.c (scan_lists): Check that the right quote char has the
8050 right Sstring syntax when jumping over strings.
8051 (init_syntax_once): Use Smax rather than 13.
8052
5cdb3cf3
MB
80532000-12-09 Miles Bader <miles@gnu.org>
8054
8055 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
8056 with PARTIALLY, inverting the sense.
8057 (window_scroll_pixel_based): Scroll partially visible lines into
8058 place if we hit the beginning or end of the buffer.
a12167c5
MB
8059 (displayed_window_lines): Don't include partially visible lines.
8060 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 8061
842b2a94
GM
80622000-12-08 Gerd Moellmann <gerd@gnu.org>
8063
8064 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
8065
8066 * tparam.c (tparam1): Change the way buffers are reallocated to be
8067 portable and less obfuscated.
8068
8069 * termcap.c (tgetent): Change the way buffers are reallocated to
8070 be portable and less obfuscated.
8071
8072 * macros.c (store_kbd_macro_char): Change the way buffers are
8073 reallocated to be portable and less obfuscated.
8074
8075 * lread.c (read1): Change the way buffers are reallocated to be
8076 portable and less obfuscated.
8077
8078 * doc.c (Fsubstitute_command_keys): Change the way buffers
8079 are reallocated so that it is portable.
8080
137cad7c
EZ
80812000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
8082
8083 * dosfns.c (Ffile_system_info): New function.
8084 (syms_of_dosfns): Defsubr it.
8085
5c7f629c
SM
80862000-12-07 Stefan Monnier <monnier@cs.yale.edu>
8087
8088 * alloc.c (gc_sweep): Add comment.
8089
959e647d
GM
80902000-12-07 Gerd Moellmann <gerd@gnu.org>
8091
52283633
SM
8092 * sound.c (vox_configure): Change order of ioctls.
8093 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
8094 Ignore errors when changing volume.
8095 (vox_close): Don't reset the device.
8096
926b7e5e
GM
8097 * process.c (read_process_output): Make sure the process marker's
8098 position is valid when the process buffer is changed in
8099 after-change functions. W3 does that.
52283633 8100
959e647d
GM
8101 * xfns.c (x_free_gcs): New function.
8102
8103 * xterm.h (x_free_gcs): Add prototype.
8104
8105 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
8106 freeing GCs here.
8107
8108 * xterm.c (x_destroy_window): Call x_free_gcs so that
8109 resources of non-toolkit X windows will be freed.
8110
478ea067
AI
81112000-12-07 Andrew Innes <andrewi@gnu.org>
8112
8113 * w32fns.c (xlfd_charset_of_font): Fix last change.
8114
fbee3231
DL
81152000-12-06 Dave Love <fx@gnu.org>
8116
67292061
DL
8117 * md5.h (__P): Don't define -- it comes from config.h.
8118
fbee3231
DL
8119 * strftime.c: Change some #if foo to #ifdef foo.
8120
4ee87dbb
AI
81212000-12-06 Andrew Innes <andrewi@gnu.org>
8122
8123 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
8124
52283633 8125 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 8126 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 8127 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 8128
9765b4a4
GM
81292000-12-06 Gerd Moellmann <gerd@gnu.org>
8130
d285b373
GM
8131 * alloc.c (gc_sweep): Prevent symbols read during loadup
8132 from being freed.
8133
384333ee
GM
8134 * xdisp.c (underlying_face_id): New function.
8135 (handle_face_prop, face_before_or_after_it_pos): Use it
8136 to determine the face ``under'' a string. Let strings inherit
8137 the face of the buffer under them.
8138
8139 * xfaces.c (face_at_string_position): Update function comment.
52283633 8140
d4b72d58
GM
8141 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
8142 matrix if the window's left position has changed; we need to
8143 redraw it in this case.
8144
8145 * dispextern.h (struct glyph_matrix): Add member window_left_x.
8146
e1d05387
GM
8147 * window.c (coordinates_in_window): Check mouse on mode-line or
8148 header-line first.
8149
eb1b0c74
GM
8150 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
8151 advertized by the function documentation.
8152
d94d636f
GM
8153 * window.c (syms_of_window): Doc fix.
8154
3887b449
GM
8155 * sound.c (vox_configure): Set volume for left and right channel.
8156 (sound_cleanup): Return nil.
8157
efc8f57a
GM
8158 * xdisp.c (move_it_by_lines): Fix paren typo.
8159
9765b4a4
GM
8160 * xterm.c (x_load_font): Don't use the font's max_bounds for
8161 computing the height of the font. If max_bounds' ascent or
8162 descent are greater than the font's ascent or descent, this means
8163 glyphs overlap, which should be handled now by redisplay.
8164
6529ed87
GM
8165 * window.c (Veven_window_heights): New variable.
8166 (syms_of_window): DEFVAR_LISP it.
8167 (Fdisplay_buffer): Check Veven_window_heights before evening the
8168 window heights.
52283633 8169
0eb2ecde
MB
81702000-12-06 Miles Bader <miles@gnu.org>
8171
8172 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
8173 update `default-frame-alist' instead of setting no frame parameters.
8174
03d7a167
KH
81752000-12-06 Kenichi Handa <handa@etl.go.jp>
8176
8177 * composite.c (update_compositions): Fix typo (use the correct
8178 variable).
8179
5f8803c2
JR
81802000-12-05 Jason Rumney <jasonr@gnu.org>
8181
8182 * md5.h: Remove underscores from function declarations.
8183 (__attribute__, __alignof__) [!__GNUC__]: Define.
8184
8185 * md5.c: Delay include of md5.h until after namespace cleaning.
8186
c28a075b
JR
8187 * makefile.w32-in (fns.o): Depend on md5.h
8188 (md5.o): New target.
8189 (sunfns.o): Remove.
8190
8191 * makefile.nt: Likewise.
8192
ff3c7056
JR
81932000-12-05 Jason Rumney <jasonr@altavista.net>
8194
8195 * w32term.c (expose_area): Complete last change.
8196
0c21eeeb
KR
81972000-12-05 Ken Raeburn <raeburn@gnu.org>
8198
8199 * minibuf.c: Include intervals.h.
8200
f201d732
JR
82012000-12-05 Jason Rumney <jasonr@gnu.org>
8202
8203 * w32term.c (x_produce_glyphs): If a font for a component of
8204 a composition is not found, use 1 pixel dot ascent and 0 dot
8205 descent value to avoid displaying terribly tall empty boxes.
8206 (expose_area): Pass x-coordinate relative to the exposed
8207 area to x_draw_glyphs instead of a window-relative coordinate.
8208
21999ab9
GM
82092000-12-05 Gerd Moellmann <gerd@gnu.org>
8210
4d2036e4
GM
8211 * xdisp.c (next_element_from_ellipsis): Save face before selective
8212 display in saved_face_id, and set face_before_selective_p.
8213 (reseat_1): Reset face_before_selective_p.
8214 (append_space, extend_face_to_end_of_line): If iterator's
8215 face_before_selective_p is set, use the face from saved_face_id.
8216 (extend_face_to_end_of_line): For tty frames, make sure to
8217 use the right face id when producing spaces at the end of
8218 the line.
8219
8220 * dispextern.h (struct it): Add face_before_selective_p.
8221
52be17cc
GM
8222 * keyboard.c (record_char): Don't record identical help-echo
8223 events in recent_keys.
8224
8a4f36cc
GM
8225 * xterm.c [USE_X_TOOLKIT]: Close the display.
8226 (xim_close_dpy): Handle case that the display has been closed.
8227
57d6e381
GM
8228 * xterm.c (x_destroy_window): Reset the frame's X window after
8229 destroying it.
8230
21999ab9
GM
8231 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
8232 variable window_width.
8233 (line_draw_cost): Fix code skipping over spaces at the end of the
8234 line when must_write_spaces is not set.
8235 (scrolling_window): Fix code inserting runs in list of all runs.
8236
91372bb7
KH
82372000-12-05 Kenichi Handa <handa@etl.go.jp>
8238
8239 * coding.c (setup_coding_system): Be sure to initialize
8240 coding->category_idx.
8241
6c083b4c
GM
82422000-12-04 Gerd Moellmann <gerd@gnu.org>
8243
0c68ce6f 8244 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 8245
6452929e
GM
8246 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
8247 area to x_draw_glyphs instead of a window-relative coordinate.
8248
d7f31e22
GM
8249 * fileio.c (auto_save_error): Add parameter ERROR. Show the
8250 error in the message.
8251
ae18aa3b
GM
8252 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
8253 timer after having read a key. It's not good for code reading
8254 several keys in a loop, like an input method.
8255
caa15ef7
GM
8256 * fileio.c (Finsert_file_contents): When VISIT is t, don't
8257 record undo information for format-decode.
8258
8259 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
8260 current buffer is read-only, not if it isn't.
8261
6c083b4c
GM
8262 * keyboard.c (record_char): Record `help-echo' input events
8263 in recent_keys only if they display some help. Don't record
8264 `help-echo' events as macro char.
8265
caa15ef7
GM
82662000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
8267
8268 * editfns.c (save_excursion_restore): Don't move point
8269 in another window if it is showing the wrong buffer.
8270 Avoid the call to Fwindow_live_p, for speed.
8271
5a13529b
KH
82722000-12-04 Kenichi Handa <handa@etl.go.jp>
8273
e225faa7
KH
8274 * xfaces.c (struct font_name): New member registry_priority.
8275 (split_font_name): Initialize the above member to zero.
8276 (concat_font_list): New function.
8277 (font_list): Include fonts of all alternative registries.
8278 (FONT_POINT_SIZE_QUANTUM): New macro.
8279 (better_font_p): Ignore point size difference less than
8280 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
8281
e89648b4
KH
8282 * xterm.c (x_produce_glyphs): If a font for a component of
8283 a composition is not found, use 1 pixel dot ascent and 0 dot
8284 descent value to avoid displaying terribly tall empty boxes.
8285
5a13529b
KH
8286 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
8287
d7935eb6
KR
82882000-12-03 Ken Raeburn <raeburn@gnu.org>
8289
8290 * coding.h (code_convert_string1): Declare.
8291
8292 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
8293
52283633 8294 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 8295
0dd5e255
JR
82962000-12-02 Jason Rumney <jasonr@gnu.org>
8297
8298 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
8299 correctly for single byte character case.
8300 (w32_per_char_metric): Do not try to make any assumptions about
8301 the metrics of BDF fonts.
250cfece 8302 (x_estimate_mode_line_height): If `mode-line' face
52283633 8303 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
8304 (note_mouse_highlight): Change the cursor shape on the vertical
8305 border between windows [not enabled].
8306
8307 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
8308
8309 * w32fns.c (Fx_create_frame): Reintroduce the call to
8310 face-set-after-frame-defaults.
8311 (Vx_window_horizontal_drag_shape): New variable.
8312 (syms_of_xfns): DEFVAR_LISP it.
8313 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
8314 enabled].
0dd5e255 8315
b5d8d2ca
GM
83162000-12-02 Simon Josefsson <simon@josefsson.org>
8317
8318 * fns.c (Fmd5): Use a different logic to decide the coding system
8319 to use.
8320
8321 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
8322
fbb87147
EZ
83232000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
8324
52283633 8325 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 8326
447e9da0
GM
83272000-12-01 Gerd Moellmann <gerd@gnu.org>
8328
7708ced0
GM
8329 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
8330 height for YNegative.
8331 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
8332 height; also see comment there.
8333
447e9da0
GM
8334 * window.c (coordinates_in_window): Handle computations for
8335 positions on the vertical bar and fringes differently for
8336 window-system frames. Consider some pixels near the vertical bar
8337 as on the bar if the frame doesn't have vertical scroll bars.
8338 Associate positions between mode or header lines with the
8339 right window, the left one.
8340
86d1db20
JR
83412000-12-01 Jason Rumney <jasonr@gnu.org>
8342
8343 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
8344
8345 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
8346 invalid frame.
8347
a1d58e5b
GM
83482000-12-01 Gerd Moellmann <gerd@gnu.org>
8349
52283633 8350 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
8351 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
8352 (save_window_save, Fset_window_configuration): Save/restore
8353 window's orig_top and orig_height.
8354
89c609af
JR
83552000-12-01 Jason Rumney <jasonr@gnu.org>
8356
4d177746 8357 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 8358
89c609af
JR
8359 * w32fns.c (x_set_cursor_color): Fix last change.
8360
eccc05db
GM
83612000-11-30 Gerd Moellmann <gerd@gnu.org>
8362
31b6671b
GM
8363 * xdisp.c (echo_area_display): If cursor is in the echo area, make
8364 sure that the next redisplay displays the minibuffer, so that
8365 the cursor will be replaced with what the minibuffer wants.
8366
eccc05db
GM
8367 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
8368 #ifndef instead of using #if.
8369 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
8370 USE_TOOLKIT_SCROLL_BARS is defined.
8371
162de750
JR
83722000-11-30 Jason Rumney <jasonr@gnu.org>
8373
8374 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
8375 x_display_cursor.
8376
693c4692
GM
83772000-11-30 Gerd Moellmann <gerd@gnu.org>
8378
8379 * fns.c (Fmd5): Doc fix.
8380
b5d8d2ca 83812000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
8382
8383 * fns.c (Fmd5): New function.
8384 (syms_of_fns): Defsubr md5.
8385
8386 * Makefile.in (obj): Add md5.o
8387
b02cd40b
GM
83882000-11-30 Gerd Moellmann <gerd@gnu.org>
8389
edfb795e
GM
8390 * md5.h, md5.c: New files, taken from glibc.
8391
df3aedcf
GM
8392 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
8393
b02cd40b 8394 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 8395 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 8396
8b5176cd
SM
83972000-11-29 Stefan Monnier <monnier@cs.yale.edu>
8398
8399 * eval.c (Frun_hooks): Allow 0 arguments.
8400
346598f1
GM
84012000-11-29 Gerd Moellmann <gerd@gnu.org>
8402
f9396e03
GM
8403 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
8404 is over the menu bar widget, say it's not on the frame.
8405
4a967a9b
GM
8406 * xfns.c (Fx_create_frame): Reintroduce the call to
8407 face-set-after-frame-defaults.
8408
346598f1
GM
8409 * eval.c (Fsignal): Reset handling_signal.
8410
222456a1
JR
84112000-11-28 Jason Rumney <jasonr@gnu.org>
8412
8413 * w32menu.c (add_menu_item): Reset menu item text when changing
8414 type to radio button.
8415
8049ddc0
GM
84162000-11-28 Gerd Moellmann <gerd@gnu.org>
8417
346598f1 8418 * xselect.c: Update copyright.
f4f4ee4d 8419
bebe4a2c
GM
8420 * window.c (coordinates_in_window): If on a mode or header line,
8421 but sufficiently close to its start, return ``on vertical
8422 border''. This gives us a way to drag windows horizontally when
8423 using toolkit scroll bars.
8424
8425 * xterm.c (note_mouse_highlight): Change the cursor shape
8426 on the vertical border between windows.
8427
8428 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
8429
8430 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
8431 (syms_of_xfns): DEFVAR_LISP it.
8432 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
8433
8d2c2642
GM
8434 * textprop.c (text_read_only): New function.
8435 (verify_interval_modification): Use it instead of signaling
8436 `text-read-only'. This makes it easier to catch this error
52283633 8437 with a breakpoint.:
8d2c2642 8438
52283633 8439 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
8440 not end of line, which includes CR.
8441
5a2bae6c
KH
84422000-11-28 Kenichi Handa <handa@etl.go.jp>
8443
8444 * coding.c (Ffind_coding_systems_region_internal): Be sure to
8445 include no-conversion.
8446
ae31f84d
JR
84472000-11-27 Jason Rumney <jasonr@gnu.org>
8448
8449 * w32fns.c (w32_load_system_font): Always mark font as double byte
8450 if codepage is unicode.
8451
67f1cf4c
GM
84522000-11-27 Gerd Moellmann <gerd@gnu.org>
8453
4a74d071 8454 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 8455 just consume it to avoid unintended skipping over invisible text below.
4a74d071 8456
902ae620
GM
8457 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
8458 `vertical-line', `mode-line' and `header-line' events.
8459
8460 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
8461 of a character, a TAB for instance. This is easier than to set
8462 up the iterator exactly, and it's not a frequent case, so the
8463 additional effort wouldn't really pay off.
8464
c1e279c2
AC
84652000-11-26 Andrew Choi <akochoi@i-cable.com>
8466
67f1cf4c 8467 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
8468 init_window_once.
8469
a609568a
JR
84702000-11-25 Jason Rumney <jasonr@gnu.org>
8471
52283633
SM
8472 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
8473 Args to window_from_coordinates should be pixel coordinates.
48b21762 8474
a609568a
JR
8475 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
8476 redisplay handles them properly.
8477
a658d039
MB
84782000-11-25 Miles Bader <miles@gnu.org>
8479
8480 * indent.c (compute_motion): Keep pos_byte in sync with pos.
8481
d3416cca
JR
84822000-11-24 Jason Rumney <jasonr@gnu.org>
8483
8484 * w32.c (init_environment): Set LANG environment variable based on
8485 locale settings, if not set.
8486
8487 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
8488 making tool bar smaller. When clearing the frame, also
8489 clear current matrices. Clear frame when tool bar disappears.
8490 Don't use more lines for the tool-bar than is available.
8491 (x_change_window_heights): New function.
8492
ba193890
GM
84932000-11-24 Gerd Moellmann <gerd@gnu.org>
8494
2be8f184
GM
8495 * xdisp.c (init_from_display_pos): If POS says we're already after
8496 an overlay string ending at POS, make sure to pop the iterator
8497 because it will be in front of that overlay string. When POS is
8498 ZV, we've thereby also ``processed'' overlay strings at ZV.
8499
ba193890
GM
8500 * xfaces.c (lface_from_face_name): Function comment fix.
8501
1862a24e
MB
85022000-11-24 Miles Bader <miles@gnu.org>
8503
8504 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
8505 apply `mode-line-inverse-video' -- zero means force display using
8506 the default face, non-zero means display using the specialized face.
8507 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
8508
f07fa1b8
KH
85092000-11-23 Kenichi Handa <handa@etl.go.jp>
8510
8511 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
8512 hard coded `4'.
8513
2bcdf662
EZ
85142000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
8515
8516 * coding.c (decode_coding_emacs_mule): Fix the case of
8517 CODING_EOL_LF, which used uninitialized value of c.
8518
ba8299ff
SM
85192000-11-23 Stefan Monnier <monnier@cs.yale.edu>
8520
8521 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
8522
f4117c4d
GM
85232000-11-22 Gerd Moellmann <gerd@gnu.org>
8524
03e757c1
GM
8525 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
8526 buffer object.
8527
f4117c4d
GM
8528 * frame.h (struct frame): Replace desired_tool_bar_items,
8529 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 8530 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
8531
8532 * frame.c (make_frame): Change initialization of tool bar
8533 items accordingly.
8534
8535 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 8536 Change references to members deleted from struct frame to use the
f4117c4d
GM
8537 new ones.
8538
8539 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 8540 references to members deleted from struct frame to use the new ones.
f4117c4d 8541
52283633 8542 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
8543
8544 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
8545
8546 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 8547 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
8548 from struct frame to use the new ones.
8549
f8e2f3f2
MB
85502000-11-23 Miles Bader <miles@gnu.org>
8551
8552 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
8553 the face's inverse-video attribute, rather than overriding it.
8554
60e8e0a5
GM
85552000-11-22 Gerd Moellmann <gerd@gnu.org>
8556
8557 * xfns.c (x_set_tool_bar_lines): Clear internal border when
8558 making tool bar smaller.
8559
92dd1b29
DL
85602000-11-22 Dave Love <fx@gnu.org>
8561
8562 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
8563
e672fdce
MB
85642000-11-22 Miles Bader <miles@gnu.org>
8565
3a17d6cc
MB
8566 * keyboard.c (Vminibuffer_message_timeout): New variable.
8567 (command_loop_1): Use it to determine message timeout.
8568 (syms_of_keyboard): Initialize it.
8569
60e8e0a5 8570 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 8571
e9655d81
KH
85722000-11-22 Kenichi Handa <handa@etl.go.jp>
8573
8574 * sysdep.c: Move the code for declaring h_errno after #include
8575 <netdb.h>.
8576
77270fac
GM
85772000-11-21 Gerd Moellmann <gerd@gnu.org>
8578
cd913aae
GM
8579 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
8580 the menu bar when the tooltip is unmapped.
8581
77270fac
GM
8582 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
8583 sole visible buffer when we're currently in the mini-buffer, and
8584 give up if so.
52283633 8585
556635d6
JR
85862000-11-21 Jason Rumney <jasonr@gnu.org>
8587
8588 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
8589 put on the clipboard.
8590 (Fw32_get_clipboard_data): Compare data on clipboard with saved
8591 copy of what Emacs last put there. If they are the same, do not
52283633 8592 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 8593
5b7bde64
MB
85942000-11-22 Miles Bader <miles@gnu.org>
8595
8596 * minibuf.c (Vminibuffer_prompt_properties): New variable.
8597 (syms_of_minibuf): Initialize it.
8598 (read_minibuf): Add properties from Vminibuffer_prompt_properties
8599 to prompt, don't make read-only.
8600
ff23e1dd
GM
86012000-11-21 Gerd Moellmann <gerd@gnu.org>
8602
52283633
SM
8603 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
8604 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 8605
7aaf4388
GM
8606 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
8607
f5f47add 8608 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 8609
ff23e1dd
GM
8610 * term.c, cm.c: Don't try to include termcap.h; see comment there.
8611
37c35586
KH
86122000-11-21 Kenichi Handa <handa@etl.go.jp>
8613
8614 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
8615 ... #endif scope.
8616
ff9ab414
GM
86172000-11-20 Gerd Moellmann <gerd@gnu.org>
8618
52283633 8619 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
8620 screen supports it.
8621
29a01b72
GM
8622 * s/gnu-linux.h: Don't use `#cpu'.
8623
09dfdf85
GM
8624 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
8625 not defined in mman.h.
8626
52283633 8627 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
8628 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
8629 and store an index in the XClientMessageEvent. Storing a
8630 Lisp_Object or pointer can fail on a 64 bit system, since X only
8631 transfers 32 bits.
52283633
SM
8632 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
8633
81459ac9
DL
86342000-11-20 Dave Love <fx@gnu.org>
8635
8636 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
8637
56c13ae6
GM
86382000-11-20 Gerd Moellmann <gerd@gnu.org>
8639
8640 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
8641
495a6df3
KH
86422000-11-20 Kenichi Handa <handa@etl.go.jp>
8643
2bcf3714
KH
8644 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
8645 by WIDTH.
8646
495a6df3
KH
8647 * alloc.c (make_string): Fix previous change. Be sure to make
8648 unibyte string correctly.
8649
6d950f4c
GM
86502000-11-19 Gerd Moellmann <gerd@gnu.org>
8651
39b39373
GM
8652 * window.c (Fwindow_list): Change parameter list to be XEmacs
8653 compatible.
8654 (window_list_1): New function.
8655 (window_loop): Use it instead of Fwindow_list.
8656
b95b34e5
GM
8657 * sysdep.c (emacs_ospeed): New variable.
8658 (toplevel): Don't declare ospeed extern.
8659 (init_baud_rate): Use emacs_ospeed instead of ospeed.
8660
8661 * termcap.c (ospeed): Remove.
8662 (tputs) [!emacs]: Remove unused code.
8663 (tgetent): Avoid a compiler warning.
8664
e83dc917
GM
8665 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
8666 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 8667 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
8668
8669 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
8670 removed.
8671 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
8672 Take the X display as additional argument.
8673 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
8674 `Widget' is a pointer type that's not easily stored in Lisp_Object
8675 form in a portable way.
52283633 8676
6d950f4c
GM
8677 * dispnew.c (update_text_area): Fix last change.
8678
e47306e6
GM
86792000-11-18 Gerd Moellmann <gerd@gnu.org>
8680
fb3cd89b
GM
8681 * xdisp.c: Use BINDING_STACK_SIZE throughout.
8682
8683 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
8684 clear current matrices.
8685
edaa9aed
GM
8686 * buffer.c (mmap_enlarge): Don't print a message on stderr
8687 if mapping new memory at the end of the existing region fails.
8688
e47306e6
GM
8689 * dispnew.c (update_text_area): Don't skip over equal glyphs
8690 when the last current glyph overlaps the glyph to its right.
8691
509633e3
MB
86922000-11-18 Miles Bader <miles@gnu.org>
8693
8694 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
8695 lines that *end* with "..." too (that's the most common case!).
8696
d392e9c5
GM
86972000-11-18 Gerd Moellmann <gerd@gnu.org>
8698
67988445
GM
8699 * xdisp.c (resize_mini_window): Temporarily change to the
8700 mini-window's buffer if necessary.
1bfdbe43 8701
d392e9c5
GM
8702 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
8703 the tooltip obscures less text under it.
8704
87052000-11-17 Gerd Moellmann <gerd@gnu.org>
8706
8707 * puresize.h (BASE_PURESIZE): Increase to 700000.
8708
92bb977f
JR
87092000-11-18 Jason Rumney <jasonr@gnu.org>
8710
8711 * w32term.c (w32_draw_bitmap): Use face to set colors.
8712
26fbf20b
DL
87132000-11-17 Dave Love <fx@gnu.org>
8714
8715 * lread.c (Fload): Fix #ifdef for pcc.
8716
100b593b
GM
87172000-11-17 Gerd Moellmann <gerd@gnu.org>
8718
8719 * xdisp.c (pos_visible_p): Compute the default character height
8720 differently.
8721
a288d0d1
GM
87222000-11-16 Gerd Moellmann <gerd@gnu.org>
8723
cac94de6 8724 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 8725 knowing the line's height; use the default font's height in that case.
cac94de6 8726
a288d0d1
GM
8727 * xfaces.c (weight_table): Add `demi' with the same meaning as
8728 `demibold'.
8729
981fb6f6
KH
87302000-11-16 Kenichi Handa <handa@etl.go.jp>
8731
2cca872d 8732 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
8733 (clear_glyph_row): Delete local static variable null_row.
8734
e5fa381b
JR
87352000-11-15 Jason Rumney <jasonr@gnu.org>
8736
8737 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
8738 (w32_alloc_lighter_color): Use new brightness calculations from
8739 xterm.c. Scale delta to be in the range expected by W32.
8740 (w32_draw_relief_rect): Use frame relief colors.
8741
8e42f043
GM
87422000-11-15 Gerd Moellmann <gerd@gnu.org>
8743
6d133d1f
GM
8744 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
8745 (Qinhibit_default_face_x_resources): New variable.
8746 (syms_of_frame): Initialize it.
8747 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
8748
8749 * xdisp.c (pos_visible_p): Improve function comment.
8750
8751 * lisp.h (BINDING_STACK_SIZE): New macro.
8752
8e42f043
GM
8753 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
8754 reading the directory if readdir returns null and errno is EAGAIN
8755 or EINTR.
8756
e8c87124
SM
87572000-11-14 Stefan Monnier <monnier@cs.yale.edu>
8758
8759 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
8760 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
8761 Set amount_to_scroll to max of dx and scroll_step so that
8762 scroll-conservatively doesn't defeat scroll-step>1.
8763 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
8764 scroll-conservatively for line-at-a-time scrolling.
8765
5f0c971d
GM
87662000-11-14 Gerd Moellmann <gerd@gnu.org>
8767
8768 * window.c (Fpos_visible_in_window_p): Call pos_visible with
8769 extra argument.
8770
8771 * xdisp.c (current_mode_line_height, current_header_line_height):
8772 New variables.
8773 (init_xdisp): Initialize them.
8774 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
8775 and use exact mode line heights if it is set.
8776
8777 * lisp.h (pos_visible_p): Change prototype.
8778
8779 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
8780 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
8781 and current_header_line_height first.
52283633
SM
8782 (current_mode_line_height, current_header_line_height):
8783 Declare extern.
5f0c971d 8784
d7361edf
MB
87852000-11-14 Miles Bader <miles@lsi.nec.co.jp>
8786
8787 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
8788 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
8789 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
8790
ee5e440a
MB
87912000-11-14 Miles Bader <miles@gnu.org>
8792
8793 * xterm.c (x_alloc_lighter_color): Include an additive component
8794 too for dark colors, because FACTOR isn't enough.
8795 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
8796 New macros.
8797
5ca020fc
GM
87982000-11-13 Gerd Moellmann <gerd@gnu.org>
8799
8800 * keyboard.c (show_help_echo): Call message3_nolog with number of
8801 bytes in the help string as 2nd parameter, instead of the number
8802 of characters.
8803
9d348294
MB
88042000-11-13 Miles Bader <miles@gnu.org>
8805
8806 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
8807 (Fload): Use new openp return protocol.
8808 Don't try to use Vload_source_file_function to load .elc files.
8809 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
8810 openp return protocol.
8811 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
8812
1729bb9a
KH
88132000-11-11 Kenichi Handa <handa@etl.go.jp>
8814
4e677396
KH
8815 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
8816
8817 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
8818 Defined these macros.
8819 (NLIST_STRUCT): Avoid re-defining it.
8820
1729bb9a
KH
8821 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
8822 -I/usr/contrib/X11R6/include.
8823 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
8824
a82fe213
JR
88252000-11-10 Jason Rumney <jasonr@gnu.org>
8826
8827 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
8828
8829 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
8830 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
8831
8832 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
8833 (Qw32_charset_vietnamese): New symbol.
8834 (xlfd_charset_of_font): New function.
8835 (w32_load_system_font): Use it.
8836 (x_to_w32_charset): Use Fassoc to find charset info. Special case
8837 when Vw32_charset_info_alist is nil to ensure default face always
8838 has font. Use Fcar and Fcdr for safety.
8839 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
8840 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
8841 pseudo-codepages for special cases.
8842 (w32_to_x_font): New parameter to allow charset portion to be
8843 specified where there is many to one mapping. Callers changed.
8844 (w32_list_fonts): Avoid listing fonts that won't display.
8845
52d89894
GM
88462000-11-10 Gerd Moellmann <gerd@gnu.org>
8847
8848 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
8849 (font_list_1): Renamed from font_list.
8850 (font_list): New function, trying alternative registries from
8851 Vface_alternative_font_registry_alist.
8852 (Finternal_set_alternative_font_registry_alist): New function.
8853 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
8854 Vface_alternative_font_registry_alist.
8855 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 8856
651cd3da
KR
88572000-11-09 Ken Raeburn <raeburn@gnu.org>
8858
8859 * lisp.h (Flooking_at): Declare.
8860
388ac098
GM
88612000-11-09 Gerd Moellmann <gerd@gnu.org>
8862
778fbc46 8863 * dired.c (directory_files_internal): Fix a braino.
52283633 8864
388ac098
GM
8865 * dired.c (directory_files_internal): Add missing GCPRO's.
8866 Some cleanup.
8867
ecaedde1
GM
88682000-11-08 Gerd Moellmann <gerd@gnu.org>
8869
f7eb32aa
GM
8870 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
8871 (resize_mini_window): Return quickly if Vresize_mini_window is
8872 nil. Don't return if Vmax_mini_window_height is nil.
8873
8874 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
8875 (syms_of_xdisp): Initialize them.
8876 (resize_mini_window): Act according to the setting of
8877 Vresize_mini_window.
8878 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
8879
ecaedde1
GM
8880 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
8881 scroll bar widget after configuring it, so that it will appear at
8882 the right position from the start.
8883 (XTredeem_scroll_bar): Cleaned up.
8884
3747ef2c
KH
88852000-11-08 Kenichi Handa <handa@etl.go.jp>
8886
8887 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 8888 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
8889 division by two.
8890
8891 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
8892
03391420
DL
88932000-11-07 Dave Love <fx@gnu.org>
8894
7758f1c1 8895 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
8896
8897 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
8898
b5de343d
GM
88992000-11-07 Gerd Moellmann <gerd@gnu.org>
8900
acad3c0b
GM
8901 * window.c (Fset_window_configuration): Don't try to preserve
8902 point in the current buffer, if that buffer is displayed in more
8903 than one window.
8904
b5de343d
GM
8905 * xfaces.c (lookup_named_face): If default face isn't realized,
8906 try to realize it. Return -1 if not successful.
8907 (Fx_list_fonts): Handle case that face cannot be determined.
8908 (Fface_font): Likewise.
8909
cdb1fe49
GM
89102000-11-06 Gerd Moellmann <gerd@gnu.org>
8911
8912 * window.c (displayed_window_lines): Detect partially
8913 visible lines at the bottom correctly.
8914
d3a67486
SM
89152000-11-06 Stefan Monnier <monnier@cs.yale.edu>
8916
8917 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
8918 when ensuring we don't do visit in indirect buffer.
8919
ff8dd5d5
KH
89202000-11-06 Kenichi Handa <handa@etl.go.jp>
8921
8922 * composite.h (compose_chars_in_text): Add prototype.
8923
8924 * composite.c (Vcomposition_function_table): New variable.
8925 (Qcomposition_function_table): New variable.
8926 (run_composition_function): Call
8927 Vcompose_chars_after_function with three arguments.
8928 (compose_chars_in_text): New function.
8929 (syms_of_composite): Modified the doc-string of
8930 Vcompose_chars_after_function. Declare composition-function-table
8931 as a lisp variable, and initialize it.
8932
8933 * xfns.c (x_encode_text): Suppress producing escape sequences for
8934 composition.
8935
8936 * xselect.c: Include composite.h.
8937 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
8938
d1145f85
AI
89392000-11-05 Andrew Innes <andrewi@gnu.org>
8940
8941 * w32term.c (x_produce_glyphs): Fix typo in enum name.
8942
8943 * sysdep.c (read_input_waiting): Remove extraneous argument to
8944 read_socket_hook.
8945
8946 * w32fns.c (Fx_server_version): Include w32_build_number in the
8947 return list.
8948
8949 * w32heap.c (w32_build_number): New variable.
8950 (cache_system_info): Set it.
8951
8952 * w32heap.h (w32_build_number): Add extern.
8953
8954 * emacs.c (syms_of_emacs): Update docstring for
8955 system-configuration, to reflect the actual usage on MS-Windows.
8956
e85ee976
GM
89572000-10-31 Gerd Moellmann <gerd@gnu.org>
8958
26dcb81b
GM
8959 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
8960 process idle timers while waiting for another event.
8961
52283633 8962 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
8963 the default face are colored.
8964
e85ee976
GM
8965 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
8966 window height hasn't changed.
8967
01b220b6
JR
89682000-10-31 Jason Rumney <jasonr@gnu.org>
8969
8970 * w32term.c (x_produce_glyphs): Handle composite characters.
8971 (x_draw_glyph_string_foreground)
8972 (x_draw_composite_glyph_string_foreground): Restore old font.
8973
4e6b7204
MB
89742000-10-31 Miles Bader <miles@lsi.nec.co.jp>
8975
8976 * minibuf.c (read_minibuf): Reset the undo history just before
8977 starting the recursive-edit.
8978
d4358b37
GM
89792000-10-30 Gerd Moellmann <gerd@gnu.org>
8980
563f68f1
GM
8981 * xfaces.c (menu_face_change_count): New variable.
8982 (Finternal_set_lisp_face_attribute): Increment it for changes
8983 of the `menu' face.
8984 (realize_basic_faces): Reflect changes in the `menu' faces
8985 in menu bars.
8986
82e274d1
GM
8987 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
8988 dy obtained from the iterator's y-position after moving from
8989 scroll_margin_pos to PT; see comment there.
52283633 8990
0dbf9fd2
GM
8991 * xdisp.c (safe_eval_handler): Call add_to_log.
8992
906b3b14
GM
8993 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
8994 is not a symbol or string.
8995
d4358b37
GM
8996 * xdisp.c (echo_area_display): Don't perform a display update from
8997 inside redisplay. The update will happen anyway at the end of
8998 redisplay, and it can confuse redisplay (GC messages while
8999 redisplaying, for instance.)
9000
70c825df
SM
90012000-10-30 Stefan Monnier <monnier@cs.yale.edu>
9002
cf9b4b0b
SM
9003 * xrdb.c (x_load_resources): Use the class name in the defaults.
9004
70c825df
SM
9005 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
9006 (regex_compile): Catch bogus \(\1\).
9007
a1d34b1e
GM
90082000-10-30 Gerd Moellmann <gerd@gnu.org>
9009
cae71efe
GM
9010 * xterm.c (x_alloc_nearest_color): Fix last change to compare
9011 RGB values.
52283633 9012
35efe0a1
GM
9013 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
9014 we have a color cache, check that the cached color equals the
9015 allocated color. If not, clear the color cache.
9016
1d3baf74
GM
9017 * window.c (displayed_window_lines): Change buffers if necessary.
9018 Fix computation of displayed lines.
9019
a1d34b1e
GM
9020 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
9021 update_menu_bindings to DEFVAR_BOOL.
9022
70737ea9
KH
90232000-10-30 Kenichi Handa <handa@etl.go.jp>
9024
70c825df 9025 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 9026
fa0cb51d
KH
9027 * puresize.h (BASE_PURESIZE): Increase to 680000.
9028
70737ea9
KH
9029 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
9030
0e4c08e8
JR
90312000-10-29 Jason Rumney <jasonr@gnu.org>
9032
9033 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
9034
9035 * w32term.c (w32_bdf_per_char_metric): Negate descent.
9036 (w32_cache_char_metrics): Handle possibility that 'x' does not
9037 exist in a BDF font.
9038 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
9039
9040 * w32bdf.h (bdffont): Add nchars.
9041
9042 * w32bdf.c (set_bdf_font_info): Set it.
9043 (w32_BDF_TextOut): Swap byte order of double byte characters.
9044 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
9045
45b84006
EZ
90462000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
9047
9048 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
9049 don't override the colors in frame's param_alist, unless they are
9050 unspecified.
9051
9052 * term.c (reassert_line_highlight): If inverse_video is non-zero,
9053 reverse the effect of the highlight flag.
9054
caf9deee
KR
90552000-10-27 Ken Raeburn <raeburn@gnu.org>
9056
9057 * window.h (Fwindow_live_p): Declare.
9058
ae0b9b46
KR
9059 * undo.c (record_delete): Check that last_undo_buffer is really a
9060 buffer before applying XBUFFER to it.
9061
9062 * keymap.c (where_is_internal): Pass lisp object, not integer, to
9063 Faref.
9064
02067692
SM
90652000-10-27 Stefan Monnier <monnier@cs.yale.edu>
9066
9067 * lisp.h (KEYMAPP): New macro.
9068 (get_keymap): Remove.
9069 (get_keymap_1): Rename get_keymap.
9070
9071 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
9072
9073 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
9074
9075 * xmenu.c (single_submenu): Use KEYMAPP.
9076 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
9077 Use KEYMAPP rather than Fkeymapp.
9078
9079 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
9080
9081 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
9082 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
9083 Use KEYMAPP rather than Fkeymapp.
9084 (single_submenu): Use KEYMAPP.
9085 (w32_menu_show, w32_dialog_show): Use TRUE.
9086
9087 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
9088
9089 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
9090 (Fkeymapp): Use KEYMAPP.
9091 (get_keymap): Rename from get_keymap_1. Remove old def.
9092 Return t when autoload=0 and error=0 and the keymap needs autoloading.
9093 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
9094 (Fminor_mode_key_binding): Don't raise an error if the binding
9095 is not a keymap.
9096 (Fuse_global_map, Fuse_local_map): Allow autoloading.
9097 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
9098
9099 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
9100 Allow Vspecial_event_map to be autoloaded.
9101 (menu_bar_items): Fetch the keymap rather than using keymapp.
9102 (menu_bar_one_keymap): No need to follow func-indirect any more.
9103 (parse_menu_item): get_keymap_1 -> get_keymap.
9104 (tool_bar_items): Fetch the keymap rather than using keymapp.
9105 (read_key_sequence): Use KEYMAPP.
9106
9107 * intervals.c (get_local_map): Use get_keymap rather than following
9108 function-indirections explicitly.
9109
9110 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
9111
f9d80af3
JR
91122000-10-27 Jason Rumney <jasonr@gnu.org>
9113
9114 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
9115 point, as Windows has oversized fonts.
9116
9117 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
9118
a3ba27da
GM
91192000-10-27 Gerd Moellmann <gerd@gnu.org>
9120
9121 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
9122 (freehook, reallochook): Handle null pointer arguments.
9123 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
9124
aa3b80cc
SM
91252000-10-27 Stefan Monnier <monnier@cs.yale.edu>
9126
9127 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
9128 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
9129 Giving in to popular pressure to shut up the compiler with casts.
9130
e24e84cc
GM
91312000-10-27 Gerd Moellmann <gerd@gnu.org>
9132
9133 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
9134 signed value, and use a default value computed from the font's
9135 maximum descent.
9136
05ea7ef2
MB
91372000-10-27 Miles Bader <miles@lsi.nec.co.jp>
9138
9139 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
9140 that specify a negative underline position can still use underlines.
9141
9142 * window.c (Fpos_visible_in_window_p): Make POS default to
9143 WINDOW's point, not the current buffer's point.
9144
0b95284b
DL
91452000-10-26 Dave Love <fx@gnu.org>
9146
9147 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
9148 when it's necessary.
9149
6c5b90af
GM
91502000-10-26 Gerd Moellmann <gerd@gnu.org>
9151
8b6d9dc9
GM
9152 * window.c (size_window): Compute size difference from sum of old
9153 child window sizes instead of from parent's size.
9154
6bc92b2e
GM
9155 * xdisp.c (pos_visible_p): Change current buffer if necessary.
9156 Handle obscured lines at the top of the window.
9157
9158 * frame.c (Fdelete_frame): Doc fix. Move running the hook
9159 down after the last error condition check.
9160
6c5b90af
GM
9161 * frame.c (Fdelete_frame): Run delete-frame-hook.
9162
42f92d4d
KH
91632000-10-26 Kenichi Handa <handa@etl.go.jp>
9164
9165 * coding.c (decode_coding): Fix previous change (check also
9166 CODING_MODE_LAST_BLOCK).
9167
d97151cb
SM
91682000-10-25 Stefan Monnier <monnier@cs.yale.edu>
9169
e7efc503
SM
9170 * regex.c: More `unsigned char' -> `re_char' changes.
9171 Also change several `int' into `re_wchar_t'.
9172 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
9173 (PUSH_FAILURE_POINTER): Don't cast any more.
9174 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
9175 We want GCC to complain, since this piece of code makes
9176 re_match non-reentrant, which *should* be fixed.
9177 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
9178 (EXTEND_BUFFER): Use RETALLOC.
9179 (SET_LIST_BIT): Don't cast.
9180 (re_wchar_t): New type.
9181 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
9182 that those two functions will always properly return.
9183 (IMMEDIATE_QUIT_CHECK): Cast to void.
9184 (analyse_first): Use recursion rather than an explicit stack.
9185 (re_compile_fastmap): Can't fail anymore.
9186 (re_search_2): Don't check re_compile_fastmap for failure.
9187 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
9188 Now also sets the new value (passed in a new argument).
9189 (re_match_2_internal): Use it.
9190 Also, use a new var `reg' of type size_t when looping through regs
9191 rather than reuse the inappropriate `mcnt'.
9192
d97151cb
SM
9193 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
9194 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
9195 (where_is_internal): Renamed from Fwhere_is_internal.
9196 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
9197 (Fwhere_is_internal): New function wrapping where_is_internal.
9198 (where_is_internal_1): Handle the case where we're filling the cache.
9199 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
9200
d5789b65
MB
92012000-10-25 Miles Bader <miles@gnu.org>
9202
9203 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
9204
4ecda532
GM
92052000-10-25 Gerd Moellmann <gerd@gnu.org>
9206
9207 * window.c (pos_fully_visible_p): Removed.
9208 (Fpos_visible_in_window_p): Use pos_visible_p to determine
9209 if position is visible and/or fully visible.
9210
9211 * lisp.h (pos_visible_p): Add prototype.
9212
9213 * xdisp.c (pos_visible_p): New function.
9214
68c3a137
KH
92152000-10-25 Kenichi Handa <handa@etl.go.jp>
9216
9217 * process.c (send_process): If OBJECT is t, it means that the data
9218 is from C string, but we should encode it. Before calling
9219 setup_raw_text_coding_system, be sure to flush out data by the
9220 previous coding system.
9221
7ae1c032
MB
92222000-10-25 Miles Bader <miles@lsi.nec.co.jp>
9223
ff4dcd4b
MB
9224 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
9225 assignment of startpos to prev when startpos == pos.
9226
7ae1c032
MB
9227 * editfns.c (find_field): Set the field stickiness correctly from
9228 overlay fields. Use renamed `text_property_stickiness'.
9229 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 9230 Only check text properties, not overlays.
7ae1c032
MB
9231 * textprop.c (get_char_property_and_overlay): New function.
9232 (Fget_char_property): Use it.
9233 * intervals.h (get_char_property_and_overlay): Add declaration.
9234
49801145
SM
92352000-10-25 Stefan Monnier <monnier@cs.yale.edu>
9236
9237 * keymap.c: Use AREF, ASET and ASIZE macros.
9238 (Fmake_sparse_keymap): Docstring fix.
9239 (synkey): Remove.
9240 (shadow_lookup): Move up.
9241 Handle the case where lookup-key returns an integer.
9242 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
9243 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
9244 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
9245 Simplify/rewrite the keymap-finding code.
9246 Add check for command shadowing, using shadow_lookup.
9247
39e776cd
SM
92482000-10-24 Stefan Monnier <monnier@cs.yale.edu>
9249
9250 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
9251 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
9252 a symbol.
9253
2488aba5
AI
92542000-10-24 Andrew Innes <andrewi@gnu.org>
9255
9256 * dired.c (directory_files_internal_unwind): New function.
9257 (directory_files_internal): Use it to ensure closedir is called
9258 even if expand-file-name or file-attributes throw, eg. because of
9259 a user interrupt. Also enable immediate_quit while calling
9260 re_search, so that matching can be interrupted as well.
9261
b94fdf61
AI
92622000-10-24 Andrew Innes <andrewi@gnu.org>
9263
9264 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
9265 NT-Emacs only.
9266 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
9267 so that re_search functions only quit when callers expect them to.
9268
92692000-10-24 Kenichi Handa <handa@etl.go.jp>
9270
9271 * regex.c (regex_compile): Change the way of handling a range from
9272 a char less than 256 to a char not less than 256.
9273
1946f901
GM
92742000-10-24 Gerd Moellmann <gerd@gnu.org>
9275
7ae2f10f
GM
9276 * window.c (size_window): Prevent setting window's width or
9277 height to a negative value (esp. with XSETFASTINT).
9278
5dcab13e
GM
9279 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
9280 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
9281 (protect_malloc_state) [GC_MALLOC_CHECK &&
9282 GC_PROTECT_MALLOC_STATE]: New function.
9283 (PROTECT_MALLOC_STATE): New macro.
9284 (__malloc_initialize, morecore, _malloc_internal)
9285 (_free_internal) _realloc_internal): Use it to make _heapinfo
9286 read-only outside of gmalloc.
9287
63e1b552
GM
9288 * keymap.c: Update copyright.
9289
1946f901
GM
9290 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
9291 a symbol.
9292
4fa09beb
GM
92932000-10-24 Colin Walters <walters@cis.ohio-state.edu>
9294
9295 * filelock.c (unlock_all_files): Use unlock_file to expand each
9296 buffer's file_truename before trying remove its lock file.
9297
23afac01
EZ
92982000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
9299
9300 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
9301 or CRLF, decode EOLs.
9302
04448b95
KH
93032000-10-24 Kenichi Handa <handa@etl.go.jp>
9304
9305 * window.c (Fdisplay_buffer): Fix doc.
9306
3090a5a5
JR
93072000-10-23 Jason Rumney <jasonr@gnu.org>
9308
9309 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
9310 ASCII font of default fontset on Windows.
9311
9312 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
9313 xterm.c comment below).
9314
9315 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
9316
a83fee2c
GM
93172000-10-23 Gerd Moellmann <gerd@gnu.org>
9318
9319 * xterm.c (x_connection_closed): Reset handling_signal.
9320
52283633 9321 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 9322
6ffdb539
MB
93232000-10-23 Miles Bader <miles@gnu.org>
9324
9325 * window.c (window_scroll_pixel_based, window_scroll_line_based):
9326 Pass nil for FULLY argument to Fpos_visible_in_window_p to
9327 maintain old behavior.
9328 * minibuf.c (Fminibuffer_complete): Likewise.
9329
7f1c969b
MB
93302000-10-23 Miles Bader <miles@lsi.nec.co.jp>
9331
9332 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
9333 that when a font can't be exactly centered, it errs up rather than
9334 down.
9335
23afac01 93362000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 9337
52283633 9338 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 9339
1a578e9b
AC
93402000-10-23 Andrew Choi <akochoi@i-cable.com>
9341
9342 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
9343
9344 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 9345 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
9346
9347 * emacs.c (main) [macintosh]: Call syms_of_textprop,
9348 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
9349 syms_of_search, x_term_init, and init_keyboard before calling
9350 init_window_once. Also, call syms_of_xmenu.
9351
9352 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
9353 default fontset to Monaco.
9354
9355 * frame.c [macintosh]: Include macterm.h. Remove declarations of
9356 NewMacWindow and DisposeMacWindow.
9357 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
9358 instead of calling NewMacWindow and setting fields of
9359 f->output_data.mac directly. Call init_frame_faces.
9360 (Fdelete_frame) [macintosh]: Remove unused code.
9361 (Fmodify_frame_parameters) [macintosh]: Call
9362 x_set_frame_parameters instead of mac_set_frame_parameters.
9363
9364 * frame.h [macintosh]: Define menu_bar_lines field in struct
9365 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
9366
9367 * keyboard.c [macintosh]: Include macterm.h.
9368 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
9369 and menu_bar_activate_event type events as for X and NT.
9370 (make_lispy_event) [macintosh]: Construct lisp events of type
9371 MENU_BAR_EVENT as for X and NT.
9372
9373 * sysdep.c [macintosh]: Remove declaration for sys_signal.
9374 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
9375 (sys_subshell) [macintosh]: Remove definition entirely.
9376 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
9377 Vwindow_system_version here. Remove initialization of
9378 Vx_bitmap_file_path.
9379 (read_input_waiting): Correct the number of parameters passed to
9380 read_socket_hook.
9381 Move all Macintosh functions to mac/mac.c.
9382
9383 * term.c [macintosh]: Include macterm.h.
9384
9385 * window.c [macintosh]: Include macterm.h.
9386
9387 * xdisp.c [macintosh]: Include macterm.h. Declare
9388 set_frame_menubar and pending_menu_activation.
9389 (echo_area_display) [macintosh]: Do not return if terminal frame
9390 is the selected frame.
9391 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
9392 Allow only the selected frame to set menu bar.
9393 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
9394 calling FRAME_EXTERNAL_MENU_BAR (f).
9395 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
9396
9397 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
9398 and check_x. Declare XCreateGC. Define x_create_gc and
9399 x_free_gc. Initialize font_sort_order.
9400 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
9401 but call x_list_fonts instead of w32_list_fonts.
9402 (Finternal_face_x_get_resource) [macintosh]: Do not call
9403 display_x_get_resource.
9404 (prepare_face_for_display) [macintosh]: Set xgcv.font.
9405 (realize_x_face) [macintosh]: Load the font if it is specified in
9406 ATTRS.
52283633 9407 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 9408
1ffbabe3
SM
94092000-10-22 Stefan Monnier <monnier@cs.yale.edu>
9410
9411 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
9412 is nil: since we go to the end of submap anyway, we'd end up
9413 setting nil to nil.
9414 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
9415 doesn't obey autoload.
9416
bed43f1d
EZ
94172000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
9418
1ffbabe3 9419 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 9420
ea4233a7
JR
94212000-10-21 Jason Rumney <jasonr@gnu.org>
9422
9423 * w32term.c (w32_cache_char_metrics): Double check that font is
9424 really fixed pitch before trusting tmPitchAndFamily.
9425
f3d3c491
AI
94262000-10-21 Andrew Innes <andrewi@gnu.org>
9427
9428 * w32gui.h (w32_char_font_type): Move enum from w32term.c
9429
9430 * w32term.h: Extern decl for w32_cache_char_metrics.
9431
9432 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
9433
9434 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
9435 (w32_unload_font): Free per_char array if present.
9436
9437 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
9438 cached information in emulated XFontStruct to handle common cases
9439 quickly. Do not allocate XCharStruct for return.
9440 (w32_native_per_char_metric): New function.
9441 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
9442 allocating one.
9443 (x_produce_glyphs): Don't get an HDC. Change calls to
9444 w32_per_char_metric to match arg change above. Remove calls to
9445 free results.
9446 (w32_get_glyph_overhangs): Ditto.
9447 (w32_cache_char_metrics): New function.
9448
9449 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
9450 ($(BLD)/casefiddle.$(O)): Remove compile command.
9451 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
9452 ($(BLD)/dispnew.obj):
9453 ($(BLD)/keyboard.obj):
9454 ($(BLD)/w32inevt.obj):
9455 ($(BLD)/w32bdf.obj):
9456 ($(BLD)/alloc.obj):
9457 ($(BLD)/buffer.obj):
9458 ($(BLD)/editfns.obj):
9459 ($(BLD)/emacs.obj):
9460 ($(BLD)/fileio.obj):
9461 ($(BLD)/fns.obj):
9462 ($(BLD)/indent.obj):
9463 ($(BLD)/insdel.obj):
9464 ($(BLD)/intervals.obj):
9465 ($(BLD)/minibuf.obj):
9466 ($(BLD)/print.obj):
9467 ($(BLD)/scroll.obj):
9468 ($(BLD)/sysdep.obj):
9469 ($(BLD)/textprop.obj):
9470 ($(BLD)/widget.obj):
f3d3c491
AI
9471 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
9472 ($(BLD)/term.obj): Add dependency on dispextern.h.
9473
52283633
SM
9474 * makefile.nt ($(BLD)\dispnew.obj):
9475 ($(BLD)\keyboard.obj):
9476 ($(BLD)\w32inevt.obj):
9477 ($(BLD)\w32bdf.obj):
9478 ($(BLD)\alloc.obj):
9479 ($(BLD)\buffer.obj):
9480 ($(BLD)\editfns.obj):
9481 ($(BLD)\emacs.obj):
9482 ($(BLD)\fileio.obj):
9483 ($(BLD)\fns.obj):
9484 ($(BLD)\indent.obj):
9485 ($(BLD)\insdel.obj):
9486 ($(BLD)\intervals.obj):
9487 ($(BLD)\minibuf.obj):
9488 ($(BLD)\print.obj):
9489 ($(BLD)\scroll.obj):
9490 ($(BLD)\sysdep.obj):
9491 ($(BLD)\textprop.obj):
9492 ($(BLD)\widget.obj):
f3d3c491
AI
9493 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
9494 ($(BLD)\term.obj): Add dependency on dispextern.h
9495
18ad4821
EZ
94962000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
9497
9498 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
9499 with an additional argument of Qt.
9500
de54681a
MB
95012000-10-21 Miles Bader <miles@gnu.org>
9502
9503 * window.c (pos_fully_visible_in_window_p): New function.
9504 (Fpos_visible_in_window_p): Add FULLY argument.
9505 Use pos_fully_visible_in_window_p.
9506 (window_scroll_pixel_based, window_scroll_line_based): Update
9507 calls to Fpos_visible_in_window_p.
9508 * lisp.h (Fpos_visible_in_window_p): Update prototype
9509
13c844fb
GM
95102000-10-20 Gerd Moellmann <gerd@gnu.org>
9511
9512 * alloc.c (toplevel): Conditionalize compilation of mem_*
9513 functions differently.
52283633 9514
d9506268
JR
95152000-10-20 Jason Rumney <jasonr@gnu.org>
9516
9517 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
9518 mem_init where it used to be. mem_z etc not defined otherwise.
9519
8094989b
GM
95202000-10-20 Gerd Moellmann <gerd@gnu.org>
9521
9522 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
9523 GC_MALLOC_CHECK.
9524 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
9525 structure definition and related variabled to the top of the file.
9526 Include this code when GC_MALLOC_CHECK is defined.
9527 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
9528 register/unregister allocated region.
9529 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
9530 which isn't allocated.
9531 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
9532 something which is already in use.
9533 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
9534 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
9535 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
9536 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
9537
9538 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
9539 _malloc_internal instead of malloc.
9540 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
9541 of free.
9542
ea456eb4
AI
95432000-10-20 Andrew Innes <andrewi@gnu.org>
9544
9545 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
9546 Windows.
9547 (my_strftime) <macro>: Don't use macro arg list when redefining as
9548 _strftime_copytm.
9549 (my_strftime) <function>: Supply 0 as ut argument.
9550
e64c3a75
JR
95512000-10-19 Jason Rumney <jasonr@altavista.net>
9552
9553 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
9554 including dispextern.h, as it stops faces from working.
9555
9556 * w32fns.c (Fx_create_frame): Don't bother calling
9557 face-set-after-frame-default since the caller does it for us
9558 anyway. Clean up calls to x_get_arg to be consistent with X.
9559
9560 * w32term.c (x_produce_glyphs): Handle
9561 unibyte_display_via_language_environment correctly.
9562 (w32_draw_box_rect): Fix the calculation of width and height.
9563
9564 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
9565 as it has stopped working.
9566 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
9567 menu-bar.
9568
17401c97
GM
95692000-10-19 Gerd Moellmann <gerd@gnu.org>
9570
9571 * eval.c (skip_debugger): Prevent a compiler warning.
9572 (Fcondition_case): Likewise.
9573 (Fbacktrace_frame): Use a null interactive spec.
9574
773272d8
KH
95752000-10-19 Kenichi Handa <handa@etl.go.jp>
9576
9577 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
9578
a42943e9
GM
95792000-10-18 Gerd Moellmann <gerd@gnu.org>
9580
e50517d9
GM
9581 * strftime.c: Sync with glibc, file version 1.78.
9582 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
9583 should no longer be used according to ISO 8601.
9584
9035a35a
GM
9585 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
9586 no map for meta_prefix_char, don't try to use it as a keymap.
9587 Instead, if T_OK is non-zero, look up a default binding, if any,
9588 otherwise, if T_OK is zero, return nil.
9589
a42943e9
GM
9590 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
9591 (x_to_xcolors, png_load): Use x_query_color.
9592
52283633
SM
9593 * xterm.c (x_color_cells, x_query_colors, x_query_color):
9594 New functions.
a42943e9
GM
9595 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
9596 which can be slow.
9597 (x_copy_color, x_alloc_lighter_color): Likewise.
9598
9599 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
9600 (x_query_color, x_query_colors): Add prototype.
9601
9602 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
9603 check_string_bytes only if not noninteractive, increase count to 50.
9604
00de2987
MB
96052000-10-18 Miles Bader <miles@lsi.nec.co.jp>
9606
9607 * insdel.c (adjust_markers_for_delete): Handle before-insertion
9608 markers correctly.
9609
54918e2b
GM
96102000-10-17 Gerd Moellmann <gerd@gnu.org>
9611
1f0b3fd2
GM
9612 * alloc.c (pure_bytes_used): Renamed from pureptr.
9613 (ALIGN): New macro.
9614 (pure_alloc): New function.
9615 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
9616 Use it.
9617 (Fpurecopy): Use PURE_POINTER_P.
9618
68c5d1db
GM
9619 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
9620 PT has moved backward.
52283633 9621
9a038881
GM
9622 * xdisp.c (cursor_row_p): Take continued lines into account.
9623
361b097f
GM
9624 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
9625 string's size_byte.
9626 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
9627 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
9628 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
9629 string allocated.
9630
54918e2b
GM
9631 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
9632 of selective display off while searching for the next line start.
9633
03ed0806
KH
96342000-10-17 Kenichi Handa <handa@etl.go.jp>
9635
9636 * Makefile.in (term.o): Depend on dispextern.h.
9637
7e05cdaf
SM
96382000-10-16 Stefan Monnier <monnier@cs.yale.edu>
9639
9640 * keymap.c (keymap_memberp): Ensure that nil is not a member.
9641
a6801fd1
GM
96422000-10-16 Gerd Moellmann <gerd@gnu.org>
9643
483de32b
GM
9644 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
9645 the iterator at the beginning, so that they can be set later on,
9646 for instance in reseat_at_next_visible_line_start, without being
9647 overwritten.
9648
a6801fd1
GM
9649 * xfns.c (pbm_format): Add :foreground and :background keywords.
9650 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 9651 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 9652
dbf1fcc1
EZ
96532000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
9654
9655 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
9656
52283633 9657 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
9658
9659 * msdos.c (IT_set_face): Compare highlighted face with the default
9660 face, and invert colors if these faces' colors are identical.
9661 (Fmsdos_remember_default_colors): Don't swap foreground and
9662 background colors in initial_colors[].
9663 (IT_set_frame_parameters): Don't swap frame's foreground and
9664 background pixels. If ALIST includes "(reverse . t)", swap
9665 foreground-color and background-color properties in frame's
9666 param_alist. If the original frame's param_alist doesn't specify
9667 the colors, store unspecified-fg and unspecified-bg, reversed if
9668 required.
9669
9670 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
9671 the colors are unspecified and reversed, reverse fore- and back-
9672 ground in the returned value.
9673 (Fframe_parameter): Ditto.
9674
b41fe2c3 96752000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 9676
3a6b59d9
GM
9677 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
9678 get_last_unchanged_at_beg_row.
9679 (find_first_unchanged_at_end_row): Renamed from
9680 get_first_unchanged_at_end_row.
9681 (find_first_unchanged_at_end_row): Convert assertions to
9682 unconditional tests which abort. When looking for a row in
9683 unchanged text, don't go further back than first_text_row.
9684
b41fe2c3
GM
9685 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
9686 Don't add in the last line's height when deciding if the new
9687 position is below the scroll margin.
9d1af64f 9688
b41fe2c3 96892000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
9690
9691 * editfns.c (Fconstrain_to_field): Check carefully for field
9692 boundaries if either OLD_POS or NEW_POS has a non-nil field
9693 property, even if they're the same.
9694
c412cb7b
KH
96952000-10-16 Kenichi Handa <handa@etl.go.jp>
9696
9697 * xterm.c (x_draw_box_rect): Fix the calculation of width and
9698 height for XFillRectangle.
9699
5586f3eb
SM
97002000-10-15 Stefan Monnier <monnier@cs.yale.edu>
9701
9702 * syntax.c (Fstring_to_syntax): New function extracted from
9703 Fmodify_syntax_entry.
9704 (Fmodify_syntax_entry): Use it and document the ! and | fences.
9705 (skip_chars, Fforward_comment): Remove unused variables.
9706 (syms_of_syntax): Add defsubr for string-to-syntax.
9707 (describe_syntax): Add code for comment and string fences.
9708
db785038
SM
97092000-10-14 Stefan Monnier <monnier@cs.yale.edu>
9710
9711 * keymap.c (access_keymap): Add AUTOLOAD parameter.
9712 Do the meta->esc mapping. Call get_keyelt before returning.
9713 Start scanning from the second element (the first is always `keymap')
9714 to make it easier to detect when we reach a parent map.
9715 Handle the case of inheriting from a symbol whose function is a map.
9716 (Fkeymap_parent): Also handle the `inherit from symbol' case.
9717 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
9718 (get_keyelt, Flookup_key): Update call to access_keymap.
9719 Remove the meta->esc mappings.
9720 (define_as_prefix): Delete old disabled code.
9721 (menu_item_p): New function.
9722 (where_is_internal_1): Skip over the few remaining menu items.
9723 * lisp.h (access_keymap): Update prototype.
9724 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
9725 Update call to access_keymap.
9726 (follow_key, read_key_sequence): Update calls to access_keymap.
9727 Remove the meta->esc mappings.
9728
cafafe0b
GM
97292000-10-13 Gerd Moellmann <gerd@gnu.org>
9730
a2e2a7f6
GM
9731 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
9732 with additional argument.
9733
cafafe0b
GM
9734 * xdisp.c (cursor_row_p): New function.
9735 (try_cursor_movement, display_line): Use it.
52283633 9736
cafafe0b
GM
9737 * xdisp.c (append_space): Also save/restore iterator's current
9738 character and its length.
9739
9740 * xdisp.c (init_from_display_pos): Add an assertion.
9741 (handle_stop): Don't set iterator's add_overlay_start.
9742 (handle_invisible_prop): Likewise.
9743 (load_overlay_strings): If text under an overlay is invisible,
9744 take both before- and after-strings into account when the iterator
9745 is positioned either at the start or at the end of the overlay.
9746 (forward_to_next_line_start): Rewritten.
9747 (reseat_at_next_visible_line_start): Rewritten.
9748 (set_iterator_to_next): Add parameter RESEAT_P.
9749
9750 * dispextern.h (struct it): Remove member add_overlay_start.
9751 (set_iterator_to_next): Change prototype.
9752
c744452b
KH
97532000-10-13 Kenichi Handa <handa@etl.go.jp>
9754
9755 * coding.c (code_convert_region): Be sure to initialize
9756 coding->category_idx.
e4a3f4e1
KH
9757 (decode_coding_string): Set coding->src_multibyte and
9758 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
9759 (encode_coding_string): Set coding->src_multibyte and
9760 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 9761
321fd26f
SM
97622000-10-12 Stefan Monnier <monnier@cs.yale.edu>
9763
9764 * xfns.c (Fx_create_frame): Don't bother calling
9765 face-set-after-frame-default since the caller does it for us anyway.
9766
76832439
EZ
97672000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
9768
9769 * window.c (coordinates_in_window): Fix detection of vertical line
9770 on character terminals.
9771
2483cf58
GM
97722000-10-12 Gerd Moellmann <gerd@gnu.org>
9773
9774 * editfns.c (save_excursion_save): Additionally record the
9775 selected window.
9776 (save_excursion_restore): If buffer was visible in a window, and a
9777 different window was selected, and the old selected window is
9778 still live, restore point in that window.
9779
eb991b25
KH
97802000-10-12 Kenichi Handa <handa@etl.go.jp>
9781
8a0eba09
KH
9782 * xterm.c (x_produce_glyphs): Handle
9783 unibyte_display_via_language_environment correctly.
9784
20401fcc
KH
9785 * regex.c (regex_compile): Change the way of handling a range from
9786 unibyte char to multibyte char.
9787
9788 * syntax.c (skip_chars): Change the way of handling a range from
9789 unibyte char to multibyte char.
9790
eb991b25
KH
9791 * process.c (read_process_output): Cancel previous change.
9792
365dd325
EZ
97932000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
9794
c1b096cb
EZ
9795 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
9796
365dd325
EZ
9797 * charset.c (Ffind_charset_string): Doc fix.
9798 (Ffind_charset_region): Doc fix.
9799
eb483c2b
KH
98002000-10-11 Kenichi Handa <handa@mule.m17n.org>
9801
9802 * process.c (read_process_output): Fix previous change. Adjust
9803 multibyteness of text to insert in a buffer by
52283633 9804 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 9805
b40bfb99
AS
98062000-10-10 Andreas Schwab <schwab@suse.de>
9807
9808 * alloc.c (mark_object): Remove all workarounds installed on
9809 1993-08-08.
9810
caff31d4
KH
98112000-10-10 Kenichi Handa <handa@etl.go.jp>
9812
52283633 9813 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
9814 (base64_encode_1): Make it work for a text of multibyte form.
9815 (Fbase64_decode_region): Allocate sufficient memory for multibyte
9816 case. Don't call str_to_multibyte because base64_decode_1
9817 produces correct multibyte form for eight-bit codes.
52283633 9818 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
9819 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
9820 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
9821 codes.
9822
9823 * charset.h (CHAR_STRING): Optimized for single byte characters.
9824
cba026ef
AS
98252000-10-09 Andreas Schwab <schwab@suse.de>
9826
9827 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
9828 -1 after socket is closed, to fall through to error processing.
9829
1e21fe48
EZ
98302000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
9831
9832 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 9833 variables. If ALIST includes foreground-color or
1e21fe48
EZ
9834 background-color, change also the colors of the default face for
9835 this frame.
9836
a640322e
EZ
98372000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
9838
9839 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
9840 them extern (they are defined on xfaces.c).
9841 (syms_of_msdos): Don't intern and don't staticpro
9842 Qbackground_color and Qforeground_color.
9843
a115794c
EZ
98442000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
9845
9846 * frame.c (Fframe_parameter): For non-windowed frames, if
9847 f->param_alist says foreground or background color is unspecified,
9848 call tty_color_name to return the color name computed from the
9849 frame's current colors.
9850
f5533b63
DL
98512000-10-06 Dave Love <fx@gnu.org>
9852
9853 * terminfo.c (ospeed): Don't declare.
9854
9855 * sysdep.c: Don't include string.h.
9856 (h_errno): Declare conditional also on TRY_AGAIN.
9857
9858 * charset.c (Ffind_charset_string): Doc fix.
9859
52283633 9860 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
9861 (Fbase64_decode_region, Fbase64_decode_string): More explicit
9862 error messages.
9863
2b06561a
DL
98642000-10-05 Dave Love <fx@gnu.org>
9865
9866 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
9867 position like menu-bar.
9868
ca839c85
GM
98692000-10-05 Gerd Moellmann <gerd@gnu.org>
9870
9871 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
9872
9873 * xdisp.c (handle_single_display_prop): Use safe_call1.
9874 (safe_call): Renamed from call_function.
9875 (safe_call1): New function.
9876 (handle_fontified_prop): Use safe_call1 instead of call1.
9877 (safe_eval): Renamed from eval_form.
9878 (safe_eval_handler): Renamed from eval_handler.
9879 (handle_single_display_prop, display_mode_element): Use safe_eval
9880 instead of eval_form.
9881
9882 * xfaces.c (merge_face_heights): Use safe_call instead of
9883 call_function.
9884
9885 * keyboard.c (show_help_echo): Use safe_call instead of
9886 call_function; use safe_eval instead of eval_form.
9887
9888 * lisp.h (safe_call): Renamed from call_function.
9889 (safe_eval): Renamed from eval_form.
9890 (safe_call1): Add prototype.
9891
a3489ece
MB
98922000-10-05 Miles Bader <miles@lsi.nec.co.jp>
9893
9894 * xfns.c (image_ascent): Rearrange ascent calculation for the
9895 has-a-font case.
9896
35810b6f
SM
98972000-10-04 Stefan Monnier <monnier@cs.yale.edu>
9898
9899 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
9900 (where_is_internal_1): Don't bother ignoring menu-items any more.
9901
3dc78168
GM
99022000-10-04 Gerd Moellmann <gerd@gnu.org>
9903
9904 * keyboard.c (update_menu_bindings): New variable.
9905 (parse_menu_item): Use AREF. If update_menu_bindings
9906 is 0, don't update menu bindings.
9907 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
9908
1efc2bb9
EZ
99092000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
9910
9911 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
9912 to `mark_object'.
9913
3f679f55
SM
99142000-10-02 Stefan Monnier <monnier@cs.yale.edu>
9915
9916 * syntax.c (forw_comment): Match nestedness of ender/starter.
9917 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
9918 (prev_char_comstart_first): Remove.
9919 (back_comment): Check two-char comment markers more carefully
9920 to better handle overlapping cases like *//* or /* */* */ ...
9921 Match nestedness of ender/starter.
9922
2021ab61
DL
99232000-10-02 Dave Love <fx@gnu.org>
9924
9925 * config.in (HAVE_GAI_STRERROR): Add undef.
9926
9927 * process.c (Fopen_network_stream): Use it.
9928
9929 * m/alpha.h (NO_REMAP): Don't define.
9930
64e6cc18
GM
99312000-10-02 Gerd Moellmann <gerd@gnu.org>
9932
9933 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
9934 return with a string converted to an integer or vice versa when
9935 Vmocklisp_arguments is t.
9936 (Fsignal): Likewise. The function can return for `quit'.
9937 (struct gcpro): Declare member `var' to point to a volatile
9938 Lisp_Object.
9939
9940 * eval.c (error): Prevent compiler warning.
9941
b1904cd9
SM
99422000-09-30 Stefan Monnier <monnier@cs.yale.edu>
9943
9944 * keymap.c (keymap_memberp): New function.
9945 (Fset_keymap_parent): Use it.
9946 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
9947 Use keymap_memberp to avoid creating cycles.
9948 (access_keymap): Use KEYMAPP.
9949
71c9ec51
GM
99502000-09-30 Gerd Moellmann <gerd@gnu.org>
9951
9952 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
9953 gai_strerror. Make sure xerrno is set if connect fails. Improve
9954 error recovery.
71c9ec51 9955
c70c6b58
JR
99562000-09-29 Jason Rumney <jasonr@gnu.org>
9957
9958 * w32term.c (w32_char_font_type, w32_encode_char)
9959 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
9960 (w32_bdf_per_char_metric): New function.
9961 (w32_per_char_metric): Use it.
9962 (x_draw_glyph_string_background): Always draw background for BDF
9963 glyphs.
9964
9965 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
9966 GDI object which is a scarce resource.
9967
9968 * w32bdf.c (search_file_line): Fix skipping of whitespace.
9969 (get_quoted_string): Fix limit on memchr search.
9970 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
9971 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
9972 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
9973 (get_cached_font_char, cache_char_offset): Use macro
9974 BDF_CODEPOINT_RANGE_COVER_P.
9975 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
9976 (clear_cached_bitmap_slots): New function.
9977 (GET_HEX_VALUE): G-Z, g-z are not hex.
9978 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
9979 (get_bitmap_with_cache): Use new cache implementation.
9980 (create_offscreen_bitmap): New function.
9981 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
9982
9983 * w32term.c (x_produce_glyphs): If the distance from the current
9984 position to the next tab stop is less than a canonical character
9985 width, use the tab stop after that.
9986 (x_draw_glyphs): Handle case START and END are out of bounds more
9987 carefully.
9988 (x_clear_mouse_face): Block/unblock input.
9989 (x_display_and_set_cursor): Don't show a hollow box cursor for
9990 buffers whose cursor_type is nil.
9991
fe01239f
GM
99922000-09-29 Gerd Moellmann <gerd@gnu.org>
9993
52283633 9994 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
9995
9996 * dispextern.h (updating_frame): Declare extern.
9997
e7c52f1f
AS
99982000-09-29 Andreas Schwab <schwab@suse.de>
9999
10000 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
10001
de6e1f7c
GM
100022000-09-29 Gerd Moellmann <gerd@gnu.org>
10003
25126faa
GM
10004 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
10005 use its function definition.
10006 (tool_bar_items): Likewise.
10007
de6e1f7c 10008 * lisp.h (fatal): Declare NO_RETURN.
52283633 10009
454ee39b
KH
100102000-09-29 Kenichi Handa <handa@etl.go.jp>
10011
10012 * keymap.c: Remove the line "#undef NULL".
10013
96301c5f
GM
100142000-09-28 Gerd Moellmann <gerd@gnu.org>
10015
52283633 10016 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 10017
efffeeb4
DL
100182000-09-28 Dave Love <fx@gnu.org>
10019
ecb8b666
DL
10020 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
10021
dc3cd20f
DL
10022 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
10023
10024 * .gdbinit (xreload): Note its need on GNU/Linux.
10025
efffeeb4
DL
10026 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
10027 r_alloc, r_alloc_free.
10028
8610d903
KH
100292000-09-28 Kenichi Handa <handa@etl.go.jp>
10030
10031 * syntax.c (skip_chars): Handle negation correctly.
10032
8901d1ac
GM
100332000-09-27 Gerd Moellmann <gerd@gnu.org>
10034
6f22f1ad
GM
10035 * xfaces.c (realize_default_face): Call set_lface_from_font_name
10036 with non-zero FORCE_P argument.
10037
52283633 10038 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
10039 Add assertions.
10040
10041 * xdisp.c (window_box_height): Add an assertion.
10042
10043 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
10044 tool-bar than is available.
10045 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
10046
36f1966f
DL
100472000-09-27 Dave Love <fx@gnu.org>
10048
efffeeb4 10049 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 10050
31d929e5
GM
100512000-09-26 Gerd Moellmann <gerd@gnu.org>
10052
c98863bf
GM
10053 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
10054 instead of BITS_PER_INT.
10055 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
10056 EMACS_UINT, respectively.
10057 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
10058
10059 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
10060
10061 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
10062
77072ab1
GM
10063 * window.c (freeze_window_starts): Construct last argument for
10064 foreach_window differently.
10065
10066 * xfns.c (x_decode_color): Don't return a Lisp_Object.
10067
10068 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
10069 EMACS_UINT instead of `int' and `unsigned int'.
10070 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
10071
10072 * frame.h (struct frame): Make the `nothing' member of union
10073 output_data an EMACS_INT.
10074
52283633 10075 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
10076 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
10077 size in the sdata structure.
10078 (SDATA_NBYTES, SDATA_DATA): New macros.
10079 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
10080 differently for the different layout of the sdata structure.
10081 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
10082 in sdata.
10083 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
10084 Check that size recorded in the string size and size recorded in
10085 the sdata structure agree.
10086
3e60b029
DL
100872000-09-25 Dave Love <fx@gnu.org>
10088
10089 * buffer.c: Include stdio.h.
10090
10091 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 10092
3e60b029
DL
10093 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
10094
10095 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 10096 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
10097 (__malloc_extra_blocks): Declare as __malloc_size_t.
10098
8ff16b4e
GM
100992000-09-25 Gerd Moellmann <gerd@gnu.org>
10100
755a2ccd
GM
10101 * alloc.c (mark_image): Use GC_NILP instead of NILP.
10102
d8b4516f
GM
10103 * keyboard.c (show_help_echo): Set help_echo_showing_p.
10104 (read_char): If help-echo is showing, preserve the echo area
10105 when redisplaying.
10106
10107 * xdisp.c (help_echo_showing_p): New variable.
10108 (set_message): Reset it to 0.
10109 (init_xdisp): Initialize help_echo_showing_p.
10110
10111 * dispextern.h (help_echo_showing_p): Declare extern.
10112
10113 * config.in: Fix typo in __GNUC_MINOR__.
10114
10115 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
10116
b11af2dd
GM
10117 * s/freebsd.h (POSIX_SIGNALS): Define.
10118
8ff16b4e
GM
10119 * xterm.c (x_clear_mouse_face): Block/unblock input.
10120
844eb643
DL
101212000-09-24 Dave Love <fx@gnu.org>
10122
10123 * fns.c (base64_encode_1): Fix last change.
10124
b30ab1b3
GM
101252000-09-22 Gerd Moellmann <gerd@gnu.org>
10126
10127 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
10128
10129 * xdisp.c (try_window_reusing_current_matrix): More fixes
10130 for the case window has a header-line.
10131
c6cbe5f0
DL
101322000-09-22 Dave Love <fx@gnu.org>
10133
4c7c1f3f
DL
10134 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
10135 a doc string.
10136
10137 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
10138
c6cbe5f0
DL
10139 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
10140
550a625e
GM
101412000-09-21 Gerd Moellmann <gerd@gnu.org>
10142
4c7c1f3f 10143 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
10144 for GCC >= 2.5.
10145
52283633
SM
10146 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
10147 Declare NO_RETURN.
fca99116 10148
80d26f99
GM
10149 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
10150 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
10151 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
10152 warnings.
52283633 10153
80d26f99
GM
10154 * marker.c (byte_char_debug_check): Return void.
10155
623a0aae
GM
10156 * xfns.c (Fx_create_frame): Set default frame parameter value
10157 for tool-bar-lines to 1.
10158
10159 * dispnew.c (scrolling_window): Compare y-positions of rows
10160 equal at the start. Some simplification.
10161
10162 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
10163 reused rows' y-position in the case window has a header-line, and
10164 new window start is greater than old window start.
10165
42ac0ae5
GM
10166 * process.c (process_sent_to): New variable.
10167 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
10168 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
10169 Declare more parameters volatile.
10170
550a625e
GM
10171 * lread.c (Vrecursive_load_depth_limit): New variable.
10172 (Fload): Check recursive loads whose recursion depth exceeds
10173 Vrecursive_load_depth_limit.
10174 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
10175
8320414c
GM
101762000-09-20 Gerd Moellmann <gerd@gnu.org>
10177
f46c275e
GM
10178 * fileio.c (Fread_file_name): Doc fix.
10179
10180 * editfns.c (Fmessage_or_box): Doc fix.
10181
10182 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
10183
b7e11c5b 10184 * xfns.c (xbm_scan): Allow C-style comments.
52283633 10185
8320414c
GM
10186 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
10187 symbols are specified, add color translations to the cache.
52283633 10188 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
10189 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
10190 xpm_cache_color.
10191 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
10192 structures to xpm_init_color_cache.
10193
da1608d9
GM
101942000-09-19 Gerd Moellmann <gerd@gnu.org>
10195
52283633 10196 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 10197
6badfa25
AI
101982000-09-19 Andrew Innes <andrewi@gnu.org>
10199
10200 * makefile.nt (bootstrap-emacs): Don't change directory.
10201
3a5f42bb
KH
102022000-09-19 Kenichi Handa <handa@etl.go.jp>
10203
1b7649bd
KH
10204 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
10205
3a5f42bb
KH
10206 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
10207 If output buffer is too small, signal an appropriated error.
10208
9f83cf0b
DL
102092000-09-18 Dave Love <fx@gnu.org>
10210
52283633 10211 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
10212 (current_active_maps): Remove redundant get_local_map call.
10213
28c7826c
GM
102142000-09-18 Gerd Moellmann <gerd@gnu.org>
10215
5cefa566
GM
10216 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
10217 cursor for buffers whose cursor_type is nil.
52283633 10218
6fed3546
GM
10219 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
10220 a feature to implement that is already implemented.
10221 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
10222 warnings.
10223
10224 * xfns.c (x_clear_image_1): New function.
10225 (x_clear_image): Use it.
52283633 10226 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 10227
05b1f851
GM
10228 * dispnew.c (update_window): Move test for invisible lines
10229 at the top to update_window_line.
10230 (update_window_line): Handle invisible lines here.
10231
f4779de9
GM
10232 * xfns.c (clear_image_cache): Clear current matrices of all
10233 frames sharing an image cache. Block input while freeing
10234 images. Fix timestamp comparison.
10235 (x_clear_image): Also free the mask.
10236
28c7826c
GM
10237 * xfns.c (lookup_image): Block input while loading the image so
10238 that we won't get interrupted in a state where the image isn't yet
10239 set up completely.
10240 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
10241 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
10242 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 10243 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 10244
b7412313
GM
102452000-09-16 Gerd Moellmann <gerd@gnu.org>
10246
10247 * dispnew.c (update_window): Make sure to make desired rows
10248 current even if they are completely invisible at the top
10249 of a window.
10250
47e351a3
GM
102512000-09-15 Gerd Moellmann <gerd@gnu.org>
10252
7f8f1edc
GM
10253 * xfns.c (lookup_image): Build mask before applying an algorithm.
10254 Recognize algorithm `disabled'.
10255 (cross_disabled_images): New variable.
10256 (COLOR_INTENSITY): New macro.
10257 (x_detect_edges): Use COLOR_INTENSITY.
10258 (x_disable_image): New function.
10259 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
10260
10261 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
10262 disabled state, don't apply an image transformation algorithm if
10263 the user specified an image for the disabled state. Use
28c7826c 10264 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
10265 user hasn't specified an image.
10266
ebb8f116
GM
10267 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
10268 allocation functions with the XPM lib.
10269 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
10270 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
10271 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
10272 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 10273 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
10274 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
10275 functions, if possible, because these handle color allocation
10276 failure more gracefully.
10277 (Fimage_mask_p): New function.
10278
47e351a3
GM
10279 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
10280 (Qedge_detection, Qheuristic): New symbols.
10281 (syms_of_xfns): Initialize new symbols.
10282 (lookup_image): Handle `:mask X', `:algorithm emboss', and
10283 `algorithm (edge-detection ...)'.
10284 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
10285 (tiff_format, gif_format, gs_format): Add `:mask'.
10286 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
10287 (GIF_MASK, GS_MASK): New enumerators.
10288 (x_laplace_read_row, x_laplace_write_row): Functions removed.
10289 (emboss_matrix, laplace_matrix): New variables.
10290 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
10291 (x_edge_detection): New functions.
10292 (x_laplace): Rewritten in terms of x_detect_edges.
10293 (x_build_heuristic_mask): If image has a mask, free it.
10294
fe83b953
AI
102952000-09-14 Andrew Innes <andrewi@gnu.org>
10296
10297 * makefile.w32-in: Revert to Unix line endings.
10298
3021e816
AI
102992000-09-14 Andrew Innes <andrewi@gnu.org>
10300
10301 * makefile.w32-in: Standardize indentation somewhat.
10302 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
10303 cater for differences between shells.
10304
10305 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
10306
2a32b5ea
GM
103072000-09-14 Gerd Moellmann <gerd@gnu.org>
10308
10309 * xterm.c (x_produce_glyphs): If the distance from the current
10310 position to the next tab stop is less than a canonical character
10311 width, use the tab stop after that.
10312
b4331e96
DL
103132000-09-14 Dave Love <fx@gnu.org>
10314
10315 * buffer.c (alloc_buffer_text): Fix xmalloc call.
10316
ef9e4345
GM
103172000-09-14 Gerd Moellmann <gerd@gnu.org>
10318
085536c2
GM
10319 * xdisp.c (handle_fontified_prop): While running fontification
10320 functions, bind `fontification-functions' and
10321 `after-change-functions' to nil.
10322
ef9e4345
GM
10323 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
10324 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
10325
10326 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
10327
10328 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
10329 USE_MMAP_FOR_BUFFERS.
10330
10331 * insdel.c (make_gap): Use enlarge_buffer_text.
10332
10333 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
10334 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
10335 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
10336 from former r_alloc_* functions in ralloc.c.
52283633 10337 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
10338 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
10339 (mmap_init) [REL_ALLOC_MMAP]: New function.
10340 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
10341 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
10342 BUFFER_FREE.
10343
10344 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
10345 (enlarge_buffer_text): Add prototype.
10346
10347 * ralloc.c: Remove everything having to do with the use of mmap.
10348
f8608968
GM
103492000-09-13 Gerd Moellmann <gerd@gnu.org>
10350
2a494b2d
GM
10351 * sound.c (Fplay_sound): Doc fix.
10352
8c907a56
GM
10353 * keyboard.c: Avoid some more compiler warnings.
10354 (parse_tool_bar_item): Ignore cached key bindings.
10355
f8608968
GM
10356 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
10357 and allocation of Lisp data.
10358
6ab70e9a
GM
103592000-09-12 Gerd Moellmann <gerd@gnu.org>
10360
d12d0a9b
GM
10361 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
10362 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
10363 defaults first.
10364
6ab70e9a
GM
10365 * lread.c (Fload): Put code checking for recursive loads in #if 0.
10366
63c36c3c
KH
103672000-09-12 Miyashita Hisashi <himi@meadowy.org>
10368
10369 * ccl.c: Comment fixed.
10370 (MAX_MAP_SET_LEVEL): Increased to 30.
10371 (PUSH_MAPPING_STACK): Enclose with do-while block.
10372 (POP_MAPPING_STACK): Likewise.
10373 (stack_idx_of_map_multiple): New variable.
10374 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
10375 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 10376 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
10377 (ccl_driver) <CCL_MapSingle>: Likewise.
10378 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
10379 with the case where looking up process reaches to the end of
10380 map-set, and call CCL programs as the above change.
10381
7ee3bd7b
GM
103822000-09-11 Gerd Moellmann <gerd@gnu.org>
10383
8ec8a5ec
GM
10384 * xfns.c (png_load, jpeg_load): Declare some variables volatile
10385 that might be clobbered by longjmp.
10386 (check_x_display_info, x_decode_color, create_frame_xic)
10387 (Fx_display_backing_store, Fx_display_visual_class)
52283633 10388 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 10389
f74b0705
GM
10390 * lread.c (init_lread): Set Vloads_in_progress to nil.
10391 (Fload): Show list of recursively loaded files, when signaling an
10392 error.
10393
7ee3bd7b
GM
10394 * lread.c (Vloads_in_progress): New variable.
10395 (record_load_unwind): New function.
10396 (Fload): Check for recursive loads.
10397 (syms_of_lread): Initialize Vloads_in_progress.
10398 (read_integer, read1): Avoid some compiler warnings.
10399
10400 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
10401 compiler warnings.
10402
974e1e5b
MB
104032000-09-11 Miles Bader <miles@gnu.org>
10404
10405 * editfns.c (Fbuffer_string): Doc fix.
10406
9824c4e3
GM
104072000-09-10 Gerd Moellmann <gerd@gnu.org>
10408
10409 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
10410
6a72fdd1
KR
104112000-09-09 Ken Raeburn <raeburn@gnu.org>
10412
10413 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
10414 whether to include other header files.
10415
28e6fb66
GM
104162000-09-09 Gerd Moellmann <gerd@gnu.org>
10417
52283633 10418 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 10419 by Fmemq as a boolean.
28e6fb66 10420
7f8b6551
SM
104212000-09-08 Stefan Monnier <monnier@cs.yale.edu>
10422
10423 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
10424
a8710abf
GM
104252000-09-08 Gerd Moellmann <gerd@gnu.org>
10426
d1a02881
GM
10427 * ralloc.c (mmap_fd): Remove initializer which can make it
10428 read-only in a dumped Emacs.
10429 (mmap_fd_1): New variable.
10430 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
10431 restore it from there.
10432 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
10433 unconditionally so that mmap_fd can be initialized there.
10434 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
10435 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
10436 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
10437
c454aac1
GM
10438 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
10439
10440 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 10441 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 10442
fc653ef2
GM
10443 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
10444
3015eec0
GM
10445 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
10446 inheritance.
10447
bfe0ee88
GM
10448 * xdisp.c (try_window_id): When trying to locate cursor in
10449 unchanged rows at the top, handle the case that we can't find it.
10450
a8710abf
GM
10451 * xterm.c (x_draw_glyphs): Handle case START and END are out
10452 of bounds more carefully.
10453
6b7d4ae4
DL
104542000-09-08 Dave Love <fx@gnu.org>
10455
423193c5
DL
10456 * s/sol2.h (REL_ALLOC_MMAP): Define.
10457 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
10458
10459 * ralloc.c: Don't include string.h (redundant).
10460 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
10461 [!MAP_ANON]: Include fcntl.h.
10462 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
10463 (r_alloc, r_re_alloc, r_alloc_free)
10464 (mmap_enlarge, mmap_set_vars): Use it.
10465 (r_alloc_init_fd): New function.
10466 (__morecore) [SYSTEM_MALLOC]: Don't declare.
10467 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
10468 malloc type.
10469
10470 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
10471 Remove vm-limit.o.
10472
6b7d4ae4
DL
10473 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
10474 change to __NetBSD__.
10475
44d31981
KH
104762000-09-08 Kenichi Handa <handa@etl.go.jp>
10477
10478 * search.c (compile_pattern): Check the multibyteness of cached
10479 string and PATTERN.
10480
aad40737
MB
104812000-09-08 Miles Bader <miles@gnu.org>
10482
10483 * xfaces.c (default_face_vector): Function removed.
10484 (Finternal_merge_in_global_face): Restore old global/local
10485 attribute override order. Use inline loop instead of calling
10486 default_face_vector.
10487
91a211b5
GM
104882000-09-07 Gerd Moellmann <gerd@gnu.org>
10489
10490 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
10491 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
10492 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
10493 where necessary, in case POINTER_TYPE is `void'.
10494
03419440
EZ
104952000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
10496
10497 * frame.c (make_terminal_frame): Initialize frame foreground and
10498 background colors to unspecified, for the initial instance of an
10499 MSDOS frame.
10500
f46f845b
GM
105012000-09-07 Gerd Moellmann <gerd@gnu.org>
10502
24f76fbf
GM
10503 * ralloc.c (mmap_find): Fix overlap computation.
10504 (mmap_enlarge): Compute nbytes before trying to find an
10505 overlapping region.
10506
f46f845b
GM
10507 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
10508 instead of `!='.
10509
10510 * lread.c (syms_of_lread): Change value of regexp
10511 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
10512
10513 * xmenu.c (xdialog_show): When looking up the selection in
10514 menu_items, take `quote' boundaries into account; this corresponds
10515 to a nil ITEM in x-popup-dialog.
10516
3c014385
KH
105172000-09-07 Kenichi Handa <handa@etl.go.jp>
10518
fd6f711b
KH
10519 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
10520 not 0x81.
10521 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
10522
3c014385 10523 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
10524 encoding, not decoding. Fix the handling of latin-jisx0201.
10525 Check for the charset katakana-jisx0201 too.
3c014385 10526 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 10527 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 10528
0da3ecef
GM
105292000-09-07 Gerd Moellmann <gerd@gnu.org>
10530
ab0ee409
GM
10531 * xfaces.c (Vparam_value_alist): New variable.
10532 (syms_of_xfaces): Initialize it.
10533 (Finternal_set_lisp_face_attribute): Avoid more consing.
10534
10535 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
10536 specially.
10537 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
10538 (Qbackground_mode): New variable.
10539 (syms_of_frame_1): Initialize Qbackground_mode.
10540
10541 * lisp.h (Qdisplay): Declare extern.
1091dd67 10542
0da3ecef
GM
10543 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
10544 change face on all frames, and change the default for new frames.
10545
b14654b9
DL
105462000-09-07 Dave Love <fx@gnu.org>
10547
10548 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
10549
d24fd56f
KH
105502000-09-07 Kenichi Handa <handa@etl.go.jp>
10551
794f3670
KH
10552 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
10553
0fddd0dc
KH
10554 * charset.c: Include composite.h
10555 (lisp_string_width): New function.
10556 (Fstring_width): Call lisp_string_width instead of strwidth.
10557
10558 * Makefile.in (charset.o): Depends on composite.h.
10559
d24fd56f
KH
10560 * process.c (read_process_output): Before inserting the decoded
10561 text in the buffer, adjust the multibyteness.
10562
fa0b693c
GM
105632000-09-06 Gerd Moellmann <gerd@gnu.org>
10564
52283633 10565 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
10566 buffer's text buffer is null, map new memory.
10567
0a58f946
GM
10568 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
10569 POINTER_TYPE and size_t.
10570 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
10571 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
10572 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
10573 [REL_ALLOC_MMAP]: New macros.
10574 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
10575 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
10576 [REL_ALLOC_MMAP]: New functions.
10577
10578 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
10579 before and after unexec.
10580
10581 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
10582 text buffers if necessary.
10583
10584 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
10585 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
10586 in prototypes.
10587
fa0b693c
GM
10588 * config.in (HAVE_MMAP): Add #undef.
10589
877055f6
GM
105902000-09-05 Gerd Moellmann <gerd@gnu.org>
10591
08ba3862
GM
10592 * frame.c (Qdisplay_type): New variable.
10593 (syms_of_frame_1): Initialize it.
10594 (Fframe_parameter): New function that avoids consing.
10595 (syms_of_frame): Defsubr it.
10596
66ffe51c
GM
10597 * buffer.c (Fother_buffer): Consider buffers as invisible when
10598 they are displayed in a window on an invisible frame.
10599
877055f6
GM
10600 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
10601 get-largest-window always return nil.
10602
bb970e67
GM
106032000-09-04 Gerd Moellmann <gerd@gnu.org>
10604
10605 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
10606 variable; recognize Emacs 19 elc files.
10607
7a3d0e0e
MB
106082000-09-04 Miles Bader <miles@gnu.org>
10609
10610 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
10611 before initially popping up the menu, so the menu doesn't flash
52283633 10612 when the face settings are significantly different from the defaults.
7a3d0e0e 10613
14473664
SM
106142000-09-04 Stefan Monnier <monnier@cs.yale.edu>
10615
10616 * regex.c (WIDE_CHAR_SUPPORT): New macro.
10617 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
10618 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
10619 (BIT_UNIBYTE): Remove.
10620 (re_match_2_internal): Delete corresponding code and streamline the
10621 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
10622 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
10623 (re_wctype_t): New type.
10624 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
10625 (regex_compile): Use them and fix handling of overly long char classes.
10626
c1174479
AI
106272000-09-03 Andrew Innes <andrewi@gnu.org>
10628
f8803e97
AI
10629 * makefile.w32-in: Change to DOS line endings.
10630
c1174479
AI
10631 * s/ms-w32.h (ORDINARY_LINK): New define.
10632
10633 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
10634 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
10635
10636 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
10637 (distclean): Delete them here instead.
10638
44ef7cf6
AI
10639 * w32proc.c (compare_env): Convert to uppercase for comparison,
10640 not lowercase, to match how the native Windows shell works.
10641
49b3bd82
JR
106422000-09-03 Jason Rumney <jasonr@gnu.org>
10643
10644 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
10645 CVS changes the line-ends when checking in/out on DOS/Windows.
10646
10647 * makefile.nt (emacs): Do not change directory to run temacs, as
10648 the load-path is set relative to current directory.
10649
a3d35a39
MB
106502000-09-03 Miles Bader <miles@gnu.org>
10651
10652 * xterm.c (x_alloc_lighter_color_for_widget): New function.
10653
d276b0cf
GM
106542000-09-02 Gerd Moellmann <gerd@gnu.org>
10655
715e84c9
GM
10656 * xdisp.c (redisplay_mode_lines): New function.
10657 (display_mode_lines): Return number of mode lines displayed.
10658 (echo_area_display): Use redisplay_mode_lines to draw garbaged
10659 mode lines. Don't temporarily bind redisplay-dont-pause to t.
10660
8892f40b
GM
10661 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
10662 string.h and strings.h.
10663 (index) [HAVE_INDEX]: Add prototype.
10664
d276b0cf
GM
10665 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
10666 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
10667
10668 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
10669 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10670
38404229
GM
106712000-09-01 Gerd Moellmann <gerd@gnu.org>
10672
10673 * lread.c (read1): Accept `?' as symbol constituent, for
10674 compatiblity with XEmacs.
10675
c0f9ea08
SM
106762000-08-31 Stefan Monnier <monnier@cs.yale.edu>
10677
10678 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
10679 (struct re_pattern_buffer): Remove newline_anchor.
10680 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
10681 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
10682 (re_max_failures, fail_stack): Use size_t rather than unsigned.
10683 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
10684 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
10685 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
10686 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
10687 Get rid of references to newline_anchor.
10688 (regcomp): Allocate and precompute a fastmap.
10689
8c0f83fe
GM
106902000-08-31 Gerd Moellmann <gerd@gnu.org>
10691
10692 * lread.c (openp): GCPRO local variable `filename'.
10693
4bb91c68
SM
106942000-08-30 Stefan Monnier <monnier@cs.yale.edu>
10695
10696 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
10697
10698 * regex.c: Merge some changes from GNU libc. Add prototypes.
10699 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
10700 Use memcmp and memcpy instead of bcopy and bcmp.
10701 (init_syntax_once): Use ISALNUM.
10702 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
10703 (REG_UNSET_VALUE): Remove. Use NULL instead.
10704 (REG_UNSET, re_match_2_internal): Use NULL.
10705 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
10706 New macros.
10707 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
10708 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
10709 (regex_compile): In handle_interval, return an error rather than try to
10710 unfetch the interval if we can't find the closing brace.
10711 Obey the RE_NO_GNU_OPS syntax bit.
10712 (TOLOWER): New macro.
10713 (regcomp): Use it.
10714 (regexec): Allocate regs.start and regs.end as one block.
10715
5226a931
GM
107162000-08-30 Gerd Moellmann <gerd@gnu.org>
10717
868dd24b
GM
10718 * xdisp.c (echo_area_display): Check display_completed instead
10719 of calling detect_input_pending.
10720
10721 * dispnew.c (update_frame): Only set display_completed here; move
10722 the update_begin and update_end calls here from update_frame_1.
10723 (update_frame_1): Don't set display_completed here, don't call
10724 update_begin/update_end.
10725
5226a931
GM
10726 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
10727 instead of store_frame_param.
10728
2a8bd25f
GM
107292000-08-29 Gerd Moellmann <gerd@gnu.org>
10730
10731 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
10732 desired window matrix hasn't been displayed, use the current row
10733 instead. Make sure that only those frame rows are updated for
10734 which there exists a corresponding enabled desired row.
52283633 10735
ba3478d9
MB
107362000-08-29 Miles Bader <miles@gnu.org>
10737
10738 * xfaces.c (default_face_vector): New function.
10739 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
10740
87d0f685
GM
107412000-08-29 Gerd Moellmann <gerd@gnu.org>
10742
10743 * lread.c (openp): Prevent temporary string passed to
10744 Ffile_readable_p from being garbage collected.
10745
6fa86045
DL
107462000-08-28 Dave Love <fx@gnu.org>
10747
10748 * keymap.c (store_in_keymap): Add `static' to declaration.
10749
bb17930d
GM
107502000-08-28 Gerd Moellmann <gerd@gnu.org>
10751
10752 * emacs.c, callint.c, doc.c, editfns.c
10753 (toplevel) [HAVE_STRING_H]: Include string.h.
10754 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
10755 (index): Remove prototypes which might conflict with non-standard
10756 definitions of index/strchr.
10757
10758 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
10759 (rindex): Define only if !HAVE_RINDEX.
10760
10761 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
10762
10763 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
10764
87188200
MB
107652000-08-28 Miles Bader <miles@gnu.org>
10766
10767 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
10768 made inconsistent by a font-related attribute in FROM.
10769 (merge_face_inheritance): Add function comment.
10770
41a68aef
KH
107712000-08-28 Kenichi Handa <handa@etl.go.jp>
10772
10773 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
10774 the 4th arg (PREV_EVENT) Qt to suppress input method.
10775
f7c436c1
SM
107762000-08-27 Stefan Monnier <monnier@cs.yale.edu>
10777
0b32bf0e
SM
10778 * regex.c: Indent cpp directives and remove parens after `defined'.
10779 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
10780 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
10781 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
10782 (re_compile_pattern): Use size_t for length.
10783 (init_syntax_once): Move to a better place.
10784 * regex.h: Merge changes from GNU libc. Indent cpp directives.
10785 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
10786
f7c436c1
SM
10787 * syntax.c (back_comment): Detect cases where a comment-starter is
10788 actually inside another comment as in: /* a // b */ c // d \n.
10789 Make it clear that `comstart_pos' is unused for nested comments.
10790
10791 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
10792 (KEYMAPP): New macro.
10793 (Fkeymap_parent, Fset_keymap_parent): Use it.
10794 (fix_submap_inheritance): Mark it static.
10795 (define_as_prefix, describe_buffer_bindings, describe_command)
10796 (describe_translation, describe_map): Complete prototypes.
10797
10798 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
10799
10800 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
10801 to better match the key-lookup behavior.
10802
6288c62f
GM
108032000-08-27 Gerd Moellmann <gerd@gnu.org>
10804
10805 * xfaces.c (lface_fully_specified_p): Handle :inherit.
10806 (Finternal_set_lisp_face_attribute): Fix typo in error message.
10807
e931344e
EZ
108082000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
10809
10810 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
10811 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
10812 (xterm.o): Depend on coding.h
10813
d10dfeef
KH
108142000-08-26 Kenichi Handa <handa@etl.go.jp>
10815
10816 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
10817 the corresponding '#endif'.
10818
2d73e8d3
MB
108192000-08-26 Miles Bader <miles@gnu.org>
10820
10821 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
10822 * xfaces.c (QCinherit): New variable.
10823 (syms_of_xfaces): Initialize it.
10824 (LFACE_INHERIT): New macro.
10825 (Finternal_get_lisp_face_attribute)
52283633 10826 (merge_face_vector_with_property)
2d73e8d3
MB
10827 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
10828 (check_lface_attrs): Allow new types of face height. Check
10829 inherit attribute.
10830 (CYCLE_CHECK): New macro.
10831 (merge_face_inheritance): New function.
10832 (merge_face_vectors): Merge inherited faces too. Add F and
10833 CYCLE_CHECK arguments.
10834 (merge_face_vector_with_property, Finternal_merge_in_global_face)
10835 (lookup_named_face, lookup_derived_face, realize_named_face)
10836 (face_at_string_position, face_at_buffer_position): Supply
10837 new F and CYCLE_CHECK arguments to merge_face_vectors.
10838 (merge_face_heights): New function.
52283633 10839 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
10840 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
10841 handle relative face heights.
10842 (lface_same_font_attributes_p): Compare heights using EQ.
10843
6ce974d4
KH
108442000-08-26 Kenichi Handa <handa@etl.go.jp>
10845
10846 * charset.c (char_to_string): Check the character validity.
52283633 10847 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 10848
dc1e502d
SM
108492000-08-25 Stefan Monnier <monnier@cs.yale.edu>
10850
10851 * regex.c (PUSH_FAILURE_COUNT): New macro.
10852 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
10853 Handle popping of a register's or a counter's data.
10854 (POP_FAILURE_POINT): Use the new name.
10855 (re_match_2_internal): Push counter data on the stack for succeed_n,
10856 jump_n and set_number_at and remove misleading dead code in succeed_n.
10857
bd9d0f3f
GM
108582000-08-25 Gerd Moellmann <gerd@gnu.org>
10859
10860 * xdisp.c (redisplay_internal): If considering all windows on all
10861 frames, update the display for each frame as soon as possible,
10862 instead of first building all desired matrices for all frames, and
10863 then updating them all.
10864 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
10865
aa5b8e15
GM
108662000-08-24 Gerd Moellmann <gerd@gnu.org>
10867
17494071
GM
10868 * bytecode.c (mark_byte_stack): Add a comment.
10869
52283633
SM
10870 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
10871 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
10872 a graphical frame.
10873
c543db81
KH
108742000-08-24 Kenichi Handa <handa@etl.go.jp>
10875
d246d5f5
KH
10876 * minibuf.c (do_completion): Always use compare-string, not
10877 string-equal because the latter doesn't pay attention to
10878 multibyteness of strings.
10879
c543db81
KH
10880 * process.c (create_process): Don't setup raw-text coding here.
10881 (Fopen_network_stream): Don't set coding->src_multibyte and
10882 coding->dst_multibyte here.
10883 (read_process_output): For process filter, return unibyte string
10884 if default-enable-multibyte-characters is nil.
10885 (send_process): If OBJECT is multibyte text, be sure to encoded it
10886 by the specified coding system for the process. Otherwise, setup
10887 raw-text coding.
52283633 10888 (init_process): Don't initialize default-process-coding-system here.
c543db81 10889
9b47cfe0
EZ
108902000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
10891
10892 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
10893 <scroll-down-aggressively>: Likewise.
10894
f5a36960
KH
108952000-08-23 Kenichi Handa <handa@etl.go.jp>
10896
10897 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
10898 zero. Set coding->produced_char correctly.
10899
69a7ffa7
AI
109002000-08-22 Andrew Innes <andrewi@gnu.org>
10901
10902 * makefile.w32-in: New file.
10903
10904 * unexw32.c (unexec): Ignore old_name, and use the actual location
10905 of the current executable instead. Base new_name on this.
10906
10907 * w32proc.c (create_child): Remove reference to security
10908 descriptor, which isn't needed and doesn't compile with mingw32.
10909
10910 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10911 up dllimport attributes.
10912 (x_update_window_end): Update prototype.
10913
10914 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
10915 extern, which screws up dllimport attributes.
10916
10917 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10918 up dllimport attributes.
10919
10920 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
10921 screws up dllimport attributes.
10922
10923 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10924 up dllimport attributes.
10925 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
10926 screws up dllimport attributes.
10927
10928 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10929 up dllimport attributes.
10930
10931 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
10932 screws up dllimport attributes.
10933
10934 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
10935 screws up dllimport attributes.
10936
10937 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10938 up dllimport attributes.
10939
10940 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
10941 unnecessary extern, which screws up dllimport attributes.
10942 (main): Ditto.
10943
10944 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10945 up dllimport attributes.
10946
10947 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
10948 unnecessary extern, which screws up dllimport attributes.
10949
10950 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
10951 screws up dllimport attributes.
10952
10953 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10954 up dllimport attributes.
10955
10956 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
10957
52283633
SM
10958 * w32bdf.c (search_file_line):
10959 (set_bdf_font_info):
10960 (seek_char):
10961 (w32_get_bdf_glyph):
69a7ffa7
AI
10962 (w32_BDF_to_x_font): Fix compile warnings.
10963
52283633 10964 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
10965
10966 * w32select.c: Include keyboard.h before frame.h.
10967
10968 * w32fns.c (max): Define macro.
10969 (JOHAB_CHARSET): Define if not known.
10970 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
10971 (Fx_show_tip): Synch with X version.
10972
10973 * w32xfns.c: Include keyboard.h before frame.h.
10974
10975 * w32fns.c: Include keyboard.h before frame.h.
10976
10977 * w32term.c: Include keyboard.h before frame.h.
10978
10979 * fontset.c: Include keyboard.h before frame.h.
10980
10981 * w32inevt.c: Include keyboard.h before frame.h.
10982 (MOUSE_MOVED): Define if not known.
10983
10984 * minibuf.c: Include keyboard.h before frame.h.
10985
10986 * keyboard.c: Include keyboard.h before frame.h.
10987
10988 * indent.c: Include keyboard.h before frame.h.
10989
10990 * dispnew.c: Include keyboard.h before frame.h.
10991
10992 * buffer.c: Include keyboard.h before frame.h.
10993
10994 * alloc.c: Include keyboard.h before frame.h.
10995
10996 * print.c: Include keyboard.h before frame.h.
10997
10998 * process.c: Include keyboard.h before frame.h.
10999
11000 * scroll.c: Include keyboard.h before frame.h.
11001
11002 * sysdep.c: Include keyboard.h before frame.h.
11003
11004 * term.c: Include keyboard.h before frame.h.
11005
11006 * window.c: Include keyboard.h before frame.h.
11007
11008 * xdisp.c: Include keyboard.h before frame.h.
11009 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
11010
11011 * frame.c: Include keyboard.h before frame.h.
11012
11013 * w32heap.h: Undefine min, max.
11014
11015 * w32gui.h: Undefine min, max.
11016
11017 * unexw32.c: Change PUCHAR to PCHAR.
11018 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
11019 (relocate_offset):
11020 (get_section_info):
69a7ffa7
AI
11021 (copy_executable_and_dump_data): Remove unnecessary static defs.
11022 (copy_executable_and_dump_data): Fix compile warnings.
11023
11024 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
11025
11026 * w32console.c (min): Define macro.
11027 (clear_frame, write_glyphs): Fix compile warning.
11028
52283633 11029 * w32proc.c (compare_env):
69a7ffa7
AI
11030 (find_child_console): Fix compile warning.
11031
11032 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
11033 sys_errlist instead of _sys_errlist.
11034 (get_emacs_configuration_options): New function.
11035
11036 * s/ms-w32.h (sys_nerr): Provide default definition.
11037 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
11038 name with _ prepended.
11039 (NSIG): Define if not known.
11040 (get_emacs_configuration): Provide extern declaration.
11041 (get_emacs_configuration_options): Provide extern declaration.
11042 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
11043
11044 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 11045 (map_w32_filename):
69a7ffa7
AI
11046 (read_unc_volume): Fix compile warning.
11047
11048 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
11049 definitions from being used.
11050
11051 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
11052
52283633 11053 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
11054 (open_unc_volume): Make arg const.
11055
11056 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
11057 (read_input_waiting): Remove excess parameter.
11058
11059 * w32.c (init_environment): Call _access.
11060 (check_windows_init_file): Call _close.
11061 (init_user_info): Call _putenv.
11062 (init_environment): Call _putenv and _strdup.
11063 (init_ntproc): Reset volume info cache on startup.
11064
11065 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
11066 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
11067 cannot override the CRT malloc.
11068
11069 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
11070 (LINK_FLAGS): Append to original value of LINK_FLAGS.
11071
11072 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
11073 unless we are linking with a static CRT.
11074 (RVA_TO_PTR): Cast result to unsigned char*.
11075
11076 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
11077 (add_volume_info): Use xstrdup.
11078
25060080
SM
110792000-08-22 Stefan Monnier <monnier@cs.yale.edu>
11080
11081 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
11082 (do_completion, Fminibuffer_complete_word): Use it.
11083 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
11084 var so it can take non-boolean values.
11085
6917e6bb
GM
110862000-08-21 Gerd Moellmann <gerd@gnu.org>
11087
acb7cc89 11088 * editfns.c (find_field): Formatting changes.
52283633 11089 (toplevel): Some old-style function forward declarations
acb7cc89
GM
11090 changed to prototypes, some new protypes added, some functions
11091 made static.
11092
11093 * lisp.h (set_time_zone_rule): Add prototype.
11094 (use_dialog_box): External declaration.
11095
0bbfdc25
GM
11096 * keyboard.c (gen_help_event): Add parameter SIZE.
11097 (kbd_buffer_events_waiting): Slightly rewritten.
11098 (clear_event): New function.
11099 (kbd_buffer_get_event): Use it, and clear the input_events of
11100 HELP_EVENTs.
11101 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
11102 don't fill the newly created array with nils.
11103 (toplevel): Convert some old-style function forward declarations
11104 to prototypes.
11105
11106 * keyboard.h (gen_help_event): Change prototype.
11107
11108 * xterm.c (XTread_socket): Change calls to gen_help_event.
11109
11110 * w32term.c (w32_read_socket): Change calls to gen_help_event.
11111
6917e6bb
GM
11112 * eval.c (Fmacroexpand): Doc fix.
11113
e5cd3d11
JR
111142000-08-20 Jason Rumney <jasonr@gnu.org>
11115
11116 * w32term.h (x_display_info_for_display): Remove as this function
11117 does not exist on W32.
11118
11119 * w32term.c (help_echo_window): New variable.
11120 (syms_of_w32term): staticpro it.
11121 (note_mode_line_highlight): Set it.
11122 (XTextExtents16): Removed as there is no equivalent on W32.
11123 (x_compute_glyph_string_overhangs): Incomplete body removed, as
11124 the X way of doing this will not work for W32.
11125 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
11126 (x_draw_image_foreground): Avoid drawing outside of the clip area
11127 when image doesn't have a mask.
11128 (note_mouse_highlight): Process overlays in the right order of
11129 priority. Set help_echo_window.
11130 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
11131 because that's more visible for large images.
11132
11133 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
11134 name to single_keymap_panes.
11135 (w32_menu_show): Set wv->title when dealing with titles.
11136 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
11137
6e69ab8c
MB
111382000-08-21 Miles Bader <miles@gnu.org>
11139
11140 * minibuf.c (do_completion): Try again if we rewrite the input
11141 string, but no completion was done, so that any completion message
11142 will be correct.
11143
511bd4eb
GM
111442000-08-20 Gerd Moellmann <gerd@gnu.org>
11145
11146 * xfaces.c (lface_equal_p): Compare strings differently.
11147 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
11148 (realize_tty_face): Use them.
11149 (syms_of_xfaces): Initialize new variables.
11150 (map_tty_color): New function, extracted from realize_tty_face.
11151 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
11152 foreground or background color, store the new color name in the
11153 realized face; previous code trying to do this had no effect.
11154 (realize_tty_face): Use map_tty_color.
11155 (Fclear_face_cache): Set face_change_count and ensure thorough
11156 redisplay.
11157
1433385f
GM
111582000-08-19 Gerd Moellmann <gerd@gnu.org>
11159
511bd4eb
GM
11160 * undo.c (record_first_change, record_marker_adjustment): Don't
11161 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 11162
419ac0a2
KH
111632000-08-18 Kenichi Handa <handa@etl.go.jp>
11164
11165 * coding.c (decode_coding_string): Set members consumed,
11166 consumed_char, produced, produced_char of *coding correctly. If
11167 decode_coding doesn't consume any byte, don't try anymore.
11168 (encode_coding_string): Likewise.
11169
7eb9e30d
GM
111702000-08-18 Gerd Moellmann <gerd@gnu.org>
11171
511bd4eb
GM
11172 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
11173 conditional have void type, for Standard C compilers.
7eb9e30d
GM
11174
11175 * xdisp.c (redisplay_internal): Compare windows for equality with
11176 EQ, instead of applying XWINDOW to something that might not
11177 be a window.
52283633 11178
dd34a735
KH
111792000-08-18 Kenichi Handa <handa@etl.go.jp>
11180
11181 * fontset.c (Finternal_char_font): Search only the selected frame
11182 for a window of the current buffer.
11183
385ff9e3
GM
111842000-08-18 Gerd Moellmann <gerd@gnu.org>
11185
511bd4eb 11186 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
11187 Lisp_Objects.
11188
385ff9e3
GM
11189 * keyboard.c (kbd_buffer_get_event): Handle the case that the
11190 second half of a HELP_EVENT is found at the start of kbd_buffer.
11191
d6abb4c7
MB
111922000-08-18 Miles Bader <miles@gnu.org>
11193
4618074a
MB
11194 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
11195
d6abb4c7
MB
11196 * editfns.c (save_restriction_save): Rewrite to use markers.
11197 (save_restriction_restore): Rewrite to understand new form of data
11198 saved by save_restriction_save.
11199 (Fsave_restriction): Remove cautionary note in doc-string.
11200
a7b28523
GM
112012000-08-17 Gerd Moellmann <gerd@gnu.org>
11202
11203 * fileio.c (build_annotations): Add a comment explaining the
11204 return value of format-annotate-function. Replace a spurious call
11205 to Flength with a CONSP test. Call format-annotate-function with
11206 a fifth arg specifying how many times the function is been called
11207 in a row, to let it choose temporary buffers appropriately.
11208
03c9ed77
DL
112092000-08-17 Dave Love <fx@gnu.org>
11210
11211 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
11212 declare make_temp_name twice.
11213
52283633 11214 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
11215 (unreadpure): Give it an arg.
11216
11217 * unexalpha.c: Prototype fatal_unexec, mark_x,
11218 update_dynamic_symbols. Declare unexec as void.
11219
11220 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
11221 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
11222
11223 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 11224 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
11225
11226 * alloca.c: Use #error.
11227 [POINTER_TYPE]: Use it.
11228
11229 * eval.c (Fdefvar): Doc fix.
11230
11231 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
11232 INITIALIZE_INTERVAL.
11233
11234 * buffer.h: Avoid DECLARE_INTERVALS.
11235
11236 * config.in: Add size_t.
11237
aae41d97
EZ
112382000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
11239
11240 * w16select.c (set_clipboard_data): If there's not enough memory
11241 to put text into clipboard, return 1, as Fw16_set_clipboard_data
11242 expects. In case of other failures, return 3.
11243 (system_error_msg): New error message.
11244 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
11245 system_error_msg.
11246
65aa5e85
GM
112472000-08-16 Gerd Moellmann <gerd@gnu.org>
11248
11249 * term.c (write_glyphs): Also turn off inverse video after turning
11250 off other appearances in case TS_exit_attribute_mode is not equal
11251 to TS_end_standout_mode.
11252 (insert_glyphs): Turn inverse video on/off for each run of glyphs
11253 with the same face.
11254 (turn_off_face): Reset standout_mode only if
11255 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
11256 is equal to TS_end_standout_mode.
11257
ece23901
KH
112582000-08-16 Kenichi Handa <handa@etl.go.jp>
11259
9d7bcb2e
KH
11260 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
11261 sequence at the end of the source block.
11262
ece23901
KH
11263 * ccl.c (Fccl_program_p): Docstring modified.
11264 (Fccl_execute): Likewise.
11265 (Fccl_execute_on_string): Likewise.
11266
5e30eaa2
EZ
112672000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
11268
11269 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
11270
290602fd
KH
112712000-08-16 Kenichi Handa <handa@etl.go.jp>
11272
11273 The following changes are mainly to fix bugs of
11274 encode/decode-coding-string failing if encoding/decoding return
11275 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
11276 variable conversion_buffer.
11277
11278 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
11279 decrement dst_end to avoid buffer overflow in the later call of
11280 string_as_multibyte
11281
11282 * coding.h (conversion_buffer_size, conversion_buffer)
11283 (get_conversion_buffer): Extern deleted.
11284
11285 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
11286 (conversion_buffer, conversion_buffer_size): Variables deleted.
11287 (get_conversion_buffer): Function deleted.
11288 (struct conversion_buffer): New structure.
11289 (MAX_ALLOCA): New macro.
11290 (allocate_conversion_buffer): New macro.
11291 (extend_conversion_buffer, free_conversion_buffer): New functions.
11292 (ccl_coding_driver): Set coding->result.
11293 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
11294 this is the last block of source.
11295 (encode_coding): Likewise. Handle the source block as the last
11296 one only when the whole source text is consumed.
11297 (decode_coding_string): Handle the case that the output buffer is
11298 too small to decode the whole source text. Use
11299 allocate_conversion_buffer, extend_conversion_buffer and
11300 free_conversion_buffer, not get_conversion_buffer.
11301 (encode_coding_string): Likewise.
11302 (init_coding): Function deleted.
52283633 11303 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
11304
11305 * emacs.c (main): Don't call init_coding.
11306
52283633 11307 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
11308
11309 * term.c (write_glyphs): Use a locally declared conversion_buffer.
11310 (insert_glyphs): Likewise.
11311
11312 * w32console.c (write_glyphs): Use a locally declared
11313 conversion_buffer.
11314
b9f80d41
EZ
113152000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
11316
11317 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
11318 member of display_info is NULL.
11319
32dc52f7
GM
113202000-08-15 Gerd Moellmann <gerd@gnu.org>
11321
52283633 11322 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 11323
32dc52f7 11324 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 11325 appearances with capability `me'.
32dc52f7
GM
11326 (write_glyphs): Switch on inverse video before each face change.
11327
4eb22d33
DL
113282000-08-14 Dave Love <fx@gnu.org>
11329
11330 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
11331 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
11332 (lisp_free): Declare and make static.
11333
11334 * window.c: Fix embedded comment.
11335 (syms_of_window): Fix doc string.
11336
90cbf47e
GM
113372000-08-14 Gerd Moellmann <gerd@gnu.org>
11338
52283633 11339 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
11340 make sure to print `C-' before `M-', like in the manual.
11341
440fc135
GM
113422000-08-11 Gerd Moellmann <gerd@gnu.org>
11343
11344 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
11345 since they aren't relocated anymore.
52283633 11346 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
11347
11348 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 11349 partially visible line which is smaller than the window's height.
440fc135 11350
6e264fad
KH
113512000-08-11 Kenichi Handa <handa@etl.go.jp>
11352
11353 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 11354 the multibyte form of eight-bit-control characters.
6e264fad
KH
11355 (Fccl_execute_on_string): Initialize ccl->multibyte.
11356
11357 * ccl.h (struct ccl_program): New member multibyte.
11358
11359 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
11360
c371f69a
KH
113612000-08-11 Kenichi Handa <handa@etl.go.jp>
11362
11363 * regex.c (regex_compile) <normal_char>: Pay attention to
11364 multibyteness.
11365 (analyse_first) <exactn>: Setup fastmap correctly for
11366 eight-bit-control characters.
11367
113682000-08-11 Kenichi Handa <handa@etl.go.jp>
11369
52283633 11370 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
11371
11372 * keyboard.c (make_lispy_event): Handle the new event type
11373 multibyte_char_keystroke.
11374
11375 * xterm.c: Include coding.h.
11376 (XTread_socket): Work around a bug of XmbLookupString. If the
11377 input is from XIM, decode it according to the current locale. In
11378 that case, generate multibyte_char_keystroke events.
11379
b8ddbe71
KH
113802000-08-11 Kenichi Handa <handa@etl.go.jp>
11381
11382 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
11383 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
11384
47589c8c
GM
113852000-08-10 Gerd Moellmann <gerd@gnu.org>
11386
11387 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
11388 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
11389 (move_it_in_display_line_to): Record iterator's ascent and descent
11390 before producing glyphs, and restore them when we know the glyph
11391 doesn't fit on the line.
11392 (move_it_to): Restructured so that it's easier to debug. If
11393 moving to a vpos, and not moving to an x or character position,
11394 stop as soon as the specified vpos is reached; don't move further
11395 into that line because that might change the computed line height.
11396 (try_cursor_movement): New function, extracted from the cursor
11397 movement branch of redisplay_window. If ending on a partially
11398 visible line, don't try to scroll if the cursor line is taller
11399 than the window.
11400 (redisplay_window): Use try_cursor_movement.
11401
11402 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
11403 because that function doesn't cope with variable-height lines.
11404
11405 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
11406 box cursor because that's better visible for large images.
52283633 11407
c51bacd6
MB
114082000-08-10 Miles Bader <miles@gnu.org>
11409
11410 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
11411
bea56df7
GM
114122000-08-10 Gerd Moellmann <gerd@gnu.org>
11413
11414 * xdisp.c (Vmessages_buffer_name): New variable.
11415 (message_dolog): Use it.
11416 (syms_of_xdisp): Initialize it.
11417
99cd7364
EZ
114182000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
11419
52283633 11420 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
11421 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
11422 redundant now that keyboard.h is included.
11423
7d093d56
EZ
114242000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
11425
11426 * keyboard.c (kbd_buffer_events_waiting): New function.
11427
11428 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
11429
11430 * msdos.c: Include keyboard.h.
11431 (XMenuActivate): Empty no_event events from the event buffer. If
11432 no events are left after that, call clear_input_pending.
11433 (mouse_clear_clicks): New function, code moved from mouse_init.
11434 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
11435 mouse driver to ``forget'' any past clicks.
11436
11437 * Makefile.in (msdos.o): Depend on keyboard.h.
11438
41e757a6
GM
114392000-08-09 Gerd Moellmann <gerd@gnu.org>
11440
8e7bd231
GM
11441 * lisp.h (input_pending): External declaration.
11442
11443 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 11444
8e7bd231
GM
11445 * xdisp.c (echo_area_display): Display thoroughly if input is
11446 pending. Bind redisplay-dont-pause to t during the redisplay.
11447 in case input is pending.
11448
11449 * dispnew.c (Qredisplay_dont_pause): New variable.
11450 (syms_of_display): Initialize and staticpro it.
11451 (update_frame_1): Don't interrupt the display for pending input if
11452 redisplay_dont_pause is set.
52283633 11453
43028b7e
GM
11454 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
11455
41e757a6
GM
11456 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11457
2f2174fa
KH
114582000-08-09 Miles Bader <miles@lsi.nec.co.jp>
11459
11460 * callproc.c (Fcall_process): Terminate the unwind-protect around
11461 the post-read-conversion of coding system.
11462
0a6fd67e
MB
11463 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
11464 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
11465 * buffer.h (overlays_at): Update prototype.
11466 * xdisp.c (next_overlay_change): Update call to overlays_at.
11467 * xfaces.c (face_at_buffer_position): Likewise.
11468 * textprop.c (Fget_char_property): Likewise.
11469 * xterm.c (note_mouse_highlight): Likewise.
11470
0c80756e
MB
11471 * minibuf.c (do_completion): Don't consider a simple change of
11472 case as `completion'.
11473
975f250a
KR
114742000-08-08 Ken Raeburn <raeburn@gnu.org>
11475
52283633 11476 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
11477 * undo.c (record_delete): Make sure last_point_position_buffer is
11478 a buffer before comparing pointers.
11479
11480 * coding.h (decode_coding_string): Declare.
11481
11482 * intervals.h (Fprevious_single_char_property_change): Declare.
11483
11484 * textprop.c (Fprevious_single_char_property_change): Don't do
11485 arithmetic directly on lisp objects.
11486
52283633 11487 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
11488
11489 * keyboard.h (menu_item_eval_property): Declare.
11490
11491 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
11492 reuse as buffer name, instead of recreating (and discarding) every
11493 time a message is logged.
11494 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
11495 (current_message_1, truncate_message_1, set_message_1)
11496 (display_echo_area_1, resize_mini_window_1): Signatures changed.
11497 (current_message, truncate_echo_area, display_echo_area)
11498 (resize_echo_area_axactly): Changed calls.
b347b3fd 11499
975f250a 11500 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 11501 Lisp object.
975f250a 11502 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 11503 must be an integer, not a Lisp object.
975f250a 11504
46dc9912
KH
115052000-08-08 Kenichi Handa <handa@etl.go.jp>
11506
11507 * charset.c (Fchar_width): Doc fix.
11508
9f6d1a6c
GM
115092000-08-08 Gerd Moellmann <gerd@gnu.org>
11510
11511 * charset.c (Fstring_width): Doc fix.
11512
ff3d9573
GM
115132000-08-07 Gerd Moellmann <gerd@gnu.org>
11514
41e757a6 11515 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
11516 line, clear ascent and descent members of the iterator structure;
11517 the height of the continued line does not affect the height of the
11518 continuation line.
11519 (make_cursor_line_fully_visible): Do nothing if cursor is on a
11520 line taller than the window.
11521 (redisplay_window) <forced window start>: Handle case that the
11522 middle of the window is not found in any row.
11523 (dump_glyph_row): Show more information.
11524 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
11525 first text line in a glyph matrix.
11526
11527 * xterm.c (x_draw_image_foreground): Avoid drawing outside
11528 of the clip area when image doesn't have a mask.
11529
70fc58b3
GM
11530 * fns.c (sweep_weak_table): Fix survival conditions for
11531 key-or-value and key-and-value weakness.
11532
11533 * .gdbinit (xhashtable): New command.
11534
ac0e96ee
GM
11535 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
11536 tables out of the list of all weak hash tables.
11537
ff3d9573
GM
11538 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
11539 a new buffer is created, make sure echo_area_buffer[] references
11540 the new buffer.
11541
e0d8827b
EZ
115422000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
11543
11544 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
11545 the doc string.
11546
c6f35378
KH
115472000-08-07 Kenichi Handa <handa@etl.go.jp>
11548
11549 * syntax.c (skip_chars): Fix previous change. Make the handling
11550 of unibyte string consistent with that of regex search.
11551
1fd4c450
GM
115522000-08-05 Gerd Moellmann <gerd@gnu.org>
11553
e49aa397
GM
11554 * xmenu.c (popup_get_selection): Use xfree instead of free.
11555
11556 * fileio.c (Finsert_file_contents): Use xfree instead of free.
11557
11558 * editfns.c (Ftranspose_regions): Use xfree instead of free.
11559
11560 * callproc.c (child_setup): Use xfree instead of free.
11561
11562 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
11563 instead of malloc.
11564 (run_mac_command, closedir): Use `xfree' instead of `free'.
11565
11566 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
11567
11568 * eval.c (error): Use xfree instead of free.
11569
1fd4c450
GM
11570 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
11571
11572 * fns.c: Replace `illegal' with `invalid'.
e49aa397 11573 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 11574
82d497fc
KH
115752000-08-05 Kenichi Handa <handa@etl.go.jp>
11576
11577 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
11578 conversion.
11579
59f953a2
NF
115802000-08-04 Noah Friedman <friedman@splode.com>
11581
11582 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
11583 docstring.
11584
688351f2
GM
115852000-08-04 Gerd Moellmann <gerd@gnu.org>
11586
11587 * syntax.c (skip_chars): Fix typo in error message.
11588
2dad51cc
AS
115892000-08-04 Andreas Schwab <schwab@suse.de>
11590
11591 * m/ia64.h: Moved from s/ia64.h.
11592
99bb2c60
KH
115932000-08-04 Kenichi Handa <handa@etl.go.jp>
11594
082a1df2
KH
11595 * process.c (read_process_output): Big simplification. Handle
11596 composition and post-read-conversion of coding system correctly.
11597 (send_process): Handle composition correctly.
11598
11599 * callproc.c (Fcall_process): Handle post-read-conversion of
11600 coding system if any.
11601
99bb2c60
KH
11602 * coding.c (decode_coding_iso2022): More strict check for handling
11603 single shifting.
082a1df2
KH
11604 (coding_restore_composition): Pay attention to the case that
11605 cmp_data is not set properly (because of invalid code in the
11606 source text).
11607 (run_pre_post_conversion_on_str): Include text properties in the
11608 resulting string.
11609 (decode_coding_string): Set members of coding correctly.
99bb2c60 11610
f4988be7
GM
116112000-08-03 Gerd Moellmann <gerd@gnu.org>
11612
11613 * s/ia64.h: New file.
11614
11615 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
11616 Use NULL instead of 0 at the end of variable argument list of
11617 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
11618 sizeof (int) < sizeof (void *).
11619
11620 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
11621 of variable argument lists of XtVaGetValues and XtVaSetValues.
11622
11623 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
11624 variable argument lists of XtVaGetValues and XtVaSetValues.
11625
ead53494
GM
116262000-08-02 Gerd Moellmann <gerd@gnu.org>
11627
11628 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
11629 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
11630
11631 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
11632 prototype.
11633
11634 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
11635 in call to Fsingle_key_description.
11636
11637 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
11638 Callers changed.
11639
116402000-08-02 Colin Walters <walters@cis.ohio-state.edu>
11641
11642 * window.c (display_buffer_reuse_frames): New variable.
11643 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
11644 frames displaying BUFFER.
52283633 11645 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 11646
10b0f752
MB
116472000-08-01 Miles Bader <miles@gnu.org>
11648
11649 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
11650 when to constrain NEW_POS (they were pretty screwed up before).
11651
16425c4a
EZ
116522000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
11653
11654 * msdos.c (run_msdos_command): Save and restore the master
11655 environment, for the case that child_setup signals an error.
11656 When mirroring slashes in DOS shell commands, don't fail when
11657 argv[2] has embedded blanks.
da288c14
EZ
11658 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
11659 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
11660 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
11661
11662 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
11663 using alloca; free it after run_msdos_command returns.
11664
27f73852
DL
116652000-07-27 Dave Love <fx@gnu.org>
11666
52283633
SM
11667 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
11668 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
11669
11670 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
11671
c0261b5e
EZ
116722000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
11673
11674 * editfns.c (lisp_time_argument): Fix last change.
11675
b548072f
GM
116762000-07-27 Gerd Moellmann <gerd@gnu.org>
11677
3ab82477
GM
11678 * fns.c (Fdelete): Make it work on vectors and strings in addition
11679 to lists.
11680
b548072f
GM
11681 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
11682 (syms_of_fns): Initialize new variables.
52283633 11683 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
11684 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
11685 weakness, with t meaning the same as `key-and-value'.
11686
91ae8751
KH
116872000-07-27 Kenichi Handa <handa@etl.go.jp>
11688
11689 * coding.h (struct coding_system): Member safe_charset deleted.
11690
11691 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
11692 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
11693 New variables.
91ae8751
KH
11694 (coding_safe_chars): New function.
11695 (CODING_SAFE_CHAR_P): New macro.
11696 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 11697 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
11698 (detect_coding_iso2022): New local variable safe_chars.
11699 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
11700 safe_charsets member of the coding system.
11701 (decode_coding_iso2022): New local variable safe_chars.
11702 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
11703 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
11704 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
11705 (ENCODE_UNSAFE_CHARACTER): New macro.
11706 (encode_coding_iso2022): New local variable safe_chars. Check
11707 unsafe chars.
11708 (setup_coding_system): Delete the code to initialize
11709 coding->safe_charses
11710 (intersection, find_safe_codings): New functions.
11711 (Ffind_coding_systems_region_internal): New function.
11712 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
11713 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
11714 variable and initialize it.
11715
11716 * fns.c (char_table_ref_and_index): New function.
11717
11718 * lisp.h (char_table_ref_and_index): Add prototype.
11719
34a7a267
SS
117202000-07-26 Sam Steingold <sds@gnu.org>
11721
11722 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 11723 (Ffloat_time): New built-in Lisp function.
34a7a267 11724
a95cb10a
GM
117252000-07-26 Gerd Moellmann <gerd@gnu.org>
11726
3353ef5a
GM
11727 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
11728 for the character code.
11729
11730 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
11731 GNU/Linux.
11732
a95cb10a
GM
11733 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
11734 if called for a popup menu.
11735 (xmenu_show): Store help string in widget values.
11736
b4a12321
DL
117372000-07-26 Dave Love <fx@gnu.org>
11738
11739 * syswait.h: Move some definitions.
11740 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
11741 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
11742 perspicuous definitions.
11743 (WTERMSIG): Fix bit pattern used.
11744
13f5ad37
KH
117452000-07-26 Kenichi Handa <handa@etl.go.jp>
11746
11747 * print.c (print_object): If vector printing is truncated, print
11748 "..." to indicate it as well as the case of list printing.
11749
070fe99c
GM
117502000-07-25 Gerd Moellmann <gerd@gnu.org>
11751
969065c3
GM
11752 * xdisp.c (next_element_from_display_vector): Improve comments.
11753
11754 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11755 for the character code, and the rest for the face id as in 20.x.
11756 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
11757
11758 * window.c (window_display_table): Cleaned up.
11759
070fe99c
GM
11760 * syntax.c (Fforward_word): Add last arg nil in call of
11761 Fconstrain_to_field.
11762
bad77ef7
EZ
117632000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
11764
969065c3 11765 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
11766 identical but for the letter-case, don't call
11767 barf_or_query_if_file_exists.
bad77ef7 11768
c28da489
MB
117692000-07-25 Miles Bader <miles@gnu.org>
11770
11771 * editfns.c (find_field): Honor special `boundary' fields.
11772 (Qboundary): New variables.
11773 (syms_of_editfns): Initialize Qboundary.
11774 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
11775 Use scan_buffer instead of find_before_next_newline, because it
11776 allows us to detect the boundary case where there's a newline at
11777 the search limit.
11778 * lisp.h (Fconstrain_to_field): Update external declaration.
11779
e3c31fd5
GM
117802000-07-24 Gerd Moellmann <gerd@gnu.org>
11781
11782 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
11783 if that is nil.
c28da489 11784
c66c29a2
DL
117852000-07-24 Dave Love <fx@gnu.org>
11786
11787 * s/sunos4-0.h, s/sol2.h:
11788 (LIBS_TERMCAP): Move from m/sparc.h.
11789
11790 * m/sparc.h (TERMINFO): Moved to system files (probably only
11791 relevant for sunos4 judging by its vintage).
11792 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
11793 __arch64__.
11794
fbe0a958
EZ
117952000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
11796
11797 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
11798 name to single_keymap_panes.
11799
7d88e5c9
AS
118002000-07-24 Andreas Schwab <schwab@suse.de>
11801
11802 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
11803
e024b101
GM
118042000-07-24 Gerd Moellmann <gerd@gnu.org>
11805
11806 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
11807 parameters instead of using int parameters. Expect FN to accept
11808 EMACS_INT parameters.
11809 (display_echo_area, resize_echo_area_axactly, current_message)
11810 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
11811 with new argument list.
11812 (resize_mini_window_1): New callback function.
11813 (current_message_1, truncate_message_1, set_message_1): Change
52283633 11814 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 11815
25c1a9ce
KH
118162000-07-24 Kenichi Handa <handa@etl.go.jp>
11817
11818 * fontset.c (fontset_ref): Remove INLINE declaration.
11819 (fontset_ref_via_base): Likewise.
11820 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
11821 to downcase.
11822
7f987ac0
EZ
118232000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
11824
11825 * msdos.c (IT_note_mouse_highlight): Process overlays in the
11826 correct order of priority. If help echo was found in an overlay,
11827 use that overlay as the object in which the help echo was found.
11828
e2db3069
MB
118292000-07-22 Miles Bader <miles@gnu.org>
11830
11831 * textprop.c (Fprevious_single_char_property_change): The initial
11832 property value should be from the position preceding POSITION, not
11833 following it.
11834
5e3203e4
EZ
118352000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
11836
11837 * coding.c (syms_of_coding): Doc fix for
11838 inhibit-iso-escape-detection.
11839
62145073
GM
118402000-07-21 Gerd Moellmann <gerd@gnu.org>
11841
c20aeb83
GM
11842 * xterm.c (note_mouse_highlight): Process overlays in the right
11843 order of priority.
34a7a267 11844
743934db
GM
11845 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
11846
11847 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 11848 overlay, use that overlay as the object in which the help was found.
743934db 11849
d1dc7e43 11850 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 11851
62145073
GM
11852 * window.c (foreach_window): Instead of a fake variable argument
11853 list, take one USER_DATA argument.
11854 (foreach_window_1): Likewise, and call callback functions with two
11855 args, the window and USER_DATA.
11856 (struct check_window_data): New struct.
11857 (check_window_containing): Use it.
11858 (window_from_coordinates): Set up a struct check_window_data for
11859 foreach_window.
11860 (add_window_to_list, freeze_window_start): Change parameters
11861 according to new calling convention.
11862
11863 * window.h (foreach_window): Change prototype.
11864
11865 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
11866
118672000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
11868
11869 * xmenu.c (menu_help_callback): Call show_help_echo with
11870 additional arguments OBJECT and POS.
11871
11270583
KH
118722000-07-21 Kenichi Handa <handa@etl.go.jp>
11873
07b14857
KH
11874 * data.c (Faset): Allow storing any multibyte character in a
11875 string. Convert unibyte string to multibyte if necessary.
11876
11270583
KH
11877 * xfns.c (x_encode_text): New function.
11878 (x_set_name): Use x_encode_text.
11879 (x_set_title): Likewise.
11880
11881 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
11882
11883 * xterm.h (x_encode_text): Add prototype.
11884
bc75b4fd
DL
118852000-07-20 Dave Love <fx@gnu.org>
11886
11887 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
11888 xfree, not free.
11889
48c14970
EZ
118902000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
11891
11892 * msdos.c (help_echo_window): New variable.
11893 (syms_of_msdos): Initialize and staticpro it.
11894 (IT_note_mode_line_highlight): Set help_echo_window.
11895 (IT_note_mouse_highlight): Ditto.
11896 (dos_rawgetc): Store help_echo_window in the second event produced
11897 for HELP_EVENTs.
11898
11899 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
11900 Record the object that generated the help echo and the position of
11901 that object in help_echo_object and help_echo_pos. Record that
11902 some glyphs in a row are displayed in mouse-face.
11903 (IT_update_begin): Don't clear mouse highlight unless one of the
11904 enabled glyph rows is marked as being displayed in mouse-face.
11905 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
11906 and position recorded in help_echo_object and help_echo_pos to the
11907 event queue.
11908 (IT_menu_display): Accept a new argument PN: the pane number of
11909 the current menu pane. Record the pane number and the item
11910 number of the item which has associated help string.
11911 (XMenuActivate): Update the prototype for help_callback in
11912 function declaration. Call IT_menu_display with the current menu
11913 pane number as an additional argument. Call help_callback with
11914 two additional arguments: the pane number and the item number of
11915 the menu item associated with the help text.
11916 (help_echo_object, help_echo_pos): New variables.
11917 (syms_of_msdos): Initialize them and staticpro help_echo_object.
11918
11919 * msdos.h (XMenuActivate): Update prototype.
11920
4279296d
GM
119212000-07-19 Gerd Moellmann <gerd@gnu.org>
11922
47db06aa
GM
11923 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
11924 Add some more prototypes.
11925
11926 * xterm.c, xterm.h: Add some more prototypes.
11927
11928 * lisp.h (Fnext_single_char_property_change): Add prototype.
11929
11930 * dispnew.c (direct_output_for_insert): Remove confusing
11931 outer local variable mouse_face_overwritten_p.
11932 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
11933
4279296d
GM
11934 * alloc.c (allocate_string_data): Don't copy old string contents.
11935
670acd62
KH
119362000-07-19 Kenichi Handa <handa@etl.go.jp>
11937
11938 * coding.c (code_convert_region): Delete text properties before
11939 shrinking the conversion region.
11940
7cea38bc
GM
119412000-07-18 Gerd Moellmann <gerd@gnu.org>
11942
dc1cac59
GM
11943 * dispnew.c (update_text_area): Write the whole row if it
11944 has mouse-face in it.
11945
85a8aca9
GM
11946 * xfaces.c (face-alternative-font-family-alist): Remove
11947 DEFVAR_LISP; staticpro instead.
11948
34a7a267 11949 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
11950 new arguments.
11951
11952 * keyboard.c (show_help_echo): Add parameter WINDOW.
11953 (read_char): Call show_help_echo with window extracted from Lisp
11954 help event.
11955 (gen_help_event): Add parameter WINDOW.
11956
11957 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
11958
11959 * xterm.c (help_echo_window): New variable.
52283633 11960 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
11961 (XTread_socket): Pass help_echo_window to gen_help_event.
11962 (syms_of_xterm): Initialize and staticpro help_echo_window.
11963
f8276b77
DL
119642000-07-18 Dave Love <fx@gnu.org>
11965
52283633 11966 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 11967
088831a6
GM
119682000-07-18 Gerd Moellmann <gerd@gnu.org>
11969
3d6cd763
GM
11970 * alloc.c (allocate_string_data): If string had already data
11971 assigned, copy old contents to new string data.
11972
11973 * coding.c (syms_of_coding): Fix typo in spelling of variable
11974 `inhibit-iso-escape-detection'.
11975
088831a6
GM
11976 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
11977
11978 * Makefile.in: Add dependencies on dispextern.h.
11979 (alloca.o): Don't define malloc and define EMACS_FREE instead of
11980 `free'; both can conflict with system header files.
11981
bc8a8d55
KH
119822000-07-18 Kenichi Handa <handa@etl.go.jp>
11983
11984 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
11985 undefined.
11986
069f5950
DL
119872000-07-18 Dave Love <fx@gnu.org>
11988
11989 * window.c (Fwindow_list): Declare arg `window'.
11990
aa96c820
KH
119912000-07-18 Kenichi Handa <handa@etl.go.jp>
11992
11993 * coding.c (setup_coding_system): Don't override the explicitly
11994 specified designations.
11995
06be8d32
MB
119962000-07-15 Miles Bader <miles@gnu.org>
11997
11998 * editfns.c (char_property_eq, char_property_stickiness): Renamed
11999 from `text_property_eq' and `text_property_stickiness', respectively.
12000 (find_field, Fconstrain_to_field, char_property_eq)
12001 (char_property_stickiness): Changed to call char-property functions
12002 instead of text-property-only ones.
12003
12004 * textprop.c (Fnext_single_char_property_change): Made a subr (was
12005 `next_single_char_property_change'). Do more error checking, and
12006 cleanup limit behavior.
12007 (Fprevious_single_char_property_change): New function.
12008 (syms_of_textprop): Initialize new subrs.
12009
12010 * xdisp.c (display_prop_end, invisible_text_between_p):
12011 Call Fnext_single_char_property_change instead of
12012 next_single_char_property_change.
12013
3fddcdc3
JR
120142000-07-15 Jason Rumney <jasonr@gnu.org>
12015
12016 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
12017 after menu is finished with.
12018 (add_menu_item): Only consider wv->title as a menu title.
12019 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
12020
12021 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
12022 null title.
12023 (FONT_REGEXP): Remove unused macro, and its sub-components.
12024 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
12025
12026 * w32term.c (help_echo_object, help_echo_pos): New variables.
12027 (note_mode_line_highlight): Store additional information about the
12028 help-echo in help_echo_object and help_echo_pos. Check both
12029 `local-map' and `keymap' properties for changing the cursor
12030 (note_mouse_highlight): Store additional information about the
12031 help-echo in help_echo_object and help_echo_pos.
12032 (note_tool_bar_highlight): Set help_echo_object to nil and
12033 help_echo_pos to -1.
12034 (w32_read_socket): Use gen_help_event instead of filling
12035 input_events manually.
12036 (syms_of_w32term): Staticpro help_echo_object.
12037 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 12038 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
12039 (x_clear_mouse_face): New function.
12040 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
12041 (x_update_window_begin): No need to turn off the mouse
12042 highlight here.
12043 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 12044 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
12045 (x_fill_stretch_glyph_string): Consume runs of stretch
12046 glyphs instead of a single one.
12047 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
12048 with new argument list.
12049 (x_set_glyph_string_gc): Make sure the face's GC is valid.
12050 (x_append_glyph, x_append_composite_glyph)
12051 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
12052 changes in struct glyph starting 1999-12-27. See comments for
12053 xterm.c on 2000-07-05.
12054
178c5d9c
SS
120552000-07-14 Sam Steingold <sds@gnu.org>
12056
12057 * xfaces.c (realize_x_face): Fix the last patch:
12058 check `default_face' before dereferencing.
12059
6fe533f6
DL
120602000-07-14 Dave Love <fx@gnu.org>
12061
069f5950 12062 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 12063
dd7b81cf
KH
120642000-07-14 Kenichi Handa <handa@etl.go.jp>
12065
0693904a 12066 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 12067 default_face's fontset, not using the default fontset.
0693904a 12068
dd7b81cf
KH
12069 * coding.c (inhibit_iso_escape_detection): New variable.
12070 (syms_of_coding): Make it a Lisp variable.
12071 (detect_coding_iso2022): If inhibit_iso_escape_detection is
12072 nonzero, ignore ISO2022's escape sequence.
12073
d5aa31d8
GM
120742000-07-14 Gerd Moellmann <gerd@gnu.org>
12075
e5acf0ca
GM
12076 * alloca.c (malloc) [emacs]: Define as xmalloc.
12077
bd23a692
GM
12078 * xfns.c (Fx_show_tip): If frame parameters contain a position,
12079 use that instead of the mouse position. Add parameters DX and DY.
12080
12081 * dispextern.h (Fx_show_tip): Adjust number of parameters
12082 in prototype.
12083
9662da0b
GM
12084 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
12085 if HELP is a function, call it with OBJECT and POS as parameters
12086 to get the help to display.
12087 (gen_help_event, kbd_buffer_store_help_event): New functions.
12088 (kbd_buffer_get_event): Construct the Lisp help-event differently.
12089 (read_char): Call show_help_echo with new parameters.
12090
178c5d9c 12091 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
12092 Add prototypes.
12093
12094 * xterm.c (help_echo_object, help_echo_pos): New variables.
12095 (note_mode_line_highlight): Store additional information about the
12096 help-echo in help_echo_object and help_echo_pos. Check both
12097 `local-map' and `keymap' properties for changing the cursor
12098 (note_mouse_highlight): Store additional information about the
12099 help-echo in help_echo_object and help_echo_pos.
12100 (note_tool_bar_highlight): Set help_echo_object to nil and
12101 help_echo_pos to -1.
12102 (XTread_socket): Use gen_help_event instead of filling
12103 input_events manually.
12104 (syms_of_xterm): Staticpro help_echo_object.
12105
12106 * xmenu.c (menu_highlight_callback): Use
12107 kbd_buffer_store_help_event instead of setting up and input_event
12108 structure manually.
12109
12110 * xdisp.c (eval_form): GCPRO argument sexpr.
12111 (call_function): New function.
12112 (handle_single_display_prop): Use call_function and FUNCTIONP
12113 instead of checking whether if font_height is a symbol and
12114 using eval_form.
12115
12116 * eval.c (internal_condition_case_2): New function.
12117
12118 * lisp.h (FUNCTIONP): New macro.
12119 (internal_condition_case_2, call_function): Add prototypes.
12120
d5aa31d8
GM
12121 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
12122 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
12123 Always set `arg' member of input_events.
12124 (construct_menu_click): Unused function removed.
12125
12126 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
12127
12128 * w32term.c (construct_mouse_click, construct_mouse_wheel)
12129 (construct_drag_n_drop, x_scroll_bar_handle_click)
12130 (w32_read_socket): Always set `arg' member of input_events.
12131
12132 * keyboard.c (show_help_echo): Use eval_form. Add comment.
12133
12134 * lisp.h (eval_form): Add prototype.
12135
12136 * xdisp.c (eval_form): Make it externally visible.
12137
0f1a9b23
GM
121382000-07-13 Gerd Moellmann <gerd@gnu.org>
12139
12140 * xterm.c (x_handle_tool_bar_click): Store the frame in the
12141 frame_or_window slot of TOOL_BAR_EVENT input events instead of
12142 consing. For prefix events, store the frame in the `arg' slot of
12143 the event, otherwise store the key there.
12144 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 12145 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
12146
12147 * xmenu.c (menu_highlight_callback): Store help string in the
12148 `arg' member of the input event; don't cons.
12149 (menubar_selection_callback): Use the `arg' slot of input events
12150 to queue additional information, instead of consing.
12151
12152 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
12153
12154 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
12155 TOOL_BAR_EVENTs.
12156 (w32_read_socket): Adapt to changes in HELP_EVENTs.
12157
12158 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
12159 input events to queue additional information, instead of consing.
12160
12161 * keyboard.c (kbd_buffer_gcpro): Renamed from
12162 kbd_buffer_frame_or_window. Now used for all Lisp objects
12163 referenced from the input queue.
12164 (kbd_buffer_store_event): Always use structure assignment for
12165 copying input events. Record all Lisp objects referenced from
12166 events in kbd_buffer_gcpro.
12167 (kbd_buffer_get_event): Construct Lisp `help-echo' events
12168 differently from input events. Test for prefix menu_bar_events
12169 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
12170 event in kbd_buffer_gcpro to nil.
12171 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
12172 frame_or_window is equal to its arg member as prefix events.
12173 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
12174 used by an input event to nil.
12175 (init_keyboard): Use two times the size of the input queue
12176 for kbd_buffer_gcpro.
12177 (syms_of_keyboard): Likewise.
12178
52283633
SM
12179 * emacs.c (handle_USR2_signal, handle_USR1_signal):
12180 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
12181
12182 * termhooks.h (struct input_event): Add member `arg'.
12183 (MENU_BAR_EVENT): Renamed from menu_bar_event.
12184 (USER_SIGNAL_EVENT): Renamed from user_signal.
12185
12186 * xfaces.c (ASET): Remove definition.
12187
12188 * lisp.h (AREF, ASET, ASIZE): New macros.
12189
12190 * fontset.c (AREF, ASIZE): Remove definitions.
12191
12192 * fns.c (AREF): Remove definition.
178c5d9c 12193
0f1a9b23
GM
12194 * composite.c (AREF): Remove definition.
12195
712eaef2
GM
121962000-07-12 Gerd Moellmann <gerd@gnu.org>
12197
d8ee7803
GM
12198 * dispnew.c (redraw_overlapped_rows): Add missing local.
12199 (scrolling_window): Remove debug code.
12200
712eaef2
GM
12201 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
12202 Before scrolling, turn off a mouse-highlight in the window
12203 being scrolled.
12204
12205 * xterm.c (x_update_window_end): Add parameter
12206 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
12207 redisplay in XTframe_up_to_date.
12208 (x_clear_mouse_face): New function.
12209 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
12210
12211 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
12212 current glyph row.
12213 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
12214 it when any row is written to that contains glyphs highlighted in
12215 mouse-face.
12216 (update_window): Call the window update end hook with new
12217 parameter MOUSE_FACE_OVERWRITTEN_P.
12218 (direct_output_for_insert): Give up if row contains mouse-face.
12219
12220 * dispextern.h (struct redisplay_interface): Add parameter
12221 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
12222 (clear_mouse_face): New function pointer member.
12223
02010917
SM
122242000-07-11 Stefan Monnier <monnier@cs.yale.edu>
12225
12226 * syntax.c (back_comment): Use one switch rather than a few `if's.
12227 Obey open_paren_in_column_0_is_defun_start.
12228 When reverting to the `slow' method, try to nicely handle the case
12229 of nested comments by checking that the comment-starter we found
12230 does indeed match the comment-ender.
12231 (scan_sexps_forward, scan_sexps_forward):
12232 Ignore excessive opening parenthesis rather than throwing an error.
12233
d76c03ea
GM
122342000-07-11 Gerd Moellmann <gerd@gnu.org>
12235
12236 * doc.c (Fsubstitute_command_keys): Handle case that a GC
12237 in Fwhere_is_internal or get_keymap_1 relocates string contents.
12238
12239 * dispnew.c (direct_output_forward_char): Give up if currently
12240 displaying a message instead of the minibuffer contents.
12241
12242 * xterm.c (x_update_window_begin): No need to turn off the mouse
12243 highlight here.
12244 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 12245 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
12246
12247 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
12248 compare the mouse_face_p flags of both rows.
12249
12250 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
12251
d55ead18
EZ
122522000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
12253
12254 * keyboard.c (show_help_echo): Accept additional parameter
12255 ok_to_overwrite_keystroke_echo.
12256 (read_char): Call show_help_echo with a zero
12257 ok_to_overwrite_keystroke_echo argument.
52283633 12258 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
12259 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
12260 ok_to_overwrite_keystroke_echo argument.
12261 * w32menu.c (w32_menu_display_help): Call show_help_echo with
12262 non-zero ok_to_overwrite_keystroke_echo argument.
12263
df75b1a3
GM
122642000-07-10 Gerd Moellmann <gerd@gnu.org>
12265
4b92c49a
GM
12266 * xdisp.c (try_window_id): If changes are all below what is
12267 displayed in the window, and point is in the window, we still
12268 might have to find point on the display.
12269
12270 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
12271 glyphs instead of a single one.
12272 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
12273 with new argument list.
12274 (x_set_glyph_string_gc): Make sure the face's GC is valid.
12275
df75b1a3
GM
12276 * keymap.c (get_keymap_1): Add comment that this function can GC.
12277 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
12278 comment that functions can GC.
12279 (Fset_keymap_parent): GCPRO arg KEYMAP.
12280
4314cf3e
EZ
122812000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
12282
12283 * msdos.c (XMenuActivate): After exiting the menu, restore the
12284 echo area message and erase it.
12285
ab49ce15
KH
122862000-07-10 Kenichi Handa <handa@etl.go.jp>
12287
12288 * fontset.c (Ffontset_info): Make the return value more compatible
12289 with that of Emacs 20.
12290
090a072f
GM
122912000-07-07 Gerd Moellmann <gerd@gnu.org>
12292
12293 * eval.c (Fsignal): Handle case that backtrace_list is null.
12294
f92de4a6
KH
122952000-07-07 Kenichi Handa <handa@etl.go.jp>
12296
12297 * ccl.c (Fccl_execute): Typo fixed.
12298
dd8888a1
GM
122992000-07-06 Gerd Moellmann <gerd@gnu.org>
12300
e5c81191 12301 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 12302
dd8888a1
GM
12303 * window.c (Fwindow_list): Reverse list at the end.
12304 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
12305 means allow windows on OWINDOW's frame, only.
12306 (window_loop): Simplified; use Fwindow_list.
12307
12308 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
12309
485266d0
GM
123102000-07-05 Gerd Moellmann <gerd@gnu.org>
12311
12312 * xterm.c (XTread_socket): Increment handling_signal at the start,
12313 decrement it at the end.
12314
12315 * eval.c (handling_signal): New variable.
12316 (Fsignal): Abort if handling_signal is non-zero.
12317
12318 * lisp.h (handling_signal): External declaration.
178c5d9c 12319
485266d0
GM
12320 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
12321
80fcd514
KR
123222000-07-05 Ken Raeburn <raeburn@gnu.org>
12323
12324 Sound support for NetBSD through "Linux emulation" support:
12325 * config.in (HAVE_SOUNDCARD_H): Undef.
12326 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
12327 * Makefile.in (LIBSOUND): New variable.
12328 (LIBES): Include it.
52283633
SM
12329 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
12330 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
12331 (vox_open): Use DEFAULT_SOUND_DEVICE.
12332 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
12333
d5c5cddd
GM
123342000-07-05 Gerd Moellmann <gerd@gnu.org>
12335
12336 * print.c (print_error_message): If Vsignaling_function is set,
12337 show it in *Messages*.
12338
12339 * lisp.h (Vsignaling_function): External declaration.
12340
12341 * eval.c (Vsignaling_function): New variable.
12342 (Fsignal): Compute it.
12343 (syms_of_eval): Staticpro it.
12344
65171e3a
DL
123452000-07-05 Dave Love <fx@gnu.org>
12346
12347 * syswait.h: Use the autoconf recommended approach. Old code
12348 #if'd out in case we need to revert.
12349
178c5d9c 12350 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 12351
e2c46326
AI
123522000-07-05 Andrew Innes <andrewi@gnu.org>
12353
12354 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
12355 when non-NULL instead of __morecore, to take account of buffer
12356 memory. This also solves a problem with spurious memory warnings
12357 on Windows.
12358
12359 * ralloc.c: Make real_morecore non-static.
12360
12361 * eval.c (internal_condition_case): Comment out abort if
12362 interrupt_input_blocked is not zero.
12363
12364 * makefile.nt: Add support for `bootstrap' and related targets.
12365 Include minimal debug info in emacs.exe in release build.
12366 Remove all dependencies on lisp.h, and fixup some others.
12367
12368 * w32.c (init_environment): Install code from 20.7 for providing
12369 default values for environment variables, based on the
12370 executable's own location.
52283633 12371 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
12372 (sys_socket): Install socket inheritance bug fix from 20.7.
12373
12374 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
12375 here via blockinput.h).
12376
a027a91b
SM
123772000-07-05 Stefan Monnier <monnier@cs.yale.edu>
12378
e4b31601
SM
12379 * w32menu.c (w32_menu_display_help):
12380 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
12381
12382 * keyboard.h (show_help_echo): Declare.
12383
12384 * keyboard.c (show_help_echo): New function, extracted from read_char.
12385 Feval its `msg' argument if it's a cons cell.
12386 (read_char): Use it.
4cf8d9d5 12387 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 12388
178c5d9c 12389 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 12390 (note_tool_bar_highlight, XTread_socket):
178c5d9c 12391 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
12392 (dos_rawgetc):
12393 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
12394 (note_tool_bar_highlight, w32_read_socket):
12395 Do not gratuitously ignore non-string `help-echo' properties.
12396
88d75730
GM
123972000-07-05 Gerd Moellmann <gerd@gnu.org>
12398
969f7e79
GM
12399 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
12400
71201b00
GM
12401 * window.c (delete_all_subwindows): Reset Vwindow_list.
12402
88d75730
GM
12403 * xterm.c (x_append_glyph, x_append_composite_glyph)
12404 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
12405 changes in struct glyph starting 1999-12-27. Some bit-fields of
12406 struct glyph were not set, which made glyphs unequal when compared
12407 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
12408 effects were the result. This also depended on the contents of
12409 memory returned by xmalloc. If flickering happens again, activate
12410 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 12411 gone with that, chances are that it is caused by something similar.
88d75730
GM
12412
12413 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 12414
88d75730
GM
12415 * dispextern.h: Add some comments.
12416
12417 * window.c (add_window_to_list): Add parameter LIST.
12418 (window_list): Order list so that, for each frame, windows are
12419 in canonical order, and so that frames appear in the list in
12420 the order given by Vframe_list.
12421 (next_window): Reverse the handling of NEXT_P.
12422
53654733
GM
124232000-07-04 Gerd Moellmann <gerd@gnu.org>
12424
87efd256
GM
12425 * window.c (Vwindow_list): New variable.
12426 (make_window, delete_window): Set Vwindow_list to nil.
12427 (check_window_containing): New function.
12428 (window_from_coordinates): Rewritten.
12429 (add_window_to_list, window_list, candidate_window_p)
12430 (decode_next_window_args, next_window): New functions.
52283633 12431 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
12432 (Fwindow_list): New function.
12433 (Fother_window): Cleaned up.
12434 (foreach_window): Add a longer "variable argument list". Let
12435 callback function return 0 to indicate that cycling over windows
12436 should stop.
12437 (foreach_window_1): Likewise.
12438 (freeze_window_start): Return int.
12439 (init_window): New function.
12440 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
12441
12442 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
12443 input_event with bzero.
12444 (main): Call init_window.
12445
53654733
GM
12446 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
12447 a menu filter.
12448
4a8c194f
KH
124492000-07-04 Kenichi Handa <handa@etl.go.jp>
12450
12451 * composite.h (make_composition_value_copy): Extern it.
12452
12453 * composite.c (make_composition_value_copy): New function.
12454
12455 * editfns.c (Fformat): While copying text properties, make each
12456 composition property value a copy.
12457
12458 * fns.c (concat): While copying text properties, make each
12459 composition property value a copy.
12460
831a6cb0
GM
124612000-07-03 Gerd Moellmann <gerd@gnu.org>
12462
2f516940
GM
12463 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
12464
178c5d9c 12465 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
12466 marked already.
12467
831a6cb0
GM
12468 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
12469 include those frames as candidates which have their focus
12470 redirected to the minibuffer frame.
12471
d9c4f922
SM
124722000-07-03 Stefan Monnier <monnier@cs.yale.edu>
12473
12474 * fns.c (Fputhash): Return `value' rather than nil.
12475
3780bc22
GM
124762000-06-30 Gerd Moellmann <gerd@gnu.org>
12477
97d176db
GM
12478 * frame.c (next_frame): Don't check focus redirection in case
12479 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
12480 unless their focus is redirected, which contradicts the
12481 specification of next-frame, and leads to infinite loops in
12482 certain situations when cycling through windows with next-window.
12483
dca9961d
KH
124842000-06-30 Kenichi Handa <handa@etl.go.jp>
12485
12486 * coding.c (code_convert_region): Even if the length of text is
12487 zero, try to convert it if coding->type is coding_type_ccl.
12488 (decode_coding_string, encode_coding_string): Likewise.
12489
d5483ab1
GM
124902000-06-28 Gerd Moellmann <gerd@gnu.org>
12491
af5c25e1 12492 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 12493 the display if windows_or_buffers_changed.
af5c25e1
GM
12494
12495 * dispnew.c (struct row_entry): New structure.
12496 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
12497 (row_table_size, old_lines, new_lines, old_lines_size)
12498 (new_lines_size, run_pool, runs_size, runs): New variables.
12499 (add_row_entry): New function.
12500 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 12501 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
12502 holding them in local variables. Use a larger hash table whose
12503 size depends on glyph matrix sizes. Don't use bzero to clear the
12504 hash table; instead, clear used slots only.
12505
12506 * fns.c (next_almost_prime): Make it externally visible.
12507
12508 * lisp.h (next_almost_prime): Add prototype.
12509
d5483ab1
GM
12510 * s/isc4-0.h (sigunblock): Define.
12511
12512 * s/sco5.h (sigunblock): Define.
12513
93e40f40
DL
125142000-06-27 Dave Love <fx@gnu.org>
12515
12516 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
12517 (moved to osf5-0.h).
12518 [!NOT_C_CODE]: Protect string.h stuff.
12519
12520 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
12521 (sys_siglist, NSIG): Definitions moved here from osf1.h.
12522
3c4b7685
GM
125232000-06-27 Gerd Moellmann <gerd@gnu.org>
12524
97d176db 12525 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
12526 below the last line from the needed window height.
12527
32cad0aa
SM
125282000-06-26 Stefan Monnier <monnier@cs.yale.edu>
12529
12530 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
12531 (Fwidget_get): Use it.
12532 (syms_of_fns): Defsubr it.
12533
2c69ced2
GM
125342000-06-26 Gerd Moellmann <gerd@gnu.org>
12535
178c5d9c 12536 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
12537 display info for XIM.
12538 (xim_open_dpy): Likewise.
12539 (xim_close_dpy): Don't free the display info's XIM.
12540
12541 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
12542
12543 * config.in (USE_XIM): New define.
12544
3fc720e4
GM
12545 * keymap.c (get_keyelt): For menu-items containing a `:filter
12546 FILTER', apply FILTER to the menu-item's definition to get the
12547 real definition to use.
12548
12549 * lisp.h (QCfilter): External declaration.
12550
2c69ced2
GM
12551 * xfns.c (Fimage_size): New function.
12552 (syms_of_xfns): Defsubr it.
12553
f978b2a2
AS
125542000-06-26 Andreas Schwab <schwab@suse.de>
12555
12556 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
12557 Fstring_as_unibyte.
12558
94cc7892
DL
125592000-06-25 Dave Love <fx@gnu.org>
12560
52283633 12561 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
12562
12563 * Makefile.in (blockinput.h): Depend on atimer.h.
12564 (atimer.h): Depend on systime.h.
12565
52283633 12566 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 12567
52283633 12568 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
12569
12570 * lisp.h (swap_in_global_binding): Declare.
12571
b8c24556
KR
125722000-06-24 Ken Raeburn <raeburn@gnu.org>
12573
12574 * process.c (Fopen_network_stream): Turn off atimers for duration
12575 of call to connect. (Patch from Gerd.)
12576
8cf8560b
DL
125772000-06-23 Dave Love <fx@gnu.org>
12578
511c7541
DL
12579 * ralloc.c: Maybe include unistd.h
12580
8cf8560b
DL
12581 * emacs.c (setgrp): Undefine before defining.
12582 (malloc_warning, set_time_zone_rule, index): Prototype.
12583
12584 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
12585 HAVE_STRUCT_TIMEZONE.
12586
12587 * s/osf1.h: Move string.h hack here from alpha.h and make it
12588 conditional.
12589 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
12590 _XOPEN_SOURCE.
12591 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
12592 (SOCKLEN_TYPE): Don't define.
12593
12594 * m/alpha.h: Remove string.h hack.
12595
12596 * s/osf5-0.h: New file.
12597
12598 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
12599 include time.h, done by systime.h.
12600 [__FreeBSD__]: Remove redundant includes.
12601
3fc720e4 12602 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
12603 (delete_temp_file): Return Qnil to avoid warning.
12604
12605 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
12606
12607 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
12608 HAVE_X_WINDOWS.
12609
12610 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
12611
12612 * composite.h (compose_text): Declare.
12613
12614 * xterm.c: Don't include sys/types.h unconditionally. Don't
12615 protect its inclusion with !USG (following xmenu.c).
12616
ea055732
GM
126172000-06-23 Gerd Moellmann <gerd@gnu.org>
12618
12619 * xfns.c (x_create_tip_frame): Initialize frame's colors like
12620 in x_create_frame.
12621
74b01b80
EZ
126222000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
12623
12624 * coding.c (decode_eol_post_ccl): Special handling for undecided
12625 and inconsistent EOL types.
12626
64f3a166
GM
126272000-06-22 Gerd Moellmann <gerd@gnu.org>
12628
16cf31f7
GM
12629 * xrdb.c (x_load_resources): Add default resource for scroll bar's
12630 trough color and main window's background color.
12631
52283633 12632 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
12633
12634 * xterm.h (Xt_app_con): External declaration.
12635
12636 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 12637
486a103d
GM
12638 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
12639
64f3a166
GM
12640 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
12641 (handle_invisible_prop): Record the start of invisible text in
12642 it->add_overlay_start.
12643 (struct overlay_entry): Add member `overlay'.
12644 (handle_overlay_change): Simplify.
12645 (next_overlay_string): After having processed overlay strings at the
12646 end of the buffer, record that fact in
12647 it->overlay_strings_at_end_processed_p.
12648 (compare_overlay_entries): If before- and after-strings come
12649 from the same overlay, let before-strings come first.
12650 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
12651 (load_overlay_strings): Take it->add_overlay_start into account
12652 when adding overlay strings.
12653
12654 * dispextern.h (struct it): Add member add_overlay_start.
12655
bb746ea6
DL
126562000-06-22 Dave Love <fx@gnu.org>
12657
12658 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
12659
12660 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
12661
a8f573f3
KH
126622000-06-22 Kenichi Handa <handa@etl.go.jp>
12663
12664 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
12665 is greater than 0.
12666
9f2bbc92
DL
126672000-06-21 Dave Love <fx@gnu.org>
12668
178c5d9c 12669 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 12670
3ee5041c
SM
126712000-06-21 Stefan Monnier <monnier@cs.yale.edu>
12672
12673 * syntax.c (back_comment): Simplify string-parity counting (with
12674 the added benefit of handling multiple string-styles as long as
12675 they are not intertwined).
12676 Jump to the slow code as soon as a comment starter is found in
12677 a "string_lossage" position. Fixes the case: " /* " /* " */.
12678
4c343001
DL
126792000-06-21 Dave Love <fx@gnu.org>
12680
12681 * Makefile.in: Use GETLOADAVG_LIBS.
12682
12683 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
12684 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
12685
e6365855
SM
126862000-06-20 Stefan Monnier <monnier@cs.yale.edu>
12687
12688 * syntax.c (describe_syntax): Recognize the `n'estable bit.
12689 (Fforward_comment, scan_lists):
12690 Check the comstyle of single-char comment-starters.
12691 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
12692 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
12693 Check the comstyle of single-char comment-starters.
12694 Clarify control-flow around the Scomment case.
e6365855 12695
5700d2cc
DL
126962000-06-20 Dave Love <fx@gnu.org>
12697
d355bd8a
SM
12698 * fns.c (make_hash_table, maybe_resize_hash_table):
12699 Cast arg of next_almost_prime.
5700d2cc 12700
178c5d9c 12701 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
12702
12703 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
12704 and unistd.h.
12705
4a27bdfb
GM
127062000-06-20 Gerd Moellmann <gerd@gnu.org>
12707
a61d762c 12708 * keyboard.c (adjust_point_for_property): Check if display
52283633 12709 property should be treated as intangible by looking at its value.
a61d762c 12710
178c5d9c 12711 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
12712 (display_prop_intangible_p): New functions.
12713
12714 * dispextern.h (display_prop_intangible_p): Add prototype.
12715
12716 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 12717
4a27bdfb
GM
12718 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
12719 argument to sigprocmask.
12720
12721 * s/sco5.h (sigblock): Redefined to pass a pointer as second
12722 argument to sigprocmask.
12723
12724 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
12725 sigprocmask_set, and pass a pointer to it to sigprocmask.
12726
12727 * sysdep.c (sigprocmask_set): New variable.
12728
12729 * fileio.c (make_temp_name): Don't use `%s' in string passed to
12730 report_file_error.
12731
427ec082
SS
127322000-06-20 Sam Steingold <sds@gnu.org>
12733
12734 * xrdb.c: Don't declare xmalloc, xrealloc.
12735
8972fe79 127362000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
12737
12738 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
12739 (re_comp): Cast gettext return value to avoid complaints when
12740 !HAVE_LIBINTL.
12741
074b6efe
DL
127422000-06-20 Dave Love <fx@gnu.org>
12743
52283633 12744 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 12745
5700d2cc 12746 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 12747
d355bd8a 12748 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
12749
12750 * m/alpha.h: Don't declare xmalloc, xrealloc.
12751
0af4f205
DL
12752 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
12753
12754 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
12755
12756 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
12757
12758 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
12759 HAVE_GETWD.
12760
074b6efe
DL
12761 * keyboard.h (poll_for_input_1): Declare.
12762
12763 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
12764
12765 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
12766
12767 * doprnt.c: Don't declare xmalloc, xrealloc.
12768
12769 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
12770 (getenv, ctime, getwd): Removed.
12771 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
12772
12773 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
12774 x_set_tool_bar_lines.
12775
12776 * config.in: Add HAVE_GETWD. Move some definitions above
12777 machine/system includes.
12778
68a5e97b
KH
127792000-06-20 Kenichi Handa <handa@etl.go.jp>
12780
95417e1e
KH
12781 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
12782
68a5e97b
KH
12783 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
12784 contain information about ENCODING.
12785
12786 * fontset.c (FONTSET_ASCII): Use the first element of char table
12787 for an ASCII font, not defalt slot.
12788 (fontset_ref_via_base): If FONTSET doesn't contain information for
12789 C, try the default fontset.
12790 (make_fontset): Don't copy the default fontset.
12791 (fontset_font_pattern): Likewise.
12792 (accumulate_font_info): If ELT is nil, use the corresponding
12793 element in the default fontset.
12794
3b4fa1b2
DL
127952000-06-19 Dave Love <fx@gnu.org>
12796
943e731c
DL
12797 * syntax.c (Fparse_partial_sexp): Doc fix.
12798
12799 * regex.h: Test PROTOTYPES as well as __STDC__.
12800
3b4fa1b2
DL
12801 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
12802 errno, strerror. Put text after #endif in comment.
12803
52283633 12804 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
12805
12806 * xterm.c (x_frame_of_widget): Likewise.
12807
cdf0357b
GM
128082000-06-19 Gerd Moellmann <gerd@gnu.org>
12809
12810 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
12811 to Vfundamental_mode_abbrev_table.
12812
12813 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
12814 bogus objects are marked. This slows down GC by ~80 percent, but
12815 it might be worth trying when debugging GC-related problems.
12816 This feature requires conservative stack marking to be enabled.
12817
12818 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
12819 returns XLookupChars, reset `modifiers' to zero.
12820
998e9f8c
DL
128212000-06-19 Dave Love <fx@gnu.org>
12822
12823 * mktime.c: Unprotoized.
12824
18e21ce8 128252000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
12826
12827 * data.c (set_internal): If variable is frame-local,
12828 store the new value immediately into the frame parameter alist.
12829
140c4ac6
KR
128302000-06-19 Ken Raeburn <raeburn@gnu.org>
12831
14358466
KR
12832 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
12833 in the custom handler pointer.
12834
140c4ac6
KR
12835 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
12836 value, or checks for CHAR_META can fail when Lisp_Object is a
12837 union type.
12838 * keymap.c (get_keyelt): Likewise.
12839
10d7bf84
KH
128402000-06-19 Kenichi Handa <handa@etl.go.jp>
12841
12842 * ccl.h (struct ccl_program): New member eol_type.
12843 (struct ccl_spec): New member cr_carryover.
12844
12845 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
12846 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
12847
12848 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
12849 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
12850 (decode_eol_post_ccl): New function.
12851 (decode_coding): Don't detect EOL format here for CCL based coding
12852 systems.
12853 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
12854 decode_eol_post_ccl after running the CCL program.
12855 (code_convert_region): Don't detect EOL format here for CCL based
12856 coding systems.
12857 (decode_coding_string): Likewise.
12858
52e386c2
KR
128592000-06-18 Ken Raeburn <raeburn@gnu.org>
12860
12861 * charset.c (update_charset_table): Use XINT on "iso_final_char"
12862 when treating it as an integer.
12863
12864 * coding.h (encode_coding_string): Declare.
12865
12866 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
12867 it as an integer.
12868
12869 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
12870 "xkeymap" to avoid shadowing the "enum map_type" value that needs
12871 to be passed to get_local_map.
12872
12873 * sound.c (Fplay_sound): Don't call make_number on
12874 Frun_hook_with_args count argument.
12875
12876 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
12877 for lisp objects in X event structure data field, when lisp
12878 objects are represented with unions.
12879 (x_scroll_bar_to_input_event): Ditto.
12880
b357b9d4
KR
128812000-06-16 Ken Raeburn <raeburn@gnu.org>
12882
12883 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
12884 termination of string. Fix sense of test whether
12885 Vline_number_display_limit is an integer.
b357b9d4 12886
a871441d
GM
128872000-06-16 Gerd Moellmann <gerd@gnu.org>
12888
a9021acd
GM
12889 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
12890 only if HAVE_X_WINDOWS.
12891
6344985d
GM
12892 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
12893 of titles.
12894
427ec082 12895 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
12896 out of bounds.
12897
228b083e
EZ
128982000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
12899
12900 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
12901 of its headers.
12902
c25b53a2
KH
129032000-06-15 Kenichi Handa <handa@etl.go.jp>
12904
12905 * coding.c (decode_coding_emacs_mule): Always set src_base at the
12906 start of the while loop.
12907
a6981b11
GM
129082000-06-15 Gerd Moellmann <gerd@gnu.org>
12909
e9924e52
GM
12910 * atimer.c (alarm_signal_handler): Add forward declaration.
12911
a6981b11
GM
12912 * data.c (set_internal): Remove debug code.
12913
25fa6deb
GM
129142000-06-14 Gerd Moellmann <gerd@gnu.org>
12915
dce6b995
GM
12916 * Makefile.in (bootstrap-temacs): Add `-I../src'.
12917
9f817ea4
GM
12918 * unexec.c (toplevel) [COFF]: Include coff.h.
12919
12920 * s/lynxos.h: New file.
12921
12922 * keymap.c (Fsingle_key_description): Enclose function key and
12923 event symbol names in angle brackets.
12924
8a4e3c0c
GM
12925 * xdisp.c (setup_echo_area_for_printing): Call
12926 message_log_maybe_newline if message_buf_print is not set.
12927
12928 * print.c (printchar, strout): Don't check message_buf_print
427ec082 12929 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
12930 function does something useful even when message_buf_print is
12931 already set.
12932
52283633
SM
12933 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
12934 New variables.
25fa6deb
GM
12935 (ensure_echo_area_buffers): Initialize echo buffer's
12936 truncate lines setting to nil.
12937 (with_echo_area_buffer): Don't set the echo buffer's truncate
12938 lines setting here.
8a4e3c0c 12939 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
12940 of message_truncate_lines.
12941 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
12942 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
12943 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
12944
12945 * keyboard.c (read_char): Bind message-truncate-lines to t
12946 while displaying a help-echo.
12947
12948 * lisp.h (Qmessage_truncate_lines): External declaration.
12949
163dcff3
GM
129502000-06-13 Gerd Moellmann <gerd@gnu.org>
12951
1681ead6
GM
12952 * xdisp.c (Vline_number_display_limit): Renamed from
12953 line_number_display_limit.
12954 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
12955 Extend documentation string. Initialize
12956 Vline_number_display_limit to nil meaning no limit.
12957 (decode_mode_spec): Use Vline_number_display_limit with its new
12958 meaning.
12959
163dcff3
GM
12960 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
12961
18e21ce8 129622000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
12963
12964 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 12965
163dcff3
GM
12966 * xfns.c (x_set_frame_parameters): Comment fix.
12967
12968 * frame.c (store_frame_param): Call swap_in_global_binding if the
12969 variable's current binding was chosen based on this frame.
12970
12971 * data.c (swap_in_global_binding): New function.
12972
a704139d
EZ
129732000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12974
12975 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
12976 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
12977
9b6610db
EZ
129782000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12979
12980 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
12981
c68833d2
JR
129822000-06-12 Jason Rumney <jasonr@gnu.org>
12983
12984 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
12985
12986 * w32.h (EMACS_W32_H): Renamed from _NT_H_
12987
12988 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
12989
12990 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
12991
ed1056b3
GM
129922000-06-12 Gerd Moellmann <gerd@gnu.org>
12993
12994 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
12995 (syms_of_xfaces): Defsubr Sdump_colors.
12996 (x_free_colors): Don't treat b&w specially on default visual.
12997 (x_free_dpy_colors): New function.
12998 (free_face_colors): Don't check visual class; it's done
12999 in x_free_colors.
13000
13001 * xterm.c (x_frame_of_widget): New function.
13002 (x_alloc_nearest_color_for_widget): Use it.
13003 (x_copy_dpy_color): New function.
13004 (x_destroy_window): Free various colors.
13005
5050a2ef
KH
130062000-06-12 Kenichi Handa <handa@etl.go.jp>
13007
13008 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
13009
13010 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
13011
13012 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
13013
13014 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
13015
13016 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
13017
fb1b041d
DL
130182000-06-11 Dave Love <fx@gnu.org>
13019
13020 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
13021
ff96b5f4
EZ
130222000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
13023
13024 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
13025
db8eeecd
GM
130262000-06-11 Gerd Moellmann <gerd@gnu.org>
13027
ed1056b3 13028 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
13029 to `XEvent *'.
13030
49b71c5f
KH
130312000-06-10 Kenichi Handa <handa@etl.go.jp>
13032
c479bd55
KH
13033 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
13034 (regex_compile): Fix the code for handling the case of single byte
13035 char and multibyte char being mixed in a range within [...].
13036
ff6a65c2
KH
13037 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
13038 and dst_multibyte members of coding.
13039
49b71c5f
KH
13040 * charset.c (update_charset_table): Update the table
13041 bytes_by_char_head.
13042 (init_charset_once): Initialize elements of bytes_by_char_head to
13043 1 except for leading codes for private charases.
13044
13045 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 13046 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 13047
9e80b57d
KR
130482000-06-09 Ken Raeburn <raeburn@gnu.org>
13049
13050 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
13051 access the data it doesn't point to.
13052
f83fe4b4
GM
130532000-06-08 Gerd Moellmann <gerd@gnu.org>
13054
13055 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 13056 will be translated to a switch-frame event when reading the
f83fe4b4
GM
13057 event queue. This is necessary because Emacs otherwise won't
13058 perform a switch-frame to a new frame until some other event, for
13059 example a keystroke event, forces it to do so. This has various
13060 effects, one visible being that the cursor of a frame created with
13061 C-x 5 2 or switched to with a window manager key binding like
13062 A-TAB stays hollow because selected_window isn't on the newly
13063 focused frame until the switch-frame is performed.
13064
13065 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
13066 generating a switch-frame event if necessary.
13067
13068 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
13069
13070 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
13071 it's an integer.
13072
0890801b
KH
130732000-06-08 Kenichi Handa <handa@etl.go.jp>
13074
52283633 13075 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 13076
173cbca8
GM
130772000-06-07 Gerd Moellmann <gerd@gnu.org>
13078
3091c2a6
GM
13079 * window.c (displayed_window_lines): Take empty lines at
13080 the bottom of a window into account.
427ec082 13081
f38952fe
GM
13082 * window.c (displayed_window_lines): New function.
13083 (Fmove_to_window_line): Use displayed_window_lines to determine
13084 the number of lines to move, instead of using the window's height.
13085
13086 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
13087 to stop reading, even if the form read sets point to a different
13088 value when evaluated.
13089
427ec082 13090 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
13091 put the cursor.
13092
6ba6c818
KH
130932000-06-07 Kenichi Handa <handa@etl.go.jp>
13094
13095 * fileio.c (e_write): Free composition data if stored in
13096 coding->cmp_data.
13097
5f1aea9a
GM
130982000-06-06 Gerd Moellmann <gerd@gnu.org>
13099
666852af
GM
13100 * xdisp.c (display_line): Set row's and iterator's
13101 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
13102 Set cursor even if row ends in the middle of a character.
13103 (dump_glyph_row): Print values of new flags.
13104 (redisplay_window) <cursor movement in unchanged window>: When
13105 point has been moved forward, and PT is at the end of the cursor
13106 row, don't place the cursor in the next row if the cursor row ends
13107 in the middle of a character or at ZV.
13108
13109 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
13110 (struct glyph_row): Add starts_in_middle_of_char_p and
13111 ends_in_middle_of_char_p.
13112 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
13113 ends_in_middle_of_char_p flag.
13114 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
13115
d13f3e2e
GM
13116 * term.c (append_glyph): Revert change of 2000-06-06.
13117
13118 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
13119 padding glyph not fitting on line as whole character not
13120 fitting on line.
13121
5f1aea9a
GM
13122 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
13123 this isn't true for images with `:ascent 100'.
13124
10cda9b0
KH
131252000-06-06 Kenichi Handa <handa@etl.go.jp>
13126
ed00559d
KH
13127 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
13128 as modified if it is originally unmodified.
13129
10cda9b0
KH
13130 * term.c (encode_terminal_code): Change the way to check if
13131 terminal coding does any conversion.
13132 (append_glyph): Set glyph->pixel_width correctly.
13133
13134 * xdisp.c (display_line): While checking line continuation, pay
13135 attention to a padding glyph.
13136
1969fae2
GM
131372000-06-05 Gerd Moellmann <gerd@gnu.org>
13138
13139 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
13140
162ccef4
DL
131412000-06-05 Dave Love <fx@gnu.org>
13142
f19f32dd
DL
13143 * xdisp.c: Include fontset.h.
13144
13145 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
13146
13147 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
13148
13149 * dispnew.c: Conditionally include term.h.
13150
13151 * coding.h: Declare code_convert_string_norecord.
13152
13153 * frame.h (struct frame): Use volatile unconditionally.
13154
13155 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
13156
13157 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
13158
13159 * systime.h: Protect against multiple inclusion.
13160 (timezone) [USG5_4]: Define as time_t.
13161
13162 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
13163 (Foptimize_char_table, make_temp_name): Declare.
13164
13165 * Makefile.in (xdisp.o): Depend on fontset.h.
13166
13167 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
13168
13169 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
13170 (Foptimize_char_table, make_temp_name): Declare.
13171
427ec082 13172 * s/irix4-0.h:
162ccef4
DL
13173 * s/irix5-0.h:
13174 * s/netbsd.h: Don't define autoconfiscated MATHERR.
13175
2082fe81
DL
131762000-06-02 Dave Love <fx@gnu.org>
13177
13178 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
13179
dcf671d2
GM
131802000-06-02 Gerd Moellmann <gerd@gnu.org>
13181
13182 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 13183 result face, set flags in that face indicating that colors may not
dcf671d2
GM
13184 be freed.
13185
13186 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
13187 glyph, use the ASCII NUL character to determine the face.
13188
d42122a3
DL
131892000-06-02 Dave Love <fx@gnu.org>
13190
13191 * sysdep.c: Conditionally include stdlib.h, unistd.h.
13192 (VFORK_RETURN_TYPE): Remove.
427ec082 13193
d42122a3
DL
13194 * config.in: Add NO_MATHERR.
13195
dd432f16
DL
131962000-06-01 Dave Love <fx@gnu.org>
13197
90aa4ea8
DL
13198 * cmds.c (internal_self_insert): Don't check
13199 Vbefore_change_function, Vafter_change_function.
13200
13201 * insdel.c (signal_before_change, signal_after_change): Likewise.
13202
13203 * buffer.c (Vbefore_change_function, Vafter_change_function):
13204 Variables and their initializations deleted.
13205
2330c9d4
DL
13206 * callint.c (Fcall_interactively): Doc fix.
13207
dd432f16
DL
13208 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
13209
bf9e8804
DL
132102000-05-31 Dave Love <fx@gnu.org>
13211
13212 * textprop.c: Revert last change -- duplicated.
13213
3694b4ab
GM
132142000-05-31 Gerd Moellmann <gerd@gnu.org>
13215
13216 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
13217 in #if 0.
13218
13219 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
13220
f14156cd
JR
132212000-05-31 Jason Rumney <jasonr@gnu.org>
13222
8119aab8
JR
13223 * search.c (Fre_search_forward, Fre_search_backward)
13224 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
13225
f14156cd
JR
13226 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
13227
4aab9be3
JR
132282000-05-30 Jason Rumney <jasonr@gnu.org>
13229
13230 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
13231 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
13232
52283633 13233 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
13234
13235 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
13236 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
13237 expand a nil default_filename.
13238
13239 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
13240 pointer to glyph_to_pixel_coords, not a frame.
13241
13242 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
13243 coding.h to dependencies.
13244
13245 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
13246
13247 * w32console.c (glyph_to_pixel_coords): Change first parameter to
13248 window pointer to be consistent with w32term.c and xterm.c.
13249
13250 * w32fns.c: Format and doc changes to bring closer to xfns.c.
13251 (VIETNAMESE_CHARSET): Define if not defined in system headers.
13252 (Qline_spacing, Qcenter): New variables.
13253 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
13254 (x_set_line_spacing): New function.
52283633 13255 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
13256 (x_specified_cursor_type): New function.
13257 (x_set_cursor_type): Use it.
13258 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
13259 and icon strings.
13260 (validate_x_resource_name, x_get_resource_string): Measure lengths
13261 of external strings in bytes.
13262 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
13263 GetTextExtentPoint32 with NULL title.
13264 (Fx_create_frame): Initialize Qline_spacing.
13265 (w32_load_system_font): Initialize font->double_byte_p.
13266 (x_to_w32_charset): Use Vw32_charset_info_alist.
13267 (Image, busy cursor, tooltip functions): Merged changes from
13268 xfns.c. Not yet functional on Windows.
13269
13270 * w32gui.h (W32FontStruct): Add double_byte_p member.
13271
13272 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
13273 (emacs_button_translation): Use it.
13274 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
13275 in `mask' to be set.
13276
13277 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
13278 menu strings.
13279
13280 * w32term.c: Format and doc changes to bring closer to xterm.c.
13281 (w32_char_font_type): New enum.
13282 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
13283 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
13284 (w32_encode_char): New function.
13285 (x_encode_char): Removed.
13286 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
13287 x_encode_char and w32_font_is_double_byte.
13288 (x_produce_image_glyph): Use image_ascent.
13289 (x_produce_glyphs): Use new version of w32_per_char_metric and
13290 handle NULL return value. Allow extra line spacing.
13291 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
13292 (w32_get_glyph_overhangs): Remove unicode_p param. Use
13293 w32_font_type member of glyph instead.
13294 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
13295 (fast_find_position): Make sure not to consider rows not visible
13296 in the window.
13297 (w32_read_socket) [WM_MENUSELECT]: Cannot call
13298 w32_menu_display_help with input blocked, as it can abort.
13299 (x_display_and_set_cursor): Choose cursor depending
13300 on buffer-local value of cursor_type.
13301 (x_draw_bar_cursor): Add parameter WIDTH.
13302
13303 * w32term.h (CP_DEFAULT): Define.
13304 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
13305
10fc3187
GM
133062000-05-30 Gerd Moellmann <gerd@gnu.org>
13307
13308 * search.c (Fre_search_forward, Fre_search_backward)
13309 (Fposix_search_backward, Fposix_search_forward): Doc fix.
13310
d0555360
KH
133112000-05-30 Kenichi Handa <handa@etl.go.jp>
13312
13313 * coding.c (detect_coding_iso2022): Fix code for checking
13314 CODING_CATEGORY_MASK_ISO_8_2.
13315
f1ad044f
SM
133162000-05-29 Stefan Monnier <monnier@cs.yale.edu>
13317
13318 * regex.c (PREFETCH_NOLIMIT): New function.
13319 (re_match_2_internal): Use it and adjust the end_match_2 logic.
13320
84ec3b4b
GM
133212000-05-29 Gerd Moellmann <gerd@gnu.org>
13322
66254a13
GM
13323 * syntax.c (find_defun_start): Move test for
13324 open_paren_in_column_0_is_defun_start outside of the loop.
13325
49e70dec
GM
13326 * xdisp.c (redisplay_window): Really switch buffers when
13327 displaying mode lines, and temporarily set selected_frame to the
13328 frame of the window that's redisplayed.
13329
84ec3b4b
GM
13330 * xfaces.c (free_realized_faces): Block/unblock input.
13331 (free_realized_multibyte_face): Ditto.
13332
869a3a14
DL
133332000-05-29 Dave Love <fx@gnu.org>
13334
13335 * textprop.c (Qkeymap): New variable.
13336 (syms_of_textprop): Intern it.
13337
13338 * keymap.c: Include intervals.h.
13339 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
13340
13341 * Makefile.in (keymap.o): Depend on intervals.h.
13342
13343 * keyboard.c (menu_bar_items, tool_bar_items)
13344 (Fexecute_extended_command): Deal with `keymap' property.
13345 (read_key_sequence): Track map from `keymap' property as well as
13346 `local_map'.
13347
13348 * intervals.c (get_local_map): Extra arg to allow looking for
13349 `keymap' too.
13350
13351 * intervals.h (map_property): New enum.
13352 (get_local_map): Extra arg using it.
13353 (Qkeymap): Declare.
13354
84ec3b4b 13355 * lisp.h (get_local_map): Don't declare here.
869a3a14 13356
89d0c844
KH
133572000-05-29 Kenichi Handa <handa@etl.go.jp>
13358
13359 * Makefile.in (callproc.o): Depend on composite.h.
13360
13361 * callproc.c: Include composite.h.
13362 (Fcall_process): Handle composition correctly.
13363
13364 * coding.h (coding_allocate_composition_data): Extern it.
13365 (coding_restore_composition): Likewise.
13366
13367 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
13368 yet allocated, finish decoding with result
13369 CODING_FINISH_INSUFFICIENT_CMP.
13370 (coding_allocate_composition_data): Make it non-static.
13371 (coding_restore_composition): Likewise.
13372
797a084a
EZ
133732000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
13374
13375 * charset.c (syms_of_charset): Revert last change.
13376
cf872af5
EZ
133772000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
13378
13379 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
13380 charsets as unibyte, with 1-column screen width. Sent by Kenichi
13381 Handa.
cf872af5 13382
5b1ae051
EZ
133832000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
13384
13385 * charset.c (syms_of_charset): Set width of character sets
13386 eight-bit-control and eight-bit-graphic to 1 column.
13387
34ec9ebe
GM
133882000-05-26 Gerd Moellmann <gerd@gnu.org>
13389
13390 * config.in (HAVE_SPEED_T): New define.
13391
13392 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
13393 `extern speed_t'.
13394
dd854dc2
DL
133952000-05-26 Dave Love <fx@gnu.org>
13396
13397 * coding.c (shrink_decoding_region): Initialize eol_conversion.
13398
13399 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
13400 (Fsubr_arity): New function.
13401 (syms_of_data): Install them.
13402
ba9f8f95
KH
134032000-05-26 Kenichi Handa <handa@etl.go.jp>
13404
0f3e0672
KH
13405 * charset.c (init_charset_once): Set the table bytes_by_char_head
13406 correctly.
13407
cebefb44
KH
13408 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
13409 the default fontset to what Emacs uses by default.
0f3e0672
KH
13410 (check_registry_encoding): This function deleted.
13411 (Fset_fontset_font): Remove the adhoc condition for the default
13412 fontset. Allow cons in FONTNAME.
cebefb44 13413
0f3e0672
KH
13414 * fns.c (map_char_table): Ignore char-table entries for
13415 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 13416
7a18af49
KR
134172000-05-25 Ken Raeburn <raeburn@gnu.org>
13418
13419 * emacs.c (main): Initialize keyboard syms before initializing
13420 window code, so face names are available.
13421
d2af47df
SM
134222000-05-25 Stefan Monnier <monnier@cs.yale.edu>
13423
13424 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
13425 of an anchor at the beginning of a shy-group.
13426
fc6a6a4e
GM
134272000-05-25 Gerd Moellmann <gerd@gnu.org>
13428
13429 * xdisp.c (handle_invisible_prop): Don't try to skip over
13430 invisible text if end of text is already reached.
13431
005f0d35
DL
134322000-05-25 Dave Love <fx@gnu.org>
13433
02513cdd
DL
13434 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
13435
005f0d35
DL
13436 * coding.c (encode_eol): Add null statement after label.
13437
89f6ca4e
EZ
134382000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
13439
13440 * w16select.c (Fw16_set_clipboard_data): Fix the change from
13441 2000-05-20.
13442
a4e1759e
KH
134432000-05-25 Kenichi Handa <handa@etl.go.jp>
13444
13445 * ccl.c (ccl_driver): Fix previous change.
13446
eacfd7fe
KH
134472000-05-25 Kenichi Handa <handa@etl.go.jp>
13448
46ab33a9
KH
13449 * coding.c (run_pre_post_conversion_on_str): Set point to the
13450 beginning of buffer before calling coding->post_read_conversion.
13451 (decode_coding_string): Give correct args to
13452 run_pre_post_conversion_on_str.
13453 (encode_coding_string): Likewise.
13454
eacfd7fe
KH
13455 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
13456 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
13457 eight-bit-graphic correctly.
13458
f8569325
DL
134592000-05-24 Kenichi HANDA <handa@etl.go.jp>
13460
13461 * fileio.c (Finsert_file_contents): Even if a file is not found,
13462 execute codes for setting up coding system. Call
13463 after-insert-file-functions unconditionally.
13464
04545643
GM
134652000-05-24 Gerd Moellmann <gerd@gnu.org>
13466
13467 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
13468 BSD_PGRPS are not defined.
13469
747d90ea
KH
134702000-05-24 Kenichi Handa <handa@etl.go.jp>
13471
13472 * charset.c (update_charset_table): Accept nil in LONG_NAME and
13473 DESCRIPTION.
13474 (syms_of_charset): Avoid building same strings.
13475
716e3b88
GM
134762000-05-23 Gerd Moellmann <gerd@gnu.org>
13477
13478 * lread.c (Fload): Add a comment about the meaning of
13479 Vuser_init_file being t.
13480
13481 * puresize.h (BASE_PURESIZE): Increase to 675000.
13482
13483 * s/gnu-linux.h (setpgrp): Don't define it here because this
13484 prevents compilation on GNU/Linux systems with glib 2.2.
13485
13486 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
13487 as setpgid.
427ec082 13488
9aeb39fa
EZ
134892000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
13490
13491 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
13492 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
13493 version.
13494 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
13495
29ced61b
KH
134962000-05-23 Kenichi Handa <handa@etl.go.jp>
13497
52283633 13498 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 13499
3d80f24d
KH
13500 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
13501
52283633 13502 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 13503
29ced61b
KH
13504 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
13505
d7e00792
KH
135062000-05-22 Kenichi Handa <handa@etl.go.jp>
13507
c9d80d38
KH
13508 * keyboard.c (read_char): Allow character codes 128..255 to be
13509 handled by input-method-function.
13510
d7e00792
KH
13511 * insdel.c (adjust_markers_for_replace): Fix previous change.
13512 (adjust_after_replace): If PREV_TEXT is nil, call
13513 adjust_markers_for_insert, not adjust_markers_for_replace.
13514
087121cc 135152000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 13516
087121cc
GM
13517 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
13518 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
13519 [HAVE_GRANDPT]: Define.
13520 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
13521
13522 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
13523 like SYSV_PTYS.
13524
13525 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
13526
13527 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
13528
c9671f81
KH
135292000-05-20 Kenichi Handa <handa@etl.go.jp>
13530
13531 The following changes are to handle 8-bit characters in a
13532 multibyte buffer/string without facing with byte combining
13533 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
13534 eight-bit-graphic (for 0xA0..0xFF) are introduced.
13535
13536 * Makefile.in (fns.o): Depend on charset.h.
13537
13538 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
13539 convert it to unibyte.
13540 (make_string): Use parse_str_as_multibyte, not chars_in_text.
13541
13542 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
13543 apparent char boundary.
13544 (Fset_buffer_multibyte): Convert 8-bit characters in the range
13545 0x80..0x9F to/from multibyte form.
13546
13547 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
13548 to unibyte.
13549
13550 * callproc.c (Fcall_process): Always encode an argument string if
13551 it is multibyte. Setup src_multibyte and dst_multibyte members of
13552 process_coding properly.
ce75fd23 13553
c9671f81
KH
13554 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
13555 SPLIT_NON_ASCII_CHAR.
13556
13557 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
13558 as is.
13559 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
13560
52283633 13561 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 13562 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 13563 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
13564 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
13565 and eight-bit-graphic.
13566 (char_to_string): Likewise. Signal an error for too large
13567 character code.
13568 (char_printable_p): Return 0 for 8-bit characters.
13569 (update_charset_table): Update iso_charset_table only when a final
13570 character is non-negative.
13571 (find_charset_in_text): Renamed from find_charset_in_str.
13572 Arguments and return value changed. Callers changed.
13573 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
13574 be -1 if CHARSET is used only internally.
13575 (Fmake_char_internal): Handle new charsets; eight-bit-control and
13576 eight-bit-graphic.
13577 (Fcharset_after): Simplified.
13578 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
13579 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
13580 (multibyte_chars_in_text): Simplified by assuming there's no
13581 invalid multibyte sequence.
52283633
SM
13582 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13583 (str_as_unibyte): New functions.
13584 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
13585 (init_charset_once): Initialization for
13586 LEADING_CODE_8_BIT_CONTROL.
13587 (syms_of_charset): Intern and staticpro Qeight_bit_control and
13588 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
13589 eight-bit-control and eight-bit-graphic.
13590
52283633
SM
13591 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
13592 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
13593 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
13594 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
13595 (CHARSET_REVERSE_CHARSET): Likewise.
13596 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
13597 eight-bit-graphic.
13598 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
13599 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
13600 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
13601 encounter an invalid multibyte sequence.
13602 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
13603 sequence is always valid.
13604 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 13605 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
13606 (CHAR_STRING): For 8-bit characters, call char_to_string.
13607 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
13608 multibyte sequence is always valid.
13609 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
13610 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13611 (str_as_unibyte): Extern them.
c9671f81 13612 (BCOPY_SHORT): Fix a bug.
52283633 13613 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
13614 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
13615 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
13616 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
13617
bd4bde7f 13618 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 13619 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
13620 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
13621 (EMIT_BYTES): New macros.
13622 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
13623 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
13624 macros deleted.
13625 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
13626 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
13627 check the validity of multibyte sequence.
13628 (decode_coding_emacs_mule): New function.
13629 (encode_coding_emacs_mule): New macro.
13630 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
13631 the source.
13632 (DECODE_ISO_CHARACTER): Just return a character code.
13633 (DECODE_COMPOSITION_START): Set coding->result instead of result.
13634 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
13635 EMIT_CHAR to produced decoded characters. Exit the loop only by
13636 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
13637 block here.
13638 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
13639 only position codes for an invalid character.
13640 (encode_designation_at_bol): Return new destination pointer. 5th
13641 arg DSTP is changed to DST.
13642 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
13643 from the source by ONE_MORE_CHAR. Don't handle the case of last
13644 block here.
13645 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
13646 macros deleted.
52283633
SM
13647 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
13648 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
13649 TWO_MORE_BYTES to fetch a byte from the source.
13650 (encode_eol): Pay attention to coding->src_multibyte.
13651 (detect_coding, detect_eol): Preserve members src_multibyte and
13652 dst_multibyte.
13653 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
13654 (encoding_buffer_size): Set magnification to 3 for all coding
13655 systems that require encoding.
13656 (ccl_coding_driver): For decoding, be sure that the result is
13657 valid multibyte sequence.
13658 (decode_coding): Initialize coding->errors and coding->result.
13659 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
13660 and raw-text, always call decode_eol. Handle the case of last
13661 block here. If not coding->dst_multibyte, convert the resulting
13662 sequence to unibyte.
13663 (encode_coding): Initialize coding->errors and coding->result.
13664 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
13665 and raw-text, always call encode_eol. Handle the case of last
13666 block here.
13667 (shrink_decoding_region, shrink_encoding_region): Detect cases
13668 that we can't skip data more rigidly.
13669 (code_convert_region): Setup src_multibyte and dst_multibyte
13670 members of coding. For decoding, if the buffer is multibyte,
13671 convert the source sequence to unibyte in advance. For encoding,
13672 if the buffer is multibyte, convert the resulting sequence to
13673 multibyte afterward.
13674 (run_pre_post_conversion_on_str): New function.
13675 (code_convert_string): Deleted and divided into the following two.
13676 (decode_coding_string, encode_coding_string): New functions.
13677 (code_convert_string1, code_convert_string_norecord): Call one of
13678 above.
13679 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
13680 MAKE_NON_ASCII_CHAR.
52283633
SM
13681 (Fset_terminal_coding_system_internal)
13682 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
13683 and dst_multibyte members.
13684 (init_coding_once): Initialize iso_code_class with new enum
13685 ISO_control_0 and ISO_control_1.
13686
13687 * coding.h (enum iso_code_class_type): Member ISO_control_code is
13688 devided into ISO_control_0 and ISO_control_1.
13689 (struct coding_system): New members src_multibyte, dst_multibyte,
13690 errors, and result. Delete member fake_multibyte.
13691 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
13692 nonzero.
13693 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
13694 nonzero.
13695
13696 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13697 (Faset): Likewise.
13698
13699 * editfns.c (Fformat): Be sure to convert 8-bit characters to
13700 multibyte form.
13701 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
13702 combining occurs.
13703 (Ftranspose_region): Delete codes for handling byte combining.
13704
13705 * fileio.c (Finsert_file_contents): Setup src_multibyte and
13706 dst_multibyte members of coding. On handling REPLACE on unibyte
13707 buffer, convert the result of decode_coding to unibyte. On
13708 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 13709 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
13710 multibyteness of the source (buffer or string).
13711
13712 * fns.c (concat): Handle 8-bit characters correctly.
13713 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
13714 unibyte in the result.
13715 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
13716 valid multibyte form in the result.
13717 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13718 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
13719 return -1, signal an error.
13720 (base64_encode_1): New arg MULTIBYTE. Get each character by
13721 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
13722 character is found, return -1.
13723 (Fbase64_decode_region): Delete codes for handling byte-combining.
13724 Treat each decoded byte as a unibyte character.
13725 (Fbase64_decode_string): Return unibyte string.
13726 (Fcompare_strings, concat, string_byte_to_char): Use
13727 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
13728 FETCH_STRING_CHAR_ADVANCE.
13729 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13730 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
13731
13732 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
13733 SPLIT_NON_ASCII_CHAR.
13734 (fontset_ref_via_base, fontset_set): Likewise
13735
13736 * insdel.c (adjust_markers_for_record_delete): Deleted.
13737 (adjust_markers_for_insert): Argument changed. Caller changed.
13738 (adjust_markers_for_replace): Likewise.
52283633
SM
13739 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
13740 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
13741 (copy_text): Delete unused local varialbe c_save. For converting
13742 to multibyte, be sure to make all 8-bit characters in valid
13743 multibyte form.
13744 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
13745 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13746 (adjust_after_replace, replace_range, del_range_2)
c9671f81 13747 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
13748 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13749 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
13750 handling byte combining.
13751 (adjust_before_replace): Deleted.
427ec082 13752
c9671f81
KH
13753 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
13754 SPLIT_NON_ASCII_CHAR.
13755 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 13756 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
13757 (Fkey_description): Likewise.
13758
13759 * lread.c (read1): On reading multibyte string, be sure to make
13760 all 8-bit chararacters in valid multibyte form.
13761 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13762
13763 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
13764 unconditionally.
13765
13766 * process.c (Fstart_process): GCPRO current_dir before calling
13767 Ffind_operation_coding_system. Encode arguments here.
13768 (create_process): Don't encode arguments here. Setup
13769 src_multibyte and dst_multibyte members of struct coding.
13770 (read_process_output): Setup src_multibyte and dst_multibyte
13771 members of struct coding. If the output is to multibyte buffer,
13772 always decode the output of the process. Adjust the
52283633 13773 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
13774 (send_process): Setup coding->src_multibyte according to the
13775 multibyteness of the source.
13776
52283633 13777 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
13778 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
13779 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
13780
52283633 13781 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
13782
13783 * w16select.c (Fw16_set_clipboard_data): Setup members
13784 src_multibyte and dst_multibyte of coding. Adjusted for the
13785 change for find_charset_in_str.
13786 (Fw16_get_clipboard_data): Likewise.
13787
13788 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
13789 dst_multibyte of coding.
13790 (x_to_w32_font): Likewise.
13791
13792 * w32select.c (Fw32_set_clipboard_data): Setup members
13793 src_multibyte and dst_multibyte of coding. Adjusted for the
13794 change for find_charset_in_str.
13795 (Fw32_get_clipboard_data): Likewise.
13796
13797 * xdisp.c (get_next_display_element): Handle 8-bit characters
13798 correctly.
52283633
SM
13799 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
13800 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
13801
13802 * xselect.c (selection_data_to_lisp_data): Setup members
13803 src_multibyte and dst_multibyte of coding. Adjusted for the
13804 change for find_charset_in_str.
13805 (lisp_data_to_selection_data): Likewise.
13806
5f64c9e0
GM
138072000-05-19 Gerd Moellmann <gerd@gnu.org>
13808
52283633 13809 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 13810
5f64c9e0
GM
13811 * dispextern.h (Vimage_types): Add extern declaration.
13812
13813 * xdisp.c (Vimage_types): Moved here from xfns.c.
13814 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
13815
13816 * xfns.c (Vimages_types): Moved to xdisp.c.
13817 (syms_of_xfns): Move `image-types' to xdisp.c.
13818
13819 * w32fns.c (Vimage_types): Removed.
13820 (syms_of_w32fns): Remove `image-types'.
13821
813086ea
KH
138222000-05-18 Kenichi Handa <handa@etl.go.jp>
13823
13824 * fns.c (map_char_table): Pay attention to character number of
13825 charset. Check the validity of charset at the first level. For
13826 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
13827 the default value.
13828
13829 * fontset.c: Include "buffer.h".
13830 (fs_load_font): If the face has fontset, record the face ID in
13831 that fontset.
13832 (Finternal_char_font): New function.
13833 (accumulate_font_info): New function.
13834 (Ffontset_info): Rewritten for the new fontset implementation.
13835 (syms_of_fontset): Register Vdefault_fontset in the first element
13836 of Vfontset_table. Include Vdefault_fontset in
13837 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
13838 function.
13839
bdaebbf0
DL
138402000-05-16 Dave Love <fx@gnu.org>
13841
13842 * m/iris5d.h: Deleted -- unused.
13843
cb613bb8
GM
138442000-05-16 Gerd Moellmann <gerd@gnu.org>
13845
b15f3b77
GM
13846 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
13847 `invalid' instead of `illegal'.
13848
13849 * indent.c (Fmove_to_column): When ending within a tab, insert
13850 spaces first so that markers at the end of the tab get adjusted.
13851
835c1b36
GM
13852 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
13853 buffer list that wasn't selected in that frame.
13854
cb613bb8
GM
13855 * filelock.c (get_boot_time): To obtain an 8 char file name, which
13856 is needed on mescaline, use a 2 char prefix, and call
13857 make_temp_name with second arg non-zero.
13858
13859 * fileio.c (make_temp_name): New function, extracted from
13860 Fmake_temp_name.
13861 (Fmake_temp_name): Use it.
13862
f685bea9
EZ
138632000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13864
52283633 13865 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 13866
a1b8d58b
GM
138672000-05-15 Gerd Moellmann <gerd@gnu.org>
13868
13869 * Makefile.in (lisp): Add env.elc.
13870
13871 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
13872
a265079f
GM
138732000-05-12 Gerd Moellmann <gerd@gnu.org>
13874
13875 * search.c (Freplace_match): Handle case of `\N' in the
13876 replacement when there's no group N.
13877
da4496b6
GM
138782000-05-11 Gerd Moellmann <gerd@gnu.org>
13879
0ace421a
GM
13880 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
13881 of the message to message_dolog.
13882
1172eb8d
GM
13883 * keyboard.c (read_char): Don't clear current message for help
13884 events; let the code handling help events handle this. Change
13885 code detecting help events that should be ignored.
13886
da4496b6
GM
13887 * xdisp.c (handle_single_display_prop): Don't try to set PT if
13888 we're interating over a string.
13889
0623e40f
DL
138902000-05-09 Dave Love <fx@gnu.org>
13891
13892 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
13893 that offset before writing. Move gcpro region past call of
13894 Ffile_regular_p.
13895
bae2503b
DL
138962000-05-04 Dave Love <fx@gnu.org>
13897
13898 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
13899
ec82fb2f
GM
139002000-05-04 Gerd Moellmann <gerd@gnu.org>
13901
13902 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
13903 of inserted characters when BUF equals the current buffer, and PT
13904 is in front of or equal to FROM.
13905
cbf18892
GM
139062000-05-03 Gerd Moellmann <gerd@gnu.org>
13907
4ff40dd0
GM
13908 * xdisp.c (handle_single_display_prop): If display property value
13909 is invalid, or something not supported on the frame, restore
13910 iterator's position to what it was initially. Make sure to return
13911 0 for invalid and unsupported property values.
13912
cbf18892
GM
13913 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
13914 that x_per_char_metric returns null.
13915
1b0672c3
GM
139162000-05-02 Gerd Moellmann <gerd@gnu.org>
13917
576da55d
GM
13918 * xterm.h (struct face): Add forward declaration.
13919 (struct image): Ditto.
13920 (image_ascent): Add prototype.
13921
13922 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
13923 (x_draw_image_relief, x_draw_image_foreground_1): Call function
13924 image_ascent instead of using IMAGE_ASCENT.
13925
13926 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
13927 (IMAGE_ASCENT): Removed.
13928
13929 * xfns.c (Qcenter): New variable.
13930 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
13931 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
13932 (image_ascent): New function.
13933 (lookup_image): Recognize `:ascent center'.
13934 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
13935 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13936 (xbm_load): Don't set image's ascent here.
13937 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
13938 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
13939 check ascent values here.
13940 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
13941 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
13942 (syms_of_xfns): Initialize Qcenter.
13943
1b0672c3
GM
13944 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
13945 to the limits, increase the limits.
13946
0d7811ed
KH
139472000-05-01 Kenichi Handa <handa@etl.go.jp>
13948
13949 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 13950 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 13951
a943a5ca
GM
139522000-04-28 Gerd Moellmann <gerd@gnu.org>
13953
13954 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
13955 taller than the window.
13956
5dba1e29
KH
139572000-04-28 Kenichi Handa <handa@etl.go.jp>
13958
13959 * xfaces.c (realize_x_face): Fix the argument of the second
13960 xassert. BASE_FACE may not be a face for ASCII.
13961
353964e3
GM
139622000-04-27 Gerd Moellmann <gerd@gnu.org>
13963
c76e04a8
GM
13964 * print.c (print_object): Treat print-length < 0 as nil.
13965
13966 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
13967
13968 * s/freebsd.h (TERMCAP_OBJ): Removed.
13969 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
13970
13971 * lread.c (read1): Don't treat period followed by certain
13972 characters as symbol start.
13973
13974 * xfns.c (slurp_file): New function.
13975 (xbm_image_p): Handle case of in-memory XBM files.
13976 (xbm_scan): Rewritten to work on memory buffers instead of files.
13977 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
13978 Work on memory buffers instead of files. If DATA is null test
13979 if buffer looks like an in-memory XBM file.
13980 (xbm_load_image): Renamed from xbm_load_image_file. Work on
13981 memory buffers instead of files.
13982 (xbm_file_p): New function.
13983 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
13984
353964e3
GM
13985 * lread.c (end_of_file_error): New function.
13986 (read1): Call it instead of signaling `end-of-file' directly.
13987
427ec082 13988 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
13989 with Fprinc instead of Fprin1.
13990
24d744ac
KR
139912000-04-26 Ken Raeburn <raeburn@gnu.org>
13992
13993 * window.c (freeze_window_start): Check that minibuffer scroll
13994 window isn't nil before extracting the window structure pointer
13995 from it.
13996
13997 * undo.c (record_delete): If we hit the end of the undo list, stop
13998 picking elements apart.
13999
7464346d
GM
140002000-04-26 Gerd Moellmann <gerd@gnu.org>
14001
14002 * xdisp.c (display_line): If lines are continued, restore
14003 iterator's ascent/descent information to the values before the
14004 first glyph not fitting on the line.
14005
612839b6
GM
140062000-04-25 Gerd Moellmann <gerd@gnu.org>
14007
14008 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 14009 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
14010
14011 * dispnew.c (increment_matrix_positions): Renamed from
14012 increment_glyph_matrix_buffer_positions.
14013 (increment_row_positions): Renamed from
14014 increment_glyph_row_buffer_positions.
14015
14016 * dispextern.h: Change names of renamed functions from dispnew.c
14017 in prototypes.
14018
cc181e95
GM
140192000-04-24 Gerd Moellmann <gerd@gnu.org>
14020
abfcc168
GM
14021 * fileio.c (Fdo_auto_save): Create directories for auto-save
14022 list file if necessary.
14023
cc181e95
GM
14024 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
14025 from buffer or frame.
14026 (automatic_hscrolling_p): New variable.
14027 (hscroll_windows): Scroll windows horizontally only if automatic
14028 hscrolling is allowed.
14029 (syms_of_xdisp): New variable `automatic-hscrolling'.
14030
14031 * frame.h (struct frame): Add member extra_line_spacing.
14032
14033 * xfns.c (x_set_line_spacing): New function.
14034 (Fx_create_frame): Set line spacing from resources.
14035 (Qline_spacing): New variable.
14036 (syms_of_xfns): Initialize Qline_spacing.
427ec082 14037
cc181e95
GM
14038 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
14039
14040 * buffer.c (init_buffer_once): Handle extra_line_spacing.
14041 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 14042 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
14043 extra_line_spacing from default value.
14044 (init_buffer_once): Initialize default value of extra_line_spacing.
14045
14046 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
14047 and extra3.
14048
14049 * xterm.c (x_produce_glyphs): Remove reference to struct it's
14050 prompt_width. Add extra line spacing.
14051
14052 * term.c (produce_glyphs): Remove reference to struct it's
14053 prompt_width.
14054
14055 * dispextern.h (struct it): Remove member prompt_width, add
14056 extra_line_spacing.
14057
58827478
GM
140582000-04-22 Gerd Moellmann <gerd@gnu.org>
14059
14060 * dispnew.c (update_frame_line): When writing a whole line, make
14061 sure cursor is in the right row afterwards, otherwise a use of
14062 capability `ch' in cmgoto might leave the cursor in the row below.
14063
25a87f42
GM
140642000-04-21 Gerd Moellmann <gerd@gnu.org>
14065
14066 * lisp.h (struct Lisp_Buffer_Cons): Remove.
14067
14068 * keyboard.c (timer_check): Fix typo in comment.
14069
54edf5c2
KH
140702000-04-21 Kenichi Handa <handa@etl.go.jp>
14071
14072 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
14073 name change: ch -> character.
14074
3a64eef5
GM
140752000-04-20 Gerd Moellmann <gerd@gnu.org>
14076
14077 * keyboard.c (echo_message_buffer): New variable.
14078 (echo_now): Set echo_message_buffer to the echo area buffer used
14079 to display the echo.
14080 (cancel_echoing): Reset echo_message_buffer to nil.
14081 (read_char): Code rewritten that handles canceling an echo or
14082 echoing a dash, respectively.
14083
14084 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
14085 directory doesn't exist.
14086
6142fdcb
DL
140872000-04-19 Dave Love <fx@gnu.org>
14088
14089 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
14090 (concat): Don't allow numeric args.
14091 (Fconcat): Doc change.
6142fdcb 14092
ac6b5352
SM
140932000-04-19 Stefan Monnier <monnier@cs.yale.edu>
14094
14095 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
14096 instead define end_match(1|2) more carefully.
14097 Use GET_CHAR_BEFORE_2 for `begline'.
14098
cb9215e4
GM
140992000-04-19 Gerd Moellmann <gerd@gnu.org>
14100
5e3dac3f
GM
14101 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
14102 on 64-bit systems where NULL is defined as `0'.
14103
14104 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
14105 the `variable argument list' to make it work on Alpha.
14106
cb9215e4
GM
14107 * m/alpha.h (_LP64) [!_LP64]: Define.
14108 (ORDINARY_LINK): Define for NetBSD.
14109
14110 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 14111
f532dca0
DL
141122000-04-19 Dave Love <fx@gnu.org>
14113
c750667e
DL
14114 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
14115 change.
14116
14117 * Makefile.in (LIBS): Don't use.
14118 (GETLOADAVG_OBJ): Define again.
14119 (otherobj): Add GETLOADAVG_OBJ.
14120
f532dca0
DL
14121 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
14122
1c7e22fd
GM
141232000-04-18 Gerd Moellmann <gerd@gnu.org>
14124
f6d3257b
GM
14125 * lread.c (read_filtered_event): Cancel and start busy cursor.
14126
427ec082 14127 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
14128 that the per-character metrics may be null.
14129
e10f64e7
GM
141302000-04-17 Gerd Moellmann <gerd@gnu.org>
14131
0daee095
GM
14132 * buffer.c (clone_per_buffer_values): New function.
14133 (Fmake_indirect_buffer): Add optional argument CLONE. Call
14134 clone_per_buffer_values if CLONE is not nil.
14135
e10f64e7
GM
14136 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
14137
38687d43
DL
141382000-04-16 Dave Love <fx@gnu.org>
14139
14140 * Makefile.in: Remove obsolete localcpp stuff.
14141 (GETLOADAVG_OBJ): Don't define.
14142 (obj): Move LIBOBJS...
14143 (otherobj): ... to here.
14144 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
14145 whitespace-only lines after the continuation (Irix).
14146
c21c7262
GM
141472000-04-14 Gerd Moellmann <gerd@gnu.org>
14148
14149 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
14150
14151 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
14152
314767c0
DL
141532000-04-14 Dave Love <fx@gnu.org>
14154
14155 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
14156 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
14157 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
14158 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
14159 NLIST_STRUCT.
14160
14161 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
14162 autoconfiscated HAVE_GETLOADAVG.
14163
14164 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
14165 BROKEN_MKTIME.
14166
a2522dca
GM
141672000-04-14 Gerd Moellmann <gerd@gnu.org>
14168
14169 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 14170 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 14171
33744b5d
DL
141722000-04-14 Dave Love <fx@gnu.org>
14173
c21c7262 14174 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
14175 (INTERVAL_SRC): Convert to make variable.
14176 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
14177 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
14178 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
14179 add LIBOBJS.
14180 (SOME_MACHINE_OBJECTS): Remove interval stuff.
14181 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
14182 (shortlisp): Add facemenu, float-sup, frame.
14183 (SOME_MACHINE_LISP): Remove them from here.
14184 (LIBES): Change unused LDLIBS to autoconf LIBS.
14185
14186 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
14187
9d3d5916
KH
141882000-04-14 Kenichi Handa <handa@etl.go.jp>
14189
14190 * composite.c (update_compositions): If FROM and TO are not in a
14191 valid range, do nothing.
14192
198e3c7a
GM
141932000-04-13 Gerd Moellmann <gerd@gnu.org>
14194
52283633 14195 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 14196
52283633 14197 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
14198
14199 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
14200 as TERMCAP_OBJ.
14201
055a28c9
EZ
142022000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
14203
14204 * fileio.c (a_write): Remove redundant semi-colons.
14205 (e_write): Return -1 if failed to write all the data.
14206 This fixes the changes made at 1999-12-15.
14207
f5c75033
DL
142082000-04-12 Dave Love <fx@gnu.org>
14209
14210 * fns.c (mapcar1): Test for null vals to support mapc.
14211 (Fmapc): New function.
14212
0c3cfc51
EZ
142132000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
14214
14215 * msdos.c (NUM_MOUSE_BUTTONS): Define.
14216 (IT_frame_up_to_date): Support the buffer local value of
14217 cursor-type, if defined.
14218
33465a31
DL
142192000-04-10 Dave Love <fx@gnu.org>
14220
14221 * editfns.c (preceding-char, following-char): Doc fix.
14222
6ed56568
KR
142232000-04-10 Ken Raeburn <raeburn@gnu.org>
14224
14225 * Makefile.in (temacs): Revert 2000-03-12 change.
14226
7cf80d4e
JR
142272000-04-10 Jason Rumney <jasonr@gnu.org>
14228
14229 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
14230
34f3f342
GM
142312000-04-10 Gerd Moellmann <gerd@gnu.org>
14232
1a1b1895
GM
14233 * xdisp.c (setup_echo_area_for_printing): Choose an echo
14234 area buffer, if it's not set up yet.
14235
34f3f342
GM
14236 * indent.c (compute_motion): Set immediate_quit.
14237
be0dbdab
GM
142382000-04-09 Gerd Moellmann <gerd@gnu.org>
14239
52283633 14240 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
14241 (realize_tty_face): Suppress boldness if colors are the inverse of
14242 the default colors, and tty_suppress_bold_inverse_default_colors_p
14243 is set.
14244 (Ftty_suppress_bold_inverse_default_colors): New function.
14245 (syms_of_xfaces): Defsubr it.
14246
be0dbdab
GM
14247 * buffer.c (Frestore_buffer_modified_p): New function.
14248 (syms_of_buffer): Defsubr it.
14249
e8413c3b
KR
142502000-04-08 Ken Raeburn <raeburn@gnu.org>
14251
87f67317
KR
14252 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
14253 charset id (int) argument, not a charset (Lisp_Object).
14254
e8413c3b
KR
14255 * coding.h (code_convert_string): Declare.
14256 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
14257 object, as the fourth argument to code_convert_string.
14258
52283633 14259 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
14260 (Fset_fontset_font): Use EQ to compare lisp objects.
14261
7c752c80
KR
142622000-04-05 Ken Raeburn <raeburn@gnu.org>
14263
c0333abc
KR
14264 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
14265 a pointer that looks like a lisp object.
14266 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
14267 zero, instead see whether it's an integer object, since they can't
14268 have intervals.
14269 (GET_INTERVAL_OBJECT): Simply assign to the destination.
14270
52283633
SM
14271 * dispnew.c (allocate_matrices_for_frame_redisplay)
14272 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
14273 to convert between (unsigned) int values and lisp integers.
14274 * keyboard.c (read_key_sequence): Likewise.
14275 * lread.c (substitute_object_recurse): Likewise.
14276 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
14277 * minibuf.c (do_completion, Fminibuffer_complete_word)
14278 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
14279 * term.c (produce_special_glyphs): Likewise.
14280
14281 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
14282 * print.c (print_preprocess, print_object): Likewise.
14283
14284 * search.c (compile_pattern): Use NILP when checking for nil.
14285
74e49b38
KR
14286 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
14287 __OPTIMIZE__]: Provide a GNU C macro version that handles
14288 lisp-object unions.
14289 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
14290 field, to better cope with ENABLE_CHECKING and calls that modify a
14291 Lisp_Object using its old value.
14292
685e5ed2
GM
142932000-04-04 Gerd Moellmann <gerd@gnu.org>
14294
c407c570
GM
14295 * window.c (compare_window_configurations): Signal an error
14296 if parameters C1 or C2 aren't window configurations.
14297
685e5ed2
GM
14298 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
14299 AFTER_POTENTIAL_GC calls around calls to functions that can
14300 signal an error and thus invoke the debugger.
14301
587a49ab
GM
143022000-04-03 Gerd Moellmann <gerd@gnu.org>
14303
62f20204
GM
14304 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
14305 an error if decoding fails.
14306
587a49ab
GM
14307 * keyboard.c (lispy_mouse_names): Variable removed.
14308 (Vlispy_mouse_stem): New variable.
14309 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
14310 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
14311 for any mouse button number. Increase size of mouse_syms and
14312 button_down_location as needed. Call modify_event_symbol with
14313 different arguments.
14314 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
14315 Call modify_event_symbol with different arguments.
14316 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
14317 for any button number. Call modify_event_symbol with different
14318 arguments.
14319 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
14320 Accept a string for NAME_ALIST_OR_STEM.
14321
14322 * lisp.h (larger_vector): Add prototype.
14323
14324 * fns.c (larger_vector): Make externally visible.
14325
14326 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
14327
2d1675e4
SM
143282000-04-02 Stefan Monnier <monnier@cs.yale.edu>
14329
14330 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
14331 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
14332 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
14333 we are between str1 and str2.
14334 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
14335 (PATFETCH): Use `TRANSLATE'.
14336 (PATFETCH_RAW): Fetch multibyte char if applicable.
14337 (PATUNFETCH): Remove.
14338 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
14339 When writing a char, write it directly into the pattern buffer rather
14340 than going needlessly through a temp char-array.
14341 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
14342 multibyte magic and remove the useless `#ifdef emacs'.
14343 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
14344 buffer.
14345
14346 * regex.h (struct re_pattern_buffer): Make field `multibyte'
14347 conditional on `emacs'.
14348
14349 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
14350
cc2d8c6b
KR
143512000-04-01 Ken Raeburn <raeburn@gnu.org>
14352
14353 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
14354 non-union-type versions of XMARK and friends here, because XMARK
14355 and friends won't work on an integer field if NO_UNION_TYPE is not
14356 defined.
52283633 14357 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 14358
52283633 14359 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
14360 (syms_of_composite): Delete local var NARGS, pass an int as first
14361 argument to Fmake_hash_table.
14362
2387b382
KR
14363 * editfns.c (text_property_stickiness): Use NILP to test
14364 Lisp_Object boolean value.
14365 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
14366 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
14367 problems reading from and changing the same lisp value in an
14368 XSETSTRING call.
14369
27660e89
GM
143702000-04-01 Gerd Moellmann <gerd@gnu.org>
14371
14372 * term.c (TN_no_color_video): New variable.
14373 (term_init): Intitialize TN_no_color_video.
14374 (enum no_color_bit): New enumeration.
14375 (MAY_USE_WITH_COLORS_P): New macro.
14376 (turn_on_face): Use it to determine if attributes may be used
14377 combined with colors.
14378
3578db3c
KR
143792000-04-01 Ken Raeburn <raeburn@gnu.org>
14380
14381 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 14382 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
14383 (enlarge_window): Variable sizep now points to Lisp_Object. Use
14384 proper accessor macros.
14385 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
14386 (grow_mini_window): Fix typo getting int value of root->height.
14387
6fc556fd
KR
14388 * xdisp.c (compute_string_pos): Fix order of arguments to
14389 string_pos_nchars_ahead.
14390 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
14391 count arg to variable-arg routines like Frun_hook_with_args and
14392 Fformat.
587a49ab
GM
14393 (back_to_previous_visible_line_start)
14394 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
14395 fixed-arg routines like Fget_char_property and Fmake_string.
14396 (reconsider_clip_changes): Use XINT when comparing integer lisp
14397 objects, or passing them as int arguments.
587a49ab
GM
14398 (mark_window_display_accurate, insert_left_trunc_glyphs)
14399 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
14400 storing or passing integer values as lisp objects.
14401 (set_cursor_from_row, highlight_trailing_whitespace): Use
14402 INTEGERP, not implicit test against zero, for glyph object.
14403 (try_window_id): Don't use make_number when we want an int value.
14404
14405 * xfaces.c (xlfd_symbolic_value): Make last argument a
14406 Lisp_Object, to be consistent with callers.
14407 (Fbitmap_spec_p): Use XINT to get numeric value of height.
14408 (lface_hash): Apply XFASTINT to lisp values before folding in.
14409
14410 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
14411 fill in window width and height. Pass an int, not a lisp object,
14412 as first arg to Finsert.
14413
6e7b2457
GM
144142000-04-01 Gerd Moellmann <gerd@gnu.org>
14415
610d841e
GM
14416 * xfaces.c (realize_basic_faces): Block input while realizing
14417 the faces.
14418
6e7b2457
GM
14419 * keyboard.c (lispy_mouse_names): Add additional mouse names.
14420
14421 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
14422
aa110c0c
GM
144232000-03-31 Gerd Moellmann <gerd@gnu.org>
14424
14425 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 14426 or ASCII, handle case that per-char metric is null.
aa110c0c 14427
8801a864
KR
144282000-03-30 Ken Raeburn <raeburn@gnu.org>
14429
c6129d7e
KR
14430 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
14431
52283633
SM
14432 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
14433 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
14434 pointer, using eassert.
14435 * frame.h (XFRAME): Likewise.
14436
52283633
SM
14437 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
14438 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
14439 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 14440 * data.c (set_internal): Likewise.
52283633
SM
14441 * dispextern.h (WINDOW_WANTS_MODELINE_P)
14442 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
14443 * fileio.c (auto_save_1): Likewise.
14444 * insdel.c (check_markers): Likewise.
14445 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
14446 * undo.c (record_insert): Likewise.
14447 * vmsproc.c (child_sig): Likewise.
14448 * window.c (unshow_buffer, window_loop): Likewise.
14449 * xterm.c (x_erase_phys_cursor): Likewise.
14450
8e7af858
GM
144512000-03-30 Gerd Moellmann <gerd@gnu.org>
14452
14453 * xfns.c (free_image_cache): Free the cache structure itself
14454 last, after all its members have been freed.
14455
14456 * lisp.h (xstrdup): Add prototype.
14457
14458 * alloc.c (xstrdup): Moved here from xfaces.c.
14459 (allocating_for_lisp): Variable removed.
52283633 14460 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
14461
14462 * xfaces.c (realize_tty_face): Use find_symbol_value instead
14463 of Fsymbol_value.
14464 (xstrdup): Moved to alloc.c.
14465
e0b8c689
KR
144662000-03-29 Ken Raeburn <raeburn@gnu.org>
14467
b96f9fb7
KR
14468 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
14469
14470 * emacs.c (main): Fix sense of no-loadup test.
14471
e0b8c689
KR
14472 * config.in (ENABLE_CHECKING): Undef.
14473
14474 * lisp.h (struct interval): Replace "parent" field with a union of
14475 interval pointer and Lisp_Object; add new bitfield to use as
14476 discriminant. Change other flag fields to bitfields.
14477 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
14478 is defined and the supplied test fails, print a message and abort.
14479 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
14480
14481 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
14482 pointers; abort if the value looks like a lisp object.
52283633
SM
14483 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
14484 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
14485 Modify for new interval parent definition.
14486
52283633
SM
14487 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
14488 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
14489 addressable lisp object in the interval structure.
14490 (die): New function.
14491 (suppress_checking): New variable.
14492
14493 * intervals.c (interval_start_pos): Just return 0 if there's no
14494 parent object.
14495
f83c5440
GM
144962000-03-29 Gerd Moellmann <gerd@gnu.org>
14497
14498 * lread.c (read1): Accept `.' (period) as symbol start like in CL
14499 and earlier Emacs versions.
14500
14501 * keyboard.c (Ftop_level): Cancel busy-cursor.
14502
14503 * eval.c (call_debugger): Cancel busy-cursor.
14504
fdce64ff
KH
145052000-03-29 Kenichi Handa <handa@etl.go.jp>
14506
14507 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 14508 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 14509
f6a3f532
SM
145102000-03-28 Stefan Monnier <monnier@cs.yale.edu>
14511
14512 * regex.c (analyse_first): New function obtained by ripping out most
14513 of re_compile_fastmap and generalizing it a little bit so that it
14514 can also just return whether a given (sub)pattern can match the empty
14515 string or not.
14516 (regex_compile): Use `analyse_first' to decide whether the loop-check
14517 needs to be done or not for *, +, *? and +? (the loop check is costly
14518 for non-greedy repetition).
14519 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
14520
e9b309ac
DL
145212000-03-28 Dave Love <fx@gnu.org>
14522
52283633 14523 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 14524
e9b309ac
DL
14525 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
14526
ed0767d8
SM
145272000-03-27 Stefan Monnier <monnier@cs.yale.edu>
14528
14529 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
14530 an expression.
14531 (enum re_opcode_t): Update description of succeed_n.
14532 (PATFETCH): Always define.
14533 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
14534 operators, char classes, shy-groups and intervals).
14535 Optimize special cases of intervals so as to only use succeed_n and
14536 jump_n when really needed.
14537 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
14538 that we don't have to handle the special cases any more.
14539 Simplify on_failure_jump handling as well.
14540
e11e7e46
JR
145412000-03-28 Jason Rumney <jasonr@gnu.org>
14542
14543 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
14544
88faab89
GM
145452000-03-27 Gerd Moellmann <gerd@gnu.org>
14546
182ff242
GM
14547 * s/freebsd.h (GC_SETJMP_WORKS): Define.
14548
14549 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 14550
182ff242
GM
14551 * alloc.c (mark_maybe_object): New function.
14552 (mark_memory): Use it.
14553 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
14554 (setjmp_tested_p, longjmp_done): New variables.
14555 (test_setjmp): New function.
14556 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
14557 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
14558
c1005d06
GM
14559 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
14560 to DEC_TEXT_POS and INC_TEXT_POS.
14561
14562 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
14563 with parameter MULTIBYTE_P.
14564
52283633 14565 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 14566
7439e5b9 14567 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
14568 buffers because it looks for multibyte character byte sequences
14569 which don't exist in unibyte text.
7439e5b9 14570
d9c545da
GM
14571 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
14572
11fd416e 14573 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
14574 [DEBUG_X_COLORS]: New functions.
14575 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
14576
14577 * xfns.c (x_set_cursor_color): Get color reference counts right.
14578
14579 * xterm.c (x_copy_color): New function.
14580 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
14581
14582 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
14583 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
14584 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
14585 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
14586 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
14587 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
14588 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
14589 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
14590 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
14591 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
14592
11fd416e
GM
14593 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
14594 names for handling per-buffer variables.
d9c545da
GM
14595
14596 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
14597 instead of MAX_BUFFER_LOCAL_VARS.
14598 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
14599
14600 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
14601
88faab89
GM
14602 * xfns.c (x_specified_cursor_type): New function.
14603 (x_set_cursor_type): Use it.
14604
14605 * buffer.h (struct buffer): Add cursor_type.
14606
d80f42b7
SM
146072000-03-26 Stefan Monnier <monnier@cs.yale.edu>
14608
14609 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
14610 (print_partial_compiled_pattern, re_compile_fastmap):
14611 Handle new opcode.
d80f42b7
SM
14612 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
14613 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
14614 executing it as well as when popping it off the stack to find infinite
14615 loops in non-greedy repetition operators.
14616
89e80928
GM
146172000-03-26 Gerd Moellmann <gerd@gnu.org>
14618
3d4ff2dd
GM
14619 * doc.c (Qfunction_documentation): New variable.
14620 (syms_of_doc): Initialize Qfunction_documentation.
14621 (Fdocumentation): If FUNCTION is a symbol with non-nil
14622 `function-documentation' property, return a documentation derived
14623 from that.
14624
bd96bd79
GM
14625 * buffer.c (syms_of_buffer): Add default-cursor-type.
14626 (init_buffer_once): Don't let cursor_type have a local value
14627 in every buffer.
14628
19d1bc27
GM
14629 * xterm.c (x_display_and_set_cursor): Choose cursor depending
14630 on buffer-local value of cursor_type.
14631 (x_draw_bar_cursor): Add parameter WIDTH.
14632
14633 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
14634 (init_buffer_once): Set default cursor_type value to t.
14635 Mark cursor_type as local everywhere.
14636 (syms_of_buffer): New per-buffer variable cursor-type.
14637
89e80928
GM
14638 * buffer.h (struct buffer): Remove member local_var_flags,
14639 add local_flags.
14640 (MAX_BUFFER_LOCAL_VARS): New macro.
14641 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
14642 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
14643 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
14644 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
14645
52283633 14646 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
14647
14648 * category.c (Fset_category_table): Use new macros for per-buffer
14649 variables.
14650
14651 * buffer.c (buffer_permanent_local_flags): Make a char array.
14652 (max_buffer_local_idx): New variable.
14653 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
14654 for new handling of per-buffer variables.
14655 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
14656 (init_buffer_once): Initialize per-buffer vars differently.
14657 Set max_buffer_local_idx.
14658
14659 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
14660 variables.
14661
52283633 14662 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
14663
14664 * data.c (do_symval_forwarding, store_symval_forwarding)
14665 (find_symbol_value, set_internal, default_value, Fset_default)
14666 (Fkill_local_variable, Flocal_variable_p): Use new macros for
14667 per-buffer variables.
14668
14669 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
14670
9a0dd3dc
GM
146712000-03-24 Gerd Moellmann <gerd@gnu.org>
14672
b68c375f
GM
14673 * xterm.c (x_term_init): Unblock input around call1 of
14674 Qvendor_specific_keysyms.
14675
9a0dd3dc
GM
14676 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
14677 (find_defun_start): Consider an open parenthesis in column 0
14678 a defun start only if open_paren_in_column_0_is_defun_start is set.
14679 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
14680
7973e637
SM
146812000-03-24 Stefan Monnier <monnier@cs.yale.edu>
14682
14683 * eval.c (Fautoload): Add entry in load-history (if after dump).
14684 * lread.c (load-history): Update docstring.
14685
39210e90
GM
146862000-03-24 Gerd Moellmann <gerd@gnu.org>
14687
14688 * indent.c (Fvertical_motion): Always use the current buffer.
14689 Temporarily change the window's buffer, if necessary.
14690
72db3ab5
GM
146912000-03-23 Gerd Moellmann <gerd@gnu.org>
14692
14693 * xterm.c (fast_find_position): Make sure not to consider rows
14694 not visible in the window.
14695
990b2375
SM
146962000-03-22 Stefan Monnier <monnier@cs.yale.edu>
14697
14698 * regex.c (enum syntaxcode): Provide default for non-Emacs.
14699 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
14700
ff4df011
JR
147012000-03-22 Jason Rumney <jasonr@gnu.org>
14702
14703 * w32menu.c (single_submenu): Set help string to NULL if none.
14704 (w32_menu_show): Set help string correctly.
14705 (add-menu-item): Set help string in MIIM_DATA for menu item.
14706 Load SetMenuItemInfoA explicitly.
14707 (w32_menu_display_help): New function.
427ec082 14708
ff4df011
JR
14709 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
14710 (QCdata): Moved to xdisp.c.
14711
14712 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
14713 (Vw32_charset_to_codepage_alist): Removed.
14714 (Vw32_charset_info_alist): New variable.
52283633
SM
14715 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
14716 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
14717 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
14718 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
14719 with TODO comment.
14720 (w32_codepage_for_font): Use Vw32_charset_info_alist.
14721 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
14722 Define Vw32_charset_info_alist and w32_charset symbols.
14723
147242000-03-22 Jason Rumney <jasonr@gnu.org>
14725
14726 * makefile.nt (w32bdf.obj): Update dependencies.
14727
14728 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
14729
14730 * w32fns.c: Include fontset.h after dispextern.h.
14731 (Fx_create_frame): Do not create fontset.
14732 (w32_load_system_font): Doc fix.
14733 (Fx_close_connection): Free full_name if it is not shared.
14734
14735 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
14736 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
14737 Callers updated.
ff4df011
JR
14738 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
14739 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
14740 (w32_font_is_double_byte): New function, needs body.
14741 (x_append_glyph): Set glyph->glyph_not_available_p.
14742 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14743 it->charset. If it->multibyte_p is zero and it->c is a multibyte
14744 character, convert it to a unibyte character.
14745 (struct glyph_string): Delete member `charset'.
14746 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
14747 calculating it is found.
14748 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14749 the case that per char metric is not available correctly.
14750 (x_fill_glyph_string): Handle the case that the specific glyph is
14751 not available correctly.
14752 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14753 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14754 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14755 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14756 fontset. Don't call FS_LOAD_FONT.
14757
439d5cb4
KR
147582000-03-22 Ken Raeburn <raeburn@gnu.org>
14759
14760 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
14761 (INT_LISPLIKE): New macro.
14762 (NULL_INTERVAL_P): Use it.
52283633
SM
14763 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
14764 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
14765 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
14766
14767 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
14768 explicit references to "parent" field of struct interval and
14769 associated unclean type conversions.
52283633
SM
14770 * intervals.c (create_root_interval, root_interval, rotate_right)
14771 (rotate_left, balance_possible_root_interval, split_interval_right)
14772 (split_interval_left, interval_start_pos, find_interval)
14773 (next_interval, previous_interval, update_interval)
14774 (adjust_intervals_for_insertion, delete_node, delete_interval)
14775 (adjust_intervals_for_deletion, merge_interval_right)
14776 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
14777 (copy_intervals_to_string): Likewise.
439d5cb4
KR
14778 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
14779 Likewise.
14780 * syntax.c (update_syntax_table): Likewise.
14781
14782 * intervals.c (reproduce_tree_obj): New function, like
14783 reproduce_tree but takes a Lisp_Object for the parent. Declare
14784 with prototype.
14785 (graft_intervals_into_buffer): Use it when appropriate.
14786 (reproduce_tree): Declare with prototype.
14787 (balance_possible_root_interval): Check that the parent is a lisp
14788 object before trying to examine its type.
14789
ee1c5b21
GM
147902000-03-22 Gerd Moellmann <gerd@gnu.org>
14791
14792 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
14793 as strings only if both are known to be strings.
14794
14795 * s/openbsd.h (LIBS_TERMCAP): Undef.
14796
1fb352e0
SM
147972000-03-21 Stefan Monnier <monnier@cs.yale.edu>
14798
14799 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
14800 definitions for non-Emacs compilation.
14801 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
14802 outside of `#ifdef emacs'.
14803 (print_partial_compiled_pattern): Update.
14804 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
14805 (re_compile_fastmap): Merge handling of charset and charset_not (for
14806 emacs and non-emacs compilation as well).
14807 Similarly for (not)categoryspec and (not)syntaxspec.
14808 Don't use the fastmap when reaching `anychar' since the added
14809 complexity is not justified.
14810 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
14811 and (not)syntaxspec. Merge (not)categoryspec.
14812
fdaa1f77
KH
148132000-03-22 Kenichi Handa <handa@etl.go.jp>
14814
52283633
SM
14815 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
14816 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 14817 --without-x.
fdaa1f77 14818
d152fb46
DL
148192000-03-21 Dave Love <fx@gnu.org>
14820
14821 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
14822 doc string.
14823
d2cafc8c
GM
148242000-03-21 Gerd Moellmann <gerd@gnu.org>
14825
14826 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
14827 (lface_fully_specified_p): Don't check contents of
14828 LFACE_FONT_INDEX because that attribute is optional.
14829 (realize_x_face): Remove now unwarranted xassert.
14830
9111d4b5
KH
148312000-03-21 Kenichi HANDA <handa@etl.go.jp>
14832
14833 The following changes are to make font selection based on
14834 characters, not charset. In addition, they recover fontset
14835 facilities while utilizing the new font selection mechanism.
14836
6c4bfdc0
KH
14837 * Makefile.in (fontset.o): Depend on dispextern.h.
14838
14839 * alloc.c (mark_face_cache): Don't mark face->registry.
14840
9111d4b5
KH
14841 * dispextern.h (struct glyph): New member glyph_not_available_p.
14842 Use 22 bits for face_id.
14843 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
14844 (struct face): Delete member registry, new member ascii_face.
14845 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
14846 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
14847 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 14848 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
14849
14850 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
14851 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
14852 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
14853 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 14854 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
14855 (fs_free_face_fontset, fontset_font_pattern)
14856 (face_suitable_for_char_p, face_for_char)
14857 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
14858 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
14859 (FS_LOAD_FACE_FONT): New macro.
14860
14861 * fontset.c: All codes rewritten or adjusted for the change of
14862 fontset implementation. Now fontset is represented by char table.
52283633
SM
14863 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
14864 Variables removed.
9111d4b5 14865 (my_strcasecmp): Function removed.
52283633 14866 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 14867 (AREF, ASIZE): New macros.
52283633
SM
14868 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
14869 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
14870 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
14871 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
14872 (fontset_id_valid_p, font_family_registry, fontset_name)
14873 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
14874 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
14875 New functions.
14876 (fs_load_font): New arg FACE. Caller changed.
14877 (fs_query_fontset): Argument changed. Caller changed.
14878 (Fquery_fontset): call fs_query_fontset.
14879 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
14880 Functions removed.
52283633
SM
14881 (clear_fontset_elements, check_registry_encoding)
14882 (check_fontset_name): New functions.
9111d4b5
KH
14883 (syms_of_fontset): Set char-table-extra-slots property of fontset
14884 to 3. Staticpro and initialize Vfontset_table and
14885 Vdefault_fontset. Defsubr fontset_font and fontset_list.
14886
14887 * frame.h (struct frame): Member `fontset_data' removed.
14888 (FRAME_FONTSET_DATA): Macro removed.
14889
14890 * frame.c (make_frame): Don't allocate f->fontset_data.
14891 (Fdelete_frame): Don't free f->fontset_data.
14892
6c4bfdc0
KH
14893 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
14894
9111d4b5
KH
14895 * xdisp.c (charset_at_position): Function removed.
14896 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
14897 (handle_face_prop, reseat_to_string, set_iterator_to_next)
14898 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
14899 Likewise.
14900 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
14901 FACE_FOR_CHARSET.
52283633
SM
14902 (get_next_display_element, append_space)
14903 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
14904
14905 * xfaces.c (Qx_charset_registry, Vface_default_registry):
14906 Variables removed.
14907 (clear_font_table, frame_update_line_height, load_face_font):
14908 Adjusted for the change of fontset implementation.
14909 (load_face_fontset_font): Function removed.
14910 (pixel_point_size): New function.
14911 (font_list): Argument type changed. Caller changed.
14912 (LFACE_FONT): New macro.
14913 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
14914 (set_lface_from_font_name): Type of arg FONTNAME is changed to
14915 Lisp_Object. Determine the font name by actually loading a font
14916 by the specified pattern. Set LFACE_FONT (lface) to the specified
14917 pattern. Even if a font is not found, don't try alternatives.
14918 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
14919 (set_font_frame_param): If `font' is specified in lface, use it.
14920 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
14921 (lface_same_font_attributes_p): Likewise.
14922 (make_realized_face): Arguent changed. Caller changed. Set
14923 face->ascii_face to face itself.
14924 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
14925 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
14926 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
14927 (free_realized_multibyte_face): New function.
14928 (lookup_face, lookup_named_face, lookup_derived_face): Argument
14929 changed. Caller changed.
14930 (try_font_list): Argument type changed.
14931 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
14932 (choose_face_font): Argument changed. Handle fontset properly.
14933 (choose_face_fontset_font): Function removed.
14934 (realize_default_face, realize_named_face): Don't remove the
14935 former face here.
14936 (realize_face): Argument changed. Caller changed. Remove face
52283633 14937 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
14938 (realize_x_face): Argument changed. Caller changed. For a
14939 multibyte character, share fontset with base_face. For a single
52283633 14940 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
14941 (realize_tty_face): Argument changed. Caller changed.
14942 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
14943 (face_at_buffer_position): Don't check multibyte_p for returning
14944 DEFAULT_FACE_ID.
14945 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
14946 FACE_SUITABLE_FOR_CHARSET_P.
14947 (syms_of_xfaces): Remove code for Qx_charset_registry and
14948 Vface_default_registry.
14949
6c4bfdc0
KH
14950 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
14951 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
14952 (x_per_char_metric): Don't try FONT->default_char. Even if
14953 pcm->width is zero, glyph bits may exist.
14954 (x_encode_char): Always initialize char2b->byte1.
14955 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 14956 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
14957 (x_append_glyph): Set glyph->glyph_not_available_p.
14958 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14959 it->charset. Handle the case that per char metric is not
14960 available. If it->multibyte_p is zero and it->c is a multibyte
14961 character, convert it to a unibyte character.
14962 (struct glyph_string): Delete member `charset'.
14963 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14964 the case that per char metric is not available correctly.
14965 (x_fill_glyph_string): Handle the case that the specific glyph is
14966 not available correctly.
14967 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14968 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14969 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14970 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14971 fontset. Don't call FS_LOAD_FONT.
14972
14973 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
14974 (x_create_tip_frame): Likewise.
14975 (Fx_close_connection): Free full_name of font_info.
14976
14977 * fns.c (optimize_sub_char_table): New function.
14978 (Foptimize_char_table): New function.
14979 (syms_of_fns): Defsubr Soptimize_char_table.
14980
b33dd3b0
GM
149812000-03-20 Gerd Moellmann <gerd@gnu.org>
14982
14983 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
14984 only if buffer is displayed in some window.
14985
14986 * xdisp.c (handle_single_display_prop): Initialize local `value'.
14987 (try_window_reusing_current_matrix): Don't call scroll run
14988 function if run's current and desired position are the same;
14989 this prevents cursor flickering.
14990
4e8a9132
SM
149912000-03-19 Stefan Monnier <monnier@cs.yale.edu>
14992
14993 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
14994
14995 * regex.c (RE_STRING_CHAR): New macro.
14996 (GET_CHAR_AFER_2): Remove.
14997 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
14998 (enum re_opcode_t): Remove on_failure_jump_exclusive.
14999 (print_partial_compiled_pattern, re_compile_fastmap)
15000 (re_match_2_internal): Remove on_failure_jump_exclusive.
15001 (regex_compile): Turn optimizable P+ loops into PP*, so that the
15002 optimization only need to work for * (ie. can use of_keep_string_jump).
15003 Remove the special case for .*\n since it is now covered by the general
15004 optimization.
15005 (re_search_2): Don't bother with `room'.
15006 (skip_one_char): New function.
15007 (skip_noops): Simplify since `memory' is not needed any more.
15008 (mutually_exclusive_p): Restructure slightly to use `switch' and
15009 add handling for "all" remaining cases.
15010 (re_match_2_internal): Change on_failure_jump_smart to use
15011 on_failure_keep_string_jump (and redirect the end-of-loop jump)
15012 rather than on_failure_jump_exclusive.
15013
2136fdd4
GM
150142000-03-19 Gerd Moellmann <gerd@gnu.org>
15015
15016 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
15017 number of bits per RGB because it's everywhere used as the depth
15018 of the visual.
15019
15020 * term.c (calculate_costs): Remove code dealing with X frames.
15021
18e21ce8 150222000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
15023
15024 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
15025
d7b511c4
GM
150262000-03-18 Gerd Moellmann <gerd@gnu.org>
15027
15028 * lread.c (read_integer): Unread the last char not consumed.
15029
16b5d424
GM
150302000-03-17 Gerd Moellmann <gerd@gnu.org>
15031
15032 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 15033 which are in the process of being deleted.
16b5d424 15034
1fa28578
GM
150352000-03-16 Gerd Moellmann <gerd@gnu.org>
15036
83488cce
GM
15037 * Makefile.in (mostlyclean): Add `*.core'.
15038 (clean): Add `bootstrap-emacs'.
15039
1fa28578
GM
15040 * lread.c (read_integer): New function.
15041 (read1): Support read syntax #o, #x, #b, #r.
15042
99633e97
SM
150432000-03-15 Stefan Monnier <monnier@cs.yale.edu>
15044
1fa28578
GM
15045 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
15046 make sure POINTER_TO_OFFSET gives the same value before and after
15047 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
15048 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
15049 (debug): Now only active if > 0 rather than if != 0.
15050 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
15051 (print_partial_compiled_pattern): Add missing `succeed' case. Use
15052 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
15053 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
15054 (store_op1, store_op2, insert_op1, insert_op2)
15055 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
15056 (group_in_compile_stack): Move to after its arg's types are
15057 declared and add a prototype.
99633e97 15058 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 15059 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 15060 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
15061 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
15062 indentation of the greedy-op and shy-group code.
99633e97
SM
15063 (at_(beg|end)line_loc_p): Fix argument's types.
15064 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
15065 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
15066 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
15067 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
15068 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
15069 QUIT unconditionally.
99633e97 15070
699238d9
GM
150712000-03-15 Gerd Moellmann <gerd@gnu.org>
15072
15073 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
15074 a sole completion.
15075
15076 * process.c (send_process): Add a hint that the function
15077 can call Lisp code to its comment.
15078
15079 * lread.c (load_dangerous_libraries): New variable.
15080 (Vbytecomp_version_regexp): New variable.
15081 (safe_to_load_p): New function.
15082 (Fload): Handle files not compiled with Emacs specially.
15083 (syms_of_lread): New Lisp variable load-dangerous-libraries.
15084
34e23e5a
GM
150852000-03-14 Gerd Moellmann <gerd@gnu.org>
15086
9c763cca
GM
15087 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
15088
15089 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
15090 support functions only if HAVE_X11R6_XIM is defined.
15091 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
15092
15093 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
15094
15095 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 15096 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
15097 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
15098
15099 * config.in (HAVE_X_I18N): Moved here from xterm.h.
15100 (HAVE_X11R6_XIM): Define.
15101
15102 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
15103
34e23e5a
GM
15104 * xterm.c (x_term_init): Add support for X resource `synchronous'.
15105 If set, call XSynchronize.
15106
66f0296e
SM
151072000-03-13 Stefan Monnier <monnier@cs.yale.edu>
15108
34e23e5a
GM
15109 * regex.c: Declare a new type `re_char' used throughout the code
15110 for the string char type. It's `const unsigned char' to match the
15111 rest of Emacs. Consistently make sure all pointers to strings use
52283633 15112 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 15113 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
15114 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
15115 code duplication.
66f0296e
SM
15116
15117 * charset.h (GET_CHAR_AFTER_2): Remove.
15118 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
15119
854a025c
KR
151202000-03-12 Ken Raeburn <raeburn@gnu.org>
15121
15122 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
15123 variable before the invocation of YMF_PASS_LDFLAGS, in case both
15124 of them try to use backquotes.
15125
b9d2c7e2
DL
151262000-03-12 Dave Love <fx@gnu.org>
15127
15128 * unexelf.c: Restore changes of 1999-10-19.
15129 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
15130 fix its type and alignment; copy it from current process.
15131
5e5dff44
GM
151322000-03-12 Gerd Moellmann <gerd@gnu.org>
15133
9b2f3c38
GM
15134 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
15135 has been found. Fix bug not computing timer's predecessor.
15136
427ec082 15137 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
15138 file name.
15139
e1cff360
GM
15140 * window.c (Fsave_window_excursion): Doc fix.
15141
52283633 15142 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 15143
e411ce4b
EZ
151442000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
15145
15146 * msdos.c (vga_installed): New function, code moved from
15147 dos_set_window_size.
15148 (Qbar, Qcursor_type, outside_cursor): New variables.
15149 (syms_of_msdos): Intern and staticpro them.
15150 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
15151 shape used outside Emacs when called for the first time.
15152 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
15153 cursor shape used outside Emacs.
15154 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
15155 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
15156 type has changed.
15157 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
15158 parameters specify the cursor. Make qreverse a global
15159 variable (renamed to Qreverse).
15160
80460654
GM
151612000-03-09 Gerd Moellmann <gerd@gnu.org>
15162
15163 * fns.c (Fy_or_n_p): Cancel busy-cursor.
15164
95cd4c40
SM
151652000-03-08 Stefan Monnier <monnier@cs.yale.edu>
15166
15167 This is a big redesign of failure-stack and register handling, prompted
15168 by bugs revealed when trying to add shy-groups. Overall, what happened
15169 is that loops are now structured a little differently, groups can be
15170 shy and the code is a little simpler.
15171
15172 * regex.h: Update the copyright.
15173 (RE_SHY_GROUPS): New value.
15174 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
15175 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
15176
80460654
GM
15177 * regex.c (enum re_opcode_t): Remove jump_past_alt,
15178 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
15179 on_failure_jump_(exclusive, loop and smart). Also fix the comment
15180 for (start|stop)_memory since they now only take one argument (the
15181 second has becomes unnecessary).
52283633 15182 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
15183 (print_compiled_pattern): Use %ld to printf long ints and flush to
15184 make debugging a little easier.
95cd4c40
SM
15185 (union fail_stack_elt): Make the integer unsigned.
15186 (struct fail_stack_type): Add a `frame' element.
15187 (INIT_FAIL_STACK): Init `frame' as well.
15188 (POP_PATTERN_OP): New macro for re_compile_fastmap.
15189 (DEBUG_PUSH, DEBUG_POP): Remove.
15190 (NUM_REG_ITEMS): Remove.
15191 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
15192 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
15193 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 15194 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
15195 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
15196 New macros.
80460654
GM
15197 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
15198 address pushed is not the destination of the jump but the source
15199 of it instead.
95cd4c40
SM
15200 (NUM_FAILURE_ITEMS): Remove.
15201 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
15202 registers before the actual failure point). Don't hardcode any
15203 meaning for str==NULL anymore.
95cd4c40 15204 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
15205 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
15206 Remove.
95cd4c40
SM
15207 (REG_UNSET_VALUE): Use NULL (why not?).
15208 (compile_range): Remove declaration since it doesn't exist.
15209 (struct compile_stack_elt_t): Remove inner_group_offset.
15210 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
15211 (regex_grow_registers): Remove dead code.
15212 (FIXUP_ALT_JUMP): New macro.
80460654
GM
15213 (regex_compile): Add shy-groups Change loops to use
15214 on_failure_jump_smart&jump instead of
15215 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
15216 initial (dummy_failure_)jump. Remove c1_base (looks like unused
15217 variable to me). Use `jump' instead of `jump_past_alt' and don't
15218 bother with push_dummy_failure in alternatives since it is now
15219 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
15220 emacs' for (re)allocating the stack.
15221 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
15222 from loop when bufp->can_be_null rather than jumping to `done'.
15223 Avoid jumping backwards so as to ensure termination. Use
15224 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
15225 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 15226 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
15227 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
15228 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
15229 (lowest_active_reg, highest_active_reg)
15230 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
15231 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
15232 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
15233 variables. Push register (in `start_memory') on the stack rather
15234 than storing it in old_reg(start|end). Remove the cycle detection
15235 from `stop_memory', replaced by the use of on_failure_jump_loop
15236 for greedy loops. Add code for the new on_failure_jump_<foo>.
15237 Remove ad-hoc code in `on_failure_jump' to push more registers in
15238 the case of a loop. Take out code from `maybe_pop_jump' into
15239 separate functions and adapt it to the semantics of
15240 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
15241 and push_dummy_failure. Remove dummy_failure handling and
15242 handling of `failures to jump to on_failure_jump' (this last one
15243 was already dead code, it seems).
15244 (group_match_null_string_p, alt_match_null_string_p)
15245 (common_op_match_null_string_p): Remove.
95cd4c40 15246
7397acc4
DL
152472000-03-08 Dave Love <fx@gnu.org>
15248
15249 * config.in: Don't depend on __STDC__ for volatile.
15250 Add POINTER_TYPE, PTR, PROTOTYPES.
15251
15252 * hftctl.c, strftime.c: Use PROTOTYPES.
15253 * eval.c (find_handler_clause): Likewise.
15254
15255 * mem-limits.h: Use POINTER_TYPE.
15256
15257 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
15258 (memory_warnings): Declare using POINTER_TYPE.
15259
5e91ff9e
GM
152602000-03-08 Gerd Moellmann <gerd@gnu.org>
15261
feab4fba
GM
15262 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
15263
52283633 15264 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 15265
5e91ff9e
GM
15266 * xfns.c: Remove obsolete code in #if 0.
15267 (Fx_focus_frame): New function.
15268
a735b7e1
KH
152692000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
15270
15271 * coding.c (coding_category_name): Add coding-category-utf-8,
15272 coding-category-utf-16-be, coding-category-utf-16-le.
15273 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
15274 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
15275 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
15276 (detect_coding_utf_8): New function.
15277 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
15278 UTF_16_LOW_SURROGATE_P): New macros.
15279 (detect_coding_utf_16): New function
15280 (detect_coding_mask): When priorities are specified, skip any
15281 categories that have `nil' coding-system. Fix bug of returning
15282 wrong mask when PRIORITIES is specified and detect_coding_XXX()
15283 returns a mask not set in PRIORITIES.
15284 (detect_eol_type_in_2_octet_form): New function.
15285 (detect_eol): selects detect_eol_type_XXX to call according to
15286 cooding->category_idx.
15287 (detect_coding_system): Remove `nil' coding-system in the result.
15288 (Fupdate_coding_systems_internal): Update all coding-categories.
15289
52283633
SM
15290 * coding.h (CODING_CATEGORY_IDX_UTF_8)
15291 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
15292 New macros.
15293 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
15294 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
15295 (CODING_CATEGORY_IDX_UTF_16_LE)
15296 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
15297 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
15298 (CODING_CATEGORY_MASK_ANY): Include the above macros.
15299 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
15300
9994cc69
GM
153012000-03-07 Gerd Moellmann <gerd@gnu.org>
15302
e9b4e5ff
GM
15303 * doc.c (Fdocumentation_property): If value is not a string,
15304 and doesn't refer to etc/DOC, evaluate it to obtain a string.
15305
f7daf1e1
GM
15306 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
15307 close the display with XtCloseDisplay. This caused a bus error
15308 on OpenWindows.
15309
9994cc69
GM
15310 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
15311 complete but not unique.
15312
4336c705
GM
153132000-03-06 Gerd Moellmann <gerd@gnu.org>
15314
18bb0684
GM
15315 * process.c (send_process): Remove local variable `procname' that
15316 might become invalid when a GC happens. Instead, access the
15317 process name slot directly.
15318
4336c705
GM
15319 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
15320 orig_height if set.
15321
15322 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
15323 orig_height if set.
15324
515d0d0e
EZ
153252000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
15326
15327 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
15328 glyph matrices have been freed.
15329
100b3cbb
GM
153302000-03-05 Gerd Moellmann <gerd@gnu.org>
15331
50df5e5a 15332 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 15333 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
15334
15335 * xfns.c (QCdata): Moved to xdisp.c.
15336
15337 * xdisp.c (QCdata): Moved here from xfns.c.
15338 (syms_of_xdisp): Initialize QCdata.
15339
15340 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
15341
15342 * window.c (coordinates_in_window): Use
15343 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
15344 FRAME_INTERNAL_BORDER_WIDTH.
15345
100b3cbb 15346 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 15347 it is obviously invalid.
100b3cbb
GM
15348
15349 * xterm.c (x_term_init): Create a colormap if not using the
15350 default visual.
15351
15352 * xterm.h (select_visual): Change prototype.
15353
15354 * xfns.c (select_visual): Rewritten. Recognize user-specified
15355 visual classes.
15356 (visual_classes): New variable.
15357
64d739c4
GM
153582000-03-04 Gerd Moellmann <gerd@gnu.org>
15359
15360 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
15361 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
15362 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 15363 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
15364 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
15365 XtNcolormap resources.
15366 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
15367 (Fx_create_frame): Initialize color members of x_output structure.
15368 (xpm_load): Pass colormap to XPM lib.
15369
15370 * xfaces.c (x_free_colors): Access colormap of frame using
15371 FRAME_X_COLORMAP. Be paranoid about freeing black and white
15372 when default colormap is used.
15373
15374 * xterm.c (x_term_init): Set Colormap member of x_display_info
15375 structure. Copy colormap if resource `privateColormap' is
15376 specified (PseudoColor only).
15377 (x_setup_relief_color): Access colormap of frame using
15378 FRAME_X_COLORMAP.
15379
15380 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
15381 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
15382
c3cee013
JR
153832000-03-04 Jason Rumney <jasonr@gnu.org>
15384
15385 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
15386 other non-platform-specific equivalents.
64d739c4 15387 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
15388 specific functions and macros as their w32 equivalents where
15389 non-platform-specifics are not available.
15390 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
15391 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
15392 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
15393 (frame_update_line_height): Use macros to access f->output_data.
15394 (defined_color): Remove FIXME comments; fixed.
15395 (x_face_list_fonts, prepare_face_for_display): Put X specifics
15396 into #ifdef blocks. Add WINDOWSNT blocks.
15397 (Fx_list_fonts): Use macros for accessing font data.
15398 (set_lface_from_font_name): Different default fonts for X and
15399 WINDOWSNT.
15400 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
15401 scalable for backward compatibility.
64d739c4 15402 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
15403 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
15404
64d739c4 15405 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
15406 syms_of_w32faces.
15407
15408 * makefile.nt (w32faces.obj): Remove.
15409 (xfaces.obj): Add.
15410
807cc41c
JR
154112000-03-03 Jason Rumney <jasonr@gnu.org>
15412
15413 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
15414 correct parameters.
15415
0007072a
KR
154162000-03-03 Ken Raeburn <raeburn@gnu.org>
15417
15418 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
15419 standard ELF definitions here if the system header does not.
15420
71a6ba55
GM
154212000-03-03 Gerd Moellmann <gerd@gnu.org>
15422
15423 * xterm.c (PER_CHAR_METRIC): Removed.
15424 (x_per_char_metric_1, x_default_char): New functions.
15425 (x_per_char_metric): If font's default char is invalid, return
15426 metrics of a suitably chosen usable default char.
15427 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
15428 char, replace occurrences of unprintable chars with a suitably
15429 chosen usable default char.
71a6ba55 15430
900fa1f1
GM
154312000-03-02 Gerd Moellmann <gerd@gnu.org>
15432
42f55fe0
GM
15433 * xterm.c (note_mouse_highlight): Return quickly if frame's
15434 glyph matrices have been freed.
15435
15436 * dispnew.c (free_glyphs): Block input while freeing matrices.
15437
900fa1f1
GM
15438 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
15439
52283633
SM
15440 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
15441 Use x_free_colors.
900fa1f1
GM
15442
15443 * dispextern.h (x_free_colors): Add prototype.
15444
15445 * xfaces.c (x_free_colors): New function.
15446 (unload_color, free_face_colors): Use it.
15447
2f950292
EZ
154482000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
15449
15450 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
15451
15452 * window.c [MSDOS]: Include msdos.h.
15453
54d04320
DL
154542000-03-02 Dave Love <fx@gnu.org>
15455
15456 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
15457
15458 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
15459 set C_OPTIMIZE_SWITCH for gcc.
15460
0ba93ac4
KH
154612000-03-02 Kenichi Handa <handa@etl.go.jp>
15462
15463 * coding.c (coding_save_composition): Be sure to allocate
15464 composition data area in coding even if there's no composition in
15465 the current run.
15466
a2bc11d4
JR
154672000-03-01 Jason Rumney <jasonr@gnu.org>
15468
15469 * w32term.c: Equivalent changes to those made to xterm.c on
15470 2000-02-25 and 2000-02-24.
15471
15472 * w32fns.c: Equivalent changes to those made to xfns.c on
15473 2000-02-25 and 2000-02-21.
15474
15475 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
15476 correct line-end convention is followed.
15477
15478 * w32menu.c [HAVE_BOXES]: Remove #undef.
15479 (single_keymap_panes): Remove code for simulating checkmarks.
15480 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
15481 Remove code for drawing simulated checkmarks.
15482 (w32_menu_show): make unibyte help string correctly.
15483 (add_menu_item): draw standard Windows checkmarks. Draw radio
15484 buttons as radio buttons if possible.
15485
72d19d75
GM
154862000-03-01 Gerd Moellmann <gerd@gnu.org>
15487
2df636f4
GM
15488 * sysdep.c (start_of_text): Don't define this function for NetBSD
15489 with ELF.
15490
427ec082 15491 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
15492 Don't define.
15493 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
15494 (LINKER): Don't undef if __NetBSD__ is defined.
15495
15496 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
15497
15498 * fileio.c [__NetBSD__]: Define `unix'.
15499
72d19d75
GM
15500 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
15501
ed4d0512
GM
155022000-02-29 Gerd Moellmann <gerd@gnu.org>
15503
50b1039f
GM
15504 * atimer.c (start_atimer): Don't abort when timers are stopped.
15505 (append_atimer_lists): New function.
15506 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
15507 arbitrary lists of stopped and running atimers.
15508
ed4d0512
GM
15509 * atimer.c (cancel_atimer): Handle canceling an atimer when
15510 some timers are stopped.
15511
15512 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
15513 after canceling it.
15514
15515 * fns.c (maybe_resize_hash_table): Handle case of new size
15516 coming out as being the same as old size.
15517
387023ee
JR
155182000-02-27 Jason Rumney <jasonr@gnu.org>
15519
15520 * makefile.nt: Add atimer.h to dependencies.
15521 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
15522 * w32console.c: Only disable window system features for dispextern.h
15523 (initialize_w32_display): Build a display info for the console.
15524 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
15525 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
15526 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
15527 as 2 button mice.
15528 * w32gui.h (struct W32FontStruct): Revert last change after change
15529 to xdisp.c.
15530 * w32menu.c (single_submenu): Set up help string.
15531 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
15532 (w32_dialog_show): Set up help string.
15533 * w32term.c (w32_display_info_for_display): Remove unused function.
15534 (w32_draw_bitmap): Use pre-built bitmaps.
15535 (w32_initialize_display_info): New function to initialize parts of
15536 display info that are common to both GUI and console frames.
15537 (w32_term_init): Use w32_initialize_display_info. Do not set
15538 Vw32_num_mouse_buttons here, as it is not called for console
15539 frames. Build bitmaps for indicating truncated lines etc.
15540 (x_delete_display): Destroy pre-built bitmaps.
15541 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
15542 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
15543
4516715a
DL
155442000-02-27 Dave Love <fx@gnu.org>
15545
15546 * lisp.h: Add a bunch of prototypes.
15547
171ca836
KH
155482000-02-26 Kenichi Handa <handa@etl.go.jp>
15549
15550 * keyboard.c (read_char): Set `usec' correctly.
15551
4013921d
KH
155522000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
15553
15554 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
15555 `lambda', set reg[RRR] to the map index.
15556 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
15557 reg[RRR] to 0. Otherwise, set it to -1.
15558
9244a058
GM
155592000-02-25 Gerd Moellmann <gerd@gnu.org>
15560
2df636f4 15561 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 15562
18e21ce8 155632000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 15564
f43d79c1
GM
15565 * fileio.c (Ffile_symlink_p): If result starts with a `/'
15566 and contains a `:', prepend `/:'.
15567
15568 * window.c (select_window_1): If selected_window is nil,
15569 don't "swap out" the buffer's point.
15570 (Fset_window_configuration): Set selected_window to nil
15571 before calling Fselect_window.
15572 (unshow_buffer): Don't set point in buffer from window's point
15573 if another more recently selected window also shows the buffer.
15574
bed0c171
GM
155752000-02-25 Gerd Moellmann <gerd@gnu.org>
15576
449c3c52
GM
15577 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
15578
f5b58615
GM
15579 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
15580 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
15581 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
15582 New variables.
f5b58615
GM
15583 (DEFAULT_BUSY_CURSOR_DELAY): New define.
15584 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
15585 (hide_busy_cursor): New functions.
15586 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
15587
15588 * minibuf.c (read_minibuf): Cancel busy-cursor.
15589
15590 * keyboard.c (command_loop_1): Call start_busy_cursor before
15591 Fcommand_execute and cancel_busy_cursor after it.
15592 (timer_check): Remove busy-cursor code.
15593 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
15594 cursor timer.
15595
15596 * process.c (wait_reading_process_input): Remove busy-cursor code.
15597
15598 * eval.c (Fsignal): Call cancel_busy_cursor instead of
15599 Fx_hide_busy_cursor.
15600
15601 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
15602 Remove prototyoes.
15603 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
15604
15605 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
15606
15607 * xterm.c (XTread_socket): Remove busy-cursor code.
15608
4eb8436f
GM
15609 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
15610 (build_frame_matrix_from_leaf_window): Put code handling
15611 glyph row's not being a slice of a frame row in #if 0.
15612 (sync_window_with_frame_matrix_rows): New function.
15613 (frame_row_to_window): New function.
15614 (mirror_line_dance): Handle copies between windows.
15615
3cb65b0e
GM
15616 * lread.c (Fload): Use `xfree' instead of `free'.
15617 (init_obarray): Use `xmalloc' instead of `malloc'.
15618
bed0c171
GM
15619 * window.c (Fset_window_buffer): Set WINDOW to the window
15620 after decoding.
2add4349
GM
15621 (coordinates_in_window): Take frame's internal border width
15622 into account.
bed0c171 15623
42088c12
GM
156242000-02-24 Gerd Moellmann <gerd@gnu.org>
15625
15626 * xterm.c (x_display_and_set_cursor): Display cursor of
15627 non-selected windows depending on the setting of
15628 cursor_in_non_selected_windows.
15629
15630 * xdisp.c (cursor_in_non_selected_windows): New variable.
15631 (syms_of_xdisp): DEFVAR_BOOL it.
15632
d1e103b2
GM
156332000-02-23 Gerd Moellmann <gerd@gnu.org>
15634
723e779c
GM
15635 * data.c (Fstring_to_number): If number is greater than what
15636 fits into an integer, return a float.
15637
d1e103b2
GM
15638 * eval.c (specbind): Remove references to
15639 keyword_symbols_constant_flag.
15640
15641 * data.c (keyword_symbols_constant_flag): Removed.
15642 (Fmakunbound, set_internal, syms_of_data): Remove references to
15643 keyword_symbols_constant_flag.
15644
15645 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
15646
214f877f
KH
156472000-02-23 Kenichi Handa <handa@etl.go.jp>
15648
15649 * syntax.c (multibyte_syntax_as_symbol): New variable.
15650 (syms_of_syntax): Declare it as a Lisp variable.
15651 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
15652 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
15653 nonzero, treat all multibyte characters as symbol.
52283633 15654 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 15655
130adcb7
EZ
156562000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15657
3cb65b0e 15658 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 15659 a deleted frame.
130adcb7 15660
17cbbf95
GM
156612000-02-21 Gerd Moellmann <gerd@gnu.org>
15662
15663 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
15664
15665 * xfns.c (x_window_to_frame, x_any_window_to_frame)
15666 (x_non_menubar_window_to_frame): Check the busy-cursor window.
15667
beb0bc36
DL
156682000-02-21 Dave Love <fx@gnu.org>
15669
15670 * frame.c (Vmouse_position_function): New variable.
15671 (Fmouse_position): Use it.
15672 (syms_of_frame): Install it.
15673
15674 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
15675
1d92afcd
GM
156762000-02-20 Gerd Moellmann <gerd@gnu.org>
15677
15678 * fileio.c (Finsert_file_contents): Unbind the binding of
15679 standard-output done by temp_output_buffer_setup.
329eed9f
GM
15680
15681 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
15682 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
15683 (specbind, unbind_to): Handle most common case of non-constant
15684 symbol with trivial value specially.
15685
15686 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
15687
18e21ce8 156882000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
15689
15690 * data.c (Fmake_variable_buffer_local): Doc fix.
15691 Init found_for_buffer to 0.
15692 (Fmake_variable_frame_local): If the variable has already
15693 been buffer-local, set the check_frame field.
15694
1d4311c3
EZ
156952000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
15696
15697 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
15698 produced for CODING_MODE_LAST_BLOCK requires.
15699
2dc95ddd
DL
157002000-02-18 Dave Love <fx@gnu.org>
15701
15702 * keyboard.c (echo_keystrokes): Remove declaration.
15703 (Vecho_keystrokes) New variable.
15704 (read_char, record_menu_key, read_key_sequence): Use it to allow
15705 use of float value.
15706 (syms_of_keyboard): Change Vecho_keystrokes declaration.
15707
15708 * lread.c: Undef feature selection macros before defining.
15709
f0930f35
GM
157102000-02-18 Gerd Moellmann <gerd@gnu.org>
15711
15712 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
15713 for symbols other than the symbol in question.
15714
e3d4de90
DL
157152000-02-17 Dave Love <fx@gnu.org>
15716
15717 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
15718
0b378936
GM
157192000-02-17 Gerd Moellmann <gerd@gnu.org>
15720
d621caf7
GM
15721 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
15722
0b378936
GM
15723 * alloc.c (enum mem_type): Compile unconditionally.
15724
3b451f74
EZ
157252000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
15726
15727 * xfaces.c (tty_defined_color): Don't return faulire indication
15728 for unspecified-fg and unspecified-bg pseudo-colors.
15729
10689a01
GM
157302000-02-17 Gerd Moellmann <gerd@gnu.org>
15731
1216f5e4
GM
15732 * alloc.c (mark_object): Don't mark symbol names in pure space.
15733 (gc_sweep): Don't unmark symbol names in pure space.
15734
15735 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
15736 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
15737 [GC_MARK_STACK]: New defines.
427ec082 15738 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
15739 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
15740
15741 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
15742
15743 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
15744 allocate_buffer instead of xmalloc.
15745
15746 * alloc.c (toplevel): Include setjmp.h.
15747 (PURE_POINTER_P): New define.
15748 (enum mem_type) [GC_MARK_STACK]: New enumeration.
15749 (Vdead) [GC_MARK_STACK]: New variable.
15750 (lisp_malloc): Add parameter TYPE, call mem_insert if
15751 GC_MARK_STACK is defined.
15752 (allocate_buffer): New function.
427ec082 15753 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
15754 (free_float) [GC_MARK_STACK]: Set type to Vdead.
15755 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
15756 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
15757 (MEM_NIL) [GC_MARK_STACK]: New define.
15758 (struct mem_node) [GC_MARK_STACK]: New structure.
15759 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
15760 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
15761 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
15762 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
15763 (mark_stack) [GC_MARK_STACK]: New functions.
15764 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
15765 (clear_marks): Removed.
15766 (gc_sweep): Set free conses' car, free floats' type, free
15767 symbols' function to Vdead. Use lisp_free to free buffers.
15768 (init_alloc_once): Initialize Vdead.
15769 (survives_gc_p): Return non-zero for pure objects.
15770
15771 * alloc.c: Add comments throughout the file.
15772
2503c8b1
GM
15773 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
15774 that unblocks alarms.
15775
8389e1e2
GM
15776 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
15777 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
15778 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
15779
10689a01 15780 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 15781
bfc17d18
KH
157822000-02-17 Kenichi Handa <handa@etl.go.jp>
15783
4a09dee0
KH
15784 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
15785 avoid infinite error signaling. Allocate sufficient memory for
15786 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 15787
2b927d02
SM
157882000-02-17 Stefan Monnier <monnier@cs.yale.edu>
15789
15790 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
15791 depends on the previous behavior.
15792
b49cb764
GM
157932000-02-16 Gerd Moellmann <gerd@gnu.org>
15794
15795 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
15796
99e95407
GM
157972000-02-15 Gerd Moellmann <gerd@gnu.org>
15798
15799 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
15800
15801 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 15802 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
15803 write(2).
15804
6ffd3cf7
RS
158052000-02-15 Richard M. Stallman <rms@gnu.org>
15806
15807 * data.c (set_internal): Don't make variable buffer-local
15808 if within a let-binding for the same buffer.
15809 (let_shadows_buffer_binding_p): New function.
15810
15811 * eval.c (specbind): For buffer-local value,
15812 record the current buffer also.
15813 (unbind_to): Cope with that change.
15814
cad53475
GM
158152000-02-15 Gerd Moellmann <gerd@gnu.org>
15816
15817 * window.c (Fsave_window_excursion): Doc fix.
15818
1aa963c8
SM
158192000-02-15 Stefan Monnier <monnier@cs.yale.edu>
15820
15821 * syntax.c (back_comment): Make sure we only consider comment-starters
15822 of the relevant style and return -1 in case of a failure to find the
15823 beginning of the comment.
15824 (Fforward_comment): If back_comment fails, go back to the position just
15825 after the comment-end.
15826 (scan_lists): Add comment describing a very minor bug.
15827
b9b84fd3
SM
158282000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15829
15830 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
15831 `completion-regexp-list' in the docstring.
15832
3a28db80
DL
158332000-02-14 Dave Love <fx@gnu.org>
15834
15835 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
15836
fb4a568d
SM
158372000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15838
15839 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
15840 to Emacs' syntax. Also fix the comment about set/not-set meanings
15841 since Emacs syntax is not the value 0 any more.
15842 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
15843 since it's now part of RE_SYNTAX_EMACS.
15844
1063ebb5
DL
158452000-02-12 Dave Love <fx@gnu.org>
15846
52283633 15847 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 15848
fb07a302
GM
158492000-02-12 Gerd Moellmann <gerd@gnu.org>
15850
15851 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
15852
aaf2320c
DL
158532000-02-12 Dave Love <fx@gnu.org>
15854
15855 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
15856
15857 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
15858 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
15859 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
15860
15861 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
15862
15863 * s/nextstep.h: Don't define HAVE_ALLOCA.
15864
15865 * config.in: Add vfork bits.
15866
eedf8bde
GM
158672000-02-12 Gerd Moellmann <gerd@gnu.org>
15868
15869 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
15870 unwind function to undo the effect of stopping atimers.
15871
52283633 15872 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
15873
15874 * atimer.c (stopped_atimers): New variable.
15875 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
15876 New functions.
15877
15878 * atimer.h (stop_other_atimers, run_all_atimers)
15879 (unwind_stop_other_atimers): Add function prototypes.
427ec082 15880
eedf8bde
GM
15881 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
15882
8476c2f8
KR
158832000-02-11 Ken Raeburn <raeburn@gnu.org>
15884
15885 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
15886 library may depend on jpeg.
15887 (atimer.o): Depends on atimer.c.
15888
0e85e4a3
KH
158892000-02-11 Kenichi Handa <handa@etl.go.jp>
15890
15891 * insdel.c (del_range_1): Call update_compositions.
15892 (del_range_both): Call update_compositions just once..
15893
97fa0cc8
DL
158942000-02-10 Dave Love <fx@gnu.org>
15895
15896 * xfns.c (create_frame_xic): Fix initialization of automatic
15897 aggregates for pcc.
15898
25566a3c
KH
158992000-02-09 Kenichi Handa <handa@etl.go.jp>
15900
15901 * ccl.c (CCL_MAKE_CHAR): New macro.
15902 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
15903 registers by CCL_MAKE_CHAR before calling translate_char.
15904 <CCL_TranslateCharacterConstTbl> Likewise.
15905
69da54ba
DL
159062000-02-08 Dave Love <fx@gnu.org>
15907
15908 * lread.c (__EXTENSIONS__): Define.
15909
f7136ee8
GM
159102000-02-08 Gerd Moellmann <gerd@gnu.org>
15911
15912 * puresize.h (BASE_PURESIZE): Increase to 650000.
15913
7768790b
EZ
159142000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15915
15916 * msdos.c (XMenuActivate): Turn off the cursor after displaying
15917 the help message.
15918
38fd211b
EZ
159192000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15920
15921 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
15922 md, mh, mb, mr, and me to the fake termcap entry.
15923
66e4690f
KR
159242000-02-06 Ken Raeburn <raeburn@gnu.org>
15925
15926 * sound.c (sound_cleanup): Don't call device close routine if the
15927 function pointer is null.
15928
a75dfea0
AI
159292000-02-06 Andrew Innes <andrewi@gnu.org>
15930
15931 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
15932 around image definitions and prototypes.
15933 (gamma_correct) [WINDOWSNT]: New prototype.
15934
15935 * w32term.c (x_make_frame_visible): Replace call to
15936 input_poll_signal with poll_for_input.
15937
15938 * window.c [WINDOWSNT]: Include w32term.h.
15939
15940 * xdisp.c [WINDOWSNT]: Include w32term.h.
15941
15942 * makefile.nt: Add dependencies on w32gui.h.
15943 (OBJ1): Include atimer.obj.
15944 ($(BLD)\atimer.obj): New dependency rule.
15945
15946 * w32.c (sigmask): New function (does nothing).
15947 (sigunblock): Ditto.
15948
15949 * frame.c [WINDOWSNT]: Include w32term.h.
15950
15951 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
15952
15953 * lread.c (syms_of_lread): Fix literal newlines.
15954
15955 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
15956 the string constant limit (2048 bytes) in MSVC.
15957 (main): Ditto.
15958
59ddecde
GM
159592000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
15960
52283633 15961 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
15962 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
15963 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
15964 dispatch the event.
15965
07590973
DL
159662000-02-04 Dave Love <fx@gnu.org>
15967
15968 * fileio.c: Remove some unused vars.
15969 (_GNU_SOURCE): Define (for euidaccess).
15970
15971 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
15972
15973 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
15974 gcpro1, gcpro2.
15975 (read_minibuf): Deal with allow_props correctly.
15976
649351f9
EZ
159772000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
15978
15979 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
15980
66e4690f 159812000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
15982
15983 * search.c (compile_pattern): If a cache entry has a nil regexp,
15984 fill in that entry instead of clobbering a previously cached
15985 string regexp.
15986
66e4690f 159872000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
15988
15989 * puresize.h (BASE_PURESIZE): Increase to 610000.
15990
d240a249
GM
159912000-02-02 Gerd Moellmann <gerd@gnu.org>
15992
15993 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
15994 can GC.
15995
ca91fb26
KH
159962000-02-02 Kenichi Handa <handa@etl.go.jp>
15997
25660570
KH
15998 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
15999 instead of incrementing ic directly.
16000 <CCL_WriteExprConst> Likewise.
16001 <ccl_set_expr>: Set ic to jump_address.
16002
ca91fb26
KH
16003 * fileio.c (e_write): Fix the handling of
16004 CODING_FINISH_INSUFFICIENT_SRC.
16005
2ede9689
DL
160062000-02-01 Dave Love <fx@gnu.org>
16007
16008 * editfns.c (Fpropertize): Doc fix.
16009
16010 * process.c (Fstart_process): Doc fix.
16011
16012 * eval.c: Fix various doc strings not to duplicate information
16013 from help-manyarg-func-alist.
16014
52283633 16015 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
16016
16017 * doc.c (Vhelp_manyarg_func_alist): New variable.
16018 (Fdocumentation): Use it.
16019 (syms_of_doc): Define it.
16020
b6680a0e
GM
160212000-01-31 Gerd Moellmann <gerd@gnu.org>
16022
2cb750ba
GM
16023 * xterm.c (xim_open_dpy): Remove unused local variable.
16024
52283633 16025 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
16026
16027 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
16028 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
16029
b6680a0e
GM
16030 * fns.c (sweep_weak_table): New function.
16031 (sweep_weak_hash_tables): Use it. Keep on marking until there
16032 is no more change.
16033
994c5afe
GM
160342000-01-30 Gerd Moellmann <gerd@gnu.org>
16035
16036 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
16037 that XTread_socket does not crash by trying to call XNoOp on a
16038 closed display.
427ec082 16039
f00276e3
JR
160402000-01-30 Jason Rumney <jasonr@gnu.org>
16041
16042 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
16043 Change selected_frame to SELECTED_FRAME ().
16044 (w32_console_mouse_position): Remove #ifndef MULE from around
16045 `insist' parameter.
16046
16047 * makefile.nt: Remove dosfns.obj.
16048
16049 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
16050
16051 * w32fns.c (w32_defined_color): Check for valid frame before
16052 applying gamma correction. Eliminate dependency on frame elsewhere.
16053 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
16054 (w32_to_x_font): Use resx and resy not height_in and width_in.
16055 (x_to_w32_font): Doc fix.
16056 (xlfd_strip_height): New function to strip and return font height.
16057 (w32_font_match): Compare height separately from rest of xlfd
16058 spec, using xlfd_strip_height.
16059
16060 * w32term.c (w32_term_init): Swap resx and height_in, resy and
16061 width_in. Use w32_defined_color in place of defined_color.
16062
16063 * w32faces.c: Merge more of DOS and X specifics in preparation for
16064 merge with xfaces.c.
16065 (defined_color): Remove FIXME comment.
16066 (tty_color_name): Provide w32-specific function.
16067 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
16068
16069 * w32console.c (turn_on_face, turn_off_face): Removed.
16070 (w32_face_attributes): New function.
16071 (Global_variables): Reduce scope where possible.
16072 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
16073 fill attribute.
16074 (hl_mode): Don't modify text attributes.
16075 (write_glyphs): Don't do anything if len <= 0. Use
16076 w32_face_attributes to get attributes for drawing. Write
16077 terminating codes using char_attr_normal.
16078 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
16079 (update_begin, update_end): Likewise.
16080 (vga_stdcolor_name): New function.
16081 (initialize_w32_display): Remove char_attr_reverse and char_attr.
16082 (Fset_screen_color): Remove char_attr_reverse.
16083
b08e8bb2
GM
160842000-01-29 Gerd Moellmann <gerd@gnu.org>
16085
16086 * xfns.c (xic_set_preeditarea): Take window parameter and
16087 window-relative pixel-positions.
16088
16089 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
16090 is its frame's selected window.
16091 (xim_instantiate_callback): Likewise.
16092
16093 * xfns.c (x_create_im): Removed.
16094 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
16095 (supported_xim_styles): Renamed from supported_styles.
16096 (best_xim_style): Renamed from best_style.
16097 (create_frame_xic): Renamed from xic_create_frame.
16098 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 16099
b08e8bb2
GM
161002000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
16101
16102 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
16103 our frames, call XFilterEvent with 2nd parameter `None'.
16104 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
16105 returning XBufferOverflow.
52283633 16106 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
16107 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
16108 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
16109 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
16110 (xim_initialize, xim_close)
16111 [HAVE_X_I18N && HAVE_X11R6]: New functions.
16112 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
16113 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
16114 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
16115
16116 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
16117 and `xim_styles'.
16118 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
16119 `xic_style' and `xic_xfs'.
16120 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
16121 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
16122 (FRAME_XIM): Removed.
16123
16124 * xfns.c (supported_styles): New variable.
16125 (DEFAULT_STYLE, DEFAULT_FONT): New macros
16126 (xic_create_xfontset, best_style, xic_create_frame)
16127 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
16128 (xic_set_xfontset): New functions.
16129
142e109c
DL
161302000-01-28 Dave Love <fx@gnu.org>
16131
16132 * s/irix6-5.h: Revert last change after change to irix5-0.h.
16133
16134 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
16135
b02786f9
GM
161362000-01-28 Gerd Moellmann <gerd@gnu.org>
16137
d060bc9f
GM
16138 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
16139 for *scratch* if it already existed.
16140
b02786f9
GM
16141 * emacs.c (USAGE): New macro.
16142 (main): Use it to display usage information.
16143
2c52d7e4
EZ
161442000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
16145
16146 Support for the menu-help feature:
16147
52283633 16148 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
16149
16150 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
16151 part of the line to the termscript file.
16152 (IT_clear_to_end): Clear the entire line, not just its beginning.
16153 (menu_help_message, prev_menu_help_message): New variables.
16154 (IT_menu_make_room): Make room for the help_text member.
16155 (IT_menu_display): New argument disp_help; all callers changed.
16156 If disp_help is non-zero, store the help text of the active menu
16157 item in menu_help_message.
16158 (XMenuAddPane): Initialize the help_text member to NULL.
16159 (XMenuAddSelection): New argument help_text. Store it in the
16160 XMenu structure.
16161 (XMenuActivate): New argument help_callback. If the value of
16162 menu_help_message has changed since the last time, display the
16163 menu help message text while waiting for the mouse to move. Clear
16164 the echo area before exiting.
16165 (XMenuDestroy): Free the help_text member.
16166
ffe0bcd1
GM
161672000-01-27 Gerd Moellmann <gerd@gnu.org>
16168
16169 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
16170 XMenuAddSelection. Pass help callback to XMenuActivate.
16171 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
16172
50dbd23f
EZ
161732000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
16174
16175 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
16176 and EMACS_SET_USECS.
16177
f5941bf8
GM
161782000-01-26 Dave Love <fx@gnu.org>
16179
6c67ddee
DL
16180 * editfns.c (Fchar_after, Fchar_before): Doc fix.
16181
f5941bf8
GM
16182 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
16183 an error may be signalled.
16184
9e49c990
GM
161852000-01-26 Gerd Moellmann <gerd@gnu.org>
16186
fc3cb460
GM
16187 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
16188 LD_SWITCH_SYSTEM inherited from irix5-0.h.
16189
9e49c990
GM
16190 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
16191
d0c037d8
GM
161922000-01-25 Gerd Moellmann <gerd@gnu.org>
16193
16194 * charset.c (Fstring): If there is a multibyte char among
16195 the args, always return a multibyte string.
16196
e12489f9
GM
161972000-01-25 Gerd Moellmann <gerd@gnu.org>
16198
16199 * sysdep.c (sys_select): Turn atimers off and on instead of
16200 recording and restoring old alarm handler
16201
16202 * process.c (toplevel): Include atimer.h.
16203 (create_process_1): Rewritten.
16204 (create_process): Use atimers instead of alarm.
16205 (wait_reading_process_input) [hpux]: Turn atimers off instead
16206 of turning off SIGALRM.
16207 (wait_reading_process_input): Turn off atimers instead off
16208 calling stop_polling.
16209
16210 * emacs.c (main): Call init_atimer.
16211
16212 * keyboard.c (toplevel): Include systime.h and atimer.h.
16213 (polling_for_input): Removed because unused.
16214 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
16215 (poll_timer): New variable.
16216 (poll_for_input, poll_for_input_1): New functions.
16217 (start_polling, stop_polling): Rewritten.
16218
16219 * keyboard.h (polling_for_input): Removed.
427ec082 16220
e12489f9
GM
16221 * atimer.h, atimer.c: New files.
16222
16223 * Makefile.in (obj): Add atimer.o.
16224 (atimer.o): New target.
16225
16226 * blockinput.h (pending_atimers): Add extern declaration.
16227 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
16228
16229 * lisp.h (popup_activated_flag): Add extern declaration.
16230
16231 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 16232 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
16233 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
16234
16235 * xterm.c (toplevel): Include atimer.h.
16236 (toolkit_scroll_bar_interaction): New variable.
16237 (Fxt_process_timeouts): Removed.
16238 (x_process_timeouts): New function.
16239 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
16240 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
16241 (x_make_frame_visible): Call poll_for_input_1 instead of
16242 input_poll_signal. Don't call alarm.
16243 (x_initialize): Install timer calling x_process_timeouts.
427ec082 16244
1e5279b9
DL
162452000-01-24 Dave Love <fx@gnu.org>
16246
6c67ddee 16247 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
16248 Don't use -cckr -- apparently not now necessary.
16249
edf6aeb8
EZ
162502000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
16251
16252 * msdos.c (IT_menu_display): Truncate long menu lines at the right
16253 screen boundary.
16254
9badad41
JR
162552000-01-23 Jason Rumney <jasonr@gnu.org>
16256
16257 * w32fns.c (w32_defined_color): Apply gamma correction before
16258 trying to map to the palette.
16259 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
16260 to w32_clear_rect.
16261
16262 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
16263 here. Callers changed to always pass real device context.
16264 (w32_draw_bitmap): Likewise.
16265 (w32_get_glyph_overhangs): Likewise.
52283633 16266 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
16267 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
16268 pfnSetScrollInfo and SetScrollRange.
16269 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
16270 back into MULE characters after decoding them.
16271 (x_get_glyph_face_and_encoding): Likewise.
16272 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
16273 GetCharABCWidthsW fails, since this is defined on Windows 9x.
16274 (x_produce_glyphs): Calculate per char metrics for a character
16275 that we know exists in default font when font_not_found_p is true.
16276
63bd786b
JR
162772000-01-22 Jason Rumney <jasonr@gnu.org>
16278
16279 * makefile.nt (intervals.obj, composite.obj): New modules.
16280 (composite.h): Added as dependency where appropriate.
16281
16282 * w32gui.h (XGCValue): New struct for emulating X GCs.
16283
16284 * w32term.h (XCharStruct): New struct for emulating X.
16285
16286 * w32console.c (turn_on_face, turn_off_face): New functions.
16287 (change_line_highlight): New prototype for new redisplay.
16288 (write_glyphs): Support multibyte text. Support faces.
16289
52283633 16290 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
16291
16292 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
16293 throughout. struct frame * in place of FRAME_PTR.
16294 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 16295 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
16296 (w32_get_arg): Renamed from x_get_arg.
16297 (Fx_file_dialog): New function.
16298 (w32_list_fonts): Check cache before asking system.
16299 (Vw32_enable_synthesized_fonts): New variable.
16300 (Vw32_enable_italics): Obsolete, removed.
16301
16302 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
16303 Use SELECTED_FRAME macro.
16304
16305 * w32menu.c: Add skeleton support for help strings on menus.
16306 (add_menu_item): Native checkbox and radio support added, but not
16307 yet enabled due to bugs.
16308 (push_menu_item): Add parameters type, selection and help.
16309 Callers updated.
16310 Formatting changes to reduce unnecessary diffs with xmenu.c.
16311
16312 * w32select.c (Fw32_set_clipboard_data): Update call to
16313 find_charset_in_str.
16314
16315 * w32term.c: Complete rewrite for new redisplay based on new
16316 xterm.c with necessary sections merged back in from old w32term.c.
16317
6ffd3cf7 163182000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
16319
16320 * data.c (set_internal): Further fix in same criterion.
16321
6ffd3cf7 163222000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
16323
16324 * data.c (set_internal): Fix the criteria for whether
16325 to swap out the old cached binding.
16326
60af03f1
DL
163272000-01-19 Dave Love <fx@gnu.org>
16328
16329 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
16330
f9be074f
KH
163312000-01-18 Kenichi Handa <handa@etl.go.jp>
16332
16333 * regex.c (re_compile_fastmap): While checking a range table for
16334 `charset', skip flag bits for a character class correctly.
16335
52b8dbf9
GM
163362000-01-17 Gerd Moellmann <gerd@gnu.org>
16337
d36100c9
GM
16338 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
16339
52283633 16340 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
16341
16342 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 16343 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
16344
16345 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
16346 MENU_ITEMS_ITEM_.*.
16347 (MENU_ITEMS_ITEM_HELP): New enumerator.
16348 (push_menu_item): Add parameter HELP. Record help in menu_items.
16349 (single_menu_item, single_submenu, list_of_items): Call
16350 push_menu_item with new parameter.
16351 (single_submenu): Set help string in widget value.
16352 (menu_highlight_callback): New function.
16353 (set_frame_menubar): Call lw_create_widget with new
16354 parameter list.
16355 (xmenu_show, xdialog_show): Ditto.
16356
3139018f
GM
163572000-01-13 Gerd Moellmann <gerd@gnu.org>
16358
16359 * sound.c (Fplay_sound): Improve doc string.
16360
83c8f461
RS
163612000-01-11 Richard M. Stallman <rms@gnu.org>
16362
16363 * lisp.h (set_internal): Enter the new arg.
16364
16365 * eval.c (specbind): Record buffer-local variables specially,
16366 indicating which buffer's binding was saved.
16367 (unbind_to): Restore buffer-local variables specially
16368 in the proper buffer.
16369
16370 * data.c (set_internal): New arg BUF.
427ec082 16371
83c8f461
RS
16372 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
16373 * data.c (Fset): Pass new arg to set_internal.
16374 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 16375
1fab1775
GM
163762000-01-11 Gerd Moellmann <gerd@gnu.org>
16377
52283633 16378 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 16379
83c8f461 163802000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
16381
16382 * minibuf.c (Ftry_completion): Doc fix.
16383
7a85e4df
GM
163842000-01-11 Gerd Moellmann <gerd@gnu.org>
16385
16386 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
16387 vector, too.
16388
a970dae4
AS
163892000-01-11 Andreas Schwab <schwab@suse.de>
16390
16391 * coding.c (code_convert_region): Initialize total_skip.
16392
c65d14ee
DL
163932000-01-08 Dave Love <fx@gnu.org>
16394
16395 * eval.c (Fuser_variable_p): Check customizability too.
16396
834938d2
GM
163972000-01-07 Gerd Moellmann <gerd@gnu.org>
16398
16399 * minibuf.c (Fcompleting_read): Doc fix.
16400
e0303cd6
GM
164012000-01-05 Gerd Moellmann <gerd@gnu.org>
16402
8a26744b
GM
16403 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
16404 -L /usr/local/lib.
16405
e0303cd6
GM
16406 * xfns.c (x_create_im): New function to set IM and IC of a frame.
16407 Check that input style is supported before trying to create an
16408 IC for it.
16409 (x_window): Call x_create_im.
427ec082 16410
2e471eb5
GM
164112000-01-04 Gerd Moellmann <gerd@gnu.org>
16412
560a7bd2
GM
16413 * xfns.c (current_gif_memory_src): New variable.
16414 (gif_load): Record the address of the current memory source
16415 in current_gif_memory_src.
16416 (gif_read_from_memory): Use current_gif_memory_src.
16417
f9ee84a3
GM
16418 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
16419 macros statement form.
16420
d1299cde
GM
16421 * sound.c (struct sound): Renamed from struct sound_file.
16422 (struct sound): Add members `data' and `header_size'.
16423 (enum sound_attr): Add SOUND_DATA.
16424 (current_sound, current_sound_device): Variables renamed from
16425 sound_file and sound_device.
16426 (parse_sound): Parse :data.
16427 (parse_sound): Handle sound data in strings.
16428 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 16429 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
16430 needed header size.
16431 (wav_play, au_play): Play sounds from string data.
16432
2e471eb5
GM
16433 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
16434
16435 * lisp.h: Add prototype for allocate_string_data.
16436
52283633 16437 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
16438
16439 * alloc.c (mark_buffer): Remove code in #if 0.
16440 (gc_sweep): Ditto.
16441 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
16442 (strings_consed): New variable.
16443 (allocate_string): Set it.
16444 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
16445 (Fmemory_use_counts): Return strings_consed. Use Flist.
16446
16447 * alloc.c: General cleanup in comments etc. Remove conditional
16448 compilation for `standalone'.
16449
16450 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
16451
16452 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
16453 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
16454 (DONT_COPY_FLAG): Removed.
16455 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
16456 (struct sdata, struct sblock): New
16457 (struct string_block): Rewritten.
16458 (STRINGS_IN_STRING_BLOCK): New macro.
16459 (oldest_sblock, current_sblock, total_strings, total_free_strings)
16460 (large_sblocks, string_blocks, string_free_list): New variables.
16461 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
16462 (init_strings): Rewritten.
16463 (allocate_string, allocate_string_data, compact_small_strings)
16464 (free_large_strings, sweep_strings): New functions.
16465 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
16466 (struct string_block_head, current_string_block)
16467 (first_string_block, large_string_blocks, STRING_FULLSIZE)
16468 (STRING_PAD): Removed.
16469 (make_uninit_multibyte_string, make_pure_string): Rewritten.
16470 (Fgarbage_collect): Don't set mark bit in large strings.
16471 (mark_object): Mark strings differently. Mark symbol names
16472 differently.
16473 (survives_gc_p): Test marked strings differently.
427ec082 16474 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
16475 symbol names.
16476 (compact_strings): Removed.
16477
42608ba8
EZ
164782000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
16479
16480 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
16481 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
16482
e0a09e1a
KH
164832000-01-04 Kenichi Handa <handa@etl.go.jp>
16484
dd9f0750 16485 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 16486 in a non-empty buffer.
dd9f0750 16487
3c0f3b15 16488 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 16489
44cd3ae5
GM
164902000-01-03 Gerd Moellmann <gerd@gnu.org>
16491
16492 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
16493 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
16494
16495 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
16496
c182a70f
EZ
164972000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16498
16499 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
16500 need to test for MSDOS frames.
16501
24480d5b
EZ
165022000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16503
16504 * dosfns.c (unspecified_colors): Remove.
16505 (msdos_stdcolor_idx): Use global variables unspecified_fg and
16506 unspecified_bg.
16507 (msdos_stdcolor_name): Return strings for unspecified fore- and
16508 back-ground colors.
16509
16510 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 16511 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
16512 (tty_color_name): Return Lisp strings for unspecified fore- and
16513 back-ground colors.
16514 (Finternal_set_lisp_face_attribute): Remove the special treatment
16515 for Qunspecified_{f,b}g.
52283633 16516 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 16517
047f434a
GM
165182000-01-03 Gerd Moellmann <gerd@gnu.org>
16519
16520 * xdisp.c (reseat_at_next_visible_line_start): Position before
16521 newline only if ending up on a newline.
16522 (next_element_from_ellipsis): Return success. Handle case of
52283633 16523 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
16524 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
16525 returns 0.
16526
d684c676
EZ
165272000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16528
16529 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
16530 (Fcolor_supported_p): Renamed from face-color-supported-p.
16531
5fe1d139
EZ
165322000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16533
16534 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
16535 list of colors renamed to tty-defined-color-alist.
16536 (tty_color_name): Pass the frame to tty-color-by-index.
16537 (realize_tty_face): tty-color-alist is now a function which
16538 accepts the frame as argument.
16539
52283633 16540 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 16541
816be8b8
EZ
165422000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16543
16544 * term.c (insert_glyphs): Pass glyph, not &glyph, to
16545 encode_terminal_code.
16546
b635321e
EZ
165472000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16548
16549 * dispnew.c (mode_line_string): Support termcap frames as well.
16550
9b784e96
GM
165512000-01-01 Gerd Moellmann <gerd@gnu.org>
16552
27189709
GM
16553 * syntax.c (Fforward_word): Undo previous change.
16554
16555 * editfns.c (Fconstrain_to_field): Don't constrain if
16556 inhibit-field-text-motion is non-nil.
16557 (Fline_beginning_position): Undo previous change.
16558 (Fline_end_position): Ditto.
16559
16560 * syntax.c (Fforward_word): Notice field boundaries only if
16561 inhibit-field-text-motion is nil.
16562
16563 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
16564
16565 * editfns.c (Vinhibit_field_text_motion): New variable.
16566 (inhibit-field-text-motion): New DEFVAR_LISP.
16567 (Fline_beginning_position, Fline_end_position): Notice field
16568 boundaries only if inhibit-field-text-motion is nil.
16569
45158a91
GM
16570 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
16571 All calls adjusted.
16572 (x_build_heuristic_mask): Likewise.
16573 (xbm_load_image_from_file): Change error output.
16574 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
16575 (gif_load, gs_load, x_kill_gs_process): Ditto.
16576
9b784e96
GM
16577 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
16578 color indices when accessing raster pixels.
63cec32f
GM
16579 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
16580 one of :file or :data.
16581 (enum pbm_keyword_index): Add PBM_DATA.
16582 (pbm_format): Add :data.
16583 (pbm_image_p): Allow either :file or :data.
16584 (pbm_read_file): New function.
16585 (pbm_scan_number): Rewritten to read from string.
16586 (pbm_load): Support :data.
9b784e96 16587
2cb085db 16588See ChangeLog.8 for earlier changes.
6922b018
KH
16589
16590;; Local Variables:
49b3bd82 16591;; coding: iso-2022-7bit
6922b018 16592;; End:
2a34a036
GM
16593
16594 Copyright (C) 2001 Free Software Foundation, Inc.
16595 Copying and distribution of this file, with or without modification,
16596 are permitted provided the copyright notice and this notice are preserved.