(struct buffer): Add cursor_type.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
89e80928
GM
12000-03-26 Gerd Moellmann <gerd@gnu.org>
2
3d4ff2dd
GM
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
7 from that.
8
bd96bd79
GM
9 * buffer.c (syms_of_buffer): Add default-cursor-type.
10 (init_buffer_once): Don't let cursor_type have a local value
11 in every buffer.
12
19d1bc27
GM
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.
16
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.
21
89e80928
GM
22 * buffer.h (struct buffer): Remove member local_var_flags,
23 add local_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.
29
30 * print.c (print_object): Use new macros for per-buffer
31 variables.
32
33 * category.c (Fset_category_table): Use new macros for per-buffer
34 variables.
35
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.
43
44 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
45 variables.
46
47 * lread.c (defvar_per_buffer): Use new macros for per-buffer
48 variables.
49
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
53 per-buffer variables.
54
55 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
56
9a0dd3dc
GM
572000-03-24 Gerd Moellmann <gerd@gnu.org>
58
b68c375f
GM
59 * xterm.c (x_term_init): Unblock input around call1 of
60 Qvendor_specific_keysyms.
61
9a0dd3dc
GM
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.
66
7973e637
SM
672000-03-24 Stefan Monnier <monnier@cs.yale.edu>
68
69 * eval.c (Fautoload): Add entry in load-history (if after dump).
70 * lread.c (load-history): Update docstring.
71
39210e90
GM
722000-03-24 Gerd Moellmann <gerd@gnu.org>
73
74 * indent.c (Fvertical_motion): Always use the current buffer.
75 Temporarily change the window's buffer, if necessary.
76
72db3ab5
GM
772000-03-23 Gerd Moellmann <gerd@gnu.org>
78
79 * xterm.c (fast_find_position): Make sure not to consider rows
80 not visible in the window.
81
990b2375
SM
822000-03-22 Stefan Monnier <monnier@cs.yale.edu>
83
84 * regex.c (enum syntaxcode): Provide default for non-Emacs.
85 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
86
ff4df011
JR
872000-03-22 Jason Rumney <jasonr@gnu.org>
88
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.
94
95 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
96 (QCdata): Moved to xdisp.c.
97
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
105 with TODO comment.
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.
109
1102000-03-22 Jason Rumney <jasonr@gnu.org>
111
112 * makefile.nt (w32bdf.obj): Update dependencies.
113
114 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
115
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.
120
121 * w32term.c: Include fontset.h after dispextern.h.
122 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
123 updated.
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.
143
439d5cb4
KR
1442000-03-22 Ken Raeburn <raeburn@gnu.org>
145
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.
152
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):
165 Likewise.
166 * syntax.c (update_syntax_table): Likewise.
167
168 * intervals.c (reproduce_tree_obj): New function, like
169 reproduce_tree but takes a Lisp_Object for the parent. Declare
170 with prototype.
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.
175
ee1c5b21
GM
1762000-03-22 Gerd Moellmann <gerd@gnu.org>
177
178 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
179 as strings only if both are known to be strings.
180
181 * s/openbsd.h (LIBS_TERMCAP): Undef.
182
1fb352e0
SM
1832000-03-21 Stefan Monnier <monnier@cs.yale.edu>
184
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.
198
fdaa1f77
KH
1992000-03-22 Kenichi Handa <handa@etl.go.jp>
200
ff1a0d8e
KH
201 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
202 FACE_FOR_CHAR): Define them differently for the configuration of
203 --without-x.
fdaa1f77 204
d152fb46
DL
2052000-03-21 Dave Love <fx@gnu.org>
206
207 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
208 doc string.
209
d2cafc8c
GM
2102000-03-21 Gerd Moellmann <gerd@gnu.org>
211
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.
216
9111d4b5
KH
2172000-03-21 Kenichi HANDA <handa@etl.go.jp>
218
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.
222
6c4bfdc0
KH
223 * Makefile.in (fontset.o): Depend on dispextern.h.
224
225 * alloc.c (mark_face_cache): Don't mark face->registry.
226
9111d4b5
KH
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.
236
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.
247
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
251 removed.
252 (my_strcasecmp): Function removed.
253 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
254 variables.
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):
263 New functions.
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):
268 Functions removed.
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.
274
275 * frame.h (struct frame): Member `fontset_data' removed.
276 (FRAME_FONTSET_DATA): Macro removed.
277
278 * frame.c (make_frame): Don't allocate f->fontset_data.
279 (Fdelete_frame): Don't free f->fontset_data.
280
6c4bfdc0
KH
281 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
282
9111d4b5
KH
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):
287 Likewise.
288 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
289 FACE_FOR_CHARSET.
290 (get_next_display_element, append_space,
291 extend_face_to_end_of_line): Likewise.
292
293 * xfaces.c (Qx_charset_registry, Vface_default_registry):
294 Variables removed.
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
323 former face here.
324 (realize_face): Argument changed. Caller changed. Remove face
325 with the arg former_face_id in advance. Load font for the new
326 face.
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
330 here.
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
334 DEFAULT_FACE_ID.
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.
339
6c4bfdc0
KH
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.
9111d4b5
KH
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
347 changed.
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.
363
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.
367
368 * fns.c (optimize_sub_char_table): New function.
369 (Foptimize_char_table): New function.
370 (syms_of_fns): Defsubr Soptimize_char_table.
371
b33dd3b0
GM
3722000-03-20 Gerd Moellmann <gerd@gnu.org>
373
374 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
375 only if buffer is displayed in some window.
376
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.
381
4e8a9132
SM
3822000-03-19 Stefan Monnier <monnier@cs.yale.edu>
383
384 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
385
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
395 optimization.
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.
404
2136fdd4
GM
4052000-03-19 Gerd Moellmann <gerd@gnu.org>
406
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
409 of the visual.
410
411 * term.c (calculate_costs): Remove code dealing with X frames.
412
e53ae11c
RS
4132000-03-19 Richard M. Stallman <rms@caffeine.ai.mit.edu>
414
415 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
416
d7b511c4
GM
4172000-03-18 Gerd Moellmann <gerd@gnu.org>
418
419 * lread.c (read_integer): Unread the last char not consumed.
420
16b5d424
GM
4212000-03-17 Gerd Moellmann <gerd@gnu.org>
422
423 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 424 which are in the process of being deleted.
16b5d424 425
1fa28578
GM
4262000-03-16 Gerd Moellmann <gerd@gnu.org>
427
83488cce
GM
428 * Makefile.in (mostlyclean): Add `*.core'.
429 (clean): Add `bootstrap-emacs'.
430
1fa28578
GM
431 * lread.c (read_integer): New function.
432 (read1): Support read syntax #o, #x, #b, #r.
433
99633e97
SM
4342000-03-15 Stefan Monnier <monnier@cs.yale.edu>
435
1fa28578
GM
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.
99633e97
SM
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'.
1fa28578
GM
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'.
99633e97
SM
445 (store_op1, store_op2, insert_op1, insert_op2)
446 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
447 (group_in_compile_stack): Move to after its arg's types are
448 declared and add a prototype.
99633e97 449 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
450 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
451 wrapper.
99633e97 452 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
453 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
454 indentation of the greedy-op and shy-group code.
99633e97
SM
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.
1fa28578
GM
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.
99633e97 462
699238d9
GM
4632000-03-15 Gerd Moellmann <gerd@gnu.org>
464
465 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
466 a sole completion.
467
468 * process.c (send_process): Add a hint that the function
469 can call Lisp code to its comment.
470
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.
476
34e23e5a
GM
4772000-03-14 Gerd Moellmann <gerd@gnu.org>
478
9c763cca
GM
479 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
480
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.
484
485 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
486
487 * xfns.c (X_I18N_INHIBITED): Don't define.
488 (create_frame_xic): Remove conditional compilation on
489 X_I18N_INHIBITED.
490 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
491
492 * config.in (HAVE_X_I18N): Moved here from xterm.h.
493 (HAVE_X11R6_XIM): Define.
494
495 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
496
34e23e5a
GM
497 * xterm.c (x_term_init): Add support for X resource `synchronous'.
498 If set, call XSynchronize.
499
66f0296e
SM
5002000-03-13 Stefan Monnier <monnier@cs.yale.edu>
501
34e23e5a
GM
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
506 char'.
66f0296e 507 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
508 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
509 code duplication.
66f0296e
SM
510
511 * charset.h (GET_CHAR_AFTER_2): Remove.
512 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
513
854a025c
KR
5142000-03-12 Ken Raeburn <raeburn@gnu.org>
515
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.
519
b9d2c7e2
DL
5202000-03-12 Dave Love <fx@gnu.org>
521
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.
525
5e5dff44
GM
5262000-03-12 Gerd Moellmann <gerd@gnu.org>
527
9b2f3c38
GM
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.
530
9172b88d
GM
531 * fileio.c (Fread_file_name): Handle case that DIR contains a
532 file name.
533
e1cff360
GM
534 * window.c (Fsave_window_excursion): Doc fix.
535
5e5dff44
GM
536 * xfns.c (x_defined_color): Rewritten to use
537 x_allocate_nearest_color.
538
e411ce4b
EZ
5392000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
540
541 * msdos.c (vga_installed): New function, code moved from
542 dos_set_window_size.
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
551 type has changed.
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).
555
80460654
GM
5562000-03-09 Gerd Moellmann <gerd@gnu.org>
557
558 * fns.c (Fy_or_n_p): Cancel busy-cursor.
559
95cd4c40
SM
5602000-03-08 Stefan Monnier <monnier@cs.yale.edu>
561
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.
566
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.
571
80460654
GM
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
578 re_opcode_t.
579 (print_compiled_pattern): Use %ld to printf long ints and flush to
580 make debugging a little easier.
95cd4c40
SM
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.
80460654
GM
588 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
589 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 590 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
591 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
592 macros.
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
595 of it instead.
95cd4c40
SM
596 (NUM_FAILURE_ITEMS): Remove.
597 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
598 registers before the actual failure point). Don't hardcode any
599 meaning for str==NULL anymore.
95cd4c40 600 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
601 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
602 Remove.
95cd4c40
SM
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.
80460654
GM
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'.
95cd4c40 622 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
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.
95cd4c40 642
7397acc4
DL
6432000-03-08 Dave Love <fx@gnu.org>
644
645 * config.in: Don't depend on __STDC__ for volatile.
646 Add POINTER_TYPE, PTR, PROTOTYPES.
647
648 * hftctl.c, strftime.c: Use PROTOTYPES.
649 * eval.c (find_handler_clause): Likewise.
650
651 * mem-limits.h: Use POINTER_TYPE.
652
653 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
654 (memory_warnings): Declare using POINTER_TYPE.
655
5e91ff9e
GM
6562000-03-08 Gerd Moellmann <gerd@gnu.org>
657
feab4fba
GM
658 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
659
25edb08f
GM
660 * xdisp.c (display_echo_area): Temporarily inhibit garbage
661 collection.
662
5e91ff9e
GM
663 * xfns.c: Remove obsolete code in #if 0.
664 (Fx_focus_frame): New function.
665
a735b7e1
KH
6662000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
667
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.
686
687 * coding.h (CODING_CATEGORY_IDX_UTF_8,
688 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
689 macros.
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.
697
9994cc69
GM
6982000-03-07 Gerd Moellmann <gerd@gnu.org>
699
e9b4e5ff
GM
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.
702
f7daf1e1
GM
703 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
704 close the display with XtCloseDisplay. This caused a bus error
705 on OpenWindows.
706
9994cc69
GM
707 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
708 complete but not unique.
709
4336c705
GM
7102000-03-06 Gerd Moellmann <gerd@gnu.org>
711
18bb0684
GM
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.
715
4336c705
GM
716 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
717 orig_height if set.
718
719 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
720 orig_height if set.
721
515d0d0e
EZ
7222000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
723
724 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
725 glyph matrices have been freed.
726
100b3cbb
GM
7272000-03-05 Gerd Moellmann <gerd@gnu.org>
728
50df5e5a 729 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 730 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
731
732 * xfns.c (QCdata): Moved to xdisp.c.
733
734 * xdisp.c (QCdata): Moved here from xfns.c.
735 (syms_of_xdisp): Initialize QCdata.
736
737 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
738
739 * window.c (coordinates_in_window): Use
740 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
741 FRAME_INTERNAL_BORDER_WIDTH.
742
100b3cbb 743 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 744 it is obviously invalid.
100b3cbb
GM
745
746 * xterm.c (x_term_init): Create a colormap if not using the
747 default visual.
748
749 * xterm.h (select_visual): Change prototype.
750
751 * xfns.c (select_visual): Rewritten. Recognize user-specified
752 visual classes.
753 (visual_classes): New variable.
754
64d739c4
GM
7552000-03-04 Gerd Moellmann <gerd@gnu.org>
756
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
761 specially.
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.
767
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.
771
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
776 FRAME_X_COLORMAP.
777
778 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
779 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
780
c3cee013
JR
7812000-03-04 Jason Rumney <jasonr@gnu.org>
782
783 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
784 other non-platform-specific equivalents.
64d739c4 785 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
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
797 WINDOWSNT.
798 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
799 scalable for backward compatibility.
64d739c4 800 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
801 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
802
64d739c4 803 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
804 syms_of_w32faces.
805
806 * makefile.nt (w32faces.obj): Remove.
807 (xfaces.obj): Add.
808
807cc41c
JR
8092000-03-03 Jason Rumney <jasonr@gnu.org>
810
811 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
812 correct parameters.
813
0007072a
KR
8142000-03-03 Ken Raeburn <raeburn@gnu.org>
815
816 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
817 standard ELF definitions here if the system header does not.
818
71a6ba55
GM
8192000-03-03 Gerd Moellmann <gerd@gnu.org>
820
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
64d739c4
GM
826 char, replace occurrences of unprintable chars with a suitably
827 chosen usable default char.
71a6ba55 828
900fa1f1
GM
8292000-03-02 Gerd Moellmann <gerd@gnu.org>
830
42f55fe0
GM
831 * xterm.c (note_mouse_highlight): Return quickly if frame's
832 glyph matrices have been freed.
833
834 * dispnew.c (free_glyphs): Block input while freeing matrices.
835
900fa1f1
GM
836 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
837
838 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
839 x_free_colors.
840
841 * dispextern.h (x_free_colors): Add prototype.
842
843 * xfaces.c (x_free_colors): New function.
844 (unload_color, free_face_colors): Use it.
845
2f950292
EZ
8462000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
847
848 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
849
850 * window.c [MSDOS]: Include msdos.h.
851
54d04320
DL
8522000-03-02 Dave Love <fx@gnu.org>
853
854 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
855
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.
858
0ba93ac4
KH
8592000-03-02 Kenichi Handa <handa@etl.go.jp>
860
861 * coding.c (coding_save_composition): Be sure to allocate
862 composition data area in coding even if there's no composition in
863 the current run.
864
a2bc11d4
JR
8652000-03-01 Jason Rumney <jasonr@gnu.org>
866
867 * w32term.c: Equivalent changes to those made to xterm.c on
868 2000-02-25 and 2000-02-24.
869
870 * w32fns.c: Equivalent changes to those made to xfns.c on
871 2000-02-25 and 2000-02-21.
872
873 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
874 correct line-end convention is followed.
875
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.
883
72d19d75
GM
8842000-03-01 Gerd Moellmann <gerd@gnu.org>
885
2df636f4
GM
886 * sysdep.c (start_of_text): Don't define this function for NetBSD
887 with ELF.
888
889 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
890 Don't define.
891 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
892 (LINKER): Don't undef if __NetBSD__ is defined.
893
894 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
895
896 * fileio.c [__NetBSD__]: Define `unix'.
897
72d19d75
GM
898 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
899
ed4d0512
GM
9002000-02-29 Gerd Moellmann <gerd@gnu.org>
901
50b1039f
GM
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.
906
ed4d0512
GM
907 * atimer.c (cancel_atimer): Handle canceling an atimer when
908 some timers are stopped.
909
910 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
911 after canceling it.
912
913 * fns.c (maybe_resize_hash_table): Handle case of new size
914 coming out as being the same as old size.
915
387023ee
JR
9162000-02-27 Jason Rumney <jasonr@gnu.org>
917
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
925 as 2 button mice.
926 * w32gui.h (struct W32FontStruct): Revert last change after change
927 to xdisp.c.
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.
941
4516715a
DL
9422000-02-27 Dave Love <fx@gnu.org>
943
944 * lisp.h: Add a bunch of prototypes.
945
171ca836
KH
9462000-02-26 Kenichi Handa <handa@etl.go.jp>
947
948 * keyboard.c (read_char): Set `usec' correctly.
949
4013921d
KH
9502000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
951
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.
956
9244a058
GM
9572000-02-25 Gerd Moellmann <gerd@gnu.org>
958
2df636f4 959 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 960
f43d79c1
GM
9612000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu>
962
963 * fileio.c (Ffile_symlink_p): If result starts with a `/'
964 and contains a `:', prepend `/:'.
965
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.
972
bed0c171
GM
9732000-02-25 Gerd Moellmann <gerd@gnu.org>
974
449c3c52
GM
975 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
976
f5b58615
GM
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
980 variables.
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.
985
986 * minibuf.c (read_minibuf): Cancel busy-cursor.
987
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
992 cursor timer.
993
994 * process.c (wait_reading_process_input): Remove busy-cursor code.
995
996 * eval.c (Fsignal): Call cancel_busy_cursor instead of
997 Fx_hide_busy_cursor.
998
999 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
1000 Remove prototyoes.
1001 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
1002
1003 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
1004
1005 * xterm.c (XTread_socket): Remove busy-cursor code.
1006
4eb8436f
GM
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.
1013
3cb65b0e
GM
1014 * lread.c (Fload): Use `xfree' instead of `free'.
1015 (init_obarray): Use `xmalloc' instead of `malloc'.
1016
bed0c171
GM
1017 * window.c (Fset_window_buffer): Set WINDOW to the window
1018 after decoding.
2add4349
GM
1019 (coordinates_in_window): Take frame's internal border width
1020 into account.
bed0c171 1021
42088c12
GM
10222000-02-24 Gerd Moellmann <gerd@gnu.org>
1023
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.
1027
1028 * xdisp.c (cursor_in_non_selected_windows): New variable.
1029 (syms_of_xdisp): DEFVAR_BOOL it.
1030
d1e103b2
GM
10312000-02-23 Gerd Moellmann <gerd@gnu.org>
1032
723e779c
GM
1033 * data.c (Fstring_to_number): If number is greater than what
1034 fits into an integer, return a float.
1035
d1e103b2
GM
1036 * eval.c (specbind): Remove references to
1037 keyword_symbols_constant_flag.
1038
1039 * data.c (keyword_symbols_constant_flag): Removed.
1040 (Fmakunbound, set_internal, syms_of_data): Remove references to
1041 keyword_symbols_constant_flag.
1042
1043 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
1044
214f877f
KH
10452000-02-23 Kenichi Handa <handa@etl.go.jp>
1046
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.
42088c12 1052 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
1053 characters.
1054
130adcb7
EZ
10552000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
1056
3cb65b0e 1057 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
130adcb7
EZ
1058 a deleted frame.
1059
17cbbf95
GM
10602000-02-21 Gerd Moellmann <gerd@gnu.org>
1061
1062 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
1063
1064 * xfns.c (x_window_to_frame, x_any_window_to_frame)
1065 (x_non_menubar_window_to_frame): Check the busy-cursor window.
1066
beb0bc36
DL
10672000-02-21 Dave Love <fx@gnu.org>
1068
1069 * frame.c (Vmouse_position_function): New variable.
1070 (Fmouse_position): Use it.
1071 (syms_of_frame): Install it.
1072
1073 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
1074
1d92afcd
GM
10752000-02-20 Gerd Moellmann <gerd@gnu.org>
1076
1077 * fileio.c (Finsert_file_contents): Unbind the binding of
1078 standard-output done by temp_output_buffer_setup.
329eed9f
GM
1079
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.
1084
1085 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
1086
2d06696f
RS
10872000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1088
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.
1093
1d4311c3
EZ
10942000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
1095
1096 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
1097 produced for CODING_MODE_LAST_BLOCK requires.
1098
2dc95ddd
DL
10992000-02-18 Dave Love <fx@gnu.org>
1100
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
1104 use of float value.
1105 (syms_of_keyboard): Change Vecho_keystrokes declaration.
1106
1107 * lread.c: Undef feature selection macros before defining.
1108
f0930f35
GM
11092000-02-18 Gerd Moellmann <gerd@gnu.org>
1110
1111 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
1112 for symbols other than the symbol in question.
1113
e3d4de90
DL
11142000-02-17 Dave Love <fx@gnu.org>
1115
1116 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
1117
0b378936
GM
11182000-02-17 Gerd Moellmann <gerd@gnu.org>
1119
d621caf7
GM
1120 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
1121
0b378936
GM
1122 * alloc.c (enum mem_type): Compile unconditionally.
1123
3b451f74
EZ
11242000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
1125
1126 * xfaces.c (tty_defined_color): Don't return faulire indication
1127 for unspecified-fg and unspecified-bg pseudo-colors.
1128
10689a01
GM
11292000-02-17 Gerd Moellmann <gerd@gnu.org>
1130
1216f5e4
GM
1131 * alloc.c (mark_object): Don't mark symbol names in pure space.
1132 (gc_sweep): Don't unmark symbol names in pure space.
1133
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.
1139
1140 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
1141
1142 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
1143 allocate_buffer instead of xmalloc.
1144
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.
1169
1170 * alloc.c: Add comments throughout the file.
1171
2503c8b1
GM
1172 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
1173 that unblocks alarms.
1174
8389e1e2
GM
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'.
1178
10689a01
GM
1179 * frame.c (make_frame): Set frame initiallly to `garbaged'.
1180
bfc17d18
KH
11812000-02-17 Kenichi Handa <handa@etl.go.jp>
1182
4a09dee0
KH
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.
bfc17d18 1186
2b927d02
SM
11872000-02-17 Stefan Monnier <monnier@cs.yale.edu>
1188
1189 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
1190 depends on the previous behavior.
1191
b49cb764
GM
11922000-02-16 Gerd Moellmann <gerd@gnu.org>
1193
1194 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
1195
99e95407
GM
11962000-02-15 Gerd Moellmann <gerd@gnu.org>
1197
1198 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
1199
1200 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 1201 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
1202 write(2).
1203
6ffd3cf7
RS
12042000-02-15 Richard M. Stallman <rms@gnu.org>
1205
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.
1209
1210 * eval.c (specbind): For buffer-local value,
1211 record the current buffer also.
1212 (unbind_to): Cope with that change.
1213
cad53475
GM
12142000-02-15 Gerd Moellmann <gerd@gnu.org>
1215
1216 * window.c (Fsave_window_excursion): Doc fix.
1217
1aa963c8
SM
12182000-02-15 Stefan Monnier <monnier@cs.yale.edu>
1219
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.
1226
b9b84fd3
SM
12272000-02-14 Stefan Monnier <monnier@cs.yale.edu>
1228
1229 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
1230 `completion-regexp-list' in the docstring.
1231
3a28db80
DL
12322000-02-14 Dave Love <fx@gnu.org>
1233
1234 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
1235
fb4a568d
SM
12362000-02-14 Stefan Monnier <monnier@cs.yale.edu>
1237
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.
1243
1063ebb5
DL
12442000-02-12 Dave Love <fx@gnu.org>
1245
1246 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
1247 Alpha.
1248
fb07a302
GM
12492000-02-12 Gerd Moellmann <gerd@gnu.org>
1250
1251 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
1252
aaf2320c
DL
12532000-02-12 Dave Love <fx@gnu.org>
1254
1255 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
1256
1257 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
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.
aaf2320c
DL
1260
1261 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
1262
1263 * s/nextstep.h: Don't define HAVE_ALLOCA.
1264
1265 * config.in: Add vfork bits.
1266
eedf8bde
GM
12672000-02-12 Gerd Moellmann <gerd@gnu.org>
1268
1269 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
1270 unwind function to undo the effect of stopping atimers.
1271
1272 * keyboard.c (bind_polling_period): Stop all timers except
1273 poll_timer.
1274
1275 * atimer.c (stopped_atimers): New variable.
1276 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
1277 New functions.
1278
1279 * atimer.h (stop_other_atimers, run_all_atimers)
1280 (unwind_stop_other_atimers): Add function prototypes.
1281
1282 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
1283
8476c2f8
KR
12842000-02-11 Ken Raeburn <raeburn@gnu.org>
1285
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.
1289
0e85e4a3
KH
12902000-02-11 Kenichi Handa <handa@etl.go.jp>
1291
1292 * insdel.c (del_range_1): Call update_compositions.
1293 (del_range_both): Call update_compositions just once..
1294
97fa0cc8
DL
12952000-02-10 Dave Love <fx@gnu.org>
1296
1297 * xfns.c (create_frame_xic): Fix initialization of automatic
1298 aggregates for pcc.
1299
25566a3c
KH
13002000-02-09 Kenichi Handa <handa@etl.go.jp>
1301
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.
1306
69da54ba
DL
13072000-02-08 Dave Love <fx@gnu.org>
1308
1309 * lread.c (__EXTENSIONS__): Define.
1310
f7136ee8
GM
13112000-02-08 Gerd Moellmann <gerd@gnu.org>
1312
1313 * puresize.h (BASE_PURESIZE): Increase to 650000.
1314
7768790b
EZ
13152000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
1316
1317 * msdos.c (XMenuActivate): Turn off the cursor after displaying
1318 the help message.
1319
38fd211b
EZ
13202000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
1321
1322 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
1323 md, mh, mb, mr, and me to the fake termcap entry.
1324
66e4690f
KR
13252000-02-06 Ken Raeburn <raeburn@gnu.org>
1326
1327 * sound.c (sound_cleanup): Don't call device close routine if the
1328 function pointer is null.
1329
a75dfea0
AI
13302000-02-06 Andrew Innes <andrewi@gnu.org>
1331
1332 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
1333 around image definitions and prototypes.
1334 (gamma_correct) [WINDOWSNT]: New prototype.
1335
1336 * w32term.c (x_make_frame_visible): Replace call to
1337 input_poll_signal with poll_for_input.
1338
1339 * window.c [WINDOWSNT]: Include w32term.h.
1340
1341 * xdisp.c [WINDOWSNT]: Include w32term.h.
1342
1343 * makefile.nt: Add dependencies on w32gui.h.
1344 (OBJ1): Include atimer.obj.
1345 ($(BLD)\atimer.obj): New dependency rule.
1346
1347 * w32.c (sigmask): New function (does nothing).
1348 (sigunblock): Ditto.
1349
1350 * frame.c [WINDOWSNT]: Include w32term.h.
1351
1352 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
1353
1354 * lread.c (syms_of_lread): Fix literal newlines.
1355
1356 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
1357 the string constant limit (2048 bytes) in MSVC.
1358 (main): Ditto.
1359
59ddecde
GM
13602000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
1361
1362 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
1363 area.
1364 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
1365 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
1366 dispatch the event.
1367
07590973
DL
13682000-02-04 Dave Love <fx@gnu.org>
1369
1370 * fileio.c: Remove some unused vars.
1371 (_GNU_SOURCE): Define (for euidaccess).
1372
1373 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
1374
1375 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
1376 gcpro1, gcpro2.
1377 (read_minibuf): Deal with allow_props correctly.
1378
649351f9
EZ
13792000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
1380
1381 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
1382
66e4690f 13832000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
1384
1385 * search.c (compile_pattern): If a cache entry has a nil regexp,
1386 fill in that entry instead of clobbering a previously cached
1387 string regexp.
1388
66e4690f 13892000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
1390
1391 * puresize.h (BASE_PURESIZE): Increase to 610000.
1392
d240a249
GM
13932000-02-02 Gerd Moellmann <gerd@gnu.org>
1394
1395 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
1396 can GC.
1397
ca91fb26
KH
13982000-02-02 Kenichi Handa <handa@etl.go.jp>
1399
25660570
KH
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.
1404
ca91fb26
KH
1405 * fileio.c (e_write): Fix the handling of
1406 CODING_FINISH_INSUFFICIENT_SRC.
1407
2ede9689
DL
14082000-02-01 Dave Love <fx@gnu.org>
1409
1410 * editfns.c (Fpropertize): Doc fix.
1411
1412 * process.c (Fstart_process): Doc fix.
1413
1414 * eval.c: Fix various doc strings not to duplicate information
1415 from help-manyarg-func-alist.
1416
1417 * window.c (Fset_window_margins): Don't make interactive. Doc
1418 fix.
1419
1420 * doc.c (Vhelp_manyarg_func_alist): New variable.
1421 (Fdocumentation): Use it.
1422 (syms_of_doc): Define it.
1423
b6680a0e
GM
14242000-01-31 Gerd Moellmann <gerd@gnu.org>
1425
2cb750ba
GM
1426 * xterm.c (xim_open_dpy): Remove unused local variable.
1427
74e9213b
GM
1428 * emacs.c (USAGE): Use term `display options' instead of `X
1429 options'.
1430
1431 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
1432 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
1433
b6680a0e
GM
1434 * fns.c (sweep_weak_table): New function.
1435 (sweep_weak_hash_tables): Use it. Keep on marking until there
1436 is no more change.
1437
994c5afe
GM
14382000-01-30 Gerd Moellmann <gerd@gnu.org>
1439
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
1442 closed display.
1443
f00276e3
JR
14442000-01-30 Jason Rumney <jasonr@gnu.org>
1445
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
1449 `insist' parameter.
1450
1451 * makefile.nt: Remove dosfns.obj.
1452
1453 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
1454
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.
1463
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.
1466
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.
1472
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
1477 fill attribute.
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.
1487
b08e8bb2
GM
14882000-01-29 Gerd Moellmann <gerd@gnu.org>
1489
1490 * xfns.c (xic_set_preeditarea): Take window parameter and
1491 window-relative pixel-positions.
1492
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.
1496
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.
1503
15042000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
1505
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
1511 area.
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.
1520
1521 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
1522 and `xim_styles'.
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.
1528
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.
1534
142e109c
DL
15352000-01-28 Dave Love <fx@gnu.org>
1536
1537 * s/irix6-5.h: Revert last change after change to irix5-0.h.
1538
1539 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
1540
b02786f9
GM
15412000-01-28 Gerd Moellmann <gerd@gnu.org>
1542
d060bc9f
GM
1543 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
1544 for *scratch* if it already existed.
1545
b02786f9
GM
1546 * emacs.c (USAGE): New macro.
1547 (main): Use it to display usage information.
1548
2c52d7e4
EZ
15492000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
1550
1551 Support for the menu-help feature:
1552
1553 * msdos.h: Change prototypes of XMenuAddSelection and
1554 XMenuActivate.
1555
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
1566 XMenu structure.
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.
1572
ffe0bcd1
GM
15732000-01-27 Gerd Moellmann <gerd@gnu.org>
1574
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.
1578
50dbd23f
EZ
15792000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
1580
1581 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
1582 and EMACS_SET_USECS.
1583
f5941bf8
GM
15842000-01-26 Dave Love <fx@gnu.org>
1585
6c67ddee
DL
1586 * editfns.c (Fchar_after, Fchar_before): Doc fix.
1587
f5941bf8
GM
1588 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
1589 an error may be signalled.
1590
9e49c990
GM
15912000-01-26 Gerd Moellmann <gerd@gnu.org>
1592
fc3cb460
GM
1593 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
1594 LD_SWITCH_SYSTEM inherited from irix5-0.h.
1595
9e49c990
GM
1596 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
1597
d0c037d8
GM
15982000-01-25 Gerd Moellmann <gerd@gnu.org>
1599
1600 * charset.c (Fstring): If there is a multibyte char among
1601 the args, always return a multibyte string.
1602
e12489f9
GM
16032000-01-25 Gerd Moellmann <gerd@gnu.org>
1604
1605 * sysdep.c (sys_select): Turn atimers off and on instead of
1606 recording and restoring old alarm handler
1607
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.
1615
1616 * emacs.c (main): Call init_atimer.
1617
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.
1624
1625 * keyboard.h (polling_for_input): Removed.
1626
1627 * atimer.h, atimer.c: New files.
1628
1629 * Makefile.in (obj): Add atimer.o.
1630 (atimer.o): New target.
1631
1632 * blockinput.h (pending_atimers): Add extern declaration.
1633 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
1634
1635 * lisp.h (popup_activated_flag): Add extern declaration.
1636
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.
1641
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.
1651
1e5279b9
DL
16522000-01-24 Dave Love <fx@gnu.org>
1653
6c67ddee 1654 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
1655 Don't use -cckr -- apparently not now necessary.
1656
edf6aeb8
EZ
16572000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1658
1659 * msdos.c (IT_menu_display): Truncate long menu lines at the right
1660 screen boundary.
1661
9badad41
JR
16622000-01-23 Jason Rumney <jasonr@gnu.org>
1663
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
1667 to w32_clear_rect.
1668
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
1674 one.
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.
1684
63bd786b
JR
16852000-01-22 Jason Rumney <jasonr@gnu.org>
1686
1687 * makefile.nt (intervals.obj, composite.obj): New modules.
1688 (composite.h): Added as dependency where appropriate.
1689
1690 * w32gui.h (XGCValue): New struct for emulating X GCs.
1691
1692 * w32term.h (XCharStruct): New struct for emulating X.
1693
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.
1697
1698 * w32faces.c: Complete rewrite for new redisplay based on new
1699 xfaces.c.
1700
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
1705 width.
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.
1711
1712 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
1713 Use SELECTED_FRAME macro.
1714
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.
1719 Callers updated.
1720 Formatting changes to reduce unnecessary diffs with xmenu.c.
1721
1722 * w32select.c (Fw32_set_clipboard_data): Update call to
1723 find_charset_in_str.
1724
1725 * w32term.c: Complete rewrite for new redisplay based on new
1726 xterm.c with necessary sections merged back in from old w32term.c.
1727
6ffd3cf7 17282000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
1729
1730 * data.c (set_internal): Further fix in same criterion.
1731
6ffd3cf7 17322000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
1733
1734 * data.c (set_internal): Fix the criteria for whether
1735 to swap out the old cached binding.
1736
60af03f1
DL
17372000-01-19 Dave Love <fx@gnu.org>
1738
1739 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
1740
f9be074f
KH
17412000-01-18 Kenichi Handa <handa@etl.go.jp>
1742
1743 * regex.c (re_compile_fastmap): While checking a range table for
1744 `charset', skip flag bits for a character class correctly.
1745
52b8dbf9
GM
17462000-01-17 Gerd Moellmann <gerd@gnu.org>
1747
d36100c9
GM
1748 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
1749
52b8dbf9
GM
1750 * xfns.c (x_window): Call lw_create_widget with new parameter
1751 list.
1752
1753 * widget.c (EmacsFrameSetCharSize): Change size of children first
1754 because of problems with main window geometry management under
1755 Lesstif.
1756
1757 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
1758 MENU_ITEMS_ITEM_.*.
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
1766 parameter list.
1767 (xmenu_show, xdialog_show): Ditto.
1768
3139018f
GM
17692000-01-13 Gerd Moellmann <gerd@gnu.org>
1770
1771 * sound.c (Fplay_sound): Improve doc string.
1772
83c8f461
RS
17732000-01-11 Richard M. Stallman <rms@gnu.org>
1774
1775 * lisp.h (set_internal): Enter the new arg.
1776
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.
1781
1782 * data.c (set_internal): New arg BUF.
1783
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.
1787
1fab1775
GM
17882000-01-11 Gerd Moellmann <gerd@gnu.org>
1789
1790 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
1791 xprintsym.
1792
83c8f461 17932000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
1794
1795 * minibuf.c (Ftry_completion): Doc fix.
1796
7a85e4df
GM
17972000-01-11 Gerd Moellmann <gerd@gnu.org>
1798
1799 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
1800 vector, too.
1801
a970dae4
AS
18022000-01-11 Andreas Schwab <schwab@suse.de>
1803
1804 * coding.c (code_convert_region): Initialize total_skip.
1805
c65d14ee
DL
18062000-01-08 Dave Love <fx@gnu.org>
1807
1808 * eval.c (Fuser_variable_p): Check customizability too.
1809
834938d2
GM
18102000-01-07 Gerd Moellmann <gerd@gnu.org>
1811
1812 * minibuf.c (Fcompleting_read): Doc fix.
1813
e0303cd6
GM
18142000-01-05 Gerd Moellmann <gerd@gnu.org>
1815
8a26744b
GM
1816 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
1817 -L /usr/local/lib.
1818
e0303cd6
GM
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
1821 IC for it.
1822 (x_window): Call x_create_im.
1823
2e471eb5
GM
18242000-01-04 Gerd Moellmann <gerd@gnu.org>
1825
560a7bd2
GM
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.
1830
f9ee84a3
GM
1831 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
1832 macros statement form.
1833
d1299cde
GM
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
1843 needed header size.
1844 (wav_play, au_play): Play sounds from string data.
1845
2e471eb5
GM
1846 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
1847
1848 * lisp.h: Add prototype for allocate_string_data.
1849
1850 * alloc.c (Fgarbage_collect): Return number of live and free
1851 strings.
1852
1853 * alloc.c (mark_buffer): Remove code in #if 0.
1854 (gc_sweep): Ditto.
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.
1860
1861 * alloc.c: General cleanup in comments etc. Remove conditional
1862 compilation for `standalone'.
1863
1864 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
1865
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
1886 differently.
1887 (survives_gc_p): Test marked strings differently.
1888 (gc_sweep): Sweep strings differently, unmark strings in
1889 symbol names.
1890 (compact_strings): Removed.
1891
42608ba8
EZ
18922000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
1893
1894 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
1895 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
1896
e0a09e1a
KH
18972000-01-04 Kenichi Handa <handa@etl.go.jp>
1898
dd9f0750
KH
1899 * fileio.c (Finsert_file_contents): Signal error if visiting file
1900 in a non-empty buffer.
1901
3c0f3b15 1902 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 1903
44cd3ae5
GM
19042000-01-03 Gerd Moellmann <gerd@gnu.org>
1905
1906 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
1907 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
1908
1909 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
1910
c182a70f
EZ
19112000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1912
1913 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
1914 need to test for MSDOS frames.
1915
24480d5b
EZ
19162000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1917
1918 * dosfns.c (unspecified_colors): Remove.
1919 (msdos_stdcolor_idx): Use global variables unspecified_fg and
1920 unspecified_bg.
1921 (msdos_stdcolor_name): Return strings for unspecified fore- and
1922 back-ground colors.
1923
1924 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 1925 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
1926 (tty_color_name): Return Lisp strings for unspecified fore- and
1927 back-ground colors.
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
1931 string.
1932
047f434a
GM
19332000-01-03 Gerd Moellmann <gerd@gnu.org>
1934
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
1939 table.
1940 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
1941 returns 0.
1942
d684c676
EZ
19432000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
1944
1945 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
1946 (Fcolor_supported_p): Renamed from face-color-supported-p.
1947
5fe1d139
EZ
19482000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1949
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.
1955
1956 * term.c (Ftty_display_color_p): Accept an optional argument
1957 FRAME.
1958
816be8b8
EZ
19592000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1960
1961 * term.c (insert_glyphs): Pass glyph, not &glyph, to
1962 encode_terminal_code.
1963
b635321e
EZ
19642000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1965
1966 * dispnew.c (mode_line_string): Support termcap frames as well.
1967
9b784e96
GM
19682000-01-01 Gerd Moellmann <gerd@gnu.org>
1969
27189709
GM
1970 * syntax.c (Fforward_word): Undo previous change.
1971
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.
1976
1977 * syntax.c (Fforward_word): Notice field boundaries only if
1978 inhibit-field-text-motion is nil.
1979
1980 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
1981
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.
1986
45158a91
GM
1987 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
1988 All calls adjusted.
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.
1993
9b784e96
GM
1994 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
1995 color indices when accessing raster pixels.
63cec32f
GM
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.
9b784e96 2004
5ad6a5fb
GM
20051999-12-31 Gerd Moellmann <gerd@gnu.org>
2006
2007 * xfns.c: New image functions adapted to Emacs conventions.
2008 (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local
2009 variable `file'.
2010
63448a4d
WP
20111999-12-31 William M. Perry <wmperry@aventail.com>
2012
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
2016 memory buffer.
2017 (jpeg_load): Pay attention to the :data keyword if specified.
2018 Instantiates a jpeg_memory_src instead of jpeg_stdio_src if
2019 found.
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
2023 memory buffer.
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
2035 memory buffer.
c65d14ee 2036 (gif_load): Pay attention to the :data keyword. Uses DGifOpen()
63448a4d
WP
2037 instead of DGifOpenFileName() if specified.
2038
c880678e
GM
20391999-12-31 Gerd Moellmann <gerd@gnu.org>
2040
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.
2044
8ccb9a54
EZ
20451999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
2046
2047 * msdos.c (IT_update_begin): Don't dereference members of struct
2048 window for deleted windows.
2049
12ce2351
GM
20501999-12-30 Gerd Moellmann <gerd@gnu.org>
2051
a915c648
GM
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.
2056
12ce2351
GM
2057 * xterm.c (x_make_frame_visible): Wait for frame becoming visible
2058 differently.
2059
04ee4f45
EZ
20601999-12-30 Eli Zaretskii <eliz@is.elta.co.il>
2061
2062 * msdos.c (IT_write_glyphs): Track last changes to struct glyph.
2063
7f4bc0c3
EZ
20641999-12-29 Eli Zaretskii <eliz@is.elta.co.il>
2065
2066 * dispnew.c (mode_line_string): Support MS-DOS frames.
2067
dac204bc
GM
20681999-12-29 Gerd Moellmann <gerd@gnu.org>
2069
2070 * eval.c (syms_of_eval): Initialize debugger_may_continue.
2071
7b712ad8
KH
20721999-12-29 Kenichi Handa <handa@etl.go.jp>
2073
2074 * process.c (read_process_output): Fix the args CHARPOS and LENINS
2075 to signal_after_change.
2076
adb9900f
EZ
20771999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
2078
41ad069b
EZ
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
2082 variables.
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
2089 info.
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.
2100
adb9900f
EZ
2101 * msdos.h (struct display_info): New.
2102 (struct x_output): Add the display_info member.
2103 (FRAME_X_DISPLAY_INFO): New macro.
2104
481b5054
GM
21051999-12-28 Gerd Moellmann <gerd@gnu.org>
2106
2107 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
2108 if MODIFF > 1.
6448a6b3 2109 (dump_glyph_row): Adapt to changes in struct glyph.
481b5054
GM
2110
2111 * buffer.c (modify_overlay): Always compute unchanged info.
2112
a2882b0d
KH
21131999-12-27 Kenichi Handa <handa@etl.go.jp>
2114
2115 * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'.
2116
89ba5b5f
KH
21171999-12-27 Kenichi Handa <handa@etl.go.jp>
2118
2119 The following changes are to use more bits for face IDs.
2120
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
2123 face ID.
481b5054 2124 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change
89ba5b5f 2125 above.
481b5054
GM
2126 (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise.
2127 (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted.
89ba5b5f
KH
2128
2129 * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead
2130 of GLYPH_MASK_CHAR.
2131
2132 * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead
2133 of GLYPH_MASK_CHAR.
2134
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
2142 characters.
2143
481b5054 2144 * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted
89ba5b5f
KH
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.
2149
2150 * term.c (encode_terminal_code): Adjusted for the change of struct
2151 glyph and GLYPH_FROM_CHAR_GLYPH.
481b5054 2152 (write_glyphs, insert_glyphs, append_glyph): Adjusted for the
89ba5b5f
KH
2153 change of struct glyph.
2154
2155 * xdisp.c: All codes adjusted for the change of struct glyph.
2156
2157 * xterm.c: All codes adjusted for the change of struct glyph.
2158
5bcd116c
KH
21591999-12-27 Kenichi Handa <handa@etl.go.jp>
2160
2161 * composite.h (struct composition): Change the order of declaring
2162 members to reduce the byte size of the structure.
2163
f21b06b7
GM
21641999-12-25 Gerd Moellmann <gerd@gnu.org>
2165
2166 * search.c (looking_at_1): Reset immediate_quit before modifying
2167 global data.
2168
e36557c9
KH
21691999-12-24 Kenichi Handa <handa@etl.go.jp>
2170
2171 * process.c (read_process_output): Fix the arg FROM to
2172 update_compositions.
2173
83c8f461 21741999-12-22 Richard M. Stallman <rms@gnu.org>
f7c9e039
RS
2175
2176 * search.c (Freplace_match): For nonliteral replacement in buffer,
2177 construct all the new text first, then insert all at once.
2178
0b863bd9
DL
21791999-12-22 Dave Love <fx@gnu.org>
2180
2181 * xfns.c (Fx_show_tip): Gcpro `timeout' too.
2182
6d8e8ef3
GM
21831999-12-22 Gerd Moellmann <gerd@gnu.org>
2184
28d7281d
GM
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.
2187
e22ef6eb 2188 * xfaces.c (realize_x_face): Don't use uninitialized local
6d8e8ef3
GM
2189 variable in xassert.
2190
8affcced
KH
21911999-12-22 Kenichi Handa <handa@etl.go.jp>
2192
2193 * xfaces.c (face_color_supported_p): Check by tty_defined_color
6d8e8ef3 2194 only when the frame is not for a window system.
8affcced 2195
f2be1146
GM
21961999-12-22 Gerd Moellmann <gerd@gnu.org>
2197
deca1348
GM
2198 * buffer.c (Fset_buffer_multibyte): Arrange for a thorough
2199 redisplay after changing the multibyteness of a buffer.
2200
f2be1146
GM
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.
2206
a744a2ec
DL
22071999-12-20 Dave Love <fx@gnu.org>
2208
2209 * xfns.c (Fx_show_tip): Add missing UNGCPRO.
2210
9e6985ed
GM
22111999-12-19 Gerd Moellmann <gerd@gnu.org>
2212
2213 * eval.c (debugger_may_continue): New variable.
2214 (syms_of_eval): Add a DEFVAR_BOOL for it.
2215 (call_debugger): Bind it.
2216
3b620731
EZ
22171999-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2218
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
2222 termscript file.
2223 (IT_write_glyphs): Track the changes in handling of composite
2224 characters.
2225 (IT_set_frame_parameters): Don't set frame colors from
2226 unspecified-fg and unspecified-bg pseudo-colors.
2227
0f9a51c4
DL
22281999-12-17 Dave Love <fx@gnu.org>
2229
2230 * data.c (Fkeywordp): New function.
2231 (syms_of_data): Install it.
2232
363e4e42
EZ
22331999-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2234
2235 * xfaces.c (tty_defined_color): Fix last change.
2236
cfad01b4
GM
22371999-12-15 Gerd Moellmann <gerd@gnu.org>
2238
2239 * xdisp.c (redisplay_window) <optional new window start>: Check
2240 that window start is in [BEGV..ZV].
2241
f9d2fdc4
EZ
22421999-12-15 Eli Zaretskii <eliz@is.elta.co.il>
2243
2244 * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
2245 (FACE_TTY_DEFAULT_BG_COLOR): New macros.
2246
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.
2264
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.
2268
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.
2273
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.
2281
2282 * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
2283 FACE_TTY_DEFAULT_BG_COLOR as pixel values.
2284
e19539f1
KH
22851999-12-15 Kenichi Handa <handa@etl.go.jp>
2286
2287 * coding.c (code_convert_region): Fix the secoding arg to
2288 update_compositions.
2289
5ec14d3c
KH
22901999-12-15 Kenichi Handa <handa@etl.go.jp>
2291
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'.
2295
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.
2305
2306 * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING.
2307
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.
2311
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.
2316
2317 * category.h (CATEGORY_SET): Delete codes for a composite
2318 character.
2319
2320 * category.c (word_boundary_p): Delete codes for a composite
2321 character.
2322 (Fmake_category_table): New function.
2323 (syms_of_category): Defsubr it.
2324
2325 * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING.
2326 (ccl_driver): Delete codes for a composite character.
2327
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):
2338 Modified.
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.
2350
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.
2359 Modified.
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.
2375
2376 * cmds.c (internal_self_insert): Adjusted for the change of
2377 CHAR_STRING.
2378
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
2386 macros.
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.
2393
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
2423 functions.
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
2438 EMACS_invalid_code.
2439
2440 * composite.h: New file.
2441
2442 * composite.c: New file.
2443
2444 * data.c (Faref): Delete codes for a composite character..
2445 (Faset): Likewise. Adjusted for the change of CHAR_STRING.
2446
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.
2452
2453 * dispnew.c (direct_output_forward_char): Check point moving into
2454 or out of a composition. If so, give up direct method.
2455
2456 * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING.
2457
2458 * editfns.c (Fchar_to_string): Adjusted for the change of
2459 CHAR_STRING.
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.
2465
2466 * emacs.c (main): Call syms_of_composite.
2467
2468 * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of
2469 CHAR_STRING.
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,
2475 not byte position.
2476 (e_write): Argument changed. Handle new way of composition.
2477
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.
2483
2484 * fontset.h (struct font_info): New member vertical_centering.
2485 (Vvertical_centering_font_regexp): Extern it.
2486
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
2491 font_info.
2492
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.
2499
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.
2517
2518 * intervals.h: Include composite.h.
2519 (get_property_and_range): Extern it.
2520 (Vtext_property_default_nonsticky): Extern it.
2521
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.
2526
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
2531 necessary.
2532 (adjust_point_for_property): New function.
2533
2534 * keymap.c (push_key_description): Adjusted for the change of
2535 CHAR_STRING.
2536 (Ftext_char_description): Likewise.
2537
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.
2542
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
2546 sequence.
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.
2551
2552 * print.c (printchar): Adjusted for the change of CHAR_STRING.
2553
2554 * process.c: Include composite.h.
2555 (read_process_output): Call update_compositions.
2556
2557 * regex.c (regex_compile): Adjusted for the change of CHAR_STRING.
2558
2559 * search.c (search_buffer): Adjusted for the change of CHAR_STRING.
2560
2561 * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite
2562 character.
2563
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.
2568
2569 * textprop.c (Vtext_property_default_nonsticky): New variable
2570 (syms_of_textprop): Declare it as a Lisp variable.
2571
2572 * window.c (Frecenter): Clear all caches of compositions.
2573
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
2579 CHAR_STRING.
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
2588 screen.
2589 (disp_char_vector): Delete codes for a composite character.
2590 (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING.
2591
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.
2596
2597 * xfns.c: Include intervals.h.
2598 (syms_of_xfns): Make `display' property nonsticky by default.
2599
2600 * xselect.c (lisp_data_to_selection_data): Adjusted for the change
2601 for find_charset_in_str.
2602
2603 * xterm.h (struct x_output): Change member font_baseline to
2604 baseline_offset.
2605
2606 * xterm.c (x_append_glyph): Setup members of struct glyph properly
2607 for composition.
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
2622 character.
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
2628 rewritten for that.
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.
2636
c3c60f13
GM
26371999-12-14 Gerd Moellmann <gerd@gnu.org>
2638
2639 * xterm.c (show_mouse_face): Don't use updated_area, use
2640 TEXT_AREA.
2641
83c8f461 26421999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
2643
2644 * minibuf.c (Fall_completions): Doc fix.
2645
83c8f461 26461999-12-12 Richard M. Stallman <rms@gnu.org>
c838eb57
RS
2647
2648 * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro
2649 has been changed by the Lisp code.
2650
d8eccf12
GM
26511999-12-12 Gerd Moellmann <gerd@gnu.org>
2652
2653 * xfns.c: Indentation fixes.
2654
ae56feae
SM
26551999-12-10 Stefan Monnier <monnier@cs.yale.edu>
2656
2657 * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared.
2658
dfa1c6ae
GM
26591999-12-10 Gerd Moellmann <gerd@gnu.org>
2660
2661 * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
2662 [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h.
2663
2664 * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved
2665 to frame.h.
2666
ec18280f
SM
26671999-12-09 Stefan Monnier <monnier@cs.yale.edu>
2668
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
2691 xaw3d_pick_top.
2692
83b6d970
DL
26931999-12-09 Dave Love <fx@gnu.org>
2694
2695 * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE.
2696
3648c842
GM
26971999-12-08 Gerd Moellmann <gerd@gnu.org>
2698
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
2702 returns.
2703
05e71564
GM
27041999-12-07 Gerd Moellmann <gerd@gnu.org>
2705
2706 * xfaces.c (x_set_menu_resources_from_menu_face): Make sure
2707 basic faces are realized before trying to use face `menu'.
2708
2709 * window.c (delete_window): Block input for the time window
2710 matrices are being changed.
2711
b46cd536
DL
27121999-12-07 Dave Love <fx@gnu.org>
2713
2714 * lread.c (Fintern_soft): Fix newlines in doc string.
2715
96acb1f7
GM
27161999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br>
2717
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.
2726
27271999-12-07 Gerd Moellmann <gerd@gnu.org>
2728
2729 * unexelf.c: Merge changes from 20.5.
2730 (unexec): Handle .lit4 and .lit8 unconditionally.
2731
2732 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of
2733 unexsgi.o again.
2734
2735 * m/iris5d.h (UNEXEC): Likewise.
2736
7dae4502
SM
27371999-12-06 Stefan Monnier <monnier@cs.yale.edu>
2738
2739 * editfns.c (Fdelete_and_extract_region): New function.
05e71564
GM
2740 (syms_of_editfns): Register it.
2741 * insdel.c (del_range): Update del_range_1 call.
7dae4502
SM
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.
05e71564 2745 * lisp.h (del_range_1, del_range_2): Change prototype
7dae4502
SM
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.
2749
397e4fae
GM
27501999-12-06 Gerd Moellmann <gerd@gnu.org>
2751
2752 * xfaces.c (set_lface_from_font_name): Fix incomplete merge.
2753
3d973f71
GM
27541999-12-04 Hrvoje Niksic <hniksic@iskon.hr>
2755
2756 * lread.c (Fintern_soft): Accept a symbol argument.
2757
740e985f
EZ
27581999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2759
2760 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000.
809f3d51
EZ
2761
2762 * insdel.c (adjust_markers_for_delete): Fix last change.
2763
2d764c78
EZ
27641999-12-06 Eli Zaretskii <eliz@is.elta.co.il>
2765
2766 Changes for automatic remapping of X colors on terminal frames:
2767
2768 * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X
2769 frames.
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
2782 frame colors.
2783 (Fface_register_tty_color, Fface_clear_tty_colors): Remove.
2784
2785 * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]:
2786 Define a mostly empty surrogate.
2787 (tty_display): Declare.
2788
2789 * frame.c (make_terminal_frame) [!macintosh]: Don't use
2790 tty_display.
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.
2798
2799 * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object
2800 selected_frame.
2801 (struct x_output): Remove unused members; document who uses each
2802 member.
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.
2808
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
2822 cus-start.el.
2823
2824 * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc.
2825
2826 * xfns.c (x_defined_color): Rename from defined_color. All
2827 callers changed.
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
2831 changed.
2832 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
2833 callers changed.
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.
2839
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
2845 changed.
2846 (Fxw_display_color_p): Renamed from Fx_display_color_p; all
2847 callers changed.
2848
2849 * dispextern.h (tty_color_name): Add prototype.
2850
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.
2855
2856 * dosfns.c (Qmsdos_color_translate): Remove.
2857 (msdos_stdcolor_name): Now returns a Lisp_Object.
2858 * dosfns.h (Qmsdos_color_translate): Remove.
2859
2860 * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support.
2861
b3e5232e
KH
28621999-12-06 Kenichi Handa <handa@etl.go.jp>
2863
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.
2868
2869 * insdel.c (adjust_markers_for_delete): Make it non-static.
2870
db0e466c
SM
28711999-12-04 Stefan Monnier <monnier@cs.yale.edu>
2872
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.
2880
22afa6e8
DL
28811999-12-04 Dave Love <d.love@dl.ac.uk>
2882
2883 * m/arm.h: New file.
2884
40afb967
DL
28851999-12-03 Dave Love <fx@gnu.org>
2886
2887 * editfns.c (Fmessage_or_box): Use use_dialog_box.
2888
ddf8eff5
GM
28891999-12-02 Gerd Moellmann <gerd@gnu.org>
2890
2891 * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed
2892 for building with Motif.
2893
2894 * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of
2895 unexelf.o.
2896
2897 * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o.
2898
fa09a82d
DL
28991999-12-01 Dave Love <fx@gnu.org>
2900
2901 * emacs.c (main): Set LANG=C iff AX3_2 defined.
2902
ddf8eff5
GM
29031999-11-28 Gerd Moellmann <gerd@gnu.org>
2904
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
2907 macros.
2908
2909 * config.in (HAVE_SETITIMER, HAVE_UALARM): New.
2910
fa09a82d
DL
29111999-11-28 eliz <eliz@dlpx1>
2912
2913 * emacs.c (synchronize_locale): Avoid compiler warnings about
2914 pointer type mismatch.
2915
f9632fc8
GM
29161999-11-28 Gerd Moellmann <gerd@gnu.org>
2917
717d0121
GM
2918 * window.c (Fwindow_end): Don't call temp_set_pt_both with
2919 out of range position.
2920
f9632fc8
GM
2921 * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>:
2922 Switch off busy-cursor by setting inhibit_busy_cursor to 2.
2923
59c65f1e
EZ
29241999-11-28 Eli Zaretskii <eliz@is.elta.co.il>
2925
613a8346
EZ
2926 * charset.c (Fmake_char_internal): Print the charset ID when
2927 signalling an error.
2928
59c65f1e
EZ
2929 * emacs.c (synchronize_locale): Avoid compiler warnings about
2930 pointer type mismatch.
2931
83c8f461 29321999-11-26 Richard M. Stallman <rms@gnu.org>
d01f3570
RS
2933
2934 * editfns.c (Fdelete_field): Make it noninteractive. Return nil.
2935
18df9369
GM
29361999-11-26 Gerd Moellmann <gerd@gnu.org>
2937
65a3ccf7
GM
2938 * puresize.h (BASE_PURESIZE): Increase to 550000.
2939
b3b98592
GM
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
2943 changes.
2944 (Fset_text_properties): Use it.
2945
2946 * insdel.c (insert_1_both): Call set_text_properties with last
2947 parameter nil so that no after changes will be signaled.
2948
2949 * lisp.h: Add prototype for set_text_properties.
2950
18df9369
GM
2951 * xfaces.c (set_lface_from_font_name): Fix previous change.
2952 (recompute_basic_faces): Change assert to abort.
2953
71a8e74b
DL
29541999-11-25 Dave Love <fx@gnu.org>
2955
2956 * fns.c (Fnthcdr, Fnreverse): Inline cdr.
2957 (Fmember, Fdelq, Fdelete): Inline car.
2958 (Fy_or_n_p): Doc fix.
2959
bc6a5782
GM
29601999-11-25 Gerd Moellmann <gerd@gnu.org>
2961
3221576b 2962 * xfaces.c (set_lface_from_font_name): New parameter may_fail_p.
18df9369 2963 Callers changed. If specified font name is bogus, and may_fail_p
3221576b
GM
2964 is not set, try to use a reasonable default.
2965
bc6a5782
GM
2966 * dispnew.c (direct_output_for_insert): Set glyph row's
2967 displays_text_p flag. Correct window's window_end_vpos if
2968 necessary.
2969
0c8559bb
PE
29701999-11-25 Paul Eggert <eggert@twinsun.com>
2971
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.
2976
35737351
KH
29771999-11-25 Kenichi Handa <handa@etl.go.jp>
2978
2979 * fileio.c (Finsert_file_contents): Set buffer-file-coding-system
2980 of the current buffer via Fset.
2981
5562b47f
DL
29821999-11-24 Dave Love <fx@gnu.org>
2983
2984 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
2985
2986 * xfaces.c: Don't duplicate Qmode_line definition done elsewhere.
2987
2988 * xfns.c: Don't duplicate Qdisplay definition done elsewhere.
2989
00da0e4a
GM
29901999-11-24 Gerd Moellmann <gerd@gnu.org>
2991
2992 * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0.
2993
2994 * emacs.c (PVEC_FLAG): New variable.
2995
b1775dc1
GM
29961999-11-23 Gerd Moellmann <gerd@gnu.org>
2997
2998 * unexaix.c (unexec): Use unsigned instead of uintptr_t because
2999 that fails on IBM PowerPC, AIX 4.2.
3000
08de6200
EZ
30011999-11-22 Eli Zaretskii <eliz@is.elta.co.il>
3002
3003 * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc
3004 string of mode-line-format. Remove the obsolete %t.
3005
02fda8ff
GM
30061999-11-22 Gerd Moellmann <gerd@gnu.org>
3007
f2fa858f
GM
3008 * dispnew.c (direct_output_for_insert): Increment glyph positions
3009 for glyphs from buffer text only.
3010
02fda8ff
GM
3011 * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits)
3012 (gdb_data_seg_bits): New variables.
3013
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.
3017
1b0d24e7
PE
30181999-11-22 Paul Eggert <eggert@twinsun.com>
3019
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.
3023
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.
3029 All uses changed.
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
3037 defined.
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.
3042
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.
3050
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.
3055
3056 * m/alpha.h (malloc, realloc, calloc): Remove decls;
3057 stdlib.h now does this.
3058
3059 * process.c (sys_siglist): Remove.
3060
3061 * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE):
3062 New macros.
3063
3064 * syntax.c (scan_sexps_forward): Use abort, not assert.
3065
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.
3069
3070 * xfns.c (abort): Remove decl; stdlib.h now does this.
3071
0dcd5b54
DL
30721999-11-18 Dave Love <fx@gnu.org>
3073
946173ad
DL
3074 * filelock.c: Add forward declaration for get_boot_time_1.
3075
0dcd5b54
DL
3076 * dispnew.c (Finternal_show_cursor_p): Fix doc string.
3077
71447e8f
GM
30781999-11-18 Gerd Moellmann <gerd@gnu.org>
3079
3080 * buffer.h (struct buffer_text): Add comment about moving
3081 buffer text if REL_ALLOC is defined.
3082
eeedff63
KH
30831999-11-18 Kenichi Handa <handa@etl.go.jp>
3084
3085 * lisp.h (KEY_DESCRIPTION_SIZE): New macro.
3086
3087 * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free
3088 memory for push_key_description.
3089
3090 * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to
3091 allocate memory for push_key_description.
3092 (describe_buffer_bindings): Likewise.
3093
5d7e4a2c
GM
30941999-11-17 Gerd Moellmann <gerd@gnu.org>
3095
3096 * xfns.c (Fx_show_busy_cursor): Doc-fix.
3097 (Fx_hide_busy_cursor): Ditto.
3098
30991999-11-17 Marco Walther <walther@siemens-pyramid.com>
3100
3101 * unexsni.c (unexec): Handle .rel.dyn section.
3102
b5b41e02
DL
31031999-11-16 Dave Love <fx@gnu.org>
3104
3105 * doc.c (Fdocumentation): Remove gcpro here too.
3106
e35b6123
GM
31071999-11-16 Gerd Moellmann <gerd@gnu.org>
3108
3109 * keyboard.c (command_loop_1): Remove no_redisplay.
3110
83c8f461 31111999-11-16 Richard M. Stallman <rms@gnu.org>
0a14b9bb
GM
3112
3113 * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing
3114 in noninteractive.
3115
b05d3bee
GM
31161999-11-14 Gerd Moellmann <gerd@gnu.org>
3117
5bcfeb49
GM
3118 * xdisp.c (ensure_echo_area_buffers): New.
3119 (with_echo_area_buffer): Use it.
3120 (setup_echo_area_for_printing): Ditto.
3121
b05d3bee
GM
3122 * buffer.c (indicate-empty-lines): Doc-fix.
3123
9b2e6e4c
GM
31241999-11-12 Gerd Moellmann <gerd@gnu.org>
3125
e7f90eab
GM
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
3128 background.
3129
9b2e6e4c
GM
3130 * doc.c (Fdocumentation_property): Remove GCPRO because
3131 Fsubstitute_command_keys gcpro's the string.
3132
1bf21027
KH
31331999-11-12 Kenichi Handa <handa@etl.go.jp>
3134
3135 * editfns.c (Ftranslate_region): Check the buffer multibyteness.
3136
3bc6df53
GM
31371999-11-11 Gerd Moellmann <gerd@gnu.org>
3138
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.
3142
35a5514b
GM
31431999-11-10 Gerd Moellmann <gerd@gnu.org>
3144
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.
3152
83c8f461 31531999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3154
3155 * cmds.c (Fbeginning_of_line): Doc fix.
3156 (Fend_of_line): Doc fix.
3157
3158 * editfns.c (Fline_beginning_position): If N is not 1,
3159 pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE.
3160
3161 * syntax.c (Fforward_word): Handle fields even if would have hit
3162 an edge of the buffer. Return nil if affected by fields.
3163
83c8f461 31641999-11-09 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3165
3166 * editfns.c (preceding_pos): Function deleted.
3167 (text_property_stickiness): Decrement POS directly.
3168 Fix a confusion that used PT instead of POS.
3169
3170 * editfns.c (find_field): Properly handle the case
3171 of a field boundary where `field' inherits from neither side.
3172
3173 * editfns.c (Ffield_beginning, Ffield_end): Doc fixes.
3174 (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes.
3175
fa9aabf6
GM
31761999-11-08 Gerd Moellmann <gerd@gnu.org>
3177
3178 * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the
3179 BEFORE_POTENTIAL_GC before DISCARD.
3180
4015b3c0
GM
31811999-11-07 Gerd Moellmann <gerd@gnu.org>
3182
033a5fa3
GM
3183 * alloc.c (Fgarbage_collect): Call unmark_byte_stack.
3184
3185 * lisp.h: Add prototype for unmark_byte_stack.
3186
3187 * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK.
3188 (unmark_byte_stack): Renamed from relocate_byte_pcs. Use
3189 XUNMARK.
3190
55b064bd
GM
3191 * xdisp.c (resize_mini_window): Fix computation of needed
3192 mini-window height.
3193
3194 * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional
3195 compilation on USE_TEXT_PROPERTIES.
01e9b9df 3196
4015b3c0 3197 * Fbyte_code: Use block statements in cases and declare v1 and v2
60af03f1 3198 locally there. Rearrange case statements so that those most
4015b3c0
GM
3199 frequently executed come first. Avoid goto's in frequently
3200 executed cases.
3201
fe512f27
GM
32021999-11-05 Gerd Moellmann <gerd@gnu.org>
3203
dd59e217
GM
3204 * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and
3205 AFTER_POTENTIAL_GC around internal_catch.
3206
bcf28080
GM
3207 * alloc.c (Fgarbage_collect): Call mark_byte_stack and
3208 relocate_byte_pcs.
3209 (init_alloc_once, init_alloc): Set byte_stack_list to null.
3210
3211 * eval.c (struct catchtag): Add member byte_stack.
3212 (internal_catch, Fcondition_case, internal_condition_case)
dd59e217 3213 (internal_condition_case_1): Save value of byte_stack_list in
bcf28080
GM
3214 catchtag.
3215 (unwind_to_catch): Restore byte_stack_list from catchtag.
3216
3217 * lisp.h: Add prototypes for new functions in bytecode.c.
3218 Add extern declaration for byte_stack_list.
3219
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.
3226
4d59c34c
GM
3227 * filelock.c (Ffile_locked_p): Make FILENAME a required argument.
3228
fe512f27
GM
3229 * buffer.c (syms_of_buffer): Extend documentation of
3230 mode-line-format.
3231
60b64cd6
GM
32321999-11-04 Gerd Moellmann <gerd@gnu.org>
3233
3234 * editfns.c (Fdelete_field): Renamed from Ferase_field.
3235
3236 * minibuf.c (do_completion, Fminibuffer_complete_word): Use
3237 Ferase_field instead of Fdelete_field.
3238
b51b619b
GM
32391999-11-03 Gerd Moellmann <gerd@gnu.org>
3240
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.
3245
5865af0d
DL
32461999-11-03 Dave Love <fx@gnu.org>
3247
3248 * charset.c (split_non_ascii_string): Define return value.
3249
82a700f3
GM
32501999-11-03 Gerd Moellmann <gerd@gnu.org>
3251
edfef199
GM
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.
3256
82a700f3
GM
3257 * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO.
3258
b5540f0d
DL
32591999-11-02 Dave Love <fx@gnu.org>
3260
e69dcd60
DL
3261 * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1).
3262
827a1788
DL
3263 * process.c: Define _GNU_SOURCE before config.h to get strsignal
3264 declared with glibc2.
b5540f0d 3265
a69a6e61
GM
32661999-11-02 Gerd Moellmann <gerd@gnu.org>
3267
3268 * lisp.h (QUIT): Give it statement form.
3269
87e21fbd
DL
32701999-11-02 Dave Love <fx@gnu.org>
3271
3272 * eval.c (init_eval): Conditionalize declaration of gcpro_level.
3273
1b335865
GM
32741999-11-02 Gerd Moellmann <gerd@gnu.org>
3275
9fb5e03d
GM
3276 * xfns.c (QCuser_data): New.
3277 (syms_of_xfns): Initialize QCuser_data.
3278 (parse_image_spec): Ignore :user-data DATA properties.
3279
1b335865
GM
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.
3283
e76f1c44
GM
32841999-11-01 Gerd Moellmann <gerd@gnu.org>
3285
36fcd3d9
GM
3286 * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using
3287 png_get_sRGB in #ifdef.
3288
111259b4
GM
3289 * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor.
3290 (syms_of_display): Use the new name.
3291
dd5c96e8
GM
3292 * textprop.c (verify_interval_modification): Signal text-read-only
3293 instead of calling error.
3294
db8878fb
GM
3295 * data.c (Qtext_read_only): New built-in error.
3296 (syms_of_data): Initialize it.
3297
3298 * lisp.h: Add extern declaration for Qtext_read_only.
3299
e76f1c44
GM
3300 * syntax.c: Remove whitespace after open or in front of closing
3301 parentheses.
3302
83c8f461 33031999-11-01 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
3304
3305 * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h.
3306
7843e09c
GM
33071999-10-31 Gerd Moellmann <gerd@gnu.org>
3308
575ed805
GM
3309 * xdisp.c (resize_mini_window): Compute needed height differently.
3310
7843e09c
GM
3311 * fns.c (Flength): Unroll loop over lists.
3312
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.
3316
83c8f461 33171999-10-30 Richard M. Stallman <rms@gnu.org>
cb3a6c48
GM
3318
3319 * print.c (strout): Consider `noninteractive' and use stdout
3320 only when PRINTCHARFUN is t.
3321
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.
3327
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.
3332
3636f7a3
KH
33331999-10-29 Kenichi Handa <handa@etl.go.jp>
3334
3335 * coding.c (code_convert_region): Update `dst' correctly.
3336
a2ad7096
GM
33371999-10-28 Gerd Moellmann <gerd@gnu.org>
3338
3339 * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc)
3340 (Frassoc): Rewritten.
3341
1e3196e8
GM
33421999-10-27 Noah Friedman <friedman@splode.com>
3343
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.
3348
83c8f461 33491999-10-26 Richard M. Stallman <rms@gnu.org>
4ea68fcc
RS
3350
3351 * regex.c (POP_FAILURE_POINT): Use failure_id.integer
3352 as arg to DEBUG_POP and DEBUG_PRINT.
3353
83c8f461 33541999-10-27 Richard M. Stallman <rms@gnu.org>
17dbfaad
GM
3355
3356 * data.c (Qad_activate_internal): Renamed from Qad_activate.
3357 (Ffset): Call Qad_activate_internal.
3358 (syms_of_data): Initialize Qad_activate_internal.
3359
26922151
GM
33601999-10-27 Gerd Moellmann <gerd@gnu.org>
3361
3362 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if
3363 Vterminal_frame is selected and Vwindow_system is non-nil.
3364
67a5596f
GM
33651999-10-26 Gerd Moellmann <gerd@gnu.org>
3366
2bea706b
GM
3367 * xdisp.c (echo_area_display): Put previous change in #if 0.
3368
67a5596f
GM
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.
3372
81dc5de5
GM
33731999-10-25 Gerd Moellmann <gerd@gnu.org>
3374
3375 * data.c (Qhash_table): New.
3376 (Ftype_of): Return it for hash tables.
3377 (syms_of_data): Initialize Qhash_table.
3378
83c8f461 33791999-10-25 Richard M. Stallman <rms@gnu.org>
bd3c545d
GM
3380
3381 * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer.
3382
66e4690f 33831999-10-24 Ken Raeburn <raeburn@gnu.org>
3a7093d8 3384
7539e11f
KR
3385 * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including
3386 lisp.h.
3387
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
3396 references.
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):
3410 Likewise.
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.
3421
3422 * callint.c (quotify_args): Don't explicitly use struct
3423 Lisp_Cons, use Lisp_Object and XCAR/XCDR instead.
3424
3a7093d8
KR
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.
3428
2a3d7146
GM
34291999-10-24 Gerd Moellmann <gerd@gnu.org>
3430
3431 * window.c (Fnext_window): Add a QUIT in the loop.
3432
8ac52782
GM
34331999-10-23 Gerd Moellmann <gerd@gnu.org>
3434
3435 * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs):
3436 New targets.
3437
05f0d15a
DL
34381999-10-22 Dave Love <fx@gnu.org>
3439
3440 * emacs.c (main): Enable profiling conditional on __linux also.
3441
882fb0e6
GM
34421999-10-20 Gerd Moellmann <gerd@gnu.org>
3443
3444 * xrdb.c (x_load_resources): Set default resources for resource
3445 classes instead of for the specific Emacs.
3446
b5f5bc31
GM
34471999-10-19 Gerd Moellmann <gerd@gnu.org>
3448
66f4dd69
GM
3449 * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h
3450 defines it that way.
3451
b5f5bc31
GM
3452 * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing
3453 if selected_frame is equal to Vterminal_frame.
3454
68c45bf0
PE
34551999-10-19 Paul Eggert <eggert@twinsun.com>
3456
3457 Add support for large files, 64-bit Solaris, system locale codings.
3458
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.
3463
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.
3470
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,
3474 xmenu.c, xterm.c:
3475 Do not include <stdlib.h>, as <config.h> does this now.
3476
3477 * callproc.c (Fcall_process):
3478 Synchronize messages locale before invoking strerror.
3479 Decode resulting string with locale-coding-system.
3480
3481 * coding.c (Vlocale_coding_system): New var.
3482 (syms_of_coding): Adjust to above change.
3483 (emacs_strerror): New function.
3484
3485 * coding.h (emacs_strerror, Vlocale_coding_system): New decls.
3486
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.
3492
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.
3497
3498 * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available.
3499
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.
3509
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.
3520
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.
3526
3527 * fns.c (Fgethash): Declare dflt parameter.
3528
3529 * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H
3530 is defined; that's config.h's job.
3531
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.
3541
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.
3547
3548 * m/amdahl.h, s/usg5-4.h:
3549 (NSIG): Remove.
3550 (NSIG_MINIMUM): New macro.
3551
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.
3557
3558 * m/ustation.h:
3559 (SIGTSTP): Do not undef.
3560 (BROKEN_SIGTSTP): New macro.
3561
3562 * s/gnu-linux.h:
3563 (SIGPOLL, SIGURG): Do not undef.
3564 (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros.
3565
3566 * s/ptx4.h:
3567 (SIGINFO): Do not undef.
3568 (BROKEN_SIGINFO): New macros.
3569
3570 * m/delta.h, s/ptx.h, s/template.h: Doc fix.
3571
3572 * mktime.c, strftime.c: Update to glibc 2.1.2 version, with
3573 some Emacs-related changes merged.
3574
3575 * print.c (float_to_string): Prepend "-" to representation of a
3576 NaN if the NaN is negative.
3577
3578 * process.c (sys_siglist): Omit if HAVE_STRSIGNAL.
3579 (wait_reading_process_input): Use emacs_strerror, not strerror.
3580
3581 * process.c (status_message, sigchld_handler): Synchronize locale,
3582 then use strsignal istead of sys_siglist.
3583 * w32proc.c (sys_wait): Likewise.
3584
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.
3591
3592 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros.
3593
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.
3606
3607 * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO
3608 is defined.
3609 (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise.
3610 (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM.
3611 (strsignal): Declare if !HAVE_STRSIGNAL.
3612
3613 * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros.
3614 (ElfW): Define in terms of ElfExpandBitsW.
3615
3616 * w32proc.c (sys_siglist): Remove decl.
3617
3618 * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply
3619 with ANSI C.
3620 (display_string): Declare face_string_pos arg.
3621
3622 * xfns.c (Fx_show_tip): Declare timeout param.
3623
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
3629 does this now.
3630
2f0b74ea
DL
36311999-10-18 Dave Love <fx@gnu.org>
3632
3633 * doc.c (Fdocumentation_property): Gcpro `tem'.
3634
471aa4a0
KH
36351999-10-18 Kenichi Handa <handa@etl.go.jp>
3636
3637 * lread.c (Fload): Calculate bytes of filename correctly.
3638 (openp): Likewise.
3639
aca2020b
KH
36401999-10-18 Keisuke Nishida <kxn30@po.cwru.edu>
3641
3642 * print.c (print_preprocess): In case print-circle is nil,
3643 add OBJ to Vprint_number_table only when OBJ is a symbol.
3644
1f5fe392 36451999-10-18 Kenichi Handa <handa@etl.go.jp>
b843d1ae
KH
3646
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.
3650
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
3654 the coding system.
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.
3659
cd876a91
GM
36601999-10-17 Miles Bader <miles@gnu.org>
3661
3662 * editfns.c: Doc fix.
3663
36641999-10-17 Miles Bader <miles@gnu.org>
3665
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.
3670
36711999-10-17 Miles Bader <miles@gnu.org>
3672
3673 * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new
3674 ESCAPE_FROM_EDGE parameter to Ffield_beginning.
3675
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,
3684 not preceeding_pos.
3685
36861999-10-17 Miles Bader <miles@gnu.org>
3687
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
3693 ambiguous cases.
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.
3705
3706 * minibuf.c (Fminibuffer_complete_word): Use
3707 Ffield_beginning to find the prompt end.
3708
37091999-10-17 Miles Bader <miles@gnu.org>
3710
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.
3717
37181999-10-17 Miles Bader <miles@gnu.org>
3719
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
3728 minibuf_save_list.
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
3734 minibuf_save_list.
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.
3752
3f6f7508
GM
37531999-10-16 Gerd Moellmann <gerd@gnu.org>
3754
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
3758 in a window tree.
3759 (grow_mini_window): Call save_restore_orig_size with new parameter
3760 list.
3761 (shrink_mini_window): Restore old window sizes only if old
3762 size information is valid in all windows in a window tree.
3763
06482119
GM
37641999-10-15 Gerd Moellmann <gerd@gnu.org>
3765
2710454d
GM
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.
3769
06482119
GM
3770 * xfns.c (gif_load): Fix handling of interlaced GIFs.
3771
17fa2837
DL
37721999-10-14 Dave Love <fx@gnu.org>
3773
3774 * xdisp.c (handle_fontified_prop): GCPRO `pos'.
3775
45f93416
GM
37761999-10-14 Gerd Moellmann <gerd@gnu.org>
3777
3778 * process.c (Fopen_network_stream): Don't loop if gethostbyname
3779 fails and h_errno is TRY_AGAIN.
3780
c765b723
DL
37811999-10-13 Dave Love <fx@gnu.org>
3782
3783 * filelock.c (lock_file): Move gcpro of `fn'.
3784
dace7f4e
GM
37851999-10-10 Gerd Moellmann <gerd@gnu.org>
3786
3787 * keyboard.c (auto-save-interval): Fix documentation.
3788
83c8f461 37891999-10-09 Richard M. Stallman <rms@gnu.org>
73fb36f1
RS
3790
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.
3795
85177c86
GM
37961999-10-09 Gerd Moellmann <gerd@gnu.org>
3797
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
3801 image failed.
3802 (xpm_load): Add missing UNBLOCK_INPUT.
3803
3804 * dispextern.h (struct image): New member load_failed_p.
3805
11e4de5d
SM
38061999-10-08 Stefan Monnier <monnier@cs.yale.edu>
3807
f28eba7b 3808 * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file'
11e4de5d
SM
3809 in the docstring.
3810
f1da8f06
GM
38111999-10-08 Gerd Moellmann <gerd@gnu.org>
3812
3813 * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>:
3814 Don't call XSetInputFocus because that can generate additional
3815 FocusIn events.
3816
c37bbd4f
GM
38171999-10-07 Jeffrey C Honig <jch@bsdi.com>
3818
3819 * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP.
3820
83c8f461 38211999-10-07 Richard M. Stallman <rms@gnu.org>
78cc5c64
GM
3822
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.
3826
577d9e2f
GM
38271999-10-07 Gerd Moellmann <gerd@gnu.org>
3828
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
3837 Fbitmap_spec_p.
3838
f5737ad2
GM
38391999-10-07 Gerd Moellmann <gerd@gnu.org>
3840
3841 * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of
3842 MODE_LINE_FACE_ID.
3843
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)
3847 [USE_MOTIF]: New.
3848 (xl_apply_resources, xl_set_menu_resources_from_menu_face)
3849 [USE_LUCID]: New.
3850 (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New.
3851 (Qmenu): 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.
3858
3859 * xmenu.c (set_frame_menubar, xmenu_show): Call
3860 x_set_menu_resources_from_menu_face.
3861
3862 * dispextern.h (enum face_id): Add MENU_FACE_ID.
3863 (toplevel): Include X11/Intrinsic.h.
3864
6a1aa823
DL
38651999-10-03 Ken'ichi Handa <handa@gnu.org>
3866
3867 * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR
3868 correctly.
3869
26901792
DL
38701999-09-30 Kenichi Handa <handa@etl.go.jp>
3871
3872 * category.c (modify_lower_category_set): Set default value of
3873 TABLE correctly.
3874
3875 * minibuf.c (Fminibuffer_complete_word): Calculate string byte
3876 size correctly.
3877
38781999-09-29 Gerd Moellmann <gerd@gnu.org>
3879
3880 * editfns.c (Fpropertize): Renamed from Fproperties.
3881
38821999-09-29 Gerd Moellmann <gerd@gnu.org>
3883
3884 * xdisp.c (resize_mini_window): Do nothing if frame is an X
3885 frame that hasn't been initialized yet.
3886
83c8f461 38871999-09-28 Richard M. Stallman <rms@gnu.org>
a04f1a93
PR
3888
3889 * keymap.c (Fsingle_key_description): Make tem big enough.
3890 (describe_buffer_bindings): Make buf big enough.
3891
83c8f461 38921999-09-27 Richard M. Stallman <rms@gnu.org>
d177c583
PR
3893
3894 * intervals.c (get_local_map): Use indirect_function,
3895 not Findirect_function.
3896
26901792
DL
38971999-09-27 Dave Love <fx@gnu.org>
3898
3899 * cm.h: Remove unneeded declaration of ospeed.
3900
39011999-09-26 Gerd Moellmann <gerd@gnu.org>
3902
3903 * lisp.h (toplevel): Add prototype for
3904 next_single_char_property_change.
3905
3906 * textprop.c (next_single_char_property_change): New.
3907
3908 * xdisp.c (display_prop_end, invisible_text_between_p): Use
3909 next_single_char_property_change.
3910
39111999-09-25 Gerd Moellmann <gerd@gnu.org>
3912
3913 * editfns.c (Fproperties): New.
3914 (syms_of_editfns): Defsubr it.
3915
3916 * xfns.c (lookup_image): Set image's timestamp because it's
3917 used when we look it up.
3918
39191999-09-23 Gerd Moellmann <gerd@gnu.org>
3920
3921 * window.c (enlarge_window): Add window parameter instead of using
3922 selected_window.
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.
3928
3929 * xfns.c (image_error): Use add_to_log.
3930
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.
3934
3935 * dispextern.h: Add prototype for add_to_log.
3936
3937 * xfaces.c (add_to_log): Move to xdisp.c.
3938
3939 * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame
3940 parameter.
3941
39421999-09-23 Gerd Moellmann <gerd@gnu.org>
3943
3944 * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef
3945 USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS.
3946
3947 * xdisp.c (resize_mini_window): Use grow_mini_window and
3948 shrink_mini_window.
3949
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
3955 orig_height.
3956 (enlarge_window): Renamed from change_window_height. Make it
3957 static.
3958 (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call
3959 enlarge_window instead of change_window_height.
3960
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.
3964
39651999-09-21 Eli Zaretskii <eliz@gnu.org>
3966
3967 * frame.c (frame_name_fnn_p): Fix previous change.
3968
39691999-09-20 Gerd Moellmann <gerd@gnu.org>
3970
3971 * minibuf.c (toplevel): Move include of stdio.h to other includes.
3972
3973 * dispnew.c (direct_output_for_insert): Cast arguments to
3974 safe_bcopy to char *.
3975
3976 * lread.c (readchar): Remove unused variables.
3977 (read_filtered_event, read1, Fmapatoms): Ditto.
3978 (toplevel): Include intervals.h.
3979
3980 * eval.c (Fsignal): Remove unused variables.
3981 (Fcommandp, do_autoload): Ditto.
3982
3983 * lisp.h: Add prototype for safe_bcopy, fatal.
3984
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.
3988
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.
3993
3994 * casefiddle.c (casify_object): Remove unused variables.
3995 (casify_region): Ditto.
3996
3997 * filelock.c (get_boot_time): Put local variable used in
3998 conditinally compiled section in #ifdef.
3999 (toplevel): Include stdio.h.
4000
4001 * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector,
4002 keys_of_keymap, syms_of_keymap): Remove unused variables.
4003
40041999-09-20 Gerd Moellmann <gerd@gnu.org>
4005
4006 * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows
4007 whose corresponding window rows have been disabled in
4008 try_window_id.
4009
40101999-09-20 Gerd Moellmann <gerd@gnu.org>
4011
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
4016 left-margin)'.
4017 (Qmargin): New.
4018 (syms_of_xdisp): Initialize Qmargin.
4019
40201999-09-19 Gerd Moellmann <gerd@gnu.org>
4021
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.
4026
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
4035 keyboard_bit_set.
4036
4037 * abbrev.c (Fexpand_abbrev): Remove unused variables.
4038
4039 * textprop.c (Fset_text_properties): Remove unused variables.
4040 (text_property_list, verify_interval_modification,
4041 interval_has_all_properties): Ditto.
4042
4043 * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4044 (Fcall_process): Remove unused variable.
4045
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.
4059
4060 * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom.
4061 (toplevel): Add prototypes for stuff_char, and
4062 code_convert_string_norecord.
4063
40641999-09-19 Gerd Moellmann <gerd@gnu.org>
4065
4066 * buffer.h: Add prototype for r_re_alloc.
4067
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
4074 expression.
4075
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.
4081
4082 * lisp.h: Add prototype for shrink_regexp_cache,
4083 sweep_weak_hash_tables.
4084
40851999-09-19 Dave Love <fx@gnu.org>
4086
4087 * process.c (Fopen_network_stream): Use strerror, not gai_strerror.
4088
4089 * doc.c (read_bytecode_char): Declare arg.
4090
4091 * lisp.h: Declare Fcurrent_message, Fmake_temp_name,
4092 read_bytecode_char, Fx_hide_busy_cursor, getloadavg.
4093
40941999-09-18 Richard Stallman <rms@gnu.org>
4095
4096 * xdisp.c (echo_area_display): Turn off code that returned
4097 without doing anything when using a terminal frame.
4098
83c8f461 40991999-09-17 Richard M. Stallman <rms@gnu.org>
27271329
PR
4100
4101 * unexelf.c (unexec): Don't get confused by a short section
4102 just before the bss section.
4103
26901792
DL
41041999-09-16 Gerd Moellmann <gerd@gnu.org>
4105
4106 * emacs.c (main): Remove unused variables.
4107 (sort_args, Fkill_emacs, Fkill_emacs): Ditto.
4108
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.
4112
4113 * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h.
4114
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.
4122
4123 * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free.
4124
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.
4129
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.
4133
41341999-09-16 Gerd Moellmann <gerd@gnu.org>
4135
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.
4140
4141 * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h.
4142
4143 * lisp.h: Add prototype for no_switch_window.
4144
4145 * window.c (Fset_window_buffer): Remove unused variables.
4146 (Fset_window_margins): Ditto.
4147
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.
4151
4152 * window.c (window_fixed_size_p): Check window's height_fixed_p
4153 flag.
4154
4155 * window.h (struct window): New member height_fixed_p.
4156
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.
4160
41611999-09-16 Gerd Moellmann <gerd@gnu.org>
4162
4163 * frame.c (Fdelete_frame): Correct local variable pointing to
4164 selected frame after selecting new frame.
4165
41661999-09-15 Richard Stallman <rms@gnu.org>
4167
4168 * puresize.h (BASE_PURESIZE): Increase to 525000.
4169
4170 * filelock.c (Vtemporary_file_directory): New variable.
4171 (syms_of_filelock): Set up Lisp variable.
4172
41731999-09-15 Gerd Moellmann <gerd@gnu.org>
4174
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.
4179
4180 * dispnew.c (update_frame_line): If writing whole desired line,
4181 don't clear to end of line if already at the end.
4182
41831999-09-15 Gerd Moellmann <gerd@gnu.org>
4184
4185 * xdisp.c (resize_mini_window): Don't report changed window
4186 height if it actually hasn't changed.
4187
4188 * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove
4189 unused variables.
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.
4193
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
4197 variables.
4198
4199 * print.c (PRINTFULLP): Removed because it is no longer used and
4200 is misleading.
4201 (Ferror_message_string): Remove unused variables.
4202 (print_object): Cast argument of sprintf to long for `%ld'
4203 specifier. Remove unused variable.
4204
42051999-09-14 Gerd Moellmann <gerd@gnu.org>
4206
4207 * sound.c (Fplay_sound): Remove usused variables.
4208 (be2hs): Put in #if 0 because it's currently not used.
4209
42101999-09-14 Ken Raeburn <raeburn@gnu.org>
4211
4212 * print.c (Ferror_message_string, print_error_message,
4213 print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit
4214 member access.
4215
42161999-09-14 Gerd Moellmann <gerd@gnu.org>
4217
4218 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
4219
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):
4225 Ditto.
4226
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.
4236
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.
4240
4241 * dispextern.h: Add prototypes for gamma_correct and
4242 x_kill_gs_process.
4243
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.
4253
4254 * window.h (freeze_window_starts): Fix typo in prototype.
4255
4256 * xdisp.c (display_echo_area_1, try_window_id): Remove unused
4257 variable(s).
4258
4259 * lisp.h: Add prototype for debug_print.
4260
4261 * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition
4262 to use do-while.
4263
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).
4267
4268 * lisp.h: Add prototype for getloadavg.
4269
42701999-09-14 Andreas Schwab <schwab@gnu.org>
4271
4272 * process.c (Fopen_network_stream): Avoid socket decriptor leak.
4273
4274 * lisp.h: Declare close_file_unwind.
4275
42761999-09-14 Richard Stallman <rms@gnu.org>
4277
4278 * filelock.c (get_boot_time): Make the temp name in the proper dir.
4279
42801999-09-13 Gerd Moellmann <gerd@gnu.org>
4281
4282 * xdisp.c (redisplay_window): Make sure start_at_line_beg
4283 is always set correctly.
4284
42851999-09-13 Dave Love <fx@gnu.org>
4286
4287 * xdisp.c (move_it_in_display_line_to): Make type consistent with
4288 declaration.
4289
42901999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4291
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.
4298
42991999-09-13 Dave Love <fx@gnu.org>
4300
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.
4303
43041999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4305
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.
4309
43101999-09-13 Dave Love <fx@gnu.org>
4311
4312 * xfns.c (x_put_x_image): Make type consistent with declaration.
4313
4314 * fns.c (Fmake_hash_table): Fix string continuation.
4315
43161999-09-13 Gerd Moellmann <gerd@delysid.gnu.org>
4317
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.
4322
43231999-09-13 Gerd Moellmann <gerd@gnu.org>
4324
4325 * minibuf.c (choose_minibuf_frame): Don't try to set the
4326 mini-buffer window's buffer, if the buffer is invalid.
4327
4328 * xfns.c (QCfile): Moved to xdisp.c.
4329 (syms_of_xfns): Don't initialize QCfile.
4330
4331 * xdisp.c (QCfile): Move here from xfns.c.
4332 (syms_of_xdisp): Initialize it.
4333
4334 * lisp.h (selected_frame): Add external declaration.
4335
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.
4339
4340 * xfaces.c (frame_or_selected_frame): Change for Lisp_Object
4341 selected_frame.
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.
4346
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.
4353
4354 * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame.
4355 (kbd_input_ast, read_input_waiting): Ditto.
4356
4357 * minibuf.c (choose_minibuf_frame): Change for Lisp_Object
4358 selected_frame.
4359 (read_minibuf): Ditto.
4360
4361 * keyboard.c (command_loop_1): Change for Lisp_Object
4362 selected_frame.
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.
4367
4368 * fontset.c (Ffont_info): Change for Lisp_Object selected_frame.
4369 (Ffontset_info): DItto.
4370
4371 * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame.
4372
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.
4377
4378 * data.c (swap_in_symval_forwarding): Change for Lisp_Object
4379 selected_frame.
4380 (set_internal): Ditto.
4381
4382 * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame.
4383 (record_buffer): Ditto.
4384
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.
4397
43981999-09-13 Gerd Moellmann <gerd@gnu.org>
4399
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.
4404
4405 * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame.
4406 (Fx_popup_dialog): Ditto.
4407
4408 * xfns.c (check_x_frame): Change for Lisp_Object selected_frame.
4409 (check_x_display_info, x_get_resource_string): Ditto.
4410
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.
4414
4415 * window.c (Fminibuffer_window): Change for Lisp_Object
4416 selected_frame.
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.
4420
4421 * frame.h (SELECTED_FRAME): New.
4422
44231999-09-12 Ken Raeburn <raeburn@gnu.org>
4424
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):
4430 Likewise.
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):
4437 Likewise.
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.
4460
4461 * editfns.c (Fformat): Use XFLOAT_DATA.
4462
44631999-09-12 Gerd Moellmann <gerd@gnu.org>
4464
4465 * keyboard.c (command_loop_1): Resize mini-window to the
4466 exact size of a message displayed, if any.
4467
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
4471 new parameter.
4472 (redisplay_internal): Ditto.
4473 (resize_echo_area_axactly): New.
4474
4475 * minibuf.c (read_minibuf_unwind): Call resize_mini_window with
4476 new parameter.
4477
4478 * dispextern.h: Change prototype of resize_mini_window.
4479 Add prototype for resize_echo_area_axactly.
4480
4481 * xfaces.c (Fx_family_fonts): Replaces Fx_font_list.
4482 (syms_of_xfaces): Defsubr accordingly.
4483
4484 * xdisp.c (hscroll_window_tree): Choose cursor row from
4485 desired or current matrix.
4486 (redisplay_internal): Hscroll before updating.
4487
44881999-09-12 Gerd Moellmann <gerd@gnu.org>
4489
4490 * syntax.c (Fforward_word): Use prompt_end_charpos instead
4491 of minibuffer_prompt_length.
4492
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.
4499
4500 * editfns.c (Fbuffer_string): Use prompt_end_charpos instead
4501 of minibuffer_prompt_length.
4502 (Fline_beginning_position): Ditto.
4503
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.
4509
4510 * buffer.h (prompt_end_charpos): Replaces
4511 minibuffer_prompt_length.
4512
4513 * minibuf.c (read_minibuf): Return mini-buffer contents
4514 without the prompt.
4515
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.
4519
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.
4524
45251999-09-12 Gerd Moellmann <gerd@gnu.org>
4526
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.
4530
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.
4535
45361999-09-12 Richard Stallman <rms@gnu.org>
4537
4538 * insdel.c (del_range_1): Don't treat minibuffer prompt specially.
4539
45401999-09-12 Ken Raeburn <raeburn@gnu.org>
4541
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):
4546 Likewise.
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):
4592 Likewise.
4593
4594 * alloc.c (make_float, make_pure_float, Fpurecopy): Use
4595 XFLOAT_DATA.
4596 * bytecode.c (Fbyte_code): Likewise.
4597 * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver,
4598 fmod_float): Likewise.
4599
46001999-09-11 Richard Stallman <rms@gnu.org>
4601
4602 * xdisp.c (run_window_scroll_functions): If hook functions switch
4603 buffers, switch back after.
4604
46051999-09-11 Ken Raeburn <raeburn@gnu.org>
4606
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
4612 XCDR.
4613 * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and
4614 XCDR.
4615
46161999-09-10 Richard Stallman <rms@gnu.org>
4617
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.
4622
46231999-09-10 Keisuke Nishida <kxn30@po.cwru.edu>
4624
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'.
4636
46371999-09-10 Gerd Moellmann <gerd@gnu.org>
4638
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.
4645 (gs_type): Use it.
4646 (gs_image_p): Ditto.
4647 (syms_of_xfns): Initialize Qpostscript.
4648
46491999-09-10 Richard Stallman <rms@gnu.org>
4650
4651 * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt.
4652
46531999-09-09 Richard Stallman <rms@gnu.org>
4654
4655 * editfns.c (Fline_beginning_position): Handle minibuffer prompt here.
4656
4657 * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here.
4658
46591999-09-09 Gerd Moellmann <gerd@gnu.org>
4660
4661 * fns.c (Fmakehash): Accept just one optional argument TEST.
4662
4663 * xfns.c (QCindex): New.
4664 (syms_of_xfns): Initialize QCindex.
4665 (gif_load): Use it instead of `:image'.
4666
46671999-09-09 Richard Stallman <rms@gnu.org>
4668
4669 * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW.
4670 (Fwrite_region) [DOS_NT]: Handle `excl' here too.
4671
46721999-09-08 Gerd Moellmann <gerd@gnu.org>
4673
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.
4677
46781999-09-08 Ken'ichi Handa <handa@gnu.org>
4679
4680 * charset.c (translate_char): Reset MSBs of arguments of
4681 MAKE_CHAR.
4682 (CHAR_COMPONENTS_VALID_P): Fix for ASCII.
4683
46841999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
4685
4686 * editfns.c (Fbufsize): Accept an extra BUFFER parameter.
4687
4688 * fns.c (Fbase64_decode_region): Don't place point outside of the
4689 current accessible portion.
4690
46911999-09-07 Richard Stallman <rms@gnu.org>
4692
4693 * keymap.c (fix_submap_inheritance): Do nothing if the proper
4694 parent is an ancestor of SUBMAP; otherwise, add it as the
4695 ultimate ancestor.
4696
46971999-09-07 Gerd Moellmann <gerd@gnu.org>
4698
4699 * xdisp.c (handle_single_display_prop): Change conditional
4700 display property to `:when FORM . VALUE'.
4701
47021999-09-07 Richard Stallman <rms@gnu.org>
4703
4704 * fileio.c (Fwrite_region): Doc fix.
4705
47061999-09-07 Stefan Monnier <monnier@cs.yale.edu>
4707
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.
4712
47131999-09-07 Gerd Moellmann <gerd@gnu.org>
4714
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.
4723
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.
4728
4729 * xfaces.c (realize_basic_faces): Realize new basic faces.
4730
4731 * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID,
4732 CURSOR_FACE_ID, MOUSE_FACE_ID): New.
4733
4734 * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New.
4735 (syms_of_xfaces): Intialize new symbols.
4736
4737 * fns.c (Fmakehash): Take one argument, test, make all the
4738 rest keyword arguments.
4739
4740 * window.c (Fset_window_margins): Make window the first argument.
4741 (set_window_buffer): Call Fset_window_margins with window as first
4742 argument.
4743
47441999-09-07 Gerd Moellmann <gerd@gnu.org>
4745
4746 * xfaces.c (Qfringe): Replaces Qmargin.
4747
47481999-09-07 Kenichi Handa <handa@etl.go.jp>
4749
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.
4753
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.
4758
47591999-09-06 Richard Stallman <rms@gnu.org>
4760
4761 * insdel.c (syms_of_insdel): Define Lisp variable
4762 inhibit-modification-hooks.
4763
47641999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de>
4765
4766 * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new
4767 unexaix.c.
4768
4769 * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c.
4770
47711999-09-06 Dave Love <fx@gnu.org>
4772
4773 * unexaix.c: New version incorporating Michael Sperber's changes
4774 from XEmacs. Should solve problems on AIX 4.3.
4775
4776 * lread.c (Vbyte_boolean_vars): New variable.
4777 (defvar_bool, syms_of_lread): Use it.
4778
47791999-09-05 Richard Stallman <rms@gnu.org>
4780
4781 * minibuf.c (read_minibuf): Put all three properties on the
4782 same range, the whole prompt.
4783
47841999-09-05 Gerd Moellmann <gerd@gnu.org>
4785
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.
4790
4791 * window.c (Fset_window_vscroll): Make window the first argument,
4792 amount to scroll the second. Take non-negative vscroll as
4793 argument.
4794 (Fwindow_vscroll): Return non-negative vscroll.
4795
4796 * xfns.c (Fx_show_tip): Improve documentation.
4797
47981999-09-05 Gerd Moellmann <gerd@gnu.org>
4799
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.
4804
48051999-09-05 Gerd Moellmann <gerd@gnu.org>
4806
4807 * xdisp.c (row_containing_pos): New.
4808 (try_window_id): Use it.
4809
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.
4814
48151999-09-05 Gerd Moellmann <gerd@gnu.org>
4816
4817 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4818 Fix reference to renamed variable.
4819
48201999-09-04 Gerd Moellmann <gerd@gnu.org>
4821
4822 * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size.
4823 (window_fixed_size_p): Use Qwindow_size_fixed instead of
4824 Qfixed_window_size.
4825 (syms_of_window): Ditto.
4826
4827 * fns.c (Fmakehash): Exchange optional test and size arguments.
4828
48291999-09-03 Gerd Moellmann <gerd@gnu.org>
4830
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.
4837
4838 * frame.h (struct frame): New member `gamma'.
4839
4840 * xfns.c: Include math.h. Add extern declaration for atof in case
4841 we don't see one.
4842 (Qscreen_gamma): New.
4843 (struct x_frame_parm_table): Add prototypes, add
4844 x_set_screen_gamma.
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
4853 new prototype.
4854 (lookup_rgb_color): Ditto.
4855 (syms_of_xfns): Initialize Qscreen_gamma.
4856
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
4862 parameter list.
4863
4864 * xterm.h: Change protorype of x_alloc_nearest_color.
4865
48661999-09-03 Richard Stallman <rms@gnu.org>
4867
4868 * callproc.c: Delete the system-independent include of stdlib.h
4869 (leaving only the one in the WINDOWSNT conditional).
4870
48711999-09-03 Andrew Choi <choi@cs.hku.hk>
4872
4873 * callproc.c (call-process) [macintosh]: Call mac_run_command in
4874 sysdep.c. The Mac code is modeled after the DOS code.
4875
4876 * dispextern.h [macintosh]: Include macterm.h to define substitute X
4877 Window types and macros.
4878
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.
4883
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.
4890
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.
4893
4894 * make-docfiles.c: Correctly handle input files with Mac-style
4895 eol's.
4896
4897 * sysdep.c: Define numerous routines to emulate Unix system calls.
4898
4899 * xfaces.c: on MacOS, define the set of colors listed in rgb.txt
4900 file of an X Window environment.
4901
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.
4904
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.
4911
4912 * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm)
4913 (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy):
4914 (InitEmacsPasswdDir, run_mac_command): New subroutines.
4915
4916 * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName)
4917 (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask)
4918 (myPasswdDir, TempDirName, sys_siglist): New variables.
4919
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.
4924
49251999-09-03 Gerd Moellmann <gerd@gnu.org>
4926
4927 * xdisp.c: Use XCAR and XCDR instead of XCONS.
4928
4929 * window.h: New member frozen_window_start_p.
4930
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.
4937
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.
4946
4947 * dispextern.h: Add function prototype for resize_mini_window.
4948
4949 * minibuf.c (read_minibuf_unwind): Resize mini-window when
4950 reaching minibuf_level 0.
4951
4952 * lisp.h: Remove extern declarations for variables deleted from
4953 xdisp.c.
4954
4955 * dispnew.c (adjust_frame_glyphs): Remove reference to
4956 Vresize_mini_config.
4957
49581999-09-03 Gerd Moellmann <gerd@gnu.org>
4959
4960 * xfns.c (x_set_scroll_bar_width): Change conditional compilation
4961 to USE_TOOLKIT_SCROLL_BARS.
4962
4963 * xterm.c (x_scroll_bar_create): Don't clear under scroll bar
4964 here.
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.
4968
49691999-09-03 Kenichi Handa <handa@etl.go.jp>
4970
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.
4976
4977 * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2
4978 are negative.
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,
4990
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
4996 as possible.
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
5009 CHAR_VALID_P.
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).
5014
5015 * data.c (Faset): Adjust the way to check byte-combining
5016 possibility for the new handling of multibyte sequence.
5017
5018 * editfns.c (Fsubst_char_in_region): Likewise.
5019
5020 * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ.
5021 (string_char_to_byte): Likewise.
5022 (string_byte_to_char): Likewise.
5023
5024 * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the
5025 macro STRING_CHAR_AND_LENGTH. Caller changed.
5026
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.
5032
5033 * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH.
5034 (print): Likewise.
5035
5036 * dispextern.h (struct it): Change the size of the member
5037 `ctl_chars'.
5038
5039 * xdisp.c (get_next_display_element): Display incomplete multibyte
5040 sequence (e.g. \222\300) by octal form.
5041
50421999-09-02 Gerd Moellmann <gerd@gnu.org>
5043
5044 * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0.
5045
5046 * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak.
5047 (cmpfn_eql, sxhash): Use XFLOAT_DATA.
5048
50491999-09-02 Gerd Moellmann <gerd@gnu.org>
5050
5051 * buffer.c (set_buffer_internal): Never set
5052 windows_or_buffers_changed.
5053
5054 * xdisp.c (try_window_id): Reset first_unchanged_at_end_row
5055 if we have displayed to the bottom of the window.
5056
5057 * syntax.c (Fforward_word): Stop at a mini-buffer prompt end
5058 in both directions. Extend documentation.
5059
50601999-09-01 Gerd Moellmann <gerd@gnu.org>
5061
5062 * minibuf.c (read_minibuf): Flush display after setting cursor to
5063 column 0.
5064
50651999-08-31 Gerd Moellmann <gerd@gnu.org>
5066
5067 * s/freebsd.h (__FreeBSD_version): Don't define it if it is
5068 already defined. This avoids a warning from buffer.c.
5069
50701999-08-30 Gerd Moellmann <gerd@gnu.org>
5071
5072 * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width
5073 of both margins.
5074 (FRAME_X_FLAGS_AREA_WIDTH): Likewise.
5075 (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New.
5076 (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New.
5077
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.
5081
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.
5097
5098 * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead
5099 of 2 * that value.
5100
5101 * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of
5102 2 * that value.
5103 (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of
5104 FRAME_FLAGS_AREA_WIDTH.
5105
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
5109 instead of twice.
5110
5111 * widget.c (set_frame_size): Set flags_area_extra to
5112 FRAME_FLAGS_AREA_WIDTH instead of 2 * that width.
5113 (EmacsFrameSetCharSize): Ditto.
5114
5115 * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH
5116 instead of FRAME_FLAGS_AREA_WIDTH.
5117
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.
5122
51231999-08-30 Gerd Moellmann <gerd@gnu.org>
5124
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.
5127
51281999-08-30 Gerd Moellmann <gerd@gnu.org>
5129
5130 * fns.c (QCweakness): Replaces QCweak.
5131 (Fmake_hash_table): Ditto.
5132 (Fmakehash): Ditto.
5133 (syms_of_fns): Ditto.
5134
51351999-08-29 Richard Stallman <rms@gnu.org>
5136
5137 * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp.
5138
5139 * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args.
5140
5141 * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED):
5142 Add support for nested comments.
5143
863476d1
SM
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.
26901792
DL
5149
51501999-08-28 Ken Raeburn <raeburn@gnu.org>
5151
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.
5157
51581999-08-25 Gerd Moellmann <gerd@gnu.org>
5159
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.
5163
5164 * window.c (Frecenter): Clear frame if called with nil or no arg.
5165
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.
5170
51711999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br>
5172
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.
5177
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.
5184
51851999-08-25 Gerd Moellmann <gerd@gnu.org>
5186
5187 * xdisp.c (try_window_id): Remove typo.
5188
51891999-08-24 Gerd Moellmann <gerd@gnu.org>
5190
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
5194 set.
5195
5196 * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables.
5197
51981999-08-24 Gerd Moellmann <gerd@gnu.org>
5199
5200 * xfaces.c (Qmargin): Replacement for Qbitmap_area.
5201 (realize_basic_faces): Replace Qmargin for Qbitmap_area.
5202 (syms_of_xfaces): Ditto.
5203
5204 * window.c (Fset_window_point): Reset Vresize_mini_config.
5205 (Fset_window_start): Ditto.
5206 (set_window_buffer): Ditto.
5207
5208 * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config.
5209
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
5215 differently.
5216
5217 * lisp.h (Vresize_mini_config, resize_mini_frame,
5218 resize_mini_initial_height): Add extern declarations.
5219
5220 * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to
5221 CANON_X_UNIT.
5222
5223 * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H
5224 being redefined in jconfig.h.
5225
52261999-08-23 Ken'ichi Handa <handa@gnu.org>
5227
5228 * coding.h: Include "ccl.h" instead of "../src/ccl.h".
5229
52301999-08-22 Gerd Moellmann <gerd@gnu.org>
5231
5232 * alloc.c (mark_glyph_matrix): Mark strings only.
5233
5234 * xdisp.c (redisplay_internal): Clear garbaged frames after
5235 resizing mini-window.
5236
52371999-08-22 Gerd Moellmann <gerd@gnu.org>
5238
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.
5242
5243 * buffer.c (set_buffer_internal): Set windows_or_buffers_changed
5244 only if buffer is displayed somewhere.
5245
5246 * buffer.h (BUF_COMPUTE_UNCHANGED): New.
5247
5248 * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED.
5249 (gap_right): Ditto.
5250 (modify_region): Ditto.
5251
5252 * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED.
5253
5254 * xdisp.c (Vresize_mini_config): New.
5255 (resize_mini_window): Use it to save restore original window
5256 configuration
5257 (syms_of_xdisp): Initialize it.
5258
5259 * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p.
5260
5261 * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv.
5262
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.
5267
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.
5273
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.
5277
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.
5284
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,
5295 try_window_id):
5296 Use buffer-specific beg/end_unchanged.
5297
5298 * window.h (beg_unchanged, end_unchanged, unchanged_modified,
5299 overlay_unchanged_modified): Remove extern declarations.
5300
5301 * keyboard.c (command_loop_1): Set beg/end_unchanged per
5302 buffer.
5303
5304 * insdel.c (gap_left): Compute beg/end_unchanged per buffer.
5305 (gap_right): Ditto.
5306 (adjust_after_replace): Likewise.
5307 (replace_range, del_range_2, modify_region): Likewise.
5308
5309 * dispnew.c (direct_output_for_insert): Set beg_unchanged
5310 and unchanged_modified per buffer.
5311
5312 * coding.c (code_convert_region): Compute beg/end_unchanged per
5313 buffer.
5314
5315 * buffer.c (modify_overlay): Compute beg/end_unchanged
5316 per buffer.
5317 (Fget_buffer_create): Initialize new members of the buffer
5318 structure.
5319
53201999-08-22 Gerd Moellmann <gerd@gnu.org>
5321
5322 * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table.
5323
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.
5330
53311999-08-22 Gerd Moellmann <gerd@gnu.org>
5332
5333 * xfns.c: Call change_frame_size and do_pending_window_change with
5334 new parameter.
5335
53361999-08-21 Gerd Moellmann <gerd@gnu.org>
5337
5338 * xdisp.c (resize_mini_window): Do it for truncate-lines t as
5339 well.
5340 (redisplay_internal): Resize mini-window only if text might
5341 have changed.
5342 (display_echo_area): Reset displayed echo_area_buffer to nil
5343 at the end if we're displaying a nil message.
5344
53451999-08-21 Gerd Moellmann <gerd@gnu.org>
5346
5347 * fns.c (hash_lookup): Test with EQ before calling key comparion
5348 function.
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.
5354
5355 * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h:
5356 Remove conditional compilation on NO_PROMPT_IN_BUFFER.
5357
5358 * dispextern.h (NO_PROMPT_IN_BUFFER): Removed.
5359
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
5362 new parameter.
5363
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.
5369
5370 * dispextern.h: Change prototypes for do_pending_window_change
5371 and change_frame_size.
5372
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.
5376
53771999-08-21 Gerd Moellmann <gerd@gnu.org>
5378
5379 * xdisp.c, minibuf.c: Remove conditional compilation on
5380 NO_PROMPT_IN_BUFFER.
5381
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.
5387
5388 * xdisp.c (get_next_display_element): Display \r as ^M.
5389
5390 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear
5391 under scroll bar widget.
5392
53931999-08-21 Gerd Moellmann <gerd@gnu.org>
5394
5395 * xdisp.c (minibuffer_scroll_overlap): Removed because not used
5396 anywhere.
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.
5404
5405 * dispextern.h, lisp.h: Add function prototypes.
5406
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.
5410
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):
5414 Removed.
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
5419 it is.
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.
5426
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
5435 differently.
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.
5442
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.
5450
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.
5459
5460 * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to
5461 a struct kboard.
5462 (echo_kboard): New.
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.
5472
5473 * alloc.c (Fgarbage_collect): Use push_message, restore_message,
5474 pop_message.
5475
5476 * emacs.c (shut_down_emacs): Call check_message_stack.
5477
5478 * lisp.h: Add function prototypes and extern declarations for
5479 new functions and variables.
5480
5481 * fileio.c (Fdo_auto_save): Use push_message, restore_message,
5482 pop_message.
5483
5484 * minibuf.c (read_minibuf): Use clear_message instead of
5485 setting echo_area_glyphs.
5486 (Fminibuffer_completion_help): Ditto.
5487
5488 * editfns.c (Fcurrent_message): Rewritten.
5489
5490 * frame.c, window.h: Remove references to echo_area_glyphs
5491 and previous_echo_glyphs.
5492
54931999-08-21 Dave Love <fx@gnu.org>
5494
5495 * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O.
5496 * aix4-1.h: Likewise.
5497
5498 * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize.
5499
55001999-08-20 Gerd Moellmann <gerd@gnu.org>
5501
5502 * xfns.c: Remove tiff34 prefix from include.
5503
55041999-08-20 Dave Love <fx@gnu.org>
5505
5506 * cm.c: Revert previous change.
5507
55081999-08-19 Gerd Moellmann <gerd@gnu.org>
5509
5510 * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear
5511 under scroll bar with width FRAME_SCROLL_BAR_COLS.
5512
55131999-08-18 Dave Love <fx@gnu.org>
5514
5515 * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use
5516 stdlib.h.
5517
5518 * doprnt.c: Use stdlib.h, unistd.h.
5519
5520 * config.in: Add HAVE_TERMCAP_H.
5521
5522 * cm.c: Use termcap.h.
5523
55241999-08-18 Gerd Moellmann <gerd@gnu.org>
5525
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
5533 here.
5534
55351999-08-18 Gerd Moellmann <gerd@gnu.org>
5536
5537 * dispnew.c (update_frame_line): Fix previous change. If writing
5538 whole line clear to end of frame.
5539
55401999-08-17 Gerd Moellmann <gerd@gnu.org>
5541
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.
5549
5550 * dispnew.c (update_frame_line): If writing whole line,
5551 don't write trailing spaces unless we must.
5552
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
5558 start.
5559
5560 * eval.c (Fsignal): Don't reset redisplaying_p here.
5561
5562 * xterm.c (expose_area): If row extends face to end of line,
5563 write the whole line.
5564
55651999-08-16 Gerd Moellmann <gerd@gnu.org>
5566
5567 * dispextern.h (struct it): Remove member
5568 show_trailing_whitespace_p.
5569
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.
5575
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
5586 in front of point.
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.
5590
55911999-08-16 Gerd Moellmann <gerd@gnu.org>
5592
5593 * window.c (Fpos_visible_in_window_p): Rewritten.
5594
5595 * xfaces.c (add_to_log): Renamed from display_message.
5596 Don't display messages in echo area.
5597
5598 * xterm.c (x_draw_glyph_string_box): Use the background width
5599 of the glyph string for the width of the box.
5600
56011999-08-16 Stefan Monnier <monnier@cs.yale.edu>
5602
5603 * syntax.c (Fforward_comment): Set comstyle for Scomment_fence.
5604
56051999-08-16 Geoff Voelker <voelker@cs.washington.edu>
5606
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.
5610
56111999-08-15 Gerd Moellmann <gerd@gnu.org>
5612
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.
5623
5624 * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
5625 Simplify clearing "under" scroll bar.
5626
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
5631 is fixed-size.
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
5639 window.
5640 (change_window_height): Partly rewritten to handle fixed-size
5641 windows.
5642
56431999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com>
5644
5645 * process.c (Fopen_network_stream): Fix previous change.
5646
56471999-08-13 Karl Heuer <kwzh@gnu.org>
5648
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.
5652
56531999-08-13 Richard M. Stallman <rms@gnu.org>
5654
5655 * eval.c (run_hook_list_with_args): Gcpro `globals'.
5656 (run_hook_with_args): Likewise.
5657
5658 * window.h (struct window): New field too_small_ok.
5659
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.
5664
56651999-08-13 Gerd Moellmann <gerd@gnu.org>
5666
5667 * window.c (MINSIZE): Removed.
5668 (window_min_size): New.
5669 (set_window_height): Use window_min_size.
5670 (change_window_height): Ditto.
5671
56721999-08-12 Gerd Moellmann <gerd@gnu.org>
5673
5674 * indent.c (vmotion): Don't add in mini-buffer prompt width
5675 if prompts are inserted into mini-buffer.
5676
56771999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com>
5678
5679 * config.in: Add HAVE_GETADDRINFO.
5680 * process.c (Fopen_network_stream): Use getaddrinfo.
5681
56821999-08-11 Gerd Moellmann <gerd@gnu.org>
5683
5684 * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of
5685 glyphs to -1.
5686
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.
5690
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.
5695
56961999-08-11 Kenichi Handa <handa@etl.go.jp>
5697
5698 * lisp.h (CHAR_MODIFIER_MASK): New macro.
5699
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.
5704
5705 * charset.c (non_ascii_char_to_string): Handle modifier bits as
5706 the same as Lisp reader.
5707
57081999-08-10 Richard M. Stallman <rms@gnu.org>
5709
5710 * charset.h (BCOPY_SHORT): Fix typo `unsigined'.
5711
57121999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br>
5713
5714 * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define.
5715
57161999-08-10 Eli Zaretskii <eliz@gnu.org>
5717
5718 * msdos.c (IT_set_face): Abort if the default face is not realized
5719 and cached.
5720 (IT_write_glyphs): Reset the screen face to the default face
5721 before writing glyphs.
5722
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
5727 frame.
5728
5729 * dosfns.c (msdos_stdcolor_name): Remove const from return value.
5730 * dosfns.h (msdos_stdcolor_name): Ditto for the prototype.
5731
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
5736 each frame.
5737
57381999-08-07 Richard Stallman <rms@gnu.org>
5739
5740 * buffer.c (Fprevious_overlay_change): Just return
5741 the answer obtained from overlays_at.
5742
5743 * xfns.c (xpm_load) [!XpmAllocCloseColors]:
5744 Use XpmCloseness and attrs.closeness instead.
5745
57461999-08-06 Richard Stallman <rms@gnu.org>
5747
5748 * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT.
5749
57501999-08-06 Geoff Voelker <voelker@cs.washington.edu>
5751
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.
5757
5758 * w32.c (stat): Check for directory ending in separator when
5759 doing readdir fast path.
5760
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.
5764
57651999-08-06 Gerd Moellmann <gerd@gnu.org>
5766
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.
5770
57711999-08-06 Gerd Moellmann <gerd@gnu.org>
5772
5773 * xdisp.c (reseat_at_next_visible_line_start): New parameter
5774 on_newline_p.
5775 (set_iterator_to_next): After delivering last char
5776 from display vector, reseat on next visible line start if
5777 dpvec_char_len < 0.
5778 (next_element_from_buffer): Set dpvec_char_len to -1 for
5779 selective display.
5780
57811999-08-06 Gerd Moellmann <gerd@gnu.org>
5782
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.
5786
5787 * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p.
5788 (direct_output_for_insert): Ditto.
5789
5790 * dispextern.h (struct glyph_row): Add overlapping_p.
5791
5792 * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps.
5793
5794 * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New.
5795 (MATRIX_ROW_OVERLAPS_SUCC_P): New.
5796
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
5805 unchanged.
5806 (row_equal_p): Take rows overlapped_p flag into account.
5807
5808 * dispextern.h (struct glyph_row): Add flag overlapped_p.
5809
5810 * xterm.c (x_fix_overlapping_area): New.
5811 (x_redisplay_interface): Add x_fix_overlapping_area.
5812
5813 * dispnew.c (adjust_glyphs): Block input while adjusting matrices.
5814
58151999-08-06 Gerd Moellmann <gerd@gnu.org>
5816
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.
5827
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.
5833
5834 * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New.
5835
5836 * dispextern.h (struct redisplay_interface): Add
5837 fix_overlapping_area.
5838
5839 * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p.
5840
5841 * dispextern.h (struct glyph): Add overlaps_vertically_p.
5842
5843 * xterm.c (x_produce_image_glyph): Compute iterator's physical
5844 ascent and descent.
5845 (x_produce_stretch_glyph): Ditto.
5846 (x_produce_glyphs): Ditto.
5847
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.
5854
5855 * term.c (produce_glyphs): Set iterator's physical height
5856 information.
5857
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.
5862
5863 * dispextern.h (struct glyph_row): Add phys_ascent and
5864 phys_height.
5865 (struct it): Add phys_ascent, phys_descent, max_phys_ascent,
5866 max_phys_descent.
5867
58681999-08-04 Stefan Monnier <monnier@cs.yale.edu>
5869
5870 * buffer.c (switch_to_buffer_1): New subroutine, taken out from
5871 Fswitch_to_buffer.
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.
5875
5876 * window.c (display-buffer): Don't get confused
5877 by "same-window" buffers in a dedicated frame.
5878
58791999-08-04 Andreas Schwab <schwab@gnu.org>
5880
5881 * insdel.c (insert_from_string_1): Check gap size against number
5882 of outgoing bytes, not incoming bytes.
5883
58841999-08-03 Tom Breton <tob@world.std.com>
5885
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.
5892
58931999-08-02 Eli Zaretskii <eliz@gnu.org>
5894
5895 * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h.
5896
5897 * frame.c (make_terminal_frame): Don't call init_frame_faces if
5898 noninteractive, for termcap frames as well.
5899
5900 * sysdep.c (init_sys_modes): Call init_frame_faces for termcap
5901 frames.
5902
59031999-08-01 Richard Stallman <rms@gnu.org>
5904
5905 * fns.c (internal_equal): Correct overlay comparison.
5906
83c8f461 59071999-07-31 Richard M. Stallman <rms@gnu.org>
26901792
DL
5908
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.
5913
5914 * frame.c (Fset_frame_height): Call do_pending_window_change.
5915 (Fset_frame_width, Fset_frame_size): Likewise.
5916
5917 * xterm.c (x_set_window_size): When calling change_frame_size,
5918 specify 1 for DELAY.
5919
5920 * widget.c (EmacsFrameSetCharSize): Don't call
5921 do_pending_window_change here.
5922
59231999-07-30 Dave Love <fx@gnu.org>
5924
5925 * config.in: Add HAVE_STDLIB_H.
5926
59271999-07-30 Richard M. Stallman <rms@gnu.org>
5928
5929 * process.c (create_process): Detect failure of `pipe'.
5930
59311999-07-30 Keisuke Nishida <kei@psn.net>
5932
5933 * alloc.c (allocate_vectorlike): Add missing increment.
5934
5935 * data.c (Fdefalias): Call Ffset instead of duplicating code.
5936
5937 * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT
5938 before calling indirect_function.
5939
59401999-07-30 Eli Zaretskii <eliz@gnu.org>
5941
5942 * dispextern.h (load_color, lookup_derived_face): Declare
5943 prototypes.
5944
5945 * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces,
5946 it will be done later.
5947
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.
5953
5954 * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an
5955 MSDOS frame.
5956
5957 * window.c (Fset_window_configuration) [MSDOS]: Don't call
5958 x_set_toolbar_lines.
5959
5960 * xfaces.c (load_color): Remove static from definition and remove
5961 prototype.
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
5967 from the frame.
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.
5973
5974 * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New
5975 functions.
5976
5977 * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare.
5978
5979 * msdos.h: Remove redundant declarations (most of them are now in
5980 dispextern.h).
5981
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
5989 video RAM.
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.
5999
60001999-07-29 Gerd Moellmann <gerd@gnu.org>
6001
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.
6005
60061999-07-29 Eli Zaretskii <eliz@gnu.org>
6007
6008 * msdos.c (getdefdir): Don't return failure indication when
6009 _fixpath sets errno to ENOSYS.
6010
60111999-07-28 Gerd Moellmann <gerd@gnu.org>
6012
6013 * xdisp.c (string_char_and_length): New. Use it everywhere
6014 instead of STRING_CHAR_AND_LENGTH in xdisp.c.
6015
60161999-07-28 Kenichi Handa <handa@etl.go.jp>
6017
6018 * fns.c (count_combining): New function.
6019 (struct textprop_rec): New structure.
6020 (concat): Copy text properties correctly when byte combining
6021 occurs.
6022
60231999-07-28 Gerd Moellmann <gerd@gnu.org>
6024
6025 * xterm.c (x_setup_relief_color): Don't try smart color allocation
6026 if display is mono.
6027 (x_draw_row_bitmaps): If face has stipple, don't switch
6028 to foreground color for clearing areas, and set the fill style.
6029
6030 * xfaces.c (load_face_colors): Load background color if setting
6031 stipple, too.
6032 (prepare_face_for_display): Use FillOpaqueStippled instead of
6033 FillStippled.
6034
60351999-07-26 Ken'ichi Handa <handa@gnu.org>
6036
6037 * xterm.c (x_find_ccl_program): Add casting.
6038
6039 * w32fns.c (w32_find_ccl_program): Add casting.
6040
60411999-07-27 Gerd Moellmann <gerd@gnu.org>
6042
6043 * dispextern.h (struct glyph_row): Flag internal_border_p removed.
6044
6045 * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource
6046 because this will try to access a nonexisting widget.
6047
60481999-07-26 Markus Rost <rost@gnu.org>
6049
6050 * fns.c (Fgethash): Fix order of variables (patch by gerd).
6051 (Fputhash): Ditto.
6052 (Fremhash): Ditto.
6053
60541999-07-26 Gerd Moellmann <gerd@gnu.org>
6055
6056 * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth
6057 value to frame width and height.
6058
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
6065 lines.
6066
60671999-07-26 Richard M. Stallman <rms@gnu.org>
6068
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.
6073
6074 * indent.c (Fmove_to_column): Extend end of line only if FORCE is t.
6075
60761999-07-26 Karl Heuer <kwzh@gnu.org>
6077
6078 * fns.c (Fy_or_n_p): Doc fix.
6079
60801999-07-26 Kenichi Handa <handa@etl.go.jp>
6081
6082 * ccl.h (setup_ccl_program): The type is changed to `int'.
6083
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
6086 Vccl_program_table.
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
6095 setup_ccl_program.
6096 (Fccl_execute_on_string): Likewise.
6097 (Fregister_ccl_program): Adjusted for the change of
6098 Vccl_program_table.
6099
6100 * coding.c (setup_coding_system): Get compiled CCL code by just
6101 calling setup_ccl_program.
6102
6103 * xterm.c (x_find_ccl_program): Get compiled CCL code by just
6104 calling setup_ccl_program.
6105
6106 * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just
6107 calling setup_ccl_program.
6108
61091999-07-23 Gerd Moellmann <gerd@gnu.org>
6110
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
6113 account.
6114
6115 * xdisp.c (get_next_display_element): Display DEL as `^?'.
6116
61171999-07-23 Richard M. Stallman <rms@gnu.org>
6118
6119 * window.c (Fsplit_window): For default size, round up for left window.
6120
61211999-07-21 Joe Ramey <ramey@ti.com>
6122
6123 * filelock.c (lock_if_free): Return -1 if check_lock_owner
6124 has returned -1 (lockfile exists but is not a symlink?).
6125
61261999-07-20 Gerd Moellmann <gerd@gnu.org>
6127
6128 * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to
6129 because of a change in cursor_gc made in 20.4.
6130
61311999-07-19 Gerd Moellmann <gerd@gnu.org>
6132
6133 * xterm.c (x_calc_absolute_position): Subtract menu bar height
6134 for YNegative, if using X toolkit.
6135
6136 * xfns.c (x_real_positions): Don't subtract window borders
6137 from positions returned.
6138
61391999-07-17 Gerd Moellmann <gerd@gnu.org>
6140
6141 * xrdb.c (x_load_resources): Set double-click time defaults
6142 for Motif list boxes from double-click-time.
6143
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
6148 `hash-table-test'.
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.
6152
6153 * window.c (set_window_buffer): Set window margins for tty
6154 frames, too.
6155 (Fset_window_margins): Ditto.
6156
6157 * term.c (append_glyph): Use glyph area of iterator instead of
6158 always TEXT_AREA.
6159
6160 * dispnew.c (update_frame_1): Add left margin width to cursor
6161 hpos.
6162 (direct_output_for_insert): Ditto.
6163 (direct_output_forward_char): Ditto.
6164
6165 * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p.
6166
6167 * dispextern.h (struct glyph_matrix): Add top_line_p.
6168
61691999-07-16 Gerd Moellmann <gerd@gnu.org>
6170
6171 * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P
6172 instead.
6173
6174 * fns.c (cmpfn_eq): Add hash code parameters.
6175 (cmpfn_eql): Ditto.
6176 (cmpfn_equal): Ditto, and compare hash codes before calling Fequal.
6177 (cmpfn_user_defined): Likewise.
6178
61791999-07-15 Gerd Moellmann <gerd@gnu.org>
6180
6181 * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8.
6182
6183 * fns.c (maybe_resize_hash_table): Correct computation of
6184 index vector size.
6185 (make_hash_table): Ditto.
6186 (Fmakehash): New.
6187
6188 * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames.
6189
6190 * alloc.c (gc_sweep): Call sweep_weak_hash_tables.
6191 (survives_gc_p): Make it externally visible.
6192 (mark_object): Ditto.
6193
6194 * fns.c (remove_hash_entry): Removed.
6195 (sweep_weak_hash_tables): New.
6196
6197 * print.c (print): Print more information about hash tables.
6198
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.
6203
62041999-07-14 Gerd Moellmann <gerd@gnu.org>
6205
6206 * lisp.h (P_): Moved to top of file.
6207
6208 * fns.c (make_hash_table): Set new members.
6209
6210 * alloc.c (mark_object): Mark hash table's user_hash_function.
6211 Mark index vector for weak hash tables.
6212
6213 * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function,
6214 user_hash_function, cmpfn, and hashfn.
6215
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.
6220
62211999-07-13 Gerd Moellmann <gerd@gnu.org>
6222
6223 * alloc.c (survives_gc_p): New.
6224
6225 * print.c (print): Add hash table handling.
6226
6227 * alloc.c (mark_object): Add code to mark hash tables.
6228
6229 * lisp.h (GC_HASH_TABLE_P): New.
6230
6231 * emacs.c (main): Call init_fns.
6232
6233 * fns.c (init_fns): New.
6234
6235 * fns.c: Add hash table implementation.
6236
6237 * lisp.h (PVEC_HASH_TABLE): New.
6238 (struct Lisp_Hash_Table): New.
6239 (XHASH_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.
6246
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.
6251
62521999-07-10 Gerd Moellmann <gerd@gnu.org>
6253
6254 * keyboard.c (read_char): Use message3_nolog to show help-echo.
6255
6256 * dispnew.c (blank_row): Add y-position as parameter. Compute
6257 visible height.
6258
6259 * xdisp.c (next_element_from_string): Give padding spaces
6260 a position of -1.
6261
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.
6265
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.
6268
62691999-07-09 Gerd Moellmann <gerd@gnu.org>
6270
6271 * dispnew.c (buffer_posn_from_coords): Take left marginal area
6272 into account.
6273
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'
6277 properties.
6278 (handle_single_display_prop): Handle some display property
6279 forms for terminal frames.
6280 (Qimage): Moved here from xfns.c.
6281
6282 * dispextern.h (struct it): New field string_from_display_prop_p.
6283
6284 * xterm.c (x_clip_to_row): Don't let clip_rect include top
6285 line.
6286
62871999-07-08 Gerd Moellmann <gerd@gnu.org>
6288
6289 * xdisp.c (handle_single_display_prop): Handle `:when FORM'.
6290
6291 * window.c (set_window_buffer): Set window's vscroll to zero.
6292
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
6299 top-line.
6300
6301 * dispextern.h (struct redisplay_interface): Add parameter
6302 cursor_on_p to update_window_end_hook.
6303
6304 * xterm.c (x_update_window_end): Add parameter cursor_on_p.
6305
63061999-07-07 Gerd Moellmann <gerd@gnu.org>
6307
6308 * xdisp.c (redisplay_internal): Ensure that redisplayinp_p
6309 doesn't become negative when decrementing it.
6310
6311 * eval.c (Fsignal): Reset redisplaying_p to zero.
6312
6313 * xdisp.c (try_window_reusing_current_matrix): Call hooks
6314 for window update.
6315 (try_window_id): Ditto.
6316
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.
6322
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.
6328
6329 * dispextern.h (struct it): Add top_line_p.
6330
6331 * dispnew.c (shift_glyph_matrix): Move some computations out
6332 of the loop.
6333
6334 * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and
6335 XFLOATINT.
6336
63371999-07-06 Gerd Moellmann <gerd@gnu.org>
6338
6339 * dispnew.c (update_frame_1): When setting cursor in echo area,
6340 skip only over padding spaces at the end.
6341
6342 * xfaces.c (realize_tty_face): Set face's font_name field to
6343 "tty".
6344
6345 * term.c (update_end): Turn cursor on only if selected window's
6346 cursor_off_p flag is not set.
6347
63481999-07-05 Gerd Moellmann <gerd@gnu.org>
6349
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).
6359
6360 * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers.
6361
6362 * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events
6363 in scroll bars.
6364 (x_handle_toolbar_click): Set modifier bits.
6365
63661999-07-04 Gerd Moellmann <gerd@gnu.org>
6367
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
6373 to kbd_fetch_ptr.
6374
63751999-07-03 Gerd Moellmann <gerd@gnu.org>
6376
6377 * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged
6378 only if buffer is modified. Return quickly if changes are
6379 above window start.
6380
63811999-07-02 Gerd Moellmann <gerd@gnu.org>
6382
6383 * dispextern.h (HSCROLL_WINDOWS): Removed.
6384
6385 * xdisp.c (mark_window_display_accurate): Don't set
6386 w->region_showing.
6387 (redisplay_internal): Don't call redraw_garbaged_frames.
6388
63891999-07-01 Gerd Moellmann <gerd@gnu.org>
6390
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.
6400
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
6404 in buffers, only.
6405
6406 * window.c (Fcoordinates_in_window_p): Add top-line to doc
6407 string.
6408
64091999-06-30 Gerd Moellmann <gerd@gnu.org>
6410
6411 * dispnew.c (update_window): Check that updated row is visible.
6412
6413 * xterm.c (x_draw_row_bitmaps): Check for invisible rows at
6414 top of window differently.
6415
6416 * xdisp.c (try_window_reusing_current_matrix): Don't do it
6417 if region is showing.
6418
6419 * dispnew.c (adjust_glyph_matrix): Check w->vscroll when
6420 avoiding matrix reallocation. Set window_vscroll in matrix.
6421
6422 * dispextern.h (struct glyph_matrix): Add member window_vscroll.
6423
26901792
DL
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.
6428
6429 * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method'
6430 an array instead of a pointer.
6431
26901792
DL
6432 * xfns.c (Fx_show_tip): Undo previous change.
6433
6434 * xterm.c (x_append_glyph): Clear glyph->u.val.
6435
6436 * dispextern.h (struct glyph): Increase size of face_id bit-field
6437 for CHAR_GLYPH to 12.
6438
64391999-06-29 Gerd Moellmann <gerd@gnu.org>
6440
6441 * xfaces.c (x_charset_registry): Make it externally visible.
6442
64431999-06-28 Gerd Moellmann <gerd@gnu.org>
6444
6445 * dispnew.c (update_window): Use mode_line_p flag of rows
6446 instead of WINDOW_WANTS_MODELINE_P.
6447
6448 * xterm.c (clear_mouse_face): Make externally visible.
6449
6450 * xfns.c (Fx_show_tip): Clear mouse face before showing tip.
6451
6452 * xterm.c (expose_line): Handle exposure of top-lines.
6453
6454 * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight
6455 if mouse_face_mouse_frame is null.
6456
6457 * xdisp.c (redisplay_window): If window is echo_area_window,
6458 and update_mode_line is set, update menubar and toolbar.
6459
6460 * dispnew.c (space_glyph): Set its charpos to -1.
6461 (update_frame_1): Ignore trailing padding spaces.
6462
6463 * xdisp.c (next_element_from_c_string): Set position of padding
6464 glyphs to -1.
6465
64661999-06-27 Gerd Moellmann <gerd@gnu.org>
6467
6468 * xfns.c (x_laplace_read_row): Use XQueryColors instead of
6469 XQueryColor.
6470
6471 * xdisp.c (display_menu_bar): Remove unwarranted assertion.
6472 (set_cursor_from_row): Skip over glyphs having a null object at
6473 the start of rows.
6474 (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation
6475 glyphs.
6476 (handle_invisible_prop): Compute next change only when needed.
6477 (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode
6478 line.
6479
64801999-06-26 Gerd Moellmann <gerd@gnu.org>
6481
6482 * xrdb.c (x_load_resources): Don't set resource for double-click
6483 time.
6484
6485 * xdisp.c (try_window_id): Return quickly if all changes are
6486 below the window's current matrix end.
6487
6488 * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window
6489 parameter.
6490
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.
6495
6496 * xterm.c (expose_window): Use window_text_bottom_y.
6497 (fast_find_position): Ditto.
6498
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.
6503
6504 * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one
6505 more row.
6506 (check_matrix_invariants): Use window_text_bottom_y.
6507 (update_window): Ditto.
6508 (scrolling_window): Ditto.
6509
6510 * xdisp.c (window_text_bottom_y): New.
6511
65121999-06-25 Gerd Moellmann <gerd@gnu.org>
6513
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.
6519
65201999-06-24 Gerd Moellmann <gerd@gnu.org>
6521
6522 * keyboard.c (make_lispy_event): Handle mouse on top lines.
6523 * keyboard.c (make_lispy_movement): Ditto.
6524
6525 * window.c (coordinates_in_window): Return 4 if on top line.
6526 (Fcoordinates_in_window_p): Return `top-line' if on top line.
6527
6528 * xdisp.c (window_box_height): Subtract top line height.
6529 (window_box): Add top line height to top y position if top line
6530 exists.
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
6537 scrolling.
6538 (compute_window_start_on_continuation_line): Take top line into
6539 account.
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.
6547
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
6555 all rows are equal.
6556 (mode_line_string): Add parameter mode_line_p. Handle strings
6557 in top lines.
6558
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.
6572
6573 * xterm.c (x_after_update_window_line): Don't draw bitmaps for top
6574 lines.
6575 (x_draw_row_bitmaps): Take top line into account when clearing
6576 bitmap area.
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
6582 top lines.
6583 (note_mouse_highlight): Call note_mode_line_highlight for top lines.
6584 (x_erase_phys_cursor): Take top line into account.
6585
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.
6591
6592 * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New.
6593 (MATRIX_TOP_LINE_HEIGHT): New.
6594
6595 * xterm.c (x_frame_mode_line_height): Add parameter face_id.
6596
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.
6603
66041999-06-23 Gerd Moellmann <gerd@gnu.org>
6605
6606 * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New.
6607 (struct glyph_row): Add mode_line_p.
6608
6609 * xfaces.c (realize_basic_faces): Realize face `top-line'.
6610 (Qtop_line): New.
6611 (syms_of_xfaces): Initialize Qtop_line.
6612
6613 * dispextern.h (TOP_LINE_FACE_ID): New.
6614
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.
6620
6621 * buffer.h: Add top_line_format.
6622
6623 * xdisp.c (overlay_arrow_changed_p): Removed because not used.
6624
66251999-06-17 Dave Love <fx@gnu.org>
6626
6627 * xfns.c: Move the PNG section before the JPEG one to avoid
6628 problems surrounding setjmp.h/png.h on GNU/Linux.
6629
66301999-06-17 Gerd Moellmann <gerd@gnu.org>
6631
6632 * xfns.c (x_kill_gs_process): Don't free colors.
6633
66341999-06-17 Dave Love <fx@gnu.org>
6635
6636 * s/gnu-linux.h: Zap spurious ~.
6637
66381999-06-16 Gerd Moellmann <gerd@gnu.org>
6639
6640 * xfns.c (gif_load): Improve multi-image support.
6641
66421999-06-15 Gerd Moellmann <gerd@gnu.org>
6643
6644 * xfns.c (gif_load): Support multi-image files.
6645
6646 * Makefile.in (LIBGIF): Use libungif.
6647
6648 * configure.in (HAVE_GIF): Use libungif instead of libgif
6649 because the former doesn't contain patented compression code.
6650
6651 * xdisp.c (compute_window_start_on_continuation_line): Don't
6652 do it if line start is too far away from window start.
6653
66541999-06-14 Gerd Moellmann <gerd@gnu.org>
6655
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.
6661
6662 * buffer.h (scroll_up_aggressively): New.
6663 (scroll_down_aggressively): New.
6664
6665 * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with
6666 a static PNG library.
6667
6668 * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib
6669 in case it's a static library.
6670
6671 * Makefile.in (ctagsfiles): Split so that files starting
6672 with an `x' are found before files starting with `w32'.
6673 (ctagsfiles1): New.
6674 (ctagsfiles2): New.
6675 (TAGS): Use ctagsfiles[12] instead of ctagsfiles.
6676
6677 * xdisp.c (compute_window_start_on_continuation_line): New.
6678 (redisplay_window): Use it.
6679 (INFINITY): New.
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.
6684
66851999-06-06 Gerd Moellmann <gerd@gnu.org>
6686
6687 * xfns.c (x_report_frame_params): Don't report `outer-window-id'
6688 if widget not present.
6689
6690 * xdisp.c (prepare_menu_bars): Ignore tooltip frame.
6691
66921999-06-04 Gerd Moellmann <gerd@gnu.org>
6693
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.
6698
26901792
DL
6699 * xterm.c (x_produce_glyphs): Set member char_to_display.
6700 (x_append_glyph): Store char_to_display in glyphs.
6701
6702 * dispextern.h (struct it): Add char_to_display.
6703
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.
6708
6709 * puresize.h (BASE_PURESIZE): Increased.
6710
67111999-06-01 Gerd Moellmann <gerd@gnu.org>
6712
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.
6718
6719 * xfaces.c (face_numeric_value): Return -1 if symbol is not
6720 in table.
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
6725 stipple attribute.
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
6729 specified.
6730
67311999-05-31 Gerd Moellmann <gerd@gnu.org>
6732
6733 * xfaces.c (SCALABLE_FONTS): Define this to enable scalable
6734 font support.
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.
6749
67501999-05-26 Gerd Moellmann <gerd@gnu.org>
6751
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.
6755
6756 * configure.in (--with-png, HAVE_PNG): New.
6757
6758 * config.in (HAVE_PNG): New.
6759
6760 * Makefile.in: Add PNG library.
6761
6762 * xfns.c: Add PNG support.
6763
67641999-05-25 Gerd Moellmann <gerd@gnu.org>
6765
6766 * xdisp.c (init_xdisp): Initialize echo_area_message and
6767 previous_echo_area_message to nil.
6768
6769 * keyboard.c (read_char): Rename local variable echo_area_message
6770 because it shadows the global one.
6771
67721999-05-05 Gerd Moellmann <gerd@gnu.org>
6773
6774 * xterm.c (note_mode_line_highlight): Restructured.
6775
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.
6780
67811999-05-02 Dave Love <fx@gnu.org>
6782
6783 * xterm.c (note_mouse_highlight): Separate help-echo processing
6784 from check on mouse-face so that it works generally.
6785
67861999-04-21 Gerd Moellmann <gerd@gnu.org>
6787
6788 * sound.c (Fplay_sound): Run hook play-sound-hook.
6789 (Qplay_sound_hook): New.
6790
67911999-04-20 Gerd Moellmann <gerd@gnu.org>
6792
6793 * xdisp.c (update_echo_area): Handle echo_area_message.
6794
67951999-04-19 Gerd Moellmann <gerd@gnu.org>
6796
6797 * editfns.c (Fmessage): Use message3.
6798
6799 * print.c (printchar): Set echo_area_message to nil.
6800 (strout): Ditto.
6801
6802 * minibuf.c (read_minibuf): Reset echo message strings to nil.
6803 (Fminibuffer_completion_help): Ditto.
6804
6805 * keyboard.c (cmd_error_internal): Set echo_areA_message.
6806 (command_loop_1): Test echo_areA_message.
6807 (read_char): Ditto.
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.
6811
6812 * fileio.c (Fdo_auto_save): Handle the case that echo_area_message
6813 is set.
6814
6815 * editfns.c (Fcurrent_message): If echo_area_message is set,
6816 return a substring of that string.
6817
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.
6822
6823 * alloc.c (Fgarbage_collect): Use message3_nolog to display
6824 old Lisp message string.
6825
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.
6839 (message3): New.
6840
6841 * editfns.c (Fformat): Add text properties to the result string
6842 from properties of the format string and properties of string
6843 arguments.
6844
6845 * textprop.c (text_property_list): New.
6846 (add_text_properties_from_list): New.
6847 (extend_property_ranges): New.
6848
68491999-03-29 Gerd Moellmann <gerd@gnu.org>
6850
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
6854 removed ones.
6855
68561999-03-12 Gerd Moellmann <gerd@gnu.org>
6857
6858 * xfaces.c (realize_tty_face): Don't set alt_char_p of face.
6859 Correct wrong test for slant.
6860
68611999-03-10 Gerd Moellmann <gerd@gnu.org>
6862
6863 * xfaces.c: Use `unspecified' for unspecified face attributes,
6864 use t and nil for on/off.
6865
68661999-03-06 Gerd Moellmann <gerd@gnu.org>
6867
6868 * buffer.c (syms_of_buffer): Extend doc string of
6869 mode-line-format.
6870
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.
6875
6876 * dispnew.c (shift_glyph_matrix): Add `window' parameter.
6877 Recompute visible height of rows.
6878
6879 * xterm.c (note_mouse_highlight): Reorder code for help-echo.
6880 Don't accept non-strings for help-echo from overlays.
6881
68821999-03-04 Dave Love <fx@gnu.org>
6883
6884 * xterm.c (note_mouse_highlight): Check overlays for help-text
6885 property.
6886 (XTread_socket): Fix compiler warning.
6887
68881999-03-05 Gerd Moellmann <gerd@gnu.org>
6889
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
6892 extend the vector.
6893
6894 * xdisp.c (compute_line_metrics): Compute glyph row's visible
6895 height.
6896
6897 * dispnew.c (row_equal_p): Compare visible row height, only.
6898 (update_text_area): Draw whole line if visible heights of
6899 rows differ.
6900 (update_window_line): Call after_update_window_line_hook
6901 if visible row height has changed.
6902
6903 * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed.
6904 (struct glyph_row): New member visible_height.
6905
6906 * xfaces.c (font_field_wildcard_p): New.
6907 (set_lface_from_font_name): Remove parameter force_p. Accept
6908 font names containing wildcards.
6909
69101999-03-04 Gerd Moellmann <gerd@gnu.org>
6911
6912 * xterm.c (x_after_update_window_line): Clear internal border
6913 when windows_or_buffers_changed.
6914
6915 * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's
6916 buffer has a nil mode_line_format.
6917
69181999-03-03 Gerd Moellmann <gerd@gnu.org>
6919
6920 * xterm.c (x_setup_relief_colors): Use either background color
6921 or specified color.
6922
6923 * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p.
6924
6925 * dispextern.h (struct face): Add use_box_color_for_shadows_p.
6926
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.
6930
6931 * xfns.c (QCrelief): New.
6932 (syms_of_xfns): Initialize it.
6933
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.
6939
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.
6944
69451999-03-02 Gerd Moellmann <gerd@gnu.org>
6946
6947 * dispextern.h (LFACE_RELIEF_INDEX): Removed.
6948
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.
6956
6957 * dispextern.h (struct face): Replace member `relief' by
6958 `box_line_width'. Add member `box'.
6959 (face_box_type): New.
6960
6961 * xterm.c (x_produce_glyphs): If face has overline, add overline
6962 thickness + 1 to ascent.
6963
69641999-03-01 Gerd Moellmann <gerd@gnu.org>
6965
6966 * xterm.c (x_draw_glyph_string): Draw underline, overline,
6967 strike-through, and boxes.
6968 (x_draw_glyph_string_underline): Removed.
6969
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,
6974 and box.
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.
6984
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
6988 box.
6989
69901999-02-17 Dave Love <fx@gnu.org>
6991
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
6994 files.
6995
69961999-02-16 Gerd Moellmann <gerd@gnu.org>
6997
6998 * keyboard.c (toolbar_items): Call access_keymap with third
6999 parameter 1, so that we don't get inherited toolbar item
7000 definitions.
7001
7002 * xdisp.c (redisplay_internal): In optimization 1, don't decrement
7003 the window end vpos when in empty first line of window.
7004
70051999-02-15 Gerd Moellmann <gerd@gnu.org>
7006
7007 * xfaces.c (set_font_frame_param): New.
7008 (Finternal_set_lisp_face_attribute): Call it.
7009
7010Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7011
7012 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
7013 Accept specifications of color for underline.
7014
70151999-02-13 Gerd Moellmann <gerd@gnu.org>
7016
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.
7020
70211999-02-12 Gerd Moellmann <gerd@gnu.org>
7022
7023 * dispnew.c (check_matrix_invariants): Put it in #if 0.
7024 (update_window): Put the call to check_matrix_invariants in #if 0.
7025
7026Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7027
7028 * dispextern.h: Remove all else block of UNDERLINE_COLOR.
7029 Remove definition of UNDERLINE_COLOR.
7030
7031Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7032
7033 * xfaces.c (free_face_colors): Free the color for underline.
7034
7035 * xterm.c (x_draw_glyph_string_underline): Set the color for underline
7036 to the GC.
7037
7038Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp>
7039
7040 * dispextern.h (UNDERLINE_COLOR): Defined.
7041 (struct face): Added two new members.
7042 underline_color, underline_defaulted_p.
7043
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.
7047
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.
7051
70521999-02-12 Gerd Moellmann <gerd@gnu.org>
7053
7054 * xfns.c (Fx_image_header): Removed.
7055
70561999-02-07 Gerd Moellmann <gerd@gnu.org>
7057
7058 * xterm.c: Don't include <bitmaps/gray>.
7059 (x_term_init): Use gray_bitmap_width and gray_bitmap_height.
7060
7061 * xfns.c (Fx_image_header): Add missing `\n\'.
7062 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New.
7063
70641999-02-01 Gerd Moellmann <gerd@gnu.org>
7065
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.
7069
7070 * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars.
7071 (x_set_scroll_bar_background): Ditto.
7072
7073 * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors.
7074
7075 * xfns.c (x_default_scroll_bar_color_parameter): New.
7076 (Fx_create_frame): Call it.
7077
70781999-01-31 Gerd Moellmann <gerd@gnu.org>
7079
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.
7084
7085 * xterm.h (struct x_output): Add scroll bar pixel colors.
7086
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.
7090
26901792
DL
70911999-01-12 Gerd Moellmann <gerd@gnu.org>
7092
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.
7100
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.
7105
7106 * xdisp.c (Qdisplay): Replaces Qglyph.
7107 (handle_display_prop): Formerly handle_glyph_prop.
7108
71091999-01-11 Gerd Moellmann <gerd@gnu.org>
7110
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
7114 display vector.
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.
7118
71191999-01-05 Gerd Moellmann <gerd@gnu.org>
7120
7121 * xfaces.c (init_frame_faces): Don't realize faces if frame's
7122 X window hasn't been created yet.
7123
71241998-12-06 Gerd Moellmann <gerd@gnu.org>
7125
7126 * sound.c: New.
7127
71281998-12-04 Gerd Moellmann <gerd@gnu.org>
7129
7130 * config.in (HAVE_SOUND): New.
7131
7132 * emacs.c (main): Call syms_of_sound and init_sound.
7133
7134 * Makefile.in (obj): Add sound.o.
7135
7136 * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h.
7137
7138 * config.in (HAVE_MACHINE_SOUNDCARD_H): New.
7139 (HAVE_SYS_SOUNDCARD_H): New.
7140
71411998-12-03 Gerd Moellmann <gerd@gnu.org>
7142
7143 * buffer.h (struct buffer): indicate_empty_lines renamed from
7144 indicate_zv_lines.
7145
7146 * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines.
7147 (default-indicate-zv-lines): Likewise.
7148
7149 * dispextern.h (struct glyph_row): Rename indicate_zv_line_p
7150 to indicate_empty_line_p.
7151
7152 * xdisp.c (reseat_at_next_visible_line_start): Reset method
7153 to next_element_from_buffer.
7154
7155 * frame.c (make_frame): Set n_current_toolbar_items to 0.
7156
7157 * xdisp.c (handle_face_prop): Allow symbols of the form `N+'
7158 and `N-'.
7159
7160 * xfns.c (xbm_scan): New.
7161 (xbm_read_hexint): Removed.
7162 (xbm_read_bitmap_file_data): Use xbm_scan.
7163
7164 * fileio.c (Finsert_file_contents): Prevent redisplay optimizations.
7165
71661998-12-02 Gerd Moellmann <gerd@gnu.org>
7167
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.
7172
7173 * xdisp.c (handle_raise_prop): Compute voffset from current font.
7174
7175 * xfaces.c (face_with_height): New.
7176
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.
7184
7185 * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX.
7186 (struct it): Use `font_height' instead of `smaller'.
7187
71881998-12-01 Gerd Moellmann <gerd@gnu.org>
7189
7190 * xdisp.c (reseat_1): New.
7191 (reseat): Call it.
7192 (move_it_vertically_backward): Ditto.
7193 (redisplay_window): Don't abort when cursor not found in recenter.
7194
71951998-11-30 Gerd Moellmann <gerd@gnu.org>
7196
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.
7202
72031998-11-28 Gerd Moellmann <gerd@gnu.org>
7204
7205 * config.in (PROTO): Removed.
7206
7207 * xterm.h: Change PROTO to P_.
7208
72091998-11-26 Gerd Moellmann <gerd@gnu.org>
7210
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.
7219
7220 * xdisp.c (display_line): Always compute row height from
7221 max_ascent and max_descent.
7222
7223 * dispextern.h (struct glyph): Add voffset.
7224 (struct it): Replace height by descent, max_height by max_descent.
7225
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.
7232
7233 * dispextern.h (struct it): Add voffset.
7234 * xdisp.c (push_it): Save voffset.
7235 (pop_it): Restore it.
7236
7237 * xdisp.c (it_props): Add entry for `raise'.
7238 (handle_raise_prop): New.
7239
7240 * dispextern.h (RAISE_PROP_IDX): New.
7241
7242 * xdisp.c (Qraise): New.
7243 (syms_of_xdisp): Define Qraised.
7244
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.
7249
7250 * dispextern.h: Make it compilable --with-x=no.
7251 * alloc.c: Ditto.
7252 * emacs.c: Ditto.
7253 * dispnew.c: Ditto.
7254 * keyboard.c: Ditto.
7255 * term.c: Ditto.
7256 * xdisp.c: Ditto.
7257 * xfaces.c: Ditto.
7258 * xfns.c: Ditto.
7259 * xmenu.c: Ditto.
7260
72611998-11-25 Gerd Moellmann <gerd@gnu.org>
7262
7263 * xterm.c (XTread_socket): Cancel help-echo when leaving frame.
7264
72651998-11-24 Gerd Moellmann <gerd@gnu.org>
7266
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.
7272
26901792
DL
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.
7275
72761998-11-23 Gerd Moellmann <gerd@gnu.org>
7277
7278 * xdisp.c (restore_overlay_strings): Removed.
7279 (restore_dpvec): Removed.
7280 (init_from_display_pos): Inline both functions above.
7281
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.
7290 (gs_format): Ditto.
7291
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.
7295
72961998-11-22 Gerd Moellmann <gerd@gnu.org>
7297
7298 * widget.c (EmacsFrameSetCharSize): Take widget's border width
7299 into account.
7300
73011998-11-21 Gerd Moellmann <gerd@gnu.org>
7302
7303 * xterm.c (expose_frame): Redraw menu bar window.
7304
7305 * xdisp.c (display_menu_bar): Record hpos instead of x-position
7306 in menu item.
7307
7308 * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead
7309 of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'.
7310
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.
7315
7316 * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face.
7317 (x_draw_bitmap): Ditto.
7318
7319 * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID.
7320 * xfaces.c (realize_basic_faces): Realize it.
7321
73221998-11-20 Gerd Moellmann <gerd@gnu.org>
7323
7324 * xmenu.c (xmenu_show): Add workaround for remaining button grab
7325 under LessTif Use the widget of the frame as parent for the
7326 menu, again.
7327
73281998-11-19 Gerd Moellmann <gerd@gnu.org>
7329
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.
7333
7334 * xterm.h (struct x_output): Add busy_window, remove cursor.
7335
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.
7339
73401998-11-17 Gerd Moellmann <gerd@gnu.org>
7341
7342 * xdisp.c (check_window_end): New, for debugging.
7343 (CHECK_WINDOW_END): New.
7344 (try_window_id): Use it.
7345
7346 * xterm.c (process_expose_from_menu): Return int.
7347
7348 * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording
7349 TOOLBAR_EVENT events in last_nonmenu_event.
7350
73511998-11-16 Gerd Moellmann <gerd@gnu.org>
7352
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.
7357
7358 * dispnew.c (adjust_glyph_matrix): Invalidate window end, if
7359 necessary.
7360
7361 * xfns.c (file_dialog_cb): New.
7362 (Fx_file_dialog): New.
7363 * fileio.c (Fread_file_name): Call it.
7364
7365 * xrdb.c (x_load_resources): Add default resoures for file
7366 selection dialog.
7367
73681998-11-14 Gerd Moellmann <gerd@gnu.org>
7369
7370 * xterm.c (note_mouse_highlight): Don't highlight when popup
7371 is active.
7372
26901792
DL
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.
7376
7377 * dispnew.c (direct_output_for_insert): Give up if current row
7378 contains trailing whitespace.
7379
73801998-11-13 Gerd Moellmann <gerd@gnu.org>
7381
7382 * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX.
7383
7384 * xdisp.c (handle_fontified_prop): New.
7385 (Vfontification_functions): New.
7386 (Qfontification_functions): New.
7387 (it_props): Add handle_fontified_prop.
7388
73891998-11-12 Gerd Moellmann <gerd@gnu.org>
7390
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.
7399
26901792
DL
7400 * xfaces.c (display_message): If waiting_for_input, don't display
7401 the message.
7402
7403 * window.c (scroll_command): If not acting on current_buffer,
7404 make redisplay consider all windows.
7405
7406 * xfns.c (Fx_hide_tip): Return t if tooltip was open.
7407
7408 * xdisp.c (handle_glyph_prop): Set it->object for images to
7409 the object having the glyph property.
7410
7411 * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely
7412 invisible.
7413
74141998-11-11 Gerd Moellmann <gerd@gnu.org>
7415
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
7423 full-width lines.
7424 (XTflash): Don't flash the toolbar window.
7425
7426 * xterm.c (XTread_socket): Workaround for LessTif popup menus
7427 in case of ButtonPress events.
7428
74291998-11-10 Gerd Moellmann <gerd@gnu.org>
7430
7431 * xrdb.c (x_load_resources): Add grey background colors as
7432 defaults for menus, scroll bars, and dialogs.
7433
7434 * insdel.c (prepare_to_modify_buffer): Move setting
7435 windows_or_buffers_changed from modify_region here.
7436
7437 * xfns.c (Fx_show_tip): Inhibit redisplay.
7438 (Fx_hide_tip): Ditto.
7439 (Fx_image_header): New.
7440
74411998-11-09 Gerd Moellmann <gerd@gnu.org>
7442
7443 * dispnew.c (clear_window_matrices): Set window_end_valid to nil
7444 when clearing current window matrices.
7445
74461998-11-08 Gerd Moellmann <gerd@gnu.org>
7447
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.
7451
74521998-11-07 Gerd Moellmann <gerd@gnu.org>
7453
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.
7457
26901792
DL
7458 * insdel.c (modify_region): Set windows_or_buffers_changed.
7459
7460 * buffer.c (set_buffer_internal): Don't set
7461 windows_or_buffers_changed.
7462
26901792
DL
7463 * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT.
7464
26901792
DL
7465 * xmenu.c (menubar_selection_callback): Add workaround for
7466 Lesstif not calling XmNpopdownCallback.
7467
7468 * xdisp.c (eval_mode_element): New.
7469 (eval_mode_handler): New.
7470 (display_mode_element): Use eval_mode_element.
7471
7472 * xdisp.c (display_mode_element): Allow `(:eval FORM)'.
7473 Remove code looking at text props of default value.
7474
7475 * xmenu.c (HAVE_BOXES): Define if using Lucid menus.
7476
26901792
DL
74771998-11-06 Gerd Moellmann <gerd@gnu.org>
7478
7479 * xmenu.c (single_submenu): Set button_type of menu to
7480 BUTTON_TYPE_NONE.
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.
7486
26901792
DL
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.
7492
7493 * xfns.c (clear_image_cache): Get the current time, before
7494 doing anything.
7495 (cache_image): Set prev pointer of next image.
7496 (clear_image_cache): Clear current matrices if any image was
7497 freed.
7498
7499 * xterm.c (XTread_socket): Set inhibit_busy_cursor.
7500
7501 * xfns.c (x_set_cursor): New.
7502 (Fx_display_busy_cursor): New.
7503 (Fx_undisplay_busy_cursor): New.
7504
7505 * xterm.h (struct x_output): Add busy_cursor.
7506
7507 * xfns.c (Vx_busy_pointer_shape): New.
7508 (x_set_mouse_color): Create busy cursor.
7509
7510 * process.c (wait_reading_process_input): Show and hide busy
7511 cursor.
7512
7513 * keyboard.c (command_loop_1): Display busy cursor.
7514
7515 * eval.c (Fsignal): Hide busy cursor.
7516
7517 * buffer.c (set_buffer_internal): Don't set
7518 windows_or_buffers_changed.
7519
7520 * xterm.c (redo_mouse_highlight): New.
7521
75221998-11-04 Gerd Moellmann <gerd@gnu.org>
7523
26901792
DL
7524 * xfns.c (x_create_x_image_and_pixmap): Add depth parameter.
7525 (x_build_heuritic_mask): New.
7526 (lookup_image): Call it.
7527
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,
7534 CirculateRequest.
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.
7538
7539 * keyboard.c (Vshow_help_function): New.
7540 (read_char): Use it.
7541
75421998-11-03 Gerd Moellmann <gerd@gnu.org>
7543
7544 * xfns.c (x_create_tip_frame): New.
7545 (Fx_show_tip): New.
7546 (Fx_hide_tip): New.
7547
7548 * xterm.c (x_destroy_window): Handle case that we don't have
7549 a widget.
7550
7551 * dispextern.h (struct glyph_row): Rename no_marginal_areas_p
7552 to full_width_p. Add internal_border_p.
7553
75541998-11-02 Gerd Moellmann <gerd@gnu.org>
7555
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.
7559
75601998-11-01 Gerd Moellmann <gerd@gnu.org>
7561
7562 * xterm.c (x_draw_image_relief): Handle toolbar_button_relief.
7563
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.
7569
7570 * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround
7571 for FreeBSD.
7572 (note_mode_line_highlight): New.
7573 (note_mouse_highlight): Call it.
7574
75751998-10-31 Gerd Moellmann <gerd@gnu.org>
7576
7577 * s/freebsd.h (NARROWPROTO): New.
7578
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.
7582
7583 * xrdb.c (x_load_resources): Add font defaults for menus and
7584 dialogs.
7585
75861998-10-30 Gerd Moellmann <gerd@gnu.org>
7587
7588 * xfns.c (Fx_create_frame): Try 12pt Courier font first.
7589
75901998-10-29 Gerd Moellmann <gerd@gnu.org>
7591
7592 * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be
7593 produced for characters with codes < 32 under certain
7594 circumstances.
7595
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
7599 displaying lines.
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.
7605
7606 * xterm.c (expose_window_tree): Include mode line height.
7607
7608 * xfns.c (Fx_create_frame): Add toolbar height to frame height.
7609
76101998-10-27 Gerd Moellmann <gerd@gnu.org>
7611
7612 * xterm.c (note_mouse_highlight): Change mouse pointer shape
7613 over mode line.
7614
76151998-10-26 Gerd Moellmann <gerd@gnu.org>
7616
7617 * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT.
7618
7619 * xdisp.c (redisplay_window): If mode line height has changed,
7620 arrange for a thorough immediate redisplay using the correct mode
7621 line height.
7622 (window_box_height): Use CURRENT_MODE_LINE_HEIGHT.
7623
7624 * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New.
7625 (CURRENT_MODE_LINE_HEIGHT): New.
7626 (DESIRED_MODE_LINE_HEIGHT): New.
7627
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
7631 strings.
7632
7633 * keyboard.h (POSN_STRING): New.
7634
76351998-10-25 Gerd Moellmann <gerd@gnu.org>
7636
7637 * dispnew.c (mode_line_string): Mew.
7638
7639 * xterm.c (xt_action_hook): New.
7640 (x_create_toolkit_scroll_bar): Add action hook.
7641 (xm_scroll_callback): Implement dragging.
7642
7643 * keyboard.c (Qend_scroll): New.
7644 (scroll_bar_parts): Add it.
7645
7646 * termhooks.h (scroll_bar_end_scroll): New.
7647
7648 * xterm.c (XTread_socket): Bug fix.
7649
76501998-10-24 Gerd Moellmann <gerd@gnu.org>
7651
7652 * xdisp.c (redisplay_window): Finish scroll bars after
7653 redisplaying toolbar.
7654
7655 * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom.
7656 (syms_of_keyboard): Add Qbottom.
7657
7658 * termhooks.h (scroll_bar_to_top): New.
7659 (scroll_bar_to_bottom): New.
7660
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.
7664 (window_box): New.
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.
7670
76711998-10-23 Gerd Moellmann <gerd@gnu.org>
7672
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"
7676 to true.
7677
7678 * window.c (get_phys_cursor_glyph): Return null if cursor vpos
7679 is out of range.
7680
7681 * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel.
7682 (x_term_init): Initialize it.
7683
7684 * xterm.h (struct x_display_info): Add scroll_bar_pixel.
7685
7686 * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's
7687 cursor.
7688
76891998-10-22 Gerd Moellmann <gerd@gnu.org>
7690
7691 * keyboard.c (make_lispy_event): Handle scroll_bar_click
7692 differently when using toolkit scroll bars.
7693
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.
7708
7709 * xterm.h (struct x_display_info): Add Xatom_Scrollbar.
7710
77111998-10-21 Gerd Moellmann <gerd@gnu.org>
7712
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
7717 Athena scroll bar.
7718
7719 * xterm.h (scroll_bar): Add x_widget_low and x_widget_high.
7720
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.
7727
7728 * Makefile.in (LIBW): Use Xaw3d if present.
7729
7730 * configure.in (USE_TOOLKIT_SCROLL_BARS): New.
7731 (HAVE_XAW3D): New.
7732
7733 * config.in (USE_TOOLKIT_SCROLL_BARS): New.
7734 (HAVE_XAW3D): New.
7735
7736 * xterm.c (XTset_vertical_scroll_bar): Correct position of
7737 right vertical scroll bar.
7738
77391998-10-20 Gerd Moellmann <gerd@gnu.org>
7740
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.
7750
7751 * xdisp.c (build_desired_toolbar_string): Add `:algorithm'
7752 attribute to the image if item is not enabled.
7753
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'.
7759
7760 * xfaces.c (clear_face_cache): Call clear_image_cache.
7761
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.
7766
7767 * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars.
7768 (display_toolbar_line): Remove parameter `margin'.
7769
77701998-10-19 Gerd Moellmann <gerd@gnu.org>
7771
7772 * xdisp.c (toolbar_lines_needed): New.
7773 (auto-resize-toolbars): New.
7774
7775 * xfns.c (cache_image): Correct call to xrealloc.
7776
7777 * dispnew.c (Fset_toolbar_height): Removed.
7778
7779 * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of
7780 FRAME_MENU_BAR_LINES.
7781
7782 * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN
7783 instead of FRAME_MENU_BAR_LINES.
7784 (check_frame_size): Ditto.
7785
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.
7791
7792 * frame.h (FRAME_TOOLBAR_LINES): New.
7793 (FRAME_TOP_MARGIN): New.
7794
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.
7798
7799 * frame.c (syms_of_frame_1): Add Qtoolbar_lines.
7800
7801 * xfns.c (Fx_create_frame): Add default parameter for toolbar.
7802
7803 * frame.h (struct frame): Rename top_margin to toolbar_lines.
7804
7805 * xfns.c (x_frame_parms): Add `toolbar-lines'.
7806 (x_set_toolbar_lines): New.
7807
7808 * keyboard.c (cmd_error_internal): Bug fix.
7809
7810 * xterm.c: Remove double include of syssignal.h.
7811
78121998-10-18 Gerd Moellmann <gerd@gnu.org>
7813
7814 * xterm.c (x_toolbar_item): New.
7815 (x_handle_toolbar_click): Use it.
7816 (note_toolbar_highlight): Use it.
7817
7818 * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties
7819 and toolbar_items_vectors.
7820
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
7826 account.
7827 (x_get_glyph_string_clip_rect): Handle pseudo-windows.
7828 (x_draw_glyph_string_background): Optimize case when face has
7829 relief.
7830 (x_setup_relief_color): Take frame instead of glyph string
7831 parameter.
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
7835 relief.
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.
7848
7849 * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT.
7850
7851 * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE,
7852 IMAGE_BOOL_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
7856 image cache.
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
7861 x_find_image_file.
7862 (xpm_load): Likewise.
7863 (pbm_load): Likewise.
7864 (jpeg_load): Likewise.
7865 (tiff_load): Likewise.
7866 (gif_load): Likewise.
7867
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.
7874 (PROP): 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.
7879
7880 * xfaces.c (Qtoolbar): New.
7881 (realize_basic_faces): Realize `toolbar' face.
7882 (face_at_string_position): Remove parameter modeline_p, add
7883 base_face_id.
7884
7885 * xfns.c (xbm_load_image_from_file): Don't use Xmu function
7886 to read data.
7887
78881998-10-17 Gerd Moellmann <gerd@gnu.org>
7889
7890 * xdisp.c (init_iterator): Replace parameter modeline_p with
7891 base_face_id.
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.
7902
7903 * dispnew.c (clear_current_matrices): Clear matrices of toolbar
7904 window.
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.
7911
7912 * dispextern.h (struct it): Remove member modeline_p, add
7913 base_face_id.
7914 (struct image): Add members relief and margin.
7915 (IMAGE_ASCENT): Include margin in height.
7916
79171998-10-14 Gerd Moellmann <gerd@gnu.org>
7918
7919 * xfns.c (Fclear_image_cache): New.
7920
7921 * xfaces.c (realize_basic_faces): Realize toolbar face.
7922 (face_at_string_position): Remove parameter modeline_p, add
7923 base_face_id.
7924
7925 * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID.
7926
79271998-10-13 Gerd Moellmann <gerd@gnu.org>
7928
7929 * keyboard.c (syms_of_keyboard): Intern `:help'.
7930
79311998-10-12 Gerd Moellmann <gerd@gnu.org>
7932
7933 * xterm.c (note_toolbar_highlight): New.
7934 (note_mouse_highlight): Call it.
7935
7936 * window.c (window_from_coordinates): Additional parameter toolbar_p.
7937 (coordinates_in_window): Handle toolbar window.
7938
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.
7944
7945 * dispextern.h (enum toolbar_item_idx): New.
7946 (enum toolbar_item_image): New.
7947
7948 * frame.h (struct frame): Add toolbar-related members.
7949
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.
7953
7954 * frame.c (make_frame): Initialize toolbar members.
7955
7956 * alloc.c (mark_object): Mark toolbar data of frames.
7957
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
7962 window_height.
7963
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.
7968
7969 * xdisp.c (display_menu_bar): Correct calls to init_iterator.
7970
79711998-10-11 Gerd Moellmann <gerd@gnu.org>
7972
7973 * frame.c (make_frame): Initialize toolbar_window.
7974
7975 * alloc.c (mark_object): Make the toolbar window.
7976
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.
7982
7983 * frame.h (struct frame): Add toolbar_window.
7984
7985 * xterm.c (x_draw_glyph_string_relief): Handle mouse-face
7986 with relief.
7987
79881998-10-10 Gerd Moellmann <gerd@gnu.org>
7989
7990 * dispnew.c (buffer_posn_from_coords): Don't screw up if
7991 window start is not in the range BEGV..ZV.
7992
79931998-10-09 Gerd Moellmann <gerd@gnu.org>
7994
7995 * xdisp.c (try_scrolling): Experimentally handle the case
7996 that scroll-preserve-screen-position is set to `always'.
7997
7998 * window.c (Vscroll_preserve_screen_position): Replacement for
7999 scroll_preserve_screen_position.
8000
80011998-10-08 Gerd Moellmann <gerd@gnu.org>
8002
8003 * dispnew.c: Don't initialize auto structs; the HP/UX compiler
8004 doesn't like it.
8005 * xdisp.c: Ditto.
8006
8007 * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y.
8008
80091998-10-06 Gerd Moellmann <gerd@gnu.org>
8010
8011 * minibuf.c (Fminibuffer_complete_word): Fix computation of
8012 i_byte when prompts are inserted into minibuffers.
8013
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.
8017
80181998-10-04 Gerd Moellmann <gerd@gnu.org>
8019
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.
8031
8032 * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap.
8033
80341998-09-28 Gerd Moellmann <gerd@gnu.org>
8035
8036 * window.c (window_scroll_pixel_based): Bug fix: vpos used
8037 instead of y-position for scroll-preserved-screen-position.
8038
80391998-09-07 Gerd Moellmann <gerd@gnu.org>
8040
8041 * dispnew.c (update_frame_line): If current row is not enabled,
8042 write the whole line.
8043
80441998-09-06 Gerd Moellmann <gerd@gnu.org>
8045
8046 * lisp.h (HAVE_FACES): Removed.
8047
8048 * dispextern.h (HAVE_FACES): Removed.
8049
8050 * config.in (HAVE_FACES): Removed.
8051
8052 * dispnew.c (HAVE_FACES): Removed.
8053
8054 * xdisp.c (HAVE_FACES): Removed.
8055
8056 * xfaces.c (HAVE_FACES): Removed.
8057
80581998-09-05 Gerd Moellmann <gerd@gnu.org>
8059
8060 * xdisp.c (init_iterator): If face_change_count is non-zero,
8061 free realized faces.
8062
8063 * xfaces.c (free_all_realized_faces): Make it externally visible.
8064 (Finternal_set_lisp_face_attribute): Increment
8065 windows_or_buffers_changed.
8066
8067 * dispnew.c (direct_output_for_insert): Give up if
8068 face_change_count is non-zero.
8069 (direct_output_forward_char): Ditto.
8070
8071 * xfaces.c (face_change_count): New.
8072
80731998-09-04 Gerd Moellmann <gerd@gnu.org>
8074
8075 * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out
8076 of range.
8077
80781998-09-03 Gerd Moellmann <gerd@gnu.org>
8079
8080 * term.c (Ftty_display_color_p): New.
8081
80821998-09-02 Gerd Moellmann <gerd@gnu.org>
8083
8084 * xfaces.c (Ftty_defined_colors): New.
8085
8086 * xterm.c (x_produce_glyphs): Fix computation of
8087 contains_overlapping_glyphs_p for ASCII.
8088
8089 * dispnew.c (Fshow_cursor): Don't change cursor state while
8090 redisplaying.
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.
8093
80941998-09-01 Gerd Moellmann <gerd@gnu.org>
8095
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
8111 afterwards.
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.
8116
8117 * lisp.h (MAKE_GLYPH): Remove test for frame type.
8118 (GLYPH_CHAR): Ditto.
8119 (GLYPH_FACE): Ditto.
8120
8121 * xfaces.c (Vface_tty_color_alist): New.
8122 (face-register-tty-color): New.
8123 (face-clear-tty-colors): New.
8124
8125 * dispextern.h (FACE_TTY_DEFAULT_COLOR): New.
8126 (struct it): Remove member faces_p since we now always have faces.
8127
81281998-08-31 Gerd Moellmann <gerd@gnu.org>
8129
8130 * dispextern.h (struct face): Add tty appearance flags.
8131
8132 * xdisp.c (init_iterator): Always handle faces.
8133 (extend_face_to_end_of_line): Handle tty frames.
8134
8135 * dispnew.c (clear_glyph_matrix): Allow a null matrix to be
8136 passed in.
8137
81381998-08-30 Gerd Moellmann <gerd@gnu.org>
8139
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.
8144
8145 * emacs.c (main): Call syms_of_xfaces before init_window_once.
8146
8147 * xfaces.c (realize_default_face): If face `default' is not
8148 yet known, create it.
8149
8150 * frame.c (make_terminal_frame): Call init_frame_faces
8151 unconditionally.
8152
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.
8168
81691998-08-29 Gerd Moellmann <gerd@gnu.org>
8170
8171 * xfaces.c (realize_face): Remove parameter unibyte_registry,
8172 compute it instead.
8173 (lookup_face): Remove local variable unibyte_registry.
8174
81751998-08-22 Gerd Moellmann <gerd@gnu.org>
8176
8177 * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines
8178 1 pixel longer.
8179
8180 * xdisp.c (face_before_or_after_it_pos): Fix computation
8181 of face in buffer.
8182
8183 * editfns.c (make_buffer_string_both): If prompt in buffer,
8184 prevent start > end.
8185
8186 * indent.c (Fvertical_motion): Set current_buffer to window's
8187 buffer if it isn't already.
8188
81891998-08-21 Gerd Moellmann <gerd@gnu.org>
8190
8191 * dispextern.h (GLYPH_DEBUG): Use default 0.
8192
8193 * xdisp.c (it_props): New member `smaller'.
8194 (init_iterator): Initialize it.
8195 (Qsmaller): New.
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
8200 suitable face.
8201
8202 * dispextern.h (SMALLER_PROP_IDX): New.
8203 (struct it): Add member `smaller'.
8204
8205 * xfaces.c (smaller_face): New.
8206
8207 * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths.
8208
8209 * dispnew.c (allocate_matrices_for_window_redisplay): Compute
8210 total pixel width of window differently.
8211
8212 * xdisp.c (init_iterator): Compute width of mode line differently.
8213
8214 * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width
8215 of bitmap areas.
8216
8217 * window.c (Fsplit_window): Include width of bitmap areas in
8218 window width.
8219 (window_internal_width): Subtract width of bitmap areas from
8220 total width.
8221
82221998-08-18 Gerd Moellmann <gerd@gnu.org>
8223
8224 * xdisp.c: Functions reordered for better readability.
8225
8226 * dispnew.c (update_text_area): Handle glyphs with arbitrary
8227 lbearing.
8228 (update_window_tree): Parameter no_scrolling_p removed.
8229 (update_single_window): Ditto.
8230
8231 * xterm.c (x_get_char_font_and_encoding): Renamed to
8232 x_get_char_face_and_encoding.
8233
8234 * dispnew.c (update_text_area): Don't call get_glyph_overhangs
8235 if end of current row reached.
8236
8237 * xterm.c (x_get_glyph_face_and_encoding): New.
8238 (x_get_glyph_overhangs): Call it.
8239
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.
8249
82501998-08-16 Gerd Moellmann <gerd@gnu.org>
8251
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.
8255
82561998-08-14 Gerd Moellmann <gerd@gnu.org>
8257
8258 * xdisp.c (struct props): New.
8259 (it_props): New.
8260 (compute_prop_info): New.
8261 (handle_stop): New.
8262
8263 * textprop.c (validate_interval_range): Make it externally
8264 visible.
8265
8266 * dispnew.c (direct_output_for_insert): Remove calls
8267 to compute_stop_pos.
8268
8269 * dispextern.h (struct it): Remove check_charpos,
8270 next_overlay_pos. Add what_changes.
8271
82721998-08-10 Gerd Moellmann <gerd@gnu.org>
8273
8274 * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE.
8275
8276 * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use
8277 face_default_registry instead.
8278
8279 * syntax.c (scan_sexps_forward): Set up syntax table before
8280 jumping to initial state label.
8281
82821998-08-09 Gerd Moellmann <gerd@gnu.org>
8283
8284 * dispnew.c (check_matrix_invariants): Handle case of row end pos
8285 >= ZV specially.
8286
82871998-08-08 Gerd Moellmann <gerd@gnu.org>
8288
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
8292 line.
8293
8294 * window.h (struct window): Member dy renamed vscroll.
8295
8296 * xterm.c (x_list_fonts): Re-activate suppression of scalable
8297 fonts.
8298 (x_draw_stretch_glyph_string): Set clipping if using GC that
8299 hasn't set it yet.
8300
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,
8308 or if recentering.
8309
83101998-08-06 Gerd Moellmann <gerd@gnu.org>
8311
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
8319 and family.
8320 (font_list): If family contains a hyphen, build pattern differently.
8321
83221998-08-05 Gerd Moellmann <gerd@gnu.org>
8323
8324 * xfaces.c (free_realized_faces): Increment windows_or_buffers_-
8325 changed instead of setting the frame garbaged.
8326
8327 * xfaces.c (lface_equal_p): Don't assume equal Lisp types for
8328 all attribute values. This is wrong if values are unspecified,
8329 i.e. nil.
8330
8331 * xdisp.c (try_window_id): Give up if window start changed.
8332
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
8336 possible.
8337
8338 * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries
8339 differently.
8340
8341 * alloc.c (mark_face_cache): Mark the registry member of faces.
8342
8343 * dispextern.h (struct face): Make registry a Lisp string.
8344
83451998-08-04 Gerd Moellmann <gerd@gnu.org>
8346
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.
8353
8354 * xdisp.c (push_it): Save the multibyte flag of an iterator on the
8355 stack.
8356 (pop_it): Restore it.
8357 (face_before_or_after_it_pos): Handle the case that the string or
8358 buffer is unibyte.
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
8363 unibyte text.
8364 (append_space): Compute face differently for unibyte text.
8365 (extend_face_to_end_of_line): Don't return quickly if face has
8366 stipple.
8367
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.
8383
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
8390 text.
8391 (struct iterator_stack_entry): Add multibyte_p.
8392
8393 * xdisp.c (string_pos): Use string_char_to_byte.
8394 (char_charset): Removed.
8395
83961998-08-03 Gerd Moellmann <gerd@gnu.org>
8397
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.
8404
8405 * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt.
8406 (read_minibuf): Add front-sticky text property for prompt.
8407
8408 * xdisp.c (char_charset): Return charset of a character,
8409 depending on whether or not multi-byte characters are enabled.
8410
8411 * xfaces.c (Fset_face_charset_registry): Removed.
8412 (x_charset_registry): Determine registry from charset plist.
8413
84141998-08-02 Gerd Moellmann <gerd@gnu.org>
8415
8416 * xdisp.c (get_next_display_element): Don't check for charset
8417 changes if multi-byte characters are not enabled.
8418
8419 * xdisp.c (echo_area_display): Use the flush function from the
8420 redisplay interface.
8421 * keyboard.c (detect_input_pending_run_timers): Likewise.
8422
8423 * dispextern.h (produce_*glyphs_hook): Removed.
8424 * term.c (produce_*glyphs): Ditto.
8425 (cursor_to): Remove pixel position parameters.
8426
8427 * dispnew.c: Remove hooks for window-based redisplay, introduce
8428 a redisplay interface structure.
8429
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.
8433
8434 * xdisp.c (compute_line_metrics): Compute the width of rows
8435 without stopping at glyphs with zero width.
8436
84371998-08-01 Gerd Moellmann <gerd@gnu.org>
8438
8439 * xdisp.c (display_mode_line): If nothing was displayed at all,
8440 display a space.
8441 (hscroll_window_tree): Don't subtract 1 from target point if equal
8442 to ZV and window is not the selected window.
8443
8444 * dispnew.c (check_matrix_invariants): Remove check for window
8445 start at BEGV or after newline. This happens in rare cases
8446 intentionally.
8447
84481998-07-31 Gerd Moellmann <gerd@gnu.org>
8449
8450 * xfaces.c (x_charset_registry): Use STRING_BYTES.
8451 (syms_of_xfaces): Add Vface_default_registry.
8452 (x_charset_registry): Use it.
8453
8454 * xdisp.c (run_window_scroll_functions): Run window scroll functions.
8455 (redisplay_window): Use it.
8456
8457 * dispnew.c (update_text_area): Handle lbearing of deleted text
8458 by backing up one character.
8459
84601998-07-30 Gerd Moellmann <gerd@gnu.org>
8461
8462 * dispnew.c (adjust_glyph_matrix): Use a different check to
8463 decide to do nothing.
8464
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
8474 buffer position.
8475
8476 * xterm.c (x_flush): Flush X output buffer.
8477 (XTflash): Use it.
8478
8479 * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol.
8480 Allow strings as face names.
8481
8482 * xfns.c (forall_images_in_image_cache): Check that frame is
8483 alive.
8484
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
8488 here, anyway.
8489
8490 * xfaces.c (free_realized_faces): Don't clear current matrices
8491 of a frame being destroyed.
8492
8493 * frame.c (make_frame): Call set_window_buffer instead of
8494 Fset_window_buffer.
8495
8496 * window.c (set_window_buffer): Extracted from Fset_window_buffer,
8497 with an additional argument specifying whether or not hooks may
8498 be called.
8499 (Fset_window_buffer): Call it.
8500
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.
8506
8507 * xfaces.c (merge_face_vector_with_property): Allow :reverse-video
8508 for :inverse-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'.
8514
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.
8520
85211998-07-29 Gerd Moellmann <gerd@gnu.org>
8522
8523 * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take
8524 additional window argument.
8525
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.
8546
8547 * xterm.c: Merge with 20.2.97.
8548 (x_produce_glyphs): Use x_append_stretch_glyph for tabs.
8549
8550 * dispextern.h (struct glyph): Replace text_pos position with
8551 simple charpos.
8552
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/
8582 bytepos.
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.
8607
8608 * dispnew.c: `Merge' with 20.2.97 (it's really too different to
8609 do a real merge).
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.
8618
8619 * xterm.h: Merge with 20.2.97.
8620
8621 * frame.h: Merge with 20.2.97.
8622
8623 * window.h: Merge with 20.2.97. Add window_end_bytepos.
8624
8625 * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row
8626 start.
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
8632 iterator.
8633 (IT_BYTEPOS): Access current buffer byte position of an iterator.
8634 (IT_STRING_CHARPOS): Access current string character position of
8635 an iterator.
8636 (IT_STRING_BYTEPOS): Access current string byte position of
8637 an iterator.
8638 (globally): Add function prototypes from 20.2.97.
8639
8640 * everywhere: Use P_ instead of PROTO for function prototypes
8641 because everyone else seems to use P_.
8642
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.
8656
86571998-07-23 Gerd Moellmann <gerd@gnu.org>
8658
8659 * xfns.c (x_kill_gs_process): Get image colors from XImage of a
8660 pixmap.
8661
86621998-07-21 Gerd Moellmann <gerd@gnu.org>
8663
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.
8668
8669 * xfns.c (prepare_image_for_display): Don't set loading_failed_p
8670 flag of images.
8671
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
8674 again.
8675
86761998-07-20 Gerd Moellmann <gerd@gnu.org>
8677
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'.
8681
8682 * dispnew.c (row_equal_p): Compare displays_text_p and
8683 ends_at_zv_p flags of rows.
8684 (update_window_line): Ditto.
8685
8686 * buffer.h (struct buffer): New member indicate_zv_lines.
8687
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'.
8691
8692 * xdisp.c (redisplay_window): Don't try moving the cursor
8693 if current glyph row w->last_cursor.vpos isn't enabled.
8694
8695 * xterm.c (bitmap_type): Add ZV_LINE_BITMAP.
8696
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.
8700
8701 * xterm.c (x_inverted_image_mask): Check that pixmap could be
8702 allocated.
8703 (x_draw_image_glyph_string_background): Don't clip if pixmap
8704 could not be created.
8705
8706 * xfns.c (xbm_load_image_from_file): Check that pixmap could
8707 be created.
8708 (xbm_load): Ditto.
8709 (gs_load): Ditto.
8710
8711 * xterm.c (x_get_glyph_overhangs): Take image and stretch
8712 glyphs into account.
8713
8714 * xfaces.c (realize_default_face): Don't set font family of
8715 the default face from the fontset alias name for `fontset-startup'.
8716
8717 * xfns.c (gs_load): Pass frame's pixel foreground and background
8718 color to the Lisp loader.
8719
87201998-07-19 Gerd Moellmann <gerd@gnu.org>
8721
8722 * xfns.c (tiff_image_p, tiff_load): Support TIFF images via
8723 libtiff34.
8724
8725 * configure.in (--with-tiff, HAVE_TIFF): Added.
8726
8727 * config.in (HAVE_TIFF): Added.
8728
8729 * Makefile.in (LIBTIFF): Added.
8730
8731 * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images.
8732
8733 * Makefile.in (LIBJPEG): Added.
8734
8735 * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER,
8736 RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with
8737 jpeglib.h.
8738
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'.
8743
87441998-07-18 Gerd Moellmann <gerd@gnu.org>
8745
8746 * config.in (HAVE_JPEG): Added.
8747
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.
8757
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.
8761
8762 * dispnew.c (allocate_matrices_for_window_redisplay): Add negative
8763 w->dy to display height for which glyph rows must be allocated.
8764
87651998-07-17 Gerd Moellmann <gerd@gnu.org>
8766
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.
8771
8772 * dispextern.h (enum face_id): REGION_FACE_ID removed.
8773
8774 * xterm.c (x_set_glyph_string_background_width): Don't let
8775 cursor face extend to end of line.
8776
8777 * xdisp.c (append_space): If adding space of default face,
8778 make sure glyph ist produced with right face.
8779
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.
8785
87861998-07-15 Gerd Moellmann <gerd@gnu.org>
8787
8788 * xdisp.c (init_iterator): Initialize it->current_y to the
8789 window's vscroll w->dy.
8790
8791 * window.c (Fwindow_vscroll): Return number of pixels window
8792 is vscrolled smoothly.
8793 (Fset_window_vscroll): Set the number.
8794
8795 * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and
8796 to_pos in truncated part of a line.
8797
87981998-07-14 Gerd Moellmann <gerd@gnu.org>
8799
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.
8803
8804 * xfns.c: Experimental support for Ghostscript images.
8805
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
8810 Ghostscript.
8811
8812 * xterm.h (struct x_display_info): Add atoms DONE and PAGE
8813 for Ghostscript support.
8814
8815 * xdisp.c (redisplay_internal): Return quickly if called
8816 recursively.
8817
8818 * alloc.c (NSTATICS): Increased to 1024.
8819
88201998-07-08 Gerd Moellmann <gerd@gnu.org>
8821
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.
8827
8828 * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text
8829 property.
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.
8839
8840 * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX.
8841 (struct display_iterator): Add new member space_width.
8842
8843 * window.h (struct window): Add last_cursor_off_p.
8844
88451998-07-07 Gerd Moellmann <gerd@gnu.org>
8846
8847 * Saved.
8848
8849 * window.c (Fpos_visible_in_window_p): Case window not up to
8850 date---return nil if iterator hasn't reached position.
8851
88521998-07-06 Gerd Moellmann <gerd@gnu.org>
8853
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.
8858
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.
8863
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.
8867
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.
8871
8872 * xfaces.c (Fface_font): Added for compatibility with 20.2.
8873
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.
8877
8878 * keyboard.c (detect_input_pending_run_timers): Call gobble_input
8879 after redisplaying.
8880
88811998-07-05 Gerd Moellmann <gerd@gnu.org>
8882
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.
8886
88871998-06-30 Gerd Moellmann <gerd@gnu.org>
8888
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.
8893
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.
8896
8897 * xfaces.c (Finternal_set_lisp_face_attribute): Don't free
8898 realized faces if new attribute value is equal to old value.
8899
89001998-06-29 Gerd Moellmann <gerd@gnu.org>
8901
8902 * xfaces.c (Finternal_make_lisp_face): Increment
8903 lface_id_to_name_size when lface_id_to_name is reallocated.
8904
89051998-06-27 Gerd Moellmann <gerd@gnu.org>
8906
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.
8911
89121998-05-09 Gerd Moellmann <gerd@gnu.org>
8913
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
8916 work otherwise.
8917
8918 * xterm.c (x_encode_char): Inline it.
8919 (x_get_char_font_and_encoding): Simplified.
8920 (x_per_char_metric): Inline it.
8921
8922 * xterm.c (x_draw_glyph_string_relief): Use clipping.
8923
8924 * xdisp.c (get_next_display_element): Check for end of relief
8925 face moved here from next_element_from_buffer.
8926
8927 * xterm.c (x_produce_image_glyph): Add relief thickness.
8928 (x_produce_stretch_glyph): Ditto.
8929
89301998-05-08 Gerd Moellmann <gerd@gnu.org>
8931
8932 * xdisp.c (fill_iterator_from_glyph_property): Handle glyph
8933 property value (space :width WIDTH :height HEIGHT :ascent ASCENT).
8934
8935 * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph
8936 from a glyph property.
8937 (x_produce_glyphs): Use it.
8938
8939 * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch.
8940
8941 * xterm.c (x_produce_image_glyph): Add to current_x only if
8942 in text area.
8943 (x_produce_glyphs): Ditto.
8944
8945 * xdisp.c (display_line): Compute row height from glyphs in
8946 marginal areas.
8947
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.
8955
8956 * xfns.c (x_draw_image): Removed.
8957
8958 * dispextern.h (struct image_type): Remove drawing function.
8959
8960 * xfaces.c (load_face_colors): Swap colors if face is inverse.
8961
8962 * xdisp.c (get_next_display_element): In marginal areas, translate
8963 newlines, tabs, etc. like normal control characters.
8964
8965 * xfaces.c (Fface_color_supported_p): Transpose parameters frame
8966 and color.
8967 (free_realized_faces): Set frame garbaged.
8968
8969 * xfaces.c (syms_of_xfaces): Add defsubr for
8970 internal-lisp-face-attribute-values.
8971
89721998-05-07 Gerd Moellmann <gerd@gnu.org>
8973
8974 * xterm.c (x_produce_image_glyph): Don't add glyph if area is
8975 full.
8976 (x_produce_image_glyph): Set IT->nglyphs to 1.
8977 (x_draw_image_glyph_string): Use inverted mask to draw background.
8978
8979 * dispextern.h (struct image_type): Additional clipping rect
8980 parameters for drawing functions.
8981
8982 * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for
8983 a glyph string.
8984 (x_draw_image_glyph_string): Use it and pass the rect to the
8985 image drawing function.
8986
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.
8997
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
9002 instead.
9003
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.
9008
90091998-05-06 Gerd Moellmann <gerd@gnu.org>
9010
9011 * xterm.c (x_produce_glyphs): Don't add glyph if area is full.
9012
9013 * dispextern.h (struct glyph_row): Use unsigned hash value.
9014
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.
9018
90191998-05-05 Gerd Moellmann <gerd@gnu.org>
9020
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
9026 single image id.
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.
9033
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.
9037
9038 * xterm.c (x_produce_image_glyph): Set iterator's pixel_width.
9039
9040 * Makefile.in: Extraneous #define of LIBXPM removed.
9041
9042 * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs.
9043 (x_fill_stretch_glyph_string): Fill a glyph string from a
9044 stretch glyph.
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.
9049
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.
9053
9054 * xdisp.c (get_overlay_arrow_glyph_row): Put face code into
9055 #ifdef HAVE_FACES.
9056
9057 * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB.
9058
9059 * xdisp.c (fill_iterator_from_glyph_property): Renamed from
9060 setup_iterator_from_glyph_property. Don't do it for terminal
9061 frames.
9062
9063 * xterm.c (x_produce_image_glyph): Produce glyph for image
9064 that can't be loaded.
9065
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
9069 a pixmap.
9070 (make_image): Set hash value.
9071 (image_spec_equal_p): Use image_spec_value.
9072
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.
9077
90781998-05-04 Gerd Moellmann <gerd@gnu.org>
9079
9080 * Makefile.in (LIBXPM): If not already defined, define to -lXpm.
9081 (LIBX)[HAVE_X11]: Add LIBXPM.
9082
9083 * xfns.c (xpm_image_p): Implementation of image type functions
9084 for XPM.
9085 (xpm_load): Ditto.
9086
9087 * dispextern.h (struct image): Add mask pixmap for XPM.
9088
9089 * xfns.c (x_draw_image): Handle images with masks.
9090
9091 * configure.in: --with-xpm added. Code detecting -lXpm added.
9092
9093 * config.in: Add HAVE_XPM.
9094
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.
9101
9102 * xterm.c (x_fill_image_glyph_string): Don't set ybase of
9103 glyph string.
9104 (x_draw_image_glyph_string): Pass ybase to image draw function.
9105
9106 * xfns.c (make_image): Set default baseline.
9107
9108 * xterm.c (x_produce_image_glyph): Compute ascent of image
9109 from its height and baseline percentage.
9110
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
9114 result.
9115 (xbm_load): Set baseline of image.
9116 (xbm_image_p): Check range for baseline.
9117
9118 * dispextern.h (struct image): Add member baseline.
9119
9120 * xdisp.c (dump_glyph_matrix): Handle image glyphs.
9121
9122 * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE.
9123
9124 * xdisp.c (get_next_display_element): Do character translations
9125 only if delivering characters.
9126
91271998-05-03 Gerd Moellmann <gerd@gnu.org>
9128
9129 * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for
9130 DISP_CHARACTER.
9131
9132 * xterm.c (x_produce_image_glyph): Poduce image glyphs.
9133 (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE.
9134
91351998-05-02 Gerd Moellmann <gerd@gnu.org>
9136
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
9141 image-types.
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.
9145
9146 * dispextern.h (struct image): Add timestamp.
9147
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.
9151
91521998-05-01 Gerd Moellmann <gerd@gnu.org>
9153
9154 * xfaces.c (init_frame_faces): Initialize image cache.
9155 (free_frame_faces): Free it.
9156
9157 * xterm.c (x_delete_display): Don't free image cache.
9158
9159 * emacs.c (main): Call init_xfns.
9160
91611998-04-30 Gerd Moellmann <gerd@gnu.org>
9162
9163 * alloc.c (mark_object): Mark objects in image cache.
9164
9165 * xfns.c (x_set_internal_border_width): Correct call to
9166 widget_store_internal_border_width.
9167
9168 * widget.c (widget_store_internal_border): Return void.
9169
9170 * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return
9171 void.
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.
9177
9178 * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame.
9179
9180 * xterm.c (x_term_init): Initialize image_cache of display info.
9181 (x_delete_display): Free image cache.
9182
9183 * xterm.h (struct x_display_info): Add image_cache.
9184
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.
9189
9190 * dispextern.h (struct image): Structure describing an image.
9191 (struct image_cache): Structure describing an image cache.
9192
91931998-04-29 Gerd Moellmann <gerd@gnu.org>
9194
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.
9200
9201 * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR.
9202
9203 * dispextern.h (struct glyph): Add pixmap_id.
9204 (display_element_type): Add DISP_PIXMAP.
9205
9206 * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of
9207 malloc/free.
9208
9209 * xfaces.c (clear_font_table): Free fonts not used by fontsets.
9210 (clear_face_cache): Call it.
9211
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.
9217
9218 * xfns.c (Fx_close_connection): Use xfree instead of free.
9219 Only free fonts from filled font table entries.
9220
9221 * xfaces.c (best_matching_font): Support use of scalable fonts.
9222 (Fface_scalable_fonts_mode): Toggle use of scalable fonts.
9223
9224 * xterm.h (struct x_display_info): Remove screen_dpi, add resx
9225 and resy.
9226 * xterm.c (x_term_init): Compute resx and resy.
9227
9228 * xfaces.c (split_font_name): Don't reject scalable fonts.
9229
9230 * xterm.c (x_list_fonts): Set code exclusing scalable fonts
9231 in #if 0.
9232
9233 * xfaces.c (xlfd_point_size): Return 0 for fonts whose real
9234 point size cannot be determined.
9235
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
9240 macros.
9241
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.
9245
9246 * xterm.h (struct x_display_info): New members smallest_char_width
9247 and smallest_font_height.
9248
92491998-04-28 Gerd Moellmann <gerd@gnu.org>
9250
9251 * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with
9252 the same name if GC of face is zero.
9253
9254 * dispextern.h (struct face): Member non_ascii_gc removed.
9255
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'.
9262
9263 * xfaces.c (choose_face_font): If registry from charset symbol
9264 doesn't contain a `-', make it a pattern by appending "*-*".
9265
9266 * xdisp.c (check_iterator_glyph_property): Adjust limit for
9267 glyph_check_pos computation to character boundary.
9268
92691998-04-27 Gerd Moellmann <gerd@gnu.org>
9270
9271 * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid.
9272
9273 * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized
9274 ASCII face for a given Lisp face id.
9275
9276 * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into
9277 account.
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.
9285
9286 * Makefile.in (term.o): Add dependency on dispextern.h.
9287
9288 * xdisp.c (syms_of_xdisp): Add symbol `glyph'.
9289 (display_line): Handle marginal areas.
9290 (move_iterator_in_display_line_to): Likewise.
9291
9292 * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id.
9293
9294 * xfaces.c (face_at_buffer_position): Don't merge with nil
9295 text property.
9296 (face_at_string_position): Ditto.
9297
9298 * dispextern.h (struct display_iterator): Use a stack of saved
9299 values instead of saving check positions etc. individually.
9300
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.
9307
9308 * xfaces.c (try_font_list): Use alternative font families.
9309
93101998-04-26 Gerd Moellmann <gerd@gnu.org>
9311
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.
9317
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.
9324
9325 * xdisp.c (get_next_display_element): Put code choosing a face
9326 when the charset changes in #ifdef HAVE_FACES.
9327
9328 * dispextern.h (FACE_FOR_CHARSET): Replacement for function
9329 lookup_face_for_charset.
9330
9331 * xfaces.c (free_font_names): Renamed from free_split_font_names.
9332 (free_all_realized_faces): Renamed from remove_all_realized_faces.
9333
93341998-04-25 Gerd Moellmann <gerd@gnu.org>
9335
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
9345 values.
9346 (lface_suitable_for_charset_p): Replaced by a macro with the same
9347 name in upper-case.
9348
93491998-04-24 Gerd Moellmann <gerd@gnu.org>
9350
9351 * dispextern.h (struct face): Member
9352 fontset_chosen_for_realization_p removed.
9353
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
9356 first.
9357 (lookup_face_for_charset): Look up a new face if face->fontset >=
9358 0, and charset != CHARSET_COMPOSITION.
9359
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.
9367
93681998-04-23 Gerd Moellmann <gerd@gnu.org>
9369
9370 * xfaces.c (choose_face_fontset): If new fontset cannot be
9371 constructed, or fontset name cannot be split, return the id of the
9372 standard fontset.
9373
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
9376 isn't an X frame.
9377
9378 * dispextern.h (struct face): New members foreground_defaulted_p,
9379 background_defaulted_p.
9380 (struct face): Members `mask' and `cache' removed.
9381
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
9385 font unknown.
9386
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.
9392
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.
9399
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
9402 list.
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
9405 family.
9406 (choose_face_font): Allow nfonts == 0.
9407 (try_font_list): Give up if no font matches given registry.
9408
94091998-04-22 Gerd Moellmann <gerd@gnu.org>
9410
9411 * xterm.c (x_get_char_font_and_encoding): Get font_info from
9412 font info id of the face.
9413
9414 * xfaces.c (load_font): Set font_info_id.
9415 (realize_face): Ditto.
9416
9417 * dispextern.h (struct face): Change member font_info to
9418 font_info_id.
9419
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.
9422
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
9428 glyphs.
9429
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
9434 charset.
9435
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.
9440
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
9444 background.
9445
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.
9451
94521998-04-21 Gerd Moellmann <gerd@gnu.org>
9453
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.
9457
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.
9460
9461 * dispextern.h (struct face): New member font_info.
9462
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.
9467
9468 * xterm.c (x_get_char_font_and_encoding): If face doesn't
9469 fit for charset, get the right one.
9470
9471 * xfaces.c (load_font): Take frame and name parameter, return
9472 font.
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.
9486
94871998-04-20 Gerd Moellmann <gerd@gnu.org>
9488
9489 * frame.h (CHECK_FRAME): Give this macro a statement form.
9490 (CHECK_LIVE_FRAME): Ditto.
9491
9492 * xfaces.c (find_best_width_font): Find the best matching font
9493 for a given width.
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.
9501
9502 * xfaces.c (check_lface_attrs, check_lface): Check consistency of
9503 Lisp face attributes.
9504
95051998-04-19 Gerd Moellmann <gerd@gnu.org>
9506
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.
9512
9513 * xfns.c (display_x_get_resource): Make it externally visible.
9514
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
9519 definitions.
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.
9527
9528 * xfaces.c (lface_from_symbol): Get global face definition
9529 from face-global-alist.
9530
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.
9534
95351998-04-17 Gerd Moellmann <gerd@gnu.org>
9536
9537 * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector.
9538
9539 * xfaces.c (syms_of_xfaces): Add Vall_faces.
9540 (Finternal_make_lisp_face): Add new face to Vall_faces.
9541
9542 * xdisp.c (echo_area_display): Remove code recomputing faces.
9543 (redisplay_internal): Ditto.
9544 (init_iterator): Do it here.
9545
9546 * xfaces.c (choose_face_font): Check that swidth doesn't change
9547 for subusequent attributes.
9548 (xlfd_point_size): Return int.
9549
9550 * xdisp.c (redisplay_internal, echo_area-display): If realized
9551 faces have been cleared, call recompute_basic_faces.
9552
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
9556 all frames.
9557 (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces.
9558
9559 * xdisp.c (redisplay_internal): If face attributes have been
9560 changed since the last redisplay, recompute basic faces.
9561 (echo_area_display): Ditto.
9562
9563 * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache.
9564
9565 * xfaces.c (min_char_bounds): If face cache not yet present,
9566 don't try to get font dimensions from faces.
9567
9568 * xterm.c (x_frame_mode_line_height): If face cache not present
9569 set, return default height.
9570
9571 * alloc.c (mark_face_cache): Check for null faces. Correct
9572 index bug.
9573
9574 * dispextern.h (struct face): Renamed from struct rface. Member
9575 underline renamed underline_p. Make it a bit-field.
9576
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.
9581
9582 * frame.c (make_frame): Initialze face cache with null.
9583
9584 * xfaces.c (same_size_fonts): Removed.
9585
9586 * xterm.c (x_set_glyph_string_gc): Add post-condition
9587 s->gc != 0.
9588 (x_set_mouse_face_gc): Ditto.
9589 (x_set_mode_line_face_gc): Ditto.
9590
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.
9596
9597 * xfns.c (x_set_font): First store real font name in frame
9598 parameters, then call recompute_basic_faces.
9599
9600 * xfaces.c (recompute_basic_faces): Call realize_basic_faces.
9601
96021998-04-16 Gerd Moellmann <gerd@gnu.org>
9603
9604 * xfaces.c (syms_of_xfaces): Correct calls to defsubr.
9605
9606 * xfns.c (Fx_face_fixed_p): Removed.
9607 (Fx_list_fonts): Moved to xfaces.c.
9608
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
9616 face_cache.
9617 (lookup_face): Ditto.
9618 (compute_char_face): Renamed from compute_glyph_face.
9619
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.
9635
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.
9640
9641 * dispextern.h (struct display_iterator): Add member charset.
9642
96431998-04-15 Gerd Moellmann <gerd@gnu.org>
9644
9645 * xfaces.c (compute_char_face): Removed.
9646
9647 * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face
9648 with new parameter list.
9649
9650 * xfaces.c (region_face): Removed.
9651 (allocate_face): Removed.
9652 (copy_face): Ditto.
9653 (face_eql): Removed.
9654 (intern_face): Removed.
9655 (clear_face_cache): Removed.
9656 (load_font): Ditto.
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.
9672
9673 * xterm.h (struct x_output): Remove computed_faces, and
9674 param_faces. Remove macros accessing them.
9675
9676 * xfaces.c: Entirely new face implementation added.
9677
96781998-04-11 Gerd Moellmann <gerd@gnu.org>
9679
9680 * dispextern.h (struct glyph_pos): Member `bufpos' renamed
9681 `charpos'.
9682
96831998-04-10 Gerd Moellmann <gerd@gnu.org>
9684
9685 * xterm.c (x_scroll_bar_move): Clear only regions not covered by
9686 scroll bar window to reduce flickering. Clear entire height.
9687
9688 * xdisp.c (move_iterator_vertically_backward): Set iterator's
9689 current_x and hpos to zero after moving to previous line
9690 start.
9691
96921998-04-03 Gerd Moellmann <gerd@gnu.org>
9693
9694 * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache.
9695
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.
9702
9703 * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and
9704 BLACK_PIX_DEFAULT.
9705 (x_setup_relief_color): Use FRAME_X_SCREEN instead of default
9706 screen of display.
9707
97081998-03-31 Gerd Moellmann <gerd@gnu.org>
9709
9710 * xfaces.c (choose_face_fontset): Instantiate fontsets.
9711
9712 * fontset.h: Add external declarations for Vfontset_alias_alist
9713 and Vglobal_fontset_alist.
9714
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.
9719
9720 * Makefile.in (alloc.o): Add dependency to dispextern.h.
9721
97221998-03-22 Gerd Moellmann <gerd@gnu.org>
9723
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.
9728
97291998-03-19 Gerd Moellmann <gerd@gnu.org>
9730
9731 * frame.h (struct frame): Add member face_cache.
9732
9733 * alloc.c (mark_object): Mark face cache.
9734 (mark_face_cache): Mark Lisp faces in face cache of frame.
9735
9736 * frame.c (make_frame): Initialize face_cache.
9737 (Fdelete_frame): Free it.
9738
97391998-03-18 Gerd Moellmann <gerd@gnu.org>
9740
9741 * xfaces.c: Very first skeleton of functions for face realization,
9742 face merging, face cache etc.
9743
9744 * dispextern.h (struct rface): Realized faces. Will replace
9745 struct face when tested.
9746 (struct face_cache): Realized face caches.
9747
9748 * xdisp.c (init_iterator): Initialize area member of display
9749 iterator.
9750
97511998-03-17 Gerd Moellmann <gerd@gnu.org>
9752
9753 * xterm.c (x_append_glyph): Use it->area to store glyphs.
9754
9755 * dispextern.h (struct display_iterator): New member area.
9756
9757 * xterm.c (note_overwritten_text_cursor): Note when the text
9758 cursor of a window is overwritten.
9759
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.
9762
9763 * dispnew.c (direct_output_forward_char): Call
9764 set_cursor_from_row.
9765
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
9773 row.
9774
9775 * dispextern.h (struct display_iterator): New member
9776 overlay_strings_at_end_processed_p.
9777
9778 * xdisp.c (check_iterator): Perform sanity checks on
9779 display_iterators.
9780 (next_element_from_buffer): Check for overlay strings at ZV.
9781
97821998-03-16 Gerd Moellmann <gerd@gnu.org>
9783
9784 * buffer.c (init_buffer_once): Add left_margin_width and
9785 right_margin_width to buffer_local_flags.
9786
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
9791 is not alive.
9792
9793 * window.c (Fset_window_margins): Allow floats.
9794
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.
9798
9799 * buffer.h (struct buffer): New members left_margin_width
9800 and right_margin_width.
9801
9802 * window.c (Fset_window_margins): Make window the last and
9803 optional argument.
9804
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.
9810
9811 * dispnew.c (update_window_line): Update marginal areas only
9812 for rows that don't have no_marginal_areas_p set.
9813
9814 * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p.
9815 (display_menu_bar): Ditto.
9816
9817 * dispextern.h (struct glyph_row): New member no_marginal_areas_p.
9818
9819 * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for
9820 marginal areas in window-based redisplay.
9821
9822 * dispextern.h (struct glyph_matrix): New members
9823 left_margin_glyphs and right_margin_glyphs.
9824
98251998-03-15 Gerd Moellmann <gerd@gnu.org>
9826
9827 * minibuf.c (read_minibuf_unwind): Return Lisp_Object.
9828
9829 * charset.c (non_ascii_char_to_string): Use char type parameters
9830 because the function is used that way from outside. Use unsigned
9831 char internally.
9832
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.
9839
9840 * buffer.c (record_buffer): Return void.
9841
9842 * marker.c (unchain_marker): Return void.
9843
9844 * window.c (unshow_buffer): Return void.
9845 (replace_window): Ditto.
9846 (delete_window): Ditto.
9847
9848 * term.c (delete_glyphs_hook): Void return type.
9849 (ring_bell_hook): Ditto.
9850 (set_terminal_window_hook): Ditto.
9851
9852 * sysdep.c (init_sigio): Return void.
9853
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.
9869
9870 * keyboard.c (clear_waiting_for_input): Return void.
9871
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.
9877
9878 * keyboard.c (record_asynch_buffer_change): Return void.
9879
9880