(define-charset): New args :min-code and :max-code.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d40413a6
KH
12002-05-29 Kenichi Handa <handa@etl.go.jp>
2
1929453f
KH
3 * charset.h (enum define_charset_arg_index): New enums
4 charset_arg_min_code and charset_arg_max_code.
d40413a6
KH
5 (struct charset): New member char_index_offset.
6
7 * charset.c (CODE_POINT_TO_INDEX): Take charset->char_index_offset
8 into account.
9 (INDEX_TO_CODE_POINT): Likewise.
10 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
11 args[charset_arg_max_code]. Setup charset.char_index_offset.
12 (syms_of_charset): Fix args to Fdefine_charset_internal.
13
b0edb2c5
DL
142002-05-27 Dave Love <fx@gnu.org>
15
16 * coding.c (decode_coding_utf_8): Reject overlong sequences.
17
182002-05-26 Dave Love <fx@gnu.org>
d88a0654
DL
19
20 * coding.c: Doc fixes.
21 (Fcoding_system_aliases): Fix return value.
22 (Qmac): Remove (duplicated) definition.
23
8004cc7b
DL
242002-05-25 Dave Love <fx@gnu.org>
25
76ed8f14
DL
26 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
27 functions.
28
29 * character.c (Fstring): Doc fix.
30
528623a0
DL
31 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
32
8004cc7b
DL
33 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
34 ids.
35 (font-encoding-alist): Doc fix.
36
505af245
DL
372002-05-24 Dave Love <fx@gnu.org>
38
39 * term.c (costs_set): Declare static, non-initialized for pcc.
40 (encode_terminal_code): Remove ensued var.
41
42 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
43 for K&R.
44
45 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
46
47 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
48 (suffixes): Moved out of make_subsidiaries for K&R.
49
50 * charset.c (map_charset_chars): Fix c_function declaration for
51 K&R.
52
53 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
54
d6afde6c
DL
552002-05-23 Dave Love <fx@gnu.org>
56
57 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
58
59 * category.c (Fmodify_category_entry): Doc fix. Remove unused
60 vars.
61
f9d71dcd
KH
622002-05-23 Yong Lu <lyongu@asia-infonet.com>
63
64 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
65
66 * coding.c (Fdefine_coding_system_internal): Fix previous change.
67 (decode_coding_charset): Workaround for the bug of GCC 2.96.
68
3776772e
KH
692002-05-23 Kenichi Handa <handa@etl.go.jp>
70
71 * Makefile.in (lisp): Change cyrillic.elc to cyrillic.el,
72 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
73 (shortlisp): Likewise.
74
b0a1e45e
KH
752002-05-22 Kenichi Handa <handa@etl.go.jp>
76
435b59f6
KH
77 * coding.c (decode_coding_charset): Adjusted for the change of
78 Fdefine_coding_system_internal.
79 (Fdefine_coding_system_internal): For a coding system of
80 `charset' type, store a list of charset IDs in
81 `charset_attr_charset_valids' element of coding attributes.
82
b0a1e45e
KH
83 * charset.c (Fmake_char): Fix previous change.
84
781d7a48
KH
852002-05-21 Kenichi Handa <handa@etl.go.jp>
86
87 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
88 (emacs_mule_char): New arg src. Delete arg `composition'. Caller
89 changed. Handle 2-byte and 3-byte charsets correctly.
90 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from
91 DECODE_EMACS_MULE_COMPOSITION_RULE. Caller changed.
92 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
93 (DECODE_EMACS_MULE_21_COMPOSITION): Call
94 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
95 sequence.
96 (decode_coding_emacs_mule): Handle composition correctly. Rewind
97 `src' and `consumed_chars' correctly before calling
98 emacs_mule_char.
99 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
100 and alt&rule composition.
101 (decode_coding_iso_2022): Handle composition correctly.
102 (init_coding_once): Setup emacs_mule_bytes for private charsets.
103
104 * charset.c (Fdefine_charset_internal): Fix bug for the case of
105 re-defining a charset. If the charset has :emacs-mule-id, setup
106 emacs_mule_bytes.
cd9c1e8f
KH
107 (Fmake_char): If CODE1 is nil, use the minimum code of the
108 charset.
781d7a48 109
0e56a02d
KH
1102002-05-20 Kenichi Handa <handa@etl.go.jp>
111
112 * coding.c (encode_coding_iso_2022): If coding requires safe
113 encoding, produce a character specified by
114 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
115 (encode_coding_sjis): Likewise.
116 (encode_coding_big5): Likewise.
117 (encode_coding_charset): Likewise.
118
e76af442
DL
1192002-05-17 Dave Love <fx@gnu.org>
120
121 * xterm.c (XSetIMValues): Declare.
122
123 * process.c: Conditionally include sys/wait.h, pty.h.
124
125 * print.c (print_object): Fix print format for 64-bit
126 systems.
127
128 * keyboard.c (modify_event_symbol): Fix print format for 64-bit
129 systems.
130
131 * buffer.c (emacs_strerror): Declare.
132 (MMAP_ALLOCATED_P, mmap_enlarge, syms_of_buffer): Import changes
133 from trunk.
134
135 * fontset.c (Fclear_face_cache): Declare.
136 (accumulate_font_info): Commented-out (unused).
137 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
138 variables.
139
140 * character.h (string_escape_byte8): Declare.
141
142 * charset.c (load_charset_map, load_charset_map_from_file): Remove
143 unused vars.
144 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
145 (Fmap_charset_chars): Doc fix.
146
147 * coding.c (Vchar_coding_system_table, Qchar_coding_system):
148 Removed.
149 (Fset_coding_system_priority, Fset_coding_system_priority)
150 (Fdefine_coding_system_internal): Doc fix.
151
b1603380
DL
1522002-05-16 Dave Love <fx@gnu.org>
153
154 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
155
cc5ac4b1
KH
1562002-05-16 Kenichi Handa <handa@etl.go.jp>
157
1cba5287
KH
158 * character.c (string_escape_byte8): Make multibyte string with
159 correct size.
160
cc5ac4b1
KH
161 * charset.c (Fmake_char): Delete unnecessary code.
162
b121a744
KH
1632002-05-14 Kenichi Handa <handa@etl.go.jp>
164
ac87bbef
KH
165 * xfns.c (x_encode_text): Allocate coding.destination here, and
166 call encode_coding_object with dst_object Qnil.
167
8c2fc311
KH
168 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
169 multibyte form correctly.
170
48728c92
KH
171 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
172 against Vfont_encoding_alist.
173
5afaefc1
KH
174 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
175 handling of charset list.
176 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
8c2fc311
KH
177 (decode_coding_object): Move point to coding->dst_pos before
178 calling post-read-conversion function.
b1603380 179 (encode_coding_object): Give correct arguments to
ac87bbef 180 pre-write-conversion. Ignore the return value of
1cba5287 181 pre-write-conversion function. Pay attention to the case that
b1603380 182 pre-write-conversion changes the current buffer. If dst_object is
ac87bbef
KH
183 Qt, even if coding->src_bytes is zero, allocate at least one byte
184 to coding->destination.
5afaefc1
KH
185
186 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
187
b121a744 188 * charset.c (Fmake_char): Make it more backward compatible.
5afaefc1 189 (Fmap_charset_chars): Fix docstring.
b121a744 190
356212fe
DL
1912002-05-13 Dave Love <fx@gnu.org>
192
193 * coding.c: Doc fixes.
194 (Fdefine_coding_system_alias): Use names, not symbols, in
195 coding-system-alist.
196
b2b3bb62
KH
1972002-05-13 Kenichi Handa <handa@etl.go.jp>
198
199 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
356212fe 200 of calling free_realized_face.
b2b3bb62 201
15d143f7
KH
2022002-05-10 Yong Lu <lyongu@asia-infonet.com>
203
204 * charset.c (load_charset_map): Fix previous change.
205 (read_hex): Don't treat SPC as a comment starter.
206 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return
207 -1.
208 (Fdecode_char): Fix typo.
209
2102002-05-10 Kenichi Handa <handa@etl.go.jp>
211
212 * charset.h (struct charset): New member `code_space_mask'.
213
214 * coding.c (coding_set_source): Delete the local variable
215 beg_byte.
216 (encode_coding_charset): Delete the local variable charset.
217 (Fdefine_coding_system_internal): Likewise.
218 (Fdefine_coding_system_internal): Setup
219 attrs[coding_attr_charset_valids] correctly.
220
221 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
222 member to check if CODE is valid or not.
223 (Fdefine_charset_internal): Initialize `code_space_mask' member.
224 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
225 is within the range of charset->min_code and carset->max_code.
226
b74e4686
DL
2272002-05-09 Dave Love <fx@gnu.org>
228
229 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
230
231 * dispextern.h (generate_ascii_font): Fix return type.
232
233 * xfaces.c (generate_ascii_font): Fix arg declaration.
234
235 * coding.c (coding_inherit_eol_type)
236 (Fset_terminal_coding_system_internal)
237 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
238
8efbba21
KH
2392002-05-08 Kenichi Handa <handa@etl.go.jp>
240
241 * coding.c (decode_coding_charset, encode_coding_charset): Handle
242 multiple charsets correctly.
243
1a0c5ca9
KH
2442002-05-07 Kenichi Handa <handa@etl.go.jp>
245
e4ac8240
KH
246 * search.c (boyer_moore): Fix handling of mulitbyte character
247 translation.
248
1a0c5ca9
KH
249 * xdisp.c (display_mode_element): When the variable `elt' is
250 changed, update `this' and `lisp_string'.
251
3d79abfb
KH
2522002-05-07 Kenichi Handa <handa@etl.go.jp>
253
254 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
255
256 * callproc.c (Fcall_process): Be sure to give the current buffer
257 to decode_coding_c_string. Update PT and PT_BYTE after the
258 insertion.
259
260 * charset.c (struct charset_map_entries): New struct.
261 (load_charset_map): Renamed from parse_charset_map. New args
262 entries and n_entries. Caller changed.
263 (load_charset_map_from_file): Renamed from load_charset_map.
264 Caller changed. New arg control_flag. Call load_charset_map at
265 the tail.
266 (load_charset_map_from_vector): New function.
267 (Fdefine_charset_internal): Setup charset.compact_codes_p.
268 (encode_char): If the charset is compact, change a character index
269 to a code point.
270
271 * coding.c (coding_alloc_by_making_gap): Check the case that the
272 source and destination are the same correctly.
273 (decode_coding_raw_text): Set coding->consumed_char and
274 coding->consumed to 0.
275 (produce_chars): If coding->chars_at_source is nonzero, update
276 coding->consumed_char and coding->consumed before calling
277 alloc_destination.
278 (Fdefine_coding_system_alias): Register ALIAS in
279 Vcoding_system_alist.
280 (syms_of_coding): Define `no-convesion' coding system at the tail.
281
282 * fileio.c (Finsert_file_contents): Set coding_system instead of
283 val. If the current buffer is multibyte, always call
284 decode_coding_gap.
285
286 * xfaces.c (try_font_list): Give higher priority to fontset's
287 family than face's family.
288
2892002-04-18 Kenichi Handa <handa@etl.go.jp>
290
291 * callproc.c (Fcall_process): Be sure to give the current buffer
292 to decode_coding_c_string.
293
294 * xfaces.c (try_font_list): Give a family specified in a fontset
295 higher priority than a family specified in a face.
296
6a709baf
KH
2972002-04-09 Kenichi Handa <handa@etl.go.jp>
298
299 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
300 Fix arguments to insert_from_buffer.
301
302 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
303
85779cf5
KH
3042002-03-11 Kenichi Handa <handa@etl.go.jp>
305
306 * coding.c (produce_chars): Set the variable `multibytep' correctly.
307 (decode_coding_gap): Set coding->dst_multibyte correctly.
308
ed9d8bda
KH
3092002-03-07 Kenichi Handa <handa@etl.go.jp>
310
ed9d8bda
KH
311 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
312 (decode_coding_utf_16): Fix converting high and low bytes to
313 code-point.
314 (encode_coding_utf_16): Substitute coding->default_char for
315 non-Unicode characters.
316 (decode_coding): Don't call record_insert here.
317 (setup_coding_system): Initialize `surrogate' of
318 coding->spec.utf_16 to 0.
319 (EMIT_ONE_BYTE): Fix for multibyte case.
320
dd6d5c01
KH
321 * insdel.c (insert_from_gap): Call record_insert.
322
3e4abc9e
KH
3232002-03-04 Kenichi Handa <handa@etl.go.jp>
324
325 * casefiddle.c (casify_region): Fix multibyte case.
326
327 * character.c (c_string_width): Add return type `int'.
328 (char_string_with_unification): Arg ADVANCED deleted.
329
330 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
331 (CHAR_STRING): Adjusted for the change of
332 char_string_with_unification.
333 (CHAR_STRING_ADVANCE): Make it do-while statement.
334
335 * chartab.c (sub_char_table_set_range): Optimized for the case
336 DEPTH == 3. Add workaround code for a GCC optimization bug.
337
85779cf5
KH
338 * charset.c (parse_charset_map): Remove an unused variable.
339
3e4abc9e
KH
340 * coding.c: Delete unused variables.
341
342 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
343 earlier. If inserted is zero and the coding system doesn't
344 require flushing, don't call decode_coding_gap.
345
346 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
347
222b0630
KH
3482002-03-01 Kenichi Handa <handa@etl.go.jp>
349
350 The following changes are for using Unicode as an internal
351 character model, and use UTF-8 format for buffer/string
352 representation.
353
354 * .gdbinit (xchartable): Adjusted for the change of char table
355 structure.
356 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
357
358 * Makefile.in (obj): Add character.o and chartab.o.
359 (lisp, shortlisp): Remove utf-8.elc:
360 (*.o): For many files, change dependency on charset.h to
361 character.h, and add dependency on character.h.
362 (character.o, chartab.o): New targets.
363
364 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c,
365 doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c,
366 w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
367 of "charset.h".
368
369 * dired.c, filelock.c: Include "character.h".
370
371 * alloc.c: Include "character.h" instead of "charset.h".
372 (Fmake_char_table): Moved to chartab.c.
373 (make_sub_char_table): Likewise.
374 (syms_of_alloc): Remove defsubr for Smake_char_table.
375
376 * buffer.c: Include "character.h" instead of "charset.h", don't
377 include "coding.h".
378 (Fset_buffer_multibyte): Adjuted for UTF-8.
379
380 * buffer.h: EXFUN Fbuffer_live_p.
381
382 * callproc.c: Include "character.h" instead of "charset.h".
383 (Fcall_process): Big change for the new code-conversion APIs.
384
385 * casetab.c: Include "character.h" instead of "charset.h".
386 (set_canon, set_identity, shuffle): Adjusted for the new
387 map_char_table spec.
388 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
389 accessing the char table structure.
390
391 * chartab.c: New file that implements char table.
392
393 * category.c: Include "character.h".
394 (copy_category_entry): New function.
395 (copy_category_table): Call map_char_table and copy_category_entry.
396 (Fmake_category_table): Initialize all top-vel slots.
397 (char_category_set): New function.
398 (modify_lower_category_set): Deleted.
399 (Fmodify_category_entry): Call char_table_ref_and_range.
400
401 * category.h (CATEGORY_SET): Just call char_category_set.
402
403 * ccl.c: Include "character.h".
404 (Qccl, Qcclp): New variables.
405 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
406 it's less than 256.
407 (CCL_WRITE_MULTIBYTE_CHAR): Deleted.
408 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjusted for the change of SRC
409 and DST type.
410 (ccl_driver): Types of arguments changed. Code adjusted for that.
411 (Fccl_execute, Fccl_execute_on_string): Adjusted for the change of
412 ccl_driver.
413 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
414
415 * ccl.h (struct ccl_program): Members eol_type and multibyte
416 deleted. New members src_multibyte, dst_multibyte, consumed, and
417 produced.
418 (struct ccl_spec): Members decoder and encoder deleted. New
419 memeber ccl.
420 (CODING_SPEC_CCL_PROGRAM): New macro.
421 (ccl_driver): Prototype updated.
422 (Qccl, Qcclp, Fccl_program_p): Extern them.
423 (CHECK_CCL_PROGRAM): New macro.
424
425 * character.c, character.h, chartab.c: New files.
426
427 * charset.c: Mostly re-written. Character and multibyte sequence
428 handling codes are moved to character.c.
429
430 * charset.h: Mostly re-written. Character and multibyte sequence
431 handling codes are moved to character.h.
432
433 * coding.c, coding.h: Mostly re-written.
434
435 * composite.c: Include "character.h" instead of "charset.h".
436 (CHAR_WIDTH): Moved to character.h.
437 (HASH_KEY, HASH_VALUE): Deleted.
438
439 * composite.h (enum composition_method): Order of enumeration
440 symbols changed.
441
442 * data.c: Include "character.h" instead of "charset.h".
443 (Faref): Call CHAR_TABLE_REF for a char table.
444 (Faset): Call CHAR_TABLE_SET for a char table.
445
446 * dispextern.h (free_realized_face, check_face_attribytes,
447 generate_ascii_font): Extern them.
448 (free_realized_multibyte_face): Extern deleted.
449
450 * disptab.h (DISP_CHAR_VECTOR): Adjusted for the change of char
451 table structure.
452
453 * editfns.c: Include "character.h" instead of "charset.h".
454 (Fchar_to_string): Always call CHAR_STRING.
455
456 * emacs.c (main): Call init_charset_once, init_charset,
457 syms_of_chartab, and syms_of_character.
458
459 * fileio.c: Include "character.h" instead of "charset.h".
460 (Finsert_file_contents): Big change for the new code-conversion
461 API.
462 (choose_write_coding_system): Likewise.
463 (Fwrite_region): Likewise.
464 (build_annotations_2): Deleted.
465 (e_write): Big change for the new code-conversion API.
466
467 * fns.c: Include "character.h" instead of "charset.h".
468 (copy_sub_char_table): Moved to chartab.c.
469 (Fcopy_sequence): Call copy_char_table for a char table.
470 (concat): Delete codes calling count_multibyte.
471 (string_char_to_byte): Adjusted for the new multibyte form.
472 (string_byte_to_char): Likewise.
473 (internal_equal): Adjusted for the change of char table structure.
474 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent,
475 Fchar_table_extra_slot, Fset_char_table_extra_slot,
476 Fchar_table_range, Fset_char_table_range, Fset_char_table_default,
477 char_table_translate, optimize_sub_char_table,
478 Foptimize_char_table, map_char_table, Fmap_char_table): Moved to
479 chartab.c.
480 (char_table_ref_and_index): Deleted.
481 (HASH_KEY, HASH_VALUE): Moved to lisp.h.
482 (Fmd5): Call preferred_coding_system instead of accessing
483 Vcoding_category_list. Adjusted for the new code-conversion API.
484 (syms_of_fns): Defsubr for char table related functions moved to
485 chartab.c.
486
487 * fontset.c: Mostly re-written.
488
489 * fontset.h (struct font_info): Type of the member encoding_type
490 changed.
491 (enum FONT_SPEC_INDEX): New enum.
492 (fontset_font_pattern, fs_load_font): Prototype updated.
493 (FS_LOAD_FONT): Adjusted for the change of fs_load_font.
494
495 * indent.c: Include "character.h" instead of "charset.h".
496 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of
497 WIDTH_BY_CHAR_HEAD.
498
499 * insdel.c: Include "character.h" instead of "charset.h".
500 (copy_text): Don't refer to Vnonascii_translation_table.
501 (insert_from_gap): New function.
502
503 * keyboard.c: Include "character.h" instead of "charset.h".
504 (command_loop_1): Never call direct_output_forward_char before
505 a non-ASCII character.
506 (read_char): If Vkeyboard_translate_table is a char table, always
507 translated a character.
508
509 * keymap.c: Include "character.h".
510 (store_in_keymap): Handle the case that IDX is a cons.
511 (Fdefine_key): Handle the case that KEY is a cons and the car part
512 is also a cons (range).
513 (push_key_description): Adjusted for the new character code.
514 (describe_vector): Call describe_char_table for a char table.
515 (describe_char_table): New function.
516
517 * keymap.h (describe_char_table): Extern it.
518
519 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
520 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
521 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS,
522 SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
523 Deleted.
524 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjusted for the new char table
525 structure.
526 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
527 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2,
528 CHARTAB_SIZE_BITS_3): New macros.
529 (chartab_size): Extern it.
530 (struct Lisp_Char_Table): Re-designed.
531 (struct Lisp_Sub_Char_Table): New structure.
532 (HASH_KEY, HASH_VALUE): Moved from fns.c.
533 (CHARACTERBITS): Defined as 22.
534 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the above change.
535 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
536 (GC_SUB_CHAR_TABLE_P): New macro.
537 (Fencode_coding_string, Fdecode_coding_string): EXFUN Updated.
538 (code_convert_string_norecord): Extern deleted.
539 (init_character_once, syms_of_character, init_charset,
540 syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
541
542 * lread.c: Include "character.h".
543 (read_multibyte): New arg NBYTES.
544 (read_escape): The meaning of returned *BYTEREP changed.
545 (to_multibyte): Deleted.
546 (read1): Adjuted the handling of char table and string.
547
548 * print.c: Include "character.h" instead of "charset.h".
549 (print_string): Convert 8-bit raw bytes to octal form by
550 string_escape_byte8.
551 (print_object): Adjusted for the new multibyte form. Print 8-bit
552 raw bytes always in octal form. Handle sub char table correctly.
553
554 * process.c: Include "character.h" instead of "charset.h".
555 (read_process_output): Adjusted for the new code-conversion API.
556 (send_process): Likewise.
557
558 * puresize.h (BASE_PURESIZE): Increased.
559
560 * regex.c: Include "character.h" instead of "charset.h".
561 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
562 (regex_compile): Accept a range whose starting and ending
563 character have different leading bytes.
564 (analyse_first): Adjusted for the above change.
565
566 * search.c: Include "character.h" instead of "charset.h".
567 (search_buffer, boyer_moore): Adjusted for the new multibyte form.
568 (Freplace_match): Adjusted for the change of
569 multibyte_char_to_unibyte.
570
571 * syntax.c: Include "character.h" instead of "charset.h".
572 (syntax_parent_lookup): Deleted.
573 (Fmodify_syntax_entry): Accept a cons as CHAR.
574 (skip_chars): Adjusted for the new multibyte form.
575 (init_syntax_once): Call char_table_set_range instead of directly
576 accessing the structure of a char table.
577
578 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
579 (SYNTAX_ENTRY_FOLLOW_PARENT): Macro deleted.
580 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
581 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
582
583 * term.c: Include "buffer.h" and "character.h".
584 (encode_terminal_code): Adjusted for the new code-conversion API.
585 (write_glyphs): Likewise.
586 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
587
588 * w32term.c (x_new_font): Adjusted for the change of FS_LOAD_FONT.
589
590 * xdisp.c: Include "character.h".
591 (get_next_display_element): Adjusted for the new multibyte form.
592 (disp_char_vector): Adjusted for the new char table structure.
593 (decode_mode_spec_coding): Adjusted for the new structure of
594 coding system.
595 (decode_mode_spec): Adjusted for the new code-conversion API.
596
597 * xfaces.c: Include "character.h" instead of "charset.h".
598 (load_face_font): Adjusted for the change of choose_face_font and
599 FS_LOAD_FONT.
600 (generate_ascii_font): New function.
601 (set_lface_from_font_name): Adjusted for the change of
602 FS_LOAD_FONT.
603 (set_font_frame_param): Adjusted for the change of
604 choose_face_font.
605 (free_realized_face): Make it public.
606 (free_realized_faces_for_fontset): Renamed from
607 free_realized_multibyte_face. Free also faces realized for ASCII.
608 (choose_face_font): Argments changed. Adjusted for the change of
609 fontset_font_pattern and FS_LOAD_FONT.
610
611 * xfns.c: Include "character.h".
612 (x_encode_text): Adjusted for the new code-conversion API.
613
6f337974
KH
614 * xselect.c: Don't include "charset.h".
615 (selection_data_to_lisp_data): Adjusted for the new code
616 covnersion API.
617
8a78c965
KH
618 * xterm.c: Include "character.h".
619 (x_encode_char): New argument CHARSET. Caller changed.
620 (x_get_char_face_and_encoding): Call ENCODE_CHAR instead of
621 SPLIT_CHAR.
622 (x_get_glyph_face_and_encoding): Likewise.
623 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
624 CHAR_WIDTH instead of CHARSET_WIDTH.
625 (XTread_socket): Adjusted for the new code-conversion API.
626 (x_new_font): Adjusted for the change of FS_LOAD_FONT.
627 (x_load_font): Adjusted for the change of struct font.
628
beb0acdf
KS
6292002-02-26 Kim F. Storm <storm@cua.dk>
630
631 The following changes add a new Vminibuf_selected_window variable
632 which is similar to Vminibuf_scroll_window, but which is only set
633 on entry to the minibuffer (from a non-minibuffer window):
634
635 * window.c: (Vminibuf_selected_window): New variable.
636 (struct save_window_data): New member minibuf_selected_window.
637 (Fset_window_configuration): Restore Vminibuf_selected_window.
638 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
639 Set minibuf_scroll_window member to nil if minibuf_level is 0.
640 (compare_window_configurations): Compare minibuf_selected_window.
641
642 * window.h: (Vminibuf_selected_window): Declare extern.
643
644 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
645 entry to minibuffer or on entry from a non-minibuffer window.
646
647 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
648 Vminibuf_selected_window instead of Vminibuf_scroll_window.
649
650 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
651 instead of Vminibuf_scroll_window when deciding in which window
652 the region should be highlighted. Consequently, the region remains
653 highlighteded even when a completion buffer is also displayed.
654
3dfdc066
EZ
6552002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
656
b135bd4c
EZ
657 * fileio.c (Fsubstitute_in_file_name): Fix the change from
658 2002-02-08.
659
3dfdc066
EZ
660 * xselect.c (Qcompound_text_with_extensions): Renamed from
661 Qcompound_text_no_extensions.
662 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
663
804d894a
JB
6642002-02-26 Juanma Barranquero <lektu@terra.es>
665
666 * w32proc.c (syms_of_ntproc): Doc fix.
667
e4ac8240 6682002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0277b535
PJ
669
670 * intervals.h: Include "dispextern.h" unconditionally.
671
1f1bce0e
JR
6722002-02-24 Jason Rumney <jasonr@gnu.org>
673
674 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
675 and disp-table.elc.
82a399d2 676 (lisp): Add emacs-lisp/backquote.elc.
1f1bce0e 677
5f245371
KS
6782002-02-24 Kim F. Storm <storm@cua.dk>
679
680 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
681 The validation of the event type was too strict as it didn't
682 allow string events; buffer names are used in bindings for
683 menu-bar-select-buffer (see `menu-bar-update-buffers').
684
b66bc4a4 6852002-02-23 Kim F. Storm <storm@cua.dk>
a34cb674
KS
686
687 The following changes rework my patch of 2002-02-06 which
688 added command remapping by entering the commands directly into
689 the keymaps. Now, command remapping uses an explicit `remap'
690 prefix in the keymaps, i.e. [remap COMMAND].
691
692 * keymap.c (Qremap, remap_command_vector): New variables.
693 (is_command_symbol): Removed function.
694 (Fdefine_key): No longer accept a symbol for KEY. Added
695 validation of [remap COMMAND] argument for KEY. The DEF is no
696 longer required to be a symbol when remapping a command.
697 (Fremap_command): New function to remap command through keymaps.
698 (Flookup_key): Perform command remapping initiated by
699 Fremap_command directly for speed.
700 (Fkey_binding): Use Fremap_command for command remapping.
701 (where_is_internal): Handle new command remapping representation.
702 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
703 staticpro them. Defsubr Fremap_command.
704
705 * keymap.h (Fremap_command): Declare extern.
706 (is_command_symbol): Remove extern.
707
708 * keyboard.c (command_loop_1): Use Fremap_command for command
709 remapping; now try command remapping for all symbols.
710
f227fded
EZ
7112002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
712
713 * coding.h (run_pre_post_conversion_on_str): Add prototype.
714
54a0c8a6
JR
7152002-02-23 Jason Rumney <jasonr@gnu.org>
716
717 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
718 on the string before encoding it.
719 (Fw32_get_clipboard_data): Run post-read-conversion on the string
720 after decoding it.
721
722 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
723
e4ac8240 7242002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
042c33d3
PJ
725
726 * w32term.c (enter_timestamp): Remove unused static variable to
727 prevent warning.
728
729 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
730
b72d9870
EZ
7312002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
732
733 * w16select.c (Fw16_get_clipboard_data): Fix last change.
734
735 * xselect.c (selection_data_to_lisp_data): Fix last change.
736
48094ace
JR
7372002-02-22 Jason Rumney <jasonr@gnu.org>
738
739 * w32term.h (struct w32_output): New member menu_command_in_progress.
740
741 * w32menu.c (menubar_selection_callback): Free the menu and
742 clear the menu_command_in_progress flag.
743
744 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
745 (menu_free_timer): New variable.
746 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
747 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
748 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
749 menu command is in progress.
750 <WM_COMMAND>: Set the menu_command_in_progress flag. Kill
751 any menu_free_timer that is running.
752
753 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
754 Call ExtTextOutA rather than ExtTextOut.
755
9feba281
EZ
7562002-02-22 Eli Zaretskii <eliz@gnu.org>
757
758 * puresize.h (BASE_PURESIZE): Increase to 755000.
759
3276b4fe
EZ
7602002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
761
762 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
763 on the string before encoding it.
764 (Fw16_get_clipboard_data): Run post-read-conversion on the string
765 after decoding it.
766
fbbe0ace
EZ
7672002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
768
769 Support for ICCCM Extended Segments in X selections:
770
23e16093 771 * xselect.c <Qcompound_text_no_extensions>: New variable.
fbbe0ace
EZ
772 (syms_of_xselect): Intern and staticpro it.
773 (selection_data_to_lisp_data): Run post-read-conversion on decoded
774 selection text.
775 (lisp_data_to_selection_data): If next-selection-coding-system is
23e16093 776 compound-text-no-extensions, set the type of selection to be
fbbe0ace
EZ
777 compound-text.
778
779 * xterm.h (x_encode_text): Update prototype.
780
781 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
782 callers changed. If SELECTIONP is non-zero, run the
783 pre-write-conversion function before encoding the selection text.
784
2a28d471
KS
7852002-02-21 Kim F. Storm <storm@cua.dk>
786
787 * frame.c (syms_of_frame): Change mouse-highlight default to t.
15fdc2e3
KS
788
789 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]: Corrected
790 composing of language-change event.
791
9de46181
KS
7922002-02-20 Kim F. Storm <storm@cua.dk>
793
794 * keyboard.c (menu_bar_items): Don't include keymap or local-map
795 bindings at PT when building menu (the menu is not updated often
796 enough for this to work reliable).
797 (tool_bar_items): Likewise.
798 (current_active_maps): Removed unused (and buggy) function.
799
e4ac8240 8002002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c7f07c4c
PJ
801
802 * xfns.c (gif_load): Use correct width and height for GIF images.
803
f8565280
EZ
8042002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
805
806 * floatfns.c (Fatan): Accept an optional second arg and call
807 atan2 if passed 2 args.
808
5be86f54
JR
8092002-02-18 Jason Rumney <jasonr@gnu.org>
810
811 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
812
f7b9d4d1
JR
8132002-02-17 Jason Rumney <jasonr@gnu.org>
814
815 * w32term.c (x_autoselect_window_p): New variable.
816 (syms_of_w32term): DEFVAR_BOOL and initialize it.
817 (note_mouse_movement): Use it.
818
819 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
820
821 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
822
823 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
824 New variables.
825 (syms_of_w32fns): Intern and staticpro them.
826 (x_frame_parms) <"fullscreen">: New parameter.
827 (x_fullscreen_move, x_set_fullscreen): New functions.
828 (x_set_frame_parameters): Support Qfullscreen.
829 (x_real_positions): Save x/y_pixels_diff frame params.
830 (x_figure_window_size): Support full-screen frames.
831 (Fx_create_frame): Default the fullscreen parameter.
832
833 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
834 (x_fullscreen_adjust): New functions.
835 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
836 fullscreen. Call x_check_fullscreen_move, and set the
837 want_fullscreen member of output_data.w32
838 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
839
840 * w32term.h: New enum for FULLSCREEN_* constants.
841 (struct w32_output): New members want_fullscreen, x_pixels_diff,
842 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
843 (x-fullscreen-adjust): New prototype.
844
ce16e8d9
KS
8452002-02-17 Kim F. Storm <storm@cua.dk>
846
847 * frame.c: (Vmouse_highlight): New variable.
848 (syms_of_frame): DEFVAR_LISP it.
849
850 * frame.h: (Vmouse_highlight): Declare extern.
851
852 * xterm.h (struct x_display_info): Add mouse_face_hidden.
853
854 * xterm.c (disable_mouse_highlight): Removed variable.
855 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
856 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
857 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
858 and on after keyboard input.
859 (x_term_init): Initialize mouse_face_hidden.
860
861 * msdos.h (struct display_info): Add mouse_face_hidden.
862
863 * msdos.c (disable_mouse_highlight): Removed variable.
864 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
865 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
866 (internal_terminal_init): Initialize mouse_face_hidden.
867 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
868 and on after keyboard input.
869
870 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
871
872 * w32term.c (disable_mouse_highlight): Removed variable.
873 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
874 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
875 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
876 and on after keyboard input.
877 (w32_initialize_display_info): Initialize mouse_face_hidden.
878
386c4076
EZ
8792002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
880
9005a471
EZ
881 * msdos.c (last_mouse_window): New variable.
882 (dos_rawgetc): Fix last change--if the mouse is in the same window
883 as recorded in last_mouse_window, don't select this window.
884
760627fa
EZ
885 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not
886 cus-start.el.
887
4a137db1
EZ
888 * msdos.c (x_autoselect_window_p): New variable.
889 (syms_of_msdos): Defvar it.
890 (dos_rawgetc): If x_autoselect_window_p is set, select the window
891 in which the last mouse movement occured, unless it is already
892 selected.
893
386c4076
EZ
894 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step): New
895 variables.
896 (syms_of_xdisp): DEVFAR them.
897 (hscroll_window_tree): Use automatic_hscroll_margin and
898 Vautomatic_hscroll_step to compute the amount of window scrolling.
899
e4ac8240 9002002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5d2200aa 901
3996d07a
PJ
902 * xterm.c (x-autoselect-window): New variable.
903 (note_mouse_movement): Use it.
904
5d2200aa
PJ
905 * keyboard.c: Do not include "systime.h" twice.
906
bdf67c59
AS
9072002-02-15 Andreas Schwab <schwab@suse.de>
908
5407e8a7
AS
909 * puresize.h (BASE_PURESIZE): Increase to 9/5.
910
bdf67c59
AS
911 * alloc.c (NSTATICS): Increase to 1280.
912
98659da6
KG
9132002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
914
f9904178
KG
915 * alloc.c (NSTATICS): Bump to 1026.
916
98659da6
KG
917 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
918 (Vx_super_keysym): New variables.
919 (syms_of_xterm): DEFVAR_LISP them.
920 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
921 variables to determine which keys to use for the various
922 modifiers.
923
a48b709b 9242002-02-13 Kim F. Storm <storm@cua.dk>
1c9f5f23
KS
925
926 * window.c: (Vmode_line_in_non_selected_windows): Removed.
927 (mode_line_in_non_selected_windows): New variable.
928 (syms_of_window): DEFVAR_BOOL it.
929
930 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Use
931 mode_line_in_non_selected_windows.
932 (mode_line_in_non_selected_windows): Declare extern.
933 (Vmode_line_in_non_selected_windows): Removed extern.
934
db54c53a
RS
9352002-02-13 Richard M. Stallman <rms@gnu.org>
936
937 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
938 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
939 (Fclear_this_command_keys): Doc fixes.
940
941 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
942 (update_face_from_frame_parameter): Increment face_change_count
943 and windows_or_buffers_changed to force redisplay using changed faces.
944
945 * xdisp.c (QCpropertize): New variable.
946 (mode_line_proptrans_alist): New variable.
947 (display_mode_element): New arg PROPS; all calls changed.
948 Implement this, for strings.
949 Handle literal output of strings by sharing the
950 main-line code for strings, using local var `literal'.
951 Handle :propertize feature.
952 (syms_of_xdisp): Initialze and staticpro QCpropertize and
953 mode_line_proptrans_alist.
954
a48b709b 9552002-02-11 Kim F. Storm <storm@cua.dk>
3c9bdb7e
KS
956
957 * window.c: (Vmode_line_in_non_selected_windows): New variable.
958 (syms_of_window): DEFVAR_LISP it.
959
960 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
961 (CURRENT_MODE_LINE_FACE_ID): Use it.
962 (Vmode_line_in_non_selected_windows): Declare extern.
963
964 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
965 to get mode line face.
966
573a237a
EZ
9672002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
968
969 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
970 variables; cus-start.el doesn't need them anymore.
971
73df3b72
KS
9722002-02-09 Kim F. Storm <storm@cua.dk>
973
974 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
975 reduction. This fixes a display problem where stray newlines were
976 inserted in the window (corrected by C-l). Clarified code (IMHO).
977
18b0be7c
EZ
9782002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
979
980 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
981
982 * xdisp.c (display_mode_lines): Fix last change.
983
442ca9ba
JR
9842002-02-09 Jason Rumney <jasonr@gnu.org>
985
986 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
987 match each other.
3acfb461
JR
988 (w32_load_system_font): Prevent Cleartype fonts from loading.
989 (Fx_show_tip): Ensure tip frames are above other topmost windows.
442ca9ba 990
cdefda26
KS
9912002-02-09 Kim F. Storm <storm@cua.dk>
992
993 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
994 (CURRENT_MODE_LINE_HEIGHT): Use it.
995 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
996
997 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
998 (pos_visible_p, handle_face_prop): Likewise.
999 (display_mode_lines): Likewise, but for the real selected window.
1000 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
1001
1002 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
1003 in non-selected windows.
1004 (realize_basic_faces): Realize it.
1005 (syms_of_term): Intern and staticpro it.
1006
9f69e812
KS
10072002-02-08 Kim F. Storm <storm@cua.dk>
1008
1009 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
1010 Changed mail addresses to emacs-devel@gnu.org.
1011
6ded2c89
EZ
10122002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
1013
b5d40ceb
EZ
1014 * fileio.c (Fsubstitute_in_file_name): If the file name includes
1015 ~user, and there's no such user, don't discard everything before
1016 ~user.
1017
6ded2c89
EZ
1018 * floatfns.c (Fround): Doc fix.
1019
e4ac8240 10202002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7c15926f
PJ
1021
1022 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
1023
6a229a63
SM
10242002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1025
db54c53a 1026 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
6a229a63 1027
33b93ee5
KS
10282002-02-07 Kim F. Storm <storm@cua.dk>
1029
1030 * keymap.c (where_is_internal): Only check whether definition is
1031 remapped if it fulfills is_command_symbol.
1032
72bba9f2
AS
10332002-02-07 Andreas Schwab <schwab@suse.de>
1034
1035 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
1036
1037 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
1038
93607efd
KS
10392002-02-06 Kim F. Storm <storm@cua.dk>
1040
1041 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
1042 defining command remapping. Doc updated.
1043 (Flookup_key): Remap command through keymap if KEY is a symbol.
1044 (is_command_symbol): New function.
6a229a63
SM
1045 (Fkey_binding): Use it. New optional argument NO-REMAP.
1046 Doc updated. Callers changed. Perform command remapping via
93607efd
KS
1047 recursive call unless that arg is non-nil.
1048 (where_is_internal): New argument no_remap. Callers changed.
1049 Call recursively to find original key bindings for a remapped
1050 comand unless that arg is non-nil.
6a229a63
SM
1051 (Fwhere_is_internal): New optional argument NO-REMAP.
1052 Doc updated. Callers changed. Pass arg to where_is_internal.
93607efd
KS
1053
1054 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
1055 (is_command_symbol): Added prototype.
1056
1057 * keyboard.c (Vthis_original_command): New variable.
1058 (syms_of_keyboard): DEFVAR_LISP it.
1059 (command_loop_1): Set it, and perform command remapping.
1060
e4ac8240 10612002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2642a29e
PJ
1062
1063 * keyboard.c (recursive_edit_1): Call cancel_hourglass
1064 unconditionally.
1065
f4ed304f
JR
10662002-02-06 Jason Rumney <jasonr@gnu.org>
1067
1068 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
1069
b5309828
EZ
10702002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
1071
1072 * charset.c (get_charset_id): Use if-else instead of ?:.
1073
108eaabb
RS
10742002-02-06 Richard M. Stallman <rms@gnu.org>
1075
1076 * filelock.c (S_ISLNK): Define if not defined.
1077
bd3567fa
RS
10782002-02-03 Richard M. Stallman <rms@gnu.org>
1079
1080 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
1081
1082 * lread.c (read1): Redesign strategy for force_multibyte and
1083 force_singlebyte. Now is_multibyte records whether read_buffer
1084 is multibyte. Encountering any multibyte character makes it so.
6a229a63 1085
95c11956
SM
10862002-02-02 Stefan Monnier <monnier@cs.yale.edu>
1087
1088 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
1089 with the same sequence, map that sequence to f10 rather than f0.
1090
ee466d0b
AS
10912002-02-03 Andreas Schwab <schwab@suse.de>
1092
1093 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
1094 latter never being defined on GNU/Linux.
1095
f77157da
EZ
10962002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1097
1098 * xfaces.c (realize_default_face): Don't set the weight and slant
1099 of the default face to Qnormal, unless these attributes are
1100 unspecified.
1101
e4ac8240 11022002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4fbcc9b1 1103
95c11956
SM
1104 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
1105 Call cancel_hourglass unconditionally.
4fbcc9b1
PJ
1106
1107 * eval.c (Fsignal): Remove duplicated declaration of
1108 the variable `display_hourglass_p'.
1109
5e101746
RS
11102002-01-31 Richard M. Stallman <rms@gnu.org>
1111
1112 * editfns.c (region_limit): Nicer error message.
1113
1114 * coding.c (decode_composition_emacs_mule):
1115 Give up if NCOMPONENT gets too large to index `component'.
1116
1117 * callint.c (check_mark): New arg to specify clearer error message.
1118 Callers changed.
1119
11202002-01-27 Richard M. Stallman <rms@gnu.org>
1121
1122 * minibuf.c (Fcompleting_read): Doc fix.
1123
e4ac8240 11242002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4b11ca
PJ
1125
1126 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
95c11956
SM
1127 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
1128 Fix doc-strings.
7a4b11ca 1129
f5798fbd
RS
11302002-01-26 Richard M. Stallman <rms@gnu.org>
1131
1132 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
1133
1134 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
1135 and scroll_up_aggressively.
1136
e4ac8240 11372002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8fc77801
PJ
1138
1139 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
1140
3a232704
SM
11412002-01-25 Stefan Monnier <monnier@cs.yale.edu>
1142
1143 * textprop.c (Fnext_property_change, Fnext_single_property_change)
1144 (Fprevious_property_change, Fprevious_single_property_change):
1145 Stay within the narrowed-buffer boundaries.
1146
dd939ea1
EZ
11472002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1148
1149 * term.c (Ftty_display_color_cells): New function.
1150 (syms_of_term): Defsubr it.
0011f346
EZ
1151 (Ftty_display_color_cells, Ftty_display_color_p): Change the
1152 argument name to DISPLAY. Doc fix.
dd939ea1
EZ
1153
1154 * dispextern.h: Add prototype for set_tty_color_mode and
1155 tty_setup_colors.
1156
aa35b6ad
JR
11572002-01-24 Jason Rumney <jasonr@gnu.org>
1158
1159 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
1160 If region left to draw is not what was expected, mark the frame as
1161 garbaged.
1162
1163 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
1164 Combine the regions returned by BeginPaint and GetUpdateRect.
1165
ab76d376
JR
11662002-01-23 Jason Rumney <jasonr@gnu.org>
1167
1168 * w32term.c (x_update_window_begin): Only hide caret if
1169 w32_use_visible_system_caret is set.
1170 (x_update_window_end): Only show caret if
1171 w32_use_visible_system_caret is set.
1172 (syms_of_w32term): Handle SystemParametersInfo call failing.
1173
1174 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
1175
d89b617d
RS
11762002-01-22 Richard M. Stallman <rms@gnu.org>
1177
1178 * unexelf.c (unexec): Define n so as to cause compilation error
1179 for the code where people have often written n instead of nn.
1180
1181 * .gdbinit (hookpost-run): Defined.
1182
f0b9a067
JD
11832002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
1184
1185 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
1186
5f9338d5
JD
11872002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
1188
1189 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
1190 if fullscreen is being set.
1191
e4ac8240 11922002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
029a305c
PJ
1193
1194 * minibuf.c (Fminibuffer_contents)
1195 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
1196 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
1197
8cc0e0cf
RS
11982002-01-21 Richard M. Stallman <rms@gnu.org>
1199
1200 * window.c (check_frame_size): Fix minimum height calculation.
1201
d7b8ee68
KR
12022002-01-20 Ken Raeburn <raeburn@gnu.org>
1203
1204 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
1205 height before comparison.
1206 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
1207
c3c14723
JR
12082002-01-20 Jason Rumney <jasonr@gnu.org>
1209
1210 * w32term.c (w32_system_caret_width): Remove.
1211 (w32_use_visible_system_caret): New user flag.
1212 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
1213 Windows reports a screen reader running.
1214 (x_update_window_begin): Hide the system caret.
1215 (x_update_window_end): Show the system caret.
1216 (x_display_and_set_cursor): Don't draw a cursor when
1217 w32_use_visible_system_caret is set. Do not adjust width.
1218
1219 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
1220 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
1221 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
1222 the user requests it. Use system default width when creating.
1223 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
1224
95c11956
SM
1225 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
1226 New window messages.
c3c14723 1227
75e20bec
RS
12282002-01-20 Richard M. Stallman <rms@gnu.org>
1229
1230 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
1231
e4ac8240 12322002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c17e062
PJ
1233
1234 * doprnt.c (doprnt1): Fix typos in error call.
1235
3b927d14
EZ
12362002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1237
1238 * unexelf.c (unexec) [__sgi]: Support the .got sections.
1239
aa06cb9c
JR
12402002-01-20 Jason Rumney <jasonr@gnu.org>
1241
1242 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
1243 that Windows returns. If a double check fails, try to guess how
1244 ExtTextOut is going to act.
1245
1246 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
1247 in place of stricmp.
1248 (w32_list_synthesized_fonts): Removed.
1249 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
1250 (struct enumfont_t): New element; list.
1251 (enum_font_cb2): List all style and charset variations of a font.
1252 (Fw32_select_font): New optional argument; include_proportional.
1253 Exclude vertical fonts. Exclude proportional fonts unless
1254 include_proportional is non-nil.
1255 (w32_enable_synthesized_fonts): Change to a boolean.
1256 (Fw32_send_sys_command): Doc fix.
1257
e4ac8240 12582002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
37082f8d
PJ
1259
1260 * dispnew.c (update_frame): Move the variable `tem' to the block
1261 where it is used.
1262
815d969e
JR
12632002-01-19 Jason Rumney <jasonr@gnu.org>
1264
1265 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
1266 call to face-set-after-frame-default.
1267
a1e3dda0
RS
12682002-01-18 Richard M. Stallman <rms@gnu.org>
1269
95c11956 1270 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
a1e3dda0
RS
1271 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
1272
daf516d3
RS
12732002-01-17 Richard M. Stallman <rms@gnu.org>
1274
1275 * window.c (enlarge_window): When exceeding size of parent,
1276 directly delete all the siblings instead of trying to resize it.
1277
e4ac8240 12782002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dfc7a077
PJ
1279
1280 * term.c (set_tty_color_mode): Remove unused variable `tem'.
1281
3ddff138
RS
12822002-01-16 Henrik Enberg <henrik@enberg.org>
1283
7adfc0d7 1284 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
3ddff138 1285
465c9390
KS
12862002-01-16 Kim F. Storm <storm@cua.dk>
1287
1288 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
1289 is invisible. This can happen if cursor is on top line of a
1290 window, and we switch to a buffer with a header line.
1291
95c11956 1292 * w32term.c (x_erase_phys_cursor): Ditto.
a2c6de8e 1293
e4ac8240 12942002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7a4bce14
PJ
1295
1296 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
1297 `dont_resize' only when used.
1298
1299 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
1300
26f622b3
EZ
13012002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
1302
1303 * xdisp.c (display_mode_element): When computing charpos, depend
f165c448 1304 on multibyteness of elt, not the text in field.
26f622b3 1305
e4ac8240 13062002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1a6db83a
PJ
1307
1308 * buffer.c (Fkill_all_local_variables): Increment
1309 `update_mode_lines' only once.
1310
e4ac8240 13112002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a4ff5d67 1312
aa1977d7
PJ
1313 * lisp.h (adjust_after_replace_noundo)
1314 (Fupdate_coding_systems_internal): Add prototypes.
1315
95c11956 1316 * sound.c (Fplay_sound): Initialize header_size also for :data case.
a4ff5d67 1317
3947677c
EZ
13182002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
1319
1320 Support for the --color command-line argument and tty-color-mode
1321 frame parameter:
1322
1323 * term.c (tty_default_color_capabilities, tty_setup_colors)
1324 (set_tty_color_mode): New functions.
1325 (term_init): Call tty_default_color_capabilities.
1326 (Qtty_color_mode_alist): New variable.
1327 (syms_of_term): Intern and staticpro it.
1328
1329 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
1330 frames.
1331 (do_switch_frame): For termcap frames, switch the tty
1332 color mode as specified by the frame's parameters.
1333 (Qtty_color_mode): New variable.
1334 (syms_of_frame): Intern and staticpro it.
1335
1336 * emacs.c (USAGE2): Add the --color option.
1337 (standard_args): Ditto.
1338
8a8e19a3
EZ
13392002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
1340
1341 * xterm.h (struct x_output): New members want_fullscreen,
1342 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
1343 y_pixels_outer_diff.
1344 New enum for FULLSCREEN_* constants.
1345 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
1346 is NULL.
1347 (x_fullscreen_adjust): Add prototype.
1348
1349 * emacs.c (USAGE2): Add the new full-screen arguments.
1350 (standard_args): Ditto.
1351
95c11956
SM
1352 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
1353 New variables.
8a8e19a3
EZ
1354 (syms_of_xfns): Intern and staticpro them.
1355 (x_frame_parms) <"fullscreen">: New parameter.
1356 (x_fullscreen_move, x_set_fullscreen): New functions.
1357 (x_set_frame_parameters): Support for Qfullscreen.
1358 (x_real_positions): More accurate computation of the frame position.
1359 (x_figure_window_size): Support full-screen frames.
1360 (Fx_create_frame): Default the fullscreen parameter.
1361
1362 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
1363 (XTread_socket) <Expose>: Call x_check_fullscreen.
95c11956
SM
1364 <ConfigureNotify>: Don't resize to fullscreen.
1365 Call x_check_fullscreen_move, and set the want_fullscreen member of
8a8e19a3
EZ
1366 output_data.x.
1367
4f1b1854
JR
13682002-01-13 Jason Rumney <jasonr@gnu.org>
1369
1370 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
1371 for mice with more than 3 buttons.
1372
1373 * w32term.c (parse_button): New parameter xbutton. Callers changed.
1374 (w32_read_socket): Handle new "XBUTTON" messages.
1375
1376 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
1377 (syms_of_w32fns): DEFVAR_BOOL it.
1378 (w32_wnd_proc): Handle new "XBUTTON" messages.
1379
e4ac8240 13802002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5cb6905d 1381
95c11956 1382 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
5cb6905d 1383
437dfb9f
AS
13842002-01-13 Andreas Schwab <schwab@suse.de>
1385
1386 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
1387
9f696a00
AS
13882002-01-12 Andreas Schwab <schwab@suse.de>
1389
1390 * .gdbinit (xbuffer): Remove address operator since data is now a
1391 pointer.
1392
d57966d7
RS
13932002-01-11 Richard M. Stallman <rms@gnu.org>
1394
1395 * insdel.c (adjust_after_replace_noundo): New function.
1396
1397 * coding.c (code_convert_region): Don't copy old text if undo disabled.
1398
74779f52
JR
13992002-01-09 Jason Rumney <jasonr@gnu.org>
1400
1401 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
1402 when checking for multiple frames.
1403
a474d59c
RS
14042002-01-08 Richard M. Stallman <rms@gnu.org>
1405
1406 * window.c (delete_window): Rewrite the code for changing the
1407 selected window to handle the case where WINDOW is not a leaf.
1408
fbb70ad9
EZ
14092002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
1410
1411 * process.c (send_process): Set src_multibyte to 1 after the call
1412 top setup_coding_system, not before the call.
1413
2d10309f
JR
14142002-01-07 Jason Rumney <jasonr@gnu.org>
1415
1416 * xmenu.c (set_frame_menubar, xmenu_show):
3a232704 1417 (xdialog_show): Initialize wv->help to Qnil.
2d10309f
JR
1418
1419 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
1420 (w32_dialog_show): Initialize wv->help to Qnil.
1421
7f2cddf3
JR
14222002-01-06 Jason Rumney <jasonr@gnu.org>
1423
0b1e6b54
JR
1424 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
1425
7f2cddf3
JR
1426 * w32menu.c (w32_menu_display_help): Revert last change.
1427
1428 * xmenu.c (menu_highlight_callback): Revert last change.
1429
e17144de
AS
14302002-01-06 Andreas Schwab <schwab@suse.de>
1431
1432 * insdel.c (make_gap_larger): Make sure buffer size does not
1433 overflow range of int.
1434
6637c996
JR
14352002-01-05 Jason Rumney <jasonr@gnu.org>
1436
44368f8f
JR
1437 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1438 OVERLAPS_P.
1439
f884b6f4
JR
1440 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
1441
6637c996
JR
1442 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
1443 to the left or to the right of the pointer, put it against
1444 the left screen edge.
1445 (x_frame_parms): Add missing braces around initializer.
1446
1447 * w32term.c (x_setup_relief_colors): Don't compute an image's
1448 background color if it doesn't have a Pixmap.
1449 (notice_overwritten_cursor): Don't depend on
1450 output_cursor and updated_area. Compare pixel coordinates with
1451 window's cursor pixel coordinates.
3a232704
SM
1452 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1453 Call notice_overwritten_cursor with new arg list.
6637c996
JR
1454 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1455 unconditionally.
1456 (x_draw_image_relief): Use predefined macro instead of
1457 constant when the value of `tool_bar_button_relief' is negative.
1458
1459 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
1460
453c5510
RS
14612002-01-04 Richard M. Stallman <rms@gnu.org>
1462
1463 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
1464
d1d070e3
RS
14652002-01-03 Richard M. Stallman <rms@gnu.org>
1466
1467 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
1468 (Fkey_binding): Try the `keymap' property map first.
1469 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
1470 minor mode bindings.
1471
9ec1bdb6
KS
14722002-01-03 Kim F. Storm <storm@cua.dk>
1473
1474 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
1475
308dd672
RS
14762002-01-02 Richard M. Stallman <rms@gnu.org>
1477
edde72f6
RS
1478 * keyboard.c (read_key_sequence): Handle the keymap property
1479 before minor mode maps.
1480
308dd672
RS
1481 * editfns.c (Fformat): Update thissize from field_width
1482 based on the actual width, in the string case.
1483
e4ac8240 14842002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3c1e6b46 1485
03950b5b
PJ
1486 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
1487 when used as truth value to prevent gcc warnings.
1488
3c1e6b46
PJ
1489 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
1490 * w32proc.c: Include <config.h>.
1491
c1e11810
AS
14922002-01-01 Andreas Schwab <schwab@suse.de>
1493
1494 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
1495 not EMACS_INT, to make them compatible with DEFVAR_INT.
1496 * lisp.h (max_specpdl_size): Adjust declaration.
1497
1996baee
RS
14982002-01-01 Richard M. Stallman <rms@gnu.org>
1499
1500 * print.c (print_object): Test print_escape_nonascii only for
1501 unibyte strings.
1502 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
1503 when outputting to a multibyte buffer.
1504
0065bb74
RS
15052001-12-29 Richard M. Stallman <rms@gnu.org>
1506
1507 * print.c (print_object): In multibyte string, use hex escapes.
1508 Use octal only for unibyte strings.
1509 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
1510
1511 * lread.c (read_escape): New arg BYTEREP for reporting whether
1512 escape forces unibyte or multibyte.
1513 (read1): When reading a string, take note of that info.
1514
b5cb6072
KR
15152001-12-29 Ken Raeburn <raeburn@gnu.org>
1516
1517 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
1518 comparison to test lisp value returned by Fget.
1519
15fff01d
RS
15202001-12-29 Richard M. Stallman <rms@gnu.org>
1521
0065bb74
RS
1522 * lisp.h (max_specpdl_size): Add declaration.
1523
0d8466cc
RS
1524 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
1525
15fff01d
RS
1526 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
1527 Handle modifier bits. Correct typo in error message.
1528
2fae9111
RS
15292001-12-28 Richard M. Stallman <rms@gnu.org>
1530
2d6c1fc0
RS
1531 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
1532 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
1533 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1534 Update calls to Fdefine_abbrev.
1535 (write_abbrev): Update for changed data format.
1536 Don't list "system" abbrevs.
1537 (Fexpand_abbrev): Update use count with new data format.
1538 (describe_abbrev): Update for changed data format.
1539 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
1540
07025a55
RS
1541 * config.in (HAVE_MBSINIT): Add #undef.
1542
1543 * strftime.c (mbsinit): Define as no-op if not available.
1544
1545 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
1546 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
1547
ce6eef6e
RS
1548 * keymap.c (Flookup_key): Error message if key has wrong data type.
1549 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
ade19cac 1550 (exclude_key): New variable.
3a232704 1551
539e92ad
GM
15522001-12-28 Gerd Moellmann <gerd@gnu.org>
1553
0cb8bb48
GM
1554 * xterm.c (x_setup_relief_colors): Don't compute an image's
1555 background color if it doesn't have a Pixmap.
3a232704 1556
60626bab
GM
1557 * xterm.c (notice_overwritten_cursor): Don't depend on
1558 output_cursor and updated_area. Compare pixel coordinates with
1559 window's cursor pixel coordinates.
3a232704
SM
1560 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1561 Call notice_overwritten_cursor with new arg list.
60626bab
GM
1562 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1563 unconditionally.
0cb8bb48 1564
539e92ad
GM
1565 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
1566 height of the cursor line to the amount to scroll.
1567
4e02881b
RS
15682001-12-27 Richard M. Stallman <rms@gnu.org>
1569
1570 * intervals.c (set_point_both): The position after an invisible,
1571 intangible character is not an acceptable stopping point.
1572
1ab964d7
KR
15732001-12-27 Ken Raeburn <raeburn@gnu.org>
1574
1575 * window.c (enlarge_window): In new preserve_before code, convert
1576 CURBEG from lisp object to integer before doing arithmetic.
1577
749f499f
RS
15782001-12-27 Richard M. Stallman <rms@gnu.org>
1579
1580 * bytecode.c (Fbyte_code): Undo previous change.
1581
b5d9aaba
KS
15822001-12-26 Kim F. Storm <storm@cua.dk>
1583
1584 * keyboard.c (record_char): Ignore duplicate help-echo events only
1585 separated by mouse-movement. When tracking mouse, only record
1586 first and last mouse-movement event in same window.
1587 Don't record mouse-movement events in keyboard macros.
3a232704 1588
d0fd26dd
RS
15892001-12-25 Richard M. Stallman <rms@gnu.org>
1590
b4c45162
RS
1591 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
1592 (Fenlarge_window): New arg PRESERVE_BEFORE.
1593
d0fd26dd
RS
1594 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
1595 instead of Fstring_as_unibyte.
1596
e4ac8240 15972001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c95eaa61 1598
3a232704 1599 The following changes remove mocklisp support:
c95eaa61
PJ
1600
1601 * mocklisp.h, mocklisp.c: Files removed.
1602
1603 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
1604 `Qmocklisp' and `Qmocklisp_arguments'.
1605 Remove prototype of syms_of_mocklisp.
1606
3a232704 1607 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
c95eaa61
PJ
1608
1609 * callint.c: Do not include mocklisp.h.
1610 (Fcall_interactively): Do not test for mocklisp case.
1611
1612 * eval.c: Remove variables `Qmocklisp_arguments',
3a232704
SM
1613 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
1614 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
1615 Do not test for mocklisp case.
c95eaa61
PJ
1616 (Fwhile): Remove unused variable `tem'.
1617 (syms_of_eval): Remove variable `moclisp-arguments'.
1618
1619 * data.c (wrong_type_argument): Remove mocklisp case.
1620
1621 * doc.c (Fdocumentation): Remove mocklisp case.
1622
1623 * emacs.c (main): Do not call syms_of_mocklisp.
1624
31877e0a
RS
16252001-12-21 Richard M. Stallman <rms@gnu.org>
1626
1627 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
1628 to the left or to the right of the pointer, put it against
1629 the left screen edge.
1630
e2c3786a
EZ
16312001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
1632
1633 * Makefile.in (distclean): Remove .gdbinit if we are building
1634 outside the source tree.
1635
c513fc03
EZ
16362001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
1637
bf794306
EZ
1638 * w32.c (emacs_root_dir): New function.
1639
1640 * msdos.c (emacs_root_dir): New function.
1641
1642 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
1643 of the current drive as the fallback for default_directory.
1644
62582985
EZ
1645 * dired.c (file_name_completion): Run the elements of
1646 completion-ignored-extensions through ENCODE_FILE.
1647
c513fc03
EZ
1648 * lisp.h (scmp): Remove prototype, since it's now a static
1649 function private to dired.c.
1650
3509a04c
RS
16512001-12-18 Richard M. Stallman <rms@gnu.org>
1652
1653 * dired.c (scmp): Function moved from minibuf.c.
1654 Delete multibyte handling--used only on encoded strings.
1655
1656 * minibuf.c (scmp): Function moved to dired.c.
1657
1658 * fns.c (merge): Add QUIT call.
1659
1e9a6186
DL
16602001-12-18 Dave Love <fx@gnu.org>
1661
1662 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
1663 language/georgian.el.
1664
e4e34e31
EZ
16652001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
1666
1667 * Makefile.in (lisp, shortlisp): Synchronize with changes to
1668 lisp/Makefile.in:DONTCOMPILE.
1669
e4ac8240 16702001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4521d1fc 1671
7c75be36
PJ
1672 * xdisp.c (window_box_height): Do not return negative values.
1673 From Gerd Moellmann <gerd@gnu.org>.
1674
4521d1fc
PJ
1675 * keyboard.c (head_table): Add missing braces around initializer.
1676
1677 * term.c (keys): Likewise.
1678
1679 * xfns.c (x_frame_parms, visual_classes): Likewise.
1680
93dec019
SS
16812001-12-17 Sam Steingold <sds@gnu.org>
1682
1683 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
1684 patch (COMPOSING_P, not COMPOSING).
1685
905cc05a
RS
16862001-12-17 Richard M. Stallman <rms@gnu.org>
1687
2ed06289
RS
1688 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
1689
0e79d667
RS
1690 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
1691 before calling decode_coding.
1692
1693 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
1694
1695 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
905cc05a
RS
1696 instead of only for COMPOSITION_DISABLED.
1697
82a7ab23
RS
16982001-12-16 Richard M. Stallman <rms@gnu.org>
1699
d75bec6a
RS
1700 * alloc.c (pure_alloc): After overflow, allocate just a small block.
1701
52dcb476
RS
1702 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
1703
82a7ab23
RS
1704 * buffer.h (struct buffer): New field `display_error_modiff'.
1705 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
1706
1707 * window.c (Frecenter): Clear display_error_modiff field.
1708
1709 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
1710 Call redisplay_window, but not if display_error_modiff field says no.
1711 (redisplay_window_error): New function.
1712 (displayed_buffer): New variable.
1713 (redisplay_internal, redisplay_windows): Call the new functions
1714 instead of redisplay_window directly.
1715
4d0fa4f3
RS
17162001-12-15 Richard M. Stallman <rms@gnu.org>
1717
1718 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1719
493faf20
AI
17202001-12-14 Andrew Innes <andrewi@gnu.org>
1721
325111e9
AI
1722 * makefile.w32-in (EMACSLOADPATH): Define.
1723 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
1724 (bootstrap-temacs): Remove dependency on bootstrap-clean.
493faf20 1725
4971e491
EZ
17262001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
1727
397b3b50 1728 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4971e491
EZ
1729 parameter have a numeric value all the time.
1730
1731 * w32fns.c (x_report_frame_params): Likewise.
1732
d911a0fa
RS
17332001-12-12 Richard M. Stallman <rms@gnu.org>
1734
1735 * fileio.c (Fwrite_region): Doc fix.
1736
1737 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
1738 (redisplay_internal): Call clear_image_cache only for window terminals.
1739
201c831a
GM
17402001-12-12 Gerd Moellmann <gerd@gnu.org>
1741
1742 * xdisp.c (move_it_vertically_backward): Change heuristic
1743 for the case that we didn't move far enough initially.
1744
1745 * window.c (Frecenter): Simplify computation in the case of window
1746 system frames and ARG < 0; use window_box_height.
1747
34e39c95
RS
17482001-12-11 Richard M. Stallman <rms@gnu.org>
1749
1750 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
1751 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
1752
d77fbc16
AI
17532001-12-11 Andrew Innes <andrewi@gnu.org>
1754
1755 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
1756 arg is negative.
1757
61e3b944
RS
17582001-12-11 Richard M. Stallman <rms@gnu.org>
1759
1760 * m/hp800.h: Split the __hpux conditional into the parts
1761 that are right for GNU/Linux too and the parts that are not.
1762 Use the former if GNU_LINUX.
1763 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
1764
1765 * s/gnu-linux.h (GNU_LINUX): Defined.
1766
e4ac8240 17672001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
70da46c3
PJ
1768
1769 * macros.c, msdos.c, w16select.c: Change doc-string comments to
1770 `new style' [w/`doc:' keyword].
1771
8af01033
JR
17722001-12-10 Jason Rumney <jasonr@gnu.org>
1773
1774 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
1775 before using.
1776
e4ac8240 17772001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7363986a
PJ
1778
1779 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
1780 keyword].
1781
d9e6c4b1
EZ
17822001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
1783
d20fc48a
EZ
1784 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
1785
d9e6c4b1
EZ
1786 * s/hpux10.h (srand48): Don't undefine.
1787
f1a85b89
JR
17882001-12-09 Jason Rumney <jasonr@gnu.org>
1789
3a232704
SM
1790 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
1791 Add comment to explain where the struct came from.
f1a85b89
JR
1792 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
1793 (add_menu_item): Process pop-up menus first to avoid memory leak.
1794 (add_menu_item, w32_menu_display_help): Use `help' field as
1795 Lisp_Object.
1796 (w32_free_submenu_strings): Only free owner-drawn strings.
1797
e4ac8240 17982001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3a62677f 1799
72244db2
PJ
1800 * COPYING: Moved back.
1801
3a62677f
PJ
1802 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
1803 Add parentheses around && within ||.
1804
1805 * indent.c (compute_motion): Likewise.
1806
1807 * intervals.c (merge_properties_sticky): Likewise.
1808
1809 * coding.c (setup_coding_system, shrink_encoding_region)
1810 (Fdecode_sjis_char): Likewise.
1811
9d113d9d
AS
18122001-12-07 Andreas Schwab <schwab@suse.de>
1813
b8523839
AS
1814 * xdisp.c (display_mode_element): Don't read past end of string if
1815 it ends with '%'.
1816
9464dea4
AS
1817 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
1818 can hold.
1819
3a232704 1820 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
9d113d9d
AS
1821 from most_positive_fixnum and most_negative_fixnum, resp., and
1822 type changed to Lisp_Object.
1823 (syms_of_data): DEFVAR_LISP them.
1824
70ec1377
RS
18252001-12-07 Richard M. Stallman <rms@gnu.org>
1826
1827 * callproc.c (init_callproc): Set Vdata_directory based on the source
1828 location whenever Emacs was run uninstalled.
1829
92f7dd37
PE
18302001-12-06 Paul Eggert <eggert@twinsun.com>
1831
1832 * config.in (HAVE_WORKING_VFORK): New #undefs.
1833 * process.c (create_process):
1834 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
1835 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
1836 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
1837 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
1838 * m/intel386.h (HAVE_VFORK): Likewise.
1839 * m/mips-siemens.h (HAVE_VFORK): Likewise.
1840 * m/mips.h (HAVE_VFORK): Likewise.
1841 * s/freebsd.h (vfork): Remove #define.
1842 * s/lynxos.h (HAVE_VFORK): Remove #undef.
1843 * s/usg5-4-2.h: Fix comment about vfork.
1844
c93674bb
RS
18452001-12-06 Richard M. Stallman <rms@gnu.org>
1846
1847 * s/hpux10.h (random): Add undef.
1848 (HAVE_RANDOM): Define it just once.
1849
59b59892
SM
18502001-12-06 Stefan Monnier <monnier@cs.yale.edu>
1851
1852 * eval.c: Undo last change: the standard syntax is not wanted.
1853
c6ea2775
EZ
18542001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
1855
1856 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
1857 scroll bars of the frame before deleting the frame itself. If the
1858 frame has a widget, delete the frame with XtDestroyWidget, and do
1859 not call XDestroyWindow before that.
1860
91175673
KS
18612001-12-06 Kim F. Storm <storm@cua.dk>
1862
1863 * xfns.c (x_report_frame_params): Return actual fringe widths.
1864
1865 * w32fns.c (x_report_frame_params): Return actual fringe widths.
1866
e0fead5d
AI
18672001-12-05 Andrew Innes <andrewi@gnu.org>
1868
1869 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
1870 excessively large.
1871
1872 * insdel.c (make_gap_larger): New function.
1873 (make_gap_smaller): New function.
1874 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
1875 make_gap_smaller if arg is negative.
1876
c186cdb3
SM
18772001-12-04 Stefan Monnier <monnier@cs.yale.edu>
1878
1879 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
1880 Pass a dummy argument when calling interrupt_signal.
1881 (parse_menu_item): Mark disabled items before checking for empty def.
1882 (read_char_minibuf_menu_prompt): Make safety more visible.
1883 (read_key_sequence): Add a `first_unbound' variable.
1884 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
1885 unbound prefix as soon as we can detect it.
1886
1887 * doc.c (Fsnarf_documentation): Add prototype.
1888 (get_doc_string): Handle negative arguments.
1889 (Fdocumentation): Use AREF and ASIZE.
1890 Move the calls to get_doc_string to a single place.
1891 Don't confuse an interactive-spec for a docstring reference.
1892 (Fdocumentation_property): Take advantage of the fact that
1893 get_doc_string now ignores the sign of the docstring position.
1894
1895 * eval.c: Use standard syntax for usage in docstrings.
1896
e4ac8240 18972001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
58cfce98 1898
c186cdb3 1899 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
58cfce98 1900
e4ac8240 19012001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
62854fe2
PJ
1902
1903 * xterm.c (x_draw_image_relief): Use predefined macro instead of
1904 constant when the value of `tool_bar_button_relief' is negative.
1905
656f46bb
RS
19062001-12-02 Richard M. Stallman <rms@gnu.org>
1907
1908 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
1909 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
1910
1911 * fileio.c (read_non_regular): Delete Fsignal call.
1912
036e218d
SM
19132001-12-01 Stefan Monnier <monnier@cs.yale.edu>
1914
1915 * lisp.h (run_hook_list_with_args): Undo last change.
1916
7ddb2c16
GM
19172001-12-01 Gerd Moellmann <gerd@gnu.org>
1918
1919 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
1920
ace9b298
JR
19212001-12-01 Jason Rumney <jasonr@gnu.org>
1922
90647b07
JR
1923 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
1924
1925 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
1926 [!WM_MOUSELEAVE]: Define.
1927
ace9b298
JR
1928 * w32menu.c (current_popup_menu, get_menu_item_info):
1929 (set_menu_item_info): New vars.
1930 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
1931 (w32_menu_show): Set current_popup_menu.
1932 (add_menu_item): Allocate new strings for owner-drawn menu items
1933 and help strings.
1934 Use owner-draw for disabled menu items again.
1935 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
1936 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
1937
1938 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
1939 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
1940 <WM_EXITMENULOOP>: Free menu strings.
1941 <WM_MOUSELEAVE>: Stop tracking mouse.
1942 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
1943
1944 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
1945 and mouse face.
1946
a9549909 19472001-12-01 Kim F. Storm <storm@cua.dk>
9fbc32aa
KS
1948
1949 The following changes add left-fringe and right-fringe
1950 frame parameters to adjust fringe widths, or remove one or
1951 both fringes.
036e218d 1952
9fbc32aa
KS
1953 * frame.h (struct frame): Remove trunc_area_pixel_width and
1954 trunc_area_cols fields.
1955 (Qleft_fringe, Qright_fringe): Declare.
1956 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
1957
1958 * frame.c (Qleft_fringe, Qright_fringe): New vars.
1959 (syms_of_frame): Initialize them.
1960
1961 * window.c (coordinates_in_window): Handle separate left and right
1962 fringe widths.
1963
1964 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
1965 and fringe_cols fields.
1966 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
1967 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
1968 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
1969 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
1970 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1971 (x_compute_fringe_widths): Add prototype.
1972
1973 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1974 fill fringe evenly with small dashes.
1975 (x_draw_fringe_bitmap): Clear background if necessary. Align and
1976 clip the new ZV bitmap to avoid jitter between rows.
1977 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1978 background. Don't draw fringe bitmaps if fringe width is zero.
1979 (x_compute_fringe_widths): New function.
1980 (x_new_font, x_set_window_size_1): Use it.
1981
1982 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
0c5ee687 1983 (x_set_frame_parameters): Process `font' parameter before other
9fbc32aa
KS
1984 parameters as fringe widths depend on it.
1985 (x_set_fringe_width): New function.
1986 (x_figure_window_size): Use x_compute_fringe_widths.
1987 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1988 parameters.
1989
1990 * widget.c (set_frame_size): Use x_compute_fringe_widths.
1991 (EmacsFrameSetCharSize): Ditto.
1992
1993 * w32term.h: Merged changes from xterm.h.
1994 * w32term.c: Merged changes from xterm.c.
1995 * w32fns.c: Merged changes from xfns.c.
1996
e4ac8240 19972001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
0142178a
PJ
1998
1999 * COPYING: Removed.
2000
d4824a5d
DL
20012001-11-29 Dave Love <fx@gnu.org>
2002
2003 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
2004 extra extra slot.
2005 (detect_coding_mask): Fix call of detect_coding_iso2022.
2006
e4ac8240 20072001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
b1356234
PJ
2008
2009 * fileio.c (file-name-coding-system)
2010 (default-file-name-coding-system): Doc fix (links to referenced
2011 variables added).
2012
3ce081f5
SM
20132001-11-28 Stefan Monnier <monnier@cs.yale.edu>
2014
99e380ee
SM
2015 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
2016 Add dummy uses of gcproN variables.
2017
3ce081f5 2018 * category.c (describe_category, describe_category_1)
2ad56c09 2019 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3ce081f5
SM
2020 (syms_of_category): Don't defsubr Sdescribe_categories.
2021
66458f32
RS
20222001-11-28 Richard M. Stallman <rms@gnu.org>
2023
2024 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
2025
2026 * Makefile.in (lispdir): New variable, referring to build dir.
2027 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
2028
59a86c99
AI
20292001-11-28 Andrew Innes <andrewi@gnu.org>
2030
2031 * w32menu.c (w32_menu_display_help): Actually add the new argument
2032 OWNER.
2033
eb77a5f4
JR
20342001-11-28 Jason Rumney <jasonr@gnu.org>
2035
2036 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
2037 menu items. From David Ponce <dponce@wanadoo.fr>.
2038 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
2039 conditionally.
2040 (w32_menu_display_help): New argument OWNER. Rewritten to store a
2041 help event in the owner frame's keyboard buffer.
2042
2043 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
2044 (Fx_show_tip): Don't subtract last width from row width.
2045
2046 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
2047 (w32_read_socket): Use EQ to compare frames.
2048
bb313871
GM
20492001-11-28 Gerd Moellmann <gerd@gnu.org>
2050
2051 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
2052 OVERLAPS_P.
2053
e4ac8240 20542001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
55b43a63 2055
6052529b
PJ
2056 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
2057 `gcpro3' and `gcpro4'.
2058
3ce081f5
SM
2059 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
2060
20612001-11-28 Stefan Monnier <monnier@cs.yale.edu>
2062
2063 * ccl.c: Use AREF and ASIZE.
2064
20652001-11-27 Stefan Monnier <monnier@cs.yale.edu>
2066
2067 * lisp.h (run_hook_list_with_args): Remove.
2068 (LIST_END_P): Fix call to wrong_type_argument.
2069 (make_fixnum_or_float): Use EMACS_INT rather than int.
55b43a63 2070
111ed14e
SM
20712001-11-26 Stefan Monnier <monnier@cs.yale.edu>
2072
9fabb2f5
SM
2073 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
2074 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
2075
2076 * eval.c: Use AREF and ASIZE.
2077 (Ffetch_bytecode): Add the file name to the error message.
2078
2079 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
2080 which match the end of the file-name.
2081 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
2082 is not a valid env var, but leave it as is instead.
2083
111ed14e
SM
2084 * keymap.c (access_keymap): Handle t bindings like nil bindings.
2085 Make nil bindings in char-tables transparent.
2086 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
2087
2fa0eedf
RS
20882001-11-26 Richard M. Stallman <rms@gnu.org>
2089
d1420435
RS
2090 * textprop.c (set_text_properties_1): Allow START, END in either order.
2091 Do nothing if range is empty.
2092
2fa0eedf
RS
2093 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
2094
ebcbef4e
RS
2095 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
2096 (clean): Not here.
2097
5c131048
SM
20982001-11-25 Stefan Monnier <monnier@cs.yale.edu>
2099
2100 * textprop.c (set_text_properties_1): Clearly mark that the
2101 interval should not be empty.
2102
2103 * intervals.c (graft_intervals_into_buffer):
2104 Don't call set_text_properties_1 on an empty interval.
2105
96d276c3
RS
21062001-11-25 Richard M. Stallman <rms@gnu.org>
2107
6108b49c
RS
2108 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
2109
96d276c3
RS
2110 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
2111 don't lose the data in it.
2112
5eea19a4
RS
21132001-11-25 Juanma Barranquero <lektu@terra.es>
2114
2115 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
2116
2117 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
2118
2119 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
2120
438e57dd
SM
21212001-11-25 Stefan Monnier <monnier@cs.yale.edu>
2122
2123 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
2124
c88e5347
EZ
21252001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
2126
2127 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
2128 Niemitalo <kon@iki.fi>.
2129
59ce1461
JR
21302001-11-25 Jason Rumney <jasonr@gnu.org>
2131
2132 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
2133
2134 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
2135 (Fx_show_tip): Block input during frame creation.
2136 (Fx_show_tip, Fx_hide_tip): Enable.
2137
8727d588
RS
21382001-11-24 Richard M. Stallman <rms@gnu.org>
2139
2140 * lread.c (Fload): Detect recursive load error for more than 3
2141 nestings of the same file.
2142 (Vrecursive_load_depth_limit): Variable deleted.
2143 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
2144
cc63037e
JR
21452001-11-24 Jason Rumney <jasonr@gnu.org>
2146
2147 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
2148 mouse position if either left or top is not specified.
2149
2150 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
2151 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
2152 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
2153 (my_create_tip_window): Assign tip_window.
2154 (x_create_tip_frame): Use same defaults as X.
2155 (compute_tip_xy): Remove unused variable. Use full screen width.
2156 (Fx_show_tip): Do not double height. Call ShowWindow directly.
2157
2158 * w32term.c (x_after_update_window_line): Doc fix.
2159 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
2160 frames.
2161 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
2162
2163 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
2164 for all Windowed systems.
2165
deece6f5
EZ
21662001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
2167
2168 * msdos.c (IT_clear_screen): If the frame's faces are not yet
2169 realized, use the initial screen colors to clear the screen.
2170
e4ac8240 21712001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1b944d9c 2172
28ff4293
PJ
2173 * textprop.c (Fset_text_properties): Remove unused variables
2174 `unchanged', `prev_changed', `s' and `len'.
2175
56167cc5
PJ
2176 * search.c (Freplace_match): Remove unused variable `inslen'.
2177
1b944d9c
PJ
2178 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
2179
ca56d953
JR
21802001-11-22 Jason Rumney <jasonr@gnu.org>
2181
2182 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
2183 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
2184 (my_create_tip_window): New function.
2185 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
93dec019 2186 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
ca56d953 2187
33399dce
JR
21882001-11-20 Jason Rumney <jasonr@gnu.org>
2189
2190 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
2191 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
2192
2193 * w32fns.c (Vw32_system_coding_system): Remove.
2194 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
2195
9b46de40
SM
21962001-11-19 Stefan Monnier <monnier@cs.yale.edu>
2197
6710ea06
SM
2198 * fileio.c (Fwrite_region): Move choose_write_coding_system to
2199 after build_annotations.
2200
a395ef6a
SM
2201 * syntax.c (describe_syntax): Add dummy arg.
2202 (describe_syntax_1): Update call to describe_vector.
2203
2204 * category.c (describe_category): Add dummy arg.
2205 (describe_category_1): Update call to describe_vector.
2206
2207 * keymap.c (Fdescribe_vector): Add `describer' parameter.
2208 (describe_command, describe_translation): Add dummy second param.
2209 (describe_map): Call elt_describer with two arguments.
2210 (describe_vector_princ): Add `fun' parameter.
2211 Call it instead of the hardcoded `princ'.
2212 (describe_vector): Add arg `args'.
2213 Pass it as a new second argument to elt_describer.
2214
2215 * keymap.h (describe_vector): Update prototype.
2216
9b46de40
SM
2217 * frame.c: Don't include keymap.h any more.
2218 (keys_of_frame): Remove.
2219
2220 * lisp.h (keys_of_frame): Remove declaration.
2221
2222 * emacs.c (main): Don't call `keys_of_frame' any more.
2223
aff37336
SS
22242001-11-14 Andreas Schwab <schwab@suse.de>
2225
2226 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
2227 if defined, 0 otherwise.
9b46de40 2228 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
2229 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
2230
b9937f07
RS
22312001-11-19 Richard M. Stallman <rms@gnu.org>
2232
2233 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
2234
2cd23960
JR
22352001-11-18 Jason Rumney <jasonr@gnu.org>
2236
2237 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
2238 (x_draw_bar_cursor): If the background color of the glyph under
2239 the cursor equals the frame's cursor color, use the glyph's
2240 foreground color for drawing the bar cursor.
2241 (x_after_update_window_line): Clear internal border in different
2242 circumstances.
2243 (w32_set_vertical_scroll_bar): Check for width and height > 0.
2244 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
2245 (x_set_glyph_string_background_width):
2246 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
2247 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
2248 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
2249 if cursor_in_non_selected_windows is false.
9b46de40 2250 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
2251 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
2252 Notice if cursor gets overwritten.
2253 (notice_overwritten_cursor): Renamed from
2254 note_overwritten_text_cursor. Rewritten to take glyph widths
2255 into account, and to take X positions as parameters.
2256 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2257 around call to x_draw_glyphs.
2258 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2259 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2260 color to use for image glyph reliefs.
2261 (x_draw_image_relief): Accept zero tool_bar_button_relief.
2262 (glyph_rect): Remove unused variable `area'.
2263
2264 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
2265 some items.
2266 (x_set_internal_border_width): Set frame garbaged when window
2267 doesn't exist yet.
2268 (Fx_create_frame): Accept zero tool_bar_button_relief.
2269 (x_clear_image_1, four_corners_best, image_background)
2270 (image_background_transparent): New functions.
2271 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2272 (gs_format): Add `:background' entry.
2273 (lookup_image): Set IMG's background color if specified.
2274 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2275 when appropriate.
2276 (x_clear_image_1): Reset `background_valid' and
2277 `background_transparent_valid' fields.
2278 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2279 calculating it here. Set IMG's background_transparent field.
2280 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2281 (enum png_keyword_index): Add PNG_BACKGROUND.
2282 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2283 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2284 (enum gif_keyword_index): Add GIF_BACKGROUND.
2285 (enum gs_keyword_index): Add GS_BACKGROUND.
2286 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2287 Pre-calculate image background color where necessary.
9b46de40
SM
2288 (x_create_x_image_and_pixmap, xbm_load, gs_load):
2289 Use display info's n_cbits entry for screen depth.
2cd23960
JR
2290 (Fx_show_tip): Remove unused variables `buffer', `top',
2291 `left', `max_width' and `max_height'.
2292
2293 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
2294
a4184c1c
GM
22952001-11-18 Gerd Moellmann <gerd@gnu.org>
2296
2297 * puresize.h (BASE_PURESIZE): Increase to 750000.
2298
e4ac8240 22992001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f6fa0866
PJ
2300
2301 * frame.c (Fframe_live_p): Doc fix.
2302
f4ca4b00
RS
23032001-11-18 Richard M. Stallman <rms@gnu.org>
2304
2305 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
2306 (message_dolog_marker3): New static variables hold three markers.
2307 (syms_of_xdisp): Initialize and staticpro them.
2308 (message_dolog): Use message_dolog_marker1..3 instead of
2309 allocating markers each time. Unchain them when done.
2310
f4e25f94
RS
23112001-11-17 Richard M. Stallman <rms@gnu.org>
2312
2313 * doc.c (Fsnarf_documentation): Doc fix.
2314
91c153e2
AS
23152001-11-17 Andreas Schwab <schwab@suse.de>
2316
2317 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
2318
65b7d3e7
RS
23192001-11-17 Richard M. Stallman <rms@gnu.org>
2320
2321 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
2322
6b5f6311
JR
23232001-11-17 Jason Rumney <jasonr@gnu.org>
2324
2325 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
2326
be676094
GM
23272001-11-17 Gerd Moellmann <gerd@gnu.org>
2328
2329 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
2330 with invalid position.
2331
032a857d
RS
23322001-11-16 Richard M. Stallman <rms@gnu.org>
2333
2334 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
2335
2336 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
2337 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
2338 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
2339
2340 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
2341
b6270150
SM
23422001-11-16 Stefan Monnier <monnier@cs.yale.edu>
2343
2344 * fileio.c (build_annotations): Split off the tail.
2345 (build_annotations_2): New fun. Extracted from build_annotations.
2346 (Fwrite_region): Split the call to build_annotations into two
2347 calls to build_annotations and build_annotations_2.
2348
e4ac8240 23492001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
792e5cbd 2350
98cbb9fa
PJ
2351 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
2352 clear_waiting_for_input with argument.
2353
2354 * xterm.h (x_update_cursor): Remove duplicated prototype.
2355
b6270150 2356 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 2357
ea904403 2358 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 2359
ea904403 2360 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 2361
fa336b91
SM
23622001-11-16 Stefan Monnier <monnier@cs.yale.edu>
2363
2364 * fileio.c (choose_write_coding_system): New fun, extracted
2365 from Fwrite_region.
2366 (Fwrite_region): Use it.
2367
2368 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
2369 (funcall_lambda, run_hook_with_args): Make static and add prototype.
2370 (ml_apply, find_handler_clause): Add prototype.
2371
077907d4
EZ
23722001-11-16 Eli Zaretskii <eliz@gnu.org>
2373
aa2af83a
EZ
2374 * config.in: Add #undef HAVE_COFF_H.
2375
077907d4
EZ
2376 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
2377 Required for ISC 4.1.
2378
1756e2fb
EZ
23792001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
2380
2381 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
2382 Andrew Wiseman <a.wiseman@btclick.com>.
2383
06e8f738
KS
23842001-11-16 Kim F. Storm <storm@cua.dk>
2385
2386 The following changes are made to clean up the various internal
2387 references to the fringes to actually use the term `fringe' for
2388 them. Previously, they were called `flags areas', `bitmap areas',
2389 `left/right side of windows', or implicitly as `flags' or
2390 `bitmaps':
2391
2392 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
2393 Comments fixed. Use renamed symbols.
fa336b91 2394
06e8f738 2395 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 2396
06e8f738
KS
2397 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
2398 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
2399 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 2400
06e8f738 2401 * msdos.c: Comment fix.
fa336b91 2402
06e8f738 2403 * w32fns.c: Use renamed symbols.
fa336b91 2404
06e8f738
KS
2405 * w32term.c: Comment fixes. Use renamed symbols.
2406 (fringe_bitmap_type): Renamed from bitmap_type.
2407 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2408 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
2409 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 2410
06e8f738
KS
2411 * w32term.h: Comment fixes. Use renamed symbols.
2412 (fringes_extra): Renamed from flags_areas_extra.
2413 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2414 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2415 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2416 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
2417 (FRAME_X_LEFT_FRINGE_WIDTH):
2418 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2419 (FRAME_X_RIGHT_FRINGE_WIDTH):
2420 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
2421
06e8f738 2422 * widget.c: Use renamed symbols.
fa336b91 2423
06e8f738
KS
2424 * window.c: Comment fixes. Use renamed symbols.
2425 (coordinates-in-window-p): Doc fix.
fa336b91 2426
06e8f738 2427 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 2428
06e8f738 2429 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 2430
06e8f738 2431 * xfns.c: Use renamed symbols.
fa336b91 2432
06e8f738
KS
2433 * xterm.c: Comment fixes. Use renamed symbols.
2434 (fringe_bitmap_type): Renamed from bitmap_type.
2435 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2436 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
2437 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2438
2439 * xterm.h: Comment fixes. Use renamed symbols.
2440 (fringes_extra): Renamed from flags_areas_extra.
2441 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2442 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2443 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2444 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
2445 (FRAME_X_LEFT_FRINGE_WIDTH):
2446 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2447 (FRAME_X_RIGHT_FRINGE_WIDTH):
2448 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 2449
9ce647f4
JR
24502001-11-15 Jason Rumney <jasonr@gnu.org>
2451
2452 * w32menu.c (add-menu-item): Make help_echo and radio buttons
2453 work for most menu items. From David Ponce
2454 <david.ponce@wanadoo.fr>.
2455
9b784ab8
GM
24562001-11-15 Gerd Moellmann <gerd@gnu.org>
2457
9f7e52b4
GM
2458 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
2459 Some x_set_* function expect to be called even if old and new
2460 value are equal.
2461
2462 * xdisp.c (build_desired_tool_bar_string): Accept zero
2463 tool_bar_button_relief.
2464
2465 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
2466
2467 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 2468
34e5d0af
GM
2469 * xterm.c (x_draw_bar_cursor): If the background color of the
2470 glyph under the cursor equals the frame's cursor color, use
2471 the glyph's foreground color for drawing the bar cursor.
2472
9b784ab8
GM
2473 * dispnew.c (direct_output_forward_char): Fix character/byte
2474 position comparison.
2475
89512fcd
MB
24762001-11-15 Miles Bader <miles@gnu.org>
2477
2478 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
2479 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
2480 Update arguments to find_field.
2481 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
2482 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
2483 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
2484 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
2485
7d18891d
RS
24862001-11-14 Richard M. Stallman <rms@gnu.org>
2487
d2936d21
RS
2488 * editfns.c (Fpropertize): Allow call with 1 arg.
2489
7d18891d
RS
2490 * dispextern.h (image_background, image_background_transparent):
2491 Conditionalize on HAVE_X_WINDOWS.
2492
24932001-11-13 Richard M. Stallman <rms@gnu.org>
2494
2495 * print.c (Fprin1_to_string): Doc fix.
2496
2497 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
2498
2499 * floatfns.c (Fceiling, Ffloor): Doc fixes.
2500
2501 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
2502
2503 * fileio.c (Ffile_accessible_directory_p): Doc fix.
2504
2505 * eval.c (syms_of_eval): Doc fix.
2506
2507 * coding.c (syms_of_coding): Doc fix.
2508
2509 * doc.c (Fsnarf_documentation): Doc fix.
2510
2511 * dispnew.c (syms_of_display): Doc fix.
2512
2513 * category.c (Fget_unused_category): Doc fix.
2514
2515 * buffer.c (syms_of_buffer): Doc fixes.
2516
9474c847
EZ
25172001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
2518
2519 * print.c (prin1, print): Doc fix.
2520
e4ac8240 25212001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
e3059a5d 2522
2b6f3c2b 2523 * fontset.h: Remove declarations of variables
e3059a5d
PJ
2524 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
2525
2526 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
2527 `Vclip_large_size_font'.
2528
b3700ae7
JR
25292001-11-13 Jason Rumney <jasonr@gnu.org>
2530
2531 * w32fns.c: Doc fix.
2532
e4ac8240 25332001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
eae936e2 2534
4bb962be
PJ
2535 * xfaces.c (Fface_attributes_as_vector): Doc fix.
2536
0a332240
PJ
2537 * w32fns.c (Fx_synchronize): Reindent.
2538
ddb67bdc
PJ
2539 * fns.c: Doc fix.
2540
3467c402
PJ
2541 * emacs.c: Doc fix.
2542
2543 * coding.c: Doc fix.
2544
6e1b91d7
PJ
2545 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
2546 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
2547 `new style' [w/`doc:' keyword].
2548
f6e34773
PJ
2549 * xmenu.c (x-popup-menu): Reindent.
2550 (x-popup-dialog): Likewise.
2551
fa336b91 2552 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
c71f3632 2553
c2552f79
PJ
2554 * xdisp.c (Fdump_tool_bar_row): Reindent.
2555
94c7167b
PJ
2556 * minibuf.c (Fminibuffer_complete_word): Reindent.
2557 (Fminibuffer_complete_and_exit): Likewise.
fa336b91 2558 (Fminibuffer_completion_help): Likewise.
94c7167b
PJ
2559 (Fminibuffer_message): Likewise.
2560
462a5e3a
PJ
2561 * fns.c (Freverse): Reindent.
2562
b8de5714
PJ
2563 * eval.c (Fif): Reindent.
2564 (Fand): Likewise.
2565
deb8e082
PJ
2566 * editfns.c (Fuser_real_login_name): Reindent.
2567 (Finsert_buffer_substring): Likewise.
2568 (Fcompare_buffer_substrings): Likewise.
2569 (Fsubst_char_in_region): Likewise.
2570
bacf09b4
PJ
2571 * dispnew.c (Fsit_for): Reindent.
2572 (Fframe_or_buffer_changed_p): Likewise.
2573 (Finternal_show_cursor_p): Likewise.
2574 (syms_of_display): Likewise.
2575
eae936e2
PJ
2576 * alloc.c (Flist): Reindent.
2577 (Fvector): Likewise.
2578
1c1d3d69
RS
25792001-11-12 Richard M. Stallman <rms@gnu.org>
2580
2581 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
2582 LeaveNotify events. Only FocusIn and FocusOut do that now.
2583 (x_display_and_set_cursor): Do display hollow cursors in active
2584 minibuffer windows when they are not selected.
2585
b6f4c7ba
JR
25862001-11-12 Jason Rumney <jasonr@gnu.org>
2587
2588 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
2589 * w32term.c: Change doc-string comments to `new style'.
2590 [w/`doc:' keyword]. Doc fixes.
2591
2592 * w32fns.c: Don't define max.
2593 (Fx_open_connection): Only execute once.
2594
e4ac8240 25952001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a89f435d
PJ
2596
2597 * ccl.c: Change macros to use do-while block instead of if-else.
2598 Use braces to follow GNU Coding Standards.
2599
a4cd0cd7
RS
26002001-11-11 Richard M. Stallman <rms@gnu.org>
2601
eafb659a
RS
2602 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
2603
2604 * lread.c (read_escape): Use end_of_file_error for reporting eof.
2605
a4cd0cd7
RS
2606 * insdel.c (replace_range): Use adjust_markers_for_replace
2607 instead of adjust_markers_for_delete and adjust_markers_for_insert.
2608
2609 * intervals.h: Declare set_text_properties and set_text_properties_1.
2610
2611 * textprop.c (set_text_properties_1): New subroutine
2612 broken out of set_text_properties.
2613 (set_text_properties): Use set_text_properties_1.
2614
2615 * intervals.c (graft_intervals_into_buffer):
2616 Use set_text_properties_1 to clear out properties.
2617
2618 * search.c (Freplace_match): Use replace_range to insert
2619 and delete. Don't request property inheritance from
2620 surrounding text.
2621
91823618
JR
26222001-11-10 Jason Rumney <jasonr@gnu.org>
2623
2624 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
2625 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 2626 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 2627
86928dfb
GM
26282001-11-10 Gerd Moellmann <gerd@gnu.org>
2629
fa336b91 2630 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
2631 instead of malloc/free.
2632
e4ac8240 26332001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
40ef1eda 2634
ab8469eb
PJ
2635 * xfaces.c (merge_face_vectors): Use braces to follow GNU
2636 Coding Standards.
2637 (Finternal_set_lisp_face_attribute): Likewise.
2638
a78e0303
PJ
2639 * buffer.c (Fbury_buffer): Likewise.
2640
40ef1eda
PJ
2641 * indent.c (current_column_1): Remove unused variable `prev_col'.
2642
fabf4a91
PJ
2643 * coding.c (encode_coding): Use precomputed value of `src'.
2644 (encode_coding): Remove unused variable `src_end'.
2645 (code_convert_region): Remove unused variables `count'.
2646
0c99b139
JR
26472001-11-07 Jason Rumney <jasonr@gnu.org>
2648
2649 * w32term.c (x_display_and_set_cursor): Do not move system caret
2650 if cursor_glyph is NULL.
2651
e4ac8240 26522001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
830ddd77
PJ
2653
2654 * keymap.c (access_keymap): Fix compilation error.
2655
55c6d645
MB
26562001-11-07 Miles Bader <miles@gnu.org>
2657
2658 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
2659
e4ac8240 26602001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
5de38842 2661
7a4564a4
PJ
2662 * intervals.c (graft_intervals_into_buffer):
2663 Remove #ifdef'd-out code.
2664 (graft_intervals_into_buffer): Remove unused variable `middle'.
2665
5de38842
PJ
2666 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
2667 code (eval-current-buffer).
2668 Change doc-string comments to `new style' [w/`doc:' keyword].
2669
4fa23df5
RS
26702001-11-06 Richard M. Stallman <rms@gnu.org>
2671
2672 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
2673
7a6a97d7
SM
26742001-11-06 Stefan Monnier <monnier@cs.yale.edu>
2675
c191d13c
SM
2676 * lread.c (read1): Fix behavior with nested backquoting.
2677
7a6a97d7
SM
2678 * keyboard.c (make_lispy_event): Check integerness and fix
2679 Lisp_Object/int mixup.
2680
e4ac8240 26812001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
44dc78e0
PJ
2682
2683 * fns.c (copy_hash_table): Remove unused variable `v'.
2684
17893c65
PJ
2685 * fontset.c (fontset_font_pattern): Remove unused variable
2686 `family_registry'.
2687
4d994a79
PJ
2688 * indent.c (current_column_1): Remove unused variable `prev_col'.
2689
d5360cc7
RS
26902001-11-05 Richard M. Stallman <rms@gnu.org>
2691
2692 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
2693
2694 * buffer.c (Fkill_buffer): Don't delete auto save file
2695 if buffer is modified.
2696
96238a5a
AI
26972001-11-05 Andrew Innes <andrewi@gnu.org>
2698
2699 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
2700 CHECK_NUMBER_CDR.
2701
d9d54213
RS
27022001-11-05 Richard M. Stallman <rms@gnu.org>
2703
2704 * unexelf.c (unexec): Minor changes; clean up comments.
2705
b116830b
SS
27062001-11-05 Sam Steingold <sds@gnu.org>
2707
2708 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
2709
3297e2a1
AS
27102001-11-05 Andreas Schwab <schwab@suse.de>
2711
2712 * sound.c (sound_perror): Save errno from being clobbered.
2713
9212319f 27142001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
2715
2716 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
2717 the program image directly.
2718
e4ac8240 27192001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
7dd73b78
PJ
2720
2721 * buffer.h (Fbuffer_local_value): Add prototype.
2722
982f6c7e
RS
27232001-11-04 Richard M. Stallman <rms@gnu.org>
2724
d31053f9
RS
2725 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
2726 and CHECK_BUFFER.
2727
2728 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
2729 (record_char): Likewise.
2730
2731 * keyboard.c (make_lispy_event): Don't insist a drag event must
2732 move to a different buffer position. Instead, check for moving at
2733 least double_click_fuzz.
2734
2735 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
2736
2737 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
2738
982f6c7e
RS
2739 * indent.c (current_column_1, Fmove_to_column): Separate the code
2740 for display-table glyphs from the code buffer text, to fix
2741 bugs in the former.
2742
830047fd
RS
27432001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
2744
2745 * buffer.c (Fbuffer_local_value): New function.
c191d13c 2746 (syms_of_buffer): Defsubr it.
b116830b 2747
830047fd
RS
2748 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
2749 value of `cursor-in-non-selected-windows'.
2750
2751 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
2752 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
2753 (syms_of_xdisp): Initialize it.
b116830b 2754
e4ac8240 27552001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2df5238c 2756
4e397688
PJ
2757 * xfns.c (Fx_create_frame): Doc fix.
2758
48b0f3ae
PJ
2759 * coding.c: Change doc-string comments to `new style' [w/`doc:'
2760 keyword].
2761
2df5238c
PJ
2762 * eval.c (top_level_value, top_level_set): Remove commented and
2763 #ifdef'd-out code.
2764 (Fdefvar): Fix usage in doc-string.
2765
3ecaf7e5
RS
27662001-11-03 Richard M. Stallman <rms@gnu.org>
2767
2768 * xfns.c: Include unistd.h, if it exists.
2769
2770 * editfns.c: Move the include of ctype.h after unistd.h.
2771
2772 * gmalloc.c: Test BROKEN_PROTOTYPES.
2773
8db2e33b
KR
27742001-11-03 Ken Raeburn <raeburn@gnu.org>
2775
2776 * lisp.h (CHECK_STRING_CAR): New macro.
2777 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
2778 treating XCAR and XCDR as lvalues.
2779 (openp): Use CHECK_STRING_CAR.
2780 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
2781
aed29b97
EZ
27822001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
2783
2784 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 2785 (SIGMASKTYPE): Define.
aed29b97
EZ
2786
2787 * syssignal.h (sigunblock): Don't define if already defined.
2788
e4ac8240 27892001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6cb16f95 2790
16b45be4
EZ
2791 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
2792 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
2793 Fix typos in comments.
2794
020f9b38
PJ
2795 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
2796 and #ifdef'd-out code.
2797 Fix and reindent comments.
2798
c191d13c 2799 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 2800
6cb16f95
PJ
2801 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
2802 argument `i' in macros.
2803
2804 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
2805 `i' in macros.
2806
16b45be4
EZ
2807 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2808 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
2809 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
2810 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
2811 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
2812 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2813 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
2814 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
2815 in macros.
2816
2817 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
153c2160
PJ
2818 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
2819 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
2820 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
2821 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
2822 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
2823 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
2824 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
2825 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6cb16f95
PJ
2826 (remove unused second argument).
2827
7e9d3c2f
SM
28282001-11-02 Stefan Monnier <monnier@cs.yale.edu>
2829
2830 * syntax.c (describe_syntax): New wrapper.
2831 (Finternal_describe_syntax_value): Rename from describe_syntax.
2832 Don't insert space at front and \n at the end.
2833 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
2834
2835 * regex.c (re_wctype): Try to fix some warnings.
2836 (regcomp, regexec): Don't forget the __restrict.
2837
e6bff182
RS
28382001-11-02 Richard M. Stallman <rms@gnu.org>
2839
2840 * textprop.c (Fget_char_property): Doc fix.
2841
e4ac8240 28422001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
9ba48103
PJ
2843
2844 * process.c (Fstart_process): Add usage to doc-string.
2845
2846 * data.c (Fsetq_default): Ditto.
2847
2848 * callint.c (Finteractive): Ditto.
2849
c22e59e1
SM
28502001-11-01 Stefan Monnier <monnier@cs.yale.edu>
2851
2852 * macros.c: Don't include keymap.h any more.
2853
9271ed2c
RS
28542001-11-01 Richard M. Stallman <rms@gnu.org>
2855
e6bff182
RS
2856 * data.c (Fmake_local_variable): Doc fix.
2857
2858 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
2859 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
2860
9271ed2c
RS
2861 * keymap.c (Fdescribe_buffer_bindings): Print character property
2862 bindings along with or instead of the buffer local map.
2863 Make the overriding maps override what they should.
2864
e4ac8240 28652001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
8b8bd9c6
PJ
2866
2867 * window.c (grow_mini_window): Fix typo in comment.
2868
27188d11
GM
28692001-11-01 Gerd Moellmann <gerd@gnu.org>
2870
7b49b9d2
GM
2871 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
2872 (XTset_vertical_scroll_bar): Likewise.
2873
43f7c3ea
GM
2874 * xfns.c (x_build_heuristic_mask): Use four_corners_best
2875 instead of IMAGE_BACKGROUND.
c22e59e1 2876
b350c2e5
GM
2877 * xfns.c (four_corners_best): Reindent.
2878
c22e59e1 2879 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
2880 Handle :box so that it is possible to specify sexprs.
2881
e4ac8240 28822001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d576358b
PJ
2883
2884 * xfaces.c (Finternal_merge_in_global_face): Reindent.
2885 (Fface_font): Ditto.
2886 (Finternal_set_alternative_font_registry_alist): Ditto.
2887 (Ftty_suppress_bold_inverse_default_colors): Ditto.
2888
2889 * xfns.c (x-get-resource): Reindent.
2890
bf00d461
EZ
28912001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
2892
2893 * s/hpux11.h: New file.
2894
e4ac8240 28952001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e10df59 2896
2b209b97
PJ
2897 * emacs.c (USAGE1): Show command line option --no-window-system
2898 instead of --no-windows in usage.
2899 (standard_args): Rename --no-windows to --no-window-system.
2900 (bug_reporting_address): Follow Emacs coding conventions.
2901
9dbc9081
PJ
2902 * eval.c (Fcommandp): Doc fix.
2903 Change doc-string comments to `new style' [w/`doc:' keyword].
2904
4e10df59
PJ
2905 * frame.c (Fframe_live_p): Doc fix.
2906
2907 * buffer.c (selective-display-ellipses): Doc fix.
2908
dd387b25
GM
29092001-10-31 Gerd Moellmann <gerd@gnu.org>
2910
fe957e65
GM
2911 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
2912
dd387b25
GM
2913 * xfaces.c (realize_x_face): If C is not a single-byte character,
2914 set the face's colors_copied_bitwise_p instead of the defaulted_p
2915 members which have a different meaning.
2916 (free_face_colors): Do nothing for a face whose colors have been
2917 copied bitwise.
2918
c22e59e1 2919 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 2920
e4ac8240 29212001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2e1280f8 2922
687784e8
PJ
2923 * marker.c, mocklisp.c: Change doc-string comments to `new style'
2924 [w/`doc:' keyword].
2e1280f8 2925
b9d9a9b9
GM
29262001-10-31 Gerd Moellmann <gerd@gnu.org>
2927
2928 * fns.c (require_unwind): Return Lisp_Object.
2929
e4ac8240 29302001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
48400103 2931
fa1361cb
PJ
2932 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
2933 (last-input-char): Revert doc-string to be the same as the
2934 doc-string of `last-input-event'.
2935
48400103
PJ
2936 * xdisp.c: Fix typos in comments.
2937
eafa3196
GM
29382001-10-31 Gerd Moellmann <gerd@gnu.org>
2939
2940 * window.c (grow_mini_window): Handle case that the root
2941 window is already smaller than the nominal mininum height.
2942
747d3f2a
SM
29432001-10-30 Stefan Monnier <monnier@cs.yale.edu>
2944
bf9bb76f
SM
2945 * emacs.c (main): Don't call keys_of_macros any more.
2946
2947 * lisp.h (keys_of_macros): Remove.
2948
2949 * macros.c (keys_of_macros): Remove.
2950
747d3f2a
SM
2951 * xfaces.c (Fface_attribute_relative_p): Declare args.
2952
5e905a57
JR
29532001-10-30 Jason Rumney <jasonr@gnu.org>
2954
2955 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
2956 (enum_font_cb2): Ignore fonts with vertical orientation.
2957
3a426197
RS
29582001-10-30 Richard M. Stallman <rms@gnu.org>
2959
2960 * keyboard.c (Finput_pending_p): Doc fix.
2961
a742d646
GM
29622001-10-30 Gerd Moellmann <gerd@gnu.org>
2963
259cf6bc
GM
2964 * xterm.c (x_after_update_window_line): Don't run the code
2965 clearing in borders for rows whose visible height is 0.
2966
3f99f948
GM
2967 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
2968 resized_p flag is set. If not set, use the much less flickering
2969 method previously used.
2970
2971 * dispnew.c (change_frame_size_1): Set frame's resized_p.
2972
2973 * frame.h (struct frame) <resized_p>: New member.
2974
b4a3be43
GM
2975 * lread.c (to_multibyte): Ensure read_buffer is at least twice
2976 as large as the number of bytes to convert.
747d3f2a 2977
a742d646
GM
2978 * lread.c (to_multibyte): New function.
2979 (read1): Use it.
2980
cacbb9e9
EZ
29812001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
2982
2983 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2984
99cb6b2f
GM
29852001-10-30 Gerd Moellmann <gerd@gnu.org>
2986
327f42ee 2987 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
2988 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2989 if the row's fill_line_p is set and drawing the last glyph with
2990 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 2991
99cb6b2f
GM
2992 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2993
8e8223e2
SM
29942001-10-29 Stefan Monnier <monnier@cs.yale.edu>
2995
2996 * xmenu.c: Include coding.h and charset.h.
2997 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2998 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2999 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
3000 Explicitly set wv->help. Use `TRUE' rather than `True'.
3001 (menu_help_callback): Use empty_string.
3002
3003 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
3004 (Fx_popup_dialog): Explicitly init f.
3005 (w32_menu_display_help): Use empty_string.
3006
4d083a8f
RS
30072001-10-29 Richard M. Stallman <rms@gnu.org>
3008
b2304472
RS
3009 * fns.c (Frequire): Detect recursive try to require the same
3010 feature 3 or more levels deep, and get error.
3011 (require_unwind): New subroutine.
3012 (require_nesting_list): New variable.
3013 (syms_of_fns): Init and staticpro it.
3014
4d083a8f
RS
3015 * print.c (print_object): Clarify indication of insertion type.
3016
2fe41216
EZ
30172001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
3018
90480000
EZ
3019 * coding.c (syms_of_coding): Document that locale-coding-system is
3020 used for decoding input on X.
3021
2fe41216
EZ
3022 * window.c (Fscroll_left, Fscroll_right): Doc fix.
3023
e4ac8240 30242001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
74e79967
PJ
3025
3026 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
3027 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
3028
60ebcfe8
GM
30292001-10-29 Gerd Moellmann <gerd@gnu.org>
3030
9a7bdceb
GM
3031 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
3032 use NO_CURSOR if cursor_in_non_selected_windows is false.
3033
3f08fcd2
GM
3034 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
3035 the slant attribute if FRAME is t.
3036
0ccfdad2
GM
3037 * xfns.c (x_set_internal_border_width): Set frame garbaged
3038 when X window doesn't exist yet.
3039
ef253080
GM
3040 * xterm.c (x_after_update_window_line): Clear internal border
3041 in different circumstances.
b116830b 3042
60ebcfe8
GM
3043 * xterm.c (XTread_socket) <KeyPress>: Don't use
3044 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
3045 <handa@etl.go.jp>.
3046
73d25f9c
EZ
30472001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3048
3049 * m/ibms390.h: New file. From Adam Thornton
3050 <athornton@sinenomine.net>.
3051
cac1daf0
GM
30522001-10-28 Gerd Moellmann <gerd@gnu.org>
3053
053b3256 3054 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 3055
cac1daf0
GM
3056 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
3057 a loop counter.
3058
e4ac8240 30592001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
13b1a09c 3060
186486eb
PJ
3061 * emacs.c: Use argv[0] instead of emacs when -t was specified.
3062
4707d2d0
PJ
3063 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
3064 keyword].
3065 Fix typos in comments.
b116830b 3066
d883731c
PJ
3067 * emacs.c (bug_reporting_address): New function.
3068 Use it when displaying usage message.
3069
04012254
PJ
3070 * minibuf.c (read_minibuf): Remove unused external declaration of
3071 variable `Qread_only'.
3072
13b1a09c
PJ
3073 * keymap.c (access_keymap): Remove unused variable `charset'.
3074
5bbf4378
MB
30752001-10-28 Miles Bader <miles@gnu.org>
3076
3077 * xfaces.c (merge_face_heights): Handle TO being relative as well.
3078 Remove #ifdef'd-out code.
3079 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
3080 (syms_of_xfaces): Initialize them.
3081
1ce1e4ee
JR
30822001-10-27 Jason Rumney <jasonr@gnu.org>
3083
3084 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
3085 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
3086 position using the system caret.
3087
3088 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
3089 (w32_system_caret_height, w32_system_caret_x)
3090 (w32_system_caret_y): New variables for tracking system caret.
3091 (w32_initialize): Initialize them.
c2d53558 3092 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 3093
c2d53558
SM
3094 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
3095 New messages types.
1ce1e4ee
JR
3096
3097 * w32term.c (note_mouse_highlight): Clear old help_echo.
3098
e4ac8240 30992001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4e30ce42 3100
bb4600a4
PJ
3101 * xterm.c: Fix typo in a comment.
3102
7db35a48
PJ
3103 * emacs.c: Fix typos in comments.
3104 Remove unnecessary spaces.
3105 Change doc-string comments to `new style' [w/`doc:' keyword].
3106 (USAGE2): Fix typos in usage string.
3107
a7248e4f
PJ
3108 * xterm.c: Fix typo in a comment.
3109
4e30ce42
PJ
3110 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
3111 emacs.c.
3112
62725a92
GM
31132001-10-27 Gerd Moellmann <gerd@gnu.org>
3114
798dbe1f 3115 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 3116 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
3117 farther backward when target_y was not reached.
3118
62725a92
GM
3119 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
3120 Display errno only if non-zero.
3121 (sound_warning): New function.
3122 (vox_configure): Don't treat failing to set sample rate as error.
3123 (various places): Improve error messages.
3124
d4e34d24
EZ
31252001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
3126
944e6f60
EZ
3127 * fileio.c (Faccess_file): Run the argument filename through
3128 Fexpand_file_name, before using it.
3129
d4e34d24
EZ
3130 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
3131 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
3132
38d2af0c
GM
31332001-10-26 Gerd Moellmann <gerd@gnu.org>
3134
da80a8d5
GM
3135 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
3136
38d2af0c
GM
3137 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3138 Fix clearing in the case of scroll bars on the right.
c2d53558 3139
56f508dd
EZ
31402001-10-26 Juanma Barranquero <lektu@terra.es>
3141
3142 * w32gui.h (XImage): Add a dummy typedef.
3143
fbd5ceb2
GM
31442001-10-26 Gerd Moellmann <gerd@gnu.org>
3145
c2d53558 3146 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 3147
b23236fb
EZ
31482001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
3149
3150 * frame.c (Fframe_parameter): Fix last change.
3151
5d991fc4
EZ
3152 * fileio.c: Revert last change (which removed old commented-out
3153 version of expand-file-name). Add a comment that explains why
3154 this old version should not be removed.
3155
879eadc3
GM
31562001-10-25 Gerd Moellmann <gerd@gnu.org>
3157
75700ff2
GM
3158 * frame.c (Fframe_parameter): Fix a bug whereby some
3159 ``artificial'' frame parameters, like `minibuffer' were not
3160 obtained by calling Fframe_parameters.
3161
dfe92a6a
GM
3162 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
3163 cursor differently.
3164
879eadc3
GM
3165 * xdisp.c (move_it_vertically_backward): Compute line height
3166 differently. Add heuristic to try to be more compatible to 20.x.
3167
e1010ebe
SM
31682001-10-25 Stefan Monnier <monnier@cs.yale.edu>
3169
d73a471b
SM
3170 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
3171
d6da5a06
GM
3172 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
3173 boolean.
e1010ebe 3174
f66bd220
MB
31752001-10-25 Miles Bader <miles@gnu.org>
3176
3177 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
3178 BG is a pointer to a structure, not a structure.
3179 (gif_format, png_format): Add missing commas.
3180
d436d538
RS
31812001-10-24 Richard M. Stallman <rms@gnu.org>
3182
3183 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 3184 (syms_of_xfaces): Defsubr it.
d436d538 3185
e4ac8240 31862001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
075c507b
PJ
3187
3188 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
3189 variable `area'.
3190
e4ac8240 31912001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d492b584 3192
c2d53558 3193 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 3194
e2a57b34
MB
31952001-10-25 Miles Bader <miles@gnu.org>
3196
3197 * dispextern.h (struct image): Add `background',
3198 `background_valid', and `background_transparent' fields.
3199 (image_background, image_background_transparent): New declarations.
3200 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
3201 * xfns.c (image_background, image_background_transparent)
3202 (four_corners_best): New functions.
c2d53558 3203 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
3204 (gs_format): Add `:background' entry.
3205 (lookup_image): Set IMG's background color if specified.
3206 (pbm_load, xbm_load_image, png_load): Set IMG's background field
3207 when appropriate.
3208 (x_clear_image_1): Reset `background_valid' and
3209 `background_transparent_valid' fields.
3210 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
3211 calculating it here. Set IMG's background_transparent field.
3212 (enum xpm_keyword_index): Add XPM_BACKGROUND.
3213 (enum png_keyword_index): Add PNG_BACKGROUND.
3214 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
3215 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
3216 (enum gif_keyword_index): Add GIF_BACKGROUND.
3217 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 3218 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
3219 Pre-calculate image background color where necessary.
3220 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
3221 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
3222 color to use for image glyph reliefs.
3223
b547b6e8
GM
32242001-10-24 Gerd Moellmann <gerd@gnu.org>
3225
d9e3b8c6
GM
3226 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
3227 in full-width rows.
c2d53558 3228
b547b6e8
GM
3229 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3230 Fix clearing of area not covered by scroll bar.
3231
e4ac8240 32322001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2beb36f9
PJ
3233
3234 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
3235 and `real_start'.
c2d53558 3236 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
3237 (glyph_rect): Remove unused variable `area'.
3238
76cb5e06
GM
32392001-10-24 Gerd Moellmann <gerd@gnu.org>
3240
bdbdebff 3241 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
3242
3243 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
3244 (row_containing_pos): Take additional argument DY.
3245 Treat rows ending in middle of char differently.
62e33982
GM
3246 (display_line): Handle tabs on window systems differently.
3247
3248 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
3249 with additional argument.
3250
3251 * dispextern.h (row_containing_pos): Adjust prototype.
3252
76cb5e06
GM
3253 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
3254 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
3255 (try_window_id, try_window_reusing_current_matrix)
3256 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
3257 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
3258
e4ac8240 32592001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
996fee11 3260
c9e60620
PJ
3261 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
3262 gnuemacs).
3263 (HAVE_BOXES): Fix typo in comment.
3264 (push_menu_pane): Fix typo in comment.
3265
3b552d56
PJ
3266 * xdisp.c: (display_prop_string_p): Remove unused local declaration
3267 of `Qwhen'.
3268 (single_display_prop_string_p): Remove unused local declarations
3269 of `Qwhen' and `Qmargin'.
3270 (string_buffer_position): Remove unused variable `around'.
3271 (store_frame_title): Remove unused variable `width'.
3272
15c565ac
PJ
3273 * window.c: Don't define max.
3274 (coordinates_in_window): Remove unused variable `uy'.
3275
a8818eb9
PJ
3276 * widget.c: Don't define max.
3277
996fee11
PJ
3278 * process.c: Don't define max.
3279 (create_process): Remove unused variable `buffer'.
3280
496e1a5b
GM
32812001-10-23 Gerd Moellmann <gerd@gnu.org>
3282
c2d53558 3283 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 3284
5905ae8b
EZ
32852001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
3286
3287 * xfaces.c (Finternal_set_lisp_face_attribute)
3288 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
3289 frame is on a windowed display.
3290
24db49fb
GM
32912001-10-23 Gerd Moellmann <gerd@gnu.org>
3292
c2d53558
SM
3293 * dispnew.c (sync_window_with_frame_matrix_rows):
3294 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
3295 of marginal areas.
3296
c2d53558 3297 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 3298
f0487f05
EZ
32992001-10-23 Andreas Schwab <schwab@suse.de>
3300
3301 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
3302 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
3303
f0a48a01
GM
33042001-10-23 Gerd Moellmann <gerd@gnu.org>
3305
c2d53558 3306 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
3307 REAL_END. Notice if cursor gets overwritten.
3308 (notice_overwritten_cursor): Take X positions as parameters.
3309 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3310 around call to x_draw_glyphs.
3311
e4ac8240 33122001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
a50a10a0 3313
fc11dff0
PJ
3314 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
3315 instead of C) and usage.
a50a10a0 3316
fc11dff0
PJ
3317 * editfns.c (char-to-string): Fix argument names (use CHAR instead
3318 of C) and usage.
a50a10a0
PJ
3319
3320 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
3321 `left', `max_width' and `max_height'.
3322
8738febd
GM
33232001-10-23 Gerd Moellmann <gerd@gnu.org>
3324
3325 * xdisp.c (display_line): For a tab continued to the next line,
3326 set row's ends_in_middle_of_char_p.
3327
653c329b
GM
33282001-10-22 Gerd Moellmann <gerd@gnu.org>
3329
3330 * xdisp.c (display_line): Fix computation of continuation lines
3331 width for TABs.
3332
e4ac8240 33332001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
f958c5ac 3334
7ba51063
PJ
3335 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
3336 `Qlaplace'.
3337
f958c5ac
PJ
3338 * fileio.c: Remove unused code.
3339
eb360291
MB
33402001-10-22 Miles Bader <miles@gnu.org>
3341
3342 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3343 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
3344 Remove `DOC_STRINGS_IN_COMMENTS' cases.
3345
98515cf0
JR
33462001-10-21 Jason Rumney <jasonr@gnu.org>
3347
3348 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
3349
93026d88
EZ
33502001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3351
3352 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
3353 (Finsert_string): Avoid the multi-line string literals warning.
3354
c9a95b79
MB
33552001-10-22 Miles Bader <miles@gnu.org>
3356
3357 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
3358 (Fdocumentation): Don't use it.
3359 (syms_of_doc): Don't initialize it.
3360
3361 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
3362 * print.c (Fwith_output_to_temp_buffer): Likewise.
3363 * window.c (Fsave_window_excursion): Likewise.
c2d53558 3364 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 3365 (Fsave_restriction): Likewise.
c2d53558
SM
3366 * eval.c (Frun_hooks, Frun_hook_with_args)
3367 (Frun_hook_with_args_until_failure)
3368 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
3369 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
3370 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
3371 (Funwind_protect, Fcondition_case): Likewise.
3372 * coding.c (Ffind_operation_coding_system): Likewise.
3373 * keyboard.c (Ftrack_mouse): Likewise.
3374
a3b10252
MB
33752001-10-21 Miles Bader <miles@gnu.org>
3376
c2d53558 3377 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
3378 (Fmake_hash_table): Add usage: string to doc string.
3379 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 3380 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
3381 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
3382 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
3383 (Fml_prefix_argument_loop): Likewise.
3384
e4ac8240 33852001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
c6f73eec 3386
c2d53558 3387 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 3388
c6f73eec
PJ
3389 * sysdep.c (init_sys_modes): Change doc-string comments to `new
3390 style' [w/`doc:' keyword].
3391
3392 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
3393 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
3394 comments to `new style' [w/`doc:' keyword].
3395
3cf3436e
JR
33962001-10-21 Jason Rumney <jasonr@gnu.org>
3397
3398 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
3399
c169b8f1
JR
3400 * w32term.c (remember_mouse_glyph): New function.
3401 (w32_mouse_position): Use it.
3402 (note_mouse_movement): If the mouse moved off the glyph, remember
3403 its new position.
c2d53558 3404
4fdd691b
JR
3405 * w32term.h (struct w32_output): Correct spelling of x_compatible.
3406 (w32_display_info): Add mouse_face_overlay.
3407
c169b8f1
JR
3408 * w32term.c (notice_overwritten_cursor): Renamed from
3409 note_overwritten_text_cursor. Rewritten to take glyph widths into
3410 account.
3411 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3412 (fast_find_string_pos): New function.
3413 (fast_find_position): Return the correct vpos. Add parameter
3414 STOP. In the final row, stop before glyphs having STOP as object.
3415 Don't consider glyphs that are not from a buffer.
3416 (fast_find_position) [0]: Add a presumably more correct version
3417 for after 21.1.
3418 (expose_window_tree, expose_frame): Don't compute intersections here.
3419 (expose_window): Do it here instead.
3420 (expose_window_tree, expose_window, expose_line): Return 1 when
3421 overwriting mouse-face.
3422 (expose_window): If W is the window currently being updated, mark
3423 the frame garbaged.
3424 (expose_frame): If mouse-face was overwritten, redo it.
3425 (x_use_underline_position_properties): New variable.
3426 (syms_of_xterm): DEFVAR_BOOL it.
3427 (x_draw_glyph_string): Add comment to use it in future.
3428 (x_draw_glyph_string): Restore clipping after drawing box.
3429 Fix a computation of the underline position.
3430 (w32_get_glyph_string_clip_rect): Minor cleanup.
3431 (x_fill_stretch_glyph_string): Remove an assertion.
3432 (x_produce_glyphs): Don't convert multibyte characters
3433 to unibyte characters in unibyte buffers.
3434 (cursor_in_mouse_face_p): New function.
3435 (x_draw_stretch_glyph_string): Use it to choose a different GC
3436 when drawing a cursor within highlighted text. Don't draw
3437 background again if it has already been drawn.
3438 (x_draw_glyph_string_box): Don't draw a full-width
3439 box just because the glyph row's full_width_p flag is set.
3440 (x_draw_glyphs): Fix computation of rightmost x for
3441 full-width rows.
3442 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3443 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
3444 change bottom shadow accordingly. Some cleanup.
3445 (x_update_window_end): Handle overwritten mouse face
3446 also for tool bar windows.
3447 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3448 DRAW is DRAW_IMAGE_RAISED.
3449 (clear_mouse_face): Return 1 if text with mouse face was
3450 actually redrawn. Make the function static. Reset
3451 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
3452 optimize away highlighting if we pass over that same overlay again.
3453 (note_mouse_highlight): Call mouse_face_overlay_overlaps
3454 to detect a case where we have to highlight a different region
3455 despite not having left the currently highlighted region.
3456 Set mouse_face_overlay in the x_display_info. Avoid changing the
3457 mouse pointer shape when show_mouse_face has already done it, or
3458 there is no need. Handle mouse-face and help-echo in strings.
3459 (glyph_rect): New function.
3460 (w32_mouse_position): Use it to raise the threshold for mouse
3461 movement event generation.
3462 (w32_initialize_display_info): Initialize the x_display_info's
3463 mouse_face_overlay.
3464 (w32_set_vertical_scroll_bar): Don't clear a zero height
3465 or width area.
3466 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3467 a widget to zero height.
3468
3cf3436e 3469 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 3470 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
3471 equivalents in menu_items.
3472 (w32_menu_show): Don't overwrite an item's name with its key
3473 description in case the description is a multibyte string.
3474 (single_submenu): Some cleanup.
3475
3476 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
3477 (postprocess_image): New function.
3478 (lookup_image): Call it for all image types except PostScript.
3479 (x_kill_gs_process): Call postprocess_image.
3480 (tiff_error_handler, tiff_warning_handler): New functions.
3481 (tiff_load): Install them as handlers.
3482 (x_kill_gs_process): Recognize if someone has cleared the image
3483 cache under us.
3484 (valid_image_p): Protect better against invalid image
3485 specifications. Previous code could signal an error.
3486 (Fx_hide_tip, Fshow_tip): Doc fix.
3487 (Fv_max_tooltip_size): New variable.
3488 (syns_of_xfns): DEFVAR_LISP it.
3489 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
3490 window buffer to *tip* right after creating the frame. Set frame's
3491 window_width. Use a maximum tooltip size specified by
3492 Vx_max_tooltip_size, if that has valid contents.
3493 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3494 Make sure the tooltip is completely visible.
3495 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3496 (Fx_create_frame): Adjust the frame's height for presence
3497 of the tool bar before calling x_figure_window_size.
3498 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
3499 when the window gets smaller.
3500 (x_set_foreground_color): Set frame's cursor_pixel.
3501 (x_set_foreground_color, x_set_background_color): Cleaned up.
3502 (x_set_font): Handle case of x_new_fontset returning the same name
3503 as before, although there was a change in fontsets.
3504
386ca361
MB
35052001-10-21 Miles Bader <miles@gnu.org>
3506
c2d53558 3507 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
3508 (Flogxor): Add usage: string to doc string.
3509 * charset.c (Fstring): Likewise.
3510 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
3511 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
3512
e4ac8240 35132001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
14ff1ee0 3514
03be2694
PJ
3515 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
3516
3517 * alloc.c: Reindent DEFUNs with doc: keywords.
3518
3519 * abbrev.c (Finsert_abbrev_table_description): Reindent.
3520
14ff1ee0
PJ
3521 * frame.c: Change doc-string comments to `new style' [w/`doc:'
3522 keyword].
3523
71431a0e
GM
35242001-10-20 Gerd Moellmann <gerd@gnu.org>
3525
6aa97356 3526 * (Version 21.1 released.)
71431a0e 3527
e4ac8240 35282001-10-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
39f624fa 3529
c2d53558 3530 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
c0a53abb
PJ
3531
3532 * xdisp.c (invisible_text_between_p): Put prototype inside #if
3533 0 because unused.
3534
3535 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
c2d53558
SM
3536 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
3537 Change doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 3538
abcce93a
MB
35392001-10-20 Miles Bader <miles@gnu.org>
3540
3541 The following changes remove the glyph_row `inverse_p' field,
3542 which is never set anymore, due to other changes:
3543
3544 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
3545 (reassert_line_highlight, change_line_highlight): Declarations removed.
3546 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
c2d53558
SM
3547 (line_hash_code, row_equal_p, fake_current_matrices)
3548 (build_frame_matrix_from_leaf_window, update_frame_line)
abcce93a
MB
3549 (update_frame_line, update_frame_line, update_frame_line):
3550 Don't use `inverse_p' field.
3551 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
3552 change_line_highlight_hook.
3553 (XTreassert_line_highlight, x_change_line_highlight):
3554 Functions removed.
c2d53558 3555 (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
3556 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
3557 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
3558 `inverse_p' field.
c2d53558 3559 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
3560 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
3561 (w32_reassert_line_highlight, x_change_line_highlight):
3562 Functions removed.
3563 * w32console.c (reassert_line_highlight, change_line_highlight):
3564 Functions removed.
3565 (initialize_w32_display): Don't set reassert_line_highlight_hook
3566 or change_line_highlight_hook.
3567 (hl_mode): Function removed.
c2d53558
SM
3568 (reset_terminal_modes, set_terminal_modes, update_begin)
3569 (update_end, w32_face_attributes, initialize_w32_display):
abcce93a
MB
3570 (clear_frame, ins_del_lines): Don't call it.
3571 * termhooks.h (reassert_line_highlight_hook)
3572 (change_line_highlight_hook): Declarations removed.
3573 * term.c (reassert_line_highlight_hook)
3574 (change_line_highlight_hook): Variables removed.
3575 (reassert_line_highlight, change_line_highlight): Functions removed.
3576 * msdos.c (IT_reassert_line_highlight)
3577 (IT_change_line_highlight): Functions removed.
3578 (internal_terminal_init): Don't set reassert_line_highlight_hook
3579 or change_line_highlight_hook.
3580 (highlight): Variable removed.
c2d53558 3581 (IT_set_face, IT_update_begin, IT_update_end)
abcce93a
MB
3582 (IT_set_terminal_modes): Don't set or use it.
3583
3584 The following changes remove inverse-video support for terminals
3585 that use a `magic cookie' standout mode. Due to changes in the
3586 way mode-lines are displayed, such support no longer works
3587 anyway, and it's probable that almost no one uses such terminals
3588 anymore:
3589
3590 * term.c (standout_requested): Variable removed.
3591 (update_end, highlight_if_desired): Don't use it.
3592 (chars_wasted, copybuf): Variables removed.
3593 (write_standout_marker): Function removed.
c2d53558 3594 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
abcce93a
MB
3595 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
3596 Don't use `chars_wasted' or `copybuf'.
3597 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
3598 Set `costs_set' to true.
3599 (cursor_to, clear_end_of_line): Test `costs_set' instead of
3600 `chars_wasted'.
3601 (clear_end_of_line): Function removed.
3602 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
3603 (clear_to_end): Call `clear_end_of_line' instead of
3604 `clear_end_of_line_raw'.
54800acb
MB
3605 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
3606 (term_init): Don't set them.
3607 Turn off any standout/underline modes that require magic cookies.
c2d53558 3608 (ins_del_lines, highlight_if_desired, background_highlight)
54800acb
MB
3609 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
3610 Remove special processing for magic-cookie standout modes.
3611 (turn_off_face, turn_on_face): Remove special processing for
3612 underline magic-cookie glitch.
abcce93a 3613
0b5f679f
RS
36142001-10-19 Richard M. Stallman <rms@gnu.org>
3615
3616 * eval.c (syms_of_eval): Doc fixes.
3617
5a4a5bd4
GM
36182001-10-19 Gerd Moellmann <gerd@gnu.org>
3619
3620 * xdisp.c (redisplay_internal): Don't clear echo area if the
3621 mini-window is selected.
3622
79f1f96c
MB
36232001-10-19 Miles Bader <miles@gnu.org>
3624
b57c2708
MB
3625 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
3626 doesn't take precedence if the affected property's value is nil.
3627
3628 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
3629
79f1f96c
MB
3630 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
3631 with fields and suggest using `forward-line' to avoid them.
3632 * editfns.c (Fline_beginning_position, Fline_end_position):
3633 Clarify documentation.
3634
ef879104
SM
36352001-10-18 Stefan Monnier <monnier@cs.yale.edu>
3636
3637 * keymap.c (current_minor_maps): `override' only shadows its
3638 correspondent in minor-mode-map-alist, not the whole tail.
3639
97f4db8c
AI
36402001-10-18 Andrew Innes <andrewi@gnu.org>
3641
3642 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
3643 optimization. The fontp->encoding array was not being initialized
3644 correctly when compiled with optimizations by MSVC.
3645
e6b70fd8
GM
36462001-10-18 Gerd Moellmann <gerd@gnu.org>
3647
30903479 3648 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 3649
0e804d38
AI
36502001-10-17 Andrew Innes <andrewi@gnu.org>
3651
3652 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
3653
3654 * w32fns.c (w32_load_system_font): Cache codepage for font, in
3655 font_info.charset field.
3656
3657 * w32term.c (w32_encode_char): Get cached codepage from font_info,
3658 rather than working it out by calling w32_codepage_for_font for
3659 every glyph.
3660
66e5868a
AI
36612001-10-17 Andrew Innes <andrewi@gnu.org>
3662
3663 * w32term.c (w32_read_socket): Determine clipping rectangle for
3664 the entire frame, including areas covered by scrollbars and the
3665 menubar. This avoids internal arguments about whether a frame is
3666 fully obscured or not.
3667
15b00083
GM
36682001-10-17 Gerd Moellmann <gerd@gnu.org>
3669
23e8bd86
GM
3670 * xdisp.c (try_window_id): Undo last change. Give up if
3671 window ends in strings.
30903479 3672
9c6ba6d1 3673 * xdisp.c (try_window_id): Don't display lines after the window
30903479 3674 end if the rest of the window after the window end was already blank.
23e8bd86 3675
30903479 3676 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
3677 for the release of 21.1.
3678
30903479 3679 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 3680
945220bd
MB
36812001-10-17 Miles Bader <miles@gnu.org>
3682
3683 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
3684 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
3685 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
3686 Change doc-string comments to `new style' [w/`doc:' keyword].
3687 (DOC_STRINGS_IN_COMMENTS): Macro removed.
3688 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
3689 out make-docfile.
3690
14242528
MB
36912001-10-16 Miles Bader <miles@gnu.org>
3692
3693 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
3694
3ddf952f
GM
36952001-10-16 Gerd Moellmann <gerd@gnu.org>
3696
3697 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
3698 *scratch*.
3699
f3fbd155
KR
37002001-10-16 Ken Raeburn <raeburn@gnu.org>
3701
3702 Avoid the assumption that car and cdr slots of cons cells are
3703 addressable lvalues; this allows for easier experimentation with
3704 other lisp implementations that may not permit such accesses for
3705 various reasons. Not quite complete -- buffer.c still needs some
3706 work, and w32/mac files need rechecking -- so compile-time
3707 enforcement is left disabled for now.
3708
3709 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 3710 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
3711 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
3712 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
3713 (XSETCAR, XSETCDR): New macros.
3714 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
3715 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
3716 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
3717 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
3718 XSETCDR.
3719 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
3720 * buffer.c (record_buffer, Fbury_buffer)
3721 (swap_out_buffer_local_variables, recenter_overlay_lists)
3722 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
3723 fields of a cons cell respectively.
3724 * callint.c (quotify_args, Fcall_interactively): Likewise.
3725 * ccl.c (Fregister_code_conversion_map): Likewise.
3726 * coding.c (detect_coding_system): Likewise.
3727 * composite.c (get_composition_id, make_composition_value_copy):
3728 Likewise.
30903479
SM
3729 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
3730 (swap_in_symval_forwarding, set_internal, Fset_default)
3731 (Fmake_variable_buffer_local, Fmake_local_variable)
3732 (Fmake_variable_frame_local): Likewise.
f3fbd155 3733 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479 3734 * keymap.c (Fset_keymap_parent, store_in_keymap)
c2d53558 3735 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
f3fbd155
KR
3736 * minibuf.c (get_minibuffer): Likewise.
3737 * search.c (Fmatch_data): Likewise.
3738 * textprop.c (extend_property_ranges): Likewise.
c2d53558 3739 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
f3fbd155
KR
3740 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
3741 Likewise.
3742 * w32term.c (x_delete_display): Likewise.
3743 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
3744 Likewise.
c2d53558 3745 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
f3fbd155 3746 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 3747 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
3748 (Fread_file_name): Use XSETCAR.
3749 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
3750 CHECK_NUMBER_CDR.
3751 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
3752 * frame.c (Fmake_terminal_frame): Use XSETCDR.
3753 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
3754 CHECK_NUMBER_CDR.
3755 * keyboard.c (read_char): Alter list traversal to avoid taking the
3756 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
3757 (parse_menu_item): Use XSETCAR and XSETCDR.
3758 (reach_char_x_menu_prompt): Use XSETCAR.
3759 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
3760 (Fcommand_execute): Use XSETCDR.
3761 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
3762 (openp): Change list traversal to avoid using XCAR as lvalue.
3763 (read_list): Use XSETCDR.
3764 * process.c (wait_reading_process_input): Change wait_for_cell
3765 handling to avoid taking addresses of cons cell slots.
30903479
SM
3766 * xselect.c (x_own_selection, x_handle_selection_clear)
3767 (x_clear_frame_selections): Use XSETCDR.
3768 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
3769 (x_handle_property_notify, x_get_foreign_selection)
3770 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 3771
e4ac8240 37722001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
502150e5 3773
018ba359
PJ
3774 * buffer.c: Put doc strings in comments.
3775
30903479 3776 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 3777
b56ba8de
SS
37782001-10-15 Sam Steingold <sds@gnu.org>
3779
3780 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
3781
e4ac8240 37822001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
6a0b793a 3783
30903479
SM
3784 * process.c (process-inherit-coding-system-flag)
3785 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
3786 in comment.
3787
a1f17501 3788 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 3789 arguments. Put doc strings in comments.
a65da641
PJ
3790
3791 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 3792
aa601ad0
GM
37932001-10-15 Gerd Moellmann <gerd@gnu.org>
3794
30903479 3795 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 3796
aa601ad0
GM
3797 * window.c (select_window_1): Unfreeze window start. Remove a
3798 doubled test for WINDOW being live.
3799
e4ac8240 38002001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
288148a1 3801
dd8d1e71
PJ
3802 * fns.c (Fmapconcat): Fix typo in a doc string.
3803
288148a1
PJ
3804 * dispnew.c (Fsleep_for): Fix typo in a doc string.
3805
9f5eb4a3
GM
38062001-10-15 Gerd Moellmann <gerd@gnu.org>
3807
3808 * xterm.c (x_draw_glyph_string): Restore clipping after
3809 drawing box.
3810
e4ac8240 38112001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
dbae44c8 3812
30903479 3813 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 3814
0c88c937
SM
38152001-10-14 Stefan Monnier <monnier@cs.yale.edu>
3816
56378db4
GM
3817 * indent.c (skip_invisible): Use new retval of
3818 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 3819
845e4cf4
SM
3820 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
3821 If a parent is reached and noinherit is set, exit immediately.
3822 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
3823
0c88c937
SM
3824 * s/ms-w32.h (EXEC_SUFFIXES):
3825 * s/msdos.h (EXEC_SUFFIXES):
3826 * process.h (EXEC_SUFFIXES): Remove.
3827
3828 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
3829 (decode_suffixes): Remove.
3830
3831 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
3832 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
3833 (invisible_ellipsis_p): Remove.
0c88c937
SM
3834
3835 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
3836 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
3837 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
3838 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
3839 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 3840
e4ac8240 38412001-10-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
d19be8a9 3842
04d7d066
PJ
3843 * lisp.h (Ftop_level): Add prototype.
3844
d624284c
PJ
3845 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
3846 (XTread_socket): Improve style of comments to follow other
3847 comments.
3848
a87414f9
PJ
3849 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
3850 is already prototyped in included lisp.h).
3851
d19be8a9
PJ
3852 * frame.c (Fset_mouse_position): Improve style of comment to
3853 follow other comments.
3854 (Fset_mouse_pixel_position): Improve style of comment to follow
3855 other comments.
3856 (Fmake_frame_visible): Doc fix and typo in comment.
3857 (Fmake_frame_invisible): Doc fix and typo in comment.
3858 (Ficonify_frame): Fix typo in comment.
3859
c061c855
GM
38602001-10-14 Gerd Moellmann <gerd@gnu.org>
3861
37f6b5b6 3862 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 3863 * term.c, alloc.c: Put doc strings in comments.
c061c855 3864
e641b454
GM
38652001-10-13 Gerd Moellmann <gerd@gnu.org>
3866
3867 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
3868 Provide definitions for doc strings in comments.
3869
3870 * fns.c: Put doc strings in comments.
3871
51724e26
EZ
38722001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
3873
3874 * dired.c (file_name_completion): Ignore a candidate directory if
3875 it matches an element in completion-ignored-extensions that ends
3876 in a slash.
3877 (syms_of_dired) <completion-ignored-extensions>: Mention the above
3878 feature in the doc string.
3879 (Ffile_name_completion): Ditto.
3880
be5fc59b
SM
38812001-10-12 Stefan Monnier <monnier@cs.yale.edu>
3882
5a1373f3
SM
3883 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
3884
3885 * xfns.c (syms_of_xfns): Update calls to Fprovide.
3886
3887 * lisp.h (Fprovide): Update prototype.
3888 (Ffeaturep, invisible_p): Remove.
3889
bbc4a3d3 3890 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
3891 (DOLIST, LOOP_PROPVAL): New macros.
3892 (invisible_p, invisible_ellipsis_p): Use them.
3893 (invisible_noellipsis_p): New function.
3894 (syms_of_xdisp): Use empty_string.
3895
3896 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
3897
3898 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
3899 (syms_of_lread) <Vafter_load_alist>: Update docstring.
3900
3901 * print.c (Fwith_output_to_temp_buffer): Align with
3902 internal_with_output_to_temp_buffer.
3903 (print_preprocess): Use traverse_intervals_noorder.
3904 (print_object): Update call to traverse_intervals.
3905
3906 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
3907 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
3908
3909 * intervals.c (traverse_intervals_noorder): New function.
3910 (search_for_interval, count_intervals): Use it.
3911 (traverse_intervals): Use less stack space and drop `depth' arg.
3912
3913 * fns.c (Ffeaturep): Add new `subfeature' arg.
3914 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
3915 (Qsubfeatures): New var.
3916 (syms_of_fns): Initialize it.
3917
026f408d
SM
3918 * keymap.c (Fkey_description): Use empty_string.
3919 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
3920 (syms_of_keymap): Setup inheritance between maps.
3921 Don't export Sdescribe_bindings_internal any more.
3922
be5fc59b
SM
3923 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
3924
3365175e
GM
39252001-10-12 Gerd Moellmann <gerd@gnu.org>
3926
3927 * xterm.c (notice_overwritten_cursor): Renamed from
3928 note_overwritten_text_cursor. Rewritten to take glyph widths into
3929 account.
3930
2ab7765c
EZ
39312001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
3932
3933 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
3934 multi-line strings without a trailing "\n\".
3935
e4ac8240 39362001-10-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
311346bb
PJ
3937
3938 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
3939 defined.
3940
2168e04d
SM
39412001-10-11 Stefan Monnier <monnier@cs.yale.edu>
3942
026f408d
SM
3943 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
3944
c0ec53ad
SM
3945 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3946 * w32proc.c (sys_spawnve):
3947 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3948 * w32.c (check_windows_init_file):
3949 * sound.c (Fplay_sound):
026f408d 3950 * emacs.c (init_cmdargs):
c0ec53ad
SM
3951 * process.c (Fstart_process): Update calls to openp.
3952
3953 * callproc.c (Vexec_suffixes): New var.
3954 (Fcall_process): Update call to openp.
3955 (decode_suffixes): New function.
3956 (syms_of_callproc): Init exec-suffixes.
3957
3958 * lread.c (Vload_suffixes, default_suffixes): New vars.
3959 (openp): Take a lisp list of suffixes.
3960 Check for file-name-handlers even if the file was absolute already.
3961 (syms_of_lread): Declare load-suffixes.
3962 (Fload): Fix up call to openp.
3963 Don't bother checking for file-name-handler at the very beginning.
3964
f6333468
SM
3965 * keymap.h (Fcopy_keymap): Don't export.
3966
3967 * lisp.h (empty_string): Declare.
c0ec53ad
SM
3968 (Vload_suffixes, Vexec_suffixes): Declare.
3969 (openp): Update prototype.
f6333468
SM
3970
3971 * emacs.c (empty_string): New var.
3972 (syms_of_emacs): Initialize it.
3973
3974 * search.c (wordify): Use it.
3975
3976 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
3977 selected window if it's not displayed there. Handle the case
3978 when the window is dedicated.
3979 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
3980
3981 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
3982
2168e04d
SM
3983 * syntax.h (struct gl_state_s): Change the meaning of b_property.
3984 Remove left_ok and right_ok.
3985 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
3986 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
3987 new meaning of b_property.
3988
3989 * syntax.c (update_syntax_table): Simplify.
3990 (Fforward_comment): Don't skip quoted chars when going backward.
3991
13d95cc0
GM
39922001-10-11 Gerd Moellmann <gerd@gnu.org>
3993
beb0990f
GM
3994 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
3995 in case I is of some unsigned type, in which case
3996 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
3997 comparison becomes bogus.
3998
cb938d46
GM
3999 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
4000 (Fuser_full_name): Fix bug treating a float as a fixnum.
4001
4002 * data.c (Fstring_to_number): Use make_fixnum_or_float.
4003
4004 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 4005
13d95cc0
GM
4006 * lisp.h (circular_list_error): Add prototype.
4007
4008 * data.c (Qcircular_list): New variable.
4009 (circular_list_error): New function.
4010 (syms_of_data): Initialize it Qcircular_list.
4011
e35f6ff7
SM
40122001-10-10 Stefan Monnier <monnier@cs.yale.edu>
4013
7dee7ff7
PJ
4014 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
4015 * casefiddle.c, buffer.c: Include keymap.h.
e35f6ff7 4016
619632ac
GM
40172001-10-10 Gerd Moellmann <gerd@gnu.org>
4018
4019 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
4020 options. From Dave Love <d.love@dl.ac.uk>.
4021
5e5388f6
GM
40222001-10-09 Gerd Moellmann <gerd@gnu.org>
4023
4024 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
4025 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
4026
14a3dff7
GM
4027 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
4028 unsigned char.
4029 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 4030
76ba8daf
AI
40312001-10-08 Andrew Innes <andrewi@gnu.org>
4032
4033 * lisp.h [max]: Undef min and max before redefining them.
4034
4035 * w32gui.h: Do not undef min and max.
4036
4037 * w32heap.h: Do not undef min and max.
4038
4039 * s/ms-w32.h: Do not undef min and max.
4040
166253cb
SM
40412001-10-08 Stefan Monnier <monnier@cs.yale.edu>
4042
4043 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
4044
0c4d9527
SS
40452001-10-08 Sam Steingold <sds@gnu.org>
4046
4047 * keymap.c (current-active-maps): Quote newlines (compilation error).
4048
14bfa771
EZ
40492001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4050
4051 * Makefile.in (lisp, shortlisp): Replace bindings.el with
4052 bindings.elc, since otherwise doc strings in bindings.el get wrong
4053 offsets in etc/DOC.
4054
bdb7aa47
SM
40552001-10-08 Stefan Monnier <monnier@cs.yale.edu>
4056
9985827f
SM
4057 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
4058
4059 * keyboard.h (map_prompt): Remove.
4060
4061 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 4062 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 4063
bdb7aa47
SM
4064 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
4065
4066 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
4067
4068 * keyboard.c (map_prompt): Remove.
4069 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
4070 Use Fkeymap_prompt.
4071
4072 * keymap.h: New file. Extracted from lisp.h.
4073
9985827f
SM
4074 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
4075 (accessible_keymaps_1): New function.
4076 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
4077 (Fwhere_is_internal): Use Fcurrent_active_maps.
4078 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
4079 Insert in current buffer rather than standard-output.
4080 Don't call `help-mode'. Export to elisp.
4081 (describe_buffer_bindings): New wrapper.
4082 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
4083 and Sdescribe_buffer_bindings.
4084
402c9a51
GM
40852001-10-08 Gerd Moellmann <gerd@gnu.org>
4086
9985827f 4087 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
4088 Remove code setting signal handler.
4089
9985827f 4090 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
4091 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
4092
e4ac8240 40932001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3fe81fdf
PJ
4094
4095 * keyboard.c: Don't define min/max.
4096
55fa7820
GM
40972001-10-08 Gerd Moellmann <gerd@gnu.org>
4098
9985827f 4099 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 4100 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 4101 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 4102 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 4103 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
4104 Don't define min/max.
4105
4106 * lisp.h (min, max): New macros.
4107
55fa7820
GM
4108 * puresize.h (BASE_PURESIZE): Increase to 725000.
4109
e4ac8240 41102001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1aad31e4 4111
9180dc8c
PJ
4112 * xfaces.c (free_frame_menubar): Add prototype.
4113
01f67d2c
PJ
4114 * lisp.h (init_window): Add prototype.
4115
4116 * editfns.c: Include ctype.h.
4117
4118 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 4119 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
4120 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
4121 variable `sb'.
4122
5f351ff1
PJ
4123 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
4124 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
4125 `popup_activated_flag' and `title'.
4126
479dfe87
PJ
4127 * doc.c (Fdocumentation_property): Fix typo in a doc string.
4128
dff49fc8
PJ
4129 * emacs.c (main): Remove extra `;'.
4130
248ac615
PJ
4131 * atimer.h (struct atimer): Fix typos in a comment.
4132
4133 * atimer.c: Fix typo.
4134
af232c7d
PJ
4135 * Makefile.in: Fix typo.
4136
4137 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 4138
d876f455
MB
41392001-10-07 Miles Bader <miles@gnu.org>
4140
4141 * Makefile.in (lisp, shortlisp): Add `button.elc'.
4142
0037e2f2
KR
41432001-10-07 Ken Raeburn <raeburn@gnu.org>
4144
b056f36d
KR
4145 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
4146 Lisp_Object.
4147
0037e2f2
KR
4148 * lisp.h (Ffield_end): Declare.
4149
1a4372ef
GM
41502001-10-07 Gerd Moellmann <gerd@gnu.org>
4151
a4a74e8c
GM
4152 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
4153
4154 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
4155
4156 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
4157
4158 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
4159
1a4372ef
GM
4160 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
4161 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
4162
4163 * alloc.c (inhibit_garbage_collection): Simplify.
4164 (Fmemory_use_counts): Ditto.
4165
9985827f 4166 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
4167 (syms_of_data): DEFVAR_INT most-positive-fixnum and
4168 most-negative-fixnum.
4169
9985827f 4170 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
4171 (FIXNUM_OVERFLOW_P): New macros.
4172
4650e362
MB
41732001-10-06 Miles Bader <miles@gnu.org>
4174
4175 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
4176 scroll_bar_bottom_shadow_pixel fields.
4177 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
4178 for the shadows, and tell the toolkit about them if we succeed.
4179 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
4180 Free scroll-bar shadow colors.
4181 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
4182 Free scroll-bar shadow colors when the background color changes.
4183 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
4184 Initialize scroll-bar shadow-color fields.
4185
ace64e0a
GM
41862001-10-05 Gerd Moellmann <gerd@gnu.org>
4187
4188 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
4189
ec66bdc7
MB
41902001-10-05 Miles Bader <miles@gnu.org>
4191
9985827f
SM
4192 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
4193 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 4194 New functions (were in simple.el).
9985827f 4195 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
4196 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
4197 (syms_of_minibuf): Initialize them.
4198
a0fb4492
GM
41992001-10-05 Gerd Moellmann <gerd@gnu.org>
4200
4201 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
4202 (tiff_load): Install them as error and warning handler.
4203
0bcf87c1
AI
42042001-10-04 Andrew Innes <andrewi@gnu.org>
4205
4206 * w32fns.c (x_to_w32_color): Fix argument to alloca.
4207 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 4208 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
4209 (x_to_w32_charset): Handle private format for unknown charsets.
4210 Handle wildcards in charset spec, by ignoring them.
4211 (w32_codepage_for_font): Fix argument to alloca. Don't remove
4212 "*-" prefix from charset.
4213 (x_to_w32_font): Enlarge remainder array for safety. Specifically
4214 handle the truncated font spec form constructed by font_list_1, so
4215 that we correctly identify the charset fields. Don't remove "*-"
4216 prefix from charset.
4217 (w32_list_synthesized_fonts): Fix argument to alloca.
4218
c89e4bc5
GM
42192001-10-04 Stefan Monnier <monnier@cs.yale.edu>
4220
4221 * window.h (MINI_WINDOW_P): Use NILP.
4222
4223 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
4224
4225 * termhooks.h (struct input_event): Use proper type for `kind'.
4226
42272001-10-04 Gerd Moellmann <gerd@gnu.org>
4228
4229 This handles unknown keysyms better than before. For example,
4230 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
4231 Emacs formerly completely ignored F5. With the change, it derives
4232 a key symbol from the name of the X keysym, `ccaron' in this case.
4233 Reported by Martin Buchholz.
4234
4235 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
4236 unknown keysyms.
4237
4238 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
4239 that EVENT->code isn't a function key, use the keysym's name.
4240
42412001-10-04 Gerd Moellmann <gerd@gnu.org>
4242
4243 FOREACH is a macro that should make it easier to loop over Lisp
4244 lists with checks for cycles and proper lists.
4245
4246 * lisp.h (LIST_END_P, FOREACH): New macros.
4247
42482001-10-04 Gerd Moellmann <gerd@gnu.org>
4249
4250 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
4251 called for a lost connection. Prevent dumping core in this case.
4252 Instead print the X error, and exit. On user request.
4253
4254 * xterm.c (error_msg): New variable.
4255 (x_fatal_error_signal): New function.
4256 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
4257 as fatal_error_signal_hook around the call to XtCloseDisplay.
4258
4259 * emacs.c (fatal_error_signal_hook): New variable.
4260 (fatal_error_signal): Call that function.
4261
42622001-10-04 Gerd Moellmann <gerd@gnu.org>
4263
4264 With this, Emacs prints how much pure storage it will
4265 approximately need in case pure storage overflows while dumping.
4266
4267 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
4268 New variables.
4269 (init_alloc_once): Initialize new variables.
4270 (PURE_POINTER_P): Use new variables.
4271 (pure_alloc): If pure storage overflows, allocate from the heap.
4272 (check_pure_size): New function.
4273 (Fgarbage_collect): Don't GC if pure storage has overflowed.
4274
4275 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
4276 (check_pure_size): Add prototype.
4277
4278 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
4279
42802001-10-04 Gerd Moellmann <gerd@gnu.org>
4281
4282 This adds a post-gc-hook that's run with GC inhibited.
4283 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
4284
4285 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
4286 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
4287 (Fgarbage_collect): Run post-gc-hook.
4288
42892001-10-04 Gerd Moellmann <gerd@gnu.org>
4290
4291 This adds `defvaralias' and `indirect-variable'. Changes not
4292 directly related to this feature are there to gain the same
4293 performance again as before variable aliases.
4294
4295 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
4296 code to get and set symbol values, to take defvaralias into account.
4297
4298 (Note: the new `constant' bit-flag in symbols would make it
4299 possible to define arbitrary read-only variables, e.g. with
4300 `defconst'.)
4301
4302 Documentation is in lispref/variables.texi. Added to NEWS.
4303
4304 * lisp.h (enum symbol_interned): New enumeration.
4305 (struct Lisp_Symbol): Remove member `obarray', add
4306 `indirect_variable', `constant', and `interned'.
4307 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
4308 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
4309 (indirect_variable): Add prototype.
4310
4311 * print.c (print_preprocess, print_object): Test internedness of
4312 symbols differently.
4313
4314 * lread.c (Fintern, Funintern): Set symbol's interned and constant
4315 bit-fields.
4316 (init_obarray): Likewise for t and nil.
4317
4318 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
4319 (Fdefvaralias): New function.
4320 (specbind): Simplify the test if symbol is a constant.
4321 (syms_of_eval): Defsubr Fdefvaralias.
4322
4323 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
4324 (Qcyclic_variable_indirection): New variable.
4325 (Fkeywordp): Check for internedness differently.
4326 (Fmakunbound): Simplify the test if symbol is a constant.
4327 (indirect_variable, Findirect_variable): New functions.
4328 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
4329 aliased symbol.
4330 (let_shadows_buffer_binding_p): Check for variable aliases.
4331 (set_internal): Simplify the test if SYMBOL is a constant.
4332 If SYMBOL has a buffer-local value and is an alias, use the aliased
4333 symbol instead.
4334 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
4335 Sindirect_variable.
4336
4337 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
4338 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
4339 set directly.
4340
4341 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
4342
4343 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
4344 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
4345 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
4346
ab952a4f
GM
43472001-10-04 Gerd Moellmann <gerd@gnu.org>
4348
4349 * Branch for 21.1.
b56ba8de 4350
ba88ff28
MB
43512001-10-03 Miles Bader <miles@gnu.org>
4352
4353 * callproc.c (syms_of_callproc): Explicitly state in the
4354 documentation for `process-environment' that earlier entries take
4355 precedence over later ones.
4356
ae1a9581
MB
43572001-10-02 Miles Bader <miles@gnu.org>
4358
4359 * textprop.c (Fnext_char_property_change)
4360 (Fprevious_char_property_change): Remove reference to non-existant
4361 argument OBJECT from doc-string.
4362
257e3f57
GM
43632001-10-01 Gerd Moellmann <gerd@gnu.org>
4364
4365 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
4366 (try_window_id): Skip back over lines ending in a newline from a
4367 string.
4368
4369 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
4370 New bit flag
4371
c1f29759
RS
43722001-10-01 Richard M. Stallman <rms@gnu.org>
4373
4374 * search.c (Freplace_match): Doc fix.
4375
c30dce3d
AI
43762001-09-28 Andrew Innes <andrewi@gnu.org>
4377
4378 * w32menu.c (set_frame_menubar): Take into account that
4379 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
4380 <raeburn@gnu.org>.
4381
03be5931
EZ
43822001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
4383
4384 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
4385
e4ac8240 43862001-09-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
75bec752
PJ
4387
4388 * s/gnu-linux.h: Fix a typo in comment.
4389
83100e0a
AS
43902001-09-28 Andreas Schwab <schwab@suse.de>
4391
4392 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
4393 nocombreloc, in case -z combreloc is the default.
4394
a74b48cf
GM
43952001-09-28 Gerd Moellmann <gerd@gnu.org>
4396
4397 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
4398 really going on here.
4399
09c4719e
SM
44002001-09-27 Stefan Monnier <monnier@cs.yale.edu>
4401
4402 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
4403
f7d5d963
EZ
44042001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
4405
4406 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
4407 utf-8, menu-bar, and latin-N.
4408 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
4409 unconditionally now.
4410 (lisp): Add latin-N, since they are preloaded.
4411
9240e746
GM
44122001-09-27 Gerd Moellmann <gerd@gnu.org>
4413
14531065
GM
4414 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
4415 to the left. Some cleanup.
4416
9240e746
GM
4417 * xdisp.c (display_mode_element): One more case where a string's
4418 multibyteness should be used for display.
4419
edd1e654
GM
44202001-09-26 Gerd Moellmann <gerd@gnu.org>
4421
b02439c8
GM
4422 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
4423 reading at EOF.
4424
032906b1 4425 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 4426 of the only temporarily set echoing flag for deciding when
032906b1
GM
4427 the cancel echoing.
4428
4429 * keyboard.c (echo_kboard): Make externally visible.
4430
4431 * lisp.h (echo_kboard): Declare extern.
4432
cb617e7c 4433 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 4434 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
4435 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
4436 this round of redisplay if make_cursor_line_fully_visible fails.
4437 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 4438 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
4439
4440 * dispextern.h (required_matrix_width, required_matrix_height):
4441 Add prototypes.
4442
09c4719e
SM
4443 * dispnew.c (required_matrix_width, required_matrix_height):
4444 New functions.
cb617e7c 4445 (allocate_matrices_for_window_redisplay)
09c4719e
SM
4446 (allocate_matrices_for_frame_redisplay: Use them.
4447 Remove parameters CH_DIM.
cb617e7c 4448
edd1e654
GM
4449 * xdisp.c (display_mode_lines): Temporarily set selected_frame
4450 and selected_window to the frame of the window whose mode-lines
4451 are displayed, and to the window itself.
4452 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 4453 here.
edd1e654 4454
924b604c
GM
44552001-09-25 Gerd Moellmann <gerd@gnu.org>
4456
daba7643
GM
4457 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
4458 the image cache under us.
4459
b7a22712 4460 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 4461 with a string value, use that string's multibyteness for displaying.
b7a22712 4462
ad648212
GM
4463 * keyboard.c (read_char): Don't clear a message for a switch-frame
4464 event. From Stefan Monnier <monnier@cs.yale.edu>.
4465
9f8531e5
GM
4466 * xterm.c (fast_find_position) [0]: Add a presumably more correct
4467 version for after 21.1.
4468
4469 * xdisp.c (row_containing_pos): Make externally visible.
4470
4471 * dispextern.h (row_containing_pos): Add prototype.
4472
924b604c
GM
4473 * process.c (send_process): Disable composition if from_byte < 0.
4474 From Kenichi Handa <handa@etl.go.jp>.
4475
6f3f0db4
GM
44762001-09-24 Gerd Moellmann <gerd@gnu.org>
4477
c69c0ebc
GM
4478 * xterm.c (refreshicon): Function removed.
4479
d1182bc4
GM
4480 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
4481
4482 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
4483
4484 * xterm.c (toplevel): Remove includes in #if 0.
4485
6f3f0db4
GM
4486 * process.c (sigchld_handler) [LINUX]: Don't return from
4487 the signal handler at the end of the loop.
4488
59957f85
GM
44892001-09-21 Gerd Moellmann <gerd@gnu.org>
4490
09c4719e
SM
4491 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
4492 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 4493
a0528984
EZ
44942001-09-21 Markus Rost <rost@math.ohio-state.edu>
4495
4496 * Makefile.in (shortlisp): Add ../lisp/env.elc.
4497
db92b288
GM
44982001-09-20 Gerd Moellmann <gerd@gnu.org>
4499
3fed8ad5
GM
4500 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
4501 since this function can be called during GC.
4502
db92b288
GM
4503 * callproc.c (Fcall_process): Handle errors from pipe(2).
4504 (child_setup): Delete code in #ifdef vipc.
4505
7121b85a
GM
45062001-09-19 Gerd Moellmann <gerd@gnu.org>
4507
72f62cb5
GM
4508 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
4509 (display_mode_element): Display the string from decode_mode_spec
4510 depending on its multibyteness.
4511
a2697022
GM
4512 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
4513
7121b85a
GM
4514 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
4515
bfc97351
GM
45162001-09-18 Gerd Moellmann <gerd@gnu.org>
4517
c9063433
GM
4518 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
4519 recursive_edit_unwind.
4520 (recursive_edit_unwind): Set kboard state according to
4521 SINGLE-KBOARD.
4522
3fbdba3e
GM
4523 * buffer.c (modify_overlay): Don't do nothing if START == END;
4524 This can still be a modification, for example when an overlay has
4525 a before-string or after-string.
4526 (Fdelete_overlay): Prevent redisplay optimizations when deleting
4527 an overlay with before-string or after-string.
4528
1270031d
GM
4529 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
4530 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
4531
bfc97351
GM
4532 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
4533 first_unchanged_at_end_row is in front of
4534 last_unchanged_at_beg_row. This code should be removed after the
4535 release of 21.1.
4536
d8a973aa
GM
45372001-09-17 Gerd Moellmann <gerd@gnu.org>
4538
e18c8b8d
GM
4539 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
4540 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
4541
d8a973aa
GM
4542 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
4543 versions >= 2.95.
4544
ed7d6ba4
EZ
45452001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
4546
4547 * dired.c (Ffile_attributes): Doc fix.
4548
551629f9
GM
45492001-09-14 Gerd Moellmann <gerd@gnu.org>
4550
4551 * fileio.c (Ffile_symlink_p): Fix last change.
4552
4553 * filelock.c (current_lock_owner): Fix last change.
4554
4c8c7926
GM
45552001-09-13 Gerd Moellmann <gerd@gnu.org>
4556
620c4704
GM
4557 * filelock.c (current_lock_owner): If readlink returns ERANGE,
4558 take that to mean that the buffer is too small.
4559
81c3310d
GM
4560 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
4561 that to mean that the buffer is too small.
4562
06fd3792
GM
4563 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
4564 current buffer's multibyteness when discarding the iterator's
4565 stack.
4566
4c8c7926
GM
4567 * xfns.c (Fx_window_property): Handle case that property gets
4568 deleted between the two calls to XGetWindowProperty.
4569
9a72e4c1
GM
45702001-09-11 Gerd Moellmann <gerd@gnu.org>
4571
bd819d14 4572 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 4573
a41edd99
GM
4574 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
4575 in addition to read-only.
4576
4577 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
4578 to t in addition to read-only.
4579
4580 * lisp.h (Qinhibit_modification_hooks): Declare.
4581
4582 * insdel.c (Qinhibit_modification_hooks): New variable.
4583 (syms_of_insdel): Initialize and staticpro it.
4584
d4881c6a
GM
4585 * textprop.c (verify_interval_modification): Don't run
4586 modification-hooks if inhibit_modification_hooks.
4587
4588 * dispnew.c (set_window_cursor_after_update): Fix code
4589 finding glyph row containing cursor when cursor_in_echo_area
4590 is >= 0.
4591
9a72e4c1
GM
4592 * xdisp.c (init_from_display_pos): Put some code in #if 0.
4593 (add_to_log): Use bcopy instead of strcpy.
4594 (init_from_display_pos): Use an explicit loop over bytes in
4595 overlay strings instead of calling index.
4596
f4a374a1
GM
45972001-09-10 Gerd Moellmann <gerd@gnu.org>
4598
300e57bd
GM
4599 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
4600
4601 * dispnew.c (direct_output_for_insert): Don't change IT's
4602 stop_charpos to something in front of its current position.
4603
f4a374a1
GM
4604 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
4605 `format'.
4606
7e4cbc91
RS
46072001-09-10 Richard M. Stallman <rms@gnu.org>
4608
4609 * frame.c (Fmouse_position): Doc fix.
4610
6afad91e
GM
46112001-09-07 Gerd Moellmann <gerd@gnu.org>
4612
4613 * xdisp.c (init_from_display_pos): Don't compare the result
4614 of calling index with NULL.
4615
f76e0368
GM
46162001-09-06 Gerd Moellmann <gerd@gnu.org>
4617
4618 * xfns.c (x_set_background_color): Don't change the colors
4619 of the X window of scroll bar widgets.
4620
9ead1b60
AI
46212001-09-05 Andrew Innes <andrewi@gnu.org>
4622
4623 * w32fns.c (w32_createwindow): Undo last change.
4624
c3b497b3
GM
46252001-09-05 Gerd Moellmann <gerd@gnu.org>
4626
08e1d6df
GM
4627 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
4628
c3b497b3
GM
4629 * xdisp.c (string_buffer_position): Use *single_char_property*
4630 functions instead of the *single_property* functions.
b56ba8de 4631
8f860180
AI
46322001-09-04 Andrew Innes <andrewi@gnu.org>
4633
9a72e4c1
GM
4634 * w32term.c (w32_read_socket): Add more information to debugging
4635 output.
8f860180
AI
4636
4637 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
4638 from Emacs frames, so that calls to GetClipBox in w32term.c
4639 correctly report when part of a frame is visible (including
4640 scrollbars, etc). This prevents repeated redrawing of frames when
4641 only a scrollbar is visible.
4642 (w32_wnd_proc): Add more frame information to debugging output.
4643
2ee1aa00
SM
46442001-09-03 Stefan Monnier <monnier@cs.yale.edu>
4645
4646 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
4647
e3b22517
GM
46482001-09-03 Gerd Moellmann <gerd@gnu.org>
4649
7e376260
GM
4650 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
4651 help-echo for a string which doesn't have help-echo itself, use
4652 get-char-property to obtain the help-echo from the string's buffer
4653 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
4654 have mouse-face, look ``under'' the string for mouse-face from an
4655 overlay.
4656 (fast_find_position): Add parameter STOP. In the final row, stop
4657 before glyphs having STOP as object. Don't consider glyphs that
4658 are not from a buffer.
4659
e3b22517
GM
4660 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
4661
9a249bba
EZ
46622001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
4663
4664 * fns.c (Fmd5): Doc fix.
4665
c9979669
GM
46662001-08-31 Gerd Moellmann <gerd@gnu.org>
4667
4668 * composite.c (update_compositions): Do nothing if
4669 inhibit-modification-hooks is set.
4670
9584e63a
GM
46712001-08-30 Gerd Moellmann <gerd@gnu.org>
4672
986ec8f2 4673 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 4674 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
4675 glyph matrices etc. in a core dump.
4676
92a25631
GM
4677 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
4678 (syms_of_xdisp): Initialize them.
4679 (handle_single_display_prop): Don't change point, bind `object',
4680 `position', and `buffer-position' instead to the object having the
2ee1aa00 4681 `display' property, position in the object and position in the buffer.
92a25631 4682
9584e63a
GM
4683 * fileio.c (Finsert_file_contents): Don't change the multibyteness
4684 of the buffer if REPLACE is non-nil.
4685
d38633a3
GM
46862001-08-29 Gerd Moellmann <gerd@gnu.org>
4687
4688 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
4689
f4fccc1e
EZ
46902001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
4691
4692 * w32term.c (x_set_glyph_string_background_width)
4693 (show_mouse_face): Track the last changes in xterm.c.
4694
eaaa65b0
GM
46952001-08-28 Gerd Moellmann <gerd@gnu.org>
4696
7b0870b2
GM
4697 * xterm.c (x_set_glyph_string_background_width): Set the glyph
4698 string's background width so that multi-line mouse-face is drawn
4699 to the right edge of the window.
4700 (show_mouse_face): Set the row's mouse_face_p flag after drawing
4701 glyphs.
4702
6b6e2422 4703 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 4704 before inserting/writing glyphs.
6b6e2422 4705
eaaa65b0
GM
4706 * xdisp.c (display_mode_element): Use string_byte_to_char to
4707 determine character positions in strings, use chars_in_text
4708 instead of strwidth.
4709 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
4710 a matrix as parameter; this is easier to use from GDB.
4711
9ad62cf8
MB
47122001-08-28 Miles Bader <miles@gnu.org>
4713
2ee1aa00
SM
4714 * textprop.c (Fprevious_single_char_property_change)
4715 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 4716
32171635
GM
47172001-08-27 Gerd Moellmann <gerd@gnu.org>
4718
47d57b22
GM
4719 * fileio.c (Finsert_file_contents): Allocate, restore, and
4720 free composition data in the case of REPLACE not being nil.
4721
4722 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
4723 there exist overlay strings with newlines at POS.
4724 (text_outside_line_unchanged_p): Return 0 if changes start at
4725 START and overlays exist at START. Likewise for END.
4726 (try_window_id): Give up if init_to_row_end returns 0.
4727
32171635
GM
4728 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
4729 unconditionally.
4730
e1249666
GM
47312001-08-24 Gerd Moellmann <gerd@gnu.org>
4732
33954c45
GM
4733 * keymap.c (access_keymap): Return the cdr of the binding of
4734 a generic character instead of its definition (KEY . BINDING).
4735
e1249666
GM
4736 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
4737 to 0 also in the REPLACE case.
4738
fb4c6c96
AC
47392001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
4740
4741 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
4742 open to determine whether file is readable (as for DOS_NT).
4743
59ecf80b
GM
47442001-08-23 Gerd Moellmann <gerd@gnu.org>
4745
4746 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
4747 coding.type is coding_type_no_conversion or coding_type_raw_text,
4748 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
4749 non-nil instead of just setting enable_multibyte_characters in the
4750 buffer to nil.
4751
40e33037
GM
47522001-08-22 Gerd Moellmann <gerd@gnu.org>
4753
374388c3
GM
4754 * dispextern.h (struct face_cache): Add member
4755 menu_face_changed_p.
4756
4757 * xfaces.c (menu_face_changed_default): New variable.
4758 (menu_face_changed_count): Variable removed.
4759 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
4760 the menu_face_changed_default flag, otherwise set the FRAME's
4761 menu_face_changed_p flag if the `menu' face has been changed.
4762 Prevent calling set_font_frame_param if FRAME is t.
4763 (make_face_cache): Initialize cache's menu_face_changed_p
4764 from menu_face_changed_default.
4765 (realize_basic_faces): Look into the frame's face cache to
4766 determine if the menu appearance needs updating.
4767
40e33037
GM
4768 * keymap.c (access_keymap): Fix last change to not consider
4769 IDX when it has modifiers.
4770
859ea4b8
GM
47712001-08-21 Gerd Moellmann <gerd@gnu.org>
4772
4773 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
4774 . BINDING) exists, where GENERIC-CHAR is the generic character of
4775 the charset of IDX, return BINDING unless there exists a binding
4776 for IDX itself.
4777
e8660d73
GM
47782001-08-16 Gerd Moellmann <gerd@gnu.org>
4779
cca1b1d7
GM
4780 * xrdb.c (SYSV): Don't define on Solaris 2.
4781 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
4782
e8660d73 4783 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 4784 of the screen line, not text line, containing IT's current position.
e8660d73 4785
93aba6fc
GM
47862001-08-15 Gerd Moellmann <gerd@gnu.org>
4787
288d4e06
GM
4788 * window.c (window_scroll_pixel_based): Don't recenter if
4789 PT is partially visible in the window.
4790
3452efc2
SM
4791 * xterm.c (expose_window_tree, expose_window, expose_line):
4792 Return 1 when overwriting mouse-face.
82f053ab
GM
4793 (expose_frame): If mouse-face was overwritten, redo it.
4794
93aba6fc
GM
4795 * xfaces.c (x_update_menu_appearance): Don't call
4796 set_frame_menubar, let the next redisplay do it.
4797
858a55c1
AI
47982001-08-14 Andrew Innes <andrewi@gnu.org>
4799
4800 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
4801 drawing glyph string.
4802
3a990b67
EZ
48032001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
4804
4805 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
4806 running HI-UX/MPP.
4807
04386463
GM
48082001-08-14 Gerd Moellmann <gerd@gnu.org>
4809
4810 * xfaces.c (x_update_menu_appearance): Save and restore value of
4811 interrupt_input_blocked.
4812
3e6385a4
GM
48132001-08-13 Gerd Moellmann <gerd@gnu.org>
4814
b0e619b4
GM
4815 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
4816 a line start, move back to the line start.
3452efc2 4817
0de73d5a
GM
4818 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
4819 exactly when a mini-buffer is active.
4820
3e6385a4
GM
4821 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
4822 in units of 1/8 character on non window-system frames.
4823 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
4824
d1b5f629
EZ
48252001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
4826
4827 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
4828 a doc string.
4829
eaa2319f
GM
48302001-08-09 Gerd Moellmann <gerd@gnu.org>
4831
8e3189f0
GM
4832 * keyboard.c (Vpre_help_message): New variable.
4833 (syms_of_keyboard): Initialize and staticpro it.
4834 (show_help_echo): Record current message before displaying a
4835 help-echo, and restore that message when clearing the help.
4836
eaa2319f
GM
4837 * xfns.c (x_create_im): Remove prototype.
4838
4839 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
4840
4841 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 4842
eaa2319f
GM
48432001-08-08 Gerd Moellmann <gerd@gnu.org>
4844
4845 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 4846 windows whose height has changed, disable partially visible lines.
eaa2319f 4847
17fdcfc8
GM
48482001-08-07 Gerd Moellmann <gerd@gnu.org>
4849
22d01aed 4850 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 4851 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 4852
17fdcfc8
GM
4853 * xdisp.c (start_display): Don't try to determine the continuation
4854 lines width if lines are truncated. It's superfluous and leads to
4855 incorrect results if POS is not visible in the window after
4856 reseating the iterator at the previous line start.
4857
8e3fe78e
GM
48582001-08-06 Gerd Moellmann <gerd@gnu.org>
4859
4860 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4861
e4ac8240 48622001-08-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
98a8938c
GM
4863
4864 * alloc.c (init_stack): Remove declaration.
4865
18f9986a
GM
48662001-08-03 Gerd Moellmann <gerd@gnu.org>
4867
5e1f85e0
GM
4868 * keyboard.c (read_key_sequence): Check that key is an integer
4869 before comparing it with quit_char.
4870 (add_command_key): Use larger_vector.
4871 (read_char_x_menu_prompt): Instead of converting symbol and
4872 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 4873 which cannot be confused with valid events.
5e1f85e0
GM
4874 (read_char): When reading from Vunread_command_events, check for
4875 events of the form (EVENT . disabled) instead of
4876 (EVENT . nil).
4877
18f9986a
GM
4878 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
4879 a float, determine the max height from the frame's height.
4880
fbc7f2a6
GM
48812001-08-02 Gerd Moellmann <gerd@gnu.org>
4882
4883 * xdisp.c (redisplay_internal): Take message_cleared_p into
4884 account only if minibuf_level == 0.
4885
81b1a79d
GM
48862001-08-01 Gerd Moellmann <gerd@gnu.org>
4887
e5c60873
GM
4888 * xdisp.c (redisplay_internal): Add a check for the last
4889 displayed message.
3452efc2 4890
6e019995
GM
4891 * xdisp.c (message_cleared_p): New variable.
4892 (clear_message): Set message_cleared_p when clearing the current
4893 message.
4894 (redisplay_internal): Look at message_cleared_p to capture
4895 the case that the echo area should be cleared.
4896
308a74d8
GM
4897 * keyboard.c (command_loop_1): Fix spelling of
4898 resize_echo_area_exactly.
4899
3452efc2 4900 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
4901
4902 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
4903
81b1a79d
GM
4904 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
4905 current matrix when the window gets smaller.
4906
ada329e6
EZ
49072001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
4908
4909 * print.c (strout): Cast the character passed to insert_char to
4910 unsigned char, to avoid sign extension when it is promoted to int.
4911
ed86208c
GM
49122001-07-31 Gerd Moellmann <gerd@gnu.org>
4913
4914 * fileio.c (Finsert_file_contents): Don't treat a return value
4915 of 0 from emacs_read as an IO error.
4916
6594ac22
GM
49172001-07-30 Gerd Moellmann <gerd@gnu.org>
4918
cef68af5
GM
4919 * keyboard.c (abs): New macro.
4920 (double_click_fuzz): New variable.
4921 (make_lispy_event): Use it to determine what makes a double-click.
4922 (syms_of_keyboard): DEFVAR_INT it.
4923
6594ac22
GM
4924 * xmenu.c (set_frame_menubar): Take into account that
4925 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
4926 <raeburn@gnu.org>.
4927
75c5350a
GM
49282001-07-27 Gerd Moellmann <gerd@gnu.org>
4929
4930 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
4931
4932 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
4933 of row's visible height.
4934
4935 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
4936 deal with the first overlay string having an image `display' property.
4937 (try_window_reusing_current_matrix, compute_line_metrics):
4938 Fix computation of row's visible height for the case that part of the
75c5350a
GM
4939 row is invisible above and part of the row is at the same time
4940 invisible below the window.
4941
ac49effe
GM
49422001-07-26 Gerd Moellmann <gerd@gnu.org>
4943
4944 * xfns.c (x-show-tip): Doc fix.
3452efc2 4945
ac49effe
GM
4946 * xfns.c (Vx_max_tooltip_size): New variable.
4947 (syms_of_xfns): DEFVAR_LISP it.
4948 (Fx_show_tip): Set frame's window_width to the width of the
4949 window. Use a maximum tooltip size specified by
4950 Vx_max_tooltip_size, if that has valid contents.
4951 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 4952
8c3b00cb
AI
49532001-07-26 Andrew Innes <andrewi@gnu.org>
4954
4955 * w32term.c (x_display_list): New variable.
4956 (w32_term_init): Set it.
4957
4958 * w32term.h (x_display_list): New extern.
4959
16098288
GM
49602001-07-26 Gerd Moellmann <gerd@gnu.org>
4961
4962 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
4963 is non-nil, instead of when redisplaying_p is non-zero.
4964 See comment there.
16098288
GM
4965 (mark_window_display_accurate_1): Add an assertion.
4966
64c5be50
GM
49672001-07-25 Gerd Moellmann <gerd@gnu.org>
4968
e743f599
GM
4969 * dispextern.h (struct it): Increase size of ctl_chars to 16.
4970
563b384d
GM
4971 * xfns.c (Fx_file_dialog): Block/unblock input while processing
4972 events so that we get a chance of processing expose events.
4973
64c5be50
GM
4974 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4975
296808a5
GM
49762001-07-24 Gerd Moellmann <gerd@gnu.org>
4977
4978 * xfns.c (valid_image_p): Protect better against invalid image
4979 specifications. Previous code could signal an error.
4980
5247262a
GM
49812001-07-23 Gerd Moellmann <gerd@gnu.org>
4982
3452efc2 4983 * indent.c (current_column): Fix column computation in the
f1004faf
GM
4984 presence of display table entries.
4985 (current_column_1, Fmove_to_column, compute_motion): Likewise.
4986
dd42b31a
GM
4987 * dispnew.c (adjust_glyph_matrix): In the optimization for
4988 windows whose height has changed, use the new window height
4989 to compute which rows to invalidate.
4990
9e5a7f2a
GM
4991 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4992 (MAX_10_EXP): New macro.
4993 (Fformat): Use it.
4994
5247262a
GM
4995 * coding.c (code_convert_region): Handle the multibyte case if
4996 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
4997
177ab8ce
GM
49982001-07-20 Gerd Moellmann <gerd@gnu.org>
4999
6e07c0a5
GM
5000 * dispextern.h (struct face): Change type of `stipple' to
5001 int; it's an ID.
5002
177ab8ce
GM
5003 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
5004
b5b80599
GM
50052001-07-19 Gerd Moellmann <gerd@gnu.org>
5006
4e2a256b
GM
5007 * dispnew.c (update_window): Don't set the cursor at the end
5008 of the update if display update has been paused.
5009
3452efc2 5010 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 5011
c1fd9232
KR
50122001-07-18 Ken Raeburn <raeburn@gnu.org>
5013
5014 * fns.c (Fset_char_table_default): Check that a charset is defined
5015 before checking its dimension.
5016
928a85c1
KR
50172001-07-17 Ken Raeburn <raeburn@gnu.org>
5018
5019 * coding.c (setup_coding_system): Don't do any designation based
5020 on reg_bits if charset is not yet defined.
5021
fb4c6c96 5022 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
5023 pointer, using eassert.
5024
de11c1ea
GM
50252001-07-17 Gerd Moellmann <gerd@gnu.org>
5026
3452efc2
SM
5027 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
5028 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 5029
467f1209
GM
50302001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
5031
5032 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
5033
c3d6be34
GM
50342001-07-16 Gerd Moellmann <gerd@gnu.org>
5035
c1d61a7d
GM
5036 * fileio.c (unwind_read): Function removed.
5037 (read_non_regular, read_non_regular_quit): New functions.
5038 (Finsert_file_contents): When reading from non-regular files,
5039 arrange to catch a `quit' and terminate the loop. Rearrange
5040 code so that a `quit' when reading from a regular file doesn't
5041 insert text in the buffer.
5042
c3d6be34
GM
5043 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
5044 Clear faces afterwards.
5045 (clear_font_table): Take a x_display_info parameter. Don't free
5046 fonts being the default font of any frame on the given display.
5047
e06aa1f9
GM
50482001-07-13 Gerd Moellmann <gerd@gnu.org>
5049
5050 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
5051 instead of CHAR_STRING which can signal an error.
5052
5053 * charset.c (char_to_string_1): Extracted from char_to_string.
5054 Return -1 instead of signaling an error.
5055 (char_to_string): Use it.
5056
5057 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
5058
176c92e6
SM
50592001-07-12 Stefan Monnier <monnier@cs.yale.edu>
5060
5061 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
5062 is t, don't try to append anything to it.
5063
1c56232f
EZ
50642001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
5065
5066 * dired.c (file_name_completion): Pass dp->d_name to
5067 Fstring_match, not elt, which is always nil here.
5068
1d2b2268
GM
50692001-07-12 Gerd Moellmann <gerd@gnu.org>
5070
5071 * xselect.c (x_decline_selection_request): Handle errors
5072 caused by receivers that have vanished.
5073
5074 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
5075 ignoring events on foreign windows in #if 0. Always dispatch
5076 the event after checking it with x_handle_property_notify.
5077
5078 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
5079 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
5080 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
5081 (toplevel): Add prototypes for file-local functions.
5082 (x_atom_to_symbol): Remove DPYINFO parameter.
5083
fe5a0162
SM
50842001-07-11 Stefan Monnier <monnier@cs.yale.edu>
5085
5086 * w32menu.c (menubar_selection_callback, w32_menu_show):
5087 Initialize `entry' to nil.
5088 (w32_dialog_show): Remove unused `save_wv' variable.
5089 (name_is_separator): Recognize "--:foo" and "--foo-bar".
5090
a777242c
GM
50912001-07-11 Gerd Moellmann <gerd@gnu.org>
5092
8ee5b6a3
GM
5093 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
5094
d0e2444e
GM
5095 * fileio.c (unwind_read): Print a message when discarding inserted
5096 text or switching the buffer to unibyte. Change parameter.
5097 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 5098
a777242c
GM
5099 * fileio.c (unwind_read): New function.
5100 (Finsert_file_contents): Record it as unwind-function for
5101 the case that reading is interrupted by C-g.
5102
ae794295
GM
51032001-07-10 Gerd Moellmann <gerd@gnu.org>
5104
fe5a0162 5105 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
5106 update when scrolling_window returns 0.
5107
6b05fae3
GM
5108 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
5109
5110 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 5111 for the case that x_decode_color signals an error.
6b05fae3 5112
ae794295
GM
5113 * xdisp.c (add_to_log): Do nothing if called asynchronously.
5114
bb6e8cee
GM
51152001-07-09 Gerd Moellmann <gerd@gnu.org>
5116
5117 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
5118 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
5119 around ioctls.
5120
36b40a8a
EZ
51212001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
5122
24b97d4b
EZ
5123 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
5124 doc string line for dos-timezone-offset.
5125
36b40a8a
EZ
5126 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
5127 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
5128 (syms_of_msdos): Add \n\ at the end of a line in the doc string
5129 line for dos-unsupported-char-glyph.
36b40a8a
EZ
5130
5131 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
5132
0967b4b0
GM
51332001-07-05 Gerd Moellmann <gerd@gnu.org>
5134
f25cfe53
GM
5135 * sound.c: Include Emacs' header files with #include "...".
5136
0967b4b0
GM
5137 * eval.c (specbind): Additionally record the buffer that was
5138 current when a buffer-local or frame-local variable was bound.
5139
c347a1c3
GM
51402001-07-04 Gerd Moellmann <gerd@gnu.org>
5141
5142 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
5143 to unibyte characters in unibyte buffers.
5144
6332ca8a
GM
51452001-07-03 Gerd Moellmann <gerd@gnu.org>
5146
38472d44
GM
5147 * eval.c (specbind): If SYMBOL has a frame-local binding, record
5148 the frame on the binding stack. Change format of entries for
5149 local bindings on the binding stack to '(SYMBOL . WHERE)'.
5150 (unbind_to): Handle unbinding a frame-local variable.
5151
6332ca8a 5152 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 5153 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
5154 (dump_glyph_row): Print row's continuation_lines_width.
5155 (try_window_id): Take the shortcut if ZV is visible in the
5156 window, but there are actually no changes at ZV.
5157
63d1b174
GM
51582001-07-02 Gerd Moellmann <gerd@gnu.org>
5159
4c175203
GM
5160 * xterm.h (x_free_dpy_colors): Add prototype.
5161
5162 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
5163 right number of arguments.
5164
0b54ce28
GM
5165 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
5166 ($(lwlibdir)TAGS): New target.
4c175203 5167 (TAGS): Fix dependency list.
0b54ce28 5168
63d1b174
GM
5169 * xterm.c (x_list_fonts): Make sure XFreeFont is called
5170 with input blocked.
5171
d827466c
GM
51722001-06-30 Gerd Moellmann <gerd@gnu.org>
5173
5174 * emacs.c (main): Remove extern declaration for sys_nerr, which
5175 isn't used and causes a compilation error with GCC 3.0 on
5176 FreeBSD 4.3.
5177
b5cb1ada
GM
51782001-06-27 Gerd Moellmann <gerd@gnu.org>
5179
a5d3ec3f 5180 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 5181 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
5182 (toplevel): Include <signal.h> and syssignal.h.
5183
b5cb1ada
GM
5184 * sound.c (vox_configure, vox_close): Turn off atimers
5185 around ioctls.
5186
d9bad487
GM
51872001-06-26 Gerd Moellmann <gerd@gnu.org>
5188
fdbb67fe
GM
5189 * keyboard.c (read_char) <non_reread>: Record the previous idle
5190 start time before calling timer_stop_idle.
5191 (read_char) <reread_first>: After processing a help-echo event,
5192 restore the previous idle start time.
5193
d9bad487
GM
5194 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
5195 the start of invisible text.
5196 (setup_for_ellipsis): New function.
5197 (next_overlay_string): After all overlay strings have been
5198 processed, display an ellipsis if necessary.
5199 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
5200 (push_it): Initialize display_ellipsis_p on the iterator's stack.
5201
5202 * dispextern.h (struct iterator_stack_entry): Add member
5203 display_ellipsis_p.
5204
2b9c25e0
GM
52052001-06-25 Gerd Moellmann <gerd@gnu.org>
5206
80de57df
GM
5207 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
5208 on the value of the wait-for-wm frame parameter.
5209
5210 * xterm.h (struct x_output): Add member wait_for_wm.
5211
5212 * xfns.c (Qwait_for_wm): New variable.
5213 (x_frame_parms): Add entry for `wait-for-wm".
5214 (x_set_wait_for_wm): New function.
5215 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
5216 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
5217
2b9c25e0
GM
5218 * xdisp.c (try_window_id) <all changes below window end>: Don't
5219 take this shortcut if ZV is visible in the window.
5220 (try_window_id): When checking for window start being in changed
5221 text, don't check that the buffer's size has changed.
5222
f772775c
RS
52232001-06-23 Richard M. Stallman <rms@gnu.org>
5224
5225 * minibuf.c (Fcompleting_read): Doc fix.
5226
fa9090b8
GM
52272001-06-19 Gerd Moellmann <gerd@gnu.org>
5228
5229 * composite.c (Ffind_composition_internal): Accept ZV
5230 and a string's end position as POS.
5231
f6f1beba
GM
52322001-06-18 Gerd Moellmann <gerd@gnu.org>
5233
5234 * composite.c (Ffind_composition_internal): Check POS
5235 for validity.
5236
0ae83348
EZ
52372001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
5238
5239 * editfns.c (Fmessage_box): If the frame is not under a window
5240 system, output the message in the echo area.
5241
e4cdc335
RS
52422001-06-14 Richard M. Stallman <rms@gnu.org>
5243
5244 * xdisp.c (try_window_id): When EOB is visible, don't treat
5245 insertion at EOB as if it were "off the bottom of the screen."
5246
a55a5f3c
AI
52472001-06-11 Andrew Innes <andrewi@gnu.org>
5248
5249 * w32proc.c (create_child): Add new parameter is_gui_app.
5250 (w32_executable_type): Add new parameter is_gui_app.
5251 (sys_spawnve): Use it.
5252 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
5253 SIGQUIT. This matches better how the signals are interpreted by
5254 MSVC compiled programs.
5255 (syms_of_ntproc): Update docstring.
5256
1b85dc1c
SM
52572001-06-02 Stefan Monnier <monnier@cs.yale.edu>
5258
5259 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
5260 well otherwise note_mouse_highlight might optimize away highlighting
5261 if we pass over that same overlay again.
5262
b75f8eab
EZ
52632001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
5264
5265 * lread.c (Fload): Document that the argument is run via
5266 substitute-in-file-name.
5267
94843cc1
GM
52682001-05-31 Gerd Moellmann <gerd@gnu.org>
5269
b14659e6
GM
5270 * Makefile.in (bootstrap-doc): New target.
5271 (bootstrap-emacs): Depend on it.
5272
0894672f
GM
5273 * fileio.c (Fdo_auto_save): Don't try to create the directory of
5274 auto-save-list-file-name when shutting down Emacs, because
5275 creating the directory might signal an error, and leaves
5276 Emacs in a strange state.
5277
94843cc1
GM
5278 * term.c: (tty_cursor_hidden): New variable.
5279 (update_begin): Don't call tty_hide_cursor. Clean up.
5280 (update_end, set_terminal_window, set_scroll_region): Clean up.
5281 (ring_bell, reset_terminal_modes): Clean up.
5282 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
5283 on tty_cursor_hidden.
5284 (write_glyphs): Call tty_hide_cursor.
5285
db3a49a6
SM
52862001-05-30 Stefan Monnier <monnier@cs.yale.edu>
5287
5288 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
5289
8bd189fb
GM
52902001-05-30 Gerd Moellmann <gerd@gnu.org>
5291
6f1be3b9
GM
5292 * xfns.c (enum image_value_type): New enumerator
5293 IMAGE_STRING_OR_NIL_VALUE.
5294 (parse_image_spec): Handle it.
5295 (xbm_format, pbm_format): Use it for :foreground and :background.
5296 (xbm_load, pbm_load): Check for nil color names.
5297
8bd189fb
GM
5298 * xterm.c (note_mouse_highlight): If an overlapping overlay
5299 exists, but we find that we highlight the same overlay as before,
5300 don't do the highlighting again.
5301
7bdba03c
GM
53022001-05-29 Gerd Moellmann <gerd@gnu.org>
5303
4c329aa8
GM
5304 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
5305 Protect unibyte strings created by replacing their multibyte
5306 equivalents in menu_items.
5307
e15e2828
GM
5308 * keymap.c (Fsingle_key_description): NUL-terminate the string
5309 buffer before calling build_string.
5310
7bdba03c
GM
5311 * callproc.c (Fcall_process): Deal with decode_coding returning
5312 CODING_FINISH_INCONSISTENT_EOL.
5313
89c8dc6c
GM
53142001-05-28 Gerd Moellmann <gerd@gnu.org>
5315
db3a49a6 5316 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
5317 an item's name with its key description in case the description
5318 is a multibyte string.
5319
5320 * keymap.c (Fsingle_key_description): Create a multibyte string
5321 only if necessary.
5322
eb04d6cd
GM
5323 * macros.c (Fstart_kbd_macro): Doc fix.
5324
8bd6307f
GM
5325 * xterm.c (cursor_in_mouse_face_p): New function.
5326 (x_draw_stretch_glyph_string): Use it to choose a different GC
5327 when drawing a cursor within highlighted text.
5328
e26c4089
GM
5329 * editfns.c (char_property_eq): Put in #if 0.
5330
5331 * indent.c (string_display_width): Put in #if 0.
5332
5333 * lread.c (Fload): Remove unused label.
5334
89c8dc6c
GM
5335 * termcap.c (speeds): Put in #if 0.
5336
9a1211f2
GM
53372001-05-18 Gerd Moellmann <gerd@gnu.org>
5338
29148a3f
GM
5339 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
5340
9a1211f2
GM
5341 * xfaces.c (xlfd_point_size): Don't divide pixel size from
5342 transformation matrix by 10.
5343
09393d07
GM
53442001-05-16 Gerd Moellmann <gerd@gnu.org>
5345
5346 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
5347 only if it's equal to the former foreground pixel color.
db3a49a6 5348 (x_set_foreground_color, x_set_background_color)
09393d07
GM
5349 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
5350
460e6bae
GM
53512001-05-16 Dave Love <fx@gnu.org>
5352
5353 * insdel.c (signal_before_change, signal_after_change): Consider a
5354 local change hook which changes the buffer.
99c78ce8
GM
5355
5356 * process.c (read_process_output): Don't call signal_after_change
5357 and update_compositions after insert_from_string_before_markers.
5358
dbcf3c03
GM
53592001-05-16 Gerd Moellmann <gerd@gnu.org>
5360
a90b3d3c
GM
5361 * xfaces.c (split_font_name): Use the right field when
5362 checking for `[...]' syntax.
5363
1b7818b4
GM
5364 * buffer.c (copy_overlays): New function.
5365 (clone_per_buffer_values): Use it.
5366
5367 * buffer.h (OVERLAY_PLIST): New macro.
5368
9bae8781
GM
5369 * keymap.c (Fsingle_key_description): Replace a build_string with
5370 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
5371
dbcf3c03
GM
5372 * fontset.c (Ffontset_info): Check that face is non-null
5373 before accessing its fields.
5374
8a1ae4dd
GM
53752001-05-15 Gerd Moellmann <gerd@gnu.org>
5376
18a0a39e
GM
5377 * keyboard.c (read_key_sequence): Prevent generating a fake
5378 prefix key twice.
5379
e335b66a
GM
5380 * xfaces.c (split_font_name): Handle `[...]' for the right
5381 font name fields.
5382
8a1ae4dd
GM
5383 * ccl.c (ccl_driver): Don't copy remaining bytes in case
5384 of CCL_STAT_INVALID_CMD.
5385
3cf80731
SM
53862001-05-14 Stefan Monnier <monnier@cs.yale.edu>
5387
33568849
SM
5388 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
5389 in <var> has no default value yet.
5390
3cf80731
SM
5391 * xfaces.c (try_alternative_families): First try the FAMILY.
5392 And if nothing is found in the end, try again with scalable fonts.
5393 (try_font_list): Let try_alternative_families do a bit more of
5394 the work. Only use FAMILY if it is not nil.
5395 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
5396
933b0249
GM
53972001-05-14 Gerd Moellmann <gerd@gnu.org>
5398
58e5af83
GM
5399 * xterm.c (note_mouse_highlight): Avoid changing the mouse
5400 pointer shape when show_mouse_face has already done it.
33568849 5401
58e5af83 5402 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
5403 full-width rows.
5404
7b16a6bf
GM
5405 * xfaces.c (split_font_name): Make sure to leave the loop
5406 with the right value of `i'.
3cf80731 5407
933b0249
GM
5408 * xfaces.c (split_font_name): Handle matrix transformations
5409 in the pixel and point size fields of XLFD font names.
5410 (xlfd_point_size): Likewise.
5411
dddcbf00
EZ
54122001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
5413
3cf80731 5414 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
5415 (x_to_w32_font): Add prototype.
5416
7689ef0b
EZ
5417 * regex.c (malloc, realloc, free) [emacs]: Undefine before
5418 redefining, to avoid compiler warnings.
5419
e7c15bba
EZ
5420 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
5421
dddcbf00
EZ
5422 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
5423 (w32_get_bdf_glyph): Cast between unsigned char and char when
5424 passing arguments to subroutines, to shut up compiler warnings.
5425 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
5426 GET_HEX_VAL.
5427
5428 * xfaces.c: Include keyboard.h before frame.h, not after it.
5429
5430 * widget.c: Include keyboard.h before frame.h.
5431
5432 * w32term.h (struct image, struct face): Forward declaration, to
5433 avoid compiler warnings.
5434
7bd2d083
GM
54352001-05-11 Gerd Moellmann <gerd@gnu.org>
5436
47e72862
GM
5437 * keyboard.c (read_key_sequence): Don't modify events when
5438 generating fake prefix keys (mode-line, scroll-bar, ...) since
5439 this prevents proper processing of such events when pushed back
5440 into unread-command-events.
5441
dd5f324b
GM
5442 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
5443 actually redrawn. Make the function static.
5444 (note_mouse_highlight): Fix a case where the mouse cursor
5445 was changed back to the text cursor.
5446
5447 * xterm.h (clear_mouse_face): Remove prototype.
5448
d88a79d4
GM
5449 * xdisp.c (try_window_id): Fix the fix and set the right
5450 window_end_vpos.
5451
5452 * xdisp.c (try_window_id): Fix computation of window end in the
5453 case that lines were deleted at the end of the window. Add some
5454 more debug_method_adds.
0416532f 5455
7bd2d083
GM
5456 * xfaces.c (try_alternative_families): New function.
5457 (try_font_list): Use it. If ATTRS specifies a family, check
5458 fonts from that family first.
5459 (choose_face_font): Remove code setting the family part of
5460 the pattern to nil.
5461
23fca891
GM
54622001-05-10 Gerd Moellmann <gerd@gnu.org>
5463
ff9aa2ca
GM
5464 * xdisp.c (try_window_id): Fix case of all changes before
5465 the window start.
7b2654b5 5466
23fca891
GM
5467 * xdisp.c (try_window_id): Add some xasserts.
5468
e9726794
GM
54692001-05-09 Gerd Moellmann <gerd@gnu.org>
5470
5471 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
5472
9e53a675
GM
54732001-05-09 Dave Love <fx@gnu.org>
5474
5475 * xdisp.c (GIVE_UP): Fix for K&R C.
5476
0d487c52
GM
54772001-05-09 Gerd Moellmann <gerd@gnu.org>
5478
fe88d421
GM
5479 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
5480
0d487c52
GM
5481 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
5482 back to the text cursor shape without need.
5483
1e9fc92e
GM
54842001-05-07 Gerd Moellmann <gerd@gnu.org>
5485
a2a6232e
GM
5486 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
5487
5488 * dispextern.h (inverse_video): Declare extern.
5489
1e9fc92e
GM
5490 * keyboard.c (delete_kboard): Handle the case that selected_frame
5491 has been deleted in the course of x_connection_closed.
5492
12949a7f
EZ
54932001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
5494
7b2654b5
SM
5495 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
5496 Fix the change from 2001-04-30.
12949a7f 5497
2fa2f461
GM
54982001-05-03 Gerd Moellmann <gerd@gnu.org>
5499
a779d213
GM
5500 * xfns.c (file_dialog_unmap_cb): New function.
5501 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
5502 where a dialog is closed via the window manager.
5503
7b2654b5 5504 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
5505 the window start or all below the window end mostly rewritten.
5506 (redisplay_window): Move the tests if try_window_id is
5507 applicable to try_window_id.
5508 (GIVE_UP): New macro.
5509
3356df63
GM
55102001-05-02 Gerd Moellmann <gerd@gnu.org>
5511
a39202f6 5512 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
5513 currently being updated, mark the frame garbaged.
5514 Fix computation of rows intersecting the exposed rectangle.
a39202f6 5515 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 5516
3356df63
GM
5517 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
5518 again if it has already been drawn.
5519
a9d2fd1d
SM
55202001-05-01 Stefan Monnier <monnier@cs.yale.edu>
5521
5522 * syntax.c (update_syntax_table): Check that oldi has the same
5523 properties as old_prop before deciding not to invalidate.
5524
c95fc5f1
GM
55252001-04-30 Gerd Moellmann <gerd@gnu.org>
5526
a9793e45
GM
5527 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
5528 read-only text that is so because of text properties.
5529
c95fc5f1 5530 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 5531 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
5532 windows that are components of a Lucid menu bar.
5533
5a5d9185
GM
55342001-04-27 Gerd Moellmann <gerd@gnu.org>
5535
5536 * term.c (turn_on_face): Fix reverse video handling on terminals
5537 that don't support colors.
5538
ba973f7a
GM
55392001-04-26 Gerd Moellmann <gerd@gnu.org>
5540
5541 * editfns.c (save_excursion_restore): Don't use XBUFFER on
5542 a non-buffer.
5543
8c56a983
GM
55442001-04-25 Gerd Moellmann <gerd@gnu.org>
5545
a728644c
GM
5546 * term.c (toggle_highlight): New function.
5547 (turn_on_face): Change handling of reverse video.
5548
7b2654b5
SM
5549 * process.c (wait_reading_process_input):
5550 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 5551
bfd8410f
GM
5552 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
5553 of the number of overlays to check.
5554
be2488ca
GM
5555 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
5556
8c56a983
GM
5557 * xdisp.c (try_window_id): Fix a case where window_end_pos
5558 and window_end_bytepos were not adjusted.
5559
522d42f7
GM
55602001-04-23 Gerd Moellmann <gerd@gnu.org>
5561
5562 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
5563 zero instead of -1.
5564
78c1afb6
EZ
55652001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
5566
a9d2fd1d
SM
5567 * process.c (wait_reading_process_input) [!subprocesses]:
5568 Don't reference waiting_for_user_input_p, it's not defined in the
5569 branch without async subprocesses support.
78c1afb6 5570
a2fab450
GM
55712001-04-19 Gerd Moellmann <gerd@gnu.org>
5572
a122a38e
GM
5573 * keyboard.c (delete_kboard): Prevent a dangling reference
5574 from current_kboard to KB, which is freed.
5575
a9d2fd1d
SM
5576 * process.c (wait_reading_process_input):
5577 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
5578 read_key_sequence aware of buffer changes from under it.
5579
0f8d6dc7
GM
55802001-04-18 Gerd Moellmann <gerd@gnu.org>
5581
eeffb293
GM
5582 * xfaces.c (Qscalable_fonts_allowed): New variable.
5583 (realizing_basic_faces_p): Removed.
2fa2f461
GM
5584 (x_face_list_fonts): Special handling for realizing_basic_faces_p
5585 removed.
eeffb293 5586 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
5587 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
5588 for scalable-fonts-allowed to t.
eeffb293 5589
0f8d6dc7
GM
5590 * fileio.c (Finsert_file_contents): If the file size returned from
5591 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 5592 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 5593
eec2d1de
EZ
55942001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
5595
5596 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
5597 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
5598 (__memalign_hook): Make the two prototypes consistent.
5599
f4f480bd
GM
56002001-04-17 Gerd Moellmann <gerd@gnu.org>
5601
5602 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
5603 matrix of mini-windows.
5604
52283633
SM
56052001-04-12 Stefan Monnier <monnier@cs.yale.edu>
5606
5607 * intervals.c (find_interval): Don't rebalance during signal handling.
5608
ec2423c9
GM
56092001-04-11 Gerd Moellmann <gerd@gnu.org>
5610
30cb0001 5611 * fns.c: Include blockinput.h.
52283633 5612
ec2423c9
GM
5613 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
5614
719d83ad
GM
56152001-04-10 Gerd Moellmann <gerd@gnu.org>
5616
60f8d735
GM
5617 * fns.c (Fcompare_strings): Fix return values.
5618
afffeb57
GM
5619 * window.c (window_scroll): Change the meaning of N to mean
5620 N screen-fulls or N lines.
5621 (window_scroll_pixel_based, window_scroll_line_based)
5622 (scroll_command, Fscroll_other_window): Change accordingly.
5623
52283633
SM
5624 * window.c (window_scroll_pixel_based, Frecenter):
5625 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
5626 height of the window.
5627
5628 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
5629 instead of using it.last_visible_y for the height of the window.
52283633 5630
719d83ad 5631 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 5632 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
5633
5634 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
5635 able to write to hidden and system files. From Dan Holmsand
5636 <dan@eyebee.com>.
719d83ad 5637
8ddf3ee1
GM
5638 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
5639 Holmsand <dan@eyebee.com>.
719d83ad 5640
522ed7fb
GM
56412001-04-09 Gerd Moellmann <gerd@gnu.org>
5642
9170e5d4
GM
5643 * fns.c (Fplist_get, Fplist_put): Add QUITs.
5644
522ed7fb
GM
5645 * window.c (window_internal_height): Return 1 less if the
5646 window has a header line.
5647
5648 * xdisp.c (try_window_id): When scrolling on a terminal, take
5649 the change of window_internal_height into account.
5650
ceeb3d7d
EZ
56512001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
5652
5653 * gmalloc.c (align): If the argument SIZE would overflow
5654 __malloc_ptrdiff_t, fail right away.
5655
63685b9d
GM
56562001-04-06 Gerd Moellmann <gerd@gnu.org>
5657
5658 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
5659 Make sure the tooltip is completely visible.
5660 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
5661
5662 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
5663
5664 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
5665
3ffb33bb
DL
56662001-04-06 Dave Love <fx@gnu.org>
5667
52283633
SM
5668 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
5669 Fix test of `from'.
3ffb33bb 5670
869fb12c
GM
56712001-04-06 Gerd Moellmann <gerd@gnu.org>
5672
52283633 5673 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 5674
869fb12c
GM
5675 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
5676
441bf856
GM
56772001-04-05 Gerd Moellmann <gerd@gnu.org>
5678
4d664b04
GM
5679 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
5680
52283633 5681 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 5682
30ca89f5
GM
5683 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
5684 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
5685
5686 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
5687 shell widget's position only if it is non-null.
5688
52283633
SM
5689 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
5690 Set f->output_data.x->widget to null after destroying it.
30ca89f5 5691
81a81c0f
GM
5692 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
5693 FILENAME to bring it in synch with the documentation.
5694
441bf856
GM
5695 * xfaces.c (realizing_basic_faces_p): Renamed from
5696 realize_default_face_p.
5697 (realize_basic_faces): Set/clear realizing_basic_faces_p.
5698 (realize_default_face): Don't set the flag.
5699
702a1e8e
GM
57002001-04-04 Gerd Moellmann <gerd@gnu.org>
5701
1013f4e3
GM
5702 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
5703
52283633
SM
5704 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
5705
1013f4e3
GM
5706 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
5707 the buffer that was used for echoing.
5708
702a1e8e
GM
5709 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
5710 (first_font_matching): Removed unused function.
5711 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
5712 (may_use_scalable_font_p): Remove parameter FONT; rename
5713 parameter NAME to FONT.
5714 (x_face_list_fonts): Fix missing bounds check.
5715 (realizing_default_face_p): New variable.
5716 (realize_default_face): Set and clear that flag.
5717 (x_face_list_fonts): When called during the realization of the
5718 default face, and no matching fonts are found when ignoring
5719 scalable fonts and fonts matching a regexp from
5720 face-ignored-fonts, try without ignoring fonts.
5721
f9dbcda4
GM
57222001-04-03 Gerd Moellmann <gerd@gnu.org>
5723
ad18ffb1
GM
5724 * xfns.c (postprocess_image): New function.
5725 (lookup_image): Call it for all image types except PostScript.
5726 (x_kill_gs_process): Call postprocess_image.
5727
f9dbcda4
GM
5728 * xterm.c (x_use_underline_position_properties): New variable.
5729 (x_draw_glyph_string): Use it.
5730 (syms_of_xterm): DEFVAR_BOOL it.
5731
651f03b6
GM
57322001-04-02 Gerd Moellmann <gerd@gnu.org>
5733
5734 * xterm.c (x_alloc_nearest_color_1): New function.
5735 (x_alloc_nearest_color): Use it.
5736 (x_color_cells): Take a Display as argument, instead of a frame.
5737 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
5738 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
5739 (x_initialize): Register cvt_string_to_pixel as resource converter
5740 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
5741
73d75a62
GM
57422001-03-30 Gerd Moellmann <gerd@gnu.org>
5743
b2046df8
GM
5744 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
5745 (set_iterator_to_next): If a string from a display property ends,
5746 consider the case that this might also be the end of an
5747 overlay string having the display property.
5748
52283633 5749 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 5750
87d8eba4
GM
5751 * xdisp.c (reseat_to_string): Undo last change.
5752
73d75a62
GM
5753 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
5754 matrix of a window when the header line changes, when
5755 new rows are allocated, or when the width changes.
5756
911a2406
EZ
57572001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
5758
52283633 5759 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 5760
aea51abe
EZ
57612001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
5762
5763 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
5764 deprecated.
5765
176bc847
GM
57662001-03-29 Gerd Moellmann <gerd@gnu.org>
5767
ed31fabf
GM
5768 * data.c (Fsubr_interactive_form): New function.
5769 (syms_of_data): Defsubr it.
5770
176bc847
GM
5771 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
5772 (live_float_p, live_misc_p): Return 1 only if the offset of the
5773 pointer in its block is >= 0.
5774
e59d0e9d
GM
57752001-03-28 Paul Eggert <eggert@twinsun.com>
5776
5777 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
5778 microseconds calcuation. Avoid double-rounding problem.
5779 In doc string, warn that the result is approximate.
5780
f827b862
GM
57812001-03-28 Gerd Moellmann <gerd@gnu.org>
5782
30a3f61c
GM
5783 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
5784 bind `inhibit-eval-during-redisplay' to t.
5785
5786 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
5787
5788 * xdisp.c (inhibit_eval_during_redisplay)
5789 (Qinhibit_eval_during_redisplay): New variables.
5790 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
5791 don't eval, return nil instead.
5792 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
5793 Initialize Qinhibit_eval_during_redisplay.
5794
e719f5ae
GM
5795 * xdisp.c (reseat_to_string): If STRING is multibyte, set
5796 the iterator's multibyte_p flag.
5797
deb2613a
GM
5798 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
5799 instead of setting it to zero; it's incremented for each frame
5800 where the menu face is changed.
5801
52283633
SM
5802 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
5803 change bottom shadow accordingly.
5804
5805 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
5806 intersections here.
5807 (expose_window): Do it here instead.
52283633 5808 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 5809
f827b862
GM
5810 * bytecode.c (BYTE_CODE_QUIT): New macro.
5811 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
5812
4bde0ebb
GM
58132001-03-27 Gerd Moellmann <gerd@gnu.org>
5814
607ec83c
GM
5815 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
5816 Give up if matrix starts in an ellipsis.
5817 (init_from_display_pos): Do nothing if POS doesn't specify
5818 a dpvec_index but the iterator has such a position.
5819
0245398f
GM
5820 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
5821
aba25348
GM
5822 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
5823 x/y position is (0, 0) after destroying the menu bar, restore
5824 its original position.
5825
4bde0ebb
GM
5826 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
5827 (init_from_display_pos): Use it.
5828 (try_window_reusing_current_matrix): Don't use cursor_row_p.
5829
8cdb267e
GM
58302001-03-26 Gerd Moellmann <gerd@gnu.org>
5831
5832 * xdisp.c (try_window_id): Undo last change.
5833
9948db79
EZ
58342001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
5835
5836 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
5837
5838 * buffer.c (syms_of_buffer): Doc fix.
5839
2eddf899
GM
58402001-03-26 Gerd Moellmann <gerd@gnu.org>
5841
5842 * xfaces.c (x_update_menu_appearance): Use local variable
5843 popup_path for setting font resources.
5844
6c145d35
EZ
58452001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
5846
6a65b1b5
EZ
5847 * frame.c (Fframe_list): Don't reference tip_frame if
5848 HAVE_WINDOW_SYSTEM is not defined.
5849
6c145d35
EZ
5850 * emacs.c (main): Update the copyright year. From Werner LEMBERG
5851 <wl@gnu.org>.
5852
d74c1900
GM
58532001-03-25 Gerd Moellmann <gerd@gnu.org>
5854
20fbd925
GM
5855 * xdisp.c (init_from_display_pos): Test invisible property
5856 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 5857
927c5b3b
GM
5858 * xdisp.c (redisplay_internal) <update one window>: Make sure
5859 last_arrow_position and last_arrow_string are set.
5860
d74c1900
GM
5861 * frame.c (Fframe_list): Don't return a tooltip frame.
5862
091f8878
GM
58632001-03-23 Gerd Moellmann <gerd@gnu.org>
5864
52283633
SM
5865 * xdisp.c (mark_window_display_accurate_1): New function,
5866 extracted from mark_window_display_accurate.
5867 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
5868 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
5869 (mark_window_display_accurate): Use it.
5870 (redisplay_internal): Use it for the selected window.
5871 (redisplay_internal): Avoid duplicate mark_window_display_accurate
5872 for the selected frame.
5873
ac90c44f
GM
5874 * xdisp.c Use make_number, for readability.
5875 (try_window_id): Disable rows below the window end.
5876 (try_window_reusing_current_matrix): Use cursor_row_p.
5877 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
5878 of rows.
5879 (init_from_display_pos): If POS specifies a position in a display
5880 vector, maybe get the iterator set up for that ellipsis.
43c09969 5881
091f8878
GM
5882 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
5883
991786dd
EZ
58842001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
5885
5886 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
5887
6c29b43c
GM
58882001-03-23 Gerd Moellmann <gerd@gnu.org>
5889
5890 * xfaces.c (x_update_menu_appearance): Use a different path
5891 for Lucid popup menus.
5892
d8731202
SM
58932001-03-22 Stefan Monnier <monnier@cs.yale.edu>
5894
5895 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
5896
5897 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
5898 (string_buffer_position): Use `make_number'.
5899
f61a541b
GM
59002001-03-22 Gerd Moellmann <gerd@gnu.org>
5901
3c9e997b
GM
5902 * xfaces.c (x_update_menu_appearance): Renamed from
5903 x_set_menu_face_resources. Use different resources for popups.
5904
5905 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
5906 (GC_CHECK_STRING_BYTES): Don't define.
5907
364cd450
GM
5908 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
5909 Removed, together with subroutines.
5910 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 5911 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 5912
d8731202
SM
5913 * dispextern.h (x_set_menu_resources_from_menu_face):
5914 Remove prototype.
364cd450 5915
d8731202 5916 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
5917 Remove calls to x_set_menu_resources_from_menu_face.
5918
d8731202
SM
5919 * xfaces.c (xm_set_menu_resources_from_menu_face):
5920 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
5921
5922 * xmenu.c: Include widget.h.
5923 (single_submenu): Return int. Some cleanup.
5924 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
5925
140330de
GM
59262001-03-21 Gerd Moellmann <gerd@gnu.org>
5927
5928 * xterm.c (x_update_window_end): Handle overwritten mouse face
5929 also for tool bar windows.
5930 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
5931 DRAW is DRAW_IMAGE_RAISED.
5932
1741905c
GM
59332001-03-20 Gerd Moellmann <gerd@gnu.org>
5934
fa88947e
GM
5935 * print.c (syms_of_print): Doc fixes.
5936
1741905c
GM
5937 * fns.c (Fmd5): Doc fix.
5938
ade0bee1
GM
59392001-03-19 Gerd Moellmann <gerd@gnu.org>
5940
357e7376
GM
5941 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5942 Clear area of the frame not occupied by the scroll bar.
5943
c2c097cc
GM
5944 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
5945 tip frame's root window buffer to *tip* right after creating
5946 the frame.
5947
ade0bee1
GM
5948 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
5949 is an integer don't have to be for space characters.
5950
88c6e37e
GM
59512001-03-16 Gerd Moellmann <gerd@gnu.org>
5952
52283633
SM
5953 * indent.c (current_column, current_column_1, Fmove_to_column)
5954 (compute_motion): Handle characters from display vectors differently.
88c6e37e 5955
c62eed76
KH
59562001-03-15 Kenichi Handa <handa@etl.go.jp>
5957
5958 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
5959 drawing glyph string.
5960
c899e7e6
GM
59612001-03-15 Gerd Moellmann <gerd@gnu.org>
5962
d0bbfc99
GM
5963 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
5964 (command_loop_1): Undo last change.
5965
03d1a189
GM
5966 * xterm.c (fast_find_position): Return the correct vpos.
5967
c899e7e6 5968 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 5969 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
5970 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
5971 Call store_symval_forwarding with BUF null.
5972 (set_internal): Call store_symval_forwarding with the BUF
5973 parameter passed to set_internal. Formerly, the value was always
5974 set in the current buffer; the buffer recorded in specbind for
5975 this case wasn't used.
5976 (arith_driver): Reindent.
5977
52283633
SM
5978 * buffer.c (swap_out_buffer_local_variables):
5979 Call store_symval_forwarding with BUF null.
c899e7e6
GM
5980
5981 * lisp.h (store_symval_forwarding): Change prototype.
5982
5983 * eval.c (specbind): Call store_symval_forwarding with BUF null.
5984
57ac7c81
GM
59852001-03-14 Gerd Moellmann <gerd@gnu.org>
5986
697617d9
GM
5987 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
5988 FOR_DELETION. Avoid resizing the mini-window of the selected
5989 frame if FOR_DELETION is set.
5990 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
5991 (Fmake_frame_invisible): Change calls to do_switch_frame for new
5992 signature.
5993
5994 * window.c (Fset_window_configuration): Change call to
5995 do_switch_frame to new format.
5996
5997 * keyboard.c (quit_throw_to_read_char): Change call to
5998 do_switch_frame to new format.
5999
6000 * lisp.h (do_switch_frame): Change prototype.
6001
819dce0f
GM
6002 * frame.c (Fframe_parameters): In the `buffer-list' frame
6003 parameter, store the buffer list of FRAME, not the list of the
6004 selected frame.
6005
57ac7c81
GM
6006 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
6007 box just because the glyph row's full_width_p flag is set.
6008
65008712
GM
60092001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
6010
6011 * xdisp.c (highlight_trailing_whitespace): On character terminals,
6012 skip the padding blanks inserted in extend_face_to_end_of_line,
6013 before checking for trailing whitespace.
6014
159cf431
GM
60152001-03-13 Gerd Moellmann <gerd@gnu.org>
6016
52283633 6017 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
6018 Remove special handling for LessTif/Motif.
6019 (toplevel): Don't include Xm/Xm.h.
6020
52283633
SM
6021 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
6022 Remove workaround code for LessTif; it doesn't work anymore.
6023
2564ea1b 6024 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 6025 Xm/ScrollBarP.h.
afcdc0a1 6026
52283633
SM
6027 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
6028 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
6029 contemporary LessTif.
6030
52283633
SM
6031 * xfaces.c (xm_set_menu_resources_from_menu_face):
6032 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 6033
159cf431
GM
6034 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
6035 removing button grabs.
6036
c6f7429a
KH
60372001-03-13 Kenichi Handa <handa@etl.go.jp>
6038
cb82d767
KH
6039 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
6040 and clip-large-size-font as obsolete.
6041
c6f7429a
KH
6042 * lread.c (read_multibyte): Check the validity of multibyte
6043 sequence. If invalid, return the first byte.
6044
760cefb5
GM
60452001-03-12 Gerd Moellmann <gerd@gnu.org>
6046
6047 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
6048 before running the command; timer functions or process
6049 filters may have set it.
6050
5141f9d0
EZ
60512001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
6052
6053 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
6054 Doc fix.
6055
b6a15240
GM
60562001-03-12 Gerd Moellmann <gerd@gnu.org>
6057
6058 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
6059 to sprintf.
6060
95522746
GM
60612001-03-09 Gerd Moellmann <gerd@gnu.org>
6062
db14cfc5
GM
6063 * dispextern.h (string_buffer_position): Add prototype.
6064
52283633 6065 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
6066 (single_display_prop_string_p): New functions.
6067
6068 * xterm.c (note_mouse_highlight): If there's no help-echo on
6069 a string, look at the buffer text ``under'' it.
6070
6071 * keyboard.c (make_lispy_event): Add string info to the event,
6072 analogous to what's done on mode lines.
6073 (read_key_sequence): For a click on a string, consider `local-map'
6074 and `keymap' of that string.
6075
52283633
SM
6076 * keyboard.c (make_lispy_event, make_lispy_movement):
6077 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
6078
6079 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
6080
6081 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
6082 POS; return void.
6083
95522746
GM
6084 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
6085 flags argument to emacs_open; it seems to conflict with O_EXCL.
6086
898a399d
KH
60872001-03-09 Kenichi Handa <handa@etl.go.jp>
6088
28cd4910
KH
6089 * composite.h (struct composition): Change types of members;
6090 glyph_len to unsigned, width to unsigned short.
898a399d 6091
4cdf6a6c
AI
60922001-03-08 Andrew Innes <andrewi@gnu.org>
6093
6094 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
6095 menu titles.
6096
129004d3
GM
60972001-03-08 Gerd Moellmann <gerd@gnu.org>
6098
221dd3e7
GM
6099 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
6100 instead of nil.
6101
52283633 6102 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
6103 help-echo in strings.
6104 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
6105 (fast_find_string_pos): New function.
6106
52283633
SM
6107 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
6108 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
6109
6110 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
6111 Handle `mouse-face'.
6112
6113 * dispextern.h (face_at_string_position): Change prototype.
6114
52283633 6115 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 6116
129004d3
GM
6117 * keyboard.c (make_lispy_event): Avoid generating drag events
6118 if the mouse hasn't actually moved to another buffer position.
52283633 6119
80c8ab8c
DL
61202001-03-08 Dave Love <fx@gnu.org>
6121
129004d3 6122 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 6123
989521fd
GM
61242001-03-08 Gerd Moellmann <gerd@gnu.org>
6125
6126 * process.c (Fset_process_window_size): Fix a typo.
6127
bb5c338d
KH
61282001-03-08 Kenichi Handa <handa@etl.go.jp>
6129
6130 * coding.c (detect_coding_sjis): Do more rigid check.
6131 (detect_coding_big5): Likewise.
6132 (decode_coding_sjis_big5): Likewise.
6133 (Fdetect_coding_region): Call detect_coding_system with tailing
6134 anchor byte `\0' for more rigid detection.
52283633 6135 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
6136 (Fdetect_coding_string): Likewise.
6137
8b8f9197
SM
61382001-03-07 Stefan Monnier <monnier@cs.yale.edu>
6139
6140 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
6141 a string before extracting its data.
6142
3bdf2660
GM
61432001-03-07 Gerd Moellmann <gerd@gnu.org>
6144
6145 * window.c (Frecenter): Rewrite code handling negative values
6146 of ARG on graphical frames.
6147
61482001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
6149
6150 * window.c (displayed_window_lines): If W->start is outside the
6151 accessible portion of the buffer, call start_display with BEGV or
6152 ZV instead of W->start.
6153
471f86b9
GM
61542001-03-07 Gerd Moellmann <gerd@gnu.org>
6155
2ab62c6c
GM
6156 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
6157
471f86b9
GM
6158 * process.c (Fset_process_filter): Don't crash if the input
6159 file descriptor of PROCESS is closed.
6160 (Fset_process_window_size): Likewise.
6161
101922c3
GM
61622001-03-06 Kenichi Handa <handa@etl.go.jp>
6163
6164 * xterm.c (XTflash): Make the timeout of select shorter, and call
6165 select repeatedly until the desired time expires.
6166
45d051a7
GM
61672001-03-06 Gerd Moellmann <gerd@gnu.org>
6168
6169 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
6170
6171 * xfns.c (Fx_create_frame): Clear Vwindow_list.
6172
6173 * lisp.h (Vwindow_list): Declare extern.
6174
8f372c46
EZ
61752001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
6176
6177 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
6178
f16a7aa5
GM
61792001-03-06 Gerd Moellmann <gerd@gnu.org>
6180
157ae273
GM
6181 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
6182 to detect a case where we have to highlight a different region
6183 despite not having left the currently highlighted region.
6184 Set mouse_face_overlay in the x_display_info.
45d051a7 6185 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
6186
6187 * xterm.h (struct x_display_info): Add mouse_face_overlay.
6188
6189 * buffer.c (mouse_face_overlay_overlaps): New function.
6190
6191 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
6192 (Qmouse_face): Declare extern.
6193
f16a7aa5
GM
6194 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
6195 if face_change_count is non-zero.
6196
827afcac
KH
61972001-03-06 Kenichi Handa <handa@etl.go.jp>
6198
6199 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
6200 that the source is unibyte.
6201
14c7242e
DL
62022001-03-05 Dave Love <fx@gnu.org>
6203
827afcac 6204 * xterm.c (XTmouse_position): Fix typo.
14c7242e 6205
c28b847b
GM
62062001-03-05 Gerd Moellmann <gerd@gnu.org>
6207
6208 * minibuf.c (read_minibuf): Clean up the binding stack if
6209 called noninteractively.
6210
b86644f2
KH
62112001-03-05 Kenichi Handa <handa@etl.go.jp>
6212
6213 * coding.c (syms_of_coding): Docstring modified.
6214
203682cc 62152001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
6216
6217 * charset.c (char_to_string): If a single byte char has modifier
6218 bits that can't be reflected to the character code, ignore them
45d051a7 6219 instead of signaling an error.
b86644f2 6220
e30bd7b7
EZ
62212001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
6222
6223 * s/msdos.h: Update copyright notice.
6224
6225 * dosfns.h: Update copyright notice.
6226
6227 * dosfns.c: Update copyright notice.
6228
6229 * msdos.c: Update copyright notice.
6230
b52b65bd
GM
62312001-03-02 Gerd Moellmann <gerd@gnu.org>
6232
6233 * xterm.c (glyph_rect): New function.
6234 (XTmouse_position): Use it to raise the threshold for mouse
6235 movement event generation.
6236
53c4b1e6
EZ
62372001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
6238
6239 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
6240 specifies (reverse . t), reverse the initial screen colors.
6241 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
6242 but we are reversing the colors, set bg_set, not fg_set.
6243 Likewise for setting background-color and reversing: set fg_set.
6244 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
6245 in effect.
6246
6247 * xfaces.c (Finternal_set_lisp_face_attribute)
6248 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
6249 parameters alist.
6250
f964b4d7
GM
62512001-03-02 Gerd Moellmann <gerd@gnu.org>
6252
ef53d75e
GM
6253 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
6254 to a single slash in the middle of file names.
6255
52283633 6256 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
6257 Accept only alphanumeric time zone names.
6258
f964b4d7
GM
6259 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
6260 or width area.
6261 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
6262 a widget to zero height.
52283633 6263
c3c45f65
GM
62642001-03-01 Gerd Moellmann <gerd@gnu.org>
6265
6266 * window.c (Fwindow_end): Call move_it_past_eol only if
6267 ending up on a partially visible line.
6268
028d739a
DL
62692001-03-01 Dave Love <fx@gnu.org>
6270
6271 * ccl.c (Fccl_execute): Doc fix.
6272
57c5889c
GM
62732001-03-01 Gerd Moellmann <gerd@gnu.org>
6274
35f59f6b
GM
6275 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
6276 of the tool bar before calling x_figure_window_size.
6277
f84ff02c
GM
6278 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
6279 NULL after destroying it, otherwise XTread_socket can access a
6280 destroyed widget when input is unblocked.
6281
8b8f9197 6282 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 6283
57c5889c
GM
6284 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
6285 same name as before, although there was a change in fontsets.
6286
224227d1
KR
62872001-02-28 Ken Raeburn <raeburn@gnu.org>
6288
4560730a
KR
6289 * lisp.h (Fframe_parameter): Declare.
6290
224227d1 6291 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 6292 Lisp_Object.
224227d1 6293
ece93c02
GM
62942001-02-28 Gerd Moellmann <gerd@gnu.org>
6295
11ef99b9
GM
6296 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
6297 NULL instead.
6298
6299 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
6300 NULL instead.
6301
ece93c02
GM
6302 * alloc.c (toplevel): Include process.h.
6303 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
6304 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
6305 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
6306 (allocate_vector, allocate_hash_table, allocate_window)
6307 (allocate_frame, allocate_process, allocate_other_vector):
6308 New functions.
ece93c02
GM
6309 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
6310 (mark_maybe_pointer): New function.
52283633 6311 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
6312 remain and not Lisp_Objects.
6313 (min_heap_address, max_heap_address): New variables.
6314 (mem_find): Return MEM_NIL if START is below min_heap_address or
6315 above max_heap_address.
6316 (mem_insert): Compute min_heap_address and max_heap_address.
6317
6318 * process.c (make_process): Use allocate_process.
6319
6320 * frame.c (make_frame): Use allocate_frame.
6321
6322 * window.c (make_window, make_dummy_parent): Use allocate_window.
6323 (Fcurrent_window_configuration): Use allocate_other_vector.
6324
6325 * lisp.h (allocate_vectorlike): Remove prototype.
6326 (allocate_vector, allocate_other_vector, allocate_frame)
6327 (allocate_window, allocate_process, allocate_hash_table):
6328 Add prototypes.
6329
6330 * fns.c (Fdelete, larger_vector): Use allocate_vector.
6331 (make_hash_table, copy_hash_table): Use allocate_hash_table.
6332
063af457
KH
63332001-02-27 Kenichi Handa <handa@etl.go.jp>
6334
6335 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
6336 treat the produced bytes as a valid multibyte sequence.
6337
6338 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
6339 (ccl_driver) <CCL_WriteMultibyteChar2>:
6340 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
6341 <ccl_finish>: Set ccl->eight_bit_control properly.
6342
6343 * ccl.h (struct ccl_program): New member eight_bit_control.
6344
f58c6494
SM
63452001-02-26 Stefan Monnier <monnier@cs.yale.edu>
6346
6347 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
6348 accessible_keymaps_char_table.
6349 (accessible_keymaps_char_table): Obey `is_metized'.
6350 (where_is_internal, Fwhere_is_internal): Don't confuse int and
6351 Lisp_Object.
6352
c596c392
GM
63532001-02-26 Gerd Moellmann <gerd@gnu.org>
6354
6355 * dispnew.c: Check HAVE_TERM_H before including term.h.
6356
425de386
AI
63572001-02-24 Andrew Innes <andrewi@gnu.org>
6358
6359 * makefile.w32-in: Update copyright notice.
6360
2ba11bbd
SM
63612001-02-24 Stefan Monnier <monnier@cs.yale.edu>
6362
6363 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
6364
66c56ed1
KH
63652001-02-24 Kenichi Handa <handa@etl.go.jp>
6366
4c1593ce
KH
6367 * Makefile.in (lisp): Add international/utf-8.elc.
6368
66c56ed1
KH
6369 * fontset.c (Fnew_fontset): Fix handling of the case that an
6370 element of FONTLIST is a cons of family and registry.
6371
796ead7e
JR
63722001-02-23 Jason Rumney <jasonr@gnu.org>
6373
6374 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
6375 to height unconditionally.
6376
6377 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 6378 background face to the end of the drawing area in the text area, only.
796ead7e
JR
6379 (x_insert_glyphs): Call window_box_left to obtain the left
6380 x-coordinate of the area to shift.
6381
6382 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
6383 safe_run_hooks.
6384
f6839838
AI
63852001-02-22 Andrew Innes <andrewi@gnu.org>
6386
52283633 6387 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
6388 ($(BLD)\dispnew.obj):
6389 ($(BLD)\editfns.obj):
6390 ($(BLD)\fileio.obj):
6391 ($(BLD)\filelock.obj):
6392 ($(BLD)\keyboard.obj):
6393 ($(BLD)\w32proc.obj):
6394 ($(BLD)\process.obj):
6395 ($(BLD)\sysdep.obj): Ditto.
6396
6397 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
6398 header files.
52283633
SM
6399 ($(BLD)/dispnew.$(O)):
6400 ($(BLD)/editfns.$(O)):
6401 ($(BLD)/fileio.$(O)):
6402 ($(BLD)/filelock.$(O)):
6403 ($(BLD)/keyboard.$(O)):
6404 ($(BLD)/w32proc.$(O)):
6405 ($(BLD)/process.$(O)):
f6839838
AI
6406 ($(BLD)/sysdep.$(O)): Ditto.
6407
c224f70b
GM
64082001-02-22 Gerd Moellmann <gerd@gnu.org>
6409
51695746
GM
6410 * xdisp.c (forward_to_next_line_start): When taking the shortcut
6411 at the start of the function, check that the \n in it->c is
6412 from the iterator's current position.
52283633 6413
a61b7058
GM
6414 * xdisp.c (handle_single_display_prop): Add parameter
6415 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
6416 properties which replace the display of text with something else.
6417 (handle_display_prop): Call handle_single_display_prop with
6418 additional argument saying if we already replaced text display
6419 with something else. Use AREF.
52283633 6420 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
6421 (decode_mode_spec_coding): Use AREF and ASIZE.
6422
3473f362
GM
6423 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
6424 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
6425 * vmstime.h: Files removed.
52283633 6426
2bb58df3
GM
6427 * unexencap.c, unexfx2800.c: Files removed.
6428
c224f70b
GM
6429 * dispnew.c (direct_output_for_insert): Give up if we are showing
6430 a message or just cleared the message because we might need to
6431 resize the echo area window or display an empty echo area.
6432
ffc9ff0c
GM
64332001-02-21 Gerd Moellmann <gerd@gnu.org>
6434
0528abe1
GM
6435 * xdisp.c (redisplay_internal): Do the
6436 mark_window_display_accurate after all windows have been
6437 redisplayed because this call resets flags in buffers which are
6438 needed for proper redisplay.
6439
52283633
SM
6440 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
6441 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
6442 the old names.
6443
52283633
SM
6444 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
6445 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
6446
6447 * msdos.h (struct x_output): Rename busy_window to
6448 hourglass_window, busy_p to hourglass_p.
6449
52283633
SM
6450 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
6451 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
6452
6453 * xfns.c: Rename everything containing *busy_cursor* and similar
6454 to *hourglass*.
6455 (syms_of_w32fns): Rename x-busy-pointer-shape to
6456 x-hourglass-pointer-shape, display-busy-cursor to
6457 display-hourglass, busy-cursor-delay to hourglass-delay.
6458
6459 * w32fns.c: Rename everything containing *busy_cursor* and similar
6460 to *hourglass*.
6461 (syms_of_w32fns): Rename x-busy-pointer-shape to
6462 x-hourglass-pointer-shape, display-busy-cursor to
6463 display-hourglass, busy-cursor-delay to hourglass-delay.
6464
6465 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
6466 of its busy_p flag.
6467
6468 * dispextern.h (start_hourglass, cancel_hourglass)
6469 (display_hourglass_p): Renamed from *busy_cursor*.
6470
ab2c5f0a
GM
64712001-02-20 Gerd Moellmann <gerd@gnu.org>
6472
d17e49a8
GM
6473 * keyboard.c (read_char): When an event from unread-command-events
6474 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
6475
fa97adf6
GM
6476 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
6477 equal to the current buffer.
6478
ab2c5f0a
GM
6479 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
6480 nil, otherwise we're left with truncate_lines t when a message
6481 is printed with message-truncate-lines bound to t.
6482
aeac019e
GM
64832001-02-19 Gerd Moellmann <gerd@gnu.org>
6484
c8bc6f65
GM
6485 * window.c (Fmove_to_window_line): Undo last change.
6486 (displayed_window_lines): Call line_bottom_y to determine
6487 the line's bottom position.
6488
6489 * dispextern.h (line_bottom_y): Add prototype.
6490
52283633 6491 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
6492 (pos_visible_p): Use it.
6493
980a2d69
GM
6494 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
6495 set redisplaying_p to 0 here instead of in Frecursive_edit.
6496 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
6497 set redisplaying_p.
6498
52283633 6499 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
6500 New variables.
6501 (syms_of_xdisp): Initialize new variables.
6502 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
6503 Specbind `inhibit-menubar-update' when updating the menu bar.
6504
65048e97
GM
6505 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
6506 safe_run_hooks.
6507
6508 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
6509 safe_run_hooks.
6510
a57c4026
GM
6511 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
6512 is null.
6513
aeac019e
GM
6514 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
6515 to the start of the file.
6516
76846b31
GM
65172001-02-16 Gerd Moellmann <gerd@gnu.org>
6518
f3f053f3 6519 * window.c (set_window_buffer): Fix last change.
52283633 6520
f3f053f3
GM
6521 * window.c (set_window_buffer): Set window's vscroll to 0.
6522
dad75588
GM
6523 * window.c (coordinates_in_window): Increase width of area
6524 where the vertical line can be dragged.
6525
c220b753
GM
6526 * xterm.c (x_set_glyph_string_background_width): Extend the
6527 background face to the end of the drawing area in the text
6528 area, only.
6529
c56b1c1b
GM
6530 * xdisp.c (handle_single_display_prop): Set iterator's position
6531 to where the `display' property starts, like for images.
6532 (dump_glyph): New function.
6533 (dump_glyph_row): Use it. Dump info about marginal areas.
6534
6535 * dispnew.c (direct_output_for_insert): Recognize more cases where
6536 glyphs can be written instead of being inserted.
6537
6538 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
6539 the left x-coordinate of the area to shift.
6540
76846b31
GM
6541 * dired.c (directory_files_internal): Set result list to nil
6542 before retrying.
6543
0fc71a77
KH
65442001-02-15 Kenichi Handa <handa@etl.go.jp>
6545
6546 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
6547 invalid multibyte sequence, treat *SRC as a character of
6548 eight-bit-graphic.
6549
25078b54
EZ
65502001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
6551
6552 * textprop.c (Fset_text_properties): Doc fix.
6553
8399f8a0
GM
65542001-02-15 Gerd Moellmann <gerd@gnu.org>
6555
6556 * dispnew.c (update_text_area): Undo change of 2001-01-12.
6557
9a2a6f73
DL
65582001-02-14 Dave Love <fx@gnu.org>
6559
6560 * coding.c: Doc and message fixes.
6561
bf853fee
AI
65622001-02-14 Andrew Innes <andrewi@gnu.org>
6563
6564 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
6565 Emacs frame above the screen size.
6566
78c663d8
GM
65672001-02-14 Gerd Moellmann <gerd@gnu.org>
6568
6569 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
6570
7cc9f69f
GM
65712001-02-13 Gerd Moellmann <gerd@gnu.org>
6572
0a411995
GM
6573 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
6574 case that TO ends up beyond ZV after running before-change-functions.
6575
5ddc1b75
GM
6576 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
6577 the selected window if it is showing the buffer in question.
6578
7cc9f69f
GM
6579 * dired.c (directory_files_internal): Initialize errno.
6580 (toplevel): Include errno.h.
6581
2e6621ca
GM
65822001-02-13 Kenichi Handa <handa@etl.go.jp>
6583
6584 * xfaces.c (best_matching_font): New parameter width_ratio.
6585 Multiply avgwidth by width_ratio.
6586 (choose_face_font): Call best_matching_font with width_ratio
6587 calculated from the column width of C.
6588
60222d69
AI
65892001-02-12 Andrew Innes <andrewi@gnu.org>
6590
6591 The following changes are to draw box lines inside characters area
6592 if line-width is negative.
52283633 6593
60222d69
AI
6594 * w32term.c (x_produce_image_glyph): Pay attention to the case that
6595 face->box_line_width is negative.
6596 (x_produce_stretch_glyph): Likewise.
6597 (x_produce_glyphs): Likewise.
6598 (x_estimate_mode_line_height): Likewise.
6599 (x_draw_glyph_string_background): Likewise.
6600 (x_draw_glyph_string_foreground): Likewise.
6601 (x_draw_composite_glyph_string_foreground): Likewise.
6602 (x_draw_glyph_string_box): Likewise.
6603 (x_draw_image_foreground): Likewise.
6604 (x_draw_image_relief): Likewise.
6605 (x_draw_image_foreground_1): Likewise.
6606 (x_draw_image_glyph_string): Likewise.
6607
9804b846
KH
66082001-02-09 Kenichi Handa <handa@etl.go.jp>
6609
6610 The following changes are to draw box lines inside characters area
6611 if line-width is negative.
52283633 6612
9804b846
KH
6613 * xterm.c (x_produce_image_glyph): Pay attention to the case that
6614 face->box_line_width is negative.
6615 (x_produce_stretch_glyph): Likewise.
6616 (x_produce_glyphs): Likewise.
6617 (x_estimate_mode_line_height): Likewise.
6618 (x_draw_glyph_string_background): Likewise.
6619 (x_draw_glyph_string_foreground): Likewise.
6620 (x_draw_composite_glyph_string_foreground): Likewise.
6621 (x_draw_glyph_string_box): Likewise.
6622 (x_draw_image_foreground): Likewise.
6623 (x_draw_image_relief): Likewise.
6624 (x_draw_image_foreground_1): Likewise.
6625 (x_draw_image_glyph_string): Likewise.
6626
6627 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
6628 and :line-width can be negative.
52283633 6629 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 6630
49be9f70
JR
66312001-02-09 Jason Rumney <jasonr@gnu.org>
6632
6633 * w32term.c (w32_encode_char): Treat eight bit graphic and control
6634 characters the same as ASCII and latin-1.
6635 (x_display_and_set_cursor): Check for the focus frame's selected
6636 window instead of selected_window.
6637 (x_after_update_window_line): Don't clear if frame's internal
6638 border width is zero.
6639 (x_new_font): Don't change a tooltip's size.
6640 (w32_initialize): Set char_ins_del_ok to 1.
6641
6642 * w32fns.c (Fx_show_tip): Fix calls to make_number.
6643 (x_set_font): If font hasn't changed, avoid recomputing
6644 faces and other things.
52283633
SM
6645 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
6646 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
6647 (x_create_tip_frame): Prevent changing the tooltip's
6648 background color by specifying a color for the default font
6649 in .Xdefaults.
6650 (Qcancel_timer): New variable.
6651 (syms_of_w32fns): Initialize and staticpro it.
6652 (Fx_hide_tip, Fx_show_tip): Use it.
6653 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6654 the timer.
6655 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
6656
6657 * w32.c (init_environment): Duplicate local string before putenv.
6658
555e35d2
SZ
66592001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
6660
6661 * charset.c (Fstring): A typo.
6662
19c92c94
KH
66632001-02-09 Kenichi Handa <handa@etl.go.jp>
6664
e47a1c33
KH
6665 * charset.c (Fstring): If all arguments are less than 256, return
6666 a unibyte string.
6667
6668 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
6669 return a unibyte string.
6670
19c92c94
KH
6671 * coding.c (code_convert_region): After detecting a coding, if
6672 nothing found, set coding->composing to COMPOSITION_NO.
6673 (decode_coding_string): Likewise.
6674
d8e675f5
SM
66752001-02-08 Stefan Monnier <monnier@cs.yale.edu>
6676
6677 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
6678 to avoid overflow.
6679
bd503487
KH
66802001-02-07 Kenichi Handa <handa@etl.go.jp>
6681
6682 * charset.c (parse_str_to_multibyte): New function.
6683
6684 * charset.h (parse_str_to_multibyte): Extern it.
6685
6686 * print.c (print_string): If we are going to print a unibyte
6687 string into a multibyte buffer, convert the string to multibyte by
6688 str_to_multibyte.
6689
a8370d72
AI
66902001-02-06 Andrew Innes <andrewi@gnu.org>
6691
6692 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
6693 been created. It seems we can get sent window messages such as
6694 WM_ERASEBKGND before we properly update a frame.
6695
c363a1d6
GM
66962001-02-06 Gerd Moellmann <gerd@gnu.org>
6697
6698 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
6699 Avoid some unnecessary cursor positioning.
6700
a08332c0
GM
67012001-02-05 Gerd Moellmann <gerd@gnu.org>
6702
52283633 6703 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
6704 (LFACE_AVGWIDTH): New macro.
6705 (LFACEP): Use AREF.
6706 (check_lface_attrs): Check LFACE_AVGWIDTH.
6707 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
6708 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
6709 (merge_face_vectors): Check LFACE_AVGWIDTH.
6710 (Finternal_make_lisp_face): Use AREF.
6711 (xm_set_menu_resources_from_menu_face)
6712 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
6713 (Finternal_lisp_face_empty_p): Use AREF.
6714 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
6715 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
6716 Compare average widths..
6717 (best_matching_font): Arrange for comparing average widths.
6718
52283633
SM
6719 * dispextern.h (enum lface_attribute_index):
6720 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
6721
5cb3c8d4
DL
67222001-02-05 Dave Love <fx@gnu.org>
6723
6724 * puresize.h: Revert last change following loadup.el change.
6725
193fba87
AI
67262001-02-05 Andrew Innes <andrewi@gnu.org>
6727
6728 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
6729 invocation of temacs, to work with Windows 2000.
6730 (bootstrap-emacs): Ditto.
6731
e16f52ce
GM
67322001-02-05 Gerd Moellmann <gerd@gnu.org>
6733
7a58ab59
GM
6734 * xterm.c (x_display_and_set_cursor): Check for the focus
6735 frame's selected window instead of selected_window.
6736
e89aaabd
GM
6737 * xdisp.c (try_scrolling): If point is in the line below the
6738 window, make sure to move the iterator at least a canonical
6739 char height down.
6740
52283633 6741 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 6742
789ce875
KH
67432001-02-05 Kenichi Handa <handa@etl.go.jp>
6744
52283633
SM
6745 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
6746 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
6747 (ccl_driver): If the CCL program is terminated because of
6748 CCL_STAT_INVALID_CMD, copy the remaining source data to the
6749 destination instead of throwing them away.
6750
20b28f82
GM
67512001-02-02 Gerd Moellmann <gerd@gnu.org>
6752
79fb38c0
GM
6753 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
6754 faces and other things.
6755
20b28f82
GM
6756 * xdisp.c (get_next_display_element): Fix case of empty
6757 display table entry.
6758
5a72551e
EZ
67592001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
6760
eb24d0bf
EZ
6761 * editfns.c (Fconstrain_to_field): Doc fix.
6762
6a3f48c7
EZ
6763 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
6764 into `thoroughly', to make it consistent with the doc string.
6765
5a72551e
EZ
6766 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
6767
01acdb05
GM
67682001-02-01 Gerd Moellmann <gerd@gnu.org>
6769
0353b28f
GM
6770 * search.c (search_buffer): Call set_search_regs with a byte
6771 position, not a character position.
6772
01acdb05
GM
6773 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
6774 minibuffer-only,
6775
e86b5133
EZ
67762001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
6777
6778 * frame.c (Fmodify_frame_parameters): Doc fix.
6779
7442878f
GM
67802001-01-31 Gerd Moellmann <gerd@gnu.org>
6781
01acdb05
GM
6782 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
6783 identifier which is not reserved by Standard C.
52283633 6784
7442878f
GM
6785 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
6786
6787 * window.c (enum window_part): New enumeration.
6788 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
6789 Qright_bitmap_area.
6790 (coordinates_in_window): Return an enumerator from enum
6791 window_part. Fix handling of right scroll bar.
6792 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
6793 `right-fringe' instead of `left-bitmap-area' and
6794 `right-bitmap-area'. Use enumerators from enum window_part
6795 instead of hard-coded integers.
52283633
SM
6796 (check_window_containing, window_from_coordinates):
6797 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
6798 (syms_of_window): Replace Qleft_bitmap_area and
6799 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
6800
7c132cba
EZ
68012001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
6802
6803 * editfns.c (Fformat_time_string): Doc fix.
6804
c359dd9e
SM
68052001-01-31 Stefan Monnier <monnier@cs.yale.edu>
6806
6807 * keymap.c (Fwhere_is_internal): Use the first valid binding
6808 if no ascii binding is found (when firstonly is t).
6809
ce070307
GM
68102001-01-31 Gerd Moellmann <gerd@gnu.org>
6811
b4f30ec5
GM
6812 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
6813 instead of Finteractive_p.
6814
6815 * lisp.h (interactive_p): Add prototype.
6816
6817 * eval.c (interactive_p): New function.
6818 (Finteractive_p): Use it.
6819
ce070307
GM
6820 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
6821
f57b6e64
DL
68222001-01-31 Dave Love <fx@gnu.org>
6823
d61c7afe
DL
6824 * .gdbinit (hook-run): Define to run xreload.
6825
f57b6e64
DL
6826 * textprop.c (Fset_text_properties): Fix newline in doc string.
6827
eef93f99
GM
68282001-01-30 Gerd Moellmann <gerd@gnu.org>
6829
52283633
SM
6830 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
6831 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
6832
6833 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 6834 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
6835 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
6836
6837 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
6838 height.
6839
d9c1f6f9
DL
68402001-01-30 Dave Love <fx@gnu.org>
6841
6842 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
6843 AFTER_POTENTIAL_GC.
6844
e8f044a0
GM
68452001-01-29 Gerd Moellmann <gerd@gnu.org>
6846
52283633
SM
6847 * bytecode.c (Fbyte_code) <Bcurrent_column>:
6848 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 6849
8e1db7b3
EZ
68502001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
6851
6852 * textprop.c (Fset_text_properties): Doc fix.
6853
4eefd9d2
GM
68542001-01-29 Gerd Moellmann <gerd@gnu.org>
6855
6856 * xdisp.c (forward_to_next_line_start): Remove xassert.
6857
fccb8288
EZ
68582001-01-29 Jason Rumney <jasonr@gnu.org>
6859
4eefd9d2 6860 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
6861 returning without releasing it.
6862
76581eab
KH
68632001-01-29 Kenichi Handa <handa@etl.go.jp>
6864
6865 * w32fns.c (w32_font_match): Allocate three more bytes to regex
6866 for '^', '$', and '\0'.
6867
83a96b4d
AC
68682001-01-28 Andrew Choi <akochoi@i-cable.com>
6869
5604ec34
AC
6870 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
6871 regex for '^', '$', and '\0'.
6872
83a96b4d
AC
6873 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
6874 only if current_sblock has been initialized.
6875
6876 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
6877 terminal frame even if it is the only visible frame.
6878
c09a6440
KH
68792001-01-28 Kenichi Handa <handa@etl.go.jp>
6880
6881 * fontset.c (font_family_registry): Even if FONTNAME conform to
6882 XLFD, if it specifies other fields than family and registry,
52283633 6883 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 6884 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
6885 a signle byte character. Don't set FAMILY part to nil here.
6886 It is handled by the caller choose_face_font.
c09a6440
KH
6887 (Fnew_fontset): Call font_family_registry with FORCE 0.
6888 (Fset_fontset_font): Likewise.
6889
4dcd74e6
GM
68902001-01-27 Gerd Moellmann <gerd@gnu.org>
6891
6892 * xdisp.c (display_line): Don't treat a newline as fitting
6893 on the line.
6894
d2906bf8
GM
68952001-01-26 Gerd Moellmann <gerd@gnu.org>
6896
0130fe1a
GM
6897 * window.c (size_window): Set the window's orig_top to nil when
6898 changing heights, so that a future shrink_mini_window won't
6899 restore a bogus height.
6900
550f0e6a
GM
6901 * frame.c (do_switch_frame): If selected frame has a mini-window,
6902 resize that to exact size.
6903
b7b20fbd
GM
6904 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
6905
a47b7816
GM
6906 * xdisp.c (display_line): Simplify check for glyphs fitting
6907 entirely in the line.
6908
d2906bf8
GM
6909 * xfns.c (xic_style): New variable.
6910 (create_frame_xic): Move static variable to global scope for
550f0e6a 6911 the case that `static' gets defined away.
d2906bf8 6912
73df2b1e
KH
69132001-01-26 Kenichi Handa <handa@etl.go.jp>
6914
6915 * coding.c (decode_coding): Set a flag for inhibiting
6916 inconsistent eol.
6917 (code_convert_region): Always set saved_coding_symbol.
6918 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 6919 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 6920
6613cfc4
GM
69212001-01-25 Gerd Moellmann <gerd@gnu.org>
6922
c5e6e06b
GM
6923 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
6924 XClearArea.
6925
6926 * xterm.c (x_after_update_window_line): Don't clear if frame's
6927 internal border width is zero.
6928 (x_clear_area): New function.
6929 (x_after_update_window_line, x_clear_end_of_line)
6930 (x_scroll_bar_create, x_scroll_bar_set_handle)
6931 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
6932 instead of XClearArea.
6933
6934 * xterm.h (x_clear_area): Add prototype.
6935
6613cfc4
GM
6936 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
6937 which doesn't seem necessary anymore with Lesstif 0.92.
6938
650cc6cc
DL
69392001-01-25 Dave Love <fx@gnu.org>
6940
34ac3367
DL
6941 * puresize.h (BASE_PURESIZE): Up to 720000.
6942
650cc6cc
DL
6943 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
6944
5e37dc22
GM
69452001-01-25 Gerd Moellmann <gerd@gnu.org>
6946
e1e441f9
GM
6947 * xdisp.c (echo_area_display): Don't call redisplay_internal
6948 when Emacs is shutting down. We can't run hooks etc. that
6949 would be necessary to do a redisplay.
6950
5e37dc22
GM
6951 * lread.c (read_integer): Use type EMACS_INT instead of int.
6952
0fb94c7f
EZ
69532001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
6954
6955 * ccl.c (ccl_driver): Fix last change.
6956
e3778624
KH
69572001-01-25 Kenichi Handa <handa@etl.go.jp>
6958
6959 * ccl.h (sturct ccl_program): New member suppress_error.
6960
bb264518 6961 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
6962 insert error message to the output.
6963 (setup_ccl_program): Initialize ccl->suppress_error to 0.
6964
6965 * coding.h (struct coding_system): New member suppress_error.
6966
6967 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
6968 (Fset_terminal_coding_system_internal): Set the member
6969 suppress_error to 1.
6970 (Fset_safe_terminal_coding_system_internal): Likewise.
6971
245ed2b1
SM
69722001-01-24 Stefan Monnier <monnier@cs.yale.edu>
6973
6974 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
6975 as if it was a `charset'.
6976
f9aaedb6
GM
69772001-01-24 Gerd Moellmann <gerd@gnu.org>
6978
6979 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
6980 value in where_is_cache; the next lookup in the cache returns
6981 something bogus if we do.
6982
c3902c3e
EZ
69832001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6984
6985 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
6986 if HAVE_WINDOW_SYSTEM isn't defined.
6987
3497f73e
GM
69882001-01-24 Gerd Moellmann <gerd@gnu.org>
6989
e7e41584
GM
6990 * fns.c (sweep_weak_table): Fix code taking items out of
6991 the hash collision chain. Some cleanup.
6992
3497f73e
GM
6993 * xterm.c (x_new_font): Don't change a tooltip's size.
6994
6995 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
6996 background color by specifying a color for the default font
6997 in .Xdefaults.
6998
3d48e687
KH
69992001-01-24 Kenichi Handa <handa@etl.go.jp>
7000
96531b20
KH
7001 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
7002 a workaround for SunOS 4's cc.
7003 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
7004 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
7005 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
7006 statement.
3d48e687 7007
a30629d2
GM
70082001-01-23 Gerd Moellmann <gerd@gnu.org>
7009
7010 * xterm.c (x_set_window_size_1): New function extracted from
7011 x_set_window_size.
7012 (x_set_window_size): Use it.
7013 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
7014 doesn't have a widget, like tooltips.
7015
5a43decf
EZ
70162001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
7017
52283633 7018 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 7019
b0e98867
KH
70202001-01-23 Kenichi Handa <handa@etl.go.jp>
7021
7022 * fns.c (Fset_char_table_default): Fix to make sub char-table
7023 correctly.
7024
50606b4c
GM
70252001-01-22 Gerd Moellmann <gerd@gnu.org>
7026
cb2ddc53 7027 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
7028 a desired tool bar string, even if there are no tool bar items.
7029
57c28064
GM
7030 * xdisp.c (Ftool_bar_lines_needed): New function.
7031 (syms_of_xdisp): Defsubr it.
7032
50606b4c
GM
7033 * editfns.c (Fformat): Don't extend text properties from arguments
7034 to padding chars in the result.
7035
2f169c38
EZ
70362001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
7037
7038 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
7039
0f32f023
AI
70402001-01-20 Andrew Innes <andrewi@gnu.org>
7041
52283633 7042 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
7043 (w32_initialize): Don't set term hooks that aren't actually needed
7044 in windowed mode.
7045
7046 * xfaces.c (realize_default_face):
7047 (realize_face):
7048 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
7049
7050 * xdisp.c (handle_single_display_prop): Remove references to
7051 FRAME_W32_CONSOLE_P.
7052
52283633 7053 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
7054
7055 * frame.h (output_method): Remove output_w32_console method.
7056 (FRAME_W32_CONSOLE_P): Remove macro.
7057
7058 * frame.c (Qw32_console): Remove variable.
7059 (Fframep): Remove references to it.
7060 (syms_of_frame): Ditto.
7061 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
7062
7063 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
7064 redefinition.
7065
7173eada
KH
70662001-01-20 Kenichi Handa <handa@etl.go.jp>
7067
7068 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
7069
755b45ce
AI
70702001-01-19 Andrew Innes <andrewi@gnu.org>
7071
7072 * w32.c (init_environment): Add a version-independent site-lisp
7073 directory to EMACSLOADPATH, after the version dependent one.
7074
0a949811
GM
70752001-01-19 Gerd Moellmann <gerd@gnu.org>
7076
8501998a
GM
7077 * editfns.c (Fbuffer_substring): Doc fix.
7078
52283633
SM
7079 * xdisp.c (message_dolog, message2, message2_nolog):
7080 Rename parameter LEN to NBYTES.
0a949811 7081
e6ebcbbe
KH
70822001-01-19 Kenichi Handa <handa@etl.go.jp>
7083
200ecca2
KH
7084 * charset.c (strwidth): Use c_string_width.
7085 (c_string_width): New function.
7086 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
7087 Caller changed.
7088
7089 * charset.h (c_string_width, lisp_string_width): Extern them.
7090
52283633 7091 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 7092
e6ebcbbe
KH
7093 * indent.c (check_composition): Check validity of composition.
7094
200ecca2
KH
7095 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
7096 characters by calling c_string_width.
7097 (x_consider_frame_title): Get byte length of frame tile string
7098 correctly.
7099 (display_mode_element): Pay attention to width of non-ASCII
7100 characters by calling strwidth.
7101
8692ca92
GM
71022001-01-18 Gerd Moellmann <gerd@gnu.org>
7103
8962e303
GM
7104 * xfns.c (Qcancel_timer): New variable.
7105 (syms_of_xfns): Initialize and staticpro it.
7106 (Fx_hide_tip, Fx_show_tip): Use it.
7107 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
7108 the timer.
7109 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
7110
91523be9
GM
7111 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
7112
7113 * window.h (WINDOW_LIVE_P): New macro.
7114
b0b7ed0e
GM
7115 * window.c (window_size_fixed): New variable.
7116 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
7117 the doc string.
7118
06bccf8e
GM
7119 * eval.c (specbind): If binding a per-buffer variable which
7120 doesn't have a buffer-local value in the current buffer, change
7121 the global value by changing the value of the symbol bound in all
7122 buffers not having their own value, to make it consistent with
7123 what happens with other buffer-local variables.
7124
8692ca92
GM
7125 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
7126
7127 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
7128 when searching for a newline.
7129
bb3a3b50
KH
71302001-01-18 Kenichi Handa <handa@etl.go.jp>
7131
7132 * xdisp.c (display_string): Fix previous change.
7133
c2cc16fa
JR
71342001-01-18 Jason Rumney <jasonr@gnu.org>
7135
7136 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
7137 GLYPH_DEBUG is defined.
7138 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
7139 true for images with `:ascent 100'.
7140 (x_set_mouse_face_gc): If the last used mouse face has gone in the
7141 meantime, use face MOUSE_FACE_ID.
7142 If first glyph isn't a character glyph, use the ASCII NUL
7143 character to determine the face.
7144 (expose_area): Do not treat left margin specially.
7145 (note_mode_line_highlight): If no local_map, check global keymap.
7146 (note_mouse_highlight): Initialize overlay.
52283633 7147 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
7148 (show_scroll_bars): Remove unused function.
7149 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
7150 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
7151 Clip to row.
52283633 7152 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
7153 (x_free_frame_resources): Unload relief colors.
7154
9c11f79e
GM
71552001-01-17 Gerd Moellmann <gerd@gnu.org>
7156
3aec8722 7157 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
7158 get_next_display_element when the newline is already found.
7159 This may change the iterator's position, when its current position is
3aec8722
GM
7160 equal to the iterator's stop_charpos.
7161
f3ffc2c3
GM
7162 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
7163 zero, use this method only at the end of a line.
7164
52283633 7165 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
7166 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
7167 if SCALABLE_FONTS_P is set.
52283633 7168
d26d6fd9
GM
7169 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
7170 so that scalable fonts are included.
7171
9c11f79e
GM
7172 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
7173 In the cache, use a key containing the information if scalable
7174 fonts are included.
7175 (x_load_font): Adapt to change of keys in the font cache.
7176
71772001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 7178
d26d6fd9
GM
7179 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
7180 XListFonts to take advantage of font caching.
7181
9c11f79e
GM
7182 * xterm.c (x_list_fonts): Ensure caching font information when
7183 called for a null frame, which is the case frequently when Emacs
7184 starts.
7185
51446987
GM
71862001-01-17 Gerd Moellmann <gerd@gnu.org>
7187
f864120f
GM
7188 * xfns.c (QCconversion): Replaces QCalgorithm.
7189
7190 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
7191
7192 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
7193 of :algorithm.
52283633 7194
e37d1417
GM
7195 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
7196 not everything could be displayed.
7197
51446987
GM
7198 * line.h, x-list-font.c: Files removed because unused.
7199
9ad4f3e5
AI
72002001-01-17 Andrew Innes <andrewi@gnu.org>
7201
7202 * dired.c (directory_files_internal): Convert result from readdir
7203 to a unibyte string initially, to avoid possible misinterpretation
7204 of some bytes as the internal form of Emacs characters.
7205
2eda09b5
KH
72062001-01-17 Kenichi Handa <handa@etl.go.jp>
7207
7208 * fns.c (concat): Be sure to avoid putting the same `composition'
7209 property on the adjacent regions.
7210
826f3788
GM
72112001-01-16 Gerd Moellmann <gerd@gnu.org>
7212
52283633 7213 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
7214 (Fscroll_right, Fscroll_left): Set it here instead, if called
7215 interactively.
7216
d57b83b3
GM
7217 * buffer.c (Fset_buffer_modified_p): Set buffer's
7218 prevent_redisplay_optimizations_p flag.
7219
826f3788 7220 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
7221 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
7222 with additional arg.
7223
7224 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
7225 Change prototype.
826f3788 7226
826f3788
GM
7227 * xdisp.c (redisplay_preserve_echo_area): Add parameter
7228 FROM_WHERE, for debugging.
7229
261d788b
KH
72302001-01-16 Kenichi Handa <handa@etl.go.jp>
7231
7232 * ccl.c (Fregister_ccl_program): Handle the return value of
7233 resolve_symbol_ccl_program correctly.
52283633 7234 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 7235
bccee4f2
GM
72362001-01-15 Gerd Moellmann <gerd@gnu.org>
7237
e4ded23c
GM
7238 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
7239 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
7240
7241 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
7242 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
7243 the display; we didn't open it.
7244
bccee4f2
GM
7245 * dispnew.c (save_or_restore_current_matrices): Function removed.
7246 (save_current_matrix, restore_current_matrix): New functions.
7247 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
7248 restore the frame's current matrix. Due to the glyph pointer
7249 setup done in adjust_glyph_matrix, there is no easy way to make
7250 saving the current matrix in the desired matrix generally correct,
7251 so don't try it.
7252
ebeccffa
KH
72532001-01-15 Kenichi Handa <handa@etl.go.jp>
7254
7255 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
7256 truncation glyphs.
7257 (display_line): Optimize for wide characters.
e4ded23c 7258 (display_string): Don't try to display a multi-column character
ebeccffa
KH
7259 partially. On ttys, produce more than one truncation glyph for
7260 multi-column characters that don't fit on the line.
7261
64388126
KH
72622001-01-13 Kenichi Handa <handa@etl.go.jp>
7263
52283633
SM
7264 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
7265 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 7266
8edb0a6f
JR
72672001-01-13 Jason Rumney <jasonr@gnu.org>
7268
7269 * w32fns.c (Fimage_size, image_ascent, lookup_image)
7270 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
7271 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7272 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 7273
52283633
SM
7274 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
7275 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
7276 (x_draw_image_glyph_string): Adapt to change of image margins.
7277
7278 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
7279 variables.
7280
7281 * w32bdf.c (search_file_line, get_cached_font_char)
7282 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
7283
7284 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
7285
7286 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
7287 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
7288 (Fw32_send_sys_command): Remove unused variables.
7289 (w32_msg_pump): Add parentheses.
7290
7291 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
7292 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
7293 Add parentheses.
7294
4956d1ef
GM
72952001-01-12 Gerd Moellmann <gerd@gnu.org>
7296
b30623be
GM
7297 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
7298 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
7299 being a pair of margins.
7300 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
7301 to DEFVAR_LISP. Extend doc.
7302
7303 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
7304 margins.
7305 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
7306 pair of integers `(X . Y)', use X for the horizontal and Y for the
7307 vertical margin.
7308 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
7309 (parse_image_spec): Check it.
52283633
SM
7310 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7311 (tiff_format, gif_format, gs_format):
7312 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 7313
52283633
SM
7314 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
7315 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
7316 (x_draw_image_glyph_string): Adapt to the change of image margins.
7317
7318 * dispextern.h (struct image): Replace member `margin' with
7319 `hmargin' and `vmargin'.
7320
4554cc79
GM
7321 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
7322 and GLYPHS.
7323
7324 * dispnew.c (update_text_area): Put code which decrements the
7325 stop position when the row's face extends to the end of the
3bffc665 7326 line in #if 0.
4554cc79 7327
3cccce8d
GM
7328 * xfns.c (x_set_mouse_color): Fix color allocation.
7329
4956d1ef
GM
7330 * keyboard.c: Call get_local_map with new argument list.
7331
7332 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
7333
7334 * intervals.h (enum map_property): Removed.
7335 (get_local_map): Change prototype.
7336
7337 * keymap.c: Call get_local_map with new argument list.
7338 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
7339
2c2ff7f2
GM
73402001-01-11 Gerd Moellmann <gerd@gnu.org>
7341
a23887b9
GM
7342 * xdisp.c (build_desired_tool_bar_string): Correct the computation
7343 of the size needed for the tool bar string. For the last image,
7344 use a `display' property that reaches to the end of the string.
7345
a7ee2d2e
GM
7346 * xselect.c (selection_request_dpyinfo): New variable.
7347 (x_handle_selection_request): Set it.
7348 (x_selection_request_lisp_error): Don't call
7349 x_decline_selection_request if selection request's display has
7350 been closed.
7351
52283633
SM
7352 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
7353 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 7354
457b792c
GM
73552001-01-10 Dave Love <fx@gnu.org>
7356
7357 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
7358 ${SOME_MACHINE_LISP}, not ${lisp}.
7359
c1efd260
GM
73602001-01-10 Gerd Moellmann <gerd@gnu.org>
7361
52283633
SM
7362 * xdisp.c (display_line): On ttys, produce more than one truncation
7363 glyph for multi-column characters that don't fit on the line.
a98b5ed9 7364
ac95a621
GM
7365 * xselect.c (x_reply_selection_request): Add a comment.
7366
c1efd260
GM
7367 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
7368 XkbGetNames instead of XkbGetKeyboard.
7369
1bfb1345
DL
73702001-01-10 Dave Love <fx@gnu.org>
7371
7372 * sysdep.c (random): Revert the declaration.
7373
38119822
GM
73742001-01-09 Gerd Moellmann <gerd@gnu.org>
7375
52283633
SM
7376 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
7377 Call function string_bytes.
35f464a7
GM
7378 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
7379
7380 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
7381 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
7382 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
7383 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
7384 the current sblock.
7385 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
7386 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
7387 after sweeping strings, and at the end.
7388 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
7389
38119822
GM
7390 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
7391 ensure that pop_message is called.
7392
7393 * keyboard.c (Fexecute_extended_command): Use a
7394 record_unwind_protect to ensure that pop_message is called.
7395
7396 * lisp.h (push_message_unwind): Add prototype.
7397
7398 * xdisp.c (push_message_unwind): New function.
7399
7400 * fileio.c (do_auto_save_unwind): Do the pop_message here
7401 instead of in Fdo_auto_save.
7402 (Fdo_auto_save): Don't call pop_message.
7403
f47a9ec4
KR
74042001-01-08 Ken Raeburn <raeburn@gnu.org>
7405
7406 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
7407 in inner block.
7408
a758f97d
GM
74092001-01-08 Gerd Moellmann <gerd@gnu.org>
7410
6d0afc03
GM
7411 * window.c (window_scroll_pixel_based): Adjust glyph matrices
7412 when increasing window's vscroll.
7413
a758f97d
GM
7414 * macros.c (Qkbd_macro_termination_hook): New variable.
7415 (syms_of_macros): Initialize and staticpro it.
7416 (pop_kbd_macro): Run kbd-macro-termination-hook.
7417
7418 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
7419
1bfb1345 74202001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
7421
7422 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
7423 arglist, for documentation's sake.
7424
0dac6924
AI
74252001-01-06 Andrew Innes <andrewi@gnu.org>
7426
7427 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
7428 of *.pdb.
7429
8182406a
AI
74302001-01-05 Andrew Innes <andrewi@gnu.org>
7431
7432 * term.c (update_end): Don't check updating_frame; for some reason
7433 this can be 0 sometimes, such as after dismissing a popup menu,
7434 and isn't necessary given the explicit frame argument.
7435
3828218c
GM
74362001-01-05 Gerd Moellmann <gerd@gnu.org>
7437
7438 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
7439 on some systems, and an unsigned long on others, like FreeBSD 4.1.
7440
2f5ded21
GM
74412001-01-04 Gerd Moellmann <gerd@gnu.org>
7442
52283633 7443 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
7444
7445 * xfns.c (x_create_tip_frame): Preserve the value of
7446 face_change_count around the creation of the tip frame.
52283633 7447
2f5ded21
GM
7448 * xfns.c (last_show_tip_args): New variable.
7449 (compute_tip_xy): New function.
7450 (Fx_show_tip): Reuse an existing tip frame, if possible.
7451 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
7452
dfad65fa
DL
74532001-01-04 Dave Love <fx@gnu.org>
7454
64d4ec0f
DL
7455 * editfns.c (Fformat): Doc fix.
7456
dfad65fa
DL
7457 * systime.h (set_file_times): Prototype.
7458
7459 * widget.h (EmacsFrameSetCharSize_): Prototype.
7460
7461 * sysdep.c (random, srandom): Declare explicitly.
7462
7463 * dispextern.h (move_it_vertically_backward): Declare.
7464
85fe3b5e
GM
74652001-01-04 Gerd Moellmann <gerd@gnu.org>
7466
0f2ac578
GM
7467 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
7468 like in Fx_create_frame.
7469
482cca61
GM
7470 * xfaces.c (set_font_frame_param): Don't do anything for
7471 non-graphical frames.
7472
85fe3b5e
GM
7473 * window.c (Fdelete_other_windows): Set window's window_end_valid
7474 to nil when changing the window's start. Don't change the
7475 window's start when its top position hasn't changed. If we do,
7476 this will set the window's optional_new_start, which act's like a
7477 force_start during redisplay with C-x 1 M-> under particular
7478 circumstances (see report from Per Starback to emacs-pretest-bug
7479 from 2000-12-13.).
7480
3e99d3b4
GM
74812001-01-03 Gerd Moellmann <gerd@gnu.org>
7482
a77dc1ec
GM
7483 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
7484 short cut at the start of the function. Add an assertion.
7485 (reseat_at_next_visible_line_start): Add an assertion.
7486
2f3cad6c
GM
7487 * window.c (Frecenter): When changing the window start, set the
7488 window's window_end_valid to nil.
7489 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
7490
7491 * dispextern.h (move_it_past_eol): Add prototype.
7492
7493 * xdisp.c (move_it_past_eol): New function.
7494
3e99d3b4
GM
7495 * window.c (Fwindow_end): Doc fix.
7496
74972001-01-03 Dave Love <fx@gnu.org>
7498
52283633 7499 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 7500
bafb434c
GM
75012001-01-03 Gerd Moellmann <gerd@gnu.org>
7502
7503 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
7504 the enabled_p flag of the glyph row at window_end_vpos to 0.
7505 (handle_single_display_prop): Fix last change.
7506
5297fb00
RS
75072001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7508
7509 * window.c (Frecenter): Doc fix.
7510
13d6a61c
AI
75112001-01-02 Andrew Innes <andrewi@gnu.org>
7512
7513 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
7514
7515 * frame.h (output_method): Add output_w32_console method.
7516 (FRAME_W32_CONSOLE_P): New macro.
7517
7518 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
7519 use output_w32_console method.
7520 (Qw32_console): New Lisp_Object.
7521 (Fframep): Return it.
7522 (syms_of_frame): Init it.
52283633 7523 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
7524
7525 * xfaces.c (realize_default_face): Set face foreground and
7526 background to unspecified for w32_console frames.
7527 (realize_face): Realize face cache for w32_console frames.
7528 (realize_tty_face): Accept w32_console frames.
7529
52283633 7530 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
7531 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
7532 necessary, even if running interactively.
7533
7534 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
7535 w32_console frames.
7536
52283633
SM
7537 * w32term.c (x_update_begin):
7538 (x_update_end):
7539 (x_clear_frame):
7540 (x_ins_del_lines):
7541 (x_change_line_highlight):
7542 (x_delete_glyphs):
7543 (w32_ring_bell):
7544 (x_update_begin):
7545 (x_update_end):
7546 (w32_reassert_line_highlight):
7547 (w32_frame_rehighlight):
13d6a61c
AI
7548 (w32_frame_raise_lower): Do nothing if not w32 frame.
7549
7550 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
7551
7552 * w32fns.c (Fx_display_color_cells): Determine correct value, when
7553 system doesn't tell us directly.
7554 (Fx_display_visual_class): Implement properly.
7555
d6bb0c0d
GM
75562001-01-02 Gerd Moellmann <gerd@gnu.org>
7557
7558 * window.c (Frecenter): Handle centering in graphical frames
7559 specially. Centering on the basis of line counts doesn't work
7560 reliably with variable-height lines.
52283633 7561
315f5865
EZ
75622001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
7563
7564 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
7565 and al[].
7566
52283633 7567 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
7568 (update_compositions): Remove unused variable `hook'.
7569
7570 * intervals.c (get_local_map): Remove unused variable `tem'.
7571
7572 * doprnt.c (doprnt1): Remove unused variable `size'.
7573
7574 * fns.c (Flength): Remove unused variable `tail'.
7575 (Fdelete): Remove unused variable `size'.
7576
7577 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
7578 and `gcpro2'.
7579
52283633 7580 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
7581
7582 * data.c (find_symbol_value): Remove extra 3rd argument in the
7583 call to swap_in_symval_forwarding.
7584
52283633 7585 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
7586
7587 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
7588 (trivial_regexp_p): Remove unused variable `c'.
7589 (boyer_moore): Remove unused variable `k'.
7590
7591 * indent.c (current_column): Remove unused variable `stopchar'.
7592 (Fcompute_motion): Remove unused variable `contin'.
7593
7594 * casefiddle.c (casify_object): Remove unused variable `tolen'.
7595
7596 * dired.c (directory_files_internal): Fix a typo in a comment.
7597 Remove an unused variable `handler'.
52283633 7598 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
7599 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
7600 on BSD4_2.
7601
52283633 7602 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
7603
7604 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
7605 and `buf'.
7606 (Fmarker_insertion_type): Remove unused variable `buf'.
7607
7608 * insdel.c (make_gap): Remove unused variable `result'.
7609
52283633 7610 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
7611 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
7612 (menu_bar_items): Remove unused function-scope variable `tem'.
7613
7614 * fontset.c (fontset_ref): Remove unused variable `i'.
7615 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 7616 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
7617 (make_fontset_for_ascii_face): Remove unused variable `name'.
7618 (fs_load_font): Remove unused variable `font_idx'.
52283633 7619 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
7620 (list_fontsets): Remove unused variable `tail'.
7621 (Fnew_fontset): Remove unused variables `family' and `registry'.
7622 (accumulate_font_info): Remove unused variable `tmp'.
7623 (Ffontset_font): Remove unused variable `id'.
7624 (syms_of_fontset): Remove unused variable `i'.
7625
7626 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
7627 to x_term_init.
7628 (lookup_image): Remove unused variable `file'.
7629 (xbm_load): Remove unused variables `bitmap_data', `height', and
7630 `width'. Remove function-local variable `i', leave the
7631 block-local one.
7632 (gif_load): Remove unused variable `inc'.
7633
52283633 7634 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
7635 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
7636 leave only the one in the inner block.
7637
7638 * xfaces.c (face_fontset, realize_default_face): Remove unused
7639 variable `fontset'.
7640 (face_at_buffer_position): Remove unused variable `multibyte_p'.
7641
7642 * term.c (encode_terminal_code): Remove unused variable `c'.
7643
7644 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
7645 char *' instead of `char *'.
7646
7647 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 7648 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
7649 (Fchar_category_set): Remove unused variables `val', `charset',
7650 `c1' and `c2'.
7651
52283633
SM
7652 * coding.c (detect_coding_iso2022, setup_coding_system):
7653 Remove unused variable `i'.
315f5865
EZ
7654 (detect_coding_mask): Remove unused variable `idx'.
7655 (detect_coding): Remove unused variable `i'.
7656 (ccl_coding_driver): Remove unused variable `result'.
7657 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 7658 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
7659 (encode_coding_string): Remove unused variables `gcpro1' and
7660 `saved_coding_symbol'.
7661 (Ffind_coding_systems_region_internal): Remove function-local
7662 variable args[], leave only the block-local one.
7663 (code_convert_region1): Remove unused variable `len'.
7664
7665 * charset.c (char_printable_p): Remove unused variable `chars'.
7666 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
7667 (str_to_multibyte): Remove unused variable `c'.
7668
7669 * window.c (size_window): Remove block-local variable `min_size'.
7670
7671 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
7672 `header_line_height'.
7673 (append_space, extend_face_to_end_of_line): Declare `saved_what'
7674 enum display_element_type.
7675
1a8a9daf
GM
76762001-01-02 Gerd Moellmann <gerd@gnu.org>
7677
6dde6abc 7678 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
7679 statements that call X. Save away the error message in a local copy.
7680
1883b2c6
GM
7681 * xterm.c (x_connection_closed): Set handling_signal to 0 at
7682 the start.
7683
a13be207
GM
7684 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
7685 in or at the start of invisible text.
7686
1a8a9daf
GM
7687 * dispnew.c (update_window): Don't check_current_matrix_flags.
7688
3608c0f9
JR
76892001-01-01 Jason Rumney <jasonr@gnu.org>
7690
7691 * w32fns.c (x_figure_window_size): Do not allow new_height and
7692 new_width of frame to override specified values.
7693
abb1acc4
KH
76942000-12-30 Kenichi Handa <handa@etl.go.jp>
7695
52283633 7696 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 7697
762a68ec
GM
76982000-12-29 Gerd Moellmann <gerd@gnu.org>
7699
52283633 7700 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
7701 (update_window) [GLYPH_DEBUG]: Call it.
7702 (scrolling_window): Prevent including current rows which are below
7703 what's displayed in the window.
7704
7705 * xdisp.c (try_window_reusing_current_matrix)
7706 <new start <= old start>: Disable rows in the current matrix
7707 which are below the window after scrolling.
52283633 7708
762a68ec
GM
7709 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
7710 is zero. It's not worth the complexity.
7711 (invisible_text_between_p): Put in #if 0 because unused.
7712
2d5912c1
GM
77132000-12-28 Gerd Moellmann <gerd@gnu.org>
7714
46f6a258
GM
7715 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
7716 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
7717
89f93679
GM
7718 * keyboard.c (echo_char): If C is an integer, always call
7719 push_key_description. Former code could signal an invalid
7720 character error.
7721
7722 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
7723 If set, print multibyte text.
7724 (Fsingle_key_description): Call push_key_description with
7725 FORCE_MULTIBYTE set.
7726 (describe_buffer_bindings): Likewise.
7727
7728 * lisp.h (push_key_description): Add prototype.
7729
c06017fb
GM
7730 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
7731 around the call to redisplay_internal.
7732
f1d2ce7f
GM
7733 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
7734
2d5912c1
GM
7735 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
7736
9371f831
KH
77372000-12-28 Kenichi Handa <handa@etl.go.jp>
7738
7739 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
7740 (ccl_driver): New local variable `extra_bytes'.
7741
7742 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
7743
52283633
SM
7744 * coding.c (setup_coding_system):
7745 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
7746 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
7747
0c80628a
KH
77482000-12-28 Kenichi Handa <handa@etl.go.jp>
7749
7750 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
7751 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
7752 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
7753 (decode_composition_emacs_mule): New function.
7754 (decode_coding_emacs_mule): Decode composition sequence by calling
7755 decode_composition_emacs_mule.
7756 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
7757 (encode_coding_emacs_mule): Changed from macro to function.
7758 If a text contains compositions, encode them correctly.
0c80628a
KH
7759 (setup_coding_system): Set coding->commong_flags for emacs-mule so
7760 that decoding and encoding are required.
7761
3e32cc27
GM
77622000-12-27 Gerd Moellmann <gerd@gnu.org>
7763
5e25feee
GM
7764 * xfaces.c (PT_PER_INCH): New macro.
7765 (xlfd_point_size): Compute real point size from font's pixel size.
7766 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
7767 instead of 72.
7768
892d8fcd
GM
7769 * .gdbinit: Comment out the line pointing to the Lesstif source
7770 directory.
7771
12c8b416
GM
7772 * window.c (Frecenter): Use displayed_window_lines instead
7773 of window_internal_height.
7774
6061fbf0
GM
7775 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7776 instead of x-toolkit-scroll-bars-p.
7777 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
7778
7779 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7780 instead of x-toolkit-scroll-bars-p.
7781 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 7782
3e32cc27
GM
7783 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
7784 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
7785 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
7786 New variables.
7787 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
7788 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
7789 (build_frame_matrix_from_leaf_window): Remove unused code.
7790 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
7791 redisplay history.
7792 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
7793 (update_window) [GLYPH_DEBUG]: Likewise.
7794 (syms_of_display): Defsubr dump-redisplay-history.
7795
31798cfe
GM
77962000-12-23 Gerd Moellmann <gerd@gnu.org>
7797
f717c2ba
GM
7798 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
7799 the end of the prompt. Set echo_after_prompt to the offset
7800 of echoptr in echobuf.
7801
aeb2b8fc
GM
7802 * xdisp.c (init_from_display_pos): Pop until the iterator's
7803 stack is empty; there may be frames for stretch or images
7804 on the stack.
7805
31798cfe
GM
7806 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
7807 (save_or_restore_current_matrix): New function for the same
7808 purpose, but more efficient.
7809 (adjust_frame_glyphs_for_frame_redisplay): Use it.
7810
f8156156
EZ
78112000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
7812
7813 * xdisp.c (syms_of_xdisp): Fix last change.
7814
bdd6d4e8
GM
78152000-12-23 Gerd Moellmann <gerd@gnu.org>
7816
7817 * xdisp.c (syms_of_xdisp): Doc fix.
7818
7819 * xdisp.c (redisplay_window): Remove label restore_buffers;
7820 use finish_scroll_bars instead to make sure that scroll bars
7821 are redeemed. If we don't do this, flickering can result from
7822 scroll bars being destroyed and recreated.
7823
9436cdf9
JR
78242000-12-22 Jason Rumney <jasonr@gnu.org>
7825
7826 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
7827 in the wrong colors when the foreground is not black.
7828 (expose_window): Don't redraw the window that's currently being
7829 updated.
7830
951f9df5
GM
78312000-12-22 Gerd Moellmann <gerd@gnu.org>
7832
856ff7a7
GM
7833 * window.c (size_window): When setting the window's too_small_ok
7834 flag, compare old size with minimum size depending on WIDTH_P,
7835 don't compare with window_min_width.
52283633 7836
951f9df5
GM
7837 * window.c (delete_window): Simplify somewhat.
7838 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
7839 freeing window matrices. The flag windows_or_buffers_changed is
7840 set, so the next redisplay will consider all windows; this should
7841 suffice.
7842
886bc933
KH
78432000-12-22 Kenichi Handa <handa@etl.go.jp>
7844
7845 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
7846
7847 * ccl.h (struct ccl_program): New member cr_consumed.
7848
7849 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
7850 (CCL_READ_CHAR): Handle EOL conversion here.
7851 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
7852
177f4e88
GM
78532000-12-21 Gerd Moellmann <gerd@gnu.org>
7854
52283633 7855 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
7856
7857 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
7858 otherwise tabs of different size compare equal.
7859
7860 * callint.c (Fcall_interactively): Prevent a compiler warning.
7861
7862 * print.c (print_unwind): Return nil.
7863 (PRINTDECLARE): Initialize all local variables.
7864 (print_preprocess): Add a default case.
7865
8e15274f
GM
7866 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
7867
7868 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
7869
52283633 7870 * window.c (delete_window, Fsplit_window)
177f4e88
GM
7871 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
7872
7873 * dispextern.h (ensure_frame_matrix): Function declaration removed.
7874
7875 * dispnew.c (ensure_frame_matrix): Removed.
7876 (save_frame_matrix, restore_frame_matrix): New functions.
7877 (adjust_frame_glyphs_for_frame_redisplay): Use them.
7878
7879 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
7880 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
7881
99012074
AI
78822000-12-21 Andrew Innes <andrewi@gnu.org>
7883
7884 * w32term.c (x_update_begin): Regenerate the palette here, rather
7885 than for each window.
7886
7887 * w32xfns.c (select_palette): Avoid calling SelectPalette if
7888 palette is NULL, since this corrupts memory! Also get
7889 display_info reference from frame.
7890
29ef7d2d
JR
78912000-12-21 Jason Rumney <jasonr@gnu.org>
7892
7893 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
7894
7895 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
7896 to avoid returning without releasing it.
3e27fa1f 7897
3f9d67a6
KH
78982000-12-21 Kenichi Handa <handa@etl.go.jp>
7899
587fc3f9
KH
7900 * keymap.c (push_key_description): Don't convert eight-bit-control
7901 and eight-bit-graphic to multibyte character.
7902
3f9d67a6
KH
7903 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
7904 generic character and CODE1 is nil, return the smallest character
7905 in CHARSET.
7906
774ba8c9
DL
79072000-12-20 Dave Love <fx@gnu.org>
7908
7909 * s/osf5-0.h (NSIG): Don't redefine.
7910
88416888
SM
79112000-12-20 Stefan Monnier <monnier@cs.yale.edu>
7912
7913 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
7914 excluding menu-bar and tool-bar.
7915 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
7916 (menu_item_p): Remove.
7917 (where_is_internal_1): Don't ignore menu-items.
7918
a6426c6f
GM
79192000-12-20 Gerd Moellmann <gerd@gnu.org>
7920
03ff8aab
GM
7921 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
7922 into account.
7923
7924 * window.c (make_window): Initialize window's min_hscroll.
7925 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
7926 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
7927 to zero.
7928 (struct saved_window): New member min_hscroll.
7929 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
7930 (Fset_window_configuration): Set window's min_hscroll.
7931 (save_window_save): Save window's min_hscroll.
7932 (compare_window_configurations): Compare min_hscroll values.
7933
7934 * window.h (struct window): New member min_hscroll.
7935
7936 * keyboard.c (echo_prompt): Prevent a compiler warning.
7937
8de4aaf8
GM
7938 * xdisp.c (try_cursor_movement): Fix last change. The real
7939 condition is that PT is at the end of the row, and should
7940 be displayed at the start of the next row.
52283633 7941
3f7e3031
GM
7942 * xdisp.c (try_cursor_movement): If we end on a partially
7943 visible line, end we already decided to scroll, return -1.
7944
a6426c6f
GM
7945 * dispextern.h (ensure_frame_matrix): Add prototype.
7946
7947 * window.c (delete_window, Fsplit_window)
7948 (Fset_window_configuration): Call ensure_frame_matrix.
7949
52283633
SM
7950 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
7951 New functions.
a6426c6f
GM
7952 (adjust_frame_glyphs_for_frame_redisplay): If display has been
7953 completed, call fake_current_matrices instead of marking frame
7954 garbaged.
7955
57fa2774
JR
79562000-12-20 Jason Rumney <jasonr@gnu.org>
7957
7958 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
7959
d925df90
EZ
79602000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
7961
7962 * fns.c (Frequire): Doc fix.
7963
7b93a85b
GM
79642000-12-19 Gerd Moellmann <gerd@gnu.org>
7965
52283633 7966 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 7967
c74e645b
GM
7968 * dispnew.c (direct_output_for_insert): Fix check for mini-window
7969 currently displaying a message.
7970
7b93a85b
GM
7971 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
7972 xterm.h.
7973 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
7974
90d97e64
AI
79752000-12-18 Andrew Innes <andrewi@gnu.org>
7976
7977 * w32.c (w32_strerror): New function.
7978
7979 * w32.h (w32_strerror): New extern.
7980
7981 * w32fns.c (Fw32_shell_execute): Use it.
7982
91c9e6ce
GM
79832000-12-18 Gerd Moellmann <gerd@gnu.org>
7984
7985 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
7986
6f4745e2
EZ
79872000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7988
7989 * msdos.c (IT_set_face): Obey inverse_video.
7990
c9e088ce
KH
79912000-12-18 Kenichi Handa <handa@etl.go.jp>
7992
7993 * dired.c (directory_files_internal): Always return decoded filenames.
7994
c3695f5f
GM
79952000-12-18 Gerd Moellmann <gerd@gnu.org>
7996
52d8e4ff
GM
7997 * xterm.c (x_connection_closed): Prevent being called recursively
7998 because of an error condition in XtCloseDisplay.
52283633 7999
62be9979
GM
8000 * xdisp.c (init_iterator): If noninteractive, and the frame's
8001 face cache is null, make one.
8002
52283633 8003 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 8004
c3695f5f
GM
8005 * process.c (wait_reading_process_input): Check for pending
8006 input when running timers.
8007
78555fbe
EZ
80082000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
8009
52283633 8010 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 8011
b2b36264
KH
80122000-12-18 Kenichi Handa <handa@etl.go.jp>
8013
8014 * process.c (read_process_output): Don't run a filter if the code
8015 decoder produces nothing but carryover.
8016
9c543fbf
AI
80172000-12-17 Andrew Innes <andrewi@gnu.org>
8018
8019 * w32.c (sys_rename): Only check errno against EEXIST, and not
8020 EACCES, when determining whether rename failed because the target
8021 exists. This was resulting in indefinite looping on Windows 9x if
8022 the source file was locked by another process.
8023
8024 * w32fns.c (Ffile_system_info): New function.
8025 (syms_of_w32fns): Defsubr it.
8026
10c2b5a8
GM
80272000-12-17 Gerd Moellmann <gerd@gnu.org>
8028
b0228ace
GM
8029 * window.c (coordinates_in_window): Fix computation for
8030 position on vertical line between mode lines.
8031
10c2b5a8
GM
8032 * xfns.c (unwind_create_frame): Return t if frame was deleted.
8033 Don't alter tip_frame or tip_window.
8034 (unwind_create_tip_frame): Set tip_frame to nil only if frame
8035 was deleted.
8036
c844a81a
GM
8037 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
8038 Don't alter tip_frame or tip_window.
8039 (unwind_create_tip_frame): Set tip_frame to nil only if frame
8040 was deleted.
8041
6c825f8e
EZ
80422000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
8043
8044 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
8045 be consistent with the doc string. Reported by NAKAJIMA Mikio
8046 <minakaji@osaka.email.ne.jp>.
8047
af4bb4c8
KH
80482000-12-16 Kenichi Handa <handa@etl.go.jp>
8049
8050 * xfaces.c (Vface_ignored_fonts): New variable.
8051 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
8052 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
8053
8062e53a
GM
80542000-12-15 Gerd Moellmann <gerd@gnu.org>
8055
e87b8809
GM
8056 * dispnew.c (update_window): Detect pending input every nth line
8057 updated, i.e. do it depending on real work done, and not on the
8058 vpos of the line.
8059
8060 * xterm.c (expose_window): Don't redraw the window that's
8061 currently being updated.
8062
a6768cc5
GM
8063 * window.c (Fset_window_point): Remove test for
8064 cursor_in_non_selected_windows.
8065
4ea7fdca
GM
8066 * lread.c (read1): Recognize end of file after `\\'.
8067
8062e53a
GM
8068 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
8069 not unwind_create_frame.
8070
bb7959c1
GM
80712000-12-15 Dave Love <fx@gnu.org>
8072
8073 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
8074 bcopy & al.
8075
8076 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
8077
ced04c42
KH
80782000-12-15 Kenichi Handa <handa@etl.go.jp>
8079
c5443913
KH
8080 * coding.c (setup_coding_system): Clear all members of the struct
8081 coding_system at first.
bc137305
KH
8082 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
8083 argument.
8084 (code_convert_region): Don't override coding->src_multibyte and
8085 coding->dst_multibyte.
c5443913 8086
ced04c42
KH
8087 * fns.c (Fmd5): Docstring improved.
8088
c2d7f289
MB
80892000-12-15 Miles Bader <miles@gnu.org>
8090
8091 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
8092 are actually marked as mode-lines; otherwise use
8093 estimate_mode_line_height.
8094
9d7d9263
GM
80952000-12-14 Gerd Moellmann <gerd@gnu.org>
8096
8097 * editfns.c (Fformat): Prevent a buffer overrun when the format
8098 specifies a precision.
8099
7cf0153a
EZ
81002000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
8101
8102 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
8103 argument is outside the range [2..3].
8104
1de0f662
AI
81052000-12-14 Andrew Innes <andrewi@gnu.org>
8106
8107 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
8108 nothing to do. Bind inhibit-quit.
8109 (tip_frame): Make it a Lisp_Object.
8110 (x_create_tip_frame): Set tip_frame after it has been added to
8111 Vframe_list.
8112 (Fx_show_tip): Don't set tip_frame here.
52283633 8113 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
8114 (unwind_create_frame, unwind_create_tip_frame): New functions.
8115 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
8116 while a frame is only partially constructed.
8117
8118 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
8119 (x_free_frame_resources): New function.
8120 (x_destroy_window): Use it.
8121
02387dcc
GM
81222000-12-14 Gerd Moellmann <gerd@gnu.org>
8123
8124 * xfns.c (Fx_backspace_delete_keys_p): New function.
8125 (syms_of_xfns): Defsubr it.
8126
8127 * config.in (HAVE_XKBGETKEYBOARD): Add.
8128
0544ef49
KH
81292000-12-14 Kenichi Handa <handa@etl.go.jp>
8130
98d62747
KH
8131 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
8132 Always store string in multibyte representation in echobuf.
8133 (echo_char): Always store string in multibyte representation in
8134 echobuf.
8135 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
8136 (read_key_sequence): Adjusted for the change of echo_prompt.
8137
a20193cd
KH
8138 * fns.c (Fmd5): Docstring improved.
8139
191b83b6
KH
8140 * lisp.h (detect_coding_system): Prototype adjusted.
8141
0544ef49
KH
8142 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
8143 (detect_coding_emacs_mule, detect_coding_iso2022,)
8144 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
8145 (detect_coding_utf_16, detect_coding_ccl): Make them static.
8146 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
8147 (detect_coding_mask, detect_coding_system): New argument
8148 MULTIBYTEP. Callers changed.
1da1bb05
KH
8149 (decode_coding_string): Set coding->src_multibyte and
8150 coding->dst_multibyte before calling detect_coding and detect_eol.
8151 Update them after some coding system is detected.
52283633 8152
d5b3eb1b
SM
81532000-12-13 Stefan Monnier <monnier@cs.yale.edu>
8154
8155 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
8156
8157 * keyboard.c (menu_bar_items, tool_bar_items):
8158 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
8159
f7f8bb69
GM
81602000-12-13 Gerd Moellmann <gerd@gnu.org>
8161
52283633 8162 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
8163 New variables.
8164 (unwind_create_frame, unwind_create_tip_frame): New functions.
8165 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
8166 while a frame is only partially constructed.
8167
8168 * xterm.h (x_free_frame_resources): Declare.
8169
8170 * xterm.c (x_free_frame_resources): New function.
8171 (x_destroy_window): Use it.
8172
e10da507
GM
8173 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
8174 don't interrupt the update for pending input initially, i.e.
8175 update at least some lines.
8176
8177 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 8178
d5b3eb1b 8179 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
8180
8181 * xfns.c (gray_bitmap_bits): Declare `char *'.
8182
90aa2856
GM
81832000-12-12 Gerd Moellmann <gerd@gnu.org>
8184
8185 * xdisp.c (display_tool_bar_line): Make sure that tool bar
8186 lines start with a relief line.
8187
a308c9cd
DL
81882000-12-12 Dave Love <fx@gnu.org>
8189
8190 * window.c (Fdisplay_buffer): Doc fix.
8191 (Fwindow_list): Remove unused var.
8192
8193 * buffer.h (mmap_set_vars): Declare.
8194
8195 * window.h (Fset_window_point): Declare.
8196
d575011f
EZ
81972000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
8198
bf6282d2 8199 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
8200 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
8201 variable `area'. When looking for a row under (X,Y), give up if some
8202 of the previous rows is not enabled.
d575011f 8203
ecf4d726
GM
82042000-12-12 Gerd Moellmann <gerd@gnu.org>
8205
2ebf6139
GM
8206 * window.c (Fset_window_point): If displaying cursors in windows
8207 other than the selected window, make sure redisplay updates
8208 other windows to show the new value of point in the window.
8209
8210 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
8211
bfdb75ee
GM
8212 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
8213 the buffer is the sole visible buffer when in the mini-buffer.
8214
52283633 8215 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
8216 Bind `inhibit-read-only' to t.
8217 (unwind_with_echo_area_buffer): Use AREF.
8218
c0006262
GM
8219 * xfns.c (Fx_hide_tip): Simplified.
8220
52283633
SM
8221 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
8222 instead of `1'.
e9a59cad 8223
ecf4d726
GM
8224 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
8225
e5959a9a
GM
82262000-12-11 Gerd Moellmann <gerd@gnu.org>
8227
a3642e49 8228 * xfns.c (Fx_hide_tip): Fix last change.
52283633 8229
44b5a125
GM
8230 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
8231 nothing to do. Bind inhibit-quit.
8232 (tip_frame): Make it a Lisp_Object.
8233 (x_create_tip_frame): Set tip_frame after it has been added to
8234 Vframe_list.
8235 (Fx_show_tip): Don't set tip_frame here.
8236
8237 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
8238
8239 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
8240 Lisp_Object.
8241
8242 * dispextern.h: Change external declaration of tip_frame.
8243
d990421f
GM
8244 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
8245 return an empty string.
8246
4db87380
GM
8247 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
8248 of the window's update_mode_line flag, since the former is set by
8249 force-mode-line-update, not the latter. This makes
8250 column-number-mode slightly faster.
52283633 8251
e5959a9a
GM
8252 * xdisp.c (try_window_id) <all changes above window start>:
8253 Set the cursor.
8254
169fe44e
GM
82552000-12-11 Paul Eggert <eggert@twinsun.com>
8256
8257 * config.in (HAVE_FTELLO): Remove.
8258 (HAVE_FSEEKO): Add.
8259 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
8260 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
8261 HAVE_FTELLO.
8262 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
8263 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 8264
59ec59ae
MB
82652000-12-11 Miles Bader <miles@gnu.org>
8266
8267 * window.c (displayed_window_lines): Don't round up when
8268 converting empty space at bottom to lines.
ff904dd6
MB
8269 Handle non-newline-terminated final lines properly.
8270 (Fwindow_text_height): New function (used to be in lisp).
8271 (syms_of_window): Initialize it.
59ec59ae 8272
42ebfa31
SM
82732000-12-09 Stefan Monnier <monnier@cs.yale.edu>
8274
8275 * syntax.c (scan_lists): Check that the right quote char has the
8276 right Sstring syntax when jumping over strings.
8277 (init_syntax_once): Use Smax rather than 13.
8278
5cdb3cf3
MB
82792000-12-09 Miles Bader <miles@gnu.org>
8280
8281 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
8282 with PARTIALLY, inverting the sense.
8283 (window_scroll_pixel_based): Scroll partially visible lines into
8284 place if we hit the beginning or end of the buffer.
a12167c5
MB
8285 (displayed_window_lines): Don't include partially visible lines.
8286 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 8287
842b2a94
GM
82882000-12-08 Gerd Moellmann <gerd@gnu.org>
8289
8290 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
8291
8292 * tparam.c (tparam1): Change the way buffers are reallocated to be
8293 portable and less obfuscated.
8294
8295 * termcap.c (tgetent): Change the way buffers are reallocated to
8296 be portable and less obfuscated.
8297
8298 * macros.c (store_kbd_macro_char): Change the way buffers are
8299 reallocated to be portable and less obfuscated.
8300
8301 * lread.c (read1): Change the way buffers are reallocated to be
8302 portable and less obfuscated.
8303
8304 * doc.c (Fsubstitute_command_keys): Change the way buffers
8305 are reallocated so that it is portable.
8306
137cad7c
EZ
83072000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
8308
8309 * dosfns.c (Ffile_system_info): New function.
8310 (syms_of_dosfns): Defsubr it.
8311
5c7f629c
SM
83122000-12-07 Stefan Monnier <monnier@cs.yale.edu>
8313
8314 * alloc.c (gc_sweep): Add comment.
8315
959e647d
GM
83162000-12-07 Gerd Moellmann <gerd@gnu.org>
8317
52283633
SM
8318 * sound.c (vox_configure): Change order of ioctls.
8319 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
8320 Ignore errors when changing volume.
8321 (vox_close): Don't reset the device.
8322
926b7e5e
GM
8323 * process.c (read_process_output): Make sure the process marker's
8324 position is valid when the process buffer is changed in
8325 after-change functions. W3 does that.
52283633 8326
959e647d
GM
8327 * xfns.c (x_free_gcs): New function.
8328
8329 * xterm.h (x_free_gcs): Add prototype.
8330
8331 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
8332 freeing GCs here.
8333
8334 * xterm.c (x_destroy_window): Call x_free_gcs so that
8335 resources of non-toolkit X windows will be freed.
8336
478ea067
AI
83372000-12-07 Andrew Innes <andrewi@gnu.org>
8338
8339 * w32fns.c (xlfd_charset_of_font): Fix last change.
8340
fbee3231
DL
83412000-12-06 Dave Love <fx@gnu.org>
8342
67292061
DL
8343 * md5.h (__P): Don't define -- it comes from config.h.
8344
fbee3231
DL
8345 * strftime.c: Change some #if foo to #ifdef foo.
8346
4ee87dbb
AI
83472000-12-06 Andrew Innes <andrewi@gnu.org>
8348
8349 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
8350
52283633 8351 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 8352 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 8353 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 8354
9765b4a4
GM
83552000-12-06 Gerd Moellmann <gerd@gnu.org>
8356
d285b373
GM
8357 * alloc.c (gc_sweep): Prevent symbols read during loadup
8358 from being freed.
8359
384333ee
GM
8360 * xdisp.c (underlying_face_id): New function.
8361 (handle_face_prop, face_before_or_after_it_pos): Use it
8362 to determine the face ``under'' a string. Let strings inherit
8363 the face of the buffer under them.
8364
8365 * xfaces.c (face_at_string_position): Update function comment.
52283633 8366
d4b72d58
GM
8367 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
8368 matrix if the window's left position has changed; we need to
8369 redraw it in this case.
8370
8371 * dispextern.h (struct glyph_matrix): Add member window_left_x.
8372
e1d05387
GM
8373 * window.c (coordinates_in_window): Check mouse on mode-line or
8374 header-line first.
8375
eb1b0c74
GM
8376 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
8377 advertized by the function documentation.
8378
d94d636f
GM
8379 * window.c (syms_of_window): Doc fix.
8380
3887b449
GM
8381 * sound.c (vox_configure): Set volume for left and right channel.
8382 (sound_cleanup): Return nil.
8383
efc8f57a
GM
8384 * xdisp.c (move_it_by_lines): Fix paren typo.
8385
9765b4a4
GM
8386 * xterm.c (x_load_font): Don't use the font's max_bounds for
8387 computing the height of the font. If max_bounds' ascent or
8388 descent are greater than the font's ascent or descent, this means
8389 glyphs overlap, which should be handled now by redisplay.
8390
6529ed87
GM
8391 * window.c (Veven_window_heights): New variable.
8392 (syms_of_window): DEFVAR_LISP it.
8393 (Fdisplay_buffer): Check Veven_window_heights before evening the
8394 window heights.
52283633 8395
0eb2ecde
MB
83962000-12-06 Miles Bader <miles@gnu.org>
8397
8398 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
8399 update `default-frame-alist' instead of setting no frame parameters.
8400
03d7a167
KH
84012000-12-06 Kenichi Handa <handa@etl.go.jp>
8402
8403 * composite.c (update_compositions): Fix typo (use the correct
8404 variable).
8405
5f8803c2
JR
84062000-12-05 Jason Rumney <jasonr@gnu.org>
8407
8408 * md5.h: Remove underscores from function declarations.
8409 (__attribute__, __alignof__) [!__GNUC__]: Define.
8410
8411 * md5.c: Delay include of md5.h until after namespace cleaning.
8412
c28a075b
JR
8413 * makefile.w32-in (fns.o): Depend on md5.h
8414 (md5.o): New target.
8415 (sunfns.o): Remove.
8416
8417 * makefile.nt: Likewise.
8418
ff3c7056
JR
84192000-12-05 Jason Rumney <jasonr@altavista.net>
8420
8421 * w32term.c (expose_area): Complete last change.
8422
0c21eeeb
KR
84232000-12-05 Ken Raeburn <raeburn@gnu.org>
8424
8425 * minibuf.c: Include intervals.h.
8426
f201d732
JR
84272000-12-05 Jason Rumney <jasonr@gnu.org>
8428
8429 * w32term.c (x_produce_glyphs): If a font for a component of
8430 a composition is not found, use 1 pixel dot ascent and 0 dot
8431 descent value to avoid displaying terribly tall empty boxes.
8432 (expose_area): Pass x-coordinate relative to the exposed
8433 area to x_draw_glyphs instead of a window-relative coordinate.
8434
21999ab9
GM
84352000-12-05 Gerd Moellmann <gerd@gnu.org>
8436
4d2036e4
GM
8437 * xdisp.c (next_element_from_ellipsis): Save face before selective
8438 display in saved_face_id, and set face_before_selective_p.
8439 (reseat_1): Reset face_before_selective_p.
8440 (append_space, extend_face_to_end_of_line): If iterator's
8441 face_before_selective_p is set, use the face from saved_face_id.
8442 (extend_face_to_end_of_line): For tty frames, make sure to
8443 use the right face id when producing spaces at the end of
8444 the line.
8445
8446 * dispextern.h (struct it): Add face_before_selective_p.
8447
52be17cc
GM
8448 * keyboard.c (record_char): Don't record identical help-echo
8449 events in recent_keys.
8450
8a4f36cc
GM
8451 * xterm.c [USE_X_TOOLKIT]: Close the display.
8452 (xim_close_dpy): Handle case that the display has been closed.
8453
57d6e381
GM
8454 * xterm.c (x_destroy_window): Reset the frame's X window after
8455 destroying it.
8456
21999ab9
GM
8457 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
8458 variable window_width.
8459 (line_draw_cost): Fix code skipping over spaces at the end of the
8460 line when must_write_spaces is not set.
8461 (scrolling_window): Fix code inserting runs in list of all runs.
8462
91372bb7
KH
84632000-12-05 Kenichi Handa <handa@etl.go.jp>
8464
8465 * coding.c (setup_coding_system): Be sure to initialize
8466 coding->category_idx.
8467
6c083b4c
GM
84682000-12-04 Gerd Moellmann <gerd@gnu.org>
8469
0c68ce6f 8470 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 8471
6452929e
GM
8472 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
8473 area to x_draw_glyphs instead of a window-relative coordinate.
8474
d7f31e22
GM
8475 * fileio.c (auto_save_error): Add parameter ERROR. Show the
8476 error in the message.
8477
ae18aa3b
GM
8478 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
8479 timer after having read a key. It's not good for code reading
8480 several keys in a loop, like an input method.
8481
caa15ef7
GM
8482 * fileio.c (Finsert_file_contents): When VISIT is t, don't
8483 record undo information for format-decode.
8484
8485 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
8486 current buffer is read-only, not if it isn't.
8487
6c083b4c
GM
8488 * keyboard.c (record_char): Record `help-echo' input events
8489 in recent_keys only if they display some help. Don't record
8490 `help-echo' events as macro char.
8491
caa15ef7
GM
84922000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
8493
8494 * editfns.c (save_excursion_restore): Don't move point
8495 in another window if it is showing the wrong buffer.
8496 Avoid the call to Fwindow_live_p, for speed.
8497
5a13529b
KH
84982000-12-04 Kenichi Handa <handa@etl.go.jp>
8499
e225faa7
KH
8500 * xfaces.c (struct font_name): New member registry_priority.
8501 (split_font_name): Initialize the above member to zero.
8502 (concat_font_list): New function.
8503 (font_list): Include fonts of all alternative registries.
8504 (FONT_POINT_SIZE_QUANTUM): New macro.
8505 (better_font_p): Ignore point size difference less than
8506 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
8507
e89648b4
KH
8508 * xterm.c (x_produce_glyphs): If a font for a component of
8509 a composition is not found, use 1 pixel dot ascent and 0 dot
8510 descent value to avoid displaying terribly tall empty boxes.
8511
5a13529b
KH
8512 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
8513
d7935eb6
KR
85142000-12-03 Ken Raeburn <raeburn@gnu.org>
8515
8516 * coding.h (code_convert_string1): Declare.
8517
8518 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
8519
52283633 8520 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 8521
0dd5e255
JR
85222000-12-02 Jason Rumney <jasonr@gnu.org>
8523
8524 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
8525 correctly for single byte character case.
8526 (w32_per_char_metric): Do not try to make any assumptions about
8527 the metrics of BDF fonts.
250cfece 8528 (x_estimate_mode_line_height): If `mode-line' face
52283633 8529 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
8530 (note_mouse_highlight): Change the cursor shape on the vertical
8531 border between windows [not enabled].
8532
8533 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
8534
8535 * w32fns.c (Fx_create_frame): Reintroduce the call to
8536 face-set-after-frame-defaults.
8537 (Vx_window_horizontal_drag_shape): New variable.
8538 (syms_of_xfns): DEFVAR_LISP it.
8539 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
8540 enabled].
0dd5e255 8541
b5d8d2ca
GM
85422000-12-02 Simon Josefsson <simon@josefsson.org>
8543
8544 * fns.c (Fmd5): Use a different logic to decide the coding system
8545 to use.
8546
8547 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
8548
fbb87147
EZ
85492000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
8550
52283633 8551 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 8552
447e9da0
GM
85532000-12-01 Gerd Moellmann <gerd@gnu.org>
8554
7708ced0
GM
8555 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
8556 height for YNegative.
8557 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
8558 height; also see comment there.
8559
447e9da0
GM
8560 * window.c (coordinates_in_window): Handle computations for
8561 positions on the vertical bar and fringes differently for
8562 window-system frames. Consider some pixels near the vertical bar
8563 as on the bar if the frame doesn't have vertical scroll bars.
8564 Associate positions between mode or header lines with the
8565 right window, the left one.
8566
86d1db20
JR
85672000-12-01 Jason Rumney <jasonr@gnu.org>
8568
8569 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
8570
8571 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
8572 invalid frame.
8573
a1d58e5b
GM
85742000-12-01 Gerd Moellmann <gerd@gnu.org>
8575
52283633 8576 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
8577 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
8578 (save_window_save, Fset_window_configuration): Save/restore
8579 window's orig_top and orig_height.
8580
89c609af
JR
85812000-12-01 Jason Rumney <jasonr@gnu.org>
8582
4d177746 8583 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 8584
89c609af
JR
8585 * w32fns.c (x_set_cursor_color): Fix last change.
8586
eccc05db
GM
85872000-11-30 Gerd Moellmann <gerd@gnu.org>
8588
31b6671b
GM
8589 * xdisp.c (echo_area_display): If cursor is in the echo area, make
8590 sure that the next redisplay displays the minibuffer, so that
8591 the cursor will be replaced with what the minibuffer wants.
8592
eccc05db
GM
8593 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
8594 #ifndef instead of using #if.
8595 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
8596 USE_TOOLKIT_SCROLL_BARS is defined.
8597
162de750
JR
85982000-11-30 Jason Rumney <jasonr@gnu.org>
8599
8600 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
8601 x_display_cursor.
8602
693c4692
GM
86032000-11-30 Gerd Moellmann <gerd@gnu.org>
8604
8605 * fns.c (Fmd5): Doc fix.
8606
b5d8d2ca 86072000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
8608
8609 * fns.c (Fmd5): New function.
8610 (syms_of_fns): Defsubr md5.
8611
8612 * Makefile.in (obj): Add md5.o
8613
b02cd40b
GM
86142000-11-30 Gerd Moellmann <gerd@gnu.org>
8615
edfb795e
GM
8616 * md5.h, md5.c: New files, taken from glibc.
8617
df3aedcf
GM
8618 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
8619
b02cd40b 8620 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 8621 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 8622
8b5176cd
SM
86232000-11-29 Stefan Monnier <monnier@cs.yale.edu>
8624
8625 * eval.c (Frun_hooks): Allow 0 arguments.
8626
346598f1
GM
86272000-11-29 Gerd Moellmann <gerd@gnu.org>
8628
f9396e03
GM
8629 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
8630 is over the menu bar widget, say it's not on the frame.
8631
4a967a9b
GM
8632 * xfns.c (Fx_create_frame): Reintroduce the call to
8633 face-set-after-frame-defaults.
8634
346598f1
GM
8635 * eval.c (Fsignal): Reset handling_signal.
8636
222456a1
JR
86372000-11-28 Jason Rumney <jasonr@gnu.org>
8638
8639 * w32menu.c (add_menu_item): Reset menu item text when changing
8640 type to radio button.
8641
8049ddc0
GM
86422000-11-28 Gerd Moellmann <gerd@gnu.org>
8643
346598f1 8644 * xselect.c: Update copyright.
f4f4ee4d 8645
bebe4a2c
GM
8646 * window.c (coordinates_in_window): If on a mode or header line,
8647 but sufficiently close to its start, return ``on vertical
8648 border''. This gives us a way to drag windows horizontally when
8649 using toolkit scroll bars.
8650
8651 * xterm.c (note_mouse_highlight): Change the cursor shape
8652 on the vertical border between windows.
8653
8654 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
8655
8656 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
8657 (syms_of_xfns): DEFVAR_LISP it.
8658 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
8659
8d2c2642
GM
8660 * textprop.c (text_read_only): New function.
8661 (verify_interval_modification): Use it instead of signaling
8662 `text-read-only'. This makes it easier to catch this error
52283633 8663 with a breakpoint.:
8d2c2642 8664
52283633 8665 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
8666 not end of line, which includes CR.
8667
5a2bae6c
KH
86682000-11-28 Kenichi Handa <handa@etl.go.jp>
8669
8670 * coding.c (Ffind_coding_systems_region_internal): Be sure to
8671 include no-conversion.
8672
ae31f84d
JR
86732000-11-27 Jason Rumney <jasonr@gnu.org>
8674
8675 * w32fns.c (w32_load_system_font): Always mark font as double byte
8676 if codepage is unicode.
8677
67f1cf4c
GM
86782000-11-27 Gerd Moellmann <gerd@gnu.org>
8679
4a74d071 8680 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 8681 just consume it to avoid unintended skipping over invisible text below.
4a74d071 8682
902ae620
GM
8683 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
8684 `vertical-line', `mode-line' and `header-line' events.
8685
8686 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
8687 of a character, a TAB for instance. This is easier than to set
8688 up the iterator exactly, and it's not a frequent case, so the
8689 additional effort wouldn't really pay off.
8690
c1e279c2
AC
86912000-11-26 Andrew Choi <akochoi@i-cable.com>
8692
67f1cf4c 8693 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
8694 init_window_once.
8695
a609568a
JR
86962000-11-25 Jason Rumney <jasonr@gnu.org>
8697
52283633
SM
8698 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
8699 Args to window_from_coordinates should be pixel coordinates.
48b21762 8700
a609568a
JR
8701 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
8702 redisplay handles them properly.
8703
a658d039
MB
87042000-11-25 Miles Bader <miles@gnu.org>
8705
8706 * indent.c (compute_motion): Keep pos_byte in sync with pos.
8707
d3416cca
JR
87082000-11-24 Jason Rumney <jasonr@gnu.org>
8709
8710 * w32.c (init_environment): Set LANG environment variable based on
8711 locale settings, if not set.
8712
8713 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
8714 making tool bar smaller. When clearing the frame, also
8715 clear current matrices. Clear frame when tool bar disappears.
8716 Don't use more lines for the tool-bar than is available.
8717 (x_change_window_heights): New function.
8718
ba193890
GM
87192000-11-24 Gerd Moellmann <gerd@gnu.org>
8720
2be8f184
GM
8721 * xdisp.c (init_from_display_pos): If POS says we're already after
8722 an overlay string ending at POS, make sure to pop the iterator
8723 because it will be in front of that overlay string. When POS is
8724 ZV, we've thereby also ``processed'' overlay strings at ZV.
8725
ba193890
GM
8726 * xfaces.c (lface_from_face_name): Function comment fix.
8727
1862a24e
MB
87282000-11-24 Miles Bader <miles@gnu.org>
8729
8730 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
8731 apply `mode-line-inverse-video' -- zero means force display using
8732 the default face, non-zero means display using the specialized face.
8733 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
8734
f07fa1b8
KH
87352000-11-23 Kenichi Handa <handa@etl.go.jp>
8736
8737 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
8738 hard coded `4'.
8739
2bcdf662
EZ
87402000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
8741
8742 * coding.c (decode_coding_emacs_mule): Fix the case of
8743 CODING_EOL_LF, which used uninitialized value of c.
8744
ba8299ff
SM
87452000-11-23 Stefan Monnier <monnier@cs.yale.edu>
8746
8747 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
8748
f4117c4d
GM
87492000-11-22 Gerd Moellmann <gerd@gnu.org>
8750
03e757c1
GM
8751 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
8752 buffer object.
8753
f4117c4d
GM
8754 * frame.h (struct frame): Replace desired_tool_bar_items,
8755 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 8756 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
8757
8758 * frame.c (make_frame): Change initialization of tool bar
8759 items accordingly.
8760
8761 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 8762 Change references to members deleted from struct frame to use the
f4117c4d
GM
8763 new ones.
8764
8765 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 8766 references to members deleted from struct frame to use the new ones.
f4117c4d 8767
52283633 8768 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
8769
8770 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
8771
8772 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 8773 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
8774 from struct frame to use the new ones.
8775
f8e2f3f2
MB
87762000-11-23 Miles Bader <miles@gnu.org>
8777
8778 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
8779 the face's inverse-video attribute, rather than overriding it.
8780
60e8e0a5
GM
87812000-11-22 Gerd Moellmann <gerd@gnu.org>
8782
8783 * xfns.c (x_set_tool_bar_lines): Clear internal border when
8784 making tool bar smaller.
8785
92dd1b29
DL
87862000-11-22 Dave Love <fx@gnu.org>
8787
8788 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
8789
e672fdce
MB
87902000-11-22 Miles Bader <miles@gnu.org>
8791
3a17d6cc
MB
8792 * keyboard.c (Vminibuffer_message_timeout): New variable.
8793 (command_loop_1): Use it to determine message timeout.
8794 (syms_of_keyboard): Initialize it.
8795
60e8e0a5 8796 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 8797
e9655d81
KH
87982000-11-22 Kenichi Handa <handa@etl.go.jp>
8799
8800 * sysdep.c: Move the code for declaring h_errno after #include
8801 <netdb.h>.
8802
77270fac
GM
88032000-11-21 Gerd Moellmann <gerd@gnu.org>
8804
cd913aae
GM
8805 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
8806 the menu bar when the tooltip is unmapped.
8807
77270fac
GM
8808 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
8809 sole visible buffer when we're currently in the mini-buffer, and
8810 give up if so.
52283633 8811
556635d6
JR
88122000-11-21 Jason Rumney <jasonr@gnu.org>
8813
8814 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
8815 put on the clipboard.
8816 (Fw32_get_clipboard_data): Compare data on clipboard with saved
8817 copy of what Emacs last put there. If they are the same, do not
52283633 8818 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 8819
5b7bde64
MB
88202000-11-22 Miles Bader <miles@gnu.org>
8821
8822 * minibuf.c (Vminibuffer_prompt_properties): New variable.
8823 (syms_of_minibuf): Initialize it.
8824 (read_minibuf): Add properties from Vminibuffer_prompt_properties
8825 to prompt, don't make read-only.
8826
ff23e1dd
GM
88272000-11-21 Gerd Moellmann <gerd@gnu.org>
8828
52283633
SM
8829 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
8830 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 8831
7aaf4388
GM
8832 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
8833
f5f47add 8834 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 8835
ff23e1dd
GM
8836 * term.c, cm.c: Don't try to include termcap.h; see comment there.
8837
37c35586
KH
88382000-11-21 Kenichi Handa <handa@etl.go.jp>
8839
8840 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
8841 ... #endif scope.
8842
ff9ab414
GM
88432000-11-20 Gerd Moellmann <gerd@gnu.org>
8844
52283633 8845 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
8846 screen supports it.
8847
29a01b72
GM
8848 * s/gnu-linux.h: Don't use `#cpu'.
8849
09dfdf85
GM
8850 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
8851 not defined in mman.h.
8852
52283633 8853 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
8854 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
8855 and store an index in the XClientMessageEvent. Storing a
8856 Lisp_Object or pointer can fail on a 64 bit system, since X only
8857 transfers 32 bits.
52283633
SM
8858 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
8859
81459ac9
DL
88602000-11-20 Dave Love <fx@gnu.org>
8861
8862 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
8863
56c13ae6
GM
88642000-11-20 Gerd Moellmann <gerd@gnu.org>
8865
8866 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
8867
495a6df3
KH
88682000-11-20 Kenichi Handa <handa@etl.go.jp>
8869
2bcf3714
KH
8870 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
8871 by WIDTH.
8872
495a6df3
KH
8873 * alloc.c (make_string): Fix previous change. Be sure to make
8874 unibyte string correctly.
8875
6d950f4c
GM
88762000-11-19 Gerd Moellmann <gerd@gnu.org>
8877
39b39373
GM
8878 * window.c (Fwindow_list): Change parameter list to be XEmacs
8879 compatible.
8880 (window_list_1): New function.
8881 (window_loop): Use it instead of Fwindow_list.
8882
b95b34e5
GM
8883 * sysdep.c (emacs_ospeed): New variable.
8884 (toplevel): Don't declare ospeed extern.
8885 (init_baud_rate): Use emacs_ospeed instead of ospeed.
8886
8887 * termcap.c (ospeed): Remove.
8888 (tputs) [!emacs]: Remove unused code.
8889 (tgetent): Avoid a compiler warning.
8890
e83dc917
GM
8891 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
8892 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 8893 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
8894
8895 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
8896 removed.
8897 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
8898 Take the X display as additional argument.
8899 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
8900 `Widget' is a pointer type that's not easily stored in Lisp_Object
8901 form in a portable way.
52283633 8902
6d950f4c
GM
8903 * dispnew.c (update_text_area): Fix last change.
8904
e47306e6
GM
89052000-11-18 Gerd Moellmann <gerd@gnu.org>
8906
fb3cd89b
GM
8907 * xdisp.c: Use BINDING_STACK_SIZE throughout.
8908
8909 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
8910 clear current matrices.
8911
edaa9aed
GM
8912 * buffer.c (mmap_enlarge): Don't print a message on stderr
8913 if mapping new memory at the end of the existing region fails.
8914
e47306e6
GM
8915 * dispnew.c (update_text_area): Don't skip over equal glyphs
8916 when the last current glyph overlaps the glyph to its right.
8917
509633e3
MB
89182000-11-18 Miles Bader <miles@gnu.org>
8919
8920 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
8921 lines that *end* with "..." too (that's the most common case!).
8922
d392e9c5
GM
89232000-11-18 Gerd Moellmann <gerd@gnu.org>
8924
67988445
GM
8925 * xdisp.c (resize_mini_window): Temporarily change to the
8926 mini-window's buffer if necessary.
1bfdbe43 8927
d392e9c5
GM
8928 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
8929 the tooltip obscures less text under it.
8930
89312000-11-17 Gerd Moellmann <gerd@gnu.org>
8932
8933 * puresize.h (BASE_PURESIZE): Increase to 700000.
8934
92bb977f
JR
89352000-11-18 Jason Rumney <jasonr@gnu.org>
8936
8937 * w32term.c (w32_draw_bitmap): Use face to set colors.
8938
26fbf20b
DL
89392000-11-17 Dave Love <fx@gnu.org>
8940
8941 * lread.c (Fload): Fix #ifdef for pcc.
8942
100b593b
GM
89432000-11-17 Gerd Moellmann <gerd@gnu.org>
8944
8945 * xdisp.c (pos_visible_p): Compute the default character height
8946 differently.
8947
a288d0d1
GM
89482000-11-16 Gerd Moellmann <gerd@gnu.org>
8949
cac94de6 8950 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 8951 knowing the line's height; use the default font's height in that case.
cac94de6 8952
a288d0d1
GM
8953 * xfaces.c (weight_table): Add `demi' with the same meaning as
8954 `demibold'.
8955
981fb6f6
KH
89562000-11-16 Kenichi Handa <handa@etl.go.jp>
8957
2cca872d 8958 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
8959 (clear_glyph_row): Delete local static variable null_row.
8960
e5fa381b
JR
89612000-11-15 Jason Rumney <jasonr@gnu.org>
8962
8963 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
8964 (w32_alloc_lighter_color): Use new brightness calculations from
8965 xterm.c. Scale delta to be in the range expected by W32.
8966 (w32_draw_relief_rect): Use frame relief colors.
8967
8e42f043
GM
89682000-11-15 Gerd Moellmann <gerd@gnu.org>
8969
6d133d1f
GM
8970 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
8971 (Qinhibit_default_face_x_resources): New variable.
8972 (syms_of_frame): Initialize it.
8973 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
8974
8975 * xdisp.c (pos_visible_p): Improve function comment.
8976
8977 * lisp.h (BINDING_STACK_SIZE): New macro.
8978
8e42f043
GM
8979 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
8980 reading the directory if readdir returns null and errno is EAGAIN
8981 or EINTR.
8982
e8c87124
SM
89832000-11-14 Stefan Monnier <monnier@cs.yale.edu>
8984
8985 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
8986 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
8987 Set amount_to_scroll to max of dx and scroll_step so that
8988 scroll-conservatively doesn't defeat scroll-step>1.
8989 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
8990 scroll-conservatively for line-at-a-time scrolling.
8991
5f0c971d
GM
89922000-11-14 Gerd Moellmann <gerd@gnu.org>
8993
8994 * window.c (Fpos_visible_in_window_p): Call pos_visible with
8995 extra argument.
8996
8997 * xdisp.c (current_mode_line_height, current_header_line_height):
8998 New variables.
8999 (init_xdisp): Initialize them.
9000 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
9001 and use exact mode line heights if it is set.
9002
9003 * lisp.h (pos_visible_p): Change prototype.
9004
9005 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
9006 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
9007 and current_header_line_height first.
52283633
SM
9008 (current_mode_line_height, current_header_line_height):
9009 Declare extern.
5f0c971d 9010
d7361edf
MB
90112000-11-14 Miles Bader <miles@lsi.nec.co.jp>
9012
9013 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
9014 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
9015 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
9016
ee5e440a
MB
90172000-11-14 Miles Bader <miles@gnu.org>
9018
9019 * xterm.c (x_alloc_lighter_color): Include an additive component
9020 too for dark colors, because FACTOR isn't enough.
9021 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
9022 New macros.
9023
5ca020fc
GM
90242000-11-13 Gerd Moellmann <gerd@gnu.org>
9025
9026 * keyboard.c (show_help_echo): Call message3_nolog with number of
9027 bytes in the help string as 2nd parameter, instead of the number
9028 of characters.
9029
9d348294
MB
90302000-11-13 Miles Bader <miles@gnu.org>
9031
9032 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
9033 (Fload): Use new openp return protocol.
9034 Don't try to use Vload_source_file_function to load .elc files.
9035 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
9036 openp return protocol.
9037 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
9038
1729bb9a
KH
90392000-11-11 Kenichi Handa <handa@etl.go.jp>
9040
4e677396
KH
9041 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
9042
9043 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
9044 Defined these macros.
9045 (NLIST_STRUCT): Avoid re-defining it.
9046
1729bb9a
KH
9047 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
9048 -I/usr/contrib/X11R6/include.
9049 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
9050
a82fe213
JR
90512000-11-10 Jason Rumney <jasonr@gnu.org>
9052
9053 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
9054
9055 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
9056 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
9057
9058 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
9059 (Qw32_charset_vietnamese): New symbol.
9060 (xlfd_charset_of_font): New function.
9061 (w32_load_system_font): Use it.
9062 (x_to_w32_charset): Use Fassoc to find charset info. Special case
9063 when Vw32_charset_info_alist is nil to ensure default face always
9064 has font. Use Fcar and Fcdr for safety.
9065 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
9066 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
9067 pseudo-codepages for special cases.
9068 (w32_to_x_font): New parameter to allow charset portion to be
9069 specified where there is many to one mapping. Callers changed.
9070 (w32_list_fonts): Avoid listing fonts that won't display.
9071
52d89894
GM
90722000-11-10 Gerd Moellmann <gerd@gnu.org>
9073
9074 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
9075 (font_list_1): Renamed from font_list.
9076 (font_list): New function, trying alternative registries from
9077 Vface_alternative_font_registry_alist.
9078 (Finternal_set_alternative_font_registry_alist): New function.
9079 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
9080 Vface_alternative_font_registry_alist.
9081 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 9082
651cd3da
KR
90832000-11-09 Ken Raeburn <raeburn@gnu.org>
9084
9085 * lisp.h (Flooking_at): Declare.
9086
388ac098
GM
90872000-11-09 Gerd Moellmann <gerd@gnu.org>
9088
778fbc46 9089 * dired.c (directory_files_internal): Fix a braino.
52283633 9090
388ac098
GM
9091 * dired.c (directory_files_internal): Add missing GCPRO's.
9092 Some cleanup.
9093
ecaedde1
GM
90942000-11-08 Gerd Moellmann <gerd@gnu.org>
9095
f7eb32aa
GM
9096 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
9097 (resize_mini_window): Return quickly if Vresize_mini_window is
9098 nil. Don't return if Vmax_mini_window_height is nil.
9099
9100 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
9101 (syms_of_xdisp): Initialize them.
9102 (resize_mini_window): Act according to the setting of
9103 Vresize_mini_window.
9104 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
9105
ecaedde1
GM
9106 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
9107 scroll bar widget after configuring it, so that it will appear at
9108 the right position from the start.
9109 (XTredeem_scroll_bar): Cleaned up.
9110
3747ef2c
KH
91112000-11-08 Kenichi Handa <handa@etl.go.jp>
9112
9113 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 9114 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
9115 division by two.
9116
9117 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
9118
03391420
DL
91192000-11-07 Dave Love <fx@gnu.org>
9120
7758f1c1 9121 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
9122
9123 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
9124
b5de343d
GM
91252000-11-07 Gerd Moellmann <gerd@gnu.org>
9126
acad3c0b
GM
9127 * window.c (Fset_window_configuration): Don't try to preserve
9128 point in the current buffer, if that buffer is displayed in more
9129 than one window.
9130
b5de343d
GM
9131 * xfaces.c (lookup_named_face): If default face isn't realized,
9132 try to realize it. Return -1 if not successful.
9133 (Fx_list_fonts): Handle case that face cannot be determined.
9134 (Fface_font): Likewise.
9135
cdb1fe49
GM
91362000-11-06 Gerd Moellmann <gerd@gnu.org>
9137
9138 * window.c (displayed_window_lines): Detect partially
9139 visible lines at the bottom correctly.
9140
d3a67486
SM
91412000-11-06 Stefan Monnier <monnier@cs.yale.edu>
9142
9143 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
9144 when ensuring we don't do visit in indirect buffer.
9145
ff8dd5d5
KH
91462000-11-06 Kenichi Handa <handa@etl.go.jp>
9147
9148 * composite.h (compose_chars_in_text): Add prototype.
9149
9150 * composite.c (Vcomposition_function_table): New variable.
9151 (Qcomposition_function_table): New variable.
9152 (run_composition_function): Call
9153 Vcompose_chars_after_function with three arguments.
9154 (compose_chars_in_text): New function.
9155 (syms_of_composite): Modified the doc-string of
9156 Vcompose_chars_after_function. Declare composition-function-table
9157 as a lisp variable, and initialize it.
9158
9159 * xfns.c (x_encode_text): Suppress producing escape sequences for
9160 composition.
9161
9162 * xselect.c: Include composite.h.
9163 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
9164
d1145f85
AI
91652000-11-05 Andrew Innes <andrewi@gnu.org>
9166
9167 * w32term.c (x_produce_glyphs): Fix typo in enum name.
9168
9169 * sysdep.c (read_input_waiting): Remove extraneous argument to
9170 read_socket_hook.
9171
9172 * w32fns.c (Fx_server_version): Include w32_build_number in the
9173 return list.
9174
9175 * w32heap.c (w32_build_number): New variable.
9176 (cache_system_info): Set it.
9177
9178 * w32heap.h (w32_build_number): Add extern.
9179
9180 * emacs.c (syms_of_emacs): Update docstring for
9181 system-configuration, to reflect the actual usage on MS-Windows.
9182
e85ee976
GM
91832000-10-31 Gerd Moellmann <gerd@gnu.org>
9184
26dcb81b
GM
9185 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
9186 process idle timers while waiting for another event.
9187
52283633 9188 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
9189 the default face are colored.
9190
e85ee976
GM
9191 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
9192 window height hasn't changed.
9193
01b220b6
JR
91942000-10-31 Jason Rumney <jasonr@gnu.org>
9195
9196 * w32term.c (x_produce_glyphs): Handle composite characters.
9197 (x_draw_glyph_string_foreground)
9198 (x_draw_composite_glyph_string_foreground): Restore old font.
9199
4e6b7204
MB
92002000-10-31 Miles Bader <miles@lsi.nec.co.jp>
9201
9202 * minibuf.c (read_minibuf): Reset the undo history just before
9203 starting the recursive-edit.
9204
d4358b37
GM
92052000-10-30 Gerd Moellmann <gerd@gnu.org>
9206
563f68f1
GM
9207 * xfaces.c (menu_face_change_count): New variable.
9208 (Finternal_set_lisp_face_attribute): Increment it for changes
9209 of the `menu' face.
9210 (realize_basic_faces): Reflect changes in the `menu' faces
9211 in menu bars.
9212
82e274d1
GM
9213 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
9214 dy obtained from the iterator's y-position after moving from
9215 scroll_margin_pos to PT; see comment there.
52283633 9216
0dbf9fd2
GM
9217 * xdisp.c (safe_eval_handler): Call add_to_log.
9218
906b3b14
GM
9219 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
9220 is not a symbol or string.
9221
d4358b37
GM
9222 * xdisp.c (echo_area_display): Don't perform a display update from
9223 inside redisplay. The update will happen anyway at the end of
9224 redisplay, and it can confuse redisplay (GC messages while
9225 redisplaying, for instance.)
9226
70c825df
SM
92272000-10-30 Stefan Monnier <monnier@cs.yale.edu>
9228
cf9b4b0b
SM
9229 * xrdb.c (x_load_resources): Use the class name in the defaults.
9230
70c825df
SM
9231 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
9232 (regex_compile): Catch bogus \(\1\).
9233
a1d34b1e
GM
92342000-10-30 Gerd Moellmann <gerd@gnu.org>
9235
cae71efe
GM
9236 * xterm.c (x_alloc_nearest_color): Fix last change to compare
9237 RGB values.
52283633 9238
35efe0a1
GM
9239 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
9240 we have a color cache, check that the cached color equals the
9241 allocated color. If not, clear the color cache.
9242
1d3baf74
GM
9243 * window.c (displayed_window_lines): Change buffers if necessary.
9244 Fix computation of displayed lines.
9245
a1d34b1e
GM
9246 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
9247 update_menu_bindings to DEFVAR_BOOL.
9248
70737ea9
KH
92492000-10-30 Kenichi Handa <handa@etl.go.jp>
9250
70c825df 9251 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 9252
fa0cb51d
KH
9253 * puresize.h (BASE_PURESIZE): Increase to 680000.
9254
70737ea9
KH
9255 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
9256
0e4c08e8
JR
92572000-10-29 Jason Rumney <jasonr@gnu.org>
9258
9259 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
9260
9261 * w32term.c (w32_bdf_per_char_metric): Negate descent.
9262 (w32_cache_char_metrics): Handle possibility that 'x' does not
9263 exist in a BDF font.
9264 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
9265
9266 * w32bdf.h (bdffont): Add nchars.
9267
9268 * w32bdf.c (set_bdf_font_info): Set it.
9269 (w32_BDF_TextOut): Swap byte order of double byte characters.
9270 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
9271
45b84006
EZ
92722000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
9273
9274 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
9275 don't override the colors in frame's param_alist, unless they are
9276 unspecified.
9277
9278 * term.c (reassert_line_highlight): If inverse_video is non-zero,
9279 reverse the effect of the highlight flag.
9280
caf9deee
KR
92812000-10-27 Ken Raeburn <raeburn@gnu.org>
9282
9283 * window.h (Fwindow_live_p): Declare.
9284
ae0b9b46
KR
9285 * undo.c (record_delete): Check that last_undo_buffer is really a
9286 buffer before applying XBUFFER to it.
9287
9288 * keymap.c (where_is_internal): Pass lisp object, not integer, to
9289 Faref.
9290
02067692
SM
92912000-10-27 Stefan Monnier <monnier@cs.yale.edu>
9292
9293 * lisp.h (KEYMAPP): New macro.
9294 (get_keymap): Remove.
9295 (get_keymap_1): Rename get_keymap.
9296
9297 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
9298
9299 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
9300
9301 * xmenu.c (single_submenu): Use KEYMAPP.
9302 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
9303 Use KEYMAPP rather than Fkeymapp.
9304
9305 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
9306
9307 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
9308 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
9309 Use KEYMAPP rather than Fkeymapp.
9310 (single_submenu): Use KEYMAPP.
9311 (w32_menu_show, w32_dialog_show): Use TRUE.
9312
9313 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
9314
9315 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
9316 (Fkeymapp): Use KEYMAPP.
9317 (get_keymap): Rename from get_keymap_1. Remove old def.
9318 Return t when autoload=0 and error=0 and the keymap needs autoloading.
9319 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
9320 (Fminor_mode_key_binding): Don't raise an error if the binding
9321 is not a keymap.
9322 (Fuse_global_map, Fuse_local_map): Allow autoloading.
9323 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
9324
9325 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
9326 Allow Vspecial_event_map to be autoloaded.
9327 (menu_bar_items): Fetch the keymap rather than using keymapp.
9328 (menu_bar_one_keymap): No need to follow func-indirect any more.
9329 (parse_menu_item): get_keymap_1 -> get_keymap.
9330 (tool_bar_items): Fetch the keymap rather than using keymapp.
9331 (read_key_sequence): Use KEYMAPP.
9332
9333 * intervals.c (get_local_map): Use get_keymap rather than following
9334 function-indirections explicitly.
9335
9336 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
9337
f9d80af3
JR
93382000-10-27 Jason Rumney <jasonr@gnu.org>
9339
9340 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
9341 point, as Windows has oversized fonts.
9342
9343 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
9344
a3ba27da
GM
93452000-10-27 Gerd Moellmann <gerd@gnu.org>
9346
9347 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
9348 (freehook, reallochook): Handle null pointer arguments.
9349 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
9350
aa3b80cc
SM
93512000-10-27 Stefan Monnier <monnier@cs.yale.edu>
9352
9353 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
9354 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
9355 Giving in to popular pressure to shut up the compiler with casts.
9356
e24e84cc
GM
93572000-10-27 Gerd Moellmann <gerd@gnu.org>
9358
9359 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
9360 signed value, and use a default value computed from the font's
9361 maximum descent.
9362
05ea7ef2
MB
93632000-10-27 Miles Bader <miles@lsi.nec.co.jp>
9364
9365 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
9366 that specify a negative underline position can still use underlines.
9367
9368 * window.c (Fpos_visible_in_window_p): Make POS default to
9369 WINDOW's point, not the current buffer's point.
9370
0b95284b
DL
93712000-10-26 Dave Love <fx@gnu.org>
9372
9373 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
9374 when it's necessary.
9375
6c5b90af
GM
93762000-10-26 Gerd Moellmann <gerd@gnu.org>
9377
8b6d9dc9
GM
9378 * window.c (size_window): Compute size difference from sum of old
9379 child window sizes instead of from parent's size.
9380
6bc92b2e
GM
9381 * xdisp.c (pos_visible_p): Change current buffer if necessary.
9382 Handle obscured lines at the top of the window.
9383
9384 * frame.c (Fdelete_frame): Doc fix. Move running the hook
9385 down after the last error condition check.
9386
6c5b90af
GM
9387 * frame.c (Fdelete_frame): Run delete-frame-hook.
9388
42f92d4d
KH
93892000-10-26 Kenichi Handa <handa@etl.go.jp>
9390
9391 * coding.c (decode_coding): Fix previous change (check also
9392 CODING_MODE_LAST_BLOCK).
9393
d97151cb
SM
93942000-10-25 Stefan Monnier <monnier@cs.yale.edu>
9395
e7efc503
SM
9396 * regex.c: More `unsigned char' -> `re_char' changes.
9397 Also change several `int' into `re_wchar_t'.
9398 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
9399 (PUSH_FAILURE_POINTER): Don't cast any more.
9400 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
9401 We want GCC to complain, since this piece of code makes
9402 re_match non-reentrant, which *should* be fixed.
9403 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
9404 (EXTEND_BUFFER): Use RETALLOC.
9405 (SET_LIST_BIT): Don't cast.
9406 (re_wchar_t): New type.
9407 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
9408 that those two functions will always properly return.
9409 (IMMEDIATE_QUIT_CHECK): Cast to void.
9410 (analyse_first): Use recursion rather than an explicit stack.
9411 (re_compile_fastmap): Can't fail anymore.
9412 (re_search_2): Don't check re_compile_fastmap for failure.
9413 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
9414 Now also sets the new value (passed in a new argument).
9415 (re_match_2_internal): Use it.
9416 Also, use a new var `reg' of type size_t when looping through regs
9417 rather than reuse the inappropriate `mcnt'.
9418
d97151cb
SM
9419 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
9420 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
9421 (where_is_internal): Renamed from Fwhere_is_internal.
9422 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
9423 (Fwhere_is_internal): New function wrapping where_is_internal.
9424 (where_is_internal_1): Handle the case where we're filling the cache.
9425 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
9426
d5789b65
MB
94272000-10-25 Miles Bader <miles@gnu.org>
9428
9429 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
9430
4ecda532
GM
94312000-10-25 Gerd Moellmann <gerd@gnu.org>
9432
9433 * window.c (pos_fully_visible_p): Removed.
9434 (Fpos_visible_in_window_p): Use pos_visible_p to determine
9435 if position is visible and/or fully visible.
9436
9437 * lisp.h (pos_visible_p): Add prototype.
9438
9439 * xdisp.c (pos_visible_p): New function.
9440
68c3a137
KH
94412000-10-25 Kenichi Handa <handa@etl.go.jp>
9442
9443 * process.c (send_process): If OBJECT is t, it means that the data
9444 is from C string, but we should encode it. Before calling
9445 setup_raw_text_coding_system, be sure to flush out data by the
9446 previous coding system.
9447
7ae1c032
MB
94482000-10-25 Miles Bader <miles@lsi.nec.co.jp>
9449
ff4dcd4b
MB
9450 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
9451 assignment of startpos to prev when startpos == pos.
9452
7ae1c032
MB
9453 * editfns.c (find_field): Set the field stickiness correctly from
9454 overlay fields. Use renamed `text_property_stickiness'.
9455 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 9456 Only check text properties, not overlays.
7ae1c032
MB
9457 * textprop.c (get_char_property_and_overlay): New function.
9458 (Fget_char_property): Use it.
9459 * intervals.h (get_char_property_and_overlay): Add declaration.
9460
49801145
SM
94612000-10-25 Stefan Monnier <monnier@cs.yale.edu>
9462
9463 * keymap.c: Use AREF, ASET and ASIZE macros.
9464 (Fmake_sparse_keymap): Docstring fix.
9465 (synkey): Remove.
9466 (shadow_lookup): Move up.
9467 Handle the case where lookup-key returns an integer.
9468 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
9469 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
9470 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
9471 Simplify/rewrite the keymap-finding code.
9472 Add check for command shadowing, using shadow_lookup.
9473
39e776cd
SM
94742000-10-24 Stefan Monnier <monnier@cs.yale.edu>
9475
9476 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
9477 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
9478 a symbol.
9479
2488aba5
AI
94802000-10-24 Andrew Innes <andrewi@gnu.org>
9481
9482 * dired.c (directory_files_internal_unwind): New function.
9483 (directory_files_internal): Use it to ensure closedir is called
9484 even if expand-file-name or file-attributes throw, eg. because of
9485 a user interrupt. Also enable immediate_quit while calling
9486 re_search, so that matching can be interrupted as well.
9487
b94fdf61
AI
94882000-10-24 Andrew Innes <andrewi@gnu.org>
9489
9490 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
9491 NT-Emacs only.
9492 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
9493 so that re_search functions only quit when callers expect them to.
9494
94952000-10-24 Kenichi Handa <handa@etl.go.jp>
9496
9497 * regex.c (regex_compile): Change the way of handling a range from
9498 a char less than 256 to a char not less than 256.
9499
1946f901
GM
95002000-10-24 Gerd Moellmann <gerd@gnu.org>
9501
7ae2f10f
GM
9502 * window.c (size_window): Prevent setting window's width or
9503 height to a negative value (esp. with XSETFASTINT).
9504
5dcab13e
GM
9505 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
9506 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
9507 (protect_malloc_state) [GC_MALLOC_CHECK &&
9508 GC_PROTECT_MALLOC_STATE]: New function.
9509 (PROTECT_MALLOC_STATE): New macro.
9510 (__malloc_initialize, morecore, _malloc_internal)
9511 (_free_internal) _realloc_internal): Use it to make _heapinfo
9512 read-only outside of gmalloc.
9513
63e1b552
GM
9514 * keymap.c: Update copyright.
9515
1946f901
GM
9516 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
9517 a symbol.
9518
4fa09beb
GM
95192000-10-24 Colin Walters <walters@cis.ohio-state.edu>
9520
9521 * filelock.c (unlock_all_files): Use unlock_file to expand each
9522 buffer's file_truename before trying remove its lock file.
9523
23afac01
EZ
95242000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
9525
9526 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
9527 or CRLF, decode EOLs.
9528
04448b95
KH
95292000-10-24 Kenichi Handa <handa@etl.go.jp>
9530
9531 * window.c (Fdisplay_buffer): Fix doc.
9532
3090a5a5
JR
95332000-10-23 Jason Rumney <jasonr@gnu.org>
9534
9535 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
9536 ASCII font of default fontset on Windows.
9537
9538 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
9539 xterm.c comment below).
9540
9541 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
9542
a83fee2c
GM
95432000-10-23 Gerd Moellmann <gerd@gnu.org>
9544
9545 * xterm.c (x_connection_closed): Reset handling_signal.
9546
52283633 9547 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 9548
6ffdb539
MB
95492000-10-23 Miles Bader <miles@gnu.org>
9550
9551 * window.c (window_scroll_pixel_based, window_scroll_line_based):
9552 Pass nil for FULLY argument to Fpos_visible_in_window_p to
9553 maintain old behavior.
9554 * minibuf.c (Fminibuffer_complete): Likewise.
9555
7f1c969b
MB
95562000-10-23 Miles Bader <miles@lsi.nec.co.jp>
9557
9558 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
9559 that when a font can't be exactly centered, it errs up rather than
9560 down.
9561
23afac01 95622000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 9563
52283633 9564 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 9565
1a578e9b
AC
95662000-10-23 Andrew Choi <akochoi@i-cable.com>
9567
9568 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
9569
9570 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 9571 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
9572
9573 * emacs.c (main) [macintosh]: Call syms_of_textprop,
9574 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
9575 syms_of_search, x_term_init, and init_keyboard before calling
9576 init_window_once. Also, call syms_of_xmenu.
9577
9578 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
9579 default fontset to Monaco.
9580
9581 * frame.c [macintosh]: Include macterm.h. Remove declarations of
9582 NewMacWindow and DisposeMacWindow.
9583 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
9584 instead of calling NewMacWindow and setting fields of
9585 f->output_data.mac directly. Call init_frame_faces.
9586 (Fdelete_frame) [macintosh]: Remove unused code.
9587 (Fmodify_frame_parameters) [macintosh]: Call
9588 x_set_frame_parameters instead of mac_set_frame_parameters.
9589
9590 * frame.h [macintosh]: Define menu_bar_lines field in struct
9591 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
9592
9593 * keyboard.c [macintosh]: Include macterm.h.
9594 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
9595 and menu_bar_activate_event type events as for X and NT.
9596 (make_lispy_event) [macintosh]: Construct lisp events of type
9597 MENU_BAR_EVENT as for X and NT.
9598
9599 * sysdep.c [macintosh]: Remove declaration for sys_signal.
9600 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
9601 (sys_subshell) [macintosh]: Remove definition entirely.
9602 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
9603 Vwindow_system_version here. Remove initialization of
9604 Vx_bitmap_file_path.
9605 (read_input_waiting): Correct the number of parameters passed to
9606 read_socket_hook.
9607 Move all Macintosh functions to mac/mac.c.
9608
9609 * term.c [macintosh]: Include macterm.h.
9610
9611 * window.c [macintosh]: Include macterm.h.
9612
9613 * xdisp.c [macintosh]: Include macterm.h. Declare
9614 set_frame_menubar and pending_menu_activation.
9615 (echo_area_display) [macintosh]: Do not return if terminal frame
9616 is the selected frame.
9617 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
9618 Allow only the selected frame to set menu bar.
9619 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
9620 calling FRAME_EXTERNAL_MENU_BAR (f).
9621 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
9622
9623 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
9624 and check_x. Declare XCreateGC. Define x_create_gc and
9625 x_free_gc. Initialize font_sort_order.
9626 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
9627 but call x_list_fonts instead of w32_list_fonts.
9628 (Finternal_face_x_get_resource) [macintosh]: Do not call
9629 display_x_get_resource.
9630 (prepare_face_for_display) [macintosh]: Set xgcv.font.
9631 (realize_x_face) [macintosh]: Load the font if it is specified in
9632 ATTRS.
52283633 9633 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 9634
1ffbabe3
SM
96352000-10-22 Stefan Monnier <monnier@cs.yale.edu>
9636
9637 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
9638 is nil: since we go to the end of submap anyway, we'd end up
9639 setting nil to nil.
9640 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
9641 doesn't obey autoload.
9642
bed43f1d
EZ
96432000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
9644
1ffbabe3 9645 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 9646
ea4233a7
JR
96472000-10-21 Jason Rumney <jasonr@gnu.org>
9648
9649 * w32term.c (w32_cache_char_metrics): Double check that font is
9650 really fixed pitch before trusting tmPitchAndFamily.
9651
f3d3c491
AI
96522000-10-21 Andrew Innes <andrewi@gnu.org>
9653
9654 * w32gui.h (w32_char_font_type): Move enum from w32term.c
9655
9656 * w32term.h: Extern decl for w32_cache_char_metrics.
9657
9658 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
9659
9660 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
9661 (w32_unload_font): Free per_char array if present.
9662
9663 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
9664 cached information in emulated XFontStruct to handle common cases
9665 quickly. Do not allocate XCharStruct for return.
9666 (w32_native_per_char_metric): New function.
9667 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
9668 allocating one.
9669 (x_produce_glyphs): Don't get an HDC. Change calls to
9670 w32_per_char_metric to match arg change above. Remove calls to
9671 free results.
9672 (w32_get_glyph_overhangs): Ditto.
9673 (w32_cache_char_metrics): New function.
9674
9675 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
9676 ($(BLD)/casefiddle.$(O)): Remove compile command.
9677 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
9678 ($(BLD)/dispnew.obj):
9679 ($(BLD)/keyboard.obj):
9680 ($(BLD)/w32inevt.obj):
9681 ($(BLD)/w32bdf.obj):
9682 ($(BLD)/alloc.obj):
9683 ($(BLD)/buffer.obj):
9684 ($(BLD)/editfns.obj):
9685 ($(BLD)/emacs.obj):
9686 ($(BLD)/fileio.obj):
9687 ($(BLD)/fns.obj):
9688 ($(BLD)/indent.obj):
9689 ($(BLD)/insdel.obj):
9690 ($(BLD)/intervals.obj):
9691 ($(BLD)/minibuf.obj):
9692 ($(BLD)/print.obj):
9693 ($(BLD)/scroll.obj):
9694 ($(BLD)/sysdep.obj):
9695 ($(BLD)/textprop.obj):
9696 ($(BLD)/widget.obj):
f3d3c491
AI
9697 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
9698 ($(BLD)/term.obj): Add dependency on dispextern.h.
9699
52283633
SM
9700 * makefile.nt ($(BLD)\dispnew.obj):
9701 ($(BLD)\keyboard.obj):
9702 ($(BLD)\w32inevt.obj):
9703 ($(BLD)\w32bdf.obj):
9704 ($(BLD)\alloc.obj):
9705 ($(BLD)\buffer.obj):
9706 ($(BLD)\editfns.obj):
9707 ($(BLD)\emacs.obj):
9708 ($(BLD)\fileio.obj):
9709 ($(BLD)\fns.obj):
9710 ($(BLD)\indent.obj):
9711 ($(BLD)\insdel.obj):
9712 ($(BLD)\intervals.obj):
9713 ($(BLD)\minibuf.obj):
9714 ($(BLD)\print.obj):
9715 ($(BLD)\scroll.obj):
9716 ($(BLD)\sysdep.obj):
9717 ($(BLD)\textprop.obj):
9718 ($(BLD)\widget.obj):
f3d3c491
AI
9719 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
9720 ($(BLD)\term.obj): Add dependency on dispextern.h
9721
18ad4821
EZ
97222000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
9723
9724 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
9725 with an additional argument of Qt.
9726
de54681a
MB
97272000-10-21 Miles Bader <miles@gnu.org>
9728
9729 * window.c (pos_fully_visible_in_window_p): New function.
9730 (Fpos_visible_in_window_p): Add FULLY argument.
9731 Use pos_fully_visible_in_window_p.
9732 (window_scroll_pixel_based, window_scroll_line_based): Update
9733 calls to Fpos_visible_in_window_p.
9734 * lisp.h (Fpos_visible_in_window_p): Update prototype
9735
13c844fb
GM
97362000-10-20 Gerd Moellmann <gerd@gnu.org>
9737
9738 * alloc.c (toplevel): Conditionalize compilation of mem_*
9739 functions differently.
52283633 9740
d9506268
JR
97412000-10-20 Jason Rumney <jasonr@gnu.org>
9742
9743 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
9744 mem_init where it used to be. mem_z etc not defined otherwise.
9745
8094989b
GM
97462000-10-20 Gerd Moellmann <gerd@gnu.org>
9747
9748 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
9749 GC_MALLOC_CHECK.
9750 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
9751 structure definition and related variabled to the top of the file.
9752 Include this code when GC_MALLOC_CHECK is defined.
9753 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
9754 register/unregister allocated region.
9755 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
9756 which isn't allocated.
9757 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
9758 something which is already in use.
9759 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
9760 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
9761 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
9762 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
9763
9764 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
9765 _malloc_internal instead of malloc.
9766 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
9767 of free.
9768
ea456eb4
AI
97692000-10-20 Andrew Innes <andrewi@gnu.org>
9770
9771 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
9772 Windows.
9773 (my_strftime) <macro>: Don't use macro arg list when redefining as
9774 _strftime_copytm.
9775 (my_strftime) <function>: Supply 0 as ut argument.
9776
e64c3a75
JR
97772000-10-19 Jason Rumney <jasonr@altavista.net>
9778
9779 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
9780 including dispextern.h, as it stops faces from working.
9781
9782 * w32fns.c (Fx_create_frame): Don't bother calling
9783 face-set-after-frame-default since the caller does it for us
9784 anyway. Clean up calls to x_get_arg to be consistent with X.
9785
9786 * w32term.c (x_produce_glyphs): Handle
9787 unibyte_display_via_language_environment correctly.
9788 (w32_draw_box_rect): Fix the calculation of width and height.
9789
9790 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
9791 as it has stopped working.
9792 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
9793 menu-bar.
9794
17401c97
GM
97952000-10-19 Gerd Moellmann <gerd@gnu.org>
9796
9797 * eval.c (skip_debugger): Prevent a compiler warning.
9798 (Fcondition_case): Likewise.
9799 (Fbacktrace_frame): Use a null interactive spec.
9800
773272d8
KH
98012000-10-19 Kenichi Handa <handa@etl.go.jp>
9802
9803 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
9804
a42943e9
GM
98052000-10-18 Gerd Moellmann <gerd@gnu.org>
9806
e50517d9
GM
9807 * strftime.c: Sync with glibc, file version 1.78.
9808 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
9809 should no longer be used according to ISO 8601.
9810
9035a35a
GM
9811 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
9812 no map for meta_prefix_char, don't try to use it as a keymap.
9813 Instead, if T_OK is non-zero, look up a default binding, if any,
9814 otherwise, if T_OK is zero, return nil.
9815
a42943e9
GM
9816 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
9817 (x_to_xcolors, png_load): Use x_query_color.
9818
52283633
SM
9819 * xterm.c (x_color_cells, x_query_colors, x_query_color):
9820 New functions.
a42943e9
GM
9821 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
9822 which can be slow.
9823 (x_copy_color, x_alloc_lighter_color): Likewise.
9824
9825 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
9826 (x_query_color, x_query_colors): Add prototype.
9827
9828 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
9829 check_string_bytes only if not noninteractive, increase count to 50.
9830
00de2987
MB
98312000-10-18 Miles Bader <miles@lsi.nec.co.jp>
9832
9833 * insdel.c (adjust_markers_for_delete): Handle before-insertion
9834 markers correctly.
9835
54918e2b
GM
98362000-10-17 Gerd Moellmann <gerd@gnu.org>
9837
1f0b3fd2
GM
9838 * alloc.c (pure_bytes_used): Renamed from pureptr.
9839 (ALIGN): New macro.
9840 (pure_alloc): New function.
9841 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
9842 Use it.
9843 (Fpurecopy): Use PURE_POINTER_P.
9844
68c5d1db
GM
9845 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
9846 PT has moved backward.
52283633 9847
9a038881
GM
9848 * xdisp.c (cursor_row_p): Take continued lines into account.
9849
361b097f
GM
9850 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
9851 string's size_byte.
9852 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
9853 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
9854 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
9855 string allocated.
9856
54918e2b
GM
9857 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
9858 of selective display off while searching for the next line start.
9859
03ed0806
KH
98602000-10-17 Kenichi Handa <handa@etl.go.jp>
9861
9862 * Makefile.in (term.o): Depend on dispextern.h.
9863
7e05cdaf
SM
98642000-10-16 Stefan Monnier <monnier@cs.yale.edu>
9865
9866 * keymap.c (keymap_memberp): Ensure that nil is not a member.
9867
a6801fd1
GM
98682000-10-16 Gerd Moellmann <gerd@gnu.org>
9869
483de32b
GM
9870 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
9871 the iterator at the beginning, so that they can be set later on,
9872 for instance in reseat_at_next_visible_line_start, without being
9873 overwritten.
9874
a6801fd1
GM
9875 * xfns.c (pbm_format): Add :foreground and :background keywords.
9876 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 9877 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 9878
dbf1fcc1
EZ
98792000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
9880
9881 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
9882
52283633 9883 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
9884
9885 * msdos.c (IT_set_face): Compare highlighted face with the default
9886 face, and invert colors if these faces' colors are identical.
9887 (Fmsdos_remember_default_colors): Don't swap foreground and
9888 background colors in initial_colors[].
9889 (IT_set_frame_parameters): Don't swap frame's foreground and
9890 background pixels. If ALIST includes "(reverse . t)", swap
9891 foreground-color and background-color properties in frame's
9892 param_alist. If the original frame's param_alist doesn't specify
9893 the colors, store unspecified-fg and unspecified-bg, reversed if
9894 required.
9895
9896 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
9897 the colors are unspecified and reversed, reverse fore- and back-
9898 ground in the returned value.
9899 (Fframe_parameter): Ditto.
9900
b41fe2c3 99012000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 9902
3a6b59d9
GM
9903 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
9904 get_last_unchanged_at_beg_row.
9905 (find_first_unchanged_at_end_row): Renamed from
9906 get_first_unchanged_at_end_row.
9907 (find_first_unchanged_at_end_row): Convert assertions to
9908 unconditional tests which abort. When looking for a row in
9909 unchanged text, don't go further back than first_text_row.
9910
b41fe2c3
GM
9911 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
9912 Don't add in the last line's height when deciding if the new
9913 position is below the scroll margin.
9d1af64f 9914
b41fe2c3 99152000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
9916
9917 * editfns.c (Fconstrain_to_field): Check carefully for field
9918 boundaries if either OLD_POS or NEW_POS has a non-nil field
9919 property, even if they're the same.
9920
c412cb7b
KH
99212000-10-16 Kenichi Handa <handa@etl.go.jp>
9922
9923 * xterm.c (x_draw_box_rect): Fix the calculation of width and
9924 height for XFillRectangle.
9925
5586f3eb
SM
99262000-10-15 Stefan Monnier <monnier@cs.yale.edu>
9927
9928 * syntax.c (Fstring_to_syntax): New function extracted from
9929 Fmodify_syntax_entry.
9930 (Fmodify_syntax_entry): Use it and document the ! and | fences.
9931 (skip_chars, Fforward_comment): Remove unused variables.
9932 (syms_of_syntax): Add defsubr for string-to-syntax.
9933 (describe_syntax): Add code for comment and string fences.
9934
db785038
SM
99352000-10-14 Stefan Monnier <monnier@cs.yale.edu>
9936
9937 * keymap.c (access_keymap): Add AUTOLOAD parameter.
9938 Do the meta->esc mapping. Call get_keyelt before returning.
9939 Start scanning from the second element (the first is always `keymap')
9940 to make it easier to detect when we reach a parent map.
9941 Handle the case of inheriting from a symbol whose function is a map.
9942 (Fkeymap_parent): Also handle the `inherit from symbol' case.
9943 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
9944 (get_keyelt, Flookup_key): Update call to access_keymap.
9945 Remove the meta->esc mappings.
9946 (define_as_prefix): Delete old disabled code.
9947 (menu_item_p): New function.
9948 (where_is_internal_1): Skip over the few remaining menu items.
9949 * lisp.h (access_keymap): Update prototype.
9950 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
9951 Update call to access_keymap.
9952 (follow_key, read_key_sequence): Update calls to access_keymap.
9953 Remove the meta->esc mappings.
9954
cafafe0b
GM
99552000-10-13 Gerd Moellmann <gerd@gnu.org>
9956
a2e2a7f6
GM
9957 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
9958 with additional argument.
9959
cafafe0b
GM
9960 * xdisp.c (cursor_row_p): New function.
9961 (try_cursor_movement, display_line): Use it.
52283633 9962
cafafe0b
GM
9963 * xdisp.c (append_space): Also save/restore iterator's current
9964 character and its length.
9965
9966 * xdisp.c (init_from_display_pos): Add an assertion.
9967 (handle_stop): Don't set iterator's add_overlay_start.
9968 (handle_invisible_prop): Likewise.
9969 (load_overlay_strings): If text under an overlay is invisible,
9970 take both before- and after-strings into account when the iterator
9971 is positioned either at the start or at the end of the overlay.
9972 (forward_to_next_line_start): Rewritten.
9973 (reseat_at_next_visible_line_start): Rewritten.
9974 (set_iterator_to_next): Add parameter RESEAT_P.
9975
9976 * dispextern.h (struct it): Remove member add_overlay_start.
9977 (set_iterator_to_next): Change prototype.
9978
c744452b
KH
99792000-10-13 Kenichi Handa <handa@etl.go.jp>
9980
9981 * coding.c (code_convert_region): Be sure to initialize
9982 coding->category_idx.
e4a3f4e1
KH
9983 (decode_coding_string): Set coding->src_multibyte and
9984 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
9985 (encode_coding_string): Set coding->src_multibyte and
9986 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 9987
321fd26f
SM
99882000-10-12 Stefan Monnier <monnier@cs.yale.edu>
9989
9990 * xfns.c (Fx_create_frame): Don't bother calling
9991 face-set-after-frame-default since the caller does it for us anyway.
9992
76832439
EZ
99932000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
9994
9995 * window.c (coordinates_in_window): Fix detection of vertical line
9996 on character terminals.
9997
2483cf58
GM
99982000-10-12 Gerd Moellmann <gerd@gnu.org>
9999
10000 * editfns.c (save_excursion_save): Additionally record the
10001 selected window.
10002 (save_excursion_restore): If buffer was visible in a window, and a
10003 different window was selected, and the old selected window is
10004 still live, restore point in that window.
10005
eb991b25
KH
100062000-10-12 Kenichi Handa <handa@etl.go.jp>
10007
8a0eba09
KH
10008 * xterm.c (x_produce_glyphs): Handle
10009 unibyte_display_via_language_environment correctly.
10010
20401fcc
KH
10011 * regex.c (regex_compile): Change the way of handling a range from
10012 unibyte char to multibyte char.
10013
10014 * syntax.c (skip_chars): Change the way of handling a range from
10015 unibyte char to multibyte char.
10016
eb991b25
KH
10017 * process.c (read_process_output): Cancel previous change.
10018
365dd325
EZ
100192000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
10020
c1b096cb
EZ
10021 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
10022
365dd325
EZ
10023 * charset.c (Ffind_charset_string): Doc fix.
10024 (Ffind_charset_region): Doc fix.
10025
eb483c2b
KH
100262000-10-11 Kenichi Handa <handa@mule.m17n.org>
10027
10028 * process.c (read_process_output): Fix previous change. Adjust
10029 multibyteness of text to insert in a buffer by
52283633 10030 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 10031
b40bfb99
AS
100322000-10-10 Andreas Schwab <schwab@suse.de>
10033
10034 * alloc.c (mark_object): Remove all workarounds installed on
10035 1993-08-08.
10036
caff31d4
KH
100372000-10-10 Kenichi Handa <handa@etl.go.jp>
10038
52283633 10039 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
10040 (base64_encode_1): Make it work for a text of multibyte form.
10041 (Fbase64_decode_region): Allocate sufficient memory for multibyte
10042 case. Don't call str_to_multibyte because base64_decode_1
10043 produces correct multibyte form for eight-bit codes.
52283633 10044 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
10045 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
10046 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
10047 codes.
10048
10049 * charset.h (CHAR_STRING): Optimized for single byte characters.
10050
cba026ef
AS
100512000-10-09 Andreas Schwab <schwab@suse.de>
10052
10053 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
10054 -1 after socket is closed, to fall through to error processing.
10055
1e21fe48
EZ
100562000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
10057
10058 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 10059 variables. If ALIST includes foreground-color or
1e21fe48
EZ
10060 background-color, change also the colors of the default face for
10061 this frame.
10062
a640322e
EZ
100632000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
10064
10065 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
10066 them extern (they are defined on xfaces.c).
10067 (syms_of_msdos): Don't intern and don't staticpro
10068 Qbackground_color and Qforeground_color.
10069
a115794c
EZ
100702000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
10071
10072 * frame.c (Fframe_parameter): For non-windowed frames, if
10073 f->param_alist says foreground or background color is unspecified,
10074 call tty_color_name to return the color name computed from the
10075 frame's current colors.
10076
f5533b63
DL
100772000-10-06 Dave Love <fx@gnu.org>
10078
10079 * terminfo.c (ospeed): Don't declare.
10080
10081 * sysdep.c: Don't include string.h.
10082 (h_errno): Declare conditional also on TRY_AGAIN.
10083
10084 * charset.c (Ffind_charset_string): Doc fix.
10085
52283633 10086 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
10087 (Fbase64_decode_region, Fbase64_decode_string): More explicit
10088 error messages.
10089
2b06561a
DL
100902000-10-05 Dave Love <fx@gnu.org>
10091
10092 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
10093 position like menu-bar.
10094
ca839c85
GM
100952000-10-05 Gerd Moellmann <gerd@gnu.org>
10096
10097 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
10098
10099 * xdisp.c (handle_single_display_prop): Use safe_call1.
10100 (safe_call): Renamed from call_function.
10101 (safe_call1): New function.
10102 (handle_fontified_prop): Use safe_call1 instead of call1.
10103 (safe_eval): Renamed from eval_form.
10104 (safe_eval_handler): Renamed from eval_handler.
10105 (handle_single_display_prop, display_mode_element): Use safe_eval
10106 instead of eval_form.
10107
10108 * xfaces.c (merge_face_heights): Use safe_call instead of
10109 call_function.
10110
10111 * keyboard.c (show_help_echo): Use safe_call instead of
10112 call_function; use safe_eval instead of eval_form.
10113
10114 * lisp.h (safe_call): Renamed from call_function.
10115 (safe_eval): Renamed from eval_form.
10116 (safe_call1): Add prototype.
10117
a3489ece
MB
101182000-10-05 Miles Bader <miles@lsi.nec.co.jp>
10119
10120 * xfns.c (image_ascent): Rearrange ascent calculation for the
10121 has-a-font case.
10122
35810b6f
SM
101232000-10-04 Stefan Monnier <monnier@cs.yale.edu>
10124
10125 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
10126 (where_is_internal_1): Don't bother ignoring menu-items any more.
10127
3dc78168
GM
101282000-10-04 Gerd Moellmann <gerd@gnu.org>
10129
10130 * keyboard.c (update_menu_bindings): New variable.
10131 (parse_menu_item): Use AREF. If update_menu_bindings
10132 is 0, don't update menu bindings.
10133 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
10134
1efc2bb9
EZ
101352000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
10136
10137 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
10138 to `mark_object'.
10139
3f679f55
SM
101402000-10-02 Stefan Monnier <monnier@cs.yale.edu>
10141
10142 * syntax.c (forw_comment): Match nestedness of ender/starter.
10143 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
10144 (prev_char_comstart_first): Remove.
10145 (back_comment): Check two-char comment markers more carefully
10146 to better handle overlapping cases like *//* or /* */* */ ...
10147 Match nestedness of ender/starter.
10148
2021ab61
DL
101492000-10-02 Dave Love <fx@gnu.org>
10150
10151 * config.in (HAVE_GAI_STRERROR): Add undef.
10152
10153 * process.c (Fopen_network_stream): Use it.
10154
10155 * m/alpha.h (NO_REMAP): Don't define.
10156
64e6cc18
GM
101572000-10-02 Gerd Moellmann <gerd@gnu.org>
10158
10159 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
10160 return with a string converted to an integer or vice versa when
10161 Vmocklisp_arguments is t.
10162 (Fsignal): Likewise. The function can return for `quit'.
10163 (struct gcpro): Declare member `var' to point to a volatile
10164 Lisp_Object.
10165
10166 * eval.c (error): Prevent compiler warning.
10167
b1904cd9
SM
101682000-09-30 Stefan Monnier <monnier@cs.yale.edu>
10169
10170 * keymap.c (keymap_memberp): New function.
10171 (Fset_keymap_parent): Use it.
10172 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
10173 Use keymap_memberp to avoid creating cycles.
10174 (access_keymap): Use KEYMAPP.
10175
71c9ec51
GM
101762000-09-30 Gerd Moellmann <gerd@gnu.org>
10177
10178 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
10179 gai_strerror. Make sure xerrno is set if connect fails. Improve
10180 error recovery.
71c9ec51 10181
c70c6b58
JR
101822000-09-29 Jason Rumney <jasonr@gnu.org>
10183
10184 * w32term.c (w32_char_font_type, w32_encode_char)
10185 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
10186 (w32_bdf_per_char_metric): New function.
10187 (w32_per_char_metric): Use it.
10188 (x_draw_glyph_string_background): Always draw background for BDF
10189 glyphs.
10190
10191 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
10192 GDI object which is a scarce resource.
10193
10194 * w32bdf.c (search_file_line): Fix skipping of whitespace.
10195 (get_quoted_string): Fix limit on memchr search.
10196 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
10197 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
10198 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
10199 (get_cached_font_char, cache_char_offset): Use macro
10200 BDF_CODEPOINT_RANGE_COVER_P.
10201 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
10202 (clear_cached_bitmap_slots): New function.
10203 (GET_HEX_VALUE): G-Z, g-z are not hex.
10204 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
10205 (get_bitmap_with_cache): Use new cache implementation.
10206 (create_offscreen_bitmap): New function.
10207 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
10208
10209 * w32term.c (x_produce_glyphs): If the distance from the current
10210 position to the next tab stop is less than a canonical character
10211 width, use the tab stop after that.
10212 (x_draw_glyphs): Handle case START and END are out of bounds more
10213 carefully.
10214 (x_clear_mouse_face): Block/unblock input.
10215 (x_display_and_set_cursor): Don't show a hollow box cursor for
10216 buffers whose cursor_type is nil.
10217
fe01239f
GM
102182000-09-29 Gerd Moellmann <gerd@gnu.org>
10219
52283633 10220 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
10221
10222 * dispextern.h (updating_frame): Declare extern.
10223
e7c52f1f
AS
102242000-09-29 Andreas Schwab <schwab@suse.de>
10225
10226 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
10227
de6e1f7c
GM
102282000-09-29 Gerd Moellmann <gerd@gnu.org>
10229
25126faa
GM
10230 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
10231 use its function definition.
10232 (tool_bar_items): Likewise.
10233
de6e1f7c 10234 * lisp.h (fatal): Declare NO_RETURN.
52283633 10235
454ee39b
KH
102362000-09-29 Kenichi Handa <handa@etl.go.jp>
10237
10238 * keymap.c: Remove the line "#undef NULL".
10239
96301c5f
GM
102402000-09-28 Gerd Moellmann <gerd@gnu.org>
10241
52283633 10242 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 10243
efffeeb4
DL
102442000-09-28 Dave Love <fx@gnu.org>
10245
ecb8b666
DL
10246 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
10247
dc3cd20f
DL
10248 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
10249
10250 * .gdbinit (xreload): Note its need on GNU/Linux.
10251
efffeeb4
DL
10252 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
10253 r_alloc, r_alloc_free.
10254
8610d903
KH
102552000-09-28 Kenichi Handa <handa@etl.go.jp>
10256
10257 * syntax.c (skip_chars): Handle negation correctly.
10258
8901d1ac
GM
102592000-09-27 Gerd Moellmann <gerd@gnu.org>
10260
6f22f1ad
GM
10261 * xfaces.c (realize_default_face): Call set_lface_from_font_name
10262 with non-zero FORCE_P argument.
10263
52283633 10264 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
10265 Add assertions.
10266
10267 * xdisp.c (window_box_height): Add an assertion.
10268
10269 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
10270 tool-bar than is available.
10271 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
10272
36f1966f
DL
102732000-09-27 Dave Love <fx@gnu.org>
10274
efffeeb4 10275 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 10276
31d929e5
GM
102772000-09-26 Gerd Moellmann <gerd@gnu.org>
10278
c98863bf
GM
10279 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
10280 instead of BITS_PER_INT.
10281 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
10282 EMACS_UINT, respectively.
10283 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
10284
10285 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
10286
10287 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
10288
77072ab1
GM
10289 * window.c (freeze_window_starts): Construct last argument for
10290 foreach_window differently.
10291
10292 * xfns.c (x_decode_color): Don't return a Lisp_Object.
10293
10294 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
10295 EMACS_UINT instead of `int' and `unsigned int'.
10296 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
10297
10298 * frame.h (struct frame): Make the `nothing' member of union
10299 output_data an EMACS_INT.
10300
52283633 10301 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
10302 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
10303 size in the sdata structure.
10304 (SDATA_NBYTES, SDATA_DATA): New macros.
10305 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
10306 differently for the different layout of the sdata structure.
10307 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
10308 in sdata.
10309 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
10310 Check that size recorded in the string size and size recorded in
10311 the sdata structure agree.
10312
3e60b029
DL
103132000-09-25 Dave Love <fx@gnu.org>
10314
10315 * buffer.c: Include stdio.h.
10316
10317 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 10318
3e60b029
DL
10319 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
10320
10321 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 10322 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
10323 (__malloc_extra_blocks): Declare as __malloc_size_t.
10324
8ff16b4e
GM
103252000-09-25 Gerd Moellmann <gerd@gnu.org>
10326
755a2ccd
GM
10327 * alloc.c (mark_image): Use GC_NILP instead of NILP.
10328
d8b4516f
GM
10329 * keyboard.c (show_help_echo): Set help_echo_showing_p.
10330 (read_char): If help-echo is showing, preserve the echo area
10331 when redisplaying.
10332
10333 * xdisp.c (help_echo_showing_p): New variable.
10334 (set_message): Reset it to 0.
10335 (init_xdisp): Initialize help_echo_showing_p.
10336
10337 * dispextern.h (help_echo_showing_p): Declare extern.
10338
10339 * config.in: Fix typo in __GNUC_MINOR__.
10340
10341 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
10342
b11af2dd
GM
10343 * s/freebsd.h (POSIX_SIGNALS): Define.
10344
8ff16b4e
GM
10345 * xterm.c (x_clear_mouse_face): Block/unblock input.
10346
844eb643
DL
103472000-09-24 Dave Love <fx@gnu.org>
10348
10349 * fns.c (base64_encode_1): Fix last change.
10350
b30ab1b3
GM
103512000-09-22 Gerd Moellmann <gerd@gnu.org>
10352
10353 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
10354
10355 * xdisp.c (try_window_reusing_current_matrix): More fixes
10356 for the case window has a header-line.
10357
c6cbe5f0
DL
103582000-09-22 Dave Love <fx@gnu.org>
10359
4c7c1f3f
DL
10360 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
10361 a doc string.
10362
10363 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
10364
c6cbe5f0
DL
10365 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
10366
550a625e
GM
103672000-09-21 Gerd Moellmann <gerd@gnu.org>
10368
4c7c1f3f 10369 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
10370 for GCC >= 2.5.
10371
52283633
SM
10372 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
10373 Declare NO_RETURN.
fca99116 10374
80d26f99
GM
10375 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
10376 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
10377 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
10378 warnings.
52283633 10379
80d26f99
GM
10380 * marker.c (byte_char_debug_check): Return void.
10381
623a0aae
GM
10382 * xfns.c (Fx_create_frame): Set default frame parameter value
10383 for tool-bar-lines to 1.
10384
10385 * dispnew.c (scrolling_window): Compare y-positions of rows
10386 equal at the start. Some simplification.
10387
10388 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
10389 reused rows' y-position in the case window has a header-line, and
10390 new window start is greater than old window start.
10391
42ac0ae5
GM
10392 * process.c (process_sent_to): New variable.
10393 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
10394 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
10395 Declare more parameters volatile.
10396
550a625e
GM
10397 * lread.c (Vrecursive_load_depth_limit): New variable.
10398 (Fload): Check recursive loads whose recursion depth exceeds
10399 Vrecursive_load_depth_limit.
10400 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
10401
8320414c
GM
104022000-09-20 Gerd Moellmann <gerd@gnu.org>
10403
f46c275e
GM
10404 * fileio.c (Fread_file_name): Doc fix.
10405
10406 * editfns.c (Fmessage_or_box): Doc fix.
10407
10408 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
10409
b7e11c5b 10410 * xfns.c (xbm_scan): Allow C-style comments.
52283633 10411
8320414c
GM
10412 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
10413 symbols are specified, add color translations to the cache.
52283633 10414 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
10415 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
10416 xpm_cache_color.
10417 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
10418 structures to xpm_init_color_cache.
10419
da1608d9
GM
104202000-09-19 Gerd Moellmann <gerd@gnu.org>
10421
52283633 10422 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 10423
6badfa25
AI
104242000-09-19 Andrew Innes <andrewi@gnu.org>
10425
10426 * makefile.nt (bootstrap-emacs): Don't change directory.
10427
3a5f42bb
KH
104282000-09-19 Kenichi Handa <handa@etl.go.jp>
10429
1b7649bd
KH
10430 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
10431
3a5f42bb
KH
10432 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
10433 If output buffer is too small, signal an appropriated error.
10434
9f83cf0b
DL
104352000-09-18 Dave Love <fx@gnu.org>
10436
52283633 10437 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
10438 (current_active_maps): Remove redundant get_local_map call.
10439
28c7826c
GM
104402000-09-18 Gerd Moellmann <gerd@gnu.org>
10441
5cefa566
GM
10442 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
10443 cursor for buffers whose cursor_type is nil.
52283633 10444
6fed3546
GM
10445 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
10446 a feature to implement that is already implemented.
10447 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
10448 warnings.
10449
10450 * xfns.c (x_clear_image_1): New function.
10451 (x_clear_image): Use it.
52283633 10452 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 10453
05b1f851
GM
10454 * dispnew.c (update_window): Move test for invisible lines
10455 at the top to update_window_line.
10456 (update_window_line): Handle invisible lines here.
10457
f4779de9
GM
10458 * xfns.c (clear_image_cache): Clear current matrices of all
10459 frames sharing an image cache. Block input while freeing
10460 images. Fix timestamp comparison.
10461 (x_clear_image): Also free the mask.
10462
28c7826c
GM
10463 * xfns.c (lookup_image): Block input while loading the image so
10464 that we won't get interrupted in a state where the image isn't yet
10465 set up completely.
10466 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
10467 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
10468 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 10469 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 10470
b7412313
GM
104712000-09-16 Gerd Moellmann <gerd@gnu.org>
10472
10473 * dispnew.c (update_window): Make sure to make desired rows
10474 current even if they are completely invisible at the top
10475 of a window.
10476
47e351a3
GM
104772000-09-15 Gerd Moellmann <gerd@gnu.org>
10478
7f8f1edc
GM
10479 * xfns.c (lookup_image): Build mask before applying an algorithm.
10480 Recognize algorithm `disabled'.
10481 (cross_disabled_images): New variable.
10482 (COLOR_INTENSITY): New macro.
10483 (x_detect_edges): Use COLOR_INTENSITY.
10484 (x_disable_image): New function.
10485 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
10486
10487 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
10488 disabled state, don't apply an image transformation algorithm if
10489 the user specified an image for the disabled state. Use
28c7826c 10490 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
10491 user hasn't specified an image.
10492
ebb8f116
GM
10493 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
10494 allocation functions with the XPM lib.
10495 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
10496 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
10497 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
10498 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 10499 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
10500 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
10501 functions, if possible, because these handle color allocation
10502 failure more gracefully.
10503 (Fimage_mask_p): New function.
10504
47e351a3
GM
10505 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
10506 (Qedge_detection, Qheuristic): New symbols.
10507 (syms_of_xfns): Initialize new symbols.
10508 (lookup_image): Handle `:mask X', `:algorithm emboss', and
10509 `algorithm (edge-detection ...)'.
10510 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
10511 (tiff_format, gif_format, gs_format): Add `:mask'.
10512 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
10513 (GIF_MASK, GS_MASK): New enumerators.
10514 (x_laplace_read_row, x_laplace_write_row): Functions removed.
10515 (emboss_matrix, laplace_matrix): New variables.
10516 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
10517 (x_edge_detection): New functions.
10518 (x_laplace): Rewritten in terms of x_detect_edges.
10519 (x_build_heuristic_mask): If image has a mask, free it.
10520
fe83b953
AI
105212000-09-14 Andrew Innes <andrewi@gnu.org>
10522
10523 * makefile.w32-in: Revert to Unix line endings.
10524
3021e816
AI
105252000-09-14 Andrew Innes <andrewi@gnu.org>
10526
10527 * makefile.w32-in: Standardize indentation somewhat.
10528 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
10529 cater for differences between shells.
10530
10531 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
10532
2a32b5ea
GM
105332000-09-14 Gerd Moellmann <gerd@gnu.org>
10534
10535 * xterm.c (x_produce_glyphs): If the distance from the current
10536 position to the next tab stop is less than a canonical character
10537 width, use the tab stop after that.
10538
b4331e96
DL
105392000-09-14 Dave Love <fx@gnu.org>
10540
10541 * buffer.c (alloc_buffer_text): Fix xmalloc call.
10542
ef9e4345
GM
105432000-09-14 Gerd Moellmann <gerd@gnu.org>
10544
085536c2
GM
10545 * xdisp.c (handle_fontified_prop): While running fontification
10546 functions, bind `fontification-functions' and
10547 `after-change-functions' to nil.
10548
ef9e4345
GM
10549 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
10550 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
10551
10552 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
10553
10554 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
10555 USE_MMAP_FOR_BUFFERS.
10556
10557 * insdel.c (make_gap): Use enlarge_buffer_text.
10558
10559 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
10560 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
10561 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
10562 from former r_alloc_* functions in ralloc.c.
52283633 10563 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
10564 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
10565 (mmap_init) [REL_ALLOC_MMAP]: New function.
10566 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
10567 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
10568 BUFFER_FREE.
10569
10570 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
10571 (enlarge_buffer_text): Add prototype.
10572
10573 * ralloc.c: Remove everything having to do with the use of mmap.
10574
f8608968
GM
105752000-09-13 Gerd Moellmann <gerd@gnu.org>
10576
2a494b2d
GM
10577 * sound.c (Fplay_sound): Doc fix.
10578
8c907a56
GM
10579 * keyboard.c: Avoid some more compiler warnings.
10580 (parse_tool_bar_item): Ignore cached key bindings.
10581
f8608968
GM
10582 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
10583 and allocation of Lisp data.
10584
6ab70e9a
GM
105852000-09-12 Gerd Moellmann <gerd@gnu.org>
10586
d12d0a9b
GM
10587 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
10588 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
10589 defaults first.
10590
6ab70e9a
GM
10591 * lread.c (Fload): Put code checking for recursive loads in #if 0.
10592
63c36c3c
KH
105932000-09-12 Miyashita Hisashi <himi@meadowy.org>
10594
10595 * ccl.c: Comment fixed.
10596 (MAX_MAP_SET_LEVEL): Increased to 30.
10597 (PUSH_MAPPING_STACK): Enclose with do-while block.
10598 (POP_MAPPING_STACK): Likewise.
10599 (stack_idx_of_map_multiple): New variable.
10600 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
10601 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 10602 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
10603 (ccl_driver) <CCL_MapSingle>: Likewise.
10604 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
10605 with the case where looking up process reaches to the end of
10606 map-set, and call CCL programs as the above change.
10607
7ee3bd7b
GM
106082000-09-11 Gerd Moellmann <gerd@gnu.org>
10609
8ec8a5ec
GM
10610 * xfns.c (png_load, jpeg_load): Declare some variables volatile
10611 that might be clobbered by longjmp.
10612 (check_x_display_info, x_decode_color, create_frame_xic)
10613 (Fx_display_backing_store, Fx_display_visual_class)
52283633 10614 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 10615
f74b0705
GM
10616 * lread.c (init_lread): Set Vloads_in_progress to nil.
10617 (Fload): Show list of recursively loaded files, when signaling an
10618 error.
10619
7ee3bd7b
GM
10620 * lread.c (Vloads_in_progress): New variable.
10621 (record_load_unwind): New function.
10622 (Fload): Check for recursive loads.
10623 (syms_of_lread): Initialize Vloads_in_progress.
10624 (read_integer, read1): Avoid some compiler warnings.
10625
10626 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
10627 compiler warnings.
10628
974e1e5b
MB
106292000-09-11 Miles Bader <miles@gnu.org>
10630
10631 * editfns.c (Fbuffer_string): Doc fix.
10632
9824c4e3
GM
106332000-09-10 Gerd Moellmann <gerd@gnu.org>
10634
10635 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
10636
6a72fdd1
KR
106372000-09-09 Ken Raeburn <raeburn@gnu.org>
10638
10639 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
10640 whether to include other header files.
10641
28e6fb66
GM
106422000-09-09 Gerd Moellmann <gerd@gnu.org>
10643
52283633 10644 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 10645 by Fmemq as a boolean.
28e6fb66 10646
7f8b6551
SM
106472000-09-08 Stefan Monnier <monnier@cs.yale.edu>
10648
10649 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
10650
a8710abf
GM
106512000-09-08 Gerd Moellmann <gerd@gnu.org>
10652
d1a02881
GM
10653 * ralloc.c (mmap_fd): Remove initializer which can make it
10654 read-only in a dumped Emacs.
10655 (mmap_fd_1): New variable.
10656 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
10657 restore it from there.
10658 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
10659 unconditionally so that mmap_fd can be initialized there.
10660 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
10661 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
10662 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
10663
c454aac1
GM
10664 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
10665
10666 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 10667 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 10668
fc653ef2
GM
10669 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
10670
3015eec0
GM
10671 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
10672 inheritance.
10673
bfe0ee88
GM
10674 * xdisp.c (try_window_id): When trying to locate cursor in
10675 unchanged rows at the top, handle the case that we can't find it.
10676
a8710abf
GM
10677 * xterm.c (x_draw_glyphs): Handle case START and END are out
10678 of bounds more carefully.
10679
6b7d4ae4
DL
106802000-09-08 Dave Love <fx@gnu.org>
10681
423193c5
DL
10682 * s/sol2.h (REL_ALLOC_MMAP): Define.
10683 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
10684
10685 * ralloc.c: Don't include string.h (redundant).
10686 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
10687 [!MAP_ANON]: Include fcntl.h.
10688 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
10689 (r_alloc, r_re_alloc, r_alloc_free)
10690 (mmap_enlarge, mmap_set_vars): Use it.
10691 (r_alloc_init_fd): New function.
10692 (__morecore) [SYSTEM_MALLOC]: Don't declare.
10693 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
10694 malloc type.
10695
10696 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
10697 Remove vm-limit.o.
10698
6b7d4ae4
DL
10699 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
10700 change to __NetBSD__.
10701
44d31981
KH
107022000-09-08 Kenichi Handa <handa@etl.go.jp>
10703
10704 * search.c (compile_pattern): Check the multibyteness of cached
10705 string and PATTERN.
10706
aad40737
MB
107072000-09-08 Miles Bader <miles@gnu.org>
10708
10709 * xfaces.c (default_face_vector): Function removed.
10710 (Finternal_merge_in_global_face): Restore old global/local
10711 attribute override order. Use inline loop instead of calling
10712 default_face_vector.
10713
91a211b5
GM
107142000-09-07 Gerd Moellmann <gerd@gnu.org>
10715
10716 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
10717 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
10718 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
10719 where necessary, in case POINTER_TYPE is `void'.
10720
03419440
EZ
107212000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
10722
10723 * frame.c (make_terminal_frame): Initialize frame foreground and
10724 background colors to unspecified, for the initial instance of an
10725 MSDOS frame.
10726
f46f845b
GM
107272000-09-07 Gerd Moellmann <gerd@gnu.org>
10728
24f76fbf
GM
10729 * ralloc.c (mmap_find): Fix overlap computation.
10730 (mmap_enlarge): Compute nbytes before trying to find an
10731 overlapping region.
10732
f46f845b
GM
10733 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
10734 instead of `!='.
10735
10736 * lread.c (syms_of_lread): Change value of regexp
10737 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
10738
10739 * xmenu.c (xdialog_show): When looking up the selection in
10740 menu_items, take `quote' boundaries into account; this corresponds
10741 to a nil ITEM in x-popup-dialog.
10742
3c014385
KH
107432000-09-07 Kenichi Handa <handa@etl.go.jp>
10744
fd6f711b
KH
10745 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
10746 not 0x81.
10747 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
10748
3c014385 10749 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
10750 encoding, not decoding. Fix the handling of latin-jisx0201.
10751 Check for the charset katakana-jisx0201 too.
3c014385 10752 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 10753 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 10754
0da3ecef
GM
107552000-09-07 Gerd Moellmann <gerd@gnu.org>
10756
ab0ee409
GM
10757 * xfaces.c (Vparam_value_alist): New variable.
10758 (syms_of_xfaces): Initialize it.
10759 (Finternal_set_lisp_face_attribute): Avoid more consing.
10760
10761 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
10762 specially.
10763 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
10764 (Qbackground_mode): New variable.
10765 (syms_of_frame_1): Initialize Qbackground_mode.
10766
10767 * lisp.h (Qdisplay): Declare extern.
1091dd67 10768
0da3ecef
GM
10769 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
10770 change face on all frames, and change the default for new frames.
10771
b14654b9
DL
107722000-09-07 Dave Love <fx@gnu.org>
10773
10774 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
10775
d24fd56f
KH
107762000-09-07 Kenichi Handa <handa@etl.go.jp>
10777
794f3670
KH
10778 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
10779
0fddd0dc
KH
10780 * charset.c: Include composite.h
10781 (lisp_string_width): New function.
10782 (Fstring_width): Call lisp_string_width instead of strwidth.
10783
10784 * Makefile.in (charset.o): Depends on composite.h.
10785
d24fd56f
KH
10786 * process.c (read_process_output): Before inserting the decoded
10787 text in the buffer, adjust the multibyteness.
10788
fa0b693c
GM
107892000-09-06 Gerd Moellmann <gerd@gnu.org>
10790
52283633 10791 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
10792 buffer's text buffer is null, map new memory.
10793
0a58f946
GM
10794 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
10795 POINTER_TYPE and size_t.
10796 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
10797 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
10798 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
10799 [REL_ALLOC_MMAP]: New macros.
10800 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
10801 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
10802 [REL_ALLOC_MMAP]: New functions.
10803
10804 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
10805 before and after unexec.
10806
10807 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
10808 text buffers if necessary.
10809
10810 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
10811 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
10812 in prototypes.
10813
fa0b693c
GM
10814 * config.in (HAVE_MMAP): Add #undef.
10815
877055f6
GM
108162000-09-05 Gerd Moellmann <gerd@gnu.org>
10817
08ba3862
GM
10818 * frame.c (Qdisplay_type): New variable.
10819 (syms_of_frame_1): Initialize it.
10820 (Fframe_parameter): New function that avoids consing.
10821 (syms_of_frame): Defsubr it.
10822
66ffe51c
GM
10823 * buffer.c (Fother_buffer): Consider buffers as invisible when
10824 they are displayed in a window on an invisible frame.
10825
877055f6
GM
10826 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
10827 get-largest-window always return nil.
10828
bb970e67
GM
108292000-09-04 Gerd Moellmann <gerd@gnu.org>
10830
10831 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
10832 variable; recognize Emacs 19 elc files.
10833
7a3d0e0e
MB
108342000-09-04 Miles Bader <miles@gnu.org>
10835
10836 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
10837 before initially popping up the menu, so the menu doesn't flash
52283633 10838 when the face settings are significantly different from the defaults.
7a3d0e0e 10839
14473664
SM
108402000-09-04 Stefan Monnier <monnier@cs.yale.edu>
10841
10842 * regex.c (WIDE_CHAR_SUPPORT): New macro.
10843 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
10844 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
10845 (BIT_UNIBYTE): Remove.
10846 (re_match_2_internal): Delete corresponding code and streamline the
10847 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
10848 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
10849 (re_wctype_t): New type.
10850 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
10851 (regex_compile): Use them and fix handling of overly long char classes.
10852
c1174479
AI
108532000-09-03 Andrew Innes <andrewi@gnu.org>
10854
f8803e97
AI
10855 * makefile.w32-in: Change to DOS line endings.
10856
c1174479
AI
10857 * s/ms-w32.h (ORDINARY_LINK): New define.
10858
10859 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
10860 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
10861
10862 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
10863 (distclean): Delete them here instead.
10864
44ef7cf6
AI
10865 * w32proc.c (compare_env): Convert to uppercase for comparison,
10866 not lowercase, to match how the native Windows shell works.
10867
49b3bd82
JR
108682000-09-03 Jason Rumney <jasonr@gnu.org>
10869
10870 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
10871 CVS changes the line-ends when checking in/out on DOS/Windows.
10872
10873 * makefile.nt (emacs): Do not change directory to run temacs, as
10874 the load-path is set relative to current directory.
10875
a3d35a39
MB
108762000-09-03 Miles Bader <miles@gnu.org>
10877
10878 * xterm.c (x_alloc_lighter_color_for_widget): New function.
10879
d276b0cf
GM
108802000-09-02 Gerd Moellmann <gerd@gnu.org>
10881
715e84c9
GM
10882 * xdisp.c (redisplay_mode_lines): New function.
10883 (display_mode_lines): Return number of mode lines displayed.
10884 (echo_area_display): Use redisplay_mode_lines to draw garbaged
10885 mode lines. Don't temporarily bind redisplay-dont-pause to t.
10886
8892f40b
GM
10887 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
10888 string.h and strings.h.
10889 (index) [HAVE_INDEX]: Add prototype.
10890
d276b0cf
GM
10891 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
10892 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
10893
10894 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
10895 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10896
38404229
GM
108972000-09-01 Gerd Moellmann <gerd@gnu.org>
10898
10899 * lread.c (read1): Accept `?' as symbol constituent, for
10900 compatiblity with XEmacs.
10901
c0f9ea08
SM
109022000-08-31 Stefan Monnier <monnier@cs.yale.edu>
10903
10904 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
10905 (struct re_pattern_buffer): Remove newline_anchor.
10906 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
10907 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
10908 (re_max_failures, fail_stack): Use size_t rather than unsigned.
10909 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
10910 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
10911 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
10912 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
10913 Get rid of references to newline_anchor.
10914 (regcomp): Allocate and precompute a fastmap.
10915
8c0f83fe
GM
109162000-08-31 Gerd Moellmann <gerd@gnu.org>
10917
10918 * lread.c (openp): GCPRO local variable `filename'.
10919
4bb91c68
SM
109202000-08-30 Stefan Monnier <monnier@cs.yale.edu>
10921
10922 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
10923
10924 * regex.c: Merge some changes from GNU libc. Add prototypes.
10925 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
10926 Use memcmp and memcpy instead of bcopy and bcmp.
10927 (init_syntax_once): Use ISALNUM.
10928 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
10929 (REG_UNSET_VALUE): Remove. Use NULL instead.
10930 (REG_UNSET, re_match_2_internal): Use NULL.
10931 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
10932 New macros.
10933 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
10934 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
10935 (regex_compile): In handle_interval, return an error rather than try to
10936 unfetch the interval if we can't find the closing brace.
10937 Obey the RE_NO_GNU_OPS syntax bit.
10938 (TOLOWER): New macro.
10939 (regcomp): Use it.
10940 (regexec): Allocate regs.start and regs.end as one block.
10941
5226a931
GM
109422000-08-30 Gerd Moellmann <gerd@gnu.org>
10943
868dd24b
GM
10944 * xdisp.c (echo_area_display): Check display_completed instead
10945 of calling detect_input_pending.
10946
10947 * dispnew.c (update_frame): Only set display_completed here; move
10948 the update_begin and update_end calls here from update_frame_1.
10949 (update_frame_1): Don't set display_completed here, don't call
10950 update_begin/update_end.
10951
5226a931
GM
10952 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
10953 instead of store_frame_param.
10954
2a8bd25f
GM
109552000-08-29 Gerd Moellmann <gerd@gnu.org>
10956
10957 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
10958 desired window matrix hasn't been displayed, use the current row
10959 instead. Make sure that only those frame rows are updated for
10960 which there exists a corresponding enabled desired row.
52283633 10961
ba3478d9
MB
109622000-08-29 Miles Bader <miles@gnu.org>
10963
10964 * xfaces.c (default_face_vector): New function.
10965 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
10966
87d0f685
GM
109672000-08-29 Gerd Moellmann <gerd@gnu.org>
10968
10969 * lread.c (openp): Prevent temporary string passed to
10970 Ffile_readable_p from being garbage collected.
10971
6fa86045
DL
109722000-08-28 Dave Love <fx@gnu.org>
10973
10974 * keymap.c (store_in_keymap): Add `static' to declaration.
10975
bb17930d
GM
109762000-08-28 Gerd Moellmann <gerd@gnu.org>
10977
10978 * emacs.c, callint.c, doc.c, editfns.c
10979 (toplevel) [HAVE_STRING_H]: Include string.h.
10980 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
10981 (index): Remove prototypes which might conflict with non-standard
10982 definitions of index/strchr.
10983
10984 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
10985 (rindex): Define only if !HAVE_RINDEX.
10986
10987 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
10988
10989 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
10990
87188200
MB
109912000-08-28 Miles Bader <miles@gnu.org>
10992
10993 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
10994 made inconsistent by a font-related attribute in FROM.
10995 (merge_face_inheritance): Add function comment.
10996
41a68aef
KH
109972000-08-28 Kenichi Handa <handa@etl.go.jp>
10998
10999 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
11000 the 4th arg (PREV_EVENT) Qt to suppress input method.
11001
f7c436c1
SM
110022000-08-27 Stefan Monnier <monnier@cs.yale.edu>
11003
0b32bf0e
SM
11004 * regex.c: Indent cpp directives and remove parens after `defined'.
11005 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
11006 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
11007 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
11008 (re_compile_pattern): Use size_t for length.
11009 (init_syntax_once): Move to a better place.
11010 * regex.h: Merge changes from GNU libc. Indent cpp directives.
11011 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
11012
f7c436c1
SM
11013 * syntax.c (back_comment): Detect cases where a comment-starter is
11014 actually inside another comment as in: /* a // b */ c // d \n.
11015 Make it clear that `comstart_pos' is unused for nested comments.
11016
11017 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
11018 (KEYMAPP): New macro.
11019 (Fkeymap_parent, Fset_keymap_parent): Use it.
11020 (fix_submap_inheritance): Mark it static.
11021 (define_as_prefix, describe_buffer_bindings, describe_command)
11022 (describe_translation, describe_map): Complete prototypes.
11023
11024 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
11025
11026 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
11027 to better match the key-lookup behavior.
11028
6288c62f
GM
110292000-08-27 Gerd Moellmann <gerd@gnu.org>
11030
11031 * xfaces.c (lface_fully_specified_p): Handle :inherit.
11032 (Finternal_set_lisp_face_attribute): Fix typo in error message.
11033
e931344e
EZ
110342000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
11035
11036 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
11037 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
11038 (xterm.o): Depend on coding.h
11039
d10dfeef
KH
110402000-08-26 Kenichi Handa <handa@etl.go.jp>
11041
11042 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
11043 the corresponding '#endif'.
11044
2d73e8d3
MB
110452000-08-26 Miles Bader <miles@gnu.org>
11046
11047 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
11048 * xfaces.c (QCinherit): New variable.
11049 (syms_of_xfaces): Initialize it.
11050 (LFACE_INHERIT): New macro.
11051 (Finternal_get_lisp_face_attribute)
52283633 11052 (merge_face_vector_with_property)
2d73e8d3
MB
11053 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
11054 (check_lface_attrs): Allow new types of face height. Check
11055 inherit attribute.
11056 (CYCLE_CHECK): New macro.
11057 (merge_face_inheritance): New function.
11058 (merge_face_vectors): Merge inherited faces too. Add F and
11059 CYCLE_CHECK arguments.
11060 (merge_face_vector_with_property, Finternal_merge_in_global_face)
11061 (lookup_named_face, lookup_derived_face, realize_named_face)
11062 (face_at_string_position, face_at_buffer_position): Supply
11063 new F and CYCLE_CHECK arguments to merge_face_vectors.
11064 (merge_face_heights): New function.
52283633 11065 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
11066 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
11067 handle relative face heights.
11068 (lface_same_font_attributes_p): Compare heights using EQ.
11069
6ce974d4
KH
110702000-08-26 Kenichi Handa <handa@etl.go.jp>
11071
11072 * charset.c (char_to_string): Check the character validity.
52283633 11073 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 11074
dc1e502d
SM
110752000-08-25 Stefan Monnier <monnier@cs.yale.edu>
11076
11077 * regex.c (PUSH_FAILURE_COUNT): New macro.
11078 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
11079 Handle popping of a register's or a counter's data.
11080 (POP_FAILURE_POINT): Use the new name.
11081 (re_match_2_internal): Push counter data on the stack for succeed_n,
11082 jump_n and set_number_at and remove misleading dead code in succeed_n.
11083
bd9d0f3f
GM
110842000-08-25 Gerd Moellmann <gerd@gnu.org>
11085
11086 * xdisp.c (redisplay_internal): If considering all windows on all
11087 frames, update the display for each frame as soon as possible,
11088 instead of first building all desired matrices for all frames, and
11089 then updating them all.
11090 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
11091
aa5b8e15
GM
110922000-08-24 Gerd Moellmann <gerd@gnu.org>
11093
17494071
GM
11094 * bytecode.c (mark_byte_stack): Add a comment.
11095
52283633
SM
11096 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
11097 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
11098 a graphical frame.
11099
c543db81
KH
111002000-08-24 Kenichi Handa <handa@etl.go.jp>
11101
d246d5f5
KH
11102 * minibuf.c (do_completion): Always use compare-string, not
11103 string-equal because the latter doesn't pay attention to
11104 multibyteness of strings.
11105
c543db81
KH
11106 * process.c (create_process): Don't setup raw-text coding here.
11107 (Fopen_network_stream): Don't set coding->src_multibyte and
11108 coding->dst_multibyte here.
11109 (read_process_output): For process filter, return unibyte string
11110 if default-enable-multibyte-characters is nil.
11111 (send_process): If OBJECT is multibyte text, be sure to encoded it
11112 by the specified coding system for the process. Otherwise, setup
11113 raw-text coding.
52283633 11114 (init_process): Don't initialize default-process-coding-system here.
c543db81 11115
9b47cfe0
EZ
111162000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
11117
11118 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
11119 <scroll-down-aggressively>: Likewise.
11120
f5a36960
KH
111212000-08-23 Kenichi Handa <handa@etl.go.jp>
11122
11123 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
11124 zero. Set coding->produced_char correctly.
11125
69a7ffa7
AI
111262000-08-22 Andrew Innes <andrewi@gnu.org>
11127
11128 * makefile.w32-in: New file.
11129
11130 * unexw32.c (unexec): Ignore old_name, and use the actual location
11131 of the current executable instead. Base new_name on this.
11132
11133 * w32proc.c (create_child): Remove reference to security
11134 descriptor, which isn't needed and doesn't compile with mingw32.
11135
11136 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11137 up dllimport attributes.
11138 (x_update_window_end): Update prototype.
11139
11140 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
11141 extern, which screws up dllimport attributes.
11142
11143 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11144 up dllimport attributes.
11145
11146 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
11147 screws up dllimport attributes.
11148
11149 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11150 up dllimport attributes.
11151 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
11152 screws up dllimport attributes.
11153
11154 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11155 up dllimport attributes.
11156
11157 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
11158 screws up dllimport attributes.
11159
11160 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
11161 screws up dllimport attributes.
11162
11163 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11164 up dllimport attributes.
11165
11166 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
11167 unnecessary extern, which screws up dllimport attributes.
11168 (main): Ditto.
11169
11170 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11171 up dllimport attributes.
11172
11173 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
11174 unnecessary extern, which screws up dllimport attributes.
11175
11176 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
11177 screws up dllimport attributes.
11178
11179 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11180 up dllimport attributes.
11181
11182 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
11183
52283633
SM
11184 * w32bdf.c (search_file_line):
11185 (set_bdf_font_info):
11186 (seek_char):
11187 (w32_get_bdf_glyph):
69a7ffa7
AI
11188 (w32_BDF_to_x_font): Fix compile warnings.
11189
52283633 11190 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
11191
11192 * w32select.c: Include keyboard.h before frame.h.
11193
11194 * w32fns.c (max): Define macro.
11195 (JOHAB_CHARSET): Define if not known.
11196 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
11197 (Fx_show_tip): Synch with X version.
11198
11199 * w32xfns.c: Include keyboard.h before frame.h.
11200
11201 * w32fns.c: Include keyboard.h before frame.h.
11202
11203 * w32term.c: Include keyboard.h before frame.h.
11204
11205 * fontset.c: Include keyboard.h before frame.h.
11206
11207 * w32inevt.c: Include keyboard.h before frame.h.
11208 (MOUSE_MOVED): Define if not known.
11209
11210 * minibuf.c: Include keyboard.h before frame.h.
11211
11212 * keyboard.c: Include keyboard.h before frame.h.
11213
11214 * indent.c: Include keyboard.h before frame.h.
11215
11216 * dispnew.c: Include keyboard.h before frame.h.
11217
11218 * buffer.c: Include keyboard.h before frame.h.
11219
11220 * alloc.c: Include keyboard.h before frame.h.
11221
11222 * print.c: Include keyboard.h before frame.h.
11223
11224 * process.c: Include keyboard.h before frame.h.
11225
11226 * scroll.c: Include keyboard.h before frame.h.
11227
11228 * sysdep.c: Include keyboard.h before frame.h.
11229
11230 * term.c: Include keyboard.h before frame.h.
11231
11232 * window.c: Include keyboard.h before frame.h.
11233
11234 * xdisp.c: Include keyboard.h before frame.h.
11235 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
11236
11237 * frame.c: Include keyboard.h before frame.h.
11238
11239 * w32heap.h: Undefine min, max.
11240
11241 * w32gui.h: Undefine min, max.
11242
11243 * unexw32.c: Change PUCHAR to PCHAR.
11244 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
11245 (relocate_offset):
11246 (get_section_info):
69a7ffa7
AI
11247 (copy_executable_and_dump_data): Remove unnecessary static defs.
11248 (copy_executable_and_dump_data): Fix compile warnings.
11249
11250 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
11251
11252 * w32console.c (min): Define macro.
11253 (clear_frame, write_glyphs): Fix compile warning.
11254
52283633 11255 * w32proc.c (compare_env):
69a7ffa7
AI
11256 (find_child_console): Fix compile warning.
11257
11258 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
11259 sys_errlist instead of _sys_errlist.
11260 (get_emacs_configuration_options): New function.
11261
11262 * s/ms-w32.h (sys_nerr): Provide default definition.
11263 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
11264 name with _ prepended.
11265 (NSIG): Define if not known.
11266 (get_emacs_configuration): Provide extern declaration.
11267 (get_emacs_configuration_options): Provide extern declaration.
11268 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
11269
11270 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 11271 (map_w32_filename):
69a7ffa7
AI
11272 (read_unc_volume): Fix compile warning.
11273
11274 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
11275 definitions from being used.
11276
11277 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
11278
52283633 11279 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
11280 (open_unc_volume): Make arg const.
11281
11282 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
11283 (read_input_waiting): Remove excess parameter.
11284
11285 * w32.c (init_environment): Call _access.
11286 (check_windows_init_file): Call _close.
11287 (init_user_info): Call _putenv.
11288 (init_environment): Call _putenv and _strdup.
11289 (init_ntproc): Reset volume info cache on startup.
11290
11291 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
11292 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
11293 cannot override the CRT malloc.
11294
11295 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
11296 (LINK_FLAGS): Append to original value of LINK_FLAGS.
11297
11298 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
11299 unless we are linking with a static CRT.
11300 (RVA_TO_PTR): Cast result to unsigned char*.
11301
11302 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
11303 (add_volume_info): Use xstrdup.
11304
25060080
SM
113052000-08-22 Stefan Monnier <monnier@cs.yale.edu>
11306
11307 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
11308 (do_completion, Fminibuffer_complete_word): Use it.
11309 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
11310 var so it can take non-boolean values.
11311
6917e6bb
GM
113122000-08-21 Gerd Moellmann <gerd@gnu.org>
11313
acb7cc89 11314 * editfns.c (find_field): Formatting changes.
52283633 11315 (toplevel): Some old-style function forward declarations
acb7cc89
GM
11316 changed to prototypes, some new protypes added, some functions
11317 made static.
11318
11319 * lisp.h (set_time_zone_rule): Add prototype.
11320 (use_dialog_box): External declaration.
11321
0bbfdc25
GM
11322 * keyboard.c (gen_help_event): Add parameter SIZE.
11323 (kbd_buffer_events_waiting): Slightly rewritten.
11324 (clear_event): New function.
11325 (kbd_buffer_get_event): Use it, and clear the input_events of
11326 HELP_EVENTs.
11327 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
11328 don't fill the newly created array with nils.
11329 (toplevel): Convert some old-style function forward declarations
11330 to prototypes.
11331
11332 * keyboard.h (gen_help_event): Change prototype.
11333
11334 * xterm.c (XTread_socket): Change calls to gen_help_event.
11335
11336 * w32term.c (w32_read_socket): Change calls to gen_help_event.
11337
6917e6bb
GM
11338 * eval.c (Fmacroexpand): Doc fix.
11339
e5cd3d11
JR
113402000-08-20 Jason Rumney <jasonr@gnu.org>
11341
11342 * w32term.h (x_display_info_for_display): Remove as this function
11343 does not exist on W32.
11344
11345 * w32term.c (help_echo_window): New variable.
11346 (syms_of_w32term): staticpro it.
11347 (note_mode_line_highlight): Set it.
11348 (XTextExtents16): Removed as there is no equivalent on W32.
11349 (x_compute_glyph_string_overhangs): Incomplete body removed, as
11350 the X way of doing this will not work for W32.
11351 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
11352 (x_draw_image_foreground): Avoid drawing outside of the clip area
11353 when image doesn't have a mask.
11354 (note_mouse_highlight): Process overlays in the right order of
11355 priority. Set help_echo_window.
11356 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
11357 because that's more visible for large images.
11358
11359 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
11360 name to single_keymap_panes.
11361 (w32_menu_show): Set wv->title when dealing with titles.
11362 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
11363
6e69ab8c
MB
113642000-08-21 Miles Bader <miles@gnu.org>
11365
11366 * minibuf.c (do_completion): Try again if we rewrite the input
11367 string, but no completion was done, so that any completion message
11368 will be correct.
11369
511bd4eb
GM
113702000-08-20 Gerd Moellmann <gerd@gnu.org>
11371
11372 * xfaces.c (lface_equal_p): Compare strings differently.
11373 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
11374 (realize_tty_face): Use them.
11375 (syms_of_xfaces): Initialize new variables.
11376 (map_tty_color): New function, extracted from realize_tty_face.
11377 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
11378 foreground or background color, store the new color name in the
11379 realized face; previous code trying to do this had no effect.
11380 (realize_tty_face): Use map_tty_color.
11381 (Fclear_face_cache): Set face_change_count and ensure thorough
11382 redisplay.
11383
1433385f
GM
113842000-08-19 Gerd Moellmann <gerd@gnu.org>
11385
511bd4eb
GM
11386 * undo.c (record_first_change, record_marker_adjustment): Don't
11387 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 11388
419ac0a2
KH
113892000-08-18 Kenichi Handa <handa@etl.go.jp>
11390
11391 * coding.c (decode_coding_string): Set members consumed,
11392 consumed_char, produced, produced_char of *coding correctly. If
11393 decode_coding doesn't consume any byte, don't try anymore.
11394 (encode_coding_string): Likewise.
11395
7eb9e30d
GM
113962000-08-18 Gerd Moellmann <gerd@gnu.org>
11397
511bd4eb
GM
11398 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
11399 conditional have void type, for Standard C compilers.
7eb9e30d
GM
11400
11401 * xdisp.c (redisplay_internal): Compare windows for equality with
11402 EQ, instead of applying XWINDOW to something that might not
11403 be a window.
52283633 11404
dd34a735
KH
114052000-08-18 Kenichi Handa <handa@etl.go.jp>
11406
11407 * fontset.c (Finternal_char_font): Search only the selected frame
11408 for a window of the current buffer.
11409
385ff9e3
GM
114102000-08-18 Gerd Moellmann <gerd@gnu.org>
11411
511bd4eb 11412 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
11413 Lisp_Objects.
11414
385ff9e3
GM
11415 * keyboard.c (kbd_buffer_get_event): Handle the case that the
11416 second half of a HELP_EVENT is found at the start of kbd_buffer.
11417
d6abb4c7
MB
114182000-08-18 Miles Bader <miles@gnu.org>
11419
4618074a
MB
11420 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
11421
d6abb4c7
MB
11422 * editfns.c (save_restriction_save): Rewrite to use markers.
11423 (save_restriction_restore): Rewrite to understand new form of data
11424 saved by save_restriction_save.
11425 (Fsave_restriction): Remove cautionary note in doc-string.
11426
a7b28523
GM
114272000-08-17 Gerd Moellmann <gerd@gnu.org>
11428
11429 * fileio.c (build_annotations): Add a comment explaining the
11430 return value of format-annotate-function. Replace a spurious call
11431 to Flength with a CONSP test. Call format-annotate-function with
11432 a fifth arg specifying how many times the function is been called
11433 in a row, to let it choose temporary buffers appropriately.
11434
03c9ed77
DL
114352000-08-17 Dave Love <fx@gnu.org>
11436
11437 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
11438 declare make_temp_name twice.
11439
52283633 11440 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
11441 (unreadpure): Give it an arg.
11442
11443 * unexalpha.c: Prototype fatal_unexec, mark_x,
11444 update_dynamic_symbols. Declare unexec as void.
11445
11446 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
11447 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
11448
11449 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 11450 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
11451
11452 * alloca.c: Use #error.
11453 [POINTER_TYPE]: Use it.
11454
11455 * eval.c (Fdefvar): Doc fix.
11456
11457 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
11458 INITIALIZE_INTERVAL.
11459
11460 * buffer.h: Avoid DECLARE_INTERVALS.
11461
11462 * config.in: Add size_t.
11463
aae41d97
EZ
114642000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
11465
11466 * w16select.c (set_clipboard_data): If there's not enough memory
11467 to put text into clipboard, return 1, as Fw16_set_clipboard_data
11468 expects. In case of other failures, return 3.
11469 (system_error_msg): New error message.
11470 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
11471 system_error_msg.
11472
65aa5e85
GM
114732000-08-16 Gerd Moellmann <gerd@gnu.org>
11474
11475 * term.c (write_glyphs): Also turn off inverse video after turning
11476 off other appearances in case TS_exit_attribute_mode is not equal
11477 to TS_end_standout_mode.
11478 (insert_glyphs): Turn inverse video on/off for each run of glyphs
11479 with the same face.
11480 (turn_off_face): Reset standout_mode only if
11481 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
11482 is equal to TS_end_standout_mode.
11483
ece23901
KH
114842000-08-16 Kenichi Handa <handa@etl.go.jp>
11485
9d7bcb2e
KH
11486 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
11487 sequence at the end of the source block.
11488
ece23901
KH
11489 * ccl.c (Fccl_program_p): Docstring modified.
11490 (Fccl_execute): Likewise.
11491 (Fccl_execute_on_string): Likewise.
11492
5e30eaa2
EZ
114932000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
11494
11495 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
11496
290602fd
KH
114972000-08-16 Kenichi Handa <handa@etl.go.jp>
11498
11499 The following changes are mainly to fix bugs of
11500 encode/decode-coding-string failing if encoding/decoding return
11501 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
11502 variable conversion_buffer.
11503
11504 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
11505 decrement dst_end to avoid buffer overflow in the later call of
11506 string_as_multibyte
11507
11508 * coding.h (conversion_buffer_size, conversion_buffer)
11509 (get_conversion_buffer): Extern deleted.
11510
11511 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
11512 (conversion_buffer, conversion_buffer_size): Variables deleted.
11513 (get_conversion_buffer): Function deleted.
11514 (struct conversion_buffer): New structure.
11515 (MAX_ALLOCA): New macro.
11516 (allocate_conversion_buffer): New macro.
11517 (extend_conversion_buffer, free_conversion_buffer): New functions.
11518 (ccl_coding_driver): Set coding->result.
11519 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
11520 this is the last block of source.
11521 (encode_coding): Likewise. Handle the source block as the last
11522 one only when the whole source text is consumed.
11523 (decode_coding_string): Handle the case that the output buffer is
11524 too small to decode the whole source text. Use
11525 allocate_conversion_buffer, extend_conversion_buffer and
11526 free_conversion_buffer, not get_conversion_buffer.
11527 (encode_coding_string): Likewise.
11528 (init_coding): Function deleted.
52283633 11529 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
11530
11531 * emacs.c (main): Don't call init_coding.
11532
52283633 11533 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
11534
11535 * term.c (write_glyphs): Use a locally declared conversion_buffer.
11536 (insert_glyphs): Likewise.
11537
11538 * w32console.c (write_glyphs): Use a locally declared
11539 conversion_buffer.
11540
b9f80d41
EZ
115412000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
11542
11543 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
11544 member of display_info is NULL.
11545
32dc52f7
GM
115462000-08-15 Gerd Moellmann <gerd@gnu.org>
11547
52283633 11548 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 11549
32dc52f7 11550 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 11551 appearances with capability `me'.
32dc52f7
GM
11552 (write_glyphs): Switch on inverse video before each face change.
11553
4eb22d33
DL
115542000-08-14 Dave Love <fx@gnu.org>
11555
11556 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
11557 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
11558 (lisp_free): Declare and make static.
11559
11560 * window.c: Fix embedded comment.
11561 (syms_of_window): Fix doc string.
11562
90cbf47e
GM
115632000-08-14 Gerd Moellmann <gerd@gnu.org>
11564
52283633 11565 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
11566 make sure to print `C-' before `M-', like in the manual.
11567
440fc135
GM
115682000-08-11 Gerd Moellmann <gerd@gnu.org>
11569
11570 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
11571 since they aren't relocated anymore.
52283633 11572 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
11573
11574 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 11575 partially visible line which is smaller than the window's height.
440fc135 11576
6e264fad
KH
115772000-08-11 Kenichi Handa <handa@etl.go.jp>
11578
11579 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 11580 the multibyte form of eight-bit-control characters.
6e264fad
KH
11581 (Fccl_execute_on_string): Initialize ccl->multibyte.
11582
11583 * ccl.h (struct ccl_program): New member multibyte.
11584
11585 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
11586
c371f69a
KH
115872000-08-11 Kenichi Handa <handa@etl.go.jp>
11588
11589 * regex.c (regex_compile) <normal_char>: Pay attention to
11590 multibyteness.
11591 (analyse_first) <exactn>: Setup fastmap correctly for
11592 eight-bit-control characters.
11593
115942000-08-11 Kenichi Handa <handa@etl.go.jp>
11595
52283633 11596 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
11597
11598 * keyboard.c (make_lispy_event): Handle the new event type
11599 multibyte_char_keystroke.
11600
11601 * xterm.c: Include coding.h.
11602 (XTread_socket): Work around a bug of XmbLookupString. If the
11603 input is from XIM, decode it according to the current locale. In
11604 that case, generate multibyte_char_keystroke events.
11605
b8ddbe71
KH
116062000-08-11 Kenichi Handa <handa@etl.go.jp>
11607
11608 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
11609 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
11610
47589c8c
GM
116112000-08-10 Gerd Moellmann <gerd@gnu.org>
11612
11613 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
11614 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
11615 (move_it_in_display_line_to): Record iterator's ascent and descent
11616 before producing glyphs, and restore them when we know the glyph
11617 doesn't fit on the line.
11618 (move_it_to): Restructured so that it's easier to debug. If
11619 moving to a vpos, and not moving to an x or character position,
11620 stop as soon as the specified vpos is reached; don't move further
11621 into that line because that might change the computed line height.
11622 (try_cursor_movement): New function, extracted from the cursor
11623 movement branch of redisplay_window. If ending on a partially
11624 visible line, don't try to scroll if the cursor line is taller
11625 than the window.
11626 (redisplay_window): Use try_cursor_movement.
11627
11628 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
11629 because that function doesn't cope with variable-height lines.
11630
11631 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
11632 box cursor because that's better visible for large images.
52283633 11633
c51bacd6
MB
116342000-08-10 Miles Bader <miles@gnu.org>
11635
11636 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
11637
bea56df7
GM
116382000-08-10 Gerd Moellmann <gerd@gnu.org>
11639
11640 * xdisp.c (Vmessages_buffer_name): New variable.
11641 (message_dolog): Use it.
11642 (syms_of_xdisp): Initialize it.
11643
99cd7364
EZ
116442000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
11645
52283633 11646 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
11647 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
11648 redundant now that keyboard.h is included.
11649
7d093d56
EZ
116502000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
11651
11652 * keyboard.c (kbd_buffer_events_waiting): New function.
11653
11654 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
11655
11656 * msdos.c: Include keyboard.h.
11657 (XMenuActivate): Empty no_event events from the event buffer. If
11658 no events are left after that, call clear_input_pending.
11659 (mouse_clear_clicks): New function, code moved from mouse_init.
11660 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
11661 mouse driver to ``forget'' any past clicks.
11662
11663 * Makefile.in (msdos.o): Depend on keyboard.h.
11664
41e757a6
GM
116652000-08-09 Gerd Moellmann <gerd@gnu.org>
11666
8e7bd231
GM
11667 * lisp.h (input_pending): External declaration.
11668
11669 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 11670
8e7bd231
GM
11671 * xdisp.c (echo_area_display): Display thoroughly if input is
11672 pending. Bind redisplay-dont-pause to t during the redisplay.
11673 in case input is pending.
11674
11675 * dispnew.c (Qredisplay_dont_pause): New variable.
11676 (syms_of_display): Initialize and staticpro it.
11677 (update_frame_1): Don't interrupt the display for pending input if
11678 redisplay_dont_pause is set.
52283633 11679
43028b7e
GM
11680 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
11681
41e757a6
GM
11682 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11683
2f2174fa
KH
116842000-08-09 Miles Bader <miles@lsi.nec.co.jp>
11685
11686 * callproc.c (Fcall_process): Terminate the unwind-protect around
11687 the post-read-conversion of coding system.
11688
0a6fd67e
MB
11689 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
11690 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
11691 * buffer.h (overlays_at): Update prototype.
11692 * xdisp.c (next_overlay_change): Update call to overlays_at.
11693 * xfaces.c (face_at_buffer_position): Likewise.
11694 * textprop.c (Fget_char_property): Likewise.
11695 * xterm.c (note_mouse_highlight): Likewise.
11696
0c80756e
MB
11697 * minibuf.c (do_completion): Don't consider a simple change of
11698 case as `completion'.
11699
975f250a
KR
117002000-08-08 Ken Raeburn <raeburn@gnu.org>
11701
52283633 11702 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
11703 * undo.c (record_delete): Make sure last_point_position_buffer is
11704 a buffer before comparing pointers.
11705
11706 * coding.h (decode_coding_string): Declare.
11707
11708 * intervals.h (Fprevious_single_char_property_change): Declare.
11709
11710 * textprop.c (Fprevious_single_char_property_change): Don't do
11711 arithmetic directly on lisp objects.
11712
52283633 11713 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
11714
11715 * keyboard.h (menu_item_eval_property): Declare.
11716
11717 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
11718 reuse as buffer name, instead of recreating (and discarding) every
11719 time a message is logged.
11720 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
11721 (current_message_1, truncate_message_1, set_message_1)
11722 (display_echo_area_1, resize_mini_window_1): Signatures changed.
11723 (current_message, truncate_echo_area, display_echo_area)
11724 (resize_echo_area_axactly): Changed calls.
b347b3fd 11725
975f250a 11726 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 11727 Lisp object.
975f250a 11728 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 11729 must be an integer, not a Lisp object.
975f250a 11730
46dc9912
KH
117312000-08-08 Kenichi Handa <handa@etl.go.jp>
11732
11733 * charset.c (Fchar_width): Doc fix.
11734
9f6d1a6c
GM
117352000-08-08 Gerd Moellmann <gerd@gnu.org>
11736
11737 * charset.c (Fstring_width): Doc fix.
11738
ff3d9573
GM
117392000-08-07 Gerd Moellmann <gerd@gnu.org>
11740
41e757a6 11741 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
11742 line, clear ascent and descent members of the iterator structure;
11743 the height of the continued line does not affect the height of the
11744 continuation line.
11745 (make_cursor_line_fully_visible): Do nothing if cursor is on a
11746 line taller than the window.
11747 (redisplay_window) <forced window start>: Handle case that the
11748 middle of the window is not found in any row.
11749 (dump_glyph_row): Show more information.
11750 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
11751 first text line in a glyph matrix.
11752
11753 * xterm.c (x_draw_image_foreground): Avoid drawing outside
11754 of the clip area when image doesn't have a mask.
11755
70fc58b3
GM
11756 * fns.c (sweep_weak_table): Fix survival conditions for
11757 key-or-value and key-and-value weakness.
11758
11759 * .gdbinit (xhashtable): New command.
11760
ac0e96ee
GM
11761 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
11762 tables out of the list of all weak hash tables.
11763
ff3d9573
GM
11764 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
11765 a new buffer is created, make sure echo_area_buffer[] references
11766 the new buffer.
11767
e0d8827b
EZ
117682000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
11769
11770 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
11771 the doc string.
11772
c6f35378
KH
117732000-08-07 Kenichi Handa <handa@etl.go.jp>
11774
11775 * syntax.c (skip_chars): Fix previous change. Make the handling
11776 of unibyte string consistent with that of regex search.
11777
1fd4c450
GM
117782000-08-05 Gerd Moellmann <gerd@gnu.org>
11779
e49aa397
GM
11780 * xmenu.c (popup_get_selection): Use xfree instead of free.
11781
11782 * fileio.c (Finsert_file_contents): Use xfree instead of free.
11783
11784 * editfns.c (Ftranspose_regions): Use xfree instead of free.
11785
11786 * callproc.c (child_setup): Use xfree instead of free.
11787
11788 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
11789 instead of malloc.
11790 (run_mac_command, closedir): Use `xfree' instead of `free'.
11791
11792 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
11793
11794 * eval.c (error): Use xfree instead of free.
11795
1fd4c450
GM
11796 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
11797
11798 * fns.c: Replace `illegal' with `invalid'.
e49aa397 11799 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 11800
82d497fc
KH
118012000-08-05 Kenichi Handa <handa@etl.go.jp>
11802
11803 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
11804 conversion.
11805
59f953a2
NF
118062000-08-04 Noah Friedman <friedman@splode.com>
11807
11808 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
11809 docstring.
11810
688351f2
GM
118112000-08-04 Gerd Moellmann <gerd@gnu.org>
11812
11813 * syntax.c (skip_chars): Fix typo in error message.
11814
2dad51cc
AS
118152000-08-04 Andreas Schwab <schwab@suse.de>
11816
11817 * m/ia64.h: Moved from s/ia64.h.
11818
99bb2c60
KH
118192000-08-04 Kenichi Handa <handa@etl.go.jp>
11820
082a1df2
KH
11821 * process.c (read_process_output): Big simplification. Handle
11822 composition and post-read-conversion of coding system correctly.
11823 (send_process): Handle composition correctly.
11824
11825 * callproc.c (Fcall_process): Handle post-read-conversion of
11826 coding system if any.
11827
99bb2c60
KH
11828 * coding.c (decode_coding_iso2022): More strict check for handling
11829 single shifting.
082a1df2
KH
11830 (coding_restore_composition): Pay attention to the case that
11831 cmp_data is not set properly (because of invalid code in the
11832 source text).
11833 (run_pre_post_conversion_on_str): Include text properties in the
11834 resulting string.
11835 (decode_coding_string): Set members of coding correctly.
99bb2c60 11836
f4988be7
GM
118372000-08-03 Gerd Moellmann <gerd@gnu.org>
11838
11839 * s/ia64.h: New file.
11840
11841 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
11842 Use NULL instead of 0 at the end of variable argument list of
11843 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
11844 sizeof (int) < sizeof (void *).
11845
11846 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
11847 of variable argument lists of XtVaGetValues and XtVaSetValues.
11848
11849 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
11850 variable argument lists of XtVaGetValues and XtVaSetValues.
11851
ead53494
GM
118522000-08-02 Gerd Moellmann <gerd@gnu.org>
11853
11854 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
11855 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
11856
11857 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
11858 prototype.
11859
11860 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
11861 in call to Fsingle_key_description.
11862
11863 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
11864 Callers changed.
11865
118662000-08-02 Colin Walters <walters@cis.ohio-state.edu>
11867
11868 * window.c (display_buffer_reuse_frames): New variable.
11869 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
11870 frames displaying BUFFER.
52283633 11871 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 11872
10b0f752
MB
118732000-08-01 Miles Bader <miles@gnu.org>
11874
11875 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
11876 when to constrain NEW_POS (they were pretty screwed up before).
11877
16425c4a
EZ
118782000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
11879
11880 * msdos.c (run_msdos_command): Save and restore the master
11881 environment, for the case that child_setup signals an error.
11882 When mirroring slashes in DOS shell commands, don't fail when
11883 argv[2] has embedded blanks.
da288c14
EZ
11884 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
11885 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
11886 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
11887
11888 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
11889 using alloca; free it after run_msdos_command returns.
11890
27f73852
DL
118912000-07-27 Dave Love <fx@gnu.org>
11892
52283633
SM
11893 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
11894 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
11895
11896 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
11897
c0261b5e
EZ
118982000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
11899
11900 * editfns.c (lisp_time_argument): Fix last change.
11901
b548072f
GM
119022000-07-27 Gerd Moellmann <gerd@gnu.org>
11903
3ab82477
GM
11904 * fns.c (Fdelete): Make it work on vectors and strings in addition
11905 to lists.
11906
b548072f
GM
11907 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
11908 (syms_of_fns): Initialize new variables.
52283633 11909 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
11910 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
11911 weakness, with t meaning the same as `key-and-value'.
11912
91ae8751
KH
119132000-07-27 Kenichi Handa <handa@etl.go.jp>
11914
11915 * coding.h (struct coding_system): Member safe_charset deleted.
11916
11917 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
11918 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
11919 New variables.
91ae8751
KH
11920 (coding_safe_chars): New function.
11921 (CODING_SAFE_CHAR_P): New macro.
11922 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 11923 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
11924 (detect_coding_iso2022): New local variable safe_chars.
11925 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
11926 safe_charsets member of the coding system.
11927 (decode_coding_iso2022): New local variable safe_chars.
11928 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
11929 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
11930 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
11931 (ENCODE_UNSAFE_CHARACTER): New macro.
11932 (encode_coding_iso2022): New local variable safe_chars. Check
11933 unsafe chars.
11934 (setup_coding_system): Delete the code to initialize
11935 coding->safe_charses
11936 (intersection, find_safe_codings): New functions.
11937 (Ffind_coding_systems_region_internal): New function.
11938 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
11939 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
11940 variable and initialize it.
11941
11942 * fns.c (char_table_ref_and_index): New function.
11943
11944 * lisp.h (char_table_ref_and_index): Add prototype.
11945
34a7a267
SS
119462000-07-26 Sam Steingold <sds@gnu.org>
11947
11948 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 11949 (Ffloat_time): New built-in Lisp function.
34a7a267 11950
a95cb10a
GM
119512000-07-26 Gerd Moellmann <gerd@gnu.org>
11952
3353ef5a
GM
11953 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
11954 for the character code.
11955
11956 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
11957 GNU/Linux.
11958
a95cb10a
GM
11959 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
11960 if called for a popup menu.
11961 (xmenu_show): Store help string in widget values.
11962
b4a12321
DL
119632000-07-26 Dave Love <fx@gnu.org>
11964
11965 * syswait.h: Move some definitions.
11966 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
11967 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
11968 perspicuous definitions.
11969 (WTERMSIG): Fix bit pattern used.
11970
13f5ad37
KH
119712000-07-26 Kenichi Handa <handa@etl.go.jp>
11972
11973 * print.c (print_object): If vector printing is truncated, print
11974 "..." to indicate it as well as the case of list printing.
11975
070fe99c
GM
119762000-07-25 Gerd Moellmann <gerd@gnu.org>
11977
969065c3
GM
11978 * xdisp.c (next_element_from_display_vector): Improve comments.
11979
11980 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11981 for the character code, and the rest for the face id as in 20.x.
11982 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
11983
11984 * window.c (window_display_table): Cleaned up.
11985
070fe99c
GM
11986 * syntax.c (Fforward_word): Add last arg nil in call of
11987 Fconstrain_to_field.
11988
bad77ef7
EZ
119892000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
11990
969065c3 11991 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
11992 identical but for the letter-case, don't call
11993 barf_or_query_if_file_exists.
bad77ef7 11994
c28da489
MB
119952000-07-25 Miles Bader <miles@gnu.org>
11996
11997 * editfns.c (find_field): Honor special `boundary' fields.
11998 (Qboundary): New variables.
11999 (syms_of_editfns): Initialize Qboundary.
12000 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
12001 Use scan_buffer instead of find_before_next_newline, because it
12002 allows us to detect the boundary case where there's a newline at
12003 the search limit.
12004 * lisp.h (Fconstrain_to_field): Update external declaration.
12005
e3c31fd5
GM
120062000-07-24 Gerd Moellmann <gerd@gnu.org>
12007
12008 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
12009 if that is nil.
c28da489 12010
c66c29a2
DL
120112000-07-24 Dave Love <fx@gnu.org>
12012
12013 * s/sunos4-0.h, s/sol2.h:
12014 (LIBS_TERMCAP): Move from m/sparc.h.
12015
12016 * m/sparc.h (TERMINFO): Moved to system files (probably only
12017 relevant for sunos4 judging by its vintage).
12018 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
12019 __arch64__.
12020
fbe0a958
EZ
120212000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
12022
12023 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
12024 name to single_keymap_panes.
12025
7d88e5c9
AS
120262000-07-24 Andreas Schwab <schwab@suse.de>
12027
12028 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
12029
e024b101
GM
120302000-07-24 Gerd Moellmann <gerd@gnu.org>
12031
12032 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
12033 parameters instead of using int parameters. Expect FN to accept
12034 EMACS_INT parameters.
12035 (display_echo_area, resize_echo_area_axactly, current_message)
12036 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
12037 with new argument list.
12038 (resize_mini_window_1): New callback function.
12039 (current_message_1, truncate_message_1, set_message_1): Change
52283633 12040 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 12041
25c1a9ce
KH
120422000-07-24 Kenichi Handa <handa@etl.go.jp>
12043
12044 * fontset.c (fontset_ref): Remove INLINE declaration.
12045 (fontset_ref_via_base): Likewise.
12046 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
12047 to downcase.
12048
7f987ac0
EZ
120492000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
12050
12051 * msdos.c (IT_note_mouse_highlight): Process overlays in the
12052 correct order of priority. If help echo was found in an overlay,
12053 use that overlay as the object in which the help echo was found.
12054
e2db3069
MB
120552000-07-22 Miles Bader <miles@gnu.org>
12056
12057 * textprop.c (Fprevious_single_char_property_change): The initial
12058 property value should be from the position preceding POSITION, not
12059 following it.
12060
5e3203e4
EZ
120612000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
12062
12063 * coding.c (syms_of_coding): Doc fix for
12064 inhibit-iso-escape-detection.
12065
62145073
GM
120662000-07-21 Gerd Moellmann <gerd@gnu.org>
12067
c20aeb83
GM
12068 * xterm.c (note_mouse_highlight): Process overlays in the right
12069 order of priority.
34a7a267 12070
743934db
GM
12071 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
12072
12073 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 12074 overlay, use that overlay as the object in which the help was found.
743934db 12075
d1dc7e43 12076 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 12077
62145073
GM
12078 * window.c (foreach_window): Instead of a fake variable argument
12079 list, take one USER_DATA argument.
12080 (foreach_window_1): Likewise, and call callback functions with two
12081 args, the window and USER_DATA.
12082 (struct check_window_data): New struct.
12083 (check_window_containing): Use it.
12084 (window_from_coordinates): Set up a struct check_window_data for
12085 foreach_window.
12086 (add_window_to_list, freeze_window_start): Change parameters
12087 according to new calling convention.
12088
12089 * window.h (foreach_window): Change prototype.
12090
12091 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
12092
120932000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
12094
12095 * xmenu.c (menu_help_callback): Call show_help_echo with
12096 additional arguments OBJECT and POS.
12097
11270583
KH
120982000-07-21 Kenichi Handa <handa@etl.go.jp>
12099
07b14857
KH
12100 * data.c (Faset): Allow storing any multibyte character in a
12101 string. Convert unibyte string to multibyte if necessary.
12102
11270583
KH
12103 * xfns.c (x_encode_text): New function.
12104 (x_set_name): Use x_encode_text.
12105 (x_set_title): Likewise.
12106
12107 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
12108
12109 * xterm.h (x_encode_text): Add prototype.
12110
bc75b4fd
DL
121112000-07-20 Dave Love <fx@gnu.org>
12112
12113 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
12114 xfree, not free.
12115
48c14970
EZ
121162000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
12117
12118 * msdos.c (help_echo_window): New variable.
12119 (syms_of_msdos): Initialize and staticpro it.
12120 (IT_note_mode_line_highlight): Set help_echo_window.
12121 (IT_note_mouse_highlight): Ditto.
12122 (dos_rawgetc): Store help_echo_window in the second event produced
12123 for HELP_EVENTs.
12124
12125 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
12126 Record the object that generated the help echo and the position of
12127 that object in help_echo_object and help_echo_pos. Record that
12128 some glyphs in a row are displayed in mouse-face.
12129 (IT_update_begin): Don't clear mouse highlight unless one of the
12130 enabled glyph rows is marked as being displayed in mouse-face.
12131 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
12132 and position recorded in help_echo_object and help_echo_pos to the
12133 event queue.
12134 (IT_menu_display): Accept a new argument PN: the pane number of
12135 the current menu pane. Record the pane number and the item
12136 number of the item which has associated help string.
12137 (XMenuActivate): Update the prototype for help_callback in
12138 function declaration. Call IT_menu_display with the current menu
12139 pane number as an additional argument. Call help_callback with
12140 two additional arguments: the pane number and the item number of
12141 the menu item associated with the help text.
12142 (help_echo_object, help_echo_pos): New variables.
12143 (syms_of_msdos): Initialize them and staticpro help_echo_object.
12144
12145 * msdos.h (XMenuActivate): Update prototype.
12146
4279296d
GM
121472000-07-19 Gerd Moellmann <gerd@gnu.org>
12148
47db06aa
GM
12149 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
12150 Add some more prototypes.
12151
12152 * xterm.c, xterm.h: Add some more prototypes.
12153
12154 * lisp.h (Fnext_single_char_property_change): Add prototype.
12155
12156 * dispnew.c (direct_output_for_insert): Remove confusing
12157 outer local variable mouse_face_overwritten_p.
12158 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
12159
4279296d
GM
12160 * alloc.c (allocate_string_data): Don't copy old string contents.
12161
670acd62
KH
121622000-07-19 Kenichi Handa <handa@etl.go.jp>
12163
12164 * coding.c (code_convert_region): Delete text properties before
12165 shrinking the conversion region.
12166
7cea38bc
GM
121672000-07-18 Gerd Moellmann <gerd@gnu.org>
12168
dc1cac59
GM
12169 * dispnew.c (update_text_area): Write the whole row if it
12170 has mouse-face in it.
12171
85a8aca9
GM
12172 * xfaces.c (face-alternative-font-family-alist): Remove
12173 DEFVAR_LISP; staticpro instead.
12174
34a7a267 12175 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
12176 new arguments.
12177
12178 * keyboard.c (show_help_echo): Add parameter WINDOW.
12179 (read_char): Call show_help_echo with window extracted from Lisp
12180 help event.
12181 (gen_help_event): Add parameter WINDOW.
12182
12183 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
12184
12185 * xterm.c (help_echo_window): New variable.
52283633 12186 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
12187 (XTread_socket): Pass help_echo_window to gen_help_event.
12188 (syms_of_xterm): Initialize and staticpro help_echo_window.
12189
f8276b77
DL
121902000-07-18 Dave Love <fx@gnu.org>
12191
52283633 12192 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 12193
088831a6
GM
121942000-07-18 Gerd Moellmann <gerd@gnu.org>
12195
3d6cd763
GM
12196 * alloc.c (allocate_string_data): If string had already data
12197 assigned, copy old contents to new string data.
12198
12199 * coding.c (syms_of_coding): Fix typo in spelling of variable
12200 `inhibit-iso-escape-detection'.
12201
088831a6
GM
12202 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
12203
12204 * Makefile.in: Add dependencies on dispextern.h.
12205 (alloca.o): Don't define malloc and define EMACS_FREE instead of
12206 `free'; both can conflict with system header files.
12207
bc8a8d55
KH
122082000-07-18 Kenichi Handa <handa@etl.go.jp>
12209
12210 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
12211 undefined.
12212
069f5950
DL
122132000-07-18 Dave Love <fx@gnu.org>
12214
12215 * window.c (Fwindow_list): Declare arg `window'.
12216
aa96c820
KH
122172000-07-18 Kenichi Handa <handa@etl.go.jp>
12218
12219 * coding.c (setup_coding_system): Don't override the explicitly
12220 specified designations.
12221
06be8d32
MB
122222000-07-15 Miles Bader <miles@gnu.org>
12223
12224 * editfns.c (char_property_eq, char_property_stickiness): Renamed
12225 from `text_property_eq' and `text_property_stickiness', respectively.
12226 (find_field, Fconstrain_to_field, char_property_eq)
12227 (char_property_stickiness): Changed to call char-property functions
12228 instead of text-property-only ones.
12229
12230 * textprop.c (Fnext_single_char_property_change): Made a subr (was
12231 `next_single_char_property_change'). Do more error checking, and
12232 cleanup limit behavior.
12233 (Fprevious_single_char_property_change): New function.
12234 (syms_of_textprop): Initialize new subrs.
12235
12236 * xdisp.c (display_prop_end, invisible_text_between_p):
12237 Call Fnext_single_char_property_change instead of
12238 next_single_char_property_change.
12239
3fddcdc3
JR
122402000-07-15 Jason Rumney <jasonr@gnu.org>
12241
12242 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
12243 after menu is finished with.
12244 (add_menu_item): Only consider wv->title as a menu title.
12245 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
12246
12247 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
12248 null title.
12249 (FONT_REGEXP): Remove unused macro, and its sub-components.
12250 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
12251
12252 * w32term.c (help_echo_object, help_echo_pos): New variables.
12253 (note_mode_line_highlight): Store additional information about the
12254 help-echo in help_echo_object and help_echo_pos. Check both
12255 `local-map' and `keymap' properties for changing the cursor
12256 (note_mouse_highlight): Store additional information about the
12257 help-echo in help_echo_object and help_echo_pos.
12258 (note_tool_bar_highlight): Set help_echo_object to nil and
12259 help_echo_pos to -1.
12260 (w32_read_socket): Use gen_help_event instead of filling
12261 input_events manually.
12262 (syms_of_w32term): Staticpro help_echo_object.
12263 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 12264 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
12265 (x_clear_mouse_face): New function.
12266 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
12267 (x_update_window_begin): No need to turn off the mouse
12268 highlight here.
12269 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 12270 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
12271 (x_fill_stretch_glyph_string): Consume runs of stretch
12272 glyphs instead of a single one.
12273 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
12274 with new argument list.
12275 (x_set_glyph_string_gc): Make sure the face's GC is valid.
12276 (x_append_glyph, x_append_composite_glyph)
12277 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
12278 changes in struct glyph starting 1999-12-27. See comments for
12279 xterm.c on 2000-07-05.
12280
178c5d9c
SS
122812000-07-14 Sam Steingold <sds@gnu.org>
12282
12283 * xfaces.c (realize_x_face): Fix the last patch:
12284 check `default_face' before dereferencing.
12285
6fe533f6
DL
122862000-07-14 Dave Love <fx@gnu.org>
12287
069f5950 12288 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 12289
dd7b81cf
KH
122902000-07-14 Kenichi Handa <handa@etl.go.jp>
12291
0693904a 12292 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 12293 default_face's fontset, not using the default fontset.
0693904a 12294
dd7b81cf
KH
12295 * coding.c (inhibit_iso_escape_detection): New variable.
12296 (syms_of_coding): Make it a Lisp variable.
12297 (detect_coding_iso2022): If inhibit_iso_escape_detection is
12298 nonzero, ignore ISO2022's escape sequence.
12299
d5aa31d8
GM
123002000-07-14 Gerd Moellmann <gerd@gnu.org>
12301
e5acf0ca
GM
12302 * alloca.c (malloc) [emacs]: Define as xmalloc.
12303
bd23a692
GM
12304 * xfns.c (Fx_show_tip): If frame parameters contain a position,
12305 use that instead of the mouse position. Add parameters DX and DY.
12306
12307 * dispextern.h (Fx_show_tip): Adjust number of parameters
12308 in prototype.
12309
9662da0b
GM
12310 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
12311 if HELP is a function, call it with OBJECT and POS as parameters
12312 to get the help to display.
12313 (gen_help_event, kbd_buffer_store_help_event): New functions.
12314 (kbd_buffer_get_event): Construct the Lisp help-event differently.
12315 (read_char): Call show_help_echo with new parameters.
12316
178c5d9c 12317 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
12318 Add prototypes.
12319
12320 * xterm.c (help_echo_object, help_echo_pos): New variables.
12321 (note_mode_line_highlight): Store additional information about the
12322 help-echo in help_echo_object and help_echo_pos. Check both
12323 `local-map' and `keymap' properties for changing the cursor
12324 (note_mouse_highlight): Store additional information about the
12325 help-echo in help_echo_object and help_echo_pos.
12326 (note_tool_bar_highlight): Set help_echo_object to nil and
12327 help_echo_pos to -1.
12328 (XTread_socket): Use gen_help_event instead of filling
12329 input_events manually.
12330 (syms_of_xterm): Staticpro help_echo_object.
12331
12332 * xmenu.c (menu_highlight_callback): Use
12333 kbd_buffer_store_help_event instead of setting up and input_event
12334 structure manually.
12335
12336 * xdisp.c (eval_form): GCPRO argument sexpr.
12337 (call_function): New function.
12338 (handle_single_display_prop): Use call_function and FUNCTIONP
12339 instead of checking whether if font_height is a symbol and
12340 using eval_form.
12341
12342 * eval.c (internal_condition_case_2): New function.
12343
12344 * lisp.h (FUNCTIONP): New macro.
12345 (internal_condition_case_2, call_function): Add prototypes.
12346
d5aa31d8
GM
12347 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
12348 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
12349 Always set `arg' member of input_events.
12350 (construct_menu_click): Unused function removed.
12351
12352 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
12353
12354 * w32term.c (construct_mouse_click, construct_mouse_wheel)
12355 (construct_drag_n_drop, x_scroll_bar_handle_click)
12356 (w32_read_socket): Always set `arg' member of input_events.
12357
12358 * keyboard.c (show_help_echo): Use eval_form. Add comment.
12359
12360 * lisp.h (eval_form): Add prototype.
12361
12362 * xdisp.c (eval_form): Make it externally visible.
12363
0f1a9b23
GM
123642000-07-13 Gerd Moellmann <gerd@gnu.org>
12365
12366 * xterm.c (x_handle_tool_bar_click): Store the frame in the
12367 frame_or_window slot of TOOL_BAR_EVENT input events instead of
12368 consing. For prefix events, store the frame in the `arg' slot of
12369 the event, otherwise store the key there.
12370 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 12371 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
12372
12373 * xmenu.c (menu_highlight_callback): Store help string in the
12374 `arg' member of the input event; don't cons.
12375 (menubar_selection_callback): Use the `arg' slot of input events
12376 to queue additional information, instead of consing.
12377
12378 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
12379
12380 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
12381 TOOL_BAR_EVENTs.
12382 (w32_read_socket): Adapt to changes in HELP_EVENTs.
12383
12384 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
12385 input events to queue additional information, instead of consing.
12386
12387 * keyboard.c (kbd_buffer_gcpro): Renamed from
12388 kbd_buffer_frame_or_window. Now used for all Lisp objects
12389 referenced from the input queue.
12390 (kbd_buffer_store_event): Always use structure assignment for
12391 copying input events. Record all Lisp objects referenced from
12392 events in kbd_buffer_gcpro.
12393 (kbd_buffer_get_event): Construct Lisp `help-echo' events
12394 differently from input events. Test for prefix menu_bar_events
12395 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
12396 event in kbd_buffer_gcpro to nil.
12397 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
12398 frame_or_window is equal to its arg member as prefix events.
12399 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
12400 used by an input event to nil.
12401 (init_keyboard): Use two times the size of the input queue
12402 for kbd_buffer_gcpro.
12403 (syms_of_keyboard): Likewise.
12404
52283633
SM
12405 * emacs.c (handle_USR2_signal, handle_USR1_signal):
12406 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
12407
12408 * termhooks.h (struct input_event): Add member `arg'.
12409 (MENU_BAR_EVENT): Renamed from menu_bar_event.
12410 (USER_SIGNAL_EVENT): Renamed from user_signal.
12411
12412 * xfaces.c (ASET): Remove definition.
12413
12414 * lisp.h (AREF, ASET, ASIZE): New macros.
12415
12416 * fontset.c (AREF, ASIZE): Remove definitions.
12417
12418 * fns.c (AREF): Remove definition.
178c5d9c 12419
0f1a9b23
GM
12420 * composite.c (AREF): Remove definition.
12421
712eaef2
GM
124222000-07-12 Gerd Moellmann <gerd@gnu.org>
12423
d8ee7803
GM
12424 * dispnew.c (redraw_overlapped_rows): Add missing local.
12425 (scrolling_window): Remove debug code.
12426
712eaef2
GM
12427 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
12428 Before scrolling, turn off a mouse-highlight in the window
12429 being scrolled.
12430
12431 * xterm.c (x_update_window_end): Add parameter
12432 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
12433 redisplay in XTframe_up_to_date.
12434 (x_clear_mouse_face): New function.
12435 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
12436
12437 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
12438 current glyph row.
12439 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
12440 it when any row is written to that contains glyphs highlighted in
12441 mouse-face.
12442 (update_window): Call the window update end hook with new
12443 parameter MOUSE_FACE_OVERWRITTEN_P.
12444 (direct_output_for_insert): Give up if row contains mouse-face.
12445
12446 * dispextern.h (struct redisplay_interface): Add parameter
12447 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
12448 (clear_mouse_face): New function pointer member.
12449
02010917
SM
124502000-07-11 Stefan Monnier <monnier@cs.yale.edu>
12451
12452 * syntax.c (back_comment): Use one switch rather than a few `if's.
12453 Obey open_paren_in_column_0_is_defun_start.
12454 When reverting to the `slow' method, try to nicely handle the case
12455 of nested comments by checking that the comment-starter we found
12456 does indeed match the comment-ender.
12457 (scan_sexps_forward, scan_sexps_forward):
12458 Ignore excessive opening parenthesis rather than throwing an error.
12459
d76c03ea
GM
124602000-07-11 Gerd Moellmann <gerd@gnu.org>
12461
12462 * doc.c (Fsubstitute_command_keys): Handle case that a GC
12463 in Fwhere_is_internal or get_keymap_1 relocates string contents.
12464
12465 * dispnew.c (direct_output_forward_char): Give up if currently
12466 displaying a message instead of the minibuffer contents.
12467
12468 * xterm.c (x_update_window_begin): No need to turn off the mouse
12469 highlight here.
12470 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 12471 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
12472
12473 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
12474 compare the mouse_face_p flags of both rows.
12475
12476 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
12477
d55ead18
EZ
124782000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
12479
12480 * keyboard.c (show_help_echo): Accept additional parameter
12481 ok_to_overwrite_keystroke_echo.
12482 (read_char): Call show_help_echo with a zero
12483 ok_to_overwrite_keystroke_echo argument.
52283633 12484 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
12485 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
12486 ok_to_overwrite_keystroke_echo argument.
12487 * w32menu.c (w32_menu_display_help): Call show_help_echo with
12488 non-zero ok_to_overwrite_keystroke_echo argument.
12489
df75b1a3
GM
124902000-07-10 Gerd Moellmann <gerd@gnu.org>
12491
4b92c49a
GM
12492 * xdisp.c (try_window_id): If changes are all below what is
12493 displayed in the window, and point is in the window, we still
12494 might have to find point on the display.
12495
12496 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
12497 glyphs instead of a single one.
12498 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
12499 with new argument list.
12500 (x_set_glyph_string_gc): Make sure the face's GC is valid.
12501
df75b1a3
GM
12502 * keymap.c (get_keymap_1): Add comment that this function can GC.
12503 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
12504 comment that functions can GC.
12505 (Fset_keymap_parent): GCPRO arg KEYMAP.
12506
4314cf3e
EZ
125072000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
12508
12509 * msdos.c (XMenuActivate): After exiting the menu, restore the
12510 echo area message and erase it.
12511
ab49ce15
KH
125122000-07-10 Kenichi Handa <handa@etl.go.jp>
12513
12514 * fontset.c (Ffontset_info): Make the return value more compatible
12515 with that of Emacs 20.
12516
090a072f
GM
125172000-07-07 Gerd Moellmann <gerd@gnu.org>
12518
12519 * eval.c (Fsignal): Handle case that backtrace_list is null.
12520
f92de4a6
KH
125212000-07-07 Kenichi Handa <handa@etl.go.jp>
12522
12523 * ccl.c (Fccl_execute): Typo fixed.
12524
dd8888a1
GM
125252000-07-06 Gerd Moellmann <gerd@gnu.org>
12526
e5c81191 12527 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 12528
dd8888a1
GM
12529 * window.c (Fwindow_list): Reverse list at the end.
12530 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
12531 means allow windows on OWINDOW's frame, only.
12532 (window_loop): Simplified; use Fwindow_list.
12533
12534 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
12535
485266d0
GM
125362000-07-05 Gerd Moellmann <gerd@gnu.org>
12537
12538 * xterm.c (XTread_socket): Increment handling_signal at the start,
12539 decrement it at the end.
12540
12541 * eval.c (handling_signal): New variable.
12542 (Fsignal): Abort if handling_signal is non-zero.
12543
12544 * lisp.h (handling_signal): External declaration.
178c5d9c 12545
485266d0
GM
12546 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
12547
80fcd514
KR
125482000-07-05 Ken Raeburn <raeburn@gnu.org>
12549
12550 Sound support for NetBSD through "Linux emulation" support:
12551 * config.in (HAVE_SOUNDCARD_H): Undef.
12552 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
12553 * Makefile.in (LIBSOUND): New variable.
12554 (LIBES): Include it.
52283633
SM
12555 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
12556 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
12557 (vox_open): Use DEFAULT_SOUND_DEVICE.
12558 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
12559
d5c5cddd
GM
125602000-07-05 Gerd Moellmann <gerd@gnu.org>
12561
12562 * print.c (print_error_message): If Vsignaling_function is set,
12563 show it in *Messages*.
12564
12565 * lisp.h (Vsignaling_function): External declaration.
12566
12567 * eval.c (Vsignaling_function): New variable.
12568 (Fsignal): Compute it.
12569 (syms_of_eval): Staticpro it.
12570
65171e3a
DL
125712000-07-05 Dave Love <fx@gnu.org>
12572
12573 * syswait.h: Use the autoconf recommended approach. Old code
12574 #if'd out in case we need to revert.
12575
178c5d9c 12576 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 12577
e2c46326
AI
125782000-07-05 Andrew Innes <andrewi@gnu.org>
12579
12580 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
12581 when non-NULL instead of __morecore, to take account of buffer
12582 memory. This also solves a problem with spurious memory warnings
12583 on Windows.
12584
12585 * ralloc.c: Make real_morecore non-static.
12586
12587 * eval.c (internal_condition_case): Comment out abort if
12588 interrupt_input_blocked is not zero.
12589
12590 * makefile.nt: Add support for `bootstrap' and related targets.
12591 Include minimal debug info in emacs.exe in release build.
12592 Remove all dependencies on lisp.h, and fixup some others.
12593
12594 * w32.c (init_environment): Install code from 20.7 for providing
12595 default values for environment variables, based on the
12596 executable's own location.
52283633 12597 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
12598 (sys_socket): Install socket inheritance bug fix from 20.7.
12599
12600 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
12601 here via blockinput.h).
12602
a027a91b
SM
126032000-07-05 Stefan Monnier <monnier@cs.yale.edu>
12604
e4b31601
SM
12605 * w32menu.c (w32_menu_display_help):
12606 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
12607
12608 * keyboard.h (show_help_echo): Declare.
12609
12610 * keyboard.c (show_help_echo): New function, extracted from read_char.
12611 Feval its `msg' argument if it's a cons cell.
12612 (read_char): Use it.
4cf8d9d5 12613 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 12614
178c5d9c 12615 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 12616 (note_tool_bar_highlight, XTread_socket):
178c5d9c 12617 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
12618 (dos_rawgetc):
12619 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
12620 (note_tool_bar_highlight, w32_read_socket):
12621 Do not gratuitously ignore non-string `help-echo' properties.
12622
88d75730
GM
126232000-07-05 Gerd Moellmann <gerd@gnu.org>
12624
969f7e79
GM
12625 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
12626
71201b00
GM
12627 * window.c (delete_all_subwindows): Reset Vwindow_list.
12628
88d75730
GM
12629 * xterm.c (x_append_glyph, x_append_composite_glyph)
12630 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
12631 changes in struct glyph starting 1999-12-27. Some bit-fields of
12632 struct glyph were not set, which made glyphs unequal when compared
12633 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
12634 effects were the result. This also depended on the contents of
12635 memory returned by xmalloc. If flickering happens again, activate
12636 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 12637 gone with that, chances are that it is caused by something similar.
88d75730
GM
12638
12639 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 12640
88d75730
GM
12641 * dispextern.h: Add some comments.
12642
12643 * window.c (add_window_to_list): Add parameter LIST.
12644 (window_list): Order list so that, for each frame, windows are
12645 in canonical order, and so that frames appear in the list in
12646 the order given by Vframe_list.
12647 (next_window): Reverse the handling of NEXT_P.
12648
53654733
GM
126492000-07-04 Gerd Moellmann <gerd@gnu.org>
12650
87efd256
GM
12651 * window.c (Vwindow_list): New variable.
12652 (make_window, delete_window): Set Vwindow_list to nil.
12653 (check_window_containing): New function.
12654 (window_from_coordinates): Rewritten.
12655 (add_window_to_list, window_list, candidate_window_p)
12656 (decode_next_window_args, next_window): New functions.
52283633 12657 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
12658 (Fwindow_list): New function.
12659 (Fother_window): Cleaned up.
12660 (foreach_window): Add a longer "variable argument list". Let
12661 callback function return 0 to indicate that cycling over windows
12662 should stop.
12663 (foreach_window_1): Likewise.
12664 (freeze_window_start): Return int.
12665 (init_window): New function.
12666 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
12667
12668 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
12669 input_event with bzero.
12670 (main): Call init_window.
12671
53654733
GM
12672 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
12673 a menu filter.
12674
4a8c194f
KH
126752000-07-04 Kenichi Handa <handa@etl.go.jp>
12676
12677 * composite.h (make_composition_value_copy): Extern it.
12678
12679 * composite.c (make_composition_value_copy): New function.
12680
12681 * editfns.c (Fformat): While copying text properties, make each
12682 composition property value a copy.
12683
12684 * fns.c (concat): While copying text properties, make each
12685 composition property value a copy.
12686
831a6cb0
GM
126872000-07-03 Gerd Moellmann <gerd@gnu.org>
12688
2f516940
GM
12689 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
12690
178c5d9c 12691 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
12692 marked already.
12693
831a6cb0
GM
12694 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
12695 include those frames as candidates which have their focus
12696 redirected to the minibuffer frame.
12697
d9c4f922
SM
126982000-07-03 Stefan Monnier <monnier@cs.yale.edu>
12699
12700 * fns.c (Fputhash): Return `value' rather than nil.
12701
3780bc22
GM
127022000-06-30 Gerd Moellmann <gerd@gnu.org>
12703
97d176db
GM
12704 * frame.c (next_frame): Don't check focus redirection in case
12705 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
12706 unless their focus is redirected, which contradicts the
12707 specification of next-frame, and leads to infinite loops in
12708 certain situations when cycling through windows with next-window.
12709
dca9961d
KH
127102000-06-30 Kenichi Handa <handa@etl.go.jp>
12711
12712 * coding.c (code_convert_region): Even if the length of text is
12713 zero, try to convert it if coding->type is coding_type_ccl.
12714 (decode_coding_string, encode_coding_string): Likewise.
12715
d5483ab1
GM
127162000-06-28 Gerd Moellmann <gerd@gnu.org>
12717
af5c25e1 12718 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 12719 the display if windows_or_buffers_changed.
af5c25e1
GM
12720
12721 * dispnew.c (struct row_entry): New structure.
12722 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
12723 (row_table_size, old_lines, new_lines, old_lines_size)
12724 (new_lines_size, run_pool, runs_size, runs): New variables.
12725 (add_row_entry): New function.
12726 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 12727 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
12728 holding them in local variables. Use a larger hash table whose
12729 size depends on glyph matrix sizes. Don't use bzero to clear the
12730 hash table; instead, clear used slots only.
12731
12732 * fns.c (next_almost_prime): Make it externally visible.
12733
12734 * lisp.h (next_almost_prime): Add prototype.
12735
d5483ab1
GM
12736 * s/isc4-0.h (sigunblock): Define.
12737
12738 * s/sco5.h (sigunblock): Define.
12739
93e40f40
DL
127402000-06-27 Dave Love <fx@gnu.org>
12741
12742 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
12743 (moved to osf5-0.h).
12744 [!NOT_C_CODE]: Protect string.h stuff.
12745
12746 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
12747 (sys_siglist, NSIG): Definitions moved here from osf1.h.
12748
3c4b7685
GM
127492000-06-27 Gerd Moellmann <gerd@gnu.org>
12750
97d176db 12751 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
12752 below the last line from the needed window height.
12753
32cad0aa
SM
127542000-06-26 Stefan Monnier <monnier@cs.yale.edu>
12755
12756 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
12757 (Fwidget_get): Use it.
12758 (syms_of_fns): Defsubr it.
12759
2c69ced2
GM
127602000-06-26 Gerd Moellmann <gerd@gnu.org>
12761
178c5d9c 12762 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
12763 display info for XIM.
12764 (xim_open_dpy): Likewise.
12765 (xim_close_dpy): Don't free the display info's XIM.
12766
12767 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
12768
12769 * config.in (USE_XIM): New define.
12770
3fc720e4
GM
12771 * keymap.c (get_keyelt): For menu-items containing a `:filter
12772 FILTER', apply FILTER to the menu-item's definition to get the
12773 real definition to use.
12774
12775 * lisp.h (QCfilter): External declaration.
12776
2c69ced2
GM
12777 * xfns.c (Fimage_size): New function.
12778 (syms_of_xfns): Defsubr it.
12779
f978b2a2
AS
127802000-06-26 Andreas Schwab <schwab@suse.de>
12781
12782 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
12783 Fstring_as_unibyte.
12784
94cc7892
DL
127852000-06-25 Dave Love <fx@gnu.org>
12786
52283633 12787 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
12788
12789 * Makefile.in (blockinput.h): Depend on atimer.h.
12790 (atimer.h): Depend on systime.h.
12791
52283633 12792 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 12793
52283633 12794 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
12795
12796 * lisp.h (swap_in_global_binding): Declare.
12797
b8c24556
KR
127982000-06-24 Ken Raeburn <raeburn@gnu.org>
12799
12800 * process.c (Fopen_network_stream): Turn off atimers for duration
12801 of call to connect. (Patch from Gerd.)
12802
8cf8560b
DL
128032000-06-23 Dave Love <fx@gnu.org>
12804
511c7541
DL
12805 * ralloc.c: Maybe include unistd.h
12806
8cf8560b
DL
12807 * emacs.c (setgrp): Undefine before defining.
12808 (malloc_warning, set_time_zone_rule, index): Prototype.
12809
12810 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
12811 HAVE_STRUCT_TIMEZONE.
12812
12813 * s/osf1.h: Move string.h hack here from alpha.h and make it
12814 conditional.
12815 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
12816 _XOPEN_SOURCE.
12817 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
12818 (SOCKLEN_TYPE): Don't define.
12819
12820 * m/alpha.h: Remove string.h hack.
12821
12822 * s/osf5-0.h: New file.
12823
12824 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
12825 include time.h, done by systime.h.
12826 [__FreeBSD__]: Remove redundant includes.
12827
3fc720e4 12828 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
12829 (delete_temp_file): Return Qnil to avoid warning.
12830
12831 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
12832
12833 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
12834 HAVE_X_WINDOWS.
12835
12836 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
12837
12838 * composite.h (compose_text): Declare.
12839
12840 * xterm.c: Don't include sys/types.h unconditionally. Don't
12841 protect its inclusion with !USG (following xmenu.c).
12842
ea055732
GM
128432000-06-23 Gerd Moellmann <gerd@gnu.org>
12844
12845 * xfns.c (x_create_tip_frame): Initialize frame's colors like
12846 in x_create_frame.
12847
74b01b80
EZ
128482000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
12849
12850 * coding.c (decode_eol_post_ccl): Special handling for undecided
12851 and inconsistent EOL types.
12852
64f3a166
GM
128532000-06-22 Gerd Moellmann <gerd@gnu.org>
12854
16cf31f7
GM
12855 * xrdb.c (x_load_resources): Add default resource for scroll bar's
12856 trough color and main window's background color.
12857
52283633 12858 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
12859
12860 * xterm.h (Xt_app_con): External declaration.
12861
12862 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 12863
486a103d
GM
12864 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
12865
64f3a166
GM
12866 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
12867 (handle_invisible_prop): Record the start of invisible text in
12868 it->add_overlay_start.
12869 (struct overlay_entry): Add member `overlay'.
12870 (handle_overlay_change): Simplify.
12871 (next_overlay_string): After having processed overlay strings at the
12872 end of the buffer, record that fact in
12873 it->overlay_strings_at_end_processed_p.
12874 (compare_overlay_entries): If before- and after-strings come
12875 from the same overlay, let before-strings come first.
12876 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
12877 (load_overlay_strings): Take it->add_overlay_start into account
12878 when adding overlay strings.
12879
12880 * dispextern.h (struct it): Add member add_overlay_start.
12881
bb746ea6
DL
128822000-06-22 Dave Love <fx@gnu.org>
12883
12884 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
12885
12886 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
12887
a8f573f3
KH
128882000-06-22 Kenichi Handa <handa@etl.go.jp>
12889
12890 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
12891 is greater than 0.
12892
9f2bbc92
DL
128932000-06-21 Dave Love <fx@gnu.org>
12894
178c5d9c 12895 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 12896
3ee5041c
SM
128972000-06-21 Stefan Monnier <monnier@cs.yale.edu>
12898
12899 * syntax.c (back_comment): Simplify string-parity counting (with
12900 the added benefit of handling multiple string-styles as long as
12901 they are not intertwined).
12902 Jump to the slow code as soon as a comment starter is found in
12903 a "string_lossage" position. Fixes the case: " /* " /* " */.
12904
4c343001
DL
129052000-06-21 Dave Love <fx@gnu.org>
12906
12907 * Makefile.in: Use GETLOADAVG_LIBS.
12908
12909 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
12910 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
12911
e6365855
SM
129122000-06-20 Stefan Monnier <monnier@cs.yale.edu>
12913
12914 * syntax.c (describe_syntax): Recognize the `n'estable bit.
12915 (Fforward_comment, scan_lists):
12916 Check the comstyle of single-char comment-starters.
12917 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
12918 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
12919 Check the comstyle of single-char comment-starters.
12920 Clarify control-flow around the Scomment case.
e6365855 12921
5700d2cc
DL
129222000-06-20 Dave Love <fx@gnu.org>
12923
d355bd8a
SM
12924 * fns.c (make_hash_table, maybe_resize_hash_table):
12925 Cast arg of next_almost_prime.
5700d2cc 12926
178c5d9c 12927 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
12928
12929 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
12930 and unistd.h.
12931
4a27bdfb
GM
129322000-06-20 Gerd Moellmann <gerd@gnu.org>
12933
a61d762c 12934 * keyboard.c (adjust_point_for_property): Check if display
52283633 12935 property should be treated as intangible by looking at its value.
a61d762c 12936
178c5d9c 12937 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
12938 (display_prop_intangible_p): New functions.
12939
12940 * dispextern.h (display_prop_intangible_p): Add prototype.
12941
12942 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 12943
4a27bdfb
GM
12944 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
12945 argument to sigprocmask.
12946
12947 * s/sco5.h (sigblock): Redefined to pass a pointer as second
12948 argument to sigprocmask.
12949
12950 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
12951 sigprocmask_set, and pass a pointer to it to sigprocmask.
12952
12953 * sysdep.c (sigprocmask_set): New variable.
12954
12955 * fileio.c (make_temp_name): Don't use `%s' in string passed to
12956 report_file_error.
12957
427ec082
SS
129582000-06-20 Sam Steingold <sds@gnu.org>
12959
12960 * xrdb.c: Don't declare xmalloc, xrealloc.
12961
8972fe79 129622000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
12963
12964 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
12965 (re_comp): Cast gettext return value to avoid complaints when
12966 !HAVE_LIBINTL.
12967
074b6efe
DL
129682000-06-20 Dave Love <fx@gnu.org>
12969
52283633 12970 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 12971
5700d2cc 12972 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 12973
d355bd8a 12974 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
12975
12976 * m/alpha.h: Don't declare xmalloc, xrealloc.
12977
0af4f205
DL
12978 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
12979
12980 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
12981
12982 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
12983
12984 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
12985 HAVE_GETWD.
12986
074b6efe
DL
12987 * keyboard.h (poll_for_input_1): Declare.
12988
12989 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
12990
12991 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
12992
12993 * doprnt.c: Don't declare xmalloc, xrealloc.
12994
12995 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
12996 (getenv, ctime, getwd): Removed.
12997 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
12998
12999 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
13000 x_set_tool_bar_lines.
13001
13002 * config.in: Add HAVE_GETWD. Move some definitions above
13003 machine/system includes.
13004
68a5e97b
KH
130052000-06-20 Kenichi Handa <handa@etl.go.jp>
13006
95417e1e
KH
13007 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
13008
68a5e97b
KH
13009 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
13010 contain information about ENCODING.
13011
13012 * fontset.c (FONTSET_ASCII): Use the first element of char table
13013 for an ASCII font, not defalt slot.
13014 (fontset_ref_via_base): If FONTSET doesn't contain information for
13015 C, try the default fontset.
13016 (make_fontset): Don't copy the default fontset.
13017 (fontset_font_pattern): Likewise.
13018 (accumulate_font_info): If ELT is nil, use the corresponding
13019 element in the default fontset.
13020
3b4fa1b2
DL
130212000-06-19 Dave Love <fx@gnu.org>
13022
943e731c
DL
13023 * syntax.c (Fparse_partial_sexp): Doc fix.
13024
13025 * regex.h: Test PROTOTYPES as well as __STDC__.
13026
3b4fa1b2
DL
13027 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
13028 errno, strerror. Put text after #endif in comment.
13029
52283633 13030 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
13031
13032 * xterm.c (x_frame_of_widget): Likewise.
13033
cdf0357b
GM
130342000-06-19 Gerd Moellmann <gerd@gnu.org>
13035
13036 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
13037 to Vfundamental_mode_abbrev_table.
13038
13039 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
13040 bogus objects are marked. This slows down GC by ~80 percent, but
13041 it might be worth trying when debugging GC-related problems.
13042 This feature requires conservative stack marking to be enabled.
13043
13044 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
13045 returns XLookupChars, reset `modifiers' to zero.
13046
998e9f8c
DL
130472000-06-19 Dave Love <fx@gnu.org>
13048
13049 * mktime.c: Unprotoized.
13050
18e21ce8 130512000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
13052
13053 * data.c (set_internal): If variable is frame-local,
13054 store the new value immediately into the frame parameter alist.
13055
140c4ac6
KR
130562000-06-19 Ken Raeburn <raeburn@gnu.org>
13057
14358466
KR
13058 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
13059 in the custom handler pointer.
13060
140c4ac6
KR
13061 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
13062 value, or checks for CHAR_META can fail when Lisp_Object is a
13063 union type.
13064 * keymap.c (get_keyelt): Likewise.
13065
10d7bf84
KH
130662000-06-19 Kenichi Handa <handa@etl.go.jp>
13067
13068 * ccl.h (struct ccl_program): New member eol_type.
13069 (struct ccl_spec): New member cr_carryover.
13070
13071 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
13072 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
13073
13074 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
13075 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
13076 (decode_eol_post_ccl): New function.
13077 (decode_coding): Don't detect EOL format here for CCL based coding
13078 systems.
13079 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
13080 decode_eol_post_ccl after running the CCL program.
13081 (code_convert_region): Don't detect EOL format here for CCL based
13082 coding systems.
13083 (decode_coding_string): Likewise.
13084
52e386c2
KR
130852000-06-18 Ken Raeburn <raeburn@gnu.org>
13086
13087 * charset.c (update_charset_table): Use XINT on "iso_final_char"
13088 when treating it as an integer.
13089
13090 * coding.h (encode_coding_string): Declare.
13091
13092 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
13093 it as an integer.
13094
13095 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
13096 "xkeymap" to avoid shadowing the "enum map_type" value that needs
13097 to be passed to get_local_map.
13098
13099 * sound.c (Fplay_sound): Don't call make_number on
13100 Frun_hook_with_args count argument.
13101
13102 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
13103 for lisp objects in X event structure data field, when lisp
13104 objects are represented with unions.
13105 (x_scroll_bar_to_input_event): Ditto.
13106
b357b9d4
KR
131072000-06-16 Ken Raeburn <raeburn@gnu.org>
13108
13109 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
13110 termination of string. Fix sense of test whether
13111 Vline_number_display_limit is an integer.
b357b9d4 13112
a871441d
GM
131132000-06-16 Gerd Moellmann <gerd@gnu.org>
13114
a9021acd
GM
13115 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
13116 only if HAVE_X_WINDOWS.
13117
6344985d
GM
13118 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
13119 of titles.
13120
427ec082 13121 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
13122 out of bounds.
13123
228b083e
EZ
131242000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
13125
13126 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
13127 of its headers.
13128
c25b53a2
KH
131292000-06-15 Kenichi Handa <handa@etl.go.jp>
13130
13131 * coding.c (decode_coding_emacs_mule): Always set src_base at the
13132 start of the while loop.
13133
a6981b11
GM
131342000-06-15 Gerd Moellmann <gerd@gnu.org>
13135
e9924e52
GM
13136 * atimer.c (alarm_signal_handler): Add forward declaration.
13137
a6981b11
GM
13138 * data.c (set_internal): Remove debug code.
13139
25fa6deb
GM
131402000-06-14 Gerd Moellmann <gerd@gnu.org>
13141
dce6b995
GM
13142 * Makefile.in (bootstrap-temacs): Add `-I../src'.
13143
9f817ea4
GM
13144 * unexec.c (toplevel) [COFF]: Include coff.h.
13145
13146 * s/lynxos.h: New file.
13147
13148 * keymap.c (Fsingle_key_description): Enclose function key and
13149 event symbol names in angle brackets.
13150
8a4e3c0c
GM
13151 * xdisp.c (setup_echo_area_for_printing): Call
13152 message_log_maybe_newline if message_buf_print is not set.
13153
13154 * print.c (printchar, strout): Don't check message_buf_print
427ec082 13155 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
13156 function does something useful even when message_buf_print is
13157 already set.
13158
52283633
SM
13159 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
13160 New variables.
25fa6deb
GM
13161 (ensure_echo_area_buffers): Initialize echo buffer's
13162 truncate lines setting to nil.
13163 (with_echo_area_buffer): Don't set the echo buffer's truncate
13164 lines setting here.
8a4e3c0c 13165 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
13166 of message_truncate_lines.
13167 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
13168 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
13169 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
13170
13171 * keyboard.c (read_char): Bind message-truncate-lines to t
13172 while displaying a help-echo.
13173
13174 * lisp.h (Qmessage_truncate_lines): External declaration.
13175
163dcff3
GM
131762000-06-13 Gerd Moellmann <gerd@gnu.org>
13177
1681ead6
GM
13178 * xdisp.c (Vline_number_display_limit): Renamed from
13179 line_number_display_limit.
13180 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
13181 Extend documentation string. Initialize
13182 Vline_number_display_limit to nil meaning no limit.
13183 (decode_mode_spec): Use Vline_number_display_limit with its new
13184 meaning.
13185
163dcff3
GM
13186 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
13187
18e21ce8 131882000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
13189
13190 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 13191
163dcff3
GM
13192 * xfns.c (x_set_frame_parameters): Comment fix.
13193
13194 * frame.c (store_frame_param): Call swap_in_global_binding if the
13195 variable's current binding was chosen based on this frame.
13196
13197 * data.c (swap_in_global_binding): New function.
13198
a704139d
EZ
131992000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
13200
13201 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
13202 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
13203
9b6610db
EZ
132042000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
13205
13206 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
13207
c68833d2
JR
132082000-06-12 Jason Rumney <jasonr@gnu.org>
13209
13210 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
13211
13212 * w32.h (EMACS_W32_H): Renamed from _NT_H_
13213
13214 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
13215
13216 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
13217
ed1056b3
GM
132182000-06-12 Gerd Moellmann <gerd@gnu.org>
13219
13220 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
13221 (syms_of_xfaces): Defsubr Sdump_colors.
13222 (x_free_colors): Don't treat b&w specially on default visual.
13223 (x_free_dpy_colors): New function.
13224 (free_face_colors): Don't check visual class; it's done
13225 in x_free_colors.
13226
13227 * xterm.c (x_frame_of_widget): New function.
13228 (x_alloc_nearest_color_for_widget): Use it.
13229 (x_copy_dpy_color): New function.
13230 (x_destroy_window): Free various colors.
13231
5050a2ef
KH
132322000-06-12 Kenichi Handa <handa@etl.go.jp>
13233
13234 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
13235
13236 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
13237
13238 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
13239
13240 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
13241
13242 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
13243
fb1b041d
DL
132442000-06-11 Dave Love <fx@gnu.org>
13245
13246 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
13247
ff96b5f4
EZ
132482000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
13249
13250 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
13251
db8eeecd
GM
132522000-06-11 Gerd Moellmann <gerd@gnu.org>
13253
ed1056b3 13254 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
13255 to `XEvent *'.
13256
49b71c5f
KH
132572000-06-10 Kenichi Handa <handa@etl.go.jp>
13258
c479bd55
KH
13259 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
13260 (regex_compile): Fix the code for handling the case of single byte
13261 char and multibyte char being mixed in a range within [...].
13262
ff6a65c2
KH
13263 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
13264 and dst_multibyte members of coding.
13265
49b71c5f
KH
13266 * charset.c (update_charset_table): Update the table
13267 bytes_by_char_head.
13268 (init_charset_once): Initialize elements of bytes_by_char_head to
13269 1 except for leading codes for private charases.
13270
13271 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 13272 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 13273
9e80b57d
KR
132742000-06-09 Ken Raeburn <raeburn@gnu.org>
13275
13276 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
13277 access the data it doesn't point to.
13278
f83fe4b4
GM
132792000-06-08 Gerd Moellmann <gerd@gnu.org>
13280
13281 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 13282 will be translated to a switch-frame event when reading the
f83fe4b4
GM
13283 event queue. This is necessary because Emacs otherwise won't
13284 perform a switch-frame to a new frame until some other event, for
13285 example a keystroke event, forces it to do so. This has various
13286 effects, one visible being that the cursor of a frame created with
13287 C-x 5 2 or switched to with a window manager key binding like
13288 A-TAB stays hollow because selected_window isn't on the newly
13289 focused frame until the switch-frame is performed.
13290
13291 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
13292 generating a switch-frame event if necessary.
13293
13294 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
13295
13296 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
13297 it's an integer.
13298
0890801b
KH
132992000-06-08 Kenichi Handa <handa@etl.go.jp>
13300
52283633 13301 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 13302
173cbca8
GM
133032000-06-07 Gerd Moellmann <gerd@gnu.org>
13304
3091c2a6
GM
13305 * window.c (displayed_window_lines): Take empty lines at
13306 the bottom of a window into account.
427ec082 13307
f38952fe
GM
13308 * window.c (displayed_window_lines): New function.
13309 (Fmove_to_window_line): Use displayed_window_lines to determine
13310 the number of lines to move, instead of using the window's height.
13311
13312 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
13313 to stop reading, even if the form read sets point to a different
13314 value when evaluated.
13315
427ec082 13316 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
13317 put the cursor.
13318
6ba6c818
KH
133192000-06-07 Kenichi Handa <handa@etl.go.jp>
13320
13321 * fileio.c (e_write): Free composition data if stored in
13322 coding->cmp_data.
13323
5f1aea9a
GM
133242000-06-06 Gerd Moellmann <gerd@gnu.org>
13325
666852af
GM
13326 * xdisp.c (display_line): Set row's and iterator's
13327 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
13328 Set cursor even if row ends in the middle of a character.
13329 (dump_glyph_row): Print values of new flags.
13330 (redisplay_window) <cursor movement in unchanged window>: When
13331 point has been moved forward, and PT is at the end of the cursor
13332 row, don't place the cursor in the next row if the cursor row ends
13333 in the middle of a character or at ZV.
13334
13335 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
13336 (struct glyph_row): Add starts_in_middle_of_char_p and
13337 ends_in_middle_of_char_p.
13338 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
13339 ends_in_middle_of_char_p flag.
13340 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
13341
d13f3e2e
GM
13342 * term.c (append_glyph): Revert change of 2000-06-06.
13343
13344 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
13345 padding glyph not fitting on line as whole character not
13346 fitting on line.
13347
5f1aea9a
GM
13348 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
13349 this isn't true for images with `:ascent 100'.
13350
10cda9b0
KH
133512000-06-06 Kenichi Handa <handa@etl.go.jp>
13352
ed00559d
KH
13353 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
13354 as modified if it is originally unmodified.
13355
10cda9b0
KH
13356 * term.c (encode_terminal_code): Change the way to check if
13357 terminal coding does any conversion.
13358 (append_glyph): Set glyph->pixel_width correctly.
13359
13360 * xdisp.c (display_line): While checking line continuation, pay
13361 attention to a padding glyph.
13362
1969fae2
GM
133632000-06-05 Gerd Moellmann <gerd@gnu.org>
13364
13365 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
13366
162ccef4
DL
133672000-06-05 Dave Love <fx@gnu.org>
13368
f19f32dd
DL
13369 * xdisp.c: Include fontset.h.
13370
13371 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
13372
13373 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
13374
13375 * dispnew.c: Conditionally include term.h.
13376
13377 * coding.h: Declare code_convert_string_norecord.
13378
13379 * frame.h (struct frame): Use volatile unconditionally.
13380
13381 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
13382
13383 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
13384
13385 * systime.h: Protect against multiple inclusion.
13386 (timezone) [USG5_4]: Define as time_t.
13387
13388 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
13389 (Foptimize_char_table, make_temp_name): Declare.
13390
13391 * Makefile.in (xdisp.o): Depend on fontset.h.
13392
13393 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
13394
13395 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
13396 (Foptimize_char_table, make_temp_name): Declare.
13397
427ec082 13398 * s/irix4-0.h:
162ccef4
DL
13399 * s/irix5-0.h:
13400 * s/netbsd.h: Don't define autoconfiscated MATHERR.
13401
2082fe81
DL
134022000-06-02 Dave Love <fx@gnu.org>
13403
13404 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
13405
dcf671d2
GM
134062000-06-02 Gerd Moellmann <gerd@gnu.org>
13407
13408 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 13409 result face, set flags in that face indicating that colors may not
dcf671d2
GM
13410 be freed.
13411
13412 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
13413 glyph, use the ASCII NUL character to determine the face.
13414
d42122a3
DL
134152000-06-02 Dave Love <fx@gnu.org>
13416
13417 * sysdep.c: Conditionally include stdlib.h, unistd.h.
13418 (VFORK_RETURN_TYPE): Remove.
427ec082 13419
d42122a3
DL
13420 * config.in: Add NO_MATHERR.
13421
dd432f16
DL
134222000-06-01 Dave Love <fx@gnu.org>
13423
90aa4ea8
DL
13424 * cmds.c (internal_self_insert): Don't check
13425 Vbefore_change_function, Vafter_change_function.
13426
13427 * insdel.c (signal_before_change, signal_after_change): Likewise.
13428
13429 * buffer.c (Vbefore_change_function, Vafter_change_function):
13430 Variables and their initializations deleted.
13431
2330c9d4
DL
13432 * callint.c (Fcall_interactively): Doc fix.
13433
dd432f16
DL
13434 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
13435
bf9e8804
DL
134362000-05-31 Dave Love <fx@gnu.org>
13437
13438 * textprop.c: Revert last change -- duplicated.
13439
3694b4ab
GM
134402000-05-31 Gerd Moellmann <gerd@gnu.org>
13441
13442 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
13443 in #if 0.
13444
13445 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
13446
f14156cd
JR
134472000-05-31 Jason Rumney <jasonr@gnu.org>
13448
8119aab8
JR
13449 * search.c (Fre_search_forward, Fre_search_backward)
13450 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
13451
f14156cd
JR
13452 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
13453
4aab9be3
JR
134542000-05-30 Jason Rumney <jasonr@gnu.org>
13455
13456 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
13457 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
13458
52283633 13459 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
13460
13461 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
13462 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
13463 expand a nil default_filename.
13464
13465 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
13466 pointer to glyph_to_pixel_coords, not a frame.
13467
13468 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
13469 coding.h to dependencies.
13470
13471 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
13472
13473 * w32console.c (glyph_to_pixel_coords): Change first parameter to
13474 window pointer to be consistent with w32term.c and xterm.c.
13475
13476 * w32fns.c: Format and doc changes to bring closer to xfns.c.
13477 (VIETNAMESE_CHARSET): Define if not defined in system headers.
13478 (Qline_spacing, Qcenter): New variables.
13479 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
13480 (x_set_line_spacing): New function.
52283633 13481 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
13482 (x_specified_cursor_type): New function.
13483 (x_set_cursor_type): Use it.
13484 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
13485 and icon strings.
13486 (validate_x_resource_name, x_get_resource_string): Measure lengths
13487 of external strings in bytes.
13488 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
13489 GetTextExtentPoint32 with NULL title.
13490 (Fx_create_frame): Initialize Qline_spacing.
13491 (w32_load_system_font): Initialize font->double_byte_p.
13492 (x_to_w32_charset): Use Vw32_charset_info_alist.
13493 (Image, busy cursor, tooltip functions): Merged changes from
13494 xfns.c. Not yet functional on Windows.
13495
13496 * w32gui.h (W32FontStruct): Add double_byte_p member.
13497
13498 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
13499 (emacs_button_translation): Use it.
13500 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
13501 in `mask' to be set.
13502
13503 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
13504 menu strings.
13505
13506 * w32term.c: Format and doc changes to bring closer to xterm.c.
13507 (w32_char_font_type): New enum.
13508 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
13509 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
13510 (w32_encode_char): New function.
13511 (x_encode_char): Removed.
13512 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
13513 x_encode_char and w32_font_is_double_byte.
13514 (x_produce_image_glyph): Use image_ascent.
13515 (x_produce_glyphs): Use new version of w32_per_char_metric and
13516 handle NULL return value. Allow extra line spacing.
13517 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
13518 (w32_get_glyph_overhangs): Remove unicode_p param. Use
13519 w32_font_type member of glyph instead.
13520 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
13521 (fast_find_position): Make sure not to consider rows not visible
13522 in the window.
13523 (w32_read_socket) [WM_MENUSELECT]: Cannot call
13524 w32_menu_display_help with input blocked, as it can abort.
13525 (x_display_and_set_cursor): Choose cursor depending
13526 on buffer-local value of cursor_type.
13527 (x_draw_bar_cursor): Add parameter WIDTH.
13528
13529 * w32term.h (CP_DEFAULT): Define.
13530 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
13531
10fc3187
GM
135322000-05-30 Gerd Moellmann <gerd@gnu.org>
13533
13534 * search.c (Fre_search_forward, Fre_search_backward)
13535 (Fposix_search_backward, Fposix_search_forward): Doc fix.
13536
d0555360
KH
135372000-05-30 Kenichi Handa <handa@etl.go.jp>
13538
13539 * coding.c (detect_coding_iso2022): Fix code for checking
13540 CODING_CATEGORY_MASK_ISO_8_2.
13541
f1ad044f
SM
135422000-05-29 Stefan Monnier <monnier@cs.yale.edu>
13543
13544 * regex.c (PREFETCH_NOLIMIT): New function.
13545 (re_match_2_internal): Use it and adjust the end_match_2 logic.
13546
84ec3b4b
GM
135472000-05-29 Gerd Moellmann <gerd@gnu.org>
13548
66254a13
GM
13549 * syntax.c (find_defun_start): Move test for
13550 open_paren_in_column_0_is_defun_start outside of the loop.
13551
49e70dec
GM
13552 * xdisp.c (redisplay_window): Really switch buffers when
13553 displaying mode lines, and temporarily set selected_frame to the
13554 frame of the window that's redisplayed.
13555
84ec3b4b
GM
13556 * xfaces.c (free_realized_faces): Block/unblock input.
13557 (free_realized_multibyte_face): Ditto.
13558
869a3a14
DL
135592000-05-29 Dave Love <fx@gnu.org>
13560
13561 * textprop.c (Qkeymap): New variable.
13562 (syms_of_textprop): Intern it.
13563
13564 * keymap.c: Include intervals.h.
13565 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
13566
13567 * Makefile.in (keymap.o): Depend on intervals.h.
13568
13569 * keyboard.c (menu_bar_items, tool_bar_items)
13570 (Fexecute_extended_command): Deal with `keymap' property.
13571 (read_key_sequence): Track map from `keymap' property as well as
13572 `local_map'.
13573
13574 * intervals.c (get_local_map): Extra arg to allow looking for
13575 `keymap' too.
13576
13577 * intervals.h (map_property): New enum.
13578 (get_local_map): Extra arg using it.
13579 (Qkeymap): Declare.
13580
84ec3b4b 13581 * lisp.h (get_local_map): Don't declare here.
869a3a14 13582
89d0c844
KH
135832000-05-29 Kenichi Handa <handa@etl.go.jp>
13584
13585 * Makefile.in (callproc.o): Depend on composite.h.
13586
13587 * callproc.c: Include composite.h.
13588 (Fcall_process): Handle composition correctly.
13589
13590 * coding.h (coding_allocate_composition_data): Extern it.
13591 (coding_restore_composition): Likewise.
13592
13593 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
13594 yet allocated, finish decoding with result
13595 CODING_FINISH_INSUFFICIENT_CMP.
13596 (coding_allocate_composition_data): Make it non-static.
13597 (coding_restore_composition): Likewise.
13598
797a084a
EZ
135992000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
13600
13601 * charset.c (syms_of_charset): Revert last change.
13602
cf872af5
EZ
136032000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
13604
13605 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
13606 charsets as unibyte, with 1-column screen width. Sent by Kenichi
13607 Handa.
cf872af5 13608
5b1ae051
EZ
136092000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
13610
13611 * charset.c (syms_of_charset): Set width of character sets
13612 eight-bit-control and eight-bit-graphic to 1 column.
13613
34ec9ebe
GM
136142000-05-26 Gerd Moellmann <gerd@gnu.org>
13615
13616 * config.in (HAVE_SPEED_T): New define.
13617
13618 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
13619 `extern speed_t'.
13620
dd854dc2
DL
136212000-05-26 Dave Love <fx@gnu.org>
13622
13623 * coding.c (shrink_decoding_region): Initialize eol_conversion.
13624
13625 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
13626 (Fsubr_arity): New function.
13627 (syms_of_data): Install them.
13628
ba9f8f95
KH
136292000-05-26 Kenichi Handa <handa@etl.go.jp>
13630
0f3e0672
KH
13631 * charset.c (init_charset_once): Set the table bytes_by_char_head
13632 correctly.
13633
cebefb44
KH
13634 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
13635 the default fontset to what Emacs uses by default.
0f3e0672
KH
13636 (check_registry_encoding): This function deleted.
13637 (Fset_fontset_font): Remove the adhoc condition for the default
13638 fontset. Allow cons in FONTNAME.
cebefb44 13639
0f3e0672
KH
13640 * fns.c (map_char_table): Ignore char-table entries for
13641 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 13642
7a18af49
KR
136432000-05-25 Ken Raeburn <raeburn@gnu.org>
13644
13645 * emacs.c (main): Initialize keyboard syms before initializing
13646 window code, so face names are available.
13647
d2af47df
SM
136482000-05-25 Stefan Monnier <monnier@cs.yale.edu>
13649
13650 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
13651 of an anchor at the beginning of a shy-group.
13652
fc6a6a4e
GM
136532000-05-25 Gerd Moellmann <gerd@gnu.org>
13654
13655 * xdisp.c (handle_invisible_prop): Don't try to skip over
13656 invisible text if end of text is already reached.
13657
005f0d35
DL
136582000-05-25 Dave Love <fx@gnu.org>
13659
02513cdd
DL
13660 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
13661
005f0d35
DL
13662 * coding.c (encode_eol): Add null statement after label.
13663
89f6ca4e
EZ
136642000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
13665
13666 * w16select.c (Fw16_set_clipboard_data): Fix the change from
13667 2000-05-20.
13668
a4e1759e
KH
136692000-05-25 Kenichi Handa <handa@etl.go.jp>
13670
13671 * ccl.c (ccl_driver): Fix previous change.
13672
eacfd7fe
KH
136732000-05-25 Kenichi Handa <handa@etl.go.jp>
13674
46ab33a9
KH
13675 * coding.c (run_pre_post_conversion_on_str): Set point to the
13676 beginning of buffer before calling coding->post_read_conversion.
13677 (decode_coding_string): Give correct args to
13678 run_pre_post_conversion_on_str.
13679 (encode_coding_string): Likewise.
13680
eacfd7fe
KH
13681 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
13682 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
13683 eight-bit-graphic correctly.
13684
f8569325
DL
136852000-05-24 Kenichi HANDA <handa@etl.go.jp>
13686
13687 * fileio.c (Finsert_file_contents): Even if a file is not found,
13688 execute codes for setting up coding system. Call
13689 after-insert-file-functions unconditionally.
13690
04545643
GM
136912000-05-24 Gerd Moellmann <gerd@gnu.org>
13692
13693 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
13694 BSD_PGRPS are not defined.
13695
747d90ea
KH
136962000-05-24 Kenichi Handa <handa@etl.go.jp>
13697
13698 * charset.c (update_charset_table): Accept nil in LONG_NAME and
13699 DESCRIPTION.
13700 (syms_of_charset): Avoid building same strings.
13701
716e3b88
GM
137022000-05-23 Gerd Moellmann <gerd@gnu.org>
13703
13704 * lread.c (Fload): Add a comment about the meaning of
13705 Vuser_init_file being t.
13706
13707 * puresize.h (BASE_PURESIZE): Increase to 675000.
13708
13709 * s/gnu-linux.h (setpgrp): Don't define it here because this
13710 prevents compilation on GNU/Linux systems with glib 2.2.
13711
13712 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
13713 as setpgid.
427ec082 13714
9aeb39fa
EZ
137152000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
13716
13717 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
13718 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
13719 version.
13720 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
13721
29ced61b
KH
137222000-05-23 Kenichi Handa <handa@etl.go.jp>
13723
52283633 13724 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 13725
3d80f24d
KH
13726 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
13727
52283633 13728 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 13729
29ced61b
KH
13730 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
13731
d7e00792
KH
137322000-05-22 Kenichi Handa <handa@etl.go.jp>
13733
c9d80d38
KH
13734 * keyboard.c (read_char): Allow character codes 128..255 to be
13735 handled by input-method-function.
13736
d7e00792
KH
13737 * insdel.c (adjust_markers_for_replace): Fix previous change.
13738 (adjust_after_replace): If PREV_TEXT is nil, call
13739 adjust_markers_for_insert, not adjust_markers_for_replace.
13740
087121cc 137412000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 13742
087121cc
GM
13743 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
13744 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
13745 [HAVE_GRANDPT]: Define.
13746 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
13747
13748 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
13749 like SYSV_PTYS.
13750
13751 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
13752
13753 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
13754
c9671f81
KH
137552000-05-20 Kenichi Handa <handa@etl.go.jp>
13756
13757 The following changes are to handle 8-bit characters in a
13758 multibyte buffer/string without facing with byte combining
13759 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
13760 eight-bit-graphic (for 0xA0..0xFF) are introduced.
13761
13762 * Makefile.in (fns.o): Depend on charset.h.
13763
13764 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
13765 convert it to unibyte.
13766 (make_string): Use parse_str_as_multibyte, not chars_in_text.
13767
13768 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
13769 apparent char boundary.
13770 (Fset_buffer_multibyte): Convert 8-bit characters in the range
13771 0x80..0x9F to/from multibyte form.
13772
13773 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
13774 to unibyte.
13775
13776 * callproc.c (Fcall_process): Always encode an argument string if
13777 it is multibyte. Setup src_multibyte and dst_multibyte members of
13778 process_coding properly.
ce75fd23 13779
c9671f81
KH
13780 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
13781 SPLIT_NON_ASCII_CHAR.
13782
13783 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
13784 as is.
13785 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
13786
52283633 13787 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 13788 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 13789 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
13790 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
13791 and eight-bit-graphic.
13792 (char_to_string): Likewise. Signal an error for too large
13793 character code.
13794 (char_printable_p): Return 0 for 8-bit characters.
13795 (update_charset_table): Update iso_charset_table only when a final
13796 character is non-negative.
13797 (find_charset_in_text): Renamed from find_charset_in_str.
13798 Arguments and return value changed. Callers changed.
13799 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
13800 be -1 if CHARSET is used only internally.
13801 (Fmake_char_internal): Handle new charsets; eight-bit-control and
13802 eight-bit-graphic.
13803 (Fcharset_after): Simplified.
13804 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
13805 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
13806 (multibyte_chars_in_text): Simplified by assuming there's no
13807 invalid multibyte sequence.
52283633
SM
13808 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13809 (str_as_unibyte): New functions.
13810 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
13811 (init_charset_once): Initialization for
13812 LEADING_CODE_8_BIT_CONTROL.
13813 (syms_of_charset): Intern and staticpro Qeight_bit_control and
13814 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
13815 eight-bit-control and eight-bit-graphic.
13816
52283633
SM
13817 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
13818 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
13819 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
13820 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
13821 (CHARSET_REVERSE_CHARSET): Likewise.
13822 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
13823 eight-bit-graphic.
13824 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
13825 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
13826 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
13827 encounter an invalid multibyte sequence.
13828 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
13829 sequence is always valid.
13830 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 13831 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
13832 (CHAR_STRING): For 8-bit characters, call char_to_string.
13833 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
13834 multibyte sequence is always valid.
13835 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
13836 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13837 (str_as_unibyte): Extern them.
c9671f81 13838 (BCOPY_SHORT): Fix a bug.
52283633 13839 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
13840 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
13841 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
13842 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
13843
bd4bde7f 13844 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 13845 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
13846 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
13847 (EMIT_BYTES): New macros.
13848 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
13849 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
13850 macros deleted.
13851 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
13852 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
13853 check the validity of multibyte sequence.
13854 (decode_coding_emacs_mule): New function.
13855 (encode_coding_emacs_mule): New macro.
13856 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
13857 the source.
13858 (DECODE_ISO_CHARACTER): Just return a character code.
13859 (DECODE_COMPOSITION_START): Set coding->result instead of result.
13860 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
13861 EMIT_CHAR to produced decoded characters. Exit the loop only by
13862 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
13863 block here.
13864 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
13865 only position codes for an invalid character.
13866 (encode_designation_at_bol): Return new destination pointer. 5th
13867 arg DSTP is changed to DST.
13868 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
13869 from the source by ONE_MORE_CHAR. Don't handle the case of last
13870 block here.
13871 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
13872 macros deleted.
52283633
SM
13873 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
13874 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
13875 TWO_MORE_BYTES to fetch a byte from the source.
13876 (encode_eol): Pay attention to coding->src_multibyte.
13877 (detect_coding, detect_eol): Preserve members src_multibyte and
13878 dst_multibyte.
13879 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
13880 (encoding_buffer_size): Set magnification to 3 for all coding
13881 systems that require encoding.
13882 (ccl_coding_driver): For decoding, be sure that the result is
13883 valid multibyte sequence.
13884 (decode_coding): Initialize coding->errors and coding->result.
13885 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
13886 and raw-text, always call decode_eol. Handle the case of last
13887 block here. If not coding->dst_multibyte, convert the resulting
13888 sequence to unibyte.
13889 (encode_coding): Initialize coding->errors and coding->result.
13890 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
13891 and raw-text, always call encode_eol. Handle the case of last
13892 block here.
13893 (shrink_decoding_region, shrink_encoding_region): Detect cases
13894 that we can't skip data more rigidly.
13895 (code_convert_region): Setup src_multibyte and dst_multibyte
13896 members of coding. For decoding, if the buffer is multibyte,
13897 convert the source sequence to unibyte in advance. For encoding,
13898 if the buffer is multibyte, convert the resulting sequence to
13899 multibyte afterward.
13900 (run_pre_post_conversion_on_str): New function.
13901 (code_convert_string): Deleted and divided into the following two.
13902 (decode_coding_string, encode_coding_string): New functions.
13903 (code_convert_string1, code_convert_string_norecord): Call one of
13904 above.
13905 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
13906 MAKE_NON_ASCII_CHAR.
52283633
SM
13907 (Fset_terminal_coding_system_internal)
13908 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
13909 and dst_multibyte members.
13910 (init_coding_once): Initialize iso_code_class with new enum
13911 ISO_control_0 and ISO_control_1.
13912
13913 * coding.h (enum iso_code_class_type): Member ISO_control_code is
13914 devided into ISO_control_0 and ISO_control_1.
13915 (struct coding_system): New members src_multibyte, dst_multibyte,
13916 errors, and result. Delete member fake_multibyte.
13917 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
13918 nonzero.
13919 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
13920 nonzero.
13921
13922 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13923 (Faset): Likewise.
13924
13925 * editfns.c (Fformat): Be sure to convert 8-bit characters to
13926 multibyte form.
13927 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
13928 combining occurs.
13929 (Ftranspose_region): Delete codes for handling byte combining.
13930
13931 * fileio.c (Finsert_file_contents): Setup src_multibyte and
13932 dst_multibyte members of coding. On handling REPLACE on unibyte
13933 buffer, convert the result of decode_coding to unibyte. On
13934 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 13935 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
13936 multibyteness of the source (buffer or string).
13937
13938 * fns.c (concat): Handle 8-bit characters correctly.
13939 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
13940 unibyte in the result.
13941 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
13942 valid multibyte form in the result.
13943 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13944 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
13945 return -1, signal an error.
13946 (base64_encode_1): New arg MULTIBYTE. Get each character by
13947 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
13948 character is found, return -1.
13949 (Fbase64_decode_region): Delete codes for handling byte-combining.
13950 Treat each decoded byte as a unibyte character.
13951 (Fbase64_decode_string): Return unibyte string.
13952 (Fcompare_strings, concat, string_byte_to_char): Use
13953 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
13954 FETCH_STRING_CHAR_ADVANCE.
13955 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13956 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
13957
13958 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
13959 SPLIT_NON_ASCII_CHAR.
13960 (fontset_ref_via_base, fontset_set): Likewise
13961
13962 * insdel.c (adjust_markers_for_record_delete): Deleted.
13963 (adjust_markers_for_insert): Argument changed. Caller changed.
13964 (adjust_markers_for_replace): Likewise.
52283633
SM
13965 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
13966 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
13967 (copy_text): Delete unused local varialbe c_save. For converting
13968 to multibyte, be sure to make all 8-bit characters in valid
13969 multibyte form.
13970 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
13971 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13972 (adjust_after_replace, replace_range, del_range_2)
c9671f81 13973 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
13974 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13975 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
13976 handling byte combining.
13977 (adjust_before_replace): Deleted.
427ec082 13978
c9671f81
KH
13979 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
13980 SPLIT_NON_ASCII_CHAR.
13981 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 13982 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
13983 (Fkey_description): Likewise.
13984
13985 * lread.c (read1): On reading multibyte string, be sure to make
13986 all 8-bit chararacters in valid multibyte form.
13987 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13988
13989 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
13990 unconditionally.
13991
13992 * process.c (Fstart_process): GCPRO current_dir before calling
13993 Ffind_operation_coding_system. Encode arguments here.
13994 (create_process): Don't encode arguments here. Setup
13995 src_multibyte and dst_multibyte members of struct coding.
13996 (read_process_output): Setup src_multibyte and dst_multibyte
13997 members of struct coding. If the output is to multibyte buffer,
13998 always decode the output of the process. Adjust the
52283633 13999 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
14000 (send_process): Setup coding->src_multibyte according to the
14001 multibyteness of the source.
14002
52283633 14003 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
14004 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
14005 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
14006
52283633 14007 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
14008
14009 * w16select.c (Fw16_set_clipboard_data): Setup members
14010 src_multibyte and dst_multibyte of coding. Adjusted for the
14011 change for find_charset_in_str.
14012 (Fw16_get_clipboard_data): Likewise.
14013
14014 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
14015 dst_multibyte of coding.
14016 (x_to_w32_font): Likewise.
14017
14018 * w32select.c (Fw32_set_clipboard_data): Setup members
14019 src_multibyte and dst_multibyte of coding. Adjusted for the
14020 change for find_charset_in_str.
14021 (Fw32_get_clipboard_data): Likewise.
14022
14023 * xdisp.c (get_next_display_element): Handle 8-bit characters
14024 correctly.
52283633
SM
14025 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
14026 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
14027
14028 * xselect.c (selection_data_to_lisp_data): Setup members
14029 src_multibyte and dst_multibyte of coding. Adjusted for the
14030 change for find_charset_in_str.
14031 (lisp_data_to_selection_data): Likewise.
14032
5f64c9e0
GM
140332000-05-19 Gerd Moellmann <gerd@gnu.org>
14034
52283633 14035 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 14036
5f64c9e0
GM
14037 * dispextern.h (Vimage_types): Add extern declaration.
14038
14039 * xdisp.c (Vimage_types): Moved here from xfns.c.
14040 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
14041
14042 * xfns.c (Vimages_types): Moved to xdisp.c.
14043 (syms_of_xfns): Move `image-types' to xdisp.c.
14044
14045 * w32fns.c (Vimage_types): Removed.
14046 (syms_of_w32fns): Remove `image-types'.
14047
813086ea
KH
140482000-05-18 Kenichi Handa <handa@etl.go.jp>
14049
14050 * fns.c (map_char_table): Pay attention to character number of
14051 charset. Check the validity of charset at the first level. For
14052 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
14053 the default value.
14054
14055 * fontset.c: Include "buffer.h".
14056 (fs_load_font): If the face has fontset, record the face ID in
14057 that fontset.
14058 (Finternal_char_font): New function.
14059 (accumulate_font_info): New function.
14060 (Ffontset_info): Rewritten for the new fontset implementation.
14061 (syms_of_fontset): Register Vdefault_fontset in the first element
14062 of Vfontset_table. Include Vdefault_fontset in
14063 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
14064 function.
14065
bdaebbf0
DL
140662000-05-16 Dave Love <fx@gnu.org>
14067
14068 * m/iris5d.h: Deleted -- unused.
14069
cb613bb8
GM
140702000-05-16 Gerd Moellmann <gerd@gnu.org>
14071
b15f3b77
GM
14072 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
14073 `invalid' instead of `illegal'.
14074
14075 * indent.c (Fmove_to_column): When ending within a tab, insert
14076 spaces first so that markers at the end of the tab get adjusted.
14077
835c1b36
GM
14078 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
14079 buffer list that wasn't selected in that frame.
14080
cb613bb8
GM
14081 * filelock.c (get_boot_time): To obtain an 8 char file name, which
14082 is needed on mescaline, use a 2 char prefix, and call
14083 make_temp_name with second arg non-zero.
14084
14085 * fileio.c (make_temp_name): New function, extracted from
14086 Fmake_temp_name.
14087 (Fmake_temp_name): Use it.
14088
f685bea9
EZ
140892000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
14090
52283633 14091 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 14092
a1b8d58b
GM
140932000-05-15 Gerd Moellmann <gerd@gnu.org>
14094
14095 * Makefile.in (lisp): Add env.elc.
14096
14097 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
14098
a265079f
GM
140992000-05-12 Gerd Moellmann <gerd@gnu.org>
14100
14101 * search.c (Freplace_match): Handle case of `\N' in the
14102 replacement when there's no group N.
14103
da4496b6
GM
141042000-05-11 Gerd Moellmann <gerd@gnu.org>
14105
0ace421a
GM
14106 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
14107 of the message to message_dolog.
14108
1172eb8d
GM
14109 * keyboard.c (read_char): Don't clear current message for help
14110 events; let the code handling help events handle this. Change
14111 code detecting help events that should be ignored.
14112
da4496b6
GM
14113 * xdisp.c (handle_single_display_prop): Don't try to set PT if
14114 we're interating over a string.
14115
0623e40f
DL
141162000-05-09 Dave Love <fx@gnu.org>
14117
14118 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
14119 that offset before writing. Move gcpro region past call of
14120 Ffile_regular_p.
14121
bae2503b
DL
141222000-05-04 Dave Love <fx@gnu.org>
14123
14124 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
14125
ec82fb2f
GM
141262000-05-04 Gerd Moellmann <gerd@gnu.org>
14127
14128 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
14129 of inserted characters when BUF equals the current buffer, and PT
14130 is in front of or equal to FROM.
14131
cbf18892
GM
141322000-05-03 Gerd Moellmann <gerd@gnu.org>
14133
4ff40dd0
GM
14134 * xdisp.c (handle_single_display_prop): If display property value
14135 is invalid, or something not supported on the frame, restore
14136 iterator's position to what it was initially. Make sure to return
14137 0 for invalid and unsupported property values.
14138
cbf18892
GM
14139 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
14140 that x_per_char_metric returns null.
14141
1b0672c3
GM
141422000-05-02 Gerd Moellmann <gerd@gnu.org>
14143
576da55d
GM
14144 * xterm.h (struct face): Add forward declaration.
14145 (struct image): Ditto.
14146 (image_ascent): Add prototype.
14147
14148 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
14149 (x_draw_image_relief, x_draw_image_foreground_1): Call function
14150 image_ascent instead of using IMAGE_ASCENT.
14151
14152 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
14153 (IMAGE_ASCENT): Removed.
14154
14155 * xfns.c (Qcenter): New variable.
14156 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
14157 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
14158 (image_ascent): New function.
14159 (lookup_image): Recognize `:ascent center'.
14160 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
14161 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
14162 (xbm_load): Don't set image's ascent here.
14163 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
14164 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
14165 check ascent values here.
14166 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
14167 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
14168 (syms_of_xfns): Initialize Qcenter.
14169
1b0672c3
GM
14170 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
14171 to the limits, increase the limits.
14172
0d7811ed
KH
141732000-05-01 Kenichi Handa <handa@etl.go.jp>
14174
14175 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 14176 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 14177
a943a5ca
GM
141782000-04-28 Gerd Moellmann <gerd@gnu.org>
14179
14180 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
14181 taller than the window.
14182
5dba1e29
KH
141832000-04-28 Kenichi Handa <handa@etl.go.jp>
14184
14185 * xfaces.c (realize_x_face): Fix the argument of the second
14186 xassert. BASE_FACE may not be a face for ASCII.
14187
353964e3
GM
141882000-04-27 Gerd Moellmann <gerd@gnu.org>
14189
c76e04a8
GM
14190 * print.c (print_object): Treat print-length < 0 as nil.
14191
14192 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
14193
14194 * s/freebsd.h (TERMCAP_OBJ): Removed.
14195 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
14196
14197 * lread.c (read1): Don't treat period followed by certain
14198 characters as symbol start.
14199
14200 * xfns.c (slurp_file): New function.
14201 (xbm_image_p): Handle case of in-memory XBM files.
14202 (xbm_scan): Rewritten to work on memory buffers instead of files.
14203 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
14204 Work on memory buffers instead of files. If DATA is null test
14205 if buffer looks like an in-memory XBM file.
14206 (xbm_load_image): Renamed from xbm_load_image_file. Work on
14207 memory buffers instead of files.
14208 (xbm_file_p): New function.
14209 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
14210
353964e3
GM
14211 * lread.c (end_of_file_error): New function.
14212 (read1): Call it instead of signaling `end-of-file' directly.
14213
427ec082 14214 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
14215 with Fprinc instead of Fprin1.
14216
24d744ac
KR
142172000-04-26 Ken Raeburn <raeburn@gnu.org>
14218
14219 * window.c (freeze_window_start): Check that minibuffer scroll
14220 window isn't nil before extracting the window structure pointer
14221 from it.
14222
14223 * undo.c (record_delete): If we hit the end of the undo list, stop
14224 picking elements apart.
14225
7464346d
GM
142262000-04-26 Gerd Moellmann <gerd@gnu.org>
14227
14228 * xdisp.c (display_line): If lines are continued, restore
14229 iterator's ascent/descent information to the values before the
14230 first glyph not fitting on the line.
14231
612839b6
GM
142322000-04-25 Gerd Moellmann <gerd@gnu.org>
14233
14234 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 14235 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
14236
14237 * dispnew.c (increment_matrix_positions): Renamed from
14238 increment_glyph_matrix_buffer_positions.
14239 (increment_row_positions): Renamed from
14240 increment_glyph_row_buffer_positions.
14241
14242 * dispextern.h: Change names of renamed functions from dispnew.c
14243 in prototypes.
14244
cc181e95
GM
142452000-04-24 Gerd Moellmann <gerd@gnu.org>
14246
abfcc168
GM
14247 * fileio.c (Fdo_auto_save): Create directories for auto-save
14248 list file if necessary.
14249
cc181e95
GM
14250 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
14251 from buffer or frame.
14252 (automatic_hscrolling_p): New variable.
14253 (hscroll_windows): Scroll windows horizontally only if automatic
14254 hscrolling is allowed.
14255 (syms_of_xdisp): New variable `automatic-hscrolling'.
14256
14257 * frame.h (struct frame): Add member extra_line_spacing.
14258
14259 * xfns.c (x_set_line_spacing): New function.
14260 (Fx_create_frame): Set line spacing from resources.
14261 (Qline_spacing): New variable.
14262 (syms_of_xfns): Initialize Qline_spacing.
427ec082 14263
cc181e95
GM
14264 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
14265
14266 * buffer.c (init_buffer_once): Handle extra_line_spacing.
14267 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 14268 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
14269 extra_line_spacing from default value.
14270 (init_buffer_once): Initialize default value of extra_line_spacing.
14271
14272 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
14273 and extra3.
14274
14275 * xterm.c (x_produce_glyphs): Remove reference to struct it's
14276 prompt_width. Add extra line spacing.
14277
14278 * term.c (produce_glyphs): Remove reference to struct it's
14279 prompt_width.
14280
14281 * dispextern.h (struct it): Remove member prompt_width, add
14282 extra_line_spacing.
14283
58827478
GM
142842000-04-22 Gerd Moellmann <gerd@gnu.org>
14285
14286 * dispnew.c (update_frame_line): When writing a whole line, make
14287 sure cursor is in the right row afterwards, otherwise a use of
14288 capability `ch' in cmgoto might leave the cursor in the row below.
14289
25a87f42
GM
142902000-04-21 Gerd Moellmann <gerd@gnu.org>
14291
14292 * lisp.h (struct Lisp_Buffer_Cons): Remove.
14293
14294 * keyboard.c (timer_check): Fix typo in comment.
14295
54edf5c2
KH
142962000-04-21 Kenichi Handa <handa@etl.go.jp>
14297
14298 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
14299 name change: ch -> character.
14300
3a64eef5
GM
143012000-04-20 Gerd Moellmann <gerd@gnu.org>
14302
14303 * keyboard.c (echo_message_buffer): New variable.
14304 (echo_now): Set echo_message_buffer to the echo area buffer used
14305 to display the echo.
14306 (cancel_echoing): Reset echo_message_buffer to nil.
14307 (read_char): Code rewritten that handles canceling an echo or
14308 echoing a dash, respectively.
14309
14310 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
14311 directory doesn't exist.
14312
6142fdcb
DL
143132000-04-19 Dave Love <fx@gnu.org>
14314
14315 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
14316 (concat): Don't allow numeric args.
14317 (Fconcat): Doc change.
6142fdcb 14318
ac6b5352
SM
143192000-04-19 Stefan Monnier <monnier@cs.yale.edu>
14320
14321 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
14322 instead define end_match(1|2) more carefully.
14323 Use GET_CHAR_BEFORE_2 for `begline'.
14324
cb9215e4
GM
143252000-04-19 Gerd Moellmann <gerd@gnu.org>
14326
5e3dac3f
GM
14327 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
14328 on 64-bit systems where NULL is defined as `0'.
14329
14330 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
14331 the `variable argument list' to make it work on Alpha.
14332
cb9215e4
GM
14333 * m/alpha.h (_LP64) [!_LP64]: Define.
14334 (ORDINARY_LINK): Define for NetBSD.
14335
14336 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 14337
f532dca0
DL
143382000-04-19 Dave Love <fx@gnu.org>
14339
c750667e
DL
14340 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
14341 change.
14342
14343 * Makefile.in (LIBS): Don't use.
14344 (GETLOADAVG_OBJ): Define again.
14345 (otherobj): Add GETLOADAVG_OBJ.
14346
f532dca0
DL
14347 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
14348
1c7e22fd
GM
143492000-04-18 Gerd Moellmann <gerd@gnu.org>
14350
f6d3257b
GM
14351 * lread.c (read_filtered_event): Cancel and start busy cursor.
14352
427ec082 14353 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
14354 that the per-character metrics may be null.
14355
e10f64e7
GM
143562000-04-17 Gerd Moellmann <gerd@gnu.org>
14357
0daee095
GM
14358 * buffer.c (clone_per_buffer_values): New function.
14359 (Fmake_indirect_buffer): Add optional argument CLONE. Call
14360 clone_per_buffer_values if CLONE is not nil.
14361
e10f64e7
GM
14362 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
14363
38687d43
DL
143642000-04-16 Dave Love <fx@gnu.org>
14365
14366 * Makefile.in: Remove obsolete localcpp stuff.
14367 (GETLOADAVG_OBJ): Don't define.
14368 (obj): Move LIBOBJS...
14369 (otherobj): ... to here.
14370 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
14371 whitespace-only lines after the continuation (Irix).
14372
c21c7262
GM
143732000-04-14 Gerd Moellmann <gerd@gnu.org>
14374
14375 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
14376
14377 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
14378
314767c0
DL
143792000-04-14 Dave Love <fx@gnu.org>
14380
14381 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
14382 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
14383 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
14384 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
14385 NLIST_STRUCT.
14386
14387 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
14388 autoconfiscated HAVE_GETLOADAVG.
14389
14390 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
14391 BROKEN_MKTIME.
14392
a2522dca
GM
143932000-04-14 Gerd Moellmann <gerd@gnu.org>
14394
14395 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 14396 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 14397
33744b5d
DL
143982000-04-14 Dave Love <fx@gnu.org>
14399
c21c7262 14400 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
14401 (INTERVAL_SRC): Convert to make variable.
14402 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
14403 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
14404 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
14405 add LIBOBJS.
14406 (SOME_MACHINE_OBJECTS): Remove interval stuff.
14407 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
14408 (shortlisp): Add facemenu, float-sup, frame.
14409 (SOME_MACHINE_LISP): Remove them from here.
14410 (LIBES): Change unused LDLIBS to autoconf LIBS.
14411
14412 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
14413
9d3d5916
KH
144142000-04-14 Kenichi Handa <handa@etl.go.jp>
14415
14416 * composite.c (update_compositions): If FROM and TO are not in a
14417 valid range, do nothing.
14418
198e3c7a
GM
144192000-04-13 Gerd Moellmann <gerd@gnu.org>
14420
52283633 14421 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 14422
52283633 14423 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
14424
14425 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
14426 as TERMCAP_OBJ.
14427
055a28c9
EZ
144282000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
14429
14430 * fileio.c (a_write): Remove redundant semi-colons.
14431 (e_write): Return -1 if failed to write all the data.
14432 This fixes the changes made at 1999-12-15.
14433
f5c75033
DL
144342000-04-12 Dave Love <fx@gnu.org>
14435
14436 * fns.c (mapcar1): Test for null vals to support mapc.
14437 (Fmapc): New function.
14438
0c3cfc51
EZ
144392000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
14440
14441 * msdos.c (NUM_MOUSE_BUTTONS): Define.
14442 (IT_frame_up_to_date): Support the buffer local value of
14443 cursor-type, if defined.
14444
33465a31
DL
144452000-04-10 Dave Love <fx@gnu.org>
14446
14447 * editfns.c (preceding-char, following-char): Doc fix.
14448
6ed56568
KR
144492000-04-10 Ken Raeburn <raeburn@gnu.org>
14450
14451 * Makefile.in (temacs): Revert 2000-03-12 change.
14452
7cf80d4e
JR
144532000-04-10 Jason Rumney <jasonr@gnu.org>
14454
14455 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
14456
34f3f342
GM
144572000-04-10 Gerd Moellmann <gerd@gnu.org>
14458
1a1b1895
GM
14459 * xdisp.c (setup_echo_area_for_printing): Choose an echo
14460 area buffer, if it's not set up yet.
14461
34f3f342
GM
14462 * indent.c (compute_motion): Set immediate_quit.
14463
be0dbdab
GM
144642000-04-09 Gerd Moellmann <gerd@gnu.org>
14465
52283633 14466 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
14467 (realize_tty_face): Suppress boldness if colors are the inverse of
14468 the default colors, and tty_suppress_bold_inverse_default_colors_p
14469 is set.
14470 (Ftty_suppress_bold_inverse_default_colors): New function.
14471 (syms_of_xfaces): Defsubr it.
14472
be0dbdab
GM
14473 * buffer.c (Frestore_buffer_modified_p): New function.
14474 (syms_of_buffer): Defsubr it.
14475
e8413c3b
KR
144762000-04-08 Ken Raeburn <raeburn@gnu.org>
14477
87f67317
KR
14478 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
14479 charset id (int) argument, not a charset (Lisp_Object).
14480
e8413c3b
KR
14481 * coding.h (code_convert_string): Declare.
14482 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
14483 object, as the fourth argument to code_convert_string.
14484
52283633 14485 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
14486 (Fset_fontset_font): Use EQ to compare lisp objects.
14487
7c752c80
KR
144882000-04-05 Ken Raeburn <raeburn@gnu.org>
14489
c0333abc
KR
14490 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
14491 a pointer that looks like a lisp object.
14492 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
14493 zero, instead see whether it's an integer object, since they can't
14494 have intervals.
14495 (GET_INTERVAL_OBJECT): Simply assign to the destination.
14496
52283633
SM
14497 * dispnew.c (allocate_matrices_for_frame_redisplay)
14498 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
14499 to convert between (unsigned) int values and lisp integers.
14500 * keyboard.c (read_key_sequence): Likewise.
14501 * lread.c (substitute_object_recurse): Likewise.
14502 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
14503 * minibuf.c (do_completion, Fminibuffer_complete_word)
14504 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
14505 * term.c (produce_special_glyphs): Likewise.
14506
14507 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
14508 * print.c (print_preprocess, print_object): Likewise.
14509
14510 * search.c (compile_pattern): Use NILP when checking for nil.
14511
74e49b38
KR
14512 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
14513 __OPTIMIZE__]: Provide a GNU C macro version that handles
14514 lisp-object unions.
14515 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
14516 field, to better cope with ENABLE_CHECKING and calls that modify a
14517 Lisp_Object using its old value.
14518
685e5ed2
GM
145192000-04-04 Gerd Moellmann <gerd@gnu.org>
14520
c407c570
GM
14521 * window.c (compare_window_configurations): Signal an error
14522 if parameters C1 or C2 aren't window configurations.
14523
685e5ed2
GM
14524 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
14525 AFTER_POTENTIAL_GC calls around calls to functions that can
14526 signal an error and thus invoke the debugger.
14527
587a49ab
GM
145282000-04-03 Gerd Moellmann <gerd@gnu.org>
14529
62f20204
GM
14530 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
14531 an error if decoding fails.
14532
587a49ab
GM
14533 * keyboard.c (lispy_mouse_names): Variable removed.
14534 (Vlispy_mouse_stem): New variable.
14535 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
14536 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
14537 for any mouse button number. Increase size of mouse_syms and
14538 button_down_location as needed. Call modify_event_symbol with
14539 different arguments.
14540 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
14541 Call modify_event_symbol with different arguments.
14542 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
14543 for any button number. Call modify_event_symbol with different
14544 arguments.
14545 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
14546 Accept a string for NAME_ALIST_OR_STEM.
14547
14548 * lisp.h (larger_vector): Add prototype.
14549
14550 * fns.c (larger_vector): Make externally visible.
14551
14552 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
14553
2d1675e4
SM
145542000-04-02 Stefan Monnier <monnier@cs.yale.edu>
14555
14556 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
14557 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
14558 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
14559 we are between str1 and str2.
14560 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
14561 (PATFETCH): Use `TRANSLATE'.
14562 (PATFETCH_RAW): Fetch multibyte char if applicable.
14563 (PATUNFETCH): Remove.
14564 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
14565 When writing a char, write it directly into the pattern buffer rather
14566 than going needlessly through a temp char-array.
14567 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
14568 multibyte magic and remove the useless `#ifdef emacs'.
14569 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
14570 buffer.
14571
14572 * regex.h (struct re_pattern_buffer): Make field `multibyte'
14573 conditional on `emacs'.
14574
14575 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
14576
cc2d8c6b
KR
145772000-04-01 Ken Raeburn <raeburn@gnu.org>
14578
14579 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
14580 non-union-type versions of XMARK and friends here, because XMARK
14581 and friends won't work on an integer field if NO_UNION_TYPE is not
14582 defined.
52283633 14583 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 14584
52283633 14585 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
14586 (syms_of_composite): Delete local var NARGS, pass an int as first
14587 argument to Fmake_hash_table.
14588
2387b382
KR
14589 * editfns.c (text_property_stickiness): Use NILP to test
14590 Lisp_Object boolean value.
14591 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
14592 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
14593 problems reading from and changing the same lisp value in an
14594 XSETSTRING call.
14595
27660e89
GM
145962000-04-01 Gerd Moellmann <gerd@gnu.org>
14597
14598 * term.c (TN_no_color_video): New variable.
14599 (term_init): Intitialize TN_no_color_video.
14600 (enum no_color_bit): New enumeration.
14601 (MAY_USE_WITH_COLORS_P): New macro.
14602 (turn_on_face): Use it to determine if attributes may be used
14603 combined with colors.
14604
3578db3c
KR
146052000-04-01 Ken Raeburn <raeburn@gnu.org>
14606
14607 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 14608 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
14609 (enlarge_window): Variable sizep now points to Lisp_Object. Use
14610 proper accessor macros.
14611 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
14612 (grow_mini_window): Fix typo getting int value of root->height.
14613
6fc556fd
KR
14614 * xdisp.c (compute_string_pos): Fix order of arguments to
14615 string_pos_nchars_ahead.
14616 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
14617 count arg to variable-arg routines like Frun_hook_with_args and
14618 Fformat.
587a49ab
GM
14619 (back_to_previous_visible_line_start)
14620 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
14621 fixed-arg routines like Fget_char_property and Fmake_string.
14622 (reconsider_clip_changes): Use XINT when comparing integer lisp
14623 objects, or passing them as int arguments.
587a49ab
GM
14624 (mark_window_display_accurate, insert_left_trunc_glyphs)
14625 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
14626 storing or passing integer values as lisp objects.
14627 (set_cursor_from_row, highlight_trailing_whitespace): Use
14628 INTEGERP, not implicit test against zero, for glyph object.
14629 (try_window_id): Don't use make_number when we want an int value.
14630
14631 * xfaces.c (xlfd_symbolic_value): Make last argument a
14632 Lisp_Object, to be consistent with callers.
14633 (Fbitmap_spec_p): Use XINT to get numeric value of height.
14634 (lface_hash): Apply XFASTINT to lisp values before folding in.
14635
14636 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
14637 fill in window width and height. Pass an int, not a lisp object,
14638 as first arg to Finsert.
14639
6e7b2457
GM
146402000-04-01 Gerd Moellmann <gerd@gnu.org>
14641
610d841e
GM
14642 * xfaces.c (realize_basic_faces): Block input while realizing
14643 the faces.
14644
6e7b2457
GM
14645 * keyboard.c (lispy_mouse_names): Add additional mouse names.
14646
14647 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
14648
aa110c0c
GM
146492000-03-31 Gerd Moellmann <gerd@gnu.org>
14650
14651 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 14652 or ASCII, handle case that per-char metric is null.
aa110c0c 14653
8801a864
KR
146542000-03-30 Ken Raeburn <raeburn@gnu.org>
14655
c6129d7e
KR
14656 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
14657
52283633
SM
14658 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
14659 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
14660 pointer, using eassert.
14661 * frame.h (XFRAME): Likewise.
14662
52283633
SM
14663 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
14664 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
14665 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 14666 * data.c (set_internal): Likewise.
52283633
SM
14667 * dispextern.h (WINDOW_WANTS_MODELINE_P)
14668 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
14669 * fileio.c (auto_save_1): Likewise.
14670 * insdel.c (check_markers): Likewise.
14671 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
14672 * undo.c (record_insert): Likewise.
14673 * vmsproc.c (child_sig): Likewise.
14674 * window.c (unshow_buffer, window_loop): Likewise.
14675 * xterm.c (x_erase_phys_cursor): Likewise.
14676
8e7af858
GM
146772000-03-30 Gerd Moellmann <gerd@gnu.org>
14678
14679 * xfns.c (free_image_cache): Free the cache structure itself
14680 last, after all its members have been freed.
14681
14682 * lisp.h (xstrdup): Add prototype.
14683
14684 * alloc.c (xstrdup): Moved here from xfaces.c.
14685 (allocating_for_lisp): Variable removed.
52283633 14686 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
14687
14688 * xfaces.c (realize_tty_face): Use find_symbol_value instead
14689 of Fsymbol_value.
14690 (xstrdup): Moved to alloc.c.
14691
e0b8c689
KR
146922000-03-29 Ken Raeburn <raeburn@gnu.org>
14693
b96f9fb7
KR
14694 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
14695
14696 * emacs.c (main): Fix sense of no-loadup test.
14697
e0b8c689
KR
14698 * config.in (ENABLE_CHECKING): Undef.
14699
14700 * lisp.h (struct interval): Replace "parent" field with a union of
14701 interval pointer and Lisp_Object; add new bitfield to use as
14702 discriminant. Change other flag fields to bitfields.
14703 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
14704 is defined and the supplied test fails, print a message and abort.
14705 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
14706
14707 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
14708 pointers; abort if the value looks like a lisp object.
52283633
SM
14709 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
14710 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
14711 Modify for new interval parent definition.
14712
52283633
SM
14713 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
14714 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
14715 addressable lisp object in the interval structure.
14716 (die): New function.
14717 (suppress_checking): New variable.
14718
14719 * intervals.c (interval_start_pos): Just return 0 if there's no
14720 parent object.
14721
f83c5440
GM
147222000-03-29 Gerd Moellmann <gerd@gnu.org>
14723
14724 * lread.c (read1): Accept `.' (period) as symbol start like in CL
14725 and earlier Emacs versions.
14726
14727 * keyboard.c (Ftop_level): Cancel busy-cursor.
14728
14729 * eval.c (call_debugger): Cancel busy-cursor.
14730
fdce64ff
KH
147312000-03-29 Kenichi Handa <handa@etl.go.jp>
14732
14733 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 14734 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 14735
f6a3f532
SM
147362000-03-28 Stefan Monnier <monnier@cs.yale.edu>
14737
14738 * regex.c (analyse_first): New function obtained by ripping out most
14739 of re_compile_fastmap and generalizing it a little bit so that it
14740 can also just return whether a given (sub)pattern can match the empty
14741 string or not.
14742 (regex_compile): Use `analyse_first' to decide whether the loop-check
14743 needs to be done or not for *, +, *? and +? (the loop check is costly
14744 for non-greedy repetition).
14745 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
14746
e9b309ac
DL
147472000-03-28 Dave Love <fx@gnu.org>
14748
52283633 14749 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 14750
e9b309ac
DL
14751 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
14752
ed0767d8
SM
147532000-03-27 Stefan Monnier <monnier@cs.yale.edu>
14754
14755 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
14756 an expression.
14757 (enum re_opcode_t): Update description of succeed_n.
14758 (PATFETCH): Always define.
14759 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
14760 operators, char classes, shy-groups and intervals).
14761 Optimize special cases of intervals so as to only use succeed_n and
14762 jump_n when really needed.
14763 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
14764 that we don't have to handle the special cases any more.
14765 Simplify on_failure_jump handling as well.
14766
e11e7e46
JR
147672000-03-28 Jason Rumney <jasonr@gnu.org>
14768
14769 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
14770
88faab89
GM
147712000-03-27 Gerd Moellmann <gerd@gnu.org>
14772
182ff242
GM
14773 * s/freebsd.h (GC_SETJMP_WORKS): Define.
14774
14775 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 14776
182ff242
GM
14777 * alloc.c (mark_maybe_object): New function.
14778 (mark_memory): Use it.
14779 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
14780 (setjmp_tested_p, longjmp_done): New variables.
14781 (test_setjmp): New function.
14782 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
14783 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
14784
c1005d06
GM
14785 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
14786 to DEC_TEXT_POS and INC_TEXT_POS.
14787
14788 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
14789 with parameter MULTIBYTE_P.
14790
52283633 14791 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 14792
7439e5b9 14793 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
14794 buffers because it looks for multibyte character byte sequences
14795 which don't exist in unibyte text.
7439e5b9 14796
d9c545da
GM
14797 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
14798
11fd416e 14799 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
14800 [DEBUG_X_COLORS]: New functions.
14801 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
14802
14803 * xfns.c (x_set_cursor_color): Get color reference counts right.
14804
14805 * xterm.c (x_copy_color): New function.
14806 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
14807
14808 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
14809 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
14810 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
14811 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
14812 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
14813 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
14814 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
14815 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
14816 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
14817 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
14818
11fd416e
GM
14819 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
14820 names for handling per-buffer variables.
d9c545da
GM
14821
14822 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
14823 instead of MAX_BUFFER_LOCAL_VARS.
14824 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
14825
14826 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
14827
88faab89
GM
14828 * xfns.c (x_specified_cursor_type): New function.
14829 (x_set_cursor_type): Use it.
14830
14831 * buffer.h (struct buffer): Add cursor_type.
14832
d80f42b7
SM
148332000-03-26 Stefan Monnier <monnier@cs.yale.edu>
14834
14835 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
14836 (print_partial_compiled_pattern, re_compile_fastmap):
14837 Handle new opcode.
d80f42b7
SM
14838 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
14839 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
14840 executing it as well as when popping it off the stack to find infinite
14841 loops in non-greedy repetition operators.
14842
89e80928
GM
148432000-03-26 Gerd Moellmann <gerd@gnu.org>
14844
3d4ff2dd
GM
14845 * doc.c (Qfunction_documentation): New variable.
14846 (syms_of_doc): Initialize Qfunction_documentation.
14847 (Fdocumentation): If FUNCTION is a symbol with non-nil
14848 `function-documentation' property, return a documentation derived
14849 from that.
14850
bd96bd79
GM
14851 * buffer.c (syms_of_buffer): Add default-cursor-type.
14852 (init_buffer_once): Don't let cursor_type have a local value
14853 in every buffer.
14854
19d1bc27
GM
14855 * xterm.c (x_display_and_set_cursor): Choose cursor depending
14856 on buffer-local value of cursor_type.
14857 (x_draw_bar_cursor): Add parameter WIDTH.
14858
14859 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
14860 (init_buffer_once): Set default cursor_type value to t.
14861 Mark cursor_type as local everywhere.
14862 (syms_of_buffer): New per-buffer variable cursor-type.
14863
89e80928
GM
14864 * buffer.h (struct buffer): Remove member local_var_flags,
14865 add local_flags.
14866 (MAX_BUFFER_LOCAL_VARS): New macro.
14867 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
14868 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
14869 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
14870 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
14871
52283633 14872 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
14873
14874 * category.c (Fset_category_table): Use new macros for per-buffer
14875 variables.
14876
14877 * buffer.c (buffer_permanent_local_flags): Make a char array.
14878 (max_buffer_local_idx): New variable.
14879 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
14880 for new handling of per-buffer variables.
14881 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
14882 (init_buffer_once): Initialize per-buffer vars differently.
14883 Set max_buffer_local_idx.
14884
14885 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
14886 variables.
14887
52283633 14888 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
14889
14890 * data.c (do_symval_forwarding, store_symval_forwarding)
14891 (find_symbol_value, set_internal, default_value, Fset_default)
14892 (Fkill_local_variable, Flocal_variable_p): Use new macros for
14893 per-buffer variables.
14894
14895 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
14896
9a0dd3dc
GM
148972000-03-24 Gerd Moellmann <gerd@gnu.org>
14898
b68c375f
GM
14899 * xterm.c (x_term_init): Unblock input around call1 of
14900 Qvendor_specific_keysyms.
14901
9a0dd3dc
GM
14902 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
14903 (find_defun_start): Consider an open parenthesis in column 0
14904 a defun start only if open_paren_in_column_0_is_defun_start is set.
14905 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
14906
7973e637
SM
149072000-03-24 Stefan Monnier <monnier@cs.yale.edu>
14908
14909 * eval.c (Fautoload): Add entry in load-history (if after dump).
14910 * lread.c (load-history): Update docstring.
14911
39210e90
GM
149122000-03-24 Gerd Moellmann <gerd@gnu.org>
14913
14914 * indent.c (Fvertical_motion): Always use the current buffer.
14915 Temporarily change the window's buffer, if necessary.
14916
72db3ab5
GM
149172000-03-23 Gerd Moellmann <gerd@gnu.org>
14918
14919 * xterm.c (fast_find_position): Make sure not to consider rows
14920 not visible in the window.
14921
990b2375
SM
149222000-03-22 Stefan Monnier <monnier@cs.yale.edu>
14923
14924 * regex.c (enum syntaxcode): Provide default for non-Emacs.
14925 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
14926
ff4df011
JR
149272000-03-22 Jason Rumney <jasonr@gnu.org>
14928
14929 * w32menu.c (single_submenu): Set help string to NULL if none.
14930 (w32_menu_show): Set help string correctly.
14931 (add-menu-item): Set help string in MIIM_DATA for menu item.
14932 Load SetMenuItemInfoA explicitly.
14933 (w32_menu_display_help): New function.
427ec082 14934
ff4df011
JR
14935 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
14936 (QCdata): Moved to xdisp.c.
14937
14938 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
14939 (Vw32_charset_to_codepage_alist): Removed.
14940 (Vw32_charset_info_alist): New variable.
52283633
SM
14941 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
14942 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
14943 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
14944 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
14945 with TODO comment.
14946 (w32_codepage_for_font): Use Vw32_charset_info_alist.
14947 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
14948 Define Vw32_charset_info_alist and w32_charset symbols.
14949
149502000-03-22 Jason Rumney <jasonr@gnu.org>
14951
14952 * makefile.nt (w32bdf.obj): Update dependencies.
14953
14954 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
14955
14956 * w32fns.c: Include fontset.h after dispextern.h.
14957 (Fx_create_frame): Do not create fontset.
14958 (w32_load_system_font): Doc fix.
14959 (Fx_close_connection): Free full_name if it is not shared.
14960
14961 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
14962 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
14963 Callers updated.
ff4df011
JR
14964 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
14965 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
14966 (w32_font_is_double_byte): New function, needs body.
14967 (x_append_glyph): Set glyph->glyph_not_available_p.
14968 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14969 it->charset. If it->multibyte_p is zero and it->c is a multibyte
14970 character, convert it to a unibyte character.
14971 (struct glyph_string): Delete member `charset'.
14972 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
14973 calculating it is found.
14974 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14975 the case that per char metric is not available correctly.
14976 (x_fill_glyph_string): Handle the case that the specific glyph is
14977 not available correctly.
14978 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14979 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14980 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14981 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14982 fontset. Don't call FS_LOAD_FONT.
14983
439d5cb4
KR
149842000-03-22 Ken Raeburn <raeburn@gnu.org>
14985
14986 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
14987 (INT_LISPLIKE): New macro.
14988 (NULL_INTERVAL_P): Use it.
52283633
SM
14989 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
14990 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
14991 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
14992
14993 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
14994 explicit references to "parent" field of struct interval and
14995 associated unclean type conversions.
52283633
SM
14996 * intervals.c (create_root_interval, root_interval, rotate_right)
14997 (rotate_left, balance_possible_root_interval, split_interval_right)
14998 (split_interval_left, interval_start_pos, find_interval)
14999 (next_interval, previous_interval, update_interval)
15000 (adjust_intervals_for_insertion, delete_node, delete_interval)
15001 (adjust_intervals_for_deletion, merge_interval_right)
15002 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
15003 (copy_intervals_to_string): Likewise.
439d5cb4
KR
15004 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
15005 Likewise.
15006 * syntax.c (update_syntax_table): Likewise.
15007
15008 * intervals.c (reproduce_tree_obj): New function, like
15009 reproduce_tree but takes a Lisp_Object for the parent. Declare
15010 with prototype.
15011 (graft_intervals_into_buffer): Use it when appropriate.
15012 (reproduce_tree): Declare with prototype.
15013 (balance_possible_root_interval): Check that the parent is a lisp
15014 object before trying to examine its type.
15015
ee1c5b21
GM
150162000-03-22 Gerd Moellmann <gerd@gnu.org>
15017
15018 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
15019 as strings only if both are known to be strings.
15020
15021 * s/openbsd.h (LIBS_TERMCAP): Undef.
15022
1fb352e0
SM
150232000-03-21 Stefan Monnier <monnier@cs.yale.edu>
15024
15025 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
15026 definitions for non-Emacs compilation.
15027 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
15028 outside of `#ifdef emacs'.
15029 (print_partial_compiled_pattern): Update.
15030 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
15031 (re_compile_fastmap): Merge handling of charset and charset_not (for
15032 emacs and non-emacs compilation as well).
15033 Similarly for (not)categoryspec and (not)syntaxspec.
15034 Don't use the fastmap when reaching `anychar' since the added
15035 complexity is not justified.
15036 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
15037 and (not)syntaxspec. Merge (not)categoryspec.
15038
fdaa1f77
KH
150392000-03-22 Kenichi Handa <handa@etl.go.jp>
15040
52283633
SM
15041 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
15042 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 15043 --without-x.
fdaa1f77 15044
d152fb46
DL
150452000-03-21 Dave Love <fx@gnu.org>
15046
15047 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
15048 doc string.
15049
d2cafc8c
GM
150502000-03-21 Gerd Moellmann <gerd@gnu.org>
15051
15052 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
15053 (lface_fully_specified_p): Don't check contents of
15054 LFACE_FONT_INDEX because that attribute is optional.
15055 (realize_x_face): Remove now unwarranted xassert.
15056
9111d4b5
KH
150572000-03-21 Kenichi HANDA <handa@etl.go.jp>
15058
15059 The following changes are to make font selection based on
15060 characters, not charset. In addition, they recover fontset
15061 facilities while utilizing the new font selection mechanism.
15062
6c4bfdc0
KH
15063 * Makefile.in (fontset.o): Depend on dispextern.h.
15064
15065 * alloc.c (mark_face_cache): Don't mark face->registry.
15066
9111d4b5
KH
15067 * dispextern.h (struct glyph): New member glyph_not_available_p.
15068 Use 22 bits for face_id.
15069 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
15070 (struct face): Delete member registry, new member ascii_face.
15071 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
15072 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
15073 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 15074 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
15075
15076 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
15077 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
15078 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
15079 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 15080 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
15081 (fs_free_face_fontset, fontset_font_pattern)
15082 (face_suitable_for_char_p, face_for_char)
15083 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
15084 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
15085 (FS_LOAD_FACE_FONT): New macro.
15086
15087 * fontset.c: All codes rewritten or adjusted for the change of
15088 fontset implementation. Now fontset is represented by char table.
52283633
SM
15089 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
15090 Variables removed.
9111d4b5 15091 (my_strcasecmp): Function removed.
52283633 15092 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 15093 (AREF, ASIZE): New macros.
52283633
SM
15094 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
15095 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
15096 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
15097 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
15098 (fontset_id_valid_p, font_family_registry, fontset_name)
15099 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
15100 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
15101 New functions.
15102 (fs_load_font): New arg FACE. Caller changed.
15103 (fs_query_fontset): Argument changed. Caller changed.
15104 (Fquery_fontset): call fs_query_fontset.
15105 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
15106 Functions removed.
52283633
SM
15107 (clear_fontset_elements, check_registry_encoding)
15108 (check_fontset_name): New functions.
9111d4b5
KH
15109 (syms_of_fontset): Set char-table-extra-slots property of fontset
15110 to 3. Staticpro and initialize Vfontset_table and
15111 Vdefault_fontset. Defsubr fontset_font and fontset_list.
15112
15113 * frame.h (struct frame): Member `fontset_data' removed.
15114 (FRAME_FONTSET_DATA): Macro removed.
15115
15116 * frame.c (make_frame): Don't allocate f->fontset_data.
15117 (Fdelete_frame): Don't free f->fontset_data.
15118
6c4bfdc0
KH
15119 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
15120
9111d4b5
KH
15121 * xdisp.c (charset_at_position): Function removed.
15122 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
15123 (handle_face_prop, reseat_to_string, set_iterator_to_next)
15124 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
15125 Likewise.
15126 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
15127 FACE_FOR_CHARSET.
52283633
SM
15128 (get_next_display_element, append_space)
15129 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
15130
15131 * xfaces.c (Qx_charset_registry, Vface_default_registry):
15132 Variables removed.
15133 (clear_font_table, frame_update_line_height, load_face_font):
15134 Adjusted for the change of fontset implementation.
15135 (load_face_fontset_font): Function removed.
15136 (pixel_point_size): New function.
15137 (font_list): Argument type changed. Caller changed.
15138 (LFACE_FONT): New macro.
15139 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
15140 (set_lface_from_font_name): Type of arg FONTNAME is changed to
15141 Lisp_Object. Determine the font name by actually loading a font
15142 by the specified pattern. Set LFACE_FONT (lface) to the specified
15143 pattern. Even if a font is not found, don't try alternatives.
15144 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
15145 (set_font_frame_param): If `font' is specified in lface, use it.
15146 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
15147 (lface_same_font_attributes_p): Likewise.
15148 (make_realized_face): Arguent changed. Caller changed. Set
15149 face->ascii_face to face itself.
15150 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
15151 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
15152 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
15153 (free_realized_multibyte_face): New function.
15154 (lookup_face, lookup_named_face, lookup_derived_face): Argument
15155 changed. Caller changed.
15156 (try_font_list): Argument type changed.
15157 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
15158 (choose_face_font): Argument changed. Handle fontset properly.
15159 (choose_face_fontset_font): Function removed.
15160 (realize_default_face, realize_named_face): Don't remove the
15161 former face here.
15162 (realize_face): Argument changed. Caller changed. Remove face
52283633 15163 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
15164 (realize_x_face): Argument changed. Caller changed. For a
15165 multibyte character, share fontset with base_face. For a single
52283633 15166 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
15167 (realize_tty_face): Argument changed. Caller changed.
15168 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
15169 (face_at_buffer_position): Don't check multibyte_p for returning
15170 DEFAULT_FACE_ID.
15171 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
15172 FACE_SUITABLE_FOR_CHARSET_P.
15173 (syms_of_xfaces): Remove code for Qx_charset_registry and
15174 Vface_default_registry.
15175
6c4bfdc0
KH
15176 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
15177 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
15178 (x_per_char_metric): Don't try FONT->default_char. Even if
15179 pcm->width is zero, glyph bits may exist.
15180 (x_encode_char): Always initialize char2b->byte1.
15181 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 15182 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
15183 (x_append_glyph): Set glyph->glyph_not_available_p.
15184 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
15185 it->charset. Handle the case that per char metric is not
15186 available. If it->multibyte_p is zero and it->c is a multibyte
15187 character, convert it to a unibyte character.
15188 (struct glyph_string): Delete member `charset'.
15189 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
15190 the case that per char metric is not available correctly.
15191 (x_fill_glyph_string): Handle the case that the specific glyph is
15192 not available correctly.
15193 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
15194 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
15195 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
15196 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
15197 fontset. Don't call FS_LOAD_FONT.
15198
15199 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
15200 (x_create_tip_frame): Likewise.
15201 (Fx_close_connection): Free full_name of font_info.
15202
15203 * fns.c (optimize_sub_char_table): New function.
15204 (Foptimize_char_table): New function.
15205 (syms_of_fns): Defsubr Soptimize_char_table.
15206
b33dd3b0
GM
152072000-03-20 Gerd Moellmann <gerd@gnu.org>
15208
15209 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
15210 only if buffer is displayed in some window.
15211
15212 * xdisp.c (handle_single_display_prop): Initialize local `value'.
15213 (try_window_reusing_current_matrix): Don't call scroll run
15214 function if run's current and desired position are the same;
15215 this prevents cursor flickering.
15216
4e8a9132
SM
152172000-03-19 Stefan Monnier <monnier@cs.yale.edu>
15218
15219 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
15220
15221 * regex.c (RE_STRING_CHAR): New macro.
15222 (GET_CHAR_AFER_2): Remove.
15223 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
15224 (enum re_opcode_t): Remove on_failure_jump_exclusive.
15225 (print_partial_compiled_pattern, re_compile_fastmap)
15226 (re_match_2_internal): Remove on_failure_jump_exclusive.
15227 (regex_compile): Turn optimizable P+ loops into PP*, so that the
15228 optimization only need to work for * (ie. can use of_keep_string_jump).
15229 Remove the special case for .*\n since it is now covered by the general
15230 optimization.
15231 (re_search_2): Don't bother with `room'.
15232 (skip_one_char): New function.
15233 (skip_noops): Simplify since `memory' is not needed any more.
15234 (mutually_exclusive_p): Restructure slightly to use `switch' and
15235 add handling for "all" remaining cases.
15236 (re_match_2_internal): Change on_failure_jump_smart to use
15237 on_failure_keep_string_jump (and redirect the end-of-loop jump)
15238 rather than on_failure_jump_exclusive.
15239
2136fdd4
GM
152402000-03-19 Gerd Moellmann <gerd@gnu.org>
15241
15242 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
15243 number of bits per RGB because it's everywhere used as the depth
15244 of the visual.
15245
15246 * term.c (calculate_costs): Remove code dealing with X frames.
15247
18e21ce8 152482000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
15249
15250 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
15251
d7b511c4
GM
152522000-03-18 Gerd Moellmann <gerd@gnu.org>
15253
15254 * lread.c (read_integer): Unread the last char not consumed.
15255
16b5d424
GM
152562000-03-17 Gerd Moellmann <gerd@gnu.org>
15257
15258 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 15259 which are in the process of being deleted.
16b5d424 15260
1fa28578
GM
152612000-03-16 Gerd Moellmann <gerd@gnu.org>
15262
83488cce
GM
15263 * Makefile.in (mostlyclean): Add `*.core'.
15264 (clean): Add `bootstrap-emacs'.
15265
1fa28578
GM
15266 * lread.c (read_integer): New function.
15267 (read1): Support read syntax #o, #x, #b, #r.
15268
99633e97
SM
152692000-03-15 Stefan Monnier <monnier@cs.yale.edu>
15270
1fa28578
GM
15271 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
15272 make sure POINTER_TO_OFFSET gives the same value before and after
15273 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
15274 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
15275 (debug): Now only active if > 0 rather than if != 0.
15276 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
15277 (print_partial_compiled_pattern): Add missing `succeed' case. Use
15278 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
15279 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
15280 (store_op1, store_op2, insert_op1, insert_op2)
15281 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
15282 (group_in_compile_stack): Move to after its arg's types are
15283 declared and add a prototype.
99633e97 15284 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 15285 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 15286 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
15287 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
15288 indentation of the greedy-op and shy-group code.
99633e97
SM
15289 (at_(beg|end)line_loc_p): Fix argument's types.
15290 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
15291 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
15292 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
15293 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
15294 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
15295 QUIT unconditionally.
99633e97 15296
699238d9
GM
152972000-03-15 Gerd Moellmann <gerd@gnu.org>
15298
15299 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
15300 a sole completion.
15301
15302 * process.c (send_process): Add a hint that the function
15303 can call Lisp code to its comment.
15304
15305 * lread.c (load_dangerous_libraries): New variable.
15306 (Vbytecomp_version_regexp): New variable.
15307 (safe_to_load_p): New function.
15308 (Fload): Handle files not compiled with Emacs specially.
15309 (syms_of_lread): New Lisp variable load-dangerous-libraries.
15310
34e23e5a
GM
153112000-03-14 Gerd Moellmann <gerd@gnu.org>
15312
9c763cca
GM
15313 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
15314
15315 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
15316 support functions only if HAVE_X11R6_XIM is defined.
15317 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
15318
15319 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
15320
15321 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 15322 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
15323 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
15324
15325 * config.in (HAVE_X_I18N): Moved here from xterm.h.
15326 (HAVE_X11R6_XIM): Define.
15327
15328 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
15329
34e23e5a
GM
15330 * xterm.c (x_term_init): Add support for X resource `synchronous'.
15331 If set, call XSynchronize.
15332
66f0296e
SM
153332000-03-13 Stefan Monnier <monnier@cs.yale.edu>
15334
34e23e5a
GM
15335 * regex.c: Declare a new type `re_char' used throughout the code
15336 for the string char type. It's `const unsigned char' to match the
15337 rest of Emacs. Consistently make sure all pointers to strings use
52283633 15338 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 15339 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
15340 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
15341 code duplication.
66f0296e
SM
15342
15343 * charset.h (GET_CHAR_AFTER_2): Remove.
15344 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
15345
854a025c
KR
153462000-03-12 Ken Raeburn <raeburn@gnu.org>
15347
15348 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
15349 variable before the invocation of YMF_PASS_LDFLAGS, in case both
15350 of them try to use backquotes.
15351
b9d2c7e2
DL
153522000-03-12 Dave Love <fx@gnu.org>
15353
15354 * unexelf.c: Restore changes of 1999-10-19.
15355 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
15356 fix its type and alignment; copy it from current process.
15357
5e5dff44
GM
153582000-03-12 Gerd Moellmann <gerd@gnu.org>
15359
9b2f3c38
GM
15360 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
15361 has been found. Fix bug not computing timer's predecessor.
15362
427ec082 15363 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
15364 file name.
15365
e1cff360
GM
15366 * window.c (Fsave_window_excursion): Doc fix.
15367
52283633 15368 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 15369
e411ce4b
EZ
153702000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
15371
15372 * msdos.c (vga_installed): New function, code moved from
15373 dos_set_window_size.
15374 (Qbar, Qcursor_type, outside_cursor): New variables.
15375 (syms_of_msdos): Intern and staticpro them.
15376 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
15377 shape used outside Emacs when called for the first time.
15378 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
15379 cursor shape used outside Emacs.
15380 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
15381 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
15382 type has changed.
15383 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
15384 parameters specify the cursor. Make qreverse a global
15385 variable (renamed to Qreverse).
15386
80460654
GM
153872000-03-09 Gerd Moellmann <gerd@gnu.org>
15388
15389 * fns.c (Fy_or_n_p): Cancel busy-cursor.
15390
95cd4c40
SM
153912000-03-08 Stefan Monnier <monnier@cs.yale.edu>
15392
15393 This is a big redesign of failure-stack and register handling, prompted
15394 by bugs revealed when trying to add shy-groups. Overall, what happened
15395 is that loops are now structured a little differently, groups can be
15396 shy and the code is a little simpler.
15397
15398 * regex.h: Update the copyright.
15399 (RE_SHY_GROUPS): New value.
15400 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
15401 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
15402
80460654
GM
15403 * regex.c (enum re_opcode_t): Remove jump_past_alt,
15404 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
15405 on_failure_jump_(exclusive, loop and smart). Also fix the comment
15406 for (start|stop)_memory since they now only take one argument (the
15407 second has becomes unnecessary).
52283633 15408 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
15409 (print_compiled_pattern): Use %ld to printf long ints and flush to
15410 make debugging a little easier.
95cd4c40
SM
15411 (union fail_stack_elt): Make the integer unsigned.
15412 (struct fail_stack_type): Add a `frame' element.
15413 (INIT_FAIL_STACK): Init `frame' as well.
15414 (POP_PATTERN_OP): New macro for re_compile_fastmap.
15415 (DEBUG_PUSH, DEBUG_POP): Remove.
15416 (NUM_REG_ITEMS): Remove.
15417 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
15418 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
15419 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 15420 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
15421 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
15422 New macros.
80460654
GM
15423 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
15424 address pushed is not the destination of the jump but the source
15425 of it instead.
95cd4c40
SM
15426 (NUM_FAILURE_ITEMS): Remove.
15427 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
15428 registers before the actual failure point). Don't hardcode any
15429 meaning for str==NULL anymore.
95cd4c40 15430 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
15431 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
15432 Remove.
95cd4c40
SM
15433 (REG_UNSET_VALUE): Use NULL (why not?).
15434 (compile_range): Remove declaration since it doesn't exist.
15435 (struct compile_stack_elt_t): Remove inner_group_offset.
15436 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
15437 (regex_grow_registers): Remove dead code.
15438 (FIXUP_ALT_JUMP): New macro.
80460654
GM
15439 (regex_compile): Add shy-groups Change loops to use
15440 on_failure_jump_smart&jump instead of
15441 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
15442 initial (dummy_failure_)jump. Remove c1_base (looks like unused
15443 variable to me). Use `jump' instead of `jump_past_alt' and don't
15444 bother with push_dummy_failure in alternatives since it is now
15445 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
15446 emacs' for (re)allocating the stack.
15447 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
15448 from loop when bufp->can_be_null rather than jumping to `done'.
15449 Avoid jumping backwards so as to ensure termination. Use
15450 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
15451 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 15452 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
15453 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
15454 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
15455 (lowest_active_reg, highest_active_reg)
15456 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
15457 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
15458 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
15459 variables. Push register (in `start_memory') on the stack rather
15460 than storing it in old_reg(start|end). Remove the cycle detection
15461 from `stop_memory', replaced by the use of on_failure_jump_loop
15462 for greedy loops. Add code for the new on_failure_jump_<foo>.
15463 Remove ad-hoc code in `on_failure_jump' to push more registers in
15464 the case of a loop. Take out code from `maybe_pop_jump' into
15465 separate functions and adapt it to the semantics of
15466 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
15467 and push_dummy_failure. Remove dummy_failure handling and
15468 handling of `failures to jump to on_failure_jump' (this last one
15469 was already dead code, it seems).
15470 (group_match_null_string_p, alt_match_null_string_p)
15471 (common_op_match_null_string_p): Remove.
95cd4c40 15472
7397acc4
DL
154732000-03-08 Dave Love <fx@gnu.org>
15474
15475 * config.in: Don't depend on __STDC__ for volatile.
15476 Add POINTER_TYPE, PTR, PROTOTYPES.
15477
15478 * hftctl.c, strftime.c: Use PROTOTYPES.
15479 * eval.c (find_handler_clause): Likewise.
15480
15481 * mem-limits.h: Use POINTER_TYPE.
15482
15483 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
15484 (memory_warnings): Declare using POINTER_TYPE.
15485
5e91ff9e
GM
154862000-03-08 Gerd Moellmann <gerd@gnu.org>
15487
feab4fba
GM
15488 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
15489
52283633 15490 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 15491
5e91ff9e
GM
15492 * xfns.c: Remove obsolete code in #if 0.
15493 (Fx_focus_frame): New function.
15494
a735b7e1
KH
154952000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
15496
15497 * coding.c (coding_category_name): Add coding-category-utf-8,
15498 coding-category-utf-16-be, coding-category-utf-16-le.
15499 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
15500 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
15501 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
15502 (detect_coding_utf_8): New function.
15503 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
15504 UTF_16_LOW_SURROGATE_P): New macros.
15505 (detect_coding_utf_16): New function
15506 (detect_coding_mask): When priorities are specified, skip any
15507 categories that have `nil' coding-system. Fix bug of returning
15508 wrong mask when PRIORITIES is specified and detect_coding_XXX()
15509 returns a mask not set in PRIORITIES.
15510 (detect_eol_type_in_2_octet_form): New function.
15511 (detect_eol): selects detect_eol_type_XXX to call according to
15512 cooding->category_idx.
15513 (detect_coding_system): Remove `nil' coding-system in the result.
15514 (Fupdate_coding_systems_internal): Update all coding-categories.
15515
52283633
SM
15516 * coding.h (CODING_CATEGORY_IDX_UTF_8)
15517 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
15518 New macros.
15519 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
15520 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
15521 (CODING_CATEGORY_IDX_UTF_16_LE)
15522 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
15523 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
15524 (CODING_CATEGORY_MASK_ANY): Include the above macros.
15525 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
15526
9994cc69
GM
155272000-03-07 Gerd Moellmann <gerd@gnu.org>
15528
e9b4e5ff
GM
15529 * doc.c (Fdocumentation_property): If value is not a string,
15530 and doesn't refer to etc/DOC, evaluate it to obtain a string.
15531
f7daf1e1
GM
15532 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
15533 close the display with XtCloseDisplay. This caused a bus error
15534 on OpenWindows.
15535
9994cc69
GM
15536 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
15537 complete but not unique.
15538
4336c705
GM
155392000-03-06 Gerd Moellmann <gerd@gnu.org>
15540
18bb0684
GM
15541 * process.c (send_process): Remove local variable `procname' that
15542 might become invalid when a GC happens. Instead, access the
15543 process name slot directly.
15544
4336c705
GM
15545 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
15546 orig_height if set.
15547
15548 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
15549 orig_height if set.
15550
515d0d0e
EZ
155512000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
15552
15553 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
15554 glyph matrices have been freed.
15555
100b3cbb
GM
155562000-03-05 Gerd Moellmann <gerd@gnu.org>
15557
50df5e5a 15558 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 15559 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
15560
15561 * xfns.c (QCdata): Moved to xdisp.c.
15562
15563 * xdisp.c (QCdata): Moved here from xfns.c.
15564 (syms_of_xdisp): Initialize QCdata.
15565
15566 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
15567
15568 * window.c (coordinates_in_window): Use
15569 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
15570 FRAME_INTERNAL_BORDER_WIDTH.
15571
100b3cbb 15572 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 15573 it is obviously invalid.
100b3cbb
GM
15574
15575 * xterm.c (x_term_init): Create a colormap if not using the
15576 default visual.
15577
15578 * xterm.h (select_visual): Change prototype.
15579
15580 * xfns.c (select_visual): Rewritten. Recognize user-specified
15581 visual classes.
15582 (visual_classes): New variable.
15583
64d739c4
GM
155842000-03-04 Gerd Moellmann <gerd@gnu.org>
15585
15586 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
15587 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
15588 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 15589 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
15590 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
15591 XtNcolormap resources.
15592 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
15593 (Fx_create_frame): Initialize color members of x_output structure.
15594 (xpm_load): Pass colormap to XPM lib.
15595
15596 * xfaces.c (x_free_colors): Access colormap of frame using
15597 FRAME_X_COLORMAP. Be paranoid about freeing black and white
15598 when default colormap is used.
15599
15600 * xterm.c (x_term_init): Set Colormap member of x_display_info
15601 structure. Copy colormap if resource `privateColormap' is
15602 specified (PseudoColor only).
15603 (x_setup_relief_color): Access colormap of frame using
15604 FRAME_X_COLORMAP.
15605
15606 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
15607 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
15608
c3cee013
JR
156092000-03-04 Jason Rumney <jasonr@gnu.org>
15610
15611 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
15612 other non-platform-specific equivalents.
64d739c4 15613 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
15614 specific functions and macros as their w32 equivalents where
15615 non-platform-specifics are not available.
15616 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
15617 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
15618 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
15619 (frame_update_line_height): Use macros to access f->output_data.
15620 (defined_color): Remove FIXME comments; fixed.
15621 (x_face_list_fonts, prepare_face_for_display): Put X specifics
15622 into #ifdef blocks. Add WINDOWSNT blocks.
15623 (Fx_list_fonts): Use macros for accessing font data.
15624 (set_lface_from_font_name): Different default fonts for X and
15625 WINDOWSNT.
15626 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
15627 scalable for backward compatibility.
64d739c4 15628 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
15629 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
15630
64d739c4 15631 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
15632 syms_of_w32faces.
15633
15634 * makefile.nt (w32faces.obj): Remove.
15635 (xfaces.obj): Add.
15636
807cc41c
JR
156372000-03-03 Jason Rumney <jasonr@gnu.org>
15638
15639 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
15640 correct parameters.
15641
0007072a
KR
156422000-03-03 Ken Raeburn <raeburn@gnu.org>
15643
15644 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
15645 standard ELF definitions here if the system header does not.
15646
71a6ba55
GM
156472000-03-03 Gerd Moellmann <gerd@gnu.org>
15648
15649 * xterm.c (PER_CHAR_METRIC): Removed.
15650 (x_per_char_metric_1, x_default_char): New functions.
15651 (x_per_char_metric): If font's default char is invalid, return
15652 metrics of a suitably chosen usable default char.
15653 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
15654 char, replace occurrences of unprintable chars with a suitably
15655 chosen usable default char.
71a6ba55 15656
900fa1f1
GM
156572000-03-02 Gerd Moellmann <gerd@gnu.org>
15658
42f55fe0
GM
15659 * xterm.c (note_mouse_highlight): Return quickly if frame's
15660 glyph matrices have been freed.
15661
15662 * dispnew.c (free_glyphs): Block input while freeing matrices.
15663
900fa1f1
GM
15664 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
15665
52283633
SM
15666 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
15667 Use x_free_colors.
900fa1f1
GM
15668
15669 * dispextern.h (x_free_colors): Add prototype.
15670
15671 * xfaces.c (x_free_colors): New function.
15672 (unload_color, free_face_colors): Use it.
15673
2f950292
EZ
156742000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
15675
15676 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
15677
15678 * window.c [MSDOS]: Include msdos.h.
15679
54d04320
DL
156802000-03-02 Dave Love <fx@gnu.org>
15681
15682 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
15683
15684 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
15685 set C_OPTIMIZE_SWITCH for gcc.
15686
0ba93ac4
KH
156872000-03-02 Kenichi Handa <handa@etl.go.jp>
15688
15689 * coding.c (coding_save_composition): Be sure to allocate
15690 composition data area in coding even if there's no composition in
15691 the current run.
15692
a2bc11d4
JR
156932000-03-01 Jason Rumney <jasonr@gnu.org>
15694
15695 * w32term.c: Equivalent changes to those made to xterm.c on
15696 2000-02-25 and 2000-02-24.
15697
15698 * w32fns.c: Equivalent changes to those made to xfns.c on
15699 2000-02-25 and 2000-02-21.
15700
15701 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
15702 correct line-end convention is followed.
15703
15704 * w32menu.c [HAVE_BOXES]: Remove #undef.
15705 (single_keymap_panes): Remove code for simulating checkmarks.
15706 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
15707 Remove code for drawing simulated checkmarks.
15708 (w32_menu_show): make unibyte help string correctly.
15709 (add_menu_item): draw standard Windows checkmarks. Draw radio
15710 buttons as radio buttons if possible.
15711
72d19d75
GM
157122000-03-01 Gerd Moellmann <gerd@gnu.org>
15713
2df636f4
GM
15714 * sysdep.c (start_of_text): Don't define this function for NetBSD
15715 with ELF.
15716
427ec082 15717 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
15718 Don't define.
15719 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
15720 (LINKER): Don't undef if __NetBSD__ is defined.
15721
15722 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
15723
15724 * fileio.c [__NetBSD__]: Define `unix'.
15725
72d19d75
GM
15726 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
15727
ed4d0512
GM
157282000-02-29 Gerd Moellmann <gerd@gnu.org>
15729
50b1039f
GM
15730 * atimer.c (start_atimer): Don't abort when timers are stopped.
15731 (append_atimer_lists): New function.
15732 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
15733 arbitrary lists of stopped and running atimers.
15734
ed4d0512
GM
15735 * atimer.c (cancel_atimer): Handle canceling an atimer when
15736 some timers are stopped.
15737
15738 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
15739 after canceling it.
15740
15741 * fns.c (maybe_resize_hash_table): Handle case of new size
15742 coming out as being the same as old size.
15743
387023ee
JR
157442000-02-27 Jason Rumney <jasonr@gnu.org>
15745
15746 * makefile.nt: Add atimer.h to dependencies.
15747 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
15748 * w32console.c: Only disable window system features for dispextern.h
15749 (initialize_w32_display): Build a display info for the console.
15750 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
15751 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
15752 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
15753 as 2 button mice.
15754 * w32gui.h (struct W32FontStruct): Revert last change after change
15755 to xdisp.c.
15756 * w32menu.c (single_submenu): Set up help string.
15757 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
15758 (w32_dialog_show): Set up help string.
15759 * w32term.c (w32_display_info_for_display): Remove unused function.
15760 (w32_draw_bitmap): Use pre-built bitmaps.
15761 (w32_initialize_display_info): New function to initialize parts of
15762 display info that are common to both GUI and console frames.
15763 (w32_term_init): Use w32_initialize_display_info. Do not set
15764 Vw32_num_mouse_buttons here, as it is not called for console
15765 frames. Build bitmaps for indicating truncated lines etc.
15766 (x_delete_display): Destroy pre-built bitmaps.
15767 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
15768 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
15769
4516715a
DL
157702000-02-27 Dave Love <fx@gnu.org>
15771
15772 * lisp.h: Add a bunch of prototypes.
15773
171ca836
KH
157742000-02-26 Kenichi Handa <handa@etl.go.jp>
15775
15776 * keyboard.c (read_char): Set `usec' correctly.
15777
4013921d
KH
157782000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
15779
15780 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
15781 `lambda', set reg[RRR] to the map index.
15782 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
15783 reg[RRR] to 0. Otherwise, set it to -1.
15784
9244a058
GM
157852000-02-25 Gerd Moellmann <gerd@gnu.org>
15786
2df636f4 15787 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 15788
18e21ce8 157892000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 15790
f43d79c1
GM
15791 * fileio.c (Ffile_symlink_p): If result starts with a `/'
15792 and contains a `:', prepend `/:'.
15793
15794 * window.c (select_window_1): If selected_window is nil,
15795 don't "swap out" the buffer's point.
15796 (Fset_window_configuration): Set selected_window to nil
15797 before calling Fselect_window.
15798 (unshow_buffer): Don't set point in buffer from window's point
15799 if another more recently selected window also shows the buffer.
15800
bed0c171
GM
158012000-02-25 Gerd Moellmann <gerd@gnu.org>
15802
449c3c52
GM
15803 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
15804
f5b58615
GM
15805 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
15806 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
15807 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
15808 New variables.
f5b58615
GM
15809 (DEFAULT_BUSY_CURSOR_DELAY): New define.
15810 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
15811 (hide_busy_cursor): New functions.
15812 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
15813
15814 * minibuf.c (read_minibuf): Cancel busy-cursor.
15815
15816 * keyboard.c (command_loop_1): Call start_busy_cursor before
15817 Fcommand_execute and cancel_busy_cursor after it.
15818 (timer_check): Remove busy-cursor code.
15819 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
15820 cursor timer.
15821
15822 * process.c (wait_reading_process_input): Remove busy-cursor code.
15823
15824 * eval.c (Fsignal): Call cancel_busy_cursor instead of
15825 Fx_hide_busy_cursor.
15826
15827 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
15828 Remove prototyoes.
15829 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
15830
15831 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
15832
15833 * xterm.c (XTread_socket): Remove busy-cursor code.
15834
4eb8436f
GM
15835 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
15836 (build_frame_matrix_from_leaf_window): Put code handling
15837 glyph row's not being a slice of a frame row in #if 0.
15838 (sync_window_with_frame_matrix_rows): New function.
15839 (frame_row_to_window): New function.
15840 (mirror_line_dance): Handle copies between windows.
15841
3cb65b0e
GM
15842 * lread.c (Fload): Use `xfree' instead of `free'.
15843 (init_obarray): Use `xmalloc' instead of `malloc'.
15844
bed0c171
GM
15845 * window.c (Fset_window_buffer): Set WINDOW to the window
15846 after decoding.
2add4349
GM
15847 (coordinates_in_window): Take frame's internal border width
15848 into account.
bed0c171 15849
42088c12
GM
158502000-02-24 Gerd Moellmann <gerd@gnu.org>
15851
15852 * xterm.c (x_display_and_set_cursor): Display cursor of
15853 non-selected windows depending on the setting of
15854 cursor_in_non_selected_windows.
15855
15856 * xdisp.c (cursor_in_non_selected_windows): New variable.
15857 (syms_of_xdisp): DEFVAR_BOOL it.
15858
d1e103b2
GM
158592000-02-23 Gerd Moellmann <gerd@gnu.org>
15860
723e779c
GM
15861 * data.c (Fstring_to_number): If number is greater than what
15862 fits into an integer, return a float.
15863
d1e103b2
GM
15864 * eval.c (specbind): Remove references to
15865 keyword_symbols_constant_flag.
15866
15867 * data.c (keyword_symbols_constant_flag): Removed.
15868 (Fmakunbound, set_internal, syms_of_data): Remove references to
15869 keyword_symbols_constant_flag.
15870
15871 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
15872
214f877f
KH
158732000-02-23 Kenichi Handa <handa@etl.go.jp>
15874
15875 * syntax.c (multibyte_syntax_as_symbol): New variable.
15876 (syms_of_syntax): Declare it as a Lisp variable.
15877 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
15878 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
15879 nonzero, treat all multibyte characters as symbol.
52283633 15880 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 15881
130adcb7
EZ
158822000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15883
3cb65b0e 15884 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 15885 a deleted frame.
130adcb7 15886
17cbbf95
GM
158872000-02-21 Gerd Moellmann <gerd@gnu.org>
15888
15889 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
15890
15891 * xfns.c (x_window_to_frame, x_any_window_to_frame)
15892 (x_non_menubar_window_to_frame): Check the busy-cursor window.
15893
beb0bc36
DL
158942000-02-21 Dave Love <fx@gnu.org>
15895
15896 * frame.c (Vmouse_position_function): New variable.
15897 (Fmouse_position): Use it.
15898 (syms_of_frame): Install it.
15899
15900 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
15901
1d92afcd
GM
159022000-02-20 Gerd Moellmann <gerd@gnu.org>
15903
15904 * fileio.c (Finsert_file_contents): Unbind the binding of
15905 standard-output done by temp_output_buffer_setup.
329eed9f
GM
15906
15907 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
15908 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
15909 (specbind, unbind_to): Handle most common case of non-constant
15910 symbol with trivial value specially.
15911
15912 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
15913
18e21ce8 159142000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
15915
15916 * data.c (Fmake_variable_buffer_local): Doc fix.
15917 Init found_for_buffer to 0.
15918 (Fmake_variable_frame_local): If the variable has already
15919 been buffer-local, set the check_frame field.
15920
1d4311c3
EZ
159212000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
15922
15923 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
15924 produced for CODING_MODE_LAST_BLOCK requires.
15925
2dc95ddd
DL
159262000-02-18 Dave Love <fx@gnu.org>
15927
15928 * keyboard.c (echo_keystrokes): Remove declaration.
15929 (Vecho_keystrokes) New variable.
15930 (read_char, record_menu_key, read_key_sequence): Use it to allow
15931 use of float value.
15932 (syms_of_keyboard): Change Vecho_keystrokes declaration.
15933
15934 * lread.c: Undef feature selection macros before defining.
15935
f0930f35
GM
159362000-02-18 Gerd Moellmann <gerd@gnu.org>
15937
15938 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
15939 for symbols other than the symbol in question.
15940
e3d4de90
DL
159412000-02-17 Dave Love <fx@gnu.org>
15942
15943 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
15944
0b378936
GM
159452000-02-17 Gerd Moellmann <gerd@gnu.org>
15946
d621caf7
GM
15947 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
15948
0b378936
GM
15949 * alloc.c (enum mem_type): Compile unconditionally.
15950
3b451f74
EZ
159512000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
15952
15953 * xfaces.c (tty_defined_color): Don't return faulire indication
15954 for unspecified-fg and unspecified-bg pseudo-colors.
15955
10689a01
GM
159562000-02-17 Gerd Moellmann <gerd@gnu.org>
15957
1216f5e4
GM
15958 * alloc.c (mark_object): Don't mark symbol names in pure space.
15959 (gc_sweep): Don't unmark symbol names in pure space.
15960
15961 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
15962 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
15963 [GC_MARK_STACK]: New defines.
427ec082 15964 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
15965 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
15966
15967 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
15968
15969 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
15970 allocate_buffer instead of xmalloc.
15971
15972 * alloc.c (toplevel): Include setjmp.h.
15973 (PURE_POINTER_P): New define.
15974 (enum mem_type) [GC_MARK_STACK]: New enumeration.
15975 (Vdead) [GC_MARK_STACK]: New variable.
15976 (lisp_malloc): Add parameter TYPE, call mem_insert if
15977 GC_MARK_STACK is defined.
15978 (allocate_buffer): New function.
427ec082 15979 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
15980 (free_float) [GC_MARK_STACK]: Set type to Vdead.
15981 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
15982 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
15983 (MEM_NIL) [GC_MARK_STACK]: New define.
15984 (struct mem_node) [GC_MARK_STACK]: New structure.
15985 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
15986 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
15987 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
15988 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
15989 (mark_stack) [GC_MARK_STACK]: New functions.
15990 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
15991 (clear_marks): Removed.
15992 (gc_sweep): Set free conses' car, free floats' type, free
15993 symbols' function to Vdead. Use lisp_free to free buffers.
15994 (init_alloc_once): Initialize Vdead.
15995 (survives_gc_p): Return non-zero for pure objects.
15996
15997 * alloc.c: Add comments throughout the file.
15998
2503c8b1
GM
15999 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
16000 that unblocks alarms.
16001
8389e1e2
GM
16002 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
16003 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
16004 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
16005
10689a01 16006 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 16007
bfc17d18
KH
160082000-02-17 Kenichi Handa <handa@etl.go.jp>
16009
4a09dee0
KH
16010 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
16011 avoid infinite error signaling. Allocate sufficient memory for
16012 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 16013
2b927d02
SM
160142000-02-17 Stefan Monnier <monnier@cs.yale.edu>
16015
16016 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
16017 depends on the previous behavior.
16018
b49cb764
GM
160192000-02-16 Gerd Moellmann <gerd@gnu.org>
16020
16021 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
16022
99e95407
GM
160232000-02-15 Gerd Moellmann <gerd@gnu.org>
16024
16025 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
16026
16027 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 16028 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
16029 write(2).
16030
6ffd3cf7
RS
160312000-02-15 Richard M. Stallman <rms@gnu.org>
16032
16033 * data.c (set_internal): Don't make variable buffer-local
16034 if within a let-binding for the same buffer.
16035 (let_shadows_buffer_binding_p): New function.
16036
16037 * eval.c (specbind): For buffer-local value,
16038 record the current buffer also.
16039 (unbind_to): Cope with that change.
16040
cad53475
GM
160412000-02-15 Gerd Moellmann <gerd@gnu.org>
16042
16043 * window.c (Fsave_window_excursion): Doc fix.
16044
1aa963c8
SM
160452000-02-15 Stefan Monnier <monnier@cs.yale.edu>
16046
16047 * syntax.c (back_comment): Make sure we only consider comment-starters
16048 of the relevant style and return -1 in case of a failure to find the
16049 beginning of the comment.
16050 (Fforward_comment): If back_comment fails, go back to the position just
16051 after the comment-end.
16052 (scan_lists): Add comment describing a very minor bug.
16053
b9b84fd3
SM
160542000-02-14 Stefan Monnier <monnier@cs.yale.edu>
16055
16056 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
16057 `completion-regexp-list' in the docstring.
16058
3a28db80
DL
160592000-02-14 Dave Love <fx@gnu.org>
16060
16061 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
16062
fb4a568d
SM
160632000-02-14 Stefan Monnier <monnier@cs.yale.edu>
16064
16065 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
16066 to Emacs' syntax. Also fix the comment about set/not-set meanings
16067 since Emacs syntax is not the value 0 any more.
16068 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
16069 since it's now part of RE_SYNTAX_EMACS.
16070
1063ebb5
DL
160712000-02-12 Dave Love <fx@gnu.org>
16072
52283633 16073 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 16074
fb07a302
GM
160752000-02-12 Gerd Moellmann <gerd@gnu.org>
16076
16077 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
16078
aaf2320c
DL
160792000-02-12 Dave Love <fx@gnu.org>
16080
16081 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
16082
16083 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
16084 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
16085 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
16086
16087 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
16088
16089 * s/nextstep.h: Don't define HAVE_ALLOCA.
16090
16091 * config.in: Add vfork bits.
16092
eedf8bde
GM
160932000-02-12 Gerd Moellmann <gerd@gnu.org>
16094
16095 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
16096 unwind function to undo the effect of stopping atimers.
16097
52283633 16098 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
16099
16100 * atimer.c (stopped_atimers): New variable.
16101 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
16102 New functions.
16103
16104 * atimer.h (stop_other_atimers, run_all_atimers)
16105 (unwind_stop_other_atimers): Add function prototypes.
427ec082 16106
eedf8bde
GM
16107 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
16108
8476c2f8
KR
161092000-02-11 Ken Raeburn <raeburn@gnu.org>
16110
16111 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
16112 library may depend on jpeg.
16113 (atimer.o): Depends on atimer.c.
16114
0e85e4a3
KH
161152000-02-11 Kenichi Handa <handa@etl.go.jp>
16116
16117 * insdel.c (del_range_1): Call update_compositions.
16118 (del_range_both): Call update_compositions just once..
16119
97fa0cc8
DL
161202000-02-10 Dave Love <fx@gnu.org>
16121
16122 * xfns.c (create_frame_xic): Fix initialization of automatic
16123 aggregates for pcc.
16124
25566a3c
KH
161252000-02-09 Kenichi Handa <handa@etl.go.jp>
16126
16127 * ccl.c (CCL_MAKE_CHAR): New macro.
16128 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
16129 registers by CCL_MAKE_CHAR before calling translate_char.
16130 <CCL_TranslateCharacterConstTbl> Likewise.
16131
69da54ba
DL
161322000-02-08 Dave Love <fx@gnu.org>
16133
16134 * lread.c (__EXTENSIONS__): Define.
16135
f7136ee8
GM
161362000-02-08 Gerd Moellmann <gerd@gnu.org>
16137
16138 * puresize.h (BASE_PURESIZE): Increase to 650000.
16139
7768790b
EZ
161402000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
16141
16142 * msdos.c (XMenuActivate): Turn off the cursor after displaying
16143 the help message.
16144
38fd211b
EZ
161452000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
16146
16147 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
16148 md, mh, mb, mr, and me to the fake termcap entry.
16149
66e4690f
KR
161502000-02-06 Ken Raeburn <raeburn@gnu.org>
16151
16152 * sound.c (sound_cleanup): Don't call device close routine if the
16153 function pointer is null.
16154
a75dfea0
AI
161552000-02-06 Andrew Innes <andrewi@gnu.org>
16156
16157 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
16158 around image definitions and prototypes.
16159 (gamma_correct) [WINDOWSNT]: New prototype.
16160
16161 * w32term.c (x_make_frame_visible): Replace call to
16162 input_poll_signal with poll_for_input.
16163
16164 * window.c [WINDOWSNT]: Include w32term.h.
16165
16166 * xdisp.c [WINDOWSNT]: Include w32term.h.
16167
16168 * makefile.nt: Add dependencies on w32gui.h.
16169 (OBJ1): Include atimer.obj.
16170 ($(BLD)\atimer.obj): New dependency rule.
16171
16172 * w32.c (sigmask): New function (does nothing).
16173 (sigunblock): Ditto.
16174
16175 * frame.c [WINDOWSNT]: Include w32term.h.
16176
16177 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
16178
16179 * lread.c (syms_of_lread): Fix literal newlines.
16180
16181 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
16182 the string constant limit (2048 bytes) in MSVC.
16183 (main): Ditto.
16184
59ddecde
GM
161852000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
16186
52283633 16187 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
16188 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
16189 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
16190 dispatch the event.
16191
07590973
DL
161922000-02-04 Dave Love <fx@gnu.org>
16193
16194 * fileio.c: Remove some unused vars.
16195 (_GNU_SOURCE): Define (for euidaccess).
16196
16197 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
16198
16199 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
16200 gcpro1, gcpro2.
16201 (read_minibuf): Deal with allow_props correctly.
16202
649351f9
EZ
162032000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
16204
16205 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
16206
66e4690f 162072000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
16208
16209 * search.c (compile_pattern): If a cache entry has a nil regexp,
16210 fill in that entry instead of clobbering a previously cached
16211 string regexp.
16212
66e4690f 162132000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
16214
16215 * puresize.h (BASE_PURESIZE): Increase to 610000.
16216
d240a249
GM
162172000-02-02 Gerd Moellmann <gerd@gnu.org>
16218
16219 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
16220 can GC.
16221
ca91fb26
KH
162222000-02-02 Kenichi Handa <handa@etl.go.jp>
16223
25660570
KH
16224 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
16225 instead of incrementing ic directly.
16226 <CCL_WriteExprConst> Likewise.
16227 <ccl_set_expr>: Set ic to jump_address.
16228
ca91fb26
KH
16229 * fileio.c (e_write): Fix the handling of
16230 CODING_FINISH_INSUFFICIENT_SRC.
16231
2ede9689
DL
162322000-02-01 Dave Love <fx@gnu.org>
16233
16234 * editfns.c (Fpropertize): Doc fix.
16235
16236 * process.c (Fstart_process): Doc fix.
16237
16238 * eval.c: Fix various doc strings not to duplicate information
16239 from help-manyarg-func-alist.
16240
52283633 16241 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
16242
16243 * doc.c (Vhelp_manyarg_func_alist): New variable.
16244 (Fdocumentation): Use it.
16245 (syms_of_doc): Define it.
16246
b6680a0e
GM
162472000-01-31 Gerd Moellmann <gerd@gnu.org>
16248
2cb750ba
GM
16249 * xterm.c (xim_open_dpy): Remove unused local variable.
16250
52283633 16251 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
16252
16253 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
16254 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
16255
b6680a0e
GM
16256 * fns.c (sweep_weak_table): New function.
16257 (sweep_weak_hash_tables): Use it. Keep on marking until there
16258 is no more change.
16259
994c5afe
GM
162602000-01-30 Gerd Moellmann <gerd@gnu.org>
16261
16262 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
16263 that XTread_socket does not crash by trying to call XNoOp on a
16264 closed display.
427ec082 16265
f00276e3
JR
162662000-01-30 Jason Rumney <jasonr@gnu.org>
16267
16268 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
16269 Change selected_frame to SELECTED_FRAME ().
16270 (w32_console_mouse_position): Remove #ifndef MULE from around
16271 `insist' parameter.
16272
16273 * makefile.nt: Remove dosfns.obj.
16274
16275 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
16276
16277 * w32fns.c (w32_defined_color): Check for valid frame before
16278 applying gamma correction. Eliminate dependency on frame elsewhere.
16279 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
16280 (w32_to_x_font): Use resx and resy not height_in and width_in.
16281 (x_to_w32_font): Doc fix.
16282 (xlfd_strip_height): New function to strip and return font height.
16283 (w32_font_match): Compare height separately from rest of xlfd
16284 spec, using xlfd_strip_height.
16285
16286 * w32term.c (w32_term_init): Swap resx and height_in, resy and
16287 width_in. Use w32_defined_color in place of defined_color.
16288
16289 * w32faces.c: Merge more of DOS and X specifics in preparation for
16290 merge with xfaces.c.
16291 (defined_color): Remove FIXME comment.
16292 (tty_color_name): Provide w32-specific function.
16293 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
16294
16295 * w32console.c (turn_on_face, turn_off_face): Removed.
16296 (w32_face_attributes): New function.
16297 (Global_variables): Reduce scope where possible.
16298 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
16299 fill attribute.
16300 (hl_mode): Don't modify text attributes.
16301 (write_glyphs): Don't do anything if len <= 0. Use
16302 w32_face_attributes to get attributes for drawing. Write
16303 terminating codes using char_attr_normal.
16304 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
16305 (update_begin, update_end): Likewise.
16306 (vga_stdcolor_name): New function.
16307 (initialize_w32_display): Remove char_attr_reverse and char_attr.
16308 (Fset_screen_color): Remove char_attr_reverse.
16309
b08e8bb2
GM
163102000-01-29 Gerd Moellmann <gerd@gnu.org>
16311
16312 * xfns.c (xic_set_preeditarea): Take window parameter and
16313 window-relative pixel-positions.
16314
16315 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
16316 is its frame's selected window.
16317 (xim_instantiate_callback): Likewise.
16318
16319 * xfns.c (x_create_im): Removed.
16320 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
16321 (supported_xim_styles): Renamed from supported_styles.
16322 (best_xim_style): Renamed from best_style.
16323 (create_frame_xic): Renamed from xic_create_frame.
16324 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 16325
b08e8bb2
GM
163262000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
16327
16328 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
16329 our frames, call XFilterEvent with 2nd parameter `None'.
16330 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
16331 returning XBufferOverflow.
52283633 16332 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
16333 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
16334 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
16335 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
16336 (xim_initialize, xim_close)
16337 [HAVE_X_I18N && HAVE_X11R6]: New functions.
16338 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
16339 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
16340 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
16341
16342 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
16343 and `xim_styles'.
16344 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
16345 `xic_style' and `xic_xfs'.
16346 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
16347 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
16348 (FRAME_XIM): Removed.
16349
16350 * xfns.c (supported_styles): New variable.
16351 (DEFAULT_STYLE, DEFAULT_FONT): New macros
16352 (xic_create_xfontset, best_style, xic_create_frame)
16353 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
16354 (xic_set_xfontset): New functions.
16355
142e109c
DL
163562000-01-28 Dave Love <fx@gnu.org>
16357
16358 * s/irix6-5.h: Revert last change after change to irix5-0.h.
16359
16360 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
16361
b02786f9
GM
163622000-01-28 Gerd Moellmann <gerd@gnu.org>
16363
d060bc9f
GM
16364 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
16365 for *scratch* if it already existed.
16366
b02786f9
GM
16367 * emacs.c (USAGE): New macro.
16368 (main): Use it to display usage information.
16369
2c52d7e4
EZ
163702000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
16371
16372 Support for the menu-help feature:
16373
52283633 16374 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
16375
16376 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
16377 part of the line to the termscript file.
16378 (IT_clear_to_end): Clear the entire line, not just its beginning.
16379 (menu_help_message, prev_menu_help_message): New variables.
16380 (IT_menu_make_room): Make room for the help_text member.
16381 (IT_menu_display): New argument disp_help; all callers changed.
16382 If disp_help is non-zero, store the help text of the active menu
16383 item in menu_help_message.
16384 (XMenuAddPane): Initialize the help_text member to NULL.
16385 (XMenuAddSelection): New argument help_text. Store it in the
16386 XMenu structure.
16387 (XMenuActivate): New argument help_callback. If the value of
16388 menu_help_message has changed since the last time, display the
16389 menu help message text while waiting for the mouse to move. Clear
16390 the echo area before exiting.
16391 (XMenuDestroy): Free the help_text member.
16392
ffe0bcd1
GM
163932000-01-27 Gerd Moellmann <gerd@gnu.org>
16394
16395 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
16396 XMenuAddSelection. Pass help callback to XMenuActivate.
16397 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
16398
50dbd23f
EZ
163992000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
16400
16401 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
16402 and EMACS_SET_USECS.
16403
f5941bf8
GM
164042000-01-26 Dave Love <fx@gnu.org>
16405
6c67ddee
DL
16406 * editfns.c (Fchar_after, Fchar_before): Doc fix.
16407
f5941bf8
GM
16408 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
16409 an error may be signalled.
16410
9e49c990
GM
164112000-01-26 Gerd Moellmann <gerd@gnu.org>
16412
fc3cb460
GM
16413 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
16414 LD_SWITCH_SYSTEM inherited from irix5-0.h.
16415
9e49c990
GM
16416 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
16417
d0c037d8
GM
164182000-01-25 Gerd Moellmann <gerd@gnu.org>
16419
16420 * charset.c (Fstring): If there is a multibyte char among
16421 the args, always return a multibyte string.
16422
e12489f9
GM
164232000-01-25 Gerd Moellmann <gerd@gnu.org>
16424
16425 * sysdep.c (sys_select): Turn atimers off and on instead of
16426 recording and restoring old alarm handler
16427
16428 * process.c (toplevel): Include atimer.h.
16429 (create_process_1): Rewritten.
16430 (create_process): Use atimers instead of alarm.
16431 (wait_reading_process_input) [hpux]: Turn atimers off instead
16432 of turning off SIGALRM.
16433 (wait_reading_process_input): Turn off atimers instead off
16434 calling stop_polling.
16435
16436 * emacs.c (main): Call init_atimer.
16437
16438 * keyboard.c (toplevel): Include systime.h and atimer.h.
16439 (polling_for_input): Removed because unused.
16440 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
16441 (poll_timer): New variable.
16442 (poll_for_input, poll_for_input_1): New functions.
16443 (start_polling, stop_polling): Rewritten.
16444
16445 * keyboard.h (polling_for_input): Removed.
427ec082 16446
e12489f9
GM
16447 * atimer.h, atimer.c: New files.
16448
16449 * Makefile.in (obj): Add atimer.o.
16450 (atimer.o): New target.
16451
16452 * blockinput.h (pending_atimers): Add extern declaration.
16453 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
16454
16455 * lisp.h (popup_activated_flag): Add extern declaration.
16456
16457 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 16458 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
16459 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
16460
16461 * xterm.c (toplevel): Include atimer.h.
16462 (toolkit_scroll_bar_interaction): New variable.
16463 (Fxt_process_timeouts): Removed.
16464 (x_process_timeouts): New function.
16465 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
16466 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
16467 (x_make_frame_visible): Call poll_for_input_1 instead of
16468 input_poll_signal. Don't call alarm.
16469 (x_initialize): Install timer calling x_process_timeouts.
427ec082 16470
1e5279b9
DL
164712000-01-24 Dave Love <fx@gnu.org>
16472
6c67ddee 16473 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
16474 Don't use -cckr -- apparently not now necessary.
16475
edf6aeb8
EZ
164762000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
16477
16478 * msdos.c (IT_menu_display): Truncate long menu lines at the right
16479 screen boundary.
16480
9badad41
JR
164812000-01-23 Jason Rumney <jasonr@gnu.org>
16482
16483 * w32fns.c (w32_defined_color): Apply gamma correction before
16484 trying to map to the palette.
16485 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
16486 to w32_clear_rect.
16487
16488 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
16489 here. Callers changed to always pass real device context.
16490 (w32_draw_bitmap): Likewise.
16491 (w32_get_glyph_overhangs): Likewise.
52283633 16492 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
16493 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
16494 pfnSetScrollInfo and SetScrollRange.
16495 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
16496 back into MULE characters after decoding them.
16497 (x_get_glyph_face_and_encoding): Likewise.
16498 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
16499 GetCharABCWidthsW fails, since this is defined on Windows 9x.
16500 (x_produce_glyphs): Calculate per char metrics for a character
16501 that we know exists in default font when font_not_found_p is true.
16502
63bd786b
JR
165032000-01-22 Jason Rumney <jasonr@gnu.org>
16504
16505 * makefile.nt (intervals.obj, composite.obj): New modules.
16506 (composite.h): Added as dependency where appropriate.
16507
16508 * w32gui.h (XGCValue): New struct for emulating X GCs.
16509
16510 * w32term.h (XCharStruct): New struct for emulating X.
16511
16512 * w32console.c (turn_on_face, turn_off_face): New functions.
16513 (change_line_highlight): New prototype for new redisplay.
16514 (write_glyphs): Support multibyte text. Support faces.
16515
52283633 16516 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
16517
16518 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
16519 throughout. struct frame * in place of FRAME_PTR.
16520 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 16521 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
16522 (w32_get_arg): Renamed from x_get_arg.
16523 (Fx_file_dialog): New function.
16524 (w32_list_fonts): Check cache before asking system.
16525 (Vw32_enable_synthesized_fonts): New variable.
16526 (Vw32_enable_italics): Obsolete, removed.
16527
16528 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
16529 Use SELECTED_FRAME macro.
16530
16531 * w32menu.c: Add skeleton support for help strings on menus.
16532 (add_menu_item): Native checkbox and radio support added, but not
16533 yet enabled due to bugs.
16534 (push_menu_item): Add parameters type, selection and help.
16535 Callers updated.
16536 Formatting changes to reduce unnecessary diffs with xmenu.c.
16537
16538 * w32select.c (Fw32_set_clipboard_data): Update call to
16539 find_charset_in_str.
16540
16541 * w32term.c: Complete rewrite for new redisplay based on new
16542 xterm.c with necessary sections merged back in from old w32term.c.
16543
6ffd3cf7 165442000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
16545
16546 * data.c (set_internal): Further fix in same criterion.
16547
6ffd3cf7 165482000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
16549
16550 * data.c (set_internal): Fix the criteria for whether
16551 to swap out the old cached binding.
16552
60af03f1
DL
165532000-01-19 Dave Love <fx@gnu.org>
16554
16555 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
16556
f9be074f
KH
165572000-01-18 Kenichi Handa <handa@etl.go.jp>
16558
16559 * regex.c (re_compile_fastmap): While checking a range table for
16560 `charset', skip flag bits for a character class correctly.
16561
52b8dbf9
GM
165622000-01-17 Gerd Moellmann <gerd@gnu.org>
16563
d36100c9
GM
16564 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
16565
52283633 16566 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
16567
16568 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 16569 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
16570
16571 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
16572 MENU_ITEMS_ITEM_.*.
16573 (MENU_ITEMS_ITEM_HELP): New enumerator.
16574 (push_menu_item): Add parameter HELP. Record help in menu_items.
16575 (single_menu_item, single_submenu, list_of_items): Call
16576 push_menu_item with new parameter.
16577 (single_submenu): Set help string in widget value.
16578 (menu_highlight_callback): New function.
16579 (set_frame_menubar): Call lw_create_widget with new
16580 parameter list.
16581 (xmenu_show, xdialog_show): Ditto.
16582
3139018f
GM
165832000-01-13 Gerd Moellmann <gerd@gnu.org>
16584
16585 * sound.c (Fplay_sound): Improve doc string.
16586
83c8f461
RS
165872000-01-11 Richard M. Stallman <rms@gnu.org>
16588
16589 * lisp.h (set_internal): Enter the new arg.
16590
16591 * eval.c (specbind): Record buffer-local variables specially,
16592 indicating which buffer's binding was saved.
16593 (unbind_to): Restore buffer-local variables specially
16594 in the proper buffer.
16595
16596 * data.c (set_internal): New arg BUF.
427ec082 16597
83c8f461
RS
16598 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
16599 * data.c (Fset): Pass new arg to set_internal.
16600 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 16601
1fab1775
GM
166022000-01-11 Gerd Moellmann <gerd@gnu.org>
16603
52283633 16604 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 16605
83c8f461 166062000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
16607
16608 * minibuf.c (Ftry_completion): Doc fix.
16609
7a85e4df
GM
166102000-01-11 Gerd Moellmann <gerd@gnu.org>
16611
16612 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
16613 vector, too.
16614
a970dae4
AS
166152000-01-11 Andreas Schwab <schwab@suse.de>
16616
16617 * coding.c (code_convert_region): Initialize total_skip.
16618
c65d14ee
DL
166192000-01-08 Dave Love <fx@gnu.org>
16620
16621 * eval.c (Fuser_variable_p): Check customizability too.
16622
834938d2
GM
166232000-01-07 Gerd Moellmann <gerd@gnu.org>
16624
16625 * minibuf.c (Fcompleting_read): Doc fix.
16626
e0303cd6
GM
166272000-01-05 Gerd Moellmann <gerd@gnu.org>
16628
8a26744b
GM
16629 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
16630 -L /usr/local/lib.
16631
e0303cd6
GM
16632 * xfns.c (x_create_im): New function to set IM and IC of a frame.
16633 Check that input style is supported before trying to create an
16634 IC for it.
16635 (x_window): Call x_create_im.
427ec082 16636
2e471eb5
GM
166372000-01-04 Gerd Moellmann <gerd@gnu.org>
16638
560a7bd2
GM
16639 * xfns.c (current_gif_memory_src): New variable.
16640 (gif_load): Record the address of the current memory source
16641 in current_gif_memory_src.
16642 (gif_read_from_memory): Use current_gif_memory_src.
16643
f9ee84a3
GM
16644 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
16645 macros statement form.
16646
d1299cde
GM
16647 * sound.c (struct sound): Renamed from struct sound_file.
16648 (struct sound): Add members `data' and `header_size'.
16649 (enum sound_attr): Add SOUND_DATA.
16650 (current_sound, current_sound_device): Variables renamed from
16651 sound_file and sound_device.
16652 (parse_sound): Parse :data.
16653 (parse_sound): Handle sound data in strings.
16654 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 16655 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
16656 needed header size.
16657 (wav_play, au_play): Play sounds from string data.
16658
2e471eb5
GM
16659 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
16660
16661 * lisp.h: Add prototype for allocate_string_data.
16662
52283633 16663 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
16664
16665 * alloc.c (mark_buffer): Remove code in #if 0.
16666 (gc_sweep): Ditto.
16667 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
16668 (strings_consed): New variable.
16669 (allocate_string): Set it.
16670 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
16671 (Fmemory_use_counts): Return strings_consed. Use Flist.
16672
16673 * alloc.c: General cleanup in comments etc. Remove conditional
16674 compilation for `standalone'.
16675
16676 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
16677
16678 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
16679 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
16680 (DONT_COPY_FLAG): Removed.
16681 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
16682 (struct sdata, struct sblock): New
16683 (struct string_block): Rewritten.
16684 (STRINGS_IN_STRING_BLOCK): New macro.
16685 (oldest_sblock, current_sblock, total_strings, total_free_strings)
16686 (large_sblocks, string_blocks, string_free_list): New variables.
16687 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
16688 (init_strings): Rewritten.
16689 (allocate_string, allocate_string_data, compact_small_strings)
16690 (free_large_strings, sweep_strings): New functions.
16691 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
16692 (struct string_block_head, current_string_block)
16693 (first_string_block, large_string_blocks, STRING_FULLSIZE)
16694 (STRING_PAD): Removed.
16695 (make_uninit_multibyte_string, make_pure_string): Rewritten.
16696 (Fgarbage_collect): Don't set mark bit in large strings.
16697 (mark_object): Mark strings differently. Mark symbol names
16698 differently.
16699 (survives_gc_p): Test marked strings differently.
427ec082 16700 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
16701 symbol names.
16702 (compact_strings): Removed.
16703
42608ba8
EZ
167042000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
16705
16706 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
16707 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
16708
e0a09e1a
KH
167092000-01-04 Kenichi Handa <handa@etl.go.jp>
16710
dd9f0750 16711 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 16712 in a non-empty buffer.
dd9f0750 16713
3c0f3b15 16714 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 16715
44cd3ae5
GM
167162000-01-03 Gerd Moellmann <gerd@gnu.org>
16717
16718 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
16719 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
16720
16721 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
16722
c182a70f
EZ
167232000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16724
16725 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
16726 need to test for MSDOS frames.
16727
24480d5b
EZ
167282000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16729
16730 * dosfns.c (unspecified_colors): Remove.
16731 (msdos_stdcolor_idx): Use global variables unspecified_fg and
16732 unspecified_bg.
16733 (msdos_stdcolor_name): Return strings for unspecified fore- and
16734 back-ground colors.
16735
16736 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 16737 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
16738 (tty_color_name): Return Lisp strings for unspecified fore- and
16739 back-ground colors.
16740 (Finternal_set_lisp_face_attribute): Remove the special treatment
16741 for Qunspecified_{f,b}g.
52283633 16742 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 16743
047f434a
GM
167442000-01-03 Gerd Moellmann <gerd@gnu.org>
16745
16746 * xdisp.c (reseat_at_next_visible_line_start): Position before
16747 newline only if ending up on a newline.
16748 (next_element_from_ellipsis): Return success. Handle case of
52283633 16749 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
16750 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
16751 returns 0.
16752
d684c676
EZ
167532000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16754
16755 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
16756 (Fcolor_supported_p): Renamed from face-color-supported-p.
16757
5fe1d139
EZ
167582000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16759
16760 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
16761 list of colors renamed to tty-defined-color-alist.
16762 (tty_color_name): Pass the frame to tty-color-by-index.
16763 (realize_tty_face): tty-color-alist is now a function which
16764 accepts the frame as argument.
16765
52283633 16766 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 16767
816be8b8
EZ
167682000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16769
16770 * term.c (insert_glyphs): Pass glyph, not &glyph, to
16771 encode_terminal_code.
16772
b635321e
EZ
167732000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16774
16775 * dispnew.c (mode_line_string): Support termcap frames as well.
16776
9b784e96
GM
167772000-01-01 Gerd Moellmann <gerd@gnu.org>
16778
27189709
GM
16779 * syntax.c (Fforward_word): Undo previous change.
16780
16781 * editfns.c (Fconstrain_to_field): Don't constrain if
16782 inhibit-field-text-motion is non-nil.
16783 (Fline_beginning_position): Undo previous change.
16784 (Fline_end_position): Ditto.
16785
16786 * syntax.c (Fforward_word): Notice field boundaries only if
16787 inhibit-field-text-motion is nil.
16788
16789 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
16790
16791 * editfns.c (Vinhibit_field_text_motion): New variable.
16792 (inhibit-field-text-motion): New DEFVAR_LISP.
16793 (Fline_beginning_position, Fline_end_position): Notice field
16794 boundaries only if inhibit-field-text-motion is nil.
16795
45158a91
GM
16796 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
16797 All calls adjusted.
16798 (x_build_heuristic_mask): Likewise.
16799 (xbm_load_image_from_file): Change error output.
16800 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
16801 (gif_load, gs_load, x_kill_gs_process): Ditto.
16802
9b784e96
GM
16803 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
16804 color indices when accessing raster pixels.
63cec32f
GM
16805 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
16806 one of :file or :data.
16807 (enum pbm_keyword_index): Add PBM_DATA.
16808 (pbm_format): Add :data.
16809 (pbm_image_p): Allow either :file or :data.
16810 (pbm_read_file): New function.
16811 (pbm_scan_number): Rewritten to read from string.
16812 (pbm_load): Support :data.
9b784e96 16813
2cb085db 16814See ChangeLog.8 for earlier changes.
6922b018
KH
16815
16816;; Local Variables:
49b3bd82 16817;; coding: iso-2022-7bit
6922b018 16818;; End:
2a34a036 16819
505af245 16820 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
2a34a036
GM
16821 Copying and distribution of this file, with or without modification,
16822 are permitted provided the copyright notice and this notice are preserved.