*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
1 2002-05-31 Kenichi Handa <handa@etl.go.jp>
2
3 * coding.c (encode_coding_emacs_mule): Pay attention to raw-8-bit
4 chars.
5 (encode_coding_iso_2022): Likewise.
6 (encode_coding_sjis): Likewise.
7 (encode_coding_big5): Likewise.
8 (encode_coding_charset): Likewise.
9
10 2002-05-30 Kenichi Handa <handa@etl.go.jp>
11
12 * Makefile.in (lisp): Change chienese.elc to chinese.el. They are
13 not bytecompiled now.
14 (shortlisp): Likewise.
15
16 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978,
17 charset_jisx0208): New variables.
18 (Fdefine_charset_internal): Setup them if appropriate.
19 (init_charset_once): Initialize them to -1.
20
21 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978,
22 charset_jisx0208): Extern them.
23
24 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro
25 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
26 (CODING_ISO_FLAG_FULL_SUPPORT): Macro definition changed.
27 (setup_iso_safe_charsets): Fix arguemtns to Fassq.
28 (DECODE_DESIGNATION): Pay attention to CODING_ISO_FLAG_USE_ROMAN
29 and CODING_ISO_FLAG_USE_OLDJIS.
30 (ENCODE_ISO_CHARACTER_DIMENSION1): Likewise.
31 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
32 (encode_coding_iso_2022): Change the 1st arg to
33 ENCODE_ISO_CHARACTER to a variable.
34
35 2002-05-29 Kenichi Handa <handa@etl.go.jp>
36
37 * charset.h (enum define_charset_arg_index): New enums
38 charset_arg_min_code and charset_arg_max_code.
39 (struct charset): New member char_index_offset.
40
41 * charset.c (CODE_POINT_TO_INDEX): Take charset->char_index_offset
42 into account.
43 (INDEX_TO_CODE_POINT): Likewise.
44 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
45 args[charset_arg_max_code]. Setup charset.char_index_offset.
46 (syms_of_charset): Fix args to Fdefine_charset_internal.
47
48 2002-05-27 Dave Love <fx@gnu.org>
49
50 * coding.c (decode_coding_utf_8): Reject overlong sequences.
51
52 2002-05-26 Dave Love <fx@gnu.org>
53
54 * coding.c: Doc fixes.
55 (Fcoding_system_aliases): Fix return value.
56 (Qmac): Remove (duplicated) definition.
57
58 2002-05-25 Dave Love <fx@gnu.org>
59
60 * charset.c (Fcharset_priority_list, Fset_charset_priority): New
61 functions.
62
63 * character.c (Fstring): Doc fix.
64
65 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
66
67 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
68 ids.
69 (font-encoding-alist): Doc fix.
70
71 2002-05-24 Dave Love <fx@gnu.org>
72
73 * term.c (costs_set): Declare static, non-initialized for pcc.
74 (encode_terminal_code): Remove ensued var.
75
76 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
77 for K&R.
78
79 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
80
81 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
82 (suffixes): Moved out of make_subsidiaries for K&R.
83
84 * charset.c (map_charset_chars): Fix c_function declaration for
85 K&R.
86
87 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
88
89 2002-05-23 Dave Love <fx@gnu.org>
90
91 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
92
93 * category.c (Fmodify_category_entry): Doc fix. Remove unused
94 vars.
95
96 2002-05-23 Yong Lu <lyongu@asia-infonet.com>
97
98 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
99
100 * coding.c (Fdefine_coding_system_internal): Fix previous change.
101 (decode_coding_charset): Workaround for the bug of GCC 2.96.
102
103 2002-05-23 Kenichi Handa <handa@etl.go.jp>
104
105 * Makefile.in (lisp): Change cyrillic.elc to cyrillic.el,
106 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
107 (shortlisp): Likewise.
108
109 2002-05-22 Kenichi Handa <handa@etl.go.jp>
110
111 * coding.c (decode_coding_charset): Adjusted for the change of
112 Fdefine_coding_system_internal.
113 (Fdefine_coding_system_internal): For a coding system of
114 `charset' type, store a list of charset IDs in
115 `charset_attr_charset_valids' element of coding attributes.
116
117 * charset.c (Fmake_char): Fix previous change.
118
119 2002-05-21 Kenichi Handa <handa@etl.go.jp>
120
121 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
122 (emacs_mule_char): New arg src. Delete arg `composition'. Caller
123 changed. Handle 2-byte and 3-byte charsets correctly.
124 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from
125 DECODE_EMACS_MULE_COMPOSITION_RULE. Caller changed.
126 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
127 (DECODE_EMACS_MULE_21_COMPOSITION): Call
128 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
129 sequence.
130 (decode_coding_emacs_mule): Handle composition correctly. Rewind
131 `src' and `consumed_chars' correctly before calling
132 emacs_mule_char.
133 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
134 and alt&rule composition.
135 (decode_coding_iso_2022): Handle composition correctly.
136 (init_coding_once): Setup emacs_mule_bytes for private charsets.
137
138 * charset.c (Fdefine_charset_internal): Fix bug for the case of
139 re-defining a charset. If the charset has :emacs-mule-id, setup
140 emacs_mule_bytes.
141 (Fmake_char): If CODE1 is nil, use the minimum code of the
142 charset.
143
144 2002-05-20 Kenichi Handa <handa@etl.go.jp>
145
146 * coding.c (encode_coding_iso_2022): If coding requires safe
147 encoding, produce a character specified by
148 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
149 (encode_coding_sjis): Likewise.
150 (encode_coding_big5): Likewise.
151 (encode_coding_charset): Likewise.
152
153 2002-05-17 Dave Love <fx@gnu.org>
154
155 * xterm.c (XSetIMValues): Declare.
156
157 * process.c: Conditionally include sys/wait.h, pty.h.
158
159 * print.c (print_object): Fix print format for 64-bit
160 systems.
161
162 * keyboard.c (modify_event_symbol): Fix print format for 64-bit
163 systems.
164
165 * buffer.c (emacs_strerror): Declare.
166 (MMAP_ALLOCATED_P, mmap_enlarge, syms_of_buffer): Import changes
167 from trunk.
168
169 * fontset.c (Fclear_face_cache): Declare.
170 (accumulate_font_info): Commented-out (unused).
171 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
172 variables.
173
174 * character.h (string_escape_byte8): Declare.
175
176 * charset.c (load_charset_map, load_charset_map_from_file): Remove
177 unused vars.
178 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
179 (Fmap_charset_chars): Doc fix.
180
181 * coding.c (Vchar_coding_system_table, Qchar_coding_system):
182 Removed.
183 (Fset_coding_system_priority, Fset_coding_system_priority)
184 (Fdefine_coding_system_internal): Doc fix.
185
186 2002-05-16 Dave Love <fx@gnu.org>
187
188 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
189
190 2002-05-16 Kenichi Handa <handa@etl.go.jp>
191
192 * character.c (string_escape_byte8): Make multibyte string with
193 correct size.
194
195 * charset.c (Fmake_char): Delete unnecessary code.
196
197 2002-05-14 Kenichi Handa <handa@etl.go.jp>
198
199 * xfns.c (x_encode_text): Allocate coding.destination here, and
200 call encode_coding_object with dst_object Qnil.
201
202 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
203 multibyte form correctly.
204
205 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
206 against Vfont_encoding_alist.
207
208 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
209 handling of charset list.
210 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
211 (decode_coding_object): Move point to coding->dst_pos before
212 calling post-read-conversion function.
213 (encode_coding_object): Give correct arguments to
214 pre-write-conversion. Ignore the return value of
215 pre-write-conversion function. Pay attention to the case that
216 pre-write-conversion changes the current buffer. If dst_object is
217 Qt, even if coding->src_bytes is zero, allocate at least one byte
218 to coding->destination.
219
220 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
221
222 * charset.c (Fmake_char): Make it more backward compatible.
223 (Fmap_charset_chars): Fix docstring.
224
225 2002-05-13 Dave Love <fx@gnu.org>
226
227 * coding.c: Doc fixes.
228 (Fdefine_coding_system_alias): Use names, not symbols, in
229 coding-system-alist.
230
231 2002-05-13 Kenichi Handa <handa@etl.go.jp>
232
233 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
234 of calling free_realized_face.
235
236 2002-05-10 Yong Lu <lyongu@asia-infonet.com>
237
238 * charset.c (load_charset_map): Fix previous change.
239 (read_hex): Don't treat SPC as a comment starter.
240 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return
241 -1.
242 (Fdecode_char): Fix typo.
243
244 2002-05-10 Kenichi Handa <handa@etl.go.jp>
245
246 * charset.h (struct charset): New member `code_space_mask'.
247
248 * coding.c (coding_set_source): Delete the local variable
249 beg_byte.
250 (encode_coding_charset): Delete the local variable charset.
251 (Fdefine_coding_system_internal): Likewise.
252 (Fdefine_coding_system_internal): Setup
253 attrs[coding_attr_charset_valids] correctly.
254
255 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
256 member to check if CODE is valid or not.
257 (Fdefine_charset_internal): Initialize `code_space_mask' member.
258 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
259 is within the range of charset->min_code and carset->max_code.
260
261 2002-05-09 Dave Love <fx@gnu.org>
262
263 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
264
265 * dispextern.h (generate_ascii_font): Fix return type.
266
267 * xfaces.c (generate_ascii_font): Fix arg declaration.
268
269 * coding.c (coding_inherit_eol_type)
270 (Fset_terminal_coding_system_internal)
271 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
272
273 2002-05-08 Kenichi Handa <handa@etl.go.jp>
274
275 * coding.c (decode_coding_charset, encode_coding_charset): Handle
276 multiple charsets correctly.
277
278 2002-05-07 Kenichi Handa <handa@etl.go.jp>
279
280 * search.c (boyer_moore): Fix handling of mulitbyte character
281 translation.
282
283 * xdisp.c (display_mode_element): When the variable `elt' is
284 changed, update `this' and `lisp_string'.
285
286 2002-05-07 Kenichi Handa <handa@etl.go.jp>
287
288 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
289
290 * callproc.c (Fcall_process): Be sure to give the current buffer
291 to decode_coding_c_string. Update PT and PT_BYTE after the
292 insertion.
293
294 * charset.c (struct charset_map_entries): New struct.
295 (load_charset_map): Renamed from parse_charset_map. New args
296 entries and n_entries. Caller changed.
297 (load_charset_map_from_file): Renamed from load_charset_map.
298 Caller changed. New arg control_flag. Call load_charset_map at
299 the tail.
300 (load_charset_map_from_vector): New function.
301 (Fdefine_charset_internal): Setup charset.compact_codes_p.
302 (encode_char): If the charset is compact, change a character index
303 to a code point.
304
305 * coding.c (coding_alloc_by_making_gap): Check the case that the
306 source and destination are the same correctly.
307 (decode_coding_raw_text): Set coding->consumed_char and
308 coding->consumed to 0.
309 (produce_chars): If coding->chars_at_source is nonzero, update
310 coding->consumed_char and coding->consumed before calling
311 alloc_destination.
312 (Fdefine_coding_system_alias): Register ALIAS in
313 Vcoding_system_alist.
314 (syms_of_coding): Define `no-convesion' coding system at the tail.
315
316 * fileio.c (Finsert_file_contents): Set coding_system instead of
317 val. If the current buffer is multibyte, always call
318 decode_coding_gap.
319
320 * xfaces.c (try_font_list): Give higher priority to fontset's
321 family than face's family.
322
323 2002-04-18 Kenichi Handa <handa@etl.go.jp>
324
325 * callproc.c (Fcall_process): Be sure to give the current buffer
326 to decode_coding_c_string.
327
328 * xfaces.c (try_font_list): Give a family specified in a fontset
329 higher priority than a family specified in a face.
330
331 2002-04-09 Kenichi Handa <handa@etl.go.jp>
332
333 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
334 Fix arguments to insert_from_buffer.
335
336 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
337
338 2002-03-11 Kenichi Handa <handa@etl.go.jp>
339
340 * coding.c (produce_chars): Set the variable `multibytep' correctly.
341 (decode_coding_gap): Set coding->dst_multibyte correctly.
342
343 2002-03-07 Kenichi Handa <handa@etl.go.jp>
344
345 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
346 (decode_coding_utf_16): Fix converting high and low bytes to
347 code-point.
348 (encode_coding_utf_16): Substitute coding->default_char for
349 non-Unicode characters.
350 (decode_coding): Don't call record_insert here.
351 (setup_coding_system): Initialize `surrogate' of
352 coding->spec.utf_16 to 0.
353 (EMIT_ONE_BYTE): Fix for multibyte case.
354
355 * insdel.c (insert_from_gap): Call record_insert.
356
357 2002-03-04 Kenichi Handa <handa@etl.go.jp>
358
359 * casefiddle.c (casify_region): Fix multibyte case.
360
361 * character.c (c_string_width): Add return type `int'.
362 (char_string_with_unification): Arg ADVANCED deleted.
363
364 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
365 (CHAR_STRING): Adjusted for the change of
366 char_string_with_unification.
367 (CHAR_STRING_ADVANCE): Make it do-while statement.
368
369 * chartab.c (sub_char_table_set_range): Optimized for the case
370 DEPTH == 3. Add workaround code for a GCC optimization bug.
371
372 * charset.c (parse_charset_map): Remove an unused variable.
373
374 * coding.c: Delete unused variables.
375
376 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
377 earlier. If inserted is zero and the coding system doesn't
378 require flushing, don't call decode_coding_gap.
379
380 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
381
382 2002-03-01 Kenichi Handa <handa@etl.go.jp>
383
384 The following changes are for using Unicode as an internal
385 character model, and use UTF-8 format for buffer/string
386 representation.
387
388 * .gdbinit (xchartable): Adjusted for the change of char table
389 structure.
390 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
391
392 * Makefile.in (obj): Add character.o and chartab.o.
393 (lisp, shortlisp): Remove utf-8.elc:
394 (*.o): For many files, change dependency on charset.h to
395 character.h, and add dependency on character.h.
396 (character.o, chartab.o): New targets.
397
398 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c,
399 doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c,
400 w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
401 of "charset.h".
402
403 * dired.c, filelock.c: Include "character.h".
404
405 * alloc.c: Include "character.h" instead of "charset.h".
406 (Fmake_char_table): Moved to chartab.c.
407 (make_sub_char_table): Likewise.
408 (syms_of_alloc): Remove defsubr for Smake_char_table.
409
410 * buffer.c: Include "character.h" instead of "charset.h", don't
411 include "coding.h".
412 (Fset_buffer_multibyte): Adjuted for UTF-8.
413
414 * buffer.h: EXFUN Fbuffer_live_p.
415
416 * callproc.c: Include "character.h" instead of "charset.h".
417 (Fcall_process): Big change for the new code-conversion APIs.
418
419 * casetab.c: Include "character.h" instead of "charset.h".
420 (set_canon, set_identity, shuffle): Adjusted for the new
421 map_char_table spec.
422 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
423 accessing the char table structure.
424
425 * chartab.c: New file that implements char table.
426
427 * category.c: Include "character.h".
428 (copy_category_entry): New function.
429 (copy_category_table): Call map_char_table and copy_category_entry.
430 (Fmake_category_table): Initialize all top-vel slots.
431 (char_category_set): New function.
432 (modify_lower_category_set): Deleted.
433 (Fmodify_category_entry): Call char_table_ref_and_range.
434
435 * category.h (CATEGORY_SET): Just call char_category_set.
436
437 * ccl.c: Include "character.h".
438 (Qccl, Qcclp): New variables.
439 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
440 it's less than 256.
441 (CCL_WRITE_MULTIBYTE_CHAR): Deleted.
442 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjusted for the change of SRC
443 and DST type.
444 (ccl_driver): Types of arguments changed. Code adjusted for that.
445 (Fccl_execute, Fccl_execute_on_string): Adjusted for the change of
446 ccl_driver.
447 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
448
449 * ccl.h (struct ccl_program): Members eol_type and multibyte
450 deleted. New members src_multibyte, dst_multibyte, consumed, and
451 produced.
452 (struct ccl_spec): Members decoder and encoder deleted. New
453 memeber ccl.
454 (CODING_SPEC_CCL_PROGRAM): New macro.
455 (ccl_driver): Prototype updated.
456 (Qccl, Qcclp, Fccl_program_p): Extern them.
457 (CHECK_CCL_PROGRAM): New macro.
458
459 * character.c, character.h, chartab.c: New files.
460
461 * charset.c: Mostly re-written. Character and multibyte sequence
462 handling codes are moved to character.c.
463
464 * charset.h: Mostly re-written. Character and multibyte sequence
465 handling codes are moved to character.h.
466
467 * coding.c, coding.h: Mostly re-written.
468
469 * composite.c: Include "character.h" instead of "charset.h".
470 (CHAR_WIDTH): Moved to character.h.
471 (HASH_KEY, HASH_VALUE): Deleted.
472
473 * composite.h (enum composition_method): Order of enumeration
474 symbols changed.
475
476 * data.c: Include "character.h" instead of "charset.h".
477 (Faref): Call CHAR_TABLE_REF for a char table.
478 (Faset): Call CHAR_TABLE_SET for a char table.
479
480 * dispextern.h (free_realized_face, check_face_attribytes,
481 generate_ascii_font): Extern them.
482 (free_realized_multibyte_face): Extern deleted.
483
484 * disptab.h (DISP_CHAR_VECTOR): Adjusted for the change of char
485 table structure.
486
487 * editfns.c: Include "character.h" instead of "charset.h".
488 (Fchar_to_string): Always call CHAR_STRING.
489
490 * emacs.c (main): Call init_charset_once, init_charset,
491 syms_of_chartab, and syms_of_character.
492
493 * fileio.c: Include "character.h" instead of "charset.h".
494 (Finsert_file_contents): Big change for the new code-conversion
495 API.
496 (choose_write_coding_system): Likewise.
497 (Fwrite_region): Likewise.
498 (build_annotations_2): Deleted.
499 (e_write): Big change for the new code-conversion API.
500
501 * fns.c: Include "character.h" instead of "charset.h".
502 (copy_sub_char_table): Moved to chartab.c.
503 (Fcopy_sequence): Call copy_char_table for a char table.
504 (concat): Delete codes calling count_multibyte.
505 (string_char_to_byte): Adjusted for the new multibyte form.
506 (string_byte_to_char): Likewise.
507 (internal_equal): Adjusted for the change of char table structure.
508 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent,
509 Fchar_table_extra_slot, Fset_char_table_extra_slot,
510 Fchar_table_range, Fset_char_table_range, Fset_char_table_default,
511 char_table_translate, optimize_sub_char_table,
512 Foptimize_char_table, map_char_table, Fmap_char_table): Moved to
513 chartab.c.
514 (char_table_ref_and_index): Deleted.
515 (HASH_KEY, HASH_VALUE): Moved to lisp.h.
516 (Fmd5): Call preferred_coding_system instead of accessing
517 Vcoding_category_list. Adjusted for the new code-conversion API.
518 (syms_of_fns): Defsubr for char table related functions moved to
519 chartab.c.
520
521 * fontset.c: Mostly re-written.
522
523 * fontset.h (struct font_info): Type of the member encoding_type
524 changed.
525 (enum FONT_SPEC_INDEX): New enum.
526 (fontset_font_pattern, fs_load_font): Prototype updated.
527 (FS_LOAD_FONT): Adjusted for the change of fs_load_font.
528
529 * indent.c: Include "character.h" instead of "charset.h".
530 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of
531 WIDTH_BY_CHAR_HEAD.
532
533 * insdel.c: Include "character.h" instead of "charset.h".
534 (copy_text): Don't refer to Vnonascii_translation_table.
535 (insert_from_gap): New function.
536
537 * keyboard.c: Include "character.h" instead of "charset.h".
538 (command_loop_1): Never call direct_output_forward_char before
539 a non-ASCII character.
540 (read_char): If Vkeyboard_translate_table is a char table, always
541 translated a character.
542
543 * keymap.c: Include "character.h".
544 (store_in_keymap): Handle the case that IDX is a cons.
545 (Fdefine_key): Handle the case that KEY is a cons and the car part
546 is also a cons (range).
547 (push_key_description): Adjusted for the new character code.
548 (describe_vector): Call describe_char_table for a char table.
549 (describe_char_table): New function.
550
551 * keymap.h (describe_char_table): Extern it.
552
553 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
554 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
555 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS,
556 SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
557 Deleted.
558 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjusted for the new char table
559 structure.
560 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
561 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2,
562 CHARTAB_SIZE_BITS_3): New macros.
563 (chartab_size): Extern it.
564 (struct Lisp_Char_Table): Re-designed.
565 (struct Lisp_Sub_Char_Table): New structure.
566 (HASH_KEY, HASH_VALUE): Moved from fns.c.
567 (CHARACTERBITS): Defined as 22.
568 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the above change.
569 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
570 (GC_SUB_CHAR_TABLE_P): New macro.
571 (Fencode_coding_string, Fdecode_coding_string): EXFUN Updated.
572 (code_convert_string_norecord): Extern deleted.
573 (init_character_once, syms_of_character, init_charset,
574 syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
575
576 * lread.c: Include "character.h".
577 (read_multibyte): New arg NBYTES.
578 (read_escape): The meaning of returned *BYTEREP changed.
579 (to_multibyte): Deleted.
580 (read1): Adjuted the handling of char table and string.
581
582 * print.c: Include "character.h" instead of "charset.h".
583 (print_string): Convert 8-bit raw bytes to octal form by
584 string_escape_byte8.
585 (print_object): Adjusted for the new multibyte form. Print 8-bit
586 raw bytes always in octal form. Handle sub char table correctly.
587
588 * process.c: Include "character.h" instead of "charset.h".
589 (read_process_output): Adjusted for the new code-conversion API.
590 (send_process): Likewise.
591
592 * puresize.h (BASE_PURESIZE): Increased.
593
594 * regex.c: Include "character.h" instead of "charset.h".
595 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
596 (regex_compile): Accept a range whose starting and ending
597 character have different leading bytes.
598 (analyse_first): Adjusted for the above change.
599
600 * search.c: Include "character.h" instead of "charset.h".
601 (search_buffer, boyer_moore): Adjusted for the new multibyte form.
602 (Freplace_match): Adjusted for the change of
603 multibyte_char_to_unibyte.
604
605 * syntax.c: Include "character.h" instead of "charset.h".
606 (syntax_parent_lookup): Deleted.
607 (Fmodify_syntax_entry): Accept a cons as CHAR.
608 (skip_chars): Adjusted for the new multibyte form.
609 (init_syntax_once): Call char_table_set_range instead of directly
610 accessing the structure of a char table.
611
612 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
613 (SYNTAX_ENTRY_FOLLOW_PARENT): Macro deleted.
614 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
615 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
616
617 * term.c: Include "buffer.h" and "character.h".
618 (encode_terminal_code): Adjusted for the new code-conversion API.
619 (write_glyphs): Likewise.
620 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
621
622 * w32term.c (x_new_font): Adjusted for the change of FS_LOAD_FONT.
623
624 * xdisp.c: Include "character.h".
625 (get_next_display_element): Adjusted for the new multibyte form.
626 (disp_char_vector): Adjusted for the new char table structure.
627 (decode_mode_spec_coding): Adjusted for the new structure of
628 coding system.
629 (decode_mode_spec): Adjusted for the new code-conversion API.
630
631 * xfaces.c: Include "character.h" instead of "charset.h".
632 (load_face_font): Adjusted for the change of choose_face_font and
633 FS_LOAD_FONT.
634 (generate_ascii_font): New function.
635 (set_lface_from_font_name): Adjusted for the change of
636 FS_LOAD_FONT.
637 (set_font_frame_param): Adjusted for the change of
638 choose_face_font.
639 (free_realized_face): Make it public.
640 (free_realized_faces_for_fontset): Renamed from
641 free_realized_multibyte_face. Free also faces realized for ASCII.
642 (choose_face_font): Argments changed. Adjusted for the change of
643 fontset_font_pattern and FS_LOAD_FONT.
644
645 * xfns.c: Include "character.h".
646 (x_encode_text): Adjusted for the new code-conversion API.
647
648 * xselect.c: Don't include "charset.h".
649 (selection_data_to_lisp_data): Adjusted for the new code
650 covnersion API.
651
652 * xterm.c: Include "character.h".
653 (x_encode_char): New argument CHARSET. Caller changed.
654 (x_get_char_face_and_encoding): Call ENCODE_CHAR instead of
655 SPLIT_CHAR.
656 (x_get_glyph_face_and_encoding): Likewise.
657 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
658 CHAR_WIDTH instead of CHARSET_WIDTH.
659 (XTread_socket): Adjusted for the new code-conversion API.
660 (x_new_font): Adjusted for the change of FS_LOAD_FONT.
661 (x_load_font): Adjusted for the change of struct font.
662
663 2002-02-26 Kim F. Storm <storm@cua.dk>
664
665 The following changes add a new Vminibuf_selected_window variable
666 which is similar to Vminibuf_scroll_window, but which is only set
667 on entry to the minibuffer (from a non-minibuffer window):
668
669 * window.c: (Vminibuf_selected_window): New variable.
670 (struct save_window_data): New member minibuf_selected_window.
671 (Fset_window_configuration): Restore Vminibuf_selected_window.
672 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
673 Set minibuf_scroll_window member to nil if minibuf_level is 0.
674 (compare_window_configurations): Compare minibuf_selected_window.
675
676 * window.h: (Vminibuf_selected_window): Declare extern.
677
678 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
679 entry to minibuffer or on entry from a non-minibuffer window.
680
681 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
682 Vminibuf_selected_window instead of Vminibuf_scroll_window.
683
684 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
685 instead of Vminibuf_scroll_window when deciding in which window
686 the region should be highlighted. Consequently, the region remains
687 highlighteded even when a completion buffer is also displayed.
688
689 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
690
691 * fileio.c (Fsubstitute_in_file_name): Fix the change from
692 2002-02-08.
693
694 * xselect.c (Qcompound_text_with_extensions): Renamed from
695 Qcompound_text_no_extensions.
696 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
697
698 2002-02-26 Juanma Barranquero <lektu@terra.es>
699
700 * w32proc.c (syms_of_ntproc): Doc fix.
701
702 2002-02-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
703
704 * intervals.h: Include "dispextern.h" unconditionally.
705
706 2002-02-24 Jason Rumney <jasonr@gnu.org>
707
708 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
709 and disp-table.elc.
710 (lisp): Add emacs-lisp/backquote.elc.
711
712 2002-02-24 Kim F. Storm <storm@cua.dk>
713
714 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
715 The validation of the event type was too strict as it didn't
716 allow string events; buffer names are used in bindings for
717 menu-bar-select-buffer (see `menu-bar-update-buffers').
718
719 2002-02-23 Kim F. Storm <storm@cua.dk>
720
721 The following changes rework my patch of 2002-02-06 which
722 added command remapping by entering the commands directly into
723 the keymaps. Now, command remapping uses an explicit `remap'
724 prefix in the keymaps, i.e. [remap COMMAND].
725
726 * keymap.c (Qremap, remap_command_vector): New variables.
727 (is_command_symbol): Removed function.
728 (Fdefine_key): No longer accept a symbol for KEY. Added
729 validation of [remap COMMAND] argument for KEY. The DEF is no
730 longer required to be a symbol when remapping a command.
731 (Fremap_command): New function to remap command through keymaps.
732 (Flookup_key): Perform command remapping initiated by
733 Fremap_command directly for speed.
734 (Fkey_binding): Use Fremap_command for command remapping.
735 (where_is_internal): Handle new command remapping representation.
736 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
737 staticpro them. Defsubr Fremap_command.
738
739 * keymap.h (Fremap_command): Declare extern.
740 (is_command_symbol): Remove extern.
741
742 * keyboard.c (command_loop_1): Use Fremap_command for command
743 remapping; now try command remapping for all symbols.
744
745 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
746
747 * coding.h (run_pre_post_conversion_on_str): Add prototype.
748
749 2002-02-23 Jason Rumney <jasonr@gnu.org>
750
751 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
752 on the string before encoding it.
753 (Fw32_get_clipboard_data): Run post-read-conversion on the string
754 after decoding it.
755
756 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
757
758 2002-02-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
759
760 * w32term.c (enter_timestamp): Remove unused static variable to
761 prevent warning.
762
763 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
764
765 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
766
767 * w16select.c (Fw16_get_clipboard_data): Fix last change.
768
769 * xselect.c (selection_data_to_lisp_data): Fix last change.
770
771 2002-02-22 Jason Rumney <jasonr@gnu.org>
772
773 * w32term.h (struct w32_output): New member menu_command_in_progress.
774
775 * w32menu.c (menubar_selection_callback): Free the menu and
776 clear the menu_command_in_progress flag.
777
778 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
779 (menu_free_timer): New variable.
780 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
781 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
782 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
783 menu command is in progress.
784 <WM_COMMAND>: Set the menu_command_in_progress flag. Kill
785 any menu_free_timer that is running.
786
787 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
788 Call ExtTextOutA rather than ExtTextOut.
789
790 2002-02-22 Eli Zaretskii <eliz@gnu.org>
791
792 * puresize.h (BASE_PURESIZE): Increase to 755000.
793
794 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
795
796 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
797 on the string before encoding it.
798 (Fw16_get_clipboard_data): Run post-read-conversion on the string
799 after decoding it.
800
801 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
802
803 Support for ICCCM Extended Segments in X selections:
804
805 * xselect.c <Qcompound_text_no_extensions>: New variable.
806 (syms_of_xselect): Intern and staticpro it.
807 (selection_data_to_lisp_data): Run post-read-conversion on decoded
808 selection text.
809 (lisp_data_to_selection_data): If next-selection-coding-system is
810 compound-text-no-extensions, set the type of selection to be
811 compound-text.
812
813 * xterm.h (x_encode_text): Update prototype.
814
815 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
816 callers changed. If SELECTIONP is non-zero, run the
817 pre-write-conversion function before encoding the selection text.
818
819 2002-02-21 Kim F. Storm <storm@cua.dk>
820
821 * frame.c (syms_of_frame): Change mouse-highlight default to t.
822
823 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]: Corrected
824 composing of language-change event.
825
826 2002-02-20 Kim F. Storm <storm@cua.dk>
827
828 * keyboard.c (menu_bar_items): Don't include keymap or local-map
829 bindings at PT when building menu (the menu is not updated often
830 enough for this to work reliable).
831 (tool_bar_items): Likewise.
832 (current_active_maps): Removed unused (and buggy) function.
833
834 2002-02-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
835
836 * xfns.c (gif_load): Use correct width and height for GIF images.
837
838 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
839
840 * floatfns.c (Fatan): Accept an optional second arg and call
841 atan2 if passed 2 args.
842
843 2002-02-18 Jason Rumney <jasonr@gnu.org>
844
845 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
846
847 2002-02-17 Jason Rumney <jasonr@gnu.org>
848
849 * w32term.c (x_autoselect_window_p): New variable.
850 (syms_of_w32term): DEFVAR_BOOL and initialize it.
851 (note_mouse_movement): Use it.
852
853 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
854
855 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
856
857 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
858 New variables.
859 (syms_of_w32fns): Intern and staticpro them.
860 (x_frame_parms) <"fullscreen">: New parameter.
861 (x_fullscreen_move, x_set_fullscreen): New functions.
862 (x_set_frame_parameters): Support Qfullscreen.
863 (x_real_positions): Save x/y_pixels_diff frame params.
864 (x_figure_window_size): Support full-screen frames.
865 (Fx_create_frame): Default the fullscreen parameter.
866
867 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
868 (x_fullscreen_adjust): New functions.
869 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
870 fullscreen. Call x_check_fullscreen_move, and set the
871 want_fullscreen member of output_data.w32
872 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
873
874 * w32term.h: New enum for FULLSCREEN_* constants.
875 (struct w32_output): New members want_fullscreen, x_pixels_diff,
876 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
877 (x-fullscreen-adjust): New prototype.
878
879 2002-02-17 Kim F. Storm <storm@cua.dk>
880
881 * frame.c: (Vmouse_highlight): New variable.
882 (syms_of_frame): DEFVAR_LISP it.
883
884 * frame.h: (Vmouse_highlight): Declare extern.
885
886 * xterm.h (struct x_display_info): Add mouse_face_hidden.
887
888 * xterm.c (disable_mouse_highlight): Removed variable.
889 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
890 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
891 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
892 and on after keyboard input.
893 (x_term_init): Initialize mouse_face_hidden.
894
895 * msdos.h (struct display_info): Add mouse_face_hidden.
896
897 * msdos.c (disable_mouse_highlight): Removed variable.
898 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
899 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
900 (internal_terminal_init): Initialize mouse_face_hidden.
901 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
902 and on after keyboard input.
903
904 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
905
906 * w32term.c (disable_mouse_highlight): Removed variable.
907 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
908 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
909 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
910 and on after keyboard input.
911 (w32_initialize_display_info): Initialize mouse_face_hidden.
912
913 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
914
915 * msdos.c (last_mouse_window): New variable.
916 (dos_rawgetc): Fix last change--if the mouse is in the same window
917 as recorded in last_mouse_window, don't select this window.
918
919 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not
920 cus-start.el.
921
922 * msdos.c (x_autoselect_window_p): New variable.
923 (syms_of_msdos): Defvar it.
924 (dos_rawgetc): If x_autoselect_window_p is set, select the window
925 in which the last mouse movement occured, unless it is already
926 selected.
927
928 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step): New
929 variables.
930 (syms_of_xdisp): DEVFAR them.
931 (hscroll_window_tree): Use automatic_hscroll_margin and
932 Vautomatic_hscroll_step to compute the amount of window scrolling.
933
934 2002-02-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
935
936 * xterm.c (x-autoselect-window): New variable.
937 (note_mouse_movement): Use it.
938
939 * keyboard.c: Do not include "systime.h" twice.
940
941 2002-02-15 Andreas Schwab <schwab@suse.de>
942
943 * puresize.h (BASE_PURESIZE): Increase to 9/5.
944
945 * alloc.c (NSTATICS): Increase to 1280.
946
947 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
948
949 * alloc.c (NSTATICS): Bump to 1026.
950
951 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
952 (Vx_super_keysym): New variables.
953 (syms_of_xterm): DEFVAR_LISP them.
954 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
955 variables to determine which keys to use for the various
956 modifiers.
957
958 2002-02-13 Kim F. Storm <storm@cua.dk>
959
960 * window.c: (Vmode_line_in_non_selected_windows): Removed.
961 (mode_line_in_non_selected_windows): New variable.
962 (syms_of_window): DEFVAR_BOOL it.
963
964 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Use
965 mode_line_in_non_selected_windows.
966 (mode_line_in_non_selected_windows): Declare extern.
967 (Vmode_line_in_non_selected_windows): Removed extern.
968
969 2002-02-13 Richard M. Stallman <rms@gnu.org>
970
971 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
972 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
973 (Fclear_this_command_keys): Doc fixes.
974
975 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
976 (update_face_from_frame_parameter): Increment face_change_count
977 and windows_or_buffers_changed to force redisplay using changed faces.
978
979 * xdisp.c (QCpropertize): New variable.
980 (mode_line_proptrans_alist): New variable.
981 (display_mode_element): New arg PROPS; all calls changed.
982 Implement this, for strings.
983 Handle literal output of strings by sharing the
984 main-line code for strings, using local var `literal'.
985 Handle :propertize feature.
986 (syms_of_xdisp): Initialze and staticpro QCpropertize and
987 mode_line_proptrans_alist.
988
989 2002-02-11 Kim F. Storm <storm@cua.dk>
990
991 * window.c: (Vmode_line_in_non_selected_windows): New variable.
992 (syms_of_window): DEFVAR_LISP it.
993
994 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
995 (CURRENT_MODE_LINE_FACE_ID): Use it.
996 (Vmode_line_in_non_selected_windows): Declare extern.
997
998 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
999 to get mode line face.
1000
1001 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
1002
1003 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
1004 variables; cus-start.el doesn't need them anymore.
1005
1006 2002-02-09 Kim F. Storm <storm@cua.dk>
1007
1008 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
1009 reduction. This fixes a display problem where stray newlines were
1010 inserted in the window (corrected by C-l). Clarified code (IMHO).
1011
1012 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
1013
1014 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
1015
1016 * xdisp.c (display_mode_lines): Fix last change.
1017
1018 2002-02-09 Jason Rumney <jasonr@gnu.org>
1019
1020 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
1021 match each other.
1022 (w32_load_system_font): Prevent Cleartype fonts from loading.
1023 (Fx_show_tip): Ensure tip frames are above other topmost windows.
1024
1025 2002-02-09 Kim F. Storm <storm@cua.dk>
1026
1027 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
1028 (CURRENT_MODE_LINE_HEIGHT): Use it.
1029 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
1030
1031 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
1032 (pos_visible_p, handle_face_prop): Likewise.
1033 (display_mode_lines): Likewise, but for the real selected window.
1034 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
1035
1036 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
1037 in non-selected windows.
1038 (realize_basic_faces): Realize it.
1039 (syms_of_term): Intern and staticpro it.
1040
1041 2002-02-08 Kim F. Storm <storm@cua.dk>
1042
1043 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
1044 Changed mail addresses to emacs-devel@gnu.org.
1045
1046 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
1047
1048 * fileio.c (Fsubstitute_in_file_name): If the file name includes
1049 ~user, and there's no such user, don't discard everything before
1050 ~user.
1051
1052 * floatfns.c (Fround): Doc fix.
1053
1054 2002-02-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1055
1056 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
1057
1058 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
1059
1060 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
1061
1062 2002-02-07 Kim F. Storm <storm@cua.dk>
1063
1064 * keymap.c (where_is_internal): Only check whether definition is
1065 remapped if it fulfills is_command_symbol.
1066
1067 2002-02-07 Andreas Schwab <schwab@suse.de>
1068
1069 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
1070
1071 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
1072
1073 2002-02-06 Kim F. Storm <storm@cua.dk>
1074
1075 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
1076 defining command remapping. Doc updated.
1077 (Flookup_key): Remap command through keymap if KEY is a symbol.
1078 (is_command_symbol): New function.
1079 (Fkey_binding): Use it. New optional argument NO-REMAP.
1080 Doc updated. Callers changed. Perform command remapping via
1081 recursive call unless that arg is non-nil.
1082 (where_is_internal): New argument no_remap. Callers changed.
1083 Call recursively to find original key bindings for a remapped
1084 comand unless that arg is non-nil.
1085 (Fwhere_is_internal): New optional argument NO-REMAP.
1086 Doc updated. Callers changed. Pass arg to where_is_internal.
1087
1088 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
1089 (is_command_symbol): Added prototype.
1090
1091 * keyboard.c (Vthis_original_command): New variable.
1092 (syms_of_keyboard): DEFVAR_LISP it.
1093 (command_loop_1): Set it, and perform command remapping.
1094
1095 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1096
1097 * keyboard.c (recursive_edit_1): Call cancel_hourglass
1098 unconditionally.
1099
1100 2002-02-06 Jason Rumney <jasonr@gnu.org>
1101
1102 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
1103
1104 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
1105
1106 * charset.c (get_charset_id): Use if-else instead of ?:.
1107
1108 2002-02-06 Richard M. Stallman <rms@gnu.org>
1109
1110 * filelock.c (S_ISLNK): Define if not defined.
1111
1112 2002-02-03 Richard M. Stallman <rms@gnu.org>
1113
1114 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
1115
1116 * lread.c (read1): Redesign strategy for force_multibyte and
1117 force_singlebyte. Now is_multibyte records whether read_buffer
1118 is multibyte. Encountering any multibyte character makes it so.
1119
1120 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
1121
1122 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
1123 with the same sequence, map that sequence to f10 rather than f0.
1124
1125 2002-02-03 Andreas Schwab <schwab@suse.de>
1126
1127 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
1128 latter never being defined on GNU/Linux.
1129
1130 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1131
1132 * xfaces.c (realize_default_face): Don't set the weight and slant
1133 of the default face to Qnormal, unless these attributes are
1134 unspecified.
1135
1136 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1137
1138 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
1139 Call cancel_hourglass unconditionally.
1140
1141 * eval.c (Fsignal): Remove duplicated declaration of
1142 the variable `display_hourglass_p'.
1143
1144 2002-01-31 Richard M. Stallman <rms@gnu.org>
1145
1146 * editfns.c (region_limit): Nicer error message.
1147
1148 * coding.c (decode_composition_emacs_mule):
1149 Give up if NCOMPONENT gets too large to index `component'.
1150
1151 * callint.c (check_mark): New arg to specify clearer error message.
1152 Callers changed.
1153
1154 2002-01-27 Richard M. Stallman <rms@gnu.org>
1155
1156 * minibuf.c (Fcompleting_read): Doc fix.
1157
1158 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1159
1160 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
1161 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
1162 Fix doc-strings.
1163
1164 2002-01-26 Richard M. Stallman <rms@gnu.org>
1165
1166 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
1167
1168 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
1169 and scroll_up_aggressively.
1170
1171 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1172
1173 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
1174
1175 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
1176
1177 * textprop.c (Fnext_property_change, Fnext_single_property_change)
1178 (Fprevious_property_change, Fprevious_single_property_change):
1179 Stay within the narrowed-buffer boundaries.
1180
1181 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1182
1183 * term.c (Ftty_display_color_cells): New function.
1184 (syms_of_term): Defsubr it.
1185 (Ftty_display_color_cells, Ftty_display_color_p): Change the
1186 argument name to DISPLAY. Doc fix.
1187
1188 * dispextern.h: Add prototype for set_tty_color_mode and
1189 tty_setup_colors.
1190
1191 2002-01-24 Jason Rumney <jasonr@gnu.org>
1192
1193 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
1194 If region left to draw is not what was expected, mark the frame as
1195 garbaged.
1196
1197 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
1198 Combine the regions returned by BeginPaint and GetUpdateRect.
1199
1200 2002-01-23 Jason Rumney <jasonr@gnu.org>
1201
1202 * w32term.c (x_update_window_begin): Only hide caret if
1203 w32_use_visible_system_caret is set.
1204 (x_update_window_end): Only show caret if
1205 w32_use_visible_system_caret is set.
1206 (syms_of_w32term): Handle SystemParametersInfo call failing.
1207
1208 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
1209
1210 2002-01-22 Richard M. Stallman <rms@gnu.org>
1211
1212 * unexelf.c (unexec): Define n so as to cause compilation error
1213 for the code where people have often written n instead of nn.
1214
1215 * .gdbinit (hookpost-run): Defined.
1216
1217 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
1218
1219 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
1220
1221 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
1222
1223 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
1224 if fullscreen is being set.
1225
1226 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1227
1228 * minibuf.c (Fminibuffer_contents)
1229 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
1230 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
1231
1232 2002-01-21 Richard M. Stallman <rms@gnu.org>
1233
1234 * window.c (check_frame_size): Fix minimum height calculation.
1235
1236 2002-01-20 Ken Raeburn <raeburn@gnu.org>
1237
1238 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
1239 height before comparison.
1240 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
1241
1242 2002-01-20 Jason Rumney <jasonr@gnu.org>
1243
1244 * w32term.c (w32_system_caret_width): Remove.
1245 (w32_use_visible_system_caret): New user flag.
1246 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
1247 Windows reports a screen reader running.
1248 (x_update_window_begin): Hide the system caret.
1249 (x_update_window_end): Show the system caret.
1250 (x_display_and_set_cursor): Don't draw a cursor when
1251 w32_use_visible_system_caret is set. Do not adjust width.
1252
1253 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
1254 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
1255 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
1256 the user requests it. Use system default width when creating.
1257 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
1258
1259 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
1260 New window messages.
1261
1262 2002-01-20 Richard M. Stallman <rms@gnu.org>
1263
1264 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
1265
1266 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1267
1268 * doprnt.c (doprnt1): Fix typos in error call.
1269
1270 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1271
1272 * unexelf.c (unexec) [__sgi]: Support the .got sections.
1273
1274 2002-01-20 Jason Rumney <jasonr@gnu.org>
1275
1276 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
1277 that Windows returns. If a double check fails, try to guess how
1278 ExtTextOut is going to act.
1279
1280 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
1281 in place of stricmp.
1282 (w32_list_synthesized_fonts): Removed.
1283 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
1284 (struct enumfont_t): New element; list.
1285 (enum_font_cb2): List all style and charset variations of a font.
1286 (Fw32_select_font): New optional argument; include_proportional.
1287 Exclude vertical fonts. Exclude proportional fonts unless
1288 include_proportional is non-nil.
1289 (w32_enable_synthesized_fonts): Change to a boolean.
1290 (Fw32_send_sys_command): Doc fix.
1291
1292 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1293
1294 * dispnew.c (update_frame): Move the variable `tem' to the block
1295 where it is used.
1296
1297 2002-01-19 Jason Rumney <jasonr@gnu.org>
1298
1299 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
1300 call to face-set-after-frame-default.
1301
1302 2002-01-18 Richard M. Stallman <rms@gnu.org>
1303
1304 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
1305 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
1306
1307 2002-01-17 Richard M. Stallman <rms@gnu.org>
1308
1309 * window.c (enlarge_window): When exceeding size of parent,
1310 directly delete all the siblings instead of trying to resize it.
1311
1312 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1313
1314 * term.c (set_tty_color_mode): Remove unused variable `tem'.
1315
1316 2002-01-16 Henrik Enberg <henrik@enberg.org>
1317
1318 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
1319
1320 2002-01-16 Kim F. Storm <storm@cua.dk>
1321
1322 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
1323 is invisible. This can happen if cursor is on top line of a
1324 window, and we switch to a buffer with a header line.
1325
1326 * w32term.c (x_erase_phys_cursor): Ditto.
1327
1328 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1329
1330 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
1331 `dont_resize' only when used.
1332
1333 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
1334
1335 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
1336
1337 * xdisp.c (display_mode_element): When computing charpos, depend
1338 on multibyteness of elt, not the text in field.
1339
1340 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1341
1342 * buffer.c (Fkill_all_local_variables): Increment
1343 `update_mode_lines' only once.
1344
1345 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1346
1347 * lisp.h (adjust_after_replace_noundo)
1348 (Fupdate_coding_systems_internal): Add prototypes.
1349
1350 * sound.c (Fplay_sound): Initialize header_size also for :data case.
1351
1352 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
1353
1354 Support for the --color command-line argument and tty-color-mode
1355 frame parameter:
1356
1357 * term.c (tty_default_color_capabilities, tty_setup_colors)
1358 (set_tty_color_mode): New functions.
1359 (term_init): Call tty_default_color_capabilities.
1360 (Qtty_color_mode_alist): New variable.
1361 (syms_of_term): Intern and staticpro it.
1362
1363 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
1364 frames.
1365 (do_switch_frame): For termcap frames, switch the tty
1366 color mode as specified by the frame's parameters.
1367 (Qtty_color_mode): New variable.
1368 (syms_of_frame): Intern and staticpro it.
1369
1370 * emacs.c (USAGE2): Add the --color option.
1371 (standard_args): Ditto.
1372
1373 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
1374
1375 * xterm.h (struct x_output): New members want_fullscreen,
1376 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
1377 y_pixels_outer_diff.
1378 New enum for FULLSCREEN_* constants.
1379 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
1380 is NULL.
1381 (x_fullscreen_adjust): Add prototype.
1382
1383 * emacs.c (USAGE2): Add the new full-screen arguments.
1384 (standard_args): Ditto.
1385
1386 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
1387 New variables.
1388 (syms_of_xfns): Intern and staticpro them.
1389 (x_frame_parms) <"fullscreen">: New parameter.
1390 (x_fullscreen_move, x_set_fullscreen): New functions.
1391 (x_set_frame_parameters): Support for Qfullscreen.
1392 (x_real_positions): More accurate computation of the frame position.
1393 (x_figure_window_size): Support full-screen frames.
1394 (Fx_create_frame): Default the fullscreen parameter.
1395
1396 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
1397 (XTread_socket) <Expose>: Call x_check_fullscreen.
1398 <ConfigureNotify>: Don't resize to fullscreen.
1399 Call x_check_fullscreen_move, and set the want_fullscreen member of
1400 output_data.x.
1401
1402 2002-01-13 Jason Rumney <jasonr@gnu.org>
1403
1404 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
1405 for mice with more than 3 buttons.
1406
1407 * w32term.c (parse_button): New parameter xbutton. Callers changed.
1408 (w32_read_socket): Handle new "XBUTTON" messages.
1409
1410 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
1411 (syms_of_w32fns): DEFVAR_BOOL it.
1412 (w32_wnd_proc): Handle new "XBUTTON" messages.
1413
1414 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1415
1416 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
1417
1418 2002-01-13 Andreas Schwab <schwab@suse.de>
1419
1420 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
1421
1422 2002-01-12 Andreas Schwab <schwab@suse.de>
1423
1424 * .gdbinit (xbuffer): Remove address operator since data is now a
1425 pointer.
1426
1427 2002-01-11 Richard M. Stallman <rms@gnu.org>
1428
1429 * insdel.c (adjust_after_replace_noundo): New function.
1430
1431 * coding.c (code_convert_region): Don't copy old text if undo disabled.
1432
1433 2002-01-09 Jason Rumney <jasonr@gnu.org>
1434
1435 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
1436 when checking for multiple frames.
1437
1438 2002-01-08 Richard M. Stallman <rms@gnu.org>
1439
1440 * window.c (delete_window): Rewrite the code for changing the
1441 selected window to handle the case where WINDOW is not a leaf.
1442
1443 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
1444
1445 * process.c (send_process): Set src_multibyte to 1 after the call
1446 top setup_coding_system, not before the call.
1447
1448 2002-01-07 Jason Rumney <jasonr@gnu.org>
1449
1450 * xmenu.c (set_frame_menubar, xmenu_show):
1451 (xdialog_show): Initialize wv->help to Qnil.
1452
1453 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
1454 (w32_dialog_show): Initialize wv->help to Qnil.
1455
1456 2002-01-06 Jason Rumney <jasonr@gnu.org>
1457
1458 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
1459
1460 * w32menu.c (w32_menu_display_help): Revert last change.
1461
1462 * xmenu.c (menu_highlight_callback): Revert last change.
1463
1464 2002-01-06 Andreas Schwab <schwab@suse.de>
1465
1466 * insdel.c (make_gap_larger): Make sure buffer size does not
1467 overflow range of int.
1468
1469 2002-01-05 Jason Rumney <jasonr@gnu.org>
1470
1471 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1472 OVERLAPS_P.
1473
1474 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
1475
1476 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
1477 to the left or to the right of the pointer, put it against
1478 the left screen edge.
1479 (x_frame_parms): Add missing braces around initializer.
1480
1481 * w32term.c (x_setup_relief_colors): Don't compute an image's
1482 background color if it doesn't have a Pixmap.
1483 (notice_overwritten_cursor): Don't depend on
1484 output_cursor and updated_area. Compare pixel coordinates with
1485 window's cursor pixel coordinates.
1486 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1487 Call notice_overwritten_cursor with new arg list.
1488 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1489 unconditionally.
1490 (x_draw_image_relief): Use predefined macro instead of
1491 constant when the value of `tool_bar_button_relief' is negative.
1492
1493 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
1494
1495 2002-01-04 Richard M. Stallman <rms@gnu.org>
1496
1497 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
1498
1499 2002-01-03 Richard M. Stallman <rms@gnu.org>
1500
1501 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
1502 (Fkey_binding): Try the `keymap' property map first.
1503 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
1504 minor mode bindings.
1505
1506 2002-01-03 Kim F. Storm <storm@cua.dk>
1507
1508 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
1509
1510 2002-01-02 Richard M. Stallman <rms@gnu.org>
1511
1512 * keyboard.c (read_key_sequence): Handle the keymap property
1513 before minor mode maps.
1514
1515 * editfns.c (Fformat): Update thissize from field_width
1516 based on the actual width, in the string case.
1517
1518 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1519
1520 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
1521 when used as truth value to prevent gcc warnings.
1522
1523 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
1524 * w32proc.c: Include <config.h>.
1525
1526 2002-01-01 Andreas Schwab <schwab@suse.de>
1527
1528 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
1529 not EMACS_INT, to make them compatible with DEFVAR_INT.
1530 * lisp.h (max_specpdl_size): Adjust declaration.
1531
1532 2002-01-01 Richard M. Stallman <rms@gnu.org>
1533
1534 * print.c (print_object): Test print_escape_nonascii only for
1535 unibyte strings.
1536 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
1537 when outputting to a multibyte buffer.
1538
1539 2001-12-29 Richard M. Stallman <rms@gnu.org>
1540
1541 * print.c (print_object): In multibyte string, use hex escapes.
1542 Use octal only for unibyte strings.
1543 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
1544
1545 * lread.c (read_escape): New arg BYTEREP for reporting whether
1546 escape forces unibyte or multibyte.
1547 (read1): When reading a string, take note of that info.
1548
1549 2001-12-29 Ken Raeburn <raeburn@gnu.org>
1550
1551 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
1552 comparison to test lisp value returned by Fget.
1553
1554 2001-12-29 Richard M. Stallman <rms@gnu.org>
1555
1556 * lisp.h (max_specpdl_size): Add declaration.
1557
1558 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
1559
1560 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
1561 Handle modifier bits. Correct typo in error message.
1562
1563 2001-12-28 Richard M. Stallman <rms@gnu.org>
1564
1565 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
1566 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
1567 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1568 Update calls to Fdefine_abbrev.
1569 (write_abbrev): Update for changed data format.
1570 Don't list "system" abbrevs.
1571 (Fexpand_abbrev): Update use count with new data format.
1572 (describe_abbrev): Update for changed data format.
1573 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
1574
1575 * config.in (HAVE_MBSINIT): Add #undef.
1576
1577 * strftime.c (mbsinit): Define as no-op if not available.
1578
1579 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
1580 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
1581
1582 * keymap.c (Flookup_key): Error message if key has wrong data type.
1583 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
1584 (exclude_key): New variable.
1585
1586 2001-12-28 Gerd Moellmann <gerd@gnu.org>
1587
1588 * xterm.c (x_setup_relief_colors): Don't compute an image's
1589 background color if it doesn't have a Pixmap.
1590
1591 * xterm.c (notice_overwritten_cursor): Don't depend on
1592 output_cursor and updated_area. Compare pixel coordinates with
1593 window's cursor pixel coordinates.
1594 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1595 Call notice_overwritten_cursor with new arg list.
1596 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1597 unconditionally.
1598
1599 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
1600 height of the cursor line to the amount to scroll.
1601
1602 2001-12-27 Richard M. Stallman <rms@gnu.org>
1603
1604 * intervals.c (set_point_both): The position after an invisible,
1605 intangible character is not an acceptable stopping point.
1606
1607 2001-12-27 Ken Raeburn <raeburn@gnu.org>
1608
1609 * window.c (enlarge_window): In new preserve_before code, convert
1610 CURBEG from lisp object to integer before doing arithmetic.
1611
1612 2001-12-27 Richard M. Stallman <rms@gnu.org>
1613
1614 * bytecode.c (Fbyte_code): Undo previous change.
1615
1616 2001-12-26 Kim F. Storm <storm@cua.dk>
1617
1618 * keyboard.c (record_char): Ignore duplicate help-echo events only
1619 separated by mouse-movement. When tracking mouse, only record
1620 first and last mouse-movement event in same window.
1621 Don't record mouse-movement events in keyboard macros.
1622
1623 2001-12-25 Richard M. Stallman <rms@gnu.org>
1624
1625 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
1626 (Fenlarge_window): New arg PRESERVE_BEFORE.
1627
1628 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
1629 instead of Fstring_as_unibyte.
1630
1631 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1632
1633 The following changes remove mocklisp support:
1634
1635 * mocklisp.h, mocklisp.c: Files removed.
1636
1637 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
1638 `Qmocklisp' and `Qmocklisp_arguments'.
1639 Remove prototype of syms_of_mocklisp.
1640
1641 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
1642
1643 * callint.c: Do not include mocklisp.h.
1644 (Fcall_interactively): Do not test for mocklisp case.
1645
1646 * eval.c: Remove variables `Qmocklisp_arguments',
1647 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
1648 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
1649 Do not test for mocklisp case.
1650 (Fwhile): Remove unused variable `tem'.
1651 (syms_of_eval): Remove variable `moclisp-arguments'.
1652
1653 * data.c (wrong_type_argument): Remove mocklisp case.
1654
1655 * doc.c (Fdocumentation): Remove mocklisp case.
1656
1657 * emacs.c (main): Do not call syms_of_mocklisp.
1658
1659 2001-12-21 Richard M. Stallman <rms@gnu.org>
1660
1661 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
1662 to the left or to the right of the pointer, put it against
1663 the left screen edge.
1664
1665 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
1666
1667 * Makefile.in (distclean): Remove .gdbinit if we are building
1668 outside the source tree.
1669
1670 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
1671
1672 * w32.c (emacs_root_dir): New function.
1673
1674 * msdos.c (emacs_root_dir): New function.
1675
1676 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
1677 of the current drive as the fallback for default_directory.
1678
1679 * dired.c (file_name_completion): Run the elements of
1680 completion-ignored-extensions through ENCODE_FILE.
1681
1682 * lisp.h (scmp): Remove prototype, since it's now a static
1683 function private to dired.c.
1684
1685 2001-12-18 Richard M. Stallman <rms@gnu.org>
1686
1687 * dired.c (scmp): Function moved from minibuf.c.
1688 Delete multibyte handling--used only on encoded strings.
1689
1690 * minibuf.c (scmp): Function moved to dired.c.
1691
1692 * fns.c (merge): Add QUIT call.
1693
1694 2001-12-18 Dave Love <fx@gnu.org>
1695
1696 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
1697 language/georgian.el.
1698
1699 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
1700
1701 * Makefile.in (lisp, shortlisp): Synchronize with changes to
1702 lisp/Makefile.in:DONTCOMPILE.
1703
1704 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1705
1706 * xdisp.c (window_box_height): Do not return negative values.
1707 From Gerd Moellmann <gerd@gnu.org>.
1708
1709 * keyboard.c (head_table): Add missing braces around initializer.
1710
1711 * term.c (keys): Likewise.
1712
1713 * xfns.c (x_frame_parms, visual_classes): Likewise.
1714
1715 2001-12-17 Sam Steingold <sds@gnu.org>
1716
1717 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
1718 patch (COMPOSING_P, not COMPOSING).
1719
1720 2001-12-17 Richard M. Stallman <rms@gnu.org>
1721
1722 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
1723
1724 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
1725 before calling decode_coding.
1726
1727 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
1728
1729 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
1730 instead of only for COMPOSITION_DISABLED.
1731
1732 2001-12-16 Richard M. Stallman <rms@gnu.org>
1733
1734 * alloc.c (pure_alloc): After overflow, allocate just a small block.
1735
1736 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
1737
1738 * buffer.h (struct buffer): New field `display_error_modiff'.
1739 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
1740
1741 * window.c (Frecenter): Clear display_error_modiff field.
1742
1743 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
1744 Call redisplay_window, but not if display_error_modiff field says no.
1745 (redisplay_window_error): New function.
1746 (displayed_buffer): New variable.
1747 (redisplay_internal, redisplay_windows): Call the new functions
1748 instead of redisplay_window directly.
1749
1750 2001-12-15 Richard M. Stallman <rms@gnu.org>
1751
1752 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1753
1754 2001-12-14 Andrew Innes <andrewi@gnu.org>
1755
1756 * makefile.w32-in (EMACSLOADPATH): Define.
1757 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
1758 (bootstrap-temacs): Remove dependency on bootstrap-clean.
1759
1760 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
1761
1762 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
1763 parameter have a numeric value all the time.
1764
1765 * w32fns.c (x_report_frame_params): Likewise.
1766
1767 2001-12-12 Richard M. Stallman <rms@gnu.org>
1768
1769 * fileio.c (Fwrite_region): Doc fix.
1770
1771 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
1772 (redisplay_internal): Call clear_image_cache only for window terminals.
1773
1774 2001-12-12 Gerd Moellmann <gerd@gnu.org>
1775
1776 * xdisp.c (move_it_vertically_backward): Change heuristic
1777 for the case that we didn't move far enough initially.
1778
1779 * window.c (Frecenter): Simplify computation in the case of window
1780 system frames and ARG < 0; use window_box_height.
1781
1782 2001-12-11 Richard M. Stallman <rms@gnu.org>
1783
1784 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
1785 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
1786
1787 2001-12-11 Andrew Innes <andrewi@gnu.org>
1788
1789 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
1790 arg is negative.
1791
1792 2001-12-11 Richard M. Stallman <rms@gnu.org>
1793
1794 * m/hp800.h: Split the __hpux conditional into the parts
1795 that are right for GNU/Linux too and the parts that are not.
1796 Use the former if GNU_LINUX.
1797 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
1798
1799 * s/gnu-linux.h (GNU_LINUX): Defined.
1800
1801 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1802
1803 * macros.c, msdos.c, w16select.c: Change doc-string comments to
1804 `new style' [w/`doc:' keyword].
1805
1806 2001-12-10 Jason Rumney <jasonr@gnu.org>
1807
1808 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
1809 before using.
1810
1811 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1812
1813 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
1814 keyword].
1815
1816 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
1817
1818 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
1819
1820 * s/hpux10.h (srand48): Don't undefine.
1821
1822 2001-12-09 Jason Rumney <jasonr@gnu.org>
1823
1824 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
1825 Add comment to explain where the struct came from.
1826 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
1827 (add_menu_item): Process pop-up menus first to avoid memory leak.
1828 (add_menu_item, w32_menu_display_help): Use `help' field as
1829 Lisp_Object.
1830 (w32_free_submenu_strings): Only free owner-drawn strings.
1831
1832 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1833
1834 * COPYING: Moved back.
1835
1836 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
1837 Add parentheses around && within ||.
1838
1839 * indent.c (compute_motion): Likewise.
1840
1841 * intervals.c (merge_properties_sticky): Likewise.
1842
1843 * coding.c (setup_coding_system, shrink_encoding_region)
1844 (Fdecode_sjis_char): Likewise.
1845
1846 2001-12-07 Andreas Schwab <schwab@suse.de>
1847
1848 * xdisp.c (display_mode_element): Don't read past end of string if
1849 it ends with '%'.
1850
1851 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
1852 can hold.
1853
1854 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
1855 from most_positive_fixnum and most_negative_fixnum, resp., and
1856 type changed to Lisp_Object.
1857 (syms_of_data): DEFVAR_LISP them.
1858
1859 2001-12-07 Richard M. Stallman <rms@gnu.org>
1860
1861 * callproc.c (init_callproc): Set Vdata_directory based on the source
1862 location whenever Emacs was run uninstalled.
1863
1864 2001-12-06 Paul Eggert <eggert@twinsun.com>
1865
1866 * config.in (HAVE_WORKING_VFORK): New #undefs.
1867 * process.c (create_process):
1868 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
1869 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
1870 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
1871 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
1872 * m/intel386.h (HAVE_VFORK): Likewise.
1873 * m/mips-siemens.h (HAVE_VFORK): Likewise.
1874 * m/mips.h (HAVE_VFORK): Likewise.
1875 * s/freebsd.h (vfork): Remove #define.
1876 * s/lynxos.h (HAVE_VFORK): Remove #undef.
1877 * s/usg5-4-2.h: Fix comment about vfork.
1878
1879 2001-12-06 Richard M. Stallman <rms@gnu.org>
1880
1881 * s/hpux10.h (random): Add undef.
1882 (HAVE_RANDOM): Define it just once.
1883
1884 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
1885
1886 * eval.c: Undo last change: the standard syntax is not wanted.
1887
1888 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
1889
1890 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
1891 scroll bars of the frame before deleting the frame itself. If the
1892 frame has a widget, delete the frame with XtDestroyWidget, and do
1893 not call XDestroyWindow before that.
1894
1895 2001-12-06 Kim F. Storm <storm@cua.dk>
1896
1897 * xfns.c (x_report_frame_params): Return actual fringe widths.
1898
1899 * w32fns.c (x_report_frame_params): Return actual fringe widths.
1900
1901 2001-12-05 Andrew Innes <andrewi@gnu.org>
1902
1903 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
1904 excessively large.
1905
1906 * insdel.c (make_gap_larger): New function.
1907 (make_gap_smaller): New function.
1908 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
1909 make_gap_smaller if arg is negative.
1910
1911 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
1912
1913 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
1914 Pass a dummy argument when calling interrupt_signal.
1915 (parse_menu_item): Mark disabled items before checking for empty def.
1916 (read_char_minibuf_menu_prompt): Make safety more visible.
1917 (read_key_sequence): Add a `first_unbound' variable.
1918 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
1919 unbound prefix as soon as we can detect it.
1920
1921 * doc.c (Fsnarf_documentation): Add prototype.
1922 (get_doc_string): Handle negative arguments.
1923 (Fdocumentation): Use AREF and ASIZE.
1924 Move the calls to get_doc_string to a single place.
1925 Don't confuse an interactive-spec for a docstring reference.
1926 (Fdocumentation_property): Take advantage of the fact that
1927 get_doc_string now ignores the sign of the docstring position.
1928
1929 * eval.c: Use standard syntax for usage in docstrings.
1930
1931 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1932
1933 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
1934
1935 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1936
1937 * xterm.c (x_draw_image_relief): Use predefined macro instead of
1938 constant when the value of `tool_bar_button_relief' is negative.
1939
1940 2001-12-02 Richard M. Stallman <rms@gnu.org>
1941
1942 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
1943 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
1944
1945 * fileio.c (read_non_regular): Delete Fsignal call.
1946
1947 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
1948
1949 * lisp.h (run_hook_list_with_args): Undo last change.
1950
1951 2001-12-01 Gerd Moellmann <gerd@gnu.org>
1952
1953 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
1954
1955 2001-12-01 Jason Rumney <jasonr@gnu.org>
1956
1957 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
1958
1959 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
1960 [!WM_MOUSELEAVE]: Define.
1961
1962 * w32menu.c (current_popup_menu, get_menu_item_info):
1963 (set_menu_item_info): New vars.
1964 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
1965 (w32_menu_show): Set current_popup_menu.
1966 (add_menu_item): Allocate new strings for owner-drawn menu items
1967 and help strings.
1968 Use owner-draw for disabled menu items again.
1969 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
1970 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
1971
1972 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
1973 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
1974 <WM_EXITMENULOOP>: Free menu strings.
1975 <WM_MOUSELEAVE>: Stop tracking mouse.
1976 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
1977
1978 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
1979 and mouse face.
1980
1981 2001-12-01 Kim F. Storm <storm@cua.dk>
1982
1983 The following changes add left-fringe and right-fringe
1984 frame parameters to adjust fringe widths, or remove one or
1985 both fringes.
1986
1987 * frame.h (struct frame): Remove trunc_area_pixel_width and
1988 trunc_area_cols fields.
1989 (Qleft_fringe, Qright_fringe): Declare.
1990 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
1991
1992 * frame.c (Qleft_fringe, Qright_fringe): New vars.
1993 (syms_of_frame): Initialize them.
1994
1995 * window.c (coordinates_in_window): Handle separate left and right
1996 fringe widths.
1997
1998 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
1999 and fringe_cols fields.
2000 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
2001 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
2002 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
2003 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
2004 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
2005 (x_compute_fringe_widths): Add prototype.
2006
2007 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
2008 fill fringe evenly with small dashes.
2009 (x_draw_fringe_bitmap): Clear background if necessary. Align and
2010 clip the new ZV bitmap to avoid jitter between rows.
2011 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
2012 background. Don't draw fringe bitmaps if fringe width is zero.
2013 (x_compute_fringe_widths): New function.
2014 (x_new_font, x_set_window_size_1): Use it.
2015
2016 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
2017 (x_set_frame_parameters): Process `font' parameter before other
2018 parameters as fringe widths depend on it.
2019 (x_set_fringe_width): New function.
2020 (x_figure_window_size): Use x_compute_fringe_widths.
2021 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
2022 parameters.
2023
2024 * widget.c (set_frame_size): Use x_compute_fringe_widths.
2025 (EmacsFrameSetCharSize): Ditto.
2026
2027 * w32term.h: Merged changes from xterm.h.
2028 * w32term.c: Merged changes from xterm.c.
2029 * w32fns.c: Merged changes from xfns.c.
2030
2031 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2032
2033 * COPYING: Removed.
2034
2035 2001-11-29 Dave Love <fx@gnu.org>
2036
2037 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
2038 extra extra slot.
2039 (detect_coding_mask): Fix call of detect_coding_iso2022.
2040
2041 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2042
2043 * fileio.c (file-name-coding-system)
2044 (default-file-name-coding-system): Doc fix (links to referenced
2045 variables added).
2046
2047 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
2048
2049 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
2050 Add dummy uses of gcproN variables.
2051
2052 * category.c (describe_category, describe_category_1)
2053 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
2054 (syms_of_category): Don't defsubr Sdescribe_categories.
2055
2056 2001-11-28 Richard M. Stallman <rms@gnu.org>
2057
2058 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
2059
2060 * Makefile.in (lispdir): New variable, referring to build dir.
2061 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
2062
2063 2001-11-28 Andrew Innes <andrewi@gnu.org>
2064
2065 * w32menu.c (w32_menu_display_help): Actually add the new argument
2066 OWNER.
2067
2068 2001-11-28 Jason Rumney <jasonr@gnu.org>
2069
2070 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
2071 menu items. From David Ponce <dponce@wanadoo.fr>.
2072 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
2073 conditionally.
2074 (w32_menu_display_help): New argument OWNER. Rewritten to store a
2075 help event in the owner frame's keyboard buffer.
2076
2077 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
2078 (Fx_show_tip): Don't subtract last width from row width.
2079
2080 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
2081 (w32_read_socket): Use EQ to compare frames.
2082
2083 2001-11-28 Gerd Moellmann <gerd@gnu.org>
2084
2085 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
2086 OVERLAPS_P.
2087
2088 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2089
2090 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
2091 `gcpro3' and `gcpro4'.
2092
2093 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
2094
2095 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
2096
2097 * ccl.c: Use AREF and ASIZE.
2098
2099 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
2100
2101 * lisp.h (run_hook_list_with_args): Remove.
2102 (LIST_END_P): Fix call to wrong_type_argument.
2103 (make_fixnum_or_float): Use EMACS_INT rather than int.
2104
2105 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
2106
2107 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
2108 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
2109
2110 * eval.c: Use AREF and ASIZE.
2111 (Ffetch_bytecode): Add the file name to the error message.
2112
2113 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
2114 which match the end of the file-name.
2115 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
2116 is not a valid env var, but leave it as is instead.
2117
2118 * keymap.c (access_keymap): Handle t bindings like nil bindings.
2119 Make nil bindings in char-tables transparent.
2120 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
2121
2122 2001-11-26 Richard M. Stallman <rms@gnu.org>
2123
2124 * textprop.c (set_text_properties_1): Allow START, END in either order.
2125 Do nothing if range is empty.
2126
2127 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
2128
2129 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
2130 (clean): Not here.
2131
2132 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
2133
2134 * textprop.c (set_text_properties_1): Clearly mark that the
2135 interval should not be empty.
2136
2137 * intervals.c (graft_intervals_into_buffer):
2138 Don't call set_text_properties_1 on an empty interval.
2139
2140 2001-11-25 Richard M. Stallman <rms@gnu.org>
2141
2142 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
2143
2144 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
2145 don't lose the data in it.
2146
2147 2001-11-25 Juanma Barranquero <lektu@terra.es>
2148
2149 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
2150
2151 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
2152
2153 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
2154
2155 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
2156
2157 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
2158
2159 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
2160
2161 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
2162 Niemitalo <kon@iki.fi>.
2163
2164 2001-11-25 Jason Rumney <jasonr@gnu.org>
2165
2166 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
2167
2168 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
2169 (Fx_show_tip): Block input during frame creation.
2170 (Fx_show_tip, Fx_hide_tip): Enable.
2171
2172 2001-11-24 Richard M. Stallman <rms@gnu.org>
2173
2174 * lread.c (Fload): Detect recursive load error for more than 3
2175 nestings of the same file.
2176 (Vrecursive_load_depth_limit): Variable deleted.
2177 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
2178
2179 2001-11-24 Jason Rumney <jasonr@gnu.org>
2180
2181 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
2182 mouse position if either left or top is not specified.
2183
2184 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
2185 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
2186 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
2187 (my_create_tip_window): Assign tip_window.
2188 (x_create_tip_frame): Use same defaults as X.
2189 (compute_tip_xy): Remove unused variable. Use full screen width.
2190 (Fx_show_tip): Do not double height. Call ShowWindow directly.
2191
2192 * w32term.c (x_after_update_window_line): Doc fix.
2193 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
2194 frames.
2195 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
2196
2197 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
2198 for all Windowed systems.
2199
2200 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
2201
2202 * msdos.c (IT_clear_screen): If the frame's faces are not yet
2203 realized, use the initial screen colors to clear the screen.
2204
2205 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2206
2207 * textprop.c (Fset_text_properties): Remove unused variables
2208 `unchanged', `prev_changed', `s' and `len'.
2209
2210 * search.c (Freplace_match): Remove unused variable `inslen'.
2211
2212 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
2213
2214 2001-11-22 Jason Rumney <jasonr@gnu.org>
2215
2216 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
2217 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
2218 (my_create_tip_window): New function.
2219 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
2220 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
2221
2222 2001-11-20 Jason Rumney <jasonr@gnu.org>
2223
2224 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
2225 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
2226
2227 * w32fns.c (Vw32_system_coding_system): Remove.
2228 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
2229
2230 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
2231
2232 * fileio.c (Fwrite_region): Move choose_write_coding_system to
2233 after build_annotations.
2234
2235 * syntax.c (describe_syntax): Add dummy arg.
2236 (describe_syntax_1): Update call to describe_vector.
2237
2238 * category.c (describe_category): Add dummy arg.
2239 (describe_category_1): Update call to describe_vector.
2240
2241 * keymap.c (Fdescribe_vector): Add `describer' parameter.
2242 (describe_command, describe_translation): Add dummy second param.
2243 (describe_map): Call elt_describer with two arguments.
2244 (describe_vector_princ): Add `fun' parameter.
2245 Call it instead of the hardcoded `princ'.
2246 (describe_vector): Add arg `args'.
2247 Pass it as a new second argument to elt_describer.
2248
2249 * keymap.h (describe_vector): Update prototype.
2250
2251 * frame.c: Don't include keymap.h any more.
2252 (keys_of_frame): Remove.
2253
2254 * lisp.h (keys_of_frame): Remove declaration.
2255
2256 * emacs.c (main): Don't call `keys_of_frame' any more.
2257
2258 2001-11-14 Andreas Schwab <schwab@suse.de>
2259
2260 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
2261 if defined, 0 otherwise.
2262 (MAP_FAILED): Define if not defined and use it to test mmap failure.
2263 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
2264
2265 2001-11-19 Richard M. Stallman <rms@gnu.org>
2266
2267 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
2268
2269 2001-11-18 Jason Rumney <jasonr@gnu.org>
2270
2271 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
2272 (x_draw_bar_cursor): If the background color of the glyph under
2273 the cursor equals the frame's cursor color, use the glyph's
2274 foreground color for drawing the bar cursor.
2275 (x_after_update_window_line): Clear internal border in different
2276 circumstances.
2277 (w32_set_vertical_scroll_bar): Check for width and height > 0.
2278 (w32_draw_relief_rect): Correct relief by 1 pixel.
2279 (x_set_glyph_string_background_width):
2280 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2281 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
2282 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
2283 if cursor_in_non_selected_windows is false.
2284 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2285 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
2286 Notice if cursor gets overwritten.
2287 (notice_overwritten_cursor): Renamed from
2288 note_overwritten_text_cursor. Rewritten to take glyph widths
2289 into account, and to take X positions as parameters.
2290 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2291 around call to x_draw_glyphs.
2292 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2293 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2294 color to use for image glyph reliefs.
2295 (x_draw_image_relief): Accept zero tool_bar_button_relief.
2296 (glyph_rect): Remove unused variable `area'.
2297
2298 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
2299 some items.
2300 (x_set_internal_border_width): Set frame garbaged when window
2301 doesn't exist yet.
2302 (Fx_create_frame): Accept zero tool_bar_button_relief.
2303 (x_clear_image_1, four_corners_best, image_background)
2304 (image_background_transparent): New functions.
2305 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2306 (gs_format): Add `:background' entry.
2307 (lookup_image): Set IMG's background color if specified.
2308 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2309 when appropriate.
2310 (x_clear_image_1): Reset `background_valid' and
2311 `background_transparent_valid' fields.
2312 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2313 calculating it here. Set IMG's background_transparent field.
2314 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2315 (enum png_keyword_index): Add PNG_BACKGROUND.
2316 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2317 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2318 (enum gif_keyword_index): Add GIF_BACKGROUND.
2319 (enum gs_keyword_index): Add GS_BACKGROUND.
2320 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2321 Pre-calculate image background color where necessary.
2322 (x_create_x_image_and_pixmap, xbm_load, gs_load):
2323 Use display info's n_cbits entry for screen depth.
2324 (Fx_show_tip): Remove unused variables `buffer', `top',
2325 `left', `max_width' and `max_height'.
2326
2327 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
2328
2329 2001-11-18 Gerd Moellmann <gerd@gnu.org>
2330
2331 * puresize.h (BASE_PURESIZE): Increase to 750000.
2332
2333 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2334
2335 * frame.c (Fframe_live_p): Doc fix.
2336
2337 2001-11-18 Richard M. Stallman <rms@gnu.org>
2338
2339 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
2340 (message_dolog_marker3): New static variables hold three markers.
2341 (syms_of_xdisp): Initialize and staticpro them.
2342 (message_dolog): Use message_dolog_marker1..3 instead of
2343 allocating markers each time. Unchain them when done.
2344
2345 2001-11-17 Richard M. Stallman <rms@gnu.org>
2346
2347 * doc.c (Fsnarf_documentation): Doc fix.
2348
2349 2001-11-17 Andreas Schwab <schwab@suse.de>
2350
2351 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
2352
2353 2001-11-17 Richard M. Stallman <rms@gnu.org>
2354
2355 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
2356
2357 2001-11-17 Jason Rumney <jasonr@gnu.org>
2358
2359 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
2360
2361 2001-11-17 Gerd Moellmann <gerd@gnu.org>
2362
2363 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
2364 with invalid position.
2365
2366 2001-11-16 Richard M. Stallman <rms@gnu.org>
2367
2368 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
2369
2370 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
2371 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
2372 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
2373
2374 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
2375
2376 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
2377
2378 * fileio.c (build_annotations): Split off the tail.
2379 (build_annotations_2): New fun. Extracted from build_annotations.
2380 (Fwrite_region): Split the call to build_annotations into two
2381 calls to build_annotations and build_annotations_2.
2382
2383 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2384
2385 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
2386 clear_waiting_for_input with argument.
2387
2388 * xterm.h (x_update_cursor): Remove duplicated prototype.
2389
2390 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
2391
2392 * xterm.c (waiting_for_input): Remove unnecessary declaration.
2393
2394 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
2395
2396 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
2397
2398 * fileio.c (choose_write_coding_system): New fun, extracted
2399 from Fwrite_region.
2400 (Fwrite_region): Use it.
2401
2402 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
2403 (funcall_lambda, run_hook_with_args): Make static and add prototype.
2404 (ml_apply, find_handler_clause): Add prototype.
2405
2406 2001-11-16 Eli Zaretskii <eliz@gnu.org>
2407
2408 * config.in: Add #undef HAVE_COFF_H.
2409
2410 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
2411 Required for ISC 4.1.
2412
2413 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
2414
2415 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
2416 Andrew Wiseman <a.wiseman@btclick.com>.
2417
2418 2001-11-16 Kim F. Storm <storm@cua.dk>
2419
2420 The following changes are made to clean up the various internal
2421 references to the fringes to actually use the term `fringe' for
2422 them. Previously, they were called `flags areas', `bitmap areas',
2423 `left/right side of windows', or implicitly as `flags' or
2424 `bitmaps':
2425
2426 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
2427 Comments fixed. Use renamed symbols.
2428
2429 * dispnew.c: Comment fix. Use renamed symbols.
2430
2431 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
2432 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
2433 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
2434
2435 * msdos.c: Comment fix.
2436
2437 * w32fns.c: Use renamed symbols.
2438
2439 * w32term.c: Comment fixes. Use renamed symbols.
2440 (fringe_bitmap_type): Renamed from bitmap_type.
2441 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2442 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
2443 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2444
2445 * w32term.h: Comment fixes. Use renamed symbols.
2446 (fringes_extra): Renamed from flags_areas_extra.
2447 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2448 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2449 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2450 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
2451 (FRAME_X_LEFT_FRINGE_WIDTH):
2452 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2453 (FRAME_X_RIGHT_FRINGE_WIDTH):
2454 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
2455
2456 * widget.c: Use renamed symbols.
2457
2458 * window.c: Comment fixes. Use renamed symbols.
2459 (coordinates-in-window-p): Doc fix.
2460
2461 * xdisp.c: Comment fixes. Use renamed symbols.
2462
2463 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
2464
2465 * xfns.c: Use renamed symbols.
2466
2467 * xterm.c: Comment fixes. Use renamed symbols.
2468 (fringe_bitmap_type): Renamed from bitmap_type.
2469 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2470 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
2471 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2472
2473 * xterm.h: Comment fixes. Use renamed symbols.
2474 (fringes_extra): Renamed from flags_areas_extra.
2475 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2476 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2477 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2478 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
2479 (FRAME_X_LEFT_FRINGE_WIDTH):
2480 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2481 (FRAME_X_RIGHT_FRINGE_WIDTH):
2482 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
2483
2484 2001-11-15 Jason Rumney <jasonr@gnu.org>
2485
2486 * w32menu.c (add-menu-item): Make help_echo and radio buttons
2487 work for most menu items. From David Ponce
2488 <david.ponce@wanadoo.fr>.
2489
2490 2001-11-15 Gerd Moellmann <gerd@gnu.org>
2491
2492 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
2493 Some x_set_* function expect to be called even if old and new
2494 value are equal.
2495
2496 * xdisp.c (build_desired_tool_bar_string): Accept zero
2497 tool_bar_button_relief.
2498
2499 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
2500
2501 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
2502
2503 * xterm.c (x_draw_bar_cursor): If the background color of the
2504 glyph under the cursor equals the frame's cursor color, use
2505 the glyph's foreground color for drawing the bar cursor.
2506
2507 * dispnew.c (direct_output_forward_char): Fix character/byte
2508 position comparison.
2509
2510 2001-11-15 Miles Bader <miles@gnu.org>
2511
2512 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
2513 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
2514 Update arguments to find_field.
2515 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
2516 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
2517 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
2518 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
2519
2520 2001-11-14 Richard M. Stallman <rms@gnu.org>
2521
2522 * editfns.c (Fpropertize): Allow call with 1 arg.
2523
2524 * dispextern.h (image_background, image_background_transparent):
2525 Conditionalize on HAVE_X_WINDOWS.
2526
2527 2001-11-13 Richard M. Stallman <rms@gnu.org>
2528
2529 * print.c (Fprin1_to_string): Doc fix.
2530
2531 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
2532
2533 * floatfns.c (Fceiling, Ffloor): Doc fixes.
2534
2535 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
2536
2537 * fileio.c (Ffile_accessible_directory_p): Doc fix.
2538
2539 * eval.c (syms_of_eval): Doc fix.
2540
2541 * coding.c (syms_of_coding): Doc fix.
2542
2543 * doc.c (Fsnarf_documentation): Doc fix.
2544
2545 * dispnew.c (syms_of_display): Doc fix.
2546
2547 * category.c (Fget_unused_category): Doc fix.
2548
2549 * buffer.c (syms_of_buffer): Doc fixes.
2550
2551 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
2552
2553 * print.c (prin1, print): Doc fix.
2554
2555 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2556
2557 * fontset.h: Remove declarations of variables
2558 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
2559
2560 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
2561 `Vclip_large_size_font'.
2562
2563 2001-11-13 Jason Rumney <jasonr@gnu.org>
2564
2565 * w32fns.c: Doc fix.
2566
2567 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2568
2569 * xfaces.c (Fface_attributes_as_vector): Doc fix.
2570
2571 * w32fns.c (Fx_synchronize): Reindent.
2572
2573 * fns.c: Doc fix.
2574
2575 * emacs.c: Doc fix.
2576
2577 * coding.c: Doc fix.
2578
2579 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
2580 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
2581 `new style' [w/`doc:' keyword].
2582
2583 * xmenu.c (x-popup-menu): Reindent.
2584 (x-popup-dialog): Likewise.
2585
2586 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
2587
2588 * xdisp.c (Fdump_tool_bar_row): Reindent.
2589
2590 * minibuf.c (Fminibuffer_complete_word): Reindent.
2591 (Fminibuffer_complete_and_exit): Likewise.
2592 (Fminibuffer_completion_help): Likewise.
2593 (Fminibuffer_message): Likewise.
2594
2595 * fns.c (Freverse): Reindent.
2596
2597 * eval.c (Fif): Reindent.
2598 (Fand): Likewise.
2599
2600 * editfns.c (Fuser_real_login_name): Reindent.
2601 (Finsert_buffer_substring): Likewise.
2602 (Fcompare_buffer_substrings): Likewise.
2603 (Fsubst_char_in_region): Likewise.
2604
2605 * dispnew.c (Fsit_for): Reindent.
2606 (Fframe_or_buffer_changed_p): Likewise.
2607 (Finternal_show_cursor_p): Likewise.
2608 (syms_of_display): Likewise.
2609
2610 * alloc.c (Flist): Reindent.
2611 (Fvector): Likewise.
2612
2613 2001-11-12 Richard M. Stallman <rms@gnu.org>
2614
2615 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
2616 LeaveNotify events. Only FocusIn and FocusOut do that now.
2617 (x_display_and_set_cursor): Do display hollow cursors in active
2618 minibuffer windows when they are not selected.
2619
2620 2001-11-12 Jason Rumney <jasonr@gnu.org>
2621
2622 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
2623 * w32term.c: Change doc-string comments to `new style'.
2624 [w/`doc:' keyword]. Doc fixes.
2625
2626 * w32fns.c: Don't define max.
2627 (Fx_open_connection): Only execute once.
2628
2629 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2630
2631 * ccl.c: Change macros to use do-while block instead of if-else.
2632 Use braces to follow GNU Coding Standards.
2633
2634 2001-11-11 Richard M. Stallman <rms@gnu.org>
2635
2636 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
2637
2638 * lread.c (read_escape): Use end_of_file_error for reporting eof.
2639
2640 * insdel.c (replace_range): Use adjust_markers_for_replace
2641 instead of adjust_markers_for_delete and adjust_markers_for_insert.
2642
2643 * intervals.h: Declare set_text_properties and set_text_properties_1.
2644
2645 * textprop.c (set_text_properties_1): New subroutine
2646 broken out of set_text_properties.
2647 (set_text_properties): Use set_text_properties_1.
2648
2649 * intervals.c (graft_intervals_into_buffer):
2650 Use set_text_properties_1 to clear out properties.
2651
2652 * search.c (Freplace_match): Use replace_range to insert
2653 and delete. Don't request property inheritance from
2654 surrounding text.
2655
2656 2001-11-10 Jason Rumney <jasonr@gnu.org>
2657
2658 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
2659 vertical fonts. Allow them if face name is explicitly specified.
2660 Do not give up if we find a font that cannot be converted to an xlfd.
2661
2662 2001-11-10 Gerd Moellmann <gerd@gnu.org>
2663
2664 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
2665 instead of malloc/free.
2666
2667 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2668
2669 * xfaces.c (merge_face_vectors): Use braces to follow GNU
2670 Coding Standards.
2671 (Finternal_set_lisp_face_attribute): Likewise.
2672
2673 * buffer.c (Fbury_buffer): Likewise.
2674
2675 * indent.c (current_column_1): Remove unused variable `prev_col'.
2676
2677 * coding.c (encode_coding): Use precomputed value of `src'.
2678 (encode_coding): Remove unused variable `src_end'.
2679 (code_convert_region): Remove unused variables `count'.
2680
2681 2001-11-07 Jason Rumney <jasonr@gnu.org>
2682
2683 * w32term.c (x_display_and_set_cursor): Do not move system caret
2684 if cursor_glyph is NULL.
2685
2686 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2687
2688 * keymap.c (access_keymap): Fix compilation error.
2689
2690 2001-11-07 Miles Bader <miles@gnu.org>
2691
2692 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
2693
2694 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2695
2696 * intervals.c (graft_intervals_into_buffer):
2697 Remove #ifdef'd-out code.
2698 (graft_intervals_into_buffer): Remove unused variable `middle'.
2699
2700 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
2701 code (eval-current-buffer).
2702 Change doc-string comments to `new style' [w/`doc:' keyword].
2703
2704 2001-11-06 Richard M. Stallman <rms@gnu.org>
2705
2706 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
2707
2708 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
2709
2710 * lread.c (read1): Fix behavior with nested backquoting.
2711
2712 * keyboard.c (make_lispy_event): Check integerness and fix
2713 Lisp_Object/int mixup.
2714
2715 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2716
2717 * fns.c (copy_hash_table): Remove unused variable `v'.
2718
2719 * fontset.c (fontset_font_pattern): Remove unused variable
2720 `family_registry'.
2721
2722 * indent.c (current_column_1): Remove unused variable `prev_col'.
2723
2724 2001-11-05 Richard M. Stallman <rms@gnu.org>
2725
2726 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
2727
2728 * buffer.c (Fkill_buffer): Don't delete auto save file
2729 if buffer is modified.
2730
2731 2001-11-05 Andrew Innes <andrewi@gnu.org>
2732
2733 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
2734 CHECK_NUMBER_CDR.
2735
2736 2001-11-05 Richard M. Stallman <rms@gnu.org>
2737
2738 * unexelf.c (unexec): Minor changes; clean up comments.
2739
2740 2001-11-05 Sam Steingold <sds@gnu.org>
2741
2742 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
2743
2744 2001-11-05 Andreas Schwab <schwab@suse.de>
2745
2746 * sound.c (sound_perror): Save errno from being clobbered.
2747
2748 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
2749
2750 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
2751 the program image directly.
2752
2753 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2754
2755 * buffer.h (Fbuffer_local_value): Add prototype.
2756
2757 2001-11-04 Richard M. Stallman <rms@gnu.org>
2758
2759 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
2760 and CHECK_BUFFER.
2761
2762 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
2763 (record_char): Likewise.
2764
2765 * keyboard.c (make_lispy_event): Don't insist a drag event must
2766 move to a different buffer position. Instead, check for moving at
2767 least double_click_fuzz.
2768
2769 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
2770
2771 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
2772
2773 * indent.c (current_column_1, Fmove_to_column): Separate the code
2774 for display-table glyphs from the code buffer text, to fix
2775 bugs in the former.
2776
2777 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
2778
2779 * buffer.c (Fbuffer_local_value): New function.
2780 (syms_of_buffer): Defsubr it.
2781
2782 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
2783 value of `cursor-in-non-selected-windows'.
2784
2785 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
2786 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
2787 (syms_of_xdisp): Initialize it.
2788
2789 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2790
2791 * xfns.c (Fx_create_frame): Doc fix.
2792
2793 * coding.c: Change doc-string comments to `new style' [w/`doc:'
2794 keyword].
2795
2796 * eval.c (top_level_value, top_level_set): Remove commented and
2797 #ifdef'd-out code.
2798 (Fdefvar): Fix usage in doc-string.
2799
2800 2001-11-03 Richard M. Stallman <rms@gnu.org>
2801
2802 * xfns.c: Include unistd.h, if it exists.
2803
2804 * editfns.c: Move the include of ctype.h after unistd.h.
2805
2806 * gmalloc.c: Test BROKEN_PROTOTYPES.
2807
2808 2001-11-03 Ken Raeburn <raeburn@gnu.org>
2809
2810 * lisp.h (CHECK_STRING_CAR): New macro.
2811 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
2812 treating XCAR and XCDR as lvalues.
2813 (openp): Use CHECK_STRING_CAR.
2814 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
2815
2816 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
2817
2818 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
2819 (SIGMASKTYPE): Define.
2820
2821 * syssignal.h (sigunblock): Don't define if already defined.
2822
2823 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2824
2825 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
2826 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
2827 Fix typos in comments.
2828
2829 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
2830 and #ifdef'd-out code.
2831 Fix and reindent comments.
2832
2833 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
2834
2835 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
2836 argument `i' in macros.
2837
2838 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
2839 `i' in macros.
2840
2841 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2842 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
2843 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
2844 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
2845 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
2846 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2847 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
2848 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
2849 in macros.
2850
2851 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
2852 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
2853 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
2854 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
2855 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
2856 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
2857 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
2858 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
2859 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
2860 (remove unused second argument).
2861
2862 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
2863
2864 * syntax.c (describe_syntax): New wrapper.
2865 (Finternal_describe_syntax_value): Rename from describe_syntax.
2866 Don't insert space at front and \n at the end.
2867 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
2868
2869 * regex.c (re_wctype): Try to fix some warnings.
2870 (regcomp, regexec): Don't forget the __restrict.
2871
2872 2001-11-02 Richard M. Stallman <rms@gnu.org>
2873
2874 * textprop.c (Fget_char_property): Doc fix.
2875
2876 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2877
2878 * process.c (Fstart_process): Add usage to doc-string.
2879
2880 * data.c (Fsetq_default): Ditto.
2881
2882 * callint.c (Finteractive): Ditto.
2883
2884 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
2885
2886 * macros.c: Don't include keymap.h any more.
2887
2888 2001-11-01 Richard M. Stallman <rms@gnu.org>
2889
2890 * data.c (Fmake_local_variable): Doc fix.
2891
2892 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
2893 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
2894
2895 * keymap.c (Fdescribe_buffer_bindings): Print character property
2896 bindings along with or instead of the buffer local map.
2897 Make the overriding maps override what they should.
2898
2899 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2900
2901 * window.c (grow_mini_window): Fix typo in comment.
2902
2903 2001-11-01 Gerd Moellmann <gerd@gnu.org>
2904
2905 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
2906 (XTset_vertical_scroll_bar): Likewise.
2907
2908 * xfns.c (x_build_heuristic_mask): Use four_corners_best
2909 instead of IMAGE_BACKGROUND.
2910
2911 * xfns.c (four_corners_best): Reindent.
2912
2913 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2914 Handle :box so that it is possible to specify sexprs.
2915
2916 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2917
2918 * xfaces.c (Finternal_merge_in_global_face): Reindent.
2919 (Fface_font): Ditto.
2920 (Finternal_set_alternative_font_registry_alist): Ditto.
2921 (Ftty_suppress_bold_inverse_default_colors): Ditto.
2922
2923 * xfns.c (x-get-resource): Reindent.
2924
2925 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
2926
2927 * s/hpux11.h: New file.
2928
2929 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2930
2931 * emacs.c (USAGE1): Show command line option --no-window-system
2932 instead of --no-windows in usage.
2933 (standard_args): Rename --no-windows to --no-window-system.
2934 (bug_reporting_address): Follow Emacs coding conventions.
2935
2936 * eval.c (Fcommandp): Doc fix.
2937 Change doc-string comments to `new style' [w/`doc:' keyword].
2938
2939 * frame.c (Fframe_live_p): Doc fix.
2940
2941 * buffer.c (selective-display-ellipses): Doc fix.
2942
2943 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2944
2945 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
2946
2947 * xfaces.c (realize_x_face): If C is not a single-byte character,
2948 set the face's colors_copied_bitwise_p instead of the defaulted_p
2949 members which have a different meaning.
2950 (free_face_colors): Do nothing for a face whose colors have been
2951 copied bitwise.
2952
2953 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
2954
2955 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2956
2957 * marker.c, mocklisp.c: Change doc-string comments to `new style'
2958 [w/`doc:' keyword].
2959
2960 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2961
2962 * fns.c (require_unwind): Return Lisp_Object.
2963
2964 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2965
2966 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
2967 (last-input-char): Revert doc-string to be the same as the
2968 doc-string of `last-input-event'.
2969
2970 * xdisp.c: Fix typos in comments.
2971
2972 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2973
2974 * window.c (grow_mini_window): Handle case that the root
2975 window is already smaller than the nominal mininum height.
2976
2977 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
2978
2979 * emacs.c (main): Don't call keys_of_macros any more.
2980
2981 * lisp.h (keys_of_macros): Remove.
2982
2983 * macros.c (keys_of_macros): Remove.
2984
2985 * xfaces.c (Fface_attribute_relative_p): Declare args.
2986
2987 2001-10-30 Jason Rumney <jasonr@gnu.org>
2988
2989 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
2990 (enum_font_cb2): Ignore fonts with vertical orientation.
2991
2992 2001-10-30 Richard M. Stallman <rms@gnu.org>
2993
2994 * keyboard.c (Finput_pending_p): Doc fix.
2995
2996 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2997
2998 * xterm.c (x_after_update_window_line): Don't run the code
2999 clearing in borders for rows whose visible height is 0.
3000
3001 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
3002 resized_p flag is set. If not set, use the much less flickering
3003 method previously used.
3004
3005 * dispnew.c (change_frame_size_1): Set frame's resized_p.
3006
3007 * frame.h (struct frame) <resized_p>: New member.
3008
3009 * lread.c (to_multibyte): Ensure read_buffer is at least twice
3010 as large as the number of bytes to convert.
3011
3012 * lread.c (to_multibyte): New function.
3013 (read1): Use it.
3014
3015 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
3016
3017 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
3018
3019 2001-10-30 Gerd Moellmann <gerd@gnu.org>
3020
3021 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
3022 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
3023 if the row's fill_line_p is set and drawing the last glyph with
3024 DRAW_IMAGE_{RAISED,SUNKEN}.
3025
3026 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
3027
3028 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
3029
3030 * xmenu.c: Include coding.h and charset.h.
3031 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
3032 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
3033 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
3034 Explicitly set wv->help. Use `TRUE' rather than `True'.
3035 (menu_help_callback): Use empty_string.
3036
3037 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
3038 (Fx_popup_dialog): Explicitly init f.
3039 (w32_menu_display_help): Use empty_string.
3040
3041 2001-10-29 Richard M. Stallman <rms@gnu.org>
3042
3043 * fns.c (Frequire): Detect recursive try to require the same
3044 feature 3 or more levels deep, and get error.
3045 (require_unwind): New subroutine.
3046 (require_nesting_list): New variable.
3047 (syms_of_fns): Init and staticpro it.
3048
3049 * print.c (print_object): Clarify indication of insertion type.
3050
3051 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
3052
3053 * coding.c (syms_of_coding): Document that locale-coding-system is
3054 used for decoding input on X.
3055
3056 * window.c (Fscroll_left, Fscroll_right): Doc fix.
3057
3058 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3059
3060 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
3061 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
3062
3063 2001-10-29 Gerd Moellmann <gerd@gnu.org>
3064
3065 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
3066 use NO_CURSOR if cursor_in_non_selected_windows is false.
3067
3068 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
3069 the slant attribute if FRAME is t.
3070
3071 * xfns.c (x_set_internal_border_width): Set frame garbaged
3072 when X window doesn't exist yet.
3073
3074 * xterm.c (x_after_update_window_line): Clear internal border
3075 in different circumstances.
3076
3077 * xterm.c (XTread_socket) <KeyPress>: Don't use
3078 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
3079 <handa@etl.go.jp>.
3080
3081 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3082
3083 * m/ibms390.h: New file. From Adam Thornton
3084 <athornton@sinenomine.net>.
3085
3086 2001-10-28 Gerd Moellmann <gerd@gnu.org>
3087
3088 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
3089
3090 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
3091 a loop counter.
3092
3093 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3094
3095 * emacs.c: Use argv[0] instead of emacs when -t was specified.
3096
3097 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
3098 keyword].
3099 Fix typos in comments.
3100
3101 * emacs.c (bug_reporting_address): New function.
3102 Use it when displaying usage message.
3103
3104 * minibuf.c (read_minibuf): Remove unused external declaration of
3105 variable `Qread_only'.
3106
3107 * keymap.c (access_keymap): Remove unused variable `charset'.
3108
3109 2001-10-28 Miles Bader <miles@gnu.org>
3110
3111 * xfaces.c (merge_face_heights): Handle TO being relative as well.
3112 Remove #ifdef'd-out code.
3113 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
3114 (syms_of_xfaces): Initialize them.
3115
3116 2001-10-27 Jason Rumney <jasonr@gnu.org>
3117
3118 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
3119 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
3120 position using the system caret.
3121
3122 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
3123 (w32_system_caret_height, w32_system_caret_x)
3124 (w32_system_caret_y): New variables for tracking system caret.
3125 (w32_initialize): Initialize them.
3126 (x_display_and_set_cursor): Make system caret follow the active cursor.
3127
3128 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
3129 New messages types.
3130
3131 * w32term.c (note_mouse_highlight): Clear old help_echo.
3132
3133 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3134
3135 * xterm.c: Fix typo in a comment.
3136
3137 * emacs.c: Fix typos in comments.
3138 Remove unnecessary spaces.
3139 Change doc-string comments to `new style' [w/`doc:' keyword].
3140 (USAGE2): Fix typos in usage string.
3141
3142 * xterm.c: Fix typo in a comment.
3143
3144 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
3145 emacs.c.
3146
3147 2001-10-27 Gerd Moellmann <gerd@gnu.org>
3148
3149 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
3150 instead of 1/2 line_height in the heuristic for skipping
3151 farther backward when target_y was not reached.
3152
3153 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
3154 Display errno only if non-zero.
3155 (sound_warning): New function.
3156 (vox_configure): Don't treat failing to set sample rate as error.
3157 (various places): Improve error messages.
3158
3159 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
3160
3161 * fileio.c (Faccess_file): Run the argument filename through
3162 Fexpand_file_name, before using it.
3163
3164 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
3165 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
3166
3167 2001-10-26 Gerd Moellmann <gerd@gnu.org>
3168
3169 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
3170
3171 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3172 Fix clearing in the case of scroll bars on the right.
3173
3174 2001-10-26 Juanma Barranquero <lektu@terra.es>
3175
3176 * w32gui.h (XImage): Add a dummy typedef.
3177
3178 2001-10-26 Gerd Moellmann <gerd@gnu.org>
3179
3180 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
3181
3182 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
3183
3184 * frame.c (Fframe_parameter): Fix last change.
3185
3186 * fileio.c: Revert last change (which removed old commented-out
3187 version of expand-file-name). Add a comment that explains why
3188 this old version should not be removed.
3189
3190 2001-10-25 Gerd Moellmann <gerd@gnu.org>
3191
3192 * frame.c (Fframe_parameter): Fix a bug whereby some
3193 ``artificial'' frame parameters, like `minibuffer' were not
3194 obtained by calling Fframe_parameters.
3195
3196 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
3197 cursor differently.
3198
3199 * xdisp.c (move_it_vertically_backward): Compute line height
3200 differently. Add heuristic to try to be more compatible to 20.x.
3201
3202 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
3203
3204 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
3205
3206 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
3207 boolean.
3208
3209 2001-10-25 Miles Bader <miles@gnu.org>
3210
3211 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
3212 BG is a pointer to a structure, not a structure.
3213 (gif_format, png_format): Add missing commas.
3214
3215 2001-10-24 Richard M. Stallman <rms@gnu.org>
3216
3217 * xfaces.c (Fface_attributes_as_vector): New function.
3218 (syms_of_xfaces): Defsubr it.
3219
3220 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3221
3222 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
3223 variable `area'.
3224
3225 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3226
3227 * search.c (scan_newline): Remove unused variable `selective_display'.
3228
3229 2001-10-25 Miles Bader <miles@gnu.org>
3230
3231 * dispextern.h (struct image): Add `background',
3232 `background_valid', and `background_transparent' fields.
3233 (image_background, image_background_transparent): New declarations.
3234 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
3235 * xfns.c (image_background, image_background_transparent)
3236 (four_corners_best): New functions.
3237 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
3238 (gs_format): Add `:background' entry.
3239 (lookup_image): Set IMG's background color if specified.
3240 (pbm_load, xbm_load_image, png_load): Set IMG's background field
3241 when appropriate.
3242 (x_clear_image_1): Reset `background_valid' and
3243 `background_transparent_valid' fields.
3244 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
3245 calculating it here. Set IMG's background_transparent field.
3246 (enum xpm_keyword_index): Add XPM_BACKGROUND.
3247 (enum png_keyword_index): Add PNG_BACKGROUND.
3248 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
3249 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
3250 (enum gif_keyword_index): Add GIF_BACKGROUND.
3251 (enum gs_keyword_index): Add GS_BACKGROUND.
3252 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
3253 Pre-calculate image background color where necessary.
3254 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
3255 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
3256 color to use for image glyph reliefs.
3257
3258 2001-10-24 Gerd Moellmann <gerd@gnu.org>
3259
3260 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
3261 in full-width rows.
3262
3263 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3264 Fix clearing of area not covered by scroll bar.
3265
3266 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3267
3268 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
3269 and `real_start'.
3270 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
3271 (glyph_rect): Remove unused variable `area'.
3272
3273 2001-10-24 Gerd Moellmann <gerd@gnu.org>
3274
3275 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
3276
3277 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
3278 (row_containing_pos): Take additional argument DY.
3279 Treat rows ending in middle of char differently.
3280 (display_line): Handle tabs on window systems differently.
3281
3282 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
3283 with additional argument.
3284
3285 * dispextern.h (row_containing_pos): Adjust prototype.
3286
3287 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
3288 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
3289 (try_window_id, try_window_reusing_current_matrix)
3290 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
3291 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
3292
3293 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3294
3295 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
3296 gnuemacs).
3297 (HAVE_BOXES): Fix typo in comment.
3298 (push_menu_pane): Fix typo in comment.
3299
3300 * xdisp.c: (display_prop_string_p): Remove unused local declaration
3301 of `Qwhen'.
3302 (single_display_prop_string_p): Remove unused local declarations
3303 of `Qwhen' and `Qmargin'.
3304 (string_buffer_position): Remove unused variable `around'.
3305 (store_frame_title): Remove unused variable `width'.
3306
3307 * window.c: Don't define max.
3308 (coordinates_in_window): Remove unused variable `uy'.
3309
3310 * widget.c: Don't define max.
3311
3312 * process.c: Don't define max.
3313 (create_process): Remove unused variable `buffer'.
3314
3315 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3316
3317 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
3318
3319 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
3320
3321 * xfaces.c (Finternal_set_lisp_face_attribute)
3322 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
3323 frame is on a windowed display.
3324
3325 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3326
3327 * dispnew.c (sync_window_with_frame_matrix_rows):
3328 Fix handling of windows which aren't full-width, fix handling
3329 of marginal areas.
3330
3331 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
3332
3333 2001-10-23 Andreas Schwab <schwab@suse.de>
3334
3335 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
3336 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
3337
3338 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3339
3340 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
3341 REAL_END. Notice if cursor gets overwritten.
3342 (notice_overwritten_cursor): Take X positions as parameters.
3343 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3344 around call to x_draw_glyphs.
3345
3346 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3347
3348 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
3349 instead of C) and usage.
3350
3351 * editfns.c (char-to-string): Fix argument names (use CHAR instead
3352 of C) and usage.
3353
3354 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
3355 `left', `max_width' and `max_height'.
3356
3357 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3358
3359 * xdisp.c (display_line): For a tab continued to the next line,
3360 set row's ends_in_middle_of_char_p.
3361
3362 2001-10-22 Gerd Moellmann <gerd@gnu.org>
3363
3364 * xdisp.c (display_line): Fix computation of continuation lines
3365 width for TABs.
3366
3367 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3368
3369 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
3370 `Qlaplace'.
3371
3372 * fileio.c: Remove unused code.
3373
3374 2001-10-22 Miles Bader <miles@gnu.org>
3375
3376 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3377 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
3378 Remove `DOC_STRINGS_IN_COMMENTS' cases.
3379
3380 2001-10-21 Jason Rumney <jasonr@gnu.org>
3381
3382 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
3383
3384 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3385
3386 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
3387 (Finsert_string): Avoid the multi-line string literals warning.
3388
3389 2001-10-22 Miles Bader <miles@gnu.org>
3390
3391 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
3392 (Fdocumentation): Don't use it.
3393 (syms_of_doc): Don't initialize it.
3394
3395 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
3396 * print.c (Fwith_output_to_temp_buffer): Likewise.
3397 * window.c (Fsave_window_excursion): Likewise.
3398 * editfns.c (Fsave_excursion, Fsave_current_buffer)
3399 (Fsave_restriction): Likewise.
3400 * eval.c (Frun_hooks, Frun_hook_with_args)
3401 (Frun_hook_with_args_until_failure)
3402 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
3403 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
3404 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
3405 (Funwind_protect, Fcondition_case): Likewise.
3406 * coding.c (Ffind_operation_coding_system): Likewise.
3407 * keyboard.c (Ftrack_mouse): Likewise.
3408
3409 2001-10-21 Miles Bader <miles@gnu.org>
3410
3411 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
3412 (Fmake_hash_table): Add usage: string to doc string.
3413 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
3414 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
3415 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
3416 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
3417 (Fml_prefix_argument_loop): Likewise.
3418
3419 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3420
3421 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
3422
3423 * sysdep.c (init_sys_modes): Change doc-string comments to `new
3424 style' [w/`doc:' keyword].
3425
3426 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
3427 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
3428 comments to `new style' [w/`doc:' keyword].
3429
3430 2001-10-21 Jason Rumney <jasonr@gnu.org>
3431
3432 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
3433
3434 * w32term.c (remember_mouse_glyph): New function.
3435 (w32_mouse_position): Use it.
3436 (note_mouse_movement): If the mouse moved off the glyph, remember
3437 its new position.
3438
3439 * w32term.h (struct w32_output): Correct spelling of x_compatible.
3440 (w32_display_info): Add mouse_face_overlay.
3441
3442 * w32term.c (notice_overwritten_cursor): Renamed from
3443 note_overwritten_text_cursor. Rewritten to take glyph widths into
3444 account.
3445 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3446 (fast_find_string_pos): New function.
3447 (fast_find_position): Return the correct vpos. Add parameter
3448 STOP. In the final row, stop before glyphs having STOP as object.
3449 Don't consider glyphs that are not from a buffer.
3450 (fast_find_position) [0]: Add a presumably more correct version
3451 for after 21.1.
3452 (expose_window_tree, expose_frame): Don't compute intersections here.
3453 (expose_window): Do it here instead.
3454 (expose_window_tree, expose_window, expose_line): Return 1 when
3455 overwriting mouse-face.
3456 (expose_window): If W is the window currently being updated, mark
3457 the frame garbaged.
3458 (expose_frame): If mouse-face was overwritten, redo it.
3459 (x_use_underline_position_properties): New variable.
3460 (syms_of_xterm): DEFVAR_BOOL it.
3461 (x_draw_glyph_string): Add comment to use it in future.
3462 (x_draw_glyph_string): Restore clipping after drawing box.
3463 Fix a computation of the underline position.
3464 (w32_get_glyph_string_clip_rect): Minor cleanup.
3465 (x_fill_stretch_glyph_string): Remove an assertion.
3466 (x_produce_glyphs): Don't convert multibyte characters
3467 to unibyte characters in unibyte buffers.
3468 (cursor_in_mouse_face_p): New function.
3469 (x_draw_stretch_glyph_string): Use it to choose a different GC
3470 when drawing a cursor within highlighted text. Don't draw
3471 background again if it has already been drawn.
3472 (x_draw_glyph_string_box): Don't draw a full-width
3473 box just because the glyph row's full_width_p flag is set.
3474 (x_draw_glyphs): Fix computation of rightmost x for
3475 full-width rows.
3476 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3477 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
3478 change bottom shadow accordingly. Some cleanup.
3479 (x_update_window_end): Handle overwritten mouse face
3480 also for tool bar windows.
3481 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3482 DRAW is DRAW_IMAGE_RAISED.
3483 (clear_mouse_face): Return 1 if text with mouse face was
3484 actually redrawn. Make the function static. Reset
3485 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
3486 optimize away highlighting if we pass over that same overlay again.
3487 (note_mouse_highlight): Call mouse_face_overlay_overlaps
3488 to detect a case where we have to highlight a different region
3489 despite not having left the currently highlighted region.
3490 Set mouse_face_overlay in the x_display_info. Avoid changing the
3491 mouse pointer shape when show_mouse_face has already done it, or
3492 there is no need. Handle mouse-face and help-echo in strings.
3493 (glyph_rect): New function.
3494 (w32_mouse_position): Use it to raise the threshold for mouse
3495 movement event generation.
3496 (w32_initialize_display_info): Initialize the x_display_info's
3497 mouse_face_overlay.
3498 (w32_set_vertical_scroll_bar): Don't clear a zero height
3499 or width area.
3500 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3501 a widget to zero height.
3502
3503 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
3504 Protect unibyte strings created by replacing their multibyte
3505 equivalents in menu_items.
3506 (w32_menu_show): Don't overwrite an item's name with its key
3507 description in case the description is a multibyte string.
3508 (single_submenu): Some cleanup.
3509
3510 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
3511 (postprocess_image): New function.
3512 (lookup_image): Call it for all image types except PostScript.
3513 (x_kill_gs_process): Call postprocess_image.
3514 (tiff_error_handler, tiff_warning_handler): New functions.
3515 (tiff_load): Install them as handlers.
3516 (x_kill_gs_process): Recognize if someone has cleared the image
3517 cache under us.
3518 (valid_image_p): Protect better against invalid image
3519 specifications. Previous code could signal an error.
3520 (Fx_hide_tip, Fshow_tip): Doc fix.
3521 (Fv_max_tooltip_size): New variable.
3522 (syns_of_xfns): DEFVAR_LISP it.
3523 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
3524 window buffer to *tip* right after creating the frame. Set frame's
3525 window_width. Use a maximum tooltip size specified by
3526 Vx_max_tooltip_size, if that has valid contents.
3527 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3528 Make sure the tooltip is completely visible.
3529 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3530 (Fx_create_frame): Adjust the frame's height for presence
3531 of the tool bar before calling x_figure_window_size.
3532 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
3533 when the window gets smaller.
3534 (x_set_foreground_color): Set frame's cursor_pixel.
3535 (x_set_foreground_color, x_set_background_color): Cleaned up.
3536 (x_set_font): Handle case of x_new_fontset returning the same name
3537 as before, although there was a change in fontsets.
3538
3539 2001-10-21 Miles Bader <miles@gnu.org>
3540
3541 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
3542 (Flogxor): Add usage: string to doc string.
3543 * charset.c (Fstring): Likewise.
3544 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
3545 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
3546
3547 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3548
3549 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
3550
3551 * alloc.c: Reindent DEFUNs with doc: keywords.
3552
3553 * abbrev.c (Finsert_abbrev_table_description): Reindent.
3554
3555 * frame.c: Change doc-string comments to `new style' [w/`doc:'
3556 keyword].
3557
3558 2001-10-20 Gerd Moellmann <gerd@gnu.org>
3559
3560 * (Version 21.1 released.)
3561
3562 2001-10-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3563
3564 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
3565
3566 * xdisp.c (invisible_text_between_p): Put prototype inside #if
3567 0 because unused.
3568
3569 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
3570 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
3571 Change doc-string comments to `new style' [w/`doc:' keyword].
3572
3573 2001-10-20 Miles Bader <miles@gnu.org>
3574
3575 The following changes remove the glyph_row `inverse_p' field,
3576 which is never set anymore, due to other changes:
3577
3578 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
3579 (reassert_line_highlight, change_line_highlight): Declarations removed.
3580 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
3581 (line_hash_code, row_equal_p, fake_current_matrices)
3582 (build_frame_matrix_from_leaf_window, update_frame_line)
3583 (update_frame_line, update_frame_line, update_frame_line):
3584 Don't use `inverse_p' field.
3585 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
3586 change_line_highlight_hook.
3587 (XTreassert_line_highlight, x_change_line_highlight):
3588 Functions removed.
3589 (x_fix_overlapping_area, x_write_glyphs, expose_area)
3590 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
3591 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
3592 `inverse_p' field.
3593 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
3594 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
3595 (w32_reassert_line_highlight, x_change_line_highlight):
3596 Functions removed.
3597 * w32console.c (reassert_line_highlight, change_line_highlight):
3598 Functions removed.
3599 (initialize_w32_display): Don't set reassert_line_highlight_hook
3600 or change_line_highlight_hook.
3601 (hl_mode): Function removed.
3602 (reset_terminal_modes, set_terminal_modes, update_begin)
3603 (update_end, w32_face_attributes, initialize_w32_display):
3604 (clear_frame, ins_del_lines): Don't call it.
3605 * termhooks.h (reassert_line_highlight_hook)
3606 (change_line_highlight_hook): Declarations removed.
3607 * term.c (reassert_line_highlight_hook)
3608 (change_line_highlight_hook): Variables removed.
3609 (reassert_line_highlight, change_line_highlight): Functions removed.
3610 * msdos.c (IT_reassert_line_highlight)
3611 (IT_change_line_highlight): Functions removed.
3612 (internal_terminal_init): Don't set reassert_line_highlight_hook
3613 or change_line_highlight_hook.
3614 (highlight): Variable removed.
3615 (IT_set_face, IT_update_begin, IT_update_end)
3616 (IT_set_terminal_modes): Don't set or use it.
3617
3618 The following changes remove inverse-video support for terminals
3619 that use a `magic cookie' standout mode. Due to changes in the
3620 way mode-lines are displayed, such support no longer works
3621 anyway, and it's probable that almost no one uses such terminals
3622 anymore:
3623
3624 * term.c (standout_requested): Variable removed.
3625 (update_end, highlight_if_desired): Don't use it.
3626 (chars_wasted, copybuf): Variables removed.
3627 (write_standout_marker): Function removed.
3628 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
3629 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
3630 Don't use `chars_wasted' or `copybuf'.
3631 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
3632 Set `costs_set' to true.
3633 (cursor_to, clear_end_of_line): Test `costs_set' instead of
3634 `chars_wasted'.
3635 (clear_end_of_line): Function removed.
3636 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
3637 (clear_to_end): Call `clear_end_of_line' instead of
3638 `clear_end_of_line_raw'.
3639 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
3640 (term_init): Don't set them.
3641 Turn off any standout/underline modes that require magic cookies.
3642 (ins_del_lines, highlight_if_desired, background_highlight)
3643 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
3644 Remove special processing for magic-cookie standout modes.
3645 (turn_off_face, turn_on_face): Remove special processing for
3646 underline magic-cookie glitch.
3647
3648 2001-10-19 Richard M. Stallman <rms@gnu.org>
3649
3650 * eval.c (syms_of_eval): Doc fixes.
3651
3652 2001-10-19 Gerd Moellmann <gerd@gnu.org>
3653
3654 * xdisp.c (redisplay_internal): Don't clear echo area if the
3655 mini-window is selected.
3656
3657 2001-10-19 Miles Bader <miles@gnu.org>
3658
3659 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
3660 doesn't take precedence if the affected property's value is nil.
3661
3662 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
3663
3664 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
3665 with fields and suggest using `forward-line' to avoid them.
3666 * editfns.c (Fline_beginning_position, Fline_end_position):
3667 Clarify documentation.
3668
3669 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
3670
3671 * keymap.c (current_minor_maps): `override' only shadows its
3672 correspondent in minor-mode-map-alist, not the whole tail.
3673
3674 2001-10-18 Andrew Innes <andrewi@gnu.org>
3675
3676 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
3677 optimization. The fontp->encoding array was not being initialized
3678 correctly when compiled with optimizations by MSVC.
3679
3680 2001-10-18 Gerd Moellmann <gerd@gnu.org>
3681
3682 * xdisp.c (display_line): Indicate empty lines in active mini-window.
3683
3684 2001-10-17 Andrew Innes <andrewi@gnu.org>
3685
3686 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
3687
3688 * w32fns.c (w32_load_system_font): Cache codepage for font, in
3689 font_info.charset field.
3690
3691 * w32term.c (w32_encode_char): Get cached codepage from font_info,
3692 rather than working it out by calling w32_codepage_for_font for
3693 every glyph.
3694
3695 2001-10-17 Andrew Innes <andrewi@gnu.org>
3696
3697 * w32term.c (w32_read_socket): Determine clipping rectangle for
3698 the entire frame, including areas covered by scrollbars and the
3699 menubar. This avoids internal arguments about whether a frame is
3700 fully obscured or not.
3701
3702 2001-10-17 Gerd Moellmann <gerd@gnu.org>
3703
3704 * xdisp.c (try_window_id): Undo last change. Give up if
3705 window ends in strings.
3706
3707 * xdisp.c (try_window_id): Don't display lines after the window
3708 end if the rest of the window after the window end was already blank.
3709
3710 * xdisp.c (try_window_id): Remove code that was only there
3711 for the release of 21.1.
3712
3713 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
3714
3715 2001-10-17 Miles Bader <miles@gnu.org>
3716
3717 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
3718 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
3719 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
3720 Change doc-string comments to `new style' [w/`doc:' keyword].
3721 (DOC_STRINGS_IN_COMMENTS): Macro removed.
3722 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
3723 out make-docfile.
3724
3725 2001-10-16 Miles Bader <miles@gnu.org>
3726
3727 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
3728
3729 2001-10-16 Gerd Moellmann <gerd@gnu.org>
3730
3731 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
3732 *scratch*.
3733
3734 2001-10-16 Ken Raeburn <raeburn@gnu.org>
3735
3736 Avoid the assumption that car and cdr slots of cons cells are
3737 addressable lvalues; this allows for easier experimentation with
3738 other lisp implementations that may not permit such accesses for
3739 various reasons. Not quite complete -- buffer.c still needs some
3740 work, and w32/mac files need rechecking -- so compile-time
3741 enforcement is left disabled for now.
3742
3743 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
3744 gcc with a union-based Lisp object rep. Redefine as no-op for now.
3745 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
3746 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
3747 (XSETCAR, XSETCDR): New macros.
3748 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
3749 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
3750 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
3751 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
3752 XSETCDR.
3753 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
3754 * buffer.c (record_buffer, Fbury_buffer)
3755 (swap_out_buffer_local_variables, recenter_overlay_lists)
3756 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
3757 fields of a cons cell respectively.
3758 * callint.c (quotify_args, Fcall_interactively): Likewise.
3759 * ccl.c (Fregister_code_conversion_map): Likewise.
3760 * coding.c (detect_coding_system): Likewise.
3761 * composite.c (get_composition_id, make_composition_value_copy):
3762 Likewise.
3763 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
3764 (swap_in_symval_forwarding, set_internal, Fset_default)
3765 (Fmake_variable_buffer_local, Fmake_local_variable)
3766 (Fmake_variable_frame_local): Likewise.
3767 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
3768 * keymap.c (Fset_keymap_parent, store_in_keymap)
3769 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
3770 * minibuf.c (get_minibuffer): Likewise.
3771 * search.c (Fmatch_data): Likewise.
3772 * textprop.c (extend_property_ranges): Likewise.
3773 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
3774 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
3775 Likewise.
3776 * w32term.c (x_delete_display): Likewise.
3777 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
3778 Likewise.
3779 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
3780 * doc.c (store_function_docstring): Use XSETCARFASTINT.
3781 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
3782 (Fread_file_name): Use XSETCAR.
3783 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
3784 CHECK_NUMBER_CDR.
3785 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
3786 * frame.c (Fmake_terminal_frame): Use XSETCDR.
3787 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
3788 CHECK_NUMBER_CDR.
3789 * keyboard.c (read_char): Alter list traversal to avoid taking the
3790 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
3791 (parse_menu_item): Use XSETCAR and XSETCDR.
3792 (reach_char_x_menu_prompt): Use XSETCAR.
3793 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
3794 (Fcommand_execute): Use XSETCDR.
3795 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
3796 (openp): Change list traversal to avoid using XCAR as lvalue.
3797 (read_list): Use XSETCDR.
3798 * process.c (wait_reading_process_input): Change wait_for_cell
3799 handling to avoid taking addresses of cons cell slots.
3800 * xselect.c (x_own_selection, x_handle_selection_clear)
3801 (x_clear_frame_selections): Use XSETCDR.
3802 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
3803 (x_handle_property_notify, x_get_foreign_selection)
3804 (x_handle_selection_notify): Use XSETCAR.
3805
3806 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3807
3808 * buffer.c: Put doc strings in comments.
3809
3810 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
3811
3812 2001-10-15 Sam Steingold <sds@gnu.org>
3813
3814 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
3815
3816 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3817
3818 * process.c (process-inherit-coding-system-flag)
3819 (get-buffer-process): Do not confuse make-docfile with doc strings
3820 in comment.
3821
3822 * editfns.c (Fchar_to_string): Make doc string consistent with
3823 arguments. Put doc strings in comments.
3824
3825 * abbrev.c, minibuf.c: Put doc strings in comments.
3826
3827 2001-10-15 Gerd Moellmann <gerd@gnu.org>
3828
3829 * window.c (window_loop): Don't check for Fother_buffer returning nil.
3830
3831 * window.c (select_window_1): Unfreeze window start. Remove a
3832 doubled test for WINDOW being live.
3833
3834 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3835
3836 * fns.c (Fmapconcat): Fix typo in a doc string.
3837
3838 * dispnew.c (Fsleep_for): Fix typo in a doc string.
3839
3840 2001-10-15 Gerd Moellmann <gerd@gnu.org>
3841
3842 * xterm.c (x_draw_glyph_string): Restore clipping after
3843 drawing box.
3844
3845 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3846
3847 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
3848
3849 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
3850
3851 * indent.c (skip_invisible): Use new retval of
3852 TEXT_PROP_MEANS_INVISIBLE.
3853
3854 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
3855 If a parent is reached and noinherit is set, exit immediately.
3856 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
3857
3858 * s/ms-w32.h (EXEC_SUFFIXES):
3859 * s/msdos.h (EXEC_SUFFIXES):
3860 * process.h (EXEC_SUFFIXES): Remove.
3861
3862 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
3863 (decode_suffixes): Remove.
3864
3865 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
3866 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
3867 (invisible_ellipsis_p): Remove.
3868
3869 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
3870 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
3871 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
3872 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
3873 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
3874
3875 2001-10-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3876
3877 * lisp.h (Ftop_level): Add prototype.
3878
3879 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
3880 (XTread_socket): Improve style of comments to follow other
3881 comments.
3882
3883 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
3884 is already prototyped in included lisp.h).
3885
3886 * frame.c (Fset_mouse_position): Improve style of comment to
3887 follow other comments.
3888 (Fset_mouse_pixel_position): Improve style of comment to follow
3889 other comments.
3890 (Fmake_frame_visible): Doc fix and typo in comment.
3891 (Fmake_frame_invisible): Doc fix and typo in comment.
3892 (Ficonify_frame): Fix typo in comment.
3893
3894 2001-10-14 Gerd Moellmann <gerd@gnu.org>
3895
3896 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
3897 * term.c, alloc.c: Put doc strings in comments.
3898
3899 2001-10-13 Gerd Moellmann <gerd@gnu.org>
3900
3901 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
3902 Provide definitions for doc strings in comments.
3903
3904 * fns.c: Put doc strings in comments.
3905
3906 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
3907
3908 * dired.c (file_name_completion): Ignore a candidate directory if
3909 it matches an element in completion-ignored-extensions that ends
3910 in a slash.
3911 (syms_of_dired) <completion-ignored-extensions>: Mention the above
3912 feature in the doc string.
3913 (Ffile_name_completion): Ditto.
3914
3915 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
3916
3917 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
3918
3919 * xfns.c (syms_of_xfns): Update calls to Fprovide.
3920
3921 * lisp.h (Fprovide): Update prototype.
3922 (Ffeaturep, invisible_p): Remove.
3923
3924 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
3925 (DOLIST, LOOP_PROPVAL): New macros.
3926 (invisible_p, invisible_ellipsis_p): Use them.
3927 (invisible_noellipsis_p): New function.
3928 (syms_of_xdisp): Use empty_string.
3929
3930 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
3931
3932 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
3933 (syms_of_lread) <Vafter_load_alist>: Update docstring.
3934
3935 * print.c (Fwith_output_to_temp_buffer): Align with
3936 internal_with_output_to_temp_buffer.
3937 (print_preprocess): Use traverse_intervals_noorder.
3938 (print_object): Update call to traverse_intervals.
3939
3940 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
3941 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
3942
3943 * intervals.c (traverse_intervals_noorder): New function.
3944 (search_for_interval, count_intervals): Use it.
3945 (traverse_intervals): Use less stack space and drop `depth' arg.
3946
3947 * fns.c (Ffeaturep): Add new `subfeature' arg.
3948 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
3949 (Qsubfeatures): New var.
3950 (syms_of_fns): Initialize it.
3951
3952 * keymap.c (Fkey_description): Use empty_string.
3953 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
3954 (syms_of_keymap): Setup inheritance between maps.
3955 Don't export Sdescribe_bindings_internal any more.
3956
3957 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
3958
3959 2001-10-12 Gerd Moellmann <gerd@gnu.org>
3960
3961 * xterm.c (notice_overwritten_cursor): Renamed from
3962 note_overwritten_text_cursor. Rewritten to take glyph widths into
3963 account.
3964
3965 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
3966
3967 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
3968 multi-line strings without a trailing "\n\".
3969
3970 2001-10-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3971
3972 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
3973 defined.
3974
3975 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
3976
3977 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
3978
3979 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3980 * w32proc.c (sys_spawnve):
3981 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3982 * w32.c (check_windows_init_file):
3983 * sound.c (Fplay_sound):
3984 * emacs.c (init_cmdargs):
3985 * process.c (Fstart_process): Update calls to openp.
3986
3987 * callproc.c (Vexec_suffixes): New var.
3988 (Fcall_process): Update call to openp.
3989 (decode_suffixes): New function.
3990 (syms_of_callproc): Init exec-suffixes.
3991
3992 * lread.c (Vload_suffixes, default_suffixes): New vars.
3993 (openp): Take a lisp list of suffixes.
3994 Check for file-name-handlers even if the file was absolute already.
3995 (syms_of_lread): Declare load-suffixes.
3996 (Fload): Fix up call to openp.
3997 Don't bother checking for file-name-handler at the very beginning.
3998
3999 * keymap.h (Fcopy_keymap): Don't export.
4000
4001 * lisp.h (empty_string): Declare.
4002 (Vload_suffixes, Vexec_suffixes): Declare.
4003 (openp): Update prototype.
4004
4005 * emacs.c (empty_string): New var.
4006 (syms_of_emacs): Initialize it.
4007
4008 * search.c (wordify): Use it.
4009
4010 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
4011 selected window if it's not displayed there. Handle the case
4012 when the window is dedicated.
4013 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
4014
4015 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
4016
4017 * syntax.h (struct gl_state_s): Change the meaning of b_property.
4018 Remove left_ok and right_ok.
4019 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
4020 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
4021 new meaning of b_property.
4022
4023 * syntax.c (update_syntax_table): Simplify.
4024 (Fforward_comment): Don't skip quoted chars when going backward.
4025
4026 2001-10-11 Gerd Moellmann <gerd@gnu.org>
4027
4028 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
4029 in case I is of some unsigned type, in which case
4030 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
4031 comparison becomes bogus.
4032
4033 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
4034 (Fuser_full_name): Fix bug treating a float as a fixnum.
4035
4036 * data.c (Fstring_to_number): Use make_fixnum_or_float.
4037
4038 * lisp.h (make_fixnum_or_float): New macro.
4039
4040 * lisp.h (circular_list_error): Add prototype.
4041
4042 * data.c (Qcircular_list): New variable.
4043 (circular_list_error): New function.
4044 (syms_of_data): Initialize it Qcircular_list.
4045
4046 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
4047
4048 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
4049 * casefiddle.c, buffer.c: Include keymap.h.
4050
4051 2001-10-10 Gerd Moellmann <gerd@gnu.org>
4052
4053 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
4054 options. From Dave Love <d.love@dl.ac.uk>.
4055
4056 2001-10-09 Gerd Moellmann <gerd@gnu.org>
4057
4058 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
4059 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
4060
4061 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
4062 unsigned char.
4063 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
4064
4065 2001-10-08 Andrew Innes <andrewi@gnu.org>
4066
4067 * lisp.h [max]: Undef min and max before redefining them.
4068
4069 * w32gui.h: Do not undef min and max.
4070
4071 * w32heap.h: Do not undef min and max.
4072
4073 * s/ms-w32.h: Do not undef min and max.
4074
4075 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
4076
4077 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
4078
4079 2001-10-08 Sam Steingold <sds@gnu.org>
4080
4081 * keymap.c (current-active-maps): Quote newlines (compilation error).
4082
4083 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4084
4085 * Makefile.in (lisp, shortlisp): Replace bindings.el with
4086 bindings.elc, since otherwise doc strings in bindings.el get wrong
4087 offsets in etc/DOC.
4088
4089 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
4090
4091 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
4092
4093 * keyboard.h (map_prompt): Remove.
4094
4095 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
4096 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
4097
4098 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
4099
4100 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
4101
4102 * keyboard.c (map_prompt): Remove.
4103 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
4104 Use Fkeymap_prompt.
4105
4106 * keymap.h: New file. Extracted from lisp.h.
4107
4108 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
4109 (accessible_keymaps_1): New function.
4110 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
4111 (Fwhere_is_internal): Use Fcurrent_active_maps.
4112 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
4113 Insert in current buffer rather than standard-output.
4114 Don't call `help-mode'. Export to elisp.
4115 (describe_buffer_bindings): New wrapper.
4116 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
4117 and Sdescribe_buffer_bindings.
4118
4119 2001-10-08 Gerd Moellmann <gerd@gnu.org>
4120
4121 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
4122 Remove code setting signal handler.
4123
4124 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
4125 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
4126
4127 2001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4128
4129 * keyboard.c: Don't define min/max.
4130
4131 2001-10-08 Gerd Moellmann <gerd@gnu.org>
4132
4133 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
4134 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
4135 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
4136 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
4137 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
4138 Don't define min/max.
4139
4140 * lisp.h (min, max): New macros.
4141
4142 * puresize.h (BASE_PURESIZE): Increase to 725000.
4143
4144 2001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4145
4146 * xfaces.c (free_frame_menubar): Add prototype.
4147
4148 * lisp.h (init_window): Add prototype.
4149
4150 * editfns.c: Include ctype.h.
4151
4152 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
4153 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
4154 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
4155 variable `sb'.
4156
4157 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
4158 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
4159 `popup_activated_flag' and `title'.
4160
4161 * doc.c (Fdocumentation_property): Fix typo in a doc string.
4162
4163 * emacs.c (main): Remove extra `;'.
4164
4165 * atimer.h (struct atimer): Fix typos in a comment.
4166
4167 * atimer.c: Fix typo.
4168
4169 * Makefile.in: Fix typo.
4170
4171 * README: Remove obsolete part mentioning removed VMS file.
4172
4173 2001-10-07 Miles Bader <miles@gnu.org>
4174
4175 * Makefile.in (lisp, shortlisp): Add `button.elc'.
4176
4177 2001-10-07 Ken Raeburn <raeburn@gnu.org>
4178
4179 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
4180 Lisp_Object.
4181
4182 * lisp.h (Ffield_end): Declare.
4183
4184 2001-10-07 Gerd Moellmann <gerd@gnu.org>
4185
4186 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
4187
4188 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
4189
4190 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
4191
4192 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
4193
4194 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
4195 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
4196
4197 * alloc.c (inhibit_garbage_collection): Simplify.
4198 (Fmemory_use_counts): Ditto.
4199
4200 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
4201 (syms_of_data): DEFVAR_INT most-positive-fixnum and
4202 most-negative-fixnum.
4203
4204 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
4205 (FIXNUM_OVERFLOW_P): New macros.
4206
4207 2001-10-06 Miles Bader <miles@gnu.org>
4208
4209 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
4210 scroll_bar_bottom_shadow_pixel fields.
4211 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
4212 for the shadows, and tell the toolkit about them if we succeed.
4213 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
4214 Free scroll-bar shadow colors.
4215 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
4216 Free scroll-bar shadow colors when the background color changes.
4217 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
4218 Initialize scroll-bar shadow-color fields.
4219
4220 2001-10-05 Gerd Moellmann <gerd@gnu.org>
4221
4222 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
4223
4224 2001-10-05 Miles Bader <miles@gnu.org>
4225
4226 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
4227 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
4228 New functions (were in simple.el).
4229 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
4230 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
4231 (syms_of_minibuf): Initialize them.
4232
4233 2001-10-05 Gerd Moellmann <gerd@gnu.org>
4234
4235 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
4236 (tiff_load): Install them as error and warning handler.
4237
4238 2001-10-04 Andrew Innes <andrewi@gnu.org>
4239
4240 * w32fns.c (x_to_w32_color): Fix argument to alloca.
4241 (w32_load_system_font): Don't believe what GetLanguageFontInfo
4242 says; query codepage info directly to determine if font is double byte.
4243 (x_to_w32_charset): Handle private format for unknown charsets.
4244 Handle wildcards in charset spec, by ignoring them.
4245 (w32_codepage_for_font): Fix argument to alloca. Don't remove
4246 "*-" prefix from charset.
4247 (x_to_w32_font): Enlarge remainder array for safety. Specifically
4248 handle the truncated font spec form constructed by font_list_1, so
4249 that we correctly identify the charset fields. Don't remove "*-"
4250 prefix from charset.
4251 (w32_list_synthesized_fonts): Fix argument to alloca.
4252
4253 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
4254
4255 * window.h (MINI_WINDOW_P): Use NILP.
4256
4257 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
4258
4259 * termhooks.h (struct input_event): Use proper type for `kind'.
4260
4261 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4262
4263 This handles unknown keysyms better than before. For example,
4264 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
4265 Emacs formerly completely ignored F5. With the change, it derives
4266 a key symbol from the name of the X keysym, `ccaron' in this case.
4267 Reported by Martin Buchholz.
4268
4269 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
4270 unknown keysyms.
4271
4272 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
4273 that EVENT->code isn't a function key, use the keysym's name.
4274
4275 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4276
4277 FOREACH is a macro that should make it easier to loop over Lisp
4278 lists with checks for cycles and proper lists.
4279
4280 * lisp.h (LIST_END_P, FOREACH): New macros.
4281
4282 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4283
4284 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
4285 called for a lost connection. Prevent dumping core in this case.
4286 Instead print the X error, and exit. On user request.
4287
4288 * xterm.c (error_msg): New variable.
4289 (x_fatal_error_signal): New function.
4290 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
4291 as fatal_error_signal_hook around the call to XtCloseDisplay.
4292
4293 * emacs.c (fatal_error_signal_hook): New variable.
4294 (fatal_error_signal): Call that function.
4295
4296 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4297
4298 With this, Emacs prints how much pure storage it will
4299 approximately need in case pure storage overflows while dumping.
4300
4301 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
4302 New variables.
4303 (init_alloc_once): Initialize new variables.
4304 (PURE_POINTER_P): Use new variables.
4305 (pure_alloc): If pure storage overflows, allocate from the heap.
4306 (check_pure_size): New function.
4307 (Fgarbage_collect): Don't GC if pure storage has overflowed.
4308
4309 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
4310 (check_pure_size): Add prototype.
4311
4312 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
4313
4314 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4315
4316 This adds a post-gc-hook that's run with GC inhibited.
4317 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
4318
4319 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
4320 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
4321 (Fgarbage_collect): Run post-gc-hook.
4322
4323 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4324
4325 This adds `defvaralias' and `indirect-variable'. Changes not
4326 directly related to this feature are there to gain the same
4327 performance again as before variable aliases.
4328
4329 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
4330 code to get and set symbol values, to take defvaralias into account.
4331
4332 (Note: the new `constant' bit-flag in symbols would make it
4333 possible to define arbitrary read-only variables, e.g. with
4334 `defconst'.)
4335
4336 Documentation is in lispref/variables.texi. Added to NEWS.
4337
4338 * lisp.h (enum symbol_interned): New enumeration.
4339 (struct Lisp_Symbol): Remove member `obarray', add
4340 `indirect_variable', `constant', and `interned'.
4341 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
4342 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
4343 (indirect_variable): Add prototype.
4344
4345 * print.c (print_preprocess, print_object): Test internedness of
4346 symbols differently.
4347
4348 * lread.c (Fintern, Funintern): Set symbol's interned and constant
4349 bit-fields.
4350 (init_obarray): Likewise for t and nil.
4351
4352 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
4353 (Fdefvaralias): New function.
4354 (specbind): Simplify the test if symbol is a constant.
4355 (syms_of_eval): Defsubr Fdefvaralias.
4356
4357 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
4358 (Qcyclic_variable_indirection): New variable.
4359 (Fkeywordp): Check for internedness differently.
4360 (Fmakunbound): Simplify the test if symbol is a constant.
4361 (indirect_variable, Findirect_variable): New functions.
4362 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
4363 aliased symbol.
4364 (let_shadows_buffer_binding_p): Check for variable aliases.
4365 (set_internal): Simplify the test if SYMBOL is a constant.
4366 If SYMBOL has a buffer-local value and is an alias, use the aliased
4367 symbol instead.
4368 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
4369 Sindirect_variable.
4370
4371 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
4372 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
4373 set directly.
4374
4375 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
4376
4377 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
4378 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
4379 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
4380
4381 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4382
4383 * Branch for 21.1.
4384
4385 2001-10-03 Miles Bader <miles@gnu.org>
4386
4387 * callproc.c (syms_of_callproc): Explicitly state in the
4388 documentation for `process-environment' that earlier entries take
4389 precedence over later ones.
4390
4391 2001-10-02 Miles Bader <miles@gnu.org>
4392
4393 * textprop.c (Fnext_char_property_change)
4394 (Fprevious_char_property_change): Remove reference to non-existant
4395 argument OBJECT from doc-string.
4396
4397 2001-10-01 Gerd Moellmann <gerd@gnu.org>
4398
4399 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
4400 (try_window_id): Skip back over lines ending in a newline from a
4401 string.
4402
4403 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
4404 New bit flag
4405
4406 2001-10-01 Richard M. Stallman <rms@gnu.org>
4407
4408 * search.c (Freplace_match): Doc fix.
4409
4410 2001-09-28 Andrew Innes <andrewi@gnu.org>
4411
4412 * w32menu.c (set_frame_menubar): Take into account that
4413 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
4414 <raeburn@gnu.org>.
4415
4416 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
4417
4418 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
4419
4420 2001-09-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4421
4422 * s/gnu-linux.h: Fix a typo in comment.
4423
4424 2001-09-28 Andreas Schwab <schwab@suse.de>
4425
4426 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
4427 nocombreloc, in case -z combreloc is the default.
4428
4429 2001-09-28 Gerd Moellmann <gerd@gnu.org>
4430
4431 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
4432 really going on here.
4433
4434 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
4435
4436 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
4437
4438 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
4439
4440 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
4441 utf-8, menu-bar, and latin-N.
4442 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
4443 unconditionally now.
4444 (lisp): Add latin-N, since they are preloaded.
4445
4446 2001-09-27 Gerd Moellmann <gerd@gnu.org>
4447
4448 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
4449 to the left. Some cleanup.
4450
4451 * xdisp.c (display_mode_element): One more case where a string's
4452 multibyteness should be used for display.
4453
4454 2001-09-26 Gerd Moellmann <gerd@gnu.org>
4455
4456 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
4457 reading at EOF.
4458
4459 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
4460 of the only temporarily set echoing flag for deciding when
4461 the cancel echoing.
4462
4463 * keyboard.c (echo_kboard): Make externally visible.
4464
4465 * lisp.h (echo_kboard): Declare extern.
4466
4467 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
4468 fonts_changed_p if we need larger matrices due to vscrolling.
4469 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
4470 this round of redisplay if make_cursor_line_fully_visible fails.
4471 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
4472 (try_cursor_movement, try_scrolling): Use them instead of integers.
4473
4474 * dispextern.h (required_matrix_width, required_matrix_height):
4475 Add prototypes.
4476
4477 * dispnew.c (required_matrix_width, required_matrix_height):
4478 New functions.
4479 (allocate_matrices_for_window_redisplay)
4480 (allocate_matrices_for_frame_redisplay: Use them.
4481 Remove parameters CH_DIM.
4482
4483 * xdisp.c (display_mode_lines): Temporarily set selected_frame
4484 and selected_window to the frame of the window whose mode-lines
4485 are displayed, and to the window itself.
4486 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
4487 here.
4488
4489 2001-09-25 Gerd Moellmann <gerd@gnu.org>
4490
4491 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
4492 the image cache under us.
4493
4494 * xdisp.c (display_mode_element): If the mode element is a symbol
4495 with a string value, use that string's multibyteness for displaying.
4496
4497 * keyboard.c (read_char): Don't clear a message for a switch-frame
4498 event. From Stefan Monnier <monnier@cs.yale.edu>.
4499
4500 * xterm.c (fast_find_position) [0]: Add a presumably more correct
4501 version for after 21.1.
4502
4503 * xdisp.c (row_containing_pos): Make externally visible.
4504
4505 * dispextern.h (row_containing_pos): Add prototype.
4506
4507 * process.c (send_process): Disable composition if from_byte < 0.
4508 From Kenichi Handa <handa@etl.go.jp>.
4509
4510 2001-09-24 Gerd Moellmann <gerd@gnu.org>
4511
4512 * xterm.c (refreshicon): Function removed.
4513
4514 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
4515
4516 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
4517
4518 * xterm.c (toplevel): Remove includes in #if 0.
4519
4520 * process.c (sigchld_handler) [LINUX]: Don't return from
4521 the signal handler at the end of the loop.
4522
4523 2001-09-21 Gerd Moellmann <gerd@gnu.org>
4524
4525 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
4526 Terminate only if kill returns -1, and errno is ESRCH.
4527
4528 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
4529
4530 * Makefile.in (shortlisp): Add ../lisp/env.elc.
4531
4532 2001-09-20 Gerd Moellmann <gerd@gnu.org>
4533
4534 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
4535 since this function can be called during GC.
4536
4537 * callproc.c (Fcall_process): Handle errors from pipe(2).
4538 (child_setup): Delete code in #ifdef vipc.
4539
4540 2001-09-19 Gerd Moellmann <gerd@gnu.org>
4541
4542 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
4543 (display_mode_element): Display the string from decode_mode_spec
4544 depending on its multibyteness.
4545
4546 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
4547
4548 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
4549
4550 2001-09-18 Gerd Moellmann <gerd@gnu.org>
4551
4552 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
4553 recursive_edit_unwind.
4554 (recursive_edit_unwind): Set kboard state according to
4555 SINGLE-KBOARD.
4556
4557 * buffer.c (modify_overlay): Don't do nothing if START == END;
4558 This can still be a modification, for example when an overlay has
4559 a before-string or after-string.
4560 (Fdelete_overlay): Prevent redisplay optimizations when deleting
4561 an overlay with before-string or after-string.
4562
4563 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
4564 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
4565
4566 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
4567 first_unchanged_at_end_row is in front of
4568 last_unchanged_at_beg_row. This code should be removed after the
4569 release of 21.1.
4570
4571 2001-09-17 Gerd Moellmann <gerd@gnu.org>
4572
4573 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
4574 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
4575
4576 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
4577 versions >= 2.95.
4578
4579 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
4580
4581 * dired.c (Ffile_attributes): Doc fix.
4582
4583 2001-09-14 Gerd Moellmann <gerd@gnu.org>
4584
4585 * fileio.c (Ffile_symlink_p): Fix last change.
4586
4587 * filelock.c (current_lock_owner): Fix last change.
4588
4589 2001-09-13 Gerd Moellmann <gerd@gnu.org>
4590
4591 * filelock.c (current_lock_owner): If readlink returns ERANGE,
4592 take that to mean that the buffer is too small.
4593
4594 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
4595 that to mean that the buffer is too small.
4596
4597 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
4598 current buffer's multibyteness when discarding the iterator's
4599 stack.
4600
4601 * xfns.c (Fx_window_property): Handle case that property gets
4602 deleted between the two calls to XGetWindowProperty.
4603
4604 2001-09-11 Gerd Moellmann <gerd@gnu.org>
4605
4606 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
4607
4608 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
4609 in addition to read-only.
4610
4611 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
4612 to t in addition to read-only.
4613
4614 * lisp.h (Qinhibit_modification_hooks): Declare.
4615
4616 * insdel.c (Qinhibit_modification_hooks): New variable.
4617 (syms_of_insdel): Initialize and staticpro it.
4618
4619 * textprop.c (verify_interval_modification): Don't run
4620 modification-hooks if inhibit_modification_hooks.
4621
4622 * dispnew.c (set_window_cursor_after_update): Fix code
4623 finding glyph row containing cursor when cursor_in_echo_area
4624 is >= 0.
4625
4626 * xdisp.c (init_from_display_pos): Put some code in #if 0.
4627 (add_to_log): Use bcopy instead of strcpy.
4628 (init_from_display_pos): Use an explicit loop over bytes in
4629 overlay strings instead of calling index.
4630
4631 2001-09-10 Gerd Moellmann <gerd@gnu.org>
4632
4633 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
4634
4635 * dispnew.c (direct_output_for_insert): Don't change IT's
4636 stop_charpos to something in front of its current position.
4637
4638 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
4639 `format'.
4640
4641 2001-09-10 Richard M. Stallman <rms@gnu.org>
4642
4643 * frame.c (Fmouse_position): Doc fix.
4644
4645 2001-09-07 Gerd Moellmann <gerd@gnu.org>
4646
4647 * xdisp.c (init_from_display_pos): Don't compare the result
4648 of calling index with NULL.
4649
4650 2001-09-06 Gerd Moellmann <gerd@gnu.org>
4651
4652 * xfns.c (x_set_background_color): Don't change the colors
4653 of the X window of scroll bar widgets.
4654
4655 2001-09-05 Andrew Innes <andrewi@gnu.org>
4656
4657 * w32fns.c (w32_createwindow): Undo last change.
4658
4659 2001-09-05 Gerd Moellmann <gerd@gnu.org>
4660
4661 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
4662
4663 * xdisp.c (string_buffer_position): Use *single_char_property*
4664 functions instead of the *single_property* functions.
4665
4666 2001-09-04 Andrew Innes <andrewi@gnu.org>
4667
4668 * w32term.c (w32_read_socket): Add more information to debugging
4669 output.
4670
4671 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
4672 from Emacs frames, so that calls to GetClipBox in w32term.c
4673 correctly report when part of a frame is visible (including
4674 scrollbars, etc). This prevents repeated redrawing of frames when
4675 only a scrollbar is visible.
4676 (w32_wnd_proc): Add more frame information to debugging output.
4677
4678 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
4679
4680 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
4681
4682 2001-09-03 Gerd Moellmann <gerd@gnu.org>
4683
4684 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
4685 help-echo for a string which doesn't have help-echo itself, use
4686 get-char-property to obtain the help-echo from the string's buffer
4687 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
4688 have mouse-face, look ``under'' the string for mouse-face from an
4689 overlay.
4690 (fast_find_position): Add parameter STOP. In the final row, stop
4691 before glyphs having STOP as object. Don't consider glyphs that
4692 are not from a buffer.
4693
4694 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
4695
4696 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
4697
4698 * fns.c (Fmd5): Doc fix.
4699
4700 2001-08-31 Gerd Moellmann <gerd@gnu.org>
4701
4702 * composite.c (update_compositions): Do nothing if
4703 inhibit-modification-hooks is set.
4704
4705 2001-08-30 Gerd Moellmann <gerd@gnu.org>
4706
4707 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
4708 and check_message_stack if terminating abnormally. We want
4709 glyph matrices etc. in a core dump.
4710
4711 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
4712 (syms_of_xdisp): Initialize them.
4713 (handle_single_display_prop): Don't change point, bind `object',
4714 `position', and `buffer-position' instead to the object having the
4715 `display' property, position in the object and position in the buffer.
4716
4717 * fileio.c (Finsert_file_contents): Don't change the multibyteness
4718 of the buffer if REPLACE is non-nil.
4719
4720 2001-08-29 Gerd Moellmann <gerd@gnu.org>
4721
4722 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
4723
4724 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
4725
4726 * w32term.c (x_set_glyph_string_background_width)
4727 (show_mouse_face): Track the last changes in xterm.c.
4728
4729 2001-08-28 Gerd Moellmann <gerd@gnu.org>
4730
4731 * xterm.c (x_set_glyph_string_background_width): Set the glyph
4732 string's background width so that multi-line mouse-face is drawn
4733 to the right edge of the window.
4734 (show_mouse_face): Set the row's mouse_face_p flag after drawing
4735 glyphs.
4736
4737 * dispnew.c (direct_output_for_insert): Set updated_area
4738 before inserting/writing glyphs.
4739
4740 * xdisp.c (display_mode_element): Use string_byte_to_char to
4741 determine character positions in strings, use chars_in_text
4742 instead of strwidth.
4743 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
4744 a matrix as parameter; this is easier to use from GDB.
4745
4746 2001-08-28 Miles Bader <miles@gnu.org>
4747
4748 * textprop.c (Fprevious_single_char_property_change)
4749 (Fnext_single_char_property_change): Doc fixes.
4750
4751 2001-08-27 Gerd Moellmann <gerd@gnu.org>
4752
4753 * fileio.c (Finsert_file_contents): Allocate, restore, and
4754 free composition data in the case of REPLACE not being nil.
4755
4756 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
4757 there exist overlay strings with newlines at POS.
4758 (text_outside_line_unchanged_p): Return 0 if changes start at
4759 START and overlays exist at START. Likewise for END.
4760 (try_window_id): Give up if init_to_row_end returns 0.
4761
4762 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
4763 unconditionally.
4764
4765 2001-08-24 Gerd Moellmann <gerd@gnu.org>
4766
4767 * keymap.c (access_keymap): Return the cdr of the binding of
4768 a generic character instead of its definition (KEY . BINDING).
4769
4770 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
4771 to 0 also in the REPLACE case.
4772
4773 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
4774
4775 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
4776 open to determine whether file is readable (as for DOS_NT).
4777
4778 2001-08-23 Gerd Moellmann <gerd@gnu.org>
4779
4780 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
4781 coding.type is coding_type_no_conversion or coding_type_raw_text,
4782 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
4783 non-nil instead of just setting enable_multibyte_characters in the
4784 buffer to nil.
4785
4786 2001-08-22 Gerd Moellmann <gerd@gnu.org>
4787
4788 * dispextern.h (struct face_cache): Add member
4789 menu_face_changed_p.
4790
4791 * xfaces.c (menu_face_changed_default): New variable.
4792 (menu_face_changed_count): Variable removed.
4793 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
4794 the menu_face_changed_default flag, otherwise set the FRAME's
4795 menu_face_changed_p flag if the `menu' face has been changed.
4796 Prevent calling set_font_frame_param if FRAME is t.
4797 (make_face_cache): Initialize cache's menu_face_changed_p
4798 from menu_face_changed_default.
4799 (realize_basic_faces): Look into the frame's face cache to
4800 determine if the menu appearance needs updating.
4801
4802 * keymap.c (access_keymap): Fix last change to not consider
4803 IDX when it has modifiers.
4804
4805 2001-08-21 Gerd Moellmann <gerd@gnu.org>
4806
4807 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
4808 . BINDING) exists, where GENERIC-CHAR is the generic character of
4809 the charset of IDX, return BINDING unless there exists a binding
4810 for IDX itself.
4811
4812 2001-08-16 Gerd Moellmann <gerd@gnu.org>
4813
4814 * xrdb.c (SYSV): Don't define on Solaris 2.
4815 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
4816
4817 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
4818 of the screen line, not text line, containing IT's current position.
4819
4820 2001-08-15 Gerd Moellmann <gerd@gnu.org>
4821
4822 * window.c (window_scroll_pixel_based): Don't recenter if
4823 PT is partially visible in the window.
4824
4825 * xterm.c (expose_window_tree, expose_window, expose_line):
4826 Return 1 when overwriting mouse-face.
4827 (expose_frame): If mouse-face was overwritten, redo it.
4828
4829 * xfaces.c (x_update_menu_appearance): Don't call
4830 set_frame_menubar, let the next redisplay do it.
4831
4832 2001-08-14 Andrew Innes <andrewi@gnu.org>
4833
4834 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
4835 drawing glyph string.
4836
4837 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
4838
4839 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
4840 running HI-UX/MPP.
4841
4842 2001-08-14 Gerd Moellmann <gerd@gnu.org>
4843
4844 * xfaces.c (x_update_menu_appearance): Save and restore value of
4845 interrupt_input_blocked.
4846
4847 2001-08-13 Gerd Moellmann <gerd@gnu.org>
4848
4849 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
4850 a line start, move back to the line start.
4851
4852 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
4853 exactly when a mini-buffer is active.
4854
4855 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
4856 in units of 1/8 character on non window-system frames.
4857 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
4858
4859 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
4860
4861 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
4862 a doc string.
4863
4864 2001-08-09 Gerd Moellmann <gerd@gnu.org>
4865
4866 * keyboard.c (Vpre_help_message): New variable.
4867 (syms_of_keyboard): Initialize and staticpro it.
4868 (show_help_echo): Record current message before displaying a
4869 help-echo, and restore that message when clearing the help.
4870
4871 * xfns.c (x_create_im): Remove prototype.
4872
4873 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
4874
4875 * dispnew.c (adjust_glyph_matrix): Undo last change.
4876
4877 2001-08-08 Gerd Moellmann <gerd@gnu.org>
4878
4879 * dispnew.c (adjust_glyph_matrix): In the optimization for
4880 windows whose height has changed, disable partially visible lines.
4881
4882 2001-08-07 Gerd Moellmann <gerd@gnu.org>
4883
4884 * window.c (Frecenter): If ARG < 0, and on a window system
4885 frame, count in some empty lines when we can't move -ARG lines down.
4886
4887 * xdisp.c (start_display): Don't try to determine the continuation
4888 lines width if lines are truncated. It's superfluous and leads to
4889 incorrect results if POS is not visible in the window after
4890 reseating the iterator at the previous line start.
4891
4892 2001-08-06 Gerd Moellmann <gerd@gnu.org>
4893
4894 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4895
4896 2001-08-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
4897
4898 * alloc.c (init_stack): Remove declaration.
4899
4900 2001-08-03 Gerd Moellmann <gerd@gnu.org>
4901
4902 * keyboard.c (read_key_sequence): Check that key is an integer
4903 before comparing it with quit_char.
4904 (add_command_key): Use larger_vector.
4905 (read_char_x_menu_prompt): Instead of converting symbol and
4906 integer events into conses (EVENT . nil), use (EVENT . disabled)
4907 which cannot be confused with valid events.
4908 (read_char): When reading from Vunread_command_events, check for
4909 events of the form (EVENT . disabled) instead of
4910 (EVENT . nil).
4911
4912 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
4913 a float, determine the max height from the frame's height.
4914
4915 2001-08-02 Gerd Moellmann <gerd@gnu.org>
4916
4917 * xdisp.c (redisplay_internal): Take message_cleared_p into
4918 account only if minibuf_level == 0.
4919
4920 2001-08-01 Gerd Moellmann <gerd@gnu.org>
4921
4922 * xdisp.c (redisplay_internal): Add a check for the last
4923 displayed message.
4924
4925 * xdisp.c (message_cleared_p): New variable.
4926 (clear_message): Set message_cleared_p when clearing the current
4927 message.
4928 (redisplay_internal): Look at message_cleared_p to capture
4929 the case that the echo area should be cleared.
4930
4931 * keyboard.c (command_loop_1): Fix spelling of
4932 resize_echo_area_exactly.
4933
4934 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
4935
4936 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
4937
4938 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
4939 current matrix when the window gets smaller.
4940
4941 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
4942
4943 * print.c (strout): Cast the character passed to insert_char to
4944 unsigned char, to avoid sign extension when it is promoted to int.
4945
4946 2001-07-31 Gerd Moellmann <gerd@gnu.org>
4947
4948 * fileio.c (Finsert_file_contents): Don't treat a return value
4949 of 0 from emacs_read as an IO error.
4950
4951 2001-07-30 Gerd Moellmann <gerd@gnu.org>
4952
4953 * keyboard.c (abs): New macro.
4954 (double_click_fuzz): New variable.
4955 (make_lispy_event): Use it to determine what makes a double-click.
4956 (syms_of_keyboard): DEFVAR_INT it.
4957
4958 * xmenu.c (set_frame_menubar): Take into account that
4959 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
4960 <raeburn@gnu.org>.
4961
4962 2001-07-27 Gerd Moellmann <gerd@gnu.org>
4963
4964 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
4965
4966 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
4967 of row's visible height.
4968
4969 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
4970 deal with the first overlay string having an image `display' property.
4971 (try_window_reusing_current_matrix, compute_line_metrics):
4972 Fix computation of row's visible height for the case that part of the
4973 row is invisible above and part of the row is at the same time
4974 invisible below the window.
4975
4976 2001-07-26 Gerd Moellmann <gerd@gnu.org>
4977
4978 * xfns.c (x-show-tip): Doc fix.
4979
4980 * xfns.c (Vx_max_tooltip_size): New variable.
4981 (syms_of_xfns): DEFVAR_LISP it.
4982 (Fx_show_tip): Set frame's window_width to the width of the
4983 window. Use a maximum tooltip size specified by
4984 Vx_max_tooltip_size, if that has valid contents.
4985 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
4986
4987 2001-07-26 Andrew Innes <andrewi@gnu.org>
4988
4989 * w32term.c (x_display_list): New variable.
4990 (w32_term_init): Set it.
4991
4992 * w32term.h (x_display_list): New extern.
4993
4994 2001-07-26 Gerd Moellmann <gerd@gnu.org>
4995
4996 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
4997 is non-nil, instead of when redisplaying_p is non-zero.
4998 See comment there.
4999 (mark_window_display_accurate_1): Add an assertion.
5000
5001 2001-07-25 Gerd Moellmann <gerd@gnu.org>
5002
5003 * dispextern.h (struct it): Increase size of ctl_chars to 16.
5004
5005 * xfns.c (Fx_file_dialog): Block/unblock input while processing
5006 events so that we get a chance of processing expose events.
5007
5008 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
5009
5010 2001-07-24 Gerd Moellmann <gerd@gnu.org>
5011
5012 * xfns.c (valid_image_p): Protect better against invalid image
5013 specifications. Previous code could signal an error.
5014
5015 2001-07-23 Gerd Moellmann <gerd@gnu.org>
5016
5017 * indent.c (current_column): Fix column computation in the
5018 presence of display table entries.
5019 (current_column_1, Fmove_to_column, compute_motion): Likewise.
5020
5021 * dispnew.c (adjust_glyph_matrix): In the optimization for
5022 windows whose height has changed, use the new window height
5023 to compute which rows to invalidate.
5024
5025 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
5026 (MAX_10_EXP): New macro.
5027 (Fformat): Use it.
5028
5029 * coding.c (code_convert_region): Handle the multibyte case if
5030 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
5031
5032 2001-07-20 Gerd Moellmann <gerd@gnu.org>
5033
5034 * dispextern.h (struct face): Change type of `stipple' to
5035 int; it's an ID.
5036
5037 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
5038
5039 2001-07-19 Gerd Moellmann <gerd@gnu.org>
5040
5041 * dispnew.c (update_window): Don't set the cursor at the end
5042 of the update if display update has been paused.
5043
5044 * composite.h (syms_of_composite): Renamed from syms_of_composition.
5045
5046 2001-07-18 Ken Raeburn <raeburn@gnu.org>
5047
5048 * fns.c (Fset_char_table_default): Check that a charset is defined
5049 before checking its dimension.
5050
5051 2001-07-17 Ken Raeburn <raeburn@gnu.org>
5052
5053 * coding.c (setup_coding_system): Don't do any designation based
5054 on reg_bits if charset is not yet defined.
5055
5056 * lisp.h (XVECTOR): Verify correct object type before returning a
5057 pointer, using eassert.
5058
5059 2001-07-17 Gerd Moellmann <gerd@gnu.org>
5060
5061 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
5062 Increase to 4096 because of paste problems reported on GNU/Linux.
5063
5064 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
5065
5066 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
5067
5068 2001-07-16 Gerd Moellmann <gerd@gnu.org>
5069
5070 * fileio.c (unwind_read): Function removed.
5071 (read_non_regular, read_non_regular_quit): New functions.
5072 (Finsert_file_contents): When reading from non-regular files,
5073 arrange to catch a `quit' and terminate the loop. Rearrange
5074 code so that a `quit' when reading from a regular file doesn't
5075 insert text in the buffer.
5076
5077 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
5078 Clear faces afterwards.
5079 (clear_font_table): Take a x_display_info parameter. Don't free
5080 fonts being the default font of any frame on the given display.
5081
5082 2001-07-13 Gerd Moellmann <gerd@gnu.org>
5083
5084 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
5085 instead of CHAR_STRING which can signal an error.
5086
5087 * charset.c (char_to_string_1): Extracted from char_to_string.
5088 Return -1 instead of signaling an error.
5089 (char_to_string): Use it.
5090
5091 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
5092
5093 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
5094
5095 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
5096 is t, don't try to append anything to it.
5097
5098 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
5099
5100 * dired.c (file_name_completion): Pass dp->d_name to
5101 Fstring_match, not elt, which is always nil here.
5102
5103 2001-07-12 Gerd Moellmann <gerd@gnu.org>
5104
5105 * xselect.c (x_decline_selection_request): Handle errors
5106 caused by receivers that have vanished.
5107
5108 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
5109 ignoring events on foreign windows in #if 0. Always dispatch
5110 the event after checking it with x_handle_property_notify.
5111
5112 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
5113 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
5114 TRACE macros to facilitate debugging. Add additional trace statements.
5115 (toplevel): Add prototypes for file-local functions.
5116 (x_atom_to_symbol): Remove DPYINFO parameter.
5117
5118 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
5119
5120 * w32menu.c (menubar_selection_callback, w32_menu_show):
5121 Initialize `entry' to nil.
5122 (w32_dialog_show): Remove unused `save_wv' variable.
5123 (name_is_separator): Recognize "--:foo" and "--foo-bar".
5124
5125 2001-07-11 Gerd Moellmann <gerd@gnu.org>
5126
5127 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
5128
5129 * fileio.c (unwind_read): Print a message when discarding inserted
5130 text or switching the buffer to unibyte. Change parameter.
5131 (Finsert_file_contents): Don't pass VISIT to unwind_read.
5132
5133 * fileio.c (unwind_read): New function.
5134 (Finsert_file_contents): Record it as unwind-function for
5135 the case that reading is interrupted by C-g.
5136
5137 2001-07-10 Gerd Moellmann <gerd@gnu.org>
5138
5139 * dispnew.c (update_window): Don't skip the header-line
5140 update when scrolling_window returns 0.
5141
5142 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
5143
5144 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
5145 for the case that x_decode_color signals an error.
5146
5147 * xdisp.c (add_to_log): Do nothing if called asynchronously.
5148
5149 2001-07-09 Gerd Moellmann <gerd@gnu.org>
5150
5151 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
5152 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
5153 around ioctls.
5154
5155 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
5156
5157 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
5158 doc string line for dos-timezone-offset.
5159
5160 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
5161 inline assembly, to avoid compiler warnings.
5162 (syms_of_msdos): Add \n\ at the end of a line in the doc string
5163 line for dos-unsupported-char-glyph.
5164
5165 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
5166
5167 2001-07-05 Gerd Moellmann <gerd@gnu.org>
5168
5169 * sound.c: Include Emacs' header files with #include "...".
5170
5171 * eval.c (specbind): Additionally record the buffer that was
5172 current when a buffer-local or frame-local variable was bound.
5173
5174 2001-07-04 Gerd Moellmann <gerd@gnu.org>
5175
5176 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
5177 to unibyte characters in unibyte buffers.
5178
5179 2001-07-03 Gerd Moellmann <gerd@gnu.org>
5180
5181 * eval.c (specbind): If SYMBOL has a frame-local binding, record
5182 the frame on the binding stack. Change format of entries for
5183 local bindings on the binding stack to '(SYMBOL . WHERE)'.
5184 (unbind_to): Handle unbinding a frame-local variable.
5185
5186 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
5187 glyphs and truncation glyphs at the end of a row from its pixel width.
5188 (dump_glyph_row): Print row's continuation_lines_width.
5189 (try_window_id): Take the shortcut if ZV is visible in the
5190 window, but there are actually no changes at ZV.
5191
5192 2001-07-02 Gerd Moellmann <gerd@gnu.org>
5193
5194 * xterm.h (x_free_dpy_colors): Add prototype.
5195
5196 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
5197 right number of arguments.
5198
5199 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
5200 ($(lwlibdir)TAGS): New target.
5201 (TAGS): Fix dependency list.
5202
5203 * xterm.c (x_list_fonts): Make sure XFreeFont is called
5204 with input blocked.
5205
5206 2001-06-30 Gerd Moellmann <gerd@gnu.org>
5207
5208 * emacs.c (main): Remove extern declaration for sys_nerr, which
5209 isn't used and causes a compilation error with GCC 3.0 on
5210 FreeBSD 4.3.
5211
5212 2001-06-27 Gerd Moellmann <gerd@gnu.org>
5213
5214 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
5215 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
5216 (toplevel): Include <signal.h> and syssignal.h.
5217
5218 * sound.c (vox_configure, vox_close): Turn off atimers
5219 around ioctls.
5220
5221 2001-06-26 Gerd Moellmann <gerd@gnu.org>
5222
5223 * keyboard.c (read_char) <non_reread>: Record the previous idle
5224 start time before calling timer_stop_idle.
5225 (read_char) <reread_first>: After processing a help-echo event,
5226 restore the previous idle start time.
5227
5228 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
5229 the start of invisible text.
5230 (setup_for_ellipsis): New function.
5231 (next_overlay_string): After all overlay strings have been
5232 processed, display an ellipsis if necessary.
5233 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
5234 (push_it): Initialize display_ellipsis_p on the iterator's stack.
5235
5236 * dispextern.h (struct iterator_stack_entry): Add member
5237 display_ellipsis_p.
5238
5239 2001-06-25 Gerd Moellmann <gerd@gnu.org>
5240
5241 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
5242 on the value of the wait-for-wm frame parameter.
5243
5244 * xterm.h (struct x_output): Add member wait_for_wm.
5245
5246 * xfns.c (Qwait_for_wm): New variable.
5247 (x_frame_parms): Add entry for `wait-for-wm".
5248 (x_set_wait_for_wm): New function.
5249 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
5250 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
5251
5252 * xdisp.c (try_window_id) <all changes below window end>: Don't
5253 take this shortcut if ZV is visible in the window.
5254 (try_window_id): When checking for window start being in changed
5255 text, don't check that the buffer's size has changed.
5256
5257 2001-06-23 Richard M. Stallman <rms@gnu.org>
5258
5259 * minibuf.c (Fcompleting_read): Doc fix.
5260
5261 2001-06-19 Gerd Moellmann <gerd@gnu.org>
5262
5263 * composite.c (Ffind_composition_internal): Accept ZV
5264 and a string's end position as POS.
5265
5266 2001-06-18 Gerd Moellmann <gerd@gnu.org>
5267
5268 * composite.c (Ffind_composition_internal): Check POS
5269 for validity.
5270
5271 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
5272
5273 * editfns.c (Fmessage_box): If the frame is not under a window
5274 system, output the message in the echo area.
5275
5276 2001-06-14 Richard M. Stallman <rms@gnu.org>
5277
5278 * xdisp.c (try_window_id): When EOB is visible, don't treat
5279 insertion at EOB as if it were "off the bottom of the screen."
5280
5281 2001-06-11 Andrew Innes <andrewi@gnu.org>
5282
5283 * w32proc.c (create_child): Add new parameter is_gui_app.
5284 (w32_executable_type): Add new parameter is_gui_app.
5285 (sys_spawnve): Use it.
5286 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
5287 SIGQUIT. This matches better how the signals are interpreted by
5288 MSVC compiled programs.
5289 (syms_of_ntproc): Update docstring.
5290
5291 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
5292
5293 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
5294 well otherwise note_mouse_highlight might optimize away highlighting
5295 if we pass over that same overlay again.
5296
5297 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
5298
5299 * lread.c (Fload): Document that the argument is run via
5300 substitute-in-file-name.
5301
5302 2001-05-31 Gerd Moellmann <gerd@gnu.org>
5303
5304 * Makefile.in (bootstrap-doc): New target.
5305 (bootstrap-emacs): Depend on it.
5306
5307 * fileio.c (Fdo_auto_save): Don't try to create the directory of
5308 auto-save-list-file-name when shutting down Emacs, because
5309 creating the directory might signal an error, and leaves
5310 Emacs in a strange state.
5311
5312 * term.c: (tty_cursor_hidden): New variable.
5313 (update_begin): Don't call tty_hide_cursor. Clean up.
5314 (update_end, set_terminal_window, set_scroll_region): Clean up.
5315 (ring_bell, reset_terminal_modes): Clean up.
5316 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
5317 on tty_cursor_hidden.
5318 (write_glyphs): Call tty_hide_cursor.
5319
5320 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
5321
5322 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
5323
5324 2001-05-30 Gerd Moellmann <gerd@gnu.org>
5325
5326 * xfns.c (enum image_value_type): New enumerator
5327 IMAGE_STRING_OR_NIL_VALUE.
5328 (parse_image_spec): Handle it.
5329 (xbm_format, pbm_format): Use it for :foreground and :background.
5330 (xbm_load, pbm_load): Check for nil color names.
5331
5332 * xterm.c (note_mouse_highlight): If an overlapping overlay
5333 exists, but we find that we highlight the same overlay as before,
5334 don't do the highlighting again.
5335
5336 2001-05-29 Gerd Moellmann <gerd@gnu.org>
5337
5338 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
5339 Protect unibyte strings created by replacing their multibyte
5340 equivalents in menu_items.
5341
5342 * keymap.c (Fsingle_key_description): NUL-terminate the string
5343 buffer before calling build_string.
5344
5345 * callproc.c (Fcall_process): Deal with decode_coding returning
5346 CODING_FINISH_INCONSISTENT_EOL.
5347
5348 2001-05-28 Gerd Moellmann <gerd@gnu.org>
5349
5350 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
5351 an item's name with its key description in case the description
5352 is a multibyte string.
5353
5354 * keymap.c (Fsingle_key_description): Create a multibyte string
5355 only if necessary.
5356
5357 * macros.c (Fstart_kbd_macro): Doc fix.
5358
5359 * xterm.c (cursor_in_mouse_face_p): New function.
5360 (x_draw_stretch_glyph_string): Use it to choose a different GC
5361 when drawing a cursor within highlighted text.
5362
5363 * editfns.c (char_property_eq): Put in #if 0.
5364
5365 * indent.c (string_display_width): Put in #if 0.
5366
5367 * lread.c (Fload): Remove unused label.
5368
5369 * termcap.c (speeds): Put in #if 0.
5370
5371 2001-05-18 Gerd Moellmann <gerd@gnu.org>
5372
5373 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
5374
5375 * xfaces.c (xlfd_point_size): Don't divide pixel size from
5376 transformation matrix by 10.
5377
5378 2001-05-16 Gerd Moellmann <gerd@gnu.org>
5379
5380 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
5381 only if it's equal to the former foreground pixel color.
5382 (x_set_foreground_color, x_set_background_color)
5383 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
5384
5385 2001-05-16 Dave Love <fx@gnu.org>
5386
5387 * insdel.c (signal_before_change, signal_after_change): Consider a
5388 local change hook which changes the buffer.
5389
5390 * process.c (read_process_output): Don't call signal_after_change
5391 and update_compositions after insert_from_string_before_markers.
5392
5393 2001-05-16 Gerd Moellmann <gerd@gnu.org>
5394
5395 * xfaces.c (split_font_name): Use the right field when
5396 checking for `[...]' syntax.
5397
5398 * buffer.c (copy_overlays): New function.
5399 (clone_per_buffer_values): Use it.
5400
5401 * buffer.h (OVERLAY_PLIST): New macro.
5402
5403 * keymap.c (Fsingle_key_description): Replace a build_string with
5404 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
5405
5406 * fontset.c (Ffontset_info): Check that face is non-null
5407 before accessing its fields.
5408
5409 2001-05-15 Gerd Moellmann <gerd@gnu.org>
5410
5411 * keyboard.c (read_key_sequence): Prevent generating a fake
5412 prefix key twice.
5413
5414 * xfaces.c (split_font_name): Handle `[...]' for the right
5415 font name fields.
5416
5417 * ccl.c (ccl_driver): Don't copy remaining bytes in case
5418 of CCL_STAT_INVALID_CMD.
5419
5420 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
5421
5422 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
5423 in <var> has no default value yet.
5424
5425 * xfaces.c (try_alternative_families): First try the FAMILY.
5426 And if nothing is found in the end, try again with scalable fonts.
5427 (try_font_list): Let try_alternative_families do a bit more of
5428 the work. Only use FAMILY if it is not nil.
5429 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
5430
5431 2001-05-14 Gerd Moellmann <gerd@gnu.org>
5432
5433 * xterm.c (note_mouse_highlight): Avoid changing the mouse
5434 pointer shape when show_mouse_face has already done it.
5435
5436 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
5437 full-width rows.
5438
5439 * xfaces.c (split_font_name): Make sure to leave the loop
5440 with the right value of `i'.
5441
5442 * xfaces.c (split_font_name): Handle matrix transformations
5443 in the pixel and point size fields of XLFD font names.
5444 (xlfd_point_size): Likewise.
5445
5446 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
5447
5448 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
5449 (x_to_w32_font): Add prototype.
5450
5451 * regex.c (malloc, realloc, free) [emacs]: Undefine before
5452 redefining, to avoid compiler warnings.
5453
5454 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
5455
5456 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
5457 (w32_get_bdf_glyph): Cast between unsigned char and char when
5458 passing arguments to subroutines, to shut up compiler warnings.
5459 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
5460 GET_HEX_VAL.
5461
5462 * xfaces.c: Include keyboard.h before frame.h, not after it.
5463
5464 * widget.c: Include keyboard.h before frame.h.
5465
5466 * w32term.h (struct image, struct face): Forward declaration, to
5467 avoid compiler warnings.
5468
5469 2001-05-11 Gerd Moellmann <gerd@gnu.org>
5470
5471 * keyboard.c (read_key_sequence): Don't modify events when
5472 generating fake prefix keys (mode-line, scroll-bar, ...) since
5473 this prevents proper processing of such events when pushed back
5474 into unread-command-events.
5475
5476 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
5477 actually redrawn. Make the function static.
5478 (note_mouse_highlight): Fix a case where the mouse cursor
5479 was changed back to the text cursor.
5480
5481 * xterm.h (clear_mouse_face): Remove prototype.
5482
5483 * xdisp.c (try_window_id): Fix the fix and set the right
5484 window_end_vpos.
5485
5486 * xdisp.c (try_window_id): Fix computation of window end in the
5487 case that lines were deleted at the end of the window. Add some
5488 more debug_method_adds.
5489
5490 * xfaces.c (try_alternative_families): New function.
5491 (try_font_list): Use it. If ATTRS specifies a family, check
5492 fonts from that family first.
5493 (choose_face_font): Remove code setting the family part of
5494 the pattern to nil.
5495
5496 2001-05-10 Gerd Moellmann <gerd@gnu.org>
5497
5498 * xdisp.c (try_window_id): Fix case of all changes before
5499 the window start.
5500
5501 * xdisp.c (try_window_id): Add some xasserts.
5502
5503 2001-05-09 Gerd Moellmann <gerd@gnu.org>
5504
5505 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
5506
5507 2001-05-09 Dave Love <fx@gnu.org>
5508
5509 * xdisp.c (GIVE_UP): Fix for K&R C.
5510
5511 2001-05-09 Gerd Moellmann <gerd@gnu.org>
5512
5513 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
5514
5515 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
5516 back to the text cursor shape without need.
5517
5518 2001-05-07 Gerd Moellmann <gerd@gnu.org>
5519
5520 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
5521
5522 * dispextern.h (inverse_video): Declare extern.
5523
5524 * keyboard.c (delete_kboard): Handle the case that selected_frame
5525 has been deleted in the course of x_connection_closed.
5526
5527 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
5528
5529 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
5530 Fix the change from 2001-04-30.
5531
5532 2001-05-03 Gerd Moellmann <gerd@gnu.org>
5533
5534 * xfns.c (file_dialog_unmap_cb): New function.
5535 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
5536 where a dialog is closed via the window manager.
5537
5538 * xdisp.c (try_window_id): Cases of changes all in front of
5539 the window start or all below the window end mostly rewritten.
5540 (redisplay_window): Move the tests if try_window_id is
5541 applicable to try_window_id.
5542 (GIVE_UP): New macro.
5543
5544 2001-05-02 Gerd Moellmann <gerd@gnu.org>
5545
5546 * xterm.c (expose_window): Return int. If W is the window
5547 currently being updated, mark the frame garbaged.
5548 Fix computation of rows intersecting the exposed rectangle.
5549 (expose_window_tree): Stop when expose_window returns 0.
5550
5551 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
5552 again if it has already been drawn.
5553
5554 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
5555
5556 * syntax.c (update_syntax_table): Check that oldi has the same
5557 properties as old_prop before deciding not to invalidate.
5558
5559 2001-04-30 Gerd Moellmann <gerd@gnu.org>
5560
5561 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
5562 read-only text that is so because of text properties.
5563
5564 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
5565 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
5566 windows that are components of a Lucid menu bar.
5567
5568 2001-04-27 Gerd Moellmann <gerd@gnu.org>
5569
5570 * term.c (turn_on_face): Fix reverse video handling on terminals
5571 that don't support colors.
5572
5573 2001-04-26 Gerd Moellmann <gerd@gnu.org>
5574
5575 * editfns.c (save_excursion_restore): Don't use XBUFFER on
5576 a non-buffer.
5577
5578 2001-04-25 Gerd Moellmann <gerd@gnu.org>
5579
5580 * term.c (toggle_highlight): New function.
5581 (turn_on_face): Change handling of reverse video.
5582
5583 * process.c (wait_reading_process_input):
5584 Call record_asynch_buffer_change only if a timer really changed buffers.
5585
5586 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
5587 of the number of overlays to check.
5588
5589 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
5590
5591 * xdisp.c (try_window_id): Fix a case where window_end_pos
5592 and window_end_bytepos were not adjusted.
5593
5594 2001-04-23 Gerd Moellmann <gerd@gnu.org>
5595
5596 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
5597 zero instead of -1.
5598
5599 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
5600
5601 * process.c (wait_reading_process_input) [!subprocesses]:
5602 Don't reference waiting_for_user_input_p, it's not defined in the
5603 branch without async subprocesses support.
5604
5605 2001-04-19 Gerd Moellmann <gerd@gnu.org>
5606
5607 * keyboard.c (delete_kboard): Prevent a dangling reference
5608 from current_kboard to KB, which is freed.
5609
5610 * process.c (wait_reading_process_input):
5611 Call record_asynch_buffer_change after running timers, to make
5612 read_key_sequence aware of buffer changes from under it.
5613
5614 2001-04-18 Gerd Moellmann <gerd@gnu.org>
5615
5616 * xfaces.c (Qscalable_fonts_allowed): New variable.
5617 (realizing_basic_faces_p): Removed.
5618 (x_face_list_fonts): Special handling for realizing_basic_faces_p
5619 removed.
5620 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
5621 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
5622 for scalable-fonts-allowed to t.
5623
5624 * fileio.c (Finsert_file_contents): If the file size returned from
5625 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
5626 read from files on a procfs whose contents are generated dynamically.
5627
5628 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
5629
5630 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
5631 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
5632 (__memalign_hook): Make the two prototypes consistent.
5633
5634 2001-04-17 Gerd Moellmann <gerd@gnu.org>
5635
5636 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
5637 matrix of mini-windows.
5638
5639 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
5640
5641 * intervals.c (find_interval): Don't rebalance during signal handling.
5642
5643 2001-04-11 Gerd Moellmann <gerd@gnu.org>
5644
5645 * fns.c: Include blockinput.h.
5646
5647 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
5648
5649 2001-04-10 Gerd Moellmann <gerd@gnu.org>
5650
5651 * fns.c (Fcompare_strings): Fix return values.
5652
5653 * window.c (window_scroll): Change the meaning of N to mean
5654 N screen-fulls or N lines.
5655 (window_scroll_pixel_based, window_scroll_line_based)
5656 (scroll_command, Fscroll_other_window): Change accordingly.
5657
5658 * window.c (window_scroll_pixel_based, Frecenter):
5659 Call window_box_height instead of using it.last_visible_y for the
5660 height of the window.
5661
5662 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
5663 instead of using it.last_visible_y for the height of the window.
5664
5665 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
5666 From Dan Holmsand <dan@eyebee.com>.
5667
5668 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
5669 able to write to hidden and system files. From Dan Holmsand
5670 <dan@eyebee.com>.
5671
5672 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
5673 Holmsand <dan@eyebee.com>.
5674
5675 2001-04-09 Gerd Moellmann <gerd@gnu.org>
5676
5677 * fns.c (Fplist_get, Fplist_put): Add QUITs.
5678
5679 * window.c (window_internal_height): Return 1 less if the
5680 window has a header line.
5681
5682 * xdisp.c (try_window_id): When scrolling on a terminal, take
5683 the change of window_internal_height into account.
5684
5685 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
5686
5687 * gmalloc.c (align): If the argument SIZE would overflow
5688 __malloc_ptrdiff_t, fail right away.
5689
5690 2001-04-06 Gerd Moellmann <gerd@gnu.org>
5691
5692 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
5693 Make sure the tooltip is completely visible.
5694 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
5695
5696 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
5697
5698 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
5699
5700 2001-04-06 Dave Love <fx@gnu.org>
5701
5702 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
5703 Fix test of `from'.
5704
5705 2001-04-06 Gerd Moellmann <gerd@gnu.org>
5706
5707 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
5708
5709 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
5710
5711 2001-04-05 Gerd Moellmann <gerd@gnu.org>
5712
5713 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
5714
5715 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
5716
5717 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
5718 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
5719
5720 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
5721 shell widget's position only if it is non-null.
5722
5723 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
5724 Set f->output_data.x->widget to null after destroying it.
5725
5726 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
5727 FILENAME to bring it in synch with the documentation.
5728
5729 * xfaces.c (realizing_basic_faces_p): Renamed from
5730 realize_default_face_p.
5731 (realize_basic_faces): Set/clear realizing_basic_faces_p.
5732 (realize_default_face): Don't set the flag.
5733
5734 2001-04-04 Gerd Moellmann <gerd@gnu.org>
5735
5736 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
5737
5738 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
5739
5740 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
5741 the buffer that was used for echoing.
5742
5743 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
5744 (first_font_matching): Removed unused function.
5745 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
5746 (may_use_scalable_font_p): Remove parameter FONT; rename
5747 parameter NAME to FONT.
5748 (x_face_list_fonts): Fix missing bounds check.
5749 (realizing_default_face_p): New variable.
5750 (realize_default_face): Set and clear that flag.
5751 (x_face_list_fonts): When called during the realization of the
5752 default face, and no matching fonts are found when ignoring
5753 scalable fonts and fonts matching a regexp from
5754 face-ignored-fonts, try without ignoring fonts.
5755
5756 2001-04-03 Gerd Moellmann <gerd@gnu.org>
5757
5758 * xfns.c (postprocess_image): New function.
5759 (lookup_image): Call it for all image types except PostScript.
5760 (x_kill_gs_process): Call postprocess_image.
5761
5762 * xterm.c (x_use_underline_position_properties): New variable.
5763 (x_draw_glyph_string): Use it.
5764 (syms_of_xterm): DEFVAR_BOOL it.
5765
5766 2001-04-02 Gerd Moellmann <gerd@gnu.org>
5767
5768 * xterm.c (x_alloc_nearest_color_1): New function.
5769 (x_alloc_nearest_color): Use it.
5770 (x_color_cells): Take a Display as argument, instead of a frame.
5771 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
5772 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
5773 (x_initialize): Register cvt_string_to_pixel as resource converter
5774 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
5775
5776 2001-03-30 Gerd Moellmann <gerd@gnu.org>
5777
5778 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
5779 (set_iterator_to_next): If a string from a display property ends,
5780 consider the case that this might also be the end of an
5781 overlay string having the display property.
5782
5783 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
5784
5785 * xdisp.c (reseat_to_string): Undo last change.
5786
5787 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
5788 matrix of a window when the header line changes, when
5789 new rows are allocated, or when the width changes.
5790
5791 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
5792
5793 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
5794
5795 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
5796
5797 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
5798 deprecated.
5799
5800 2001-03-29 Gerd Moellmann <gerd@gnu.org>
5801
5802 * data.c (Fsubr_interactive_form): New function.
5803 (syms_of_data): Defsubr it.
5804
5805 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
5806 (live_float_p, live_misc_p): Return 1 only if the offset of the
5807 pointer in its block is >= 0.
5808
5809 2001-03-28 Paul Eggert <eggert@twinsun.com>
5810
5811 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
5812 microseconds calcuation. Avoid double-rounding problem.
5813 In doc string, warn that the result is approximate.
5814
5815 2001-03-28 Gerd Moellmann <gerd@gnu.org>
5816
5817 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
5818 bind `inhibit-eval-during-redisplay' to t.
5819
5820 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
5821
5822 * xdisp.c (inhibit_eval_during_redisplay)
5823 (Qinhibit_eval_during_redisplay): New variables.
5824 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
5825 don't eval, return nil instead.
5826 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
5827 Initialize Qinhibit_eval_during_redisplay.
5828
5829 * xdisp.c (reseat_to_string): If STRING is multibyte, set
5830 the iterator's multibyte_p flag.
5831
5832 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
5833 instead of setting it to zero; it's incremented for each frame
5834 where the menu face is changed.
5835
5836 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
5837 change bottom shadow accordingly.
5838
5839 * xterm.c (expose_window_tree, expose_frame): Don't compute
5840 intersections here.
5841 (expose_window): Do it here instead.
5842 (x_draw_glyph_string): Fix a computation of the underline position.
5843
5844 * bytecode.c (BYTE_CODE_QUIT): New macro.
5845 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
5846
5847 2001-03-27 Gerd Moellmann <gerd@gnu.org>
5848
5849 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
5850 Give up if matrix starts in an ellipsis.
5851 (init_from_display_pos): Do nothing if POS doesn't specify
5852 a dpvec_index but the iterator has such a position.
5853
5854 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
5855
5856 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
5857 x/y position is (0, 0) after destroying the menu bar, restore
5858 its original position.
5859
5860 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
5861 (init_from_display_pos): Use it.
5862 (try_window_reusing_current_matrix): Don't use cursor_row_p.
5863
5864 2001-03-26 Gerd Moellmann <gerd@gnu.org>
5865
5866 * xdisp.c (try_window_id): Undo last change.
5867
5868 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
5869
5870 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
5871
5872 * buffer.c (syms_of_buffer): Doc fix.
5873
5874 2001-03-26 Gerd Moellmann <gerd@gnu.org>
5875
5876 * xfaces.c (x_update_menu_appearance): Use local variable
5877 popup_path for setting font resources.
5878
5879 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
5880
5881 * frame.c (Fframe_list): Don't reference tip_frame if
5882 HAVE_WINDOW_SYSTEM is not defined.
5883
5884 * emacs.c (main): Update the copyright year. From Werner LEMBERG
5885 <wl@gnu.org>.
5886
5887 2001-03-25 Gerd Moellmann <gerd@gnu.org>
5888
5889 * xdisp.c (init_from_display_pos): Test invisible property
5890 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
5891
5892 * xdisp.c (redisplay_internal) <update one window>: Make sure
5893 last_arrow_position and last_arrow_string are set.
5894
5895 * frame.c (Fframe_list): Don't return a tooltip frame.
5896
5897 2001-03-23 Gerd Moellmann <gerd@gnu.org>
5898
5899 * xdisp.c (mark_window_display_accurate_1): New function,
5900 extracted from mark_window_display_accurate.
5901 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
5902 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
5903 (mark_window_display_accurate): Use it.
5904 (redisplay_internal): Use it for the selected window.
5905 (redisplay_internal): Avoid duplicate mark_window_display_accurate
5906 for the selected frame.
5907
5908 * xdisp.c Use make_number, for readability.
5909 (try_window_id): Disable rows below the window end.
5910 (try_window_reusing_current_matrix): Use cursor_row_p.
5911 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
5912 of rows.
5913 (init_from_display_pos): If POS specifies a position in a display
5914 vector, maybe get the iterator set up for that ellipsis.
5915
5916 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
5917
5918 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
5919
5920 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
5921
5922 2001-03-23 Gerd Moellmann <gerd@gnu.org>
5923
5924 * xfaces.c (x_update_menu_appearance): Use a different path
5925 for Lucid popup menus.
5926
5927 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
5928
5929 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
5930
5931 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
5932 (string_buffer_position): Use `make_number'.
5933
5934 2001-03-22 Gerd Moellmann <gerd@gnu.org>
5935
5936 * xfaces.c (x_update_menu_appearance): Renamed from
5937 x_set_menu_face_resources. Use different resources for popups.
5938
5939 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
5940 (GC_CHECK_STRING_BYTES): Don't define.
5941
5942 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
5943 Removed, together with subroutines.
5944 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
5945 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
5946
5947 * dispextern.h (x_set_menu_resources_from_menu_face):
5948 Remove prototype.
5949
5950 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
5951 Remove calls to x_set_menu_resources_from_menu_face.
5952
5953 * xfaces.c (xm_set_menu_resources_from_menu_face):
5954 Remove #ifndef LESSTIF_VERSION.
5955
5956 * xmenu.c: Include widget.h.
5957 (single_submenu): Return int. Some cleanup.
5958 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
5959
5960 2001-03-21 Gerd Moellmann <gerd@gnu.org>
5961
5962 * xterm.c (x_update_window_end): Handle overwritten mouse face
5963 also for tool bar windows.
5964 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
5965 DRAW is DRAW_IMAGE_RAISED.
5966
5967 2001-03-20 Gerd Moellmann <gerd@gnu.org>
5968
5969 * print.c (syms_of_print): Doc fixes.
5970
5971 * fns.c (Fmd5): Doc fix.
5972
5973 2001-03-19 Gerd Moellmann <gerd@gnu.org>
5974
5975 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5976 Clear area of the frame not occupied by the scroll bar.
5977
5978 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
5979 tip frame's root window buffer to *tip* right after creating
5980 the frame.
5981
5982 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
5983 is an integer don't have to be for space characters.
5984
5985 2001-03-16 Gerd Moellmann <gerd@gnu.org>
5986
5987 * indent.c (current_column, current_column_1, Fmove_to_column)
5988 (compute_motion): Handle characters from display vectors differently.
5989
5990 2001-03-15 Kenichi Handa <handa@etl.go.jp>
5991
5992 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
5993 drawing glyph string.
5994
5995 2001-03-15 Gerd Moellmann <gerd@gnu.org>
5996
5997 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
5998 (command_loop_1): Undo last change.
5999
6000 * xterm.c (fast_find_position): Return the correct vpos.
6001
6002 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
6003 non-null, set a per-buffer value in BUF instead of the current buffer.
6004 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
6005 Call store_symval_forwarding with BUF null.
6006 (set_internal): Call store_symval_forwarding with the BUF
6007 parameter passed to set_internal. Formerly, the value was always
6008 set in the current buffer; the buffer recorded in specbind for
6009 this case wasn't used.
6010 (arith_driver): Reindent.
6011
6012 * buffer.c (swap_out_buffer_local_variables):
6013 Call store_symval_forwarding with BUF null.
6014
6015 * lisp.h (store_symval_forwarding): Change prototype.
6016
6017 * eval.c (specbind): Call store_symval_forwarding with BUF null.
6018
6019 2001-03-14 Gerd Moellmann <gerd@gnu.org>
6020
6021 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
6022 FOR_DELETION. Avoid resizing the mini-window of the selected
6023 frame if FOR_DELETION is set.
6024 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
6025 (Fmake_frame_invisible): Change calls to do_switch_frame for new
6026 signature.
6027
6028 * window.c (Fset_window_configuration): Change call to
6029 do_switch_frame to new format.
6030
6031 * keyboard.c (quit_throw_to_read_char): Change call to
6032 do_switch_frame to new format.
6033
6034 * lisp.h (do_switch_frame): Change prototype.
6035
6036 * frame.c (Fframe_parameters): In the `buffer-list' frame
6037 parameter, store the buffer list of FRAME, not the list of the
6038 selected frame.
6039
6040 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
6041 box just because the glyph row's full_width_p flag is set.
6042
6043 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
6044
6045 * xdisp.c (highlight_trailing_whitespace): On character terminals,
6046 skip the padding blanks inserted in extend_face_to_end_of_line,
6047 before checking for trailing whitespace.
6048
6049 2001-03-13 Gerd Moellmann <gerd@gnu.org>
6050
6051 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
6052 Remove special handling for LessTif/Motif.
6053 (toplevel): Don't include Xm/Xm.h.
6054
6055 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
6056 Remove workaround code for LessTif; it doesn't work anymore.
6057
6058 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
6059 Xm/ScrollBarP.h.
6060
6061 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
6062 Don't access private scroll bar data; it's no longer necessary with
6063 contemporary LessTif.
6064
6065 * xfaces.c (xm_set_menu_resources_from_menu_face):
6066 Change #if 0 to #ifndef LESSTIF_VERSION.
6067
6068 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
6069 removing button grabs.
6070
6071 2001-03-13 Kenichi Handa <handa@etl.go.jp>
6072
6073 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
6074 and clip-large-size-font as obsolete.
6075
6076 * lread.c (read_multibyte): Check the validity of multibyte
6077 sequence. If invalid, return the first byte.
6078
6079 2001-03-12 Gerd Moellmann <gerd@gnu.org>
6080
6081 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
6082 before running the command; timer functions or process
6083 filters may have set it.
6084
6085 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
6086
6087 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
6088 Doc fix.
6089
6090 2001-03-12 Gerd Moellmann <gerd@gnu.org>
6091
6092 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
6093 to sprintf.
6094
6095 2001-03-09 Gerd Moellmann <gerd@gnu.org>
6096
6097 * dispextern.h (string_buffer_position): Add prototype.
6098
6099 * xdisp.c (string_buffer_position, display_prop_string_p)
6100 (single_display_prop_string_p): New functions.
6101
6102 * xterm.c (note_mouse_highlight): If there's no help-echo on
6103 a string, look at the buffer text ``under'' it.
6104
6105 * keyboard.c (make_lispy_event): Add string info to the event,
6106 analogous to what's done on mode lines.
6107 (read_key_sequence): For a click on a string, consider `local-map'
6108 and `keymap' of that string.
6109
6110 * keyboard.c (make_lispy_event, make_lispy_movement):
6111 Adjust calls to buffer_posn_from_coords to new format.
6112
6113 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
6114
6115 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
6116 POS; return void.
6117
6118 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
6119 flags argument to emacs_open; it seems to conflict with O_EXCL.
6120
6121 2001-03-09 Kenichi Handa <handa@etl.go.jp>
6122
6123 * composite.h (struct composition): Change types of members;
6124 glyph_len to unsigned, width to unsigned short.
6125
6126 2001-03-08 Andrew Innes <andrewi@gnu.org>
6127
6128 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
6129 menu titles.
6130
6131 2001-03-08 Gerd Moellmann <gerd@gnu.org>
6132
6133 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
6134 instead of nil.
6135
6136 * xterm.c (note_mouse_highlight): Handle mouse-face and
6137 help-echo in strings.
6138 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
6139 (fast_find_string_pos): New function.
6140
6141 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
6142 (display_string): Call face_at_string_position with new parameter.
6143
6144 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
6145 Handle `mouse-face'.
6146
6147 * dispextern.h (face_at_string_position): Change prototype.
6148
6149 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
6150
6151 * keyboard.c (make_lispy_event): Avoid generating drag events
6152 if the mouse hasn't actually moved to another buffer position.
6153
6154 2001-03-08 Dave Love <fx@gnu.org>
6155
6156 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
6157
6158 2001-03-08 Gerd Moellmann <gerd@gnu.org>
6159
6160 * process.c (Fset_process_window_size): Fix a typo.
6161
6162 2001-03-08 Kenichi Handa <handa@etl.go.jp>
6163
6164 * coding.c (detect_coding_sjis): Do more rigid check.
6165 (detect_coding_big5): Likewise.
6166 (decode_coding_sjis_big5): Likewise.
6167 (Fdetect_coding_region): Call detect_coding_system with tailing
6168 anchor byte `\0' for more rigid detection.
6169 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
6170 (Fdetect_coding_string): Likewise.
6171
6172 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
6173
6174 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
6175 a string before extracting its data.
6176
6177 2001-03-07 Gerd Moellmann <gerd@gnu.org>
6178
6179 * window.c (Frecenter): Rewrite code handling negative values
6180 of ARG on graphical frames.
6181
6182 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
6183
6184 * window.c (displayed_window_lines): If W->start is outside the
6185 accessible portion of the buffer, call start_display with BEGV or
6186 ZV instead of W->start.
6187
6188 2001-03-07 Gerd Moellmann <gerd@gnu.org>
6189
6190 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
6191
6192 * process.c (Fset_process_filter): Don't crash if the input
6193 file descriptor of PROCESS is closed.
6194 (Fset_process_window_size): Likewise.
6195
6196 2001-03-06 Kenichi Handa <handa@etl.go.jp>
6197
6198 * xterm.c (XTflash): Make the timeout of select shorter, and call
6199 select repeatedly until the desired time expires.
6200
6201 2001-03-06 Gerd Moellmann <gerd@gnu.org>
6202
6203 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
6204
6205 * xfns.c (Fx_create_frame): Clear Vwindow_list.
6206
6207 * lisp.h (Vwindow_list): Declare extern.
6208
6209 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
6210
6211 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
6212
6213 2001-03-06 Gerd Moellmann <gerd@gnu.org>
6214
6215 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
6216 to detect a case where we have to highlight a different region
6217 despite not having left the currently highlighted region.
6218 Set mouse_face_overlay in the x_display_info.
6219 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
6220
6221 * xterm.h (struct x_display_info): Add mouse_face_overlay.
6222
6223 * buffer.c (mouse_face_overlay_overlaps): New function.
6224
6225 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
6226 (Qmouse_face): Declare extern.
6227
6228 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
6229 if face_change_count is non-zero.
6230
6231 2001-03-06 Kenichi Handa <handa@etl.go.jp>
6232
6233 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
6234 that the source is unibyte.
6235
6236 2001-03-05 Dave Love <fx@gnu.org>
6237
6238 * xterm.c (XTmouse_position): Fix typo.
6239
6240 2001-03-05 Gerd Moellmann <gerd@gnu.org>
6241
6242 * minibuf.c (read_minibuf): Clean up the binding stack if
6243 called noninteractively.
6244
6245 2001-03-05 Kenichi Handa <handa@etl.go.jp>
6246
6247 * coding.c (syms_of_coding): Docstring modified.
6248
6249 2001-03-05 Kenichi Handa <handa@etl.go.jp>
6250
6251 * charset.c (char_to_string): If a single byte char has modifier
6252 bits that can't be reflected to the character code, ignore them
6253 instead of signaling an error.
6254
6255 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
6256
6257 * s/msdos.h: Update copyright notice.
6258
6259 * dosfns.h: Update copyright notice.
6260
6261 * dosfns.c: Update copyright notice.
6262
6263 * msdos.c: Update copyright notice.
6264
6265 2001-03-02 Gerd Moellmann <gerd@gnu.org>
6266
6267 * xterm.c (glyph_rect): New function.
6268 (XTmouse_position): Use it to raise the threshold for mouse
6269 movement event generation.
6270
6271 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
6272
6273 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
6274 specifies (reverse . t), reverse the initial screen colors.
6275 (IT_set_frame_parameters): If the property is foreground-color,
6276 but we are reversing the colors, set bg_set, not fg_set.
6277 Likewise for setting background-color and reversing: set fg_set.
6278 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
6279 in effect.
6280
6281 * xfaces.c (Finternal_set_lisp_face_attribute)
6282 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
6283 parameters alist.
6284
6285 2001-03-02 Gerd Moellmann <gerd@gnu.org>
6286
6287 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
6288 to a single slash in the middle of file names.
6289
6290 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
6291 Accept only alphanumeric time zone names.
6292
6293 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
6294 or width area.
6295 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
6296 a widget to zero height.
6297
6298 2001-03-01 Gerd Moellmann <gerd@gnu.org>
6299
6300 * window.c (Fwindow_end): Call move_it_past_eol only if
6301 ending up on a partially visible line.
6302
6303 2001-03-01 Dave Love <fx@gnu.org>
6304
6305 * ccl.c (Fccl_execute): Doc fix.
6306
6307 2001-03-01 Gerd Moellmann <gerd@gnu.org>
6308
6309 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
6310 of the tool bar before calling x_figure_window_size.
6311
6312 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
6313 NULL after destroying it, otherwise XTread_socket can access a
6314 destroyed widget when input is unblocked.
6315
6316 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
6317
6318 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
6319 same name as before, although there was a change in fontsets.
6320
6321 2001-02-28 Ken Raeburn <raeburn@gnu.org>
6322
6323 * lisp.h (Fframe_parameter): Declare.
6324
6325 * window.c (set_window_buffer): Field vscroll is an int, not a
6326 Lisp_Object.
6327
6328 2001-02-28 Gerd Moellmann <gerd@gnu.org>
6329
6330 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
6331 NULL instead.
6332
6333 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
6334 NULL instead.
6335
6336 * alloc.c (toplevel): Include process.h.
6337 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
6338 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
6339 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
6340 (allocate_vector, allocate_hash_table, allocate_window)
6341 (allocate_frame, allocate_process, allocate_other_vector):
6342 New functions.
6343 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
6344 (mark_maybe_pointer): New function.
6345 (mark_memory): Also mark Lisp data to which only pointers
6346 remain and not Lisp_Objects.
6347 (min_heap_address, max_heap_address): New variables.
6348 (mem_find): Return MEM_NIL if START is below min_heap_address or
6349 above max_heap_address.
6350 (mem_insert): Compute min_heap_address and max_heap_address.
6351
6352 * process.c (make_process): Use allocate_process.
6353
6354 * frame.c (make_frame): Use allocate_frame.
6355
6356 * window.c (make_window, make_dummy_parent): Use allocate_window.
6357 (Fcurrent_window_configuration): Use allocate_other_vector.
6358
6359 * lisp.h (allocate_vectorlike): Remove prototype.
6360 (allocate_vector, allocate_other_vector, allocate_frame)
6361 (allocate_window, allocate_process, allocate_hash_table):
6362 Add prototypes.
6363
6364 * fns.c (Fdelete, larger_vector): Use allocate_vector.
6365 (make_hash_table, copy_hash_table): Use allocate_hash_table.
6366
6367 2001-02-27 Kenichi Handa <handa@etl.go.jp>
6368
6369 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
6370 treat the produced bytes as a valid multibyte sequence.
6371
6372 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
6373 (ccl_driver) <CCL_WriteMultibyteChar2>:
6374 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
6375 <ccl_finish>: Set ccl->eight_bit_control properly.
6376
6377 * ccl.h (struct ccl_program): New member eight_bit_control.
6378
6379 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
6380
6381 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
6382 accessible_keymaps_char_table.
6383 (accessible_keymaps_char_table): Obey `is_metized'.
6384 (where_is_internal, Fwhere_is_internal): Don't confuse int and
6385 Lisp_Object.
6386
6387 2001-02-26 Gerd Moellmann <gerd@gnu.org>
6388
6389 * dispnew.c: Check HAVE_TERM_H before including term.h.
6390
6391 2001-02-24 Andrew Innes <andrewi@gnu.org>
6392
6393 * makefile.w32-in: Update copyright notice.
6394
6395 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
6396
6397 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
6398
6399 2001-02-24 Kenichi Handa <handa@etl.go.jp>
6400
6401 * Makefile.in (lisp): Add international/utf-8.elc.
6402
6403 * fontset.c (Fnew_fontset): Fix handling of the case that an
6404 element of FONTLIST is a cons of family and registry.
6405
6406 2001-02-23 Jason Rumney <jasonr@gnu.org>
6407
6408 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
6409 to height unconditionally.
6410
6411 * w32term.c (x_set_glyph_string_background_width): Extend the
6412 background face to the end of the drawing area in the text area, only.
6413 (x_insert_glyphs): Call window_box_left to obtain the left
6414 x-coordinate of the area to shift.
6415
6416 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
6417 safe_run_hooks.
6418
6419 2001-02-22 Andrew Innes <andrewi@gnu.org>
6420
6421 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
6422 ($(BLD)\dispnew.obj):
6423 ($(BLD)\editfns.obj):
6424 ($(BLD)\fileio.obj):
6425 ($(BLD)\filelock.obj):
6426 ($(BLD)\keyboard.obj):
6427 ($(BLD)\w32proc.obj):
6428 ($(BLD)\process.obj):
6429 ($(BLD)\sysdep.obj): Ditto.
6430
6431 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
6432 header files.
6433 ($(BLD)/dispnew.$(O)):
6434 ($(BLD)/editfns.$(O)):
6435 ($(BLD)/fileio.$(O)):
6436 ($(BLD)/filelock.$(O)):
6437 ($(BLD)/keyboard.$(O)):
6438 ($(BLD)/w32proc.$(O)):
6439 ($(BLD)/process.$(O)):
6440 ($(BLD)/sysdep.$(O)): Ditto.
6441
6442 2001-02-22 Gerd Moellmann <gerd@gnu.org>
6443
6444 * xdisp.c (forward_to_next_line_start): When taking the shortcut
6445 at the start of the function, check that the \n in it->c is
6446 from the iterator's current position.
6447
6448 * xdisp.c (handle_single_display_prop): Add parameter
6449 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
6450 properties which replace the display of text with something else.
6451 (handle_display_prop): Call handle_single_display_prop with
6452 additional argument saying if we already replaced text display
6453 with something else. Use AREF.
6454 (with_echo_area_buffer_unwind_data, display_menu_bar)
6455 (decode_mode_spec_coding): Use AREF and ASIZE.
6456
6457 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
6458 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
6459 * vmstime.h: Files removed.
6460
6461 * unexencap.c, unexfx2800.c: Files removed.
6462
6463 * dispnew.c (direct_output_for_insert): Give up if we are showing
6464 a message or just cleared the message because we might need to
6465 resize the echo area window or display an empty echo area.
6466
6467 2001-02-21 Gerd Moellmann <gerd@gnu.org>
6468
6469 * xdisp.c (redisplay_internal): Do the
6470 mark_window_display_accurate after all windows have been
6471 redisplayed because this call resets flags in buffers which are
6472 needed for proper redisplay.
6473
6474 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
6475 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
6476 the old names.
6477
6478 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
6479 busy_window to hourglass_window, busy_p to hourglass_p.
6480
6481 * msdos.h (struct x_output): Rename busy_window to
6482 hourglass_window, busy_p to hourglass_p.
6483
6484 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
6485 busy_window to hourglass_window, busy_p to hourglass_p.
6486
6487 * xfns.c: Rename everything containing *busy_cursor* and similar
6488 to *hourglass*.
6489 (syms_of_w32fns): Rename x-busy-pointer-shape to
6490 x-hourglass-pointer-shape, display-busy-cursor to
6491 display-hourglass, busy-cursor-delay to hourglass-delay.
6492
6493 * w32fns.c: Rename everything containing *busy_cursor* and similar
6494 to *hourglass*.
6495 (syms_of_w32fns): Rename x-busy-pointer-shape to
6496 x-hourglass-pointer-shape, display-busy-cursor to
6497 display-hourglass, busy-cursor-delay to hourglass-delay.
6498
6499 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
6500 of its busy_p flag.
6501
6502 * dispextern.h (start_hourglass, cancel_hourglass)
6503 (display_hourglass_p): Renamed from *busy_cursor*.
6504
6505 2001-02-20 Gerd Moellmann <gerd@gnu.org>
6506
6507 * keyboard.c (read_char): When an event from unread-command-events
6508 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
6509
6510 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
6511 equal to the current buffer.
6512
6513 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
6514 nil, otherwise we're left with truncate_lines t when a message
6515 is printed with message-truncate-lines bound to t.
6516
6517 2001-02-19 Gerd Moellmann <gerd@gnu.org>
6518
6519 * window.c (Fmove_to_window_line): Undo last change.
6520 (displayed_window_lines): Call line_bottom_y to determine
6521 the line's bottom position.
6522
6523 * dispextern.h (line_bottom_y): Add prototype.
6524
6525 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
6526 (pos_visible_p): Use it.
6527
6528 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
6529 set redisplaying_p to 0 here instead of in Frecursive_edit.
6530 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
6531 set redisplaying_p.
6532
6533 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
6534 New variables.
6535 (syms_of_xdisp): Initialize new variables.
6536 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
6537 Specbind `inhibit-menubar-update' when updating the menu bar.
6538
6539 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
6540 safe_run_hooks.
6541
6542 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
6543 safe_run_hooks.
6544
6545 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
6546 is null.
6547
6548 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
6549 to the start of the file.
6550
6551 2001-02-16 Gerd Moellmann <gerd@gnu.org>
6552
6553 * window.c (set_window_buffer): Fix last change.
6554
6555 * window.c (set_window_buffer): Set window's vscroll to 0.
6556
6557 * window.c (coordinates_in_window): Increase width of area
6558 where the vertical line can be dragged.
6559
6560 * xterm.c (x_set_glyph_string_background_width): Extend the
6561 background face to the end of the drawing area in the text
6562 area, only.
6563
6564 * xdisp.c (handle_single_display_prop): Set iterator's position
6565 to where the `display' property starts, like for images.
6566 (dump_glyph): New function.
6567 (dump_glyph_row): Use it. Dump info about marginal areas.
6568
6569 * dispnew.c (direct_output_for_insert): Recognize more cases where
6570 glyphs can be written instead of being inserted.
6571
6572 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
6573 the left x-coordinate of the area to shift.
6574
6575 * dired.c (directory_files_internal): Set result list to nil
6576 before retrying.
6577
6578 2001-02-15 Kenichi Handa <handa@etl.go.jp>
6579
6580 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
6581 invalid multibyte sequence, treat *SRC as a character of
6582 eight-bit-graphic.
6583
6584 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
6585
6586 * textprop.c (Fset_text_properties): Doc fix.
6587
6588 2001-02-15 Gerd Moellmann <gerd@gnu.org>
6589
6590 * dispnew.c (update_text_area): Undo change of 2001-01-12.
6591
6592 2001-02-14 Dave Love <fx@gnu.org>
6593
6594 * coding.c: Doc and message fixes.
6595
6596 2001-02-14 Andrew Innes <andrewi@gnu.org>
6597
6598 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
6599 Emacs frame above the screen size.
6600
6601 2001-02-14 Gerd Moellmann <gerd@gnu.org>
6602
6603 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
6604
6605 2001-02-13 Gerd Moellmann <gerd@gnu.org>
6606
6607 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
6608 case that TO ends up beyond ZV after running before-change-functions.
6609
6610 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
6611 the selected window if it is showing the buffer in question.
6612
6613 * dired.c (directory_files_internal): Initialize errno.
6614 (toplevel): Include errno.h.
6615
6616 2001-02-13 Kenichi Handa <handa@etl.go.jp>
6617
6618 * xfaces.c (best_matching_font): New parameter width_ratio.
6619 Multiply avgwidth by width_ratio.
6620 (choose_face_font): Call best_matching_font with width_ratio
6621 calculated from the column width of C.
6622
6623 2001-02-12 Andrew Innes <andrewi@gnu.org>
6624
6625 The following changes are to draw box lines inside characters area
6626 if line-width is negative.
6627
6628 * w32term.c (x_produce_image_glyph): Pay attention to the case that
6629 face->box_line_width is negative.
6630 (x_produce_stretch_glyph): Likewise.
6631 (x_produce_glyphs): Likewise.
6632 (x_estimate_mode_line_height): Likewise.
6633 (x_draw_glyph_string_background): Likewise.
6634 (x_draw_glyph_string_foreground): Likewise.
6635 (x_draw_composite_glyph_string_foreground): Likewise.
6636 (x_draw_glyph_string_box): Likewise.
6637 (x_draw_image_foreground): Likewise.
6638 (x_draw_image_relief): Likewise.
6639 (x_draw_image_foreground_1): Likewise.
6640 (x_draw_image_glyph_string): Likewise.
6641
6642 2001-02-09 Kenichi Handa <handa@etl.go.jp>
6643
6644 The following changes are to draw box lines inside characters area
6645 if line-width is negative.
6646
6647 * xterm.c (x_produce_image_glyph): Pay attention to the case that
6648 face->box_line_width is negative.
6649 (x_produce_stretch_glyph): Likewise.
6650 (x_produce_glyphs): Likewise.
6651 (x_estimate_mode_line_height): Likewise.
6652 (x_draw_glyph_string_background): Likewise.
6653 (x_draw_glyph_string_foreground): Likewise.
6654 (x_draw_composite_glyph_string_foreground): Likewise.
6655 (x_draw_glyph_string_box): Likewise.
6656 (x_draw_image_foreground): Likewise.
6657 (x_draw_image_relief): Likewise.
6658 (x_draw_image_foreground_1): Likewise.
6659 (x_draw_image_glyph_string): Likewise.
6660
6661 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
6662 and :line-width can be negative.
6663 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
6664
6665 2001-02-09 Jason Rumney <jasonr@gnu.org>
6666
6667 * w32term.c (w32_encode_char): Treat eight bit graphic and control
6668 characters the same as ASCII and latin-1.
6669 (x_display_and_set_cursor): Check for the focus frame's selected
6670 window instead of selected_window.
6671 (x_after_update_window_line): Don't clear if frame's internal
6672 border width is zero.
6673 (x_new_font): Don't change a tooltip's size.
6674 (w32_initialize): Set char_ins_del_ok to 1.
6675
6676 * w32fns.c (Fx_show_tip): Fix calls to make_number.
6677 (x_set_font): If font hasn't changed, avoid recomputing
6678 faces and other things.
6679 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
6680 (Fx_create_frame): Add the tool bar height to the frame height.
6681 (x_create_tip_frame): Prevent changing the tooltip's
6682 background color by specifying a color for the default font
6683 in .Xdefaults.
6684 (Qcancel_timer): New variable.
6685 (syms_of_w32fns): Initialize and staticpro it.
6686 (Fx_hide_tip, Fx_show_tip): Use it.
6687 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6688 the timer.
6689 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
6690
6691 * w32.c (init_environment): Duplicate local string before putenv.
6692
6693 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
6694
6695 * charset.c (Fstring): A typo.
6696
6697 2001-02-09 Kenichi Handa <handa@etl.go.jp>
6698
6699 * charset.c (Fstring): If all arguments are less than 256, return
6700 a unibyte string.
6701
6702 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
6703 return a unibyte string.
6704
6705 * coding.c (code_convert_region): After detecting a coding, if
6706 nothing found, set coding->composing to COMPOSITION_NO.
6707 (decode_coding_string): Likewise.
6708
6709 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
6710
6711 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
6712 to avoid overflow.
6713
6714 2001-02-07 Kenichi Handa <handa@etl.go.jp>
6715
6716 * charset.c (parse_str_to_multibyte): New function.
6717
6718 * charset.h (parse_str_to_multibyte): Extern it.
6719
6720 * print.c (print_string): If we are going to print a unibyte
6721 string into a multibyte buffer, convert the string to multibyte by
6722 str_to_multibyte.
6723
6724 2001-02-06 Andrew Innes <andrewi@gnu.org>
6725
6726 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
6727 been created. It seems we can get sent window messages such as
6728 WM_ERASEBKGND before we properly update a frame.
6729
6730 2001-02-06 Gerd Moellmann <gerd@gnu.org>
6731
6732 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
6733 Avoid some unnecessary cursor positioning.
6734
6735 2001-02-05 Gerd Moellmann <gerd@gnu.org>
6736
6737 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
6738 (LFACE_AVGWIDTH): New macro.
6739 (LFACEP): Use AREF.
6740 (check_lface_attrs): Check LFACE_AVGWIDTH.
6741 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
6742 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
6743 (merge_face_vectors): Check LFACE_AVGWIDTH.
6744 (Finternal_make_lisp_face): Use AREF.
6745 (xm_set_menu_resources_from_menu_face)
6746 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
6747 (Finternal_lisp_face_empty_p): Use AREF.
6748 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
6749 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
6750 Compare average widths..
6751 (best_matching_font): Arrange for comparing average widths.
6752
6753 * dispextern.h (enum lface_attribute_index):
6754 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
6755
6756 2001-02-05 Dave Love <fx@gnu.org>
6757
6758 * puresize.h: Revert last change following loadup.el change.
6759
6760 2001-02-05 Andrew Innes <andrewi@gnu.org>
6761
6762 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
6763 invocation of temacs, to work with Windows 2000.
6764 (bootstrap-emacs): Ditto.
6765
6766 2001-02-05 Gerd Moellmann <gerd@gnu.org>
6767
6768 * xterm.c (x_display_and_set_cursor): Check for the focus
6769 frame's selected window instead of selected_window.
6770
6771 * xdisp.c (try_scrolling): If point is in the line below the
6772 window, make sure to move the iterator at least a canonical
6773 char height down.
6774
6775 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
6776
6777 2001-02-05 Kenichi Handa <handa@etl.go.jp>
6778
6779 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
6780 If invalid, execute CCL_INVALID_CMD.
6781 (ccl_driver): If the CCL program is terminated because of
6782 CCL_STAT_INVALID_CMD, copy the remaining source data to the
6783 destination instead of throwing them away.
6784
6785 2001-02-02 Gerd Moellmann <gerd@gnu.org>
6786
6787 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
6788 faces and other things.
6789
6790 * xdisp.c (get_next_display_element): Fix case of empty
6791 display table entry.
6792
6793 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
6794
6795 * editfns.c (Fconstrain_to_field): Doc fix.
6796
6797 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
6798 into `thoroughly', to make it consistent with the doc string.
6799
6800 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
6801
6802 2001-02-01 Gerd Moellmann <gerd@gnu.org>
6803
6804 * search.c (search_buffer): Call set_search_regs with a byte
6805 position, not a character position.
6806
6807 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
6808 minibuffer-only,
6809
6810 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
6811
6812 * frame.c (Fmodify_frame_parameters): Doc fix.
6813
6814 2001-01-31 Gerd Moellmann <gerd@gnu.org>
6815
6816 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
6817 identifier which is not reserved by Standard C.
6818
6819 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
6820
6821 * window.c (enum window_part): New enumeration.
6822 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
6823 Qright_bitmap_area.
6824 (coordinates_in_window): Return an enumerator from enum
6825 window_part. Fix handling of right scroll bar.
6826 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
6827 `right-fringe' instead of `left-bitmap-area' and
6828 `right-bitmap-area'. Use enumerators from enum window_part
6829 instead of hard-coded integers.
6830 (check_window_containing, window_from_coordinates):
6831 Use enumerators from enum window_part instead of hard-coded integers.
6832 (syms_of_window): Replace Qleft_bitmap_area and
6833 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
6834
6835 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
6836
6837 * editfns.c (Fformat_time_string): Doc fix.
6838
6839 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
6840
6841 * keymap.c (Fwhere_is_internal): Use the first valid binding
6842 if no ascii binding is found (when firstonly is t).
6843
6844 2001-01-31 Gerd Moellmann <gerd@gnu.org>
6845
6846 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
6847 instead of Finteractive_p.
6848
6849 * lisp.h (interactive_p): Add prototype.
6850
6851 * eval.c (interactive_p): New function.
6852 (Finteractive_p): Use it.
6853
6854 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
6855
6856 2001-01-31 Dave Love <fx@gnu.org>
6857
6858 * .gdbinit (hook-run): Define to run xreload.
6859
6860 * textprop.c (Fset_text_properties): Fix newline in doc string.
6861
6862 2001-01-30 Gerd Moellmann <gerd@gnu.org>
6863
6864 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
6865 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
6866
6867 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
6868 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
6869 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
6870
6871 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
6872 height.
6873
6874 2001-01-30 Dave Love <fx@gnu.org>
6875
6876 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
6877 AFTER_POTENTIAL_GC.
6878
6879 2001-01-29 Gerd Moellmann <gerd@gnu.org>
6880
6881 * bytecode.c (Fbyte_code) <Bcurrent_column>:
6882 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
6883
6884 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
6885
6886 * textprop.c (Fset_text_properties): Doc fix.
6887
6888 2001-01-29 Gerd Moellmann <gerd@gnu.org>
6889
6890 * xdisp.c (forward_to_next_line_start): Remove xassert.
6891
6892 2001-01-29 Jason Rumney <jasonr@gnu.org>
6893
6894 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
6895 returning without releasing it.
6896
6897 2001-01-29 Kenichi Handa <handa@etl.go.jp>
6898
6899 * w32fns.c (w32_font_match): Allocate three more bytes to regex
6900 for '^', '$', and '\0'.
6901
6902 2001-01-28 Andrew Choi <akochoi@i-cable.com>
6903
6904 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
6905 regex for '^', '$', and '\0'.
6906
6907 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
6908 only if current_sblock has been initialized.
6909
6910 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
6911 terminal frame even if it is the only visible frame.
6912
6913 2001-01-28 Kenichi Handa <handa@etl.go.jp>
6914
6915 * fontset.c (font_family_registry): Even if FONTNAME conform to
6916 XLFD, if it specifies other fields than family and registry,
6917 return FONTANME. New argument FORCE if nonzero cancel that feature.
6918 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
6919 a signle byte character. Don't set FAMILY part to nil here.
6920 It is handled by the caller choose_face_font.
6921 (Fnew_fontset): Call font_family_registry with FORCE 0.
6922 (Fset_fontset_font): Likewise.
6923
6924 2001-01-27 Gerd Moellmann <gerd@gnu.org>
6925
6926 * xdisp.c (display_line): Don't treat a newline as fitting
6927 on the line.
6928
6929 2001-01-26 Gerd Moellmann <gerd@gnu.org>
6930
6931 * window.c (size_window): Set the window's orig_top to nil when
6932 changing heights, so that a future shrink_mini_window won't
6933 restore a bogus height.
6934
6935 * frame.c (do_switch_frame): If selected frame has a mini-window,
6936 resize that to exact size.
6937
6938 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
6939
6940 * xdisp.c (display_line): Simplify check for glyphs fitting
6941 entirely in the line.
6942
6943 * xfns.c (xic_style): New variable.
6944 (create_frame_xic): Move static variable to global scope for
6945 the case that `static' gets defined away.
6946
6947 2001-01-26 Kenichi Handa <handa@etl.go.jp>
6948
6949 * coding.c (decode_coding): Set a flag for inhibiting
6950 inconsistent eol.
6951 (code_convert_region): Always set saved_coding_symbol.
6952 (decode_coding_string): Likewise. Update coding->symbol when we
6953 encounter a inconsistent eol by the same way as code_convert_region.
6954
6955 2001-01-25 Gerd Moellmann <gerd@gnu.org>
6956
6957 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
6958 XClearArea.
6959
6960 * xterm.c (x_after_update_window_line): Don't clear if frame's
6961 internal border width is zero.
6962 (x_clear_area): New function.
6963 (x_after_update_window_line, x_clear_end_of_line)
6964 (x_scroll_bar_create, x_scroll_bar_set_handle)
6965 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
6966 instead of XClearArea.
6967
6968 * xterm.h (x_clear_area): Add prototype.
6969
6970 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
6971 which doesn't seem necessary anymore with Lesstif 0.92.
6972
6973 2001-01-25 Dave Love <fx@gnu.org>
6974
6975 * puresize.h (BASE_PURESIZE): Up to 720000.
6976
6977 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
6978
6979 2001-01-25 Gerd Moellmann <gerd@gnu.org>
6980
6981 * xdisp.c (echo_area_display): Don't call redisplay_internal
6982 when Emacs is shutting down. We can't run hooks etc. that
6983 would be necessary to do a redisplay.
6984
6985 * lread.c (read_integer): Use type EMACS_INT instead of int.
6986
6987 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
6988
6989 * ccl.c (ccl_driver): Fix last change.
6990
6991 2001-01-25 Kenichi Handa <handa@etl.go.jp>
6992
6993 * ccl.h (sturct ccl_program): New member suppress_error.
6994
6995 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
6996 insert error message to the output.
6997 (setup_ccl_program): Initialize ccl->suppress_error to 0.
6998
6999 * coding.h (struct coding_system): New member suppress_error.
7000
7001 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
7002 (Fset_terminal_coding_system_internal): Set the member
7003 suppress_error to 1.
7004 (Fset_safe_terminal_coding_system_internal): Likewise.
7005
7006 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
7007
7008 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
7009 as if it was a `charset'.
7010
7011 2001-01-24 Gerd Moellmann <gerd@gnu.org>
7012
7013 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
7014 value in where_is_cache; the next lookup in the cache returns
7015 something bogus if we do.
7016
7017 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
7018
7019 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
7020 if HAVE_WINDOW_SYSTEM isn't defined.
7021
7022 2001-01-24 Gerd Moellmann <gerd@gnu.org>
7023
7024 * fns.c (sweep_weak_table): Fix code taking items out of
7025 the hash collision chain. Some cleanup.
7026
7027 * xterm.c (x_new_font): Don't change a tooltip's size.
7028
7029 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
7030 background color by specifying a color for the default font
7031 in .Xdefaults.
7032
7033 2001-01-24 Kenichi Handa <handa@etl.go.jp>
7034
7035 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
7036 a workaround for SunOS 4's cc.
7037 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
7038 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
7039 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
7040 statement.
7041
7042 2001-01-23 Gerd Moellmann <gerd@gnu.org>
7043
7044 * xterm.c (x_set_window_size_1): New function extracted from
7045 x_set_window_size.
7046 (x_set_window_size): Use it.
7047 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
7048 doesn't have a widget, like tooltips.
7049
7050 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
7051
7052 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
7053
7054 2001-01-23 Kenichi Handa <handa@etl.go.jp>
7055
7056 * fns.c (Fset_char_table_default): Fix to make sub char-table
7057 correctly.
7058
7059 2001-01-22 Gerd Moellmann <gerd@gnu.org>
7060
7061 * xdisp.c (build_desired_tool_bar_string): Make sure we have
7062 a desired tool bar string, even if there are no tool bar items.
7063
7064 * xdisp.c (Ftool_bar_lines_needed): New function.
7065 (syms_of_xdisp): Defsubr it.
7066
7067 * editfns.c (Fformat): Don't extend text properties from arguments
7068 to padding chars in the result.
7069
7070 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
7071
7072 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
7073
7074 2001-01-20 Andrew Innes <andrewi@gnu.org>
7075
7076 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
7077 (w32_initialize): Don't set term hooks that aren't actually needed
7078 in windowed mode.
7079
7080 * xfaces.c (realize_default_face):
7081 (realize_face):
7082 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
7083
7084 * xdisp.c (handle_single_display_prop): Remove references to
7085 FRAME_W32_CONSOLE_P.
7086
7087 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
7088
7089 * frame.h (output_method): Remove output_w32_console method.
7090 (FRAME_W32_CONSOLE_P): Remove macro.
7091
7092 * frame.c (Qw32_console): Remove variable.
7093 (Fframep): Remove references to it.
7094 (syms_of_frame): Ditto.
7095 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
7096
7097 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
7098 redefinition.
7099
7100 2001-01-20 Kenichi Handa <handa@etl.go.jp>
7101
7102 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
7103
7104 2001-01-19 Andrew Innes <andrewi@gnu.org>
7105
7106 * w32.c (init_environment): Add a version-independent site-lisp
7107 directory to EMACSLOADPATH, after the version dependent one.
7108
7109 2001-01-19 Gerd Moellmann <gerd@gnu.org>
7110
7111 * editfns.c (Fbuffer_substring): Doc fix.
7112
7113 * xdisp.c (message_dolog, message2, message2_nolog):
7114 Rename parameter LEN to NBYTES.
7115
7116 2001-01-19 Kenichi Handa <handa@etl.go.jp>
7117
7118 * charset.c (strwidth): Use c_string_width.
7119 (c_string_width): New function.
7120 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
7121 Caller changed.
7122
7123 * charset.h (c_string_width, lisp_string_width): Extern them.
7124
7125 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
7126
7127 * indent.c (check_composition): Check validity of composition.
7128
7129 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
7130 characters by calling c_string_width.
7131 (x_consider_frame_title): Get byte length of frame tile string
7132 correctly.
7133 (display_mode_element): Pay attention to width of non-ASCII
7134 characters by calling strwidth.
7135
7136 2001-01-18 Gerd Moellmann <gerd@gnu.org>
7137
7138 * xfns.c (Qcancel_timer): New variable.
7139 (syms_of_xfns): Initialize and staticpro it.
7140 (Fx_hide_tip, Fx_show_tip): Use it.
7141 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
7142 the timer.
7143 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
7144
7145 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
7146
7147 * window.h (WINDOW_LIVE_P): New macro.
7148
7149 * window.c (window_size_fixed): New variable.
7150 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
7151 the doc string.
7152
7153 * eval.c (specbind): If binding a per-buffer variable which
7154 doesn't have a buffer-local value in the current buffer, change
7155 the global value by changing the value of the symbol bound in all
7156 buffers not having their own value, to make it consistent with
7157 what happens with other buffer-local variables.
7158
7159 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
7160
7161 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
7162 when searching for a newline.
7163
7164 2001-01-18 Kenichi Handa <handa@etl.go.jp>
7165
7166 * xdisp.c (display_string): Fix previous change.
7167
7168 2001-01-18 Jason Rumney <jasonr@gnu.org>
7169
7170 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
7171 GLYPH_DEBUG is defined.
7172 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
7173 true for images with `:ascent 100'.
7174 (x_set_mouse_face_gc): If the last used mouse face has gone in the
7175 meantime, use face MOUSE_FACE_ID.
7176 If first glyph isn't a character glyph, use the ASCII NUL
7177 character to determine the face.
7178 (expose_area): Do not treat left margin specially.
7179 (note_mode_line_highlight): If no local_map, check global keymap.
7180 (note_mouse_highlight): Initialize overlay.
7181 (clear_mouse_face): Don't return if tip_frame is non-nil.
7182 (show_scroll_bars): Remove unused function.
7183 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
7184 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
7185 Clip to row.
7186 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
7187 (x_free_frame_resources): Unload relief colors.
7188
7189 2001-01-17 Gerd Moellmann <gerd@gnu.org>
7190
7191 * xdisp.c (forward_to_next_line_start): Avoid calling
7192 get_next_display_element when the newline is already found.
7193 This may change the iterator's position, when its current position is
7194 equal to the iterator's stop_charpos.
7195
7196 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
7197 zero, use this method only at the end of a line.
7198
7199 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
7200 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
7201 if SCALABLE_FONTS_P is set.
7202
7203 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
7204 so that scalable fonts are included.
7205
7206 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
7207 In the cache, use a key containing the information if scalable
7208 fonts are included.
7209 (x_load_font): Adapt to change of keys in the font cache.
7210
7211 2001-01-17 Kim F. Storm <storm@filanet.dk>
7212
7213 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
7214 XListFonts to take advantage of font caching.
7215
7216 * xterm.c (x_list_fonts): Ensure caching font information when
7217 called for a null frame, which is the case frequently when Emacs
7218 starts.
7219
7220 2001-01-17 Gerd Moellmann <gerd@gnu.org>
7221
7222 * xfns.c (QCconversion): Replaces QCalgorithm.
7223
7224 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
7225
7226 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
7227 of :algorithm.
7228
7229 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
7230 not everything could be displayed.
7231
7232 * line.h, x-list-font.c: Files removed because unused.
7233
7234 2001-01-17 Andrew Innes <andrewi@gnu.org>
7235
7236 * dired.c (directory_files_internal): Convert result from readdir
7237 to a unibyte string initially, to avoid possible misinterpretation
7238 of some bytes as the internal form of Emacs characters.
7239
7240 2001-01-17 Kenichi Handa <handa@etl.go.jp>
7241
7242 * fns.c (concat): Be sure to avoid putting the same `composition'
7243 property on the adjacent regions.
7244
7245 2001-01-16 Gerd Moellmann <gerd@gnu.org>
7246
7247 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
7248 (Fscroll_right, Fscroll_left): Set it here instead, if called
7249 interactively.
7250
7251 * buffer.c (Fset_buffer_modified_p): Set buffer's
7252 prevent_redisplay_optimizations_p flag.
7253
7254 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
7255 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
7256 with additional arg.
7257
7258 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
7259 Change prototype.
7260
7261 * xdisp.c (redisplay_preserve_echo_area): Add parameter
7262 FROM_WHERE, for debugging.
7263
7264 2001-01-16 Kenichi Handa <handa@etl.go.jp>
7265
7266 * ccl.c (Fregister_ccl_program): Handle the return value of
7267 resolve_symbol_ccl_program correctly.
7268 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
7269
7270 2001-01-15 Gerd Moellmann <gerd@gnu.org>
7271
7272 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
7273 has gone in the meantime, use face MOUSE_FACE_ID.
7274
7275 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
7276 If x_display_info_for_display returns null, don't try to close
7277 the display; we didn't open it.
7278
7279 * dispnew.c (save_or_restore_current_matrices): Function removed.
7280 (save_current_matrix, restore_current_matrix): New functions.
7281 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
7282 restore the frame's current matrix. Due to the glyph pointer
7283 setup done in adjust_glyph_matrix, there is no easy way to make
7284 saving the current matrix in the desired matrix generally correct,
7285 so don't try it.
7286
7287 2001-01-15 Kenichi Handa <handa@etl.go.jp>
7288
7289 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
7290 truncation glyphs.
7291 (display_line): Optimize for wide characters.
7292 (display_string): Don't try to display a multi-column character
7293 partially. On ttys, produce more than one truncation glyph for
7294 multi-column characters that don't fit on the line.
7295
7296 2001-01-13 Kenichi Handa <handa@etl.go.jp>
7297
7298 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
7299 Define it instead of WORDS_BIGENDIAN. Caller changed.
7300
7301 2001-01-13 Jason Rumney <jasonr@gnu.org>
7302
7303 * w32fns.c (Fimage_size, image_ascent, lookup_image)
7304 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
7305 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7306 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
7307
7308 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
7309 (x_draw_image_relief, x_draw_image_foreground_1)
7310 (x_draw_image_glyph_string): Adapt to change of image margins.
7311
7312 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
7313 variables.
7314
7315 * w32bdf.c (search_file_line, get_cached_font_char)
7316 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
7317
7318 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
7319
7320 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
7321 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
7322 (Fw32_send_sys_command): Remove unused variables.
7323 (w32_msg_pump): Add parentheses.
7324
7325 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
7326 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
7327 Add parentheses.
7328
7329 2001-01-12 Gerd Moellmann <gerd@gnu.org>
7330
7331 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
7332 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
7333 being a pair of margins.
7334 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
7335 to DEFVAR_LISP. Extend doc.
7336
7337 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
7338 margins.
7339 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
7340 pair of integers `(X . Y)', use X for the horizontal and Y for the
7341 vertical margin.
7342 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
7343 (parse_image_spec): Check it.
7344 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7345 (tiff_format, gif_format, gs_format):
7346 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
7347
7348 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
7349 (x_draw_image_relief, x_draw_image_foreground_1)
7350 (x_draw_image_glyph_string): Adapt to the change of image margins.
7351
7352 * dispextern.h (struct image): Replace member `margin' with
7353 `hmargin' and `vmargin'.
7354
7355 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
7356 and GLYPHS.
7357
7358 * dispnew.c (update_text_area): Put code which decrements the
7359 stop position when the row's face extends to the end of the
7360 line in #if 0.
7361
7362 * xfns.c (x_set_mouse_color): Fix color allocation.
7363
7364 * keyboard.c: Call get_local_map with new argument list.
7365
7366 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
7367
7368 * intervals.h (enum map_property): Removed.
7369 (get_local_map): Change prototype.
7370
7371 * keymap.c: Call get_local_map with new argument list.
7372 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
7373
7374 2001-01-11 Gerd Moellmann <gerd@gnu.org>
7375
7376 * xdisp.c (build_desired_tool_bar_string): Correct the computation
7377 of the size needed for the tool bar string. For the last image,
7378 use a `display' property that reaches to the end of the string.
7379
7380 * xselect.c (selection_request_dpyinfo): New variable.
7381 (x_handle_selection_request): Set it.
7382 (x_selection_request_lisp_error): Don't call
7383 x_decline_selection_request if selection request's display has
7384 been closed.
7385
7386 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
7387 Do the unregister_colors before calling XFreeColors.
7388
7389 2001-01-10 Dave Love <fx@gnu.org>
7390
7391 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
7392 ${SOME_MACHINE_LISP}, not ${lisp}.
7393
7394 2001-01-10 Gerd Moellmann <gerd@gnu.org>
7395
7396 * xdisp.c (display_line): On ttys, produce more than one truncation
7397 glyph for multi-column characters that don't fit on the line.
7398
7399 * xselect.c (x_reply_selection_request): Add a comment.
7400
7401 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
7402 XkbGetNames instead of XkbGetKeyboard.
7403
7404 2001-01-10 Dave Love <fx@gnu.org>
7405
7406 * sysdep.c (random): Revert the declaration.
7407
7408 2001-01-09 Gerd Moellmann <gerd@gnu.org>
7409
7410 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
7411 Call function string_bytes.
7412 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
7413
7414 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
7415 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
7416 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
7417 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
7418 the current sblock.
7419 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
7420 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
7421 after sweeping strings, and at the end.
7422 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
7423
7424 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
7425 ensure that pop_message is called.
7426
7427 * keyboard.c (Fexecute_extended_command): Use a
7428 record_unwind_protect to ensure that pop_message is called.
7429
7430 * lisp.h (push_message_unwind): Add prototype.
7431
7432 * xdisp.c (push_message_unwind): New function.
7433
7434 * fileio.c (do_auto_save_unwind): Do the pop_message here
7435 instead of in Fdo_auto_save.
7436 (Fdo_auto_save): Don't call pop_message.
7437
7438 2001-01-08 Ken Raeburn <raeburn@gnu.org>
7439
7440 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
7441 in inner block.
7442
7443 2001-01-08 Gerd Moellmann <gerd@gnu.org>
7444
7445 * window.c (window_scroll_pixel_based): Adjust glyph matrices
7446 when increasing window's vscroll.
7447
7448 * macros.c (Qkbd_macro_termination_hook): New variable.
7449 (syms_of_macros): Initialize and staticpro it.
7450 (pop_kbd_macro): Run kbd-macro-termination-hook.
7451
7452 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
7453
7454 2001-01-07 Dave Love <fx@gnu.org>
7455
7456 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
7457 arglist, for documentation's sake.
7458
7459 2001-01-06 Andrew Innes <andrewi@gnu.org>
7460
7461 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
7462 of *.pdb.
7463
7464 2001-01-05 Andrew Innes <andrewi@gnu.org>
7465
7466 * term.c (update_end): Don't check updating_frame; for some reason
7467 this can be 0 sometimes, such as after dismissing a popup menu,
7468 and isn't necessary given the explicit frame argument.
7469
7470 2001-01-05 Gerd Moellmann <gerd@gnu.org>
7471
7472 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
7473 on some systems, and an unsigned long on others, like FreeBSD 4.1.
7474
7475 2001-01-04 Gerd Moellmann <gerd@gnu.org>
7476
7477 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
7478
7479 * xfns.c (x_create_tip_frame): Preserve the value of
7480 face_change_count around the creation of the tip frame.
7481
7482 * xfns.c (last_show_tip_args): New variable.
7483 (compute_tip_xy): New function.
7484 (Fx_show_tip): Reuse an existing tip frame, if possible.
7485 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
7486
7487 2001-01-04 Dave Love <fx@gnu.org>
7488
7489 * editfns.c (Fformat): Doc fix.
7490
7491 * systime.h (set_file_times): Prototype.
7492
7493 * widget.h (EmacsFrameSetCharSize_): Prototype.
7494
7495 * sysdep.c (random, srandom): Declare explicitly.
7496
7497 * dispextern.h (move_it_vertically_backward): Declare.
7498
7499 2001-01-04 Gerd Moellmann <gerd@gnu.org>
7500
7501 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
7502 like in Fx_create_frame.
7503
7504 * xfaces.c (set_font_frame_param): Don't do anything for
7505 non-graphical frames.
7506
7507 * window.c (Fdelete_other_windows): Set window's window_end_valid
7508 to nil when changing the window's start. Don't change the
7509 window's start when its top position hasn't changed. If we do,
7510 this will set the window's optional_new_start, which act's like a
7511 force_start during redisplay with C-x 1 M-> under particular
7512 circumstances (see report from Per Starback to emacs-pretest-bug
7513 from 2000-12-13.).
7514
7515 2001-01-03 Gerd Moellmann <gerd@gnu.org>
7516
7517 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
7518 short cut at the start of the function. Add an assertion.
7519 (reseat_at_next_visible_line_start): Add an assertion.
7520
7521 * window.c (Frecenter): When changing the window start, set the
7522 window's window_end_valid to nil.
7523 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
7524
7525 * dispextern.h (move_it_past_eol): Add prototype.
7526
7527 * xdisp.c (move_it_past_eol): New function.
7528
7529 * window.c (Fwindow_end): Doc fix.
7530
7531 2001-01-03 Dave Love <fx@gnu.org>
7532
7533 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
7534
7535 2001-01-03 Gerd Moellmann <gerd@gnu.org>
7536
7537 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
7538 the enabled_p flag of the glyph row at window_end_vpos to 0.
7539 (handle_single_display_prop): Fix last change.
7540
7541 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7542
7543 * window.c (Frecenter): Doc fix.
7544
7545 2001-01-02 Andrew Innes <andrewi@gnu.org>
7546
7547 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
7548
7549 * frame.h (output_method): Add output_w32_console method.
7550 (FRAME_W32_CONSOLE_P): New macro.
7551
7552 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
7553 use output_w32_console method.
7554 (Qw32_console): New Lisp_Object.
7555 (Fframep): Return it.
7556 (syms_of_frame): Init it.
7557 (Fframe_parameters): Report w32console as font for w32_console frames.
7558
7559 * xfaces.c (realize_default_face): Set face foreground and
7560 background to unspecified for w32_console frames.
7561 (realize_face): Realize face cache for w32_console frames.
7562 (realize_tty_face): Accept w32_console frames.
7563
7564 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
7565 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
7566 necessary, even if running interactively.
7567
7568 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
7569 w32_console frames.
7570
7571 * w32term.c (x_update_begin):
7572 (x_update_end):
7573 (x_clear_frame):
7574 (x_ins_del_lines):
7575 (x_change_line_highlight):
7576 (x_delete_glyphs):
7577 (w32_ring_bell):
7578 (x_update_begin):
7579 (x_update_end):
7580 (w32_reassert_line_highlight):
7581 (w32_frame_rehighlight):
7582 (w32_frame_raise_lower): Do nothing if not w32 frame.
7583
7584 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
7585
7586 * w32fns.c (Fx_display_color_cells): Determine correct value, when
7587 system doesn't tell us directly.
7588 (Fx_display_visual_class): Implement properly.
7589
7590 2001-01-02 Gerd Moellmann <gerd@gnu.org>
7591
7592 * window.c (Frecenter): Handle centering in graphical frames
7593 specially. Centering on the basis of line counts doesn't work
7594 reliably with variable-height lines.
7595
7596 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
7597
7598 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
7599 and al[].
7600
7601 * composite.c (run_composition_function): Remove unused var `val'.
7602 (update_compositions): Remove unused variable `hook'.
7603
7604 * intervals.c (get_local_map): Remove unused variable `tem'.
7605
7606 * doprnt.c (doprnt1): Remove unused variable `size'.
7607
7608 * fns.c (Flength): Remove unused variable `tail'.
7609 (Fdelete): Remove unused variable `size'.
7610
7611 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
7612 and `gcpro2'.
7613
7614 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
7615
7616 * data.c (find_symbol_value): Remove extra 3rd argument in the
7617 call to swap_in_symval_forwarding.
7618
7619 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
7620
7621 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
7622 (trivial_regexp_p): Remove unused variable `c'.
7623 (boyer_moore): Remove unused variable `k'.
7624
7625 * indent.c (current_column): Remove unused variable `stopchar'.
7626 (Fcompute_motion): Remove unused variable `contin'.
7627
7628 * casefiddle.c (casify_object): Remove unused variable `tolen'.
7629
7630 * dired.c (directory_files_internal): Fix a typo in a comment.
7631 Remove an unused variable `handler'.
7632 (file_name_completion): Remove unused function-scope variable `dp'.
7633 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
7634 on BSD4_2.
7635
7636 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
7637
7638 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
7639 and `buf'.
7640 (Fmarker_insertion_type): Remove unused variable `buf'.
7641
7642 * insdel.c (make_gap): Remove unused variable `result'.
7643
7644 * keyboard.c (record_char): Remove unused function-scope var `help'.
7645 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
7646 (menu_bar_items): Remove unused function-scope variable `tem'.
7647
7648 * fontset.c (fontset_ref): Remove unused variable `i'.
7649 (fontset_set): Remove unused variables `j' and `tmp'.
7650 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
7651 (make_fontset_for_ascii_face): Remove unused variable `name'.
7652 (fs_load_font): Remove unused variable `font_idx'.
7653 (fs_query_fontset): Remove unused function-local variable `fontset'.
7654 (list_fontsets): Remove unused variable `tail'.
7655 (Fnew_fontset): Remove unused variables `family' and `registry'.
7656 (accumulate_font_info): Remove unused variable `tmp'.
7657 (Ffontset_font): Remove unused variable `id'.
7658 (syms_of_fontset): Remove unused variable `i'.
7659
7660 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
7661 to x_term_init.
7662 (lookup_image): Remove unused variable `file'.
7663 (xbm_load): Remove unused variables `bitmap_data', `height', and
7664 `width'. Remove function-local variable `i', leave the
7665 block-local one.
7666 (gif_load): Remove unused variable `inc'.
7667
7668 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
7669 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
7670 leave only the one in the inner block.
7671
7672 * xfaces.c (face_fontset, realize_default_face): Remove unused
7673 variable `fontset'.
7674 (face_at_buffer_position): Remove unused variable `multibyte_p'.
7675
7676 * term.c (encode_terminal_code): Remove unused variable `c'.
7677
7678 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
7679 char *' instead of `char *'.
7680
7681 * category.c (Fcategory_docstring): Remove unused variable `doc'.
7682 (Fget_unused_category): Remove unused variable `docstring_vector'.
7683 (Fchar_category_set): Remove unused variables `val', `charset',
7684 `c1' and `c2'.
7685
7686 * coding.c (detect_coding_iso2022, setup_coding_system):
7687 Remove unused variable `i'.
7688 (detect_coding_mask): Remove unused variable `idx'.
7689 (detect_coding): Remove unused variable `i'.
7690 (ccl_coding_driver): Remove unused variable `result'.
7691 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
7692 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
7693 (encode_coding_string): Remove unused variables `gcpro1' and
7694 `saved_coding_symbol'.
7695 (Ffind_coding_systems_region_internal): Remove function-local
7696 variable args[], leave only the block-local one.
7697 (code_convert_region1): Remove unused variable `len'.
7698
7699 * charset.c (char_printable_p): Remove unused variable `chars'.
7700 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
7701 (str_to_multibyte): Remove unused variable `c'.
7702
7703 * window.c (size_window): Remove block-local variable `min_size'.
7704
7705 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
7706 `header_line_height'.
7707 (append_space, extend_face_to_end_of_line): Declare `saved_what'
7708 enum display_element_type.
7709
7710 2001-01-02 Gerd Moellmann <gerd@gnu.org>
7711
7712 * xterm.c (x_connection_closed): Catch X errors around all
7713 statements that call X. Save away the error message in a local copy.
7714
7715 * xterm.c (x_connection_closed): Set handling_signal to 0 at
7716 the start.
7717
7718 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
7719 in or at the start of invisible text.
7720
7721 * dispnew.c (update_window): Don't check_current_matrix_flags.
7722
7723 2001-01-01 Jason Rumney <jasonr@gnu.org>
7724
7725 * w32fns.c (x_figure_window_size): Do not allow new_height and
7726 new_width of frame to override specified values.
7727
7728 2000-12-30 Kenichi Handa <handa@etl.go.jp>
7729
7730 * composite.c (find_composition): Fix a code for searching backward.
7731
7732 2000-12-29 Gerd Moellmann <gerd@gnu.org>
7733
7734 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
7735 (update_window) [GLYPH_DEBUG]: Call it.
7736 (scrolling_window): Prevent including current rows which are below
7737 what's displayed in the window.
7738
7739 * xdisp.c (try_window_reusing_current_matrix)
7740 <new start <= old start>: Disable rows in the current matrix
7741 which are below the window after scrolling.
7742
7743 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
7744 is zero. It's not worth the complexity.
7745 (invisible_text_between_p): Put in #if 0 because unused.
7746
7747 2000-12-28 Gerd Moellmann <gerd@gnu.org>
7748
7749 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
7750 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
7751
7752 * keyboard.c (echo_char): If C is an integer, always call
7753 push_key_description. Former code could signal an invalid
7754 character error.
7755
7756 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
7757 If set, print multibyte text.
7758 (Fsingle_key_description): Call push_key_description with
7759 FORCE_MULTIBYTE set.
7760 (describe_buffer_bindings): Likewise.
7761
7762 * lisp.h (push_key_description): Add prototype.
7763
7764 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
7765 around the call to redisplay_internal.
7766
7767 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
7768
7769 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
7770
7771 2000-12-28 Kenichi Handa <handa@etl.go.jp>
7772
7773 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
7774 (ccl_driver): New local variable `extra_bytes'.
7775
7776 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
7777
7778 * coding.c (setup_coding_system):
7779 Initialize coding->spec.ccl.eight_bit_carryover.
7780 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
7781
7782 2000-12-28 Kenichi Handa <handa@etl.go.jp>
7783
7784 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
7785 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
7786 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
7787 (decode_composition_emacs_mule): New function.
7788 (decode_coding_emacs_mule): Decode composition sequence by calling
7789 decode_composition_emacs_mule.
7790 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
7791 (encode_coding_emacs_mule): Changed from macro to function.
7792 If a text contains compositions, encode them correctly.
7793 (setup_coding_system): Set coding->commong_flags for emacs-mule so
7794 that decoding and encoding are required.
7795
7796 2000-12-27 Gerd Moellmann <gerd@gnu.org>
7797
7798 * xfaces.c (PT_PER_INCH): New macro.
7799 (xlfd_point_size): Compute real point size from font's pixel size.
7800 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
7801 instead of 72.
7802
7803 * .gdbinit: Comment out the line pointing to the Lesstif source
7804 directory.
7805
7806 * window.c (Frecenter): Use displayed_window_lines instead
7807 of window_internal_height.
7808
7809 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7810 instead of x-toolkit-scroll-bars-p.
7811 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
7812
7813 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7814 instead of x-toolkit-scroll-bars-p.
7815 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
7816
7817 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
7818 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
7819 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
7820 New variables.
7821 (add_window_display_history, add_frame_display_history)
7822 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
7823 (build_frame_matrix_from_leaf_window): Remove unused code.
7824 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
7825 redisplay history.
7826 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
7827 (update_window) [GLYPH_DEBUG]: Likewise.
7828 (syms_of_display): Defsubr dump-redisplay-history.
7829
7830 2000-12-23 Gerd Moellmann <gerd@gnu.org>
7831
7832 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
7833 the end of the prompt. Set echo_after_prompt to the offset
7834 of echoptr in echobuf.
7835
7836 * xdisp.c (init_from_display_pos): Pop until the iterator's
7837 stack is empty; there may be frames for stretch or images
7838 on the stack.
7839
7840 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
7841 (save_or_restore_current_matrix): New function for the same
7842 purpose, but more efficient.
7843 (adjust_frame_glyphs_for_frame_redisplay): Use it.
7844
7845 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
7846
7847 * xdisp.c (syms_of_xdisp): Fix last change.
7848
7849 2000-12-23 Gerd Moellmann <gerd@gnu.org>
7850
7851 * xdisp.c (syms_of_xdisp): Doc fix.
7852
7853 * xdisp.c (redisplay_window): Remove label restore_buffers;
7854 use finish_scroll_bars instead to make sure that scroll bars
7855 are redeemed. If we don't do this, flickering can result from
7856 scroll bars being destroyed and recreated.
7857
7858 2000-12-22 Jason Rumney <jasonr@gnu.org>
7859
7860 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
7861 in the wrong colors when the foreground is not black.
7862 (expose_window): Don't redraw the window that's currently being
7863 updated.
7864
7865 2000-12-22 Gerd Moellmann <gerd@gnu.org>
7866
7867 * window.c (size_window): When setting the window's too_small_ok
7868 flag, compare old size with minimum size depending on WIDTH_P,
7869 don't compare with window_min_width.
7870
7871 * window.c (delete_window): Simplify somewhat.
7872 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
7873 freeing window matrices. The flag windows_or_buffers_changed is
7874 set, so the next redisplay will consider all windows; this should
7875 suffice.
7876
7877 2000-12-22 Kenichi Handa <handa@etl.go.jp>
7878
7879 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
7880
7881 * ccl.h (struct ccl_program): New member cr_consumed.
7882
7883 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
7884 (CCL_READ_CHAR): Handle EOL conversion here.
7885 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
7886
7887 2000-12-21 Gerd Moellmann <gerd@gnu.org>
7888
7889 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
7890
7891 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
7892 otherwise tabs of different size compare equal.
7893
7894 * callint.c (Fcall_interactively): Prevent a compiler warning.
7895
7896 * print.c (print_unwind): Return nil.
7897 (PRINTDECLARE): Initialize all local variables.
7898 (print_preprocess): Add a default case.
7899
7900 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
7901
7902 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
7903
7904 * window.c (delete_window, Fsplit_window)
7905 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
7906
7907 * dispextern.h (ensure_frame_matrix): Function declaration removed.
7908
7909 * dispnew.c (ensure_frame_matrix): Removed.
7910 (save_frame_matrix, restore_frame_matrix): New functions.
7911 (adjust_frame_glyphs_for_frame_redisplay): Use them.
7912
7913 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
7914 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
7915
7916 2000-12-21 Andrew Innes <andrewi@gnu.org>
7917
7918 * w32term.c (x_update_begin): Regenerate the palette here, rather
7919 than for each window.
7920
7921 * w32xfns.c (select_palette): Avoid calling SelectPalette if
7922 palette is NULL, since this corrupts memory! Also get
7923 display_info reference from frame.
7924
7925 2000-12-21 Jason Rumney <jasonr@gnu.org>
7926
7927 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
7928
7929 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
7930 to avoid returning without releasing it.
7931
7932 2000-12-21 Kenichi Handa <handa@etl.go.jp>
7933
7934 * keymap.c (push_key_description): Don't convert eight-bit-control
7935 and eight-bit-graphic to multibyte character.
7936
7937 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
7938 generic character and CODE1 is nil, return the smallest character
7939 in CHARSET.
7940
7941 2000-12-20 Dave Love <fx@gnu.org>
7942
7943 * s/osf5-0.h (NSIG): Don't redefine.
7944
7945 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
7946
7947 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
7948 excluding menu-bar and tool-bar.
7949 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
7950 (menu_item_p): Remove.
7951 (where_is_internal_1): Don't ignore menu-items.
7952
7953 2000-12-20 Gerd Moellmann <gerd@gnu.org>
7954
7955 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
7956 into account.
7957
7958 * window.c (make_window): Initialize window's min_hscroll.
7959 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
7960 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
7961 to zero.
7962 (struct saved_window): New member min_hscroll.
7963 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
7964 (Fset_window_configuration): Set window's min_hscroll.
7965 (save_window_save): Save window's min_hscroll.
7966 (compare_window_configurations): Compare min_hscroll values.
7967
7968 * window.h (struct window): New member min_hscroll.
7969
7970 * keyboard.c (echo_prompt): Prevent a compiler warning.
7971
7972 * xdisp.c (try_cursor_movement): Fix last change. The real
7973 condition is that PT is at the end of the row, and should
7974 be displayed at the start of the next row.
7975
7976 * xdisp.c (try_cursor_movement): If we end on a partially
7977 visible line, end we already decided to scroll, return -1.
7978
7979 * dispextern.h (ensure_frame_matrix): Add prototype.
7980
7981 * window.c (delete_window, Fsplit_window)
7982 (Fset_window_configuration): Call ensure_frame_matrix.
7983
7984 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
7985 New functions.
7986 (adjust_frame_glyphs_for_frame_redisplay): If display has been
7987 completed, call fake_current_matrices instead of marking frame
7988 garbaged.
7989
7990 2000-12-20 Jason Rumney <jasonr@gnu.org>
7991
7992 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
7993
7994 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
7995
7996 * fns.c (Frequire): Doc fix.
7997
7998 2000-12-19 Gerd Moellmann <gerd@gnu.org>
7999
8000 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
8001
8002 * dispnew.c (direct_output_for_insert): Fix check for mini-window
8003 currently displaying a message.
8004
8005 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
8006 xterm.h.
8007 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
8008
8009 2000-12-18 Andrew Innes <andrewi@gnu.org>
8010
8011 * w32.c (w32_strerror): New function.
8012
8013 * w32.h (w32_strerror): New extern.
8014
8015 * w32fns.c (Fw32_shell_execute): Use it.
8016
8017 2000-12-18 Gerd Moellmann <gerd@gnu.org>
8018
8019 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
8020
8021 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
8022
8023 * msdos.c (IT_set_face): Obey inverse_video.
8024
8025 2000-12-18 Kenichi Handa <handa@etl.go.jp>
8026
8027 * dired.c (directory_files_internal): Always return decoded filenames.
8028
8029 2000-12-18 Gerd Moellmann <gerd@gnu.org>
8030
8031 * xterm.c (x_connection_closed): Prevent being called recursively
8032 because of an error condition in XtCloseDisplay.
8033
8034 * xdisp.c (init_iterator): If noninteractive, and the frame's
8035 face cache is null, make one.
8036
8037 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
8038
8039 * process.c (wait_reading_process_input): Check for pending
8040 input when running timers.
8041
8042 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
8043
8044 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
8045
8046 2000-12-18 Kenichi Handa <handa@etl.go.jp>
8047
8048 * process.c (read_process_output): Don't run a filter if the code
8049 decoder produces nothing but carryover.
8050
8051 2000-12-17 Andrew Innes <andrewi@gnu.org>
8052
8053 * w32.c (sys_rename): Only check errno against EEXIST, and not
8054 EACCES, when determining whether rename failed because the target
8055 exists. This was resulting in indefinite looping on Windows 9x if
8056 the source file was locked by another process.
8057
8058 * w32fns.c (Ffile_system_info): New function.
8059 (syms_of_w32fns): Defsubr it.
8060
8061 2000-12-17 Gerd Moellmann <gerd@gnu.org>
8062
8063 * window.c (coordinates_in_window): Fix computation for
8064 position on vertical line between mode lines.
8065
8066 * xfns.c (unwind_create_frame): Return t if frame was deleted.
8067 Don't alter tip_frame or tip_window.
8068 (unwind_create_tip_frame): Set tip_frame to nil only if frame
8069 was deleted.
8070
8071 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
8072 Don't alter tip_frame or tip_window.
8073 (unwind_create_tip_frame): Set tip_frame to nil only if frame
8074 was deleted.
8075
8076 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
8077
8078 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
8079 be consistent with the doc string. Reported by NAKAJIMA Mikio
8080 <minakaji@osaka.email.ne.jp>.
8081
8082 2000-12-16 Kenichi Handa <handa@etl.go.jp>
8083
8084 * xfaces.c (Vface_ignored_fonts): New variable.
8085 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
8086 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
8087
8088 2000-12-15 Gerd Moellmann <gerd@gnu.org>
8089
8090 * dispnew.c (update_window): Detect pending input every nth line
8091 updated, i.e. do it depending on real work done, and not on the
8092 vpos of the line.
8093
8094 * xterm.c (expose_window): Don't redraw the window that's
8095 currently being updated.
8096
8097 * window.c (Fset_window_point): Remove test for
8098 cursor_in_non_selected_windows.
8099
8100 * lread.c (read1): Recognize end of file after `\\'.
8101
8102 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
8103 not unwind_create_frame.
8104
8105 2000-12-15 Dave Love <fx@gnu.org>
8106
8107 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
8108 bcopy & al.
8109
8110 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
8111
8112 2000-12-15 Kenichi Handa <handa@etl.go.jp>
8113
8114 * coding.c (setup_coding_system): Clear all members of the struct
8115 coding_system at first.
8116 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
8117 argument.
8118 (code_convert_region): Don't override coding->src_multibyte and
8119 coding->dst_multibyte.
8120
8121 * fns.c (Fmd5): Docstring improved.
8122
8123 2000-12-15 Miles Bader <miles@gnu.org>
8124
8125 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
8126 are actually marked as mode-lines; otherwise use
8127 estimate_mode_line_height.
8128
8129 2000-12-14 Gerd Moellmann <gerd@gnu.org>
8130
8131 * editfns.c (Fformat): Prevent a buffer overrun when the format
8132 specifies a precision.
8133
8134 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
8135
8136 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
8137 argument is outside the range [2..3].
8138
8139 2000-12-14 Andrew Innes <andrewi@gnu.org>
8140
8141 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
8142 nothing to do. Bind inhibit-quit.
8143 (tip_frame): Make it a Lisp_Object.
8144 (x_create_tip_frame): Set tip_frame after it has been added to
8145 Vframe_list.
8146 (Fx_show_tip): Don't set tip_frame here.
8147 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
8148 (unwind_create_frame, unwind_create_tip_frame): New functions.
8149 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
8150 while a frame is only partially constructed.
8151
8152 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
8153 (x_free_frame_resources): New function.
8154 (x_destroy_window): Use it.
8155
8156 2000-12-14 Gerd Moellmann <gerd@gnu.org>
8157
8158 * xfns.c (Fx_backspace_delete_keys_p): New function.
8159 (syms_of_xfns): Defsubr it.
8160
8161 * config.in (HAVE_XKBGETKEYBOARD): Add.
8162
8163 2000-12-14 Kenichi Handa <handa@etl.go.jp>
8164
8165 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
8166 Always store string in multibyte representation in echobuf.
8167 (echo_char): Always store string in multibyte representation in
8168 echobuf.
8169 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
8170 (read_key_sequence): Adjusted for the change of echo_prompt.
8171
8172 * fns.c (Fmd5): Docstring improved.
8173
8174 * lisp.h (detect_coding_system): Prototype adjusted.
8175
8176 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
8177 (detect_coding_emacs_mule, detect_coding_iso2022,)
8178 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
8179 (detect_coding_utf_16, detect_coding_ccl): Make them static.
8180 New argument MULTIBYTEP. Callers changed.
8181 (detect_coding_mask, detect_coding_system): New argument
8182 MULTIBYTEP. Callers changed.
8183 (decode_coding_string): Set coding->src_multibyte and
8184 coding->dst_multibyte before calling detect_coding and detect_eol.
8185 Update them after some coding system is detected.
8186
8187 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
8188
8189 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
8190
8191 * keyboard.c (menu_bar_items, tool_bar_items):
8192 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
8193
8194 2000-12-13 Gerd Moellmann <gerd@gnu.org>
8195
8196 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
8197 New variables.
8198 (unwind_create_frame, unwind_create_tip_frame): New functions.
8199 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
8200 while a frame is only partially constructed.
8201
8202 * xterm.h (x_free_frame_resources): Declare.
8203
8204 * xterm.c (x_free_frame_resources): New function.
8205 (x_destroy_window): Use it.
8206
8207 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
8208 don't interrupt the update for pending input initially, i.e.
8209 update at least some lines.
8210
8211 * keyboard.c (do_mouse_tracking): Make externally visible.
8212
8213 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
8214
8215 * xfns.c (gray_bitmap_bits): Declare `char *'.
8216
8217 2000-12-12 Gerd Moellmann <gerd@gnu.org>
8218
8219 * xdisp.c (display_tool_bar_line): Make sure that tool bar
8220 lines start with a relief line.
8221
8222 2000-12-12 Dave Love <fx@gnu.org>
8223
8224 * window.c (Fdisplay_buffer): Doc fix.
8225 (Fwindow_list): Remove unused var.
8226
8227 * buffer.h (mmap_set_vars): Declare.
8228
8229 * window.h (Fset_window_point): Declare.
8230
8231 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
8232
8233 * msdos.c (fast_find_position): Don't overstep the last window row.
8234 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
8235 variable `area'. When looking for a row under (X,Y), give up if some
8236 of the previous rows is not enabled.
8237
8238 2000-12-12 Gerd Moellmann <gerd@gnu.org>
8239
8240 * window.c (Fset_window_point): If displaying cursors in windows
8241 other than the selected window, make sure redisplay updates
8242 other windows to show the new value of point in the window.
8243
8244 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
8245
8246 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
8247 the buffer is the sole visible buffer when in the mini-buffer.
8248
8249 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
8250 Bind `inhibit-read-only' to t.
8251 (unwind_with_echo_area_buffer): Use AREF.
8252
8253 * xfns.c (Fx_hide_tip): Simplified.
8254
8255 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
8256 instead of `1'.
8257
8258 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
8259
8260 2000-12-11 Gerd Moellmann <gerd@gnu.org>
8261
8262 * xfns.c (Fx_hide_tip): Fix last change.
8263
8264 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
8265 nothing to do. Bind inhibit-quit.
8266 (tip_frame): Make it a Lisp_Object.
8267 (x_create_tip_frame): Set tip_frame after it has been added to
8268 Vframe_list.
8269 (Fx_show_tip): Don't set tip_frame here.
8270
8271 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
8272
8273 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
8274 Lisp_Object.
8275
8276 * dispextern.h: Change external declaration of tip_frame.
8277
8278 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
8279 return an empty string.
8280
8281 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
8282 of the window's update_mode_line flag, since the former is set by
8283 force-mode-line-update, not the latter. This makes
8284 column-number-mode slightly faster.
8285
8286 * xdisp.c (try_window_id) <all changes above window start>:
8287 Set the cursor.
8288
8289 2000-12-11 Paul Eggert <eggert@twinsun.com>
8290
8291 * config.in (HAVE_FTELLO): Remove.
8292 (HAVE_FSEEKO): Add.
8293 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
8294 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
8295 HAVE_FTELLO.
8296 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
8297 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
8298
8299 2000-12-11 Miles Bader <miles@gnu.org>
8300
8301 * window.c (displayed_window_lines): Don't round up when
8302 converting empty space at bottom to lines.
8303 Handle non-newline-terminated final lines properly.
8304 (Fwindow_text_height): New function (used to be in lisp).
8305 (syms_of_window): Initialize it.
8306
8307 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
8308
8309 * syntax.c (scan_lists): Check that the right quote char has the
8310 right Sstring syntax when jumping over strings.
8311 (init_syntax_once): Use Smax rather than 13.
8312
8313 2000-12-09 Miles Bader <miles@gnu.org>
8314
8315 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
8316 with PARTIALLY, inverting the sense.
8317 (window_scroll_pixel_based): Scroll partially visible lines into
8318 place if we hit the beginning or end of the buffer.
8319 (displayed_window_lines): Don't include partially visible lines.
8320 (Fmove_to_window_line): Skip past any partially visible first line.
8321
8322 2000-12-08 Gerd Moellmann <gerd@gnu.org>
8323
8324 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
8325
8326 * tparam.c (tparam1): Change the way buffers are reallocated to be
8327 portable and less obfuscated.
8328
8329 * termcap.c (tgetent): Change the way buffers are reallocated to
8330 be portable and less obfuscated.
8331
8332 * macros.c (store_kbd_macro_char): Change the way buffers are
8333 reallocated to be portable and less obfuscated.
8334
8335 * lread.c (read1): Change the way buffers are reallocated to be
8336 portable and less obfuscated.
8337
8338 * doc.c (Fsubstitute_command_keys): Change the way buffers
8339 are reallocated so that it is portable.
8340
8341 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
8342
8343 * dosfns.c (Ffile_system_info): New function.
8344 (syms_of_dosfns): Defsubr it.
8345
8346 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
8347
8348 * alloc.c (gc_sweep): Add comment.
8349
8350 2000-12-07 Gerd Moellmann <gerd@gnu.org>
8351
8352 * sound.c (vox_configure): Change order of ioctls.
8353 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
8354 Ignore errors when changing volume.
8355 (vox_close): Don't reset the device.
8356
8357 * process.c (read_process_output): Make sure the process marker's
8358 position is valid when the process buffer is changed in
8359 after-change functions. W3 does that.
8360
8361 * xfns.c (x_free_gcs): New function.
8362
8363 * xterm.h (x_free_gcs): Add prototype.
8364
8365 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
8366 freeing GCs here.
8367
8368 * xterm.c (x_destroy_window): Call x_free_gcs so that
8369 resources of non-toolkit X windows will be freed.
8370
8371 2000-12-07 Andrew Innes <andrewi@gnu.org>
8372
8373 * w32fns.c (xlfd_charset_of_font): Fix last change.
8374
8375 2000-12-06 Dave Love <fx@gnu.org>
8376
8377 * md5.h (__P): Don't define -- it comes from config.h.
8378
8379 * strftime.c: Change some #if foo to #ifdef foo.
8380
8381 2000-12-06 Andrew Innes <andrewi@gnu.org>
8382
8383 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
8384
8385 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
8386 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
8387 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
8388
8389 2000-12-06 Gerd Moellmann <gerd@gnu.org>
8390
8391 * alloc.c (gc_sweep): Prevent symbols read during loadup
8392 from being freed.
8393
8394 * xdisp.c (underlying_face_id): New function.
8395 (handle_face_prop, face_before_or_after_it_pos): Use it
8396 to determine the face ``under'' a string. Let strings inherit
8397 the face of the buffer under them.
8398
8399 * xfaces.c (face_at_string_position): Update function comment.
8400
8401 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
8402 matrix if the window's left position has changed; we need to
8403 redraw it in this case.
8404
8405 * dispextern.h (struct glyph_matrix): Add member window_left_x.
8406
8407 * window.c (coordinates_in_window): Check mouse on mode-line or
8408 header-line first.
8409
8410 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
8411 advertized by the function documentation.
8412
8413 * window.c (syms_of_window): Doc fix.
8414
8415 * sound.c (vox_configure): Set volume for left and right channel.
8416 (sound_cleanup): Return nil.
8417
8418 * xdisp.c (move_it_by_lines): Fix paren typo.
8419
8420 * xterm.c (x_load_font): Don't use the font's max_bounds for
8421 computing the height of the font. If max_bounds' ascent or
8422 descent are greater than the font's ascent or descent, this means
8423 glyphs overlap, which should be handled now by redisplay.
8424
8425 * window.c (Veven_window_heights): New variable.
8426 (syms_of_window): DEFVAR_LISP it.
8427 (Fdisplay_buffer): Check Veven_window_heights before evening the
8428 window heights.
8429
8430 2000-12-06 Miles Bader <miles@gnu.org>
8431
8432 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
8433 update `default-frame-alist' instead of setting no frame parameters.
8434
8435 2000-12-06 Kenichi Handa <handa@etl.go.jp>
8436
8437 * composite.c (update_compositions): Fix typo (use the correct
8438 variable).
8439
8440 2000-12-05 Jason Rumney <jasonr@gnu.org>
8441
8442 * md5.h: Remove underscores from function declarations.
8443 (__attribute__, __alignof__) [!__GNUC__]: Define.
8444
8445 * md5.c: Delay include of md5.h until after namespace cleaning.
8446
8447 * makefile.w32-in (fns.o): Depend on md5.h
8448 (md5.o): New target.
8449 (sunfns.o): Remove.
8450
8451 * makefile.nt: Likewise.
8452
8453 2000-12-05 Jason Rumney <jasonr@altavista.net>
8454
8455 * w32term.c (expose_area): Complete last change.
8456
8457 2000-12-05 Ken Raeburn <raeburn@gnu.org>
8458
8459 * minibuf.c: Include intervals.h.
8460
8461 2000-12-05 Jason Rumney <jasonr@gnu.org>
8462
8463 * w32term.c (x_produce_glyphs): If a font for a component of
8464 a composition is not found, use 1 pixel dot ascent and 0 dot
8465 descent value to avoid displaying terribly tall empty boxes.
8466 (expose_area): Pass x-coordinate relative to the exposed
8467 area to x_draw_glyphs instead of a window-relative coordinate.
8468
8469 2000-12-05 Gerd Moellmann <gerd@gnu.org>
8470
8471 * xdisp.c (next_element_from_ellipsis): Save face before selective
8472 display in saved_face_id, and set face_before_selective_p.
8473 (reseat_1): Reset face_before_selective_p.
8474 (append_space, extend_face_to_end_of_line): If iterator's
8475 face_before_selective_p is set, use the face from saved_face_id.
8476 (extend_face_to_end_of_line): For tty frames, make sure to
8477 use the right face id when producing spaces at the end of
8478 the line.
8479
8480 * dispextern.h (struct it): Add face_before_selective_p.
8481
8482 * keyboard.c (record_char): Don't record identical help-echo
8483 events in recent_keys.
8484
8485 * xterm.c [USE_X_TOOLKIT]: Close the display.
8486 (xim_close_dpy): Handle case that the display has been closed.
8487
8488 * xterm.c (x_destroy_window): Reset the frame's X window after
8489 destroying it.
8490
8491 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
8492 variable window_width.
8493 (line_draw_cost): Fix code skipping over spaces at the end of the
8494 line when must_write_spaces is not set.
8495 (scrolling_window): Fix code inserting runs in list of all runs.
8496
8497 2000-12-05 Kenichi Handa <handa@etl.go.jp>
8498
8499 * coding.c (setup_coding_system): Be sure to initialize
8500 coding->category_idx.
8501
8502 2000-12-04 Gerd Moellmann <gerd@gnu.org>
8503
8504 * xterm.c (PER_CHAR_METRIC): Removed because not used.
8505
8506 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
8507 area to x_draw_glyphs instead of a window-relative coordinate.
8508
8509 * fileio.c (auto_save_error): Add parameter ERROR. Show the
8510 error in the message.
8511
8512 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
8513 timer after having read a key. It's not good for code reading
8514 several keys in a loop, like an input method.
8515
8516 * fileio.c (Finsert_file_contents): When VISIT is t, don't
8517 record undo information for format-decode.
8518
8519 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
8520 current buffer is read-only, not if it isn't.
8521
8522 * keyboard.c (record_char): Record `help-echo' input events
8523 in recent_keys only if they display some help. Don't record
8524 `help-echo' events as macro char.
8525
8526 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
8527
8528 * editfns.c (save_excursion_restore): Don't move point
8529 in another window if it is showing the wrong buffer.
8530 Avoid the call to Fwindow_live_p, for speed.
8531
8532 2000-12-04 Kenichi Handa <handa@etl.go.jp>
8533
8534 * xfaces.c (struct font_name): New member registry_priority.
8535 (split_font_name): Initialize the above member to zero.
8536 (concat_font_list): New function.
8537 (font_list): Include fonts of all alternative registries.
8538 (FONT_POINT_SIZE_QUANTUM): New macro.
8539 (better_font_p): Ignore point size difference less than
8540 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
8541
8542 * xterm.c (x_produce_glyphs): If a font for a component of
8543 a composition is not found, use 1 pixel dot ascent and 0 dot
8544 descent value to avoid displaying terribly tall empty boxes.
8545
8546 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
8547
8548 2000-12-03 Ken Raeburn <raeburn@gnu.org>
8549
8550 * coding.h (code_convert_string1): Declare.
8551
8552 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
8553
8554 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
8555
8556 2000-12-02 Jason Rumney <jasonr@gnu.org>
8557
8558 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
8559 correctly for single byte character case.
8560 (w32_per_char_metric): Do not try to make any assumptions about
8561 the metrics of BDF fonts.
8562 (x_estimate_mode_line_height): If `mode-line' face
8563 hasn't a font, use that of the frame, as drawing glyphs does.
8564 (note_mouse_highlight): Change the cursor shape on the vertical
8565 border between windows [not enabled].
8566
8567 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
8568
8569 * w32fns.c (Fx_create_frame): Reintroduce the call to
8570 face-set-after-frame-defaults.
8571 (Vx_window_horizontal_drag_shape): New variable.
8572 (syms_of_xfns): DEFVAR_LISP it.
8573 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
8574 enabled].
8575
8576 2000-12-02 Simon Josefsson <simon@josefsson.org>
8577
8578 * fns.c (Fmd5): Use a different logic to decide the coding system
8579 to use.
8580
8581 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
8582
8583 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
8584
8585 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
8586
8587 2000-12-01 Gerd Moellmann <gerd@gnu.org>
8588
8589 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
8590 height for YNegative.
8591 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
8592 height; also see comment there.
8593
8594 * window.c (coordinates_in_window): Handle computations for
8595 positions on the vertical bar and fringes differently for
8596 window-system frames. Consider some pixels near the vertical bar
8597 as on the bar if the frame doesn't have vertical scroll bars.
8598 Associate positions between mode or header lines with the
8599 right window, the left one.
8600
8601 2000-12-01 Jason Rumney <jasonr@gnu.org>
8602
8603 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
8604
8605 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
8606 invalid frame.
8607
8608 2000-12-01 Gerd Moellmann <gerd@gnu.org>
8609
8610 * window.c (struct saved_window): Add members orig_top and orig_height.
8611 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
8612 (save_window_save, Fset_window_configuration): Save/restore
8613 window's orig_top and orig_height.
8614
8615 2000-12-01 Jason Rumney <jasonr@gnu.org>
8616
8617 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
8618
8619 * w32fns.c (x_set_cursor_color): Fix last change.
8620
8621 2000-11-30 Gerd Moellmann <gerd@gnu.org>
8622
8623 * xdisp.c (echo_area_display): If cursor is in the echo area, make
8624 sure that the next redisplay displays the minibuffer, so that
8625 the cursor will be replaced with what the minibuffer wants.
8626
8627 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
8628 #ifndef instead of using #if.
8629 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
8630 USE_TOOLKIT_SCROLL_BARS is defined.
8631
8632 2000-11-30 Jason Rumney <jasonr@gnu.org>
8633
8634 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
8635 x_display_cursor.
8636
8637 2000-11-30 Gerd Moellmann <gerd@gnu.org>
8638
8639 * fns.c (Fmd5): Doc fix.
8640
8641 2000-11-30 Simon Josefsson <simon@josefsson.org>
8642
8643 * fns.c (Fmd5): New function.
8644 (syms_of_fns): Defsubr md5.
8645
8646 * Makefile.in (obj): Add md5.o
8647
8648 2000-11-30 Gerd Moellmann <gerd@gnu.org>
8649
8650 * md5.h, md5.c: New files, taken from glibc.
8651
8652 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
8653
8654 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
8655 hasn't a font, use that of the frame, as drawing glyphs does.
8656
8657 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
8658
8659 * eval.c (Frun_hooks): Allow 0 arguments.
8660
8661 2000-11-29 Gerd Moellmann <gerd@gnu.org>
8662
8663 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
8664 is over the menu bar widget, say it's not on the frame.
8665
8666 * xfns.c (Fx_create_frame): Reintroduce the call to
8667 face-set-after-frame-defaults.
8668
8669 * eval.c (Fsignal): Reset handling_signal.
8670
8671 2000-11-28 Jason Rumney <jasonr@gnu.org>
8672
8673 * w32menu.c (add_menu_item): Reset menu item text when changing
8674 type to radio button.
8675
8676 2000-11-28 Gerd Moellmann <gerd@gnu.org>
8677
8678 * xselect.c: Update copyright.
8679
8680 * window.c (coordinates_in_window): If on a mode or header line,
8681 but sufficiently close to its start, return ``on vertical
8682 border''. This gives us a way to drag windows horizontally when
8683 using toolkit scroll bars.
8684
8685 * xterm.c (note_mouse_highlight): Change the cursor shape
8686 on the vertical border between windows.
8687
8688 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
8689
8690 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
8691 (syms_of_xfns): DEFVAR_LISP it.
8692 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
8693
8694 * textprop.c (text_read_only): New function.
8695 (verify_interval_modification): Use it instead of signaling
8696 `text-read-only'. This makes it easier to catch this error
8697 with a breakpoint.:
8698
8699 * xdisp.c (forward_to_next_line_start): Check for newlines,
8700 not end of line, which includes CR.
8701
8702 2000-11-28 Kenichi Handa <handa@etl.go.jp>
8703
8704 * coding.c (Ffind_coding_systems_region_internal): Be sure to
8705 include no-conversion.
8706
8707 2000-11-27 Jason Rumney <jasonr@gnu.org>
8708
8709 * w32fns.c (w32_load_system_font): Always mark font as double byte
8710 if codepage is unicode.
8711
8712 2000-11-27 Gerd Moellmann <gerd@gnu.org>
8713
8714 * xdisp.c (forward_to_next_line_start): If already on a newline,
8715 just consume it to avoid unintended skipping over invisible text below.
8716
8717 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
8718 `vertical-line', `mode-line' and `header-line' events.
8719
8720 * xdisp.c (try_window_id): Avoid starting to display in the middle
8721 of a character, a TAB for instance. This is easier than to set
8722 up the iterator exactly, and it's not a frequent case, so the
8723 additional effort wouldn't really pay off.
8724
8725 2000-11-26 Andrew Choi <akochoi@i-cable.com>
8726
8727 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
8728 init_window_once.
8729
8730 2000-11-25 Jason Rumney <jasonr@gnu.org>
8731
8732 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
8733 Args to window_from_coordinates should be pixel coordinates.
8734
8735 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
8736 redisplay handles them properly.
8737
8738 2000-11-25 Miles Bader <miles@gnu.org>
8739
8740 * indent.c (compute_motion): Keep pos_byte in sync with pos.
8741
8742 2000-11-24 Jason Rumney <jasonr@gnu.org>
8743
8744 * w32.c (init_environment): Set LANG environment variable based on
8745 locale settings, if not set.
8746
8747 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
8748 making tool bar smaller. When clearing the frame, also
8749 clear current matrices. Clear frame when tool bar disappears.
8750 Don't use more lines for the tool-bar than is available.
8751 (x_change_window_heights): New function.
8752
8753 2000-11-24 Gerd Moellmann <gerd@gnu.org>
8754
8755 * xdisp.c (init_from_display_pos): If POS says we're already after
8756 an overlay string ending at POS, make sure to pop the iterator
8757 because it will be in front of that overlay string. When POS is
8758 ZV, we've thereby also ``processed'' overlay strings at ZV.
8759
8760 * xfaces.c (lface_from_face_name): Function comment fix.
8761
8762 2000-11-24 Miles Bader <miles@gnu.org>
8763
8764 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
8765 apply `mode-line-inverse-video' -- zero means force display using
8766 the default face, non-zero means display using the specialized face.
8767 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
8768
8769 2000-11-23 Kenichi Handa <handa@etl.go.jp>
8770
8771 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
8772 hard coded `4'.
8773
8774 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
8775
8776 * coding.c (decode_coding_emacs_mule): Fix the case of
8777 CODING_EOL_LF, which used uninitialized value of c.
8778
8779 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
8780
8781 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
8782
8783 2000-11-22 Gerd Moellmann <gerd@gnu.org>
8784
8785 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
8786 buffer object.
8787
8788 * frame.h (struct frame): Replace desired_tool_bar_items,
8789 current_tool_bar_items, n_desired_tool_bar_items,
8790 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
8791
8792 * frame.c (make_frame): Change initialization of tool bar
8793 items accordingly.
8794
8795 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
8796 Change references to members deleted from struct frame to use the
8797 new ones.
8798
8799 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
8800 references to members deleted from struct frame to use the new ones.
8801
8802 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
8803
8804 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
8805
8806 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
8807 (note_tool_bar_highlight): Change references to members deleted
8808 from struct frame to use the new ones.
8809
8810 2000-11-23 Miles Bader <miles@gnu.org>
8811
8812 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
8813 the face's inverse-video attribute, rather than overriding it.
8814
8815 2000-11-22 Gerd Moellmann <gerd@gnu.org>
8816
8817 * xfns.c (x_set_tool_bar_lines): Clear internal border when
8818 making tool bar smaller.
8819
8820 2000-11-22 Dave Love <fx@gnu.org>
8821
8822 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
8823
8824 2000-11-22 Miles Bader <miles@gnu.org>
8825
8826 * keyboard.c (Vminibuffer_message_timeout): New variable.
8827 (command_loop_1): Use it to determine message timeout.
8828 (syms_of_keyboard): Initialize it.
8829
8830 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
8831
8832 2000-11-22 Kenichi Handa <handa@etl.go.jp>
8833
8834 * sysdep.c: Move the code for declaring h_errno after #include
8835 <netdb.h>.
8836
8837 2000-11-21 Gerd Moellmann <gerd@gnu.org>
8838
8839 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
8840 the menu bar when the tooltip is unmapped.
8841
8842 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
8843 sole visible buffer when we're currently in the mini-buffer, and
8844 give up if so.
8845
8846 2000-11-21 Jason Rumney <jasonr@gnu.org>
8847
8848 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
8849 put on the clipboard.
8850 (Fw32_get_clipboard_data): Compare data on clipboard with saved
8851 copy of what Emacs last put there. If they are the same, do not
8852 use the clipboard copy to avoid losing data due to coding conversions.
8853
8854 2000-11-22 Miles Bader <miles@gnu.org>
8855
8856 * minibuf.c (Vminibuffer_prompt_properties): New variable.
8857 (syms_of_minibuf): Initialize it.
8858 (read_minibuf): Add properties from Vminibuffer_prompt_properties
8859 to prompt, don't make read-only.
8860
8861 2000-11-21 Gerd Moellmann <gerd@gnu.org>
8862
8863 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
8864 Add BEFORE/AFTER_POTENTIAL_GC.
8865
8866 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
8867
8868 * buffer.c (mmap_free_1): Avoid a compiler warning.
8869
8870 * term.c, cm.c: Don't try to include termcap.h; see comment there.
8871
8872 2000-11-21 Kenichi Handa <handa@etl.go.jp>
8873
8874 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
8875 ... #endif scope.
8876
8877 2000-11-20 Gerd Moellmann <gerd@gnu.org>
8878
8879 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
8880 screen supports it.
8881
8882 * s/gnu-linux.h: Don't use `#cpu'.
8883
8884 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
8885 not defined in mman.h.
8886
8887 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
8888 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
8889 and store an index in the XClientMessageEvent. Storing a
8890 Lisp_Object or pointer can fail on a 64 bit system, since X only
8891 transfers 32 bits.
8892 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
8893
8894 2000-11-20 Dave Love <fx@gnu.org>
8895
8896 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
8897
8898 2000-11-20 Gerd Moellmann <gerd@gnu.org>
8899
8900 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
8901
8902 2000-11-20 Kenichi Handa <handa@etl.go.jp>
8903
8904 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
8905 by WIDTH.
8906
8907 * alloc.c (make_string): Fix previous change. Be sure to make
8908 unibyte string correctly.
8909
8910 2000-11-19 Gerd Moellmann <gerd@gnu.org>
8911
8912 * window.c (Fwindow_list): Change parameter list to be XEmacs
8913 compatible.
8914 (window_list_1): New function.
8915 (window_loop): Use it instead of Fwindow_list.
8916
8917 * sysdep.c (emacs_ospeed): New variable.
8918 (toplevel): Don't declare ospeed extern.
8919 (init_baud_rate): Use emacs_ospeed instead of ospeed.
8920
8921 * termcap.c (ospeed): Remove.
8922 (tputs) [!emacs]: Remove unused code.
8923 (tgetent): Avoid a compiler warning.
8924
8925 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
8926 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
8927 SCROLL_BAR_X_WIDGET with additional argument DPY.
8928
8929 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
8930 removed.
8931 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
8932 Take the X display as additional argument.
8933 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
8934 `Widget' is a pointer type that's not easily stored in Lisp_Object
8935 form in a portable way.
8936
8937 * dispnew.c (update_text_area): Fix last change.
8938
8939 2000-11-18 Gerd Moellmann <gerd@gnu.org>
8940
8941 * xdisp.c: Use BINDING_STACK_SIZE throughout.
8942
8943 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
8944 clear current matrices.
8945
8946 * buffer.c (mmap_enlarge): Don't print a message on stderr
8947 if mapping new memory at the end of the existing region fails.
8948
8949 * dispnew.c (update_text_area): Don't skip over equal glyphs
8950 when the last current glyph overlaps the glyph to its right.
8951
8952 2000-11-18 Miles Bader <miles@gnu.org>
8953
8954 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
8955 lines that *end* with "..." too (that's the most common case!).
8956
8957 2000-11-18 Gerd Moellmann <gerd@gnu.org>
8958
8959 * xdisp.c (resize_mini_window): Temporarily change to the
8960 mini-window's buffer if necessary.
8961
8962 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
8963 the tooltip obscures less text under it.
8964
8965 2000-11-17 Gerd Moellmann <gerd@gnu.org>
8966
8967 * puresize.h (BASE_PURESIZE): Increase to 700000.
8968
8969 2000-11-18 Jason Rumney <jasonr@gnu.org>
8970
8971 * w32term.c (w32_draw_bitmap): Use face to set colors.
8972
8973 2000-11-17 Dave Love <fx@gnu.org>
8974
8975 * lread.c (Fload): Fix #ifdef for pcc.
8976
8977 2000-11-17 Gerd Moellmann <gerd@gnu.org>
8978
8979 * xdisp.c (pos_visible_p): Compute the default character height
8980 differently.
8981
8982 2000-11-16 Gerd Moellmann <gerd@gnu.org>
8983
8984 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
8985 knowing the line's height; use the default font's height in that case.
8986
8987 * xfaces.c (weight_table): Add `demi' with the same meaning as
8988 `demibold'.
8989
8990 2000-11-16 Kenichi Handa <handa@etl.go.jp>
8991
8992 * dispnew.c (null_row): New global static variable.
8993 (clear_glyph_row): Delete local static variable null_row.
8994
8995 2000-11-15 Jason Rumney <jasonr@gnu.org>
8996
8997 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
8998 (w32_alloc_lighter_color): Use new brightness calculations from
8999 xterm.c. Scale delta to be in the range expected by W32.
9000 (w32_draw_relief_rect): Use frame relief colors.
9001
9002 2000-11-15 Gerd Moellmann <gerd@gnu.org>
9003
9004 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
9005 (Qinhibit_default_face_x_resources): New variable.
9006 (syms_of_frame): Initialize it.
9007 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
9008
9009 * xdisp.c (pos_visible_p): Improve function comment.
9010
9011 * lisp.h (BINDING_STACK_SIZE): New macro.
9012
9013 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
9014 reading the directory if readdir returns null and errno is EAGAIN
9015 or EINTR.
9016
9017 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
9018
9019 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
9020 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
9021 Set amount_to_scroll to max of dx and scroll_step so that
9022 scroll-conservatively doesn't defeat scroll-step>1.
9023 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
9024 scroll-conservatively for line-at-a-time scrolling.
9025
9026 2000-11-14 Gerd Moellmann <gerd@gnu.org>
9027
9028 * window.c (Fpos_visible_in_window_p): Call pos_visible with
9029 extra argument.
9030
9031 * xdisp.c (current_mode_line_height, current_header_line_height):
9032 New variables.
9033 (init_xdisp): Initialize them.
9034 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
9035 and use exact mode line heights if it is set.
9036
9037 * lisp.h (pos_visible_p): Change prototype.
9038
9039 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
9040 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
9041 and current_header_line_height first.
9042 (current_mode_line_height, current_header_line_height):
9043 Declare extern.
9044
9045 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
9046
9047 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
9048 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
9049 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
9050
9051 2000-11-14 Miles Bader <miles@gnu.org>
9052
9053 * xterm.c (x_alloc_lighter_color): Include an additive component
9054 too for dark colors, because FACTOR isn't enough.
9055 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
9056 New macros.
9057
9058 2000-11-13 Gerd Moellmann <gerd@gnu.org>
9059
9060 * keyboard.c (show_help_echo): Call message3_nolog with number of
9061 bytes in the help string as 2nd parameter, instead of the number
9062 of characters.
9063
9064 2000-11-13 Miles Bader <miles@gnu.org>
9065
9066 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
9067 (Fload): Use new openp return protocol.
9068 Don't try to use Vload_source_file_function to load .elc files.
9069 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
9070 openp return protocol.
9071 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
9072
9073 2000-11-11 Kenichi Handa <handa@etl.go.jp>
9074
9075 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
9076
9077 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
9078 Defined these macros.
9079 (NLIST_STRUCT): Avoid re-defining it.
9080
9081 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
9082 -I/usr/contrib/X11R6/include.
9083 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
9084
9085 2000-11-10 Jason Rumney <jasonr@gnu.org>
9086
9087 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
9088
9089 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
9090 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
9091
9092 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
9093 (Qw32_charset_vietnamese): New symbol.
9094 (xlfd_charset_of_font): New function.
9095 (w32_load_system_font): Use it.
9096 (x_to_w32_charset): Use Fassoc to find charset info. Special case
9097 when Vw32_charset_info_alist is nil to ensure default face always
9098 has font. Use Fcar and Fcdr for safety.
9099 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
9100 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
9101 pseudo-codepages for special cases.
9102 (w32_to_x_font): New parameter to allow charset portion to be
9103 specified where there is many to one mapping. Callers changed.
9104 (w32_list_fonts): Avoid listing fonts that won't display.
9105
9106 2000-11-10 Gerd Moellmann <gerd@gnu.org>
9107
9108 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
9109 (font_list_1): Renamed from font_list.
9110 (font_list): New function, trying alternative registries from
9111 Vface_alternative_font_registry_alist.
9112 (Finternal_set_alternative_font_registry_alist): New function.
9113 (syms_of_xfaces): Initialize and Staticpro
9114 Vface_alternative_font_registry_alist.
9115 Defsubr Finternal_set_alternative_font_registry_alist.
9116
9117 2000-11-09 Ken Raeburn <raeburn@gnu.org>
9118
9119 * lisp.h (Flooking_at): Declare.
9120
9121 2000-11-09 Gerd Moellmann <gerd@gnu.org>
9122
9123 * dired.c (directory_files_internal): Fix a braino.
9124
9125 * dired.c (directory_files_internal): Add missing GCPRO's.
9126 Some cleanup.
9127
9128 2000-11-08 Gerd Moellmann <gerd@gnu.org>
9129
9130 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
9131 (resize_mini_window): Return quickly if Vresize_mini_window is
9132 nil. Don't return if Vmax_mini_window_height is nil.
9133
9134 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
9135 (syms_of_xdisp): Initialize them.
9136 (resize_mini_window): Act according to the setting of
9137 Vresize_mini_window.
9138 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
9139
9140 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
9141 scroll bar widget after configuring it, so that it will appear at
9142 the right position from the start.
9143 (XTredeem_scroll_bar): Cleaned up.
9144
9145 2000-11-08 Kenichi Handa <handa@etl.go.jp>
9146
9147 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
9148 font is taller than the frame line, we don't have to bias the
9149 division by two.
9150
9151 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
9152
9153 2000-11-07 Dave Love <fx@gnu.org>
9154
9155 * config.in (HAVE_MKSTEMP): Add.
9156
9157 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
9158
9159 2000-11-07 Gerd Moellmann <gerd@gnu.org>
9160
9161 * window.c (Fset_window_configuration): Don't try to preserve
9162 point in the current buffer, if that buffer is displayed in more
9163 than one window.
9164
9165 * xfaces.c (lookup_named_face): If default face isn't realized,
9166 try to realize it. Return -1 if not successful.
9167 (Fx_list_fonts): Handle case that face cannot be determined.
9168 (Fface_font): Likewise.
9169
9170 2000-11-06 Gerd Moellmann <gerd@gnu.org>
9171
9172 * window.c (displayed_window_lines): Detect partially
9173 visible lines at the bottom correctly.
9174
9175 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
9176
9177 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
9178 when ensuring we don't do visit in indirect buffer.
9179
9180 2000-11-06 Kenichi Handa <handa@etl.go.jp>
9181
9182 * composite.h (compose_chars_in_text): Add prototype.
9183
9184 * composite.c (Vcomposition_function_table): New variable.
9185 (Qcomposition_function_table): New variable.
9186 (run_composition_function): Call
9187 Vcompose_chars_after_function with three arguments.
9188 (compose_chars_in_text): New function.
9189 (syms_of_composite): Modified the doc-string of
9190 Vcompose_chars_after_function. Declare composition-function-table
9191 as a lisp variable, and initialize it.
9192
9193 * xfns.c (x_encode_text): Suppress producing escape sequences for
9194 composition.
9195
9196 * xselect.c: Include composite.h.
9197 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
9198
9199 2000-11-05 Andrew Innes <andrewi@gnu.org>
9200
9201 * w32term.c (x_produce_glyphs): Fix typo in enum name.
9202
9203 * sysdep.c (read_input_waiting): Remove extraneous argument to
9204 read_socket_hook.
9205
9206 * w32fns.c (Fx_server_version): Include w32_build_number in the
9207 return list.
9208
9209 * w32heap.c (w32_build_number): New variable.
9210 (cache_system_info): Set it.
9211
9212 * w32heap.h (w32_build_number): Add extern.
9213
9214 * emacs.c (syms_of_emacs): Update docstring for
9215 system-configuration, to reflect the actual usage on MS-Windows.
9216
9217 2000-10-31 Gerd Moellmann <gerd@gnu.org>
9218
9219 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
9220 process idle timers while waiting for another event.
9221
9222 * dispnew.c (update_frame_line): Handle case where spaces in
9223 the default face are colored.
9224
9225 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
9226 window height hasn't changed.
9227
9228 2000-10-31 Jason Rumney <jasonr@gnu.org>
9229
9230 * w32term.c (x_produce_glyphs): Handle composite characters.
9231 (x_draw_glyph_string_foreground)
9232 (x_draw_composite_glyph_string_foreground): Restore old font.
9233
9234 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
9235
9236 * minibuf.c (read_minibuf): Reset the undo history just before
9237 starting the recursive-edit.
9238
9239 2000-10-30 Gerd Moellmann <gerd@gnu.org>
9240
9241 * xfaces.c (menu_face_change_count): New variable.
9242 (Finternal_set_lisp_face_attribute): Increment it for changes
9243 of the `menu' face.
9244 (realize_basic_faces): Reflect changes in the `menu' faces
9245 in menu bars.
9246
9247 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
9248 dy obtained from the iterator's y-position after moving from
9249 scroll_margin_pos to PT; see comment there.
9250
9251 * xdisp.c (safe_eval_handler): Call add_to_log.
9252
9253 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
9254 is not a symbol or string.
9255
9256 * xdisp.c (echo_area_display): Don't perform a display update from
9257 inside redisplay. The update will happen anyway at the end of
9258 redisplay, and it can confuse redisplay (GC messages while
9259 redisplaying, for instance.)
9260
9261 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
9262
9263 * xrdb.c (x_load_resources): Use the class name in the defaults.
9264
9265 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
9266 (regex_compile): Catch bogus \(\1\).
9267
9268 2000-10-30 Gerd Moellmann <gerd@gnu.org>
9269
9270 * xterm.c (x_alloc_nearest_color): Fix last change to compare
9271 RGB values.
9272
9273 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
9274 we have a color cache, check that the cached color equals the
9275 allocated color. If not, clear the color cache.
9276
9277 * window.c (displayed_window_lines): Change buffers if necessary.
9278 Fix computation of displayed lines.
9279
9280 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
9281 update_menu_bindings to DEFVAR_BOOL.
9282
9283 2000-10-30 Kenichi Handa <handa@etl.go.jp>
9284
9285 * search.c (Fset_match_data): Be sure to make search_regs always sane.
9286
9287 * puresize.h (BASE_PURESIZE): Increase to 680000.
9288
9289 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
9290
9291 2000-10-29 Jason Rumney <jasonr@gnu.org>
9292
9293 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
9294
9295 * w32term.c (w32_bdf_per_char_metric): Negate descent.
9296 (w32_cache_char_metrics): Handle possibility that 'x' does not
9297 exist in a BDF font.
9298 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
9299
9300 * w32bdf.h (bdffont): Add nchars.
9301
9302 * w32bdf.c (set_bdf_font_info): Set it.
9303 (w32_BDF_TextOut): Swap byte order of double byte characters.
9304 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
9305
9306 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
9307
9308 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
9309 don't override the colors in frame's param_alist, unless they are
9310 unspecified.
9311
9312 * term.c (reassert_line_highlight): If inverse_video is non-zero,
9313 reverse the effect of the highlight flag.
9314
9315 2000-10-27 Ken Raeburn <raeburn@gnu.org>
9316
9317 * window.h (Fwindow_live_p): Declare.
9318
9319 * undo.c (record_delete): Check that last_undo_buffer is really a
9320 buffer before applying XBUFFER to it.
9321
9322 * keymap.c (where_is_internal): Pass lisp object, not integer, to
9323 Faref.
9324
9325 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
9326
9327 * lisp.h (KEYMAPP): New macro.
9328 (get_keymap): Remove.
9329 (get_keymap_1): Rename get_keymap.
9330
9331 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
9332
9333 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
9334
9335 * xmenu.c (single_submenu): Use KEYMAPP.
9336 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
9337 Use KEYMAPP rather than Fkeymapp.
9338
9339 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
9340
9341 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
9342 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
9343 Use KEYMAPP rather than Fkeymapp.
9344 (single_submenu): Use KEYMAPP.
9345 (w32_menu_show, w32_dialog_show): Use TRUE.
9346
9347 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
9348
9349 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
9350 (Fkeymapp): Use KEYMAPP.
9351 (get_keymap): Rename from get_keymap_1. Remove old def.
9352 Return t when autoload=0 and error=0 and the keymap needs autoloading.
9353 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
9354 (Fminor_mode_key_binding): Don't raise an error if the binding
9355 is not a keymap.
9356 (Fuse_global_map, Fuse_local_map): Allow autoloading.
9357 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
9358
9359 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
9360 Allow Vspecial_event_map to be autoloaded.
9361 (menu_bar_items): Fetch the keymap rather than using keymapp.
9362 (menu_bar_one_keymap): No need to follow func-indirect any more.
9363 (parse_menu_item): get_keymap_1 -> get_keymap.
9364 (tool_bar_items): Fetch the keymap rather than using keymapp.
9365 (read_key_sequence): Use KEYMAPP.
9366
9367 * intervals.c (get_local_map): Use get_keymap rather than following
9368 function-indirections explicitly.
9369
9370 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
9371
9372 2000-10-27 Jason Rumney <jasonr@gnu.org>
9373
9374 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
9375 point, as Windows has oversized fonts.
9376
9377 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
9378
9379 2000-10-27 Gerd Moellmann <gerd@gnu.org>
9380
9381 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
9382 (freehook, reallochook): Handle null pointer arguments.
9383 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
9384
9385 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
9386
9387 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
9388 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
9389 Giving in to popular pressure to shut up the compiler with casts.
9390
9391 2000-10-27 Gerd Moellmann <gerd@gnu.org>
9392
9393 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
9394 signed value, and use a default value computed from the font's
9395 maximum descent.
9396
9397 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
9398
9399 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
9400 that specify a negative underline position can still use underlines.
9401
9402 * window.c (Fpos_visible_in_window_p): Make POS default to
9403 WINDOW's point, not the current buffer's point.
9404
9405 2000-10-26 Dave Love <fx@gnu.org>
9406
9407 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
9408 when it's necessary.
9409
9410 2000-10-26 Gerd Moellmann <gerd@gnu.org>
9411
9412 * window.c (size_window): Compute size difference from sum of old
9413 child window sizes instead of from parent's size.
9414
9415 * xdisp.c (pos_visible_p): Change current buffer if necessary.
9416 Handle obscured lines at the top of the window.
9417
9418 * frame.c (Fdelete_frame): Doc fix. Move running the hook
9419 down after the last error condition check.
9420
9421 * frame.c (Fdelete_frame): Run delete-frame-hook.
9422
9423 2000-10-26 Kenichi Handa <handa@etl.go.jp>
9424
9425 * coding.c (decode_coding): Fix previous change (check also
9426 CODING_MODE_LAST_BLOCK).
9427
9428 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
9429
9430 * regex.c: More `unsigned char' -> `re_char' changes.
9431 Also change several `int' into `re_wchar_t'.
9432 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
9433 (PUSH_FAILURE_POINTER): Don't cast any more.
9434 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
9435 We want GCC to complain, since this piece of code makes
9436 re_match non-reentrant, which *should* be fixed.
9437 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
9438 (EXTEND_BUFFER): Use RETALLOC.
9439 (SET_LIST_BIT): Don't cast.
9440 (re_wchar_t): New type.
9441 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
9442 that those two functions will always properly return.
9443 (IMMEDIATE_QUIT_CHECK): Cast to void.
9444 (analyse_first): Use recursion rather than an explicit stack.
9445 (re_compile_fastmap): Can't fail anymore.
9446 (re_search_2): Don't check re_compile_fastmap for failure.
9447 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
9448 Now also sets the new value (passed in a new argument).
9449 (re_match_2_internal): Use it.
9450 Also, use a new var `reg' of type size_t when looping through regs
9451 rather than reuse the inappropriate `mcnt'.
9452
9453 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
9454 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
9455 (where_is_internal): Renamed from Fwhere_is_internal.
9456 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
9457 (Fwhere_is_internal): New function wrapping where_is_internal.
9458 (where_is_internal_1): Handle the case where we're filling the cache.
9459 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
9460
9461 2000-10-25 Miles Bader <miles@gnu.org>
9462
9463 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
9464
9465 2000-10-25 Gerd Moellmann <gerd@gnu.org>
9466
9467 * window.c (pos_fully_visible_p): Removed.
9468 (Fpos_visible_in_window_p): Use pos_visible_p to determine
9469 if position is visible and/or fully visible.
9470
9471 * lisp.h (pos_visible_p): Add prototype.
9472
9473 * xdisp.c (pos_visible_p): New function.
9474
9475 2000-10-25 Kenichi Handa <handa@etl.go.jp>
9476
9477 * process.c (send_process): If OBJECT is t, it means that the data
9478 is from C string, but we should encode it. Before calling
9479 setup_raw_text_coding_system, be sure to flush out data by the
9480 previous coding system.
9481
9482 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
9483
9484 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
9485 assignment of startpos to prev when startpos == pos.
9486
9487 * editfns.c (find_field): Set the field stickiness correctly from
9488 overlay fields. Use renamed `text_property_stickiness'.
9489 (text_property_stickiness): Renamed from `char_property_stickiness'.
9490 Only check text properties, not overlays.
9491 * textprop.c (get_char_property_and_overlay): New function.
9492 (Fget_char_property): Use it.
9493 * intervals.h (get_char_property_and_overlay): Add declaration.
9494
9495 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
9496
9497 * keymap.c: Use AREF, ASET and ASIZE macros.
9498 (Fmake_sparse_keymap): Docstring fix.
9499 (synkey): Remove.
9500 (shadow_lookup): Move up.
9501 Handle the case where lookup-key returns an integer.
9502 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
9503 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
9504 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
9505 Simplify/rewrite the keymap-finding code.
9506 Add check for command shadowing, using shadow_lookup.
9507
9508 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
9509
9510 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
9511 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
9512 a symbol.
9513
9514 2000-10-24 Andrew Innes <andrewi@gnu.org>
9515
9516 * dired.c (directory_files_internal_unwind): New function.
9517 (directory_files_internal): Use it to ensure closedir is called
9518 even if expand-file-name or file-attributes throw, eg. because of
9519 a user interrupt. Also enable immediate_quit while calling
9520 re_search, so that matching can be interrupted as well.
9521
9522 2000-10-24 Andrew Innes <andrewi@gnu.org>
9523
9524 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
9525 NT-Emacs only.
9526 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
9527 so that re_search functions only quit when callers expect them to.
9528
9529 2000-10-24 Kenichi Handa <handa@etl.go.jp>
9530
9531 * regex.c (regex_compile): Change the way of handling a range from
9532 a char less than 256 to a char not less than 256.
9533
9534 2000-10-24 Gerd Moellmann <gerd@gnu.org>
9535
9536 * window.c (size_window): Prevent setting window's width or
9537 height to a negative value (esp. with XSETFASTINT).
9538
9539 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
9540 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
9541 (protect_malloc_state) [GC_MALLOC_CHECK &&
9542 GC_PROTECT_MALLOC_STATE]: New function.
9543 (PROTECT_MALLOC_STATE): New macro.
9544 (__malloc_initialize, morecore, _malloc_internal)
9545 (_free_internal) _realloc_internal): Use it to make _heapinfo
9546 read-only outside of gmalloc.
9547
9548 * keymap.c: Update copyright.
9549
9550 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
9551 a symbol.
9552
9553 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
9554
9555 * filelock.c (unlock_all_files): Use unlock_file to expand each
9556 buffer's file_truename before trying remove its lock file.
9557
9558 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
9559
9560 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
9561 or CRLF, decode EOLs.
9562
9563 2000-10-24 Kenichi Handa <handa@etl.go.jp>
9564
9565 * window.c (Fdisplay_buffer): Fix doc.
9566
9567 2000-10-23 Jason Rumney <jasonr@gnu.org>
9568
9569 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
9570 ASCII font of default fontset on Windows.
9571
9572 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
9573 xterm.c comment below).
9574
9575 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
9576
9577 2000-10-23 Gerd Moellmann <gerd@gnu.org>
9578
9579 * xterm.c (x_connection_closed): Reset handling_signal.
9580
9581 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
9582
9583 2000-10-23 Miles Bader <miles@gnu.org>
9584
9585 * window.c (window_scroll_pixel_based, window_scroll_line_based):
9586 Pass nil for FULLY argument to Fpos_visible_in_window_p to
9587 maintain old behavior.
9588 * minibuf.c (Fminibuffer_complete): Likewise.
9589
9590 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
9591
9592 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
9593 that when a font can't be exactly centered, it errs up rather than
9594 down.
9595
9596 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
9597
9598 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
9599
9600 2000-10-23 Andrew Choi <akochoi@i-cable.com>
9601
9602 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
9603
9604 * dispnew.c [macintosh]: Include macterm.h.
9605 (init_display) [macintosh]: Initialization for window system.
9606
9607 * emacs.c (main) [macintosh]: Call syms_of_textprop,
9608 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
9609 syms_of_search, x_term_init, and init_keyboard before calling
9610 init_window_once. Also, call syms_of_xmenu.
9611
9612 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
9613 default fontset to Monaco.
9614
9615 * frame.c [macintosh]: Include macterm.h. Remove declarations of
9616 NewMacWindow and DisposeMacWindow.
9617 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
9618 instead of calling NewMacWindow and setting fields of
9619 f->output_data.mac directly. Call init_frame_faces.
9620 (Fdelete_frame) [macintosh]: Remove unused code.
9621 (Fmodify_frame_parameters) [macintosh]: Call
9622 x_set_frame_parameters instead of mac_set_frame_parameters.
9623
9624 * frame.h [macintosh]: Define menu_bar_lines field in struct
9625 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
9626
9627 * keyboard.c [macintosh]: Include macterm.h.
9628 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
9629 and menu_bar_activate_event type events as for X and NT.
9630 (make_lispy_event) [macintosh]: Construct lisp events of type
9631 MENU_BAR_EVENT as for X and NT.
9632
9633 * sysdep.c [macintosh]: Remove declaration for sys_signal.
9634 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
9635 (sys_subshell) [macintosh]: Remove definition entirely.
9636 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
9637 Vwindow_system_version here. Remove initialization of
9638 Vx_bitmap_file_path.
9639 (read_input_waiting): Correct the number of parameters passed to
9640 read_socket_hook.
9641 Move all Macintosh functions to mac/mac.c.
9642
9643 * term.c [macintosh]: Include macterm.h.
9644
9645 * window.c [macintosh]: Include macterm.h.
9646
9647 * xdisp.c [macintosh]: Include macterm.h. Declare
9648 set_frame_menubar and pending_menu_activation.
9649 (echo_area_display) [macintosh]: Do not return if terminal frame
9650 is the selected frame.
9651 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
9652 Allow only the selected frame to set menu bar.
9653 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
9654 calling FRAME_EXTERNAL_MENU_BAR (f).
9655 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
9656
9657 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
9658 and check_x. Declare XCreateGC. Define x_create_gc and
9659 x_free_gc. Initialize font_sort_order.
9660 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
9661 but call x_list_fonts instead of w32_list_fonts.
9662 (Finternal_face_x_get_resource) [macintosh]: Do not call
9663 display_x_get_resource.
9664 (prepare_face_for_display) [macintosh]: Set xgcv.font.
9665 (realize_x_face) [macintosh]: Load the font if it is specified in
9666 ATTRS.
9667 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
9668
9669 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
9670
9671 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
9672 is nil: since we go to the end of submap anyway, we'd end up
9673 setting nil to nil.
9674 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
9675 doesn't obey autoload.
9676
9677 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
9678
9679 * msdos.c (dos_set_window_size): Update screen dimension variables.
9680
9681 2000-10-21 Jason Rumney <jasonr@gnu.org>
9682
9683 * w32term.c (w32_cache_char_metrics): Double check that font is
9684 really fixed pitch before trusting tmPitchAndFamily.
9685
9686 2000-10-21 Andrew Innes <andrewi@gnu.org>
9687
9688 * w32gui.h (w32_char_font_type): Move enum from w32term.c
9689
9690 * w32term.h: Extern decl for w32_cache_char_metrics.
9691
9692 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
9693
9694 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
9695 (w32_unload_font): Free per_char array if present.
9696
9697 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
9698 cached information in emulated XFontStruct to handle common cases
9699 quickly. Do not allocate XCharStruct for return.
9700 (w32_native_per_char_metric): New function.
9701 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
9702 allocating one.
9703 (x_produce_glyphs): Don't get an HDC. Change calls to
9704 w32_per_char_metric to match arg change above. Remove calls to
9705 free results.
9706 (w32_get_glyph_overhangs): Ditto.
9707 (w32_cache_char_metrics): New function.
9708
9709 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
9710 ($(BLD)/casefiddle.$(O)): Remove compile command.
9711 ($(BLD)/gmalloc.$(O)): Remove compile command.
9712 ($(BLD)/dispnew.obj):
9713 ($(BLD)/keyboard.obj):
9714 ($(BLD)/w32inevt.obj):
9715 ($(BLD)/w32bdf.obj):
9716 ($(BLD)/alloc.obj):
9717 ($(BLD)/buffer.obj):
9718 ($(BLD)/editfns.obj):
9719 ($(BLD)/emacs.obj):
9720 ($(BLD)/fileio.obj):
9721 ($(BLD)/fns.obj):
9722 ($(BLD)/indent.obj):
9723 ($(BLD)/insdel.obj):
9724 ($(BLD)/intervals.obj):
9725 ($(BLD)/minibuf.obj):
9726 ($(BLD)/print.obj):
9727 ($(BLD)/scroll.obj):
9728 ($(BLD)/sysdep.obj):
9729 ($(BLD)/textprop.obj):
9730 ($(BLD)/widget.obj):
9731 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
9732 ($(BLD)/term.obj): Add dependency on dispextern.h.
9733
9734 * makefile.nt ($(BLD)\dispnew.obj):
9735 ($(BLD)\keyboard.obj):
9736 ($(BLD)\w32inevt.obj):
9737 ($(BLD)\w32bdf.obj):
9738 ($(BLD)\alloc.obj):
9739 ($(BLD)\buffer.obj):
9740 ($(BLD)\editfns.obj):
9741 ($(BLD)\emacs.obj):
9742 ($(BLD)\fileio.obj):
9743 ($(BLD)\fns.obj):
9744 ($(BLD)\indent.obj):
9745 ($(BLD)\insdel.obj):
9746 ($(BLD)\intervals.obj):
9747 ($(BLD)\minibuf.obj):
9748 ($(BLD)\print.obj):
9749 ($(BLD)\scroll.obj):
9750 ($(BLD)\sysdep.obj):
9751 ($(BLD)\textprop.obj):
9752 ($(BLD)\widget.obj):
9753 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
9754 ($(BLD)\term.obj): Add dependency on dispextern.h
9755
9756 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
9757
9758 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
9759 with an additional argument of Qt.
9760
9761 2000-10-21 Miles Bader <miles@gnu.org>
9762
9763 * window.c (pos_fully_visible_in_window_p): New function.
9764 (Fpos_visible_in_window_p): Add FULLY argument.
9765 Use pos_fully_visible_in_window_p.
9766 (window_scroll_pixel_based, window_scroll_line_based): Update
9767 calls to Fpos_visible_in_window_p.
9768 * lisp.h (Fpos_visible_in_window_p): Update prototype
9769
9770 2000-10-20 Gerd Moellmann <gerd@gnu.org>
9771
9772 * alloc.c (toplevel): Conditionalize compilation of mem_*
9773 functions differently.
9774
9775 2000-10-20 Jason Rumney <jasonr@gnu.org>
9776
9777 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
9778 mem_init where it used to be. mem_z etc not defined otherwise.
9779
9780 2000-10-20 Gerd Moellmann <gerd@gnu.org>
9781
9782 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
9783 GC_MALLOC_CHECK.
9784 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
9785 structure definition and related variabled to the top of the file.
9786 Include this code when GC_MALLOC_CHECK is defined.
9787 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
9788 register/unregister allocated region.
9789 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
9790 which isn't allocated.
9791 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
9792 something which is already in use.
9793 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
9794 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
9795 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
9796 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
9797
9798 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
9799 _malloc_internal instead of malloc.
9800 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
9801 of free.
9802
9803 2000-10-20 Andrew Innes <andrewi@gnu.org>
9804
9805 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
9806 Windows.
9807 (my_strftime) <macro>: Don't use macro arg list when redefining as
9808 _strftime_copytm.
9809 (my_strftime) <function>: Supply 0 as ut argument.
9810
9811 2000-10-19 Jason Rumney <jasonr@altavista.net>
9812
9813 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
9814 including dispextern.h, as it stops faces from working.
9815
9816 * w32fns.c (Fx_create_frame): Don't bother calling
9817 face-set-after-frame-default since the caller does it for us
9818 anyway. Clean up calls to x_get_arg to be consistent with X.
9819
9820 * w32term.c (x_produce_glyphs): Handle
9821 unibyte_display_via_language_environment correctly.
9822 (w32_draw_box_rect): Fix the calculation of width and height.
9823
9824 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
9825 as it has stopped working.
9826 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
9827 menu-bar.
9828
9829 2000-10-19 Gerd Moellmann <gerd@gnu.org>
9830
9831 * eval.c (skip_debugger): Prevent a compiler warning.
9832 (Fcondition_case): Likewise.
9833 (Fbacktrace_frame): Use a null interactive spec.
9834
9835 2000-10-19 Kenichi Handa <handa@etl.go.jp>
9836
9837 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
9838
9839 2000-10-18 Gerd Moellmann <gerd@gnu.org>
9840
9841 * strftime.c: Sync with glibc, file version 1.78.
9842 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
9843 should no longer be used according to ISO 8601.
9844
9845 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
9846 no map for meta_prefix_char, don't try to use it as a keymap.
9847 Instead, if T_OK is non-zero, look up a default binding, if any,
9848 otherwise, if T_OK is zero, return nil.
9849
9850 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
9851 (x_to_xcolors, png_load): Use x_query_color.
9852
9853 * xterm.c (x_color_cells, x_query_colors, x_query_color):
9854 New functions.
9855 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
9856 which can be slow.
9857 (x_copy_color, x_alloc_lighter_color): Likewise.
9858
9859 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
9860 (x_query_color, x_query_colors): Add prototype.
9861
9862 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
9863 check_string_bytes only if not noninteractive, increase count to 50.
9864
9865 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
9866
9867 * insdel.c (adjust_markers_for_delete): Handle before-insertion
9868 markers correctly.
9869
9870 2000-10-17 Gerd Moellmann <gerd@gnu.org>
9871
9872 * alloc.c (pure_bytes_used): Renamed from pureptr.
9873 (ALIGN): New macro.
9874 (pure_alloc): New function.
9875 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
9876 Use it.
9877 (Fpurecopy): Use PURE_POINTER_P.
9878
9879 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
9880 PT has moved backward.
9881
9882 * xdisp.c (cursor_row_p): Take continued lines into account.
9883
9884 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
9885 string's size_byte.
9886 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
9887 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
9888 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
9889 string allocated.
9890
9891 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
9892 of selective display off while searching for the next line start.
9893
9894 2000-10-17 Kenichi Handa <handa@etl.go.jp>
9895
9896 * Makefile.in (term.o): Depend on dispextern.h.
9897
9898 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
9899
9900 * keymap.c (keymap_memberp): Ensure that nil is not a member.
9901
9902 2000-10-16 Gerd Moellmann <gerd@gnu.org>
9903
9904 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
9905 the iterator at the beginning, so that they can be set later on,
9906 for instance in reseat_at_next_visible_line_start, without being
9907 overwritten.
9908
9909 * xfns.c (pbm_format): Add :foreground and :background keywords.
9910 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
9911 (xbm_load): Recognize foreground and background color specifications.
9912
9913 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
9914
9915 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
9916
9917 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
9918
9919 * msdos.c (IT_set_face): Compare highlighted face with the default
9920 face, and invert colors if these faces' colors are identical.
9921 (Fmsdos_remember_default_colors): Don't swap foreground and
9922 background colors in initial_colors[].
9923 (IT_set_frame_parameters): Don't swap frame's foreground and
9924 background pixels. If ALIST includes "(reverse . t)", swap
9925 foreground-color and background-color properties in frame's
9926 param_alist. If the original frame's param_alist doesn't specify
9927 the colors, store unspecified-fg and unspecified-bg, reversed if
9928 required.
9929
9930 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
9931 the colors are unspecified and reversed, reverse fore- and back-
9932 ground in the returned value.
9933 (Fframe_parameter): Ditto.
9934
9935 2000-10-16 Gerd Moellmann <gerd@gnu.org>
9936
9937 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
9938 get_last_unchanged_at_beg_row.
9939 (find_first_unchanged_at_end_row): Renamed from
9940 get_first_unchanged_at_end_row.
9941 (find_first_unchanged_at_end_row): Convert assertions to
9942 unconditional tests which abort. When looking for a row in
9943 unchanged text, don't go further back than first_text_row.
9944
9945 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
9946 Don't add in the last line's height when deciding if the new
9947 position is below the scroll margin.
9948
9949 2000-10-16 Miles Bader <miles@gnu.org>
9950
9951 * editfns.c (Fconstrain_to_field): Check carefully for field
9952 boundaries if either OLD_POS or NEW_POS has a non-nil field
9953 property, even if they're the same.
9954
9955 2000-10-16 Kenichi Handa <handa@etl.go.jp>
9956
9957 * xterm.c (x_draw_box_rect): Fix the calculation of width and
9958 height for XFillRectangle.
9959
9960 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
9961
9962 * syntax.c (Fstring_to_syntax): New function extracted from
9963 Fmodify_syntax_entry.
9964 (Fmodify_syntax_entry): Use it and document the ! and | fences.
9965 (skip_chars, Fforward_comment): Remove unused variables.
9966 (syms_of_syntax): Add defsubr for string-to-syntax.
9967 (describe_syntax): Add code for comment and string fences.
9968
9969 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
9970
9971 * keymap.c (access_keymap): Add AUTOLOAD parameter.
9972 Do the meta->esc mapping. Call get_keyelt before returning.
9973 Start scanning from the second element (the first is always `keymap')
9974 to make it easier to detect when we reach a parent map.
9975 Handle the case of inheriting from a symbol whose function is a map.
9976 (Fkeymap_parent): Also handle the `inherit from symbol' case.
9977 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
9978 (get_keyelt, Flookup_key): Update call to access_keymap.
9979 Remove the meta->esc mappings.
9980 (define_as_prefix): Delete old disabled code.
9981 (menu_item_p): New function.
9982 (where_is_internal_1): Skip over the few remaining menu items.
9983 * lisp.h (access_keymap): Update prototype.
9984 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
9985 Update call to access_keymap.
9986 (follow_key, read_key_sequence): Update calls to access_keymap.
9987 Remove the meta->esc mappings.
9988
9989 2000-10-13 Gerd Moellmann <gerd@gnu.org>
9990
9991 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
9992 with additional argument.
9993
9994 * xdisp.c (cursor_row_p): New function.
9995 (try_cursor_movement, display_line): Use it.
9996
9997 * xdisp.c (append_space): Also save/restore iterator's current
9998 character and its length.
9999
10000 * xdisp.c (init_from_display_pos): Add an assertion.
10001 (handle_stop): Don't set iterator's add_overlay_start.
10002 (handle_invisible_prop): Likewise.
10003 (load_overlay_strings): If text under an overlay is invisible,
10004 take both before- and after-strings into account when the iterator
10005 is positioned either at the start or at the end of the overlay.
10006 (forward_to_next_line_start): Rewritten.
10007 (reseat_at_next_visible_line_start): Rewritten.
10008 (set_iterator_to_next): Add parameter RESEAT_P.
10009
10010 * dispextern.h (struct it): Remove member add_overlay_start.
10011 (set_iterator_to_next): Change prototype.
10012
10013 2000-10-13 Kenichi Handa <handa@etl.go.jp>
10014
10015 * coding.c (code_convert_region): Be sure to initialize
10016 coding->category_idx.
10017 (decode_coding_string): Set coding->src_multibyte and
10018 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
10019 (encode_coding_string): Set coding->src_multibyte and
10020 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
10021
10022 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
10023
10024 * xfns.c (Fx_create_frame): Don't bother calling
10025 face-set-after-frame-default since the caller does it for us anyway.
10026
10027 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
10028
10029 * window.c (coordinates_in_window): Fix detection of vertical line
10030 on character terminals.
10031
10032 2000-10-12 Gerd Moellmann <gerd@gnu.org>
10033
10034 * editfns.c (save_excursion_save): Additionally record the
10035 selected window.
10036 (save_excursion_restore): If buffer was visible in a window, and a
10037 different window was selected, and the old selected window is
10038 still live, restore point in that window.
10039
10040 2000-10-12 Kenichi Handa <handa@etl.go.jp>
10041
10042 * xterm.c (x_produce_glyphs): Handle
10043 unibyte_display_via_language_environment correctly.
10044
10045 * regex.c (regex_compile): Change the way of handling a range from
10046 unibyte char to multibyte char.
10047
10048 * syntax.c (skip_chars): Change the way of handling a range from
10049 unibyte char to multibyte char.
10050
10051 * process.c (read_process_output): Cancel previous change.
10052
10053 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
10054
10055 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
10056
10057 * charset.c (Ffind_charset_string): Doc fix.
10058 (Ffind_charset_region): Doc fix.
10059
10060 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
10061
10062 * process.c (read_process_output): Fix previous change. Adjust
10063 multibyteness of text to insert in a buffer by
10064 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
10065
10066 2000-10-10 Andreas Schwab <schwab@suse.de>
10067
10068 * alloc.c (mark_object): Remove all workarounds installed on
10069 1993-08-08.
10070
10071 2000-10-10 Kenichi Handa <handa@etl.go.jp>
10072
10073 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
10074 (base64_encode_1): Make it work for a text of multibyte form.
10075 (Fbase64_decode_region): Allocate sufficient memory for multibyte
10076 case. Don't call str_to_multibyte because base64_decode_1
10077 produces correct multibyte form for eight-bit codes.
10078 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
10079 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
10080 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
10081 codes.
10082
10083 * charset.h (CHAR_STRING): Optimized for single byte characters.
10084
10085 2000-10-09 Andreas Schwab <schwab@suse.de>
10086
10087 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
10088 -1 after socket is closed, to fall through to error processing.
10089
10090 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
10091
10092 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
10093 variables. If ALIST includes foreground-color or
10094 background-color, change also the colors of the default face for
10095 this frame.
10096
10097 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
10098
10099 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
10100 them extern (they are defined on xfaces.c).
10101 (syms_of_msdos): Don't intern and don't staticpro
10102 Qbackground_color and Qforeground_color.
10103
10104 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
10105
10106 * frame.c (Fframe_parameter): For non-windowed frames, if
10107 f->param_alist says foreground or background color is unspecified,
10108 call tty_color_name to return the color name computed from the
10109 frame's current colors.
10110
10111 2000-10-06 Dave Love <fx@gnu.org>
10112
10113 * terminfo.c (ospeed): Don't declare.
10114
10115 * sysdep.c: Don't include string.h.
10116 (h_errno): Declare conditional also on TRY_AGAIN.
10117
10118 * charset.c (Ffind_charset_string): Doc fix.
10119
10120 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
10121 (Fbase64_decode_region, Fbase64_decode_string): More explicit
10122 error messages.
10123
10124 2000-10-05 Dave Love <fx@gnu.org>
10125
10126 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
10127 position like menu-bar.
10128
10129 2000-10-05 Gerd Moellmann <gerd@gnu.org>
10130
10131 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
10132
10133 * xdisp.c (handle_single_display_prop): Use safe_call1.
10134 (safe_call): Renamed from call_function.
10135 (safe_call1): New function.
10136 (handle_fontified_prop): Use safe_call1 instead of call1.
10137 (safe_eval): Renamed from eval_form.
10138 (safe_eval_handler): Renamed from eval_handler.
10139 (handle_single_display_prop, display_mode_element): Use safe_eval
10140 instead of eval_form.
10141
10142 * xfaces.c (merge_face_heights): Use safe_call instead of
10143 call_function.
10144
10145 * keyboard.c (show_help_echo): Use safe_call instead of
10146 call_function; use safe_eval instead of eval_form.
10147
10148 * lisp.h (safe_call): Renamed from call_function.
10149 (safe_eval): Renamed from eval_form.
10150 (safe_call1): Add prototype.
10151
10152 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
10153
10154 * xfns.c (image_ascent): Rearrange ascent calculation for the
10155 has-a-font case.
10156
10157 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
10158
10159 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
10160 (where_is_internal_1): Don't bother ignoring menu-items any more.
10161
10162 2000-10-04 Gerd Moellmann <gerd@gnu.org>
10163
10164 * keyboard.c (update_menu_bindings): New variable.
10165 (parse_menu_item): Use AREF. If update_menu_bindings
10166 is 0, don't update menu bindings.
10167 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
10168
10169 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
10170
10171 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
10172 to `mark_object'.
10173
10174 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
10175
10176 * syntax.c (forw_comment): Match nestedness of ender/starter.
10177 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
10178 (prev_char_comstart_first): Remove.
10179 (back_comment): Check two-char comment markers more carefully
10180 to better handle overlapping cases like *//* or /* */* */ ...
10181 Match nestedness of ender/starter.
10182
10183 2000-10-02 Dave Love <fx@gnu.org>
10184
10185 * config.in (HAVE_GAI_STRERROR): Add undef.
10186
10187 * process.c (Fopen_network_stream): Use it.
10188
10189 * m/alpha.h (NO_REMAP): Don't define.
10190
10191 2000-10-02 Gerd Moellmann <gerd@gnu.org>
10192
10193 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
10194 return with a string converted to an integer or vice versa when
10195 Vmocklisp_arguments is t.
10196 (Fsignal): Likewise. The function can return for `quit'.
10197 (struct gcpro): Declare member `var' to point to a volatile
10198 Lisp_Object.
10199
10200 * eval.c (error): Prevent compiler warning.
10201
10202 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
10203
10204 * keymap.c (keymap_memberp): New function.
10205 (Fset_keymap_parent): Use it.
10206 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
10207 Use keymap_memberp to avoid creating cycles.
10208 (access_keymap): Use KEYMAPP.
10209
10210 2000-09-30 Gerd Moellmann <gerd@gnu.org>
10211
10212 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
10213 gai_strerror. Make sure xerrno is set if connect fails. Improve
10214 error recovery.
10215
10216 2000-09-29 Jason Rumney <jasonr@gnu.org>
10217
10218 * w32term.c (w32_char_font_type, w32_encode_char)
10219 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
10220 (w32_bdf_per_char_metric): New function.
10221 (w32_per_char_metric): Use it.
10222 (x_draw_glyph_string_background): Always draw background for BDF
10223 glyphs.
10224
10225 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
10226 GDI object which is a scarce resource.
10227
10228 * w32bdf.c (search_file_line): Fix skipping of whitespace.
10229 (get_quoted_string): Fix limit on memchr search.
10230 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
10231 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
10232 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
10233 (get_cached_font_char, cache_char_offset): Use macro
10234 BDF_CODEPOINT_RANGE_COVER_P.
10235 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
10236 (clear_cached_bitmap_slots): New function.
10237 (GET_HEX_VALUE): G-Z, g-z are not hex.
10238 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
10239 (get_bitmap_with_cache): Use new cache implementation.
10240 (create_offscreen_bitmap): New function.
10241 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
10242
10243 * w32term.c (x_produce_glyphs): If the distance from the current
10244 position to the next tab stop is less than a canonical character
10245 width, use the tab stop after that.
10246 (x_draw_glyphs): Handle case START and END are out of bounds more
10247 carefully.
10248 (x_clear_mouse_face): Block/unblock input.
10249 (x_display_and_set_cursor): Don't show a hollow box cursor for
10250 buffers whose cursor_type is nil.
10251
10252 2000-09-29 Gerd Moellmann <gerd@gnu.org>
10253
10254 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
10255
10256 * dispextern.h (updating_frame): Declare extern.
10257
10258 2000-09-29 Andreas Schwab <schwab@suse.de>
10259
10260 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
10261
10262 2000-09-29 Gerd Moellmann <gerd@gnu.org>
10263
10264 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
10265 use its function definition.
10266 (tool_bar_items): Likewise.
10267
10268 * lisp.h (fatal): Declare NO_RETURN.
10269
10270 2000-09-29 Kenichi Handa <handa@etl.go.jp>
10271
10272 * keymap.c: Remove the line "#undef NULL".
10273
10274 2000-09-28 Gerd Moellmann <gerd@gnu.org>
10275
10276 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
10277
10278 2000-09-28 Dave Love <fx@gnu.org>
10279
10280 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
10281
10282 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
10283
10284 * .gdbinit (xreload): Note its need on GNU/Linux.
10285
10286 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
10287 r_alloc, r_alloc_free.
10288
10289 2000-09-28 Kenichi Handa <handa@etl.go.jp>
10290
10291 * syntax.c (skip_chars): Handle negation correctly.
10292
10293 2000-09-27 Gerd Moellmann <gerd@gnu.org>
10294
10295 * xfaces.c (realize_default_face): Call set_lface_from_font_name
10296 with non-zero FORCE_P argument.
10297
10298 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
10299 Add assertions.
10300
10301 * xdisp.c (window_box_height): Add an assertion.
10302
10303 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
10304 tool-bar than is available.
10305 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
10306
10307 2000-09-27 Dave Love <fx@gnu.org>
10308
10309 * s/irix6-5.h: Now works 64-bit. Tidied.
10310
10311 2000-09-26 Gerd Moellmann <gerd@gnu.org>
10312
10313 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
10314 instead of BITS_PER_INT.
10315 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
10316 EMACS_UINT, respectively.
10317 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
10318
10319 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
10320
10321 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
10322
10323 * window.c (freeze_window_starts): Construct last argument for
10324 foreach_window differently.
10325
10326 * xfns.c (x_decode_color): Don't return a Lisp_Object.
10327
10328 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
10329 EMACS_UINT instead of `int' and `unsigned int'.
10330 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
10331
10332 * frame.h (struct frame): Make the `nothing' member of union
10333 output_data an EMACS_INT.
10334
10335 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
10336 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
10337 size in the sdata structure.
10338 (SDATA_NBYTES, SDATA_DATA): New macros.
10339 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
10340 differently for the different layout of the sdata structure.
10341 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
10342 in sdata.
10343 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
10344 Check that size recorded in the string size and size recorded in
10345 the sdata structure agree.
10346
10347 2000-09-25 Dave Love <fx@gnu.org>
10348
10349 * buffer.c: Include stdio.h.
10350
10351 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
10352
10353 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
10354
10355 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
10356 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
10357 (__malloc_extra_blocks): Declare as __malloc_size_t.
10358
10359 2000-09-25 Gerd Moellmann <gerd@gnu.org>
10360
10361 * alloc.c (mark_image): Use GC_NILP instead of NILP.
10362
10363 * keyboard.c (show_help_echo): Set help_echo_showing_p.
10364 (read_char): If help-echo is showing, preserve the echo area
10365 when redisplaying.
10366
10367 * xdisp.c (help_echo_showing_p): New variable.
10368 (set_message): Reset it to 0.
10369 (init_xdisp): Initialize help_echo_showing_p.
10370
10371 * dispextern.h (help_echo_showing_p): Declare extern.
10372
10373 * config.in: Fix typo in __GNUC_MINOR__.
10374
10375 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
10376
10377 * s/freebsd.h (POSIX_SIGNALS): Define.
10378
10379 * xterm.c (x_clear_mouse_face): Block/unblock input.
10380
10381 2000-09-24 Dave Love <fx@gnu.org>
10382
10383 * fns.c (base64_encode_1): Fix last change.
10384
10385 2000-09-22 Gerd Moellmann <gerd@gnu.org>
10386
10387 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
10388
10389 * xdisp.c (try_window_reusing_current_matrix): More fixes
10390 for the case window has a header-line.
10391
10392 2000-09-22 Dave Love <fx@gnu.org>
10393
10394 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
10395 a doc string.
10396
10397 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
10398
10399 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
10400
10401 2000-09-21 Gerd Moellmann <gerd@gnu.org>
10402
10403 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
10404 for GCC >= 2.5.
10405
10406 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
10407 Declare NO_RETURN.
10408
10409 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
10410 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
10411 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
10412 warnings.
10413
10414 * marker.c (byte_char_debug_check): Return void.
10415
10416 * xfns.c (Fx_create_frame): Set default frame parameter value
10417 for tool-bar-lines to 1.
10418
10419 * dispnew.c (scrolling_window): Compare y-positions of rows
10420 equal at the start. Some simplification.
10421
10422 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
10423 reused rows' y-position in the case window has a header-line, and
10424 new window start is greater than old window start.
10425
10426 * process.c (process_sent_to): New variable.
10427 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
10428 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
10429 Declare more parameters volatile.
10430
10431 * lread.c (Vrecursive_load_depth_limit): New variable.
10432 (Fload): Check recursive loads whose recursion depth exceeds
10433 Vrecursive_load_depth_limit.
10434 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
10435
10436 2000-09-20 Gerd Moellmann <gerd@gnu.org>
10437
10438 * fileio.c (Fread_file_name): Doc fix.
10439
10440 * editfns.c (Fmessage_or_box): Doc fix.
10441
10442 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
10443
10444 * xfns.c (xbm_scan): Allow C-style comments.
10445
10446 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
10447 symbols are specified, add color translations to the cache.
10448 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
10449 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
10450 xpm_cache_color.
10451 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
10452 structures to xpm_init_color_cache.
10453
10454 2000-09-19 Gerd Moellmann <gerd@gnu.org>
10455
10456 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
10457
10458 2000-09-19 Andrew Innes <andrewi@gnu.org>
10459
10460 * makefile.nt (bootstrap-emacs): Don't change directory.
10461
10462 2000-09-19 Kenichi Handa <handa@etl.go.jp>
10463
10464 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
10465
10466 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
10467 If output buffer is too small, signal an appropriated error.
10468
10469 2000-09-18 Dave Love <fx@gnu.org>
10470
10471 * keyboard.c (menu_bar_items, tool_bar_items)
10472 (current_active_maps): Remove redundant get_local_map call.
10473
10474 2000-09-18 Gerd Moellmann <gerd@gnu.org>
10475
10476 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
10477 cursor for buffers whose cursor_type is nil.
10478
10479 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
10480 a feature to implement that is already implemented.
10481 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
10482 warnings.
10483
10484 * xfns.c (x_clear_image_1): New function.
10485 (x_clear_image): Use it.
10486 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
10487
10488 * dispnew.c (update_window): Move test for invisible lines
10489 at the top to update_window_line.
10490 (update_window_line): Handle invisible lines here.
10491
10492 * xfns.c (clear_image_cache): Clear current matrices of all
10493 frames sharing an image cache. Block input while freeing
10494 images. Fix timestamp comparison.
10495 (x_clear_image): Also free the mask.
10496
10497 * xfns.c (lookup_image): Block input while loading the image so
10498 that we won't get interrupted in a state where the image isn't yet
10499 set up completely.
10500 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
10501 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
10502 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
10503 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
10504
10505 2000-09-16 Gerd Moellmann <gerd@gnu.org>
10506
10507 * dispnew.c (update_window): Make sure to make desired rows
10508 current even if they are completely invisible at the top
10509 of a window.
10510
10511 2000-09-15 Gerd Moellmann <gerd@gnu.org>
10512
10513 * xfns.c (lookup_image): Build mask before applying an algorithm.
10514 Recognize algorithm `disabled'.
10515 (cross_disabled_images): New variable.
10516 (COLOR_INTENSITY): New macro.
10517 (x_detect_edges): Use COLOR_INTENSITY.
10518 (x_disable_image): New function.
10519 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
10520
10521 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
10522 disabled state, don't apply an image transformation algorithm if
10523 the user specified an image for the disabled state. Use
10524 `:algorithm disabled' for creating a disabled item's image if the
10525 user hasn't specified an image.
10526
10527 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
10528 allocation functions with the XPM lib.
10529 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
10530 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
10531 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
10532 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
10533 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
10534 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
10535 functions, if possible, because these handle color allocation
10536 failure more gracefully.
10537 (Fimage_mask_p): New function.
10538
10539 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
10540 (Qedge_detection, Qheuristic): New symbols.
10541 (syms_of_xfns): Initialize new symbols.
10542 (lookup_image): Handle `:mask X', `:algorithm emboss', and
10543 `algorithm (edge-detection ...)'.
10544 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
10545 (tiff_format, gif_format, gs_format): Add `:mask'.
10546 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
10547 (GIF_MASK, GS_MASK): New enumerators.
10548 (x_laplace_read_row, x_laplace_write_row): Functions removed.
10549 (emboss_matrix, laplace_matrix): New variables.
10550 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
10551 (x_edge_detection): New functions.
10552 (x_laplace): Rewritten in terms of x_detect_edges.
10553 (x_build_heuristic_mask): If image has a mask, free it.
10554
10555 2000-09-14 Andrew Innes <andrewi@gnu.org>
10556
10557 * makefile.w32-in: Revert to Unix line endings.
10558
10559 2000-09-14 Andrew Innes <andrewi@gnu.org>
10560
10561 * makefile.w32-in: Standardize indentation somewhat.
10562 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
10563 cater for differences between shells.
10564
10565 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
10566
10567 2000-09-14 Gerd Moellmann <gerd@gnu.org>
10568
10569 * xterm.c (x_produce_glyphs): If the distance from the current
10570 position to the next tab stop is less than a canonical character
10571 width, use the tab stop after that.
10572
10573 2000-09-14 Dave Love <fx@gnu.org>
10574
10575 * buffer.c (alloc_buffer_text): Fix xmalloc call.
10576
10577 2000-09-14 Gerd Moellmann <gerd@gnu.org>
10578
10579 * xdisp.c (handle_fontified_prop): While running fontification
10580 functions, bind `fontification-functions' and
10581 `after-change-functions' to nil.
10582
10583 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
10584 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
10585
10586 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
10587
10588 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
10589 USE_MMAP_FOR_BUFFERS.
10590
10591 * insdel.c (make_gap): Use enlarge_buffer_text.
10592
10593 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
10594 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
10595 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
10596 from former r_alloc_* functions in ralloc.c.
10597 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
10598 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
10599 (mmap_init) [REL_ALLOC_MMAP]: New function.
10600 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
10601 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
10602 BUFFER_FREE.
10603
10604 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
10605 (enlarge_buffer_text): Add prototype.
10606
10607 * ralloc.c: Remove everything having to do with the use of mmap.
10608
10609 2000-09-13 Gerd Moellmann <gerd@gnu.org>
10610
10611 * sound.c (Fplay_sound): Doc fix.
10612
10613 * keyboard.c: Avoid some more compiler warnings.
10614 (parse_tool_bar_item): Ignore cached key bindings.
10615
10616 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
10617 and allocation of Lisp data.
10618
10619 2000-09-12 Gerd Moellmann <gerd@gnu.org>
10620
10621 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
10622 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
10623 defaults first.
10624
10625 * lread.c (Fload): Put code checking for recursive loads in #if 0.
10626
10627 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
10628
10629 * ccl.c: Comment fixed.
10630 (MAX_MAP_SET_LEVEL): Increased to 30.
10631 (PUSH_MAPPING_STACK): Enclose with do-while block.
10632 (POP_MAPPING_STACK): Likewise.
10633 (stack_idx_of_map_multiple): New variable.
10634 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
10635 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
10636 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
10637 (ccl_driver) <CCL_MapSingle>: Likewise.
10638 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
10639 with the case where looking up process reaches to the end of
10640 map-set, and call CCL programs as the above change.
10641
10642 2000-09-11 Gerd Moellmann <gerd@gnu.org>
10643
10644 * xfns.c (png_load, jpeg_load): Declare some variables volatile
10645 that might be clobbered by longjmp.
10646 (check_x_display_info, x_decode_color, create_frame_xic)
10647 (Fx_display_backing_store, Fx_display_visual_class)
10648 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
10649
10650 * lread.c (init_lread): Set Vloads_in_progress to nil.
10651 (Fload): Show list of recursively loaded files, when signaling an
10652 error.
10653
10654 * lread.c (Vloads_in_progress): New variable.
10655 (record_load_unwind): New function.
10656 (Fload): Check for recursive loads.
10657 (syms_of_lread): Initialize Vloads_in_progress.
10658 (read_integer, read1): Avoid some compiler warnings.
10659
10660 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
10661 compiler warnings.
10662
10663 2000-09-11 Miles Bader <miles@gnu.org>
10664
10665 * editfns.c (Fbuffer_string): Doc fix.
10666
10667 2000-09-10 Gerd Moellmann <gerd@gnu.org>
10668
10669 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
10670
10671 2000-09-09 Ken Raeburn <raeburn@gnu.org>
10672
10673 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
10674 whether to include other header files.
10675
10676 2000-09-09 Gerd Moellmann <gerd@gnu.org>
10677
10678 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
10679 by Fmemq as a boolean.
10680
10681 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
10682
10683 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
10684
10685 2000-09-08 Gerd Moellmann <gerd@gnu.org>
10686
10687 * ralloc.c (mmap_fd): Remove initializer which can make it
10688 read-only in a dumped Emacs.
10689 (mmap_fd_1): New variable.
10690 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
10691 restore it from there.
10692 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
10693 unconditionally so that mmap_fd can be initialized there.
10694 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
10695 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
10696 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
10697
10698 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
10699
10700 * xdisp.c (dump_glyph_row): Fix printf format string.
10701 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
10702
10703 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
10704
10705 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
10706 inheritance.
10707
10708 * xdisp.c (try_window_id): When trying to locate cursor in
10709 unchanged rows at the top, handle the case that we can't find it.
10710
10711 * xterm.c (x_draw_glyphs): Handle case START and END are out
10712 of bounds more carefully.
10713
10714 2000-09-08 Dave Love <fx@gnu.org>
10715
10716 * s/sol2.h (REL_ALLOC_MMAP): Define.
10717 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
10718
10719 * ralloc.c: Don't include string.h (redundant).
10720 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
10721 [!MAP_ANON]: Include fcntl.h.
10722 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
10723 (r_alloc, r_re_alloc, r_alloc_free)
10724 (mmap_enlarge, mmap_set_vars): Use it.
10725 (r_alloc_init_fd): New function.
10726 (__morecore) [SYSTEM_MALLOC]: Don't declare.
10727 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
10728 malloc type.
10729
10730 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
10731 Remove vm-limit.o.
10732
10733 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
10734 change to __NetBSD__.
10735
10736 2000-09-08 Kenichi Handa <handa@etl.go.jp>
10737
10738 * search.c (compile_pattern): Check the multibyteness of cached
10739 string and PATTERN.
10740
10741 2000-09-08 Miles Bader <miles@gnu.org>
10742
10743 * xfaces.c (default_face_vector): Function removed.
10744 (Finternal_merge_in_global_face): Restore old global/local
10745 attribute override order. Use inline loop instead of calling
10746 default_face_vector.
10747
10748 2000-09-07 Gerd Moellmann <gerd@gnu.org>
10749
10750 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
10751 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
10752 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
10753 where necessary, in case POINTER_TYPE is `void'.
10754
10755 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
10756
10757 * frame.c (make_terminal_frame): Initialize frame foreground and
10758 background colors to unspecified, for the initial instance of an
10759 MSDOS frame.
10760
10761 2000-09-07 Gerd Moellmann <gerd@gnu.org>
10762
10763 * ralloc.c (mmap_find): Fix overlap computation.
10764 (mmap_enlarge): Compute nbytes before trying to find an
10765 overlapping region.
10766
10767 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
10768 instead of `!='.
10769
10770 * lread.c (syms_of_lread): Change value of regexp
10771 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
10772
10773 * xmenu.c (xdialog_show): When looking up the selection in
10774 menu_items, take `quote' boundaries into account; this corresponds
10775 to a nil ITEM in x-popup-dialog.
10776
10777 2000-09-07 Kenichi Handa <handa@etl.go.jp>
10778
10779 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
10780 not 0x81.
10781 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
10782
10783 * coding.c (encode_coding_sjis_big5): Use translation table for
10784 encoding, not decoding. Fix the handling of latin-jisx0201.
10785 Check for the charset katakana-jisx0201 too.
10786 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
10787 (detect_coding_sjis): Check the byte sequence more rigidly.
10788
10789 2000-09-07 Gerd Moellmann <gerd@gnu.org>
10790
10791 * xfaces.c (Vparam_value_alist): New variable.
10792 (syms_of_xfaces): Initialize it.
10793 (Finternal_set_lisp_face_attribute): Avoid more consing.
10794
10795 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
10796 specially.
10797 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
10798 (Qbackground_mode): New variable.
10799 (syms_of_frame_1): Initialize Qbackground_mode.
10800
10801 * lisp.h (Qdisplay): Declare extern.
10802
10803 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
10804 change face on all frames, and change the default for new frames.
10805
10806 2000-09-07 Dave Love <fx@gnu.org>
10807
10808 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
10809
10810 2000-09-07 Kenichi Handa <handa@etl.go.jp>
10811
10812 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
10813
10814 * charset.c: Include composite.h
10815 (lisp_string_width): New function.
10816 (Fstring_width): Call lisp_string_width instead of strwidth.
10817
10818 * Makefile.in (charset.o): Depends on composite.h.
10819
10820 * process.c (read_process_output): Before inserting the decoded
10821 text in the buffer, adjust the multibyteness.
10822
10823 2000-09-06 Gerd Moellmann <gerd@gnu.org>
10824
10825 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
10826 buffer's text buffer is null, map new memory.
10827
10828 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
10829 POINTER_TYPE and size_t.
10830 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
10831 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
10832 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
10833 [REL_ALLOC_MMAP]: New macros.
10834 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
10835 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
10836 [REL_ALLOC_MMAP]: New functions.
10837
10838 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
10839 before and after unexec.
10840
10841 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
10842 text buffers if necessary.
10843
10844 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
10845 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
10846 in prototypes.
10847
10848 * config.in (HAVE_MMAP): Add #undef.
10849
10850 2000-09-05 Gerd Moellmann <gerd@gnu.org>
10851
10852 * frame.c (Qdisplay_type): New variable.
10853 (syms_of_frame_1): Initialize it.
10854 (Fframe_parameter): New function that avoids consing.
10855 (syms_of_frame): Defsubr it.
10856
10857 * buffer.c (Fother_buffer): Consider buffers as invisible when
10858 they are displayed in a window on an invisible frame.
10859
10860 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
10861 get-largest-window always return nil.
10862
10863 2000-09-04 Gerd Moellmann <gerd@gnu.org>
10864
10865 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
10866 variable; recognize Emacs 19 elc files.
10867
10868 2000-09-04 Miles Bader <miles@gnu.org>
10869
10870 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
10871 before initially popping up the menu, so the menu doesn't flash
10872 when the face settings are significantly different from the defaults.
10873
10874 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
10875
10876 * regex.c (WIDE_CHAR_SUPPORT): New macro.
10877 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
10878 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
10879 (BIT_UNIBYTE): Remove.
10880 (re_match_2_internal): Delete corresponding code and streamline the
10881 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
10882 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
10883 (re_wctype_t): New type.
10884 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
10885 (regex_compile): Use them and fix handling of overly long char classes.
10886
10887 2000-09-03 Andrew Innes <andrewi@gnu.org>
10888
10889 * makefile.w32-in: Change to DOS line endings.
10890
10891 * s/ms-w32.h (ORDINARY_LINK): New define.
10892
10893 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
10894 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
10895
10896 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
10897 (distclean): Delete them here instead.
10898
10899 * w32proc.c (compare_env): Convert to uppercase for comparison,
10900 not lowercase, to match how the native Windows shell works.
10901
10902 2000-09-03 Jason Rumney <jasonr@gnu.org>
10903
10904 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
10905 CVS changes the line-ends when checking in/out on DOS/Windows.
10906
10907 * makefile.nt (emacs): Do not change directory to run temacs, as
10908 the load-path is set relative to current directory.
10909
10910 2000-09-03 Miles Bader <miles@gnu.org>
10911
10912 * xterm.c (x_alloc_lighter_color_for_widget): New function.
10913
10914 2000-09-02 Gerd Moellmann <gerd@gnu.org>
10915
10916 * xdisp.c (redisplay_mode_lines): New function.
10917 (display_mode_lines): Return number of mode lines displayed.
10918 (echo_area_display): Use redisplay_mode_lines to draw garbaged
10919 mode lines. Don't temporarily bind redisplay-dont-pause to t.
10920
10921 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
10922 string.h and strings.h.
10923 (index) [HAVE_INDEX]: Add prototype.
10924
10925 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
10926 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
10927
10928 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
10929 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10930
10931 2000-09-01 Gerd Moellmann <gerd@gnu.org>
10932
10933 * lread.c (read1): Accept `?' as symbol constituent, for
10934 compatiblity with XEmacs.
10935
10936 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
10937
10938 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
10939 (struct re_pattern_buffer): Remove newline_anchor.
10940 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
10941 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
10942 (re_max_failures, fail_stack): Use size_t rather than unsigned.
10943 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
10944 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
10945 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
10946 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
10947 Get rid of references to newline_anchor.
10948 (regcomp): Allocate and precompute a fastmap.
10949
10950 2000-08-31 Gerd Moellmann <gerd@gnu.org>
10951
10952 * lread.c (openp): GCPRO local variable `filename'.
10953
10954 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
10955
10956 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
10957
10958 * regex.c: Merge some changes from GNU libc. Add prototypes.
10959 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
10960 Use memcmp and memcpy instead of bcopy and bcmp.
10961 (init_syntax_once): Use ISALNUM.
10962 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
10963 (REG_UNSET_VALUE): Remove. Use NULL instead.
10964 (REG_UNSET, re_match_2_internal): Use NULL.
10965 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
10966 New macros.
10967 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
10968 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
10969 (regex_compile): In handle_interval, return an error rather than try to
10970 unfetch the interval if we can't find the closing brace.
10971 Obey the RE_NO_GNU_OPS syntax bit.
10972 (TOLOWER): New macro.
10973 (regcomp): Use it.
10974 (regexec): Allocate regs.start and regs.end as one block.
10975
10976 2000-08-30 Gerd Moellmann <gerd@gnu.org>
10977
10978 * xdisp.c (echo_area_display): Check display_completed instead
10979 of calling detect_input_pending.
10980
10981 * dispnew.c (update_frame): Only set display_completed here; move
10982 the update_begin and update_end calls here from update_frame_1.
10983 (update_frame_1): Don't set display_completed here, don't call
10984 update_begin/update_end.
10985
10986 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
10987 instead of store_frame_param.
10988
10989 2000-08-29 Gerd Moellmann <gerd@gnu.org>
10990
10991 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
10992 desired window matrix hasn't been displayed, use the current row
10993 instead. Make sure that only those frame rows are updated for
10994 which there exists a corresponding enabled desired row.
10995
10996 2000-08-29 Miles Bader <miles@gnu.org>
10997
10998 * xfaces.c (default_face_vector): New function.
10999 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
11000
11001 2000-08-29 Gerd Moellmann <gerd@gnu.org>
11002
11003 * lread.c (openp): Prevent temporary string passed to
11004 Ffile_readable_p from being garbage collected.
11005
11006 2000-08-28 Dave Love <fx@gnu.org>
11007
11008 * keymap.c (store_in_keymap): Add `static' to declaration.
11009
11010 2000-08-28 Gerd Moellmann <gerd@gnu.org>
11011
11012 * emacs.c, callint.c, doc.c, editfns.c
11013 (toplevel) [HAVE_STRING_H]: Include string.h.
11014 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
11015 (index): Remove prototypes which might conflict with non-standard
11016 definitions of index/strchr.
11017
11018 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
11019 (rindex): Define only if !HAVE_RINDEX.
11020
11021 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
11022
11023 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
11024
11025 2000-08-28 Miles Bader <miles@gnu.org>
11026
11027 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
11028 made inconsistent by a font-related attribute in FROM.
11029 (merge_face_inheritance): Add function comment.
11030
11031 2000-08-28 Kenichi Handa <handa@etl.go.jp>
11032
11033 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
11034 the 4th arg (PREV_EVENT) Qt to suppress input method.
11035
11036 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
11037
11038 * regex.c: Indent cpp directives and remove parens after `defined'.
11039 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
11040 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
11041 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
11042 (re_compile_pattern): Use size_t for length.
11043 (init_syntax_once): Move to a better place.
11044 * regex.h: Merge changes from GNU libc. Indent cpp directives.
11045 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
11046
11047 * syntax.c (back_comment): Detect cases where a comment-starter is
11048 actually inside another comment as in: /* a // b */ c // d \n.
11049 Make it clear that `comstart_pos' is unused for nested comments.
11050
11051 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
11052 (KEYMAPP): New macro.
11053 (Fkeymap_parent, Fset_keymap_parent): Use it.
11054 (fix_submap_inheritance): Mark it static.
11055 (define_as_prefix, describe_buffer_bindings, describe_command)
11056 (describe_translation, describe_map): Complete prototypes.
11057
11058 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
11059
11060 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
11061 to better match the key-lookup behavior.
11062
11063 2000-08-27 Gerd Moellmann <gerd@gnu.org>
11064
11065 * xfaces.c (lface_fully_specified_p): Handle :inherit.
11066 (Finternal_set_lisp_face_attribute): Fix typo in error message.
11067
11068 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
11069
11070 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
11071 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
11072 (xterm.o): Depend on coding.h
11073
11074 2000-08-26 Kenichi Handa <handa@etl.go.jp>
11075
11076 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
11077 the corresponding '#endif'.
11078
11079 2000-08-26 Miles Bader <miles@gnu.org>
11080
11081 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
11082 * xfaces.c (QCinherit): New variable.
11083 (syms_of_xfaces): Initialize it.
11084 (LFACE_INHERIT): New macro.
11085 (Finternal_get_lisp_face_attribute)
11086 (merge_face_vector_with_property)
11087 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
11088 (check_lface_attrs): Allow new types of face height. Check
11089 inherit attribute.
11090 (CYCLE_CHECK): New macro.
11091 (merge_face_inheritance): New function.
11092 (merge_face_vectors): Merge inherited faces too. Add F and
11093 CYCLE_CHECK arguments.
11094 (merge_face_vector_with_property, Finternal_merge_in_global_face)
11095 (lookup_named_face, lookup_derived_face, realize_named_face)
11096 (face_at_string_position, face_at_buffer_position): Supply
11097 new F and CYCLE_CHECK arguments to merge_face_vectors.
11098 (merge_face_heights): New function.
11099 (merge_face_vectors, merge_face_vector_with_property)
11100 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
11101 handle relative face heights.
11102 (lface_same_font_attributes_p): Compare heights using EQ.
11103
11104 2000-08-26 Kenichi Handa <handa@etl.go.jp>
11105
11106 * charset.c (char_to_string): Check the character validity.
11107 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
11108
11109 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
11110
11111 * regex.c (PUSH_FAILURE_COUNT): New macro.
11112 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
11113 Handle popping of a register's or a counter's data.
11114 (POP_FAILURE_POINT): Use the new name.
11115 (re_match_2_internal): Push counter data on the stack for succeed_n,
11116 jump_n and set_number_at and remove misleading dead code in succeed_n.
11117
11118 2000-08-25 Gerd Moellmann <gerd@gnu.org>
11119
11120 * xdisp.c (redisplay_internal): If considering all windows on all
11121 frames, update the display for each frame as soon as possible,
11122 instead of first building all desired matrices for all frames, and
11123 then updating them all.
11124 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
11125
11126 2000-08-24 Gerd Moellmann <gerd@gnu.org>
11127
11128 * bytecode.c (mark_byte_stack): Add a comment.
11129
11130 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
11131 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
11132 a graphical frame.
11133
11134 2000-08-24 Kenichi Handa <handa@etl.go.jp>
11135
11136 * minibuf.c (do_completion): Always use compare-string, not
11137 string-equal because the latter doesn't pay attention to
11138 multibyteness of strings.
11139
11140 * process.c (create_process): Don't setup raw-text coding here.
11141 (Fopen_network_stream): Don't set coding->src_multibyte and
11142 coding->dst_multibyte here.
11143 (read_process_output): For process filter, return unibyte string
11144 if default-enable-multibyte-characters is nil.
11145 (send_process): If OBJECT is multibyte text, be sure to encoded it
11146 by the specified coding system for the process. Otherwise, setup
11147 raw-text coding.
11148 (init_process): Don't initialize default-process-coding-system here.
11149
11150 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
11151
11152 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
11153 <scroll-down-aggressively>: Likewise.
11154
11155 2000-08-23 Kenichi Handa <handa@etl.go.jp>
11156
11157 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
11158 zero. Set coding->produced_char correctly.
11159
11160 2000-08-22 Andrew Innes <andrewi@gnu.org>
11161
11162 * makefile.w32-in: New file.
11163
11164 * unexw32.c (unexec): Ignore old_name, and use the actual location
11165 of the current executable instead. Base new_name on this.
11166
11167 * w32proc.c (create_child): Remove reference to security
11168 descriptor, which isn't needed and doesn't compile with mingw32.
11169
11170 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11171 up dllimport attributes.
11172 (x_update_window_end): Update prototype.
11173
11174 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
11175 extern, which screws up dllimport attributes.
11176
11177 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11178 up dllimport attributes.
11179
11180 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
11181 screws up dllimport attributes.
11182
11183 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11184 up dllimport attributes.
11185 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
11186 screws up dllimport attributes.
11187
11188 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11189 up dllimport attributes.
11190
11191 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
11192 screws up dllimport attributes.
11193
11194 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
11195 screws up dllimport attributes.
11196
11197 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11198 up dllimport attributes.
11199
11200 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
11201 unnecessary extern, which screws up dllimport attributes.
11202 (main): Ditto.
11203
11204 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11205 up dllimport attributes.
11206
11207 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
11208 unnecessary extern, which screws up dllimport attributes.
11209
11210 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
11211 screws up dllimport attributes.
11212
11213 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11214 up dllimport attributes.
11215
11216 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
11217
11218 * w32bdf.c (search_file_line):
11219 (set_bdf_font_info):
11220 (seek_char):
11221 (w32_get_bdf_glyph):
11222 (w32_BDF_to_x_font): Fix compile warnings.
11223
11224 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
11225
11226 * w32select.c: Include keyboard.h before frame.h.
11227
11228 * w32fns.c (max): Define macro.
11229 (JOHAB_CHARSET): Define if not known.
11230 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
11231 (Fx_show_tip): Synch with X version.
11232
11233 * w32xfns.c: Include keyboard.h before frame.h.
11234
11235 * w32fns.c: Include keyboard.h before frame.h.
11236
11237 * w32term.c: Include keyboard.h before frame.h.
11238
11239 * fontset.c: Include keyboard.h before frame.h.
11240
11241 * w32inevt.c: Include keyboard.h before frame.h.
11242 (MOUSE_MOVED): Define if not known.
11243
11244 * minibuf.c: Include keyboard.h before frame.h.
11245
11246 * keyboard.c: Include keyboard.h before frame.h.
11247
11248 * indent.c: Include keyboard.h before frame.h.
11249
11250 * dispnew.c: Include keyboard.h before frame.h.
11251
11252 * buffer.c: Include keyboard.h before frame.h.
11253
11254 * alloc.c: Include keyboard.h before frame.h.
11255
11256 * print.c: Include keyboard.h before frame.h.
11257
11258 * process.c: Include keyboard.h before frame.h.
11259
11260 * scroll.c: Include keyboard.h before frame.h.
11261
11262 * sysdep.c: Include keyboard.h before frame.h.
11263
11264 * term.c: Include keyboard.h before frame.h.
11265
11266 * window.c: Include keyboard.h before frame.h.
11267
11268 * xdisp.c: Include keyboard.h before frame.h.
11269 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
11270
11271 * frame.c: Include keyboard.h before frame.h.
11272
11273 * w32heap.h: Undefine min, max.
11274
11275 * w32gui.h: Undefine min, max.
11276
11277 * unexw32.c: Change PUCHAR to PCHAR.
11278 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
11279 (relocate_offset):
11280 (get_section_info):
11281 (copy_executable_and_dump_data): Remove unnecessary static defs.
11282 (copy_executable_and_dump_data): Fix compile warnings.
11283
11284 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
11285
11286 * w32console.c (min): Define macro.
11287 (clear_frame, write_glyphs): Fix compile warning.
11288
11289 * w32proc.c (compare_env):
11290 (find_child_console): Fix compile warning.
11291
11292 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
11293 sys_errlist instead of _sys_errlist.
11294 (get_emacs_configuration_options): New function.
11295
11296 * s/ms-w32.h (sys_nerr): Provide default definition.
11297 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
11298 name with _ prepended.
11299 (NSIG): Define if not known.
11300 (get_emacs_configuration): Provide extern declaration.
11301 (get_emacs_configuration_options): Provide extern declaration.
11302 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
11303
11304 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
11305 (map_w32_filename):
11306 (read_unc_volume): Fix compile warning.
11307
11308 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
11309 definitions from being used.
11310
11311 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
11312
11313 * w32.c (unc_volume_file_attributes):
11314 (open_unc_volume): Make arg const.
11315
11316 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
11317 (read_input_waiting): Remove excess parameter.
11318
11319 * w32.c (init_environment): Call _access.
11320 (check_windows_init_file): Call _close.
11321 (init_user_info): Call _putenv.
11322 (init_environment): Call _putenv and _strdup.
11323 (init_ntproc): Reset volume info cache on startup.
11324
11325 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
11326 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
11327 cannot override the CRT malloc.
11328
11329 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
11330 (LINK_FLAGS): Append to original value of LINK_FLAGS.
11331
11332 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
11333 unless we are linking with a static CRT.
11334 (RVA_TO_PTR): Cast result to unsigned char*.
11335
11336 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
11337 (add_volume_info): Use xstrdup.
11338
11339 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
11340
11341 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
11342 (do_completion, Fminibuffer_complete_word): Use it.
11343 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
11344 var so it can take non-boolean values.
11345
11346 2000-08-21 Gerd Moellmann <gerd@gnu.org>
11347
11348 * editfns.c (find_field): Formatting changes.
11349 (toplevel): Some old-style function forward declarations
11350 changed to prototypes, some new protypes added, some functions
11351 made static.
11352
11353 * lisp.h (set_time_zone_rule): Add prototype.
11354 (use_dialog_box): External declaration.
11355
11356 * keyboard.c (gen_help_event): Add parameter SIZE.
11357 (kbd_buffer_events_waiting): Slightly rewritten.
11358 (clear_event): New function.
11359 (kbd_buffer_get_event): Use it, and clear the input_events of
11360 HELP_EVENTs.
11361 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
11362 don't fill the newly created array with nils.
11363 (toplevel): Convert some old-style function forward declarations
11364 to prototypes.
11365
11366 * keyboard.h (gen_help_event): Change prototype.
11367
11368 * xterm.c (XTread_socket): Change calls to gen_help_event.
11369
11370 * w32term.c (w32_read_socket): Change calls to gen_help_event.
11371
11372 * eval.c (Fmacroexpand): Doc fix.
11373
11374 2000-08-20 Jason Rumney <jasonr@gnu.org>
11375
11376 * w32term.h (x_display_info_for_display): Remove as this function
11377 does not exist on W32.
11378
11379 * w32term.c (help_echo_window): New variable.
11380 (syms_of_w32term): staticpro it.
11381 (note_mode_line_highlight): Set it.
11382 (XTextExtents16): Removed as there is no equivalent on W32.
11383 (x_compute_glyph_string_overhangs): Incomplete body removed, as
11384 the X way of doing this will not work for W32.
11385 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
11386 (x_draw_image_foreground): Avoid drawing outside of the clip area
11387 when image doesn't have a mask.
11388 (note_mouse_highlight): Process overlays in the right order of
11389 priority. Set help_echo_window.
11390 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
11391 because that's more visible for large images.
11392
11393 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
11394 name to single_keymap_panes.
11395 (w32_menu_show): Set wv->title when dealing with titles.
11396 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
11397
11398 2000-08-21 Miles Bader <miles@gnu.org>
11399
11400 * minibuf.c (do_completion): Try again if we rewrite the input
11401 string, but no completion was done, so that any completion message
11402 will be correct.
11403
11404 2000-08-20 Gerd Moellmann <gerd@gnu.org>
11405
11406 * xfaces.c (lface_equal_p): Compare strings differently.
11407 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
11408 (realize_tty_face): Use them.
11409 (syms_of_xfaces): Initialize new variables.
11410 (map_tty_color): New function, extracted from realize_tty_face.
11411 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
11412 foreground or background color, store the new color name in the
11413 realized face; previous code trying to do this had no effect.
11414 (realize_tty_face): Use map_tty_color.
11415 (Fclear_face_cache): Set face_change_count and ensure thorough
11416 redisplay.
11417
11418 2000-08-19 Gerd Moellmann <gerd@gnu.org>
11419
11420 * undo.c (record_first_change, record_marker_adjustment): Don't
11421 use XBUFFER on last_undo_buffer which might not be a buffer.
11422
11423 2000-08-18 Kenichi Handa <handa@etl.go.jp>
11424
11425 * coding.c (decode_coding_string): Set members consumed,
11426 consumed_char, produced, produced_char of *coding correctly. If
11427 decode_coding doesn't consume any byte, don't try anymore.
11428 (encode_coding_string): Likewise.
11429
11430 2000-08-18 Gerd Moellmann <gerd@gnu.org>
11431
11432 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
11433 conditional have void type, for Standard C compilers.
11434
11435 * xdisp.c (redisplay_internal): Compare windows for equality with
11436 EQ, instead of applying XWINDOW to something that might not
11437 be a window.
11438
11439 2000-08-18 Kenichi Handa <handa@etl.go.jp>
11440
11441 * fontset.c (Finternal_char_font): Search only the selected frame
11442 for a window of the current buffer.
11443
11444 2000-08-18 Gerd Moellmann <gerd@gnu.org>
11445
11446 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
11447 Lisp_Objects.
11448
11449 * keyboard.c (kbd_buffer_get_event): Handle the case that the
11450 second half of a HELP_EVENT is found at the start of kbd_buffer.
11451
11452 2000-08-18 Miles Bader <miles@gnu.org>
11453
11454 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
11455
11456 * editfns.c (save_restriction_save): Rewrite to use markers.
11457 (save_restriction_restore): Rewrite to understand new form of data
11458 saved by save_restriction_save.
11459 (Fsave_restriction): Remove cautionary note in doc-string.
11460
11461 2000-08-17 Gerd Moellmann <gerd@gnu.org>
11462
11463 * fileio.c (build_annotations): Add a comment explaining the
11464 return value of format-annotate-function. Replace a spurious call
11465 to Flength with a CONSP test. Call format-annotate-function with
11466 a fifth arg specifying how many times the function is been called
11467 in a row, to let it choose temporary buffers appropriately.
11468
11469 2000-08-17 Dave Love <fx@gnu.org>
11470
11471 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
11472 declare make_temp_name twice.
11473
11474 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
11475 (unreadpure): Give it an arg.
11476
11477 * unexalpha.c: Prototype fatal_unexec, mark_x,
11478 update_dynamic_symbols. Declare unexec as void.
11479
11480 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
11481 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
11482
11483 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
11484 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
11485
11486 * alloca.c: Use #error.
11487 [POINTER_TYPE]: Use it.
11488
11489 * eval.c (Fdefvar): Doc fix.
11490
11491 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
11492 INITIALIZE_INTERVAL.
11493
11494 * buffer.h: Avoid DECLARE_INTERVALS.
11495
11496 * config.in: Add size_t.
11497
11498 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
11499
11500 * w16select.c (set_clipboard_data): If there's not enough memory
11501 to put text into clipboard, return 1, as Fw16_set_clipboard_data
11502 expects. In case of other failures, return 3.
11503 (system_error_msg): New error message.
11504 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
11505 system_error_msg.
11506
11507 2000-08-16 Gerd Moellmann <gerd@gnu.org>
11508
11509 * term.c (write_glyphs): Also turn off inverse video after turning
11510 off other appearances in case TS_exit_attribute_mode is not equal
11511 to TS_end_standout_mode.
11512 (insert_glyphs): Turn inverse video on/off for each run of glyphs
11513 with the same face.
11514 (turn_off_face): Reset standout_mode only if
11515 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
11516 is equal to TS_end_standout_mode.
11517
11518 2000-08-16 Kenichi Handa <handa@etl.go.jp>
11519
11520 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
11521 sequence at the end of the source block.
11522
11523 * ccl.c (Fccl_program_p): Docstring modified.
11524 (Fccl_execute): Likewise.
11525 (Fccl_execute_on_string): Likewise.
11526
11527 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
11528
11529 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
11530
11531 2000-08-16 Kenichi Handa <handa@etl.go.jp>
11532
11533 The following changes are mainly to fix bugs of
11534 encode/decode-coding-string failing if encoding/decoding return
11535 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
11536 variable conversion_buffer.
11537
11538 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
11539 decrement dst_end to avoid buffer overflow in the later call of
11540 string_as_multibyte
11541
11542 * coding.h (conversion_buffer_size, conversion_buffer)
11543 (get_conversion_buffer): Extern deleted.
11544
11545 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
11546 (conversion_buffer, conversion_buffer_size): Variables deleted.
11547 (get_conversion_buffer): Function deleted.
11548 (struct conversion_buffer): New structure.
11549 (MAX_ALLOCA): New macro.
11550 (allocate_conversion_buffer): New macro.
11551 (extend_conversion_buffer, free_conversion_buffer): New functions.
11552 (ccl_coding_driver): Set coding->result.
11553 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
11554 this is the last block of source.
11555 (encode_coding): Likewise. Handle the source block as the last
11556 one only when the whole source text is consumed.
11557 (decode_coding_string): Handle the case that the output buffer is
11558 too small to decode the whole source text. Use
11559 allocate_conversion_buffer, extend_conversion_buffer and
11560 free_conversion_buffer, not get_conversion_buffer.
11561 (encode_coding_string): Likewise.
11562 (init_coding): Function deleted.
11563 (init_coding_once): Delete code to initialize conversion_buffer_size.
11564
11565 * emacs.c (main): Don't call init_coding.
11566
11567 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
11568
11569 * term.c (write_glyphs): Use a locally declared conversion_buffer.
11570 (insert_glyphs): Likewise.
11571
11572 * w32console.c (write_glyphs): Use a locally declared
11573 conversion_buffer.
11574
11575 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
11576
11577 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
11578 member of display_info is NULL.
11579
11580 2000-08-15 Gerd Moellmann <gerd@gnu.org>
11581
11582 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
11583
11584 * term.c (turn_off_face): Reset standout_mode when resetting
11585 appearances with capability `me'.
11586 (write_glyphs): Switch on inverse video before each face change.
11587
11588 2000-08-14 Dave Love <fx@gnu.org>
11589
11590 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
11591 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
11592 (lisp_free): Declare and make static.
11593
11594 * window.c: Fix embedded comment.
11595 (syms_of_window): Fix doc string.
11596
11597 2000-08-14 Gerd Moellmann <gerd@gnu.org>
11598
11599 * keymap.c (push_key_description): If C without modifiers is < 32,
11600 make sure to print `C-' before `M-', like in the manual.
11601
11602 2000-08-11 Gerd Moellmann <gerd@gnu.org>
11603
11604 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
11605 since they aren't relocated anymore.
11606 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
11607
11608 * xdisp.c (try_cursor_movement): Fix handling of cursor in
11609 partially visible line which is smaller than the window's height.
11610
11611 2000-08-11 Kenichi Handa <handa@etl.go.jp>
11612
11613 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
11614 the multibyte form of eight-bit-control characters.
11615 (Fccl_execute_on_string): Initialize ccl->multibyte.
11616
11617 * ccl.h (struct ccl_program): New member multibyte.
11618
11619 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
11620
11621 2000-08-11 Kenichi Handa <handa@etl.go.jp>
11622
11623 * regex.c (regex_compile) <normal_char>: Pay attention to
11624 multibyteness.
11625 (analyse_first) <exactn>: Setup fastmap correctly for
11626 eight-bit-control characters.
11627
11628 2000-08-11 Kenichi Handa <handa@etl.go.jp>
11629
11630 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
11631
11632 * keyboard.c (make_lispy_event): Handle the new event type
11633 multibyte_char_keystroke.
11634
11635 * xterm.c: Include coding.h.
11636 (XTread_socket): Work around a bug of XmbLookupString. If the
11637 input is from XIM, decode it according to the current locale. In
11638 that case, generate multibyte_char_keystroke events.
11639
11640 2000-08-11 Kenichi Handa <handa@etl.go.jp>
11641
11642 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
11643 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
11644
11645 2000-08-10 Gerd Moellmann <gerd@gnu.org>
11646
11647 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
11648 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
11649 (move_it_in_display_line_to): Record iterator's ascent and descent
11650 before producing glyphs, and restore them when we know the glyph
11651 doesn't fit on the line.
11652 (move_it_to): Restructured so that it's easier to debug. If
11653 moving to a vpos, and not moving to an x or character position,
11654 stop as soon as the specified vpos is reached; don't move further
11655 into that line because that might change the computed line height.
11656 (try_cursor_movement): New function, extracted from the cursor
11657 movement branch of redisplay_window. If ending on a partially
11658 visible line, don't try to scroll if the cursor line is taller
11659 than the window.
11660 (redisplay_window): Use try_cursor_movement.
11661
11662 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
11663 because that function doesn't cope with variable-height lines.
11664
11665 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
11666 box cursor because that's better visible for large images.
11667
11668 2000-08-10 Miles Bader <miles@gnu.org>
11669
11670 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
11671
11672 2000-08-10 Gerd Moellmann <gerd@gnu.org>
11673
11674 * xdisp.c (Vmessages_buffer_name): New variable.
11675 (message_dolog): Use it.
11676 (syms_of_xdisp): Initialize it.
11677
11678 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
11679
11680 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
11681 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
11682 redundant now that keyboard.h is included.
11683
11684 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
11685
11686 * keyboard.c (kbd_buffer_events_waiting): New function.
11687
11688 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
11689
11690 * msdos.c: Include keyboard.h.
11691 (XMenuActivate): Empty no_event events from the event buffer. If
11692 no events are left after that, call clear_input_pending.
11693 (mouse_clear_clicks): New function, code moved from mouse_init.
11694 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
11695 mouse driver to ``forget'' any past clicks.
11696
11697 * Makefile.in (msdos.o): Depend on keyboard.h.
11698
11699 2000-08-09 Gerd Moellmann <gerd@gnu.org>
11700
11701 * lisp.h (input_pending): External declaration.
11702
11703 * dispextern.h (Qredisplay_dont_pause): Declare extern.
11704
11705 * xdisp.c (echo_area_display): Display thoroughly if input is
11706 pending. Bind redisplay-dont-pause to t during the redisplay.
11707 in case input is pending.
11708
11709 * dispnew.c (Qredisplay_dont_pause): New variable.
11710 (syms_of_display): Initialize and staticpro it.
11711 (update_frame_1): Don't interrupt the display for pending input if
11712 redisplay_dont_pause is set.
11713
11714 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
11715
11716 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11717
11718 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
11719
11720 * callproc.c (Fcall_process): Terminate the unwind-protect around
11721 the post-read-conversion of coding system.
11722
11723 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
11724 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
11725 * buffer.h (overlays_at): Update prototype.
11726 * xdisp.c (next_overlay_change): Update call to overlays_at.
11727 * xfaces.c (face_at_buffer_position): Likewise.
11728 * textprop.c (Fget_char_property): Likewise.
11729 * xterm.c (note_mouse_highlight): Likewise.
11730
11731 * minibuf.c (do_completion): Don't consider a simple change of
11732 case as `completion'.
11733
11734 2000-08-08 Ken Raeburn <raeburn@gnu.org>
11735
11736 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
11737 * undo.c (record_delete): Make sure last_point_position_buffer is
11738 a buffer before comparing pointers.
11739
11740 * coding.h (decode_coding_string): Declare.
11741
11742 * intervals.h (Fprevious_single_char_property_change): Declare.
11743
11744 * textprop.c (Fprevious_single_char_property_change): Don't do
11745 arithmetic directly on lisp objects.
11746
11747 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
11748
11749 * keyboard.h (menu_item_eval_property): Declare.
11750
11751 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
11752 reuse as buffer name, instead of recreating (and discarding) every
11753 time a message is logged.
11754 (with_echo_area_buffer): Make callback arg A2 a lisp object.
11755 (current_message_1, truncate_message_1, set_message_1)
11756 (display_echo_area_1, resize_mini_window_1): Signatures changed.
11757 (current_message, truncate_echo_area, display_echo_area)
11758 (resize_echo_area_axactly): Changed calls.
11759
11760 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
11761 Lisp object.
11762 (Ffind_coding_systems_region_internal): First argument to Fappend
11763 must be an integer, not a Lisp object.
11764
11765 2000-08-08 Kenichi Handa <handa@etl.go.jp>
11766
11767 * charset.c (Fchar_width): Doc fix.
11768
11769 2000-08-08 Gerd Moellmann <gerd@gnu.org>
11770
11771 * charset.c (Fstring_width): Doc fix.
11772
11773 2000-08-07 Gerd Moellmann <gerd@gnu.org>
11774
11775 * xdisp.c (start_display): When starting display on a continuation
11776 line, clear ascent and descent members of the iterator structure;
11777 the height of the continued line does not affect the height of the
11778 continuation line.
11779 (make_cursor_line_fully_visible): Do nothing if cursor is on a
11780 line taller than the window.
11781 (redisplay_window) <forced window start>: Handle case that the
11782 middle of the window is not found in any row.
11783 (dump_glyph_row): Show more information.
11784 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
11785 first text line in a glyph matrix.
11786
11787 * xterm.c (x_draw_image_foreground): Avoid drawing outside
11788 of the clip area when image doesn't have a mask.
11789
11790 * fns.c (sweep_weak_table): Fix survival conditions for
11791 key-or-value and key-and-value weakness.
11792
11793 * .gdbinit (xhashtable): New command.
11794
11795 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
11796 tables out of the list of all weak hash tables.
11797
11798 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
11799 a new buffer is created, make sure echo_area_buffer[] references
11800 the new buffer.
11801
11802 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
11803
11804 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
11805 the doc string.
11806
11807 2000-08-07 Kenichi Handa <handa@etl.go.jp>
11808
11809 * syntax.c (skip_chars): Fix previous change. Make the handling
11810 of unibyte string consistent with that of regex search.
11811
11812 2000-08-05 Gerd Moellmann <gerd@gnu.org>
11813
11814 * xmenu.c (popup_get_selection): Use xfree instead of free.
11815
11816 * fileio.c (Finsert_file_contents): Use xfree instead of free.
11817
11818 * editfns.c (Ftranspose_regions): Use xfree instead of free.
11819
11820 * callproc.c (child_setup): Use xfree instead of free.
11821
11822 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
11823 instead of malloc.
11824 (run_mac_command, closedir): Use `xfree' instead of `free'.
11825
11826 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
11827
11828 * eval.c (error): Use xfree instead of free.
11829
11830 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
11831
11832 * fns.c: Replace `illegal' with `invalid'.
11833 (Fmake_hash_table, make_hash_table): Allow table size of 0.
11834
11835 2000-08-05 Kenichi Handa <handa@etl.go.jp>
11836
11837 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
11838 conversion.
11839
11840 2000-08-04 Noah Friedman <friedman@splode.com>
11841
11842 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
11843 docstring.
11844
11845 2000-08-04 Gerd Moellmann <gerd@gnu.org>
11846
11847 * syntax.c (skip_chars): Fix typo in error message.
11848
11849 2000-08-04 Andreas Schwab <schwab@suse.de>
11850
11851 * m/ia64.h: Moved from s/ia64.h.
11852
11853 2000-08-04 Kenichi Handa <handa@etl.go.jp>
11854
11855 * process.c (read_process_output): Big simplification. Handle
11856 composition and post-read-conversion of coding system correctly.
11857 (send_process): Handle composition correctly.
11858
11859 * callproc.c (Fcall_process): Handle post-read-conversion of
11860 coding system if any.
11861
11862 * coding.c (decode_coding_iso2022): More strict check for handling
11863 single shifting.
11864 (coding_restore_composition): Pay attention to the case that
11865 cmp_data is not set properly (because of invalid code in the
11866 source text).
11867 (run_pre_post_conversion_on_str): Include text properties in the
11868 resulting string.
11869 (decode_coding_string): Set members of coding correctly.
11870
11871 2000-08-03 Gerd Moellmann <gerd@gnu.org>
11872
11873 * s/ia64.h: New file.
11874
11875 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
11876 Use NULL instead of 0 at the end of variable argument list of
11877 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
11878 sizeof (int) < sizeof (void *).
11879
11880 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
11881 of variable argument lists of XtVaGetValues and XtVaSetValues.
11882
11883 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
11884 variable argument lists of XtVaGetValues and XtVaSetValues.
11885
11886 2000-08-02 Gerd Moellmann <gerd@gnu.org>
11887
11888 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
11889 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
11890
11891 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
11892 prototype.
11893
11894 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
11895 in call to Fsingle_key_description.
11896
11897 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
11898 Callers changed.
11899
11900 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
11901
11902 * window.c (display_buffer_reuse_frames): New variable.
11903 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
11904 frames displaying BUFFER.
11905 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
11906
11907 2000-08-01 Miles Bader <miles@gnu.org>
11908
11909 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
11910 when to constrain NEW_POS (they were pretty screwed up before).
11911
11912 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
11913
11914 * msdos.c (run_msdos_command): Save and restore the master
11915 environment, for the case that child_setup signals an error.
11916 When mirroring slashes in DOS shell commands, don't fail when
11917 argv[2] has embedded blanks.
11918 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
11919 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
11920 (dos_ttraw): Call mouse_setup_buttons.
11921
11922 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
11923 using alloca; free it after run_msdos_command returns.
11924
11925 2000-07-27 Dave Love <fx@gnu.org>
11926
11927 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
11928 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
11929
11930 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
11931
11932 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
11933
11934 * editfns.c (lisp_time_argument): Fix last change.
11935
11936 2000-07-27 Gerd Moellmann <gerd@gnu.org>
11937
11938 * fns.c (Fdelete): Make it work on vectors and strings in addition
11939 to lists.
11940
11941 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
11942 (syms_of_fns): Initialize new variables.
11943 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
11944 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
11945 weakness, with t meaning the same as `key-and-value'.
11946
11947 2000-07-27 Kenichi Handa <handa@etl.go.jp>
11948
11949 * coding.h (struct coding_system): Member safe_charset deleted.
11950
11951 * coding.c (Qsafe_charsets): This variable deleted.
11952 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
11953 New variables.
11954 (coding_safe_chars): New function.
11955 (CODING_SAFE_CHAR_P): New macro.
11956 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
11957 checking safe_charsets member of the coding system. Caller changed.
11958 (detect_coding_iso2022): New local variable safe_chars.
11959 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
11960 safe_charsets member of the coding system.
11961 (decode_coding_iso2022): New local variable safe_chars.
11962 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
11963 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
11964 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
11965 (ENCODE_UNSAFE_CHARACTER): New macro.
11966 (encode_coding_iso2022): New local variable safe_chars. Check
11967 unsafe chars.
11968 (setup_coding_system): Delete the code to initialize
11969 coding->safe_charses
11970 (intersection, find_safe_codings): New functions.
11971 (Ffind_coding_systems_region_internal): New function.
11972 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
11973 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
11974 variable and initialize it.
11975
11976 * fns.c (char_table_ref_and_index): New function.
11977
11978 * lisp.h (char_table_ref_and_index): Add prototype.
11979
11980 2000-07-26 Sam Steingold <sds@gnu.org>
11981
11982 * editfns.c (lisp_time_argument): Added third argument `usec'.
11983 (Ffloat_time): New built-in Lisp function.
11984
11985 2000-07-26 Gerd Moellmann <gerd@gnu.org>
11986
11987 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
11988 for the character code.
11989
11990 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
11991 GNU/Linux.
11992
11993 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
11994 if called for a popup menu.
11995 (xmenu_show): Store help string in widget values.
11996
11997 2000-07-26 Dave Love <fx@gnu.org>
11998
11999 * syswait.h: Move some definitions.
12000 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
12001 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
12002 perspicuous definitions.
12003 (WTERMSIG): Fix bit pattern used.
12004
12005 2000-07-26 Kenichi Handa <handa@etl.go.jp>
12006
12007 * print.c (print_object): If vector printing is truncated, print
12008 "..." to indicate it as well as the case of list printing.
12009
12010 2000-07-25 Gerd Moellmann <gerd@gnu.org>
12011
12012 * xdisp.c (next_element_from_display_vector): Improve comments.
12013
12014 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
12015 for the character code, and the rest for the face id as in 20.x.
12016 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
12017
12018 * window.c (window_display_table): Cleaned up.
12019
12020 * syntax.c (Fforward_word): Add last arg nil in call of
12021 Fconstrain_to_field.
12022
12023 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
12024
12025 * fileio.c (Frename_file) [DOS_NT]: If the file names are
12026 identical but for the letter-case, don't call
12027 barf_or_query_if_file_exists.
12028
12029 2000-07-25 Miles Bader <miles@gnu.org>
12030
12031 * editfns.c (find_field): Honor special `boundary' fields.
12032 (Qboundary): New variables.
12033 (syms_of_editfns): Initialize Qboundary.
12034 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
12035 Use scan_buffer instead of find_before_next_newline, because it
12036 allows us to detect the boundary case where there's a newline at
12037 the search limit.
12038 * lisp.h (Fconstrain_to_field): Update external declaration.
12039
12040 2000-07-24 Gerd Moellmann <gerd@gnu.org>
12041
12042 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
12043 if that is nil.
12044
12045 2000-07-24 Dave Love <fx@gnu.org>
12046
12047 * s/sunos4-0.h, s/sol2.h:
12048 (LIBS_TERMCAP): Move from m/sparc.h.
12049
12050 * m/sparc.h (TERMINFO): Moved to system files (probably only
12051 relevant for sunos4 judging by its vintage).
12052 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
12053 __arch64__.
12054
12055 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
12056
12057 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
12058 name to single_keymap_panes.
12059
12060 2000-07-24 Andreas Schwab <schwab@suse.de>
12061
12062 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
12063
12064 2000-07-24 Gerd Moellmann <gerd@gnu.org>
12065
12066 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
12067 parameters instead of using int parameters. Expect FN to accept
12068 EMACS_INT parameters.
12069 (display_echo_area, resize_echo_area_axactly, current_message)
12070 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
12071 with new argument list.
12072 (resize_mini_window_1): New callback function.
12073 (current_message_1, truncate_message_1, set_message_1): Change
12074 parameter lists to the new format expected by with_echo_area_buffer.
12075
12076 2000-07-24 Kenichi Handa <handa@etl.go.jp>
12077
12078 * fontset.c (fontset_ref): Remove INLINE declaration.
12079 (fontset_ref_via_base): Likewise.
12080 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
12081 to downcase.
12082
12083 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
12084
12085 * msdos.c (IT_note_mouse_highlight): Process overlays in the
12086 correct order of priority. If help echo was found in an overlay,
12087 use that overlay as the object in which the help echo was found.
12088
12089 2000-07-22 Miles Bader <miles@gnu.org>
12090
12091 * textprop.c (Fprevious_single_char_property_change): The initial
12092 property value should be from the position preceding POSITION, not
12093 following it.
12094
12095 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
12096
12097 * coding.c (syms_of_coding): Doc fix for
12098 inhibit-iso-escape-detection.
12099
12100 2000-07-21 Gerd Moellmann <gerd@gnu.org>
12101
12102 * xterm.c (note_mouse_highlight): Process overlays in the right
12103 order of priority.
12104
12105 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
12106
12107 * xterm.c (note_mouse_highlight): If help-echo was found in an
12108 overlay, use that overlay as the object in which the help was found.
12109
12110 * window.c (foreach_window_1): Fix typo reversing an if-condition.
12111
12112 * window.c (foreach_window): Instead of a fake variable argument
12113 list, take one USER_DATA argument.
12114 (foreach_window_1): Likewise, and call callback functions with two
12115 args, the window and USER_DATA.
12116 (struct check_window_data): New struct.
12117 (check_window_containing): Use it.
12118 (window_from_coordinates): Set up a struct check_window_data for
12119 foreach_window.
12120 (add_window_to_list, freeze_window_start): Change parameters
12121 according to new calling convention.
12122
12123 * window.h (foreach_window): Change prototype.
12124
12125 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
12126
12127 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
12128
12129 * xmenu.c (menu_help_callback): Call show_help_echo with
12130 additional arguments OBJECT and POS.
12131
12132 2000-07-21 Kenichi Handa <handa@etl.go.jp>
12133
12134 * data.c (Faset): Allow storing any multibyte character in a
12135 string. Convert unibyte string to multibyte if necessary.
12136
12137 * xfns.c (x_encode_text): New function.
12138 (x_set_name): Use x_encode_text.
12139 (x_set_title): Likewise.
12140
12141 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
12142
12143 * xterm.h (x_encode_text): Add prototype.
12144
12145 2000-07-20 Dave Love <fx@gnu.org>
12146
12147 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
12148 xfree, not free.
12149
12150 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
12151
12152 * msdos.c (help_echo_window): New variable.
12153 (syms_of_msdos): Initialize and staticpro it.
12154 (IT_note_mode_line_highlight): Set help_echo_window.
12155 (IT_note_mouse_highlight): Ditto.
12156 (dos_rawgetc): Store help_echo_window in the second event produced
12157 for HELP_EVENTs.
12158
12159 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
12160 Record the object that generated the help echo and the position of
12161 that object in help_echo_object and help_echo_pos. Record that
12162 some glyphs in a row are displayed in mouse-face.
12163 (IT_update_begin): Don't clear mouse highlight unless one of the
12164 enabled glyph rows is marked as being displayed in mouse-face.
12165 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
12166 and position recorded in help_echo_object and help_echo_pos to the
12167 event queue.
12168 (IT_menu_display): Accept a new argument PN: the pane number of
12169 the current menu pane. Record the pane number and the item
12170 number of the item which has associated help string.
12171 (XMenuActivate): Update the prototype for help_callback in
12172 function declaration. Call IT_menu_display with the current menu
12173 pane number as an additional argument. Call help_callback with
12174 two additional arguments: the pane number and the item number of
12175 the menu item associated with the help text.
12176 (help_echo_object, help_echo_pos): New variables.
12177 (syms_of_msdos): Initialize them and staticpro help_echo_object.
12178
12179 * msdos.h (XMenuActivate): Update prototype.
12180
12181 2000-07-19 Gerd Moellmann <gerd@gnu.org>
12182
12183 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
12184 Add some more prototypes.
12185
12186 * xterm.c, xterm.h: Add some more prototypes.
12187
12188 * lisp.h (Fnext_single_char_property_change): Add prototype.
12189
12190 * dispnew.c (direct_output_for_insert): Remove confusing
12191 outer local variable mouse_face_overwritten_p.
12192 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
12193
12194 * alloc.c (allocate_string_data): Don't copy old string contents.
12195
12196 2000-07-19 Kenichi Handa <handa@etl.go.jp>
12197
12198 * coding.c (code_convert_region): Delete text properties before
12199 shrinking the conversion region.
12200
12201 2000-07-18 Gerd Moellmann <gerd@gnu.org>
12202
12203 * dispnew.c (update_text_area): Write the whole row if it
12204 has mouse-face in it.
12205
12206 * xfaces.c (face-alternative-font-family-alist): Remove
12207 DEFVAR_LISP; staticpro instead.
12208
12209 * xmenu.c (menu_help_callback): Call show_help_echo with
12210 new arguments.
12211
12212 * keyboard.c (show_help_echo): Add parameter WINDOW.
12213 (read_char): Call show_help_echo with window extracted from Lisp
12214 help event.
12215 (gen_help_event): Add parameter WINDOW.
12216
12217 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
12218
12219 * xterm.c (help_echo_window): New variable.
12220 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
12221 (XTread_socket): Pass help_echo_window to gen_help_event.
12222 (syms_of_xterm): Initialize and staticpro help_echo_window.
12223
12224 2000-07-18 Dave Love <fx@gnu.org>
12225
12226 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
12227
12228 2000-07-18 Gerd Moellmann <gerd@gnu.org>
12229
12230 * alloc.c (allocate_string_data): If string had already data
12231 assigned, copy old contents to new string data.
12232
12233 * coding.c (syms_of_coding): Fix typo in spelling of variable
12234 `inhibit-iso-escape-detection'.
12235
12236 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
12237
12238 * Makefile.in: Add dependencies on dispextern.h.
12239 (alloca.o): Don't define malloc and define EMACS_FREE instead of
12240 `free'; both can conflict with system header files.
12241
12242 2000-07-18 Kenichi Handa <handa@etl.go.jp>
12243
12244 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
12245 undefined.
12246
12247 2000-07-18 Dave Love <fx@gnu.org>
12248
12249 * window.c (Fwindow_list): Declare arg `window'.
12250
12251 2000-07-18 Kenichi Handa <handa@etl.go.jp>
12252
12253 * coding.c (setup_coding_system): Don't override the explicitly
12254 specified designations.
12255
12256 2000-07-15 Miles Bader <miles@gnu.org>
12257
12258 * editfns.c (char_property_eq, char_property_stickiness): Renamed
12259 from `text_property_eq' and `text_property_stickiness', respectively.
12260 (find_field, Fconstrain_to_field, char_property_eq)
12261 (char_property_stickiness): Changed to call char-property functions
12262 instead of text-property-only ones.
12263
12264 * textprop.c (Fnext_single_char_property_change): Made a subr (was
12265 `next_single_char_property_change'). Do more error checking, and
12266 cleanup limit behavior.
12267 (Fprevious_single_char_property_change): New function.
12268 (syms_of_textprop): Initialize new subrs.
12269
12270 * xdisp.c (display_prop_end, invisible_text_between_p):
12271 Call Fnext_single_char_property_change instead of
12272 next_single_char_property_change.
12273
12274 2000-07-15 Jason Rumney <jasonr@gnu.org>
12275
12276 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
12277 after menu is finished with.
12278 (add_menu_item): Only consider wv->title as a menu title.
12279 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
12280
12281 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
12282 null title.
12283 (FONT_REGEXP): Remove unused macro, and its sub-components.
12284 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
12285
12286 * w32term.c (help_echo_object, help_echo_pos): New variables.
12287 (note_mode_line_highlight): Store additional information about the
12288 help-echo in help_echo_object and help_echo_pos. Check both
12289 `local-map' and `keymap' properties for changing the cursor
12290 (note_mouse_highlight): Store additional information about the
12291 help-echo in help_echo_object and help_echo_pos.
12292 (note_tool_bar_highlight): Set help_echo_object to nil and
12293 help_echo_pos to -1.
12294 (w32_read_socket): Use gen_help_event instead of filling
12295 input_events manually.
12296 (syms_of_w32term): Staticpro help_echo_object.
12297 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
12298 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
12299 (x_clear_mouse_face): New function.
12300 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
12301 (x_update_window_begin): No need to turn off the mouse
12302 highlight here.
12303 (show_mouse_face): Set the mouse_face_p flag of glyph rows
12304 depending on whether they contain glyphs highlighted in mouse-face.
12305 (x_fill_stretch_glyph_string): Consume runs of stretch
12306 glyphs instead of a single one.
12307 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
12308 with new argument list.
12309 (x_set_glyph_string_gc): Make sure the face's GC is valid.
12310 (x_append_glyph, x_append_composite_glyph)
12311 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
12312 changes in struct glyph starting 1999-12-27. See comments for
12313 xterm.c on 2000-07-05.
12314
12315 2000-07-14 Sam Steingold <sds@gnu.org>
12316
12317 * xfaces.c (realize_x_face): Fix the last patch:
12318 check `default_face' before dereferencing.
12319
12320 2000-07-14 Dave Love <fx@gnu.org>
12321
12322 * syntax.c (back_comment): Add null default in switch (for pcc).
12323
12324 2000-07-14 Kenichi Handa <handa@etl.go.jp>
12325
12326 * xfaces.c (realize_x_face): Make fontset using the base of the
12327 default_face's fontset, not using the default fontset.
12328
12329 * coding.c (inhibit_iso_escape_detection): New variable.
12330 (syms_of_coding): Make it a Lisp variable.
12331 (detect_coding_iso2022): If inhibit_iso_escape_detection is
12332 nonzero, ignore ISO2022's escape sequence.
12333
12334 2000-07-14 Gerd Moellmann <gerd@gnu.org>
12335
12336 * alloca.c (malloc) [emacs]: Define as xmalloc.
12337
12338 * xfns.c (Fx_show_tip): If frame parameters contain a position,
12339 use that instead of the mouse position. Add parameters DX and DY.
12340
12341 * dispextern.h (Fx_show_tip): Adjust number of parameters
12342 in prototype.
12343
12344 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
12345 if HELP is a function, call it with OBJECT and POS as parameters
12346 to get the help to display.
12347 (gen_help_event, kbd_buffer_store_help_event): New functions.
12348 (kbd_buffer_get_event): Construct the Lisp help-event differently.
12349 (read_char): Call show_help_echo with new parameters.
12350
12351 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
12352 Add prototypes.
12353
12354 * xterm.c (help_echo_object, help_echo_pos): New variables.
12355 (note_mode_line_highlight): Store additional information about the
12356 help-echo in help_echo_object and help_echo_pos. Check both
12357 `local-map' and `keymap' properties for changing the cursor
12358 (note_mouse_highlight): Store additional information about the
12359 help-echo in help_echo_object and help_echo_pos.
12360 (note_tool_bar_highlight): Set help_echo_object to nil and
12361 help_echo_pos to -1.
12362 (XTread_socket): Use gen_help_event instead of filling
12363 input_events manually.
12364 (syms_of_xterm): Staticpro help_echo_object.
12365
12366 * xmenu.c (menu_highlight_callback): Use
12367 kbd_buffer_store_help_event instead of setting up and input_event
12368 structure manually.
12369
12370 * xdisp.c (eval_form): GCPRO argument sexpr.
12371 (call_function): New function.
12372 (handle_single_display_prop): Use call_function and FUNCTIONP
12373 instead of checking whether if font_height is a symbol and
12374 using eval_form.
12375
12376 * eval.c (internal_condition_case_2): New function.
12377
12378 * lisp.h (FUNCTIONP): New macro.
12379 (internal_condition_case_2, call_function): Add prototypes.
12380
12381 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
12382 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
12383 Always set `arg' member of input_events.
12384 (construct_menu_click): Unused function removed.
12385
12386 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
12387
12388 * w32term.c (construct_mouse_click, construct_mouse_wheel)
12389 (construct_drag_n_drop, x_scroll_bar_handle_click)
12390 (w32_read_socket): Always set `arg' member of input_events.
12391
12392 * keyboard.c (show_help_echo): Use eval_form. Add comment.
12393
12394 * lisp.h (eval_form): Add prototype.
12395
12396 * xdisp.c (eval_form): Make it externally visible.
12397
12398 2000-07-13 Gerd Moellmann <gerd@gnu.org>
12399
12400 * xterm.c (x_handle_tool_bar_click): Store the frame in the
12401 frame_or_window slot of TOOL_BAR_EVENT input events instead of
12402 consing. For prefix events, store the frame in the `arg' slot of
12403 the event, otherwise store the key there.
12404 (XTread_socket): Instead of consing, use the frame_or_window slot
12405 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
12406
12407 * xmenu.c (menu_highlight_callback): Store help string in the
12408 `arg' member of the input event; don't cons.
12409 (menubar_selection_callback): Use the `arg' slot of input events
12410 to queue additional information, instead of consing.
12411
12412 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
12413
12414 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
12415 TOOL_BAR_EVENTs.
12416 (w32_read_socket): Adapt to changes in HELP_EVENTs.
12417
12418 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
12419 input events to queue additional information, instead of consing.
12420
12421 * keyboard.c (kbd_buffer_gcpro): Renamed from
12422 kbd_buffer_frame_or_window. Now used for all Lisp objects
12423 referenced from the input queue.
12424 (kbd_buffer_store_event): Always use structure assignment for
12425 copying input events. Record all Lisp objects referenced from
12426 events in kbd_buffer_gcpro.
12427 (kbd_buffer_get_event): Construct Lisp `help-echo' events
12428 differently from input events. Test for prefix menu_bar_events
12429 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
12430 event in kbd_buffer_gcpro to nil.
12431 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
12432 frame_or_window is equal to its arg member as prefix events.
12433 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
12434 used by an input event to nil.
12435 (init_keyboard): Use two times the size of the input queue
12436 for kbd_buffer_gcpro.
12437 (syms_of_keyboard): Likewise.
12438
12439 * emacs.c (handle_USR2_signal, handle_USR1_signal):
12440 Use USER_SIGNAL_EVENT.
12441
12442 * termhooks.h (struct input_event): Add member `arg'.
12443 (MENU_BAR_EVENT): Renamed from menu_bar_event.
12444 (USER_SIGNAL_EVENT): Renamed from user_signal.
12445
12446 * xfaces.c (ASET): Remove definition.
12447
12448 * lisp.h (AREF, ASET, ASIZE): New macros.
12449
12450 * fontset.c (AREF, ASIZE): Remove definitions.
12451
12452 * fns.c (AREF): Remove definition.
12453
12454 * composite.c (AREF): Remove definition.
12455
12456 2000-07-12 Gerd Moellmann <gerd@gnu.org>
12457
12458 * dispnew.c (redraw_overlapped_rows): Add missing local.
12459 (scrolling_window): Remove debug code.
12460
12461 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
12462 Before scrolling, turn off a mouse-highlight in the window
12463 being scrolled.
12464
12465 * xterm.c (x_update_window_end): Add parameter
12466 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
12467 redisplay in XTframe_up_to_date.
12468 (x_clear_mouse_face): New function.
12469 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
12470
12471 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
12472 current glyph row.
12473 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
12474 it when any row is written to that contains glyphs highlighted in
12475 mouse-face.
12476 (update_window): Call the window update end hook with new
12477 parameter MOUSE_FACE_OVERWRITTEN_P.
12478 (direct_output_for_insert): Give up if row contains mouse-face.
12479
12480 * dispextern.h (struct redisplay_interface): Add parameter
12481 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
12482 (clear_mouse_face): New function pointer member.
12483
12484 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
12485
12486 * syntax.c (back_comment): Use one switch rather than a few `if's.
12487 Obey open_paren_in_column_0_is_defun_start.
12488 When reverting to the `slow' method, try to nicely handle the case
12489 of nested comments by checking that the comment-starter we found
12490 does indeed match the comment-ender.
12491 (scan_sexps_forward, scan_sexps_forward):
12492 Ignore excessive opening parenthesis rather than throwing an error.
12493
12494 2000-07-11 Gerd Moellmann <gerd@gnu.org>
12495
12496 * doc.c (Fsubstitute_command_keys): Handle case that a GC
12497 in Fwhere_is_internal or get_keymap_1 relocates string contents.
12498
12499 * dispnew.c (direct_output_forward_char): Give up if currently
12500 displaying a message instead of the minibuffer contents.
12501
12502 * xterm.c (x_update_window_begin): No need to turn off the mouse
12503 highlight here.
12504 (show_mouse_face): Set the mouse_face_p flag of glyph rows
12505 depending on whether they contain glyphs highlighted in mouse-face.
12506
12507 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
12508 compare the mouse_face_p flags of both rows.
12509
12510 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
12511
12512 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
12513
12514 * keyboard.c (show_help_echo): Accept additional parameter
12515 ok_to_overwrite_keystroke_echo.
12516 (read_char): Call show_help_echo with a zero
12517 ok_to_overwrite_keystroke_echo argument.
12518 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
12519 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
12520 ok_to_overwrite_keystroke_echo argument.
12521 * w32menu.c (w32_menu_display_help): Call show_help_echo with
12522 non-zero ok_to_overwrite_keystroke_echo argument.
12523
12524 2000-07-10 Gerd Moellmann <gerd@gnu.org>
12525
12526 * xdisp.c (try_window_id): If changes are all below what is
12527 displayed in the window, and point is in the window, we still
12528 might have to find point on the display.
12529
12530 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
12531 glyphs instead of a single one.
12532 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
12533 with new argument list.
12534 (x_set_glyph_string_gc): Make sure the face's GC is valid.
12535
12536 * keymap.c (get_keymap_1): Add comment that this function can GC.
12537 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
12538 comment that functions can GC.
12539 (Fset_keymap_parent): GCPRO arg KEYMAP.
12540
12541 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
12542
12543 * msdos.c (XMenuActivate): After exiting the menu, restore the
12544 echo area message and erase it.
12545
12546 2000-07-10 Kenichi Handa <handa@etl.go.jp>
12547
12548 * fontset.c (Ffontset_info): Make the return value more compatible
12549 with that of Emacs 20.
12550
12551 2000-07-07 Gerd Moellmann <gerd@gnu.org>
12552
12553 * eval.c (Fsignal): Handle case that backtrace_list is null.
12554
12555 2000-07-07 Kenichi Handa <handa@etl.go.jp>
12556
12557 * ccl.c (Fccl_execute): Typo fixed.
12558
12559 2000-07-06 Gerd Moellmann <gerd@gnu.org>
12560
12561 * window.c (window_loop): Add missing gcpro1 local variable.
12562
12563 * window.c (Fwindow_list): Reverse list at the end.
12564 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
12565 means allow windows on OWINDOW's frame, only.
12566 (window_loop): Simplified; use Fwindow_list.
12567
12568 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
12569
12570 2000-07-05 Gerd Moellmann <gerd@gnu.org>
12571
12572 * xterm.c (XTread_socket): Increment handling_signal at the start,
12573 decrement it at the end.
12574
12575 * eval.c (handling_signal): New variable.
12576 (Fsignal): Abort if handling_signal is non-zero.
12577
12578 * lisp.h (handling_signal): External declaration.
12579
12580 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
12581
12582 2000-07-05 Ken Raeburn <raeburn@gnu.org>
12583
12584 Sound support for NetBSD through "Linux emulation" support:
12585 * config.in (HAVE_SOUNDCARD_H): Undef.
12586 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
12587 * Makefile.in (LIBSOUND): New variable.
12588 (LIBES): Include it.
12589 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
12590 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
12591 (vox_open): Use DEFAULT_SOUND_DEVICE.
12592 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
12593
12594 2000-07-05 Gerd Moellmann <gerd@gnu.org>
12595
12596 * print.c (print_error_message): If Vsignaling_function is set,
12597 show it in *Messages*.
12598
12599 * lisp.h (Vsignaling_function): External declaration.
12600
12601 * eval.c (Vsignaling_function): New variable.
12602 (Fsignal): Compute it.
12603 (syms_of_eval): Staticpro it.
12604
12605 2000-07-05 Dave Love <fx@gnu.org>
12606
12607 * syswait.h: Use the autoconf recommended approach. Old code
12608 #if'd out in case we need to revert.
12609
12610 * config.in (HAVE_SYS_WAIT_H): Added.
12611
12612 2000-07-05 Andrew Innes <andrewi@gnu.org>
12613
12614 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
12615 when non-NULL instead of __morecore, to take account of buffer
12616 memory. This also solves a problem with spurious memory warnings
12617 on Windows.
12618
12619 * ralloc.c: Make real_morecore non-static.
12620
12621 * eval.c (internal_condition_case): Comment out abort if
12622 interrupt_input_blocked is not zero.
12623
12624 * makefile.nt: Add support for `bootstrap' and related targets.
12625 Include minimal debug info in emacs.exe in release build.
12626 Remove all dependencies on lisp.h, and fixup some others.
12627
12628 * w32.c (init_environment): Install code from 20.7 for providing
12629 default values for environment variables, based on the
12630 executable's own location.
12631 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
12632 (sys_socket): Install socket inheritance bug fix from 20.7.
12633
12634 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
12635 here via blockinput.h).
12636
12637 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
12638
12639 * w32menu.c (w32_menu_display_help):
12640 * xmenu.c (menu_help_callback): Use show_help_echo.
12641
12642 * keyboard.h (show_help_echo): Declare.
12643
12644 * keyboard.c (show_help_echo): New function, extracted from read_char.
12645 Feval its `msg' argument if it's a cons cell.
12646 (read_char): Use it.
12647 (follow_key): Pass `autoload' to get_keyelt.
12648
12649 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
12650 (note_tool_bar_highlight, XTread_socket):
12651 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
12652 (dos_rawgetc):
12653 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
12654 (note_tool_bar_highlight, w32_read_socket):
12655 Do not gratuitously ignore non-string `help-echo' properties.
12656
12657 2000-07-05 Gerd Moellmann <gerd@gnu.org>
12658
12659 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
12660
12661 * window.c (delete_all_subwindows): Reset Vwindow_list.
12662
12663 * xterm.c (x_append_glyph, x_append_composite_glyph)
12664 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
12665 changes in struct glyph starting 1999-12-27. Some bit-fields of
12666 struct glyph were not set, which made glyphs unequal when compared
12667 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
12668 effects were the result. This also depended on the contents of
12669 memory returned by xmalloc. If flickering happens again, activate
12670 the code in clear_glyph_row that's in #if 0. If the flickering is
12671 gone with that, chances are that it is caused by something similar.
12672
12673 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
12674
12675 * dispextern.h: Add some comments.
12676
12677 * window.c (add_window_to_list): Add parameter LIST.
12678 (window_list): Order list so that, for each frame, windows are
12679 in canonical order, and so that frames appear in the list in
12680 the order given by Vframe_list.
12681 (next_window): Reverse the handling of NEXT_P.
12682
12683 2000-07-04 Gerd Moellmann <gerd@gnu.org>
12684
12685 * window.c (Vwindow_list): New variable.
12686 (make_window, delete_window): Set Vwindow_list to nil.
12687 (check_window_containing): New function.
12688 (window_from_coordinates): Rewritten.
12689 (add_window_to_list, window_list, candidate_window_p)
12690 (decode_next_window_args, next_window): New functions.
12691 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
12692 (Fwindow_list): New function.
12693 (Fother_window): Cleaned up.
12694 (foreach_window): Add a longer "variable argument list". Let
12695 callback function return 0 to indicate that cycling over windows
12696 should stop.
12697 (foreach_window_1): Likewise.
12698 (freeze_window_start): Return int.
12699 (init_window): New function.
12700 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
12701
12702 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
12703 input_event with bzero.
12704 (main): Call init_window.
12705
12706 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
12707 a menu filter.
12708
12709 2000-07-04 Kenichi Handa <handa@etl.go.jp>
12710
12711 * composite.h (make_composition_value_copy): Extern it.
12712
12713 * composite.c (make_composition_value_copy): New function.
12714
12715 * editfns.c (Fformat): While copying text properties, make each
12716 composition property value a copy.
12717
12718 * fns.c (concat): While copying text properties, make each
12719 composition property value a copy.
12720
12721 2000-07-03 Gerd Moellmann <gerd@gnu.org>
12722
12723 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
12724
12725 * fns.c (sweep_weak_table): Mark only objects that are not
12726 marked already.
12727
12728 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
12729 include those frames as candidates which have their focus
12730 redirected to the minibuffer frame.
12731
12732 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
12733
12734 * fns.c (Fputhash): Return `value' rather than nil.
12735
12736 2000-06-30 Gerd Moellmann <gerd@gnu.org>
12737
12738 * frame.c (next_frame): Don't check focus redirection in case
12739 MINIBUF is a window. Doing so excludes frames using MINIBUF
12740 unless their focus is redirected, which contradicts the
12741 specification of next-frame, and leads to infinite loops in
12742 certain situations when cycling through windows with next-window.
12743
12744 2000-06-30 Kenichi Handa <handa@etl.go.jp>
12745
12746 * coding.c (code_convert_region): Even if the length of text is
12747 zero, try to convert it if coding->type is coding_type_ccl.
12748 (decode_coding_string, encode_coding_string): Likewise.
12749
12750 2000-06-28 Gerd Moellmann <gerd@gnu.org>
12751
12752 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
12753 the display if windows_or_buffers_changed.
12754
12755 * dispnew.c (struct row_entry): New structure.
12756 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
12757 (row_table_size, old_lines, new_lines, old_lines_size)
12758 (new_lines_size, run_pool, runs_size, runs): New variables.
12759 (add_row_entry): New function.
12760 (scrolling_window): Use data structures allocated with xmalloc and
12761 held in global variables, instead of allocating them with alloca and
12762 holding them in local variables. Use a larger hash table whose
12763 size depends on glyph matrix sizes. Don't use bzero to clear the
12764 hash table; instead, clear used slots only.
12765
12766 * fns.c (next_almost_prime): Make it externally visible.
12767
12768 * lisp.h (next_almost_prime): Add prototype.
12769
12770 * s/isc4-0.h (sigunblock): Define.
12771
12772 * s/sco5.h (sigunblock): Define.
12773
12774 2000-06-27 Dave Love <fx@gnu.org>
12775
12776 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
12777 (moved to osf5-0.h).
12778 [!NOT_C_CODE]: Protect string.h stuff.
12779
12780 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
12781 (sys_siglist, NSIG): Definitions moved here from osf1.h.
12782
12783 2000-06-27 Gerd Moellmann <gerd@gnu.org>
12784
12785 * xdisp.c (resize_mini_window): Subtract the extra line spacing
12786 below the last line from the needed window height.
12787
12788 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
12789
12790 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
12791 (Fwidget_get): Use it.
12792 (syms_of_fns): Defsubr it.
12793
12794 2000-06-26 Gerd Moellmann <gerd@gnu.org>
12795
12796 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
12797 display info for XIM.
12798 (xim_open_dpy): Likewise.
12799 (xim_close_dpy): Don't free the display info's XIM.
12800
12801 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
12802
12803 * config.in (USE_XIM): New define.
12804
12805 * keymap.c (get_keyelt): For menu-items containing a `:filter
12806 FILTER', apply FILTER to the menu-item's definition to get the
12807 real definition to use.
12808
12809 * lisp.h (QCfilter): External declaration.
12810
12811 * xfns.c (Fimage_size): New function.
12812 (syms_of_xfns): Defsubr it.
12813
12814 2000-06-26 Andreas Schwab <schwab@suse.de>
12815
12816 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
12817 Fstring_as_unibyte.
12818
12819 2000-06-25 Dave Love <fx@gnu.org>
12820
12821 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
12822
12823 * Makefile.in (blockinput.h): Depend on atimer.h.
12824 (atimer.h): Depend on systime.h.
12825
12826 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
12827
12828 * atimer.h: Protect against multiple inclusion. Include systime.h.
12829
12830 * lisp.h (swap_in_global_binding): Declare.
12831
12832 2000-06-24 Ken Raeburn <raeburn@gnu.org>
12833
12834 * process.c (Fopen_network_stream): Turn off atimers for duration
12835 of call to connect. (Patch from Gerd.)
12836
12837 2000-06-23 Dave Love <fx@gnu.org>
12838
12839 * ralloc.c: Maybe include unistd.h
12840
12841 * emacs.c (setgrp): Undefine before defining.
12842 (malloc_warning, set_time_zone_rule, index): Prototype.
12843
12844 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
12845 HAVE_STRUCT_TIMEZONE.
12846
12847 * s/osf1.h: Move string.h hack here from alpha.h and make it
12848 conditional.
12849 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
12850 _XOPEN_SOURCE.
12851 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
12852 (SOCKLEN_TYPE): Don't define.
12853
12854 * m/alpha.h: Remove string.h hack.
12855
12856 * s/osf5-0.h: New file.
12857
12858 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
12859 include time.h, done by systime.h.
12860 [__FreeBSD__]: Remove redundant includes.
12861
12862 * callproc.c (setpgrp): Undefine before defining.
12863 (delete_temp_file): Return Qnil to avoid warning.
12864
12865 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
12866
12867 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
12868 HAVE_X_WINDOWS.
12869
12870 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
12871
12872 * composite.h (compose_text): Declare.
12873
12874 * xterm.c: Don't include sys/types.h unconditionally. Don't
12875 protect its inclusion with !USG (following xmenu.c).
12876
12877 2000-06-23 Gerd Moellmann <gerd@gnu.org>
12878
12879 * xfns.c (x_create_tip_frame): Initialize frame's colors like
12880 in x_create_frame.
12881
12882 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
12883
12884 * coding.c (decode_eol_post_ccl): Special handling for undecided
12885 and inconsistent EOL types.
12886
12887 2000-06-22 Gerd Moellmann <gerd@gnu.org>
12888
12889 * xrdb.c (x_load_resources): Add default resource for scroll bar's
12890 trough color and main window's background color.
12891
12892 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
12893
12894 * xterm.h (Xt_app_con): External declaration.
12895
12896 * widget.c (EmacsFrameRealize): Fix typo.
12897
12898 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
12899
12900 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
12901 (handle_invisible_prop): Record the start of invisible text in
12902 it->add_overlay_start.
12903 (struct overlay_entry): Add member `overlay'.
12904 (handle_overlay_change): Simplify.
12905 (next_overlay_string): After having processed overlay strings at the
12906 end of the buffer, record that fact in
12907 it->overlay_strings_at_end_processed_p.
12908 (compare_overlay_entries): If before- and after-strings come
12909 from the same overlay, let before-strings come first.
12910 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
12911 (load_overlay_strings): Take it->add_overlay_start into account
12912 when adding overlay strings.
12913
12914 * dispextern.h (struct it): Add member add_overlay_start.
12915
12916 2000-06-22 Dave Love <fx@gnu.org>
12917
12918 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
12919
12920 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
12921
12922 2000-06-22 Kenichi Handa <handa@etl.go.jp>
12923
12924 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
12925 is greater than 0.
12926
12927 2000-06-21 Dave Love <fx@gnu.org>
12928
12929 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
12930
12931 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
12932
12933 * syntax.c (back_comment): Simplify string-parity counting (with
12934 the added benefit of handling multiple string-styles as long as
12935 they are not intertwined).
12936 Jump to the slow code as soon as a comment starter is found in
12937 a "string_lossage" position. Fixes the case: " /* " /* " */.
12938
12939 2000-06-21 Dave Love <fx@gnu.org>
12940
12941 * Makefile.in: Use GETLOADAVG_LIBS.
12942
12943 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
12944 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
12945
12946 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
12947
12948 * syntax.c (describe_syntax): Recognize the `n'estable bit.
12949 (Fforward_comment, scan_lists):
12950 Check the comstyle of single-char comment-starters.
12951 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
12952 we're just at the beginning of the comment (f.ex with (*) ... (*)).
12953 Check the comstyle of single-char comment-starters.
12954 Clarify control-flow around the Scomment case.
12955
12956 2000-06-20 Dave Love <fx@gnu.org>
12957
12958 * fns.c (make_hash_table, maybe_resize_hash_table):
12959 Cast arg of next_almost_prime.
12960
12961 * tparam.c [emacs]: Include lisp.h.
12962
12963 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
12964 and unistd.h.
12965
12966 2000-06-20 Gerd Moellmann <gerd@gnu.org>
12967
12968 * keyboard.c (adjust_point_for_property): Check if display
12969 property should be treated as intangible by looking at its value.
12970
12971 * xdisp.c (single_display_prop_intangible_p)
12972 (display_prop_intangible_p): New functions.
12973
12974 * dispextern.h (display_prop_intangible_p): Add prototype.
12975
12976 * xdisp.c (dump_glyph_row): Show type of glyph->object.
12977
12978 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
12979 argument to sigprocmask.
12980
12981 * s/sco5.h (sigblock): Redefined to pass a pointer as second
12982 argument to sigprocmask.
12983
12984 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
12985 sigprocmask_set, and pass a pointer to it to sigprocmask.
12986
12987 * sysdep.c (sigprocmask_set): New variable.
12988
12989 * fileio.c (make_temp_name): Don't use `%s' in string passed to
12990 report_file_error.
12991
12992 2000-06-20 Sam Steingold <sds@gnu.org>
12993
12994 * xrdb.c: Don't declare xmalloc, xrealloc.
12995
12996 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
12997
12998 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
12999 (re_comp): Cast gettext return value to avoid complaints when
13000 !HAVE_LIBINTL.
13001
13002 2000-06-20 Dave Love <fx@gnu.org>
13003
13004 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
13005
13006 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
13007
13008 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
13009
13010 * m/alpha.h: Don't declare xmalloc, xrealloc.
13011
13012 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
13013
13014 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
13015
13016 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
13017
13018 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
13019 HAVE_GETWD.
13020
13021 * keyboard.h (poll_for_input_1): Declare.
13022
13023 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
13024
13025 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
13026
13027 * doprnt.c: Don't declare xmalloc, xrealloc.
13028
13029 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
13030 (getenv, ctime, getwd): Removed.
13031 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
13032
13033 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
13034 x_set_tool_bar_lines.
13035
13036 * config.in: Add HAVE_GETWD. Move some definitions above
13037 machine/system includes.
13038
13039 2000-06-20 Kenichi Handa <handa@etl.go.jp>
13040
13041 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
13042
13043 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
13044 contain information about ENCODING.
13045
13046 * fontset.c (FONTSET_ASCII): Use the first element of char table
13047 for an ASCII font, not defalt slot.
13048 (fontset_ref_via_base): If FONTSET doesn't contain information for
13049 C, try the default fontset.
13050 (make_fontset): Don't copy the default fontset.
13051 (fontset_font_pattern): Likewise.
13052 (accumulate_font_info): If ELT is nil, use the corresponding
13053 element in the default fontset.
13054
13055 2000-06-19 Dave Love <fx@gnu.org>
13056
13057 * syntax.c (Fparse_partial_sexp): Doc fix.
13058
13059 * regex.h: Test PROTOTYPES as well as __STDC__.
13060
13061 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
13062 errno, strerror. Put text after #endif in comment.
13063
13064 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
13065
13066 * xterm.c (x_frame_of_widget): Likewise.
13067
13068 2000-06-19 Gerd Moellmann <gerd@gnu.org>
13069
13070 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
13071 to Vfundamental_mode_abbrev_table.
13072
13073 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
13074 bogus objects are marked. This slows down GC by ~80 percent, but
13075 it might be worth trying when debugging GC-related problems.
13076 This feature requires conservative stack marking to be enabled.
13077
13078 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
13079 returns XLookupChars, reset `modifiers' to zero.
13080
13081 2000-06-19 Dave Love <fx@gnu.org>
13082
13083 * mktime.c: Unprotoized.
13084
13085 2000-06-19 Richard Stallman <rms@gnu.org>
13086
13087 * data.c (set_internal): If variable is frame-local,
13088 store the new value immediately into the frame parameter alist.
13089
13090 2000-06-19 Ken Raeburn <raeburn@gnu.org>
13091
13092 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
13093 in the custom handler pointer.
13094
13095 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
13096 value, or checks for CHAR_META can fail when Lisp_Object is a
13097 union type.
13098 * keymap.c (get_keyelt): Likewise.
13099
13100 2000-06-19 Kenichi Handa <handa@etl.go.jp>
13101
13102 * ccl.h (struct ccl_program): New member eol_type.
13103 (struct ccl_spec): New member cr_carryover.
13104
13105 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
13106 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
13107
13108 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
13109 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
13110 (decode_eol_post_ccl): New function.
13111 (decode_coding): Don't detect EOL format here for CCL based coding
13112 systems.
13113 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
13114 decode_eol_post_ccl after running the CCL program.
13115 (code_convert_region): Don't detect EOL format here for CCL based
13116 coding systems.
13117 (decode_coding_string): Likewise.
13118
13119 2000-06-18 Ken Raeburn <raeburn@gnu.org>
13120
13121 * charset.c (update_charset_table): Use XINT on "iso_final_char"
13122 when treating it as an integer.
13123
13124 * coding.h (encode_coding_string): Declare.
13125
13126 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
13127 it as an integer.
13128
13129 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
13130 "xkeymap" to avoid shadowing the "enum map_type" value that needs
13131 to be passed to get_local_map.
13132
13133 * sound.c (Fplay_sound): Don't call make_number on
13134 Frun_hook_with_args count argument.
13135
13136 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
13137 for lisp objects in X event structure data field, when lisp
13138 objects are represented with unions.
13139 (x_scroll_bar_to_input_event): Ditto.
13140
13141 2000-06-16 Ken Raeburn <raeburn@gnu.org>
13142
13143 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
13144 termination of string. Fix sense of test whether
13145 Vline_number_display_limit is an integer.
13146
13147 2000-06-16 Gerd Moellmann <gerd@gnu.org>
13148
13149 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
13150 only if HAVE_X_WINDOWS.
13151
13152 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
13153 of titles.
13154
13155 * dispnew.c (update_frame_1): Handle case that cursor vpos is
13156 out of bounds.
13157
13158 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
13159
13160 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
13161 of its headers.
13162
13163 2000-06-15 Kenichi Handa <handa@etl.go.jp>
13164
13165 * coding.c (decode_coding_emacs_mule): Always set src_base at the
13166 start of the while loop.
13167
13168 2000-06-15 Gerd Moellmann <gerd@gnu.org>
13169
13170 * atimer.c (alarm_signal_handler): Add forward declaration.
13171
13172 * data.c (set_internal): Remove debug code.
13173
13174 2000-06-14 Gerd Moellmann <gerd@gnu.org>
13175
13176 * Makefile.in (bootstrap-temacs): Add `-I../src'.
13177
13178 * unexec.c (toplevel) [COFF]: Include coff.h.
13179
13180 * s/lynxos.h: New file.
13181
13182 * keymap.c (Fsingle_key_description): Enclose function key and
13183 event symbol names in angle brackets.
13184
13185 * xdisp.c (setup_echo_area_for_printing): Call
13186 message_log_maybe_newline if message_buf_print is not set.
13187
13188 * print.c (printchar, strout): Don't check message_buf_print
13189 before calling setup_echo_area_for_printing because that
13190 function does something useful even when message_buf_print is
13191 already set.
13192
13193 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
13194 New variables.
13195 (ensure_echo_area_buffers): Initialize echo buffer's
13196 truncate lines setting to nil.
13197 (with_echo_area_buffer): Don't set the echo buffer's truncate
13198 lines setting here.
13199 (set_message_1): Set it here instead, based on the value
13200 of message_truncate_lines.
13201 (resize_mini_window): Handle case that lines are truncated.
13202 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
13203 DEFVAR_BOOL message-truncate-lines.
13204
13205 * keyboard.c (read_char): Bind message-truncate-lines to t
13206 while displaying a help-echo.
13207
13208 * lisp.h (Qmessage_truncate_lines): External declaration.
13209
13210 2000-06-13 Gerd Moellmann <gerd@gnu.org>
13211
13212 * xdisp.c (Vline_number_display_limit): Renamed from
13213 line_number_display_limit.
13214 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
13215 Extend documentation string. Initialize
13216 Vline_number_display_limit to nil meaning no limit.
13217 (decode_mode_spec): Use Vline_number_display_limit with its new
13218 meaning.
13219
13220 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
13221
13222 2000-06-13 Richard Stallman <rms@gnu.org>
13223
13224 * frame.c (Fmodify_frame_parameters): Doc fix.
13225
13226 * xfns.c (x_set_frame_parameters): Comment fix.
13227
13228 * frame.c (store_frame_param): Call swap_in_global_binding if the
13229 variable's current binding was chosen based on this frame.
13230
13231 * data.c (swap_in_global_binding): New function.
13232
13233 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
13234
13235 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
13236 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
13237
13238 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
13239
13240 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
13241
13242 2000-06-12 Jason Rumney <jasonr@gnu.org>
13243
13244 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
13245
13246 * w32.h (EMACS_W32_H): Renamed from _NT_H_
13247
13248 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
13249
13250 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
13251
13252 2000-06-12 Gerd Moellmann <gerd@gnu.org>
13253
13254 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
13255 (syms_of_xfaces): Defsubr Sdump_colors.
13256 (x_free_colors): Don't treat b&w specially on default visual.
13257 (x_free_dpy_colors): New function.
13258 (free_face_colors): Don't check visual class; it's done
13259 in x_free_colors.
13260
13261 * xterm.c (x_frame_of_widget): New function.
13262 (x_alloc_nearest_color_for_widget): Use it.
13263 (x_copy_dpy_color): New function.
13264 (x_destroy_window): Free various colors.
13265
13266 2000-06-12 Kenichi Handa <handa@etl.go.jp>
13267
13268 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
13269
13270 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
13271
13272 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
13273
13274 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
13275
13276 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
13277
13278 2000-06-11 Dave Love <fx@gnu.org>
13279
13280 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
13281
13282 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
13283
13284 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
13285
13286 2000-06-11 Gerd Moellmann <gerd@gnu.org>
13287
13288 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
13289 to `XEvent *'.
13290
13291 2000-06-10 Kenichi Handa <handa@etl.go.jp>
13292
13293 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
13294 (regex_compile): Fix the code for handling the case of single byte
13295 char and multibyte char being mixed in a range within [...].
13296
13297 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
13298 and dst_multibyte members of coding.
13299
13300 * charset.c (update_charset_table): Update the table
13301 bytes_by_char_head.
13302 (init_charset_once): Initialize elements of bytes_by_char_head to
13303 1 except for leading codes for private charases.
13304
13305 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
13306 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
13307
13308 2000-06-09 Ken Raeburn <raeburn@gnu.org>
13309
13310 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
13311 access the data it doesn't point to.
13312
13313 2000-06-08 Gerd Moellmann <gerd@gnu.org>
13314
13315 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
13316 will be translated to a switch-frame event when reading the
13317 event queue. This is necessary because Emacs otherwise won't
13318 perform a switch-frame to a new frame until some other event, for
13319 example a keystroke event, forces it to do so. This has various
13320 effects, one visible being that the cursor of a frame created with
13321 C-x 5 2 or switched to with a window manager key binding like
13322 A-TAB stays hollow because selected_window isn't on the newly
13323 focused frame until the switch-frame is performed.
13324
13325 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
13326 generating a switch-frame event if necessary.
13327
13328 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
13329
13330 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
13331 it's an integer.
13332
13333 2000-06-08 Kenichi Handa <handa@etl.go.jp>
13334
13335 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
13336
13337 2000-06-07 Gerd Moellmann <gerd@gnu.org>
13338
13339 * window.c (displayed_window_lines): Take empty lines at
13340 the bottom of a window into account.
13341
13342 * window.c (displayed_window_lines): New function.
13343 (Fmove_to_window_line): Use displayed_window_lines to determine
13344 the number of lines to move, instead of using the window's height.
13345
13346 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
13347 to stop reading, even if the form read sets point to a different
13348 value when evaluated.
13349
13350 * xdisp.c (display_line): Fix code deciding in which line to
13351 put the cursor.
13352
13353 2000-06-07 Kenichi Handa <handa@etl.go.jp>
13354
13355 * fileio.c (e_write): Free composition data if stored in
13356 coding->cmp_data.
13357
13358 2000-06-06 Gerd Moellmann <gerd@gnu.org>
13359
13360 * xdisp.c (display_line): Set row's and iterator's
13361 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
13362 Set cursor even if row ends in the middle of a character.
13363 (dump_glyph_row): Print values of new flags.
13364 (redisplay_window) <cursor movement in unchanged window>: When
13365 point has been moved forward, and PT is at the end of the cursor
13366 row, don't place the cursor in the next row if the cursor row ends
13367 in the middle of a character or at ZV.
13368
13369 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
13370 (struct glyph_row): Add starts_in_middle_of_char_p and
13371 ends_in_middle_of_char_p.
13372 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
13373 ends_in_middle_of_char_p flag.
13374 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
13375
13376 * term.c (append_glyph): Revert change of 2000-06-06.
13377
13378 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
13379 padding glyph not fitting on line as whole character not
13380 fitting on line.
13381
13382 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
13383 this isn't true for images with `:ascent 100'.
13384
13385 2000-06-06 Kenichi Handa <handa@etl.go.jp>
13386
13387 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
13388 as modified if it is originally unmodified.
13389
13390 * term.c (encode_terminal_code): Change the way to check if
13391 terminal coding does any conversion.
13392 (append_glyph): Set glyph->pixel_width correctly.
13393
13394 * xdisp.c (display_line): While checking line continuation, pay
13395 attention to a padding glyph.
13396
13397 2000-06-05 Gerd Moellmann <gerd@gnu.org>
13398
13399 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
13400
13401 2000-06-05 Dave Love <fx@gnu.org>
13402
13403 * xdisp.c: Include fontset.h.
13404
13405 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
13406
13407 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
13408
13409 * dispnew.c: Conditionally include term.h.
13410
13411 * coding.h: Declare code_convert_string_norecord.
13412
13413 * frame.h (struct frame): Use volatile unconditionally.
13414
13415 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
13416
13417 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
13418
13419 * systime.h: Protect against multiple inclusion.
13420 (timezone) [USG5_4]: Define as time_t.
13421
13422 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
13423 (Foptimize_char_table, make_temp_name): Declare.
13424
13425 * Makefile.in (xdisp.o): Depend on fontset.h.
13426
13427 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
13428
13429 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
13430 (Foptimize_char_table, make_temp_name): Declare.
13431
13432 * s/irix4-0.h:
13433 * s/irix5-0.h:
13434 * s/netbsd.h: Don't define autoconfiscated MATHERR.
13435
13436 2000-06-02 Dave Love <fx@gnu.org>
13437
13438 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
13439
13440 2000-06-02 Gerd Moellmann <gerd@gnu.org>
13441
13442 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
13443 result face, set flags in that face indicating that colors may not
13444 be freed.
13445
13446 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
13447 glyph, use the ASCII NUL character to determine the face.
13448
13449 2000-06-02 Dave Love <fx@gnu.org>
13450
13451 * sysdep.c: Conditionally include stdlib.h, unistd.h.
13452 (VFORK_RETURN_TYPE): Remove.
13453
13454 * config.in: Add NO_MATHERR.
13455
13456 2000-06-01 Dave Love <fx@gnu.org>
13457
13458 * cmds.c (internal_self_insert): Don't check
13459 Vbefore_change_function, Vafter_change_function.
13460
13461 * insdel.c (signal_before_change, signal_after_change): Likewise.
13462
13463 * buffer.c (Vbefore_change_function, Vafter_change_function):
13464 Variables and their initializations deleted.
13465
13466 * callint.c (Fcall_interactively): Doc fix.
13467
13468 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
13469
13470 2000-05-31 Dave Love <fx@gnu.org>
13471
13472 * textprop.c: Revert last change -- duplicated.
13473
13474 2000-05-31 Gerd Moellmann <gerd@gnu.org>
13475
13476 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
13477 in #if 0.
13478
13479 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
13480
13481 2000-05-31 Jason Rumney <jasonr@gnu.org>
13482
13483 * search.c (Fre_search_forward, Fre_search_backward)
13484 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
13485
13486 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
13487
13488 2000-05-30 Jason Rumney <jasonr@gnu.org>
13489
13490 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
13491 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
13492
13493 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
13494
13495 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
13496 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
13497 expand a nil default_filename.
13498
13499 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
13500 pointer to glyph_to_pixel_coords, not a frame.
13501
13502 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
13503 coding.h to dependencies.
13504
13505 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
13506
13507 * w32console.c (glyph_to_pixel_coords): Change first parameter to
13508 window pointer to be consistent with w32term.c and xterm.c.
13509
13510 * w32fns.c: Format and doc changes to bring closer to xfns.c.
13511 (VIETNAMESE_CHARSET): Define if not defined in system headers.
13512 (Qline_spacing, Qcenter): New variables.
13513 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
13514 (x_set_line_spacing): New function.
13515 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
13516 (x_specified_cursor_type): New function.
13517 (x_set_cursor_type): Use it.
13518 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
13519 and icon strings.
13520 (validate_x_resource_name, x_get_resource_string): Measure lengths
13521 of external strings in bytes.
13522 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
13523 GetTextExtentPoint32 with NULL title.
13524 (Fx_create_frame): Initialize Qline_spacing.
13525 (w32_load_system_font): Initialize font->double_byte_p.
13526 (x_to_w32_charset): Use Vw32_charset_info_alist.
13527 (Image, busy cursor, tooltip functions): Merged changes from
13528 xfns.c. Not yet functional on Windows.
13529
13530 * w32gui.h (W32FontStruct): Add double_byte_p member.
13531
13532 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
13533 (emacs_button_translation): Use it.
13534 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
13535 in `mask' to be set.
13536
13537 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
13538 menu strings.
13539
13540 * w32term.c: Format and doc changes to bring closer to xterm.c.
13541 (w32_char_font_type): New enum.
13542 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
13543 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
13544 (w32_encode_char): New function.
13545 (x_encode_char): Removed.
13546 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
13547 x_encode_char and w32_font_is_double_byte.
13548 (x_produce_image_glyph): Use image_ascent.
13549 (x_produce_glyphs): Use new version of w32_per_char_metric and
13550 handle NULL return value. Allow extra line spacing.
13551 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
13552 (w32_get_glyph_overhangs): Remove unicode_p param. Use
13553 w32_font_type member of glyph instead.
13554 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
13555 (fast_find_position): Make sure not to consider rows not visible
13556 in the window.
13557 (w32_read_socket) [WM_MENUSELECT]: Cannot call
13558 w32_menu_display_help with input blocked, as it can abort.
13559 (x_display_and_set_cursor): Choose cursor depending
13560 on buffer-local value of cursor_type.
13561 (x_draw_bar_cursor): Add parameter WIDTH.
13562
13563 * w32term.h (CP_DEFAULT): Define.
13564 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
13565
13566 2000-05-30 Gerd Moellmann <gerd@gnu.org>
13567
13568 * search.c (Fre_search_forward, Fre_search_backward)
13569 (Fposix_search_backward, Fposix_search_forward): Doc fix.
13570
13571 2000-05-30 Kenichi Handa <handa@etl.go.jp>
13572
13573 * coding.c (detect_coding_iso2022): Fix code for checking
13574 CODING_CATEGORY_MASK_ISO_8_2.
13575
13576 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
13577
13578 * regex.c (PREFETCH_NOLIMIT): New function.
13579 (re_match_2_internal): Use it and adjust the end_match_2 logic.
13580
13581 2000-05-29 Gerd Moellmann <gerd@gnu.org>
13582
13583 * syntax.c (find_defun_start): Move test for
13584 open_paren_in_column_0_is_defun_start outside of the loop.
13585
13586 * xdisp.c (redisplay_window): Really switch buffers when
13587 displaying mode lines, and temporarily set selected_frame to the
13588 frame of the window that's redisplayed.
13589
13590 * xfaces.c (free_realized_faces): Block/unblock input.
13591 (free_realized_multibyte_face): Ditto.
13592
13593 2000-05-29 Dave Love <fx@gnu.org>
13594
13595 * textprop.c (Qkeymap): New variable.
13596 (syms_of_textprop): Intern it.
13597
13598 * keymap.c: Include intervals.h.
13599 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
13600
13601 * Makefile.in (keymap.o): Depend on intervals.h.
13602
13603 * keyboard.c (menu_bar_items, tool_bar_items)
13604 (Fexecute_extended_command): Deal with `keymap' property.
13605 (read_key_sequence): Track map from `keymap' property as well as
13606 `local_map'.
13607
13608 * intervals.c (get_local_map): Extra arg to allow looking for
13609 `keymap' too.
13610
13611 * intervals.h (map_property): New enum.
13612 (get_local_map): Extra arg using it.
13613 (Qkeymap): Declare.
13614
13615 * lisp.h (get_local_map): Don't declare here.
13616
13617 2000-05-29 Kenichi Handa <handa@etl.go.jp>
13618
13619 * Makefile.in (callproc.o): Depend on composite.h.
13620
13621 * callproc.c: Include composite.h.
13622 (Fcall_process): Handle composition correctly.
13623
13624 * coding.h (coding_allocate_composition_data): Extern it.
13625 (coding_restore_composition): Likewise.
13626
13627 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
13628 yet allocated, finish decoding with result
13629 CODING_FINISH_INSUFFICIENT_CMP.
13630 (coding_allocate_composition_data): Make it non-static.
13631 (coding_restore_composition): Likewise.
13632
13633 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
13634
13635 * charset.c (syms_of_charset): Revert last change.
13636
13637 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
13638
13639 * term.c (produce_glyphs): Treat characters from the eight-bit-*
13640 charsets as unibyte, with 1-column screen width. Sent by Kenichi
13641 Handa.
13642
13643 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
13644
13645 * charset.c (syms_of_charset): Set width of character sets
13646 eight-bit-control and eight-bit-graphic to 1 column.
13647
13648 2000-05-26 Gerd Moellmann <gerd@gnu.org>
13649
13650 * config.in (HAVE_SPEED_T): New define.
13651
13652 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
13653 `extern speed_t'.
13654
13655 2000-05-26 Dave Love <fx@gnu.org>
13656
13657 * coding.c (shrink_decoding_region): Initialize eol_conversion.
13658
13659 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
13660 (Fsubr_arity): New function.
13661 (syms_of_data): Install them.
13662
13663 2000-05-26 Kenichi Handa <handa@etl.go.jp>
13664
13665 * charset.c (init_charset_once): Set the table bytes_by_char_head
13666 correctly.
13667
13668 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
13669 the default fontset to what Emacs uses by default.
13670 (check_registry_encoding): This function deleted.
13671 (Fset_fontset_font): Remove the adhoc condition for the default
13672 fontset. Allow cons in FONTNAME.
13673
13674 * fns.c (map_char_table): Ignore char-table entries for
13675 charsets eight-bit-control and eight-bit-graphic.
13676
13677 2000-05-25 Ken Raeburn <raeburn@gnu.org>
13678
13679 * emacs.c (main): Initialize keyboard syms before initializing
13680 window code, so face names are available.
13681
13682 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
13683
13684 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
13685 of an anchor at the beginning of a shy-group.
13686
13687 2000-05-25 Gerd Moellmann <gerd@gnu.org>
13688
13689 * xdisp.c (handle_invisible_prop): Don't try to skip over
13690 invisible text if end of text is already reached.
13691
13692 2000-05-25 Dave Love <fx@gnu.org>
13693
13694 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
13695
13696 * coding.c (encode_eol): Add null statement after label.
13697
13698 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
13699
13700 * w16select.c (Fw16_set_clipboard_data): Fix the change from
13701 2000-05-20.
13702
13703 2000-05-25 Kenichi Handa <handa@etl.go.jp>
13704
13705 * ccl.c (ccl_driver): Fix previous change.
13706
13707 2000-05-25 Kenichi Handa <handa@etl.go.jp>
13708
13709 * coding.c (run_pre_post_conversion_on_str): Set point to the
13710 beginning of buffer before calling coding->post_read_conversion.
13711 (decode_coding_string): Give correct args to
13712 run_pre_post_conversion_on_str.
13713 (encode_coding_string): Likewise.
13714
13715 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
13716 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
13717 eight-bit-graphic correctly.
13718
13719 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
13720
13721 * fileio.c (Finsert_file_contents): Even if a file is not found,
13722 execute codes for setting up coding system. Call
13723 after-insert-file-functions unconditionally.
13724
13725 2000-05-24 Gerd Moellmann <gerd@gnu.org>
13726
13727 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
13728 BSD_PGRPS are not defined.
13729
13730 2000-05-24 Kenichi Handa <handa@etl.go.jp>
13731
13732 * charset.c (update_charset_table): Accept nil in LONG_NAME and
13733 DESCRIPTION.
13734 (syms_of_charset): Avoid building same strings.
13735
13736 2000-05-23 Gerd Moellmann <gerd@gnu.org>
13737
13738 * lread.c (Fload): Add a comment about the meaning of
13739 Vuser_init_file being t.
13740
13741 * puresize.h (BASE_PURESIZE): Increase to 675000.
13742
13743 * s/gnu-linux.h (setpgrp): Don't define it here because this
13744 prevents compilation on GNU/Linux systems with glib 2.2.
13745
13746 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
13747 as setpgid.
13748
13749 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
13750
13751 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
13752 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
13753 version.
13754 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
13755
13756 2000-05-23 Kenichi Handa <handa@etl.go.jp>
13757
13758 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13759
13760 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
13761
13762 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
13763
13764 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
13765
13766 2000-05-22 Kenichi Handa <handa@etl.go.jp>
13767
13768 * keyboard.c (read_char): Allow character codes 128..255 to be
13769 handled by input-method-function.
13770
13771 * insdel.c (adjust_markers_for_replace): Fix previous change.
13772 (adjust_after_replace): If PREV_TEXT is nil, call
13773 adjust_markers_for_insert, not adjust_markers_for_replace.
13774
13775 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
13776
13777 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
13778 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
13779 [HAVE_GRANDPT]: Define.
13780 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
13781
13782 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
13783 like SYSV_PTYS.
13784
13785 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
13786
13787 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
13788
13789 2000-05-20 Kenichi Handa <handa@etl.go.jp>
13790
13791 The following changes are to handle 8-bit characters in a
13792 multibyte buffer/string without facing with byte combining
13793 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
13794 eight-bit-graphic (for 0xA0..0xFF) are introduced.
13795
13796 * Makefile.in (fns.o): Depend on charset.h.
13797
13798 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
13799 convert it to unibyte.
13800 (make_string): Use parse_str_as_multibyte, not chars_in_text.
13801
13802 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
13803 apparent char boundary.
13804 (Fset_buffer_multibyte): Convert 8-bit characters in the range
13805 0x80..0x9F to/from multibyte form.
13806
13807 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
13808 to unibyte.
13809
13810 * callproc.c (Fcall_process): Always encode an argument string if
13811 it is multibyte. Setup src_multibyte and dst_multibyte members of
13812 process_coding properly.
13813
13814 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
13815 SPLIT_NON_ASCII_CHAR.
13816
13817 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
13818 as is.
13819 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
13820
13821 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
13822 (SPLIT_CHARACTER_SEQ): This macro deleted.
13823 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
13824 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
13825 and eight-bit-graphic.
13826 (char_to_string): Likewise. Signal an error for too large
13827 character code.
13828 (char_printable_p): Return 0 for 8-bit characters.
13829 (update_charset_table): Update iso_charset_table only when a final
13830 character is non-negative.
13831 (find_charset_in_text): Renamed from find_charset_in_str.
13832 Arguments and return value changed. Callers changed.
13833 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
13834 be -1 if CHARSET is used only internally.
13835 (Fmake_char_internal): Handle new charsets; eight-bit-control and
13836 eight-bit-graphic.
13837 (Fcharset_after): Simplified.
13838 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
13839 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
13840 (multibyte_chars_in_text): Simplified by assuming there's no
13841 invalid multibyte sequence.
13842 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13843 (str_as_unibyte): New functions.
13844 (Fstring): Simpified by assuming that byte combining never happens.
13845 (init_charset_once): Initialization for
13846 LEADING_CODE_8_BIT_CONTROL.
13847 (syms_of_charset): Intern and staticpro Qeight_bit_control and
13848 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
13849 eight-bit-control and eight-bit-graphic.
13850
13851 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
13852 (CHARSET_8_BIT_GRAPHIC): New macros.
13853 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
13854 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
13855 (CHARSET_REVERSE_CHARSET): Likewise.
13856 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
13857 eight-bit-graphic.
13858 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
13859 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
13860 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
13861 encounter an invalid multibyte sequence.
13862 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
13863 sequence is always valid.
13864 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
13865 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
13866 (CHAR_STRING): For 8-bit characters, call char_to_string.
13867 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
13868 multibyte sequence is always valid.
13869 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
13870 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13871 (str_as_unibyte): Extern them.
13872 (BCOPY_SHORT): Fix a bug.
13873 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
13874 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
13875 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
13876 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
13877
13878 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
13879 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
13880 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
13881 (EMIT_BYTES): New macros.
13882 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
13883 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
13884 macros deleted.
13885 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
13886 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
13887 check the validity of multibyte sequence.
13888 (decode_coding_emacs_mule): New function.
13889 (encode_coding_emacs_mule): New macro.
13890 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
13891 the source.
13892 (DECODE_ISO_CHARACTER): Just return a character code.
13893 (DECODE_COMPOSITION_START): Set coding->result instead of result.
13894 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
13895 EMIT_CHAR to produced decoded characters. Exit the loop only by
13896 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
13897 block here.
13898 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
13899 only position codes for an invalid character.
13900 (encode_designation_at_bol): Return new destination pointer. 5th
13901 arg DSTP is changed to DST.
13902 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
13903 from the source by ONE_MORE_CHAR. Don't handle the case of last
13904 block here.
13905 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
13906 macros deleted.
13907 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
13908 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
13909 TWO_MORE_BYTES to fetch a byte from the source.
13910 (encode_eol): Pay attention to coding->src_multibyte.
13911 (detect_coding, detect_eol): Preserve members src_multibyte and
13912 dst_multibyte.
13913 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
13914 (encoding_buffer_size): Set magnification to 3 for all coding
13915 systems that require encoding.
13916 (ccl_coding_driver): For decoding, be sure that the result is
13917 valid multibyte sequence.
13918 (decode_coding): Initialize coding->errors and coding->result.
13919 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
13920 and raw-text, always call decode_eol. Handle the case of last
13921 block here. If not coding->dst_multibyte, convert the resulting
13922 sequence to unibyte.
13923 (encode_coding): Initialize coding->errors and coding->result.
13924 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
13925 and raw-text, always call encode_eol. Handle the case of last
13926 block here.
13927 (shrink_decoding_region, shrink_encoding_region): Detect cases
13928 that we can't skip data more rigidly.
13929 (code_convert_region): Setup src_multibyte and dst_multibyte
13930 members of coding. For decoding, if the buffer is multibyte,
13931 convert the source sequence to unibyte in advance. For encoding,
13932 if the buffer is multibyte, convert the resulting sequence to
13933 multibyte afterward.
13934 (run_pre_post_conversion_on_str): New function.
13935 (code_convert_string): Deleted and divided into the following two.
13936 (decode_coding_string, encode_coding_string): New functions.
13937 (code_convert_string1, code_convert_string_norecord): Call one of
13938 above.
13939 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
13940 MAKE_NON_ASCII_CHAR.
13941 (Fset_terminal_coding_system_internal)
13942 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
13943 and dst_multibyte members.
13944 (init_coding_once): Initialize iso_code_class with new enum
13945 ISO_control_0 and ISO_control_1.
13946
13947 * coding.h (enum iso_code_class_type): Member ISO_control_code is
13948 devided into ISO_control_0 and ISO_control_1.
13949 (struct coding_system): New members src_multibyte, dst_multibyte,
13950 errors, and result. Delete member fake_multibyte.
13951 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
13952 nonzero.
13953 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
13954 nonzero.
13955
13956 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13957 (Faset): Likewise.
13958
13959 * editfns.c (Fformat): Be sure to convert 8-bit characters to
13960 multibyte form.
13961 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
13962 combining occurs.
13963 (Ftranspose_region): Delete codes for handling byte combining.
13964
13965 * fileio.c (Finsert_file_contents): Setup src_multibyte and
13966 dst_multibyte members of coding. On handling REPLACE on unibyte
13967 buffer, convert the result of decode_coding to unibyte. On
13968 inserting into a mutibyte buffer, always call code_convert_region.
13969 (e_write): Setup coding->src_multibyte according to the
13970 multibyteness of the source (buffer or string).
13971
13972 * fns.c (concat): Handle 8-bit characters correctly.
13973 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
13974 unibyte in the result.
13975 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
13976 valid multibyte form in the result.
13977 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13978 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
13979 return -1, signal an error.
13980 (base64_encode_1): New arg MULTIBYTE. Get each character by
13981 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
13982 character is found, return -1.
13983 (Fbase64_decode_region): Delete codes for handling byte-combining.
13984 Treat each decoded byte as a unibyte character.
13985 (Fbase64_decode_string): Return unibyte string.
13986 (Fcompare_strings, concat, string_byte_to_char): Use
13987 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
13988 FETCH_STRING_CHAR_ADVANCE.
13989 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13990 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
13991
13992 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
13993 SPLIT_NON_ASCII_CHAR.
13994 (fontset_ref_via_base, fontset_set): Likewise
13995
13996 * insdel.c (adjust_markers_for_record_delete): Deleted.
13997 (adjust_markers_for_insert): Argument changed. Caller changed.
13998 (adjust_markers_for_replace): Likewise.
13999 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
14000 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
14001 (copy_text): Delete unused local varialbe c_save. For converting
14002 to multibyte, be sure to make all 8-bit characters in valid
14003 multibyte form.
14004 (count_size_as_multibyte): Handle 8-bit characters correctly.
14005 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
14006 (adjust_after_replace, replace_range, del_range_2)
14007 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
14008 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
14009 (adjust_after_replace, replace_range, del_range_2) Delete codes for
14010 handling byte combining.
14011 (adjust_before_replace): Deleted.
14012
14013 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
14014 SPLIT_NON_ASCII_CHAR.
14015 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
14016 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
14017 (Fkey_description): Likewise.
14018
14019 * lread.c (read1): On reading multibyte string, be sure to make
14020 all 8-bit chararacters in valid multibyte form.
14021 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
14022
14023 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
14024 unconditionally.
14025
14026 * process.c (Fstart_process): GCPRO current_dir before calling
14027 Ffind_operation_coding_system. Encode arguments here.
14028 (create_process): Don't encode arguments here. Setup
14029 src_multibyte and dst_multibyte members of struct coding.
14030 (read_process_output): Setup src_multibyte and dst_multibyte
14031 members of struct coding. If the output is to multibyte buffer,
14032 always decode the output of the process. Adjust the
14033 representation of 8-bit characters to the multibyteness of the output.
14034 (send_process): Setup coding->src_multibyte according to the
14035 multibyteness of the source.
14036
14037 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
14038 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
14039 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
14040
14041 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
14042
14043 * w16select.c (Fw16_set_clipboard_data): Setup members
14044 src_multibyte and dst_multibyte of coding. Adjusted for the
14045 change for find_charset_in_str.
14046 (Fw16_get_clipboard_data): Likewise.
14047
14048 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
14049 dst_multibyte of coding.
14050 (x_to_w32_font): Likewise.
14051
14052 * w32select.c (Fw32_set_clipboard_data): Setup members
14053 src_multibyte and dst_multibyte of coding. Adjusted for the
14054 change for find_charset_in_str.
14055 (Fw32_get_clipboard_data): Likewise.
14056
14057 * xdisp.c (get_next_display_element): Handle 8-bit characters
14058 correctly.
14059 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
14060 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
14061
14062 * xselect.c (selection_data_to_lisp_data): Setup members
14063 src_multibyte and dst_multibyte of coding. Adjusted for the
14064 change for find_charset_in_str.
14065 (lisp_data_to_selection_data): Likewise.
14066
14067 2000-05-19 Gerd Moellmann <gerd@gnu.org>
14068
14069 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
14070
14071 * dispextern.h (Vimage_types): Add extern declaration.
14072
14073 * xdisp.c (Vimage_types): Moved here from xfns.c.
14074 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
14075
14076 * xfns.c (Vimages_types): Moved to xdisp.c.
14077 (syms_of_xfns): Move `image-types' to xdisp.c.
14078
14079 * w32fns.c (Vimage_types): Removed.
14080 (syms_of_w32fns): Remove `image-types'.
14081
14082 2000-05-18 Kenichi Handa <handa@etl.go.jp>
14083
14084 * fns.c (map_char_table): Pay attention to character number of
14085 charset. Check the validity of charset at the first level. For
14086 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
14087 the default value.
14088
14089 * fontset.c: Include "buffer.h".
14090 (fs_load_font): If the face has fontset, record the face ID in
14091 that fontset.
14092 (Finternal_char_font): New function.
14093 (accumulate_font_info): New function.
14094 (Ffontset_info): Rewritten for the new fontset implementation.
14095 (syms_of_fontset): Register Vdefault_fontset in the first element
14096 of Vfontset_table. Include Vdefault_fontset in
14097 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
14098 function.
14099
14100 2000-05-16 Dave Love <fx@gnu.org>
14101
14102 * m/iris5d.h: Deleted -- unused.
14103
14104 2000-05-16 Gerd Moellmann <gerd@gnu.org>
14105
14106 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
14107 `invalid' instead of `illegal'.
14108
14109 * indent.c (Fmove_to_column): When ending within a tab, insert
14110 spaces first so that markers at the end of the tab get adjusted.
14111
14112 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
14113 buffer list that wasn't selected in that frame.
14114
14115 * filelock.c (get_boot_time): To obtain an 8 char file name, which
14116 is needed on mescaline, use a 2 char prefix, and call
14117 make_temp_name with second arg non-zero.
14118
14119 * fileio.c (make_temp_name): New function, extracted from
14120 Fmake_temp_name.
14121 (Fmake_temp_name): Use it.
14122
14123 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
14124
14125 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
14126
14127 2000-05-15 Gerd Moellmann <gerd@gnu.org>
14128
14129 * Makefile.in (lisp): Add env.elc.
14130
14131 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
14132
14133 2000-05-12 Gerd Moellmann <gerd@gnu.org>
14134
14135 * search.c (Freplace_match): Handle case of `\N' in the
14136 replacement when there's no group N.
14137
14138 2000-05-11 Gerd Moellmann <gerd@gnu.org>
14139
14140 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
14141 of the message to message_dolog.
14142
14143 * keyboard.c (read_char): Don't clear current message for help
14144 events; let the code handling help events handle this. Change
14145 code detecting help events that should be ignored.
14146
14147 * xdisp.c (handle_single_display_prop): Don't try to set PT if
14148 we're interating over a string.
14149
14150 2000-05-09 Dave Love <fx@gnu.org>
14151
14152 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
14153 that offset before writing. Move gcpro region past call of
14154 Ffile_regular_p.
14155
14156 2000-05-04 Dave Love <fx@gnu.org>
14157
14158 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
14159
14160 2000-05-04 Gerd Moellmann <gerd@gnu.org>
14161
14162 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
14163 of inserted characters when BUF equals the current buffer, and PT
14164 is in front of or equal to FROM.
14165
14166 2000-05-03 Gerd Moellmann <gerd@gnu.org>
14167
14168 * xdisp.c (handle_single_display_prop): If display property value
14169 is invalid, or something not supported on the frame, restore
14170 iterator's position to what it was initially. Make sure to return
14171 0 for invalid and unsupported property values.
14172
14173 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
14174 that x_per_char_metric returns null.
14175
14176 2000-05-02 Gerd Moellmann <gerd@gnu.org>
14177
14178 * xterm.h (struct face): Add forward declaration.
14179 (struct image): Ditto.
14180 (image_ascent): Add prototype.
14181
14182 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
14183 (x_draw_image_relief, x_draw_image_foreground_1): Call function
14184 image_ascent instead of using IMAGE_ASCENT.
14185
14186 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
14187 (IMAGE_ASCENT): Removed.
14188
14189 * xfns.c (Qcenter): New variable.
14190 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
14191 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
14192 (image_ascent): New function.
14193 (lookup_image): Recognize `:ascent center'.
14194 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
14195 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
14196 (xbm_load): Don't set image's ascent here.
14197 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
14198 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
14199 check ascent values here.
14200 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
14201 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
14202 (syms_of_xfns): Initialize Qcenter.
14203
14204 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
14205 to the limits, increase the limits.
14206
14207 2000-05-01 Kenichi Handa <handa@etl.go.jp>
14208
14209 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
14210 Check Vfont_encoding_alist against the full name of the opened font.
14211
14212 2000-04-28 Gerd Moellmann <gerd@gnu.org>
14213
14214 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
14215 taller than the window.
14216
14217 2000-04-28 Kenichi Handa <handa@etl.go.jp>
14218
14219 * xfaces.c (realize_x_face): Fix the argument of the second
14220 xassert. BASE_FACE may not be a face for ASCII.
14221
14222 2000-04-27 Gerd Moellmann <gerd@gnu.org>
14223
14224 * print.c (print_object): Treat print-length < 0 as nil.
14225
14226 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
14227
14228 * s/freebsd.h (TERMCAP_OBJ): Removed.
14229 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
14230
14231 * lread.c (read1): Don't treat period followed by certain
14232 characters as symbol start.
14233
14234 * xfns.c (slurp_file): New function.
14235 (xbm_image_p): Handle case of in-memory XBM files.
14236 (xbm_scan): Rewritten to work on memory buffers instead of files.
14237 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
14238 Work on memory buffers instead of files. If DATA is null test
14239 if buffer looks like an in-memory XBM file.
14240 (xbm_load_image): Renamed from xbm_load_image_file. Work on
14241 memory buffers instead of files.
14242 (xbm_file_p): New function.
14243 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
14244
14245 * lread.c (end_of_file_error): New function.
14246 (read1): Call it instead of signaling `end-of-file' directly.
14247
14248 * print.c (print_error_message): Print data of `end-of-file'
14249 with Fprinc instead of Fprin1.
14250
14251 2000-04-26 Ken Raeburn <raeburn@gnu.org>
14252
14253 * window.c (freeze_window_start): Check that minibuffer scroll
14254 window isn't nil before extracting the window structure pointer
14255 from it.
14256
14257 * undo.c (record_delete): If we hit the end of the undo list, stop
14258 picking elements apart.
14259
14260 2000-04-26 Gerd Moellmann <gerd@gnu.org>
14261
14262 * xdisp.c (display_line): If lines are continued, restore
14263 iterator's ascent/descent information to the values before the
14264 first glyph not fitting on the line.
14265
14266 2000-04-25 Gerd Moellmann <gerd@gnu.org>
14267
14268 * xdisp.c (try_window_id) <all changes above window start>: Adjust
14269 positions in glyph matrix. Don't compute new window end positions.
14270
14271 * dispnew.c (increment_matrix_positions): Renamed from
14272 increment_glyph_matrix_buffer_positions.
14273 (increment_row_positions): Renamed from
14274 increment_glyph_row_buffer_positions.
14275
14276 * dispextern.h: Change names of renamed functions from dispnew.c
14277 in prototypes.
14278
14279 2000-04-24 Gerd Moellmann <gerd@gnu.org>
14280
14281 * fileio.c (Fdo_auto_save): Create directories for auto-save
14282 list file if necessary.
14283
14284 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
14285 from buffer or frame.
14286 (automatic_hscrolling_p): New variable.
14287 (hscroll_windows): Scroll windows horizontally only if automatic
14288 hscrolling is allowed.
14289 (syms_of_xdisp): New variable `automatic-hscrolling'.
14290
14291 * frame.h (struct frame): Add member extra_line_spacing.
14292
14293 * xfns.c (x_set_line_spacing): New function.
14294 (Fx_create_frame): Set line spacing from resources.
14295 (Qline_spacing): New variable.
14296 (syms_of_xfns): Initialize Qline_spacing.
14297
14298 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
14299
14300 * buffer.c (init_buffer_once): Handle extra_line_spacing.
14301 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
14302 (reset_buffer): Don't initialize extra2 and extra3. Initialize
14303 extra_line_spacing from default value.
14304 (init_buffer_once): Initialize default value of extra_line_spacing.
14305
14306 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
14307 and extra3.
14308
14309 * xterm.c (x_produce_glyphs): Remove reference to struct it's
14310 prompt_width. Add extra line spacing.
14311
14312 * term.c (produce_glyphs): Remove reference to struct it's
14313 prompt_width.
14314
14315 * dispextern.h (struct it): Remove member prompt_width, add
14316 extra_line_spacing.
14317
14318 2000-04-22 Gerd Moellmann <gerd@gnu.org>
14319
14320 * dispnew.c (update_frame_line): When writing a whole line, make
14321 sure cursor is in the right row afterwards, otherwise a use of
14322 capability `ch' in cmgoto might leave the cursor in the row below.
14323
14324 2000-04-21 Gerd Moellmann <gerd@gnu.org>
14325
14326 * lisp.h (struct Lisp_Buffer_Cons): Remove.
14327
14328 * keyboard.c (timer_check): Fix typo in comment.
14329
14330 2000-04-21 Kenichi Handa <handa@etl.go.jp>
14331
14332 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
14333 name change: ch -> character.
14334
14335 2000-04-20 Gerd Moellmann <gerd@gnu.org>
14336
14337 * keyboard.c (echo_message_buffer): New variable.
14338 (echo_now): Set echo_message_buffer to the echo area buffer used
14339 to display the echo.
14340 (cancel_echoing): Reset echo_message_buffer to nil.
14341 (read_char): Code rewritten that handles canceling an echo or
14342 echoing a dash, respectively.
14343
14344 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
14345 directory doesn't exist.
14346
14347 2000-04-19 Dave Love <fx@gnu.org>
14348
14349 * fns.c (syms_of_fns): Defsubr mapc.
14350 (concat): Don't allow numeric args.
14351 (Fconcat): Doc change.
14352
14353 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
14354
14355 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
14356 instead define end_match(1|2) more carefully.
14357 Use GET_CHAR_BEFORE_2 for `begline'.
14358
14359 2000-04-19 Gerd Moellmann <gerd@gnu.org>
14360
14361 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
14362 on 64-bit systems where NULL is defined as `0'.
14363
14364 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
14365 the `variable argument list' to make it work on Alpha.
14366
14367 * m/alpha.h (_LP64) [!_LP64]: Define.
14368 (ORDINARY_LINK): Define for NetBSD.
14369
14370 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
14371
14372 2000-04-19 Dave Love <fx@gnu.org>
14373
14374 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
14375 change.
14376
14377 * Makefile.in (LIBS): Don't use.
14378 (GETLOADAVG_OBJ): Define again.
14379 (otherobj): Add GETLOADAVG_OBJ.
14380
14381 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
14382
14383 2000-04-18 Gerd Moellmann <gerd@gnu.org>
14384
14385 * lread.c (read_filtered_event): Cancel and start busy cursor.
14386
14387 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
14388 that the per-character metrics may be null.
14389
14390 2000-04-17 Gerd Moellmann <gerd@gnu.org>
14391
14392 * buffer.c (clone_per_buffer_values): New function.
14393 (Fmake_indirect_buffer): Add optional argument CLONE. Call
14394 clone_per_buffer_values if CLONE is not nil.
14395
14396 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
14397
14398 2000-04-16 Dave Love <fx@gnu.org>
14399
14400 * Makefile.in: Remove obsolete localcpp stuff.
14401 (GETLOADAVG_OBJ): Don't define.
14402 (obj): Move LIBOBJS...
14403 (otherobj): ... to here.
14404 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
14405 whitespace-only lines after the continuation (Irix).
14406
14407 2000-04-14 Gerd Moellmann <gerd@gnu.org>
14408
14409 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
14410
14411 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
14412
14413 2000-04-14 Dave Love <fx@gnu.org>
14414
14415 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
14416 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
14417 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
14418 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
14419 NLIST_STRUCT.
14420
14421 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
14422 autoconfiscated HAVE_GETLOADAVG.
14423
14424 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
14425 BROKEN_MKTIME.
14426
14427 2000-04-14 Gerd Moellmann <gerd@gnu.org>
14428
14429 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
14430 (fill_in_lock_file_name): Avoid existing files that aren't links.
14431
14432 2000-04-14 Dave Love <fx@gnu.org>
14433
14434 * Makefile.in (LIBS, LIBOBJS): New variable.
14435 (INTERVAL_SRC): Convert to make variable.
14436 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
14437 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
14438 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
14439 add LIBOBJS.
14440 (SOME_MACHINE_OBJECTS): Remove interval stuff.
14441 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
14442 (shortlisp): Add facemenu, float-sup, frame.
14443 (SOME_MACHINE_LISP): Remove them from here.
14444 (LIBES): Change unused LDLIBS to autoconf LIBS.
14445
14446 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
14447
14448 2000-04-14 Kenichi Handa <handa@etl.go.jp>
14449
14450 * composite.c (update_compositions): If FROM and TO are not in a
14451 valid range, do nothing.
14452
14453 2000-04-13 Gerd Moellmann <gerd@gnu.org>
14454
14455 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
14456
14457 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
14458
14459 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
14460 as TERMCAP_OBJ.
14461
14462 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
14463
14464 * fileio.c (a_write): Remove redundant semi-colons.
14465 (e_write): Return -1 if failed to write all the data.
14466 This fixes the changes made at 1999-12-15.
14467
14468 2000-04-12 Dave Love <fx@gnu.org>
14469
14470 * fns.c (mapcar1): Test for null vals to support mapc.
14471 (Fmapc): New function.
14472
14473 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
14474
14475 * msdos.c (NUM_MOUSE_BUTTONS): Define.
14476 (IT_frame_up_to_date): Support the buffer local value of
14477 cursor-type, if defined.
14478
14479 2000-04-10 Dave Love <fx@gnu.org>
14480
14481 * editfns.c (preceding-char, following-char): Doc fix.
14482
14483 2000-04-10 Ken Raeburn <raeburn@gnu.org>
14484
14485 * Makefile.in (temacs): Revert 2000-03-12 change.
14486
14487 2000-04-10 Jason Rumney <jasonr@gnu.org>
14488
14489 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
14490
14491 2000-04-10 Gerd Moellmann <gerd@gnu.org>
14492
14493 * xdisp.c (setup_echo_area_for_printing): Choose an echo
14494 area buffer, if it's not set up yet.
14495
14496 * indent.c (compute_motion): Set immediate_quit.
14497
14498 2000-04-09 Gerd Moellmann <gerd@gnu.org>
14499
14500 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
14501 (realize_tty_face): Suppress boldness if colors are the inverse of
14502 the default colors, and tty_suppress_bold_inverse_default_colors_p
14503 is set.
14504 (Ftty_suppress_bold_inverse_default_colors): New function.
14505 (syms_of_xfaces): Defsubr it.
14506
14507 * buffer.c (Frestore_buffer_modified_p): New function.
14508 (syms_of_buffer): Defsubr it.
14509
14510 2000-04-08 Ken Raeburn <raeburn@gnu.org>
14511
14512 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
14513 charset id (int) argument, not a charset (Lisp_Object).
14514
14515 * coding.h (code_convert_string): Declare.
14516 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
14517 object, as the fourth argument to code_convert_string.
14518
14519 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
14520 (Fset_fontset_font): Use EQ to compare lisp objects.
14521
14522 2000-04-05 Ken Raeburn <raeburn@gnu.org>
14523
14524 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
14525 a pointer that looks like a lisp object.
14526 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
14527 zero, instead see whether it's an integer object, since they can't
14528 have intervals.
14529 (GET_INTERVAL_OBJECT): Simply assign to the destination.
14530
14531 * dispnew.c (allocate_matrices_for_frame_redisplay)
14532 (direct_output_forward_char): Use X(U)INT and make_number as needed
14533 to convert between (unsigned) int values and lisp integers.
14534 * keyboard.c (read_key_sequence): Likewise.
14535 * lread.c (substitute_object_recurse): Likewise.
14536 * fns.c (concat, hash_lookup, hash_remove): Likewise.
14537 * minibuf.c (do_completion, Fminibuffer_complete_word)
14538 (Fminibuffer_completion_help): Likewise.
14539 * term.c (produce_special_glyphs): Likewise.
14540
14541 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
14542 * print.c (print_preprocess, print_object): Likewise.
14543
14544 * search.c (compile_pattern): Use NILP when checking for nil.
14545
14546 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
14547 __OPTIMIZE__]: Provide a GNU C macro version that handles
14548 lisp-object unions.
14549 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
14550 field, to better cope with ENABLE_CHECKING and calls that modify a
14551 Lisp_Object using its old value.
14552
14553 2000-04-04 Gerd Moellmann <gerd@gnu.org>
14554
14555 * window.c (compare_window_configurations): Signal an error
14556 if parameters C1 or C2 aren't window configurations.
14557
14558 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
14559 AFTER_POTENTIAL_GC calls around calls to functions that can
14560 signal an error and thus invoke the debugger.
14561
14562 2000-04-03 Gerd Moellmann <gerd@gnu.org>
14563
14564 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
14565 an error if decoding fails.
14566
14567 * keyboard.c (lispy_mouse_names): Variable removed.
14568 (Vlispy_mouse_stem): New variable.
14569 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
14570 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
14571 for any mouse button number. Increase size of mouse_syms and
14572 button_down_location as needed. Call modify_event_symbol with
14573 different arguments.
14574 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
14575 Call modify_event_symbol with different arguments.
14576 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
14577 for any button number. Call modify_event_symbol with different
14578 arguments.
14579 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
14580 Accept a string for NAME_ALIST_OR_STEM.
14581
14582 * lisp.h (larger_vector): Add prototype.
14583
14584 * fns.c (larger_vector): Make externally visible.
14585
14586 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
14587
14588 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
14589
14590 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
14591 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
14592 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
14593 we are between str1 and str2.
14594 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
14595 (PATFETCH): Use `TRANSLATE'.
14596 (PATFETCH_RAW): Fetch multibyte char if applicable.
14597 (PATUNFETCH): Remove.
14598 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
14599 When writing a char, write it directly into the pattern buffer rather
14600 than going needlessly through a temp char-array.
14601 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
14602 multibyte magic and remove the useless `#ifdef emacs'.
14603 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
14604 buffer.
14605
14606 * regex.h (struct re_pattern_buffer): Make field `multibyte'
14607 conditional on `emacs'.
14608
14609 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
14610
14611 2000-04-01 Ken Raeburn <raeburn@gnu.org>
14612
14613 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
14614 non-union-type versions of XMARK and friends here, because XMARK
14615 and friends won't work on an integer field if NO_UNION_TYPE is not
14616 defined.
14617 (make_number): Define as a function if it's not defined as a macro.
14618
14619 * composite.c (run_composite_function): Use NILP when checking for nil.
14620 (syms_of_composite): Delete local var NARGS, pass an int as first
14621 argument to Fmake_hash_table.
14622
14623 * editfns.c (text_property_stickiness): Use NILP to test
14624 Lisp_Object boolean value.
14625 (Fmessage_or_box): Don't use NILP to test int variable.
14626 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
14627 problems reading from and changing the same lisp value in an
14628 XSETSTRING call.
14629
14630 2000-04-01 Gerd Moellmann <gerd@gnu.org>
14631
14632 * term.c (TN_no_color_video): New variable.
14633 (term_init): Intitialize TN_no_color_video.
14634 (enum no_color_bit): New enumeration.
14635 (MAY_USE_WITH_COLORS_P): New macro.
14636 (turn_on_face): Use it to determine if attributes may be used
14637 combined with colors.
14638
14639 2000-04-01 Ken Raeburn <raeburn@gnu.org>
14640
14641 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
14642 with int lvalues via casts; instead, just yield lisp object lvalues.
14643 (enlarge_window): Variable sizep now points to Lisp_Object. Use
14644 proper accessor macros.
14645 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
14646 (grow_mini_window): Fix typo getting int value of root->height.
14647
14648 * xdisp.c (compute_string_pos): Fix order of arguments to
14649 string_pos_nchars_ahead.
14650 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
14651 count arg to variable-arg routines like Frun_hook_with_args and
14652 Fformat.
14653 (back_to_previous_visible_line_start)
14654 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
14655 fixed-arg routines like Fget_char_property and Fmake_string.
14656 (reconsider_clip_changes): Use XINT when comparing integer lisp
14657 objects, or passing them as int arguments.
14658 (mark_window_display_accurate, insert_left_trunc_glyphs)
14659 (append_space, extend_face_to_end_of_line): Use make_number when
14660 storing or passing integer values as lisp objects.
14661 (set_cursor_from_row, highlight_trailing_whitespace): Use
14662 INTEGERP, not implicit test against zero, for glyph object.
14663 (try_window_id): Don't use make_number when we want an int value.
14664
14665 * xfaces.c (xlfd_symbolic_value): Make last argument a
14666 Lisp_Object, to be consistent with callers.
14667 (Fbitmap_spec_p): Use XINT to get numeric value of height.
14668 (lface_hash): Apply XFASTINT to lisp values before folding in.
14669
14670 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
14671 fill in window width and height. Pass an int, not a lisp object,
14672 as first arg to Finsert.
14673
14674 2000-04-01 Gerd Moellmann <gerd@gnu.org>
14675
14676 * xfaces.c (realize_basic_faces): Block input while realizing
14677 the faces.
14678
14679 * keyboard.c (lispy_mouse_names): Add additional mouse names.
14680
14681 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
14682
14683 2000-03-31 Gerd Moellmann <gerd@gnu.org>
14684
14685 * xterm.c (x_produce_glyphs): When displaying unibyte text
14686 or ASCII, handle case that per-char metric is null.
14687
14688 2000-03-30 Ken Raeburn <raeburn@gnu.org>
14689
14690 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
14691
14692 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
14693 (XSUBR, XBUFFER): Verify correct object type before returning
14694 pointer, using eassert.
14695 * frame.h (XFRAME): Likewise.
14696
14697 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
14698 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
14699 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
14700 * data.c (set_internal): Likewise.
14701 * dispextern.h (WINDOW_WANTS_MODELINE_P)
14702 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
14703 * fileio.c (auto_save_1): Likewise.
14704 * insdel.c (check_markers): Likewise.
14705 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
14706 * undo.c (record_insert): Likewise.
14707 * vmsproc.c (child_sig): Likewise.
14708 * window.c (unshow_buffer, window_loop): Likewise.
14709 * xterm.c (x_erase_phys_cursor): Likewise.
14710
14711 2000-03-30 Gerd Moellmann <gerd@gnu.org>
14712
14713 * xfns.c (free_image_cache): Free the cache structure itself
14714 last, after all its members have been freed.
14715
14716 * lisp.h (xstrdup): Add prototype.
14717
14718 * alloc.c (xstrdup): Moved here from xfaces.c.
14719 (allocating_for_lisp): Variable removed.
14720 (lisp_malloc): Block input around the calls to malloc and mem_insert.
14721
14722 * xfaces.c (realize_tty_face): Use find_symbol_value instead
14723 of Fsymbol_value.
14724 (xstrdup): Moved to alloc.c.
14725
14726 2000-03-29 Ken Raeburn <raeburn@gnu.org>
14727
14728 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
14729
14730 * emacs.c (main): Fix sense of no-loadup test.
14731
14732 * config.in (ENABLE_CHECKING): Undef.
14733
14734 * lisp.h (struct interval): Replace "parent" field with a union of
14735 interval pointer and Lisp_Object; add new bitfield to use as
14736 discriminant. Change other flag fields to bitfields.
14737 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
14738 is defined and the supplied test fails, print a message and abort.
14739 (eassert): New macro. Use CHECK to provide an assert-like facility.
14740
14741 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
14742 pointers; abort if the value looks like a lisp object.
14743 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
14744 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
14745 Modify for new interval parent definition.
14746
14747 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
14748 (UNMARK_BALANCE_INTERVALS): Update references that need an
14749 addressable lisp object in the interval structure.
14750 (die): New function.
14751 (suppress_checking): New variable.
14752
14753 * intervals.c (interval_start_pos): Just return 0 if there's no
14754 parent object.
14755
14756 2000-03-29 Gerd Moellmann <gerd@gnu.org>
14757
14758 * lread.c (read1): Accept `.' (period) as symbol start like in CL
14759 and earlier Emacs versions.
14760
14761 * keyboard.c (Ftop_level): Cancel busy-cursor.
14762
14763 * eval.c (call_debugger): Cancel busy-cursor.
14764
14765 2000-03-29 Kenichi Handa <handa@etl.go.jp>
14766
14767 * search.c (Freplace_match): Adjust multibyteness of the current
14768 buffer and NEWTEXT. Free allocated memory before signaling an error.
14769
14770 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
14771
14772 * regex.c (analyse_first): New function obtained by ripping out most
14773 of re_compile_fastmap and generalizing it a little bit so that it
14774 can also just return whether a given (sub)pattern can match the empty
14775 string or not.
14776 (regex_compile): Use `analyse_first' to decide whether the loop-check
14777 needs to be done or not for *, +, *? and +? (the loop check is costly
14778 for non-greedy repetition).
14779 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
14780
14781 2000-03-28 Dave Love <fx@gnu.org>
14782
14783 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
14784
14785 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
14786
14787 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
14788
14789 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
14790 an expression.
14791 (enum re_opcode_t): Update description of succeed_n.
14792 (PATFETCH): Always define.
14793 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
14794 operators, char classes, shy-groups and intervals).
14795 Optimize special cases of intervals so as to only use succeed_n and
14796 jump_n when really needed.
14797 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
14798 that we don't have to handle the special cases any more.
14799 Simplify on_failure_jump handling as well.
14800
14801 2000-03-28 Jason Rumney <jasonr@gnu.org>
14802
14803 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
14804
14805 2000-03-27 Gerd Moellmann <gerd@gnu.org>
14806
14807 * s/freebsd.h (GC_SETJMP_WORKS): Define.
14808
14809 * s/msdos.h (GC_SETJMP_WORKS): Define.
14810
14811 * alloc.c (mark_maybe_object): New function.
14812 (mark_memory): Use it.
14813 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
14814 (setjmp_tested_p, longjmp_done): New variables.
14815 (test_setjmp): New function.
14816 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
14817 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
14818
14819 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
14820 to DEC_TEXT_POS and INC_TEXT_POS.
14821
14822 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
14823 with parameter MULTIBYTE_P.
14824
14825 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
14826
14827 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
14828 buffers because it looks for multibyte character byte sequences
14829 which don't exist in unibyte text.
14830
14831 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
14832
14833 * xfaces.c (register_color, unregister_color, unregister_colors)
14834 [DEBUG_X_COLORS]: New functions.
14835 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
14836
14837 * xfns.c (x_set_cursor_color): Get color reference counts right.
14838
14839 * xterm.c (x_copy_color): New function.
14840 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
14841
14842 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
14843 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
14844 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
14845 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
14846 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
14847 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
14848 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
14849 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
14850 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
14851 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
14852
14853 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
14854 names for handling per-buffer variables.
14855
14856 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
14857 instead of MAX_BUFFER_LOCAL_VARS.
14858 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
14859
14860 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
14861
14862 * xfns.c (x_specified_cursor_type): New function.
14863 (x_set_cursor_type): Use it.
14864
14865 * buffer.h (struct buffer): Add cursor_type.
14866
14867 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
14868
14869 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
14870 (print_partial_compiled_pattern, re_compile_fastmap):
14871 Handle new opcode.
14872 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
14873 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
14874 executing it as well as when popping it off the stack to find infinite
14875 loops in non-greedy repetition operators.
14876
14877 2000-03-26 Gerd Moellmann <gerd@gnu.org>
14878
14879 * doc.c (Qfunction_documentation): New variable.
14880 (syms_of_doc): Initialize Qfunction_documentation.
14881 (Fdocumentation): If FUNCTION is a symbol with non-nil
14882 `function-documentation' property, return a documentation derived
14883 from that.
14884
14885 * buffer.c (syms_of_buffer): Add default-cursor-type.
14886 (init_buffer_once): Don't let cursor_type have a local value
14887 in every buffer.
14888
14889 * xterm.c (x_display_and_set_cursor): Choose cursor depending
14890 on buffer-local value of cursor_type.
14891 (x_draw_bar_cursor): Add parameter WIDTH.
14892
14893 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
14894 (init_buffer_once): Set default cursor_type value to t.
14895 Mark cursor_type as local everywhere.
14896 (syms_of_buffer): New per-buffer variable cursor-type.
14897
14898 * buffer.h (struct buffer): Remove member local_var_flags,
14899 add local_flags.
14900 (MAX_BUFFER_LOCAL_VARS): New macro.
14901 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
14902 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
14903 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
14904 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
14905
14906 * print.c (print_object): Use new macros for per-buffer variables.
14907
14908 * category.c (Fset_category_table): Use new macros for per-buffer
14909 variables.
14910
14911 * buffer.c (buffer_permanent_local_flags): Make a char array.
14912 (max_buffer_local_idx): New variable.
14913 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
14914 for new handling of per-buffer variables.
14915 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
14916 (init_buffer_once): Initialize per-buffer vars differently.
14917 Set max_buffer_local_idx.
14918
14919 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
14920 variables.
14921
14922 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
14923
14924 * data.c (do_symval_forwarding, store_symval_forwarding)
14925 (find_symbol_value, set_internal, default_value, Fset_default)
14926 (Fkill_local_variable, Flocal_variable_p): Use new macros for
14927 per-buffer variables.
14928
14929 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
14930
14931 2000-03-24 Gerd Moellmann <gerd@gnu.org>
14932
14933 * xterm.c (x_term_init): Unblock input around call1 of
14934 Qvendor_specific_keysyms.
14935
14936 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
14937 (find_defun_start): Consider an open parenthesis in column 0
14938 a defun start only if open_paren_in_column_0_is_defun_start is set.
14939 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
14940
14941 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
14942
14943 * eval.c (Fautoload): Add entry in load-history (if after dump).
14944 * lread.c (load-history): Update docstring.
14945
14946 2000-03-24 Gerd Moellmann <gerd@gnu.org>
14947
14948 * indent.c (Fvertical_motion): Always use the current buffer.
14949 Temporarily change the window's buffer, if necessary.
14950
14951 2000-03-23 Gerd Moellmann <gerd@gnu.org>
14952
14953 * xterm.c (fast_find_position): Make sure not to consider rows
14954 not visible in the window.
14955
14956 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
14957
14958 * regex.c (enum syntaxcode): Provide default for non-Emacs.
14959 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
14960
14961 2000-03-22 Jason Rumney <jasonr@gnu.org>
14962
14963 * w32menu.c (single_submenu): Set help string to NULL if none.
14964 (w32_menu_show): Set help string correctly.
14965 (add-menu-item): Set help string in MIIM_DATA for menu item.
14966 Load SetMenuItemInfoA explicitly.
14967 (w32_menu_display_help): New function.
14968
14969 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
14970 (QCdata): Moved to xdisp.c.
14971
14972 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
14973 (Vw32_charset_to_codepage_alist): Removed.
14974 (Vw32_charset_info_alist): New variable.
14975 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
14976 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
14977 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
14978 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
14979 with TODO comment.
14980 (w32_codepage_for_font): Use Vw32_charset_info_alist.
14981 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
14982 Define Vw32_charset_info_alist and w32_charset symbols.
14983
14984 2000-03-22 Jason Rumney <jasonr@gnu.org>
14985
14986 * makefile.nt (w32bdf.obj): Update dependencies.
14987
14988 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
14989
14990 * w32fns.c: Include fontset.h after dispextern.h.
14991 (Fx_create_frame): Do not create fontset.
14992 (w32_load_system_font): Doc fix.
14993 (Fx_close_connection): Free full_name if it is not shared.
14994
14995 * w32term.c: Include fontset.h after dispextern.h.
14996 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
14997 Callers updated.
14998 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
14999 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
15000 (w32_font_is_double_byte): New function, needs body.
15001 (x_append_glyph): Set glyph->glyph_not_available_p.
15002 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
15003 it->charset. If it->multibyte_p is zero and it->c is a multibyte
15004 character, convert it to a unibyte character.
15005 (struct glyph_string): Delete member `charset'.
15006 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
15007 calculating it is found.
15008 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
15009 the case that per char metric is not available correctly.
15010 (x_fill_glyph_string): Handle the case that the specific glyph is
15011 not available correctly.
15012 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
15013 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
15014 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
15015 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
15016 fontset. Don't call FS_LOAD_FONT.
15017
15018 2000-03-22 Ken Raeburn <raeburn@gnu.org>
15019
15020 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
15021 (INT_LISPLIKE): New macro.
15022 (NULL_INTERVAL_P): Use it.
15023 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
15024 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
15025 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
15026
15027 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
15028 explicit references to "parent" field of struct interval and
15029 associated unclean type conversions.
15030 * intervals.c (create_root_interval, root_interval, rotate_right)
15031 (rotate_left, balance_possible_root_interval, split_interval_right)
15032 (split_interval_left, interval_start_pos, find_interval)
15033 (next_interval, previous_interval, update_interval)
15034 (adjust_intervals_for_insertion, delete_node, delete_interval)
15035 (adjust_intervals_for_deletion, merge_interval_right)
15036 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
15037 (copy_intervals_to_string): Likewise.
15038 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
15039 Likewise.
15040 * syntax.c (update_syntax_table): Likewise.
15041
15042 * intervals.c (reproduce_tree_obj): New function, like
15043 reproduce_tree but takes a Lisp_Object for the parent. Declare
15044 with prototype.
15045 (graft_intervals_into_buffer): Use it when appropriate.
15046 (reproduce_tree): Declare with prototype.
15047 (balance_possible_root_interval): Check that the parent is a lisp
15048 object before trying to examine its type.
15049
15050 2000-03-22 Gerd Moellmann <gerd@gnu.org>
15051
15052 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
15053 as strings only if both are known to be strings.
15054
15055 * s/openbsd.h (LIBS_TERMCAP): Undef.
15056
15057 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
15058
15059 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
15060 definitions for non-Emacs compilation.
15061 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
15062 outside of `#ifdef emacs'.
15063 (print_partial_compiled_pattern): Update.
15064 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
15065 (re_compile_fastmap): Merge handling of charset and charset_not (for
15066 emacs and non-emacs compilation as well).
15067 Similarly for (not)categoryspec and (not)syntaxspec.
15068 Don't use the fastmap when reaching `anychar' since the added
15069 complexity is not justified.
15070 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
15071 and (not)syntaxspec. Merge (not)categoryspec.
15072
15073 2000-03-22 Kenichi Handa <handa@etl.go.jp>
15074
15075 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
15076 (FACE_FOR_CHAR): Define them differently for the configuration of
15077 --without-x.
15078
15079 2000-03-21 Dave Love <fx@gnu.org>
15080
15081 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
15082 doc string.
15083
15084 2000-03-21 Gerd Moellmann <gerd@gnu.org>
15085
15086 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
15087 (lface_fully_specified_p): Don't check contents of
15088 LFACE_FONT_INDEX because that attribute is optional.
15089 (realize_x_face): Remove now unwarranted xassert.
15090
15091 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
15092
15093 The following changes are to make font selection based on
15094 characters, not charset. In addition, they recover fontset
15095 facilities while utilizing the new font selection mechanism.
15096
15097 * Makefile.in (fontset.o): Depend on dispextern.h.
15098
15099 * alloc.c (mark_face_cache): Don't mark face->registry.
15100
15101 * dispextern.h (struct glyph): New member glyph_not_available_p.
15102 Use 22 bits for face_id.
15103 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
15104 (struct face): Delete member registry, new member ascii_face.
15105 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
15106 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
15107 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
15108 (struct it): Delete member charset, new member glyph_not_available_p.
15109
15110 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
15111 (struct fontset_info, struct fontset_data): Structs removed.
15112 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
15113 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
15114 (fs_load_font, fs_query_fontset): Adjusted for new argument.
15115 (fs_free_face_fontset, fontset_font_pattern)
15116 (face_suitable_for_char_p, face_for_char)
15117 (make_fontset_for_ascii_face): Extern them.
15118 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
15119 (FS_LOAD_FACE_FONT): New macro.
15120
15121 * fontset.c: All codes rewritten or adjusted for the change of
15122 fontset implementation. Now fontset is represented by char table.
15123 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
15124 Variables removed.
15125 (my_strcasecmp): Function removed.
15126 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
15127 (AREF, ASIZE): New macros.
15128 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
15129 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
15130 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
15131 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
15132 (fontset_id_valid_p, font_family_registry, fontset_name)
15133 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
15134 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
15135 New functions.
15136 (fs_load_font): New arg FACE. Caller changed.
15137 (fs_query_fontset): Argument changed. Caller changed.
15138 (Fquery_fontset): call fs_query_fontset.
15139 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
15140 Functions removed.
15141 (clear_fontset_elements, check_registry_encoding)
15142 (check_fontset_name): New functions.
15143 (syms_of_fontset): Set char-table-extra-slots property of fontset
15144 to 3. Staticpro and initialize Vfontset_table and
15145 Vdefault_fontset. Defsubr fontset_font and fontset_list.
15146
15147 * frame.h (struct frame): Member `fontset_data' removed.
15148 (FRAME_FONTSET_DATA): Macro removed.
15149
15150 * frame.c (make_frame): Don't allocate f->fontset_data.
15151 (Fdelete_frame): Don't free f->fontset_data.
15152
15153 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
15154
15155 * xdisp.c (charset_at_position): Function removed.
15156 (init_iterator): Don't set member charset of struct `it'.
15157 (handle_face_prop, reseat_to_string, set_iterator_to_next)
15158 (next_element_from_display_vector, insert_left_trunc_glyphs):
15159 Likewise.
15160 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
15161 FACE_FOR_CHARSET.
15162 (get_next_display_element, append_space)
15163 (extend_face_to_end_of_line): Likewise.
15164
15165 * xfaces.c (Qx_charset_registry, Vface_default_registry):
15166 Variables removed.
15167 (clear_font_table, frame_update_line_height, load_face_font):
15168 Adjusted for the change of fontset implementation.
15169 (load_face_fontset_font): Function removed.
15170 (pixel_point_size): New function.
15171 (font_list): Argument type changed. Caller changed.
15172 (LFACE_FONT): New macro.
15173 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
15174 (set_lface_from_font_name): Type of arg FONTNAME is changed to
15175 Lisp_Object. Determine the font name by actually loading a font
15176 by the specified pattern. Set LFACE_FONT (lface) to the specified
15177 pattern. Even if a font is not found, don't try alternatives.
15178 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
15179 (set_font_frame_param): If `font' is specified in lface, use it.
15180 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
15181 (lface_same_font_attributes_p): Likewise.
15182 (make_realized_face): Arguent changed. Caller changed. Set
15183 face->ascii_face to face itself.
15184 (free_realized_face): Free face->fontset if face is for ASCII.
15185 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
15186 (deduce_unibyte_registry, x_charset_registry): Functions removed.
15187 (free_realized_multibyte_face): New function.
15188 (lookup_face, lookup_named_face, lookup_derived_face): Argument
15189 changed. Caller changed.
15190 (try_font_list): Argument type changed.
15191 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
15192 (choose_face_font): Argument changed. Handle fontset properly.
15193 (choose_face_fontset_font): Function removed.
15194 (realize_default_face, realize_named_face): Don't remove the
15195 former face here.
15196 (realize_face): Argument changed. Caller changed. Remove face
15197 with the arg former_face_id in advance. Load font for the new face.
15198 (realize_x_face): Argument changed. Caller changed. For a
15199 multibyte character, share fontset with base_face. For a single
15200 byte character, make a new realized fontset. Don't load a font here.
15201 (realize_tty_face): Argument changed. Caller changed.
15202 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
15203 (face_at_buffer_position): Don't check multibyte_p for returning
15204 DEFAULT_FACE_ID.
15205 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
15206 FACE_SUITABLE_FOR_CHARSET_P.
15207 (syms_of_xfaces): Remove code for Qx_charset_registry and
15208 Vface_default_registry.
15209
15210 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
15211 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
15212 (x_per_char_metric): Don't try FONT->default_char. Even if
15213 pcm->width is zero, glyph bits may exist.
15214 (x_encode_char): Always initialize char2b->byte1.
15215 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
15216 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
15217 (x_append_glyph): Set glyph->glyph_not_available_p.
15218 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
15219 it->charset. Handle the case that per char metric is not
15220 available. If it->multibyte_p is zero and it->c is a multibyte
15221 character, convert it to a unibyte character.
15222 (struct glyph_string): Delete member `charset'.
15223 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
15224 the case that per char metric is not available correctly.
15225 (x_fill_glyph_string): Handle the case that the specific glyph is
15226 not available correctly.
15227 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
15228 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
15229 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
15230 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
15231 fontset. Don't call FS_LOAD_FONT.
15232
15233 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
15234 (x_create_tip_frame): Likewise.
15235 (Fx_close_connection): Free full_name of font_info.
15236
15237 * fns.c (optimize_sub_char_table): New function.
15238 (Foptimize_char_table): New function.
15239 (syms_of_fns): Defsubr Soptimize_char_table.
15240
15241 2000-03-20 Gerd Moellmann <gerd@gnu.org>
15242
15243 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
15244 only if buffer is displayed in some window.
15245
15246 * xdisp.c (handle_single_display_prop): Initialize local `value'.
15247 (try_window_reusing_current_matrix): Don't call scroll run
15248 function if run's current and desired position are the same;
15249 this prevents cursor flickering.
15250
15251 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
15252
15253 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
15254
15255 * regex.c (RE_STRING_CHAR): New macro.
15256 (GET_CHAR_AFER_2): Remove.
15257 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
15258 (enum re_opcode_t): Remove on_failure_jump_exclusive.
15259 (print_partial_compiled_pattern, re_compile_fastmap)
15260 (re_match_2_internal): Remove on_failure_jump_exclusive.
15261 (regex_compile): Turn optimizable P+ loops into PP*, so that the
15262 optimization only need to work for * (ie. can use of_keep_string_jump).
15263 Remove the special case for .*\n since it is now covered by the general
15264 optimization.
15265 (re_search_2): Don't bother with `room'.
15266 (skip_one_char): New function.
15267 (skip_noops): Simplify since `memory' is not needed any more.
15268 (mutually_exclusive_p): Restructure slightly to use `switch' and
15269 add handling for "all" remaining cases.
15270 (re_match_2_internal): Change on_failure_jump_smart to use
15271 on_failure_keep_string_jump (and redirect the end-of-loop jump)
15272 rather than on_failure_jump_exclusive.
15273
15274 2000-03-19 Gerd Moellmann <gerd@gnu.org>
15275
15276 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
15277 number of bits per RGB because it's everywhere used as the depth
15278 of the visual.
15279
15280 * term.c (calculate_costs): Remove code dealing with X frames.
15281
15282 2000-03-19 Richard M. Stallman <rms@gnu.org>
15283
15284 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
15285
15286 2000-03-18 Gerd Moellmann <gerd@gnu.org>
15287
15288 * lread.c (read_integer): Unread the last char not consumed.
15289
15290 2000-03-17 Gerd Moellmann <gerd@gnu.org>
15291
15292 * xterm.c (x_update_window_cursor): Don't update in frames
15293 which are in the process of being deleted.
15294
15295 2000-03-16 Gerd Moellmann <gerd@gnu.org>
15296
15297 * Makefile.in (mostlyclean): Add `*.core'.
15298 (clean): Add `bootstrap-emacs'.
15299
15300 * lread.c (read_integer): New function.
15301 (read1): Support read syntax #o, #x, #b, #r.
15302
15303 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
15304
15305 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
15306 make sure POINTER_TO_OFFSET gives the same value before and after
15307 PREFETCH. Use `dfail' to guarantee "atomic" matching.
15308 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
15309 (debug): Now only active if > 0 rather than if != 0.
15310 (DEBUG_*): Update for the new meaning of `debug'.
15311 (print_partial_compiled_pattern): Add missing `succeed' case. Use
15312 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
15313 in `succeed_n', `jump_n' and `set_number_at'.
15314 (store_op1, store_op2, insert_op1, insert_op2)
15315 (at_begline_loc_p, at_endline_loc_p): Add prototype.
15316 (group_in_compile_stack): Move to after its arg's types are
15317 declared and add a prototype.
15318 (PATFETCH): Define in terms of PATFETCH_RAW.
15319 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
15320 (QUIT): Redefine as a nop except for NTemacs.
15321 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
15322 indentation of the greedy-op and shy-group code.
15323 (at_(beg|end)line_loc_p): Fix argument's types.
15324 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
15325 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
15326 (MATCHING_IN_FIRST_STRING): Remove.
15327 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
15328 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
15329 QUIT unconditionally.
15330
15331 2000-03-15 Gerd Moellmann <gerd@gnu.org>
15332
15333 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
15334 a sole completion.
15335
15336 * process.c (send_process): Add a hint that the function
15337 can call Lisp code to its comment.
15338
15339 * lread.c (load_dangerous_libraries): New variable.
15340 (Vbytecomp_version_regexp): New variable.
15341 (safe_to_load_p): New function.
15342 (Fload): Handle files not compiled with Emacs specially.
15343 (syms_of_lread): New Lisp variable load-dangerous-libraries.
15344
15345 2000-03-14 Gerd Moellmann <gerd@gnu.org>
15346
15347 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
15348
15349 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
15350 support functions only if HAVE_X11R6_XIM is defined.
15351 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
15352
15353 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
15354
15355 * xfns.c (X_I18N_INHIBITED): Don't define.
15356 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
15357 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
15358
15359 * config.in (HAVE_X_I18N): Moved here from xterm.h.
15360 (HAVE_X11R6_XIM): Define.
15361
15362 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
15363
15364 * xterm.c (x_term_init): Add support for X resource `synchronous'.
15365 If set, call XSynchronize.
15366
15367 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
15368
15369 * regex.c: Declare a new type `re_char' used throughout the code
15370 for the string char type. It's `const unsigned char' to match the
15371 rest of Emacs. Consistently make sure all pointers to strings use
15372 it and make sure all pointers into the pattern use `unsigned char'.
15373 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
15374 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
15375 code duplication.
15376
15377 * charset.h (GET_CHAR_AFTER_2): Remove.
15378 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
15379
15380 2000-03-12 Ken Raeburn <raeburn@gnu.org>
15381
15382 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
15383 variable before the invocation of YMF_PASS_LDFLAGS, in case both
15384 of them try to use backquotes.
15385
15386 2000-03-12 Dave Love <fx@gnu.org>
15387
15388 * unexelf.c: Restore changes of 1999-10-19.
15389 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
15390 fix its type and alignment; copy it from current process.
15391
15392 2000-03-12 Gerd Moellmann <gerd@gnu.org>
15393
15394 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
15395 has been found. Fix bug not computing timer's predecessor.
15396
15397 * fileio.c (Fread_file_name): Handle case that DIR contains a
15398 file name.
15399
15400 * window.c (Fsave_window_excursion): Doc fix.
15401
15402 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
15403
15404 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
15405
15406 * msdos.c (vga_installed): New function, code moved from
15407 dos_set_window_size.
15408 (Qbar, Qcursor_type, outside_cursor): New variables.
15409 (syms_of_msdos): Intern and staticpro them.
15410 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
15411 shape used outside Emacs when called for the first time.
15412 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
15413 cursor shape used outside Emacs.
15414 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
15415 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
15416 type has changed.
15417 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
15418 parameters specify the cursor. Make qreverse a global
15419 variable (renamed to Qreverse).
15420
15421 2000-03-09 Gerd Moellmann <gerd@gnu.org>
15422
15423 * fns.c (Fy_or_n_p): Cancel busy-cursor.
15424
15425 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
15426
15427 This is a big redesign of failure-stack and register handling, prompted
15428 by bugs revealed when trying to add shy-groups. Overall, what happened
15429 is that loops are now structured a little differently, groups can be
15430 shy and the code is a little simpler.
15431
15432 * regex.h: Update the copyright.
15433 (RE_SHY_GROUPS): New value.
15434 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
15435 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
15436
15437 * regex.c (enum re_opcode_t): Remove jump_past_alt,
15438 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
15439 on_failure_jump_(exclusive, loop and smart). Also fix the comment
15440 for (start|stop)_memory since they now only take one argument (the
15441 second has becomes unnecessary).
15442 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
15443 (print_compiled_pattern): Use %ld to printf long ints and flush to
15444 make debugging a little easier.
15445 (union fail_stack_elt): Make the integer unsigned.
15446 (struct fail_stack_type): Add a `frame' element.
15447 (INIT_FAIL_STACK): Init `frame' as well.
15448 (POP_PATTERN_OP): New macro for re_compile_fastmap.
15449 (DEBUG_PUSH, DEBUG_POP): Remove.
15450 (NUM_REG_ITEMS): Remove.
15451 (NUM_NONREG_ITEMS): Adjust.
15452 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
15453 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
15454 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
15455 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
15456 New macros.
15457 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
15458 address pushed is not the destination of the jump but the source
15459 of it instead.
15460 (NUM_FAILURE_ITEMS): Remove.
15461 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
15462 registers before the actual failure point). Don't hardcode any
15463 meaning for str==NULL anymore.
15464 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
15465 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
15466 Remove.
15467 (REG_UNSET_VALUE): Use NULL (why not?).
15468 (compile_range): Remove declaration since it doesn't exist.
15469 (struct compile_stack_elt_t): Remove inner_group_offset.
15470 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
15471 (regex_grow_registers): Remove dead code.
15472 (FIXUP_ALT_JUMP): New macro.
15473 (regex_compile): Add shy-groups Change loops to use
15474 on_failure_jump_smart&jump instead of
15475 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
15476 initial (dummy_failure_)jump. Remove c1_base (looks like unused
15477 variable to me). Use `jump' instead of `jump_past_alt' and don't
15478 bother with push_dummy_failure in alternatives since it is now
15479 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
15480 emacs' for (re)allocating the stack.
15481 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
15482 from loop when bufp->can_be_null rather than jumping to `done'.
15483 Avoid jumping backwards so as to ensure termination. Use
15484 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
15485 backreferences. Remove dead code in handling of `anychar'.
15486 (skip_noops, mutually_exclusive_p): New functions taken from the
15487 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
15488 improve mutually_exclusive_p to handle ".+\n".
15489 (lowest_active_reg, highest_active_reg)
15490 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
15491 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
15492 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
15493 variables. Push register (in `start_memory') on the stack rather
15494 than storing it in old_reg(start|end). Remove the cycle detection
15495 from `stop_memory', replaced by the use of on_failure_jump_loop
15496 for greedy loops. Add code for the new on_failure_jump_<foo>.
15497 Remove ad-hoc code in `on_failure_jump' to push more registers in
15498 the case of a loop. Take out code from `maybe_pop_jump' into
15499 separate functions and adapt it to the semantics of
15500 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
15501 and push_dummy_failure. Remove dummy_failure handling and
15502 handling of `failures to jump to on_failure_jump' (this last one
15503 was already dead code, it seems).
15504 (group_match_null_string_p, alt_match_null_string_p)
15505 (common_op_match_null_string_p): Remove.
15506
15507 2000-03-08 Dave Love <fx@gnu.org>
15508
15509 * config.in: Don't depend on __STDC__ for volatile.
15510 Add POINTER_TYPE, PTR, PROTOTYPES.
15511
15512 * hftctl.c, strftime.c: Use PROTOTYPES.
15513 * eval.c (find_handler_clause): Likewise.
15514
15515 * mem-limits.h: Use POINTER_TYPE.
15516
15517 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
15518 (memory_warnings): Declare using POINTER_TYPE.
15519
15520 2000-03-08 Gerd Moellmann <gerd@gnu.org>
15521
15522 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
15523
15524 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
15525
15526 * xfns.c: Remove obsolete code in #if 0.
15527 (Fx_focus_frame): New function.
15528
15529 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
15530
15531 * coding.c (coding_category_name): Add coding-category-utf-8,
15532 coding-category-utf-16-be, coding-category-utf-16-le.
15533 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
15534 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
15535 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
15536 (detect_coding_utf_8): New function.
15537 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
15538 UTF_16_LOW_SURROGATE_P): New macros.
15539 (detect_coding_utf_16): New function
15540 (detect_coding_mask): When priorities are specified, skip any
15541 categories that have `nil' coding-system. Fix bug of returning
15542 wrong mask when PRIORITIES is specified and detect_coding_XXX()
15543 returns a mask not set in PRIORITIES.
15544 (detect_eol_type_in_2_octet_form): New function.
15545 (detect_eol): selects detect_eol_type_XXX to call according to
15546 cooding->category_idx.
15547 (detect_coding_system): Remove `nil' coding-system in the result.
15548 (Fupdate_coding_systems_internal): Update all coding-categories.
15549
15550 * coding.h (CODING_CATEGORY_IDX_UTF_8)
15551 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
15552 New macros.
15553 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
15554 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
15555 (CODING_CATEGORY_IDX_UTF_16_LE)
15556 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
15557 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
15558 (CODING_CATEGORY_MASK_ANY): Include the above macros.
15559 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
15560
15561 2000-03-07 Gerd Moellmann <gerd@gnu.org>
15562
15563 * doc.c (Fdocumentation_property): If value is not a string,
15564 and doesn't refer to etc/DOC, evaluate it to obtain a string.
15565
15566 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
15567 close the display with XtCloseDisplay. This caused a bus error
15568 on OpenWindows.
15569
15570 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
15571 complete but not unique.
15572
15573 2000-03-06 Gerd Moellmann <gerd@gnu.org>
15574
15575 * process.c (send_process): Remove local variable `procname' that
15576 might become invalid when a GC happens. Instead, access the
15577 process name slot directly.
15578
15579 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
15580 orig_height if set.
15581
15582 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
15583 orig_height if set.
15584
15585 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
15586
15587 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
15588 glyph matrices have been freed.
15589
15590 2000-03-05 Gerd Moellmann <gerd@gnu.org>
15591
15592 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
15593 (bootstrap-temacs): Set LC_ALL to C like for temacs.
15594
15595 * xfns.c (QCdata): Moved to xdisp.c.
15596
15597 * xdisp.c (QCdata): Moved here from xfns.c.
15598 (syms_of_xdisp): Initialize QCdata.
15599
15600 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
15601
15602 * window.c (coordinates_in_window): Use
15603 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
15604 FRAME_INTERNAL_BORDER_WIDTH.
15605
15606 * xdisp.c (try_window_id): Recompute unchanged information if
15607 it is obviously invalid.
15608
15609 * xterm.c (x_term_init): Create a colormap if not using the
15610 default visual.
15611
15612 * xterm.h (select_visual): Change prototype.
15613
15614 * xfns.c (select_visual): Rewritten. Recognize user-specified
15615 visual classes.
15616 (visual_classes): New variable.
15617
15618 2000-03-04 Gerd Moellmann <gerd@gnu.org>
15619
15620 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
15621 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
15622 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
15623 (x_decode_color): Don't handle allocation of white and black specially.
15624 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
15625 XtNcolormap resources.
15626 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
15627 (Fx_create_frame): Initialize color members of x_output structure.
15628 (xpm_load): Pass colormap to XPM lib.
15629
15630 * xfaces.c (x_free_colors): Access colormap of frame using
15631 FRAME_X_COLORMAP. Be paranoid about freeing black and white
15632 when default colormap is used.
15633
15634 * xterm.c (x_term_init): Set Colormap member of x_display_info
15635 structure. Copy colormap if resource `privateColormap' is
15636 specified (PseudoColor only).
15637 (x_setup_relief_color): Access colormap of frame using
15638 FRAME_X_COLORMAP.
15639
15640 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
15641 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
15642
15643 2000-03-04 Jason Rumney <jasonr@gnu.org>
15644
15645 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
15646 other non-platform-specific equivalents.
15647 [WINDOWSNT]: Include w32term.h, fontset.h and define X
15648 specific functions and macros as their w32 equivalents where
15649 non-platform-specifics are not available.
15650 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
15651 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
15652 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
15653 (frame_update_line_height): Use macros to access f->output_data.
15654 (defined_color): Remove FIXME comments; fixed.
15655 (x_face_list_fonts, prepare_face_for_display): Put X specifics
15656 into #ifdef blocks. Add WINDOWSNT blocks.
15657 (Fx_list_fonts): Use macros for accessing font data.
15658 (set_lface_from_font_name): Different default fonts for X and
15659 WINDOWSNT.
15660 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
15661 scalable for backward compatibility.
15662 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
15663 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
15664
15665 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
15666 syms_of_w32faces.
15667
15668 * makefile.nt (w32faces.obj): Remove.
15669 (xfaces.obj): Add.
15670
15671 2000-03-03 Jason Rumney <jasonr@gnu.org>
15672
15673 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
15674 correct parameters.
15675
15676 2000-03-03 Ken Raeburn <raeburn@gnu.org>
15677
15678 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
15679 standard ELF definitions here if the system header does not.
15680
15681 2000-03-03 Gerd Moellmann <gerd@gnu.org>
15682
15683 * xterm.c (PER_CHAR_METRIC): Removed.
15684 (x_per_char_metric_1, x_default_char): New functions.
15685 (x_per_char_metric): If font's default char is invalid, return
15686 metrics of a suitably chosen usable default char.
15687 (x_draw_glyph_string_foreground): If font has an invalid default
15688 char, replace occurrences of unprintable chars with a suitably
15689 chosen usable default char.
15690
15691 2000-03-02 Gerd Moellmann <gerd@gnu.org>
15692
15693 * xterm.c (note_mouse_highlight): Return quickly if frame's
15694 glyph matrices have been freed.
15695
15696 * dispnew.c (free_glyphs): Block input while freeing matrices.
15697
15698 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
15699
15700 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
15701 Use x_free_colors.
15702
15703 * dispextern.h (x_free_colors): Add prototype.
15704
15705 * xfaces.c (x_free_colors): New function.
15706 (unload_color, free_face_colors): Use it.
15707
15708 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
15709
15710 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
15711
15712 * window.c [MSDOS]: Include msdos.h.
15713
15714 2000-03-02 Dave Love <fx@gnu.org>
15715
15716 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
15717
15718 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
15719 set C_OPTIMIZE_SWITCH for gcc.
15720
15721 2000-03-02 Kenichi Handa <handa@etl.go.jp>
15722
15723 * coding.c (coding_save_composition): Be sure to allocate
15724 composition data area in coding even if there's no composition in
15725 the current run.
15726
15727 2000-03-01 Jason Rumney <jasonr@gnu.org>
15728
15729 * w32term.c: Equivalent changes to those made to xterm.c on
15730 2000-02-25 and 2000-02-24.
15731
15732 * w32fns.c: Equivalent changes to those made to xfns.c on
15733 2000-02-25 and 2000-02-21.
15734
15735 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
15736 correct line-end convention is followed.
15737
15738 * w32menu.c [HAVE_BOXES]: Remove #undef.
15739 (single_keymap_panes): Remove code for simulating checkmarks.
15740 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
15741 Remove code for drawing simulated checkmarks.
15742 (w32_menu_show): make unibyte help string correctly.
15743 (add_menu_item): draw standard Windows checkmarks. Draw radio
15744 buttons as radio buttons if possible.
15745
15746 2000-03-01 Gerd Moellmann <gerd@gnu.org>
15747
15748 * sysdep.c (start_of_text): Don't define this function for NetBSD
15749 with ELF.
15750
15751 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
15752 Don't define.
15753 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
15754 (LINKER): Don't undef if __NetBSD__ is defined.
15755
15756 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
15757
15758 * fileio.c [__NetBSD__]: Define `unix'.
15759
15760 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
15761
15762 2000-02-29 Gerd Moellmann <gerd@gnu.org>
15763
15764 * atimer.c (start_atimer): Don't abort when timers are stopped.
15765 (append_atimer_lists): New function.
15766 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
15767 arbitrary lists of stopped and running atimers.
15768
15769 * atimer.c (cancel_atimer): Handle canceling an atimer when
15770 some timers are stopped.
15771
15772 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
15773 after canceling it.
15774
15775 * fns.c (maybe_resize_hash_table): Handle case of new size
15776 coming out as being the same as old size.
15777
15778 2000-02-27 Jason Rumney <jasonr@gnu.org>
15779
15780 * makefile.nt: Add atimer.h to dependencies.
15781 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
15782 * w32console.c: Only disable window system features for dispextern.h
15783 (initialize_w32_display): Build a display info for the console.
15784 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
15785 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
15786 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
15787 as 2 button mice.
15788 * w32gui.h (struct W32FontStruct): Revert last change after change
15789 to xdisp.c.
15790 * w32menu.c (single_submenu): Set up help string.
15791 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
15792 (w32_dialog_show): Set up help string.
15793 * w32term.c (w32_display_info_for_display): Remove unused function.
15794 (w32_draw_bitmap): Use pre-built bitmaps.
15795 (w32_initialize_display_info): New function to initialize parts of
15796 display info that are common to both GUI and console frames.
15797 (w32_term_init): Use w32_initialize_display_info. Do not set
15798 Vw32_num_mouse_buttons here, as it is not called for console
15799 frames. Build bitmaps for indicating truncated lines etc.
15800 (x_delete_display): Destroy pre-built bitmaps.
15801 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
15802 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
15803
15804 2000-02-27 Dave Love <fx@gnu.org>
15805
15806 * lisp.h: Add a bunch of prototypes.
15807
15808 2000-02-26 Kenichi Handa <handa@etl.go.jp>
15809
15810 * keyboard.c (read_char): Set `usec' correctly.
15811
15812 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
15813
15814 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
15815 `lambda', set reg[RRR] to the map index.
15816 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
15817 reg[RRR] to 0. Otherwise, set it to -1.
15818
15819 2000-02-25 Gerd Moellmann <gerd@gnu.org>
15820
15821 * emacs.c (main): Remove code snippet commented out with `//'.
15822
15823 2000-02-25 Richard M. Stallman <rms@gnu.org>
15824
15825 * fileio.c (Ffile_symlink_p): If result starts with a `/'
15826 and contains a `:', prepend `/:'.
15827
15828 * window.c (select_window_1): If selected_window is nil,
15829 don't "swap out" the buffer's point.
15830 (Fset_window_configuration): Set selected_window to nil
15831 before calling Fselect_window.
15832 (unshow_buffer): Don't set point in buffer from window's point
15833 if another more recently selected window also shows the buffer.
15834
15835 2000-02-25 Gerd Moellmann <gerd@gnu.org>
15836
15837 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
15838
15839 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
15840 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
15841 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
15842 New variables.
15843 (DEFAULT_BUSY_CURSOR_DELAY): New define.
15844 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
15845 (hide_busy_cursor): New functions.
15846 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
15847
15848 * minibuf.c (read_minibuf): Cancel busy-cursor.
15849
15850 * keyboard.c (command_loop_1): Call start_busy_cursor before
15851 Fcommand_execute and cancel_busy_cursor after it.
15852 (timer_check): Remove busy-cursor code.
15853 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
15854 cursor timer.
15855
15856 * process.c (wait_reading_process_input): Remove busy-cursor code.
15857
15858 * eval.c (Fsignal): Call cancel_busy_cursor instead of
15859 Fx_hide_busy_cursor.
15860
15861 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
15862 Remove prototyoes.
15863 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
15864
15865 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
15866
15867 * xterm.c (XTread_socket): Remove busy-cursor code.
15868
15869 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
15870 (build_frame_matrix_from_leaf_window): Put code handling
15871 glyph row's not being a slice of a frame row in #if 0.
15872 (sync_window_with_frame_matrix_rows): New function.
15873 (frame_row_to_window): New function.
15874 (mirror_line_dance): Handle copies between windows.
15875
15876 * lread.c (Fload): Use `xfree' instead of `free'.
15877 (init_obarray): Use `xmalloc' instead of `malloc'.
15878
15879 * window.c (Fset_window_buffer): Set WINDOW to the window
15880 after decoding.
15881 (coordinates_in_window): Take frame's internal border width
15882 into account.
15883
15884 2000-02-24 Gerd Moellmann <gerd@gnu.org>
15885
15886 * xterm.c (x_display_and_set_cursor): Display cursor of
15887 non-selected windows depending on the setting of
15888 cursor_in_non_selected_windows.
15889
15890 * xdisp.c (cursor_in_non_selected_windows): New variable.
15891 (syms_of_xdisp): DEFVAR_BOOL it.
15892
15893 2000-02-23 Gerd Moellmann <gerd@gnu.org>
15894
15895 * data.c (Fstring_to_number): If number is greater than what
15896 fits into an integer, return a float.
15897
15898 * eval.c (specbind): Remove references to
15899 keyword_symbols_constant_flag.
15900
15901 * data.c (keyword_symbols_constant_flag): Removed.
15902 (Fmakunbound, set_internal, syms_of_data): Remove references to
15903 keyword_symbols_constant_flag.
15904
15905 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
15906
15907 2000-02-23 Kenichi Handa <handa@etl.go.jp>
15908
15909 * syntax.c (multibyte_syntax_as_symbol): New variable.
15910 (syms_of_syntax): Declare it as a Lisp variable.
15911 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
15912 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
15913 nonzero, treat all multibyte characters as symbol.
15914 (init_syntax_once): Give syntax `word' to all multibyte characters.
15915
15916 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15917
15918 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
15919 a deleted frame.
15920
15921 2000-02-21 Gerd Moellmann <gerd@gnu.org>
15922
15923 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
15924
15925 * xfns.c (x_window_to_frame, x_any_window_to_frame)
15926 (x_non_menubar_window_to_frame): Check the busy-cursor window.
15927
15928 2000-02-21 Dave Love <fx@gnu.org>
15929
15930 * frame.c (Vmouse_position_function): New variable.
15931 (Fmouse_position): Use it.
15932 (syms_of_frame): Install it.
15933
15934 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
15935
15936 2000-02-20 Gerd Moellmann <gerd@gnu.org>
15937
15938 * fileio.c (Finsert_file_contents): Unbind the binding of
15939 standard-output done by temp_output_buffer_setup.
15940
15941 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
15942 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
15943 (specbind, unbind_to): Handle most common case of non-constant
15944 symbol with trivial value specially.
15945
15946 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
15947
15948 2000-02-20 Richard M. Stallman <rms@gnu.org>
15949
15950 * data.c (Fmake_variable_buffer_local): Doc fix.
15951 Init found_for_buffer to 0.
15952 (Fmake_variable_frame_local): If the variable has already
15953 been buffer-local, set the check_frame field.
15954
15955 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
15956
15957 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
15958 produced for CODING_MODE_LAST_BLOCK requires.
15959
15960 2000-02-18 Dave Love <fx@gnu.org>
15961
15962 * keyboard.c (echo_keystrokes): Remove declaration.
15963 (Vecho_keystrokes) New variable.
15964 (read_char, record_menu_key, read_key_sequence): Use it to allow
15965 use of float value.
15966 (syms_of_keyboard): Change Vecho_keystrokes declaration.
15967
15968 * lread.c: Undef feature selection macros before defining.
15969
15970 2000-02-18 Gerd Moellmann <gerd@gnu.org>
15971
15972 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
15973 for symbols other than the symbol in question.
15974
15975 2000-02-17 Dave Love <fx@gnu.org>
15976
15977 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
15978
15979 2000-02-17 Gerd Moellmann <gerd@gnu.org>
15980
15981 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
15982
15983 * alloc.c (enum mem_type): Compile unconditionally.
15984
15985 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
15986
15987 * xfaces.c (tty_defined_color): Don't return faulire indication
15988 for unspecified-fg and unspecified-bg pseudo-colors.
15989
15990 2000-02-17 Gerd Moellmann <gerd@gnu.org>
15991
15992 * alloc.c (mark_object): Don't mark symbol names in pure space.
15993 (gc_sweep): Don't unmark symbol names in pure space.
15994
15995 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
15996 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
15997 [GC_MARK_STACK]: New defines.
15998 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
15999 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
16000
16001 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
16002
16003 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
16004 allocate_buffer instead of xmalloc.
16005
16006 * alloc.c (toplevel): Include setjmp.h.
16007 (PURE_POINTER_P): New define.
16008 (enum mem_type) [GC_MARK_STACK]: New enumeration.
16009 (Vdead) [GC_MARK_STACK]: New variable.
16010 (lisp_malloc): Add parameter TYPE, call mem_insert if
16011 GC_MARK_STACK is defined.
16012 (allocate_buffer): New function.
16013 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
16014 (free_float) [GC_MARK_STACK]: Set type to Vdead.
16015 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
16016 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
16017 (MEM_NIL) [GC_MARK_STACK]: New define.
16018 (struct mem_node) [GC_MARK_STACK]: New structure.
16019 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
16020 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
16021 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
16022 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
16023 (mark_stack) [GC_MARK_STACK]: New functions.
16024 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
16025 (clear_marks): Removed.
16026 (gc_sweep): Set free conses' car, free floats' type, free
16027 symbols' function to Vdead. Use lisp_free to free buffers.
16028 (init_alloc_once): Initialize Vdead.
16029 (survives_gc_p): Return non-zero for pure objects.
16030
16031 * alloc.c: Add comments throughout the file.
16032
16033 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
16034 that unblocks alarms.
16035
16036 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
16037 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
16038 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
16039
16040 * frame.c (make_frame): Set frame initiallly to `garbaged'.
16041
16042 2000-02-17 Kenichi Handa <handa@etl.go.jp>
16043
16044 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
16045 avoid infinite error signaling. Allocate sufficient memory for
16046 eol_str in the case that eoltype is Lisp_Int.
16047
16048 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
16049
16050 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
16051 depends on the previous behavior.
16052
16053 2000-02-16 Gerd Moellmann <gerd@gnu.org>
16054
16055 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
16056
16057 2000-02-15 Gerd Moellmann <gerd@gnu.org>
16058
16059 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
16060
16061 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
16062 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
16063 write(2).
16064
16065 2000-02-15 Richard M. Stallman <rms@gnu.org>
16066
16067 * data.c (set_internal): Don't make variable buffer-local
16068 if within a let-binding for the same buffer.
16069 (let_shadows_buffer_binding_p): New function.
16070
16071 * eval.c (specbind): For buffer-local value,
16072 record the current buffer also.
16073 (unbind_to): Cope with that change.
16074
16075 2000-02-15 Gerd Moellmann <gerd@gnu.org>
16076
16077 * window.c (Fsave_window_excursion): Doc fix.
16078
16079 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
16080
16081 * syntax.c (back_comment): Make sure we only consider comment-starters
16082 of the relevant style and return -1 in case of a failure to find the
16083 beginning of the comment.
16084 (Fforward_comment): If back_comment fails, go back to the position just
16085 after the comment-end.
16086 (scan_lists): Add comment describing a very minor bug.
16087
16088 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
16089
16090 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
16091 `completion-regexp-list' in the docstring.
16092
16093 2000-02-14 Dave Love <fx@gnu.org>
16094
16095 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
16096
16097 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
16098
16099 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
16100 to Emacs' syntax. Also fix the comment about set/not-set meanings
16101 since Emacs syntax is not the value 0 any more.
16102 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
16103 since it's now part of RE_SYNTAX_EMACS.
16104
16105 2000-02-12 Dave Love <fx@gnu.org>
16106
16107 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
16108
16109 2000-02-12 Gerd Moellmann <gerd@gnu.org>
16110
16111 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
16112
16113 2000-02-12 Dave Love <fx@gnu.org>
16114
16115 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
16116
16117 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
16118 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
16119 * s/hpux.h: Don't define HAVE_VFORK.
16120
16121 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
16122
16123 * s/nextstep.h: Don't define HAVE_ALLOCA.
16124
16125 * config.in: Add vfork bits.
16126
16127 2000-02-12 Gerd Moellmann <gerd@gnu.org>
16128
16129 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
16130 unwind function to undo the effect of stopping atimers.
16131
16132 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
16133
16134 * atimer.c (stopped_atimers): New variable.
16135 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
16136 New functions.
16137
16138 * atimer.h (stop_other_atimers, run_all_atimers)
16139 (unwind_stop_other_atimers): Add function prototypes.
16140
16141 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
16142
16143 2000-02-11 Ken Raeburn <raeburn@gnu.org>
16144
16145 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
16146 library may depend on jpeg.
16147 (atimer.o): Depends on atimer.c.
16148
16149 2000-02-11 Kenichi Handa <handa@etl.go.jp>
16150
16151 * insdel.c (del_range_1): Call update_compositions.
16152 (del_range_both): Call update_compositions just once..
16153
16154 2000-02-10 Dave Love <fx@gnu.org>
16155
16156 * xfns.c (create_frame_xic): Fix initialization of automatic
16157 aggregates for pcc.
16158
16159 2000-02-09 Kenichi Handa <handa@etl.go.jp>
16160
16161 * ccl.c (CCL_MAKE_CHAR): New macro.
16162 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
16163 registers by CCL_MAKE_CHAR before calling translate_char.
16164 <CCL_TranslateCharacterConstTbl> Likewise.
16165
16166 2000-02-08 Dave Love <fx@gnu.org>
16167
16168 * lread.c (__EXTENSIONS__): Define.
16169
16170 2000-02-08 Gerd Moellmann <gerd@gnu.org>
16171
16172 * puresize.h (BASE_PURESIZE): Increase to 650000.
16173
16174 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
16175
16176 * msdos.c (XMenuActivate): Turn off the cursor after displaying
16177 the help message.
16178
16179 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
16180
16181 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
16182 md, mh, mb, mr, and me to the fake termcap entry.
16183
16184 2000-02-06 Ken Raeburn <raeburn@gnu.org>
16185
16186 * sound.c (sound_cleanup): Don't call device close routine if the
16187 function pointer is null.
16188
16189 2000-02-06 Andrew Innes <andrewi@gnu.org>
16190
16191 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
16192 around image definitions and prototypes.
16193 (gamma_correct) [WINDOWSNT]: New prototype.
16194
16195 * w32term.c (x_make_frame_visible): Replace call to
16196 input_poll_signal with poll_for_input.
16197
16198 * window.c [WINDOWSNT]: Include w32term.h.
16199
16200 * xdisp.c [WINDOWSNT]: Include w32term.h.
16201
16202 * makefile.nt: Add dependencies on w32gui.h.
16203 (OBJ1): Include atimer.obj.
16204 ($(BLD)\atimer.obj): New dependency rule.
16205
16206 * w32.c (sigmask): New function (does nothing).
16207 (sigunblock): Ditto.
16208
16209 * frame.c [WINDOWSNT]: Include w32term.h.
16210
16211 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
16212
16213 * lread.c (syms_of_lread): Fix literal newlines.
16214
16215 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
16216 the string constant limit (2048 bytes) in MSVC.
16217 (main): Ditto.
16218
16219 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
16220
16221 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
16222 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
16223 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
16224 dispatch the event.
16225
16226 2000-02-04 Dave Love <fx@gnu.org>
16227
16228 * fileio.c: Remove some unused vars.
16229 (_GNU_SOURCE): Define (for euidaccess).
16230
16231 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
16232
16233 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
16234 gcpro1, gcpro2.
16235 (read_minibuf): Deal with allow_props correctly.
16236
16237 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
16238
16239 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
16240
16241 2000-02-03 Ken Raeburn <raeburn@gnu.org>
16242
16243 * search.c (compile_pattern): If a cache entry has a nil regexp,
16244 fill in that entry instead of clobbering a previously cached
16245 string regexp.
16246
16247 2000-02-02 Ken Raeburn <raeburn@gnu.org>
16248
16249 * puresize.h (BASE_PURESIZE): Increase to 610000.
16250
16251 2000-02-02 Gerd Moellmann <gerd@gnu.org>
16252
16253 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
16254 can GC.
16255
16256 2000-02-02 Kenichi Handa <handa@etl.go.jp>
16257
16258 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
16259 instead of incrementing ic directly.
16260 <CCL_WriteExprConst> Likewise.
16261 <ccl_set_expr>: Set ic to jump_address.
16262
16263 * fileio.c (e_write): Fix the handling of
16264 CODING_FINISH_INSUFFICIENT_SRC.
16265
16266 2000-02-01 Dave Love <fx@gnu.org>
16267
16268 * editfns.c (Fpropertize): Doc fix.
16269
16270 * process.c (Fstart_process): Doc fix.
16271
16272 * eval.c: Fix various doc strings not to duplicate information
16273 from help-manyarg-func-alist.
16274
16275 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
16276
16277 * doc.c (Vhelp_manyarg_func_alist): New variable.
16278 (Fdocumentation): Use it.
16279 (syms_of_doc): Define it.
16280
16281 2000-01-31 Gerd Moellmann <gerd@gnu.org>
16282
16283 * xterm.c (xim_open_dpy): Remove unused local variable.
16284
16285 * emacs.c (USAGE): Use term `display options' instead of `X options'.
16286
16287 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
16288 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
16289
16290 * fns.c (sweep_weak_table): New function.
16291 (sweep_weak_hash_tables): Use it. Keep on marking until there
16292 is no more change.
16293
16294 2000-01-30 Gerd Moellmann <gerd@gnu.org>
16295
16296 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
16297 that XTread_socket does not crash by trying to call XNoOp on a
16298 closed display.
16299
16300 2000-01-30 Jason Rumney <jasonr@gnu.org>
16301
16302 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
16303 Change selected_frame to SELECTED_FRAME ().
16304 (w32_console_mouse_position): Remove #ifndef MULE from around
16305 `insist' parameter.
16306
16307 * makefile.nt: Remove dosfns.obj.
16308
16309 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
16310
16311 * w32fns.c (w32_defined_color): Check for valid frame before
16312 applying gamma correction. Eliminate dependency on frame elsewhere.
16313 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
16314 (w32_to_x_font): Use resx and resy not height_in and width_in.
16315 (x_to_w32_font): Doc fix.
16316 (xlfd_strip_height): New function to strip and return font height.
16317 (w32_font_match): Compare height separately from rest of xlfd
16318 spec, using xlfd_strip_height.
16319
16320 * w32term.c (w32_term_init): Swap resx and height_in, resy and
16321 width_in. Use w32_defined_color in place of defined_color.
16322
16323 * w32faces.c: Merge more of DOS and X specifics in preparation for
16324 merge with xfaces.c.
16325 (defined_color): Remove FIXME comment.
16326 (tty_color_name): Provide w32-specific function.
16327 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
16328
16329 * w32console.c (turn_on_face, turn_off_face): Removed.
16330 (w32_face_attributes): New function.
16331 (Global_variables): Reduce scope where possible.
16332 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
16333 fill attribute.
16334 (hl_mode): Don't modify text attributes.
16335 (write_glyphs): Don't do anything if len <= 0. Use
16336 w32_face_attributes to get attributes for drawing. Write
16337 terminating codes using char_attr_normal.
16338 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
16339 (update_begin, update_end): Likewise.
16340 (vga_stdcolor_name): New function.
16341 (initialize_w32_display): Remove char_attr_reverse and char_attr.
16342 (Fset_screen_color): Remove char_attr_reverse.
16343
16344 2000-01-29 Gerd Moellmann <gerd@gnu.org>
16345
16346 * xfns.c (xic_set_preeditarea): Take window parameter and
16347 window-relative pixel-positions.
16348
16349 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
16350 is its frame's selected window.
16351 (xim_instantiate_callback): Likewise.
16352
16353 * xfns.c (x_create_im): Removed.
16354 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
16355 (supported_xim_styles): Renamed from supported_styles.
16356 (best_xim_style): Renamed from best_style.
16357 (create_frame_xic): Renamed from xic_create_frame.
16358 (free_frame_xic): Renamed from xic_destroy_frame.
16359
16360 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
16361
16362 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
16363 our frames, call XFilterEvent with 2nd parameter `None'.
16364 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
16365 returning XBufferOverflow.
16366 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
16367 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
16368 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
16369 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
16370 (xim_initialize, xim_close)
16371 [HAVE_X_I18N && HAVE_X11R6]: New functions.
16372 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
16373 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
16374 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
16375
16376 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
16377 and `xim_styles'.
16378 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
16379 `xic_style' and `xic_xfs'.
16380 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
16381 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
16382 (FRAME_XIM): Removed.
16383
16384 * xfns.c (supported_styles): New variable.
16385 (DEFAULT_STYLE, DEFAULT_FONT): New macros
16386 (xic_create_xfontset, best_style, xic_create_frame)
16387 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
16388 (xic_set_xfontset): New functions.
16389
16390 2000-01-28 Dave Love <fx@gnu.org>
16391
16392 * s/irix6-5.h: Revert last change after change to irix5-0.h.
16393
16394 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
16395
16396 2000-01-28 Gerd Moellmann <gerd@gnu.org>
16397
16398 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
16399 for *scratch* if it already existed.
16400
16401 * emacs.c (USAGE): New macro.
16402 (main): Use it to display usage information.
16403
16404 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
16405
16406 Support for the menu-help feature:
16407
16408 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
16409
16410 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
16411 part of the line to the termscript file.
16412 (IT_clear_to_end): Clear the entire line, not just its beginning.
16413 (menu_help_message, prev_menu_help_message): New variables.
16414 (IT_menu_make_room): Make room for the help_text member.
16415 (IT_menu_display): New argument disp_help; all callers changed.
16416 If disp_help is non-zero, store the help text of the active menu
16417 item in menu_help_message.
16418 (XMenuAddPane): Initialize the help_text member to NULL.
16419 (XMenuAddSelection): New argument help_text. Store it in the
16420 XMenu structure.
16421 (XMenuActivate): New argument help_callback. If the value of
16422 menu_help_message has changed since the last time, display the
16423 menu help message text while waiting for the mouse to move. Clear
16424 the echo area before exiting.
16425 (XMenuDestroy): Free the help_text member.
16426
16427 2000-01-27 Gerd Moellmann <gerd@gnu.org>
16428
16429 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
16430 XMenuAddSelection. Pass help callback to XMenuActivate.
16431 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
16432
16433 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
16434
16435 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
16436 and EMACS_SET_USECS.
16437
16438 2000-01-26 Dave Love <fx@gnu.org>
16439
16440 * editfns.c (Fchar_after, Fchar_before): Doc fix.
16441
16442 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
16443 an error may be signalled.
16444
16445 2000-01-26 Gerd Moellmann <gerd@gnu.org>
16446
16447 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
16448 LD_SWITCH_SYSTEM inherited from irix5-0.h.
16449
16450 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
16451
16452 2000-01-25 Gerd Moellmann <gerd@gnu.org>
16453
16454 * charset.c (Fstring): If there is a multibyte char among
16455 the args, always return a multibyte string.
16456
16457 2000-01-25 Gerd Moellmann <gerd@gnu.org>
16458
16459 * sysdep.c (sys_select): Turn atimers off and on instead of
16460 recording and restoring old alarm handler
16461
16462 * process.c (toplevel): Include atimer.h.
16463 (create_process_1): Rewritten.
16464 (create_process): Use atimers instead of alarm.
16465 (wait_reading_process_input) [hpux]: Turn atimers off instead
16466 of turning off SIGALRM.
16467 (wait_reading_process_input): Turn off atimers instead off
16468 calling stop_polling.
16469
16470 * emacs.c (main): Call init_atimer.
16471
16472 * keyboard.c (toplevel): Include systime.h and atimer.h.
16473 (polling_for_input): Removed because unused.
16474 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
16475 (poll_timer): New variable.
16476 (poll_for_input, poll_for_input_1): New functions.
16477 (start_polling, stop_polling): Rewritten.
16478
16479 * keyboard.h (polling_for_input): Removed.
16480
16481 * atimer.h, atimer.c: New files.
16482
16483 * Makefile.in (obj): Add atimer.o.
16484 (atimer.o): New target.
16485
16486 * blockinput.h (pending_atimers): Add extern declaration.
16487 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
16488
16489 * lisp.h (popup_activated_flag): Add extern declaration.
16490
16491 * xmenu.c (popup_activated_flag): Make externally visible.
16492 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
16493 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
16494
16495 * xterm.c (toplevel): Include atimer.h.
16496 (toolkit_scroll_bar_interaction): New variable.
16497 (Fxt_process_timeouts): Removed.
16498 (x_process_timeouts): New function.
16499 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
16500 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
16501 (x_make_frame_visible): Call poll_for_input_1 instead of
16502 input_poll_signal. Don't call alarm.
16503 (x_initialize): Install timer calling x_process_timeouts.
16504
16505 2000-01-24 Dave Love <fx@gnu.org>
16506
16507 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
16508 Don't use -cckr -- apparently not now necessary.
16509
16510 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
16511
16512 * msdos.c (IT_menu_display): Truncate long menu lines at the right
16513 screen boundary.
16514
16515 2000-01-23 Jason Rumney <jasonr@gnu.org>
16516
16517 * w32fns.c (w32_defined_color): Apply gamma correction before
16518 trying to map to the palette.
16519 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
16520 to w32_clear_rect.
16521
16522 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
16523 here. Callers changed to always pass real device context.
16524 (w32_draw_bitmap): Likewise.
16525 (w32_get_glyph_overhangs): Likewise.
16526 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
16527 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
16528 pfnSetScrollInfo and SetScrollRange.
16529 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
16530 back into MULE characters after decoding them.
16531 (x_get_glyph_face_and_encoding): Likewise.
16532 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
16533 GetCharABCWidthsW fails, since this is defined on Windows 9x.
16534 (x_produce_glyphs): Calculate per char metrics for a character
16535 that we know exists in default font when font_not_found_p is true.
16536
16537 2000-01-22 Jason Rumney <jasonr@gnu.org>
16538
16539 * makefile.nt (intervals.obj, composite.obj): New modules.
16540 (composite.h): Added as dependency where appropriate.
16541
16542 * w32gui.h (XGCValue): New struct for emulating X GCs.
16543
16544 * w32term.h (XCharStruct): New struct for emulating X.
16545
16546 * w32console.c (turn_on_face, turn_off_face): New functions.
16547 (change_line_highlight): New prototype for new redisplay.
16548 (write_glyphs): Support multibyte text. Support faces.
16549
16550 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
16551
16552 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
16553 throughout. struct frame * in place of FRAME_PTR.
16554 Skeleton support for images, toolbars, tooltips from xfns.c.
16555 (Fx_create_frame): Use system default for default scroll bar width.
16556 (w32_get_arg): Renamed from x_get_arg.
16557 (Fx_file_dialog): New function.
16558 (w32_list_fonts): Check cache before asking system.
16559 (Vw32_enable_synthesized_fonts): New variable.
16560 (Vw32_enable_italics): Obsolete, removed.
16561
16562 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
16563 Use SELECTED_FRAME macro.
16564
16565 * w32menu.c: Add skeleton support for help strings on menus.
16566 (add_menu_item): Native checkbox and radio support added, but not
16567 yet enabled due to bugs.
16568 (push_menu_item): Add parameters type, selection and help.
16569 Callers updated.
16570 Formatting changes to reduce unnecessary diffs with xmenu.c.
16571
16572 * w32select.c (Fw32_set_clipboard_data): Update call to
16573 find_charset_in_str.
16574
16575 * w32term.c: Complete rewrite for new redisplay based on new
16576 xterm.c with necessary sections merged back in from old w32term.c.
16577
16578 2000-01-21 Richard M. Stallman <rms@gnu.org>
16579
16580 * data.c (set_internal): Further fix in same criterion.
16581
16582 2000-01-20 Richard M. Stallman <rms@gnu.org>
16583
16584 * data.c (set_internal): Fix the criteria for whether
16585 to swap out the old cached binding.
16586
16587 2000-01-19 Dave Love <fx@gnu.org>
16588
16589 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
16590
16591 2000-01-18 Kenichi Handa <handa@etl.go.jp>
16592
16593 * regex.c (re_compile_fastmap): While checking a range table for
16594 `charset', skip flag bits for a character class correctly.
16595
16596 2000-01-17 Gerd Moellmann <gerd@gnu.org>
16597
16598 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
16599
16600 * xfns.c (x_window): Call lw_create_widget with new parameter list.
16601
16602 * widget.c (EmacsFrameSetCharSize): Change size of children first
16603 because of problems with main window geometry management under Lesstif.
16604
16605 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
16606 MENU_ITEMS_ITEM_.*.
16607 (MENU_ITEMS_ITEM_HELP): New enumerator.
16608 (push_menu_item): Add parameter HELP. Record help in menu_items.
16609 (single_menu_item, single_submenu, list_of_items): Call
16610 push_menu_item with new parameter.
16611 (single_submenu): Set help string in widget value.
16612 (menu_highlight_callback): New function.
16613 (set_frame_menubar): Call lw_create_widget with new
16614 parameter list.
16615 (xmenu_show, xdialog_show): Ditto.
16616
16617 2000-01-13 Gerd Moellmann <gerd@gnu.org>
16618
16619 * sound.c (Fplay_sound): Improve doc string.
16620
16621 2000-01-11 Richard M. Stallman <rms@gnu.org>
16622
16623 * lisp.h (set_internal): Enter the new arg.
16624
16625 * eval.c (specbind): Record buffer-local variables specially,
16626 indicating which buffer's binding was saved.
16627 (unbind_to): Restore buffer-local variables specially
16628 in the proper buffer.
16629
16630 * data.c (set_internal): New arg BUF.
16631
16632 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
16633 * data.c (Fset): Pass new arg to set_internal.
16634 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
16635
16636 2000-01-11 Gerd Moellmann <gerd@gnu.org>
16637
16638 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
16639
16640 2000-01-11 Richard M. Stallman <rms@gnu.org>
16641
16642 * minibuf.c (Ftry_completion): Doc fix.
16643
16644 2000-01-11 Gerd Moellmann <gerd@gnu.org>
16645
16646 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
16647 vector, too.
16648
16649 2000-01-11 Andreas Schwab <schwab@suse.de>
16650
16651 * coding.c (code_convert_region): Initialize total_skip.
16652
16653 2000-01-08 Dave Love <fx@gnu.org>
16654
16655 * eval.c (Fuser_variable_p): Check customizability too.
16656
16657 2000-01-07 Gerd Moellmann <gerd@gnu.org>
16658
16659 * minibuf.c (Fcompleting_read): Doc fix.
16660
16661 2000-01-05 Gerd Moellmann <gerd@gnu.org>
16662
16663 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
16664 -L /usr/local/lib.
16665
16666 * xfns.c (x_create_im): New function to set IM and IC of a frame.
16667 Check that input style is supported before trying to create an
16668 IC for it.
16669 (x_window): Call x_create_im.
16670
16671 2000-01-04 Gerd Moellmann <gerd@gnu.org>
16672
16673 * xfns.c (current_gif_memory_src): New variable.
16674 (gif_load): Record the address of the current memory source
16675 in current_gif_memory_src.
16676 (gif_read_from_memory): Use current_gif_memory_src.
16677
16678 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
16679 macros statement form.
16680
16681 * sound.c (struct sound): Renamed from struct sound_file.
16682 (struct sound): Add members `data' and `header_size'.
16683 (enum sound_attr): Add SOUND_DATA.
16684 (current_sound, current_sound_device): Variables renamed from
16685 sound_file and sound_device.
16686 (parse_sound): Parse :data.
16687 (parse_sound): Handle sound data in strings.
16688 (find_sound_type): Function renamed from find_sound_file_type.
16689 (wav_init, au_init): Fail if sound's header_size is smaller than
16690 needed header size.
16691 (wav_play, au_play): Play sounds from string data.
16692
16693 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
16694
16695 * lisp.h: Add prototype for allocate_string_data.
16696
16697 * alloc.c (Fgarbage_collect): Return number of live and free strings.
16698
16699 * alloc.c (mark_buffer): Remove code in #if 0.
16700 (gc_sweep): Ditto.
16701 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
16702 (strings_consed): New variable.
16703 (allocate_string): Set it.
16704 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
16705 (Fmemory_use_counts): Return strings_consed. Use Flist.
16706
16707 * alloc.c: General cleanup in comments etc. Remove conditional
16708 compilation for `standalone'.
16709
16710 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
16711
16712 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
16713 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
16714 (DONT_COPY_FLAG): Removed.
16715 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
16716 (struct sdata, struct sblock): New
16717 (struct string_block): Rewritten.
16718 (STRINGS_IN_STRING_BLOCK): New macro.
16719 (oldest_sblock, current_sblock, total_strings, total_free_strings)
16720 (large_sblocks, string_blocks, string_free_list): New variables.
16721 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
16722 (init_strings): Rewritten.
16723 (allocate_string, allocate_string_data, compact_small_strings)
16724 (free_large_strings, sweep_strings): New functions.
16725 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
16726 (struct string_block_head, current_string_block)
16727 (first_string_block, large_string_blocks, STRING_FULLSIZE)
16728 (STRING_PAD): Removed.
16729 (make_uninit_multibyte_string, make_pure_string): Rewritten.
16730 (Fgarbage_collect): Don't set mark bit in large strings.
16731 (mark_object): Mark strings differently. Mark symbol names
16732 differently.
16733 (survives_gc_p): Test marked strings differently.
16734 (gc_sweep): Sweep strings differently, unmark strings in
16735 symbol names.
16736 (compact_strings): Removed.
16737
16738 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
16739
16740 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
16741 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
16742
16743 2000-01-04 Kenichi Handa <handa@etl.go.jp>
16744
16745 * fileio.c (Finsert_file_contents): Signal error if visiting file
16746 in a non-empty buffer.
16747
16748 * term.c (encode_terminal_code): Fix the previous change.
16749
16750 2000-01-03 Gerd Moellmann <gerd@gnu.org>
16751
16752 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
16753 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
16754
16755 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
16756
16757 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16758
16759 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
16760 need to test for MSDOS frames.
16761
16762 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16763
16764 * dosfns.c (unspecified_colors): Remove.
16765 (msdos_stdcolor_idx): Use global variables unspecified_fg and
16766 unspecified_bg.
16767 (msdos_stdcolor_name): Return strings for unspecified fore- and
16768 back-ground colors.
16769
16770 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
16771 (syms_of_xfaces): Remove their staticpro's.
16772 (tty_color_name): Return Lisp strings for unspecified fore- and
16773 back-ground colors.
16774 (Finternal_set_lisp_face_attribute): Remove the special treatment
16775 for Qunspecified_{f,b}g.
16776 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
16777
16778 2000-01-03 Gerd Moellmann <gerd@gnu.org>
16779
16780 * xdisp.c (reseat_at_next_visible_line_start): Position before
16781 newline only if ending up on a newline.
16782 (next_element_from_ellipsis): Return success. Handle case of
16783 displaying no ellipsis. Fix case of ellipsis defined in display table.
16784 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
16785 returns 0.
16786
16787 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16788
16789 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
16790 (Fcolor_supported_p): Renamed from face-color-supported-p.
16791
16792 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16793
16794 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
16795 list of colors renamed to tty-defined-color-alist.
16796 (tty_color_name): Pass the frame to tty-color-by-index.
16797 (realize_tty_face): tty-color-alist is now a function which
16798 accepts the frame as argument.
16799
16800 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
16801
16802 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16803
16804 * term.c (insert_glyphs): Pass glyph, not &glyph, to
16805 encode_terminal_code.
16806
16807 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16808
16809 * dispnew.c (mode_line_string): Support termcap frames as well.
16810
16811 2000-01-01 Gerd Moellmann <gerd@gnu.org>
16812
16813 * syntax.c (Fforward_word): Undo previous change.
16814
16815 * editfns.c (Fconstrain_to_field): Don't constrain if
16816 inhibit-field-text-motion is non-nil.
16817 (Fline_beginning_position): Undo previous change.
16818 (Fline_end_position): Ditto.
16819
16820 * syntax.c (Fforward_word): Notice field boundaries only if
16821 inhibit-field-text-motion is nil.
16822
16823 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
16824
16825 * editfns.c (Vinhibit_field_text_motion): New variable.
16826 (inhibit-field-text-motion): New DEFVAR_LISP.
16827 (Fline_beginning_position, Fline_end_position): Notice field
16828 boundaries only if inhibit-field-text-motion is nil.
16829
16830 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
16831 All calls adjusted.
16832 (x_build_heuristic_mask): Likewise.
16833 (xbm_load_image_from_file): Change error output.
16834 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
16835 (gif_load, gs_load, x_kill_gs_process): Ditto.
16836
16837 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
16838 color indices when accessing raster pixels.
16839 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
16840 one of :file or :data.
16841 (enum pbm_keyword_index): Add PBM_DATA.
16842 (pbm_format): Add :data.
16843 (pbm_image_p): Allow either :file or :data.
16844 (pbm_read_file): New function.
16845 (pbm_scan_number): Rewritten to read from string.
16846 (pbm_load): Support :data.
16847
16848 See ChangeLog.8 for earlier changes.
16849
16850 ;; Local Variables:
16851 ;; coding: iso-2022-7bit
16852 ;; End:
16853
16854 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
16855 Copying and distribution of this file, with or without modification,
16856 are permitted provided the copyright notice and this notice are preserved.