1 2000-03-26 Gerd Moellmann <gerd@gnu.org>
3 * doc.c (Qfunction_documentation): New variable.
4 (syms_of_doc): Initialize Qfunction_documentation.
5 (Fdocumentation): If FUNCTION is a symbol with non-nil
6 `function-documentation' property, return a documentation derived
9 * buffer.c (syms_of_buffer): Add default-cursor-type.
10 (init_buffer_once): Don't let cursor_type have a local value
13 * xterm.c (x_display_and_set_cursor): Choose cursor depending
14 on buffer-local value of cursor_type.
15 (x_draw_bar_cursor): Add parameter WIDTH.
17 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
18 (init_buffer_once): Set default cursor_type value to t.
19 Mark cursor_type as local everywhere.
20 (syms_of_buffer): New per-buffer variable cursor-type.
22 * buffer.h (struct buffer): Remove member local_var_flags,
24 (MAX_BUFFER_LOCAL_VARS): New macro.
25 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
26 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
27 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
28 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
30 * print.c (print_object): Use new macros for per-buffer
33 * category.c (Fset_category_table): Use new macros for per-buffer
36 * buffer.c (buffer_permanent_local_flags): Make a char array.
37 (max_buffer_local_idx): New variable.
38 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
39 for new handling of per-buffer variables.
40 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
41 (init_buffer_once): Initialize per-buffer vars differently.
42 Set max_buffer_local_idx.
44 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
47 * lread.c (defvar_per_buffer): Use new macros for per-buffer
50 * data.c (do_symval_forwarding, store_symval_forwarding)
51 (find_symbol_value, set_internal, default_value, Fset_default)
52 (Fkill_local_variable, Flocal_variable_p): Use new macros for
55 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
57 2000-03-24 Gerd Moellmann <gerd@gnu.org>
59 * xterm.c (x_term_init): Unblock input around call1 of
60 Qvendor_specific_keysyms.
62 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
63 (find_defun_start): Consider an open parenthesis in column 0
64 a defun start only if open_paren_in_column_0_is_defun_start is set.
65 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
67 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
69 * eval.c (Fautoload): Add entry in load-history (if after dump).
70 * lread.c (load-history): Update docstring.
72 2000-03-24 Gerd Moellmann <gerd@gnu.org>
74 * indent.c (Fvertical_motion): Always use the current buffer.
75 Temporarily change the window's buffer, if necessary.
77 2000-03-23 Gerd Moellmann <gerd@gnu.org>
79 * xterm.c (fast_find_position): Make sure not to consider rows
80 not visible in the window.
82 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
84 * regex.c (enum syntaxcode): Provide default for non-Emacs.
85 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
87 2000-03-22 Jason Rumney <jasonr@gnu.org>
89 * w32menu.c (single_submenu): Set help string to NULL if none.
90 (w32_menu_show): Set help string correctly.
91 (add-menu-item): Set help string in MIIM_DATA for menu item.
92 Load SetMenuItemInfoA explicitly.
93 (w32_menu_display_help): New function.
95 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
96 (QCdata): Moved to xdisp.c.
98 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
99 (Vw32_charset_to_codepage_alist): Removed.
100 (Vw32_charset_info_alist): New variable.
101 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
102 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
103 greek, hebrew, thai, johab, mac, unicode]): New symbols.
104 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
106 (w32_codepage_for_font): Use Vw32_charset_info_alist.
107 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
108 Define Vw32_charset_info_alist and w32_charset symbols.
110 2000-03-22 Jason Rumney <jasonr@gnu.org>
112 * makefile.nt (w32bdf.obj): Update dependencies.
114 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
116 * w32fns.c: Include fontset.h after dispextern.h.
117 (Fx_create_frame): Do not create fontset.
118 (w32_load_system_font): Doc fix.
119 (Fx_close_connection): Free full_name if it is not shared.
121 * w32term.c: Include fontset.h after dispextern.h.
122 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
124 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
125 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
126 (w32_font_is_double_byte): New function, needs body.
127 (x_append_glyph): Set glyph->glyph_not_available_p.
128 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
129 it->charset. If it->multibyte_p is zero and it->c is a multibyte
130 character, convert it to a unibyte character.
131 (struct glyph_string): Delete member `charset'.
132 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
133 calculating it is found.
134 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
135 the case that per char metric is not available correctly.
136 (x_fill_glyph_string): Handle the case that the specific glyph is
137 not available correctly.
138 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
139 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
140 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
141 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
142 fontset. Don't call FS_LOAD_FONT.
144 2000-03-22 Ken Raeburn <raeburn@gnu.org>
146 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
147 (INT_LISPLIKE): New macro.
148 (NULL_INTERVAL_P): Use it.
149 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
150 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
151 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
153 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
154 explicit references to "parent" field of struct interval and
155 associated unclean type conversions.
156 * intervals.c (create_root_interval, root_interval, rotate_right,
157 rotate_left, balance_possible_root_interval, split_interval_right,
158 split_interval_left, interval_start_pos, find_interval,
159 next_interval, previous_interval, update_interval,
160 adjust_intervals_for_insertion, delete_node, delete_interval,
161 adjust_intervals_for_deletion, merge_interval_right,
162 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
163 copy_intervals_to_string): Likewise.
164 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
166 * syntax.c (update_syntax_table): Likewise.
168 * intervals.c (reproduce_tree_obj): New function, like
169 reproduce_tree but takes a Lisp_Object for the parent. Declare
171 (graft_intervals_into_buffer): Use it when appropriate.
172 (reproduce_tree): Declare with prototype.
173 (balance_possible_root_interval): Check that the parent is a lisp
174 object before trying to examine its type.
176 2000-03-22 Gerd Moellmann <gerd@gnu.org>
178 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
179 as strings only if both are known to be strings.
181 * s/openbsd.h (LIBS_TERMCAP): Undef.
183 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
185 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
186 definitions for non-Emacs compilation.
187 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
188 outside of `#ifdef emacs'.
189 (print_partial_compiled_pattern): Update.
190 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
191 (re_compile_fastmap): Merge handling of charset and charset_not (for
192 emacs and non-emacs compilation as well).
193 Similarly for (not)categoryspec and (not)syntaxspec.
194 Don't use the fastmap when reaching `anychar' since the added
195 complexity is not justified.
196 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
197 and (not)syntaxspec. Merge (not)categoryspec.
199 2000-03-22 Kenichi Handa <handa@etl.go.jp>
201 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
202 FACE_FOR_CHAR): Define them differently for the configuration of
205 2000-03-21 Dave Love <fx@gnu.org>
207 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
210 2000-03-21 Gerd Moellmann <gerd@gnu.org>
212 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
213 (lface_fully_specified_p): Don't check contents of
214 LFACE_FONT_INDEX because that attribute is optional.
215 (realize_x_face): Remove now unwarranted xassert.
217 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
219 The following changes are to make font selection based on
220 characters, not charset. In addition, they recover fontset
221 facilities while utilizing the new font selection mechanism.
223 * Makefile.in (fontset.o): Depend on dispextern.h.
225 * alloc.c (mark_face_cache): Don't mark face->registry.
227 * dispextern.h (struct glyph): New member glyph_not_available_p.
228 Use 22 bits for face_id.
229 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
230 (struct face): Delete member registry, new member ascii_face.
231 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
232 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
233 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
234 (struct it): Delete member charset, new member
235 glyph_not_available_p.
237 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
238 (struct fontset_info, struct fontset_data): Structs removed.
239 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
240 Vglobale_fontset_alist, font_idx_temp): Externs removed.
241 (fs_load_font, fs_query_fontset): Adjusted for new argument.
242 (fs_free_face_fontset, fontset_font_pattern,
243 face_suitable_for_char_p, face_for_char,
244 make_fontset_for_ascii_face): Extern them.
245 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
246 (FS_LOAD_FACE_FONT): New macro.
248 * fontset.c: All codes rewritten or adjusted for the change of
249 fontset implementation. Now fontset is represented by char table.
250 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
252 (my_strcasecmp): Function removed.
253 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
255 (AREF, ASIZE): New macros.
256 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
257 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
258 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
259 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
260 fontset_id_valid_p, font_family_registry, fontset_name,
261 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
262 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
264 (fs_load_font): New arg FACE. Caller changed.
265 (fs_query_fontset): Argument changed. Caller changed.
266 (Fquery_fontset): call fs_query_fontset.
267 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
269 (clear_fontset_elements, check_registry_encoding,
270 check_fontset_name): New functions.
271 (syms_of_fontset): Set char-table-extra-slots property of fontset
272 to 3. Staticpro and initialize Vfontset_table and
273 Vdefault_fontset. Defsubr fontset_font and fontset_list.
275 * frame.h (struct frame): Member `fontset_data' removed.
276 (FRAME_FONTSET_DATA): Macro removed.
278 * frame.c (make_frame): Don't allocate f->fontset_data.
279 (Fdelete_frame): Don't free f->fontset_data.
281 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
283 * xdisp.c (charset_at_position): Function removed.
284 (init_iterator): Don't set member charset of struct `it'.
285 (handle_face_prop, reseat_to_string, set_iterator_to_next,
286 next_element_from_display_vector, insert_left_trunc_glyphs):
288 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
290 (get_next_display_element, append_space,
291 extend_face_to_end_of_line): Likewise.
293 * xfaces.c (Qx_charset_registry, Vface_default_registry):
295 (clear_font_table, frame_update_line_height, load_face_font):
296 Adjusted for the change of fontset implementation.
297 (load_face_fontset_font): Function removed.
298 (pixel_point_size): New function.
299 (font_list): Argument type changed. Caller changed.
300 (LFACE_FONT): New macro.
301 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
302 (set_lface_from_font_name): Type of arg FONTNAME is changed to
303 Lisp_Object. Determine the font name by actually loading a font
304 by the specified pattern. Set LFACE_FONT (lface) to the specified
305 pattern. Even if a font is not found, don't try alternatives.
306 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
307 (set_font_frame_param): If `font' is specified in lface, use it.
308 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
309 (lface_same_font_attributes_p): Likewise.
310 (make_realized_face): Arguent changed. Caller changed. Set
311 face->ascii_face to face itself.
312 (free_realized_face): Free face->fontset if face is for ASCII.
313 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
314 deduce_unibyte_registry, x_charset_registry): Functions removed.
315 (free_realized_multibyte_face): New function.
316 (lookup_face, lookup_named_face, lookup_derived_face): Argument
317 changed. Caller changed.
318 (try_font_list): Argument type changed.
319 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
320 (choose_face_font): Argument changed. Handle fontset properly.
321 (choose_face_fontset_font): Function removed.
322 (realize_default_face, realize_named_face): Don't remove the
324 (realize_face): Argument changed. Caller changed. Remove face
325 with the arg former_face_id in advance. Load font for the new
327 (realize_x_face): Argument changed. Caller changed. For a
328 multibyte character, share fontset with base_face. For a single
329 byte character, make a new realized fontset. Don't load a font
331 (realize_tty_face): Argument changed. Caller changed.
332 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
333 (face_at_buffer_position): Don't check multibyte_p for returning
335 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
336 FACE_SUITABLE_FOR_CHARSET_P.
337 (syms_of_xfaces): Remove code for Qx_charset_registry and
338 Vface_default_registry.
340 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
341 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
342 (x_per_char_metric): Don't try FONT->default_char. Even if
343 pcm->width is zero, glyph bits may exist.
344 (x_encode_char): Always initialize char2b->byte1.
345 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
346 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
348 (x_append_glyph): Set glyph->glyph_not_available_p.
349 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
350 it->charset. Handle the case that per char metric is not
351 available. If it->multibyte_p is zero and it->c is a multibyte
352 character, convert it to a unibyte character.
353 (struct glyph_string): Delete member `charset'.
354 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
355 the case that per char metric is not available correctly.
356 (x_fill_glyph_string): Handle the case that the specific glyph is
357 not available correctly.
358 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
359 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
360 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
361 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
362 fontset. Don't call FS_LOAD_FONT.
364 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
365 (x_create_tip_frame): Likewise.
366 (Fx_close_connection): Free full_name of font_info.
368 * fns.c (optimize_sub_char_table): New function.
369 (Foptimize_char_table): New function.
370 (syms_of_fns): Defsubr Soptimize_char_table.
372 2000-03-20 Gerd Moellmann <gerd@gnu.org>
374 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
375 only if buffer is displayed in some window.
377 * xdisp.c (handle_single_display_prop): Initialize local `value'.
378 (try_window_reusing_current_matrix): Don't call scroll run
379 function if run's current and desired position are the same;
380 this prevents cursor flickering.
382 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
384 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
386 * regex.c (RE_STRING_CHAR): New macro.
387 (GET_CHAR_AFER_2): Remove.
388 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
389 (enum re_opcode_t): Remove on_failure_jump_exclusive.
390 (print_partial_compiled_pattern, re_compile_fastmap)
391 (re_match_2_internal): Remove on_failure_jump_exclusive.
392 (regex_compile): Turn optimizable P+ loops into PP*, so that the
393 optimization only need to work for * (ie. can use of_keep_string_jump).
394 Remove the special case for .*\n since it is now covered by the general
396 (re_search_2): Don't bother with `room'.
397 (skip_one_char): New function.
398 (skip_noops): Simplify since `memory' is not needed any more.
399 (mutually_exclusive_p): Restructure slightly to use `switch' and
400 add handling for "all" remaining cases.
401 (re_match_2_internal): Change on_failure_jump_smart to use
402 on_failure_keep_string_jump (and redirect the end-of-loop jump)
403 rather than on_failure_jump_exclusive.
405 2000-03-19 Gerd Moellmann <gerd@gnu.org>
407 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
408 number of bits per RGB because it's everywhere used as the depth
411 * term.c (calculate_costs): Remove code dealing with X frames.
413 2000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
415 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
417 2000-03-18 Gerd Moellmann <gerd@gnu.org>
419 * lread.c (read_integer): Unread the last char not consumed.
421 2000-03-17 Gerd Moellmann <gerd@gnu.org>
423 * xterm.c (x_update_window_cursor): Don't update in frames
424 which are in the process of being deleted.
426 2000-03-16 Gerd Moellmann <gerd@gnu.org>
428 * Makefile.in (mostlyclean): Add `*.core'.
429 (clean): Add `bootstrap-emacs'.
431 * lread.c (read_integer): New function.
432 (read1): Support read syntax #o, #x, #b, #r.
434 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
436 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
437 make sure POINTER_TO_OFFSET gives the same value before and after
438 PREFETCH. Use `dfail' to guarantee "atomic" matching.
439 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
440 (debug): Now only active if > 0 rather than if != 0.
441 (DEBUG_*): Update for the new meaning of `debug'.
442 (print_partial_compiled_pattern): Add missing `succeed' case. Use
443 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
444 in `succeed_n', `jump_n' and `set_number_at'.
445 (store_op1, store_op2, insert_op1, insert_op2)
446 (at_begline_loc_p, at_endline_loc_p): Add prototype.
447 (group_in_compile_stack): Move to after its arg's types are
448 declared and add a prototype.
449 (PATFETCH): Define in terms of PATFETCH_RAW.
450 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
452 (QUIT): Redefine as a nop except for NTemacs.
453 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
454 indentation of the greedy-op and shy-group code.
455 (at_(beg|end)line_loc_p): Fix argument's types.
456 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
457 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
458 (MATCHING_IN_FIRST_STRING): Remove.
459 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
460 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
461 QUIT unconditionally.
463 2000-03-15 Gerd Moellmann <gerd@gnu.org>
465 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
468 * process.c (send_process): Add a hint that the function
469 can call Lisp code to its comment.
471 * lread.c (load_dangerous_libraries): New variable.
472 (Vbytecomp_version_regexp): New variable.
473 (safe_to_load_p): New function.
474 (Fload): Handle files not compiled with Emacs specially.
475 (syms_of_lread): New Lisp variable load-dangerous-libraries.
477 2000-03-14 Gerd Moellmann <gerd@gnu.org>
479 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
481 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
482 support functions only if HAVE_X11R6_XIM is defined.
483 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
485 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
487 * xfns.c (X_I18N_INHIBITED): Don't define.
488 (create_frame_xic): Remove conditional compilation on
490 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
492 * config.in (HAVE_X_I18N): Moved here from xterm.h.
493 (HAVE_X11R6_XIM): Define.
495 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
497 * xterm.c (x_term_init): Add support for X resource `synchronous'.
498 If set, call XSynchronize.
500 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
502 * regex.c: Declare a new type `re_char' used throughout the code
503 for the string char type. It's `const unsigned char' to match the
504 rest of Emacs. Consistently make sure all pointers to strings use
505 it and make sure all pointers into the pattern use `unsigned
507 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
508 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
511 * charset.h (GET_CHAR_AFTER_2): Remove.
512 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
514 2000-03-12 Ken Raeburn <raeburn@gnu.org>
516 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
517 variable before the invocation of YMF_PASS_LDFLAGS, in case both
518 of them try to use backquotes.
520 2000-03-12 Dave Love <fx@gnu.org>
522 * unexelf.c: Restore changes of 1999-10-19.
523 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
524 fix its type and alignment; copy it from current process.
526 2000-03-12 Gerd Moellmann <gerd@gnu.org>
528 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
529 has been found. Fix bug not computing timer's predecessor.
531 * fileio.c (Fread_file_name): Handle case that DIR contains a
534 * window.c (Fsave_window_excursion): Doc fix.
536 * xfns.c (x_defined_color): Rewritten to use
537 x_allocate_nearest_color.
539 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
541 * msdos.c (vga_installed): New function, code moved from
543 (Qbar, Qcursor_type, outside_cursor): New variables.
544 (syms_of_msdos): Intern and staticpro them.
545 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
546 shape used outside Emacs when called for the first time.
547 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
548 cursor shape used outside Emacs.
549 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
550 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
552 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
553 parameters specify the cursor. Make qreverse a global
554 variable (renamed to Qreverse).
556 2000-03-09 Gerd Moellmann <gerd@gnu.org>
558 * fns.c (Fy_or_n_p): Cancel busy-cursor.
560 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
562 This is a big redesign of failure-stack and register handling, prompted
563 by bugs revealed when trying to add shy-groups. Overall, what happened
564 is that loops are now structured a little differently, groups can be
565 shy and the code is a little simpler.
567 * regex.h: Update the copyright.
568 (RE_SHY_GROUPS): New value.
569 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
570 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
572 * regex.c (enum re_opcode_t): Remove jump_past_alt,
573 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
574 on_failure_jump_(exclusive, loop and smart). Also fix the comment
575 for (start|stop)_memory since they now only take one argument (the
576 second has becomes unnecessary).
577 (print_partial_compiled_pattern): Adjust for changes in
579 (print_compiled_pattern): Use %ld to printf long ints and flush to
580 make debugging a little easier.
581 (union fail_stack_elt): Make the integer unsigned.
582 (struct fail_stack_type): Add a `frame' element.
583 (INIT_FAIL_STACK): Init `frame' as well.
584 (POP_PATTERN_OP): New macro for re_compile_fastmap.
585 (DEBUG_PUSH, DEBUG_POP): Remove.
586 (NUM_REG_ITEMS): Remove.
587 (NUM_NONREG_ITEMS): Adjust.
588 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
589 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
590 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
591 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
593 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
594 address pushed is not the destination of the jump but the source
596 (NUM_FAILURE_ITEMS): Remove.
597 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
598 registers before the actual failure point). Don't hardcode any
599 meaning for str==NULL anymore.
600 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
601 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
603 (REG_UNSET_VALUE): Use NULL (why not?).
604 (compile_range): Remove declaration since it doesn't exist.
605 (struct compile_stack_elt_t): Remove inner_group_offset.
606 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
607 (regex_grow_registers): Remove dead code.
608 (FIXUP_ALT_JUMP): New macro.
609 (regex_compile): Add shy-groups Change loops to use
610 on_failure_jump_smart&jump instead of
611 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
612 initial (dummy_failure_)jump. Remove c1_base (looks like unused
613 variable to me). Use `jump' instead of `jump_past_alt' and don't
614 bother with push_dummy_failure in alternatives since it is now
615 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
616 emacs' for (re)allocating the stack.
617 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
618 from loop when bufp->can_be_null rather than jumping to `done'.
619 Avoid jumping backwards so as to ensure termination. Use
620 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
621 backreferences. Remove dead code in handling of `anychar'.
622 (skip_noops, mutually_exclusive_p): New functions taken from the
623 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
624 improve mutually_exclusive_p to handle ".+\n".
625 (lowest_active_reg, highest_active_reg,
626 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
627 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
628 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
629 variables. Push register (in `start_memory') on the stack rather
630 than storing it in old_reg(start|end). Remove the cycle detection
631 from `stop_memory', replaced by the use of on_failure_jump_loop
632 for greedy loops. Add code for the new on_failure_jump_<foo>.
633 Remove ad-hoc code in `on_failure_jump' to push more registers in
634 the case of a loop. Take out code from `maybe_pop_jump' into
635 separate functions and adapt it to the semantics of
636 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
637 and push_dummy_failure. Remove dummy_failure handling and
638 handling of `failures to jump to on_failure_jump' (this last one
639 was already dead code, it seems).
640 (group_match_null_string_p, alt_match_null_string_p)
641 (common_op_match_null_string_p): Remove.
643 2000-03-08 Dave Love <fx@gnu.org>
645 * config.in: Don't depend on __STDC__ for volatile.
646 Add POINTER_TYPE, PTR, PROTOTYPES.
648 * hftctl.c, strftime.c: Use PROTOTYPES.
649 * eval.c (find_handler_clause): Likewise.
651 * mem-limits.h: Use POINTER_TYPE.
653 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
654 (memory_warnings): Declare using POINTER_TYPE.
656 2000-03-08 Gerd Moellmann <gerd@gnu.org>
658 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
660 * xdisp.c (display_echo_area): Temporarily inhibit garbage
663 * xfns.c: Remove obsolete code in #if 0.
664 (Fx_focus_frame): New function.
666 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
668 * coding.c (coding_category_name): Add coding-category-utf-8,
669 coding-category-utf-16-be, coding-category-utf-16-le.
670 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
671 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
672 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
673 (detect_coding_utf_8): New function.
674 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
675 UTF_16_LOW_SURROGATE_P): New macros.
676 (detect_coding_utf_16): New function
677 (detect_coding_mask): When priorities are specified, skip any
678 categories that have `nil' coding-system. Fix bug of returning
679 wrong mask when PRIORITIES is specified and detect_coding_XXX()
680 returns a mask not set in PRIORITIES.
681 (detect_eol_type_in_2_octet_form): New function.
682 (detect_eol): selects detect_eol_type_XXX to call according to
683 cooding->category_idx.
684 (detect_coding_system): Remove `nil' coding-system in the result.
685 (Fupdate_coding_systems_internal): Update all coding-categories.
687 * coding.h (CODING_CATEGORY_IDX_UTF_8,
688 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
690 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
691 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
692 CODING_CATEGORY_IDX_UTF_16_LE.
693 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
694 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
695 (CODING_CATEGORY_MASK_ANY): Include the above macros.
696 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
698 2000-03-07 Gerd Moellmann <gerd@gnu.org>
700 * doc.c (Fdocumentation_property): If value is not a string,
701 and doesn't refer to etc/DOC, evaluate it to obtain a string.
703 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
704 close the display with XtCloseDisplay. This caused a bus error
707 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
708 complete but not unique.
710 2000-03-06 Gerd Moellmann <gerd@gnu.org>
712 * process.c (send_process): Remove local variable `procname' that
713 might become invalid when a GC happens. Instead, access the
714 process name slot directly.
716 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
719 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
722 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
724 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
725 glyph matrices have been freed.
727 2000-03-05 Gerd Moellmann <gerd@gnu.org>
729 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
730 (bootstrap-temacs): Set LC_ALL to C like for temacs.
732 * xfns.c (QCdata): Moved to xdisp.c.
734 * xdisp.c (QCdata): Moved here from xfns.c.
735 (syms_of_xdisp): Initialize QCdata.
737 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
739 * window.c (coordinates_in_window): Use
740 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
741 FRAME_INTERNAL_BORDER_WIDTH.
743 * xdisp.c (try_window_id): Recompute unchanged information if
744 it is obviously invalid.
746 * xterm.c (x_term_init): Create a colormap if not using the
749 * xterm.h (select_visual): Change prototype.
751 * xfns.c (select_visual): Rewritten. Recognize user-specified
753 (visual_classes): New variable.
755 2000-03-04 Gerd Moellmann <gerd@gnu.org>
757 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
758 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
759 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
760 (x_decode_color): Don't handle allocation of white and black
762 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
763 XtNcolormap resources.
764 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
765 (Fx_create_frame): Initialize color members of x_output structure.
766 (xpm_load): Pass colormap to XPM lib.
768 * xfaces.c (x_free_colors): Access colormap of frame using
769 FRAME_X_COLORMAP. Be paranoid about freeing black and white
770 when default colormap is used.
772 * xterm.c (x_term_init): Set Colormap member of x_display_info
773 structure. Copy colormap if resource `privateColormap' is
774 specified (PseudoColor only).
775 (x_setup_relief_color): Access colormap of frame using
778 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
779 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
781 2000-03-04 Jason Rumney <jasonr@gnu.org>
783 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
784 other non-platform-specific equivalents.
785 [WINDOWSNT]: Include w32term.h, fontset.h and define X
786 specific functions and macros as their w32 equivalents where
787 non-platform-specifics are not available.
788 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
789 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
790 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
791 (frame_update_line_height): Use macros to access f->output_data.
792 (defined_color): Remove FIXME comments; fixed.
793 (x_face_list_fonts, prepare_face_for_display): Put X specifics
794 into #ifdef blocks. Add WINDOWSNT blocks.
795 (Fx_list_fonts): Use macros for accessing font data.
796 (set_lface_from_font_name): Different default fonts for X and
798 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
799 scalable for backward compatibility.
800 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
801 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
803 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
806 * makefile.nt (w32faces.obj): Remove.
809 2000-03-03 Jason Rumney <jasonr@gnu.org>
811 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
814 2000-03-03 Ken Raeburn <raeburn@gnu.org>
816 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
817 standard ELF definitions here if the system header does not.
819 2000-03-03 Gerd Moellmann <gerd@gnu.org>
821 * xterm.c (PER_CHAR_METRIC): Removed.
822 (x_per_char_metric_1, x_default_char): New functions.
823 (x_per_char_metric): If font's default char is invalid, return
824 metrics of a suitably chosen usable default char.
825 (x_draw_glyph_string_foreground): If font has an invalid default
826 char, replace occurrences of unprintable chars with a suitably
827 chosen usable default char.
829 2000-03-02 Gerd Moellmann <gerd@gnu.org>
831 * xterm.c (note_mouse_highlight): Return quickly if frame's
832 glyph matrices have been freed.
834 * dispnew.c (free_glyphs): Block input while freeing matrices.
836 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
838 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
841 * dispextern.h (x_free_colors): Add prototype.
843 * xfaces.c (x_free_colors): New function.
844 (unload_color, free_face_colors): Use it.
846 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
848 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
850 * window.c [MSDOS]: Include msdos.h.
852 2000-03-02 Dave Love <fx@gnu.org>
854 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
856 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
857 set C_OPTIMIZE_SWITCH for gcc.
859 2000-03-02 Kenichi Handa <handa@etl.go.jp>
861 * coding.c (coding_save_composition): Be sure to allocate
862 composition data area in coding even if there's no composition in
865 2000-03-01 Jason Rumney <jasonr@gnu.org>
867 * w32term.c: Equivalent changes to those made to xterm.c on
868 2000-02-25 and 2000-02-24.
870 * w32fns.c: Equivalent changes to those made to xfns.c on
871 2000-02-25 and 2000-02-21.
873 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
874 correct line-end convention is followed.
876 * w32menu.c [HAVE_BOXES]: Remove #undef.
877 (single_keymap_panes): Remove code for simulating checkmarks.
878 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
879 Remove code for drawing simulated checkmarks.
880 (w32_menu_show): make unibyte help string correctly.
881 (add_menu_item): draw standard Windows checkmarks. Draw radio
882 buttons as radio buttons if possible.
884 2000-03-01 Gerd Moellmann <gerd@gnu.org>
886 * sysdep.c (start_of_text): Don't define this function for NetBSD
889 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
891 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
892 (LINKER): Don't undef if __NetBSD__ is defined.
894 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
896 * fileio.c [__NetBSD__]: Define `unix'.
898 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
900 2000-02-29 Gerd Moellmann <gerd@gnu.org>
902 * atimer.c (start_atimer): Don't abort when timers are stopped.
903 (append_atimer_lists): New function.
904 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
905 arbitrary lists of stopped and running atimers.
907 * atimer.c (cancel_atimer): Handle canceling an atimer when
908 some timers are stopped.
910 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
913 * fns.c (maybe_resize_hash_table): Handle case of new size
914 coming out as being the same as old size.
916 2000-02-27 Jason Rumney <jasonr@gnu.org>
918 * makefile.nt: Add atimer.h to dependencies.
919 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
920 * w32console.c: Only disable window system features for dispextern.h
921 (initialize_w32_display): Build a display info for the console.
922 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
923 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
924 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
926 * w32gui.h (struct W32FontStruct): Revert last change after change
928 * w32menu.c (single_submenu): Set up help string.
929 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
930 (w32_dialog_show): Set up help string.
931 * w32term.c (w32_display_info_for_display): Remove unused function.
932 (w32_draw_bitmap): Use pre-built bitmaps.
933 (w32_initialize_display_info): New function to initialize parts of
934 display info that are common to both GUI and console frames.
935 (w32_term_init): Use w32_initialize_display_info. Do not set
936 Vw32_num_mouse_buttons here, as it is not called for console
937 frames. Build bitmaps for indicating truncated lines etc.
938 (x_delete_display): Destroy pre-built bitmaps.
939 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
940 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
942 2000-02-27 Dave Love <fx@gnu.org>
944 * lisp.h: Add a bunch of prototypes.
946 2000-02-26 Kenichi Handa <handa@etl.go.jp>
948 * keyboard.c (read_char): Set `usec' correctly.
950 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
952 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
953 `lambda', set reg[RRR] to the map index.
954 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
955 reg[RRR] to 0. Otherwise, set it to -1.
957 2000-02-25 Gerd Moellmann <gerd@gnu.org>
959 * emacs.c (main): Remove code snippet commented out with `//'.
961 2000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
963 * fileio.c (Ffile_symlink_p): If result starts with a `/'
964 and contains a `:', prepend `/:'.
966 * window.c (select_window_1): If selected_window is nil,
967 don't "swap out" the buffer's point.
968 (Fset_window_configuration): Set selected_window to nil
969 before calling Fselect_window.
970 (unshow_buffer): Don't set point in buffer from window's point
971 if another more recently selected window also shows the buffer.
973 2000-02-25 Gerd Moellmann <gerd@gnu.org>
975 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
977 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
978 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
979 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
981 (DEFAULT_BUSY_CURSOR_DELAY): New define.
982 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
983 (hide_busy_cursor): New functions.
984 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
986 * minibuf.c (read_minibuf): Cancel busy-cursor.
988 * keyboard.c (command_loop_1): Call start_busy_cursor before
989 Fcommand_execute and cancel_busy_cursor after it.
990 (timer_check): Remove busy-cursor code.
991 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
994 * process.c (wait_reading_process_input): Remove busy-cursor code.
996 * eval.c (Fsignal): Call cancel_busy_cursor instead of
999 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
1001 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
1003 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
1005 * xterm.c (XTread_socket): Remove busy-cursor code.
1007 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
1008 (build_frame_matrix_from_leaf_window): Put code handling
1009 glyph row's not being a slice of a frame row in #if 0.
1010 (sync_window_with_frame_matrix_rows): New function.
1011 (frame_row_to_window): New function.
1012 (mirror_line_dance): Handle copies between windows.
1014 * lread.c (Fload): Use `xfree' instead of `free'.
1015 (init_obarray): Use `xmalloc' instead of `malloc'.
1017 * window.c (Fset_window_buffer): Set WINDOW to the window
1019 (coordinates_in_window): Take frame's internal border width
1022 2000-02-24 Gerd Moellmann <gerd@gnu.org>
1024 * xterm.c (x_display_and_set_cursor): Display cursor of
1025 non-selected windows depending on the setting of
1026 cursor_in_non_selected_windows.
1028 * xdisp.c (cursor_in_non_selected_windows): New variable.
1029 (syms_of_xdisp): DEFVAR_BOOL it.
1031 2000-02-23 Gerd Moellmann <gerd@gnu.org>
1033 * data.c (Fstring_to_number): If number is greater than what
1034 fits into an integer, return a float.
1036 * eval.c (specbind): Remove references to
1037 keyword_symbols_constant_flag.
1039 * data.c (keyword_symbols_constant_flag): Removed.
1040 (Fmakunbound, set_internal, syms_of_data): Remove references to
1041 keyword_symbols_constant_flag.
1043 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
1045 2000-02-23 Kenichi Handa <handa@etl.go.jp>
1047 * syntax.c (multibyte_syntax_as_symbol): New variable.
1048 (syms_of_syntax): Declare it as a Lisp variable.
1049 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
1050 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
1051 nonzero, treat all multibyte characters as symbol.
1052 (init_syntax_once): Give syntax `word' to all multibyte
1055 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
1057 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
1060 2000-02-21 Gerd Moellmann <gerd@gnu.org>
1062 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
1064 * xfns.c (x_window_to_frame, x_any_window_to_frame)
1065 (x_non_menubar_window_to_frame): Check the busy-cursor window.
1067 2000-02-21 Dave Love <fx@gnu.org>
1069 * frame.c (Vmouse_position_function): New variable.
1070 (Fmouse_position): Use it.
1071 (syms_of_frame): Install it.
1073 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
1075 2000-02-20 Gerd Moellmann <gerd@gnu.org>
1077 * fileio.c (Finsert_file_contents): Unbind the binding of
1078 standard-output done by temp_output_buffer_setup.
1080 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
1081 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
1082 (specbind, unbind_to): Handle most common case of non-constant
1083 symbol with trivial value specially.
1085 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
1087 2000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1089 * data.c (Fmake_variable_buffer_local): Doc fix.
1090 Init found_for_buffer to 0.
1091 (Fmake_variable_frame_local): If the variable has already
1092 been buffer-local, set the check_frame field.
1094 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
1096 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
1097 produced for CODING_MODE_LAST_BLOCK requires.
1099 2000-02-18 Dave Love <fx@gnu.org>
1101 * keyboard.c (echo_keystrokes): Remove declaration.
1102 (Vecho_keystrokes) New variable.
1103 (read_char, record_menu_key, read_key_sequence): Use it to allow
1105 (syms_of_keyboard): Change Vecho_keystrokes declaration.
1107 * lread.c: Undef feature selection macros before defining.
1109 2000-02-18 Gerd Moellmann <gerd@gnu.org>
1111 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
1112 for symbols other than the symbol in question.
1114 2000-02-17 Dave Love <fx@gnu.org>
1116 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
1118 2000-02-17 Gerd Moellmann <gerd@gnu.org>
1120 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
1122 * alloc.c (enum mem_type): Compile unconditionally.
1124 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
1126 * xfaces.c (tty_defined_color): Don't return faulire indication
1127 for unspecified-fg and unspecified-bg pseudo-colors.
1129 2000-02-17 Gerd Moellmann <gerd@gnu.org>
1131 * alloc.c (mark_object): Don't mark symbol names in pure space.
1132 (gc_sweep): Don't unmark symbol names in pure space.
1134 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
1135 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
1136 [GC_MARK_STACK]: New defines.
1137 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1138 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
1140 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
1142 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
1143 allocate_buffer instead of xmalloc.
1145 * alloc.c (toplevel): Include setjmp.h.
1146 (PURE_POINTER_P): New define.
1147 (enum mem_type) [GC_MARK_STACK]: New enumeration.
1148 (Vdead) [GC_MARK_STACK]: New variable.
1149 (lisp_malloc): Add parameter TYPE, call mem_insert if
1150 GC_MARK_STACK is defined.
1151 (allocate_buffer): New function.
1152 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1153 (free_float) [GC_MARK_STACK]: Set type to Vdead.
1154 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
1155 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
1156 (MEM_NIL) [GC_MARK_STACK]: New define.
1157 (struct mem_node) [GC_MARK_STACK]: New structure.
1158 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
1159 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
1160 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
1161 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
1162 (mark_stack) [GC_MARK_STACK]: New functions.
1163 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
1164 (clear_marks): Removed.
1165 (gc_sweep): Set free conses' car, free floats' type, free
1166 symbols' function to Vdead. Use lisp_free to free buffers.
1167 (init_alloc_once): Initialize Vdead.
1168 (survives_gc_p): Return non-zero for pure objects.
1170 * alloc.c: Add comments throughout the file.
1172 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
1173 that unblocks alarms.
1175 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
1176 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
1177 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
1179 * frame.c (make_frame): Set frame initiallly to `garbaged'.
1181 2000-02-17 Kenichi Handa <handa@etl.go.jp>
1183 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
1184 avoid infinite error signaling. Allocate sufficient memory for
1185 eol_str in the case that eoltype is Lisp_Int.
1187 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
1189 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
1190 depends on the previous behavior.
1192 2000-02-16 Gerd Moellmann <gerd@gnu.org>
1194 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
1196 2000-02-15 Gerd Moellmann <gerd@gnu.org>
1198 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
1200 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
1201 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
1204 2000-02-15 Richard M. Stallman <rms@gnu.org>
1206 * data.c (set_internal): Don't make variable buffer-local
1207 if within a let-binding for the same buffer.
1208 (let_shadows_buffer_binding_p): New function.
1210 * eval.c (specbind): For buffer-local value,
1211 record the current buffer also.
1212 (unbind_to): Cope with that change.
1214 2000-02-15 Gerd Moellmann <gerd@gnu.org>
1216 * window.c (Fsave_window_excursion): Doc fix.
1218 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
1220 * syntax.c (back_comment): Make sure we only consider comment-starters
1221 of the relevant style and return -1 in case of a failure to find the
1222 beginning of the comment.
1223 (Fforward_comment): If back_comment fails, go back to the position just
1224 after the comment-end.
1225 (scan_lists): Add comment describing a very minor bug.
1227 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
1229 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
1230 `completion-regexp-list' in the docstring.
1232 2000-02-14 Dave Love <fx@gnu.org>
1234 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
1236 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
1238 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
1239 to Emacs' syntax. Also fix the comment about set/not-set meanings
1240 since Emacs syntax is not the value 0 any more.
1241 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
1242 since it's now part of RE_SYNTAX_EMACS.
1244 2000-02-12 Dave Love <fx@gnu.org>
1246 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
1249 2000-02-12 Gerd Moellmann <gerd@gnu.org>
1251 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
1253 2000-02-12 Dave Love <fx@gnu.org>
1255 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
1257 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
1258 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
1259 * s/hpux.h: Don't define HAVE_VFORK.
1261 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
1263 * s/nextstep.h: Don't define HAVE_ALLOCA.
1265 * config.in: Add vfork bits.
1267 2000-02-12 Gerd Moellmann <gerd@gnu.org>
1269 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
1270 unwind function to undo the effect of stopping atimers.
1272 * keyboard.c (bind_polling_period): Stop all timers except
1275 * atimer.c (stopped_atimers): New variable.
1276 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
1279 * atimer.h (stop_other_atimers, run_all_atimers)
1280 (unwind_stop_other_atimers): Add function prototypes.
1282 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
1284 2000-02-11 Ken Raeburn <raeburn@gnu.org>
1286 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
1287 library may depend on jpeg.
1288 (atimer.o): Depends on atimer.c.
1290 2000-02-11 Kenichi Handa <handa@etl.go.jp>
1292 * insdel.c (del_range_1): Call update_compositions.
1293 (del_range_both): Call update_compositions just once..
1295 2000-02-10 Dave Love <fx@gnu.org>
1297 * xfns.c (create_frame_xic): Fix initialization of automatic
1300 2000-02-09 Kenichi Handa <handa@etl.go.jp>
1302 * ccl.c (CCL_MAKE_CHAR): New macro.
1303 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
1304 registers by CCL_MAKE_CHAR before calling translate_char.
1305 <CCL_TranslateCharacterConstTbl> Likewise.
1307 2000-02-08 Dave Love <fx@gnu.org>
1309 * lread.c (__EXTENSIONS__): Define.
1311 2000-02-08 Gerd Moellmann <gerd@gnu.org>
1313 * puresize.h (BASE_PURESIZE): Increase to 650000.
1315 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
1317 * msdos.c (XMenuActivate): Turn off the cursor after displaying
1320 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
1322 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
1323 md, mh, mb, mr, and me to the fake termcap entry.
1325 2000-02-06 Ken Raeburn <raeburn@gnu.org>
1327 * sound.c (sound_cleanup): Don't call device close routine if the
1328 function pointer is null.
1330 2000-02-06 Andrew Innes <andrewi@gnu.org>
1332 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
1333 around image definitions and prototypes.
1334 (gamma_correct) [WINDOWSNT]: New prototype.
1336 * w32term.c (x_make_frame_visible): Replace call to
1337 input_poll_signal with poll_for_input.
1339 * window.c [WINDOWSNT]: Include w32term.h.
1341 * xdisp.c [WINDOWSNT]: Include w32term.h.
1343 * makefile.nt: Add dependencies on w32gui.h.
1344 (OBJ1): Include atimer.obj.
1345 ($(BLD)\atimer.obj): New dependency rule.
1347 * w32.c (sigmask): New function (does nothing).
1348 (sigunblock): Ditto.
1350 * frame.c [WINDOWSNT]: Include w32term.h.
1352 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
1354 * lread.c (syms_of_lread): Fix literal newlines.
1356 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
1357 the string constant limit (2048 bytes) in MSVC.
1360 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
1362 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
1364 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
1365 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
1368 2000-02-04 Dave Love <fx@gnu.org>
1370 * fileio.c: Remove some unused vars.
1371 (_GNU_SOURCE): Define (for euidaccess).
1373 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
1375 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
1377 (read_minibuf): Deal with allow_props correctly.
1379 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
1381 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
1383 2000-02-03 Ken Raeburn <raeburn@gnu.org>
1385 * search.c (compile_pattern): If a cache entry has a nil regexp,
1386 fill in that entry instead of clobbering a previously cached
1389 2000-02-02 Ken Raeburn <raeburn@gnu.org>
1391 * puresize.h (BASE_PURESIZE): Increase to 610000.
1393 2000-02-02 Gerd Moellmann <gerd@gnu.org>
1395 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
1398 2000-02-02 Kenichi Handa <handa@etl.go.jp>
1400 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
1401 instead of incrementing ic directly.
1402 <CCL_WriteExprConst> Likewise.
1403 <ccl_set_expr>: Set ic to jump_address.
1405 * fileio.c (e_write): Fix the handling of
1406 CODING_FINISH_INSUFFICIENT_SRC.
1408 2000-02-01 Dave Love <fx@gnu.org>
1410 * editfns.c (Fpropertize): Doc fix.
1412 * process.c (Fstart_process): Doc fix.
1414 * eval.c: Fix various doc strings not to duplicate information
1415 from help-manyarg-func-alist.
1417 * window.c (Fset_window_margins): Don't make interactive. Doc
1420 * doc.c (Vhelp_manyarg_func_alist): New variable.
1421 (Fdocumentation): Use it.
1422 (syms_of_doc): Define it.
1424 2000-01-31 Gerd Moellmann <gerd@gnu.org>
1426 * xterm.c (xim_open_dpy): Remove unused local variable.
1428 * emacs.c (USAGE): Use term `display options' instead of `X
1431 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
1432 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
1434 * fns.c (sweep_weak_table): New function.
1435 (sweep_weak_hash_tables): Use it. Keep on marking until there
1438 2000-01-30 Gerd Moellmann <gerd@gnu.org>
1440 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
1441 that XTread_socket does not crash by trying to call XNoOp on a
1444 2000-01-30 Jason Rumney <jasonr@gnu.org>
1446 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
1447 Change selected_frame to SELECTED_FRAME ().
1448 (w32_console_mouse_position): Remove #ifndef MULE from around
1451 * makefile.nt: Remove dosfns.obj.
1453 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
1455 * w32fns.c (w32_defined_color): Check for valid frame before
1456 applying gamma correction. Eliminate dependency on frame elsewhere.
1457 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
1458 (w32_to_x_font): Use resx and resy not height_in and width_in.
1459 (x_to_w32_font): Doc fix.
1460 (xlfd_strip_height): New function to strip and return font height.
1461 (w32_font_match): Compare height separately from rest of xlfd
1462 spec, using xlfd_strip_height.
1464 * w32term.c (w32_term_init): Swap resx and height_in, resy and
1465 width_in. Use w32_defined_color in place of defined_color.
1467 * w32faces.c: Merge more of DOS and X specifics in preparation for
1468 merge with xfaces.c.
1469 (defined_color): Remove FIXME comment.
1470 (tty_color_name): Provide w32-specific function.
1471 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
1473 * w32console.c (turn_on_face, turn_off_face): Removed.
1474 (w32_face_attributes): New function.
1475 (Global_variables): Reduce scope where possible.
1476 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
1478 (hl_mode): Don't modify text attributes.
1479 (write_glyphs): Don't do anything if len <= 0. Use
1480 w32_face_attributes to get attributes for drawing. Write
1481 terminating codes using char_attr_normal.
1482 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
1483 (update_begin, update_end): Likewise.
1484 (vga_stdcolor_name): New function.
1485 (initialize_w32_display): Remove char_attr_reverse and char_attr.
1486 (Fset_screen_color): Remove char_attr_reverse.
1488 2000-01-29 Gerd Moellmann <gerd@gnu.org>
1490 * xfns.c (xic_set_preeditarea): Take window parameter and
1491 window-relative pixel-positions.
1493 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
1494 is its frame's selected window.
1495 (xim_instantiate_callback): Likewise.
1497 * xfns.c (x_create_im): Removed.
1498 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
1499 (supported_xim_styles): Renamed from supported_styles.
1500 (best_xim_style): Renamed from best_style.
1501 (create_frame_xic): Renamed from xic_create_frame.
1502 (free_frame_xic): Renamed from xic_destroy_frame.
1504 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
1506 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
1507 our frames, call XFilterEvent with 2nd parameter `None'.
1508 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
1509 returning XBufferOverflow.
1510 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
1512 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
1513 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
1514 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
1515 (xim_initialize, xim_close)
1516 [HAVE_X_I18N && HAVE_X11R6]: New functions.
1517 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
1518 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
1519 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
1521 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
1523 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
1524 `xic_style' and `xic_xfs'.
1525 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
1526 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
1527 (FRAME_XIM): Removed.
1529 * xfns.c (supported_styles): New variable.
1530 (DEFAULT_STYLE, DEFAULT_FONT): New macros
1531 (xic_create_xfontset, best_style, xic_create_frame)
1532 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
1533 (xic_set_xfontset): New functions.
1535 2000-01-28 Dave Love <fx@gnu.org>
1537 * s/irix6-5.h: Revert last change after change to irix5-0.h.
1539 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
1541 2000-01-28 Gerd Moellmann <gerd@gnu.org>
1543 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
1544 for *scratch* if it already existed.
1546 * emacs.c (USAGE): New macro.
1547 (main): Use it to display usage information.
1549 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
1551 Support for the menu-help feature:
1553 * msdos.h: Change prototypes of XMenuAddSelection and
1556 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
1557 part of the line to the termscript file.
1558 (IT_clear_to_end): Clear the entire line, not just its beginning.
1559 (menu_help_message, prev_menu_help_message): New variables.
1560 (IT_menu_make_room): Make room for the help_text member.
1561 (IT_menu_display): New argument disp_help; all callers changed.
1562 If disp_help is non-zero, store the help text of the active menu
1563 item in menu_help_message.
1564 (XMenuAddPane): Initialize the help_text member to NULL.
1565 (XMenuAddSelection): New argument help_text. Store it in the
1567 (XMenuActivate): New argument help_callback. If the value of
1568 menu_help_message has changed since the last time, display the
1569 menu help message text while waiting for the mouse to move. Clear
1570 the echo area before exiting.
1571 (XMenuDestroy): Free the help_text member.
1573 2000-01-27 Gerd Moellmann <gerd@gnu.org>
1575 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
1576 XMenuAddSelection. Pass help callback to XMenuActivate.
1577 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
1579 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
1581 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
1582 and EMACS_SET_USECS.
1584 2000-01-26 Dave Love <fx@gnu.org>
1586 * editfns.c (Fchar_after, Fchar_before): Doc fix.
1588 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
1589 an error may be signalled.
1591 2000-01-26 Gerd Moellmann <gerd@gnu.org>
1593 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
1594 LD_SWITCH_SYSTEM inherited from irix5-0.h.
1596 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
1598 2000-01-25 Gerd Moellmann <gerd@gnu.org>
1600 * charset.c (Fstring): If there is a multibyte char among
1601 the args, always return a multibyte string.
1603 2000-01-25 Gerd Moellmann <gerd@gnu.org>
1605 * sysdep.c (sys_select): Turn atimers off and on instead of
1606 recording and restoring old alarm handler
1608 * process.c (toplevel): Include atimer.h.
1609 (create_process_1): Rewritten.
1610 (create_process): Use atimers instead of alarm.
1611 (wait_reading_process_input) [hpux]: Turn atimers off instead
1612 of turning off SIGALRM.
1613 (wait_reading_process_input): Turn off atimers instead off
1614 calling stop_polling.
1616 * emacs.c (main): Call init_atimer.
1618 * keyboard.c (toplevel): Include systime.h and atimer.h.
1619 (polling_for_input): Removed because unused.
1620 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
1621 (poll_timer): New variable.
1622 (poll_for_input, poll_for_input_1): New functions.
1623 (start_polling, stop_polling): Rewritten.
1625 * keyboard.h (polling_for_input): Removed.
1627 * atimer.h, atimer.c: New files.
1629 * Makefile.in (obj): Add atimer.o.
1630 (atimer.o): New target.
1632 * blockinput.h (pending_atimers): Add extern declaration.
1633 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
1635 * lisp.h (popup_activated_flag): Add extern declaration.
1637 * xmenu.c (popup_activated_flag): Make externally visible.
1638 (popup_activate_callback) [USE_MOTIF]: Increment
1639 popup_activated_flag.
1640 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
1642 * xterm.c (toplevel): Include atimer.h.
1643 (toolkit_scroll_bar_interaction): New variable.
1644 (Fxt_process_timeouts): Removed.
1645 (x_process_timeouts): New function.
1646 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
1647 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
1648 (x_make_frame_visible): Call poll_for_input_1 instead of
1649 input_poll_signal. Don't call alarm.
1650 (x_initialize): Install timer calling x_process_timeouts.
1652 2000-01-24 Dave Love <fx@gnu.org>
1654 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1655 Don't use -cckr -- apparently not now necessary.
1657 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1659 * msdos.c (IT_menu_display): Truncate long menu lines at the right
1662 2000-01-23 Jason Rumney <jasonr@gnu.org>
1664 * w32fns.c (w32_defined_color): Apply gamma correction before
1665 trying to map to the palette.
1666 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
1669 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
1670 here. Callers changed to always pass real device context.
1671 (w32_draw_bitmap): Likewise.
1672 (w32_get_glyph_overhangs): Likewise.
1673 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
1675 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
1676 pfnSetScrollInfo and SetScrollRange.
1677 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
1678 back into MULE characters after decoding them.
1679 (x_get_glyph_face_and_encoding): Likewise.
1680 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
1681 GetCharABCWidthsW fails, since this is defined on Windows 9x.
1682 (x_produce_glyphs): Calculate per char metrics for a character
1683 that we know exists in default font when font_not_found_p is true.
1685 2000-01-22 Jason Rumney <jasonr@gnu.org>
1687 * makefile.nt (intervals.obj, composite.obj): New modules.
1688 (composite.h): Added as dependency where appropriate.
1690 * w32gui.h (XGCValue): New struct for emulating X GCs.
1692 * w32term.h (XCharStruct): New struct for emulating X.
1694 * w32console.c (turn_on_face, turn_off_face): New functions.
1695 (change_line_highlight): New prototype for new redisplay.
1696 (write_glyphs): Support multibyte text. Support faces.
1698 * w32faces.c: Complete rewrite for new redisplay based on new
1701 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
1702 throughout. struct frame * in place of FRAME_PTR.
1703 Skeleton support for images, toolbars, tooltips from xfns.c.
1704 (Fx_create_frame): Use system default for default scroll bar
1706 (w32_get_arg): Renamed from x_get_arg.
1707 (Fx_file_dialog): New function.
1708 (w32_list_fonts): Check cache before asking system.
1709 (Vw32_enable_synthesized_fonts): New variable.
1710 (Vw32_enable_italics): Obsolete, removed.
1712 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
1713 Use SELECTED_FRAME macro.
1715 * w32menu.c: Add skeleton support for help strings on menus.
1716 (add_menu_item): Native checkbox and radio support added, but not
1717 yet enabled due to bugs.
1718 (push_menu_item): Add parameters type, selection and help.
1720 Formatting changes to reduce unnecessary diffs with xmenu.c.
1722 * w32select.c (Fw32_set_clipboard_data): Update call to
1723 find_charset_in_str.
1725 * w32term.c: Complete rewrite for new redisplay based on new
1726 xterm.c with necessary sections merged back in from old w32term.c.
1728 2000-01-21 Richard M. Stallman <rms@gnu.org>
1730 * data.c (set_internal): Further fix in same criterion.
1732 2000-01-20 Richard M. Stallman <rms@gnu.org>
1734 * data.c (set_internal): Fix the criteria for whether
1735 to swap out the old cached binding.
1737 2000-01-19 Dave Love <fx@gnu.org>
1739 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
1741 2000-01-18 Kenichi Handa <handa@etl.go.jp>
1743 * regex.c (re_compile_fastmap): While checking a range table for
1744 `charset', skip flag bits for a character class correctly.
1746 2000-01-17 Gerd Moellmann <gerd@gnu.org>
1748 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
1750 * xfns.c (x_window): Call lw_create_widget with new parameter
1753 * widget.c (EmacsFrameSetCharSize): Change size of children first
1754 because of problems with main window geometry management under
1757 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
1759 (MENU_ITEMS_ITEM_HELP): New enumerator.
1760 (push_menu_item): Add parameter HELP. Record help in menu_items.
1761 (single_menu_item, single_submenu, list_of_items): Call
1762 push_menu_item with new parameter.
1763 (single_submenu): Set help string in widget value.
1764 (menu_highlight_callback): New function.
1765 (set_frame_menubar): Call lw_create_widget with new
1767 (xmenu_show, xdialog_show): Ditto.
1769 2000-01-13 Gerd Moellmann <gerd@gnu.org>
1771 * sound.c (Fplay_sound): Improve doc string.
1773 2000-01-11 Richard M. Stallman <rms@gnu.org>
1775 * lisp.h (set_internal): Enter the new arg.
1777 * eval.c (specbind): Record buffer-local variables specially,
1778 indicating which buffer's binding was saved.
1779 (unbind_to): Restore buffer-local variables specially
1780 in the proper buffer.
1782 * data.c (set_internal): New arg BUF.
1784 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
1785 * data.c (Fset): Pass new arg to set_internal.
1786 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
1788 2000-01-11 Gerd Moellmann <gerd@gnu.org>
1790 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
1793 2000-01-11 Richard M. Stallman <rms@gnu.org>
1795 * minibuf.c (Ftry_completion): Doc fix.
1797 2000-01-11 Gerd Moellmann <gerd@gnu.org>
1799 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
1802 2000-01-11 Andreas Schwab <schwab@suse.de>
1804 * coding.c (code_convert_region): Initialize total_skip.
1806 2000-01-08 Dave Love <fx@gnu.org>
1808 * eval.c (Fuser_variable_p): Check customizability too.
1810 2000-01-07 Gerd Moellmann <gerd@gnu.org>
1812 * minibuf.c (Fcompleting_read): Doc fix.
1814 2000-01-05 Gerd Moellmann <gerd@gnu.org>
1816 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
1819 * xfns.c (x_create_im): New function to set IM and IC of a frame.
1820 Check that input style is supported before trying to create an
1822 (x_window): Call x_create_im.
1824 2000-01-04 Gerd Moellmann <gerd@gnu.org>
1826 * xfns.c (current_gif_memory_src): New variable.
1827 (gif_load): Record the address of the current memory source
1828 in current_gif_memory_src.
1829 (gif_read_from_memory): Use current_gif_memory_src.
1831 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
1832 macros statement form.
1834 * sound.c (struct sound): Renamed from struct sound_file.
1835 (struct sound): Add members `data' and `header_size'.
1836 (enum sound_attr): Add SOUND_DATA.
1837 (current_sound, current_sound_device): Variables renamed from
1838 sound_file and sound_device.
1839 (parse_sound): Parse :data.
1840 (parse_sound): Handle sound data in strings.
1841 (find_sound_type): Function renamed from find_sound_file_type.
1842 (wav_init, au_init): Fail if sound's header_size is smaller than
1844 (wav_play, au_play): Play sounds from string data.
1846 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
1848 * lisp.h: Add prototype for allocate_string_data.
1850 * alloc.c (Fgarbage_collect): Return number of live and free
1853 * alloc.c (mark_buffer): Remove code in #if 0.
1855 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
1856 (strings_consed): New variable.
1857 (allocate_string): Set it.
1858 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
1859 (Fmemory_use_counts): Return strings_consed. Use Flist.
1861 * alloc.c: General cleanup in comments etc. Remove conditional
1862 compilation for `standalone'.
1864 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
1866 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
1867 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
1868 (DONT_COPY_FLAG): Removed.
1869 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
1870 (struct sdata, struct sblock): New
1871 (struct string_block): Rewritten.
1872 (STRINGS_IN_STRING_BLOCK): New macro.
1873 (oldest_sblock, current_sblock, total_strings, total_free_strings)
1874 (large_sblocks, string_blocks, string_free_list): New variables.
1875 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
1876 (init_strings): Rewritten.
1877 (allocate_string, allocate_string_data, compact_small_strings)
1878 (free_large_strings, sweep_strings): New functions.
1879 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
1880 (struct string_block_head, current_string_block)
1881 (first_string_block, large_string_blocks, STRING_FULLSIZE)
1882 (STRING_PAD): Removed.
1883 (make_uninit_multibyte_string, make_pure_string): Rewritten.
1884 (Fgarbage_collect): Don't set mark bit in large strings.
1885 (mark_object): Mark strings differently. Mark symbol names
1887 (survives_gc_p): Test marked strings differently.
1888 (gc_sweep): Sweep strings differently, unmark strings in
1890 (compact_strings): Removed.
1892 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
1894 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
1895 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
1897 2000-01-04 Kenichi Handa <handa@etl.go.jp>
1899 * fileio.c (Finsert_file_contents): Signal error if visiting file
1900 in a non-empty buffer.
1902 * term.c (encode_terminal_code): Fix the previous change.
1904 2000-01-03 Gerd Moellmann <gerd@gnu.org>
1906 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
1907 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
1909 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
1911 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1913 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
1914 need to test for MSDOS frames.
1916 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1918 * dosfns.c (unspecified_colors): Remove.
1919 (msdos_stdcolor_idx): Use global variables unspecified_fg and
1921 (msdos_stdcolor_name): Return strings for unspecified fore- and
1924 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
1925 (syms_of_xfaces): Remove their staticpro's.
1926 (tty_color_name): Return Lisp strings for unspecified fore- and
1928 (Finternal_set_lisp_face_attribute): Remove the special treatment
1929 for Qunspecified_{f,b}g.
1930 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
1933 2000-01-03 Gerd Moellmann <gerd@gnu.org>
1935 * xdisp.c (reseat_at_next_visible_line_start): Position before
1936 newline only if ending up on a newline.
1937 (next_element_from_ellipsis): Return success. Handle case of
1938 displaying no ellipsis. Fix case of ellipsis defined in display
1940 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
1943 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1945 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
1946 (Fcolor_supported_p): Renamed from face-color-supported-p.
1948 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1950 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
1951 list of colors renamed to tty-defined-color-alist.
1952 (tty_color_name): Pass the frame to tty-color-by-index.
1953 (realize_tty_face): tty-color-alist is now a function which
1954 accepts the frame as argument.
1956 * term.c (Ftty_display_color_p): Accept an optional argument
1959 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1961 * term.c (insert_glyphs): Pass glyph, not &glyph, to
1962 encode_terminal_code.
1964 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1966 * dispnew.c (mode_line_string): Support termcap frames as well.
1968 2000-01-01 Gerd Moellmann <gerd@gnu.org>
1970 * syntax.c (Fforward_word): Undo previous change.
1972 * editfns.c (Fconstrain_to_field): Don't constrain if
1973 inhibit-field-text-motion is non-nil.
1974 (Fline_beginning_position): Undo previous change.
1975 (Fline_end_position): Ditto.
1977 * syntax.c (Fforward_word): Notice field boundaries only if
1978 inhibit-field-text-motion is nil.
1980 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
1982 * editfns.c (Vinhibit_field_text_motion): New variable.
1983 (inhibit-field-text-motion): New DEFVAR_LISP.
1984 (Fline_beginning_position, Fline_end_position): Notice field
1985 boundaries only if inhibit-field-text-motion is nil.
1987 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
1989 (x_build_heuristic_mask): Likewise.
1990 (xbm_load_image_from_file): Change error output.
1991 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
1992 (gif_load, gs_load, x_kill_gs_process): Ditto.
1994 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
1995 color indices when accessing raster pixels.
1996 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
1997 one of :file or :data.
1998 (enum pbm_keyword_index): Add PBM_DATA.
1999 (pbm_format): Add :data.
2000 (pbm_image_p): Allow either :file or :data.
2001 (pbm_read_file): New function.
2002 (pbm_scan_number): Rewritten to read from string.
2003 (pbm_load): Support :data.
2005 1999-12-31 Gerd Moellmann <gerd@gnu.org>
2007 * xfns.c: New image functions adapted to Emacs conventions.
2008 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
2011 1999-12-31 William M. Perry <wmperry@aventail.com>
2013 * xfns.c (jpeg_format): Added the :data keyword
2014 (jpeg_image_p): JPEG is valid with :file _or_ :data
2015 (jpeg_memory_src): Defined new JPEG image source to read from a
2017 (jpeg_load): Pay attention to the :data keyword if specified.
2018 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
2020 (png_format): Added the :data keyword
2021 (png_image_p): PNG is valid with :file _or_ :data
2022 (png_read_from_memory): New PNG read function to read from a
2024 (png_load): Pay attention to the :data keyword if specified. Uses
2025 png_set_read_fn() instead of png_init_io() if specified.
2026 (tiff_format): Added the :data keyword for TIFF images.
2027 (tiff_image_p): TIFF is valid with :file _or_ :data
2028 (tiff_read_from_memory): Defined new TIFF I/O functions to read
2029 from a memory buffer.
2030 (tiff_load): Pay attention to the :data keyword if specified.
2031 Uses TIFFClientOpen() instead of TIFFOpen() if specified.
2032 (gif_format): Added the :data keyword
2033 (gif_image_p): GIF is valid with :file _or_ :data
2034 (gif_read_from_memory): New GIF input function to read from a
2036 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
2037 instead of DGifOpenFileName() if specified.
2039 1999-12-31 Gerd Moellmann <gerd@gnu.org>
2041 * xdisp.c (next_element_from_buffer): Change assertion at the end
2042 because it doesn't hold when there's an overlay string at the end
2043 from which we deliver an image.
2045 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
2047 * msdos.c (IT_update_begin): Don't dereference members of struct
2048 window for deleted windows.
2050 1999-12-30 Gerd Moellmann <gerd@gnu.org>
2052 * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only
2053 a hook, and the hook has a non-nil `no-self-insert' property, let
2054 the return value of the hook specify whether an expansion took
2055 place. If it returns nil, no expansion has been performed.
2057 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
2060 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
2062 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
2064 1999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
2066 * dispnew.c (mode_line_string): Support MS-DOS frames.
2068 1999-12-29 Gerd Moellmann <gerd@gnu.org>
2070 * eval.c (syms_of_eval): Initialize debugger_may_continue.
2072 1999-12-29 Kenichi Handa <handa@etl.go.jp>
2074 * process.c (read_process_output): Fix the args CHARPOS and LENINS
2075 to signal_after_change.
2077 1999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
2079 * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame
2080 dimensions changed, invalidate the mouse highlight info.
2081 (disable_mouse_highlight, help_echo, previous_help_echo): New
2083 (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face)
2084 (fast_find_position, IT_note_mode_line_highlight)
2085 (IT_note_mouse_highlight): New functions.
2086 (IT_update_begin): If the redisplay affects the window where the
2087 mouse highlight is, clear the highlight. If the frame where the
2088 highlight was displayed was killed, invalidate the highlight
2090 (IT_update_end): Reset the highlight flag. Reset the mouse
2091 highlight-defer flag.
2092 (IT_frame_up_to_date): New function, if mouse highlight was
2093 deferred due to GC, do it now.
2094 (internal_terminal_init): Initialize mouse-highlight related
2095 members of the_only_x_display. Assign IT_frame_up_to_date to
2096 frame_up_to_date_hook.
2097 (dos_rawgetc): If the mouse moved, update mouse highlight. If
2098 help_echo changed value, generate a HELP_EVENT event.
2099 (syms_of_msdos): Staticpro help_echo and previous_help_echo.
2101 * msdos.h (struct display_info): New.
2102 (struct x_output): Add the display_info member.
2103 (FRAME_X_DISPLAY_INFO): New macro.
2105 1999-12-28 Gerd Moellmann <gerd@gnu.org>
2107 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
2109 (dump_glyph_row): Adapt to changes in struct glyph.
2111 * buffer.c (modify_overlay): Always compute unchanged info.
2113 1999-12-27 Kenichi Handa <handa@etl.go.jp>
2115 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
2117 1999-12-27 Kenichi Handa <handa@etl.go.jp>
2119 The following changes are to use more bits for face IDs.
2121 * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the
2122 lowest 8 bits are single byte character code, the bits above are
2124 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
2126 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
2127 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
2129 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
2132 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
2135 * dispextern.h (struct glyph): Make face_id and padding_p the top
2136 level members. Change members in union `u'.
2137 (GLYPH_EQUAL_P): Check also members face_id and padding_p.
2138 (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro.
2139 (SET_CHAR_GLYPH): Adjusted for the change of struct glyph.
2140 (CHAR_GLYPH_PADDING_P): Likewise.
2141 (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte
2144 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
2145 for the change of struct glyph.
2146 (line_draw_cost): Adjusted for the change of
2147 GLYPH_FROM_CHAR_GLYPH.
2148 (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P.
2150 * term.c (encode_terminal_code): Adjusted for the change of struct
2151 glyph and GLYPH_FROM_CHAR_GLYPH.
2152 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
2153 change of struct glyph.
2155 * xdisp.c: All codes adjusted for the change of struct glyph.
2157 * xterm.c: All codes adjusted for the change of struct glyph.
2159 1999-12-27 Kenichi Handa <handa@etl.go.jp>
2161 * composite.h (struct composition): Change the order of declaring
2162 members to reduce the byte size of the structure.
2164 1999-12-25 Gerd Moellmann <gerd@gnu.org>
2166 * search.c (looking_at_1): Reset immediate_quit before modifying
2169 1999-12-24 Kenichi Handa <handa@etl.go.jp>
2171 * process.c (read_process_output): Fix the arg FROM to
2172 update_compositions.
2174 1999-12-22 Richard M. Stallman <rms@gnu.org>
2176 * search.c (Freplace_match): For nonliteral replacement in buffer,
2177 construct all the new text first, then insert all at once.
2179 1999-12-22 Dave Love <fx@gnu.org>
2181 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
2183 1999-12-22 Gerd Moellmann <gerd@gnu.org>
2185 * xfns.c (Fx_create_frame): Move x_default_parameter calls that
2186 lead to size changes to after the X window has been created.
2188 * xfaces.c (realize_x_face): Don't use uninitialized local
2189 variable in xassert.
2191 1999-12-22 Kenichi Handa <handa@etl.go.jp>
2193 * xfaces.c (face_color_supported_p): Check by tty_defined_color
2194 only when the frame is not for a window system.
2196 1999-12-22 Gerd Moellmann <gerd@gnu.org>
2198 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
2199 redisplay after changing the multibyteness of a buffer.
2201 * xterm.c (XTread_socket): At the beginning of the loop, pass the
2202 frame's X window to XFilterEvent instead of None because that's
2203 the X window for which the IC was created. This makes dead
2204 accents work when the pointer is not in Emacs' frame.
2205 (XTread_socket) <KeyPress>: Don't call XFilterEvent here.
2207 1999-12-20 Dave Love <fx@gnu.org>
2209 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
2211 1999-12-19 Gerd Moellmann <gerd@gnu.org>
2213 * eval.c (debugger_may_continue): New variable.
2214 (syms_of_eval): Add a DEFVAR_BOOL for it.
2215 (call_debugger): Bind it.
2217 1999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2219 * msdos.c (IT_set_face): Don't swap face colors when highlight or
2220 fp->tty_reverse_p is set, unless the computed colors are identical
2221 to frame colors. Print both original and computed colors to
2223 (IT_write_glyphs): Track the changes in handling of composite
2225 (IT_set_frame_parameters): Don't set frame colors from
2226 unspecified-fg and unspecified-bg pseudo-colors.
2228 1999-12-17 Dave Love <fx@gnu.org>
2230 * data.c (Fkeywordp): New function.
2231 (syms_of_data): Install it.
2233 1999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2235 * xfaces.c (tty_defined_color): Fix last change.
2237 1999-12-15 Gerd Moellmann <gerd@gnu.org>
2239 * xdisp.c (redisplay_window) <optional new window start>: Check
2240 that window start is in [BEGV..ZV].
2242 1999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
2244 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
2245 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
2247 * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
2248 (syms_of_xfaces): Initialize and staticpro them.
2249 (tty_defined_color): If the color name is unspecified-fg or
2250 unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
2251 FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
2252 (tty_color_name): If the color pixel value is either
2253 FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
2254 Qunspecified_fg or Qunspecified_bg, respectively.
2255 (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
2256 and Qunspecified_bg for foreground and background colors.
2257 (realize_default_face): If the foreground and background colors
2258 are not specified, default to Qunspecified_fg and Qunspecified_bg.
2259 (realize_tty_face): By default, set the face colors to
2260 FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
2261 [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
2262 FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
2263 Reverse the colors if the default colors were reversed.
2265 * dispnew.c (init_display): Initialize the frame pixels of the
2266 initial frame to FACE_TTY_DEFAULT_FG_COLOR and
2267 FACE_TTY_DEFAULT_BG_COLOR.
2269 * term.c (turn_on_face): If the default fore- and background
2270 colors are reversed, enter inverse video mode. Don't send color
2271 escape sequences for unspecified foreground and background colors.
2272 (turn_off_face): Handle unspecified-fg and unspecified-bg colors.
2274 * dosfns.c (unspecified_colors): New variable.
2275 (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
2276 color names, return FACE_TTY_DEFAULT_FG_COLOR and
2277 FACE_TTY_DEFAULT_BG_COLOR, respectively.
2278 (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
2279 FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
2280 Qunspecified_bg, respectively.
2282 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
2283 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
2285 1999-12-15 Kenichi Handa <handa@etl.go.jp>
2287 * coding.c (code_convert_region): Fix the secoding arg to
2288 update_compositions.
2290 1999-12-15 Kenichi Handa <handa@etl.go.jp>
2292 The following changes are for the new composition mechanism. We
2293 have deleted `composition' charset and composite characters,
2294 instead introduced a special text property `composition'.
2296 * Makefile.in (INTERVAL_SRC): Include composite.h.
2297 (INTERVAL_OBJ): Include composite.o.
2298 (SOME_MACHINE_OBJECTS): Include composite.o.
2299 (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o)
2300 (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o):
2301 Depend on composite.h.
2302 (doc.o): Depend on charset.h.
2303 (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC.
2304 (composite.o): New target.
2306 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
2308 * callproc.c (Fcall_process): Call code_convert_string to encode
2309 arguments. Use CODING_REQUIRE_DECODING to check if the process
2310 output should be decoded.
2312 * casefiddle.c: Include composite.h.
2313 (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a
2314 multibyte character. Adjusted for the change of CHAR_STRING.
2315 (casify_region): Likewise. Call update_compositions.
2317 * category.h (CATEGORY_SET): Delete codes for a composite
2320 * category.c (word_boundary_p): Delete codes for a composite
2322 (Fmake_category_table): New function.
2323 (syms_of_category): Defsubr it.
2325 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
2326 (ccl_driver): Delete codes for a composite character.
2328 * charset.h: In this entry, just `Modified' means that codes for a
2329 composite character is deleted.
2330 (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION)
2331 (charset_composition) (MIN_CHAR_COMPOSITION)
2332 (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR)
2333 (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID)
2334 (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted.
2335 (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT)
2336 (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR)
2337 (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P):
2339 (SPLIT_STRING): Call split_string, not split_non_ascii_string.
2340 (CHAR_STRING): Delete WORKBUF argument. Call char_string, not
2341 non_ascii_char_to_string.
2342 (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char.
2343 (STRING_CHAR_AND_LENGTH): Likewise.
2344 (FETCH_CHAR_ADVANCE): New macro.
2345 (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted.
2346 (MAX_MULTIBYTE_LENGTH): New macro.
2347 (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted.
2348 (find_charset_in_str): Argument adjusted.
2349 (CHAR_LEN): Modified.
2351 * charset.c: In this entry, just `Modified' means that codes for a
2352 composite character is deleted.
2353 (Qcomposition) (leading_code_composition)
2354 (charset_composition) (min_composite_char) (cmpchar_table)
2355 (cmpchar_table_size) (n_cmpchars): Deleted.
2356 (SPLIT_COMPOSITE_SEQ): Deleted.
2357 (SPLIT_MULTIBYTE_SEQ): Modified.
2358 (char_to_string): Renamed from non_ascii_char_to_string.
2360 (string_to_char): Renamed from string_to_non_ascii_char.
2361 (split_string): Renamed from split_non_ascii_string.
2362 (char_printable_p) (Fsplit_char)
2363 (Ffind_charset_region) (Ffind_charset_string) (char_valid_p)
2364 (char_bytes) (Fchar_width) (strwidth): Modified.
2365 (find_charset_in_str): Argument CMPCHARP deleted. Modified.
2366 (Fstring): Adjusted for the change of CHAR_STRING. Modified.
2367 (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table)
2368 (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID)
2369 (str_cmpchar_id) (cmpchar_component) (Fcmpcharp)
2370 (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p)
2371 (Fcmpchar_cmp_count): Deleted.
2372 (Fcompose_string): Implemented by Emacs Lisp in composite.el.
2373 (init_charset_once): Modified.
2374 (syms_of_charset): Modified.
2376 * cmds.c (internal_self_insert): Adjusted for the change of
2379 * coding.h (emacs_code_class_type): Delete the member
2380 EMACS_leading_code_composition.
2381 (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD)
2382 (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL)
2383 (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P)
2384 (COMPOSING_WITH_RULE_P): Macros deleted.
2385 (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New
2387 (struct composition_data): New structure.
2388 (CODING_FINISH_INSUFFICIENT_CMP): New macro.
2389 (struct coding_system): New members composition_rule_follows,
2390 cmp_data, cmp_data_start, cmp_data_index.
2391 (coding_save_composition) (coding_free_composition_data)
2392 (coding_adjust_composition_offset): Extern them.
2394 * coding.c: Include composite.h.
2395 (DECODE_CHARACTER_ASCII): Don't handle composition here.
2396 (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity
2397 of multibyte code here.
2398 (DECODE_CHARACTER_DIMENSION2): Likewise.
2399 (detect_coding_emacs_mule): Change the case label from
2400 EMACS_leading_code_composition to 0x80.
2401 (detect_coding_iso2022): Handle new composition sequence.
2402 (DECODE_ISO_CHARACTER): Likewise.
2403 (check_composing_code): Deleted.
2404 (coding_allocate_composition_data): New function.
2405 (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END)
2406 (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START)
2407 (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros.
2408 (decode_coding_iso2022): Handle new composition sequence.
2409 (ENCODE_ISO_CHARACTER): Don't check composition here.
2410 (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros.
2411 (ENCODE_COMPOSITION_NO_RULE_START)
2412 (ENCODE_COMPOSITION_WITH_RULE_START): Deleted.
2413 (ENCODE_COMPOSITION_END): Handle new composition sequence.
2414 (ENCODE_COMPOSITION_FAKE_START): New macro.
2415 (encode_coding_iso2022): Handle new composition sequence.
2416 (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail.
2417 (encode_coding_sjis_big5): Ignore composition.
2418 (setup_coding_system): Initialize new members of struct
2419 coding_system. Enable composition only when the coding system has
2420 `composition' property t.
2421 (coding_free_composition_data) (coding_adjust_composition_offset)
2422 (coding_save_composition) (coding_restore_composition): New
2424 (code_convert_region): Call coding_save_composition for encoding
2425 and coding_allocate_composition_data for decoding. Don't skip
2426 ASCII characters if we handle composition on encoding. Call
2427 signal_after_change with Check_BORDER.
2428 (code_convert_string): Call coding_save_composition for encoding
2429 and coding_allocate_composition_data for decoding. Don't skip
2430 ASCII characters if we handle composition on encoding.
2431 (code_convert_string1): Set Vlast_coding_system_used after calling
2432 code_convert_string.
2433 (code_convert_string_norecord): Disable composition.
2434 (Fset_terminal_coding_system_internal): Likewise.
2435 (Fset_safe_terminal_coding_system_internal): Likewise.
2436 (Fset_keyboard_coding_system_internal): Likewise.
2437 (init_coding_once): Set emacs_code_class[0x80] to
2440 * composite.h: New file.
2442 * composite.c: New file.
2444 * data.c (Faref): Delete codes for a composite character..
2445 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
2447 * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH.
2448 (struct glyph): Add new sub-structure cmp to the union `u'.
2449 (enum display_element_type): New member IT_COMPOSITION.
2450 (enum prop_idx): New member COMPOSITION_PROP_IDX.
2451 (struct it): New members cmp_id, cmp_len.
2453 * dispnew.c (direct_output_forward_char): Check point moving into
2454 or out of a composition. If so, give up direct method.
2456 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
2458 * editfns.c (Fchar_to_string): Adjusted for the change of
2460 (general_insert_function): Likewise.
2461 (Finsert_char): Likewise.
2462 (Fsubst_char_in_region): Likewise. Call update_compositions.
2463 (Ftranslate_region): Call update_compositions.
2464 (Ftranspose_regions): Call update_compositions.
2466 * emacs.c (main): Call syms_of_composite.
2468 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
2470 (Finsert_file_contents): Set Vlast_coding_system_used before
2471 calling signal_after_change. Call update_compositions if some
2472 texts are inserted..
2473 (Fwrite_region): Adjusted for the change of a_write and e_write.
2474 (a_write): Argument changed. Work based on character position,
2476 (e_write): Argument changed. Handle new way of composition.
2478 * fns.c (Flength): The length of char-table is MAX_CHAR.
2479 (concat): Adjusted for the change of CHAR_STRING.
2480 (Ffillarray): Adjusted for the change of CHAR_STRING.
2481 (Fset_char_table_default): Delete codes for a composite character.
2482 (hash_put): Return hash index.
2484 * fontset.h (struct font_info): New member vertical_centering.
2485 (Vvertical_centering_font_regexp): Extern it.
2487 * fontset.c (Vvertical_centering_font_regexp): New variable.
2488 (syms_of_fontset): Declare it as a Lisp variable and initialize.
2489 Set Vignore_relative_composition to nil.
2490 (fs_load_font): Initialize `vertical_centering' of struct
2493 * indent.c (check_composition): New function.
2494 (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with
2495 MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM.
2496 (current_column_1): Handle new way of composition.
2497 (Fmove_to_column): Likewise.
2498 (compute_motion): Likewise.
2500 * insdel.c (copy_text): Adjusted for the change of CHAR_STRING.
2501 (insert_char): Likewise.
2502 (insert): Call update_compositions.
2503 (insert_and_inherit): Likewise.
2504 (insert_before_markers): Likewise.
2505 (insert_before_markers_and_inherit): Likewise.
2506 (insert_from_string): Likewise.
2507 (insert_from_string_before_markers): Likewise.
2508 (insert_from_buffer): Likewise.
2509 (replace_range): Likewise.
2510 (count_combining_composition): Deleted.
2511 (count_combining_before): Delete codes for a composite character.
2512 (count_combining_after): Likewise.
2513 (del_range_1): Call update_compositions.
2514 (del_range_byte): Likewise.
2515 (del_range_both): Likewise.
2516 (Fcombine_after_change_execute): Likewise.
2518 * intervals.h: Include composite.h.
2519 (get_property_and_range): Extern it.
2520 (Vtext_property_default_nonsticky): Extern it.
2522 * intervals.c (adjust_intervals_for_insertion): To check stickines
2523 of properties, pay attention to text-property-default-nonsticky.
2524 (merge_properties_sticky): Likewise.
2525 (get_property_and_range): New function.
2527 * keyboard.c (Vdisable_point_adjustment): New variable.
2528 (Vglobal_disable_point_adjustment): New variable.
2529 (syms_of_keyboard): Declare them as Lisp variables.
2530 (command_loop_1): Check them and call adjust_point_for_property if
2532 (adjust_point_for_property): New function.
2534 * keymap.c (push_key_description): Adjusted for the change of
2536 (Ftext_char_description): Likewise.
2538 * lisp.h (QCtest, QCweakness, Qequal): Extern them.
2539 (hash_put): Adjusted for the change of the definition.
2540 (signal_after_change): Likewise.
2541 (check_point_in_composition): Extern it.
2543 * lread.c (readchar): Adjusted for the change of CHAR_STRING.
2544 Delete a code that handles an invalid too-long multibyte sequence
2545 because we are now sure that we never encounter with such a
2547 (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not
2548 MAX_LENGTH_OF_MULTI_BYTE_FORM.
2549 (init_obarray): Likewise.
2550 (read1): Likewise. Adjusted for the change of CHAR_STRING.
2552 * print.c (printchar): Adjusted for the change of CHAR_STRING.
2554 * process.c: Include composite.h.
2555 (read_process_output): Call update_compositions.
2557 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
2559 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
2561 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
2564 * term.c (encode_terminal_code): Delete codes for a composite
2565 character. Adjusted for the change of CHAR_STRING.
2566 (produce_glyphs): When called, it->what can be IT_COMPOSITION.
2567 Delete codes for a composite character.
2569 * textprop.c (Vtext_property_default_nonsticky): New variable
2570 (syms_of_textprop): Declare it as a Lisp variable.
2572 * window.c (Frecenter): Clear all caches of compositions.
2574 * xdisp.c (it_props): Add an entry for composition.
2575 (face_before_or_after_it_pos): For composition, check face of a
2576 character after the composition.
2577 (handle_composition_prop): New function.
2578 (get_next_display_element): Adjusted for the change of
2580 (set_iterator_to_next): Handle the case that it->method ==
2581 next_element_from_composition.
2582 (next_element_from_composition): New function.
2583 (message_dolog): Adjusted for the change of CHAR_STRING.
2584 (set_message_1): Likewise.
2585 (check_point_in_composition): New function.
2586 (reconsider_clip_changes): If point moved into or out of
2587 composition, set b->clip_changed to 1 to force updating of the
2589 (disp_char_vector): Delete codes for a composite character.
2590 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
2592 * xfaces.c (choose_face_fontset_font): Delete codes for a
2593 composite character.
2594 (realize_x_face): Likewise. Change a place to set local variable
2595 `f' to avoid a bug of GCC 2.8.1 on Solaris.
2597 * xfns.c: Include intervals.h.
2598 (syms_of_xfns): Make `display' property nonsticky by default.
2600 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
2601 for find_charset_in_str.
2603 * xterm.h (struct x_output): Change member font_baseline to
2606 * xterm.c (x_append_glyph): Setup members of struct glyph properly
2608 (x_append_composite_glyph): New function.
2609 (VCENTER_BASELINE_OFFSET): New macro.
2610 (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members
2611 of struct it for the composition. Cache pixel offsets in the
2612 struct composition. Delete codes for a composite character.
2613 Handle Vignore_relative_composition in composition code.
2614 (struct glyph_string): Delete member cmpcharp, add new member cmp.
2615 (x_set_cursor_gc): Check s->cmp, not s->cmpcharp.
2616 (x_compute_glyph_string_overhangs): Likewise.
2617 (x_get_glyph_overhangs): Delete codes for a composite character.
2618 (x_right_overwritten): Check s->cmp, not s->cmpcharp.
2619 (x_draw_glyph_string_background): Likewise. Delete codes for
2620 checking s->gidx for a composition.
2621 (x_draw_glyph_string_foreground): Delete code for a composite
2623 (x_draw_composite_glyph_string_foreground): New function.
2624 (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp.
2625 (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH.
2626 (struct work): Deleted.
2627 (x_fill_composite_glyph_string): Argument changed. Mostly
2629 (x_fill_glyph_string): Don't check CHARSET_COMPOSITION.
2630 (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here.
2631 (BUILD_COMPOSITE_GLYPH_STRING): New macro.
2632 (BUILD_GLYPH_STRINGS): For composition, call
2633 BUILD_COMPOSITE_GLYPH_STRING.
2634 (x_new_font): Initialize f->output_data.x->baseline_offset, not
2635 f->output_data.x->font_baseline.
2637 1999-12-14 Gerd Moellmann <gerd@gnu.org>
2639 * xterm.c (show_mouse_face): Don't use updated_area, use
2642 1999-12-12 Richard M. Stallman <rms@gnu.org>
2644 * minibuf.c (Fall_completions): Doc fix.
2646 1999-12-12 Richard M. Stallman <rms@gnu.org>
2648 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
2649 has been changed by the Lisp code.
2651 1999-12-12 Gerd Moellmann <gerd@gnu.org>
2653 * xfns.c: Indentation fixes.
2655 1999-12-10 Stefan Monnier <monnier@cs.yale.edu>
2657 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
2659 1999-12-10 Gerd Moellmann <gerd@gnu.org>
2661 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
2662 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
2664 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
2667 1999-12-09 Stefan Monnier <monnier@cs.yale.edu>
2669 * keyboard.c (Qratio): New symbol.
2670 (scroll_bar_parts): Add `Qratio' to it.
2671 (syms_of_keyboard): Init `Qratio'.
2672 * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'.
2673 * xterm.c (#includes): Allow compilation with only Xaw.
2674 (xaw3d_arrow_scroll, xaw3d_pick_top): New variables.
2675 (xt_action_hook): Replace XAW3D by XAW.
2676 (xaw3d_jump_callback): Renamed to xaw_jump_callback.
2677 (xaw_jump_callback): Renamed from xaw3d_jump_callback.
2678 Determine epsilon dynamically and don't try to be too clever.
2679 (xaw3d_scroll_callback): Renamed to xaw_scroll_callback.
2680 (xaw_scroll_callback): Renamed from xaw3d_scroll_callback.
2681 Handle both Xaw3d with arrow-scrollbars and with Xaw-style
2682 scrollbar (using `ratio').
2683 (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d
2684 scrollbar we have so as to set it up more optimally and to fix
2685 xaw3d_arrow_scroll and xaw3d_pick_top.
2686 (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the
2687 bottom of the Xaw3d scrollbar, to work around its tendency to refuse
2688 shrinking the thumb. Also make sure that `XawScrollbarSetThumb'
2689 is not ignored, using a major gross hack.
2690 (x_initialize): Init default values for xaw3d_arrow_scroll and
2693 1999-12-09 Dave Love <fx@gnu.org>
2695 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
2697 1999-12-08 Gerd Moellmann <gerd@gnu.org>
2699 * eval.c: Remove conditional compilation on `standalone'.
2700 (call_debugger): When entering the debugger while redisplaying,
2701 reset redisplaying_p, and go back to the top-level if the debugger
2704 1999-12-07 Gerd Moellmann <gerd@gnu.org>
2706 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
2707 basic faces are realized before trying to use face `menu'.
2709 * window.c (delete_window): Block input for the time window
2710 matrices are being changed.
2712 1999-12-07 Dave Love <fx@gnu.org>
2714 * lread.c (Fintern_soft): Fix newlines in doc string.
2716 1999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
2718 * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed
2719 duplicate definition of ElfW.
2720 (find_section): Copied from unexsgi.c.
2721 (unexec): Use find_section. Adjust whitespace. Initialize
2722 new_data2_offset based on old_data, not sbss (this fixes a bug on
2723 IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific.
2724 Adjust test for presence of .mdebug section to the new return
2725 value of find_section.
2727 1999-12-07 Gerd Moellmann <gerd@gnu.org>
2729 * unexelf.c: Merge changes from 20.5.
2730 (unexec): Handle .lit4 and .lit8 unconditionally.
2732 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
2735 * m/iris5d.h (UNEXEC): Likewise.
2737 1999-12-06 Stefan Monnier <monnier@cs.yale.edu>
2739 * editfns.c (Fdelete_and_extract_region): New function.
2740 (syms_of_editfns): Register it.
2741 * insdel.c (del_range): Update del_range_1 call.
2742 (del_range_1, del_range_2): Add a ret_string argument to
2743 request that the deleted text be returned.
2744 (del_range_byte, del_range_both): Update del_range_2 call.
2745 * lisp.h (del_range_1, del_range_2): Change prototype
2746 * casefiddle.c (casify_region): Update del_range_1 call.
2747 * coding.c (code_convert_region): Update del_range_2 call.
2748 * fileio.c (Finsert_file_contents): Update del_range_2 call.
2750 1999-12-06 Gerd Moellmann <gerd@gnu.org>
2752 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
2754 1999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
2756 * lread.c (Fintern_soft): Accept a symbol argument.
2758 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2760 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
2762 * insdel.c (adjust_markers_for_delete): Fix last change.
2764 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2766 Changes for automatic remapping of X colors on terminal frames:
2768 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
2770 (Vface_tty_color_alist): Remove.
2771 (tty_defined_color): New function.
2772 (defined_color): Rewrite to support any type of frame.
2773 (tty_color_name): New function.
2774 (face_color_supported_p, Fface_color_gray_p,
2775 Fface_color_supported_p): Support non-X frames.
2776 (load_color): Enclose the color name in quotes, in the log
2777 messages. Remove DOS-specific version of load_color.
2778 (realize_tty_face): Take the supported colors from
2779 tty-color-alist. Support translation of X colors to the closest
2780 tty color, for both MSDOS and tty frames.
2781 [MSDOS]: Don't invert face colors if they were taken from the
2783 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
2785 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
2786 Define a mostly empty surrogate.
2787 (tty_display): Declare.
2789 * frame.c (make_terminal_frame) [!macintosh]: Don't use
2791 (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P
2792 frames when the frame's param_alist includes 'reverse.
2793 (tty_display): Define.
2794 (make_terminal_frame) [!MSDOS]: Assign &tty_display to the
2795 output_data.x member.
2796 (Fframe_parameters): Return foreground and background color names
2797 on tty frames as well, in addition to MSDOS frames.
2799 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
2801 (struct x_output): Remove unused members; document who uses each
2803 (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE,
2804 FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES,
2805 FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES,
2806 FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove
2807 unused macro definintions.
2809 * msdos.c (IT_set_frame_parameters): Don't call
2810 recompute_basic_faces, the next redisplay will, anyway.
2811 (x_current_display): Remove unused variable.
2812 Many functions: changes for Lisp_object selected_frame.
2813 (IT_set_face): If the tty_reverse_p flag is set for the face,
2814 reverse the foreground and background colors.
2815 (Fmsdos_remember_default_colors): New function.
2816 (syms_of_msdos): Defsubr it.
2817 (IT_set_frame_parameters): Use initial_screen_colors[] when
2818 creating a new frame. If the frame parameters include 'reverse,
2819 swap the foreground and background colors.
2820 (internal_terminal_init): Initialize initial_screen_colors to -1.
2821 (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up
2824 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
2826 * xfns.c (x_defined_color): Rename from defined_color. All
2828 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
2829 all callers changed.
2830 (Fxw_color_values): Renamed from Fx_color_values; all callers
2832 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
2834 (x_window_to_frame, x_any_window_to_frame,
2835 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
2836 x_top_window_to_frame): Use !FRAME_X_P instead of
2837 f->output_data.nothing.
2838 * xterm.h (x_defined_color): Rename from defined_color.
2840 * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of
2841 f->output_data.nothing.
2842 (Fxw_color_defined_p): Renamed from Fx_color_defined_p;
2843 all callers changed.
2844 (Fxw_color_values): Renamed from Fx_color_values; all callers
2846 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
2849 * dispextern.h (tty_color_name): Add prototype.
2851 * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of
2852 f->output_data.nothing.
2853 * w32menu.c (menubar_id_to_frame): Likewise.
2854 * w32term.h (w32_output): Declare.
2856 * dosfns.c (Qmsdos_color_translate): Remove.
2857 (msdos_stdcolor_name): Now returns a Lisp_Object.
2858 * dosfns.h (Qmsdos_color_translate): Remove.
2860 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
2862 1999-12-06 Kenichi Handa <handa@etl.go.jp>
2864 * fileio.c (decide_coding_unwind): Renamed from
2865 set_auto_coding_unwind.
2866 (Finsert_file_contents): Make single unwind protect to call both
2867 Vset_auto_coding_function and Ffind_operation_coding_system.
2869 * insdel.c (adjust_markers_for_delete): Make it non-static.
2871 1999-12-04 Stefan Monnier <monnier@cs.yale.edu>
2873 * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy
2874 operators and handle them properly.
2875 * regex.h (RE_ALL_GREEDY): New option.
2876 (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic
2877 sorting would put it.
2878 (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP)
2879 (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior.
2881 1999-12-04 Dave Love <d.love@dl.ac.uk>
2883 * m/arm.h: New file.
2885 1999-12-03 Dave Love <fx@gnu.org>
2887 * editfns.c (Fmessage_or_box): Use use_dialog_box.
2889 1999-12-02 Gerd Moellmann <gerd@gnu.org>
2891 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
2892 for building with Motif.
2894 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
2897 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
2899 1999-12-01 Dave Love <fx@gnu.org>
2901 * emacs.c (main): Set LANG=C iff AX3_2 defined.
2903 1999-11-28 Gerd Moellmann <gerd@gnu.org>
2905 * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE)
2906 (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New
2909 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
2911 1999-11-28 eliz <eliz@dlpx1>
2913 * emacs.c (synchronize_locale): Avoid compiler warnings about
2914 pointer type mismatch.
2916 1999-11-28 Gerd Moellmann <gerd@gnu.org>
2918 * window.c (Fwindow_end): Don't call temp_set_pt_both with
2919 out of range position.
2921 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
2922 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
2924 1999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
2926 * charset.c (Fmake_char_internal): Print the charset ID when
2927 signalling an error.
2929 * emacs.c (synchronize_locale): Avoid compiler warnings about
2930 pointer type mismatch.
2932 1999-11-26 Richard M. Stallman <rms@gnu.org>
2934 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
2936 1999-11-26 Gerd Moellmann <gerd@gnu.org>
2938 * puresize.h (BASE_PURESIZE): Increase to 550000.
2940 * textprop.c (set_text_properties): New function. Like
2941 Fset_text_properties, but with additional parameter
2942 SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after
2944 (Fset_text_properties): Use it.
2946 * insdel.c (insert_1_both): Call set_text_properties with last
2947 parameter nil so that no after changes will be signaled.
2949 * lisp.h: Add prototype for set_text_properties.
2951 * xfaces.c (set_lface_from_font_name): Fix previous change.
2952 (recompute_basic_faces): Change assert to abort.
2954 1999-11-25 Dave Love <fx@gnu.org>
2956 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
2957 (Fmember, Fdelq, Fdelete): Inline car.
2958 (Fy_or_n_p): Doc fix.
2960 1999-11-25 Gerd Moellmann <gerd@gnu.org>
2962 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
2963 Callers changed. If specified font name is bogus, and may_fail_p
2964 is not set, try to use a reasonable default.
2966 * dispnew.c (direct_output_for_insert): Set glyph row's
2967 displays_text_p flag. Correct window's window_end_vpos if
2970 1999-11-25 Paul Eggert <eggert@twinsun.com>
2972 * emacs.c (fixup_locale): Don't bother to record initial locale.
2973 (synchronize_locale): If the desired locale is nil,
2974 treat it as if it were the empty string,
2975 so that we set the locale from the environment.
2977 1999-11-25 Kenichi Handa <handa@etl.go.jp>
2979 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
2980 of the current buffer via Fset.
2982 1999-11-24 Dave Love <fx@gnu.org>
2984 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
2986 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
2988 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
2990 1999-11-24 Gerd Moellmann <gerd@gnu.org>
2992 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
2994 * emacs.c (PVEC_FLAG): New variable.
2996 1999-11-23 Gerd Moellmann <gerd@gnu.org>
2998 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
2999 that fails on IBM PowerPC, AIX 4.2.
3001 1999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
3003 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
3004 string of mode-line-format. Remove the obsolete %t.
3006 1999-11-22 Gerd Moellmann <gerd@gnu.org>
3008 * dispnew.c (direct_output_for_insert): Increment glyph positions
3009 for glyphs from buffer text only.
3011 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
3012 (gdb_data_seg_bits): New variables.
3014 * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't
3015 work on systems not allowing enumerators > INT_MAX, and it
3016 won't work if EMACS_INT is long long.
3018 1999-11-22 Paul Eggert <eggert@twinsun.com>
3020 Port to SunOS 4.1.x again. Help out with Alpha port.
3021 Rename messages-locale to system-messages-locale,
3022 and likewise for time-locale.
3024 * callproc.c (strerror): Remove decl.
3025 * fileio.c (strerror): Likewise.
3026 * process.c (strerror): Likewise.
3027 * emacs.c (strerror): Likewise.
3028 (Vsystem_messages_locale): Renamed from Vmessages_locale.
3030 (Vprevious_system_messages_locale): Likewise, from
3031 Vprevious_messages_locale.
3032 (Vsystem_time_locale): Likewise, from Vtime_locale.
3033 (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale.
3034 (ABORT_RETURN_TYPE): New macro.
3035 (abort): Return type is now ABORT_RETURN_TYPE.
3036 (main): Always invoke init_signals, even if POSIX_SIGNALS is not
3038 (syms_of_emacs): messages-locale -> system-messages-locale,
3039 previous-messages-locale -> previous-system-messages-locale,
3040 time-locale -> system-time-locale,
3041 previous-time-locale -> previous-system-time-locale.
3043 * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined.
3044 (const): Do not define; that's config.h's job.
3045 (<limits.h>): Include if HAVE_LIMITS_H is defined.
3046 (CHAR_BIT): Move test for definedness outside of limits.h condition.
3047 (<stddef.h>): Include if STDC_HEADERS is defined.
3048 (FREE_RETURN_TYPE): New macro.
3049 (free): Return type is now FREE_RETURN_TYPE.
3051 * lisp.h (synchronize_system_time_locale): Renamed from
3052 synchronize_time_locale. All uses changed.
3053 (synchronize_system_messages_locale): Likewise, from
3054 synchronize_messages_locale.
3056 * m/alpha.h (malloc, realloc, calloc): Remove decls;
3057 stdlib.h now does this.
3059 * process.c (sys_siglist): Remove.
3061 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
3064 * syntax.c (scan_sexps_forward): Use abort, not assert.
3066 * sysdep.c (my_sys_siglist): New var.
3067 (sys_siglist): New macro. Remove old initialized vars of same name.
3068 (init_signals): Initialize sys_siglist.
3070 * xfns.c (abort): Remove decl; stdlib.h now does this.
3072 1999-11-18 Dave Love <fx@gnu.org>
3074 * filelock.c: Add forward declaration for get_boot_time_1.
3076 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
3078 1999-11-18 Gerd Moellmann <gerd@gnu.org>
3080 * buffer.h (struct buffer_text): Add comment about moving
3081 buffer text if REL_ALLOC is defined.
3083 1999-11-18 Kenichi Handa <handa@etl.go.jp>
3085 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
3087 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
3088 memory for push_key_description.
3090 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
3091 allocate memory for push_key_description.
3092 (describe_buffer_bindings): Likewise.
3094 1999-11-17 Gerd Moellmann <gerd@gnu.org>
3096 * xfns.c (Fx_show_busy_cursor): Doc-fix.
3097 (Fx_hide_busy_cursor): Ditto.
3099 1999-11-17 Marco Walther <walther@siemens-pyramid.com>
3101 * unexsni.c (unexec): Handle .rel.dyn section.
3103 1999-11-16 Dave Love <fx@gnu.org>
3105 * doc.c (Fdocumentation): Remove gcpro here too.
3107 1999-11-16 Gerd Moellmann <gerd@gnu.org>
3109 * keyboard.c (command_loop_1): Remove no_redisplay.
3111 1999-11-16 Richard M. Stallman <rms@gnu.org>
3113 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
3116 1999-11-14 Gerd Moellmann <gerd@gnu.org>
3118 * xdisp.c (ensure_echo_area_buffers): New.
3119 (with_echo_area_buffer): Use it.
3120 (setup_echo_area_for_printing): Ditto.
3122 * buffer.c (indicate-empty-lines): Doc-fix.
3124 1999-11-12 Gerd Moellmann <gerd@gnu.org>
3126 * term.c (term_init): If "op" isn't available, don't support color
3127 because we can't switch back to the default foreground and
3130 * doc.c (Fdocumentation_property): Remove GCPRO because
3131 Fsubstitute_command_keys gcpro's the string.
3133 1999-11-12 Kenichi Handa <handa@etl.go.jp>
3135 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
3137 1999-11-11 Gerd Moellmann <gerd@gnu.org>
3139 * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c,
3140 lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h,
3141 buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES.
3143 1999-11-10 Gerd Moellmann <gerd@gnu.org>
3145 * xfns.c (QCuser_data): Removed.
3146 (syms_of_xfns): Initialization of QCuser_data removed.
3147 (parse_image_spec): Don't handle :user-data specially. Allow
3148 unknown keys. Remove parameter ALLOW_OTHER_KEYS.
3149 (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p)
3150 (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call
3151 parse_image_spec accordingly.
3153 1999-11-09 Richard M. Stallman <rms@gnu.org>
3155 * cmds.c (Fbeginning_of_line): Doc fix.
3156 (Fend_of_line): Doc fix.
3158 * editfns.c (Fline_beginning_position): If N is not 1,
3159 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
3161 * syntax.c (Fforward_word): Handle fields even if would have hit
3162 an edge of the buffer. Return nil if affected by fields.
3164 1999-11-09 Richard M. Stallman <rms@gnu.org>
3166 * editfns.c (preceding_pos): Function deleted.
3167 (text_property_stickiness): Decrement POS directly.
3168 Fix a confusion that used PT instead of POS.
3170 * editfns.c (find_field): Properly handle the case
3171 of a field boundary where `field' inherits from neither side.
3173 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
3174 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
3176 1999-11-08 Gerd Moellmann <gerd@gnu.org>
3178 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
3179 BEFORE_POTENTIAL_GC before DISCARD.
3181 1999-11-07 Gerd Moellmann <gerd@gnu.org>
3183 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
3185 * lisp.h: Add prototype for unmark_byte_stack.
3187 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
3188 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
3191 * xdisp.c (resize_mini_window): Fix computation of needed
3194 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
3195 compilation on USE_TEXT_PROPERTIES.
3197 * Fbyte_code: Use block statements in cases and declare v1 and v2
3198 locally there. Rearrange case statements so that those most
3199 frequently executed come first. Avoid goto's in frequently
3202 1999-11-05 Gerd Moellmann <gerd@gnu.org>
3204 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
3205 AFTER_POTENTIAL_GC around internal_catch.
3207 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
3209 (init_alloc_once, init_alloc): Set byte_stack_list to null.
3211 * eval.c (struct catchtag): Add member byte_stack.
3212 (internal_catch, Fcondition_case, internal_condition_case)
3213 (internal_condition_case_1): Save value of byte_stack_list in
3215 (unwind_to_catch): Restore byte_stack_list from catchtag.
3217 * lisp.h: Add prototypes for new functions in bytecode.c.
3218 Add extern declaration for byte_stack_list.
3220 * bytecode.c (struct byte_stack): New.
3221 (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New
3222 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New.
3223 (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten.
3224 (HANDLE_RELOCATION): Removed.
3225 (Fbyte_code): Use byte_stack structures.
3227 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
3229 * buffer.c (syms_of_buffer): Extend documentation of
3232 1999-11-04 Gerd Moellmann <gerd@gnu.org>
3234 * editfns.c (Fdelete_field): Renamed from Ferase_field.
3236 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
3237 Ferase_field instead of Fdelete_field.
3239 1999-11-03 Gerd Moellmann <gerd@gnu.org>
3241 * dispnew.c (Finternal_show_cursor): Change it to set the
3242 cursor on/off, not toggle its state.
3243 (Finternal_show_cursor_p): New.
3244 (syms_of_display): Defsubr Sinternal_show_cursor_p.
3246 1999-11-03 Dave Love <fx@gnu.org>
3248 * charset.c (split_non_ascii_string): Define return value.
3250 1999-11-03 Gerd Moellmann <gerd@gnu.org>
3252 * minibuf.c (string_to_object): New.
3253 (read_minibuf_noninteractive): New.
3254 (read_minibuf): Call read_minibuf_noninteractive if
3255 noninteractive. Use string_to_object.
3257 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
3259 1999-11-02 Dave Love <fx@gnu.org>
3261 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
3263 * process.c: Define _GNU_SOURCE before config.h to get strsignal
3264 declared with glibc2.
3266 1999-11-02 Gerd Moellmann <gerd@gnu.org>
3268 * lisp.h (QUIT): Give it statement form.
3270 1999-11-02 Dave Love <fx@gnu.org>
3272 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
3274 1999-11-02 Gerd Moellmann <gerd@gnu.org>
3276 * xfns.c (QCuser_data): New.
3277 (syms_of_xfns): Initialize QCuser_data.
3278 (parse_image_spec): Ignore :user-data DATA properties.
3280 * xdisp.c (display_line): Set charpos of first glyph in blank
3281 lines not corresponding to any text to -1, even if no glyphs are
3282 filled in in that line.
3284 1999-11-01 Gerd Moellmann <gerd@gnu.org>
3286 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
3287 png_get_sRGB in #ifdef.
3289 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
3290 (syms_of_display): Use the new name.
3292 * textprop.c (verify_interval_modification): Signal text-read-only
3293 instead of calling error.
3295 * data.c (Qtext_read_only): New built-in error.
3296 (syms_of_data): Initialize it.
3298 * lisp.h: Add extern declaration for Qtext_read_only.
3300 * syntax.c: Remove whitespace after open or in front of closing
3303 1999-11-01 Richard M. Stallman <rms@gnu.org>
3305 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
3307 1999-10-31 Gerd Moellmann <gerd@gnu.org>
3309 * xdisp.c (resize_mini_window): Compute needed height differently.
3311 * fns.c (Flength): Unroll loop over lists.
3313 * xdisp.c (append_space): Return non-zero if space was appended.
3314 (display_line): Set charpos of first glyph to -1 only if that
3315 glyph is the space added by append_glyph.
3317 1999-10-30 Richard M. Stallman <rms@gnu.org>
3319 * print.c (strout): Consider `noninteractive' and use stdout
3320 only when PRINTCHARFUN is t.
3322 * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'.
3323 (gcpro_level): Declare it extern.
3324 [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
3325 Alternate definitions that set `level' and increment `gcpro_level'.
3326 [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level.
3328 * eval.c [DEBUG_GCPRO] (gcpro_level): New variable.
3329 (init_eval) [DEBUG_GCPRO]: Initialize it.
3330 (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level
3331 from remaining gcprolist.
3333 1999-10-29 Kenichi Handa <handa@etl.go.jp>
3335 * coding.c (code_convert_region): Update `dst' correctly.
3337 1999-10-28 Gerd Moellmann <gerd@gnu.org>
3339 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
3340 (Frassoc): Rewritten.
3342 1999-10-27 Noah Friedman <friedman@splode.com>
3344 * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'.
3345 Define PTY_NAME_SPRINTF.
3346 Redefine PTY_TTY_NAME_SPRINTF.
3347 * config.in: Add undef for HAVE_DEV_PTMX.
3349 1999-10-26 Richard M. Stallman <rms@gnu.org>
3351 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
3352 as arg to DEBUG_POP and DEBUG_PRINT.
3354 1999-10-27 Richard M. Stallman <rms@gnu.org>
3356 * data.c (Qad_activate_internal): Renamed from Qad_activate.
3357 (Ffset): Call Qad_activate_internal.
3358 (syms_of_data): Initialize Qad_activate_internal.
3360 1999-10-27 Gerd Moellmann <gerd@gnu.org>
3362 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
3363 Vterminal_frame is selected and Vwindow_system is non-nil.
3365 1999-10-26 Gerd Moellmann <gerd@gnu.org>
3367 * xdisp.c (echo_area_display): Put previous change in #if 0.
3369 * emacs.c (standard_args): Add `file' as synonym for `visit',
3370 `execute' as synonym for `eval'.
3371 (main): Add new options to usage message.
3373 1999-10-25 Gerd Moellmann <gerd@gnu.org>
3375 * data.c (Qhash_table): New.
3376 (Ftype_of): Return it for hash tables.
3377 (syms_of_data): Initialize Qhash_table.
3379 1999-10-25 Richard M. Stallman <rms@gnu.org>
3381 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
3383 1999-10-24 Ken Raeburn <raeburn@gnu.org>
3385 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
3388 * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer,
3389 Fbuffer_local_variables, Fother_buffer, record_buffer,
3390 set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables,
3391 swap_out_buffer_local_variables, overlays_at, overlays_in,
3392 overlay_touches_p, overlay_strings, recenter_overlay_lists,
3393 fix_overlays_in_range, fix_overlays_before, Foverlay_get,
3394 Foverlay_put, report_overlay_modification, evaporate_overlays):
3395 Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member
3397 * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr,
3398 swap_in_symval_forwarding, set_internal, default_value,
3399 Fset_default, Fmake_variable_buffer_local, Fmake_local_variable,
3400 Fmake_variable_frame_local, Flocal_variable_p,
3401 Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long,
3402 Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise.
3403 * dispnew.c (Fframe_or_buffer_changed_p): Likewise.
3404 * emacs.c (main): Likewise.
3405 * fontset.c (fs_load_font, fs_register_fontset,
3406 CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset,
3407 Fnew_fontset, Fset_fontset_font): Likewise.
3408 * frame.c (do_switch_frame, next_frame, prev_frame,
3409 other_visible_frames, Fdelete_frame, Fvisible_frame_list):
3411 * keyboard.c (read_char, help_char_p, event_to_kboard,
3412 kbd_buffer_get_event, timer_start_idle, timer_check,
3413 make_lispy_event, apply_modifiers, reorder_modifiers,
3414 Fevent_convert_list, lucid_event_type_list_p, menu_bar_items,
3415 menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item,
3416 tool_bar_items, read_char_x_menu_prompt, read_key_sequence,
3417 Fcommand_execute, Fexecute_extended_command): Likewise.
3418 * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion,
3419 Fall_completions): Likewise.
3420 * window.c (Fset_window_margins): Likewise.
3422 * callint.c (quotify_args): Don't explicitly use struct
3423 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
3425 * s/netbsd.h (HAVE_GETLOADAVG): Define as 1.
3426 (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions,
3427 if __ELF__ is defined.
3429 1999-10-24 Gerd Moellmann <gerd@gnu.org>
3431 * window.c (Fnext_window): Add a QUIT in the loop.
3433 1999-10-23 Gerd Moellmann <gerd@gnu.org>
3435 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
3438 1999-10-22 Dave Love <fx@gnu.org>
3440 * emacs.c (main): Enable profiling conditional on __linux also.
3442 1999-10-20 Gerd Moellmann <gerd@gnu.org>
3444 * xrdb.c (x_load_resources): Set default resources for resource
3445 classes instead of for the specific Emacs.
3447 1999-10-19 Gerd Moellmann <gerd@gnu.org>
3449 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
3450 defines it that way.
3452 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
3453 if selected_frame is equal to Vterminal_frame.
3455 1999-10-19 Paul Eggert <eggert@twinsun.com>
3457 Add support for large files, 64-bit Solaris, system locale codings.
3459 * Makefile.in (emacs): Set the LC_ALL environment variable to "C"
3460 when dumping, so that the dumped Emacs doesn't have stray locale info.
3461 (dired.o): Depend on systime.h.
3462 (editfns.o): Depend on coding.h.
3464 * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c,
3465 dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c,
3466 keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c,
3467 unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c,
3468 w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c:
3469 Include <config.h> before any system include files.
3471 * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c,
3472 fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c,
3473 m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c,
3475 Do not include <stdlib.h>, as <config.h> does this now.
3477 * callproc.c (Fcall_process):
3478 Synchronize messages locale before invoking strerror.
3479 Decode resulting string with locale-coding-system.
3481 * coding.c (Vlocale_coding_system): New var.
3482 (syms_of_coding): Adjust to above change.
3483 (emacs_strerror): New function.
3485 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
3487 * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING,
3488 HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN,
3489 HAVE_STRSIGNAL): New macros.
3490 (BITS_PER_LONG): Default to 64 if _LP64 is defined.
3491 <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't.
3493 * dired.c: Include "systime.h".
3494 (Ffile_attributes): Do not cast s.st_size to int; this loses
3495 information if int is 32 bits but st_size and EMACS_INT are larger.
3496 Treat large device numbers like large inode numbers.
3498 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
3500 * editfns.c: Include coding.h.
3501 (emacs_strftime): Remove decl.
3502 (emacs_strftimeu): New decl.
3503 (emacs_memftimeu): Renamed from emacs_memftime; new arg UT.
3504 Use emacs_strftimeu instead of emacs_strftime.
3505 (Fformat_time_string): Convert format string using
3506 Vlocale_coding_system, and convert result back. Synchronize time
3507 locale before invoking lower level function. Invoke
3508 emacs_memftimeu, passing ut, instead of emacs_memftime.
3510 * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined.
3511 (Vmessages_locale, Vprevious_messages_locale, Vtime_locale,
3512 Vprevious_time_locale): New variables.
3513 (main): Invoke setlocale early, so that initial error messages are
3514 localized properly. But skip locale-setting if LC_ALL is "C".
3515 Fix up locale when it's safe to do so.
3516 (fixup_locale): Moved here from xterm.c.
3517 (synchronize_locale, synchronize_time_locale,
3518 synchronize_messages_locale): New functions.
3519 (syms_of_emacs): Accommodate above changes.
3521 * fileio.c (report_file_error): Convert strerror output according
3522 to Vlocale_coding_system.
3523 (Finsert_file_contents): Check for arithmetic overflow in
3524 computations that depend on file size. Report IO errors
3525 with emacs_strerror, not strerror.
3527 * fns.c (Fgethash): Declare dflt parameter.
3529 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
3530 is defined; that's config.h's job.
3532 * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64,
3533 default these values to long, BITS_PER_LONG, and unsigned long.
3534 (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT.
3535 (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int.
3536 (code_convert_string_norecord, fixup_locale,
3537 synchronize_messages_locale, synchronize_time_locale,
3538 emacs_open, emacs_close, emacs_read, emacs_write): New decls.
3539 All Emacs callers of open, close, read, write changed to use
3540 emacs_open, emacs_close, emacs_read, emacs_write.
3542 * lread.c (file_offset, file_tell): New macros. All uses of ftell
3543 changed to file_tell.
3544 (saved_doc_string_position, prev_saved_doc_string_position): Now
3545 of type file_offset.
3546 (init_lread): Do not fix locale here; fixup_locale now does this.
3548 * m/amdahl.h, s/usg5-4.h:
3550 (NSIG_MINIMUM): New macro.
3552 * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h,
3553 m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h,
3554 s/umips.h, s/usg5-4.h:
3555 (SIGIO): Do not undef.
3556 (BROKEN_SIGIO): New macro.
3559 (SIGTSTP): Do not undef.
3560 (BROKEN_SIGTSTP): New macro.
3563 (SIGPOLL, SIGURG): Do not undef.
3564 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
3567 (SIGINFO): Do not undef.
3568 (BROKEN_SIGINFO): New macros.
3570 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
3572 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
3573 some Emacs-related changes merged.
3575 * print.c (float_to_string): Prepend "-" to representation of a
3576 NaN if the NaN is negative.
3578 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
3579 (wait_reading_process_input): Use emacs_strerror, not strerror.
3581 * process.c (status_message, sigchld_handler): Synchronize locale,
3582 then use strsignal istead of sys_siglist.
3583 * w32proc.c (sys_wait): Likewise.
3585 * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h,
3586 s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h,
3587 s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h,
3588 s/usg5-2.h, s/usg5-3.h, s/xenix.h:
3589 (open, close, read, write, INTERRUPTIBLE_OPEN,
3590 INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove.
3592 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
3594 * sysdep.c (sys_read, sys_write, read, write, sys_close, close,
3595 sys_open, open): Remove.
3596 (emacs_open, emacs_close, emacs_read, emacs_write): Always define;
3597 the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO
3598 macros are no longer used.
3599 (emacs_open): Renamed from sys_open. Merge BSD4_1 version.
3600 (emacs_close): Renamed from sys_close.
3601 (emacs_read): Renamed from sys_read.
3602 (emacs_write): Renamed from sys_write.
3603 (sys_siglist): Do not declare if HAVE_STRSIGNAL.
3604 (dup2): Do not print error on failure; the real dup2 doesn't.
3605 (strsignal): New function, defined if !HAVE_STRSIGNAL.
3607 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
3609 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
3610 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
3611 (strsignal): Declare if !HAVE_STRSIGNAL.
3613 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
3614 (ElfW): Define in terms of ElfExpandBitsW.
3616 * w32proc.c (sys_siglist): Remove decl.
3618 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
3620 (display_string): Declare face_string_pos arg.
3622 * xfns.c (Fx_show_tip): Declare timeout param.
3624 * xterm.c: No need to include locale.h.
3625 (x_alloc_lighter_color, x_setup_relief_color):
3626 Pass arg as double, not float, for compatibility with ANSI C.
3627 (fixup_locale): Move to emacs.c.
3628 (x_term_init): Do not setlocale or fixup locale; the main program
3631 1999-10-18 Dave Love <fx@gnu.org>
3633 * doc.c (Fdocumentation_property): Gcpro `tem'.
3635 1999-10-18 Kenichi Handa <handa@etl.go.jp>
3637 * lread.c (Fload): Calculate bytes of filename correctly.
3640 1999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
3642 * print.c (print_preprocess): In case print-circle is nil,
3643 add OBJ to Vprint_number_table only when OBJ is a symbol.
3645 1999-10-18 Kenichi Handa <handa@etl.go.jp>
3647 * coding.c (code_convert_string): Add record_unwind_protect to
3648 assure setting inhibit_pre_post_conversion back to zero. Take
3649 care of the multibyteness of the working buffer.
3651 * coding.c (inhibit_pre_post_conversion): New variable.
3652 (setup_coding_system): If inhibit_pre_post_conversion is nonzero,
3653 ignore post-read-conversion and pre-write-conversion property of
3655 (code_convert_region_unwind): New function.
3656 (code_convert_region): Set inhibit_pre_post_conversion to 1 while
3657 running pre-write-conversion and post-read-conversion.
3658 (code_convert_string): Likewise.
3660 1999-10-17 Miles Bader <miles@gnu.org>
3662 * editfns.c: Doc fix.
3664 1999-10-17 Miles Bader <miles@gnu.org>
3666 * editfns.c (Fconstrain_to_field): Make sure we don't violate the
3667 argument preconditions of find_before_next_newline in the case
3668 where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS
3669 was indeed at the edge.
3671 1999-10-17 Miles Bader <miles@gnu.org>
3673 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
3674 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
3676 * editfns.c (text_property_eq, text_property_stickiness): Don't
3677 use initializers for auto variables of type Lisp_Object.
3678 (find_field): Likewise. Use braces around nested ifs.
3679 (Fline_end_position): Store the raw eol in a variable, so that the
3680 final expression doesn't look so ugly.
3681 (Fconstrain_to_field): Doc fix.
3682 (preceding_pos): Renamed from `preceeding_pos'.
3683 (text_property_stickiness, find_field): Call preceding_pos,
3686 1999-10-17 Miles Bader <miles@gnu.org>
3688 * editfns.c (Ffield_string_no_properties): New function.
3689 (text_property_stickiness, preceeding_pos): New functions.
3690 (Ffield_string): Remove PROPS parameter.
3691 (find_field): Add MERGE_AT_BOUNDARY parameter.
3692 Rewrite to use stickiness of `field' property to resolve
3694 (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter.
3695 (Fconstrain_to_field): Likewise.
3696 (syms_of_editfns): Init Sfield_string_no_properties.
3697 (Ffield_string, Ferase_field, Ffield_end):
3698 Supply new MERGE_AT_BOUNDARY argument to find_field.
3699 (Fline_beginning_position, Fline_end_position): Supply new
3700 ESCAPE_FROM_EDGE parameter to Fconstrain_to_field.
3701 Pass a value of Qt for the ONLY_IN_LINE argument to
3702 Fconstrain_to_field (only matters if N != 1).
3703 * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter
3704 to Fconstrain_to_field.
3706 * minibuf.c (Fminibuffer_complete_word): Use
3707 Ffield_beginning to find the prompt end.
3709 1999-10-17 Miles Bader <miles@gnu.org>
3711 * editfns.c (Fconstrain_to_field): Add get/set-current-point
3712 behavior when NEW_POS is nil.
3713 (find_field): Use XSETFASTINT instead of make_number.
3714 * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty
3715 input string by seeing where the field begins, instead of
3716 looking at text-properties.
3718 1999-10-17 Miles Bader <miles@gnu.org>
3720 * editfns.c (Qfield): New variable.
3721 (find_field, Ferase_field, Ffield_string,
3722 Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions.
3723 (Fline_beginning_position, Fline_end_position): Constrain to any field.
3724 (make_buffer_string_both): Remove minibuffer-prompt hack.
3725 (syms_of_editfns): Initialize Qfield, and subr entries for
3726 field functions above.
3727 * minibuf.c (read_minibuf): Don't save minibuffer prompt length on
3729 Don't initialize minibuffer prompt length.
3730 Wrap prompt text-properties around the entire prompt.
3731 Add 'prompt text-property to prompt.
3732 Get final value with Ffield_string instead of make_buffer_string.
3733 (read_minibuf_unwind): Don't restore minibuffer prompt length from
3735 (do_completion): Get minibuffer input with Ffield_string
3736 instead of Fbuffer_string.
3737 Erase minibuffer input with Ferase_field instead of erase_buffer.
3738 (Fminibuffer_complete_and_exit): Likewise.
3739 Test whether buffer is empty by looking for the 'prompt text
3740 property at the end.
3741 Set prompt length by looking for the end of the prompt text property,
3742 and save prompt length for later use (since there is no longer a
3743 buffer variable to get it from).
3744 (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed.
3745 (syms_of_minibuf): Remove initializations of
3746 Sminibuffer_prompt_width and Sminibuffer_prompt_end.
3747 * buffer.h (struct buffer): Remove prompt_end_charpos field.
3748 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer):
3749 Don't initialize prompt_end_charpos field.
3750 * syntax.c (Fforward_word): Likewise.
3751 Constrain to any field.
3753 1999-10-16 Gerd Moellmann <gerd@gnu.org>
3755 * window.c (enum save_restore_action): New.
3756 (save_restore_orig_size): Change parameter list. Add
3757 functionality to check for valid orig_top and orig_height members
3759 (grow_mini_window): Call save_restore_orig_size with new parameter
3761 (shrink_mini_window): Restore old window sizes only if old
3762 size information is valid in all windows in a window tree.
3764 1999-10-15 Gerd Moellmann <gerd@gnu.org>
3766 * xmenu.c (set_frame_menubar): Don't call
3767 x_set_menu_resources_from_menu_face here.
3768 (update_frame_menubar): Call x_set_menu_resources_from_menu_face.
3770 * xfns.c (gif_load): Fix handling of interlaced GIFs.
3772 1999-10-14 Dave Love <fx@gnu.org>
3774 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
3776 1999-10-14 Gerd Moellmann <gerd@gnu.org>
3778 * process.c (Fopen_network_stream): Don't loop if gethostbyname
3779 fails and h_errno is TRY_AGAIN.
3781 1999-10-13 Dave Love <fx@gnu.org>
3783 * filelock.c (lock_file): Move gcpro of `fn'.
3785 1999-10-10 Gerd Moellmann <gerd@gnu.org>
3787 * keyboard.c (auto-save-interval): Fix documentation.
3789 1999-10-09 Richard M. Stallman <rms@gnu.org>
3791 * print.c (print): When removing objects from Vprint_number_table,
3792 only scan the newly added objects.
3793 (print_preprocess): If OBJ is a gensym, and print-continuous-numbering,
3794 unconditionally force it to stay in the table.
3796 1999-10-09 Gerd Moellmann <gerd@gnu.org>
3798 * xfns.c (prepare_image_for_display): Don't try to load image if
3799 loading it failed before.
3800 (lookup_image, prepare_image_for_display): Remember if loading the
3802 (xpm_load): Add missing UNBLOCK_INPUT.
3804 * dispextern.h (struct image): New member load_failed_p.
3806 1999-10-08 Stefan Monnier <monnier@cs.yale.edu>
3808 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
3811 1999-10-08 Gerd Moellmann <gerd@gnu.org>
3813 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
3814 Don't call XSetInputFocus because that can generate additional
3817 1999-10-07 Jeffrey C Honig <jch@bsdi.com>
3819 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
3821 1999-10-07 Richard M. Stallman <rms@gnu.org>
3823 * process.c (wait_reading_process_input): When trying to suck
3824 input from one process, for accept-process-output,
3825 exit that loop if we get EAGAIN or EWOULDBLOCK.
3827 1999-10-07 Gerd Moellmann <gerd@gnu.org>
3829 * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p.
3830 (Fbitmap_spec_p): Replaces Fpixmap_spec_p.
3831 (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of
3832 Fpixmap_spec_p and Qpixmap_spec_p.
3833 (load_face_colors, check_lface_attrs,
3834 merge_face_vector_with_property,
3835 Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p.
3836 (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr
3839 1999-10-07 Gerd Moellmann <gerd@gnu.org>
3841 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
3844 * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers.
3845 (struct x_resources) [USE_X_TOOLKIT]: New.
3846 (xm_apply_resources, xm_set_menu_resources_from_menu_face)
3848 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
3850 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
3852 (syms_of_xfaces): Initialize Qmenu.
3853 (realize_basic_faces): Realize face `menu'.
3854 (resolve_face_name): New.
3855 (lface_from_face_name): Use it.
3856 (Finternal_set_lisp_face_attribute): Ditto.
3857 (Fpixmap_spec_p): Rewritten. Extend doc string.
3859 * xmenu.c (set_frame_menubar, xmenu_show): Call
3860 x_set_menu_resources_from_menu_face.
3862 * dispextern.h (enum face_id): Add MENU_FACE_ID.
3863 (toplevel): Include X11/Intrinsic.h.
3865 1999-10-03 Ken'ichi Handa <handa@gnu.org>
3867 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
3870 1999-09-30 Kenichi Handa <handa@etl.go.jp>
3872 * category.c (modify_lower_category_set): Set default value of
3875 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
3878 1999-09-29 Gerd Moellmann <gerd@gnu.org>
3880 * editfns.c (Fpropertize): Renamed from Fproperties.
3882 1999-09-29 Gerd Moellmann <gerd@gnu.org>
3884 * xdisp.c (resize_mini_window): Do nothing if frame is an X
3885 frame that hasn't been initialized yet.
3887 1999-09-28 Richard M. Stallman <rms@gnu.org>
3889 * keymap.c (Fsingle_key_description): Make tem big enough.
3890 (describe_buffer_bindings): Make buf big enough.
3892 1999-09-27 Richard M. Stallman <rms@gnu.org>
3894 * intervals.c (get_local_map): Use indirect_function,
3895 not Findirect_function.
3897 1999-09-27 Dave Love <fx@gnu.org>
3899 * cm.h: Remove unneeded declaration of ospeed.
3901 1999-09-26 Gerd Moellmann <gerd@gnu.org>
3903 * lisp.h (toplevel): Add prototype for
3904 next_single_char_property_change.
3906 * textprop.c (next_single_char_property_change): New.
3908 * xdisp.c (display_prop_end, invisible_text_between_p): Use
3909 next_single_char_property_change.
3911 1999-09-25 Gerd Moellmann <gerd@gnu.org>
3913 * editfns.c (Fproperties): New.
3914 (syms_of_editfns): Defsubr it.
3916 * xfns.c (lookup_image): Set image's timestamp because it's
3917 used when we look it up.
3919 1999-09-23 Gerd Moellmann <gerd@gnu.org>
3921 * window.c (enlarge_window): Add window parameter instead of using
3923 (Fdisplay_buffer): Call it with window parameter instead of
3924 setting selected_window.
3925 (Fenlarge_window, Fshrink_window): Ditto.
3926 (shrink_mini_window): If there is no recorded height and position
3927 info, resize mini-window to height 1.
3929 * xfns.c (image_error): Use add_to_log.
3931 * xfaces.c (load_pixmap): Call add_to_log without frame parameter.
3932 (load_face_font_or_fontset, load_color,
3933 merge_face_vector_with_property): Ditto.
3935 * dispextern.h: Add prototype for add_to_log.
3937 * xfaces.c (add_to_log): Move to xdisp.c.
3939 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
3942 1999-09-23 Gerd Moellmann <gerd@gnu.org>
3944 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
3945 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
3947 * xdisp.c (resize_mini_window): Use grow_mini_window and
3950 * window.c (window_min_size): Add parameter ignore_fixed_p.
3951 (change_window_height): Call window_min_size with new parameter.
3952 (shrink_window_lowest_first, save_restore_orig_size,
3953 grow_mini_window, shrink_mini_window): New.
3954 (make_window, replace_window): Initialize orig_top and
3956 (enlarge_window): Renamed from change_window_height. Make it
3958 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
3959 enlarge_window instead of change_window_height.
3961 * window.h (struct window): New members orig_top, orig_height.
3962 (toplevel): Add prototypes for grow_mini_window and
3963 shrink_mini_window. Remove prototype for change_window_height.
3965 1999-09-21 Eli Zaretskii <eliz@gnu.org>
3967 * frame.c (frame_name_fnn_p): Fix previous change.
3969 1999-09-20 Gerd Moellmann <gerd@gnu.org>
3971 * minibuf.c (toplevel): Move include of stdio.h to other includes.
3973 * dispnew.c (direct_output_for_insert): Cast arguments to
3974 safe_bcopy to char *.
3976 * lread.c (readchar): Remove unused variables.
3977 (read_filtered_event, read1, Fmapatoms): Ditto.
3978 (toplevel): Include intervals.h.
3980 * eval.c (Fsignal): Remove unused variables.
3981 (Fcommandp, do_autoload): Ditto.
3983 * lisp.h: Add prototype for safe_bcopy, fatal.
3985 * editfns.c (init_editfns): Remove unused variables.
3986 (Fgoto_char, Fchar_after, Fformat): Ditto.
3987 (message_text, message_length): Put in #ifndef HAVE_MENUS.
3989 * data.c (find_symbol_value): Remove unused variables.
3990 (Faref, Fstring_to_number): Ditto.
3991 (toplevel): Include stdio.h.
3992 (Fnumber_to_string): Cast XINT to long for %ld.
3994 * casefiddle.c (casify_object): Remove unused variables.
3995 (casify_region): Ditto.
3997 * filelock.c (get_boot_time): Put local variable used in
3998 conditinally compiled section in #ifdef.
3999 (toplevel): Include stdio.h.
4001 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
4002 keys_of_keymap, syms_of_keymap): Remove unused variables.
4004 1999-09-20 Gerd Moellmann <gerd@gnu.org>
4006 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
4007 whose corresponding window rows have been disabled in
4010 1999-09-20 Gerd Moellmann <gerd@gnu.org>
4012 * xdisp.c (compute_window_start_on_continuation_line): Handle case
4013 that window start is out of range.
4014 (handle_display_prop, handle_single_display_prop): Replace
4015 marginal area specifications like `left-margin' with `(margin
4018 (syms_of_xdisp): Initialize Qmargin.
4020 1999-09-19 Gerd Moellmann <gerd@gnu.org>
4022 * syntax.c (update_syntax_table, find_defun_start, back_comment,
4023 describe_syntax, skip_chars): Remove unused variables.
4024 (back_comment, forw_comment): Add braces to if-statement with
4025 if-else as dependent statement.
4027 * process.c (list_processes_1): Remove unused variables.
4028 (Fopen_network_stream, create_process): Add parentheses to
4029 conditional expressions.
4030 (create_process): Put declaration of sigchld in #if 0.
4031 (Fopen_network_stream): Removed unused variables.
4032 (Fopen_network_stream, wait_reading_process_input,
4033 wait_reading_process_input, send_process, send_process): Ditto.
4034 (toplevel): Add prototypes for set_waiting_for_input and
4037 * abbrev.c (Fexpand_abbrev): Remove unused variables.
4039 * textprop.c (Fset_text_properties): Remove unused variables.
4040 (text_property_list, verify_interval_modification,
4041 interval_has_all_properties): Ditto.
4043 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4044 (Fcall_process): Remove unused variable.
4046 * keyboard.c (Frecursive_edit): Remove unused variable.
4047 (command_loop_1, safe_run_hooks, kbd_buffer_get_event,
4048 timer_check, make_lispy_event, menu_bar_items,
4049 menu_bar_one_keymap, menu_bar_item, parse_menu_item,
4050 parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence,
4051 kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt,
4052 read_key_sequence): Ditto. Fread_key_sequence,
4053 Fread_key_sequence_vector, Fsuspend_emacs): Ditto.
4054 (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only
4055 used when GOBBLE_FIRST_EVENT is defined in #ifdef
4056 (Fexecute_extended_command): Cast XINT to long for %ld.
4057 (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4058 (toplevel): Include sys/types.h.
4060 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
4061 (toplevel): Add prototypes for stuff_char, and
4062 code_convert_string_norecord.
4064 1999-09-19 Gerd Moellmann <gerd@gnu.org>
4066 * buffer.h: Add prototype for r_re_alloc.
4068 * insdel.c (copy_text): Removed unused variables.
4069 (count_combining_after, count_combining_after, insert_1_both,
4070 insert_from_string_1, insert_from_buffer_1, check_markers): Ditto.
4071 (adjust_after_replace, replace_range): Add parentheses to logical
4072 expressions. Remove unused variables.
4073 (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical
4076 * alloc.c (Fgarbage_collect): Remove unused variable.
4077 (compact_strings): Add parentheses around assignments in
4078 conditional context.
4079 (toplevel): Put declaration of unused function clear_marks
4080 in #if 0 like its definition.
4082 * lisp.h: Add prototype for shrink_regexp_cache,
4083 sweep_weak_hash_tables.
4085 1999-09-19 Dave Love <fx@gnu.org>
4087 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
4089 * doc.c (read_bytecode_char): Declare arg.
4091 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
4092 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
4094 1999-09-18 Richard Stallman <rms@gnu.org>
4096 * xdisp.c (echo_area_display): Turn off code that returned
4097 without doing anything when using a terminal frame.
4099 1999-09-17 Richard M. Stallman <rms@gnu.org>
4101 * unexelf.c (unexec): Don't get confused by a short section
4102 just before the bss section.
4104 1999-09-16 Gerd Moellmann <gerd@gnu.org>
4106 * emacs.c (main): Remove unused variables.
4107 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
4109 * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings,
4110 init_fileio_once, syms_of_sound, init_xfns, init_fns
4111 init_sound, check_message_stack.
4113 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4115 * intervals.c (rotate_right, rotate_left): Add braces to avoid
4116 ambiguous else warning.
4117 (split_interval_left): Remove unused variables.
4118 (previous_interval, adjust_intervals_for_deletion,
4119 set_point_both, set_point_both, set_intervals_multibyte_1): Ditto.
4120 (icount, idepth, zero_length): Move into #if 0 section below
4121 original position where these are used.
4123 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
4125 * buffer.c (Fkill_buffer): Remove unused variables.
4126 (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists,
4127 fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change,
4128 init_buffer_once, (syms_of_buffer): Ditto.
4130 * xrdb.c (get_fallback): Remove unused variable.
4131 (x_load_resources): Ditto. Put local variable used for Motif only
4132 in #ifdef USE_MOTIF.
4134 1999-09-16 Gerd Moellmann <gerd@gnu.org>
4136 * minibuf.c (read_minibuf): Remove unused variables.
4137 (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto.
4138 (do_completion): Move assignment out of conditional context.
4139 (Fdisplay_completion_list): Add parentheses to conditional expression.
4141 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
4143 * lisp.h: Add prototype for no_switch_window.
4145 * window.c (Fset_window_buffer): Remove unused variables.
4146 (Fset_window_margins): Ditto.
4148 * xdisp.c (resize_mini_window): Temporarily set the selected
4149 window's or Vminibuf_scroll_window's height to "fixed" around
4150 the call the change_window_height.
4152 * window.c (window_fixed_size_p): Check window's height_fixed_p
4155 * window.h (struct window): New member height_fixed_p.
4157 * dispnew.c (direct_output_forward_char): Don't use this method
4158 if showing a message or a message was just cleared because we
4159 might need to resize the mini-window.
4161 1999-09-16 Gerd Moellmann <gerd@gnu.org>
4163 * frame.c (Fdelete_frame): Correct local variable pointing to
4164 selected frame after selecting new frame.
4166 1999-09-15 Richard Stallman <rms@gnu.org>
4168 * puresize.h (BASE_PURESIZE): Increase to 525000.
4170 * filelock.c (Vtemporary_file_directory): New variable.
4171 (syms_of_filelock): Set up Lisp variable.
4173 1999-09-15 Gerd Moellmann <gerd@gnu.org>
4175 * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while.
4176 (encode_terminal_code): Remove unused variables.
4177 (turn_off_face): Ditto.
4178 (toplevel): Include termcap.h if HAVE_TERMCAP_H.
4180 * dispnew.c (update_frame_line): If writing whole desired line,
4181 don't clear to end of line if already at the end.
4183 1999-09-15 Gerd Moellmann <gerd@gnu.org>
4185 * xdisp.c (resize_mini_window): Don't report changed window
4186 height if it actually hasn't changed.
4188 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
4190 (mark_shell_size_user_specified): Put in #if 0 because not used.
4191 (create_frame_gcs): Put in #if 0 because currently unused.
4192 (first_frame_p): Ditto.
4194 * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu,
4195 single_submenu, update_frame_menubar, set_frame_menubar,
4196 free_frame_menubar, xmenu_show, xdialog_show): Remove unused
4199 * print.c (PRINTFULLP): Removed because it is no longer used and
4201 (Ferror_message_string): Remove unused variables.
4202 (print_object): Cast argument of sprintf to long for `%ld'
4203 specifier. Remove unused variable.
4205 1999-09-14 Gerd Moellmann <gerd@gnu.org>
4207 * sound.c (Fplay_sound): Remove usused variables.
4208 (be2hs): Put in #if 0 because it's currently not used.
4210 1999-09-14 Ken Raeburn <raeburn@gnu.org>
4212 * print.c (Ferror_message_string, print_error_message,
4213 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
4216 1999-09-14 Gerd Moellmann <gerd@gnu.org>
4218 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
4220 * frame.c (Fnext_frame): Remove unused variable(s).
4221 (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto.
4222 (store_frame_param): Add parentheses to conditional expression.
4223 (Fmodify_frame_parameters): Remove unused variables.
4224 (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position):
4227 * xfns.c (x_set_background_color): Remove unused variable(s).
4228 (x_set_border_pixel): Ditto.
4229 (x_set_menu_bar_lines): Put local variable used only for
4230 non-toolkit case in #ifdef/#endif.
4231 (x_figure_window_size): Remove unused variable(s).
4232 (x_figure_window_size, x_window, lookup_image,
4233 xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load,
4234 png_load, jpeg_load, gif_load, x_create_tip_frame,
4235 x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto.
4237 * xterm.c (x_scroll_bar_handle_click): Compile only if
4238 not USE_TOOLKIT_SCROLL_BARS.
4239 (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto.
4241 * dispextern.h: Add prototypes for gamma_correct and
4244 * xterm.c (x_produce_glyphs): Remove unused variable(s).
4245 (x_alloc_nearest_color_for_widget, note_tool_bar_highlight,
4246 x_set_toolkit_scroll_bar_thumb): Ditto.
4247 (x_scroll_bar_create): Move local variable to the
4248 conditionally compiled section of code where it is used.
4249 (x_scroll_bar_create): Remove unused variable(s).
4250 (x_scroll_bar_remove, XTread_socket): Ditto.
4251 (XTread_socket) <ConfigureNotify>: Move variables used for
4252 non-toolkit case into conditionally compiled section of code.
4254 * window.h (freeze_window_starts): Fix typo in prototype.
4256 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
4259 * lisp.h: Add prototype for debug_print.
4261 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
4264 * fns.c (SXHASH_COMBINE): Add missing parentheses.
4265 (Fchar_table_range, Fset_char_table_default, mapcar1,
4266 Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s).
4268 * lisp.h: Add prototype for getloadavg.
4270 1999-09-14 Andreas Schwab <schwab@gnu.org>
4272 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
4274 * lisp.h: Declare close_file_unwind.
4276 1999-09-14 Richard Stallman <rms@gnu.org>
4278 * filelock.c (get_boot_time): Make the temp name in the proper dir.
4280 1999-09-13 Gerd Moellmann <gerd@gnu.org>
4282 * xdisp.c (redisplay_window): Make sure start_at_line_beg
4283 is always set correctly.
4285 1999-09-13 Dave Love <fx@gnu.org>
4287 * xdisp.c (move_it_in_display_line_to): Make type consistent with
4290 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4292 * xdisp.c (QCfile): Move here from xfns.c.
4293 (syms_of_xdisp): Initialize it.
4294 (message2_nolog): Change for Lisp_Object selected_frame.
4295 (message3_nolog, message_with_string, message,
4296 setup_echo_area_for_printing, truncate_echo_area,
4297 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
4299 1999-09-13 Dave Love <fx@gnu.org>
4301 * xterm.c: Don't continue #define args for benefit of old cc.
4302 (xt_action_hook): Indent #error for benefit of K&R cc.
4304 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4306 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
4307 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
4308 (XRINGBELL): Removed.
4310 1999-09-13 Dave Love <fx@gnu.org>
4312 * xfns.c (x_put_x_image): Make type consistent with declaration.
4314 * fns.c (Fmake_hash_table): Fix string continuation.
4316 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4318 * xfns.c (QCfile): Moved to xdisp.c.
4319 (syms_of_xfns): Don't initialize QCfile.
4320 (check_x_frame): Change for Lisp_Object selected_frame.
4321 (check_x_display_info, x_get_resource_string): Ditto.
4323 1999-09-13 Gerd Moellmann <gerd@gnu.org>
4325 * minibuf.c (choose_minibuf_frame): Don't try to set the
4326 mini-buffer window's buffer, if the buffer is invalid.
4328 * xfns.c (QCfile): Moved to xdisp.c.
4329 (syms_of_xfns): Don't initialize QCfile.
4331 * xdisp.c (QCfile): Move here from xfns.c.
4332 (syms_of_xdisp): Initialize it.
4334 * lisp.h (selected_frame): Add external declaration.
4336 * xselect.c (x_own_selection): Change for Lisp_Object selected_frame.
4337 (Fx_store_cut_buffer_internal): Ditto.
4338 (Fx_rotate_cut_buffers_internal): Ditto.
4340 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
4342 (Finternal_set_lisp_face_attribute): Ditto.
4343 (Finternal_get_lisp_face_attribute): Ditto.
4344 (Finternal_lisp_face_empty_p): Ditto.
4345 (Fdump_face): Ditto.
4347 * term.c (OUTPUT): Change for Lisp_Object selected_frame.
4348 (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes,
4349 set_terminal_window, set_scroll_region, reassert_line_highlight,
4350 change_line_highlight, cursor_to, raw_cursor_to, clear_to_end,
4351 clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw,
4352 encode_terminal_code, write_glyphs, term_init): Ditto.
4354 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
4355 (kbd_input_ast, read_input_waiting): Ditto.
4357 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
4359 (read_minibuf): Ditto.
4361 * keyboard.c (command_loop_1): Change for Lisp_Object
4363 (cmd_error_internal, command_loop_1, read_char,
4364 kbd_buffer_get_event, read_avail_input,
4365 read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs,
4366 interrupt_signal, quit_throw_to_read_char): Ditto.
4368 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
4369 (Ffontset_info): DItto.
4371 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
4373 * dispnew.c (selected_frame): Make it a Lisp_Object.
4374 (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame.
4375 (direct_output_for_insert, direct_output_forward_char,
4376 init_display): Ditto.
4378 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
4380 (set_internal): Ditto.
4382 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
4383 (record_buffer): Ditto.
4385 * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME.
4386 (do_switch_frame): Change for Lisp_Object selected_frame.
4387 (Fselected_frame): Ditto.
4388 (Fframe_first_window): Use SELECTED_FRAME.
4389 (Fframe_root_window): Change for Lisp_Object selected_frame.
4390 (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame,
4391 Fprevious_frame, other_visible_frames, Fdelete_frame,
4392 Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible,
4393 Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame,
4394 Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height,
4395 Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width,
4396 Fset_frame_height, Fset_frame_width): Ditto.
4398 1999-09-13 Gerd Moellmann <gerd@gnu.org>
4400 * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame.
4401 (message3_nolog, message_with_string, message,
4402 setup_echo_area_for_printing, truncate_echo_area,
4403 prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto.
4405 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
4406 (Fx_popup_dialog): Ditto.
4408 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
4409 (check_x_display_info, x_get_resource_string): Ditto.
4411 * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame.
4412 (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto.
4413 (XRINGBELL): Removed.
4415 * window.c (Fminibuffer_window): Change for Lisp_Object
4417 (Fwindow_at, Fprevious_window, window_loop, select_window_1,
4418 display_buffer_1, Fdisplay_buffer, temp_output_buffer_show,
4419 Fcurrent_window_configuration, init_window_once): Ditto.
4421 * frame.h (SELECTED_FRAME): New.
4423 1999-09-12 Ken Raeburn <raeburn@gnu.org>
4425 * category.c (word_boundary_p): Use XCAR and XCDR.
4426 * ccl.c (ccl_driver, resolve_symbol_ccl_program,
4427 Fregister_code_conversion_map): Likewise.
4428 * coding.c (setup_coding_system, detect_coding_system,
4429 Ffind_operation_coding_system, Fset_coding_priority_internal):
4431 * doc.c (get_doc_string, Fdocumentation,
4432 store_function_docstring): Likewise.
4433 * editfns.c (save_restriction_restore): Likewise.
4434 * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger,
4435 skip_debugger, find_handler_clause, Fautoload, Fapply,
4436 run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode):
4438 * fileio.c (Ffind_file_name_handler, Finsert_file_contents,
4439 Fwrite_region, do_auto_save_unwind, Fdo_auto_save,
4440 Fread_file_name): Likewise.
4441 * filelock.c (unlock_all_files): Likewise.
4442 * insdel.c (Fcombine_after_change_execute): Likewise.
4443 * intervals.c (adjust_intervals_for_insertion): Likewise.
4444 * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent,
4445 Fset_keymap_parent, fix_submap_inheritance, access_keymap,
4446 store_in_keymap, Fcopy_keymap, define_as_prefix,
4447 current_minor_maps, Faccessible_keymaps,
4448 accessible_keymaps_char_table, Fkey_description,
4449 Fwhere_is_internal, where_is_internal_2, where_is_internal_1,
4450 describe_buffer_bindings, describe_map_tree, shadow_lookup,
4451 describe_map): Likewise.
4452 * lread.c (Fload, load_unwind, close_load_descs, read_vector,
4453 read_list, init_lread): Likewise.
4454 * search.c (Fmatch_data): Likewise.
4455 * sunfns.c (Fsun_menu_internal): Likewise.
4456 * syntax.c (describe_syntax): Likewise.
4457 * undo.c (record_insert, record_delete, Fundo_boundary,
4458 truncate_undo_list): Likewise.
4459 * vmsproc.c (child_sig): Likewise.
4461 * editfns.c (Fformat): Use XFLOAT_DATA.
4463 1999-09-12 Gerd Moellmann <gerd@gnu.org>
4465 * keyboard.c (command_loop_1): Resize mini-window to the
4466 exact size of a message displayed, if any.
4468 * xdisp.c (resize_mini_window): Add parameter exact_p. Resize
4469 to exact size if exact_p is non-zero.
4470 (display_echo_area_1): Call resize_mini_window with
4472 (redisplay_internal): Ditto.
4473 (resize_echo_area_axactly): New.
4475 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
4478 * dispextern.h: Change prototype of resize_mini_window.
4479 Add prototype for resize_echo_area_axactly.
4481 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
4482 (syms_of_xfaces): Defsubr accordingly.
4484 * xdisp.c (hscroll_window_tree): Choose cursor row from
4485 desired or current matrix.
4486 (redisplay_internal): Hscroll before updating.
4488 1999-09-12 Gerd Moellmann <gerd@gnu.org>
4490 * syntax.c (Fforward_word): Use prompt_end_charpos instead
4491 of minibuffer_prompt_length.
4493 * minibuf.c (read_minibuf): Use prompt_end_charpos instead
4494 of minibuffer_prompt_length.
4495 (read_minibuf_unwind): Ditto.
4496 (Fminibuffer_complete_and_exit): Ditto.
4497 (Fminibuffer_complete_word): Ditto.
4498 (Fminibuffer_prompt_end): Ditto.
4500 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
4501 of minibuffer_prompt_length.
4502 (Fline_beginning_position): Ditto.
4504 * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead
4505 of minibuffer_prompt_length.
4506 (Fmake_indirect_buffer): Ditto.
4507 (Fkill_buffer): Ditto.
4508 (Ferase_buffer): Ditto.
4510 * buffer.h (prompt_end_charpos): Replaces
4511 minibuffer_prompt_length.
4513 * minibuf.c (read_minibuf): Return mini-buffer contents
4516 * editfns.c (make_buffer_string_both): Take out the code
4517 to handle mini-buffer prompts.
4518 (Fbuffer_string): Handle the prompt here, instead.
4520 * xfaces.c (lface_from_face_name): Resolve face aliases.
4521 (Qmode_line): Replaces Qmodeline.
4522 (realize_basic_faces): Use Qmode_line.
4523 (syms_of_xfaces): Initialize Qmode_line.
4525 1999-09-12 Gerd Moellmann <gerd@gnu.org>
4527 * minibuf.c (read_minibuf): Set minibuf_prompt_width to the
4528 current column after inserting prompt.
4529 (Fminibuffer_prompt_width): Return minibuf_prompt_width.
4531 * xfaces.c (Qframe_update_face_colors): New.
4532 (syms_of_xfaces): Initialize call.
4533 (update_face_from_frame_parameter): Call that function when
4534 the frame's background changes.
4536 1999-09-12 Richard Stallman <rms@gnu.org>
4538 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
4540 1999-09-12 Ken Raeburn <raeburn@gnu.org>
4542 * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect,
4543 mark_object, mark_buffer): Use XCAR and XCDR.
4544 * bytecode.c (Fbyte_code): Likewise.
4545 * callint.c (Fcall_interactively, Fprefix_numeric_value):
4547 * callproc.c (Fcall_process, Fcall_process_region, child_setup,
4548 getenv_internal): Likewise.
4549 * dired.c (file_name_completion): Likewise.
4550 * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq,
4551 assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse,
4552 Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise.
4553 * indent.c (Fcompute_motion): Likewise.
4554 * process.c (decode_status, Fprocess_status, Fprocess_exit_status,
4555 list_processes_1, Fstart_process, Fopen_network_stream,
4556 wait_reading_process_input, read_process_output_call,
4557 kill_buffer_processes, sigchld_handler, exec_sentinel_unwind,
4558 status_notify, wait_reading_process_input): Likewise.
4559 * textprop.c (PLIST_ELT_P, property_value, set_properties,
4560 extend_property_ranges): Likewise.
4561 * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise.
4562 * w32fns.c (x_window_to_frame, x_set_frame_parameters,
4563 x_report_frame_params, x_set_cursor_type, x_icon_type,
4564 x_figure_window_size, Fx_create_frame, w32_load_system_font,
4565 w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts,
4566 w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts,
4567 Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir,
4568 x_display_info_for_name, Fx_display_list): Likewise.
4569 * w32menu.c (menubar_id_to_frame, single_keymap_panes,
4570 Fx_popup_menu, Fx_popup_dialog): Likewise.
4571 * w32proc.c (Fw32_set_keyboard_layout): Likewise.
4572 * w32term.c (x_window_to_scroll_bar, w32_read_socket,
4573 w32_term_init, x_delete_display): Likewise.
4574 * xfns.c (x_window_to_frame, x_any_window_to_frame,
4575 x_non_menubar_window_to_frame, x_menubar_window_to_frame,
4576 x_top_window_to_frame, x_set_frame_parameters,
4577 x_report_frame_params, x_set_cursor_type, x_icon_type,
4578 x_figure_window_size, Fx_create_frame, x_display_info_for_name,
4579 Fx_display_list, x_create_tip_frame): Likewise.
4580 * xmenu.c (menubar_id_to_frame, single_keymap_panes,
4581 Fx_popup_menu, Fx_popup_dialog): Likewise.
4582 * xselect.c (x_own_selection, x_get_local_selection,
4583 x_handle_selection_request, x_handle_selection_clear,
4584 x_clear_frame_selections, wait_for_property_change_unwind,
4585 wait_for_property_change, x_handle_property_notify,
4586 copy_multiple_data, x_get_foreign_selection,
4587 lisp_data_to_selection_data, clean_local_selection_data,
4588 x_handle_selection_notify, Fx_get_selection_internal,
4589 x_disown_buffer_selections): Likewise.
4590 * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts,
4591 x_load_font, x_find_ccl_program, x_term_init, x_delete_display):
4594 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
4596 * bytecode.c (Fbyte_code): Likewise.
4597 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
4598 fmod_float): Likewise.
4600 1999-09-11 Richard Stallman <rms@gnu.org>
4602 * xdisp.c (run_window_scroll_functions): If hook functions switch
4603 buffers, switch back after.
4605 1999-09-11 Ken Raeburn <raeburn@gnu.org>
4607 * charset.h (GET_TRANSLATION_TABLE): Use XCDR.
4608 * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR.
4609 (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA.
4610 * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW,
4611 POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and
4613 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
4616 1999-09-10 Richard Stallman <rms@gnu.org>
4618 * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent,
4619 not RevertToPointerRoot.
4620 (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4621 Fix the code to clear around the scroll bar.
4623 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
4625 * print.c: Support print-circle and related features.
4626 (Vprint_gensym_alist): Removed.
4627 (Vprint_circle, Vprint_continuous_numbering, print_number_index
4628 Vprint_number_table): New variables.
4629 (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros.
4630 (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist.
4631 (print, print_preprocess, print_preprocess_string, print_object):
4632 New/modified functions with print-circle feature. Use
4633 Vprint_number_table instead of Vprint_gensym_alist for print-gensym.
4634 (syms_of_print): Defined new Lisp variables `print-circle',
4635 `print-continuous-numbering', `print-number-table'.
4637 1999-09-10 Gerd Moellmann <gerd@gnu.org>
4639 * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)'
4640 as background color specification instead of an integer.
4641 (image-cache-eviction-delay): Replaces image-eviction-seconds.
4642 (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds.
4643 (clear_image_cache, syms_of_xfns): Use it.
4644 (Qpostscript): Replaces Qghostscript.
4646 (gs_image_p): Ditto.
4647 (syms_of_xfns): Initialize Qpostscript.
4649 1999-09-10 Richard Stallman <rms@gnu.org>
4651 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
4653 1999-09-09 Richard Stallman <rms@gnu.org>
4655 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
4657 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
4659 1999-09-09 Gerd Moellmann <gerd@gnu.org>
4661 * fns.c (Fmakehash): Accept just one optional argument TEST.
4663 * xfns.c (QCindex): New.
4664 (syms_of_xfns): Initialize QCindex.
4665 (gif_load): Use it instead of `:image'.
4667 1999-09-09 Richard Stallman <rms@gnu.org>
4669 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
4670 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
4672 1999-09-08 Gerd Moellmann <gerd@gnu.org>
4674 * xdisp.c (Qwhen): Replaces QCwhen.
4675 (syms_of_xdisp): Initialized it instead of QCwhen.
4676 (handle_single_display_prop): Use it instead of QCwhen.
4678 1999-09-08 Ken'ichi Handa <handa@gnu.org>
4680 * charset.c (translate_char): Reset MSBs of arguments of
4682 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
4684 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4686 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
4688 * fns.c (Fbase64_decode_region): Don't place point outside of the
4689 current accessible portion.
4691 1999-09-07 Richard Stallman <rms@gnu.org>
4693 * keymap.c (fix_submap_inheritance): Do nothing if the proper
4694 parent is an ancestor of SUBMAP; otherwise, add it as the
4697 1999-09-07 Gerd Moellmann <gerd@gnu.org>
4699 * xdisp.c (handle_single_display_prop): Change conditional
4700 display property to `:when FORM . VALUE'.
4702 1999-09-07 Richard Stallman <rms@gnu.org>
4704 * fileio.c (Fwrite_region): Doc fix.
4706 1999-09-07 Stefan Monnier <monnier@cs.yale.edu>
4708 * fileio.c (Qexcl): New variable.
4709 (report_file_error): Handle EEXIST specially.
4710 (Fwrite_region): Special handling for CONFIRM = `excl'.
4711 (syms_of_fileio): Initialize Qexcl.
4713 1999-09-07 Gerd Moellmann <gerd@gnu.org>
4715 * xfns.c (x_set_foreground_color): Call
4716 update_face_from_frame_parameter.
4717 (x_set_background_color): Ditto.
4718 (x_set_mouse_color): Ditto.
4719 (x_set_cursor_color): Ditto.
4720 (x_set_border_color): Ditto.
4721 (x_set_scroll_bar_foreground): Ditto.
4722 (x_set_scroll_bar_background): Ditto.
4724 * xfaces.c (recompute_basic_faces): Clear face cache.
4725 (Finternal_set_lisp_face_attribute): Modify frame parameters
4726 if attributes of certain faces are changed.
4727 (update_face_from_frame_parameter): New.
4729 * xfaces.c (realize_basic_faces): Realize new basic faces.
4731 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
4732 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
4734 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
4735 (syms_of_xfaces): Intialize new symbols.
4737 * fns.c (Fmakehash): Take one argument, test, make all the
4738 rest keyword arguments.
4740 * window.c (Fset_window_margins): Make window the first argument.
4741 (set_window_buffer): Call Fset_window_margins with window as first
4744 1999-09-07 Gerd Moellmann <gerd@gnu.org>
4746 * xfaces.c (Qfringe): Replaces Qmargin.
4748 1999-09-07 Kenichi Handa <handa@etl.go.jp>
4750 * charset.h: Lots of comments fixed.
4751 (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string.
4752 (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
4754 * charset.c : Lots of comments fixed.
4755 (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string.
4756 (CHAR_COMPONENTS_VALID_P): Name changed from
4757 CHAR_COMPONENT_VALID_P. Caller changed.
4759 1999-09-06 Richard Stallman <rms@gnu.org>
4761 * insdel.c (syms_of_insdel): Define Lisp variable
4762 inhibit-modification-hooks.
4764 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
4766 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
4769 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
4771 1999-09-06 Dave Love <fx@gnu.org>
4773 * unexaix.c: New version incorporating Michael Sperber's changes
4774 from XEmacs. Should solve problems on AIX 4.3.
4776 * lread.c (Vbyte_boolean_vars): New variable.
4777 (defvar_bool, syms_of_lread): Use it.
4779 1999-09-05 Richard Stallman <rms@gnu.org>
4781 * minibuf.c (read_minibuf): Put all three properties on the
4782 same range, the whole prompt.
4784 1999-09-05 Gerd Moellmann <gerd@gnu.org>
4786 * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook.
4787 (Fplay_sound, syms_of_sound): Use it.
4788 (parse_sound): Allow float volume values in the range [0, 1].
4789 (Fplay_sound): Ditto.
4791 * window.c (Fset_window_vscroll): Make window the first argument,
4792 amount to scroll the second. Take non-negative vscroll as
4794 (Fwindow_vscroll): Return non-negative vscroll.
4796 * xfns.c (Fx_show_tip): Improve documentation.
4798 1999-09-05 Gerd Moellmann <gerd@gnu.org>
4800 * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c,
4801 window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change
4802 `top-line' and `top_line' to `header-line' and `header_line'.
4803 Likewise for similar spellings.
4805 1999-09-05 Gerd Moellmann <gerd@gnu.org>
4807 * xdisp.c (row_containing_pos): New.
4808 (try_window_id): Use it.
4810 * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c,
4811 lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c:
4812 Change spelling of `toolbar' to `tool_bar' or `tool-bar'.
4813 Likewise for upper-case etc.
4815 1999-09-05 Gerd Moellmann <gerd@gnu.org>
4817 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4818 Fix reference to renamed variable.
4820 1999-09-04 Gerd Moellmann <gerd@gnu.org>
4822 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
4823 (window_fixed_size_p): Use Qwindow_size_fixed instead of
4825 (syms_of_window): Ditto.
4827 * fns.c (Fmakehash): Exchange optional test and size arguments.
4829 1999-09-03 Gerd Moellmann <gerd@gnu.org>
4831 * xterm.c (XTset_vertical_scroll_bar): Block input when clearing
4832 under newly created scroll bar.
4833 (expose_window): If window is not yet fully initialized, do
4834 nothing. This can happen when toolkit scroll bars are used and a
4835 window is split. Reconfiguring the scroll bars will generate an
4836 expose for a newly created window.
4838 * frame.h (struct frame): New member `gamma'.
4840 * xfns.c: Include math.h. Add extern declaration for atof in case
4842 (Qscreen_gamma): New.
4843 (struct x_frame_parm_table): Add prototypes, add
4845 (gamma_correct): New function.
4846 (defined_color): Call it.
4847 (x_set_screen_gamma): New.
4848 (x_set_title): Add parameter old_value.
4849 (RES_TYPE_FLOAT): New.
4850 (x_get_arg): Handle RES_TYPE_FLOAT.
4851 (Fx_create_frame): Call x_default_parameter for `screen-gamma'.
4852 (lookup_pixel_color): Change call to x_alloc_nearest_color to
4854 (lookup_rgb_color): Ditto.
4855 (syms_of_xfns): Initialize Qscreen_gamma.
4857 * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]:
4858 New. Allocate color for lwlib widgets.
4859 (x_alloc_nearest_color): Change parameter list include the
4860 frame on which to allocate colors. Gamma-correct colors.
4861 (x_alloc_lighter_color): Call x_alloc_lighter_color with new
4864 * xterm.h: Change protorype of x_alloc_nearest_color.
4866 1999-09-03 Richard Stallman <rms@gnu.org>
4868 * callproc.c: Delete the system-independent include of stdlib.h
4869 (leaving only the one in the WINDOWSNT conditional).
4871 1999-09-03 Andrew Choi <choi@cs.hku.hk>
4873 * callproc.c (call-process) [macintosh]: Call mac_run_command in
4874 sysdep.c. The Mac code is modeled after the DOS code.
4876 * dispextern.h [macintosh]: Include macterm.h to define substitute X
4877 Window types and macros.
4879 * frame.h: Do nothing if included a second time.
4880 (enum output_method): Add mac_output frame type.
4881 (union output_data): Add new alternative `mac'.
4882 (FRAME_MAC_P): New macro.
4884 * frame.c (Fframep) [macintosh]: Handle mac frame type.
4885 (syms_of_frame_1): Initialize Qmac.
4886 (make_terminal_frame) [macintosh]: Initialize output_data.mac fields.
4887 (Fmake_terminal_frame) [macintosh]: Add an alternate error check.
4888 (Fmodify_frame_parameters) [macintosh]: Call
4889 mac_set_frame_parameter in macterm.c.
4891 * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value
4892 (512) because Mac compilers limit local data of a function to 32K.
4894 * make-docfiles.c: Correctly handle input files with Mac-style
4897 * sysdep.c: Define numerous routines to emulate Unix system calls.
4899 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
4900 file of an X Window environment.
4902 * xfaces.c: on MacOS, define the Lisp functions x-display-color-p,
4903 x-display-grayscale, x-color-defined-p, and x-color-values.
4905 * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access)
4906 (open, creat, unlink, read, write, rename, fopen, pause, alarm)
4907 (signal, sleep, gmtime, localtime, ctime, time, index, mktemp)
4908 (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid)
4909 (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.):
4910 New functions, replacing POSIX features.
4912 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
4913 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
4914 (InitEmacsPasswdDir, run_mac_command): New subroutines.
4916 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
4917 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
4918 (myPasswdDir, TempDirName, sys_siglist): New variables.
4920 * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask)
4921 (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink)
4922 (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl):
4923 Define empty stubs so Emacs will link.
4925 1999-09-03 Gerd Moellmann <gerd@gnu.org>
4927 * xdisp.c: Use XCAR and XCDR instead of XCONS.
4929 * window.h: New member frozen_window_start_p.
4931 * window.c (foreach_window, foreach_window_1): New.
4932 (freeze_window_start, freeze_window_starts): New.
4933 (make_window): Initialize frozen_window_start_p.
4934 (replace_window): Ditto.
4935 (Fset_window_point): Remove references to deleted variables.
4936 (Fset_window_start): Ditto.
4938 * xdisp.c (Vresize_mini_config, resize_mini_frame,
4939 resize_mini_initial_height): Removed.
4940 (syms_of_xdisp): Remove references to these variables.
4941 (resize_mini_window): Don't save window configuration, freeze
4942 window starts instead. Enlarge window until displaying an empty
4943 buffer, then shrink it. Make the function externally visible.
4944 (redisplay_window): Treat frozen window start like forced start,
4945 but accept point outside of the window.
4947 * dispextern.h: Add function prototype for resize_mini_window.
4949 * minibuf.c (read_minibuf_unwind): Resize mini-window when
4950 reaching minibuf_level 0.
4952 * lisp.h: Remove extern declarations for variables deleted from
4955 * dispnew.c (adjust_frame_glyphs): Remove reference to
4956 Vresize_mini_config.
4958 1999-09-03 Gerd Moellmann <gerd@gnu.org>
4960 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
4961 to USE_TOOLKIT_SCROLL_BARS.
4963 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
4965 (XTset_vertical_scroll_bar): Clarify position computations. Clear
4966 under newly created scroll bar. Put toolkit scroll bars in the
4967 middle of the area reserved for the scroll bar.
4969 1999-09-03 Kenichi Handa <handa@etl.go.jp>
4971 The following changes are for the new handling of mulitbyte
4972 sequence. Now, except for a composite character, no multibyte
4973 character in string/buffer has trailing garbage bytes. For
4974 instance, the length of string "\201\300\300" is now 2, the first
4975 character is Latin-1 A-grave, the second is raw \300.
4977 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
4979 (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0.
4980 (VALID_MULTIBYTE_CHAR_P): This macro deleted.
4981 (PARSE_COMPOSITE_SEQ): New macro.
4982 (PARSE_CHARACTER_SEQ): New macro.
4983 (PARSE_MULTIBYTE_SEQ): New macro.
4984 (CHAR_PRINTABLE_P): New macro.
4985 (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char.
4986 (STRING_CHAR_AND_LENGTH): Likewise.
4987 (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH.
4988 (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ.
4989 (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
4991 * charset.c (SPLIT_COMPOSITE_SEQ): New macro.
4992 (SPLIT_CHARACTER_SEQ): New macro.
4993 (SPLIT_MULTIBYTE_SEQ): New macro.
4994 (CHAR_COMPONENT_VALID_P): New macro.
4995 (non_ascii_char_to_string): Generate a multibyte sequence as far
4997 (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is
4998 deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ.
4999 (split_non_ascii_string): Likewise.
5000 (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ.
5001 (char_printable_p): New function.
5002 (translate_char): Check character by NATNUMP instead of INTEGERP.
5003 (unibyte_char_to_multibyte): Call char_valid_p instead of
5004 VALID_MULTIBYTE_CHAR_P.
5005 (Fmake_char_internal): Check the arguments more rigidly.
5006 (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ.
5007 (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P.
5008 (Fmultibyte_char_to_unibyte): Check the validity of character by
5010 (chars_in_text): Call multibyte_chars_in_text.
5011 (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ.
5012 (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of
5013 STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now).
5015 * data.c (Faset): Adjust the way to check byte-combining
5016 possibility for the new handling of multibyte sequence.
5018 * editfns.c (Fsubst_char_in_region): Likewise.
5020 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
5021 (string_char_to_byte): Likewise.
5022 (string_byte_to_char): Likewise.
5024 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
5025 macro STRING_CHAR_AND_LENGTH. Caller changed.
5027 * insdel.c (count_combining_composition): New function.
5028 (count_combining_before): Adjust the way to check byte-combining
5029 possibility for the new handling of multibyte sequence. Call
5030 count_combining_composition for a composite character.
5031 (count_combining_after): Likewise.
5033 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
5036 * dispextern.h (struct it): Change the size of the member
5039 * xdisp.c (get_next_display_element): Display incomplete multibyte
5040 sequence (e.g. \222\300) by octal form.
5042 1999-09-02 Gerd Moellmann <gerd@gnu.org>
5044 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
5046 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
5047 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
5049 1999-09-02 Gerd Moellmann <gerd@gnu.org>
5051 * buffer.c (set_buffer_internal): Never set
5052 windows_or_buffers_changed.
5054 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
5055 if we have displayed to the bottom of the window.
5057 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
5058 in both directions. Extend documentation.
5060 1999-09-01 Gerd Moellmann <gerd@gnu.org>
5062 * minibuf.c (read_minibuf): Flush display after setting cursor to
5065 1999-08-31 Gerd Moellmann <gerd@gnu.org>
5067 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
5068 already defined. This avoids a warning from buffer.c.
5070 1999-08-30 Gerd Moellmann <gerd@gnu.org>
5072 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
5074 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
5075 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
5076 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
5078 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS
5079 once instead of twice.
5080 (FRAME_LEFT_FLAGS_AREA_WIDTH): New.
5082 * xterm.c: Remove unused bitmaps.
5083 (continued_bits, continuation_bits, overlay_bits): Change images.
5084 (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH
5085 instead of FRAME_X_FLAGS_AREA_WIDTH.
5086 (x_after_update_window_line): Ditto.
5087 (x_draw_bitmap): Likewise.
5088 (x_draw_row_bitmaps): Likewise.
5089 (x_draw_glyph_string_box): Likewise.
5090 (x_draw_glyphs): Likewise.
5091 (x_scroll_run): Likewise.
5092 (expose_window_tree): Likewise.
5093 (note_mode_line_highlight): Likewise.
5094 (XTset_vertical_scroll_bar): Likewise.
5095 (x_clip_to_row): Likewise.
5096 (x_set_window_size): Likewise.
5098 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
5101 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
5103 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
5104 FRAME_FLAGS_AREA_WIDTH.
5106 * window.c (coordinates_in_window): Use
5107 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
5108 (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once
5111 * widget.c (set_frame_size): Set flags_area_extra to
5112 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
5113 (EmacsFrameSetCharSize): Ditto.
5115 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
5116 instead of FRAME_FLAGS_AREA_WIDTH.
5118 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract
5119 FRAME_FLAGS_AREA_COLS once.
5120 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add
5121 FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH.
5123 1999-08-30 Gerd Moellmann <gerd@gnu.org>
5125 * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers
5126 in /usr/X11R6/include which are checked for with AC_CHECK_HEADER.
5128 1999-08-30 Gerd Moellmann <gerd@gnu.org>
5130 * fns.c (QCweakness): Replaces QCweak.
5131 (Fmake_hash_table): Ditto.
5133 (syms_of_fns): Ditto.
5135 1999-08-29 Richard Stallman <rms@gnu.org>
5137 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
5139 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
5141 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
5142 Add support for nested comments.
5144 * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward):
5145 Consolidate the forward comment code into the new `forw_comment'.
5146 (forw_comment): New subroutine. Added support for nested comments.
5147 (lisp_parse_state, back_comment, Fmodify_syntax_entry)
5148 (Fparse_partial_sexp): Add support for nested comments.
5150 1999-08-28 Ken Raeburn <raeburn@gnu.org>
5152 * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change
5153 names of structure elements if HIDE_LISP_IMPLEMENTATION is
5154 defined, to help detect code that uses knowledge of the Lisp
5155 internals that it shouldn't have.
5156 (XFLOAT_DATA): New macro.
5158 1999-08-25 Gerd Moellmann <gerd@gnu.org>
5160 * syntax.c (Fforward_word): If in a mini-buffer and moving
5161 backwards, stop in front of the prompt to prevent accidentially
5162 moving into the read-only prompt.
5164 * window.c (Frecenter): Clear frame if called with nil or no arg.
5166 * xdisp.c (resize_mini_window): Don't resize if
5167 Vmax_mini_window_height is nil. Otherwise, use a default if
5168 Vmax_mini_window_height is not ot a number.
5169 (syms_of_xdisp): Extend documentation of Vmax_mini_window_height.
5171 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
5173 * unexelf.c: Merge IRIX debugging info patch from unexsgi.c
5174 * m/iris4d.h: Use unexelf for IRIX 5.*.
5175 * m/iris5d.h: Use unexelf for IRIX 6.*.
5176 * unexsgi.c: Deleted.
5178 * unexelf.c: Auto-detect .sbss section.
5179 (round_up): Make it static.
5180 (unexec): Declare alignment as Elf Word. Skip ``Program
5181 segment above .bss'' test on MIPS without .sbss.
5182 Copy sections .got and .sdata1 sections. Adjust offsets in
5183 sections .sdata, .lit4, .lit8, .got and .sdata1.
5185 1999-08-25 Gerd Moellmann <gerd@gnu.org>
5187 * xdisp.c (try_window_id): Remove typo.
5189 1999-08-24 Gerd Moellmann <gerd@gnu.org>
5191 * xdisp.c (try_window_id): Recognize case that PT == ZV and in
5192 unchanged text at the bottom when computing the cursor position.
5193 (message3_nolog): Raise frame only if minibuffer_auto_raise is
5196 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
5198 1999-08-24 Gerd Moellmann <gerd@gnu.org>
5200 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
5201 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
5202 (syms_of_xfaces): Ditto.
5204 * window.c (Fset_window_point): Reset Vresize_mini_config.
5205 (Fset_window_start): Ditto.
5206 (set_window_buffer): Ditto.
5208 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
5210 * xdisp.c (redisplay_window): Don't ever test just_this_one_p
5211 before calling try_window.
5212 (echo_area_display): If height has changed, update other windows.
5213 (resize_mini_frame, resize_mini_initial_height): New.
5214 (resize_mini_window): Save/restore window configuration
5217 * lisp.h (Vresize_mini_config, resize_mini_frame,
5218 resize_mini_initial_height): Add extern declarations.
5220 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
5223 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
5224 being redefined in jconfig.h.
5226 1999-08-23 Ken'ichi Handa <handa@gnu.org>
5228 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
5230 1999-08-22 Gerd Moellmann <gerd@gnu.org>
5232 * alloc.c (mark_glyph_matrix): Mark strings only.
5234 * xdisp.c (redisplay_internal): Clear garbaged frames after
5235 resizing mini-window.
5237 1999-08-22 Gerd Moellmann <gerd@gnu.org>
5239 * xdisp.c (unwind_with_echo_area_buffer): Use
5240 set_buffer_internal_1 instead of set_buffer_internal.
5241 (with_echo_area_buffer): Ditto.
5243 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
5244 only if buffer is displayed somewhere.
5246 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
5248 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
5250 (modify_region): Ditto.
5252 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
5254 * xdisp.c (Vresize_mini_config): New.
5255 (resize_mini_window): Use it to save restore original window
5257 (syms_of_xdisp): Initialize it.
5259 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
5261 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
5263 * xdisp.c (reconsider_clip_changes): New.
5264 (redisplay_internal, redisplay_window): Call it.
5265 (mark_window_display_accurate, redisplay_internal): Set current
5266 matrix' buffer, begv, zv.
5268 * window.c (Fset_window_hscroll): Set
5269 prevent_redisplay_optimizations_p instead of clip_changed.
5270 (Fset_window_hscroll): Ditto.
5271 (temp_output_buffer_show): Ditto.
5272 (Fset_window_vscroll): Ditto.
5274 * buffer.c (reset_buffer): Set clip_changed to 0 and
5275 prevent_redisplay_optimizations_p to 1.
5276 (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1.
5278 * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED,
5279 BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED,
5280 BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED,
5281 END_UNCHANGED): New.
5282 (struct buffer_text): Add beg_unchanged, end_unchanged,
5283 unchanged_modified, overlay_unchanged_modified.
5285 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
5286 overlay_unchanged_modified): Removed.
5287 (with_echo_area_unwind_data): Don't save beg/end_unchanged.
5288 (unwind_with_echo_area_buffer): Don't restore them.
5289 (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed.
5290 (text_outside_line_unchanged_p, redisplay_internal,
5291 try_scrolling): Use/set buffer-specific beg/end_unchanged.
5292 (redisplay_window): Let try_window_id be called if more than one
5293 window is displayed. Use/set buffer-specific beg/end_unchanged.
5294 (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row,
5296 Use buffer-specific beg/end_unchanged.
5298 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
5299 overlay_unchanged_modified): Remove extern declarations.
5301 * keyboard.c (command_loop_1): Set beg/end_unchanged per
5304 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
5306 (adjust_after_replace): Likewise.
5307 (replace_range, del_range_2, modify_region): Likewise.
5309 * dispnew.c (direct_output_for_insert): Set beg_unchanged
5310 and unchanged_modified per buffer.
5312 * coding.c (code_convert_region): Compute beg/end_unchanged per
5315 * buffer.c (modify_overlay): Compute beg/end_unchanged
5317 (Fget_buffer_create): Initialize new members of the buffer
5320 1999-08-22 Gerd Moellmann <gerd@gnu.org>
5322 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
5324 * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak.
5325 (Qkey_value_weak): Removed.
5326 (make_hash_table): Use nil, `key', `value', t for weakness.
5327 (Fmake_hash_table): Ditto.
5328 (copy_hash_table): New.
5329 (Fcopy_hash_table): New.
5331 1999-08-22 Gerd Moellmann <gerd@gnu.org>
5333 * xfns.c: Call change_frame_size and do_pending_window_change with
5336 1999-08-21 Gerd Moellmann <gerd@gnu.org>
5338 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
5340 (redisplay_internal): Resize mini-window only if text might
5342 (display_echo_area): Reset displayed echo_area_buffer to nil
5343 at the end if we're displaying a nil message.
5345 1999-08-21 Gerd Moellmann <gerd@gnu.org>
5347 * fns.c (hash_lookup): Test with EQ before calling key comparion
5349 (hash_remove): Ditto.
5350 (cmpfn_eq): Removed.
5351 (cmpfn_eql): Don't test with EQ.
5352 (cmpfn_equal): Ditto.
5353 (make_hash_table): Set comparison function for `eq' to null.
5355 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
5356 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
5358 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
5360 * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c,
5361 xterm.c: Call change_frame_size and do_pending_window_change with
5364 * dispnew.c (do_pending_window_change): Add parameter `safe'.
5365 (change_frame_size): Ditto.
5366 (change_frame_size_1): Ditto. Deley size changes if redisplaying
5367 and not called from a safe place.
5368 (window_change_signal): Call change_frame_size with new parameter.
5370 * dispextern.h: Change prototypes for do_pending_window_change
5371 and change_frame_size.
5373 * xfaces.c (face_at_buffer_position): Don't xassert that
5374 window's buffers equals current_buffer; this is not the
5375 case during echo area display.
5377 1999-08-21 Gerd Moellmann <gerd@gnu.org>
5379 * xdisp.c, minibuf.c: Remove conditional compilation on
5380 NO_PROMPT_IN_BUFFER.
5382 * minibuf.c (Fminibuffer_prompt_end): New.
5383 (syms_of_minibuf): Defsubr it. Remove
5384 minibuffer-prompt-in-buffer.
5385 (Fminibuffer_prompt_width): Return 0 if not in mini-buffer.
5386 Extend documentation.
5388 * xdisp.c (get_next_display_element): Display \r as ^M.
5390 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
5391 under scroll bar widget.
5393 1999-08-21 Gerd Moellmann <gerd@gnu.org>
5395 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
5397 (unwind_redisplay): Return nil.
5398 (clear_garbaged_frames): New.
5399 (redisplay_internal): Use it.
5400 (echo_area_display): Ditto.
5401 (resize_mini_window): Mew.
5402 (display_echo_area_1): Use it to resize echo area window.
5403 (redisplay_internal): Use it to resize active mini-window.
5405 * dispextern.h, lisp.h: Add function prototypes.
5407 * dispnew.c (set_window_cursor_after_update): Do the
5408 cursor_in_echo_area case only for a mini-window showing
5409 a message. Don't let cursor end up after the end of a row.
5411 * xdisp.c (echo_area_glyphs, echo_area_message,
5412 echo_area_glyphs_length, previous_echo_glyphs,
5413 previous_echo_area_message, previous_echo_area_glyphs_length):
5415 (Vmessage_stack, echo_area_buffer, echo_buffer,
5416 display_last_displayed_message_p, Vwith_echo_area_save_vector): New.
5417 (message2_nolog): Use set_message and clear_message.
5418 (message3): Rename parameter len to nbytes to make clear what
5420 (message3_nolog): Ditto. Use set_message and clear_message.
5421 (update_echo_area): Rewritten.
5422 (with_echo_area_buffer): New.
5423 (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New.
5424 (setup_echo_area_for_printing): New.
5425 (display_echo_area, display_echo_area_1): New.
5427 (current_message, current_message_1): New.
5428 (push_message, restore_message, pop_message,
5429 check_message_stack): New.
5430 (truncate_echo_area): Rewritten.
5431 (truncate_message_1): New.
5432 (set_message, set_message_1, clear_message): New.
5433 (echo_area_display): Rewritten.
5434 (redisplay_internal): Check for needed echo area update
5436 (redisplay_preserve_echo_area): Rewritten.
5437 (redisplay_window): Check for mini-window displaying echo area
5438 message differently.
5439 (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers.
5440 Remove initialzation of removed variables.
5441 (init_xdisp): Remove references to removed variables.
5443 * dispnew.c (adjust_frame_message_buffer): Removed references
5444 to echo_area_glyphs and previous_echo_glyphs.
5445 (direct_output_for_insert): Check for mini-window displaying
5446 echo area message differently.
5447 (update_frame): Likewise.
5448 (set_window_cursor_after_update): Likewise. In echo area,
5449 don't try to set cursor on rows that aren't enabled.
5451 * print.c: Remove conditional compilation on `standalone'.
5452 (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy,
5453 glyph_to_str_cpy): Remove that section because GLYPHs are no
5454 longer used in that way.
5455 (PRINTDECLARE): Add multibyte.
5456 (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently.
5457 (printbufidx): Removed.
5458 (printchar, strout): Rewritten.
5460 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
5463 (echo_now): Set echo_kboard to the current kboard.
5464 (cancel_echoing): Set echo_kboard to null.
5465 (cmd_error_internal): Use clear_message, remove references
5466 to echo_area_glyphs and echo_area_message.
5467 (command_loop_1): Check for echo area messages differently.
5468 (read_char): Likewise.
5469 (record_menu_key): Use clear_message.
5470 (Fexecute_extended_command): Check for echo area messages
5471 differently. Use push_message, restore_message, pop_message.
5473 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
5476 * emacs.c (shut_down_emacs): Call check_message_stack.
5478 * lisp.h: Add function prototypes and extern declarations for
5479 new functions and variables.
5481 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
5484 * minibuf.c (read_minibuf): Use clear_message instead of
5485 setting echo_area_glyphs.
5486 (Fminibuffer_completion_help): Ditto.
5488 * editfns.c (Fcurrent_message): Rewritten.
5490 * frame.c, window.h: Remove references to echo_area_glyphs
5491 and previous_echo_glyphs.
5493 1999-08-21 Dave Love <fx@gnu.org>
5495 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
5496 * aix4-1.h: Likewise.
5498 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
5500 1999-08-20 Gerd Moellmann <gerd@gnu.org>
5502 * xfns.c: Remove tiff34 prefix from include.
5504 1999-08-20 Dave Love <fx@gnu.org>
5506 * cm.c: Revert previous change.
5508 1999-08-19 Gerd Moellmann <gerd@gnu.org>
5510 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
5511 under scroll bar with width FRAME_SCROLL_BAR_COLS.
5513 1999-08-18 Dave Love <fx@gnu.org>
5515 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
5518 * doprnt.c: Use stdlib.h, unistd.h.
5520 * config.in: Add HAVE_TERMCAP_H.
5522 * cm.c: Use termcap.h.
5524 1999-08-18 Gerd Moellmann <gerd@gnu.org>
5526 * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for
5527 FRAME_X_WINDOW (f) being null at the of the function. If widgets
5528 cannot be created we will already have crashed earlier. Call
5529 lw_set_main_areas with a null menu-bar widget, so that we have
5530 a reasonable default.
5531 (Fx_create_frame): Rearranged so that Lisp errors during frame
5532 initialization cause less damage. Initialize menu bar widget
5535 1999-08-18 Gerd Moellmann <gerd@gnu.org>
5537 * dispnew.c (update_frame_line): Fix previous change. If writing
5538 whole line clear to end of frame.
5540 1999-08-17 Gerd Moellmann <gerd@gnu.org>
5542 * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area'
5543 and `right-bitmap-area' if position is in the bitmap areas. This
5544 avoids an error when clicking on the bitmap areas. Instead, they
5545 are currently treated like clicks inside the window.
5546 (coordinates_in_window): Return 5 and 6 for bitmap areas.
5547 (Qleft_bitmap_area, Qright_bitmap_area): New.
5548 (syms_of_window): Initialize new symbols.
5550 * dispnew.c (update_frame_line): If writing whole line,
5551 don't write trailing spaces unless we must.
5553 * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p.
5554 (redisplay_internal): Register unwind_redisplay with
5555 register_unwind_protect.
5556 (try_window_reusing_current_matrix): If new start > old start,
5557 give up if start pos of first reusable row is not equal to new
5560 * eval.c (Fsignal): Don't reset redisplaying_p here.
5562 * xterm.c (expose_area): If row extends face to end of line,
5563 write the whole line.
5565 1999-08-16 Gerd Moellmann <gerd@gnu.org>
5567 * dispextern.h (struct it): Remove member
5568 show_trailing_whitespace_p.
5570 * dispnew.c (direct_output_for_insert): Use
5571 Vshow_trailing_whitespace instead of former iterator member
5572 show_trailing_whitespace_p.
5573 (direct_output_forward_char): Don't do it if hightlighting
5574 trailing whitespace.
5576 * xdisp.c (Qshow_trailing_whitespace): Removed.
5577 (Vshow_trailing_whitespace): Added.
5578 (init_iterator): Remove initialization code for
5579 show_trailing_whitespace_p.
5580 (redisplay_internal): Don't try cursor movement in this_line
5581 if showing trailing whitespace.
5582 (redisplay_window): Likewise for cursor movement in current
5583 matrix and try_window_id.
5584 (try_window_reusing_current_matrix): Likewise.
5585 (trailing_whitespace_p): Return 0 if trailing whitespace is
5587 (display_line): Use Vshow_trailing_whitespace instead of
5588 former iterator member show_trailing_whitespace_p.
5589 (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace.
5591 1999-08-16 Gerd Moellmann <gerd@gnu.org>
5593 * window.c (Fpos_visible_in_window_p): Rewritten.
5595 * xfaces.c (add_to_log): Renamed from display_message.
5596 Don't display messages in echo area.
5598 * xterm.c (x_draw_glyph_string_box): Use the background width
5599 of the glyph string for the width of the box.
5601 1999-08-16 Stefan Monnier <monnier@cs.yale.edu>
5603 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
5605 1999-08-16 Geoff Voelker <voelker@cs.washington.edu>
5607 * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and
5608 background first, and then set other parameters that might
5609 depend upon their new values.
5611 1999-08-15 Gerd Moellmann <gerd@gnu.org>
5613 * xfaces.c (Vfont_list_limit): New.
5614 (syms_of_xfaces): Make it a user-variable.
5615 (DEFAULT_FONT_LIST_LIMIT): New.
5616 (sorted_font_list): If Vfont_list_limit is an integer > 0, list
5617 maximally that number of fonts, otherwise use
5618 DEFAULT_FONT_LIST_LIMIT.
5619 (Fx_font_family_list): Bind `font-list-limit' to higher values
5620 until we have all fonts.
5621 (Fxfont_list): Additionally return the full names of fonts and
5622 their registry and encoding.
5624 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5625 Simplify clearing "under" scroll bar.
5627 * window.c (Qfixed_window_size): New.
5628 (syms_of_window): Initialiaze it.
5629 (check_all_windows): Add return type void.
5630 (window_fixed_size_p): New. Return non-zero if window
5632 (window_min_size_1): New.
5633 (window_min_size): Handle fixed-size windows.
5634 (size_window): New. Rewritten combination of set_window_height and
5635 set_window_width that handles fixed-size windows.
5636 (set_window_height): Call it.
5637 (set_window_width): Call it.
5638 (Fsplit_window): Give an error on attempt to split a fixed-size
5640 (change_window_height): Partly rewritten to handle fixed-size
5643 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
5645 * process.c (Fopen_network_stream): Fix previous change.
5647 1999-08-13 Karl Heuer <kwzh@gnu.org>
5649 * xdisp.c (line_number_display_limit_width): New var.
5650 (decode_mode_spec): Use it instead of hardcoded value.
5651 (syms_of_xdisp): Defvar it.
5653 1999-08-13 Richard M. Stallman <rms@gnu.org>
5655 * eval.c (run_hook_list_with_args): Gcpro `globals'.
5656 (run_hook_with_args): Likewise.
5658 * window.h (struct window): New field too_small_ok.
5660 * window.c (set_window_height, set_window_width):
5661 If window starts out "too small", set its too_small_ok flag.
5662 If window's too_small_ok flag is set, don't delete it
5663 unless it is so small it would cause a crash.
5665 1999-08-13 Gerd Moellmann <gerd@gnu.org>
5667 * window.c (MINSIZE): Removed.
5668 (window_min_size): New.
5669 (set_window_height): Use window_min_size.
5670 (change_window_height): Ditto.
5672 1999-08-12 Gerd Moellmann <gerd@gnu.org>
5674 * indent.c (vmotion): Don't add in mini-buffer prompt width
5675 if prompts are inserted into mini-buffer.
5677 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
5679 * config.in: Add HAVE_GETADDRINFO.
5680 * process.c (Fopen_network_stream): Use getaddrinfo.
5682 1999-08-11 Gerd Moellmann <gerd@gnu.org>
5684 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
5687 * xdisp.c (face_before_or_after_it_pos): If position after
5688 or before iterator's current position in the buffer is out
5689 of bounds, return the iterator's original face id.
5691 * dispnew.c (mirror_make_current): If desired row isn't enabled,
5692 just swap glyphs pointers between current and desired row.
5693 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy
5694 desired matrix method string to current matrix.
5696 1999-08-11 Kenichi Handa <handa@etl.go.jp>
5698 * lisp.h (CHAR_MODIFIER_MASK): New macro.
5700 * lread.c (read_escape): For Control modifier, pay attention to
5701 multibyte character.
5702 (read1): Likewise. Singal error or a multibyte character which
5703 has a modifer bit. Check validity of Shift modifer.
5705 * charset.c (non_ascii_char_to_string): Handle modifier bits as
5706 the same as Lisp reader.
5708 1999-08-10 Richard M. Stallman <rms@gnu.org>
5710 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
5712 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
5714 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
5716 1999-08-10 Eli Zaretskii <eliz@gnu.org>
5718 * msdos.c (IT_set_face): Abort if the default face is not realized
5720 (IT_write_glyphs): Reset the screen face to the default face
5721 before writing glyphs.
5723 * xfaces.c (realize_default_face) [MSDOS]: Don't take default
5724 colors from the frame here.
5725 (realize_tty_face) [MSDOS]: Do it here. Update the face
5726 attributes with the actual name of the color taken from the
5729 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
5730 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
5732 * frame.c (Fframe_parameters): Swap foreground and background
5733 colors returned in frame parameters if the frame has reverse in
5734 its parameter alist.
5735 (Fmake_terminal_frame): Make a unique copy of face_alist for
5738 1999-08-07 Richard Stallman <rms@gnu.org>
5740 * buffer.c (Fprevious_overlay_change): Just return
5741 the answer obtained from overlays_at.
5743 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
5744 Use XpmCloseness and attrs.closeness instead.
5746 1999-08-06 Richard Stallman <rms@gnu.org>
5748 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
5750 1999-08-06 Geoff Voelker <voelker@cs.washington.edu>
5752 * dired.c (directory_files_internal, Fdirectory_files_and_attributes,
5753 Ffile_attributes_lessp): New functions.
5754 (Fdirectory_files): Use directory_files_internal.
5755 (syms_of_dired): Initialize Fdirectory_files_and_attributes,
5756 Ffile_attributes_lessp.
5758 * w32.c (stat): Check for directory ending in separator when
5759 doing readdir fast path.
5761 * w32fns.c (x_set_icon_type): Support setting frame icons.
5762 * w32term.c (x_bitmap_icon): New function.
5763 (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon.
5765 1999-08-06 Gerd Moellmann <gerd@gnu.org>
5767 * xdisp.c (set_iterator_to_next): After delivering a character
5768 from a display vector, restore face and charset to what they were
5769 before the display vector was processed.
5771 1999-08-06 Gerd Moellmann <gerd@gnu.org>
5773 * xdisp.c (reseat_at_next_visible_line_start): New parameter
5775 (set_iterator_to_next): After delivering last char
5776 from display vector, reseat on next visible line start if
5778 (next_element_from_buffer): Set dpvec_char_len to -1 for
5781 1999-08-06 Gerd Moellmann <gerd@gnu.org>
5783 * xdisp.c (compute_line_metrics): If first line's physical ascent
5784 is larger than its logical ascent, use the physical ascent, and
5785 make the row taller. Set row's overlapping_p flag.
5787 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
5788 (direct_output_for_insert): Ditto.
5790 * dispextern.h (struct glyph_row): Add overlapping_p.
5792 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
5794 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
5795 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
5797 * dispnew.c (direct_output_for_insert): Don't use this method if
5798 row is overlapped by others.
5799 (update_text_area): Write full line if current line is overlapped.
5800 (redraw_overlapped_rows): New.
5801 (update_window): Call it.
5802 (redraw_overlapping_rows): New.
5803 (update_window): Call it.
5804 (scrolling_window): Make sure overlapped_p flag in current rows is
5806 (row_equal_p): Take rows overlapped_p flag into account.
5808 * dispextern.h (struct glyph_row): Add flag overlapped_p.
5810 * xterm.c (x_fix_overlapping_area): New.
5811 (x_redisplay_interface): Add x_fix_overlapping_area.
5813 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
5815 1999-08-06 Gerd Moellmann <gerd@gnu.org>
5817 * xterm.c (x_draw_glyphs): Add parameter overlaps_p.
5818 (struct glyph_string): Add member for_overlaps_p.
5819 (x_get_glyph_string_clip_rect): If glyph string draws foreground
5820 of overlapping rows, clip to window bottom.
5821 (x_fill_glyph_string): Add parameter overlaps_p.
5822 (x_fill_composite_glyph_string): Ditto.
5823 (BUILD_GLYPH_STRINGS): Ditto.
5824 (BUILD_CHAR_GLYPH_STRINGS): Ditto.
5825 (x_draw_glyph_string): Don't draw anything but the foreground
5826 if glyph string draws row overlaps.
5828 * dispnew.c (direct_output_for_insert): Don't use this
5829 optimization for rows that overlap others.
5830 (update_window_line): Return non-zero if display has changed.
5831 (update_text_area): Ditto.
5832 (update_window): Record if display has been changed.
5834 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
5836 * dispextern.h (struct redisplay_interface): Add
5837 fix_overlapping_area.
5839 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
5841 * dispextern.h (struct glyph): Add overlaps_vertically_p.
5843 * xterm.c (x_produce_image_glyph): Compute iterator's physical
5845 (x_produce_stretch_glyph): Ditto.
5846 (x_produce_glyphs): Ditto.
5848 * xdisp.c (init_iterator): Reset physical line height info
5849 after producing special glyphs.
5850 (display_toolbar_line): Set physical line height info.
5851 (compute_line_metrics): Ditto.
5852 (display_line): Ditto.
5853 (display_string): Ditto.
5855 * term.c (produce_glyphs): Set iterator's physical height
5858 * dispnew.c (blank_row): Compute glyph row's physical height.
5859 (row_equal_p): Take physical row heights into account.
5860 (direct_output_for_insert): Ditto.
5861 (update_text_area): Ditto.
5863 * dispextern.h (struct glyph_row): Add phys_ascent and
5865 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
5868 1999-08-04 Stefan Monnier <monnier@cs.yale.edu>
5870 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
5872 (no_switch_buffer): New function.
5873 (Fswitch_to_buffer): Call them. Don't get confused
5874 by "same-window" buffers in a dedicated frame.
5876 * window.c (display-buffer): Don't get confused
5877 by "same-window" buffers in a dedicated frame.
5879 1999-08-04 Andreas Schwab <schwab@gnu.org>
5881 * insdel.c (insert_from_string_1): Check gap size against number
5882 of outgoing bytes, not incoming bytes.
5884 1999-08-03 Tom Breton <tob@world.std.com>
5886 * lread.c (read1): Added circular reading code to #N=.
5887 (SUBSTITUTE): New macro.
5888 (seen_list): New variable.
5889 (substitute_object_in_subtree): New function.
5890 (substitute_object_recurse): New function.
5891 (substitute_in_interval): New function.
5893 1999-08-02 Eli Zaretskii <eliz@gnu.org>
5895 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
5897 * frame.c (make_terminal_frame): Don't call init_frame_faces if
5898 noninteractive, for termcap frames as well.
5900 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
5903 1999-08-01 Richard Stallman <rms@gnu.org>
5905 * fns.c (internal_equal): Correct overlay comparison.
5907 1999-07-31 Richard M. Stallman <rms@gnu.org>
5909 * xfns.c (x_set_internal_border_width):
5910 Call do_pending_window_change. Don't block input, don't call XFlush.
5911 (x_set_vertical_scroll_bars): Call do_pending_window_change.
5912 (x_set_scroll_bar_width, x_set_font): Likewise.
5914 * frame.c (Fset_frame_height): Call do_pending_window_change.
5915 (Fset_frame_width, Fset_frame_size): Likewise.
5917 * xterm.c (x_set_window_size): When calling change_frame_size,
5918 specify 1 for DELAY.
5920 * widget.c (EmacsFrameSetCharSize): Don't call
5921 do_pending_window_change here.
5923 1999-07-30 Dave Love <fx@gnu.org>
5925 * config.in: Add HAVE_STDLIB_H.
5927 1999-07-30 Richard M. Stallman <rms@gnu.org>
5929 * process.c (create_process): Detect failure of `pipe'.
5931 1999-07-30 Keisuke Nishida <kei@psn.net>
5933 * alloc.c (allocate_vectorlike): Add missing increment.
5935 * data.c (Fdefalias): Call Ffset instead of duplicating code.
5937 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
5938 before calling indirect_function.
5940 1999-07-30 Eli Zaretskii <eliz@gnu.org>
5942 * dispextern.h (load_color, lookup_derived_face): Declare
5945 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
5946 it will be done later.
5948 * frame.c (make_terminal_frame) [MSDOS]: Don't call
5949 init_frame_faces if non-interactive.
5950 (Fframe_parameters) [MSDOS]: Replace indexing into colornames[]
5951 array with a call to msdos_stdcolor_name. The font name is now
5952 "ms-dos", consistent with realize_tty_face.
5954 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
5957 * window.c (Fset_window_configuration) [MSDOS]: Don't call
5958 x_set_toolbar_lines.
5960 * xfaces.c (load_color): Remove static from definition and remove
5962 [MSDOS]: Add a DOS-specific version of load_color.
5963 (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P.
5964 (lookup_derived_face): New function.
5965 (realize_default_face): Support MSDOS frames.
5966 [MSDOS]: If fore/background colors are unspecified, inherit them
5968 (realize_face): Support MSDOS frames.
5969 (realize_tty_face): Support MSDOS frames.
5970 [MSDOS]: If the face color is not in Vface_tty_color_alist, call
5971 load_color to try to find a suitable approximation. If the face
5972 is inverse-video, swap the foreground and background colors.
5974 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
5977 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
5979 * msdos.h: Remove redundant declarations (most of them are now in
5982 * msdos.c (IT_set_face): Rewritten for the new redisplay engine.
5983 Use default frame colors if the face doesn't specify them; invert
5984 the colors if highlight is ON.
5985 (IT_write_glyphs): Rewritten for the new redisplay engine.
5986 (IT_change_line_highlight): Add (unused) parameter Y, since that's
5987 how the hook is called by term.c.
5988 (IT_copy_glyphs): New function, copies an area of the display in
5990 (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since
5991 redisplay now calls it even if char_ins_del_ok is zero.
5992 (IT_set_frame_parameters): Prototype changed. Calls the new
5993 load_color. Puts the new fore/background colors into the default
5994 face on current frame.
5995 (IT_menu_display): Rewritten to handle the new struct glyph
5996 instead of a char array.
5997 (XMenuActivate): Call lookup_derived_face to create and use
5998 special faces for the pop-up and drop-down menus.
6000 1999-07-29 Gerd Moellmann <gerd@gnu.org>
6002 * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call
6003 XawScrollbarSetThumb if thumb parameters haven't changed because
6004 that function apparently isn't optimized for this case.
6006 1999-07-29 Eli Zaretskii <eliz@gnu.org>
6008 * msdos.c (getdefdir): Don't return failure indication when
6009 _fixpath sets errno to ENOSYS.
6011 1999-07-28 Gerd Moellmann <gerd@gnu.org>
6013 * xdisp.c (string_char_and_length): New. Use it everywhere
6014 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
6016 1999-07-28 Kenichi Handa <handa@etl.go.jp>
6018 * fns.c (count_combining): New function.
6019 (struct textprop_rec): New structure.
6020 (concat): Copy text properties correctly when byte combining
6023 1999-07-28 Gerd Moellmann <gerd@gnu.org>
6025 * xterm.c (x_setup_relief_color): Don't try smart color allocation
6027 (x_draw_row_bitmaps): If face has stipple, don't switch
6028 to foreground color for clearing areas, and set the fill style.
6030 * xfaces.c (load_face_colors): Load background color if setting
6032 (prepare_face_for_display): Use FillOpaqueStippled instead of
6035 1999-07-26 Ken'ichi Handa <handa@gnu.org>
6037 * xterm.c (x_find_ccl_program): Add casting.
6039 * w32fns.c (w32_find_ccl_program): Add casting.
6041 1999-07-27 Gerd Moellmann <gerd@gnu.org>
6043 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
6045 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
6046 because this will try to access a nonexisting widget.
6048 1999-07-26 Markus Rost <rost@gnu.org>
6050 * fns.c (Fgethash): Fix order of variables (patch by gerd).
6054 1999-07-26 Gerd Moellmann <gerd@gnu.org>
6056 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
6057 value to frame width and height.
6059 * xterm.c (x_get_glyph_string_clip_rect): Take internal border
6060 into account for full-width windows. Don't add scroll bar width
6061 to width of clip rect.
6062 (x_draw_glyph_string_box): Add 1 to right x of full width lines.
6063 (x_set_glyph_string_background_width): Add 1 to background width.
6064 (x_draw_glyphs): Take internal border into account for full-width
6067 1999-07-26 Richard M. Stallman <rms@gnu.org>
6069 * xfns.c (x_set_mouse_color): Always unload the old color.
6070 Don't allow nil as color value.
6071 (x_set_cursor_color, x_set_background_color, x_set_foreground_color):
6072 Always unload the old color.
6074 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
6076 1999-07-26 Karl Heuer <kwzh@gnu.org>
6078 * fns.c (Fy_or_n_p): Doc fix.
6080 1999-07-26 Kenichi Handa <handa@etl.go.jp>
6082 * ccl.h (setup_ccl_program): The type is changed to `int'.
6084 * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be
6085 stored in the following CCL code. Adjusted for the change of
6087 (resolve_symbol_ccl_program): Adjusted for the new style of
6088 embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt
6089 is resolving failed.
6090 (ccl_get_compiled_code): New function.
6091 (setup_ccl_program): Function type changed from `void' to `int'.
6092 Resolve symbols in CCL_PROG.
6093 (Fccl_program_p): New function.
6094 (Fccl_execute): Get compiled CCL code by just calling
6096 (Fccl_execute_on_string): Likewise.
6097 (Fregister_ccl_program): Adjusted for the change of
6100 * coding.c (setup_coding_system): Get compiled CCL code by just
6101 calling setup_ccl_program.
6103 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
6104 calling setup_ccl_program.
6106 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
6107 calling setup_ccl_program.
6109 1999-07-23 Gerd Moellmann <gerd@gnu.org>
6111 * xfaces.c (frame_update_line_height): Just use the height of the
6112 frame's fontset or font, instead of taking face fonts into
6115 * xdisp.c (get_next_display_element): Display DEL as `^?'.
6117 1999-07-23 Richard M. Stallman <rms@gnu.org>
6119 * window.c (Fsplit_window): For default size, round up for left window.
6121 1999-07-21 Joe Ramey <ramey@ti.com>
6123 * filelock.c (lock_if_free): Return -1 if check_lock_owner
6124 has returned -1 (lockfile exists but is not a symlink?).
6126 1999-07-20 Gerd Moellmann <gerd@gnu.org>
6128 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
6129 because of a change in cursor_gc made in 20.4.
6131 1999-07-19 Gerd Moellmann <gerd@gnu.org>
6133 * xterm.c (x_calc_absolute_position): Subtract menu bar height
6134 for YNegative, if using X toolkit.
6136 * xfns.c (x_real_positions): Don't subtract window borders
6137 from positions returned.
6139 1999-07-17 Gerd Moellmann <gerd@gnu.org>
6141 * xrdb.c (x_load_resources): Set double-click time defaults
6142 for Motif list boxes from double-click-time.
6144 * fns.c (Vhash_table_tests): Remvoed.
6145 (Qhash_table_test): New.
6146 (syms_of_fns): Initialize Qhash_table_test.
6147 (Fmake_hash_table): Look up user-defined tests in symbol prop
6149 (Fdefine_hash_table_test): Store test and hash function as
6150 symbol prop `hash-table-test'.
6151 (make_hash_table): Add parameters user_test and user_hash.
6153 * window.c (set_window_buffer): Set window margins for tty
6155 (Fset_window_margins): Ditto.
6157 * term.c (append_glyph): Use glyph area of iterator instead of
6160 * dispnew.c (update_frame_1): Add left margin width to cursor
6162 (direct_output_for_insert): Ditto.
6163 (direct_output_forward_char): Ditto.
6165 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
6167 * dispextern.h (struct glyph_matrix): Add top_line_p.
6169 1999-07-16 Gerd Moellmann <gerd@gnu.org>
6171 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
6174 * fns.c (cmpfn_eq): Add hash code parameters.
6176 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
6177 (cmpfn_user_defined): Likewise.
6179 1999-07-15 Gerd Moellmann <gerd@gnu.org>
6181 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
6183 * fns.c (maybe_resize_hash_table): Correct computation of
6185 (make_hash_table): Ditto.
6188 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
6190 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
6191 (survives_gc_p): Make it externally visible.
6192 (mark_object): Ditto.
6194 * fns.c (remove_hash_entry): Removed.
6195 (sweep_weak_hash_tables): New.
6197 * print.c (print): Print more information about hash tables.
6199 * xfns.c (image_spec_hash): Removed.
6200 (lookup_image): Use sxhash instead of image_spec_hash.
6201 (image_spec_equal_p): Removed.
6202 (lookup_image): Use Fequal instead of image_spec_equal_p.
6204 1999-07-14 Gerd Moellmann <gerd@gnu.org>
6206 * lisp.h (P_): Moved to top of file.
6208 * fns.c (make_hash_table): Set new members.
6210 * alloc.c (mark_object): Mark hash table's user_hash_function.
6211 Mark index vector for weak hash tables.
6213 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
6214 user_hash_function, cmpfn, and hashfn.
6216 * fns.c (build_hash): Removed.
6217 (hash_test): Removed.
6218 (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New.
6219 (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New.
6221 1999-07-13 Gerd Moellmann <gerd@gnu.org>
6223 * alloc.c (survives_gc_p): New.
6225 * print.c (print): Add hash table handling.
6227 * alloc.c (mark_object): Add code to mark hash tables.
6229 * lisp.h (GC_HASH_TABLE_P): New.
6231 * emacs.c (main): Call init_fns.
6233 * fns.c (init_fns): New.
6235 * fns.c: Add hash table implementation.
6237 * lisp.h (PVEC_HASH_TABLE): New.
6238 (struct Lisp_Hash_Table): New.
6240 (XSET_HASH_TABLE): New.
6241 (HASH_TABLE_P): New.
6242 (CHECK_HASH_TABLE): New.
6243 (DEFAULT_HASH_SIZE): New.
6244 (DEFAULT_REHASH_THRESHOLD): New.
6245 (DEFAULT_REHASH_SIZE): New.
6247 * xterm.c (x_draw_glyphs): Add parameters real_start and real_end.
6248 (x_write_glyphs): Compute overwritten cursor using real start
6249 and end positions of display.
6250 (x_insert_glyphs): Ditto.
6252 1999-07-10 Gerd Moellmann <gerd@gnu.org>
6254 * keyboard.c (read_char): Use message3_nolog to show help-echo.
6256 * dispnew.c (blank_row): Add y-position as parameter. Compute
6259 * xdisp.c (next_element_from_string): Give padding spaces
6262 * dispnew.c (adjust_glyph_matrix): Some work to support
6263 marginals areas on tty frames in a future version.
6264 (allocate_matrices_for_frame_redisplay): Ditto.
6266 * xdisp.c (display_line): At ZV, set glyph row's displays_text_p
6267 to zero if number of glyphs in the row is <= 1.
6269 1999-07-09 Gerd Moellmann <gerd@gnu.org>
6271 * dispnew.c (buffer_posn_from_coords): Take left marginal area
6274 * xdisp.c (handle_display_prop): Don't reset area if handing
6275 a property from a string that came from a `display' property.
6276 (handle_single_display_prop): Don't handle recursive `display'
6278 (handle_single_display_prop): Handle some display property
6279 forms for terminal frames.
6280 (Qimage): Moved here from xfns.c.
6282 * dispextern.h (struct it): New field string_from_display_prop_p.
6284 * xterm.c (x_clip_to_row): Don't let clip_rect include top
6287 1999-07-08 Gerd Moellmann <gerd@gnu.org>
6289 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
6291 * window.c (set_window_buffer): Set window's vscroll to zero.
6293 * xdisp.c (QCwhen): New.
6294 (display_prop_end): New.
6295 (handle_single_display_prop): Use it.
6296 (debug_method_add): Print buffer name if tracing.
6297 (try_window_reusing_current_matrix): Compute visible height
6298 of reused rows. Fix cursor position calculation in case of
6301 * dispextern.h (struct redisplay_interface): Add parameter
6302 cursor_on_p to update_window_end_hook.
6304 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
6306 1999-07-07 Gerd Moellmann <gerd@gnu.org>
6308 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
6309 doesn't become negative when decrementing it.
6311 * eval.c (Fsignal): Reset redisplaying_p to zero.
6313 * xdisp.c (try_window_reusing_current_matrix): Call hooks
6315 (try_window_id): Ditto.
6317 * xterm.c (x_clear_end_of_line): Handle top-line correctly.
6318 (x_scroll_run): Ditto.
6319 (any_help_event_p): New.
6320 (x_initialize): Set it to zero.
6321 (XTread_socket): Clear help echo only if any_help_event_p.
6323 * xdisp.c (init_iterator): Set top_line_p.
6324 (start_display): Use correct initial y if top-line is present.
6325 (make_cursor_line_fully_visible): Bug fixes for top-line.
6326 (try_scrolling): Ditto.
6327 (try_window_reusing_current_matrix): Ditto.
6329 * dispextern.h (struct it): Add top_line_p.
6331 * dispnew.c (shift_glyph_matrix): Move some computations out
6334 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
6337 1999-07-06 Gerd Moellmann <gerd@gnu.org>
6339 * dispnew.c (update_frame_1): When setting cursor in echo area,
6340 skip only over padding spaces at the end.
6342 * xfaces.c (realize_tty_face): Set face's font_name field to
6345 * term.c (update_end): Turn cursor on only if selected window's
6346 cursor_off_p flag is not set.
6348 1999-07-05 Gerd Moellmann <gerd@gnu.org>
6350 * term.c (TS_cursor_visible): Renamed from TS_visual_mode.
6351 (TS_cursor_normal): Renamed from TS_end_visual_mode.
6352 (TS_cursor_invisible): New.
6353 (term_init): Initialize TS_cursor_invisible.
6354 (tty_hide_cursor): New.
6355 (tty_show_cursor): New.
6356 (update_end): Show tty cursor.
6357 (update_begin): Hide tty cursor to prevent cursor flickering
6358 during redisplays triggered by timers (stealth fontification).
6360 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
6362 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
6364 (x_handle_toolbar_click): Set modifier bits.
6366 1999-07-04 Gerd Moellmann <gerd@gnu.org>
6368 * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer
6369 instead of a pointer to a volatile input_event.
6370 (kbd_buffer_store_event): Remove volatile modifier from
6371 declaration of local variable `sp'.
6372 (Fdiscard_input): Don't cast when assigning kbd_store_ptr
6375 1999-07-03 Gerd Moellmann <gerd@gnu.org>
6377 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
6378 only if buffer is modified. Return quickly if changes are
6381 1999-07-02 Gerd Moellmann <gerd@gnu.org>
6383 * dispextern.h (HSCROLL_WINDOWS): Removed.
6385 * xdisp.c (mark_window_display_accurate): Don't set
6387 (redisplay_internal): Don't call redraw_garbaged_frames.
6389 1999-07-01 Gerd Moellmann <gerd@gnu.org>
6391 * xdisp.c (echo_area_display): Don't display truncation marks
6392 for messages because 20.4 doesn't do it either.
6393 (redisplay_window): Case same window start. Instead of giving
6394 up when cursor is partially visible, make it fully visible.
6395 (mark_window_display_accurate): Some cleanup. Record window's
6396 last cursor information.
6397 (debug_method_add): Improved.
6398 (redisplay_internal): Record last cursor info only if not
6399 consider_all_windows_p.
6401 * dispnew.c (update_window): Update top line after scrolling.
6402 (blank_row): Renamed from make_empty_enabled_row.
6403 (increment_glyph_row_buffer_positions): Increment positions
6406 * window.c (Fcoordinates_in_window_p): Add top-line to doc
6409 1999-06-30 Gerd Moellmann <gerd@gnu.org>
6411 * dispnew.c (update_window): Check that updated row is visible.
6413 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
6414 top of window differently.
6416 * xdisp.c (try_window_reusing_current_matrix): Don't do it
6417 if region is showing.
6419 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
6420 avoiding matrix reallocation. Set window_vscroll in matrix.
6422 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
6424 * xdisp.c (debug_method_add): New.
6425 (debug_redisplay_method): Removed.
6426 (try_window_reusing_current_matrix): Handle case where old
6427 window start is the same as new window start.
6429 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
6430 an array instead of a pointer.
6432 * xfns.c (Fx_show_tip): Undo previous change.
6434 * xterm.c (x_append_glyph): Clear glyph->u.val.
6436 * dispextern.h (struct glyph): Increase size of face_id bit-field
6437 for CHAR_GLYPH to 12.
6439 1999-06-29 Gerd Moellmann <gerd@gnu.org>
6441 * xfaces.c (x_charset_registry): Make it externally visible.
6443 1999-06-28 Gerd Moellmann <gerd@gnu.org>
6445 * dispnew.c (update_window): Use mode_line_p flag of rows
6446 instead of WINDOW_WANTS_MODELINE_P.
6448 * xterm.c (clear_mouse_face): Make externally visible.
6450 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
6452 * xterm.c (expose_line): Handle exposure of top-lines.
6454 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
6455 if mouse_face_mouse_frame is null.
6457 * xdisp.c (redisplay_window): If window is echo_area_window,
6458 and update_mode_line is set, update menubar and toolbar.
6460 * dispnew.c (space_glyph): Set its charpos to -1.
6461 (update_frame_1): Ignore trailing padding spaces.
6463 * xdisp.c (next_element_from_c_string): Set position of padding
6466 1999-06-27 Gerd Moellmann <gerd@gnu.org>
6468 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
6471 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
6472 (set_cursor_from_row): Skip over glyphs having a null object at
6474 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
6476 (handle_invisible_prop): Compute next change only when needed.
6477 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
6480 1999-06-26 Gerd Moellmann <gerd@gnu.org>
6482 * xrdb.c (x_load_resources): Don't set resource for double-click
6485 * xdisp.c (try_window_id): Return quickly if all changes are
6486 below the window's current matrix end.
6488 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
6491 * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p
6492 in desired not in current matrix.
6493 (try_window_reusing_current_matrix): Rotate matrices starting
6494 at start_vpos instead of 0.
6496 * xterm.c (expose_window): Use window_text_bottom_y.
6497 (fast_find_position): Ditto.
6499 * xdisp.c (redisplay_window): Use window_text_bottom_y.
6500 (try_window_reusing_current_matrix): Ditto.
6501 (get_last_unchanged_at_beg_row): Ditto.
6502 (init_iterator): Ditto.
6504 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
6506 (check_matrix_invariants): Use window_text_bottom_y.
6507 (update_window): Ditto.
6508 (scrolling_window): Ditto.
6510 * xdisp.c (window_text_bottom_y): New.
6512 1999-06-25 Gerd Moellmann <gerd@gnu.org>
6514 * xterm.c (XTread_socket): Set mouse_face_frame to zero after
6515 clearing mouse face.
6516 (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If
6517 event.xcrossing.focus is not set, and focus is in the menu bar,
6518 set focus frame as if event.xcrossing.focus were set.
6520 1999-06-24 Gerd Moellmann <gerd@gnu.org>
6522 * keyboard.c (make_lispy_event): Handle mouse on top lines.
6523 * keyboard.c (make_lispy_movement): Ditto.
6525 * window.c (coordinates_in_window): Return 4 if on top line.
6526 (Fcoordinates_in_window_p): Return `top-line' if on top line.
6528 * xdisp.c (window_box_height): Subtract top line height.
6529 (window_box): Add top line height to top y position if top line
6531 (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to
6532 the top line row of the window. Set initial y-position to
6533 window's top line height plus delta.
6534 (start_display): Choose start glyph row depending on whether
6535 window has a top line.
6536 (try_scrolling): Take top line height into account for aggressive
6538 (compute_window_start_on_continuation_line): Take top line into
6540 (redisplay_window): Ditto. If top line height has changed,
6541 trigger a new redisplay.
6542 (try_window_reusing_current_matrix): Take top line into account.
6543 (find_last_row_displaying_text): Ditto.
6544 (get_last_unchanged_at_beg_row): DItto.
6545 (try_window_id): Ditto.
6546 (compute_line_metrics): Ditto.
6548 * dispnew.c (shift_glyph_matrix): Compute visible row height
6549 taking top line of window into account.
6550 (update_window): Update top line. If scrolling_window detects
6551 that all rows are equal, only set cursor.
6552 (update_window_line): Call after_update_window_line_hook if
6553 mode_line_p flag of rows has changed.
6554 (scrolling_window): Add parameter top_line_p. Return -1 if
6556 (mode_line_string): Add parameter mode_line_p. Handle strings
6559 * dispextern.h (MATRIX_TOP_LINE_ROW): New.
6560 (MATRIX_FIRST_TEXT_ROW): New.
6561 (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height.
6562 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New.
6563 (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New.
6564 (MATRIX_TOP_LINE_HEIGHT): New.
6565 (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height.
6566 (CURRENT_TOP_LINE_HEIGHT): New.
6567 (DESIRED_TOP_LINE_HEIGHT): New.
6568 (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New.
6569 (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces
6570 WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT.
6571 (WINDOW_DISPLAY_TEXT_HEIGHT): New.
6573 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
6575 (x_draw_row_bitmaps): Take top line into account when clearing
6577 (x_estimate_mode_line_height): Replacement for
6578 x_frame_mode_line_height.
6579 (x_get_glyph_string_clip_rect): Take top line into account.
6580 (x_clear_end_of_line): Ditto.
6581 (note_mode_line_highlight): Add parameter mode_line_p. Handle
6583 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
6584 (x_erase_phys_cursor): Take top line into account.
6586 * xdisp.c (window_box_height): Subtract top line height if
6587 window wants a top line.
6588 (display_mode_lines): New.
6589 (redisplay_window): Call it.
6590 (display_mode_line): Add parameters face_id and format.
6592 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
6593 (MATRIX_TOP_LINE_HEIGHT): New.
6595 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
6597 * term.c (estimate_mode_line_height): Renamed from
6598 frame_mode_line_height. Add parameter face_id.
6599 (estimate_mode_line_height_hook): Renamed from
6600 frame_mode_line_height_hook.
6601 (produce_special_glyphs_hook): Removed.
6602 (produce_glyphs_hook): Removed.
6604 1999-06-23 Gerd Moellmann <gerd@gnu.org>
6606 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
6607 (struct glyph_row): Add mode_line_p.
6609 * xfaces.c (realize_basic_faces): Realize face `top-line'.
6611 (syms_of_xfaces): Initialize Qtop_line.
6613 * dispextern.h (TOP_LINE_FACE_ID): New.
6615 * buffer.c (init_buffer_once): Set default for
6616 top_line_format to nil.
6617 (init_buffer_once): Init top_line_format.
6618 (default-top-line-format): New.
6619 (top-line-format): New buffer-local variable.
6621 * buffer.h: Add top_line_format.
6623 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
6625 1999-06-17 Dave Love <fx@gnu.org>
6627 * xfns.c: Move the PNG section before the JPEG one to avoid
6628 problems surrounding setjmp.h/png.h on GNU/Linux.
6630 1999-06-17 Gerd Moellmann <gerd@gnu.org>
6632 * xfns.c (x_kill_gs_process): Don't free colors.
6634 1999-06-17 Dave Love <fx@gnu.org>
6636 * s/gnu-linux.h: Zap spurious ~.
6638 1999-06-16 Gerd Moellmann <gerd@gnu.org>
6640 * xfns.c (gif_load): Improve multi-image support.
6642 1999-06-15 Gerd Moellmann <gerd@gnu.org>
6644 * xfns.c (gif_load): Support multi-image files.
6646 * Makefile.in (LIBGIF): Use libungif.
6648 * configure.in (HAVE_GIF): Use libungif instead of libgif
6649 because the former doesn't contain patented compression code.
6651 * xdisp.c (compute_window_start_on_continuation_line): Don't
6652 do it if line start is too far away from window start.
6654 1999-06-14 Gerd Moellmann <gerd@gnu.org>
6656 * buffer.c (init_buffer_once): Set buffer_local_flags for
6657 scroll_*_aggressively.
6658 (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively.
6659 (init_buffer_once): Set defaults for these variables.
6660 (syms_of_buffer): Add default-scroll-*-aggressively.
6662 * buffer.h (scroll_up_aggressively): New.
6663 (scroll_down_aggressively): New.
6665 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
6666 a static PNG library.
6668 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
6669 in case it's a static library.
6671 * Makefile.in (ctagsfiles): Split so that files starting
6672 with an `x' are found before files starting with `w32'.
6675 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
6677 * xdisp.c (compute_window_start_on_continuation_line): New.
6678 (redisplay_window): Use it.
6680 (reseat_to_string): Use it.
6681 (hscroll_window_tree): Ditto.
6682 (compute_window_start_on_continuation_line): Ditto.
6683 (redisplay_window): Don't force display with a new window start.
6685 1999-06-06 Gerd Moellmann <gerd@gnu.org>
6687 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
6688 if widget not present.
6690 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
6692 1999-06-04 Gerd Moellmann <gerd@gnu.org>
6694 * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return
6695 value of realize_basic_faces.
6696 (load_face_font_or_fontset): Store full font name in face.
6697 (realize_default_face): Use full font name.
6699 * xterm.c (x_produce_glyphs): Set member char_to_display.
6700 (x_append_glyph): Store char_to_display in glyphs.
6702 * dispextern.h (struct it): Add char_to_display.
6704 * xfns.c (x_set_font): Don't call face-set-after-frame-default
6705 if faces haven't been initialized.
6706 (Fx_create_frame): Call face-set-after-frame-default after
6707 faces have been initialized, and widget has been created.
6709 * puresize.h (BASE_PURESIZE): Increased.
6711 1999-06-01 Gerd Moellmann <gerd@gnu.org>
6713 * xfaces.c (set_lface_from_font_name): Add parameter force_p.
6714 (Finternal_set_lisp_face_attribute): If frame is t when
6715 :font attribute is set, use the selected frame.
6716 (clear_face_cache): Add parameter clear_fonts_p.
6717 (Fclear_face_cache): Add optional parameter thorougly.
6719 * xfaces.c (face_numeric_value): Return -1 if symbol is not
6721 (Fclear_face_cache): New.
6722 (choose_face_fontset_font): If fontset doesn't contain font
6723 pattern for the given charset, use CHARSET_ASCII.
6724 (Finternal_set_lisp_face_attribute): Fix handling of nil
6726 (Finternal_set_lisp_face_attribute): Fix handling of changing
6727 font-related face attributes of the default face.
6728 (set_lface_from_font_name): Set only attributes that aren't
6731 1999-05-31 Gerd Moellmann <gerd@gnu.org>
6733 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
6735 (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New.
6736 (x_face_list_fonts): Add parameter scalable_fonts_p. Handle
6737 scalable fonts depending on the setting of SCALABLE_FONTS.
6738 (first_font_matching): List more than one font to find the
6739 first non-scalable matching font.
6740 (sorted_font_list): Let x_face_list_fonts return scalable fonts
6741 depending on SCALABLE_FONTS.
6742 (better_font_p): New parameter compare_pt_p. If zero, don't
6743 compare point sizes of fonts.
6744 (exact_face_match_p) [SCALABLE_FONTS]: New.
6745 (build_scalable_font_name) [SCALABLE_FONTS]: New.
6746 (may_use_scalable_font_p) [SCALABLE_FONTS]: New.
6747 (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts.
6748 (syms_of_xfaces): Add scalable-fonts-allowed.
6750 1999-05-26 Gerd Moellmann <gerd@gnu.org>
6752 * xfns.c (png_load): Let PNG lib handle gamma. Construct
6753 mask only if image contains simple transparency information.
6754 Otherwise, combine image with frame background color.
6756 * configure.in (--with-png, HAVE_PNG): New.
6758 * config.in (HAVE_PNG): New.
6760 * Makefile.in: Add PNG library.
6762 * xfns.c: Add PNG support.
6764 1999-05-25 Gerd Moellmann <gerd@gnu.org>
6766 * xdisp.c (init_xdisp): Initialize echo_area_message and
6767 previous_echo_area_message to nil.
6769 * keyboard.c (read_char): Rename local variable echo_area_message
6770 because it shadows the global one.
6772 1999-05-05 Gerd Moellmann <gerd@gnu.org>
6774 * xterm.c (note_mode_line_highlight): Restructured.
6776 * window.c (coordinates_in_window): Handle windows that don't have
6777 a mode line because their buffer's mode-line-format is nil.
6778 Recognize the mode line under x positions that correspond to
6779 flags areas and left scroll bar.
6781 1999-05-02 Dave Love <fx@gnu.org>
6783 * xterm.c (note_mouse_highlight): Separate help-echo processing
6784 from check on mouse-face so that it works generally.
6786 1999-04-21 Gerd Moellmann <gerd@gnu.org>
6788 * sound.c (Fplay_sound): Run hook play-sound-hook.
6789 (Qplay_sound_hook): New.
6791 1999-04-20 Gerd Moellmann <gerd@gnu.org>
6793 * xdisp.c (update_echo_area): Handle echo_area_message.
6795 1999-04-19 Gerd Moellmann <gerd@gnu.org>
6797 * editfns.c (Fmessage): Use message3.
6799 * print.c (printchar): Set echo_area_message to nil.
6802 * minibuf.c (read_minibuf): Reset echo message strings to nil.
6803 (Fminibuffer_completion_help): Ditto.
6805 * keyboard.c (cmd_error_internal): Set echo_areA_message.
6806 (command_loop_1): Test echo_areA_message.
6808 (record_menu_key): Set echo_area_message to nil.
6809 (Fexecute_extended_command): Test echo_area_message.
6810 (Fexecute_extended_command): Handle echo_area_message.
6812 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
6815 * editfns.c (Fcurrent_message): If echo_area_message is set,
6816 return a substring of that string.
6818 * dispnew.c (direct_output_for_insert): Test echo_area_message
6819 in addition to echo_area_glyphs.
6820 (set_window_cursor_after_update): Ditto.
6821 (update_frame_1): Ditto.
6823 * alloc.c (Fgarbage_collect): Use message3_nolog to display
6824 old Lisp message string.
6826 * xdisp.c (echo_area_message): New.
6827 (previous_echo_area_message): New.
6828 (syms_of_xdisp): Initialize and staticpro new variables.
6829 (echo_area_display): Display echo_area_message if set.
6830 (message2_nolog): Set echo_area_message and
6831 previous_echo_area_message.
6832 (echo_area_display): Set previous_echo_area_message.
6833 (redisplay_internal): Display echo area if echo_area_message
6834 or previous_echo_area_message are set.
6835 (redisplay_preserve_echo_area): Test/set echo_area_message and
6836 previous_echo_area_message.
6837 (redisplay_window): Test echo_area_message.
6838 (message3_nolog): New.
6841 * editfns.c (Fformat): Add text properties to the result string
6842 from properties of the format string and properties of string
6845 * textprop.c (text_property_list): New.
6846 (add_text_properties_from_list): New.
6847 (extend_property_ranges): New.
6849 1999-03-29 Gerd Moellmann <gerd@gnu.org>
6851 * xfaces.c (Qraised, Qsunken, QCshadow): Removed.
6852 (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New.
6853 Use these symbols for the box face attribute instead of the
6856 1999-03-12 Gerd Moellmann <gerd@gnu.org>
6858 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
6859 Correct wrong test for slant.
6861 1999-03-10 Gerd Moellmann <gerd@gnu.org>
6863 * xfaces.c: Use `unspecified' for unspecified face attributes,
6864 use t and nil for on/off.
6866 1999-03-06 Gerd Moellmann <gerd@gnu.org>
6868 * buffer.c (syms_of_buffer): Extend doc string of
6871 * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p.
6872 (first_font_matching): New.
6873 (set_lface_from_font_name): Use it if font name is a pattern.
6874 (font_field_wildcard_p): Removed.
6876 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
6877 Recompute visible height of rows.
6879 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
6880 Don't accept non-strings for help-echo from overlays.
6882 1999-03-04 Dave Love <fx@gnu.org>
6884 * xterm.c (note_mouse_highlight): Check overlays for help-text
6886 (XTread_socket): Fix compiler warning.
6888 1999-03-05 Gerd Moellmann <gerd@gnu.org>
6890 * xterm.c (note_mouse_highlight): Don't restrict number of
6891 overlay to 10. Call overlays_at so that it doesn't try to
6894 * xdisp.c (compute_line_metrics): Compute glyph row's visible
6897 * dispnew.c (row_equal_p): Compare visible row height, only.
6898 (update_text_area): Draw whole line if visible heights of
6900 (update_window_line): Call after_update_window_line_hook
6901 if visible row height has changed.
6903 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
6904 (struct glyph_row): New member visible_height.
6906 * xfaces.c (font_field_wildcard_p): New.
6907 (set_lface_from_font_name): Remove parameter force_p. Accept
6908 font names containing wildcards.
6910 1999-03-04 Gerd Moellmann <gerd@gnu.org>
6912 * xterm.c (x_after_update_window_line): Clear internal border
6913 when windows_or_buffers_changed.
6915 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
6916 buffer has a nil mode_line_format.
6918 1999-03-03 Gerd Moellmann <gerd@gnu.org>
6920 * xterm.c (x_setup_relief_colors): Use either background color
6923 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
6925 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
6927 * xterm.c (x_draw_box_rect): New.
6928 (x_draw_glyph_string_box): Renamed from
6929 x_draw_glyph_string_relief. Call x_draw_box_rect.
6931 * xfns.c (QCrelief): New.
6932 (syms_of_xfns): Initialize it.
6934 * dispextern.h (struct glyph): Rename left_shadow_p to
6935 left_box_line_p, right_shadow_p to right_box_line_p.
6936 (MAX_RELIEF_THICKNESS): Removed.
6937 (struct it): Rename members having `relief' in their names
6938 to contain `box' instead.
6940 * xfaces.c (realize_x_face): Handle new box attribute values.
6941 (QCrelief, Qbox): Removed.
6942 (QCshadow, QCcolor, Qraised, Qsunken): New.
6943 (syms_of_xfaces): Initialize new symbols.
6945 1999-03-02 Gerd Moellmann <gerd@gnu.org>
6947 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
6949 * xfaces.c (LFACE_RELIEF): Removed.
6950 (merge_face_vector_with_property): Remove handling of `:relief'.
6951 (Finternal_set_lisp_face_attribute): Ditto.
6952 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
6953 (Finternal_get_lisp_face_attribute): Ditto.
6954 (realize_default_face): Ditto.
6955 (lface_hash): Don't compute hash from relief.
6957 * dispextern.h (struct face): Replace member `relief' by
6958 `box_line_width'. Add member `box'.
6959 (face_box_type): New.
6961 * xterm.c (x_produce_glyphs): If face has overline, add overline
6962 thickness + 1 to ascent.
6964 1999-03-01 Gerd Moellmann <gerd@gnu.org>
6966 * xterm.c (x_draw_glyph_string): Draw underline, overline,
6967 strike-through, and boxes.
6968 (x_draw_glyph_string_underline): Removed.
6970 * xfaces.c (QCoverline, QCstrike_through, QCbox): New.
6971 (Qoverline, Qstrike_through, Qbox): New.
6972 (syms_of_xfaces): Define these symbols.
6973 (check_lface_attrs): Add checks for overline, strike-through,
6975 (Finternal_set_lisp_face_attribute): Set new attributes.
6976 (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New.
6977 (load_color): Handle new attributes.
6978 (realize_x_face): Ditto.
6979 (merge_face_vector_with_property): Ditto.
6980 (free_face_colors): Ditto.
6981 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
6982 (Finternal_get_lisp_face_attribute): Ditto.
6983 (Finternal_lisp_face_attribute_values): Ditto.
6985 * dispextern.h (lface_attribute_index): Add enumerators for
6986 overstrike, strike-through, and box.
6987 (struct face): Add members for overline, strike-through, and
6990 1999-02-17 Dave Love <fx@gnu.org>
6992 * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h
6993 s/template.h (NARROWPROTO): Define on the basis of relevant X cf
6996 1999-02-16 Gerd Moellmann <gerd@gnu.org>
6998 * keyboard.c (toolbar_items): Call access_keymap with third
6999 parameter 1, so that we don't get inherited toolbar item
7002 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
7003 the window end vpos when in empty first line of window.
7005 1999-02-15 Gerd Moellmann <gerd@gnu.org>
7007 * xfaces.c (set_font_frame_param): New.
7008 (Finternal_set_lisp_face_attribute): Call it.
7010 Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7012 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
7013 Accept specifications of color for underline.
7015 1999-02-13 Gerd Moellmann <gerd@gnu.org>
7017 * xfaces.c (Finternal_set_lisp_face_attribute): If parameter
7018 `frame' is t, operate on face defaults for new frames. If it
7019 is nil, operate on the selected frame.
7021 1999-02-12 Gerd Moellmann <gerd@gnu.org>
7023 * dispnew.c (check_matrix_invariants): Put it in #if 0.
7024 (update_window): Put the call to check_matrix_invariants in #if 0.
7026 Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7028 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
7029 Remove definition of UNDERLINE_COLOR.
7031 Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7033 * xfaces.c (free_face_colors): Free the color for underline.
7035 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
7038 Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7040 * dispextern.h (UNDERLINE_COLOR): Defined.
7041 (struct face): Added two new members.
7042 underline_color, underline_defaulted_p.
7044 * xfaces.c (merge_face_vector_with_property):
7045 (check_lface_attrs): Accept the string value for underline.
7046 (Finternal_set_lisp_face_attribute): Likewise.
7048 * xfaces.c (load_color): Change the last argument type to enum
7049 lface_attribute_index from int. And addec code for underling coloring.
7050 (load_face_colors): Pass LFACE_*_INDEX to load_color.
7052 1999-02-12 Gerd Moellmann <gerd@gnu.org>
7054 * xfns.c (Fx_image_header): Removed.
7056 1999-02-07 Gerd Moellmann <gerd@gnu.org>
7058 * xterm.c: Don't include <bitmaps/gray>.
7059 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
7061 * xfns.c (Fx_image_header): Add missing `\n\'.
7062 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
7064 1999-02-01 Gerd Moellmann <gerd@gnu.org>
7066 * xterm.c (x_scroll_bar_create): Set background pixel from
7067 specified scroll bar color.
7068 (x_scroll_bar_set_handle): Use scroll bar foreground color.
7070 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
7071 (x_set_scroll_bar_background): Ditto.
7073 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
7075 * xfns.c (x_default_scroll_bar_color_parameter): New.
7076 (Fx_create_frame): Call it.
7078 1999-01-31 Gerd Moellmann <gerd@gnu.org>
7080 * xfns.c (Fx_create_frame): Initialize scroll bar pixel color
7081 values in x_output structure.
7082 (Qscroll_bar_foreground, Qscroll_bar_background): New.
7083 (syms_of_xfns): Initialize these symbols.
7085 * xterm.h (struct x_output): Add scroll bar pixel colors.
7087 * xfns.c (x_frame_parms): Add entries for scroll bar colors.
7088 (x_set_scroll_bar_foreground): New.
7089 (x_set_scroll_bar_background): New.
7091 1999-01-12 Gerd Moellmann <gerd@gnu.org>
7093 * xdisp.c (handle_single_display_prop): New.
7094 (handle_display_prop): Call it.
7095 (handle_raise_prop): Removed.
7096 (handle_height_prop): Removed.
7097 (handle_space_width_prop): Removed.
7098 (handle_face_prop): Remove handling of raised text.
7099 (handle_display_prop): Do it here.
7101 * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX.
7102 (RAISE_PROP_IDX): Removed.
7103 (HEIGHT_PROP_IDX): Removed.
7104 (SPACE_WIDTH_PROP_IDX): Removed.
7106 * xdisp.c (Qdisplay): Replaces Qglyph.
7107 (handle_display_prop): Formerly handle_glyph_prop.
7109 1999-01-11 Gerd Moellmann <gerd@gnu.org>
7111 * xdisp.c (reseat_to_string): Set position in display vector to -1.
7112 (handle_stop): Set position in display vector to -1. Don't
7113 check overlay strings when set up to deliver characters from a
7115 (set_iterator_to_next): At the end of a run of characters from a
7116 display vector, check whether the display vector display replaces
7117 the display of a character.
7119 1999-01-05 Gerd Moellmann <gerd@gnu.org>
7121 * xfaces.c (init_frame_faces): Don't realize faces if frame's
7122 X window hasn't been created yet.
7124 1998-12-06 Gerd Moellmann <gerd@gnu.org>
7128 1998-12-04 Gerd Moellmann <gerd@gnu.org>
7130 * config.in (HAVE_SOUND): New.
7132 * emacs.c (main): Call syms_of_sound and init_sound.
7134 * Makefile.in (obj): Add sound.o.
7136 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
7138 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
7139 (HAVE_SYS_SOUNDCARD_H): New.
7141 1998-12-03 Gerd Moellmann <gerd@gnu.org>
7143 * buffer.h (struct buffer): indicate_empty_lines renamed from
7146 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
7147 (default-indicate-zv-lines): Likewise.
7149 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
7150 to indicate_empty_line_p.
7152 * xdisp.c (reseat_at_next_visible_line_start): Reset method
7153 to next_element_from_buffer.
7155 * frame.c (make_frame): Set n_current_toolbar_items to 0.
7157 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
7160 * xfns.c (xbm_scan): New.
7161 (xbm_read_hexint): Removed.
7162 (xbm_read_bitmap_file_data): Use xbm_scan.
7164 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
7166 1998-12-02 Gerd Moellmann <gerd@gnu.org>
7168 * xfns.c (xbm_read_hexint): New.
7169 (xbm_read_bitmap_file_data): New.
7170 (xbm_load_image_from_file): Call xbm_read_bitmap_file_data
7171 instead of XReadBitmapFileData.
7173 * xdisp.c (handle_raise_prop): Compute voffset from current font.
7175 * xfaces.c (face_with_height): New.
7177 * xdisp.c (eval_handler): Renamed from eval_mode_handler.
7178 (eval_form): Renamed from eval_mode_element.
7179 (handle_face_prop): Use it.
7180 (Qheight): Replaces Qsmaller.
7181 (handle_height_prop): Replaces handle_smaller_prop.
7182 (handle_face_prop): If iterator's font_height is not an
7183 integer, evaluate it to get the font height to use.
7185 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
7186 (struct it): Use `font_height' instead of `smaller'.
7188 1998-12-01 Gerd Moellmann <gerd@gnu.org>
7190 * xdisp.c (reseat_1): New.
7192 (move_it_vertically_backward): Ditto.
7193 (redisplay_window): Don't abort when cursor not found in recenter.
7195 1998-11-30 Gerd Moellmann <gerd@gnu.org>
7197 * xdisp.c (reseat_at_next_visible_line_start): When not
7198 currently delivering display elements from the current buffer,
7199 restore buffer position first.
7200 (init_from_display_pos): Don't set IT's position from the
7201 position passed to this function.
7203 1998-11-28 Gerd Moellmann <gerd@gnu.org>
7205 * config.in (PROTO): Removed.
7207 * xterm.h: Change PROTO to P_.
7209 1998-11-26 Gerd Moellmann <gerd@gnu.org>
7211 * xterm.c (take_vertical_position_into_account): New.
7212 (x_produce_image_glyph): Call it.
7213 (x_produce_stretch_glyph): Ditto.
7214 (x_produce_glyphs): Ditto.
7215 (x_fill_glyph_string): Adjust base line for glyph's voffset.
7216 (x_fill_composite_glyph_string): Ditto.
7217 (x_fill_image_glyph_string): Ditto.
7218 (x_fill_stretch_glyph_string): Ditto.
7220 * xdisp.c (display_line): Always compute row height from
7221 max_ascent and max_descent.
7223 * dispextern.h (struct glyph): Add voffset.
7224 (struct it): Replace height by descent, max_height by max_descent.
7226 * xterm.c (x_append_glyph): Set voffset
7227 (x_append_stretch_glyph): Ditto.
7228 (x_produce_image_glyph): Ditto.
7229 (x_produce_glyphs): Take voffset into account.
7230 (x_produce_image_glyph): Ditto.
7231 (x_produce_stretch_glyph): Ditto.
7233 * dispextern.h (struct it): Add voffset.
7234 * xdisp.c (push_it): Save voffset.
7235 (pop_it): Restore it.
7237 * xdisp.c (it_props): Add entry for `raise'.
7238 (handle_raise_prop): New.
7240 * dispextern.h (RAISE_PROP_IDX): New.
7242 * xdisp.c (Qraise): New.
7243 (syms_of_xdisp): Define Qraised.
7245 * xterm.c (x_scroll_bar_move): Clear to the left and right
7246 of toolkit scroll bars differently.
7247 (x_scroll_bar_move): Removed.
7248 (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here.
7250 * dispextern.h: Make it compilable --with-x=no.
7254 * keyboard.c: Ditto.
7261 1998-11-25 Gerd Moellmann <gerd@gnu.org>
7263 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
7265 1998-11-24 Gerd Moellmann <gerd@gnu.org>
7267 * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging,
7268 update slider size, only.
7269 (xm_scroll_callback): Set dragging member of the scroll bar.
7270 (xt_action_hook): Reset last_scroll_bar_part.
7271 (XTredeem_scroll_bar): Reset bar->dragging to nil.
7273 * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor
7274 window on newly created frames that don't have one.
7276 1998-11-23 Gerd Moellmann <gerd@gnu.org>
7278 * xdisp.c (restore_overlay_strings): Removed.
7279 (restore_dpvec): Removed.
7280 (init_from_display_pos): Inline both functions above.
7282 * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New.
7283 (parse_image_spec): Handle it.
7284 (xbm_format): Use it.
7285 (xpm_format): Ditto.
7286 (pbm_format): Ditto.
7287 (jpeg_format): Ditto.
7288 (tiff_format): Ditto.
7289 (gif_format): Ditto.
7292 * xdisp.c (set_window_cursor): Removed.
7293 (redisplay_internal): Case cursor motion in cursor line of
7294 selected window; use set_cursor_from_row.
7296 1998-11-22 Gerd Moellmann <gerd@gnu.org>
7298 * widget.c (EmacsFrameSetCharSize): Take widget's border width
7301 1998-11-21 Gerd Moellmann <gerd@gnu.org>
7303 * xterm.c (expose_frame): Redraw menu bar window.
7305 * xdisp.c (display_menu_bar): Record hpos instead of x-position
7308 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
7309 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
7311 * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS
7312 to determine vertical_scroll_bar_extra.
7313 (EmacsFrameSetCharSize): Ditto.
7314 * xfns.c (x_figure_window_size): Ditto.
7316 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
7317 (x_draw_bitmap): Ditto.
7319 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
7320 * xfaces.c (realize_basic_faces): Realize it.
7322 1998-11-20 Gerd Moellmann <gerd@gnu.org>
7324 * xmenu.c (xmenu_show): Add workaround for remaining button grab
7325 under LessTif Use the widget of the frame as parent for the
7328 1998-11-19 Gerd Moellmann <gerd@gnu.org>
7330 * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify.
7331 When EnterNotify, don't generate a mouse movement event if
7332 notification is from a busy-cursor child window.
7334 * xterm.h (struct x_output): Add busy_window, remove cursor.
7336 * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor.
7337 Use a transparent window to display the busy-cursor.
7338 (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor.
7340 1998-11-17 Gerd Moellmann <gerd@gnu.org>
7342 * xdisp.c (check_window_end): New, for debugging.
7343 (CHECK_WINDOW_END): New.
7344 (try_window_id): Use it.
7346 * xterm.c (process_expose_from_menu): Return int.
7348 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
7349 TOOLBAR_EVENT events in last_nonmenu_event.
7351 1998-11-16 Gerd Moellmann <gerd@gnu.org>
7353 * xdisp.c (redisplay_window): If windows_or_buffers_changed,
7354 window end isn't reliable, so set window_end_valid to nil.
7355 (redisplay_internal): If overlay arrow has changed, set
7356 windows_or_buffers_changed to redisplay thoroughly.
7358 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
7361 * xfns.c (file_dialog_cb): New.
7362 (Fx_file_dialog): New.
7363 * fileio.c (Fread_file_name): Call it.
7365 * xrdb.c (x_load_resources): Add default resoures for file
7368 1998-11-14 Gerd Moellmann <gerd@gnu.org>
7370 * xterm.c (note_mouse_highlight): Don't highlight when popup
7373 * keyboard.c (timer_check): Inhibit busy cursor around calls to
7374 timer-event-handler. This busy cursor tends to be anoying if
7375 fontifying stealthily.
7377 * dispnew.c (direct_output_for_insert): Give up if current row
7378 contains trailing whitespace.
7380 1998-11-13 Gerd Moellmann <gerd@gnu.org>
7382 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
7384 * xdisp.c (handle_fontified_prop): New.
7385 (Vfontification_functions): New.
7386 (Qfontification_functions): New.
7387 (it_props): Add handle_fontified_prop.
7389 1998-11-12 Gerd Moellmann <gerd@gnu.org>
7391 * xmenu.c (xmenu_show): Use the frame's edit_widget as parent.
7392 Otherwise, under LessTif, after the popup has gone, all button
7393 press events come in for the frame's widget, and release events
7394 come in for the edit_widget.
7395 * xterm.c (XTread_socket): Remove workaround for that problem.
7396 (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif
7397 XmScrollBarSetValues.
7398 (SET_SAVED_MENU_EVENT): Give it statement form.
7400 * xfaces.c (display_message): If waiting_for_input, don't display
7403 * window.c (scroll_command): If not acting on current_buffer,
7404 make redisplay consider all windows.
7406 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
7408 * xdisp.c (handle_glyph_prop): Set it->object for images to
7409 the object having the glyph property.
7411 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
7414 1998-11-11 Gerd Moellmann <gerd@gnu.org>
7416 * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c
7417 (x_term_init): Create the gray pixmap.
7418 (x_setup_relief_color): Use it.
7419 (x_get_glyph_string_clip_rect): Draw a toolbar window over the
7420 internal border at the top of a frame.
7421 (x_init_glyph_string): Likewise.
7422 (x_draw_glyph_string_relief): Correct right x by 1 pixel for
7424 (XTflash): Don't flash the toolbar window.
7426 * xterm.c (XTread_socket): Workaround for LessTif popup menus
7427 in case of ButtonPress events.
7429 1998-11-10 Gerd Moellmann <gerd@gnu.org>
7431 * xrdb.c (x_load_resources): Add grey background colors as
7432 defaults for menus, scroll bars, and dialogs.
7434 * insdel.c (prepare_to_modify_buffer): Move setting
7435 windows_or_buffers_changed from modify_region here.
7437 * xfns.c (Fx_show_tip): Inhibit redisplay.
7438 (Fx_hide_tip): Ditto.
7439 (Fx_image_header): New.
7441 1998-11-09 Gerd Moellmann <gerd@gnu.org>
7443 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
7444 when clearing current window matrices.
7446 1998-11-08 Gerd Moellmann <gerd@gnu.org>
7448 * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer
7449 position from a string position. Use the right end position
7450 if the property spans a whole overlay string.
7452 1998-11-07 Gerd Moellmann <gerd@gnu.org>
7454 * xmenu.c (menubar_selection_callback): Remove workaround for
7455 Lesstif not calling XmNpopdownCallback because it doesn't
7456 handle the case where users don't select any menu item.
7458 * insdel.c (modify_region): Set windows_or_buffers_changed.
7460 * buffer.c (set_buffer_internal): Don't set
7461 windows_or_buffers_changed.
7463 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
7465 * xmenu.c (menubar_selection_callback): Add workaround for
7466 Lesstif not calling XmNpopdownCallback.
7468 * xdisp.c (eval_mode_element): New.
7469 (eval_mode_handler): New.
7470 (display_mode_element): Use eval_mode_element.
7472 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
7473 Remove code looking at text props of default value.
7475 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
7477 1998-11-06 Gerd Moellmann <gerd@gnu.org>
7479 * xmenu.c (single_submenu): Set button_type of menu to
7481 (single_submenu): Likewise for panes and menu items.
7482 (set_frame_menubar): Set button_type of menu bar to none.
7483 (xmenu_show): Likewise.
7484 (single_submenu): Set widget values selected slot.
7485 (xmenu_show): Likewise.
7487 * xmenu.c (push_menu_item): Add parameters `type' and
7488 `selected'. Store it in menu_items.
7489 (MENU_ITEMS_ITEM_TYPE): New.
7490 (MENU_ITEMS_ITEM_SELECTED): New.
7491 (MENU_ITEMS_ITEM_LENGTH): Increase by two.
7493 * xfns.c (clear_image_cache): Get the current time, before
7495 (cache_image): Set prev pointer of next image.
7496 (clear_image_cache): Clear current matrices if any image was
7499 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
7501 * xfns.c (x_set_cursor): New.
7502 (Fx_display_busy_cursor): New.
7503 (Fx_undisplay_busy_cursor): New.
7505 * xterm.h (struct x_output): Add busy_cursor.
7507 * xfns.c (Vx_busy_pointer_shape): New.
7508 (x_set_mouse_color): Create busy cursor.
7510 * process.c (wait_reading_process_input): Show and hide busy
7513 * keyboard.c (command_loop_1): Display busy cursor.
7515 * eval.c (Fsignal): Hide busy cursor.
7517 * buffer.c (set_buffer_internal): Don't set
7518 windows_or_buffers_changed.
7520 * xterm.c (redo_mouse_highlight): New.
7522 1998-11-04 Gerd Moellmann <gerd@gnu.org>
7524 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
7525 (x_build_heuritic_mask): New.
7526 (lookup_image): Call it.
7528 * xterm.c (note_toolbar_highlight): Always set up help_echo.
7529 (previous_help_echo): New.
7530 (XTread_socket): Generate help event with nil message when
7531 leaving a region with help-echo.
7532 (note_mouse_highlight): Handle `help-echo' over text.
7533 (XTread_socket): Dispatch VisibilityNotify, CirculateNotify,
7535 (clear_mouse_face): Don't clear if tooltip is shown.
7536 (XTread_socket): Redo mouse-highlight after tooltip is gone.
7537 Avoid SET_FRAME_GARBAGED when tooltip is mapped.
7539 * keyboard.c (Vshow_help_function): New.
7540 (read_char): Use it.
7542 1998-11-03 Gerd Moellmann <gerd@gnu.org>
7544 * xfns.c (x_create_tip_frame): New.
7548 * xterm.c (x_destroy_window): Handle case that we don't have
7551 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
7552 to full_width_p. Add internal_border_p.
7554 1998-11-02 Gerd Moellmann <gerd@gnu.org>
7556 * xterm.c (note_mode_line_highlight): Check the charpos of
7557 the glyph under the mouse pointer before accessing text
7558 properties at that position.
7560 1998-11-01 Gerd Moellmann <gerd@gnu.org>
7562 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
7564 * xdisp.c (auto-raise-toolbar-buttons): New.
7565 (build_desired_toolbar_string): Handle the flag.
7566 (toolbar-button-margin): New.
7567 (toolbar-button-relief): New.
7568 (build_desired_toolbar_string): Use margin and relief.
7570 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
7572 (note_mode_line_highlight): New.
7573 (note_mouse_highlight): Call it.
7575 1998-10-31 Gerd Moellmann <gerd@gnu.org>
7577 * s/freebsd.h (NARROWPROTO): New.
7579 * xdisp.c (display_string): New parameter face_string.
7580 (display_mode_element): When displaying a symbol with a string
7581 value, use text properties from the symbol's default value, maybe.
7583 * xrdb.c (x_load_resources): Add font defaults for menus and
7586 1998-10-30 Gerd Moellmann <gerd@gnu.org>
7588 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
7590 1998-10-29 Gerd Moellmann <gerd@gnu.org>
7592 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
7593 produced for characters with codes < 32 under certain
7596 * xdisp.c (redisplay_window): Handle values of PT in front
7597 of invisible, intangible text.
7598 (try_window_id): Set overlay_arrow_seen to zero before
7600 (display_mode_element): Assign to glyphs written for a mode
7601 line spec `%x' as object the Lisp format string, as position
7602 the position of the `%' in that string.
7603 (display_string): If displaying a C string, optionally get
7604 the face to use from a Lisp string.
7606 * xterm.c (expose_window_tree): Include mode line height.
7608 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
7610 1998-10-27 Gerd Moellmann <gerd@gnu.org>
7612 * xterm.c (note_mouse_highlight): Change mouse pointer shape
7615 1998-10-26 Gerd Moellmann <gerd@gnu.org>
7617 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
7619 * xdisp.c (redisplay_window): If mode line height has changed,
7620 arrange for a thorough immediate redisplay using the correct mode
7622 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
7624 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
7625 (CURRENT_MODE_LINE_HEIGHT): New.
7626 (DESIRED_MODE_LINE_HEIGHT): New.
7628 * keyboard.c (make_lispy_event): Add string and string position
7629 info to mouse-click events.
7630 (read_key_sequence): Handle `local-map' property of mode line
7633 * keyboard.h (POSN_STRING): New.
7635 1998-10-25 Gerd Moellmann <gerd@gnu.org>
7637 * dispnew.c (mode_line_string): Mew.
7639 * xterm.c (xt_action_hook): New.
7640 (x_create_toolkit_scroll_bar): Add action hook.
7641 (xm_scroll_callback): Implement dragging.
7643 * keyboard.c (Qend_scroll): New.
7644 (scroll_bar_parts): Add it.
7646 * termhooks.h (scroll_bar_end_scroll): New.
7648 * xterm.c (XTread_socket): Bug fix.
7650 1998-10-24 Gerd Moellmann <gerd@gnu.org>
7652 * xdisp.c (redisplay_window): Finish scroll bars after
7653 redisplaying toolbar.
7655 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
7656 (syms_of_keyboard): Add Qbottom.
7658 * termhooks.h (scroll_bar_to_top): New.
7659 (scroll_bar_to_bottom): New.
7661 * xdisp.c (redisplay_window): Always resize toolbar window if
7662 auto_resize_toolbar_p is non-zero.
7663 (auto_resize_toolbar_p): Renamed from auto_resize_toolbar.
7665 (window_box_height): New.
7666 (window_box_width): New.
7667 (window_box_left): New.
7668 (window_box_right): New.
7669 (window_box_edges): New.
7671 1998-10-23 Gerd Moellmann <gerd@gnu.org>
7673 * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to
7674 XawScrollbarSetThumb in FreeBSD.
7675 (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap"
7678 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
7681 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
7682 (x_term_init): Initialize it.
7684 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
7686 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
7689 1998-10-22 Gerd Moellmann <gerd@gnu.org>
7691 * keyboard.c (make_lispy_event): Handle scroll_bar_click
7692 differently when using toolkit scroll bars.
7694 * xterm.c (x_send_scroll_bar_event): New.
7695 (x_scroll_bar_to_input_event): New.
7696 (xaw3d_scroll_callback): New.
7697 (xaw3d_jump_callback): New.
7698 (xm_scroll_callback): New.
7699 (x_toolkit_scroll_p): New.
7700 (XTread_socket): Handle scroll bar client message.
7701 (x_term_init): Initialize Xatom_Scrollbar.
7702 (x_scroll_bar_create): Set cursor.
7703 (xm_scroll_callback):
7704 (x_create_toolkit_scroll_bar): New.
7705 (x_set_toolkit_scroll_bar_thumb): New.
7706 (x_scroll_bar_create): Call x_create_toolkit_scroll_bar.
7707 (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb.
7709 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
7711 1998-10-21 Gerd Moellmann <gerd@gnu.org>
7713 * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars.
7714 (XTread_socket): Don't handle mouse button events for scroll bars
7715 if using toolkit scroll bars.
7716 (XTset_vertical_scroll_bar): Set thumb size and position for
7719 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
7721 * xterm.c (XTread_socket): Dispatch expose event to widget
7722 if using toolkit scroll bars.
7723 (x_scroll_bar_expose): Make no-op for toolkit scroll bars.
7724 (x_scroll_bar_create): Create and show a scroll bar widget
7725 if using toolkit scroll bars.
7726 (x_scroll_bar_move): Handle tookit scroll bars.
7728 * Makefile.in (LIBW): Use Xaw3d if present.
7730 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
7733 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
7736 * xterm.c (XTset_vertical_scroll_bar): Correct position of
7737 right vertical scroll bar.
7739 1998-10-20 Gerd Moellmann <gerd@gnu.org>
7741 * xfns.c (xpm_load): Support reading XPM images from string
7742 buffers containing data in the same format as an XPM file.
7743 Support `:color-symbols'.
7744 (xpm_format): Add `:data'.
7745 (xpm_keyword_index): Add XPM_DATA.
7746 (syms_of_xfns): Add `:color-symbols'.
7747 (xpm_keyword_index): Add XPM_COLOR_SYMBOLS.
7748 (xpm_valid_color_symbols_p): New.
7749 (xpm_image_p): Call it.
7751 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
7752 attribute to the image if item is not enabled.
7754 * xfns.c (x_laplace): New.
7755 (x_laplace_read_row): New.
7756 (x_laplace_write_row): New.
7757 (lookup_image): Handle common image attributes here. New
7758 attribute `:algorithm'.
7760 * xfaces.c (clear_face_cache): Call clear_image_cache.
7762 * xterm.c (x_inverted_image_mask): Removed.
7763 (x_draw_image_foreground_1): New.
7764 (x_draw_image_glyph_string): Draw images with mask to a temporary
7765 pixmap to reduce flickering.
7767 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
7768 (display_toolbar_line): Remove parameter `margin'.
7770 1998-10-19 Gerd Moellmann <gerd@gnu.org>
7772 * xdisp.c (toolbar_lines_needed): New.
7773 (auto-resize-toolbars): New.
7775 * xfns.c (cache_image): Correct call to xrealloc.
7777 * dispnew.c (Fset_toolbar_height): Removed.
7779 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
7780 FRAME_MENU_BAR_LINES.
7782 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
7783 instead of FRAME_MENU_BAR_LINES.
7784 (check_frame_size): Ditto.
7786 * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN
7787 instead of FRAME_MENU_BAR_LINES.
7788 (adjust_frame_glyphs_for_frame_redisplay): Ditto.
7789 (build_frame_matrix): Ditto.
7790 (change_frame_size_1): Ditto.
7792 * frame.h (FRAME_TOOLBAR_LINES): New.
7793 (FRAME_TOP_MARGIN): New.
7795 * window.c (struct save_window_data): Add frame_toolbar_lines.
7796 (Fset_window_configuration): Handle toolbar lines.
7797 (Fcurrent_window_configuration): Save toolbar lines.
7799 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
7801 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
7803 * frame.h (struct frame): Rename top_margin to toolbar_lines.
7805 * xfns.c (x_frame_parms): Add `toolbar-lines'.
7806 (x_set_toolbar_lines): New.
7808 * keyboard.c (cmd_error_internal): Bug fix.
7810 * xterm.c: Remove double include of syssignal.h.
7812 1998-10-18 Gerd Moellmann <gerd@gnu.org>
7814 * xterm.c (x_toolbar_item): New.
7815 (x_handle_toolbar_click): Use it.
7816 (note_toolbar_highlight): Use it.
7818 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
7819 and toolbar_items_vectors.
7821 * xterm.c (help_echo): New.
7822 (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN.
7823 (x_set_glyph_string_gc): Handle them.
7824 (x_after_update_window_line): Don't do anything in pseudo-windows.
7825 (x_produce_image_glyph): Take image margin and face relief into
7827 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
7828 (x_draw_glyph_string_background): Optimize case when face has
7830 (x_setup_relief_color): Take frame instead of glyph string
7832 (x_draw_relief_rect): New.
7833 (x_draw_glyph_string_relief): Call it.
7834 (x_draw_image_glyph_string_foreground): Handle margin and image
7836 (x_draw_image_glyph_string_background): Ditto.
7837 (expose_frame): Redraw toolbar window.
7838 (expose_window): Don't draw cursor for pseudo-windows.
7839 (x_y_to_hpos_vpos): Handle pseudo-windows.
7840 (frame_to_window_pixel_xy): New.
7841 (note_mouse_highlight): Call note_toolbar_highlight.
7842 (x_handle_toolbar_click): New.
7843 (note_toolbar_highlight): New.
7844 (show_mouse_face): Change int parameter `hl' to parameter of
7845 type enum draw_glyphs_face. Handle image highlighting.
7846 (XTread_socket): Return a HELP_EVENT input event if help_echo is
7847 non-nil. Use x_handle_toolbar_click.
7849 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
7851 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
7853 (parse_image_spec): Handle them.
7854 (image_spec_value): Additional parameter found.
7855 (free_image): Remove image from the vector `images' of the
7857 (clear_image_cache): Additional parameter force_p.
7858 (Fclear_image_cache): New.
7859 (x_find_image_file): New.
7860 (xbm_load): Handle `:margin' and `:relief'. Use
7862 (xpm_load): Likewise.
7863 (pbm_load): Likewise.
7864 (jpeg_load): Likewise.
7865 (tiff_load): Likewise.
7866 (gif_load): Likewise.
7868 * keyboard.c (Qhelp_echo): New symbol.
7869 (read_char): Handle `toolbar' and `help_echo' events.
7870 (kbd_buffer_get_event): Handle HELP_ECHO input event.
7871 (make_lispy_event): Handle TOOLBAR_EVENT.
7872 (toolbar_items): New.
7873 (process_toolbar_item): New.
7875 (init_toolbar_items): New.
7876 (append_toolbar_item): New.
7877 (read_char_x_menu_prompt): Handle `toolbar' event.
7878 (read_key_sequence): Ditto.
7880 * xfaces.c (Qtoolbar): New.
7881 (realize_basic_faces): Realize `toolbar' face.
7882 (face_at_string_position): Remove parameter modeline_p, add
7885 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
7888 1998-10-17 Gerd Moellmann <gerd@gnu.org>
7890 * xdisp.c (init_iterator): Replace parameter modeline_p with
7892 (next_element_from_string): Call get_next_display_element
7893 recursively after handling text properties.
7894 (prepare_menu_bars): Call update_toolbar.
7895 (update_toolbar): New.
7896 (build_desired_toolbar_string): New.
7897 (display_toolbar_line): New.
7898 (redisplay_toolbar): New.
7899 (toolbar_item_info): New.
7900 (redisplay_window): Call redisplay_toolbar.
7901 (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG.
7903 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
7905 (clear_desired_matrices): Ditto.
7906 (adjust_frame_glyphs_for_window_redisplay): Make toolbar window.
7907 (free_glyphs): Free matrices of toolbar window.
7908 (update_frame): Update toolbar window.
7909 (change_frame_size_1): Take toolbar into account.
7910 (Fset_toolbar_height): New.
7912 * dispextern.h (struct it): Remove member modeline_p, add
7914 (struct image): Add members relief and margin.
7915 (IMAGE_ASCENT): Include margin in height.
7917 1998-10-14 Gerd Moellmann <gerd@gnu.org>
7919 * xfns.c (Fclear_image_cache): New.
7921 * xfaces.c (realize_basic_faces): Realize toolbar face.
7922 (face_at_string_position): Remove parameter modeline_p, add
7925 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
7927 1998-10-13 Gerd Moellmann <gerd@gnu.org>
7929 * keyboard.c (syms_of_keyboard): Intern `:help'.
7931 1998-10-12 Gerd Moellmann <gerd@gnu.org>
7933 * xterm.c (note_toolbar_highlight): New.
7934 (note_mouse_highlight): Call it.
7936 * window.c (window_from_coordinates): Additional parameter toolbar_p.
7937 (coordinates_in_window): Handle toolbar window.
7939 * keyboard.c (toolbar_items): New.
7940 (process_toolbar_item): New.
7941 (parse_toolbar_item): New.
7942 (init_toolbar_items): New.
7943 (append_toolbar_item): New.
7945 * dispextern.h (enum toolbar_item_idx): New.
7946 (enum toolbar_item_image): New.
7948 * frame.h (struct frame): Add toolbar-related members.
7950 * xfaces.c (face_at_string_position): Remove assertion that
7951 current_buffer == window's buffer. This is not the case when
7952 called for the toolbar window.
7954 * frame.c (make_frame): Initialize toolbar members.
7956 * alloc.c (mark_object): Mark toolbar data of frames.
7958 * frame.h (struct frame): Add toolbar-related members
7959 toolbar_window, desired_toolbar_items, current_toolbar_items,
7960 desired_toolbar_string, current_toolbar_string,
7961 n_desired_toolbar_items, n_current_toolbar_items. Add
7964 * xterm.c (x_after_update_window_line): Don't draw bitmap
7965 areas for pseudo-windows.
7966 (expose_frame): Handle toolbar window.
7967 (expose_window): Don't do cursor stuff for pseudo-windows.
7969 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
7971 1998-10-11 Gerd Moellmann <gerd@gnu.org>
7973 * frame.c (make_frame): Initialize toolbar_window.
7975 * alloc.c (mark_object): Make the toolbar window.
7977 * dispnew.c (update_frame): Update frame's toolbar_window.
7978 (clear_current_matrices): Likewise.
7979 (clear_desired_matrices): Likewise.
7980 (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window.
7981 (free_glyphs): Free the toolbar window and its matrices.
7983 * frame.h (struct frame): Add toolbar_window.
7985 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
7988 1998-10-10 Gerd Moellmann <gerd@gnu.org>
7990 * dispnew.c (buffer_posn_from_coords): Don't screw up if
7991 window start is not in the range BEGV..ZV.
7993 1998-10-09 Gerd Moellmann <gerd@gnu.org>
7995 * xdisp.c (try_scrolling): Experimentally handle the case
7996 that scroll-preserve-screen-position is set to `always'.
7998 * window.c (Vscroll_preserve_screen_position): Replacement for
7999 scroll_preserve_screen_position.
8001 1998-10-08 Gerd Moellmann <gerd@gnu.org>
8003 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
8007 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
8009 1998-10-06 Gerd Moellmann <gerd@gnu.org>
8011 * minibuf.c (Fminibuffer_complete_word): Fix computation of
8012 i_byte when prompts are inserted into minibuffers.
8014 * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New.
8015 (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it.
8016 (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto.
8018 1998-10-04 Gerd Moellmann <gerd@gnu.org>
8020 * xdisp.c (make_cursor_line_fully_visible): New.
8021 (try_scrolling): New.
8022 (redisplay_window): Move scrolling code to try_scrolling.
8023 (make_cursor_line_fully_visible): Handle case of window too small
8024 to show a single line.
8025 (redisplay_window): Case forced window start---use
8026 make_cursor_line_fully_visible.
8027 (redisplay_window): Case cursor movement via current matrix.
8028 If ending up on a partially visible line, make it fully visible
8029 instead of recentering.
8030 (try_scrolling): Additional parameter scroll_smoothly.
8032 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
8034 1998-09-28 Gerd Moellmann <gerd@gnu.org>
8036 * window.c (window_scroll_pixel_based): Bug fix: vpos used
8037 instead of y-position for scroll-preserved-screen-position.
8039 1998-09-07 Gerd Moellmann <gerd@gnu.org>
8041 * dispnew.c (update_frame_line): If current row is not enabled,
8042 write the whole line.
8044 1998-09-06 Gerd Moellmann <gerd@gnu.org>
8046 * lisp.h (HAVE_FACES): Removed.
8048 * dispextern.h (HAVE_FACES): Removed.
8050 * config.in (HAVE_FACES): Removed.
8052 * dispnew.c (HAVE_FACES): Removed.
8054 * xdisp.c (HAVE_FACES): Removed.
8056 * xfaces.c (HAVE_FACES): Removed.
8058 1998-09-05 Gerd Moellmann <gerd@gnu.org>
8060 * xdisp.c (init_iterator): If face_change_count is non-zero,
8061 free realized faces.
8063 * xfaces.c (free_all_realized_faces): Make it externally visible.
8064 (Finternal_set_lisp_face_attribute): Increment
8065 windows_or_buffers_changed.
8067 * dispnew.c (direct_output_for_insert): Give up if
8068 face_change_count is non-zero.
8069 (direct_output_forward_char): Ditto.
8071 * xfaces.c (face_change_count): New.
8073 1998-09-04 Gerd Moellmann <gerd@gnu.org>
8075 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
8078 1998-09-03 Gerd Moellmann <gerd@gnu.org>
8080 * term.c (Ftty_display_color_p): New.
8082 1998-09-02 Gerd Moellmann <gerd@gnu.org>
8084 * xfaces.c (Ftty_defined_colors): New.
8086 * xterm.c (x_produce_glyphs): Fix computation of
8087 contains_overlapping_glyphs_p for ASCII.
8089 * dispnew.c (Fshow_cursor): Don't change cursor state while
8091 (direct_output_for_insert): If a glyph with lbearing or rbearing
8092 is among the new glyphs, set row flag contains_overlapping_glyph_p.
8094 1998-09-01 Gerd Moellmann <gerd@gnu.org>
8096 * term.c (OUTPUT_IF): Make replacement text have statement form.
8097 (OUTPUT1_IF): Ditto.
8098 (TS_italic_mode, TS_end_italic_mode): Removed.
8099 (TS_bold_mode): Removed.
8100 (TS_underscore_mode, TS_end_underscore_mode): Removed.
8101 (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New.
8102 (TS_enter_reverse_mode): New.
8103 (TS_enter_underline_mode, TS_exit_underline_mode): New.
8104 (TN_magic_cookie_glitch_ul): New.
8105 (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New.
8106 (TS_exit_attribute_mode): New.
8107 (TN_max_colors, TN_max_pairs, TS_orig_pairs): New.
8108 (TS_set_foreground, TS_set_background): New.
8109 (reset_terminal_modes): Switch colors back to default.
8110 (write_glyphs): Turn face on before writing text, turn it off
8112 (insert_glyphs): Ditto.
8113 (term_init): Initialize new terminal capability variables.
8114 (turn_on_face): Turn a face on.
8115 (turn_off_face): Turn a face off.
8117 * lisp.h (MAKE_GLYPH): Remove test for frame type.
8118 (GLYPH_CHAR): Ditto.
8119 (GLYPH_FACE): Ditto.
8121 * xfaces.c (Vface_tty_color_alist): New.
8122 (face-register-tty-color): New.
8123 (face-clear-tty-colors): New.
8125 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
8126 (struct it): Remove member faces_p since we now always have faces.
8128 1998-08-31 Gerd Moellmann <gerd@gnu.org>
8130 * dispextern.h (struct face): Add tty appearance flags.
8132 * xdisp.c (init_iterator): Always handle faces.
8133 (extend_face_to_end_of_line): Handle tty frames.
8135 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
8138 1998-08-30 Gerd Moellmann <gerd@gnu.org>
8140 * xfaces.c (realize_default_face): Use empty strings to indicate
8141 that the face should use the default foreground/background
8142 color of the terminal. Fill font-related attributes with
8143 appropriate values for tty frames.
8145 * emacs.c (main): Call syms_of_xfaces before init_window_once.
8147 * xfaces.c (realize_default_face): If face `default' is not
8148 yet known, create it.
8150 * frame.c (make_terminal_frame): Call init_frame_faces
8153 * xfaces.c (init_frame_faces): Make it work for tty frames.
8154 (free_frame_faces): Ditto.
8155 (clear_face_cache): Ditto.
8156 (recompute_basic_faces): Ditto.
8157 (Fframe_face_alist): Ditto.
8158 (free_realized_face): Ditto.
8159 (prepare_face_for_display): Ditto.
8160 (clear_face_gcs): Ditto.
8161 (lookup_face): Ditto.
8162 (smaller_face): Ditto.
8163 (realize_default_face): Ditto.
8164 (realize_face): Ditto.
8165 (realize_face): Dispatch to functions depending on the frame type.
8166 (realize_x_face): X way of realizing faces.
8167 (realize_tty_face): TTY way of realizing faces.
8169 1998-08-29 Gerd Moellmann <gerd@gnu.org>
8171 * xfaces.c (realize_face): Remove parameter unibyte_registry,
8173 (lookup_face): Remove local variable unibyte_registry.
8175 1998-08-22 Gerd Moellmann <gerd@gnu.org>
8177 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
8180 * xdisp.c (face_before_or_after_it_pos): Fix computation
8183 * editfns.c (make_buffer_string_both): If prompt in buffer,
8184 prevent start > end.
8186 * indent.c (Fvertical_motion): Set current_buffer to window's
8187 buffer if it isn't already.
8189 1998-08-21 Gerd Moellmann <gerd@gnu.org>
8191 * dispextern.h (GLYPH_DEBUG): Use default 0.
8193 * xdisp.c (it_props): New member `smaller'.
8194 (init_iterator): Initialize it.
8196 (push_it): Save value of `smaller' value on the stack.
8197 (pop_it): Restore `smaller' from the stack.
8198 (handle_smaller_prop): New.
8199 (handle_face_prop): Use `smaller' text property to select a
8202 * dispextern.h (SMALLER_PROP_IDX): New.
8203 (struct it): Add member `smaller'.
8205 * xfaces.c (smaller_face): New.
8207 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
8209 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
8210 total pixel width of window differently.
8212 * xdisp.c (init_iterator): Compute width of mode line differently.
8214 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
8217 * window.c (Fsplit_window): Include width of bitmap areas in
8219 (window_internal_width): Subtract width of bitmap areas from
8222 1998-08-18 Gerd Moellmann <gerd@gnu.org>
8224 * xdisp.c: Functions reordered for better readability.
8226 * dispnew.c (update_text_area): Handle glyphs with arbitrary
8228 (update_window_tree): Parameter no_scrolling_p removed.
8229 (update_single_window): Ditto.
8231 * xterm.c (x_get_char_font_and_encoding): Renamed to
8232 x_get_char_face_and_encoding.
8234 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
8235 if end of current row reached.
8237 * xterm.c (x_get_glyph_face_and_encoding): New.
8238 (x_get_glyph_overhangs): Call it.
8240 * xdisp.c (Qshow_trailing_whitespace): New.
8241 (Qtrailing_whitespace): New.
8242 (enum prop_handled): New.
8243 (struct props, it_props): New.
8244 (next_overlay_change): New. Works like Fnext_overlay_change
8245 but doesn't use xmalloc.
8246 (handle_stop): Restructured.
8247 (face_before_or_after_it_pos): Case iteration over a string: fix
8248 handling of face before current position.
8250 1998-08-16 Gerd Moellmann <gerd@gnu.org>
8252 * dispnew.c (adjust_glyph_matrix): Don't optimize matrix
8253 reallocation matrix if fonts_changed_p.
8254 (update_text_area): Handle glyphs with lbearing.
8256 1998-08-14 Gerd Moellmann <gerd@gnu.org>
8258 * xdisp.c (struct props): New.
8260 (compute_prop_info): New.
8263 * textprop.c (validate_interval_range): Make it externally
8266 * dispnew.c (direct_output_for_insert): Remove calls
8267 to compute_stop_pos.
8269 * dispextern.h (struct it): Remove check_charpos,
8270 next_overlay_pos. Add what_changes.
8272 1998-08-10 Gerd Moellmann <gerd@gnu.org>
8274 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
8276 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
8277 face_default_registry instead.
8279 * syntax.c (scan_sexps_forward): Set up syntax table before
8280 jumping to initial state label.
8282 1998-08-09 Gerd Moellmann <gerd@gnu.org>
8284 * dispnew.c (check_matrix_invariants): Handle case of row end pos
8287 1998-08-08 Gerd Moellmann <gerd@gnu.org>
8289 * xdisp.c (redisplay_window): Case cursor movement---if cursor
8290 ends up in partially visible row, try to scroll. Case forced
8291 window start---handle windows not tall enough to show a single
8294 * window.h (struct window): Member dy renamed vscroll.
8296 * xterm.c (x_list_fonts): Re-activate suppression of scalable
8298 (x_draw_stretch_glyph_string): Set clipping if using GC that
8301 * xdisp.c (redisplay_window): Case forced window start -
8302 don't let cursor end on partially visible row. Use desired
8303 matrix to find a suitable PT if it doesn't appear.
8304 (decode_mode_spec): Merged with 20.2.97.
8305 (try_window_reusing_current_matrix): Give up if old or
8306 new display is vscrolled.
8307 (redisplay_window): Reset vscrolling if forced window start,
8310 1998-08-06 Gerd Moellmann <gerd@gnu.org>
8312 * xfaces.c (realize_default_face): Use the fontset name instead of
8313 the alias for the family attribute of the default face because we
8314 can't easily determine a good alias from fontset-alias-alist.
8315 (face_fontset): Use Fquery_fontset to find the fontset.
8316 (font_list): Additional pattern parameter.
8317 (try_font_list): Ditto.
8318 (set_lface_from_font_name): Set face family from font foundry
8320 (font_list): If family contains a hyphen, build pattern differently.
8322 1998-08-05 Gerd Moellmann <gerd@gnu.org>
8324 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
8325 changed instead of setting the frame garbaged.
8327 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
8328 all attribute values. This is wrong if values are unspecified,
8331 * xdisp.c (try_window_id): Give up if window start changed.
8333 * xfaces.c (make_realized_face): Store registry as Lisp object.
8334 (load_face_font_or_fontset): Compute registry of a face
8335 differently. Make it `eq' to Vx_unibyte_registry_and_encoding if
8338 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
8341 * alloc.c (mark_face_cache): Mark the registry member of faces.
8343 * dispextern.h (struct face): Make registry a Lisp string.
8345 1998-08-04 Gerd Moellmann <gerd@gnu.org>
8347 * xterm.c (x_get_char_font_and_encoding): Additional parameter
8348 multibyte_p. Handle unibyte text.
8349 (x_append_glyph): Set the multibyte_p flag of glyphs.
8350 (x_produce_image_glyph): Ditto.
8351 (x_append_stretch_glyph): Ditto.
8352 (x_produce_glyphs): Handle unibyte text like ASCII.
8354 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
8356 (pop_it): Restore it.
8357 (face_before_or_after_it_pos): Handle the case that the string or
8359 (get_overlay_strings): Set the multibyte flag of the iterator if
8360 the new overlay string is multibyte.
8361 (get_glyph_property): Likewise.
8362 (get_next_display_element): Don't check for charset changes in
8364 (append_space): Compute face differently for unibyte text.
8365 (extend_face_to_end_of_line): Don't return quickly if face has
8368 * xfaces.c (load_face_font_or_fontset): Store registry and
8369 encoding of the font in the registry member of the face.
8370 (make_realized_face): Additional parameter `registry'.
8371 (free_realized_face): Free the registry of a realized face.
8372 (face_suitable_for_charset_p): Function form of the macro
8373 with the same name in uppercase.
8374 (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0.
8375 (choose_face_font): New parameter unibyte_registry.
8376 (choose_face_fontset_font): Ditto.
8377 (realize_default_face): Remember the registry and encoding of
8378 the specified frame font in Vx_unibyte_registry_and_encoding.
8379 (face_at_buffer_position): Handle unibyte.
8380 (face_at_string_position): Likewise.
8381 (realize_face): New parameter unibyte_registry.
8382 (compute_char_face): Handle the unibyte case.
8384 * dispextern.h (struct glyph): Add bit multibyte_p.
8385 (struct face): New member registry holding the registry and
8386 encoding of the X font of the face.
8387 (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text.
8388 (enum face_id): Add BASIC_FACE_ID_SENTINEL.
8389 (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte
8391 (struct iterator_stack_entry): Add multibyte_p.
8393 * xdisp.c (string_pos): Use string_char_to_byte.
8394 (char_charset): Removed.
8396 1998-08-03 Gerd Moellmann <gerd@gnu.org>
8398 * xterm.c (x_draw_image_glyph_string_foreground): Draw a
8399 rectangle for a block cursor over an image without a mask.
8400 (x_stretch_block_cursor): Added. Non-zero means don't draw
8401 a block cursor over a stretch as wide as that stretch.
8402 (x_draw_stretch_glyph_string): Use it.
8403 (x_draw_hollow_cursor): Ditto.
8405 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
8406 (read_minibuf): Add front-sticky text property for prompt.
8408 * xdisp.c (char_charset): Return charset of a character,
8409 depending on whether or not multi-byte characters are enabled.
8411 * xfaces.c (Fset_face_charset_registry): Removed.
8412 (x_charset_registry): Determine registry from charset plist.
8414 1998-08-02 Gerd Moellmann <gerd@gnu.org>
8416 * xdisp.c (get_next_display_element): Don't check for charset
8417 changes if multi-byte characters are not enabled.
8419 * xdisp.c (echo_area_display): Use the flush function from the
8420 redisplay interface.
8421 * keyboard.c (detect_input_pending_run_timers): Likewise.
8423 * dispextern.h (produce_*glyphs_hook): Removed.
8424 * term.c (produce_*glyphs): Ditto.
8425 (cursor_to): Remove pixel position parameters.
8427 * dispnew.c: Remove hooks for window-based redisplay, introduce
8428 a redisplay interface structure.
8430 * xterm.c (x_per_char_metric): Return default char metrics if per
8431 char metric exists but contains a zero width. Adobe Courier seems
8432 to contain such characters.
8434 * xdisp.c (compute_line_metrics): Compute the width of rows
8435 without stopping at glyphs with zero width.
8437 1998-08-01 Gerd Moellmann <gerd@gnu.org>
8439 * xdisp.c (display_mode_line): If nothing was displayed at all,
8441 (hscroll_window_tree): Don't subtract 1 from target point if equal
8442 to ZV and window is not the selected window.
8444 * dispnew.c (check_matrix_invariants): Remove check for window
8445 start at BEGV or after newline. This happens in rare cases
8448 1998-07-31 Gerd Moellmann <gerd@gnu.org>
8450 * xfaces.c (x_charset_registry): Use STRING_BYTES.
8451 (syms_of_xfaces): Add Vface_default_registry.
8452 (x_charset_registry): Use it.
8454 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
8455 (redisplay_window): Use it.
8457 * dispnew.c (update_text_area): Handle lbearing of deleted text
8458 by backing up one character.
8460 1998-07-30 Gerd Moellmann <gerd@gnu.org>
8462 * dispnew.c (adjust_glyph_matrix): Use a different check to
8463 decide to do nothing.
8465 * xfaces.c (face_at_string_position): Additional parameter
8466 mode_line_p. If non-zero, merge with the mode line face
8467 instead of the default face.
8468 * dispextern.h (struct it): Add mode_line_p.
8469 * xdisp.c (init_iterator): Set it.
8470 (compute_face_in_string): Use it.
8471 (face_before_or_after_it_pos): Handle strings.
8472 (get_next_display_element): Don't look for relief end in C strings.
8473 (next_element_from_string): Deliver string position instead of
8476 * xterm.c (x_flush): Flush X output buffer.
8479 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
8480 Allow strings as face names.
8482 * xfns.c (forall_images_in_image_cache): Check that frame is
8485 * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces;
8486 it's also called from x_destroy_window. Since this function is
8487 called from X, freeing stuff allocated with xmalloc is dangerous
8490 * xfaces.c (free_realized_faces): Don't clear current matrices
8491 of a frame being destroyed.
8493 * frame.c (make_frame): Call set_window_buffer instead of
8496 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
8497 with an additional argument specifying whether or not hooks may
8499 (Fset_window_buffer): Call it.
8501 * dispnew.c (clear_desired_matrices): Check that frame has
8502 a valid root window before clearing matrices in the window tree.
8503 (clear_current_matrices): Ditto.
8504 (clear_window_matrices): If GLYPH_DEBUG, check that hchild and
8505 vchild are valid windows if not nil.
8507 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
8509 (Finternal_set_lisp_face_attribute): Ditto.
8510 (Finternal_set_lisp_face_attribute_from_resource): Ditto.
8511 (Finternal_get_lisp_face_attribute): Ditto.
8512 (Finternal_lisp_face_attribute_values): Ditto.
8513 (syms_of_xfaces): Define the symbol `:reverse-video'.
8515 * xdisp.c (get_glyph_property): Renamed from
8516 fill_iterator_from_glyph_property.
8517 (next_element_from_buffer): Handle case that no `glyph' property
8518 was found correctly.
8519 (display_line): Extend face to end of line only if we have faces.
8521 1998-07-29 Gerd Moellmann <gerd@gnu.org>
8523 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
8524 additional window argument.
8526 * xdisp.c (reseat_at_previous_visible_line_start): Renamed from
8527 set_iterator_to_previous_visible_line_start.
8528 (reseat_at_next_visible_line_start): Likewise.
8529 (compute_stop_pos): Renamed from set_iterator_stop_pos.
8530 (face_before_or_after_it_pos): Renamed from get_face_at_it_pos.
8531 (compute_face_in_buffer): Renamed from
8532 compute_face_at_iterator_position.
8533 (compute_face_in_string): Renamed from
8534 compute_face_at_iterator_string_position.
8535 (get_space_width): Renamed from get_iterator_space_width.
8536 (next_overlay_string): Renamed from
8537 set_iterator_to_next_overlay_string.
8538 (get_overlay_strings): Renamed from
8539 get_overlay_strings_at_iterator_position.
8540 (restore_overlay_strings): Renamed from
8541 setup_overlay_strings_from_glyph_pos.
8542 (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos.
8543 (init_from_display_pos): Renamed from init_iterator_from_glyph_pos.
8544 (init_to_row_start): Renamed from init_iterator_to_row_start.
8545 (init_to_row_end): Formerly init_iterator_to_next_row_start.
8547 * xterm.c: Merge with 20.2.97.
8548 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
8550 * dispextern.h (struct glyph): Replace text_pos position with
8553 * xdisp.c (this_line_start_pos): Use struct text_pos.
8554 (this_line_end_pos): Renamed from .*endpos; use struct text_pos.
8555 (enum move_it_result): Renamed from move_iterator_result.
8556 (string_pos_nchars_ahead): Compute text_pos in a string from a
8557 known text_pos plus a character delta.
8558 (string_pos): Compute text_pos in string from charpos.
8559 (c_string_pos): Likewise for a C string.
8560 (number_of_chars): Return number of characters in a possibly
8561 multi-byte C string.
8562 (check_it): Renamed from check_iterator. Check that charpos and
8563 bytepos are in sync.
8564 (push_it): Renamed from save_iterator_settings.
8565 (pop_it): Renamed from restore_iterator_settings.
8566 (move_it_.*): Renamed from move_iterator_.*.
8567 (charset_at_position): Take charpos/bytepos into account.
8568 (back_to_previous_line_start): Set iterator to previous line start.
8569 (forward_to_next_line_start): Set iterator to next line start.
8570 (back_to_previous_visible_line_start): Renamed from
8571 move_iterator_previous_visible_line_start.
8572 (set_iterator_to_next_visible_line_start): Handle charpos/bytepos.
8573 (get_face_at_it_pos): Renamed from get_face_from_cursor_pos.
8574 Handle charpos/bytepos.
8575 (compute_face_at_iterator_position): Handle charpos/bytepos.
8576 (compute_face_at_iterator_string_position): Likewise.
8577 (get_iterator_space_width): Likewise.
8578 (load_overlay_strings): Likewise.
8579 (get_overlay_strings_at_iterator_position): Likewise.
8580 (reseat_iterator): Take a text_pos position argument.
8581 (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/
8583 (init_iterator): Take additional bytepos parameter.
8584 (reseat_iterator_to_string): Handle charpos/bytepos.
8585 (start_display): Take a text_pos parameter. Handle charpos/bytepos.
8586 (next_element_from_string): Handle charpos/bytepos.
8587 (next_element_from_c_string): Likewise.
8588 (fill_iterator_from_glyph_property): Likewise.
8589 (next_element_from_buffer): Likewise.
8590 (set_iterator_to_next): Increment charpos and bytepos of an iterator.
8591 (move_iterator_in_display_line_to): Handle charpos/bytepos.
8592 (move_it_to): Likewise.
8593 (move_it_vertically_backward): Likewise.
8594 (move_it_vertically): Likewise.
8595 (move_it_by_lines): Likewise.
8596 (hscroll_window_tree): Likewise.
8597 (redisplay_internal): Likewise.
8598 (set_cursor_from_row): Likewise.
8599 (redisplay_window): Likewise.
8600 (try_window): Take a text_pos parameter. Handle charpos/bytepos.
8601 (try_window_reusing_current_matrix): Handle charpos/bytepos.
8602 (get_first_unchanged_at_end_row): Compute and return delta_bytes.
8603 (try_window_id): Handle charpos/bytepos.
8604 (Ftrace_redisplay_toggle): Return Qnil.
8605 (get_overlay_arrow_glyph_row): Handle charpos/bytepos.
8606 (insert_left_trunc_glyphs): Likewise.
8608 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
8610 (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes.
8611 (increment_glyph_row_buffer_positions): Ditto.
8612 (copy_glyph_row_contents): Ditto.
8613 (check_matrix_invariants): Add additional checks for charpos/
8614 bytepos consistency.
8615 (direct_output_for_insert): Changed for charpos/bytepos.
8616 (buffer_posn_from_coords): Likewise. Put code dealing with
8617 `direction-reversed' in #if 0.
8619 * xterm.h: Merge with 20.2.97.
8621 * frame.h: Merge with 20.2.97.
8623 * window.h: Merge with 20.2.97. Add window_end_bytepos.
8625 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
8627 (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position.
8628 (MATRIX_ROW_END_CHARPOS): Likewise for the row end.
8629 (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position.
8630 (struct it): Various members renamed from .*pos to .*charpos.
8631 (IT_CHARPOS): Access current buffer character position of an
8633 (IT_BYTEPOS): Access current buffer byte position of an iterator.
8634 (IT_STRING_CHARPOS): Access current string character position of
8636 (IT_STRING_BYTEPOS): Access current string byte position of
8638 (globally): Add function prototypes from 20.2.97.
8640 * everywhere: Use P_ instead of PROTO for function prototypes
8641 because everyone else seems to use P_.
8643 * dispextern.h (struct text_pos): Structure describing a charpos/
8644 bytepos position in text.
8645 (BYTEPOS): Access the byte position part of a text_pos.
8646 (CHARPOS): Likewise for the character position.
8647 (SET_TEXT_POS): Set a text_pos from a character and byte position.
8648 (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position.
8649 (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker.
8650 (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos.
8651 (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality.
8652 (struct display_pos): Renamed from glyph_pos. Use struct text_pos
8653 for buffer and string positions.
8654 (struct glyph): Use text_pos.
8655 (struct it): Renamed from display_iterator. Use text_pos.
8657 1998-07-23 Gerd Moellmann <gerd@gnu.org>
8659 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
8662 1998-07-21 Gerd Moellmann <gerd@gnu.org>
8664 * dispextern.h (struct glyph_row): New flag indicate_zv_line_p.
8665 * xterm.c (x_draw_row_bitmaps): Use it.
8666 * dispnew.c (row_equal_p): Ditto.
8667 (update_window_line): Ditto.
8669 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
8672 * dispextern.h (struct image): Removed member loading_failed_p.
8673 It's probably better to have the chance to try to load an image
8676 1998-07-20 Gerd Moellmann <gerd@gnu.org>
8678 * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending
8679 at ZV if `indicate-zv-lines' is non-nil.
8680 (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'.
8682 * dispnew.c (row_equal_p): Compare displays_text_p and
8683 ends_at_zv_p flags of rows.
8684 (update_window_line): Ditto.
8686 * buffer.h (struct buffer): New member indicate_zv_lines.
8688 * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'.
8689 (init_buffer_once): New variable `default-indicate-zv-lines'.
8690 (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'.
8692 * xdisp.c (redisplay_window): Don't try moving the cursor
8693 if current glyph row w->last_cursor.vpos isn't enabled.
8695 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
8697 * window.c (Fset_window_vscroll): Allow only negative scroll
8698 values. Others don't seem to make sense, and this way it's easy
8699 to restore a vscroll of zero.
8701 * xterm.c (x_inverted_image_mask): Check that pixmap could be
8703 (x_draw_image_glyph_string_background): Don't clip if pixmap
8704 could not be created.
8706 * xfns.c (xbm_load_image_from_file): Check that pixmap could
8711 * xterm.c (x_get_glyph_overhangs): Take image and stretch
8712 glyphs into account.
8714 * xfaces.c (realize_default_face): Don't set font family of
8715 the default face from the fontset alias name for `fontset-startup'.
8717 * xfns.c (gs_load): Pass frame's pixel foreground and background
8718 color to the Lisp loader.
8720 1998-07-19 Gerd Moellmann <gerd@gnu.org>
8722 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
8725 * configure.in (--with-tiff, HAVE_TIFF): Added.
8727 * config.in (HAVE_TIFF): Added.
8729 * Makefile.in (LIBTIFF): Added.
8731 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
8733 * Makefile.in (LIBJPEG): Added.
8735 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
8736 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
8739 * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems
8740 where the library is installed in /usr/local/lib, e.g. FreeBSD,
8741 configure must be run with `--x-includes=/usr/X11R6/include:
8742 /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'.
8744 1998-07-18 Gerd Moellmann <gerd@gnu.org>
8746 * config.in (HAVE_JPEG): Added.
8748 * xfns.c (ct_init): Initialize color table used to map RGB colors
8749 from images to X pixel colors.
8750 (ct_free): Free color table.
8751 (ct_lookup): Look an RGB color up.
8752 (ct_allocated_colors): Get vector of allocated colors.
8753 (pbm_image_p): Test if image specification is a valid PPM
8754 image specification.
8755 (pbm_scan_number): Scan a decimal ASCII number from a file.
8756 (pbm_load): Load a PPM image.
8758 * window.c (Fset_window_vscroll): Adjust glyph matrix if
8759 necessary. Take canonical character units as parameter.
8760 (Fwindow_vscroll): Return canonical character units.
8762 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
8763 w->dy to display height for which glyph rows must be allocated.
8765 1998-07-17 Gerd Moellmann <gerd@gnu.org>
8767 * xfaces.c (face_at_string_position): Merge in region face
8768 so that it won't overwrite the font in the region.
8769 (face_at_buffer_position): Ditto.
8770 (realize_basic_faces): Don't realize region face.
8772 * dispextern.h (enum face_id): REGION_FACE_ID removed.
8774 * xterm.c (x_set_glyph_string_background_width): Don't let
8775 cursor face extend to end of line.
8777 * xdisp.c (append_space): If adding space of default face,
8778 make sure glyph ist produced with right face.
8780 * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the
8781 background color of a glyph string.
8782 (x_draw_glyph_string_background): Call it.
8783 (x_draw_glyph_string_bg_rect): Ditto.
8784 (x_draw_stretch_glyph_string): Ditto.
8786 1998-07-15 Gerd Moellmann <gerd@gnu.org>
8788 * xdisp.c (init_iterator): Initialize it->current_y to the
8789 window's vscroll w->dy.
8791 * window.c (Fwindow_vscroll): Return number of pixels window
8792 is vscrolled smoothly.
8793 (Fset_window_vscroll): Set the number.
8795 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
8796 to_pos in truncated part of a line.
8798 1998-07-14 Gerd Moellmann <gerd@gnu.org>
8800 * xdisp.c (move_iterator_in_display_line_to): If very first glyph
8801 doesn't fit on the line, truncate it, despite truncate_lines nil.
8802 (display_line): Ditto.
8804 * xfns.c: Experimental support for Ghostscript images.
8806 * xterm.c (x_term_init): Initialize new atoms DONE and PAGE.
8807 (XTread_socket): React on events from Ghostscript.
8808 (expose_frame): If width or height are zero, redraw entire frame.
8809 (XTread_socket): Call expose_frame after receiving event from
8812 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
8813 for Ghostscript support.
8815 * xdisp.c (redisplay_internal): Return quickly if called
8818 * alloc.c (NSTATICS): Increased to 1024.
8820 1998-07-08 Gerd Moellmann <gerd@gnu.org>
8822 * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an
8823 iterator's glyph row.
8824 (x_produce_stretch_glyph): Call it.
8825 (x_produce_glyphs): Handle `space-width' property; call
8826 x_append_stretch_glyph.
8828 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
8830 (get_iterator_space_width): Determine value of `space-width'
8831 property at iterator's position.
8832 (reseat_iterator): Call it.
8833 (next_element_from_string): Ditto.
8834 (next_element_from_buffer): Ditto.
8835 (init_iterator): Initialize space_width of iterator.
8836 (redisplay_internal): Don't goto end_of_redisplay if PT hasn't
8837 moved, but cursor blinks.
8838 (redisplay_internal): Set w->last_cursor_off_p after update.
8840 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
8841 (struct display_iterator): Add new member space_width.
8843 * window.h (struct window): Add last_cursor_off_p.
8845 1998-07-07 Gerd Moellmann <gerd@gnu.org>
8849 * window.c (Fpos_visible_in_window_p): Case window not up to
8850 date---return nil if iterator hasn't reached position.
8852 1998-07-06 Gerd Moellmann <gerd@gnu.org>
8854 * xdisp.c (text_outside_line_unchanged_p): Fix case that
8855 overlays have changed.
8856 (redisplay_window): Case cursor movement. Don't try it if
8857 last_cursor.vpos is out of range.
8859 * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This
8860 way, the display optimization for the line containing the cursor
8861 is used more frequently, esp. when we have a blinking cursor.
8862 (display_line): Don't set this_line_.* variables.
8864 * xterm.c (x_redraw_cursor): Removed.
8865 (x_display_and_set_cursor): Set cursor type depending on
8866 cursor_off_p flag of window.
8868 * dispnew.c (redraw_cursor_hook): Removed.
8869 (Fblink_cursor): Additional parameter on_p to set the cursor_off_p
8870 member of the selected window.
8872 * xfaces.c (Fface_font): Added for compatibility with 20.2.
8874 * xterm.c (x_y_to_hpos_vpos): Return null if not over text.
8875 Return glyph area under x/y.
8876 (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form.
8878 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
8881 1998-07-05 Gerd Moellmann <gerd@gnu.org>
8883 * xdisp.c (text_outside_line_unchanged_p): Test if changes
8884 are all outside of a line of text.
8885 (redisplay_internal): Use it.
8887 1998-06-30 Gerd Moellmann <gerd@gnu.org>
8889 * xdisp.c (next_element_from_buffer): After skipping over
8890 invisible text, look for the `glyph' property.
8891 (set_iterator_stop_pos): Ignore check positions in front
8892 of an iterator's current position.
8894 * xterm.c (show_mouse_face): Don't act on rows that don't exist
8895 anymore or which are marked as not having valid contents.
8897 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
8898 realized faces if new attribute value is equal to old value.
8900 1998-06-29 Gerd Moellmann <gerd@gnu.org>
8902 * xfaces.c (Finternal_make_lisp_face): Increment
8903 lface_id_to_name_size when lface_id_to_name is reallocated.
8905 1998-06-27 Gerd Moellmann <gerd@gnu.org>
8907 * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos
8908 as minimum of endpos and overlay_pos.
8909 (load_overlay_strings): Set next_overlay_pos of iterator to
8910 -1 if we don't have to check for more overlay strings.
8912 1998-05-09 Gerd Moellmann <gerd@gnu.org>
8914 * xdisp.c (set_iterator_to_next_visible_line_start): Don't
8915 do anything if iterator is at ZV because scan_buffer doesn't
8918 * xterm.c (x_encode_char): Inline it.
8919 (x_get_char_font_and_encoding): Simplified.
8920 (x_per_char_metric): Inline it.
8922 * xterm.c (x_draw_glyph_string_relief): Use clipping.
8924 * xdisp.c (get_next_display_element): Check for end of relief
8925 face moved here from next_element_from_buffer.
8927 * xterm.c (x_produce_image_glyph): Add relief thickness.
8928 (x_produce_stretch_glyph): Ditto.
8930 1998-05-08 Gerd Moellmann <gerd@gnu.org>
8932 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
8933 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
8935 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
8936 from a glyph property.
8937 (x_produce_glyphs): Use it.
8939 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
8941 * xterm.c (x_produce_image_glyph): Add to current_x only if
8943 (x_produce_glyphs): Ditto.
8945 * xdisp.c (display_line): Compute row height from glyphs in
8948 * xterm.c (x_draw_image_glyph_string_background): Draw
8949 background of an image glyph string.
8950 (x_draw_glyph_string_bg_rect): Draw a rectangular region of
8951 the background of a glyph string.
8952 (x_draw_image_glyph_string_foreground): Draw the foreground of
8953 an image glyph string.
8954 (x_inverted_image_mask): Return the inverted mask of an image.
8956 * xfns.c (x_draw_image): Removed.
8958 * dispextern.h (struct image_type): Remove drawing function.
8960 * xfaces.c (load_face_colors): Swap colors if face is inverse.
8962 * xdisp.c (get_next_display_element): In marginal areas, translate
8963 newlines, tabs, etc. like normal control characters.
8965 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
8967 (free_realized_faces): Set frame garbaged.
8969 * xfaces.c (syms_of_xfaces): Add defsubr for
8970 internal-lisp-face-attribute-values.
8972 1998-05-07 Gerd Moellmann <gerd@gnu.org>
8974 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
8976 (x_produce_image_glyph): Set IT->nglyphs to 1.
8977 (x_draw_image_glyph_string): Use inverted mask to draw background.
8979 * dispextern.h (struct image_type): Additional clipping rect
8980 parameters for drawing functions.
8982 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
8984 (x_draw_image_glyph_string): Use it and pass the rect to the
8985 image drawing function.
8987 * xdisp.c (fill_iterator_from_glyph_property): Use position of
8988 first character with `glyph' property as image position. Set
8989 iterator back to that position as long as the image hasn't been
8990 consumed with set_iterator_to_next.
8991 (set_cursor_from_row): Accept when glyph with given position is
8992 not found in the row. Set cursor x to end of line in that case,
8993 so that we can hscroll.
8994 (redisplay_internal): Correct computation of delta by which
8995 positions have changed in redisplay optimization for cursor
8996 row of selected window.
8998 * xdisp.c (display_line): Remove start_pos.
8999 (display_line): Fix bug preventing display optimization for
9000 cursor line of selected window.
9001 (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer
9004 * dispnew.c (update_text_area): Use GLYPH_EQUAL_P.
9005 (update_text_area): Take glyph pixel width into account
9006 when trying to find a resync point.
9007 (row_equal_p): Compare glyphs in all areas.
9009 1998-05-06 Gerd Moellmann <gerd@gnu.org>
9011 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
9013 * dispextern.h (struct glyph_row): Use unsigned hash value.
9015 * xdisp.c (display_line): Simplified and made faster by setting
9016 the cursor with set_cursor_from_row.
9017 (set_cursor_from_row): Handle rows of desired matrix.
9019 1998-05-05 Gerd Moellmann <gerd@gnu.org>
9021 * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs
9022 with type != CHAR_GLYPH.
9023 (fill_iterator_from_glyph_property): Return void. Set
9024 method to next_element_from_image.
9025 (next_element_from_image): Dummy function for delivering a
9027 (set_iterator_to_next): Add method next_element_from_image.
9028 (redisplay_window): When recentering, and cursor vpos is -1
9029 after display, assume middle of window is in first line displayed
9030 in window, and display again.
9031 (fill_iterator_from_glyph_property): Assign image glyph
9032 the position of the first character having the glyph property.
9034 * dispextern.h (IMAGE_ASCENT): Compute ascent of image.
9035 * xfns.c (x_draw_image): Use it.
9036 * xterm.c (x_produce_image_glyph): Use it.
9038 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
9040 * Makefile.in: Extraneous #define of LIBXPM removed.
9042 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
9043 (x_fill_stretch_glyph_string): Fill a glyph string from a
9045 (x_compute_glyph_string_overhangs): Compute overhangs only
9046 for text glyph strings.
9047 (x_draw_stretch_glyph_string): Draw a stretch glyph string.
9048 (x_draw_glyph_string): Call it.
9050 * dispextern.h (glyph_type): Add STRETCH_GLYPH.
9051 (struct glyph): Add sub-structure for stretchable glyphs.
9052 (GLYPH_EQUAL_P): Compare glyph type and u.val.
9054 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
9057 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
9059 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
9060 setup_iterator_from_glyph_property. Don't do it for terminal
9063 * xterm.c (x_produce_image_glyph): Produce glyph for image
9064 that can't be loaded.
9066 * xfns.c (lookup_image): If image can't be loaded, set its
9067 width and height so that we can draw a rectangle.
9068 (x_draw_image): Draw a rectangle for images that don't have
9070 (make_image): Set hash value.
9071 (image_spec_equal_p): Use image_spec_value.
9073 * xterm.c (expose_frame): Don't try to redraw if basic faces
9074 haven't benn realized yet.
9075 (x_draw_image_glyph_string): Fill background only if image
9076 is not as tall as row.
9078 1998-05-04 Gerd Moellmann <gerd@gnu.org>
9080 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
9081 (LIBX)[HAVE_X11]: Add LIBXPM.
9083 * xfns.c (xpm_image_p): Implementation of image type functions
9087 * dispextern.h (struct image): Add mask pixmap for XPM.
9089 * xfns.c (x_draw_image): Handle images with masks.
9091 * configure.in: --with-xpm added. Code detecting -lXpm added.
9093 * config.in: Add HAVE_XPM.
9095 * xfns.c (xbm_draw): Removed.
9096 (x_draw_image): Default implementation for drawing images.
9097 (xbm_keyword_index): Remove XBM_DEPTH.
9098 (xbm_format): Remove `:depth'.
9099 (xbm_image_spec_from_file): Removed to reduce consing.
9100 (xbm_load_image_from_file): Added for the same reason.
9102 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
9104 (x_draw_image_glyph_string): Pass ybase to image draw function.
9106 * xfns.c (make_image): Set default baseline.
9108 * xterm.c (x_produce_image_glyph): Compute ascent of image
9109 from its height and baseline percentage.
9111 * xfns.c (xbm_keyword_index): Add XBM_BASELINE.
9112 (xbm_format): Add description for `:baseline'.
9113 (xbm_image_spec_from_file): Add keywords from original spec to
9115 (xbm_load): Set baseline of image.
9116 (xbm_image_p): Check range for baseline.
9118 * dispextern.h (struct image): Add member baseline.
9120 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
9122 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
9124 * xdisp.c (get_next_display_element): Do character translations
9125 only if delivering characters.
9127 1998-05-03 Gerd Moellmann <gerd@gnu.org>
9129 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
9132 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
9133 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
9135 1998-05-02 Gerd Moellmann <gerd@gnu.org>
9137 * xfns.c (prepare_image_for_display): Set image timestamp.
9138 (clear_image_cache): Clear images if image's timestamp +
9139 Vimage_eviction_seconds is > now.
9140 (syms_of_xfns): New variables image-eviction-seconds, and
9142 (add_image_format): Add to image-types.
9143 (xbm_load): Support new image spec format.
9144 (x_alloc_image_color): Allocate a color for an image.
9146 * dispextern.h (struct image): Add timestamp.
9148 * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and
9149 vectors of bool-vectors.
9150 (xbm_lisp_object_from_file): Build new format image spec.
9152 1998-05-01 Gerd Moellmann <gerd@gnu.org>
9154 * xfaces.c (init_frame_faces): Initialize image cache.
9155 (free_frame_faces): Free it.
9157 * xterm.c (x_delete_display): Don't free image cache.
9159 * emacs.c (main): Call init_xfns.
9161 1998-04-30 Gerd Moellmann <gerd@gnu.org>
9163 * alloc.c (mark_object): Mark objects in image cache.
9165 * xfns.c (x_set_internal_border_width): Correct call to
9166 widget_store_internal_border_width.
9168 * widget.c (widget_store_internal_border): Return void.
9170 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
9172 (init_x_parm_symbols): Return void.
9173 (x_report_frame_params): Ditto.
9174 (x_set_border_pixel): Ditto.
9175 (syms_of_xfns): Ditto.
9176 (x_destroy_all_bitmaps): Use xfree instead of free.
9178 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
9180 * xterm.c (x_term_init): Initialize image_cache of display info.
9181 (x_delete_display): Free image cache.
9183 * xterm.h (struct x_display_info): Add image_cache.
9185 * xfns.c (make_image_cache): Allocate a new image cache.
9186 (free_image_cache): Free an image cache.
9187 (make_image): Allocate an image.
9188 (free_image): Free an image.
9190 * dispextern.h (struct image): Structure describing an image.
9191 (struct image_cache): Structure describing an image cache.
9193 1998-04-29 Gerd Moellmann <gerd@gnu.org>
9195 * xdisp.c (check_iterator_glyph_property): Return int. Value is
9196 non-zero if iterator is filled with something to return.
9197 (next_element_from_buffer): Immediately return if
9198 setup_iterator_from_glyph_prop has filled iterator with pixmap.
9199 (next_element_from_string): Likewise.
9201 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
9203 * dispextern.h (struct glyph): Add pixmap_id.
9204 (display_element_type): Add DISP_PIXMAP.
9206 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
9209 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
9210 (clear_face_cache): Call it.
9212 * xterm.c (x_query_font): Don't look at empty font table slots.
9213 (x_compute_min_glyph_bounds): Likewise.
9214 (x_term_init): Initialize font_table to null.
9215 (x_load_font): Change allocation of font_info structures so
9216 that it is possible to free fonts.
9218 * xfns.c (Fx_close_connection): Use xfree instead of free.
9219 Only free fonts from filled font table entries.
9221 * xfaces.c (best_matching_font): Support use of scalable fonts.
9222 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
9224 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
9226 * xterm.c (x_term_init): Compute resx and resy.
9228 * xfaces.c (split_font_name): Don't reject scalable fonts.
9230 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
9233 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
9234 point size cannot be determined.
9236 * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character
9237 width over all fonts on a frame.
9238 (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height.
9239 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these
9242 * xterm.c (x_font_min_bounds): Moved here from xfaces.c.
9243 (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c.
9244 (x_load_font): Use x_compute_min_char_bounds.
9246 * xterm.h (struct x_display_info): New members smallest_char_width
9247 and smallest_font_height.
9249 1998-04-28 Gerd Moellmann <gerd@gnu.org>
9251 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
9252 the same name if GC of face is zero.
9254 * dispextern.h (struct face): Member non_ascii_gc removed.
9256 * xterm.c (x_get_char_font_and_encoding): Return face's font
9257 for characters < 0177 in default face. Prepare face for
9258 display before returning it.
9259 (x_produce_glyphs): Use it->charset.
9260 (x_get_char_font_and_encoding): Simplified.
9261 (x_encode_char): Remove parameter `font'.
9263 * xfaces.c (choose_face_font): If registry from charset symbol
9264 doesn't contain a `-', make it a pattern by appending "*-*".
9266 * xdisp.c (check_iterator_glyph_property): Adjust limit for
9267 glyph_check_pos computation to character boundary.
9269 1998-04-27 Gerd Moellmann <gerd@gnu.org>
9271 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
9273 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
9274 ASCII face for a given Lisp face id.
9276 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
9278 (reseat_iterator): Set glyph_check_pos. Handle case where
9279 new position is < original position.
9280 (check_iterator_glyph_property): Handle glyph property in strings.
9281 (next_element_from_string): Call above function.
9282 (next_element_from_display_vector): Handle faces in glyphs.
9283 (get_next_display_element): Set face_id of glyphs for
9284 control chars to zero.
9286 * Makefile.in (term.o): Add dependency on dispextern.h.
9288 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
9289 (display_line): Handle marginal areas.
9290 (move_iterator_in_display_line_to): Likewise.
9292 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
9294 * xfaces.c (face_at_buffer_position): Don't merge with nil
9296 (face_at_string_position): Ditto.
9298 * dispextern.h (struct display_iterator): Use a stack of saved
9299 values instead of saving check positions etc. individually.
9301 * xdisp.c (set_iterator_to_next): If end of Lisp string reached,
9302 maybe pop the iterator's stack.
9303 (save_iterator_settings): Push a value on iterator's stack.
9304 (get_overlay_strings_at_iterator_position): Use it.
9305 (restore_iterator_settings): Pop the stack.
9306 (set_iterator_to_next_overlay_string): Use it.
9308 * xfaces.c (try_font_list): Use alternative font families.
9310 1998-04-26 Gerd Moellmann <gerd@gnu.org>
9312 * xfaces.c (Fset_face_font_sort_order): Set the order in which
9313 font selection matches fonts.
9314 (Fface_font_sort_order): Return the font sort order.
9315 (best_matching_font): Find best matching font based on sort order.
9316 (cmp_font_names): Sort by given sort order.
9318 * dispextern.h (struct display_iterator): New member faces_p.
9319 * xdisp.c (init_iterator): Initialize it->faces_p.
9320 (compute_face_at_iterator_string_position): Use it.
9321 (compute_face_at_iterator_position): Use it.
9322 (init_iterator): Use it.
9323 (display_mode_line): Ditto.
9325 * xdisp.c (get_next_display_element): Put code choosing a face
9326 when the charset changes in #ifdef HAVE_FACES.
9328 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
9329 lookup_face_for_charset.
9331 * xfaces.c (free_font_names): Renamed from free_split_font_names.
9332 (free_all_realized_faces): Renamed from remove_all_realized_faces.
9334 1998-04-25 Gerd Moellmann <gerd@gnu.org>
9336 * xfaces.c (best_matching_font): Return the name of the best
9337 matching font in an array of font_name structures.
9338 (choose_face_font): Use it.
9339 (choose_face_fontset_font): Use it.
9340 (find_best_weight_font): If final font found has same weight as
9341 the font we started with, return the original font because it is a
9342 better match for the resolution of the display.
9343 (find_best_slant_font): Likewise.
9344 (merge_face_vector_with_property): Check more invalid attribute
9346 (lface_suitable_for_charset_p): Replaced by a macro with the same
9349 1998-04-24 Gerd Moellmann <gerd@gnu.org>
9351 * dispextern.h (struct face): Member
9352 fontset_chosen_for_realization_p removed.
9354 * xfaces.c (cache_face): If face->fontset >= 0, add face to the
9355 end of the collision list, so that we find more specific faces
9357 (lookup_face_for_charset): Look up a new face if face->fontset >=
9358 0, and charset != CHARSET_COMPOSITION.
9360 * xfaces.c (split_font_name): Return zero if point size of font
9361 couldn't be computed.
9362 (realize_default_face): Use ASCII font of a fontset to determine
9363 font-related attributes of the default face.
9364 (face_fontset): Return fontset id for face family.
9365 (font_list): Additional parameter font_pattern. If non-nil,
9366 return fonts matching that pattern.
9368 1998-04-23 Gerd Moellmann <gerd@gnu.org>
9370 * xfaces.c (choose_face_fontset): If new fontset cannot be
9371 constructed, or fontset name cannot be split, return the id of the
9374 * xterm.c (XTframe_up_to_date): Check that frame is an X frame.
9375 When Emacs starts, it may be called for the initial frame which
9378 * dispextern.h (struct face): New members foreground_defaulted_p,
9379 background_defaulted_p.
9380 (struct face): Members `mask' and `cache' removed.
9382 * xfaces.c (load_color): Set them.
9383 (free_face_colors): Check them.
9384 (xlfd_point_size): Return -1 if resolution or point size of
9387 * xfaces.c (free_font): Removed.
9388 (load_face_font_or_fontset): Renamed from load_font.
9389 (load_face_font_or_fontset): Use message2 instead of signalling.
9390 (load_color): Likewise.
9391 (load_pixmap): Likewise.
9393 * xterm.h (struct x_display_info): Add screen_dpi.
9394 * xterm.c (x_term_init): Initialize it.
9395 * xfaces.c (xlfd_point_size): Use it.
9396 (split_font_name): Compute numeric XLFD_RESY.
9397 (cmp_font_names): Make fonts with an y-resolution more
9398 similar to that of the frame appear first in the result.
9400 * xfaces.c (cache_face): If fontset_chosen_for_realization_p
9401 is set for the face to cache, add it to the end of the collision
9403 (try_font_list): If fonts for given family and registry cannot
9404 be found, first try to keep the registry, and choose a different
9406 (choose_face_font): Allow nfonts == 0.
9407 (try_font_list): Give up if no font matches given registry.
9409 1998-04-22 Gerd Moellmann <gerd@gnu.org>
9411 * xterm.c (x_get_char_font_and_encoding): Get font_info from
9412 font info id of the face.
9414 * xfaces.c (load_font): Set font_info_id.
9415 (realize_face): Ditto.
9417 * dispextern.h (struct face): Change member font_info to
9420 * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer.
9421 (FONT_INFO_FROM_ID): Get a font_info pointer from an ID.
9423 * xdisp.c (extend_face_to_end_of_line): If IT's current charset
9424 isn't ASCII, get the ASCII face before adding a space.
9425 (append_space): Likewise.
9426 (insert_left_trunc_glyphs): Initialize truncate_it's charset
9427 to -1 so that it will compute the right face for the truncation
9430 * xfaces.c (realize_face): Set
9431 face->fontset_chosen_for_realization_p.
9432 (lookup_face_for_charset): If fontset wasn't specified originally
9433 and new charset != CHARSET_COMPOSITION, get a new face for that
9436 * dispextern.h (struct face): New member
9437 fontset_chosen_for_realization_p_specified_p. Set to 1 when
9438 realize_face has chosen a fontset to display composite characters
9439 for a Lisp face not specifying a fontset.
9441 * xdisp.c (extend_face_to_end_of_line): Move tests for default
9442 face and line already filled here. Don't do anything if current
9443 face hasn't a relief or has a background equal to the frame
9446 * xfaces.c (split_font_name): Additional parameter numeric_p.
9447 Don't compute numeric values if it is non-zero.
9448 (choose_face_fontset): Call split_font_name with numeric_p == 0.
9449 (choose_face_fontset): Print a message if fontset contains a
9450 font whose name cannot be split into fields.
9452 1998-04-21 Gerd Moellmann <gerd@gnu.org>
9454 * xfaces.c (try_font_list): Try to load a list of fonts,
9455 possibly using less restrictive patterns.
9456 (choose_face_font): Use it.
9458 * xterm.c (x_get_char_font_and_encoding): For charset !=
9459 CHARSET_ASCII use font_info of face if face hasn't a fontset set.
9461 * dispextern.h (struct face): New member font_info.
9463 * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces
9464 specifying a fontset as well as those not having a fontset.
9465 (free_font): Make it empty.
9466 (realize_face): Use changed load_font.
9468 * xterm.c (x_get_char_font_and_encoding): If face doesn't
9469 fit for charset, get the right one.
9471 * xfaces.c (load_font): Take frame and name parameter, return
9473 (free_font): Likewise.
9474 (split_font_name): Compute numeric values for height, swidth etc.
9475 (cmp_font_names): Use them.
9476 (find_best_width_font): Ditto.
9477 (find_best_height_font): Ditto.
9478 (find_best_weight_font): Ditto.
9479 (find_best_slant_font): Ditto.
9480 (lface_hash): Add weight, slant, swidth and relief to hash value.
9481 (lface_equal_p): Make it faster.
9482 (lface_from_symbol): Use assq_no_quit.
9483 (Fnote_default_face_changed): Removed.
9484 (cmp_font_names): Use strcmp instead of xstricmp.
9485 (face_charset_registries): Removed.
9487 1998-04-20 Gerd Moellmann <gerd@gnu.org>
9489 * frame.h (CHECK_FRAME): Give this macro a statement form.
9490 (CHECK_LIVE_FRAME): Ditto.
9492 * xfaces.c (find_best_width_font): Find the best matching font
9494 (find_best_height_font): Likewise for height.
9495 (find_best_weight_font): Likewise for weight.
9496 (find_best_slant_font): Likewise for slant.
9497 (choose_face_font): Use them.
9498 (get_lface_attributes): Always return frame-local face attrs.
9499 (Finternal_merge_in_global_face): Merge local face with
9500 global face attributes.
9502 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
9503 Lisp face attributes.
9505 1998-04-19 Gerd Moellmann <gerd@gnu.org>
9507 * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold
9508 and :italic for compatibility.
9509 (Finternal_set_lisp_face_attribute_from_resource): Handle
9510 :bold and :italic. Handle boolean resource values for
9511 :underline and :italic.
9513 * xfns.c (display_x_get_resource): Make it externally visible.
9515 * xfaces.c (lface_from_symbol): Take a frame as parameter.
9516 If that frame is non-null, return the frame-local face.
9517 (Finternal_make_lisp_face): Additional frame argument.
9518 (lface_attributes): Get face attributes from global and frame-local
9520 (Finternal_lisp_face_equal_p): Additional frame argument.
9521 (merge_lisp_face_vector_with_property): Ditto.
9522 (Frealize_basic_faces): Removed.
9523 (Finternal_get_lisp_face_attribute): Additional frame argument.
9524 (Finternal_lisp_face_p): Ditto.
9525 (load_color) [MSDOS]: Removed because it isn't clear how
9526 to do this for MS-DOS.
9528 * xfaces.c (lface_from_symbol): Get global face definition
9529 from face-global-alist.
9531 * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t'
9532 as values for :underline and :inverse-video.
9533 (Finternal_set_lisp_face_attribute): Allow nil values.
9535 1998-04-17 Gerd Moellmann <gerd@gnu.org>
9537 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
9539 * xfaces.c (syms_of_xfaces): Add Vall_faces.
9540 (Finternal_make_lisp_face): Add new face to Vall_faces.
9542 * xdisp.c (echo_area_display): Remove code recomputing faces.
9543 (redisplay_internal): Ditto.
9544 (init_iterator): Do it here.
9546 * xfaces.c (choose_face_font): Check that swidth doesn't change
9547 for subusequent attributes.
9548 (xlfd_point_size): Return int.
9550 * xdisp.c (redisplay_internal, echo_area-display): If realized
9551 faces have been cleared, call recompute_basic_faces.
9553 * xfaces.c (recompute_basic_faces): Free realized faces. Reset
9554 face_attributes_changed_p.
9555 (remove_all_realized_faces): Remove all realized faces on
9557 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
9559 * xdisp.c (redisplay_internal): If face attributes have been
9560 changed since the last redisplay, recompute basic faces.
9561 (echo_area_display): Ditto.
9563 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
9565 * xfaces.c (min_char_bounds): If face cache not yet present,
9566 don't try to get font dimensions from faces.
9568 * xterm.c (x_frame_mode_line_height): If face cache not present
9569 set, return default height.
9571 * alloc.c (mark_face_cache): Check for null faces. Correct
9574 * dispextern.h (struct face): Renamed from struct rface. Member
9575 underline renamed underline_p. Make it a bit-field.
9577 * xfaces.c (init_frame_faces): Allocate face cache.
9578 (free_frame_faces): Free face cache.
9579 (recompute_basic_faces): Realize basic faces only if face cache is
9580 allocated, i.e. after init_frame_faces has been called.
9582 * frame.c (make_frame): Initialze face cache with null.
9584 * xfaces.c (same_size_fonts): Removed.
9586 * xterm.c (x_set_glyph_string_gc): Add post-condition
9588 (x_set_mouse_face_gc): Ditto.
9589 (x_set_mode_line_face_gc): Ditto.
9591 * xfaces.c (realize_default_face): Return int. Value is
9592 zero if frame params don't contain enough information to
9593 realize the default face.
9594 (realize_basic_faces): Ditto.
9595 (init_frame_faces): Realize basic faces.
9597 * xfns.c (x_set_font): First store real font name in frame
9598 parameters, then call recompute_basic_faces.
9600 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
9602 1998-04-16 Gerd Moellmann <gerd@gnu.org>
9604 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
9606 * xfns.c (Fx_face_fixed_p): Removed.
9607 (Fx_list_fonts): Moved to xfaces.c.
9609 * xfaces.c (compute_face_at_buffer_pos): Renamed to
9610 face_at_buffer_position. Parameter charset removed; always
9611 compute face for CHARSET_ASCII.
9612 (face_at_string_position): Renamed from
9613 compute_face_at_string_pos. Parameter charset removed; always
9614 compute for CHARSET_ASCII.
9615 (lookup_face_for_charset): Take frame parameter instead of
9617 (lookup_face): Ditto.
9618 (compute_char_face): Renamed from compute_glyph_face.
9620 * xdisp.c (init_iterator): Initialize charset member.
9621 (reseat_iterator_to_string): Ditto.
9622 (get_charset_at_buffer_position): Determine charset at
9623 buffer position in current_buffer.
9624 (reseat_iterator): Call above function.
9625 (compute_face_at_iterator_position): Call
9626 compute_face_at_buffer_pos.
9627 (compute_face_at_iterator_string_position): Call
9628 compute_face_at_string_pos.
9629 (get_face_from_id): Removed.
9630 (get_face_from_cursor_pos): Call compute_face_at_buffer_pos.
9631 Call get_charset_at_buffer_position.
9632 (reseat_iterator): Determine face if charset at pos differs
9633 from iterator's charset.
9634 (reseat_iterator_to_glyph_pos): Removed.
9636 * xfaces.c (compute_face_at_bufpos): Remove parameter charset.
9637 Determine charset from buffer position.
9638 (compute_string_char_face): Renamed to compute_face_at_string_pos.
9639 (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos.
9641 * dispextern.h (struct display_iterator): Add member charset.
9643 1998-04-15 Gerd Moellmann <gerd@gnu.org>
9645 * xfaces.c (compute_char_face): Removed.
9647 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
9648 with new parameter list.
9650 * xfaces.c (region_face): Removed.
9651 (allocate_face): Removed.
9653 (face_eql): Removed.
9654 (intern_face): Removed.
9655 (clear_face_cache): Removed.
9657 (unload_font): Ditto.
9658 (load_color): Ditto.
9659 (unload_color): Ditto.
9660 (new_computed_face): Ditto.
9661 (intern_computed_face): Ditto.
9662 (ensure_face_ready): Ditto.
9663 (merge_faces): Ditto.
9664 (compute_base_face): Ditto.
9665 (merge_face_list): Ditto.
9666 (Fmake_face_internal): Removed.
9667 (Fset_face_attribute_internal): Ditto.
9668 (face_name_id_number): Removed.
9669 (Fframe_face_alist): Ditto.
9670 (Fset_frame_face_alist): Ditto.
9671 (Finternal_next_face_id): Ditto.
9673 * xterm.h (struct x_output): Remove computed_faces, and
9674 param_faces. Remove macros accessing them.
9676 * xfaces.c: Entirely new face implementation added.
9678 1998-04-11 Gerd Moellmann <gerd@gnu.org>
9680 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
9683 1998-04-10 Gerd Moellmann <gerd@gnu.org>
9685 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
9686 scroll bar window to reduce flickering. Clear entire height.
9688 * xdisp.c (move_iterator_vertically_backward): Set iterator's
9689 current_x and hpos to zero after moving to previous line
9692 1998-04-03 Gerd Moellmann <gerd@gnu.org>
9694 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
9696 * xfaces.c (xlfd_point_size): Compute relative point size of
9697 fonts from font and frame resolution.
9698 (sort_fonts): New function to sort fonts, temporarily setting
9699 font_frame to the frame in effect.
9700 (xlfd_point_size): Take additional frame parameter to be able
9701 to get at the display's resolution.
9703 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
9705 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
9708 1998-03-31 Gerd Moellmann <gerd@gnu.org>
9710 * xfaces.c (choose_face_fontset): Instantiate fontsets.
9712 * fontset.h: Add external declarations for Vfontset_alias_alist
9713 and Vglobal_fontset_alist.
9715 * xfaces.c (merge_lisp_face_vector_with_property): Simplified.
9716 (realize_default_face): If frame parameters contain an artificial
9717 font name naming a fontset, set the family of the default face to
9718 the fontset name given by the registry.
9720 * Makefile.in (alloc.o): Add dependency to dispextern.h.
9722 1998-03-22 Gerd Moellmann <gerd@gnu.org>
9724 * alloc.c (mark_object): Add function prototype. Add cast to
9725 Lisp_Object pointer in call to mark_object for symbol names
9726 because this otherwise gives a warning from gcc 2.8.1.
9727 (mark_face_cache): Mark Lisp objects in realized faces.
9729 1998-03-19 Gerd Moellmann <gerd@gnu.org>
9731 * frame.h (struct frame): Add member face_cache.
9733 * alloc.c (mark_object): Mark face cache.
9734 (mark_face_cache): Mark Lisp faces in face cache of frame.
9736 * frame.c (make_frame): Initialize face_cache.
9737 (Fdelete_frame): Free it.
9739 1998-03-18 Gerd Moellmann <gerd@gnu.org>
9741 * xfaces.c: Very first skeleton of functions for face realization,
9742 face merging, face cache etc.
9744 * dispextern.h (struct rface): Realized faces. Will replace
9745 struct face when tested.
9746 (struct face_cache): Realized face caches.
9748 * xdisp.c (init_iterator): Initialize area member of display
9751 1998-03-17 Gerd Moellmann <gerd@gnu.org>
9753 * xterm.c (x_append_glyph): Use it->area to store glyphs.
9755 * dispextern.h (struct display_iterator): New member area.
9757 * xterm.c (note_overwritten_text_cursor): Note when the text
9758 cursor of a window is overwritten.
9760 * xdisp.c (set_cursor_from_row): If PT is not found in the
9761 row, display the cursor at the start of the row.
9763 * dispnew.c (direct_output_forward_char): Call
9764 set_cursor_from_row.
9766 * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If
9767 position is not in an overlay string, set iterator's position and
9768 method explicitly so.
9769 (set_cursor_from_row): Correct cursor position calculation.
9770 Make it externally visible.
9771 (redisplay_window): Call set_cursor_from_row so that there is only
9772 one place where the cursor position is calculated from a current
9775 * dispextern.h (struct display_iterator): New member
9776 overlay_strings_at_end_processed_p.
9778 * xdisp.c (check_iterator): Perform sanity checks on
9780 (next_element_from_buffer): Check for overlay strings at ZV.
9782 1998-03-16 Gerd Moellmann <gerd@gnu.org>
9784 * buffer.c (init_buffer_once): Add left_margin_width and
9785 right_margin_width to buffer_local_flags.
9787 * dispnew.c (margin_glyphs_to_reserve): Function computing
9788 number of glyphs to reserve for a marginal area.
9789 (adjust_glyph_matrix): Call it.
9790 (adjust_frame_glyphs_for_frame_redisplay): Return if frame
9793 * window.c (Fset_window_margins): Allow floats.
9795 * buffer.c (syms_of_buffer): Add buffer-local variables
9796 left-margin-width and right-margin-width. Add defaults
9797 default-left-margin-width and default-right-margin-width.
9799 * buffer.h (struct buffer): New members left_margin_width
9800 and right_margin_width.
9802 * window.c (Fset_window_margins): Make window the last and
9805 * xterm.c (x_draw_glyphs): Compute x-positions for rows with
9806 flag no_marginal_areas_p differently.
9807 (x_clear_end_of_line): Ditto.
9808 (x_draw_glyph_string_relief): Compute width of relief differently
9809 for rows with flag no_marginal_areas_p.
9811 * dispnew.c (update_window_line): Update marginal areas only
9812 for rows that don't have no_marginal_areas_p set.
9814 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
9815 (display_menu_bar): Ditto.
9817 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
9819 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
9820 marginal areas in window-based redisplay.
9822 * dispextern.h (struct glyph_matrix): New members
9823 left_margin_glyphs and right_margin_glyphs.
9825 1998-03-15 Gerd Moellmann <gerd@gnu.org>
9827 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
9829 * charset.c (non_ascii_char_to_string): Use char type parameters
9830 because the function is used that way from outside. Use unsigned
9833 * window.c (change_window_height): Return void.
9834 (make_dummy_parent): Return void.
9835 (init_window_once): Return void.
9836 (syms_of_window): Ditto.
9837 (keys_of_window): Ditto.
9838 (delete_window): Correct return with and without value.
9840 * buffer.c (record_buffer): Return void.
9842 * marker.c (unchain_marker): Return void.
9844 * window.c (unshow_buffer): Return void.
9845 (replace_window): Ditto.
9846 (delete_window): Ditto.
9848 * term.c (delete_glyphs_hook): Void return type.
9849 (ring_bell_hook): Ditto.
9850 (set_terminal_window_hook): Ditto.
9852 * sysdep.c (init_sigio): Return void.
9854 * xterm.c (x_set_window_size): Return void.
9855 (x_calc_absolute_position): Ditto.
9856 (x_set_offset): Ditto.
9857 (x_focus_on_frame): Ditto.
9858 (x_unfocus_frame): Ditto.
9859 (x_make_frame_visible): Ditto.
9860 (x_make_frame_invisible): Ditto.
9861 (x_iconify_frame): Ditto.
9862 (x_destroy_window): Ditto.
9863 (x_wm_set_window_state): Ditto.
9864 (x_wm_set_icon_pixmap): Ditto.
9865 (x_wm_set_icon_position): Ditto.
9866 (x_initialize): Ditto.
9867 (x_error_quitter): Ditto.
9868 (x_destroy_window): Use xfree instead of free.
9870 * keyboard.c (clear_waiting_for_input): Return void.
9872 * xterm.c (x_wm_set_size_hint): Return void.
9873 (x_raise_frame): Ditto.
9874 (refreshicon): Ditto.
9875 (x_error_catcher): Ditto.
9876 (x_clear_errors): Ditto.
9878 * keyboard.c (record_asynch_buffer_change): Return void.