1 2002-05-25 Dave Love <fx@gnu.org>
3 * fontset.c (Ffontset_info): Doc fix. Return charset names, not
5 (font-encoding-alist): Doc fix.
7 2002-05-24 Dave Love <fx@gnu.org>
9 * term.c (costs_set): Declare static, non-initialized for pcc.
10 (encode_terminal_code): Remove ensued var.
12 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
15 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
17 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18 (suffixes): Moved out of make_subsidiaries for K&R.
20 * charset.c (map_charset_chars): Fix c_function declaration for
23 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
25 2002-05-23 Dave Love <fx@gnu.org>
27 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
29 * category.c (Fmodify_category_entry): Doc fix. Remove unused
32 2002-05-23 Yong Lu <lyongu@asia-infonet.com>
34 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
36 * coding.c (Fdefine_coding_system_internal): Fix previous change.
37 (decode_coding_charset): Workaround for the bug of GCC 2.96.
39 2002-05-23 Kenichi Handa <handa@etl.go.jp>
41 * Makefile.in (lisp): Change cyrillic.elc to cyrillic.el,
42 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
43 (shortlisp): Likewise.
45 2002-05-22 Kenichi Handa <handa@etl.go.jp>
47 * coding.c (decode_coding_charset): Adjusted for the change of
48 Fdefine_coding_system_internal.
49 (Fdefine_coding_system_internal): For a coding system of
50 `charset' type, store a list of charset IDs in
51 `charset_attr_charset_valids' element of coding attributes.
53 * charset.c (Fmake_char): Fix previous change.
55 2002-05-21 Kenichi Handa <handa@etl.go.jp>
57 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
58 (emacs_mule_char): New arg src. Delete arg `composition'. Caller
59 changed. Handle 2-byte and 3-byte charsets correctly.
60 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Renamed from
61 DECODE_EMACS_MULE_COMPOSITION_RULE. Caller changed.
62 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
63 (DECODE_EMACS_MULE_21_COMPOSITION): Call
64 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
66 (decode_coding_emacs_mule): Handle composition correctly. Rewind
67 `src' and `consumed_chars' correctly before calling
69 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
70 and alt&rule composition.
71 (decode_coding_iso_2022): Handle composition correctly.
72 (init_coding_once): Setup emacs_mule_bytes for private charsets.
74 * charset.c (Fdefine_charset_internal): Fix bug for the case of
75 re-defining a charset. If the charset has :emacs-mule-id, setup
77 (Fmake_char): If CODE1 is nil, use the minimum code of the
80 2002-05-20 Kenichi Handa <handa@etl.go.jp>
82 * coding.c (encode_coding_iso_2022): If coding requires safe
83 encoding, produce a character specified by
84 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
85 (encode_coding_sjis): Likewise.
86 (encode_coding_big5): Likewise.
87 (encode_coding_charset): Likewise.
89 2002-05-17 Dave Love <fx@gnu.org>
91 * xterm.c (XSetIMValues): Declare.
93 * process.c: Conditionally include sys/wait.h, pty.h.
95 * print.c (print_object): Fix print format for 64-bit
98 * keyboard.c (modify_event_symbol): Fix print format for 64-bit
101 * buffer.c (emacs_strerror): Declare.
102 (MMAP_ALLOCATED_P, mmap_enlarge, syms_of_buffer): Import changes
105 * fontset.c (Fclear_face_cache): Declare.
106 (accumulate_font_info): Commented-out (unused).
107 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
110 * character.h (string_escape_byte8): Declare.
112 * charset.c (load_charset_map, load_charset_map_from_file): Remove
114 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
115 (Fmap_charset_chars): Doc fix.
117 * coding.c (Vchar_coding_system_table, Qchar_coding_system):
119 (Fset_coding_system_priority, Fset_coding_system_priority)
120 (Fdefine_coding_system_internal): Doc fix.
122 2002-05-16 Dave Love <fx@gnu.org>
124 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
126 2002-05-16 Kenichi Handa <handa@etl.go.jp>
128 * character.c (string_escape_byte8): Make multibyte string with
131 * charset.c (Fmake_char): Delete unnecessary code.
133 2002-05-14 Kenichi Handa <handa@etl.go.jp>
135 * xfns.c (x_encode_text): Allocate coding.destination here, and
136 call encode_coding_object with dst_object Qnil.
138 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
139 multibyte form correctly.
141 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
142 against Vfont_encoding_alist.
144 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
145 handling of charset list.
146 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
147 (decode_coding_object): Move point to coding->dst_pos before
148 calling post-read-conversion function.
149 (encode_coding_object): Give correct arguments to
150 pre-write-conversion. Ignore the return value of
151 pre-write-conversion function. Pay attention to the case that
152 pre-write-conversion changes the current buffer. If dst_object is
153 Qt, even if coding->src_bytes is zero, allocate at least one byte
154 to coding->destination.
156 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
158 * charset.c (Fmake_char): Make it more backward compatible.
159 (Fmap_charset_chars): Fix docstring.
161 2002-05-13 Dave Love <fx@gnu.org>
163 * coding.c: Doc fixes.
164 (Fdefine_coding_system_alias): Use names, not symbols, in
167 2002-05-13 Kenichi Handa <handa@etl.go.jp>
169 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
170 of calling free_realized_face.
172 2002-05-10 Yong Lu <lyongu@asia-infonet.com>
174 * charset.c (load_charset_map): Fix previous change.
175 (read_hex): Don't treat SPC as a comment starter.
176 (decode_char): If CODE_POINT_TO_INDEX retruns -1, always return
178 (Fdecode_char): Fix typo.
180 2002-05-10 Kenichi Handa <handa@etl.go.jp>
182 * charset.h (struct charset): New member `code_space_mask'.
184 * coding.c (coding_set_source): Delete the local variable
186 (encode_coding_charset): Delete the local variable charset.
187 (Fdefine_coding_system_internal): Likewise.
188 (Fdefine_coding_system_internal): Setup
189 attrs[coding_attr_charset_valids] correctly.
191 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
192 member to check if CODE is valid or not.
193 (Fdefine_charset_internal): Initialize `code_space_mask' member.
194 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
195 is within the range of charset->min_code and carset->max_code.
197 2002-05-09 Dave Love <fx@gnu.org>
199 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
201 * dispextern.h (generate_ascii_font): Fix return type.
203 * xfaces.c (generate_ascii_font): Fix arg declaration.
205 * coding.c (coding_inherit_eol_type)
206 (Fset_terminal_coding_system_internal)
207 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
209 2002-05-08 Kenichi Handa <handa@etl.go.jp>
211 * coding.c (decode_coding_charset, encode_coding_charset): Handle
212 multiple charsets correctly.
214 2002-05-07 Kenichi Handa <handa@etl.go.jp>
216 * search.c (boyer_moore): Fix handling of mulitbyte character
219 * xdisp.c (display_mode_element): When the variable `elt' is
220 changed, update `this' and `lisp_string'.
222 2002-05-07 Kenichi Handa <handa@etl.go.jp>
224 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
226 * callproc.c (Fcall_process): Be sure to give the current buffer
227 to decode_coding_c_string. Update PT and PT_BYTE after the
230 * charset.c (struct charset_map_entries): New struct.
231 (load_charset_map): Renamed from parse_charset_map. New args
232 entries and n_entries. Caller changed.
233 (load_charset_map_from_file): Renamed from load_charset_map.
234 Caller changed. New arg control_flag. Call load_charset_map at
236 (load_charset_map_from_vector): New function.
237 (Fdefine_charset_internal): Setup charset.compact_codes_p.
238 (encode_char): If the charset is compact, change a character index
241 * coding.c (coding_alloc_by_making_gap): Check the case that the
242 source and destination are the same correctly.
243 (decode_coding_raw_text): Set coding->consumed_char and
244 coding->consumed to 0.
245 (produce_chars): If coding->chars_at_source is nonzero, update
246 coding->consumed_char and coding->consumed before calling
248 (Fdefine_coding_system_alias): Register ALIAS in
249 Vcoding_system_alist.
250 (syms_of_coding): Define `no-convesion' coding system at the tail.
252 * fileio.c (Finsert_file_contents): Set coding_system instead of
253 val. If the current buffer is multibyte, always call
256 * xfaces.c (try_font_list): Give higher priority to fontset's
257 family than face's family.
259 2002-04-18 Kenichi Handa <handa@etl.go.jp>
261 * callproc.c (Fcall_process): Be sure to give the current buffer
262 to decode_coding_c_string.
264 * xfaces.c (try_font_list): Give a family specified in a fontset
265 higher priority than a family specified in a face.
267 2002-04-09 Kenichi Handa <handa@etl.go.jp>
269 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
270 Fix arguments to insert_from_buffer.
272 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
274 2002-03-11 Kenichi Handa <handa@etl.go.jp>
276 * coding.c (produce_chars): Set the variable `multibytep' correctly.
277 (decode_coding_gap): Set coding->dst_multibyte correctly.
279 2002-03-07 Kenichi Handa <handa@etl.go.jp>
281 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
282 (decode_coding_utf_16): Fix converting high and low bytes to
284 (encode_coding_utf_16): Substitute coding->default_char for
285 non-Unicode characters.
286 (decode_coding): Don't call record_insert here.
287 (setup_coding_system): Initialize `surrogate' of
288 coding->spec.utf_16 to 0.
289 (EMIT_ONE_BYTE): Fix for multibyte case.
291 * insdel.c (insert_from_gap): Call record_insert.
293 2002-03-04 Kenichi Handa <handa@etl.go.jp>
295 * casefiddle.c (casify_region): Fix multibyte case.
297 * character.c (c_string_width): Add return type `int'.
298 (char_string_with_unification): Arg ADVANCED deleted.
300 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
301 (CHAR_STRING): Adjusted for the change of
302 char_string_with_unification.
303 (CHAR_STRING_ADVANCE): Make it do-while statement.
305 * chartab.c (sub_char_table_set_range): Optimized for the case
306 DEPTH == 3. Add workaround code for a GCC optimization bug.
308 * charset.c (parse_charset_map): Remove an unused variable.
310 * coding.c: Delete unused variables.
312 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
313 earlier. If inserted is zero and the coding system doesn't
314 require flushing, don't call decode_coding_gap.
316 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
318 2002-03-01 Kenichi Handa <handa@etl.go.jp>
320 The following changes are for using Unicode as an internal
321 character model, and use UTF-8 format for buffer/string
324 * .gdbinit (xchartable): Adjusted for the change of char table
326 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
328 * Makefile.in (obj): Add character.o and chartab.o.
329 (lisp, shortlisp): Remove utf-8.elc:
330 (*.o): For many files, change dependency on charset.h to
331 character.h, and add dependency on character.h.
332 (character.o, chartab.o): New targets.
334 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c,
335 doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c,
336 w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
339 * dired.c, filelock.c: Include "character.h".
341 * alloc.c: Include "character.h" instead of "charset.h".
342 (Fmake_char_table): Moved to chartab.c.
343 (make_sub_char_table): Likewise.
344 (syms_of_alloc): Remove defsubr for Smake_char_table.
346 * buffer.c: Include "character.h" instead of "charset.h", don't
348 (Fset_buffer_multibyte): Adjuted for UTF-8.
350 * buffer.h: EXFUN Fbuffer_live_p.
352 * callproc.c: Include "character.h" instead of "charset.h".
353 (Fcall_process): Big change for the new code-conversion APIs.
355 * casetab.c: Include "character.h" instead of "charset.h".
356 (set_canon, set_identity, shuffle): Adjusted for the new
358 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
359 accessing the char table structure.
361 * chartab.c: New file that implements char table.
363 * category.c: Include "character.h".
364 (copy_category_entry): New function.
365 (copy_category_table): Call map_char_table and copy_category_entry.
366 (Fmake_category_table): Initialize all top-vel slots.
367 (char_category_set): New function.
368 (modify_lower_category_set): Deleted.
369 (Fmodify_category_entry): Call char_table_ref_and_range.
371 * category.h (CATEGORY_SET): Just call char_category_set.
373 * ccl.c: Include "character.h".
374 (Qccl, Qcclp): New variables.
375 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
377 (CCL_WRITE_MULTIBYTE_CHAR): Deleted.
378 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjusted for the change of SRC
380 (ccl_driver): Types of arguments changed. Code adjusted for that.
381 (Fccl_execute, Fccl_execute_on_string): Adjusted for the change of
383 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
385 * ccl.h (struct ccl_program): Members eol_type and multibyte
386 deleted. New members src_multibyte, dst_multibyte, consumed, and
388 (struct ccl_spec): Members decoder and encoder deleted. New
390 (CODING_SPEC_CCL_PROGRAM): New macro.
391 (ccl_driver): Prototype updated.
392 (Qccl, Qcclp, Fccl_program_p): Extern them.
393 (CHECK_CCL_PROGRAM): New macro.
395 * character.c, character.h, chartab.c: New files.
397 * charset.c: Mostly re-written. Character and multibyte sequence
398 handling codes are moved to character.c.
400 * charset.h: Mostly re-written. Character and multibyte sequence
401 handling codes are moved to character.h.
403 * coding.c, coding.h: Mostly re-written.
405 * composite.c: Include "character.h" instead of "charset.h".
406 (CHAR_WIDTH): Moved to character.h.
407 (HASH_KEY, HASH_VALUE): Deleted.
409 * composite.h (enum composition_method): Order of enumeration
412 * data.c: Include "character.h" instead of "charset.h".
413 (Faref): Call CHAR_TABLE_REF for a char table.
414 (Faset): Call CHAR_TABLE_SET for a char table.
416 * dispextern.h (free_realized_face, check_face_attribytes,
417 generate_ascii_font): Extern them.
418 (free_realized_multibyte_face): Extern deleted.
420 * disptab.h (DISP_CHAR_VECTOR): Adjusted for the change of char
423 * editfns.c: Include "character.h" instead of "charset.h".
424 (Fchar_to_string): Always call CHAR_STRING.
426 * emacs.c (main): Call init_charset_once, init_charset,
427 syms_of_chartab, and syms_of_character.
429 * fileio.c: Include "character.h" instead of "charset.h".
430 (Finsert_file_contents): Big change for the new code-conversion
432 (choose_write_coding_system): Likewise.
433 (Fwrite_region): Likewise.
434 (build_annotations_2): Deleted.
435 (e_write): Big change for the new code-conversion API.
437 * fns.c: Include "character.h" instead of "charset.h".
438 (copy_sub_char_table): Moved to chartab.c.
439 (Fcopy_sequence): Call copy_char_table for a char table.
440 (concat): Delete codes calling count_multibyte.
441 (string_char_to_byte): Adjusted for the new multibyte form.
442 (string_byte_to_char): Likewise.
443 (internal_equal): Adjusted for the change of char table structure.
444 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent,
445 Fchar_table_extra_slot, Fset_char_table_extra_slot,
446 Fchar_table_range, Fset_char_table_range, Fset_char_table_default,
447 char_table_translate, optimize_sub_char_table,
448 Foptimize_char_table, map_char_table, Fmap_char_table): Moved to
450 (char_table_ref_and_index): Deleted.
451 (HASH_KEY, HASH_VALUE): Moved to lisp.h.
452 (Fmd5): Call preferred_coding_system instead of accessing
453 Vcoding_category_list. Adjusted for the new code-conversion API.
454 (syms_of_fns): Defsubr for char table related functions moved to
457 * fontset.c: Mostly re-written.
459 * fontset.h (struct font_info): Type of the member encoding_type
461 (enum FONT_SPEC_INDEX): New enum.
462 (fontset_font_pattern, fs_load_font): Prototype updated.
463 (FS_LOAD_FONT): Adjusted for the change of fs_load_font.
465 * indent.c: Include "character.h" instead of "charset.h".
466 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of
469 * insdel.c: Include "character.h" instead of "charset.h".
470 (copy_text): Don't refer to Vnonascii_translation_table.
471 (insert_from_gap): New function.
473 * keyboard.c: Include "character.h" instead of "charset.h".
474 (command_loop_1): Never call direct_output_forward_char before
475 a non-ASCII character.
476 (read_char): If Vkeyboard_translate_table is a char table, always
477 translated a character.
479 * keymap.c: Include "character.h".
480 (store_in_keymap): Handle the case that IDX is a cons.
481 (Fdefine_key): Handle the case that KEY is a cons and the car part
482 is also a cons (range).
483 (push_key_description): Adjusted for the new character code.
484 (describe_vector): Call describe_char_table for a char table.
485 (describe_char_table): New function.
487 * keymap.h (describe_char_table): Extern it.
489 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
490 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
491 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS,
492 SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
494 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjusted for the new char table
496 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
497 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2,
498 CHARTAB_SIZE_BITS_3): New macros.
499 (chartab_size): Extern it.
500 (struct Lisp_Char_Table): Re-designed.
501 (struct Lisp_Sub_Char_Table): New structure.
502 (HASH_KEY, HASH_VALUE): Moved from fns.c.
503 (CHARACTERBITS): Defined as 22.
504 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the above change.
505 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
506 (GC_SUB_CHAR_TABLE_P): New macro.
507 (Fencode_coding_string, Fdecode_coding_string): EXFUN Updated.
508 (code_convert_string_norecord): Extern deleted.
509 (init_character_once, syms_of_character, init_charset,
510 syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
512 * lread.c: Include "character.h".
513 (read_multibyte): New arg NBYTES.
514 (read_escape): The meaning of returned *BYTEREP changed.
515 (to_multibyte): Deleted.
516 (read1): Adjuted the handling of char table and string.
518 * print.c: Include "character.h" instead of "charset.h".
519 (print_string): Convert 8-bit raw bytes to octal form by
521 (print_object): Adjusted for the new multibyte form. Print 8-bit
522 raw bytes always in octal form. Handle sub char table correctly.
524 * process.c: Include "character.h" instead of "charset.h".
525 (read_process_output): Adjusted for the new code-conversion API.
526 (send_process): Likewise.
528 * puresize.h (BASE_PURESIZE): Increased.
530 * regex.c: Include "character.h" instead of "charset.h".
531 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
532 (regex_compile): Accept a range whose starting and ending
533 character have different leading bytes.
534 (analyse_first): Adjusted for the above change.
536 * search.c: Include "character.h" instead of "charset.h".
537 (search_buffer, boyer_moore): Adjusted for the new multibyte form.
538 (Freplace_match): Adjusted for the change of
539 multibyte_char_to_unibyte.
541 * syntax.c: Include "character.h" instead of "charset.h".
542 (syntax_parent_lookup): Deleted.
543 (Fmodify_syntax_entry): Accept a cons as CHAR.
544 (skip_chars): Adjusted for the new multibyte form.
545 (init_syntax_once): Call char_table_set_range instead of directly
546 accessing the structure of a char table.
548 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
549 (SYNTAX_ENTRY_FOLLOW_PARENT): Macro deleted.
550 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
551 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
553 * term.c: Include "buffer.h" and "character.h".
554 (encode_terminal_code): Adjusted for the new code-conversion API.
555 (write_glyphs): Likewise.
556 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
558 * w32term.c (x_new_font): Adjusted for the change of FS_LOAD_FONT.
560 * xdisp.c: Include "character.h".
561 (get_next_display_element): Adjusted for the new multibyte form.
562 (disp_char_vector): Adjusted for the new char table structure.
563 (decode_mode_spec_coding): Adjusted for the new structure of
565 (decode_mode_spec): Adjusted for the new code-conversion API.
567 * xfaces.c: Include "character.h" instead of "charset.h".
568 (load_face_font): Adjusted for the change of choose_face_font and
570 (generate_ascii_font): New function.
571 (set_lface_from_font_name): Adjusted for the change of
573 (set_font_frame_param): Adjusted for the change of
575 (free_realized_face): Make it public.
576 (free_realized_faces_for_fontset): Renamed from
577 free_realized_multibyte_face. Free also faces realized for ASCII.
578 (choose_face_font): Argments changed. Adjusted for the change of
579 fontset_font_pattern and FS_LOAD_FONT.
581 * xfns.c: Include "character.h".
582 (x_encode_text): Adjusted for the new code-conversion API.
584 * xselect.c: Don't include "charset.h".
585 (selection_data_to_lisp_data): Adjusted for the new code
588 * xterm.c: Include "character.h".
589 (x_encode_char): New argument CHARSET. Caller changed.
590 (x_get_char_face_and_encoding): Call ENCODE_CHAR instead of
592 (x_get_glyph_face_and_encoding): Likewise.
593 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
594 CHAR_WIDTH instead of CHARSET_WIDTH.
595 (XTread_socket): Adjusted for the new code-conversion API.
596 (x_new_font): Adjusted for the change of FS_LOAD_FONT.
597 (x_load_font): Adjusted for the change of struct font.
599 2002-02-26 Kim F. Storm <storm@cua.dk>
601 The following changes add a new Vminibuf_selected_window variable
602 which is similar to Vminibuf_scroll_window, but which is only set
603 on entry to the minibuffer (from a non-minibuffer window):
605 * window.c: (Vminibuf_selected_window): New variable.
606 (struct save_window_data): New member minibuf_selected_window.
607 (Fset_window_configuration): Restore Vminibuf_selected_window.
608 (Fcurrent_window_configuration): Save Vminibuf_selected_window.
609 Set minibuf_scroll_window member to nil if minibuf_level is 0.
610 (compare_window_configurations): Compare minibuf_selected_window.
612 * window.h: (Vminibuf_selected_window): Declare extern.
614 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first
615 entry to minibuffer or on entry from a non-minibuffer window.
617 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with
618 Vminibuf_selected_window instead of Vminibuf_scroll_window.
620 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window
621 instead of Vminibuf_scroll_window when deciding in which window
622 the region should be highlighted. Consequently, the region remains
623 highlighteded even when a completion buffer is also displayed.
625 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
627 * fileio.c (Fsubstitute_in_file_name): Fix the change from
630 * xselect.c (Qcompound_text_with_extensions): Renamed from
631 Qcompound_text_no_extensions.
632 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
634 2002-02-26 Juanma Barranquero <lektu@terra.es>
636 * w32proc.c (syms_of_ntproc): Doc fix.
638 2002-02-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
640 * intervals.h: Include "dispextern.h" unconditionally.
642 2002-02-24 Jason Rumney <jasonr@gnu.org>
644 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc
646 (lisp): Add emacs-lisp/backquote.elc.
648 2002-02-24 Kim F. Storm <storm@cua.dk>
650 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch:
651 The validation of the event type was too strict as it didn't
652 allow string events; buffer names are used in bindings for
653 menu-bar-select-buffer (see `menu-bar-update-buffers').
655 2002-02-23 Kim F. Storm <storm@cua.dk>
657 The following changes rework my patch of 2002-02-06 which
658 added command remapping by entering the commands directly into
659 the keymaps. Now, command remapping uses an explicit `remap'
660 prefix in the keymaps, i.e. [remap COMMAND].
662 * keymap.c (Qremap, remap_command_vector): New variables.
663 (is_command_symbol): Removed function.
664 (Fdefine_key): No longer accept a symbol for KEY. Added
665 validation of [remap COMMAND] argument for KEY. The DEF is no
666 longer required to be a symbol when remapping a command.
667 (Fremap_command): New function to remap command through keymaps.
668 (Flookup_key): Perform command remapping initiated by
669 Fremap_command directly for speed.
670 (Fkey_binding): Use Fremap_command for command remapping.
671 (where_is_internal): Handle new command remapping representation.
672 (syms_of_keymap): Intern Qremap, initialize remap_command_vector,
673 staticpro them. Defsubr Fremap_command.
675 * keymap.h (Fremap_command): Declare extern.
676 (is_command_symbol): Remove extern.
678 * keyboard.c (command_loop_1): Use Fremap_command for command
679 remapping; now try command remapping for all symbols.
681 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
683 * coding.h (run_pre_post_conversion_on_str): Add prototype.
685 2002-02-23 Jason Rumney <jasonr@gnu.org>
687 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion
688 on the string before encoding it.
689 (Fw32_get_clipboard_data): Run post-read-conversion on the string
692 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
694 2002-02-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
696 * w32term.c (enter_timestamp): Remove unused static variable to
699 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
701 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il>
703 * w16select.c (Fw16_get_clipboard_data): Fix last change.
705 * xselect.c (selection_data_to_lisp_data): Fix last change.
707 2002-02-22 Jason Rumney <jasonr@gnu.org>
709 * w32term.h (struct w32_output): New member menu_command_in_progress.
711 * w32menu.c (menubar_selection_callback): Free the menu and
712 clear the menu_command_in_progress flag.
714 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize.
715 (menu_free_timer): New variable.
716 (MENU_FREE_ID, MENU_FREE_DELAY): New constants.
717 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer.
718 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a
719 menu command is in progress.
720 <WM_COMMAND>: Set the menu_command_in_progress flag. Kill
721 any menu_free_timer that is running.
723 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT.
724 Call ExtTextOutA rather than ExtTextOut.
726 2002-02-22 Eli Zaretskii <eliz@gnu.org>
728 * puresize.h (BASE_PURESIZE): Increase to 755000.
730 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
732 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion
733 on the string before encoding it.
734 (Fw16_get_clipboard_data): Run post-read-conversion on the string
737 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
739 Support for ICCCM Extended Segments in X selections:
741 * xselect.c <Qcompound_text_no_extensions>: New variable.
742 (syms_of_xselect): Intern and staticpro it.
743 (selection_data_to_lisp_data): Run post-read-conversion on decoded
745 (lisp_data_to_selection_data): If next-selection-coding-system is
746 compound-text-no-extensions, set the type of selection to be
749 * xterm.h (x_encode_text): Update prototype.
751 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
752 callers changed. If SELECTIONP is non-zero, run the
753 pre-write-conversion function before encoding the selection text.
755 2002-02-21 Kim F. Storm <storm@cua.dk>
757 * frame.c (syms_of_frame): Change mouse-highlight default to t.
759 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]: Corrected
760 composing of language-change event.
762 2002-02-20 Kim F. Storm <storm@cua.dk>
764 * keyboard.c (menu_bar_items): Don't include keymap or local-map
765 bindings at PT when building menu (the menu is not updated often
766 enough for this to work reliable).
767 (tool_bar_items): Likewise.
768 (current_active_maps): Removed unused (and buggy) function.
770 2002-02-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
772 * xfns.c (gif_load): Use correct width and height for GIF images.
774 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
776 * floatfns.c (Fatan): Accept an optional second arg and call
777 atan2 if passed 2 args.
779 2002-02-18 Jason Rumney <jasonr@gnu.org>
781 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
783 2002-02-17 Jason Rumney <jasonr@gnu.org>
785 * w32term.c (x_autoselect_window_p): New variable.
786 (syms_of_w32term): DEFVAR_BOOL and initialize it.
787 (note_mouse_movement): Use it.
789 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
791 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
793 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
795 (syms_of_w32fns): Intern and staticpro them.
796 (x_frame_parms) <"fullscreen">: New parameter.
797 (x_fullscreen_move, x_set_fullscreen): New functions.
798 (x_set_frame_parameters): Support Qfullscreen.
799 (x_real_positions): Save x/y_pixels_diff frame params.
800 (x_figure_window_size): Support full-screen frames.
801 (Fx_create_frame): Default the fullscreen parameter.
803 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
804 (x_fullscreen_adjust): New functions.
805 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
806 fullscreen. Call x_check_fullscreen_move, and set the
807 want_fullscreen member of output_data.w32
808 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
810 * w32term.h: New enum for FULLSCREEN_* constants.
811 (struct w32_output): New members want_fullscreen, x_pixels_diff,
812 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
813 (x-fullscreen-adjust): New prototype.
815 2002-02-17 Kim F. Storm <storm@cua.dk>
817 * frame.c: (Vmouse_highlight): New variable.
818 (syms_of_frame): DEFVAR_LISP it.
820 * frame.h: (Vmouse_highlight): Declare extern.
822 * xterm.h (struct x_display_info): Add mouse_face_hidden.
824 * xterm.c (disable_mouse_highlight): Removed variable.
825 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
826 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
827 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
828 and on after keyboard input.
829 (x_term_init): Initialize mouse_face_hidden.
831 * msdos.h (struct display_info): Add mouse_face_hidden.
833 * msdos.c (disable_mouse_highlight): Removed variable.
834 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
835 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
836 (internal_terminal_init): Initialize mouse_face_hidden.
837 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
838 and on after keyboard input.
840 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
842 * w32term.c (disable_mouse_highlight): Removed variable.
843 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
844 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
845 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
846 and on after keyboard input.
847 (w32_initialize_display_info): Initialize mouse_face_hidden.
849 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
851 * msdos.c (last_mouse_window): New variable.
852 (dos_rawgetc): Fix last change--if the mouse is in the same window
853 as recorded in last_mouse_window, don't select this window.
855 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not
858 * msdos.c (x_autoselect_window_p): New variable.
859 (syms_of_msdos): Defvar it.
860 (dos_rawgetc): If x_autoselect_window_p is set, select the window
861 in which the last mouse movement occured, unless it is already
864 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step): New
866 (syms_of_xdisp): DEVFAR them.
867 (hscroll_window_tree): Use automatic_hscroll_margin and
868 Vautomatic_hscroll_step to compute the amount of window scrolling.
870 2002-02-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
872 * xterm.c (x-autoselect-window): New variable.
873 (note_mouse_movement): Use it.
875 * keyboard.c: Do not include "systime.h" twice.
877 2002-02-15 Andreas Schwab <schwab@suse.de>
879 * puresize.h (BASE_PURESIZE): Increase to 9/5.
881 * alloc.c (NSTATICS): Increase to 1280.
883 2002-02-15 Kai Gro
\e,A_
\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
885 * alloc.c (NSTATICS): Bump to 1026.
887 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
888 (Vx_super_keysym): New variables.
889 (syms_of_xterm): DEFVAR_LISP them.
890 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
891 variables to determine which keys to use for the various
894 2002-02-13 Kim F. Storm <storm@cua.dk>
896 * window.c: (Vmode_line_in_non_selected_windows): Removed.
897 (mode_line_in_non_selected_windows): New variable.
898 (syms_of_window): DEFVAR_BOOL it.
900 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Use
901 mode_line_in_non_selected_windows.
902 (mode_line_in_non_selected_windows): Declare extern.
903 (Vmode_line_in_non_selected_windows): Removed extern.
905 2002-02-13 Richard M. Stallman <rms@gnu.org>
907 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
908 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
909 (Fclear_this_command_keys): Doc fixes.
911 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
912 (update_face_from_frame_parameter): Increment face_change_count
913 and windows_or_buffers_changed to force redisplay using changed faces.
915 * xdisp.c (QCpropertize): New variable.
916 (mode_line_proptrans_alist): New variable.
917 (display_mode_element): New arg PROPS; all calls changed.
918 Implement this, for strings.
919 Handle literal output of strings by sharing the
920 main-line code for strings, using local var `literal'.
921 Handle :propertize feature.
922 (syms_of_xdisp): Initialze and staticpro QCpropertize and
923 mode_line_proptrans_alist.
925 2002-02-11 Kim F. Storm <storm@cua.dk>
927 * window.c: (Vmode_line_in_non_selected_windows): New variable.
928 (syms_of_window): DEFVAR_LISP it.
930 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
931 (CURRENT_MODE_LINE_FACE_ID): Use it.
932 (Vmode_line_in_non_selected_windows): Declare extern.
934 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
935 to get mode line face.
937 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
939 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
940 variables; cus-start.el doesn't need them anymore.
942 2002-02-09 Kim F. Storm <storm@cua.dk>
944 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
945 reduction. This fixes a display problem where stray newlines were
946 inserted in the window (corrected by C-l). Clarified code (IMHO).
948 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
950 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
952 * xdisp.c (display_mode_lines): Fix last change.
954 2002-02-09 Jason Rumney <jasonr@gnu.org>
956 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
958 (w32_load_system_font): Prevent Cleartype fonts from loading.
959 (Fx_show_tip): Ensure tip frames are above other topmost windows.
961 2002-02-09 Kim F. Storm <storm@cua.dk>
963 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
964 (CURRENT_MODE_LINE_HEIGHT): Use it.
965 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
967 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
968 (pos_visible_p, handle_face_prop): Likewise.
969 (display_mode_lines): Likewise, but for the real selected window.
970 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
972 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
973 in non-selected windows.
974 (realize_basic_faces): Realize it.
975 (syms_of_term): Intern and staticpro it.
977 2002-02-08 Kim F. Storm <storm@cua.dk>
979 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
980 Changed mail addresses to emacs-devel@gnu.org.
982 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
984 * fileio.c (Fsubstitute_in_file_name): If the file name includes
985 ~user, and there's no such user, don't discard everything before
988 * floatfns.c (Fround): Doc fix.
990 2002-02-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
992 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
994 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
996 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
998 2002-02-07 Kim F. Storm <storm@cua.dk>
1000 * keymap.c (where_is_internal): Only check whether definition is
1001 remapped if it fulfills is_command_symbol.
1003 2002-02-07 Andreas Schwab <schwab@suse.de>
1005 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
1007 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
1009 2002-02-06 Kim F. Storm <storm@cua.dk>
1011 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
1012 defining command remapping. Doc updated.
1013 (Flookup_key): Remap command through keymap if KEY is a symbol.
1014 (is_command_symbol): New function.
1015 (Fkey_binding): Use it. New optional argument NO-REMAP.
1016 Doc updated. Callers changed. Perform command remapping via
1017 recursive call unless that arg is non-nil.
1018 (where_is_internal): New argument no_remap. Callers changed.
1019 Call recursively to find original key bindings for a remapped
1020 comand unless that arg is non-nil.
1021 (Fwhere_is_internal): New optional argument NO-REMAP.
1022 Doc updated. Callers changed. Pass arg to where_is_internal.
1024 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
1025 (is_command_symbol): Added prototype.
1027 * keyboard.c (Vthis_original_command): New variable.
1028 (syms_of_keyboard): DEFVAR_LISP it.
1029 (command_loop_1): Set it, and perform command remapping.
1031 2002-02-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1033 * keyboard.c (recursive_edit_1): Call cancel_hourglass
1036 2002-02-06 Jason Rumney <jasonr@gnu.org>
1038 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
1040 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
1042 * charset.c (get_charset_id): Use if-else instead of ?:.
1044 2002-02-06 Richard M. Stallman <rms@gnu.org>
1046 * filelock.c (S_ISLNK): Define if not defined.
1048 2002-02-03 Richard M. Stallman <rms@gnu.org>
1050 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
1052 * lread.c (read1): Redesign strategy for force_multibyte and
1053 force_singlebyte. Now is_multibyte records whether read_buffer
1054 is multibyte. Encountering any multibyte character makes it so.
1056 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
1058 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
1059 with the same sequence, map that sequence to f10 rather than f0.
1061 2002-02-03 Andreas Schwab <schwab@suse.de>
1063 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
1064 latter never being defined on GNU/Linux.
1066 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1068 * xfaces.c (realize_default_face): Don't set the weight and slant
1069 of the default face to Qnormal, unless these attributes are
1072 2002-02-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1074 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
1075 Call cancel_hourglass unconditionally.
1077 * eval.c (Fsignal): Remove duplicated declaration of
1078 the variable `display_hourglass_p'.
1080 2002-01-31 Richard M. Stallman <rms@gnu.org>
1082 * editfns.c (region_limit): Nicer error message.
1084 * coding.c (decode_composition_emacs_mule):
1085 Give up if NCOMPONENT gets too large to index `component'.
1087 * callint.c (check_mark): New arg to specify clearer error message.
1090 2002-01-27 Richard M. Stallman <rms@gnu.org>
1092 * minibuf.c (Fcompleting_read): Doc fix.
1094 2002-01-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1096 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
1097 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
1100 2002-01-26 Richard M. Stallman <rms@gnu.org>
1102 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
1104 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
1105 and scroll_up_aggressively.
1107 2002-01-26 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1109 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
1111 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
1113 * textprop.c (Fnext_property_change, Fnext_single_property_change)
1114 (Fprevious_property_change, Fprevious_single_property_change):
1115 Stay within the narrowed-buffer boundaries.
1117 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1119 * term.c (Ftty_display_color_cells): New function.
1120 (syms_of_term): Defsubr it.
1121 (Ftty_display_color_cells, Ftty_display_color_p): Change the
1122 argument name to DISPLAY. Doc fix.
1124 * dispextern.h: Add prototype for set_tty_color_mode and
1127 2002-01-24 Jason Rumney <jasonr@gnu.org>
1129 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
1130 If region left to draw is not what was expected, mark the frame as
1133 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
1134 Combine the regions returned by BeginPaint and GetUpdateRect.
1136 2002-01-23 Jason Rumney <jasonr@gnu.org>
1138 * w32term.c (x_update_window_begin): Only hide caret if
1139 w32_use_visible_system_caret is set.
1140 (x_update_window_end): Only show caret if
1141 w32_use_visible_system_caret is set.
1142 (syms_of_w32term): Handle SystemParametersInfo call failing.
1144 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
1146 2002-01-22 Richard M. Stallman <rms@gnu.org>
1148 * unexelf.c (unexec): Define n so as to cause compilation error
1149 for the code where people have often written n instead of nn.
1151 * .gdbinit (hookpost-run): Defined.
1153 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
1155 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
1157 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
1159 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
1160 if fullscreen is being set.
1162 2002-01-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1164 * minibuf.c (Fminibuffer_contents)
1165 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
1166 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
1168 2002-01-21 Richard M. Stallman <rms@gnu.org>
1170 * window.c (check_frame_size): Fix minimum height calculation.
1172 2002-01-20 Ken Raeburn <raeburn@gnu.org>
1174 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
1175 height before comparison.
1176 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
1178 2002-01-20 Jason Rumney <jasonr@gnu.org>
1180 * w32term.c (w32_system_caret_width): Remove.
1181 (w32_use_visible_system_caret): New user flag.
1182 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
1183 Windows reports a screen reader running.
1184 (x_update_window_begin): Hide the system caret.
1185 (x_update_window_end): Show the system caret.
1186 (x_display_and_set_cursor): Don't draw a cursor when
1187 w32_use_visible_system_caret is set. Do not adjust width.
1189 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
1190 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
1191 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
1192 the user requests it. Use system default width when creating.
1193 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
1195 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
1196 New window messages.
1198 2002-01-20 Richard M. Stallman <rms@gnu.org>
1200 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
1202 2002-01-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1204 * doprnt.c (doprnt1): Fix typos in error call.
1206 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1208 * unexelf.c (unexec) [__sgi]: Support the .got sections.
1210 2002-01-20 Jason Rumney <jasonr@gnu.org>
1212 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
1213 that Windows returns. If a double check fails, try to guess how
1214 ExtTextOut is going to act.
1216 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
1217 in place of stricmp.
1218 (w32_list_synthesized_fonts): Removed.
1219 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
1220 (struct enumfont_t): New element; list.
1221 (enum_font_cb2): List all style and charset variations of a font.
1222 (Fw32_select_font): New optional argument; include_proportional.
1223 Exclude vertical fonts. Exclude proportional fonts unless
1224 include_proportional is non-nil.
1225 (w32_enable_synthesized_fonts): Change to a boolean.
1226 (Fw32_send_sys_command): Doc fix.
1228 2002-01-19 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1230 * dispnew.c (update_frame): Move the variable `tem' to the block
1233 2002-01-19 Jason Rumney <jasonr@gnu.org>
1235 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
1236 call to face-set-after-frame-default.
1238 2002-01-18 Richard M. Stallman <rms@gnu.org>
1240 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
1241 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
1243 2002-01-17 Richard M. Stallman <rms@gnu.org>
1245 * window.c (enlarge_window): When exceeding size of parent,
1246 directly delete all the siblings instead of trying to resize it.
1248 2002-01-17 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1250 * term.c (set_tty_color_mode): Remove unused variable `tem'.
1252 2002-01-16 Henrik Enberg <henrik@enberg.org>
1254 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
1256 2002-01-16 Kim F. Storm <storm@cua.dk>
1258 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
1259 is invisible. This can happen if cursor is on top line of a
1260 window, and we switch to a buffer with a header line.
1262 * w32term.c (x_erase_phys_cursor): Ditto.
1264 2002-01-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1266 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
1267 `dont_resize' only when used.
1269 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
1271 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
1273 * xdisp.c (display_mode_element): When computing charpos, depend
1274 on multibyteness of elt, not the text in field.
1276 2002-01-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1278 * buffer.c (Fkill_all_local_variables): Increment
1279 `update_mode_lines' only once.
1281 2002-01-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1283 * lisp.h (adjust_after_replace_noundo)
1284 (Fupdate_coding_systems_internal): Add prototypes.
1286 * sound.c (Fplay_sound): Initialize header_size also for :data case.
1288 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
1290 Support for the --color command-line argument and tty-color-mode
1293 * term.c (tty_default_color_capabilities, tty_setup_colors)
1294 (set_tty_color_mode): New functions.
1295 (term_init): Call tty_default_color_capabilities.
1296 (Qtty_color_mode_alist): New variable.
1297 (syms_of_term): Intern and staticpro it.
1299 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
1301 (do_switch_frame): For termcap frames, switch the tty
1302 color mode as specified by the frame's parameters.
1303 (Qtty_color_mode): New variable.
1304 (syms_of_frame): Intern and staticpro it.
1306 * emacs.c (USAGE2): Add the --color option.
1307 (standard_args): Ditto.
1309 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
1311 * xterm.h (struct x_output): New members want_fullscreen,
1312 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
1313 y_pixels_outer_diff.
1314 New enum for FULLSCREEN_* constants.
1315 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
1317 (x_fullscreen_adjust): Add prototype.
1319 * emacs.c (USAGE2): Add the new full-screen arguments.
1320 (standard_args): Ditto.
1322 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
1324 (syms_of_xfns): Intern and staticpro them.
1325 (x_frame_parms) <"fullscreen">: New parameter.
1326 (x_fullscreen_move, x_set_fullscreen): New functions.
1327 (x_set_frame_parameters): Support for Qfullscreen.
1328 (x_real_positions): More accurate computation of the frame position.
1329 (x_figure_window_size): Support full-screen frames.
1330 (Fx_create_frame): Default the fullscreen parameter.
1332 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
1333 (XTread_socket) <Expose>: Call x_check_fullscreen.
1334 <ConfigureNotify>: Don't resize to fullscreen.
1335 Call x_check_fullscreen_move, and set the want_fullscreen member of
1338 2002-01-13 Jason Rumney <jasonr@gnu.org>
1340 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
1341 for mice with more than 3 buttons.
1343 * w32term.c (parse_button): New parameter xbutton. Callers changed.
1344 (w32_read_socket): Handle new "XBUTTON" messages.
1346 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
1347 (syms_of_w32fns): DEFVAR_BOOL it.
1348 (w32_wnd_proc): Handle new "XBUTTON" messages.
1350 2002-01-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1352 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
1354 2002-01-13 Andreas Schwab <schwab@suse.de>
1356 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
1358 2002-01-12 Andreas Schwab <schwab@suse.de>
1360 * .gdbinit (xbuffer): Remove address operator since data is now a
1363 2002-01-11 Richard M. Stallman <rms@gnu.org>
1365 * insdel.c (adjust_after_replace_noundo): New function.
1367 * coding.c (code_convert_region): Don't copy old text if undo disabled.
1369 2002-01-09 Jason Rumney <jasonr@gnu.org>
1371 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
1372 when checking for multiple frames.
1374 2002-01-08 Richard M. Stallman <rms@gnu.org>
1376 * window.c (delete_window): Rewrite the code for changing the
1377 selected window to handle the case where WINDOW is not a leaf.
1379 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
1381 * process.c (send_process): Set src_multibyte to 1 after the call
1382 top setup_coding_system, not before the call.
1384 2002-01-07 Jason Rumney <jasonr@gnu.org>
1386 * xmenu.c (set_frame_menubar, xmenu_show):
1387 (xdialog_show): Initialize wv->help to Qnil.
1389 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
1390 (w32_dialog_show): Initialize wv->help to Qnil.
1392 2002-01-06 Jason Rumney <jasonr@gnu.org>
1394 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
1396 * w32menu.c (w32_menu_display_help): Revert last change.
1398 * xmenu.c (menu_highlight_callback): Revert last change.
1400 2002-01-06 Andreas Schwab <schwab@suse.de>
1402 * insdel.c (make_gap_larger): Make sure buffer size does not
1403 overflow range of int.
1405 2002-01-05 Jason Rumney <jasonr@gnu.org>
1407 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1410 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
1412 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
1413 to the left or to the right of the pointer, put it against
1414 the left screen edge.
1415 (x_frame_parms): Add missing braces around initializer.
1417 * w32term.c (x_setup_relief_colors): Don't compute an image's
1418 background color if it doesn't have a Pixmap.
1419 (notice_overwritten_cursor): Don't depend on
1420 output_cursor and updated_area. Compare pixel coordinates with
1421 window's cursor pixel coordinates.
1422 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1423 Call notice_overwritten_cursor with new arg list.
1424 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1426 (x_draw_image_relief): Use predefined macro instead of
1427 constant when the value of `tool_bar_button_relief' is negative.
1429 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
1431 2002-01-04 Richard M. Stallman <rms@gnu.org>
1433 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
1435 2002-01-03 Richard M. Stallman <rms@gnu.org>
1437 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
1438 (Fkey_binding): Try the `keymap' property map first.
1439 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
1440 minor mode bindings.
1442 2002-01-03 Kim F. Storm <storm@cua.dk>
1444 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
1446 2002-01-02 Richard M. Stallman <rms@gnu.org>
1448 * keyboard.c (read_key_sequence): Handle the keymap property
1449 before minor mode maps.
1451 * editfns.c (Fformat): Update thissize from field_width
1452 based on the actual width, in the string case.
1454 2002-01-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1456 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
1457 when used as truth value to prevent gcc warnings.
1459 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
1460 * w32proc.c: Include <config.h>.
1462 2002-01-01 Andreas Schwab <schwab@suse.de>
1464 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
1465 not EMACS_INT, to make them compatible with DEFVAR_INT.
1466 * lisp.h (max_specpdl_size): Adjust declaration.
1468 2002-01-01 Richard M. Stallman <rms@gnu.org>
1470 * print.c (print_object): Test print_escape_nonascii only for
1472 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
1473 when outputting to a multibyte buffer.
1475 2001-12-29 Richard M. Stallman <rms@gnu.org>
1477 * print.c (print_object): In multibyte string, use hex escapes.
1478 Use octal only for unibyte strings.
1479 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
1481 * lread.c (read_escape): New arg BYTEREP for reporting whether
1482 escape forces unibyte or multibyte.
1483 (read1): When reading a string, take note of that info.
1485 2001-12-29 Ken Raeburn <raeburn@gnu.org>
1487 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
1488 comparison to test lisp value returned by Fget.
1490 2001-12-29 Richard M. Stallman <rms@gnu.org>
1492 * lisp.h (max_specpdl_size): Add declaration.
1494 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
1496 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
1497 Handle modifier bits. Correct typo in error message.
1499 2001-12-28 Richard M. Stallman <rms@gnu.org>
1501 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
1502 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
1503 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
1504 Update calls to Fdefine_abbrev.
1505 (write_abbrev): Update for changed data format.
1506 Don't list "system" abbrevs.
1507 (Fexpand_abbrev): Update use count with new data format.
1508 (describe_abbrev): Update for changed data format.
1509 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
1511 * config.in (HAVE_MBSINIT): Add #undef.
1513 * strftime.c (mbsinit): Define as no-op if not available.
1515 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
1516 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
1518 * keymap.c (Flookup_key): Error message if key has wrong data type.
1519 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
1520 (exclude_key): New variable.
1522 2001-12-28 Gerd Moellmann <gerd@gnu.org>
1524 * xterm.c (x_setup_relief_colors): Don't compute an image's
1525 background color if it doesn't have a Pixmap.
1527 * xterm.c (notice_overwritten_cursor): Don't depend on
1528 output_cursor and updated_area. Compare pixel coordinates with
1529 window's cursor pixel coordinates.
1530 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
1531 Call notice_overwritten_cursor with new arg list.
1532 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
1535 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
1536 height of the cursor line to the amount to scroll.
1538 2001-12-27 Richard M. Stallman <rms@gnu.org>
1540 * intervals.c (set_point_both): The position after an invisible,
1541 intangible character is not an acceptable stopping point.
1543 2001-12-27 Ken Raeburn <raeburn@gnu.org>
1545 * window.c (enlarge_window): In new preserve_before code, convert
1546 CURBEG from lisp object to integer before doing arithmetic.
1548 2001-12-27 Richard M. Stallman <rms@gnu.org>
1550 * bytecode.c (Fbyte_code): Undo previous change.
1552 2001-12-26 Kim F. Storm <storm@cua.dk>
1554 * keyboard.c (record_char): Ignore duplicate help-echo events only
1555 separated by mouse-movement. When tracking mouse, only record
1556 first and last mouse-movement event in same window.
1557 Don't record mouse-movement events in keyboard macros.
1559 2001-12-25 Richard M. Stallman <rms@gnu.org>
1561 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
1562 (Fenlarge_window): New arg PRESERVE_BEFORE.
1564 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
1565 instead of Fstring_as_unibyte.
1567 2001-12-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1569 The following changes remove mocklisp support:
1571 * mocklisp.h, mocklisp.c: Files removed.
1573 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
1574 `Qmocklisp' and `Qmocklisp_arguments'.
1575 Remove prototype of syms_of_mocklisp.
1577 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
1579 * callint.c: Do not include mocklisp.h.
1580 (Fcall_interactively): Do not test for mocklisp case.
1582 * eval.c: Remove variables `Qmocklisp_arguments',
1583 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
1584 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
1585 Do not test for mocklisp case.
1586 (Fwhile): Remove unused variable `tem'.
1587 (syms_of_eval): Remove variable `moclisp-arguments'.
1589 * data.c (wrong_type_argument): Remove mocklisp case.
1591 * doc.c (Fdocumentation): Remove mocklisp case.
1593 * emacs.c (main): Do not call syms_of_mocklisp.
1595 2001-12-21 Richard M. Stallman <rms@gnu.org>
1597 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
1598 to the left or to the right of the pointer, put it against
1599 the left screen edge.
1601 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
1603 * Makefile.in (distclean): Remove .gdbinit if we are building
1604 outside the source tree.
1606 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
1608 * w32.c (emacs_root_dir): New function.
1610 * msdos.c (emacs_root_dir): New function.
1612 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
1613 of the current drive as the fallback for default_directory.
1615 * dired.c (file_name_completion): Run the elements of
1616 completion-ignored-extensions through ENCODE_FILE.
1618 * lisp.h (scmp): Remove prototype, since it's now a static
1619 function private to dired.c.
1621 2001-12-18 Richard M. Stallman <rms@gnu.org>
1623 * dired.c (scmp): Function moved from minibuf.c.
1624 Delete multibyte handling--used only on encoded strings.
1626 * minibuf.c (scmp): Function moved to dired.c.
1628 * fns.c (merge): Add QUIT call.
1630 2001-12-18 Dave Love <fx@gnu.org>
1632 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
1633 language/georgian.el.
1635 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
1637 * Makefile.in (lisp, shortlisp): Synchronize with changes to
1638 lisp/Makefile.in:DONTCOMPILE.
1640 2001-12-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1642 * xdisp.c (window_box_height): Do not return negative values.
1643 From Gerd Moellmann <gerd@gnu.org>.
1645 * keyboard.c (head_table): Add missing braces around initializer.
1647 * term.c (keys): Likewise.
1649 * xfns.c (x_frame_parms, visual_classes): Likewise.
1651 2001-12-17 Sam Steingold <sds@gnu.org>
1653 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
1654 patch (COMPOSING_P, not COMPOSING).
1656 2001-12-17 Richard M. Stallman <rms@gnu.org>
1658 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
1660 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
1661 before calling decode_coding.
1663 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
1665 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
1666 instead of only for COMPOSITION_DISABLED.
1668 2001-12-16 Richard M. Stallman <rms@gnu.org>
1670 * alloc.c (pure_alloc): After overflow, allocate just a small block.
1672 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
1674 * buffer.h (struct buffer): New field `display_error_modiff'.
1675 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
1677 * window.c (Frecenter): Clear display_error_modiff field.
1679 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
1680 Call redisplay_window, but not if display_error_modiff field says no.
1681 (redisplay_window_error): New function.
1682 (displayed_buffer): New variable.
1683 (redisplay_internal, redisplay_windows): Call the new functions
1684 instead of redisplay_window directly.
1686 2001-12-15 Richard M. Stallman <rms@gnu.org>
1688 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
1690 2001-12-14 Andrew Innes <andrewi@gnu.org>
1692 * makefile.w32-in (EMACSLOADPATH): Define.
1693 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
1694 (bootstrap-temacs): Remove dependency on bootstrap-clean.
1696 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
1698 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
1699 parameter have a numeric value all the time.
1701 * w32fns.c (x_report_frame_params): Likewise.
1703 2001-12-12 Richard M. Stallman <rms@gnu.org>
1705 * fileio.c (Fwrite_region): Doc fix.
1707 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
1708 (redisplay_internal): Call clear_image_cache only for window terminals.
1710 2001-12-12 Gerd Moellmann <gerd@gnu.org>
1712 * xdisp.c (move_it_vertically_backward): Change heuristic
1713 for the case that we didn't move far enough initially.
1715 * window.c (Frecenter): Simplify computation in the case of window
1716 system frames and ARG < 0; use window_box_height.
1718 2001-12-11 Richard M. Stallman <rms@gnu.org>
1720 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
1721 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
1723 2001-12-11 Andrew Innes <andrewi@gnu.org>
1725 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
1728 2001-12-11 Richard M. Stallman <rms@gnu.org>
1730 * m/hp800.h: Split the __hpux conditional into the parts
1731 that are right for GNU/Linux too and the parts that are not.
1732 Use the former if GNU_LINUX.
1733 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
1735 * s/gnu-linux.h (GNU_LINUX): Defined.
1737 2001-12-11 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1739 * macros.c, msdos.c, w16select.c: Change doc-string comments to
1740 `new style' [w/`doc:' keyword].
1742 2001-12-10 Jason Rumney <jasonr@gnu.org>
1744 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
1747 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1749 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
1752 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
1754 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
1756 * s/hpux10.h (srand48): Don't undefine.
1758 2001-12-09 Jason Rumney <jasonr@gnu.org>
1760 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
1761 Add comment to explain where the struct came from.
1762 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
1763 (add_menu_item): Process pop-up menus first to avoid memory leak.
1764 (add_menu_item, w32_menu_display_help): Use `help' field as
1766 (w32_free_submenu_strings): Only free owner-drawn strings.
1768 2001-12-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1770 * COPYING: Moved back.
1772 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
1773 Add parentheses around && within ||.
1775 * indent.c (compute_motion): Likewise.
1777 * intervals.c (merge_properties_sticky): Likewise.
1779 * coding.c (setup_coding_system, shrink_encoding_region)
1780 (Fdecode_sjis_char): Likewise.
1782 2001-12-07 Andreas Schwab <schwab@suse.de>
1784 * xdisp.c (display_mode_element): Don't read past end of string if
1787 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
1790 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
1791 from most_positive_fixnum and most_negative_fixnum, resp., and
1792 type changed to Lisp_Object.
1793 (syms_of_data): DEFVAR_LISP them.
1795 2001-12-07 Richard M. Stallman <rms@gnu.org>
1797 * callproc.c (init_callproc): Set Vdata_directory based on the source
1798 location whenever Emacs was run uninstalled.
1800 2001-12-06 Paul Eggert <eggert@twinsun.com>
1802 * config.in (HAVE_WORKING_VFORK): New #undefs.
1803 * process.c (create_process):
1804 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
1805 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
1806 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
1807 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
1808 * m/intel386.h (HAVE_VFORK): Likewise.
1809 * m/mips-siemens.h (HAVE_VFORK): Likewise.
1810 * m/mips.h (HAVE_VFORK): Likewise.
1811 * s/freebsd.h (vfork): Remove #define.
1812 * s/lynxos.h (HAVE_VFORK): Remove #undef.
1813 * s/usg5-4-2.h: Fix comment about vfork.
1815 2001-12-06 Richard M. Stallman <rms@gnu.org>
1817 * s/hpux10.h (random): Add undef.
1818 (HAVE_RANDOM): Define it just once.
1820 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
1822 * eval.c: Undo last change: the standard syntax is not wanted.
1824 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
1826 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
1827 scroll bars of the frame before deleting the frame itself. If the
1828 frame has a widget, delete the frame with XtDestroyWidget, and do
1829 not call XDestroyWindow before that.
1831 2001-12-06 Kim F. Storm <storm@cua.dk>
1833 * xfns.c (x_report_frame_params): Return actual fringe widths.
1835 * w32fns.c (x_report_frame_params): Return actual fringe widths.
1837 2001-12-05 Andrew Innes <andrewi@gnu.org>
1839 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
1842 * insdel.c (make_gap_larger): New function.
1843 (make_gap_smaller): New function.
1844 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
1845 make_gap_smaller if arg is negative.
1847 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
1849 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
1850 Pass a dummy argument when calling interrupt_signal.
1851 (parse_menu_item): Mark disabled items before checking for empty def.
1852 (read_char_minibuf_menu_prompt): Make safety more visible.
1853 (read_key_sequence): Add a `first_unbound' variable.
1854 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
1855 unbound prefix as soon as we can detect it.
1857 * doc.c (Fsnarf_documentation): Add prototype.
1858 (get_doc_string): Handle negative arguments.
1859 (Fdocumentation): Use AREF and ASIZE.
1860 Move the calls to get_doc_string to a single place.
1861 Don't confuse an interactive-spec for a docstring reference.
1862 (Fdocumentation_property): Take advantage of the fact that
1863 get_doc_string now ignores the sign of the docstring position.
1865 * eval.c: Use standard syntax for usage in docstrings.
1867 2001-12-03 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1869 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
1871 2001-12-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1873 * xterm.c (x_draw_image_relief): Use predefined macro instead of
1874 constant when the value of `tool_bar_button_relief' is negative.
1876 2001-12-02 Richard M. Stallman <rms@gnu.org>
1878 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
1879 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
1881 * fileio.c (read_non_regular): Delete Fsignal call.
1883 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
1885 * lisp.h (run_hook_list_with_args): Undo last change.
1887 2001-12-01 Gerd Moellmann <gerd@gnu.org>
1889 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
1891 2001-12-01 Jason Rumney <jasonr@gnu.org>
1893 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
1895 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
1896 [!WM_MOUSELEAVE]: Define.
1898 * w32menu.c (current_popup_menu, get_menu_item_info):
1899 (set_menu_item_info): New vars.
1900 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
1901 (w32_menu_show): Set current_popup_menu.
1902 (add_menu_item): Allocate new strings for owner-drawn menu items
1904 Use owner-draw for disabled menu items again.
1905 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
1906 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
1908 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
1909 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
1910 <WM_EXITMENULOOP>: Free menu strings.
1911 <WM_MOUSELEAVE>: Stop tracking mouse.
1912 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
1914 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
1917 2001-12-01 Kim F. Storm <storm@cua.dk>
1919 The following changes add left-fringe and right-fringe
1920 frame parameters to adjust fringe widths, or remove one or
1923 * frame.h (struct frame): Remove trunc_area_pixel_width and
1924 trunc_area_cols fields.
1925 (Qleft_fringe, Qright_fringe): Declare.
1926 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
1928 * frame.c (Qleft_fringe, Qright_fringe): New vars.
1929 (syms_of_frame): Initialize them.
1931 * window.c (coordinates_in_window): Handle separate left and right
1934 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
1935 and fringe_cols fields.
1936 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
1937 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
1938 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
1939 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
1940 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1941 (x_compute_fringe_widths): Add prototype.
1943 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1944 fill fringe evenly with small dashes.
1945 (x_draw_fringe_bitmap): Clear background if necessary. Align and
1946 clip the new ZV bitmap to avoid jitter between rows.
1947 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1948 background. Don't draw fringe bitmaps if fringe width is zero.
1949 (x_compute_fringe_widths): New function.
1950 (x_new_font, x_set_window_size_1): Use it.
1952 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
1953 (x_set_frame_parameters): Process `font' parameter before other
1954 parameters as fringe widths depend on it.
1955 (x_set_fringe_width): New function.
1956 (x_figure_window_size): Use x_compute_fringe_widths.
1957 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1960 * widget.c (set_frame_size): Use x_compute_fringe_widths.
1961 (EmacsFrameSetCharSize): Ditto.
1963 * w32term.h: Merged changes from xterm.h.
1964 * w32term.c: Merged changes from xterm.c.
1965 * w32fns.c: Merged changes from xfns.c.
1967 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1971 2001-11-29 Dave Love <fx@gnu.org>
1973 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
1975 (detect_coding_mask): Fix call of detect_coding_iso2022.
1977 2001-11-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
1979 * fileio.c (file-name-coding-system)
1980 (default-file-name-coding-system): Doc fix (links to referenced
1983 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1985 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1986 Add dummy uses of gcproN variables.
1988 * category.c (describe_category, describe_category_1)
1989 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
1990 (syms_of_category): Don't defsubr Sdescribe_categories.
1992 2001-11-28 Richard M. Stallman <rms@gnu.org>
1994 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1996 * Makefile.in (lispdir): New variable, referring to build dir.
1997 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1999 2001-11-28 Andrew Innes <andrewi@gnu.org>
2001 * w32menu.c (w32_menu_display_help): Actually add the new argument
2004 2001-11-28 Jason Rumney <jasonr@gnu.org>
2006 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
2007 menu items. From David Ponce <dponce@wanadoo.fr>.
2008 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
2010 (w32_menu_display_help): New argument OWNER. Rewritten to store a
2011 help event in the owner frame's keyboard buffer.
2013 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
2014 (Fx_show_tip): Don't subtract last width from row width.
2016 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
2017 (w32_read_socket): Use EQ to compare frames.
2019 2001-11-28 Gerd Moellmann <gerd@gnu.org>
2021 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
2024 2001-11-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2026 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
2027 `gcpro3' and `gcpro4'.
2029 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
2031 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
2033 * ccl.c: Use AREF and ASIZE.
2035 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
2037 * lisp.h (run_hook_list_with_args): Remove.
2038 (LIST_END_P): Fix call to wrong_type_argument.
2039 (make_fixnum_or_float): Use EMACS_INT rather than int.
2041 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
2043 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
2044 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
2046 * eval.c: Use AREF and ASIZE.
2047 (Ffetch_bytecode): Add the file name to the error message.
2049 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
2050 which match the end of the file-name.
2051 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
2052 is not a valid env var, but leave it as is instead.
2054 * keymap.c (access_keymap): Handle t bindings like nil bindings.
2055 Make nil bindings in char-tables transparent.
2056 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
2058 2001-11-26 Richard M. Stallman <rms@gnu.org>
2060 * textprop.c (set_text_properties_1): Allow START, END in either order.
2061 Do nothing if range is empty.
2063 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
2065 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
2068 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
2070 * textprop.c (set_text_properties_1): Clearly mark that the
2071 interval should not be empty.
2073 * intervals.c (graft_intervals_into_buffer):
2074 Don't call set_text_properties_1 on an empty interval.
2076 2001-11-25 Richard M. Stallman <rms@gnu.org>
2078 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
2080 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
2081 don't lose the data in it.
2083 2001-11-25 Juanma Barranquero <lektu@terra.es>
2085 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
2087 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
2089 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
2091 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
2093 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
2095 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
2097 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
2098 Niemitalo <kon@iki.fi>.
2100 2001-11-25 Jason Rumney <jasonr@gnu.org>
2102 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
2104 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
2105 (Fx_show_tip): Block input during frame creation.
2106 (Fx_show_tip, Fx_hide_tip): Enable.
2108 2001-11-24 Richard M. Stallman <rms@gnu.org>
2110 * lread.c (Fload): Detect recursive load error for more than 3
2111 nestings of the same file.
2112 (Vrecursive_load_depth_limit): Variable deleted.
2113 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
2115 2001-11-24 Jason Rumney <jasonr@gnu.org>
2117 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
2118 mouse position if either left or top is not specified.
2120 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
2121 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
2122 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
2123 (my_create_tip_window): Assign tip_window.
2124 (x_create_tip_frame): Use same defaults as X.
2125 (compute_tip_xy): Remove unused variable. Use full screen width.
2126 (Fx_show_tip): Do not double height. Call ShowWindow directly.
2128 * w32term.c (x_after_update_window_line): Doc fix.
2129 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
2131 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
2133 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
2134 for all Windowed systems.
2136 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
2138 * msdos.c (IT_clear_screen): If the frame's faces are not yet
2139 realized, use the initial screen colors to clear the screen.
2141 2001-11-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2143 * textprop.c (Fset_text_properties): Remove unused variables
2144 `unchanged', `prev_changed', `s' and `len'.
2146 * search.c (Freplace_match): Remove unused variable `inslen'.
2148 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
2150 2001-11-22 Jason Rumney <jasonr@gnu.org>
2152 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
2153 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
2154 (my_create_tip_window): New function.
2155 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
2156 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
2158 2001-11-20 Jason Rumney <jasonr@gnu.org>
2160 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
2161 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
2163 * w32fns.c (Vw32_system_coding_system): Remove.
2164 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
2166 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
2168 * fileio.c (Fwrite_region): Move choose_write_coding_system to
2169 after build_annotations.
2171 * syntax.c (describe_syntax): Add dummy arg.
2172 (describe_syntax_1): Update call to describe_vector.
2174 * category.c (describe_category): Add dummy arg.
2175 (describe_category_1): Update call to describe_vector.
2177 * keymap.c (Fdescribe_vector): Add `describer' parameter.
2178 (describe_command, describe_translation): Add dummy second param.
2179 (describe_map): Call elt_describer with two arguments.
2180 (describe_vector_princ): Add `fun' parameter.
2181 Call it instead of the hardcoded `princ'.
2182 (describe_vector): Add arg `args'.
2183 Pass it as a new second argument to elt_describer.
2185 * keymap.h (describe_vector): Update prototype.
2187 * frame.c: Don't include keymap.h any more.
2188 (keys_of_frame): Remove.
2190 * lisp.h (keys_of_frame): Remove declaration.
2192 * emacs.c (main): Don't call `keys_of_frame' any more.
2194 2001-11-14 Andreas Schwab <schwab@suse.de>
2196 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
2197 if defined, 0 otherwise.
2198 (MAP_FAILED): Define if not defined and use it to test mmap failure.
2199 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
2201 2001-11-19 Richard M. Stallman <rms@gnu.org>
2203 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
2205 2001-11-18 Jason Rumney <jasonr@gnu.org>
2207 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
2208 (x_draw_bar_cursor): If the background color of the glyph under
2209 the cursor equals the frame's cursor color, use the glyph's
2210 foreground color for drawing the bar cursor.
2211 (x_after_update_window_line): Clear internal border in different
2213 (w32_set_vertical_scroll_bar): Check for width and height > 0.
2214 (w32_draw_relief_rect): Correct relief by 1 pixel.
2215 (x_set_glyph_string_background_width):
2216 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2217 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
2218 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
2219 if cursor_in_non_selected_windows is false.
2220 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2221 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
2222 Notice if cursor gets overwritten.
2223 (notice_overwritten_cursor): Renamed from
2224 note_overwritten_text_cursor. Rewritten to take glyph widths
2225 into account, and to take X positions as parameters.
2226 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2227 around call to x_draw_glyphs.
2228 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2229 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2230 color to use for image glyph reliefs.
2231 (x_draw_image_relief): Accept zero tool_bar_button_relief.
2232 (glyph_rect): Remove unused variable `area'.
2234 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
2236 (x_set_internal_border_width): Set frame garbaged when window
2238 (Fx_create_frame): Accept zero tool_bar_button_relief.
2239 (x_clear_image_1, four_corners_best, image_background)
2240 (image_background_transparent): New functions.
2241 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2242 (gs_format): Add `:background' entry.
2243 (lookup_image): Set IMG's background color if specified.
2244 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2246 (x_clear_image_1): Reset `background_valid' and
2247 `background_transparent_valid' fields.
2248 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2249 calculating it here. Set IMG's background_transparent field.
2250 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2251 (enum png_keyword_index): Add PNG_BACKGROUND.
2252 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2253 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2254 (enum gif_keyword_index): Add GIF_BACKGROUND.
2255 (enum gs_keyword_index): Add GS_BACKGROUND.
2256 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2257 Pre-calculate image background color where necessary.
2258 (x_create_x_image_and_pixmap, xbm_load, gs_load):
2259 Use display info's n_cbits entry for screen depth.
2260 (Fx_show_tip): Remove unused variables `buffer', `top',
2261 `left', `max_width' and `max_height'.
2263 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
2265 2001-11-18 Gerd Moellmann <gerd@gnu.org>
2267 * puresize.h (BASE_PURESIZE): Increase to 750000.
2269 2001-11-18 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2271 * frame.c (Fframe_live_p): Doc fix.
2273 2001-11-18 Richard M. Stallman <rms@gnu.org>
2275 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
2276 (message_dolog_marker3): New static variables hold three markers.
2277 (syms_of_xdisp): Initialize and staticpro them.
2278 (message_dolog): Use message_dolog_marker1..3 instead of
2279 allocating markers each time. Unchain them when done.
2281 2001-11-17 Richard M. Stallman <rms@gnu.org>
2283 * doc.c (Fsnarf_documentation): Doc fix.
2285 2001-11-17 Andreas Schwab <schwab@suse.de>
2287 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
2289 2001-11-17 Richard M. Stallman <rms@gnu.org>
2291 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
2293 2001-11-17 Jason Rumney <jasonr@gnu.org>
2295 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
2297 2001-11-17 Gerd Moellmann <gerd@gnu.org>
2299 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
2300 with invalid position.
2302 2001-11-16 Richard M. Stallman <rms@gnu.org>
2304 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
2306 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
2307 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
2308 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
2310 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
2312 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
2314 * fileio.c (build_annotations): Split off the tail.
2315 (build_annotations_2): New fun. Extracted from build_annotations.
2316 (Fwrite_region): Split the call to build_annotations into two
2317 calls to build_annotations and build_annotations_2.
2319 2001-11-16 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2321 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
2322 clear_waiting_for_input with argument.
2324 * xterm.h (x_update_cursor): Remove duplicated prototype.
2326 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
2328 * xterm.c (waiting_for_input): Remove unnecessary declaration.
2330 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
2332 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
2334 * fileio.c (choose_write_coding_system): New fun, extracted
2336 (Fwrite_region): Use it.
2338 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
2339 (funcall_lambda, run_hook_with_args): Make static and add prototype.
2340 (ml_apply, find_handler_clause): Add prototype.
2342 2001-11-16 Eli Zaretskii <eliz@gnu.org>
2344 * config.in: Add #undef HAVE_COFF_H.
2346 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
2347 Required for ISC 4.1.
2349 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
2351 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
2352 Andrew Wiseman <a.wiseman@btclick.com>.
2354 2001-11-16 Kim F. Storm <storm@cua.dk>
2356 The following changes are made to clean up the various internal
2357 references to the fringes to actually use the term `fringe' for
2358 them. Previously, they were called `flags areas', `bitmap areas',
2359 `left/right side of windows', or implicitly as `flags' or
2362 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
2363 Comments fixed. Use renamed symbols.
2365 * dispnew.c: Comment fix. Use renamed symbols.
2367 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
2368 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
2369 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
2371 * msdos.c: Comment fix.
2373 * w32fns.c: Use renamed symbols.
2375 * w32term.c: Comment fixes. Use renamed symbols.
2376 (fringe_bitmap_type): Renamed from bitmap_type.
2377 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2378 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
2379 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2381 * w32term.h: Comment fixes. Use renamed symbols.
2382 (fringes_extra): Renamed from flags_areas_extra.
2383 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2384 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2385 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2386 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
2387 (FRAME_X_LEFT_FRINGE_WIDTH):
2388 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2389 (FRAME_X_RIGHT_FRINGE_WIDTH):
2390 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
2392 * widget.c: Use renamed symbols.
2394 * window.c: Comment fixes. Use renamed symbols.
2395 (coordinates-in-window-p): Doc fix.
2397 * xdisp.c: Comment fixes. Use renamed symbols.
2399 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
2401 * xfns.c: Use renamed symbols.
2403 * xterm.c: Comment fixes. Use renamed symbols.
2404 (fringe_bitmap_type): Renamed from bitmap_type.
2405 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
2406 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
2407 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2409 * xterm.h: Comment fixes. Use renamed symbols.
2410 (fringes_extra): Renamed from flags_areas_extra.
2411 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
2412 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
2413 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
2414 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
2415 (FRAME_X_LEFT_FRINGE_WIDTH):
2416 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
2417 (FRAME_X_RIGHT_FRINGE_WIDTH):
2418 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
2420 2001-11-15 Jason Rumney <jasonr@gnu.org>
2422 * w32menu.c (add-menu-item): Make help_echo and radio buttons
2423 work for most menu items. From David Ponce
2424 <david.ponce@wanadoo.fr>.
2426 2001-11-15 Gerd Moellmann <gerd@gnu.org>
2428 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
2429 Some x_set_* function expect to be called even if old and new
2432 * xdisp.c (build_desired_tool_bar_string): Accept zero
2433 tool_bar_button_relief.
2435 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
2437 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
2439 * xterm.c (x_draw_bar_cursor): If the background color of the
2440 glyph under the cursor equals the frame's cursor color, use
2441 the glyph's foreground color for drawing the bar cursor.
2443 * dispnew.c (direct_output_forward_char): Fix character/byte
2444 position comparison.
2446 2001-11-15 Miles Bader <miles@gnu.org>
2448 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
2449 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
2450 Update arguments to find_field.
2451 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
2452 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
2453 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
2454 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
2456 2001-11-14 Richard M. Stallman <rms@gnu.org>
2458 * editfns.c (Fpropertize): Allow call with 1 arg.
2460 * dispextern.h (image_background, image_background_transparent):
2461 Conditionalize on HAVE_X_WINDOWS.
2463 2001-11-13 Richard M. Stallman <rms@gnu.org>
2465 * print.c (Fprin1_to_string): Doc fix.
2467 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
2469 * floatfns.c (Fceiling, Ffloor): Doc fixes.
2471 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
2473 * fileio.c (Ffile_accessible_directory_p): Doc fix.
2475 * eval.c (syms_of_eval): Doc fix.
2477 * coding.c (syms_of_coding): Doc fix.
2479 * doc.c (Fsnarf_documentation): Doc fix.
2481 * dispnew.c (syms_of_display): Doc fix.
2483 * category.c (Fget_unused_category): Doc fix.
2485 * buffer.c (syms_of_buffer): Doc fixes.
2487 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
2489 * print.c (prin1, print): Doc fix.
2491 2001-11-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2493 * fontset.h: Remove declarations of variables
2494 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
2496 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
2497 `Vclip_large_size_font'.
2499 2001-11-13 Jason Rumney <jasonr@gnu.org>
2501 * w32fns.c: Doc fix.
2503 2001-11-13 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2505 * xfaces.c (Fface_attributes_as_vector): Doc fix.
2507 * w32fns.c (Fx_synchronize): Reindent.
2513 * coding.c: Doc fix.
2515 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
2516 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
2517 `new style' [w/`doc:' keyword].
2519 * xmenu.c (x-popup-menu): Reindent.
2520 (x-popup-dialog): Likewise.
2522 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
2524 * xdisp.c (Fdump_tool_bar_row): Reindent.
2526 * minibuf.c (Fminibuffer_complete_word): Reindent.
2527 (Fminibuffer_complete_and_exit): Likewise.
2528 (Fminibuffer_completion_help): Likewise.
2529 (Fminibuffer_message): Likewise.
2531 * fns.c (Freverse): Reindent.
2533 * eval.c (Fif): Reindent.
2536 * editfns.c (Fuser_real_login_name): Reindent.
2537 (Finsert_buffer_substring): Likewise.
2538 (Fcompare_buffer_substrings): Likewise.
2539 (Fsubst_char_in_region): Likewise.
2541 * dispnew.c (Fsit_for): Reindent.
2542 (Fframe_or_buffer_changed_p): Likewise.
2543 (Finternal_show_cursor_p): Likewise.
2544 (syms_of_display): Likewise.
2546 * alloc.c (Flist): Reindent.
2547 (Fvector): Likewise.
2549 2001-11-12 Richard M. Stallman <rms@gnu.org>
2551 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
2552 LeaveNotify events. Only FocusIn and FocusOut do that now.
2553 (x_display_and_set_cursor): Do display hollow cursors in active
2554 minibuffer windows when they are not selected.
2556 2001-11-12 Jason Rumney <jasonr@gnu.org>
2558 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
2559 * w32term.c: Change doc-string comments to `new style'.
2560 [w/`doc:' keyword]. Doc fixes.
2562 * w32fns.c: Don't define max.
2563 (Fx_open_connection): Only execute once.
2565 2001-11-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2567 * ccl.c: Change macros to use do-while block instead of if-else.
2568 Use braces to follow GNU Coding Standards.
2570 2001-11-11 Richard M. Stallman <rms@gnu.org>
2572 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
2574 * lread.c (read_escape): Use end_of_file_error for reporting eof.
2576 * insdel.c (replace_range): Use adjust_markers_for_replace
2577 instead of adjust_markers_for_delete and adjust_markers_for_insert.
2579 * intervals.h: Declare set_text_properties and set_text_properties_1.
2581 * textprop.c (set_text_properties_1): New subroutine
2582 broken out of set_text_properties.
2583 (set_text_properties): Use set_text_properties_1.
2585 * intervals.c (graft_intervals_into_buffer):
2586 Use set_text_properties_1 to clear out properties.
2588 * search.c (Freplace_match): Use replace_range to insert
2589 and delete. Don't request property inheritance from
2592 2001-11-10 Jason Rumney <jasonr@gnu.org>
2594 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
2595 vertical fonts. Allow them if face name is explicitly specified.
2596 Do not give up if we find a font that cannot be converted to an xlfd.
2598 2001-11-10 Gerd Moellmann <gerd@gnu.org>
2600 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
2601 instead of malloc/free.
2603 2001-11-09 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2605 * xfaces.c (merge_face_vectors): Use braces to follow GNU
2607 (Finternal_set_lisp_face_attribute): Likewise.
2609 * buffer.c (Fbury_buffer): Likewise.
2611 * indent.c (current_column_1): Remove unused variable `prev_col'.
2613 * coding.c (encode_coding): Use precomputed value of `src'.
2614 (encode_coding): Remove unused variable `src_end'.
2615 (code_convert_region): Remove unused variables `count'.
2617 2001-11-07 Jason Rumney <jasonr@gnu.org>
2619 * w32term.c (x_display_and_set_cursor): Do not move system caret
2620 if cursor_glyph is NULL.
2622 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2624 * keymap.c (access_keymap): Fix compilation error.
2626 2001-11-07 Miles Bader <miles@gnu.org>
2628 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
2630 2001-11-07 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2632 * intervals.c (graft_intervals_into_buffer):
2633 Remove #ifdef'd-out code.
2634 (graft_intervals_into_buffer): Remove unused variable `middle'.
2636 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
2637 code (eval-current-buffer).
2638 Change doc-string comments to `new style' [w/`doc:' keyword].
2640 2001-11-06 Richard M. Stallman <rms@gnu.org>
2642 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
2644 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
2646 * lread.c (read1): Fix behavior with nested backquoting.
2648 * keyboard.c (make_lispy_event): Check integerness and fix
2649 Lisp_Object/int mixup.
2651 2001-11-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2653 * fns.c (copy_hash_table): Remove unused variable `v'.
2655 * fontset.c (fontset_font_pattern): Remove unused variable
2658 * indent.c (current_column_1): Remove unused variable `prev_col'.
2660 2001-11-05 Richard M. Stallman <rms@gnu.org>
2662 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
2664 * buffer.c (Fkill_buffer): Don't delete auto save file
2665 if buffer is modified.
2667 2001-11-05 Andrew Innes <andrewi@gnu.org>
2669 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
2672 2001-11-05 Richard M. Stallman <rms@gnu.org>
2674 * unexelf.c (unexec): Minor changes; clean up comments.
2676 2001-11-05 Sam Steingold <sds@gnu.org>
2678 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
2680 2001-11-05 Andreas Schwab <schwab@suse.de>
2682 * sound.c (sound_perror): Save errno from being clobbered.
2684 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
2686 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
2687 the program image directly.
2689 2001-11-05 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2691 * buffer.h (Fbuffer_local_value): Add prototype.
2693 2001-11-04 Richard M. Stallman <rms@gnu.org>
2695 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
2698 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
2699 (record_char): Likewise.
2701 * keyboard.c (make_lispy_event): Don't insist a drag event must
2702 move to a different buffer position. Instead, check for moving at
2703 least double_click_fuzz.
2705 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
2707 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
2709 * indent.c (current_column_1, Fmove_to_column): Separate the code
2710 for display-table glyphs from the code buffer text, to fix
2713 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
2715 * buffer.c (Fbuffer_local_value): New function.
2716 (syms_of_buffer): Defsubr it.
2718 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
2719 value of `cursor-in-non-selected-windows'.
2721 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
2722 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
2723 (syms_of_xdisp): Initialize it.
2725 2001-11-04 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2727 * xfns.c (Fx_create_frame): Doc fix.
2729 * coding.c: Change doc-string comments to `new style' [w/`doc:'
2732 * eval.c (top_level_value, top_level_set): Remove commented and
2734 (Fdefvar): Fix usage in doc-string.
2736 2001-11-03 Richard M. Stallman <rms@gnu.org>
2738 * xfns.c: Include unistd.h, if it exists.
2740 * editfns.c: Move the include of ctype.h after unistd.h.
2742 * gmalloc.c: Test BROKEN_PROTOTYPES.
2744 2001-11-03 Ken Raeburn <raeburn@gnu.org>
2746 * lisp.h (CHECK_STRING_CAR): New macro.
2747 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
2748 treating XCAR and XCDR as lvalues.
2749 (openp): Use CHECK_STRING_CAR.
2750 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
2752 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
2754 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
2755 (SIGMASKTYPE): Define.
2757 * syssignal.h (sigunblock): Don't define if already defined.
2759 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2761 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
2762 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
2763 Fix typos in comments.
2765 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
2766 and #ifdef'd-out code.
2767 Fix and reindent comments.
2769 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
2771 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
2772 argument `i' in macros.
2774 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
2777 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2778 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
2779 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
2780 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
2781 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
2782 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2783 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
2784 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
2787 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
2788 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
2789 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
2790 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
2791 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
2792 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
2793 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
2794 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
2795 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
2796 (remove unused second argument).
2798 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
2800 * syntax.c (describe_syntax): New wrapper.
2801 (Finternal_describe_syntax_value): Rename from describe_syntax.
2802 Don't insert space at front and \n at the end.
2803 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
2805 * regex.c (re_wctype): Try to fix some warnings.
2806 (regcomp, regexec): Don't forget the __restrict.
2808 2001-11-02 Richard M. Stallman <rms@gnu.org>
2810 * textprop.c (Fget_char_property): Doc fix.
2812 2001-11-02 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2814 * process.c (Fstart_process): Add usage to doc-string.
2816 * data.c (Fsetq_default): Ditto.
2818 * callint.c (Finteractive): Ditto.
2820 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
2822 * macros.c: Don't include keymap.h any more.
2824 2001-11-01 Richard M. Stallman <rms@gnu.org>
2826 * data.c (Fmake_local_variable): Doc fix.
2828 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
2829 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
2831 * keymap.c (Fdescribe_buffer_bindings): Print character property
2832 bindings along with or instead of the buffer local map.
2833 Make the overriding maps override what they should.
2835 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2837 * window.c (grow_mini_window): Fix typo in comment.
2839 2001-11-01 Gerd Moellmann <gerd@gnu.org>
2841 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
2842 (XTset_vertical_scroll_bar): Likewise.
2844 * xfns.c (x_build_heuristic_mask): Use four_corners_best
2845 instead of IMAGE_BACKGROUND.
2847 * xfns.c (four_corners_best): Reindent.
2849 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2850 Handle :box so that it is possible to specify sexprs.
2852 2001-11-01 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2854 * xfaces.c (Finternal_merge_in_global_face): Reindent.
2855 (Fface_font): Ditto.
2856 (Finternal_set_alternative_font_registry_alist): Ditto.
2857 (Ftty_suppress_bold_inverse_default_colors): Ditto.
2859 * xfns.c (x-get-resource): Reindent.
2861 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
2863 * s/hpux11.h: New file.
2865 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2867 * emacs.c (USAGE1): Show command line option --no-window-system
2868 instead of --no-windows in usage.
2869 (standard_args): Rename --no-windows to --no-window-system.
2870 (bug_reporting_address): Follow Emacs coding conventions.
2872 * eval.c (Fcommandp): Doc fix.
2873 Change doc-string comments to `new style' [w/`doc:' keyword].
2875 * frame.c (Fframe_live_p): Doc fix.
2877 * buffer.c (selective-display-ellipses): Doc fix.
2879 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2881 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
2883 * xfaces.c (realize_x_face): If C is not a single-byte character,
2884 set the face's colors_copied_bitwise_p instead of the defaulted_p
2885 members which have a different meaning.
2886 (free_face_colors): Do nothing for a face whose colors have been
2889 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
2891 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2893 * marker.c, mocklisp.c: Change doc-string comments to `new style'
2896 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2898 * fns.c (require_unwind): Return Lisp_Object.
2900 2001-10-31 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2902 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
2903 (last-input-char): Revert doc-string to be the same as the
2904 doc-string of `last-input-event'.
2906 * xdisp.c: Fix typos in comments.
2908 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2910 * window.c (grow_mini_window): Handle case that the root
2911 window is already smaller than the nominal mininum height.
2913 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
2915 * emacs.c (main): Don't call keys_of_macros any more.
2917 * lisp.h (keys_of_macros): Remove.
2919 * macros.c (keys_of_macros): Remove.
2921 * xfaces.c (Fface_attribute_relative_p): Declare args.
2923 2001-10-30 Jason Rumney <jasonr@gnu.org>
2925 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
2926 (enum_font_cb2): Ignore fonts with vertical orientation.
2928 2001-10-30 Richard M. Stallman <rms@gnu.org>
2930 * keyboard.c (Finput_pending_p): Doc fix.
2932 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2934 * xterm.c (x_after_update_window_line): Don't run the code
2935 clearing in borders for rows whose visible height is 0.
2937 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
2938 resized_p flag is set. If not set, use the much less flickering
2939 method previously used.
2941 * dispnew.c (change_frame_size_1): Set frame's resized_p.
2943 * frame.h (struct frame) <resized_p>: New member.
2945 * lread.c (to_multibyte): Ensure read_buffer is at least twice
2946 as large as the number of bytes to convert.
2948 * lread.c (to_multibyte): New function.
2951 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
2953 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2955 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2957 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
2958 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2959 if the row's fill_line_p is set and drawing the last glyph with
2960 DRAW_IMAGE_{RAISED,SUNKEN}.
2962 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2964 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
2966 * xmenu.c: Include coding.h and charset.h.
2967 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2968 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2969 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
2970 Explicitly set wv->help. Use `TRUE' rather than `True'.
2971 (menu_help_callback): Use empty_string.
2973 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
2974 (Fx_popup_dialog): Explicitly init f.
2975 (w32_menu_display_help): Use empty_string.
2977 2001-10-29 Richard M. Stallman <rms@gnu.org>
2979 * fns.c (Frequire): Detect recursive try to require the same
2980 feature 3 or more levels deep, and get error.
2981 (require_unwind): New subroutine.
2982 (require_nesting_list): New variable.
2983 (syms_of_fns): Init and staticpro it.
2985 * print.c (print_object): Clarify indication of insertion type.
2987 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2989 * coding.c (syms_of_coding): Document that locale-coding-system is
2990 used for decoding input on X.
2992 * window.c (Fscroll_left, Fscroll_right): Doc fix.
2994 2001-10-29 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
2996 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2997 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2999 2001-10-29 Gerd Moellmann <gerd@gnu.org>
3001 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
3002 use NO_CURSOR if cursor_in_non_selected_windows is false.
3004 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
3005 the slant attribute if FRAME is t.
3007 * xfns.c (x_set_internal_border_width): Set frame garbaged
3008 when X window doesn't exist yet.
3010 * xterm.c (x_after_update_window_line): Clear internal border
3011 in different circumstances.
3013 * xterm.c (XTread_socket) <KeyPress>: Don't use
3014 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
3017 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3019 * m/ibms390.h: New file. From Adam Thornton
3020 <athornton@sinenomine.net>.
3022 2001-10-28 Gerd Moellmann <gerd@gnu.org>
3024 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
3026 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
3029 2001-10-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3031 * emacs.c: Use argv[0] instead of emacs when -t was specified.
3033 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
3035 Fix typos in comments.
3037 * emacs.c (bug_reporting_address): New function.
3038 Use it when displaying usage message.
3040 * minibuf.c (read_minibuf): Remove unused external declaration of
3041 variable `Qread_only'.
3043 * keymap.c (access_keymap): Remove unused variable `charset'.
3045 2001-10-28 Miles Bader <miles@gnu.org>
3047 * xfaces.c (merge_face_heights): Handle TO being relative as well.
3048 Remove #ifdef'd-out code.
3049 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
3050 (syms_of_xfaces): Initialize them.
3052 2001-10-27 Jason Rumney <jasonr@gnu.org>
3054 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
3055 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
3056 position using the system caret.
3058 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
3059 (w32_system_caret_height, w32_system_caret_x)
3060 (w32_system_caret_y): New variables for tracking system caret.
3061 (w32_initialize): Initialize them.
3062 (x_display_and_set_cursor): Make system caret follow the active cursor.
3064 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
3067 * w32term.c (note_mouse_highlight): Clear old help_echo.
3069 2001-10-27 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3071 * xterm.c: Fix typo in a comment.
3073 * emacs.c: Fix typos in comments.
3074 Remove unnecessary spaces.
3075 Change doc-string comments to `new style' [w/`doc:' keyword].
3076 (USAGE2): Fix typos in usage string.
3078 * xterm.c: Fix typo in a comment.
3080 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
3083 2001-10-27 Gerd Moellmann <gerd@gnu.org>
3085 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
3086 instead of 1/2 line_height in the heuristic for skipping
3087 farther backward when target_y was not reached.
3089 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
3090 Display errno only if non-zero.
3091 (sound_warning): New function.
3092 (vox_configure): Don't treat failing to set sample rate as error.
3093 (various places): Improve error messages.
3095 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
3097 * fileio.c (Faccess_file): Run the argument filename through
3098 Fexpand_file_name, before using it.
3100 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
3101 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
3103 2001-10-26 Gerd Moellmann <gerd@gnu.org>
3105 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
3107 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3108 Fix clearing in the case of scroll bars on the right.
3110 2001-10-26 Juanma Barranquero <lektu@terra.es>
3112 * w32gui.h (XImage): Add a dummy typedef.
3114 2001-10-26 Gerd Moellmann <gerd@gnu.org>
3116 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
3118 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
3120 * frame.c (Fframe_parameter): Fix last change.
3122 * fileio.c: Revert last change (which removed old commented-out
3123 version of expand-file-name). Add a comment that explains why
3124 this old version should not be removed.
3126 2001-10-25 Gerd Moellmann <gerd@gnu.org>
3128 * frame.c (Fframe_parameter): Fix a bug whereby some
3129 ``artificial'' frame parameters, like `minibuffer' were not
3130 obtained by calling Fframe_parameters.
3132 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
3135 * xdisp.c (move_it_vertically_backward): Compute line height
3136 differently. Add heuristic to try to be more compatible to 20.x.
3138 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
3140 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
3142 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
3145 2001-10-25 Miles Bader <miles@gnu.org>
3147 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
3148 BG is a pointer to a structure, not a structure.
3149 (gif_format, png_format): Add missing commas.
3151 2001-10-24 Richard M. Stallman <rms@gnu.org>
3153 * xfaces.c (Fface_attributes_as_vector): New function.
3154 (syms_of_xfaces): Defsubr it.
3156 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3158 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
3161 2001-10-25 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3163 * search.c (scan_newline): Remove unused variable `selective_display'.
3165 2001-10-25 Miles Bader <miles@gnu.org>
3167 * dispextern.h (struct image): Add `background',
3168 `background_valid', and `background_transparent' fields.
3169 (image_background, image_background_transparent): New declarations.
3170 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
3171 * xfns.c (image_background, image_background_transparent)
3172 (four_corners_best): New functions.
3173 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
3174 (gs_format): Add `:background' entry.
3175 (lookup_image): Set IMG's background color if specified.
3176 (pbm_load, xbm_load_image, png_load): Set IMG's background field
3178 (x_clear_image_1): Reset `background_valid' and
3179 `background_transparent_valid' fields.
3180 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
3181 calculating it here. Set IMG's background_transparent field.
3182 (enum xpm_keyword_index): Add XPM_BACKGROUND.
3183 (enum png_keyword_index): Add PNG_BACKGROUND.
3184 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
3185 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
3186 (enum gif_keyword_index): Add GIF_BACKGROUND.
3187 (enum gs_keyword_index): Add GS_BACKGROUND.
3188 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
3189 Pre-calculate image background color where necessary.
3190 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
3191 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
3192 color to use for image glyph reliefs.
3194 2001-10-24 Gerd Moellmann <gerd@gnu.org>
3196 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
3199 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
3200 Fix clearing of area not covered by scroll bar.
3202 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3204 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
3206 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
3207 (glyph_rect): Remove unused variable `area'.
3209 2001-10-24 Gerd Moellmann <gerd@gnu.org>
3211 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
3213 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
3214 (row_containing_pos): Take additional argument DY.
3215 Treat rows ending in middle of char differently.
3216 (display_line): Handle tabs on window systems differently.
3218 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
3219 with additional argument.
3221 * dispextern.h (row_containing_pos): Adjust prototype.
3223 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
3224 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
3225 (try_window_id, try_window_reusing_current_matrix)
3226 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
3227 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
3229 2001-10-24 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3231 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
3233 (HAVE_BOXES): Fix typo in comment.
3234 (push_menu_pane): Fix typo in comment.
3236 * xdisp.c: (display_prop_string_p): Remove unused local declaration
3238 (single_display_prop_string_p): Remove unused local declarations
3239 of `Qwhen' and `Qmargin'.
3240 (string_buffer_position): Remove unused variable `around'.
3241 (store_frame_title): Remove unused variable `width'.
3243 * window.c: Don't define max.
3244 (coordinates_in_window): Remove unused variable `uy'.
3246 * widget.c: Don't define max.
3248 * process.c: Don't define max.
3249 (create_process): Remove unused variable `buffer'.
3251 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3253 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
3255 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
3257 * xfaces.c (Finternal_set_lisp_face_attribute)
3258 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
3259 frame is on a windowed display.
3261 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3263 * dispnew.c (sync_window_with_frame_matrix_rows):
3264 Fix handling of windows which aren't full-width, fix handling
3267 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
3269 2001-10-23 Andreas Schwab <schwab@suse.de>
3271 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
3272 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
3274 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3276 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
3277 REAL_END. Notice if cursor gets overwritten.
3278 (notice_overwritten_cursor): Take X positions as parameters.
3279 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
3280 around call to x_draw_glyphs.
3282 2001-10-23 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3284 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
3285 instead of C) and usage.
3287 * editfns.c (char-to-string): Fix argument names (use CHAR instead
3290 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
3291 `left', `max_width' and `max_height'.
3293 2001-10-23 Gerd Moellmann <gerd@gnu.org>
3295 * xdisp.c (display_line): For a tab continued to the next line,
3296 set row's ends_in_middle_of_char_p.
3298 2001-10-22 Gerd Moellmann <gerd@gnu.org>
3300 * xdisp.c (display_line): Fix computation of continuation lines
3303 2001-10-22 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3305 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
3308 * fileio.c: Remove unused code.
3310 2001-10-22 Miles Bader <miles@gnu.org>
3312 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
3313 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
3314 Remove `DOC_STRINGS_IN_COMMENTS' cases.
3316 2001-10-21 Jason Rumney <jasonr@gnu.org>
3318 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
3320 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3322 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
3323 (Finsert_string): Avoid the multi-line string literals warning.
3325 2001-10-22 Miles Bader <miles@gnu.org>
3327 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
3328 (Fdocumentation): Don't use it.
3329 (syms_of_doc): Don't initialize it.
3331 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
3332 * print.c (Fwith_output_to_temp_buffer): Likewise.
3333 * window.c (Fsave_window_excursion): Likewise.
3334 * editfns.c (Fsave_excursion, Fsave_current_buffer)
3335 (Fsave_restriction): Likewise.
3336 * eval.c (Frun_hooks, Frun_hook_with_args)
3337 (Frun_hook_with_args_until_failure)
3338 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
3339 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
3340 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
3341 (Funwind_protect, Fcondition_case): Likewise.
3342 * coding.c (Ffind_operation_coding_system): Likewise.
3343 * keyboard.c (Ftrack_mouse): Likewise.
3345 2001-10-21 Miles Bader <miles@gnu.org>
3347 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
3348 (Fmake_hash_table): Add usage: string to doc string.
3349 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
3350 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
3351 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
3352 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
3353 (Fml_prefix_argument_loop): Likewise.
3355 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3357 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
3359 * sysdep.c (init_sys_modes): Change doc-string comments to `new
3360 style' [w/`doc:' keyword].
3362 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
3363 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
3364 comments to `new style' [w/`doc:' keyword].
3366 2001-10-21 Jason Rumney <jasonr@gnu.org>
3368 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
3370 * w32term.c (remember_mouse_glyph): New function.
3371 (w32_mouse_position): Use it.
3372 (note_mouse_movement): If the mouse moved off the glyph, remember
3375 * w32term.h (struct w32_output): Correct spelling of x_compatible.
3376 (w32_display_info): Add mouse_face_overlay.
3378 * w32term.c (notice_overwritten_cursor): Renamed from
3379 note_overwritten_text_cursor. Rewritten to take glyph widths into
3381 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
3382 (fast_find_string_pos): New function.
3383 (fast_find_position): Return the correct vpos. Add parameter
3384 STOP. In the final row, stop before glyphs having STOP as object.
3385 Don't consider glyphs that are not from a buffer.
3386 (fast_find_position) [0]: Add a presumably more correct version
3388 (expose_window_tree, expose_frame): Don't compute intersections here.
3389 (expose_window): Do it here instead.
3390 (expose_window_tree, expose_window, expose_line): Return 1 when
3391 overwriting mouse-face.
3392 (expose_window): If W is the window currently being updated, mark
3394 (expose_frame): If mouse-face was overwritten, redo it.
3395 (x_use_underline_position_properties): New variable.
3396 (syms_of_xterm): DEFVAR_BOOL it.
3397 (x_draw_glyph_string): Add comment to use it in future.
3398 (x_draw_glyph_string): Restore clipping after drawing box.
3399 Fix a computation of the underline position.
3400 (w32_get_glyph_string_clip_rect): Minor cleanup.
3401 (x_fill_stretch_glyph_string): Remove an assertion.
3402 (x_produce_glyphs): Don't convert multibyte characters
3403 to unibyte characters in unibyte buffers.
3404 (cursor_in_mouse_face_p): New function.
3405 (x_draw_stretch_glyph_string): Use it to choose a different GC
3406 when drawing a cursor within highlighted text. Don't draw
3407 background again if it has already been drawn.
3408 (x_draw_glyph_string_box): Don't draw a full-width
3409 box just because the glyph row's full_width_p flag is set.
3410 (x_draw_glyphs): Fix computation of rightmost x for
3412 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3413 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
3414 change bottom shadow accordingly. Some cleanup.
3415 (x_update_window_end): Handle overwritten mouse face
3416 also for tool bar windows.
3417 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
3418 DRAW is DRAW_IMAGE_RAISED.
3419 (clear_mouse_face): Return 1 if text with mouse face was
3420 actually redrawn. Make the function static. Reset
3421 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
3422 optimize away highlighting if we pass over that same overlay again.
3423 (note_mouse_highlight): Call mouse_face_overlay_overlaps
3424 to detect a case where we have to highlight a different region
3425 despite not having left the currently highlighted region.
3426 Set mouse_face_overlay in the x_display_info. Avoid changing the
3427 mouse pointer shape when show_mouse_face has already done it, or
3428 there is no need. Handle mouse-face and help-echo in strings.
3429 (glyph_rect): New function.
3430 (w32_mouse_position): Use it to raise the threshold for mouse
3431 movement event generation.
3432 (w32_initialize_display_info): Initialize the x_display_info's
3434 (w32_set_vertical_scroll_bar): Don't clear a zero height
3436 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
3437 a widget to zero height.
3439 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
3440 Protect unibyte strings created by replacing their multibyte
3441 equivalents in menu_items.
3442 (w32_menu_show): Don't overwrite an item's name with its key
3443 description in case the description is a multibyte string.
3444 (single_submenu): Some cleanup.
3446 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
3447 (postprocess_image): New function.
3448 (lookup_image): Call it for all image types except PostScript.
3449 (x_kill_gs_process): Call postprocess_image.
3450 (tiff_error_handler, tiff_warning_handler): New functions.
3451 (tiff_load): Install them as handlers.
3452 (x_kill_gs_process): Recognize if someone has cleared the image
3454 (valid_image_p): Protect better against invalid image
3455 specifications. Previous code could signal an error.
3456 (Fx_hide_tip, Fshow_tip): Doc fix.
3457 (Fv_max_tooltip_size): New variable.
3458 (syns_of_xfns): DEFVAR_LISP it.
3459 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
3460 window buffer to *tip* right after creating the frame. Set frame's
3461 window_width. Use a maximum tooltip size specified by
3462 Vx_max_tooltip_size, if that has valid contents.
3463 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
3464 Make sure the tooltip is completely visible.
3465 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3466 (Fx_create_frame): Adjust the frame's height for presence
3467 of the tool bar before calling x_figure_window_size.
3468 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
3469 when the window gets smaller.
3470 (x_set_foreground_color): Set frame's cursor_pixel.
3471 (x_set_foreground_color, x_set_background_color): Cleaned up.
3472 (x_set_font): Handle case of x_new_fontset returning the same name
3473 as before, although there was a change in fontsets.
3475 2001-10-21 Miles Bader <miles@gnu.org>
3477 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
3478 (Flogxor): Add usage: string to doc string.
3479 * charset.c (Fstring): Likewise.
3480 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
3481 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
3483 2001-10-21 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3485 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
3487 * alloc.c: Reindent DEFUNs with doc: keywords.
3489 * abbrev.c (Finsert_abbrev_table_description): Reindent.
3491 * frame.c: Change doc-string comments to `new style' [w/`doc:'
3494 2001-10-20 Gerd Moellmann <gerd@gnu.org>
3496 * (Version 21.1 released.)
3498 2001-10-20 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3500 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
3502 * xdisp.c (invisible_text_between_p): Put prototype inside #if
3505 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
3506 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
3507 Change doc-string comments to `new style' [w/`doc:' keyword].
3509 2001-10-20 Miles Bader <miles@gnu.org>
3511 The following changes remove the glyph_row `inverse_p' field,
3512 which is never set anymore, due to other changes:
3514 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
3515 (reassert_line_highlight, change_line_highlight): Declarations removed.
3516 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
3517 (line_hash_code, row_equal_p, fake_current_matrices)
3518 (build_frame_matrix_from_leaf_window, update_frame_line)
3519 (update_frame_line, update_frame_line, update_frame_line):
3520 Don't use `inverse_p' field.
3521 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
3522 change_line_highlight_hook.
3523 (XTreassert_line_highlight, x_change_line_highlight):
3525 (x_fix_overlapping_area, x_write_glyphs, expose_area)
3526 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
3527 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
3529 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
3530 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
3531 (w32_reassert_line_highlight, x_change_line_highlight):
3533 * w32console.c (reassert_line_highlight, change_line_highlight):
3535 (initialize_w32_display): Don't set reassert_line_highlight_hook
3536 or change_line_highlight_hook.
3537 (hl_mode): Function removed.
3538 (reset_terminal_modes, set_terminal_modes, update_begin)
3539 (update_end, w32_face_attributes, initialize_w32_display):
3540 (clear_frame, ins_del_lines): Don't call it.
3541 * termhooks.h (reassert_line_highlight_hook)
3542 (change_line_highlight_hook): Declarations removed.
3543 * term.c (reassert_line_highlight_hook)
3544 (change_line_highlight_hook): Variables removed.
3545 (reassert_line_highlight, change_line_highlight): Functions removed.
3546 * msdos.c (IT_reassert_line_highlight)
3547 (IT_change_line_highlight): Functions removed.
3548 (internal_terminal_init): Don't set reassert_line_highlight_hook
3549 or change_line_highlight_hook.
3550 (highlight): Variable removed.
3551 (IT_set_face, IT_update_begin, IT_update_end)
3552 (IT_set_terminal_modes): Don't set or use it.
3554 The following changes remove inverse-video support for terminals
3555 that use a `magic cookie' standout mode. Due to changes in the
3556 way mode-lines are displayed, such support no longer works
3557 anyway, and it's probable that almost no one uses such terminals
3560 * term.c (standout_requested): Variable removed.
3561 (update_end, highlight_if_desired): Don't use it.
3562 (chars_wasted, copybuf): Variables removed.
3563 (write_standout_marker): Function removed.
3564 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
3565 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
3566 Don't use `chars_wasted' or `copybuf'.
3567 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
3568 Set `costs_set' to true.
3569 (cursor_to, clear_end_of_line): Test `costs_set' instead of
3571 (clear_end_of_line): Function removed.
3572 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
3573 (clear_to_end): Call `clear_end_of_line' instead of
3574 `clear_end_of_line_raw'.
3575 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
3576 (term_init): Don't set them.
3577 Turn off any standout/underline modes that require magic cookies.
3578 (ins_del_lines, highlight_if_desired, background_highlight)
3579 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
3580 Remove special processing for magic-cookie standout modes.
3581 (turn_off_face, turn_on_face): Remove special processing for
3582 underline magic-cookie glitch.
3584 2001-10-19 Richard M. Stallman <rms@gnu.org>
3586 * eval.c (syms_of_eval): Doc fixes.
3588 2001-10-19 Gerd Moellmann <gerd@gnu.org>
3590 * xdisp.c (redisplay_internal): Don't clear echo area if the
3591 mini-window is selected.
3593 2001-10-19 Miles Bader <miles@gnu.org>
3595 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
3596 doesn't take precedence if the affected property's value is nil.
3598 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
3600 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
3601 with fields and suggest using `forward-line' to avoid them.
3602 * editfns.c (Fline_beginning_position, Fline_end_position):
3603 Clarify documentation.
3605 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
3607 * keymap.c (current_minor_maps): `override' only shadows its
3608 correspondent in minor-mode-map-alist, not the whole tail.
3610 2001-10-18 Andrew Innes <andrewi@gnu.org>
3612 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
3613 optimization. The fontp->encoding array was not being initialized
3614 correctly when compiled with optimizations by MSVC.
3616 2001-10-18 Gerd Moellmann <gerd@gnu.org>
3618 * xdisp.c (display_line): Indicate empty lines in active mini-window.
3620 2001-10-17 Andrew Innes <andrewi@gnu.org>
3622 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
3624 * w32fns.c (w32_load_system_font): Cache codepage for font, in
3625 font_info.charset field.
3627 * w32term.c (w32_encode_char): Get cached codepage from font_info,
3628 rather than working it out by calling w32_codepage_for_font for
3631 2001-10-17 Andrew Innes <andrewi@gnu.org>
3633 * w32term.c (w32_read_socket): Determine clipping rectangle for
3634 the entire frame, including areas covered by scrollbars and the
3635 menubar. This avoids internal arguments about whether a frame is
3636 fully obscured or not.
3638 2001-10-17 Gerd Moellmann <gerd@gnu.org>
3640 * xdisp.c (try_window_id): Undo last change. Give up if
3641 window ends in strings.
3643 * xdisp.c (try_window_id): Don't display lines after the window
3644 end if the rest of the window after the window end was already blank.
3646 * xdisp.c (try_window_id): Remove code that was only there
3647 for the release of 21.1.
3649 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
3651 2001-10-17 Miles Bader <miles@gnu.org>
3653 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
3654 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
3655 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
3656 Change doc-string comments to `new style' [w/`doc:' keyword].
3657 (DOC_STRINGS_IN_COMMENTS): Macro removed.
3658 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
3661 2001-10-16 Miles Bader <miles@gnu.org>
3663 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
3665 2001-10-16 Gerd Moellmann <gerd@gnu.org>
3667 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
3670 2001-10-16 Ken Raeburn <raeburn@gnu.org>
3672 Avoid the assumption that car and cdr slots of cons cells are
3673 addressable lvalues; this allows for easier experimentation with
3674 other lisp implementations that may not permit such accesses for
3675 various reasons. Not quite complete -- buffer.c still needs some
3676 work, and w32/mac files need rechecking -- so compile-time
3677 enforcement is left disabled for now.
3679 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
3680 gcc with a union-based Lisp object rep. Redefine as no-op for now.
3681 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
3682 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
3683 (XSETCAR, XSETCDR): New macros.
3684 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
3685 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
3686 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
3687 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
3689 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
3690 * buffer.c (record_buffer, Fbury_buffer)
3691 (swap_out_buffer_local_variables, recenter_overlay_lists)
3692 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
3693 fields of a cons cell respectively.
3694 * callint.c (quotify_args, Fcall_interactively): Likewise.
3695 * ccl.c (Fregister_code_conversion_map): Likewise.
3696 * coding.c (detect_coding_system): Likewise.
3697 * composite.c (get_composition_id, make_composition_value_copy):
3699 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
3700 (swap_in_symval_forwarding, set_internal, Fset_default)
3701 (Fmake_variable_buffer_local, Fmake_local_variable)
3702 (Fmake_variable_frame_local): Likewise.
3703 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
3704 * keymap.c (Fset_keymap_parent, store_in_keymap)
3705 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
3706 * minibuf.c (get_minibuffer): Likewise.
3707 * search.c (Fmatch_data): Likewise.
3708 * textprop.c (extend_property_ranges): Likewise.
3709 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
3710 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
3712 * w32term.c (x_delete_display): Likewise.
3713 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
3715 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
3716 * doc.c (store_function_docstring): Use XSETCARFASTINT.
3717 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
3718 (Fread_file_name): Use XSETCAR.
3719 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
3721 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
3722 * frame.c (Fmake_terminal_frame): Use XSETCDR.
3723 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
3725 * keyboard.c (read_char): Alter list traversal to avoid taking the
3726 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
3727 (parse_menu_item): Use XSETCAR and XSETCDR.
3728 (reach_char_x_menu_prompt): Use XSETCAR.
3729 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
3730 (Fcommand_execute): Use XSETCDR.
3731 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
3732 (openp): Change list traversal to avoid using XCAR as lvalue.
3733 (read_list): Use XSETCDR.
3734 * process.c (wait_reading_process_input): Change wait_for_cell
3735 handling to avoid taking addresses of cons cell slots.
3736 * xselect.c (x_own_selection, x_handle_selection_clear)
3737 (x_clear_frame_selections): Use XSETCDR.
3738 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
3739 (x_handle_property_notify, x_get_foreign_selection)
3740 (x_handle_selection_notify): Use XSETCAR.
3742 2001-10-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3744 * buffer.c: Put doc strings in comments.
3746 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
3748 2001-10-15 Sam Steingold <sds@gnu.org>
3750 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
3752 2001-10-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3754 * process.c (process-inherit-coding-system-flag)
3755 (get-buffer-process): Do not confuse make-docfile with doc strings
3758 * editfns.c (Fchar_to_string): Make doc string consistent with
3759 arguments. Put doc strings in comments.
3761 * abbrev.c, minibuf.c: Put doc strings in comments.
3763 2001-10-15 Gerd Moellmann <gerd@gnu.org>
3765 * window.c (window_loop): Don't check for Fother_buffer returning nil.
3767 * window.c (select_window_1): Unfreeze window start. Remove a
3768 doubled test for WINDOW being live.
3770 2001-10-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3772 * fns.c (Fmapconcat): Fix typo in a doc string.
3774 * dispnew.c (Fsleep_for): Fix typo in a doc string.
3776 2001-10-15 Gerd Moellmann <gerd@gnu.org>
3778 * xterm.c (x_draw_glyph_string): Restore clipping after
3781 2001-10-15 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3783 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
3785 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
3787 * indent.c (skip_invisible): Use new retval of
3788 TEXT_PROP_MEANS_INVISIBLE.
3790 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
3791 If a parent is reached and noinherit is set, exit immediately.
3792 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
3794 * s/ms-w32.h (EXEC_SUFFIXES):
3795 * s/msdos.h (EXEC_SUFFIXES):
3796 * process.h (EXEC_SUFFIXES): Remove.
3798 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
3799 (decode_suffixes): Remove.
3801 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
3802 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
3803 (invisible_ellipsis_p): Remove.
3805 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
3806 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
3807 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
3808 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
3809 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
3811 2001-10-14 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3813 * lisp.h (Ftop_level): Add prototype.
3815 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
3816 (XTread_socket): Improve style of comments to follow other
3819 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
3820 is already prototyped in included lisp.h).
3822 * frame.c (Fset_mouse_position): Improve style of comment to
3823 follow other comments.
3824 (Fset_mouse_pixel_position): Improve style of comment to follow
3826 (Fmake_frame_visible): Doc fix and typo in comment.
3827 (Fmake_frame_invisible): Doc fix and typo in comment.
3828 (Ficonify_frame): Fix typo in comment.
3830 2001-10-14 Gerd Moellmann <gerd@gnu.org>
3832 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
3833 * term.c, alloc.c: Put doc strings in comments.
3835 2001-10-13 Gerd Moellmann <gerd@gnu.org>
3837 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
3838 Provide definitions for doc strings in comments.
3840 * fns.c: Put doc strings in comments.
3842 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
3844 * dired.c (file_name_completion): Ignore a candidate directory if
3845 it matches an element in completion-ignored-extensions that ends
3847 (syms_of_dired) <completion-ignored-extensions>: Mention the above
3848 feature in the doc string.
3849 (Ffile_name_completion): Ditto.
3851 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
3853 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
3855 * xfns.c (syms_of_xfns): Update calls to Fprovide.
3857 * lisp.h (Fprovide): Update prototype.
3858 (Ffeaturep, invisible_p): Remove.
3860 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
3861 (DOLIST, LOOP_PROPVAL): New macros.
3862 (invisible_p, invisible_ellipsis_p): Use them.
3863 (invisible_noellipsis_p): New function.
3864 (syms_of_xdisp): Use empty_string.
3866 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
3868 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
3869 (syms_of_lread) <Vafter_load_alist>: Update docstring.
3871 * print.c (Fwith_output_to_temp_buffer): Align with
3872 internal_with_output_to_temp_buffer.
3873 (print_preprocess): Use traverse_intervals_noorder.
3874 (print_object): Update call to traverse_intervals.
3876 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
3877 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
3879 * intervals.c (traverse_intervals_noorder): New function.
3880 (search_for_interval, count_intervals): Use it.
3881 (traverse_intervals): Use less stack space and drop `depth' arg.
3883 * fns.c (Ffeaturep): Add new `subfeature' arg.
3884 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
3885 (Qsubfeatures): New var.
3886 (syms_of_fns): Initialize it.
3888 * keymap.c (Fkey_description): Use empty_string.
3889 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
3890 (syms_of_keymap): Setup inheritance between maps.
3891 Don't export Sdescribe_bindings_internal any more.
3893 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
3895 2001-10-12 Gerd Moellmann <gerd@gnu.org>
3897 * xterm.c (notice_overwritten_cursor): Renamed from
3898 note_overwritten_text_cursor. Rewritten to take glyph widths into
3901 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
3903 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
3904 multi-line strings without a trailing "\n\".
3906 2001-10-12 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
3908 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
3911 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
3913 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
3915 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3916 * w32proc.c (sys_spawnve):
3917 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3918 * w32.c (check_windows_init_file):
3919 * sound.c (Fplay_sound):
3920 * emacs.c (init_cmdargs):
3921 * process.c (Fstart_process): Update calls to openp.
3923 * callproc.c (Vexec_suffixes): New var.
3924 (Fcall_process): Update call to openp.
3925 (decode_suffixes): New function.
3926 (syms_of_callproc): Init exec-suffixes.
3928 * lread.c (Vload_suffixes, default_suffixes): New vars.
3929 (openp): Take a lisp list of suffixes.
3930 Check for file-name-handlers even if the file was absolute already.
3931 (syms_of_lread): Declare load-suffixes.
3932 (Fload): Fix up call to openp.
3933 Don't bother checking for file-name-handler at the very beginning.
3935 * keymap.h (Fcopy_keymap): Don't export.
3937 * lisp.h (empty_string): Declare.
3938 (Vload_suffixes, Vexec_suffixes): Declare.
3939 (openp): Update prototype.
3941 * emacs.c (empty_string): New var.
3942 (syms_of_emacs): Initialize it.
3944 * search.c (wordify): Use it.
3946 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
3947 selected window if it's not displayed there. Handle the case
3948 when the window is dedicated.
3949 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
3951 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
3953 * syntax.h (struct gl_state_s): Change the meaning of b_property.
3954 Remove left_ok and right_ok.
3955 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
3956 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
3957 new meaning of b_property.
3959 * syntax.c (update_syntax_table): Simplify.
3960 (Fforward_comment): Don't skip quoted chars when going backward.
3962 2001-10-11 Gerd Moellmann <gerd@gnu.org>
3964 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
3965 in case I is of some unsigned type, in which case
3966 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
3967 comparison becomes bogus.
3969 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
3970 (Fuser_full_name): Fix bug treating a float as a fixnum.
3972 * data.c (Fstring_to_number): Use make_fixnum_or_float.
3974 * lisp.h (make_fixnum_or_float): New macro.
3976 * lisp.h (circular_list_error): Add prototype.
3978 * data.c (Qcircular_list): New variable.
3979 (circular_list_error): New function.
3980 (syms_of_data): Initialize it Qcircular_list.
3982 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
3984 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
3985 * casefiddle.c, buffer.c: Include keymap.h.
3987 2001-10-10 Gerd Moellmann <gerd@gnu.org>
3989 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
3990 options. From Dave Love <d.love@dl.ac.uk>.
3992 2001-10-09 Gerd Moellmann <gerd@gnu.org>
3994 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
3995 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3997 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
3999 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
4001 2001-10-08 Andrew Innes <andrewi@gnu.org>
4003 * lisp.h [max]: Undef min and max before redefining them.
4005 * w32gui.h: Do not undef min and max.
4007 * w32heap.h: Do not undef min and max.
4009 * s/ms-w32.h: Do not undef min and max.
4011 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
4013 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
4015 2001-10-08 Sam Steingold <sds@gnu.org>
4017 * keymap.c (current-active-maps): Quote newlines (compilation error).
4019 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4021 * Makefile.in (lisp, shortlisp): Replace bindings.el with
4022 bindings.elc, since otherwise doc strings in bindings.el get wrong
4025 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
4027 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
4029 * keyboard.h (map_prompt): Remove.
4031 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
4032 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
4034 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
4036 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
4038 * keyboard.c (map_prompt): Remove.
4039 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
4042 * keymap.h: New file. Extracted from lisp.h.
4044 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
4045 (accessible_keymaps_1): New function.
4046 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
4047 (Fwhere_is_internal): Use Fcurrent_active_maps.
4048 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
4049 Insert in current buffer rather than standard-output.
4050 Don't call `help-mode'. Export to elisp.
4051 (describe_buffer_bindings): New wrapper.
4052 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
4053 and Sdescribe_buffer_bindings.
4055 2001-10-08 Gerd Moellmann <gerd@gnu.org>
4057 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
4058 Remove code setting signal handler.
4060 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
4061 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
4063 2001-10-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4065 * keyboard.c: Don't define min/max.
4067 2001-10-08 Gerd Moellmann <gerd@gnu.org>
4069 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
4070 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
4071 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
4072 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
4073 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
4074 Don't define min/max.
4076 * lisp.h (min, max): New macros.
4078 * puresize.h (BASE_PURESIZE): Increase to 725000.
4080 2001-10-08 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4082 * xfaces.c (free_frame_menubar): Add prototype.
4084 * lisp.h (init_window): Add prototype.
4086 * editfns.c: Include ctype.h.
4088 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
4089 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
4090 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
4093 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
4094 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
4095 `popup_activated_flag' and `title'.
4097 * doc.c (Fdocumentation_property): Fix typo in a doc string.
4099 * emacs.c (main): Remove extra `;'.
4101 * atimer.h (struct atimer): Fix typos in a comment.
4103 * atimer.c: Fix typo.
4105 * Makefile.in: Fix typo.
4107 * README: Remove obsolete part mentioning removed VMS file.
4109 2001-10-07 Miles Bader <miles@gnu.org>
4111 * Makefile.in (lisp, shortlisp): Add `button.elc'.
4113 2001-10-07 Ken Raeburn <raeburn@gnu.org>
4115 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
4118 * lisp.h (Ffield_end): Declare.
4120 2001-10-07 Gerd Moellmann <gerd@gnu.org>
4122 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
4124 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
4126 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
4128 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
4130 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
4131 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
4133 * alloc.c (inhibit_garbage_collection): Simplify.
4134 (Fmemory_use_counts): Ditto.
4136 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
4137 (syms_of_data): DEFVAR_INT most-positive-fixnum and
4138 most-negative-fixnum.
4140 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
4141 (FIXNUM_OVERFLOW_P): New macros.
4143 2001-10-06 Miles Bader <miles@gnu.org>
4145 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
4146 scroll_bar_bottom_shadow_pixel fields.
4147 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
4148 for the shadows, and tell the toolkit about them if we succeed.
4149 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
4150 Free scroll-bar shadow colors.
4151 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
4152 Free scroll-bar shadow colors when the background color changes.
4153 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
4154 Initialize scroll-bar shadow-color fields.
4156 2001-10-05 Gerd Moellmann <gerd@gnu.org>
4158 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
4160 2001-10-05 Miles Bader <miles@gnu.org>
4162 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
4163 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
4164 New functions (were in simple.el).
4165 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
4166 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
4167 (syms_of_minibuf): Initialize them.
4169 2001-10-05 Gerd Moellmann <gerd@gnu.org>
4171 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
4172 (tiff_load): Install them as error and warning handler.
4174 2001-10-04 Andrew Innes <andrewi@gnu.org>
4176 * w32fns.c (x_to_w32_color): Fix argument to alloca.
4177 (w32_load_system_font): Don't believe what GetLanguageFontInfo
4178 says; query codepage info directly to determine if font is double byte.
4179 (x_to_w32_charset): Handle private format for unknown charsets.
4180 Handle wildcards in charset spec, by ignoring them.
4181 (w32_codepage_for_font): Fix argument to alloca. Don't remove
4182 "*-" prefix from charset.
4183 (x_to_w32_font): Enlarge remainder array for safety. Specifically
4184 handle the truncated font spec form constructed by font_list_1, so
4185 that we correctly identify the charset fields. Don't remove "*-"
4186 prefix from charset.
4187 (w32_list_synthesized_fonts): Fix argument to alloca.
4189 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
4191 * window.h (MINI_WINDOW_P): Use NILP.
4193 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
4195 * termhooks.h (struct input_event): Use proper type for `kind'.
4197 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4199 This handles unknown keysyms better than before. For example,
4200 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
4201 Emacs formerly completely ignored F5. With the change, it derives
4202 a key symbol from the name of the X keysym, `ccaron' in this case.
4203 Reported by Martin Buchholz.
4205 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
4208 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
4209 that EVENT->code isn't a function key, use the keysym's name.
4211 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4213 FOREACH is a macro that should make it easier to loop over Lisp
4214 lists with checks for cycles and proper lists.
4216 * lisp.h (LIST_END_P, FOREACH): New macros.
4218 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4220 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
4221 called for a lost connection. Prevent dumping core in this case.
4222 Instead print the X error, and exit. On user request.
4224 * xterm.c (error_msg): New variable.
4225 (x_fatal_error_signal): New function.
4226 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
4227 as fatal_error_signal_hook around the call to XtCloseDisplay.
4229 * emacs.c (fatal_error_signal_hook): New variable.
4230 (fatal_error_signal): Call that function.
4232 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4234 With this, Emacs prints how much pure storage it will
4235 approximately need in case pure storage overflows while dumping.
4237 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
4239 (init_alloc_once): Initialize new variables.
4240 (PURE_POINTER_P): Use new variables.
4241 (pure_alloc): If pure storage overflows, allocate from the heap.
4242 (check_pure_size): New function.
4243 (Fgarbage_collect): Don't GC if pure storage has overflowed.
4245 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
4246 (check_pure_size): Add prototype.
4248 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
4250 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4252 This adds a post-gc-hook that's run with GC inhibited.
4253 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
4255 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
4256 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
4257 (Fgarbage_collect): Run post-gc-hook.
4259 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4261 This adds `defvaralias' and `indirect-variable'. Changes not
4262 directly related to this feature are there to gain the same
4263 performance again as before variable aliases.
4265 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
4266 code to get and set symbol values, to take defvaralias into account.
4268 (Note: the new `constant' bit-flag in symbols would make it
4269 possible to define arbitrary read-only variables, e.g. with
4272 Documentation is in lispref/variables.texi. Added to NEWS.
4274 * lisp.h (enum symbol_interned): New enumeration.
4275 (struct Lisp_Symbol): Remove member `obarray', add
4276 `indirect_variable', `constant', and `interned'.
4277 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
4278 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
4279 (indirect_variable): Add prototype.
4281 * print.c (print_preprocess, print_object): Test internedness of
4282 symbols differently.
4284 * lread.c (Fintern, Funintern): Set symbol's interned and constant
4286 (init_obarray): Likewise for t and nil.
4288 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
4289 (Fdefvaralias): New function.
4290 (specbind): Simplify the test if symbol is a constant.
4291 (syms_of_eval): Defsubr Fdefvaralias.
4293 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
4294 (Qcyclic_variable_indirection): New variable.
4295 (Fkeywordp): Check for internedness differently.
4296 (Fmakunbound): Simplify the test if symbol is a constant.
4297 (indirect_variable, Findirect_variable): New functions.
4298 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
4300 (let_shadows_buffer_binding_p): Check for variable aliases.
4301 (set_internal): Simplify the test if SYMBOL is a constant.
4302 If SYMBOL has a buffer-local value and is an alias, use the aliased
4304 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
4307 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
4308 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
4311 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
4313 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
4314 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
4315 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
4317 2001-10-04 Gerd Moellmann <gerd@gnu.org>
4321 2001-10-03 Miles Bader <miles@gnu.org>
4323 * callproc.c (syms_of_callproc): Explicitly state in the
4324 documentation for `process-environment' that earlier entries take
4325 precedence over later ones.
4327 2001-10-02 Miles Bader <miles@gnu.org>
4329 * textprop.c (Fnext_char_property_change)
4330 (Fprevious_char_property_change): Remove reference to non-existant
4331 argument OBJECT from doc-string.
4333 2001-10-01 Gerd Moellmann <gerd@gnu.org>
4335 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
4336 (try_window_id): Skip back over lines ending in a newline from a
4339 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
4342 2001-10-01 Richard M. Stallman <rms@gnu.org>
4344 * search.c (Freplace_match): Doc fix.
4346 2001-09-28 Andrew Innes <andrewi@gnu.org>
4348 * w32menu.c (set_frame_menubar): Take into account that
4349 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
4352 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
4354 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
4356 2001-09-28 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4358 * s/gnu-linux.h: Fix a typo in comment.
4360 2001-09-28 Andreas Schwab <schwab@suse.de>
4362 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
4363 nocombreloc, in case -z combreloc is the default.
4365 2001-09-28 Gerd Moellmann <gerd@gnu.org>
4367 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
4368 really going on here.
4370 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
4372 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
4374 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
4376 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
4377 utf-8, menu-bar, and latin-N.
4378 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
4379 unconditionally now.
4380 (lisp): Add latin-N, since they are preloaded.
4382 2001-09-27 Gerd Moellmann <gerd@gnu.org>
4384 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
4385 to the left. Some cleanup.
4387 * xdisp.c (display_mode_element): One more case where a string's
4388 multibyteness should be used for display.
4390 2001-09-26 Gerd Moellmann <gerd@gnu.org>
4392 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
4395 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
4396 of the only temporarily set echoing flag for deciding when
4399 * keyboard.c (echo_kboard): Make externally visible.
4401 * lisp.h (echo_kboard): Declare extern.
4403 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
4404 fonts_changed_p if we need larger matrices due to vscrolling.
4405 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
4406 this round of redisplay if make_cursor_line_fully_visible fails.
4407 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
4408 (try_cursor_movement, try_scrolling): Use them instead of integers.
4410 * dispextern.h (required_matrix_width, required_matrix_height):
4413 * dispnew.c (required_matrix_width, required_matrix_height):
4415 (allocate_matrices_for_window_redisplay)
4416 (allocate_matrices_for_frame_redisplay: Use them.
4417 Remove parameters CH_DIM.
4419 * xdisp.c (display_mode_lines): Temporarily set selected_frame
4420 and selected_window to the frame of the window whose mode-lines
4421 are displayed, and to the window itself.
4422 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
4425 2001-09-25 Gerd Moellmann <gerd@gnu.org>
4427 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
4428 the image cache under us.
4430 * xdisp.c (display_mode_element): If the mode element is a symbol
4431 with a string value, use that string's multibyteness for displaying.
4433 * keyboard.c (read_char): Don't clear a message for a switch-frame
4434 event. From Stefan Monnier <monnier@cs.yale.edu>.
4436 * xterm.c (fast_find_position) [0]: Add a presumably more correct
4437 version for after 21.1.
4439 * xdisp.c (row_containing_pos): Make externally visible.
4441 * dispextern.h (row_containing_pos): Add prototype.
4443 * process.c (send_process): Disable composition if from_byte < 0.
4444 From Kenichi Handa <handa@etl.go.jp>.
4446 2001-09-24 Gerd Moellmann <gerd@gnu.org>
4448 * xterm.c (refreshicon): Function removed.
4450 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
4452 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
4454 * xterm.c (toplevel): Remove includes in #if 0.
4456 * process.c (sigchld_handler) [LINUX]: Don't return from
4457 the signal handler at the end of the loop.
4459 2001-09-21 Gerd Moellmann <gerd@gnu.org>
4461 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
4462 Terminate only if kill returns -1, and errno is ESRCH.
4464 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
4466 * Makefile.in (shortlisp): Add ../lisp/env.elc.
4468 2001-09-20 Gerd Moellmann <gerd@gnu.org>
4470 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
4471 since this function can be called during GC.
4473 * callproc.c (Fcall_process): Handle errors from pipe(2).
4474 (child_setup): Delete code in #ifdef vipc.
4476 2001-09-19 Gerd Moellmann <gerd@gnu.org>
4478 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
4479 (display_mode_element): Display the string from decode_mode_spec
4480 depending on its multibyteness.
4482 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
4484 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
4486 2001-09-18 Gerd Moellmann <gerd@gnu.org>
4488 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
4489 recursive_edit_unwind.
4490 (recursive_edit_unwind): Set kboard state according to
4493 * buffer.c (modify_overlay): Don't do nothing if START == END;
4494 This can still be a modification, for example when an overlay has
4495 a before-string or after-string.
4496 (Fdelete_overlay): Prevent redisplay optimizations when deleting
4497 an overlay with before-string or after-string.
4499 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
4500 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
4502 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
4503 first_unchanged_at_end_row is in front of
4504 last_unchanged_at_beg_row. This code should be removed after the
4507 2001-09-17 Gerd Moellmann <gerd@gnu.org>
4509 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
4510 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
4512 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
4515 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
4517 * dired.c (Ffile_attributes): Doc fix.
4519 2001-09-14 Gerd Moellmann <gerd@gnu.org>
4521 * fileio.c (Ffile_symlink_p): Fix last change.
4523 * filelock.c (current_lock_owner): Fix last change.
4525 2001-09-13 Gerd Moellmann <gerd@gnu.org>
4527 * filelock.c (current_lock_owner): If readlink returns ERANGE,
4528 take that to mean that the buffer is too small.
4530 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
4531 that to mean that the buffer is too small.
4533 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
4534 current buffer's multibyteness when discarding the iterator's
4537 * xfns.c (Fx_window_property): Handle case that property gets
4538 deleted between the two calls to XGetWindowProperty.
4540 2001-09-11 Gerd Moellmann <gerd@gnu.org>
4542 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
4544 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
4545 in addition to read-only.
4547 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
4548 to t in addition to read-only.
4550 * lisp.h (Qinhibit_modification_hooks): Declare.
4552 * insdel.c (Qinhibit_modification_hooks): New variable.
4553 (syms_of_insdel): Initialize and staticpro it.
4555 * textprop.c (verify_interval_modification): Don't run
4556 modification-hooks if inhibit_modification_hooks.
4558 * dispnew.c (set_window_cursor_after_update): Fix code
4559 finding glyph row containing cursor when cursor_in_echo_area
4562 * xdisp.c (init_from_display_pos): Put some code in #if 0.
4563 (add_to_log): Use bcopy instead of strcpy.
4564 (init_from_display_pos): Use an explicit loop over bytes in
4565 overlay strings instead of calling index.
4567 2001-09-10 Gerd Moellmann <gerd@gnu.org>
4569 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
4571 * dispnew.c (direct_output_for_insert): Don't change IT's
4572 stop_charpos to something in front of its current position.
4574 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
4577 2001-09-10 Richard M. Stallman <rms@gnu.org>
4579 * frame.c (Fmouse_position): Doc fix.
4581 2001-09-07 Gerd Moellmann <gerd@gnu.org>
4583 * xdisp.c (init_from_display_pos): Don't compare the result
4584 of calling index with NULL.
4586 2001-09-06 Gerd Moellmann <gerd@gnu.org>
4588 * xfns.c (x_set_background_color): Don't change the colors
4589 of the X window of scroll bar widgets.
4591 2001-09-05 Andrew Innes <andrewi@gnu.org>
4593 * w32fns.c (w32_createwindow): Undo last change.
4595 2001-09-05 Gerd Moellmann <gerd@gnu.org>
4597 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
4599 * xdisp.c (string_buffer_position): Use *single_char_property*
4600 functions instead of the *single_property* functions.
4602 2001-09-04 Andrew Innes <andrewi@gnu.org>
4604 * w32term.c (w32_read_socket): Add more information to debugging
4607 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
4608 from Emacs frames, so that calls to GetClipBox in w32term.c
4609 correctly report when part of a frame is visible (including
4610 scrollbars, etc). This prevents repeated redrawing of frames when
4611 only a scrollbar is visible.
4612 (w32_wnd_proc): Add more frame information to debugging output.
4614 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
4616 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
4618 2001-09-03 Gerd Moellmann <gerd@gnu.org>
4620 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
4621 help-echo for a string which doesn't have help-echo itself, use
4622 get-char-property to obtain the help-echo from the string's buffer
4623 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
4624 have mouse-face, look ``under'' the string for mouse-face from an
4626 (fast_find_position): Add parameter STOP. In the final row, stop
4627 before glyphs having STOP as object. Don't consider glyphs that
4628 are not from a buffer.
4630 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
4632 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
4634 * fns.c (Fmd5): Doc fix.
4636 2001-08-31 Gerd Moellmann <gerd@gnu.org>
4638 * composite.c (update_compositions): Do nothing if
4639 inhibit-modification-hooks is set.
4641 2001-08-30 Gerd Moellmann <gerd@gnu.org>
4643 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
4644 and check_message_stack if terminating abnormally. We want
4645 glyph matrices etc. in a core dump.
4647 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
4648 (syms_of_xdisp): Initialize them.
4649 (handle_single_display_prop): Don't change point, bind `object',
4650 `position', and `buffer-position' instead to the object having the
4651 `display' property, position in the object and position in the buffer.
4653 * fileio.c (Finsert_file_contents): Don't change the multibyteness
4654 of the buffer if REPLACE is non-nil.
4656 2001-08-29 Gerd Moellmann <gerd@gnu.org>
4658 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
4660 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
4662 * w32term.c (x_set_glyph_string_background_width)
4663 (show_mouse_face): Track the last changes in xterm.c.
4665 2001-08-28 Gerd Moellmann <gerd@gnu.org>
4667 * xterm.c (x_set_glyph_string_background_width): Set the glyph
4668 string's background width so that multi-line mouse-face is drawn
4669 to the right edge of the window.
4670 (show_mouse_face): Set the row's mouse_face_p flag after drawing
4673 * dispnew.c (direct_output_for_insert): Set updated_area
4674 before inserting/writing glyphs.
4676 * xdisp.c (display_mode_element): Use string_byte_to_char to
4677 determine character positions in strings, use chars_in_text
4678 instead of strwidth.
4679 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
4680 a matrix as parameter; this is easier to use from GDB.
4682 2001-08-28 Miles Bader <miles@gnu.org>
4684 * textprop.c (Fprevious_single_char_property_change)
4685 (Fnext_single_char_property_change): Doc fixes.
4687 2001-08-27 Gerd Moellmann <gerd@gnu.org>
4689 * fileio.c (Finsert_file_contents): Allocate, restore, and
4690 free composition data in the case of REPLACE not being nil.
4692 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
4693 there exist overlay strings with newlines at POS.
4694 (text_outside_line_unchanged_p): Return 0 if changes start at
4695 START and overlays exist at START. Likewise for END.
4696 (try_window_id): Give up if init_to_row_end returns 0.
4698 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
4701 2001-08-24 Gerd Moellmann <gerd@gnu.org>
4703 * keymap.c (access_keymap): Return the cdr of the binding of
4704 a generic character instead of its definition (KEY . BINDING).
4706 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
4707 to 0 also in the REPLACE case.
4709 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
4711 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
4712 open to determine whether file is readable (as for DOS_NT).
4714 2001-08-23 Gerd Moellmann <gerd@gnu.org>
4716 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
4717 coding.type is coding_type_no_conversion or coding_type_raw_text,
4718 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
4719 non-nil instead of just setting enable_multibyte_characters in the
4722 2001-08-22 Gerd Moellmann <gerd@gnu.org>
4724 * dispextern.h (struct face_cache): Add member
4725 menu_face_changed_p.
4727 * xfaces.c (menu_face_changed_default): New variable.
4728 (menu_face_changed_count): Variable removed.
4729 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
4730 the menu_face_changed_default flag, otherwise set the FRAME's
4731 menu_face_changed_p flag if the `menu' face has been changed.
4732 Prevent calling set_font_frame_param if FRAME is t.
4733 (make_face_cache): Initialize cache's menu_face_changed_p
4734 from menu_face_changed_default.
4735 (realize_basic_faces): Look into the frame's face cache to
4736 determine if the menu appearance needs updating.
4738 * keymap.c (access_keymap): Fix last change to not consider
4739 IDX when it has modifiers.
4741 2001-08-21 Gerd Moellmann <gerd@gnu.org>
4743 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
4744 . BINDING) exists, where GENERIC-CHAR is the generic character of
4745 the charset of IDX, return BINDING unless there exists a binding
4748 2001-08-16 Gerd Moellmann <gerd@gnu.org>
4750 * xrdb.c (SYSV): Don't define on Solaris 2.
4751 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
4753 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
4754 of the screen line, not text line, containing IT's current position.
4756 2001-08-15 Gerd Moellmann <gerd@gnu.org>
4758 * window.c (window_scroll_pixel_based): Don't recenter if
4759 PT is partially visible in the window.
4761 * xterm.c (expose_window_tree, expose_window, expose_line):
4762 Return 1 when overwriting mouse-face.
4763 (expose_frame): If mouse-face was overwritten, redo it.
4765 * xfaces.c (x_update_menu_appearance): Don't call
4766 set_frame_menubar, let the next redisplay do it.
4768 2001-08-14 Andrew Innes <andrewi@gnu.org>
4770 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
4771 drawing glyph string.
4773 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
4775 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
4778 2001-08-14 Gerd Moellmann <gerd@gnu.org>
4780 * xfaces.c (x_update_menu_appearance): Save and restore value of
4781 interrupt_input_blocked.
4783 2001-08-13 Gerd Moellmann <gerd@gnu.org>
4785 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
4786 a line start, move back to the line start.
4788 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
4789 exactly when a mini-buffer is active.
4791 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
4792 in units of 1/8 character on non window-system frames.
4793 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
4795 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
4797 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
4800 2001-08-09 Gerd Moellmann <gerd@gnu.org>
4802 * keyboard.c (Vpre_help_message): New variable.
4803 (syms_of_keyboard): Initialize and staticpro it.
4804 (show_help_echo): Record current message before displaying a
4805 help-echo, and restore that message when clearing the help.
4807 * xfns.c (x_create_im): Remove prototype.
4809 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
4811 * dispnew.c (adjust_glyph_matrix): Undo last change.
4813 2001-08-08 Gerd Moellmann <gerd@gnu.org>
4815 * dispnew.c (adjust_glyph_matrix): In the optimization for
4816 windows whose height has changed, disable partially visible lines.
4818 2001-08-07 Gerd Moellmann <gerd@gnu.org>
4820 * window.c (Frecenter): If ARG < 0, and on a window system
4821 frame, count in some empty lines when we can't move -ARG lines down.
4823 * xdisp.c (start_display): Don't try to determine the continuation
4824 lines width if lines are truncated. It's superfluous and leads to
4825 incorrect results if POS is not visible in the window after
4826 reseating the iterator at the previous line start.
4828 2001-08-06 Gerd Moellmann <gerd@gnu.org>
4830 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4832 2001-08-06 Pavel Jan
\e,Am
\e(Bk <Pavel@Janik.cz>
4834 * alloc.c (init_stack): Remove declaration.
4836 2001-08-03 Gerd Moellmann <gerd@gnu.org>
4838 * keyboard.c (read_key_sequence): Check that key is an integer
4839 before comparing it with quit_char.
4840 (add_command_key): Use larger_vector.
4841 (read_char_x_menu_prompt): Instead of converting symbol and
4842 integer events into conses (EVENT . nil), use (EVENT . disabled)
4843 which cannot be confused with valid events.
4844 (read_char): When reading from Vunread_command_events, check for
4845 events of the form (EVENT . disabled) instead of
4848 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
4849 a float, determine the max height from the frame's height.
4851 2001-08-02 Gerd Moellmann <gerd@gnu.org>
4853 * xdisp.c (redisplay_internal): Take message_cleared_p into
4854 account only if minibuf_level == 0.
4856 2001-08-01 Gerd Moellmann <gerd@gnu.org>
4858 * xdisp.c (redisplay_internal): Add a check for the last
4861 * xdisp.c (message_cleared_p): New variable.
4862 (clear_message): Set message_cleared_p when clearing the current
4864 (redisplay_internal): Look at message_cleared_p to capture
4865 the case that the echo area should be cleared.
4867 * keyboard.c (command_loop_1): Fix spelling of
4868 resize_echo_area_exactly.
4870 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
4872 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
4874 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
4875 current matrix when the window gets smaller.
4877 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
4879 * print.c (strout): Cast the character passed to insert_char to
4880 unsigned char, to avoid sign extension when it is promoted to int.
4882 2001-07-31 Gerd Moellmann <gerd@gnu.org>
4884 * fileio.c (Finsert_file_contents): Don't treat a return value
4885 of 0 from emacs_read as an IO error.
4887 2001-07-30 Gerd Moellmann <gerd@gnu.org>
4889 * keyboard.c (abs): New macro.
4890 (double_click_fuzz): New variable.
4891 (make_lispy_event): Use it to determine what makes a double-click.
4892 (syms_of_keyboard): DEFVAR_INT it.
4894 * xmenu.c (set_frame_menubar): Take into account that
4895 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
4898 2001-07-27 Gerd Moellmann <gerd@gnu.org>
4900 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
4902 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
4903 of row's visible height.
4905 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
4906 deal with the first overlay string having an image `display' property.
4907 (try_window_reusing_current_matrix, compute_line_metrics):
4908 Fix computation of row's visible height for the case that part of the
4909 row is invisible above and part of the row is at the same time
4910 invisible below the window.
4912 2001-07-26 Gerd Moellmann <gerd@gnu.org>
4914 * xfns.c (x-show-tip): Doc fix.
4916 * xfns.c (Vx_max_tooltip_size): New variable.
4917 (syms_of_xfns): DEFVAR_LISP it.
4918 (Fx_show_tip): Set frame's window_width to the width of the
4919 window. Use a maximum tooltip size specified by
4920 Vx_max_tooltip_size, if that has valid contents.
4921 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
4923 2001-07-26 Andrew Innes <andrewi@gnu.org>
4925 * w32term.c (x_display_list): New variable.
4926 (w32_term_init): Set it.
4928 * w32term.h (x_display_list): New extern.
4930 2001-07-26 Gerd Moellmann <gerd@gnu.org>
4932 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
4933 is non-nil, instead of when redisplaying_p is non-zero.
4935 (mark_window_display_accurate_1): Add an assertion.
4937 2001-07-25 Gerd Moellmann <gerd@gnu.org>
4939 * dispextern.h (struct it): Increase size of ctl_chars to 16.
4941 * xfns.c (Fx_file_dialog): Block/unblock input while processing
4942 events so that we get a chance of processing expose events.
4944 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4946 2001-07-24 Gerd Moellmann <gerd@gnu.org>
4948 * xfns.c (valid_image_p): Protect better against invalid image
4949 specifications. Previous code could signal an error.
4951 2001-07-23 Gerd Moellmann <gerd@gnu.org>
4953 * indent.c (current_column): Fix column computation in the
4954 presence of display table entries.
4955 (current_column_1, Fmove_to_column, compute_motion): Likewise.
4957 * dispnew.c (adjust_glyph_matrix): In the optimization for
4958 windows whose height has changed, use the new window height
4959 to compute which rows to invalidate.
4961 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4962 (MAX_10_EXP): New macro.
4965 * coding.c (code_convert_region): Handle the multibyte case if
4966 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
4968 2001-07-20 Gerd Moellmann <gerd@gnu.org>
4970 * dispextern.h (struct face): Change type of `stipple' to
4973 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
4975 2001-07-19 Gerd Moellmann <gerd@gnu.org>
4977 * dispnew.c (update_window): Don't set the cursor at the end
4978 of the update if display update has been paused.
4980 * composite.h (syms_of_composite): Renamed from syms_of_composition.
4982 2001-07-18 Ken Raeburn <raeburn@gnu.org>
4984 * fns.c (Fset_char_table_default): Check that a charset is defined
4985 before checking its dimension.
4987 2001-07-17 Ken Raeburn <raeburn@gnu.org>
4989 * coding.c (setup_coding_system): Don't do any designation based
4990 on reg_bits if charset is not yet defined.
4992 * lisp.h (XVECTOR): Verify correct object type before returning a
4993 pointer, using eassert.
4995 2001-07-17 Gerd Moellmann <gerd@gnu.org>
4997 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
4998 Increase to 4096 because of paste problems reported on GNU/Linux.
5000 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
5002 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
5004 2001-07-16 Gerd Moellmann <gerd@gnu.org>
5006 * fileio.c (unwind_read): Function removed.
5007 (read_non_regular, read_non_regular_quit): New functions.
5008 (Finsert_file_contents): When reading from non-regular files,
5009 arrange to catch a `quit' and terminate the loop. Rearrange
5010 code so that a `quit' when reading from a regular file doesn't
5011 insert text in the buffer.
5013 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
5014 Clear faces afterwards.
5015 (clear_font_table): Take a x_display_info parameter. Don't free
5016 fonts being the default font of any frame on the given display.
5018 2001-07-13 Gerd Moellmann <gerd@gnu.org>
5020 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
5021 instead of CHAR_STRING which can signal an error.
5023 * charset.c (char_to_string_1): Extracted from char_to_string.
5024 Return -1 instead of signaling an error.
5025 (char_to_string): Use it.
5027 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
5029 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
5031 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
5032 is t, don't try to append anything to it.
5034 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
5036 * dired.c (file_name_completion): Pass dp->d_name to
5037 Fstring_match, not elt, which is always nil here.
5039 2001-07-12 Gerd Moellmann <gerd@gnu.org>
5041 * xselect.c (x_decline_selection_request): Handle errors
5042 caused by receivers that have vanished.
5044 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
5045 ignoring events on foreign windows in #if 0. Always dispatch
5046 the event after checking it with x_handle_property_notify.
5048 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
5049 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
5050 TRACE macros to facilitate debugging. Add additional trace statements.
5051 (toplevel): Add prototypes for file-local functions.
5052 (x_atom_to_symbol): Remove DPYINFO parameter.
5054 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
5056 * w32menu.c (menubar_selection_callback, w32_menu_show):
5057 Initialize `entry' to nil.
5058 (w32_dialog_show): Remove unused `save_wv' variable.
5059 (name_is_separator): Recognize "--:foo" and "--foo-bar".
5061 2001-07-11 Gerd Moellmann <gerd@gnu.org>
5063 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
5065 * fileio.c (unwind_read): Print a message when discarding inserted
5066 text or switching the buffer to unibyte. Change parameter.
5067 (Finsert_file_contents): Don't pass VISIT to unwind_read.
5069 * fileio.c (unwind_read): New function.
5070 (Finsert_file_contents): Record it as unwind-function for
5071 the case that reading is interrupted by C-g.
5073 2001-07-10 Gerd Moellmann <gerd@gnu.org>
5075 * dispnew.c (update_window): Don't skip the header-line
5076 update when scrolling_window returns 0.
5078 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
5080 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
5081 for the case that x_decode_color signals an error.
5083 * xdisp.c (add_to_log): Do nothing if called asynchronously.
5085 2001-07-09 Gerd Moellmann <gerd@gnu.org>
5087 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
5088 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
5091 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
5093 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
5094 doc string line for dos-timezone-offset.
5096 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
5097 inline assembly, to avoid compiler warnings.
5098 (syms_of_msdos): Add \n\ at the end of a line in the doc string
5099 line for dos-unsupported-char-glyph.
5101 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
5103 2001-07-05 Gerd Moellmann <gerd@gnu.org>
5105 * sound.c: Include Emacs' header files with #include "...".
5107 * eval.c (specbind): Additionally record the buffer that was
5108 current when a buffer-local or frame-local variable was bound.
5110 2001-07-04 Gerd Moellmann <gerd@gnu.org>
5112 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
5113 to unibyte characters in unibyte buffers.
5115 2001-07-03 Gerd Moellmann <gerd@gnu.org>
5117 * eval.c (specbind): If SYMBOL has a frame-local binding, record
5118 the frame on the binding stack. Change format of entries for
5119 local bindings on the binding stack to '(SYMBOL . WHERE)'.
5120 (unbind_to): Handle unbinding a frame-local variable.
5122 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
5123 glyphs and truncation glyphs at the end of a row from its pixel width.
5124 (dump_glyph_row): Print row's continuation_lines_width.
5125 (try_window_id): Take the shortcut if ZV is visible in the
5126 window, but there are actually no changes at ZV.
5128 2001-07-02 Gerd Moellmann <gerd@gnu.org>
5130 * xterm.h (x_free_dpy_colors): Add prototype.
5132 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
5133 right number of arguments.
5135 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
5136 ($(lwlibdir)TAGS): New target.
5137 (TAGS): Fix dependency list.
5139 * xterm.c (x_list_fonts): Make sure XFreeFont is called
5142 2001-06-30 Gerd Moellmann <gerd@gnu.org>
5144 * emacs.c (main): Remove extern declaration for sys_nerr, which
5145 isn't used and causes a compilation error with GCC 3.0 on
5148 2001-06-27 Gerd Moellmann <gerd@gnu.org>
5150 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
5151 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
5152 (toplevel): Include <signal.h> and syssignal.h.
5154 * sound.c (vox_configure, vox_close): Turn off atimers
5157 2001-06-26 Gerd Moellmann <gerd@gnu.org>
5159 * keyboard.c (read_char) <non_reread>: Record the previous idle
5160 start time before calling timer_stop_idle.
5161 (read_char) <reread_first>: After processing a help-echo event,
5162 restore the previous idle start time.
5164 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
5165 the start of invisible text.
5166 (setup_for_ellipsis): New function.
5167 (next_overlay_string): After all overlay strings have been
5168 processed, display an ellipsis if necessary.
5169 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
5170 (push_it): Initialize display_ellipsis_p on the iterator's stack.
5172 * dispextern.h (struct iterator_stack_entry): Add member
5175 2001-06-25 Gerd Moellmann <gerd@gnu.org>
5177 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
5178 on the value of the wait-for-wm frame parameter.
5180 * xterm.h (struct x_output): Add member wait_for_wm.
5182 * xfns.c (Qwait_for_wm): New variable.
5183 (x_frame_parms): Add entry for `wait-for-wm".
5184 (x_set_wait_for_wm): New function.
5185 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
5186 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
5188 * xdisp.c (try_window_id) <all changes below window end>: Don't
5189 take this shortcut if ZV is visible in the window.
5190 (try_window_id): When checking for window start being in changed
5191 text, don't check that the buffer's size has changed.
5193 2001-06-23 Richard M. Stallman <rms@gnu.org>
5195 * minibuf.c (Fcompleting_read): Doc fix.
5197 2001-06-19 Gerd Moellmann <gerd@gnu.org>
5199 * composite.c (Ffind_composition_internal): Accept ZV
5200 and a string's end position as POS.
5202 2001-06-18 Gerd Moellmann <gerd@gnu.org>
5204 * composite.c (Ffind_composition_internal): Check POS
5207 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
5209 * editfns.c (Fmessage_box): If the frame is not under a window
5210 system, output the message in the echo area.
5212 2001-06-14 Richard M. Stallman <rms@gnu.org>
5214 * xdisp.c (try_window_id): When EOB is visible, don't treat
5215 insertion at EOB as if it were "off the bottom of the screen."
5217 2001-06-11 Andrew Innes <andrewi@gnu.org>
5219 * w32proc.c (create_child): Add new parameter is_gui_app.
5220 (w32_executable_type): Add new parameter is_gui_app.
5221 (sys_spawnve): Use it.
5222 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
5223 SIGQUIT. This matches better how the signals are interpreted by
5224 MSVC compiled programs.
5225 (syms_of_ntproc): Update docstring.
5227 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
5229 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
5230 well otherwise note_mouse_highlight might optimize away highlighting
5231 if we pass over that same overlay again.
5233 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
5235 * lread.c (Fload): Document that the argument is run via
5236 substitute-in-file-name.
5238 2001-05-31 Gerd Moellmann <gerd@gnu.org>
5240 * Makefile.in (bootstrap-doc): New target.
5241 (bootstrap-emacs): Depend on it.
5243 * fileio.c (Fdo_auto_save): Don't try to create the directory of
5244 auto-save-list-file-name when shutting down Emacs, because
5245 creating the directory might signal an error, and leaves
5246 Emacs in a strange state.
5248 * term.c: (tty_cursor_hidden): New variable.
5249 (update_begin): Don't call tty_hide_cursor. Clean up.
5250 (update_end, set_terminal_window, set_scroll_region): Clean up.
5251 (ring_bell, reset_terminal_modes): Clean up.
5252 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
5253 on tty_cursor_hidden.
5254 (write_glyphs): Call tty_hide_cursor.
5256 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
5258 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
5260 2001-05-30 Gerd Moellmann <gerd@gnu.org>
5262 * xfns.c (enum image_value_type): New enumerator
5263 IMAGE_STRING_OR_NIL_VALUE.
5264 (parse_image_spec): Handle it.
5265 (xbm_format, pbm_format): Use it for :foreground and :background.
5266 (xbm_load, pbm_load): Check for nil color names.
5268 * xterm.c (note_mouse_highlight): If an overlapping overlay
5269 exists, but we find that we highlight the same overlay as before,
5270 don't do the highlighting again.
5272 2001-05-29 Gerd Moellmann <gerd@gnu.org>
5274 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
5275 Protect unibyte strings created by replacing their multibyte
5276 equivalents in menu_items.
5278 * keymap.c (Fsingle_key_description): NUL-terminate the string
5279 buffer before calling build_string.
5281 * callproc.c (Fcall_process): Deal with decode_coding returning
5282 CODING_FINISH_INCONSISTENT_EOL.
5284 2001-05-28 Gerd Moellmann <gerd@gnu.org>
5286 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
5287 an item's name with its key description in case the description
5288 is a multibyte string.
5290 * keymap.c (Fsingle_key_description): Create a multibyte string
5293 * macros.c (Fstart_kbd_macro): Doc fix.
5295 * xterm.c (cursor_in_mouse_face_p): New function.
5296 (x_draw_stretch_glyph_string): Use it to choose a different GC
5297 when drawing a cursor within highlighted text.
5299 * editfns.c (char_property_eq): Put in #if 0.
5301 * indent.c (string_display_width): Put in #if 0.
5303 * lread.c (Fload): Remove unused label.
5305 * termcap.c (speeds): Put in #if 0.
5307 2001-05-18 Gerd Moellmann <gerd@gnu.org>
5309 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
5311 * xfaces.c (xlfd_point_size): Don't divide pixel size from
5312 transformation matrix by 10.
5314 2001-05-16 Gerd Moellmann <gerd@gnu.org>
5316 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
5317 only if it's equal to the former foreground pixel color.
5318 (x_set_foreground_color, x_set_background_color)
5319 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
5321 2001-05-16 Dave Love <fx@gnu.org>
5323 * insdel.c (signal_before_change, signal_after_change): Consider a
5324 local change hook which changes the buffer.
5326 * process.c (read_process_output): Don't call signal_after_change
5327 and update_compositions after insert_from_string_before_markers.
5329 2001-05-16 Gerd Moellmann <gerd@gnu.org>
5331 * xfaces.c (split_font_name): Use the right field when
5332 checking for `[...]' syntax.
5334 * buffer.c (copy_overlays): New function.
5335 (clone_per_buffer_values): Use it.
5337 * buffer.h (OVERLAY_PLIST): New macro.
5339 * keymap.c (Fsingle_key_description): Replace a build_string with
5340 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
5342 * fontset.c (Ffontset_info): Check that face is non-null
5343 before accessing its fields.
5345 2001-05-15 Gerd Moellmann <gerd@gnu.org>
5347 * keyboard.c (read_key_sequence): Prevent generating a fake
5350 * xfaces.c (split_font_name): Handle `[...]' for the right
5353 * ccl.c (ccl_driver): Don't copy remaining bytes in case
5354 of CCL_STAT_INVALID_CMD.
5356 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
5358 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
5359 in <var> has no default value yet.
5361 * xfaces.c (try_alternative_families): First try the FAMILY.
5362 And if nothing is found in the end, try again with scalable fonts.
5363 (try_font_list): Let try_alternative_families do a bit more of
5364 the work. Only use FAMILY if it is not nil.
5365 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
5367 2001-05-14 Gerd Moellmann <gerd@gnu.org>
5369 * xterm.c (note_mouse_highlight): Avoid changing the mouse
5370 pointer shape when show_mouse_face has already done it.
5372 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
5375 * xfaces.c (split_font_name): Make sure to leave the loop
5376 with the right value of `i'.
5378 * xfaces.c (split_font_name): Handle matrix transformations
5379 in the pixel and point size fields of XLFD font names.
5380 (xlfd_point_size): Likewise.
5382 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
5384 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
5385 (x_to_w32_font): Add prototype.
5387 * regex.c (malloc, realloc, free) [emacs]: Undefine before
5388 redefining, to avoid compiler warnings.
5390 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
5392 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
5393 (w32_get_bdf_glyph): Cast between unsigned char and char when
5394 passing arguments to subroutines, to shut up compiler warnings.
5395 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
5398 * xfaces.c: Include keyboard.h before frame.h, not after it.
5400 * widget.c: Include keyboard.h before frame.h.
5402 * w32term.h (struct image, struct face): Forward declaration, to
5403 avoid compiler warnings.
5405 2001-05-11 Gerd Moellmann <gerd@gnu.org>
5407 * keyboard.c (read_key_sequence): Don't modify events when
5408 generating fake prefix keys (mode-line, scroll-bar, ...) since
5409 this prevents proper processing of such events when pushed back
5410 into unread-command-events.
5412 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
5413 actually redrawn. Make the function static.
5414 (note_mouse_highlight): Fix a case where the mouse cursor
5415 was changed back to the text cursor.
5417 * xterm.h (clear_mouse_face): Remove prototype.
5419 * xdisp.c (try_window_id): Fix the fix and set the right
5422 * xdisp.c (try_window_id): Fix computation of window end in the
5423 case that lines were deleted at the end of the window. Add some
5424 more debug_method_adds.
5426 * xfaces.c (try_alternative_families): New function.
5427 (try_font_list): Use it. If ATTRS specifies a family, check
5428 fonts from that family first.
5429 (choose_face_font): Remove code setting the family part of
5432 2001-05-10 Gerd Moellmann <gerd@gnu.org>
5434 * xdisp.c (try_window_id): Fix case of all changes before
5437 * xdisp.c (try_window_id): Add some xasserts.
5439 2001-05-09 Gerd Moellmann <gerd@gnu.org>
5441 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
5443 2001-05-09 Dave Love <fx@gnu.org>
5445 * xdisp.c (GIVE_UP): Fix for K&R C.
5447 2001-05-09 Gerd Moellmann <gerd@gnu.org>
5449 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
5451 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
5452 back to the text cursor shape without need.
5454 2001-05-07 Gerd Moellmann <gerd@gnu.org>
5456 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
5458 * dispextern.h (inverse_video): Declare extern.
5460 * keyboard.c (delete_kboard): Handle the case that selected_frame
5461 has been deleted in the course of x_connection_closed.
5463 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
5465 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
5466 Fix the change from 2001-04-30.
5468 2001-05-03 Gerd Moellmann <gerd@gnu.org>
5470 * xfns.c (file_dialog_unmap_cb): New function.
5471 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
5472 where a dialog is closed via the window manager.
5474 * xdisp.c (try_window_id): Cases of changes all in front of
5475 the window start or all below the window end mostly rewritten.
5476 (redisplay_window): Move the tests if try_window_id is
5477 applicable to try_window_id.
5478 (GIVE_UP): New macro.
5480 2001-05-02 Gerd Moellmann <gerd@gnu.org>
5482 * xterm.c (expose_window): Return int. If W is the window
5483 currently being updated, mark the frame garbaged.
5484 Fix computation of rows intersecting the exposed rectangle.
5485 (expose_window_tree): Stop when expose_window returns 0.
5487 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
5488 again if it has already been drawn.
5490 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
5492 * syntax.c (update_syntax_table): Check that oldi has the same
5493 properties as old_prop before deciding not to invalidate.
5495 2001-04-30 Gerd Moellmann <gerd@gnu.org>
5497 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
5498 read-only text that is so because of text properties.
5500 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
5501 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
5502 windows that are components of a Lucid menu bar.
5504 2001-04-27 Gerd Moellmann <gerd@gnu.org>
5506 * term.c (turn_on_face): Fix reverse video handling on terminals
5507 that don't support colors.
5509 2001-04-26 Gerd Moellmann <gerd@gnu.org>
5511 * editfns.c (save_excursion_restore): Don't use XBUFFER on
5514 2001-04-25 Gerd Moellmann <gerd@gnu.org>
5516 * term.c (toggle_highlight): New function.
5517 (turn_on_face): Change handling of reverse video.
5519 * process.c (wait_reading_process_input):
5520 Call record_asynch_buffer_change only if a timer really changed buffers.
5522 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
5523 of the number of overlays to check.
5525 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
5527 * xdisp.c (try_window_id): Fix a case where window_end_pos
5528 and window_end_bytepos were not adjusted.
5530 2001-04-23 Gerd Moellmann <gerd@gnu.org>
5532 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
5535 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
5537 * process.c (wait_reading_process_input) [!subprocesses]:
5538 Don't reference waiting_for_user_input_p, it's not defined in the
5539 branch without async subprocesses support.
5541 2001-04-19 Gerd Moellmann <gerd@gnu.org>
5543 * keyboard.c (delete_kboard): Prevent a dangling reference
5544 from current_kboard to KB, which is freed.
5546 * process.c (wait_reading_process_input):
5547 Call record_asynch_buffer_change after running timers, to make
5548 read_key_sequence aware of buffer changes from under it.
5550 2001-04-18 Gerd Moellmann <gerd@gnu.org>
5552 * xfaces.c (Qscalable_fonts_allowed): New variable.
5553 (realizing_basic_faces_p): Removed.
5554 (x_face_list_fonts): Special handling for realizing_basic_faces_p
5556 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
5557 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
5558 for scalable-fonts-allowed to t.
5560 * fileio.c (Finsert_file_contents): If the file size returned from
5561 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
5562 read from files on a procfs whose contents are generated dynamically.
5564 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
5566 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
5567 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
5568 (__memalign_hook): Make the two prototypes consistent.
5570 2001-04-17 Gerd Moellmann <gerd@gnu.org>
5572 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
5573 matrix of mini-windows.
5575 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
5577 * intervals.c (find_interval): Don't rebalance during signal handling.
5579 2001-04-11 Gerd Moellmann <gerd@gnu.org>
5581 * fns.c: Include blockinput.h.
5583 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
5585 2001-04-10 Gerd Moellmann <gerd@gnu.org>
5587 * fns.c (Fcompare_strings): Fix return values.
5589 * window.c (window_scroll): Change the meaning of N to mean
5590 N screen-fulls or N lines.
5591 (window_scroll_pixel_based, window_scroll_line_based)
5592 (scroll_command, Fscroll_other_window): Change accordingly.
5594 * window.c (window_scroll_pixel_based, Frecenter):
5595 Call window_box_height instead of using it.last_visible_y for the
5596 height of the window.
5598 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
5599 instead of using it.last_visible_y for the height of the window.
5601 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
5602 From Dan Holmsand <dan@eyebee.com>.
5604 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
5605 able to write to hidden and system files. From Dan Holmsand
5608 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
5609 Holmsand <dan@eyebee.com>.
5611 2001-04-09 Gerd Moellmann <gerd@gnu.org>
5613 * fns.c (Fplist_get, Fplist_put): Add QUITs.
5615 * window.c (window_internal_height): Return 1 less if the
5616 window has a header line.
5618 * xdisp.c (try_window_id): When scrolling on a terminal, take
5619 the change of window_internal_height into account.
5621 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
5623 * gmalloc.c (align): If the argument SIZE would overflow
5624 __malloc_ptrdiff_t, fail right away.
5626 2001-04-06 Gerd Moellmann <gerd@gnu.org>
5628 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
5629 Make sure the tooltip is completely visible.
5630 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
5632 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
5634 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
5636 2001-04-06 Dave Love <fx@gnu.org>
5638 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
5641 2001-04-06 Gerd Moellmann <gerd@gnu.org>
5643 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
5645 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
5647 2001-04-05 Gerd Moellmann <gerd@gnu.org>
5649 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
5651 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
5653 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
5654 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
5656 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
5657 shell widget's position only if it is non-null.
5659 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
5660 Set f->output_data.x->widget to null after destroying it.
5662 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
5663 FILENAME to bring it in synch with the documentation.
5665 * xfaces.c (realizing_basic_faces_p): Renamed from
5666 realize_default_face_p.
5667 (realize_basic_faces): Set/clear realizing_basic_faces_p.
5668 (realize_default_face): Don't set the flag.
5670 2001-04-04 Gerd Moellmann <gerd@gnu.org>
5672 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
5674 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
5676 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
5677 the buffer that was used for echoing.
5679 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
5680 (first_font_matching): Removed unused function.
5681 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
5682 (may_use_scalable_font_p): Remove parameter FONT; rename
5683 parameter NAME to FONT.
5684 (x_face_list_fonts): Fix missing bounds check.
5685 (realizing_default_face_p): New variable.
5686 (realize_default_face): Set and clear that flag.
5687 (x_face_list_fonts): When called during the realization of the
5688 default face, and no matching fonts are found when ignoring
5689 scalable fonts and fonts matching a regexp from
5690 face-ignored-fonts, try without ignoring fonts.
5692 2001-04-03 Gerd Moellmann <gerd@gnu.org>
5694 * xfns.c (postprocess_image): New function.
5695 (lookup_image): Call it for all image types except PostScript.
5696 (x_kill_gs_process): Call postprocess_image.
5698 * xterm.c (x_use_underline_position_properties): New variable.
5699 (x_draw_glyph_string): Use it.
5700 (syms_of_xterm): DEFVAR_BOOL it.
5702 2001-04-02 Gerd Moellmann <gerd@gnu.org>
5704 * xterm.c (x_alloc_nearest_color_1): New function.
5705 (x_alloc_nearest_color): Use it.
5706 (x_color_cells): Take a Display as argument, instead of a frame.
5707 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
5708 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
5709 (x_initialize): Register cvt_string_to_pixel as resource converter
5710 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
5712 2001-03-30 Gerd Moellmann <gerd@gnu.org>
5714 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
5715 (set_iterator_to_next): If a string from a display property ends,
5716 consider the case that this might also be the end of an
5717 overlay string having the display property.
5719 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
5721 * xdisp.c (reseat_to_string): Undo last change.
5723 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
5724 matrix of a window when the header line changes, when
5725 new rows are allocated, or when the width changes.
5727 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
5729 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
5731 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
5733 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
5736 2001-03-29 Gerd Moellmann <gerd@gnu.org>
5738 * data.c (Fsubr_interactive_form): New function.
5739 (syms_of_data): Defsubr it.
5741 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
5742 (live_float_p, live_misc_p): Return 1 only if the offset of the
5743 pointer in its block is >= 0.
5745 2001-03-28 Paul Eggert <eggert@twinsun.com>
5747 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
5748 microseconds calcuation. Avoid double-rounding problem.
5749 In doc string, warn that the result is approximate.
5751 2001-03-28 Gerd Moellmann <gerd@gnu.org>
5753 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
5754 bind `inhibit-eval-during-redisplay' to t.
5756 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
5758 * xdisp.c (inhibit_eval_during_redisplay)
5759 (Qinhibit_eval_during_redisplay): New variables.
5760 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
5761 don't eval, return nil instead.
5762 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
5763 Initialize Qinhibit_eval_during_redisplay.
5765 * xdisp.c (reseat_to_string): If STRING is multibyte, set
5766 the iterator's multibyte_p flag.
5768 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
5769 instead of setting it to zero; it's incremented for each frame
5770 where the menu face is changed.
5772 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
5773 change bottom shadow accordingly.
5775 * xterm.c (expose_window_tree, expose_frame): Don't compute
5777 (expose_window): Do it here instead.
5778 (x_draw_glyph_string): Fix a computation of the underline position.
5780 * bytecode.c (BYTE_CODE_QUIT): New macro.
5781 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
5783 2001-03-27 Gerd Moellmann <gerd@gnu.org>
5785 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
5786 Give up if matrix starts in an ellipsis.
5787 (init_from_display_pos): Do nothing if POS doesn't specify
5788 a dpvec_index but the iterator has such a position.
5790 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
5792 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
5793 x/y position is (0, 0) after destroying the menu bar, restore
5794 its original position.
5796 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
5797 (init_from_display_pos): Use it.
5798 (try_window_reusing_current_matrix): Don't use cursor_row_p.
5800 2001-03-26 Gerd Moellmann <gerd@gnu.org>
5802 * xdisp.c (try_window_id): Undo last change.
5804 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
5806 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
5808 * buffer.c (syms_of_buffer): Doc fix.
5810 2001-03-26 Gerd Moellmann <gerd@gnu.org>
5812 * xfaces.c (x_update_menu_appearance): Use local variable
5813 popup_path for setting font resources.
5815 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
5817 * frame.c (Fframe_list): Don't reference tip_frame if
5818 HAVE_WINDOW_SYSTEM is not defined.
5820 * emacs.c (main): Update the copyright year. From Werner LEMBERG
5823 2001-03-25 Gerd Moellmann <gerd@gnu.org>
5825 * xdisp.c (init_from_display_pos): Test invisible property
5826 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
5828 * xdisp.c (redisplay_internal) <update one window>: Make sure
5829 last_arrow_position and last_arrow_string are set.
5831 * frame.c (Fframe_list): Don't return a tooltip frame.
5833 2001-03-23 Gerd Moellmann <gerd@gnu.org>
5835 * xdisp.c (mark_window_display_accurate_1): New function,
5836 extracted from mark_window_display_accurate.
5837 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
5838 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
5839 (mark_window_display_accurate): Use it.
5840 (redisplay_internal): Use it for the selected window.
5841 (redisplay_internal): Avoid duplicate mark_window_display_accurate
5842 for the selected frame.
5844 * xdisp.c Use make_number, for readability.
5845 (try_window_id): Disable rows below the window end.
5846 (try_window_reusing_current_matrix): Use cursor_row_p.
5847 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
5849 (init_from_display_pos): If POS specifies a position in a display
5850 vector, maybe get the iterator set up for that ellipsis.
5852 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
5854 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
5856 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
5858 2001-03-23 Gerd Moellmann <gerd@gnu.org>
5860 * xfaces.c (x_update_menu_appearance): Use a different path
5861 for Lucid popup menus.
5863 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
5865 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
5867 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
5868 (string_buffer_position): Use `make_number'.
5870 2001-03-22 Gerd Moellmann <gerd@gnu.org>
5872 * xfaces.c (x_update_menu_appearance): Renamed from
5873 x_set_menu_face_resources. Use different resources for popups.
5875 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
5876 (GC_CHECK_STRING_BYTES): Don't define.
5878 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
5879 Removed, together with subroutines.
5880 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
5881 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
5883 * dispextern.h (x_set_menu_resources_from_menu_face):
5886 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
5887 Remove calls to x_set_menu_resources_from_menu_face.
5889 * xfaces.c (xm_set_menu_resources_from_menu_face):
5890 Remove #ifndef LESSTIF_VERSION.
5892 * xmenu.c: Include widget.h.
5893 (single_submenu): Return int. Some cleanup.
5894 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
5896 2001-03-21 Gerd Moellmann <gerd@gnu.org>
5898 * xterm.c (x_update_window_end): Handle overwritten mouse face
5899 also for tool bar windows.
5900 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
5901 DRAW is DRAW_IMAGE_RAISED.
5903 2001-03-20 Gerd Moellmann <gerd@gnu.org>
5905 * print.c (syms_of_print): Doc fixes.
5907 * fns.c (Fmd5): Doc fix.
5909 2001-03-19 Gerd Moellmann <gerd@gnu.org>
5911 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5912 Clear area of the frame not occupied by the scroll bar.
5914 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
5915 tip frame's root window buffer to *tip* right after creating
5918 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
5919 is an integer don't have to be for space characters.
5921 2001-03-16 Gerd Moellmann <gerd@gnu.org>
5923 * indent.c (current_column, current_column_1, Fmove_to_column)
5924 (compute_motion): Handle characters from display vectors differently.
5926 2001-03-15 Kenichi Handa <handa@etl.go.jp>
5928 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
5929 drawing glyph string.
5931 2001-03-15 Gerd Moellmann <gerd@gnu.org>
5933 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
5934 (command_loop_1): Undo last change.
5936 * xterm.c (fast_find_position): Return the correct vpos.
5938 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
5939 non-null, set a per-buffer value in BUF instead of the current buffer.
5940 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
5941 Call store_symval_forwarding with BUF null.
5942 (set_internal): Call store_symval_forwarding with the BUF
5943 parameter passed to set_internal. Formerly, the value was always
5944 set in the current buffer; the buffer recorded in specbind for
5945 this case wasn't used.
5946 (arith_driver): Reindent.
5948 * buffer.c (swap_out_buffer_local_variables):
5949 Call store_symval_forwarding with BUF null.
5951 * lisp.h (store_symval_forwarding): Change prototype.
5953 * eval.c (specbind): Call store_symval_forwarding with BUF null.
5955 2001-03-14 Gerd Moellmann <gerd@gnu.org>
5957 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
5958 FOR_DELETION. Avoid resizing the mini-window of the selected
5959 frame if FOR_DELETION is set.
5960 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
5961 (Fmake_frame_invisible): Change calls to do_switch_frame for new
5964 * window.c (Fset_window_configuration): Change call to
5965 do_switch_frame to new format.
5967 * keyboard.c (quit_throw_to_read_char): Change call to
5968 do_switch_frame to new format.
5970 * lisp.h (do_switch_frame): Change prototype.
5972 * frame.c (Fframe_parameters): In the `buffer-list' frame
5973 parameter, store the buffer list of FRAME, not the list of the
5976 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
5977 box just because the glyph row's full_width_p flag is set.
5979 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
5981 * xdisp.c (highlight_trailing_whitespace): On character terminals,
5982 skip the padding blanks inserted in extend_face_to_end_of_line,
5983 before checking for trailing whitespace.
5985 2001-03-13 Gerd Moellmann <gerd@gnu.org>
5987 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
5988 Remove special handling for LessTif/Motif.
5989 (toplevel): Don't include Xm/Xm.h.
5991 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
5992 Remove workaround code for LessTif; it doesn't work anymore.
5994 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
5997 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
5998 Don't access private scroll bar data; it's no longer necessary with
5999 contemporary LessTif.
6001 * xfaces.c (xm_set_menu_resources_from_menu_face):
6002 Change #if 0 to #ifndef LESSTIF_VERSION.
6004 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
6005 removing button grabs.
6007 2001-03-13 Kenichi Handa <handa@etl.go.jp>
6009 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
6010 and clip-large-size-font as obsolete.
6012 * lread.c (read_multibyte): Check the validity of multibyte
6013 sequence. If invalid, return the first byte.
6015 2001-03-12 Gerd Moellmann <gerd@gnu.org>
6017 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
6018 before running the command; timer functions or process
6019 filters may have set it.
6021 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
6023 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
6026 2001-03-12 Gerd Moellmann <gerd@gnu.org>
6028 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
6031 2001-03-09 Gerd Moellmann <gerd@gnu.org>
6033 * dispextern.h (string_buffer_position): Add prototype.
6035 * xdisp.c (string_buffer_position, display_prop_string_p)
6036 (single_display_prop_string_p): New functions.
6038 * xterm.c (note_mouse_highlight): If there's no help-echo on
6039 a string, look at the buffer text ``under'' it.
6041 * keyboard.c (make_lispy_event): Add string info to the event,
6042 analogous to what's done on mode lines.
6043 (read_key_sequence): For a click on a string, consider `local-map'
6044 and `keymap' of that string.
6046 * keyboard.c (make_lispy_event, make_lispy_movement):
6047 Adjust calls to buffer_posn_from_coords to new format.
6049 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
6051 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
6054 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
6055 flags argument to emacs_open; it seems to conflict with O_EXCL.
6057 2001-03-09 Kenichi Handa <handa@etl.go.jp>
6059 * composite.h (struct composition): Change types of members;
6060 glyph_len to unsigned, width to unsigned short.
6062 2001-03-08 Andrew Innes <andrewi@gnu.org>
6064 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
6067 2001-03-08 Gerd Moellmann <gerd@gnu.org>
6069 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
6072 * xterm.c (note_mouse_highlight): Handle mouse-face and
6073 help-echo in strings.
6074 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
6075 (fast_find_string_pos): New function.
6077 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
6078 (display_string): Call face_at_string_position with new parameter.
6080 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
6081 Handle `mouse-face'.
6083 * dispextern.h (face_at_string_position): Change prototype.
6085 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
6087 * keyboard.c (make_lispy_event): Avoid generating drag events
6088 if the mouse hasn't actually moved to another buffer position.
6090 2001-03-08 Dave Love <fx@gnu.org>
6092 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
6094 2001-03-08 Gerd Moellmann <gerd@gnu.org>
6096 * process.c (Fset_process_window_size): Fix a typo.
6098 2001-03-08 Kenichi Handa <handa@etl.go.jp>
6100 * coding.c (detect_coding_sjis): Do more rigid check.
6101 (detect_coding_big5): Likewise.
6102 (decode_coding_sjis_big5): Likewise.
6103 (Fdetect_coding_region): Call detect_coding_system with tailing
6104 anchor byte `\0' for more rigid detection.
6105 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
6106 (Fdetect_coding_string): Likewise.
6108 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
6110 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
6111 a string before extracting its data.
6113 2001-03-07 Gerd Moellmann <gerd@gnu.org>
6115 * window.c (Frecenter): Rewrite code handling negative values
6116 of ARG on graphical frames.
6118 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
6120 * window.c (displayed_window_lines): If W->start is outside the
6121 accessible portion of the buffer, call start_display with BEGV or
6122 ZV instead of W->start.
6124 2001-03-07 Gerd Moellmann <gerd@gnu.org>
6126 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
6128 * process.c (Fset_process_filter): Don't crash if the input
6129 file descriptor of PROCESS is closed.
6130 (Fset_process_window_size): Likewise.
6132 2001-03-06 Kenichi Handa <handa@etl.go.jp>
6134 * xterm.c (XTflash): Make the timeout of select shorter, and call
6135 select repeatedly until the desired time expires.
6137 2001-03-06 Gerd Moellmann <gerd@gnu.org>
6139 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
6141 * xfns.c (Fx_create_frame): Clear Vwindow_list.
6143 * lisp.h (Vwindow_list): Declare extern.
6145 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
6147 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
6149 2001-03-06 Gerd Moellmann <gerd@gnu.org>
6151 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
6152 to detect a case where we have to highlight a different region
6153 despite not having left the currently highlighted region.
6154 Set mouse_face_overlay in the x_display_info.
6155 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
6157 * xterm.h (struct x_display_info): Add mouse_face_overlay.
6159 * buffer.c (mouse_face_overlay_overlaps): New function.
6161 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
6162 (Qmouse_face): Declare extern.
6164 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
6165 if face_change_count is non-zero.
6167 2001-03-06 Kenichi Handa <handa@etl.go.jp>
6169 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
6170 that the source is unibyte.
6172 2001-03-05 Dave Love <fx@gnu.org>
6174 * xterm.c (XTmouse_position): Fix typo.
6176 2001-03-05 Gerd Moellmann <gerd@gnu.org>
6178 * minibuf.c (read_minibuf): Clean up the binding stack if
6179 called noninteractively.
6181 2001-03-05 Kenichi Handa <handa@etl.go.jp>
6183 * coding.c (syms_of_coding): Docstring modified.
6185 2001-03-05 Kenichi Handa <handa@etl.go.jp>
6187 * charset.c (char_to_string): If a single byte char has modifier
6188 bits that can't be reflected to the character code, ignore them
6189 instead of signaling an error.
6191 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
6193 * s/msdos.h: Update copyright notice.
6195 * dosfns.h: Update copyright notice.
6197 * dosfns.c: Update copyright notice.
6199 * msdos.c: Update copyright notice.
6201 2001-03-02 Gerd Moellmann <gerd@gnu.org>
6203 * xterm.c (glyph_rect): New function.
6204 (XTmouse_position): Use it to raise the threshold for mouse
6205 movement event generation.
6207 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
6209 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
6210 specifies (reverse . t), reverse the initial screen colors.
6211 (IT_set_frame_parameters): If the property is foreground-color,
6212 but we are reversing the colors, set bg_set, not fg_set.
6213 Likewise for setting background-color and reversing: set fg_set.
6214 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
6217 * xfaces.c (Finternal_set_lisp_face_attribute)
6218 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
6221 2001-03-02 Gerd Moellmann <gerd@gnu.org>
6223 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
6224 to a single slash in the middle of file names.
6226 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
6227 Accept only alphanumeric time zone names.
6229 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
6231 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
6232 a widget to zero height.
6234 2001-03-01 Gerd Moellmann <gerd@gnu.org>
6236 * window.c (Fwindow_end): Call move_it_past_eol only if
6237 ending up on a partially visible line.
6239 2001-03-01 Dave Love <fx@gnu.org>
6241 * ccl.c (Fccl_execute): Doc fix.
6243 2001-03-01 Gerd Moellmann <gerd@gnu.org>
6245 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
6246 of the tool bar before calling x_figure_window_size.
6248 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
6249 NULL after destroying it, otherwise XTread_socket can access a
6250 destroyed widget when input is unblocked.
6252 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
6254 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
6255 same name as before, although there was a change in fontsets.
6257 2001-02-28 Ken Raeburn <raeburn@gnu.org>
6259 * lisp.h (Fframe_parameter): Declare.
6261 * window.c (set_window_buffer): Field vscroll is an int, not a
6264 2001-02-28 Gerd Moellmann <gerd@gnu.org>
6266 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
6269 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
6272 * alloc.c (toplevel): Include process.h.
6273 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
6274 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
6275 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
6276 (allocate_vector, allocate_hash_table, allocate_window)
6277 (allocate_frame, allocate_process, allocate_other_vector):
6279 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
6280 (mark_maybe_pointer): New function.
6281 (mark_memory): Also mark Lisp data to which only pointers
6282 remain and not Lisp_Objects.
6283 (min_heap_address, max_heap_address): New variables.
6284 (mem_find): Return MEM_NIL if START is below min_heap_address or
6285 above max_heap_address.
6286 (mem_insert): Compute min_heap_address and max_heap_address.
6288 * process.c (make_process): Use allocate_process.
6290 * frame.c (make_frame): Use allocate_frame.
6292 * window.c (make_window, make_dummy_parent): Use allocate_window.
6293 (Fcurrent_window_configuration): Use allocate_other_vector.
6295 * lisp.h (allocate_vectorlike): Remove prototype.
6296 (allocate_vector, allocate_other_vector, allocate_frame)
6297 (allocate_window, allocate_process, allocate_hash_table):
6300 * fns.c (Fdelete, larger_vector): Use allocate_vector.
6301 (make_hash_table, copy_hash_table): Use allocate_hash_table.
6303 2001-02-27 Kenichi Handa <handa@etl.go.jp>
6305 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
6306 treat the produced bytes as a valid multibyte sequence.
6308 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
6309 (ccl_driver) <CCL_WriteMultibyteChar2>:
6310 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
6311 <ccl_finish>: Set ccl->eight_bit_control properly.
6313 * ccl.h (struct ccl_program): New member eight_bit_control.
6315 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
6317 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
6318 accessible_keymaps_char_table.
6319 (accessible_keymaps_char_table): Obey `is_metized'.
6320 (where_is_internal, Fwhere_is_internal): Don't confuse int and
6323 2001-02-26 Gerd Moellmann <gerd@gnu.org>
6325 * dispnew.c: Check HAVE_TERM_H before including term.h.
6327 2001-02-24 Andrew Innes <andrewi@gnu.org>
6329 * makefile.w32-in: Update copyright notice.
6331 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
6333 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
6335 2001-02-24 Kenichi Handa <handa@etl.go.jp>
6337 * Makefile.in (lisp): Add international/utf-8.elc.
6339 * fontset.c (Fnew_fontset): Fix handling of the case that an
6340 element of FONTLIST is a cons of family and registry.
6342 2001-02-23 Jason Rumney <jasonr@gnu.org>
6344 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
6345 to height unconditionally.
6347 * w32term.c (x_set_glyph_string_background_width): Extend the
6348 background face to the end of the drawing area in the text area, only.
6349 (x_insert_glyphs): Call window_box_left to obtain the left
6350 x-coordinate of the area to shift.
6352 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
6355 2001-02-22 Andrew Innes <andrewi@gnu.org>
6357 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
6358 ($(BLD)\dispnew.obj):
6359 ($(BLD)\editfns.obj):
6360 ($(BLD)\fileio.obj):
6361 ($(BLD)\filelock.obj):
6362 ($(BLD)\keyboard.obj):
6363 ($(BLD)\w32proc.obj):
6364 ($(BLD)\process.obj):
6365 ($(BLD)\sysdep.obj): Ditto.
6367 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
6369 ($(BLD)/dispnew.$(O)):
6370 ($(BLD)/editfns.$(O)):
6371 ($(BLD)/fileio.$(O)):
6372 ($(BLD)/filelock.$(O)):
6373 ($(BLD)/keyboard.$(O)):
6374 ($(BLD)/w32proc.$(O)):
6375 ($(BLD)/process.$(O)):
6376 ($(BLD)/sysdep.$(O)): Ditto.
6378 2001-02-22 Gerd Moellmann <gerd@gnu.org>
6380 * xdisp.c (forward_to_next_line_start): When taking the shortcut
6381 at the start of the function, check that the \n in it->c is
6382 from the iterator's current position.
6384 * xdisp.c (handle_single_display_prop): Add parameter
6385 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
6386 properties which replace the display of text with something else.
6387 (handle_display_prop): Call handle_single_display_prop with
6388 additional argument saying if we already replaced text display
6389 with something else. Use AREF.
6390 (with_echo_area_buffer_unwind_data, display_menu_bar)
6391 (decode_mode_spec_coding): Use AREF and ASIZE.
6393 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
6394 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
6395 * vmstime.h: Files removed.
6397 * unexencap.c, unexfx2800.c: Files removed.
6399 * dispnew.c (direct_output_for_insert): Give up if we are showing
6400 a message or just cleared the message because we might need to
6401 resize the echo area window or display an empty echo area.
6403 2001-02-21 Gerd Moellmann <gerd@gnu.org>
6405 * xdisp.c (redisplay_internal): Do the
6406 mark_window_display_accurate after all windows have been
6407 redisplayed because this call resets flags in buffers which are
6408 needed for proper redisplay.
6410 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
6411 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
6414 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
6415 busy_window to hourglass_window, busy_p to hourglass_p.
6417 * msdos.h (struct x_output): Rename busy_window to
6418 hourglass_window, busy_p to hourglass_p.
6420 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
6421 busy_window to hourglass_window, busy_p to hourglass_p.
6423 * xfns.c: Rename everything containing *busy_cursor* and similar
6425 (syms_of_w32fns): Rename x-busy-pointer-shape to
6426 x-hourglass-pointer-shape, display-busy-cursor to
6427 display-hourglass, busy-cursor-delay to hourglass-delay.
6429 * w32fns.c: Rename everything containing *busy_cursor* and similar
6431 (syms_of_w32fns): Rename x-busy-pointer-shape to
6432 x-hourglass-pointer-shape, display-busy-cursor to
6433 display-hourglass, busy-cursor-delay to hourglass-delay.
6435 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
6438 * dispextern.h (start_hourglass, cancel_hourglass)
6439 (display_hourglass_p): Renamed from *busy_cursor*.
6441 2001-02-20 Gerd Moellmann <gerd@gnu.org>
6443 * keyboard.c (read_char): When an event from unread-command-events
6444 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
6446 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
6447 equal to the current buffer.
6449 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
6450 nil, otherwise we're left with truncate_lines t when a message
6451 is printed with message-truncate-lines bound to t.
6453 2001-02-19 Gerd Moellmann <gerd@gnu.org>
6455 * window.c (Fmove_to_window_line): Undo last change.
6456 (displayed_window_lines): Call line_bottom_y to determine
6457 the line's bottom position.
6459 * dispextern.h (line_bottom_y): Add prototype.
6461 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
6462 (pos_visible_p): Use it.
6464 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
6465 set redisplaying_p to 0 here instead of in Frecursive_edit.
6466 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
6469 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
6471 (syms_of_xdisp): Initialize new variables.
6472 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
6473 Specbind `inhibit-menubar-update' when updating the menu bar.
6475 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
6478 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
6481 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
6484 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
6485 to the start of the file.
6487 2001-02-16 Gerd Moellmann <gerd@gnu.org>
6489 * window.c (set_window_buffer): Fix last change.
6491 * window.c (set_window_buffer): Set window's vscroll to 0.
6493 * window.c (coordinates_in_window): Increase width of area
6494 where the vertical line can be dragged.
6496 * xterm.c (x_set_glyph_string_background_width): Extend the
6497 background face to the end of the drawing area in the text
6500 * xdisp.c (handle_single_display_prop): Set iterator's position
6501 to where the `display' property starts, like for images.
6502 (dump_glyph): New function.
6503 (dump_glyph_row): Use it. Dump info about marginal areas.
6505 * dispnew.c (direct_output_for_insert): Recognize more cases where
6506 glyphs can be written instead of being inserted.
6508 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
6509 the left x-coordinate of the area to shift.
6511 * dired.c (directory_files_internal): Set result list to nil
6514 2001-02-15 Kenichi Handa <handa@etl.go.jp>
6516 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
6517 invalid multibyte sequence, treat *SRC as a character of
6520 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
6522 * textprop.c (Fset_text_properties): Doc fix.
6524 2001-02-15 Gerd Moellmann <gerd@gnu.org>
6526 * dispnew.c (update_text_area): Undo change of 2001-01-12.
6528 2001-02-14 Dave Love <fx@gnu.org>
6530 * coding.c: Doc and message fixes.
6532 2001-02-14 Andrew Innes <andrewi@gnu.org>
6534 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
6535 Emacs frame above the screen size.
6537 2001-02-14 Gerd Moellmann <gerd@gnu.org>
6539 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
6541 2001-02-13 Gerd Moellmann <gerd@gnu.org>
6543 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
6544 case that TO ends up beyond ZV after running before-change-functions.
6546 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
6547 the selected window if it is showing the buffer in question.
6549 * dired.c (directory_files_internal): Initialize errno.
6550 (toplevel): Include errno.h.
6552 2001-02-13 Kenichi Handa <handa@etl.go.jp>
6554 * xfaces.c (best_matching_font): New parameter width_ratio.
6555 Multiply avgwidth by width_ratio.
6556 (choose_face_font): Call best_matching_font with width_ratio
6557 calculated from the column width of C.
6559 2001-02-12 Andrew Innes <andrewi@gnu.org>
6561 The following changes are to draw box lines inside characters area
6562 if line-width is negative.
6564 * w32term.c (x_produce_image_glyph): Pay attention to the case that
6565 face->box_line_width is negative.
6566 (x_produce_stretch_glyph): Likewise.
6567 (x_produce_glyphs): Likewise.
6568 (x_estimate_mode_line_height): Likewise.
6569 (x_draw_glyph_string_background): Likewise.
6570 (x_draw_glyph_string_foreground): Likewise.
6571 (x_draw_composite_glyph_string_foreground): Likewise.
6572 (x_draw_glyph_string_box): Likewise.
6573 (x_draw_image_foreground): Likewise.
6574 (x_draw_image_relief): Likewise.
6575 (x_draw_image_foreground_1): Likewise.
6576 (x_draw_image_glyph_string): Likewise.
6578 2001-02-09 Kenichi Handa <handa@etl.go.jp>
6580 The following changes are to draw box lines inside characters area
6581 if line-width is negative.
6583 * xterm.c (x_produce_image_glyph): Pay attention to the case that
6584 face->box_line_width is negative.
6585 (x_produce_stretch_glyph): Likewise.
6586 (x_produce_glyphs): Likewise.
6587 (x_estimate_mode_line_height): Likewise.
6588 (x_draw_glyph_string_background): Likewise.
6589 (x_draw_glyph_string_foreground): Likewise.
6590 (x_draw_composite_glyph_string_foreground): Likewise.
6591 (x_draw_glyph_string_box): Likewise.
6592 (x_draw_image_foreground): Likewise.
6593 (x_draw_image_relief): Likewise.
6594 (x_draw_image_foreground_1): Likewise.
6595 (x_draw_image_glyph_string): Likewise.
6597 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
6598 and :line-width can be negative.
6599 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
6601 2001-02-09 Jason Rumney <jasonr@gnu.org>
6603 * w32term.c (w32_encode_char): Treat eight bit graphic and control
6604 characters the same as ASCII and latin-1.
6605 (x_display_and_set_cursor): Check for the focus frame's selected
6606 window instead of selected_window.
6607 (x_after_update_window_line): Don't clear if frame's internal
6608 border width is zero.
6609 (x_new_font): Don't change a tooltip's size.
6610 (w32_initialize): Set char_ins_del_ok to 1.
6612 * w32fns.c (Fx_show_tip): Fix calls to make_number.
6613 (x_set_font): If font hasn't changed, avoid recomputing
6614 faces and other things.
6615 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
6616 (Fx_create_frame): Add the tool bar height to the frame height.
6617 (x_create_tip_frame): Prevent changing the tooltip's
6618 background color by specifying a color for the default font
6620 (Qcancel_timer): New variable.
6621 (syms_of_w32fns): Initialize and staticpro it.
6622 (Fx_hide_tip, Fx_show_tip): Use it.
6623 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6625 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
6627 * w32.c (init_environment): Duplicate local string before putenv.
6629 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
6631 * charset.c (Fstring): A typo.
6633 2001-02-09 Kenichi Handa <handa@etl.go.jp>
6635 * charset.c (Fstring): If all arguments are less than 256, return
6638 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
6639 return a unibyte string.
6641 * coding.c (code_convert_region): After detecting a coding, if
6642 nothing found, set coding->composing to COMPOSITION_NO.
6643 (decode_coding_string): Likewise.
6645 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
6647 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
6650 2001-02-07 Kenichi Handa <handa@etl.go.jp>
6652 * charset.c (parse_str_to_multibyte): New function.
6654 * charset.h (parse_str_to_multibyte): Extern it.
6656 * print.c (print_string): If we are going to print a unibyte
6657 string into a multibyte buffer, convert the string to multibyte by
6660 2001-02-06 Andrew Innes <andrewi@gnu.org>
6662 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
6663 been created. It seems we can get sent window messages such as
6664 WM_ERASEBKGND before we properly update a frame.
6666 2001-02-06 Gerd Moellmann <gerd@gnu.org>
6668 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
6669 Avoid some unnecessary cursor positioning.
6671 2001-02-05 Gerd Moellmann <gerd@gnu.org>
6673 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
6674 (LFACE_AVGWIDTH): New macro.
6676 (check_lface_attrs): Check LFACE_AVGWIDTH.
6677 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
6678 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
6679 (merge_face_vectors): Check LFACE_AVGWIDTH.
6680 (Finternal_make_lisp_face): Use AREF.
6681 (xm_set_menu_resources_from_menu_face)
6682 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
6683 (Finternal_lisp_face_empty_p): Use AREF.
6684 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
6685 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
6686 Compare average widths..
6687 (best_matching_font): Arrange for comparing average widths.
6689 * dispextern.h (enum lface_attribute_index):
6690 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
6692 2001-02-05 Dave Love <fx@gnu.org>
6694 * puresize.h: Revert last change following loadup.el change.
6696 2001-02-05 Andrew Innes <andrewi@gnu.org>
6698 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
6699 invocation of temacs, to work with Windows 2000.
6700 (bootstrap-emacs): Ditto.
6702 2001-02-05 Gerd Moellmann <gerd@gnu.org>
6704 * xterm.c (x_display_and_set_cursor): Check for the focus
6705 frame's selected window instead of selected_window.
6707 * xdisp.c (try_scrolling): If point is in the line below the
6708 window, make sure to move the iterator at least a canonical
6711 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
6713 2001-02-05 Kenichi Handa <handa@etl.go.jp>
6715 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
6716 If invalid, execute CCL_INVALID_CMD.
6717 (ccl_driver): If the CCL program is terminated because of
6718 CCL_STAT_INVALID_CMD, copy the remaining source data to the
6719 destination instead of throwing them away.
6721 2001-02-02 Gerd Moellmann <gerd@gnu.org>
6723 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
6724 faces and other things.
6726 * xdisp.c (get_next_display_element): Fix case of empty
6727 display table entry.
6729 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
6731 * editfns.c (Fconstrain_to_field): Doc fix.
6733 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
6734 into `thoroughly', to make it consistent with the doc string.
6736 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
6738 2001-02-01 Gerd Moellmann <gerd@gnu.org>
6740 * search.c (search_buffer): Call set_search_regs with a byte
6741 position, not a character position.
6743 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
6746 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
6748 * frame.c (Fmodify_frame_parameters): Doc fix.
6750 2001-01-31 Gerd Moellmann <gerd@gnu.org>
6752 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
6753 identifier which is not reserved by Standard C.
6755 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
6757 * window.c (enum window_part): New enumeration.
6758 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
6760 (coordinates_in_window): Return an enumerator from enum
6761 window_part. Fix handling of right scroll bar.
6762 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
6763 `right-fringe' instead of `left-bitmap-area' and
6764 `right-bitmap-area'. Use enumerators from enum window_part
6765 instead of hard-coded integers.
6766 (check_window_containing, window_from_coordinates):
6767 Use enumerators from enum window_part instead of hard-coded integers.
6768 (syms_of_window): Replace Qleft_bitmap_area and
6769 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
6771 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
6773 * editfns.c (Fformat_time_string): Doc fix.
6775 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
6777 * keymap.c (Fwhere_is_internal): Use the first valid binding
6778 if no ascii binding is found (when firstonly is t).
6780 2001-01-31 Gerd Moellmann <gerd@gnu.org>
6782 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
6783 instead of Finteractive_p.
6785 * lisp.h (interactive_p): Add prototype.
6787 * eval.c (interactive_p): New function.
6788 (Finteractive_p): Use it.
6790 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
6792 2001-01-31 Dave Love <fx@gnu.org>
6794 * .gdbinit (hook-run): Define to run xreload.
6796 * textprop.c (Fset_text_properties): Fix newline in doc string.
6798 2001-01-30 Gerd Moellmann <gerd@gnu.org>
6800 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
6801 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
6803 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
6804 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
6805 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
6807 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
6810 2001-01-30 Dave Love <fx@gnu.org>
6812 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
6815 2001-01-29 Gerd Moellmann <gerd@gnu.org>
6817 * bytecode.c (Fbyte_code) <Bcurrent_column>:
6818 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
6820 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
6822 * textprop.c (Fset_text_properties): Doc fix.
6824 2001-01-29 Gerd Moellmann <gerd@gnu.org>
6826 * xdisp.c (forward_to_next_line_start): Remove xassert.
6828 2001-01-29 Jason Rumney <jasonr@gnu.org>
6830 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
6831 returning without releasing it.
6833 2001-01-29 Kenichi Handa <handa@etl.go.jp>
6835 * w32fns.c (w32_font_match): Allocate three more bytes to regex
6836 for '^', '$', and '\0'.
6838 2001-01-28 Andrew Choi <akochoi@i-cable.com>
6840 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
6841 regex for '^', '$', and '\0'.
6843 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
6844 only if current_sblock has been initialized.
6846 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
6847 terminal frame even if it is the only visible frame.
6849 2001-01-28 Kenichi Handa <handa@etl.go.jp>
6851 * fontset.c (font_family_registry): Even if FONTNAME conform to
6852 XLFD, if it specifies other fields than family and registry,
6853 return FONTANME. New argument FORCE if nonzero cancel that feature.
6854 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
6855 a signle byte character. Don't set FAMILY part to nil here.
6856 It is handled by the caller choose_face_font.
6857 (Fnew_fontset): Call font_family_registry with FORCE 0.
6858 (Fset_fontset_font): Likewise.
6860 2001-01-27 Gerd Moellmann <gerd@gnu.org>
6862 * xdisp.c (display_line): Don't treat a newline as fitting
6865 2001-01-26 Gerd Moellmann <gerd@gnu.org>
6867 * window.c (size_window): Set the window's orig_top to nil when
6868 changing heights, so that a future shrink_mini_window won't
6869 restore a bogus height.
6871 * frame.c (do_switch_frame): If selected frame has a mini-window,
6872 resize that to exact size.
6874 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
6876 * xdisp.c (display_line): Simplify check for glyphs fitting
6877 entirely in the line.
6879 * xfns.c (xic_style): New variable.
6880 (create_frame_xic): Move static variable to global scope for
6881 the case that `static' gets defined away.
6883 2001-01-26 Kenichi Handa <handa@etl.go.jp>
6885 * coding.c (decode_coding): Set a flag for inhibiting
6887 (code_convert_region): Always set saved_coding_symbol.
6888 (decode_coding_string): Likewise. Update coding->symbol when we
6889 encounter a inconsistent eol by the same way as code_convert_region.
6891 2001-01-25 Gerd Moellmann <gerd@gnu.org>
6893 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
6896 * xterm.c (x_after_update_window_line): Don't clear if frame's
6897 internal border width is zero.
6898 (x_clear_area): New function.
6899 (x_after_update_window_line, x_clear_end_of_line)
6900 (x_scroll_bar_create, x_scroll_bar_set_handle)
6901 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
6902 instead of XClearArea.
6904 * xterm.h (x_clear_area): Add prototype.
6906 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
6907 which doesn't seem necessary anymore with Lesstif 0.92.
6909 2001-01-25 Dave Love <fx@gnu.org>
6911 * puresize.h (BASE_PURESIZE): Up to 720000.
6913 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
6915 2001-01-25 Gerd Moellmann <gerd@gnu.org>
6917 * xdisp.c (echo_area_display): Don't call redisplay_internal
6918 when Emacs is shutting down. We can't run hooks etc. that
6919 would be necessary to do a redisplay.
6921 * lread.c (read_integer): Use type EMACS_INT instead of int.
6923 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
6925 * ccl.c (ccl_driver): Fix last change.
6927 2001-01-25 Kenichi Handa <handa@etl.go.jp>
6929 * ccl.h (sturct ccl_program): New member suppress_error.
6931 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
6932 insert error message to the output.
6933 (setup_ccl_program): Initialize ccl->suppress_error to 0.
6935 * coding.h (struct coding_system): New member suppress_error.
6937 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
6938 (Fset_terminal_coding_system_internal): Set the member
6939 suppress_error to 1.
6940 (Fset_safe_terminal_coding_system_internal): Likewise.
6942 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
6944 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
6945 as if it was a `charset'.
6947 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6949 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
6950 value in where_is_cache; the next lookup in the cache returns
6951 something bogus if we do.
6953 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6955 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
6956 if HAVE_WINDOW_SYSTEM isn't defined.
6958 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6960 * fns.c (sweep_weak_table): Fix code taking items out of
6961 the hash collision chain. Some cleanup.
6963 * xterm.c (x_new_font): Don't change a tooltip's size.
6965 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
6966 background color by specifying a color for the default font
6969 2001-01-24 Kenichi Handa <handa@etl.go.jp>
6971 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
6972 a workaround for SunOS 4's cc.
6973 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
6974 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
6975 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
6978 2001-01-23 Gerd Moellmann <gerd@gnu.org>
6980 * xterm.c (x_set_window_size_1): New function extracted from
6982 (x_set_window_size): Use it.
6983 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
6984 doesn't have a widget, like tooltips.
6986 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
6988 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6990 2001-01-23 Kenichi Handa <handa@etl.go.jp>
6992 * fns.c (Fset_char_table_default): Fix to make sub char-table
6995 2001-01-22 Gerd Moellmann <gerd@gnu.org>
6997 * xdisp.c (build_desired_tool_bar_string): Make sure we have
6998 a desired tool bar string, even if there are no tool bar items.
7000 * xdisp.c (Ftool_bar_lines_needed): New function.
7001 (syms_of_xdisp): Defsubr it.
7003 * editfns.c (Fformat): Don't extend text properties from arguments
7004 to padding chars in the result.
7006 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
7008 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
7010 2001-01-20 Andrew Innes <andrewi@gnu.org>
7012 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
7013 (w32_initialize): Don't set term hooks that aren't actually needed
7016 * xfaces.c (realize_default_face):
7018 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
7020 * xdisp.c (handle_single_display_prop): Remove references to
7021 FRAME_W32_CONSOLE_P.
7023 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
7025 * frame.h (output_method): Remove output_w32_console method.
7026 (FRAME_W32_CONSOLE_P): Remove macro.
7028 * frame.c (Qw32_console): Remove variable.
7029 (Fframep): Remove references to it.
7030 (syms_of_frame): Ditto.
7031 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
7033 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
7036 2001-01-20 Kenichi Handa <handa@etl.go.jp>
7038 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
7040 2001-01-19 Andrew Innes <andrewi@gnu.org>
7042 * w32.c (init_environment): Add a version-independent site-lisp
7043 directory to EMACSLOADPATH, after the version dependent one.
7045 2001-01-19 Gerd Moellmann <gerd@gnu.org>
7047 * editfns.c (Fbuffer_substring): Doc fix.
7049 * xdisp.c (message_dolog, message2, message2_nolog):
7050 Rename parameter LEN to NBYTES.
7052 2001-01-19 Kenichi Handa <handa@etl.go.jp>
7054 * charset.c (strwidth): Use c_string_width.
7055 (c_string_width): New function.
7056 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
7059 * charset.h (c_string_width, lisp_string_width): Extern them.
7061 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
7063 * indent.c (check_composition): Check validity of composition.
7065 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
7066 characters by calling c_string_width.
7067 (x_consider_frame_title): Get byte length of frame tile string
7069 (display_mode_element): Pay attention to width of non-ASCII
7070 characters by calling strwidth.
7072 2001-01-18 Gerd Moellmann <gerd@gnu.org>
7074 * xfns.c (Qcancel_timer): New variable.
7075 (syms_of_xfns): Initialize and staticpro it.
7076 (Fx_hide_tip, Fx_show_tip): Use it.
7077 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
7079 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
7081 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
7083 * window.h (WINDOW_LIVE_P): New macro.
7085 * window.c (window_size_fixed): New variable.
7086 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
7089 * eval.c (specbind): If binding a per-buffer variable which
7090 doesn't have a buffer-local value in the current buffer, change
7091 the global value by changing the value of the symbol bound in all
7092 buffers not having their own value, to make it consistent with
7093 what happens with other buffer-local variables.
7095 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
7097 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
7098 when searching for a newline.
7100 2001-01-18 Kenichi Handa <handa@etl.go.jp>
7102 * xdisp.c (display_string): Fix previous change.
7104 2001-01-18 Jason Rumney <jasonr@gnu.org>
7106 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
7107 GLYPH_DEBUG is defined.
7108 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
7109 true for images with `:ascent 100'.
7110 (x_set_mouse_face_gc): If the last used mouse face has gone in the
7111 meantime, use face MOUSE_FACE_ID.
7112 If first glyph isn't a character glyph, use the ASCII NUL
7113 character to determine the face.
7114 (expose_area): Do not treat left margin specially.
7115 (note_mode_line_highlight): If no local_map, check global keymap.
7116 (note_mouse_highlight): Initialize overlay.
7117 (clear_mouse_face): Don't return if tip_frame is non-nil.
7118 (show_scroll_bars): Remove unused function.
7119 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
7120 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
7122 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
7123 (x_free_frame_resources): Unload relief colors.
7125 2001-01-17 Gerd Moellmann <gerd@gnu.org>
7127 * xdisp.c (forward_to_next_line_start): Avoid calling
7128 get_next_display_element when the newline is already found.
7129 This may change the iterator's position, when its current position is
7130 equal to the iterator's stop_charpos.
7132 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
7133 zero, use this method only at the end of a line.
7135 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
7136 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
7137 if SCALABLE_FONTS_P is set.
7139 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
7140 so that scalable fonts are included.
7142 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
7143 In the cache, use a key containing the information if scalable
7145 (x_load_font): Adapt to change of keys in the font cache.
7147 2001-01-17 Kim F. Storm <storm@filanet.dk>
7149 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
7150 XListFonts to take advantage of font caching.
7152 * xterm.c (x_list_fonts): Ensure caching font information when
7153 called for a null frame, which is the case frequently when Emacs
7156 2001-01-17 Gerd Moellmann <gerd@gnu.org>
7158 * xfns.c (QCconversion): Replaces QCalgorithm.
7160 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
7162 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
7165 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
7166 not everything could be displayed.
7168 * line.h, x-list-font.c: Files removed because unused.
7170 2001-01-17 Andrew Innes <andrewi@gnu.org>
7172 * dired.c (directory_files_internal): Convert result from readdir
7173 to a unibyte string initially, to avoid possible misinterpretation
7174 of some bytes as the internal form of Emacs characters.
7176 2001-01-17 Kenichi Handa <handa@etl.go.jp>
7178 * fns.c (concat): Be sure to avoid putting the same `composition'
7179 property on the adjacent regions.
7181 2001-01-16 Gerd Moellmann <gerd@gnu.org>
7183 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
7184 (Fscroll_right, Fscroll_left): Set it here instead, if called
7187 * buffer.c (Fset_buffer_modified_p): Set buffer's
7188 prevent_redisplay_optimizations_p flag.
7190 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
7191 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
7192 with additional arg.
7194 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
7197 * xdisp.c (redisplay_preserve_echo_area): Add parameter
7198 FROM_WHERE, for debugging.
7200 2001-01-16 Kenichi Handa <handa@etl.go.jp>
7202 * ccl.c (Fregister_ccl_program): Handle the return value of
7203 resolve_symbol_ccl_program correctly.
7204 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
7206 2001-01-15 Gerd Moellmann <gerd@gnu.org>
7208 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
7209 has gone in the meantime, use face MOUSE_FACE_ID.
7211 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
7212 If x_display_info_for_display returns null, don't try to close
7213 the display; we didn't open it.
7215 * dispnew.c (save_or_restore_current_matrices): Function removed.
7216 (save_current_matrix, restore_current_matrix): New functions.
7217 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
7218 restore the frame's current matrix. Due to the glyph pointer
7219 setup done in adjust_glyph_matrix, there is no easy way to make
7220 saving the current matrix in the desired matrix generally correct,
7223 2001-01-15 Kenichi Handa <handa@etl.go.jp>
7225 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
7227 (display_line): Optimize for wide characters.
7228 (display_string): Don't try to display a multi-column character
7229 partially. On ttys, produce more than one truncation glyph for
7230 multi-column characters that don't fit on the line.
7232 2001-01-13 Kenichi Handa <handa@etl.go.jp>
7234 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
7235 Define it instead of WORDS_BIGENDIAN. Caller changed.
7237 2001-01-13 Jason Rumney <jasonr@gnu.org>
7239 * w32fns.c (Fimage_size, image_ascent, lookup_image)
7240 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
7241 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7242 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
7244 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
7245 (x_draw_image_relief, x_draw_image_foreground_1)
7246 (x_draw_image_glyph_string): Adapt to change of image margins.
7248 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
7251 * w32bdf.c (search_file_line, get_cached_font_char)
7252 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
7254 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
7256 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
7257 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
7258 (Fw32_send_sys_command): Remove unused variables.
7259 (w32_msg_pump): Add parentheses.
7261 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
7262 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
7265 2001-01-12 Gerd Moellmann <gerd@gnu.org>
7267 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
7268 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
7269 being a pair of margins.
7270 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
7271 to DEFVAR_LISP. Extend doc.
7273 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
7275 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
7276 pair of integers `(X . Y)', use X for the horizontal and Y for the
7278 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
7279 (parse_image_spec): Check it.
7280 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
7281 (tiff_format, gif_format, gs_format):
7282 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
7284 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
7285 (x_draw_image_relief, x_draw_image_foreground_1)
7286 (x_draw_image_glyph_string): Adapt to the change of image margins.
7288 * dispextern.h (struct image): Replace member `margin' with
7289 `hmargin' and `vmargin'.
7291 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
7294 * dispnew.c (update_text_area): Put code which decrements the
7295 stop position when the row's face extends to the end of the
7298 * xfns.c (x_set_mouse_color): Fix color allocation.
7300 * keyboard.c: Call get_local_map with new argument list.
7302 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
7304 * intervals.h (enum map_property): Removed.
7305 (get_local_map): Change prototype.
7307 * keymap.c: Call get_local_map with new argument list.
7308 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
7310 2001-01-11 Gerd Moellmann <gerd@gnu.org>
7312 * xdisp.c (build_desired_tool_bar_string): Correct the computation
7313 of the size needed for the tool bar string. For the last image,
7314 use a `display' property that reaches to the end of the string.
7316 * xselect.c (selection_request_dpyinfo): New variable.
7317 (x_handle_selection_request): Set it.
7318 (x_selection_request_lisp_error): Don't call
7319 x_decline_selection_request if selection request's display has
7322 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
7323 Do the unregister_colors before calling XFreeColors.
7325 2001-01-10 Dave Love <fx@gnu.org>
7327 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
7328 ${SOME_MACHINE_LISP}, not ${lisp}.
7330 2001-01-10 Gerd Moellmann <gerd@gnu.org>
7332 * xdisp.c (display_line): On ttys, produce more than one truncation
7333 glyph for multi-column characters that don't fit on the line.
7335 * xselect.c (x_reply_selection_request): Add a comment.
7337 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
7338 XkbGetNames instead of XkbGetKeyboard.
7340 2001-01-10 Dave Love <fx@gnu.org>
7342 * sysdep.c (random): Revert the declaration.
7344 2001-01-09 Gerd Moellmann <gerd@gnu.org>
7346 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
7347 Call function string_bytes.
7348 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
7350 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
7351 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
7352 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
7353 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
7355 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
7356 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
7357 after sweeping strings, and at the end.
7358 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
7360 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
7361 ensure that pop_message is called.
7363 * keyboard.c (Fexecute_extended_command): Use a
7364 record_unwind_protect to ensure that pop_message is called.
7366 * lisp.h (push_message_unwind): Add prototype.
7368 * xdisp.c (push_message_unwind): New function.
7370 * fileio.c (do_auto_save_unwind): Do the pop_message here
7371 instead of in Fdo_auto_save.
7372 (Fdo_auto_save): Don't call pop_message.
7374 2001-01-08 Ken Raeburn <raeburn@gnu.org>
7376 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
7379 2001-01-08 Gerd Moellmann <gerd@gnu.org>
7381 * window.c (window_scroll_pixel_based): Adjust glyph matrices
7382 when increasing window's vscroll.
7384 * macros.c (Qkbd_macro_termination_hook): New variable.
7385 (syms_of_macros): Initialize and staticpro it.
7386 (pop_kbd_macro): Run kbd-macro-termination-hook.
7388 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
7390 2001-01-07 Dave Love <fx@gnu.org>
7392 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
7393 arglist, for documentation's sake.
7395 2001-01-06 Andrew Innes <andrewi@gnu.org>
7397 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
7400 2001-01-05 Andrew Innes <andrewi@gnu.org>
7402 * term.c (update_end): Don't check updating_frame; for some reason
7403 this can be 0 sometimes, such as after dismissing a popup menu,
7404 and isn't necessary given the explicit frame argument.
7406 2001-01-05 Gerd Moellmann <gerd@gnu.org>
7408 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
7409 on some systems, and an unsigned long on others, like FreeBSD 4.1.
7411 2001-01-04 Gerd Moellmann <gerd@gnu.org>
7413 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
7415 * xfns.c (x_create_tip_frame): Preserve the value of
7416 face_change_count around the creation of the tip frame.
7418 * xfns.c (last_show_tip_args): New variable.
7419 (compute_tip_xy): New function.
7420 (Fx_show_tip): Reuse an existing tip frame, if possible.
7421 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
7423 2001-01-04 Dave Love <fx@gnu.org>
7425 * editfns.c (Fformat): Doc fix.
7427 * systime.h (set_file_times): Prototype.
7429 * widget.h (EmacsFrameSetCharSize_): Prototype.
7431 * sysdep.c (random, srandom): Declare explicitly.
7433 * dispextern.h (move_it_vertically_backward): Declare.
7435 2001-01-04 Gerd Moellmann <gerd@gnu.org>
7437 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
7438 like in Fx_create_frame.
7440 * xfaces.c (set_font_frame_param): Don't do anything for
7441 non-graphical frames.
7443 * window.c (Fdelete_other_windows): Set window's window_end_valid
7444 to nil when changing the window's start. Don't change the
7445 window's start when its top position hasn't changed. If we do,
7446 this will set the window's optional_new_start, which act's like a
7447 force_start during redisplay with C-x 1 M-> under particular
7448 circumstances (see report from Per Starback to emacs-pretest-bug
7451 2001-01-03 Gerd Moellmann <gerd@gnu.org>
7453 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
7454 short cut at the start of the function. Add an assertion.
7455 (reseat_at_next_visible_line_start): Add an assertion.
7457 * window.c (Frecenter): When changing the window start, set the
7458 window's window_end_valid to nil.
7459 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
7461 * dispextern.h (move_it_past_eol): Add prototype.
7463 * xdisp.c (move_it_past_eol): New function.
7465 * window.c (Fwindow_end): Doc fix.
7467 2001-01-03 Dave Love <fx@gnu.org>
7469 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
7471 2001-01-03 Gerd Moellmann <gerd@gnu.org>
7473 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
7474 the enabled_p flag of the glyph row at window_end_vpos to 0.
7475 (handle_single_display_prop): Fix last change.
7477 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7479 * window.c (Frecenter): Doc fix.
7481 2001-01-02 Andrew Innes <andrewi@gnu.org>
7483 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
7485 * frame.h (output_method): Add output_w32_console method.
7486 (FRAME_W32_CONSOLE_P): New macro.
7488 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
7489 use output_w32_console method.
7490 (Qw32_console): New Lisp_Object.
7491 (Fframep): Return it.
7492 (syms_of_frame): Init it.
7493 (Fframe_parameters): Report w32console as font for w32_console frames.
7495 * xfaces.c (realize_default_face): Set face foreground and
7496 background to unspecified for w32_console frames.
7497 (realize_face): Realize face cache for w32_console frames.
7498 (realize_tty_face): Accept w32_console frames.
7500 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
7501 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
7502 necessary, even if running interactively.
7504 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
7507 * w32term.c (x_update_begin):
7511 (x_change_line_highlight):
7516 (w32_reassert_line_highlight):
7517 (w32_frame_rehighlight):
7518 (w32_frame_raise_lower): Do nothing if not w32 frame.
7520 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
7522 * w32fns.c (Fx_display_color_cells): Determine correct value, when
7523 system doesn't tell us directly.
7524 (Fx_display_visual_class): Implement properly.
7526 2001-01-02 Gerd Moellmann <gerd@gnu.org>
7528 * window.c (Frecenter): Handle centering in graphical frames
7529 specially. Centering on the basis of line counts doesn't work
7530 reliably with variable-height lines.
7532 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
7534 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
7537 * composite.c (run_composition_function): Remove unused var `val'.
7538 (update_compositions): Remove unused variable `hook'.
7540 * intervals.c (get_local_map): Remove unused variable `tem'.
7542 * doprnt.c (doprnt1): Remove unused variable `size'.
7544 * fns.c (Flength): Remove unused variable `tail'.
7545 (Fdelete): Remove unused variable `size'.
7547 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
7550 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
7552 * data.c (find_symbol_value): Remove extra 3rd argument in the
7553 call to swap_in_symval_forwarding.
7555 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
7557 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
7558 (trivial_regexp_p): Remove unused variable `c'.
7559 (boyer_moore): Remove unused variable `k'.
7561 * indent.c (current_column): Remove unused variable `stopchar'.
7562 (Fcompute_motion): Remove unused variable `contin'.
7564 * casefiddle.c (casify_object): Remove unused variable `tolen'.
7566 * dired.c (directory_files_internal): Fix a typo in a comment.
7567 Remove an unused variable `handler'.
7568 (file_name_completion): Remove unused function-scope variable `dp'.
7569 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
7572 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
7574 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
7576 (Fmarker_insertion_type): Remove unused variable `buf'.
7578 * insdel.c (make_gap): Remove unused variable `result'.
7580 * keyboard.c (record_char): Remove unused function-scope var `help'.
7581 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
7582 (menu_bar_items): Remove unused function-scope variable `tem'.
7584 * fontset.c (fontset_ref): Remove unused variable `i'.
7585 (fontset_set): Remove unused variables `j' and `tmp'.
7586 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
7587 (make_fontset_for_ascii_face): Remove unused variable `name'.
7588 (fs_load_font): Remove unused variable `font_idx'.
7589 (fs_query_fontset): Remove unused function-local variable `fontset'.
7590 (list_fontsets): Remove unused variable `tail'.
7591 (Fnew_fontset): Remove unused variables `family' and `registry'.
7592 (accumulate_font_info): Remove unused variable `tmp'.
7593 (Ffontset_font): Remove unused variable `id'.
7594 (syms_of_fontset): Remove unused variable `i'.
7596 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
7598 (lookup_image): Remove unused variable `file'.
7599 (xbm_load): Remove unused variables `bitmap_data', `height', and
7600 `width'. Remove function-local variable `i', leave the
7602 (gif_load): Remove unused variable `inc'.
7604 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
7605 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
7606 leave only the one in the inner block.
7608 * xfaces.c (face_fontset, realize_default_face): Remove unused
7610 (face_at_buffer_position): Remove unused variable `multibyte_p'.
7612 * term.c (encode_terminal_code): Remove unused variable `c'.
7614 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
7615 char *' instead of `char *'.
7617 * category.c (Fcategory_docstring): Remove unused variable `doc'.
7618 (Fget_unused_category): Remove unused variable `docstring_vector'.
7619 (Fchar_category_set): Remove unused variables `val', `charset',
7622 * coding.c (detect_coding_iso2022, setup_coding_system):
7623 Remove unused variable `i'.
7624 (detect_coding_mask): Remove unused variable `idx'.
7625 (detect_coding): Remove unused variable `i'.
7626 (ccl_coding_driver): Remove unused variable `result'.
7627 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
7628 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
7629 (encode_coding_string): Remove unused variables `gcpro1' and
7630 `saved_coding_symbol'.
7631 (Ffind_coding_systems_region_internal): Remove function-local
7632 variable args[], leave only the block-local one.
7633 (code_convert_region1): Remove unused variable `len'.
7635 * charset.c (char_printable_p): Remove unused variable `chars'.
7636 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
7637 (str_to_multibyte): Remove unused variable `c'.
7639 * window.c (size_window): Remove block-local variable `min_size'.
7641 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
7642 `header_line_height'.
7643 (append_space, extend_face_to_end_of_line): Declare `saved_what'
7644 enum display_element_type.
7646 2001-01-02 Gerd Moellmann <gerd@gnu.org>
7648 * xterm.c (x_connection_closed): Catch X errors around all
7649 statements that call X. Save away the error message in a local copy.
7651 * xterm.c (x_connection_closed): Set handling_signal to 0 at
7654 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
7655 in or at the start of invisible text.
7657 * dispnew.c (update_window): Don't check_current_matrix_flags.
7659 2001-01-01 Jason Rumney <jasonr@gnu.org>
7661 * w32fns.c (x_figure_window_size): Do not allow new_height and
7662 new_width of frame to override specified values.
7664 2000-12-30 Kenichi Handa <handa@etl.go.jp>
7666 * composite.c (find_composition): Fix a code for searching backward.
7668 2000-12-29 Gerd Moellmann <gerd@gnu.org>
7670 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
7671 (update_window) [GLYPH_DEBUG]: Call it.
7672 (scrolling_window): Prevent including current rows which are below
7673 what's displayed in the window.
7675 * xdisp.c (try_window_reusing_current_matrix)
7676 <new start <= old start>: Disable rows in the current matrix
7677 which are below the window after scrolling.
7679 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
7680 is zero. It's not worth the complexity.
7681 (invisible_text_between_p): Put in #if 0 because unused.
7683 2000-12-28 Gerd Moellmann <gerd@gnu.org>
7685 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
7686 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
7688 * keyboard.c (echo_char): If C is an integer, always call
7689 push_key_description. Former code could signal an invalid
7692 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
7693 If set, print multibyte text.
7694 (Fsingle_key_description): Call push_key_description with
7695 FORCE_MULTIBYTE set.
7696 (describe_buffer_bindings): Likewise.
7698 * lisp.h (push_key_description): Add prototype.
7700 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
7701 around the call to redisplay_internal.
7703 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
7705 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
7707 2000-12-28 Kenichi Handa <handa@etl.go.jp>
7709 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
7710 (ccl_driver): New local variable `extra_bytes'.
7712 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
7714 * coding.c (setup_coding_system):
7715 Initialize coding->spec.ccl.eight_bit_carryover.
7716 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
7718 2000-12-28 Kenichi Handa <handa@etl.go.jp>
7720 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
7721 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
7722 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
7723 (decode_composition_emacs_mule): New function.
7724 (decode_coding_emacs_mule): Decode composition sequence by calling
7725 decode_composition_emacs_mule.
7726 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
7727 (encode_coding_emacs_mule): Changed from macro to function.
7728 If a text contains compositions, encode them correctly.
7729 (setup_coding_system): Set coding->commong_flags for emacs-mule so
7730 that decoding and encoding are required.
7732 2000-12-27 Gerd Moellmann <gerd@gnu.org>
7734 * xfaces.c (PT_PER_INCH): New macro.
7735 (xlfd_point_size): Compute real point size from font's pixel size.
7736 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
7739 * .gdbinit: Comment out the line pointing to the Lesstif source
7742 * window.c (Frecenter): Use displayed_window_lines instead
7743 of window_internal_height.
7745 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7746 instead of x-toolkit-scroll-bars-p.
7747 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
7749 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7750 instead of x-toolkit-scroll-bars-p.
7751 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
7753 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
7754 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
7755 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
7757 (add_window_display_history, add_frame_display_history)
7758 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
7759 (build_frame_matrix_from_leaf_window): Remove unused code.
7760 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
7762 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
7763 (update_window) [GLYPH_DEBUG]: Likewise.
7764 (syms_of_display): Defsubr dump-redisplay-history.
7766 2000-12-23 Gerd Moellmann <gerd@gnu.org>
7768 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
7769 the end of the prompt. Set echo_after_prompt to the offset
7770 of echoptr in echobuf.
7772 * xdisp.c (init_from_display_pos): Pop until the iterator's
7773 stack is empty; there may be frames for stretch or images
7776 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
7777 (save_or_restore_current_matrix): New function for the same
7778 purpose, but more efficient.
7779 (adjust_frame_glyphs_for_frame_redisplay): Use it.
7781 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
7783 * xdisp.c (syms_of_xdisp): Fix last change.
7785 2000-12-23 Gerd Moellmann <gerd@gnu.org>
7787 * xdisp.c (syms_of_xdisp): Doc fix.
7789 * xdisp.c (redisplay_window): Remove label restore_buffers;
7790 use finish_scroll_bars instead to make sure that scroll bars
7791 are redeemed. If we don't do this, flickering can result from
7792 scroll bars being destroyed and recreated.
7794 2000-12-22 Jason Rumney <jasonr@gnu.org>
7796 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
7797 in the wrong colors when the foreground is not black.
7798 (expose_window): Don't redraw the window that's currently being
7801 2000-12-22 Gerd Moellmann <gerd@gnu.org>
7803 * window.c (size_window): When setting the window's too_small_ok
7804 flag, compare old size with minimum size depending on WIDTH_P,
7805 don't compare with window_min_width.
7807 * window.c (delete_window): Simplify somewhat.
7808 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
7809 freeing window matrices. The flag windows_or_buffers_changed is
7810 set, so the next redisplay will consider all windows; this should
7813 2000-12-22 Kenichi Handa <handa@etl.go.jp>
7815 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
7817 * ccl.h (struct ccl_program): New member cr_consumed.
7819 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
7820 (CCL_READ_CHAR): Handle EOL conversion here.
7821 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
7823 2000-12-21 Gerd Moellmann <gerd@gnu.org>
7825 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
7827 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
7828 otherwise tabs of different size compare equal.
7830 * callint.c (Fcall_interactively): Prevent a compiler warning.
7832 * print.c (print_unwind): Return nil.
7833 (PRINTDECLARE): Initialize all local variables.
7834 (print_preprocess): Add a default case.
7836 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
7838 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
7840 * window.c (delete_window, Fsplit_window)
7841 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
7843 * dispextern.h (ensure_frame_matrix): Function declaration removed.
7845 * dispnew.c (ensure_frame_matrix): Removed.
7846 (save_frame_matrix, restore_frame_matrix): New functions.
7847 (adjust_frame_glyphs_for_frame_redisplay): Use them.
7849 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
7850 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
7852 2000-12-21 Andrew Innes <andrewi@gnu.org>
7854 * w32term.c (x_update_begin): Regenerate the palette here, rather
7855 than for each window.
7857 * w32xfns.c (select_palette): Avoid calling SelectPalette if
7858 palette is NULL, since this corrupts memory! Also get
7859 display_info reference from frame.
7861 2000-12-21 Jason Rumney <jasonr@gnu.org>
7863 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
7865 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
7866 to avoid returning without releasing it.
7868 2000-12-21 Kenichi Handa <handa@etl.go.jp>
7870 * keymap.c (push_key_description): Don't convert eight-bit-control
7871 and eight-bit-graphic to multibyte character.
7873 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
7874 generic character and CODE1 is nil, return the smallest character
7877 2000-12-20 Dave Love <fx@gnu.org>
7879 * s/osf5-0.h (NSIG): Don't redefine.
7881 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
7883 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
7884 excluding menu-bar and tool-bar.
7885 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
7886 (menu_item_p): Remove.
7887 (where_is_internal_1): Don't ignore menu-items.
7889 2000-12-20 Gerd Moellmann <gerd@gnu.org>
7891 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
7894 * window.c (make_window): Initialize window's min_hscroll.
7895 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
7896 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
7898 (struct saved_window): New member min_hscroll.
7899 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
7900 (Fset_window_configuration): Set window's min_hscroll.
7901 (save_window_save): Save window's min_hscroll.
7902 (compare_window_configurations): Compare min_hscroll values.
7904 * window.h (struct window): New member min_hscroll.
7906 * keyboard.c (echo_prompt): Prevent a compiler warning.
7908 * xdisp.c (try_cursor_movement): Fix last change. The real
7909 condition is that PT is at the end of the row, and should
7910 be displayed at the start of the next row.
7912 * xdisp.c (try_cursor_movement): If we end on a partially
7913 visible line, end we already decided to scroll, return -1.
7915 * dispextern.h (ensure_frame_matrix): Add prototype.
7917 * window.c (delete_window, Fsplit_window)
7918 (Fset_window_configuration): Call ensure_frame_matrix.
7920 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
7922 (adjust_frame_glyphs_for_frame_redisplay): If display has been
7923 completed, call fake_current_matrices instead of marking frame
7926 2000-12-20 Jason Rumney <jasonr@gnu.org>
7928 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
7930 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
7932 * fns.c (Frequire): Doc fix.
7934 2000-12-19 Gerd Moellmann <gerd@gnu.org>
7936 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
7938 * dispnew.c (direct_output_for_insert): Fix check for mini-window
7939 currently displaying a message.
7941 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
7943 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
7945 2000-12-18 Andrew Innes <andrewi@gnu.org>
7947 * w32.c (w32_strerror): New function.
7949 * w32.h (w32_strerror): New extern.
7951 * w32fns.c (Fw32_shell_execute): Use it.
7953 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7955 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
7957 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7959 * msdos.c (IT_set_face): Obey inverse_video.
7961 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7963 * dired.c (directory_files_internal): Always return decoded filenames.
7965 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7967 * xterm.c (x_connection_closed): Prevent being called recursively
7968 because of an error condition in XtCloseDisplay.
7970 * xdisp.c (init_iterator): If noninteractive, and the frame's
7971 face cache is null, make one.
7973 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
7975 * process.c (wait_reading_process_input): Check for pending
7976 input when running timers.
7978 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7980 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
7982 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7984 * process.c (read_process_output): Don't run a filter if the code
7985 decoder produces nothing but carryover.
7987 2000-12-17 Andrew Innes <andrewi@gnu.org>
7989 * w32.c (sys_rename): Only check errno against EEXIST, and not
7990 EACCES, when determining whether rename failed because the target
7991 exists. This was resulting in indefinite looping on Windows 9x if
7992 the source file was locked by another process.
7994 * w32fns.c (Ffile_system_info): New function.
7995 (syms_of_w32fns): Defsubr it.
7997 2000-12-17 Gerd Moellmann <gerd@gnu.org>
7999 * window.c (coordinates_in_window): Fix computation for
8000 position on vertical line between mode lines.
8002 * xfns.c (unwind_create_frame): Return t if frame was deleted.
8003 Don't alter tip_frame or tip_window.
8004 (unwind_create_tip_frame): Set tip_frame to nil only if frame
8007 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
8008 Don't alter tip_frame or tip_window.
8009 (unwind_create_tip_frame): Set tip_frame to nil only if frame
8012 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
8014 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
8015 be consistent with the doc string. Reported by NAKAJIMA Mikio
8016 <minakaji@osaka.email.ne.jp>.
8018 2000-12-16 Kenichi Handa <handa@etl.go.jp>
8020 * xfaces.c (Vface_ignored_fonts): New variable.
8021 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
8022 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
8024 2000-12-15 Gerd Moellmann <gerd@gnu.org>
8026 * dispnew.c (update_window): Detect pending input every nth line
8027 updated, i.e. do it depending on real work done, and not on the
8030 * xterm.c (expose_window): Don't redraw the window that's
8031 currently being updated.
8033 * window.c (Fset_window_point): Remove test for
8034 cursor_in_non_selected_windows.
8036 * lread.c (read1): Recognize end of file after `\\'.
8038 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
8039 not unwind_create_frame.
8041 2000-12-15 Dave Love <fx@gnu.org>
8043 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
8046 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
8048 2000-12-15 Kenichi Handa <handa@etl.go.jp>
8050 * coding.c (setup_coding_system): Clear all members of the struct
8051 coding_system at first.
8052 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
8054 (code_convert_region): Don't override coding->src_multibyte and
8055 coding->dst_multibyte.
8057 * fns.c (Fmd5): Docstring improved.
8059 2000-12-15 Miles Bader <miles@gnu.org>
8061 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
8062 are actually marked as mode-lines; otherwise use
8063 estimate_mode_line_height.
8065 2000-12-14 Gerd Moellmann <gerd@gnu.org>
8067 * editfns.c (Fformat): Prevent a buffer overrun when the format
8068 specifies a precision.
8070 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
8072 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
8073 argument is outside the range [2..3].
8075 2000-12-14 Andrew Innes <andrewi@gnu.org>
8077 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
8078 nothing to do. Bind inhibit-quit.
8079 (tip_frame): Make it a Lisp_Object.
8080 (x_create_tip_frame): Set tip_frame after it has been added to
8082 (Fx_show_tip): Don't set tip_frame here.
8083 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
8084 (unwind_create_frame, unwind_create_tip_frame): New functions.
8085 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
8086 while a frame is only partially constructed.
8088 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
8089 (x_free_frame_resources): New function.
8090 (x_destroy_window): Use it.
8092 2000-12-14 Gerd Moellmann <gerd@gnu.org>
8094 * xfns.c (Fx_backspace_delete_keys_p): New function.
8095 (syms_of_xfns): Defsubr it.
8097 * config.in (HAVE_XKBGETKEYBOARD): Add.
8099 2000-12-14 Kenichi Handa <handa@etl.go.jp>
8101 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
8102 Always store string in multibyte representation in echobuf.
8103 (echo_char): Always store string in multibyte representation in
8105 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
8106 (read_key_sequence): Adjusted for the change of echo_prompt.
8108 * fns.c (Fmd5): Docstring improved.
8110 * lisp.h (detect_coding_system): Prototype adjusted.
8112 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
8113 (detect_coding_emacs_mule, detect_coding_iso2022,)
8114 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
8115 (detect_coding_utf_16, detect_coding_ccl): Make them static.
8116 New argument MULTIBYTEP. Callers changed.
8117 (detect_coding_mask, detect_coding_system): New argument
8118 MULTIBYTEP. Callers changed.
8119 (decode_coding_string): Set coding->src_multibyte and
8120 coding->dst_multibyte before calling detect_coding and detect_eol.
8121 Update them after some coding system is detected.
8123 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
8125 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
8127 * keyboard.c (menu_bar_items, tool_bar_items):
8128 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
8130 2000-12-13 Gerd Moellmann <gerd@gnu.org>
8132 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
8134 (unwind_create_frame, unwind_create_tip_frame): New functions.
8135 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
8136 while a frame is only partially constructed.
8138 * xterm.h (x_free_frame_resources): Declare.
8140 * xterm.c (x_free_frame_resources): New function.
8141 (x_destroy_window): Use it.
8143 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
8144 don't interrupt the update for pending input initially, i.e.
8145 update at least some lines.
8147 * keyboard.c (do_mouse_tracking): Make externally visible.
8149 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
8151 * xfns.c (gray_bitmap_bits): Declare `char *'.
8153 2000-12-12 Gerd Moellmann <gerd@gnu.org>
8155 * xdisp.c (display_tool_bar_line): Make sure that tool bar
8156 lines start with a relief line.
8158 2000-12-12 Dave Love <fx@gnu.org>
8160 * window.c (Fdisplay_buffer): Doc fix.
8161 (Fwindow_list): Remove unused var.
8163 * buffer.h (mmap_set_vars): Declare.
8165 * window.h (Fset_window_point): Declare.
8167 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
8169 * msdos.c (fast_find_position): Don't overstep the last window row.
8170 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
8171 variable `area'. When looking for a row under (X,Y), give up if some
8172 of the previous rows is not enabled.
8174 2000-12-12 Gerd Moellmann <gerd@gnu.org>
8176 * window.c (Fset_window_point): If displaying cursors in windows
8177 other than the selected window, make sure redisplay updates
8178 other windows to show the new value of point in the window.
8180 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
8182 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
8183 the buffer is the sole visible buffer when in the mini-buffer.
8185 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
8186 Bind `inhibit-read-only' to t.
8187 (unwind_with_echo_area_buffer): Use AREF.
8189 * xfns.c (Fx_hide_tip): Simplified.
8191 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
8194 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
8196 2000-12-11 Gerd Moellmann <gerd@gnu.org>
8198 * xfns.c (Fx_hide_tip): Fix last change.
8200 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
8201 nothing to do. Bind inhibit-quit.
8202 (tip_frame): Make it a Lisp_Object.
8203 (x_create_tip_frame): Set tip_frame after it has been added to
8205 (Fx_show_tip): Don't set tip_frame here.
8207 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
8209 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
8212 * dispextern.h: Change external declaration of tip_frame.
8214 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
8215 return an empty string.
8217 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
8218 of the window's update_mode_line flag, since the former is set by
8219 force-mode-line-update, not the latter. This makes
8220 column-number-mode slightly faster.
8222 * xdisp.c (try_window_id) <all changes above window start>:
8225 2000-12-11 Paul Eggert <eggert@twinsun.com>
8227 * config.in (HAVE_FTELLO): Remove.
8229 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
8230 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
8232 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
8233 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
8235 2000-12-11 Miles Bader <miles@gnu.org>
8237 * window.c (displayed_window_lines): Don't round up when
8238 converting empty space at bottom to lines.
8239 Handle non-newline-terminated final lines properly.
8240 (Fwindow_text_height): New function (used to be in lisp).
8241 (syms_of_window): Initialize it.
8243 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
8245 * syntax.c (scan_lists): Check that the right quote char has the
8246 right Sstring syntax when jumping over strings.
8247 (init_syntax_once): Use Smax rather than 13.
8249 2000-12-09 Miles Bader <miles@gnu.org>
8251 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
8252 with PARTIALLY, inverting the sense.
8253 (window_scroll_pixel_based): Scroll partially visible lines into
8254 place if we hit the beginning or end of the buffer.
8255 (displayed_window_lines): Don't include partially visible lines.
8256 (Fmove_to_window_line): Skip past any partially visible first line.
8258 2000-12-08 Gerd Moellmann <gerd@gnu.org>
8260 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
8262 * tparam.c (tparam1): Change the way buffers are reallocated to be
8263 portable and less obfuscated.
8265 * termcap.c (tgetent): Change the way buffers are reallocated to
8266 be portable and less obfuscated.
8268 * macros.c (store_kbd_macro_char): Change the way buffers are
8269 reallocated to be portable and less obfuscated.
8271 * lread.c (read1): Change the way buffers are reallocated to be
8272 portable and less obfuscated.
8274 * doc.c (Fsubstitute_command_keys): Change the way buffers
8275 are reallocated so that it is portable.
8277 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
8279 * dosfns.c (Ffile_system_info): New function.
8280 (syms_of_dosfns): Defsubr it.
8282 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
8284 * alloc.c (gc_sweep): Add comment.
8286 2000-12-07 Gerd Moellmann <gerd@gnu.org>
8288 * sound.c (vox_configure): Change order of ioctls.
8289 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
8290 Ignore errors when changing volume.
8291 (vox_close): Don't reset the device.
8293 * process.c (read_process_output): Make sure the process marker's
8294 position is valid when the process buffer is changed in
8295 after-change functions. W3 does that.
8297 * xfns.c (x_free_gcs): New function.
8299 * xterm.h (x_free_gcs): Add prototype.
8301 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
8304 * xterm.c (x_destroy_window): Call x_free_gcs so that
8305 resources of non-toolkit X windows will be freed.
8307 2000-12-07 Andrew Innes <andrewi@gnu.org>
8309 * w32fns.c (xlfd_charset_of_font): Fix last change.
8311 2000-12-06 Dave Love <fx@gnu.org>
8313 * md5.h (__P): Don't define -- it comes from config.h.
8315 * strftime.c: Change some #if foo to #ifdef foo.
8317 2000-12-06 Andrew Innes <andrewi@gnu.org>
8319 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
8321 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
8322 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
8323 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
8325 2000-12-06 Gerd Moellmann <gerd@gnu.org>
8327 * alloc.c (gc_sweep): Prevent symbols read during loadup
8330 * xdisp.c (underlying_face_id): New function.
8331 (handle_face_prop, face_before_or_after_it_pos): Use it
8332 to determine the face ``under'' a string. Let strings inherit
8333 the face of the buffer under them.
8335 * xfaces.c (face_at_string_position): Update function comment.
8337 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
8338 matrix if the window's left position has changed; we need to
8339 redraw it in this case.
8341 * dispextern.h (struct glyph_matrix): Add member window_left_x.
8343 * window.c (coordinates_in_window): Check mouse on mode-line or
8346 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
8347 advertized by the function documentation.
8349 * window.c (syms_of_window): Doc fix.
8351 * sound.c (vox_configure): Set volume for left and right channel.
8352 (sound_cleanup): Return nil.
8354 * xdisp.c (move_it_by_lines): Fix paren typo.
8356 * xterm.c (x_load_font): Don't use the font's max_bounds for
8357 computing the height of the font. If max_bounds' ascent or
8358 descent are greater than the font's ascent or descent, this means
8359 glyphs overlap, which should be handled now by redisplay.
8361 * window.c (Veven_window_heights): New variable.
8362 (syms_of_window): DEFVAR_LISP it.
8363 (Fdisplay_buffer): Check Veven_window_heights before evening the
8366 2000-12-06 Miles Bader <miles@gnu.org>
8368 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
8369 update `default-frame-alist' instead of setting no frame parameters.
8371 2000-12-06 Kenichi Handa <handa@etl.go.jp>
8373 * composite.c (update_compositions): Fix typo (use the correct
8376 2000-12-05 Jason Rumney <jasonr@gnu.org>
8378 * md5.h: Remove underscores from function declarations.
8379 (__attribute__, __alignof__) [!__GNUC__]: Define.
8381 * md5.c: Delay include of md5.h until after namespace cleaning.
8383 * makefile.w32-in (fns.o): Depend on md5.h
8384 (md5.o): New target.
8387 * makefile.nt: Likewise.
8389 2000-12-05 Jason Rumney <jasonr@altavista.net>
8391 * w32term.c (expose_area): Complete last change.
8393 2000-12-05 Ken Raeburn <raeburn@gnu.org>
8395 * minibuf.c: Include intervals.h.
8397 2000-12-05 Jason Rumney <jasonr@gnu.org>
8399 * w32term.c (x_produce_glyphs): If a font for a component of
8400 a composition is not found, use 1 pixel dot ascent and 0 dot
8401 descent value to avoid displaying terribly tall empty boxes.
8402 (expose_area): Pass x-coordinate relative to the exposed
8403 area to x_draw_glyphs instead of a window-relative coordinate.
8405 2000-12-05 Gerd Moellmann <gerd@gnu.org>
8407 * xdisp.c (next_element_from_ellipsis): Save face before selective
8408 display in saved_face_id, and set face_before_selective_p.
8409 (reseat_1): Reset face_before_selective_p.
8410 (append_space, extend_face_to_end_of_line): If iterator's
8411 face_before_selective_p is set, use the face from saved_face_id.
8412 (extend_face_to_end_of_line): For tty frames, make sure to
8413 use the right face id when producing spaces at the end of
8416 * dispextern.h (struct it): Add face_before_selective_p.
8418 * keyboard.c (record_char): Don't record identical help-echo
8419 events in recent_keys.
8421 * xterm.c [USE_X_TOOLKIT]: Close the display.
8422 (xim_close_dpy): Handle case that the display has been closed.
8424 * xterm.c (x_destroy_window): Reset the frame's X window after
8427 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
8428 variable window_width.
8429 (line_draw_cost): Fix code skipping over spaces at the end of the
8430 line when must_write_spaces is not set.
8431 (scrolling_window): Fix code inserting runs in list of all runs.
8433 2000-12-05 Kenichi Handa <handa@etl.go.jp>
8435 * coding.c (setup_coding_system): Be sure to initialize
8436 coding->category_idx.
8438 2000-12-04 Gerd Moellmann <gerd@gnu.org>
8440 * xterm.c (PER_CHAR_METRIC): Removed because not used.
8442 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
8443 area to x_draw_glyphs instead of a window-relative coordinate.
8445 * fileio.c (auto_save_error): Add parameter ERROR. Show the
8446 error in the message.
8448 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
8449 timer after having read a key. It's not good for code reading
8450 several keys in a loop, like an input method.
8452 * fileio.c (Finsert_file_contents): When VISIT is t, don't
8453 record undo information for format-decode.
8455 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
8456 current buffer is read-only, not if it isn't.
8458 * keyboard.c (record_char): Record `help-echo' input events
8459 in recent_keys only if they display some help. Don't record
8460 `help-echo' events as macro char.
8462 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
8464 * editfns.c (save_excursion_restore): Don't move point
8465 in another window if it is showing the wrong buffer.
8466 Avoid the call to Fwindow_live_p, for speed.
8468 2000-12-04 Kenichi Handa <handa@etl.go.jp>
8470 * xfaces.c (struct font_name): New member registry_priority.
8471 (split_font_name): Initialize the above member to zero.
8472 (concat_font_list): New function.
8473 (font_list): Include fonts of all alternative registries.
8474 (FONT_POINT_SIZE_QUANTUM): New macro.
8475 (better_font_p): Ignore point size difference less than
8476 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
8478 * xterm.c (x_produce_glyphs): If a font for a component of
8479 a composition is not found, use 1 pixel dot ascent and 0 dot
8480 descent value to avoid displaying terribly tall empty boxes.
8482 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
8484 2000-12-03 Ken Raeburn <raeburn@gnu.org>
8486 * coding.h (code_convert_string1): Declare.
8488 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
8490 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
8492 2000-12-02 Jason Rumney <jasonr@gnu.org>
8494 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
8495 correctly for single byte character case.
8496 (w32_per_char_metric): Do not try to make any assumptions about
8497 the metrics of BDF fonts.
8498 (x_estimate_mode_line_height): If `mode-line' face
8499 hasn't a font, use that of the frame, as drawing glyphs does.
8500 (note_mouse_highlight): Change the cursor shape on the vertical
8501 border between windows [not enabled].
8503 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
8505 * w32fns.c (Fx_create_frame): Reintroduce the call to
8506 face-set-after-frame-defaults.
8507 (Vx_window_horizontal_drag_shape): New variable.
8508 (syms_of_xfns): DEFVAR_LISP it.
8509 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
8512 2000-12-02 Simon Josefsson <simon@josefsson.org>
8514 * fns.c (Fmd5): Use a different logic to decide the coding system
8517 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
8519 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
8521 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
8523 2000-12-01 Gerd Moellmann <gerd@gnu.org>
8525 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
8526 height for YNegative.
8527 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
8528 height; also see comment there.
8530 * window.c (coordinates_in_window): Handle computations for
8531 positions on the vertical bar and fringes differently for
8532 window-system frames. Consider some pixels near the vertical bar
8533 as on the bar if the frame doesn't have vertical scroll bars.
8534 Associate positions between mode or header lines with the
8535 right window, the left one.
8537 2000-12-01 Jason Rumney <jasonr@gnu.org>
8539 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
8541 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
8544 2000-12-01 Gerd Moellmann <gerd@gnu.org>
8546 * window.c (struct saved_window): Add members orig_top and orig_height.
8547 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
8548 (save_window_save, Fset_window_configuration): Save/restore
8549 window's orig_top and orig_height.
8551 2000-12-01 Jason Rumney <jasonr@gnu.org>
8553 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
8555 * w32fns.c (x_set_cursor_color): Fix last change.
8557 2000-11-30 Gerd Moellmann <gerd@gnu.org>
8559 * xdisp.c (echo_area_display): If cursor is in the echo area, make
8560 sure that the next redisplay displays the minibuffer, so that
8561 the cursor will be replaced with what the minibuffer wants.
8563 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
8564 #ifndef instead of using #if.
8565 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
8566 USE_TOOLKIT_SCROLL_BARS is defined.
8568 2000-11-30 Jason Rumney <jasonr@gnu.org>
8570 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
8573 2000-11-30 Gerd Moellmann <gerd@gnu.org>
8575 * fns.c (Fmd5): Doc fix.
8577 2000-11-30 Simon Josefsson <simon@josefsson.org>
8579 * fns.c (Fmd5): New function.
8580 (syms_of_fns): Defsubr md5.
8582 * Makefile.in (obj): Add md5.o
8584 2000-11-30 Gerd Moellmann <gerd@gnu.org>
8586 * md5.h, md5.c: New files, taken from glibc.
8588 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
8590 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
8591 hasn't a font, use that of the frame, as drawing glyphs does.
8593 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
8595 * eval.c (Frun_hooks): Allow 0 arguments.
8597 2000-11-29 Gerd Moellmann <gerd@gnu.org>
8599 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
8600 is over the menu bar widget, say it's not on the frame.
8602 * xfns.c (Fx_create_frame): Reintroduce the call to
8603 face-set-after-frame-defaults.
8605 * eval.c (Fsignal): Reset handling_signal.
8607 2000-11-28 Jason Rumney <jasonr@gnu.org>
8609 * w32menu.c (add_menu_item): Reset menu item text when changing
8610 type to radio button.
8612 2000-11-28 Gerd Moellmann <gerd@gnu.org>
8614 * xselect.c: Update copyright.
8616 * window.c (coordinates_in_window): If on a mode or header line,
8617 but sufficiently close to its start, return ``on vertical
8618 border''. This gives us a way to drag windows horizontally when
8619 using toolkit scroll bars.
8621 * xterm.c (note_mouse_highlight): Change the cursor shape
8622 on the vertical border between windows.
8624 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
8626 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
8627 (syms_of_xfns): DEFVAR_LISP it.
8628 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
8630 * textprop.c (text_read_only): New function.
8631 (verify_interval_modification): Use it instead of signaling
8632 `text-read-only'. This makes it easier to catch this error
8635 * xdisp.c (forward_to_next_line_start): Check for newlines,
8636 not end of line, which includes CR.
8638 2000-11-28 Kenichi Handa <handa@etl.go.jp>
8640 * coding.c (Ffind_coding_systems_region_internal): Be sure to
8641 include no-conversion.
8643 2000-11-27 Jason Rumney <jasonr@gnu.org>
8645 * w32fns.c (w32_load_system_font): Always mark font as double byte
8646 if codepage is unicode.
8648 2000-11-27 Gerd Moellmann <gerd@gnu.org>
8650 * xdisp.c (forward_to_next_line_start): If already on a newline,
8651 just consume it to avoid unintended skipping over invisible text below.
8653 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
8654 `vertical-line', `mode-line' and `header-line' events.
8656 * xdisp.c (try_window_id): Avoid starting to display in the middle
8657 of a character, a TAB for instance. This is easier than to set
8658 up the iterator exactly, and it's not a frequent case, so the
8659 additional effort wouldn't really pay off.
8661 2000-11-26 Andrew Choi <akochoi@i-cable.com>
8663 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
8666 2000-11-25 Jason Rumney <jasonr@gnu.org>
8668 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
8669 Args to window_from_coordinates should be pixel coordinates.
8671 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
8672 redisplay handles them properly.
8674 2000-11-25 Miles Bader <miles@gnu.org>
8676 * indent.c (compute_motion): Keep pos_byte in sync with pos.
8678 2000-11-24 Jason Rumney <jasonr@gnu.org>
8680 * w32.c (init_environment): Set LANG environment variable based on
8681 locale settings, if not set.
8683 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
8684 making tool bar smaller. When clearing the frame, also
8685 clear current matrices. Clear frame when tool bar disappears.
8686 Don't use more lines for the tool-bar than is available.
8687 (x_change_window_heights): New function.
8689 2000-11-24 Gerd Moellmann <gerd@gnu.org>
8691 * xdisp.c (init_from_display_pos): If POS says we're already after
8692 an overlay string ending at POS, make sure to pop the iterator
8693 because it will be in front of that overlay string. When POS is
8694 ZV, we've thereby also ``processed'' overlay strings at ZV.
8696 * xfaces.c (lface_from_face_name): Function comment fix.
8698 2000-11-24 Miles Bader <miles@gnu.org>
8700 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
8701 apply `mode-line-inverse-video' -- zero means force display using
8702 the default face, non-zero means display using the specialized face.
8703 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
8705 2000-11-23 Kenichi Handa <handa@etl.go.jp>
8707 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
8710 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
8712 * coding.c (decode_coding_emacs_mule): Fix the case of
8713 CODING_EOL_LF, which used uninitialized value of c.
8715 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
8717 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
8719 2000-11-22 Gerd Moellmann <gerd@gnu.org>
8721 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
8724 * frame.h (struct frame): Replace desired_tool_bar_items,
8725 current_tool_bar_items, n_desired_tool_bar_items,
8726 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
8728 * frame.c (make_frame): Change initialization of tool bar
8731 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
8732 Change references to members deleted from struct frame to use the
8735 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
8736 references to members deleted from struct frame to use the new ones.
8738 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
8740 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
8742 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
8743 (note_tool_bar_highlight): Change references to members deleted
8744 from struct frame to use the new ones.
8746 2000-11-23 Miles Bader <miles@gnu.org>
8748 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
8749 the face's inverse-video attribute, rather than overriding it.
8751 2000-11-22 Gerd Moellmann <gerd@gnu.org>
8753 * xfns.c (x_set_tool_bar_lines): Clear internal border when
8754 making tool bar smaller.
8756 2000-11-22 Dave Love <fx@gnu.org>
8758 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
8760 2000-11-22 Miles Bader <miles@gnu.org>
8762 * keyboard.c (Vminibuffer_message_timeout): New variable.
8763 (command_loop_1): Use it to determine message timeout.
8764 (syms_of_keyboard): Initialize it.
8766 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
8768 2000-11-22 Kenichi Handa <handa@etl.go.jp>
8770 * sysdep.c: Move the code for declaring h_errno after #include
8773 2000-11-21 Gerd Moellmann <gerd@gnu.org>
8775 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
8776 the menu bar when the tooltip is unmapped.
8778 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
8779 sole visible buffer when we're currently in the mini-buffer, and
8782 2000-11-21 Jason Rumney <jasonr@gnu.org>
8784 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
8785 put on the clipboard.
8786 (Fw32_get_clipboard_data): Compare data on clipboard with saved
8787 copy of what Emacs last put there. If they are the same, do not
8788 use the clipboard copy to avoid losing data due to coding conversions.
8790 2000-11-22 Miles Bader <miles@gnu.org>
8792 * minibuf.c (Vminibuffer_prompt_properties): New variable.
8793 (syms_of_minibuf): Initialize it.
8794 (read_minibuf): Add properties from Vminibuffer_prompt_properties
8795 to prompt, don't make read-only.
8797 2000-11-21 Gerd Moellmann <gerd@gnu.org>
8799 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
8800 Add BEFORE/AFTER_POTENTIAL_GC.
8802 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
8804 * buffer.c (mmap_free_1): Avoid a compiler warning.
8806 * term.c, cm.c: Don't try to include termcap.h; see comment there.
8808 2000-11-21 Kenichi Handa <handa@etl.go.jp>
8810 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
8813 2000-11-20 Gerd Moellmann <gerd@gnu.org>
8815 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
8818 * s/gnu-linux.h: Don't use `#cpu'.
8820 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
8821 not defined in mman.h.
8823 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
8824 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
8825 and store an index in the XClientMessageEvent. Storing a
8826 Lisp_Object or pointer can fail on a 64 bit system, since X only
8828 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
8830 2000-11-20 Dave Love <fx@gnu.org>
8832 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
8834 2000-11-20 Gerd Moellmann <gerd@gnu.org>
8836 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
8838 2000-11-20 Kenichi Handa <handa@etl.go.jp>
8840 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
8843 * alloc.c (make_string): Fix previous change. Be sure to make
8844 unibyte string correctly.
8846 2000-11-19 Gerd Moellmann <gerd@gnu.org>
8848 * window.c (Fwindow_list): Change parameter list to be XEmacs
8850 (window_list_1): New function.
8851 (window_loop): Use it instead of Fwindow_list.
8853 * sysdep.c (emacs_ospeed): New variable.
8854 (toplevel): Don't declare ospeed extern.
8855 (init_baud_rate): Use emacs_ospeed instead of ospeed.
8857 * termcap.c (ospeed): Remove.
8858 (tputs) [!emacs]: Remove unused code.
8859 (tgetent): Avoid a compiler warning.
8861 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
8862 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
8863 SCROLL_BAR_X_WIDGET with additional argument DPY.
8865 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
8867 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
8868 Take the X display as additional argument.
8869 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
8870 `Widget' is a pointer type that's not easily stored in Lisp_Object
8871 form in a portable way.
8873 * dispnew.c (update_text_area): Fix last change.
8875 2000-11-18 Gerd Moellmann <gerd@gnu.org>
8877 * xdisp.c: Use BINDING_STACK_SIZE throughout.
8879 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
8880 clear current matrices.
8882 * buffer.c (mmap_enlarge): Don't print a message on stderr
8883 if mapping new memory at the end of the existing region fails.
8885 * dispnew.c (update_text_area): Don't skip over equal glyphs
8886 when the last current glyph overlaps the glyph to its right.
8888 2000-11-18 Miles Bader <miles@gnu.org>
8890 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
8891 lines that *end* with "..." too (that's the most common case!).
8893 2000-11-18 Gerd Moellmann <gerd@gnu.org>
8895 * xdisp.c (resize_mini_window): Temporarily change to the
8896 mini-window's buffer if necessary.
8898 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
8899 the tooltip obscures less text under it.
8901 2000-11-17 Gerd Moellmann <gerd@gnu.org>
8903 * puresize.h (BASE_PURESIZE): Increase to 700000.
8905 2000-11-18 Jason Rumney <jasonr@gnu.org>
8907 * w32term.c (w32_draw_bitmap): Use face to set colors.
8909 2000-11-17 Dave Love <fx@gnu.org>
8911 * lread.c (Fload): Fix #ifdef for pcc.
8913 2000-11-17 Gerd Moellmann <gerd@gnu.org>
8915 * xdisp.c (pos_visible_p): Compute the default character height
8918 2000-11-16 Gerd Moellmann <gerd@gnu.org>
8920 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
8921 knowing the line's height; use the default font's height in that case.
8923 * xfaces.c (weight_table): Add `demi' with the same meaning as
8926 2000-11-16 Kenichi Handa <handa@etl.go.jp>
8928 * dispnew.c (null_row): New global static variable.
8929 (clear_glyph_row): Delete local static variable null_row.
8931 2000-11-15 Jason Rumney <jasonr@gnu.org>
8933 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
8934 (w32_alloc_lighter_color): Use new brightness calculations from
8935 xterm.c. Scale delta to be in the range expected by W32.
8936 (w32_draw_relief_rect): Use frame relief colors.
8938 2000-11-15 Gerd Moellmann <gerd@gnu.org>
8940 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
8941 (Qinhibit_default_face_x_resources): New variable.
8942 (syms_of_frame): Initialize it.
8943 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
8945 * xdisp.c (pos_visible_p): Improve function comment.
8947 * lisp.h (BINDING_STACK_SIZE): New macro.
8949 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
8950 reading the directory if readdir returns null and errno is EAGAIN
8953 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
8955 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
8956 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
8957 Set amount_to_scroll to max of dx and scroll_step so that
8958 scroll-conservatively doesn't defeat scroll-step>1.
8959 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
8960 scroll-conservatively for line-at-a-time scrolling.
8962 2000-11-14 Gerd Moellmann <gerd@gnu.org>
8964 * window.c (Fpos_visible_in_window_p): Call pos_visible with
8967 * xdisp.c (current_mode_line_height, current_header_line_height):
8969 (init_xdisp): Initialize them.
8970 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
8971 and use exact mode line heights if it is set.
8973 * lisp.h (pos_visible_p): Change prototype.
8975 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
8976 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
8977 and current_header_line_height first.
8978 (current_mode_line_height, current_header_line_height):
8981 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
8983 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
8984 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
8985 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
8987 2000-11-14 Miles Bader <miles@gnu.org>
8989 * xterm.c (x_alloc_lighter_color): Include an additive component
8990 too for dark colors, because FACTOR isn't enough.
8991 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
8994 2000-11-13 Gerd Moellmann <gerd@gnu.org>
8996 * keyboard.c (show_help_echo): Call message3_nolog with number of
8997 bytes in the help string as 2nd parameter, instead of the number
9000 2000-11-13 Miles Bader <miles@gnu.org>
9002 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
9003 (Fload): Use new openp return protocol.
9004 Don't try to use Vload_source_file_function to load .elc files.
9005 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
9006 openp return protocol.
9007 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
9009 2000-11-11 Kenichi Handa <handa@etl.go.jp>
9011 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
9013 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
9014 Defined these macros.
9015 (NLIST_STRUCT): Avoid re-defining it.
9017 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
9018 -I/usr/contrib/X11R6/include.
9019 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
9021 2000-11-10 Jason Rumney <jasonr@gnu.org>
9023 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
9025 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
9026 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
9028 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
9029 (Qw32_charset_vietnamese): New symbol.
9030 (xlfd_charset_of_font): New function.
9031 (w32_load_system_font): Use it.
9032 (x_to_w32_charset): Use Fassoc to find charset info. Special case
9033 when Vw32_charset_info_alist is nil to ensure default face always
9034 has font. Use Fcar and Fcdr for safety.
9035 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
9036 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
9037 pseudo-codepages for special cases.
9038 (w32_to_x_font): New parameter to allow charset portion to be
9039 specified where there is many to one mapping. Callers changed.
9040 (w32_list_fonts): Avoid listing fonts that won't display.
9042 2000-11-10 Gerd Moellmann <gerd@gnu.org>
9044 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
9045 (font_list_1): Renamed from font_list.
9046 (font_list): New function, trying alternative registries from
9047 Vface_alternative_font_registry_alist.
9048 (Finternal_set_alternative_font_registry_alist): New function.
9049 (syms_of_xfaces): Initialize and Staticpro
9050 Vface_alternative_font_registry_alist.
9051 Defsubr Finternal_set_alternative_font_registry_alist.
9053 2000-11-09 Ken Raeburn <raeburn@gnu.org>
9055 * lisp.h (Flooking_at): Declare.
9057 2000-11-09 Gerd Moellmann <gerd@gnu.org>
9059 * dired.c (directory_files_internal): Fix a braino.
9061 * dired.c (directory_files_internal): Add missing GCPRO's.
9064 2000-11-08 Gerd Moellmann <gerd@gnu.org>
9066 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
9067 (resize_mini_window): Return quickly if Vresize_mini_window is
9068 nil. Don't return if Vmax_mini_window_height is nil.
9070 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
9071 (syms_of_xdisp): Initialize them.
9072 (resize_mini_window): Act according to the setting of
9073 Vresize_mini_window.
9074 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
9076 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
9077 scroll bar widget after configuring it, so that it will appear at
9078 the right position from the start.
9079 (XTredeem_scroll_bar): Cleaned up.
9081 2000-11-08 Kenichi Handa <handa@etl.go.jp>
9083 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
9084 font is taller than the frame line, we don't have to bias the
9087 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
9089 2000-11-07 Dave Love <fx@gnu.org>
9091 * config.in (HAVE_MKSTEMP): Add.
9093 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
9095 2000-11-07 Gerd Moellmann <gerd@gnu.org>
9097 * window.c (Fset_window_configuration): Don't try to preserve
9098 point in the current buffer, if that buffer is displayed in more
9101 * xfaces.c (lookup_named_face): If default face isn't realized,
9102 try to realize it. Return -1 if not successful.
9103 (Fx_list_fonts): Handle case that face cannot be determined.
9104 (Fface_font): Likewise.
9106 2000-11-06 Gerd Moellmann <gerd@gnu.org>
9108 * window.c (displayed_window_lines): Detect partially
9109 visible lines at the bottom correctly.
9111 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
9113 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
9114 when ensuring we don't do visit in indirect buffer.
9116 2000-11-06 Kenichi Handa <handa@etl.go.jp>
9118 * composite.h (compose_chars_in_text): Add prototype.
9120 * composite.c (Vcomposition_function_table): New variable.
9121 (Qcomposition_function_table): New variable.
9122 (run_composition_function): Call
9123 Vcompose_chars_after_function with three arguments.
9124 (compose_chars_in_text): New function.
9125 (syms_of_composite): Modified the doc-string of
9126 Vcompose_chars_after_function. Declare composition-function-table
9127 as a lisp variable, and initialize it.
9129 * xfns.c (x_encode_text): Suppress producing escape sequences for
9132 * xselect.c: Include composite.h.
9133 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
9135 2000-11-05 Andrew Innes <andrewi@gnu.org>
9137 * w32term.c (x_produce_glyphs): Fix typo in enum name.
9139 * sysdep.c (read_input_waiting): Remove extraneous argument to
9142 * w32fns.c (Fx_server_version): Include w32_build_number in the
9145 * w32heap.c (w32_build_number): New variable.
9146 (cache_system_info): Set it.
9148 * w32heap.h (w32_build_number): Add extern.
9150 * emacs.c (syms_of_emacs): Update docstring for
9151 system-configuration, to reflect the actual usage on MS-Windows.
9153 2000-10-31 Gerd Moellmann <gerd@gnu.org>
9155 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
9156 process idle timers while waiting for another event.
9158 * dispnew.c (update_frame_line): Handle case where spaces in
9159 the default face are colored.
9161 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
9162 window height hasn't changed.
9164 2000-10-31 Jason Rumney <jasonr@gnu.org>
9166 * w32term.c (x_produce_glyphs): Handle composite characters.
9167 (x_draw_glyph_string_foreground)
9168 (x_draw_composite_glyph_string_foreground): Restore old font.
9170 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
9172 * minibuf.c (read_minibuf): Reset the undo history just before
9173 starting the recursive-edit.
9175 2000-10-30 Gerd Moellmann <gerd@gnu.org>
9177 * xfaces.c (menu_face_change_count): New variable.
9178 (Finternal_set_lisp_face_attribute): Increment it for changes
9180 (realize_basic_faces): Reflect changes in the `menu' faces
9183 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
9184 dy obtained from the iterator's y-position after moving from
9185 scroll_margin_pos to PT; see comment there.
9187 * xdisp.c (safe_eval_handler): Call add_to_log.
9189 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
9190 is not a symbol or string.
9192 * xdisp.c (echo_area_display): Don't perform a display update from
9193 inside redisplay. The update will happen anyway at the end of
9194 redisplay, and it can confuse redisplay (GC messages while
9195 redisplaying, for instance.)
9197 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
9199 * xrdb.c (x_load_resources): Use the class name in the defaults.
9201 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
9202 (regex_compile): Catch bogus \(\1\).
9204 2000-10-30 Gerd Moellmann <gerd@gnu.org>
9206 * xterm.c (x_alloc_nearest_color): Fix last change to compare
9209 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
9210 we have a color cache, check that the cached color equals the
9211 allocated color. If not, clear the color cache.
9213 * window.c (displayed_window_lines): Change buffers if necessary.
9214 Fix computation of displayed lines.
9216 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
9217 update_menu_bindings to DEFVAR_BOOL.
9219 2000-10-30 Kenichi Handa <handa@etl.go.jp>
9221 * search.c (Fset_match_data): Be sure to make search_regs always sane.
9223 * puresize.h (BASE_PURESIZE): Increase to 680000.
9225 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
9227 2000-10-29 Jason Rumney <jasonr@gnu.org>
9229 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
9231 * w32term.c (w32_bdf_per_char_metric): Negate descent.
9232 (w32_cache_char_metrics): Handle possibility that 'x' does not
9233 exist in a BDF font.
9234 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
9236 * w32bdf.h (bdffont): Add nchars.
9238 * w32bdf.c (set_bdf_font_info): Set it.
9239 (w32_BDF_TextOut): Swap byte order of double byte characters.
9240 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
9242 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
9244 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
9245 don't override the colors in frame's param_alist, unless they are
9248 * term.c (reassert_line_highlight): If inverse_video is non-zero,
9249 reverse the effect of the highlight flag.
9251 2000-10-27 Ken Raeburn <raeburn@gnu.org>
9253 * window.h (Fwindow_live_p): Declare.
9255 * undo.c (record_delete): Check that last_undo_buffer is really a
9256 buffer before applying XBUFFER to it.
9258 * keymap.c (where_is_internal): Pass lisp object, not integer, to
9261 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
9263 * lisp.h (KEYMAPP): New macro.
9264 (get_keymap): Remove.
9265 (get_keymap_1): Rename get_keymap.
9267 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
9269 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
9271 * xmenu.c (single_submenu): Use KEYMAPP.
9272 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
9273 Use KEYMAPP rather than Fkeymapp.
9275 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
9277 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
9278 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
9279 Use KEYMAPP rather than Fkeymapp.
9280 (single_submenu): Use KEYMAPP.
9281 (w32_menu_show, w32_dialog_show): Use TRUE.
9283 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
9285 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
9286 (Fkeymapp): Use KEYMAPP.
9287 (get_keymap): Rename from get_keymap_1. Remove old def.
9288 Return t when autoload=0 and error=0 and the keymap needs autoloading.
9289 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
9290 (Fminor_mode_key_binding): Don't raise an error if the binding
9292 (Fuse_global_map, Fuse_local_map): Allow autoloading.
9293 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
9295 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
9296 Allow Vspecial_event_map to be autoloaded.
9297 (menu_bar_items): Fetch the keymap rather than using keymapp.
9298 (menu_bar_one_keymap): No need to follow func-indirect any more.
9299 (parse_menu_item): get_keymap_1 -> get_keymap.
9300 (tool_bar_items): Fetch the keymap rather than using keymapp.
9301 (read_key_sequence): Use KEYMAPP.
9303 * intervals.c (get_local_map): Use get_keymap rather than following
9304 function-indirections explicitly.
9306 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
9308 2000-10-27 Jason Rumney <jasonr@gnu.org>
9310 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
9311 point, as Windows has oversized fonts.
9313 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
9315 2000-10-27 Gerd Moellmann <gerd@gnu.org>
9317 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
9318 (freehook, reallochook): Handle null pointer arguments.
9319 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
9321 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
9323 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
9324 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
9325 Giving in to popular pressure to shut up the compiler with casts.
9327 2000-10-27 Gerd Moellmann <gerd@gnu.org>
9329 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
9330 signed value, and use a default value computed from the font's
9333 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
9335 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
9336 that specify a negative underline position can still use underlines.
9338 * window.c (Fpos_visible_in_window_p): Make POS default to
9339 WINDOW's point, not the current buffer's point.
9341 2000-10-26 Dave Love <fx@gnu.org>
9343 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
9344 when it's necessary.
9346 2000-10-26 Gerd Moellmann <gerd@gnu.org>
9348 * window.c (size_window): Compute size difference from sum of old
9349 child window sizes instead of from parent's size.
9351 * xdisp.c (pos_visible_p): Change current buffer if necessary.
9352 Handle obscured lines at the top of the window.
9354 * frame.c (Fdelete_frame): Doc fix. Move running the hook
9355 down after the last error condition check.
9357 * frame.c (Fdelete_frame): Run delete-frame-hook.
9359 2000-10-26 Kenichi Handa <handa@etl.go.jp>
9361 * coding.c (decode_coding): Fix previous change (check also
9362 CODING_MODE_LAST_BLOCK).
9364 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
9366 * regex.c: More `unsigned char' -> `re_char' changes.
9367 Also change several `int' into `re_wchar_t'.
9368 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
9369 (PUSH_FAILURE_POINTER): Don't cast any more.
9370 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
9371 We want GCC to complain, since this piece of code makes
9372 re_match non-reentrant, which *should* be fixed.
9373 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
9374 (EXTEND_BUFFER): Use RETALLOC.
9375 (SET_LIST_BIT): Don't cast.
9376 (re_wchar_t): New type.
9377 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
9378 that those two functions will always properly return.
9379 (IMMEDIATE_QUIT_CHECK): Cast to void.
9380 (analyse_first): Use recursion rather than an explicit stack.
9381 (re_compile_fastmap): Can't fail anymore.
9382 (re_search_2): Don't check re_compile_fastmap for failure.
9383 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
9384 Now also sets the new value (passed in a new argument).
9385 (re_match_2_internal): Use it.
9386 Also, use a new var `reg' of type size_t when looping through regs
9387 rather than reuse the inappropriate `mcnt'.
9389 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
9390 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
9391 (where_is_internal): Renamed from Fwhere_is_internal.
9392 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
9393 (Fwhere_is_internal): New function wrapping where_is_internal.
9394 (where_is_internal_1): Handle the case where we're filling the cache.
9395 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
9397 2000-10-25 Miles Bader <miles@gnu.org>
9399 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
9401 2000-10-25 Gerd Moellmann <gerd@gnu.org>
9403 * window.c (pos_fully_visible_p): Removed.
9404 (Fpos_visible_in_window_p): Use pos_visible_p to determine
9405 if position is visible and/or fully visible.
9407 * lisp.h (pos_visible_p): Add prototype.
9409 * xdisp.c (pos_visible_p): New function.
9411 2000-10-25 Kenichi Handa <handa@etl.go.jp>
9413 * process.c (send_process): If OBJECT is t, it means that the data
9414 is from C string, but we should encode it. Before calling
9415 setup_raw_text_coding_system, be sure to flush out data by the
9416 previous coding system.
9418 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
9420 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
9421 assignment of startpos to prev when startpos == pos.
9423 * editfns.c (find_field): Set the field stickiness correctly from
9424 overlay fields. Use renamed `text_property_stickiness'.
9425 (text_property_stickiness): Renamed from `char_property_stickiness'.
9426 Only check text properties, not overlays.
9427 * textprop.c (get_char_property_and_overlay): New function.
9428 (Fget_char_property): Use it.
9429 * intervals.h (get_char_property_and_overlay): Add declaration.
9431 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
9433 * keymap.c: Use AREF, ASET and ASIZE macros.
9434 (Fmake_sparse_keymap): Docstring fix.
9436 (shadow_lookup): Move up.
9437 Handle the case where lookup-key returns an integer.
9438 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
9439 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
9440 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
9441 Simplify/rewrite the keymap-finding code.
9442 Add check for command shadowing, using shadow_lookup.
9444 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
9446 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
9447 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
9450 2000-10-24 Andrew Innes <andrewi@gnu.org>
9452 * dired.c (directory_files_internal_unwind): New function.
9453 (directory_files_internal): Use it to ensure closedir is called
9454 even if expand-file-name or file-attributes throw, eg. because of
9455 a user interrupt. Also enable immediate_quit while calling
9456 re_search, so that matching can be interrupted as well.
9458 2000-10-24 Andrew Innes <andrewi@gnu.org>
9460 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
9462 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
9463 so that re_search functions only quit when callers expect them to.
9465 2000-10-24 Kenichi Handa <handa@etl.go.jp>
9467 * regex.c (regex_compile): Change the way of handling a range from
9468 a char less than 256 to a char not less than 256.
9470 2000-10-24 Gerd Moellmann <gerd@gnu.org>
9472 * window.c (size_window): Prevent setting window's width or
9473 height to a negative value (esp. with XSETFASTINT).
9475 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
9476 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
9477 (protect_malloc_state) [GC_MALLOC_CHECK &&
9478 GC_PROTECT_MALLOC_STATE]: New function.
9479 (PROTECT_MALLOC_STATE): New macro.
9480 (__malloc_initialize, morecore, _malloc_internal)
9481 (_free_internal) _realloc_internal): Use it to make _heapinfo
9482 read-only outside of gmalloc.
9484 * keymap.c: Update copyright.
9486 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
9489 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
9491 * filelock.c (unlock_all_files): Use unlock_file to expand each
9492 buffer's file_truename before trying remove its lock file.
9494 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
9496 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
9497 or CRLF, decode EOLs.
9499 2000-10-24 Kenichi Handa <handa@etl.go.jp>
9501 * window.c (Fdisplay_buffer): Fix doc.
9503 2000-10-23 Jason Rumney <jasonr@gnu.org>
9505 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
9506 ASCII font of default fontset on Windows.
9508 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
9509 xterm.c comment below).
9511 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
9513 2000-10-23 Gerd Moellmann <gerd@gnu.org>
9515 * xterm.c (x_connection_closed): Reset handling_signal.
9517 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
9519 2000-10-23 Miles Bader <miles@gnu.org>
9521 * window.c (window_scroll_pixel_based, window_scroll_line_based):
9522 Pass nil for FULLY argument to Fpos_visible_in_window_p to
9523 maintain old behavior.
9524 * minibuf.c (Fminibuffer_complete): Likewise.
9526 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
9528 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
9529 that when a font can't be exactly centered, it errs up rather than
9532 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
9534 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
9536 2000-10-23 Andrew Choi <akochoi@i-cable.com>
9538 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
9540 * dispnew.c [macintosh]: Include macterm.h.
9541 (init_display) [macintosh]: Initialization for window system.
9543 * emacs.c (main) [macintosh]: Call syms_of_textprop,
9544 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
9545 syms_of_search, x_term_init, and init_keyboard before calling
9546 init_window_once. Also, call syms_of_xmenu.
9548 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
9549 default fontset to Monaco.
9551 * frame.c [macintosh]: Include macterm.h. Remove declarations of
9552 NewMacWindow and DisposeMacWindow.
9553 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
9554 instead of calling NewMacWindow and setting fields of
9555 f->output_data.mac directly. Call init_frame_faces.
9556 (Fdelete_frame) [macintosh]: Remove unused code.
9557 (Fmodify_frame_parameters) [macintosh]: Call
9558 x_set_frame_parameters instead of mac_set_frame_parameters.
9560 * frame.h [macintosh]: Define menu_bar_lines field in struct
9561 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
9563 * keyboard.c [macintosh]: Include macterm.h.
9564 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
9565 and menu_bar_activate_event type events as for X and NT.
9566 (make_lispy_event) [macintosh]: Construct lisp events of type
9567 MENU_BAR_EVENT as for X and NT.
9569 * sysdep.c [macintosh]: Remove declaration for sys_signal.
9570 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
9571 (sys_subshell) [macintosh]: Remove definition entirely.
9572 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
9573 Vwindow_system_version here. Remove initialization of
9574 Vx_bitmap_file_path.
9575 (read_input_waiting): Correct the number of parameters passed to
9577 Move all Macintosh functions to mac/mac.c.
9579 * term.c [macintosh]: Include macterm.h.
9581 * window.c [macintosh]: Include macterm.h.
9583 * xdisp.c [macintosh]: Include macterm.h. Declare
9584 set_frame_menubar and pending_menu_activation.
9585 (echo_area_display) [macintosh]: Do not return if terminal frame
9586 is the selected frame.
9587 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
9588 Allow only the selected frame to set menu bar.
9589 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
9590 calling FRAME_EXTERNAL_MENU_BAR (f).
9591 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
9593 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
9594 and check_x. Declare XCreateGC. Define x_create_gc and
9595 x_free_gc. Initialize font_sort_order.
9596 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
9597 but call x_list_fonts instead of w32_list_fonts.
9598 (Finternal_face_x_get_resource) [macintosh]: Do not call
9599 display_x_get_resource.
9600 (prepare_face_for_display) [macintosh]: Set xgcv.font.
9601 (realize_x_face) [macintosh]: Load the font if it is specified in
9603 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
9605 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
9607 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
9608 is nil: since we go to the end of submap anyway, we'd end up
9610 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
9611 doesn't obey autoload.
9613 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
9615 * msdos.c (dos_set_window_size): Update screen dimension variables.
9617 2000-10-21 Jason Rumney <jasonr@gnu.org>
9619 * w32term.c (w32_cache_char_metrics): Double check that font is
9620 really fixed pitch before trusting tmPitchAndFamily.
9622 2000-10-21 Andrew Innes <andrewi@gnu.org>
9624 * w32gui.h (w32_char_font_type): Move enum from w32term.c
9626 * w32term.h: Extern decl for w32_cache_char_metrics.
9628 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
9630 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
9631 (w32_unload_font): Free per_char array if present.
9633 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
9634 cached information in emulated XFontStruct to handle common cases
9635 quickly. Do not allocate XCharStruct for return.
9636 (w32_native_per_char_metric): New function.
9637 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
9639 (x_produce_glyphs): Don't get an HDC. Change calls to
9640 w32_per_char_metric to match arg change above. Remove calls to
9642 (w32_get_glyph_overhangs): Ditto.
9643 (w32_cache_char_metrics): New function.
9645 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
9646 ($(BLD)/casefiddle.$(O)): Remove compile command.
9647 ($(BLD)/gmalloc.$(O)): Remove compile command.
9648 ($(BLD)/dispnew.obj):
9649 ($(BLD)/keyboard.obj):
9650 ($(BLD)/w32inevt.obj):
9651 ($(BLD)/w32bdf.obj):
9653 ($(BLD)/buffer.obj):
9654 ($(BLD)/editfns.obj):
9656 ($(BLD)/fileio.obj):
9658 ($(BLD)/indent.obj):
9659 ($(BLD)/insdel.obj):
9660 ($(BLD)/intervals.obj):
9661 ($(BLD)/minibuf.obj):
9663 ($(BLD)/scroll.obj):
9664 ($(BLD)/sysdep.obj):
9665 ($(BLD)/textprop.obj):
9666 ($(BLD)/widget.obj):
9667 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
9668 ($(BLD)/term.obj): Add dependency on dispextern.h.
9670 * makefile.nt ($(BLD)\dispnew.obj):
9671 ($(BLD)\keyboard.obj):
9672 ($(BLD)\w32inevt.obj):
9673 ($(BLD)\w32bdf.obj):
9675 ($(BLD)\buffer.obj):
9676 ($(BLD)\editfns.obj):
9678 ($(BLD)\fileio.obj):
9680 ($(BLD)\indent.obj):
9681 ($(BLD)\insdel.obj):
9682 ($(BLD)\intervals.obj):
9683 ($(BLD)\minibuf.obj):
9685 ($(BLD)\scroll.obj):
9686 ($(BLD)\sysdep.obj):
9687 ($(BLD)\textprop.obj):
9688 ($(BLD)\widget.obj):
9689 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
9690 ($(BLD)\term.obj): Add dependency on dispextern.h
9692 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
9694 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
9695 with an additional argument of Qt.
9697 2000-10-21 Miles Bader <miles@gnu.org>
9699 * window.c (pos_fully_visible_in_window_p): New function.
9700 (Fpos_visible_in_window_p): Add FULLY argument.
9701 Use pos_fully_visible_in_window_p.
9702 (window_scroll_pixel_based, window_scroll_line_based): Update
9703 calls to Fpos_visible_in_window_p.
9704 * lisp.h (Fpos_visible_in_window_p): Update prototype
9706 2000-10-20 Gerd Moellmann <gerd@gnu.org>
9708 * alloc.c (toplevel): Conditionalize compilation of mem_*
9709 functions differently.
9711 2000-10-20 Jason Rumney <jasonr@gnu.org>
9713 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
9714 mem_init where it used to be. mem_z etc not defined otherwise.
9716 2000-10-20 Gerd Moellmann <gerd@gnu.org>
9718 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
9720 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
9721 structure definition and related variabled to the top of the file.
9722 Include this code when GC_MALLOC_CHECK is defined.
9723 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
9724 register/unregister allocated region.
9725 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
9726 which isn't allocated.
9727 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
9728 something which is already in use.
9729 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
9730 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
9731 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
9732 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
9734 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
9735 _malloc_internal instead of malloc.
9736 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
9739 2000-10-20 Andrew Innes <andrewi@gnu.org>
9741 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
9743 (my_strftime) <macro>: Don't use macro arg list when redefining as
9745 (my_strftime) <function>: Supply 0 as ut argument.
9747 2000-10-19 Jason Rumney <jasonr@altavista.net>
9749 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
9750 including dispextern.h, as it stops faces from working.
9752 * w32fns.c (Fx_create_frame): Don't bother calling
9753 face-set-after-frame-default since the caller does it for us
9754 anyway. Clean up calls to x_get_arg to be consistent with X.
9756 * w32term.c (x_produce_glyphs): Handle
9757 unibyte_display_via_language_environment correctly.
9758 (w32_draw_box_rect): Fix the calculation of width and height.
9760 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
9761 as it has stopped working.
9762 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
9765 2000-10-19 Gerd Moellmann <gerd@gnu.org>
9767 * eval.c (skip_debugger): Prevent a compiler warning.
9768 (Fcondition_case): Likewise.
9769 (Fbacktrace_frame): Use a null interactive spec.
9771 2000-10-19 Kenichi Handa <handa@etl.go.jp>
9773 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
9775 2000-10-18 Gerd Moellmann <gerd@gnu.org>
9777 * strftime.c: Sync with glibc, file version 1.78.
9778 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
9779 should no longer be used according to ISO 8601.
9781 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
9782 no map for meta_prefix_char, don't try to use it as a keymap.
9783 Instead, if T_OK is non-zero, look up a default binding, if any,
9784 otherwise, if T_OK is zero, return nil.
9786 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
9787 (x_to_xcolors, png_load): Use x_query_color.
9789 * xterm.c (x_color_cells, x_query_colors, x_query_color):
9791 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
9793 (x_copy_color, x_alloc_lighter_color): Likewise.
9795 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
9796 (x_query_color, x_query_colors): Add prototype.
9798 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
9799 check_string_bytes only if not noninteractive, increase count to 50.
9801 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
9803 * insdel.c (adjust_markers_for_delete): Handle before-insertion
9806 2000-10-17 Gerd Moellmann <gerd@gnu.org>
9808 * alloc.c (pure_bytes_used): Renamed from pureptr.
9810 (pure_alloc): New function.
9811 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
9813 (Fpurecopy): Use PURE_POINTER_P.
9815 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
9816 PT has moved backward.
9818 * xdisp.c (cursor_row_p): Take continued lines into account.
9820 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
9822 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
9823 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
9824 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
9827 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
9828 of selective display off while searching for the next line start.
9830 2000-10-17 Kenichi Handa <handa@etl.go.jp>
9832 * Makefile.in (term.o): Depend on dispextern.h.
9834 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
9836 * keymap.c (keymap_memberp): Ensure that nil is not a member.
9838 2000-10-16 Gerd Moellmann <gerd@gnu.org>
9840 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
9841 the iterator at the beginning, so that they can be set later on,
9842 for instance in reseat_at_next_visible_line_start, without being
9845 * xfns.c (pbm_format): Add :foreground and :background keywords.
9846 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
9847 (xbm_load): Recognize foreground and background color specifications.
9849 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
9851 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
9853 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
9855 * msdos.c (IT_set_face): Compare highlighted face with the default
9856 face, and invert colors if these faces' colors are identical.
9857 (Fmsdos_remember_default_colors): Don't swap foreground and
9858 background colors in initial_colors[].
9859 (IT_set_frame_parameters): Don't swap frame's foreground and
9860 background pixels. If ALIST includes "(reverse . t)", swap
9861 foreground-color and background-color properties in frame's
9862 param_alist. If the original frame's param_alist doesn't specify
9863 the colors, store unspecified-fg and unspecified-bg, reversed if
9866 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
9867 the colors are unspecified and reversed, reverse fore- and back-
9868 ground in the returned value.
9869 (Fframe_parameter): Ditto.
9871 2000-10-16 Gerd Moellmann <gerd@gnu.org>
9873 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
9874 get_last_unchanged_at_beg_row.
9875 (find_first_unchanged_at_end_row): Renamed from
9876 get_first_unchanged_at_end_row.
9877 (find_first_unchanged_at_end_row): Convert assertions to
9878 unconditional tests which abort. When looking for a row in
9879 unchanged text, don't go further back than first_text_row.
9881 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
9882 Don't add in the last line's height when deciding if the new
9883 position is below the scroll margin.
9885 2000-10-16 Miles Bader <miles@gnu.org>
9887 * editfns.c (Fconstrain_to_field): Check carefully for field
9888 boundaries if either OLD_POS or NEW_POS has a non-nil field
9889 property, even if they're the same.
9891 2000-10-16 Kenichi Handa <handa@etl.go.jp>
9893 * xterm.c (x_draw_box_rect): Fix the calculation of width and
9894 height for XFillRectangle.
9896 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
9898 * syntax.c (Fstring_to_syntax): New function extracted from
9899 Fmodify_syntax_entry.
9900 (Fmodify_syntax_entry): Use it and document the ! and | fences.
9901 (skip_chars, Fforward_comment): Remove unused variables.
9902 (syms_of_syntax): Add defsubr for string-to-syntax.
9903 (describe_syntax): Add code for comment and string fences.
9905 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
9907 * keymap.c (access_keymap): Add AUTOLOAD parameter.
9908 Do the meta->esc mapping. Call get_keyelt before returning.
9909 Start scanning from the second element (the first is always `keymap')
9910 to make it easier to detect when we reach a parent map.
9911 Handle the case of inheriting from a symbol whose function is a map.
9912 (Fkeymap_parent): Also handle the `inherit from symbol' case.
9913 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
9914 (get_keyelt, Flookup_key): Update call to access_keymap.
9915 Remove the meta->esc mappings.
9916 (define_as_prefix): Delete old disabled code.
9917 (menu_item_p): New function.
9918 (where_is_internal_1): Skip over the few remaining menu items.
9919 * lisp.h (access_keymap): Update prototype.
9920 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
9921 Update call to access_keymap.
9922 (follow_key, read_key_sequence): Update calls to access_keymap.
9923 Remove the meta->esc mappings.
9925 2000-10-13 Gerd Moellmann <gerd@gnu.org>
9927 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
9928 with additional argument.
9930 * xdisp.c (cursor_row_p): New function.
9931 (try_cursor_movement, display_line): Use it.
9933 * xdisp.c (append_space): Also save/restore iterator's current
9934 character and its length.
9936 * xdisp.c (init_from_display_pos): Add an assertion.
9937 (handle_stop): Don't set iterator's add_overlay_start.
9938 (handle_invisible_prop): Likewise.
9939 (load_overlay_strings): If text under an overlay is invisible,
9940 take both before- and after-strings into account when the iterator
9941 is positioned either at the start or at the end of the overlay.
9942 (forward_to_next_line_start): Rewritten.
9943 (reseat_at_next_visible_line_start): Rewritten.
9944 (set_iterator_to_next): Add parameter RESEAT_P.
9946 * dispextern.h (struct it): Remove member add_overlay_start.
9947 (set_iterator_to_next): Change prototype.
9949 2000-10-13 Kenichi Handa <handa@etl.go.jp>
9951 * coding.c (code_convert_region): Be sure to initialize
9952 coding->category_idx.
9953 (decode_coding_string): Set coding->src_multibyte and
9954 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
9955 (encode_coding_string): Set coding->src_multibyte and
9956 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
9958 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
9960 * xfns.c (Fx_create_frame): Don't bother calling
9961 face-set-after-frame-default since the caller does it for us anyway.
9963 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
9965 * window.c (coordinates_in_window): Fix detection of vertical line
9966 on character terminals.
9968 2000-10-12 Gerd Moellmann <gerd@gnu.org>
9970 * editfns.c (save_excursion_save): Additionally record the
9972 (save_excursion_restore): If buffer was visible in a window, and a
9973 different window was selected, and the old selected window is
9974 still live, restore point in that window.
9976 2000-10-12 Kenichi Handa <handa@etl.go.jp>
9978 * xterm.c (x_produce_glyphs): Handle
9979 unibyte_display_via_language_environment correctly.
9981 * regex.c (regex_compile): Change the way of handling a range from
9982 unibyte char to multibyte char.
9984 * syntax.c (skip_chars): Change the way of handling a range from
9985 unibyte char to multibyte char.
9987 * process.c (read_process_output): Cancel previous change.
9989 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
9991 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
9993 * charset.c (Ffind_charset_string): Doc fix.
9994 (Ffind_charset_region): Doc fix.
9996 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
9998 * process.c (read_process_output): Fix previous change. Adjust
9999 multibyteness of text to insert in a buffer by
10000 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
10002 2000-10-10 Andreas Schwab <schwab@suse.de>
10004 * alloc.c (mark_object): Remove all workarounds installed on
10007 2000-10-10 Kenichi Handa <handa@etl.go.jp>
10009 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
10010 (base64_encode_1): Make it work for a text of multibyte form.
10011 (Fbase64_decode_region): Allocate sufficient memory for multibyte
10012 case. Don't call str_to_multibyte because base64_decode_1
10013 produces correct multibyte form for eight-bit codes.
10014 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
10015 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
10016 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
10019 * charset.h (CHAR_STRING): Optimized for single byte characters.
10021 2000-10-09 Andreas Schwab <schwab@suse.de>
10023 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
10024 -1 after socket is closed, to fall through to error processing.
10026 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
10028 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
10029 variables. If ALIST includes foreground-color or
10030 background-color, change also the colors of the default face for
10033 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
10035 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
10036 them extern (they are defined on xfaces.c).
10037 (syms_of_msdos): Don't intern and don't staticpro
10038 Qbackground_color and Qforeground_color.
10040 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
10042 * frame.c (Fframe_parameter): For non-windowed frames, if
10043 f->param_alist says foreground or background color is unspecified,
10044 call tty_color_name to return the color name computed from the
10045 frame's current colors.
10047 2000-10-06 Dave Love <fx@gnu.org>
10049 * terminfo.c (ospeed): Don't declare.
10051 * sysdep.c: Don't include string.h.
10052 (h_errno): Declare conditional also on TRY_AGAIN.
10054 * charset.c (Ffind_charset_string): Doc fix.
10056 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
10057 (Fbase64_decode_region, Fbase64_decode_string): More explicit
10060 2000-10-05 Dave Love <fx@gnu.org>
10062 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
10063 position like menu-bar.
10065 2000-10-05 Gerd Moellmann <gerd@gnu.org>
10067 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
10069 * xdisp.c (handle_single_display_prop): Use safe_call1.
10070 (safe_call): Renamed from call_function.
10071 (safe_call1): New function.
10072 (handle_fontified_prop): Use safe_call1 instead of call1.
10073 (safe_eval): Renamed from eval_form.
10074 (safe_eval_handler): Renamed from eval_handler.
10075 (handle_single_display_prop, display_mode_element): Use safe_eval
10076 instead of eval_form.
10078 * xfaces.c (merge_face_heights): Use safe_call instead of
10081 * keyboard.c (show_help_echo): Use safe_call instead of
10082 call_function; use safe_eval instead of eval_form.
10084 * lisp.h (safe_call): Renamed from call_function.
10085 (safe_eval): Renamed from eval_form.
10086 (safe_call1): Add prototype.
10088 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
10090 * xfns.c (image_ascent): Rearrange ascent calculation for the
10093 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
10095 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
10096 (where_is_internal_1): Don't bother ignoring menu-items any more.
10098 2000-10-04 Gerd Moellmann <gerd@gnu.org>
10100 * keyboard.c (update_menu_bindings): New variable.
10101 (parse_menu_item): Use AREF. If update_menu_bindings
10102 is 0, don't update menu bindings.
10103 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
10105 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
10107 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
10110 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
10112 * syntax.c (forw_comment): Match nestedness of ender/starter.
10113 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
10114 (prev_char_comstart_first): Remove.
10115 (back_comment): Check two-char comment markers more carefully
10116 to better handle overlapping cases like *//* or /* */* */ ...
10117 Match nestedness of ender/starter.
10119 2000-10-02 Dave Love <fx@gnu.org>
10121 * config.in (HAVE_GAI_STRERROR): Add undef.
10123 * process.c (Fopen_network_stream): Use it.
10125 * m/alpha.h (NO_REMAP): Don't define.
10127 2000-10-02 Gerd Moellmann <gerd@gnu.org>
10129 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
10130 return with a string converted to an integer or vice versa when
10131 Vmocklisp_arguments is t.
10132 (Fsignal): Likewise. The function can return for `quit'.
10133 (struct gcpro): Declare member `var' to point to a volatile
10136 * eval.c (error): Prevent compiler warning.
10138 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
10140 * keymap.c (keymap_memberp): New function.
10141 (Fset_keymap_parent): Use it.
10142 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
10143 Use keymap_memberp to avoid creating cycles.
10144 (access_keymap): Use KEYMAPP.
10146 2000-09-30 Gerd Moellmann <gerd@gnu.org>
10148 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
10149 gai_strerror. Make sure xerrno is set if connect fails. Improve
10152 2000-09-29 Jason Rumney <jasonr@gnu.org>
10154 * w32term.c (w32_char_font_type, w32_encode_char)
10155 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
10156 (w32_bdf_per_char_metric): New function.
10157 (w32_per_char_metric): Use it.
10158 (x_draw_glyph_string_background): Always draw background for BDF
10161 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
10162 GDI object which is a scarce resource.
10164 * w32bdf.c (search_file_line): Fix skipping of whitespace.
10165 (get_quoted_string): Fix limit on memchr search.
10166 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
10167 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
10168 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
10169 (get_cached_font_char, cache_char_offset): Use macro
10170 BDF_CODEPOINT_RANGE_COVER_P.
10171 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
10172 (clear_cached_bitmap_slots): New function.
10173 (GET_HEX_VALUE): G-Z, g-z are not hex.
10174 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
10175 (get_bitmap_with_cache): Use new cache implementation.
10176 (create_offscreen_bitmap): New function.
10177 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
10179 * w32term.c (x_produce_glyphs): If the distance from the current
10180 position to the next tab stop is less than a canonical character
10181 width, use the tab stop after that.
10182 (x_draw_glyphs): Handle case START and END are out of bounds more
10184 (x_clear_mouse_face): Block/unblock input.
10185 (x_display_and_set_cursor): Don't show a hollow box cursor for
10186 buffers whose cursor_type is nil.
10188 2000-09-29 Gerd Moellmann <gerd@gnu.org>
10190 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
10192 * dispextern.h (updating_frame): Declare extern.
10194 2000-09-29 Andreas Schwab <schwab@suse.de>
10196 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
10198 2000-09-29 Gerd Moellmann <gerd@gnu.org>
10200 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
10201 use its function definition.
10202 (tool_bar_items): Likewise.
10204 * lisp.h (fatal): Declare NO_RETURN.
10206 2000-09-29 Kenichi Handa <handa@etl.go.jp>
10208 * keymap.c: Remove the line "#undef NULL".
10210 2000-09-28 Gerd Moellmann <gerd@gnu.org>
10212 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
10214 2000-09-28 Dave Love <fx@gnu.org>
10216 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
10218 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
10220 * .gdbinit (xreload): Note its need on GNU/Linux.
10222 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
10223 r_alloc, r_alloc_free.
10225 2000-09-28 Kenichi Handa <handa@etl.go.jp>
10227 * syntax.c (skip_chars): Handle negation correctly.
10229 2000-09-27 Gerd Moellmann <gerd@gnu.org>
10231 * xfaces.c (realize_default_face): Call set_lface_from_font_name
10232 with non-zero FORCE_P argument.
10234 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
10237 * xdisp.c (window_box_height): Add an assertion.
10239 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
10240 tool-bar than is available.
10241 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
10243 2000-09-27 Dave Love <fx@gnu.org>
10245 * s/irix6-5.h: Now works 64-bit. Tidied.
10247 2000-09-26 Gerd Moellmann <gerd@gnu.org>
10249 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
10250 instead of BITS_PER_INT.
10251 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
10252 EMACS_UINT, respectively.
10253 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
10255 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
10257 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
10259 * window.c (freeze_window_starts): Construct last argument for
10260 foreach_window differently.
10262 * xfns.c (x_decode_color): Don't return a Lisp_Object.
10264 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
10265 EMACS_UINT instead of `int' and `unsigned int'.
10266 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
10268 * frame.h (struct frame): Make the `nothing' member of union
10269 output_data an EMACS_INT.
10271 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
10272 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
10273 size in the sdata structure.
10274 (SDATA_NBYTES, SDATA_DATA): New macros.
10275 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
10276 differently for the different layout of the sdata structure.
10277 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
10279 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
10280 Check that size recorded in the string size and size recorded in
10281 the sdata structure agree.
10283 2000-09-25 Dave Love <fx@gnu.org>
10285 * buffer.c: Include stdio.h.
10287 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
10289 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
10291 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
10292 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
10293 (__malloc_extra_blocks): Declare as __malloc_size_t.
10295 2000-09-25 Gerd Moellmann <gerd@gnu.org>
10297 * alloc.c (mark_image): Use GC_NILP instead of NILP.
10299 * keyboard.c (show_help_echo): Set help_echo_showing_p.
10300 (read_char): If help-echo is showing, preserve the echo area
10303 * xdisp.c (help_echo_showing_p): New variable.
10304 (set_message): Reset it to 0.
10305 (init_xdisp): Initialize help_echo_showing_p.
10307 * dispextern.h (help_echo_showing_p): Declare extern.
10309 * config.in: Fix typo in __GNUC_MINOR__.
10311 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
10313 * s/freebsd.h (POSIX_SIGNALS): Define.
10315 * xterm.c (x_clear_mouse_face): Block/unblock input.
10317 2000-09-24 Dave Love <fx@gnu.org>
10319 * fns.c (base64_encode_1): Fix last change.
10321 2000-09-22 Gerd Moellmann <gerd@gnu.org>
10323 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
10325 * xdisp.c (try_window_reusing_current_matrix): More fixes
10326 for the case window has a header-line.
10328 2000-09-22 Dave Love <fx@gnu.org>
10330 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
10333 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
10335 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
10337 2000-09-21 Gerd Moellmann <gerd@gnu.org>
10339 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
10342 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
10345 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
10346 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
10347 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
10350 * marker.c (byte_char_debug_check): Return void.
10352 * xfns.c (Fx_create_frame): Set default frame parameter value
10353 for tool-bar-lines to 1.
10355 * dispnew.c (scrolling_window): Compare y-positions of rows
10356 equal at the start. Some simplification.
10358 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
10359 reused rows' y-position in the case window has a header-line, and
10360 new window start is greater than old window start.
10362 * process.c (process_sent_to): New variable.
10363 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
10364 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
10365 Declare more parameters volatile.
10367 * lread.c (Vrecursive_load_depth_limit): New variable.
10368 (Fload): Check recursive loads whose recursion depth exceeds
10369 Vrecursive_load_depth_limit.
10370 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
10372 2000-09-20 Gerd Moellmann <gerd@gnu.org>
10374 * fileio.c (Fread_file_name): Doc fix.
10376 * editfns.c (Fmessage_or_box): Doc fix.
10378 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
10380 * xfns.c (xbm_scan): Allow C-style comments.
10382 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
10383 symbols are specified, add color translations to the cache.
10384 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
10385 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
10387 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
10388 structures to xpm_init_color_cache.
10390 2000-09-19 Gerd Moellmann <gerd@gnu.org>
10392 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
10394 2000-09-19 Andrew Innes <andrewi@gnu.org>
10396 * makefile.nt (bootstrap-emacs): Don't change directory.
10398 2000-09-19 Kenichi Handa <handa@etl.go.jp>
10400 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
10402 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
10403 If output buffer is too small, signal an appropriated error.
10405 2000-09-18 Dave Love <fx@gnu.org>
10407 * keyboard.c (menu_bar_items, tool_bar_items)
10408 (current_active_maps): Remove redundant get_local_map call.
10410 2000-09-18 Gerd Moellmann <gerd@gnu.org>
10412 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
10413 cursor for buffers whose cursor_type is nil.
10415 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
10416 a feature to implement that is already implemented.
10417 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
10420 * xfns.c (x_clear_image_1): New function.
10421 (x_clear_image): Use it.
10422 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
10424 * dispnew.c (update_window): Move test for invisible lines
10425 at the top to update_window_line.
10426 (update_window_line): Handle invisible lines here.
10428 * xfns.c (clear_image_cache): Clear current matrices of all
10429 frames sharing an image cache. Block input while freeing
10430 images. Fix timestamp comparison.
10431 (x_clear_image): Also free the mask.
10433 * xfns.c (lookup_image): Block input while loading the image so
10434 that we won't get interrupted in a state where the image isn't yet
10436 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
10437 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
10438 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
10439 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
10441 2000-09-16 Gerd Moellmann <gerd@gnu.org>
10443 * dispnew.c (update_window): Make sure to make desired rows
10444 current even if they are completely invisible at the top
10447 2000-09-15 Gerd Moellmann <gerd@gnu.org>
10449 * xfns.c (lookup_image): Build mask before applying an algorithm.
10450 Recognize algorithm `disabled'.
10451 (cross_disabled_images): New variable.
10452 (COLOR_INTENSITY): New macro.
10453 (x_detect_edges): Use COLOR_INTENSITY.
10454 (x_disable_image): New function.
10455 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
10457 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
10458 disabled state, don't apply an image transformation algorithm if
10459 the user specified an image for the disabled state. Use
10460 `:algorithm disabled' for creating a disabled item's image if the
10461 user hasn't specified an image.
10463 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
10464 allocation functions with the XPM lib.
10465 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
10466 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
10467 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
10468 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
10469 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
10470 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
10471 functions, if possible, because these handle color allocation
10472 failure more gracefully.
10473 (Fimage_mask_p): New function.
10475 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
10476 (Qedge_detection, Qheuristic): New symbols.
10477 (syms_of_xfns): Initialize new symbols.
10478 (lookup_image): Handle `:mask X', `:algorithm emboss', and
10479 `algorithm (edge-detection ...)'.
10480 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
10481 (tiff_format, gif_format, gs_format): Add `:mask'.
10482 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
10483 (GIF_MASK, GS_MASK): New enumerators.
10484 (x_laplace_read_row, x_laplace_write_row): Functions removed.
10485 (emboss_matrix, laplace_matrix): New variables.
10486 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
10487 (x_edge_detection): New functions.
10488 (x_laplace): Rewritten in terms of x_detect_edges.
10489 (x_build_heuristic_mask): If image has a mask, free it.
10491 2000-09-14 Andrew Innes <andrewi@gnu.org>
10493 * makefile.w32-in: Revert to Unix line endings.
10495 2000-09-14 Andrew Innes <andrewi@gnu.org>
10497 * makefile.w32-in: Standardize indentation somewhat.
10498 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
10499 cater for differences between shells.
10501 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
10503 2000-09-14 Gerd Moellmann <gerd@gnu.org>
10505 * xterm.c (x_produce_glyphs): If the distance from the current
10506 position to the next tab stop is less than a canonical character
10507 width, use the tab stop after that.
10509 2000-09-14 Dave Love <fx@gnu.org>
10511 * buffer.c (alloc_buffer_text): Fix xmalloc call.
10513 2000-09-14 Gerd Moellmann <gerd@gnu.org>
10515 * xdisp.c (handle_fontified_prop): While running fontification
10516 functions, bind `fontification-functions' and
10517 `after-change-functions' to nil.
10519 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
10520 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
10522 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
10524 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
10525 USE_MMAP_FOR_BUFFERS.
10527 * insdel.c (make_gap): Use enlarge_buffer_text.
10529 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
10530 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
10531 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
10532 from former r_alloc_* functions in ralloc.c.
10533 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
10534 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
10535 (mmap_init) [REL_ALLOC_MMAP]: New function.
10536 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
10537 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
10540 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
10541 (enlarge_buffer_text): Add prototype.
10543 * ralloc.c: Remove everything having to do with the use of mmap.
10545 2000-09-13 Gerd Moellmann <gerd@gnu.org>
10547 * sound.c (Fplay_sound): Doc fix.
10549 * keyboard.c: Avoid some more compiler warnings.
10550 (parse_tool_bar_item): Ignore cached key bindings.
10552 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
10553 and allocation of Lisp data.
10555 2000-09-12 Gerd Moellmann <gerd@gnu.org>
10557 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
10558 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
10561 * lread.c (Fload): Put code checking for recursive loads in #if 0.
10563 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
10565 * ccl.c: Comment fixed.
10566 (MAX_MAP_SET_LEVEL): Increased to 30.
10567 (PUSH_MAPPING_STACK): Enclose with do-while block.
10568 (POP_MAPPING_STACK): Likewise.
10569 (stack_idx_of_map_multiple): New variable.
10570 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
10571 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
10572 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
10573 (ccl_driver) <CCL_MapSingle>: Likewise.
10574 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
10575 with the case where looking up process reaches to the end of
10576 map-set, and call CCL programs as the above change.
10578 2000-09-11 Gerd Moellmann <gerd@gnu.org>
10580 * xfns.c (png_load, jpeg_load): Declare some variables volatile
10581 that might be clobbered by longjmp.
10582 (check_x_display_info, x_decode_color, create_frame_xic)
10583 (Fx_display_backing_store, Fx_display_visual_class)
10584 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
10586 * lread.c (init_lread): Set Vloads_in_progress to nil.
10587 (Fload): Show list of recursively loaded files, when signaling an
10590 * lread.c (Vloads_in_progress): New variable.
10591 (record_load_unwind): New function.
10592 (Fload): Check for recursive loads.
10593 (syms_of_lread): Initialize Vloads_in_progress.
10594 (read_integer, read1): Avoid some compiler warnings.
10596 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
10599 2000-09-11 Miles Bader <miles@gnu.org>
10601 * editfns.c (Fbuffer_string): Doc fix.
10603 2000-09-10 Gerd Moellmann <gerd@gnu.org>
10605 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
10607 2000-09-09 Ken Raeburn <raeburn@gnu.org>
10609 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
10610 whether to include other header files.
10612 2000-09-09 Gerd Moellmann <gerd@gnu.org>
10614 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
10615 by Fmemq as a boolean.
10617 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
10619 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
10621 2000-09-08 Gerd Moellmann <gerd@gnu.org>
10623 * ralloc.c (mmap_fd): Remove initializer which can make it
10624 read-only in a dumped Emacs.
10625 (mmap_fd_1): New variable.
10626 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
10627 restore it from there.
10628 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
10629 unconditionally so that mmap_fd can be initialized there.
10630 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
10631 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
10632 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
10634 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
10636 * xdisp.c (dump_glyph_row): Fix printf format string.
10637 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
10639 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
10641 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
10644 * xdisp.c (try_window_id): When trying to locate cursor in
10645 unchanged rows at the top, handle the case that we can't find it.
10647 * xterm.c (x_draw_glyphs): Handle case START and END are out
10648 of bounds more carefully.
10650 2000-09-08 Dave Love <fx@gnu.org>
10652 * s/sol2.h (REL_ALLOC_MMAP): Define.
10653 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
10655 * ralloc.c: Don't include string.h (redundant).
10656 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
10657 [!MAP_ANON]: Include fcntl.h.
10658 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
10659 (r_alloc, r_re_alloc, r_alloc_free)
10660 (mmap_enlarge, mmap_set_vars): Use it.
10661 (r_alloc_init_fd): New function.
10662 (__morecore) [SYSTEM_MALLOC]: Don't declare.
10663 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
10666 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
10669 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
10670 change to __NetBSD__.
10672 2000-09-08 Kenichi Handa <handa@etl.go.jp>
10674 * search.c (compile_pattern): Check the multibyteness of cached
10675 string and PATTERN.
10677 2000-09-08 Miles Bader <miles@gnu.org>
10679 * xfaces.c (default_face_vector): Function removed.
10680 (Finternal_merge_in_global_face): Restore old global/local
10681 attribute override order. Use inline loop instead of calling
10682 default_face_vector.
10684 2000-09-07 Gerd Moellmann <gerd@gnu.org>
10686 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
10687 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
10688 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
10689 where necessary, in case POINTER_TYPE is `void'.
10691 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
10693 * frame.c (make_terminal_frame): Initialize frame foreground and
10694 background colors to unspecified, for the initial instance of an
10697 2000-09-07 Gerd Moellmann <gerd@gnu.org>
10699 * ralloc.c (mmap_find): Fix overlap computation.
10700 (mmap_enlarge): Compute nbytes before trying to find an
10701 overlapping region.
10703 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
10706 * lread.c (syms_of_lread): Change value of regexp
10707 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
10709 * xmenu.c (xdialog_show): When looking up the selection in
10710 menu_items, take `quote' boundaries into account; this corresponds
10711 to a nil ITEM in x-popup-dialog.
10713 2000-09-07 Kenichi Handa <handa@etl.go.jp>
10715 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
10717 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
10719 * coding.c (encode_coding_sjis_big5): Use translation table for
10720 encoding, not decoding. Fix the handling of latin-jisx0201.
10721 Check for the charset katakana-jisx0201 too.
10722 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
10723 (detect_coding_sjis): Check the byte sequence more rigidly.
10725 2000-09-07 Gerd Moellmann <gerd@gnu.org>
10727 * xfaces.c (Vparam_value_alist): New variable.
10728 (syms_of_xfaces): Initialize it.
10729 (Finternal_set_lisp_face_attribute): Avoid more consing.
10731 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
10733 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
10734 (Qbackground_mode): New variable.
10735 (syms_of_frame_1): Initialize Qbackground_mode.
10737 * lisp.h (Qdisplay): Declare extern.
10739 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
10740 change face on all frames, and change the default for new frames.
10742 2000-09-07 Dave Love <fx@gnu.org>
10744 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
10746 2000-09-07 Kenichi Handa <handa@etl.go.jp>
10748 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
10750 * charset.c: Include composite.h
10751 (lisp_string_width): New function.
10752 (Fstring_width): Call lisp_string_width instead of strwidth.
10754 * Makefile.in (charset.o): Depends on composite.h.
10756 * process.c (read_process_output): Before inserting the decoded
10757 text in the buffer, adjust the multibyteness.
10759 2000-09-06 Gerd Moellmann <gerd@gnu.org>
10761 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
10762 buffer's text buffer is null, map new memory.
10764 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
10765 POINTER_TYPE and size_t.
10766 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
10767 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
10768 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
10769 [REL_ALLOC_MMAP]: New macros.
10770 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
10771 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
10772 [REL_ALLOC_MMAP]: New functions.
10774 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
10775 before and after unexec.
10777 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
10778 text buffers if necessary.
10780 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
10781 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
10784 * config.in (HAVE_MMAP): Add #undef.
10786 2000-09-05 Gerd Moellmann <gerd@gnu.org>
10788 * frame.c (Qdisplay_type): New variable.
10789 (syms_of_frame_1): Initialize it.
10790 (Fframe_parameter): New function that avoids consing.
10791 (syms_of_frame): Defsubr it.
10793 * buffer.c (Fother_buffer): Consider buffers as invisible when
10794 they are displayed in a window on an invisible frame.
10796 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
10797 get-largest-window always return nil.
10799 2000-09-04 Gerd Moellmann <gerd@gnu.org>
10801 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
10802 variable; recognize Emacs 19 elc files.
10804 2000-09-04 Miles Bader <miles@gnu.org>
10806 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
10807 before initially popping up the menu, so the menu doesn't flash
10808 when the face settings are significantly different from the defaults.
10810 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
10812 * regex.c (WIDE_CHAR_SUPPORT): New macro.
10813 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
10814 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
10815 (BIT_UNIBYTE): Remove.
10816 (re_match_2_internal): Delete corresponding code and streamline the
10817 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
10818 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
10819 (re_wctype_t): New type.
10820 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
10821 (regex_compile): Use them and fix handling of overly long char classes.
10823 2000-09-03 Andrew Innes <andrewi@gnu.org>
10825 * makefile.w32-in: Change to DOS line endings.
10827 * s/ms-w32.h (ORDINARY_LINK): New define.
10829 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
10830 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
10832 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
10833 (distclean): Delete them here instead.
10835 * w32proc.c (compare_env): Convert to uppercase for comparison,
10836 not lowercase, to match how the native Windows shell works.
10838 2000-09-03 Jason Rumney <jasonr@gnu.org>
10840 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
10841 CVS changes the line-ends when checking in/out on DOS/Windows.
10843 * makefile.nt (emacs): Do not change directory to run temacs, as
10844 the load-path is set relative to current directory.
10846 2000-09-03 Miles Bader <miles@gnu.org>
10848 * xterm.c (x_alloc_lighter_color_for_widget): New function.
10850 2000-09-02 Gerd Moellmann <gerd@gnu.org>
10852 * xdisp.c (redisplay_mode_lines): New function.
10853 (display_mode_lines): Return number of mode lines displayed.
10854 (echo_area_display): Use redisplay_mode_lines to draw garbaged
10855 mode lines. Don't temporarily bind redisplay-dont-pause to t.
10857 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
10858 string.h and strings.h.
10859 (index) [HAVE_INDEX]: Add prototype.
10861 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
10862 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
10864 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
10865 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10867 2000-09-01 Gerd Moellmann <gerd@gnu.org>
10869 * lread.c (read1): Accept `?' as symbol constituent, for
10870 compatiblity with XEmacs.
10872 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
10874 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
10875 (struct re_pattern_buffer): Remove newline_anchor.
10876 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
10877 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
10878 (re_max_failures, fail_stack): Use size_t rather than unsigned.
10879 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
10880 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
10881 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
10882 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
10883 Get rid of references to newline_anchor.
10884 (regcomp): Allocate and precompute a fastmap.
10886 2000-08-31 Gerd Moellmann <gerd@gnu.org>
10888 * lread.c (openp): GCPRO local variable `filename'.
10890 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
10892 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
10894 * regex.c: Merge some changes from GNU libc. Add prototypes.
10895 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
10896 Use memcmp and memcpy instead of bcopy and bcmp.
10897 (init_syntax_once): Use ISALNUM.
10898 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
10899 (REG_UNSET_VALUE): Remove. Use NULL instead.
10900 (REG_UNSET, re_match_2_internal): Use NULL.
10901 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
10903 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
10904 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
10905 (regex_compile): In handle_interval, return an error rather than try to
10906 unfetch the interval if we can't find the closing brace.
10907 Obey the RE_NO_GNU_OPS syntax bit.
10908 (TOLOWER): New macro.
10910 (regexec): Allocate regs.start and regs.end as one block.
10912 2000-08-30 Gerd Moellmann <gerd@gnu.org>
10914 * xdisp.c (echo_area_display): Check display_completed instead
10915 of calling detect_input_pending.
10917 * dispnew.c (update_frame): Only set display_completed here; move
10918 the update_begin and update_end calls here from update_frame_1.
10919 (update_frame_1): Don't set display_completed here, don't call
10920 update_begin/update_end.
10922 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
10923 instead of store_frame_param.
10925 2000-08-29 Gerd Moellmann <gerd@gnu.org>
10927 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
10928 desired window matrix hasn't been displayed, use the current row
10929 instead. Make sure that only those frame rows are updated for
10930 which there exists a corresponding enabled desired row.
10932 2000-08-29 Miles Bader <miles@gnu.org>
10934 * xfaces.c (default_face_vector): New function.
10935 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
10937 2000-08-29 Gerd Moellmann <gerd@gnu.org>
10939 * lread.c (openp): Prevent temporary string passed to
10940 Ffile_readable_p from being garbage collected.
10942 2000-08-28 Dave Love <fx@gnu.org>
10944 * keymap.c (store_in_keymap): Add `static' to declaration.
10946 2000-08-28 Gerd Moellmann <gerd@gnu.org>
10948 * emacs.c, callint.c, doc.c, editfns.c
10949 (toplevel) [HAVE_STRING_H]: Include string.h.
10950 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
10951 (index): Remove prototypes which might conflict with non-standard
10952 definitions of index/strchr.
10954 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
10955 (rindex): Define only if !HAVE_RINDEX.
10957 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
10959 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
10961 2000-08-28 Miles Bader <miles@gnu.org>
10963 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
10964 made inconsistent by a font-related attribute in FROM.
10965 (merge_face_inheritance): Add function comment.
10967 2000-08-28 Kenichi Handa <handa@etl.go.jp>
10969 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
10970 the 4th arg (PREV_EVENT) Qt to suppress input method.
10972 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
10974 * regex.c: Indent cpp directives and remove parens after `defined'.
10975 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
10976 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
10977 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
10978 (re_compile_pattern): Use size_t for length.
10979 (init_syntax_once): Move to a better place.
10980 * regex.h: Merge changes from GNU libc. Indent cpp directives.
10981 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
10983 * syntax.c (back_comment): Detect cases where a comment-starter is
10984 actually inside another comment as in: /* a // b */ c // d \n.
10985 Make it clear that `comstart_pos' is unused for nested comments.
10987 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
10988 (KEYMAPP): New macro.
10989 (Fkeymap_parent, Fset_keymap_parent): Use it.
10990 (fix_submap_inheritance): Mark it static.
10991 (define_as_prefix, describe_buffer_bindings, describe_command)
10992 (describe_translation, describe_map): Complete prototypes.
10994 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
10996 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
10997 to better match the key-lookup behavior.
10999 2000-08-27 Gerd Moellmann <gerd@gnu.org>
11001 * xfaces.c (lface_fully_specified_p): Handle :inherit.
11002 (Finternal_set_lisp_face_attribute): Fix typo in error message.
11004 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
11006 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
11007 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
11008 (xterm.o): Depend on coding.h
11010 2000-08-26 Kenichi Handa <handa@etl.go.jp>
11012 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
11013 the corresponding '#endif'.
11015 2000-08-26 Miles Bader <miles@gnu.org>
11017 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
11018 * xfaces.c (QCinherit): New variable.
11019 (syms_of_xfaces): Initialize it.
11020 (LFACE_INHERIT): New macro.
11021 (Finternal_get_lisp_face_attribute)
11022 (merge_face_vector_with_property)
11023 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
11024 (check_lface_attrs): Allow new types of face height. Check
11026 (CYCLE_CHECK): New macro.
11027 (merge_face_inheritance): New function.
11028 (merge_face_vectors): Merge inherited faces too. Add F and
11029 CYCLE_CHECK arguments.
11030 (merge_face_vector_with_property, Finternal_merge_in_global_face)
11031 (lookup_named_face, lookup_derived_face, realize_named_face)
11032 (face_at_string_position, face_at_buffer_position): Supply
11033 new F and CYCLE_CHECK arguments to merge_face_vectors.
11034 (merge_face_heights): New function.
11035 (merge_face_vectors, merge_face_vector_with_property)
11036 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
11037 handle relative face heights.
11038 (lface_same_font_attributes_p): Compare heights using EQ.
11040 2000-08-26 Kenichi Handa <handa@etl.go.jp>
11042 * charset.c (char_to_string): Check the character validity.
11043 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
11045 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
11047 * regex.c (PUSH_FAILURE_COUNT): New macro.
11048 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
11049 Handle popping of a register's or a counter's data.
11050 (POP_FAILURE_POINT): Use the new name.
11051 (re_match_2_internal): Push counter data on the stack for succeed_n,
11052 jump_n and set_number_at and remove misleading dead code in succeed_n.
11054 2000-08-25 Gerd Moellmann <gerd@gnu.org>
11056 * xdisp.c (redisplay_internal): If considering all windows on all
11057 frames, update the display for each frame as soon as possible,
11058 instead of first building all desired matrices for all frames, and
11059 then updating them all.
11060 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
11062 2000-08-24 Gerd Moellmann <gerd@gnu.org>
11064 * bytecode.c (mark_byte_stack): Add a comment.
11066 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
11067 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
11070 2000-08-24 Kenichi Handa <handa@etl.go.jp>
11072 * minibuf.c (do_completion): Always use compare-string, not
11073 string-equal because the latter doesn't pay attention to
11074 multibyteness of strings.
11076 * process.c (create_process): Don't setup raw-text coding here.
11077 (Fopen_network_stream): Don't set coding->src_multibyte and
11078 coding->dst_multibyte here.
11079 (read_process_output): For process filter, return unibyte string
11080 if default-enable-multibyte-characters is nil.
11081 (send_process): If OBJECT is multibyte text, be sure to encoded it
11082 by the specified coding system for the process. Otherwise, setup
11084 (init_process): Don't initialize default-process-coding-system here.
11086 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
11088 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
11089 <scroll-down-aggressively>: Likewise.
11091 2000-08-23 Kenichi Handa <handa@etl.go.jp>
11093 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
11094 zero. Set coding->produced_char correctly.
11096 2000-08-22 Andrew Innes <andrewi@gnu.org>
11098 * makefile.w32-in: New file.
11100 * unexw32.c (unexec): Ignore old_name, and use the actual location
11101 of the current executable instead. Base new_name on this.
11103 * w32proc.c (create_child): Remove reference to security
11104 descriptor, which isn't needed and doesn't compile with mingw32.
11106 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11107 up dllimport attributes.
11108 (x_update_window_end): Update prototype.
11110 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
11111 extern, which screws up dllimport attributes.
11113 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11114 up dllimport attributes.
11116 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
11117 screws up dllimport attributes.
11119 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11120 up dllimport attributes.
11121 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
11122 screws up dllimport attributes.
11124 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11125 up dllimport attributes.
11127 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
11128 screws up dllimport attributes.
11130 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
11131 screws up dllimport attributes.
11133 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11134 up dllimport attributes.
11136 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
11137 unnecessary extern, which screws up dllimport attributes.
11140 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11141 up dllimport attributes.
11143 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
11144 unnecessary extern, which screws up dllimport attributes.
11146 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
11147 screws up dllimport attributes.
11149 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
11150 up dllimport attributes.
11152 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
11154 * w32bdf.c (search_file_line):
11155 (set_bdf_font_info):
11157 (w32_get_bdf_glyph):
11158 (w32_BDF_to_x_font): Fix compile warnings.
11160 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
11162 * w32select.c: Include keyboard.h before frame.h.
11164 * w32fns.c (max): Define macro.
11165 (JOHAB_CHARSET): Define if not known.
11166 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
11167 (Fx_show_tip): Synch with X version.
11169 * w32xfns.c: Include keyboard.h before frame.h.
11171 * w32fns.c: Include keyboard.h before frame.h.
11173 * w32term.c: Include keyboard.h before frame.h.
11175 * fontset.c: Include keyboard.h before frame.h.
11177 * w32inevt.c: Include keyboard.h before frame.h.
11178 (MOUSE_MOVED): Define if not known.
11180 * minibuf.c: Include keyboard.h before frame.h.
11182 * keyboard.c: Include keyboard.h before frame.h.
11184 * indent.c: Include keyboard.h before frame.h.
11186 * dispnew.c: Include keyboard.h before frame.h.
11188 * buffer.c: Include keyboard.h before frame.h.
11190 * alloc.c: Include keyboard.h before frame.h.
11192 * print.c: Include keyboard.h before frame.h.
11194 * process.c: Include keyboard.h before frame.h.
11196 * scroll.c: Include keyboard.h before frame.h.
11198 * sysdep.c: Include keyboard.h before frame.h.
11200 * term.c: Include keyboard.h before frame.h.
11202 * window.c: Include keyboard.h before frame.h.
11204 * xdisp.c: Include keyboard.h before frame.h.
11205 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
11207 * frame.c: Include keyboard.h before frame.h.
11209 * w32heap.h: Undefine min, max.
11211 * w32gui.h: Undefine min, max.
11213 * unexw32.c: Change PUCHAR to PCHAR.
11214 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
11216 (get_section_info):
11217 (copy_executable_and_dump_data): Remove unnecessary static defs.
11218 (copy_executable_and_dump_data): Fix compile warnings.
11220 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
11222 * w32console.c (min): Define macro.
11223 (clear_frame, write_glyphs): Fix compile warning.
11225 * w32proc.c (compare_env):
11226 (find_child_console): Fix compile warning.
11228 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
11229 sys_errlist instead of _sys_errlist.
11230 (get_emacs_configuration_options): New function.
11232 * s/ms-w32.h (sys_nerr): Provide default definition.
11233 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
11234 name with _ prepended.
11235 (NSIG): Define if not known.
11236 (get_emacs_configuration): Provide extern declaration.
11237 (get_emacs_configuration_options): Provide extern declaration.
11238 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
11240 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
11241 (map_w32_filename):
11242 (read_unc_volume): Fix compile warning.
11244 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
11245 definitions from being used.
11247 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
11249 * w32.c (unc_volume_file_attributes):
11250 (open_unc_volume): Make arg const.
11252 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
11253 (read_input_waiting): Remove excess parameter.
11255 * w32.c (init_environment): Call _access.
11256 (check_windows_init_file): Call _close.
11257 (init_user_info): Call _putenv.
11258 (init_environment): Call _putenv and _strdup.
11259 (init_ntproc): Reset volume info cache on startup.
11261 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
11262 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
11263 cannot override the CRT malloc.
11265 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
11266 (LINK_FLAGS): Append to original value of LINK_FLAGS.
11268 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
11269 unless we are linking with a static CRT.
11270 (RVA_TO_PTR): Cast result to unsigned char*.
11272 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
11273 (add_volume_info): Use xstrdup.
11275 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
11277 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
11278 (do_completion, Fminibuffer_complete_word): Use it.
11279 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
11280 var so it can take non-boolean values.
11282 2000-08-21 Gerd Moellmann <gerd@gnu.org>
11284 * editfns.c (find_field): Formatting changes.
11285 (toplevel): Some old-style function forward declarations
11286 changed to prototypes, some new protypes added, some functions
11289 * lisp.h (set_time_zone_rule): Add prototype.
11290 (use_dialog_box): External declaration.
11292 * keyboard.c (gen_help_event): Add parameter SIZE.
11293 (kbd_buffer_events_waiting): Slightly rewritten.
11294 (clear_event): New function.
11295 (kbd_buffer_get_event): Use it, and clear the input_events of
11297 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
11298 don't fill the newly created array with nils.
11299 (toplevel): Convert some old-style function forward declarations
11302 * keyboard.h (gen_help_event): Change prototype.
11304 * xterm.c (XTread_socket): Change calls to gen_help_event.
11306 * w32term.c (w32_read_socket): Change calls to gen_help_event.
11308 * eval.c (Fmacroexpand): Doc fix.
11310 2000-08-20 Jason Rumney <jasonr@gnu.org>
11312 * w32term.h (x_display_info_for_display): Remove as this function
11313 does not exist on W32.
11315 * w32term.c (help_echo_window): New variable.
11316 (syms_of_w32term): staticpro it.
11317 (note_mode_line_highlight): Set it.
11318 (XTextExtents16): Removed as there is no equivalent on W32.
11319 (x_compute_glyph_string_overhangs): Incomplete body removed, as
11320 the X way of doing this will not work for W32.
11321 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
11322 (x_draw_image_foreground): Avoid drawing outside of the clip area
11323 when image doesn't have a mask.
11324 (note_mouse_highlight): Process overlays in the right order of
11325 priority. Set help_echo_window.
11326 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
11327 because that's more visible for large images.
11329 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
11330 name to single_keymap_panes.
11331 (w32_menu_show): Set wv->title when dealing with titles.
11332 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
11334 2000-08-21 Miles Bader <miles@gnu.org>
11336 * minibuf.c (do_completion): Try again if we rewrite the input
11337 string, but no completion was done, so that any completion message
11340 2000-08-20 Gerd Moellmann <gerd@gnu.org>
11342 * xfaces.c (lface_equal_p): Compare strings differently.
11343 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
11344 (realize_tty_face): Use them.
11345 (syms_of_xfaces): Initialize new variables.
11346 (map_tty_color): New function, extracted from realize_tty_face.
11347 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
11348 foreground or background color, store the new color name in the
11349 realized face; previous code trying to do this had no effect.
11350 (realize_tty_face): Use map_tty_color.
11351 (Fclear_face_cache): Set face_change_count and ensure thorough
11354 2000-08-19 Gerd Moellmann <gerd@gnu.org>
11356 * undo.c (record_first_change, record_marker_adjustment): Don't
11357 use XBUFFER on last_undo_buffer which might not be a buffer.
11359 2000-08-18 Kenichi Handa <handa@etl.go.jp>
11361 * coding.c (decode_coding_string): Set members consumed,
11362 consumed_char, produced, produced_char of *coding correctly. If
11363 decode_coding doesn't consume any byte, don't try anymore.
11364 (encode_coding_string): Likewise.
11366 2000-08-18 Gerd Moellmann <gerd@gnu.org>
11368 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
11369 conditional have void type, for Standard C compilers.
11371 * xdisp.c (redisplay_internal): Compare windows for equality with
11372 EQ, instead of applying XWINDOW to something that might not
11375 2000-08-18 Kenichi Handa <handa@etl.go.jp>
11377 * fontset.c (Finternal_char_font): Search only the selected frame
11378 for a window of the current buffer.
11380 2000-08-18 Gerd Moellmann <gerd@gnu.org>
11382 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
11385 * keyboard.c (kbd_buffer_get_event): Handle the case that the
11386 second half of a HELP_EVENT is found at the start of kbd_buffer.
11388 2000-08-18 Miles Bader <miles@gnu.org>
11390 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
11392 * editfns.c (save_restriction_save): Rewrite to use markers.
11393 (save_restriction_restore): Rewrite to understand new form of data
11394 saved by save_restriction_save.
11395 (Fsave_restriction): Remove cautionary note in doc-string.
11397 2000-08-17 Gerd Moellmann <gerd@gnu.org>
11399 * fileio.c (build_annotations): Add a comment explaining the
11400 return value of format-annotate-function. Replace a spurious call
11401 to Flength with a CONSP test. Call format-annotate-function with
11402 a fifth arg specifying how many times the function is been called
11403 in a row, to let it choose temporary buffers appropriately.
11405 2000-08-17 Dave Love <fx@gnu.org>
11407 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
11408 declare make_temp_name twice.
11410 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
11411 (unreadpure): Give it an arg.
11413 * unexalpha.c: Prototype fatal_unexec, mark_x,
11414 update_dynamic_symbols. Declare unexec as void.
11416 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
11417 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
11419 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
11420 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
11422 * alloca.c: Use #error.
11423 [POINTER_TYPE]: Use it.
11425 * eval.c (Fdefvar): Doc fix.
11427 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
11428 INITIALIZE_INTERVAL.
11430 * buffer.h: Avoid DECLARE_INTERVALS.
11432 * config.in: Add size_t.
11434 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
11436 * w16select.c (set_clipboard_data): If there's not enough memory
11437 to put text into clipboard, return 1, as Fw16_set_clipboard_data
11438 expects. In case of other failures, return 3.
11439 (system_error_msg): New error message.
11440 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
11443 2000-08-16 Gerd Moellmann <gerd@gnu.org>
11445 * term.c (write_glyphs): Also turn off inverse video after turning
11446 off other appearances in case TS_exit_attribute_mode is not equal
11447 to TS_end_standout_mode.
11448 (insert_glyphs): Turn inverse video on/off for each run of glyphs
11449 with the same face.
11450 (turn_off_face): Reset standout_mode only if
11451 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
11452 is equal to TS_end_standout_mode.
11454 2000-08-16 Kenichi Handa <handa@etl.go.jp>
11456 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
11457 sequence at the end of the source block.
11459 * ccl.c (Fccl_program_p): Docstring modified.
11460 (Fccl_execute): Likewise.
11461 (Fccl_execute_on_string): Likewise.
11463 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
11465 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
11467 2000-08-16 Kenichi Handa <handa@etl.go.jp>
11469 The following changes are mainly to fix bugs of
11470 encode/decode-coding-string failing if encoding/decoding return
11471 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
11472 variable conversion_buffer.
11474 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
11475 decrement dst_end to avoid buffer overflow in the later call of
11476 string_as_multibyte
11478 * coding.h (conversion_buffer_size, conversion_buffer)
11479 (get_conversion_buffer): Extern deleted.
11481 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
11482 (conversion_buffer, conversion_buffer_size): Variables deleted.
11483 (get_conversion_buffer): Function deleted.
11484 (struct conversion_buffer): New structure.
11485 (MAX_ALLOCA): New macro.
11486 (allocate_conversion_buffer): New macro.
11487 (extend_conversion_buffer, free_conversion_buffer): New functions.
11488 (ccl_coding_driver): Set coding->result.
11489 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
11490 this is the last block of source.
11491 (encode_coding): Likewise. Handle the source block as the last
11492 one only when the whole source text is consumed.
11493 (decode_coding_string): Handle the case that the output buffer is
11494 too small to decode the whole source text. Use
11495 allocate_conversion_buffer, extend_conversion_buffer and
11496 free_conversion_buffer, not get_conversion_buffer.
11497 (encode_coding_string): Likewise.
11498 (init_coding): Function deleted.
11499 (init_coding_once): Delete code to initialize conversion_buffer_size.
11501 * emacs.c (main): Don't call init_coding.
11503 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
11505 * term.c (write_glyphs): Use a locally declared conversion_buffer.
11506 (insert_glyphs): Likewise.
11508 * w32console.c (write_glyphs): Use a locally declared
11511 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
11513 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
11514 member of display_info is NULL.
11516 2000-08-15 Gerd Moellmann <gerd@gnu.org>
11518 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
11520 * term.c (turn_off_face): Reset standout_mode when resetting
11521 appearances with capability `me'.
11522 (write_glyphs): Switch on inverse video before each face change.
11524 2000-08-14 Dave Love <fx@gnu.org>
11526 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
11527 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
11528 (lisp_free): Declare and make static.
11530 * window.c: Fix embedded comment.
11531 (syms_of_window): Fix doc string.
11533 2000-08-14 Gerd Moellmann <gerd@gnu.org>
11535 * keymap.c (push_key_description): If C without modifiers is < 32,
11536 make sure to print `C-' before `M-', like in the manual.
11538 2000-08-11 Gerd Moellmann <gerd@gnu.org>
11540 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
11541 since they aren't relocated anymore.
11542 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
11544 * xdisp.c (try_cursor_movement): Fix handling of cursor in
11545 partially visible line which is smaller than the window's height.
11547 2000-08-11 Kenichi Handa <handa@etl.go.jp>
11549 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
11550 the multibyte form of eight-bit-control characters.
11551 (Fccl_execute_on_string): Initialize ccl->multibyte.
11553 * ccl.h (struct ccl_program): New member multibyte.
11555 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
11557 2000-08-11 Kenichi Handa <handa@etl.go.jp>
11559 * regex.c (regex_compile) <normal_char>: Pay attention to
11561 (analyse_first) <exactn>: Setup fastmap correctly for
11562 eight-bit-control characters.
11564 2000-08-11 Kenichi Handa <handa@etl.go.jp>
11566 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
11568 * keyboard.c (make_lispy_event): Handle the new event type
11569 multibyte_char_keystroke.
11571 * xterm.c: Include coding.h.
11572 (XTread_socket): Work around a bug of XmbLookupString. If the
11573 input is from XIM, decode it according to the current locale. In
11574 that case, generate multibyte_char_keystroke events.
11576 2000-08-11 Kenichi Handa <handa@etl.go.jp>
11578 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
11579 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
11581 2000-08-10 Gerd Moellmann <gerd@gnu.org>
11583 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
11584 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
11585 (move_it_in_display_line_to): Record iterator's ascent and descent
11586 before producing glyphs, and restore them when we know the glyph
11587 doesn't fit on the line.
11588 (move_it_to): Restructured so that it's easier to debug. If
11589 moving to a vpos, and not moving to an x or character position,
11590 stop as soon as the specified vpos is reached; don't move further
11591 into that line because that might change the computed line height.
11592 (try_cursor_movement): New function, extracted from the cursor
11593 movement branch of redisplay_window. If ending on a partially
11594 visible line, don't try to scroll if the cursor line is taller
11596 (redisplay_window): Use try_cursor_movement.
11598 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
11599 because that function doesn't cope with variable-height lines.
11601 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
11602 box cursor because that's better visible for large images.
11604 2000-08-10 Miles Bader <miles@gnu.org>
11606 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
11608 2000-08-10 Gerd Moellmann <gerd@gnu.org>
11610 * xdisp.c (Vmessages_buffer_name): New variable.
11611 (message_dolog): Use it.
11612 (syms_of_xdisp): Initialize it.
11614 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
11616 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
11617 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
11618 redundant now that keyboard.h is included.
11620 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
11622 * keyboard.c (kbd_buffer_events_waiting): New function.
11624 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
11626 * msdos.c: Include keyboard.h.
11627 (XMenuActivate): Empty no_event events from the event buffer. If
11628 no events are left after that, call clear_input_pending.
11629 (mouse_clear_clicks): New function, code moved from mouse_init.
11630 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
11631 mouse driver to ``forget'' any past clicks.
11633 * Makefile.in (msdos.o): Depend on keyboard.h.
11635 2000-08-09 Gerd Moellmann <gerd@gnu.org>
11637 * lisp.h (input_pending): External declaration.
11639 * dispextern.h (Qredisplay_dont_pause): Declare extern.
11641 * xdisp.c (echo_area_display): Display thoroughly if input is
11642 pending. Bind redisplay-dont-pause to t during the redisplay.
11643 in case input is pending.
11645 * dispnew.c (Qredisplay_dont_pause): New variable.
11646 (syms_of_display): Initialize and staticpro it.
11647 (update_frame_1): Don't interrupt the display for pending input if
11648 redisplay_dont_pause is set.
11650 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
11652 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
11654 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
11656 * callproc.c (Fcall_process): Terminate the unwind-protect around
11657 the post-read-conversion of coding system.
11659 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
11660 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
11661 * buffer.h (overlays_at): Update prototype.
11662 * xdisp.c (next_overlay_change): Update call to overlays_at.
11663 * xfaces.c (face_at_buffer_position): Likewise.
11664 * textprop.c (Fget_char_property): Likewise.
11665 * xterm.c (note_mouse_highlight): Likewise.
11667 * minibuf.c (do_completion): Don't consider a simple change of
11668 case as `completion'.
11670 2000-08-08 Ken Raeburn <raeburn@gnu.org>
11672 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
11673 * undo.c (record_delete): Make sure last_point_position_buffer is
11674 a buffer before comparing pointers.
11676 * coding.h (decode_coding_string): Declare.
11678 * intervals.h (Fprevious_single_char_property_change): Declare.
11680 * textprop.c (Fprevious_single_char_property_change): Don't do
11681 arithmetic directly on lisp objects.
11683 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
11685 * keyboard.h (menu_item_eval_property): Declare.
11687 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
11688 reuse as buffer name, instead of recreating (and discarding) every
11689 time a message is logged.
11690 (with_echo_area_buffer): Make callback arg A2 a lisp object.
11691 (current_message_1, truncate_message_1, set_message_1)
11692 (display_echo_area_1, resize_mini_window_1): Signatures changed.
11693 (current_message, truncate_echo_area, display_echo_area)
11694 (resize_echo_area_axactly): Changed calls.
11696 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
11698 (Ffind_coding_systems_region_internal): First argument to Fappend
11699 must be an integer, not a Lisp object.
11701 2000-08-08 Kenichi Handa <handa@etl.go.jp>
11703 * charset.c (Fchar_width): Doc fix.
11705 2000-08-08 Gerd Moellmann <gerd@gnu.org>
11707 * charset.c (Fstring_width): Doc fix.
11709 2000-08-07 Gerd Moellmann <gerd@gnu.org>
11711 * xdisp.c (start_display): When starting display on a continuation
11712 line, clear ascent and descent members of the iterator structure;
11713 the height of the continued line does not affect the height of the
11715 (make_cursor_line_fully_visible): Do nothing if cursor is on a
11716 line taller than the window.
11717 (redisplay_window) <forced window start>: Handle case that the
11718 middle of the window is not found in any row.
11719 (dump_glyph_row): Show more information.
11720 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
11721 first text line in a glyph matrix.
11723 * xterm.c (x_draw_image_foreground): Avoid drawing outside
11724 of the clip area when image doesn't have a mask.
11726 * fns.c (sweep_weak_table): Fix survival conditions for
11727 key-or-value and key-and-value weakness.
11729 * .gdbinit (xhashtable): New command.
11731 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
11732 tables out of the list of all weak hash tables.
11734 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
11735 a new buffer is created, make sure echo_area_buffer[] references
11738 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
11740 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
11743 2000-08-07 Kenichi Handa <handa@etl.go.jp>
11745 * syntax.c (skip_chars): Fix previous change. Make the handling
11746 of unibyte string consistent with that of regex search.
11748 2000-08-05 Gerd Moellmann <gerd@gnu.org>
11750 * xmenu.c (popup_get_selection): Use xfree instead of free.
11752 * fileio.c (Finsert_file_contents): Use xfree instead of free.
11754 * editfns.c (Ftranspose_regions): Use xfree instead of free.
11756 * callproc.c (child_setup): Use xfree instead of free.
11758 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
11760 (run_mac_command, closedir): Use `xfree' instead of `free'.
11762 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
11764 * eval.c (error): Use xfree instead of free.
11766 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
11768 * fns.c: Replace `illegal' with `invalid'.
11769 (Fmake_hash_table, make_hash_table): Allow table size of 0.
11771 2000-08-05 Kenichi Handa <handa@etl.go.jp>
11773 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
11776 2000-08-04 Noah Friedman <friedman@splode.com>
11778 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
11781 2000-08-04 Gerd Moellmann <gerd@gnu.org>
11783 * syntax.c (skip_chars): Fix typo in error message.
11785 2000-08-04 Andreas Schwab <schwab@suse.de>
11787 * m/ia64.h: Moved from s/ia64.h.
11789 2000-08-04 Kenichi Handa <handa@etl.go.jp>
11791 * process.c (read_process_output): Big simplification. Handle
11792 composition and post-read-conversion of coding system correctly.
11793 (send_process): Handle composition correctly.
11795 * callproc.c (Fcall_process): Handle post-read-conversion of
11796 coding system if any.
11798 * coding.c (decode_coding_iso2022): More strict check for handling
11800 (coding_restore_composition): Pay attention to the case that
11801 cmp_data is not set properly (because of invalid code in the
11803 (run_pre_post_conversion_on_str): Include text properties in the
11805 (decode_coding_string): Set members of coding correctly.
11807 2000-08-03 Gerd Moellmann <gerd@gnu.org>
11809 * s/ia64.h: New file.
11811 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
11812 Use NULL instead of 0 at the end of variable argument list of
11813 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
11814 sizeof (int) < sizeof (void *).
11816 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
11817 of variable argument lists of XtVaGetValues and XtVaSetValues.
11819 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
11820 variable argument lists of XtVaGetValues and XtVaSetValues.
11822 2000-08-02 Gerd Moellmann <gerd@gnu.org>
11824 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
11825 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
11827 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
11830 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
11831 in call to Fsingle_key_description.
11833 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
11836 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
11838 * window.c (display_buffer_reuse_frames): New variable.
11839 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
11840 frames displaying BUFFER.
11841 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
11843 2000-08-01 Miles Bader <miles@gnu.org>
11845 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
11846 when to constrain NEW_POS (they were pretty screwed up before).
11848 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
11850 * msdos.c (run_msdos_command): Save and restore the master
11851 environment, for the case that child_setup signals an error.
11852 When mirroring slashes in DOS shell commands, don't fail when
11853 argv[2] has embedded blanks.
11854 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
11855 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
11856 (dos_ttraw): Call mouse_setup_buttons.
11858 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
11859 using alloca; free it after run_msdos_command returns.
11861 2000-07-27 Dave Love <fx@gnu.org>
11863 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
11864 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
11866 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
11868 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
11870 * editfns.c (lisp_time_argument): Fix last change.
11872 2000-07-27 Gerd Moellmann <gerd@gnu.org>
11874 * fns.c (Fdelete): Make it work on vectors and strings in addition
11877 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
11878 (syms_of_fns): Initialize new variables.
11879 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
11880 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
11881 weakness, with t meaning the same as `key-and-value'.
11883 2000-07-27 Kenichi Handa <handa@etl.go.jp>
11885 * coding.h (struct coding_system): Member safe_charset deleted.
11887 * coding.c (Qsafe_charsets): This variable deleted.
11888 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
11890 (coding_safe_chars): New function.
11891 (CODING_SAFE_CHAR_P): New macro.
11892 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
11893 checking safe_charsets member of the coding system. Caller changed.
11894 (detect_coding_iso2022): New local variable safe_chars.
11895 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
11896 safe_charsets member of the coding system.
11897 (decode_coding_iso2022): New local variable safe_chars.
11898 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
11899 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
11900 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
11901 (ENCODE_UNSAFE_CHARACTER): New macro.
11902 (encode_coding_iso2022): New local variable safe_chars. Check
11904 (setup_coding_system): Delete the code to initialize
11905 coding->safe_charses
11906 (intersection, find_safe_codings): New functions.
11907 (Ffind_coding_systems_region_internal): New function.
11908 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
11909 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
11910 variable and initialize it.
11912 * fns.c (char_table_ref_and_index): New function.
11914 * lisp.h (char_table_ref_and_index): Add prototype.
11916 2000-07-26 Sam Steingold <sds@gnu.org>
11918 * editfns.c (lisp_time_argument): Added third argument `usec'.
11919 (Ffloat_time): New built-in Lisp function.
11921 2000-07-26 Gerd Moellmann <gerd@gnu.org>
11923 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
11924 for the character code.
11926 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
11929 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
11930 if called for a popup menu.
11931 (xmenu_show): Store help string in widget values.
11933 2000-07-26 Dave Love <fx@gnu.org>
11935 * syswait.h: Move some definitions.
11936 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
11937 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
11938 perspicuous definitions.
11939 (WTERMSIG): Fix bit pattern used.
11941 2000-07-26 Kenichi Handa <handa@etl.go.jp>
11943 * print.c (print_object): If vector printing is truncated, print
11944 "..." to indicate it as well as the case of list printing.
11946 2000-07-25 Gerd Moellmann <gerd@gnu.org>
11948 * xdisp.c (next_element_from_display_vector): Improve comments.
11950 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11951 for the character code, and the rest for the face id as in 20.x.
11952 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
11954 * window.c (window_display_table): Cleaned up.
11956 * syntax.c (Fforward_word): Add last arg nil in call of
11957 Fconstrain_to_field.
11959 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
11961 * fileio.c (Frename_file) [DOS_NT]: If the file names are
11962 identical but for the letter-case, don't call
11963 barf_or_query_if_file_exists.
11965 2000-07-25 Miles Bader <miles@gnu.org>
11967 * editfns.c (find_field): Honor special `boundary' fields.
11968 (Qboundary): New variables.
11969 (syms_of_editfns): Initialize Qboundary.
11970 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
11971 Use scan_buffer instead of find_before_next_newline, because it
11972 allows us to detect the boundary case where there's a newline at
11974 * lisp.h (Fconstrain_to_field): Update external declaration.
11976 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11978 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
11981 2000-07-24 Dave Love <fx@gnu.org>
11983 * s/sunos4-0.h, s/sol2.h:
11984 (LIBS_TERMCAP): Move from m/sparc.h.
11986 * m/sparc.h (TERMINFO): Moved to system files (probably only
11987 relevant for sunos4 judging by its vintage).
11988 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
11991 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
11993 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
11994 name to single_keymap_panes.
11996 2000-07-24 Andreas Schwab <schwab@suse.de>
11998 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
12000 2000-07-24 Gerd Moellmann <gerd@gnu.org>
12002 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
12003 parameters instead of using int parameters. Expect FN to accept
12004 EMACS_INT parameters.
12005 (display_echo_area, resize_echo_area_axactly, current_message)
12006 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
12007 with new argument list.
12008 (resize_mini_window_1): New callback function.
12009 (current_message_1, truncate_message_1, set_message_1): Change
12010 parameter lists to the new format expected by with_echo_area_buffer.
12012 2000-07-24 Kenichi Handa <handa@etl.go.jp>
12014 * fontset.c (fontset_ref): Remove INLINE declaration.
12015 (fontset_ref_via_base): Likewise.
12016 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
12019 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
12021 * msdos.c (IT_note_mouse_highlight): Process overlays in the
12022 correct order of priority. If help echo was found in an overlay,
12023 use that overlay as the object in which the help echo was found.
12025 2000-07-22 Miles Bader <miles@gnu.org>
12027 * textprop.c (Fprevious_single_char_property_change): The initial
12028 property value should be from the position preceding POSITION, not
12031 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
12033 * coding.c (syms_of_coding): Doc fix for
12034 inhibit-iso-escape-detection.
12036 2000-07-21 Gerd Moellmann <gerd@gnu.org>
12038 * xterm.c (note_mouse_highlight): Process overlays in the right
12041 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
12043 * xterm.c (note_mouse_highlight): If help-echo was found in an
12044 overlay, use that overlay as the object in which the help was found.
12046 * window.c (foreach_window_1): Fix typo reversing an if-condition.
12048 * window.c (foreach_window): Instead of a fake variable argument
12049 list, take one USER_DATA argument.
12050 (foreach_window_1): Likewise, and call callback functions with two
12051 args, the window and USER_DATA.
12052 (struct check_window_data): New struct.
12053 (check_window_containing): Use it.
12054 (window_from_coordinates): Set up a struct check_window_data for
12056 (add_window_to_list, freeze_window_start): Change parameters
12057 according to new calling convention.
12059 * window.h (foreach_window): Change prototype.
12061 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
12063 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
12065 * xmenu.c (menu_help_callback): Call show_help_echo with
12066 additional arguments OBJECT and POS.
12068 2000-07-21 Kenichi Handa <handa@etl.go.jp>
12070 * data.c (Faset): Allow storing any multibyte character in a
12071 string. Convert unibyte string to multibyte if necessary.
12073 * xfns.c (x_encode_text): New function.
12074 (x_set_name): Use x_encode_text.
12075 (x_set_title): Likewise.
12077 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
12079 * xterm.h (x_encode_text): Add prototype.
12081 2000-07-20 Dave Love <fx@gnu.org>
12083 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
12086 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
12088 * msdos.c (help_echo_window): New variable.
12089 (syms_of_msdos): Initialize and staticpro it.
12090 (IT_note_mode_line_highlight): Set help_echo_window.
12091 (IT_note_mouse_highlight): Ditto.
12092 (dos_rawgetc): Store help_echo_window in the second event produced
12095 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
12096 Record the object that generated the help echo and the position of
12097 that object in help_echo_object and help_echo_pos. Record that
12098 some glyphs in a row are displayed in mouse-face.
12099 (IT_update_begin): Don't clear mouse highlight unless one of the
12100 enabled glyph rows is marked as being displayed in mouse-face.
12101 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
12102 and position recorded in help_echo_object and help_echo_pos to the
12104 (IT_menu_display): Accept a new argument PN: the pane number of
12105 the current menu pane. Record the pane number and the item
12106 number of the item which has associated help string.
12107 (XMenuActivate): Update the prototype for help_callback in
12108 function declaration. Call IT_menu_display with the current menu
12109 pane number as an additional argument. Call help_callback with
12110 two additional arguments: the pane number and the item number of
12111 the menu item associated with the help text.
12112 (help_echo_object, help_echo_pos): New variables.
12113 (syms_of_msdos): Initialize them and staticpro help_echo_object.
12115 * msdos.h (XMenuActivate): Update prototype.
12117 2000-07-19 Gerd Moellmann <gerd@gnu.org>
12119 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
12120 Add some more prototypes.
12122 * xterm.c, xterm.h: Add some more prototypes.
12124 * lisp.h (Fnext_single_char_property_change): Add prototype.
12126 * dispnew.c (direct_output_for_insert): Remove confusing
12127 outer local variable mouse_face_overwritten_p.
12128 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
12130 * alloc.c (allocate_string_data): Don't copy old string contents.
12132 2000-07-19 Kenichi Handa <handa@etl.go.jp>
12134 * coding.c (code_convert_region): Delete text properties before
12135 shrinking the conversion region.
12137 2000-07-18 Gerd Moellmann <gerd@gnu.org>
12139 * dispnew.c (update_text_area): Write the whole row if it
12140 has mouse-face in it.
12142 * xfaces.c (face-alternative-font-family-alist): Remove
12143 DEFVAR_LISP; staticpro instead.
12145 * xmenu.c (menu_help_callback): Call show_help_echo with
12148 * keyboard.c (show_help_echo): Add parameter WINDOW.
12149 (read_char): Call show_help_echo with window extracted from Lisp
12151 (gen_help_event): Add parameter WINDOW.
12153 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
12155 * xterm.c (help_echo_window): New variable.
12156 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
12157 (XTread_socket): Pass help_echo_window to gen_help_event.
12158 (syms_of_xterm): Initialize and staticpro help_echo_window.
12160 2000-07-18 Dave Love <fx@gnu.org>
12162 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
12164 2000-07-18 Gerd Moellmann <gerd@gnu.org>
12166 * alloc.c (allocate_string_data): If string had already data
12167 assigned, copy old contents to new string data.
12169 * coding.c (syms_of_coding): Fix typo in spelling of variable
12170 `inhibit-iso-escape-detection'.
12172 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
12174 * Makefile.in: Add dependencies on dispextern.h.
12175 (alloca.o): Don't define malloc and define EMACS_FREE instead of
12176 `free'; both can conflict with system header files.
12178 2000-07-18 Kenichi Handa <handa@etl.go.jp>
12180 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
12183 2000-07-18 Dave Love <fx@gnu.org>
12185 * window.c (Fwindow_list): Declare arg `window'.
12187 2000-07-18 Kenichi Handa <handa@etl.go.jp>
12189 * coding.c (setup_coding_system): Don't override the explicitly
12190 specified designations.
12192 2000-07-15 Miles Bader <miles@gnu.org>
12194 * editfns.c (char_property_eq, char_property_stickiness): Renamed
12195 from `text_property_eq' and `text_property_stickiness', respectively.
12196 (find_field, Fconstrain_to_field, char_property_eq)
12197 (char_property_stickiness): Changed to call char-property functions
12198 instead of text-property-only ones.
12200 * textprop.c (Fnext_single_char_property_change): Made a subr (was
12201 `next_single_char_property_change'). Do more error checking, and
12202 cleanup limit behavior.
12203 (Fprevious_single_char_property_change): New function.
12204 (syms_of_textprop): Initialize new subrs.
12206 * xdisp.c (display_prop_end, invisible_text_between_p):
12207 Call Fnext_single_char_property_change instead of
12208 next_single_char_property_change.
12210 2000-07-15 Jason Rumney <jasonr@gnu.org>
12212 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
12213 after menu is finished with.
12214 (add_menu_item): Only consider wv->title as a menu title.
12215 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
12217 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
12219 (FONT_REGEXP): Remove unused macro, and its sub-components.
12220 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
12222 * w32term.c (help_echo_object, help_echo_pos): New variables.
12223 (note_mode_line_highlight): Store additional information about the
12224 help-echo in help_echo_object and help_echo_pos. Check both
12225 `local-map' and `keymap' properties for changing the cursor
12226 (note_mouse_highlight): Store additional information about the
12227 help-echo in help_echo_object and help_echo_pos.
12228 (note_tool_bar_highlight): Set help_echo_object to nil and
12229 help_echo_pos to -1.
12230 (w32_read_socket): Use gen_help_event instead of filling
12231 input_events manually.
12232 (syms_of_w32term): Staticpro help_echo_object.
12233 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
12234 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
12235 (x_clear_mouse_face): New function.
12236 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
12237 (x_update_window_begin): No need to turn off the mouse
12239 (show_mouse_face): Set the mouse_face_p flag of glyph rows
12240 depending on whether they contain glyphs highlighted in mouse-face.
12241 (x_fill_stretch_glyph_string): Consume runs of stretch
12242 glyphs instead of a single one.
12243 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
12244 with new argument list.
12245 (x_set_glyph_string_gc): Make sure the face's GC is valid.
12246 (x_append_glyph, x_append_composite_glyph)
12247 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
12248 changes in struct glyph starting 1999-12-27. See comments for
12249 xterm.c on 2000-07-05.
12251 2000-07-14 Sam Steingold <sds@gnu.org>
12253 * xfaces.c (realize_x_face): Fix the last patch:
12254 check `default_face' before dereferencing.
12256 2000-07-14 Dave Love <fx@gnu.org>
12258 * syntax.c (back_comment): Add null default in switch (for pcc).
12260 2000-07-14 Kenichi Handa <handa@etl.go.jp>
12262 * xfaces.c (realize_x_face): Make fontset using the base of the
12263 default_face's fontset, not using the default fontset.
12265 * coding.c (inhibit_iso_escape_detection): New variable.
12266 (syms_of_coding): Make it a Lisp variable.
12267 (detect_coding_iso2022): If inhibit_iso_escape_detection is
12268 nonzero, ignore ISO2022's escape sequence.
12270 2000-07-14 Gerd Moellmann <gerd@gnu.org>
12272 * alloca.c (malloc) [emacs]: Define as xmalloc.
12274 * xfns.c (Fx_show_tip): If frame parameters contain a position,
12275 use that instead of the mouse position. Add parameters DX and DY.
12277 * dispextern.h (Fx_show_tip): Adjust number of parameters
12280 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
12281 if HELP is a function, call it with OBJECT and POS as parameters
12282 to get the help to display.
12283 (gen_help_event, kbd_buffer_store_help_event): New functions.
12284 (kbd_buffer_get_event): Construct the Lisp help-event differently.
12285 (read_char): Call show_help_echo with new parameters.
12287 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
12290 * xterm.c (help_echo_object, help_echo_pos): New variables.
12291 (note_mode_line_highlight): Store additional information about the
12292 help-echo in help_echo_object and help_echo_pos. Check both
12293 `local-map' and `keymap' properties for changing the cursor
12294 (note_mouse_highlight): Store additional information about the
12295 help-echo in help_echo_object and help_echo_pos.
12296 (note_tool_bar_highlight): Set help_echo_object to nil and
12297 help_echo_pos to -1.
12298 (XTread_socket): Use gen_help_event instead of filling
12299 input_events manually.
12300 (syms_of_xterm): Staticpro help_echo_object.
12302 * xmenu.c (menu_highlight_callback): Use
12303 kbd_buffer_store_help_event instead of setting up and input_event
12304 structure manually.
12306 * xdisp.c (eval_form): GCPRO argument sexpr.
12307 (call_function): New function.
12308 (handle_single_display_prop): Use call_function and FUNCTIONP
12309 instead of checking whether if font_height is a symbol and
12312 * eval.c (internal_condition_case_2): New function.
12314 * lisp.h (FUNCTIONP): New macro.
12315 (internal_condition_case_2, call_function): Add prototypes.
12317 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
12318 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
12319 Always set `arg' member of input_events.
12320 (construct_menu_click): Unused function removed.
12322 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
12324 * w32term.c (construct_mouse_click, construct_mouse_wheel)
12325 (construct_drag_n_drop, x_scroll_bar_handle_click)
12326 (w32_read_socket): Always set `arg' member of input_events.
12328 * keyboard.c (show_help_echo): Use eval_form. Add comment.
12330 * lisp.h (eval_form): Add prototype.
12332 * xdisp.c (eval_form): Make it externally visible.
12334 2000-07-13 Gerd Moellmann <gerd@gnu.org>
12336 * xterm.c (x_handle_tool_bar_click): Store the frame in the
12337 frame_or_window slot of TOOL_BAR_EVENT input events instead of
12338 consing. For prefix events, store the frame in the `arg' slot of
12339 the event, otherwise store the key there.
12340 (XTread_socket): Instead of consing, use the frame_or_window slot
12341 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
12343 * xmenu.c (menu_highlight_callback): Store help string in the
12344 `arg' member of the input event; don't cons.
12345 (menubar_selection_callback): Use the `arg' slot of input events
12346 to queue additional information, instead of consing.
12348 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
12350 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
12352 (w32_read_socket): Adapt to changes in HELP_EVENTs.
12354 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
12355 input events to queue additional information, instead of consing.
12357 * keyboard.c (kbd_buffer_gcpro): Renamed from
12358 kbd_buffer_frame_or_window. Now used for all Lisp objects
12359 referenced from the input queue.
12360 (kbd_buffer_store_event): Always use structure assignment for
12361 copying input events. Record all Lisp objects referenced from
12362 events in kbd_buffer_gcpro.
12363 (kbd_buffer_get_event): Construct Lisp `help-echo' events
12364 differently from input events. Test for prefix menu_bar_events
12365 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
12366 event in kbd_buffer_gcpro to nil.
12367 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
12368 frame_or_window is equal to its arg member as prefix events.
12369 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
12370 used by an input event to nil.
12371 (init_keyboard): Use two times the size of the input queue
12372 for kbd_buffer_gcpro.
12373 (syms_of_keyboard): Likewise.
12375 * emacs.c (handle_USR2_signal, handle_USR1_signal):
12376 Use USER_SIGNAL_EVENT.
12378 * termhooks.h (struct input_event): Add member `arg'.
12379 (MENU_BAR_EVENT): Renamed from menu_bar_event.
12380 (USER_SIGNAL_EVENT): Renamed from user_signal.
12382 * xfaces.c (ASET): Remove definition.
12384 * lisp.h (AREF, ASET, ASIZE): New macros.
12386 * fontset.c (AREF, ASIZE): Remove definitions.
12388 * fns.c (AREF): Remove definition.
12390 * composite.c (AREF): Remove definition.
12392 2000-07-12 Gerd Moellmann <gerd@gnu.org>
12394 * dispnew.c (redraw_overlapped_rows): Add missing local.
12395 (scrolling_window): Remove debug code.
12397 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
12398 Before scrolling, turn off a mouse-highlight in the window
12401 * xterm.c (x_update_window_end): Add parameter
12402 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
12403 redisplay in XTframe_up_to_date.
12404 (x_clear_mouse_face): New function.
12405 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
12407 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
12409 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
12410 it when any row is written to that contains glyphs highlighted in
12412 (update_window): Call the window update end hook with new
12413 parameter MOUSE_FACE_OVERWRITTEN_P.
12414 (direct_output_for_insert): Give up if row contains mouse-face.
12416 * dispextern.h (struct redisplay_interface): Add parameter
12417 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
12418 (clear_mouse_face): New function pointer member.
12420 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
12422 * syntax.c (back_comment): Use one switch rather than a few `if's.
12423 Obey open_paren_in_column_0_is_defun_start.
12424 When reverting to the `slow' method, try to nicely handle the case
12425 of nested comments by checking that the comment-starter we found
12426 does indeed match the comment-ender.
12427 (scan_sexps_forward, scan_sexps_forward):
12428 Ignore excessive opening parenthesis rather than throwing an error.
12430 2000-07-11 Gerd Moellmann <gerd@gnu.org>
12432 * doc.c (Fsubstitute_command_keys): Handle case that a GC
12433 in Fwhere_is_internal or get_keymap_1 relocates string contents.
12435 * dispnew.c (direct_output_forward_char): Give up if currently
12436 displaying a message instead of the minibuffer contents.
12438 * xterm.c (x_update_window_begin): No need to turn off the mouse
12440 (show_mouse_face): Set the mouse_face_p flag of glyph rows
12441 depending on whether they contain glyphs highlighted in mouse-face.
12443 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
12444 compare the mouse_face_p flags of both rows.
12446 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
12448 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
12450 * keyboard.c (show_help_echo): Accept additional parameter
12451 ok_to_overwrite_keystroke_echo.
12452 (read_char): Call show_help_echo with a zero
12453 ok_to_overwrite_keystroke_echo argument.
12454 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
12455 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
12456 ok_to_overwrite_keystroke_echo argument.
12457 * w32menu.c (w32_menu_display_help): Call show_help_echo with
12458 non-zero ok_to_overwrite_keystroke_echo argument.
12460 2000-07-10 Gerd Moellmann <gerd@gnu.org>
12462 * xdisp.c (try_window_id): If changes are all below what is
12463 displayed in the window, and point is in the window, we still
12464 might have to find point on the display.
12466 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
12467 glyphs instead of a single one.
12468 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
12469 with new argument list.
12470 (x_set_glyph_string_gc): Make sure the face's GC is valid.
12472 * keymap.c (get_keymap_1): Add comment that this function can GC.
12473 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
12474 comment that functions can GC.
12475 (Fset_keymap_parent): GCPRO arg KEYMAP.
12477 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
12479 * msdos.c (XMenuActivate): After exiting the menu, restore the
12480 echo area message and erase it.
12482 2000-07-10 Kenichi Handa <handa@etl.go.jp>
12484 * fontset.c (Ffontset_info): Make the return value more compatible
12485 with that of Emacs 20.
12487 2000-07-07 Gerd Moellmann <gerd@gnu.org>
12489 * eval.c (Fsignal): Handle case that backtrace_list is null.
12491 2000-07-07 Kenichi Handa <handa@etl.go.jp>
12493 * ccl.c (Fccl_execute): Typo fixed.
12495 2000-07-06 Gerd Moellmann <gerd@gnu.org>
12497 * window.c (window_loop): Add missing gcpro1 local variable.
12499 * window.c (Fwindow_list): Reverse list at the end.
12500 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
12501 means allow windows on OWINDOW's frame, only.
12502 (window_loop): Simplified; use Fwindow_list.
12504 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
12506 2000-07-05 Gerd Moellmann <gerd@gnu.org>
12508 * xterm.c (XTread_socket): Increment handling_signal at the start,
12509 decrement it at the end.
12511 * eval.c (handling_signal): New variable.
12512 (Fsignal): Abort if handling_signal is non-zero.
12514 * lisp.h (handling_signal): External declaration.
12516 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
12518 2000-07-05 Ken Raeburn <raeburn@gnu.org>
12520 Sound support for NetBSD through "Linux emulation" support:
12521 * config.in (HAVE_SOUNDCARD_H): Undef.
12522 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
12523 * Makefile.in (LIBSOUND): New variable.
12524 (LIBES): Include it.
12525 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
12526 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
12527 (vox_open): Use DEFAULT_SOUND_DEVICE.
12528 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
12530 2000-07-05 Gerd Moellmann <gerd@gnu.org>
12532 * print.c (print_error_message): If Vsignaling_function is set,
12533 show it in *Messages*.
12535 * lisp.h (Vsignaling_function): External declaration.
12537 * eval.c (Vsignaling_function): New variable.
12538 (Fsignal): Compute it.
12539 (syms_of_eval): Staticpro it.
12541 2000-07-05 Dave Love <fx@gnu.org>
12543 * syswait.h: Use the autoconf recommended approach. Old code
12544 #if'd out in case we need to revert.
12546 * config.in (HAVE_SYS_WAIT_H): Added.
12548 2000-07-05 Andrew Innes <andrewi@gnu.org>
12550 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
12551 when non-NULL instead of __morecore, to take account of buffer
12552 memory. This also solves a problem with spurious memory warnings
12555 * ralloc.c: Make real_morecore non-static.
12557 * eval.c (internal_condition_case): Comment out abort if
12558 interrupt_input_blocked is not zero.
12560 * makefile.nt: Add support for `bootstrap' and related targets.
12561 Include minimal debug info in emacs.exe in release build.
12562 Remove all dependencies on lisp.h, and fixup some others.
12564 * w32.c (init_environment): Install code from 20.7 for providing
12565 default values for environment variables, based on the
12566 executable's own location.
12567 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
12568 (sys_socket): Install socket inheritance bug fix from 20.7.
12570 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
12571 here via blockinput.h).
12573 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
12575 * w32menu.c (w32_menu_display_help):
12576 * xmenu.c (menu_help_callback): Use show_help_echo.
12578 * keyboard.h (show_help_echo): Declare.
12580 * keyboard.c (show_help_echo): New function, extracted from read_char.
12581 Feval its `msg' argument if it's a cons cell.
12582 (read_char): Use it.
12583 (follow_key): Pass `autoload' to get_keyelt.
12585 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
12586 (note_tool_bar_highlight, XTread_socket):
12587 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
12589 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
12590 (note_tool_bar_highlight, w32_read_socket):
12591 Do not gratuitously ignore non-string `help-echo' properties.
12593 2000-07-05 Gerd Moellmann <gerd@gnu.org>
12595 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
12597 * window.c (delete_all_subwindows): Reset Vwindow_list.
12599 * xterm.c (x_append_glyph, x_append_composite_glyph)
12600 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
12601 changes in struct glyph starting 1999-12-27. Some bit-fields of
12602 struct glyph were not set, which made glyphs unequal when compared
12603 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
12604 effects were the result. This also depended on the contents of
12605 memory returned by xmalloc. If flickering happens again, activate
12606 the code in clear_glyph_row that's in #if 0. If the flickering is
12607 gone with that, chances are that it is caused by something similar.
12609 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
12611 * dispextern.h: Add some comments.
12613 * window.c (add_window_to_list): Add parameter LIST.
12614 (window_list): Order list so that, for each frame, windows are
12615 in canonical order, and so that frames appear in the list in
12616 the order given by Vframe_list.
12617 (next_window): Reverse the handling of NEXT_P.
12619 2000-07-04 Gerd Moellmann <gerd@gnu.org>
12621 * window.c (Vwindow_list): New variable.
12622 (make_window, delete_window): Set Vwindow_list to nil.
12623 (check_window_containing): New function.
12624 (window_from_coordinates): Rewritten.
12625 (add_window_to_list, window_list, candidate_window_p)
12626 (decode_next_window_args, next_window): New functions.
12627 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
12628 (Fwindow_list): New function.
12629 (Fother_window): Cleaned up.
12630 (foreach_window): Add a longer "variable argument list". Let
12631 callback function return 0 to indicate that cycling over windows
12633 (foreach_window_1): Likewise.
12634 (freeze_window_start): Return int.
12635 (init_window): New function.
12636 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
12638 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
12639 input_event with bzero.
12640 (main): Call init_window.
12642 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
12645 2000-07-04 Kenichi Handa <handa@etl.go.jp>
12647 * composite.h (make_composition_value_copy): Extern it.
12649 * composite.c (make_composition_value_copy): New function.
12651 * editfns.c (Fformat): While copying text properties, make each
12652 composition property value a copy.
12654 * fns.c (concat): While copying text properties, make each
12655 composition property value a copy.
12657 2000-07-03 Gerd Moellmann <gerd@gnu.org>
12659 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
12661 * fns.c (sweep_weak_table): Mark only objects that are not
12664 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
12665 include those frames as candidates which have their focus
12666 redirected to the minibuffer frame.
12668 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
12670 * fns.c (Fputhash): Return `value' rather than nil.
12672 2000-06-30 Gerd Moellmann <gerd@gnu.org>
12674 * frame.c (next_frame): Don't check focus redirection in case
12675 MINIBUF is a window. Doing so excludes frames using MINIBUF
12676 unless their focus is redirected, which contradicts the
12677 specification of next-frame, and leads to infinite loops in
12678 certain situations when cycling through windows with next-window.
12680 2000-06-30 Kenichi Handa <handa@etl.go.jp>
12682 * coding.c (code_convert_region): Even if the length of text is
12683 zero, try to convert it if coding->type is coding_type_ccl.
12684 (decode_coding_string, encode_coding_string): Likewise.
12686 2000-06-28 Gerd Moellmann <gerd@gnu.org>
12688 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
12689 the display if windows_or_buffers_changed.
12691 * dispnew.c (struct row_entry): New structure.
12692 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
12693 (row_table_size, old_lines, new_lines, old_lines_size)
12694 (new_lines_size, run_pool, runs_size, runs): New variables.
12695 (add_row_entry): New function.
12696 (scrolling_window): Use data structures allocated with xmalloc and
12697 held in global variables, instead of allocating them with alloca and
12698 holding them in local variables. Use a larger hash table whose
12699 size depends on glyph matrix sizes. Don't use bzero to clear the
12700 hash table; instead, clear used slots only.
12702 * fns.c (next_almost_prime): Make it externally visible.
12704 * lisp.h (next_almost_prime): Add prototype.
12706 * s/isc4-0.h (sigunblock): Define.
12708 * s/sco5.h (sigunblock): Define.
12710 2000-06-27 Dave Love <fx@gnu.org>
12712 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
12713 (moved to osf5-0.h).
12714 [!NOT_C_CODE]: Protect string.h stuff.
12716 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
12717 (sys_siglist, NSIG): Definitions moved here from osf1.h.
12719 2000-06-27 Gerd Moellmann <gerd@gnu.org>
12721 * xdisp.c (resize_mini_window): Subtract the extra line spacing
12722 below the last line from the needed window height.
12724 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
12726 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
12727 (Fwidget_get): Use it.
12728 (syms_of_fns): Defsubr it.
12730 2000-06-26 Gerd Moellmann <gerd@gnu.org>
12732 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
12733 display info for XIM.
12734 (xim_open_dpy): Likewise.
12735 (xim_close_dpy): Don't free the display info's XIM.
12737 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
12739 * config.in (USE_XIM): New define.
12741 * keymap.c (get_keyelt): For menu-items containing a `:filter
12742 FILTER', apply FILTER to the menu-item's definition to get the
12743 real definition to use.
12745 * lisp.h (QCfilter): External declaration.
12747 * xfns.c (Fimage_size): New function.
12748 (syms_of_xfns): Defsubr it.
12750 2000-06-26 Andreas Schwab <schwab@suse.de>
12752 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
12753 Fstring_as_unibyte.
12755 2000-06-25 Dave Love <fx@gnu.org>
12757 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
12759 * Makefile.in (blockinput.h): Depend on atimer.h.
12760 (atimer.h): Depend on systime.h.
12762 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
12764 * atimer.h: Protect against multiple inclusion. Include systime.h.
12766 * lisp.h (swap_in_global_binding): Declare.
12768 2000-06-24 Ken Raeburn <raeburn@gnu.org>
12770 * process.c (Fopen_network_stream): Turn off atimers for duration
12771 of call to connect. (Patch from Gerd.)
12773 2000-06-23 Dave Love <fx@gnu.org>
12775 * ralloc.c: Maybe include unistd.h
12777 * emacs.c (setgrp): Undefine before defining.
12778 (malloc_warning, set_time_zone_rule, index): Prototype.
12780 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
12781 HAVE_STRUCT_TIMEZONE.
12783 * s/osf1.h: Move string.h hack here from alpha.h and make it
12785 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
12787 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
12788 (SOCKLEN_TYPE): Don't define.
12790 * m/alpha.h: Remove string.h hack.
12792 * s/osf5-0.h: New file.
12794 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
12795 include time.h, done by systime.h.
12796 [__FreeBSD__]: Remove redundant includes.
12798 * callproc.c (setpgrp): Undefine before defining.
12799 (delete_temp_file): Return Qnil to avoid warning.
12801 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
12803 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
12806 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
12808 * composite.h (compose_text): Declare.
12810 * xterm.c: Don't include sys/types.h unconditionally. Don't
12811 protect its inclusion with !USG (following xmenu.c).
12813 2000-06-23 Gerd Moellmann <gerd@gnu.org>
12815 * xfns.c (x_create_tip_frame): Initialize frame's colors like
12818 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
12820 * coding.c (decode_eol_post_ccl): Special handling for undecided
12821 and inconsistent EOL types.
12823 2000-06-22 Gerd Moellmann <gerd@gnu.org>
12825 * xrdb.c (x_load_resources): Add default resource for scroll bar's
12826 trough color and main window's background color.
12828 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
12830 * xterm.h (Xt_app_con): External declaration.
12832 * widget.c (EmacsFrameRealize): Fix typo.
12834 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
12836 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
12837 (handle_invisible_prop): Record the start of invisible text in
12838 it->add_overlay_start.
12839 (struct overlay_entry): Add member `overlay'.
12840 (handle_overlay_change): Simplify.
12841 (next_overlay_string): After having processed overlay strings at the
12842 end of the buffer, record that fact in
12843 it->overlay_strings_at_end_processed_p.
12844 (compare_overlay_entries): If before- and after-strings come
12845 from the same overlay, let before-strings come first.
12846 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
12847 (load_overlay_strings): Take it->add_overlay_start into account
12848 when adding overlay strings.
12850 * dispextern.h (struct it): Add member add_overlay_start.
12852 2000-06-22 Dave Love <fx@gnu.org>
12854 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
12856 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
12858 2000-06-22 Kenichi Handa <handa@etl.go.jp>
12860 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
12863 2000-06-21 Dave Love <fx@gnu.org>
12865 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
12867 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
12869 * syntax.c (back_comment): Simplify string-parity counting (with
12870 the added benefit of handling multiple string-styles as long as
12871 they are not intertwined).
12872 Jump to the slow code as soon as a comment starter is found in
12873 a "string_lossage" position. Fixes the case: " /* " /* " */.
12875 2000-06-21 Dave Love <fx@gnu.org>
12877 * Makefile.in: Use GETLOADAVG_LIBS.
12879 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
12880 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
12882 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
12884 * syntax.c (describe_syntax): Recognize the `n'estable bit.
12885 (Fforward_comment, scan_lists):
12886 Check the comstyle of single-char comment-starters.
12887 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
12888 we're just at the beginning of the comment (f.ex with (*) ... (*)).
12889 Check the comstyle of single-char comment-starters.
12890 Clarify control-flow around the Scomment case.
12892 2000-06-20 Dave Love <fx@gnu.org>
12894 * fns.c (make_hash_table, maybe_resize_hash_table):
12895 Cast arg of next_almost_prime.
12897 * tparam.c [emacs]: Include lisp.h.
12899 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
12902 2000-06-20 Gerd Moellmann <gerd@gnu.org>
12904 * keyboard.c (adjust_point_for_property): Check if display
12905 property should be treated as intangible by looking at its value.
12907 * xdisp.c (single_display_prop_intangible_p)
12908 (display_prop_intangible_p): New functions.
12910 * dispextern.h (display_prop_intangible_p): Add prototype.
12912 * xdisp.c (dump_glyph_row): Show type of glyph->object.
12914 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
12915 argument to sigprocmask.
12917 * s/sco5.h (sigblock): Redefined to pass a pointer as second
12918 argument to sigprocmask.
12920 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
12921 sigprocmask_set, and pass a pointer to it to sigprocmask.
12923 * sysdep.c (sigprocmask_set): New variable.
12925 * fileio.c (make_temp_name): Don't use `%s' in string passed to
12928 2000-06-20 Sam Steingold <sds@gnu.org>
12930 * xrdb.c: Don't declare xmalloc, xrealloc.
12932 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
12934 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
12935 (re_comp): Cast gettext return value to avoid complaints when
12938 2000-06-20 Dave Love <fx@gnu.org>
12940 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
12942 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
12944 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
12946 * m/alpha.h: Don't declare xmalloc, xrealloc.
12948 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
12950 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
12952 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
12954 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
12957 * keyboard.h (poll_for_input_1): Declare.
12959 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
12961 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
12963 * doprnt.c: Don't declare xmalloc, xrealloc.
12965 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
12966 (getenv, ctime, getwd): Removed.
12967 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
12969 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
12970 x_set_tool_bar_lines.
12972 * config.in: Add HAVE_GETWD. Move some definitions above
12973 machine/system includes.
12975 2000-06-20 Kenichi Handa <handa@etl.go.jp>
12977 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
12979 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
12980 contain information about ENCODING.
12982 * fontset.c (FONTSET_ASCII): Use the first element of char table
12983 for an ASCII font, not defalt slot.
12984 (fontset_ref_via_base): If FONTSET doesn't contain information for
12985 C, try the default fontset.
12986 (make_fontset): Don't copy the default fontset.
12987 (fontset_font_pattern): Likewise.
12988 (accumulate_font_info): If ELT is nil, use the corresponding
12989 element in the default fontset.
12991 2000-06-19 Dave Love <fx@gnu.org>
12993 * syntax.c (Fparse_partial_sexp): Doc fix.
12995 * regex.h: Test PROTOTYPES as well as __STDC__.
12997 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
12998 errno, strerror. Put text after #endif in comment.
13000 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
13002 * xterm.c (x_frame_of_widget): Likewise.
13004 2000-06-19 Gerd Moellmann <gerd@gnu.org>
13006 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
13007 to Vfundamental_mode_abbrev_table.
13009 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
13010 bogus objects are marked. This slows down GC by ~80 percent, but
13011 it might be worth trying when debugging GC-related problems.
13012 This feature requires conservative stack marking to be enabled.
13014 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
13015 returns XLookupChars, reset `modifiers' to zero.
13017 2000-06-19 Dave Love <fx@gnu.org>
13019 * mktime.c: Unprotoized.
13021 2000-06-19 Richard Stallman <rms@gnu.org>
13023 * data.c (set_internal): If variable is frame-local,
13024 store the new value immediately into the frame parameter alist.
13026 2000-06-19 Ken Raeburn <raeburn@gnu.org>
13028 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
13029 in the custom handler pointer.
13031 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
13032 value, or checks for CHAR_META can fail when Lisp_Object is a
13034 * keymap.c (get_keyelt): Likewise.
13036 2000-06-19 Kenichi Handa <handa@etl.go.jp>
13038 * ccl.h (struct ccl_program): New member eol_type.
13039 (struct ccl_spec): New member cr_carryover.
13041 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
13042 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
13044 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
13045 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
13046 (decode_eol_post_ccl): New function.
13047 (decode_coding): Don't detect EOL format here for CCL based coding
13049 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
13050 decode_eol_post_ccl after running the CCL program.
13051 (code_convert_region): Don't detect EOL format here for CCL based
13053 (decode_coding_string): Likewise.
13055 2000-06-18 Ken Raeburn <raeburn@gnu.org>
13057 * charset.c (update_charset_table): Use XINT on "iso_final_char"
13058 when treating it as an integer.
13060 * coding.h (encode_coding_string): Declare.
13062 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
13065 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
13066 "xkeymap" to avoid shadowing the "enum map_type" value that needs
13067 to be passed to get_local_map.
13069 * sound.c (Fplay_sound): Don't call make_number on
13070 Frun_hook_with_args count argument.
13072 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
13073 for lisp objects in X event structure data field, when lisp
13074 objects are represented with unions.
13075 (x_scroll_bar_to_input_event): Ditto.
13077 2000-06-16 Ken Raeburn <raeburn@gnu.org>
13079 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
13080 termination of string. Fix sense of test whether
13081 Vline_number_display_limit is an integer.
13083 2000-06-16 Gerd Moellmann <gerd@gnu.org>
13085 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
13086 only if HAVE_X_WINDOWS.
13088 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
13091 * dispnew.c (update_frame_1): Handle case that cursor vpos is
13094 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
13096 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
13099 2000-06-15 Kenichi Handa <handa@etl.go.jp>
13101 * coding.c (decode_coding_emacs_mule): Always set src_base at the
13102 start of the while loop.
13104 2000-06-15 Gerd Moellmann <gerd@gnu.org>
13106 * atimer.c (alarm_signal_handler): Add forward declaration.
13108 * data.c (set_internal): Remove debug code.
13110 2000-06-14 Gerd Moellmann <gerd@gnu.org>
13112 * Makefile.in (bootstrap-temacs): Add `-I../src'.
13114 * unexec.c (toplevel) [COFF]: Include coff.h.
13116 * s/lynxos.h: New file.
13118 * keymap.c (Fsingle_key_description): Enclose function key and
13119 event symbol names in angle brackets.
13121 * xdisp.c (setup_echo_area_for_printing): Call
13122 message_log_maybe_newline if message_buf_print is not set.
13124 * print.c (printchar, strout): Don't check message_buf_print
13125 before calling setup_echo_area_for_printing because that
13126 function does something useful even when message_buf_print is
13129 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
13131 (ensure_echo_area_buffers): Initialize echo buffer's
13132 truncate lines setting to nil.
13133 (with_echo_area_buffer): Don't set the echo buffer's truncate
13134 lines setting here.
13135 (set_message_1): Set it here instead, based on the value
13136 of message_truncate_lines.
13137 (resize_mini_window): Handle case that lines are truncated.
13138 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
13139 DEFVAR_BOOL message-truncate-lines.
13141 * keyboard.c (read_char): Bind message-truncate-lines to t
13142 while displaying a help-echo.
13144 * lisp.h (Qmessage_truncate_lines): External declaration.
13146 2000-06-13 Gerd Moellmann <gerd@gnu.org>
13148 * xdisp.c (Vline_number_display_limit): Renamed from
13149 line_number_display_limit.
13150 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
13151 Extend documentation string. Initialize
13152 Vline_number_display_limit to nil meaning no limit.
13153 (decode_mode_spec): Use Vline_number_display_limit with its new
13156 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
13158 2000-06-13 Richard Stallman <rms@gnu.org>
13160 * frame.c (Fmodify_frame_parameters): Doc fix.
13162 * xfns.c (x_set_frame_parameters): Comment fix.
13164 * frame.c (store_frame_param): Call swap_in_global_binding if the
13165 variable's current binding was chosen based on this frame.
13167 * data.c (swap_in_global_binding): New function.
13169 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
13171 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
13172 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
13174 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
13176 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
13178 2000-06-12 Jason Rumney <jasonr@gnu.org>
13180 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
13182 * w32.h (EMACS_W32_H): Renamed from _NT_H_
13184 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
13186 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
13188 2000-06-12 Gerd Moellmann <gerd@gnu.org>
13190 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
13191 (syms_of_xfaces): Defsubr Sdump_colors.
13192 (x_free_colors): Don't treat b&w specially on default visual.
13193 (x_free_dpy_colors): New function.
13194 (free_face_colors): Don't check visual class; it's done
13197 * xterm.c (x_frame_of_widget): New function.
13198 (x_alloc_nearest_color_for_widget): Use it.
13199 (x_copy_dpy_color): New function.
13200 (x_destroy_window): Free various colors.
13202 2000-06-12 Kenichi Handa <handa@etl.go.jp>
13204 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
13206 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
13208 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
13210 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
13212 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
13214 2000-06-11 Dave Love <fx@gnu.org>
13216 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
13218 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
13220 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
13222 2000-06-11 Gerd Moellmann <gerd@gnu.org>
13224 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
13227 2000-06-10 Kenichi Handa <handa@etl.go.jp>
13229 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
13230 (regex_compile): Fix the code for handling the case of single byte
13231 char and multibyte char being mixed in a range within [...].
13233 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
13234 and dst_multibyte members of coding.
13236 * charset.c (update_charset_table): Update the table
13237 bytes_by_char_head.
13238 (init_charset_once): Initialize elements of bytes_by_char_head to
13239 1 except for leading codes for private charases.
13241 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
13242 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
13244 2000-06-09 Ken Raeburn <raeburn@gnu.org>
13246 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
13247 access the data it doesn't point to.
13249 2000-06-08 Gerd Moellmann <gerd@gnu.org>
13251 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
13252 will be translated to a switch-frame event when reading the
13253 event queue. This is necessary because Emacs otherwise won't
13254 perform a switch-frame to a new frame until some other event, for
13255 example a keystroke event, forces it to do so. This has various
13256 effects, one visible being that the cursor of a frame created with
13257 C-x 5 2 or switched to with a window manager key binding like
13258 A-TAB stays hollow because selected_window isn't on the newly
13259 focused frame until the switch-frame is performed.
13261 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
13262 generating a switch-frame event if necessary.
13264 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
13266 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
13269 2000-06-08 Kenichi Handa <handa@etl.go.jp>
13271 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
13273 2000-06-07 Gerd Moellmann <gerd@gnu.org>
13275 * window.c (displayed_window_lines): Take empty lines at
13276 the bottom of a window into account.
13278 * window.c (displayed_window_lines): New function.
13279 (Fmove_to_window_line): Use displayed_window_lines to determine
13280 the number of lines to move, instead of using the window's height.
13282 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
13283 to stop reading, even if the form read sets point to a different
13284 value when evaluated.
13286 * xdisp.c (display_line): Fix code deciding in which line to
13289 2000-06-07 Kenichi Handa <handa@etl.go.jp>
13291 * fileio.c (e_write): Free composition data if stored in
13294 2000-06-06 Gerd Moellmann <gerd@gnu.org>
13296 * xdisp.c (display_line): Set row's and iterator's
13297 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
13298 Set cursor even if row ends in the middle of a character.
13299 (dump_glyph_row): Print values of new flags.
13300 (redisplay_window) <cursor movement in unchanged window>: When
13301 point has been moved forward, and PT is at the end of the cursor
13302 row, don't place the cursor in the next row if the cursor row ends
13303 in the middle of a character or at ZV.
13305 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
13306 (struct glyph_row): Add starts_in_middle_of_char_p and
13307 ends_in_middle_of_char_p.
13308 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
13309 ends_in_middle_of_char_p flag.
13310 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
13312 * term.c (append_glyph): Revert change of 2000-06-06.
13314 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
13315 padding glyph not fitting on line as whole character not
13318 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
13319 this isn't true for images with `:ascent 100'.
13321 2000-06-06 Kenichi Handa <handa@etl.go.jp>
13323 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
13324 as modified if it is originally unmodified.
13326 * term.c (encode_terminal_code): Change the way to check if
13327 terminal coding does any conversion.
13328 (append_glyph): Set glyph->pixel_width correctly.
13330 * xdisp.c (display_line): While checking line continuation, pay
13331 attention to a padding glyph.
13333 2000-06-05 Gerd Moellmann <gerd@gnu.org>
13335 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
13337 2000-06-05 Dave Love <fx@gnu.org>
13339 * xdisp.c: Include fontset.h.
13341 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
13343 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
13345 * dispnew.c: Conditionally include term.h.
13347 * coding.h: Declare code_convert_string_norecord.
13349 * frame.h (struct frame): Use volatile unconditionally.
13351 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
13353 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
13355 * systime.h: Protect against multiple inclusion.
13356 (timezone) [USG5_4]: Define as time_t.
13358 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
13359 (Foptimize_char_table, make_temp_name): Declare.
13361 * Makefile.in (xdisp.o): Depend on fontset.h.
13363 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
13365 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
13366 (Foptimize_char_table, make_temp_name): Declare.
13370 * s/netbsd.h: Don't define autoconfiscated MATHERR.
13372 2000-06-02 Dave Love <fx@gnu.org>
13374 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
13376 2000-06-02 Gerd Moellmann <gerd@gnu.org>
13378 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
13379 result face, set flags in that face indicating that colors may not
13382 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
13383 glyph, use the ASCII NUL character to determine the face.
13385 2000-06-02 Dave Love <fx@gnu.org>
13387 * sysdep.c: Conditionally include stdlib.h, unistd.h.
13388 (VFORK_RETURN_TYPE): Remove.
13390 * config.in: Add NO_MATHERR.
13392 2000-06-01 Dave Love <fx@gnu.org>
13394 * cmds.c (internal_self_insert): Don't check
13395 Vbefore_change_function, Vafter_change_function.
13397 * insdel.c (signal_before_change, signal_after_change): Likewise.
13399 * buffer.c (Vbefore_change_function, Vafter_change_function):
13400 Variables and their initializations deleted.
13402 * callint.c (Fcall_interactively): Doc fix.
13404 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
13406 2000-05-31 Dave Love <fx@gnu.org>
13408 * textprop.c: Revert last change -- duplicated.
13410 2000-05-31 Gerd Moellmann <gerd@gnu.org>
13412 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
13415 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
13417 2000-05-31 Jason Rumney <jasonr@gnu.org>
13419 * search.c (Fre_search_forward, Fre_search_backward)
13420 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
13422 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
13424 2000-05-30 Jason Rumney <jasonr@gnu.org>
13426 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
13427 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
13429 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
13431 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
13432 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
13433 expand a nil default_filename.
13435 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
13436 pointer to glyph_to_pixel_coords, not a frame.
13438 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
13439 coding.h to dependencies.
13441 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
13443 * w32console.c (glyph_to_pixel_coords): Change first parameter to
13444 window pointer to be consistent with w32term.c and xterm.c.
13446 * w32fns.c: Format and doc changes to bring closer to xfns.c.
13447 (VIETNAMESE_CHARSET): Define if not defined in system headers.
13448 (Qline_spacing, Qcenter): New variables.
13449 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
13450 (x_set_line_spacing): New function.
13451 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
13452 (x_specified_cursor_type): New function.
13453 (x_set_cursor_type): Use it.
13454 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
13456 (validate_x_resource_name, x_get_resource_string): Measure lengths
13457 of external strings in bytes.
13458 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
13459 GetTextExtentPoint32 with NULL title.
13460 (Fx_create_frame): Initialize Qline_spacing.
13461 (w32_load_system_font): Initialize font->double_byte_p.
13462 (x_to_w32_charset): Use Vw32_charset_info_alist.
13463 (Image, busy cursor, tooltip functions): Merged changes from
13464 xfns.c. Not yet functional on Windows.
13466 * w32gui.h (W32FontStruct): Add double_byte_p member.
13468 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
13469 (emacs_button_translation): Use it.
13470 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
13471 in `mask' to be set.
13473 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
13476 * w32term.c: Format and doc changes to bring closer to xterm.c.
13477 (w32_char_font_type): New enum.
13478 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
13479 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
13480 (w32_encode_char): New function.
13481 (x_encode_char): Removed.
13482 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
13483 x_encode_char and w32_font_is_double_byte.
13484 (x_produce_image_glyph): Use image_ascent.
13485 (x_produce_glyphs): Use new version of w32_per_char_metric and
13486 handle NULL return value. Allow extra line spacing.
13487 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
13488 (w32_get_glyph_overhangs): Remove unicode_p param. Use
13489 w32_font_type member of glyph instead.
13490 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
13491 (fast_find_position): Make sure not to consider rows not visible
13493 (w32_read_socket) [WM_MENUSELECT]: Cannot call
13494 w32_menu_display_help with input blocked, as it can abort.
13495 (x_display_and_set_cursor): Choose cursor depending
13496 on buffer-local value of cursor_type.
13497 (x_draw_bar_cursor): Add parameter WIDTH.
13499 * w32term.h (CP_DEFAULT): Define.
13500 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
13502 2000-05-30 Gerd Moellmann <gerd@gnu.org>
13504 * search.c (Fre_search_forward, Fre_search_backward)
13505 (Fposix_search_backward, Fposix_search_forward): Doc fix.
13507 2000-05-30 Kenichi Handa <handa@etl.go.jp>
13509 * coding.c (detect_coding_iso2022): Fix code for checking
13510 CODING_CATEGORY_MASK_ISO_8_2.
13512 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
13514 * regex.c (PREFETCH_NOLIMIT): New function.
13515 (re_match_2_internal): Use it and adjust the end_match_2 logic.
13517 2000-05-29 Gerd Moellmann <gerd@gnu.org>
13519 * syntax.c (find_defun_start): Move test for
13520 open_paren_in_column_0_is_defun_start outside of the loop.
13522 * xdisp.c (redisplay_window): Really switch buffers when
13523 displaying mode lines, and temporarily set selected_frame to the
13524 frame of the window that's redisplayed.
13526 * xfaces.c (free_realized_faces): Block/unblock input.
13527 (free_realized_multibyte_face): Ditto.
13529 2000-05-29 Dave Love <fx@gnu.org>
13531 * textprop.c (Qkeymap): New variable.
13532 (syms_of_textprop): Intern it.
13534 * keymap.c: Include intervals.h.
13535 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
13537 * Makefile.in (keymap.o): Depend on intervals.h.
13539 * keyboard.c (menu_bar_items, tool_bar_items)
13540 (Fexecute_extended_command): Deal with `keymap' property.
13541 (read_key_sequence): Track map from `keymap' property as well as
13544 * intervals.c (get_local_map): Extra arg to allow looking for
13547 * intervals.h (map_property): New enum.
13548 (get_local_map): Extra arg using it.
13549 (Qkeymap): Declare.
13551 * lisp.h (get_local_map): Don't declare here.
13553 2000-05-29 Kenichi Handa <handa@etl.go.jp>
13555 * Makefile.in (callproc.o): Depend on composite.h.
13557 * callproc.c: Include composite.h.
13558 (Fcall_process): Handle composition correctly.
13560 * coding.h (coding_allocate_composition_data): Extern it.
13561 (coding_restore_composition): Likewise.
13563 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
13564 yet allocated, finish decoding with result
13565 CODING_FINISH_INSUFFICIENT_CMP.
13566 (coding_allocate_composition_data): Make it non-static.
13567 (coding_restore_composition): Likewise.
13569 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
13571 * charset.c (syms_of_charset): Revert last change.
13573 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
13575 * term.c (produce_glyphs): Treat characters from the eight-bit-*
13576 charsets as unibyte, with 1-column screen width. Sent by Kenichi
13579 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
13581 * charset.c (syms_of_charset): Set width of character sets
13582 eight-bit-control and eight-bit-graphic to 1 column.
13584 2000-05-26 Gerd Moellmann <gerd@gnu.org>
13586 * config.in (HAVE_SPEED_T): New define.
13588 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
13591 2000-05-26 Dave Love <fx@gnu.org>
13593 * coding.c (shrink_decoding_region): Initialize eol_conversion.
13595 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
13596 (Fsubr_arity): New function.
13597 (syms_of_data): Install them.
13599 2000-05-26 Kenichi Handa <handa@etl.go.jp>
13601 * charset.c (init_charset_once): Set the table bytes_by_char_head
13604 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
13605 the default fontset to what Emacs uses by default.
13606 (check_registry_encoding): This function deleted.
13607 (Fset_fontset_font): Remove the adhoc condition for the default
13608 fontset. Allow cons in FONTNAME.
13610 * fns.c (map_char_table): Ignore char-table entries for
13611 charsets eight-bit-control and eight-bit-graphic.
13613 2000-05-25 Ken Raeburn <raeburn@gnu.org>
13615 * emacs.c (main): Initialize keyboard syms before initializing
13616 window code, so face names are available.
13618 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
13620 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
13621 of an anchor at the beginning of a shy-group.
13623 2000-05-25 Gerd Moellmann <gerd@gnu.org>
13625 * xdisp.c (handle_invisible_prop): Don't try to skip over
13626 invisible text if end of text is already reached.
13628 2000-05-25 Dave Love <fx@gnu.org>
13630 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
13632 * coding.c (encode_eol): Add null statement after label.
13634 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
13636 * w16select.c (Fw16_set_clipboard_data): Fix the change from
13639 2000-05-25 Kenichi Handa <handa@etl.go.jp>
13641 * ccl.c (ccl_driver): Fix previous change.
13643 2000-05-25 Kenichi Handa <handa@etl.go.jp>
13645 * coding.c (run_pre_post_conversion_on_str): Set point to the
13646 beginning of buffer before calling coding->post_read_conversion.
13647 (decode_coding_string): Give correct args to
13648 run_pre_post_conversion_on_str.
13649 (encode_coding_string): Likewise.
13651 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
13652 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
13653 eight-bit-graphic correctly.
13655 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
13657 * fileio.c (Finsert_file_contents): Even if a file is not found,
13658 execute codes for setting up coding system. Call
13659 after-insert-file-functions unconditionally.
13661 2000-05-24 Gerd Moellmann <gerd@gnu.org>
13663 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
13664 BSD_PGRPS are not defined.
13666 2000-05-24 Kenichi Handa <handa@etl.go.jp>
13668 * charset.c (update_charset_table): Accept nil in LONG_NAME and
13670 (syms_of_charset): Avoid building same strings.
13672 2000-05-23 Gerd Moellmann <gerd@gnu.org>
13674 * lread.c (Fload): Add a comment about the meaning of
13675 Vuser_init_file being t.
13677 * puresize.h (BASE_PURESIZE): Increase to 675000.
13679 * s/gnu-linux.h (setpgrp): Don't define it here because this
13680 prevents compilation on GNU/Linux systems with glib 2.2.
13682 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
13685 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
13687 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
13688 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
13690 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
13692 2000-05-23 Kenichi Handa <handa@etl.go.jp>
13694 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13696 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
13698 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
13700 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
13702 2000-05-22 Kenichi Handa <handa@etl.go.jp>
13704 * keyboard.c (read_char): Allow character codes 128..255 to be
13705 handled by input-method-function.
13707 * insdel.c (adjust_markers_for_replace): Fix previous change.
13708 (adjust_after_replace): If PREV_TEXT is nil, call
13709 adjust_markers_for_insert, not adjust_markers_for_replace.
13711 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
13713 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
13714 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
13715 [HAVE_GRANDPT]: Define.
13716 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
13718 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
13721 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
13723 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
13725 2000-05-20 Kenichi Handa <handa@etl.go.jp>
13727 The following changes are to handle 8-bit characters in a
13728 multibyte buffer/string without facing with byte combining
13729 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
13730 eight-bit-graphic (for 0xA0..0xFF) are introduced.
13732 * Makefile.in (fns.o): Depend on charset.h.
13734 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
13735 convert it to unibyte.
13736 (make_string): Use parse_str_as_multibyte, not chars_in_text.
13738 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
13739 apparent char boundary.
13740 (Fset_buffer_multibyte): Convert 8-bit characters in the range
13741 0x80..0x9F to/from multibyte form.
13743 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
13746 * callproc.c (Fcall_process): Always encode an argument string if
13747 it is multibyte. Setup src_multibyte and dst_multibyte members of
13748 process_coding properly.
13750 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
13751 SPLIT_NON_ASCII_CHAR.
13753 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
13755 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
13757 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
13758 (SPLIT_CHARACTER_SEQ): This macro deleted.
13759 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
13760 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
13761 and eight-bit-graphic.
13762 (char_to_string): Likewise. Signal an error for too large
13764 (char_printable_p): Return 0 for 8-bit characters.
13765 (update_charset_table): Update iso_charset_table only when a final
13766 character is non-negative.
13767 (find_charset_in_text): Renamed from find_charset_in_str.
13768 Arguments and return value changed. Callers changed.
13769 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
13770 be -1 if CHARSET is used only internally.
13771 (Fmake_char_internal): Handle new charsets; eight-bit-control and
13773 (Fcharset_after): Simplified.
13774 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
13775 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
13776 (multibyte_chars_in_text): Simplified by assuming there's no
13777 invalid multibyte sequence.
13778 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13779 (str_as_unibyte): New functions.
13780 (Fstring): Simpified by assuming that byte combining never happens.
13781 (init_charset_once): Initialization for
13782 LEADING_CODE_8_BIT_CONTROL.
13783 (syms_of_charset): Intern and staticpro Qeight_bit_control and
13784 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
13785 eight-bit-control and eight-bit-graphic.
13787 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
13788 (CHARSET_8_BIT_GRAPHIC): New macros.
13789 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
13790 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
13791 (CHARSET_REVERSE_CHARSET): Likewise.
13792 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
13794 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
13795 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
13796 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
13797 encounter an invalid multibyte sequence.
13798 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
13799 sequence is always valid.
13800 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
13801 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
13802 (CHAR_STRING): For 8-bit characters, call char_to_string.
13803 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
13804 multibyte sequence is always valid.
13805 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
13806 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13807 (str_as_unibyte): Extern them.
13808 (BCOPY_SHORT): Fix a bug.
13809 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
13810 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
13811 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
13812 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
13814 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
13815 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
13816 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
13817 (EMIT_BYTES): New macros.
13818 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
13819 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
13821 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
13822 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
13823 check the validity of multibyte sequence.
13824 (decode_coding_emacs_mule): New function.
13825 (encode_coding_emacs_mule): New macro.
13826 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
13828 (DECODE_ISO_CHARACTER): Just return a character code.
13829 (DECODE_COMPOSITION_START): Set coding->result instead of result.
13830 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
13831 EMIT_CHAR to produced decoded characters. Exit the loop only by
13832 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
13834 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
13835 only position codes for an invalid character.
13836 (encode_designation_at_bol): Return new destination pointer. 5th
13837 arg DSTP is changed to DST.
13838 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
13839 from the source by ONE_MORE_CHAR. Don't handle the case of last
13841 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
13843 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
13844 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
13845 TWO_MORE_BYTES to fetch a byte from the source.
13846 (encode_eol): Pay attention to coding->src_multibyte.
13847 (detect_coding, detect_eol): Preserve members src_multibyte and
13849 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
13850 (encoding_buffer_size): Set magnification to 3 for all coding
13851 systems that require encoding.
13852 (ccl_coding_driver): For decoding, be sure that the result is
13853 valid multibyte sequence.
13854 (decode_coding): Initialize coding->errors and coding->result.
13855 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
13856 and raw-text, always call decode_eol. Handle the case of last
13857 block here. If not coding->dst_multibyte, convert the resulting
13858 sequence to unibyte.
13859 (encode_coding): Initialize coding->errors and coding->result.
13860 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
13861 and raw-text, always call encode_eol. Handle the case of last
13863 (shrink_decoding_region, shrink_encoding_region): Detect cases
13864 that we can't skip data more rigidly.
13865 (code_convert_region): Setup src_multibyte and dst_multibyte
13866 members of coding. For decoding, if the buffer is multibyte,
13867 convert the source sequence to unibyte in advance. For encoding,
13868 if the buffer is multibyte, convert the resulting sequence to
13869 multibyte afterward.
13870 (run_pre_post_conversion_on_str): New function.
13871 (code_convert_string): Deleted and divided into the following two.
13872 (decode_coding_string, encode_coding_string): New functions.
13873 (code_convert_string1, code_convert_string_norecord): Call one of
13875 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
13876 MAKE_NON_ASCII_CHAR.
13877 (Fset_terminal_coding_system_internal)
13878 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
13879 and dst_multibyte members.
13880 (init_coding_once): Initialize iso_code_class with new enum
13881 ISO_control_0 and ISO_control_1.
13883 * coding.h (enum iso_code_class_type): Member ISO_control_code is
13884 devided into ISO_control_0 and ISO_control_1.
13885 (struct coding_system): New members src_multibyte, dst_multibyte,
13886 errors, and result. Delete member fake_multibyte.
13887 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
13889 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
13892 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13895 * editfns.c (Fformat): Be sure to convert 8-bit characters to
13897 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
13899 (Ftranspose_region): Delete codes for handling byte combining.
13901 * fileio.c (Finsert_file_contents): Setup src_multibyte and
13902 dst_multibyte members of coding. On handling REPLACE on unibyte
13903 buffer, convert the result of decode_coding to unibyte. On
13904 inserting into a mutibyte buffer, always call code_convert_region.
13905 (e_write): Setup coding->src_multibyte according to the
13906 multibyteness of the source (buffer or string).
13908 * fns.c (concat): Handle 8-bit characters correctly.
13909 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
13910 unibyte in the result.
13911 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
13912 valid multibyte form in the result.
13913 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13914 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
13915 return -1, signal an error.
13916 (base64_encode_1): New arg MULTIBYTE. Get each character by
13917 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
13918 character is found, return -1.
13919 (Fbase64_decode_region): Delete codes for handling byte-combining.
13920 Treat each decoded byte as a unibyte character.
13921 (Fbase64_decode_string): Return unibyte string.
13922 (Fcompare_strings, concat, string_byte_to_char): Use
13923 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
13924 FETCH_STRING_CHAR_ADVANCE.
13925 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13926 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
13928 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
13929 SPLIT_NON_ASCII_CHAR.
13930 (fontset_ref_via_base, fontset_set): Likewise
13932 * insdel.c (adjust_markers_for_record_delete): Deleted.
13933 (adjust_markers_for_insert): Argument changed. Caller changed.
13934 (adjust_markers_for_replace): Likewise.
13935 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
13936 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
13937 (copy_text): Delete unused local varialbe c_save. For converting
13938 to multibyte, be sure to make all 8-bit characters in valid
13940 (count_size_as_multibyte): Handle 8-bit characters correctly.
13941 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13942 (adjust_after_replace, replace_range, del_range_2)
13943 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
13944 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13945 (adjust_after_replace, replace_range, del_range_2) Delete codes for
13946 handling byte combining.
13947 (adjust_before_replace): Deleted.
13949 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
13950 SPLIT_NON_ASCII_CHAR.
13951 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13952 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13953 (Fkey_description): Likewise.
13955 * lread.c (read1): On reading multibyte string, be sure to make
13956 all 8-bit chararacters in valid multibyte form.
13957 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13959 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
13962 * process.c (Fstart_process): GCPRO current_dir before calling
13963 Ffind_operation_coding_system. Encode arguments here.
13964 (create_process): Don't encode arguments here. Setup
13965 src_multibyte and dst_multibyte members of struct coding.
13966 (read_process_output): Setup src_multibyte and dst_multibyte
13967 members of struct coding. If the output is to multibyte buffer,
13968 always decode the output of the process. Adjust the
13969 representation of 8-bit characters to the multibyteness of the output.
13970 (send_process): Setup coding->src_multibyte according to the
13971 multibyteness of the source.
13973 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13974 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
13975 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
13977 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
13979 * w16select.c (Fw16_set_clipboard_data): Setup members
13980 src_multibyte and dst_multibyte of coding. Adjusted for the
13981 change for find_charset_in_str.
13982 (Fw16_get_clipboard_data): Likewise.
13984 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
13985 dst_multibyte of coding.
13986 (x_to_w32_font): Likewise.
13988 * w32select.c (Fw32_set_clipboard_data): Setup members
13989 src_multibyte and dst_multibyte of coding. Adjusted for the
13990 change for find_charset_in_str.
13991 (Fw32_get_clipboard_data): Likewise.
13993 * xdisp.c (get_next_display_element): Handle 8-bit characters
13995 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
13996 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13998 * xselect.c (selection_data_to_lisp_data): Setup members
13999 src_multibyte and dst_multibyte of coding. Adjusted for the
14000 change for find_charset_in_str.
14001 (lisp_data_to_selection_data): Likewise.
14003 2000-05-19 Gerd Moellmann <gerd@gnu.org>
14005 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
14007 * dispextern.h (Vimage_types): Add extern declaration.
14009 * xdisp.c (Vimage_types): Moved here from xfns.c.
14010 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
14012 * xfns.c (Vimages_types): Moved to xdisp.c.
14013 (syms_of_xfns): Move `image-types' to xdisp.c.
14015 * w32fns.c (Vimage_types): Removed.
14016 (syms_of_w32fns): Remove `image-types'.
14018 2000-05-18 Kenichi Handa <handa@etl.go.jp>
14020 * fns.c (map_char_table): Pay attention to character number of
14021 charset. Check the validity of charset at the first level. For
14022 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
14025 * fontset.c: Include "buffer.h".
14026 (fs_load_font): If the face has fontset, record the face ID in
14028 (Finternal_char_font): New function.
14029 (accumulate_font_info): New function.
14030 (Ffontset_info): Rewritten for the new fontset implementation.
14031 (syms_of_fontset): Register Vdefault_fontset in the first element
14032 of Vfontset_table. Include Vdefault_fontset in
14033 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
14036 2000-05-16 Dave Love <fx@gnu.org>
14038 * m/iris5d.h: Deleted -- unused.
14040 2000-05-16 Gerd Moellmann <gerd@gnu.org>
14042 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
14043 `invalid' instead of `illegal'.
14045 * indent.c (Fmove_to_column): When ending within a tab, insert
14046 spaces first so that markers at the end of the tab get adjusted.
14048 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
14049 buffer list that wasn't selected in that frame.
14051 * filelock.c (get_boot_time): To obtain an 8 char file name, which
14052 is needed on mescaline, use a 2 char prefix, and call
14053 make_temp_name with second arg non-zero.
14055 * fileio.c (make_temp_name): New function, extracted from
14057 (Fmake_temp_name): Use it.
14059 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
14061 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
14063 2000-05-15 Gerd Moellmann <gerd@gnu.org>
14065 * Makefile.in (lisp): Add env.elc.
14067 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
14069 2000-05-12 Gerd Moellmann <gerd@gnu.org>
14071 * search.c (Freplace_match): Handle case of `\N' in the
14072 replacement when there's no group N.
14074 2000-05-11 Gerd Moellmann <gerd@gnu.org>
14076 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
14077 of the message to message_dolog.
14079 * keyboard.c (read_char): Don't clear current message for help
14080 events; let the code handling help events handle this. Change
14081 code detecting help events that should be ignored.
14083 * xdisp.c (handle_single_display_prop): Don't try to set PT if
14084 we're interating over a string.
14086 2000-05-09 Dave Love <fx@gnu.org>
14088 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
14089 that offset before writing. Move gcpro region past call of
14092 2000-05-04 Dave Love <fx@gnu.org>
14094 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
14096 2000-05-04 Gerd Moellmann <gerd@gnu.org>
14098 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
14099 of inserted characters when BUF equals the current buffer, and PT
14100 is in front of or equal to FROM.
14102 2000-05-03 Gerd Moellmann <gerd@gnu.org>
14104 * xdisp.c (handle_single_display_prop): If display property value
14105 is invalid, or something not supported on the frame, restore
14106 iterator's position to what it was initially. Make sure to return
14107 0 for invalid and unsupported property values.
14109 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
14110 that x_per_char_metric returns null.
14112 2000-05-02 Gerd Moellmann <gerd@gnu.org>
14114 * xterm.h (struct face): Add forward declaration.
14115 (struct image): Ditto.
14116 (image_ascent): Add prototype.
14118 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
14119 (x_draw_image_relief, x_draw_image_foreground_1): Call function
14120 image_ascent instead of using IMAGE_ASCENT.
14122 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
14123 (IMAGE_ASCENT): Removed.
14125 * xfns.c (Qcenter): New variable.
14126 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
14127 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
14128 (image_ascent): New function.
14129 (lookup_image): Recognize `:ascent center'.
14130 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
14131 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
14132 (xbm_load): Don't set image's ascent here.
14133 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
14134 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
14135 check ascent values here.
14136 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
14137 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
14138 (syms_of_xfns): Initialize Qcenter.
14140 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
14141 to the limits, increase the limits.
14143 2000-05-01 Kenichi Handa <handa@etl.go.jp>
14145 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
14146 Check Vfont_encoding_alist against the full name of the opened font.
14148 2000-04-28 Gerd Moellmann <gerd@gnu.org>
14150 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
14151 taller than the window.
14153 2000-04-28 Kenichi Handa <handa@etl.go.jp>
14155 * xfaces.c (realize_x_face): Fix the argument of the second
14156 xassert. BASE_FACE may not be a face for ASCII.
14158 2000-04-27 Gerd Moellmann <gerd@gnu.org>
14160 * print.c (print_object): Treat print-length < 0 as nil.
14162 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
14164 * s/freebsd.h (TERMCAP_OBJ): Removed.
14165 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
14167 * lread.c (read1): Don't treat period followed by certain
14168 characters as symbol start.
14170 * xfns.c (slurp_file): New function.
14171 (xbm_image_p): Handle case of in-memory XBM files.
14172 (xbm_scan): Rewritten to work on memory buffers instead of files.
14173 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
14174 Work on memory buffers instead of files. If DATA is null test
14175 if buffer looks like an in-memory XBM file.
14176 (xbm_load_image): Renamed from xbm_load_image_file. Work on
14177 memory buffers instead of files.
14178 (xbm_file_p): New function.
14179 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
14181 * lread.c (end_of_file_error): New function.
14182 (read1): Call it instead of signaling `end-of-file' directly.
14184 * print.c (print_error_message): Print data of `end-of-file'
14185 with Fprinc instead of Fprin1.
14187 2000-04-26 Ken Raeburn <raeburn@gnu.org>
14189 * window.c (freeze_window_start): Check that minibuffer scroll
14190 window isn't nil before extracting the window structure pointer
14193 * undo.c (record_delete): If we hit the end of the undo list, stop
14194 picking elements apart.
14196 2000-04-26 Gerd Moellmann <gerd@gnu.org>
14198 * xdisp.c (display_line): If lines are continued, restore
14199 iterator's ascent/descent information to the values before the
14200 first glyph not fitting on the line.
14202 2000-04-25 Gerd Moellmann <gerd@gnu.org>
14204 * xdisp.c (try_window_id) <all changes above window start>: Adjust
14205 positions in glyph matrix. Don't compute new window end positions.
14207 * dispnew.c (increment_matrix_positions): Renamed from
14208 increment_glyph_matrix_buffer_positions.
14209 (increment_row_positions): Renamed from
14210 increment_glyph_row_buffer_positions.
14212 * dispextern.h: Change names of renamed functions from dispnew.c
14215 2000-04-24 Gerd Moellmann <gerd@gnu.org>
14217 * fileio.c (Fdo_auto_save): Create directories for auto-save
14218 list file if necessary.
14220 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
14221 from buffer or frame.
14222 (automatic_hscrolling_p): New variable.
14223 (hscroll_windows): Scroll windows horizontally only if automatic
14224 hscrolling is allowed.
14225 (syms_of_xdisp): New variable `automatic-hscrolling'.
14227 * frame.h (struct frame): Add member extra_line_spacing.
14229 * xfns.c (x_set_line_spacing): New function.
14230 (Fx_create_frame): Set line spacing from resources.
14231 (Qline_spacing): New variable.
14232 (syms_of_xfns): Initialize Qline_spacing.
14234 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
14236 * buffer.c (init_buffer_once): Handle extra_line_spacing.
14237 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
14238 (reset_buffer): Don't initialize extra2 and extra3. Initialize
14239 extra_line_spacing from default value.
14240 (init_buffer_once): Initialize default value of extra_line_spacing.
14242 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
14245 * xterm.c (x_produce_glyphs): Remove reference to struct it's
14246 prompt_width. Add extra line spacing.
14248 * term.c (produce_glyphs): Remove reference to struct it's
14251 * dispextern.h (struct it): Remove member prompt_width, add
14252 extra_line_spacing.
14254 2000-04-22 Gerd Moellmann <gerd@gnu.org>
14256 * dispnew.c (update_frame_line): When writing a whole line, make
14257 sure cursor is in the right row afterwards, otherwise a use of
14258 capability `ch' in cmgoto might leave the cursor in the row below.
14260 2000-04-21 Gerd Moellmann <gerd@gnu.org>
14262 * lisp.h (struct Lisp_Buffer_Cons): Remove.
14264 * keyboard.c (timer_check): Fix typo in comment.
14266 2000-04-21 Kenichi Handa <handa@etl.go.jp>
14268 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
14269 name change: ch -> character.
14271 2000-04-20 Gerd Moellmann <gerd@gnu.org>
14273 * keyboard.c (echo_message_buffer): New variable.
14274 (echo_now): Set echo_message_buffer to the echo area buffer used
14275 to display the echo.
14276 (cancel_echoing): Reset echo_message_buffer to nil.
14277 (read_char): Code rewritten that handles canceling an echo or
14278 echoing a dash, respectively.
14280 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
14281 directory doesn't exist.
14283 2000-04-19 Dave Love <fx@gnu.org>
14285 * fns.c (syms_of_fns): Defsubr mapc.
14286 (concat): Don't allow numeric args.
14287 (Fconcat): Doc change.
14289 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
14291 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
14292 instead define end_match(1|2) more carefully.
14293 Use GET_CHAR_BEFORE_2 for `begline'.
14295 2000-04-19 Gerd Moellmann <gerd@gnu.org>
14297 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
14298 on 64-bit systems where NULL is defined as `0'.
14300 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
14301 the `variable argument list' to make it work on Alpha.
14303 * m/alpha.h (_LP64) [!_LP64]: Define.
14304 (ORDINARY_LINK): Define for NetBSD.
14306 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
14308 2000-04-19 Dave Love <fx@gnu.org>
14310 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
14313 * Makefile.in (LIBS): Don't use.
14314 (GETLOADAVG_OBJ): Define again.
14315 (otherobj): Add GETLOADAVG_OBJ.
14317 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
14319 2000-04-18 Gerd Moellmann <gerd@gnu.org>
14321 * lread.c (read_filtered_event): Cancel and start busy cursor.
14323 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
14324 that the per-character metrics may be null.
14326 2000-04-17 Gerd Moellmann <gerd@gnu.org>
14328 * buffer.c (clone_per_buffer_values): New function.
14329 (Fmake_indirect_buffer): Add optional argument CLONE. Call
14330 clone_per_buffer_values if CLONE is not nil.
14332 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
14334 2000-04-16 Dave Love <fx@gnu.org>
14336 * Makefile.in: Remove obsolete localcpp stuff.
14337 (GETLOADAVG_OBJ): Don't define.
14338 (obj): Move LIBOBJS...
14339 (otherobj): ... to here.
14340 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
14341 whitespace-only lines after the continuation (Irix).
14343 2000-04-14 Gerd Moellmann <gerd@gnu.org>
14345 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
14347 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
14349 2000-04-14 Dave Love <fx@gnu.org>
14351 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
14352 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
14353 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
14354 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
14357 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
14358 autoconfiscated HAVE_GETLOADAVG.
14360 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
14363 2000-04-14 Gerd Moellmann <gerd@gnu.org>
14365 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
14366 (fill_in_lock_file_name): Avoid existing files that aren't links.
14368 2000-04-14 Dave Love <fx@gnu.org>
14370 * Makefile.in (LIBS, LIBOBJS): New variable.
14371 (INTERVAL_SRC): Convert to make variable.
14372 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
14373 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
14374 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
14376 (SOME_MACHINE_OBJECTS): Remove interval stuff.
14377 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
14378 (shortlisp): Add facemenu, float-sup, frame.
14379 (SOME_MACHINE_LISP): Remove them from here.
14380 (LIBES): Change unused LDLIBS to autoconf LIBS.
14382 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
14384 2000-04-14 Kenichi Handa <handa@etl.go.jp>
14386 * composite.c (update_compositions): If FROM and TO are not in a
14387 valid range, do nothing.
14389 2000-04-13 Gerd Moellmann <gerd@gnu.org>
14391 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
14393 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
14395 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
14398 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
14400 * fileio.c (a_write): Remove redundant semi-colons.
14401 (e_write): Return -1 if failed to write all the data.
14402 This fixes the changes made at 1999-12-15.
14404 2000-04-12 Dave Love <fx@gnu.org>
14406 * fns.c (mapcar1): Test for null vals to support mapc.
14407 (Fmapc): New function.
14409 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
14411 * msdos.c (NUM_MOUSE_BUTTONS): Define.
14412 (IT_frame_up_to_date): Support the buffer local value of
14413 cursor-type, if defined.
14415 2000-04-10 Dave Love <fx@gnu.org>
14417 * editfns.c (preceding-char, following-char): Doc fix.
14419 2000-04-10 Ken Raeburn <raeburn@gnu.org>
14421 * Makefile.in (temacs): Revert 2000-03-12 change.
14423 2000-04-10 Jason Rumney <jasonr@gnu.org>
14425 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
14427 2000-04-10 Gerd Moellmann <gerd@gnu.org>
14429 * xdisp.c (setup_echo_area_for_printing): Choose an echo
14430 area buffer, if it's not set up yet.
14432 * indent.c (compute_motion): Set immediate_quit.
14434 2000-04-09 Gerd Moellmann <gerd@gnu.org>
14436 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
14437 (realize_tty_face): Suppress boldness if colors are the inverse of
14438 the default colors, and tty_suppress_bold_inverse_default_colors_p
14440 (Ftty_suppress_bold_inverse_default_colors): New function.
14441 (syms_of_xfaces): Defsubr it.
14443 * buffer.c (Frestore_buffer_modified_p): New function.
14444 (syms_of_buffer): Defsubr it.
14446 2000-04-08 Ken Raeburn <raeburn@gnu.org>
14448 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
14449 charset id (int) argument, not a charset (Lisp_Object).
14451 * coding.h (code_convert_string): Declare.
14452 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
14453 object, as the fourth argument to code_convert_string.
14455 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
14456 (Fset_fontset_font): Use EQ to compare lisp objects.
14458 2000-04-05 Ken Raeburn <raeburn@gnu.org>
14460 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
14461 a pointer that looks like a lisp object.
14462 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
14463 zero, instead see whether it's an integer object, since they can't
14465 (GET_INTERVAL_OBJECT): Simply assign to the destination.
14467 * dispnew.c (allocate_matrices_for_frame_redisplay)
14468 (direct_output_forward_char): Use X(U)INT and make_number as needed
14469 to convert between (unsigned) int values and lisp integers.
14470 * keyboard.c (read_key_sequence): Likewise.
14471 * lread.c (substitute_object_recurse): Likewise.
14472 * fns.c (concat, hash_lookup, hash_remove): Likewise.
14473 * minibuf.c (do_completion, Fminibuffer_complete_word)
14474 (Fminibuffer_completion_help): Likewise.
14475 * term.c (produce_special_glyphs): Likewise.
14477 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
14478 * print.c (print_preprocess, print_object): Likewise.
14480 * search.c (compile_pattern): Use NILP when checking for nil.
14482 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
14483 __OPTIMIZE__]: Provide a GNU C macro version that handles
14484 lisp-object unions.
14485 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
14486 field, to better cope with ENABLE_CHECKING and calls that modify a
14487 Lisp_Object using its old value.
14489 2000-04-04 Gerd Moellmann <gerd@gnu.org>
14491 * window.c (compare_window_configurations): Signal an error
14492 if parameters C1 or C2 aren't window configurations.
14494 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
14495 AFTER_POTENTIAL_GC calls around calls to functions that can
14496 signal an error and thus invoke the debugger.
14498 2000-04-03 Gerd Moellmann <gerd@gnu.org>
14500 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
14501 an error if decoding fails.
14503 * keyboard.c (lispy_mouse_names): Variable removed.
14504 (Vlispy_mouse_stem): New variable.
14505 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
14506 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
14507 for any mouse button number. Increase size of mouse_syms and
14508 button_down_location as needed. Call modify_event_symbol with
14509 different arguments.
14510 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
14511 Call modify_event_symbol with different arguments.
14512 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
14513 for any button number. Call modify_event_symbol with different
14515 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
14516 Accept a string for NAME_ALIST_OR_STEM.
14518 * lisp.h (larger_vector): Add prototype.
14520 * fns.c (larger_vector): Make externally visible.
14522 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
14524 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
14526 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
14527 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
14528 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
14529 we are between str1 and str2.
14530 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
14531 (PATFETCH): Use `TRANSLATE'.
14532 (PATFETCH_RAW): Fetch multibyte char if applicable.
14533 (PATUNFETCH): Remove.
14534 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
14535 When writing a char, write it directly into the pattern buffer rather
14536 than going needlessly through a temp char-array.
14537 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
14538 multibyte magic and remove the useless `#ifdef emacs'.
14539 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
14542 * regex.h (struct re_pattern_buffer): Make field `multibyte'
14543 conditional on `emacs'.
14545 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
14547 2000-04-01 Ken Raeburn <raeburn@gnu.org>
14549 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
14550 non-union-type versions of XMARK and friends here, because XMARK
14551 and friends won't work on an integer field if NO_UNION_TYPE is not
14553 (make_number): Define as a function if it's not defined as a macro.
14555 * composite.c (run_composite_function): Use NILP when checking for nil.
14556 (syms_of_composite): Delete local var NARGS, pass an int as first
14557 argument to Fmake_hash_table.
14559 * editfns.c (text_property_stickiness): Use NILP to test
14560 Lisp_Object boolean value.
14561 (Fmessage_or_box): Don't use NILP to test int variable.
14562 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
14563 problems reading from and changing the same lisp value in an
14566 2000-04-01 Gerd Moellmann <gerd@gnu.org>
14568 * term.c (TN_no_color_video): New variable.
14569 (term_init): Intitialize TN_no_color_video.
14570 (enum no_color_bit): New enumeration.
14571 (MAY_USE_WITH_COLORS_P): New macro.
14572 (turn_on_face): Use it to determine if attributes may be used
14573 combined with colors.
14575 2000-04-01 Ken Raeburn <raeburn@gnu.org>
14577 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
14578 with int lvalues via casts; instead, just yield lisp object lvalues.
14579 (enlarge_window): Variable sizep now points to Lisp_Object. Use
14580 proper accessor macros.
14581 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
14582 (grow_mini_window): Fix typo getting int value of root->height.
14584 * xdisp.c (compute_string_pos): Fix order of arguments to
14585 string_pos_nchars_ahead.
14586 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
14587 count arg to variable-arg routines like Frun_hook_with_args and
14589 (back_to_previous_visible_line_start)
14590 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
14591 fixed-arg routines like Fget_char_property and Fmake_string.
14592 (reconsider_clip_changes): Use XINT when comparing integer lisp
14593 objects, or passing them as int arguments.
14594 (mark_window_display_accurate, insert_left_trunc_glyphs)
14595 (append_space, extend_face_to_end_of_line): Use make_number when
14596 storing or passing integer values as lisp objects.
14597 (set_cursor_from_row, highlight_trailing_whitespace): Use
14598 INTEGERP, not implicit test against zero, for glyph object.
14599 (try_window_id): Don't use make_number when we want an int value.
14601 * xfaces.c (xlfd_symbolic_value): Make last argument a
14602 Lisp_Object, to be consistent with callers.
14603 (Fbitmap_spec_p): Use XINT to get numeric value of height.
14604 (lface_hash): Apply XFASTINT to lisp values before folding in.
14606 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
14607 fill in window width and height. Pass an int, not a lisp object,
14608 as first arg to Finsert.
14610 2000-04-01 Gerd Moellmann <gerd@gnu.org>
14612 * xfaces.c (realize_basic_faces): Block input while realizing
14615 * keyboard.c (lispy_mouse_names): Add additional mouse names.
14617 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
14619 2000-03-31 Gerd Moellmann <gerd@gnu.org>
14621 * xterm.c (x_produce_glyphs): When displaying unibyte text
14622 or ASCII, handle case that per-char metric is null.
14624 2000-03-30 Ken Raeburn <raeburn@gnu.org>
14626 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
14628 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
14629 (XSUBR, XBUFFER): Verify correct object type before returning
14630 pointer, using eassert.
14631 * frame.h (XFRAME): Likewise.
14633 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
14634 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
14635 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
14636 * data.c (set_internal): Likewise.
14637 * dispextern.h (WINDOW_WANTS_MODELINE_P)
14638 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
14639 * fileio.c (auto_save_1): Likewise.
14640 * insdel.c (check_markers): Likewise.
14641 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
14642 * undo.c (record_insert): Likewise.
14643 * vmsproc.c (child_sig): Likewise.
14644 * window.c (unshow_buffer, window_loop): Likewise.
14645 * xterm.c (x_erase_phys_cursor): Likewise.
14647 2000-03-30 Gerd Moellmann <gerd@gnu.org>
14649 * xfns.c (free_image_cache): Free the cache structure itself
14650 last, after all its members have been freed.
14652 * lisp.h (xstrdup): Add prototype.
14654 * alloc.c (xstrdup): Moved here from xfaces.c.
14655 (allocating_for_lisp): Variable removed.
14656 (lisp_malloc): Block input around the calls to malloc and mem_insert.
14658 * xfaces.c (realize_tty_face): Use find_symbol_value instead
14660 (xstrdup): Moved to alloc.c.
14662 2000-03-29 Ken Raeburn <raeburn@gnu.org>
14664 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
14666 * emacs.c (main): Fix sense of no-loadup test.
14668 * config.in (ENABLE_CHECKING): Undef.
14670 * lisp.h (struct interval): Replace "parent" field with a union of
14671 interval pointer and Lisp_Object; add new bitfield to use as
14672 discriminant. Change other flag fields to bitfields.
14673 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
14674 is defined and the supplied test fails, print a message and abort.
14675 (eassert): New macro. Use CHECK to provide an assert-like facility.
14677 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
14678 pointers; abort if the value looks like a lisp object.
14679 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
14680 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
14681 Modify for new interval parent definition.
14683 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
14684 (UNMARK_BALANCE_INTERVALS): Update references that need an
14685 addressable lisp object in the interval structure.
14686 (die): New function.
14687 (suppress_checking): New variable.
14689 * intervals.c (interval_start_pos): Just return 0 if there's no
14692 2000-03-29 Gerd Moellmann <gerd@gnu.org>
14694 * lread.c (read1): Accept `.' (period) as symbol start like in CL
14695 and earlier Emacs versions.
14697 * keyboard.c (Ftop_level): Cancel busy-cursor.
14699 * eval.c (call_debugger): Cancel busy-cursor.
14701 2000-03-29 Kenichi Handa <handa@etl.go.jp>
14703 * search.c (Freplace_match): Adjust multibyteness of the current
14704 buffer and NEWTEXT. Free allocated memory before signaling an error.
14706 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
14708 * regex.c (analyse_first): New function obtained by ripping out most
14709 of re_compile_fastmap and generalizing it a little bit so that it
14710 can also just return whether a given (sub)pattern can match the empty
14712 (regex_compile): Use `analyse_first' to decide whether the loop-check
14713 needs to be done or not for *, +, *? and +? (the loop check is costly
14714 for non-greedy repetition).
14715 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
14717 2000-03-28 Dave Love <fx@gnu.org>
14719 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
14721 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
14723 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
14725 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
14727 (enum re_opcode_t): Update description of succeed_n.
14728 (PATFETCH): Always define.
14729 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
14730 operators, char classes, shy-groups and intervals).
14731 Optimize special cases of intervals so as to only use succeed_n and
14732 jump_n when really needed.
14733 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
14734 that we don't have to handle the special cases any more.
14735 Simplify on_failure_jump handling as well.
14737 2000-03-28 Jason Rumney <jasonr@gnu.org>
14739 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
14741 2000-03-27 Gerd Moellmann <gerd@gnu.org>
14743 * s/freebsd.h (GC_SETJMP_WORKS): Define.
14745 * s/msdos.h (GC_SETJMP_WORKS): Define.
14747 * alloc.c (mark_maybe_object): New function.
14748 (mark_memory): Use it.
14749 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
14750 (setjmp_tested_p, longjmp_done): New variables.
14751 (test_setjmp): New function.
14752 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
14753 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
14755 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
14756 to DEC_TEXT_POS and INC_TEXT_POS.
14758 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
14759 with parameter MULTIBYTE_P.
14761 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
14763 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
14764 buffers because it looks for multibyte character byte sequences
14765 which don't exist in unibyte text.
14767 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
14769 * xfaces.c (register_color, unregister_color, unregister_colors)
14770 [DEBUG_X_COLORS]: New functions.
14771 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
14773 * xfns.c (x_set_cursor_color): Get color reference counts right.
14775 * xterm.c (x_copy_color): New function.
14776 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
14778 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
14779 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
14780 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
14781 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
14782 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
14783 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
14784 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
14785 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
14786 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
14787 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
14789 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
14790 names for handling per-buffer variables.
14792 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
14793 instead of MAX_BUFFER_LOCAL_VARS.
14794 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
14796 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
14798 * xfns.c (x_specified_cursor_type): New function.
14799 (x_set_cursor_type): Use it.
14801 * buffer.h (struct buffer): Add cursor_type.
14803 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
14805 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
14806 (print_partial_compiled_pattern, re_compile_fastmap):
14808 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
14809 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
14810 executing it as well as when popping it off the stack to find infinite
14811 loops in non-greedy repetition operators.
14813 2000-03-26 Gerd Moellmann <gerd@gnu.org>
14815 * doc.c (Qfunction_documentation): New variable.
14816 (syms_of_doc): Initialize Qfunction_documentation.
14817 (Fdocumentation): If FUNCTION is a symbol with non-nil
14818 `function-documentation' property, return a documentation derived
14821 * buffer.c (syms_of_buffer): Add default-cursor-type.
14822 (init_buffer_once): Don't let cursor_type have a local value
14825 * xterm.c (x_display_and_set_cursor): Choose cursor depending
14826 on buffer-local value of cursor_type.
14827 (x_draw_bar_cursor): Add parameter WIDTH.
14829 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
14830 (init_buffer_once): Set default cursor_type value to t.
14831 Mark cursor_type as local everywhere.
14832 (syms_of_buffer): New per-buffer variable cursor-type.
14834 * buffer.h (struct buffer): Remove member local_var_flags,
14836 (MAX_BUFFER_LOCAL_VARS): New macro.
14837 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
14838 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
14839 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
14840 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
14842 * print.c (print_object): Use new macros for per-buffer variables.
14844 * category.c (Fset_category_table): Use new macros for per-buffer
14847 * buffer.c (buffer_permanent_local_flags): Make a char array.
14848 (max_buffer_local_idx): New variable.
14849 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
14850 for new handling of per-buffer variables.
14851 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
14852 (init_buffer_once): Initialize per-buffer vars differently.
14853 Set max_buffer_local_idx.
14855 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
14858 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
14860 * data.c (do_symval_forwarding, store_symval_forwarding)
14861 (find_symbol_value, set_internal, default_value, Fset_default)
14862 (Fkill_local_variable, Flocal_variable_p): Use new macros for
14863 per-buffer variables.
14865 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
14867 2000-03-24 Gerd Moellmann <gerd@gnu.org>
14869 * xterm.c (x_term_init): Unblock input around call1 of
14870 Qvendor_specific_keysyms.
14872 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
14873 (find_defun_start): Consider an open parenthesis in column 0
14874 a defun start only if open_paren_in_column_0_is_defun_start is set.
14875 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
14877 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
14879 * eval.c (Fautoload): Add entry in load-history (if after dump).
14880 * lread.c (load-history): Update docstring.
14882 2000-03-24 Gerd Moellmann <gerd@gnu.org>
14884 * indent.c (Fvertical_motion): Always use the current buffer.
14885 Temporarily change the window's buffer, if necessary.
14887 2000-03-23 Gerd Moellmann <gerd@gnu.org>
14889 * xterm.c (fast_find_position): Make sure not to consider rows
14890 not visible in the window.
14892 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
14894 * regex.c (enum syntaxcode): Provide default for non-Emacs.
14895 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
14897 2000-03-22 Jason Rumney <jasonr@gnu.org>
14899 * w32menu.c (single_submenu): Set help string to NULL if none.
14900 (w32_menu_show): Set help string correctly.
14901 (add-menu-item): Set help string in MIIM_DATA for menu item.
14902 Load SetMenuItemInfoA explicitly.
14903 (w32_menu_display_help): New function.
14905 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
14906 (QCdata): Moved to xdisp.c.
14908 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
14909 (Vw32_charset_to_codepage_alist): Removed.
14910 (Vw32_charset_info_alist): New variable.
14911 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
14912 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
14913 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
14914 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
14916 (w32_codepage_for_font): Use Vw32_charset_info_alist.
14917 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
14918 Define Vw32_charset_info_alist and w32_charset symbols.
14920 2000-03-22 Jason Rumney <jasonr@gnu.org>
14922 * makefile.nt (w32bdf.obj): Update dependencies.
14924 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
14926 * w32fns.c: Include fontset.h after dispextern.h.
14927 (Fx_create_frame): Do not create fontset.
14928 (w32_load_system_font): Doc fix.
14929 (Fx_close_connection): Free full_name if it is not shared.
14931 * w32term.c: Include fontset.h after dispextern.h.
14932 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
14934 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
14935 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
14936 (w32_font_is_double_byte): New function, needs body.
14937 (x_append_glyph): Set glyph->glyph_not_available_p.
14938 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14939 it->charset. If it->multibyte_p is zero and it->c is a multibyte
14940 character, convert it to a unibyte character.
14941 (struct glyph_string): Delete member `charset'.
14942 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
14943 calculating it is found.
14944 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14945 the case that per char metric is not available correctly.
14946 (x_fill_glyph_string): Handle the case that the specific glyph is
14947 not available correctly.
14948 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14949 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14950 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14951 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14952 fontset. Don't call FS_LOAD_FONT.
14954 2000-03-22 Ken Raeburn <raeburn@gnu.org>
14956 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
14957 (INT_LISPLIKE): New macro.
14958 (NULL_INTERVAL_P): Use it.
14959 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
14960 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
14961 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
14963 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
14964 explicit references to "parent" field of struct interval and
14965 associated unclean type conversions.
14966 * intervals.c (create_root_interval, root_interval, rotate_right)
14967 (rotate_left, balance_possible_root_interval, split_interval_right)
14968 (split_interval_left, interval_start_pos, find_interval)
14969 (next_interval, previous_interval, update_interval)
14970 (adjust_intervals_for_insertion, delete_node, delete_interval)
14971 (adjust_intervals_for_deletion, merge_interval_right)
14972 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
14973 (copy_intervals_to_string): Likewise.
14974 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
14976 * syntax.c (update_syntax_table): Likewise.
14978 * intervals.c (reproduce_tree_obj): New function, like
14979 reproduce_tree but takes a Lisp_Object for the parent. Declare
14981 (graft_intervals_into_buffer): Use it when appropriate.
14982 (reproduce_tree): Declare with prototype.
14983 (balance_possible_root_interval): Check that the parent is a lisp
14984 object before trying to examine its type.
14986 2000-03-22 Gerd Moellmann <gerd@gnu.org>
14988 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
14989 as strings only if both are known to be strings.
14991 * s/openbsd.h (LIBS_TERMCAP): Undef.
14993 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
14995 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
14996 definitions for non-Emacs compilation.
14997 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
14998 outside of `#ifdef emacs'.
14999 (print_partial_compiled_pattern): Update.
15000 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
15001 (re_compile_fastmap): Merge handling of charset and charset_not (for
15002 emacs and non-emacs compilation as well).
15003 Similarly for (not)categoryspec and (not)syntaxspec.
15004 Don't use the fastmap when reaching `anychar' since the added
15005 complexity is not justified.
15006 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
15007 and (not)syntaxspec. Merge (not)categoryspec.
15009 2000-03-22 Kenichi Handa <handa@etl.go.jp>
15011 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
15012 (FACE_FOR_CHAR): Define them differently for the configuration of
15015 2000-03-21 Dave Love <fx@gnu.org>
15017 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
15020 2000-03-21 Gerd Moellmann <gerd@gnu.org>
15022 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
15023 (lface_fully_specified_p): Don't check contents of
15024 LFACE_FONT_INDEX because that attribute is optional.
15025 (realize_x_face): Remove now unwarranted xassert.
15027 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
15029 The following changes are to make font selection based on
15030 characters, not charset. In addition, they recover fontset
15031 facilities while utilizing the new font selection mechanism.
15033 * Makefile.in (fontset.o): Depend on dispextern.h.
15035 * alloc.c (mark_face_cache): Don't mark face->registry.
15037 * dispextern.h (struct glyph): New member glyph_not_available_p.
15038 Use 22 bits for face_id.
15039 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
15040 (struct face): Delete member registry, new member ascii_face.
15041 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
15042 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
15043 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
15044 (struct it): Delete member charset, new member glyph_not_available_p.
15046 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
15047 (struct fontset_info, struct fontset_data): Structs removed.
15048 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
15049 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
15050 (fs_load_font, fs_query_fontset): Adjusted for new argument.
15051 (fs_free_face_fontset, fontset_font_pattern)
15052 (face_suitable_for_char_p, face_for_char)
15053 (make_fontset_for_ascii_face): Extern them.
15054 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
15055 (FS_LOAD_FACE_FONT): New macro.
15057 * fontset.c: All codes rewritten or adjusted for the change of
15058 fontset implementation. Now fontset is represented by char table.
15059 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
15061 (my_strcasecmp): Function removed.
15062 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
15063 (AREF, ASIZE): New macros.
15064 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
15065 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
15066 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
15067 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
15068 (fontset_id_valid_p, font_family_registry, fontset_name)
15069 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
15070 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
15072 (fs_load_font): New arg FACE. Caller changed.
15073 (fs_query_fontset): Argument changed. Caller changed.
15074 (Fquery_fontset): call fs_query_fontset.
15075 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
15077 (clear_fontset_elements, check_registry_encoding)
15078 (check_fontset_name): New functions.
15079 (syms_of_fontset): Set char-table-extra-slots property of fontset
15080 to 3. Staticpro and initialize Vfontset_table and
15081 Vdefault_fontset. Defsubr fontset_font and fontset_list.
15083 * frame.h (struct frame): Member `fontset_data' removed.
15084 (FRAME_FONTSET_DATA): Macro removed.
15086 * frame.c (make_frame): Don't allocate f->fontset_data.
15087 (Fdelete_frame): Don't free f->fontset_data.
15089 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
15091 * xdisp.c (charset_at_position): Function removed.
15092 (init_iterator): Don't set member charset of struct `it'.
15093 (handle_face_prop, reseat_to_string, set_iterator_to_next)
15094 (next_element_from_display_vector, insert_left_trunc_glyphs):
15096 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
15098 (get_next_display_element, append_space)
15099 (extend_face_to_end_of_line): Likewise.
15101 * xfaces.c (Qx_charset_registry, Vface_default_registry):
15103 (clear_font_table, frame_update_line_height, load_face_font):
15104 Adjusted for the change of fontset implementation.
15105 (load_face_fontset_font): Function removed.
15106 (pixel_point_size): New function.
15107 (font_list): Argument type changed. Caller changed.
15108 (LFACE_FONT): New macro.
15109 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
15110 (set_lface_from_font_name): Type of arg FONTNAME is changed to
15111 Lisp_Object. Determine the font name by actually loading a font
15112 by the specified pattern. Set LFACE_FONT (lface) to the specified
15113 pattern. Even if a font is not found, don't try alternatives.
15114 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
15115 (set_font_frame_param): If `font' is specified in lface, use it.
15116 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
15117 (lface_same_font_attributes_p): Likewise.
15118 (make_realized_face): Arguent changed. Caller changed. Set
15119 face->ascii_face to face itself.
15120 (free_realized_face): Free face->fontset if face is for ASCII.
15121 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
15122 (deduce_unibyte_registry, x_charset_registry): Functions removed.
15123 (free_realized_multibyte_face): New function.
15124 (lookup_face, lookup_named_face, lookup_derived_face): Argument
15125 changed. Caller changed.
15126 (try_font_list): Argument type changed.
15127 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
15128 (choose_face_font): Argument changed. Handle fontset properly.
15129 (choose_face_fontset_font): Function removed.
15130 (realize_default_face, realize_named_face): Don't remove the
15132 (realize_face): Argument changed. Caller changed. Remove face
15133 with the arg former_face_id in advance. Load font for the new face.
15134 (realize_x_face): Argument changed. Caller changed. For a
15135 multibyte character, share fontset with base_face. For a single
15136 byte character, make a new realized fontset. Don't load a font here.
15137 (realize_tty_face): Argument changed. Caller changed.
15138 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
15139 (face_at_buffer_position): Don't check multibyte_p for returning
15141 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
15142 FACE_SUITABLE_FOR_CHARSET_P.
15143 (syms_of_xfaces): Remove code for Qx_charset_registry and
15144 Vface_default_registry.
15146 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
15147 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
15148 (x_per_char_metric): Don't try FONT->default_char. Even if
15149 pcm->width is zero, glyph bits may exist.
15150 (x_encode_char): Always initialize char2b->byte1.
15151 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
15152 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
15153 (x_append_glyph): Set glyph->glyph_not_available_p.
15154 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
15155 it->charset. Handle the case that per char metric is not
15156 available. If it->multibyte_p is zero and it->c is a multibyte
15157 character, convert it to a unibyte character.
15158 (struct glyph_string): Delete member `charset'.
15159 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
15160 the case that per char metric is not available correctly.
15161 (x_fill_glyph_string): Handle the case that the specific glyph is
15162 not available correctly.
15163 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
15164 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
15165 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
15166 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
15167 fontset. Don't call FS_LOAD_FONT.
15169 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
15170 (x_create_tip_frame): Likewise.
15171 (Fx_close_connection): Free full_name of font_info.
15173 * fns.c (optimize_sub_char_table): New function.
15174 (Foptimize_char_table): New function.
15175 (syms_of_fns): Defsubr Soptimize_char_table.
15177 2000-03-20 Gerd Moellmann <gerd@gnu.org>
15179 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
15180 only if buffer is displayed in some window.
15182 * xdisp.c (handle_single_display_prop): Initialize local `value'.
15183 (try_window_reusing_current_matrix): Don't call scroll run
15184 function if run's current and desired position are the same;
15185 this prevents cursor flickering.
15187 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
15189 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
15191 * regex.c (RE_STRING_CHAR): New macro.
15192 (GET_CHAR_AFER_2): Remove.
15193 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
15194 (enum re_opcode_t): Remove on_failure_jump_exclusive.
15195 (print_partial_compiled_pattern, re_compile_fastmap)
15196 (re_match_2_internal): Remove on_failure_jump_exclusive.
15197 (regex_compile): Turn optimizable P+ loops into PP*, so that the
15198 optimization only need to work for * (ie. can use of_keep_string_jump).
15199 Remove the special case for .*\n since it is now covered by the general
15201 (re_search_2): Don't bother with `room'.
15202 (skip_one_char): New function.
15203 (skip_noops): Simplify since `memory' is not needed any more.
15204 (mutually_exclusive_p): Restructure slightly to use `switch' and
15205 add handling for "all" remaining cases.
15206 (re_match_2_internal): Change on_failure_jump_smart to use
15207 on_failure_keep_string_jump (and redirect the end-of-loop jump)
15208 rather than on_failure_jump_exclusive.
15210 2000-03-19 Gerd Moellmann <gerd@gnu.org>
15212 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
15213 number of bits per RGB because it's everywhere used as the depth
15216 * term.c (calculate_costs): Remove code dealing with X frames.
15218 2000-03-19 Richard M. Stallman <rms@gnu.org>
15220 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
15222 2000-03-18 Gerd Moellmann <gerd@gnu.org>
15224 * lread.c (read_integer): Unread the last char not consumed.
15226 2000-03-17 Gerd Moellmann <gerd@gnu.org>
15228 * xterm.c (x_update_window_cursor): Don't update in frames
15229 which are in the process of being deleted.
15231 2000-03-16 Gerd Moellmann <gerd@gnu.org>
15233 * Makefile.in (mostlyclean): Add `*.core'.
15234 (clean): Add `bootstrap-emacs'.
15236 * lread.c (read_integer): New function.
15237 (read1): Support read syntax #o, #x, #b, #r.
15239 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
15241 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
15242 make sure POINTER_TO_OFFSET gives the same value before and after
15243 PREFETCH. Use `dfail' to guarantee "atomic" matching.
15244 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
15245 (debug): Now only active if > 0 rather than if != 0.
15246 (DEBUG_*): Update for the new meaning of `debug'.
15247 (print_partial_compiled_pattern): Add missing `succeed' case. Use
15248 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
15249 in `succeed_n', `jump_n' and `set_number_at'.
15250 (store_op1, store_op2, insert_op1, insert_op2)
15251 (at_begline_loc_p, at_endline_loc_p): Add prototype.
15252 (group_in_compile_stack): Move to after its arg's types are
15253 declared and add a prototype.
15254 (PATFETCH): Define in terms of PATFETCH_RAW.
15255 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
15256 (QUIT): Redefine as a nop except for NTemacs.
15257 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
15258 indentation of the greedy-op and shy-group code.
15259 (at_(beg|end)line_loc_p): Fix argument's types.
15260 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
15261 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
15262 (MATCHING_IN_FIRST_STRING): Remove.
15263 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
15264 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
15265 QUIT unconditionally.
15267 2000-03-15 Gerd Moellmann <gerd@gnu.org>
15269 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
15272 * process.c (send_process): Add a hint that the function
15273 can call Lisp code to its comment.
15275 * lread.c (load_dangerous_libraries): New variable.
15276 (Vbytecomp_version_regexp): New variable.
15277 (safe_to_load_p): New function.
15278 (Fload): Handle files not compiled with Emacs specially.
15279 (syms_of_lread): New Lisp variable load-dangerous-libraries.
15281 2000-03-14 Gerd Moellmann <gerd@gnu.org>
15283 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
15285 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
15286 support functions only if HAVE_X11R6_XIM is defined.
15287 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
15289 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
15291 * xfns.c (X_I18N_INHIBITED): Don't define.
15292 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
15293 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
15295 * config.in (HAVE_X_I18N): Moved here from xterm.h.
15296 (HAVE_X11R6_XIM): Define.
15298 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
15300 * xterm.c (x_term_init): Add support for X resource `synchronous'.
15301 If set, call XSynchronize.
15303 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
15305 * regex.c: Declare a new type `re_char' used throughout the code
15306 for the string char type. It's `const unsigned char' to match the
15307 rest of Emacs. Consistently make sure all pointers to strings use
15308 it and make sure all pointers into the pattern use `unsigned char'.
15309 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
15310 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
15313 * charset.h (GET_CHAR_AFTER_2): Remove.
15314 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
15316 2000-03-12 Ken Raeburn <raeburn@gnu.org>
15318 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
15319 variable before the invocation of YMF_PASS_LDFLAGS, in case both
15320 of them try to use backquotes.
15322 2000-03-12 Dave Love <fx@gnu.org>
15324 * unexelf.c: Restore changes of 1999-10-19.
15325 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
15326 fix its type and alignment; copy it from current process.
15328 2000-03-12 Gerd Moellmann <gerd@gnu.org>
15330 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
15331 has been found. Fix bug not computing timer's predecessor.
15333 * fileio.c (Fread_file_name): Handle case that DIR contains a
15336 * window.c (Fsave_window_excursion): Doc fix.
15338 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
15340 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
15342 * msdos.c (vga_installed): New function, code moved from
15343 dos_set_window_size.
15344 (Qbar, Qcursor_type, outside_cursor): New variables.
15345 (syms_of_msdos): Intern and staticpro them.
15346 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
15347 shape used outside Emacs when called for the first time.
15348 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
15349 cursor shape used outside Emacs.
15350 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
15351 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
15353 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
15354 parameters specify the cursor. Make qreverse a global
15355 variable (renamed to Qreverse).
15357 2000-03-09 Gerd Moellmann <gerd@gnu.org>
15359 * fns.c (Fy_or_n_p): Cancel busy-cursor.
15361 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
15363 This is a big redesign of failure-stack and register handling, prompted
15364 by bugs revealed when trying to add shy-groups. Overall, what happened
15365 is that loops are now structured a little differently, groups can be
15366 shy and the code is a little simpler.
15368 * regex.h: Update the copyright.
15369 (RE_SHY_GROUPS): New value.
15370 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
15371 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
15373 * regex.c (enum re_opcode_t): Remove jump_past_alt,
15374 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
15375 on_failure_jump_(exclusive, loop and smart). Also fix the comment
15376 for (start|stop)_memory since they now only take one argument (the
15377 second has becomes unnecessary).
15378 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
15379 (print_compiled_pattern): Use %ld to printf long ints and flush to
15380 make debugging a little easier.
15381 (union fail_stack_elt): Make the integer unsigned.
15382 (struct fail_stack_type): Add a `frame' element.
15383 (INIT_FAIL_STACK): Init `frame' as well.
15384 (POP_PATTERN_OP): New macro for re_compile_fastmap.
15385 (DEBUG_PUSH, DEBUG_POP): Remove.
15386 (NUM_REG_ITEMS): Remove.
15387 (NUM_NONREG_ITEMS): Adjust.
15388 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
15389 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
15390 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
15391 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
15393 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
15394 address pushed is not the destination of the jump but the source
15396 (NUM_FAILURE_ITEMS): Remove.
15397 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
15398 registers before the actual failure point). Don't hardcode any
15399 meaning for str==NULL anymore.
15400 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
15401 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
15403 (REG_UNSET_VALUE): Use NULL (why not?).
15404 (compile_range): Remove declaration since it doesn't exist.
15405 (struct compile_stack_elt_t): Remove inner_group_offset.
15406 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
15407 (regex_grow_registers): Remove dead code.
15408 (FIXUP_ALT_JUMP): New macro.
15409 (regex_compile): Add shy-groups Change loops to use
15410 on_failure_jump_smart&jump instead of
15411 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
15412 initial (dummy_failure_)jump. Remove c1_base (looks like unused
15413 variable to me). Use `jump' instead of `jump_past_alt' and don't
15414 bother with push_dummy_failure in alternatives since it is now
15415 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
15416 emacs' for (re)allocating the stack.
15417 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
15418 from loop when bufp->can_be_null rather than jumping to `done'.
15419 Avoid jumping backwards so as to ensure termination. Use
15420 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
15421 backreferences. Remove dead code in handling of `anychar'.
15422 (skip_noops, mutually_exclusive_p): New functions taken from the
15423 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
15424 improve mutually_exclusive_p to handle ".+\n".
15425 (lowest_active_reg, highest_active_reg)
15426 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
15427 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
15428 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
15429 variables. Push register (in `start_memory') on the stack rather
15430 than storing it in old_reg(start|end). Remove the cycle detection
15431 from `stop_memory', replaced by the use of on_failure_jump_loop
15432 for greedy loops. Add code for the new on_failure_jump_<foo>.
15433 Remove ad-hoc code in `on_failure_jump' to push more registers in
15434 the case of a loop. Take out code from `maybe_pop_jump' into
15435 separate functions and adapt it to the semantics of
15436 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
15437 and push_dummy_failure. Remove dummy_failure handling and
15438 handling of `failures to jump to on_failure_jump' (this last one
15439 was already dead code, it seems).
15440 (group_match_null_string_p, alt_match_null_string_p)
15441 (common_op_match_null_string_p): Remove.
15443 2000-03-08 Dave Love <fx@gnu.org>
15445 * config.in: Don't depend on __STDC__ for volatile.
15446 Add POINTER_TYPE, PTR, PROTOTYPES.
15448 * hftctl.c, strftime.c: Use PROTOTYPES.
15449 * eval.c (find_handler_clause): Likewise.
15451 * mem-limits.h: Use POINTER_TYPE.
15453 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
15454 (memory_warnings): Declare using POINTER_TYPE.
15456 2000-03-08 Gerd Moellmann <gerd@gnu.org>
15458 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
15460 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
15462 * xfns.c: Remove obsolete code in #if 0.
15463 (Fx_focus_frame): New function.
15465 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
15467 * coding.c (coding_category_name): Add coding-category-utf-8,
15468 coding-category-utf-16-be, coding-category-utf-16-le.
15469 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
15470 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
15471 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
15472 (detect_coding_utf_8): New function.
15473 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
15474 UTF_16_LOW_SURROGATE_P): New macros.
15475 (detect_coding_utf_16): New function
15476 (detect_coding_mask): When priorities are specified, skip any
15477 categories that have `nil' coding-system. Fix bug of returning
15478 wrong mask when PRIORITIES is specified and detect_coding_XXX()
15479 returns a mask not set in PRIORITIES.
15480 (detect_eol_type_in_2_octet_form): New function.
15481 (detect_eol): selects detect_eol_type_XXX to call according to
15482 cooding->category_idx.
15483 (detect_coding_system): Remove `nil' coding-system in the result.
15484 (Fupdate_coding_systems_internal): Update all coding-categories.
15486 * coding.h (CODING_CATEGORY_IDX_UTF_8)
15487 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
15489 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
15490 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
15491 (CODING_CATEGORY_IDX_UTF_16_LE)
15492 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
15493 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
15494 (CODING_CATEGORY_MASK_ANY): Include the above macros.
15495 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
15497 2000-03-07 Gerd Moellmann <gerd@gnu.org>
15499 * doc.c (Fdocumentation_property): If value is not a string,
15500 and doesn't refer to etc/DOC, evaluate it to obtain a string.
15502 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
15503 close the display with XtCloseDisplay. This caused a bus error
15506 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
15507 complete but not unique.
15509 2000-03-06 Gerd Moellmann <gerd@gnu.org>
15511 * process.c (send_process): Remove local variable `procname' that
15512 might become invalid when a GC happens. Instead, access the
15513 process name slot directly.
15515 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
15516 orig_height if set.
15518 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
15519 orig_height if set.
15521 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
15523 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
15524 glyph matrices have been freed.
15526 2000-03-05 Gerd Moellmann <gerd@gnu.org>
15528 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
15529 (bootstrap-temacs): Set LC_ALL to C like for temacs.
15531 * xfns.c (QCdata): Moved to xdisp.c.
15533 * xdisp.c (QCdata): Moved here from xfns.c.
15534 (syms_of_xdisp): Initialize QCdata.
15536 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
15538 * window.c (coordinates_in_window): Use
15539 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
15540 FRAME_INTERNAL_BORDER_WIDTH.
15542 * xdisp.c (try_window_id): Recompute unchanged information if
15543 it is obviously invalid.
15545 * xterm.c (x_term_init): Create a colormap if not using the
15548 * xterm.h (select_visual): Change prototype.
15550 * xfns.c (select_visual): Rewritten. Recognize user-specified
15552 (visual_classes): New variable.
15554 2000-03-04 Gerd Moellmann <gerd@gnu.org>
15556 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
15557 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
15558 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
15559 (x_decode_color): Don't handle allocation of white and black specially.
15560 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
15561 XtNcolormap resources.
15562 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
15563 (Fx_create_frame): Initialize color members of x_output structure.
15564 (xpm_load): Pass colormap to XPM lib.
15566 * xfaces.c (x_free_colors): Access colormap of frame using
15567 FRAME_X_COLORMAP. Be paranoid about freeing black and white
15568 when default colormap is used.
15570 * xterm.c (x_term_init): Set Colormap member of x_display_info
15571 structure. Copy colormap if resource `privateColormap' is
15572 specified (PseudoColor only).
15573 (x_setup_relief_color): Access colormap of frame using
15576 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
15577 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
15579 2000-03-04 Jason Rumney <jasonr@gnu.org>
15581 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
15582 other non-platform-specific equivalents.
15583 [WINDOWSNT]: Include w32term.h, fontset.h and define X
15584 specific functions and macros as their w32 equivalents where
15585 non-platform-specifics are not available.
15586 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
15587 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
15588 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
15589 (frame_update_line_height): Use macros to access f->output_data.
15590 (defined_color): Remove FIXME comments; fixed.
15591 (x_face_list_fonts, prepare_face_for_display): Put X specifics
15592 into #ifdef blocks. Add WINDOWSNT blocks.
15593 (Fx_list_fonts): Use macros for accessing font data.
15594 (set_lface_from_font_name): Different default fonts for X and
15596 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
15597 scalable for backward compatibility.
15598 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
15599 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
15601 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
15604 * makefile.nt (w32faces.obj): Remove.
15607 2000-03-03 Jason Rumney <jasonr@gnu.org>
15609 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
15610 correct parameters.
15612 2000-03-03 Ken Raeburn <raeburn@gnu.org>
15614 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
15615 standard ELF definitions here if the system header does not.
15617 2000-03-03 Gerd Moellmann <gerd@gnu.org>
15619 * xterm.c (PER_CHAR_METRIC): Removed.
15620 (x_per_char_metric_1, x_default_char): New functions.
15621 (x_per_char_metric): If font's default char is invalid, return
15622 metrics of a suitably chosen usable default char.
15623 (x_draw_glyph_string_foreground): If font has an invalid default
15624 char, replace occurrences of unprintable chars with a suitably
15625 chosen usable default char.
15627 2000-03-02 Gerd Moellmann <gerd@gnu.org>
15629 * xterm.c (note_mouse_highlight): Return quickly if frame's
15630 glyph matrices have been freed.
15632 * dispnew.c (free_glyphs): Block input while freeing matrices.
15634 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
15636 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
15639 * dispextern.h (x_free_colors): Add prototype.
15641 * xfaces.c (x_free_colors): New function.
15642 (unload_color, free_face_colors): Use it.
15644 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
15646 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
15648 * window.c [MSDOS]: Include msdos.h.
15650 2000-03-02 Dave Love <fx@gnu.org>
15652 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
15654 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
15655 set C_OPTIMIZE_SWITCH for gcc.
15657 2000-03-02 Kenichi Handa <handa@etl.go.jp>
15659 * coding.c (coding_save_composition): Be sure to allocate
15660 composition data area in coding even if there's no composition in
15663 2000-03-01 Jason Rumney <jasonr@gnu.org>
15665 * w32term.c: Equivalent changes to those made to xterm.c on
15666 2000-02-25 and 2000-02-24.
15668 * w32fns.c: Equivalent changes to those made to xfns.c on
15669 2000-02-25 and 2000-02-21.
15671 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
15672 correct line-end convention is followed.
15674 * w32menu.c [HAVE_BOXES]: Remove #undef.
15675 (single_keymap_panes): Remove code for simulating checkmarks.
15676 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
15677 Remove code for drawing simulated checkmarks.
15678 (w32_menu_show): make unibyte help string correctly.
15679 (add_menu_item): draw standard Windows checkmarks. Draw radio
15680 buttons as radio buttons if possible.
15682 2000-03-01 Gerd Moellmann <gerd@gnu.org>
15684 * sysdep.c (start_of_text): Don't define this function for NetBSD
15687 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
15689 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
15690 (LINKER): Don't undef if __NetBSD__ is defined.
15692 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
15694 * fileio.c [__NetBSD__]: Define `unix'.
15696 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
15698 2000-02-29 Gerd Moellmann <gerd@gnu.org>
15700 * atimer.c (start_atimer): Don't abort when timers are stopped.
15701 (append_atimer_lists): New function.
15702 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
15703 arbitrary lists of stopped and running atimers.
15705 * atimer.c (cancel_atimer): Handle canceling an atimer when
15706 some timers are stopped.
15708 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
15709 after canceling it.
15711 * fns.c (maybe_resize_hash_table): Handle case of new size
15712 coming out as being the same as old size.
15714 2000-02-27 Jason Rumney <jasonr@gnu.org>
15716 * makefile.nt: Add atimer.h to dependencies.
15717 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
15718 * w32console.c: Only disable window system features for dispextern.h
15719 (initialize_w32_display): Build a display info for the console.
15720 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
15721 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
15722 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
15724 * w32gui.h (struct W32FontStruct): Revert last change after change
15726 * w32menu.c (single_submenu): Set up help string.
15727 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
15728 (w32_dialog_show): Set up help string.
15729 * w32term.c (w32_display_info_for_display): Remove unused function.
15730 (w32_draw_bitmap): Use pre-built bitmaps.
15731 (w32_initialize_display_info): New function to initialize parts of
15732 display info that are common to both GUI and console frames.
15733 (w32_term_init): Use w32_initialize_display_info. Do not set
15734 Vw32_num_mouse_buttons here, as it is not called for console
15735 frames. Build bitmaps for indicating truncated lines etc.
15736 (x_delete_display): Destroy pre-built bitmaps.
15737 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
15738 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
15740 2000-02-27 Dave Love <fx@gnu.org>
15742 * lisp.h: Add a bunch of prototypes.
15744 2000-02-26 Kenichi Handa <handa@etl.go.jp>
15746 * keyboard.c (read_char): Set `usec' correctly.
15748 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
15750 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
15751 `lambda', set reg[RRR] to the map index.
15752 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
15753 reg[RRR] to 0. Otherwise, set it to -1.
15755 2000-02-25 Gerd Moellmann <gerd@gnu.org>
15757 * emacs.c (main): Remove code snippet commented out with `//'.
15759 2000-02-25 Richard M. Stallman <rms@gnu.org>
15761 * fileio.c (Ffile_symlink_p): If result starts with a `/'
15762 and contains a `:', prepend `/:'.
15764 * window.c (select_window_1): If selected_window is nil,
15765 don't "swap out" the buffer's point.
15766 (Fset_window_configuration): Set selected_window to nil
15767 before calling Fselect_window.
15768 (unshow_buffer): Don't set point in buffer from window's point
15769 if another more recently selected window also shows the buffer.
15771 2000-02-25 Gerd Moellmann <gerd@gnu.org>
15773 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
15775 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
15776 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
15777 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
15779 (DEFAULT_BUSY_CURSOR_DELAY): New define.
15780 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
15781 (hide_busy_cursor): New functions.
15782 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
15784 * minibuf.c (read_minibuf): Cancel busy-cursor.
15786 * keyboard.c (command_loop_1): Call start_busy_cursor before
15787 Fcommand_execute and cancel_busy_cursor after it.
15788 (timer_check): Remove busy-cursor code.
15789 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
15792 * process.c (wait_reading_process_input): Remove busy-cursor code.
15794 * eval.c (Fsignal): Call cancel_busy_cursor instead of
15795 Fx_hide_busy_cursor.
15797 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
15799 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
15801 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
15803 * xterm.c (XTread_socket): Remove busy-cursor code.
15805 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
15806 (build_frame_matrix_from_leaf_window): Put code handling
15807 glyph row's not being a slice of a frame row in #if 0.
15808 (sync_window_with_frame_matrix_rows): New function.
15809 (frame_row_to_window): New function.
15810 (mirror_line_dance): Handle copies between windows.
15812 * lread.c (Fload): Use `xfree' instead of `free'.
15813 (init_obarray): Use `xmalloc' instead of `malloc'.
15815 * window.c (Fset_window_buffer): Set WINDOW to the window
15817 (coordinates_in_window): Take frame's internal border width
15820 2000-02-24 Gerd Moellmann <gerd@gnu.org>
15822 * xterm.c (x_display_and_set_cursor): Display cursor of
15823 non-selected windows depending on the setting of
15824 cursor_in_non_selected_windows.
15826 * xdisp.c (cursor_in_non_selected_windows): New variable.
15827 (syms_of_xdisp): DEFVAR_BOOL it.
15829 2000-02-23 Gerd Moellmann <gerd@gnu.org>
15831 * data.c (Fstring_to_number): If number is greater than what
15832 fits into an integer, return a float.
15834 * eval.c (specbind): Remove references to
15835 keyword_symbols_constant_flag.
15837 * data.c (keyword_symbols_constant_flag): Removed.
15838 (Fmakunbound, set_internal, syms_of_data): Remove references to
15839 keyword_symbols_constant_flag.
15841 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
15843 2000-02-23 Kenichi Handa <handa@etl.go.jp>
15845 * syntax.c (multibyte_syntax_as_symbol): New variable.
15846 (syms_of_syntax): Declare it as a Lisp variable.
15847 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
15848 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
15849 nonzero, treat all multibyte characters as symbol.
15850 (init_syntax_once): Give syntax `word' to all multibyte characters.
15852 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15854 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
15857 2000-02-21 Gerd Moellmann <gerd@gnu.org>
15859 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
15861 * xfns.c (x_window_to_frame, x_any_window_to_frame)
15862 (x_non_menubar_window_to_frame): Check the busy-cursor window.
15864 2000-02-21 Dave Love <fx@gnu.org>
15866 * frame.c (Vmouse_position_function): New variable.
15867 (Fmouse_position): Use it.
15868 (syms_of_frame): Install it.
15870 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
15872 2000-02-20 Gerd Moellmann <gerd@gnu.org>
15874 * fileio.c (Finsert_file_contents): Unbind the binding of
15875 standard-output done by temp_output_buffer_setup.
15877 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
15878 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
15879 (specbind, unbind_to): Handle most common case of non-constant
15880 symbol with trivial value specially.
15882 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
15884 2000-02-20 Richard M. Stallman <rms@gnu.org>
15886 * data.c (Fmake_variable_buffer_local): Doc fix.
15887 Init found_for_buffer to 0.
15888 (Fmake_variable_frame_local): If the variable has already
15889 been buffer-local, set the check_frame field.
15891 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
15893 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
15894 produced for CODING_MODE_LAST_BLOCK requires.
15896 2000-02-18 Dave Love <fx@gnu.org>
15898 * keyboard.c (echo_keystrokes): Remove declaration.
15899 (Vecho_keystrokes) New variable.
15900 (read_char, record_menu_key, read_key_sequence): Use it to allow
15901 use of float value.
15902 (syms_of_keyboard): Change Vecho_keystrokes declaration.
15904 * lread.c: Undef feature selection macros before defining.
15906 2000-02-18 Gerd Moellmann <gerd@gnu.org>
15908 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
15909 for symbols other than the symbol in question.
15911 2000-02-17 Dave Love <fx@gnu.org>
15913 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
15915 2000-02-17 Gerd Moellmann <gerd@gnu.org>
15917 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
15919 * alloc.c (enum mem_type): Compile unconditionally.
15921 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
15923 * xfaces.c (tty_defined_color): Don't return faulire indication
15924 for unspecified-fg and unspecified-bg pseudo-colors.
15926 2000-02-17 Gerd Moellmann <gerd@gnu.org>
15928 * alloc.c (mark_object): Don't mark symbol names in pure space.
15929 (gc_sweep): Don't unmark symbol names in pure space.
15931 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
15932 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
15933 [GC_MARK_STACK]: New defines.
15934 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
15935 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
15937 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
15939 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
15940 allocate_buffer instead of xmalloc.
15942 * alloc.c (toplevel): Include setjmp.h.
15943 (PURE_POINTER_P): New define.
15944 (enum mem_type) [GC_MARK_STACK]: New enumeration.
15945 (Vdead) [GC_MARK_STACK]: New variable.
15946 (lisp_malloc): Add parameter TYPE, call mem_insert if
15947 GC_MARK_STACK is defined.
15948 (allocate_buffer): New function.
15949 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
15950 (free_float) [GC_MARK_STACK]: Set type to Vdead.
15951 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
15952 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
15953 (MEM_NIL) [GC_MARK_STACK]: New define.
15954 (struct mem_node) [GC_MARK_STACK]: New structure.
15955 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
15956 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
15957 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
15958 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
15959 (mark_stack) [GC_MARK_STACK]: New functions.
15960 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
15961 (clear_marks): Removed.
15962 (gc_sweep): Set free conses' car, free floats' type, free
15963 symbols' function to Vdead. Use lisp_free to free buffers.
15964 (init_alloc_once): Initialize Vdead.
15965 (survives_gc_p): Return non-zero for pure objects.
15967 * alloc.c: Add comments throughout the file.
15969 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
15970 that unblocks alarms.
15972 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
15973 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
15974 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
15976 * frame.c (make_frame): Set frame initiallly to `garbaged'.
15978 2000-02-17 Kenichi Handa <handa@etl.go.jp>
15980 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
15981 avoid infinite error signaling. Allocate sufficient memory for
15982 eol_str in the case that eoltype is Lisp_Int.
15984 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
15986 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
15987 depends on the previous behavior.
15989 2000-02-16 Gerd Moellmann <gerd@gnu.org>
15991 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
15993 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15995 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
15997 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
15998 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
16001 2000-02-15 Richard M. Stallman <rms@gnu.org>
16003 * data.c (set_internal): Don't make variable buffer-local
16004 if within a let-binding for the same buffer.
16005 (let_shadows_buffer_binding_p): New function.
16007 * eval.c (specbind): For buffer-local value,
16008 record the current buffer also.
16009 (unbind_to): Cope with that change.
16011 2000-02-15 Gerd Moellmann <gerd@gnu.org>
16013 * window.c (Fsave_window_excursion): Doc fix.
16015 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
16017 * syntax.c (back_comment): Make sure we only consider comment-starters
16018 of the relevant style and return -1 in case of a failure to find the
16019 beginning of the comment.
16020 (Fforward_comment): If back_comment fails, go back to the position just
16021 after the comment-end.
16022 (scan_lists): Add comment describing a very minor bug.
16024 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
16026 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
16027 `completion-regexp-list' in the docstring.
16029 2000-02-14 Dave Love <fx@gnu.org>
16031 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
16033 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
16035 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
16036 to Emacs' syntax. Also fix the comment about set/not-set meanings
16037 since Emacs syntax is not the value 0 any more.
16038 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
16039 since it's now part of RE_SYNTAX_EMACS.
16041 2000-02-12 Dave Love <fx@gnu.org>
16043 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
16045 2000-02-12 Gerd Moellmann <gerd@gnu.org>
16047 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
16049 2000-02-12 Dave Love <fx@gnu.org>
16051 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
16053 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
16054 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
16055 * s/hpux.h: Don't define HAVE_VFORK.
16057 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
16059 * s/nextstep.h: Don't define HAVE_ALLOCA.
16061 * config.in: Add vfork bits.
16063 2000-02-12 Gerd Moellmann <gerd@gnu.org>
16065 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
16066 unwind function to undo the effect of stopping atimers.
16068 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
16070 * atimer.c (stopped_atimers): New variable.
16071 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
16074 * atimer.h (stop_other_atimers, run_all_atimers)
16075 (unwind_stop_other_atimers): Add function prototypes.
16077 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
16079 2000-02-11 Ken Raeburn <raeburn@gnu.org>
16081 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
16082 library may depend on jpeg.
16083 (atimer.o): Depends on atimer.c.
16085 2000-02-11 Kenichi Handa <handa@etl.go.jp>
16087 * insdel.c (del_range_1): Call update_compositions.
16088 (del_range_both): Call update_compositions just once..
16090 2000-02-10 Dave Love <fx@gnu.org>
16092 * xfns.c (create_frame_xic): Fix initialization of automatic
16093 aggregates for pcc.
16095 2000-02-09 Kenichi Handa <handa@etl.go.jp>
16097 * ccl.c (CCL_MAKE_CHAR): New macro.
16098 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
16099 registers by CCL_MAKE_CHAR before calling translate_char.
16100 <CCL_TranslateCharacterConstTbl> Likewise.
16102 2000-02-08 Dave Love <fx@gnu.org>
16104 * lread.c (__EXTENSIONS__): Define.
16106 2000-02-08 Gerd Moellmann <gerd@gnu.org>
16108 * puresize.h (BASE_PURESIZE): Increase to 650000.
16110 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
16112 * msdos.c (XMenuActivate): Turn off the cursor after displaying
16115 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
16117 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
16118 md, mh, mb, mr, and me to the fake termcap entry.
16120 2000-02-06 Ken Raeburn <raeburn@gnu.org>
16122 * sound.c (sound_cleanup): Don't call device close routine if the
16123 function pointer is null.
16125 2000-02-06 Andrew Innes <andrewi@gnu.org>
16127 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
16128 around image definitions and prototypes.
16129 (gamma_correct) [WINDOWSNT]: New prototype.
16131 * w32term.c (x_make_frame_visible): Replace call to
16132 input_poll_signal with poll_for_input.
16134 * window.c [WINDOWSNT]: Include w32term.h.
16136 * xdisp.c [WINDOWSNT]: Include w32term.h.
16138 * makefile.nt: Add dependencies on w32gui.h.
16139 (OBJ1): Include atimer.obj.
16140 ($(BLD)\atimer.obj): New dependency rule.
16142 * w32.c (sigmask): New function (does nothing).
16143 (sigunblock): Ditto.
16145 * frame.c [WINDOWSNT]: Include w32term.h.
16147 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
16149 * lread.c (syms_of_lread): Fix literal newlines.
16151 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
16152 the string constant limit (2048 bytes) in MSVC.
16155 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
16157 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
16158 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
16159 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
16160 dispatch the event.
16162 2000-02-04 Dave Love <fx@gnu.org>
16164 * fileio.c: Remove some unused vars.
16165 (_GNU_SOURCE): Define (for euidaccess).
16167 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
16169 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
16171 (read_minibuf): Deal with allow_props correctly.
16173 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
16175 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
16177 2000-02-03 Ken Raeburn <raeburn@gnu.org>
16179 * search.c (compile_pattern): If a cache entry has a nil regexp,
16180 fill in that entry instead of clobbering a previously cached
16183 2000-02-02 Ken Raeburn <raeburn@gnu.org>
16185 * puresize.h (BASE_PURESIZE): Increase to 610000.
16187 2000-02-02 Gerd Moellmann <gerd@gnu.org>
16189 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
16192 2000-02-02 Kenichi Handa <handa@etl.go.jp>
16194 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
16195 instead of incrementing ic directly.
16196 <CCL_WriteExprConst> Likewise.
16197 <ccl_set_expr>: Set ic to jump_address.
16199 * fileio.c (e_write): Fix the handling of
16200 CODING_FINISH_INSUFFICIENT_SRC.
16202 2000-02-01 Dave Love <fx@gnu.org>
16204 * editfns.c (Fpropertize): Doc fix.
16206 * process.c (Fstart_process): Doc fix.
16208 * eval.c: Fix various doc strings not to duplicate information
16209 from help-manyarg-func-alist.
16211 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
16213 * doc.c (Vhelp_manyarg_func_alist): New variable.
16214 (Fdocumentation): Use it.
16215 (syms_of_doc): Define it.
16217 2000-01-31 Gerd Moellmann <gerd@gnu.org>
16219 * xterm.c (xim_open_dpy): Remove unused local variable.
16221 * emacs.c (USAGE): Use term `display options' instead of `X options'.
16223 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
16224 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
16226 * fns.c (sweep_weak_table): New function.
16227 (sweep_weak_hash_tables): Use it. Keep on marking until there
16230 2000-01-30 Gerd Moellmann <gerd@gnu.org>
16232 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
16233 that XTread_socket does not crash by trying to call XNoOp on a
16236 2000-01-30 Jason Rumney <jasonr@gnu.org>
16238 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
16239 Change selected_frame to SELECTED_FRAME ().
16240 (w32_console_mouse_position): Remove #ifndef MULE from around
16241 `insist' parameter.
16243 * makefile.nt: Remove dosfns.obj.
16245 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
16247 * w32fns.c (w32_defined_color): Check for valid frame before
16248 applying gamma correction. Eliminate dependency on frame elsewhere.
16249 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
16250 (w32_to_x_font): Use resx and resy not height_in and width_in.
16251 (x_to_w32_font): Doc fix.
16252 (xlfd_strip_height): New function to strip and return font height.
16253 (w32_font_match): Compare height separately from rest of xlfd
16254 spec, using xlfd_strip_height.
16256 * w32term.c (w32_term_init): Swap resx and height_in, resy and
16257 width_in. Use w32_defined_color in place of defined_color.
16259 * w32faces.c: Merge more of DOS and X specifics in preparation for
16260 merge with xfaces.c.
16261 (defined_color): Remove FIXME comment.
16262 (tty_color_name): Provide w32-specific function.
16263 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
16265 * w32console.c (turn_on_face, turn_off_face): Removed.
16266 (w32_face_attributes): New function.
16267 (Global_variables): Reduce scope where possible.
16268 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
16270 (hl_mode): Don't modify text attributes.
16271 (write_glyphs): Don't do anything if len <= 0. Use
16272 w32_face_attributes to get attributes for drawing. Write
16273 terminating codes using char_attr_normal.
16274 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
16275 (update_begin, update_end): Likewise.
16276 (vga_stdcolor_name): New function.
16277 (initialize_w32_display): Remove char_attr_reverse and char_attr.
16278 (Fset_screen_color): Remove char_attr_reverse.
16280 2000-01-29 Gerd Moellmann <gerd@gnu.org>
16282 * xfns.c (xic_set_preeditarea): Take window parameter and
16283 window-relative pixel-positions.
16285 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
16286 is its frame's selected window.
16287 (xim_instantiate_callback): Likewise.
16289 * xfns.c (x_create_im): Removed.
16290 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
16291 (supported_xim_styles): Renamed from supported_styles.
16292 (best_xim_style): Renamed from best_style.
16293 (create_frame_xic): Renamed from xic_create_frame.
16294 (free_frame_xic): Renamed from xic_destroy_frame.
16296 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
16298 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
16299 our frames, call XFilterEvent with 2nd parameter `None'.
16300 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
16301 returning XBufferOverflow.
16302 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
16303 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
16304 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
16305 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
16306 (xim_initialize, xim_close)
16307 [HAVE_X_I18N && HAVE_X11R6]: New functions.
16308 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
16309 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
16310 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
16312 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
16314 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
16315 `xic_style' and `xic_xfs'.
16316 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
16317 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
16318 (FRAME_XIM): Removed.
16320 * xfns.c (supported_styles): New variable.
16321 (DEFAULT_STYLE, DEFAULT_FONT): New macros
16322 (xic_create_xfontset, best_style, xic_create_frame)
16323 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
16324 (xic_set_xfontset): New functions.
16326 2000-01-28 Dave Love <fx@gnu.org>
16328 * s/irix6-5.h: Revert last change after change to irix5-0.h.
16330 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
16332 2000-01-28 Gerd Moellmann <gerd@gnu.org>
16334 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
16335 for *scratch* if it already existed.
16337 * emacs.c (USAGE): New macro.
16338 (main): Use it to display usage information.
16340 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
16342 Support for the menu-help feature:
16344 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
16346 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
16347 part of the line to the termscript file.
16348 (IT_clear_to_end): Clear the entire line, not just its beginning.
16349 (menu_help_message, prev_menu_help_message): New variables.
16350 (IT_menu_make_room): Make room for the help_text member.
16351 (IT_menu_display): New argument disp_help; all callers changed.
16352 If disp_help is non-zero, store the help text of the active menu
16353 item in menu_help_message.
16354 (XMenuAddPane): Initialize the help_text member to NULL.
16355 (XMenuAddSelection): New argument help_text. Store it in the
16357 (XMenuActivate): New argument help_callback. If the value of
16358 menu_help_message has changed since the last time, display the
16359 menu help message text while waiting for the mouse to move. Clear
16360 the echo area before exiting.
16361 (XMenuDestroy): Free the help_text member.
16363 2000-01-27 Gerd Moellmann <gerd@gnu.org>
16365 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
16366 XMenuAddSelection. Pass help callback to XMenuActivate.
16367 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
16369 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
16371 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
16372 and EMACS_SET_USECS.
16374 2000-01-26 Dave Love <fx@gnu.org>
16376 * editfns.c (Fchar_after, Fchar_before): Doc fix.
16378 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
16379 an error may be signalled.
16381 2000-01-26 Gerd Moellmann <gerd@gnu.org>
16383 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
16384 LD_SWITCH_SYSTEM inherited from irix5-0.h.
16386 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
16388 2000-01-25 Gerd Moellmann <gerd@gnu.org>
16390 * charset.c (Fstring): If there is a multibyte char among
16391 the args, always return a multibyte string.
16393 2000-01-25 Gerd Moellmann <gerd@gnu.org>
16395 * sysdep.c (sys_select): Turn atimers off and on instead of
16396 recording and restoring old alarm handler
16398 * process.c (toplevel): Include atimer.h.
16399 (create_process_1): Rewritten.
16400 (create_process): Use atimers instead of alarm.
16401 (wait_reading_process_input) [hpux]: Turn atimers off instead
16402 of turning off SIGALRM.
16403 (wait_reading_process_input): Turn off atimers instead off
16404 calling stop_polling.
16406 * emacs.c (main): Call init_atimer.
16408 * keyboard.c (toplevel): Include systime.h and atimer.h.
16409 (polling_for_input): Removed because unused.
16410 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
16411 (poll_timer): New variable.
16412 (poll_for_input, poll_for_input_1): New functions.
16413 (start_polling, stop_polling): Rewritten.
16415 * keyboard.h (polling_for_input): Removed.
16417 * atimer.h, atimer.c: New files.
16419 * Makefile.in (obj): Add atimer.o.
16420 (atimer.o): New target.
16422 * blockinput.h (pending_atimers): Add extern declaration.
16423 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
16425 * lisp.h (popup_activated_flag): Add extern declaration.
16427 * xmenu.c (popup_activated_flag): Make externally visible.
16428 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
16429 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
16431 * xterm.c (toplevel): Include atimer.h.
16432 (toolkit_scroll_bar_interaction): New variable.
16433 (Fxt_process_timeouts): Removed.
16434 (x_process_timeouts): New function.
16435 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
16436 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
16437 (x_make_frame_visible): Call poll_for_input_1 instead of
16438 input_poll_signal. Don't call alarm.
16439 (x_initialize): Install timer calling x_process_timeouts.
16441 2000-01-24 Dave Love <fx@gnu.org>
16443 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
16444 Don't use -cckr -- apparently not now necessary.
16446 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
16448 * msdos.c (IT_menu_display): Truncate long menu lines at the right
16451 2000-01-23 Jason Rumney <jasonr@gnu.org>
16453 * w32fns.c (w32_defined_color): Apply gamma correction before
16454 trying to map to the palette.
16455 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
16458 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
16459 here. Callers changed to always pass real device context.
16460 (w32_draw_bitmap): Likewise.
16461 (w32_get_glyph_overhangs): Likewise.
16462 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
16463 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
16464 pfnSetScrollInfo and SetScrollRange.
16465 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
16466 back into MULE characters after decoding them.
16467 (x_get_glyph_face_and_encoding): Likewise.
16468 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
16469 GetCharABCWidthsW fails, since this is defined on Windows 9x.
16470 (x_produce_glyphs): Calculate per char metrics for a character
16471 that we know exists in default font when font_not_found_p is true.
16473 2000-01-22 Jason Rumney <jasonr@gnu.org>
16475 * makefile.nt (intervals.obj, composite.obj): New modules.
16476 (composite.h): Added as dependency where appropriate.
16478 * w32gui.h (XGCValue): New struct for emulating X GCs.
16480 * w32term.h (XCharStruct): New struct for emulating X.
16482 * w32console.c (turn_on_face, turn_off_face): New functions.
16483 (change_line_highlight): New prototype for new redisplay.
16484 (write_glyphs): Support multibyte text. Support faces.
16486 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
16488 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
16489 throughout. struct frame * in place of FRAME_PTR.
16490 Skeleton support for images, toolbars, tooltips from xfns.c.
16491 (Fx_create_frame): Use system default for default scroll bar width.
16492 (w32_get_arg): Renamed from x_get_arg.
16493 (Fx_file_dialog): New function.
16494 (w32_list_fonts): Check cache before asking system.
16495 (Vw32_enable_synthesized_fonts): New variable.
16496 (Vw32_enable_italics): Obsolete, removed.
16498 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
16499 Use SELECTED_FRAME macro.
16501 * w32menu.c: Add skeleton support for help strings on menus.
16502 (add_menu_item): Native checkbox and radio support added, but not
16503 yet enabled due to bugs.
16504 (push_menu_item): Add parameters type, selection and help.
16506 Formatting changes to reduce unnecessary diffs with xmenu.c.
16508 * w32select.c (Fw32_set_clipboard_data): Update call to
16509 find_charset_in_str.
16511 * w32term.c: Complete rewrite for new redisplay based on new
16512 xterm.c with necessary sections merged back in from old w32term.c.
16514 2000-01-21 Richard M. Stallman <rms@gnu.org>
16516 * data.c (set_internal): Further fix in same criterion.
16518 2000-01-20 Richard M. Stallman <rms@gnu.org>
16520 * data.c (set_internal): Fix the criteria for whether
16521 to swap out the old cached binding.
16523 2000-01-19 Dave Love <fx@gnu.org>
16525 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
16527 2000-01-18 Kenichi Handa <handa@etl.go.jp>
16529 * regex.c (re_compile_fastmap): While checking a range table for
16530 `charset', skip flag bits for a character class correctly.
16532 2000-01-17 Gerd Moellmann <gerd@gnu.org>
16534 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
16536 * xfns.c (x_window): Call lw_create_widget with new parameter list.
16538 * widget.c (EmacsFrameSetCharSize): Change size of children first
16539 because of problems with main window geometry management under Lesstif.
16541 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
16542 MENU_ITEMS_ITEM_.*.
16543 (MENU_ITEMS_ITEM_HELP): New enumerator.
16544 (push_menu_item): Add parameter HELP. Record help in menu_items.
16545 (single_menu_item, single_submenu, list_of_items): Call
16546 push_menu_item with new parameter.
16547 (single_submenu): Set help string in widget value.
16548 (menu_highlight_callback): New function.
16549 (set_frame_menubar): Call lw_create_widget with new
16551 (xmenu_show, xdialog_show): Ditto.
16553 2000-01-13 Gerd Moellmann <gerd@gnu.org>
16555 * sound.c (Fplay_sound): Improve doc string.
16557 2000-01-11 Richard M. Stallman <rms@gnu.org>
16559 * lisp.h (set_internal): Enter the new arg.
16561 * eval.c (specbind): Record buffer-local variables specially,
16562 indicating which buffer's binding was saved.
16563 (unbind_to): Restore buffer-local variables specially
16564 in the proper buffer.
16566 * data.c (set_internal): New arg BUF.
16568 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
16569 * data.c (Fset): Pass new arg to set_internal.
16570 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
16572 2000-01-11 Gerd Moellmann <gerd@gnu.org>
16574 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
16576 2000-01-11 Richard M. Stallman <rms@gnu.org>
16578 * minibuf.c (Ftry_completion): Doc fix.
16580 2000-01-11 Gerd Moellmann <gerd@gnu.org>
16582 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
16585 2000-01-11 Andreas Schwab <schwab@suse.de>
16587 * coding.c (code_convert_region): Initialize total_skip.
16589 2000-01-08 Dave Love <fx@gnu.org>
16591 * eval.c (Fuser_variable_p): Check customizability too.
16593 2000-01-07 Gerd Moellmann <gerd@gnu.org>
16595 * minibuf.c (Fcompleting_read): Doc fix.
16597 2000-01-05 Gerd Moellmann <gerd@gnu.org>
16599 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
16602 * xfns.c (x_create_im): New function to set IM and IC of a frame.
16603 Check that input style is supported before trying to create an
16605 (x_window): Call x_create_im.
16607 2000-01-04 Gerd Moellmann <gerd@gnu.org>
16609 * xfns.c (current_gif_memory_src): New variable.
16610 (gif_load): Record the address of the current memory source
16611 in current_gif_memory_src.
16612 (gif_read_from_memory): Use current_gif_memory_src.
16614 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
16615 macros statement form.
16617 * sound.c (struct sound): Renamed from struct sound_file.
16618 (struct sound): Add members `data' and `header_size'.
16619 (enum sound_attr): Add SOUND_DATA.
16620 (current_sound, current_sound_device): Variables renamed from
16621 sound_file and sound_device.
16622 (parse_sound): Parse :data.
16623 (parse_sound): Handle sound data in strings.
16624 (find_sound_type): Function renamed from find_sound_file_type.
16625 (wav_init, au_init): Fail if sound's header_size is smaller than
16626 needed header size.
16627 (wav_play, au_play): Play sounds from string data.
16629 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
16631 * lisp.h: Add prototype for allocate_string_data.
16633 * alloc.c (Fgarbage_collect): Return number of live and free strings.
16635 * alloc.c (mark_buffer): Remove code in #if 0.
16637 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
16638 (strings_consed): New variable.
16639 (allocate_string): Set it.
16640 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
16641 (Fmemory_use_counts): Return strings_consed. Use Flist.
16643 * alloc.c: General cleanup in comments etc. Remove conditional
16644 compilation for `standalone'.
16646 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
16648 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
16649 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
16650 (DONT_COPY_FLAG): Removed.
16651 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
16652 (struct sdata, struct sblock): New
16653 (struct string_block): Rewritten.
16654 (STRINGS_IN_STRING_BLOCK): New macro.
16655 (oldest_sblock, current_sblock, total_strings, total_free_strings)
16656 (large_sblocks, string_blocks, string_free_list): New variables.
16657 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
16658 (init_strings): Rewritten.
16659 (allocate_string, allocate_string_data, compact_small_strings)
16660 (free_large_strings, sweep_strings): New functions.
16661 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
16662 (struct string_block_head, current_string_block)
16663 (first_string_block, large_string_blocks, STRING_FULLSIZE)
16664 (STRING_PAD): Removed.
16665 (make_uninit_multibyte_string, make_pure_string): Rewritten.
16666 (Fgarbage_collect): Don't set mark bit in large strings.
16667 (mark_object): Mark strings differently. Mark symbol names
16669 (survives_gc_p): Test marked strings differently.
16670 (gc_sweep): Sweep strings differently, unmark strings in
16672 (compact_strings): Removed.
16674 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
16676 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
16677 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
16679 2000-01-04 Kenichi Handa <handa@etl.go.jp>
16681 * fileio.c (Finsert_file_contents): Signal error if visiting file
16682 in a non-empty buffer.
16684 * term.c (encode_terminal_code): Fix the previous change.
16686 2000-01-03 Gerd Moellmann <gerd@gnu.org>
16688 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
16689 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
16691 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
16693 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16695 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
16696 need to test for MSDOS frames.
16698 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16700 * dosfns.c (unspecified_colors): Remove.
16701 (msdos_stdcolor_idx): Use global variables unspecified_fg and
16703 (msdos_stdcolor_name): Return strings for unspecified fore- and
16704 back-ground colors.
16706 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
16707 (syms_of_xfaces): Remove their staticpro's.
16708 (tty_color_name): Return Lisp strings for unspecified fore- and
16709 back-ground colors.
16710 (Finternal_set_lisp_face_attribute): Remove the special treatment
16711 for Qunspecified_{f,b}g.
16712 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
16714 2000-01-03 Gerd Moellmann <gerd@gnu.org>
16716 * xdisp.c (reseat_at_next_visible_line_start): Position before
16717 newline only if ending up on a newline.
16718 (next_element_from_ellipsis): Return success. Handle case of
16719 displaying no ellipsis. Fix case of ellipsis defined in display table.
16720 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
16723 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
16725 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
16726 (Fcolor_supported_p): Renamed from face-color-supported-p.
16728 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16730 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
16731 list of colors renamed to tty-defined-color-alist.
16732 (tty_color_name): Pass the frame to tty-color-by-index.
16733 (realize_tty_face): tty-color-alist is now a function which
16734 accepts the frame as argument.
16736 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
16738 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16740 * term.c (insert_glyphs): Pass glyph, not &glyph, to
16741 encode_terminal_code.
16743 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16745 * dispnew.c (mode_line_string): Support termcap frames as well.
16747 2000-01-01 Gerd Moellmann <gerd@gnu.org>
16749 * syntax.c (Fforward_word): Undo previous change.
16751 * editfns.c (Fconstrain_to_field): Don't constrain if
16752 inhibit-field-text-motion is non-nil.
16753 (Fline_beginning_position): Undo previous change.
16754 (Fline_end_position): Ditto.
16756 * syntax.c (Fforward_word): Notice field boundaries only if
16757 inhibit-field-text-motion is nil.
16759 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
16761 * editfns.c (Vinhibit_field_text_motion): New variable.
16762 (inhibit-field-text-motion): New DEFVAR_LISP.
16763 (Fline_beginning_position, Fline_end_position): Notice field
16764 boundaries only if inhibit-field-text-motion is nil.
16766 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
16767 All calls adjusted.
16768 (x_build_heuristic_mask): Likewise.
16769 (xbm_load_image_from_file): Change error output.
16770 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
16771 (gif_load, gs_load, x_kill_gs_process): Ditto.
16773 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
16774 color indices when accessing raster pixels.
16775 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
16776 one of :file or :data.
16777 (enum pbm_keyword_index): Add PBM_DATA.
16778 (pbm_format): Add :data.
16779 (pbm_image_p): Allow either :file or :data.
16780 (pbm_read_file): New function.
16781 (pbm_scan_number): Rewritten to read from string.
16782 (pbm_load): Support :data.
16784 See ChangeLog.8 for earlier changes.
16786 ;; Local Variables:
16787 ;; coding: iso-2022-7bit
16790 Copyright (C) 2001, 2002 Free Software Foundation, Inc.
16791 Copying and distribution of this file, with or without modification,
16792 are permitted provided the copyright notice and this notice are preserved.