1 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
3 The following changes are to make font selection based on
4 characters, not charset. In addition, they recover fontset
5 facilities while utilizing the new font selection mechanism.
7 * Makefile.in (fontset.o): Depend on dispextern.h.
9 * alloc.c (mark_face_cache): Don't mark face->registry.
11 * dispextern.h (struct glyph): New member glyph_not_available_p.
12 Use 22 bits for face_id.
13 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
14 (struct face): Delete member registry, new member ascii_face.
15 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
16 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
17 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
18 (struct it): Delete member charset, new member
19 glyph_not_available_p.
21 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
22 (struct fontset_info, struct fontset_data): Structs removed.
23 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
24 Vglobale_fontset_alist, font_idx_temp): Externs removed.
25 (fs_load_font, fs_query_fontset): Adjusted for new argument.
26 (fs_free_face_fontset, fontset_font_pattern,
27 face_suitable_for_char_p, face_for_char,
28 make_fontset_for_ascii_face): Extern them.
29 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
30 (FS_LOAD_FACE_FONT): New macro.
32 * fontset.c: All codes rewritten or adjusted for the change of
33 fontset implementation. Now fontset is represented by char table.
34 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
36 (my_strcasecmp): Function removed.
37 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
39 (AREF, ASIZE): New macros.
40 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
41 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
42 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
43 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
44 fontset_id_valid_p, font_family_registry, fontset_name,
45 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
46 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
48 (fs_load_font): New arg FACE. Caller changed.
49 (fs_query_fontset): Argument changed. Caller changed.
50 (Fquery_fontset): call fs_query_fontset.
51 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
53 (clear_fontset_elements, check_registry_encoding,
54 check_fontset_name): New functions.
55 (syms_of_fontset): Set char-table-extra-slots property of fontset
56 to 3. Staticpro and initialize Vfontset_table and
57 Vdefault_fontset. Defsubr fontset_font and fontset_list.
59 * frame.h (struct frame): Member `fontset_data' removed.
60 (FRAME_FONTSET_DATA): Macro removed.
62 * frame.c (make_frame): Don't allocate f->fontset_data.
63 (Fdelete_frame): Don't free f->fontset_data.
65 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
67 * xdisp.c (charset_at_position): Function removed.
68 (init_iterator): Don't set member charset of struct `it'.
69 (handle_face_prop, reseat_to_string, set_iterator_to_next,
70 next_element_from_display_vector, insert_left_trunc_glyphs):
72 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
74 (get_next_display_element, append_space,
75 extend_face_to_end_of_line): Likewise.
77 * xfaces.c (Qx_charset_registry, Vface_default_registry):
79 (clear_font_table, frame_update_line_height, load_face_font):
80 Adjusted for the change of fontset implementation.
81 (load_face_fontset_font): Function removed.
82 (pixel_point_size): New function.
83 (font_list): Argument type changed. Caller changed.
84 (LFACE_FONT): New macro.
85 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
86 (set_lface_from_font_name): Type of arg FONTNAME is changed to
87 Lisp_Object. Determine the font name by actually loading a font
88 by the specified pattern. Set LFACE_FONT (lface) to the specified
89 pattern. Even if a font is not found, don't try alternatives.
90 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
91 (set_font_frame_param): If `font' is specified in lface, use it.
92 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
93 (lface_same_font_attributes_p): Likewise.
94 (make_realized_face): Arguent changed. Caller changed. Set
95 face->ascii_face to face itself.
96 (free_realized_face): Free face->fontset if face is for ASCII.
97 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
98 deduce_unibyte_registry, x_charset_registry): Functions removed.
99 (free_realized_multibyte_face): New function.
100 (lookup_face, lookup_named_face, lookup_derived_face): Argument
101 changed. Caller changed.
102 (try_font_list): Argument type changed.
103 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
104 (choose_face_font): Argument changed. Handle fontset properly.
105 (choose_face_fontset_font): Function removed.
106 (realize_default_face, realize_named_face): Don't remove the
108 (realize_face): Argument changed. Caller changed. Remove face
109 with the arg former_face_id in advance. Load font for the new
111 (realize_x_face): Argument changed. Caller changed. For a
112 multibyte character, share fontset with base_face. For a single
113 byte character, make a new realized fontset. Don't load a font
115 (realize_tty_face): Argument changed. Caller changed.
116 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
117 (face_at_buffer_position): Don't check multibyte_p for returning
119 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
120 FACE_SUITABLE_FOR_CHARSET_P.
121 (syms_of_xfaces): Remove code for Qx_charset_registry and
122 Vface_default_registry.
124 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
125 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
126 (x_per_char_metric): Don't try FONT->default_char. Even if
127 pcm->width is zero, glyph bits may exist.
128 (x_encode_char): Always initialize char2b->byte1.
129 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
130 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
132 (x_append_glyph): Set glyph->glyph_not_available_p.
133 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
134 it->charset. Handle the case that per char metric is not
135 available. If it->multibyte_p is zero and it->c is a multibyte
136 character, convert it to a unibyte character.
137 (struct glyph_string): Delete member `charset'.
138 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
139 the case that per char metric is not available correctly.
140 (x_fill_glyph_string): Handle the case that the specific glyph is
141 not available correctly.
142 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
143 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
144 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
145 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
146 fontset. Don't call FS_LOAD_FONT.
148 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
149 (x_create_tip_frame): Likewise.
150 (Fx_close_connection): Free full_name of font_info.
152 * fns.c (optimize_sub_char_table): New function.
153 (Foptimize_char_table): New function.
154 (syms_of_fns): Defsubr Soptimize_char_table.
156 2000-03-20 Gerd Moellmann <gerd@gnu.org>
158 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
159 only if buffer is displayed in some window.
161 * xdisp.c (handle_single_display_prop): Initialize local `value'.
162 (try_window_reusing_current_matrix): Don't call scroll run
163 function if run's current and desired position are the same;
164 this prevents cursor flickering.
166 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
168 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
170 * regex.c (RE_STRING_CHAR): New macro.
171 (GET_CHAR_AFER_2): Remove.
172 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
173 (enum re_opcode_t): Remove on_failure_jump_exclusive.
174 (print_partial_compiled_pattern, re_compile_fastmap)
175 (re_match_2_internal): Remove on_failure_jump_exclusive.
176 (regex_compile): Turn optimizable P+ loops into PP*, so that the
177 optimization only need to work for * (ie. can use of_keep_string_jump).
178 Remove the special case for .*\n since it is now covered by the general
180 (re_search_2): Don't bother with `room'.
181 (skip_one_char): New function.
182 (skip_noops): Simplify since `memory' is not needed any more.
183 (mutually_exclusive_p): Restructure slightly to use `switch' and
184 add handling for "all" remaining cases.
185 (re_match_2_internal): Change on_failure_jump_smart to use
186 on_failure_keep_string_jump (and redirect the end-of-loop jump)
187 rather than on_failure_jump_exclusive.
189 2000-03-19 Gerd Moellmann <gerd@gnu.org>
191 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
192 number of bits per RGB because it's everywhere used as the depth
195 * term.c (calculate_costs): Remove code dealing with X frames.
197 2000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
199 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
201 2000-03-18 Gerd Moellmann <gerd@gnu.org>
203 * lread.c (read_integer): Unread the last char not consumed.
205 2000-03-17 Gerd Moellmann <gerd@gnu.org>
207 * xterm.c (x_update_window_cursor): Don't update in frames
208 which are in the process of being deleted.
210 2000-03-16 Gerd Moellmann <gerd@gnu.org>
212 * Makefile.in (mostlyclean): Add `*.core'.
213 (clean): Add `bootstrap-emacs'.
215 * lread.c (read_integer): New function.
216 (read1): Support read syntax #o, #x, #b, #r.
218 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
220 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
221 make sure POINTER_TO_OFFSET gives the same value before and after
222 PREFETCH. Use `dfail' to guarantee "atomic" matching.
223 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
224 (debug): Now only active if > 0 rather than if != 0.
225 (DEBUG_*): Update for the new meaning of `debug'.
226 (print_partial_compiled_pattern): Add missing `succeed' case. Use
227 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
228 in `succeed_n', `jump_n' and `set_number_at'.
229 (store_op1, store_op2, insert_op1, insert_op2)
230 (at_begline_loc_p, at_endline_loc_p): Add prototype.
231 (group_in_compile_stack): Move to after its arg's types are
232 declared and add a prototype.
233 (PATFETCH): Define in terms of PATFETCH_RAW.
234 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
236 (QUIT): Redefine as a nop except for NTemacs.
237 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
238 indentation of the greedy-op and shy-group code.
239 (at_(beg|end)line_loc_p): Fix argument's types.
240 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
241 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
242 (MATCHING_IN_FIRST_STRING): Remove.
243 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
244 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
245 QUIT unconditionally.
247 2000-03-15 Gerd Moellmann <gerd@gnu.org>
249 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
252 * process.c (send_process): Add a hint that the function
253 can call Lisp code to its comment.
255 * lread.c (load_dangerous_libraries): New variable.
256 (Vbytecomp_version_regexp): New variable.
257 (safe_to_load_p): New function.
258 (Fload): Handle files not compiled with Emacs specially.
259 (syms_of_lread): New Lisp variable load-dangerous-libraries.
261 2000-03-14 Gerd Moellmann <gerd@gnu.org>
263 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
265 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
266 support functions only if HAVE_X11R6_XIM is defined.
267 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
269 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
271 * xfns.c (X_I18N_INHIBITED): Don't define.
272 (create_frame_xic): Remove conditional compilation on
274 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
276 * config.in (HAVE_X_I18N): Moved here from xterm.h.
277 (HAVE_X11R6_XIM): Define.
279 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
281 * xterm.c (x_term_init): Add support for X resource `synchronous'.
282 If set, call XSynchronize.
284 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
286 * regex.c: Declare a new type `re_char' used throughout the code
287 for the string char type. It's `const unsigned char' to match the
288 rest of Emacs. Consistently make sure all pointers to strings use
289 it and make sure all pointers into the pattern use `unsigned
291 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
292 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
295 * charset.h (GET_CHAR_AFTER_2): Remove.
296 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
298 2000-03-12 Ken Raeburn <raeburn@gnu.org>
300 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
301 variable before the invocation of YMF_PASS_LDFLAGS, in case both
302 of them try to use backquotes.
304 2000-03-12 Dave Love <fx@gnu.org>
306 * unexelf.c: Restore changes of 1999-10-19.
307 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
308 fix its type and alignment; copy it from current process.
310 2000-03-12 Gerd Moellmann <gerd@gnu.org>
312 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
313 has been found. Fix bug not computing timer's predecessor.
315 * fileio.c (Fread_file_name): Handle case that DIR contains a
318 * window.c (Fsave_window_excursion): Doc fix.
320 * xfns.c (x_defined_color): Rewritten to use
321 x_allocate_nearest_color.
323 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
325 * msdos.c (vga_installed): New function, code moved from
327 (Qbar, Qcursor_type, outside_cursor): New variables.
328 (syms_of_msdos): Intern and staticpro them.
329 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
330 shape used outside Emacs when called for the first time.
331 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
332 cursor shape used outside Emacs.
333 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
334 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
336 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
337 parameters specify the cursor. Make qreverse a global
338 variable (renamed to Qreverse).
340 2000-03-09 Gerd Moellmann <gerd@gnu.org>
342 * fns.c (Fy_or_n_p): Cancel busy-cursor.
344 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
346 This is a big redesign of failure-stack and register handling, prompted
347 by bugs revealed when trying to add shy-groups. Overall, what happened
348 is that loops are now structured a little differently, groups can be
349 shy and the code is a little simpler.
351 * regex.h: Update the copyright.
352 (RE_SHY_GROUPS): New value.
353 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
354 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
356 * regex.c (enum re_opcode_t): Remove jump_past_alt,
357 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
358 on_failure_jump_(exclusive, loop and smart). Also fix the comment
359 for (start|stop)_memory since they now only take one argument (the
360 second has becomes unnecessary).
361 (print_partial_compiled_pattern): Adjust for changes in
363 (print_compiled_pattern): Use %ld to printf long ints and flush to
364 make debugging a little easier.
365 (union fail_stack_elt): Make the integer unsigned.
366 (struct fail_stack_type): Add a `frame' element.
367 (INIT_FAIL_STACK): Init `frame' as well.
368 (POP_PATTERN_OP): New macro for re_compile_fastmap.
369 (DEBUG_PUSH, DEBUG_POP): Remove.
370 (NUM_REG_ITEMS): Remove.
371 (NUM_NONREG_ITEMS): Adjust.
372 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
373 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
374 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
375 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
377 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
378 address pushed is not the destination of the jump but the source
380 (NUM_FAILURE_ITEMS): Remove.
381 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
382 registers before the actual failure point). Don't hardcode any
383 meaning for str==NULL anymore.
384 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
385 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
387 (REG_UNSET_VALUE): Use NULL (why not?).
388 (compile_range): Remove declaration since it doesn't exist.
389 (struct compile_stack_elt_t): Remove inner_group_offset.
390 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
391 (regex_grow_registers): Remove dead code.
392 (FIXUP_ALT_JUMP): New macro.
393 (regex_compile): Add shy-groups Change loops to use
394 on_failure_jump_smart&jump instead of
395 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
396 initial (dummy_failure_)jump. Remove c1_base (looks like unused
397 variable to me). Use `jump' instead of `jump_past_alt' and don't
398 bother with push_dummy_failure in alternatives since it is now
399 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
400 emacs' for (re)allocating the stack.
401 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
402 from loop when bufp->can_be_null rather than jumping to `done'.
403 Avoid jumping backwards so as to ensure termination. Use
404 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
405 backreferences. Remove dead code in handling of `anychar'.
406 (skip_noops, mutually_exclusive_p): New functions taken from the
407 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
408 improve mutually_exclusive_p to handle ".+\n".
409 (lowest_active_reg, highest_active_reg,
410 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
411 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
412 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
413 variables. Push register (in `start_memory') on the stack rather
414 than storing it in old_reg(start|end). Remove the cycle detection
415 from `stop_memory', replaced by the use of on_failure_jump_loop
416 for greedy loops. Add code for the new on_failure_jump_<foo>.
417 Remove ad-hoc code in `on_failure_jump' to push more registers in
418 the case of a loop. Take out code from `maybe_pop_jump' into
419 separate functions and adapt it to the semantics of
420 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
421 and push_dummy_failure. Remove dummy_failure handling and
422 handling of `failures to jump to on_failure_jump' (this last one
423 was already dead code, it seems).
424 (group_match_null_string_p, alt_match_null_string_p)
425 (common_op_match_null_string_p): Remove.
427 2000-03-08 Dave Love <fx@gnu.org>
429 * config.in: Don't depend on __STDC__ for volatile.
430 Add POINTER_TYPE, PTR, PROTOTYPES.
432 * hftctl.c, strftime.c: Use PROTOTYPES.
433 * eval.c (find_handler_clause): Likewise.
435 * mem-limits.h: Use POINTER_TYPE.
437 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
438 (memory_warnings): Declare using POINTER_TYPE.
440 2000-03-08 Gerd Moellmann <gerd@gnu.org>
442 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
444 * xdisp.c (display_echo_area): Temporarily inhibit garbage
447 * xfns.c: Remove obsolete code in #if 0.
448 (Fx_focus_frame): New function.
450 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
452 * coding.c (coding_category_name): Add coding-category-utf-8,
453 coding-category-utf-16-be, coding-category-utf-16-le.
454 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
455 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
456 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
457 (detect_coding_utf_8): New function.
458 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
459 UTF_16_LOW_SURROGATE_P): New macros.
460 (detect_coding_utf_16): New function
461 (detect_coding_mask): When priorities are specified, skip any
462 categories that have `nil' coding-system. Fix bug of returning
463 wrong mask when PRIORITIES is specified and detect_coding_XXX()
464 returns a mask not set in PRIORITIES.
465 (detect_eol_type_in_2_octet_form): New function.
466 (detect_eol): selects detect_eol_type_XXX to call according to
467 cooding->category_idx.
468 (detect_coding_system): Remove `nil' coding-system in the result.
469 (Fupdate_coding_systems_internal): Update all coding-categories.
471 * coding.h (CODING_CATEGORY_IDX_UTF_8,
472 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
474 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
475 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
476 CODING_CATEGORY_IDX_UTF_16_LE.
477 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
478 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
479 (CODING_CATEGORY_MASK_ANY): Include the above macros.
480 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
482 2000-03-07 Gerd Moellmann <gerd@gnu.org>
484 * doc.c (Fdocumentation_property): If value is not a string,
485 and doesn't refer to etc/DOC, evaluate it to obtain a string.
487 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
488 close the display with XtCloseDisplay. This caused a bus error
491 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
492 complete but not unique.
494 2000-03-06 Gerd Moellmann <gerd@gnu.org>
496 * process.c (send_process): Remove local variable `procname' that
497 might become invalid when a GC happens. Instead, access the
498 process name slot directly.
500 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
503 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
506 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
508 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
509 glyph matrices have been freed.
511 2000-03-05 Gerd Moellmann <gerd@gnu.org>
513 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
514 (bootstrap-temacs): Set LC_ALL to C like for temacs.
516 * xfns.c (QCdata): Moved to xdisp.c.
518 * xdisp.c (QCdata): Moved here from xfns.c.
519 (syms_of_xdisp): Initialize QCdata.
521 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
523 * window.c (coordinates_in_window): Use
524 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
525 FRAME_INTERNAL_BORDER_WIDTH.
527 * xdisp.c (try_window_id): Recompute unchanged information if
528 it is obviously invalid.
530 * xterm.c (x_term_init): Create a colormap if not using the
533 * xterm.h (select_visual): Change prototype.
535 * xfns.c (select_visual): Rewritten. Recognize user-specified
537 (visual_classes): New variable.
539 2000-03-04 Gerd Moellmann <gerd@gnu.org>
541 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
542 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
543 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
544 (x_decode_color): Don't handle allocation of white and black
546 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
547 XtNcolormap resources.
548 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
549 (Fx_create_frame): Initialize color members of x_output structure.
550 (xpm_load): Pass colormap to XPM lib.
552 * xfaces.c (x_free_colors): Access colormap of frame using
553 FRAME_X_COLORMAP. Be paranoid about freeing black and white
554 when default colormap is used.
556 * xterm.c (x_term_init): Set Colormap member of x_display_info
557 structure. Copy colormap if resource `privateColormap' is
558 specified (PseudoColor only).
559 (x_setup_relief_color): Access colormap of frame using
562 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
563 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
565 2000-03-04 Jason Rumney <jasonr@gnu.org>
567 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
568 other non-platform-specific equivalents.
569 [WINDOWSNT]: Include w32term.h, fontset.h and define X
570 specific functions and macros as their w32 equivalents where
571 non-platform-specifics are not available.
572 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
573 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
574 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
575 (frame_update_line_height): Use macros to access f->output_data.
576 (defined_color): Remove FIXME comments; fixed.
577 (x_face_list_fonts, prepare_face_for_display): Put X specifics
578 into #ifdef blocks. Add WINDOWSNT blocks.
579 (Fx_list_fonts): Use macros for accessing font data.
580 (set_lface_from_font_name): Different default fonts for X and
582 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
583 scalable for backward compatibility.
584 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
585 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
587 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
590 * makefile.nt (w32faces.obj): Remove.
593 2000-03-03 Jason Rumney <jasonr@gnu.org>
595 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
598 2000-03-03 Ken Raeburn <raeburn@gnu.org>
600 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
601 standard ELF definitions here if the system header does not.
603 2000-03-03 Gerd Moellmann <gerd@gnu.org>
605 * xterm.c (PER_CHAR_METRIC): Removed.
606 (x_per_char_metric_1, x_default_char): New functions.
607 (x_per_char_metric): If font's default char is invalid, return
608 metrics of a suitably chosen usable default char.
609 (x_draw_glyph_string_foreground): If font has an invalid default
610 char, replace occurrences of unprintable chars with a suitably
611 chosen usable default char.
613 2000-03-02 Gerd Moellmann <gerd@gnu.org>
615 * xterm.c (note_mouse_highlight): Return quickly if frame's
616 glyph matrices have been freed.
618 * dispnew.c (free_glyphs): Block input while freeing matrices.
620 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
622 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
625 * dispextern.h (x_free_colors): Add prototype.
627 * xfaces.c (x_free_colors): New function.
628 (unload_color, free_face_colors): Use it.
630 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
632 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
634 * window.c [MSDOS]: Include msdos.h.
636 2000-03-02 Dave Love <fx@gnu.org>
638 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
640 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
641 set C_OPTIMIZE_SWITCH for gcc.
643 2000-03-02 Kenichi Handa <handa@etl.go.jp>
645 * coding.c (coding_save_composition): Be sure to allocate
646 composition data area in coding even if there's no composition in
649 2000-03-01 Jason Rumney <jasonr@gnu.org>
651 * w32term.c: Equivalent changes to those made to xterm.c on
652 2000-02-25 and 2000-02-24.
654 * w32fns.c: Equivalent changes to those made to xfns.c on
655 2000-02-25 and 2000-02-21.
657 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
658 correct line-end convention is followed.
660 * w32menu.c [HAVE_BOXES]: Remove #undef.
661 (single_keymap_panes): Remove code for simulating checkmarks.
662 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
663 Remove code for drawing simulated checkmarks.
664 (w32_menu_show): make unibyte help string correctly.
665 (add_menu_item): draw standard Windows checkmarks. Draw radio
666 buttons as radio buttons if possible.
668 2000-03-01 Gerd Moellmann <gerd@gnu.org>
670 * sysdep.c (start_of_text): Don't define this function for NetBSD
673 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
675 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
676 (LINKER): Don't undef if __NetBSD__ is defined.
678 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
680 * fileio.c [__NetBSD__]: Define `unix'.
682 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
684 2000-02-29 Gerd Moellmann <gerd@gnu.org>
686 * atimer.c (start_atimer): Don't abort when timers are stopped.
687 (append_atimer_lists): New function.
688 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
689 arbitrary lists of stopped and running atimers.
691 * atimer.c (cancel_atimer): Handle canceling an atimer when
692 some timers are stopped.
694 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
697 * fns.c (maybe_resize_hash_table): Handle case of new size
698 coming out as being the same as old size.
700 2000-02-27 Jason Rumney <jasonr@gnu.org>
702 * makefile.nt: Add atimer.h to dependencies.
703 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
704 * w32console.c: Only disable window system features for dispextern.h
705 (initialize_w32_display): Build a display info for the console.
706 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
707 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
708 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
710 * w32gui.h (struct W32FontStruct): Revert last change after change
712 * w32menu.c (single_submenu): Set up help string.
713 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
714 (w32_dialog_show): Set up help string.
715 * w32term.c (w32_display_info_for_display): Remove unused function.
716 (w32_draw_bitmap): Use pre-built bitmaps.
717 (w32_initialize_display_info): New function to initialize parts of
718 display info that are common to both GUI and console frames.
719 (w32_term_init): Use w32_initialize_display_info. Do not set
720 Vw32_num_mouse_buttons here, as it is not called for console
721 frames. Build bitmaps for indicating truncated lines etc.
722 (x_delete_display): Destroy pre-built bitmaps.
723 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
724 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
726 2000-02-27 Dave Love <fx@gnu.org>
728 * lisp.h: Add a bunch of prototypes.
730 2000-02-26 Kenichi Handa <handa@etl.go.jp>
732 * keyboard.c (read_char): Set `usec' correctly.
734 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
736 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
737 `lambda', set reg[RRR] to the map index.
738 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
739 reg[RRR] to 0. Otherwise, set it to -1.
741 2000-02-25 Gerd Moellmann <gerd@gnu.org>
743 * emacs.c (main): Remove code snippet commented out with `//'.
745 2000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
747 * fileio.c (Ffile_symlink_p): If result starts with a `/'
748 and contains a `:', prepend `/:'.
750 * window.c (select_window_1): If selected_window is nil,
751 don't "swap out" the buffer's point.
752 (Fset_window_configuration): Set selected_window to nil
753 before calling Fselect_window.
754 (unshow_buffer): Don't set point in buffer from window's point
755 if another more recently selected window also shows the buffer.
757 2000-02-25 Gerd Moellmann <gerd@gnu.org>
759 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
761 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
762 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
763 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
765 (DEFAULT_BUSY_CURSOR_DELAY): New define.
766 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
767 (hide_busy_cursor): New functions.
768 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
770 * minibuf.c (read_minibuf): Cancel busy-cursor.
772 * keyboard.c (command_loop_1): Call start_busy_cursor before
773 Fcommand_execute and cancel_busy_cursor after it.
774 (timer_check): Remove busy-cursor code.
775 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
778 * process.c (wait_reading_process_input): Remove busy-cursor code.
780 * eval.c (Fsignal): Call cancel_busy_cursor instead of
783 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
785 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
787 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
789 * xterm.c (XTread_socket): Remove busy-cursor code.
791 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
792 (build_frame_matrix_from_leaf_window): Put code handling
793 glyph row's not being a slice of a frame row in #if 0.
794 (sync_window_with_frame_matrix_rows): New function.
795 (frame_row_to_window): New function.
796 (mirror_line_dance): Handle copies between windows.
798 * lread.c (Fload): Use `xfree' instead of `free'.
799 (init_obarray): Use `xmalloc' instead of `malloc'.
801 * window.c (Fset_window_buffer): Set WINDOW to the window
803 (coordinates_in_window): Take frame's internal border width
806 2000-02-24 Gerd Moellmann <gerd@gnu.org>
808 * xterm.c (x_display_and_set_cursor): Display cursor of
809 non-selected windows depending on the setting of
810 cursor_in_non_selected_windows.
812 * xdisp.c (cursor_in_non_selected_windows): New variable.
813 (syms_of_xdisp): DEFVAR_BOOL it.
815 2000-02-23 Gerd Moellmann <gerd@gnu.org>
817 * data.c (Fstring_to_number): If number is greater than what
818 fits into an integer, return a float.
820 * eval.c (specbind): Remove references to
821 keyword_symbols_constant_flag.
823 * data.c (keyword_symbols_constant_flag): Removed.
824 (Fmakunbound, set_internal, syms_of_data): Remove references to
825 keyword_symbols_constant_flag.
827 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
829 2000-02-23 Kenichi Handa <handa@etl.go.jp>
831 * syntax.c (multibyte_syntax_as_symbol): New variable.
832 (syms_of_syntax): Declare it as a Lisp variable.
833 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
834 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
835 nonzero, treat all multibyte characters as symbol.
836 (init_syntax_once): Give syntax `word' to all multibyte
839 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
841 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
844 2000-02-21 Gerd Moellmann <gerd@gnu.org>
846 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
848 * xfns.c (x_window_to_frame, x_any_window_to_frame)
849 (x_non_menubar_window_to_frame): Check the busy-cursor window.
851 2000-02-21 Dave Love <fx@gnu.org>
853 * frame.c (Vmouse_position_function): New variable.
854 (Fmouse_position): Use it.
855 (syms_of_frame): Install it.
857 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
859 2000-02-20 Gerd Moellmann <gerd@gnu.org>
861 * fileio.c (Finsert_file_contents): Unbind the binding of
862 standard-output done by temp_output_buffer_setup.
864 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
865 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
866 (specbind, unbind_to): Handle most common case of non-constant
867 symbol with trivial value specially.
869 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
871 2000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
873 * data.c (Fmake_variable_buffer_local): Doc fix.
874 Init found_for_buffer to 0.
875 (Fmake_variable_frame_local): If the variable has already
876 been buffer-local, set the check_frame field.
878 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
880 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
881 produced for CODING_MODE_LAST_BLOCK requires.
883 2000-02-18 Dave Love <fx@gnu.org>
885 * keyboard.c (echo_keystrokes): Remove declaration.
886 (Vecho_keystrokes) New variable.
887 (read_char, record_menu_key, read_key_sequence): Use it to allow
889 (syms_of_keyboard): Change Vecho_keystrokes declaration.
891 * lread.c: Undef feature selection macros before defining.
893 2000-02-18 Gerd Moellmann <gerd@gnu.org>
895 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
896 for symbols other than the symbol in question.
898 2000-02-17 Dave Love <fx@gnu.org>
900 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
902 2000-02-17 Gerd Moellmann <gerd@gnu.org>
904 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
906 * alloc.c (enum mem_type): Compile unconditionally.
908 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
910 * xfaces.c (tty_defined_color): Don't return faulire indication
911 for unspecified-fg and unspecified-bg pseudo-colors.
913 2000-02-17 Gerd Moellmann <gerd@gnu.org>
915 * alloc.c (mark_object): Don't mark symbol names in pure space.
916 (gc_sweep): Don't unmark symbol names in pure space.
918 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
919 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
920 [GC_MARK_STACK]: New defines.
921 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
922 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
924 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
926 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
927 allocate_buffer instead of xmalloc.
929 * alloc.c (toplevel): Include setjmp.h.
930 (PURE_POINTER_P): New define.
931 (enum mem_type) [GC_MARK_STACK]: New enumeration.
932 (Vdead) [GC_MARK_STACK]: New variable.
933 (lisp_malloc): Add parameter TYPE, call mem_insert if
934 GC_MARK_STACK is defined.
935 (allocate_buffer): New function.
936 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
937 (free_float) [GC_MARK_STACK]: Set type to Vdead.
938 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
939 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
940 (MEM_NIL) [GC_MARK_STACK]: New define.
941 (struct mem_node) [GC_MARK_STACK]: New structure.
942 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
943 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
944 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
945 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
946 (mark_stack) [GC_MARK_STACK]: New functions.
947 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
948 (clear_marks): Removed.
949 (gc_sweep): Set free conses' car, free floats' type, free
950 symbols' function to Vdead. Use lisp_free to free buffers.
951 (init_alloc_once): Initialize Vdead.
952 (survives_gc_p): Return non-zero for pure objects.
954 * alloc.c: Add comments throughout the file.
956 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
957 that unblocks alarms.
959 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
960 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
961 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
963 * frame.c (make_frame): Set frame initiallly to `garbaged'.
965 2000-02-17 Kenichi Handa <handa@etl.go.jp>
967 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
968 avoid infinite error signaling. Allocate sufficient memory for
969 eol_str in the case that eoltype is Lisp_Int.
971 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
973 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
974 depends on the previous behavior.
976 2000-02-16 Gerd Moellmann <gerd@gnu.org>
978 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
980 2000-02-15 Gerd Moellmann <gerd@gnu.org>
982 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
984 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
985 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
988 2000-02-15 Richard M. Stallman <rms@gnu.org>
990 * data.c (set_internal): Don't make variable buffer-local
991 if within a let-binding for the same buffer.
992 (let_shadows_buffer_binding_p): New function.
994 * eval.c (specbind): For buffer-local value,
995 record the current buffer also.
996 (unbind_to): Cope with that change.
998 2000-02-15 Gerd Moellmann <gerd@gnu.org>
1000 * window.c (Fsave_window_excursion): Doc fix.
1002 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
1004 * syntax.c (back_comment): Make sure we only consider comment-starters
1005 of the relevant style and return -1 in case of a failure to find the
1006 beginning of the comment.
1007 (Fforward_comment): If back_comment fails, go back to the position just
1008 after the comment-end.
1009 (scan_lists): Add comment describing a very minor bug.
1011 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
1013 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
1014 `completion-regexp-list' in the docstring.
1016 2000-02-14 Dave Love <fx@gnu.org>
1018 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
1020 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
1022 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
1023 to Emacs' syntax. Also fix the comment about set/not-set meanings
1024 since Emacs syntax is not the value 0 any more.
1025 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
1026 since it's now part of RE_SYNTAX_EMACS.
1028 2000-02-12 Dave Love <fx@gnu.org>
1030 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
1033 2000-02-12 Gerd Moellmann <gerd@gnu.org>
1035 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
1037 2000-02-12 Dave Love <fx@gnu.org>
1039 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
1041 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
1042 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
1043 * s/hpux.h: Don't define HAVE_VFORK.
1045 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
1047 * s/nextstep.h: Don't define HAVE_ALLOCA.
1049 * config.in: Add vfork bits.
1051 2000-02-12 Gerd Moellmann <gerd@gnu.org>
1053 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
1054 unwind function to undo the effect of stopping atimers.
1056 * keyboard.c (bind_polling_period): Stop all timers except
1059 * atimer.c (stopped_atimers): New variable.
1060 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
1063 * atimer.h (stop_other_atimers, run_all_atimers)
1064 (unwind_stop_other_atimers): Add function prototypes.
1066 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
1068 2000-02-11 Ken Raeburn <raeburn@gnu.org>
1070 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
1071 library may depend on jpeg.
1072 (atimer.o): Depends on atimer.c.
1074 2000-02-11 Kenichi Handa <handa@etl.go.jp>
1076 * insdel.c (del_range_1): Call update_compositions.
1077 (del_range_both): Call update_compositions just once..
1079 2000-02-10 Dave Love <fx@gnu.org>
1081 * xfns.c (create_frame_xic): Fix initialization of automatic
1084 2000-02-09 Kenichi Handa <handa@etl.go.jp>
1086 * ccl.c (CCL_MAKE_CHAR): New macro.
1087 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
1088 registers by CCL_MAKE_CHAR before calling translate_char.
1089 <CCL_TranslateCharacterConstTbl> Likewise.
1091 2000-02-08 Dave Love <fx@gnu.org>
1093 * lread.c (__EXTENSIONS__): Define.
1095 2000-02-08 Gerd Moellmann <gerd@gnu.org>
1097 * puresize.h (BASE_PURESIZE): Increase to 650000.
1099 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
1101 * msdos.c (XMenuActivate): Turn off the cursor after displaying
1104 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
1106 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
1107 md, mh, mb, mr, and me to the fake termcap entry.
1109 2000-02-06 Ken Raeburn <raeburn@gnu.org>
1111 * sound.c (sound_cleanup): Don't call device close routine if the
1112 function pointer is null.
1114 2000-02-06 Andrew Innes <andrewi@gnu.org>
1116 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
1117 around image definitions and prototypes.
1118 (gamma_correct) [WINDOWSNT]: New prototype.
1120 * w32term.c (x_make_frame_visible): Replace call to
1121 input_poll_signal with poll_for_input.
1123 * window.c [WINDOWSNT]: Include w32term.h.
1125 * xdisp.c [WINDOWSNT]: Include w32term.h.
1127 * makefile.nt: Add dependencies on w32gui.h.
1128 (OBJ1): Include atimer.obj.
1129 ($(BLD)\atimer.obj): New dependency rule.
1131 * w32.c (sigmask): New function (does nothing).
1132 (sigunblock): Ditto.
1134 * frame.c [WINDOWSNT]: Include w32term.h.
1136 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
1138 * lread.c (syms_of_lread): Fix literal newlines.
1140 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
1141 the string constant limit (2048 bytes) in MSVC.
1144 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
1146 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
1148 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
1149 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
1152 2000-02-04 Dave Love <fx@gnu.org>
1154 * fileio.c: Remove some unused vars.
1155 (_GNU_SOURCE): Define (for euidaccess).
1157 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
1159 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
1161 (read_minibuf): Deal with allow_props correctly.
1163 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
1165 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
1167 2000-02-03 Ken Raeburn <raeburn@gnu.org>
1169 * search.c (compile_pattern): If a cache entry has a nil regexp,
1170 fill in that entry instead of clobbering a previously cached
1173 2000-02-02 Ken Raeburn <raeburn@gnu.org>
1175 * puresize.h (BASE_PURESIZE): Increase to 610000.
1177 2000-02-02 Gerd Moellmann <gerd@gnu.org>
1179 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
1182 2000-02-02 Kenichi Handa <handa@etl.go.jp>
1184 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
1185 instead of incrementing ic directly.
1186 <CCL_WriteExprConst> Likewise.
1187 <ccl_set_expr>: Set ic to jump_address.
1189 * fileio.c (e_write): Fix the handling of
1190 CODING_FINISH_INSUFFICIENT_SRC.
1192 2000-02-01 Dave Love <fx@gnu.org>
1194 * editfns.c (Fpropertize): Doc fix.
1196 * process.c (Fstart_process): Doc fix.
1198 * eval.c: Fix various doc strings not to duplicate information
1199 from help-manyarg-func-alist.
1201 * window.c (Fset_window_margins): Don't make interactive. Doc
1204 * doc.c (Vhelp_manyarg_func_alist): New variable.
1205 (Fdocumentation): Use it.
1206 (syms_of_doc): Define it.
1208 2000-01-31 Gerd Moellmann <gerd@gnu.org>
1210 * xterm.c (xim_open_dpy): Remove unused local variable.
1212 * emacs.c (USAGE): Use term `display options' instead of `X
1215 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
1216 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
1218 * fns.c (sweep_weak_table): New function.
1219 (sweep_weak_hash_tables): Use it. Keep on marking until there
1222 2000-01-30 Gerd Moellmann <gerd@gnu.org>
1224 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
1225 that XTread_socket does not crash by trying to call XNoOp on a
1228 2000-01-30 Jason Rumney <jasonr@gnu.org>
1230 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
1231 Change selected_frame to SELECTED_FRAME ().
1232 (w32_console_mouse_position): Remove #ifndef MULE from around
1235 * makefile.nt: Remove dosfns.obj.
1237 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
1239 * w32fns.c (w32_defined_color): Check for valid frame before
1240 applying gamma correction. Eliminate dependency on frame elsewhere.
1241 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
1242 (w32_to_x_font): Use resx and resy not height_in and width_in.
1243 (x_to_w32_font): Doc fix.
1244 (xlfd_strip_height): New function to strip and return font height.
1245 (w32_font_match): Compare height separately from rest of xlfd
1246 spec, using xlfd_strip_height.
1248 * w32term.c (w32_term_init): Swap resx and height_in, resy and
1249 width_in. Use w32_defined_color in place of defined_color.
1251 * w32faces.c: Merge more of DOS and X specifics in preparation for
1252 merge with xfaces.c.
1253 (defined_color): Remove FIXME comment.
1254 (tty_color_name): Provide w32-specific function.
1255 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
1257 * w32console.c (turn_on_face, turn_off_face): Removed.
1258 (w32_face_attributes): New function.
1259 (Global_variables): Reduce scope where possible.
1260 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
1262 (hl_mode): Don't modify text attributes.
1263 (write_glyphs): Don't do anything if len <= 0. Use
1264 w32_face_attributes to get attributes for drawing. Write
1265 terminating codes using char_attr_normal.
1266 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
1267 (update_begin, update_end): Likewise.
1268 (vga_stdcolor_name): New function.
1269 (initialize_w32_display): Remove char_attr_reverse and char_attr.
1270 (Fset_screen_color): Remove char_attr_reverse.
1272 2000-01-29 Gerd Moellmann <gerd@gnu.org>
1274 * xfns.c (xic_set_preeditarea): Take window parameter and
1275 window-relative pixel-positions.
1277 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
1278 is its frame's selected window.
1279 (xim_instantiate_callback): Likewise.
1281 * xfns.c (x_create_im): Removed.
1282 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
1283 (supported_xim_styles): Renamed from supported_styles.
1284 (best_xim_style): Renamed from best_style.
1285 (create_frame_xic): Renamed from xic_create_frame.
1286 (free_frame_xic): Renamed from xic_destroy_frame.
1288 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
1290 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
1291 our frames, call XFilterEvent with 2nd parameter `None'.
1292 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
1293 returning XBufferOverflow.
1294 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
1296 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
1297 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
1298 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
1299 (xim_initialize, xim_close)
1300 [HAVE_X_I18N && HAVE_X11R6]: New functions.
1301 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
1302 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
1303 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
1305 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
1307 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
1308 `xic_style' and `xic_xfs'.
1309 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
1310 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
1311 (FRAME_XIM): Removed.
1313 * xfns.c (supported_styles): New variable.
1314 (DEFAULT_STYLE, DEFAULT_FONT): New macros
1315 (xic_create_xfontset, best_style, xic_create_frame)
1316 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
1317 (xic_set_xfontset): New functions.
1319 2000-01-28 Dave Love <fx@gnu.org>
1321 * s/irix6-5.h: Revert last change after change to irix5-0.h.
1323 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
1325 2000-01-28 Gerd Moellmann <gerd@gnu.org>
1327 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
1328 for *scratch* if it already existed.
1330 * emacs.c (USAGE): New macro.
1331 (main): Use it to display usage information.
1333 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
1335 Support for the menu-help feature:
1337 * msdos.h: Change prototypes of XMenuAddSelection and
1340 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
1341 part of the line to the termscript file.
1342 (IT_clear_to_end): Clear the entire line, not just its beginning.
1343 (menu_help_message, prev_menu_help_message): New variables.
1344 (IT_menu_make_room): Make room for the help_text member.
1345 (IT_menu_display): New argument disp_help; all callers changed.
1346 If disp_help is non-zero, store the help text of the active menu
1347 item in menu_help_message.
1348 (XMenuAddPane): Initialize the help_text member to NULL.
1349 (XMenuAddSelection): New argument help_text. Store it in the
1351 (XMenuActivate): New argument help_callback. If the value of
1352 menu_help_message has changed since the last time, display the
1353 menu help message text while waiting for the mouse to move. Clear
1354 the echo area before exiting.
1355 (XMenuDestroy): Free the help_text member.
1357 2000-01-27 Gerd Moellmann <gerd@gnu.org>
1359 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
1360 XMenuAddSelection. Pass help callback to XMenuActivate.
1361 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
1363 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
1365 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
1366 and EMACS_SET_USECS.
1368 2000-01-26 Dave Love <fx@gnu.org>
1370 * editfns.c (Fchar_after, Fchar_before): Doc fix.
1372 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
1373 an error may be signalled.
1375 2000-01-26 Gerd Moellmann <gerd@gnu.org>
1377 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
1378 LD_SWITCH_SYSTEM inherited from irix5-0.h.
1380 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
1382 2000-01-25 Gerd Moellmann <gerd@gnu.org>
1384 * charset.c (Fstring): If there is a multibyte char among
1385 the args, always return a multibyte string.
1387 2000-01-25 Gerd Moellmann <gerd@gnu.org>
1389 * sysdep.c (sys_select): Turn atimers off and on instead of
1390 recording and restoring old alarm handler
1392 * process.c (toplevel): Include atimer.h.
1393 (create_process_1): Rewritten.
1394 (create_process): Use atimers instead of alarm.
1395 (wait_reading_process_input) [hpux]: Turn atimers off instead
1396 of turning off SIGALRM.
1397 (wait_reading_process_input): Turn off atimers instead off
1398 calling stop_polling.
1400 * emacs.c (main): Call init_atimer.
1402 * keyboard.c (toplevel): Include systime.h and atimer.h.
1403 (polling_for_input): Removed because unused.
1404 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
1405 (poll_timer): New variable.
1406 (poll_for_input, poll_for_input_1): New functions.
1407 (start_polling, stop_polling): Rewritten.
1409 * keyboard.h (polling_for_input): Removed.
1411 * atimer.h, atimer.c: New files.
1413 * Makefile.in (obj): Add atimer.o.
1414 (atimer.o): New target.
1416 * blockinput.h (pending_atimers): Add extern declaration.
1417 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
1419 * lisp.h (popup_activated_flag): Add extern declaration.
1421 * xmenu.c (popup_activated_flag): Make externally visible.
1422 (popup_activate_callback) [USE_MOTIF]: Increment
1423 popup_activated_flag.
1424 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
1426 * xterm.c (toplevel): Include atimer.h.
1427 (toolkit_scroll_bar_interaction): New variable.
1428 (Fxt_process_timeouts): Removed.
1429 (x_process_timeouts): New function.
1430 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
1431 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
1432 (x_make_frame_visible): Call poll_for_input_1 instead of
1433 input_poll_signal. Don't call alarm.
1434 (x_initialize): Install timer calling x_process_timeouts.
1436 2000-01-24 Dave Love <fx@gnu.org>
1438 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1439 Don't use -cckr -- apparently not now necessary.
1441 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1443 * msdos.c (IT_menu_display): Truncate long menu lines at the right
1446 2000-01-23 Jason Rumney <jasonr@gnu.org>
1448 * w32fns.c (w32_defined_color): Apply gamma correction before
1449 trying to map to the palette.
1450 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
1453 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
1454 here. Callers changed to always pass real device context.
1455 (w32_draw_bitmap): Likewise.
1456 (w32_get_glyph_overhangs): Likewise.
1457 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
1459 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
1460 pfnSetScrollInfo and SetScrollRange.
1461 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
1462 back into MULE characters after decoding them.
1463 (x_get_glyph_face_and_encoding): Likewise.
1464 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
1465 GetCharABCWidthsW fails, since this is defined on Windows 9x.
1466 (x_produce_glyphs): Calculate per char metrics for a character
1467 that we know exists in default font when font_not_found_p is true.
1469 2000-01-22 Jason Rumney <jasonr@gnu.org>
1471 * makefile.nt (intervals.obj, composite.obj): New modules.
1472 (composite.h): Added as dependency where appropriate.
1474 * w32gui.h (XGCValue): New struct for emulating X GCs.
1476 * w32term.h (XCharStruct): New struct for emulating X.
1478 * w32console.c (turn_on_face, turn_off_face): New functions.
1479 (change_line_highlight): New prototype for new redisplay.
1480 (write_glyphs): Support multibyte text. Support faces.
1482 * w32faces.c: Complete rewrite for new redisplay based on new
1485 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
1486 throughout. struct frame * in place of FRAME_PTR.
1487 Skeleton support for images, toolbars, tooltips from xfns.c.
1488 (Fx_create_frame): Use system default for default scroll bar
1490 (w32_get_arg): Renamed from x_get_arg.
1491 (Fx_file_dialog): New function.
1492 (w32_list_fonts): Check cache before asking system.
1493 (Vw32_enable_synthesized_fonts): New variable.
1494 (Vw32_enable_italics): Obsolete, removed.
1496 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
1497 Use SELECTED_FRAME macro.
1499 * w32menu.c: Add skeleton support for help strings on menus.
1500 (add_menu_item): Native checkbox and radio support added, but not
1501 yet enabled due to bugs.
1502 (push_menu_item): Add parameters type, selection and help.
1504 Formatting changes to reduce unnecessary diffs with xmenu.c.
1506 * w32select.c (Fw32_set_clipboard_data): Update call to
1507 find_charset_in_str.
1509 * w32term.c: Complete rewrite for new redisplay based on new
1510 xterm.c with necessary sections merged back in from old w32term.c.
1512 2000-01-21 Richard M. Stallman <rms@gnu.org>
1514 * data.c (set_internal): Further fix in same criterion.
1516 2000-01-20 Richard M. Stallman <rms@gnu.org>
1518 * data.c (set_internal): Fix the criteria for whether
1519 to swap out the old cached binding.
1521 2000-01-19 Dave Love <fx@gnu.org>
1523 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
1525 2000-01-18 Kenichi Handa <handa@etl.go.jp>
1527 * regex.c (re_compile_fastmap): While checking a range table for
1528 `charset', skip flag bits for a character class correctly.
1530 2000-01-17 Gerd Moellmann <gerd@gnu.org>
1532 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
1534 * xfns.c (x_window): Call lw_create_widget with new parameter
1537 * widget.c (EmacsFrameSetCharSize): Change size of children first
1538 because of problems with main window geometry management under
1541 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
1543 (MENU_ITEMS_ITEM_HELP): New enumerator.
1544 (push_menu_item): Add parameter HELP. Record help in menu_items.
1545 (single_menu_item, single_submenu, list_of_items): Call
1546 push_menu_item with new parameter.
1547 (single_submenu): Set help string in widget value.
1548 (menu_highlight_callback): New function.
1549 (set_frame_menubar): Call lw_create_widget with new
1551 (xmenu_show, xdialog_show): Ditto.
1553 2000-01-13 Gerd Moellmann <gerd@gnu.org>
1555 * sound.c (Fplay_sound): Improve doc string.
1557 2000-01-11 Richard M. Stallman <rms@gnu.org>
1559 * lisp.h (set_internal): Enter the new arg.
1561 * eval.c (specbind): Record buffer-local variables specially,
1562 indicating which buffer's binding was saved.
1563 (unbind_to): Restore buffer-local variables specially
1564 in the proper buffer.
1566 * data.c (set_internal): New arg BUF.
1568 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
1569 * data.c (Fset): Pass new arg to set_internal.
1570 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
1572 2000-01-11 Gerd Moellmann <gerd@gnu.org>
1574 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
1577 2000-01-11 Richard M. Stallman <rms@gnu.org>
1579 * minibuf.c (Ftry_completion): Doc fix.
1581 2000-01-11 Gerd Moellmann <gerd@gnu.org>
1583 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
1586 2000-01-11 Andreas Schwab <schwab@suse.de>
1588 * coding.c (code_convert_region): Initialize total_skip.
1590 2000-01-08 Dave Love <fx@gnu.org>
1592 * eval.c (Fuser_variable_p): Check customizability too.
1594 2000-01-07 Gerd Moellmann <gerd@gnu.org>
1596 * minibuf.c (Fcompleting_read): Doc fix.
1598 2000-01-05 Gerd Moellmann <gerd@gnu.org>
1600 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
1603 * xfns.c (x_create_im): New function to set IM and IC of a frame.
1604 Check that input style is supported before trying to create an
1606 (x_window): Call x_create_im.
1608 2000-01-04 Gerd Moellmann <gerd@gnu.org>
1610 * xfns.c (current_gif_memory_src): New variable.
1611 (gif_load): Record the address of the current memory source
1612 in current_gif_memory_src.
1613 (gif_read_from_memory): Use current_gif_memory_src.
1615 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
1616 macros statement form.
1618 * sound.c (struct sound): Renamed from struct sound_file.
1619 (struct sound): Add members `data' and `header_size'.
1620 (enum sound_attr): Add SOUND_DATA.
1621 (current_sound, current_sound_device): Variables renamed from
1622 sound_file and sound_device.
1623 (parse_sound): Parse :data.
1624 (parse_sound): Handle sound data in strings.
1625 (find_sound_type): Function renamed from find_sound_file_type.
1626 (wav_init, au_init): Fail if sound's header_size is smaller than
1628 (wav_play, au_play): Play sounds from string data.
1630 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
1632 * lisp.h: Add prototype for allocate_string_data.
1634 * alloc.c (Fgarbage_collect): Return number of live and free
1637 * alloc.c (mark_buffer): Remove code in #if 0.
1639 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
1640 (strings_consed): New variable.
1641 (allocate_string): Set it.
1642 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
1643 (Fmemory_use_counts): Return strings_consed. Use Flist.
1645 * alloc.c: General cleanup in comments etc. Remove conditional
1646 compilation for `standalone'.
1648 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
1650 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
1651 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
1652 (DONT_COPY_FLAG): Removed.
1653 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
1654 (struct sdata, struct sblock): New
1655 (struct string_block): Rewritten.
1656 (STRINGS_IN_STRING_BLOCK): New macro.
1657 (oldest_sblock, current_sblock, total_strings, total_free_strings)
1658 (large_sblocks, string_blocks, string_free_list): New variables.
1659 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
1660 (init_strings): Rewritten.
1661 (allocate_string, allocate_string_data, compact_small_strings)
1662 (free_large_strings, sweep_strings): New functions.
1663 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
1664 (struct string_block_head, current_string_block)
1665 (first_string_block, large_string_blocks, STRING_FULLSIZE)
1666 (STRING_PAD): Removed.
1667 (make_uninit_multibyte_string, make_pure_string): Rewritten.
1668 (Fgarbage_collect): Don't set mark bit in large strings.
1669 (mark_object): Mark strings differently. Mark symbol names
1671 (survives_gc_p): Test marked strings differently.
1672 (gc_sweep): Sweep strings differently, unmark strings in
1674 (compact_strings): Removed.
1676 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
1678 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
1679 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
1681 2000-01-04 Kenichi Handa <handa@etl.go.jp>
1683 * fileio.c (Finsert_file_contents): Signal error if visiting file
1684 in a non-empty buffer.
1686 * term.c (encode_terminal_code): Fix the previous change.
1688 2000-01-03 Gerd Moellmann <gerd@gnu.org>
1690 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
1691 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
1693 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
1695 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1697 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
1698 need to test for MSDOS frames.
1700 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1702 * dosfns.c (unspecified_colors): Remove.
1703 (msdos_stdcolor_idx): Use global variables unspecified_fg and
1705 (msdos_stdcolor_name): Return strings for unspecified fore- and
1708 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
1709 (syms_of_xfaces): Remove their staticpro's.
1710 (tty_color_name): Return Lisp strings for unspecified fore- and
1712 (Finternal_set_lisp_face_attribute): Remove the special treatment
1713 for Qunspecified_{f,b}g.
1714 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
1717 2000-01-03 Gerd Moellmann <gerd@gnu.org>
1719 * xdisp.c (reseat_at_next_visible_line_start): Position before
1720 newline only if ending up on a newline.
1721 (next_element_from_ellipsis): Return success. Handle case of
1722 displaying no ellipsis. Fix case of ellipsis defined in display
1724 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
1727 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1729 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
1730 (Fcolor_supported_p): Renamed from face-color-supported-p.
1732 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1734 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
1735 list of colors renamed to tty-defined-color-alist.
1736 (tty_color_name): Pass the frame to tty-color-by-index.
1737 (realize_tty_face): tty-color-alist is now a function which
1738 accepts the frame as argument.
1740 * term.c (Ftty_display_color_p): Accept an optional argument
1743 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1745 * term.c (insert_glyphs): Pass glyph, not &glyph, to
1746 encode_terminal_code.
1748 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1750 * dispnew.c (mode_line_string): Support termcap frames as well.
1752 2000-01-01 Gerd Moellmann <gerd@gnu.org>
1754 * syntax.c (Fforward_word): Undo previous change.
1756 * editfns.c (Fconstrain_to_field): Don't constrain if
1757 inhibit-field-text-motion is non-nil.
1758 (Fline_beginning_position): Undo previous change.
1759 (Fline_end_position): Ditto.
1761 * syntax.c (Fforward_word): Notice field boundaries only if
1762 inhibit-field-text-motion is nil.
1764 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
1766 * editfns.c (Vinhibit_field_text_motion): New variable.
1767 (inhibit-field-text-motion): New DEFVAR_LISP.
1768 (Fline_beginning_position, Fline_end_position): Notice field
1769 boundaries only if inhibit-field-text-motion is nil.
1771 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
1773 (x_build_heuristic_mask): Likewise.
1774 (xbm_load_image_from_file): Change error output.
1775 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
1776 (gif_load, gs_load, x_kill_gs_process): Ditto.
1778 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
1779 color indices when accessing raster pixels.
1780 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
1781 one of :file or :data.
1782 (enum pbm_keyword_index): Add PBM_DATA.
1783 (pbm_format): Add :data.
1784 (pbm_image_p): Allow either :file or :data.
1785 (pbm_read_file): New function.
1786 (pbm_scan_number): Rewritten to read from string.
1787 (pbm_load): Support :data.
1789 1999-12-31 Gerd Moellmann <gerd@gnu.org>
1791 * xfns.c: New image functions adapted to Emacs conventions.
1792 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
1795 1999-12-31 William M. Perry <wmperry@aventail.com>
1797 * xfns.c (jpeg_format): Added the :data keyword
1798 (jpeg_image_p): JPEG is valid with :file _or_ :data
1799 (jpeg_memory_src): Defined new JPEG image source to read from a
1801 (jpeg_load): Pay attention to the :data keyword if specified.
1802 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
1804 (png_format): Added the :data keyword
1805 (png_image_p): PNG is valid with :file _or_ :data
1806 (png_read_from_memory): New PNG read function to read from a
1808 (png_load): Pay attention to the :data keyword if specified. Uses
1809 png_set_read_fn() instead of png_init_io() if specified.
1810 (tiff_format): Added the :data keyword for TIFF images.
1811 (tiff_image_p): TIFF is valid with :file _or_ :data
1812 (tiff_read_from_memory): Defined new TIFF I/O functions to read
1813 from a memory buffer.
1814 (tiff_load): Pay attention to the :data keyword if specified.
1815 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
1816 (gif_format): Added the :data keyword
1817 (gif_image_p): GIF is valid with :file _or_ :data
1818 (gif_read_from_memory): New GIF input function to read from a
1820 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
1821 instead of DGifOpenFileName() if specified.
1823 1999-12-31 Gerd Moellmann <gerd@gnu.org>
1825 * xdisp.c (next_element_from_buffer): Change assertion at the end
1826 because it doesn't hold when there's an overlay string at the end
1827 from which we deliver an image.
1829 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
1831 * msdos.c (IT_update_begin): Don't dereference members of struct
1832 window for deleted windows.
1834 1999-12-30 Gerd Moellmann <gerd@gnu.org>
1836 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
1837 a hook, and the hook has a non-nil `no-self-insert' property, let
1838 the return value of the hook specify whether an expansion took
1839 place. If it returns nil, no expansion has been performed.
1841 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
1844 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
1846 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
1848 1999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
1850 * dispnew.c (mode_line_string): Support MS-DOS frames.
1852 1999-12-29 Gerd Moellmann <gerd@gnu.org>
1854 * eval.c (syms_of_eval): Initialize debugger_may_continue.
1856 1999-12-29 Kenichi Handa <handa@etl.go.jp>
1858 * process.c (read_process_output): Fix the args CHARPOS and LENINS
1859 to signal_after_change.
1861 1999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
1863 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
1864 dimensions changed, invalidate the mouse highlight info.
1865 (disable_mouse_highlight, help_echo, previous_help_echo): New
1867 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
1868 (fast_find_position, IT_note_mode_line_highlight)
1869 (IT_note_mouse_highlight): New functions.
1870 (IT_update_begin): If the redisplay affects the window where the
1871 mouse highlight is, clear the highlight. If the frame where the
1872 highlight was displayed was killed, invalidate the highlight
1874 (IT_update_end): Reset the highlight flag. Reset the mouse
1875 highlight-defer flag.
1876 (IT_frame_up_to_date): New function, if mouse highlight was
1877 deferred due to GC, do it now.
1878 (internal_terminal_init): Initialize mouse-highlight related
1879 members of the_only_x_display. Assign IT_frame_up_to_date to
1880 frame_up_to_date_hook.
1881 (dos_rawgetc): If the mouse moved, update mouse highlight. If
1882 help_echo changed value, generate a HELP_EVENT event.
1883 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
1885 * msdos.h (struct display_info): New.
1886 (struct x_output): Add the display_info member.
1887 (FRAME_X_DISPLAY_INFO): New macro.
1889 1999-12-28 Gerd Moellmann <gerd@gnu.org>
1891 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
1893 (dump_glyph_row): Adapt to changes in struct glyph.
1895 * buffer.c (modify_overlay): Always compute unchanged info.
1897 1999-12-27 Kenichi Handa <handa@etl.go.jp>
1899 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
1901 1999-12-27 Kenichi Handa <handa@etl.go.jp>
1903 The following changes are to use more bits for face IDs.
1905 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
1906 lowest 8 bits are single byte character code, the bits above are
1908 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
1910 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
1911 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
1913 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
1916 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
1919 * dispextern.h (struct glyph): Make face_id and padding_p the top
1920 level members. Change members in union `u'.
1921 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
1922 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
1923 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
1924 (CHAR_GLYPH_PADDING_P): Likewise.
1925 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
1928 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
1929 for the change of struct glyph.
1930 (line_draw_cost): Adjusted for the change of
1931 GLYPH_FROM_CHAR_GLYPH.
1932 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
1934 * term.c (encode_terminal_code): Adjusted for the change of struct
1935 glyph and GLYPH_FROM_CHAR_GLYPH.
1936 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
1937 change of struct glyph.
1939 * xdisp.c: All codes adjusted for the change of struct glyph.
1941 * xterm.c: All codes adjusted for the change of struct glyph.
1943 1999-12-27 Kenichi Handa <handa@etl.go.jp>
1945 * composite.h (struct composition): Change the order of declaring
1946 members to reduce the byte size of the structure.
1948 1999-12-25 Gerd Moellmann <gerd@gnu.org>
1950 * search.c (looking_at_1): Reset immediate_quit before modifying
1953 1999-12-24 Kenichi Handa <handa@etl.go.jp>
1955 * process.c (read_process_output): Fix the arg FROM to
1956 update_compositions.
1958 1999-12-22 Richard M. Stallman <rms@gnu.org>
1960 * search.c (Freplace_match): For nonliteral replacement in buffer,
1961 construct all the new text first, then insert all at once.
1963 1999-12-22 Dave Love <fx@gnu.org>
1965 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
1967 1999-12-22 Gerd Moellmann <gerd@gnu.org>
1969 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
1970 lead to size changes to after the X window has been created.
1972 * xfaces.c (realize_x_face): Don't use uninitialized local
1973 variable in xassert.
1975 1999-12-22 Kenichi Handa <handa@etl.go.jp>
1977 * xfaces.c (face_color_supported_p): Check by tty_defined_color
1978 only when the frame is not for a window system.
1980 1999-12-22 Gerd Moellmann <gerd@gnu.org>
1982 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
1983 redisplay after changing the multibyteness of a buffer.
1985 * xterm.c (XTread_socket): At the beginning of the loop, pass the
1986 frame's X window to XFilterEvent instead of None because that's
1987 the X window for which the IC was created. This makes dead
1988 accents work when the pointer is not in Emacs' frame.
1989 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
1991 1999-12-20 Dave Love <fx@gnu.org>
1993 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
1995 1999-12-19 Gerd Moellmann <gerd@gnu.org>
1997 * eval.c (debugger_may_continue): New variable.
1998 (syms_of_eval): Add a DEFVAR_BOOL for it.
1999 (call_debugger): Bind it.
2001 1999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2003 * msdos.c (IT_set_face): Don't swap face colors when highlight or
2004 fp->tty_reverse_p is set, unless the computed colors are identical
2005 to frame colors. Print both original and computed colors to
2007 (IT_write_glyphs): Track the changes in handling of composite
2009 (IT_set_frame_parameters): Don't set frame colors from
2010 unspecified-fg and unspecified-bg pseudo-colors.
2012 1999-12-17 Dave Love <fx@gnu.org>
2014 * data.c (Fkeywordp): New function.
2015 (syms_of_data): Install it.
2017 1999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2019 * xfaces.c (tty_defined_color): Fix last change.
2021 1999-12-15 Gerd Moellmann <gerd@gnu.org>
2023 * xdisp.c (redisplay_window) <optional new window start>: Check
2024 that window start is in [BEGV..ZV].
2026 1999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
2028 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
2029 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
2031 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
2032 (syms_of_xfaces): Initialize and staticpro them.
2033 (tty_defined_color): If the color name is unspecified-fg or
2034 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
2035 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
2036 (tty_color_name): If the color pixel value is either
2037 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
2038 Qunspecified_fg or Qunspecified_bg, respectively.
2039 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
2040 and Qunspecified_bg for foreground and background colors.
2041 (realize_default_face): If the foreground and background colors
2042 are not specified, default to Qunspecified_fg and Qunspecified_bg.
2043 (realize_tty_face): By default, set the face colors to
2044 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
2045 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
2046 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
2047 Reverse the colors if the default colors were reversed.
2049 * dispnew.c (init_display): Initialize the frame pixels of the
2050 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
2051 FACE_TTY_DEFAULT_BG_COLOR.
2053 * term.c (turn_on_face): If the default fore- and background
2054 colors are reversed, enter inverse video mode. Don't send color
2055 escape sequences for unspecified foreground and background colors.
2056 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
2058 * dosfns.c (unspecified_colors): New variable.
2059 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
2060 color names, return FACE_TTY_DEFAULT_FG_COLOR and
2061 FACE_TTY_DEFAULT_BG_COLOR, respectively.
2062 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
2063 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
2064 Qunspecified_bg, respectively.
2066 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
2067 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
2069 1999-12-15 Kenichi Handa <handa@etl.go.jp>
2071 * coding.c (code_convert_region): Fix the secoding arg to
2072 update_compositions.
2074 1999-12-15 Kenichi Handa <handa@etl.go.jp>
2076 The following changes are for the new composition mechanism. We
2077 have deleted `composition' charset and composite characters,
2078 instead introduced a special text property `composition'.
2080 * Makefile.in (INTERVAL_SRC): Include composite.h.
2081 (INTERVAL_OBJ): Include composite.o.
2082 (SOME_MACHINE_OBJECTS): Include composite.o.
2083 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
2084 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
2085 Depend on composite.h.
2086 (doc.o): Depend on charset.h.
2087 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
2088 (composite.o): New target.
2090 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
2092 * callproc.c (Fcall_process): Call code_convert_string to encode
2093 arguments. Use CODING_REQUIRE_DECODING to check if the process
2094 output should be decoded.
2096 * casefiddle.c: Include composite.h.
2097 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
2098 multibyte character. Adjusted for the change of CHAR_STRING.
2099 (casify_region): Likewise. Call update_compositions.
2101 * category.h (CATEGORY_SET): Delete codes for a composite
2104 * category.c (word_boundary_p): Delete codes for a composite
2106 (Fmake_category_table): New function.
2107 (syms_of_category): Defsubr it.
2109 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
2110 (ccl_driver): Delete codes for a composite character.
2112 * charset.h: In this entry, just `Modified' means that codes for a
2113 composite character is deleted.
2114 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
2115 (charset_composition) (MIN_CHAR_COMPOSITION)
2116 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
2117 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
2118 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
2119 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
2120 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
2121 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
2123 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
2124 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
2125 non_ascii_char_to_string.
2126 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
2127 (STRING_CHAR_AND_LENGTH): Likewise.
2128 (FETCH_CHAR_ADVANCE): New macro.
2129 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
2130 (MAX_MULTIBYTE_LENGTH): New macro.
2131 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
2132 (find_charset_in_str): Argument adjusted.
2133 (CHAR_LEN): Modified.
2135 * charset.c: In this entry, just `Modified' means that codes for a
2136 composite character is deleted.
2137 (Qcomposition) (leading_code_composition)
2138 (charset_composition) (min_composite_char) (cmpchar_table)
2139 (cmpchar_table_size) (n_cmpchars): Deleted.
2140 (SPLIT_COMPOSITE_SEQ): Deleted.
2141 (SPLIT_MULTIBYTE_SEQ): Modified.
2142 (char_to_string): Renamed from non_ascii_char_to_string.
2144 (string_to_char): Renamed from string_to_non_ascii_char.
2145 (split_string): Renamed from split_non_ascii_string.
2146 (char_printable_p) (Fsplit_char)
2147 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
2148 (char_bytes) (Fchar_width) (strwidth): Modified.
2149 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
2150 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
2151 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
2152 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
2153 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
2154 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
2155 (Fcmpchar_cmp_count): Deleted.
2156 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
2157 (init_charset_once): Modified.
2158 (syms_of_charset): Modified.
2160 * cmds.c (internal_self_insert): Adjusted for the change of
2163 * coding.h (emacs_code_class_type): Delete the member
2164 EMACS_leading_code_composition.
2165 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
2166 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
2167 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
2168 (COMPOSING_WITH_RULE_P): Macros deleted.
2169 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
2171 (struct composition_data): New structure.
2172 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
2173 (struct coding_system): New members composition_rule_follows,
2174 cmp_data, cmp_data_start, cmp_data_index.
2175 (coding_save_composition) (coding_free_composition_data)
2176 (coding_adjust_composition_offset): Extern them.
2178 * coding.c: Include composite.h.
2179 (DECODE_CHARACTER_ASCII): Don't handle composition here.
2180 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
2181 of multibyte code here.
2182 (DECODE_CHARACTER_DIMENSION2): Likewise.
2183 (detect_coding_emacs_mule): Change the case label from
2184 EMACS_leading_code_composition to 0x80.
2185 (detect_coding_iso2022): Handle new composition sequence.
2186 (DECODE_ISO_CHARACTER): Likewise.
2187 (check_composing_code): Deleted.
2188 (coding_allocate_composition_data): New function.
2189 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
2190 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
2191 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
2192 (decode_coding_iso2022): Handle new composition sequence.
2193 (ENCODE_ISO_CHARACTER): Don't check composition here.
2194 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
2195 (ENCODE_COMPOSITION_NO_RULE_START)
2196 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
2197 (ENCODE_COMPOSITION_END): Handle new composition sequence.
2198 (ENCODE_COMPOSITION_FAKE_START): New macro.
2199 (encode_coding_iso2022): Handle new composition sequence.
2200 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
2201 (encode_coding_sjis_big5): Ignore composition.
2202 (setup_coding_system): Initialize new members of struct
2203 coding_system. Enable composition only when the coding system has
2204 `composition' property t.
2205 (coding_free_composition_data) (coding_adjust_composition_offset)
2206 (coding_save_composition) (coding_restore_composition): New
2208 (code_convert_region): Call coding_save_composition for encoding
2209 and coding_allocate_composition_data for decoding. Don't skip
2210 ASCII characters if we handle composition on encoding. Call
2211 signal_after_change with Check_BORDER.
2212 (code_convert_string): Call coding_save_composition for encoding
2213 and coding_allocate_composition_data for decoding. Don't skip
2214 ASCII characters if we handle composition on encoding.
2215 (code_convert_string1): Set Vlast_coding_system_used after calling
2216 code_convert_string.
2217 (code_convert_string_norecord): Disable composition.
2218 (Fset_terminal_coding_system_internal): Likewise.
2219 (Fset_safe_terminal_coding_system_internal): Likewise.
2220 (Fset_keyboard_coding_system_internal): Likewise.
2221 (init_coding_once): Set emacs_code_class[0x80] to
2224 * composite.h: New file.
2226 * composite.c: New file.
2228 * data.c (Faref): Delete codes for a composite character..
2229 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
2231 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
2232 (struct glyph): Add new sub-structure cmp to the union `u'.
2233 (enum display_element_type): New member IT_COMPOSITION.
2234 (enum prop_idx): New member COMPOSITION_PROP_IDX.
2235 (struct it): New members cmp_id, cmp_len.
2237 * dispnew.c (direct_output_forward_char): Check point moving into
2238 or out of a composition. If so, give up direct method.
2240 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
2242 * editfns.c (Fchar_to_string): Adjusted for the change of
2244 (general_insert_function): Likewise.
2245 (Finsert_char): Likewise.
2246 (Fsubst_char_in_region): Likewise. Call update_compositions.
2247 (Ftranslate_region): Call update_compositions.
2248 (Ftranspose_regions): Call update_compositions.
2250 * emacs.c (main): Call syms_of_composite.
2252 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
2254 (Finsert_file_contents): Set Vlast_coding_system_used before
2255 calling signal_after_change. Call update_compositions if some
2256 texts are inserted..
2257 (Fwrite_region): Adjusted for the change of a_write and e_write.
2258 (a_write): Argument changed. Work based on character position,
2260 (e_write): Argument changed. Handle new way of composition.
2262 * fns.c (Flength): The length of char-table is MAX_CHAR.
2263 (concat): Adjusted for the change of CHAR_STRING.
2264 (Ffillarray): Adjusted for the change of CHAR_STRING.
2265 (Fset_char_table_default): Delete codes for a composite character.
2266 (hash_put): Return hash index.
2268 * fontset.h (struct font_info): New member vertical_centering.
2269 (Vvertical_centering_font_regexp): Extern it.
2271 * fontset.c (Vvertical_centering_font_regexp): New variable.
2272 (syms_of_fontset): Declare it as a Lisp variable and initialize.
2273 Set Vignore_relative_composition to nil.
2274 (fs_load_font): Initialize `vertical_centering' of struct
2277 * indent.c (check_composition): New function.
2278 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
2279 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
2280 (current_column_1): Handle new way of composition.
2281 (Fmove_to_column): Likewise.
2282 (compute_motion): Likewise.
2284 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
2285 (insert_char): Likewise.
2286 (insert): Call update_compositions.
2287 (insert_and_inherit): Likewise.
2288 (insert_before_markers): Likewise.
2289 (insert_before_markers_and_inherit): Likewise.
2290 (insert_from_string): Likewise.
2291 (insert_from_string_before_markers): Likewise.
2292 (insert_from_buffer): Likewise.
2293 (replace_range): Likewise.
2294 (count_combining_composition): Deleted.
2295 (count_combining_before): Delete codes for a composite character.
2296 (count_combining_after): Likewise.
2297 (del_range_1): Call update_compositions.
2298 (del_range_byte): Likewise.
2299 (del_range_both): Likewise.
2300 (Fcombine_after_change_execute): Likewise.
2302 * intervals.h: Include composite.h.
2303 (get_property_and_range): Extern it.
2304 (Vtext_property_default_nonsticky): Extern it.
2306 * intervals.c (adjust_intervals_for_insertion): To check stickines
2307 of properties, pay attention to text-property-default-nonsticky.
2308 (merge_properties_sticky): Likewise.
2309 (get_property_and_range): New function.
2311 * keyboard.c (Vdisable_point_adjustment): New variable.
2312 (Vglobal_disable_point_adjustment): New variable.
2313 (syms_of_keyboard): Declare them as Lisp variables.
2314 (command_loop_1): Check them and call adjust_point_for_property if
2316 (adjust_point_for_property): New function.
2318 * keymap.c (push_key_description): Adjusted for the change of
2320 (Ftext_char_description): Likewise.
2322 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
2323 (hash_put): Adjusted for the change of the definition.
2324 (signal_after_change): Likewise.
2325 (check_point_in_composition): Extern it.
2327 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
2328 Delete a code that handles an invalid too-long multibyte sequence
2329 because we are now sure that we never encounter with such a
2331 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
2332 MAX_LENGTH_OF_MULTI_BYTE_FORM.
2333 (init_obarray): Likewise.
2334 (read1): Likewise. Adjusted for the change of CHAR_STRING.
2336 * print.c (printchar): Adjusted for the change of CHAR_STRING.
2338 * process.c: Include composite.h.
2339 (read_process_output): Call update_compositions.
2341 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
2343 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
2345 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
2348 * term.c (encode_terminal_code): Delete codes for a composite
2349 character. Adjusted for the change of CHAR_STRING.
2350 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
2351 Delete codes for a composite character.
2353 * textprop.c (Vtext_property_default_nonsticky): New variable
2354 (syms_of_textprop): Declare it as a Lisp variable.
2356 * window.c (Frecenter): Clear all caches of compositions.
2358 * xdisp.c (it_props): Add an entry for composition.
2359 (face_before_or_after_it_pos): For composition, check face of a
2360 character after the composition.
2361 (handle_composition_prop): New function.
2362 (get_next_display_element): Adjusted for the change of
2364 (set_iterator_to_next): Handle the case that it->method ==
2365 next_element_from_composition.
2366 (next_element_from_composition): New function.
2367 (message_dolog): Adjusted for the change of CHAR_STRING.
2368 (set_message_1): Likewise.
2369 (check_point_in_composition): New function.
2370 (reconsider_clip_changes): If point moved into or out of
2371 composition, set b->clip_changed to 1 to force updating of the
2373 (disp_char_vector): Delete codes for a composite character.
2374 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
2376 * xfaces.c (choose_face_fontset_font): Delete codes for a
2377 composite character.
2378 (realize_x_face): Likewise. Change a place to set local variable
2379 `f' to avoid a bug of GCC 2.8.1 on Solaris.
2381 * xfns.c: Include intervals.h.
2382 (syms_of_xfns): Make `display' property nonsticky by default.
2384 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
2385 for find_charset_in_str.
2387 * xterm.h (struct x_output): Change member font_baseline to
2390 * xterm.c (x_append_glyph): Setup members of struct glyph properly
2392 (x_append_composite_glyph): New function.
2393 (VCENTER_BASELINE_OFFSET): New macro.
2394 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
2395 of struct it for the composition. Cache pixel offsets in the
2396 struct composition. Delete codes for a composite character.
2397 Handle Vignore_relative_composition in composition code.
2398 (struct glyph_string): Delete member cmpcharp, add new member cmp.
2399 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
2400 (x_compute_glyph_string_overhangs): Likewise.
2401 (x_get_glyph_overhangs): Delete codes for a composite character.
2402 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
2403 (x_draw_glyph_string_background): Likewise. Delete codes for
2404 checking s->gidx for a composition.
2405 (x_draw_glyph_string_foreground): Delete code for a composite
2407 (x_draw_composite_glyph_string_foreground): New function.
2408 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
2409 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
2410 (struct work): Deleted.
2411 (x_fill_composite_glyph_string): Argument changed. Mostly
2413 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
2414 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
2415 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
2416 (BUILD_GLYPH_STRINGS): For composition, call
2417 BUILD_COMPOSITE_GLYPH_STRING.
2418 (x_new_font): Initialize f->output_data.x->baseline_offset, not
2419 f->output_data.x->font_baseline.
2421 1999-12-14 Gerd Moellmann <gerd@gnu.org>
2423 * xterm.c (show_mouse_face): Don't use updated_area, use
2426 1999-12-12 Richard M. Stallman <rms@gnu.org>
2428 * minibuf.c (Fall_completions): Doc fix.
2430 1999-12-12 Richard M. Stallman <rms@gnu.org>
2432 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
2433 has been changed by the Lisp code.
2435 1999-12-12 Gerd Moellmann <gerd@gnu.org>
2437 * xfns.c: Indentation fixes.
2439 1999-12-10 Stefan Monnier <monnier@cs.yale.edu>
2441 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
2443 1999-12-10 Gerd Moellmann <gerd@gnu.org>
2445 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
2446 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
2448 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
2451 1999-12-09 Stefan Monnier <monnier@cs.yale.edu>
2453 * keyboard.c (Qratio): New symbol.
2454 (scroll_bar_parts): Add `Qratio' to it.
2455 (syms_of_keyboard): Init `Qratio'.
2456 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
2457 * xterm.c (#includes): Allow compilation with only Xaw.
2458 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
2459 (xt_action_hook): Replace XAW3D by XAW.
2460 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
2461 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
2462 Determine epsilon dynamically and don't try to be too clever.
2463 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
2464 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
2465 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
2466 scrollbar (using `ratio').
2467 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
2468 scrollbar we have so as to set it up more optimally and to fix
2469 xaw3d_arrow_scroll and xaw3d_pick_top.
2470 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
2471 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
2472 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
2473 is not ignored, using a major gross hack.
2474 (x_initialize): Init default values for xaw3d_arrow_scroll and
2477 1999-12-09 Dave Love <fx@gnu.org>
2479 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
2481 1999-12-08 Gerd Moellmann <gerd@gnu.org>
2483 * eval.c: Remove conditional compilation on `standalone'.
2484 (call_debugger): When entering the debugger while redisplaying,
2485 reset redisplaying_p, and go back to the top-level if the debugger
2488 1999-12-07 Gerd Moellmann <gerd@gnu.org>
2490 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
2491 basic faces are realized before trying to use face `menu'.
2493 * window.c (delete_window): Block input for the time window
2494 matrices are being changed.
2496 1999-12-07 Dave Love <fx@gnu.org>
2498 * lread.c (Fintern_soft): Fix newlines in doc string.
2500 1999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
2502 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
2503 duplicate definition of ElfW.
2504 (find_section): Copied from unexsgi.c.
2505 (unexec): Use find_section. Adjust whitespace. Initialize
2506 new_data2_offset based on old_data, not sbss (this fixes a bug on
2507 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
2508 Adjust test for presence of .mdebug section to the new return
2509 value of find_section.
2511 1999-12-07 Gerd Moellmann <gerd@gnu.org>
2513 * unexelf.c: Merge changes from 20.5.
2514 (unexec): Handle .lit4 and .lit8 unconditionally.
2516 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
2519 * m/iris5d.h (UNEXEC): Likewise.
2521 1999-12-06 Stefan Monnier <monnier@cs.yale.edu>
2523 * editfns.c (Fdelete_and_extract_region): New function.
2524 (syms_of_editfns): Register it.
2525 * insdel.c (del_range): Update del_range_1 call.
2526 (del_range_1, del_range_2): Add a ret_string argument to
2527 request that the deleted text be returned.
2528 (del_range_byte, del_range_both): Update del_range_2 call.
2529 * lisp.h (del_range_1, del_range_2): Change prototype
2530 * casefiddle.c (casify_region): Update del_range_1 call.
2531 * coding.c (code_convert_region): Update del_range_2 call.
2532 * fileio.c (Finsert_file_contents): Update del_range_2 call.
2534 1999-12-06 Gerd Moellmann <gerd@gnu.org>
2536 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
2538 1999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
2540 * lread.c (Fintern_soft): Accept a symbol argument.
2542 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2544 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
2546 * insdel.c (adjust_markers_for_delete): Fix last change.
2548 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2550 Changes for automatic remapping of X colors on terminal frames:
2552 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
2554 (Vface_tty_color_alist): Remove.
2555 (tty_defined_color): New function.
2556 (defined_color): Rewrite to support any type of frame.
2557 (tty_color_name): New function.
2558 (face_color_supported_p, Fface_color_gray_p,
2559 Fface_color_supported_p): Support non-X frames.
2560 (load_color): Enclose the color name in quotes, in the log
2561 messages. Remove DOS-specific version of load_color.
2562 (realize_tty_face): Take the supported colors from
2563 tty-color-alist. Support translation of X colors to the closest
2564 tty color, for both MSDOS and tty frames.
2565 [MSDOS]: Don't invert face colors if they were taken from the
2567 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
2569 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
2570 Define a mostly empty surrogate.
2571 (tty_display): Declare.
2573 * frame.c (make_terminal_frame) [!macintosh]: Don't use
2575 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
2576 frames when the frame's param_alist includes 'reverse.
2577 (tty_display): Define.
2578 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
2579 output_data.x member.
2580 (Fframe_parameters): Return foreground and background color names
2581 on tty frames as well, in addition to MSDOS frames.
2583 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
2585 (struct x_output): Remove unused members; document who uses each
2587 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
2588 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
2589 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
2590 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
2591 unused macro definintions.
2593 * msdos.c (IT_set_frame_parameters): Don't call
2594 recompute_basic_faces, the next redisplay will, anyway.
2595 (x_current_display): Remove unused variable.
2596 Many functions: changes for Lisp_object selected_frame.
2597 (IT_set_face): If the tty_reverse_p flag is set for the face,
2598 reverse the foreground and background colors.
2599 (Fmsdos_remember_default_colors): New function.
2600 (syms_of_msdos): Defsubr it.
2601 (IT_set_frame_parameters): Use initial_screen_colors[] when
2602 creating a new frame. If the frame parameters include 'reverse,
2603 swap the foreground and background colors.
2604 (internal_terminal_init): Initialize initial_screen_colors to -1.
2605 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
2608 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
2610 * xfns.c (x_defined_color): Rename from defined_color. All
2612 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
2613 all callers changed.
2614 (Fxw_color_values): Renamed from Fx_color_values; all callers
2616 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
2618 (x_window_to_frame, x_any_window_to_frame,
2619 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
2620 x_top_window_to_frame): Use !FRAME_X_P instead of
2621 f->output_data.nothing.
2622 * xterm.h (x_defined_color): Rename from defined_color.
2624 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
2625 f->output_data.nothing.
2626 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
2627 all callers changed.
2628 (Fxw_color_values): Renamed from Fx_color_values; all callers
2630 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
2633 * dispextern.h (tty_color_name): Add prototype.
2635 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
2636 f->output_data.nothing.
2637 * w32menu.c (menubar_id_to_frame): Likewise.
2638 * w32term.h (w32_output): Declare.
2640 * dosfns.c (Qmsdos_color_translate): Remove.
2641 (msdos_stdcolor_name): Now returns a Lisp_Object.
2642 * dosfns.h (Qmsdos_color_translate): Remove.
2644 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
2646 1999-12-06 Kenichi Handa <handa@etl.go.jp>
2648 * fileio.c (decide_coding_unwind): Renamed from
2649 set_auto_coding_unwind.
2650 (Finsert_file_contents): Make single unwind protect to call both
2651 Vset_auto_coding_function and Ffind_operation_coding_system.
2653 * insdel.c (adjust_markers_for_delete): Make it non-static.
2655 1999-12-04 Stefan Monnier <monnier@cs.yale.edu>
2657 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
2658 operators and handle them properly.
2659 * regex.h (RE_ALL_GREEDY): New option.
2660 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
2661 sorting would put it.
2662 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
2663 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
2665 1999-12-04 Dave Love <d.love@dl.ac.uk>
2667 * m/arm.h: New file.
2669 1999-12-03 Dave Love <fx@gnu.org>
2671 * editfns.c (Fmessage_or_box): Use use_dialog_box.
2673 1999-12-02 Gerd Moellmann <gerd@gnu.org>
2675 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
2676 for building with Motif.
2678 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
2681 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
2683 1999-12-01 Dave Love <fx@gnu.org>
2685 * emacs.c (main): Set LANG=C iff AX3_2 defined.
2687 1999-11-28 Gerd Moellmann <gerd@gnu.org>
2689 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
2690 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
2693 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
2695 1999-11-28 eliz <eliz@dlpx1>
2697 * emacs.c (synchronize_locale): Avoid compiler warnings about
2698 pointer type mismatch.
2700 1999-11-28 Gerd Moellmann <gerd@gnu.org>
2702 * window.c (Fwindow_end): Don't call temp_set_pt_both with
2703 out of range position.
2705 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
2706 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
2708 1999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
2710 * charset.c (Fmake_char_internal): Print the charset ID when
2711 signalling an error.
2713 * emacs.c (synchronize_locale): Avoid compiler warnings about
2714 pointer type mismatch.
2716 1999-11-26 Richard M. Stallman <rms@gnu.org>
2718 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
2720 1999-11-26 Gerd Moellmann <gerd@gnu.org>
2722 * puresize.h (BASE_PURESIZE): Increase to 550000.
2724 * textprop.c (set_text_properties): New function. Like
2725 Fset_text_properties, but with additional parameter
2726 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
2728 (Fset_text_properties): Use it.
2730 * insdel.c (insert_1_both): Call set_text_properties with last
2731 parameter nil so that no after changes will be signaled.
2733 * lisp.h: Add prototype for set_text_properties.
2735 * xfaces.c (set_lface_from_font_name): Fix previous change.
2736 (recompute_basic_faces): Change assert to abort.
2738 1999-11-25 Dave Love <fx@gnu.org>
2740 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
2741 (Fmember, Fdelq, Fdelete): Inline car.
2742 (Fy_or_n_p): Doc fix.
2744 1999-11-25 Gerd Moellmann <gerd@gnu.org>
2746 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
2747 Callers changed. If specified font name is bogus, and may_fail_p
2748 is not set, try to use a reasonable default.
2750 * dispnew.c (direct_output_for_insert): Set glyph row's
2751 displays_text_p flag. Correct window's window_end_vpos if
2754 1999-11-25 Paul Eggert <eggert@twinsun.com>
2756 * emacs.c (fixup_locale): Don't bother to record initial locale.
2757 (synchronize_locale): If the desired locale is nil,
2758 treat it as if it were the empty string,
2759 so that we set the locale from the environment.
2761 1999-11-25 Kenichi Handa <handa@etl.go.jp>
2763 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
2764 of the current buffer via Fset.
2766 1999-11-24 Dave Love <fx@gnu.org>
2768 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
2770 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
2772 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
2774 1999-11-24 Gerd Moellmann <gerd@gnu.org>
2776 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
2778 * emacs.c (PVEC_FLAG): New variable.
2780 1999-11-23 Gerd Moellmann <gerd@gnu.org>
2782 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
2783 that fails on IBM PowerPC, AIX 4.2.
2785 1999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
2787 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
2788 string of mode-line-format. Remove the obsolete %t.
2790 1999-11-22 Gerd Moellmann <gerd@gnu.org>
2792 * dispnew.c (direct_output_for_insert): Increment glyph positions
2793 for glyphs from buffer text only.
2795 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
2796 (gdb_data_seg_bits): New variables.
2798 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
2799 work on systems not allowing enumerators > INT_MAX, and it
2800 won't work if EMACS_INT is long long.
2802 1999-11-22 Paul Eggert <eggert@twinsun.com>
2804 Port to SunOS 4.1.x again. Help out with Alpha port.
2805 Rename messages-locale to system-messages-locale,
2806 and likewise for time-locale.
2808 * callproc.c (strerror): Remove decl.
2809 * fileio.c (strerror): Likewise.
2810 * process.c (strerror): Likewise.
2811 * emacs.c (strerror): Likewise.
2812 (Vsystem_messages_locale): Renamed from Vmessages_locale.
2814 (Vprevious_system_messages_locale): Likewise, from
2815 Vprevious_messages_locale.
2816 (Vsystem_time_locale): Likewise, from Vtime_locale.
2817 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
2818 (ABORT_RETURN_TYPE): New macro.
2819 (abort): Return type is now ABORT_RETURN_TYPE.
2820 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
2822 (syms_of_emacs): messages-locale -> system-messages-locale,
2823 previous-messages-locale -> previous-system-messages-locale,
2824 time-locale -> system-time-locale,
2825 previous-time-locale -> previous-system-time-locale.
2827 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
2828 (const): Do not define; that's config.h's job.
2829 (<limits.h>): Include if HAVE_LIMITS_H is defined.
2830 (CHAR_BIT): Move test for definedness outside of limits.h condition.
2831 (<stddef.h>): Include if STDC_HEADERS is defined.
2832 (FREE_RETURN_TYPE): New macro.
2833 (free): Return type is now FREE_RETURN_TYPE.
2835 * lisp.h (synchronize_system_time_locale): Renamed from
2836 synchronize_time_locale. All uses changed.
2837 (synchronize_system_messages_locale): Likewise, from
2838 synchronize_messages_locale.
2840 * m/alpha.h (malloc, realloc, calloc): Remove decls;
2841 stdlib.h now does this.
2843 * process.c (sys_siglist): Remove.
2845 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
2848 * syntax.c (scan_sexps_forward): Use abort, not assert.
2850 * sysdep.c (my_sys_siglist): New var.
2851 (sys_siglist): New macro. Remove old initialized vars of same name.
2852 (init_signals): Initialize sys_siglist.
2854 * xfns.c (abort): Remove decl; stdlib.h now does this.
2856 1999-11-18 Dave Love <fx@gnu.org>
2858 * filelock.c: Add forward declaration for get_boot_time_1.
2860 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
2862 1999-11-18 Gerd Moellmann <gerd@gnu.org>
2864 * buffer.h (struct buffer_text): Add comment about moving
2865 buffer text if REL_ALLOC is defined.
2867 1999-11-18 Kenichi Handa <handa@etl.go.jp>
2869 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
2871 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
2872 memory for push_key_description.
2874 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
2875 allocate memory for push_key_description.
2876 (describe_buffer_bindings): Likewise.
2878 1999-11-17 Gerd Moellmann <gerd@gnu.org>
2880 * xfns.c (Fx_show_busy_cursor): Doc-fix.
2881 (Fx_hide_busy_cursor): Ditto.
2883 1999-11-17 Marco Walther <walther@siemens-pyramid.com>
2885 * unexsni.c (unexec): Handle .rel.dyn section.
2887 1999-11-16 Dave Love <fx@gnu.org>
2889 * doc.c (Fdocumentation): Remove gcpro here too.
2891 1999-11-16 Gerd Moellmann <gerd@gnu.org>
2893 * keyboard.c (command_loop_1): Remove no_redisplay.
2895 1999-11-16 Richard M. Stallman <rms@gnu.org>
2897 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
2900 1999-11-14 Gerd Moellmann <gerd@gnu.org>
2902 * xdisp.c (ensure_echo_area_buffers): New.
2903 (with_echo_area_buffer): Use it.
2904 (setup_echo_area_for_printing): Ditto.
2906 * buffer.c (indicate-empty-lines): Doc-fix.
2908 1999-11-12 Gerd Moellmann <gerd@gnu.org>
2910 * term.c (term_init): If "op" isn't available, don't support color
2911 because we can't switch back to the default foreground and
2914 * doc.c (Fdocumentation_property): Remove GCPRO because
2915 Fsubstitute_command_keys gcpro's the string.
2917 1999-11-12 Kenichi Handa <handa@etl.go.jp>
2919 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
2921 1999-11-11 Gerd Moellmann <gerd@gnu.org>
2923 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
2924 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
2925 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
2927 1999-11-10 Gerd Moellmann <gerd@gnu.org>
2929 * xfns.c (QCuser_data): Removed.
2930 (syms_of_xfns): Initialization of QCuser_data removed.
2931 (parse_image_spec): Don't handle :user-data specially. Allow
2932 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
2933 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
2934 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
2935 parse_image_spec accordingly.
2937 1999-11-09 Richard M. Stallman <rms@gnu.org>
2939 * cmds.c (Fbeginning_of_line): Doc fix.
2940 (Fend_of_line): Doc fix.
2942 * editfns.c (Fline_beginning_position): If N is not 1,
2943 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
2945 * syntax.c (Fforward_word): Handle fields even if would have hit
2946 an edge of the buffer. Return nil if affected by fields.
2948 1999-11-09 Richard M. Stallman <rms@gnu.org>
2950 * editfns.c (preceding_pos): Function deleted.
2951 (text_property_stickiness): Decrement POS directly.
2952 Fix a confusion that used PT instead of POS.
2954 * editfns.c (find_field): Properly handle the case
2955 of a field boundary where `field' inherits from neither side.
2957 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
2958 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
2960 1999-11-08 Gerd Moellmann <gerd@gnu.org>
2962 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
2963 BEFORE_POTENTIAL_GC before DISCARD.
2965 1999-11-07 Gerd Moellmann <gerd@gnu.org>
2967 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
2969 * lisp.h: Add prototype for unmark_byte_stack.
2971 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
2972 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
2975 * xdisp.c (resize_mini_window): Fix computation of needed
2978 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
2979 compilation on USE_TEXT_PROPERTIES.
2981 * Fbyte_code: Use block statements in cases and declare v1 and v2
2982 locally there. Rearrange case statements so that those most
2983 frequently executed come first. Avoid goto's in frequently
2986 1999-11-05 Gerd Moellmann <gerd@gnu.org>
2988 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
2989 AFTER_POTENTIAL_GC around internal_catch.
2991 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
2993 (init_alloc_once, init_alloc): Set byte_stack_list to null.
2995 * eval.c (struct catchtag): Add member byte_stack.
2996 (internal_catch, Fcondition_case, internal_condition_case)
2997 (internal_condition_case_1): Save value of byte_stack_list in
2999 (unwind_to_catch): Restore byte_stack_list from catchtag.
3001 * lisp.h: Add prototypes for new functions in bytecode.c.
3002 Add extern declaration for byte_stack_list.
3004 * bytecode.c (struct byte_stack): New.
3005 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
3006 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
3007 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
3008 (HANDLE_RELOCATION): Removed.
3009 (Fbyte_code): Use byte_stack structures.
3011 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
3013 * buffer.c (syms_of_buffer): Extend documentation of
3016 1999-11-04 Gerd Moellmann <gerd@gnu.org>
3018 * editfns.c (Fdelete_field): Renamed from Ferase_field.
3020 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
3021 Ferase_field instead of Fdelete_field.
3023 1999-11-03 Gerd Moellmann <gerd@gnu.org>
3025 * dispnew.c (Finternal_show_cursor): Change it to set the
3026 cursor on/off, not toggle its state.
3027 (Finternal_show_cursor_p): New.
3028 (syms_of_display): Defsubr Sinternal_show_cursor_p.
3030 1999-11-03 Dave Love <fx@gnu.org>
3032 * charset.c (split_non_ascii_string): Define return value.
3034 1999-11-03 Gerd Moellmann <gerd@gnu.org>
3036 * minibuf.c (string_to_object): New.
3037 (read_minibuf_noninteractive): New.
3038 (read_minibuf): Call read_minibuf_noninteractive if
3039 noninteractive. Use string_to_object.
3041 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
3043 1999-11-02 Dave Love <fx@gnu.org>
3045 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
3047 * process.c: Define _GNU_SOURCE before config.h to get strsignal
3048 declared with glibc2.
3050 1999-11-02 Gerd Moellmann <gerd@gnu.org>
3052 * lisp.h (QUIT): Give it statement form.
3054 1999-11-02 Dave Love <fx@gnu.org>
3056 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
3058 1999-11-02 Gerd Moellmann <gerd@gnu.org>
3060 * xfns.c (QCuser_data): New.
3061 (syms_of_xfns): Initialize QCuser_data.
3062 (parse_image_spec): Ignore :user-data DATA properties.
3064 * xdisp.c (display_line): Set charpos of first glyph in blank
3065 lines not corresponding to any text to -1, even if no glyphs are
3066 filled in in that line.
3068 1999-11-01 Gerd Moellmann <gerd@gnu.org>
3070 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
3071 png_get_sRGB in #ifdef.
3073 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
3074 (syms_of_display): Use the new name.
3076 * textprop.c (verify_interval_modification): Signal text-read-only
3077 instead of calling error.
3079 * data.c (Qtext_read_only): New built-in error.
3080 (syms_of_data): Initialize it.
3082 * lisp.h: Add extern declaration for Qtext_read_only.
3084 * syntax.c: Remove whitespace after open or in front of closing
3087 1999-11-01 Richard M. Stallman <rms@gnu.org>
3089 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
3091 1999-10-31 Gerd Moellmann <gerd@gnu.org>
3093 * xdisp.c (resize_mini_window): Compute needed height differently.
3095 * fns.c (Flength): Unroll loop over lists.
3097 * xdisp.c (append_space): Return non-zero if space was appended.
3098 (display_line): Set charpos of first glyph to -1 only if that
3099 glyph is the space added by append_glyph.
3101 1999-10-30 Richard M. Stallman <rms@gnu.org>
3103 * print.c (strout): Consider `noninteractive' and use stdout
3104 only when PRINTCHARFUN is t.
3106 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
3107 (gcpro_level): Declare it extern.
3108 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
3109 Alternate definitions that set `level' and increment `gcpro_level'.
3110 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
3112 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
3113 (init_eval) [DEBUG_GCPRO]: Initialize it.
3114 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
3115 from remaining gcprolist.
3117 1999-10-29 Kenichi Handa <handa@etl.go.jp>
3119 * coding.c (code_convert_region): Update `dst' correctly.
3121 1999-10-28 Gerd Moellmann <gerd@gnu.org>
3123 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
3124 (Frassoc): Rewritten.
3126 1999-10-27 Noah Friedman <friedman@splode.com>
3128 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
3129 Define PTY_NAME_SPRINTF.
3130 Redefine PTY_TTY_NAME_SPRINTF.
3131 * config.in: Add undef for HAVE_DEV_PTMX.
3133 1999-10-26 Richard M. Stallman <rms@gnu.org>
3135 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
3136 as arg to DEBUG_POP and DEBUG_PRINT.
3138 1999-10-27 Richard M. Stallman <rms@gnu.org>
3140 * data.c (Qad_activate_internal): Renamed from Qad_activate.
3141 (Ffset): Call Qad_activate_internal.
3142 (syms_of_data): Initialize Qad_activate_internal.
3144 1999-10-27 Gerd Moellmann <gerd@gnu.org>
3146 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
3147 Vterminal_frame is selected and Vwindow_system is non-nil.
3149 1999-10-26 Gerd Moellmann <gerd@gnu.org>
3151 * xdisp.c (echo_area_display): Put previous change in #if 0.
3153 * emacs.c (standard_args): Add `file' as synonym for `visit',
3154 `execute' as synonym for `eval'.
3155 (main): Add new options to usage message.
3157 1999-10-25 Gerd Moellmann <gerd@gnu.org>
3159 * data.c (Qhash_table): New.
3160 (Ftype_of): Return it for hash tables.
3161 (syms_of_data): Initialize Qhash_table.
3163 1999-10-25 Richard M. Stallman <rms@gnu.org>
3165 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
3167 1999-10-24 Ken Raeburn <raeburn@gnu.org>
3169 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
3172 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
3173 Fbuffer_local_variables, Fother_buffer, record_buffer,
3174 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
3175 swap_out_buffer_local_variables, overlays_at, overlays_in,
3176 overlay_touches_p, overlay_strings, recenter_overlay_lists,
3177 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
3178 Foverlay_put, report_overlay_modification, evaporate_overlays):
3179 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
3181 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
3182 swap_in_symval_forwarding, set_internal, default_value,
3183 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
3184 Fmake_variable_frame_local, Flocal_variable_p,
3185 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
3186 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
3187 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
3188 * emacs.c (main): Likewise.
3189 * fontset.c (fs_load_font, fs_register_fontset,
3190 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
3191 Fnew_fontset, Fset_fontset_font): Likewise.
3192 * frame.c (do_switch_frame, next_frame, prev_frame,
3193 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
3195 * keyboard.c (read_char, help_char_p, event_to_kboard,
3196 kbd_buffer_get_event, timer_start_idle, timer_check,
3197 make_lispy_event, apply_modifiers, reorder_modifiers,
3198 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
3199 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
3200 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
3201 Fcommand_execute, Fexecute_extended_command): Likewise.
3202 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
3203 Fall_completions): Likewise.
3204 * window.c (Fset_window_margins): Likewise.
3206 * callint.c (quotify_args): Don't explicitly use struct
3207 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
3209 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
3210 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
3211 if __ELF__ is defined.
3213 1999-10-24 Gerd Moellmann <gerd@gnu.org>
3215 * window.c (Fnext_window): Add a QUIT in the loop.
3217 1999-10-23 Gerd Moellmann <gerd@gnu.org>
3219 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
3222 1999-10-22 Dave Love <fx@gnu.org>
3224 * emacs.c (main): Enable profiling conditional on __linux also.
3226 1999-10-20 Gerd Moellmann <gerd@gnu.org>
3228 * xrdb.c (x_load_resources): Set default resources for resource
3229 classes instead of for the specific Emacs.
3231 1999-10-19 Gerd Moellmann <gerd@gnu.org>
3233 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
3234 defines it that way.
3236 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
3237 if selected_frame is equal to Vterminal_frame.
3239 1999-10-19 Paul Eggert <eggert@twinsun.com>
3241 Add support for large files, 64-bit Solaris, system locale codings.
3243 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
3244 when dumping, so that the dumped Emacs doesn't have stray locale info.
3245 (dired.o): Depend on systime.h.
3246 (editfns.o): Depend on coding.h.
3248 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
3249 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
3250 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
3251 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
3252 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
3253 Include <config.h> before any system include files.
3255 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
3256 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
3257 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
3259 Do not include <stdlib.h>, as <config.h> does this now.
3261 * callproc.c (Fcall_process):
3262 Synchronize messages locale before invoking strerror.
3263 Decode resulting string with locale-coding-system.
3265 * coding.c (Vlocale_coding_system): New var.
3266 (syms_of_coding): Adjust to above change.
3267 (emacs_strerror): New function.
3269 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
3271 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
3272 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
3273 HAVE_STRSIGNAL): New macros.
3274 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
3275 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
3277 * dired.c: Include "systime.h".
3278 (Ffile_attributes): Do not cast s.st_size to int; this loses
3279 information if int is 32 bits but st_size and EMACS_INT are larger.
3280 Treat large device numbers like large inode numbers.
3282 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
3284 * editfns.c: Include coding.h.
3285 (emacs_strftime): Remove decl.
3286 (emacs_strftimeu): New decl.
3287 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
3288 Use emacs_strftimeu instead of emacs_strftime.
3289 (Fformat_time_string): Convert format string using
3290 Vlocale_coding_system, and convert result back. Synchronize time
3291 locale before invoking lower level function. Invoke
3292 emacs_memftimeu, passing ut, instead of emacs_memftime.
3294 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
3295 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
3296 Vprevious_time_locale): New variables.
3297 (main): Invoke setlocale early, so that initial error messages are
3298 localized properly. But skip locale-setting if LC_ALL is "C".
3299 Fix up locale when it's safe to do so.
3300 (fixup_locale): Moved here from xterm.c.
3301 (synchronize_locale, synchronize_time_locale,
3302 synchronize_messages_locale): New functions.
3303 (syms_of_emacs): Accommodate above changes.
3305 * fileio.c (report_file_error): Convert strerror output according
3306 to Vlocale_coding_system.
3307 (Finsert_file_contents): Check for arithmetic overflow in
3308 computations that depend on file size. Report IO errors
3309 with emacs_strerror, not strerror.
3311 * fns.c (Fgethash): Declare dflt parameter.
3313 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
3314 is defined; that's config.h's job.
3316 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
3317 default these values to long, BITS_PER_LONG, and unsigned long.
3318 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
3319 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
3320 (code_convert_string_norecord, fixup_locale,
3321 synchronize_messages_locale, synchronize_time_locale,
3322 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
3323 All Emacs callers of open, close, read, write changed to use
3324 emacs_open, emacs_close, emacs_read, emacs_write.
3326 * lread.c (file_offset, file_tell): New macros. All uses of ftell
3327 changed to file_tell.
3328 (saved_doc_string_position, prev_saved_doc_string_position): Now
3329 of type file_offset.
3330 (init_lread): Do not fix locale here; fixup_locale now does this.
3332 * m/amdahl.h, s/usg5-4.h:
3334 (NSIG_MINIMUM): New macro.
3336 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
3337 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
3338 s/umips.h, s/usg5-4.h:
3339 (SIGIO): Do not undef.
3340 (BROKEN_SIGIO): New macro.
3343 (SIGTSTP): Do not undef.
3344 (BROKEN_SIGTSTP): New macro.
3347 (SIGPOLL, SIGURG): Do not undef.
3348 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
3351 (SIGINFO): Do not undef.
3352 (BROKEN_SIGINFO): New macros.
3354 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
3356 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
3357 some Emacs-related changes merged.
3359 * print.c (float_to_string): Prepend "-" to representation of a
3360 NaN if the NaN is negative.
3362 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
3363 (wait_reading_process_input): Use emacs_strerror, not strerror.
3365 * process.c (status_message, sigchld_handler): Synchronize locale,
3366 then use strsignal istead of sys_siglist.
3367 * w32proc.c (sys_wait): Likewise.
3369 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
3370 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
3371 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
3372 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
3373 (open, close, read, write, INTERRUPTIBLE_OPEN,
3374 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
3376 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
3378 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
3379 sys_open, open): Remove.
3380 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
3381 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
3382 macros are no longer used.
3383 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
3384 (emacs_close): Renamed from sys_close.
3385 (emacs_read): Renamed from sys_read.
3386 (emacs_write): Renamed from sys_write.
3387 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
3388 (dup2): Do not print error on failure; the real dup2 doesn't.
3389 (strsignal): New function, defined if !HAVE_STRSIGNAL.
3391 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
3393 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
3394 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
3395 (strsignal): Declare if !HAVE_STRSIGNAL.
3397 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
3398 (ElfW): Define in terms of ElfExpandBitsW.
3400 * w32proc.c (sys_siglist): Remove decl.
3402 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
3404 (display_string): Declare face_string_pos arg.
3406 * xfns.c (Fx_show_tip): Declare timeout param.
3408 * xterm.c: No need to include locale.h.
3409 (x_alloc_lighter_color, x_setup_relief_color):
3410 Pass arg as double, not float, for compatibility with ANSI C.
3411 (fixup_locale): Move to emacs.c.
3412 (x_term_init): Do not setlocale or fixup locale; the main program
3415 1999-10-18 Dave Love <fx@gnu.org>
3417 * doc.c (Fdocumentation_property): Gcpro `tem'.
3419 1999-10-18 Kenichi Handa <handa@etl.go.jp>
3421 * lread.c (Fload): Calculate bytes of filename correctly.
3424 1999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
3426 * print.c (print_preprocess): In case print-circle is nil,
3427 add OBJ to Vprint_number_table only when OBJ is a symbol.
3429 1999-10-18 Kenichi Handa <handa@etl.go.jp>
3431 * coding.c (code_convert_string): Add record_unwind_protect to
3432 assure setting inhibit_pre_post_conversion back to zero. Take
3433 care of the multibyteness of the working buffer.
3435 * coding.c (inhibit_pre_post_conversion): New variable.
3436 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
3437 ignore post-read-conversion and pre-write-conversion property of
3439 (code_convert_region_unwind): New function.
3440 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
3441 running pre-write-conversion and post-read-conversion.
3442 (code_convert_string): Likewise.
3444 1999-10-17 Miles Bader <miles@gnu.org>
3446 * editfns.c: Doc fix.
3448 1999-10-17 Miles Bader <miles@gnu.org>
3450 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
3451 argument preconditions of find_before_next_newline in the case
3452 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
3453 was indeed at the edge.
3455 1999-10-17 Miles Bader <miles@gnu.org>
3457 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
3458 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
3460 * editfns.c (text_property_eq, text_property_stickiness): Don't
3461 use initializers for auto variables of type Lisp_Object.
3462 (find_field): Likewise. Use braces around nested ifs.
3463 (Fline_end_position): Store the raw eol in a variable, so that the
3464 final expression doesn't look so ugly.
3465 (Fconstrain_to_field): Doc fix.
3466 (preceding_pos): Renamed from `preceeding_pos'.
3467 (text_property_stickiness, find_field): Call preceding_pos,
3470 1999-10-17 Miles Bader <miles@gnu.org>
3472 * editfns.c (Ffield_string_no_properties): New function.
3473 (text_property_stickiness, preceeding_pos): New functions.
3474 (Ffield_string): Remove PROPS parameter.
3475 (find_field): Add MERGE_AT_BOUNDARY parameter.
3476 Rewrite to use stickiness of `field' property to resolve
3478 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
3479 (Fconstrain_to_field): Likewise.
3480 (syms_of_editfns): Init Sfield_string_no_properties.
3481 (Ffield_string, Ferase_field, Ffield_end):
3482 Supply new MERGE_AT_BOUNDARY argument to find_field.
3483 (Fline_beginning_position, Fline_end_position): Supply new
3484 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
3485 Pass a value of Qt for the ONLY_IN_LINE argument to
3486 Fconstrain_to_field (only matters if N != 1).
3487 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
3488 to Fconstrain_to_field.
3490 * minibuf.c (Fminibuffer_complete_word): Use
3491 Ffield_beginning to find the prompt end.
3493 1999-10-17 Miles Bader <miles@gnu.org>
3495 * editfns.c (Fconstrain_to_field): Add get/set-current-point
3496 behavior when NEW_POS is nil.
3497 (find_field): Use XSETFASTINT instead of make_number.
3498 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
3499 input string by seeing where the field begins, instead of
3500 looking at text-properties.
3502 1999-10-17 Miles Bader <miles@gnu.org>
3504 * editfns.c (Qfield): New variable.
3505 (find_field, Ferase_field, Ffield_string,
3506 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
3507 (Fline_beginning_position, Fline_end_position): Constrain to any field.
3508 (make_buffer_string_both): Remove minibuffer-prompt hack.
3509 (syms_of_editfns): Initialize Qfield, and subr entries for
3510 field functions above.
3511 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
3513 Don't initialize minibuffer prompt length.
3514 Wrap prompt text-properties around the entire prompt.
3515 Add 'prompt text-property to prompt.
3516 Get final value with Ffield_string instead of make_buffer_string.
3517 (read_minibuf_unwind): Don't restore minibuffer prompt length from
3519 (do_completion): Get minibuffer input with Ffield_string
3520 instead of Fbuffer_string.
3521 Erase minibuffer input with Ferase_field instead of erase_buffer.
3522 (Fminibuffer_complete_and_exit): Likewise.
3523 Test whether buffer is empty by looking for the 'prompt text
3524 property at the end.
3525 Set prompt length by looking for the end of the prompt text property,
3526 and save prompt length for later use (since there is no longer a
3527 buffer variable to get it from).
3528 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
3529 (syms_of_minibuf): Remove initializations of
3530 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
3531 * buffer.h (struct buffer): Remove prompt_end_charpos field.
3532 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
3533 Don't initialize prompt_end_charpos field.
3534 * syntax.c (Fforward_word): Likewise.
3535 Constrain to any field.
3537 1999-10-16 Gerd Moellmann <gerd@gnu.org>
3539 * window.c (enum save_restore_action): New.
3540 (save_restore_orig_size): Change parameter list. Add
3541 functionality to check for valid orig_top and orig_height members
3543 (grow_mini_window): Call save_restore_orig_size with new parameter
3545 (shrink_mini_window): Restore old window sizes only if old
3546 size information is valid in all windows in a window tree.
3548 1999-10-15 Gerd Moellmann <gerd@gnu.org>
3550 * xmenu.c (set_frame_menubar): Don't call
3551 x_set_menu_resources_from_menu_face here.
3552 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
3554 * xfns.c (gif_load): Fix handling of interlaced GIFs.
3556 1999-10-14 Dave Love <fx@gnu.org>
3558 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
3560 1999-10-14 Gerd Moellmann <gerd@gnu.org>
3562 * process.c (Fopen_network_stream): Don't loop if gethostbyname
3563 fails and h_errno is TRY_AGAIN.
3565 1999-10-13 Dave Love <fx@gnu.org>
3567 * filelock.c (lock_file): Move gcpro of `fn'.
3569 1999-10-10 Gerd Moellmann <gerd@gnu.org>
3571 * keyboard.c (auto-save-interval): Fix documentation.
3573 1999-10-09 Richard M. Stallman <rms@gnu.org>
3575 * print.c (print): When removing objects from Vprint_number_table,
3576 only scan the newly added objects.
3577 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
3578 unconditionally force it to stay in the table.
3580 1999-10-09 Gerd Moellmann <gerd@gnu.org>
3582 * xfns.c (prepare_image_for_display): Don't try to load image if
3583 loading it failed before.
3584 (lookup_image, prepare_image_for_display): Remember if loading the
3586 (xpm_load): Add missing UNBLOCK_INPUT.
3588 * dispextern.h (struct image): New member load_failed_p.
3590 1999-10-08 Stefan Monnier <monnier@cs.yale.edu>
3592 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
3595 1999-10-08 Gerd Moellmann <gerd@gnu.org>
3597 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
3598 Don't call XSetInputFocus because that can generate additional
3601 1999-10-07 Jeffrey C Honig <jch@bsdi.com>
3603 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
3605 1999-10-07 Richard M. Stallman <rms@gnu.org>
3607 * process.c (wait_reading_process_input): When trying to suck
3608 input from one process, for accept-process-output,
3609 exit that loop if we get EAGAIN or EWOULDBLOCK.
3611 1999-10-07 Gerd Moellmann <gerd@gnu.org>
3613 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
3614 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
3615 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
3616 Fpixmap_spec_p and Qpixmap_spec_p.
3617 (load_face_colors, check_lface_attrs,
3618 merge_face_vector_with_property,
3619 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
3620 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
3623 1999-10-07 Gerd Moellmann <gerd@gnu.org>
3625 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
3628 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
3629 (struct x_resources) [USE_X_TOOLKIT]: New.
3630 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
3632 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
3634 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
3636 (syms_of_xfaces): Initialize Qmenu.
3637 (realize_basic_faces): Realize face `menu'.
3638 (resolve_face_name): New.
3639 (lface_from_face_name): Use it.
3640 (Finternal_set_lisp_face_attribute): Ditto.
3641 (Fpixmap_spec_p): Rewritten. Extend doc string.
3643 * xmenu.c (set_frame_menubar, xmenu_show): Call
3644 x_set_menu_resources_from_menu_face.
3646 * dispextern.h (enum face_id): Add MENU_FACE_ID.
3647 (toplevel): Include X11/Intrinsic.h.
3649 1999-10-03 Ken'ichi Handa <handa@gnu.org>
3651 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
3654 1999-09-30 Kenichi Handa <handa@etl.go.jp>
3656 * category.c (modify_lower_category_set): Set default value of
3659 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
3662 1999-09-29 Gerd Moellmann <gerd@gnu.org>
3664 * editfns.c (Fpropertize): Renamed from Fproperties.
3666 1999-09-29 Gerd Moellmann <gerd@gnu.org>
3668 * xdisp.c (resize_mini_window): Do nothing if frame is an X
3669 frame that hasn't been initialized yet.
3671 1999-09-28 Richard M. Stallman <rms@gnu.org>
3673 * keymap.c (Fsingle_key_description): Make tem big enough.
3674 (describe_buffer_bindings): Make buf big enough.
3676 1999-09-27 Richard M. Stallman <rms@gnu.org>
3678 * intervals.c (get_local_map): Use indirect_function,
3679 not Findirect_function.
3681 1999-09-27 Dave Love <fx@gnu.org>
3683 * cm.h: Remove unneeded declaration of ospeed.
3685 1999-09-26 Gerd Moellmann <gerd@gnu.org>
3687 * lisp.h (toplevel): Add prototype for
3688 next_single_char_property_change.
3690 * textprop.c (next_single_char_property_change): New.
3692 * xdisp.c (display_prop_end, invisible_text_between_p): Use
3693 next_single_char_property_change.
3695 1999-09-25 Gerd Moellmann <gerd@gnu.org>
3697 * editfns.c (Fproperties): New.
3698 (syms_of_editfns): Defsubr it.
3700 * xfns.c (lookup_image): Set image's timestamp because it's
3701 used when we look it up.
3703 1999-09-23 Gerd Moellmann <gerd@gnu.org>
3705 * window.c (enlarge_window): Add window parameter instead of using
3707 (Fdisplay_buffer): Call it with window parameter instead of
3708 setting selected_window.
3709 (Fenlarge_window, Fshrink_window): Ditto.
3710 (shrink_mini_window): If there is no recorded height and position
3711 info, resize mini-window to height 1.
3713 * xfns.c (image_error): Use add_to_log.
3715 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
3716 (load_face_font_or_fontset, load_color,
3717 merge_face_vector_with_property): Ditto.
3719 * dispextern.h: Add prototype for add_to_log.
3721 * xfaces.c (add_to_log): Move to xdisp.c.
3723 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
3726 1999-09-23 Gerd Moellmann <gerd@gnu.org>
3728 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
3729 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
3731 * xdisp.c (resize_mini_window): Use grow_mini_window and
3734 * window.c (window_min_size): Add parameter ignore_fixed_p.
3735 (change_window_height): Call window_min_size with new parameter.
3736 (shrink_window_lowest_first, save_restore_orig_size,
3737 grow_mini_window, shrink_mini_window): New.
3738 (make_window, replace_window): Initialize orig_top and
3740 (enlarge_window): Renamed from change_window_height. Make it
3742 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
3743 enlarge_window instead of change_window_height.
3745 * window.h (struct window): New members orig_top, orig_height.
3746 (toplevel): Add prototypes for grow_mini_window and
3747 shrink_mini_window. Remove prototype for change_window_height.
3749 1999-09-21 Eli Zaretskii <eliz@gnu.org>
3751 * frame.c (frame_name_fnn_p): Fix previous change.
3753 1999-09-20 Gerd Moellmann <gerd@gnu.org>
3755 * minibuf.c (toplevel): Move include of stdio.h to other includes.
3757 * dispnew.c (direct_output_for_insert): Cast arguments to
3758 safe_bcopy to char *.
3760 * lread.c (readchar): Remove unused variables.
3761 (read_filtered_event, read1, Fmapatoms): Ditto.
3762 (toplevel): Include intervals.h.
3764 * eval.c (Fsignal): Remove unused variables.
3765 (Fcommandp, do_autoload): Ditto.
3767 * lisp.h: Add prototype for safe_bcopy, fatal.
3769 * editfns.c (init_editfns): Remove unused variables.
3770 (Fgoto_char, Fchar_after, Fformat): Ditto.
3771 (message_text, message_length): Put in #ifndef HAVE_MENUS.
3773 * data.c (find_symbol_value): Remove unused variables.
3774 (Faref, Fstring_to_number): Ditto.
3775 (toplevel): Include stdio.h.
3776 (Fnumber_to_string): Cast XINT to long for %ld.
3778 * casefiddle.c (casify_object): Remove unused variables.
3779 (casify_region): Ditto.
3781 * filelock.c (get_boot_time): Put local variable used in
3782 conditinally compiled section in #ifdef.
3783 (toplevel): Include stdio.h.
3785 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
3786 keys_of_keymap, syms_of_keymap): Remove unused variables.
3788 1999-09-20 Gerd Moellmann <gerd@gnu.org>
3790 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
3791 whose corresponding window rows have been disabled in
3794 1999-09-20 Gerd Moellmann <gerd@gnu.org>
3796 * xdisp.c (compute_window_start_on_continuation_line): Handle case
3797 that window start is out of range.
3798 (handle_display_prop, handle_single_display_prop): Replace
3799 marginal area specifications like `left-margin' with `(margin
3802 (syms_of_xdisp): Initialize Qmargin.
3804 1999-09-19 Gerd Moellmann <gerd@gnu.org>
3806 * syntax.c (update_syntax_table, find_defun_start, back_comment,
3807 describe_syntax, skip_chars): Remove unused variables.
3808 (back_comment, forw_comment): Add braces to if-statement with
3809 if-else as dependent statement.
3811 * process.c (list_processes_1): Remove unused variables.
3812 (Fopen_network_stream, create_process): Add parentheses to
3813 conditional expressions.
3814 (create_process): Put declaration of sigchld in #if 0.
3815 (Fopen_network_stream): Removed unused variables.
3816 (Fopen_network_stream, wait_reading_process_input,
3817 wait_reading_process_input, send_process, send_process): Ditto.
3818 (toplevel): Add prototypes for set_waiting_for_input and
3821 * abbrev.c (Fexpand_abbrev): Remove unused variables.
3823 * textprop.c (Fset_text_properties): Remove unused variables.
3824 (text_property_list, verify_interval_modification,
3825 interval_has_all_properties): Ditto.
3827 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
3828 (Fcall_process): Remove unused variable.
3830 * keyboard.c (Frecursive_edit): Remove unused variable.
3831 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
3832 timer_check, make_lispy_event, menu_bar_items,
3833 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
3834 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
3835 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
3836 read_key_sequence): Ditto. Fread_key_sequence,
3837 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
3838 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
3839 used when GOBBLE_FIRST_EVENT is defined in #ifdef
3840 (Fexecute_extended_command): Cast XINT to long for %ld.
3841 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
3842 (toplevel): Include sys/types.h.
3844 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
3845 (toplevel): Add prototypes for stuff_char, and
3846 code_convert_string_norecord.
3848 1999-09-19 Gerd Moellmann <gerd@gnu.org>
3850 * buffer.h: Add prototype for r_re_alloc.
3852 * insdel.c (copy_text): Removed unused variables.
3853 (count_combining_after, count_combining_after, insert_1_both,
3854 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
3855 (adjust_after_replace, replace_range): Add parentheses to logical
3856 expressions. Remove unused variables.
3857 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
3860 * alloc.c (Fgarbage_collect): Remove unused variable.
3861 (compact_strings): Add parentheses around assignments in
3862 conditional context.
3863 (toplevel): Put declaration of unused function clear_marks
3864 in #if 0 like its definition.
3866 * lisp.h: Add prototype for shrink_regexp_cache,
3867 sweep_weak_hash_tables.
3869 1999-09-19 Dave Love <fx@gnu.org>
3871 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
3873 * doc.c (read_bytecode_char): Declare arg.
3875 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
3876 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
3878 1999-09-18 Richard Stallman <rms@gnu.org>
3880 * xdisp.c (echo_area_display): Turn off code that returned
3881 without doing anything when using a terminal frame.
3883 1999-09-17 Richard M. Stallman <rms@gnu.org>
3885 * unexelf.c (unexec): Don't get confused by a short section
3886 just before the bss section.
3888 1999-09-16 Gerd Moellmann <gerd@gnu.org>
3890 * emacs.c (main): Remove unused variables.
3891 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
3893 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
3894 init_fileio_once, syms_of_sound, init_xfns, init_fns
3895 init_sound, check_message_stack.
3897 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
3899 * intervals.c (rotate_right, rotate_left): Add braces to avoid
3900 ambiguous else warning.
3901 (split_interval_left): Remove unused variables.
3902 (previous_interval, adjust_intervals_for_deletion,
3903 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
3904 (icount, idepth, zero_length): Move into #if 0 section below
3905 original position where these are used.
3907 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
3909 * buffer.c (Fkill_buffer): Remove unused variables.
3910 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
3911 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
3912 init_buffer_once, (syms_of_buffer): Ditto.
3914 * xrdb.c (get_fallback): Remove unused variable.
3915 (x_load_resources): Ditto. Put local variable used for Motif only
3916 in #ifdef USE_MOTIF.
3918 1999-09-16 Gerd Moellmann <gerd@gnu.org>
3920 * minibuf.c (read_minibuf): Remove unused variables.
3921 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
3922 (do_completion): Move assignment out of conditional context.
3923 (Fdisplay_completion_list): Add parentheses to conditional expression.
3925 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
3927 * lisp.h: Add prototype for no_switch_window.
3929 * window.c (Fset_window_buffer): Remove unused variables.
3930 (Fset_window_margins): Ditto.
3932 * xdisp.c (resize_mini_window): Temporarily set the selected
3933 window's or Vminibuf_scroll_window's height to "fixed" around
3934 the call the change_window_height.
3936 * window.c (window_fixed_size_p): Check window's height_fixed_p
3939 * window.h (struct window): New member height_fixed_p.
3941 * dispnew.c (direct_output_forward_char): Don't use this method
3942 if showing a message or a message was just cleared because we
3943 might need to resize the mini-window.
3945 1999-09-16 Gerd Moellmann <gerd@gnu.org>
3947 * frame.c (Fdelete_frame): Correct local variable pointing to
3948 selected frame after selecting new frame.
3950 1999-09-15 Richard Stallman <rms@gnu.org>
3952 * puresize.h (BASE_PURESIZE): Increase to 525000.
3954 * filelock.c (Vtemporary_file_directory): New variable.
3955 (syms_of_filelock): Set up Lisp variable.
3957 1999-09-15 Gerd Moellmann <gerd@gnu.org>
3959 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
3960 (encode_terminal_code): Remove unused variables.
3961 (turn_off_face): Ditto.
3962 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
3964 * dispnew.c (update_frame_line): If writing whole desired line,
3965 don't clear to end of line if already at the end.
3967 1999-09-15 Gerd Moellmann <gerd@gnu.org>
3969 * xdisp.c (resize_mini_window): Don't report changed window
3970 height if it actually hasn't changed.
3972 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
3974 (mark_shell_size_user_specified): Put in #if 0 because not used.
3975 (create_frame_gcs): Put in #if 0 because currently unused.
3976 (first_frame_p): Ditto.
3978 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
3979 single_submenu, update_frame_menubar, set_frame_menubar,
3980 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
3983 * print.c (PRINTFULLP): Removed because it is no longer used and
3985 (Ferror_message_string): Remove unused variables.
3986 (print_object): Cast argument of sprintf to long for `%ld'
3987 specifier. Remove unused variable.
3989 1999-09-14 Gerd Moellmann <gerd@gnu.org>
3991 * sound.c (Fplay_sound): Remove usused variables.
3992 (be2hs): Put in #if 0 because it's currently not used.
3994 1999-09-14 Ken Raeburn <raeburn@gnu.org>
3996 * print.c (Ferror_message_string, print_error_message,
3997 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
4000 1999-09-14 Gerd Moellmann <gerd@gnu.org>
4002 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
4004 * frame.c (Fnext_frame): Remove unused variable(s).
4005 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
4006 (store_frame_param): Add parentheses to conditional expression.
4007 (Fmodify_frame_parameters): Remove unused variables.
4008 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
4011 * xfns.c (x_set_background_color): Remove unused variable(s).
4012 (x_set_border_pixel): Ditto.
4013 (x_set_menu_bar_lines): Put local variable used only for
4014 non-toolkit case in #ifdef/#endif.
4015 (x_figure_window_size): Remove unused variable(s).
4016 (x_figure_window_size, x_window, lookup_image,
4017 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
4018 png_load, jpeg_load, gif_load, x_create_tip_frame,
4019 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
4021 * xterm.c (x_scroll_bar_handle_click): Compile only if
4022 not USE_TOOLKIT_SCROLL_BARS.
4023 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
4025 * dispextern.h: Add prototypes for gamma_correct and
4028 * xterm.c (x_produce_glyphs): Remove unused variable(s).
4029 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
4030 x_set_toolkit_scroll_bar_thumb): Ditto.
4031 (x_scroll_bar_create): Move local variable to the
4032 conditionally compiled section of code where it is used.
4033 (x_scroll_bar_create): Remove unused variable(s).
4034 (x_scroll_bar_remove, XTread_socket): Ditto.
4035 (XTread_socket) <ConfigureNotify>: Move variables used for
4036 non-toolkit case into conditionally compiled section of code.
4038 * window.h (freeze_window_starts): Fix typo in prototype.
4040 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
4043 * lisp.h: Add prototype for debug_print.
4045 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
4048 * fns.c (SXHASH_COMBINE): Add missing parentheses.
4049 (Fchar_table_range, Fset_char_table_default, mapcar1,
4050 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
4052 * lisp.h: Add prototype for getloadavg.
4054 1999-09-14 Andreas Schwab <schwab@gnu.org>
4056 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
4058 * lisp.h: Declare close_file_unwind.
4060 1999-09-14 Richard Stallman <rms@gnu.org>
4062 * filelock.c (get_boot_time): Make the temp name in the proper dir.
4064 1999-09-13 Gerd Moellmann <gerd@gnu.org>
4066 * xdisp.c (redisplay_window): Make sure start_at_line_beg
4067 is always set correctly.
4069 1999-09-13 Dave Love <fx@gnu.org>
4071 * xdisp.c (move_it_in_display_line_to): Make type consistent with
4074 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4076 * xdisp.c (QCfile): Move here from xfns.c.
4077 (syms_of_xdisp): Initialize it.
4078 (message2_nolog): Change for Lisp_Object selected_frame.
4079 (message3_nolog, message_with_string, message,
4080 setup_echo_area_for_printing, truncate_echo_area,
4081 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
4083 1999-09-13 Dave Love <fx@gnu.org>
4085 * xterm.c: Don't continue #define args for benefit of old cc.
4086 (xt_action_hook): Indent #error for benefit of K&R cc.
4088 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4090 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
4091 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
4092 (XRINGBELL): Removed.
4094 1999-09-13 Dave Love <fx@gnu.org>
4096 * xfns.c (x_put_x_image): Make type consistent with declaration.
4098 * fns.c (Fmake_hash_table): Fix string continuation.
4100 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4102 * xfns.c (QCfile): Moved to xdisp.c.
4103 (syms_of_xfns): Don't initialize QCfile.
4104 (check_x_frame): Change for Lisp_Object selected_frame.
4105 (check_x_display_info, x_get_resource_string): Ditto.
4107 1999-09-13 Gerd Moellmann <gerd@gnu.org>
4109 * minibuf.c (choose_minibuf_frame): Don't try to set the
4110 mini-buffer window's buffer, if the buffer is invalid.
4112 * xfns.c (QCfile): Moved to xdisp.c.
4113 (syms_of_xfns): Don't initialize QCfile.
4115 * xdisp.c (QCfile): Move here from xfns.c.
4116 (syms_of_xdisp): Initialize it.
4118 * lisp.h (selected_frame): Add external declaration.
4120 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
4121 (Fx_store_cut_buffer_internal): Ditto.
4122 (Fx_rotate_cut_buffers_internal): Ditto.
4124 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
4126 (Finternal_set_lisp_face_attribute): Ditto.
4127 (Finternal_get_lisp_face_attribute): Ditto.
4128 (Finternal_lisp_face_empty_p): Ditto.
4129 (Fdump_face): Ditto.
4131 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
4132 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
4133 set_terminal_window, set_scroll_region, reassert_line_highlight,
4134 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
4135 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
4136 encode_terminal_code, write_glyphs, term_init): Ditto.
4138 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
4139 (kbd_input_ast, read_input_waiting): Ditto.
4141 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
4143 (read_minibuf): Ditto.
4145 * keyboard.c (command_loop_1): Change for Lisp_Object
4147 (cmd_error_internal, command_loop_1, read_char,
4148 kbd_buffer_get_event, read_avail_input,
4149 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
4150 interrupt_signal, quit_throw_to_read_char): Ditto.
4152 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
4153 (Ffontset_info): DItto.
4155 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
4157 * dispnew.c (selected_frame): Make it a Lisp_Object.
4158 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
4159 (direct_output_for_insert, direct_output_forward_char,
4160 init_display): Ditto.
4162 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
4164 (set_internal): Ditto.
4166 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
4167 (record_buffer): Ditto.
4169 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
4170 (do_switch_frame): Change for Lisp_Object selected_frame.
4171 (Fselected_frame): Ditto.
4172 (Fframe_first_window): Use SELECTED_FRAME.
4173 (Fframe_root_window): Change for Lisp_Object selected_frame.
4174 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
4175 Fprevious_frame, other_visible_frames, Fdelete_frame,
4176 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
4177 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
4178 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
4179 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
4180 Fset_frame_height, Fset_frame_width): Ditto.
4182 1999-09-13 Gerd Moellmann <gerd@gnu.org>
4184 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
4185 (message3_nolog, message_with_string, message,
4186 setup_echo_area_for_printing, truncate_echo_area,
4187 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
4189 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
4190 (Fx_popup_dialog): Ditto.
4192 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
4193 (check_x_display_info, x_get_resource_string): Ditto.
4195 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
4196 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
4197 (XRINGBELL): Removed.
4199 * window.c (Fminibuffer_window): Change for Lisp_Object
4201 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
4202 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
4203 Fcurrent_window_configuration, init_window_once): Ditto.
4205 * frame.h (SELECTED_FRAME): New.
4207 1999-09-12 Ken Raeburn <raeburn@gnu.org>
4209 * category.c (word_boundary_p): Use XCAR and XCDR.
4210 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
4211 Fregister_code_conversion_map): Likewise.
4212 * coding.c (setup_coding_system, detect_coding_system,
4213 Ffind_operation_coding_system, Fset_coding_priority_internal):
4215 * doc.c (get_doc_string, Fdocumentation,
4216 store_function_docstring): Likewise.
4217 * editfns.c (save_restriction_restore): Likewise.
4218 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
4219 skip_debugger, find_handler_clause, Fautoload, Fapply,
4220 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
4222 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
4223 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
4224 Fread_file_name): Likewise.
4225 * filelock.c (unlock_all_files): Likewise.
4226 * insdel.c (Fcombine_after_change_execute): Likewise.
4227 * intervals.c (adjust_intervals_for_insertion): Likewise.
4228 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
4229 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
4230 store_in_keymap, Fcopy_keymap, define_as_prefix,
4231 current_minor_maps, Faccessible_keymaps,
4232 accessible_keymaps_char_table, Fkey_description,
4233 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
4234 describe_buffer_bindings, describe_map_tree, shadow_lookup,
4235 describe_map): Likewise.
4236 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
4237 read_list, init_lread): Likewise.
4238 * search.c (Fmatch_data): Likewise.
4239 * sunfns.c (Fsun_menu_internal): Likewise.
4240 * syntax.c (describe_syntax): Likewise.
4241 * undo.c (record_insert, record_delete, Fundo_boundary,
4242 truncate_undo_list): Likewise.
4243 * vmsproc.c (child_sig): Likewise.
4245 * editfns.c (Fformat): Use XFLOAT_DATA.
4247 1999-09-12 Gerd Moellmann <gerd@gnu.org>
4249 * keyboard.c (command_loop_1): Resize mini-window to the
4250 exact size of a message displayed, if any.
4252 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
4253 to exact size if exact_p is non-zero.
4254 (display_echo_area_1): Call resize_mini_window with
4256 (redisplay_internal): Ditto.
4257 (resize_echo_area_axactly): New.
4259 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
4262 * dispextern.h: Change prototype of resize_mini_window.
4263 Add prototype for resize_echo_area_axactly.
4265 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
4266 (syms_of_xfaces): Defsubr accordingly.
4268 * xdisp.c (hscroll_window_tree): Choose cursor row from
4269 desired or current matrix.
4270 (redisplay_internal): Hscroll before updating.
4272 1999-09-12 Gerd Moellmann <gerd@gnu.org>
4274 * syntax.c (Fforward_word): Use prompt_end_charpos instead
4275 of minibuffer_prompt_length.
4277 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
4278 of minibuffer_prompt_length.
4279 (read_minibuf_unwind): Ditto.
4280 (Fminibuffer_complete_and_exit): Ditto.
4281 (Fminibuffer_complete_word): Ditto.
4282 (Fminibuffer_prompt_end): Ditto.
4284 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
4285 of minibuffer_prompt_length.
4286 (Fline_beginning_position): Ditto.
4288 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
4289 of minibuffer_prompt_length.
4290 (Fmake_indirect_buffer): Ditto.
4291 (Fkill_buffer): Ditto.
4292 (Ferase_buffer): Ditto.
4294 * buffer.h (prompt_end_charpos): Replaces
4295 minibuffer_prompt_length.
4297 * minibuf.c (read_minibuf): Return mini-buffer contents
4300 * editfns.c (make_buffer_string_both): Take out the code
4301 to handle mini-buffer prompts.
4302 (Fbuffer_string): Handle the prompt here, instead.
4304 * xfaces.c (lface_from_face_name): Resolve face aliases.
4305 (Qmode_line): Replaces Qmodeline.
4306 (realize_basic_faces): Use Qmode_line.
4307 (syms_of_xfaces): Initialize Qmode_line.
4309 1999-09-12 Gerd Moellmann <gerd@gnu.org>
4311 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
4312 current column after inserting prompt.
4313 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
4315 * xfaces.c (Qframe_update_face_colors): New.
4316 (syms_of_xfaces): Initialize call.
4317 (update_face_from_frame_parameter): Call that function when
4318 the frame's background changes.
4320 1999-09-12 Richard Stallman <rms@gnu.org>
4322 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
4324 1999-09-12 Ken Raeburn <raeburn@gnu.org>
4326 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
4327 mark_object, mark_buffer): Use XCAR and XCDR.
4328 * bytecode.c (Fbyte_code): Likewise.
4329 * callint.c (Fcall_interactively, Fprefix_numeric_value):
4331 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
4332 getenv_internal): Likewise.
4333 * dired.c (file_name_completion): Likewise.
4334 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
4335 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
4336 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
4337 * indent.c (Fcompute_motion): Likewise.
4338 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
4339 list_processes_1, Fstart_process, Fopen_network_stream,
4340 wait_reading_process_input, read_process_output_call,
4341 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
4342 status_notify, wait_reading_process_input): Likewise.
4343 * textprop.c (PLIST_ELT_P, property_value, set_properties,
4344 extend_property_ranges): Likewise.
4345 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
4346 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
4347 x_report_frame_params, x_set_cursor_type, x_icon_type,
4348 x_figure_window_size, Fx_create_frame, w32_load_system_font,
4349 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
4350 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
4351 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
4352 x_display_info_for_name, Fx_display_list): Likewise.
4353 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
4354 Fx_popup_menu, Fx_popup_dialog): Likewise.
4355 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
4356 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
4357 w32_term_init, x_delete_display): Likewise.
4358 * xfns.c (x_window_to_frame, x_any_window_to_frame,
4359 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
4360 x_top_window_to_frame, x_set_frame_parameters,
4361 x_report_frame_params, x_set_cursor_type, x_icon_type,
4362 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
4363 Fx_display_list, x_create_tip_frame): Likewise.
4364 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
4365 Fx_popup_menu, Fx_popup_dialog): Likewise.
4366 * xselect.c (x_own_selection, x_get_local_selection,
4367 x_handle_selection_request, x_handle_selection_clear,
4368 x_clear_frame_selections, wait_for_property_change_unwind,
4369 wait_for_property_change, x_handle_property_notify,
4370 copy_multiple_data, x_get_foreign_selection,
4371 lisp_data_to_selection_data, clean_local_selection_data,
4372 x_handle_selection_notify, Fx_get_selection_internal,
4373 x_disown_buffer_selections): Likewise.
4374 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
4375 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
4378 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
4380 * bytecode.c (Fbyte_code): Likewise.
4381 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
4382 fmod_float): Likewise.
4384 1999-09-11 Richard Stallman <rms@gnu.org>
4386 * xdisp.c (run_window_scroll_functions): If hook functions switch
4387 buffers, switch back after.
4389 1999-09-11 Ken Raeburn <raeburn@gnu.org>
4391 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
4392 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
4393 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
4394 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
4395 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
4397 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
4400 1999-09-10 Richard Stallman <rms@gnu.org>
4402 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
4403 not RevertToPointerRoot.
4404 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4405 Fix the code to clear around the scroll bar.
4407 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
4409 * print.c: Support print-circle and related features.
4410 (Vprint_gensym_alist): Removed.
4411 (Vprint_circle, Vprint_continuous_numbering, print_number_index
4412 Vprint_number_table): New variables.
4413 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
4414 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
4415 (print, print_preprocess, print_preprocess_string, print_object):
4416 New/modified functions with print-circle feature. Use
4417 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
4418 (syms_of_print): Defined new Lisp variables `print-circle',
4419 `print-continuous-numbering', `print-number-table'.
4421 1999-09-10 Gerd Moellmann <gerd@gnu.org>
4423 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
4424 as background color specification instead of an integer.
4425 (image-cache-eviction-delay): Replaces image-eviction-seconds.
4426 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
4427 (clear_image_cache, syms_of_xfns): Use it.
4428 (Qpostscript): Replaces Qghostscript.
4430 (gs_image_p): Ditto.
4431 (syms_of_xfns): Initialize Qpostscript.
4433 1999-09-10 Richard Stallman <rms@gnu.org>
4435 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
4437 1999-09-09 Richard Stallman <rms@gnu.org>
4439 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
4441 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
4443 1999-09-09 Gerd Moellmann <gerd@gnu.org>
4445 * fns.c (Fmakehash): Accept just one optional argument TEST.
4447 * xfns.c (QCindex): New.
4448 (syms_of_xfns): Initialize QCindex.
4449 (gif_load): Use it instead of `:image'.
4451 1999-09-09 Richard Stallman <rms@gnu.org>
4453 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
4454 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
4456 1999-09-08 Gerd Moellmann <gerd@gnu.org>
4458 * xdisp.c (Qwhen): Replaces QCwhen.
4459 (syms_of_xdisp): Initialized it instead of QCwhen.
4460 (handle_single_display_prop): Use it instead of QCwhen.
4462 1999-09-08 Ken'ichi Handa <handa@gnu.org>
4464 * charset.c (translate_char): Reset MSBs of arguments of
4466 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
4468 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4470 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
4472 * fns.c (Fbase64_decode_region): Don't place point outside of the
4473 current accessible portion.
4475 1999-09-07 Richard Stallman <rms@gnu.org>
4477 * keymap.c (fix_submap_inheritance): Do nothing if the proper
4478 parent is an ancestor of SUBMAP; otherwise, add it as the
4481 1999-09-07 Gerd Moellmann <gerd@gnu.org>
4483 * xdisp.c (handle_single_display_prop): Change conditional
4484 display property to `:when FORM . VALUE'.
4486 1999-09-07 Richard Stallman <rms@gnu.org>
4488 * fileio.c (Fwrite_region): Doc fix.
4490 1999-09-07 Stefan Monnier <monnier@cs.yale.edu>
4492 * fileio.c (Qexcl): New variable.
4493 (report_file_error): Handle EEXIST specially.
4494 (Fwrite_region): Special handling for CONFIRM = `excl'.
4495 (syms_of_fileio): Initialize Qexcl.
4497 1999-09-07 Gerd Moellmann <gerd@gnu.org>
4499 * xfns.c (x_set_foreground_color): Call
4500 update_face_from_frame_parameter.
4501 (x_set_background_color): Ditto.
4502 (x_set_mouse_color): Ditto.
4503 (x_set_cursor_color): Ditto.
4504 (x_set_border_color): Ditto.
4505 (x_set_scroll_bar_foreground): Ditto.
4506 (x_set_scroll_bar_background): Ditto.
4508 * xfaces.c (recompute_basic_faces): Clear face cache.
4509 (Finternal_set_lisp_face_attribute): Modify frame parameters
4510 if attributes of certain faces are changed.
4511 (update_face_from_frame_parameter): New.
4513 * xfaces.c (realize_basic_faces): Realize new basic faces.
4515 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
4516 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
4518 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
4519 (syms_of_xfaces): Intialize new symbols.
4521 * fns.c (Fmakehash): Take one argument, test, make all the
4522 rest keyword arguments.
4524 * window.c (Fset_window_margins): Make window the first argument.
4525 (set_window_buffer): Call Fset_window_margins with window as first
4528 1999-09-07 Gerd Moellmann <gerd@gnu.org>
4530 * xfaces.c (Qfringe): Replaces Qmargin.
4532 1999-09-07 Kenichi Handa <handa@etl.go.jp>
4534 * charset.h: Lots of comments fixed.
4535 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
4536 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
4538 * charset.c : Lots of comments fixed.
4539 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
4540 (CHAR_COMPONENTS_VALID_P): Name changed from
4541 CHAR_COMPONENT_VALID_P. Caller changed.
4543 1999-09-06 Richard Stallman <rms@gnu.org>
4545 * insdel.c (syms_of_insdel): Define Lisp variable
4546 inhibit-modification-hooks.
4548 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
4550 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
4553 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
4555 1999-09-06 Dave Love <fx@gnu.org>
4557 * unexaix.c: New version incorporating Michael Sperber's changes
4558 from XEmacs. Should solve problems on AIX 4.3.
4560 * lread.c (Vbyte_boolean_vars): New variable.
4561 (defvar_bool, syms_of_lread): Use it.
4563 1999-09-05 Richard Stallman <rms@gnu.org>
4565 * minibuf.c (read_minibuf): Put all three properties on the
4566 same range, the whole prompt.
4568 1999-09-05 Gerd Moellmann <gerd@gnu.org>
4570 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
4571 (Fplay_sound, syms_of_sound): Use it.
4572 (parse_sound): Allow float volume values in the range [0, 1].
4573 (Fplay_sound): Ditto.
4575 * window.c (Fset_window_vscroll): Make window the first argument,
4576 amount to scroll the second. Take non-negative vscroll as
4578 (Fwindow_vscroll): Return non-negative vscroll.
4580 * xfns.c (Fx_show_tip): Improve documentation.
4582 1999-09-05 Gerd Moellmann <gerd@gnu.org>
4584 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
4585 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
4586 `top-line' and `top_line' to `header-line' and `header_line'.
4587 Likewise for similar spellings.
4589 1999-09-05 Gerd Moellmann <gerd@gnu.org>
4591 * xdisp.c (row_containing_pos): New.
4592 (try_window_id): Use it.
4594 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
4595 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
4596 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
4597 Likewise for upper-case etc.
4599 1999-09-05 Gerd Moellmann <gerd@gnu.org>
4601 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4602 Fix reference to renamed variable.
4604 1999-09-04 Gerd Moellmann <gerd@gnu.org>
4606 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
4607 (window_fixed_size_p): Use Qwindow_size_fixed instead of
4609 (syms_of_window): Ditto.
4611 * fns.c (Fmakehash): Exchange optional test and size arguments.
4613 1999-09-03 Gerd Moellmann <gerd@gnu.org>
4615 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
4616 under newly created scroll bar.
4617 (expose_window): If window is not yet fully initialized, do
4618 nothing. This can happen when toolkit scroll bars are used and a
4619 window is split. Reconfiguring the scroll bars will generate an
4620 expose for a newly created window.
4622 * frame.h (struct frame): New member `gamma'.
4624 * xfns.c: Include math.h. Add extern declaration for atof in case
4626 (Qscreen_gamma): New.
4627 (struct x_frame_parm_table): Add prototypes, add
4629 (gamma_correct): New function.
4630 (defined_color): Call it.
4631 (x_set_screen_gamma): New.
4632 (x_set_title): Add parameter old_value.
4633 (RES_TYPE_FLOAT): New.
4634 (x_get_arg): Handle RES_TYPE_FLOAT.
4635 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
4636 (lookup_pixel_color): Change call to x_alloc_nearest_color to
4638 (lookup_rgb_color): Ditto.
4639 (syms_of_xfns): Initialize Qscreen_gamma.
4641 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
4642 New. Allocate color for lwlib widgets.
4643 (x_alloc_nearest_color): Change parameter list include the
4644 frame on which to allocate colors. Gamma-correct colors.
4645 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
4648 * xterm.h: Change protorype of x_alloc_nearest_color.
4650 1999-09-03 Richard Stallman <rms@gnu.org>
4652 * callproc.c: Delete the system-independent include of stdlib.h
4653 (leaving only the one in the WINDOWSNT conditional).
4655 1999-09-03 Andrew Choi <choi@cs.hku.hk>
4657 * callproc.c (call-process) [macintosh]: Call mac_run_command in
4658 sysdep.c. The Mac code is modeled after the DOS code.
4660 * dispextern.h [macintosh]: Include macterm.h to define substitute X
4661 Window types and macros.
4663 * frame.h: Do nothing if included a second time.
4664 (enum output_method): Add mac_output frame type.
4665 (union output_data): Add new alternative `mac'.
4666 (FRAME_MAC_P): New macro.
4668 * frame.c (Fframep) [macintosh]: Handle mac frame type.
4669 (syms_of_frame_1): Initialize Qmac.
4670 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
4671 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
4672 (Fmodify_frame_parameters) [macintosh]: Call
4673 mac_set_frame_parameter in macterm.c.
4675 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
4676 (512) because Mac compilers limit local data of a function to 32K.
4678 * make-docfiles.c: Correctly handle input files with Mac-style
4681 * sysdep.c: Define numerous routines to emulate Unix system calls.
4683 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
4684 file of an X Window environment.
4686 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
4687 x-display-grayscale, x-color-defined-p, and x-color-values.
4689 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
4690 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
4691 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
4692 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
4693 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
4694 New functions, replacing POSIX features.
4696 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
4697 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
4698 (InitEmacsPasswdDir, run_mac_command): New subroutines.
4700 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
4701 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
4702 (myPasswdDir, TempDirName, sys_siglist): New variables.
4704 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
4705 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
4706 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
4707 Define empty stubs so Emacs will link.
4709 1999-09-03 Gerd Moellmann <gerd@gnu.org>
4711 * xdisp.c: Use XCAR and XCDR instead of XCONS.
4713 * window.h: New member frozen_window_start_p.
4715 * window.c (foreach_window, foreach_window_1): New.
4716 (freeze_window_start, freeze_window_starts): New.
4717 (make_window): Initialize frozen_window_start_p.
4718 (replace_window): Ditto.
4719 (Fset_window_point): Remove references to deleted variables.
4720 (Fset_window_start): Ditto.
4722 * xdisp.c (Vresize_mini_config, resize_mini_frame,
4723 resize_mini_initial_height): Removed.
4724 (syms_of_xdisp): Remove references to these variables.
4725 (resize_mini_window): Don't save window configuration, freeze
4726 window starts instead. Enlarge window until displaying an empty
4727 buffer, then shrink it. Make the function externally visible.
4728 (redisplay_window): Treat frozen window start like forced start,
4729 but accept point outside of the window.
4731 * dispextern.h: Add function prototype for resize_mini_window.
4733 * minibuf.c (read_minibuf_unwind): Resize mini-window when
4734 reaching minibuf_level 0.
4736 * lisp.h: Remove extern declarations for variables deleted from
4739 * dispnew.c (adjust_frame_glyphs): Remove reference to
4740 Vresize_mini_config.
4742 1999-09-03 Gerd Moellmann <gerd@gnu.org>
4744 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
4745 to USE_TOOLKIT_SCROLL_BARS.
4747 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
4749 (XTset_vertical_scroll_bar): Clarify position computations. Clear
4750 under newly created scroll bar. Put toolkit scroll bars in the
4751 middle of the area reserved for the scroll bar.
4753 1999-09-03 Kenichi Handa <handa@etl.go.jp>
4755 The following changes are for the new handling of mulitbyte
4756 sequence. Now, except for a composite character, no multibyte
4757 character in string/buffer has trailing garbage bytes. For
4758 instance, the length of string "\201\300\300" is now 2, the first
4759 character is Latin-1 A-grave, the second is raw \300.
4761 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
4763 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
4764 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
4765 (PARSE_COMPOSITE_SEQ): New macro.
4766 (PARSE_CHARACTER_SEQ): New macro.
4767 (PARSE_MULTIBYTE_SEQ): New macro.
4768 (CHAR_PRINTABLE_P): New macro.
4769 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
4770 (STRING_CHAR_AND_LENGTH): Likewise.
4771 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
4772 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
4773 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
4775 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
4776 (SPLIT_CHARACTER_SEQ): New macro.
4777 (SPLIT_MULTIBYTE_SEQ): New macro.
4778 (CHAR_COMPONENT_VALID_P): New macro.
4779 (non_ascii_char_to_string): Generate a multibyte sequence as far
4781 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
4782 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
4783 (split_non_ascii_string): Likewise.
4784 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
4785 (char_printable_p): New function.
4786 (translate_char): Check character by NATNUMP instead of INTEGERP.
4787 (unibyte_char_to_multibyte): Call char_valid_p instead of
4788 VALID_MULTIBYTE_CHAR_P.
4789 (Fmake_char_internal): Check the arguments more rigidly.
4790 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
4791 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
4792 (Fmultibyte_char_to_unibyte): Check the validity of character by
4794 (chars_in_text): Call multibyte_chars_in_text.
4795 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
4796 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
4797 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
4799 * data.c (Faset): Adjust the way to check byte-combining
4800 possibility for the new handling of multibyte sequence.
4802 * editfns.c (Fsubst_char_in_region): Likewise.
4804 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
4805 (string_char_to_byte): Likewise.
4806 (string_byte_to_char): Likewise.
4808 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
4809 macro STRING_CHAR_AND_LENGTH. Caller changed.
4811 * insdel.c (count_combining_composition): New function.
4812 (count_combining_before): Adjust the way to check byte-combining
4813 possibility for the new handling of multibyte sequence. Call
4814 count_combining_composition for a composite character.
4815 (count_combining_after): Likewise.
4817 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
4820 * dispextern.h (struct it): Change the size of the member
4823 * xdisp.c (get_next_display_element): Display incomplete multibyte
4824 sequence (e.g. \222\300) by octal form.
4826 1999-09-02 Gerd Moellmann <gerd@gnu.org>
4828 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
4830 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
4831 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
4833 1999-09-02 Gerd Moellmann <gerd@gnu.org>
4835 * buffer.c (set_buffer_internal): Never set
4836 windows_or_buffers_changed.
4838 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
4839 if we have displayed to the bottom of the window.
4841 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
4842 in both directions. Extend documentation.
4844 1999-09-01 Gerd Moellmann <gerd@gnu.org>
4846 * minibuf.c (read_minibuf): Flush display after setting cursor to
4849 1999-08-31 Gerd Moellmann <gerd@gnu.org>
4851 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
4852 already defined. This avoids a warning from buffer.c.
4854 1999-08-30 Gerd Moellmann <gerd@gnu.org>
4856 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
4858 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
4859 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
4860 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
4862 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
4863 once instead of twice.
4864 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
4866 * xterm.c: Remove unused bitmaps.
4867 (continued_bits, continuation_bits, overlay_bits): Change images.
4868 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
4869 instead of FRAME_X_FLAGS_AREA_WIDTH.
4870 (x_after_update_window_line): Ditto.
4871 (x_draw_bitmap): Likewise.
4872 (x_draw_row_bitmaps): Likewise.
4873 (x_draw_glyph_string_box): Likewise.
4874 (x_draw_glyphs): Likewise.
4875 (x_scroll_run): Likewise.
4876 (expose_window_tree): Likewise.
4877 (note_mode_line_highlight): Likewise.
4878 (XTset_vertical_scroll_bar): Likewise.
4879 (x_clip_to_row): Likewise.
4880 (x_set_window_size): Likewise.
4882 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
4885 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
4887 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
4888 FRAME_FLAGS_AREA_WIDTH.
4890 * window.c (coordinates_in_window): Use
4891 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
4892 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
4895 * widget.c (set_frame_size): Set flags_area_extra to
4896 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
4897 (EmacsFrameSetCharSize): Ditto.
4899 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
4900 instead of FRAME_FLAGS_AREA_WIDTH.
4902 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
4903 FRAME_FLAGS_AREA_COLS once.
4904 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
4905 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
4907 1999-08-30 Gerd Moellmann <gerd@gnu.org>
4909 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
4910 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
4912 1999-08-30 Gerd Moellmann <gerd@gnu.org>
4914 * fns.c (QCweakness): Replaces QCweak.
4915 (Fmake_hash_table): Ditto.
4917 (syms_of_fns): Ditto.
4919 1999-08-29 Richard Stallman <rms@gnu.org>
4921 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
4923 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
4925 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
4926 Add support for nested comments.
4928 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
4929 Consolidate the forward comment code into the new `forw_comment'.
4930 (forw_comment): New subroutine. Added support for nested comments.
4931 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
4932 (Fparse_partial_sexp): Add support for nested comments.
4934 1999-08-28 Ken Raeburn <raeburn@gnu.org>
4936 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
4937 names of structure elements if HIDE_LISP_IMPLEMENTATION is
4938 defined, to help detect code that uses knowledge of the Lisp
4939 internals that it shouldn't have.
4940 (XFLOAT_DATA): New macro.
4942 1999-08-25 Gerd Moellmann <gerd@gnu.org>
4944 * syntax.c (Fforward_word): If in a mini-buffer and moving
4945 backwards, stop in front of the prompt to prevent accidentially
4946 moving into the read-only prompt.
4948 * window.c (Frecenter): Clear frame if called with nil or no arg.
4950 * xdisp.c (resize_mini_window): Don't resize if
4951 Vmax_mini_window_height is nil. Otherwise, use a default if
4952 Vmax_mini_window_height is not ot a number.
4953 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
4955 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
4957 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
4958 * m/iris4d.h: Use unexelf for IRIX 5.*.
4959 * m/iris5d.h: Use unexelf for IRIX 6.*.
4960 * unexsgi.c: Deleted.
4962 * unexelf.c: Auto-detect .sbss section.
4963 (round_up): Make it static.
4964 (unexec): Declare alignment as Elf Word. Skip ``Program
4965 segment above .bss'' test on MIPS without .sbss.
4966 Copy sections .got and .sdata1 sections. Adjust offsets in
4967 sections .sdata, .lit4, .lit8, .got and .sdata1.
4969 1999-08-25 Gerd Moellmann <gerd@gnu.org>
4971 * xdisp.c (try_window_id): Remove typo.
4973 1999-08-24 Gerd Moellmann <gerd@gnu.org>
4975 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
4976 unchanged text at the bottom when computing the cursor position.
4977 (message3_nolog): Raise frame only if minibuffer_auto_raise is
4980 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
4982 1999-08-24 Gerd Moellmann <gerd@gnu.org>
4984 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
4985 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
4986 (syms_of_xfaces): Ditto.
4988 * window.c (Fset_window_point): Reset Vresize_mini_config.
4989 (Fset_window_start): Ditto.
4990 (set_window_buffer): Ditto.
4992 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
4994 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
4995 before calling try_window.
4996 (echo_area_display): If height has changed, update other windows.
4997 (resize_mini_frame, resize_mini_initial_height): New.
4998 (resize_mini_window): Save/restore window configuration
5001 * lisp.h (Vresize_mini_config, resize_mini_frame,
5002 resize_mini_initial_height): Add extern declarations.
5004 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
5007 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
5008 being redefined in jconfig.h.
5010 1999-08-23 Ken'ichi Handa <handa@gnu.org>
5012 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
5014 1999-08-22 Gerd Moellmann <gerd@gnu.org>
5016 * alloc.c (mark_glyph_matrix): Mark strings only.
5018 * xdisp.c (redisplay_internal): Clear garbaged frames after
5019 resizing mini-window.
5021 1999-08-22 Gerd Moellmann <gerd@gnu.org>
5023 * xdisp.c (unwind_with_echo_area_buffer): Use
5024 set_buffer_internal_1 instead of set_buffer_internal.
5025 (with_echo_area_buffer): Ditto.
5027 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
5028 only if buffer is displayed somewhere.
5030 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
5032 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
5034 (modify_region): Ditto.
5036 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
5038 * xdisp.c (Vresize_mini_config): New.
5039 (resize_mini_window): Use it to save restore original window
5041 (syms_of_xdisp): Initialize it.
5043 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
5045 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
5047 * xdisp.c (reconsider_clip_changes): New.
5048 (redisplay_internal, redisplay_window): Call it.
5049 (mark_window_display_accurate, redisplay_internal): Set current
5050 matrix' buffer, begv, zv.
5052 * window.c (Fset_window_hscroll): Set
5053 prevent_redisplay_optimizations_p instead of clip_changed.
5054 (Fset_window_hscroll): Ditto.
5055 (temp_output_buffer_show): Ditto.
5056 (Fset_window_vscroll): Ditto.
5058 * buffer.c (reset_buffer): Set clip_changed to 0 and
5059 prevent_redisplay_optimizations_p to 1.
5060 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
5062 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
5063 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
5064 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
5065 END_UNCHANGED): New.
5066 (struct buffer_text): Add beg_unchanged, end_unchanged,
5067 unchanged_modified, overlay_unchanged_modified.
5069 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
5070 overlay_unchanged_modified): Removed.
5071 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
5072 (unwind_with_echo_area_buffer): Don't restore them.
5073 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
5074 (text_outside_line_unchanged_p, redisplay_internal,
5075 try_scrolling): Use/set buffer-specific beg/end_unchanged.
5076 (redisplay_window): Let try_window_id be called if more than one
5077 window is displayed. Use/set buffer-specific beg/end_unchanged.
5078 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
5080 Use buffer-specific beg/end_unchanged.
5082 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
5083 overlay_unchanged_modified): Remove extern declarations.
5085 * keyboard.c (command_loop_1): Set beg/end_unchanged per
5088 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
5090 (adjust_after_replace): Likewise.
5091 (replace_range, del_range_2, modify_region): Likewise.
5093 * dispnew.c (direct_output_for_insert): Set beg_unchanged
5094 and unchanged_modified per buffer.
5096 * coding.c (code_convert_region): Compute beg/end_unchanged per
5099 * buffer.c (modify_overlay): Compute beg/end_unchanged
5101 (Fget_buffer_create): Initialize new members of the buffer
5104 1999-08-22 Gerd Moellmann <gerd@gnu.org>
5106 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
5108 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
5109 (Qkey_value_weak): Removed.
5110 (make_hash_table): Use nil, `key', `value', t for weakness.
5111 (Fmake_hash_table): Ditto.
5112 (copy_hash_table): New.
5113 (Fcopy_hash_table): New.
5115 1999-08-22 Gerd Moellmann <gerd@gnu.org>
5117 * xfns.c: Call change_frame_size and do_pending_window_change with
5120 1999-08-21 Gerd Moellmann <gerd@gnu.org>
5122 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
5124 (redisplay_internal): Resize mini-window only if text might
5126 (display_echo_area): Reset displayed echo_area_buffer to nil
5127 at the end if we're displaying a nil message.
5129 1999-08-21 Gerd Moellmann <gerd@gnu.org>
5131 * fns.c (hash_lookup): Test with EQ before calling key comparion
5133 (hash_remove): Ditto.
5134 (cmpfn_eq): Removed.
5135 (cmpfn_eql): Don't test with EQ.
5136 (cmpfn_equal): Ditto.
5137 (make_hash_table): Set comparison function for `eq' to null.
5139 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
5140 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
5142 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
5144 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
5145 xterm.c: Call change_frame_size and do_pending_window_change with
5148 * dispnew.c (do_pending_window_change): Add parameter `safe'.
5149 (change_frame_size): Ditto.
5150 (change_frame_size_1): Ditto. Deley size changes if redisplaying
5151 and not called from a safe place.
5152 (window_change_signal): Call change_frame_size with new parameter.
5154 * dispextern.h: Change prototypes for do_pending_window_change
5155 and change_frame_size.
5157 * xfaces.c (face_at_buffer_position): Don't xassert that
5158 window's buffers equals current_buffer; this is not the
5159 case during echo area display.
5161 1999-08-21 Gerd Moellmann <gerd@gnu.org>
5163 * xdisp.c, minibuf.c: Remove conditional compilation on
5164 NO_PROMPT_IN_BUFFER.
5166 * minibuf.c (Fminibuffer_prompt_end): New.
5167 (syms_of_minibuf): Defsubr it. Remove
5168 minibuffer-prompt-in-buffer.
5169 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
5170 Extend documentation.
5172 * xdisp.c (get_next_display_element): Display \r as ^M.
5174 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
5175 under scroll bar widget.
5177 1999-08-21 Gerd Moellmann <gerd@gnu.org>
5179 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
5181 (unwind_redisplay): Return nil.
5182 (clear_garbaged_frames): New.
5183 (redisplay_internal): Use it.
5184 (echo_area_display): Ditto.
5185 (resize_mini_window): Mew.
5186 (display_echo_area_1): Use it to resize echo area window.
5187 (redisplay_internal): Use it to resize active mini-window.
5189 * dispextern.h, lisp.h: Add function prototypes.
5191 * dispnew.c (set_window_cursor_after_update): Do the
5192 cursor_in_echo_area case only for a mini-window showing
5193 a message. Don't let cursor end up after the end of a row.
5195 * xdisp.c (echo_area_glyphs, echo_area_message,
5196 echo_area_glyphs_length, previous_echo_glyphs,
5197 previous_echo_area_message, previous_echo_area_glyphs_length):
5199 (Vmessage_stack, echo_area_buffer, echo_buffer,
5200 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
5201 (message2_nolog): Use set_message and clear_message.
5202 (message3): Rename parameter len to nbytes to make clear what
5204 (message3_nolog): Ditto. Use set_message and clear_message.
5205 (update_echo_area): Rewritten.
5206 (with_echo_area_buffer): New.
5207 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
5208 (setup_echo_area_for_printing): New.
5209 (display_echo_area, display_echo_area_1): New.
5211 (current_message, current_message_1): New.
5212 (push_message, restore_message, pop_message,
5213 check_message_stack): New.
5214 (truncate_echo_area): Rewritten.
5215 (truncate_message_1): New.
5216 (set_message, set_message_1, clear_message): New.
5217 (echo_area_display): Rewritten.
5218 (redisplay_internal): Check for needed echo area update
5220 (redisplay_preserve_echo_area): Rewritten.
5221 (redisplay_window): Check for mini-window displaying echo area
5222 message differently.
5223 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
5224 Remove initialzation of removed variables.
5225 (init_xdisp): Remove references to removed variables.
5227 * dispnew.c (adjust_frame_message_buffer): Removed references
5228 to echo_area_glyphs and previous_echo_glyphs.
5229 (direct_output_for_insert): Check for mini-window displaying
5230 echo area message differently.
5231 (update_frame): Likewise.
5232 (set_window_cursor_after_update): Likewise. In echo area,
5233 don't try to set cursor on rows that aren't enabled.
5235 * print.c: Remove conditional compilation on `standalone'.
5236 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
5237 glyph_to_str_cpy): Remove that section because GLYPHs are no
5238 longer used in that way.
5239 (PRINTDECLARE): Add multibyte.
5240 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
5241 (printbufidx): Removed.
5242 (printchar, strout): Rewritten.
5244 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
5247 (echo_now): Set echo_kboard to the current kboard.
5248 (cancel_echoing): Set echo_kboard to null.
5249 (cmd_error_internal): Use clear_message, remove references
5250 to echo_area_glyphs and echo_area_message.
5251 (command_loop_1): Check for echo area messages differently.
5252 (read_char): Likewise.
5253 (record_menu_key): Use clear_message.
5254 (Fexecute_extended_command): Check for echo area messages
5255 differently. Use push_message, restore_message, pop_message.
5257 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
5260 * emacs.c (shut_down_emacs): Call check_message_stack.
5262 * lisp.h: Add function prototypes and extern declarations for
5263 new functions and variables.
5265 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
5268 * minibuf.c (read_minibuf): Use clear_message instead of
5269 setting echo_area_glyphs.
5270 (Fminibuffer_completion_help): Ditto.
5272 * editfns.c (Fcurrent_message): Rewritten.
5274 * frame.c, window.h: Remove references to echo_area_glyphs
5275 and previous_echo_glyphs.
5277 1999-08-21 Dave Love <fx@gnu.org>
5279 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
5280 * aix4-1.h: Likewise.
5282 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
5284 1999-08-20 Gerd Moellmann <gerd@gnu.org>
5286 * xfns.c: Remove tiff34 prefix from include.
5288 1999-08-20 Dave Love <fx@gnu.org>
5290 * cm.c: Revert previous change.
5292 1999-08-19 Gerd Moellmann <gerd@gnu.org>
5294 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
5295 under scroll bar with width FRAME_SCROLL_BAR_COLS.
5297 1999-08-18 Dave Love <fx@gnu.org>
5299 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
5302 * doprnt.c: Use stdlib.h, unistd.h.
5304 * config.in: Add HAVE_TERMCAP_H.
5306 * cm.c: Use termcap.h.
5308 1999-08-18 Gerd Moellmann <gerd@gnu.org>
5310 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
5311 FRAME_X_WINDOW (f) being null at the of the function. If widgets
5312 cannot be created we will already have crashed earlier. Call
5313 lw_set_main_areas with a null menu-bar widget, so that we have
5314 a reasonable default.
5315 (Fx_create_frame): Rearranged so that Lisp errors during frame
5316 initialization cause less damage. Initialize menu bar widget
5319 1999-08-18 Gerd Moellmann <gerd@gnu.org>
5321 * dispnew.c (update_frame_line): Fix previous change. If writing
5322 whole line clear to end of frame.
5324 1999-08-17 Gerd Moellmann <gerd@gnu.org>
5326 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
5327 and `right-bitmap-area' if position is in the bitmap areas. This
5328 avoids an error when clicking on the bitmap areas. Instead, they
5329 are currently treated like clicks inside the window.
5330 (coordinates_in_window): Return 5 and 6 for bitmap areas.
5331 (Qleft_bitmap_area, Qright_bitmap_area): New.
5332 (syms_of_window): Initialize new symbols.
5334 * dispnew.c (update_frame_line): If writing whole line,
5335 don't write trailing spaces unless we must.
5337 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
5338 (redisplay_internal): Register unwind_redisplay with
5339 register_unwind_protect.
5340 (try_window_reusing_current_matrix): If new start > old start,
5341 give up if start pos of first reusable row is not equal to new
5344 * eval.c (Fsignal): Don't reset redisplaying_p here.
5346 * xterm.c (expose_area): If row extends face to end of line,
5347 write the whole line.
5349 1999-08-16 Gerd Moellmann <gerd@gnu.org>
5351 * dispextern.h (struct it): Remove member
5352 show_trailing_whitespace_p.
5354 * dispnew.c (direct_output_for_insert): Use
5355 Vshow_trailing_whitespace instead of former iterator member
5356 show_trailing_whitespace_p.
5357 (direct_output_forward_char): Don't do it if hightlighting
5358 trailing whitespace.
5360 * xdisp.c (Qshow_trailing_whitespace): Removed.
5361 (Vshow_trailing_whitespace): Added.
5362 (init_iterator): Remove initialization code for
5363 show_trailing_whitespace_p.
5364 (redisplay_internal): Don't try cursor movement in this_line
5365 if showing trailing whitespace.
5366 (redisplay_window): Likewise for cursor movement in current
5367 matrix and try_window_id.
5368 (try_window_reusing_current_matrix): Likewise.
5369 (trailing_whitespace_p): Return 0 if trailing whitespace is
5371 (display_line): Use Vshow_trailing_whitespace instead of
5372 former iterator member show_trailing_whitespace_p.
5373 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
5375 1999-08-16 Gerd Moellmann <gerd@gnu.org>
5377 * window.c (Fpos_visible_in_window_p): Rewritten.
5379 * xfaces.c (add_to_log): Renamed from display_message.
5380 Don't display messages in echo area.
5382 * xterm.c (x_draw_glyph_string_box): Use the background width
5383 of the glyph string for the width of the box.
5385 1999-08-16 Stefan Monnier <monnier@cs.yale.edu>
5387 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
5389 1999-08-16 Geoff Voelker <voelker@cs.washington.edu>
5391 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
5392 background first, and then set other parameters that might
5393 depend upon their new values.
5395 1999-08-15 Gerd Moellmann <gerd@gnu.org>
5397 * xfaces.c (Vfont_list_limit): New.
5398 (syms_of_xfaces): Make it a user-variable.
5399 (DEFAULT_FONT_LIST_LIMIT): New.
5400 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
5401 maximally that number of fonts, otherwise use
5402 DEFAULT_FONT_LIST_LIMIT.
5403 (Fx_font_family_list): Bind `font-list-limit' to higher values
5404 until we have all fonts.
5405 (Fxfont_list): Additionally return the full names of fonts and
5406 their registry and encoding.
5408 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5409 Simplify clearing "under" scroll bar.
5411 * window.c (Qfixed_window_size): New.
5412 (syms_of_window): Initialiaze it.
5413 (check_all_windows): Add return type void.
5414 (window_fixed_size_p): New. Return non-zero if window
5416 (window_min_size_1): New.
5417 (window_min_size): Handle fixed-size windows.
5418 (size_window): New. Rewritten combination of set_window_height and
5419 set_window_width that handles fixed-size windows.
5420 (set_window_height): Call it.
5421 (set_window_width): Call it.
5422 (Fsplit_window): Give an error on attempt to split a fixed-size
5424 (change_window_height): Partly rewritten to handle fixed-size
5427 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
5429 * process.c (Fopen_network_stream): Fix previous change.
5431 1999-08-13 Karl Heuer <kwzh@gnu.org>
5433 * xdisp.c (line_number_display_limit_width): New var.
5434 (decode_mode_spec): Use it instead of hardcoded value.
5435 (syms_of_xdisp): Defvar it.
5437 1999-08-13 Richard M. Stallman <rms@gnu.org>
5439 * eval.c (run_hook_list_with_args): Gcpro `globals'.
5440 (run_hook_with_args): Likewise.
5442 * window.h (struct window): New field too_small_ok.
5444 * window.c (set_window_height, set_window_width):
5445 If window starts out "too small", set its too_small_ok flag.
5446 If window's too_small_ok flag is set, don't delete it
5447 unless it is so small it would cause a crash.
5449 1999-08-13 Gerd Moellmann <gerd@gnu.org>
5451 * window.c (MINSIZE): Removed.
5452 (window_min_size): New.
5453 (set_window_height): Use window_min_size.
5454 (change_window_height): Ditto.
5456 1999-08-12 Gerd Moellmann <gerd@gnu.org>
5458 * indent.c (vmotion): Don't add in mini-buffer prompt width
5459 if prompts are inserted into mini-buffer.
5461 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
5463 * config.in: Add HAVE_GETADDRINFO.
5464 * process.c (Fopen_network_stream): Use getaddrinfo.
5466 1999-08-11 Gerd Moellmann <gerd@gnu.org>
5468 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
5471 * xdisp.c (face_before_or_after_it_pos): If position after
5472 or before iterator's current position in the buffer is out
5473 of bounds, return the iterator's original face id.
5475 * dispnew.c (mirror_make_current): If desired row isn't enabled,
5476 just swap glyphs pointers between current and desired row.
5477 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
5478 desired matrix method string to current matrix.
5480 1999-08-11 Kenichi Handa <handa@etl.go.jp>
5482 * lisp.h (CHAR_MODIFIER_MASK): New macro.
5484 * lread.c (read_escape): For Control modifier, pay attention to
5485 multibyte character.
5486 (read1): Likewise. Singal error or a multibyte character which
5487 has a modifer bit. Check validity of Shift modifer.
5489 * charset.c (non_ascii_char_to_string): Handle modifier bits as
5490 the same as Lisp reader.
5492 1999-08-10 Richard M. Stallman <rms@gnu.org>
5494 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
5496 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
5498 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
5500 1999-08-10 Eli Zaretskii <eliz@gnu.org>
5502 * msdos.c (IT_set_face): Abort if the default face is not realized
5504 (IT_write_glyphs): Reset the screen face to the default face
5505 before writing glyphs.
5507 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
5508 colors from the frame here.
5509 (realize_tty_face) [MSDOS]: Do it here. Update the face
5510 attributes with the actual name of the color taken from the
5513 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
5514 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
5516 * frame.c (Fframe_parameters): Swap foreground and background
5517 colors returned in frame parameters if the frame has reverse in
5518 its parameter alist.
5519 (Fmake_terminal_frame): Make a unique copy of face_alist for
5522 1999-08-07 Richard Stallman <rms@gnu.org>
5524 * buffer.c (Fprevious_overlay_change): Just return
5525 the answer obtained from overlays_at.
5527 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
5528 Use XpmCloseness and attrs.closeness instead.
5530 1999-08-06 Richard Stallman <rms@gnu.org>
5532 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
5534 1999-08-06 Geoff Voelker <voelker@cs.washington.edu>
5536 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
5537 Ffile_attributes_lessp): New functions.
5538 (Fdirectory_files): Use directory_files_internal.
5539 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
5540 Ffile_attributes_lessp.
5542 * w32.c (stat): Check for directory ending in separator when
5543 doing readdir fast path.
5545 * w32fns.c (x_set_icon_type): Support setting frame icons.
5546 * w32term.c (x_bitmap_icon): New function.
5547 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
5549 1999-08-06 Gerd Moellmann <gerd@gnu.org>
5551 * xdisp.c (set_iterator_to_next): After delivering a character
5552 from a display vector, restore face and charset to what they were
5553 before the display vector was processed.
5555 1999-08-06 Gerd Moellmann <gerd@gnu.org>
5557 * xdisp.c (reseat_at_next_visible_line_start): New parameter
5559 (set_iterator_to_next): After delivering last char
5560 from display vector, reseat on next visible line start if
5562 (next_element_from_buffer): Set dpvec_char_len to -1 for
5565 1999-08-06 Gerd Moellmann <gerd@gnu.org>
5567 * xdisp.c (compute_line_metrics): If first line's physical ascent
5568 is larger than its logical ascent, use the physical ascent, and
5569 make the row taller. Set row's overlapping_p flag.
5571 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
5572 (direct_output_for_insert): Ditto.
5574 * dispextern.h (struct glyph_row): Add overlapping_p.
5576 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
5578 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
5579 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
5581 * dispnew.c (direct_output_for_insert): Don't use this method if
5582 row is overlapped by others.
5583 (update_text_area): Write full line if current line is overlapped.
5584 (redraw_overlapped_rows): New.
5585 (update_window): Call it.
5586 (redraw_overlapping_rows): New.
5587 (update_window): Call it.
5588 (scrolling_window): Make sure overlapped_p flag in current rows is
5590 (row_equal_p): Take rows overlapped_p flag into account.
5592 * dispextern.h (struct glyph_row): Add flag overlapped_p.
5594 * xterm.c (x_fix_overlapping_area): New.
5595 (x_redisplay_interface): Add x_fix_overlapping_area.
5597 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
5599 1999-08-06 Gerd Moellmann <gerd@gnu.org>
5601 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
5602 (struct glyph_string): Add member for_overlaps_p.
5603 (x_get_glyph_string_clip_rect): If glyph string draws foreground
5604 of overlapping rows, clip to window bottom.
5605 (x_fill_glyph_string): Add parameter overlaps_p.
5606 (x_fill_composite_glyph_string): Ditto.
5607 (BUILD_GLYPH_STRINGS): Ditto.
5608 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
5609 (x_draw_glyph_string): Don't draw anything but the foreground
5610 if glyph string draws row overlaps.
5612 * dispnew.c (direct_output_for_insert): Don't use this
5613 optimization for rows that overlap others.
5614 (update_window_line): Return non-zero if display has changed.
5615 (update_text_area): Ditto.
5616 (update_window): Record if display has been changed.
5618 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
5620 * dispextern.h (struct redisplay_interface): Add
5621 fix_overlapping_area.
5623 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
5625 * dispextern.h (struct glyph): Add overlaps_vertically_p.
5627 * xterm.c (x_produce_image_glyph): Compute iterator's physical
5629 (x_produce_stretch_glyph): Ditto.
5630 (x_produce_glyphs): Ditto.
5632 * xdisp.c (init_iterator): Reset physical line height info
5633 after producing special glyphs.
5634 (display_toolbar_line): Set physical line height info.
5635 (compute_line_metrics): Ditto.
5636 (display_line): Ditto.
5637 (display_string): Ditto.
5639 * term.c (produce_glyphs): Set iterator's physical height
5642 * dispnew.c (blank_row): Compute glyph row's physical height.
5643 (row_equal_p): Take physical row heights into account.
5644 (direct_output_for_insert): Ditto.
5645 (update_text_area): Ditto.
5647 * dispextern.h (struct glyph_row): Add phys_ascent and
5649 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
5652 1999-08-04 Stefan Monnier <monnier@cs.yale.edu>
5654 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
5656 (no_switch_buffer): New function.
5657 (Fswitch_to_buffer): Call them. Don't get confused
5658 by "same-window" buffers in a dedicated frame.
5660 * window.c (display-buffer): Don't get confused
5661 by "same-window" buffers in a dedicated frame.
5663 1999-08-04 Andreas Schwab <schwab@gnu.org>
5665 * insdel.c (insert_from_string_1): Check gap size against number
5666 of outgoing bytes, not incoming bytes.
5668 1999-08-03 Tom Breton <tob@world.std.com>
5670 * lread.c (read1): Added circular reading code to #N=.
5671 (SUBSTITUTE): New macro.
5672 (seen_list): New variable.
5673 (substitute_object_in_subtree): New function.
5674 (substitute_object_recurse): New function.
5675 (substitute_in_interval): New function.
5677 1999-08-02 Eli Zaretskii <eliz@gnu.org>
5679 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
5681 * frame.c (make_terminal_frame): Don't call init_frame_faces if
5682 noninteractive, for termcap frames as well.
5684 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
5687 1999-08-01 Richard Stallman <rms@gnu.org>
5689 * fns.c (internal_equal): Correct overlay comparison.
5691 1999-07-31 Richard M. Stallman <rms@gnu.org>
5693 * xfns.c (x_set_internal_border_width):
5694 Call do_pending_window_change. Don't block input, don't call XFlush.
5695 (x_set_vertical_scroll_bars): Call do_pending_window_change.
5696 (x_set_scroll_bar_width, x_set_font): Likewise.
5698 * frame.c (Fset_frame_height): Call do_pending_window_change.
5699 (Fset_frame_width, Fset_frame_size): Likewise.
5701 * xterm.c (x_set_window_size): When calling change_frame_size,
5702 specify 1 for DELAY.
5704 * widget.c (EmacsFrameSetCharSize): Don't call
5705 do_pending_window_change here.
5707 1999-07-30 Dave Love <fx@gnu.org>
5709 * config.in: Add HAVE_STDLIB_H.
5711 1999-07-30 Richard M. Stallman <rms@gnu.org>
5713 * process.c (create_process): Detect failure of `pipe'.
5715 1999-07-30 Keisuke Nishida <kei@psn.net>
5717 * alloc.c (allocate_vectorlike): Add missing increment.
5719 * data.c (Fdefalias): Call Ffset instead of duplicating code.
5721 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
5722 before calling indirect_function.
5724 1999-07-30 Eli Zaretskii <eliz@gnu.org>
5726 * dispextern.h (load_color, lookup_derived_face): Declare
5729 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
5730 it will be done later.
5732 * frame.c (make_terminal_frame) [MSDOS]: Don't call
5733 init_frame_faces if non-interactive.
5734 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
5735 array with a call to msdos_stdcolor_name. The font name is now
5736 "ms-dos", consistent with realize_tty_face.
5738 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
5741 * window.c (Fset_window_configuration) [MSDOS]: Don't call
5742 x_set_toolbar_lines.
5744 * xfaces.c (load_color): Remove static from definition and remove
5746 [MSDOS]: Add a DOS-specific version of load_color.
5747 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
5748 (lookup_derived_face): New function.
5749 (realize_default_face): Support MSDOS frames.
5750 [MSDOS]: If fore/background colors are unspecified, inherit them
5752 (realize_face): Support MSDOS frames.
5753 (realize_tty_face): Support MSDOS frames.
5754 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
5755 load_color to try to find a suitable approximation. If the face
5756 is inverse-video, swap the foreground and background colors.
5758 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
5761 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
5763 * msdos.h: Remove redundant declarations (most of them are now in
5766 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
5767 Use default frame colors if the face doesn't specify them; invert
5768 the colors if highlight is ON.
5769 (IT_write_glyphs): Rewritten for the new redisplay engine.
5770 (IT_change_line_highlight): Add (unused) parameter Y, since that's
5771 how the hook is called by term.c.
5772 (IT_copy_glyphs): New function, copies an area of the display in
5774 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
5775 redisplay now calls it even if char_ins_del_ok is zero.
5776 (IT_set_frame_parameters): Prototype changed. Calls the new
5777 load_color. Puts the new fore/background colors into the default
5778 face on current frame.
5779 (IT_menu_display): Rewritten to handle the new struct glyph
5780 instead of a char array.
5781 (XMenuActivate): Call lookup_derived_face to create and use
5782 special faces for the pop-up and drop-down menus.
5784 1999-07-29 Gerd Moellmann <gerd@gnu.org>
5786 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
5787 XawScrollbarSetThumb if thumb parameters haven't changed because
5788 that function apparently isn't optimized for this case.
5790 1999-07-29 Eli Zaretskii <eliz@gnu.org>
5792 * msdos.c (getdefdir): Don't return failure indication when
5793 _fixpath sets errno to ENOSYS.
5795 1999-07-28 Gerd Moellmann <gerd@gnu.org>
5797 * xdisp.c (string_char_and_length): New. Use it everywhere
5798 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
5800 1999-07-28 Kenichi Handa <handa@etl.go.jp>
5802 * fns.c (count_combining): New function.
5803 (struct textprop_rec): New structure.
5804 (concat): Copy text properties correctly when byte combining
5807 1999-07-28 Gerd Moellmann <gerd@gnu.org>
5809 * xterm.c (x_setup_relief_color): Don't try smart color allocation
5811 (x_draw_row_bitmaps): If face has stipple, don't switch
5812 to foreground color for clearing areas, and set the fill style.
5814 * xfaces.c (load_face_colors): Load background color if setting
5816 (prepare_face_for_display): Use FillOpaqueStippled instead of
5819 1999-07-26 Ken'ichi Handa <handa@gnu.org>
5821 * xterm.c (x_find_ccl_program): Add casting.
5823 * w32fns.c (w32_find_ccl_program): Add casting.
5825 1999-07-27 Gerd Moellmann <gerd@gnu.org>
5827 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
5829 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
5830 because this will try to access a nonexisting widget.
5832 1999-07-26 Markus Rost <rost@gnu.org>
5834 * fns.c (Fgethash): Fix order of variables (patch by gerd).
5838 1999-07-26 Gerd Moellmann <gerd@gnu.org>
5840 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
5841 value to frame width and height.
5843 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
5844 into account for full-width windows. Don't add scroll bar width
5845 to width of clip rect.
5846 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
5847 (x_set_glyph_string_background_width): Add 1 to background width.
5848 (x_draw_glyphs): Take internal border into account for full-width
5851 1999-07-26 Richard M. Stallman <rms@gnu.org>
5853 * xfns.c (x_set_mouse_color): Always unload the old color.
5854 Don't allow nil as color value.
5855 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
5856 Always unload the old color.
5858 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
5860 1999-07-26 Karl Heuer <kwzh@gnu.org>
5862 * fns.c (Fy_or_n_p): Doc fix.
5864 1999-07-26 Kenichi Handa <handa@etl.go.jp>
5866 * ccl.h (setup_ccl_program): The type is changed to `int'.
5868 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
5869 stored in the following CCL code. Adjusted for the change of
5871 (resolve_symbol_ccl_program): Adjusted for the new style of
5872 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
5873 is resolving failed.
5874 (ccl_get_compiled_code): New function.
5875 (setup_ccl_program): Function type changed from `void' to `int'.
5876 Resolve symbols in CCL_PROG.
5877 (Fccl_program_p): New function.
5878 (Fccl_execute): Get compiled CCL code by just calling
5880 (Fccl_execute_on_string): Likewise.
5881 (Fregister_ccl_program): Adjusted for the change of
5884 * coding.c (setup_coding_system): Get compiled CCL code by just
5885 calling setup_ccl_program.
5887 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
5888 calling setup_ccl_program.
5890 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
5891 calling setup_ccl_program.
5893 1999-07-23 Gerd Moellmann <gerd@gnu.org>
5895 * xfaces.c (frame_update_line_height): Just use the height of the
5896 frame's fontset or font, instead of taking face fonts into
5899 * xdisp.c (get_next_display_element): Display DEL as `^?'.
5901 1999-07-23 Richard M. Stallman <rms@gnu.org>
5903 * window.c (Fsplit_window): For default size, round up for left window.
5905 1999-07-21 Joe Ramey <ramey@ti.com>
5907 * filelock.c (lock_if_free): Return -1 if check_lock_owner
5908 has returned -1 (lockfile exists but is not a symlink?).
5910 1999-07-20 Gerd Moellmann <gerd@gnu.org>
5912 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
5913 because of a change in cursor_gc made in 20.4.
5915 1999-07-19 Gerd Moellmann <gerd@gnu.org>
5917 * xterm.c (x_calc_absolute_position): Subtract menu bar height
5918 for YNegative, if using X toolkit.
5920 * xfns.c (x_real_positions): Don't subtract window borders
5921 from positions returned.
5923 1999-07-17 Gerd Moellmann <gerd@gnu.org>
5925 * xrdb.c (x_load_resources): Set double-click time defaults
5926 for Motif list boxes from double-click-time.
5928 * fns.c (Vhash_table_tests): Remvoed.
5929 (Qhash_table_test): New.
5930 (syms_of_fns): Initialize Qhash_table_test.
5931 (Fmake_hash_table): Look up user-defined tests in symbol prop
5933 (Fdefine_hash_table_test): Store test and hash function as
5934 symbol prop `hash-table-test'.
5935 (make_hash_table): Add parameters user_test and user_hash.
5937 * window.c (set_window_buffer): Set window margins for tty
5939 (Fset_window_margins): Ditto.
5941 * term.c (append_glyph): Use glyph area of iterator instead of
5944 * dispnew.c (update_frame_1): Add left margin width to cursor
5946 (direct_output_for_insert): Ditto.
5947 (direct_output_forward_char): Ditto.
5949 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
5951 * dispextern.h (struct glyph_matrix): Add top_line_p.
5953 1999-07-16 Gerd Moellmann <gerd@gnu.org>
5955 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
5958 * fns.c (cmpfn_eq): Add hash code parameters.
5960 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
5961 (cmpfn_user_defined): Likewise.
5963 1999-07-15 Gerd Moellmann <gerd@gnu.org>
5965 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
5967 * fns.c (maybe_resize_hash_table): Correct computation of
5969 (make_hash_table): Ditto.
5972 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
5974 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
5975 (survives_gc_p): Make it externally visible.
5976 (mark_object): Ditto.
5978 * fns.c (remove_hash_entry): Removed.
5979 (sweep_weak_hash_tables): New.
5981 * print.c (print): Print more information about hash tables.
5983 * xfns.c (image_spec_hash): Removed.
5984 (lookup_image): Use sxhash instead of image_spec_hash.
5985 (image_spec_equal_p): Removed.
5986 (lookup_image): Use Fequal instead of image_spec_equal_p.
5988 1999-07-14 Gerd Moellmann <gerd@gnu.org>
5990 * lisp.h (P_): Moved to top of file.
5992 * fns.c (make_hash_table): Set new members.
5994 * alloc.c (mark_object): Mark hash table's user_hash_function.
5995 Mark index vector for weak hash tables.
5997 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
5998 user_hash_function, cmpfn, and hashfn.
6000 * fns.c (build_hash): Removed.
6001 (hash_test): Removed.
6002 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
6003 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
6005 1999-07-13 Gerd Moellmann <gerd@gnu.org>
6007 * alloc.c (survives_gc_p): New.
6009 * print.c (print): Add hash table handling.
6011 * alloc.c (mark_object): Add code to mark hash tables.
6013 * lisp.h (GC_HASH_TABLE_P): New.
6015 * emacs.c (main): Call init_fns.
6017 * fns.c (init_fns): New.
6019 * fns.c: Add hash table implementation.
6021 * lisp.h (PVEC_HASH_TABLE): New.
6022 (struct Lisp_Hash_Table): New.
6024 (XSET_HASH_TABLE): New.
6025 (HASH_TABLE_P): New.
6026 (CHECK_HASH_TABLE): New.
6027 (DEFAULT_HASH_SIZE): New.
6028 (DEFAULT_REHASH_THRESHOLD): New.
6029 (DEFAULT_REHASH_SIZE): New.
6031 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
6032 (x_write_glyphs): Compute overwritten cursor using real start
6033 and end positions of display.
6034 (x_insert_glyphs): Ditto.
6036 1999-07-10 Gerd Moellmann <gerd@gnu.org>
6038 * keyboard.c (read_char): Use message3_nolog to show help-echo.
6040 * dispnew.c (blank_row): Add y-position as parameter. Compute
6043 * xdisp.c (next_element_from_string): Give padding spaces
6046 * dispnew.c (adjust_glyph_matrix): Some work to support
6047 marginals areas on tty frames in a future version.
6048 (allocate_matrices_for_frame_redisplay): Ditto.
6050 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
6051 to zero if number of glyphs in the row is <= 1.
6053 1999-07-09 Gerd Moellmann <gerd@gnu.org>
6055 * dispnew.c (buffer_posn_from_coords): Take left marginal area
6058 * xdisp.c (handle_display_prop): Don't reset area if handing
6059 a property from a string that came from a `display' property.
6060 (handle_single_display_prop): Don't handle recursive `display'
6062 (handle_single_display_prop): Handle some display property
6063 forms for terminal frames.
6064 (Qimage): Moved here from xfns.c.
6066 * dispextern.h (struct it): New field string_from_display_prop_p.
6068 * xterm.c (x_clip_to_row): Don't let clip_rect include top
6071 1999-07-08 Gerd Moellmann <gerd@gnu.org>
6073 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
6075 * window.c (set_window_buffer): Set window's vscroll to zero.
6077 * xdisp.c (QCwhen): New.
6078 (display_prop_end): New.
6079 (handle_single_display_prop): Use it.
6080 (debug_method_add): Print buffer name if tracing.
6081 (try_window_reusing_current_matrix): Compute visible height
6082 of reused rows. Fix cursor position calculation in case of
6085 * dispextern.h (struct redisplay_interface): Add parameter
6086 cursor_on_p to update_window_end_hook.
6088 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
6090 1999-07-07 Gerd Moellmann <gerd@gnu.org>
6092 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
6093 doesn't become negative when decrementing it.
6095 * eval.c (Fsignal): Reset redisplaying_p to zero.
6097 * xdisp.c (try_window_reusing_current_matrix): Call hooks
6099 (try_window_id): Ditto.
6101 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
6102 (x_scroll_run): Ditto.
6103 (any_help_event_p): New.
6104 (x_initialize): Set it to zero.
6105 (XTread_socket): Clear help echo only if any_help_event_p.
6107 * xdisp.c (init_iterator): Set top_line_p.
6108 (start_display): Use correct initial y if top-line is present.
6109 (make_cursor_line_fully_visible): Bug fixes for top-line.
6110 (try_scrolling): Ditto.
6111 (try_window_reusing_current_matrix): Ditto.
6113 * dispextern.h (struct it): Add top_line_p.
6115 * dispnew.c (shift_glyph_matrix): Move some computations out
6118 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
6121 1999-07-06 Gerd Moellmann <gerd@gnu.org>
6123 * dispnew.c (update_frame_1): When setting cursor in echo area,
6124 skip only over padding spaces at the end.
6126 * xfaces.c (realize_tty_face): Set face's font_name field to
6129 * term.c (update_end): Turn cursor on only if selected window's
6130 cursor_off_p flag is not set.
6132 1999-07-05 Gerd Moellmann <gerd@gnu.org>
6134 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
6135 (TS_cursor_normal): Renamed from TS_end_visual_mode.
6136 (TS_cursor_invisible): New.
6137 (term_init): Initialize TS_cursor_invisible.
6138 (tty_hide_cursor): New.
6139 (tty_show_cursor): New.
6140 (update_end): Show tty cursor.
6141 (update_begin): Hide tty cursor to prevent cursor flickering
6142 during redisplays triggered by timers (stealth fontification).
6144 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
6146 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
6148 (x_handle_toolbar_click): Set modifier bits.
6150 1999-07-04 Gerd Moellmann <gerd@gnu.org>
6152 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
6153 instead of a pointer to a volatile input_event.
6154 (kbd_buffer_store_event): Remove volatile modifier from
6155 declaration of local variable `sp'.
6156 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
6159 1999-07-03 Gerd Moellmann <gerd@gnu.org>
6161 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
6162 only if buffer is modified. Return quickly if changes are
6165 1999-07-02 Gerd Moellmann <gerd@gnu.org>
6167 * dispextern.h (HSCROLL_WINDOWS): Removed.
6169 * xdisp.c (mark_window_display_accurate): Don't set
6171 (redisplay_internal): Don't call redraw_garbaged_frames.
6173 1999-07-01 Gerd Moellmann <gerd@gnu.org>
6175 * xdisp.c (echo_area_display): Don't display truncation marks
6176 for messages because 20.4 doesn't do it either.
6177 (redisplay_window): Case same window start. Instead of giving
6178 up when cursor is partially visible, make it fully visible.
6179 (mark_window_display_accurate): Some cleanup. Record window's
6180 last cursor information.
6181 (debug_method_add): Improved.
6182 (redisplay_internal): Record last cursor info only if not
6183 consider_all_windows_p.
6185 * dispnew.c (update_window): Update top line after scrolling.
6186 (blank_row): Renamed from make_empty_enabled_row.
6187 (increment_glyph_row_buffer_positions): Increment positions
6190 * window.c (Fcoordinates_in_window_p): Add top-line to doc
6193 1999-06-30 Gerd Moellmann <gerd@gnu.org>
6195 * dispnew.c (update_window): Check that updated row is visible.
6197 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
6198 top of window differently.
6200 * xdisp.c (try_window_reusing_current_matrix): Don't do it
6201 if region is showing.
6203 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
6204 avoiding matrix reallocation. Set window_vscroll in matrix.
6206 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
6208 * xdisp.c (debug_method_add): New.
6209 (debug_redisplay_method): Removed.
6210 (try_window_reusing_current_matrix): Handle case where old
6211 window start is the same as new window start.
6213 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
6214 an array instead of a pointer.
6216 * xfns.c (Fx_show_tip): Undo previous change.
6218 * xterm.c (x_append_glyph): Clear glyph->u.val.
6220 * dispextern.h (struct glyph): Increase size of face_id bit-field
6221 for CHAR_GLYPH to 12.
6223 1999-06-29 Gerd Moellmann <gerd@gnu.org>
6225 * xfaces.c (x_charset_registry): Make it externally visible.
6227 1999-06-28 Gerd Moellmann <gerd@gnu.org>
6229 * dispnew.c (update_window): Use mode_line_p flag of rows
6230 instead of WINDOW_WANTS_MODELINE_P.
6232 * xterm.c (clear_mouse_face): Make externally visible.
6234 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
6236 * xterm.c (expose_line): Handle exposure of top-lines.
6238 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
6239 if mouse_face_mouse_frame is null.
6241 * xdisp.c (redisplay_window): If window is echo_area_window,
6242 and update_mode_line is set, update menubar and toolbar.
6244 * dispnew.c (space_glyph): Set its charpos to -1.
6245 (update_frame_1): Ignore trailing padding spaces.
6247 * xdisp.c (next_element_from_c_string): Set position of padding
6250 1999-06-27 Gerd Moellmann <gerd@gnu.org>
6252 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
6255 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
6256 (set_cursor_from_row): Skip over glyphs having a null object at
6258 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
6260 (handle_invisible_prop): Compute next change only when needed.
6261 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
6264 1999-06-26 Gerd Moellmann <gerd@gnu.org>
6266 * xrdb.c (x_load_resources): Don't set resource for double-click
6269 * xdisp.c (try_window_id): Return quickly if all changes are
6270 below the window's current matrix end.
6272 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
6275 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
6276 in desired not in current matrix.
6277 (try_window_reusing_current_matrix): Rotate matrices starting
6278 at start_vpos instead of 0.
6280 * xterm.c (expose_window): Use window_text_bottom_y.
6281 (fast_find_position): Ditto.
6283 * xdisp.c (redisplay_window): Use window_text_bottom_y.
6284 (try_window_reusing_current_matrix): Ditto.
6285 (get_last_unchanged_at_beg_row): Ditto.
6286 (init_iterator): Ditto.
6288 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
6290 (check_matrix_invariants): Use window_text_bottom_y.
6291 (update_window): Ditto.
6292 (scrolling_window): Ditto.
6294 * xdisp.c (window_text_bottom_y): New.
6296 1999-06-25 Gerd Moellmann <gerd@gnu.org>
6298 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
6299 clearing mouse face.
6300 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
6301 event.xcrossing.focus is not set, and focus is in the menu bar,
6302 set focus frame as if event.xcrossing.focus were set.
6304 1999-06-24 Gerd Moellmann <gerd@gnu.org>
6306 * keyboard.c (make_lispy_event): Handle mouse on top lines.
6307 * keyboard.c (make_lispy_movement): Ditto.
6309 * window.c (coordinates_in_window): Return 4 if on top line.
6310 (Fcoordinates_in_window_p): Return `top-line' if on top line.
6312 * xdisp.c (window_box_height): Subtract top line height.
6313 (window_box): Add top line height to top y position if top line
6315 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
6316 the top line row of the window. Set initial y-position to
6317 window's top line height plus delta.
6318 (start_display): Choose start glyph row depending on whether
6319 window has a top line.
6320 (try_scrolling): Take top line height into account for aggressive
6322 (compute_window_start_on_continuation_line): Take top line into
6324 (redisplay_window): Ditto. If top line height has changed,
6325 trigger a new redisplay.
6326 (try_window_reusing_current_matrix): Take top line into account.
6327 (find_last_row_displaying_text): Ditto.
6328 (get_last_unchanged_at_beg_row): DItto.
6329 (try_window_id): Ditto.
6330 (compute_line_metrics): Ditto.
6332 * dispnew.c (shift_glyph_matrix): Compute visible row height
6333 taking top line of window into account.
6334 (update_window): Update top line. If scrolling_window detects
6335 that all rows are equal, only set cursor.
6336 (update_window_line): Call after_update_window_line_hook if
6337 mode_line_p flag of rows has changed.
6338 (scrolling_window): Add parameter top_line_p. Return -1 if
6340 (mode_line_string): Add parameter mode_line_p. Handle strings
6343 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
6344 (MATRIX_FIRST_TEXT_ROW): New.
6345 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
6346 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
6347 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
6348 (MATRIX_TOP_LINE_HEIGHT): New.
6349 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
6350 (CURRENT_TOP_LINE_HEIGHT): New.
6351 (DESIRED_TOP_LINE_HEIGHT): New.
6352 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
6353 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
6354 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
6355 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
6357 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
6359 (x_draw_row_bitmaps): Take top line into account when clearing
6361 (x_estimate_mode_line_height): Replacement for
6362 x_frame_mode_line_height.
6363 (x_get_glyph_string_clip_rect): Take top line into account.
6364 (x_clear_end_of_line): Ditto.
6365 (note_mode_line_highlight): Add parameter mode_line_p. Handle
6367 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
6368 (x_erase_phys_cursor): Take top line into account.
6370 * xdisp.c (window_box_height): Subtract top line height if
6371 window wants a top line.
6372 (display_mode_lines): New.
6373 (redisplay_window): Call it.
6374 (display_mode_line): Add parameters face_id and format.
6376 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
6377 (MATRIX_TOP_LINE_HEIGHT): New.
6379 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
6381 * term.c (estimate_mode_line_height): Renamed from
6382 frame_mode_line_height. Add parameter face_id.
6383 (estimate_mode_line_height_hook): Renamed from
6384 frame_mode_line_height_hook.
6385 (produce_special_glyphs_hook): Removed.
6386 (produce_glyphs_hook): Removed.
6388 1999-06-23 Gerd Moellmann <gerd@gnu.org>
6390 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
6391 (struct glyph_row): Add mode_line_p.
6393 * xfaces.c (realize_basic_faces): Realize face `top-line'.
6395 (syms_of_xfaces): Initialize Qtop_line.
6397 * dispextern.h (TOP_LINE_FACE_ID): New.
6399 * buffer.c (init_buffer_once): Set default for
6400 top_line_format to nil.
6401 (init_buffer_once): Init top_line_format.
6402 (default-top-line-format): New.
6403 (top-line-format): New buffer-local variable.
6405 * buffer.h: Add top_line_format.
6407 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
6409 1999-06-17 Dave Love <fx@gnu.org>
6411 * xfns.c: Move the PNG section before the JPEG one to avoid
6412 problems surrounding setjmp.h/png.h on GNU/Linux.
6414 1999-06-17 Gerd Moellmann <gerd@gnu.org>
6416 * xfns.c (x_kill_gs_process): Don't free colors.
6418 1999-06-17 Dave Love <fx@gnu.org>
6420 * s/gnu-linux.h: Zap spurious ~.
6422 1999-06-16 Gerd Moellmann <gerd@gnu.org>
6424 * xfns.c (gif_load): Improve multi-image support.
6426 1999-06-15 Gerd Moellmann <gerd@gnu.org>
6428 * xfns.c (gif_load): Support multi-image files.
6430 * Makefile.in (LIBGIF): Use libungif.
6432 * configure.in (HAVE_GIF): Use libungif instead of libgif
6433 because the former doesn't contain patented compression code.
6435 * xdisp.c (compute_window_start_on_continuation_line): Don't
6436 do it if line start is too far away from window start.
6438 1999-06-14 Gerd Moellmann <gerd@gnu.org>
6440 * buffer.c (init_buffer_once): Set buffer_local_flags for
6441 scroll_*_aggressively.
6442 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
6443 (init_buffer_once): Set defaults for these variables.
6444 (syms_of_buffer): Add default-scroll-*-aggressively.
6446 * buffer.h (scroll_up_aggressively): New.
6447 (scroll_down_aggressively): New.
6449 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
6450 a static PNG library.
6452 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
6453 in case it's a static library.
6455 * Makefile.in (ctagsfiles): Split so that files starting
6456 with an `x' are found before files starting with `w32'.
6459 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
6461 * xdisp.c (compute_window_start_on_continuation_line): New.
6462 (redisplay_window): Use it.
6464 (reseat_to_string): Use it.
6465 (hscroll_window_tree): Ditto.
6466 (compute_window_start_on_continuation_line): Ditto.
6467 (redisplay_window): Don't force display with a new window start.
6469 1999-06-06 Gerd Moellmann <gerd@gnu.org>
6471 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
6472 if widget not present.
6474 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
6476 1999-06-04 Gerd Moellmann <gerd@gnu.org>
6478 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
6479 value of realize_basic_faces.
6480 (load_face_font_or_fontset): Store full font name in face.
6481 (realize_default_face): Use full font name.
6483 * xterm.c (x_produce_glyphs): Set member char_to_display.
6484 (x_append_glyph): Store char_to_display in glyphs.
6486 * dispextern.h (struct it): Add char_to_display.
6488 * xfns.c (x_set_font): Don't call face-set-after-frame-default
6489 if faces haven't been initialized.
6490 (Fx_create_frame): Call face-set-after-frame-default after
6491 faces have been initialized, and widget has been created.
6493 * puresize.h (BASE_PURESIZE): Increased.
6495 1999-06-01 Gerd Moellmann <gerd@gnu.org>
6497 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
6498 (Finternal_set_lisp_face_attribute): If frame is t when
6499 :font attribute is set, use the selected frame.
6500 (clear_face_cache): Add parameter clear_fonts_p.
6501 (Fclear_face_cache): Add optional parameter thorougly.
6503 * xfaces.c (face_numeric_value): Return -1 if symbol is not
6505 (Fclear_face_cache): New.
6506 (choose_face_fontset_font): If fontset doesn't contain font
6507 pattern for the given charset, use CHARSET_ASCII.
6508 (Finternal_set_lisp_face_attribute): Fix handling of nil
6510 (Finternal_set_lisp_face_attribute): Fix handling of changing
6511 font-related face attributes of the default face.
6512 (set_lface_from_font_name): Set only attributes that aren't
6515 1999-05-31 Gerd Moellmann <gerd@gnu.org>
6517 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
6519 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
6520 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
6521 scalable fonts depending on the setting of SCALABLE_FONTS.
6522 (first_font_matching): List more than one font to find the
6523 first non-scalable matching font.
6524 (sorted_font_list): Let x_face_list_fonts return scalable fonts
6525 depending on SCALABLE_FONTS.
6526 (better_font_p): New parameter compare_pt_p. If zero, don't
6527 compare point sizes of fonts.
6528 (exact_face_match_p) [SCALABLE_FONTS]: New.
6529 (build_scalable_font_name) [SCALABLE_FONTS]: New.
6530 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
6531 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
6532 (syms_of_xfaces): Add scalable-fonts-allowed.
6534 1999-05-26 Gerd Moellmann <gerd@gnu.org>
6536 * xfns.c (png_load): Let PNG lib handle gamma. Construct
6537 mask only if image contains simple transparency information.
6538 Otherwise, combine image with frame background color.
6540 * configure.in (--with-png, HAVE_PNG): New.
6542 * config.in (HAVE_PNG): New.
6544 * Makefile.in: Add PNG library.
6546 * xfns.c: Add PNG support.
6548 1999-05-25 Gerd Moellmann <gerd@gnu.org>
6550 * xdisp.c (init_xdisp): Initialize echo_area_message and
6551 previous_echo_area_message to nil.
6553 * keyboard.c (read_char): Rename local variable echo_area_message
6554 because it shadows the global one.
6556 1999-05-05 Gerd Moellmann <gerd@gnu.org>
6558 * xterm.c (note_mode_line_highlight): Restructured.
6560 * window.c (coordinates_in_window): Handle windows that don't have
6561 a mode line because their buffer's mode-line-format is nil.
6562 Recognize the mode line under x positions that correspond to
6563 flags areas and left scroll bar.
6565 1999-05-02 Dave Love <fx@gnu.org>
6567 * xterm.c (note_mouse_highlight): Separate help-echo processing
6568 from check on mouse-face so that it works generally.
6570 1999-04-21 Gerd Moellmann <gerd@gnu.org>
6572 * sound.c (Fplay_sound): Run hook play-sound-hook.
6573 (Qplay_sound_hook): New.
6575 1999-04-20 Gerd Moellmann <gerd@gnu.org>
6577 * xdisp.c (update_echo_area): Handle echo_area_message.
6579 1999-04-19 Gerd Moellmann <gerd@gnu.org>
6581 * editfns.c (Fmessage): Use message3.
6583 * print.c (printchar): Set echo_area_message to nil.
6586 * minibuf.c (read_minibuf): Reset echo message strings to nil.
6587 (Fminibuffer_completion_help): Ditto.
6589 * keyboard.c (cmd_error_internal): Set echo_areA_message.
6590 (command_loop_1): Test echo_areA_message.
6592 (record_menu_key): Set echo_area_message to nil.
6593 (Fexecute_extended_command): Test echo_area_message.
6594 (Fexecute_extended_command): Handle echo_area_message.
6596 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
6599 * editfns.c (Fcurrent_message): If echo_area_message is set,
6600 return a substring of that string.
6602 * dispnew.c (direct_output_for_insert): Test echo_area_message
6603 in addition to echo_area_glyphs.
6604 (set_window_cursor_after_update): Ditto.
6605 (update_frame_1): Ditto.
6607 * alloc.c (Fgarbage_collect): Use message3_nolog to display
6608 old Lisp message string.
6610 * xdisp.c (echo_area_message): New.
6611 (previous_echo_area_message): New.
6612 (syms_of_xdisp): Initialize and staticpro new variables.
6613 (echo_area_display): Display echo_area_message if set.
6614 (message2_nolog): Set echo_area_message and
6615 previous_echo_area_message.
6616 (echo_area_display): Set previous_echo_area_message.
6617 (redisplay_internal): Display echo area if echo_area_message
6618 or previous_echo_area_message are set.
6619 (redisplay_preserve_echo_area): Test/set echo_area_message and
6620 previous_echo_area_message.
6621 (redisplay_window): Test echo_area_message.
6622 (message3_nolog): New.
6625 * editfns.c (Fformat): Add text properties to the result string
6626 from properties of the format string and properties of string
6629 * textprop.c (text_property_list): New.
6630 (add_text_properties_from_list): New.
6631 (extend_property_ranges): New.
6633 1999-03-29 Gerd Moellmann <gerd@gnu.org>
6635 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
6636 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
6637 Use these symbols for the box face attribute instead of the
6640 1999-03-12 Gerd Moellmann <gerd@gnu.org>
6642 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
6643 Correct wrong test for slant.
6645 1999-03-10 Gerd Moellmann <gerd@gnu.org>
6647 * xfaces.c: Use `unspecified' for unspecified face attributes,
6648 use t and nil for on/off.
6650 1999-03-06 Gerd Moellmann <gerd@gnu.org>
6652 * buffer.c (syms_of_buffer): Extend doc string of
6655 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
6656 (first_font_matching): New.
6657 (set_lface_from_font_name): Use it if font name is a pattern.
6658 (font_field_wildcard_p): Removed.
6660 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
6661 Recompute visible height of rows.
6663 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
6664 Don't accept non-strings for help-echo from overlays.
6666 1999-03-04 Dave Love <fx@gnu.org>
6668 * xterm.c (note_mouse_highlight): Check overlays for help-text
6670 (XTread_socket): Fix compiler warning.
6672 1999-03-05 Gerd Moellmann <gerd@gnu.org>
6674 * xterm.c (note_mouse_highlight): Don't restrict number of
6675 overlay to 10. Call overlays_at so that it doesn't try to
6678 * xdisp.c (compute_line_metrics): Compute glyph row's visible
6681 * dispnew.c (row_equal_p): Compare visible row height, only.
6682 (update_text_area): Draw whole line if visible heights of
6684 (update_window_line): Call after_update_window_line_hook
6685 if visible row height has changed.
6687 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
6688 (struct glyph_row): New member visible_height.
6690 * xfaces.c (font_field_wildcard_p): New.
6691 (set_lface_from_font_name): Remove parameter force_p. Accept
6692 font names containing wildcards.
6694 1999-03-04 Gerd Moellmann <gerd@gnu.org>
6696 * xterm.c (x_after_update_window_line): Clear internal border
6697 when windows_or_buffers_changed.
6699 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
6700 buffer has a nil mode_line_format.
6702 1999-03-03 Gerd Moellmann <gerd@gnu.org>
6704 * xterm.c (x_setup_relief_colors): Use either background color
6707 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
6709 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
6711 * xterm.c (x_draw_box_rect): New.
6712 (x_draw_glyph_string_box): Renamed from
6713 x_draw_glyph_string_relief. Call x_draw_box_rect.
6715 * xfns.c (QCrelief): New.
6716 (syms_of_xfns): Initialize it.
6718 * dispextern.h (struct glyph): Rename left_shadow_p to
6719 left_box_line_p, right_shadow_p to right_box_line_p.
6720 (MAX_RELIEF_THICKNESS): Removed.
6721 (struct it): Rename members having `relief' in their names
6722 to contain `box' instead.
6724 * xfaces.c (realize_x_face): Handle new box attribute values.
6725 (QCrelief, Qbox): Removed.
6726 (QCshadow, QCcolor, Qraised, Qsunken): New.
6727 (syms_of_xfaces): Initialize new symbols.
6729 1999-03-02 Gerd Moellmann <gerd@gnu.org>
6731 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
6733 * xfaces.c (LFACE_RELIEF): Removed.
6734 (merge_face_vector_with_property): Remove handling of `:relief'.
6735 (Finternal_set_lisp_face_attribute): Ditto.
6736 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
6737 (Finternal_get_lisp_face_attribute): Ditto.
6738 (realize_default_face): Ditto.
6739 (lface_hash): Don't compute hash from relief.
6741 * dispextern.h (struct face): Replace member `relief' by
6742 `box_line_width'. Add member `box'.
6743 (face_box_type): New.
6745 * xterm.c (x_produce_glyphs): If face has overline, add overline
6746 thickness + 1 to ascent.
6748 1999-03-01 Gerd Moellmann <gerd@gnu.org>
6750 * xterm.c (x_draw_glyph_string): Draw underline, overline,
6751 strike-through, and boxes.
6752 (x_draw_glyph_string_underline): Removed.
6754 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
6755 (Qoverline, Qstrike_through, Qbox): New.
6756 (syms_of_xfaces): Define these symbols.
6757 (check_lface_attrs): Add checks for overline, strike-through,
6759 (Finternal_set_lisp_face_attribute): Set new attributes.
6760 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
6761 (load_color): Handle new attributes.
6762 (realize_x_face): Ditto.
6763 (merge_face_vector_with_property): Ditto.
6764 (free_face_colors): Ditto.
6765 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
6766 (Finternal_get_lisp_face_attribute): Ditto.
6767 (Finternal_lisp_face_attribute_values): Ditto.
6769 * dispextern.h (lface_attribute_index): Add enumerators for
6770 overstrike, strike-through, and box.
6771 (struct face): Add members for overline, strike-through, and
6774 1999-02-17 Dave Love <fx@gnu.org>
6776 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
6777 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
6780 1999-02-16 Gerd Moellmann <gerd@gnu.org>
6782 * keyboard.c (toolbar_items): Call access_keymap with third
6783 parameter 1, so that we don't get inherited toolbar item
6786 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
6787 the window end vpos when in empty first line of window.
6789 1999-02-15 Gerd Moellmann <gerd@gnu.org>
6791 * xfaces.c (set_font_frame_param): New.
6792 (Finternal_set_lisp_face_attribute): Call it.
6794 Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
6796 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
6797 Accept specifications of color for underline.
6799 1999-02-13 Gerd Moellmann <gerd@gnu.org>
6801 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
6802 `frame' is t, operate on face defaults for new frames. If it
6803 is nil, operate on the selected frame.
6805 1999-02-12 Gerd Moellmann <gerd@gnu.org>
6807 * dispnew.c (check_matrix_invariants): Put it in #if 0.
6808 (update_window): Put the call to check_matrix_invariants in #if 0.
6810 Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
6812 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
6813 Remove definition of UNDERLINE_COLOR.
6815 Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
6817 * xfaces.c (free_face_colors): Free the color for underline.
6819 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
6822 Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
6824 * dispextern.h (UNDERLINE_COLOR): Defined.
6825 (struct face): Added two new members.
6826 underline_color, underline_defaulted_p.
6828 * xfaces.c (merge_face_vector_with_property):
6829 (check_lface_attrs): Accept the string value for underline.
6830 (Finternal_set_lisp_face_attribute): Likewise.
6832 * xfaces.c (load_color): Change the last argument type to enum
6833 lface_attribute_index from int. And addec code for underling coloring.
6834 (load_face_colors): Pass LFACE_*_INDEX to load_color.
6836 1999-02-12 Gerd Moellmann <gerd@gnu.org>
6838 * xfns.c (Fx_image_header): Removed.
6840 1999-02-07 Gerd Moellmann <gerd@gnu.org>
6842 * xterm.c: Don't include <bitmaps/gray>.
6843 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
6845 * xfns.c (Fx_image_header): Add missing `\n\'.
6846 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
6848 1999-02-01 Gerd Moellmann <gerd@gnu.org>
6850 * xterm.c (x_scroll_bar_create): Set background pixel from
6851 specified scroll bar color.
6852 (x_scroll_bar_set_handle): Use scroll bar foreground color.
6854 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
6855 (x_set_scroll_bar_background): Ditto.
6857 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
6859 * xfns.c (x_default_scroll_bar_color_parameter): New.
6860 (Fx_create_frame): Call it.
6862 1999-01-31 Gerd Moellmann <gerd@gnu.org>
6864 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
6865 values in x_output structure.
6866 (Qscroll_bar_foreground, Qscroll_bar_background): New.
6867 (syms_of_xfns): Initialize these symbols.
6869 * xterm.h (struct x_output): Add scroll bar pixel colors.
6871 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
6872 (x_set_scroll_bar_foreground): New.
6873 (x_set_scroll_bar_background): New.
6875 1999-01-12 Gerd Moellmann <gerd@gnu.org>
6877 * xdisp.c (handle_single_display_prop): New.
6878 (handle_display_prop): Call it.
6879 (handle_raise_prop): Removed.
6880 (handle_height_prop): Removed.
6881 (handle_space_width_prop): Removed.
6882 (handle_face_prop): Remove handling of raised text.
6883 (handle_display_prop): Do it here.
6885 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
6886 (RAISE_PROP_IDX): Removed.
6887 (HEIGHT_PROP_IDX): Removed.
6888 (SPACE_WIDTH_PROP_IDX): Removed.
6890 * xdisp.c (Qdisplay): Replaces Qglyph.
6891 (handle_display_prop): Formerly handle_glyph_prop.
6893 1999-01-11 Gerd Moellmann <gerd@gnu.org>
6895 * xdisp.c (reseat_to_string): Set position in display vector to -1.
6896 (handle_stop): Set position in display vector to -1. Don't
6897 check overlay strings when set up to deliver characters from a
6899 (set_iterator_to_next): At the end of a run of characters from a
6900 display vector, check whether the display vector display replaces
6901 the display of a character.
6903 1999-01-05 Gerd Moellmann <gerd@gnu.org>
6905 * xfaces.c (init_frame_faces): Don't realize faces if frame's
6906 X window hasn't been created yet.
6908 1998-12-06 Gerd Moellmann <gerd@gnu.org>
6912 1998-12-04 Gerd Moellmann <gerd@gnu.org>
6914 * config.in (HAVE_SOUND): New.
6916 * emacs.c (main): Call syms_of_sound and init_sound.
6918 * Makefile.in (obj): Add sound.o.
6920 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
6922 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
6923 (HAVE_SYS_SOUNDCARD_H): New.
6925 1998-12-03 Gerd Moellmann <gerd@gnu.org>
6927 * buffer.h (struct buffer): indicate_empty_lines renamed from
6930 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
6931 (default-indicate-zv-lines): Likewise.
6933 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
6934 to indicate_empty_line_p.
6936 * xdisp.c (reseat_at_next_visible_line_start): Reset method
6937 to next_element_from_buffer.
6939 * frame.c (make_frame): Set n_current_toolbar_items to 0.
6941 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
6944 * xfns.c (xbm_scan): New.
6945 (xbm_read_hexint): Removed.
6946 (xbm_read_bitmap_file_data): Use xbm_scan.
6948 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
6950 1998-12-02 Gerd Moellmann <gerd@gnu.org>
6952 * xfns.c (xbm_read_hexint): New.
6953 (xbm_read_bitmap_file_data): New.
6954 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
6955 instead of XReadBitmapFileData.
6957 * xdisp.c (handle_raise_prop): Compute voffset from current font.
6959 * xfaces.c (face_with_height): New.
6961 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
6962 (eval_form): Renamed from eval_mode_element.
6963 (handle_face_prop): Use it.
6964 (Qheight): Replaces Qsmaller.
6965 (handle_height_prop): Replaces handle_smaller_prop.
6966 (handle_face_prop): If iterator's font_height is not an
6967 integer, evaluate it to get the font height to use.
6969 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
6970 (struct it): Use `font_height' instead of `smaller'.
6972 1998-12-01 Gerd Moellmann <gerd@gnu.org>
6974 * xdisp.c (reseat_1): New.
6976 (move_it_vertically_backward): Ditto.
6977 (redisplay_window): Don't abort when cursor not found in recenter.
6979 1998-11-30 Gerd Moellmann <gerd@gnu.org>
6981 * xdisp.c (reseat_at_next_visible_line_start): When not
6982 currently delivering display elements from the current buffer,
6983 restore buffer position first.
6984 (init_from_display_pos): Don't set IT's position from the
6985 position passed to this function.
6987 1998-11-28 Gerd Moellmann <gerd@gnu.org>
6989 * config.in (PROTO): Removed.
6991 * xterm.h: Change PROTO to P_.
6993 1998-11-26 Gerd Moellmann <gerd@gnu.org>
6995 * xterm.c (take_vertical_position_into_account): New.
6996 (x_produce_image_glyph): Call it.
6997 (x_produce_stretch_glyph): Ditto.
6998 (x_produce_glyphs): Ditto.
6999 (x_fill_glyph_string): Adjust base line for glyph's voffset.
7000 (x_fill_composite_glyph_string): Ditto.
7001 (x_fill_image_glyph_string): Ditto.
7002 (x_fill_stretch_glyph_string): Ditto.
7004 * xdisp.c (display_line): Always compute row height from
7005 max_ascent and max_descent.
7007 * dispextern.h (struct glyph): Add voffset.
7008 (struct it): Replace height by descent, max_height by max_descent.
7010 * xterm.c (x_append_glyph): Set voffset
7011 (x_append_stretch_glyph): Ditto.
7012 (x_produce_image_glyph): Ditto.
7013 (x_produce_glyphs): Take voffset into account.
7014 (x_produce_image_glyph): Ditto.
7015 (x_produce_stretch_glyph): Ditto.
7017 * dispextern.h (struct it): Add voffset.
7018 * xdisp.c (push_it): Save voffset.
7019 (pop_it): Restore it.
7021 * xdisp.c (it_props): Add entry for `raise'.
7022 (handle_raise_prop): New.
7024 * dispextern.h (RAISE_PROP_IDX): New.
7026 * xdisp.c (Qraise): New.
7027 (syms_of_xdisp): Define Qraised.
7029 * xterm.c (x_scroll_bar_move): Clear to the left and right
7030 of toolkit scroll bars differently.
7031 (x_scroll_bar_move): Removed.
7032 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
7034 * dispextern.h: Make it compilable --with-x=no.
7038 * keyboard.c: Ditto.
7045 1998-11-25 Gerd Moellmann <gerd@gnu.org>
7047 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
7049 1998-11-24 Gerd Moellmann <gerd@gnu.org>
7051 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
7052 update slider size, only.
7053 (xm_scroll_callback): Set dragging member of the scroll bar.
7054 (xt_action_hook): Reset last_scroll_bar_part.
7055 (XTredeem_scroll_bar): Reset bar->dragging to nil.
7057 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
7058 window on newly created frames that don't have one.
7060 1998-11-23 Gerd Moellmann <gerd@gnu.org>
7062 * xdisp.c (restore_overlay_strings): Removed.
7063 (restore_dpvec): Removed.
7064 (init_from_display_pos): Inline both functions above.
7066 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
7067 (parse_image_spec): Handle it.
7068 (xbm_format): Use it.
7069 (xpm_format): Ditto.
7070 (pbm_format): Ditto.
7071 (jpeg_format): Ditto.
7072 (tiff_format): Ditto.
7073 (gif_format): Ditto.
7076 * xdisp.c (set_window_cursor): Removed.
7077 (redisplay_internal): Case cursor motion in cursor line of
7078 selected window; use set_cursor_from_row.
7080 1998-11-22 Gerd Moellmann <gerd@gnu.org>
7082 * widget.c (EmacsFrameSetCharSize): Take widget's border width
7085 1998-11-21 Gerd Moellmann <gerd@gnu.org>
7087 * xterm.c (expose_frame): Redraw menu bar window.
7089 * xdisp.c (display_menu_bar): Record hpos instead of x-position
7092 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
7093 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
7095 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
7096 to determine vertical_scroll_bar_extra.
7097 (EmacsFrameSetCharSize): Ditto.
7098 * xfns.c (x_figure_window_size): Ditto.
7100 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
7101 (x_draw_bitmap): Ditto.
7103 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
7104 * xfaces.c (realize_basic_faces): Realize it.
7106 1998-11-20 Gerd Moellmann <gerd@gnu.org>
7108 * xmenu.c (xmenu_show): Add workaround for remaining button grab
7109 under LessTif Use the widget of the frame as parent for the
7112 1998-11-19 Gerd Moellmann <gerd@gnu.org>
7114 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
7115 When EnterNotify, don't generate a mouse movement event if
7116 notification is from a busy-cursor child window.
7118 * xterm.h (struct x_output): Add busy_window, remove cursor.
7120 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
7121 Use a transparent window to display the busy-cursor.
7122 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
7124 1998-11-17 Gerd Moellmann <gerd@gnu.org>
7126 * xdisp.c (check_window_end): New, for debugging.
7127 (CHECK_WINDOW_END): New.
7128 (try_window_id): Use it.
7130 * xterm.c (process_expose_from_menu): Return int.
7132 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
7133 TOOLBAR_EVENT events in last_nonmenu_event.
7135 1998-11-16 Gerd Moellmann <gerd@gnu.org>
7137 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
7138 window end isn't reliable, so set window_end_valid to nil.
7139 (redisplay_internal): If overlay arrow has changed, set
7140 windows_or_buffers_changed to redisplay thoroughly.
7142 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
7145 * xfns.c (file_dialog_cb): New.
7146 (Fx_file_dialog): New.
7147 * fileio.c (Fread_file_name): Call it.
7149 * xrdb.c (x_load_resources): Add default resoures for file
7152 1998-11-14 Gerd Moellmann <gerd@gnu.org>
7154 * xterm.c (note_mouse_highlight): Don't highlight when popup
7157 * keyboard.c (timer_check): Inhibit busy cursor around calls to
7158 timer-event-handler. This busy cursor tends to be anoying if
7159 fontifying stealthily.
7161 * dispnew.c (direct_output_for_insert): Give up if current row
7162 contains trailing whitespace.
7164 1998-11-13 Gerd Moellmann <gerd@gnu.org>
7166 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
7168 * xdisp.c (handle_fontified_prop): New.
7169 (Vfontification_functions): New.
7170 (Qfontification_functions): New.
7171 (it_props): Add handle_fontified_prop.
7173 1998-11-12 Gerd Moellmann <gerd@gnu.org>
7175 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
7176 Otherwise, under LessTif, after the popup has gone, all button
7177 press events come in for the frame's widget, and release events
7178 come in for the edit_widget.
7179 * xterm.c (XTread_socket): Remove workaround for that problem.
7180 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
7181 XmScrollBarSetValues.
7182 (SET_SAVED_MENU_EVENT): Give it statement form.
7184 * xfaces.c (display_message): If waiting_for_input, don't display
7187 * window.c (scroll_command): If not acting on current_buffer,
7188 make redisplay consider all windows.
7190 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
7192 * xdisp.c (handle_glyph_prop): Set it->object for images to
7193 the object having the glyph property.
7195 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
7198 1998-11-11 Gerd Moellmann <gerd@gnu.org>
7200 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
7201 (x_term_init): Create the gray pixmap.
7202 (x_setup_relief_color): Use it.
7203 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
7204 internal border at the top of a frame.
7205 (x_init_glyph_string): Likewise.
7206 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
7208 (XTflash): Don't flash the toolbar window.
7210 * xterm.c (XTread_socket): Workaround for LessTif popup menus
7211 in case of ButtonPress events.
7213 1998-11-10 Gerd Moellmann <gerd@gnu.org>
7215 * xrdb.c (x_load_resources): Add grey background colors as
7216 defaults for menus, scroll bars, and dialogs.
7218 * insdel.c (prepare_to_modify_buffer): Move setting
7219 windows_or_buffers_changed from modify_region here.
7221 * xfns.c (Fx_show_tip): Inhibit redisplay.
7222 (Fx_hide_tip): Ditto.
7223 (Fx_image_header): New.
7225 1998-11-09 Gerd Moellmann <gerd@gnu.org>
7227 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
7228 when clearing current window matrices.
7230 1998-11-08 Gerd Moellmann <gerd@gnu.org>
7232 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
7233 position from a string position. Use the right end position
7234 if the property spans a whole overlay string.
7236 1998-11-07 Gerd Moellmann <gerd@gnu.org>
7238 * xmenu.c (menubar_selection_callback): Remove workaround for
7239 Lesstif not calling XmNpopdownCallback because it doesn't
7240 handle the case where users don't select any menu item.
7242 * insdel.c (modify_region): Set windows_or_buffers_changed.
7244 * buffer.c (set_buffer_internal): Don't set
7245 windows_or_buffers_changed.
7247 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
7249 * xmenu.c (menubar_selection_callback): Add workaround for
7250 Lesstif not calling XmNpopdownCallback.
7252 * xdisp.c (eval_mode_element): New.
7253 (eval_mode_handler): New.
7254 (display_mode_element): Use eval_mode_element.
7256 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
7257 Remove code looking at text props of default value.
7259 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
7261 1998-11-06 Gerd Moellmann <gerd@gnu.org>
7263 * xmenu.c (single_submenu): Set button_type of menu to
7265 (single_submenu): Likewise for panes and menu items.
7266 (set_frame_menubar): Set button_type of menu bar to none.
7267 (xmenu_show): Likewise.
7268 (single_submenu): Set widget values selected slot.
7269 (xmenu_show): Likewise.
7271 * xmenu.c (push_menu_item): Add parameters `type' and
7272 `selected'. Store it in menu_items.
7273 (MENU_ITEMS_ITEM_TYPE): New.
7274 (MENU_ITEMS_ITEM_SELECTED): New.
7275 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
7277 * xfns.c (clear_image_cache): Get the current time, before
7279 (cache_image): Set prev pointer of next image.
7280 (clear_image_cache): Clear current matrices if any image was
7283 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
7285 * xfns.c (x_set_cursor): New.
7286 (Fx_display_busy_cursor): New.
7287 (Fx_undisplay_busy_cursor): New.
7289 * xterm.h (struct x_output): Add busy_cursor.
7291 * xfns.c (Vx_busy_pointer_shape): New.
7292 (x_set_mouse_color): Create busy cursor.
7294 * process.c (wait_reading_process_input): Show and hide busy
7297 * keyboard.c (command_loop_1): Display busy cursor.
7299 * eval.c (Fsignal): Hide busy cursor.
7301 * buffer.c (set_buffer_internal): Don't set
7302 windows_or_buffers_changed.
7304 * xterm.c (redo_mouse_highlight): New.
7306 1998-11-04 Gerd Moellmann <gerd@gnu.org>
7308 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
7309 (x_build_heuritic_mask): New.
7310 (lookup_image): Call it.
7312 * xterm.c (note_toolbar_highlight): Always set up help_echo.
7313 (previous_help_echo): New.
7314 (XTread_socket): Generate help event with nil message when
7315 leaving a region with help-echo.
7316 (note_mouse_highlight): Handle `help-echo' over text.
7317 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
7319 (clear_mouse_face): Don't clear if tooltip is shown.
7320 (XTread_socket): Redo mouse-highlight after tooltip is gone.
7321 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
7323 * keyboard.c (Vshow_help_function): New.
7324 (read_char): Use it.
7326 1998-11-03 Gerd Moellmann <gerd@gnu.org>
7328 * xfns.c (x_create_tip_frame): New.
7332 * xterm.c (x_destroy_window): Handle case that we don't have
7335 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
7336 to full_width_p. Add internal_border_p.
7338 1998-11-02 Gerd Moellmann <gerd@gnu.org>
7340 * xterm.c (note_mode_line_highlight): Check the charpos of
7341 the glyph under the mouse pointer before accessing text
7342 properties at that position.
7344 1998-11-01 Gerd Moellmann <gerd@gnu.org>
7346 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
7348 * xdisp.c (auto-raise-toolbar-buttons): New.
7349 (build_desired_toolbar_string): Handle the flag.
7350 (toolbar-button-margin): New.
7351 (toolbar-button-relief): New.
7352 (build_desired_toolbar_string): Use margin and relief.
7354 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
7356 (note_mode_line_highlight): New.
7357 (note_mouse_highlight): Call it.
7359 1998-10-31 Gerd Moellmann <gerd@gnu.org>
7361 * s/freebsd.h (NARROWPROTO): New.
7363 * xdisp.c (display_string): New parameter face_string.
7364 (display_mode_element): When displaying a symbol with a string
7365 value, use text properties from the symbol's default value, maybe.
7367 * xrdb.c (x_load_resources): Add font defaults for menus and
7370 1998-10-30 Gerd Moellmann <gerd@gnu.org>
7372 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
7374 1998-10-29 Gerd Moellmann <gerd@gnu.org>
7376 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
7377 produced for characters with codes < 32 under certain
7380 * xdisp.c (redisplay_window): Handle values of PT in front
7381 of invisible, intangible text.
7382 (try_window_id): Set overlay_arrow_seen to zero before
7384 (display_mode_element): Assign to glyphs written for a mode
7385 line spec `%x' as object the Lisp format string, as position
7386 the position of the `%' in that string.
7387 (display_string): If displaying a C string, optionally get
7388 the face to use from a Lisp string.
7390 * xterm.c (expose_window_tree): Include mode line height.
7392 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
7394 1998-10-27 Gerd Moellmann <gerd@gnu.org>
7396 * xterm.c (note_mouse_highlight): Change mouse pointer shape
7399 1998-10-26 Gerd Moellmann <gerd@gnu.org>
7401 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
7403 * xdisp.c (redisplay_window): If mode line height has changed,
7404 arrange for a thorough immediate redisplay using the correct mode
7406 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
7408 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
7409 (CURRENT_MODE_LINE_HEIGHT): New.
7410 (DESIRED_MODE_LINE_HEIGHT): New.
7412 * keyboard.c (make_lispy_event): Add string and string position
7413 info to mouse-click events.
7414 (read_key_sequence): Handle `local-map' property of mode line
7417 * keyboard.h (POSN_STRING): New.
7419 1998-10-25 Gerd Moellmann <gerd@gnu.org>
7421 * dispnew.c (mode_line_string): Mew.
7423 * xterm.c (xt_action_hook): New.
7424 (x_create_toolkit_scroll_bar): Add action hook.
7425 (xm_scroll_callback): Implement dragging.
7427 * keyboard.c (Qend_scroll): New.
7428 (scroll_bar_parts): Add it.
7430 * termhooks.h (scroll_bar_end_scroll): New.
7432 * xterm.c (XTread_socket): Bug fix.
7434 1998-10-24 Gerd Moellmann <gerd@gnu.org>
7436 * xdisp.c (redisplay_window): Finish scroll bars after
7437 redisplaying toolbar.
7439 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
7440 (syms_of_keyboard): Add Qbottom.
7442 * termhooks.h (scroll_bar_to_top): New.
7443 (scroll_bar_to_bottom): New.
7445 * xdisp.c (redisplay_window): Always resize toolbar window if
7446 auto_resize_toolbar_p is non-zero.
7447 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
7449 (window_box_height): New.
7450 (window_box_width): New.
7451 (window_box_left): New.
7452 (window_box_right): New.
7453 (window_box_edges): New.
7455 1998-10-23 Gerd Moellmann <gerd@gnu.org>
7457 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
7458 XawScrollbarSetThumb in FreeBSD.
7459 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
7462 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
7465 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
7466 (x_term_init): Initialize it.
7468 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
7470 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
7473 1998-10-22 Gerd Moellmann <gerd@gnu.org>
7475 * keyboard.c (make_lispy_event): Handle scroll_bar_click
7476 differently when using toolkit scroll bars.
7478 * xterm.c (x_send_scroll_bar_event): New.
7479 (x_scroll_bar_to_input_event): New.
7480 (xaw3d_scroll_callback): New.
7481 (xaw3d_jump_callback): New.
7482 (xm_scroll_callback): New.
7483 (x_toolkit_scroll_p): New.
7484 (XTread_socket): Handle scroll bar client message.
7485 (x_term_init): Initialize Xatom_Scrollbar.
7486 (x_scroll_bar_create): Set cursor.
7487 (xm_scroll_callback):
7488 (x_create_toolkit_scroll_bar): New.
7489 (x_set_toolkit_scroll_bar_thumb): New.
7490 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
7491 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
7493 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
7495 1998-10-21 Gerd Moellmann <gerd@gnu.org>
7497 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
7498 (XTread_socket): Don't handle mouse button events for scroll bars
7499 if using toolkit scroll bars.
7500 (XTset_vertical_scroll_bar): Set thumb size and position for
7503 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
7505 * xterm.c (XTread_socket): Dispatch expose event to widget
7506 if using toolkit scroll bars.
7507 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
7508 (x_scroll_bar_create): Create and show a scroll bar widget
7509 if using toolkit scroll bars.
7510 (x_scroll_bar_move): Handle tookit scroll bars.
7512 * Makefile.in (LIBW): Use Xaw3d if present.
7514 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
7517 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
7520 * xterm.c (XTset_vertical_scroll_bar): Correct position of
7521 right vertical scroll bar.
7523 1998-10-20 Gerd Moellmann <gerd@gnu.org>
7525 * xfns.c (xpm_load): Support reading XPM images from string
7526 buffers containing data in the same format as an XPM file.
7527 Support `:color-symbols'.
7528 (xpm_format): Add `:data'.
7529 (xpm_keyword_index): Add XPM_DATA.
7530 (syms_of_xfns): Add `:color-symbols'.
7531 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
7532 (xpm_valid_color_symbols_p): New.
7533 (xpm_image_p): Call it.
7535 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
7536 attribute to the image if item is not enabled.
7538 * xfns.c (x_laplace): New.
7539 (x_laplace_read_row): New.
7540 (x_laplace_write_row): New.
7541 (lookup_image): Handle common image attributes here. New
7542 attribute `:algorithm'.
7544 * xfaces.c (clear_face_cache): Call clear_image_cache.
7546 * xterm.c (x_inverted_image_mask): Removed.
7547 (x_draw_image_foreground_1): New.
7548 (x_draw_image_glyph_string): Draw images with mask to a temporary
7549 pixmap to reduce flickering.
7551 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
7552 (display_toolbar_line): Remove parameter `margin'.
7554 1998-10-19 Gerd Moellmann <gerd@gnu.org>
7556 * xdisp.c (toolbar_lines_needed): New.
7557 (auto-resize-toolbars): New.
7559 * xfns.c (cache_image): Correct call to xrealloc.
7561 * dispnew.c (Fset_toolbar_height): Removed.
7563 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
7564 FRAME_MENU_BAR_LINES.
7566 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
7567 instead of FRAME_MENU_BAR_LINES.
7568 (check_frame_size): Ditto.
7570 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
7571 instead of FRAME_MENU_BAR_LINES.
7572 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
7573 (build_frame_matrix): Ditto.
7574 (change_frame_size_1): Ditto.
7576 * frame.h (FRAME_TOOLBAR_LINES): New.
7577 (FRAME_TOP_MARGIN): New.
7579 * window.c (struct save_window_data): Add frame_toolbar_lines.
7580 (Fset_window_configuration): Handle toolbar lines.
7581 (Fcurrent_window_configuration): Save toolbar lines.
7583 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
7585 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
7587 * frame.h (struct frame): Rename top_margin to toolbar_lines.
7589 * xfns.c (x_frame_parms): Add `toolbar-lines'.
7590 (x_set_toolbar_lines): New.
7592 * keyboard.c (cmd_error_internal): Bug fix.
7594 * xterm.c: Remove double include of syssignal.h.
7596 1998-10-18 Gerd Moellmann <gerd@gnu.org>
7598 * xterm.c (x_toolbar_item): New.
7599 (x_handle_toolbar_click): Use it.
7600 (note_toolbar_highlight): Use it.
7602 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
7603 and toolbar_items_vectors.
7605 * xterm.c (help_echo): New.
7606 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
7607 (x_set_glyph_string_gc): Handle them.
7608 (x_after_update_window_line): Don't do anything in pseudo-windows.
7609 (x_produce_image_glyph): Take image margin and face relief into
7611 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
7612 (x_draw_glyph_string_background): Optimize case when face has
7614 (x_setup_relief_color): Take frame instead of glyph string
7616 (x_draw_relief_rect): New.
7617 (x_draw_glyph_string_relief): Call it.
7618 (x_draw_image_glyph_string_foreground): Handle margin and image
7620 (x_draw_image_glyph_string_background): Ditto.
7621 (expose_frame): Redraw toolbar window.
7622 (expose_window): Don't draw cursor for pseudo-windows.
7623 (x_y_to_hpos_vpos): Handle pseudo-windows.
7624 (frame_to_window_pixel_xy): New.
7625 (note_mouse_highlight): Call note_toolbar_highlight.
7626 (x_handle_toolbar_click): New.
7627 (note_toolbar_highlight): New.
7628 (show_mouse_face): Change int parameter `hl' to parameter of
7629 type enum draw_glyphs_face. Handle image highlighting.
7630 (XTread_socket): Return a HELP_EVENT input event if help_echo is
7631 non-nil. Use x_handle_toolbar_click.
7633 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
7635 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
7637 (parse_image_spec): Handle them.
7638 (image_spec_value): Additional parameter found.
7639 (free_image): Remove image from the vector `images' of the
7641 (clear_image_cache): Additional parameter force_p.
7642 (Fclear_image_cache): New.
7643 (x_find_image_file): New.
7644 (xbm_load): Handle `:margin' and `:relief'. Use
7646 (xpm_load): Likewise.
7647 (pbm_load): Likewise.
7648 (jpeg_load): Likewise.
7649 (tiff_load): Likewise.
7650 (gif_load): Likewise.
7652 * keyboard.c (Qhelp_echo): New symbol.
7653 (read_char): Handle `toolbar' and `help_echo' events.
7654 (kbd_buffer_get_event): Handle HELP_ECHO input event.
7655 (make_lispy_event): Handle TOOLBAR_EVENT.
7656 (toolbar_items): New.
7657 (process_toolbar_item): New.
7659 (init_toolbar_items): New.
7660 (append_toolbar_item): New.
7661 (read_char_x_menu_prompt): Handle `toolbar' event.
7662 (read_key_sequence): Ditto.
7664 * xfaces.c (Qtoolbar): New.
7665 (realize_basic_faces): Realize `toolbar' face.
7666 (face_at_string_position): Remove parameter modeline_p, add
7669 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
7672 1998-10-17 Gerd Moellmann <gerd@gnu.org>
7674 * xdisp.c (init_iterator): Replace parameter modeline_p with
7676 (next_element_from_string): Call get_next_display_element
7677 recursively after handling text properties.
7678 (prepare_menu_bars): Call update_toolbar.
7679 (update_toolbar): New.
7680 (build_desired_toolbar_string): New.
7681 (display_toolbar_line): New.
7682 (redisplay_toolbar): New.
7683 (toolbar_item_info): New.
7684 (redisplay_window): Call redisplay_toolbar.
7685 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
7687 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
7689 (clear_desired_matrices): Ditto.
7690 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
7691 (free_glyphs): Free matrices of toolbar window.
7692 (update_frame): Update toolbar window.
7693 (change_frame_size_1): Take toolbar into account.
7694 (Fset_toolbar_height): New.
7696 * dispextern.h (struct it): Remove member modeline_p, add
7698 (struct image): Add members relief and margin.
7699 (IMAGE_ASCENT): Include margin in height.
7701 1998-10-14 Gerd Moellmann <gerd@gnu.org>
7703 * xfns.c (Fclear_image_cache): New.
7705 * xfaces.c (realize_basic_faces): Realize toolbar face.
7706 (face_at_string_position): Remove parameter modeline_p, add
7709 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
7711 1998-10-13 Gerd Moellmann <gerd@gnu.org>
7713 * keyboard.c (syms_of_keyboard): Intern `:help'.
7715 1998-10-12 Gerd Moellmann <gerd@gnu.org>
7717 * xterm.c (note_toolbar_highlight): New.
7718 (note_mouse_highlight): Call it.
7720 * window.c (window_from_coordinates): Additional parameter toolbar_p.
7721 (coordinates_in_window): Handle toolbar window.
7723 * keyboard.c (toolbar_items): New.
7724 (process_toolbar_item): New.
7725 (parse_toolbar_item): New.
7726 (init_toolbar_items): New.
7727 (append_toolbar_item): New.
7729 * dispextern.h (enum toolbar_item_idx): New.
7730 (enum toolbar_item_image): New.
7732 * frame.h (struct frame): Add toolbar-related members.
7734 * xfaces.c (face_at_string_position): Remove assertion that
7735 current_buffer == window's buffer. This is not the case when
7736 called for the toolbar window.
7738 * frame.c (make_frame): Initialize toolbar members.
7740 * alloc.c (mark_object): Mark toolbar data of frames.
7742 * frame.h (struct frame): Add toolbar-related members
7743 toolbar_window, desired_toolbar_items, current_toolbar_items,
7744 desired_toolbar_string, current_toolbar_string,
7745 n_desired_toolbar_items, n_current_toolbar_items. Add
7748 * xterm.c (x_after_update_window_line): Don't draw bitmap
7749 areas for pseudo-windows.
7750 (expose_frame): Handle toolbar window.
7751 (expose_window): Don't do cursor stuff for pseudo-windows.
7753 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
7755 1998-10-11 Gerd Moellmann <gerd@gnu.org>
7757 * frame.c (make_frame): Initialize toolbar_window.
7759 * alloc.c (mark_object): Make the toolbar window.
7761 * dispnew.c (update_frame): Update frame's toolbar_window.
7762 (clear_current_matrices): Likewise.
7763 (clear_desired_matrices): Likewise.
7764 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
7765 (free_glyphs): Free the toolbar window and its matrices.
7767 * frame.h (struct frame): Add toolbar_window.
7769 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
7772 1998-10-10 Gerd Moellmann <gerd@gnu.org>
7774 * dispnew.c (buffer_posn_from_coords): Don't screw up if
7775 window start is not in the range BEGV..ZV.
7777 1998-10-09 Gerd Moellmann <gerd@gnu.org>
7779 * xdisp.c (try_scrolling): Experimentally handle the case
7780 that scroll-preserve-screen-position is set to `always'.
7782 * window.c (Vscroll_preserve_screen_position): Replacement for
7783 scroll_preserve_screen_position.
7785 1998-10-08 Gerd Moellmann <gerd@gnu.org>
7787 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
7791 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
7793 1998-10-06 Gerd Moellmann <gerd@gnu.org>
7795 * minibuf.c (Fminibuffer_complete_word): Fix computation of
7796 i_byte when prompts are inserted into minibuffers.
7798 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
7799 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
7800 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
7802 1998-10-04 Gerd Moellmann <gerd@gnu.org>
7804 * xdisp.c (make_cursor_line_fully_visible): New.
7805 (try_scrolling): New.
7806 (redisplay_window): Move scrolling code to try_scrolling.
7807 (make_cursor_line_fully_visible): Handle case of window too small
7808 to show a single line.
7809 (redisplay_window): Case forced window start---use
7810 make_cursor_line_fully_visible.
7811 (redisplay_window): Case cursor movement via current matrix.
7812 If ending up on a partially visible line, make it fully visible
7813 instead of recentering.
7814 (try_scrolling): Additional parameter scroll_smoothly.
7816 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
7818 1998-09-28 Gerd Moellmann <gerd@gnu.org>
7820 * window.c (window_scroll_pixel_based): Bug fix: vpos used
7821 instead of y-position for scroll-preserved-screen-position.
7823 1998-09-07 Gerd Moellmann <gerd@gnu.org>
7825 * dispnew.c (update_frame_line): If current row is not enabled,
7826 write the whole line.
7828 1998-09-06 Gerd Moellmann <gerd@gnu.org>
7830 * lisp.h (HAVE_FACES): Removed.
7832 * dispextern.h (HAVE_FACES): Removed.
7834 * config.in (HAVE_FACES): Removed.
7836 * dispnew.c (HAVE_FACES): Removed.
7838 * xdisp.c (HAVE_FACES): Removed.
7840 * xfaces.c (HAVE_FACES): Removed.
7842 1998-09-05 Gerd Moellmann <gerd@gnu.org>
7844 * xdisp.c (init_iterator): If face_change_count is non-zero,
7845 free realized faces.
7847 * xfaces.c (free_all_realized_faces): Make it externally visible.
7848 (Finternal_set_lisp_face_attribute): Increment
7849 windows_or_buffers_changed.
7851 * dispnew.c (direct_output_for_insert): Give up if
7852 face_change_count is non-zero.
7853 (direct_output_forward_char): Ditto.
7855 * xfaces.c (face_change_count): New.
7857 1998-09-04 Gerd Moellmann <gerd@gnu.org>
7859 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
7862 1998-09-03 Gerd Moellmann <gerd@gnu.org>
7864 * term.c (Ftty_display_color_p): New.
7866 1998-09-02 Gerd Moellmann <gerd@gnu.org>
7868 * xfaces.c (Ftty_defined_colors): New.
7870 * xterm.c (x_produce_glyphs): Fix computation of
7871 contains_overlapping_glyphs_p for ASCII.
7873 * dispnew.c (Fshow_cursor): Don't change cursor state while
7875 (direct_output_for_insert): If a glyph with lbearing or rbearing
7876 is among the new glyphs, set row flag contains_overlapping_glyph_p.
7878 1998-09-01 Gerd Moellmann <gerd@gnu.org>
7880 * term.c (OUTPUT_IF): Make replacement text have statement form.
7881 (OUTPUT1_IF): Ditto.
7882 (TS_italic_mode, TS_end_italic_mode): Removed.
7883 (TS_bold_mode): Removed.
7884 (TS_underscore_mode, TS_end_underscore_mode): Removed.
7885 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
7886 (TS_enter_reverse_mode): New.
7887 (TS_enter_underline_mode, TS_exit_underline_mode): New.
7888 (TN_magic_cookie_glitch_ul): New.
7889 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
7890 (TS_exit_attribute_mode): New.
7891 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
7892 (TS_set_foreground, TS_set_background): New.
7893 (reset_terminal_modes): Switch colors back to default.
7894 (write_glyphs): Turn face on before writing text, turn it off
7896 (insert_glyphs): Ditto.
7897 (term_init): Initialize new terminal capability variables.
7898 (turn_on_face): Turn a face on.
7899 (turn_off_face): Turn a face off.
7901 * lisp.h (MAKE_GLYPH): Remove test for frame type.
7902 (GLYPH_CHAR): Ditto.
7903 (GLYPH_FACE): Ditto.
7905 * xfaces.c (Vface_tty_color_alist): New.
7906 (face-register-tty-color): New.
7907 (face-clear-tty-colors): New.
7909 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
7910 (struct it): Remove member faces_p since we now always have faces.
7912 1998-08-31 Gerd Moellmann <gerd@gnu.org>
7914 * dispextern.h (struct face): Add tty appearance flags.
7916 * xdisp.c (init_iterator): Always handle faces.
7917 (extend_face_to_end_of_line): Handle tty frames.
7919 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
7922 1998-08-30 Gerd Moellmann <gerd@gnu.org>
7924 * xfaces.c (realize_default_face): Use empty strings to indicate
7925 that the face should use the default foreground/background
7926 color of the terminal. Fill font-related attributes with
7927 appropriate values for tty frames.
7929 * emacs.c (main): Call syms_of_xfaces before init_window_once.
7931 * xfaces.c (realize_default_face): If face `default' is not
7932 yet known, create it.
7934 * frame.c (make_terminal_frame): Call init_frame_faces
7937 * xfaces.c (init_frame_faces): Make it work for tty frames.
7938 (free_frame_faces): Ditto.
7939 (clear_face_cache): Ditto.
7940 (recompute_basic_faces): Ditto.
7941 (Fframe_face_alist): Ditto.
7942 (free_realized_face): Ditto.
7943 (prepare_face_for_display): Ditto.
7944 (clear_face_gcs): Ditto.
7945 (lookup_face): Ditto.
7946 (smaller_face): Ditto.
7947 (realize_default_face): Ditto.
7948 (realize_face): Ditto.
7949 (realize_face): Dispatch to functions depending on the frame type.
7950 (realize_x_face): X way of realizing faces.
7951 (realize_tty_face): TTY way of realizing faces.
7953 1998-08-29 Gerd Moellmann <gerd@gnu.org>
7955 * xfaces.c (realize_face): Remove parameter unibyte_registry,
7957 (lookup_face): Remove local variable unibyte_registry.
7959 1998-08-22 Gerd Moellmann <gerd@gnu.org>
7961 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
7964 * xdisp.c (face_before_or_after_it_pos): Fix computation
7967 * editfns.c (make_buffer_string_both): If prompt in buffer,
7968 prevent start > end.
7970 * indent.c (Fvertical_motion): Set current_buffer to window's
7971 buffer if it isn't already.
7973 1998-08-21 Gerd Moellmann <gerd@gnu.org>
7975 * dispextern.h (GLYPH_DEBUG): Use default 0.
7977 * xdisp.c (it_props): New member `smaller'.
7978 (init_iterator): Initialize it.
7980 (push_it): Save value of `smaller' value on the stack.
7981 (pop_it): Restore `smaller' from the stack.
7982 (handle_smaller_prop): New.
7983 (handle_face_prop): Use `smaller' text property to select a
7986 * dispextern.h (SMALLER_PROP_IDX): New.
7987 (struct it): Add member `smaller'.
7989 * xfaces.c (smaller_face): New.
7991 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
7993 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
7994 total pixel width of window differently.
7996 * xdisp.c (init_iterator): Compute width of mode line differently.
7998 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
8001 * window.c (Fsplit_window): Include width of bitmap areas in
8003 (window_internal_width): Subtract width of bitmap areas from
8006 1998-08-18 Gerd Moellmann <gerd@gnu.org>
8008 * xdisp.c: Functions reordered for better readability.
8010 * dispnew.c (update_text_area): Handle glyphs with arbitrary
8012 (update_window_tree): Parameter no_scrolling_p removed.
8013 (update_single_window): Ditto.
8015 * xterm.c (x_get_char_font_and_encoding): Renamed to
8016 x_get_char_face_and_encoding.
8018 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
8019 if end of current row reached.
8021 * xterm.c (x_get_glyph_face_and_encoding): New.
8022 (x_get_glyph_overhangs): Call it.
8024 * xdisp.c (Qshow_trailing_whitespace): New.
8025 (Qtrailing_whitespace): New.
8026 (enum prop_handled): New.
8027 (struct props, it_props): New.
8028 (next_overlay_change): New. Works like Fnext_overlay_change
8029 but doesn't use xmalloc.
8030 (handle_stop): Restructured.
8031 (face_before_or_after_it_pos): Case iteration over a string: fix
8032 handling of face before current position.
8034 1998-08-16 Gerd Moellmann <gerd@gnu.org>
8036 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
8037 reallocation matrix if fonts_changed_p.
8038 (update_text_area): Handle glyphs with lbearing.
8040 1998-08-14 Gerd Moellmann <gerd@gnu.org>
8042 * xdisp.c (struct props): New.
8044 (compute_prop_info): New.
8047 * textprop.c (validate_interval_range): Make it externally
8050 * dispnew.c (direct_output_for_insert): Remove calls
8051 to compute_stop_pos.
8053 * dispextern.h (struct it): Remove check_charpos,
8054 next_overlay_pos. Add what_changes.
8056 1998-08-10 Gerd Moellmann <gerd@gnu.org>
8058 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
8060 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
8061 face_default_registry instead.
8063 * syntax.c (scan_sexps_forward): Set up syntax table before
8064 jumping to initial state label.
8066 1998-08-09 Gerd Moellmann <gerd@gnu.org>
8068 * dispnew.c (check_matrix_invariants): Handle case of row end pos
8071 1998-08-08 Gerd Moellmann <gerd@gnu.org>
8073 * xdisp.c (redisplay_window): Case cursor movement---if cursor
8074 ends up in partially visible row, try to scroll. Case forced
8075 window start---handle windows not tall enough to show a single
8078 * window.h (struct window): Member dy renamed vscroll.
8080 * xterm.c (x_list_fonts): Re-activate suppression of scalable
8082 (x_draw_stretch_glyph_string): Set clipping if using GC that
8085 * xdisp.c (redisplay_window): Case forced window start -
8086 don't let cursor end on partially visible row. Use desired
8087 matrix to find a suitable PT if it doesn't appear.
8088 (decode_mode_spec): Merged with 20.2.97.
8089 (try_window_reusing_current_matrix): Give up if old or
8090 new display is vscrolled.
8091 (redisplay_window): Reset vscrolling if forced window start,
8094 1998-08-06 Gerd Moellmann <gerd@gnu.org>
8096 * xfaces.c (realize_default_face): Use the fontset name instead of
8097 the alias for the family attribute of the default face because we
8098 can't easily determine a good alias from fontset-alias-alist.
8099 (face_fontset): Use Fquery_fontset to find the fontset.
8100 (font_list): Additional pattern parameter.
8101 (try_font_list): Ditto.
8102 (set_lface_from_font_name): Set face family from font foundry
8104 (font_list): If family contains a hyphen, build pattern differently.
8106 1998-08-05 Gerd Moellmann <gerd@gnu.org>
8108 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
8109 changed instead of setting the frame garbaged.
8111 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
8112 all attribute values. This is wrong if values are unspecified,
8115 * xdisp.c (try_window_id): Give up if window start changed.
8117 * xfaces.c (make_realized_face): Store registry as Lisp object.
8118 (load_face_font_or_fontset): Compute registry of a face
8119 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
8122 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
8125 * alloc.c (mark_face_cache): Mark the registry member of faces.
8127 * dispextern.h (struct face): Make registry a Lisp string.
8129 1998-08-04 Gerd Moellmann <gerd@gnu.org>
8131 * xterm.c (x_get_char_font_and_encoding): Additional parameter
8132 multibyte_p. Handle unibyte text.
8133 (x_append_glyph): Set the multibyte_p flag of glyphs.
8134 (x_produce_image_glyph): Ditto.
8135 (x_append_stretch_glyph): Ditto.
8136 (x_produce_glyphs): Handle unibyte text like ASCII.
8138 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
8140 (pop_it): Restore it.
8141 (face_before_or_after_it_pos): Handle the case that the string or
8143 (get_overlay_strings): Set the multibyte flag of the iterator if
8144 the new overlay string is multibyte.
8145 (get_glyph_property): Likewise.
8146 (get_next_display_element): Don't check for charset changes in
8148 (append_space): Compute face differently for unibyte text.
8149 (extend_face_to_end_of_line): Don't return quickly if face has
8152 * xfaces.c (load_face_font_or_fontset): Store registry and
8153 encoding of the font in the registry member of the face.
8154 (make_realized_face): Additional parameter `registry'.
8155 (free_realized_face): Free the registry of a realized face.
8156 (face_suitable_for_charset_p): Function form of the macro
8157 with the same name in uppercase.
8158 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
8159 (choose_face_font): New parameter unibyte_registry.
8160 (choose_face_fontset_font): Ditto.
8161 (realize_default_face): Remember the registry and encoding of
8162 the specified frame font in Vx_unibyte_registry_and_encoding.
8163 (face_at_buffer_position): Handle unibyte.
8164 (face_at_string_position): Likewise.
8165 (realize_face): New parameter unibyte_registry.
8166 (compute_char_face): Handle the unibyte case.
8168 * dispextern.h (struct glyph): Add bit multibyte_p.
8169 (struct face): New member registry holding the registry and
8170 encoding of the X font of the face.
8171 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
8172 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
8173 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
8175 (struct iterator_stack_entry): Add multibyte_p.
8177 * xdisp.c (string_pos): Use string_char_to_byte.
8178 (char_charset): Removed.
8180 1998-08-03 Gerd Moellmann <gerd@gnu.org>
8182 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
8183 rectangle for a block cursor over an image without a mask.
8184 (x_stretch_block_cursor): Added. Non-zero means don't draw
8185 a block cursor over a stretch as wide as that stretch.
8186 (x_draw_stretch_glyph_string): Use it.
8187 (x_draw_hollow_cursor): Ditto.
8189 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
8190 (read_minibuf): Add front-sticky text property for prompt.
8192 * xdisp.c (char_charset): Return charset of a character,
8193 depending on whether or not multi-byte characters are enabled.
8195 * xfaces.c (Fset_face_charset_registry): Removed.
8196 (x_charset_registry): Determine registry from charset plist.
8198 1998-08-02 Gerd Moellmann <gerd@gnu.org>
8200 * xdisp.c (get_next_display_element): Don't check for charset
8201 changes if multi-byte characters are not enabled.
8203 * xdisp.c (echo_area_display): Use the flush function from the
8204 redisplay interface.
8205 * keyboard.c (detect_input_pending_run_timers): Likewise.
8207 * dispextern.h (produce_*glyphs_hook): Removed.
8208 * term.c (produce_*glyphs): Ditto.
8209 (cursor_to): Remove pixel position parameters.
8211 * dispnew.c: Remove hooks for window-based redisplay, introduce
8212 a redisplay interface structure.
8214 * xterm.c (x_per_char_metric): Return default char metrics if per
8215 char metric exists but contains a zero width. Adobe Courier seems
8216 to contain such characters.
8218 * xdisp.c (compute_line_metrics): Compute the width of rows
8219 without stopping at glyphs with zero width.
8221 1998-08-01 Gerd Moellmann <gerd@gnu.org>
8223 * xdisp.c (display_mode_line): If nothing was displayed at all,
8225 (hscroll_window_tree): Don't subtract 1 from target point if equal
8226 to ZV and window is not the selected window.
8228 * dispnew.c (check_matrix_invariants): Remove check for window
8229 start at BEGV or after newline. This happens in rare cases
8232 1998-07-31 Gerd Moellmann <gerd@gnu.org>
8234 * xfaces.c (x_charset_registry): Use STRING_BYTES.
8235 (syms_of_xfaces): Add Vface_default_registry.
8236 (x_charset_registry): Use it.
8238 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
8239 (redisplay_window): Use it.
8241 * dispnew.c (update_text_area): Handle lbearing of deleted text
8242 by backing up one character.
8244 1998-07-30 Gerd Moellmann <gerd@gnu.org>
8246 * dispnew.c (adjust_glyph_matrix): Use a different check to
8247 decide to do nothing.
8249 * xfaces.c (face_at_string_position): Additional parameter
8250 mode_line_p. If non-zero, merge with the mode line face
8251 instead of the default face.
8252 * dispextern.h (struct it): Add mode_line_p.
8253 * xdisp.c (init_iterator): Set it.
8254 (compute_face_in_string): Use it.
8255 (face_before_or_after_it_pos): Handle strings.
8256 (get_next_display_element): Don't look for relief end in C strings.
8257 (next_element_from_string): Deliver string position instead of
8260 * xterm.c (x_flush): Flush X output buffer.
8263 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
8264 Allow strings as face names.
8266 * xfns.c (forall_images_in_image_cache): Check that frame is
8269 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
8270 it's also called from x_destroy_window. Since this function is
8271 called from X, freeing stuff allocated with xmalloc is dangerous
8274 * xfaces.c (free_realized_faces): Don't clear current matrices
8275 of a frame being destroyed.
8277 * frame.c (make_frame): Call set_window_buffer instead of
8280 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
8281 with an additional argument specifying whether or not hooks may
8283 (Fset_window_buffer): Call it.
8285 * dispnew.c (clear_desired_matrices): Check that frame has
8286 a valid root window before clearing matrices in the window tree.
8287 (clear_current_matrices): Ditto.
8288 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
8289 vchild are valid windows if not nil.
8291 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
8293 (Finternal_set_lisp_face_attribute): Ditto.
8294 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8295 (Finternal_get_lisp_face_attribute): Ditto.
8296 (Finternal_lisp_face_attribute_values): Ditto.
8297 (syms_of_xfaces): Define the symbol `:reverse-video'.
8299 * xdisp.c (get_glyph_property): Renamed from
8300 fill_iterator_from_glyph_property.
8301 (next_element_from_buffer): Handle case that no `glyph' property
8302 was found correctly.
8303 (display_line): Extend face to end of line only if we have faces.
8305 1998-07-29 Gerd Moellmann <gerd@gnu.org>
8307 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
8308 additional window argument.
8310 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
8311 set_iterator_to_previous_visible_line_start.
8312 (reseat_at_next_visible_line_start): Likewise.
8313 (compute_stop_pos): Renamed from set_iterator_stop_pos.
8314 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
8315 (compute_face_in_buffer): Renamed from
8316 compute_face_at_iterator_position.
8317 (compute_face_in_string): Renamed from
8318 compute_face_at_iterator_string_position.
8319 (get_space_width): Renamed from get_iterator_space_width.
8320 (next_overlay_string): Renamed from
8321 set_iterator_to_next_overlay_string.
8322 (get_overlay_strings): Renamed from
8323 get_overlay_strings_at_iterator_position.
8324 (restore_overlay_strings): Renamed from
8325 setup_overlay_strings_from_glyph_pos.
8326 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
8327 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
8328 (init_to_row_start): Renamed from init_iterator_to_row_start.
8329 (init_to_row_end): Formerly init_iterator_to_next_row_start.
8331 * xterm.c: Merge with 20.2.97.
8332 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
8334 * dispextern.h (struct glyph): Replace text_pos position with
8337 * xdisp.c (this_line_start_pos): Use struct text_pos.
8338 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
8339 (enum move_it_result): Renamed from move_iterator_result.
8340 (string_pos_nchars_ahead): Compute text_pos in a string from a
8341 known text_pos plus a character delta.
8342 (string_pos): Compute text_pos in string from charpos.
8343 (c_string_pos): Likewise for a C string.
8344 (number_of_chars): Return number of characters in a possibly
8345 multi-byte C string.
8346 (check_it): Renamed from check_iterator. Check that charpos and
8347 bytepos are in sync.
8348 (push_it): Renamed from save_iterator_settings.
8349 (pop_it): Renamed from restore_iterator_settings.
8350 (move_it_.*): Renamed from move_iterator_.*.
8351 (charset_at_position): Take charpos/bytepos into account.
8352 (back_to_previous_line_start): Set iterator to previous line start.
8353 (forward_to_next_line_start): Set iterator to next line start.
8354 (back_to_previous_visible_line_start): Renamed from
8355 move_iterator_previous_visible_line_start.
8356 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
8357 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
8358 Handle charpos/bytepos.
8359 (compute_face_at_iterator_position): Handle charpos/bytepos.
8360 (compute_face_at_iterator_string_position): Likewise.
8361 (get_iterator_space_width): Likewise.
8362 (load_overlay_strings): Likewise.
8363 (get_overlay_strings_at_iterator_position): Likewise.
8364 (reseat_iterator): Take a text_pos position argument.
8365 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
8367 (init_iterator): Take additional bytepos parameter.
8368 (reseat_iterator_to_string): Handle charpos/bytepos.
8369 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
8370 (next_element_from_string): Handle charpos/bytepos.
8371 (next_element_from_c_string): Likewise.
8372 (fill_iterator_from_glyph_property): Likewise.
8373 (next_element_from_buffer): Likewise.
8374 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
8375 (move_iterator_in_display_line_to): Handle charpos/bytepos.
8376 (move_it_to): Likewise.
8377 (move_it_vertically_backward): Likewise.
8378 (move_it_vertically): Likewise.
8379 (move_it_by_lines): Likewise.
8380 (hscroll_window_tree): Likewise.
8381 (redisplay_internal): Likewise.
8382 (set_cursor_from_row): Likewise.
8383 (redisplay_window): Likewise.
8384 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
8385 (try_window_reusing_current_matrix): Handle charpos/bytepos.
8386 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
8387 (try_window_id): Handle charpos/bytepos.
8388 (Ftrace_redisplay_toggle): Return Qnil.
8389 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
8390 (insert_left_trunc_glyphs): Likewise.
8392 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
8394 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
8395 (increment_glyph_row_buffer_positions): Ditto.
8396 (copy_glyph_row_contents): Ditto.
8397 (check_matrix_invariants): Add additional checks for charpos/
8398 bytepos consistency.
8399 (direct_output_for_insert): Changed for charpos/bytepos.
8400 (buffer_posn_from_coords): Likewise. Put code dealing with
8401 `direction-reversed' in #if 0.
8403 * xterm.h: Merge with 20.2.97.
8405 * frame.h: Merge with 20.2.97.
8407 * window.h: Merge with 20.2.97. Add window_end_bytepos.
8409 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
8411 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
8412 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
8413 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
8414 (struct it): Various members renamed from .*pos to .*charpos.
8415 (IT_CHARPOS): Access current buffer character position of an
8417 (IT_BYTEPOS): Access current buffer byte position of an iterator.
8418 (IT_STRING_CHARPOS): Access current string character position of
8420 (IT_STRING_BYTEPOS): Access current string byte position of
8422 (globally): Add function prototypes from 20.2.97.
8424 * everywhere: Use P_ instead of PROTO for function prototypes
8425 because everyone else seems to use P_.
8427 * dispextern.h (struct text_pos): Structure describing a charpos/
8428 bytepos position in text.
8429 (BYTEPOS): Access the byte position part of a text_pos.
8430 (CHARPOS): Likewise for the character position.
8431 (SET_TEXT_POS): Set a text_pos from a character and byte position.
8432 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
8433 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
8434 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
8435 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
8436 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
8437 for buffer and string positions.
8438 (struct glyph): Use text_pos.
8439 (struct it): Renamed from display_iterator. Use text_pos.
8441 1998-07-23 Gerd Moellmann <gerd@gnu.org>
8443 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
8446 1998-07-21 Gerd Moellmann <gerd@gnu.org>
8448 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
8449 * xterm.c (x_draw_row_bitmaps): Use it.
8450 * dispnew.c (row_equal_p): Ditto.
8451 (update_window_line): Ditto.
8453 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
8456 * dispextern.h (struct image): Removed member loading_failed_p.
8457 It's probably better to have the chance to try to load an image
8460 1998-07-20 Gerd Moellmann <gerd@gnu.org>
8462 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
8463 at ZV if `indicate-zv-lines' is non-nil.
8464 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
8466 * dispnew.c (row_equal_p): Compare displays_text_p and
8467 ends_at_zv_p flags of rows.
8468 (update_window_line): Ditto.
8470 * buffer.h (struct buffer): New member indicate_zv_lines.
8472 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
8473 (init_buffer_once): New variable `default-indicate-zv-lines'.
8474 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
8476 * xdisp.c (redisplay_window): Don't try moving the cursor
8477 if current glyph row w->last_cursor.vpos isn't enabled.
8479 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
8481 * window.c (Fset_window_vscroll): Allow only negative scroll
8482 values. Others don't seem to make sense, and this way it's easy
8483 to restore a vscroll of zero.
8485 * xterm.c (x_inverted_image_mask): Check that pixmap could be
8487 (x_draw_image_glyph_string_background): Don't clip if pixmap
8488 could not be created.
8490 * xfns.c (xbm_load_image_from_file): Check that pixmap could
8495 * xterm.c (x_get_glyph_overhangs): Take image and stretch
8496 glyphs into account.
8498 * xfaces.c (realize_default_face): Don't set font family of
8499 the default face from the fontset alias name for `fontset-startup'.
8501 * xfns.c (gs_load): Pass frame's pixel foreground and background
8502 color to the Lisp loader.
8504 1998-07-19 Gerd Moellmann <gerd@gnu.org>
8506 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
8509 * configure.in (--with-tiff, HAVE_TIFF): Added.
8511 * config.in (HAVE_TIFF): Added.
8513 * Makefile.in (LIBTIFF): Added.
8515 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
8517 * Makefile.in (LIBJPEG): Added.
8519 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
8520 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
8523 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
8524 where the library is installed in /usr/local/lib, e.g. FreeBSD,
8525 configure must be run with `--x-includes=/usr/X11R6/include:
8526 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
8528 1998-07-18 Gerd Moellmann <gerd@gnu.org>
8530 * config.in (HAVE_JPEG): Added.
8532 * xfns.c (ct_init): Initialize color table used to map RGB colors
8533 from images to X pixel colors.
8534 (ct_free): Free color table.
8535 (ct_lookup): Look an RGB color up.
8536 (ct_allocated_colors): Get vector of allocated colors.
8537 (pbm_image_p): Test if image specification is a valid PPM
8538 image specification.
8539 (pbm_scan_number): Scan a decimal ASCII number from a file.
8540 (pbm_load): Load a PPM image.
8542 * window.c (Fset_window_vscroll): Adjust glyph matrix if
8543 necessary. Take canonical character units as parameter.
8544 (Fwindow_vscroll): Return canonical character units.
8546 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
8547 w->dy to display height for which glyph rows must be allocated.
8549 1998-07-17 Gerd Moellmann <gerd@gnu.org>
8551 * xfaces.c (face_at_string_position): Merge in region face
8552 so that it won't overwrite the font in the region.
8553 (face_at_buffer_position): Ditto.
8554 (realize_basic_faces): Don't realize region face.
8556 * dispextern.h (enum face_id): REGION_FACE_ID removed.
8558 * xterm.c (x_set_glyph_string_background_width): Don't let
8559 cursor face extend to end of line.
8561 * xdisp.c (append_space): If adding space of default face,
8562 make sure glyph ist produced with right face.
8564 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
8565 background color of a glyph string.
8566 (x_draw_glyph_string_background): Call it.
8567 (x_draw_glyph_string_bg_rect): Ditto.
8568 (x_draw_stretch_glyph_string): Ditto.
8570 1998-07-15 Gerd Moellmann <gerd@gnu.org>
8572 * xdisp.c (init_iterator): Initialize it->current_y to the
8573 window's vscroll w->dy.
8575 * window.c (Fwindow_vscroll): Return number of pixels window
8576 is vscrolled smoothly.
8577 (Fset_window_vscroll): Set the number.
8579 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
8580 to_pos in truncated part of a line.
8582 1998-07-14 Gerd Moellmann <gerd@gnu.org>
8584 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
8585 doesn't fit on the line, truncate it, despite truncate_lines nil.
8586 (display_line): Ditto.
8588 * xfns.c: Experimental support for Ghostscript images.
8590 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
8591 (XTread_socket): React on events from Ghostscript.
8592 (expose_frame): If width or height are zero, redraw entire frame.
8593 (XTread_socket): Call expose_frame after receiving event from
8596 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
8597 for Ghostscript support.
8599 * xdisp.c (redisplay_internal): Return quickly if called
8602 * alloc.c (NSTATICS): Increased to 1024.
8604 1998-07-08 Gerd Moellmann <gerd@gnu.org>
8606 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
8607 iterator's glyph row.
8608 (x_produce_stretch_glyph): Call it.
8609 (x_produce_glyphs): Handle `space-width' property; call
8610 x_append_stretch_glyph.
8612 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
8614 (get_iterator_space_width): Determine value of `space-width'
8615 property at iterator's position.
8616 (reseat_iterator): Call it.
8617 (next_element_from_string): Ditto.
8618 (next_element_from_buffer): Ditto.
8619 (init_iterator): Initialize space_width of iterator.
8620 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
8621 moved, but cursor blinks.
8622 (redisplay_internal): Set w->last_cursor_off_p after update.
8624 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
8625 (struct display_iterator): Add new member space_width.
8627 * window.h (struct window): Add last_cursor_off_p.
8629 1998-07-07 Gerd Moellmann <gerd@gnu.org>
8633 * window.c (Fpos_visible_in_window_p): Case window not up to
8634 date---return nil if iterator hasn't reached position.
8636 1998-07-06 Gerd Moellmann <gerd@gnu.org>
8638 * xdisp.c (text_outside_line_unchanged_p): Fix case that
8639 overlays have changed.
8640 (redisplay_window): Case cursor movement. Don't try it if
8641 last_cursor.vpos is out of range.
8643 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
8644 way, the display optimization for the line containing the cursor
8645 is used more frequently, esp. when we have a blinking cursor.
8646 (display_line): Don't set this_line_.* variables.
8648 * xterm.c (x_redraw_cursor): Removed.
8649 (x_display_and_set_cursor): Set cursor type depending on
8650 cursor_off_p flag of window.
8652 * dispnew.c (redraw_cursor_hook): Removed.
8653 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
8654 member of the selected window.
8656 * xfaces.c (Fface_font): Added for compatibility with 20.2.
8658 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
8659 Return glyph area under x/y.
8660 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
8662 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
8665 1998-07-05 Gerd Moellmann <gerd@gnu.org>
8667 * xdisp.c (text_outside_line_unchanged_p): Test if changes
8668 are all outside of a line of text.
8669 (redisplay_internal): Use it.
8671 1998-06-30 Gerd Moellmann <gerd@gnu.org>
8673 * xdisp.c (next_element_from_buffer): After skipping over
8674 invisible text, look for the `glyph' property.
8675 (set_iterator_stop_pos): Ignore check positions in front
8676 of an iterator's current position.
8678 * xterm.c (show_mouse_face): Don't act on rows that don't exist
8679 anymore or which are marked as not having valid contents.
8681 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
8682 realized faces if new attribute value is equal to old value.
8684 1998-06-29 Gerd Moellmann <gerd@gnu.org>
8686 * xfaces.c (Finternal_make_lisp_face): Increment
8687 lface_id_to_name_size when lface_id_to_name is reallocated.
8689 1998-06-27 Gerd Moellmann <gerd@gnu.org>
8691 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
8692 as minimum of endpos and overlay_pos.
8693 (load_overlay_strings): Set next_overlay_pos of iterator to
8694 -1 if we don't have to check for more overlay strings.
8696 1998-05-09 Gerd Moellmann <gerd@gnu.org>
8698 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
8699 do anything if iterator is at ZV because scan_buffer doesn't
8702 * xterm.c (x_encode_char): Inline it.
8703 (x_get_char_font_and_encoding): Simplified.
8704 (x_per_char_metric): Inline it.
8706 * xterm.c (x_draw_glyph_string_relief): Use clipping.
8708 * xdisp.c (get_next_display_element): Check for end of relief
8709 face moved here from next_element_from_buffer.
8711 * xterm.c (x_produce_image_glyph): Add relief thickness.
8712 (x_produce_stretch_glyph): Ditto.
8714 1998-05-08 Gerd Moellmann <gerd@gnu.org>
8716 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
8717 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
8719 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
8720 from a glyph property.
8721 (x_produce_glyphs): Use it.
8723 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
8725 * xterm.c (x_produce_image_glyph): Add to current_x only if
8727 (x_produce_glyphs): Ditto.
8729 * xdisp.c (display_line): Compute row height from glyphs in
8732 * xterm.c (x_draw_image_glyph_string_background): Draw
8733 background of an image glyph string.
8734 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
8735 the background of a glyph string.
8736 (x_draw_image_glyph_string_foreground): Draw the foreground of
8737 an image glyph string.
8738 (x_inverted_image_mask): Return the inverted mask of an image.
8740 * xfns.c (x_draw_image): Removed.
8742 * dispextern.h (struct image_type): Remove drawing function.
8744 * xfaces.c (load_face_colors): Swap colors if face is inverse.
8746 * xdisp.c (get_next_display_element): In marginal areas, translate
8747 newlines, tabs, etc. like normal control characters.
8749 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
8751 (free_realized_faces): Set frame garbaged.
8753 * xfaces.c (syms_of_xfaces): Add defsubr for
8754 internal-lisp-face-attribute-values.
8756 1998-05-07 Gerd Moellmann <gerd@gnu.org>
8758 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
8760 (x_produce_image_glyph): Set IT->nglyphs to 1.
8761 (x_draw_image_glyph_string): Use inverted mask to draw background.
8763 * dispextern.h (struct image_type): Additional clipping rect
8764 parameters for drawing functions.
8766 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
8768 (x_draw_image_glyph_string): Use it and pass the rect to the
8769 image drawing function.
8771 * xdisp.c (fill_iterator_from_glyph_property): Use position of
8772 first character with `glyph' property as image position. Set
8773 iterator back to that position as long as the image hasn't been
8774 consumed with set_iterator_to_next.
8775 (set_cursor_from_row): Accept when glyph with given position is
8776 not found in the row. Set cursor x to end of line in that case,
8777 so that we can hscroll.
8778 (redisplay_internal): Correct computation of delta by which
8779 positions have changed in redisplay optimization for cursor
8780 row of selected window.
8782 * xdisp.c (display_line): Remove start_pos.
8783 (display_line): Fix bug preventing display optimization for
8784 cursor line of selected window.
8785 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
8788 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
8789 (update_text_area): Take glyph pixel width into account
8790 when trying to find a resync point.
8791 (row_equal_p): Compare glyphs in all areas.
8793 1998-05-06 Gerd Moellmann <gerd@gnu.org>
8795 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
8797 * dispextern.h (struct glyph_row): Use unsigned hash value.
8799 * xdisp.c (display_line): Simplified and made faster by setting
8800 the cursor with set_cursor_from_row.
8801 (set_cursor_from_row): Handle rows of desired matrix.
8803 1998-05-05 Gerd Moellmann <gerd@gnu.org>
8805 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
8806 with type != CHAR_GLYPH.
8807 (fill_iterator_from_glyph_property): Return void. Set
8808 method to next_element_from_image.
8809 (next_element_from_image): Dummy function for delivering a
8811 (set_iterator_to_next): Add method next_element_from_image.
8812 (redisplay_window): When recentering, and cursor vpos is -1
8813 after display, assume middle of window is in first line displayed
8814 in window, and display again.
8815 (fill_iterator_from_glyph_property): Assign image glyph
8816 the position of the first character having the glyph property.
8818 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
8819 * xfns.c (x_draw_image): Use it.
8820 * xterm.c (x_produce_image_glyph): Use it.
8822 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
8824 * Makefile.in: Extraneous #define of LIBXPM removed.
8826 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
8827 (x_fill_stretch_glyph_string): Fill a glyph string from a
8829 (x_compute_glyph_string_overhangs): Compute overhangs only
8830 for text glyph strings.
8831 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
8832 (x_draw_glyph_string): Call it.
8834 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
8835 (struct glyph): Add sub-structure for stretchable glyphs.
8836 (GLYPH_EQUAL_P): Compare glyph type and u.val.
8838 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
8841 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
8843 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
8844 setup_iterator_from_glyph_property. Don't do it for terminal
8847 * xterm.c (x_produce_image_glyph): Produce glyph for image
8848 that can't be loaded.
8850 * xfns.c (lookup_image): If image can't be loaded, set its
8851 width and height so that we can draw a rectangle.
8852 (x_draw_image): Draw a rectangle for images that don't have
8854 (make_image): Set hash value.
8855 (image_spec_equal_p): Use image_spec_value.
8857 * xterm.c (expose_frame): Don't try to redraw if basic faces
8858 haven't benn realized yet.
8859 (x_draw_image_glyph_string): Fill background only if image
8860 is not as tall as row.
8862 1998-05-04 Gerd Moellmann <gerd@gnu.org>
8864 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
8865 (LIBX)[HAVE_X11]: Add LIBXPM.
8867 * xfns.c (xpm_image_p): Implementation of image type functions
8871 * dispextern.h (struct image): Add mask pixmap for XPM.
8873 * xfns.c (x_draw_image): Handle images with masks.
8875 * configure.in: --with-xpm added. Code detecting -lXpm added.
8877 * config.in: Add HAVE_XPM.
8879 * xfns.c (xbm_draw): Removed.
8880 (x_draw_image): Default implementation for drawing images.
8881 (xbm_keyword_index): Remove XBM_DEPTH.
8882 (xbm_format): Remove `:depth'.
8883 (xbm_image_spec_from_file): Removed to reduce consing.
8884 (xbm_load_image_from_file): Added for the same reason.
8886 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
8888 (x_draw_image_glyph_string): Pass ybase to image draw function.
8890 * xfns.c (make_image): Set default baseline.
8892 * xterm.c (x_produce_image_glyph): Compute ascent of image
8893 from its height and baseline percentage.
8895 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
8896 (xbm_format): Add description for `:baseline'.
8897 (xbm_image_spec_from_file): Add keywords from original spec to
8899 (xbm_load): Set baseline of image.
8900 (xbm_image_p): Check range for baseline.
8902 * dispextern.h (struct image): Add member baseline.
8904 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
8906 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
8908 * xdisp.c (get_next_display_element): Do character translations
8909 only if delivering characters.
8911 1998-05-03 Gerd Moellmann <gerd@gnu.org>
8913 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
8916 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
8917 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
8919 1998-05-02 Gerd Moellmann <gerd@gnu.org>
8921 * xfns.c (prepare_image_for_display): Set image timestamp.
8922 (clear_image_cache): Clear images if image's timestamp +
8923 Vimage_eviction_seconds is > now.
8924 (syms_of_xfns): New variables image-eviction-seconds, and
8926 (add_image_format): Add to image-types.
8927 (xbm_load): Support new image spec format.
8928 (x_alloc_image_color): Allocate a color for an image.
8930 * dispextern.h (struct image): Add timestamp.
8932 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
8933 vectors of bool-vectors.
8934 (xbm_lisp_object_from_file): Build new format image spec.
8936 1998-05-01 Gerd Moellmann <gerd@gnu.org>
8938 * xfaces.c (init_frame_faces): Initialize image cache.
8939 (free_frame_faces): Free it.
8941 * xterm.c (x_delete_display): Don't free image cache.
8943 * emacs.c (main): Call init_xfns.
8945 1998-04-30 Gerd Moellmann <gerd@gnu.org>
8947 * alloc.c (mark_object): Mark objects in image cache.
8949 * xfns.c (x_set_internal_border_width): Correct call to
8950 widget_store_internal_border_width.
8952 * widget.c (widget_store_internal_border): Return void.
8954 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
8956 (init_x_parm_symbols): Return void.
8957 (x_report_frame_params): Ditto.
8958 (x_set_border_pixel): Ditto.
8959 (syms_of_xfns): Ditto.
8960 (x_destroy_all_bitmaps): Use xfree instead of free.
8962 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
8964 * xterm.c (x_term_init): Initialize image_cache of display info.
8965 (x_delete_display): Free image cache.
8967 * xterm.h (struct x_display_info): Add image_cache.
8969 * xfns.c (make_image_cache): Allocate a new image cache.
8970 (free_image_cache): Free an image cache.
8971 (make_image): Allocate an image.
8972 (free_image): Free an image.
8974 * dispextern.h (struct image): Structure describing an image.
8975 (struct image_cache): Structure describing an image cache.
8977 1998-04-29 Gerd Moellmann <gerd@gnu.org>
8979 * xdisp.c (check_iterator_glyph_property): Return int. Value is
8980 non-zero if iterator is filled with something to return.
8981 (next_element_from_buffer): Immediately return if
8982 setup_iterator_from_glyph_prop has filled iterator with pixmap.
8983 (next_element_from_string): Likewise.
8985 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
8987 * dispextern.h (struct glyph): Add pixmap_id.
8988 (display_element_type): Add DISP_PIXMAP.
8990 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
8993 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
8994 (clear_face_cache): Call it.
8996 * xterm.c (x_query_font): Don't look at empty font table slots.
8997 (x_compute_min_glyph_bounds): Likewise.
8998 (x_term_init): Initialize font_table to null.
8999 (x_load_font): Change allocation of font_info structures so
9000 that it is possible to free fonts.
9002 * xfns.c (Fx_close_connection): Use xfree instead of free.
9003 Only free fonts from filled font table entries.
9005 * xfaces.c (best_matching_font): Support use of scalable fonts.
9006 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
9008 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
9010 * xterm.c (x_term_init): Compute resx and resy.
9012 * xfaces.c (split_font_name): Don't reject scalable fonts.
9014 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
9017 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
9018 point size cannot be determined.
9020 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
9021 width over all fonts on a frame.
9022 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
9023 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
9026 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
9027 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
9028 (x_load_font): Use x_compute_min_char_bounds.
9030 * xterm.h (struct x_display_info): New members smallest_char_width
9031 and smallest_font_height.
9033 1998-04-28 Gerd Moellmann <gerd@gnu.org>
9035 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
9036 the same name if GC of face is zero.
9038 * dispextern.h (struct face): Member non_ascii_gc removed.
9040 * xterm.c (x_get_char_font_and_encoding): Return face's font
9041 for characters < 0177 in default face. Prepare face for
9042 display before returning it.
9043 (x_produce_glyphs): Use it->charset.
9044 (x_get_char_font_and_encoding): Simplified.
9045 (x_encode_char): Remove parameter `font'.
9047 * xfaces.c (choose_face_font): If registry from charset symbol
9048 doesn't contain a `-', make it a pattern by appending "*-*".
9050 * xdisp.c (check_iterator_glyph_property): Adjust limit for
9051 glyph_check_pos computation to character boundary.
9053 1998-04-27 Gerd Moellmann <gerd@gnu.org>
9055 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
9057 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
9058 ASCII face for a given Lisp face id.
9060 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
9062 (reseat_iterator): Set glyph_check_pos. Handle case where
9063 new position is < original position.
9064 (check_iterator_glyph_property): Handle glyph property in strings.
9065 (next_element_from_string): Call above function.
9066 (next_element_from_display_vector): Handle faces in glyphs.
9067 (get_next_display_element): Set face_id of glyphs for
9068 control chars to zero.
9070 * Makefile.in (term.o): Add dependency on dispextern.h.
9072 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
9073 (display_line): Handle marginal areas.
9074 (move_iterator_in_display_line_to): Likewise.
9076 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
9078 * xfaces.c (face_at_buffer_position): Don't merge with nil
9080 (face_at_string_position): Ditto.
9082 * dispextern.h (struct display_iterator): Use a stack of saved
9083 values instead of saving check positions etc. individually.
9085 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
9086 maybe pop the iterator's stack.
9087 (save_iterator_settings): Push a value on iterator's stack.
9088 (get_overlay_strings_at_iterator_position): Use it.
9089 (restore_iterator_settings): Pop the stack.
9090 (set_iterator_to_next_overlay_string): Use it.
9092 * xfaces.c (try_font_list): Use alternative font families.
9094 1998-04-26 Gerd Moellmann <gerd@gnu.org>
9096 * xfaces.c (Fset_face_font_sort_order): Set the order in which
9097 font selection matches fonts.
9098 (Fface_font_sort_order): Return the font sort order.
9099 (best_matching_font): Find best matching font based on sort order.
9100 (cmp_font_names): Sort by given sort order.
9102 * dispextern.h (struct display_iterator): New member faces_p.
9103 * xdisp.c (init_iterator): Initialize it->faces_p.
9104 (compute_face_at_iterator_string_position): Use it.
9105 (compute_face_at_iterator_position): Use it.
9106 (init_iterator): Use it.
9107 (display_mode_line): Ditto.
9109 * xdisp.c (get_next_display_element): Put code choosing a face
9110 when the charset changes in #ifdef HAVE_FACES.
9112 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
9113 lookup_face_for_charset.
9115 * xfaces.c (free_font_names): Renamed from free_split_font_names.
9116 (free_all_realized_faces): Renamed from remove_all_realized_faces.
9118 1998-04-25 Gerd Moellmann <gerd@gnu.org>
9120 * xfaces.c (best_matching_font): Return the name of the best
9121 matching font in an array of font_name structures.
9122 (choose_face_font): Use it.
9123 (choose_face_fontset_font): Use it.
9124 (find_best_weight_font): If final font found has same weight as
9125 the font we started with, return the original font because it is a
9126 better match for the resolution of the display.
9127 (find_best_slant_font): Likewise.
9128 (merge_face_vector_with_property): Check more invalid attribute
9130 (lface_suitable_for_charset_p): Replaced by a macro with the same
9133 1998-04-24 Gerd Moellmann <gerd@gnu.org>
9135 * dispextern.h (struct face): Member
9136 fontset_chosen_for_realization_p removed.
9138 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
9139 end of the collision list, so that we find more specific faces
9141 (lookup_face_for_charset): Look up a new face if face->fontset >=
9142 0, and charset != CHARSET_COMPOSITION.
9144 * xfaces.c (split_font_name): Return zero if point size of font
9145 couldn't be computed.
9146 (realize_default_face): Use ASCII font of a fontset to determine
9147 font-related attributes of the default face.
9148 (face_fontset): Return fontset id for face family.
9149 (font_list): Additional parameter font_pattern. If non-nil,
9150 return fonts matching that pattern.
9152 1998-04-23 Gerd Moellmann <gerd@gnu.org>
9154 * xfaces.c (choose_face_fontset): If new fontset cannot be
9155 constructed, or fontset name cannot be split, return the id of the
9158 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
9159 When Emacs starts, it may be called for the initial frame which
9162 * dispextern.h (struct face): New members foreground_defaulted_p,
9163 background_defaulted_p.
9164 (struct face): Members `mask' and `cache' removed.
9166 * xfaces.c (load_color): Set them.
9167 (free_face_colors): Check them.
9168 (xlfd_point_size): Return -1 if resolution or point size of
9171 * xfaces.c (free_font): Removed.
9172 (load_face_font_or_fontset): Renamed from load_font.
9173 (load_face_font_or_fontset): Use message2 instead of signalling.
9174 (load_color): Likewise.
9175 (load_pixmap): Likewise.
9177 * xterm.h (struct x_display_info): Add screen_dpi.
9178 * xterm.c (x_term_init): Initialize it.
9179 * xfaces.c (xlfd_point_size): Use it.
9180 (split_font_name): Compute numeric XLFD_RESY.
9181 (cmp_font_names): Make fonts with an y-resolution more
9182 similar to that of the frame appear first in the result.
9184 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
9185 is set for the face to cache, add it to the end of the collision
9187 (try_font_list): If fonts for given family and registry cannot
9188 be found, first try to keep the registry, and choose a different
9190 (choose_face_font): Allow nfonts == 0.
9191 (try_font_list): Give up if no font matches given registry.
9193 1998-04-22 Gerd Moellmann <gerd@gnu.org>
9195 * xterm.c (x_get_char_font_and_encoding): Get font_info from
9196 font info id of the face.
9198 * xfaces.c (load_font): Set font_info_id.
9199 (realize_face): Ditto.
9201 * dispextern.h (struct face): Change member font_info to
9204 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
9205 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
9207 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
9208 isn't ASCII, get the ASCII face before adding a space.
9209 (append_space): Likewise.
9210 (insert_left_trunc_glyphs): Initialize truncate_it's charset
9211 to -1 so that it will compute the right face for the truncation
9214 * xfaces.c (realize_face): Set
9215 face->fontset_chosen_for_realization_p.
9216 (lookup_face_for_charset): If fontset wasn't specified originally
9217 and new charset != CHARSET_COMPOSITION, get a new face for that
9220 * dispextern.h (struct face): New member
9221 fontset_chosen_for_realization_p_specified_p. Set to 1 when
9222 realize_face has chosen a fontset to display composite characters
9223 for a Lisp face not specifying a fontset.
9225 * xdisp.c (extend_face_to_end_of_line): Move tests for default
9226 face and line already filled here. Don't do anything if current
9227 face hasn't a relief or has a background equal to the frame
9230 * xfaces.c (split_font_name): Additional parameter numeric_p.
9231 Don't compute numeric values if it is non-zero.
9232 (choose_face_fontset): Call split_font_name with numeric_p == 0.
9233 (choose_face_fontset): Print a message if fontset contains a
9234 font whose name cannot be split into fields.
9236 1998-04-21 Gerd Moellmann <gerd@gnu.org>
9238 * xfaces.c (try_font_list): Try to load a list of fonts,
9239 possibly using less restrictive patterns.
9240 (choose_face_font): Use it.
9242 * xterm.c (x_get_char_font_and_encoding): For charset !=
9243 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
9245 * dispextern.h (struct face): New member font_info.
9247 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
9248 specifying a fontset as well as those not having a fontset.
9249 (free_font): Make it empty.
9250 (realize_face): Use changed load_font.
9252 * xterm.c (x_get_char_font_and_encoding): If face doesn't
9253 fit for charset, get the right one.
9255 * xfaces.c (load_font): Take frame and name parameter, return
9257 (free_font): Likewise.
9258 (split_font_name): Compute numeric values for height, swidth etc.
9259 (cmp_font_names): Use them.
9260 (find_best_width_font): Ditto.
9261 (find_best_height_font): Ditto.
9262 (find_best_weight_font): Ditto.
9263 (find_best_slant_font): Ditto.
9264 (lface_hash): Add weight, slant, swidth and relief to hash value.
9265 (lface_equal_p): Make it faster.
9266 (lface_from_symbol): Use assq_no_quit.
9267 (Fnote_default_face_changed): Removed.
9268 (cmp_font_names): Use strcmp instead of xstricmp.
9269 (face_charset_registries): Removed.
9271 1998-04-20 Gerd Moellmann <gerd@gnu.org>
9273 * frame.h (CHECK_FRAME): Give this macro a statement form.
9274 (CHECK_LIVE_FRAME): Ditto.
9276 * xfaces.c (find_best_width_font): Find the best matching font
9278 (find_best_height_font): Likewise for height.
9279 (find_best_weight_font): Likewise for weight.
9280 (find_best_slant_font): Likewise for slant.
9281 (choose_face_font): Use them.
9282 (get_lface_attributes): Always return frame-local face attrs.
9283 (Finternal_merge_in_global_face): Merge local face with
9284 global face attributes.
9286 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
9287 Lisp face attributes.
9289 1998-04-19 Gerd Moellmann <gerd@gnu.org>
9291 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
9292 and :italic for compatibility.
9293 (Finternal_set_lisp_face_attribute_from_resource): Handle
9294 :bold and :italic. Handle boolean resource values for
9295 :underline and :italic.
9297 * xfns.c (display_x_get_resource): Make it externally visible.
9299 * xfaces.c (lface_from_symbol): Take a frame as parameter.
9300 If that frame is non-null, return the frame-local face.
9301 (Finternal_make_lisp_face): Additional frame argument.
9302 (lface_attributes): Get face attributes from global and frame-local
9304 (Finternal_lisp_face_equal_p): Additional frame argument.
9305 (merge_lisp_face_vector_with_property): Ditto.
9306 (Frealize_basic_faces): Removed.
9307 (Finternal_get_lisp_face_attribute): Additional frame argument.
9308 (Finternal_lisp_face_p): Ditto.
9309 (load_color) [MSDOS]: Removed because it isn't clear how
9310 to do this for MS-DOS.
9312 * xfaces.c (lface_from_symbol): Get global face definition
9313 from face-global-alist.
9315 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
9316 as values for :underline and :inverse-video.
9317 (Finternal_set_lisp_face_attribute): Allow nil values.
9319 1998-04-17 Gerd Moellmann <gerd@gnu.org>
9321 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
9323 * xfaces.c (syms_of_xfaces): Add Vall_faces.
9324 (Finternal_make_lisp_face): Add new face to Vall_faces.
9326 * xdisp.c (echo_area_display): Remove code recomputing faces.
9327 (redisplay_internal): Ditto.
9328 (init_iterator): Do it here.
9330 * xfaces.c (choose_face_font): Check that swidth doesn't change
9331 for subusequent attributes.
9332 (xlfd_point_size): Return int.
9334 * xdisp.c (redisplay_internal, echo_area-display): If realized
9335 faces have been cleared, call recompute_basic_faces.
9337 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
9338 face_attributes_changed_p.
9339 (remove_all_realized_faces): Remove all realized faces on
9341 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
9343 * xdisp.c (redisplay_internal): If face attributes have been
9344 changed since the last redisplay, recompute basic faces.
9345 (echo_area_display): Ditto.
9347 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
9349 * xfaces.c (min_char_bounds): If face cache not yet present,
9350 don't try to get font dimensions from faces.
9352 * xterm.c (x_frame_mode_line_height): If face cache not present
9353 set, return default height.
9355 * alloc.c (mark_face_cache): Check for null faces. Correct
9358 * dispextern.h (struct face): Renamed from struct rface. Member
9359 underline renamed underline_p. Make it a bit-field.
9361 * xfaces.c (init_frame_faces): Allocate face cache.
9362 (free_frame_faces): Free face cache.
9363 (recompute_basic_faces): Realize basic faces only if face cache is
9364 allocated, i.e. after init_frame_faces has been called.
9366 * frame.c (make_frame): Initialze face cache with null.
9368 * xfaces.c (same_size_fonts): Removed.
9370 * xterm.c (x_set_glyph_string_gc): Add post-condition
9372 (x_set_mouse_face_gc): Ditto.
9373 (x_set_mode_line_face_gc): Ditto.
9375 * xfaces.c (realize_default_face): Return int. Value is
9376 zero if frame params don't contain enough information to
9377 realize the default face.
9378 (realize_basic_faces): Ditto.
9379 (init_frame_faces): Realize basic faces.
9381 * xfns.c (x_set_font): First store real font name in frame
9382 parameters, then call recompute_basic_faces.
9384 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
9386 1998-04-16 Gerd Moellmann <gerd@gnu.org>
9388 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
9390 * xfns.c (Fx_face_fixed_p): Removed.
9391 (Fx_list_fonts): Moved to xfaces.c.
9393 * xfaces.c (compute_face_at_buffer_pos): Renamed to
9394 face_at_buffer_position. Parameter charset removed; always
9395 compute face for CHARSET_ASCII.
9396 (face_at_string_position): Renamed from
9397 compute_face_at_string_pos. Parameter charset removed; always
9398 compute for CHARSET_ASCII.
9399 (lookup_face_for_charset): Take frame parameter instead of
9401 (lookup_face): Ditto.
9402 (compute_char_face): Renamed from compute_glyph_face.
9404 * xdisp.c (init_iterator): Initialize charset member.
9405 (reseat_iterator_to_string): Ditto.
9406 (get_charset_at_buffer_position): Determine charset at
9407 buffer position in current_buffer.
9408 (reseat_iterator): Call above function.
9409 (compute_face_at_iterator_position): Call
9410 compute_face_at_buffer_pos.
9411 (compute_face_at_iterator_string_position): Call
9412 compute_face_at_string_pos.
9413 (get_face_from_id): Removed.
9414 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
9415 Call get_charset_at_buffer_position.
9416 (reseat_iterator): Determine face if charset at pos differs
9417 from iterator's charset.
9418 (reseat_iterator_to_glyph_pos): Removed.
9420 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
9421 Determine charset from buffer position.
9422 (compute_string_char_face): Renamed to compute_face_at_string_pos.
9423 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
9425 * dispextern.h (struct display_iterator): Add member charset.
9427 1998-04-15 Gerd Moellmann <gerd@gnu.org>
9429 * xfaces.c (compute_char_face): Removed.
9431 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
9432 with new parameter list.
9434 * xfaces.c (region_face): Removed.
9435 (allocate_face): Removed.
9437 (face_eql): Removed.
9438 (intern_face): Removed.
9439 (clear_face_cache): Removed.
9441 (unload_font): Ditto.
9442 (load_color): Ditto.
9443 (unload_color): Ditto.
9444 (new_computed_face): Ditto.
9445 (intern_computed_face): Ditto.
9446 (ensure_face_ready): Ditto.
9447 (merge_faces): Ditto.
9448 (compute_base_face): Ditto.
9449 (merge_face_list): Ditto.
9450 (Fmake_face_internal): Removed.
9451 (Fset_face_attribute_internal): Ditto.
9452 (face_name_id_number): Removed.
9453 (Fframe_face_alist): Ditto.
9454 (Fset_frame_face_alist): Ditto.
9455 (Finternal_next_face_id): Ditto.
9457 * xterm.h (struct x_output): Remove computed_faces, and
9458 param_faces. Remove macros accessing them.
9460 * xfaces.c: Entirely new face implementation added.
9462 1998-04-11 Gerd Moellmann <gerd@gnu.org>
9464 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
9467 1998-04-10 Gerd Moellmann <gerd@gnu.org>
9469 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
9470 scroll bar window to reduce flickering. Clear entire height.
9472 * xdisp.c (move_iterator_vertically_backward): Set iterator's
9473 current_x and hpos to zero after moving to previous line
9476 1998-04-03 Gerd Moellmann <gerd@gnu.org>
9478 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
9480 * xfaces.c (xlfd_point_size): Compute relative point size of
9481 fonts from font and frame resolution.
9482 (sort_fonts): New function to sort fonts, temporarily setting
9483 font_frame to the frame in effect.
9484 (xlfd_point_size): Take additional frame parameter to be able
9485 to get at the display's resolution.
9487 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
9489 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
9492 1998-03-31 Gerd Moellmann <gerd@gnu.org>
9494 * xfaces.c (choose_face_fontset): Instantiate fontsets.
9496 * fontset.h: Add external declarations for Vfontset_alias_alist
9497 and Vglobal_fontset_alist.
9499 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
9500 (realize_default_face): If frame parameters contain an artificial
9501 font name naming a fontset, set the family of the default face to
9502 the fontset name given by the registry.
9504 * Makefile.in (alloc.o): Add dependency to dispextern.h.
9506 1998-03-22 Gerd Moellmann <gerd@gnu.org>
9508 * alloc.c (mark_object): Add function prototype. Add cast to
9509 Lisp_Object pointer in call to mark_object for symbol names
9510 because this otherwise gives a warning from gcc 2.8.1.
9511 (mark_face_cache): Mark Lisp objects in realized faces.
9513 1998-03-19 Gerd Moellmann <gerd@gnu.org>
9515 * frame.h (struct frame): Add member face_cache.
9517 * alloc.c (mark_object): Mark face cache.
9518 (mark_face_cache): Mark Lisp faces in face cache of frame.
9520 * frame.c (make_frame): Initialize face_cache.
9521 (Fdelete_frame): Free it.
9523 1998-03-18 Gerd Moellmann <gerd@gnu.org>
9525 * xfaces.c: Very first skeleton of functions for face realization,
9526 face merging, face cache etc.
9528 * dispextern.h (struct rface): Realized faces. Will replace
9529 struct face when tested.
9530 (struct face_cache): Realized face caches.
9532 * xdisp.c (init_iterator): Initialize area member of display
9535 1998-03-17 Gerd Moellmann <gerd@gnu.org>
9537 * xterm.c (x_append_glyph): Use it->area to store glyphs.
9539 * dispextern.h (struct display_iterator): New member area.
9541 * xterm.c (note_overwritten_text_cursor): Note when the text
9542 cursor of a window is overwritten.
9544 * xdisp.c (set_cursor_from_row): If PT is not found in the
9545 row, display the cursor at the start of the row.
9547 * dispnew.c (direct_output_forward_char): Call
9548 set_cursor_from_row.
9550 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
9551 position is not in an overlay string, set iterator's position and
9552 method explicitly so.
9553 (set_cursor_from_row): Correct cursor position calculation.
9554 Make it externally visible.
9555 (redisplay_window): Call set_cursor_from_row so that there is only
9556 one place where the cursor position is calculated from a current
9559 * dispextern.h (struct display_iterator): New member
9560 overlay_strings_at_end_processed_p.
9562 * xdisp.c (check_iterator): Perform sanity checks on
9564 (next_element_from_buffer): Check for overlay strings at ZV.
9566 1998-03-16 Gerd Moellmann <gerd@gnu.org>
9568 * buffer.c (init_buffer_once): Add left_margin_width and
9569 right_margin_width to buffer_local_flags.
9571 * dispnew.c (margin_glyphs_to_reserve): Function computing
9572 number of glyphs to reserve for a marginal area.
9573 (adjust_glyph_matrix): Call it.
9574 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
9577 * window.c (Fset_window_margins): Allow floats.
9579 * buffer.c (syms_of_buffer): Add buffer-local variables
9580 left-margin-width and right-margin-width. Add defaults
9581 default-left-margin-width and default-right-margin-width.
9583 * buffer.h (struct buffer): New members left_margin_width
9584 and right_margin_width.
9586 * window.c (Fset_window_margins): Make window the last and
9589 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
9590 flag no_marginal_areas_p differently.
9591 (x_clear_end_of_line): Ditto.
9592 (x_draw_glyph_string_relief): Compute width of relief differently
9593 for rows with flag no_marginal_areas_p.
9595 * dispnew.c (update_window_line): Update marginal areas only
9596 for rows that don't have no_marginal_areas_p set.
9598 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
9599 (display_menu_bar): Ditto.
9601 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
9603 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
9604 marginal areas in window-based redisplay.
9606 * dispextern.h (struct glyph_matrix): New members
9607 left_margin_glyphs and right_margin_glyphs.
9609 1998-03-15 Gerd Moellmann <gerd@gnu.org>
9611 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
9613 * charset.c (non_ascii_char_to_string): Use char type parameters
9614 because the function is used that way from outside. Use unsigned
9617 * window.c (change_window_height): Return void.
9618 (make_dummy_parent): Return void.
9619 (init_window_once): Return void.
9620 (syms_of_window): Ditto.
9621 (keys_of_window): Ditto.
9622 (delete_window): Correct return with and without value.
9624 * buffer.c (record_buffer): Return void.
9626 * marker.c (unchain_marker): Return void.
9628 * window.c (unshow_buffer): Return void.
9629 (replace_window): Ditto.
9630 (delete_window): Ditto.
9632 * term.c (delete_glyphs_hook): Void return type.
9633 (ring_bell_hook): Ditto.
9634 (set_terminal_window_hook): Ditto.
9636 * sysdep.c (init_sigio): Return void.
9638 * xterm.c (x_set_window_size): Return void.
9639 (x_calc_absolute_position): Ditto.
9640 (x_set_offset): Ditto.
9641 (x_focus_on_frame): Ditto.
9642 (x_unfocus_frame): Ditto.
9643 (x_make_frame_visible): Ditto.
9644 (x_make_frame_invisible): Ditto.
9645 (x_iconify_frame): Ditto.
9646 (x_destroy_window): Ditto.
9647 (x_wm_set_window_state): Ditto.
9648 (x_wm_set_icon_pixmap): Ditto.
9649 (x_wm_set_icon_position): Ditto.
9650 (x_initialize): Ditto.
9651 (x_error_quitter): Ditto.
9652 (x_destroy_window): Use xfree instead of free.
9654 * keyboard.c (clear_waiting_for_input): Return void.
9656 * xterm.c (x_wm_set_size_hint): Return void.
9657 (x_raise_frame): Ditto.
9658 (refreshicon): Ditto.
9659 (x_error_catcher): Ditto.
9660 (x_clear_errors): Ditto.
9662 * keyboard.c (record_asynch_buffer_change): Return void.
9664 * xterm.c (XTroï
\0ðoï
\0ðÃâ
\0ðoï
\0ðoï
\0ðTÿ
\0ðLá
\0ðoï
\0ðterminal_window): Ditto.
9665 (x_lower_frame): Ditto.
9666 (x_scroll_bar_clear): Ditto.
9667 (XTflash): Add default case in switch for -Wall.
9668 (construct_mouse_click): Return Qnil.
9669 (cancel_mouse_face): Return void.
9670 (x_queue_event): Use xmalloc instead of malloc.
9671 (x_unqueue_events): Use xfree instead of free.
9673 * ccl.c (ccl_driver): Return int.
9675 * keyboard.c (stop_polling): Return void.
9676 (start_polling): Ditto.
9678 * term.c (keys): Add braces in initializer list for -Wall.
9680 * sysdep.c (tabs_safe_p): Return int.
9681 (init_baud_rate): Return void.
9683 * xterm.c (x_draw_bitmap): Add default case.
9684 (x_setup_relief_colors): Use DefaultScreen instead of
9685 DefaultScreenOfDisplay.
9686 (x_delete_glyphs): Return void.
9687 (construct_menu_click): Put in #if 0 because it isn't called.
9689 * xdisp.c (load_overlay_strings): Remove extraneous argument
9691 (get_overlay_arrow_glyph_row): Add missing return value.
9693 * window.c (set_window_height): Return void.
9694 (set_window_width): Ditto.
9696 * sysdep.c (request_sigio): Return void.
9697 (unrequest_sigio): Ditto.
9698 (get_frame_size): Ditto.
9700 * scroll.c (scroll_cost): Return int.
9701 (do_line_insertion_deletion_costs): Return void.
9703 * frame.c (Fdelete_frame): Use xfree instead of free.
9705 * fileio.c (report_file_error): Return void.
9707 * dispnew.c: Make compilable with -Wall.
9710 * charset.h (CHAR_LEN): Moved here from dispextern.h.
9712 1998-03-14 Gerd Moellmann <gerd@gnu.org>
9714 * xterm.c (x_scroll_bar_move): Clear under scroll bar if height is
9716 (x_setup_relief_color): Free color only for appropriate visual
9719 * xterm.c (expose_window): Fix calculation of intersection of mode
9720 line rectangle with exposed rectangle.
9722 * xdisp.c (redisplay_window): Don't do cursor movement based
9723 on current matrix if w->last_point is not valid.
9725 1998-03-09 Gerd Moellmann <gerd@gnu.org>
9727 * xterm.c (expose_line): Redraw mode line and menu lines
9728 differently because they reach into the scroll bar area.
9730 * xdisp.c (redisplay_window): If redisplaying with same window
9731 start, don't accept cursor on partially visible line.
9733 1998-03-08 Gerd Moellmann <gerd@gnu.org>
9735 * xterm.c (x_set_glyph_string_clipping): Set clip rectangle
9736 for wider mode lines.
9737 (x_draw_glyph_string_relief): Use larger rectangle for mode lines.
9739 * xdisp.c (init_iterator): Increase last_visible_x by vertical
9740 scroll bar width for mode lines.
9742 * dispnew.c (allocate_matrices_for_window_redisplay): Include
9743 vertical scroll bar width in width calculation so that we can
9744 display mode lines wider.
9746 * xdisp.c (redisplay_window): Restore buffers before returning
9747 when fonts have changed.
9749 * dispnew.c (update_window): Mark invisible rows in the current
9752 * xdisp.c (try_window_id): Force update of first row displayed
9754 (dump_glyph_matrix): Extracted from Fdump_glyph_matrix.
9756 1998-03-05 Gerd Moellmann <gerd@gnu.org>
9758 * dispextern.h (struct glyph_row): Member max_ascent renamed
9759 ascent. Member max_descent replaced by height.
9760 (struct display_iterator): Member max_descent replaced by height.
9761 (MATRIX_ROW_PIXEL_HEIGHT): Removed.
9763 * xterm.c (x_alloc_lighter_color): Don't free colors if visual
9764 class makes it unnecessary or dangerous.
9766 * xdisp.c (redisplay_window): Case only point has changed, and
9767 point has moved forward. Move forward over overlay strings.
9768 (display_line): Don't set cursor if first glyph from PT is part of
9769 a continuation line.
9771 1998-02-21 Gerd Moellmann <gerd@gnu.org>
9773 * xdisp.c (start_display): When computing continuation lines
9774 width, add current_x to the continuation lines width because
9775 move_iterator_to will stop in front of the buffer position moved
9778 1998-02-20 Gerd Moellmann <gerd@gnu.org>
9780 * xdisp.c (redisplay_window): Don't try try_window_id if
9781 windows_or_buffers_changed.
9783 * xterm.c (x_alloc_lighter_color): Try both factor and delta to
9785 (x_setup_relief_color): Allocate/ change one relief.
9786 (x_setup_relief_colors): Call above function.
9788 * xterm.h (struct relief): New structure type holding relief info:
9789 GCs, colors, and whether colors are allocated.
9791 * xterm.c (x_alloc_lighter_color): If multiplying by factor
9792 produces the same color, try adding a delta to RGB values.
9793 (x_setup_relief_colors): Free color cells.
9795 * xterm.h (struct x_output): New members white_relief_pixel,
9796 black_relief_pixel holding the foreground colors allocated for
9797 relief GCs. New members white_allocated_p, black_allocated_p.
9799 * xterm.c (x_scroll_run): Don't set updated_window to null.
9800 This resets updated_window when called from scrolling_window.
9802 * dispextern.h (scroll_run_hook): Renamed from line_dance_hook.
9804 * xterm.c (x_scroll_run): Additional window parameter. Set
9805 and reset updated_window.
9807 * dispnew.c (line_dance_hook): Additional window parameter.
9809 * xdisp.c (try_window_reusing_current_matrix): Don't call
9810 update_window_begin/end here. The end function would display the
9811 cursor on a wrong position and the additional functionality of
9812 update_window_begin is not needed anyway. Just set
9814 (try_window_id): Ditto.
9816 * dispnew.c (Fblink_cursor): Remove call to detect_input_pending.
9817 Don't redraw cursor during redisplay.
9819 * xterm.c (x_scroll_run): Renamed from do_line_dance.
9821 * xdisp.c (redisplay_window): For window-based redisplay, alway
9824 * xterm.c (struct glyph_string): New member two_byte_p that is
9825 non-zero if 16-bit drawing functions must be used.
9826 (x_fill_composite_glyph_string): Set it.
9827 (x_fill_glyph_string): Set it.
9828 (x_draw_glyph_string_foreground): Use it.
9829 (x_draw_vertical_border): Make line 1 pixel less tall.
9830 (x_draw_row_bitmaps): Decrease width of area cleared on the left
9831 side by 1 pixel if window is not right-most hasn't vertical scroll
9833 (x_draw_phys_cursor_glyph): Do nothing if phys_cursor.hpos is
9835 (x_draw_glyph_string_foreground): Use XDrawImageStringX if
9838 * xdisp.c (start_display): Check that window start is at line
9839 start if GLYPH_DEBUG != 0.
9841 * window.c (window_scroll_pixel_based): Move assertion to
9844 1998-02-19 Gerd Moellmann <gerd@gnu.org>
9846 * xterm.c (x_redraw_cursor): Don't redraw the cursor if the
9847 frame hasn't the focus.
9849 * window.c (make_window): Initialize dy.
9850 (replace_window): Ditto.
9852 * window.h (window): New member dy specifying the amount by which
9853 a window is scrolled "smoothly".
9855 * xterm.c (x_set_glyph_string_clipping): Don't use glyph string's
9856 y-position because it can be negative.
9857 (x_draw_row_bitmaps): Don't clear with negative y-position like
9859 (x_clear_end_of_line): Same theme as above.
9861 * xterm.c (x_alloc_nearest_color): Allocate a color or, if no
9862 exact match exists, the nearest existing color. Patterned after
9864 (x_alloc_lighter_color): Allocate a color that is lighter or
9865 darker than a given color by a specified factor.
9866 (x_setup_relief_colors): Set up relief line colors based on
9867 the background color of a glyph string face.
9868 (x_draw_glyph_string_relief): Call x_setup_relief_colors.
9870 * xfns.c (x_make_gc): Don't allocate relief GCs.
9871 * widget.c (create_frame_gcs): Don't allocate relief GCs.
9872 (setup_frame_gcs): Don't change relief GCs.
9874 * xterm.h (struct x_output): New member relief_background giving
9875 the background pixel color for which relief GCs can be used.
9876 Set by x_setup_relief_colors.
9878 * xterm.c (x_draw_glyph_string_relief): Draw relief differently
9879 for mode and menu lines.
9881 * xdisp.c (set_next_iterator_stop_pos): No longer static.
9883 * dispnew.c (direct_output_for_insert): Call
9884 set_next_iterator_stop_pos after having changed it2.endpos.
9886 1998-02-17 Gerd Moellmann <gerd@gnu.org>
9888 * dispnew.c (update_window): Work on selected_window, only.
9890 * xterm.c (x_erase_phys_cursor): Return quickly if physical cursor
9891 hpos is >= number of glyphs in the cursor row.
9893 * xdisp.c (try_window_id): Bug fix; update_window_end was not
9896 1998-02-16 Gerd Moellmann <gerd@gnu.org>
9898 * xdisp.c (init_iterator): Increase last_visible_x for mode lines
9901 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate
9902 enough glyphs to display a mode line or menu line which draws over
9905 * xterm.c (XTset_vertical_scroll_bar): Use
9906 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT instead of
9907 VERTICAL_SCROLL_BAR_PIXEL_HEIGHT.
9908 (x_draw_glyphs): Draw over flags areas when drawing a mode line
9910 (x_set_glyph_string_clipping): Set clipping differently if drawing
9911 a mode line or menu line.
9913 * xterm.h (VERTICAL_SCROLL_BAR_PIXEL_HEIGHT): Removed.
9915 * xterm.c (expose_line): Don't draw bitmaps for mode lines and
9917 (x_scroll_bar_create): Don't clear flags areas.
9918 (x_draw_row_bitmaps): Clear visible row height, only.
9920 * dispnew.c (Fblink_cursor): Moved here from xdisp.c.
9922 1998-02-15 Gerd Moellmann <gerd@gnu.org>
9924 * dispnew.c (direct_output_for_insert): When checking for tabs in
9925 the line, set it2.endpos to ZV.
9927 * window.h (struct window): New member cursor_off_p.
9928 * xterm.c (x_redraw_cursor): Implementation of redraw_cursor_hook
9930 * dispnew.c (redraw_cursor_hook): If non-null, function that can
9931 be called to display or erase the cursor.
9932 * xdisp.c (Fblink_cursor): Blink the cursor of a specified window
9935 * xterm.h (text_cursor_kinds): Enumerators changed to uppercase.
9937 * dispnew.c (update_window_line): Special handling of inverse
9938 lines in #if 0 removed.
9940 * xterm.c (x_write_glyphs): Renamed from XTwrite_glyphs.
9941 (x_insert_glyphs): Renamed from XTinsert_glyphs.
9942 (x_clear_frame): Renamed from XTclear_frame.
9943 (x_clear_end_of_line): Renamed from XTclear_end_of_line.
9944 (x_ins_del_lines): Renamed from XTins_del_lines.
9945 (x_change_line_height): Renamed from XTchange_line_height.
9946 (x_delete_glyphs): Renamed from XTdelete_glyphs.
9947 (x_clear_cursor): Renamed from clear_cursor.
9948 (x_update_begin): Renamed from XTupdate_begin.
9949 (x_update_end): Renamed from XTupdate_end.
9950 (x_update_window_begin): Renamed from XTupdate_window_begin.
9951 (x_update_window_end): Renamed from XTupdate_window_end.
9952 (x_frame_mode_line_height): Renamed from XTframe_mode_line_height.
9953 (x_produce_glyphs): Renamed from XTproduce_glyphs.
9954 (x_produce_special_glyphs): Renamed from XTproduce_special_glyphs.
9955 (x_produce_special_glyphs): Implementation in #if 0 removed.
9957 * xdisp.c (Fdump_redisplay_state): Display row's fill_line_p
9960 * dispnew.c (update_text_area): Handling of glyphs with pixel
9961 width zero removed. Decrement desired stop pos if desired row
9964 * xterm.c (x_fill_glyph_string): Handling of glyphs with pixel
9966 (BUILD_GLYPH_STRINGS): Set glyph string flag
9967 extends_to_end_of_line_p based on row's flag fill_line_p and face
9968 background and stipple. Make sure it works for composite characters.
9970 * xdisp.c (extend_face_to_end_of_line): Set the glyph row flag
9971 fill_line_p. For window-based redisplay, add a space only if
9972 the row is empty so that we know the face to draw.
9974 * dispextern.h (struct glyph_row): New flag fill_line_p. Non-zero
9975 means draw the face of the last glyph in the text area to the
9976 right end of the text area.
9978 * xdisp.c (init_iterator): Show region in window mini-buffer
9981 * dispextern.h (struct display_iterator): Redundant member
9982 region_showing_p removed. Test for region_beg > 0 instead.
9984 * dispnew.c (update_text_area): Clear to end of line if cursor is
9985 beyond the end of the desired line. Necessary because we don't
9986 have a phys_cursor_glyph with which to erase the cursor. We don't
9987 have one because this method of drawing a cursor doesn't work with
9990 * xterm.c (XTinsert_glyphs): Block input.
9992 1998-02-14 Gerd Moellmann <gerd@gnu.org>
9994 * xterm.c (x_set_cursor_gc): Don't use cursor_gc for composite
9996 (x_draw_glyph_string_background): Fill background with background
9997 pixel for the first glyph of a composite character.
9999 * xdisp.c (try_window): Change return type to int. Value is zero
10000 if fonts were loaded during redisplay.
10001 (redisplay_window): Return if fonts have been loaded during
10003 (append_space): New parameter default_face_p.
10005 1998-02-13 Gerd Moellmann <gerd@gnu.org>
10007 * dispnew.c (adjust_glyph_matrix): In case of optimizing C-x 2,
10008 don't let a partially visible line in a current matrix stay
10011 1998-02-09 Gerd Moellmann <gerd@gnu.org>
10013 * minibuf.c (read_minibuf): Put access to minibuffer_prompt_length
10014 in #if PROMPT_IN_BUFFER.
10016 * xdisp.c (display_line): If row ends in ZV, make the space
10017 that is added to place the cursor on it appear in default face.
10019 * xterm.c (expose_area): New function redrawing a single
10021 (expose_line): Use it to redraw all areas of a row.
10023 * dispextern.h (move_operation_enum): New enum
10024 move_operation_enum.
10026 * window.c (window_scroll_pixel_based): Remove now unnecessary
10027 code that made sure that it->current_y doesn't become negative.
10029 * xdisp.c (move_iterator_in_display_line_to): New parameter
10030 op. Special meaning of to_pos <= 0 and to_x < 0 removed.
10031 (move_iterator_to): Ditto.
10033 * dispextern.h (struct glyph_matrix): New member window_width.
10035 * dispnew.c (adjust_glyph_matrix): Set window_width. Optimize
10036 case of changing window height.
10038 * xterm.c (x_draw_row_bitmaps): Don't clear vertical window
10039 border to the left.
10041 * dispextern.h (struct glyph_row): Remove right_to_left_p. RMS
10042 says this aspect of Emacs is currently redesigned.
10044 * xterm.c (x_clip_to_row): Subtract 1 from clip width if we
10045 have to draw a vertical border.
10047 * window.c (window_scroll_pixel_based): When scrolling down by
10048 screen-fulls, make sure it.current_y doesn't get negative because
10049 this would confuse move_iterator_vertically.
10051 * xdisp.c (move_iterator_vertically_backward): Bug fix for
10052 the case continuation lines are involved.
10053 (try_window_id): Don't set the cursor into scroll margins.
10055 1998-02-08 Gerd Moellmann <gerd@gnu.org>
10057 * xterm.c (x_append_glyph): Don't compute left_overhang and
10059 (XTproduce_glyphs): left_overhang and right_overhang removed.
10060 Set it->glyph_row->contains_overlapping_glyphs_p.
10062 * xdisp.c (Fdump_redisplay_state): Output of glyph->left_overhang
10063 and right_overhang removed.
10065 * dispextern.h (struct glyph_row): New member
10066 contains_overlapping_glyphs_p used to optimize glyph drawing.
10067 (struct display_iterator): left_overhang and right_overhang
10069 (struct glyph): Ditto.
10071 * xterm.c (x_draw_relief): Removed.
10072 (x_draw_bitmap): Renamed from draw_bitmap.
10073 (x_draw_glyphs): Completely new implementation of draw_glyphs
10074 capable of handling arbitrary lbearing and rbearing values.
10075 Several sub-functions not mentioned here.
10077 1998-01-30 Gerd Moellmann <gerd@gnu.org>
10079 * xterm.c (x_erase_phys_cursor): Clear area under the cursor only
10080 if displaying hollow box cursor. draw_glyphs should handle
10082 (draw_glyphs): Move start to the left and end to the right if they
10083 overlap with previous or following characters.
10084 (draw_glyphs): If background is cleared for hl == DRAW_CURSOR,
10085 make sure XDrawString uses function GXset. Otherwise the
10086 character under the cursor would be invisible.
10087 (x_draw_bar_cursor): Don't draw over previous character if it
10088 has right_overhang.
10090 * window.c (get_phys_cursor_glyph): Return the glyph under a
10091 window's physical cursor.
10093 * xterm.c (x_draw_hollow_cursor): Use get_phys_cursor_glyph.
10094 (x_draw_bar_cursor): Ditto.
10095 (x_erase_phys_cursor): Ditto.
10096 (x_phys_cursor_in_rect_p): Ditto.
10097 (x_display_and_set_cursor): Remove reference to w->phys_cursor_glyph.
10099 * window.c (make_window): Remove reference to phys_cursor_glyph.
10100 (replace_window): Ditto.
10102 * window.h (struct window): Remove phys_cursor_glyph. There is
10103 now always a glyph present for placing the cursor on it in
10104 each glyph row, even at the end of a line.
10106 * xdisp.c (append_space): Function to add a space to an iterators
10108 (display_line): Add spaces at the end of lines that are used to
10109 place the cursor on them.
10110 (compute_line_metrics): If row consists of a space only that was
10111 added to place the cursor on it, use that space's height as the
10114 1998-01-29 Gerd Moellmann <gerd@gnu.org>
10116 * xdisp.c (Fdump_redisplay_state): Dump left and right overhang of
10119 1998-01-28 Gerd Moellmann <gerd@gnu.org>
10121 * xterm.c (x_append_glyph): Set overhang of glyph from iterator.
10122 (XTproduce_glyphs): Set it->left_overhang and it->right_overhang.
10124 * dispextern.h (struct glyph): Add left_overhang and
10126 (struct display_iterator): Ditto.
10128 * dispnew.c (direct_output_for_insert): Give up if newly inserted
10129 glyphs have different ascent or descent than original row.
10131 * xdisp.c (compute_line_metrics): Compute row->max_ascent and
10132 row->max_descent only if unknown.
10133 (display_line): Compute row->max_ascent and row->max_descent.
10134 (display_string): Ditto.
10136 * window.h (struct window): New members phys_cursor_ascent and
10137 phys_cursor_descent.
10139 * xterm.c (x_phys_cursor_in_rect_p): Use them.
10140 (x_draw_hollow_cursor): Ditto.
10141 (x_erase_phys_cursor): Ditto.
10142 (x_display_and_set_cursor): Set them.
10143 (x_append_glyph): Don't set glyph members that were removed.
10145 * dispextern.h (struct glyph): Members ascent, descent,
10146 contributes_to_line_height_p removed.
10148 1998-01-25 Gerd Moellmann <gerd@gnu.org>
10150 * dispextern.h (DEFAULT_FACE_ID, MODE_LINE_FACE_ID): Symbolic
10151 names for face ids of frame default face and mode line face.
10153 * xdisp.c (compute_face_at_iterator_string_position): If
10154 displaying a mode line use MODE_LINE_FACE_ID instead of
10157 * xdisp.c (reseat_iterator_to_string): Additional parameter start.
10158 (display_string): Ditto, additional parameter lisp_string.
10159 (display_line): Call display_string with Lisp mini-buffer prompt
10161 (display_menu_bar): Call display_string with Lisp string.
10162 (display_mode_element): Ditto.
10163 (next_element_from_string): Make it work for non-overlay Lisp
10164 strings with field width and precision.
10166 * minibuf.c (minibuffer-prompt-in-buffer): Bound if
10169 * xfaces.c (compute_string_char_face): Fix face computation
10170 for overlay strings.
10172 * xdisp.c (struct overlay_entry): Add member after_string_p.
10173 (load_overlay_strings): Simplify.
10175 * window.c (delete_window): Defer glyph matrix adjustment.
10176 (Fsplit_window): Ditto.
10177 (change_window_height): Ditto.
10178 (Fset_window_configuration): Ditto.
10179 (Fset_window_margins): Ditto.
10180 * frame.c (set_menu_bar_lines): Ditto.
10181 (Fmake_terminal_frame): Ditto.
10182 * dispnew.c (change_frame_size_1): Ditto.
10184 1998-01-24 Gerd Moellmann <gerd@gnu.org>
10186 * xdisp.c (move_iterator_vertically_backward): Change algorithm.
10188 * dispnew.c (direct_output_for_insert): Give up if start
10189 position has overlay strings.
10191 * xdisp.c (display_line): Don't set cursor if row ends in middle
10193 (Fdump_redisplay_state): Print complete row start and end
10195 (redisplay_window): Cursor movement when matrix hasn't changed---
10196 if PT < last_point, maybe move forward if row ends at PT and
10199 * minibuf.c (read_minibuf): Save the value of
10200 minibuffer_prompt_length in minibuf_save_list.
10201 (read_minibuf_unwind): Restore minibuffer_prompt_length.
10203 * xdisp.c (redisplay_window): Add assertion for cursor movement
10204 case, PT < last_point.
10205 (move_iterator_in_display_line_to): If to_pos specified, move
10206 over before-strings.
10208 * dispextern.h (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test
10209 start.string_index > 0.
10211 * xdisp.c (redisplay_internal): Adjust glyphs if fonts_changed_p
10212 is set. Retry redisplay if fonts_changed_p is set before update.
10214 * xterm.c (x_load_font): Set fonts_changed_p.
10216 * xfaces.c (Fset_face_attribute_internal): Set fonts_changed_p.
10218 * dispnew.c (adjust_glyphs_for_font_change): Removed.
10220 * xdisp.c (try_window): Check fonts_changed_p.
10221 (try_window_reusing_current_matrix): Ditto.
10222 (try_window_id): Ditto.
10224 * dispnew.c (adjust_glyphs_for_font_change): Set fonts_changed_p.
10225 (fonts_changed_p): Flag indicating a font change since the last
10226 glyph matrix adjustment.
10228 * xterm.c (x_per_char_metric): Use font->max_bounds as
10229 char metric of the font's default char if the default char
10230 hasn't per char metric itself.
10232 * xfaces.c (Fset_face_attribute_internal): Adjust glyphs
10234 (min_char_bounds): Check face->font != NULL.
10235 (font_min_bounds): Return minimum font metrics. Capture the
10236 case of invalid min_bounds contents.
10237 (min_char_bounds): Call font_min_bounds.
10239 1998-01-22 Gerd Moellmann <gerd@gnu.org>
10241 * xdisp.c (start_display): Don't set it->prompt_width if
10243 (move_iterator_in_display_line_to): Ditto.
10244 (display_line): Don't display prompt via display_string if
10247 * minibuf.c (Fminibuffer_prompt_width): Return value from
10248 current_buffer if PROMPT_IN_BUFFER.
10249 (read_minibuf): If PROMPT_IN_BUFFER, insert prompt into
10250 mini-buffer and make it read-only.
10251 (Fminibuffer_complete_and_exit): If PROMPT_IN_BUFFER, use
10252 minibuffer_prompt_length instead of BEGV.
10253 (Fminibuffer_complete_word): Ditto.
10254 (Fminibuffer_complete_word): Ditto.
10256 * insdel.c (del_range_1): If PROMPT_IN_BUFFER, and start position
10257 is less than mini-buffer prompt width, use prompt width as start.
10259 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, and start
10260 position is less than mini-buffer prompt width, use the prompt
10263 * cmds.c (Fbeginning_of_line): If PROMPT_IN_BUFFER, set point to
10264 end of prompt if applied to a mini-buffer and BEG reached.
10266 1998-01-21 Gerd Moellmann <gerd@gnu.org>
10268 * editfns.c (make_buffer_string): If PROMPT_IN_BUFFER, add prompt
10269 length to start position.
10271 * buffer.c (Fget_buffer_create): Initialize
10272 minibuffer_prompt_length.
10273 (Fmake_indirect_buffer): Ditto.
10274 (Fkill_buffer): Ditto.
10276 * buffer.h (struct buffer): Add member minibuffer_prompt_length
10277 if PROMPT_IN_BUFFER.
10279 1998-01-19 Gerd Moellmann <gerd@gnu.org>
10281 * xdisp.c (next_element_from_string): Make it work for arbitrary
10283 (set_iterator_to_next): Advance to next overlay string only
10284 if it->string is an overlay string.
10286 * dispextern.h (struct display_iterator):
10287 next_ovstr_face_check_pos renamed next_string_face_check_pos.
10289 * xfaces.c (compute_string_char_face): Compute face for
10290 arbitrary Lisp string. Renamed from compute_overlay_string_char_face.
10292 * xdisp.c (next_element_from_string): Renamed from
10293 next_element_from_overlay_string.
10294 (compute_face_at_iterator_string_position): Renamed from
10295 compute_face_at_iterator_overlay_string_position.
10297 * dispextern.h (struct display_iterator): Member overlay_string
10300 * xdisp.c (next_element_from_c_string): Renamed from
10301 next_element_from_string.
10303 * dispextern.h (struct glyph_pos): Reversed meaning of
10304 overlay_string_index and string_index.
10306 * xdisp.c (next_element_from_overlay_string): Fix bug that made
10307 this function always return the first character of an overlay
10310 1998-01-18 Gerd Moellmann <gerd@gnu.org>
10312 * xdisp.c (reseat_iterator): Set next_invisible_check_pos only if
10313 forced or new pos > next_invisible_check_pos.
10314 (redisplay_window): Don't try same window start if PT < window
10316 (move_iterator_vertically): Bug fix satisfying post-condition
10317 when ZV is reached and no newline in front.
10318 (move_iterator_vertically_backward): New implementation.
10319 (move_iterator_vertically_backward): Bug fixes.
10321 * xterm.c (XTmouse_position): Change call to min_char_bounds.
10322 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
10323 (adjust_glyphs_for_font_change): Always adjust.
10325 * dispnew.c (struct dim): Use int.
10327 * xfaces.c (Fset_face_attribute_internal): Set face->font_name;
10328 (allocate_face): Initialize it.
10329 (load_font): Use XLoadQueryFont again instead of x_load_font.
10330 (unload_font): Use XFreeFont again.
10331 (min_char_bounds): Iterate over fonts of faces. Use frame's
10332 font sizes as default. Remove parameter except_last_font_p.
10334 * dispextern.h (struct face): Add font_name.
10336 1998-01-17 Gerd Moellmann <gerd@gnu.org>
10338 * xdisp.c (move_iterator_vertically): Check post-condition. Move
10339 to start of line if ending at ZV and no newline in front.
10340 (move_iterator_to): If to_y specified, always first move to x = 0,
10341 so that move stops at line start instead of line end. This is
10342 probably what callers would expect to happen.
10344 * window.c (window_scroll_pixel_based): Pixel-based scrolling that
10345 can handle different line heights.
10346 (window_scroll_line_based): Formerly window_scroll.
10347 (window_scroll): Call both.
10349 * xdisp.c (start_display): Exclude code if PROMPT_IN_BUFFER.
10350 (move_iterator_in_display_line_to): Ditto.
10351 (display_line): Ditto.
10353 * minibuf.c (read_minibuf): Conditionally insert prompt into
10354 buffer instead of handling prompts specially. Change other
10355 functions accordingly. All such code is in #if PROMPT_IN_BUFFER.
10357 * dispnew.c (adjust_glyph_matrix): Optimize the handling of C-x 2,
10358 upper window. Optimize calls to xrealloc if same width.
10360 * xdisp.c (redisplay_window): Don't use
10361 try_window_reusing_current_matrix if window scroll functions
10364 * dispextern.h (struct display_iterator): Member
10365 redisplay_end_trigger_p removed.
10367 * dispextern.h (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
10368 Renamed to WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
10370 1998-01-16 Gerd Moellmann <gerd@gnu.org>
10372 * xdisp.c (move_iterator_by_lines): Optimize for truncate-lines
10373 nil. Optimize truncate-lines t and moving backward.
10374 (move_iterator_to_previous_visible_line_start): Contains the heart
10375 of the previous set_iterator_to_previous_visible_line_end. Don't
10376 reseat the iterator. Used by move_iterator_by_lines.
10377 (set_iterator_to_previous_visible_line_start): Call function
10379 (move_iterator_in_display_line_to): Check TO_POS before doing
10380 anything else. Otherwise to_pos == PT would move to x of PT+1.
10382 * indent.c (Fvertical_motion): Use display_iterator.
10384 * xdisp.c (move_iterator_by_lines): New function moving by screen
10386 (redisplay_window): Use it.
10387 (move_iterator_to): Correct branch of to_vpos specified.
10388 (move_iterator_vertically_backward): Increment nlines after having
10389 backed up over some lines because the last line was not backed up
10391 (move_iterator_via_matrix): Look for it->pos in the matrix, and
10392 calculate it->vpos and it->current_y relative to this row.
10393 (move_iterator_via_matrix): Set in #if 0. It doesn't seem to
10394 have a big effect and it is complex.
10395 (move_iterator_to): Call to move_iterator_via_matrix in #if 0.
10397 1998-01-15 Gerd Moellmann <gerd@gnu.org>
10399 * xterm.c (x_draw_relief): Simplify drawing and draw so that lines
10400 join nicely. Lines with widths > 2 don't join nicely under X.
10401 * xterm.h (struct x_output): Remove member relief_gc_line_width.
10402 * widget.c (setup_frame_gcs): Initialize relief GC's to line
10403 width 1; remove references to relief_gc_line_width.
10404 * xfns.c (x_make_gc): Ditto.
10406 * xfaces.c (Fset_face_attribute_internal): Set frame garbaged
10408 (Fset_face_attribute_internal): Use XINT instead of XFASTINT
10409 to get a relief because they can be negative.
10411 * xterm.c (x_draw_relief): Correct line drawing positions. Pixel
10412 positions are for the middle of lines under X.
10414 * xdisp.c (try_window_id): Always search for the cursor by setting
10415 w->cursor.vpos = -1. Search in unchanged rows at the top and
10416 bottom if cursor not found in displayed lines.
10417 (display_mode_line): First extend face, then set right shadow
10418 flag. Otherwise the wrong glyph gets the right shadow.
10420 * dispnew.c (direct_output_for_insert): Give up if line contains
10421 a tab. The number of spaces inserted for a tab changes if we
10422 insert glyphs in front of it.
10424 * xterm.c (x_list_fonts): Changes undone because the Lisp
10425 implementation for make-face-smaller, make-face-larger, and
10426 make-face-fixed can do without them.
10428 * xfns.c (Fx_list_fonts): Original x-list-fonts from x-list-font.c
10431 * xdisp.c (try_window_id): First compute beg_unchanged, then
10432 compare with window start pos.
10434 * xfns.c (Fx_face_fixed_p): Determine whether a face has a
10436 (syms_of_xfns): defsubr for x-face-fixed-p.
10438 * xterm.c (x_erase_phys_cursor): If row containing cursor is not
10439 enabled, don't do anything because this row will be newly drawn
10440 anyway and because we can additionally no longer determine the row
10443 * xdisp.c (display_line): Bug fix cursor positioning.
10445 * xfns.c (x-list-fonts): Copied from x-list-fonts.c; #include
10446 removed. x-list-fonts.c is now obsolete.
10447 (Qfixed, Qvariable): Moved here from xfaces.c.
10449 1998-01-14 Gerd Moellmann <gerd@gnu.org>
10451 * xdisp.c (display_line): Set row->ends_at_zv_p based on
10452 FETCH_BYTE for truncated lines.
10453 (display_line): Set cursor differently.
10454 (display_line): Fixed bug setting last_pos_on_this_line wrong
10455 for truncated lines.
10457 * dispnew.c (adjust_glyph_matrix): Always adjust for frame-based
10460 * window.c (Fsplit_window): Adjust glyphs before setting buffer.
10462 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
10463 assertion that character dimensions are not zero.
10465 * xterm.c (x_load_font): adjust_glyphs_for_font_change while
10468 * xdisp.c (decode_mode_spec): Faster implementation of line number
10471 * xterm.c (x_draw_row_bitmaps): Clear flags area before drawing
10472 bitmaps if bitmaps don't fill the entire area.
10473 (draw_bitmap): Draw bitmaps horizontally centered in flags area.
10475 * xterm.h (FRAME_FLAGS_BITMAP_HEIGHT): Macro giving the
10476 pixel height of flags bitmaps.
10478 * frame.h (FRAME_FLAGS_AREA_COLS): Use FRAME_X_FLAGS_AREA_COLS.
10479 (FRAME_FLAGS_AREA_WIDTH): Ditto.
10481 * xterm.h (FRAME_FLAGS_BITMAP_WIDTH): Macro giving the width
10482 in pixels of a flags area of a frame.
10483 (FRAME_X_FLAGS_AREA_WIDTH): Removed.
10484 (FRAME_X_FLAGS_AREA_COLS): Macro giving the number of columns
10485 occupied by a flags area.
10487 1998-01-13 Gerd Moellmann <gerd@gnu.org>
10489 * xdisp.c (hscroll_window_tree): Remove test for non-nil
10492 * dispnew.c (adjust_glyph_matrix): Check redisplay_p if
10495 * xdisp.c (display_line): Correct wrong calculation of row->x for
10496 the case of nglyphs == 1.
10497 (hscroll_window_tree): Renamed from hscroll_windows.
10498 (hscroll_windows): New function calling hscroll_window_tree that
10499 clears desired matrices on a frame when hscroll has been changed.
10500 (redisplay_p): Global flag set during redisplay.
10501 (redisplay_internal): Set and clear redisplay_p.
10503 * xfaces.c (min_char_bounds): Add assertion that width and height
10504 are not zero at the end. Initialize *height and *width to -1,
10505 instead of using BITS_PER_SHORT. If font has min_bounds.width
10506 zero, use its max_bounds.width.
10508 * x-list-font.c (Fx_list_fonts): Check INTEGERP or FLOATP for
10511 1998-01-12 Gerd Moellmann <gerd@acm.org>
10513 * dispnew.c (adjust_glyph_matrix): Do nothing if sizes haven't
10514 changed. Don't clear desired matrices.
10516 * xdisp.c (hscroll_windows): Compute pt after setting
10518 (redisplay_window): Don't do cursor movement based on current
10519 matrix if just_this_one_p is zero.
10521 * x-list-font.c (Fx_list_fonts): Additional parameter fixed.
10522 specifying that fixed-width, variable-width fonts or both
10523 should be returned.
10525 * xfaces.c (Qfixed, Qvariable): Symbols for use by x-list-fonts.
10526 (syms_of_xfaces): Initialize them.
10528 * xterm.c (x_list_fonts): Include auto-scaled fonts. Extend
10529 cached information.
10531 1998-01-11 Gerd Moellmann <gerd@acm.org>
10533 * xdisp.c (display_mode_line): Extend face to end of line.
10535 * xdisp.c (echo_area_display): Don't call display_string with
10536 echo_area_glyphs_length == 0 which would mean infinite precision.
10537 (redisplay_internal): Adjust window_end_vpos if necessary.
10539 1998-01-07 Gerd Moellmann <gerd@acm.org>
10541 * xdisp.c (display_line): Set it->ends_at_zv_p differently.
10543 1998-01-05 Gerd Moellmann <gerd@acm.org>
10545 * xdisp.c (get_row_start_continuation_line_width): Removed.
10546 (init_iterator_to_row_start): Set it.current_x from row.
10547 (try_window_id): Set it.continuation_lines_width directly from
10550 * xdisp.c (hscroll_windows): Use w->pointm if window is not
10552 (hscroll_windows): Center cursor in window.
10553 (hscroll_windows): Call move_iterator_in_display_line_to.
10555 1998-01-04 Gerd Moellmann <gerd@acm.org>
10557 * xdisp.c (hscroll_windows): Check hscroll < 0.
10558 (redisplay_window): Allow quick cursor movement if overlay arrow
10559 but frame uses window-based redisplay.
10560 (display_line): Take special case for nglyphs == 1 out of #if 0.
10561 (display_line): Set row->ends_at_zv_p after the loop displaying
10562 glyphs because ZV can be in truncated text.
10563 (hscroll_windows): Use init_iterator_to_row_start.
10565 * dispnew.c (scrolling_window): Calculation of overlapping
10567 (row_equal_p): Compare continued_p and continuation_line_p.
10569 1998-01-02 Gerd Moellmann <gerd@acm.org>
10571 * xterm.c (x_get_mode_line_face_gc): Renamed from
10572 x_get_modeline_face_gc.
10574 * xdisp.c (TEXT_PROP_DISTANCE_LIMIT): Max. distance from current
10575 buffer position to look for text properties.
10576 (get_face_from_cursor_pos): Use it.
10577 (compute_face_at_iterator_position): Use it.
10578 (next_element_from_buffer): Use it.
10580 * dispnew.c (scrolling_window): Decrement run's y-position
10581 when extending it backwards.
10583 * xterm.c (do_line_dance): Don't ever copy more than window height.
10585 1998-01-01 Gerd Moellmann <gerd@acm.org>
10587 * xdisp.c (redisplay_window): Cursor motion in unchanged
10588 matrix---use MATRIX_ROW_.*_IN_MIDDLE_OF_CHAR_P.
10589 (init_iterator_to_next_row_start): Special handling of lines
10590 ending in middle of char removed.
10591 (hscroll_windows): Hscroll windows only if window_end_valid is not
10593 (try_window_reusing_current_matrix): Call hscroll_windows.
10594 (init_iterator_to_row_start): Initialize iterator for display
10595 starting at a position given by a glyph_row->start.
10596 (redisplay_window): Don't use vmotion because it gives wrong
10597 results if lines are continued and variable width fonts are used.
10599 * dispextern.h (struct glyph_pos): New member dpvec_index.
10600 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test if row ends in the
10601 the middle of a character.
10602 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Test if row starts in
10603 the middle of a character.
10605 * xdisp.c (set_iterator_to_next): Increment it->dpvec_index, reset
10607 (next_element_from_display_vector): Use it->dpvec_index.
10608 (reseat_iterator): Reset it.
10609 (init_iterator): Reset it.
10610 (setup_iterator_dpvec_from_glyph_pos): Set up it->dpvec and
10611 it->pos.dpvec_index from a glyph_pos structure.
10612 (init_iterator_from_glyph_pos): Call the function above.
10613 (reseat_iterator_to_glyph_pos): Ditto.
10615 * dispnew.c (direct_output_forward_char): Don't use this method at
10616 overlay boundaries or near invisible text.
10617 (direct_output_forward_char): Step through glyph row to find
10620 * xterm.c (x_get_cursor_gc): Don't return cursor_gc for font ==
10621 frame font if line height differs from font height.
10623 * xdisp.c (set_iterator_to_next): Renamed from
10624 move_iterator_forward to avoid confusion with other move_.*
10627 * dispextern.h (FACE_RELIEF_P): Renamed from FACE_3D_P.
10629 1997-12-31 Gerd Moellmann <gerd@acm.org>
10631 * xterm.c (x_get_cursor_gc): Renamed from x_cursor_gc to use the
10632 same naming convention as for other GC functions.
10633 (draw_glyphs): Don't fill background when drawing a cursor and
10634 font height is less than line height.
10636 1997-12-30 Gerd Moellmann <gerd@acm.org>
10638 * xdisp.c (init_display_iterator.*): Renamed to shorter names
10641 * xdisp.c (move_iterator_forward): Restore it->len from
10642 it->dpvec_char_len if dpend reached.
10643 (get_next_display_element): Don't consume translated char
10645 (display_line): Don't set this_.* variables if row is continued.
10646 (start_display): Move to start of continuation line if ending
10647 up at end of continued line.
10649 * dispextern.h (struct display_iterator): New member dpvec_char_len.
10651 * xdisp.c (move_iterator_in_display_line_to): Check TO_POS after
10652 checking TO_X and continuation lines.
10653 (get_last_unchanged_at_beg_row): If first_changed_pos is the end
10654 of a continued line, don't consider this line as unchanged because
10655 it may no longer be continued.
10657 1997-12-29 Gerd Moellmann <gerd@acm.org>
10659 * xdisp.c (try_window_id): Catch the case that moving over
10660 continuation lines moves first_unchanged_at_end_row to a row not
10663 * dispextern.h (struct glyph_row): New member
10664 continuation_lines_width. Member continuation_line_p removed.
10665 (MATRIX_ROW_CONTINUATION_LINE_P): Non-zero if row displays a
10667 * xdisp.c (display_line): Set row->continuation_lines_width.
10668 (get_row_start_continuation_line_width): Set continuation lines
10669 width of iterator from continuation lines width of glyph row.
10670 (get_row_start_continuation_line_width): Make it inline.
10671 (set_window_cursor): Make it inline.
10672 (try_window_id): Use MATRIX_ROW_CONTINUATION_LINE_P.
10673 (Fdump_redisplay_state): Ditto.
10675 * dispnew.c (update_window_line): Use MATRIX_ROW_CONTINUATION_LINE_P.
10676 * xterm.c (x_draw_row_bitmaps): Use MATRIX_ROW_CONTINUATION_LINE_P.
10678 * xdisp.c (try_window_id): Set it.hpos and it.current_x to zero
10679 after determining the continuation lines width for
10680 last_unchanged_at_beg_row.
10682 * xterm.c (x_draw_row_bitmaps): Let overlay arrow have precedence.
10684 * xdisp.c (display_mode_line): Handle 3D faces only on frames
10685 which support faces.
10686 (init_display_iterator): Ditto.
10687 (move_iterator_via_matrix): Skip over truncation glyph at the row
10688 start on terminal frames.
10689 (hscroll_windows): Choose hscroll margin differently for window
10690 system and terminal frames.
10692 1997-12-28 Gerd Moellmann <gerd@acm.org>
10694 * xdisp.c (hscroll_windows): Change hscroll of windows.
10695 (redisplay_internal): Call it.
10697 * dispnew.c (direct_output_for_insert): Give up if a glyph
10698 doesn't fit completely on the line.
10699 (direct_output_forward_char): Give up for non-ASCII chars.
10700 (direct_output_forward_char): Set redisplay_performed_directly_p.
10702 * dispextern.h (struct display_iterator): Make first_visible_x
10703 and last_visible_x ints; this is for very long truncated lines.
10705 * xdisp.c (move_iterator_in_display_line_to): Separate check for
10706 MOVE_X_REACHED only if it->nglyphs == 0. This fixes cursor
10707 positioning problems with the mouse.
10708 (move_iterator_in_display_line_to): Truncate lines if it->current_x
10709 >= it->last_visible_x instead of >.
10710 (display_line): Ditto.
10712 * xterm.c (draw_glyphs): Draw rectangles if font could not be
10714 (XTproduce_glyphs): Calculate pixel_width for composite chars and
10715 non-ASCII chars differently. Always produce 1 glyph for composite
10716 chars. If font not found, use CHARSET_WIDTH to calculate width of
10718 (x_get_char_font_and_encoding): Return null if font could not be
10719 loaded. Reset font to null if fontset could not be loaded.
10720 (draw_glyphs): Fill background if font not found.
10721 (draw_glyphs): Unused parameter just_foreground_p removed. New
10722 parameter composite_glyph.
10723 (draw_glyphs): Use enumeration for parameter hl.
10724 (draw_glyphs): Pass a display area relative x-position to
10725 draw_glyphs when calling it recursively for composite chars.
10727 1997-12-27 Gerd Moellmann <gerd@acm.org>
10729 * xterm.c: Patches from handa.etl.go.jp integrated.
10730 (draw_glyphs): Don't rely on x_get_char_font_and_encoding to
10733 * xdisp.c (move_iterator_in_display_line_to): Check to_x
10736 * xterm.c (x_draw_relief): Draw relief lines.
10737 (draw_glyphs): Call x_draw_relief.
10739 1997-12-26 Gerd Moellmann <gerd@acm.org>
10741 * xfns.c (x_make_gc): Create relief GC's.
10743 * widget.c (create_frame_gcs): Create GC's for relief drawing.
10744 (setup_frame_gcs): Initialize them.
10745 (EmacsFrameDestroy): Free them.
10747 * xdisp.c (try_window_id): Get continuation lines width if
10748 last_unchanged_at_beg_row is continued or a continuation line.
10749 (move_iterator_via_matrix): Don't do it for mini-buffer windows.
10750 (redisplay_window): Case point has changed, and it has not
10751 moved off the frame. Don't increment row if PT equals the row
10752 end if the row ends in ZV.
10754 * xterm.c (x_draw_row_bitmaps): New function to draw bitmaps.
10755 (expose_line): Call it.
10756 (x_after_update_window_line): Call it.
10758 * xdisp.c (display_line): Reset continuation_lines_width when ZV
10761 * xterm.c (x_after_update_window_line): Draw continuation line
10764 * dispnew.c (update_window_line): Call
10765 after_update_window_line_hook when row's continuation_line_p
10768 * xterm.c (draw_bitmap): Draw new bitmap CONTINUATION_LINE_BITMAP.
10770 * xdisp.c (display_line): Handle continued lines on window system
10771 frames differently since continuation glyphs are not displayed.
10772 (move_iterator_in_display_line_to): Ditto.
10773 (move_iterator_in_display_line_to): Take the mini-buffer prompt
10775 (move_iterator_vertically_backward): Handle dy == 0 specially.
10776 (redisplay_window): Catch the case of small windows when
10777 recentering where moving back window_height/2 moves us beyond the
10778 top of the display area of the window.
10780 1997-12-18 Gerd Moellmann <gerd@acm.org>
10782 * xdisp.c (move_iterator_vertically_backward): Unused parameter
10785 1997-12-17 Gerd Moellmann <gerd@acm.org>
10787 * dispnew.c (direct_output_forward_char): Correct new cursor
10790 1997-12-16 Gerd Moellmann <gerd@acm.org>
10792 * xterm.c (x_after_update_window_line): Remove unused parameters.
10793 (XTclear_end_of_line): Clear to display_height instead of
10794 display_height - 1.
10796 * dispnew.c (set_frame_matrix_frame): Make it INLINE.
10797 (update_window_line): Call after_update_window_line_hook if
10798 rows have different y-positions, or different height.
10800 1997-12-14 Gerd Moellmann <gerd@acm.org>
10802 * frame.h (FRAME_MODE_LINE_PIXEL_HEIGHT): Removed.
10804 * window.c (coordinates_in_window): Call frame_mode_line_height.
10806 * xterm.c (x_draw_3d_border): Removed.
10807 (x_draw_row_borders): Removed.
10809 * dispnew.c (update_window): References to
10810 FRAME_MODE_LINE_BORDER_WIDTH removed.
10812 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Removed.
10813 (FRAME_MODE_LINE_HEIGHT): Removed.
10815 * xterm.c (draw_3d_borders_p): Removed.
10816 (draw_glyphs): Ditto.
10817 (XTwrite_glyphs): Ditto.
10818 (expose_line): Ditto.
10819 (x_initialize): Ditto.
10821 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Call
10822 frame_mode_line_height.
10824 * term.c (frame_mode_line_height): Get the pixel height of a
10826 (frame_mode_line_height_hook): Hook to implement system dependent
10829 * xterm.c (x_initialize): Set the hook.
10830 (XTframe_mode_line_height): X version of frame_mode_line_height.
10832 * xdisp.c (echo_area_display): Call gobble_input to flush the X
10834 (display_string): Don't add right truncation mark if line ends in
10836 (init_display_iterator): If called with modeline_p non-zero, set
10837 face_id to 1, which is the id of the mode line face.
10839 * keyboard.c (cmd_error_internal): Write to stderr if selected
10840 frame is Vterminal_frame under X. This is the case when a font
10841 cannot be loaded when Emacs starts. Replace test for
10842 FRAME_MESSAGE_BUF with test for glyphs_initialized_p.
10844 * xfaces.c (compute_overlay_string_char_face): Compute the
10845 face of a character in an overlay string.
10846 * xterm.h (compute_overlay_string_char_face): Prototype.
10847 * xdisp.c (compute_face_at_iterator_overlay_string_position):
10850 * xdisp.c (set_iterator_to_next_overlay_string): Formerly
10851 set_iterator_to_next_overlay.
10852 (struct overlay_entry): Structure used to sort overlay strings.
10853 (compare_overlay_entries): Compare overlay strings.
10854 (load_iterator_with_overlay_strings): Load a chunk of overlay
10856 (get_overlay_strings_at_iterator_position): Call it.
10857 (next_element_from_overlay_string): Set it->object to the overlay
10858 string. Prepare for setting it->position to a string position.
10859 (get_overlay_strings_at_iterator_position): Renamed from
10860 get_overlays_at_iterator_position.
10861 (setup_iterator_overlay_strings_from_glyph_pos): Changed to load
10862 chunks of overlay strings.
10863 (load_overlay_strings): Renamed from load_iterator_overlay_strings.
10865 * dispextern.h (struct display_iterator): New vector
10866 overlay_strings and new member n_overlay_strings---formerly
10867 overlays and n_overlays.
10868 (struct glyph_pos): Remove after_string_p; overlay_index
10869 renamed to string_index.
10871 1997-12-13 Gerd Moellmann <gerd@acm.org>
10873 * xdisp.c (copy_iterator): Increment n_iterator_overlay_vectors
10874 when allocating a vector.
10875 (release_iterator): Removed.
10876 (restore_iterator): Removed.
10877 (copy_iterator): Removed.
10879 1997-12-08 Gerd Moellmann <gerd@acm.org>
10881 * xdisp.c (redisplay_window): Use make_empty_enabled_row for
10882 clearing a mini-buffer window that is not active.
10883 (redisplay_window): Do not scroll one line too early when last
10884 window line is completely visible.
10885 (init_display_iterator): Leave some room to display the cursor
10886 after the last glyph on a continued line.
10888 * xterm.h (struct x_output): trunc_area_extra renamed
10890 (FRAME_X_FLAGS_AREA_WIDTH): Renamed from FRAME_X_TRUNC_WIDTH.
10892 * dispnew.c (update_window_line): Call
10893 after_update_window_line_hook when current row is not enabled
10894 which is the case after a frame has been cleared.
10896 * xdisp.c (display_mode_line): Reset row flags for truncation
10897 on right side for the mode line.
10899 * xterm.c (bitmap_type): Type of bitmap to display in flags
10901 (x_after_update_window_line): Use the enum.
10902 (draw_bitmap): Ditto.
10904 1997-12-07 Gerd Moellmann <gerd@acm.org>
10906 * xterm.c (x_clip_to_row): Include width of both flag areas.
10907 (do_line_dance): Ditto.
10908 (expose_window_tree): Ditto.
10909 * dispnew.c (update_window_line): Call
10910 after_update_window_line_hook for right truncation and continuation.
10911 * xdisp.c (init_display_iterator): Don't subtract width of
10912 continuation glyphs for window-based redisplay.
10913 * xterm.c (draw_bitmap): Draw continuation bitmap.
10914 * widget.c (set_frame_size): Double trunc_area_extra.
10915 (EmacsFrameSetCharSize): Ditto.
10916 * xfns.c (x_figure_window_size): Ditto.
10917 * xterm.c (x_set_window_size): Ditto.
10918 (x_after_update_window_line): Draw right truncation mark.
10920 * xterm.c (draw_glyphs): Bug fix buffer overrun.
10922 * window.h: Include blocker around dispextern.h removed.
10924 * eval.c (Feval): Check interrupt_input_block == 0.
10926 * dispextern.h (struct display_iterator): Former ovstr made a
10927 Lisp_Object overlay_string. New next_ovstr_face_check_pos and
10928 next_ovstr_invisble_check_pos; check at these positions for
10929 face changes and changes in invisible text property.
10930 (struct glyph_pos): Former ovlen now overlay_string_index.
10932 * xdisp.c (setup_iterator_overlays_from_glyph_pos): Set
10934 (set_iterator_to_next_overlay_string): Set overlay_string and
10935 pos.overlay_string_index.
10936 (get_overlays_at_iterator_position): Use overlay_string and
10937 overlay_string_index.
10938 (next_element_from_overlay_string): Use overlay_string and
10939 overlay_string_index.
10940 (move_iterator_forward): Increment overlay_string_index.
10941 (try_window_id): Use overlay_string and overlay_string_index.
10942 (move_iterator_forward): At end of dpvec, maybe use method
10943 next_element_from_overlay_string for the case a character from an
10944 overlay string was translated via a display table.
10945 (reseat_iterator_to_string): Take a Lisp string.
10946 (display_string): Pass a Lisp string to reseat_iterator_to_string.
10947 (compute_face_at_iterator_overlay_string_position): Compute face
10948 based on text properties for an overlay string.
10949 (next_element_from_overlay_string): Check invisible and face text
10951 (set_iterator_to_next_overlay_string): Restore face id before
10952 overlay strings when no more overlay strings are found to return.
10953 Initialize next_ovstr_.*check_pos for each new overlay string
10954 roï
\0ðoï
\0ðÃâ
\0ðoï
\0ðoï
\0ðTÿ
\0ðLá
\0ðoï
\0ðase_face): Made public.
10955 (merge_face_list): Ditto.
10956 (intern_computed_face): Ditto.
10958 * xdisp.c (redisplay_window): Cursor movement in unchanged
10959 window if PT > w->last_point. Goto try_to_scroll if bottom Y
10960 of row is > instead of >= last_y.
10962 * buffer.h (overlays_at): Function prototype.
10964 * xdisp.c (reseat_iterator_to_string): Clear iterator position.
10965 * dispextern.h (GET_NEXT_DISPLAY_ELEMENT): Removed.
10967 * xdisp.c (release_iterator): Release dynamically allocated
10968 memory of a display_iterator.
10969 (copy_iterator): Copy an iterator.
10970 (restore_iterator): Restore an iterator from a backup copy.
10971 (global): Use the functions above.
10972 * window.c (Fpos_visible_in_window_p): Call release_iterator.
10973 * dispnew.c (direct_output_for_insert): Call release_iterator.
10975 * dispextern.h (struct display_iterator): Allocate overlays
10976 vector dynamically.
10978 1997-12-06 Gerd Moellmann <gerd@acm.org>
10980 * Makefile.in (window.o): Depends on dispextern.h.
10982 * buffer.c (overlays_at): Make it work when extending vectors
10983 and an initial vector of zero size.
10985 * xdisp.c (set_iterator_to_previous_visible_line_end): Renamed
10986 from set_cursor_to_previous_visible_line_end.
10987 (set_iterator_to_next_visible_line_start): Renamed from
10988 set_cursor_to_next_visible_line_end.
10989 (set_next_iterator_stop_pos): Renamed from set_next_stop_pos.
10990 (compute_face_at_iterator_position): Renamed from
10991 compute_cursor_face.
10992 (set_iterator_to_next_overlay_string): Renamed from
10993 cursor_to_next_overlay_string.
10994 (get_overlays_at_iterator_position): Renamed from
10995 get_overlays_for_cursor.
10996 (reseat_iterator): Renamed from reseat_cursor.
10997 (setup_iterator_overlays_from_glyph_pos): Renamed from
10998 setup_overlays_from_pos.
10999 (init_string_iterator): Renamed from init_string_cursor.
11000 (get_next_display_element): Renamed from next_display_element.
11001 (move_iterator_forward): Renamed from advance_display_cursor.
11002 (get_overlays_at_iterator_position): Allocate overlays vector
11005 * xdisp.c: display_cursor renamed display_iterator.
11006 * dispextern.h: Ditto.
11007 * dispnew.c: Ditto.
11009 1997-12-01 Gerd Moellmann <gerd@acm.org>
11011 * window.c (mark_window_cursors_off): Function comment added.
11012 (window_topmost_p, window_rightmost_p): Removed because not used.
11014 1997-11-30 Gerd Moellmann <gerd@acm.org>
11016 * emacs.c (main): Function prototypes removed in profiling code.
11017 Use safe_bcopy as start of text.
11019 * dispnew.c (update_frame_line): update_line -> update_frame_line;
11020 mirrored_make_current -> make_current.
11022 * xdisp.c: (store_frame_title_char): New function to store a
11023 single character for the frame title with re-allocation of
11025 (init_xdisp): Intialize frame_title_.* variables to null.
11027 * dispnew.c (quit_error_check): Removed.
11029 * eval.c (Fsignal): Call to quit_error_check removed.
11030 * keyboard.c (quit_throw_to_read_char): Ditto.
11032 1997-11-23 Gerd Moellmann <gerd@acm.org>
11034 * xfaces.c (Fset_face_attribute_internal): Allow nil relief
11035 to mean a zero relief.
11037 1997-11-19 Gerd Moellmann <gerd@acm.org>
11039 * dispnew.c (new_glyph_matrix): Increment glyph_matrix_count
11041 (glyph_matrix_count, glyph_pool_count): Define unconditionally.
11042 (free_glyph_matrix): Decrement glyph_matrix_count unconditionally.
11043 (check_glyph_memory): Define function body unconditionally.
11045 1997-11-17 Gerd Moellmann <gerd@acm.org>
11047 * dispnew.c (scrolling_window): Alternative version of this
11050 1997-11-16 Gerd Moellmann <gerd@acm.org>
11052 * dispnew.c (make_empty_enabled_row): Make an empty, enabled row
11053 of height CANON_Y_UNIT.
11054 * dispextern.h: Prototype for that function.
11055 * xdisp.c (echo_area_display): Don't use display_string to
11056 produce empty rows. Use make_empty_enabled_row instead.
11058 * dispnew.c (scrolling_window): New version using diff-like
11059 algorithm activated.
11061 1997-11-15 Gerd Moellmann <gerd@acm.org>
11063 * dispnew.c (clear_current_matrices): Clear matrix of menu_bar_window
11064 (clear_desired_matrices): Ditto.
11065 (adjust_frame_glyphs_for_window_redisplay): Use FRAME_WINDOW_WIDTH
11066 for menu_bar_window.
11068 * alloc.c (mark_object): Mark menu_bar_window of frames.
11070 * xterm.c (XTupdate_window_end): Don't display cursor if
11073 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Don't
11075 (update_window): Don't set cursor if pseudo_window_p.
11077 * dispextern.h (WINDOW_WANTS_MODELINE_P): Test pseudo_window_p.
11079 * window.h (struct window): New flag pseudo_window_p set to
11080 1 for windows that aren't really part of the window tree, like
11081 menu_bar_window's of frames.
11082 * window.c (make_window): Initialize it.
11083 (replace_window): Ditto.
11084 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Ditto.
11086 * frame.c (make_frame): Initialize menu_bar_window to nil.
11088 * xterm.c (XTget_display_info): FACE_SHADOW_THICKNESS renamed
11091 * xfaces.c (copy_face): shadow_thickness -> relief.
11093 (merge_faces): Ditto.
11094 (compute_base_face): Ditto.
11095 (Fset_face_attribute_internal): Ditto.
11096 * dispextern.h (struct face): Ditto.
11098 * dispnew.c (update_frame): Update menu_bar_window of the frame if
11101 * xdisp.c (display_menu_bar): Display the menu bar in
11102 f->menu_bar_window if appropriate.
11103 (display_mode_line): Use MATRIX_MODE_LINE_ROW.
11105 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Allocate
11106 dummy window and window matrices for f->menu_bar_window.
11107 (free_glyphs): Free the dummy window and its glyph matrices.
11109 * frame.h (struct frame): New member menu_bar_window.
11111 1997-11-09 Gerd Moellmann <gerd@acm.org>
11113 * dispnew.c (scrolling_window): New version with diff-like
11116 * xdisp.c (try_window_reusing_current_matrix): If new_start >
11117 old_start always start displaying at start of
11118 first_row_to_display. The previous scheme failed if the last row
11121 * dispnew.c (update_window): Remove cost calculations. Remove
11122 redundant preempt_count calculations.
11124 * xterm.c (x_clip_to_row): Set clipping for non-text rows
11127 * dispnew.c (update_window): Use WINDOW_WANTS_MODELINE_P.
11129 * window.c (syms_of_window): Functions for marginal areas if
11130 WITH_MARGINAL_AREAS is defined.
11132 * xdisp.c (try_window_reusing_current_matrix): Trace fprintf
11135 * dispnew.c (scrolling): Call line_hash_code because hash values
11136 are not set in the frame matrix.
11138 * xdisp.c (try_window_id): Fix scrolling for terminal frames.
11139 (redisplay_window): Check line_ins_del_ok before calling
11141 (try_window_reusing_current_matrix): Give up for terminal frames
11142 if window is not full width or we cannot insert/delete lines.
11143 (try_window_reusing_current_matrix): Fixed scrolling for terminal
11146 * alloc.c (mark_glyph_matrix): Bug fix - pass pointer to
11147 Lisp_Object to mark_object.
11149 * xdisp.c (sync_frame_with_window_matrix_rows): Make frame and
11150 window rows have the same glyph pointers.
11151 (try_window_id): Call it.
11153 * alloc.c (mark_glyph_matrix): Function to mark Lisp objects in
11155 (mark_object): Call it.
11157 * xdisp.c (insert_left_trunc_glyphs): Use 0 object in glyphs for
11159 (display_line): Ditto.
11160 (display_line): Ditto for DISP_CONTINUATION.
11161 (display_line): Truncation on right: test current_x >
11163 (skip_in_display_line_to): Ditto.
11164 (skip_via_matrix): Stop skipping in glyph row at face extending
11165 glyphs or at padding spaces.
11167 * dispnew.c (fill_up_glyph_row_with_spaces): Comment extended.
11169 * xdisp.c (display_line): Use glyph->object == 0 for padding
11171 (redisplay_window): Don't let cursor move over padding
11174 * dispextern.h (struct glyph): Fix comment for object.
11176 1997-11-08 Gerd Moellmann <gerd@acm.org>
11178 * dispextern.h (WINDOW_WANTS_MODELINE_P): Non-zero if a window
11180 * xdisp.c (redisplay_window): Use it.
11181 (display_mode_line): Check that window wants mode line.
11183 1997-11-03 Gerd Moellmann <gerd@acm.org>
11185 * xdisp.c (display_menu_bar): Enable menu bar rows.
11187 * xterm.c (x_draw_hollow_cursor): X positions based on text area.
11188 (x_erase_phys_cursor): Ditto.
11189 (x_draw_bar_cursor): Ditto.
11191 1997-11-02 Gerd Moellmann <gerd@acm.org>
11193 * dispnew.c (update_marginal_area): Update a marginal area.
11194 (update_text_area): Update text area.
11195 (update_window_line): Call both.
11197 * xterm.c (XTclear_end_of_line): Translate coordinates area
11200 * dispnew.c (updated_area): Row area being updated in
11201 update_window_line.
11202 (update_window_line): Set it.
11203 (update_marginal_area): Clear to end of line if not in text area.
11205 * window.c (Fset_window_margins): Increment
11206 windows_or_buffer_changed. Adjust glyphs.
11208 * dispextern.h (WINDOW_TEXT_TO_FRAME_PIXEL_X): Convert text
11209 area X coordinates to frame coordinates.
11210 (WINDOW_DISPLAY_LEFT_AREA_PIXEL_WIDTH): Width of left marginal area.
11211 (WINDOW_DISPLAY_RIGHT_AREA_PIXEL_WIDTH): Same for right area.
11212 (WINDOW_DISPLAY_TEXT_AREA_PIXEL_WIDTH): Same for text area.
11214 * xterm.c (draw_glyphs): Use text area width as display width.
11216 * xdisp.c (init_display_info): Subtract widths of marginal areas
11217 from last_visible_x.
11219 * alloc.c (mark_object): Mark objects in glyphs only if they are
11220 overlays. Mark only if current_matrix != 0. Activate the code.
11222 * window.c (Fset_window_margins): Set margins.
11223 (Fwindow_margins): Return margin area widths.
11224 (syms_of_window): Add defsubr's.
11226 * window.h (struct window): left_margin_width, right_margin_width.
11228 * xfns.c (x_set_trunc_area_width): Set truncation pixel width
11231 * frame.h (FRAME_TRUNC_COLS): Number of columns occupied by
11232 truncation/overlay arrow area.
11233 (struct frame): trunc_area_pixel_width, and _cols.
11235 * window.c (Fsplit_window): Use it.
11237 * window.c (Fsplit_window): Set cursor vpos to -1 after
11239 (Fsplit_window): SUbtract/add FRAME_TRUNC_WIDTH for horizontally
11242 * dispnew.c (set_window_cursor_after_update): Accept out
11243 of bounds cursor positions.
11245 * xdisp.c (redisplay_internal): Check that after cursor motion
11246 within line, PT is on same line.
11248 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Don't subtract
11251 * xterm.h (struct x_output): trunc_area_extra.
11252 (CHAR_TO_PIXEL_WIDTH): Add in trunc_area_extra.
11253 (PIXEL_TO_CHAR_WIDTH): Subtract it.
11254 * widget.c (set_frame_size): Set it.
11255 (EmacsFrameSetCharSize): Ditto.
11256 * xfns.c (x_figure_window_size): Ditto.
11257 * xterm.c (x_set_window_size): Ditto.
11259 * dispnew.c (check_matrix_invariants): First try to check window
11262 * xdisp.c (try_window_reusing_current_matrix): Try window
11263 redisplay with different window start.
11265 1997-11-01 Gerd Moellmann <gerd@acm.org>
11267 * window.c (make_window): Set window_end_pos/vpos.
11268 (Fsplit_window): Zero last_cursor, window_end_valid.
11269 (Fset_window_buffer): Set window_end_vpos, zero last_cursor.
11271 * dispnew.c (check_matrix_invariants): Check window_end_pos/vpos.
11273 1997-10-31 Gerd Moellmann <gerd@acm.org>
11275 * window.c (make_window): Initialize last_cursor.
11276 (replace_window): Ditto.
11278 1997-10-29 Gerd Moellmann <gerd@acm.org>
11280 * window.h: New member last_cursor.
11281 * dispnew.c (direct_output_for_insert): Set it.
11282 (direct_output_forward_char): Ditto.
11283 * xdisp.c (redisplay_internal): Ditto.
11285 1997-10-28 Gerd Moellmann <gerd@acm.org>
11287 * xdisp.c (redisplay_internal): Optimization 1 change partially
11288 reverted. Check this again later.
11289 (skip_via_matrix): Remove redundent test for
11290 MATRIX_ROW_DISPLAYS_TEXT_P.
11292 1997-10-27 Gerd Moellmann <gerd@acm.org>
11294 * dispnew.c (update_window_line): Call
11295 after_update_window_line_hook only for interesting constellations.
11296 (free_glyph_matrix): Fix memory leak.
11298 * window.h: Include blocker WINDOW_H_INCLUDED, include
11300 (struct window): phys_cursor_glyph as struct glyph. * window.c
11301 (make_window): Initialize it.
11302 (replace_window): Ditto.
11303 * dispnew.c (free_window_matrices): Remove freeing of
11305 (check_matrix_invariants): Renamed from check_current_matrix_...
11306 * xterm.c: All references to phys_cursor_glyph changed.
11308 * dispextern.h (DISPEXTERN_H_INCLUDED: New include blocker.
11310 * xfaces.c: Comment update.
11312 * window.h (struct window): Make phys_cursor_glyph a struct glyph
11313 pointer. Remove phys_cursor_ascent, descent, etc.
11314 * dispnew.c (free_window_matrices): Free it.
11315 * window.c (make_window): Allocate it.
11316 (replace_window): Ditto.
11317 * xterm.c (x_draw_phys_cursor_glyph): Draw it.
11318 (x_display_and_set_cursor): Fill it.
11319 (x_phys_cursor_in_rect_p): Use it.
11320 (x_draw_hollow_cursor): Ditto.
11321 (x_draw_bar_cursor): Ditto.
11322 (x_erase_phys_cursor): Ditto.
11324 * xdisp.c (skip_in_display_line_to): Use SET_INFO_FROM_CURSOR.
11326 * xterm.c (XTget_display_info): Handle 3D facess.
11327 (draw_glyphs): Ditto.
11329 * xdisp.c (Fdump_redisplay_state): Change interactive spec to "p".
11331 * xfaces.c (Fset_face_attribute_internal): New face attribute
11333 (copy_face): Handle shadow_thickness.
11335 (merge_faces): Ditto.
11336 (compute_base_face): Ditto.
11338 * dispextern.h (struct display_cursor): New member start_of_3d_run_p.
11339 (struct display_info): Ditto.
11340 (SET_INFO_FROM_CURSOR): Transfer it to display_info.
11341 * xdisp.c (compute_cursor_face): Set it.
11342 (advance_display_cursor): Clear it.
11344 * xdisp.c (init_string_cursor): Initialize face_id to -1.
11345 (init_string_cursor): Init face_id to zero.
11347 * dispextern.h (struct face): New member shadow_thickness.
11349 * xdisp.c (compute_cursor_face): Set limit for text property
11352 * dispnew.c (update_window_line): Try to resynch with current line
11353 to prevent mode line flickering.
11355 1997-10-26 Gerd Moellmann <gerd@acm.org>
11357 * dispnew.c (set_window_cursor_after_update): React again
11358 on cursor_in_echo_area >= 0.
11360 * xdisp.c (echo_area_display): Clear desired matrix before
11361 displaying into it.
11362 (display_menu_bar): Clear glyph row instead of hoping it is not
11363 enabled. This is safer.
11365 * dispnew.c (check_current_matrix_invariants): Check only
11368 * xdisp.c (try_window_id): Handle window end setting in case of
11369 display to end of window, but only non-text lines displayed.
11371 * dispnew.c (check_current_matrix_invariants): Check nrows for zero.
11372 (check_current_matrix_invariants): Check used counts.
11376 * dispnew.c (scrolling): Use hash codes from rows.
11378 * xdisp.c (Fdump_redisplay_state): Dump current matrix.
11380 * dispnew.c (scrolling_window): Invalidate conflicting runs.
11382 1997-10-25 Gerd Moellmann <gerd@acm.org>
11384 * dispextern.h (struct glyph_matrix): Flag no_scrolling_p.
11385 * dispnew.c (update_window): Use it.
11386 (clear_glyph_matrix): Clear it.
11387 * xdisp.c (try_window_id): Set it.
11389 * dispextern.h (struct glyph_row): New flag ends_at_zv_p.
11391 * xdisp.c (redisplay_internal): Increment glyph positions differently.
11393 * dispextern.h: More comments etc.
11395 1997-10-24 Gerd Moellmann <gerd@acm.org>
11397 * dispnew.c (set_window_cursor_after_update): Set cursor
11398 for cursor_in_echo_area == 0 to (0, 0).
11400 * dispextern.h (struct glyph_row): New flags continuation_line_p
11401 and displays_text_p.
11402 (MATRIX_ROW_DISPLAYS_TEXT_P): Use displays_text_p.
11403 * xdisp.c (display_line): Set them.
11404 (try_window_id): Move to start of continuation line to find out
11405 continuation_line_width.
11406 (first_unchanged_current_row): Don't retract row if continued,
11409 * xterm.c: Map X coordinates.
11411 1997-10-23 Gerd Moellmann <gerd@acm.org>
11413 * dispnew.c (buffer_posn_from_coords): Translate X for right to
11416 * xdisp.c (display_line): Set right_to_left_p after clearing the row.
11418 * xterm.c (XTclear_end_of_line): Respect right_to_left_p.
11420 * xdisp.c (try_window_id): Clear desired matrix if not successul.
11422 * xdisp.c (try_window_id): Call update_window_begin_hook/end_hook.
11424 * dispnew.c (update_window_begin_hook, update_winodw_end_hook):
11425 Set this to functions to be called before/after window updates.
11426 (direct_output_for_insert): Call them.
11427 (update_window): Ditto.
11428 (update_frame): Call update_begin/ update_end for windows.
11430 * xterm.c (XTupdate_window_begin): Called before window updates.
11431 (XTupdate_end): Called after window updates.
11432 (x_initialize): Set hooks to above.
11434 * xdisp.c (init_display_info): Initialize c and len of
11437 * xterm.c (x_get_char_font_and_encoding): Bug fix. Don't load
11438 fonts more than once.
11440 1997-10-22 Gerd Moellmann <gerd@acm.org>
11442 * xdisp.c (display_line): Handle most common case of current_x <
11443 last_visible_x separately.
11445 * dispextern.h (display_element_type): DISP_ELLIPSIS removed.
11447 * dispnew.c (update_window_line): Compare pixel widths of glyphs
11448 so that face extending space doesn't compare equal to normal space
11451 * xdisp.c (display_line): Make sure we have a position for
11452 a line end in an otherwise blank line if face is extended.
11454 * dispnew.c (direct_output_for_insert): Increment row end position.
11456 * window.c (Fpos_visible_in_window_p): Use old meaning of
11459 * xdisp.c (init_display_cursor_from_glyph_pos): New.
11461 * dispextern.h (MATRIX_ROW_FIRST_POS): Use row start.
11463 * dispnew.c (increment_glyph_row_buffer_positions): Adjust
11464 start and end positions in rows.
11465 (increment_glyph_row_buffer_positions): Stop adjusting at
11466 glyphs with positions <= 0.
11468 * dispextern.h (struct glyph_pos): Structure desribing a text
11469 position including position in overlay.
11470 (struct glyph_row): Use it for start and end positions.
11471 (struct display_cursor): Use it.
11473 (display_line): Set row start and end positions.
11475 * dispnew.c (copy_row_except_pointers): Use bcopy and struct
11478 1997-10-21 Gerd Moellmann <gerd@acm.org>
11480 * dispnew.c (update_window): Add scrolling_window again. It's
11481 necessary for scroll_step != 0.
11483 * xdisp.c (redisplay_window): Use vmotion for scroll_step
11486 * xdisp.c (last_unchanged_current_row): Use window_end_vpos.
11488 * xterm.c (XTupdate_end): Flush only for messages.
11490 * xdisp.c (try_window_id): Assert last_unchanged_row >=
11491 first_unchanged_row.
11493 * xterm.c (XTupdate_end): Flush if miniwindow.
11495 * dispnew.c (matrix_row_last_pos): New function.
11496 * dispextern.h (MATRIX_ROW_LAST_POS): Call it.
11497 Large comment moved to xdisp.c.
11499 * xdisp.c (redisplay_window): Bug fix: PT set to value > Z.
11500 (skip_via_matrix): Check window_end_valid instead of
11503 * dispnew.c (scroll_glyph_matrix_range): Bug fix.
11504 (update_window): scrolling_window commented out. It has negative
11505 effect most of the time.
11507 * xdisp.c (try_window_id): Correct parameters to
11508 scroll_glyph_matrix_range.
11510 * xterm.c (XTupdate_end): XFlush commented out.
11512 * window.h: Comments for window_end_pos/vpos.
11514 * xdisp.c (skip_to): Assert current_buffer is the buffer
11515 of the window in which we are skipping.
11517 * dispnew.c (update_window_line): Optimized clear_end_of_line.
11519 * xterm.c (draw_glyphs): Bug fix. Return window relative X
11522 1997-10-20 Gerd Moellmann <gerd@acm.org>
11524 * dispextern.h (MATRIX_ROW_LAST_POS): Go back one glyph if this is
11525 a face extending glyph.
11527 * xdisp.c (try_window_id): Check if point will appear.
11528 (set_cursor_from_row): Set cursor position from a glyph row.
11530 * dispnew.c (update_window_line): Write entire line if hash
11531 codes of lines differ.
11533 * dispextern.h (MATRIX_ROW_EXTENDS_FACE_P): Value is non-zero
11534 if glyph row has an infinite width glyph at its end.
11536 * xdisp.c (last_unchanged_current_row): Respect partially visible
11537 lines when looking for the last row displaying text.
11538 (try_window_id): Handle partially visible lines better.
11540 1997-10-19 Gerd Moellmann <gerd@acm.org>
11542 * dispnew.c (update_window): Remove unused variable.
11543 (update_window_line): Simplified.
11545 * xterm.c (x_get_char_font_and_encoding): Handle most common
11546 case at the beginning.
11548 * xdisp.c (advance_display_cursor): Dispatch on method and
11549 order if statements by expected call frequency. Fixed unclosed
11552 * xdisp.c (try_window_id): New implementation.
11554 * dispnew.c (increment_glyph_row_buffer_positions): Capture
11555 rows displaying a line end, only.
11557 1997-10-18 Gerd Moellmann <gerd@acm.org>
11559 * window.c (Fpos_visible_in_window_p): Remove use of window_end_vpos.
11561 1997-10-14 Gerd Moellmann <gerd@acm.org>
11563 * xdisp.c (display_line): Mark empty lines not corresponding to
11564 text with position -1.
11566 * xterm.c (x_erase_phys_cursor): Don't bother to erase cursor if
11567 not within window matrix bounds.
11569 * dispextern.h (struct display_cursor): New member REGION_SHOWING_P.
11570 (struct display_info): NGLYPHS_TO_IGNORE removed.
11571 * xdisp.c: References to NGLYPHS_TO_IGNORE removed.
11575 * xdisp.c (init_display_cursor): Set it.
11576 (display_line): Use it to set W->REGION_SHOWING.
11578 * xdisp.c (skip_via_matrix): Check for overlay arrow.
11580 * region-cache.h: functino prototypes with PROTO.
11582 * dispnew.c (buffer_posn_from_coords): Use -1 as skip position.
11584 * xdisp.c (skip_via_matrix): Check for rows that don't contain
11587 * xterm.c (XTmouse_position): Calculate LAST_MOUSE_GLYPH
11588 rectangle based on minimum character bounds.
11590 * keyboard.c (make_lispy_event): Mouse clicks; don't do frame
11591 glyph position calculations.
11592 (make_lispy_movement): Use buffer_posn_from_coords and window
11593 relative coordinates.
11595 * xterm.c (construct_mouse_click): Remove #if 0 case.
11597 * dispextern.h (MATRIX_ROW_BOTTOM_Y): Return bottom pixel y of
11600 * xdisp.c (skip_via_matrix): Skip using current matrix if up to
11603 (redisplay_window): Remove code skipping using current matrix.
11605 1997-10-13 Gerd Moellmann <gerd@acm.org>
11607 * xdisp.c (redisplay_window): Use available current matrix to
11608 skip faster when only point is moved withing the window.
11610 * intervals.c: Include stdio.h.
11611 (find_interval): Trace to stderr to catch some nasty error
11612 that did not yet occur again with tracing.
11613 (set_point): Ditto.
11615 * dispnew.c (shift_glyph_matrix): Experimental code for handling
11616 cursor positioning on partially visible lines.
11617 (set_window_cursor_after_update): Ditto.
11619 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Bug fix.
11621 * window.h (struct window): start_y removed.
11623 * window.c (make_window): start_y removed.
11624 (replace_window): Ditto.
11626 * xdisp.c (last_max_ascent, last_max_descent): Ascent and
11627 descent values of the last line processed by skip_to.
11628 (redisplay_window): Use them.
11629 (skip_to): Set them.
11631 * dispextern.h (struct display_cursor): New member METHOD.
11633 * xdisp.c: Use function member METHOD.
11635 * xdisp.c (set_next_stop_pos): Determine next position at which to
11636 check for face properties, invisible text properties, and overlays.
11637 (compute_cursor_face): Use it.
11638 (get_overlays_for_cursor): Ditto.
11639 (reseat_cursor): Ditto.
11640 (next_display_element): Ditto.
11642 Sun Aug 24 08:50:52 1997 Gerd Moellmann <gerd@acm.org>
11644 * termhooks.h: Some hooks with prototypes.
11646 * term.c: Some hooks with function prototypes.
11648 * xdisp.c (reseat_cursor): Additional argument force_p. Avoid
11649 computing face if possible.
11651 * xdisp.c (next_display_element): Use face from glyph from display
11652 table only if != 0.
11654 * emacs.c: FreeBSD headers for profiling removed.
11656 * dispnew.c (direct_output_for_insert): Don't use PT-1 for
11657 display cursor, use DEC_POS instread.
11659 * xfaces.c (load_font): Use x_load_font to load fonts so that
11660 all fonts are in the font table.
11661 (unload_font): Don't XFreeFont.
11663 * dispnew.c (row_equal_p): Compare ascent, descent and visible
11666 * xterm.c (draw_glyphs): Use 8-bit functions if possible.
11667 (x_erase_phys_cursor): Clear only visible part of row.
11668 (x_draw_bar_cursor): Set clipping.
11669 (x_draw_hollow_cursor): Ditto.
11670 (x_display_and_set_cursor): Remove clipping.
11671 (expose_window_tree): Take trunc border into account.
11672 (x_phys_cursor_in_rect_p): Test if phys_cursor intersects a rect.
11673 (expose_window): Use it.
11675 * xdisp.c (display_string): Catch case that we are called with
11676 current_x already beyond max_x.
11677 (global): Fix usage of FRAME_WINDOW_P <-> FRAME_WINDOW_REDISPLAY_P.
11678 (init_display_info): Subtract vertical border glyph from
11681 * scroll.c (scrolling_window_1): Removed.
11683 * dispnew.c (adjust_frame_glyphs): Split into two functions,
11684 based on redisplay method used.
11685 (adjust_frame_glyphs_for_frame_redisplay): Part for frame
11687 (adjust_frame_glyphs_for_window_redisplay): Part for purely
11688 window based redisplay.
11690 * frame.h (FRAME_WINDOW_REDISPLAY_P): Changed to not depend
11691 on data structures.
11693 * dispnew.c (adjust_glyph_matrix): Additional parameter W.
11694 Handle own storage for purely window based redisplay.
11695 (allocate_matrices_for_frame_redisplay): Formerly part of
11697 (allocate_matrices_for_window_redisplay): Ditto.
11699 * dispextern.h (struct glyph_matrix): window_top_y,
11702 * dispnew.c (allocate_matrices_for_window_redisplay): Detect
11703 and optimize some common cases of window changes.
11705 * emacs.c (main): Remove own profiling code because 0.95 now
11708 Fri Aug 22 18:46:43 1997 Gerd Moellmann <gerd@acm.org>
11710 * xterm.c (XTupdate_end): Draw horizontal border at right
11712 (expose_window): Draw vertical border.
11713 (XTclear_end_of_line): Accept width <= 0 and height <= 0 but
11716 * xdisp.c (redisplay_internal): Set update_mode_line if paused
11717 for non full width windows only if not window redisplay.
11719 * dispnew.c (update_window_tree): Or paused_p return of called
11722 * xterm.c (x_display_and_set_cursor): Return if hpos/vpos outside
11725 * window.c (Fset_window_configuration): adjust_glyphs being
11727 (Fset_window_configuration): Set frame garbaged if not all
11728 leaf windows reused.
11730 1997-08-21 Gerd Moellmann <gerd@acm.org>
11732 * dispnew.c (clear_glyph_matrix): Additional argument specifiying
11733 that rows should really be cleared. Used for current matrices.
11735 * dispnew.c (scrolling_window): Bug fix.
11736 (line_dance_hook): Formerly line_dance_fn, take only one
11739 * dispextern.h (struct run): Remove current_vpos.
11741 * xterm.c (do_line_dance): Only one parameter.
11743 * xdisp.c (display_line): Set continued_p.
11745 * dispextern.h (struct glyph_row): New flag continued_p.
11746 Fix truncated_on_left_p and truncated_on_right_p to be bits.
11747 (struct glyph_row):
11749 Thu Aug 21 14:37:34 1997 Gerd Moellmann <gerd@acm.org>
11751 * xdisp.c (skip_vertically_backward): Avoid negative vpos values
11752 when calling skip_to for continued lines.
11754 * dispnew.c (change_frame_size_1): Set frame garbaged.
11756 * xterm.c (expose_window): Check enabled_p of rows.
11758 * xdisp.c (redisplay_internal): Compare line heights before and
11759 now for redisplay optimization 2 (hit).
11760 (display_line): Set this_line_pixel_height.
11762 * xterm.c (x_draw_row_borders): Use FRAME_MODE_LINE_HEIGHT height
11764 (x_clip_to_row): Use MATRIX_ROW_VISIBLE_HEIGHT. Simplified.
11765 (do_line_dance): Simplified and pixel corrected.
11767 * dispnew.c (scrolling_window): Simplified.
11769 * xterm.c (x_draw_3d_border): Inset rectangle by line width.
11771 * dispnew.c (update_window): Add FRAME_MODE_LINE_BORDER_WIDTH
11772 to mode line row->x.
11774 Wed Aug 20 11:23:28 1997 Gerd Moellmann <gerd@acm.org>
11776 * xterm.c (x_get_char_font_and_encoding): Don't let fontset
11777 override font of face.
11778 (draw_glyphs): Correct return value.
11779 (XTclear_end_of_line): Compare differently with output cursor
11781 (x_draw_hollow_cursor): 2 parameters, window and row.
11783 * dispnew.c (update_window_line): If rows have different height
11784 or y, write entire line.
11786 * xdisp.c (compute_line_metrics): Reset max_ascent and max_descent
11789 * xfaces.c (Fset_face_attribute_internal): Don't call
11790 frame_update_line_height.
11791 (merge_faces): Don't use default font if new font has different
11794 Tue Aug 19 14:38:05 1997 Gerd Moellmann <gerd@acm.org>
11796 * xterm.c (x_display_and_set_cursor): Use FONT_WIDTH if width
11797 unknown. Some fonts have min_width zero.
11798 (draw_glyphs): Don't draw underlines to the end of the display
11799 line if face is merely extended to that point.
11800 (draw_glyphs): Don't assume background is filled if
11801 just_foreground_p but extending to end of line.
11803 * xterm.c (XTclear_end_of_line): Clip only to display_height - 1
11804 for partially visible last lines.
11805 (x_clip_to_row): Ditto.
11806 (x_clip_to_row): Clip to display_height-1 if y + line_height >
11807 display_height since line_height is really a line distance.
11808 (x_display_and_set_cursor): If cursor on padding glyph, use
11809 min_bounds pixel width.
11811 Mon Aug 18 09:39:18 1997 Gerd Moellmann <gerd@acm.org>
11813 * xterm.c (x_clip_to_row): Height value was 1 too large.
11814 (XTclear_end_of_line): Clip to display area.
11816 * xfns.c (x_figure_window_sizes): Add trunc border width
11817 to frame pixel width.
11819 * xdisp.c (next_display_element): Don't display overlay strings
11820 within invisible text.
11821 (skip_vertically_backward): Skip display lines.
11823 Sat Aug 16 13:13:32 1997 Gerd Moellmann <gerd@acm.org>
11825 * xdisp.c (x_consider_frame_titie): Don't pad with blanks.
11827 * xdisp.c (next_display_element): Next invisible
11828 text check position computed differently.
11830 * dispextern.h (struct display_cursor): last_invisible_text_pos
11831 and display_ellipsis_for_invisible_p removed.
11833 * xdisp.c (next_display_element): Set last_invisible_text_pos
11834 to the last position at which invisible text was found. Don't
11835 decrement cursor.pos for newlines and cr with ellipsis. Set
11836 dpvec for `...' due to invisible text directly.
11837 (redisplay_internal): Don't assert that cursor is at PT after
11838 skip_to. It may be in invisible text.
11840 * keyboard.c (make_lispy_event): For mouse clicks, use
11843 * xdisp.c (next_display_element): Call get_overlays_for_cursor when
11844 next_overlay_pos is reached. Use limit cursor.pos + 100 when
11845 checking for invisible text.
11847 * xterm.h (WINDOW_COL_PIXEL_X etc.) Removed.
11849 * dispextern.h (WINDOW_TO_FRAME_HPOS/VPOS): Moved to dispnew.c
11851 * xfns.c (x_contour_region): Use pixel coordinates from window
11852 cursor instead of WINDOW_TO_FRAME_H/VPOS.
11854 * dispextern.h (FRAME_TO_WINDOW_HPOS, FRAME_TO_WINDOW_VPOS):
11857 * dispnew.c (frame_to_window_hpos, frame_to_window_vpos): Removed.
11859 * xterm.c (x_y_to_hpos_vpos): Get hpos/vpos from window relative
11861 (note_mouse_highlight): Use it.
11863 * xdisp.c (echo_area_display): Ignore calls for terminal frames
11864 under a window system.
11866 * dispnew.c (adjust_frame_glyphs): Call redraw_frame if
11868 (update_window_line): Add width of face padding glyph to
11869 displayed widths of rows.
11871 * xterm.c (x_display_and_set_cursor): Set clipping after
11874 * window.c (Fset_window_configuration): Free only those
11875 window matrices not reused.
11876 (get_leaf_windows): Build vector of leaf windows.
11877 Corrupted archive restored from v77.
11879 * xdisp.c (display_string): Stop at >= last_visible_x if truncating
11880 like display_line does.
11882 * xdisp.c (display_mode_line): Don't hscroll mode line.
11884 * xterm.c (draw_glyphs): Wrong run_width computed for horiz. split
11886 (x_scroll_bar_create): #3039 Clear area below scroll bar to remove
11887 garbage between mode lines when splitting windows horiz.
11889 * dispnew.c (direct_output_for_insert): Bug fix.
11891 * dispextern.h (struct display_cursor): New member string_length.
11893 * xdisp.c (next_display_element): Return padding spaces.
11894 (init_string_cursor): Take precision and field_width
11895 (display_string): Use string cursor, skip over invisible text.
11897 Thu Aug 14 10:41:41 1997 Gerd Moellmann <gerd@acm.org>
11899 * xterm.c (x_clip_to_row): Clip to partially visible lines.
11900 (x_display_and_set_cursor): Call it.
11901 (draw_glyphs): Call it
11902 (draw_bitmap): Call it.
11904 * dispnew.c (adjust_frame_glyphs): Optimize frame garbaging.
11905 (allocate_leaf_matrix): Return flags.
11906 (row_equal_p): Compare enabled_p.
11908 * xterm.c (x_erase_phys_cursor): Set phys_cursor_on_p to 0
11911 * xterm.c (x_display_and_set_cursor): Bar cursor 1 pixel taller.
11912 (draw_glyphs): Clip height one pixel taller.
11914 * dispnew.c (direct_output_for_insert): Give up for hscrolled
11917 * xdisp.c (display_line): Don't scroll mini prompt.
11919 * xdisp.c (echo_area_display): Call update_single_window if
11922 * dispnew.c (update_window_line): Call scrolling_window.
11923 (scrolling_window): Work on enabled desired lines only.
11924 (update_single_window): Update a single window like update_frame
11925 does for all windows.
11926 (update_window, update_window_tree): Additional argument
11928 (update_frame): Pass no_scrolling_p to update_window_tree.
11929 (update_window): Don't call scrolling_window if no_scrolling_p.
11931 * xterm.c (x_erase_phys_cursor): Do nothing if type == -1.
11932 Erase under hollow cursor.
11933 (x_display_and_set_cursor): Do nothing if cursor glyph row
11934 not enabled. Draw bar cursor 1 pixel smaller.
11936 * dispnew.c (adjust_frame_glyphs): Don't set frame garbaged
11937 since update will follow soon.
11939 * xdisp.c (echo_area_display): Unitialized variable.
11941 * xterm.c (draw_bitmap): Previously draw_truncation; draw
11942 overlay arrow bitmap.
11944 * xdisp.c (display_line): For truncated lines, consider everything
11945 up to the final \n as part of the line for cursor positioning.
11947 * xterm.c (draw_truncation): Take FRAME_X_TRUNC_WIDTH into account.
11948 (x_after_update_window_line): Clear trunc marks.
11950 * xterm.h (FRAME_X_TRUNC_WIDTH).
11952 * frame.h (FRAME_TRUNC_WIDTH): Width of area at the left margin
11953 of a window reserved for truncation mark.
11955 * dispextern.h: Take FRAME_TRUNC_WIDTH into account.
11957 * dispnew.c (update_window_line): Call after_update_windwo_line-
11960 * xdisp.c (display_line): Set overlay_arrow_p in row.
11962 * dispextern.h (struct glyph_row): New flag overlay_arrow_p.
11964 * xterm.c (x_after_update_window_line): Draw truncation marks.
11966 * xdisp.c (display_line): Insert truncation for lines with
11969 * xterm.c (x_draw_row_borders): Convert y to frame coords.
11971 (x_display_cursor): Use default font width if width not
11974 * xdisp.c (echo_area_display): Set row->y.
11976 * dispnew.c (set_window_cursor_after_update): Don't assume
11977 all rows are enabled.
11979 * xdisp.c (skip_in_display_line_to): Test cursor.position instead
11981 (skip_in_display_line_to): Check cursor.position after call to
11982 next_display_element.
11984 * dispextern.h (CURSOR_AT_P): Test if cursor has reached
11987 * xdisp.c (display_line): Set row->y here.
11988 (skip_in_display_line_to): Test for to_pos after all glyphs
11989 have been added to hpos so that hpos is at the end of all
11991 (start_display): Remove assertion.
11993 * dispnew.c (direct_output_forward_char): Bug fix, = instead of
11995 (update_window): Don't set row->y here.
11997 * xdisp.c (next_display_element): Don't translate control chars
11998 from display table entries.
12000 * dispnew.c (direct_output_for_insert): Set cursor before
12001 update end to prevent cursor flickering. Revert changes to
12002 setting cursor.endpos.
12004 Wed Aug 13 10:46:12 1997 Gerd Moellmann <gerd@acm.org>
12006 * dispnew.c (direct_output_for_insert): Don't set cursor.endpos
12007 to PT because this prevents multi-byte characters from being
12010 * xdisp.c (skip_to, display_line): Advance cursor at end of
12013 * xterm.c (x_draw_3d_borders): Use CapRound. Struct rect
12014 replaced by XRectangle.
12016 * dispnew.c (scrolling_window): New method.
12018 * xterm.c (do_line_dance): New implementation, new method.
12020 * xdisp.c (draw_glyphs): Draw truncation bitmaps. Clip to
12021 visible part of line.
12023 * dispnew.c (update_window_line): Fill inverse video lines
12024 with infinite width space.
12025 (update_window): Handle completely empty matrices.
12026 (set_window_cursor_after_update): Bug fix.
12028 * xterm.c (draw_glyphs): Stop drawing at right window end.
12030 * dispnew.c (update_window_line): Don't ignore spaces, don't
12033 * xdisp.c (compute_line_metrics): Stop adding glyph widths with
12034 the first glyph having width 0.
12036 * xterm.c (draw_glyphs): Let a glyph pixel with of 0 denote
12037 a glyph that extends to the end of the line.
12039 * xdisp.c (display_line): Insert one padding glyph
12041 * xdisp.c (skip_in_display_line_to): Don't subtract shift left
12042 amount from info.current_x.
12043 (display_line): Ditto.
12045 * dispnew.c (direct_output_for_insert): Correct use of cursor.x.
12046 (change_frame_size_1): Correct cursor.x if frame gets too small.
12047 (update_window_line): Start at row->x.
12049 * xdisp.c (redisplay_internal): Correct cursor.x (everwhere
12052 * xterm.c (set_output_cursor): Use window relative X/Y.
12053 (global): Use window relative output cursor x/y.
12054 (draw_glyphs): Remove y param. Pass window relative x/y.
12056 * dispnew.c (update_window): Start rows at start_y.
12057 (update_window): Don't try scrolling because it wouldn't work
12058 with variable height lines, anyway.
12060 * dispextern.h (struct glyph_row): Remove shift_left_by,
12063 * window.h: (struct window): New member start_y.
12065 * window.c (replace_window): Initialize start_y.
12066 (make_window): Ditto.
12068 Tue Aug 12 14:53:04 1997 Gerd Moellmann <gerd@acm.org>
12070 * xterm.c (draw_glyphs): Clip rows that would paint over
12073 * dispnew.c (update_window): Take mode line border into
12076 * xterm.h (FRAME_MODE_LINE_BORDER_WIDTH): Number of pixels
12077 of border around mode line.
12079 * xterm.c (x_draw_row_borders): Bug fix.
12080 (x_erase_phys_cursor): Set pyhs_cursor.x/y before calling
12083 * xterm.c (x_draw_row_border): Experimental; draw 3d borders
12084 around modeline instead of inverting it.
12086 * xterm.c (glyph_to_pixel_coords): Use current matrix.
12088 * dispnew.c (buffer_posn_from_coords): Use SKIP_TO. Now takes
12089 window relative pixel coordinates as arguments.
12091 * keyboard.c (make_lispy_event): Use BUFFER_POSN_FROM_COORDS
12092 with window relative pixel coordinates. Use GLYPH_TO_PIXEL_-
12093 COORDS mit new arguments.
12095 Mon Aug 11 12:32:34 1997 Gerd Moellmann <gerd@acm.org>
12097 * xdisp.c (start_display): Use SKIP_TO instead of SKIP_IN-
12100 * keyboard.c (make_lispy_event): WINDOW_FROM_COORDINATES with
12102 (make_lispy_movement): Same.
12104 * xterm.c (note_mouse_highlight): Use WINDOW_FROM_COORDINATES
12105 with new parameter meaning.
12107 * window.c (Fcoordinates_in_window_p): Convert Lisp params
12108 from canon units to pixels.
12109 (coordinates_in_window): Pixel based.
12110 (Fcoordinates_in_window_p): Convert result pixel values back
12111 to canonical units.
12113 * window.h: phys_cursor_ascent + descent instead of height.
12115 * xterm.c (XTget_char_info): Use per char metrics for multi-byte
12116 chars with charset width 1.
12118 * dispnew.c (direct_output_for_insert): Set updated_row.
12120 Sat Aug 9 12:11:44 1997 Gerd Moellmann <gerd@acm.org>
12122 * dispextern.h (struct glyph): Padding flag removed.
12124 Tue Aug 5 09:59:08 1997 Gerd Moellmann <gerd@acm.org>
12126 * sysdep.c (reset_sys_modes): cursor_to with 4 params.
12128 * keyboard.c (interrupt_signal): Cursor_to with 4 params.
12130 * dispnew.c (update_window_line): Use pixels.
12132 * xdisp.c (compute_line_metrics): Correct pixel_width by
12135 * dispextern.h (struct glyph_row): FIRST_SHIFTED_LEFT_GLYPH
12136 removed. Remove references to it everywhere. Reverse_p in
12137 glyph_row -> right_to_left_p. Change references to it.
12139 Mon Aug 4 18:09:27 1997 Gerd Moellmann <gerd@acm.org>
12141 * dispnew.c (direct_output_for_insert): Use INSERT_GLYPHS.
12143 * xterm.c (XTinsert_glyphs): Implement it.
12145 * term.c (insert_glyphs): UPDATING_FRAME may be NULL in case
12146 of a call from DIRECT_OUTPUT_FOR_INSERT.
12148 * window.h (struct cursor_pos): Keeps both matrix positions
12149 and pixel positions.
12150 (struct window): Use it.
12152 * dispnew.c (direct_output_for_insert): New version.
12154 * xdisp.c (redisplay_internal): Don't do anything if it has
12155 already be done directly.
12157 * keyboard.c (command_loop_1): Call DIRECT_OUTPUT_FOR_INSERT
12160 Thu Jul 31 15:39:10 1997 Gerd Moellmann <gerd@acm.org>
12162 * xdisp.c (echo_area_display): Use new DISPLAY_STRING.
12164 Wed Jul 30 12:18:03 1997 Gerd Moellmann <gerd@acm.org>
12166 * dispextern.h (struct glyph_row): MAX_ASCENT, MAX_DESCENT.
12167 (struct glyph): ASCENT, DESCENT.
12168 (MATRIX_ROW_PIXEL_HEIGHT): Pixel height of row.
12169 (GLYPH_PIXEL_HEIGHT): Pixel height of glyph.
12171 * xterm.c (XTget_display_info): Correct tab computation.
12173 * term.c (get_display_info): Correct tab computation.
12175 * dispextern.h (struct display_cursor): WHAT_FOUND, SOURCE_OBJECT.
12176 Renamed from CHAR_CURSOR.
12178 Tue Jul 29 12:52:40 1997 Gerd Moellmann <gerd@acm.org>
12180 * xdisp.c (display_text_line): Mostly pixel oriented.
12182 * dispextern.h (struct glyph): BOX_WIDTH -> PIXEL_WIDTH.
12184 * term.c (append_intermediate_glyph): Generate padding glyphs.
12186 * xdisp.c (display_text_line): More into final direction.
12188 * xterm.c (XTget_char_info): Use WHAT field of CHAR_INFO.
12189 (XTget_char_info): Use tabs as multiples of spaces.
12191 * term.c (get_char_info): Use WHAT field of CHAR_INFO.
12192 Use tabs as multiples of spaces.
12194 * dispextern.h (struct char_info ): WHAT field.
12196 * term.c (encode_terminal_code): Don't use GLYPH_CHAR, use
12197 FAST_GLYPH_CHAR instead because GLYPH_CHAR won't remove faces.
12199 Mon Jul 28 14:23:06 1997 Gerd Moellmann <gerd@acm.org>
12201 * dispnew.c (init_char_info): Correct TAB_WIDTH to a reasonable
12203 (init_char_info): Initialize with glyph row.
12205 * term.c (get_char_info): Check WANT_ELLIPSIS_P.
12207 * xterm.c (XTget_char_info): Check WANT_ELLIPSIS_P.
12209 * dispextern.h (struct char_info ): GLYPH_ROW for intermediate
12212 * dispnew.c (init_char_info): Init GLYPH_ROW to NULL. CHAR_CURSOR
12215 * xdisp.c (display_text_line): Use CHAR_CURSOR.
12217 * xterm.c (x_append_intermediate_glyph): Intermediate glyph
12219 (XTget_char_info): Ditto.
12221 * term.c (get_char_info): Intermediate glyph generation.
12222 (append_intermediate_glyph): Ditto.
12224 Sun Jul 27 18:57:24 1997 Gerd Moellmann <gerd@acm.org>
12226 * dispnew.c (compute_char_cursor_face): Compute the face for a
12228 (init_char_cursor): Initialize a CHAR_CURSOR.
12229 (get_char_and_advance): Get next character to display.
12231 * dispextern.h (struct char_cursor): Cursor for iterating over
12232 display text of CURRENT_BUFFER.
12234 Sat Jul 26 13:33:03 1997 Gerd Moellmann <gerd@acm.org>
12236 * term.c (get_char_info): Set MAX_PIXEL_WIDTH in CHAR_INFO.
12238 * dispextern.h (struct char_info ): Use LISP_CHAR_TABLE for DP.
12239 New member MAX_PIXEL_HEIGHT.
12241 * xterm.c (x_per_char_metric): Get per character metrics.
12242 (XTget_char_info): More cases covered.
12244 * term.c (get_char_and_info): Get next character and character
12245 display information.
12246 (get_char_info): Get character display information.
12248 * dispextern.h: Character display information.
12250 * xterm.c (x_get_char_font_and_encoding): Get font and
12252 (XTget_char_info): Get display information about a character.
12254 Wed Jul 23 16:50:18 1997 Gerd Moellmann <gerd@acm.org>
12256 * dispextern.h (WINDOW_DISPLAY_MODE_LINE_HEIGHT): Height is
12257 zero if window is mini-window.
12259 * xdisp.c: Include xterm.h or w32term.h for FRAME_LINE_HEIGHT.
12260 (try_window): DISPLAY_TEXT_LINE as long as Y < DISPLAY_HEIGHT.
12262 * dispnew.c (assign_row): Assign row pixel height.
12263 (clear_glyph_row): Clear pixel height.
12264 (update_window): Use PIXEL_HEIGHT.
12266 * xdisp.c (display_string): Set row pixel height temporarily.
12267 (display_text_line): Ditto.
12269 * dispextern.h (GLYPH_PIXEL_WIDTH):
12270 (GLYPH_PIXEL_HEIGHT): Get glyph pixel dimension.
12272 * frame.h (FRAME_DEFAULT_PIXEL_LINE_HEIGHT): Get height of
12273 line in default font.
12274 (FRAME_DEFAULT_GLYPH_PIXEL_WIDTH): Get width of character
12276 (FRAME_MODE_LINE_PIXEL_HEIGHT): Get height of mode line.
12278 * xterm.h (FRAME_MODE_LINE_HEIGHT): Return height of mode line
12281 * dispnew.c (allocate_leaf_matrix): Use window pixel macros.
12283 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH):
12284 (WINDOW_DISPLAY_PIXEL_HEIGHT):
12285 (WINDOW_DISPLAY_MODE_LINE_HEIGHT):
12286 (WINDOW_DISPLAY_PIXEL_HEIGHT_WITHOUT_MODE_LINE):
12287 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X):
12288 (WINDOW_DISPLAY_RIGHT_EDGE_PIXEL_X):
12289 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y):
12290 (WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y): Macros to get various
12291 pixel values related to windows.
12293 Mon Jul 21 12:22:02 1997 Gerd Moellmann <gerd@acm.org>
12295 * xterm.c (XTflash): Flash last line of frame.
12297 * dispextern.h (cursor_in_echo_area): Extern declaration.
12299 * xterm.c (dumpglyphs): 8-bit version to test if my Xserver
12300 freezes stem from 16-bit functions.
12302 * xterm.c (x_display_and_set_cursor): Don't display hollow
12303 cursor in mini windows.
12305 * window.c (replace_window): Initialize PHYS_CURSOR_TYPE.
12306 (make_window): Ditto.
12308 * xterm.c (x_erase_phys_cursor): Erase cursor image.
12309 (x_display_and_set_cursor): Merged version of X_DISPLAY_BOX_CURSOR
12310 and X_DISPLAY_BAR_CURSOR.
12311 (x_display_cursor): Use it.
12312 (x_update_window_cursor): Use it.
12314 * xdisp.c (display_text_line): Set cursor for window even if not
12317 * xterm.c (x_display_bar_cursor): Use HPOS and VPOS instead
12318 of X and Y to denote matrix positions.
12319 (x_display_cursor): Ditto.
12321 * dispnew.c (scrolling_window): Scrolling for windows.
12323 Wed Jul 16 13:37:51 1997 Gerd Moellmann <gerd@acm.org>
12325 * dispnew.c (build_frame_matrix): Work on windows with update
12327 (build_frame_matrix_from_window_tree): Ditto.
12328 (build_frame_matrix_from_leaf_window): Ditto.
12330 * xdisp.c (echo_area_display): Set MUST_BE_UPDATED_P instead of
12331 building frame matrix.
12332 (redisplay_internal): Set window update flags instead of
12333 building frame matrix.
12335 * minibuf.c (read_minibuf): Set MUST_BE_UPDATED_P instead of
12336 building frame matrix.
12338 * window.c (make_window): Initialize new members.
12339 (replace_window): Ditto.
12341 * xfns.c (Fx_create_frame): Don't set PHYS_CURSOR_X to -1.
12342 I don't believe this is really necessary.
12344 * dispnew.c (build_frame_matrix_from_leaf_window): Determine
12347 Tue Jul 15 13:58:33 1997 Gerd Moellmann <gerd@acm.org>
12349 * window.c (mark_window_cursors_off): Mark all cursors in
12352 * xterm.c (x_display_box_cursor): Window paraemter. Use
12354 (glyph_to_pixel_pos): Convert matrix pos -> pixels.
12355 (pixel_to_glyph_pos): Convert pixel pos -> matrix pos.
12356 (x_update_cursor): Work on windows.
12357 (x_display_bar_cursor): Ditto.
12358 (x_draw_single_glyph): Ditto.
12360 * xterm.h: Prototype for X_DISPLAY_CURSOR.
12362 * xterm.c (XTcursor_to): Void return type. Test for
12363 UPDATED_WINDOW. Call x_display_cursor with window.
12364 (x_display_cursor): Void return type. Window instead of frame
12367 * window.h (WINDOW_RIGHTMOST_P, WINDOW_TOPMOST_P): Use functions
12370 * window.c (window_rightmost_p, window_topmost_p): Based on
12373 * dispnew.c (adjust_frame_message_buffer): Allocate with
12374 FRAME_MESSAGE_BUF_SIZE.
12376 * window.h: PHYS_CURSOR_.* added.
12378 * frame.h (struct frame): Cursor information removed.
12380 * frame.h (FRAME_SCROLL_BAR_WIDTH): Removed because unused.
12381 (FRAME_WINDOW_WIDTH_ARG): Don't add scroll bar width.
12383 * window.h (WINDOW_LEFT_MARGIN): Remove FRAME_LEFT_SCROLL_BAR.
12385 * window.c (window_internal_width): Scroll bars no longer
12388 * xterm.c (XTclear_end_of_line): FRAME_LEFT_SCROLL_BAR_WIDTH
12391 * xfns.c (x_set_scroll_bar_width): FRAME_LEFT_SCROLL_BAR_WIDTH
12394 * xdisp.c (echo_area_display): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
12395 (redisplay_internal): Ditto.
12396 (redisplay_window): Ditto.
12397 (redisplay_window): Ditto.
12398 (display_text_line): Ditto.
12399 (display_mode_line): Ditto.
12401 * minibuf.c (read_minibuf): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
12403 * dispnew.c (set_cursor_to): FRAME_LEFT_SCROLL_BAR_WIDTH removed.
12404 (direct_output_for_insert): Ditto.
12405 (direct_output_forward_char): Ditto.
12406 (update_frame_1): Ditto.
12408 Mon Jul 14 12:30:03 1997 Gerd Moellmann <gerd@acm.org>
12410 * dispnew.c (updated_window): Set by UPDATE_WINDOW to the window
12412 (update_window): Set and clear it.
12414 * dispnew.c (update_window_line, update_window, scrolling_window):
12417 * dispnew.c (build_frame_matrix_from_leaf_window): Add vertical
12418 bar for window borders.
12419 (fill_up_glyph_row_area_with_spaces): Fill an area of a row
12421 (fill_up_glyph_row_with_spaces): Call above function.
12423 * xdisp.c (display_text_line): Don't add vertical bar for
12425 (display_string): Ditto.
12427 * window.c (make_window): Init CURSOR_VPOS/HPOS.
12428 (replace_window): Ditto.
12430 * xterm.c (XTwrite_glyphs): Use selected window cursor position.
12432 * xfns.c (Fx_contour_region): Use selected window cursor position.
12433 (Fx_uncontour_region): Ditto.
12434 (Fx_select_region): Ditto.
12436 * frame.c (make_frame): Remove CURSOR_X/Y.
12438 * xdisp.c (redisplay_internal): Use window cursor position.
12440 * dispnew.c (update_frame_1): Use cursor position of selected
12442 (change_frame_size_1): Ditto.
12444 * xterm.c (XTupdate_begin): Set CURS_X/Y from selected window.
12445 (XTwrite_glyphs): Use cursor position of selected window.
12447 * xfns.c (x_set_scroll_bar_width): Set cursor pos of selected
12450 * dispnew.c (set_cursor_to): Set window cursor position.
12451 (direct_output_for_insert): Use window cursor position.
12452 (init_display): Don't use frame cursor position.
12454 * window.h: CURSOR_VPOS/HPOS added.
12456 * frame.h (struct frame): CURSOR_X/Y removed.
12457 (FRAME_CURSOR_X): Removed.
12458 (FRAME_CURSOR_Y): Ditto.
12460 * dispnew.c (direct_output_for_insert): LAST_POINT_X removed.
12461 (direct_output_forward_char): Ditto.
12463 * xdisp.c (redisplay_internal): LAST_POINT_X and LAST_POINT_Y
12466 * window.c (make_window): LAST_POINT_X and LAST_POINT_Y removed.
12468 * window.h: LAST_POINT_X and LAST_POINT_Y removed.
12470 Sun Jul 13 14:18:24 1997 Gerd Moellmann <gerd@acm.org>
12472 * xdisp.c: Bug fixes using SET_CURSOR with HPOS 0 instead
12473 of FRAME_LEFT_SCROLL_BAR_WIDTH.
12475 * dispextern.h: Changed function names.
12477 * dispnew.c (scrolling): Don't call SCROLLING_1 if WINDOW_SIZE
12479 (clear_window_matrices): Formerly two functions for desired
12480 and current matrix.
12481 (update_frame_1): Call CLEAR_DESIRED_MATRICES.
12482 (update_frame): Return return value from UPDATE_FRAME_1.
12484 Sat Jul 12 12:58:48 1997 Gerd Moellmann <gerd@acm.org>
12486 * xdisp.c (try_window): Set WINDOW_END_VPOS with window relative
12489 * frame.c (set_menu_bar_lines): Adjust matrices.
12491 * dispnew.c (set_cursor_to): Set cursor position.
12493 * minibuf.c (read_minibuf): Build frame matrix.
12495 * xdisp.c (this_line_start_hpos): Renamed to
12496 THIS_LINE_START_WINDOW_HPOS to make it clear that this is window
12498 (this_line_vpos): Renamed to THIS_LINE_WINDOW_VPOS for the same
12501 * dispnew.c (build_frame_matrix): Don't clear rows of the
12503 (clear_window_records): Clear window rows.
12504 (clear_frame_records): Clear window and frame rows.
12505 (clear_glyph_matrix): Set all rows of a matrix to empty.
12507 * xdisp.c (echo_area_display): Parameter UPDATE_FRAME_P. Update
12509 (message2_nolog): Pass 1 to ECHO_AREA_DISPLAY. UPDATE_FRAME
12511 (redisplay_internal): Pass 0 to ECHO_AREA_DISPLAY.
12512 (redisplay_internal): Build frame matrix before UPDATE_FRAME.
12514 * dispnew.c (assign_row): Assign one glyph row to another.
12515 (mirrored_make_current): Use it.
12516 (mirror_make_current): Use it.
12517 (update_line): Rely on MIRRORED_MAKE_CURRENT to set flags and
12518 used counters for the current glyph row.
12521 Fri Jul 11 13:16:50 1997 Gerd Moellmann <gerd@acm.org>
12523 * lisp.h: Prototype for SCAN_BUFFER.
12525 * xdisp.c (redisplay_windows): Simplified.
12527 * dispnew.c (window_to_frame_vpos): Convert window to frame vpos
12529 (window_to_frame_hpos): Convert window to frame hpos with checks.
12530 (frame_to_window_vpos): Convert frame to window vpos with checks.
12531 (frame_to_window_hpos): Convert frame to window hpos with checks.
12533 * dispextern.h: PRESERVE_OTHER_COLUMNS removed.
12535 * dispnew.c: PRESERVE_OTHER_COLUMNS removed.
12537 * xdisp.c (redisplay_internal): Another instance of
12538 DISPLAY_TEXT_LINE with window relative VPOS.
12539 (redisplay_internal): Remove PRESERVE_OTHER_COLUMNS.
12541 * dispnew.c (init_desired_glyphs): Do it on window matrices,
12544 * xdisp.c (try_window_id): Use CANCEL_WINDOW_LINE.
12545 (redisplay_internal): Ditto.
12547 * dispnew.c (cancel_window_line): Use window matrix. Changed
12548 name to CANCEL_WINDOW_LINE.
12550 * xdisp.c (try_window_id): Use DISPLAY_TEXT_LINE with window
12553 * dispextern.h (WINDOW_TO_FRAME_VPOS): Convert window vpos
12555 (WINDOW_TO_FRAME_HPOS): Convert window hpos to frame hpos.
12556 (FRAME_TO_WINDOW_VPOS): Convert frame vpos to window vpos.
12557 (FRAME_TO_WINDOW_HPOS): Convert frame hpos to window hpos.
12559 * xdisp.c (try_window_id): Use ADJUST_WINDOW_CHARSTARTS with
12560 window relative VPOS.
12561 (redisplay_internal): Use ADJUST_WINDOW_CHARSTARTS with window
12564 * dispnew.c (adjust_window_charstarts): Use INCREMENT_GLYPH_-
12565 MATRIX_BUFFER_POSITIONS.
12567 * xdisp.c (try_window_id): Use SCROLL_FULL_WIDTH_WINDOW.
12569 * dispextern.h: Prototype for SCROLL_FULL_WIDTH_WINDOW.
12571 * dispnew.c (scroll_frame_lines): Make it work on window
12572 matrix. Change name to scroll_full_width_window.
12574 * xdisp.c (message2_nolog): Don't fwrite NULL message If
12577 Mon Jul 7 14:44:38 1997 Gerd Moellmann <gerd@acm.org>
12579 * dispnew.c (init_desired_glyphs): Clear both frame matrix
12580 and window matrices.
12581 (adjust_window_charstarts): Use window matrix.
12582 (cancel_my_columns): Use window matrix.
12583 (direct_output_for_insert): Use window matrix, only.
12585 * xdisp.c (display_glyphs): Extracted code from DISPLAY_STRING.
12586 (display_string): Call display_glyphs.
12587 (display_menu_bar_string): Display a string in a menu bar line.
12588 (display_menu_bar): Use DISPLAY_MENU_BAR_STRING.
12589 (display_text_line): Use window matrix.
12590 (try_window): Use window relative positions.
12592 Sun Jul 6 17:02:26 1997 Gerd Moellmann <gerd@acm.org>
12594 * dispnew.c (adjust_frame_glyphs): Allocate window matrices from
12596 (allocate_leaf_matrix): Add FRAME_MENU_BAR_LINES to the height of
12599 * window.h (WINDOW_TOPMOST_P): Added.
12601 * xdisp.c (echo_area_display): Use PREPARE_DESIRED_ROW.
12602 (redisplay_window): Ditto.
12603 (display_text_line): Ditto.
12604 (display_menu_bar): Ditto.
12605 (display_mode_line): Ditto.
12606 (display_mode_line): Use window matrix.
12607 (display_string): Use window matrix.
12608 (display_mode_element): Ditto.
12609 (echo_area_display): Don't display if frame has no pools yet.
12610 (echo_area_display): Work with window matrix for mini window.
12611 (redisplay_window): Use window marix for mini window.
12612 (display_text_line): Assume HPOS and VPOS are window relative and
12613 use that for DISPLAY_STRING.
12615 * dispextern.h: Prototype for prepare_desired_row.
12617 * dispnew.c (prepare_desired_row): Replacement for
12620 * dispnew.c (adjust_window_charstarts): Always allocate window
12622 (clear_glyph_row): Only reset used counters and flags.
12624 Sat Jul 5 14:55:44 1997 Gerd Moellmann <gerd@acm.org>
12626 * dispnew.c (scroll_frame_lines): Don't assume first scolled
12628 (realloc_glyph_pool): Don't add 1 to the pool size.
12629 (adjust_glyph_matrix): Don't add 1 to pointers to glyph areas.
12631 * dispnew.c (line_hash_code): Don't use null-glyph end marker.
12632 (line_draw_cost): Ditto.
12633 (update_line): Ditto.
12634 (update_line): Use SPACE_GLYPH.
12635 (count_blanks): Additional parameter LEN.
12637 * xdisp.c (display_text_line): Use SPACE_GLYPH.
12638 (display_text_line): Don't add null-glyph end marker.
12639 (display_string): Use SPACE_GLYPH.
12640 (display_string): Don't use null-glyph end marker.
12642 * term.c (clear_end_of_line): Use SPACE_GLYPH.
12644 * dispnew.c (clear_glyph_row): Don't use null-glyph end markers.
12645 (fill_up_glyph_row_with_spaces): Ditto.
12646 (preserve_other_columns): Add SPACE_GLYPH at then end of desired
12647 rows, instead of null-glyphs.
12648 (direct_output_for_insert): Don't add null-glyph end marker.
12650 * scroll.c (do_direct_scrolling): Change algorithm to construct
12651 vector of lines assigned. Call MIRRORED_LINE_DANCE:
12652 (do_scrolling): Ditto.
12654 * dispnew.c (mirror_line_dance): Mirror line assignments in a
12655 frame matrix in window matrices.
12656 (mirrored_line_dance): Do line assignments during scrolling.
12657 Maybe do corresponding assignments in window matrices.
12658 (check_window_matrix_pointers): Check that window rows and frame
12659 rows agree about glyph pointers.
12660 (check_matrix_pointers): Ditto.
12661 (mirrored_make_current): Make a row of a desired matrix current;
12662 maybe mirror the operation in window matrices.
12663 (mirror_make_current): Make window desired matrix row current when
12664 frame matrix row was made current.
12666 Fri Jul 4 13:27:46 1997 Gerd Moellmann <gerd@acm.org>
12668 * dispnew.c (check_matrix_pointer_lossage): Check against
12669 pointer lossage in matrices.
12670 (get_glyph_matrix_row): Removed.
12672 * scroll.c (do_scrolling): Simplified.
12673 (do_direct_scrolling): Simplified.
12674 (scrolling_1): Pass CURRENT_MATRIX instead of FRAME to
12678 * dispnew.c (ins_del_glyph_rows): Insert/delete rows in a matrix.
12679 (rotate_vector): Removed.
12680 (rotate_pointers): Removed.
12681 (scroll_frame_lines): Simplified.
12683 Thu Jul 3 13:54:21 1997 Gerd Moellmann <gerd@acm.org>
12685 * dispextern.h (MATRIX_ROW_SWAP_CONTENTS): Removed.
12687 * dispnew.c (increment_glyph_matrix_buffer_positions): Does
12688 what the name says.
12689 (clear_glyph_row): Make a glyph row structure empty.
12690 (make_matrix_row_current): Make a glyph row current.
12691 (make_window_matrix_row_current): Perform analogous row swaps
12692 for window matrices.
12693 (update_line): Call make_matrix_row_current.
12695 Wed Jul 2 13:43:35 1997 Gerd Moellmann <gerd@acm.org>
12697 * dispextern.h (SET_MATRIX_ROW_ENABLED_P): Better macro name.
12698 (SET_MATRIX_ROW_INVERSE_P): Better name and HIGHLIGHT_P ->
12700 (MATRIX_ROW_INVERSE_P): Former MATRIX_ROW_HIGHLIGHT_P.
12701 (struct glyph_row): HIGHLIGHT_P -> INVERSE_P
12703 * all files: use above new names.
12705 * dispnew.c (scroll_frame_lines): Simplified. Use
12706 SCROLL_GLYPH_MATRIX.
12707 (make_glyph_row_empty): Mark a glyph row empty.
12708 (increment_glyph_row_buffer_positions): Increment
12709 buffer positions in a glyph row.
12710 (increment_glyph_matrix_buffer_positions): Increment buffer
12711 positions in a range of rows.
12712 (scroll_glyph_matrix): Scroll a glyph matrix.
12713 (swap_glyphs_in_rows): Swap glyphs between rows.
12714 (swap_glyph_pointers): Swap pointers between rows.
12715 (glyph_row_slice_p): Return 1 if one row is a slice of another.
12716 (init_display): Initialize SPACE_GLYPH.
12717 (fill_up_glyph_row_areas_with_spaces): Fill up areas with
12720 Tue Jul 1 13:49:55 1997 Gerd Moellmann <gerd@acm.org>
12722 * xterm.c (dumprectangle): Use vectors in glyph rows.
12724 * xdisp.c (display_text_line): Use vectors in glyph rows.
12725 (display_string): Ditto.
12727 * scroll.c (do_scrolling): Use vectors in glyph rows.
12728 (do_direct_scrolling): Ditto.
12730 * alloc.c (mark_object): Use vectors in glyph rows.
12731 Mark for all frame types.
12733 * dispnew.c (adjust_glyph_matrix): Use vectors to glyphs in
12735 (get_glyph_matrix_row): Ditto.
12736 (matrix_row): Ditto.
12737 (rotate_pointers): Ditto.
12738 (scroll_frame_lines): Ditto.
12739 (preserve_other_columns): Ditto.
12740 (cancel_my_columns): Ditto.
12741 (update_line): Ditto.
12742 (direct_output_for_insert): Ditto.
12744 * dispextern.h (struct glyph_row): Use a vector of pointers
12745 instead of individual members. Use a vector of used counters.
12746 (MATRIX_ROW_SWAP_CONTENTS): Use vectors.
12747 (MATRIX_ROW_GLYPH_START): Ditto.
12748 (MATRIX_ROW_GLYPH_END): Ditto.
12749 (MATRIX_ROW_USED): Ditto.
12750 (MATRIX_ROW_SET_USED): Ditto.
12752 * dispnew.c (line_hash_code): Simplified.
12754 Mon Jun 30 20:39:38 1997 Gerd Moellmann <gerd@acm.org>
12756 * dispnew.c: Prototype for ROTATE_VECTOR, ROTATE_POINTERS,
12757 CHANGE_FRAME_SIZE_1
12758 (preserve_other_columns): Void return.
12759 (cancel_my_columns): Void return type.
12760 (scrolling): Int return type.
12761 (do_pending_window_change): Void return type.
12762 (change_frame_size): Ditto.
12763 (bitch_at_user): Ditto.
12764 (init_display): Ditto.
12765 (syms_of_display): Ditto.
12767 * dispextern.h: add prototypes for REDRAW_FRAME,
12768 REDRAW_GARBAGED_FRAMES, CANCEL_LINE, CLEAR_FRAME_RECORDS,
12769 INIT_DESIRED_GLYPHS, SCROLL_FRAME_LINES, PRESERVE_OTHER_COLUMNS,
12770 ADJUST_WINDOW_CHARSTARTS, CANCEL_MY_COLUMNS,
12771 DIRECT_OUTPUT_FOR_INSERT, DIRECT_OUTPUT_FORWARD_CHAR,
12772 UPDATE_FRAME, SCROLLING, BUFFER_POSN_FROM_COORDS,
12773 DO_PENDING_WINDOW_CHANGE, CHANGE_FRAME_SIZE, BITCH_AT_USER,
12774 SIT_FOR, INIT_DISPLAY, SYMS_OF_DISPLAY,
12776 * dispnew.c (redraw_frame): FRAME_PTR -> struct frame. Return
12778 (cancel_line): Return void.
12779 (clear_frame_records): Return void.
12781 * dispextern.h (struct glyph): Remove GLYPH, add bit-fields.
12782 (SET_CHAR_GLYPH): Fill a character glyph.
12783 (SET_CHAR_GLYPH_FROM_GLYPH): Set a character glyph from a GLYPH.
12784 (GLYPH_FROM_CHAR_GLYPH): Construct a GLYPH from a character
12786 (CHAR_GLYPH_CHAR_CODE): Return character code of a glyph.
12787 (SET_CHAR_GLYPH_CHAR_CODE): Set character code of a glyph.
12788 (CHAR_GLYPH_FACE_ID): Return face id of a glyph.
12789 (SET_CHAR_GLYPH_FACE_ID): Set face id of a glyph.
12790 (CHAR_GLYPH_PADDING_P): Return padding flag of a glyph.
12791 (SET_CHAR_GLYPH_PADDING_P): Set padding flag.
12792 (CHAR_GLYPH_REVERSE_P): Return reversed flag.
12793 (SET_CHAR_GLYPH_REVERSE_P): Set reversed flag.
12794 (MATRIX_ROW_SWAP_CONTENTS): Swap pointers between rows.
12796 * term.c (reassert_line_highlight): Check CHARS_WASTED == 0.
12798 * window.h (struct window): Add comment that no Lisp data may
12799 come below CURRENT_MATRIX.
12801 * alloc.c (mark_object): Change window mark code to stop with
12802 member CURRENT_MATRIX.
12804 Sat Jun 28 13:54:55 1997 Gerd Moellmann <gerd@acm.org>
12806 * scroll.c (do_scrolling): Change algorithm to use pointers.
12807 (do_direct_scrolling): Ditto.
12809 * dispnew.c (get_glyph_matrix_row): Use pointers stored in rows.
12810 (new_glyph_pool): Formerly new_FRAME_GLYPH_MATRIX.
12811 (free_glyph_pool): Formerly FREE_FRAME_GLYPH_MATRIX
12812 (realloc_glyph_pool): Formerly REALLOC_FRAME_GLYPH_MATRIX.
12813 Returns 1 if pool changed.
12814 (matrix_row): Additional check for lost pointers to glyph rows.
12815 (compute_matrices): Additional parameter DIM_P set means that no
12816 allocation should take place. Addtional parameter
12817 ANY_WINDOWS_CHANGED_P set if any windows matrix has changed.
12818 (compute_leaf_matrix): Additional parameter CHANGED_P set to 1
12819 when window matrix changes. Additional parameter DIM_ONLY_P set
12820 to 1 to indicate that no allocation should take place.
12821 (adjust_frame_glyphs): Construct new glyph pools and glyph
12822 matrices. Optimize frame redraws.
12823 (free_glyphs): Free pools.
12824 (check_glyph_memory): Check pools not freed.
12825 (rotate_pointers): Rotate pointers in a vector of glyph rows.
12826 (scroll_frame_lines): Change algorithm to use pointers.
12827 (update_line): Ditto.
12829 * dispextern.h (struct glyph_row): Use pointers to areas in a row.
12830 (global): All macro names changed from prefix FRAME_MATRIX to
12833 Fri Jun 27 14:51:15 1997 Gerd Moellmann <gerd@acm.org>
12835 * dispextern.h (struct glyph_pool): Replacement for former
12836 FRAME_GLYPH_MATRIX.
12837 (struct glyph_matrix): No longer contains sizes of allocated
12840 * xdisp.c (redisplay_internal): Don't redisplay if frame has
12843 * frame.c (make_frame): Initialize pools.
12845 Thu Jun 26 00:00:55 1997 Gerd Moellmann <gerd@acm.org>
12847 * scroll.c (do_direct_scrolling): Don't assume that the
12848 line moving algorithm has no intermediate steps.
12849 (do_scrolling): Ditto.
12851 * Makefile.in (alloc.o): Add dependency dispextern.h.
12853 * alloc.c: Include dispextern.h for glyph definitions.
12855 * dispnew.c (get_glyph_matrix_row): Return 1 if ROW_INDEX
12856 is legal, return 0 otherwise.
12858 * window.h: Add comment that windows are marked specially.
12860 * alloc.c (mark_object): Mark windows specially.
12863 Wed Jun 25 15:22:58 1997 Gerd Moellmann <gerd@acm.org>
12865 * dispextern.h (struct glyph): Add member OBJECT
12866 referencing a Lisp object from which a glyph was drawn.
12867 Member TEXT_POSITION renamed POSITION.
12868 * xterm.c, xdisp.c, dispnew.c: Rename TEXT_POSITION -> POSITION.
12870 * alloc.c: Include dispextern.h
12871 (mark_object): Mark objects referenced from glyphs.
12873 * frame.c (make_frame): Initialize DECODE_MODE_SPEC_BUFFER.
12875 * scroll.c (do_direct_scrolling): Remove TEMP_MATRIX.
12876 (do_scrolling): Ditto.
12878 * frame.h (struct frame): TEMP_MATRIX removed.
12879 DECODE_MODE_SPEC_BUFFER added.
12881 * window.h: TEMP_MATRIX removed.
12883 * scroll.c: OPHYS_LINES removed.
12885 * dispnew.c: OPHYS_LINES and OPHYS_LINES_LENGTH removed.
12886 FRAME_PTR -> struct frame *.
12888 * termhooks.h: Prototypes for INSERT_GLYPHS_HOOK,
12889 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
12891 * term.c: Prototypes for INSERT_GLYPHS_HOOK,
12892 WRITE_GLYPHS_HOOK, DELETE_GLYPHS_HOOK,
12894 * xdisp.c (redisplay_internal): Remove call to VERIFY_CHARSTARTS.
12895 (do_verify_charstarts): Removed.
12897 * frame.c (Fmake_terminal_frame): Adjust glyphs.
12898 (Fdelete_frame): Free glyphs.
12899 (make_frame): Initialize matrix fields in frame.
12901 * config.in (PROTO): Added.
12903 * emacs.c (shut_down_emacs): Check glyph memory.
12905 * window.c (Fdelete_window): Free window matrices.
12906 (Fset_window_configuration): Ditto.
12907 (Fdelete_window): Adjust glyphs.
12908 (Fsplit_window): Ditto.
12909 (change_window_height): Ditto.
12910 (Fset_window_configuration): Ditto.
12911 (make_window): Initialize DESIRED_MATRIX and CURRENT_MATRIX.
12912 (replace_window): Reset DESIRED_MATRIX and CURRENT_MATRIX
12914 * Makefile.in (window.o): Add dependency window.c -> dispextern.h
12916 * window.c: Include dispextern.h
12918 * scroll.c (do_scrolling): Use new glyphs.
12919 (do_direct_scrolling): Ditto.
12921 * xdisp.c: Some function prototypes.
12922 (redisplay_internal): Don't do anything if matrices not yet set.
12923 (redisplay_internal): Use new glyphs.
12924 (try_window_id): Ditto.
12925 (copy_part_of_rope): Ditto.
12926 (display_text_line): Ditto.
12927 (display_menu_bar): Ditto.
12928 (display_mode_line): Ditto.
12929 (display_string): Ditto.
12931 * xterm.c: Prototypes for some local functions.
12932 (dumpglyphs): Use new glyphs.
12933 (XTwrite_glyphs): Ditto.
12934 (dumprectangle): Ditto.
12935 (note_mouse_highlight): Ditto.
12936 (fast_find_position): Ditto.
12937 (show_mouse_face): Ditto.
12938 (x_draw_single_glyph): Ditto.
12939 (x_display_bar_cursor): Ditto.
12940 (x_display_box_cursor): Ditto.
12941 (x_new_font): Adjust glyphs when font change.
12943 * term.c (clear_end_of_line): Use new glyphs.
12944 (write_glyphs): Ditto.
12945 (insert_glyphs): Ditto.
12947 * Makefile.in (term.o): term.c depends on dispextern.h
12949 * term.c: Include dispextern.h
12951 * dispnew.c (direct_output_forward_char): Old glyph functions
12952 removed, new inserted.
12953 (line_hash_code): Use new glyphs.
12954 (line_draw_cost): Ditto
12955 (cancel_line): Ditto
12956 (clear_frame_records): Ditto.
12957 (init_desired_glyphs): Ditto.
12958 (get_display_line): Ditto
12959 (scroll_frame_lines): Ditto.
12960 (preserve_other_columns): Ditto.
12961 (adjust_window_charstarts): Ditto.
12962 (cancel_my_columns): Ditto.
12963 (direct_output_for_insert): Ditto.
12964 (update_frame): Ditto.
12965 (quit_error_check): Made empty.
12966 (scrolling): Use new glyphs.
12967 (count_blanks): Ditto.
12968 (count_match): Ditto.
12969 (update_line): Ditto.
12970 (init_display): Adjust glyphs initially.
12971 (change_frame_size_1): Adjust glyphs.
12973 * dispextern.h: Old glyphs removed, new added.
12975 * xfaces.c (min_char_bounds): Get smallest char in loaded fonts.
12977 * xterm.h: Prototype for min_char_bounds.
12979 * window.h (struct window): Remove old glyphs, add new.
12981 * frame.h (struct frame): Remove old glyphs, add new.
12983 1999-07-20 Dave Love <fx@gnu.org>
12985 * buffer.c (syms_of_buffer): Make
12986 default-enable-multibyte-characters a user variable.
12988 1999-07-14 Richard Stallman <rms@gnu.org>
12990 * Version 20.4 released.
12992 1999-07-14 Richard Stallman <rms@gnu.org>
12994 * filelock.c (lock_file): Do nothing if purifying.
12996 1999-07-10 Richard Stallman <rms@gnu.org>
12998 * xterm.c (x_display_bar_cursor): Use the cursor-color
12999 to display the bar, not the cursor foreground pixel.
13001 1999-07-09 Andrew Innes <andrewi@gnu.org>
13003 * w32console.c (w32_use_full_screen_buffer): New variable.
13004 (syms_of_ntterm): Register it.
13005 (initialize_w32_display): Set initial frame size accordingly,
13006 respecting the LINES and COLUMNS environment variables if set.
13008 * w32inevt.c (w32_console_read_socket): Use it.
13010 1999-07-07 Kenichi Handa <handa@etl.go.jp>
13012 * callproc.c (Fcall_process): Decide coding system for decoding
13013 after we set to the target buffer. If the output goes to a
13014 unibyte buffer, suppress character code conversion.
13016 * fileio.c (Finsert_file_contents): If reading into a unibyte
13017 buffer, suppress character code conversion.
13019 * process.c (create_process): If the output goes to a unibyte
13020 buffer, suppress character code conversion.p
13022 1999-07-07 Andreas Schwab <schwab@gnu.org>
13024 * xdisp.c (line-number-display-limit): Doc fix.
13026 1999-07-05 Richard Stallman <rms@gnu.org>
13028 * callproc.c (Fcall_process): Don't use initializer on coding_systems.
13029 (Fcall_process_region): Likewise.
13031 1999-07-01 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
13033 * callproc.c (init_callproc): Set exec_directory if
13034 installation_directory is non-nil, without a test of exec_path.
13036 1999-07-01 Andrew Innes <andrewi@gnu.org>
13038 * w32xfns.c (drain_message_queue): New function.
13040 * w32term.h (drain_message_queue): Add extern.
13042 * w32proc.c (sys_select): Call MsgWaitForMultipleObjects instead
13043 of WaitForMultipleObjects when user input is allowed, so we can
13044 handle incoming window messages. Call drain_message_queue when
13045 there are messages waiting; this ensures that windows created
13046 indirectly from the lisp thread get processed properly, and don't
13047 hang other applications by failing to respond to broadcasts.
13049 1999-07-01 Andreas Schwab <schwab@gnu.org>
13051 * callint.c (Fcall_interactively): Ignore first element of
13052 event-symbol-elements property.
13054 1999-07-01 Richard Stallman <rms@gnu.org>
13056 * fileio.c (Fread_file_name): Check type of DEFAULT_FILENAME.
13058 1999-07-01 Kenichi Handa <handa@etl.go.jp>
13060 * minibuf.c (read_minibuf): Set the multibyteness of the
13061 minibuffer before inserting `initial' string.
13063 1999-06-30 Richard Stallman <rms@gnu.org>
13065 * xfns.c (x_make_gc): Turn off GCStipple when setting up cursor_gc.
13067 1999-06-29 Richard M. Stallman <rms@gnu.org>
13069 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook):
13070 Move the handling of MALLOC_CHECK_ envvar here.
13071 (main): Moved from here.
13073 1999-06-29 Wolfram Gloger <wmglo@dent.med.uni-muenchen.de>
13075 * emacs.c [DOUG_LEA_MALLOC] (malloc_initialize_hook): New
13076 function, assigned to the global __malloc_initialize_hook pointer.
13077 (main): Move malloc_set_state call into malloc_initialize_hook
13078 so that it happens as early as possible.
13080 1999-06-27 Richard M. Stallman <rms@gnu.org>
13082 * keyboard.c (read_key_sequence): Properly reinitialize
13083 fkey_map after translating thru Vkey_translation_map.
13084 After translating thru Vfunction_key_map, don't reset
13085 keytrans-start to 0.
13087 1999-06-24 Geoff Voelker <voelker@cs.washington.edu>
13089 * w32.c (get_emacs_configuration): Use GetVersionEx to
13090 handle NT5.0 correctly. Include build number in configuration.
13091 w32heap.c (osinfo_cache): New variable.
13092 (cache_system_info): Initialize osinfo_cache.
13093 w32heap.h (osinfo_cache): Declare.
13095 1999-06-24 Richard M. Stallman <rms@gnu.org>
13097 * casefiddle.c (casify_object): Use make_multibyte_string
13098 if we casify a multibyte string.
13100 1999-06-22 Ken'ichi Handa <handa@gnu.org>
13102 * fileio.c: (Finsert_file_contents): In the case of REPLACE, call
13103 del_range_byte instead of del_range_1, set `inserted' to the
13104 number of characters actually inserted.
13106 1999-06-17 Dave Love <fx@gnu.org>
13108 * coding.c (decode_coding_sjis_big5): Avoid compiler warning.
13110 1999-06-18 Paul Eggert <eggert@twinsun.com>
13112 * filelock.c (BOOT_TIME_FILE): New macro.
13113 (get_boot_time): Use it instead of hardwiring the file name.
13114 Check BOOT_TIME_FILE only after inspecting the kernel directly.
13116 1999-06-17 Dave Love <fx@gnu.org>
13118 * xdisp.c (invalid_eol_type): Make it unsigned.
13120 1999-06-17 Karl Heuer <kwzh@gnu.org>
13122 * process.c (send_process): Delete unsafe/redundant assignment.
13124 1999-06-17 Jason Rumney <jasonr@gnu.org>
13126 * w32term.c (dumprectangle): Handle wide characters properly.
13128 1999-06-16 Andrew Innes <andrewi@gnu.org>
13130 * s/ms-w32.h (strerror): Override the default implementation of
13131 strerror, so we can map winsock error codes.
13133 * w32.c (sys_strerror): New function.
13135 * w32fns.c (w32_to_x_weight): Return "demibold" instead of "semibold".
13137 1999-06-15 Ken'ichi Handa <handa@gnu.org>
13139 * buffer.c (syms_of_buffer): Don't make
13140 enable-multibyte-characters customizable.
13142 1999-06-15 Richard M. Stallman <rms@gnu.org>
13144 * editfns.c (Fuser_full_name): Doc fix.
13146 1999-06-14 Tak Ota <ota@atc.sel.sony.com>
13148 * w32bdf.c: (clear_cached_bitmap_slots): Remove.
13149 (get_bitmap_with_cache): Check if CreateBitmap failed.
13150 Adjust cache size dynamically so cache is never larger than the
13151 system limit of GDI resources.
13152 Do cache clearing inline. Move global variables to local scope.
13155 1999-06-13 Wolfgang Glas <Wolfgang.Glas@hfm.tu-graz.ac.at>
13157 * unexsgi.c (unexec): Dump the .rodata section from memory
13158 under IRIX6.5 in order to be able to unexec with gcc.
13160 1999-06-11 Greg Hudson <ghudson@MIT.EDU>
13162 * indent.c (compute_motion): Fix boundary case.
13164 1999-06-11 Jason Rumney <jasonr@altavista.net>
13166 * w32term.c (cancel_mouse_face): New function. See equiv
13167 changes to xterm.c on 1996-10-31.
13168 (x_set_window_size): Use cancel_mouse_face.
13169 (w32_read_socket): Use cancel_mouse_face.
13170 Update frame position when size is restored.
13172 1999-06-04 Richard M. Stallman <rms@gnu.org>
13174 * lread.c (Vuser_init_file): New variable.
13175 (syms_of_lread): Set up Lisp variable.
13176 (Fload): Store the file name there, if var was t before.
13178 1999-06-04 Paul Eggert <eggert@twinsun.com>
13180 * filelock.c (get_boot_time): Don't look at /proc/uptime; it
13181 doesn't work if the system date is changed, or if the system
13182 is suspended. Look at the last-modified time of
13183 /var/run/random-seed instead.
13185 1999-06-03 Ken'ichi Handa <handa@gnu.org>
13187 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
13188 japanese-jisx0208-1978 correctly.
13190 1999-06-03 Andrew Innes <andrewi@gnu.org>
13192 * unexw32.c (get_section_info) [_ALPHA_]: Force as much bss data
13193 as possible to be dumped, for safety.
13195 1999-06-02 Ken'ichi Handa <handa@gnu.org>
13197 * coding.c (ENCODE_SJIS_BIG5_CHARACTER): Encode charset
13198 latin-jisx0201 correctly.
13200 1999-05-26 Ken'ichi Handa <handa@gnu.org>
13202 * charset.h (Vcharset_table): Comment fixed.
13204 1999-05-24 Richard Stallman <rms@gnu.org>
13206 * coding.c (syms_of_coding): Doc fix.
13208 * buffer.c (syms_of_buffer): Doc fix.
13210 * filelock.c (lock_if_free): After deleting a stale lock,
13211 try again to lock the file.
13213 1999-05-22 Andrew Innes <andrewi@gnu.org>
13215 * w32inevt.c (maybe_generate_resize_event): Detect changes in the
13216 console window size.
13217 (w32_console_read_socket): Call maybe_generate_resize_event
13218 whenever input events are received, since we don't get told when
13219 the window size changes (as opposed to the buffer size, which we
13222 * w32console.c (clear_frame): Remember that the window width might
13223 be smaller than the screen buffer width.
13224 (write_glyphs): Remove redundant variable attrs. Use
13225 FillConsoleOutputAttribute instead of WriteConsoleOutputAttribute.
13227 1999-05-20 Andrew Innes <andrewi@gnu.org>
13229 * w32term.c (w32_read_socket): Reset the grabbed flag when a frame gains or
13232 * w32fns.c (w32_wnd_proc): Ensure mouse capture is released if
13233 frame loses focus, and that mouse button state is reset. Ditto
13234 when the menu bar is activated.
13236 1999-05-18 Richard Stallman <rms@gnu.org>
13238 * abbrev.c (Fdefine_abbrev): Doc fix.
13240 1999-05-13 Paul Eggert <eggert@twinsun.com>
13242 * filelock.c: Fix performance bug on hosts with large
13243 /var/adm/wtmp files with no boot records.
13245 (boot_time_initialized): New var.
13246 (init_filelock): Initialize it.
13247 (get_boot_time): Use it, instead of nonzero boot_time,
13248 to test whether boot_time is initialized.
13249 Don't invoke utmp routines when dumping.
13251 (get_boot_time): First, try to get the boot time from the
13252 current utmp file, as this can be much faster. Don't try to
13253 get the boot time from utmp and/or wtmp more than once.
13255 (get_boot_time_1): When passed null pointer, don't invoke utmpname.
13256 New arg LATEST. All uses changed.
13258 1999-05-15 Andrew Innes <andrewi@gnu.org>
13260 * w32term.c (dumpglyphs): Use correct colours for drawing
13261 rectangles in place of missing fonts, and make them the right
13264 1999-05-14 Dave Love <fx@gnu.org>
13266 * syntax.c (Fparse_partial_sexp): Correct test for element 8 to be
13269 1999-05-11 Andrew Innes <andrewi@gnu.org>
13271 * w32fns.c (x_to_w32_charset): Reinstall VIETNAMESE_CHARSET
13273 (w32_wnd_proc): Reinstall debugging output.
13274 (w32_wnd_proc): Reinstall SetForegroundWindow change.
13275 (syms_of_w32fns): Reinstall new initializer for
13276 Vw32_phantom_key_code.
13278 * w32fns.c (x_to_w32_charset): Do partial matching of charset
13279 names for most non-European charsets, to cope with wildcards or
13280 missing spec dates.
13281 (Fw32_send_sys_command): Post WM_SYSCOMMAND rather than sending it
13282 to avoid deadlock when activating the menu bar.
13284 1999-05-10 Ken'ichi Handa <handa@gnu.org>
13286 * search.c (boyer_moore): Get charset base value of `untranslated'
13287 by masking by ~CHAR_FIELD3_MASK (instead of ~0xff).
13289 1999-05-10 Andreas Schwab <schwab@gnu.org>
13291 * fileio.c (Fread_file_name): Correct handling of dollars in file
13292 names. Protect dollars in strings put on the file-name-history.
13293 Substitute homedir by `~' also in default_filename.
13295 * xdisp.c (try_window_id): Fix computation of tab_offset when
13296 backing up over a character that is splitted across lines.
13298 1999-05-08 Kenichi HANDA <handa@etl.go.jp>
13300 * coding.c (code_convert_region): If eol format is inconsistent,
13301 change coding->symbol to the sibling coding system of Unix like
13304 1999-05-09 Richard M. Stallman <rms@gnu.org>
13306 * s/irix5-2.h (NO_WTMP_FILE): Define it.
13308 * filelock.c (get_boot_time): Handle NO_WTMP_FILE.
13310 1999-05-05 Andrew Innes <andrewi@gnu.org>
13312 * w32fns.c (w32_strict_painting): New variable.
13313 (w32_wnd_proc): Use it to select repaint rules.
13314 (syms_of_w32fns): Defvar it.
13316 1999-05-04 Andrew Innes <andrewi@gnu.org>
13318 * w32fns.c (x_to_w32_charset): Fix typo: want to map all Japanese
13319 charsets to the standard Windows charset for Japanese.
13321 1999-05-04 Ken'ichi Handa <handa@gnu.org>
13323 * xterm.c (x_load_font): Fix typo (`>' -> `=').
13325 * ccl.h (struct ccl_program): New member stack_idx.
13327 * ccl.c (ccl_prog_stack_struct): Declare it as static.
13328 (ccl_driver): Setup stack_idx and ccl_prog correctly. Update them
13330 (setup_ccl_program): Initialize ccl->stack_idx to 0.
13332 1999-05-03 Jason Rumney <jasonr@altavista.net>
13334 * w32term.c (dumpglyphs): Always fill background for italic fonts.
13336 1999-05-03 Eli Zaretskii <eliz@is.elta.co.il>
13338 * dired.c (make_time): Make argument type be time_t.
13340 1999-05-02 Eli Zaretskii <eliz@is.elta.co.il>
13342 * msdos.c (unibyte_display_via_language_environment): Add extern.
13344 1999-05-02 Richard M. Stallman <rms@gnu.org>
13346 * xdisp.c (display_text_line): Convert unibyte char to multibyte
13347 if unibyte_display_via_language_environment is set.
13348 (unibyte_display_via_language_environment):
13349 Variable moved from xfns.c and elsewhere.
13350 (syms_of_xfns): Set up Lisp var.
13352 * xfns.c (unibyte_display_via_language_environment):
13353 Variable moved to xdisp.c.
13354 (syms_of_xfns): Don't set up Lisp var here.
13356 * msdos.c (unibyte_display_via_language_environment):
13357 Variable moved to xdisp.c.
13358 (syms_of_msdos): Don't set up Lisp var here.
13360 * w32fns.c (unibyte_display_via_language_environment):
13361 Variable moved to xdisp.c.
13362 (syms_of_w32fns): Don't set up Lisp var here.
13364 1999-05-02 Andrew Innes <andrewi@gnu.org>
13366 * s/ms-w32.h (HAVE_FSYNC): New macro.
13367 (fsync): Map to _commit.
13368 (ftruncate): Map to _chsize.
13370 * w32term.c (dumpglyphs): On Windows NT, do output in Unicode even
13371 for ASCII, if enabled, to avoid memory allocation overhead for
13372 implicit Unicode conversion. Also, recognize that ASCII and
13373 Latin-1 have a trivial conversion to Unicode, so x_2byte_buffer
13374 already contains the Unicode characters in that case.
13375 (construct_drag_n_drop): Remove old code that was
13376 trashing the drop location.
13378 * w32select.c (Fw32_set_clipboard_data): Undo last change to add
13379 nlines to encoding_buffer_size (real bug was in a ccl program in
13380 lisp/international/coding.el).
13382 * w32reg.c (w32_get_string_resource): Check for name in current
13383 user area, and if not found look in the local machine area.
13385 * w32fns.c (w32_list_bdf_fonts): Initialize n_fonts.
13386 (Fw32_shell_execute): New function; used to support browse-url.
13387 (syms_of_w32fns): Register it.
13388 (w32_load_system_font): Force max width to be average
13389 char width for fixed-pitch fonts, to avoid unnecessary redisplay
13391 (x_to_w32_charset): Define VIETNAMESE_CHARSET if not
13393 (syms_of_w32fns): Set Vw32_phantom_key_code to 255.
13395 * unexw32.c (get_section_info): Dump back the entire EMDATA
13396 section if we can put Emacs' initialized data in a separate
13397 section, otherwise use the my_begdata/my_edata method.
13399 * makefile.nt ($(BLD)\w32term.obj): Add dependency on w32heap.h.
13401 * coding.c (decode_eol): Set produced/consumed values to zero if
13402 src_bytes is <= 0 on entry.
13404 1999-05-02 Jason Rumney <jasonr@altavista.net>
13406 * w32term.c (w32_write_glyphs, w32_clear_end_of_line,
13407 w32_clear_frame, clear_cursor, x_display_bar_cursor,
13408 x_display_box_cursor, x_set_window_size): Use phys_cursor_on
13410 (do_line_dance): Updated WRT xterm.c. Use macros where possible.
13411 (dumprectangle): Take into account the width of a left-side
13414 * w32proc.c (sys_kill): Attach to current foreground thread
13415 when grabbing focus; necessary on NT 5.0.
13417 * w32fns.c (w32_wnd_proc) [WM_PAINT]: Use rectangle from
13418 GetUpdateRect rather than BeginPaint.
13419 (w32_wnd_proc): Attach to current foreground thread
13420 when grabbing focus; necessary on NT 5.0.
13421 (w32_wnd_proc) [W32_DEBUG_DISPLAY]: Add output for
13422 debugging display messages.
13423 (w32_to_x_charset): Put wildcard last in unknown charsets to avoid
13426 1999-05-02 Kenichi HANDA <handa@etl.go.jp>
13428 * coding.c (setup_raw_text_coding_system): Call
13429 setup_coding_system to initialize the fields of struct
13430 coding_system correctly.
13432 1999-04-26 Kenichi HANDA <handa@etl.go.jp>
13434 * xterm.c (x_list_fonts): Fix previous change.
13436 1999-04-26 Richard Stallman <rms@gnu.org>
13438 * config.in (HAVE_LIBXP): Add #undef.
13439 * Makefile.in (LIB_MOTIF_EXTRA): Check HAVE_LIBXP.
13441 1999-04-12 Ken'ichi Handa <handa@gnu.org>
13443 * xterm.c (x_list_fonts): Trap X errors so that Emacs doesn't die
13446 1999-04-12 Karl Heuer <kwzh@gnu.org>
13448 * s/freebsd.h (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
13450 1999-04-11 Ken'ichi Handa <handa@gnu.org>
13452 * fontset.c (Fset_fontset_font): Fix previous change.
13454 1999-04-09 Ken'ichi Handa <handa@gnu.org>
13456 * fontset.c (Fquery_fontset): Check for fontset aliases here.
13457 (Fnew_fontset, Fset_fontset_font): Don't check for them here.
13459 1999-04-08 Richard Stallman <rms@gnu.org>
13461 * process.c (Faccept_process_output): Check validity of PROCESS.
13463 1999-04-08 Eli Zaretskii <eliz@gnu.org>
13465 * msdos.c (jp_kbd_translate_table): Fix the other \ key.
13467 1999-04-07 Richard Stallman <rms@gnu.org>
13469 * xfns.c (x_set_font): Fix error message.
13471 * fontset.c (Fquery_fontset): Don't check for fontset aliases here.
13472 (Fnew_fontset, Fset_fontset_font): Check for them here.
13473 (Ffontset_info, Fnew_fontset, Fset_fontset_font):
13474 Fix error message syntax.
13476 * buffer.c (Fmake_indirect_buffer): Copy multibyte status
13477 from the base buffer.
13478 (Fset_buffer_multibyte): Copy new multibyte status
13479 into the buffer's indirect buffers.
13481 1999-04-07 Ken'ichi Handa <handa@gnu.org>
13483 * fns.c (base64_encode_1): Don't add unnecessary newline at the
13486 1999-04-06 Richard Stallman <rms@gnu.org>
13488 * dired.c (Ffile_attributes): Doc fix.
13490 * keymap.c (Faccessible_keymaps): Really initialize i_byte.
13491 Convert 0200 to meta only in a unibyte string.
13492 (Fkey_description): Likewise.
13494 * eval.c (do_autoload): Preserve match data.
13496 1999-04-06 Kenichi HANDA <handa@etl.go.jp>
13498 * w32fns.c (x_to_w32_font): Provide sufficient buffer to
13499 encode_coding to avoid carryover.
13501 * coding.c: Add comments for decode_coding and encode_coding.
13503 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
13504 a composite character by skipping its leading code.
13505 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
13508 * coding.c: Add comments for decode_coding and encode_coding.
13510 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix bug of handling
13511 a composite character by skipping its leading code.
13512 <CCL_WriteMultibyteChar2>: Handle non-ascii single byte character
13515 1999-04-06 Eli Zaretskii <eliz@gnu.org>
13517 * msdos.c (dos_rawgetc): Don't zero out c if private translation
13519 (jp_kbd_translate_table): Support C-\.
13520 (it_kbd_translate_table): Map `>' correctly.
13521 (it_keyboard): Add `>'.
13523 1999-04-06 Richard Stallman <rms@gnu.org>
13525 * intervals.c (graft_intervals_into_buffer): Turn off
13526 inhibit_modification_hooks around calling Fset_text_properties.
13528 1999-04-05 Kenichi HANDA <handa@etl.go.jp>
13530 * xterm.c (dumpglyphs): Be sure to fill the whole background of
13533 1999-04-05 Eli Zaretskii <eliz@gnu.org>
13535 * msdos.c (jp_kbd_translate_table): Fix last change.
13537 1999-04-04 Eli Zaretskii <eliz@gnu.org>
13539 * msdos.c (struct kbd_translate): New struct, for key translation
13540 tables private to certain national keyboard layouts.
13541 (struct dos_keyboard_map): Add a pointer to a private translation
13543 (jp_kbd_translate_table): Private table for the Japanese
13545 (jp_keyboard): Japanese keyboard layout.
13546 (it_kbd_translate_table): Private table for the Italian keyboard.
13547 (it_keyboard): Use it_kbd_translate_table.
13548 (keyboard_layout_list): Add the Japanese keyboard.
13549 (dos_rawgetc): Use the keyboard-private translation table, if
13551 (abort) [__DJGPP_MINOR__ >= 2]: Raise SIGABRT.
13553 1999-04-02 Kenichi HANDA <handa@etl.go.jp>
13555 * xdisp.c (redisplay_window): When we call compute_motion with
13556 HPOS got from w->last_point_x, call it with DID_MOTION 1.
13557 (display_text_line): Stop the loop for processing overlay strings
13558 when we reach the right edge of the window.
13560 1999-03-31 Richard M. Stallman <rms@gnu.org>
13562 * doc.c (get_doc_string): When UNIBYTE and DEFINITION are 0,
13563 let the data control whether string is unibyte.
13565 1999-03-30 Richard M. Stallman <rms@gnu.org>
13567 * macros.c (Fexecute_kbd_macro): Save real_this_command.
13568 (pop_kbd_macro): Restore the saved real_this_command.
13569 (Fcall_last_kbd_macro): Set real_this_command to the macro.
13571 1999-03-26 Richard M. Stallman <rms@gnu.org>
13573 * buffer.c (Fset_buffer_modified_p): Don't lock or unlock
13574 if buffer-file-name is nil.
13576 1999-03-25 Jason Rumney <jasonr@altavista.net>
13578 * w32select.c (Fw32_set_clipboard_data): Take into account line
13579 ends when calculating clipboard storage needed for non-ASCII text.
13581 1999-03-25 Andrew Innes <andrewi@gnu.org>
13583 * makefile.nt (PREPARED_HEADERS): Change name of paths.h to epaths.h.
13584 (epaths.h): Renamed from paths.h.
13586 ($(BLD)\filelock.obj):
13587 ($(BLD)\lread.obj):
13588 ($(BLD)\w32fns.obj): Renamed paths.h to epaths.h.
13590 1999-03-23 Ken'ichi Handa <handa@gnu.org>
13592 * coding.c (encode_coding_iso2022): Initialize dummy arguments to
13593 ENCODE_ISO_CHARACTER for the previous change on this macro.
13595 1999-03-23 Kenichi Handa <handa@etl.go.jp>
13597 * xdisp.c (decode_mode_spec_coding): Handle integer value in
13598 eoltype correctly for backward compatibility.
13600 1999-03-20 Kenichi HANDA <handa@etl.go.jp>
13602 * coding.c (ENCODE_ISO_CHARACTER): Check validity of CHARSET. If
13603 invalid, produce the buffer internal byte sequence without encoding.
13605 1999-03-19 Karl Heuer <kwzh@gnu.org>
13607 * editfns.c (Fformat): Accept %i format.
13609 1999-03-17 Karl Heuer <kwzh@gnu.org>
13611 * filelock.c (get_boot_time): Test tempname, not filename.
13613 1999-03-17 Jason Rumney <jasonr@altavista.net>
13615 * w32bdf.h: Merged patches from Meadow; introduce bitmap cache to
13618 * w32bdf.c: Merged patches from Meadow; introduce bitmap cache to
13620 (get_cached_font_char, cache_char_offset, get_bitmap_with_cache)
13622 (w32_free_bdf_font, seek_char, w32_get_bdf_glyph, w32_BDF_TextOut)
13625 * w32fns.c (enum_font_cb2): Set the font height to be the
13626 character height, not the cell height.
13627 (Fw32_select_font): Initialize font dialog with current default font.
13628 (Vw32_system_coding_system): New variable.
13629 (w32_strict_filenames): Add comment.
13630 (w32_to_x_font): Decode font name using Vw32_system_coding_system.
13631 (x_to_w32_font): Encode font name using Vw32_system_coding_system.
13632 (syms_of_w32fns): Add w32-system-coding-system.
13634 1999-03-15 Richard M. Stallman <rms@gnu.org>
13636 * xterm.c (XTread_socket) <ConfigureNotify>:
13637 If cursor pos is outside the new frame size, mark cursor as off.
13639 1999-03-14 Ken'ichi Handa <handa@gnu.org>
13641 * xdisp.c (try_window_id): Initialize val.ovstring_chars_done to 0.
13643 * xterm.c (x_load_font): Trap X errors so that Emacs doesn't die
13646 1999-03-14 Richard M. Stallman <rms@gnu.org>
13648 * macros.c (Fexecute_kbd_macro): Initialize executing_macro_iterations
13651 1999-03-14 Jason Rumney <jasonr@altavista.net>
13653 * w32fns.c (w32_strict_fontnames): New variable.
13654 (Fx_create_frame): Formatting fix.
13655 (w32_load_system_font): Keep trying to load non-existant font
13656 if w32_strict_fontnames is nil. Formatting fix.
13657 (syms_of_w32fns): Add w32-strict-fontnames.
13659 * w32term.c (W32_TEXTOUT): Do not multiply nchars by charset_dim.
13660 (dumpglyphs): Formatting fixes.
13662 1999-03-14 Geoff Voelker <voelker@cs.washington.edu>
13664 * w32fns.c (w32_wnd_proc): Handle WM_GETMINMAXINFO message.
13666 1999-03-10 Karl Heuer <kwzh@gnu.org>
13668 * puresize.h (BASE_PURESIZE): Increase to 505000.
13670 1999-03-09 Richard M. Stallman <rms@gnu.org>
13672 * emacs.c (main) [CLASH_DETECTION]: Call init_filelock.
13674 * filelock.c (init_filelock): New function.
13676 1999-03-09 Dave Love <fx@gnu.org>
13678 * fileio.c (Ffile_directory_p): Doc fix.
13680 1999-03-05 Richard M. Stallman <rms@gnu.org>
13682 * coding.c (setup_coding_system): Check for CODING_SYSTEM = nil.
13684 1999-03-08 Richard M. Stallman <rms@gnu.org>
13686 * filelock.c (get_boot_time): Reduce scope of #ifdef BOOT_TIME
13687 to only the part that uses get_boot_time_1.
13689 1999-03-07 Dave Love <fx@gnu.org>
13691 * fileio.c (Finsert_file_contents): Use xfree.
13693 1999-03-06 Kenichi Handa <handa@etl.go.jp>
13695 * Makefile.in (callproc.o, coding.o, fileio.o, msdos.o, process.o,
13696 term.o, xselect.o): Depend on ccl.h.
13698 1999-03-05 Geoff Voelker <voelker@cs.washington.edu>
13700 * makefile.nt: Remove common multiple file compilation commands.
13702 1999-03-04 Takeshi YAMADA <yamada@cslab.kecl.ntt.co.jp>
13704 * fns.c (Fbase64_encode_string): Allocate sufficient memory for
13705 newlines added when the arg NO-LINE-BREAK is nil.
13707 1999-03-04 Karl Heuer <kwzh@gnu.org>
13709 * search.c (Fstring_match, Fposix_string_match): Doc fix.
13711 * buffer.c (syms_of_buffer): Doc fix for case-fold-search.
13713 1999-03-04 Dave Love <fx@gnu.org>
13715 * term.c (term_init): Use xmalloc, not malloc.
13717 * callproc.c (Fcall_process): Use xmalloc, xfree.
13719 1999-03-03 Andreas Schwab <schwab@gnu.org>
13721 * eval.c (Fdefconst): Doc fix.
13723 1999-03-01 Kenichi Handa <handa@etl.go.jp>
13725 * coding.c: Comment for ISO 2022 encoding mechanism modified.
13727 1999-03-01 Eli Zaretskii <eliz@gnu.org>
13729 * w16select.c (get_clipboard_data): Always stop at the first null byte.
13731 1999-02-28 Richard M. Stallman <rms@gnu.org>
13733 * filelock.c (get_boot_time): Support FreeBSD way to read boot-time.
13735 * cmds.c (internal_self_insert): Calculate column properly
13736 in overwrite-of-tab case.
13738 1999-02-27 Andreas Schwab <schwab@gnu.org>
13740 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't use unsetenv, it calls
13741 malloc in glibc 2.1.
13743 1999-02-26 Richard Stallman <rms@gnu.org>
13745 * Makefile.in: paths.h and paths.in renamed to epaths.h and epaths.in.
13747 * epaths.in: Renamed from paths.in.
13748 This avoids a conflict with a system header file paths.h on GNU/Linux.
13750 * callproc.c, lread.c, w32fns.c, xfns.c, xrdb.c:
13751 Use epaths.h istead of paths.h.
13753 1999-02-26 Andreas Schwab <schwab@gnu.org>
13755 * emacs.c (main) [DOUG_LEA_MALLOC]: Work around a bug in glibc's
13758 1999-02-25 Dave Love <fx@gnu.org>
13760 * buffer.c (syms_of_buffer): Doc fix for enable-multibyte-characters.
13762 1999-02-25 Richard Stallman <rms@gnu.org>
13764 * filelock.c (get_boot_time): Use WTMP_FILE for file name.
13765 (WTMP_FILE): Default definition in case not defined.
13766 (get_boot_time_1): Test that file exists before trying to read it.
13768 1999-02-25 Ken'ichi Handa <handa@gnu.org>
13770 * keymap.c (push_key_description): If enable-multibyte-characters
13771 is nil and C is single byte, push C as is.
13773 1999-02-24 Kenichi Handa <handa@etl.go.jp>
13775 * keymap.c (push_key_description): If enable-multibyte-characters
13776 is non-nil, try to convert unibyte character to multibyte. For
13777 invalid multibyte character, show all bits by octal form.
13778 (Fsingle_key_description): Check the validity of charset for a
13781 1999-02-23 Richard M. Stallman <rms@gnu.org>
13783 * fileio.c (Ffile_regular_p): Undo previous change.
13785 * eval.c (Fdefconst): Doc fix.
13787 * filelock.c (get_boot_time): Don't use BUFSIZ.
13789 1999-02-22 Andrew Innes <andrewi@gnu.org>
13791 * makefile.nt ($(BLD)\w32bdf.obj): Add missing continuation character.
13792 (EXTRA_LINK): Do version test with strings.
13794 1999-02-22 Andreas Schwab <schwab@gnu.org>
13796 * fns.c (Fbase64_encode_string): Fix last change.
13798 * termhooks.h (event_kind): Add user_signal.
13800 * keyboard.c (Qusr1_signal, Qusr2_signal): New variables.
13801 (syms_of_keyboard): Initialize them.
13802 (lispy_user_signals): New variable.
13803 (make_lispy_event): Handle user_signal event type.
13805 * emacs.c: Don't define Qusr1_signal and Qusr2_signal.
13806 (syms_of_emacs): Don't initialize them.
13807 (handle_USR1_signal, handle_USR2_signal): Set event type to
13808 user_signal instead of non_ascii_keystroke, and use plain integers
13809 as code instead of Lisp symbols.
13811 1999-02-21 Eli Zaretskii <eliz@delysid.gnu.org>
13813 * fileio.c: (lstat) [!S_ISLNK]: Use stat instead of lstat.
13815 1999-02-21 Richard Stallman <rms@gnu.org>
13817 * filelock.c (get_boot_time_1): Put this in #ifdef BOOT_TIME.
13819 * print.c (print_error_message): Don't crash if (cdr data)
13822 1999-02-21 Eli Zaretskii <eliz@gnu.org>
13824 * fileio.c (lstat) [!S_ISLNK]: Use stat instead of lstat.
13826 1999-02-20 Andrew Innes <andrewi@gnu.org>
13828 * vm-limit.c (memory_warnings) [WINDOWSNT]: Reset lim_data on each
13829 run, since size can vary from run to run.
13831 * makefile.nt (EXTRA_LINK, LINK_FLAGS): Ensure base relocation
13832 data is included, to enable profiling.
13833 ($(EMACS)): Map file not needed for emacs.exe.
13835 * emacs.c (main): [!SYSTEM_MALLOC]: Call realloc and free as well
13836 as malloc before calling uninterrupt_malloc, for consistency.
13837 This also enables profiling to work on WINDOWSNT.
13839 1999-02-18 Richard Stallman <rms@gnu.org>
13841 * Makefile.in (emacs.o): Depend on termhooks.h.
13842 (filelock.o): Depend on systime.h.
13844 1999-02-18 Ken'ichi Handa <handa@gnu.org>
13846 * coding.c (Fdecode_sjis_char): Use %x for formatting error message.
13847 (Fdecode_big5_char): Likewise.
13849 1999-02-17 Richard Stallman <rms@gnu.org>
13851 * insdel.c (adjust_markers_for_replace): When doing an insertion
13852 (replacing a region of zero length), handle markers at the
13853 insertion point properly.
13855 1999-02-17 Andrew Innes <andrewi@gnu.org>
13857 * w32fns.c (Vw32_quit_key): New variable.
13858 (post_character_message): Use it.
13859 (syms_of_w32fns): DEFVAR it.
13861 1999-02-16 MORIOKA Tomohiko <morioka@jaist.ac.jp>
13863 * fns.c (Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
13865 1999-02-16 Richard Stallman <rms@gnu.org>
13867 * filelock.c (within_one_second): New function.
13868 (current_lock_owner): Use that.
13869 (get_boot_time): Use /proc/uptime if available.
13870 Otherwise, if nothing found in wtmp, try wtmp.1.gz and so on.
13871 (get_boot_time_1): New subroutine taken from get_boot_time.
13873 1999-02-16 Richard Stallman <rms@gnu.org>
13875 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
13876 (syms_of_emacs): Init and staticpro them.
13877 (handle_USR1_signal): Don't run any code, just queue up an event.
13878 (handle_USR2_signal): Likewise.
13880 1999-02-16 Eli Zaretskii <eliz@gnu.org>
13882 * dired.c (Ffile_attributes): If the file's size doesn't fit in
13883 an integer, return it as a float. Doc string fixed.
13885 1999-02-16 Richard Stallman <rms@gnu.org>
13887 * emacs.c (Qusr1_signal, Qusr2_signal): New variables.
13888 (syms_of_emacs): Init and staticpro them.
13889 (handle_USR1_signal): Don't run any code, just queue up an event.
13890 (handle_USR2_signal): Likewise.
13892 1999-02-15 Kenichi Handa <handa@etl.go.jp>
13894 * coding.c (Fdecode_sjis_char, Fencode_sjis_char): Handle
13895 ASCII correctly. Signal error on invalid characters.
13896 (Fdecode_big5_char, Fencode_big5_char): Likewise.
13898 1999-02-15 Eli Zaretskii <eliz@gnu.org>
13900 * w16select.c (get_clipboard_data): Work around a bug in Windows95
13901 DOS box which doubles the reported size of text in the clipboard.
13903 1999-02-15 Kenichi Handa <handa@etl.go.jp>
13905 * coding.c (decode_coding_iso2022): Don't set
13906 coding->composed_chars to 0 here.
13907 (setup_coding_system): Set coding->composed_chars to 0 here.
13909 1999-02-10 Richard Stallman <rms@gnu.org>
13911 * fileio.c (Ffile_regular_p): Use lstat.
13913 1999-02-09 Richard Stallman <rms@gnu.org>
13915 * unexelf.c (HAS_SBSS_SECTION): Define this in some cases.
13916 (unexec): Test this instead of specific systems.
13918 * m/macppc.h: New file.
13920 1999-02-08 Dave Love <fx@gnu.org>
13922 * fns.c (Fyes_or_no_p, Fy_or_n_p): Doc fix.
13924 1999-02-08 Ken'ichi Handa <handa@gnu.org>
13926 * coding.c (ccl_coding_driver): On encoding, coding->produced_char
13927 should be set to coding->produced.
13929 1999-02-07 Paul Fisher <rao@gnu.org>
13931 * fns.c (IS_BASE64_IGNORABLE, READ_QUADRUPLET_BYTE): New macros.
13932 (base64_decode_1): Use READ_QUADRUPLET_BYTE.
13934 1999-02-07 Markus Rost <markus.rost@mathematik.uni-regensburg.de>
13936 * editfns.c (Fformat): Doc fix.
13938 1999-02-06 Richard Stallman <rms@gnu.org>
13940 * process.c (syms_of_process): defsubr it.
13941 (Fprocess_running_child_p): New function.
13943 1999-02-05 Andrew Innes <andrewi@gnu.org>
13945 * w32term.c (construct_drag_n_drop): Call DraqQueryPoint before
13946 recording drop position.
13948 1999-02-05 Ken'ichi Handa <handa@gnu.org>
13950 * coding.c (encode_coding_iso2022): Before writing out an invalid
13951 code, reset graphic planes and registers if necessary.
13953 * term.c (encode_terminal_code): Fix previous change.
13955 1999-02-04 Eli Zaretskii <eliz@gnu.org>
13957 * w16select.c (last_clipboard_text, clipboard_storage_size): New
13959 (set_clipboard_data): Save a copy of the text we put into
13960 clipboard in last_clipboard_text.
13961 (get_clipboard_data): If the clipboard text is identical to what
13962 last_clipboard_text holds, pretend there's no data in the clipboard.
13964 1999-02-03 Richard Stallman <rms@gnu.org>
13966 * s/gnu.h (NLIST_STRUCT): Add #undef.
13968 1999-02-03 Eli Zaretskii <eliz@gnu.org>
13970 * w16select.c (Fw16_set_clipboard_data): When the text needs to be
13971 encoded, set its pointer and size as returned by encode_coding.
13973 1999-02-02 Ken'ichi Handa <handa@gnu.org>
13975 * fns.c (Fset_char_table_default): To handle the case that CH is
13976 an ASCII char, use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13978 1999-02-02 Andrew Innes <andrewi@gnu.org>
13980 * w32fns.c (syms_of_w32fns): Change default value of
13981 w32-mouse-move-interval to 0, so that the mouse wheel/rocker on
13982 some mice works properly.
13984 1999-02-02 Eli Zaretskii <eliz@gnu.org>
13986 * w16select.c (set_clipboard_data): Correctly null-terminate the
13987 string to be put into the Windows clipboard. Use xbuf_addr.
13989 1999-02-01 Richard Stallman <rms@gnu.org>
13991 * buffer.c (Fset_buffer_multibyte): Error if buffer is indirect.
13993 1999-01-31 Richard Stallman <rms@gnu.org>
13995 * process.c (process_send_signal): If CURRENT_GROUP is `lambda'
13996 then don't send the signal if the shell owns the terminal.
13997 (Finterrupt_process): Doc change.
13999 1999-01-31 Andrew Innes <andrewi@gnu.org>
14001 * unexw32.c: (ROUND_UP_DST_AND_ZERO): New macro.
14002 (copy_executable_and_dump_data): Use it to ensure alignment slop
14005 1999-01-30 Andrew Innes <andrewi@gnu.org>
14007 * w32.c (init_environment): Change argv[0] to contain the full
14010 * emacs.c (main) [WINDOWSNT]: Pass argv to init_environment.
14012 1999-01-29 Ken'ichi Handa <handa@gnu.org>
14014 * xterm.c (x_new_fontset): For ASCII font, don't use the font name
14015 returned by x_new_font (the resolved one) but use the font name
14016 set in the fontset specification.
14017 (x_load_font): For the height of font, if normarl ascent and
14018 descent value are larger than those in max_bounds field, use the
14021 1999-01-28 Eli Zaretskii <eliz@gnu.org>
14023 * xdisp.c (decode_mode_spec_coding): Fix previous change.
14025 1999-01-27 Geoff Voelker <voelker@cs.washington.edu>
14027 * makefile.nt: Use full path to temacs.exe when dumping.
14029 1999-01-27 Jason Rumney <jasonr@altavista.net>
14031 * w32fns.c (w32_load_system_font): Do not load unlisted fonts if
14033 (enum_fontex_cb1, enum_fontex_cb2): New functions.
14034 (w32_list_bdf_fonts): New parameter; max_names. Callers updated.
14035 (w32_list_synthesized_fonts): New function.
14036 (w32_list_fonts): Use maxnames. Use EnumFontFamiliesEx when
14037 available instead of EnumFontFamilies. List synthesized fonts if
14038 Vw32_enable_italics is non-nil.
14040 1999-01-27 Richard Stallman <rms@gnu.org>
14042 * s/ptx4.h (SETUP_SLAVE_PTY): Use the ptem module if it exists.
14043 Don't complain if ttcompat does not exist.
14045 * w32fns.c (x_set_frame_parameters): gcpro as needed.
14047 1999-01-27 Andrew Innes <andrewi@gnu.org>
14049 * w32fns.c (w32_wnd_proc): Fix bug introduced by previous change;
14050 the lwindow, rwindow and apps keys could not be used as function
14051 keys, because they were being passed to TranslateMessage which
14052 ignores them. Also, key was being changed to SPC.
14054 * makefile.nt: Do make version comparison as strings.
14056 1999-01-27 Eli Zaretskii <eliz@gnu.org>
14058 * coding.c (syms_of_coding): eol-mnemonic-* variables are now
14059 strings, not characters.
14061 * coding.h: Likewise.
14063 * xdisp.c (decode_mode_spec_coding): Display the EOL type as a
14066 1999-01-26 Dave Love <fx@gnu.org>
14068 * emacs.c (main): Up-date copyright.
14070 1999-01-25 Dave Love <fx@gnu.org>
14072 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
14074 1999-01-25 Andreas Schwab <schwab@gnu.org>
14076 * eval.c (Fsignal): Move comment to avoid confusing make-docfile.
14078 1999-01-23 Richard M. Stallman <rms@borg.ai.mit.edu>
14080 * xfns.c (x_set_frame_parameters): gcpro as needed.
14082 * window.c (Fset_window_point): If WINDOW is selected but the
14083 current buffer is not its buffer, don't use Fgoto_char.
14085 1999-01-22 Richard M. Stallman <rms@gnu.org>
14087 * syntax.c (scan_sexps_forward): Delete duplicate code
14088 to set prev_from_syntax, above start of main loop.
14089 At startinstring, check syntax when checking for a match.
14091 1999-01-22 Jason Rumney <jasonr@altavista.net>
14093 * w32bdf.c: New file.
14094 * w32bdf.h: New file.
14095 * makefile.nt: Add w32bdf.c and w32bdf.h.
14097 * w32gui.h: Include w32bdf.h.
14098 (W32FontStruct) Add bdf element.
14100 * w32term.h (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
14103 * w32term.c (W32_TEXTOUT): New macro.
14104 (dumpglyphs): Support BDF fonts. Use W32_TEXTOUT macro.
14105 Simplify baseline calculation. Detect SJIS by font, not glyph.
14107 (syms_of_w32term): Remove "jisx0212-sjis" from
14108 w32-charset-to-codepage-alist.
14109 Replace "ksc5601" with "ksc5601.1987" in w32-charset-to-codepage-alist.
14110 Add "ksc5601.1992' to w32-charset-to-codepage-alist.
14112 * w32fns.c (Vw32_bdf_filename_alist): New variable.
14113 (x_destroy_bitmap): Returns void not int.
14114 (x_set_border_pixel): Returns void.
14115 (w32_load_bdf_font): New function.
14116 (w32_load_system_font): New function, was w32_load_font. List
14117 fonts before loading. Explicitly set encoding for SJIS fonts.
14118 Set default_ascent to 0 as comment indicates.
14119 (w32_load_font): Call w32_load_system_font and w32_load_bdf_font.
14120 (w32_unload_font): Support BDF fonts.
14121 (w32_to_x_charset): Fix mappings to avoid wildcard mismatches.
14122 Autodetect whether to use koi8-r instead of iso8859-5.
14123 Associate "ksc5601.1987" with HANGUEL_CHARSET.
14124 Associate "ksc5601.1992" with JOHAB_CHARSET.
14125 (x_to_w32_charset): Make consistent with w32_to_x_charset.
14126 (w32_to_x_font): Add resolution.
14127 (x_to_w32_font): Use font resolution to calculate height if supplied.
14128 (w32_font_match): Handle wildcards anywhere within field.
14129 (enumfont_t): Remove unused head pointer.
14130 (enum_font_cb2): Dereference elfLogFont.
14131 (w32_list_bdf_fonts): New function.
14132 (w32_list_fonts): Use one_w32_dispay_info instead of insisting on
14133 valid frame. Remove MessageBox. Support BDF fonts.
14134 (Fw32_find_bdf_fonts): New function.
14135 (syms_of_w32fns): Add Vw32_bdf_filename_alist and
14136 Sw32_find_bdf_fonts.
14138 1999-01-21 Andrew Innes <andrewi@gnu.org>
14140 * makefile.nt (temacs): Use del to delete file, not rm.
14142 1999-01-19 Richard Stallman <rms@psilocin.ai.mit.edu>
14144 * keyboard.c (read_key_sequence): Fix previous change.
14146 * xterm.c (same_x_server): Detect treat ":0" and "unix:0"
14147 as the same. Treat "myname:0" as the same as those two.
14149 1999-01-19 Jason Rumney <jasonr@altavista.net>
14151 * w32fns.c (x_to_w32_charset): Add iso8859-9.
14152 (w32_to_x_charset): Fix charset mappings.
14154 * w32term.c: Remove codepage macros. Remove redundant BIG5 macros.
14155 (dumpglyphs): Move definitions out of block containing goto.
14156 Remove redundant code for BIG5.
14157 Use w32_codepage_for_font instead of
14158 w32_codepage_for_charset. Add cast to int where float
14159 operation is assigned to int.
14160 (Vw32_charset_to_codepage_alist): New variable.
14161 (w32_codepage_for_charset): Removed.
14162 (w32_codepage_for_font): New function, replacing
14163 w32_codepage_for_charset.
14164 (syms_of_w32term): Add and initialize
14165 w32-charset-to-codepage-alist.
14167 1999-01-17 Richard Stallman <rms@psilocin.ai.mit.edu>
14169 * xselect.c (x_handle_selection_clear): Don't clear the
14170 selection if Emacs still owns it through a different display.
14172 1999-01-17 Andrew Innes <andrewi@gnu.org>
14174 * w32proc.c: (w32_executable_type): Relax the check to identify
14175 cygwin-compiled applications, because the exact dll name varies
14176 with release. Now only require the name to start "cygwin".
14178 * w32heap.h: (ROUND_UP):
14179 (ROUND_DOWN): New macros.
14180 (need_to_recreate_heap): Renamed to using_dynamic_heap.
14181 (init_heap): New extern.
14182 (data_region_size):
14187 (w32_fatal_reload_error):
14188 (get_section_size): Obsolete externs removed.
14190 * w32heap.c: (RVA_TO_PTR): Redefine to convert RVA to address in
14192 (round_to_next): Obsolete function removed.
14193 (preload_heap_section): New variable.
14194 (data_region_size): Obsolete variable removed.
14195 (allocate_heap): Modified to determine end of static heap section
14196 used during preload, and use that as initial base address for
14197 dynamic heap instead of hard-coded value.
14198 (sbrk): Remove call to allocate_heap; handled by init_heap. Skip
14199 calls to commit or decommit pages when allocating from static heap
14200 section during preload.
14201 (recreate_heap): Obsolete function removed.
14202 (init_heap): New function to initialize internal sbrk heap
14203 variables. Uses static heap section during preload, otherwise
14204 calls allocate_heap to reserve a heap region dynamically.
14205 (round_heap): Use ROUND_UP macro instead of round_to_next.
14207 * unexw32.c: Major rewrite to support cleaner method of dumping; a
14208 static "bss" section is used for heap space during preload, and
14209 bss data is now written to the proper section area when dumping.
14210 (need_to_recreate_heap): Renamed to using_dynamic_heap.
14211 (heap_index_in_executable): Obsolete variable removed.
14212 (data_section): New variable.
14213 (data_start_va): Renamed to data_start.
14214 (data_start_file): Obsolete variable removed.
14217 (bss_section_static):
14218 (bss_start_static):
14220 (extra_bss_size_static):
14221 (heap_section): New variables.
14222 (_start): Remove code based on old unexec method. Call init_heap
14223 to initialize sbrk heap.
14224 (close_file_data): Update size of file when closing, so that
14225 unexec doesn't have to work out exact size in advance.
14226 (get_bss_info_from_map_file):
14227 (get_section_size): Obsolete functions removed.
14228 (rva_to_section): Fix minor bug, and add a work-around for a bug
14229 in very old linkers.
14230 (offset_to_section):
14231 (relocate_offset): New functions.
14234 (RVA_TO_SECTION_OFFSET):
14237 (OFFSET_TO_PTR): New macros.
14238 (get_section_info): Modify to support new unexec method;
14239 determines address ranges in process that need dumping, and COFF
14240 sections where data will be dumped. Allows for static and global
14241 bss data to be in separate ranges. No longer relies on knowledge
14243 (copy_executable_and_dump_data_section): Renamed
14244 copy_executable_and_dump_data. Completely rewritten to copy
14245 executable section by section, so that raw data areas can be
14246 expanded to hold dumped data as necessary. Allows for bss data to
14247 be in same section as initialized data. Reduces size of static
14248 heap section to that used during preload.
14249 (dump_bss_and_heap):
14250 (w32_fatal_reload_error):
14252 (map_in_heap): Obsolete functions removed.
14253 (unexec): Rounds off preload heap to nearest page rather than
14254 virtual allocation unit. Modified to match other changes.
14256 * mem-limits.h: (get_lim_data): Use reserved_heap_size instead of
14259 * makefile.nt: (TEMACS_TMP): New macro.
14260 ($(TEMACS)): Output to TEMACS_TMP from link, use post-link
14261 processor to add static heap section in support of new unexec.
14263 * lastfile.c: Include config.h to pick up data layout pragmas.
14264 [WINDOWSNT]: Remove explicit pragma.
14266 1999-01-12 Kenichi Handa <handa@etl.go.jp>
14268 * coding.c (Fdecode_sjis_char): Decode Japanese Katakana character
14270 (Fencode_sjis_char): Encode Japanese Katakana character correctly.
14272 1999-01-11 Dave Love <fx@gnu.org>
14274 * coding.c (syms_of_coding): Doc fix for inhibit-eol-conversion.
14276 1999-01-11 Richard Stallman <rms@psilocin.ai.mit.edu>
14278 * keyboard.c (read_key_sequence): In key-translation-map and
14279 function-key-map, handle symbol with array as fn def.
14280 In function-key-map, handle symbol with keymap as fn def,
14281 and autoloaded definitions.
14283 * puresize.h (BASE_PURESIZE): Increment to 500000.
14285 * print.c (Qtemp_buffer_setup_hook): New variable.
14286 (syms_of_print): Init and staticpro that.
14287 (temp_output_buffer_setup): Run Qtemp_buffer_setup_hook.
14289 1999-01-11 Kenichi Handa <handa@etl.go.jp>
14291 * insdel.c (del_range_1): Call signal_after_change.
14292 (del_range_byte): Likewise.
14293 (del_range_both): Likewise.
14294 (del_range_2): Don't call signal_after_change.
14296 * xdisp.c (message_dolog): Use insert_1_both to avoid running any
14299 1999-01-07 Richard Stallman <rms@psilocin.ai.mit.edu>
14301 * eval.c (find_handler_clause): If SIG is nil (memory full error),
14302 never run the debugger, and don't bother checking the args
14303 to see whether the debugger should be run.
14305 1999-01-06 Richard Stallman <rms@psilocin.ai.mit.edu>
14307 * keyboard.c (read_key_sequence):
14308 Tell get_keyelt to look handle autoloads.
14309 Handle symbols defined as keymaps, and autoloaded keymaps.
14311 1999-01-06 Kenichi Handa <handa@etl.go.jp>
14313 * search.c (search_buffer): Fix previous change.
14315 1999-01-06 Eli Zaretskii <eliz@gnu.org>
14317 * w16select.c (set_clipboard_data): Terminate the text with a null
14318 character. Don't allow to put binary data into the clipboard.
14319 Return zero in case of success, 1 or 2 otherwise.
14320 (get_clipboard_data): Only bail out if the null character is in
14321 the last 32-byte chunk of clipboard data
14322 (Fw16_set_clipboard_data): Make ok and put_status be unsigned. If
14323 they save binary data, print a message in the echo area saying the
14324 text was not put into the clipboard.
14326 * msdos.c (IT_write_glyphs): Move constant expression out of the loop.
14328 1999-01-06 Andreas Schwab <schwab@gnu.org>
14330 * systty.h [__GLIBC__ >= 2]: Check __FAVOR_BSD instead of
14331 _BSD_SOURCE, the latter is always defined.
14333 1999-01-05 Richard Stallman <rms@psilocin.ai.mit.edu>
14335 * fns.c (Frequire): Don't fail to unbind bindings.
14337 1999-01-02 Richard Stallman <rms@psilocin.ai.mit.edu>
14339 * emacs.c (main) [DOUG_LEA_MALLOC]: Don't call r_alloc_reinit.
14341 * charset.c (Ffind_charset_region): Fix doc typo.
14343 1998-12-31 Eli Zaretskii <eliz@mescaline.gnu.org>
14345 * msdos.c (IT_write_glyphs): Convert unibyte characters to
14346 multibyte in unibyte buffers only.
14348 * keymap.c (Fdefine_prefix_command): Accept a third argument NAME
14349 and pass it to Fmake_sparse_keymap.
14351 1998-12-29 Richard Stallman <rms@psilocin.ai.mit.edu>
14353 * alloc.c (MMAP_MAX_AREAS): New macro.
14354 (allocate_vectorlike, make_uninit_multibyte_string): Use that.
14355 (init_alloc_once): Use that.
14357 * s/gnu-linux.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
14359 * alloc.c (lisp_malloc, lisp_free): New functions.
14360 Use them instead of malloc, xmalloc, and xfree, for Lisp objects.
14361 Don't set allocating_for_lisp in the callers; let lisp_malloc do it.
14362 (n_interval_blocks, n_float_blocks): New variable.
14363 (n_cons_blocks, n_vectors, n_symbol_blocks): New variable.
14364 (n_marker_blocks, n_string_blocks): New variable.
14365 (init_intervals, make_interval): Set a count variable.
14366 Use lisp_malloc instead of setting allocating_for_lisp.
14367 (init_float, make_float, init_cons, Fcons): Likewise.
14368 (allocate_vectorlike, init_symbol, Fmake_symbol): Likewise
14369 (init_marker, allocate_misc, init_strings): Likewise.
14370 (make_uninit_multibyte_string): Likewise.
14371 (gc_sweep, compact_strings): Decrement the count variables.
14373 * alloc.c (uninterrupt_malloc): Don't store Emacs's hooks
14374 into the old_..._hook variables.
14376 1998-12-28 Richard Stallman <rms@psilocin.ai.mit.edu>
14378 * keyboard.c: In each active map, for each menu bar item, use only
14380 (menu_bar_one_keymap): Initialize menu_bar_one_keymap_changed_items.
14381 (menu_bar_item): Update and test menu_bar_one_keymap_changed_items.
14382 (syms_of_keyboard): Staticpro and init it.
14384 * xmenu.c (single_keymap_panes):
14386 1998-12-28 Andrew Innes <andrewi@delysid.gnu.org>
14388 * w32fns.c (w32_msg_pump): Ignore WM_NULL message posted to thread
14389 by complete_deferred_msg.
14390 (post_character_message): Cancel all deferred messages when
14391 quit_char is typed, in order to break out of potential deadlocks.
14392 (cancel_all_deferred_msgs): New function.
14393 (complete_deferred_msg): Don't abort if msg not found; may have
14395 (Fw32_reconstruct_hot_key): Use pre-interned symbols.
14396 (Fw32_send_sys_command): Wait for system command to
14397 complete before returning.
14399 * w32term.c (x_iconify_frame): Wait for frame to be iconified; do
14400 not set async_iconified flag though.
14402 * w32proc.c: (Vw32_start_process_inherit_error_mode): New variable.
14403 (create_child): Use it.
14404 (syms_of_ntproc): Defvar it. Also fix docstrings for
14405 w32-start-process-share-console and w32-start-process-show-window.
14407 * unexw32.c (_start): Force system calls accessing unmounted
14408 devices to fail without prompting.
14410 1998-12-26 Richard Stallman <rms@psilocin.ai.mit.edu>
14412 * emacs.c (main): Call memory_warnings and uninterrupt_malloc
14413 even when starting the dumped Emacs.
14415 * keymap.c (Fsingle_key_description): Handle (control ?x) etc.
14416 (Fkey_description): Handle lists like vectors.
14418 1998-12-21 Kenichi Handa <handa@etl.go.jp>
14420 * callint.c (Fcall_interactively) <'C'>: Give Fread_char Qnil
14421 because of the change of the second argument of Fread_char.
14423 * charset.c (Fcharset_after): Check range. If POS is out of
14426 * keyboard.c (read_char): Don't bind input-method-exit-on-first-char.
14428 * lread.c (Fread_char): Change the meaning of the second argument.
14429 (Fread_event): Likewise.
14430 (Fread_char_exclusive): Likewise.
14432 * print.c (printchar): Fix previous change.
14434 * process.c (read_process_output): Decide the multibyteness of
14435 string given to a process filter by a coding system used for
14436 decoding the process output.
14438 1998-12-21 Eli Zaretskii <eliz@mescaline.gnu.org>
14440 * xterm.c (dumpglyphs): Don't convert 7-bit ASCII characters via
14441 nonascii-translation-table.
14442 * msdos.c (IT_write_glyphs): Likewise.
14443 * fns.c (concat): Likewise.
14444 * charset.c (unibyte_char_to_multibyte): Likewise.
14445 * insdel.c (copy_text, count_size_as_multibyte): Likewise.
14447 1998-12-21 Andreas Schwab <schwab@delysid.gnu.org>
14449 * doc.c (Fdocumentation): Change the doc string for prefix
14450 commands to make it a complete sentence in one line.
14452 1998-12-16 Petri Kaurinkoski <Petri.Kaurinkoski@hut.fi>
14454 * s/irix6-5.h: New file.
14455 * s/irix6-0.h (IRIX6): Define this symbol.
14456 * s/usg5-4.h (TIOCSIGSEND): Don't define this if irix6.
14457 (bcopy, bcmp, bzero): Likewise.
14458 * m/iris4d.h (LIBS_MACHINE): Leave this blank if irix6.5.
14459 (C_SWITCH_MACHINE): New value for irix6.5.
14461 1998-12-15 Richard Stallman <rms@gnu.org>
14463 * fns.c (Fbase64_decode_region, Fbase64_decode_string):
14464 Do free malloc'd memory even in case of failure. Use xfree, not free.
14465 (Fbase64_encode_region, Fbase64_encode_string): Use xfree, not free.
14466 (base64_decode_1): Don't fail for short lines.
14468 * print.c (printchar): Outputting multibyte characters
14469 to echo area always makes it multibyte.
14471 * search.c (search_buffer): Don't use Boyer-Moore
14472 to search for an invalid multibyte code.
14473 In unibyte case, no need to check whether there are translations
14474 in more than one charset; just set charset_base to 0.
14476 1998-12-15 Ken'ichi Handa <handa@delysid.gnu.org>
14478 * print.c (printchar): Cancel previous change.
14480 1998-12-15 Kenichi Handa <handa@etl.go.jp>
14482 * callproc.c: Include "ccl.h".
14483 (Fcall_process): Doc-string modified. Set CODING_MODE_LAST_BLOCK
14484 bit in argument_coding.mode to tell encoding procedure to flush
14485 data. While encoding arguments, if argument_coding uses CCL
14486 program, initialize it again after encoding.
14487 (Fcall_process_region): Doc-string modified. Handle the case that
14490 * ccl.c (CCL_SUCCESS): Don't set ccl->ic.
14491 (ccl_driver) <CCL_End>: Pretend that all source text is consumed.
14492 Set `ic' to the head of this command.
14493 (ccl_driver) <CCL_ReadMultibyteChar2>: Return a single byte 8-bit
14494 code for an invalid code.
14495 (setup_ccl_program): If the arg VEC is nil, skip setting ups
14498 * charset.c (Qunknown): New variable.
14499 (init_charset_once): Intern and staticpro Qunknown. Initialize
14500 all elements of Vcharset_symbol_table to Qunknown.
14501 (find_charset_in_str): New arg MULTIBYTE. If it is zero, check
14502 unibyte characters only. For an invalid composition sequence, set
14504 (Ffind_charset_region): Call find_charset_in_str with an
14505 appropriate MULTIBYTE arg. If undefined charsets are found,
14506 include `unknown' is the return value.
14507 (Ffind_charset_string): Likewise.
14508 (Fsplit_char): If CHAR is invalid, return `(unknown CHAR)'.
14509 (str_cmpchar_id): Max composite character code should be less than
14510 GENERIC_COMPOSITION_CHAR.
14512 * charset.h (find_charset_in_str): Update declaration.
14514 * coding.c (DECODE_DESIGNATION): Jump to label_invalid_code if
14515 final_char is invalid.
14516 (decode_coding): If coding->type is coding_type_ccl, call
14517 ccl_coding_driver even if SRC_BYTES is zero.
14518 (code_convert_region): Update `inserted' correctly after calling
14519 coding->post_read_conversion. Even after the code converter
14520 consumed all source text, call it once more if it is
14521 coding_type_ccl to flush out data.
14523 * fileio.c (Finsert_file_contents): Even if INSERTED is zero, if
14524 CODING is handled by CCL program, call code_convert_region.
14526 * fns.c (string_char_to_byte): Handle invalid multibyte sequence
14528 (string_byte_to_char): Likesize.
14530 * print.c (printchar): When outputting a multibyte character to
14531 echo area, always set message_enable_multibyte to 1.
14533 * process.c (read_process_output): If NBYTES is zero and
14534 CODING_MODE_LAST_BLOCK bit is not yet set in coding->mode, set it
14535 and try decoding again.
14536 (Fprocess_send_eof): If the coding system of PROCESS
14537 requires flushing, call send_process with null-string at first.
14539 * w16select.c (Fw16_set_clipboard_data): Call find_charset_in_str
14540 with MULTIBYTE arg 0.
14541 * w32select.c (Fw32_set_clipboard_data): Likewise.
14542 * xselect.c (lisp_data_to_selection_data): Likewise.
14544 1998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
14546 * search.c (Freplace_match): Set OPOINT clearly for the case
14547 where point is in the middle of the text to be replaced.
14549 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
14550 if compute_motion fails to advance at all, don't back it up.
14552 1998-12-10 Geoff Voelker <voelker@cs.washington.edu>
14554 * w32.c (w32_get_long_filename): Handle root dirs correctly.
14556 * s/ms-w32.h (LOCALTIME_CACHE): Define.
14558 1998-12-09 Richard Stallman <rms@gnu.org>
14560 * insdel.c (insert_from_buffer_1): Properly count the size
14561 of output from conversion to multibyte even when input
14562 is split across the gap.
14564 1998-12-09 Karl Heuer <kwzh@gnu.org>
14566 * keyboard.c: Doc fixes.
14568 * s/irix4-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Increase space.
14570 1998-12-08 Andrew Innes <andrewi@harlequin.co.uk>
14572 * w32select.c (Fw32_get_clipboard_data): Do not delete isolated CR
14573 characters, only convert CRLF to LF.
14575 1998-12-08 Geoff Voelker <voelker@cs.washington.edu>
14577 * makefile.nt: Do string comparision of _NMAKE_VER.
14579 1998-12-06 Eli Zaretskii <eliz@mescaline.gnu.org>
14581 * Makefile.in (msdos.o): Depend on termchar.h, charset.h,
14582 coding.h, and disptab.h
14584 * msdos.c (Vdos_unsupported_char_glyph): New variable.
14585 (syms_of_msdos): DEFVAR_LISP it.
14586 (IT_insert_glyphs, IT_delete_glyphs): New functions which abort Emacs.
14587 (internal_terminal_init): Set up insert_glyphs_hook and
14588 delete_glyphs_hook to call them. Explicitly set char_ins_del_ok to 0.
14589 (unibyte_display_via_language_environment): New variable.
14590 (syms_of_msdos): Devfar it.
14591 (IT_write_glyphs): Honor glyph aliasing via Vglyph_table.
14592 Encode the character codes of the glyphs according to the
14593 terminal_coding in effect.
14595 1998-12-04 Andreas Schwab <schwab@delysid.gnu.org>
14597 * fns.c (Fstring_as_unibyte): Doc fix.
14599 1998-12-03 Andreas Schwab <schwab@delysid.gnu.org>
14601 * charset.h: Declare char_valid_p.
14603 1998-12-03 Eli Zaretskii <eliz@mescaline.gnu.org>
14605 * dosfns.c (dos_cleanup): Flush and fsync the termscript stream.
14607 * msdos.c (init_environment): Record the time we started up.
14608 (IT_reset_terminal_modes): Don't restore the screen if we exit too
14609 fast after startup (aka crash).
14611 1998-12-02 Geoff Voelker <voelker@cs.washington.edu>
14613 * w32.c (check_windows_init_file): Use decode_env_path when
14614 using EMACSLOADPATH.
14616 1998-12-02 Jason Rumney <jasonr@altavista.net>
14618 * w32term.c (dumpglyphs): Use unsigned char arrays.
14619 Use FONT_MAX_WIDTH to detect and fudge proportional fonts
14620 for various languages.
14621 Compensate for fonts that have underhangs (e.g., Thai).
14623 * w32term.h (FONT_MAX_WIDTH): New macro.
14625 1998-12-02 Andrew Innes <andrewi@harlequin.co.uk>
14627 * keyboard.c (Qlanguage_change): New variable.
14628 (syms_of_keyboard): Init it.
14629 (kbd_buffer_get_event) [WINDOWSNT]: Generate language-change events.
14630 (lispy_function_keys) [HAVE_NTGUI]: Remove names for modifier
14631 keys; add name for Escape key; extend to 256 elements.
14632 (parse_modifiers): Make non-static.
14634 * keyboard.h (parse_modifiers): Declare prototype.
14636 * termhooks.h (event_kind) [WINDOWSNT]: Define language_change_event.
14638 * w32fns.c (w32_last_error): Fix cut+paste error.
14639 (Vw32_phantom_key_code): New variable.
14640 (Qhyper, Qsuper, Qmeta, Qalt, Qctrl, Qcontrol, Qshift): New variables.
14641 (syms_of_w32fns): Init and register them.
14642 (reset_modifiers): Use a more precise test for whether Emacs has
14643 keyboard focus. Synchronize state of all keys that can be used as
14644 modifiers, to overcome problems arising from hot-keys.
14645 (w32_key_to_modifier): Be careful not to call intern() to avoid
14646 requiring thread synchronization.
14647 (w32_msg_pump): Handle new WM_EMACS_TOGGLE_LOCK_KEY message.
14648 (w32_wnd_proc): Ensure lock key indicator lights are updated
14649 promptly on Windows 9x, by passing key events on to the system.
14650 (w32_wnd_proc): Use Vw32_phantom_key_code to stop system
14651 responding to Windows key events when not wanted.
14652 (w32_wnd_proc): Undo the mapping of Ctrl-Pause into cancel and
14653 Ctrl-NumLock into pause by the system.
14654 (w32_wnd_proc): Don't translate key combinations containing any
14655 modifiers other than shift (and capslock).
14656 (w32_wnd_proc): Reset modifier key states when receiving focus (we
14657 can't determine the key states until we have keyboard focus).
14658 (Fw32_toggle_lock_key): New function.
14659 (syms_of_w32fns): Defsubr it.
14661 * w32inevt.c (key_event): Use Vw32_phantom_key_code. Undo the
14662 mapping of Ctrl-Pause into cancel, and Ctrl-NumLock into pause.
14663 (w32_console_toggle_lock_key): New function.
14665 * w32term.h (WM_EMACS_TOGGLE_LOCK_KEY): New define.
14667 1998-11-30 Richard Stallman <rms@psilocin.ai.mit.edu>
14669 * search.c (Freplace_match): Set OPOINT clearly for the case
14670 where point is in the middle of the text to be replaced.
14672 * xdisp.c (display_text_line): When handling HPOS < 0 after loop,
14673 if compute_motion fails to advance at all, don't back it up.
14675 1998-11-28 Richard Stallman <rms@psilocin.ai.mit.edu>
14677 * xfns.c (Qouter_window_id): New variable.
14678 (syms_of_xfns): Initialize it.
14679 (x_report_frame_params): Set up outer-window-id parameter.
14681 * keymap.c (Fsingle_key_description): Fix previous change.
14683 1998-11-26 Ken'ichi Handa <handa@delysid.gnu.org>
14685 * lisp.h (Frequire): Update declaration.
14687 1998-11-26 Kenichi Handa <handa@etl.go.jp>
14689 * ccl.c (ccl_driver) <CCL_TranslateCharacter>: Don't suppress MSB
14690 if the charset is ascii.
14691 (ccl_driver) <CCL_TranslateCharacterConstTbl>: Likewise.
14693 * charset.c (non_ascii_char_to_string): If C has modifier bits,
14694 make an appropriate one byte string.
14695 (char_bytes): Handle the case that C is a single byte char or has
14698 * charset.h (CHAR_BYTES): If C has modifier bits, return 1.
14700 * cmds.c (internal_self_insert): If C has modifier bits, insert
14701 appropriate one byte char.
14703 1998-11-25 Richard Stallman <rms@psilocin.ai.mit.edu>
14705 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte):
14706 Clear text properties in the new string.
14708 1998-11-24 Felix Lee <flee@cygnus.com>
14710 * process.c (read_process_output): Call signal_after_change.
14712 1998-11-24 Richard Stallman <rms@psilocin.ai.mit.edu>
14714 * buffer.c (syms_of_buffer): Doc fix.
14716 * keyboard.c (syms_of_keyboard): Doc fix.
14718 1998-11-22 Richard Stallman <rms@psilocin.ai.mit.edu>
14720 * frame.c (Fset_mouse_position): Doc fix.
14722 1998-11-20 Richard Stallman <rms@psilocin.ai.mit.edu>
14724 * keymap.c (Fmake_keymap): Doc fix.
14726 1998-11-17 Kenichi Handa <handa@etl.go.jp>
14728 * category.c (word_boundary_p): If C1 or C2 are composite
14729 characters, test their first components.
14731 1998-11-16 Richard Stallman <rms@sucrose.ai.mit.edu>
14733 * window.c (temp_output_buffer_show): Around temp-buffer-show-hook,
14734 don't do save-excursion, just restore selected window.
14736 * window.c (window_loop): For UNSHOW_BUFFER,
14737 always do consider minibuffer windows.
14739 1998-11-16 Kenichi Handa <handa@etl.go.jp>
14741 * charset.h (SINGLE_BYTE_CHAR_P): Check if C is negative or not.
14743 * charset.c (non_ascii_char_to_string): If C is negative, signal error.
14745 * lisp.h (CHAR_TABLE_REF): Check if IDX is negative or not.
14747 * s/bsdos4.h: New file.
14749 1998-11-16 Kenichi Handa <handa@etl.go.jp>
14751 * Makefile.in (abbrev.o): Depend on charset.h
14752 (bytecode.o): Depend on charset.h.
14754 * bytecode.c: Include charset.h.
14756 * abbrev.c: Include charset.h.
14758 * syntax.h (SYNTAX_ENTRY_INT): For a composite character, check
14759 the first component.
14761 1998-11-13 Ehud Karni <ehud@unix.simonwiesel.co.il>
14763 * m/aviion-intel.h (LIBS_MACHINE): Delete redundant definition.
14765 1998-11-11 Richard Stallman <rms@gnu.org>
14767 * xterm.c (XTread_socket): Fix previous change in case F == 0.
14769 * s/dgux5-4-3.h (BSD_PGRPS): Add #undef.
14771 * s/dgux4.h (BROKEN_FIONREAD): #undef commented out.
14772 (INTERRUPT_INPUT): #define commented out.
14774 * m/aviion-intel.h: New file.
14776 1998-11-11 Eli Zaretskii <eliz@delysid.gnu.org>
14778 * fns.c (MAX_ALLOCA): New macro.
14779 (Fbase64_encode_region, Fbase64_encode_string,
14780 Fbase64_decode_region, Fbase64_decode_string): Don't allocate
14781 more than MAX_ALLOCA bytes with alloca; otherwise use xmalloc.
14783 1998-11-11 Ken'ichi Handa <handa@delysid.gnu.org>
14785 * insdel.c (byte_combining_error): Error message improved.
14787 * charset.c (char_valid_p): Handle a composite character correctly.
14789 1998-11-11 Kenichi Handa <handa@etl.go.jp>
14791 * charset.c (str_cmpchar_id): Check the byte sequence for
14792 composition more rigidly.
14793 (Fcompose_string): Allow DEL to be composed. Signal error if STR
14794 contains an invalid multibyte sequence.
14796 * xterm.c (x_list_fonts): Don't change the value of maxnames.
14798 1998-11-10 Andrew Innes <andrewi@harlequin.co.uk>
14800 * w32term.h (struct w32_display_info): New element faked_key.
14801 (WM_EMACS_SETKEYBOARDLAYOUT):
14802 (WM_EMACS_REGISTER_HOT_KEY):
14803 (WM_EMACS_UNREGISTER_HOT_KEY): New message definitions.
14804 (LEFT_WIN_PRESSED):
14805 (RIGHT_WIN_PRESSED):
14806 (APPS_PRESSED): New console keyboard modifier flags.
14808 * w32term.c (convert_to_key_event): Removed.
14809 (is_dead_key): Copied to w32fns.c.
14810 (w32_read_socket): Generate language_change_event. Modify to work
14811 with keyboard handling changes in w32_wnd_proc.
14813 * w32proc.c (sys_kill): Set extended key flag when faking
14814 Ctrl-Break keystrokes.
14815 (Fw32_get_locale_info): Allow LONGFORM parameter to specify an
14816 arbitrary locale property using a numerical index.
14817 (Vw32_valid_codepages): New variable.
14818 (enum_codepage_fn):
14819 (Fw32_get_valid_codepages):
14820 (Fw32_get_console_codepage):
14821 (Fw32_set_console_codepage):
14822 (Fw32_get_console_output_codepage):
14823 (Fw32_set_console_output_codepage):
14824 (Fw32_get_codepage_charset):
14825 (Fw32_get_valid_keyboard_layouts):
14826 (Fw32_get_keyboard_layout):
14827 (Fw32_set_keyboard_layout): New functions, exposing Windows locale
14828 handling functions.
14829 (syms_of_ntproc): Register them.
14831 * w32inevt.c: Include w32term.h and w32heap.h.
14833 (Vw32_enable_caps_lock):
14834 (Vw32_enable_num_lock):
14835 (Vw32_pass_lwindow_to_system):
14836 (Vw32_pass_rwindow_to_system):
14837 (Vw32_lwindow_modifier):
14838 (Vw32_rwindow_modifier):
14839 (Vw32_apps_modifier):
14840 (Vw32_scroll_lock_modifier):
14841 (w32_key_to_modifier): Add externs.
14842 (w32_kbd_mods_to_emacs): Recognize Windows keys, Apps key, and
14843 Scroll Lock as potential modifiers; exclude numpad keys from
14844 effect by CapsLock; act on Vw32_enable_caps_lock; remove obsolete
14846 (is_dead_key): Copy from w32fns.c.
14847 (w32_kbd_patch_key): Comment attempt to improve handling of
14848 dead-keys, and system bug relating to same on Windows NT. Work
14849 around the bug by calling ToUnicode and then converting to the
14851 (map_virt_key): Removed obsolete variable.
14852 (lispy_function_keys): Add extern.
14853 (key_event): Major rework of keyboard input handling: optionally
14854 recognize Windows keys and Apps key as modifiers; optionally treat
14855 NumLock, CapsLock and ScrollLock as function keys; let system
14856 translate keystrokes to characters to avoid system bugs relating
14857 to dead-key handling; preserve shift distinction for control
14858 characters. Remove some obsolete code.
14860 * makefile.nt ($(BLD)\w32inevt.obj): Add dependencies on w32term.h
14863 * w32fns.c (Vw32_pass_optional_keys_to_system): Variable removed.
14864 (Vw32_pass_lwindow_to_system):
14865 (Vw32_pass_rwindow_to_system):
14866 (Vw32_lwindow_modifier):
14867 (Vw32_rwindow_modifier):
14868 (Vw32_apps_modifier):
14869 (Vw32_enable_num_lock):
14870 (Vw32_enable_caps_lock):
14871 (Vw32_scroll_lock_modifier): New variables.
14872 (modifier_set): Return toggle state for Scroll Lock.
14873 (w32_key_to_modifier): New function. Returns chosen modifier bit
14875 (w32_get_modifiers): Returns modifier flags for
14876 non-keyboard input events.
14877 (construct_console_modifiers): Renamed from construct_modifiers;
14878 recognize Windows and Apps keys as modifiers.
14879 (w32_get_key_modifiers): New function. Returns modifier flags for
14880 keyboard input events.
14881 (map_keypad_keys): Make non-static. Use second arg as extended
14883 (w32_grabbed_keys): New variable.
14884 (HOTKEY, HOTKEY_ID, HOTKEY_VK_CODE, HOTKEY_MODIFIERS): New macros.
14885 (register_hot_keys):
14886 (unregister_hot_keys):
14888 (w32_parse_hot_key):
14889 (Fw32_register_hot_key):
14890 (Fw32_unregister_hot_key):
14891 (Fw32_registered_hot_keys):
14892 (Fw32_reconstruct_hot_key): New functions to support hotkeys.
14893 (post_character_message): New function.
14894 (w32_msg_pump): Handle new messages for using hotkeys and changing
14895 keyboard layout/language.
14896 (w32_wnd_proc): Major rework of keyboard input handling:
14897 optionally recognize Windows keys and Apps key as modifiers;
14898 optionally treat NumLock, CapsLock and ScrollLock as function
14899 keys; let system translate keystrokes to characters to avoid
14900 system bugs relating to dead-key handling; preserve shift
14901 distinction for control characters; forward keyboard
14902 layout/language changes to lisp; detect and convert hot-key events
14903 to normal keystrokes.
14904 (syms_of_w32fns): Register new functions and variables.
14905 (w32_last_error): New function for use in debugging.
14907 1998-11-10 Kenichi Handa <handa@etl.go.jp>
14909 * category.h (CATEGORY_SET): Adjusted for the change of
14911 (CATEGORY_SET): Likewise.
14913 * charset.c (cmpchar_component): New arg NOERROR. Check
14914 composition char ID more strictly.
14915 (Fcmpchar_component): Call cmpchar_component with NOERROR arg zero.
14916 (Fcmpchar_cmp_rule): If CHARACTER should be composed relatively,
14918 (Fcompose_string): Signal error if STR contains a rule-based
14919 composition character.
14921 * charset.h (cmpchar_component): Proto-type adjusted.
14923 1998-11-09 Kenichi Handa <handa@etl.go.jp>
14925 * charset.c (string_to_non_ascii_char): Return correct length for
14926 a charset of dimension 2 and composition character.
14928 1998-11-08 Richard Stallman <rms@sucrose.ai.mit.edu>
14930 * keymap.c (Fsingle_key_description): Handle generic characters.
14932 * process.c (Fprocess_status): Doc fix.
14934 1998-11-06 Ken'ichi Handa <handa@delysid.gnu.org>
14936 * charset.c (init_charset_once): Fix previous change.
14938 1998-11-06 Kenichi Handa <handa@etl.go.jp>
14940 * charset.c (string_to_non_ascii_char): Fix previous change.
14941 (char_valid_p): Check the validity of CHARSET by CHARSET_DEFINED_P.
14943 * charset.h (SPLIT_NON_ASCII_CHAR): Check dimension of an invalid
14944 character correctly.
14945 (STRING_CHAR): Handle an invalid charater correctly.
14947 1998-11-05 Kenichi Handa <handa@etl.go.jp>
14949 * charset.c (string_to_non_ascii_char): Fix previous change.
14951 * charset.h (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.
14953 * editfns.c (Fstring_to_char): Don't return a multibyte character
14954 if STRING is a unibyte string.
14956 * indent.c (MULTIBYTE_BYTES_WIDTH): Check validity of a multibyte
14959 * xdisp.c (display_text_line): Check validity of a multibyte character.
14960 (display_string): Likewise. Handle an invalid character correctly.
14962 1998-11-05 Karl Heuer <kwzh@gnu.org>
14964 * insdel.c (Fcombine_after_change_execute): Return nil, not junk.
14965 If nothing to do, return immediately.
14966 (syms_of_insdel): Initialize combine_after_change_buffer.
14968 1998-11-05 Richard Stallman <rms@gnu.org>
14970 * xterm.c (XTread_socket): ButtonPress clears f->mouse_moved.
14972 1998-11-04 Geoff Voelker <voelker@cs.washington.edu>
14974 * w32term.c (w32_enable_unicode_output): Rename from
14975 w32_no_unicode_output.
14976 (w32_use_unicode_for_codepage, syms_of_w32term): Use new name
14979 1998-11-04 Jason Rumney <jasonr@altavista.net>
14981 * w32fns.c (w32_list_fonts): Report an error if a frame has not
14984 * w32term.c (dumpglyphs): Use FRAME_FONT for w32_fill_area.
14986 1998-11-04 Kenichi Handa <handa@etl.go.jp>
14988 * charset.c (string_to_non_ascii_char): Change the check for the
14989 varidity of multibyte form.
14990 (update_charset_table): Check validity of BYTES. Don't set
14991 bytes_by_char_head here.
14992 (init_charset_once): Set bytes_by_char_head completely.
14994 * frame.c (do_switch_frame): Cancel previous change.
14996 * print.c (print_string): Check validity of a character.
14999 * sysdep.c [nec_ews_svr4]: Extern *_sobuf.
15001 * m/ews4800.h, s/ux4800.h: New files.
15003 1998-11-03 Theodore Jump <tjump@tertius.com>
15005 * makefile.nt: Compile multiple source files when possible.
15007 * w32faces.c (Qmouse_face): Replace definition with extern decl.
15009 1998-11-03 Andrew Innes <andrewi@delysid.gnu.org>
15011 * w32.c (stat): GetFileInformationByHandle can legitimately fail,
15012 so don't rely on it succeeding.
15014 * w32fns.c (x_to_w32_font): Specify DEFAULT_CHARSET in the w32
15015 LOGFONT struct if x font doesn't specify the charset.
15016 (x_to_w32_charset): Change >= to == when testing results of
15019 1998-11-02 Richard Stallman <rms@sucrose.ai.mit.edu>
15021 * fns.c (Frequire): New arg NOERROR.
15023 1998-11-02 Andrew Innes <andrewi@harlequin.co.uk>
15025 * fileio.c (Fsubstitute_in_file_name) [DOS_NT]: Fix typo.
15027 1998-10-31 Richard Stallman <rms@psilocin.ai.mit.edu>
15029 * xfaces.c (Qmouse_face): Replace definition with extern decl.
15030 (syms_of_xfaces): Initialization deleted.
15032 * textprop.c (Qmouse_face): Variable definition moved here.
15033 (syms_of_textprop): Initialize it.
15035 * data.c (set_internal): For built-in maybe-local vars,
15036 when BINDFLAG is set, do not mark them as local.
15038 1998-10-31 Ken'ichi Handa <handa@delysid.gnu.org>
15040 * insdel.c (replace_range): Fix previous change.
15042 1998-10-31 Kenichi Handa <handa@etl.go.jp>
15044 * editfns.c (Fsubst_char_in_region): Fix previous change.
15045 (Ftranslate_region): Fix previous change.
15047 * fns.c (Fbase64_decode_region): Fix previous change.
15049 * frame.c (do_switch_frame): Update minibuf_window if necessary.
15051 * insdel.c (byte_combining_error): New function.
15052 (CHECK_BYTE_COMBINING_FOR_INSERT): Call byte_combining_error.
15053 (insert_from_string_1): Set *(GPT_ADDR) to 0 before calling
15054 CHECK_BYTE_COMBINING_FOR_INSERT.
15055 (insert_from_buffer_1): Likewise.
15056 (adjust_after_replace): Check the posibility of inhibitted byte
15057 combining correctly.
15058 (replace_range): Before signaling an error for inhibitted byte
15059 combining, recover the buffer in a safe state.
15060 (del_range_2): Check the posibility of inhibitted byte combining
15063 1998-10-30 Andreas Schwab <schwab@delysid.gnu.org>
15065 * xselect.c (Vselection_coding_system): Doc fix.
15067 * fns.c (Fbase64_encode_region): Use SET_PT_BOTH instead of SET_PT
15068 when we have both char and byte position. Fix type clashes.
15070 * eval.c (Fsignal): Use a separate format string when passing
15071 error message string to fatal, in case it contains %'s.
15073 * editfns.c (Fchar_after): Fix type clashes.
15075 * charset.c (Fchar_bytes): Doc fix.
15076 (char_bytes): Fix returned value to match returned type.
15077 (syms_of_charset): Fix type clash in initialisation of
15080 1998-10-29 Geoff Voelker <voelker@cs.washington.edu>
15082 * w32console.c (initialize_w32_display): Use buffer coords
15083 instead of buffer size (which may be larger than the window).
15085 * fileio.c (init_fileio_once): New function.
15087 * emacs.c (main): Invoke init_fileio_once.
15089 1998-10-28 Paul Eggert <eggert@twinsun.com>
15091 * xterm.c (XTread_socket): Check the returned value of
15092 XmbLookupString more carefully.
15094 1998-10-28 Kenichi Handa <handa@etl.go.jp>
15096 * coding.c (DECODE_CHARACTER_ASCII): Check validity of inserted code.
15097 (DECODE_CHARACTER_DIMENSION1): Likewise.
15098 (DECODE_CHARACTER_DIMENSION2): Likewise.
15099 (decode_coding_sjis_big5): Check the 2nd byte of SJIS correctly.
15101 * editfns.c (Fsubst_char_in_region): Fix previous change.
15102 (Ftranslate_region): Fix previous change.
15104 * insdel.c (check_markers): Check if markers are at character boundry.
15105 (adjust_markers_for_insert): Fix previous change.
15106 (count_combining_before): Don't limit the check at BEGV.
15107 (count_combining_after): Don't limit the check at ZV.
15108 (CHECK_BYTE_COMBINING_FOR_INSERT): New macro.
15109 (insert_1_both): Call CHECK_BYTE_COMBINING_FOR_INSERT.
15110 (insert_from_string_1): Likewise.
15111 (insert_from_buffer_1): Likewise.
15112 (adjust_after_replace): Inhibit bytes combined across region
15113 boundary. Update end_unchanged correctly.
15114 (replace_range): Call CHECK_BYTE_COMBINING_FOR_INSERT. Update
15115 end_unchanged correctly.
15116 (del_range_2): Inhibit bytes combined across region boundary.
15117 Update end_unchanged correctly.
15119 1998-10-27 Geoff Voelker <voelker@cs.washington.edu>
15121 * w32.c (check_windows_init_file): Also look in load path specified
15124 * w32console.c (Fset_message_beep): Recognize 'silent.
15125 (w32_sys_ring_bell): Do nothing for the 'silent sound.
15127 * w32fns.c (w32_color_map_lookup): Remove duplicate definition.
15129 * w32select.c (Vnext_selection_coding_system): New variable.
15130 (syms_of_w32select): DEFVAR_LISP it.
15131 (Fw32_set_clipboard_data): Use Vnext_selection_coding_system if
15132 non-nil. Always convert multibyte strings.
15133 (Fw32_get_clipboard_data): Use Vnext_selection_coding_system if
15134 non-nil. Always convert a string that includes non-ASCII characters.
15136 1998-10-27 Richard Stallman <rms@psilocin.ai.mit.edu>
15138 * fns.c (Fbase64_decode_string): Doc fix.
15139 (Fbase64_decode_region, Fbase64_encode_string Fbase64_encode_region):
15142 1998-10-27 Dave Love <fx@gnu.org>
15144 * fns.c (Fbase64_decode_region, Fbase64_encode_region): Fix
15145 newline in doc string.
15147 1998-10-27 Kenichi Handa <handa@etl.go.jp>
15149 * editfns.c (Fsubst_char_in_region): Correctly handle the case
15150 that byte combining before happens.
15151 (Ftranslate_region): Likewise.
15153 * insdel.c (adjust_after_replace): Correctly handle the case that
15154 both byte combining before and byte combining after happen.
15155 (replace_range): Likewise.
15157 1998-10-26 Kenichi Handa <handa@etl.go.jp>
15159 * category.c (syms_of_category): Doc-string modified.
15161 * coding.c (code_convert_region): Kill the work buffer created by
15162 pre-write-conversion.
15164 1998-10-25 Jason Rumney <jasonr@altavista.net>
15166 * emacs.c (main) [HAVE_NTGUI]: Invoke syms_of_fontset().
15168 1998-10-23 Kenichi Handa <handa@etl.go.jp>
15170 * coding.c (code_convert_region): While preserving the orignal
15171 point, pay attention to the byte combining problem.
15173 * fns.c (Fbase64_decode_region): Pay attention to the byte
15176 * insdel.c (adjust_markers_for_insert): Adjust markers by taking
15177 combined_before_bytes and combined_after_bytes into account.
15178 (count_combining_after): Handle the case that LENGTH is zero.
15179 (adjust_after_replace): Record deletion at correct buffer
15180 position. Handle the case that LEN is zero.
15181 (replace_range): Record deletion at correct buffer position.
15182 (del_range_2): Call adjust_makers_for_replace to adjust makers for
15185 1998-10-21 Richard Stallman <rms@psilocin.ai.mit.edu>
15187 * alloc.c (Fgarbage_collect): Block input around most of the function.
15189 1998-10-21 Kenichi Handa <handa@etl.go.jp>
15191 * coding.c (setup_coding_system): Fix setting up
15192 coding->spec.ccl.valid_codes for CCL based coding system.
15193 (code_convert_region): Set point to FROM before inserting the
15194 result of pre-write-funciton. Preserve original point.
15195 (code_convert_string): If coding->type is coding_type_ccl, do
15196 conversion even if the length of conversion region is zero.
15198 * fontset.c: Include frame.h before fontset.h.
15199 (list_fonts_func): Fix prototype.
15201 * frame.c: Include frame.h before fontset.h.
15203 * xterm.c: Likewise.
15205 1998-10-21 Jason Rumney <jasonr@altavista.net>
15207 * x-list-font.c (Fx_list_fonts): Access frame parameters throught
15208 general macros. Don't call x_list_font directory, instead call a
15209 function set in list_fonts_func.
15211 * fontset.h (list_fonts_func): Fix prototype.
15213 1998-10-20 Jason Rumney <jasonr@altavista.net>
15215 * makefile.nt (w32fns.c): Add x-list-font.c to dependancies.
15217 * w32faces.c: Update comments referring to obsolete structs.
15218 (allocate_face, copy_face, face_eql, load_font,
15219 Fpixmap_spec_p, free_frame_faces, new_computed_face,
15220 frame_update_line_height, merge_faces, compute_base_face,
15221 Fset_face_attribute_internal): Use fontset support based on xfaces.c.
15223 * w32fns.c: (Vx_pixel_size_width): New global variable.
15224 (unibyte_display_via_language_environment): New global variable.
15225 (x_set_font): Add support for setting fontsets.
15226 (Fx_create_frame): Add check_w32(). Initialize fontsets. Fix
15227 font names to match xlfd-tight-regexp.
15228 (w32_load_font): Rewrite based on x_load_font.
15229 (x_to_w32_charset, w32_to_x_charset): Add character sets. Use
15230 `iso8859-1' rather than `ansi'.
15231 (w32_to_x_font): Remove `-' from font name. Remove the `-' off the
15232 end. Move charset into `charset registry' field.
15233 (enum_font_cb2): Check charsets match. Include width in font list.
15234 (w32_list_fonts): Rewrite based on x_list_fonts.
15235 Moved from w32term.c to have access to enumfont_t struct.
15236 (Fx_list_fonts): w32 specific version eliminated. Include
15238 (w32_get_font_info, w32_query_font, w32_find_ccl_program): New
15239 functions for fontset support - adapted from x_ equivalents.
15240 (syms_of_w32fns): New lisp variables initialised. Function
15241 pointers for fontset.c set up.
15243 * w32term.c: Include fontset.h. Define codepage macros.
15244 Add ENCODE_BIG5 macro from coding.c.
15245 (w32_no_unicode_output): New variable.
15246 (w32_codepage_for_charset, w32_use_unicode_for_codepage): New
15248 (BUILD_WCHAR_T, BYTE1, BYTE2): New macros.
15249 (dumpglyphs): Rewrite based on xterm.c equivalent.
15250 (x_new_font): Use functionality provided in fontset.c.
15251 (x_new_fontset): New function based on the one in xterm.c.
15252 (syms_of_w32term): Add w32-no-unicode-output flag.
15254 * w32term.h: Remove redundant font_info struct definition.
15255 (Vx_pixel_size_width_font_regexp,
15256 unibyte_display_via_language_environment): Declare variables.
15257 (w32_list_fonts, w32_get_font_info, w32_query_font, w32_load_font):
15259 (w32_output): New fields font_baseline and fontset.
15260 (FRAME_FONTSET, FRAME_W32_FONT_TABLE): New macros.
15262 * w32xfns.c: Include charset.h and fontset.h.
15264 1998-10-20 Richard Stallman <rms@psilocin.ai.mit.edu>
15266 * syntax.c (syms_of_syntax): Fix the setup of Qscan_error.
15268 1998-10-20 Eli Zaretskii <eliz@mescaline.gnu.org>
15270 * msdos.c (mouse_init): Reset the button press/release info of the
15272 (mouse_preempted): New variable.
15273 (dos_rawgetc): Don't generate mouse events if mouse is preempted.
15274 (XMenuActivate): Preempt the mouse during menu-handling loop.
15275 Release the current time slice while idling in the menu-handling
15276 loop. Leave the loop only if the user pressed, then released the
15277 same button. Discard all mouse events that are pending in the
15278 event queue before exiting.
15280 1998-10-19 Richard Stallman <rms@psilocin.ai.mit.edu>
15282 * editfns.c (Fformat): Increase buffer size for floating format.
15284 1998-10-17 Kenichi Handa <handa@etl.go.jp>
15286 * charset.c (Vauto_fill_chars, Qauto_fill_chars): New variables.
15287 (syms_of_charset): Staticpro and initialize Qauto_fill_chars.
15288 Declare auto-fill-chars as a Lisp variable and initialize it.
15290 * charset.h (Vauto_fill_chars): Extern it.
15292 * cmds.c (internal_self_insert): Check Vauto_fill_chars.
15294 1998-10-16 Kenichi Handa <handa@etl.go.jp>
15296 * casefiddle.c (casify_object): Use make_string instead of
15297 make_specified_string to cope with byte-combining situation.
15299 * coding.c (decode_coding_iso2022): Set coding->fake_multibyte to
15300 1 when encountered with a code of the range 0x80..0x9F.
15302 1998-10-14 Eli Zaretskii <eliz@mescaline.gnu.org>
15304 * callproc.c (Fcall_process) [MSDOS]: Use $TMPDIR instead of
15305 trying $TMP and $TEMP, since the former is always set in msdos.c.
15306 (Fcall_process_region) [DOS_NT]: When looking for a place to put
15307 the temporary files, check $TMPDIR as well.
15309 1998-10-14 Richard Stallman <rms@psilocin.ai.mit.edu>
15311 * process.c (exec_sentinel, read_process_output):
15312 Restore waiting_for_user_input_p after running Lisp code.
15314 * keyboard.c (parse_menu_item): Avoid initialization for Lisp_Object.
15315 (command_loop): Likewise.
15317 1998-10-14 Kenichi HANDA <handa@etl.go.jp>
15319 * data.c (Faset): Fix previous change.
15321 * fns.c (Ffillarray): Fix previous change.
15323 * insdel.c (adjust_markers_for_combining): This function deleted.
15324 (adjust_markers_for_replace): Correctly adjust marker positions.
15325 Don't record these adjustment because they were recorded already.
15326 (combine_bytes): Don't adjust markers here.
15328 1998-10-13 Richard Stallman <rms@psilocin.ai.mit.edu>
15330 * minibuf.c (Fdisplay_completion_list): Put on mouse-face properties.
15332 1998-10-12 Richard Stallman <rms@psilocin.ai.mit.edu>
15334 * keyboard.c (Fclear_this_command_keys): New function.
15335 (syms_of_keyboard): defsubr it.
15337 * macros.c (Fexecute_kbd_macro): Set real_this_command.
15339 1998-10-12 Kenichi Handa <handa@etl.go.jp>
15341 * ccl.c (CCL_DECODE_SJIS, CCL_ENCODE_SJIS): Swap the definitions.
15343 * charset.c (Fstring): Call make_string instead of
15344 make_string_from_bytes.
15345 (Ffind_charset_region): Include `composition' in the returned list
15346 if the region contains any composite characters.
15347 (Ffind_charset_string): Include `composition' in the returned list
15348 if the string contains any composite characters.
15349 (find_charset_in_str): Handle CMPCHARP arg correctly.
15351 * coding.c (shrink_decoding_region): If a charset other than ascii
15352 is initially designated to G0, don't shrink the region.
15353 (shrink_encoding_region): Likewise.
15355 * data.c (Faset): If ARRAY is a multibyte string, pay attention to
15356 byte-combining situation.
15358 * fns.c (clear_string_char_byte_cache): New function.
15359 (Ffillarray): Handle multibyte string correctly.
15361 * lisp.h (clear_string_char_byte_cache): Extern it.
15363 * xselect.c (lisp_data_to_selection_data): Call
15364 find_charset_in_str with CMPCHARP arg 0.
15365 * w16select.c (Fw16_set_clipboard_data): Likewise.
15366 * w32select.c (Fw32_set_clipboard_data): Likewise.
15368 1998-10-11 Richard Stallman <rms@psilocin.ai.mit.edu>
15370 * keyboard.c (parse_menu_item): For top level of menu bar,
15371 accept ordinary commands, and treat them just like a keymap.
15373 1998-10-11 Richard Stallman <rms@sucrose.ai.mit.edu>
15375 * xdisp.c (redisplay_window): Clear w->window_end_valid
15376 before running the window-scroll-functions hook, if appropriate.
15378 1998-10-10 Richard Stallman <rms@psilocin.ai.mit.edu>
15380 * data.c (Fstring_to_number): Don't recognize floating point
15383 * window.c (window_loop): New alternative CHECK_ALL_WINDOWS.
15384 (check_all_windows): New function for debugging tests.
15385 (syms_of_window): Initialize it.
15387 * window.c (Qwindow_configuration_p): New variable.
15388 (Fwindow_configuration_frame): New function.
15389 (syms_of_window): defsubr it.
15390 (Fset_window_configuration): Return t if frame is live.
15391 Use Qwindow_configuration_p.
15393 * xfns.c (check_x_display_info): Don't use selected_frame
15396 1998-10-09 Geoff Voelker <voelker@cs.washington.edu>
15398 * w32fns.c (x_create_bitmap_from_file): Skip special files.
15400 1998-10-08 Kenichi Handa <handa@etl.go.jp>
15402 * buffer.h (inhibit_modification_hooks): Extern it.
15404 * buffer.c (inhibit_modification_hooks): New variable.
15405 (init_buffer_once): Initialize inhibit_modification_hooks to 0.
15407 * charset.c (invalid_character): Prepend `0' to octal
15408 representation. Give error sufficient args.
15410 * coding.c (code_convert_region): Set inhibit_modification_hooks
15411 to 1 before calling Fset_text_properties.
15413 * insdel.c (signal_before_change): If inhibit_modification_hooks
15414 is nonzero, do nothing.
15415 (signal_after_change): Likewise.
15417 1998-10-08 Emilio Lopes <Emilio.Lopes@Physik.TU-Muenchen.DE>
15419 * process.c: Doc fixes.
15421 1998-10-08 Richard Stallman <rms@sucrose.ai.mit.edu>
15423 * syntax.c (scan_lists): Bring FROM back into range BEGV...ZV.
15425 1998-10-07 Geoff Voelker <voelker@cs.washington.edu>
15427 * w32.c (init_ntproc): Check for Windows init file.
15428 (term_ntproc): Do not check for it here.
15430 1998-09-28 Kenichi Handa <handa@etl.go.jp>
15432 * coding.c (check_composing_code): Fix previous change. Now it
15433 alwasy returns 0 or -1.
15434 (decode_coding_iso2022): Adjusted for the above change.
15435 (encode_coding_iso2022): When encoding the last block, flush out
15436 tailing garbage bytes.
15437 (setup_coding_system): Delete unnecessary code.
15438 (shrink_decoding_region): Check translation table. If ASCII
15439 should be translated, give up shrinking.
15440 (shrink_encoding_region): Likewise.
15441 (SHRINK_CONVERSION_REGION_THRESHHOLD): New macro.
15442 (SHRINK_CONVERSION_REGION): New macro.
15443 (code_convert_region): Call SHRINK_CONVERSION_REGION. Delete text
15445 (code_convert_region): In the case of encoding, always calulate
15446 correct character number.
15447 (code_convert_string): Call SHRINK_CONVERSION_REGION.
15448 (code_convert_region1): Don't delete text properties here.
15450 * insdel.c (adjust_after_replace): Don't delete text properties here.
15452 * term.c (encode_terminal_code): Handle raw 8-bit codes correctly.
15454 1998-09-27 Richard Stallman <rms@psilocin.ai.mit.edu>
15456 * emacs.c (sort_args): Fill extra space with NULL ptrs.
15458 1998-09-26 Kenichi Handa <handa@etl.go.jp>
15460 * coding.h (struct coding_system): New member composed_chars.
15462 * coding.c (check_composing_code): If the current composing
15463 sequence doesn't end properly, return -1.
15464 (DECODE_CHARACTER_ASCII): Update coding->composed_chars.
15465 (DECODE_CHARACTER_DIMENSION1): Likewise.
15466 (decode_coding_iso2022): Check validity of a composing sequence.
15467 (code_convert_string): If the length of text to be converted is
15468 shrunk to zero, don't perform code conversion.
15469 (shrink_decoding_region): Fix previous change.
15471 * editfns.c (Fformat): Check format control characters.
15473 1998-09-25 Kenichi Handa <handa@etl.go.jp>
15475 * coding.c (decode_eol): While decoding DOS-like eol, handle a
15476 single CR code correctly.
15477 (shrink_decoding_region) <CODING_CATEGORY_IDX_ISO_7 or
15478 CODING_CATEGORY_IDX_ISO_7_TIGHT>: Skip also 8-bit codes.
15480 1998-09-23 Geoff Voelker <voelker@cs.washington.edu>
15482 * w32fns.c (w32_color_map_lookup): New function.
15483 (x_to_w32_color): Approximate colors ending in numbers if necessary.
15485 1998-09-22 Kenichi Handa <handa@etl.go.jp>
15487 * ccl.c (ccl_driver): Report correct CCL program counter on error.
15489 * xmenu.c (single_submenu) [! HAVE_MULTILINGUAL_MENU]: Make
15491 (xmenu_show) [! HAVE_MULTILINGUAL_MENU]: Likewise.
15493 1998-09-22 Kenichi Handa <handa@etl.go.jp>
15495 * callint.c (Fcall_interactively): Don't use input method when
15496 reading a character in the case of `c' code letter.
15498 1998-09-21 Dave Love <fx@gnu.org>
15500 * editfns.c (Fsave_restriction): Doc fix.
15502 1998-09-21 Richard Stallman <rms@gnu.org>
15504 * lread.c (build_load_history): Do add to Vload_history
15505 even when dumping Emacs.
15507 1998-09-18 Kenichi Handa <handa@etl.go.jp>
15509 * ccl.c (CCL_WRITE_CHAR): Don't use bcopy.
15510 (ccl_driver): If BUFFER-MAGNIFICATION of the CCL program is 0,
15511 cause error if the program is going to output some bytes. When
15512 outputing a string to notify an error, check the case that
15515 * coding.h (CODING_FINISH_INTERRUPT): New macro.
15517 * coding.c (ccl_coding_driver): If ccl_driver is interrupted by a
15518 user or the CCL program executed an invalid command, return
15519 CODING_FINISH_INTERRUPT.
15520 (code_convert_region): Pay attention to the converters return
15521 value CODING_FINISH_NORMAL and CODING_FINISH_INTERRUPT.
15523 1998-09-16 Kenichi Handa <handa@etl.go.jp>
15525 * coding.c (code_convert_region): Update beg_unchanged and
15526 end_unchanged after we delete the source text.
15528 * insdel.c (adjust_markers_for_replace): Don't adjust a byte
15529 position if it is FROM.
15530 (adjust_markers_for_combining): New function.
15531 (combine_bytes): Call adjust_markers_for_combining instead of
15532 adjust_markers_for_replace.
15533 (adjust_after_replace): Record deletion of combining after bytes
15534 with the correct position.
15535 (replace_range): Likewise. Record the actual deletion after
15536 recoding deletions of combining bytes.
15538 * xdisp.c (message_log_check_duplicate): Count byte length of the
15539 latest message correctly.
15541 1998-09-12 Richard Stallman <rms@gnu.org>
15543 * xdisp.c (redisplay_internal): Use TEMP_SET_PT_BOTH
15544 instead of SET_PT_BOTH.
15545 (try_window_id, display_text_line): Likewise.
15547 1998-09-12 Karl Heuer <kwzh@gnu.org>
15549 * data.c (Fmake_local_variable): Doc fix.
15551 1998-09-10 Dave Love <fx@gnu.org>
15553 * print.c (Fwith_output_to_temp_buffer): Doc fix.
15555 1998-09-10 Richard Stallman <rms@gnu.org>
15557 * s/irix6-0.h (TIOCSIGSEND): Add #undef.
15558 (bcopy, bcmp, bzero): Add #undef.
15560 * keyboard.c (command_loop_1): When switching to selected window's bfr,
15561 first exit if selected frame is dead (no live frames remain).
15562 (read_key_sequence): Likewise.
15564 1998-09-10 Karl Heuer <kwzh@gnu.org>
15566 * emacs.c (main): Mention --display and --eval in help.
15568 1998-09-07 Paul Eggert <eggert@twinsun.com>
15570 * editfns.c (emacs_memftime): New function.
15571 (Fformat_time_string): Use it to handle null bytes in formats
15574 1998-09-08 Kenichi Handa <handa@etl.go.jp>
15576 * charset.c (Ffind_charset_region): Optimization for unibyte buffer.
15577 (Ffind_charset_string): For unibyte string, return (ascii).
15579 * editfns.c (Fsubst_char_in_region): Call replace_range with the
15582 * insdel.c (adjust_after_replace): Don't add combining bytes to
15583 the args given to adjust_point. Handle correctly the case that
15584 there are both before and after combining bytes.
15585 (replace_range): Likewise.
15587 1998-09-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
15589 * fns.c (base64_decode_1, base64_encode_1): New functions.
15590 (Fbase64_decode_string, Fbase64_encode_string): New functions.
15591 (Fbase64_decode_region, Fbase64_encode_region): New functions.
15593 1998-09-07 Karl Heuer <kwzh@gnu.org>
15595 * eval.c (error): After enlarging buffer, write to it, not to buf.
15597 * fns.c (Fwidget_put): Return VALUE instead of garbage.
15599 1998-09-07 Kenichi Handa <handa@etl.go.jp>
15601 * charset.h (STRING_CHAR_AND_LENGTH): Return correct value in
15602 ACTUAL_LEN even if LEN is too short to have a valid multibyte form.
15603 (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
15605 * coding.c (ccl_coding_driver): Always calculate correct mulibyte
15606 chars in produced byte sequence.
15607 (Ffind_operation_coding_system): Doc-string fixed.
15609 * insdel.c (count_combining_after): Check also preceding bytes at
15610 POS if all characters in STRING are not character head.
15612 1998-09-06 Paul Eggert <eggert@twinsun.com>
15614 * editfns.c (Fformat_time_string, Fdecode_time, Fcurrent_time_zone):
15615 Don't assume that localtime and gmtime return non-NULL.
15617 1998-09-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
15619 * fns.c (Fbase64_decode_string, Fbase64_encode_string,
15620 base64_decode_1, Fbase64_decode_region, Fbase64_encode_region):
15623 1998-09-06 Richard Stallman <rms@gnu.org>
15625 * editfns.c (Fformat): Detect incomplete format spec at string's end.
15627 * lread.c (Fload): Handle case where openp finds a magic file
15628 but it has no `load' handler or that handler calls `load'.
15629 If FOUND != FILE, find FOUND's handler even if inhibited for FILE.
15631 1998-09-04 Dave Love <fx@gnu.org>
15633 * buffer.c (enable-multibyte-characters): Doc fix.
15635 1998-09-02 Geoff Voelker <voelker@cs.washington.edu>
15637 * w32heap.c (allocate_heap): Define NTHEAP_PROBE_BASE by default.
15639 1998-09-01 Kenichi Handa <handa@etl.go.jp>
15641 * editfns.c (Ftranspose_regions): Use BYTE_POS_ADDR to get an
15642 address in buffer from byte-position.
15644 1998-09-01 Eli Zaretskii <eliz@delysid.gnu.org>
15646 * w16select.c (Vnext_selection_coding_system): New variable.
15647 (syms_of_win16select): DEFVAR_LISP it. No need to staticpro
15648 Vselection_coding_system.
15649 (Fw16_set_clipboard_data): Always convert multibyte strings. Use
15650 Vnext_selection_coding_system if non-nil.
15651 (Fw16_get_clipboard_data): Always convert a string that includes
15652 non-ASCII characters. Use Vnext_selection_coding_system if
15655 1998-08-31 Andrew Innes <andrewi@harlequin.co.uk>
15657 * w32fns.c (w32_wnd_proc): Always zero button_state when releasing
15660 1998-08-31 Kenichi Handa <handa@etl.go.jp>
15662 * xterm.c (x_load_font): If SIZE is 0, don't use a name
15663 x_list_font returns.
15665 1998-08-31 Paul Eggert <eggert@twinsun.com>
15667 * lread.c (read1): Don't assume that atof ("-0.0") yields +0.0.
15668 Handle leading '-' uniformly for zeros, infinities, and NaNs.
15670 1998-08-31 Eli Zaretskii <eliz@delysid.gnu.org>
15672 * msdos.c (IT_cmgoto): When tracking echo area messages with the
15673 cursor, save and restore previous cursor position in the
15676 1998-08-31 Kenichi Handa <handa@etl.go.jp>
15678 * charset.c (unibyte_char_to_multibyte):
15679 Vnonacii_translation_table will convert a 7-bit charcater.
15680 (multibyte_char_to_unibyte): Handle the case that
15681 Vnonacii_translation_table converts a multibyte charcater to a
15682 unibyte charcter of less than 128.
15683 (init_charset_once): Initialize nonascii_insert_offset and
15684 Vnonacii_translation_table.
15686 * coding.c (decode_coding): Even if SRC_BYTES is zero, try
15687 processing if CODING requires flushing.
15688 (encode_coding): Likewise.
15689 (code_convert_region): Likewise.
15690 (code_convert_string): Likewise.
15692 * fns.c (concat): If Vnonascii_translation_table is non-nil, try
15693 to convert a character less than 160 to multibyte.
15694 * insdel.c (copy_text): Likewise.
15695 (count_size_as_multibyte): Likewise.
15696 * xterm.c (dumpglyphs): Likewise.
15698 1998-08-29 Paul Eggert <eggert@twinsun.com>
15700 * data.c (arith_driver, float_arith_driver): Compute (- x) by
15701 using negation, not subtraction; this makes a difference with
15702 IEEE floating point arithmetic (and also if integer arithmetic
15703 is ones' complement or signed-magnitude!).
15705 1998-08-29 Karl Heuer <kwzh@gnu.org>
15707 * xfns.c (x_create_bitmap_from_file): Fail immediately if magic.
15709 1998-08-28 Ken'ichi Handa <handa@delysid.gnu.org>
15711 * charset.c (Fchar_bytes): Add \n\ in doc-string.
15713 1998-08-28 Paul Eggert <eggert@twinsun.com>
15715 * s/sol2-4.h (NOT_USING_MOTIF): New macro.
15716 (LD_SWITCH_SYSTEM_TEMACS): Put /usr/dt/lib in the link library
15717 path only if we're not building with Motif.
15719 1998-08-28 Kenichi Handa <handa@etl.go.jp>
15721 * insdel.c (adjust_after_replace): Fix the code to record undo
15722 information for the case that `before combining' happens. Remove
15723 text properties which are added to the new text by
15726 * coding.c (code_convert_region1): Remove all text properties of
15729 1998-08-28 Kenichi Handa <handa@etl.go.jp>
15731 * charset.h (CHAR_BYTES): New macro.
15733 * charset.c (Fchar_bytes): Now always return 1.
15734 (char_bytes): New function.
15736 * editfns.c (Fposition_bytes): If the arg POSITION is out of
15738 (Fbyte_to_position): If the arg BYTEPOS is out of range, return
15741 * data.c (Faset): Use macro CHAR_BYTES instead of Fchar_bytes.
15742 * fns.c (concat): Likewise.
15743 * insdel.c (count_size_as_multibyte): Likewise.
15744 * xdisp.c (message_dolog): Likewise.
15746 1998-08-27 Kenichi Handa <handa@etl.go.jp>
15748 * coding.c (detect_coding_iso2022): Handle ESC N and ESC O
15749 correctly. They are for SS2 and SS3 respectively.
15750 (ccl_coding_driver): Fix previous change.
15752 1998-08-26 Paul Eggert <eggert@twinsun.com>
15754 * xterm.c (fixup_locale): New function. For now, it resets
15755 LC_TIME to "C" (reverting the 1998-08-07 change), and also
15756 resets LC_MESSAGES to "C".
15757 (x_term_init): Use it to fix up the locale after setlocale
15760 1998-08-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15762 * xterm.c (x_calc_absolute_position): Cast argument to XFree, in
15763 case it was prototyped the old way.
15765 1998-08-25 Kenichi Handa <handa@etl.go.jp>
15767 * xterm.c (x_list_fonts): Work-around for the case XGetAtomName
15768 returns a null string. This happens when dxpc 3.7 is being used.
15770 1998-08-24 Andreas Schwab <schwab@delysid.gnu.org>
15772 * keyboard.c (input-method-previous-message): Doc fix.
15774 * coding.c (file-coding-system-alist,
15775 select-safe-coding-system-function): Doc fix.
15777 1998-08-23 Kenichi HANDA <handa@etl.go.jp>
15779 * coding.c (detect_coding_iso2022): Don't check the byte length of
15780 succeeding codes (0xa0..0xFF) if the codes follows single shift
15783 1998-08-21 Ken'ichi Handa <handa@delysid.gnu.org>
15785 * coding.c (detect_coding_system): If detect_eol_type returns
15786 CODING_EOL_INCONSISTENT, set eol_type to CODING_EOL_UNDECIDED
15789 See ChangeLog.7 for earlier changes.